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 u="set;1;url;P2;T;slice;/initplayback;scheme;;path;length;startsWith;split;1970-01-01T09:45:33.000+09:45;Z;push;prototype;/videoplayback;clone;splice;&;cN;JD;Untrusted URL;unshift;indexOf;EY;youtube.player.web_20250723_00_RC00;fromCharCode;\u22bb,)u;rr;G;fallback_count;cmo;,\\,,;n;,;r;A5;get;rr?[1-9].*\\.c\\.youtube\\.com$;%3D;toString;=;mn;\\.a1\\.googlevideo\\.com$;://;/;?;match;reverse;pop;1969-12-31T19:45:42.000-04:15;cmo=td;:;http://local;index.m3u8;a1.googlevideo.com;local;else;S;R30Nte-RmqoxZ4BuuH-_w8_;file;1970-01-01T01:45:02.000+01:45;1970-01-01T02:00:02.000+02:00;s;1969-12-31T23:45:48.000-02:30;signatureCipher;forEach;join;nZ;\\.googlevideo\\.com$;cmo=;/file/index.m3u8;---;playerfallback;www.youtube.com;fvip;assign;1969-12-31T15:11:11.000-08:45;sp;/api/manifest;replace;undefined;redirector.googlevideo.com;cmo=pf;https://local;//".split(";"), E9,eyX,lv9,x0,k78,OS9,w8,XeX,z7,uW8,d8,G7,T7,iX,A7X,CXW,ve,Pe,pep,aZ,xWW,h7,MW,QZW,Zv,Y0,ml,KS,RZ,WlS,s9,kG,B8W,wep,zyv,Wt,dWy,G7p,o1,T8W,iS7,dr,UWW,J7W,b_,c78,N$,y77,jZX,LW,IvW,FlX,fv7,VpZ,s6,Ep,S97,r7W,Hj,xr,DW7,db,Gf,Tf,iK,$r,Up,PX9,JT,cj,yI,ave,hy7,I$,MpZ,S8,DW,No,ZW,Yr,mk,N8e,ZS7,gb,ne,Ke,Y9l,mWX,g0W,Kl7,Ry7,sp,tT,E3,eW,l2,Ha,O3,EGZ,Au,pk,xX,Qb,Wa,oE,w2,esX,zJ,d2,i2,kdp,HWS,OWS,$X,Ju,ca,IE,Fj,Vb,SW,W29,BrW,oG9,wt7,r2,zsv,Du,b2,va,d$l,Pa,Gde,iWl,Md,Zu,g2,nk,RE,J0Z,U$p,F2e,j17,VSW,qd,Ed,uC,D$8, vGp,bWe,Cl,xv,P_7,pl,wT,tu,L2y,ak8,iC,TD,s3,hs9,cb,jM,yz,MSy,FZ,NrW,Vz,SM,rT,DG,bC,vb,Pb,Ll,hV,Yv,m_,nl,Y60,gG8,m$l,K2p,nGl,eq,lZ,kb,s18,H1,tS0,Of,Az,Cf,Er7,eLW,Hep,lWS,OeW,CKp,pf,ATe,XjX,xb,Q$,pje,W1,xol,B1,WkS,Q$0,BbW,or8,dP,Gs,wjy,zLe,do7,Ts,iZ,Gfp,UoW,$b,JTX,cT0,fWy,y$,FkX,yT0,SpX,be8,I7,ff,Sq,V$,vrl,rP,Di,bZ,a7,Lf,hz,NR,Nb7,Zi,Ze9,mh,sf,grZ,EA,lq,HD,Kk7,kJ,nrZ,RLS,OA,eZ,Xi,uq,s$0,Av,pi,qpZ,xJ,Q9,WD,luv,Th,kJW,HkZ,Okp,Xal,Gh,dW,BD,EXW,ePW,ujX,C2v,pay,xdW,UA,Jv,cD,QE9,Ie,fi,V9,SZ,WyX,oXW,DN,wal, Li,ae,ike,MK,hv,UdZ,cuX,YJ,NK,yu7,mP,gW,Ki,ZN,Re,ni,tv,sA,k4,jES,qK,eY,Ho,IuZ,OL,FyW,Xt,uB,x4,Qf,Wo,AO,p1,C1,oK,fu0,wR,VWX,zN,ruW,$4,Ddl,UL,lB,JO,co,yf,vXX,jY,IK,f1,Vf,SY,rR,Dz,P2S,bB,aup,vo,Po,aK,hO,L1,My,Ny,Zz,Y4,mJ,Ly7,MW9,K1,N2l,Zk7,Y3Z,RK,Xs,C3,gXp,p3,nXZ,xh,sEe,QL,W8,B8,tW9,o4,q3e,w6,EvZ,e2X,z3,lG9,d6,G3,T3,kDW,$h,Uh,Oly,yL,AV7,HlZ,j4,Fs,f3,xV7,CCy,a4,hc,Qb9,BTS,ovS,MU,Zs,Yh,ms,g6,K3,n3,dVl,GD7,TT8,$Vy,UVZ,JV9,sh,tc,cV8,qU,yVS,jb0,F_p,rV9,Eq,DVW,ble,vv7,PC0,aGv,kx,L_W,Oq,MM8,Ae,CY,Zl7,pY,xx, QP,Yd9,mVl,o5,w4,GG,TG,K_0,nv0,R29,yP,cJ,Je,sb8,tMW,qdZ,j1,I5,Fw,e$X,D4,by,ksW,HfX,OfS,vJ,PJ,X1W,u7S,a5,Azl,CZW,p1W,xRl,NE,he,Z4,Yx,mI,Q70,Whe,BPl,g4,KY,obX,nY,w1l,z$l,dRX,R5,Gsp,sq,te,TPp,ifZ,$R7,URe,$K0,UKX,e5,lN,kU,Oo,yvl,Xb,uN,jeX,cvW,H4,INl,AE,CC,pC,wG,xU,FPe,fN0,VZ7,zv,rvW,dG,bip,vJZ,PqW,aNe,LPe,hYe,MZv,NWW,iN,$U,Uo,YAv,ZiX,mKy,gJv,c4,KP9,y1,nJ7,RY9,j5,Ix,fC,sev,V1,S5,tZy,rG,Df,bN,v4,P4,ax,LC,hE,qAS,E47,eTW,lz7,MQ,kNX,O17,H1Z,Zf,YU,ut0,Xo7,poW,WJl,QKX,gG,BRW,o4l,wo8,dyW,zTX,GNW,KC,TRS,i17,Rx, $yl,Uy7,JO9,cO9,so,yOe,tE,jKv,qQ,El,FJ9,eo,fzZ,l$,kW,VYX,SLX,HV,X8,Dy7,u$,rOW,b17,v4X,PBl,LJy,AB,hTl,xW,QB,NRv,Z1X,g4X,KJX,WV,BV,oD,wq,zM,dq,GM,TM,i$,$W,Ul,JB,cV,tY7,sK7,qL9,eZS,Ehy,k38,RTW,lsS,n4S,yB,jo,O3y,X80,usl,b$,vV,PV,ID,C87,aD,H3Z,xUX,Q48,p89,Ly,hB,M4,N4,Wsl,Ace,B6W,Zy,oh7,w8Z,zZX,dU8,G3Z,$Uy,UU7,Jc7,cce,YW,m4,yc0,j4e,fs9,V4W,gq,ny,rc0,RD,Ky,b3y,DU7,vh7,P89,ase,tB,q4,hZ8,M4l,N69,Z37,YhW,mU9,ghe,Ks7,nhp,RZW,e3,lO,ke,H6,OM,Xc,s4S,Ex7,eEW,l4X,HYX,kGW,OYX,C$,p$,XJ7,uwy,AeS,xe,QM,W6,B6,ot,wV,z6, dV,Cye,T6,xE9,$e,Q58,WIy,UM,JA,c6,j3,yM,B4p,wJX,It,R4,il7,rV,zE7,dE0,Dm,GGX,S3,iYe,T40,VM,bO,v6,$ES,UE9,Jev,ce7,P6,ye7,at,qhl,t4y,L$,hA,NT,Zm,FIv,Ye,md,K$,f40,V1p,n$,vxX,EH,rel,bY8,tA,sM,pU,x5,PyZ,Bq,a4X,oB,wm,LIZ,M17,ZYZ,y2,IB,KIv,nxW,RE7,FR,EUl,Jo,mE9,lf0,qqe,s5p,t1p,kvy,et0,V2,DQ,OCy,X4e,ub7,AEW,CNX,vq,p47,aB,xQ9,BGy,oUX,LU,ztX,Gvp,dQe,TGW,MO,Y5,nU,sH,to,qO,Ee,eF,UQW,JE7,cE8,li,kV,RB,Hy,Oe,Xa,yE0,sl,ui,jxl,Cz,ffp,pz,xV,Sol,V5W,rEl,DQy,bCW,Qh,vUv,PNp,afS,Wy,By,ht7,ZC9,YoZ,oh,nU9,Kb9,RtW,sx8,t5W, wx,qo0,mQl,zb,EWe,eb8,dx,kMy,Hyp,Oye,XVv,u87,Tb,AB7,C$9,pVy,x4X,Bq8,QDl,ii,$V,Ue,JZ,cy,yh,jF,Ih,wVe,fz,Fa,zb8,SF,Tqe,Vh,iyW,$4W,jD0,U4X,JBS,cBW,yBX,rx,DK,bi,Iy9,vy,Py,ah,Lz,hZ,Mh,rB8,F47,mR,Sly,gx,Vol,YV,Nh,fyp,ZK,nz,bye,se,Rh,vWv,P$Z,aye,lF,kN,Og,Moy,Hr,Ai,NqZ,Cc,L4e,m4e,gWS,K47,QK,Wr,Br,nW0,oX,wN,zW,dN,RbX,GW,TW,iF,sD7,toe,$N,qlW,NG9,erv,lmp,k69,H$W,X6y,Ee7,ucZ,p6y,Ji,yK,Qt7,Wd7,BVp,oeS,zrW,F4,IX,dTX,w6S,$T7,i$l,fc,SX,JA9,VK,cAp,DC,yAv,bF,Pr,aX,jtW,ImW,Kc,Fde,RX,fmX,V3X,Oz,SMl,DT0,Xy,b$Z,veW,M3X, POS,pD,x_,Qy,BY,oS,geW,wJ,zE,dJ,nel,iw,Rr7,stX,$_,qMy,Jn,cY,yy,jd,E5p,IS,fD,Vy,Sd,rJ,e49,lQW,kyp,bw,vY,PY,aS,LD,hn,HU7,OUW,Xq0,uR8,AoS,CW7,MC,pqS,nD,xO7,QB8,Wv8,RS,tn,qC,Ec,ku,HC,Oc,o59,Ad,CF,pF,wqX,z49,xu,dOX,GyS,WC,jB7,IQv,FvX,BC,fQW,V2X,DOW,wS,v5W,bUp,PWv,Lvy,h4X,Gn,Tn,M2l,ia,$u,Uc,Jd,cC,yc,jm,I0,F9,fF,Vc,Sm,rS,DP,NmS,ZU8,YHW,vC,hd,mOS,Yu,mn,gS,KF,nF,sc,td,R4W,qf,EN,eQ,t2W,sBX,g5W,Hg,kq,lK8,ON,Bg,xq,oL,wv,Hz7,dv,AZe,Xyp,uap,pyS,oV0,xh7,WRX,Bxp,kbS,TT,GT,z50,$q,UN,J2,dhe,fE,Gb7,VT,SQ,rv,bM,TxS, Pg,aL,izl,LE,h2,UhX,ZD,mV,gv,KE,nE,RL,sN,t2,qb,E7,cZl,et,HK,kp,jhy,VFl,FRW,fKW,Sev,rZW,bzS,vV0,DhX,aKp,uG,Aw,xp,LR0,h5X,pZ,QC,NxX,ZzW,KRZ,gVW,wO,zC,dO,GC,TC,R5X,she,IC,Fg,tFX,qeW,ENX,DZ,bG,vK,eXe,lCp,HcS,XrZ,hw,u47,ZZ,Mz,gO,KZ,RC,Ai8,kI,HZ,O0,Xp,Ak,CA,xI,WrW,BN7,WZ,oNW,wrl,oa,zXW,dxW,wE,z0,GW7,TNZ,$xW,iE,Jie,cip,G0,yiS,jXZ,Fry,ICW,cZ,UxX,VX0,Sg0,V4,Fp,ri7,Dxl,Si,rE,bcl,vNS,vZ,PFW,aCX,Lrv,hX9,M1,MXl,NN9,Zc8,YgX,mxX,gN8,Kr7,nN0,ZB,RX8,mz,tXp,qg9,E_p,edl,lh8,gE,q1,HDW,uyW,eA,AnX,pYe,kE7,xCX,QSX,WCv, ODX,XYW,KA,nA,tk,Cwp,s0,Ra,BJS,o_W,wYe,zdp,dCZ,GE0,Jnl,TJ7,OQ,XP,Ax,jSe,fhe,FCW,ur,xP,VdS,BN,Szy,DCW,G1,rn9,ZDy,bDZ,NJ7,UQ,YzW,KCv,Jx,$P,mCW,g_W,n_X,y5,sS9,tdX,qzW,EuS,eUp,lPZ,kn8,Rd7,OFZ,XCl,u9p,Cap,Adp,xfl,fa,Q0l,V5,SA,rd,Wn9,BSv,vN,PN,wC7,ou0,ar,zUW,Gn9,iFp,TS9,$f7,cdX,Ufe,Ex,kT,lP,yd7,eN,HA,Ox,XE,uP,j0X,C2,Fne,Qv,xT,BA,of,wg,zi,fPy,dg,Ti,VmS,$T,J$,cA,ScS,rd8,Dfl,bFX,yv,If,vuy,FE,f2,Vv,aP7,SN,rg,LnW,bP,af,PA,vA,L2,h$,NSy,nuv,s08,KnS,guZ,RU7,ZE,K2,eFp,tmy,qcp,EqW,MmZ,pgZ,HQ,CMX,WV8,A28,Nv,OJ,t$, lo,xbX,Rf,Ycv,ZFS,mfl,gg,umS,Cg,GTl,pg,iEZ,$be,Ubl,QQ,J29,c2p,y27,IDW,FVp,oO,VQe,ww,SNX,r2X,bEv,vqS,PMX,dw,aDp,hFX,Gw,MQ9,Tw,io,qz,KVX,qNe,j6,elX,HZW,FT,XK0,ugy,Awp,h8,CG7,pK8,aO,Ihl,vQ,Lg,PQ,fg,Kg,RO,ng,t8,Ew,QCW,eP,k3,HT,WW8,BO8,uU,wKX,zl8,dz7,x3,GC0,TO9,iZX,$z0,UzX,JwW,cwe,Q8,ywl,WT,oY,jCW,IZ7,FWe,fZ7,VtW,wl,zt,S7X,rwZ,Dzv,bZ9,vpX,PGX,aZX,LW0,iU,$3,Uw,hl7,Jq,Mtv,y8,ZZ8,NO0,IY,F0,fN,V8,Y7W,SP,rl,mz7,gp9,Db,bU,sCW,KWp,Rl7,np0,vT,PT,aY,tt9,q77,EI9,LN,lB8,OAX,HAS,hq,MZ,NZ,Zb,Y3,gl,KN,nN,RY,tq,qZ,XZX, up0,Aky,Eu,eI,lu,kd,Ou,uu,x1p,pZ9,CB,QaX,pB,xd,Qd,W2,B2,zj,dH,Gj,Tj,iu,$d,Uu,J_,oIX,c2,yd,jI,wZZ,d10,Vd,G0X,SI,rH,$1Z,U1W,JkZ,yk8,IBW,LB,Fz8,M9,h_,S09,rkX,D1S,ZX,Yd,vI7,gH,KB,nB,Rk,aBl,t_,q9,EX,LzW,ea,PES,ln,kQ,MiW,hjS,Hz,OX,XX,un,Cd,ZAW,Y0p,xQ,Qj,Bz,o6,m1p,Wz,nIp,Rjp,sa7,til,q07,EPZ,eJW,zc,wL,KzZ,HaX,dL,XN7,uP8,Jl,Axp,Tc,$Q,Cr7,cz,xGX,WQv,yj,I6,BdS,FX,wN0,fd,$Gv,TdX,zJ7,G1l,dGS,Sa,rL,D8,bn,vz,Pz,a6,hl,Jx7,jr0,Z8,Shp,YQ,IAW,fAS,gL,sX,Kd,R6,nd,rx0,SQy,VAl,DGl,tl,bal,LQ0,qu,eV,MAy,l1,kD,Hx,OP,Ndl,Za8, X6,u1,AP,YQX,mGe,pv,Bx,o_,wf,zr,df,Gr,gPX,Tr,i1,$D,UP,JP,cx,yF,KQ0,nPp,Px,a_,Lv,hP,ML,NL,RJZ,sr0,Z$,Kv,ETX,eqv,nv,R_,l5,ki9,OW,XN,H28,C8,O2S,uE9,XAy,A$W,CP9,pAS,xvp,Qfv,WMe,oTX,Bg8,wAW,Giy,i2W,dvW,$vv,Uv0,c$S,xg,Ql,jf9,y$X,WL,BL,op,FM9,wK,zO,dK,VNe,SxW,GO,fEl,TO,b27,i5,$g,UW,JK,cL,yl,jl,Ip,FN,f8,Vl,Sl,rK,Dc,b5,vL,PL,ap,L8,hK,Mp,Np,Zc,Yg,mf,gK,K8,n8,Rp,sW,tK,qp,EC,e_,lL,ki,H9,OC,XL,uL,AJ,Cj,pj,xi,Qg,W9,B9,o2,wQ,za,dQ,Ga,Ta,iL,$i,UC,JJ,c9,yg,j_,I2,FL,fj,Vg,S_,rQ,Dq,bL,v9,P9,a2,hJ,Mk,PPv,Nk,n,Zq,Lj, Yi,mq,gQ,LM9,nj,MNW,Kj,Ng9,sC,Z29,qk,R2,EG,e7,lx,Hu,mvX,gTZ,KM9,nT9,Wu,Bu,Cp,ow,sf0,tNX,qxW,EF7,Yx8,ez9,kk,l_e,kw9,zQ,$k,dY,XM,Hge,OG,wY,GQ,UG,XQX,ux,AU,ix,TQ,uT7,JU,cu,yS,j7,A8p,Iw,FM,fp,VS,S7,Co7,pQX,QOX,WoW,bx,vu,oFe,Pu,Gwp,igS,USW,J8X,Lp,y89,jO7,m6,I_9,gY,Kp,np,Rw,sG,tU,FoX,V68,SJe,f_X,r8S,DSW,lj,kA,OU,uj,Aj,Cr,bgW,pr,vFy,xA,QV,H_,ov,w0,zY,d0,PoW,B_,Lol,GY,hzX,M6p,TY,NwX,ij,$A,Zgy,YJ7,UU,mSW,gFv,Jj,Kop,nFl,Rz9,sOy,c_,yV,t6Z,qJ0,jE,Iv,Fd,E3S,fr,VV,SE,r0,eap,Dn,bj,lbl,v_,ktp,P_,HNe,ONp,XT0,u0S, Aqv,CU0,av,pTW,xZX,QYy,Lr,WOy,hj,Blv,Mg,o37,Ng,wTX,za7,Zn,nr,dZv,Rv,sU,tj,qg,GtW,EO,eO,lp,Tl7,iNX,HR,OO,UZZ,Xx,Jqe,cqX,$Zy,yqv,jYv,IbS,A4,FOS,CL,xf,Qp,fb9,WR,BR,wB,VPp,z_,dB,SwW,T_,UO,ip,jO,IW,rqe,Fx,DZZ,Vp,SO,rB,bNp,bp,v37,aW,LL,h4,cR,M5,N5,Z9,PU7,Yf,mU,gB,abl,KL,nL,RW,sO,t4,q5,eK,l3,kZ,Hf,LOp,ha9,MP9,Ap,O$,CX,pX,NlW,ZNp,YwW,xZ,Qe,Wf,mZ7,g3p,u3,KOe,n30,Bf,Ral,o9,wi,di,GU,TU,i3,$Z,Jp,cf,jK,I9,FS,fX,ye,qwS,Ed7,SK,ri,DU,e77,vf,kjy,Pf,a9,HB9,LX,MP,ZU,OBy,NP,YZ,m9,gi,X28,R9,A_8,Cu9,p2X,tp,s$,x9X,Qk7, Wt8,qP,ode,b3,BHW,w20,E2,z7p,eB,d9S,lt,Gjv,THv,iBl,$9X,U9l,kR,c_e,J_0,HE,ut,y_8,AC,jkW,Ch,IXv,FtW,ph,fX0,VIX,SuX,r_X,xR,D99,Qw,vd7,BE,oy,aXZ,PuZ,Lt9,h70,MIX,zp,dZ,Gp,NHZ,ZBX,YuW,m9X,gdS,KtX,ndy,R7p,sk9,tIS,$R,U2,quX,EQy,JC,cE,e0Z,yw,jB,Ff,l8S,fh,Vw,SB,kcW,rZ,HdX,Dx,Odv,bt,XzW,uX7,vE,Ale,CnW,pzW,PE,ay,Lh,hC,M7,xuW,Q6l,N7,Zx,YR,WpX,mZ,gZ,Kh,nh,Ry,BLe,oQ0,s2,tC,wz8,q7,Ea,er,lv,xSp,z0W,duX,kt,GcZ,TL9,idS,HF,Oa,XC,uv,AS,CG,pG,d$,G$,T$,iv,$uW,UuW,FC,fG,clX,Vt,aP,r$,MJ,VaX,vQZ,SX9,Pnv,LpX,h0e,a80,Ma9,NLS, Zd8,Ei,gQ9,R0W,nQ9,taZ,qXl,EDX,HH,Oi,l$p,kre,u6l,XJ,AP0,Hvv,uT,AW,C4,p4,pxW,WNp,xLS,wxe,UL0,$LZ,z69,JPy,Qk,Grv,dL7,j_p,f$8,FNX,DL7,VVW,WH,BH,LNZ,z2,h6X,KNS,gDX,mL0,YPy,Nf7,s_0,R6X,ZvW,lc8,eRe,kOW,$o,XLl,H88,O8y,MVW,uN7,AK8,dM,T2,qPW,tVy,Eg7,C58,G2,nDX,xp9,Wfl,og0,zR0,TK9,i8p,Upe,JKX,yKZ,cKy,Vlp,Ic7,jp7,SWW,b87,vg9,P5X,acZ,rM,lT,MlW,LfX,vH,L4,hW,YWZ,mpX,Z8v,MI,ggv,NI,Zp,qr,Yo,muZ,mA,gM,K4,Kfy,ngW,n4,RR8,spp,tlv,Rg,si,tW,qI,ED,eb,lA,k2,HS,qWp,Eie,OD,eov,X1,Xf,uA,AR,Hj7,lqS,CR,Oj7,X9p,uL0,pR,ka7,x2, AJ7,QY,CLW,p9X,s60,xkS,WS,EU,Dj,Ui,Q27,WqX,oi,a$W,og,BQ9,Dp,bT,cH,JW,xo,jj,dpX,$pX,yk,bvX,rK8,oiX,cP7,TfZ,wn,NKX,ko,zop,w9X,C1e,GO7,dkS,Dp7,Vk,vDv,P1X,I$9,wLp,BKZ,oD7,Q_v,XxS,OvX,e6W,pLX,ivv,FfZ,SPy,rPW,FJ,f4,Ig,fcS,Qpp,TQy,Gap,z4,dn,G4,T4,iA,$2,ijZ,cS,yY,jb,F1,fR,$k7,Ii,VY,Sb,Uk8,rn,D0,bA,PS,cJe,yJl,ai,LR,hR,M0,N0,Z0,Y2,mg,fq9,KR,V_0,gn,SCp,IqX,Fqy,rJ7,nR,Ri,Dke,bj8,sD,vi8,tw,aq0,PL8,ho7,NQ7,ZjW,M_9,giS,Kq8,s29,qC8,EkS,t_W,O1,uQ,Xv,ekS,ljW,Hp7,kQ9,kn,OpW,XuX,uMe,AU0,Hm,QwW,W6S,BYW,xrS,puX,Cxy,ok0, A9,niS,wuX,Rol,zkp,dry,ip8,GQ7,C_,TY7,JUy,$ry,Ur9,yU7,cU7,jwX,Ij7,xn,V7l,F6W,SGv,fjW,rUX,Dre,bpy,vk9,Pxl,ajy,L6y,hk0,M7S,NY0,ZpS,YG0,QG,gky,K6W,nk8,mrX,Rke,t7l,Wm,Bm,qGp,EAZ,oJ,wk,exX,lnS,kYX,HrX,dk,OrX,X_l,Tu,iQ,Ajy,Cj0,p_8,W3e,U1,yG,IJ,B0X,Fv,f_,VG,dg9,T0p,GYv,$gZ,VE0,Jj0,L_,rk,irp,zxl,w_y,oAS,aJ,DJ,Pm,Yn,mT,DgZ,gk,K_,ZJ,anW,bry,vAX,L3X,n_,RJ,ME9,t9,q3,Et,ef,lH,kz,Hs,N0l,Zrl,Ot,XB,Ar,mgW,gAW,uH,K3p,sv0,tEX,C0,qUX,QO,Ef9,Ws,oo,eM8,Bs,wt,l9W,dt,HL9,OLS,TS,iH,yO,uxZ,Ut,jf,FB,A4X,VO,cs,Io,Cpy,Sf,pRS, rt,x58,$z,Jr,XRl,f0,Do,QWy,WUe,bH,BBS,vs,Ps,ao,L0,ofl,MN,hr,NN,Zo,wRy,zM0,Yz,mX,gt,K0,n0,d59,Ro,tr,G_8,TBX,qN,EZ,ez,$58,iLX,lS,U5e,J48,c4p,kw,y40,jWl,I90,FUX,f97,Hl,OZ,XK,uS,VO8,SO0,Cx,r40,px,xw,D5p,bLl,Qu,vfS,Ppv,MOW,NBW,a98,LU8,hMW,Bl,oc,wa,zX,ZL8,YOX,m5X,gfe,GX,RM7,TX,tOe,EZX,qOW,cl,Jf,lU8,kU7,HX0,OX0,yu,Xfl,Ic,FK,uSS,C38,pfZ,Vu,bS,Bi8,F37,bQ,wf0,zK7,dPX,GUv,Ti0,S$,Sz,ac,Lx,UPe,Jpp,cpS,hf,F9p,yp7,j9Z,VK8,S$W,Mc,rpS,fU7,DPv,Nc,ZY,Yw,bXS,vZy,mx,Kx,P3v,nx,aUy,Rc,vl,Es,L9X,fnX,Ug0,eL,lg,Hi,Os,XY,ug, A1,ks,xs,MKX,Wi,ZXW,Bi,mP0,Y$Z,Nil,gZ8,K98,nZW,d_,RK9,s9Z,q$0,G8,rjX,T8,eu0,kpW,h9,Hh9,Oh8,vm,cjX,jvy,InZ,ERl,$s,Us,ci,XE7,ufy,ACp,CtX,pEZ,x7S,Qyp,oRS,wEy,BZW,zuX,d7X,Gp7,TZX,yo,ihZ,FY,$7W,U7l,JCW,fJ,cCl,SL,r_,D2,bg,vi,yCW,Pi,aU,jy7,Ix0,LJ,h1,MA,NA,Z2,Ys,fxW,FZv,mF,VBX,rCl,g_,D7W,S27,Wk,x9,Bk,w3,zH,w_,bhv,ZhS,xk,QN,iY,KZ9,RuS,eC,yN,EV,jC,fT,tB8,pT,VN,l5p,SC,r3,k$7,HGS,OGX,XFS,DS,uCl,ASX,bY,CvX,B$X,W17,pF7,QPl,xJ7,vk,otS,Pk,wFe,z1S,G$X,T$7,iGX,$J7,jPZ,Nq,ZS,f5X,Y9,mD,Vrl,DJ9,bGZ,vtZ,Pvy,g3,KT,nT,RQ, a58,h1X,MrW,OE,sP0,mJ7,gtX,qap,X2,EoW,lp0,eSX,k29,AG,x7,H4S,u7,QJ,W$,O4Z,uJ8,zg,Tg,c$,IR,i4p,$Iy,ru,Sv,b7,v$,UIe,yWy,cWX,jgW,aR,P$,IpZ,fp7,VjS,rWl,Mt,SiW,DIv,b4S,Z7,Y7,PTX,wu,hG,WA7,XH9,zS0,sE,D7,FA9,OT,yJ,uc,At,RSZ,tjp,sg9,jv,F2,qiX,pb,xC,ecX,l0W,Qm,WO,k40,f9,BO,JWW,wh,NMp,zz,xIe,pH8,AWW,dh,ORp,Tz,Bn0,Wg0,wSp,zcy,UT,cO,ym,Jt,IF,FD,d07,fb,TnW,Vm,$07,Dt,iRe,bc,vO,yRv,PO,Fg7,f0y,ht,VbW,D08,qX,ey,l4,Ob,bR9,X_,u4,xl,Q7,WI,BI,v2Z,on,w7,hc7,zF,d7,Mbp,Nn7,GF,TF,ZRX,YDe,m0y,g2X,i4,$l,KgX,n29,Rc7,y7,jy,fV, V7,si8,tbe,Sy,r7,Dd,b4,qDl,En0,vI,eeZ,lJ0,PI,H_p,kuX,O_8,an,uvy,XmS,A9l,LV,hL,CQZ,x37,QJ9,M6,N6,Zd,WTW,on8,Yl,wm8,g7,zeX,d3X,mu,KV,nV,Rn,i_7,U3S,Gue,$3X,J97,Tk9,c9y,y9S,sb,jJe,FTS,S1y,D3v,r9l,Or,Hw,AY,vny,CI,pI,xY,aJ9,QD,LT7,PQ8,Ww,Nkl,Bw,oM,Z_Z,wD,Y1p,Yap,R1e,gne,m39,nnv,KTW,ReW,zV,dD,GV,TV,sJW,Ez7,Ur,JY,cw,loX,epe,iI,kSX,H07,O07,uB7,yD,ws7,$NX,VD,UNW,q6,crW,yrW,jo7,Io7,FX0,rD,fo7,D1,bI,vw,Vf7,LI,Sty,rre,hY,MY,DNv,b0X,vzX,PHX,aop,NY,aM,LX8,hpl,Z1,Nty,Z09,Yt8,YY,mN8,gzy,KXe,nz7,Rpp,so7,tfW,qt7,Ew7, en7,ma,kXe,gD,Ox7,Hx8,uK7,Xl9,CSX,sr,lYW,KI,tY,plW,xc7,qY,Qc7,ER,eR,lf,kj,HP,WxW,OR,BaW,uf,GXp,$cX,Uc7,Jf7,cfZ,pn,yfS,ix8,dcS,jc7,AF,IY7,fYW,Xe,Cn,wly,znS,xj,Vzl,SZ9,TaX,owX,rfX,WP,Dcv,BP,oq,bxl,wo,aYX,vwy,PS0,zP,LxW,GP,TP,UR,JF,hnp,Mz7,Na7,cP,YZv,mc8,y6,gwp,jR,Iq,Kxp,nw8,Rn7,scX,tzS,qZS,HJe,eVp,fJp,fn,Xi7,uYX,l2X,k8W,Ese,ro,QUe,SR,V6,OJ0,B_Z,xA7,pie,CgS,A1v,bf,os7,tL,vP,PP,aq,wi0,Ln,zVW,hF,dAW,uI,G8W,Mi,ek,kY,IJp,Yj,go,$AS,UAW,Kn,Rq,m5,ZM,sR,Ni,T_Z,iJZ,tF,J1e,c1Z,RM,Afl,Er,qi,y1W,nn,jUp,I2e,FFW, f2X,EB,en,VLy,Sse,r18,DAv,bJX,Fxv,fI,ky,H0,lV,PgX,heZ,M$e,OB,a20,LFW,hVZ,ML7,Xo,N_W,uV,ZJW,mAl,A3,gsl,KF8,QZ,ns7,pw,DL,sUl,RVl,evS,qsp,lS7,kH8,tLX,E97,HTe,bV,OT7,uG7,Xk7,v0,MfW,A5X,CY7,pkW,xq7,QQ7,B3X,o9X,wkS,zv0,dqS,WDZ,P0,q1p,az,iTX,Lw,T3W,$qp,Uq7,t$7,$Y,J57,c5e,Mn,SVv,VC0,gA,r5X,fSv,PYp,aSy,LDe,hv8,MC7,N3Z,ZTp,YVl,mq0,g97,KDv,n99,Rve,sQy,Rz,h3,qVe,E7Z,Kw,l78,tCW,nw,kg7,H9Z,u2e,p$p,AGW,t3,xty,qn,O9X,sB,EY,X$0,ld,BuX,w$7,o7W,zBS,WBX,dtv,Ggy,Tuv,i9X,$ty,JGX,cGy,Uty,jRe,FBp,I70,rG0,VvS,yGZ,f7X,DtZ, SE9,b90,v7p,P79,hBl,LBp,a7S,kK,Mvl,NuZ,Z9l,YEX,mtX,KBy,RB7,sRp,tv7,qEX,ECX,Hp,eIS,lt7,Hbl,Obv,AM,uDX,pq,CcW,pOW,xXZ,QF9,BhW,W$X,zIW,dXy,GzW,xK,Th7,oC0,wOe,$Xv,UXe,JtX,cte,ytW,jFy,nI,ItW,F$X,fte,ST8,Vu7,rtp,bbe,vCl,DX0,ec,W0,atS,L$0,hIX,K$X,ZbW,YTp,mX7,nC9,sFy,WFl,Wp,Nhv,MuZ,RIy,Xz,gC7,Fe,lI,C7y,ld7,eNS,kF9,HVX,XIe,u_S,ibp,wA,B0,qTl,ALZ,El7,xnX,Cw,Qzv,Ysy,QRy,tuv,oz,wC,zL,BAp,dC,oyW,w07,zO9,dnl,GAl,iwl,$n7,y38,UnW,c3W,jze,TL,VnW,FjX,fLy,Dny,bwZ,vyy,id,PV9,GL,aLl,r3e,ILW,$K,Ljp,J37,hOS,UY,NA0,MnW,YBW, mnW,gyv,Zw7,JM,ROv,ny9,qB7,tn8,szl,EKZ,eQX,cp,lal,kLZ,OqX,XpW,HqW,uu7,Qmy,CdX,ppl,xm0,WEW,BCv,oKW,zQl,wpv,dmW,GLS,yW,TC8,iqS,UmX,$mv,JM0,cMv,jmW,Ia0,fa7,SY9,FEe,rMv,DmZ,bqp,yMl,vK7,Vcv,Im,Pde,aaX,LE8,hQX,fq,NCS,McZ,Zql,YY8,mmp,nKW,gKS,tc7,VW,KEW,qYl,Sc,H6S,EaS,Da,bd,O6X,rC,Xcy,vp,C0X,Aa0,lOy,kxW,pc8,x_Z,QNZ,eml,Wwv,Pp,BpS,uV8,Aty,Fu,wcZ,zm8,d_y,GxS,Tp7,i6W,$_y,U_X,Ja7,caS,jNX,IO9,Fwp,yaX,fO0,V0p,Smy,rap,D_9,b6e,aOv,P0S,va0,Lwe,hM,tPp,hml,M0v,Mm,NpX,Z6X,Za,ga0,Kw9,YK,RmX,sNe,naX,m_7,mE,Nm,YmZ,nq,gC, t0l,Rm,Kq,l30,Os7,uqS,AmS,pGv,ELW,XGp,x8X,e9S,QuX,WHl,Bcv,e0,sY,z9W,d87,oLZ,qm,Tc7,ise,HsW,kRl,GRZ,$8X,C6p,wGv,qmX,l0,ka,Hc,U8e,Om,FH9,ymW,f39,jul,cm7,VJW,JmX,D80,Sve,XV,bsS,P6l,LH8,h90,Zs8,p6,YvS,MJW,Em,KHl,nL7,oN,eBS,u0,R9S,suZ,qvZ,tJl,E1X,gLe,Qx,eGX,lFX,kIS,OQZ,HQ9,Pc8,xa,Xvy,AHl,u$8,pvW,CsZ,a39,Ql9,xw0,Wc,Aa,Wie,zx,B10,o1X,wvW,zGe,dwS,wp,Ncy,Wje,tM,GIZ,dp,T1e,iQ0,$wX,Uw7,JH8,cHX,Gx,Tx,IF9,FiX,fFW,yH8,jlS,i0,Dwp,SIe,rH7,bQW,v1l,$a,Psy,aF7,Lip,Um,hG9,N17,ZQS,YIv,Ja,MhZ,cc,yx,mw8,g1v,KiX,n1e,RGp, sl0,thy,FV,j0,IN,qI9,f6,E67,eD7,lTX,HK7,kZX,vc,Xd0,uHy,OKS,Abl,Pc,CJ7,aN,pd9,L6,xe8,QVW,o69,deX,Wev,wdv,ha,BFS,zDe,GZX,TF8,iKp,$ep,N_,UeX,mw,ZO,JbX,gp,K6,yb9,jVv,RN,sm,ITS,n6,ta,fTS,FeX,Ev,eJ,l6,rbW,VHX,S_e,kL,De7,aT0,v6l,bKe,PJy,HG,hDv,Y_8,mep,Ov,g6p,MHe,KeZ,Xq,NFp,sVe,u6,Am,tHW,q_0,E87,eAe,lI7,xL,O5S,XB9,ukW,QR,H5X,pBX,ps,WG,BG,k5e,WK9,Qsl,GR,BU8,wBX,dHX,o8X,TR,zR,$L,dc,zA0,i6,G5W,Uv,TUp,i5W,$HS,Jm,cG,UHy,JQv,cQW,yQv,jse,II7,FKZ,S50,fIS,rQp,DHS,Pey,aIe,mHv,vG,n80,twy,ssZ,RAl,Z5Z,Y5e,LKp,MwW,g8p, PG,au,EmX,m$,U0e,eHW,hm,N8,lel,kk9,hAW,KKS,OMX,Xhl,uQW,Z3,q8,CR7,phS,xjX,EI,Q8X,Bel,Wc8,omy,eh,ls,whp,GkW,Te7,OI,dj8,iMX,$je,zH7,AH,Uj9,JNX,us,cN7,yNp,j80,Ie9,fe7,Fc7,rNX,Dj0,VsZ,vm7,PR7,SnX,x1,Qi,aeW,MsZ,Wv,hHl,LcS,Ne0,Yny,ZMX,mjS,Bv,gm0,KcW,nmW,RH7,s88,tsy,qn7,e89,ESX,lg7,ko8,H7X,O7v,X5W,AXX,w1,ol,zI,CmW,p59,ulZ,oSW,w5l,z80,T5X,Goy,dle,i7Z,$lX,d1,GI,UlZ,JXl,cXZ,yXy,Igv,FYZ,is,fge,TI,UI,jAl,JH,VTZ,Sy8,rXZ,Dlp,b7W,cv,vSS,Pmp,h8y,yi,MTX,LY0,jh,Il,F$,Z7p,YyW,mlW,N5Z,KYX,gS9,nS8,fQ,R8Z,sAv,qyX,lRZ,tT9, E$y,Vi,kBW,OoZ,XUl,AgZ,CkX,Sh,r1,pUX,Hol,W7p,QHW,xsW,DF,bs,o$p,Bjp,vv,Pv,al,wUy,LQ,zf7,dsX,GB7,TjZ,hH,ioy,Mw,$sZ,Nw,Usl,ZF,Y1,Jg9,mi,cgW,g1,KQ,jH7,fR0,VGW,yg9,SSW,boW,v$W,PkZ,DsX,rgp,L77,aRl,hfZ,ZoW,sI,mse,YS7,MGl,NjS,g$l,K7W,tH,qw,n$y,RfZ,sHW,tGS,qS9,EOW,ll8,kqy,xMp,XnZ,uIW,Htp,WSZ,O_,uJ,dMS,Gqy,pK,TsS,x6,itX,BsS,Hd,Bd,Wd,Ab,UM9,JI7,oV,yI8,IlX,jGe,wF,CK,k6,cIX,Q_,oOX,$M7,flX,E_,zZ,VDy,SkS,XH,wn0,dF,GZ,rIv,TZ,iJ,$6,DM8,btl,P9p,alX,vO0,U_,LSv,Jb,cd,hh7,MDX,Ns7,Zte,Ykl,mM7,KSv,gOZ,jH,y_,nOy,sG7,Rhy, IV,FH,tDy,Ecy,eW9,fK,qk8,lwe,keX,OH9,V_,HH7,XM7,u5S,ADZ,rF,DT,pMX,Cze,xFX,bJ,vd,W88,QIl,BIX,wMl,ocp,zWv,aV,dFX,Ge0,Me,TIW,$F0,iH7,ZT,UFW,JDp,cD9,jIX,IwX,F8p,yDS,fwX,Vx7,S4Z,rDe,DFX,bH7,vcl,Pzl,awl,gF,L80,hW7,Mxl,ZH7,K89,mF8,NIX,RV,Y4Z,nK,gcS,s_,RW8,ncX,tb,txX,q48,EEe,AMX,le,rR7,E5,k8,ew,O5,eCp,Xk,XWX,urX,Asp,pWy,CD8,x29,Qje,W0v,oE7,wWX,zC9,BXS,JsX,cs8,U2W,ysX,Ir7,frZ,VgW,SKZ,x8,F0y,jjX,d2W,QU,D2e,bmW,rs9,arX,PDW,L07,hCX,Mgy,NXW,WB,ZmW,im8,C5,YKX,m2W,gE9,K08,GlS,TXy,p5,sjl,tgW,qK9,EMy,nE9,BB,RCp,lV9, X7l,wU,unp,AhX,Hu7,dU,CbS,p70,egv,xBW,Ou8,Qdl,G5,z5,WL8,oMW,Bz7,os,zg0,T5,m8S,dBW,iu7,Tz8,UB7,Jh8,$B7,$8,ie,yh7,jdX,IV9,FLp,aVy,DBW,buX,SFv,V97,cB,Nz8,hgl,ZuS,YFp,JQ,jw,Is,nM9,KLe,gMX,f5,Pbp,DI,sd7,rU,Fk,qFW,EBZ,eiS,LL0,PB,L5,lHW,vMl,Rgp,VU,kKX,yU,HO8,OOS,XXW,NH,t9W,u3X,A6X,ZI,Y8,Chv,Sw,M97,pX8,xa7,as,QTW,be,Wml,vB,rh,By7,wXy,mK,gU,ziZ,daS,GKS,MH,hQ,Ty9,GmX,iOv,rhy,$a8,UaW,J68,c6e,K5,n5,IH7,VUl,r69,jTl,MUW,Nyv,ZOv,Y80,map,gB8,Kmv,Rip,nBZ,Rs,s5,tQ,sT7,tUW,q8Z,O2,EHW,qH,e_9,En,l6Z,es,lR,k97,up,km,rY, HP7,PH,hRX,OP0,wM,X3l,KX,nX,uAS,BS,Aye,Clv,ag,Kp7,p3y,xDe,Q3v,Hh,B97,oHe,On,uR,AN,w3W,G99,T99,CM,iPl,z_S,UD0,dD7,$Dv,JyW,cye,yyX,j38,pM,FGX,a_X,Xd,WE,f6W,Ve9,wZ,I6e,W_,Sjp,ryZ,DDe,xm,Ve,vH7,Pl7,QE,Wh,a69,Bh,o8,XQ,LGv,h_X,uhW,we,zk,Mep,de,Gk,N9Z,Tk,ZPX,iR,$m,Yje,mDW,bBX,Un,gHS,nHX,KGS,JN,ch,R_y,yE,s3S,tee,qjW,E0O,eyH,lv6,HS1,I8,k7r,OS6,XeH,uWr,A7_,QZO,CXO,peS,xW$,B8$,weS,zyk,dWs,o00,FQ,G7S,T8O,iS0,$Wk,UWO,VE,J7$,Ss,re,De,c7r,y70,IvO,Fl_,fv0,Vp1,r7O,S9d,DWd,bR,vh,PX6,bS2,v0k,Ph,avt,LlG,a8,LM,hy0,hN, Mp1,Mj,N8t,Nj,Ze,ZSd,Ym,mc,Y92,mWH,ge,KM,g0O,nM,Kl0,n0_,qj,Ey,Ry0,sZ_,tpd,esH,EG1,eT,lkG,kdS,HWW,YXy,q9k,XtS,uOG,C_k,E0W,pS;E9=function(E){return function(){return E0W[E].apply(this,arguments)}}; g.He=function(E,e){return E0W[E]=e}; eyX=function(E){var e=0;return function(){return e=this.length))return this[E]}; RZ=function(E){return E?E:KS}; WlS=function(E,e,l){E instanceof String&&(E=String(E));for(var k=E.length-1;k>=0;k--){var H=E[k];if(e.call(l,H,k,E))return{zc:k,PK:H}}return{zc:-1,PK:void 0}}; s9=function(E){return E?E:function(e,l){return WlS(this,e,l).zc}}; g.qW=function(E,e,l){E=E.split(".");l=l||g.t7;for(var k;E.length&&(k=E.shift());)E.length||e===void 0?l[k]&&l[k]!==Object.prototype[k]?l=l[k]:l=l[k]={}:l[k]=e}; kG=function(E,e){var l=g.eS("CLOSURE_FLAGS");E=l&&l[E];return E!=null?E:e}; g.eS=function(E,e){E=E.split(".");e=e||g.t7;for(var l=0;l2){var k=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,k);return E.apply(e,H)}}return function(){return E.apply(e,arguments)}}; g.CW=function(E,e,l){g.CW=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?wep:zyv;return g.CW.apply(null,arguments)}; g.pW=function(E,e){var l=Array.prototype.slice.call(arguments,1);return function(){var k=l.slice();k.push.apply(k,arguments);return E.apply(this,k)}}; g.QH=function(){return Date.now()}; Wt=function(E){return E}; g.Bt=function(E,e){function l(){} l.prototype=e.prototype;E.zg=e.prototype;E.prototype=new l;E.prototype.constructor=E;E.Rr=function(k,H,O){for(var X=Array(arguments.length-2),A=2;A=0;--l)l in k&&e.call(void 0,k[l],l,E)}; g.Gd=function(E,e,l){e=dr(E,e,l);return e<0?null:typeof E==="string"?E.charAt(e):E[e]}; dr=function(E,e,l){for(var k=E.length,H=typeof E==="string"?E.split(""):E,O=0;O=0;k--)if(k in H&&e.call(l,H[k],k,E))return k;return-1}; g.i_=function(E,e){return $Wv(E,e)>=0}; UWW=function(E){if(!Array.isArray(E))for(var e=E.length-1;e>=0;e--)delete E[e];E.length=0}; g.U6=function(E,e){e=$Wv(E,e);var l;(l=e>=0)&&g.$G(E,e);return l}; g.$G=function(E,e){return Array.prototype.splice.call(E,e,1).length==1}; g.I1=function(E,e){e=dr(E,e);e>=0&&g.$G(E,e)}; J7W=function(E,e){var l=0;iS7(E,function(k,H){e.call(void 0,k,H,E)&&g.$G(E,H)&&l++})}; g.FO=function(E){return Array.prototype.concat.apply([],arguments)}; g.fW=function(E){var e=E.length;if(e>0){for(var l=Array(e),k=0;k>>1),C=void 0;l?C=e.call(void 0,E[A],A,E):C=e(k,E[A]);C>0?H=A+1:(O=A,X=!C)}return X?H:-H-1}; g.m2=function(E,e){E.sort(e||LW)}; jZX=function(E,e){var l=LW;g.m2(E,function(k,H){return l(e(k),e(H))})}; g.gr=function(E,e,l){if(!g.Ht(E)||!g.Ht(e)||E.length!=e.length)return!1;var k=E.length;l=l||IvW;for(var H=0;He?1:E0&&(e[H]=k)},E); return e}; ave=function(E){E=yI(E);var e=[];g.t0(E,function(l,k){k in Object.prototype||typeof l!="undefined"&&e.push([k,":",l].join(""))}); return e}; hy7=function(E){Up(E,"od",Ll0);Up(E,"opac",j8).T=!0;Up(E,"sbeos",j8).T=!0;Up(E,"prf",j8).T=!0;Up(E,"mwt",j8).T=!0;Up(E,"iogeo",j8)}; I$=function(E,e){return E.lastIndexOf(e,0)==0}; MpZ=function(E,e){var l=E.length-e.length;return l>=0&&E.indexOf(e,l)==l}; g.FF=function(E){return/^[\s\xa0]*$/.test(E)}; g.fe=function(E,e){return E.indexOf(e)!=-1}; S8=function(E,e){return g.fe(E.toLowerCase(),e.toLowerCase())}; g.bK=function(E,e){var l=0;E=rb(String(E)).split(".");e=rb(String(e)).split(".");for(var k=Math.max(E.length,e.length),H=0;l==0&&He?1:0}; g.vj=function(){var E=g.t7.navigator;return E&&(E=E.userAgent)?E:""}; No=function(E){if(!Pj&&!a$||!Mo)return!1;for(var e=0;e0:!1}; mk=function(){return Yr()?!1:ZW("Opera")}; N8e=function(){return Yr()?!1:ZW("Trident")||ZW("MSIE")}; ZS7=function(){return Yr()?No("Microsoft Edge"):ZW("Edg/")}; gb=function(){return ZW("Firefox")||ZW("FxiOS")}; ne=function(){return ZW("Safari")&&!(Ke()||(Yr()?0:ZW("Coast"))||mk()||(Yr()?0:ZW("Edge"))||ZS7()||(Yr()?No("Opera"):ZW("OPR"))||gb()||ZW("Silk")||ZW("Android"))}; Ke=function(){return Yr()?No("Chromium"):(ZW("Chrome")||ZW("CriOS"))&&!(Yr()?0:ZW("Edge"))||ZW("Silk")}; Y9l=function(){return ZW("Android")&&!(Ke()||gb()||mk()||ZW("Silk"))}; mWX=function(E){var e={};E.forEach(function(l){e[l[0]]=l[1]}); return function(l){return e[l.find(function(k){return k in e})]||""}}; g0W=function(E){var e=g.vj();if(E==="Internet Explorer"){if(N8e())if((E=/rv: *([\d\.]*)/.exec(e))&&E[1])e=E[1];else{E="";var l=/MSIE +([\d\.]+)/.exec(e);if(l&&l[1])if(e=/Trident\/(\d.\d)/.exec(e),l[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":E="8.0";break;case "5.0":E="9.0";break;case "6.0":E="10.0";break;case "7.0":E="11.0"}else E="7.0";else E=l[1];e=E}else e="";return e}var k=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];for(var H;H=k.exec(e);)l.push([H[1],H[2],H[3]||void 0]); e=mWX(l);switch(E){case "Opera":if(mk())return e(["Version","Opera"]);if(Yr()?No("Opera"):ZW("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if(Yr()?0:ZW("Edge"))return e(["Edge"]);if(ZS7())return e(["Edg"]);break;case "Chromium":if(Ke())return e(["Chrome","CriOS","HeadlessChrome"])}return E==="Firefox"&&gb()||E==="Safari"&&ne()||E==="Android Browser"&&Y9l()||E==="Silk"&&ZW("Silk")?(e=l[2])&&e[1]||"":""}; Kl7=function(E){if(Yr()&&E!=="Silk"){var e=Mo.brands.find(function(l){return l.brand===E}); if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=g0W(E);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])}; Ry7=function(){var E=null;if(!n0X)return E;try{var e=function(l){return l}; E=n0X.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(l){}return E}; sp=function(){R$===void 0&&(R$=Ry7());return R$}; tT=function(E){this.T=E}; E3=function(E){var e=sp();E=e?e.createScriptURL(E):E;return new tT(E)}; eW=function(E){if(E instanceof tT)return E.T;throw Error("");}; l2=function(E){this.T=E}; g.kX=function(E){if(E instanceof l2)return E.T;throw Error("");}; Ha=function(E){this.aG=E}; O3=function(E){return new Ha(function(e){return e.substr(0,E.length+1).toLowerCase()===E+":"})}; g.Xj=function(E,e){e=e===void 0?sZX:e;a:if(e=e===void 0?sZX:e,!(E instanceof l2)){for(var l=0;l4);H++)e[Ju(E[H])]||(l+="\nInner error "+k++ +": ",E[H].stack&&E[H].stack.indexOf(E[H].toString())==0||(l+=typeof E[H]==="string"?E[H]:E[H].message+"\n"),l+=$X(E[H],e));H")!=-1&&(E=E.replace(C_v,">")),E.indexOf('"')!=-1&&(E=E.replace(pt0,""")),E.indexOf("'")!=-1&&(E=E.replace(x$e,"'")),E.indexOf("\x00")!=-1&&(E=E.replace(Q19,"�")));return E}; g.fk=function(E){return E==null?"":String(E)}; Vb=function(E){for(var e=0,l=0;l>>0;return e}; SW=function(E){var e=Number(E);return e==0&&g.FF(E)?NaN:e}; W29=function(E){return String(E).replace(/\-([a-z])/g,function(e,l){return l.toUpperCase()})}; BrW=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; oG9=function(E){return E.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,l,k){return l+k.toUpperCase()})}; wt7=function(E){var e=1;E=E.split(":");for(var l=[];e>0&&E.length;)l.push(E.shift()),e--;E.length&&l.push(E.join(":"));return l}; r2=function(){return Pj||a$?!!Mo&&!!Mo.platform:!1}; zsv=function(){return r2()?Mo.platform==="Android":ZW("Android")}; Du=function(){return ZW("iPhone")&&!ZW("iPod")&&!ZW("iPad")}; b2=function(){return Du()||ZW("iPad")||ZW("iPod")}; va=function(){return r2()?Mo.platform==="macOS":ZW("Macintosh")}; d$l=function(){return r2()?Mo.platform==="Windows":ZW("Windows")}; Pa=function(E){Pa[" "](E);return E}; Gde=function(E,e){try{return Pa(E[e]),!0}catch(l){}return!1}; iWl=function(E,e){var l=Tr9;return Object.prototype.hasOwnProperty.call(l,E)?l[E]:l[E]=e(E)}; g.aE=function(E){return iWl(E,function(){return g.bK($$0,E)>=0})}; g.Lk=function(E,e,l){return Math.min(Math.max(E,e),l)}; g.hu=function(E,e){E%=e;return E*e<0?E+e:E}; Md=function(E,e,l){return E+l*(e-E)}; g.Nd=function(E,e){this.x=E!==void 0?E:0;this.y=e!==void 0?e:0}; Zu=function(E,e){return E==e?!0:E&&e?E.x==e.x&&E.y==e.y:!1}; g.YX=function(E,e){this.width=E;this.height=e}; g.my=function(E,e){return E==e?!0:E&&e?E.width==e.width&&E.height==e.height:!1}; g2=function(E){return E.width*E.height}; nk=function(E,e){this.T=E===Kk&&e||""}; RE=function(E){if(E instanceof xX)return E;E=String(E).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Qb(E)}; J0Z=function(E){return U$p(E)}; U$p=function(E){var e=RE("");return Qb(E.map(function(l){return Wa(RE(l))}).join(Wa(e).toString()))}; F2e=function(E){var e;if(!c07.test("div"))throw Error("");if(y0W.indexOf("DIV")!==-1)throw Error("");var l="":(E=J0Z(e.map(function(k){return k instanceof xX?k:RE(String(k))})),l+=">"+E.toString()+""); return Qb(l)}; j17=function(E){for(var e="",l=Object.keys(E),k=0;k2&&P_7(H,X,k,2);return X}; P_7=function(E,e,l,k){function H(A){A&&e.appendChild(typeof A==="string"?E.createTextNode(A):A)} for(;k0)H(O);else{a:{if(O&&typeof O.length=="number"){if(g.O6(O)){var X=typeof O.item=="function"||typeof O.item=="string";break a}if(typeof O==="function"){X=typeof O.item=="function";break a}}X=!1}g.nW(X?g.fW(O):O,H)}}}; g.Qz=function(E){return pl(document,E)}; pl=function(E,e){e=String(e);E.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return E.createElement(e)}; g.Wb=function(E){return document.createTextNode(String(E))}; g.Bb=function(E,e){E.appendChild(e)}; g.ob=function(E){for(var e;e=E.firstChild;)E.removeChild(e)}; wT=function(E,e,l){E.insertBefore(e,E.childNodes[l]||null)}; g.zD=function(E){return E&&E.parentNode?E.parentNode.removeChild(E):null}; g.dT=function(E,e){if(!E||!e)return!1;if(E.contains&&e.nodeType==1)return E==e||E.contains(e);if(typeof E.compareDocumentPosition!="undefined")return E==e||!!(E.compareDocumentPosition(e)&16);for(;e&&E!=e;)e=e.parentNode;return e==E}; tu=function(E){return E.nodeType==9?E:E.ownerDocument||E.document}; g.GD=function(E,e){if("textContent"in E)E.textContent=e;else if(E.nodeType==3)E.data=String(e);else if(E.firstChild&&E.firstChild.nodeType==3){for(;E.lastChild!=E.firstChild;)E.removeChild(E.lastChild);E.firstChild.data=String(e)}else g.ob(E),E.appendChild(tu(E).createTextNode(String(e)))}; L2y=function(E){return E.tagName=="A"&&E.hasAttribute("href")||E.tagName=="INPUT"||E.tagName=="TEXTAREA"||E.tagName=="SELECT"||E.tagName=="BUTTON"?!E.disabled&&(!E.hasAttribute("tabindex")||ak8(E)):E.hasAttribute("tabindex")&&ak8(E)}; ak8=function(E){E=E.tabIndex;return typeof E==="number"&&E>=0&&E<32768}; iC=function(E,e,l){if(!e&&!l)return null;var k=e?String(e).toUpperCase():null;return TD(E,function(H){return(!k||H.nodeName==k)&&(!l||typeof H.className==="string"&&g.i_(H.className.split(/\s+/),l))},!0)}; TD=function(E,e,l){E&&!l&&(E=E.parentNode);for(l=0;E;){if(e(E))return E;E=E.parentNode;l++}return null}; s3=function(E){this.T=E||g.t7.document||document}; hs9=function(){this.T=this.NJ=null}; cb=function(){}; jM=function(){if(!yz())throw Error();}; yz=function(){return!(!Ib||!Ib.performance)}; MSy=function(E){return g.AV?"webkit"+E:E.toLowerCase()}; FZ=function(E){return function(){return E}}; g.fl=function(){}; NrW=function(E){var e=e||0;return function(){return E.apply(this,Array.prototype.slice.call(arguments,0,e))}}; Vz=function(E){var e=!1,l;return function(){e||(l=E(),e=!0);return l}}; SM=function(E){var e=E;return function(){if(e){var l=e;e=null;l()}}}; rT=function(E,e,l){var k=0;return function(H){g.t7.clearTimeout(k);var O=arguments;k=g.t7.setTimeout(function(){E.apply(l,O)},e)}}; DG=function(E,e,l,k){this.top=E;this.right=e;this.bottom=l;this.left=k}; bC=function(E){return E.right-E.left}; vb=function(E,e){return E==e?!0:E&&e?E.top==e.top&&E.right==e.right&&E.bottom==e.bottom&&E.left==e.left:!1}; Pb=function(E,e,l){e instanceof g.Nd?(E.left+=e.x,E.right+=e.x,E.top+=e.y,E.bottom+=e.y):(E.left+=e,E.right+=e,typeof l==="number"&&(E.top+=l,E.bottom+=l));return E}; g.ab=function(E,e,l,k){this.left=E;this.top=e;this.width=l;this.height=k}; Ll=function(E,e){return E==e?!0:E&&e?E.left==e.left&&E.width==e.width&&E.top==e.top&&E.height==e.height:!1}; g.MV=function(E,e,l){if(typeof e==="string")(e=hV(E,e))&&(E.style[e]=l);else for(var k in e){l=E;var H=e[k],O=hV(l,k);O&&(l.style[O]=H)}}; hV=function(E,e){var l=ZWl[e];if(!l){var k=W29(e);l=k;E.style[k]===void 0&&(k=(g.AV?"Webkit":NV?"Moz":null)+oG9(k),E.style[k]!==void 0&&(l=k));ZWl[e]=l}return l}; g.ZG=function(E,e){var l=E.style[W29(e)];return typeof l!=="undefined"?l:E.style[hV(E,e)]||""}; Yv=function(E,e){var l=tu(E);return l.defaultView&&l.defaultView.getComputedStyle&&(E=l.defaultView.getComputedStyle(E,null))?E[e]||E.getPropertyValue(e)||"":""}; m_=function(E,e){return Yv(E,e)||(E.currentStyle?E.currentStyle[e]:null)||E.style&&E.style[e]}; g.Kl=function(E,e,l){if(e instanceof g.Nd){var k=e.x;e=e.y}else k=e,e=l;E.style.left=g.gT(k,!1);E.style.top=g.gT(e,!1)}; nl=function(E){try{return E.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}}; Y60=function(E){var e=tu(E),l=m_(E,"position"),k=l=="fixed"||l=="absolute";for(E=E.parentNode;E&&E!=e;E=E.parentNode)if(E.nodeType==11&&E.host&&(E=E.host),l=m_(E,"position"),k=k&&l=="static"&&E!=e.documentElement&&E!=e.body,!k&&(E.scrollWidth>E.clientWidth||E.scrollHeight>E.clientHeight||l=="fixed"||l=="absolute"||l=="relative"))return E;return null}; g.Rb=function(E){var e=tu(E),l=new g.Nd(0,0);if(E==(e?tu(e):document).documentElement)return l;E=nl(E);e=qd(e);e=vGp(e.T);l.x=E.left+e.x;l.y=E.top+e.y;return l}; gG8=function(E,e){var l=new g.Nd(0,0),k=Cl(tu(E));if(!Gde(k,"parent"))return l;do{var H=k==e?g.Rb(E):m$l(E);l.x+=H.x;l.y+=H.y}while(k&&k!=e&&k!=k.parent&&(E=k.frameElement)&&(k=k.parent));return l}; g.sd=function(E,e){E=K2p(E);e=K2p(e);return new g.Nd(E.x-e.x,E.y-e.y)}; m$l=function(E){E=nl(E);return new g.Nd(E.left,E.top)}; K2p=function(E){if(E.nodeType==1)return m$l(E);E=E.changedTouches?E.changedTouches[0]:E;return new g.Nd(E.clientX,E.clientY)}; g.tV=function(E,e,l){if(e instanceof g.YX)l=e.height,e=e.width;else if(l==void 0)throw Error("missing height argument");E.style.width=g.gT(e,!0);E.style.height=g.gT(l,!0)}; g.gT=function(E,e){typeof E=="number"&&(E=(e?Math.round(E):E)+"px");return E}; g.qV=function(E){var e=nGl;if(m_(E,"display")!="none")return e(E);var l=E.style,k=l.display,H=l.visibility,O=l.position;l.visibility="hidden";l.position="absolute";l.display="inline";E=e(E);l.display=k;l.position=O;l.visibility=H;return E}; nGl=function(E){var e=E.offsetWidth,l=E.offsetHeight,k=g.AV&&!e&&!l;return(e===void 0||k)&&E.getBoundingClientRect?(E=nl(E),new g.YX(E.right-E.left,E.bottom-E.top)):new g.YX(e,l)}; g.Ef=function(E,e){E.style.display=e?"":"none"}; eq=function(E){return E?E.passive&&RsX()?E:E.capture||!1:!1}; lZ=function(E,e,l,k){return typeof E.addEventListener==="function"?(E.addEventListener(e,l,eq(k)),!0):!1}; kb=function(E){if(E.prerendering)return 3;var e;return(e={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[E.visibilityState||E.webkitVisibilityState||E.mozVisibilityState||""])!=null?e:0}; s18=function(){}; H1=function(E){E.P87=!0;return E}; tS0=function(){return(Pj||a$)&&Mo?Mo.mobile:!Of()&&(ZW("iPod")||ZW("iPhone")||ZW("Android")||ZW("IEMobile"))}; Of=function(){return(Pj||a$)&&Mo?!Mo.mobile&&(ZW("iPad")||ZW("Android")||ZW("Silk")):ZW("iPad")||ZW("Android")&&!ZW("Mobile")||ZW("Silk")}; Az=function(E){try{return!!E&&E.location.href!=null&&Gde(E,"foo")}catch(e){return!1}}; Cf=function(E,e){if(E)for(var l in E)Object.prototype.hasOwnProperty.call(E,l)&&e(E[l],l,E)}; Er7=function(){var E=[];Cf(q6X,function(e){E.push(e)}); return E}; eLW=function(E){var e,l;return(l=(e=/https?:\/\/[^\/]+/.exec(E))==null?void 0:e[0])!=null?l:""}; Hep=function(){var E=lWS("IFRAME"),e={};g.nW(kf9(),function(l){E.sandbox&&E.sandbox.supports&&E.sandbox.supports(l)&&(e[l]=!0)}); return e}; lWS=function(E,e){e=e===void 0?document:e;return e.createElement(String(E).toLowerCase())}; OeW=function(E){for(var e=E;E&&E!=E.parent;)E=E.parent,Az(E)&&(e=E);return e}; CKp=function(E){E=E||pf();for(var e=new XjX(g.t7.location.href,!1),l=null,k=E.length-1,H=k;H>=0;--H){var O=E[H];!l&&uF0.test(O.url)&&(l=O);if(O.url&&!O.T){e=O;break}}H=null;O=E.length&&E[k].url;e.depth!==0&&O&&(H=E[k]);return new ATe(e,H,l)}; pf=function(){var E=g.t7,e=[],l=null;do{var k=E;if(Az(k)){var H=k.location.href;l=k.document&&k.document.referrer||null}else H=l,l=null;e.push(new XjX(H||""));try{E=k.parent}catch(O){E=null}}while(E&&k!==E);k=0;for(E=e.length-1;k<=E;++k)e[k].depth=E-k;k=g.t7;if(k.location&&k.location.ancestorOrigins&&k.location.ancestorOrigins.length===e.length-1)for(E=1;Ee&&(e=l.length);return 3997-e-E.Z.length-1}; B1=function(E,e){this.T=E;this.depth=e}; WkS=function(){function E(A,C){return A==null?C:A} var e=pf(),l=Math.max(e.length-1,0),k=CKp(e);e=k.T;var H=k.G,O=k.Z,X=[];O&&X.push(new B1([O.url,O.T?2:0],E(O.depth,1)));H&&H!=O&&X.push(new B1([H.url,2],0));e.url&&e!=O&&X.push(new B1([e.url,0],E(e.depth,l)));k=g.o7(X,function(A,C){return X.slice(0,X.length-C)}); !e.url||(O||H)&&e!=O||(H=eLW(e.url))&&k.push([new B1([H,1],E(e.depth,l))]);k.push([]);return g.o7(k,function(A){return Q$0(l,A)})}; Q$0=function(E,e){g.wP(e,function(H){return H.depth>=0}); var l=zs(e,function(H,O){return Math.max(H,O.depth)},-1),k=FlX(l+2); k[0]=E;g.nW(e,function(H){return k[H.depth+1]=H.T}); return k}; BbW=function(){var E=E===void 0?WkS():E;return E.map(function(e){return W1(e)})}; or8=function(E){var e=!1;e=e===void 0?!1:e;Ib.google_image_requests||(Ib.google_image_requests=[]);var l=lWS("IMG",Ib.document);e&&(l.attributionSrc="");l.src=E;Ib.google_image_requests.push(l)}; dP=function(E){var e="XJ";if(E.XJ&&E.hasOwnProperty(e))return E.XJ;var l=new E;E.XJ=l;E.hasOwnProperty(e);return l}; Gs=function(){this.G=new s18;this.T=yz()?new jM:new cb}; wjy=function(){Ts();var E=Ib.document;return!!(E&&E.body&&E.body.getBoundingClientRect&&typeof Ib.setInterval==="function"&&typeof Ib.clearInterval==="function"&&typeof Ib.setTimeout==="function"&&typeof Ib.clearTimeout==="function")}; zLe=function(){Ts();return BbW()}; do7=function(){}; Ts=function(){var E=dP(do7);if(!E.T){if(!Ib)throw Error("Context has not been set and window is undefined.");E.T=dP(Gs)}return E.T}; iZ=function(){throw Error("Invalid UTF8");}; Gfp=function(E,e){e=String.fromCharCode.apply(null,e);return E==null?e:E+e}; UoW=function(E){var e=!1;e=e===void 0?!1:e;if(TbW){if(e&&(ieW?!E.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(E)))throw Error("Found an unpaired surrogate");E=($oS||($oS=new TextEncoder)).encode(E)}else{for(var l=0,k=new Uint8Array(3*E.length),H=0;H>6|192;else{if(O>=55296&&O<=57343){if(O<=56319&&H=56320&&X<=57343){O=(O-55296)*1024+ X-56320+65536;k[l++]=O>>18|240;k[l++]=O>>12&63|128;k[l++]=O>>6&63|128;k[l++]=O&63|128;continue}else H--}if(e)throw Error("Found an unpaired surrogate");O=65533}k[l++]=O>>12|224;k[l++]=O>>6&63|128}k[l++]=O&63|128}}E=l===k.length?k:k.subarray(0,l)}return E}; $b=function(E){g.t7.setTimeout(function(){throw E;},0)}; JTX=function(E){return Array.prototype.map.call(E,function(e){e=e.toString(16);return e.length>1?e:"0"+e}).join("")}; cT0=function(E){for(var e=[],l=0;l>6|192:((H&64512)==55296&&k+1>18|240,e[l++]=H>>12&63|128):e[l++]=H>>12|224,e[l++]=H>>6&63|128),e[l++]=H&63|128)}return e}; g.Jz=function(E,e){e===void 0&&(e=0);yT0();e=j$X[e];for(var l=Array(Math.floor(E.length/3)),k=e[64]||"",H=0,O=0;H>2];X=e[(X&3)<<4|A>>4];A=e[(A&15)<<2|C>>6];C=e[C&63];l[O++]=""+p+X+A+C}p=0;C=k;switch(E.length-H){case 2:p=E[H+1],C=e[(p&15)<<2]||k;case 1:E=E[H],l[O]=""+e[E>>2]+e[(E&3)<<4|p>>4]+C+k}return l.join("")}; g.c1=function(E,e){if(IWv&&!e)E=g.t7.btoa(E);else{for(var l=[],k=0,H=0;H255&&(l[k++]=O&255,O>>=8);l[k++]=O}E=g.Jz(l,e)}return E}; fWy=function(E){var e=[];FkX(E,function(l){e.push(l)}); return e}; y$=function(E){var e=E.length,l=e*3/4;l%3?l=Math.floor(l):g.fe("=.",E[e-1])&&(l=g.fe("=.",E[e-2])?l-2:l-1);var k=new Uint8Array(l),H=0;FkX(E,function(O){k[H++]=O}); return H!==l?k.subarray(0,H):k}; FkX=function(E,e){function l(C){for(;k>4);X!=64&&(e(O<<4&240|X>>2),A!=64&&e(X<<6&192|A))}}; yT0=function(){if(!jq){jq={};for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],l=0;l<5;l++){var k=E.concat(e[l].split(""));j$X[l]=k;for(var H=0;H=e||(k[E]=l+1,E=Error(),HWS(E,"incident"),$b(E))}}; bZ=function(E,e,l){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(l===void 0?0:l)&&Symbol.for&&E?Symbol.for(E):E!=null?Symbol(E):Symbol():e}; a7=function(E,e){v1||P1 in E||hLe(E,M89);E[P1]|=e}; Lf=function(E,e){v1||P1 in E||hLe(E,M89);E[P1]=e}; hz=function(){return typeof BigInt==="function"}; NR=function(E,e){return e===void 0?E.T!==MR&&!!(2&(E.v5[P1]|0)):!!(2&e)&&E.T!==MR}; Nb7=function(E,e){if(E!=null)if(typeof E==="string")E=E?new I7(E,F7):ff();else if(E.constructor!==I7)if(aW8&&E!=null&&E instanceof Uint8Array)E=E.length?new I7(new Uint8Array(E),F7):ff();else{if(!e)throw Error();E=void 0}return E}; Zi=function(E,e){if(typeof e!=="number"||e<0||e>=E.length)throw Error();}; Ze9=function(E,e,l){var k=e&128?0:-1,H=E.length,O;if(O=!!H)O=E[H-1],O=O!=null&&typeof O==="object"&&O.constructor===Object;var X=H+(O?-1:0);for(e=e&128?1:0;ee.length)return!1;if(E.lengthH)return!1;if(k>>0;tz=e;qR=(E-e)/4294967296>>>0}; lq=function(E){if(E<0){EA(0-E);var e=g.T(eZ(tz,qR));E=e.next().value;e=e.next().value;tz=E>>>0;qR=e>>>0}else EA(E)}; HD=function(E,e){var l=e*4294967296+(E>>>0);return Number.isSafeInteger(l)?l:kJ(E,e)}; Kk7=function(E,e){var l=e&2147483648;l&&(E=~E+1>>>0,e=~e>>>0,E==0&&(e=e+1>>>0));E=HD(E,e);return typeof E==="number"?l?-E:E:l?"-"+E:E}; kJ=function(E,e){e>>>=0;E>>>=0;if(e<=2097151)var l=""+(4294967296*e+E);else hz()?l=""+(BigInt(e)<>>24|e<<8)&16777215,e=e>>16&65535,E=(E&16777215)+l*6777216+e*6710656,l+=e*8147497,e*=2,E>=1E7&&(l+=E/1E7>>>0,E%=1E7),l>=1E7&&(e+=l/1E7>>>0,l%=1E7),l=e+nrZ(l)+nrZ(E));return l}; nrZ=function(E){E=String(E);return"0000000".slice(E.length)+E}; RLS=function(){var E=tz,e=qR;e&2147483648?hz()?E=""+(BigInt(e|0)<>>0)):(e=g.T(eZ(E,e)),E=e.next().value,e=e.next().value,E="-"+kJ(E,e)):E=kJ(E,e);return E}; OA=function(E){if(E.length<16)lq(Number(E));else if(hz())E=BigInt(E),tz=Number(E&BigInt(4294967295))>>>0,qR=Number(E>>BigInt(32)&BigInt(4294967295));else{var e=+(E[0]==="-");qR=tz=0;for(var l=E.length,k=0+e,H=(l-e)%6+e;H<=l;k=H,H+=6)k=Number(E.slice(k,H)),qR*=1E6,tz=tz*1E6+k,tz>=4294967296&&(qR+=Math.trunc(tz/4294967296),qR>>>=0,tz>>>=0);e&&(e=g.T(eZ(tz,qR)),E=e.next().value,e=e.next().value,tz=E,qR=e)}}; eZ=function(E,e){e=~e;E?E=~E+1:e+=1;return[E,e]}; Xi=function(E){return Array.prototype.slice.call(E)}; uq=function(E){if(E!=null&&typeof E!=="number")throw Error("Value of float/double field must be a number, found "+typeof E+": "+E);return E}; s$0=function(E){return E.displayName||E.name||"unknown type name"}; Av=function(E){if(E!=null&&typeof E!=="boolean")throw Error("Expected boolean but got "+B8W(E)+": "+E);return E}; pi=function(E){switch(typeof E){case "bigint":return!0;case "number":return Ci(E);case "string":return t8W.test(E);default:return!1}}; qpZ=function(E){if(typeof E!=="number")throw rP("int32");if(!Ci(E))throw rP("int32");return E|0}; xJ=function(E){return E==null?E:qpZ(E)}; Q9=function(E){if(E==null)return E;if(typeof E==="string"&&E)E=+E;else if(typeof E!=="number")return;return Ci(E)?E|0:void 0}; WD=function(E){if(E==null)return E;if(typeof E==="string"&&E)E=+E;else if(typeof E!=="number")return;return Ci(E)?E>>>0:void 0}; luv=function(E){var e=0;e=e===void 0?0:e;if(!pi(E))throw rP("int64");var l=typeof E;switch(e){case 512:switch(l){case "string":return BD(E);case "bigint":return String(zh(64,E));default:return dW(E)}case 1024:switch(l){case "string":return EXW(E);case "bigint":return sf(zh(64,E));default:return ePW(E)}case 0:switch(l){case "string":return BD(E);case "bigint":return sf(zh(64,E));default:return Gh(E)}default:return pk(e,"Unknown format requested type for int64")}}; Th=function(E){return E==null?E:luv(E)}; kJW=function(E){if(E[0]==="-")return!1;var e=E.length;return e<20?!0:e===20&&Number(E.substring(0,6))<184467}; HkZ=function(E){var e=E.length;return E[0]==="-"?e<20?!0:e===20&&Number(E.substring(0,7))>-922337:e<19?!0:e===19&&Number(E.substring(0,6))<922337}; Okp=function(E){if(E<0){lq(E);var e=kJ(tz,qR);E=Number(e);return iq(E)?E:e}e=String(E);if(kJW(e))return e;lq(E);return HD(tz,qR)}; Xal=function(E){if(HkZ(E))return E;OA(E);return RLS()}; Gh=function(E){pi(E);E=$J(E);iq(E)||(lq(E),E=Kk7(tz,qR));return E}; dW=function(E){pi(E);E=$J(E);if(iq(E))E=String(E);else{var e=String(E);HkZ(e)?E=e:(lq(E),E=RLS())}return E}; BD=function(E){pi(E);var e=$J(Number(E));if(iq(e))return String(e);e=E.indexOf(".");e!==-1&&(E=E.substring(0,e));return Xal(E)}; EXW=function(E){var e=$J(Number(E));if(iq(e))return sf(e);e=E.indexOf(".");e!==-1&&(E=E.substring(0,e));return hz()?sf(zh(64,BigInt(E))):sf(Xal(E))}; ePW=function(E){return iq(E)?sf(Gh(E)):sf(dW(E))}; ujX=function(E){if(E==null)return E;var e=typeof E;if(e==="bigint")return String(zh(64,E));if(pi(E)){if(e==="string")return BD(E);if(e==="number")return Gh(E)}}; C2v=function(E){if(E==null)return E;var e=typeof E;if(e==="bigint")return String(Aul(64,E));if(pi(E)){if(e==="string")return pi(E),e=$J(Number(E)),iq(e)&&e>=0?E=String(e):(e=E.indexOf("."),e!==-1&&(E=E.substring(0,e)),kJW(E)||(OA(E),E=kJ(tz,qR))),E;if(e==="number")return pi(E),E=$J(E),E>=0&&iq(E)?E:Okp(E)}}; pay=function(E){if(E==null||typeof E=="string"||E instanceof I7)return E}; xdW=function(E){if(typeof E!=="string")throw Error();return E}; UA=function(E){if(E!=null&&typeof E!=="string")throw Error();return E}; Jv=function(E){return E==null||typeof E==="string"?E:void 0}; cD=function(E,e){if(!(E instanceof e))throw Error("Expected instanceof "+s$0(e)+" but got "+(E&&s$0(E.constructor)));return E}; QE9=function(E,e,l){if(E!=null&&E[y9]===jZ)return E;if(Array.isArray(E)){var k=E[P1]|0;l=k|l&32|l&2;l!==k&&Lf(E,l);return new e(E)}}; Ie=function(E){return E}; fi=function(E){var e=Wt(Fi);return e?E[e]:void 0}; V9=function(){}; SZ=function(E,e){for(var l in E)!isNaN(l)&&e(E,+l,E[l])}; WyX=function(E){var e=new V9;SZ(E,function(l,k,H){e[k]=Xi(H)}); e.lU=E.lU;return e}; oXW=function(E,e){e<100||Di(B2X,1)}; DN=function(E,e,l,k){var H=k!==void 0;k=!!k;var O=Wt(Fi),X;!H&&v1&&O&&(X=E[O])&&SZ(X,oXW);O=[];var A=E.length;X=4294967295;var C=!1,p=!!(e&64),x=p?e&128?0:-1:void 0;if(!(e&1)){var Q=A&&E[A-1];Q!=null&&typeof Q==="object"&&Q.constructor===Object?(A--,X=A):Q=void 0;if(p&&!(e&128)&&!H){C=!0;var W;X=((W=rW)!=null?W:Ie)(X-x,x,E,Q,void 0)+x}}e=void 0;for(W=0;W=X){var w=W-x,U=void 0;((U=e)!=null?U:e={})[w]=B}else O[W]=B}if(Q)for(var c in Q)A=Q[c],A!= null&&(A=l(A,k))!=null&&(W=+c,B=void 0,p&&!Number.isNaN(W)&&(B=W+x)0?void 0:E===0?T28||(T28=[0,void 0]):[-E,void 0];case "string":return[0,E];case "object":return E}}; MK=function(E,e,l){return E=hv(E,e[0],e[1],l?1:2)}; hv=function(E,e,l,k){k=k===void 0?0:k;if(E==null){var H=32;l?(E=[l],H|=128):E=[];e&&(H=H&-8380417|(e&1023)<<13)}else{if(!Array.isArray(E))throw Error("narr");H=E[P1]|0;if($d0&&1&H)throw Error("rfarr");2048&H&&!(2&H)&&UdZ();if(H&256)throw Error("farr");if(H&64)return k!==0||H&2048||Lf(E,H|2048),E;if(l&&(H|=128,l!==E[0]))throw Error("mid");a:{l=E;H|=64;var O=l.length;if(O){var X=O-1,A=l[X];if(A!=null&&typeof A==="object"&&A.constructor===Object){e=H&128?0:-1;X-=e;if(X>=1024)throw Error("pvtlmt");for(var C in A)O= +C,O1024)throw Error("spvt");H=H&-8380417|(C&1023)<<13}}}H|=64;k===0&&(H|=2048);Lf(E,H);return E}; UdZ=function(){if($d0)throw Error("carr");Di(JuX,5)}; cuX=function(E,e){if(typeof E!=="object")return E;if(Array.isArray(E)){var l=E[P1]|0;E.length===0&&l&1?E=void 0:l&2||(!e||4096&l||16&l?E=NK(E,l,!1,e&&!(l&16)):(a7(E,34),l&4&&Object.freeze(E)));return E}if(E!=null&&E[y9]===jZ)return e=E.v5,l=e[P1]|0,NR(E,l)?E:ZN(E,e,l)?YJ(E,e):NK(e,l);if(E instanceof I7)return E}; YJ=function(E,e,l){E=new E.constructor(e);l&&(E.T=MR);E.G=MR;return E}; NK=function(E,e,l,k){k!=null||(k=!!(34&e));E=DN(E,e,cuX,k);k=32;l&&(k|=2);e=e&8380609|k;Lf(E,e);return E}; yu7=function(E){var e=E.v5,l=e[P1]|0;return NR(E,l)?ZN(E,e,l)?YJ(E,e,!0):new E.constructor(NK(e,l,!1)):E}; mP=function(E){if(E.T!==MR)return!1;var e=E.v5;e=NK(e,e[P1]|0);a7(e,2048);E.v5=e;E.T=void 0;E.G=void 0;return!0}; gW=function(E){if(!mP(E)&&NR(E,E.v5[P1]|0))throw Error();}; Ki=function(E,e){e===void 0&&(e=E[P1]|0);e&32&&!(e&4096)&&Lf(E,e|4096)}; ZN=function(E,e,l){return l&2?!0:l&32&&!(l&4096)?(Lf(e,l|2),E.T=MR,!0):!1}; Re=function(E,e,l,k,H){Object.isExtensible(E);e=ni(E.v5,e,l,H);if(e!==null||k&&E.G!==MR)return e}; ni=function(E,e,l,k){if(e===-1)return null;var H=e+(l?0:-1),O=E.length-1;if(!(O<1+(l?0:-1))){if(H>=O){var X=E[O];if(X!=null&&typeof X==="object"&&X.constructor===Object){l=X[e];var A=!0}else if(H===O)l=X;else return}else l=E[H];if(k&&l!=null){k=k(l);if(k==null)return k;if(!Object.is(k,l))return A?X[e]=k:E[H]=k,k}return l}}; tv=function(E,e,l,k){gW(E);var H=E.v5;sA(H,H[P1]|0,e,l,k);return E}; sA=function(E,e,l,k,H){var O=l+(H?0:-1),X=E.length-1;if(X>=1+(H?0:-1)&&O>=X){var A=E[X];if(A!=null&&typeof A==="object"&&A.constructor===Object)return A[l]=k,e}if(O<=X)return E[O]=k,e;if(k!==void 0){var C;X=((C=e)!=null?C:e=E[P1]|0)>>13&1023||536870912;l>=X?k!=null&&(O={},E[X+(H?0:-1)]=(O[l]=k,O)):E[O]=k}return e}; k4=function(E,e,l,k,H){var O=E.v5,X=O[P1]|0;k=NR(E,X)?1:k;H=!!H||k===3;k===2&&mP(E)&&(O=E.v5,X=O[P1]|0);E=qK(O,e);var A=E===EL?7:E[P1]|0,C=eY(A,X);var p=4&C?!1:!0;if(p){4&C&&(E=Xi(E),A=0,C=lB(C,X),X=sA(O,X,e,E));for(var x=0,Q=0;x "+E)}; vo=function(E,e,l){this.buffer=E;if(l&&!e)throw Error();this.T=e}; Po=function(E,e){if(typeof E==="string")return new vo(be8(E),e);if(Array.isArray(E))return new vo(new Uint8Array(E),e);if(E.constructor===Uint8Array)return new vo(E,!1);if(E.constructor===ArrayBuffer)return E=new Uint8Array(E),new vo(E,!1);if(E.constructor===I7)return e=V$(E)||new Uint8Array(0),new vo(e,!0,E);if(E instanceof Uint8Array)return E=E.constructor===Uint8Array?E:new Uint8Array(E.buffer,E.byteOffset,E.byteLength),new vo(E,!1);throw Error();}; aK=function(E,e,l,k){this.G=null;this.W=!1;this.T=this.Z=this.S=0;this.init(E,e,l,k)}; hO=function(E){var e=0,l=0,k=0,H=E.G,O=E.T;do{var X=H[O++];e|=(X&127)<32&&(l|=(X&127)>>4);for(k=3;k<32&&X&128;k+=7)X=H[O++],l|=(X&127)<>>0,l>>>0);throw bB();}; L1=function(E,e){E.T=e;if(e>E.Z)throw aup(E.Z,e);}; My=function(E){var e=E.G,l=E.T,k=e[l++],H=k&127;if(k&128&&(k=e[l++],H|=(k&127)<<7,k&128&&(k=e[l++],H|=(k&127)<<14,k&128&&(k=e[l++],H|=(k&127)<<21,k&128&&(k=e[l++],H|=k<<28,k&128&&e[l++]&128&&e[l++]&128&&e[l++]&128&&e[l++]&128&&e[l++]&128)))))throw bB();L1(E,l);return H}; Ny=function(E){var e=E.G,l=E.T,k=e[l+0],H=e[l+1],O=e[l+2];e=e[l+3];L1(E,E.T+4);return(k<<0|H<<8|O<<16|e<<24)>>>0}; Zz=function(E){var e=Ny(E);E=Ny(E);return HD(e,E)}; Y4=function(E){var e=Ny(E),l=Ny(E);E=(l>>31)*2+1;var k=l>>>20&2047;e=4294967296*(l&1048575)+e;return k==2047?e?NaN:E*Infinity:k==0?E*4.9E-324*e:E*Math.pow(2,k-1075)*(e+4503599627370496)}; mJ=function(E){for(var e=0,l=E.T,k=l+10,H=E.G;lE.Z)throw aup(e,E.Z-l);E.T=k;return l}; MW9=function(E,e){if(e==0)return ff();var l=Ly7(E,e);E.aq&&E.W?l=E.G.subarray(l,l+e):(E=E.G,e=l+e,l=l===e?new Uint8Array(0):hPX?E.slice(l,e):new Uint8Array(E.subarray(l,e)));return l.length==0?ff():new I7(l,F7)}; K1=function(E,e,l,k){if(gR.length){var H=gR.pop();H.init(E,e,l,k);E=H}else E=new aK(E,e,l,k);this.T=E;this.Z=this.T.T;this.G=this.S=-1;N2l(this,k)}; N2l=function(E,e){e=e===void 0?{}:e;E.IE=e.IE===void 0?!1:e.IE}; Zk7=function(E,e,l,k){if(n1.length){var H=n1.pop();N2l(H,k);H.T.init(E,e,l,k);return H}return new K1(E,e,l,k)}; Y3Z=function(E){var e=E.T;if(e.T==e.Z)return!1;E.Z=E.T.T;var l=My(E.T)>>>0;e=l>>>3;l&=7;if(!(l>=0&&l<=5))throw P2S(l,E.Z);if(e<1)throw Error("Invalid field number: "+e+" (at position "+E.Z+")");E.S=e;E.G=l;return!0}; RK=function(E){switch(E.G){case 0:E.G!=0?RK(E):mJ(E.T);break;case 1:E=E.T;L1(E,E.T+8);break;case 2:if(E.G!=2)RK(E);else{var e=My(E.T)>>>0;E=E.T;L1(E,E.T+e)}break;case 5:E=E.T;L1(E,E.T+4);break;case 3:e=E.S;do{if(!Y3Z(E))throw Error("Unmatched start-group tag: stream EOF");if(E.G==4){if(E.S!=e)throw Error("Unmatched end-group tag");break}RK(E)}while(1);break;default:throw P2S(E.G,E.Z);}}; Xs=function(E,e,l){var k=E.T.Z,H=My(E.T)>>>0,O=E.T.T+H,X=O-k;X<=0&&(E.T.Z=O,l(e,E,void 0,void 0,void 0),X=O-E.T.T);if(X)throw Error("Message parsing ended unexpectedly. Expected to read "+(H+" bytes, instead read "+(H-X)+" bytes, either the data ended unexpectedly or the message misreported its own length"));E.T.T=O;E.T.Z=k}; C3=function(E){var e=My(E.T)>>>0;E=E.T;var l=Ly7(E,e);E=E.G;if(md9){var k=E,H;(H=u8)||(H=u8=new TextDecoder("utf-8",{fatal:!0}));e=l+e;k=l===0&&e===k.length?k:k.subarray(l,e);try{var O=H.decode(k)}catch(p){if(Ac===void 0){try{H.decode(new Uint8Array([128]))}catch(x){}try{H.decode(new Uint8Array([97])),Ac=!0}catch(x){Ac=!1}}!Ac&&(u8=void 0);throw p;}}else{O=l;e=O+e;l=[];for(var X=null,A,C;O=e?iZ():(C=E[O++],A<194||(C&192)!==128?(O--,iZ()):l.push((A&31)<<6|C&63)): A<240?O>=e-1?iZ():(C=E[O++],(C&192)!==128||A===224&&C<160||A===237&&C>=160||((H=E[O++])&192)!==128?(O--,iZ()):l.push((A&15)<<12|(C&63)<<6|H&63)):A<=244?O>=e-2?iZ():(C=E[O++],(C&192)!==128||(A<<28)+(C-144)>>30!==0||((H=E[O++])&192)!==128||((k=E[O++])&192)!==128?(O--,iZ()):(A=(A&7)<<18|(C&63)<<12|(H&63)<<6|k&63,A-=65536,l.push((A>>10&1023)+55296,(A&1023)+56320))):iZ(),l.length>=8192&&(X=Gfp(X,l),l.length=0);O=Gfp(X,l)}return O}; gXp=function(E){var e=My(E.T)>>>0;return MW9(E.T,e)}; p3=function(E,e){this.G=E>>>0;this.T=e>>>0}; nXZ=function(E){if(!E)return Ky8||(Ky8=new p3(0,0));if(!/^\d+$/.test(E))return null;OA(E);return new p3(tz,qR)}; xh=function(E,e){this.G=E>>>0;this.T=e>>>0}; sEe=function(E){if(!E)return RP7||(RP7=new xh(0,0));if(!/^-?\d+$/.test(E))return null;OA(E);return new xh(tz,qR)}; QL=function(){this.T=[]}; W8=function(E,e,l){for(;l>0||e>127;)E.T.push(e&127|128),e=(e>>>7|l<<25)>>>0,l>>>=7;E.T.push(e)}; B8=function(E,e){for(;e>127;)E.T.push(e&127|128),e>>>=7;E.T.push(e)}; tW9=function(E,e){if(e>=0)B8(E,e);else{for(var l=0;l<9;l++)E.T.push(e&127|128),e>>=7;E.T.push(1)}}; o4=function(E,e){E.T.push(e>>>0&255);E.T.push(e>>>8&255);E.T.push(e>>>16&255);E.T.push(e>>>24&255)}; q3e=function(){this.Z=[];this.G=0;this.T=new QL}; w6=function(E,e){e.length!==0&&(E.Z.push(e),E.G+=e.length)}; EvZ=function(E,e){z3(E,e,2);e=E.T.end();w6(E,e);e.push(E.G);return e}; e2X=function(E,e){var l=e.pop();for(l=E.G+E.T.length()-l;l>127;)e.push(l&127|128),l>>>=7,E.G++;e.push(l);E.G++}; z3=function(E,e,l){B8(E.T,e*8+l)}; lG9=function(E,e,l){if(l!=null){switch(typeof l){case "string":nXZ(l)}z3(E,e,1);switch(typeof l){case "number":E=E.T;EA(l);o4(E,tz);o4(E,qR);break;case "bigint":l=BigInt.asUintN(64,l);l=new p3(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));E=E.T;e=l.T;o4(E,l.G);o4(E,e);break;default:l=nXZ(l),E=E.T,e=l.T,o4(E,l.G),o4(E,e)}}}; d6=function(E,e,l){z3(E,e,2);B8(E.T,l.length);w6(E,E.T.end());w6(E,l)}; G3=function(){function E(){throw Error();} Object.setPrototypeOf(E,E.prototype);return E}; T3=function(E,e,l){this.v5=hv(E,e,l)}; kDW=function(E,e){if(e==null||e=="")return new E;e=JSON.parse(e);if(!Array.isArray(e))throw Error("dnarr");a7(e,32);return new E(e)}; $h=function(E,e,l){this.K6=E;this.vK=e;E=Wt(i8);this.T=!!E&&l===E||!1}; Uh=function(E,e){var l=l===void 0?i8:l;return new $h(E,e,l)}; Oly=function(E,e,l,k,H){e=HlZ(e,k);e!=null&&(l=EvZ(E,l),H(e,E),e2X(E,l))}; yL=function(E,e,l,k){var H=k[E];if(H)return H;H={};H.k$=k;H.Uk=ike(k[0]);var O=k[1],X=1;O&&O.constructor===Object&&(H.extensions=O,O=k[++X],typeof O==="function"&&(H.j3=!0,Jc!=null||(Jc=O),c8!=null||(c8=k[X+1]),O=k[X+=2]));for(var A={};O&&Array.isArray(O)&&O.length&&typeof O[0]==="number"&&O[0]>0;){for(var C=0;C>BigInt(32)));W8(E.T,l.G,l.T);break;default:l=sEe(e),W8(E.T,l.G,l.T)}}}; n3=function(E,e,l){e=Q9(e);e!=null&&e!=null&&(z3(E,l,0),tW9(E.T,e))}; dVl=function(E,e,l){e=e==null||typeof e==="boolean"?e:typeof e==="number"?!!e:void 0;e!=null&&(z3(E,l,0),E.T.T.push(e?1:0))}; GD7=function(E,e,l){e=Jv(e);e!=null&&d6(E,l,UoW(e))}; TT8=function(E,e,l,k,H){e=HlZ(e,k);e!=null&&(l=EvZ(E,l),H(e,E),e2X(E,l))}; $Vy=function(){var E=R4;this.T=il7;this.isRepeated=0;this.G=wR;this.defaultValue=void 0;this.Z=E.messageId!=null?Yb:void 0}; UVZ=function(E,e){return function(l,k){var H={e4:!0};k&&Object.assign(H,k);l=Zk7(l,void 0,void 0,H);try{var O=new E,X=O.v5;f3(e)(X,l);var A=O}finally{l.free()}return A}}; JV9=function(E){return function(){var e=new q3e;BTS(this.v5,e,yL(L3,a4,hc,E));w6(e,e.T.end());for(var l=new Uint8Array(e.G),k=e.Z,H=k.length,O=0,X=0;X-1)return e.apply(null,g.Be(l));try{return E.T=E.Z.T.now(),e.apply(null,g.Be(l))}finally{E.S+=E.Z.T.now()-E.T,E.T=-1,E.G+=1}}}; yVS=function(E,e){this.G=E;this.Z=e;this.T=new cV8(E)}; jb0=function(){this.T={}}; F_p=function(){var E=Eq().flags,e=IG9;E=E.T[e.key];if(e.valueType==="proto"){try{var l=JSON.parse(E);if(Array.isArray(l))return l}catch(k){}return e.defaultValue}return typeof E===typeof e.defaultValue?E:e.defaultValue}; rV9=function(){this.Z=void 0;this.G=this.J=0;this.W=-1;this.Xa=new $r;Up(this.Xa,"mv",fGl).T=!0;Up(this.Xa,"omid",j8);Up(this.Xa,"epoh",j8).T=!0;Up(this.Xa,"epph",j8).T=!0;Up(this.Xa,"umt",j8).T=!0;Up(this.Xa,"phel",j8).T=!0;Up(this.Xa,"phell",j8).T=!0;Up(this.Xa,"oseid",VMX).T=!0;var E=this.Xa;E.T.sloi||(E.T.sloi=new Tf);E.T.sloi.T=!0;Up(this.Xa,"mm",e1);Up(this.Xa,"ovms",Sd8).T=!0;Up(this.Xa,"xdi",j8).T=!0;Up(this.Xa,"amp",j8).T=!0;Up(this.Xa,"prf",j8).T=!0;Up(this.Xa,"gtx",j8).T=!0;Up(this.Xa, "mvp_lv",j8).T=!0;Up(this.Xa,"ssmol",j8).T=!0;Up(this.Xa,"fmd",j8).T=!0;Up(this.Xa,"gen204simple",j8);this.T=new yVS(Ts(),this.Xa);this.S=!1;this.flags=new jb0}; Eq=function(){return dP(rV9)}; DVW=function(E,e,l,k){if(Math.random()<(k||E.T))try{if(l instanceof xb)var H=l;else H=new xb,Cf(l,function(X,A){var C=H,p=C.S++;X=Q$(A,X);C.T.push(p);C.G[p]=X}); var O=H.cN(E.G,"pagead2.googlesyndication.com","/pagead/gen_204?id="+e+"&");O&&(Ts(),or8(O))}catch(X){}}; ble=function(E,e,l){l=l===void 0?{}:l;this.error=E;this.meta=l;this.context=e.context;this.msg=e.message||"";this.id=e.id||"jserror"}; vv7=function(){var E=E===void 0?g.t7:E;return(E=E.performance)&&E.now&&E.timing?Math.floor(E.now()+E.timing.navigationStart):g.QH()}; PC0=function(){var E=E===void 0?g.t7:E;return(E=E.performance)&&E.now?E.now():null}; aGv=function(E,e,l){this.label=E;this.type=e;this.value=l;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; kx=function(){var E=window;this.events=[];this.G=E||g.t7;var e=null;E&&(E.google_js_reporting_queue=E.google_js_reporting_queue||[],this.events=E.google_js_reporting_queue,e=E.google_measure_js_timing);this.T=ly()||(e!=null?e:Math.random()<1)}; L_W=function(E){E&&HJ&&ly()&&(HJ.clearMarks("goog_"+E.label+"_"+E.uniqueId+"_start"),HJ.clearMarks("goog_"+E.label+"_"+E.uniqueId+"_end"))}; Oq=function(E,e,l,k,H,O,X){var A="";E&&(A+=E+":");l&&(A+="//",e&&(A+=e+"@"),A+=l,k&&(A+=":"+k));H&&(A+=H);O&&(A+="?"+O);X&&(A+="#"+X);return A}; g.Xw=function(E){return E.match(h2l)}; MM8=function(E){return E?decodeURI(E):E}; g.uy=function(E){return MM8(g.Xw(E)[3]||null)}; Ae=function(E){return MM8(g.Xw(E)[5]||null)}; g.NTS=function(E){E=g.Xw(E);return Oq(E[1],E[2],E[3],E[4])}; CY=function(E){E=g.Xw(E);return Oq(null,null,null,null,E[5],E[6],E[7])}; Zl7=function(E){var e=E.indexOf("#");return e<0?E:E.slice(0,e)}; pY=function(E,e){if(E){E=E.split("&");for(var l=0;l=0){var O=E[l].substring(0,k);H=E[l].substring(k+1)}else O=E[l];e(O,H?IE(H):"")}}}; xx=function(E,e){if(!e)return E;var l=E.indexOf("#");l<0&&(l=E.length);var k=E.indexOf("?");if(k<0||k>l){k=l;var H=""}else H=E.substring(k+1,l);E=[E.slice(0,k),H,E.slice(l)];l=E[1];E[1]=e?l?l+"&"+e:e:l;return E[0]+(E[1]?"?"+E[1]:"")+E[2]}; QP=function(E,e,l){if(Array.isArray(e))for(var k=0;k=0&&el)H=l;k+=e.length+1;return IE(E.slice(k,H!==-1?H:0))}; TG=function(E,e){for(var l=E.search(d4),k=0,H,O=[];(H=w4(E,k,e,l))>=0;)O.push(E.substring(k,H)),k=Math.min(E.indexOf("&",H)+1||l,l);O.push(E.slice(k));return O.join("").replace(gv9,"$1")}; K_0=function(E,e,l){return o5(TG(E,e),e,l)}; nv0=function(){var E=iy;this.T=$x;this.rd="jserror";this.mw=!0;this.YG=null;this.G=this.j5;this.tN=E===void 0?null:E}; R29=function(E,e,l){var k=Uq;return qU(Eq().T.T,function(){try{if(k.tN&&k.tN.T){var H=k.tN.start(E.toString(),3);var O=e();k.tN.end(H)}else O=e()}catch(A){var X=k.mw;try{L_W(H),X=k.G(E,new Je(cJ(A)),void 0,l)}catch(C){k.j5(217,C)}if(!X)throw A;}return O})()}; yP=function(E,e,l,k){return qU(Eq().T.T,function(){var H=g.LS.apply(0,arguments);return R29(E,function(){return e.apply(l,H)},k)})}; cJ=function(E){var e=E.toString();E.name&&e.indexOf(E.name)==-1&&(e+=": "+E.name);E.message&&e.indexOf(E.message)==-1&&(e+=": "+E.message);if(E.stack)a:{E=E.stack;var l=e;try{E.indexOf(l)==-1&&(E=l+"\n"+E);for(var k;E!=k;)k=E,E=E.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");e=E.replace(/\n */g,"\n");break a}catch(H){e=l;break a}e=void 0}return e}; Je=function(E){ble.call(this,Error(E),{message:E})}; sb8=function(){Ib&&typeof Ib.google_measure_js_timing!="undefined"&&(Ib.google_measure_js_timing||iy.disable())}; tMW=function(E){Uq.YG=function(e){g.nW(E,function(l){l(e)})}}; qdZ=function(E,e){return R29(E,e)}; j1=function(E,e){return yP(E,e)}; I5=function(E,e,l,k){Uq.j5(E,e,l,k)}; Fw=function(){return Date.now()-Eb0}; e$X=function(){var E=Eq().Z,e=fY>=0?Fw()-fY:-1,l=VP?Fw()-S1:-1,k=r4>=0?Fw()-r4:-1;if(E==947190542)return 100;if(E==79463069)return 200;E=[2E3,4E3];var H=[250,500,1E3];I5(637,Error(),.001);var O=e;l!=-1&&l1500&&k<4E3?500:X}; D4=function(E,e,l){var k=new DG(0,0,0,0);this.time=E;this.volume=null;this.Z=e;this.T=k;this.G=l}; by=function(E,e,l,k,H,O,X,A){this.S=E;this.j=e;this.Z=l;this.J=k;this.T=H;this.W=O;this.G=X;this.N=A}; ksW=function(E){var e=E!==E.top,l=E.top===OeW(E),k=-1,H=0;if(e&&l&&E.top.mraid){k=3;var O=E.top.mraid}else k=(O=E.mraid)?e?l?2:1:0:-1;O&&(O.IS_GMA_SDK||(H=2),S97(lie,function(X){return typeof O[X]==="function"})||(H=1)); return{Rj:O,compatibility:H,Iu4:k}}; HfX=function(){var E=window.document;return E&&typeof E.elementFromPoint==="function"}; OfS=function(E,e,l){if(E&&e!==null&&e!=e.top){if(!e.top)return new g.YX(-12245933,-12245933);e=e.top}try{return(l===void 0?0:l)?(new g.YX(e.innerWidth,e.innerHeight)).round():D$8(e||window).round()}catch(k){return new g.YX(-12245933,-12245933)}}; vJ=function(E,e,l){try{if(E){if(!e.top)return new DG(-12245933,-12245933,-12245933,-12245933);e=e.top}var k=OfS(E,e,l),H=k.height,O=k.width;if(O===-12245933)return new DG(O,O,O,O);var X=qd(e.document);var A=vGp(X.T);var C=A.x,p=A.y;return new DG(p,C+O,p+H,C)}catch(x){return new DG(-12245933,-12245933,-12245933,-12245933)}}; PJ=function(E,e){e=Math.pow(10,e);return Math.floor(E*e)/e}; X1W=function(E){return new DG(E.top,E.right,E.bottom,E.left)}; u7S=function(E){var e=E.top||0,l=E.left||0;return new DG(e,l+(E.width||0),e+(E.height||0),l)}; a5=function(E){return E!=null&&E>=0&&E<=1}; Azl=function(){var E=g.vj();return E?LY("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(e){return S8(E,e)})||S8(E,"OMI/")&&!S8(E,"XiaoMi/")?!0:S8(E,"Presto")&&S8(E,"Linux")&&!S8(E,"X11")&&!S8(E,"Android")&&!S8(E,"Mobi"):!1}; CZW=function(){this.Z=!Az(Ib.top);this.isMobileDevice=Of()||tS0();var E=pf();this.domain=E.length>0&&E[E.length-1]!=null&&E[E.length-1].url!=null?g.uy(E[E.length-1].url)||"":"";this.T=new DG(0,0,0,0);this.S=new g.YX(0,0);this.W=new g.YX(0,0);this.j=new DG(0,0,0,0);this.frameOffset=new g.Nd(0,0);this.J=0;this.N=!1;this.G=!(!Ib||!ksW(Ib).Rj);this.update(Ib)}; p1W=function(E,e){e&&e.screen&&(E.S=new g.YX(e.screen.width,e.screen.height))}; xRl=function(E,e){a:{var l=E.T?new g.YX(bC(E.T),E.T.getHeight()):new g.YX(0,0);e=e===void 0?Ib:e;e!==null&&e!=e.top&&(e=e.top);var k=0,H=0;try{var O=e.document,X=O.body,A=O.documentElement;if(O.compatMode=="CSS1Compat"&&A.scrollHeight)k=A.scrollHeight!=l.height?A.scrollHeight:A.offsetHeight,H=A.scrollWidth!=l.width?A.scrollWidth:A.offsetWidth;else{var C=A.scrollHeight,p=A.scrollWidth,x=A.offsetHeight,Q=A.offsetWidth;A.clientHeight!=x&&(C=X.scrollHeight,p=X.scrollWidth,x=X.offsetHeight,Q=X.offsetWidth); C>l.height?C>x?(k=C,H=p):(k=x,H=Q):C0||E.N)return!0;E=Ts().G.isVisible();var e=kb(ME)===0;return E||e}; he=function(){return dP(CZW)}; Z4=function(E){this.Z=E;this.G=0;this.T=null}; Yx=function(E,e,l){this.Z=E;this.J0=l===void 0?"na":l;this.W=[];this.isInitialized=!1;this.S=new D4(-1,!0,this);this.T=this;this.N=e;this.pg=this.V=!1;this.h0="uk";this.Qd=!1;this.J=!0}; mI=function(E,e){g.i_(E.W,e)||(E.W.push(e),e.gx(E.T),e.sS(E.S),e.iI()&&(E.V=!0))}; Q70=function(E){E=E.T;E.hH();E.xo();var e=he();e.j=vJ(!1,E.Z,e.isMobileDevice);xRl(he(),E.Z);E.S.T=E.y8()}; Whe=function(E){E.V=E.W.length?LY(E.W,function(e){return e.iI()}):!1}; BPl=function(E){var e=g.fW(E.W);g.nW(e,function(l){l.sS(E.S)})}; g4=function(E){var e=g.fW(E.W);g.nW(e,function(l){l.gx(E.T)}); E.T!=E||BPl(E)}; KY=function(E,e,l,k){this.element=E;this.T=new DG(0,0,0,0);this.Z=null;this.J=new DG(0,0,0,0);this.G=e;this.Xa=l;this.Qd=k;this.SR=!1;this.timestamp=-1;this.V=new by(e.S,this.element,this.T,new DG(0,0,0,0),0,0,Fw(),0);this.W=void 0}; obX=function(E,e){return E.W?new DG(Math.max(e.top+E.W.top,e.top),Math.min(e.left+E.W.right,e.right),Math.min(e.top+E.W.bottom,e.bottom),Math.max(e.left+E.W.left,e.left)):e.clone()}; nY=function(E){this.W=!1;this.T=E;this.S=function(){}}; w1l=function(E,e,l){this.Z=l===void 0?0:l;this.G=E;this.T=e==null?"":e}; z$l=function(E){switch(Math.trunc(E.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; dRX=function(E,e){return E.Ze.Z?!1:E.Ge.G?!1:typeof E.Ttypeof e.T?!1:E.T0?k[l]-k[l-1]:k[l]})}; AE=function(){this.G=new lN;this.J0=this.c5=0;this.R4=new e5;this.kt=this.j=-1;this.ND=1E3;this.Yt=new lN([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.h0=this.SR=-1}; CC=function(E,e){return yvl(E.G,e===void 0?!0:e)}; pC=function(E,e,l,k){var H=H===void 0?!1:H;l=yP(k,l);lZ(E,e,l,{capture:H})}; wG=function(E,e){e=xU(e);return e===0?0:xU(E)/e}; xU=function(E){return Math.max(E.bottom-E.top,0)*Math.max(E.right-E.left,0)}; FPe=function(E,e){if(!E||!e)return!1;for(var l=0;E!==null&&l++<100;){if(E===e)return!0;try{if(E=E.parentElement||E){var k=tu(E),H=k&&Cl(k),O=H&&H.frameElement;O&&(E=O)}}catch(X){break}}return!1}; fN0=function(E,e,l){if(!E||!e)return!1;e=Pb(E.clone(),-e.left,-e.top);E=(e.left+e.right)/2;e=(e.top+e.bottom)/2;Az(window.top)&&window.top&&window.top.document&&(window=window.top);if(!HfX())return!1;E=window.document.elementFromPoint(E,e);if(!E)return!1;e=(e=(e=tu(l))&&e.defaultView&&e.defaultView.frameElement)&&FPe(e,E);var k=E===l;E=!k&&E&&TD(E,function(H){return H===l}); return!(e||k||E)}; VZ7=function(E,e,l,k){return he().Z?!1:bC(E)<=0||E.getHeight()<=0?!0:l&&k?qdZ(208,function(){return fN0(E,e,l)}):!1}; zv=function(E,e,l){g.a.call(this);this.position=SAv.clone();this.nt=this.mC();this.Ue=-2;this.timeCreated=Date.now();this.lS=-1;this.Dc=e;this.Nm=null;this.zR=!1;this.tF=null;this.opacity=-1;this.requestSource=l;this.BGM=!1;this.e5=function(){}; this.Nr=function(){}; this.mS=new hs9;this.mS.NJ=E;this.mS.T=E;this.jZ=!1;this.V0={RO:null,CG:null};this.Mc=!0;this.Tk=null;this.EC=this.Ah=!1;Eq().J++;this.Zl=this.VH();this.Qr=-1;this.U1=null;this.hasCompleted=this.QN=!1;this.Xa=new $r;hy7(this.Xa);rvW(this);this.requestSource==1?JT(this.Xa,"od",1):JT(this.Xa,"od",0)}; rvW=function(E){E=E.mS.NJ;var e;if(e=E&&E.getAttribute)e=/-[a-z]/.test("googleAvInapp")?!1:DKX&&E.dataset?"googleAvInapp"in E.dataset:E.hasAttribute?E.hasAttribute("data-"+BrW()):!!E.getAttribute("data-"+BrW());e&&(he().G=!0)}; dG=function(E,e){e!=E.EC&&(E.EC=e,E=he(),e?E.J++:E.J>0&&E.J--)}; bip=function(E,e){if(E.U1){if(e.getName()===E.U1.getName())return;E.U1.dispose();E.U1=null}e=e.create(E.mS.T,E.Xa,E.iI());if(e=e!=null&&e.observe()?e:null)E.U1=e}; vJZ=function(E,e,l){if(!E.Nm||E.Dc==-1||e.G===-1||E.Nm.G===-1)return 0;E=e.G-E.Nm.G;return E>l?0:E}; PqW=function(E,e,l){if(E.U1){E.U1.Cp();var k=E.U1.V,H=k.S,O=H.T;if(k.J!=null){var X=k.Z;E.tF=new g.Nd(X.left-O.left,X.top-O.top)}O=E.hm()?Math.max(k.T,k.W):k.T;X={};H.volume!==null&&(X.volume=H.volume);H=E.ll(k);E.Nm=k;E.qD(O,e,l,!1,X,H,k.N)}}; aNe=function(E){if(E.zR&&E.Tk){var e=cj(E.Xa,"od")==1,l=he().T,k=E.Tk,H=E.U1?E.U1.getName():"ns",O=E.tF,X=new g.YX(bC(l),l.getHeight());l=E.hm();E={Fy6:H,tF:O,kSd:X,hm:l,fY:E.Zl.fY,dRd:e};if(e=k.G){e.Cp();H=e.V;O=H.S.T;var A=X=null;H.J!=null&&O&&(X=H.Z,X=new g.Nd(X.left-O.left,X.top-O.top),A=new g.YX(O.right-O.left,O.bottom-O.top));H=l?Math.max(H.T,H.W):H.T;l={Fy6:e.getName(),tF:X,kSd:A,hm:l,dRd:!1,fY:H}}else l=null;l&&UKX(k,E,l)}}; LPe=function(E,e,l){e&&(E.e5=e);l&&(E.Nr=l)}; g.Gv=function(){}; g.Tv=function(E){return{value:E,done:!1}}; hYe=function(){this.S=this.T=this.Z=this.G=this.W=0}; MZv=function(E){var e={};var l=g.QH()-E.W;e=(e.ptlt=l,e);(l=E.G)&&(e.pnk=l);(l=E.Z)&&(e.pnc=l);(l=E.S)&&(e.pnmm=l);(E=E.T)&&(e.pns=E);return e}; NWW=function(){s6.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; iN=function(E){return a5(E.volume)&&E.volume>0}; $U=function(E,e,l,k){l=l===void 0?!0:l;k=k===void 0?function(){return!0}:k; return function(H){var O=H[E];if(Array.isArray(O)&&k(H))return ZiX(O,e,l)}}; Uo=function(E,e){return function(l){return e(l)?l[E]:void 0}}; YAv=function(E){return function(e){for(var l=0;l0?O[H-1]+1:0,k+1).reduce(function(X,A){return X+A},0)})}; mKy=function(){this.G=this.T=""}; gJv=function(){}; c4=function(E,e){var l={};if(E!==void 0)if(e!=null)for(var k in e){var H=e[k];k in Object.prototype||H!=null&&(l[k]=typeof H==="function"?H(E):E[H])}else g.zf(l,E);return te(sq(new R5,l))}; KP9=function(){var E={};this.G=(E.vs=[1,0],E.vw=[0,1],E.am=[2,2],E.a=[4,4],E.f=[8,8],E.bm=[16,16],E.b=[32,32],E.avw=[0,64],E.avs=[64,0],E.pv=[256,256],E.gdr=[0,512],E.p=[0,1024],E.r=[0,2048],E.m=[0,4096],E.um=[0,8192],E.ef=[0,16384],E.s=[0,32768],E.pmx=[0,16777216],E.mut=[33554432,33554432],E.umutb=[67108864,67108864],E.tvoff=[134217728,134217728],E);this.T={};for(var e in this.G)this.G[e][1]>0&&(this.T[e]=0);this.Z=0}; y1=function(E,e){var l=E.G[e],k=l[1];E.Z+=l[0];k>0&&E.T[e]==0&&(E.T[e]=1)}; nJ7=function(E){var e=g.AT(E.G),l=0,k;for(k in E.T)g.i_(e,k)&&E.T[k]==1&&(l+=E.G[k][1],E.T[k]=2);return l}; RY9=function(E){var e=0,l;for(l in E.T){var k=E.T[l];if(k==1||k==2)e+=E.G[l][1]}return e}; j5=function(){this.T=this.G=0}; Ix=function(){AE.call(this);this.Z=new e5;this.jR=this.V=this.Qd=0;this.N=-1;this.rH=new e5;this.W=new e5;this.T=new lN;this.J=this.S=-1;this.pg=new e5;this.ND=2E3;this.fg=new j5;this.b3=new j5;this.gH=new j5}; fC=function(E,e,l){var k=E.jR;VP||l||E.N==-1||(k+=e-E.N);return k}; sev=function(){this.Z=!1}; V1=function(E,e){this.Z=!1;this.S=E;this.V=e;this.W=0}; S5=function(E,e){V1.call(this,E,e);this.j=[]}; tZy=function(){}; rG=function(){}; Df=function(E,e,l,k){KY.call(this,E,e,l,k)}; bN=function(E,e,l){KY.call(this,null,E,e,l);this.N=E.isActive();this.j=0}; v4=function(E){return[E.top,E.left,E.bottom,E.right]}; P4=function(E,e,l,k,H,O){O=O===void 0?new rG:O;zv.call(this,e,l,k);this.Ns=H;this.vZ=0;this.cq={};this.R3=new KP9;this.nJ={};this.I6="";this.gH=null;this.In=!1;this.T=[];this.jP=O.G();this.J=O.Z();this.S=null;this.Z=-1;this.J0=this.V=void 0;this.kt=this.pg=0;this.h0=-1;this.ND=this.b3=!1;this.Qd=this.N=this.G=this.Yx=this.dC=0;new lN;this.fg=this.jR=0;this.R4=-1;this.fM=0;this.j=g.fl;this.SR=[this.mC()];this.jE=2;this.X7={};this.X7.pause="p";this.X7.resume="r";this.X7.skip="s";this.X7.mute="m";this.X7.unmute= "um";this.X7.exitfullscreen="ef";this.W=null;this.Yt=this.rH=!1;this.GX=Math.floor(Date.now()/1E3-1704067200);this.c5=0}; ax=function(E){E.hasCompleted=!0;E.fM!=0&&(E.fM=3)}; LC=function(E){return E===void 0?E:Number(E)?PJ(E,3):0}; hE=function(E,e){return E.SR[e!=null&&eMath.max(1E4,E.Z/3)?0:e);var l=E.j(E)||{};l=l.currentTime!==void 0?l.currentTime:E.pg;var k=l-E.pg,H=0;k>=0?(E.kt+=e,E.fg+=Math.max(e-k,0),H=Math.min(k,E.kt)):E.jR+=Math.abs(k);k!=0&&(E.kt=0);E.R4==-1&&k>0&&(E.R4=r4>=0?Fw()-r4:-1);E.pg=l;return H}; eTW=function(E,e){LY(E.J,function(l){return l.S==e.S})||E.J.push(e)}; lz7=function(E){var e=Oo(E.Ad().T,1);return MQ(E,e)}; MQ=function(E,e,l){return e>=15E3?!0:E.b3?(l===void 0?0:l)?!0:E.Z>0?e>=E.Z/2:E.h0>0?e>=E.h0:!1:!1}; kNX=function(E){var e=PJ(E.Zl.fY,2),l=E.R3.Z,k=E.Zl,H=hE(E),O=LC(H.S),X=LC(H.J),A=LC(k.volume),C=PJ(H.j,2),p=PJ(H.kt,2),x=PJ(k.fY,2),Q=PJ(H.SR,2),W=PJ(H.h0,2);k=PJ(k.CM,2);var B=E.TI().clone().round();E=E.U1&&E.U1.Z?(E.U1?E.U1.Z:null).clone().round():null;H=CC(H,!1);return{nzz:e,Nq:l,Z3:O,EF:X,QU:A,Ss:C,dL:p,fY:x,FE:Q,IA:W,CM:k,position:B,BS:E,hF:H}}; O17=function(E,e){H1Z(E.T,e,function(){return{nzz:0,Nq:void 0,Z3:-1,EF:-1,QU:-1,Ss:-1,dL:-1,fY:-1,FE:-1,IA:-1,CM:-1,position:void 0,BS:void 0,hF:[]}}); E.T[e]=kNX(E)}; H1Z=function(E,e,l){for(var k=E.length;k0?1:0;Q.atos= kU(p.T);Q.ssb=kU(p.Yt,!1);Q.amtos=yvl(p.T,!1);Q.uac=E.dC;Q.vpt=p.Z.T;x=="nio"&&(Q.nio=1,Q.avms="nio");Q.gmm="4";Q.gdr=MQ(E,p.Z.T,!0)?1:0;Q.efpf=E.jE;if(x=="gsv"||x=="nis")x=E.U1,x.j>0&&(Q.nnut=x.j);Q.tcm=qAS(E);Q.nmt=E.jR;Q.bt=E.fg;Q.pst=E.R4;Q.vpaid=E.V;Q.dur=E.Z;Q.vmtime=E.pg;Q.is=E.R3.Z;E.T.length>=1&&(Q.i0=E.T[0].Nq,Q.a0=[E.T[0].QU],Q.c0=[E.T[0].fY],Q.ss0=[E.T[0].CM],x=E.T[0].position,O=E.T[0].BS,Q.p0=x?v4(x):void 0,x&&O&&!vb(O,x)&&(Q.cp0=v4(O)));E.T.length>=2&&(Q.i1=E.T[1].Nq,Q.a1=YU(E.T[1].Z3, E.T[1].QU,E.T[1].EF),Q.c1=YU(E.T[1].Ss,E.T[1].fY,E.T[1].dL),Q.ss1=YU(E.T[1].FE,E.T[1].CM,E.T[1].IA),x=E.T[1].position,O=E.T[1].BS,Q.p1=x?v4(x):void 0,x&&O&&!vb(O,x)&&(Q.cp1=v4(O)),Q.mtos1=E.T[1].hF);E.T.length>=3&&(Q.i2=E.T[2].Nq,Q.a2=YU(E.T[2].Z3,E.T[2].QU,E.T[2].EF),Q.c2=YU(E.T[2].Ss,E.T[2].fY,E.T[2].dL),Q.ss2=YU(E.T[2].FE,E.T[2].CM,E.T[2].IA),x=E.T[2].position,O=E.T[2].BS,Q.p2=x?v4(x):void 0,x&&O&&!vb(O,x)&&(Q.cp2=v4(O)),Q.mtos2=E.T[2].hF);E.T.length>=4&&(Q.i3=E.T[3].Nq,Q.a3=YU(E.T[3].Z3,E.T[3].QU, E.T[3].EF),Q.c3=YU(E.T[3].Ss,E.T[3].fY,E.T[3].dL),Q.ss3=YU(E.T[3].FE,E.T[3].CM,E.T[3].IA),x=E.T[3].position,O=E.T[3].BS,Q.p3=x?v4(x):void 0,x&&O&&!vb(O,x)&&(Q.cp3=v4(O)),Q.mtos3=E.T[3].hF);Q.cs=RY9(E.R3);e&&(Q.ic=nJ7(E.R3),Q.dvpt=p.Z.G,Q.dvs=uN(p.G,.5),Q.dfvs=uN(p.G,1),Q.davs=uN(p.T,.5),Q.dafvs=uN(p.T,1),l&&(p.Z.G=0,jeX(p.G),jeX(p.T)),E.JW()&&(Q.dtos=p.Qd,Q.dav=p.V,Q.dtoss=E.vZ+1,l&&(p.Qd=0,p.V=0,E.vZ++)),Q.dat=p.W.G,Q.dft=p.pg.G,l&&(p.W.G=0,p.pg.G=0));Q.ps=[A.W.width,A.W.height];Q.bs=[bC(A.T),A.T.getHeight()]; Q.scs=[A.S.width,A.S.height];Q.dom=A.domain;E.Yx&&(Q.vds=E.Yx);if(E.J.length>0||E.jP)e=g.fW(E.J),E.jP&&e.push(E.jP),Q.pings=g.o7(e,function(W){return W.toString()}); e=g.o7(g.JE(E.J,function(W){return W.J()}),function(W){return W.getId()}); c78(e);Q.ces=e;E.G&&(Q.vmer=E.G);E.N&&(Q.vmmk=E.N);E.Qd&&(Q.vmiec=E.Qd);Q.avms=E.U1?E.U1.getName():"ns";E.U1&&g.zf(Q,E.U1.wP());k?(Q.c=PJ(E.Zl.fY,2),Q.ss=PJ(E.Zl.CM,2)):Q.tth=Fw()-CBl;Q.mc=PJ(p.kt,2);Q.nc=PJ(p.j,2);Q.mv=LC(p.J);Q.nv=LC(p.S);Q.lte=PJ(E.Ue,2);k=hE(E,H);CC(p);Q.qmtos=CC(k);Q.qnc=PJ(k.j,2);Q.qmv=LC(k.J);Q.qnv=LC(k.S);Q.qas=k.S>0?1:0;Q.qi=E.I6;Q.avms||(Q.avms="geo");Q.psm=p.fg.T;Q.psv=p.fg.getValue();Q.psfv=p.b3.getValue();Q.psa=p.gH.getValue();C=ave(C.Xa);C.length&&(Q.veid=C);E.W&&g.zf(Q, MZv(E.W));Q.avas=E.Ck();Q.vs=E.g8();Q.co=poW(E);Q.tm=p.c5;Q.tu=p.J0;return Q}; Xo7=function(E,e){if(g.i_(xyZ,e))return!0;var l=E.cq[e];return l!==void 0?(E.cq[e]=!0,!l):!1}; poW=function(E){var e=E.c5.toString(10).padStart(2,"0");e=""+E.GX+e;E.c5<99&&E.c5++;return e}; WJl=function(){this.T={};var E=Cl();gG(this,E,document);var e=QKX();try{if("1"==e){for(var l=E.parent;l!=E.top;l=l.parent)gG(this,l,l.document);gG(this,E.top,E.top.document)}}catch(k){}}; QKX=function(){var E=document.documentElement;try{if(!Az(Cl().top))return"2";var e=[],l=Cl(E.ownerDocument);for(E=l;E!=l.top;E=E.parent)if(E.frameElement)e.push(E.frameElement);else break;return e&&e.length!=0?"1":"0"}catch(k){return"2"}}; gG=function(E,e,l){pC(l,"mousedown",function(){return BRW(E)},301); pC(e,"scroll",function(){return o4l(E)},302); pC(l,"touchmove",function(){return wo8(E)},303); pC(l,"mousemove",function(){return zTX(E)},304); pC(l,"keydown",function(){return dyW(E)},305)}; BRW=function(E){g.t0(E.T,function(e){e.Z>1E5||++e.Z})}; o4l=function(E){g.t0(E.T,function(e){e.T>1E5||++e.T})}; wo8=function(E){g.t0(E.T,function(e){e.T>1E5||++e.T})}; dyW=function(E){g.t0(E.T,function(e){e.G>1E5||++e.G})}; zTX=function(E){g.t0(E.T,function(e){e.S>1E5||++e.S})}; GNW=function(){this.T=[];this.G=[]}; KC=function(E,e){return g.Gd(E.T,function(l){return l.I6==e})}; TRS=function(E,e){return e?g.Gd(E.T,function(l){return l.mS.NJ==e}):null}; i17=function(E,e){return g.Gd(E.G,function(l){return l.BQ()==2&&l.I6==e})}; Rx=function(){var E=nC;return E.T.length==0?E.G:E.G.length==0?E.T:g.FO(E.G,E.T)}; $yl=function(E,e){E=e.BQ()==1?E.T:E.G;var l=dr(E,function(k){return k==e}); return l!=-1?(E.splice(l,1),e.U1&&e.U1.unobserve(),e.dispose(),!0):!1}; Uy7=function(E){var e=nC;if($yl(e,E)){switch(E.BQ()){case 0:var l=function(){return null}; case 2:l=function(){return i17(e,E.I6)}; break;case 1:l=function(){return KC(e,E.I6)}}for(var k=l();k;k=l())$yl(e,k)}}; JO9=function(E){var e=nC;E=g.JE(E,function(l){return!TRS(e,l.mS.NJ)}); e.T.push.apply(e.T,g.Be(E))}; cO9=function(E){var e=[];g.nW(E,function(l){LY(nC.T,function(k){return k.mS.NJ===l.mS.NJ&&k.I6===l.I6})||(nC.T.push(l),e.push(l))})}; so=function(){this.T=this.G=null}; yOe=function(E,e){function l(k,H){e(k,H)} if(E.G==null)return!1;E.T=g.Gd(E.G,function(k){return k!=null&&k.iZ()}); E.T&&(E.T.init(l)?Q70(E.T.T):e(E.T.T.UC(),E.T));return E.T!=null}; tE=function(E){E=jKv(E);nY.call(this,E.length?E[E.length-1]:new Yx(Ib,0));this.Z=E;this.G=null}; jKv=function(E){if(!E.length)return[];E=(0,g.JE)(E,function(l){return l!=null&&l.t4()}); for(var e=1;el.time?e:l},E[0])}; l$=function(E){E=E===void 0?Ib:E;nY.call(this,new Yx(E,2))}; kW=function(){var E=VYX();Yx.call(this,Ib.top,E,"geo")}; VYX=function(){Eq();var E=he();return E.Z||E.G?0:2}; SLX=function(){}; HV=function(){this.done=!1;this.T={MH:0,WH:0,Rqt:0,Na:0,MY:-1,jW:0,L2:0,eW:0,Scg:0};this.W=null;this.J=!1;this.Z=null;this.j=0;this.G=new Z4(this)}; X8=function(){var E=Ol;E.J||(E.J=!0,rOW(E,function(){return E.S.apply(E,g.Be(g.LS.apply(0,arguments)))}),E.S())}; Dy7=function(){dP(SLX);var E=dP(so);E.T!=null&&E.T.T?Q70(E.T.T):he().update(Ib)}; u$=function(E,e,l){if(!E.done&&(E.G.cancel(),e.length!=0)){E.Z=null;try{Dy7();var k=Fw();Eq().W=k;if(dP(so).T!=null)for(var H=0;H=0?Fw()-fY:-1,A=Fw();H.T.MY==-1&&(X=A);var C=he(),p=Eq(),x=yI(p.Xa),Q=Rx();try{if(Q.length>0){var W=C.T;W&&(x.bs=[bC(W),W.getHeight()]);var B=C.W;B&&(x.ps=[B.width,B.height]);Ib.screen&&(x.scs=[Ib.screen.width,Ib.screen.height])}else x.url=encodeURIComponent(Ib.location.href.substring(0,512)),O.referrer&&(x.referrer=encodeURIComponent(O.referrer.substring(0,512))); x.tt=X;x.pt=fY;x.bin=p.G;Ib.google_osd_load_pub_page_exp!==void 0&&(x.olpp=Ib.google_osd_load_pub_page_exp);x.deb=[1,H.T.MH,H.T.WH,H.T.Na,H.T.MY,0,H.G.G,H.T.jW,H.T.L2,H.T.eW,H.T.Scg,-1].join(";");x.tvt=v4X(H,A);C.G&&(x.inapp=1);if(Ib!==null&&Ib!=Ib.top){Q.length>0&&(x.iframe_loc=encodeURIComponent(Ib.location.href.substring(0,512)));var w=C.j;x.is=[bC(w),w.getHeight()]}}catch(U){x.error=1}Ol.Z=x}W=g.o$(Ol.Z);B=Eq().T;cj(B.Z,"prf")==1?(w=new tc,H=B.T,O=0,H.T>-1&&(O=H.Z.T.now()-H.T),w=Xt(w,1,uq(H.S+ O),0),H=B.T,w=Xt(w,5,xJ(H.T>-1?H.G+1:H.G),0),w=Xt(w,2,Th(B.G.T.Z()),"0"),w=Xt(w,3,Th(B.G.T.G()),"0"),B=Xt(w,4,Th(B.G.T.T()),"0"),w={},B=(w.pf=g.Jz(B.Z()),w)):B={};g.zf(W,B);g.zf(e,k,l,W,E())}])}; LJy=function(){var E=azZ||Ib;if(!E)return"";var e=[];if(!E.location||!E.location.href)return"";e.push("url="+encodeURIComponent(E.location.href.substring(0,512)));E.document&&E.document.referrer&&e.push("referrer="+encodeURIComponent(E.document.referrer.substring(0,512)));return e.join("&")}; AB=function(){var E="youtube.player.web_20250723_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250723_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250723_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250723_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),e;if(((e=E)==null?void 0:e.length)==2)return E[1];E="youtube.player.web_20250723_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var l;return((l=E)==null?void 0:l.length)==3?"20"+E[1]+E[2]:null}; hTl=function(){return"av.default_js".includes("ima_html5_sdk")?{Qc:"ima",oi:null}:"av.default_js".includes("ima_native_sdk")?{Qc:"nima",oi:null}:"av.default_js".includes("admob-native-video-javascript")?{Qc:"an",oi:null}:"youtube.player.web_20250723_00_RC00".includes("cast_js_sdk")?{Qc:"cast",oi:AB()}:"youtube.player.web_20250723_00_RC00".includes("youtube.player.web")?{Qc:"yw",oi:AB()}:"youtube.player.web_20250723_00_RC00".includes("outstream_web_client")?{Qc:"out",oi:AB()}:"youtube.player.web_20250723_00_RC00".includes("drx_rewarded_web")? {Qc:"r",oi:AB()}:"youtube.player.web_20250723_00_RC00".includes("gam_native_web_video")?{Qc:"n",oi:AB()}:"youtube.player.web_20250723_00_RC00".includes("admob_interstitial_video")?{Qc:"int",oi:AB()}:{Qc:"j",oi:null}}; xW=function(E,e){var l={sv:"967"};Cy!==null&&(l.v=Cy);l.cb=MYy;l.nas=nC.T.length;l.msg=E;e!==void 0&&(E=NRv(e))&&(l.e=py[E]);return l}; QB=function(E){return I$(E,"custom_metric_viewable")}; NRv=function(E){var e=QB(E)?"custom_metric_viewable":E.toLowerCase();return xr(NQ,function(l){return l==e})}; Z1X=function(){this.T=void 0;this.G=!1;this.Z=0;this.S=-1;this.W="tos"}; g4X=function(E){try{var e=E.split(",");return e.length>g.AT(YLX).length?null:zs(e,function(l,k){k=k.toLowerCase().split("=");if(k.length!=2||myy[k[0]]===void 0||!myy[k[0]](k[1]))throw Error("Entry ("+k[0]+", "+k[1]+") is invalid.");l[k[0]]=k[1];return l},{})}catch(l){return null}}; KJX=function(E,e){if(E.T==void 0)return 0;switch(E.W){case "mtos":return E.G?Xb(e.T,E.T):Xb(e.G,E.T);case "tos":return E.G?Oo(e.T,E.T):Oo(e.G,E.T)}return 0}; WV=function(E,e,l,k){V1.call(this,e,k);this.j=E;this.N=l}; BV=function(){}; oD=function(E){V1.call(this,"fully_viewable_audible_half_duration_impression",E)}; wq=function(E){this.T=E}; zM=function(E,e){V1.call(this,E,e)}; dq=function(E){S5.call(this,"measurable_impression",E)}; GM=function(){wq.apply(this,arguments)}; TM=function(E,e,l){bN.call(this,E,e,l)}; i$=function(E){E=E===void 0?Ib:E;nY.call(this,new Yx(E,2))}; $W=function(E,e,l){bN.call(this,E,e,l)}; Ul=function(E){E=E===void 0?Ib:E;nY.call(this,new Yx(E,2))}; JB=function(){Yx.call(this,Ib,2,"mraid");this.fg=0;this.kt=this.SR=!1;this.j=null;this.G=ksW(this.Z);this.S.T=new DG(0,0,0,0);this.c5=!1}; cV=function(E,e,l){E.JC("addEventListener",e,l)}; tY7=function(E){Eq().S=!!E.JC("isViewable");cV(E,"viewableChange",n4S);E.JC("getState")==="loading"?cV(E,"ready",RTW):sK7(E)}; sK7=function(E){typeof E.G.Rj.AFMA_LIDAR==="string"?(E.SR=!0,qL9(E)):(E.G.compatibility=3,E.j="nc",E.fail("w"))}; qL9=function(E){E.kt=!1;var e=cj(Eq().Xa,"rmmt")==1,l=!!E.JC("isViewable");(e?!l:1)&&Ts().setTimeout(j1(524,function(){E.kt||(Ehy(E),I5(540,Error()),E.j="mt",E.fail("w"))}),500); eZS(E);cV(E,E.G.Rj.AFMA_LIDAR,lsS)}; eZS=function(E){var e=cj(Eq().Xa,"sneio")==1,l=E.G.Rj.AFMA_LIDAR_EXP_1!==void 0,k=E.G.Rj.AFMA_LIDAR_EXP_2!==void 0;(e=e&&k)&&(E.G.Rj.AFMA_LIDAR_EXP_2=!0);l&&(E.G.Rj.AFMA_LIDAR_EXP_1=!e)}; Ehy=function(E){E.JC("removeEventListener",E.G.Rj.AFMA_LIDAR,lsS);E.SR=!1}; k38=function(E,e){if(E.JC("getState")==="loading")return new g.YX(-1,-1);e=E.JC(e);if(!e)return new g.YX(-1,-1);E=parseInt(e.width,10);e=parseInt(e.height,10);return isNaN(E)||isNaN(e)?new g.YX(-1,-1):new g.YX(E,e)}; RTW=function(){try{var E=dP(JB);E.JC("removeEventListener","ready",RTW);sK7(E)}catch(e){I5(541,e)}}; lsS=function(E,e){try{var l=dP(JB);l.kt=!0;var k=E?new DG(E.y,E.x+E.width,E.y+E.height,E.x):new DG(0,0,0,0);var H=Fw(),O=NE();var X=new D4(H,O,l);X.T=k;X.volume=e;l.sS(X)}catch(A){I5(542,A)}}; n4S=function(E){var e=Eq(),l=dP(JB);E&&!e.S&&(e.S=!0,l.c5=!0,l.j&&l.fail("w",!0))}; yB=function(){this.isInitialized=!1;this.T=this.G=null;var E={};this.j=(E.start=this.vj,E.firstquartile=this.Hj,E.midpoint=this.Dz,E.thirdquartile=this.r9,E.complete=this.MA,E.error=this.Pj,E.pause=this.Pt,E.resume=this.XD,E.skip=this.KU,E.viewable_impression=this.OM,E.mute=this.zK,E.unmute=this.zK,E.fullscreen=this.zZ,E.exitfullscreen=this.NA,E.fully_viewable_audible_half_duration_impression=this.OM,E.measurable_impression=this.OM,E.abandon=this.Pt,E.engagedview=this.OM,E.impression=this.OM,E.creativeview= this.OM,E.progress=this.zK,E.custom_metric_viewable=this.OM,E.bufferstart=this.Pt,E.bufferfinish=this.XD,E.audio_measurable=this.OM,E.audio_audible=this.OM,E);E={};this.N=(E.overlay_resize=this.YL,E.abandon=this.Wc,E.close=this.Wc,E.collapse=this.Wc,E.overlay_unmeasurable_impression=function(e){return Zf(e,"overlay_unmeasurable_impression",NE())},E.overlay_viewable_immediate_impression=function(e){return Zf(e,"overlay_viewable_immediate_impression",NE())},E.overlay_unviewable_impression=function(e){return Zf(e, "overlay_unviewable_impression",NE())},E.overlay_viewable_end_of_session_impression=function(e){return Zf(e,"overlay_viewable_end_of_session_impression",NE())},E); Eq().G=3;H3Z(this);this.Z=null}; jo=function(E,e,l,k){E=E.ly(null,k,!0,e);E.S=l;JO9([E]);return E}; O3y=function(E,e,l){VpZ(e);var k=E.T;g.nW(e,function(H){var O=g.o7(H.criteria,function(X){var A=g4X(X);if(A==null)X=null;else if(X=new Z1X,A.visible!=null&&(X.T=A.visible/100),A.audible!=null&&(X.G=A.audible==1),A.time!=null){var C=A.timetype=="mtos"?"mtos":"tos",p=MpZ(A.time,"%")?"%":"ms";A=parseInt(A.time,10);p=="%"&&(A/=100);X.setTime(A,p,C)}return X}); LY(O,function(X){return X==null})||eTW(l,new WV(H.id,H.event,O,k))})}; X80=function(){var E=[],e=Eq();E.push(dP(kW));cj(e.Xa,"mvp_lv")&&E.push(dP(JB));e=[new i$,new Ul];e.push(new tE(E));e.push(new l$(Ib));return e}; usl=function(E){if(!E.isInitialized){E.isInitialized=!0;try{var e=Fw(),l=Eq(),k=he();fY=e;l.Z=79463069;E.G!=="o"&&(azZ=OeW(Ib));if(wjy()){Ol.T.WH=0;Ol.T.MY=Fw()-e;var H=X80(),O=dP(so);O.G=H;yOe(O,function(){ID()})?Ol.done||(b17(),mI(O.T.T,E),X8()):k.Z?ID():X8()}else rq=!0}catch(X){throw nC.reset(),X; }}}; b$=function(E){Ol.G.cancel();Dy=E;Ol.done=!0}; vV=function(E){if(E.G)return E.G;var e=dP(so).T;if(e)switch(e.getName()){case "nis":E.G="n";break;case "gsv":E.G="m"}E.G||(E.G="h");return E.G}; PV=function(E,e,l){if(E.T==null)return e.Yx|=4,!1;E=Ace(E.T,l,e);e.Yx|=E;return E==0}; ID=function(){var E=[new l$(Ib)],e=dP(so);e.G=E;yOe(e,function(){b$("i")})?Ol.done||(b17(),X8()):b$("i")}; C87=function(E,e){if(!E.In){var l=Zf(E,"start",NE());l=E.Ns.T(l).T;var k={id:"lidarv"};k.r=e;k.sv="967";Cy!==null&&(k.v=Cy);pY(l,function(H,O){return k[H]=H=="mtos"||H=="tos"?O:encodeURIComponent(O)}); e=LJy();pY(e,function(H,O){return k[H]=encodeURIComponent(O)}); e="//pagead2.googlesyndication.com/pagead/gen_204?"+te(sq(new R5,k));URe(e);E.In=!0}}; aD=function(E,e,l){u$(Ol,[E],!NE());O17(E,l);l!=4&&H1Z(E.SR,l,E.mC);return Zf(E,e,NE())}; H3Z=function(E){PBl(function(){var e=p89();E.G!=null&&(e.sdk=E.G);var l=dP(so);l.T!=null&&(e.avms=l.T.getName());return e})}; xUX=function(E,e,l,k){var H=TRS(nC,l);H!==null&&H.I6!==e&&(E.Q4(H),H=null);H||(e=E.ly(l,Fw(),!1,e),nC.G.length==0&&(Eq().Z=79463069),cO9([e]),H=e,H.S=vV(E),k&&(H.gH=k));return H}; Q48=function(E,e){var l=E[e];l!==void 0&&l>0&&(E[e]=Math.floor(l*1E3))}; p89=function(){var E=he(),e={},l={},k={};return Object.assign({},(e.sv="967",e),Cy!==null&&(l.v=Cy,l),(k["if"]=E.Z?"1":"0",k.nas=String(nC.T.length),k))}; Ly=function(E){V1.call(this,"audio_audible",E)}; hB=function(E){S5.call(this,"audio_measurable",E)}; M4=function(){wq.apply(this,arguments)}; N4=function(){}; Wsl=function(E){this.T=E}; Ace=function(E,e,l){E=E.G();if(typeof E==="function"){var k={};var H={};k=Object.assign({},Cy!==null&&(k.v=Cy,k),(H.sv="967",H.cb=MYy,H.e=B6W(e),H));H=Zf(l,e,NE());g.zf(k,H);l.nJ[e]=H;k=l.BQ()==2?$R7(k).join("&"):l.Ns.T(k).T;try{return E(l.I6,k,e),0}catch(O){return 2}}else return 1}; B6W=function(E){var e=QB(E)?"custom_metric_viewable":E;E=xr(NQ,function(l){return l==e}); return py[E]}; Zy=function(){yB.call(this);this.J=null;this.W=!1;this.S="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; oh7=function(E,e,l){l=l.opt_configurable_tracking_events;E.T!=null&&Array.isArray(l)&&O3y(E,l,e)}; w8Z=function(E,e,l){var k=KC(nC,e);k||(k=l.opt_nativeTime||-1,k=jo(E,e,vV(E),k),l.opt_osdId&&(k.gH=l.opt_osdId));return k}; zZX=function(E,e,l){var k=KC(nC,e);k||(k=jo(E,e,"n",l.opt_nativeTime||-1));return k}; dU8=function(E,e){var l=KC(nC,e);l||(l=jo(E,e,"h",-1));return l}; G3Z=function(E){Eq();switch(vV(E)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; $Uy=function(E,e,l,k){l=l===void 0?{}:l;var H={};g.zf(H,{opt_adElement:void 0,opt_fullscreen:void 0},l);var O=E.XL(e,l);l=O?O.Ns:E.Mu();if(H.opt_bounds)return l.T(xW("ol",k));if(k!==void 0)if(NRv(k)!==void 0)if(rq)E=xW("ue",k);else if(usl(E),Dy=="i")E=xW("i",k),E["if"]=0;else if(e=E.XL(e,H)){b:{Dy=="i"&&(e.jZ=!0);O=H.opt_fullscreen;O!==void 0&&dG(e,!!O);var X;if(O=!he().G)(O=S8(g.vj(),"CrKey")&&!(S8(g.vj(),"CrKey")&&S8(g.vj(),"SmartSpeaker"))||S8(g.vj(),"PlayStation")||S8(g.vj(),"Roku")||Azl()||S8(g.vj(), "Xbox"))||(O=g.vj(),O=S8(O,"AppleTV")||S8(O,"Apple TV")||S8(O,"CFNetwork")||S8(O,"tvOS")),O||(O=g.vj(),O=S8(O,"sdk_google_atv_x86")||S8(O,"Android TV")),O=!O;O&&(Ts(),O=kb(ME)===0);if(X=O){switch(e.BQ()){case 1:C87(e,"pv");break;case 2:E.SI(e)}b$("pv")}O=k.toLowerCase();if(X=!X)X=cj(Eq().Xa,"ssmol")&&O==="loaded"?!1:g.i_(T6v,O);if(X&&e.fM==0){Dy!="i"&&(Ol.done=!1);X=H!==void 0?H.opt_nativeTime:void 0;r4=X=typeof X==="number"?X:Fw();e.zR=!0;var A=NE();e.fM=1;e.cq={};e.cq.start=!1;e.cq.firstquartile= !1;e.cq.midpoint=!1;e.cq.thirdquartile=!1;e.cq.complete=!1;e.cq.resume=!1;e.cq.pause=!1;e.cq.skip=!1;e.cq.mute=!1;e.cq.unmute=!1;e.cq.viewable_impression=!1;e.cq.measurable_impression=!1;e.cq.fully_viewable_audible_half_duration_impression=!1;e.cq.fullscreen=!1;e.cq.exitfullscreen=!1;e.vZ=0;A||(e.Ad().N=X);u$(Ol,[e],!A)}(X=e.X7[O])&&y1(e.R3,X);cj(Eq().Xa,"fmd")||g.i_(i3e,O)&&e.jP&&e.jP.G(e,null);switch(e.BQ()){case 1:var C=QB(O)?E.j.custom_metric_viewable:E.j[O];break;case 2:C=E.N[O]}if(C&&(k=C.call(E, e,H,k),cj(Eq().Xa,"fmd")&&g.i_(i3e,O)&&e.jP&&e.jP.G(e,null),k!==void 0)){H=xW(void 0,O);g.zf(H,k);k=H;break b}k=void 0}e.fM==3&&E.Q4(e);E=k}else E=xW("nf",k);else E=void 0;else rq?E=xW("ue"):O?(E=xW(),g.zf(E,ut0(O,!0,!1,!1))):E=xW("nf");return typeof E==="string"?l.T():l.T(E)}; UU7=function(E,e){e&&(E.S=e)}; Jc7=function(E){var e={};return e.viewability=E.T,e.googleViewability=E.G,e}; cce=function(E,e,l){l=l===void 0?{}:l;E=$Uy(dP(Zy),e,l,E);return Jc7(E)}; YW=function(E){var e=g.LS.apply(1,arguments).filter(Boolean).join("&");if(!e)return E;var l=E.match(/[?&]adurl=/);return l?E.slice(0,l.index+1)+e+"&"+E.slice(l.index+1):E+(E.indexOf("?")<0?"?":"&")+e}; m4=function(E,e){return e?"&"+E+"="+encodeURIComponent(e):""}; yc0=function(E){var e=E.url;E=E.Qtz;this.G=e;this.S=E;this.Z=(new Date).getTime()-17040672E5;this.T={};for(var l=/[?&]([^&=]+)=([^&]*)/g;E=l.exec(e);)this.T[E[1]]=E[2]}; j4e=function(E){E=E.S;if(!E)return"";var e=m4("uap",E.platform)+m4("uapv",E.platformVersion)+m4("uafv",E.uaFullVersion)+m4("uaa",E.architecture)+m4("uam",E.model)+m4("uab",E.bitness);E.fullVersionList&&(e+="&uafvl="+encodeURIComponent(E.fullVersionList.map(function(l){return encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)}).join("|"))); E.wow64!=null&&(e+="&uaw="+Number(E.wow64));return e.slice(1)}; fs9=function(E,e,l,k,H){var O=window;var X=X===void 0?!1:X;var A;l?A=(X===void 0?0:X)?"//ep1.adtrafficquality.google/bg/"+Fj(l)+".js":"//pagead2.googlesyndication.com/bg/"+Fj(l)+".js":A="";X=X===void 0?!1:X;l=O.document;var C={};e&&(C._scs_=e);C._bgu_=A;C._bgp_=k;C._li_="v_h.3.0.0.0";H&&(C._upb_=H);(e=O.GoogleTyFxhY)&&typeof e.push=="function"||(e=O.GoogleTyFxhY=[]);e.push(C);e=qd(l).createElement("SCRIPT");e.type="text/javascript";e.async=!0;E=(X===void 0?0:X)?VSW(Is8,Fj(E)+".js"):VSW(FsW,Fj(E)+ ".js");g.GJ(e,E);(O=(O.GoogleTyFxhYEET||{})[e.src])?O():l.getElementsByTagName("head")[0].appendChild(e)}; V4W=function(){try{var E,e;return!!((E=window)==null?0:(e=E.top)==null?0:e.location.href)&&!1}catch(l){return!0}}; gq=function(E,e,l){l=l===void 0?Error():l;var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=E;e+=":";l instanceof Error?(this.message=e+l.message,this.stack=l.stack||""):(this.message=e+String(l),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; ny=function(){var E=Shp();E=E===void 0?"bevasrsg":E;return new Promise(function(e){var l=window===window.top?window:V4W()?window:window.top,k=l[E],H;((H=k)==null?0:H.bevasrs)?e(new Ky(k.bevasrs)):(k||(k={},k=(k.nqfbel=[],k),l[E]=k),k.nqfbel.push(function(O){e(new Ky(O))}))})}; rc0=function(E){var e={c:E.uR,e:E.nA,mc:E.W9,me:E.LC};E.yM&&(e.co={c:E.yM.Sq,a:E.yM.Rf,s:E.yM.nT});return e}; RD=function(E){g.a.call(this);this.wpc=E}; Ky=function(E){g.a.call(this);var e=this;this.D0=E;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.G=void 0;this.V1=this.D0.p;this.S=this.Gl.bind(this);this.addOnDisposeCallback(function(){return void DU7(e)})}; b3y=function(E){var e;return g.D(function(l){if(l.G==1){if(!E.D0.wpc)throw new gq(30,"NWA");return E.T?l.return(E.T):g.S(l,E.D0.wpc(),2)}e=l.T;E.T=new RD(e);return l.return(E.T)})}; DU7=function(E){E.G!==void 0&&(E.Z.forEach(function(e){var l;(l=E.G)==null||l.removeEventListener(e,E.S)}),E.G=void 0)}; vh7=function(E){var e=e===void 0?50:e;var l=[];zN(E,sl,6).forEach(function(k){co(k,2)<=e&&l.push(co(k,1))}); return l}; P89=function(E){var e=e===void 0?50:e;var l=[];zN(E,sl,6).forEach(function(k){co(k,2)>e&&l.push(co(k,1))}); return l}; ase=function(E){E.then(function(){},function(){})}; tB=function(){g.a.apply(this,arguments);this.G=1;this[LsW]=this.dispose}; q4=function(E){return{fieldType:2,fieldName:E}}; g.EM=function(E){return{fieldType:3,fieldName:E}}; hZ8=function(E){this.T=E;E.Di("/client_streamz/bg/frs",g.EM("mk"))}; M4l=function(E){this.T=E;E.Di("/client_streamz/bg/wrl",g.EM("mn"),q4("ac"),q4("sc"),g.EM("rk"),g.EM("mk"))}; N69=function(E){this.T=E;E.Vx("/client_streamz/bg/ec",g.EM("en"),g.EM("mk"))}; Z37=function(E){this.T=E;E.Di("/client_streamz/bg/el",g.EM("en"),g.EM("mk"))}; YhW=function(E){this.T=E;E.Vx("/client_streamz/bg/cec",q4("ec"),g.EM("mk"))}; mU9=function(E){this.T=E;E.Vx("/client_streamz/bg/po/csc",q4("cs"),g.EM("mk"))}; ghe=function(E){this.T=E;E.Vx("/client_streamz/bg/po/ctav",g.EM("av"),g.EM("mk"))}; Ks7=function(E){this.T=E;E.Vx("/client_streamz/bg/po/cwsc",g.EM("su"),g.EM("mk"))}; nhp=function(E){this.v5=hv(E)}; RZW=function(E,e){return FyW(E,e,qpZ)}; e3=function(E){this.v5=hv(E)}; lO=function(E){this.v5=hv(E)}; ke=function(E){this.v5=hv(E)}; H6=function(E){this.v5=hv(E)}; OM=function(E){this.v5=hv(E)}; Xc=function(E){this.v5=hv(E)}; s4S=function(E){this.v5=hv(E)}; Ex7=function(E){var e=new Xc;e=SY(e,1,E.G);var l=t4y(E);e=FyW(e,l,xdW);l=[];for(var k=[],H=g.T(E.T.keys()),O=H.next();!O.done;O=H.next())k.push(O.value.split(","));for(H=0;H>>31)&4294967295;Q=H[0];var w=H[1],U=H[2],c=H[3],V=H[4];for(B=0;B<80;B++){if(B<40)if(B<20){var F=c^w&(U^c);var r=1518500249}else F=w^U^c,r=1859775393;else B<60?(F=w&U|c&(w|U),r=2400959708):(F=w^U^c,r=3395469782);F=((Q<<5|Q>>>27)&4294967295)+F+V+r+W[B]&4294967295;V=c;c=U;U=(w<<30|w>>>2)&4294967295;w=Q;Q=F}H[0]=H[0]+Q&4294967295;H[1]=H[1]+w&4294967295;H[2]= H[2]+U&4294967295;H[3]=H[3]+c&4294967295;H[4]=H[4]+V&4294967295} function l(Q,W){if(typeof Q==="string"){Q=unescape(encodeURIComponent(Q));for(var B=[],w=0,U=Q.length;w=56;B--)O[B]=W&255,W>>>=8;e(O);for(B=W=0;B<5;B++)for(var w=24;w>=0;w-=8)Q[W++]=H[B]>>w&255;return Q} for(var H=[],O=[],X=[],A=[128],C=1;C<64;++C)A[C]=0;var p,x;E();return{reset:E,update:l,digest:k,zi:function(){for(var Q=k(),W="",B=0;B1)));X=X.next)H||(O=X);H&&(l.T==0&&k==1?RE7(l,e):(O?(k=O,k.next==l.S&&(l.S=k),k.next=k.next.next):s5p(l),t1p(l,H,3,e)))}E.Z=null}else Jo(E,3,e)}; FR=function(E,e){E.G||E.T!=2&&E.T!=3||qqe(E);E.S?E.S.next=e:E.G=e;E.S=e}; EUl=function(E,e,l,k){var H=y2(null,null,null);H.T=new g.cq(function(O,X){H.Z=e?function(A){try{var C=e.call(k,A);O(C)}catch(p){X(p)}}:O; H.G=l?function(A){try{var C=l.call(k,A);C===void 0&&A instanceof V2?X(A):O(C)}catch(p){X(p)}}:X}); H.T.Z=E;FR(E,H);return H.T}; Jo=function(E,e,l){E.T==0&&(E===l&&(e=3,l=new TypeError("Promise cannot resolve to itself")),E.T=1,mE9(l,E.Cgg,E.RK7,E)||(E.j=l,E.T=e,E.Z=null,qqe(E),e!=3||l instanceof V2||et0(E,l)))}; mE9=function(E,e,l,k){if(E instanceof g.cq)return nxW(E,e,l,k),!0;if(E)try{var H=!!E.$goog_Thenable}catch(X){H=!1}else H=!1;if(H)return E.then(e,l,k),!0;if(g.O6(E))try{var O=E.then;if(typeof O==="function")return lf0(E,O,e,l,k),!0}catch(X){return l.call(k,X),!0}return!1}; lf0=function(E,e,l,k,H){function O(C){A||(A=!0,k.call(H,C))} function X(C){A||(A=!0,l.call(H,C))} var A=!1;try{e.call(E,X,O)}catch(C){O(C)}}; qqe=function(E){E.J||(E.J=!0,g.Gy(E.lD,E))}; s5p=function(E){var e=null;E.G&&(e=E.G,E.G=e.next,e.next=null);E.G||(E.S=null);return e}; t1p=function(E,e,l,k){if(l==3&&e.G&&!e.S)for(;E&&E.W;E=E.Z)E.W=!1;if(e.T)e.T.Z=null,kvy(e,l,k);else try{e.S?e.Z.call(e.context):kvy(e,l,k)}catch(H){HC0.call(null,H)}PyZ(YqX,e)}; kvy=function(E,e,l){e==2?E.Z.call(E.context,l):E.G&&E.G.call(E.context,l)}; et0=function(E,e){E.W=!0;g.Gy(function(){E.W&&HC0.call(null,e)})}; V2=function(E){o1.call(this,E)}; g.S2=function(E,e){g.CU.call(this);this.zf=E||1;this.lw=e||g.t7;this.Eu=(0,g.CW)(this.fut,this);this.g7=g.QH()}; g.rm=function(E,e,l){if(typeof E==="function")l&&(E=(0,g.CW)(E,l));else if(E&&typeof E.handleEvent=="function")E=(0,g.CW)(E.handleEvent,E);else throw Error("Invalid listener argument");return Number(e)>2147483647?-1:g.t7.setTimeout(E,e||0)}; DQ=function(E,e){var l=null;return(new g.cq(function(k,H){l=g.rm(function(){k(e)},E); l==-1&&H(Error("Failed to schedule timer."))})).Md(function(k){g.t7.clearTimeout(l); throw k;})}; g.bW=function(E){g.a.call(this);this.j=E;this.S=0;this.Z=100;this.W=!1;this.G=new Map;this.J=new Set;this.flushInterval=3E4;this.T=new g.S2(this.flushInterval);this.T.listen("tick",this.cK,!1,this);g.L(this,this.T)}; OCy=function(E){E.T.enabled||E.T.start();E.S++;E.S>=E.Z&&E.cK()}; X4e=function(E,e){return E.J.has(e)?void 0:E.G.get(e)}; ub7=function(E){for(var e=0;e2?E.T.statusText:""}catch(l){e=""}E.S=e+" ["+E.getStatus()+"]";dQe(E)}}finally{MO(E)}}}; MO=function(E,e){if(E.T){E.J&&(clearTimeout(E.J),E.J=null);var l=E.T;E.T=null;e||E.dispatchEvent("ready");try{l.onreadystatechange=null}catch(k){}}}; Y5=function(E){var e=E.getStatus();a:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var l=!0;break a;default:l=!1}if(!l){if(e=e===0)E=g.Xw(String(E.N))[1]||null,!E&&g.t7.self&&g.t7.self.location&&(E=g.t7.self.location.protocol.slice(0,-1)),e=!iC8.test(E?E.toLowerCase():"");l=e}return l}; g.ZQ=function(E){return E.T?E.T.readyState:0}; g.mv=function(E){try{return E.T?E.T.responseText:""}catch(e){return""}}; g.gm=function(E){try{if(!E.T)return null;if("response"in E.T)return E.T.response;switch(E.Qd){case "":case "text":return E.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in E.T)return E.T.mozResponseArrayBuffer}return null}catch(e){return null}}; g.$QX=function(E){var e={};E=(E.T&&g.ZQ(E)>=2?E.T.getAllResponseHeaders()||"":"").split("\r\n");for(var l=0;l0&&C>=e};l=l===void 0?[]:l;return new kV(k,l)}; Cz=function(E){function e(w,U,c,V){Promise.resolve().then(function(){C.done();A.vg();A.dispose();X.resolve({Er:w,Ev4:U,LUH:c,yl0:V})})} function l(w,U,c,V){if(!k.logger.U7()){var F="k";U?F="h":c&&(F="u");F!=="k"?V!==0&&(k.logger.vQ(F),k.logger.En(F,w)):k.G<=0?(k.logger.vQ(F),k.logger.En(F,w),k.G=Math.floor(Math.random()*200)):k.G--}} g.a.call(this);var k=this;this.G=Math.floor(Math.random()*200);this.T=new ui;if("challenge"in E&&Ifp(E.challenge)){var H=jY(E.challenge,4,void 0,Yb);var O=jY(E.challenge,5,void 0,Yb);jY(E.challenge,7,void 0,Yb)&&(this.T=Fb7(jY(E.challenge,7,void 0,Yb)))}else H=E.program,O=E.globalName;this.addOnDisposeCallback(function(){var w,U,c;return g.D(function(V){if(V.G==1)return g.S(V,k.Z,2);w=V.T;U=w.Ev4;(c=U)==null||c();g.$0(V)})}); this.logger=jxl(E.tp||{},this.T);g.L(this,this.logger);var X=new g.AZ;this.Z=X.promise;this.logger.vQ("t");var A=this.logger.share(),C=new sH(A,"t");if(!g.t7[O])throw this.logger.lV(25),Error("EGOU");if(!g.t7[O].a)throw this.logger.lV(26),Error("ELIU");try{var p=g.t7[O].a;O=[];for(var x=[],Q=vh7(this.T),W=0;W>1,e),dx(E,E.length>>1)]}; Hyp=function(E){var e=g.T(kMy(E,Gb));E=e.next().value;e=e.next().value;return E.toString(16)+e.toString(16)}; Oye=function(E,e){var l=kMy(e);E=new Uint32Array(E.buffer);e=E[0];var k=g.T(l);l=k.next().value;k=k.next().value;for(var H=1;H>>8|X<<24,X+=O|0,X^=A+38293,O=O<<3|O>>>29,O^=X,C=C>>>8|C<<24,C+=A|0,C^=p+38293,A=A<<3|A>>>29,A^=C;O=[O,X];E[H]^=O[0];H+1=l?(globalThis.sessionStorage.removeItem(E),["e"]):["a",new Uint8Array(k.buffer,e+4)]}; Tb=function(E,e,l){l=l===void 0?[]:l;this.maxItems=E;this.T=e===void 0?0:e;this.G=l}; AB7=function(E){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!e)return new Tb(E);var l=e.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Tb(E);e=l.slice(1);e.length===1&&e[0]===""&&(e=[]);l=Number(l[0]);return isNaN(l)||l<0||l>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Tb(E)):new Tb(E,l,e)}; C$9=function(E,e){this.logger=e;try{var l=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(k){l=!1}l&&(this.index=AB7(E))}; pVy=function(E,e,l,k,H){var O=E.index?qO(E.logger,function(){return XVv(E.index,Hyp(e),l,k,H)},"W"):"u"; E.logger.vX(O)}; x4X=function(E,e,l){var k=g.T(E.index?qO(E.logger,function(){return u87(Hyp(e),l)},"R"):["u"]),H=k.next().value; k=k.next().value;E.logger.YP(H);return k}; Bq8=function(E){function e(){l-=k;l-=H;l^=H>>>13;k-=H;k-=l;k^=l<<8;H-=l;H-=k;H^=k>>>13;l-=k;l-=H;l^=H>>>12;k-=H;k-=l;k^=l<<16;H-=l;H-=k;H^=k>>>5;l-=k;l-=H;l^=H>>>3;k-=H;k-=l;k^=l<<10;H-=l;H-=k;H^=k>>>15} E=QDl(E);for(var l=2654435769,k=2654435769,H=314159265,O=E.length,X=O,A=0;X>=12;X-=12,A+=12)l+=ii(E,A),k+=ii(E,A+4),H+=ii(E,A+8),e();H+=O;switch(X){case 11:H+=E[A+10]<<24;case 10:H+=E[A+9]<<16;case 9:H+=E[A+8]<<8;case 8:k+=E[A+7]<<24;case 7:k+=E[A+6]<<16;case 6:k+=E[A+5]<<8;case 5:k+=E[A+4];case 4:l+=E[A+3]<<24;case 3:l+=E[A+2]<<16;case 2:l+=E[A+1]<<8;case 1:l+=E[A+0]}e();return W4p.toString(H)}; QDl=function(E){for(var e=[],l=0;l>7,E.error.code]);k.set(l,4);return k}; fz=function(E,e,l){$V.call(this,E);this.S=e;this.clientState=l;this.T="S";this.G="q"}; Fa=function(E){return globalThis.TextEncoder?(new TextEncoder).encode(E):g.Uf(E)}; zb8=function(E,e,l){return E instanceof By?ZC9(E,l,e,1):E.oE(l)}; SF=function(E){g.a.call(this);var e=this;this.Z=new g.AZ;this.S=0;this.G=void 0;this.state=2;this.D0=E.D0;this.Go=E.Go;this.fZ=Object.assign({},d4W,E.fZ||{});this.logger=E.D0.XP();var l;this.onError=(l=E.onError)!=null?l:function(){}; this.iT=E.iT||!1;if(GMS(E)){var k=this.D0;this.W=function(){return nU9(k).catch(function(X){X=e.reportError(new gq(e.T?20:32,"TRG:Disposed",X));e.G=X;var A;(A=e.T)==null||A.dispose();e.T=void 0;e.Z.reject(X)})}; RtW(k,function(){return void Vh(e)}); k.N===2&&Vh(this)}else this.W=E.s5R,Vh(this);var H=this.logger.share();H.vQ("o");var O=new sH(H,"o");this.Z.promise.then(function(){O.done();H.vg();H.dispose()},function(){return void H.dispose()}); this.addOnDisposeCallback(function(){e.T?(e.T.dispose(),e.T=void 0):e.G?e.logger.vg():(e.G=e.reportError(new gq(32,"TNP:Disposed")),e.logger.vg(),e.Z.reject(e.G))}); g.L(this,this.logger)}; Tqe=function(E,e){if(!(e instanceof gq))if(e instanceof vq){var l=Error(e.toString());l.stack=e.stack;e=new gq(11,"EBH:Error",l)}else e=new gq(12,"BSO:Unknown",e);return E.reportError(e)}; Vh=function(E){var e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U;return g.D(function(c){switch(c.G){case 1:e=void 0;E.S++;l=new g.AZ;E.D0 instanceof oh&&E.D0.S.push(l.promise);if(!E.iT){c.xt(2);break}k=new g.AZ;setTimeout(function(){return void k.resolve()}); return g.S(c,k.promise,2);case 2:return H=E.logger.share(),g.U9(c,4,5),E.state=5,O={},X=[],g.S(c,zb(E.D0.snapshot({uR:O,T4:X}),E.fZ.ng6,function(){return Promise.reject(new gq(15,"MDA:Timeout"))}),7); case 7:A=c.T;if(E.U7())throw new gq(E.T?20:32,"MDA:Disposed");C=X[0];E.state=6;return g.S(c,zb(zb8(E.Go,H,A),E.fZ.q_,function(){return Promise.reject(new gq(10,"BWB:Timeout"))}),8); case 8:p=c.T;if(E.U7())throw new gq(E.T?20:32,"BWB:Disposed");E.state=7;e=qO(H,function(){var F=iyW(E,p,l,C);F.Z.promise.then(function(){return void E.W()}); return F},"i"); case 5:g.r8(c);H.dispose();g.bX(c,6);break;case 4:x=g.FW(c);(Q=e)==null||Q.dispose();if(!E.G){W=Tqe(E,x);l.resolve();var V;if(V=E.D0 instanceof oh&&E.S<2)a:if(x instanceof gq)V=x.code!==32&&x.code!==20&&x.code!==10;else{if(x instanceof vq)switch(x.code){case 2:case 13:case 14:case 4:break;default:V=!1;break a}V=!0}if(V)return B=(1+Math.random()*.25)*(E.T?6E4:1E3),w=setTimeout(function(){return void E.W()},B),E.addOnDisposeCallback(function(){return void clearTimeout(w)}),c.return(); E.G=W}H.lV(E.T?13:14);E.Z.reject(E.G);return c.return();case 6:E.state=8,E.S=0,(U=E.T)==null||U.dispose(),E.T=e,E.Z.resolve(),g.$0(c)}})}; iyW=function(E,e,l,k){var H=yf(e,2)*1E3;if(H<=0)throw new gq(31,"TTM:Invalid");if(jY(e,4))return new jF(E.logger,jY(e,4),H);if(!yf(e,3))return new yh(E.logger,Sq(OL(e,1)),H);if(!k)throw new gq(4,"PMD:Undefined");k=k(Sq(OL(e,1)));if(!(k instanceof Function))throw new gq(16,"APF:Failed");E.J=Math.floor((Date.now()+H)/1E3);E=new cy(E.logger,k,yf(e,3),H);E.addOnDisposeCallback(function(){return void l.resolve()}); return E}; $4W=function(E,e){e=e instanceof gq?e:new gq(5,"TVD:error",e);return E.reportError(e)}; jD0=function(E,e,l){try{if(E.U7())throw new gq(21,"BNT:disposed");if(!E.T&&E.G)throw E.G;var k,H;return(H=(k=U4X(E,e,l))!=null?k:JBS(E,e,l))!=null?H:cBW(E,e,l)}catch(O){if(!e.LC)throw $4W(E,O);return yBX(E,l,O)}}; U4X=function(E,e,l){var k;return(k=E.T)==null?void 0:JZ(k,function(){return rx(E,e)},l,function(H){var O; if(E.T instanceof cy&&((O=e.yM)==null?0:O.nT))try{var X;(X=E.cache)==null||pVy(X,rx(E,e),H,e.yM.Sq,E.J-120)}catch(A){E.reportError(new gq(24,"ELX:write",A))}})}; JBS=function(E,e,l){var k;if((k=e.yM)!=null&&k.Rf)try{var H,O=(H=E.cache)==null?void 0:x4X(H,rx(E,e),e.yM.Sq);return O?l?qO(E.logger,function(){return g.Jz(O,2)},"a"):O:void 0}catch(X){E.reportError(new gq(23,"RXO:read",X))}}; cBW=function(E,e,l){var k={stack:[],error:void 0,hasError:!1};try{if(!e.W9)throw new gq(29,"SDF:notready");return JZ(dWy(k,new fz(E.logger,0,E.state)),function(){return rx(E,e)},l)}catch(H){k.error=H,k.hasError=!0}finally{G7p(k)}}; yBX=function(E,e,l){var k={stack:[],error:void 0,hasError:!1};try{var H=$4W(E,l);return JZ(dWy(k,new Ih(E.logger,H)),function(){return[]},e)}catch(O){k.error=O,k.hasError=!0}finally{G7p(k)}}; rx=function(E,e){return e.nA?e.nA:e.uR?qO(E.logger,function(){return e.nA=Fa(e.uR)},"c"):[]}; DK=function(){var E=0,e;return function(l){e||(e=new Ee);var k=new fz(e,E,1),H=JZ(k,function(){return Fa(l)},!0); k.dispose();E++;return H}}; bi=function(E){this.v5=hv(E)}; Iy9=function(E,e,l){this.w5=E;this.AE=e;this.metadata=l}; vy=function(E,e){e=e===void 0?{}:e;this.ovg=E;this.metadata=e;this.status=null}; Py=function(E,e,l,k,H){this.name=E;this.methodType="unary";this.requestType=e;this.responseType=l;this.T=k;this.G=H}; ah=function(E){this.v5=hv(E)}; Lz=function(E){this.v5=hv(E)}; hZ=function(E){this.v5=hv(E)}; Mh=function(E,e){this.j=E.u6n;this.N=e;this.T=E.xhr;this.Z=[];this.W=[];this.J=[];this.S=[];this.G=[];this.j&&F47(this)}; rB8=function(E,e){var l=new fyp;g.Rt(E.T,"complete",function(){if(Y5(E.T)){var k=g.mv(E.T);if(e&&E.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");k=atob(k)}try{var H=E.N(k)}catch(A){Nh(E,ZK(new vq(13,"Error when deserializing response data; error: "+A+(", response: "+k)),l));return}k=AEW(E.T.getStatus());YV(E,mR(E));k==0?Vol(E,H):Nh(E,ZK(new vq(k,"Xhr succeeded but the status code is not 200"),l))}else{k=g.mv(E.T);H=mR(E);if(k){var O=Sly(E, k);k=O.code;var X=O.details;O=O.metadata}else k=2,X="Rpc failed due to xhr error. uri: "+String(E.T.N)+", error code: "+E.T.G+", error: "+E.T.getLastError(),O=H;YV(E,H);Nh(E,ZK(new vq(k,X,O),l))}})}; F47=function(E){E.j.Ot("data",function(e){if("1"in e){var l=e["1"];try{var k=E.N(l)}catch(H){Nh(E,new vq(13,"Error when deserializing response data; error: "+H+(", response: "+l)))}k&&Vol(E,k)}if("2"in e)for(e=Sly(E,e["2"]),l=0;l-1&&E.splice(e,1)}; Vol=function(E,e){for(var l=0;l>4&15).toString(16)+(E&15).toString(16)}; Hr=function(E,e){this.G=this.T=null;this.Z=E||null;this.S=!!e}; Ai=function(E){E.T||(E.T=new Map,E.G=0,E.Z&&pY(E.Z,function(e,l){E.add(IE(e),l)}))}; NqZ=function(E,e){Ai(E);e=Cc(E,e);return E.T.has(e)}; g.Zyl=function(E,e,l){E.remove(e);l.length>0&&(E.Z=null,E.T.set(Cc(E,e),g.fW(l)),E.G=E.G+l.length)}; Cc=function(E,e){e=String(e);E.S&&(e=e.toLowerCase());return e}; L4e=function(E,e){e&&!E.S&&(Ai(E),E.Z=null,E.T.forEach(function(l,k){var H=k.toLowerCase();k!=H&&(this.remove(k),g.Zyl(this,H,l))},E)); E.S=e}; g.Yl9=function(E){var e="";g.t0(E,function(l,k){e+=k;e+=":";e+=l;e+="\r\n"}); return e}; g.pc=function(E,e,l){if(g.QI(l))return E;l=g.Yl9(l);if(typeof E==="string")return o5(E,g.yb(e),l);g.X4(E,e,l);return E}; g.xN=function(E){g.a.call(this);this.G=E;this.T={}}; m4e=function(E,e,l,k,H,O){if(Array.isArray(l))for(var X=0;X=0)return!0;try{var e=new g.tZ(E)}catch(l){return g.Gd(AAl,function(k){return E.search(k)>0})!=null}return e.J.match(COX)?!0:g.Gd(AAl,function(l){return E.match(l)!=null})!=null}; g.Ug=function(E,e){return E.replace(xT8,function(l,k){try{var H=g.Wj(e,k);if(H==null||H.toString()==null)return l;H=H.toString();if(H==""||!g.FF(g.fk(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(O){}return l})}; Ji=function(E,e){return Object.is(E,e)}; yK=function(E){var e=cr;cr=E;return e}; Qt7=function(E){if(E.Ar!==void 0){var e=jX;jX=!0;try{for(var l=g.T(E.Ar),k=l.next();!k.done;k=l.next()){var H=k.value;H.EE||(E=void 0,H.EE=!0,Qt7(H),(E=H.JJ)==null||E.call(H,H))}}finally{jX=e}}}; Wd7=function(){var E;return((E=cr)==null?void 0:E.lJ)!==!1}; BVp=function(E){E&&(E.oA=0);return yK(E)}; oeS=function(E,e){yK(e);if(E&&E.Qs!==void 0&&E.SN!==void 0&&E.Gy!==void 0){if(IX(E))for(e=E.oA;eE.oA;)E.Qs.pop(),E.Gy.pop(),E.SN.pop()}}; zrW=function(E,e,l){w6S(E);if(E.Ar.length===0&&E.Qs!==void 0)for(var k=0;k0}; dTX=function(E){E.Qs!=null||(E.Qs=[]);E.SN!=null||(E.SN=[]);E.Gy!=null||(E.Gy=[])}; w6S=function(E){E.Ar!=null||(E.Ar=[]);E.YV!=null||(E.YV=[])}; $T7=function(E){function e(){if(jX)throw Error("");if(cr!==null){var k=cr.oA++;dTX(cr);k0?" "+e:e))}}; g.Ez=function(E,e){if(E.classList)Array.prototype.forEach.call(e,function(H){g.qx(E,H)}); else{var l={};Array.prototype.forEach.call(RX(E),function(H){l[H]=!0}); Array.prototype.forEach.call(e,function(H){l[H]=!0}); e="";for(var k in l)e+=e.length>0?" "+k:k;g.sg(E,e)}}; g.ed=function(E,e){E.classList?E.classList.remove(e):g.ti(E,e)&&g.sg(E,Array.prototype.filter.call(RX(E),function(l){return l!=e}).join(" "))}; g.lw=function(E,e){E.classList?Array.prototype.forEach.call(e,function(l){g.ed(E,l)}):g.sg(E,Array.prototype.filter.call(RX(E),function(l){return!g.i_(e,l)}).join(" "))}; g.k_=function(E,e,l){l?g.qx(E,e):g.ed(E,e)}; fmX=function(E,e){var l=!g.ti(E,e);g.k_(E,e,l)}; g.HY=function(){g.CU.call(this);this.T=0;this.endTime=this.startTime=null}; V3X=function(E,e){Array.isArray(e)||(e=[e]);e=e.map(function(l){return typeof l==="string"?l:l.property+" "+l.duration+"s "+l.timing+" "+l.delay+"s"}); g.MV(E,"transition",e.join(","))}; Oz=function(E,e,l,k,H){g.HY.call(this);this.G=E;this.W=e;this.J=l;this.S=k;this.j=Array.isArray(H)?H:[H]}; SMl=function(E,e,l,k){return new Oz(E,e,{opacity:l},{opacity:k},{property:"opacity",duration:e,timing:"ease-in",delay:0})}; DT0=function(E){E=rb(E);if(E=="")return null;var e=String(E.slice(0,4)).toLowerCase();if(("url("1||E&&E.split(")"),null;if(E.indexOf("(")>0){if(/"|'/.test(E))return null;e=/([\-\w]+)\(/g;for(var l;l=e.exec(E);)if(!(l[1].toLowerCase()in rA7))return null}return E}; Xy=function(E,e){E=g.t7[E];return E&&E.prototype?(e=Object.getOwnPropertyDescriptor(E.prototype,e))&&e.get||null:null}; b$Z=function(E){var e=g.t7.CSSStyleDeclaration;return e&&e.prototype&&e.prototype[E]||null}; veW=function(E,e,l,k){if(E)return E.apply(e,k);if(g.uw&&document.documentMode<10){if(!e[l].call)throw Error("IE Clobbering detected");}else if(typeof e[l]!="function")throw Error("Clobbering detected");return e[l].apply(e,k)}; M3X=function(E){if(!E)return"";var e=document.createElement("div").style;POS(E).forEach(function(l){var k=g.AV&&l in am8?l:l.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");I$(k,"--")||I$(k,"var")||(l=veW(LdX,E,E.getPropertyValue?"getPropertyValue":"getAttribute",[l])||"",l=DT0(l),l!=null&&veW(hr0,e,e.setProperty?"setProperty":"setAttribute",[k,l]))}); return e.cssText||""}; POS=function(E){g.Ht(E)?E=g.fW(E):(E=g.AT(E),g.U6(E,"cssText"));return E}; g.CD=function(E){var e,l=e=0,k=!1;E=E.split(NVv);for(var H=0;H.4?-1:1;return(e==0?null:e)==-1?"rtl":"ltr"}; g.WY=function(E){if(E instanceof pD||E instanceof x_||E instanceof Qy)return E;if(typeof E.next=="function")return new pD(function(){return E}); if(typeof E[Symbol.iterator]=="function")return new pD(function(){return E[Symbol.iterator]()}); if(typeof E.vu=="function")return new pD(function(){return E.vu()}); throw Error("Not an iterator or iterable.");}; pD=function(E){this.G=E}; x_=function(E){this.G=E}; Qy=function(E){pD.call(this,function(){return E}); this.Z=E}; BY=function(E,e,l,k,H,O,X,A){this.T=E;this.j=e;this.Z=l;this.W=k;this.S=H;this.J=O;this.G=X;this.N=A}; oS=function(E,e){if(e==0)return E.T;if(e==1)return E.G;var l=Md(E.T,E.Z,e),k=Md(E.Z,E.S,e);E=Md(E.S,E.G,e);l=Md(l,k,e);k=Md(k,E,e);return Md(l,k,e)}; geW=function(E,e){var l=(e-E.T)/(E.G-E.T);if(l<=0)return 0;if(l>=1)return 1;for(var k=0,H=1,O=0,X=0;X<8;X++){O=oS(E,l);var A=(oS(E,l+1E-6)-O)/1E-6;if(Math.abs(O-e)<1E-6)return l;if(Math.abs(A)<1E-6)break;else O1E-6&&X<8;X++)O=0}; g.GE=function(E){g.a.call(this);this.J=1;this.Z=[];this.S=0;this.T=[];this.G={};this.j=!!E}; nel=function(E,e,l){g.Gy(function(){E.apply(e,l)})}; g.TE=function(E){this.T=E}; iw=function(E){this.T=E}; Rr7=function(E){this.data=E}; stX=function(E){return E===void 0||E instanceof Rr7?E:new Rr7(E)}; $_=function(E){this.T=E}; g.t3Z=function(E){var e=E.creation;E=E.expiration;return!!E&&Eg.QH()}; g.Uz=function(E){this.T=E}; qMy=function(){}; Jn=function(){}; cY=function(E){this.T=E;this.G=null}; yy=function(E){if(E.T==null)throw Error("Storage mechanism: Storage unavailable");E.isAvailable()||$b(Error("Storage mechanism: Storage unavailable"))}; jd=function(){var E=null;try{E=g.t7.localStorage||null}catch(e){}cY.call(this,E)}; E5p=function(){var E=null;try{E=g.t7.sessionStorage||null}catch(e){}cY.call(this,E)}; IS=function(E,e){this.G=E;this.T=e+"::"}; g.Fy=function(E){var e=new jd;return e.isAvailable()?E?new IS(e,E):e:null}; fD=function(E,e){this.T=E;this.G=e}; Vy=function(E){this.T=[];if(E)a:{if(E instanceof Vy){var e=E.LF();E=E.SG();if(this.T.length<=0){for(var l=this.T,k=0;k>>6:(O<65536?A[l++]=224|O>>>12:(A[l++]=240|O>>>18,A[l++]=128|O>>>12&63),A[l++]=128|O>>> 6&63),A[l++]=128|O&63);return A}; bw=function(E){for(var e=E.length;--e>=0;)E[e]=0}; vY=function(E,e,l,k,H){this.Io=E;this.Jb=e;this.UU=l;this.I2=k;this.IMt=H;this.GA=E&&E.length}; PY=function(E,e){this.zp=E;this.q4=0;this.O4=e}; aS=function(E,e){E.X_[E.pending++]=e&255;E.X_[E.pending++]=e>>>8&255}; LD=function(E,e,l){E.JV>16-l?(E.iP|=e<>16-E.JV,E.JV+=l-16):(E.iP|=e<>>=1,l<<=1;while(--e>0);return l>>>1}; OUW=function(E,e,l){var k=Array(16),H=0,O;for(O=1;O<=15;O++)k[O]=H=H+l[O-1]<<1;for(l=0;l<=e;l++)H=E[l*2+1],H!==0&&(E[l*2]=HU7(k[H]++,H))}; Xq0=function(E){var e;for(e=0;e<286;e++)E.nM[e*2]=0;for(e=0;e<30;e++)E.kV[e*2]=0;for(e=0;e<19;e++)E.g2[e*2]=0;E.nM[512]=1;E.Pg=E.Cy=0;E.uj=E.matches=0}; uR8=function(E){E.JV>8?aS(E,E.iP):E.JV>0&&(E.X_[E.pending++]=E.iP);E.iP=0;E.JV=0}; AoS=function(E,e,l){uR8(E);aS(E,l);aS(E,~l);Dh.CB(E.X_,E.window,e,l,E.pending);E.pending+=l}; CW7=function(E,e,l,k){var H=e*2,O=l*2;return E[H]>>7)];hn(E,X,l);A=gJ[X];A!==0&&(H-=KD[X],LD(E,H,A))}}while(k>1;X>=1;X--)MC(E,l,X);C=O;do X=E.cG[1],E.cG[1]=E.cG[E.hW--],MC(E,l,1),k=E.cG[1],E.cG[--E.N0]=X,E.cG[--E.N0]=k,l[C*2]=l[X*2]+l[k*2],E.depth[C]=(E.depth[X]>=E.depth[k]?E.depth[X]:E.depth[k])+1,l[X*2+1]=l[k*2+1]=C,E.cG[1]=C++,MC(E,l,1);while(E.hW>= 2);E.cG[--E.N0]=E.cG[1];X=e.zp;C=e.q4;k=e.O4.Io;H=e.O4.GA;O=e.O4.Jb;var p=e.O4.UU,x=e.O4.IMt,Q,W=0;for(Q=0;Q<=15;Q++)E.rY[Q]=0;X[E.cG[E.N0]*2+1]=0;for(e=E.N0+1;e<573;e++){var B=E.cG[e];Q=X[X[B*2+1]*2+1]+1;Q>x&&(Q=x,W++);X[B*2+1]=Q;if(!(B>C)){E.rY[Q]++;var w=0;B>=p&&(w=O[B-p]);var U=X[B*2];E.Pg+=U*(Q+w);H&&(E.Cy+=U*(k[B*2+1]+w))}}if(W!==0){do{for(Q=x-1;E.rY[Q]===0;)Q--;E.rY[Q]--;E.rY[Q+1]+=2;E.rY[x]--;W-=2}while(W>0);for(Q=x;Q!==0;Q--)for(B=E.rY[Q];B!==0;)k=E.cG[--e],k>C||(X[k*2+1]!==Q&&(E.Pg+=(Q- X[k*2+1])*X[k*2],X[k*2+1]=Q),B--)}OUW(l,A,E.rY)}; xO7=function(E,e,l){var k,H=-1,O=e[1],X=0,A=7,C=4;O===0&&(A=138,C=3);e[(l+1)*2+1]=65535;for(k=0;k<=l;k++){var p=O;O=e[(k+1)*2+1];++X>>=1)if(e&1&&E.nM[l*2]!==0)return 0;if(E.nM[18]!==0||E.nM[20]!==0||E.nM[26]!==0)return 1;for(l=32;l<256;l++)if(E.nM[l*2]!==0)return 1;return 0}; RS=function(E,e,l){E.X_[E.yU+E.uj*2]=e>>>8&255;E.X_[E.yU+E.uj*2+1]=e&255;E.X_[E.xk+E.uj]=l&255;E.uj++;e===0?E.nM[l*2]++:(E.matches++,e--,E.nM[(NC[l]+256+1)*2]++,E.kV[(e<256?mC[e]:mC[256+(e>>>7)])*2]++);return E.uj===E.xF-1}; tn=function(E,e){E.msg=sz[e];return e}; qC=function(E){for(var e=E.length;--e>=0;)E[e]=0}; Ec=function(E){var e=E.state,l=e.pending;l>E.PN&&(l=E.PN);l!==0&&(Dh.CB(E.output,e.X_,e.nW,l,E.yW),E.yW+=l,e.nW+=l,E.Jq+=l,E.PN-=l,e.pending-=l,e.pending===0&&(e.nW=0))}; ku=function(E,e){var l=E.SM>=0?E.SM:-1,k=E.FS-E.SM,H=0;if(E.level>0){E.WN.Y2===2&&(E.WN.Y2=Wv8(E));nD(E,E.Mm);nD(E,E.h_);xO7(E,E.nM,E.Mm.q4);xO7(E,E.kV,E.h_.q4);nD(E,E.Vp);for(H=18;H>=3&&E.g2[BmX[H]*2+1]===0;H--);E.Pg+=3*(H+1)+5+5+4;var O=E.Pg+3+7>>>3;var X=E.Cy+3+7>>>3;X<=O&&(O=X)}else O=X=k+5;if(k+4<=O&&l!==-1)LD(E,e?1:0,3),AoS(E,l,k);else if(E.strategy===4||X===O)LD(E,2+(e?1:0),3),pqS(E,em,la);else{LD(E,4+(e?1:0),3);l=E.Mm.q4+1;k=E.h_.q4+1;H+=1;LD(E,l-257,5);LD(E,k-1,5);LD(E,H-4,4);for(O=0;O>>8&255;E.X_[E.pending++]=e&255}; o59=function(E,e){var l=E.FZ,k=E.FS,H=E.qb,O=E.O9,X=E.FS>E.S1-262?E.FS-(E.S1-262):0,A=E.window,C=E.vz,p=E.ZY,x=E.FS+258,Q=A[k+H-1],W=A[k+H];E.qb>=E.MI&&(l>>=2);O>E.MN&&(O=E.MN);do{var B=e;if(A[B+H]===W&&A[B+H-1]===Q&&A[B]===A[k]&&A[++B]===A[k+1]){k+=2;for(B++;A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&A[++k]===A[++B]&&kH){E.j9=e;H=B;if(B>=O)break;Q=A[k+H-1];W=A[k+H]}}}while((e=p[e&C])>X&&--l!== 0);return H<=E.MN?H:E.MN}; Ad=function(E){var e=E.S1,l;do{var k=E.Sa-E.MN-E.FS;if(E.FS>=e+(e-262)){Dh.CB(E.window,E.window,e,e,0);E.j9-=e;E.FS-=e;E.SM-=e;var H=l=E.cX;do{var O=E.head[--H];E.head[H]=O>=e?O-e:0}while(--l);H=l=e;do O=E.ZY[--H],E.ZY[H]=O>=e?O-e:0;while(--l);k+=e}if(E.WN.hd===0)break;H=E.WN;l=E.window;O=E.FS+E.MN;var X=H.hd;X>k&&(X=k);X===0?l=0:(H.hd-=X,Dh.CB(l,H.input,H.X1,X,O),H.state.wrap===1?H.hf=X9(H.hf,l,X,O):H.state.wrap===2&&(H.hf=ua(H.hf,l,X,O)),H.X1+=X,H.kA+=X,l=X);E.MN+=l;if(E.MN+E.Oq>=3)for(k=E.FS-E.Oq, E.O1=E.window[k],E.O1=(E.O1<=3&&(E.O1=(E.O1<=3)if(l=RS(E,E.FS-E.j9,E.dR-3),E.MN-=E.dR,E.dR<=E.LG&&E.MN>=3){E.dR--;do E.FS++,E.O1=(E.O1<=3&&(E.O1=(E.O1<4096)&&(E.dR=2));if(E.qb>=3&&E.dR<=E.qb){k=E.FS+E.MN-3;l=RS(E,E.FS-1-E.HU,E.qb-3);E.MN-=E.qb-1;E.qb-=2;do++E.FS<=k&&(E.O1=(E.O1<=3&&E.FS>0&&(k=E.FS-1,l=O[k],l===O[++k]&&l===O[++k]&&l===O[++k])){for(H=E.FS+258;l===O[++k]&&l===O[++k]&&l===O[++k]&&l===O[++k]&&l===O[++k]&&l===O[++k]&&l===O[++k]&&l===O[++k]&&kE.MN&&(E.dR=E.MN)}E.dR>=3?(l=RS(E,1,E.dR-3),E.MN-=E.dR,E.FS+=E.dR,E.dR=0):(l=RS(E,0,E.window[E.FS]),E.MN--,E.FS++);if(l&&(ku(E,!1),E.WN.PN===0))return 1}E.Oq=0;return e=== 4?(ku(E,!0),E.WN.PN===0?3:4):E.uj&&(ku(E,!1),E.WN.PN===0)?1:2}; z49=function(E,e){for(var l;;){if(E.MN===0&&(Ad(E),E.MN===0)){if(e===0)return 1;break}E.dR=0;l=RS(E,0,E.window[E.FS]);E.MN--;E.FS++;if(l&&(ku(E,!1),E.WN.PN===0))return 1}E.Oq=0;return e===4?(ku(E,!0),E.WN.PN===0?3:4):E.uj&&(ku(E,!1),E.WN.PN===0)?1:2}; xu=function(E,e,l,k,H){this.cj=E;this.dDz=e;this.Q4H=l;this.Ex=k;this.func=H}; dOX=function(){this.WN=null;this.status=0;this.X_=null;this.wrap=this.pending=this.nW=this.f9=0;this.GN=null;this.U_=0;this.method=8;this.oQ=-1;this.vz=this.K4=this.S1=0;this.window=null;this.Sa=0;this.head=this.ZY=null;this.O9=this.MI=this.strategy=this.level=this.LG=this.FZ=this.qb=this.MN=this.j9=this.FS=this.dI=this.HU=this.dR=this.SM=this.xC=this.FF=this.eL=this.cX=this.O1=0;this.nM=new Dh.yA(1146);this.kV=new Dh.yA(122);this.g2=new Dh.yA(78);qC(this.nM);qC(this.kV);qC(this.g2);this.Vp=this.h_= this.Mm=null;this.rY=new Dh.yA(16);this.cG=new Dh.yA(573);qC(this.cG);this.N0=this.hW=0;this.depth=new Dh.yA(573);qC(this.depth);this.JV=this.iP=this.Oq=this.matches=this.Cy=this.Pg=this.yU=this.uj=this.xF=this.xk=0}; GyS=function(E,e){if(!E||!E.state||e>5||e<0)return E?tn(E,-2):-2;var l=E.state;if(!E.output||!E.input&&E.hd!==0||l.status===666&&e!==4)return tn(E,E.PN===0?-5:-2);l.WN=E;var k=l.oQ;l.oQ=e;if(l.status===42)if(l.wrap===2)E.hf=0,HC(l,31),HC(l,139),HC(l,8),l.GN?(HC(l,(l.GN.text?1:0)+(l.GN.J9?2:0)+(l.GN.extra?4:0)+(l.GN.name?8:0)+(l.GN.comment?16:0)),HC(l,l.GN.time&255),HC(l,l.GN.time>>8&255),HC(l,l.GN.time>>16&255),HC(l,l.GN.time>>24&255),HC(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),HC(l,l.GN.os& 255),l.GN.extra&&l.GN.extra.length&&(HC(l,l.GN.extra.length&255),HC(l,l.GN.extra.length>>8&255)),l.GN.J9&&(E.hf=ua(E.hf,l.X_,l.pending,0)),l.U_=0,l.status=69):(HC(l,0),HC(l,0),HC(l,0),HC(l,0),HC(l,0),HC(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),HC(l,3),l.status=113);else{var H=8+(l.K4-8<<4)<<8;H|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.FS!==0&&(H|=32);l.status=113;Oc(l,H+(31-H%31));l.FS!==0&&(Oc(l,E.hf>>>16),Oc(l,E.hf&65535));E.hf=1}if(l.status===69)if(l.GN.extra){for(H= l.pending;l.U_<(l.GN.extra.length&65535)&&(l.pending!==l.f9||(l.GN.J9&&l.pending>H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H)),Ec(E),H=l.pending,l.pending!==l.f9));)HC(l,l.GN.extra[l.U_]&255),l.U_++;l.GN.J9&&l.pending>H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H));l.U_===l.GN.extra.length&&(l.U_=0,l.status=73)}else l.status=73;if(l.status===73)if(l.GN.name){H=l.pending;do{if(l.pending===l.f9&&(l.GN.J9&&l.pending>H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H)),Ec(E),H=l.pending,l.pending===l.f9)){var O=1;break}O=l.U_H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H));O===0&&(l.U_=0,l.status=91)}else l.status=91;if(l.status===91)if(l.GN.comment){H=l.pending;do{if(l.pending===l.f9&&(l.GN.J9&&l.pending>H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H)),Ec(E),H=l.pending,l.pending===l.f9)){O=1;break}O=l.U_H&&(E.hf=ua(E.hf,l.X_,l.pending-H,H));O===0&&(l.status=103)}else l.status= 103;l.status===103&&(l.GN.J9?(l.pending+2>l.f9&&Ec(E),l.pending+2<=l.f9&&(HC(l,E.hf&255),HC(l,E.hf>>8&255),E.hf=0,l.status=113)):l.status=113);if(l.pending!==0){if(Ec(E),E.PN===0)return l.oQ=-1,0}else if(E.hd===0&&(e<<1)-(e>4?9:0)<=(k<<1)-(k>4?9:0)&&e!==4)return tn(E,-5);if(l.status===666&&E.hd!==0)return tn(E,-5);if(E.hd!==0||l.MN!==0||e!==0&&l.status!==666){k=l.strategy===2?z49(l,e):l.strategy===3?wqX(l,e):Qc[l.level].func(l,e);if(k===3||k===4)l.status=666;if(k===1||k===3)return E.PN===0&&(l.oQ= -1),0;if(k===2&&(e===1?(LD(l,2,3),hn(l,256,em),l.JV===16?(aS(l,l.iP),l.iP=0,l.JV=0):l.JV>=8&&(l.X_[l.pending++]=l.iP&255,l.iP>>=8,l.JV-=8)):e!==5&&(LD(l,0,3),AoS(l,0,0),e===3&&(qC(l.head),l.MN===0&&(l.FS=0,l.SM=0,l.Oq=0))),Ec(E),E.PN===0))return l.oQ=-1,0}if(e!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(HC(l,E.hf&255),HC(l,E.hf>>8&255),HC(l,E.hf>>16&255),HC(l,E.hf>>24&255),HC(l,E.kA&255),HC(l,E.kA>>8&255),HC(l,E.kA>>16&255),HC(l,E.kA>>24&255)):(Oc(l,E.hf>>>16),Oc(l,E.hf&65535));Ec(E);l.wrap>0&& (l.wrap=-l.wrap);return l.pending!==0?0:1}; WC=function(E){if(!(this instanceof WC))return new WC(E);E=this.options=Dh.assign({level:-1,method:8,chunkSize:16384,V7:15,w5n:8,strategy:0,to:""},E||{});E.raw&&E.V7>0?E.V7=-E.V7:E.AM&&E.V7>0&&E.V7<16&&(E.V7+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.WN=new Tm8;this.WN.PN=0;var e=this.WN;var l=E.level,k=E.method,H=E.V7,O=E.w5n,X=E.strategy;if(e){var A=1;l===-1&&(l=6);H<0?(A=0,H=-H):H>15&&(A=2,H-=16);if(O<1||O>9||k!==8||H<8||H>15||l<0||l>9||X<0||X>4)e=tn(e,-2);else{H===8&&(H=9); var C=new dOX;e.state=C;C.WN=e;C.wrap=A;C.GN=null;C.K4=H;C.S1=1<>=7;O<30;O++)for(KD[O]=X<<7,H=0;H<1<=p.S1&&(e===0&&(qC(p.head),p.FS=0,p.SM=0,p.Oq=0),l=new Dh.Qb(p.S1),Dh.CB(l,O,X-p.S1,p.S1,0),O=l,X=p.S1);l=E.hd;k=E.X1;H=E.input;E.hd=X;E.X1=0;E.input=O;for(Ad(p);p.MN>=3;){O=p.FS;X=p.MN-2;do p.O1=(p.O1<=4||((0,l[44])((0,l[11])(l[2],l[59]),(0,l[28])(l[23],l[13]),l[34],(0,l[48])(l[12],l[26]),l[48],l[74],l[64]),u[8]))&&(((0,l[18])(l[14],l[27]),(0,l[21])(l[77],l[41]),l[78])(l[48],l[30]),l[11])((0,l[0])(),l[30],l[40])}catch(k){(0,l[11])((0,l[8])(),l[77],l[40])}try{l[46]!=4&&((0,l[21])(l[12],l[56]),[])||(0,l[11])((0,l[8])(),l[30],l[40]),(l[46]==9||(((0,l[11])((0,l[49])(),l[30],l[40]),l[52])((0,l[18])(l[79],l[23]),l[21],l[30], l[13]),null))&&((0,l[52])((0,l[11])((0,l[8])(),l[15],l[40]),l[38],l[64],l[30]),l[11])((0,l[-3659-new Date(u[79])/1E3*16])(),l[15],l[40]),l[36]>new Date(u[63])/1E3?(0,l[52])((0,l[67])((0,l[66])(l[12],l[53]),l[26],(0,l[26])(l[16],l[18]),l[8],l[15]),l[72],l[39],l[22]):(0,l[44])((((0,l[3])((0,l[41])(),l[69],l[32]),l[13])(l[7],l[57]),l[3])((0,l[0])(),l[7],l[32]),l[70],l[34],l[7]),l[12]!=5&&(l[20]!=-10?((((((0,l[58])(l[4],l[66]),l[8])(l[4],l[35]),l[8])(l[25],l[23]),l[8])(l[68],l[38]),((0,l[74])(l[23],l[63]), l[29])(l[20],l[42]),l[74])(l[35],l[37]),(0,l[0])(l[7],l[57])):((((((0,l[34])(l[65],l[48]),l[63])(l[57]),l[53])((0,l[50])(),l[57],l[2]),(0,l[63])(l[39]),l[53])((0,l[11])(),l[39],l[2]),(0,l[53])((0,l[5])(),l[39],l[2]),l[42])(l[52],l[39]),(0,l[53])((0,l[11])(),l[57],l[2]))),l[30]!=0?(0,l[8185-new Date(u[66])/1E3])(l[63],(0,l[63])(l[65]),(0,l[65])(((0,l[65])((0,l[79])(l[13],l[40]),l[39],l[78],l[40]),l[51])(l[22],l[33]),l[16],l[25]),(0,l[74])(l[54]),(0,l[65])((0,l[45])(l[40],l[47]),l[45],l[40],l[67]), l[10]):(((0,l[14])((0,l[61])((((0,l[53])((0,l[5])(),l[72],l[2]),l[53])((0,l[5])(),l[72],l[2]),l[40])(l[58],l[39]),l[29],(0,l[40])(l[60],l[69]),l[40],(0,l[53])((0,l[5])(),l[72],l[2]),l[78],l[39]),l[new Date(u[52])/1E3],l[33],l[65]),l[40])(l[20],l[72]),(0,l[53])((0,l[47])(),l[57],l[2])),(l[44]!==-1||((0,l[14])((0,l[0])(l[64],l[54])*((0,l[40])(l[30],l[57]),l[0])(l[35],l[65]),l[53],(0,l[11])(),l[72],l[2]),0))&&(0,l[0])(l[43],l[39])*(((0,l[0])(l[68],l[69]),l[69])(l[63]),l[40])(l[60],l[51]),l[41]<=7&&(0,l[48])(l[79], l[78]),l[47]>=-10&&(l[47]>=10||((0,l[69])(l[75]),u[8]))&&(0,l[69])(l[75]),(((0,l[39])(l[75],l[19]),l[new Date(u[13])/1E3])(l[22],l[8]),l[39])(l[16],l[54])}catch(k){l[46]!==6?((0,l[10])(l[8]),l[40])(l[63],l[55]):((0,l[34])(l[60],l[31]),l[46])(l[30],l[78]),l[66]!==new Date(u[64])/1E3&&(0,l[46])(l[19],l[63]),(l[26]<=-8||((0,l[69])(l[78]),0))&&(0,l[48])(l[14],l[63])}}catch(k){return u[61]+E}return e[u[69]](u[8])}; g.dS=function(E){this.name=E}; h4X=function(E){this.v5=hv(E)}; Gn=function(E){this.v5=hv(E)}; Tn=function(E){this.v5=hv(E)}; M2l=function(E){this.v5=hv(E)}; ia=function(E){this.v5=hv(E)}; $u=function(E){this.v5=hv(E)}; Uc=function(E){this.v5=hv(E)}; Jd=function(E){this.v5=hv(E)}; cC=function(E){this.v5=hv(E)}; yc=function(E){this.v5=hv(E)}; jm=function(E){this.v5=hv(E)}; I0=function(E){this.v5=hv(E)}; F9=function(E){this.v5=hv(E)}; fF=function(E){this.v5=hv(E)}; Vc=function(E){this.v5=hv(E)}; Sm=function(E){this.v5=hv(E,500)}; rS=function(E){this.v5=hv(E)}; DP=function(E){this.v5=hv(E)}; NmS=function(E){this.v5=hv(E)}; ZU8=function(){return g.eS("yt.ads.biscotti.lastId_")||""}; YHW=function(E){g.qW("yt.ads.biscotti.lastId_",E)}; vC=function(){var E=arguments,e=ba;E.length>1?e[E[0]]=E[1]:E.length===1&&Object.assign(e,E[0])}; g.LF=function(E,e){return E in ba?ba[E]:e}; hd=function(E){var e=ba.EXPERIMENT_FLAGS;return e?e[E]:void 0}; mOS=function(E){Mf.forEach(function(e){return e(E)})}; g.ZP=function(E){return E&&window.yterr?function(){try{return E.apply(this,arguments)}catch(e){g.Nf(e)}}:E}; g.Nf=function(E){var e=g.eS("yt.logging.errors.log");e?e(E,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=g.LF("ERRORS",[]),e.push([E,"ERROR",void 0,void 0,void 0,void 0,void 0]),vC("ERRORS",e));mOS(E)}; Yu=function(E,e,l,k,H){var O=g.eS("yt.logging.errors.log");O?O(E,"WARNING",e,l,k,void 0,H):(O=g.LF("ERRORS",[]),O.push([E,"WARNING",e,l,k,void 0,H]),vC("ERRORS",O))}; mn=function(E,e){e=E.split(e);for(var l={},k=0,H=e.length;k1?E[1]:E[0])):{}}; sc=function(E,e){return R4W(E,e||{},!0)}; td=function(E,e){return R4W(E,e||{},!1)}; R4W=function(E,e,l){var k=E.split("#",2);E=k[0];k=k.length>1?"#"+k[1]:"";var H=E.split("?",2);E=H[0];H=KF(H[1]||"");for(var O in e)if(l||!g.Ce(H,O))H[O]=e[O];return g.BJ(E,H)+k}; qf=function(E){if(!e)var e=window.location.href;var l=g.Xw(E)[1]||null,k=g.uy(E);l&&k?(E=g.Xw(E),e=g.Xw(e),E=E[3]==e[3]&&E[1]==e[1]&&E[4]==e[4]):E=k?g.uy(e)===k&&(Number(g.Xw(e)[4]||null)||null)===(Number(g.Xw(E)[4]||null)||null):!0;return E}; EN=function(E){E||(E=document.location.href);E=g.Xw(E)[1]||null;return E!==null&&E==="https"}; eQ=function(E){E=sBX(E);return E===null?!1:E[0]==="com"&&E[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; t2W=function(E){E=sBX(E);return E===null?!1:E[1]==="google"?!0:E[2]==="google"?E[0]==="au"&&E[1]==="com"?!0:E[0]==="uk"&&E[1]==="co"?!0:!1:!1}; sBX=function(E){E=g.uy(E);return E!==null?E.split(".").reverse():null}; g5W=function(E){return E&&E.match(qHv)?E:IE(E)}; Hg=function(E){var e=lM;E=E===void 0?ZU8():E;var l=Object,k=l.assign,H=kq(e);var O=e.T;try{var X=O.screenX;var A=O.screenY}catch(V){}try{var C=O.outerWidth;var p=O.outerHeight}catch(V){}try{var x=O.innerWidth;var Q=O.innerHeight}catch(V){}try{var W=O.screenLeft;var B=O.screenTop}catch(V){}try{x=O.innerWidth,Q=O.innerHeight}catch(V){}try{var w=O.screen.availWidth;var U=O.screen.availTop}catch(V){}O=[W,B,X,A,w,U,C,p,x,Q];X=OfS(!1,e.T.top);A={};var c=c===void 0?g.t7:c;C=new DC;"SVGElement"in c&&"createElementNS"in c.document&&C.set(0);p=Hep();p["allow-top-navigation-by-user-activation"]&&C.set(1);p["allow-popups-to-escape-sandbox"]&&C.set(2);c.crypto&&c.crypto.subtle&&C.set(3);"TextDecoder"in c&&"TextEncoder"in c&&C.set(4);c=yAv(C);e=(A.bc=c,A.bih=X.height,A.biw=X.width,A.brdim=O.join(),A.vis=kb(e.G),A.wgl=!!Ib.WebGLRenderingContext,A);l=k.call(l,H,e);l.ca_type="image";E&&(l.bid=E);return l}; kq=function(E){var e={};e.dt=EV7;e.flash="0";a:{try{var l=E.T.top.location.href}catch(p){E=2;break a}E=l?l===E.G.location.href?0:1:2}e=(e.frm=E,e);try{e.u_tz=-(new Date).getTimezoneOffset();try{var k=Ib.history.length}catch(p){k=0}e.u_his=k;var H;e.u_h=(H=Ib.screen)==null?void 0:H.height;var O;e.u_w=(O=Ib.screen)==null?void 0:O.width;var X;e.u_ah=(X=Ib.screen)==null?void 0:X.availHeight;var A;e.u_aw=(A=Ib.screen)==null?void 0:A.availWidth;var C;e.u_cd=(C=Ib.screen)==null?void 0:C.colorDepth}catch(p){}return e}; lK8=function(){if(!e5Z)return null;var E=e5Z();return"open"in E?E:null}; g.Xm=function(E){switch(ON(E)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ON=function(E){return E&&"status"in E?E.status:-1}; g.uM=function(E,e){typeof E==="function"&&(E=g.ZP(E));return window.setTimeout(E,e)}; g.A2=function(E,e){typeof E==="function"&&(E=g.ZP(E));return window.setInterval(E,e)}; g.CE=function(E){window.clearTimeout(E)}; g.pE=function(E){window.clearInterval(E)}; g.QT=function(E){E=xq(E);return typeof E==="string"&&E==="false"?!1:!!E}; g.Wg=function(E,e){E=xq(E);return E===void 0&&e!==void 0?e:Number(E||0)}; Bg=function(){return g.LF("EXPERIMENTS_TOKEN","")}; xq=function(E){return g.LF("EXPERIMENT_FLAGS",{})[E]}; oL=function(){for(var E=[],e=g.LF("EXPERIMENTS_FORCED_FLAGS",{}),l=g.T(Object.keys(e)),k=l.next();!k.done;k=l.next())k=k.value,E.push({key:k,value:String(e[k])});l=g.LF("EXPERIMENT_FLAGS",{});k=g.T(Object.keys(l));for(var H=k.next();!H.done;H=k.next())H=H.value,H.startsWith("force_")&&e[H]===void 0&&E.push({key:H,value:String(l[H])});return E}; wv=function(E,e,l,k,H,O,X,A){function C(){(p&&"readyState"in p?p.readyState:0)===4&&e&&g.ZP(e)(p)} l=l===void 0?"GET":l;k=k===void 0?"":k;A=A===void 0?!1:A;var p=lK8();if(!p)return null;"onloadend"in p?p.addEventListener("loadend",C,!1):p.onreadystatechange=C;g.QT("debug_forward_web_query_parameters")&&(E=kbS(E));p.open(l,E,!0);O&&(p.responseType=O);X&&(p.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(k instanceof FormData));if(H=Hz7(E,H))for(var x in H)p.setRequestHeader(x,H[x]),"content-type"===x.toLowerCase()&&(l=!1);l&&p.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(A&&"setAttributionReporting"in XMLHttpRequest.prototype){E={eventSourceEligible:!0,triggerEligible:!1};try{p.setAttributionReporting(E)}catch(Q){Yu(Q)}}p.send(k);return p}; Hz7=function(E,e){e=e===void 0?{}:e;var l=qf(E),k=g.LF("INNERTUBE_CLIENT_NAME"),H=g.QT("web_ajax_ignore_global_headers_if_set"),O;for(O in Oz7){var X=g.LF(Oz7[O]),A=O==="X-Goog-AuthUser"||O==="X-Goog-PageId";O!=="X-Goog-Visitor-Id"||X||(X=g.LF("VISITOR_DATA"));var C;if(!(C=!X)){if(!(C=l||(g.uy(E)?!1:!0))){C=E;var p;if(p=g.QT("add_auth_headers_to_remarketing_google_dot_com_ping")&&O==="Authorization"&&(k==="TVHTML5"||k==="TVHTML5_UNPLUGGED"||k==="TVHTML5_SIMPLY")&&t2W(C))C=Ae(C)||"",C=C.split("/"), C="/"+(C.length>1?C[1]:""),p=C==="/pagead";C=p?!0:!1}C=!C}C||H&&e[O]!==void 0||k==="TVHTML5_UNPLUGGED"&&A||(e[O]=X)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(l||!g.uy(E))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!g.uy(E)){try{var x=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Q){}x&&(e["X-YouTube-Time-Zone"]=x)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&g.uy(E)||(e["X-YouTube-Ad-Signals"]= gS(Hg()));return e}; dv=function(E,e){e.method="POST";e.postParams||(e.postParams={});return g.zT(E,e)}; AZe=function(E,e){if(window.fetch&&e.format!=="XML"){var l={method:e.method||"GET",credentials:"same-origin"};e.headers&&(l.headers=e.headers);e.priority&&(l.priority=e.priority);E=Xyp(E,e);var k=uap(E,e);k&&(l.body=k);e.withCredentials&&(l.credentials="include");var H=e.context||g.t7,O=!1,X;fetch(E,l).then(function(A){if(!O){O=!0;X&&g.CE(X);var C=A.ok,p=function(x){x=x||{};C?e.onSuccess&&e.onSuccess.call(H,x,A):e.onError&&e.onError.call(H,x,A);e.onFinish&&e.onFinish.call(H,x,A)}; (e.format||"JSON")==="JSON"&&(C||A.status>=400&&A.status<500)?A.json().then(p,function(){p(null)}):p(null)}}).catch(function(){e.onError&&e.onError.call(H,{},{})}); E=e.timeout||0;e.onFetchTimeout&&E>0&&(X=g.uM(function(){O||(O=!0,g.CE(X),e.onFetchTimeout.call(e.context||g.t7))},E))}else g.zT(E,e)}; g.zT=function(E,e){var l=e.format||"JSON";E=Xyp(E,e);var k=uap(E,e),H=!1,O=Ci7(E,function(C){if(!H){H=!0;A&&g.CE(A);var p=g.Xm(C),x=null,Q=400<=C.status&&C.status<500,W=500<=C.status&&C.status<600;if(p||Q||W)x=pyS(E,l,C,e.convertToSafeHtml);p&&(p=xh7(l,C,x));x=x||{};Q=e.context||g.t7;p?e.onSuccess&&e.onSuccess.call(Q,C,x):e.onError&&e.onError.call(Q,C,x);e.onFinish&&e.onFinish.call(Q,C,x)}},e.method,k,e.headers,e.responseType,e.withCredentials); k=e.timeout||0;if(e.onTimeout&&k>0){var X=e.onTimeout;var A=g.uM(function(){H||(H=!0,O.abort(),g.CE(A),X.call(e.context||g.t7,O))},k)}return O}; Xyp=function(E,e){e.includeDomain&&(E=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+E);var l=g.LF("XSRF_FIELD_NAME");if(e=e.urlParams)e[l]&&delete e[l],E=sc(E,e);return E}; uap=function(E,e){var l=g.LF("XSRF_FIELD_NAME"),k=g.LF("XSRF_TOKEN"),H=e.postBody||"",O=e.postParams,X=g.LF("XSRF_FIELD_NAME"),A;e.headers&&(A=e.headers["Content-Type"]);e.excludeXsrf||g.uy(E)&&!e.withCredentials&&g.uy(E)!==document.location.hostname||e.method!=="POST"||A&&A!=="application/x-www-form-urlencoded"||e.postParams&&e.postParams[X]||(O||(O={}),O[l]=k);(g.QT("ajax_parse_query_data_only_when_filled")&&O&&Object.keys(O).length>0||O)&&typeof H==="string"&&(H=KF(H),g.zf(H,O),H=e.postBodyFormat&& e.postBodyFormat==="JSON"?JSON.stringify(H):g.WJ(H));O=H||O&&!g.QI(O);!Qh9&&O&&e.method!=="POST"&&(Qh9=!0,g.Nf(Error("AJAX request with postData should use POST")));return H}; pyS=function(E,e,l,k){var H=null;switch(e){case "JSON":try{var O=l.responseText}catch(X){throw k=Error("Error reading responseText"),k.params=E,Yu(k),X;}E=l.getResponseHeader("Content-Type")||"";O&&E.indexOf("json")>=0&&(O.substring(0,5)===")]}'\n"&&(O=O.substring(5)),H=JSON.parse(O));break;case "XML":if(E=(E=l.responseXML)?WRX(E):null)H={},g.nW(E.getElementsByTagName("*"),function(X){H[X.tagName]=Bxp(X)})}k&&oV0(H); return H}; oV0=function(E){if(g.O6(E))for(var e in E)e==="html_content"||MpZ(e,"_html")?E[e]=Qb(E[e]):oV0(E[e])}; xh7=function(E,e,l){if(e&&e.status===204)return!0;switch(E){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}}; WRX=function(E){return E?(E=("responseXML"in E?E.responseXML:E).getElementsByTagName("root"))&&E.length>0?E[0]:null:null}; Bxp=function(E){var e="";g.nW(E.childNodes,function(l){e+=l.nodeValue}); return e}; kbS=function(E){var e=window.location.search,l=g.uy(E);g.QT("debug_handle_relative_url_for_query_forward_killswitch")||!l&&qf(E)&&(l=document.location.hostname);var k=Ae(E);k=(l=l&&(l.endsWith("youtube.com")||l.endsWith("youtube-nocookie.com")))&&k&&k.startsWith("/api/");if(!l||k)return E;var H=KF(e),O={};g.nW(wyW,function(X){H[X]&&(O[X]=H[X])}); return td(E,O)}; TT=function(E,e){var l=g.o$(e),k;return(new g.cq(function(H,O){l.onSuccess=function(X){g.Xm(X)?H(new z50(X)):O(new GT("Request failed, status="+ON(X),"net.badstatus",X))}; l.onError=function(X){O(new GT("Unknown request error","net.unknown",X))}; l.onTimeout=function(X){O(new GT("Request timed out","net.timeout",X))}; k=g.zT(E,l)})).Md(function(H){if(H instanceof V2){var O; (O=k)==null||O.abort()}return IB(H)})}; g.iM=function(E,e,l,k,H,O){function X(C,p,x){return C.Md(function(Q){if(p<=0||ON(Q.xhr)===403)return IB(new GT("Request retried too many times","net.retryexhausted",Q.xhr,Q));var W=Math.pow(2,l-p+1)*x,B=H>0?Math.min(H,W):W;return A(x).then(function(){O&&O(Q,p-1);return X(TT(E,e),p-1,B)})})} function A(C){return new g.cq(function(p){setTimeout(p,C)})} H=H===void 0?-1:H;return X(TT(E,e),l-1,k)}; GT=function(E,e,l){o1.call(this,E+", errorCode="+e);this.errorCode=e;this.xhr=l;this.name="PromiseAjaxError"}; z50=function(E){this.xhr=E}; $q=function(E){this.T=E===void 0?null:E;this.Z=0;this.G=null}; UN=function(E){var e=new $q;E=E===void 0?null:E;e.Z=2;e.G=E===void 0?null:E;return e}; J2=function(E){var e=new $q;E=E===void 0?null:E;e.Z=1;e.G=E===void 0?null:E;return e}; g.jQ=function(E,e,l,k,H){cg||yT.set(""+E,e,{oL:l,path:"/",domain:k===void 0?"youtube.com":k,secure:H===void 0?!1:H})}; g.IL=function(E,e){if(!cg)return yT.get(""+E,e)}; g.Fm=function(E,e,l){cg||yT.remove(""+E,e===void 0?"/":e,l===void 0?"youtube.com":l)}; dhe=function(){if(g.QT("embeds_web_enable_cookie_detection_fix")){if(!g.t7.navigator.cookieEnabled)return!1}else if(!yT.isEnabled())return!1;if(!yT.isEmpty())return!0;g.QT("embeds_web_enable_cookie_detection_fix")?yT.set("TESTCOOKIESENABLED","1",{oL:60,Wa7:"none",secure:!0}):yT.set("TESTCOOKIESENABLED","1",{oL:60});if(yT.get("TESTCOOKIESENABLED")!=="1")return!1;yT.remove("TESTCOOKIESENABLED");return!0}; g.M=function(E,e){if(E)return E[e.name]}; fE=function(E){var e=g.LF("INNERTUBE_HOST_OVERRIDE");e&&(E=String(e)+String(CY(E)));return E}; Gb7=function(E){var e={};g.QT("json_condensed_response")&&(e.prettyPrint="false");return E=td(E,e)}; VT=function(E,e){var l=l===void 0?{}:l;E={method:e===void 0?"POST":e,mode:qf(E)?"same-origin":"cors",credentials:qf(E)?"same-origin":"include"};e={};for(var k=g.T(Object.keys(l)),H=k.next();!H.done;H=k.next())H=H.value,l[H]&&(e[H]=l[H]);Object.keys(e).length>0&&(E.headers=e);return E}; SQ=function(){var E=/Chrome\/(\d+)/.exec(g.vj());return E?parseFloat(E[1]):NaN}; rv=function(){var E=/\sCobalt\/(\S+)\s/.exec(g.vj());if(!E)return NaN;var e=[];E=g.T(E[1].split("."));for(var l=E.next();!l.done;l=E.next())l=parseInt(l.value,10),l>=0&&e.push(l);return parseFloat(e.join("."))}; bM=function(){return g.DD("android")&&g.DD("chrome")&&!(g.DD("trident/")||g.DD("edge/"))&&!g.DD("cobalt")}; TxS=function(){return g.DD("armv7")||g.DD("aarch64")||g.DD("android")}; g.vg=function(){return g.DD("cobalt")}; Pg=function(){return g.DD("cobalt")&&g.DD("appletv")}; aL=function(){return g.DD("(ps3; leanback shell)")||g.DD("ps3")&&g.vg()}; izl=function(){return g.DD("(ps4; leanback shell)")||g.DD("ps4")&&g.vg()}; g.$hW=function(){return g.vg()&&(g.DD("ps4 vr")||g.DD("ps4 pro vr"))}; LE=function(){var E=/WebKit\/([0-9]+)/.exec(g.vj());return!!(E&&parseInt(E[1],10)>=600)}; h2=function(){var E=/WebKit\/([0-9]+)/.exec(g.vj());return!!(E&&parseInt(E[1],10)>=602)}; UhX=function(){return g.DD("iemobile")||g.DD("windows phone")&&g.DD("edge")}; ZD=function(){return(Mb||Nb)&&g.DD("applewebkit")&&!g.DD("version")&&(!g.DD("safari")||g.DD("gsa/"))}; mV=function(){return g.Yq&&g.DD("version/")}; gv=function(){return g.DD("smart-tv")&&g.DD("samsung")}; g.DD=function(E){var e=g.vj();return e?e.toLowerCase().indexOf(E)>=0:!1}; KE=function(){return XJ7()||ZD()||mV()?!0:g.LF("EOM_VISITOR_DATA")?!1:!0}; nE=function(E,e){return e===void 0||e===null?E:e==="1"||e===!0||e===1||e==="True"?!0:!1}; RL=function(E,e,l){for(var k in l)if(l[k]==e)return l[k];return E}; sN=function(E,e){return e===void 0||e===null?E:Number(e)}; t2=function(E,e){return e===void 0||e===null?E:e.toString()}; qb=function(E,e){if(e){if(E==="fullwidth")return Infinity;if(E==="fullheight")return 0}return E&&(e=E.match(JZ8))&&(E=Number(e[2]),e=Number(e[1]),!isNaN(E)&&!isNaN(e)&&E>0)?e/E:NaN}; E7=function(E){var e=E.docid||E.video_id||E.videoId||E.id;if(e)return e;e=E.raw_player_response;e||(E=E.player_response)&&(e=JSON.parse(E));return e&&e.videoDetails&&e.videoDetails.videoId||null}; cZl=function(E){return et(E,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.lG=function(E){return E==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||E==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; et=function(E,e){e=(e===void 0?0:e)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var l=E.raw_embedded_player_response;if(!l&&(E=E.embedded_player_response))try{l=JSON.parse(E)}catch(k){return e}return l?RL(e,l.embeddedPlayerMode,yZW):e}; HK=function(E){o1.call(this,E.message||E.description||E.name);this.isMissing=E instanceof kp;this.isTimeout=E instanceof GT&&E.errorCode=="net.timeout";this.isCanceled=E instanceof V2}; kp=function(){o1.call(this,"Biscotti ID is missing from server")}; jhy=function(){if(g.QT("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!KE())return Error("User has not consented - not fetching biscotti id.");var E=g.LF("PLAYER_VARS",{});if(g.Wj(E,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(cZl(E))return Error("Biscotti id fetching has been disabled for pfl.")}; VFl=function(){var E=jhy();if(E!==void 0)return IB(E);O7||(O7=TT("//googleads.g.doubleclick.net/pagead/id",IK0).then(FRW).Md(function(e){return fKW(2,e)})); return O7}; FRW=function(E){E=E.xhr.responseText;if(!I$(E,")]}'"))throw new kp;E=JSON.parse(E.substr(4));if((E.type||1)>1)throw new kp;E=E.id;YHW(E);O7=J2(E);Sev(18E5,2);return E}; fKW=function(E,e){e=new HK(e);YHW("");O7=UN(e);E>0&&Sev(12E4,E-1);throw e;}; Sev=function(E,e){g.uM(function(){TT("//googleads.g.doubleclick.net/pagead/id",IK0).then(FRW,function(l){return fKW(e,l)}).Md(g.fl)},E)}; rZW=function(){try{var E=g.eS("yt.ads.biscotti.getId_");return E?E():VFl()}catch(e){return IB(e)}}; bzS=function(E){E&&(E.dataset?E.dataset[DhX()]="true":kdp(E))}; vV0=function(E){return E?E.dataset?E.dataset[DhX()]:E.getAttribute("data-loaded"):null}; DhX=function(){return Piv.loaded||(Piv.loaded="loaded".replace(/\-([a-z])/g,function(E,e){return e.toUpperCase()}))}; aKp=function(){var E=document;if("visibilityState"in E)return E.visibilityState;var e=Xg+"VisibilityState";if(e in E)return E[e]}; uG=function(E,e){var l;LY(E,function(k){l=e[k];return!!l}); return l}; Aw=function(E){if(E.requestFullscreen)E=E.requestFullscreen(void 0);else if(E.webkitRequestFullscreen)E=E.webkitRequestFullscreen();else if(E.mozRequestFullScreen)E=E.mozRequestFullScreen();else if(E.msRequestFullscreen)E=E.msRequestFullscreen();else if(E.webkitEnterFullscreen)E=E.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return E instanceof Promise?E:Promise.resolve()}; xp=function(E){var e;g.CZ()?pZ()==E&&(e=document):e=E;return e&&(E=uG(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))?(e=E.call(e),e instanceof Promise?e:Promise.resolve()):Promise.resolve()}; LR0=function(E){return g.Gd(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in E})}; h5X=function(){var E=document;return g.Gd(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(e){return"on"+e.toLowerCase()in E})}; g.CZ=function(){return!!uG(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; pZ=function(E){E=E===void 0?!1:E;var e=uG(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(E)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null}; QC=function(E){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(E=E||window.event){this.event=E;for(var e in E)e in MFX||(this[e]=E[e]);this.scale=E.scale;this.rotation=E.rotation;var l=E.target||E.srcElement;l&&l.nodeType==3&&(l=l.parentNode);this.target=l;var k=E.relatedTarget; if(k)try{k=k.nodeName?k:null}catch(H){k=null}else this.type=="mouseover"?k=E.fromElement:this.type=="mouseout"&&(k=E.toElement);this.relatedTarget=k;this.clientX=E.clientX!=void 0?E.clientX:E.pageX;this.clientY=E.clientY!=void 0?E.clientY:E.pageY;this.keyCode=E.keyCode?E.keyCode:E.which;this.charCode=E.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=E.altKey;this.ctrlKey=E.ctrlKey;this.shiftKey=E.shiftKey;this.metaKey=E.metaKey;this.T=E.pageX;this.G=E.pageY}}catch(H){}}; NxX=function(E){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;E.T=E.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);E.G=E.clientY+e}}; ZzW=function(E,e,l,k){k=k===void 0?{}:k;E.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return xr(WK,function(H){var O=typeof H[4]==="boolean"&&H[4]==!!k,X=g.O6(H[4])&&g.O6(k)&&g.Bj(H[4],k);return!!H.length&&H[0]==E&&H[1]==e&&H[2]==l&&(O||X)})}; g.BK=function(E,e,l,k){k=k===void 0?{}:k;if(!E||!E.addEventListener&&!E.attachEvent)return"";var H=ZzW(E,e,l,k);if(H)return H;H=++Ye7.count+"";var O=!(e!="mouseenter"&&e!="mouseleave"||!E.addEventListener||"onmouseenter"in document);var X=O?function(A){A=new QC(A);if(!TD(A.relatedTarget,function(C){return C==E},!0))return A.currentTarget=E,A.type=e,l.call(E,A)}:function(A){A=new QC(A); A.currentTarget=E;return l.call(E,A)}; X=g.ZP(X);E.addEventListener?(e=="mouseenter"&&O?e="mouseover":e=="mouseleave"&&O?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),mh9()||typeof k==="boolean"?E.addEventListener(e,X,k):E.addEventListener(e,X,!!k.capture)):E.attachEvent("on"+e,X);WK[H]=[E,e,l,X,k];return H}; KRZ=function(E){return gVW(E,function(e){return g.ti(e,"ytp-ad-has-logging-urls")})}; gVW=function(E,e){var l=document.body||document;return g.BK(l,"click",function(k){var H=TD(k.target,function(O){return O===l||e(O)},!0); H&&H!==l&&!H.disabled&&(k.currentTarget=H,E.call(H,k))})}; g.oC=function(E){E&&(typeof E=="string"&&(E=[E]),g.nW(E,function(e){if(e in WK){var l=WK[e],k=l[0],H=l[1],O=l[3];l=l[4];k.removeEventListener?mh9()||typeof l==="boolean"?k.removeEventListener(H,O,l):k.removeEventListener(H,O,!!l.capture):k.detachEvent&&k.detachEvent("on"+H,O);delete WK[e]}}))}; wO=function(E){for(var e in WK)WK[e][0]==E&&g.oC(e)}; zC=function(E){E=E||window.event;var e;E.composedPath&&typeof E.composedPath==="function"?e=E.composedPath():e=E.path;e&&e.length?E=e[0]:(E=E||window.event,E=E.target||E.srcElement,E.nodeType==3&&(E=E.parentNode));return E}; dO=function(E){this.j=E;this.T=null;this.S=0;this.J=null;this.W=0;this.G=[];for(E=0;E<4;E++)this.G.push(0);this.Z=0;this.kt=g.BK(window,"mousemove",(0,g.CW)(this.V,this));this.N=g.A2((0,g.CW)(this.pg,this),25)}; GC=function(E){g.a.call(this);this.j=[];this.GX=E||this}; TC=function(E,e,l,k){for(var H=0;H0?l:0;l=k?Date.now()+k*1E3:0;if((k=k?(0,g.$p)():U7())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{k.set(E,e,l)}catch(H){k.remove(E)}}}; g.cK=function(E){var e=U7(),l=(0,g.$p)();if(!e&&!l||!window.JSON)return null;try{var k=e.get(E)}catch(H){}if(typeof k!=="string")try{k=l.get(E)}catch(H){}if(typeof k!=="string")return null;try{k=JSON.parse(k,void 0)}catch(H){}return k}; R5X=function(){var E=(0,g.$p)();if(E&&(E=E.G("yt-player-quality")))return E.creation}; g.yC=function(E){try{var e=U7(),l=(0,g.$p)();e&&e.remove(E);l&&l.remove(E)}catch(k){}}; g.jt=function(){return g.cK("yt-remote-session-screen-id")}; she=function(E){var e=this;this.G=void 0;this.T=!1;E.addEventListener("beforeinstallprompt",function(l){l.preventDefault();e.G=l}); E.addEventListener("appinstalled",function(){e.T=!0},{once:!0})}; IC=function(){if(!g.t7.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.t7.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.t7.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.t7.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.t7.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(E){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Fg=function(){this.Sj=!0}; tFX=function(){Fg.instance||(Fg.instance=new Fg);return Fg.instance}; qeW=function(E){switch(E){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}}; ENX=function(){this.T=g.LF("ALT_PREF_COOKIE_NAME","PREF");this.G=g.LF("ALT_PREF_COOKIE_DOMAIN","youtube.com");var E=g.IL(this.T);E&&this.parse(E)}; g.VC=function(){fZ||(fZ=new ENX);return fZ}; g.St=function(E,e){return!!((eXe("f"+(Math.floor(e/31)+1))||0)&1<0;)switch(E=ei.shift(),E.type){case "ERROR":s7.lV(E.payload);break;case "EVENT":s7.logEvent(E.eventType,E.payload)}}; kI=function(E){lE||(s7?s7.lV(E):(ei.push({type:"ERROR",payload:E}),ei.length>10&&ei.shift()))}; HZ=function(E,e){lE||(s7?s7.logEvent(E,e):(ei.push({type:"EVENT",eventType:E,payload:e}),ei.length>10&&ei.shift()))}; O0=function(E){if(E.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Xp=function(E){return E.substr(0,E.indexOf(":"))||E}; g.uE=function(E,e,l,k,H){e=e===void 0?{}:e;l=l===void 0?CFe[E]:l;k=k===void 0?prp[E]:k;H=H===void 0?xxX[E]:H;g.PK.call(this,l,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:E},e));this.type=E;this.message=l;this.level=k;this.T=H;Object.setPrototypeOf(this,g.uE.prototype)}; Ak=function(E,e){g.uE.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:E},CFe.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ak.prototype)}; CA=function(E,e){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.index=E;this.objectStore=e;Object.setPrototypeOf(this,CA.prototype)}; xI=function(E,e,l,k){e=Xp(e);var H=E instanceof Error?E:Error("Unexpected error: "+E);if(H instanceof g.uE)return H;E={objectStoreNames:l,dbName:e,dbVersion:k};if(H.name==="QuotaExceededError")return new g.uE("QUOTA_EXCEEDED",E);if(g.pA&&H.name==="UnknownError")return new g.uE("QUOTA_MAYBE_EXCEEDED",E);if(H instanceof CA)return new g.uE("MISSING_INDEX",Object.assign({},E,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&QXl.some(function(O){return H.message.includes(O)}))return new g.uE("EXECUTE_TRANSACTION_ON_CLOSED_DB", E); if(H.name==="AbortError")return new g.uE("UNKNOWN_ABORT",E,H.message);H.args=[Object.assign({},E,{name:"IdbError",Ia:H.name})];H.level="WARNING";return H}; g.Q4=function(E,e,l){var k=RC();return new g.uE("IDB_NOT_SUPPORTED",{context:{caller:E,publicName:e,version:l,hasSucceededOnce:k==null?void 0:k.hasSucceededOnce}})}; WrW=function(E){if(!E)throw Error();throw E;}; BN7=function(E){return E}; WZ=function(E){this.T=E}; g.BZ=function(E){function e(H){if(k.state.status==="PENDING"){k.state={status:"REJECTED",reason:H};H=g.T(k.G);for(var O=H.next();!O.done;O=H.next())O=O.value,O()}} function l(H){if(k.state.status==="PENDING"){k.state={status:"FULFILLED",value:H};H=g.T(k.T);for(var O=H.next();!O.done;O=H.next())O=O.value,O()}} var k=this;this.state={status:"PENDING"};this.T=[];this.G=[];E=E.T;try{E(l,e)}catch(H){e(H)}}; oNW=function(E,e,l,k,H){try{if(E.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var O=l(E.state.value);O instanceof g.BZ?oa(E,e,O,k,H):k(O)}catch(X){H(X)}}; wrl=function(E,e,l,k,H){try{if(E.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var O=l(E.state.reason);O instanceof g.BZ?oa(E,e,O,k,H):k(O)}catch(X){H(X)}}; oa=function(E,e,l,k,H){e===l?H(new TypeError("Circular promise chain detected.")):l.then(function(O){O instanceof g.BZ?oa(E,e,O,k,H):k(O)},function(O){H(O)})}; zXW=function(E,e,l){function k(){l(E.error);O()} function H(){e(E.result);O()} function O(){try{E.removeEventListener("success",H),E.removeEventListener("error",k)}catch(X){}} E.addEventListener("success",H);E.addEventListener("error",k)}; dxW=function(E){return new Promise(function(e,l){zXW(E,e,l)})}; wE=function(E){return new g.BZ(new WZ(function(e,l){zXW(E,e,l)}))}; z0=function(E,e){return new g.BZ(new WZ(function(l,k){function H(){var O=E?e(E):null;O?O.then(function(X){E=X;H()},k):l()} H()}))}; GW7=function(E,e){this.request=E;this.cursor=e}; TNZ=function(E){return wE(E).then(function(e){return e?new GW7(E,e):null})}; g.ic8=function(E){E.cursor.continue(void 0);return TNZ(E.request)}; $xW=function(E,e){this.T=E;this.options=e;this.transactionCount=0;this.Z=Math.round((0,g.dE)());this.G=!1}; g.T0=function(E,e,l){E=E.T.createObjectStore(e,l);return new G0(E)}; iE=function(E,e){E.T.objectStoreNames.contains(e)&&E.T.deleteObjectStore(e)}; g.Jk=function(E,e,l){return g.$I(E,[e],{mode:"readwrite",Ag:!0},function(k){return g.U0(k.objectStore(e),l)})}; g.$I=function(E,e,l,k){var H,O,X,A,C,p,x,Q,W,B,w,U;return g.D(function(c){switch(c.G){case 1:var V={mode:"readonly",Ag:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?V.mode=l:Object.assign(V,l);H=V;E.transactionCount++;O=H.Ag?3:1;X=0;case 2:if(A){c.xt(4);break}X++;C=Math.round((0,g.dE)());g.U9(c,5);p=E.T.transaction(e,H.mode);V=new cZ(p);V=UxX(V,k);return g.S(c,V,7);case 7:return x=c.T,Q=Math.round((0,g.dE)()),Jie(E,C,Q,X,void 0,e.join(),H),c.return(x);case 5:W=g.FW(c);B=Math.round((0,g.dE)()); w=xI(W,E.T.name,e.join(),E.T.version);if((U=w instanceof g.uE&&!w.T)||X>=O)Jie(E,C,B,X,w,e.join(),H),A=w;c.xt(2);break;case 4:return c.return(Promise.reject(A))}})}; Jie=function(E,e,l,k,H,O,X){e=l-e;H?(H instanceof g.uE&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&HZ("QUOTA_EXCEEDED",{dbName:Xp(E.T.name),objectStoreNames:O,transactionCount:E.transactionCount,transactionMode:X.mode}),H instanceof g.uE&&H.type==="UNKNOWN_ABORT"&&(l-=E.Z,l<0&&l>=2147483648&&(l=0),HZ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:O,transactionDuration:e,transactionCount:E.transactionCount,dbDuration:l}),E.G=!0),cip(E,!1,k,O,e,X.tag),kI(H)):cip(E,!0,k,O,e, X.tag)}; cip=function(E,e,l,k,H,O){HZ("TRANSACTION_ENDED",{objectStoreNames:k,connectionHasUnknownAbortedTransaction:E.G,duration:H,isSuccessful:e,tryCount:l,tag:O===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":O})}; G0=function(E){this.T=E}; g.y4=function(E,e,l){E.T.createIndex(e,l,{unique:!1})}; yiS=function(E,e){return g.ji(E,{query:e},function(l){return l.delete().then(function(){return g.Ia(l)})}).then(function(){})}; jXZ=function(E,e,l){var k=[];return g.ji(E,{query:e},function(H){if(!(l!==void 0&&k.length>=l))return k.push(H.getValue()),g.Ia(H)}).then(function(){return k})}; Fry=function(E){return"getAllKeys"in IDBObjectStore.prototype?wE(E.T.getAllKeys(void 0,void 0)):ICW(E)}; ICW=function(E){var e=[];return g.fC9(E,{query:void 0},function(l){e.push(l.cursor.primaryKey);return g.ic8(l)}).then(function(){return e})}; g.U0=function(E,e,l){return wE(E.T.put(e,l))}; g.ji=function(E,e,l){E=E.T.openCursor(e.query,e.direction);return Fp(E).then(function(k){return z0(k,l)})}; g.fC9=function(E,e,l){var k=e.query;e=e.direction;E="openKeyCursor"in IDBObjectStore.prototype?E.T.openKeyCursor(k,e):E.T.openCursor(k,e);return TNZ(E).then(function(H){return z0(H,l)})}; cZ=function(E){var e=this;this.T=E;this.Z=new Map;this.G=!1;this.done=new Promise(function(l,k){e.T.addEventListener("complete",function(){l()}); e.T.addEventListener("error",function(H){H.currentTarget===H.target&&k(e.T.error)}); e.T.addEventListener("abort",function(){var H=e.T.error;if(H)k(H);else if(!e.G){H=g.uE;for(var O=e.T.objectStoreNames,X=[],A=0;A=l))return k.push(H.getValue()),g.Ia(H)}).then(function(){return k})}; g.fA=function(E,e,l){E=E.T.openCursor(e.query===void 0?null:e.query,e.direction===void 0?"next":e.direction);return Fp(E).then(function(k){return z0(k,l)})}; V4=function(E,e){this.request=E;this.cursor=e}; Fp=function(E){return wE(E).then(function(e){return e?new V4(E,e):null})}; g.Ia=function(E){E.cursor.continue(void 0);return Fp(E.request)}; ri7=function(E,e,l){return new Promise(function(k,H){function O(){W||(W=new $xW(X.result,{closed:Q}));return W} var X=e!==void 0?self.indexedDB.open(E,e):self.indexedDB.open(E);var A=l.blocked,C=l.blocking,p=l.c2R,x=l.upgrade,Q=l.closed,W;X.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(X.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");B.dataLoss&&B.dataLoss!=="none"&&HZ("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:Xp(E)});var w=O(),U=new cZ(X.transaction); x&&x(w,function(c){return B.oldVersion=c},U); U.done.catch(function(c){H(c)})}catch(c){H(c)}}); X.addEventListener("success",function(){var B=X.result;C&&B.addEventListener("versionchange",function(){C(O())}); B.addEventListener("close",function(){HZ("IDB_UNEXPECTEDLY_CLOSED",{dbName:Xp(E),dbVersion:B.version});p&&p()}); k(O())}); X.addEventListener("error",function(){H(X.error)}); A&&X.addEventListener("blocked",function(){A()})})}; Dxl=function(E,e,l){l=l===void 0?{}:l;return ri7(E,e,l)}; Si=function(E,e){e=e===void 0?{}:e;var l,k,H,O;return g.D(function(X){if(X.G==1)return g.U9(X,2),l=self.indexedDB.deleteDatabase(E),k=e,(H=k.blocked)&&l.addEventListener("blocked",function(){H()}),g.S(X,dxW(l),4); if(X.G!=2)return g.jp(X,0);O=g.FW(X);throw xI(O,E,"",-1);})}; rE=function(E,e){this.name=E;this.options=e;this.Z=!0;this.W=this.S=0}; bcl=function(E,e){return new g.uE("INCOMPATIBLE_DB_VERSION",{dbName:E.name,oldVersion:E.options.version,newVersion:e})}; g.DB=function(E,e){if(!e)throw g.Q4("openWithToken",Xp(E.name));return E.open()}; vNS=function(E,e){var l;return g.D(function(k){if(k.G==1)return g.S(k,g.DB(bE,e),2);l=k.T;return k.return(g.$I(l,["databases"],{Ag:!0,mode:"readwrite"},function(H){var O=H.objectStore("databases");return O.get(E.actualName).then(function(X){if(X?E.actualName!==X.actualName||E.publicName!==X.publicName||E.userIdentifier!==X.userIdentifier:1)return g.U0(O,E).then(function(){})})}))})}; vZ=function(E,e){var l;return g.D(function(k){if(k.G==1)return E?g.S(k,g.DB(bE,e),2):k.return();l=k.T;return k.return(l.delete("databases",E))})}; PFW=function(E,e){var l,k;return g.D(function(H){return H.G==1?(l=[],g.S(H,g.DB(bE,e),2)):H.G!=3?(k=H.T,g.S(H,g.$I(k,["databases"],{Ag:!0,mode:"readonly"},function(O){l.length=0;return g.ji(O.objectStore("databases"),{},function(X){E(X.getValue())&&l.push(X.getValue());return g.Ia(X)})}),3)):H.return(l)})}; aCX=function(E,e){return PFW(function(l){return l.publicName===E&&l.userIdentifier!==void 0},e)}; Lrv=function(){var E,e,l,k;return g.D(function(H){switch(H.G){case 1:E=RC();if((e=E)==null?0:e.hasSucceededOnce)return H.return(!0);if(PZ&&LE()&&!h2()||g.aa)return H.return(!1);try{if(l=self,!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore))return H.return(!1)}catch(O){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);g.U9(H,2);k={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.S(H,vNS(k,LA),4);case 4:return g.S(H,vZ("yt-idb-test-do-not-use",LA),5);case 5:return H.return(!0);case 2:return g.FW(H),H.return(!1)}})}; hX9=function(){if(hk!==void 0)return hk;lE=!0;return hk=Lrv().then(function(E){lE=!1;var e;if((e=nZ())!=null&&e.T){var l;e={hasSucceededOnce:((l=RC())==null?void 0:l.hasSucceededOnce)||E};var k;(k=nZ())==null||k.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return E})}; M1=function(){return g.eS("ytglobal.idbToken_")||void 0}; g.N1=function(){var E=M1();return E?Promise.resolve(E):hX9().then(function(e){(e=e?LA:void 0)&&g.qW("ytglobal.idbToken_",e);return e})}; MXl=function(E){if(!g.LZ())throw E=new g.uE("AUTH_INVALID",{dbName:E}),kI(E),E;var e=g.aC();return{actualName:E+":"+e,publicName:E,userIdentifier:e}}; NN9=function(E,e,l,k){var H,O,X,A,C,p;return g.D(function(x){switch(x.G){case 1:return O=(H=Error().stack)!=null?H:"",g.S(x,g.N1(),2);case 2:X=x.T;if(!X)throw A=g.Q4("openDbImpl",E,e),g.QT("ytidb_async_stack_killswitch")||(A.stack=A.stack+"\n"+O.substring(O.indexOf("\n")+1)),kI(A),A;O0(E);C=l?{actualName:E,publicName:E,userIdentifier:void 0}:MXl(E);g.U9(x,3);return g.S(x,vNS(C,X),5);case 5:return g.S(x,Dxl(C.actualName,e,k),6);case 6:return x.return(x.T);case 3:return p=g.FW(x),g.U9(x,7),g.S(x,vZ(C.actualName, X),9);case 9:g.jp(x,8);break;case 7:g.FW(x);case 8:throw p;}})}; Zc8=function(E,e,l){l=l===void 0?{}:l;return NN9(E,e,!1,l)}; YgX=function(E,e,l){l=l===void 0?{}:l;return NN9(E,e,!0,l)}; mxX=function(E,e){e=e===void 0?{}:e;var l,k;return g.D(function(H){if(H.G==1)return g.S(H,g.N1(),2);if(H.G!=3){l=H.T;if(!l)return H.return();O0(E);k=MXl(E);return g.S(H,Si(k.actualName,e),3)}return g.S(H,vZ(k.actualName,l),0)})}; gN8=function(E,e,l){E=E.map(function(k){return g.D(function(H){return H.G==1?g.S(H,Si(k.actualName,e),2):g.S(H,vZ(k.actualName,l),0)})}); return Promise.all(E).then(function(){})}; Kr7=function(E){var e=e===void 0?{}:e;var l,k;return g.D(function(H){if(H.G==1)return g.S(H,g.N1(),2);if(H.G!=3){l=H.T;if(!l)return H.return();O0(E);return g.S(H,aCX(E,l),3)}k=H.T;return g.S(H,gN8(k,e,l),0)})}; nN0=function(E,e){e=e===void 0?{}:e;var l;return g.D(function(k){if(k.G==1)return g.S(k,g.N1(),2);if(k.G!=3){l=k.T;if(!l)return k.return();O0(E);return g.S(k,Si(E,e),3)}return g.S(k,vZ(E,l),0)})}; ZB=function(E,e){rE.call(this,E,e);this.options=e;O0(E)}; RX8=function(E,e){var l;return function(){l||(l=new ZB(E,e));return l}}; g.YI=function(E,e){return RX8(E,e)}; mz=function(E){return g.DB(sX9(),E)}; tXp=function(E,e,l,k){var H,O,X;return g.D(function(A){switch(A.G){case 1:return H={config:E,hashData:e,timestamp:k!==void 0?k:(0,g.dE)()},g.S(A,mz(l),2);case 2:return O=A.T,g.S(A,O.clear("hotConfigStore"),3);case 3:return g.S(A,g.Jk(O,"hotConfigStore",H),4);case 4:return X=A.T,A.return(X)}})}; qg9=function(E,e,l,k,H){var O,X,A;return g.D(function(C){switch(C.G){case 1:return O={config:E,hashData:e,configData:l,timestamp:H!==void 0?H:(0,g.dE)()},g.S(C,mz(k),2);case 2:return X=C.T,g.S(C,X.clear("coldConfigStore"),3);case 3:return g.S(C,g.Jk(X,"coldConfigStore",O),4);case 4:return A=C.T,C.return(A)}})}; E_p=function(E){var e,l;return g.D(function(k){return k.G==1?g.S(k,mz(E),2):k.G!=3?(e=k.T,l=void 0,g.S(k,g.$I(e,["coldConfigStore"],{mode:"readwrite",Ag:!0},function(H){return g.fA(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(O){l=O.getValue()})}),3)):k.return(l)})}; edl=function(E){var e,l;return g.D(function(k){return k.G==1?g.S(k,mz(E),2):k.G!=3?(e=k.T,l=void 0,g.S(k,g.$I(e,["hotConfigStore"],{mode:"readwrite",Ag:!0},function(H){return g.fA(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(O){l=O.getValue()})}),3)):k.return(l)})}; lh8=function(){return g.D(function(E){return g.S(E,Kr7("ytGcfConfig"),0)})}; gE=function(){g.a.call(this);this.G=[];this.T=[];var E=g.eS("yt.gcf.config.hotUpdateCallbacks");E?(this.G=[].concat(g.Be(E)),this.T=E):(this.T=[],g.qW("yt.gcf.config.hotUpdateCallbacks",this.T))}; q1=function(){var E=this;this.W=!1;this.Z=this.S=0;this.J=new gE;this.p5={C8z:function(){E.W=!0}, beH:function(){return E.T}, rtR:function(e){KA(E,e)}, kM:function(e){E.kM(e)}, Hp0:function(e){nA(E,e)}, z$:function(){return E.coldHashData}, EU:function(){return E.hotHashData}, VN5:function(){return E.G}, NYt:function(){return Ra()}, z5t:function(){return s0()}, HeR:function(){return g.eS("yt.gcf.config.coldHashData")}, D25:function(){return g.eS("yt.gcf.config.hotHashData")}, hQ3:function(){kE7(E)}, bpM:function(){E.kM(void 0);tk(E);delete q1.instance}, YVn:function(e){E.Z=e}, gY5:function(){return E.Z}}}; HDW=function(){if(!q1.instance){var E=new q1;q1.instance=E}return q1.instance}; uyW=function(E){var e;g.D(function(l){if(l.G==1)return g.QT("start_client_gcf")||g.QT("delete_gcf_config_db")?g.QT("start_client_gcf")?g.S(l,g.N1(),3):l.xt(2):l.return();l.G!=2&&((e=l.T)&&g.LZ()&&!g.QT("delete_gcf_config_db")?(E.W=!0,kE7(E)):(ODX(E),XYW(E)));return g.QT("delete_gcf_config_db")?g.S(l,lh8(),0):l.xt(0)})}; eA=function(){var E;return(E=s0())!=null?E:g.LF("RAW_HOT_CONFIG_GROUP")}; AnX=function(E){var e,l,k,H,O,X;return g.D(function(A){switch(A.G){case 1:if(E.G)return A.return(s0());if(!E.W)return e=g.Q4("getHotConfig IDB not initialized"),Yu(e),A.return(Promise.reject(e));l=M1();k=g.LF("TIME_CREATED_MS");if(!l){H=g.Q4("getHotConfig token error");Yu(H);A.xt(2);break}return g.S(A,edl(l),3);case 3:if((O=A.T)&&O.timestamp>k)return KA(E,O.config),E.kM(O.hashData),A.return(s0());case 2:XYW(E);if(!(l&&E.G&&E.hotHashData)){A.xt(4);break}return g.S(A,tXp(E.G,E.hotHashData,l,k),4);case 4:return E.G? A.return(s0()):(X=new g.PK("Config not available in ytConfig"),Yu(X),A.return(Promise.reject(X)))}})}; pYe=function(E){var e,l,k,H,O,X;return g.D(function(A){switch(A.G){case 1:if(E.T)return A.return(Ra());if(!E.W)return e=g.Q4("getColdConfig IDB not initialized"),Yu(e),A.return(Promise.reject(e));l=M1();k=g.LF("TIME_CREATED_MS");if(!l){H=g.Q4("getColdConfig");Yu(H);A.xt(2);break}return g.S(A,E_p(l),3);case 3:if((O=A.T)&&O.timestamp>k)return nA(E,O.config),Cwp(E,O.configData),tk(E,O.hashData),A.return(Ra());case 2:ODX(E);if(!(l&&E.T&&E.coldHashData&&E.configData)){A.xt(4);break}return g.S(A,qg9(E.T, E.coldHashData,E.configData,l,k),4);case 4:return E.T?A.return(Ra()):(X=new g.PK("Config not available in ytConfig"),Yu(X),A.return(Promise.reject(X)))}})}; kE7=function(E){if(!E.G||!E.T){if(!M1()){var e=g.Q4("scheduleGetConfigs");Yu(e)}E.S||(E.S=g.rN.b1(function(){return g.D(function(l){switch(l.G){case 1:return g.U9(l,2),g.S(l,AnX(E),4);case 4:g.jp(l,3);break;case 2:g.FW(l);case 3:return g.U9(l,5),g.S(l,pYe(E),7);case 7:g.jp(l,6);break;case 5:g.FW(l);case 6:E.S&&(E.S=0),g.$0(l)}})},100))}}; xCX=function(E,e,l){var k,H,O;return g.D(function(X){switch(X.G){case 1:if(!g.QT("start_client_gcf")){X.xt(0);break}l&&KA(E,l);E.kM(e);k=M1();if(!k){X.xt(3);break}if(l){X.xt(4);break}return g.S(X,edl(k),5);case 5:H=X.T,l=(O=H)==null?void 0:O.config;case 4:return g.S(X,tXp(l,e,k),3);case 3:if(l)for(var A=l,C=g.T(E.J.T),p=C.next();!p.done;p=C.next())p=p.value,p(A);g.$0(X)}})}; QSX=function(E,e,l){var k,H,O,X;return g.D(function(A){if(A.G==1){if(!g.QT("start_client_gcf"))return A.xt(0);tk(E,e);return(k=M1())?l?A.xt(4):g.S(A,E_p(k),5):A.xt(0)}A.G!=4&&(H=A.T,l=(O=H)==null?void 0:O.config);if(!l)return A.xt(0);X=l.configData;return g.S(A,qg9(l,e,X,k),0)})}; WCv=function(){var E=HDW(),e=(0,g.dE)()-E.Z;if(!(E.Z!==0&&e0&&(e.request={internalExperimentFlags:l});o_W(E,void 0,e);wYe(void 0,e);zdp(void 0,e);dCZ(E,void 0,e);GE0(void 0,e);g.QT("start_client_gcf")&&TJ7(void 0,e);g.LF("DELEGATED_SESSION_ID")&& !g.QT("pageid_as_header_web")&&(e.user={onBehalfOfUser:g.LF("DELEGATED_SESSION_ID")});!g.QT("fill_delegate_context_in_gel_killswitch")&&(E=g.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:E}));E=g.LF("INNERTUBE_CONTEXT");var k;if(g.QT("enable_persistent_device_token")&&(E==null?0:(k=E.client)==null?0:k.rolloutToken)){var H;e.client.rolloutToken=E==null?void 0:(H=E.client)==null?void 0:H.rolloutToken}k=Object;H=k.assign;E=e.client; l={};for(var O=g.T(Object.entries(KF(g.LF("DEVICE","")))),X=O.next();!X.done;X=O.next()){var A=g.T(X.value);X=A.next().value;A=A.next().value;X==="cbrand"?l.deviceMake=A:X==="cmodel"?l.deviceModel=A:X==="cbr"?l.browserName=A:X==="cbrver"?l.browserVersion=A:X==="cos"?l.osName=A:X==="cosver"?l.osVersion=A:X==="cplatform"&&(l.platform=A)}e.client=H.call(k,E,l);return e}; o_W=function(E,e,l){E=E.Pc;if(E==="WEB"||E==="MWEB"||E===1||E===2)if(e){l=wR(e,Tn,96)||new Tn;var k=IC();k=Object.keys(iDl).indexOf(k);k=k===-1?null:k;k!==null&&Dz(l,3,k);$4(e,Tn,96,l)}else l&&(l.client.mainAppWebInfo=(k=l.client.mainAppWebInfo)!=null?k:{},l.client.mainAppWebInfo.webDisplayMode=IC())}; wYe=function(E,e){var l=g.eS("yt.embedded_player.embed_url");l&&(E?(e=wR(E,cC,7)||new cC,SY(e,4,l),$4(E,cC,7,e)):e&&(e.thirdParty={embedUrl:l}))}; zdp=function(E,e){var l;if(g.QT("web_log_memory_total_kbytes")&&((l=g.t7.navigator)==null?0:l.deviceMemory)){var k;l=(k=g.t7.navigator)==null?void 0:k.deviceMemory;E?tv(E,95,Th(l*1E6)):e&&(e.client.memoryTotalKbytes=""+l*1E6)}}; dCZ=function(E,e,l){if(E.appInstallData)if(e){var k;l=(k=wR(e,Gn,62))!=null?k:new Gn;SY(l,6,E.appInstallData);$4(e,Gn,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=E.appInstallData)}; GE0=function(E,e){var l=HcS();l&&(E?Dz(E,61,$C7[l]):e&&(e.client.connectionType=l));g.QT("web_log_effective_connection_type")&&(l=XrZ())&&(E?Dz(E,94,UCS[l]):e&&(e.client.effectiveConnectionType=l))}; Jnl=function(E,e,l){l=l===void 0?{}:l;var k={};g.LF("EOM_VISITOR_DATA")?k={"X-Goog-EOM-Visitor-Id":g.LF("EOM_VISITOR_DATA")}:k={"X-Goog-Visitor-Id":l.visitorData||g.LF("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return k;e=l.Mf||g.LF("AUTHORIZATION");e||(E?e="Bearer "+g.eS("gapi.auth.getToken")().access_token:(E=tFX().wT(HN),g.QT("pageid_as_header_web")||delete E["X-Goog-PageId"],k=Object.assign({},k,E)));e&&(k.Authorization=e);return k}; TJ7=function(E,e){var l=WCv();if(l){var k=l.coldConfigData,H=l.coldHashData;l=l.hotHashData;if(E){var O;e=(O=wR(E,Gn,62))!=null?O:new Gn;k=SY(e,1,k);SY(k,3,H).kM(l);$4(E,Gn,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},k&&(e.client.configInfo.coldConfigData=k),H&&(e.client.configInfo.coldHashData=H),l&&(e.client.configInfo.hotHashData=l))}}; OQ=function(E,e){this.version=E;this.args=e}; XP=function(E,e){this.topic=E;this.T=e}; Ax=function(E,e){var l=ur();l&&l.publish.call(l,E.toString(),E,e)}; jSe=function(E){var e=cn0,l=ur();if(!l)return 0;var k=l.subscribe(e.toString(),function(H,O){var X=g.eS("ytPubsub2Pubsub2SkipSubKey");X&&X==k||(X=function(){if(Ca[k])try{if(O&&e instanceof XP&&e!=H)try{var A=e.T,C=O;if(!C.args||!C.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!A.Kl){var p=new A;A.Kl=p.version}var x=A.Kl}catch(Q){}if(!x||C.version!=x)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{O=Reflect.construct(A, g.fW(C.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+e.toString()+": "+Q.message,Q;}E.call(window,O)}catch(Q){g.Nf(Q)}},yn8[e.toString()]?g.mW()?g.rN.b1(X):g.uM(X,0):X())}); Ca[k]=!0;pa[e.toString()]||(pa[e.toString()]=[]);pa[e.toString()].push(k);return k}; fhe=function(){var E=Ihl,e=jSe(function(l){E.apply(void 0,arguments);FCW(e)}); return e}; FCW=function(E){var e=ur();e&&(typeof E==="number"&&(E=[E]),g.nW(E,function(l){e.unsubscribeByKey(l);delete Ca[l]}))}; ur=function(){return g.eS("ytPubsub2Pubsub2Instance")}; xP=function(E,e,l){l=l===void 0?{sampleRate:.1}:l;Math.random()v_v||X=hdv&&(ir++,g.QT("abandon_compression_after_N_slow_zips")?T1===g.Wg("compression_disable_point")&&ir>MdX&&(z1=!1):z1=!1);NJ7(e);k.headers||(k.headers={});k.headers["Content-Encoding"]="gzip";k.postBody=E;k.postParams=void 0;H(l,k)}; ZDy=function(E){var e=e===void 0?!1:e;var l=l===void 0?!1:l;var k=(0,g.dE)(),H={startTime:k,ticks:{},infos:{}},O=e?g.eS("yt.logging.gzipForFetch",!1):!0;if(z1&&O){if(!E.body)return E;try{var X=l?E.body:typeof E.body==="string"?E.body:JSON.stringify(E.body);O=X;if(!l&&typeof X==="string"){var A=bDZ(X);if(A!=null&&(A>v_v||A=hdv)if(ir++,g.QT("abandon_compression_after_N_slow_zips")||g.QT("abandon_compression_after_N_slow_zips_lr")){e=ir/T1;var p=MdX/g.Wg("compression_disable_point");T1>0&&T1%g.Wg("compression_disable_point")===0&&e>=p&&(z1=!1)}else z1=!1;NJ7(H)}}E.headers=Object.assign({},{"Content-Encoding":"gzip"},E.headers||{});E.body=O;return E}catch(x){return Yu(x),E}}else return E}; bDZ=function(E){try{return(new Blob(E.split(""))).size}catch(e){return Yu(e),null}}; NJ7=function(E){g.QT("gel_compression_csi_killswitch")||!g.QT("log_gel_compression_latency")&&!g.QT("log_gel_compression_latency_lr")||xP("gel_compression",E,{sampleRate:.1})}; UQ=function(E){var e=this;this.DO=this.T=!1;this.potentialEsfErrorCounter=this.G=0;this.handleError=function(){}; this.M0=function(){}; this.now=Date.now;this.ME=!1;this.p5={Dy0:function(x){e.C0=x}, ixH:function(){e.Mg()}, SW:function(){e.Qv()}, Mq:function(x){return g.D(function(Q){return g.S(Q,e.Mq(x),0)})}, HW:function(x,Q){return e.HW(x,Q)}, Kr:function(){e.Kr()}}; var l;this.hR=(l=E.hR)!=null?l:100;var k;this.h1=(k=E.h1)!=null?k:1;var H;this.pK=(H=E.pK)!=null?H:2592E6;var O;this.vU=(O=E.vU)!=null?O:12E4;var X;this.xO=(X=E.xO)!=null?X:5E3;var A;this.C0=(A=E.C0)!=null?A:void 0;this.fk=!!E.fk;var C;this.nk=(C=E.nk)!=null?C:.1;var p;this.cW=(p=E.cW)!=null?p:10;E.handleError&&(this.handleError=E.handleError);E.M0&&(this.M0=E.M0);E.ME&&(this.ME=E.ME);E.DO&&(this.DO=E.DO);this.P5=E.P5;this.O_=E.O_;this.aV=E.aV;this.QR=E.QR;this.sendFn=E.sendFn;this.aD=E.aD;this.Nz= E.Nz;$P(this)&&(!this.P5||this.P5("networkless_logging"))&&YzW(this)}; YzW=function(E){$P(E)&&!E.ME&&(E.T=!0,E.fk&&Math.random()<=E.nk&&E.aV.QF(E.C0),E.Kr(),E.QR.iO()&&E.Mg(),E.QR.listen(E.aD,E.Mg.bind(E)),E.QR.listen(E.Nz,E.Qv.bind(E)))}; KCv=function(E,e){if(!$P(E))throw Error("IndexedDB is not supported: updateRequestHandlers");var l=e.options.onError?e.options.onError:function(){}; e.options.onError=function(H,O){var X,A,C,p;return g.D(function(x){switch(x.G){case 1:X=mCW(O);(A=g_W(O))&&E.P5&&E.P5("web_enable_error_204")&&E.handleError(Error("Request failed due to compression"),e.url,O);if(!(E.P5&&E.P5("nwl_consider_error_code")&&X||E.P5&&!E.P5("nwl_consider_error_code")&&E.potentialEsfErrorCounter<=E.cW)){x.xt(2);break}if(!E.QR.dN){x.xt(3);break}return g.S(x,E.QR.dN(),3);case 3:if(E.QR.iO()){x.xt(2);break}l(H,O);if(!E.P5||!E.P5("nwl_consider_error_code")||((C=e)==null?void 0: C.id)===void 0){x.xt(6);break}return g.S(x,E.aV.o0(e.id,E.C0,!1),6);case 6:return x.return();case 2:if(E.P5&&E.P5("nwl_consider_error_code")&&!X&&E.potentialEsfErrorCounter>E.cW)return x.return();E.potentialEsfErrorCounter++;if(((p=e)==null?void 0:p.id)===void 0){x.xt(8);break}return e.sendCount=400&&E<=599?!1:!0}; g_W=function(E){var e;E=E==null?void 0:(e=E.error)==null?void 0:e.code;return!(E!==400&&E!==415)}; n_X=function(){if(cN)return cN();var E={};cN=g.YI("LogsDatabaseV2",{tW:(E.LogsRequestsStore={Ij:2},E),shared:!1,upgrade:function(e,l,k){l(2)&&g.T0(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});l(3);l(5)&&(k=k.objectStore("LogsRequestsStore"),k.T.indexNames.contains("newRequest")&&k.T.deleteIndex("newRequest"),g.y4(k,"newRequestV2",["status","interface","timestamp"]));l(7)&&iE(e,"sapisid");l(9)&&iE(e,"SWHealthLog")}, version:9});return cN()}; y5=function(E){return g.DB(n_X(),E)}; sS9=function(E,e){var l,k,H,O;return g.D(function(X){if(X.G==1)return l={startTime:(0,g.dE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.S(X,y5(e),2);if(X.G!=3)return k=X.T,H=Object.assign({},E,{options:JSON.parse(JSON.stringify(E.options)),interface:g.LF("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.S(X,g.Jk(k,"LogsRequestsStore",H),3);O=X.T;l.ticks.tc=(0,g.dE)();Rd7(l);return X.return(O)})}; tdX=function(E,e){var l,k,H,O,X,A,C,p;return g.D(function(x){if(x.G==1)return l={startTime:(0,g.dE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.S(x,y5(e),2);if(x.G!=3)return k=x.T,H=g.LF("INNERTUBE_CONTEXT_CLIENT_NAME",0),O=[E,H,0],X=[E,H,(0,g.dE)()],A=IDBKeyRange.bound(O,X),C="prev",g.QT("use_fifo_for_networkless")&&(C="next"),p=void 0,g.S(x,g.$I(k,["LogsRequestsStore"],{mode:"readwrite",Ag:!0},function(Q){return g.fA(Q.objectStore("LogsRequestsStore").index("newRequestV2"), {query:A,direction:C},function(W){W.getValue()&&(p=W.getValue(),E==="NEW"&&(p.status="QUEUED",W.update(p)))})}),3); l.ticks.tc=(0,g.dE)();Rd7(l);return x.return(p)})}; qzW=function(E,e){var l;return g.D(function(k){if(k.G==1)return g.S(k,y5(e),2);l=k.T;return k.return(g.$I(l,["LogsRequestsStore"],{mode:"readwrite",Ag:!0},function(H){var O=H.objectStore("LogsRequestsStore");return O.get(E).then(function(X){if(X)return X.status="QUEUED",g.U0(O,X).then(function(){return X})})}))})}; EuS=function(E,e,l,k){l=l===void 0?!0:l;var H;return g.D(function(O){if(O.G==1)return g.S(O,y5(e),2);H=O.T;return O.return(g.$I(H,["LogsRequestsStore"],{mode:"readwrite",Ag:!0},function(X){var A=X.objectStore("LogsRequestsStore");return A.get(E).then(function(C){return C?(C.status="NEW",l&&(C.sendCount+=1),k!==void 0&&(C.options.compress=k),g.U0(A,C).then(function(){return C})):g.BZ.resolve(void 0)})}))})}; eUp=function(E,e){var l;return g.D(function(k){if(k.G==1)return g.S(k,y5(e),2);l=k.T;return k.return(l.delete("LogsRequestsStore",E))})}; lPZ=function(E){var e,l;return g.D(function(k){if(k.G==1)return g.S(k,y5(E),2);e=k.T;l=(0,g.dE)()-2592E6;return g.S(k,g.$I(e,["LogsRequestsStore"],{mode:"readwrite",Ag:!0},function(H){return g.ji(H.objectStore("LogsRequestsStore"),{},function(O){if(O.getValue().timestamp<=l)return O.delete().then(function(){return g.Ia(O)})})}),0)})}; kn8=function(){g.D(function(E){return g.S(E,Kr7("LogsDatabaseV2"),0)})}; Rd7=function(E){g.QT("nwl_csi_killswitch")||xP("networkless_performance",E,{sampleRate:1})}; OFZ=function(E){return g.DB(HFe(),E)}; XCl=function(E){var e,l;g.D(function(k){if(k.G==1)return g.S(k,OFZ(E),2);e=k.T;l=(0,g.dE)()-2592E6;return g.S(k,g.$I(e,["SWHealthLog"],{mode:"readwrite",Ag:!0},function(H){return g.ji(H.objectStore("SWHealthLog"),{},function(O){if(O.getValue().timestamp<=l)return O.delete().then(function(){return g.Ia(O)})})}),0)})}; u9p=function(E){var e;return g.D(function(l){if(l.G==1)return g.S(l,OFZ(E),2);e=l.T;return g.S(l,e.clear("SWHealthLog"),0)})}; g.jA=function(E,e,l,k,H,O,X){H=H===void 0?"":H;O=O===void 0?!1:O;X=X===void 0?!1:X;if(E)if(l&&!g.vg())Yu(new g.PK("Legacy referrer-scrubbed ping detected")),E&&Adp(E,void 0,{scrubReferrer:!0});else if(H)wv(E,e,"POST",H,k);else if(g.LF("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||k||X)wv(E,e,"GET","",k,void 0,O,X);else{b:{try{c:{var A=new yc0({url:E});if(A.T.dsh==="1")var C=null;else{var p=A.T.ae;if(p==="1"){var x=A.T.adurl;if(x)try{C={version:3,Dw:decodeURIComponent(x),Iu:YW(A.G,"act=1","ri=1",j4e(A))}; break c}catch(B){}}C=p==="2"?{version:4,Dw:YW(A.G,"dct=1","suid="+A.Z,""),Iu:YW(A.G,"act=1","ri=1","suid="+A.Z)}:null}}if(C){var Q=Ae(E);var W=!(!Q||!Q.endsWith("/aclk")||GG(E,"ri")!=="1");break b}}catch(B){}W=!1}W?Cap(E)?(e&&e(),l=!0):l=!1:l=!1;l||Adp(E,e)}}; Cap=function(E,e){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(E,e===void 0?"":e))return!0}catch(l){}return!1}; Adp=function(E,e,l){l=l===void 0?{}:l;var k=new Image,H=""+pC7++;Ir[H]=k;k.onload=k.onerror=function(){e&&Ir[H]&&e();delete Ir[H]}; l.scrubReferrer&&(k.referrerPolicy="no-referrer");k.src=E}; xfl=function(E){var e;return((e=document.featurePolicy)==null?0:e.allowedFeatures().includes("attribution-reporting"))?E+"&nis=6":E+"&nis=5"}; fa=function(){FP||(FP=new KZ("yt.offline"));return FP}; Q0l=function(E){if(g.QT("offline_error_handling")){var e=fa().get("errors",!0)||{};e[E.message]={name:E.name,stack:E.stack};E.level&&(e[E.message].level=E.level);fa().set("errors",e,2592E3,!0)}}; V5=function(){this.T=new Map;this.G=!1}; SA=function(){if(!V5.instance){var E=g.eS("yt.networkRequestMonitor.instance")||new V5;g.qW("yt.networkRequestMonitor.instance",E);V5.instance=E}return V5.instance}; rd=function(){g.CU.call(this);var E=this;this.G=!1;this.T=JA9();this.T.listen("networkstatus-online",function(){if(E.G&&g.QT("offline_error_handling")){var e=fa().get("errors",!0);if(e){for(var l in e)if(e[l]){var k=new g.PK(l,"sent via offline_errors");k.name=e[l].name;k.stack=e[l].stack;k.level=e[l].level;g.Nf(k)}fa().set("errors",{},2592E3,!0)}}})}; Wn9=function(){if(!rd.instance){var E=g.eS("yt.networkStatusManager.instance")||new rd;g.qW("yt.networkStatusManager.instance",E);rd.instance=E}return rd.instance}; g.DA=function(E){E=E===void 0?{}:E;g.CU.call(this);var e=this;this.T=this.S=0;this.G=Wn9();var l=g.eS("yt.networkStatusManager.instance.listen").bind(this.G);l&&(E.rateLimit?(this.rateLimit=E.rateLimit,l("networkstatus-online",function(){BSv(e,"publicytnetworkstatus-online")}),l("networkstatus-offline",function(){BSv(e,"publicytnetworkstatus-offline")})):(l("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),l("networkstatus-offline",function(){e.dispatchEvent("publicytnetworkstatus-offline")})))}; BSv=function(E,e){E.rateLimit?E.T?(g.rN.EZ(E.S),E.S=g.rN.b1(function(){E.Z!==e&&(E.dispatchEvent(e),E.Z=e,E.T=(0,g.dE)())},E.rateLimit-((0,g.dE)()-E.T))):(E.dispatchEvent(e),E.Z=e,E.T=(0,g.dE)()):E.dispatchEvent(e)}; vN=function(){var E=UQ.call;br||(br=new g.DA({pRg:!0,pd7:!0}));E.call(UQ,this,{aV:{QF:lPZ,mP:eUp,fm:tdX,va:qzW,o0:EuS,set:sS9},QR:br,handleError:function(e,l,k){var H,O=k==null?void 0:(H=k.error)==null?void 0:H.code;if(O===400||O===415){var X;e=new g.PK(e.message,l,k==null?void 0:(X=k.error)==null?void 0:X.code);Yu(e,void 0,void 0,void 0,!0)}else g.Nf(e)}, M0:Yu,sendFn:ou0,now:g.dE,XN:Q0l,O_:g.Yp(),aD:"publicytnetworkstatus-online",Nz:"publicytnetworkstatus-offline",fk:!0,nk:.1,cW:g.Wg("potential_esf_error_limit",10),P5:g.QT,ME:!(g.LZ()&&g.uy(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.AZ;g.QT("networkless_immediately_drop_all_requests")&&kn8();nN0("LogsDatabaseV2")}; PN=function(){var E=g.eS("yt.networklessRequestController.instance");E||(E=new vN,g.qW("yt.networklessRequestController.instance",E),g.QT("networkless_logging")&&g.N1().then(function(e){E.C0=e;YzW(E);E.Z.resolve();E.fk&&Math.random()<=E.nk&&E.C0&&XCl(E.C0);g.QT("networkless_immediately_drop_sw_health_store")&&wC7(E)})); return E}; wC7=function(E){var e;g.D(function(l){if(!E.C0)throw e=g.Q4("clearSWHealthLogsDb"),e;return l.return(u9p(E.C0).catch(function(k){E.handleError(k)}))})}; ou0=function(E,e,l,k){k=k===void 0?!1:k;e=g.QT("web_fp_via_jspb")?Object.assign({},e):e;g.QT("use_cfr_monitor")&&zUW(E,e);if(g.QT("use_request_time_ms_header"))e.headers&&qf(E)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.dE)())));else{var H;if((H=e.postParams)==null?0:H.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,g.dE)())}l&&Object.keys(e).length===0?g.jA(E):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),G1(E,e.postBody, e,g.zT,k)):G1(E,JSON.stringify(e.postParams),e,dv,k):g.zT(E,e)}; ar=function(E,e){g.QT("use_event_time_ms_header")&&qf(E)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.dE)())));return e}; zUW=function(E,e){var l=e.onError?e.onError:function(){}; e.onError=function(H,O){SA().requestComplete(E,!1);l(H,O)}; var k=e.onSuccess?e.onSuccess:function(){}; e.onSuccess=function(H,O){SA().requestComplete(E,!0);k(H,O)}}; g.La=function(E){this.config_=null;E?this.config_=E:BJS()&&(this.config_=g.lr())}; g.hx=function(E,e,l,k){function H(p){try{if((p===void 0?0:p)&&k.retry&&!k.networklessOptions.bypassNetworkless)O.method="POST",k.networklessOptions.writeThenSend?PN().writeThenSend(C,O):PN().sendAndWrite(C,O);else if(k.compress){var x=!k.networklessOptions.writeThenSend;if(O.postBody){var Q=O.postBody;typeof Q!=="string"&&(Q=JSON.stringify(O.postBody));G1(C,Q,O,g.zT,x)}else G1(C,JSON.stringify(O.postParams),O,dv,x)}else g.QT("web_all_payloads_via_jspb")?g.zT(C,O):dv(C,O)}catch(W){if(W.name==="InvalidAccessError")Yu(Error("An extension is blocking network request.")); else throw W;}} !g.LF("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&Yu(new g.PK("Missing VISITOR_DATA when sending innertube request.",e,l,k));if(!E.isReady())throw E=new g.PK("innertube xhrclient not ready",e,l,k),g.Nf(E),E;var O={headers:k.headers||{},method:"POST",postParams:l,postBody:k.postBody,postBodyFormat:k.postBodyFormat||"JSON",onTimeout:function(){k.onTimeout()}, onFetchTimeout:k.onTimeout,onSuccess:function(p,x){if(k.onSuccess)k.onSuccess(x)}, onFetchSuccess:function(p){if(k.onSuccess)k.onSuccess(p)}, onError:function(p,x){if(k.onError)k.onError(x)}, onFetchError:function(p){if(k.onError)k.onError(p)}, timeout:k.timeout,withCredentials:!0,compress:k.compress};O.headers["Content-Type"]||(O.headers["Content-Type"]="application/json");l="";var X=E.config_.Aw;X&&(l=X);X=E.config_.l7||!1;var A=Jnl(X,l,k);Object.assign(O.headers,A);O.headers.Authorization&&!l&&X&&(O.headers["x-origin"]=window.location.origin);var C=sc(""+l+("/youtubei/"+E.config_.innertubeApiVersion+"/"+e),{alt:"json"});g.eS("ytNetworklessLoggingInitializationOptions")&&df0.isNwlInitialized?hX9().then(function(p){H(p)}):H(!1)}; g.mQ=function(E,e,l){var k=g.MG();if(k&&e){var H=k.subscribe(E,function(){function O(){NG[H]&&e.apply&&typeof e.apply=="function"&&e.apply(l||window,X)} var X=arguments;try{g.ZA[E]?O():g.uM(O,0)}catch(A){g.Nf(A)}},l); NG[H]=!0;YP[E]||(YP[E]=[]);YP[E].push(H);return H}return 0}; Gn9=function(E){var e=g.mQ("LOGGED_IN",function(l){E.apply(void 0,arguments);g.gd(e)})}; g.gd=function(E){var e=g.MG();e&&(typeof E==="number"?E=[E]:typeof E==="string"&&(E=[parseInt(E,10)]),g.nW(E,function(l){e.unsubscribeByKey(l);delete NG[l]}))}; g.tx=function(E,e){var l=g.MG();return l?l.publish.apply(l,arguments):!1}; iFp=function(E){var e=g.MG();if(e)if(e.clear(E),E)TS9(E);else for(var l in YP)TS9(l)}; g.MG=function(){return g.t7.ytPubsubPubsubInstance}; TS9=function(E){YP[E]&&(E=YP[E],g.nW(E,function(e){NG[e]&&delete NG[e]}),E.length=0)}; g.qG=function(E,e,l){$f7(E,e,l===void 0?null:l)}; $f7=function(E,e,l){l=l===void 0?null:l;var k=Ufe(typeof E==="string"?E:E.toString()),H=document.getElementById(k),O=H&&vV0(H),X=H&&!O;O?e&&e():(e&&(O=g.mQ(k,e),e=""+g.u_(e),Jd7[e]=O),X||(H=cdX(E,k,function(){vV0(H)||(bzS(H),g.tx(k),g.uM(function(){iFp(k)},0))},l)))}; cdX=function(E,e,l,k){k=k===void 0?null:k;var H=g.Qz("SCRIPT");H.id=e;H.onload=function(){l&&setTimeout(l,0)}; H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}}; k&&H.setAttribute("nonce",k);g.GJ(H,typeof E==="string"?g.zn(E):E);E=document.getElementsByTagName("head")[0]||document.body;E.insertBefore(H,E.firstChild);return H}; Ufe=function(E){var e=document.createElement("a");g.Ck(e,E);E=e.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vb(E)}; Ex=function(E,e){if(E===e)E=!0;else if(Array.isArray(E)&&Array.isArray(e))E=g.gr(E,e,Ex);else if(g.O6(E)&&g.O6(e))a:if(g.AT(E).length!=g.AT(e).length)E=!1;else{for(var l in E)if(!Ex(E[l],e[l])){E=!1;break a}E=!0}else E=!1;return E}; kT=function(E){var e=g.LS.apply(1,arguments);if(!eN(E)||e.some(function(k){return!eN(k)}))throw Error("Only objects may be merged."); e=g.T(e);for(var l=e.next();!l.done;l=e.next())lP(E,l.value)}; lP=function(E,e){for(var l in e)if(eN(e[l])){if(l in E&&!eN(E[l]))throw Error("Cannot merge an object into a non-object.");l in E||(E[l]={});lP(E[l],e[l])}else if(HA(e[l])){if(l in E&&!HA(E[l]))throw Error("Cannot merge an array into a non-array.");l in E||(E[l]=[]);yd7(E[l],e[l])}else E[l]=e[l];return E}; yd7=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next())l=l.value,eN(l)?E.push(lP({},l)):HA(l)?E.push(yd7([],l)):E.push(l);return E}; eN=function(E){return typeof E==="object"&&!Array.isArray(E)}; HA=function(E){return typeof E==="object"&&Array.isArray(E)}; Ox=function(E){g.a.call(this);this.G=E}; XE=function(E){Ox.call(this,!0);this.T=E}; uP=function(E,e){g.a.call(this);var l=this;this.Z=[];this.j=!1;this.G=0;this.W=this.J=this.S=!1;this.pg=null;var k=(0,g.CW)(E,e);this.T=new g.Nx(function(){return k(l.pg)},300); g.L(this,this.T);this.V=this.N=Infinity}; j0X=function(E,e){if(!e)return!1;for(var l=0;l-1)throw Error("Deps cycle for: "+e);if(E.G.has(e))return E.G.get(e);if(!E.T.has(e)){if(k)return;throw Error("No provider for: "+e);}k=E.T.get(e);l.push(e);if(k.Nk!==void 0)var H=k.Nk;else if(k.Vvg)H=k[Gi]?VmS(E,k[Gi],l):[],H=k.Vvg.apply(k,g.Be(H));else if(k.Pm){H=k.Pm;var O=H[Gi]?VmS(E,H[Gi],l):[];H=new (Function.prototype.bind.apply(H,[null].concat(g.Be(O))))}else throw Error("Could not resolve providers for: "+e);l.pop();k.Zxd||E.G.set(e,H); return H}; VmS=function(E,e,l){return e?e.map(function(k){return k instanceof wg?Ti(E,k.key,l,!0):Ti(E,k,l)}):[]}; $T=function(){iP||(iP=new fPy);return iP}; J$=function(){var E,e;return"h5vcc"in Ux&&((E=Ux.h5vcc.traceEvent)==null?0:E.traceBegin)&&((e=Ux.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in Ux&&Ux.performance.mark&&Ux.performance.measure?2:0}; cA=function(E){var e=J$();switch(e){case 1:Ux.h5vcc.traceEvent.traceBegin("YTLR",E);break;case 2:Ux.performance.mark(E+"-start");break;case 0:break;default:pk(e,"unknown trace type")}}; ScS=function(E){var e=J$();switch(e){case 1:Ux.h5vcc.traceEvent.traceEnd("YTLR",E);break;case 2:e=E+"-start";var l=E+"-end";Ux.performance.mark(l);Ux.performance.measure(E,e,l);break;case 0:break;default:pk(e,"unknown trace type")}}; rd8=function(E){var e,l;(l=(e=window).onerror)==null||l.call(e,E.message,"",0,0,E)}; Dfl=function(E){var e=this;var l=l===void 0?0:l;var k=k===void 0?g.Yp():k;this.Z=l;this.scheduler=k;this.G=new g.AZ;this.T=E;for(E={fX:0};E.fX=1E3?H():k>=E?sx||(sx=t$(function(){H();sx=void 0},0)):O-A>=10&&(tmy(e,l.tier),X.S=O)}; guZ=function(E,e){if(E.endpoint==="log_event"){g.QT("more_accurate_gel_parser")&&h$().storePayload({isJspb:!1},E.payload);Nv(E);var l=ZE(E),k=new Map;k.set(l,[E.payload]);var H=ZFS(E.payload)||"";e&&(n2=new e);return new g.cq(function(O,X){n2&&n2.isReady()?qcp(k,n2,O,X,{bypassNetworkless:!0},!0,gg(H)):O()})}}; RU7=function(E,e,l){if(e.endpoint==="log_event"){Nv(void 0,e);var k=ZE(e,!0),H=new Map;H.set(k,[Li(e.payload)]);l&&(n2=new l);return new g.cq(function(O){n2&&n2.isReady()?EqW(H,n2,O,{bypassNetworkless:!0},!0,gg(E)):O()})}}; ZE=function(E,e){var l="";if(E.dangerousLogToVisitorSession)l="visitorOnlyApprovedKey";else if(E.cttAuthInfo){if(e===void 0?0:e){e=E.cttAuthInfo.token;l=E.cttAuthInfo;var k=new DP;l.videoId?k.setVideoId(l.videoId):l.playlistId&&x4(k,2,qv,UA(l.playlistId));EJ[e]=k}else e=E.cttAuthInfo,l={},e.videoId?l.videoId=e.videoId:e.playlistId&&(l.playlistId=e.playlistId),e6[E.cttAuthInfo.token]=l;l=E.cttAuthInfo.token}return l}; K2=function(E,e,l){E=E===void 0?{}:E;e=e===void 0?!1:e;new g.cq(function(k,H){var O=Rf(e,l),X=O.Z;O.Z=!1;lo(O.G);lo(O.T);O.T=0;n2&&n2.isReady()?l===void 0&&g.QT("enable_web_tiered_gel")?eFp(k,H,E,e,300,X):eFp(k,H,E,e,l,X):(tmy(e,l),k())})}; eFp=function(E,e,l,k,H,O){var X=n2;l=l===void 0?{}:l;k=k===void 0?!1:k;H=H===void 0?200:H;O=O===void 0?!1:O;var A=new Map,C=new Map,p={isJspb:k,cttAuthInfo:void 0,tier:H},x={isJspb:k,cttAuthInfo:void 0};if(k){e=g.T(Object.keys(mM));for(H=e.next();!H.done;H=e.next())H=H.value,C=g.QT("enable_web_tiered_gel")?h$().smartExtractMatchingEntries({keys:[p,x],sizeLimit:1E3}):h$().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),C.length>0&&A.set(H,C),(g.QT("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.QT("web_fp_via_jspb_and_json"))&& delete mM[H];EqW(A,X,E,l,!1,O)}else{A=g.T(Object.keys(mM));for(p=A.next();!p.done;p=A.next())p=p.value,x=g.QT("enable_web_tiered_gel")?h$().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:p,tier:H},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):h$().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),x.length>0&&C.set(p,x),(g.QT("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.QT("web_fp_via_jspb_and_json"))&&delete mM[p];qcp(C,X,E,e,l,!1,O)}}; tmy=function(E,e){function l(){K2({writeThenSend:!0},E,e)} E=E===void 0?!1:E;e=e===void 0?200:e;var k=Rf(E,e),H=k===lDX||k===kT7?5E3:HEX;g.QT("web_gel_timeout_cap")&&!k.T&&(H=t$(function(){l()},H),k.T=H); lo(k.G);H=g.LF("LOGGING_BATCH_TIMEOUT",g.Wg("web_gel_debounce_ms",1E4));g.QT("shorten_initial_gel_batch_timeout")&&kF&&(H=OE8);H=t$(function(){g.Wg("gel_min_batch_size")>0?h$().getSequenceCount({cttAuthInfo:void 0,isJspb:E,tier:e})>=XgW&&l():l()},H); k.G=H}; qcp=function(E,e,l,k,H,O,X){H=H===void 0?{}:H;var A=Math.round((0,g.dE)()),C=E.size,p=umS(X);E=g.T(E);var x=E.next();for(X={};!x.done;X={Mz:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,qs:void 0,ID:void 0},x=E.next()){var Q=g.T(x.value);x=Q.next().value;Q=Q.next().value;X.batchRequest=g.wb({context:g.kP(e.config_||g.lr())});if(!g.Ht(Q)&&!g.QT("throw_err_when_logevent_malformed_killswitch")){k();break}X.batchRequest.events=Q;(Q=e6[x])&&A28(X.batchRequest,x,Q);delete e6[x];X.dangerousLogToVisitorSession= x==="visitorOnlyApprovedKey";CMX(X.batchRequest,A,X.dangerousLogToVisitorSession);pgZ(H);X.qs=function(W){g.QT("start_client_gcf")&&g.rN.b1(function(){return g.D(function(B){return g.S(B,xbX(W),0)})}); C--;C||l()}; X.Mz=0;X.ID=function(W){return function(){W.Mz++;if(H.bypassNetworkless&&W.Mz===1)try{g.hx(e,p,W.batchRequest,HQ({writeThenSend:!0},W.dangerousLogToVisitorSession,W.qs,W.ID,O)),kF=!1}catch(B){g.Nf(B),k()}C--;C||l()}}(X); try{g.hx(e,p,X.batchRequest,HQ(H,X.dangerousLogToVisitorSession,X.qs,X.ID,O)),kF=!1}catch(W){g.Nf(W),k()}}}; EqW=function(E,e,l,k,H,O){k=k===void 0?{}:k;var X=Math.round((0,g.dE)()),A={value:E.size},C=new Map([].concat(g.Be(E)));C=g.T(C);for(var p=C.next();!p.done;p=C.next()){var x=g.T(p.value).next().value,Q=E.get(x);p=new NmS;var W=e.config_||g.lr(),B=new I0,w=new ia;SY(w,1,W.z9);SY(w,2,W.Hc);Dz(w,16,W.cO);SY(w,17,W.innertubeContextClientVersion);if(W.e8){var U=W.e8,c=new Gn;U.coldConfigData&&SY(c,1,U.coldConfigData);U.appInstallData&&SY(c,6,U.appInstallData);U.coldHashData&&SY(c,3,U.coldHashData);U.hotHashData&& c.kM(U.hotHashData);$4(w,Gn,62,c)}(U=g.t7.devicePixelRatio)&&U!=1&&tv(w,65,uq(U));U=Bg();U!==""&&SY(w,54,U);U=oL();if(U.length>0){c=new Jd;for(var V=0;V65535&&(E=1);vC("BATCH_CLIENT_COUNTER",E);return E}; A28=function(E,e,l){if(l.videoId)var k="VIDEO";else if(l.playlistId)k="PLAYLIST";else return;E.credentialTransferTokenTargetId=l;E.context=E.context||{};E.context.user=E.context.user||{};E.context.user.credentialTransferTokens=[{token:e,scope:k}]}; Nv=function(E,e){var l=g.eS("yt.logging.transport.enableScrapingForTest"),k=xq("il_payload_scraping");k=(k!==void 0?String(k):"")==="enable_il_payload_scraping";if(!l)if(k)uo=[],g.qW("yt.logging.transport.enableScrapingForTest",!0),g.qW("yt.logging.transport.scrapedPayloadsForTesting",uo),g.qW("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.qW("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.qW("yt.logging.transport.scrapeClientEvent",!0);else return;l=g.eS("yt.logging.transport.scrapedPayloadsForTesting");k=g.eS("yt.logging.transport.payloadToScrape");e&&(e=e.payload,(e=g.eS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e)())&&l.push(e));e=g.eS("yt.logging.transport.scrapeClientEvent");if(k&&k.length>=1)for(var H=0;H0&&SNX(E,e,O)}else SNX(E,e)}; SNX=function(E,e,l){E=r2X(E);e=e?g.WJ(e):"";l=l||5;KE()&&g.jQ(E,e,l)}; r2X=function(E){for(var e=g.T(DbX),l=e.next();!l.done;l=e.next())E=TG(E,l.value);return"ST-"+Vb(E).toString(36)}; bEv=function(E){if(E.name==="JavaException")return!0;E=E.stack;return E.includes("chrome://")||E.includes("-extension://")||E.includes("webkit-masked-url://")}; vqS=function(E){if(!E.stack)return!0;var e=!E.stack.includes("\n");return e&&E.stack.includes("ErrorType: ")||e&&E.stack.includes("Anonymous function (Unknown script")||E.stack.toLowerCase()==="not available"||E.fileName==="user-script"||E.fileName.startsWith("user-script:")?!0:!1}; PMX=function(){this.VA=[];this.q7=[]}; dw=function(){if(!zw){var E=zw=new PMX;E.q7.length=0;E.VA.length=0;aDp(E,LVW)}return zw}; aDp=function(E,e){e.q7&&E.q7.push.apply(E.q7,e.q7);e.VA&&E.VA.push.apply(E.VA,e.VA)}; hFX=function(E){function e(){return E.charCodeAt(k++)} var l=E.length,k=0;do{var H=Gw(e);if(H===Infinity)break;var O=H>>3;switch(H&7){case 0:H=Gw(e);if(O===2)return H;break;case 1:if(O===2)return;k+=8;break;case 2:H=Gw(e);if(O===2)return E.substr(k,H);k+=H;break;case 5:if(O===2)return;k+=4;break;default:return}}while(k500));k++);k=H}else if(typeof E==="object")for(H in E){if(E[H]){var O=H;var X=E[H],A=e,C=l;O=typeof X!=="string"||O!=="clickTrackingParams"&&O!=="trackingParams"?0:(X=hFX(atob(X.replace(/-/g,"+").replace(/_/g,"/"))))?Tw(O+".ve",X,A,C):0;k+=O;k+=Tw(H,E[H],e,l);if(k>500)break}}else l[e]=io(E),k+=l[e].length;else l[e]=io(E),k+=l[e].length;return k}; Tw=function(E,e,l,k){l+="."+E;E=io(e);k[l]=E;return l.length+E.length}; io=function(E){try{return(typeof E==="string"?E:String(JSON.stringify(E))).substr(0,500)}catch(e){return"unable to serialize "+typeof E+" ("+e.message+")"}}; qz=function(E){g.$F(E)}; g.UJ=function(E){g.$F(E,"WARNING")}; g.$F=function(E,e){var l=l===void 0?{}:l;l.name=g.LF("INNERTUBE_CONTEXT_CLIENT_NAME",1);l.version=g.LF("INNERTUBE_CONTEXT_CLIENT_VERSION");e=e===void 0?"ERROR":e;var k=!1;e=e===void 0?"ERROR":e;k=k===void 0?!1:k;if(E){E.hasOwnProperty("level")&&E.level&&(e=E.level);if(g.QT("console_log_js_exceptions")){var H=[];H.push("Name: "+E.name);H.push("Message: "+E.message);E.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(E.params));E.hasOwnProperty("args")&&H.push("Error args: "+JSON.stringify(E.args)); H.push("File name: "+E.fileName);H.push("Stacktrace: "+E.stack);window.console.log(H.join("\n"),E)}if(!(Nvv>=5)){H=[];for(var O=g.T(ZEv),X=O.next();!X.done;X=O.next()){X=X.value;try{X()&&H.push(X())}catch(U){}}H=[].concat(g.Be(YNe),g.Be(H));var A=OWS(E);O=A.message||"Unknown Error";X=A.name||"UnknownError";var C=A.stack||E.G||"Not available";if(C.startsWith(X+": "+O)){var p=C.split("\n");p.shift();C=p.join("\n")}p=A.lineNumber||"Not available";A=A.fileName||"Not available";var x=0;if(E.hasOwnProperty("args")&& E.args&&E.args.length)for(var Q=0;Q=500);Q++);else if(E.hasOwnProperty("params")&&E.params){var W=E.params;if(typeof E.params==="object")for(Q in W){if(W[Q]){var B="params."+Q,w=io(W[Q]);l[B]=w;x+=B.length+w.length;if(x>500)break}}else l.params=io(W)}if(H.length)for(Q=0;Q=500);Q++);navigator.vendor&&!l.hasOwnProperty("vendor")&&(l["device.vendor"]=navigator.vendor);l={message:O,name:X,lineNumber:p, fileName:A,stack:C,params:l,sampleWeight:1};Q=Number(E.columnNumber);isNaN(Q)||(l.lineNumber=l.lineNumber+":"+Q);if(E.level==="IGNORED")E=0;else a:{E=dw();Q=g.T(E.q7);for(H=Q.next();!H.done;H=Q.next())if(H=H.value,l.message&&l.message.match(H.eP)){E=H.weight;break a}E=g.T(E.VA);for(Q=E.next();!Q.done;Q=E.next())if(Q=Q.value,Q.callback(l)){E=Q.weight;break a}E=1}l.sampleWeight=E;E=g.T(mby);for(Q=E.next();!Q.done;Q=E.next())if(Q=Q.value,Q.Z8[l.name])for(O=g.T(Q.Z8[l.name]),H=O.next();!H.done;H=O.next())if(X= H.value,H=l.message.match(X.bP)){l.params["params.error.original"]=H[0];O=X.groups;X={};for(p=0;p1E3&&g.UJ(new g.PK("IL Attach cache exceeded limit"))}A= vQ(l,e);VQ.has(A)?PQ(l,e):rw.set(A,!0)}}k=k.filter(function(x){x.csn!==e?(x.csn=e,x=!0):x=!1;return x}); l={csn:e,parentVe:l.getAsJson(),childVes:g.o7(k,function(x){return x.getAsJson()})}; e==="UNDEFINED_CSN"?aO("visualElementAttached",O,l):E?Cg("visualElementAttached",l,E,O):g.E0("visualElementAttached",l,O)}; ugy=function(E,e,l,k,H){Lg(l,e);k=fg({cttAuthInfo:oO(e)||void 0},e);l={csn:e,ve:l.getAsJson(),eventType:1};H&&(l.clientData=H);e==="UNDEFINED_CSN"?aO("visualElementShown",k,l):E?Cg("visualElementShown",l,E,k):g.E0("visualElementShown",l,k)}; Awp=function(E,e,l,k){var H=(k=k===void 0?!1:k)?16:8;k=fg({cttAuthInfo:oO(e)||void 0,endOfSequence:k},e);l={csn:e,ve:l.getAsJson(),eventType:H};e==="UNDEFINED_CSN"?aO("visualElementHidden",k,l):E?Cg("visualElementHidden",l,E,k):g.E0("visualElementHidden",l,k)}; h8=function(E,e,l,k,H){CG7(E,e,l,void 0,k,H)}; CG7=function(E,e,l,k,H){Lg(l,e);k=k||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var O=fg({cttAuthInfo:oO(e)||void 0},e);l={csn:e,ve:l.getAsJson(),gestureType:k};H&&(l.clientData=H);e==="UNDEFINED_CSN"?aO("visualElementGestured",O,l):E?Cg("visualElementGestured",l,E,O):g.E0("visualElementGestured",l,O)}; pK8=function(){var E=C2(16);for(var e=[],l=0;l0&&l.push(g.Qz("BR"));l.push(g.Wb(O))}):l.push(g.Wb(k))}return l}; eP=function(E,e,l,k){if(l==="child"){g.ob(e);var H;k===void 0?H=void 0:H=!Array.isArray(k)||k&&typeof k.X==="string"?[k]:k;l=QCW(E,H);l=g.T(l);for(E=l.next();!E.done;E=l.next())e.appendChild(E.value)}else l==="style"?g.MV(e,"cssText",k?k:""):k===null||k===void 0?e.removeAttribute(l):(E=k.toString(),l==="href"&&(E=g.kX(g.Xj(E))),e.setAttribute(l,E))}; g.Z=function(E){g.qS.call(this,E);this.Vd=!0;this.W=!1;this.listeners=[]}; g.lU=function(E){g.Z.call(this,E);this.gH=new g.sJ;g.L(this,this.gH)}; k3=function(E,e,l,k,H,O,X){X=X===void 0?null:X;g.lU.call(this,e);this.api=E;this.macros={};this.componentType=l;this.j=this.N=null;this.rH=X;this.layoutId=k;this.interactionLoggingClientData=H;this.a4=O;this.R4=null;this.fL=new XE(this.element);g.L(this,this.fL);this.Yt=this.C(this.element,"click",this.onClick);this.Qd=[];this.SR=new uP(this.onClick,this);g.L(this,this.SR);this.dC=!1;this.fg=this.pg=null}; HT=function(E,e){E=E===void 0?null:E;e=e===void 0?null:e;if(E==null)return g.UJ(Error("Got null or undefined adText object")),"";var l=g.fk(E.text);if(!E.isTemplated)return l;if(e==null)return g.UJ(Error("Missing required parameters for a templated message")),l;E=g.T(Object.entries(e));for(e=E.next();!e.done;e=E.next()){var k=g.T(e.value);e=k.next().value;k=k.next().value;l=l.replace("{"+e+"}",k)}return l}; WW8=function(E){E=E===void 0?null:E;return E!=null&&(E=E.thumbnail,E!=null&&E.thumbnails!=null&&E.thumbnails.length!=0&&E.thumbnails[0].url!=null)?g.fk(E.thumbnails[0].url):""}; BO8=function(E){E=E===void 0?null:E;return E!=null&&(E=E.thumbnail,E!=null&&E.thumbnails!=null&&E.thumbnails.length!=0&&E.thumbnails[0].width!=null&&E.thumbnails[0].height!=null)?new g.YX(E.thumbnails[0].width||0,E.thumbnails[0].height||0):new g.YX(0,0)}; g.Ow=function(E){if(E.simpleText)return E.simpleText;if(E.runs){var e=[];E=g.T(E.runs);for(var l=E.next();!l.done;l=E.next())l=l.value,l.text&&e.push(l.text);return e.join("")}return""}; g.X0=function(E){if(E.simpleText)return E=document.createTextNode(E.simpleText),E;var e=[];if(E.runs)for(var l=0;l1){for(var e=[E[0]],l=1;l0&&(this.T=new g.Nx(this.Nf,e,this),g.L(this,this.T));this.W=new g.Nx(this.Nf,l,this);g.L(this,this.W);this.N=SMl(this.G,H,1,k);g.L(this,this.N);this.j=SMl(this.G,0,k,1);g.L(this,this.j);this.S=new GC;g.L(this,this.S)}; qZ=function(E,e,l){this.G=E;this.isAsync=e;this.T=l}; XZX=function(E){switch(E){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:pk(E,"unknown result type")}}; up0=function(E,e){var l=1;E.isTrusted===!1&&(l=0);vC("ISDSTAT",l);Eu(l,"i.s_",{triggerContext:"sk",metadata:e});return l}; Aky=function(E,e){var l=[];e?e.isTrusted===!0?l.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):e.isTrusted===!1?l.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):l.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):l.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Eu(0,"a.s_",{metadata:E,states:l});vC("ASDSTAT",0)}; Eu=function(E,e,l){e=CEy[e];var k,H,O={detected:E===0,source:""+e.G+((k=l.triggerContext)!=null?k:"")+((H=l.H1)!=null?H:""),detectionStates:l.states,durationMs:l.NH};l.metadata&&(O.contentCpn=l.metadata.contentCpn,O.adCpn=l.metadata.adCpn);g.E0("biscottiBasedDetection",O);e.T!==void 0&&(l=Number(g.LF("CATSTAT",0)),e.T!==void 0?(e=e.T,E=XZX(E),E=l&~(3<0}; uu=function(E,e,l,k,H,O){NZ.call(this,E,{X:"div",B:"ytp-ad-skip-button-slot"},"skip-button",e,l,k,H);var X=this;this.kt=null;this.h0=!1;this.jR=O;this.J=this.api.Y().experiments.P5("enable_modern_skip_button_on_web");this.b3=!1;this.S=new g.lU({X:"span",s7:["ytp-ad-skip-button-container"]});this.J&&this.S.element.classList.add("ytp-ad-skip-button-container-detached");g.L(this,this.S);this.S.u3(this.element);this.G=this.Z=null;this.ND=new g.mO(this.S,500,!1,100,function(){return X.hide()}); g.L(this,this.ND);this.c5=new tq(this.S.element,15E3,5E3,.5,.5,this.J);g.L(this,this.c5);this.hide()}; x1p=function(E){E=E.kt&&E.kt.adRendererCommands;return(E&&E.clickCommand&&g.M(E.clickCommand,g.A_)&&g.M(E.clickCommand,g.A_).commands||[]).some(function(e){return e.adLifecycleCommand?pZ9(e.adLifecycleCommand):!1})}; pZ9=function(E){return E.action==="END_LINEAR_AD"||E.action==="END_LINEAR_AD_PLACEMENT"}; CB=function(E,e,l,k,H,O){NZ.call(this,E,{X:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",e,l,k,H);this.kt=O;this.S=!1;this.J=0;this.Z=this.G=null;this.hide()}; QaX=function(E,e){E.S||(E.S=!0,E.G&&(e?E.G.kt.hide():E.G.hide()),e?(E=E.Z,E.ND.show(),E.show()):E.Z.show())}; pB=function(E,e,l,k){Uw.call(this,E,e,l,k,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; xd=function(E,e,l,k,H,O,X){O=O===void 0?!1:O;X=X===void 0?!1:X;k3.call(this,E,{X:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",e,l,k);this.Z=H;this.T=this.X6("ytp-ad-simple-ad-badge");(this.G=O)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");X&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Qd=function(E,e,l,k,H){H=H===void 0?!1:H;RO.call(this,"player-overlay",E,{},e,k);this.videoAdDurationSeconds=l;this.interactionLoggingClientData=k;this.FP=H}; W2=function(E,e){g.sJ.call(this);this.api=E;this.durationMs=e;this.T=null;this.K5=new GC(this);g.L(this,this.K5);this.G=Wz7;this.K5.C(this.api,"presentingplayerstatechange",this.wv);this.T=this.K5.C(this.api,"onAdPlaybackProgress",this.oz)}; B2=function(E){g.sJ.call(this);this.T=!1;this.wM=0;this.K5=new GC(this);g.L(this,this.K5);this.durationMs=E;this.timer=new g.S2(100);g.L(this,this.timer);this.K5.C(this.timer,"tick",this.oz);this.G={seekableStart:0,seekableEnd:E/1E3,current:0};this.start()}; g.ok=function(E,e){var l=Math.abs(Math.floor(E)),k=Math.floor(l/86400),H=Math.floor(l%86400/3600),O=Math.floor(l%3600/60);l=Math.floor(l%60);if(e){e="";k>0&&(e+=" "+k+" Dias");if(k>0||H>0)e+=" "+H+" Horas";e+=" "+O+" Minutos";e+=" "+l+" Segundos";k=e.trim()}else{e="";k>0&&(e+=k+":",H<10&&(e+="0"));if(k>0||H>0)e+=H+":",O<10&&(e+="0");e+=O+":";l<10&&(e+="0");k=e+l}return E>=0?k:"-"+k}; g.wH=function(E){return(!("button"in E)||typeof E.button!=="number"||E.button===0)&&!("shiftKey"in E&&E.shiftKey)&&!("altKey"in E&&E.altKey)&&!("metaKey"in E&&E.metaKey)&&!("ctrlKey"in E&&E.ctrlKey)}; zj=function(E,e,l,k,H,O,X){NZ.call(this,E,{X:"span",B:X?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",e,l,k,H);this.videoAdDurationSeconds=O;this.G=null;X&&this.api.Y().G&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),PZ&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; dH=function(E,e,l,k){hq.call(this,E,e,l,k,"ytp-video-ad-top-bar-title","ad-title")}; Gj=function(E){this.content=E.content;if(E.commandRuns){E=g.T(E.commandRuns);for(var e=E.next();!e.done;e=E.next())e=e.value,this.loggingDirectives=g.M(e,BE7),e.onTap&&(this.interaction={onTap:e.onTap})}}; Tj=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",e,l,k);this.hide()}; iu=function(E,e,l,k,H){k3.call(this,E,{X:"span",B:H?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",e,l,k);this.G=H;this.adBadgeText=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);this.adBadgeText.u3(this.element);g.L(this,this.adBadgeText);H?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),PZ&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; $d=function(E,e,l,k){k3.call(this,E,{X:"span",B:"ytp-ad-pod-index"},"ad-pod-index",e,l,k);this.api.Y().G&&(this.element.classList.add("ytp-ad-pod-index--mweb"),PZ&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Uu=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",e,l,k);this.hide()}; J_=function(E,e){this.G=E;this.T=e}; oIX=function(E,e){return E.G+e*(E.T-E.G)}; c2=function(E,e,l){return E.T-E.G?g.Lk((e-E.G)/(E.T-E.G),0,1):l!=null?l:Infinity}; yd=function(E,e,l,k){k=k===void 0?!1:k;g.lU.call(this,{X:"div",B:"ytp-ad-persistent-progress-bar-container",K:[{X:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=E;this.G=e;this.Z=l;k&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.L(this,this.G);this.progressBar=this.X6("ytp-ad-persistent-progress-bar");this.T=-1;this.C(E,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; jI=function(E,e,l,k,H,O){k3.call(this,E,{X:"div",B:"ytp-ad-player-overlay",K:[{X:"div",B:"ytp-ad-player-overlay-flyout-cta"},{X:"div",B:"ytp-ad-player-overlay-instream-info"},{X:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",B:"ytp-ad-player-overlay-progress-bar"},{X:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",e,l,k);this.V=O;this.J=this.X6("ytp-ad-player-overlay-flyout-cta");this.J.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.X6("ytp-ad-player-overlay-instream-info");this.S=null;wZZ(this)&&(E=xv("div"),g.qx(E,"ytp-ad-player-overlay-top-bar-gradients"),e=this.T,e.parentNode&&e.parentNode.insertBefore(E,e),(e=this.api.getVideoData(2))&&e.isListed&&e.title&&(l=new dH(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),l.u3(E),l.init(ng("ad-title"),{text:e.title},this.macros),g.L(this,l)),this.S=E);this.Z=null;this.J0=this.X6("ytp-ad-player-overlay-skip-or-preview");this.c5=this.X6("ytp-ad-player-overlay-progress-bar"); this.h0=this.X6("ytp-ad-player-overlay-instream-user-sentiment");this.kt=this.X6("ytp-ad-player-overlay-ad-disclosure-banner");this.G=H;g.L(this,this.G);this.hide()}; wZZ=function(E){E=E.api.Y();return g.Ik(E)&&E.G}; g.Fh=function(E){E&=16777215;var e=[(E&16711680)>>16,(E&65280)>>8,E&255];E=e[0];var l=e[1];e=e[2];E=Number(E);l=Number(l);e=Number(e);if(E!=(E&255)||l!=(l&255)||e!=(e&255))throw Error('"('+E+","+l+","+e+'") is not a valid RGB color');l=E<<16|l<<8|e;return E<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)}; g.fB=function(){}; d10=function(E){var e=new OM;var l=new H6;l=SY(l,1,"botguard");E=SY(l,2,E);this.T=Ddl(e,H6,1,zjv,E)}; Vd=function(E){this.T=new $_(E)}; G0X=function(){var E=!1;try{E=!!window.sessionStorage.getItem("session_logininfo")}catch(e){E=!0}return(g.LF("INNERTUBE_CLIENT_NAME")==="WEB"||g.LF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&E}; SI=function(){var E=E===void 0?!0:E;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");vC("LOGIN_INFO","");E&&window.sessionStorage.setItem("from_switch_account","1");E=!0;E=E===void 0?!1:E;var e,l=TE0;l||(l=document.querySelector("#persist_identity"));if(e=l){var k=e.src?(new URL(e.src)).origin:"*";if(E){var H;(H=e.contentWindow)==null||H.postMessage({action:"clear"},k)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var O=window.sessionStorage.getItem("session_logininfo");if(O){var X;(X=e.contentWindow)==null||X.postMessage({loginInfo:O},k)}}}}catch(A){}}; rH=function(E){E&&(E.startsWith("https://accounts.google.com/AddSession")?SI():E.startsWith("https://accounts.google.com/ServiceLogin")?SI():E.startsWith("https://myaccount.google.com")&&g.uF(E).G.endsWith("/youtubeoptions")&&SI());if(g.LF("LOGGED_IN",!0)&&G0X()){var e=g.LF("VALID_SESSION_TEMPDATA_DOMAINS",[]);var l=g.uy(window.location.href);l&&e.push(l);l=g.uy(E);g.i_(e,l)||!l&&I$(E,"/")?(e=CY(E),(e=Zl7(e))?(e=r2X(e),e=(e=g.IL(e)||null)?KF(e):{}):e=null):e=null;e==null&&(e={});l=e;var k=void 0; G0X()?(k||(k=g.LF("LOGIN_INFO")),k?(l.session_logininfo=k,l=!0):l=!1):l=!1;l&&ww(E,e)}}; g.iA9=function(E){var e=e===void 0?{}:e;var l=l===void 0?"":l;var k=k===void 0?window:k;E=g.BJ(E,e);rH(E);l=g.Xj(E+l);k=k.location;l=Au(l);l!==void 0&&(k.href=l)}; g.DX=function(E,e,l){e=e===void 0?{}:e;l=l===void 0?!1:l;var k=g.LF("EVENT_ID");k&&(e.ei||(e.ei=k));e&&ww(E,e);l||(rH(E),g.iA9(E))}; g.bu=function(E,e,l,k,H){H=H===void 0?!1:H;l&&ww(E,l);l=g.Xj(E);var O=g.kX(l);E!=O&&Yu(Error("Unsafe window.open URL: "+E));E=O;e=e||Vb(E).toString(36);try{if(H)return H=E,H=xfl(H),rH(H),g.Ba(window,H,e,"attributionsrc")}catch(X){g.Nf(X)}rH(E);return g.Ba(window,l,e,k)}; $1Z=function(E){v2=E}; U1W=function(E){P2=E}; JkZ=function(E){ak=E}; yk8=function(){ckX=ak=P2=v2=null}; IBW=function(){var E=E===void 0?window.location.href:E;if(g.QT("kevlar_disable_theme_param"))return null;var e=Ae(E);if(g.QT("enable_dark_theme_only_on_shorts")&&e!=null&&e.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var l=g.R0(E).theme;return jav.get(l)||null}catch(k){}return null}; LB=function(){this.T={};if(this.G=dhe()){var E=g.IL("CONSISTENCY");E&&Fz8(this,{encryptedTokenJarContents:E})}}; Fz8=function(E,e){if(e.encryptedTokenJarContents&&(E.T[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){var l=Number(e.expirationSeconds);setTimeout(function(){delete E.T[e.encryptedTokenJarContents]},l*1E3); E.G&&g.jQ("CONSISTENCY",e.encryptedTokenJarContents,l,void 0,!0)}}; M9=function(){this.G=-1;var E=g.LF("LOCATION_PLAYABILITY_TOKEN");g.LF("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=h_(this))&&(E=this.localStorage.get("yt-location-playability-token"));E&&(this.locationPlayabilityToken=E,this.T=void 0)}; h_=function(E){return E.localStorage===void 0?new KZ("yt-client-location"):E.localStorage}; g.N9=function(E,e,l){e=e===void 0?!1:e;l=l===void 0?!1:l;var k=g.LF("INNERTUBE_CONTEXT");if(!k)return g.$F(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};k=g.wb(k);g.QT("web_no_tracking_params_in_shell_killswitch")||delete k.clickTracking;k.client||(k.client={});var H=k.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=g.LF("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints= window.innerHeight;H.screenPixelDensity=Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var O=O===void 0?!1:O;g.VC();var X="USER_INTERFACE_THEME_LIGHT";g.St(0,165)?X="USER_INTERFACE_THEME_DARK":g.St(0,174)?X="USER_INTERFACE_THEME_LIGHT":!g.QT("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (X="USER_INTERFACE_THEME_DARK");O=O?X:IBW()||X;H.userInterfaceTheme=O;if(!e){if(O=HcS())H.connectionType=O;g.QT("web_log_effective_connection_type")&&(O=XrZ())&&(k.client.effectiveConnectionType=O)}var A;if(g.QT("web_log_memory_total_kbytes")&&((A=g.t7.navigator)==null?0:A.deviceMemory)){var C;A=(C=g.t7.navigator)==null?void 0:C.deviceMemory;k.client.memoryTotalKbytes=""+A*1E6}g.QT("web_gcf_hashes_innertube")&&(O=WCv())&&(C=O.coldConfigData,A=O.coldHashData,O=O.hotHashData,k.client.configInfo=k.client.configInfo|| {},C&&(k.client.configInfo.coldConfigData=C),A&&(k.client.configInfo.coldHashData=A),O&&(k.client.configInfo.hotHashData=O));C=g.R0(g.t7.location.href);!g.QT("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(H.internalGeo=C.internalcountrycode);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo||(H.mainAppWebInfo={}),H.mainAppWebInfo.graftUrl=g.t7.location.href,g.QT("kevlar_woffle")&&she.instance&&(C=she.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!C.T&&C.G?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=IC(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&(!g.QT("web_lr_app_quality_killswitch")&&(C=g.LF("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:C})),C=g.LF("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:C}));if(!g.QT("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(P){}p=void 0}p&&(H.timeZone=p)}(p=Bg())?H.experimentsToken=p:delete H.experimentsToken;p=oL();LB.instance||(LB.instance=new LB);k.request=Object.assign({},k.request,{internalExperimentFlags:p,consistencyTokenJars:Hj(LB.instance.T)});!g.QT("web_prequest_context_killswitch")&&(p=g.LF("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(k.request.externalPrequestContext=p);H=g.VC();p=g.St(0,58);H=H.get("gsml","");k.user=Object.assign({}, k.user);p&&(k.user.enableSafetyMode=p);H&&(k.user.lockedSafetyMode=!0);g.QT("warm_op_csn_cleanup")?l&&(e=g.BQ())&&(k.clientScreenNonce=e):!e&&(e=g.BQ())&&(k.clientScreenNonce=e);E&&(k.clickTracking={clickTrackingParams:E});if(E=g.eS("yt.mdx.remote.remoteClient_"))k.remoteClient=E;M9.getInstance().setLocationOnInnerTubeContext(k);try{var x=Hg(),Q=x.bid;delete x.bid;k.adSignalsInfo={params:[],bid:Q};for(var W=g.T(Object.entries(x)),B=W.next();!B.done;B=W.next()){var w=g.T(B.value),U=w.next().value, c=w.next().value;x=U;Q=c;E=void 0;(E=k.adSignalsInfo.params)==null||E.push({key:x,value:""+Q})}var V,F;if(((V=k.client)==null?void 0:V.clientName)==="TVHTML5"||((F=k.client)==null?void 0:F.clientName)==="TVHTML5_UNPLUGGED"){var r=g.LF("INNERTUBE_CONTEXT");r.adSignalsInfo&&(k.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,k.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",k.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(P){g.$F(P)}return k}; S09=function(E,e){if(!E)return!1;var l,k=(l=g.M(E,fBp))==null?void 0:l.signal;if(k&&e.rI)return!!e.rI[k];var H;if((l=(H=g.M(E,Vi7))==null?void 0:H.request)&&e.aS)return!!e.aS[l];for(var O in E)if(e.jq[O])return!0;return!1}; rkX=function(E){var e={"Content-Type":"application/json"};g.LF("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=g.LF("EOM_VISITOR_DATA"):g.LF("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=g.LF("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=g.LF("LOGGED_IN",!1);g.LF("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=g.LF("DEBUG_SETTINGS_METADATA"));E!=="cors"&&((E=g.LF("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(e["X-Youtube-Client-Name"]=E),(E=g.LF("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]= E),(E=g.LF("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=E),(E=g.LF("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=E),g.LF("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(E=g.LF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=E));return e}; D1S=function(){this.T={}}; ZX=function(){this.mappings=new D1S}; Yd=function(E){return function(){return new E}}; vI7=function(E){var e=e===void 0?"UNKNOWN_INTERFACE":e;if(E.length===1)return E[0];var l=bAZ[e];if(l){l=new RegExp(l);for(var k=g.T(E),H=k.next();!H.done;H=k.next())if(H=H.value,l.exec(H))return H}var O=[];Object.entries(bAZ).forEach(function(X){var A=g.T(X);X=A.next().value;A=A.next().value;e!==X&&O.push(A)}); l=new RegExp(O.join("|"));E.sort(function(X,A){return X.length-A.length}); k=g.T(E);for(H=k.next();!H.done;H=k.next())if(H=H.value,!l.exec(H))return H;return E[0]}; g.mt=function(E){return"/youtubei/v1/"+vI7(E)}; gH=function(){}; KB=function(){}; nB=function(){}; Rk=function(E){return g.eS("ytcsi."+(E||"")+"data_")||PES(E)}; aBl=function(){var E=Rk();E.info||(E.info={});return E.info}; t_=function(E){E=Rk(E);E.metadata||(E.metadata={});return E.metadata}; q9=function(E){E=Rk(E);E.tick||(E.tick={});return E.tick}; EX=function(E){E=Rk(E);if(E.gel){var e=E.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else E.gel={gelTicks:{},gelInfos:{}};return E.gel}; LzW=function(E){E=EX(E);E.gelInfos||(E.gelInfos={});return E.gelInfos}; ea=function(E){var e=Rk(E).nonce;e||(e=g.p2(16),Rk(E).nonce=e);return e}; PES=function(E){var e={tick:{},info:{}};g.qW("ytcsi."+(E||"")+"data_",e);return e}; ln=function(){var E=g.eS("ytcsi.debug");E||(E=[],g.qW("ytcsi.debug",E),g.qW("ytcsi.reference",{}));return E}; kQ=function(E){E=E||"";var e=hjS();if(e[E])return e[E];var l=ln(),k={timerName:E,info:{},tick:{},span:{},jspbInfo:[]};l.push(k);return e[E]=k}; MiW=function(E){E=E||"";var e=hjS();e[E]&&delete e[E];var l=ln(),k={timerName:E,info:{},tick:{},span:{},jspbInfo:[]};l.push(k);e[E]=k}; hjS=function(){var E=g.eS("ytcsi.reference");if(E)return E;ln();return g.eS("ytcsi.reference")}; Hz=function(E){return NE8[E]||"LATENCY_ACTION_UNKNOWN"}; OX=function(E,e){OQ.call(this,1,arguments);this.timer=e}; XX=function(){this.T=0}; un=function(){XX.instance||(XX.instance=new XX);return XX.instance}; Cd=function(E,e){Al[e]=Al[e]||{count:0};var l=Al[e];l.count++;l.time=(0,g.dE)();E.T||(E.T=g.Nz(0,function(){var k=(0,g.dE)(),H;for(H in Al)Al[H]&&k-Al[H].time>6E4&&delete Al[H];E&&(E.T=0)},5E3)); return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new g.PK("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||g.UJ(l)),!0):!1}; ZAW=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Y0p=function(){var E;if(g.QT("csi_use_performance_navigation_timing")){var e,l,k,H=pd==null?void 0:(E=pd.getEntriesByType)==null?void 0:(e=E.call(pd,"navigation"))==null?void 0:(l=e[0])==null?void 0:(k=l.toJSON)==null?void 0:k.call(l);H?(H.requestStart=xQ(H.requestStart),H.responseEnd=xQ(H.responseEnd),H.redirectStart=xQ(H.redirectStart),H.redirectEnd=xQ(H.redirectEnd),H.domainLookupEnd=xQ(H.domainLookupEnd),H.connectStart=xQ(H.connectStart),H.connectEnd=xQ(H.connectEnd),H.responseStart=xQ(H.responseStart), H.secureConnectionStart=xQ(H.secureConnectionStart),H.domainLookupStart=xQ(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,E=H):E=pd.timing}else E=g.QT("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(pd.timing)):pd.timing;return E}; xQ=function(E){return Math.round(Qj()+E)}; Qj=function(){return(g.QT("csi_use_time_origin")||g.QT("csi_use_time_origin_tvhtml5"))&&pd.timeOrigin?Math.floor(pd.timeOrigin):pd.timing.navigationStart}; Bz=function(E,e){Wz("_start",E,e)}; o6=function(E,e){if(!g.QT("web_csi_action_sampling_enabled")||!Rk(e).actionDisabled){var l=kQ(e||"");kT(l.info,E);E.loadType&&(l=E.loadType,t_(e).loadType=l);kT(LzW(e),E);l=ea(e);e=Rk(e).cttAuthInfo;un().info(E,l,e)}}; m1p=function(){var E,e,l,k;return((k=$T().resolve(zi(q1))==null?void 0:(E=eA())==null?void 0:(e=E.loggingHotConfig)==null?void 0:(l=e.csiConfig)==null?void 0:l.debugTicks)!=null?k:[]).map(function(H){return Object.values(H)[0]})}; Wz=function(E,e,l){if(!g.QT("web_csi_action_sampling_enabled")||!Rk(l).actionDisabled){var k=ea(l),H;if(H=g.QT("web_csi_debug_sample_enabled")&&k){($T().resolve(zi(q1))==null?0:eA())&&!gI0&&(gI0=!0,Wz("gcfl",(0,g.dE)(),l));var O,X,A;H=($T().resolve(zi(q1))==null?void 0:(O=eA())==null?void 0:(X=O.loggingHotConfig)==null?void 0:(A=X.csiConfig)==null?void 0:A.debugSampleWeight)||0;if(O=H!==0)b:{O=m1p();if(O.length>0)for(X=0;Xl.duration?k:l},{duration:0}))&&e.startTime>0&&e.responseEnd>0&&(Wz("wffs",xQ(e.startTime)),Wz("wffe",xQ(e.responseEnd)))}; EPZ=function(E,e,l){pd&&pd.measure&&(E.startsWith("measure_")||(E="measure_"+E),l?pd.measure(E,e,l):e?pd.measure(E,e):pd.measure(E))}; eJW=function(E){var e=wL("aft",E);if(e)return e;e=g.LF((E||"")+"TIMING_AFT_KEYS",["ol"]);for(var l=e.length,k=0;k0&&o6(e);e={isNavigation:!0,actionType:Hz(g.LF("TIMING_ACTION"))};var l=g.LF("PREVIOUS_ACTION");l&&(e.previousAction=Hz(l));if(l=g.LF("CLIENT_PROTOCOL"))e.httpProtocol=l;if(l=g.LF("CLIENT_TRANSPORT"))e.transportProtocol=l;(l=g.BQ())&&l!=="UNDEFINED_CSN"&&(e.clientScreenNonce=l);l=Rjp();if(l===1||l===-1)e.isVisible= !0;l=t_().loadType==="cold";var k=aBl();l||(l=k.yt_lt==="cold");if(l){e.loadType="cold";l=aBl();k=Y0p();var H=Qj(),O=g.LF("CSI_START_TIMESTAMP_MILLIS",0);O>0&&!g.QT("embeds_web_enable_csi_start_override_killswitch")&&(H=O);H&&(Wz("srt",k.responseStart),l.prerender!==1&&Bz(H));l=HaX();l>0&&Wz("fpt",l);l=Y0p();l.isPerformanceNavigationTiming&&o6({performanceNavigationTiming:!0},void 0);Wz("nreqs",l.requestStart,void 0);Wz("nress",l.responseStart,void 0);Wz("nrese",l.responseEnd,void 0);l.redirectEnd- l.redirectStart>0&&(Wz("nrs",l.redirectStart,void 0),Wz("nre",l.redirectEnd,void 0));l.domainLookupEnd-l.domainLookupStart>0&&(Wz("ndnss",l.domainLookupStart,void 0),Wz("ndnse",l.domainLookupEnd,void 0));l.connectEnd-l.connectStart>0&&(Wz("ntcps",l.connectStart,void 0),Wz("ntcpe",l.connectEnd,void 0));l.secureConnectionStart>=Qj()&&l.connectEnd-l.secureConnectionStart>0&&(Wz("nstcps",l.secureConnectionStart,void 0),Wz("ntcpe",l.connectEnd,void 0));pd&&"getEntriesByType"in pd&&q07();l=[];if(document.querySelector&& pd&&pd.getEntriesByName)for(var X in Gc)Gc.hasOwnProperty(X)&&(k=Gc[X],til(X,k)&&l.push(k));if(l.length>0)for(e.resourceInfo=[],X=g.T(l),l=X.next();!l.done;l=X.next())e.resourceInfo.push({resourceCache:l.value})}o6(e);e=EX();e.preLoggedGelInfos||(e.preLoggedGelInfos=[]);X=e.preLoggedGelInfos;e=LzW();l=void 0;for(k=0;k-1&&(delete IZ["@type"],K=IZ);U&&E.G.has(U)&&E.G.delete(U);((E6=e.config)==null?0:E6.s7H)&&$Q(e.config.s7H);if(K||(zd=E.Z)==null||!zd.bFd(e.input,e.M5)){VX.xt(15);break}return g.S(VX,E.Z.EC3(e.input,e.M5),16);case 16:K=VX.T;case 15:return $Gv(E, K,e),((A0=e.config)==null?0:A0.Ve7)&&$Q(e.config.Ve7),k(),VX.return(K||void 0)}})}; zJ7=function(E,e){a:{E=E.GH;var l,k=(l=g.M(e,fBp))==null?void 0:l.signal;if(k&&E.rI&&(l=E.rI[k])){var H=l();break a}var O;if((l=(O=g.M(e,Vi7))==null?void 0:O.request)&&E.aS&&(O=E.aS[l])){H=O();break a}for(H in e)if(E.jq[H]&&(e=E.jq[H])){H=e();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; G1l=function(E,e,l){var k,H,O,X,A,C,p;return g.D(function(x){if(x.G==1){O=((k=e)==null?void 0:(H=k.b0)==null?void 0:H.identity)||HN;C=(X=e)==null?void 0:(A=X.b0)==null?void 0:A.sessionIndex;var Q=g.j2(E.T.wT(O,{sessionIndex:C}));return g.S(x,Q,2)}p=x.T;return x.return(Promise.resolve(Object.assign({},rkX(l),p)))})}; dGS=function(E,e,l){var k,H=(e==null?void 0:(k=e.b0)==null?void 0:k.identity)||HN,O;e=e==null?void 0:(O=e.b0)==null?void 0:O.sessionIndex;E=E.T.wT(H,{sessionIndex:e});return Object.assign({},rkX(l),E)}; Sa=function(){}; rL=function(){}; D8=function(E){this.J=E}; bn=function(){}; vz=function(){}; Pz=function(){}; a6=function(){}; g.Ld=function(E,e){var l=g.LS.apply(2,arguments);E=E===void 0?0:E;g.PK.call(this,e,l);this.errorType=E;Object.setPrototypeOf(this,this.constructor.prototype)}; hl=function(E,e,l,k){this.T=E;this.G=e;this.Z=l;this.S=k}; Jx7=function(E,e,l){if(E.T){var k=Ae(TG(e,"key"))||"/UNKNOWN_PATH";E.T.start(k)}k=l;g.QT("wug_networking_gzip_request")&&(k=ZDy(l));var H;return new ((H=E.S)!=null?H:window.Request)(e,k)}; g.Nu=function(E,e){if(!Mu){var l=$T();dg(l,{py:cxy,Pm:hl});var k={jq:{feedbackEndpoint:Yd(bn),modifyChannelNotificationPreferenceEndpoint:Yd(vz),playlistEditEndpoint:Yd(Pz),shareEntityEndpoint:Yd(D8),subscribeEndpoint:Yd(Sa),unsubscribeEndpoint:Yd(rL),webPlayerShareEntityServiceEndpoint:Yd(a6)}},H=M9.getInstance(),O={};H&&(O.client_location=H);E===void 0&&(E=tFX());e===void 0&&(e=l.resolve(cxy));wN0(k,e,E,O);dg(l,{py:yxW,Nk:FX.instance});Mu=l.resolve(yxW)}return Mu}; jr0=function(E){var e=new Xa;if(E.interpreterJavascript){var l=DOW(E.interpreterJavascript);l=zJ(l).toString();var k=new Hy;SY(k,6,l);$4(e,Hy,1,k,Yb)}else E.interpreterUrl&&(l=wS(E.interpreterUrl),l=eW(l).toString(),k=new Oe,SY(k,4,l),$4(e,Oe,2,k,Yb));E.interpreterHash&&rR(e,3,E.interpreterHash,Yb);E.program&&rR(e,4,E.program,Yb);E.globalName&&rR(e,5,E.globalName,Yb);E.clientExperimentsStateBlob&&rR(e,7,E.clientExperimentsStateBlob,Yb);return e}; Z8=function(E){var e={};E=E.split("&");E=g.T(E);for(var l=E.next();!l.done;l=E.next())l=l.value.split("="),l.length===2&&(e[l[0]]=l[1]);return e}; Shp=function(){if(g.QT("bg_st_hr"))return"havuokmhhs-0";var E,e=((E=performance)==null?void 0:E.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)}; YQ=function(E){this.T=E}; IAW=function(){return new Promise(function(E){var e=window.top;e.ntpevasrs!==void 0?E(new YQ(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(l){E(new YQ(l))}))})}; fAS=function(){if(KE()){var E=g.LF("PLAYER_VARS",{});if(g.Wj(E,"privembed",!1)!="1"&&!cZl(E)){var e=function(){mp=!0;"google_ad_status"in window?vC("DCLKSTAT",1):vC("DCLKSTAT",2)}; try{g.qG("//static.doubleclick.net/instream/ad_status.js",e)}catch(l){}FQ7.push(g.rN.b1(function(){if(!(mp||"google_ad_status"in window)){try{if(e){var l=""+g.u_(e),k=Jd7[l];k&&g.gd(k)}}catch(H){}mp=!0;vC("DCLKSTAT",3)}},5E3))}}}; gL=function(){var E=Number(g.LF("DCLKSTAT",0));return isNaN(E)?0:E}; sX=function(E,e,l){var k=this;this.network=E;this.options=e;this.G=l;this.T=null;if(e.uh6){var H=new g.AZ;this.T=H.promise;g.t7.ytAtRC&&Mz(function(){var O,X;return g.D(function(A){if(A.G==1){if(!g.t7.ytAtRC)return A.return();O=Kd(null);return g.S(A,nd(k,O),2)}X=A.T;g.t7.ytAtRC&&g.t7.ytAtRC(JSON.stringify(X));g.$0(A)})},2); IAW().then(function(O){var X,A,C,p;return g.D(function(x){if(x.G==1)return O.bindInnertubeChallengeFetcher(function(Q){return nd(k,Kd(Q))}),g.S(x,ny(),2); X=x.T;A=O.getLatestChallengeResponse();C=A.challenge;if(!C)throw Error("BGE_MACIL");p={challenge:C,m8:Z8(C),D0:X,bgChallenge:new Xa};H.resolve(p);O.registerChallengeFetchedCallback(function(Q){Q=Q.challenge;if(!Q)throw Error("BGE_MACR");Q={challenge:Q,m8:Z8(Q),D0:X,bgChallenge:new Xa};k.T=Promise.resolve(Q)}); g.$0(x)})})}else e.preload&&VAl(this,new Promise(function(O){g.Nz(0,function(){O(R6(k))},0)}))}; Kd=function(E){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};E&&(e.interpreterHash=E);return e}; R6=function(E,e){e=e===void 0?0:e;var l,k,H,O,X,A,C,p,x,Q,W,B;return g.D(function(w){switch(w.G){case 1:l=Kd(xV().T);if(g.QT("att_fet_ks"))return g.U9(w,7),g.S(w,nd(E,l),9);g.U9(w,4);return g.S(w,SQy(E,l),6);case 6:X=w.T;H=X.UQD;O=X.Jfz;k=X;g.jp(w,3);break;case 4:return g.FW(w),g.UJ(Error("Failed to fetch attestation challenge after "+(e+" attempts; not retrying for 24h."))),tl(E,864E5),w.return({challenge:"",m8:{},D0:void 0,bgChallenge:void 0});case 9:k=w.T;if(!k)throw Error("Fetching Attestation challenge returned falsy"); if(!k.challenge)throw Error("Missing Attestation challenge");H=k.challenge;O=Z8(H);if("c1a"in O&&(!k.bgChallenge||!k.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.jp(w,3);break;case 7:A=g.FW(w);g.UJ(A);e++;if(e>=5)return g.UJ(Error("Failed to fetch attestation challenge after "+(e+" attempts; not retrying for 24h."))),tl(E,864E5),w.return({challenge:"",m8:{},D0:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,e-1)+Math.random()*1E3;return w.return(new Promise(function(U){g.Nz(0, function(){U(R6(E,e))},C)})); case 3:p=Number(O.t)||7200;tl(E,p*1E3);x=void 0;if(!("c1a"in O&&k.bgChallenge)){w.xt(10);break}Q=jr0(k.bgChallenge);g.U9(w,11);return g.S(w,Sol(xV(),Q),13);case 13:g.jp(w,12);break;case 11:return W=g.FW(w),g.UJ(W),w.return({challenge:H,m8:O,D0:x,bgChallenge:Q});case 12:return g.U9(w,14),x=new Cz({challenge:Q,tp:{Y1:"aGIf"}}),g.S(w,x.V1,16);case 16:g.jp(w,10);break;case 14:B=g.FW(w),g.UJ(B),x=void 0;case 10:return w.return({challenge:H,m8:O,D0:x,bgChallenge:Q})}})}; nd=function(E,e){var l;return g.D(function(k){l=E.G;if(!l||l.iO())return k.return(nd(E.network,e));I6("att_pna",void 0,"attestation_challenge_fetch");return k.return(new Promise(function(H){l.FX("publicytnetworkstatus-online",function(){nd(E.network,e).then(H)})}))})}; rx0=function(E){if(!E)throw Error("Fetching Attestation challenge returned falsy");if(!E.challenge)throw Error("Missing Attestation challenge");var e=E.challenge,l=Z8(e);if("c1a"in l&&(!E.bgChallenge||!E.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},E,{UQD:e,Jfz:l})}; SQy=function(E,e){var l,k,H,O,X;return g.D(function(A){switch(A.G){case 1:l=void 0,k=0,H={};case 2:if(!(k<5)){A.xt(4);break}if(!(k>0)){A.xt(5);break}H.vH=1E3*Math.pow(2,k-1)+Math.random()*1E3;return g.S(A,new Promise(function(C){return function(p){g.Nz(0,function(){p(void 0)},C.vH)}}(H)),5); case 5:return g.U9(A,7),g.S(A,nd(E,e),9);case 9:return O=A.T,A.return(rx0(O));case 7:l=X=g.FW(A),X instanceof Error&&g.UJ(X);case 8:k++;H={vH:void 0};A.xt(2);break;case 4:throw l;}})}; VAl=function(E,e){E.T=e}; DGl=function(E){var e,l,k;return g.D(function(H){if(H.G==1)return g.S(H,Promise.race([E.T,null]),2);e=H.T;var O=R6(E);E.T=O;(l=e)==null||(k=l.D0)==null||k.dispose();g.$0(H)})}; tl=function(E,e){function l(){var H;return g.D(function(O){H=k-Date.now();return H<1E3?g.S(O,DGl(E),0):(Mz(l,0,Math.min(H,6E4)),O.xt(0))})} var k=Date.now()+e;l()}; bal=function(E,e){return new Promise(function(l){g.Nz(0,function(){l(e())},E)})}; g.vPX=function(E,e){var l;return g.D(function(k){var H=g.eS("yt.aba.att");return(l=H?H:sX.instance!==void 0?sX.instance.Z.bind(sX.instance):null)?k.return(l("ENGAGEMENT_TYPE_PLAYBACK",E,e)):k.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.Pr7=function(){var E;return(E=(E=g.eS("yt.aba.att2"))?E:sX.instance!==void 0?sX.instance.S.bind(sX.instance):null)?E():Promise.resolve(!1)}; LQ0=function(E,e){var l=g.eS("ytDebugData.callbacks");l||(l={},g.qW("ytDebugData.callbacks",l));if(g.QT("web_dd_iu")||aA9.includes(E))l[E]=e}; qu=function(){var E=hJS;var e=e===void 0?[]:e;var l=l===void 0?[]:l;e=IQv.apply(null,[FvX.apply(null,g.Be(e))].concat(g.Be(l)));this.store=V2X(E,void 0,e)}; g.EP=function(E,e,l){for(var k=Object.assign({},E),H=g.T(Object.keys(e)),O=H.next();!O.done;O=H.next()){O=O.value;var X=E[O],A=e[O];if(A===void 0)delete k[O];else if(X===void 0)k[O]=A;else if(Array.isArray(A)&&Array.isArray(X))k[O]=l?[].concat(g.Be(X),g.Be(A)):A;else if(!Array.isArray(A)&&g.O6(A)&&!Array.isArray(X)&&g.O6(X))k[O]=g.EP(X,A,l);else if(typeof A===typeof X)k[O]=A;else return e=new g.PK("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:O,AtM:X,updateValue:A}),g.$F(e), E}return k}; eV=function(E){var e=this;E=E===void 0?[]:E;this.T=[];this.Z=this.G=0;this.S=void 0;this.totalLength=0;E.forEach(function(l){e.append(l)})}; MAy=function(E,e){return E.T.length===0?!1:(E=E.T[E.T.length-1])&&E.buffer===e.buffer&&E.byteOffset+E.length===e.byteOffset}; l1=function(E,e){e=g.T(e.T);for(var l=e.next();!l.done;l=e.next())E.append(l.value)}; kD=function(E,e,l){return E.split(e).Cz.split(l).AI}; Hx=function(E){E.S=void 0;E.G=0;E.Z=0}; OP=function(E,e,l){E.isFocused(e);return e-E.Z+l<=E.T[E.G].length}; Ndl=function(E){if(!E.S){var e=E.T[E.G];E.S=new DataView(e.buffer,e.byteOffset,e.length)}return E.S}; Za8=function(E,e,l){e=e===void 0?0:e;l=l===void 0?-1:l;if(!E.totalLength||!l)return new DataView(new ArrayBuffer(0));l<0&&(l=E.totalLength-e);E.focus(e);if(!OP(E,e,l)){var k=E.G,H=E.Z;E.focus(e+l-1);H=new Uint8Array(E.Z+E.T[E.G].length-H);for(var O=0,X=k;X<=E.G;X++)H.set(E.T[X],O),O+=E.T[X].length;E.T.splice(k,E.G-k+1,H);Hx(E);E.focus(e)}k=E.T[E.G];return new DataView(k.buffer,k.byteOffset+e-E.Z,l)}; X6=function(E,e,l){E=Za8(E,e===void 0?0:e,l===void 0?-1:l);return new Uint8Array(E.buffer,E.byteOffset,E.byteLength)}; u1=function(E,e,l){E=X6(E,e===void 0?0:e,l===void 0?-1:l);e=new Uint8Array(E.length);try{e.set(E)}catch(k){for(l=0;l>10;O=56320|O&1023}xD[H++]=O}}O=String.fromCharCode.apply(String,xD); H<1024&&(O=O.substring(0,H));l.push(O)}return l.join("")}; Bx=function(E,e){var l;if((l=Wx)==null?0:l.encodeInto)return e=Wx.encodeInto(E,e),e.read>6|192:((H&64512)===55296&&k+1>18|240,e[l++]=H>>12&63|128):e[l++]=H>>12|224,e[l++]=H>>6&63|128),e[l++]=H&63|128)}return l}; o_=function(E){if(Wx)return Wx.encode(E);var e=new Uint8Array(Math.ceil(E.length*1.2)),l=Bx(E,e);e.lengthl&&(e=e.subarray(0,l));return e}; wf=function(E){this.T=E;this.pos=0;this.G=-1}; zr=function(E){var e=AP(E.T,E.pos);++E.pos;if(e<128)return e;for(var l=e&127,k=1;e>=128;)e=AP(E.T,E.pos),++E.pos,k*=128,l+=(e&127)*k;return l}; df=function(E,e){var l=E.G;for(E.G=-1;E.pos+1<=E.T.totalLength;){l<0&&(l=zr(E));var k=l>>3,H=l&7;if(k===e)return!0;if(k>e){E.G=l;break}l=-1;switch(H){case 0:zr(E);break;case 1:E.pos+=8;break;case 2:k=zr(E);E.pos+=k;break;case 5:E.pos+=4}}return!1}; Gr=function(E,e){if(df(E,e))return zr(E)}; gPX=function(E,e){if(df(E,e))return e=X6(E.T,E.pos,8),E.pos+=8,(new DataView(e.buffer,e.byteOffset,e.byteLength)).getFloat64(0,!0)}; Tr=function(E,e){if(df(E,e))return!!zr(E)}; i1=function(E,e){if(df(E,e)){e=zr(E);var l=X6(E.T,E.pos,e);E.pos+=e;return l}}; $D=function(E,e){if(E=i1(E,e))return g.QF(E)}; UP=function(E,e,l){if(E=i1(E,e))return l(new wf(new eV([E])))}; JP=function(E,e){for(var l=[];df(E,e);)l.push(zr(E));return l.length?l:void 0}; cx=function(E,e,l){for(var k=[],H;H=i1(E,e);)k.push(l(new wf(new eV([H]))));return k.length?k:void 0}; yF=function(E,e){E=E instanceof Uint8Array?new eV([E]):E;return e(new wf(E))}; KQ0=function(E,e){E=new Uint8Array(E);e&&E.set(e);return E}; nPp=function(E){this.pos=0;this.G=[];this.T=KQ0(E===void 0?4096:E);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; Px=function(E,e){e=E.pos+e;if(!(E.T.length>=e)){for(var l=E.T.length*2;l268435455){Px(E,4);for(var l=e&1073741823,k=0;k<4;k++)E.view.setUint8(E.pos,l&127|128),l>>=7,E.pos+=1;e=Math.floor(e/268435456)}for(Px(E,4);e>127;)E.view.setUint8(E.pos,e&127|128),e>>=7,E.pos+=1;E.view.setUint8(E.pos,e);E.pos+=1}; Lv=function(E,e,l){l!==void 0&&(a_(E,e*8),a_(E,l))}; hP=function(E,e,l){l!==void 0&&Lv(E,e,l?1:0)}; ML=function(E,e,l){l!==void 0&&(a_(E,e*8+2),e=l.length,a_(E,e),Px(E,e),E.T.set(l,E.pos),E.pos+=e)}; NL=function(E,e,l){l!==void 0&&(RJZ(E,e,Math.ceil(Math.log2(l.length*4+2)/7)),Px(E,l.length*1.2),e=Bx(l,E.T.subarray(E.pos)),E.pos+e>E.T.length&&(Px(E,e),e=Bx(l,E.T.subarray(E.pos))),E.pos+=e,sr0(E))}; RJZ=function(E,e,l){l=l===void 0?2:l;a_(E,e*8+2);E.G.push(E.pos);E.G.push(l);E.pos+=l}; sr0=function(E){for(var e=E.G.pop(),l=E.G.pop(),k=E.pos-l-e;e--;){var H=e?128:0;E.view.setUint8(l++,k&127|H);k>>=7}}; Z$=function(E,e,l,k,H){l&&(RJZ(E,e,H===void 0?3:H),k(E,l),sr0(E))}; g.YD=function(E,e){var l=new nPp(4096);e(l,E);return new Uint8Array(l.T.buffer,l.T.byteOffset,l.pos)}; g.mN=function(E){var e=new wf(new eV([y$(decodeURIComponent(E))]));E=$D(e,2);e=Gr(e,4);var l=tAZ[e];if(typeof l==="undefined")throw E=new g.PK("Failed to recognize field number",{name:"EntityKeyHelperError",uuz:e}),g.$F(E),E;return{xr:e,entityType:l,entityId:E}}; g.gf=function(E,e){var l=l===void 0?0:l;var k=new nPp;ML(k,2,o_(E));E=qQX[e];if(typeof E==="undefined")throw l=new g.PK("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),g.$F(l),l;Lv(k,4,E);Lv(k,5,1);e=new Uint8Array(k.T.buffer,k.T.byteOffset,k.pos);return encodeURIComponent(g.Jz(e,l))}; Kv=function(E,e,l,k){if(k===void 0)return k=Object.assign({},E[e]||{}),l=(delete k[l],k),k={},Object.assign({},E,(k[e]=l,k));var H={},O={};return Object.assign({},E,(O[e]=Object.assign({},E[e],(H[l]=k,H)),O))}; ETX=function(E,e,l,k,H){var O=E[e];if(O==null||!O[l])return E;k=g.EP(O[l],k,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};O={};return Object.assign({},E,(O[e]=Object.assign({},E[e],(H[l]=k,H)),O))}; eqv=function(E,e){E=E===void 0?{}:E;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(k,H){var O,X=(O=H.options)==null?void 0:O.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return k;if(!H.entityKey)return g.$F(Error("Missing entity key")),k;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return H=new g.PK("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey}),g.$F(H),k;var A=g.lK(H.payload); return Kv(k,A,H.entityKey,H.payload[A])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var C=g.mN(H).entityType;A=Kv(k,C,H);break a}catch(Q){if(Q instanceof Error){H=new g.PK("Failed to deserialize entity key",{entityKey:H,originalMessage:Q.message});g.$F(H);A=k;break a}throw Q;}A=void 0}return A}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return H=new g.PK("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey}),g.$F(H),k;A=g.lK(H.payload);var p,x;return ETX(k, A,H.entityKey,H.payload[A],(p=H.fieldMask)==null?void 0:(x=p.mergeOptions)==null?void 0:x.repeatedFieldsMergeOption)}return k},E); case "REPLACE_ENTITY":var l=e.payload;return Kv(E,l.entityType,l.key,l.FU);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(k,H){var O=e.payload[H];return Object.keys(O).reduce(function(X,A){return Kv(X,H,A,O[A])},k)},E); case "UPDATE_ENTITY":return l=e.payload,ETX(E,l.entityType,l.key,l.FU,l.Ta3);default:return E}}; nv=function(E,e,l){return E[e]?E[e][l]||null:null}; R_=function(E){return window.Int32Array?new Int32Array(E):Array(E)}; l5=function(E){g.a.call(this);this.counter=[0,0,0,0];this.G=new Uint8Array(16);this.T=16;if(!lE7){var e,l=new Uint8Array(256),k=new Uint8Array(256);var H=1;for(e=0;e<256;e++)l[H]=e,k[e]=H,H^=H<<1^(H>>7&&283);sP=new Uint8Array(256);tP=R_(256);qL=R_(256);EW=R_(256);el=R_(256);for(var O=0;O<256;O++){H=O?k[255^l[O]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;sP[O]=H;e=H<<1^(H>>7&&283);var X=e^H;tP[O]=e<<24|H<<16|H<<8|X;qL[O]=X<<24|tP[O]>>>8;EW[O]=H<<24|qL[O]>>>8;el[O]=H<<24|EW[O]>>>8}lE7=!0}H=R_(44);for(l= 0;l<4;l++)H[l]=E[4*l]<<24|E[4*l+1]<<16|E[4*l+2]<<8|E[4*l+3];for(k=1;l<44;l++)E=H[l-1],l%4||(E=(sP[E>>16&255]^k)<<24|sP[E>>8&255]<<16|sP[E&255]<<8|sP[E>>>24],k=k<<1^(k>>7&&283)),H[l]=H[l-4]^E;this.key=H}; ki9=function(E){for(var e=E.key,l=E.counter[0]^e[0],k=E.counter[1]^e[1],H=E.counter[2]^e[2],O=E.counter[3]^e[3],X=3;X>=0&&!(E.counter[X]=-~E.counter[X]);X--);for(var A,C,p=4;p<40;)X=tP[l>>>24]^qL[k>>16&255]^EW[H>>8&255]^el[O&255]^e[p++],A=tP[k>>>24]^qL[H>>16&255]^EW[O>>8&255]^el[l&255]^e[p++],C=tP[H>>>24]^qL[O>>16&255]^EW[l>>8&255]^el[k&255]^e[p++],O=tP[O>>>24]^qL[l>>16&255]^EW[k>>8&255]^el[H&255]^e[p++],l=X,k=A,H=C;E=E.G;X=e[40];E[0]=sP[l>>>24]^X>>>24;E[1]=sP[k>>16&255]^X>>16&255;E[2]=sP[H>>8&255]^ X>>8&255;E[3]=sP[O&255]^X&255;X=e[41];E[4]=sP[k>>>24]^X>>>24;E[5]=sP[H>>16&255]^X>>16&255;E[6]=sP[O>>8&255]^X>>8&255;E[7]=sP[l&255]^X&255;X=e[42];E[8]=sP[H>>>24]^X>>>24;E[9]=sP[O>>16&255]^X>>16&255;E[10]=sP[l>>8&255]^X>>8&255;E[11]=sP[k&255]^X&255;X=e[43];E[12]=sP[O>>>24]^X>>>24;E[13]=sP[l>>16&255]^X>>16&255;E[14]=sP[k>>8&255]^X>>8&255;E[15]=sP[H&255]^X&255}; OW=function(){if(!kg&&!g.aa){if(HL)return HL;var E;HL=(E=window.crypto)==null?void 0:E.subtle;var e,l,k;if(((e=HL)==null?0:e.importKey)&&((l=HL)==null?0:l.sign)&&((k=HL)==null?0:k.encrypt))return HL;HL=void 0}}; g.AK=function(E){var e=OW();e&&(this.T=new XN(E,e));this.G=new g.u5(E)}; XN=function(E,e){this.G=E;this.subtleCrypto=e}; H28=function(E,e,l){var k,H;return g.D(function(O){switch(O.G){case 1:if(E.T){O.xt(2);break}return g.S(O,E.subtleCrypto.importKey("raw",E.G,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:E.T=O.T;case 2:return k={name:"AES-CTR",counter:l,length:128},g.S(O,E.subtleCrypto.encrypt(k,E.T,e),4);case 4:return H=O.T,O.return(new Uint8Array(H))}})}; g.u5=function(E){this.G=E}; C8=function(E){this.W=new Uint8Array(64);this.Z=new Uint8Array(64);this.S=0;this.J=new Uint8Array(64);this.G=0;this.W.set(E);this.Z.set(E);for(E=0;E<64;E++)this.W[E]^=92,this.Z[E]^=54;this.reset()}; O2S=function(E,e,l){for(var k=E.j,H=E.T[0],O=E.T[1],X=E.T[2],A=E.T[3],C=E.T[4],p=E.T[5],x=E.T[6],Q=E.T[7],W,B,w,U=0;U<64;)U<16?(k[U]=w=e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3],l+=4):(W=k[U-2],B=k[U-15],w=k[U-7]+k[U-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),k[U]=w),W=Q+p8[U]+w+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&p^~C&x),B=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&O^H&X^O&X),Q=W+B,A+=W,U++,U<16?(k[U]=w=e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3],l+=4):(W= k[U-2],B=k[U-15],w=k[U-7]+k[U-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),k[U]=w),W=x+p8[U]+w+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&C^~A&p),B=((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(Q&H^Q&O^H&O),x=W+B,X+=W,U++,U<16?(k[U]=w=e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3],l+=4):(W=k[U-2],B=k[U-15],w=k[U-7]+k[U-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),k[U]=w),W=p+p8[U]+w+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&A^ ~X&C),B=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&Q^x&H^Q&H),p=W+B,O+=W,U++,U<16?(k[U]=w=e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3],l+=4):(W=k[U-2],B=k[U-15],w=k[U-7]+k[U-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),k[U]=w),W=C+p8[U]+w+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&X^~O&A),B=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&x^p&Q^x&Q),w=Q,Q=A,A=w,w=x,x=X,X=w,w=p,p=O,O=w,C=H+W,H=W+B,U++;E.T[0]=H+E.T[0]|0;E.T[1]=O+E.T[1]|0;E.T[2]=X+E.T[2]|0;E.T[3]= A+E.T[3]|0;E.T[4]=C+E.T[4]|0;E.T[5]=p+E.T[5]|0;E.T[6]=x+E.T[6]|0;E.T[7]=Q+E.T[7]|0}; uE9=function(E){var e=new Uint8Array(32),l=64-E.G;E.G>55&&(l+=64);var k=new Uint8Array(l);k[0]=128;for(var H=E.S*8,O=1;O<9;O++){var X=H%256;k[l-O]=X;H=(H-X)/256}E.update(k);for(l=0;l<8;l++)e[l*4]=E.T[l]>>>24,e[l*4+1]=E.T[l]>>>16&255,e[l*4+2]=E.T[l]>>>8&255,e[l*4+3]=E.T[l]&255;XAy(E);return e}; XAy=function(E){E.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];E.j=[];E.j.length=64;E.S=0;E.G=0}; A$W=function(E){this.T=E}; CP9=function(E,e,l){E=new C8(E.T);E.update(e);E.update(l);e=uE9(E);E.update(E.W);E.update(e);e=uE9(E);E.reset();return e}; pAS=function(E){this.G=E}; xvp=function(E,e,l,k){var H,O,X;return g.D(function(A){switch(A.G){case 1:if(E.T){A.xt(2);break}return g.S(A,k.importKey("raw",E.G,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:E.T=A.T;case 2:return H=new Uint8Array(e.length+l.length),H.set(e),H.set(l,e.length),O={name:"HMAC",hash:"SHA-256"},g.S(A,k.sign(O,E.T,H),4);case 4:return X=A.T,A.return(new Uint8Array(X))}})}; Qfv=function(E,e,l){E.Z||(E.Z=new A$W(E.G));return CP9(E.Z,e,l)}; WMe=function(E,e,l){var k,H;return g.D(function(O){if(O.G==1){k=OW();if(!k)return O.return(Qfv(E,e,l));g.U9(O,3);return g.S(O,xvp(E,e,l,k),5)}if(O.G!=3)return O.return(O.T);H=g.FW(O);g.UJ(H);kg=!0;return O.return(Qfv(E,e,l))})}; oTX=function(E){for(var e="",l=0;l=0||w4(E,0,"gad_source",E.search(d4))>=0}; Uv0=function(){this.T=new Map}; c$S=function(E,e){var l=$T().resolve(J$p);if($vv(e)){var k=GG(e,"gclid");e={handleEvent:function(A){E&&!E.closed&&typeof E.postMessage==="function"&&A&&A.origin&&A.source===E&&A.data&&A.data.action==="gcl_setup"&&E.postMessage(Object.assign({},{action:"gcl_transfer"},k&&{gclid:k},{gadSource:2}),A.origin)}}; for(var H=g.T(l.T),O=H.next();!O.done;O=H.next()){var X=g.T(O.value);O=X.next().value;X=X.next().value;if(O.closed)try{window.removeEventListener("message",X),l.T.delete(O)}catch(A){g.$F(A)}}E&&l.T.size<15&&(l.T.set(E,e),window.addEventListener("message",e))}}; xg=function(E,e,l){if(!e)return E.length>=1?E[E.length-1]:null;for(var k=g.T(E),H=k.next();!H.done;H=k.next())if(H=H.value,H.width&&H.height&&(l&&H.width>=e||!l&&H.height>=e))return H;for(e=E.length-1;e>=0;e--)if(l&&E[e].width||!l&&E[e].height)return E[e];return E[0]}; Ql=function(){this.state=1;this.D0=null;this.Uv=void 0}; jf9=function(E,e,l,k,H,O){var X=X===void 0?"trayride":X;l?(E.eJ(2),g.qG(l,function(){if(window[X])y$X(E,k,X,H);else{E.eJ(3);var A=Ufe(l),C=document.getElementById(A);C&&(iFp(A),C.parentNode.removeChild(C));g.UJ(new g.PK("BL:ULB",""+l))}},O)):e?(O=g.Qz("SCRIPT"),e instanceof w2?(O.textContent=zJ(e),d2(O)):O.textContent=e,O.nonce=oE(document),document.head.appendChild(O),document.head.removeChild(O),window[X]?y$X(E,k,X,H):(E.eJ(4),g.UJ(new g.PK("BL:ULBJ")))):g.UJ(new g.PK("BL:ULV"))}; y$X=function(E,e,l,k){E.eJ(5);var H=!!E.Uv&&IEy.includes(g.uy(E.Uv)||"");try{var O=new Cz({program:e,globalName:l,tp:{disable:!g.QT("att_web_record_metrics")||!g.QT("att_skip_metrics_for_cookieless_domains_ks")&&H,Y1:"aGIf"}});O.V1.then(function(){E.eJ(6);k&&k(e)}); E.z5(O)}catch(X){E.eJ(7),X instanceof Error&&g.UJ(X)}}; WL=function(){var E=g.eS("yt.abuse.playerAttLoader");return E&&["bgvma","bgvmb","bgvmc"].every(function(e){return e in E})?E:null}; BL=function(){Ql.apply(this,arguments)}; op=function(){}; FM9=function(E,e,l){for(var k=!1,H=g.T(E.n_.entries()),O=H.next();!O.done;O=H.next())O=g.T(O.value).next().value,O.slotType==="SLOT_TYPE_PLAYER_BYTES"&&O.O7==="core"&&(k=!0);if(k){a:if(!l){E=g.T(E.n_.entries());for(l=E.next();!l.done;l=E.next())if(k=g.T(l.value),l=k.next().value,k=k.next().value,l.slotType==="SLOT_TYPE_IN_PLAYER"&&l.O7==="core"){l=k.layoutId;break a}l=void 0}l?e.lX(l):kd("No triggering layout ID available when attempting to mute.")}}; wK=function(E,e){this.UP=E;this.g_=e}; zO=function(){}; dK=function(){}; VNe=function(E){g.a.call(this);var e=this;this.C5=E;this.T=new Map;GO(this,"commandExecutorCommand",function(l,k,H){fEl(e,l.commands,k,H)}); GO(this,"clickTrackingParams",function(){})}; SxW=function(E,e){GO(E,e.kC(),function(l,k,H){e.Qz(l,k,H)})}; GO=function(E,e,l){E.U7();E.T.get(e)&&g.$F(Error("Extension name "+e+" already registered"));E.T.set(e,l)}; fEl=function(E,e,l,k){e=e===void 0?[]:e;E.U7();var H=[],O=[];e=g.T(e);for(var X=e.next();!X.done;X=e.next())X=X.value,g.M(X,r$X)||g.M(X,Dv7)?H.push(X):O.push(X);H=g.T(H);for(e=H.next();!e.done;e=H.next())TO(E,e.value,l,k);O=g.T(O);for(H=O.next();!H.done;H=O.next())TO(E,H.value,l,k)}; TO=function(E,e,l,k){E.U7();e.loggingUrls&&b27(E,"loggingUrls",e.loggingUrls,l,k);e=g.T(Object.entries(e));for(var H=e.next();!H.done;H=e.next()){var O=g.T(H.value);H=O.next().value;O=O.next().value;H==="openPopupAction"?E.C5.get().iz("innertubeCommand",{openPopupAction:O}):H==="confirmDialogEndpoint"?E.C5.get().iz("innertubeCommand",{confirmDialogEndpoint:O}):vTe.hasOwnProperty(H)||b27(E,H,O,l,k)}}; b27=function(E,e,l,k,H){if((E=E.T.get(e))&&typeof E==="function")try{E(l,k,H)}catch(O){g.$F(O)}else e=new g.PK("Unhandled field",e),g.UJ(e)}; i5=function(E,e,l){this.H7=E;this.T=e;this.l3=l;dg($T(),{py:J$p,Pm:Uv0})}; $g=function(E){this.value=E}; UW=function(E){this.value=E}; JK=function(E){this.value=E}; cL=function(E){this.value=E}; yl=function(E){this.value=E}; jl=function(E){this.value=E}; Ip=function(E){this.value=E}; FN=function(){$g.apply(this,arguments)}; f8=function(E){this.value=E}; Vl=function(E){this.value=E}; Sl=function(E){this.value=E}; rK=function(E){this.value=E}; Dc=function(E){this.value=E}; b5=function(E){this.value=E}; vL=function(E){this.value=E}; PL=function(E){this.value=E}; ap=function(E){this.value=E}; L8=function(E){this.value=E}; hK=function(){$g.apply(this,arguments)}; Mp=function(E){this.value=E}; Np=function(E){this.value=E}; Zc=function(E){this.value=E}; Yg=function(E){this.value=E}; mf=function(E){this.value=E}; gK=function(E){this.value=E}; K8=function(E){this.value=E}; n8=function(E){this.value=E}; Rp=function(E){this.value=E}; sW=function(E){this.value=E}; tK=function(E){this.value=E}; qp=function(E){this.value=E}; EC=function(E){this.value=E}; e_=function(E){this.value=E}; lL=function(E){this.value=E}; ki=function(E){this.value=E}; H9=function(E){this.value=E}; OC=function(E){this.value=E}; XL=function(E){this.value=E}; uL=function(E){this.value=E}; AJ=function(E){this.value=E}; Cj=function(E){this.value=E}; pj=function(E){this.value=E}; xi=function(E){this.value=E}; Qg=function(E){this.value=E}; W9=function(E){this.value=E}; B9=function(E){this.value=E}; o2=function(E){this.value=E}; wQ=function(E){this.value=E}; za=function(E){this.value=E}; dQ=function(E){this.value=E}; Ga=function(E){this.value=E}; Ta=function(E){this.value=E}; iL=function(E){this.value=E}; $i=function(E){this.value=E}; UC=function(E){this.value=E}; JJ=function(E){this.value=E}; c9=function(E){this.value=E}; yg=function(E){this.value=E}; j_=function(){$g.apply(this,arguments)}; I2=function(E){this.value=E}; FL=function(){$g.apply(this,arguments)}; fj=function(){$g.apply(this,arguments)}; Vg=function(){$g.apply(this,arguments)}; S_=function(){$g.apply(this,arguments)}; rQ=function(){$g.apply(this,arguments)}; Dq=function(E){this.value=E}; bL=function(E){this.value=E}; v9=function(E){this.value=E}; P9=function(E){this.value=E}; a2=function(E){this.value=E}; hJ=function(E,e,l){if(l&&!l.includes(E.layoutType))return!1;e=g.T(e);for(l=e.next();!l.done;l=e.next())if(!Lj(E.clientMetadata,l.value))return!1;return!0}; Mk=function(){return""}; PPv=function(E,e){switch(E){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 e(E),8}}; Nk=function(E,e,l,k){k=k===void 0?!1:k;o1.call(this,E);this.ZB=l;this.ac=k;this.args=[];e&&this.args.push(e)}; n=function(E,e,l,k){k=k===void 0?!1:k;o1.call(this,E);this.ZB=l;this.ac=k;this.args=[];e&&this.args.push(e)}; Zq=function(E){var e=new Map;E.forEach(function(l){e.set(l.T(),l)}); this.T=e}; Lj=function(E,e){return E.T.has(e)}; Yi=function(E,e){E=E.T.get(e);if(E!==void 0)return E.get()}; mq=function(E){return Array.from(E.T.keys())}; gQ=function(E,e,l){if(l&&l!==E.slotType)return!1;e=g.T(e);for(l=e.next();!l.done;l=e.next())if(!Lj(E.clientMetadata,l.value))return!1;return!0}; LM9=function(E){var e;return((e=aE9.get(E))==null?void 0:e.d1)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; nj=function(E,e){var l={type:e.slotType,controlFlowManagerLayer:hqW.get(e.O7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(l.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(l.slotPhysicalPosition=e.slotPhysicalPosition);if(E){l.debugData={slotId:e.slotId};if(E=e.slotEntryTrigger)l.debugData.slotEntryTriggerData=Kj(E);E=e.slotFulfillmentTriggers;l.debugData.fulfillmentTriggerData=[];E=g.T(E);for(var k=E.next();!k.done;k=E.next())l.debugData.fulfillmentTriggerData.push(Kj(k.value)); e=e.slotExpirationTriggers;l.debugData.expirationTriggerData=[];e=g.T(e);for(E=e.next();!E.done;E=e.next())l.debugData.expirationTriggerData.push(Kj(E.value))}return l}; MNW=function(E,e){var l={type:e.layoutType,controlFlowManagerLayer:hqW.get(e.O7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E&&(l.debugData={layoutId:e.layoutId});return l}; Kj=function(E,e){var l={type:E.triggerType};e!=null&&(l.category=e);E.triggeringSlotId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedSlotId=E.triggeringSlotId);E.triggeringLayoutId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedLayoutId=E.triggeringLayoutId);return l}; Ng9=function(E,e,l,k){e={opportunityType:e};E&&(k||l)&&(k=g.o7(k||[],function(H){return nj(E,H)}),e.debugData=Object.assign({},l&&l.length>0?{associatedSlotId:l}:{},k.length>0?{slots:k}:{})); return e}; sC=function(E,e){return function(l){return Z29(R2(E),e.slotId,e.slotType,e.slotPhysicalPosition,e.O7,e.slotEntryTrigger,e.slotFulfillmentTriggers,e.slotExpirationTriggers,l.layoutId,l.layoutType,l.O7)}}; Z29=function(E,e,l,k,H,O,X,A,C,p,x){return{adClientDataEntry:{slotData:nj(E,{slotId:e,slotType:l,slotPhysicalPosition:k,O7:H,slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:A,clientMetadata:new Zq([])}),layoutData:MNW(E,{layoutId:C,layoutType:p,O7:x,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],E7:new Map,clientMetadata:new Zq([]),lY:{}})}}}; qk=function(E){this.ZM=E;E=Math.random();var e=this.ZM.get();e=g.tJ(e.U.Y().experiments,"html5_debug_data_log_probability");e=Number.isFinite(e)&&e>=0&&e<=1?e:0;this.T=E1){g.UJ(new g.PK("Exit already started",{current:E.currentState}));var l=!1}else l=!0;if(!l)return!1;E.currentState=2;E.T=e;return!0}; lp=function(E){if(E.currentState!==2)return!1;E.currentState=3;return!0}; Tl7=function(E,e){var l=new Map;E=g.T(E);for(var k=E.next();!k.done;k=E.next()){k=k.value;if(k.layoutType==="LAYOUT_TYPE_MEDIA")var H="v";else k.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(H=Yi(k.clientMetadata,"metadata_type_linked_in_player_layout_type"),H=H==="LAYOUT_TYPE_ENDCAP"||H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":H==="LAYOUT_TYPE_SURVEY"?"s":H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):H="u";l.set(k.layoutId,H);if(H==="u"){var O={};H=e;k=(O.c=k.layoutId,O);H.U.wH("uct",k)}}E= e.x4();kf={contentCpn:E,LO:l};k={};l=(k.ct=l.size,k.c=E,k);e.U.wH("acc",l)}; iNX=function(){kf={contentCpn:"",LO:new Map}}; HR=function(E){var e;return(e=kf.LO.get(E))!=null?e:"u"}; OO=function(E,e,l){E.U.wH(e,l);$Zy(E)}; UZZ=function(E){var e=E.layoutId,l=E.Ut;if(E.BV){var k={};OO(E.H7,"slso",(k.ec=e,k.is=l,k.ctp=HR(e),k))}}; Xx=function(E){var e=E.layoutId,l=E.Ut;if(E.BV){var k={};OO(E.H7,"slse",(k.ec=e,k.is=l,k.ctp=HR(e),k))}}; Jqe=function(E){var e=E.layoutId,l=E.Ut,k=E.H7;E.BV&&(E={},OO(k,"sleo",(E.xc=e,E.is=l,E.ctp=HR(e),E)),$Zy(k))}; cqX=function(E){var e=E.cpn,l=E.H7;E=E.Ut;var k=l.x4(),H={};OO(l,"ce",(H.ec=e,H.ia=e!==k,H.r=kf.LO.has(e),H.is=E,H.ctp=HR(e),H))}; $Zy=function(E){if(E.x4()!==kf.contentCpn){var e={};e=(e.c=kf.contentCpn,e);E.U.wH("ccm",e)}}; yqv=function(E){var e=E.cpn,l=E.H7;E=E.Ut;var k=l.x4(),H={};OO(l,"cx",(H.xc=e,H.ia=e!==k,H.r=kf.LO.has(e),H.is=E,H.ctp=HR(e),H))}; jYv=function(E){this.params=E;this.T=new Set}; IbS=function(E,e,l){if(!E.T.has(e)){E.T.add(e);var k={};E.params.Nw.p7(e,Object.assign({},l,(k.p_ac=E.params.adCpn,k.p_isv=E.params.Ux&&E.params.qK,k)))}}; A4=function(E,e,l){if(up(E.params.Nw.ZM.get(),!0)){var k=l.flush,H={};IbS(E,e,(H.cts=l.currentTimeSec,H.f=k,H))}}; FOS=function(E,e){this.H7=E;this.ZM=e}; CL=function(E){var e=[];if(E){E=g.T(Object.entries(E));for(var l=E.next();!l.done;l=E.next()){var k=g.T(l.value);l=k.next().value;k=k.next().value;k!==void 0&&(k=typeof k==="boolean"?""+ +k:(""+k).replace(/[:,=]/g,"_"),e.push(l+"."+k))}}return e.join(";")}; g.pL=function(E,e,l){e=e===void 0?{}:e;this.errorCode=E;this.details=e;this.severity=l===void 0?0:l}; xf=function(E){return E===1||E===2}; Qp=function(E,e){e=e===void 0?0:e;if(E instanceof g.pL)return E;E=E&&E instanceof Error?E:Error(""+E);xf(e)?g.$F(E):g.UJ(E);return new g.pL(e===1?"player.fatalexception":"player.exception",{name:""+E.name,message:""+E.message},e)}; fb9=function(E,e){function l(){var k=g.LS.apply(0,arguments);E.removeEventListener("playing",l);e.apply(null,g.Be(k))} E.addEventListener("playing",l)}; WR=function(){var E=g.eS("yt.player.utils.videoElement_");E||(E=g.Qz("VIDEO"),g.qW("yt.player.utils.videoElement_",E));return E}; BR=function(E){var e=WR();return!!(e&&e.canPlayType&&e.canPlayType(E))}; wB=function(E){if(/opus/.test(E)&&g.oW&&!dJ("38")&&!g.vg())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(E);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(E);if(/webm/.test(E)&&!izl())return!1;E==='audio/mp4; codecs="mp4a.40.2"'&&(E='video/mp4; codecs="avc1.4d401f"');return!!BR(E)}; VPp=function(E){try{var e=wB('video/mp4; codecs="avc1.42001E"')||wB('video/webm; codecs="vp9"');return(wB('audio/mp4; codecs="mp4a.40.2"')||wB('audio/webm; codecs="opus"'))&&(e||!E)||BR('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(l){return"html5.missingapi"}}; z_=function(){var E=WR();return!(!E.webkitSupportsPresentationMode||typeof E.webkitSetPresentationMode!=="function")}; dB=function(){var E=WR();try{var e=E.muted;E.muted=!e;return E.muted!==e}catch(l){}return!1}; SwW=function(){var E;return((E=navigator.connection)==null?void 0:E.type)||""}; g.G_=function(){GC.apply(this,arguments)}; T_=function(E,e,l,k,H,O,X,A){this.sampleRate=E===void 0?0:E;this.numChannels=e===void 0?0:e;this.spatialAudioType=l===void 0?"SPATIAL_AUDIO_TYPE_NONE":l;this.T=k===void 0?!1:k;this.Z=H;this.S=O;this.audioQuality=X===void 0?"AUDIO_QUALITY_UNKNOWN":X;this.G=A===void 0?!1:A}; UO=function(E,e,l,k,H,O,X,A,C){this.width=E;this.height=e;this.quality=O||ip(E,e);this.qualityOrdinal=g.$f[this.quality];this.fps=l||0;this.stereoLayout=!H||k!=null&&k!=="UNKNOWN"&&k!=="RECTANGULAR"?0:H;this.projectionType=k?k==="EQUIRECTANGULAR"&&H===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":k:"UNKNOWN";(E=X)||(E=g.$f[this.quality],E===0?E="Autom\u00e1tico":(e=this.fps,l=this.projectionType,E=E.toString()+(l==="EQUIRECTANGULAR"||l==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||l==="MESH"?"s":"p")+(e>55?"60": e>49?"50":e>39?"48":"")));this.qualityLabel=E;this.T=A||"";this.primaries=C||""}; ip=function(E,e){var l=Math.max(E,e);E=Math.min(E,e);e=J4[0];for(var k=0;k=Math.floor(O*16/9)*1.3||E>=O*1.3)return e;e=H}return"tiny"}; jO=function(E,e,l){l=l===void 0?{}:l;this.id=E;this.mimeType=e;l.Kg>0||(l.Kg=16E3);Object.assign(this,l);E=g.T(this.id.split(";"));this.itag=E.next().value;this.T=E.next().value;this.containerType=cR(e);this.DM=yp[this.itag]||""}; IW=function(E){return E.DM==="9"||E.DM==="("||E.DM==="9h"||E.DM==="(h"}; rqe=function(E){return E.DM==="H"||E.DM==="h"}; Fx=function(E){return E.DM==="9h"||E.DM==="(h"}; DZZ=function(E){return!!E.oG&&!!E.oG.fairplay&&(E.DM==="("||E.DM==="(h"||E.DM==="A"||E.DM==="MEAC3")||fL&&!!E.oG&&E.DM==="1e"}; Vp=function(E){return E.DM==="1"||E.DM==="1h"||fL&&E.DM==="1e"}; SO=function(E){return E.DM==="mac3"||E.DM==="meac3"||E.DM==="m"||E.DM==="i"}; rB=function(E){return E.DM==="MAC3"||E.DM==="MEAC3"||E.DM==="M"||E.DM==="I"}; g.D9=function(E){return E.containerType===1}; bNp=function(E){return E.DM==="("||E.DM==="(h"||E.DM==="H"||fL&&E.DM==="1e"}; bp=function(E){return E.mimeType==="application/x-mpegURL"}; g.vR=function(E,e){return{itag:+E.itag,lmt:e?0:E.lastModified,xtags:E.T||""}}; v37=function(E){var e=navigator.mediaCapabilities;if(e==null||!e.decodingInfo||E.DM==="f")return Promise.resolve();var l={type:E.audio&&E.video?"file":"media-source"};E.video&&(l.video={contentType:E.mimeType,width:E.video.width||640,height:E.video.height||360,bitrate:E.Kg*8||1E6,framerate:E.video.fps||30});E.audio&&(l.audio={contentType:E.mimeType,channels:""+(E.audio.numChannels||2),bitrate:E.Kg*8||128E3,samplerate:E.audio.sampleRate||44100});return e.decodingInfo(l).then(function(k){E.G=k})}; aW=function(E){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(E)}; LL=function(E){return/(vp9|vp09|vp8|avc1|av01)/.test(E)}; h4=function(E){return E.includes("vtt")||E.includes("text/mp4")}; cR=function(E){return E.indexOf("/mp4")>=0?1:E.indexOf("/webm")>=0?2:E.indexOf("/x-flv")>=0?3:E.indexOf("/vtt")>=0?4:0}; M5=function(E,e,l,k,H,O){var X=new T_;e in g.$f||(e="small");e==="light"&&(e="tiny");k&&H?(H=Number(H),k=Number(k)):(H=g.$f[e],k=Math.round(H*16/9));O=new UO(k,H,0,null,void 0,e,O);E=unescape(E.replace(/"/g,'"'));return new jO(l,E,{audio:X,video:O})}; N5=function(E){var e="id="+E.id;E.video&&(e+=", res="+E.video.qualityLabel);var l,k;return e+", byterate=("+((l=E.CS)==null?void 0:l.toFixed(0))+", "+((k=E.Kg)==null?void 0:k.toFixed(0))+")"}; Z9=function(E,e){return{start:function(l){return E[l]}, end:function(l){return e[l]}, length:E.length}}; PU7=function(E,e,l){for(var k=[],H=[],O=0;O=e)return l}catch(k){}return-1}; gB=function(E,e){return mU(E,e)>=0}; abl=function(E,e){if(!E)return NaN;e=mU(E,e);return e>=0?E.start(e):NaN}; KL=function(E,e){if(!E)return NaN;e=mU(E,e);return e>=0?E.end(e):NaN}; nL=function(E){return E&&E.length?E.end(E.length-1):NaN}; RW=function(E){return nL(E)>0}; sO=function(E,e){E=KL(E,e);return E>=0?E-e:0}; t4=function(E,e,l){for(var k=[],H=[],O=0;Ol||(k.push(Math.max(e,E.start(O))-e),H.push(Math.min(l,E.end(O))-e));return Z9(k,H)}; q5=function(E,e,l,k){g.sJ.call(this);var H=this;this.Ez=E;this.start=e;this.end=l;this.isActive=k;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.r8={error:function(){!H.U7()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.U7()&&H.isActive&&H.publish("updateend",H)}}; this.Ez.yJ(this.r8);this.MW=this.isActive}; eK=function(E,e,l,k,H,O){g.sJ.call(this);var X=this;this.Jg=E;this.Uq=e;this.id=l;this.containerType=k;this.DM=H;this.qK=O;this.QV=this.kF=this.MK=null;this.wu=!1;this.appendWindowStart=this.timestampOffset=0;this.XA=Z9([],[]);this.fO=!1;this.nf=[];this.St=E$?[]:void 0;this.K5=function(C){return X.publish(C.type,X)}; var A;if((A=this.Jg)==null?0:A.addEventListener)this.Jg.addEventListener("updateend",this.K5),this.Jg.addEventListener("error",this.K5)}; l3=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; kZ=function(E,e){this.XS=E;this.T=e===void 0?!1:e;this.G=!1}; Hf=function(E,e,l){l=l===void 0?!1:l;g.a.call(this);this.mediaElement=E;this.B5=e;this.isView=l;this.J=0;this.S=!1;this.W=!0;this.V=0;this.callback=null;this.N=!1;this.B5||(this.Uq=this.mediaElement.Zb());this.events=new g.G_(this);g.L(this,this.events);this.Z=new kZ(this.B5?window.URL.createObjectURL(this.B5):this.Uq.webkitMediaSourceURL,!0);E=this.B5||this.Uq;TC(this.events,E,["sourceopen","webkitsourceopen"],this.mQn);TC(this.events,E,["sourceclose","webkitsourceclose"],this.I0R);this.j={updateend:this.T7}}; LOp=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; ha9=function(E,e){O$(E)?g.Gy(function(){e(E)}):E.callback=e}; MP9=function(E,e,l){if(XS){var k;u3(E.mediaElement,{l:"mswssb",sr:(k=E.mediaElement.I4)==null?void 0:k.p_()},!1);e.yJ(E.j,E);l.yJ(E.j,E)}E.T=e;E.G=l;g.L(E,e);g.L(E,l)}; Ap=function(E){return!!E.T||!!E.G}; O$=function(E){try{return CX(E)==="open"}catch(e){return!1}}; CX=function(E){if(E.B5)return E.B5.readyState;switch(E.Uq.webkitSourceState){case E.Uq.SOURCE_OPEN:return"open";case E.Uq.SOURCE_ENDED:return"ended";default:return"closed"}}; pX=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; NlW=function(E){O$(E)&&(E.B5?E.B5.endOfStream():E.Uq.webkitSourceEndOfStream(E.Uq.EOS_NO_ERROR))}; ZNp=function(E,e,l,k){if(!E.T||!E.G)return null;var H=E.T.isView()?E.T.Ez:E.T,O=E.G.isView()?E.G.Ez:E.G,X=new Hf(E.mediaElement,E.B5,!0);X.Z=E.Z;MP9(X,new q5(H,e,l,k),new q5(O,e,l,k));O$(E)||E.T.Y6(E.T.eE());return X}; YwW=function(E){var e;(e=E.T)==null||e.HY();var l;(l=E.G)==null||l.HY();E.W=!1}; xZ=function(){var E=this;this.Zm=this.NC=T8W;this.promise=new g.cq(function(e,l){E.NC=e;E.Zm=l})}; Qe=function(){g.a.call(this);this.JI=!1;this.XS=null;this.j=this.J=!1;this.S=new g.CU;this.I4=null;g.L(this,this.S)}; Wf=function(E){E=E.q0();return E.length<1?NaN:E.end(E.length-1)}; mZ7=function(E){!E.G&&LOp()&&(E.Z?E.Z.then(function(){return mZ7(E)}):E.Ir()||(E.G=E.T8()))}; g3p=function(E){E.G&&(E.G.dispose(),E.G=void 0)}; u3=function(E,e,l){var k;((k=E.I4)==null?0:k.f7())&&E.I4.wH("rms",e,l===void 0?!1:l)}; KOe=function(E,e,l){E.isPaused()||E.getCurrentTime()>e||l>10||(E.play(),g.uM(function(){KOe(E,E.getCurrentTime(),l+1)},500))}; n30=function(E,e){E.XS&&E.XS.equals(e)||(E.XS&&E.XS.dispose(),E.XS=e)}; Bf=function(E){return sO(E.PG(),E.getCurrentTime())}; Ral=function(E,e){if(E.I9()===0||E.hasError())return!1;var l=E.getCurrentTime()>0;return e>=0&&(E=E.q0(),E.length||!l)?gB(E,e):l}; o9=function(E){E.Ir()&&(E.I4&&E.I4.y7("rs_s"),PZ&&E.getCurrentTime()>0&&E.seekTo(0),E.Mt(),E.load(),n30(E,null));delete E.Z}; wi=function(E){switch(E.tB()){case 2:return"progressive.net.retryexhausted";case 3:return E=E.K0(),(E==null?0:E.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||sYp&&(E==null?0:E.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.zU=function(E,e,l){this.Bf=e===void 0?null:e;this.seekSource=l===void 0?null:l;this.state=E||64}; di=function(E,e,l){l=l===void 0?!1:l;return tPp(E,e.getCurrentTime(),(0,g.dE)(),Bf(e),l)}; GU=function(E,e,l,k){if(!(e===E.state&&l===E.Bf&&k===E.seekSource||e!==void 0&&(e&128&&!l||e&2&&e&16))){var H;if(H=e)H=e||E.state,H=!!(H&16||H&32);E=new g.zU(e,l,H?k?k:E.seekSource:null)}return E}; TU=function(E,e,l){return GU(E,E.state|e,null,l===void 0?null:l)}; i3=function(E,e){return GU(E,E.state&~e,null,null)}; $Z=function(E,e,l,k){return GU(E,(E.state|e)&~l,null,k===void 0?null:k)}; g.m=function(E,e){return!!(E.state&e)}; g.U$=function(E,e){return e.state===E.state&&e.Bf===E.Bf}; Jp=function(E){return E.isPlaying()&&!g.m(E,16)&&!g.m(E,32)}; cf=function(E){return g.m(E,128)?-1:g.m(E,2)?0:g.m(E,2048)?3:g.m(E,64)?-1:g.m(E,1)&&!g.m(E,32)?3:g.m(E,8)?1:g.m(E,4)?2:-1}; jK=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c){g.a.call(this);var V=this;this.Vt=E;this.slot=e;this.layout=l;this.l3=k;this.n7=H;this.Lg=O;this.o4=X;this.SJ=A;this.QB=C;this.WJ=p;this.position=Q;this.J=W;this.ZM=B;this.OS=w;this.bO=U;this.context=c;this.HG=!0;this.W=!1;this.Hh="not_rendering";this.G=!1;this.Z=new EO;E=Yi(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Cg=new xA(l.E7,this.l3,E,l.layoutId);var F;E=((F=ye(this))==null?void 0:F.progressCommands)||[];this.S=new sOy(C, E,l.layoutId,function(){return V.W0()}); this.T=new jYv({adCpn:this.layout.layoutId,Nw:c.Nw,Ux:this.OS,qK:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; I9=function(E){return{layoutId:E.L3(),Ut:E.OS,H7:E.Lg.get(),BV:E.Xr()}}; FS=function(E,e){return e.layoutId!==E.layout.layoutId?(E.Vt.NK(E.slot,e,new Nk("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+E.layout.layoutId+("and LayoutType: "+E.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; fX=function(E){E.Hh="rendering_start_requested";E.WJ(-1)}; ye=function(E){return Yi(E.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; qwS=function(E){kd("Received layout exit signal when not in layout exit flow.",E.slot,E.layout)}; Ed7=function(E){var e;return((e=Ve(E.Lg.get(),2))==null?void 0:e.clientPlaybackNonce)||""}; SK=function(E,e){switch(e){case "normal":E.Bh("complete");break;case "skipped":E.Bh("skip");break;case "abandoned":zY(E.Cg,"impression")&&E.Bh("abandon")}}; ri=function(E,e){E.W||(e=new g.H2(e.state,new g.zU),E.W=!0);return e}; DU=function(E,e){Rv(e)?E.WJ(1):g.Xh(e,4)&&!g.Xh(e,2)&&E.qr();Ou(e,4)<0&&!(Ou(e,2)<0)&&E.BP()}; e77=function(E){E.position===0&&(E.SJ.get(),E=Yi(E.layout.clientMetadata,"metadata_type_ad_placement_config").kind,E={adBreakType:b3(E)},$Q("ad_bl"),g.UX(E))}; vf=function(E,e){ov(E.Cg,e,!E.G)}; kjy=function(E){var e;return(((e=ye(E))==null?void 0:e.progressCommands)||[]).findIndex(function(l){return!!g.M(l==null?void 0:l.command,lX8)})!==-1}; Pf=function(E,e){var l=Yi(E.clientMetadata,"metadata_type_eligible_for_ssap");return l===void 0?(kd("Expected SSAP eligibility in PlayerBytes factory",E),!1):e.Xr(l)}; a9=function(E,e){if(!rY(e.get(),"html5_ssap_pass_transition_reason"))return 3;switch(E){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return kd("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return kd("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:E}),3;default:pk(E,"unknown layoutExitReason")}}; HB9=function(E){kd("getExitReason: unexpected reason",void 0,void 0,{reason:E})}; LX=function(E,e){if(rY(e.get(),"html5_ssap_pass_transition_reason"))switch(E){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return HB9(E),"abandoned";case 3:case 1:return HB9(E),"error";default:pk(E,"unexpected transition reason")}else switch(E){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return kd("getExitReason: unexpected reason",void 0,void 0,{reason:E}),"error";default:pk(E,"unexpected transition reason")}}; g.hp=function(E,e,l){cz(E,l)||I6(E,e,l);cz(E,"video_to_ad")||I6(E,e,"video_to_ad");cz(E,"ad_to_video")||I6(E,e,"ad_to_video");cz(E,"ad_to_ad")||I6(E,e,"ad_to_ad")}; MP=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V){jK.call(this,E,e,l,k,H,O,X,A,p,x,Q,W,B,w,U,c,V);var F=this;this.C5=C;this.gD=Q;this.aC=!0;this.A8=this.wM=0;this.Z6=SM(function(){UZZ(I9(F));F.Vt.Ph(F.slot,F.layout)}); this.qE=SM(function(){Jqe(I9(F));F.Hh!=="rendering_stop_requested"&&F.gD(F);F.layoutExitReason?F.Vt.G_(F.slot,F.layout,F.layoutExitReason):qwS(F)}); this.timer=new g.S2(200);this.timer.listen("tick",function(){F.oz()}); g.L(this,this.timer)}; ZU=function(E){E.A8=Date.now();NP(E,E.wM);E.timer.start()}; OBy=function(E){E.wM=E.W0();E.w1(E.wM/1E3,!0);NP(E,E.wM)}; NP=function(E,e){e={current:e/1E3,duration:E.W0()/1E3};E.C5.get().iz("onAdPlaybackProgress",e)}; YZ=function(E){MP.call(this,E.Vt,E.slot,E.F_,E.l3,E.n7,E.Lg,E.o4,E.SJ,E.C5,E.QB,E.WJ,E.gD,E.a$,E.Ju,E.ZM,E.OS,E.bO,E.context)}; m9=function(E){MP.call(this,E.Vt,E.slot,E.F_,E.l3,E.n7,E.Lg,E.o4,E.SJ,E.C5,E.QB,E.WJ,E.gD,E.a$,E.Ju,E.ZM,E.OS,E.bO,E.context)}; gi=function(){m9.apply(this,arguments)}; X28=function(E){return Pf(E.slot,E.ZM.get())?new gi(E):new YZ(E)}; R9=function(E){jK.call(this,E.callback,E.slot,E.F_,E.l3,E.n7,E.Lg,E.o4,E.SJ,E.QB,E.WJ,E.gD,E.a$,E.Ju,E.ZM,E.OS,E.bO,E.context);var e=this;this.adCpn="";this.aK=this.ey=0;this.Z6=SM(function(){UZZ(I9(e));e.Vt.Ph(e.slot,e.layout)}); this.qE=SM(function(){Jqe(I9(e));e.Hh!=="rendering_stop_requested"&&e.gD(e);e.layoutExitReason?e.Vt.G_(e.slot,e.layout,e.layoutExitReason):qwS(e)}); this.a7=E.a7;this.kN=E.kN;this.n5=E.n5;this.C5=E.C5;this.J2=E.J2;this.gD=E.gD;if(!this.Xr()){rY(this.ZM.get(),"html5_disable_media_load_timeout")||(this.Tw=new g.Nx(function(){e.Lt("load_timeout",new Nk("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); E=KX(this.ZM.get());var l=nX(this.ZM.get());E&&l&&(this.Bl=new g.Nx(function(){var k=Yi(e.layout.clientMetadata,"metadata_type_preload_player_vars");k&&e.kN.get().U.preloadVideoByPlayerVars(k,2,300)}))}}; A_8=function(E,e){var l=Yi(e.clientMetadata,"metadata_type_ad_video_id"),k=Yi(e.clientMetadata,"metadata_type_legacy_info_card_vast_extension");l&&k&&E.J2.get().U.Y().c5.add(l,{mI:k});(e=Yi(e.clientMetadata,"metadata_type_sodar_extension_data"))&&Co7(E.a7.get(),e);uhW(E.o4.get(),!1)}; Cu9=function(E){uhW(E.o4.get(),!0);var e;((e=E.shrunkenPlayerBytesConfig)==null?0:e.shouldRequestShrunkenPlayerBytes)&&E.o4.get().oU(!1)}; p2X=function(E){return new s$(E)}; tp=function(){R9.apply(this,arguments)}; s$=function(){tp.apply(this,arguments)}; x9X=function(E){return X28(Object.assign({},E,{Vt:E.callback,WJ:function(){}}))}; Qk7=function(E){return new R9(Object.assign({},E,{WJ:function(e){E.C5.get().iz("onAdIntroStateChange",e)}}))}; Wt8=function(E){function e(l){E.C5.get().FO(l)} return Pf(E.slot,E.ZM.get())?p2X(Object.assign({},E,{WJ:e})):new R9(Object.assign({},E,{WJ:e}))}; qP=function(E){for(var e=E.F_,l=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],k=g.T(QV()),H=k.next();!H.done;H=k.next())l.push(H.value);if(Dn(e,{IG:l,yy:["LAYOUT_TYPE_MEDIA_BREAK"]}))return x9X(E);e=E.F_;l=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];k=g.T(QV());for(H=k.next();!H.done;H=k.next())l.push(H.value);if(Dn(e,{IG:l,yy:["LAYOUT_TYPE_MEDIA"]}))return Lj(E.F_.clientMetadata,"metadata_type_ad_intro")?Qk7(E):Wt8(E)}; ode=function(E){var e=Yi(E.clientMetadata,"metadata_type_ad_placement_config").kind,l=Yi(E.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:E.layoutId,adType:BHW(l),adBreakType:b3(e)}}; b3=function(E){switch(E){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"}}; BHW=function(E){switch(E){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; w20=function(E){try{return new E2(E.QM,E.slot,E.layout,E.uq,E.Gg,E.Lg,E.m6,E.kN,E.K7,E.o4,E.xV0,E)}catch(e){}}; E2=function(E,e,l,k,H,O,X,A,C,p,x,Q){g.a.call(this);this.QM=E;this.slot=e;this.layout=l;this.uq=k;this.Gg=H;this.Lg=O;this.m6=X;this.kN=A;this.K7=C;this.o4=p;this.params=Q;this.HG=!0;E=qP(x);if(!E)throw Error("Invalid params for sublayout");this.bN=E}; z7p=function(){this.T=1;this.G=new EO}; eB=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B){g.a.call(this);this.callback=E;this.Lg=e;this.m6=l;this.kN=k;this.o4=H;this.dG=O;this.SJ=X;this.r_=A;this.slot=C;this.layout=p;this.uq=x;this.qw=Q;this.K7=W;this.ZM=B;this.HG=!0;this.LX=!1;this.RV=[];this.x5=-1;this.Yc=!1;this.PR=new z7p}; d9S=function(E){var e;return(e=E.layout.bj)!=null?e:Yi(E.layout.clientMetadata,"metadata_type_sub_layouts")}; lt=function(E){return{H7:E.Lg.get(),Ut:!1,BV:E.Xr()}}; Gjv=function(E,e,l){if(E.GT()===E.RV.length-1){var k,H;kd("Unexpected skip requested during the last sublayout",(k=E.R7())==null?void 0:k.qN(),(H=E.R7())==null?void 0:H.t0(),{requestingSlot:e,requestingLayout:l})}}; THv=function(E,e,l){return l.layoutId!==kR(E,e,l)?(kd("onSkipRequested for a PlayerBytes layout that is not currently active",E.qN(),E.t0()),!1):!0}; iBl=function(E){E.GT()===E.RV.length-1&&kd("Unexpected skip with target requested during the last sublayout")}; $9X=function(E,e,l){return l.renderingContent===void 0&&l.layoutId!==kR(E,e,l)?(kd("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",E.qN(),E.t0(),{requestingSlot:e,requestingLayout:l}),!1):!0}; U9l=function(E,e,l,k){var H=Yi(e.t0().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H0)){kd("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",E.slot,E.layout,{indexToPlay:e,layoutId:E.layout.layoutId});break a}E.x5=e;e=E.R7();if(E.GT()>0&&!E.Xr()){var l=E.SJ.get();l.G=!1;var k={};l.T&&l.videoId&&(k.cttAuthInfo={token:l.T,videoId:l.videoId});Jl("ad_to_ad",k)}l=g.M(e.t0().renderingContent,g0);if(l==null?0: l.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var H;l=!((H=E.dG.get().yfg.get(l.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&H)}else l=!1;l?HE(E,E.GT()+1):E.Xc(e)}}; ut=function(E){eB.call(this,E.QM,E.Lg,E.m6,E.kN,E.o4,E.dG,E.SJ,E.r_,E.slot,E.layout,E.uq,E.qw,E.K7,E.ZM)}; y_8=function(E){(E=E.R7())&&E.C3()}; AC=function(E){eB.call(this,E.QM,E.Lg,E.m6,E.kN,E.o4,E.dG,E.SJ,E.r_,E.slot,E.layout,E.uq,E.qw,E.K7,E.ZM);this.xv=void 0}; jkW=function(E,e){E.eF()&&!lp(E.PR.G)||E.callback.G_(E.slot,E.layout,e)}; Ch=function(E){return rY(E.ZM.get(),"html5_ssap_pass_transition_reason")}; IXv=function(E,e,l){e.ir().currentState<2&&(l=LX(l,E.ZM),e.Dx(e.t0(),l));l=e.ir().T;E.tv(E.slot,e.t0(),l)}; FtW=function(E,e){if(E.PR.G.currentState<2){var l=LX(e,E.ZM);l==="error"?E.callback.NK(E.slot,E.layout,new Nk("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:e},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Xf(E.qw,E.layout,l)}}; ph=function(E,e,l){e.ir().currentState>=2||(e.Dx(e.t0(),l),lp(e.ir())&&(Bu(E.r_,E.slot,e.t0(),l),E.xv=void 0))}; fX0=function(E,e){E.PR.T===2&&e!==E.x4()&&kd("onClipEntered: unknown cpn",E.slot,E.layout,{cpn:e})}; VIX=function(E,e){var l=E.R7();if(l){var k=l.t0().layoutId,H=E.GT()+1;E.eF()?ph(E,l,e):l.Dx(l.t0(),e);H>=0&&HH&&X.j2(x,H-k);return x}; h70=function(E,e,l){var k=Yi(e.clientMetadata,"metadata_type_sodar_extension_data");if(k)try{Co7(l,k)}catch(H){kd("Unexpected error when loading Sodar",E,e,{error:H})}}; MIX=function(E,e,l,k,H,O,X){zp(E,e,new g.H2(l,new g.zU),k,H,X,!1,O)}; zp=function(E,e,l,k,H,O,X,A){X=X===void 0?!0:X;Rv(l)&&sU(H,0,null)&&(!zY(E,"impression")&&A&&A(),E.Bh("impression"));zY(E,"impression")&&(g.Xh(l,4)&&!g.Xh(l,2)&&E.gB("pause"),Ou(l,4)<0&&!(Ou(l,2)<0)&&E.gB("resume"),g.Xh(l,16)&&H>=.5&&E.gB("seek"),X&&g.Xh(l,2)&&dZ(E,l.state,e,k,H,O))}; dZ=function(E,e,l,k,H,O,X,A,C){zY(E,"impression")&&(O?(O=H-k,O=O>=-1&&O<=2):O=Math.abs(k-H)<=1,Gp(E,e,O?k:H,l,k,X,A&&O),O&&!C&&E.Bh("complete"))}; Gp=function(E,e,l,k,H,O,X){w0(E,l*1E3,X);H<=0||l<=0||(e==null?0:g.m(e,16))||(e==null?0:g.m(e,32))||(sU(l,H*.25,k)&&(O&&!zY(E,"first_quartile")&&O("first"),E.Bh("first_quartile")),sU(l,H*.5,k)&&(O&&!zY(E,"midpoint")&&O("second"),E.Bh("midpoint")),sU(l,H*.75,k)&&(O&&!zY(E,"third_quartile")&&O("third"),E.Bh("third_quartile")))}; NHZ=function(E,e){zY(E,"impression")&&E.gB(e?"fullscreen":"end_fullscreen")}; ZBX=function(E){zY(E,"impression")&&E.gB("clickthrough")}; YuW=function(E){E.gB("active_view_measurable")}; m9X=function(E){zY(E,"impression")&&!zY(E,"seek")&&E.gB("active_view_fully_viewable_audible_half_duration")}; gdS=function(E){zY(E,"impression")&&!zY(E,"seek")&&E.gB("active_view_viewable")}; KtX=function(E){zY(E,"impression")&&!zY(E,"seek")&&E.gB("audio_audible")}; ndy=function(E){zY(E,"impression")&&!zY(E,"seek")&&E.gB("audio_measurable")}; R7p=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){this.callback=E;this.slot=e;this.layout=l;this.m6=k;this.Cg=H;this.o4=O;this.JL=X;this.n7=A;this.a7=C;this.ZM=p;this.l3=x;this.Lg=Q;this.n5=W;this.aC=!0;this.f5=this.Hh=null;this.adCpn=void 0;this.T=!1}; sk9=function(E,e,l){var k;wZ(E.l3.get(),"ads_qua","cpn."+Yi(E.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Ve(E.Lg.get(),2))==null?void 0:k.clientPlaybackNonce)+";qt."+e+";clr."+l)}; tIS=function(E,e){var l,k;wZ(E.l3.get(),"ads_imp","cpn."+Yi(E.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=Ve(E.Lg.get(),2))==null?void 0:l.clientPlaybackNonce)+";clr."+e+";skp."+!!g.M((k=Yi(E.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:k.skipOrPreviewRenderer,Tp))}; $R=function(E){return{enterMs:Yi(E.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Yi(E.clientMetadata,"metadata_type_layout_exit_ms")}}; U2=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B){Qw.call(this,E,e,l,k,H,X,A,C,p,Q);this.JL=O;this.a7=x;this.n7=W;this.ZM=B;this.f5=this.Hh=null}; quX=function(E,e){var l;wZ(E.l3.get(),"ads_imp","acpn."+((l=Ve(E.Lg.get(),2))==null?void 0:l.clientPlaybackNonce)+";clr."+e)}; EQy=function(E,e,l){var k;wZ(E.l3.get(),"ads_qua","cpn."+Yi(E.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Ve(E.Lg.get(),2))==null?void 0:k.clientPlaybackNonce)+";qt."+e+";clr."+l)}; JC=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V,F,r,P,N){this.K7=E;this.uq=e;this.qw=l;this.Lg=k;this.m6=H;this.o4=O;this.dG=X;this.l3=A;this.JL=C;this.BN=p;this.n7=x;this.a7=Q;this.kN=W;this.n5=B;this.SJ=w;this.C5=U;this.QB=c;this.J2=V;this.ZM=F;this.T=r;this.context=P;this.bO=N}; cE=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V,F){this.K7=E;this.uq=e;this.qw=l;this.l3=k;this.n7=H;this.a7=O;this.kN=X;this.Lg=A;this.o4=C;this.dG=p;this.n5=x;this.SJ=Q;this.C5=W;this.QB=B;this.J2=w;this.ZM=U;this.m6=c;this.context=V;this.bO=F}; e0Z=function(E,e,l,k){RO.call(this,"survey-interstitial",E,e,l,k)}; yw=function(E,e,l,k,H){kA.call(this,l,E,e,k);this.l3=H;E=Yi(e.clientMetadata,"metadata_type_ad_placement_config");this.Cg=new xA(e.E7,H,E,e.layoutId)}; jB=function(E){return Math.round(E.width)+"x"+Math.round(E.height)}; Ff=function(E,e,l){l=l===void 0?Iy:l;l.widthE.width*E.height*.2)return{Yn:3,aZ:501,errorMessage:"ad("+jB(l)+") to container("+jB(E)+") ratio exceeds limit."};if(l.height>E.height/3-e)return{Yn:3,aZ:501,errorMessage:"ad("+jB(l)+") covers container("+jB(E)+") center."}}; l8S=function(E,e){var l=Yi(E.clientMetadata,"metadata_type_ad_placement_config");return new xA(E.E7,e,l,E.layoutId)}; fh=function(E){return Yi(E.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Vw=function(E,e,l,k){RO.call(this,"invideo-overlay",E,e,l,k);this.interactionLoggingClientData=k}; SB=function(E,e,l,k,H,O,X,A,C,p,x,Q){kA.call(this,O,E,e,H);this.l3=l;this.S=X;this.o4=A;this.QB=C;this.ZM=p;this.J=x;this.W=Q;this.Cg=l8S(e,l)}; kcW=function(){var E=["metadata_type_invideo_overlay_ad_renderer"];QV().forEach(function(e){E.push(e)}); return{IG:E,yy:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; rZ=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){kA.call(this,O,E,e,H);this.l3=l;this.S=X;this.N=A;this.o4=C;this.QB=p;this.ZM=x;this.J=Q;this.W=W;this.Cg=l8S(e,l)}; HdX=function(){for(var E=["metadata_type_invideo_overlay_ad_renderer"],e=g.T(QV()),l=e.next();!l.done;l=e.next())E.push(l.value);return{IG:E,yy:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Dx=function(E){this.o4=E;this.T=!1}; Odv=function(E,e,l){RO.call(this,"survey",E,{},e,l)}; bt=function(E,e,l,k,H,O,X){kA.call(this,l,E,e,k);this.S=H;this.o4=O;this.ZM=X}; XzW=function(E,e,l,k,H,O,X,A,C,p){this.VB=E;this.o4=e;this.l3=l;this.S=k;this.n7=H;this.G=O;this.Z=X;this.QB=A;this.ZM=C;this.T=p}; uX7=function(E,e,l,k,H,O,X,A,C,p){this.VB=E;this.o4=e;this.l3=l;this.S=k;this.n7=H;this.G=O;this.Z=X;this.QB=A;this.ZM=C;this.T=p}; vE=function(E,e,l,k,H,O,X,A,C,p){hj.call(this,E,e,l,k,H,O,X,C);this.Ew=A;this.Lg=p}; Ale=function(){var E=Blv();E.IG.push("metadata_type_ad_info_ad_metadata");return E}; CnW=function(E,e,l,k,H,O,X){this.VB=E;this.o4=e;this.l3=l;this.G=k;this.Ew=H;this.T=O;this.Lg=X}; pzW=function(E,e,l,k,H,O,X,A){this.VB=E;this.o4=e;this.l3=l;this.G=k;this.Ew=H;this.T=O;this.ZM=X;this.Lg=A}; PE=function(E,e){this.slotId=e;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=E(this.triggerType)}; ay=function(E,e){this.adPodIndex=E;this.T=e.length;this.adBreakLengthSeconds=e.reduce(function(k,H){return k+H},0); var l=0;for(E+=1;E0}; FC=function(E){return!!(E.Fe&&E.slot&&E.layout)}; fG=function(E){var e,l=(e=E.config)==null?void 0:e.adPlacementConfig;E=E.renderer;return!(!l||l.kind==null||!E)}; clX=function(E){if(!iv(E.adLayoutMetadata))return!1;E=E.renderingContent;return g.M(E,g0)||g.M(E,Kr)||g.M(E,JlZ)||g.M(E,YA)||g.M(E,m3)?!0:!1}; Vt=function(E){return E.playerVars!==void 0&&E.pings!==void 0&&E.externalVideoId!==void 0}; aP=function(E){if(!iv(E.adLayoutMetadata))return!1;E=E.renderingContent;var e=g.M(E,Sr);return e?r$(e):(e=g.M(E,D5))?Vt(e):(e=g.M(E,bv))?e.playerVars!==void 0:(e=g.M(E,g0))?e.durationMilliseconds!==void 0:g.M(E,vF)||g.M(E,PF)?!0:!1}; r$=function(E){E=(E.sequentialLayouts||[]).map(function(e){return g.M(e,LG)}); return E.length>0&&E.every(aP)}; MJ=function(E){return iv(E.adLayoutMetadata)?(E=g.M(E.renderingContent,hS))&&E.pings?!0:!1:!1}; VaX=function(E){if(!iv(E.adLayoutMetadata))return!1;if(g.M(E.renderingContent,yl7)||g.M(E.renderingContent,j6X))return!0;var e=g.M(E.renderingContent,NJ);return g.M(E.renderingContent,Z5)||g.M(e==null?void 0:e.sidePanel,I8X)||g.M(e==null?void 0:e.sidePanel,FpW)||g.M(e==null?void 0:e.sidePanel,f8Z)?!0:!1}; vQZ=function(E){var e;(e=!E)||(e=E.adSlotMetadata,e=!((e==null?void 0:e.slotId)!==void 0&&(e==null?void 0:e.slotType)!==void 0));if(e||!(SX9(E)||E.slotEntryTrigger&&E.slotFulfillmentTriggers&&E.slotExpirationTriggers))return!1;var l;E=(l=E.fulfillmentContent)==null?void 0:l.fulfilledLayout;return(l=g.M(E,LG))?aP(l):(l=g.M(E,Yt))?VaX(l):(l=g.M(E,rl0))?clX(l):(l=g.M(E,DuW))?$uW(l):(l=g.M(E,bdX))?iv(l.adLayoutMetadata)?g.M(l.renderingContent,$t)?!0:!1:!1:(E=g.M(E,m1))?MJ(E):!1}; SX9=function(E){var e;E=g.M((e=E.fulfillmentContent)==null?void 0:e.fulfilledLayout,Yt);var l;return E&&((l=E.adLayoutMetadata)==null?void 0:l.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&E.layoutExitNormalTriggers===void 0}; Pnv=function(E){var e;return(E==null?void 0:(e=E.adSlotMetadata)==null?void 0:e.slotType)==="SLOT_TYPE_IN_PLAYER"}; LpX=function(E,e){var l;if((l=E.questions)==null||!l.length||!E.playbackCommands||(e===void 0||!e)&&E.questions.length!==1)return!1;E=g.T(E.questions);for(e=E.next();!e.done;e=E.next()){e=e.value;var k=l=void 0,H=((l=g.M(e,g$))==null?void 0:l.surveyAdQuestionCommon)||((k=g.M(e,KG))==null?void 0:k.surveyAdQuestionCommon);if(!a80(H))return!1}return!0}; h0e=function(E){E=((E==null?void 0:E.playerOverlay)||{}).instreamSurveyAdRenderer;var e;if(E)if(E.playbackCommands&&E.questions&&E.questions.length===1){var l,k=((e=g.M(E.questions[0],g$))==null?void 0:e.surveyAdQuestionCommon)||((l=g.M(E.questions[0],KG))==null?void 0:l.surveyAdQuestionCommon);e=a80(k)}else e=!1;else e=!1;return e}; a80=function(E){if(!E)return!1;E=g.M(E.instreamAdPlayerOverlay,nG);var e=g.M(E==null?void 0:E.skipOrPreviewRenderer,Tp),l=g.M(E==null?void 0:E.adInfoRenderer,RP);return(g.M(E==null?void 0:E.skipOrPreviewRenderer,sa)||e)&&l?!0:!1}; Ma9=function(E){return E.linearAds!=null&&iv(E.adLayoutMetadata)}; NLS=function(E){return E.linearAd!=null&&E.adVideoStart!=null}; Zd8=function(E){if(isNaN(Number(E.timeoutSeconds))||!E.text||!E.ctaButton||!g.M(E.ctaButton,g.tS)||!E.brandImage)return!1;var e;return E.backgroundImage&&g.M(E.backgroundImage,qJ)&&((e=g.M(E.backgroundImage,qJ))==null?0:e.landscape)?!0:!1}; Ei=function(E,e,l,k,H,O,X,A){g.a.call(this);this.ZM=E;this.T=e;this.G=k;this.Lg=H;this.S=O;this.Z=X;this.kN=A}; gQ9=function(E,e,l){var k,H=((k=l.adSlots)!=null?k:[]).map(function(A){return g.M(A,ej)}); if(l.gg)if(Yi(e.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))qr(E.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},e.slotId); else{if(E.ZM.get().U.Y().L("h5_check_forecasting_renderer_for_throttled_midroll")){var O=l.OA.filter(function(A){var C;return((C=A.renderer)==null?void 0:C.clientForecastingAdRenderer)!=null}); O.length!==0?YXy(E.Z,O,H,e.slotId,l.ssdaiAdsConfig):qr(E.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},e.slotId)}else qr(E.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},e.slotId); muZ(E.S,e)}else{var X;k={YC:Math.round(((O=Yi(e.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:O.YC)||0),DN:(X=Yi(e.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.DN};O=Yi(e.clientMetadata,"metadata_type_cue_point");YXy(E.Z,l.OA,H,e.slotId,l.ssdaiAdsConfig,k,O)}}; R0W=function(E,e,l,k,H,O,X,A){var C=Ve(E.Lg.get(),1);if(Kp7(E.ZM.get())){var p=lT(E.G.get(),l,k,H,C.clientPlaybackNonce,C.Pq,C.daiEnabled,C,O,X);nQ9(E,p);qr(E.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return p},e)}else qr(E.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return lT(E.G.get(),l,k,H,C.clientPlaybackNonce,C.Pq,C.daiEnabled,C,O,X,A)},e)}; nQ9=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next()){var k=l.value;if(k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.fulfilledLayout)if(l=void 0,k.fulfilledLayout.renderingContent)l=Yi(k.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(k.fulfilledLayout.bj){k=g.T(k.fulfilledLayout.bj);for(var H=k.next();!H.done&&(H=H.value,!H.renderingContent||!(l=Yi(H.clientMetadata,"metadata_type_player_vars")));H=k.next());}}else l=void 0;if(l){E.kN.get().U.preloadVideoByPlayerVars(l, 2,300);break}}}; taZ=function(E,e,l,k,H,O,X){e=s60(e,O,Number(k.prefetchMilliseconds)||0,X);E=e instanceof n?e:ko(E,k,H,e,l);return E instanceof n?E:[E]}; qXl=function(E,e,l,k,H){var O=EU(E.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");k=[new $i({getAdBreakUrl:k.getAdBreakUrl,YC:0,DN:0}),new v9(!0)];E=e.pauseDurationMs?e.lactThresholdMs?{slotId:O,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new CG(E.T,O),slotFulfillmentTriggers:[new Q6l(E.T)],slotExpirationTriggers:[new lv(E.T,H),new XC(E.T,O)],O7:"core",clientMetadata:new Zq(k),adSlotLoggingData:l}:new n("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new n("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return E instanceof n?E:[E]}; EDX=function(E){var e,l;return((e=E.renderer)==null?void 0:(l=e.adBreakServiceRenderer)==null?void 0:l.getAdBreakUrl)!==void 0}; HH=function(E,e,l){if(E.beforeContentVideoIdStartedTrigger)E=E.beforeContentVideoIdStartedTrigger?new Lh(Mk,e,E.id):new n("Not able to create BeforeContentVideoIdStartedTrigger");else{if(E.layoutIdExitedTrigger){var k;e=(k=E.layoutIdExitedTrigger)!=null&&k.triggeringLayoutId?new mZ(Mk,E.layoutIdExitedTrigger.triggeringLayoutId,E.id):new n("Not able to create LayoutIdExitedTrigger")}else{if(E.layoutExitedForReasonTrigger){var H,O;((H=E.layoutExitedForReasonTrigger)==null?0:H.triggeringLayoutId)&&((O= E.layoutExitedForReasonTrigger)==null?0:O.layoutExitReason)?(e=WpX(E.layoutExitedForReasonTrigger.layoutExitReason),E=e instanceof n?e:new YR(Mk,E.layoutExitedForReasonTrigger.triggeringLayoutId,[e],E.id)):E=new n("Not able to create LayoutIdExitedForReasonTrigger")}else{if(E.onLayoutSelfExitRequestedTrigger){var X;e=(X=E.onLayoutSelfExitRequestedTrigger)!=null&&X.triggeringLayoutId?new er(Mk,E.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,E.id):new n("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(E.onNewPlaybackAfterContentVideoIdTrigger)E= E.onNewPlaybackAfterContentVideoIdTrigger?new lv(Mk,e,E.id):new n("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(E.skipRequestedTrigger){var A;e=(A=E.skipRequestedTrigger)!=null&&A.triggeringLayoutId?new HF(Mk,E.skipRequestedTrigger.triggeringLayoutId,E.id):new n("Not able to create SkipRequestedTrigger")}else if(E.slotIdEnteredTrigger){var C;e=(C=E.slotIdEnteredTrigger)!=null&&C.triggeringSlotId?new Oa(Mk,E.slotIdEnteredTrigger.triggeringSlotId,E.id):new n("Not able to create SlotIdEnteredTrigger")}else if(E.slotIdExitedTrigger){var p; e=(p=E.slotIdExitedTrigger)!=null&&p.triggeringSlotId?new XC(Mk,E.slotIdExitedTrigger.triggeringSlotId,E.id):new n("Not able to create SkipRequestedTrigger")}else if(E.surveySubmittedTrigger){var x;e=(x=E.surveySubmittedTrigger)!=null&&x.triggeringLayoutId?new d$(Mk,E.surveySubmittedTrigger.triggeringLayoutId,E.id):new n("Not able to create SurveySubmittedTrigger")}else{if(E.mediaResumedTrigger)E=E.mediaResumedTrigger&&E.id?new BLe(E.id):new n("Not able to create MediaResumedTrigger");else{if(E.closeRequestedTrigger){var Q; e=(Q=E.closeRequestedTrigger)!=null&&Q.triggeringLayoutId?new hC(Mk,E.closeRequestedTrigger.triggeringLayoutId,E.id):new n("Not able to create CloseRequestedTrigger")}else if(E.slotIdScheduledTrigger){var W;e=(W=E.slotIdScheduledTrigger)!=null&&W.triggeringSlotId?new CG(Mk,E.slotIdScheduledTrigger.triggeringSlotId,E.id):new n("Not able to create SlotIdScheduledTrigger")}else{if(E.mediaTimeRangeTrigger){var B;k=Number((B=E.mediaTimeRangeTrigger)==null?void 0:B.offsetStartMilliseconds);var w;X=Number((w= E.mediaTimeRangeTrigger)==null?void 0:w.offsetEndMilliseconds);isFinite(k)&&isFinite(X)?(w=X,w===-1&&(w=l),l=k>w?new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:k,offsetEndMs:w},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",w===l&&k-500<=w):new wJ(k,w),E=l instanceof n?l:new s2(Mk,e,l,!1,E.id)):E=new n("Not able to create MediaTimeRangeTrigger")}else if(E.contentVideoIdEndedTrigger)E=E.contentVideoIdEndedTrigger?new M7(Mk,e,!1,E.id):new n("Not able to create ContentVideoIdEndedTrigger"); else{if(E.layoutIdEnteredTrigger){var U;e=(U=E.layoutIdEnteredTrigger)!=null&&U.triggeringLayoutId?new Zx(Mk,E.layoutIdEnteredTrigger.triggeringLayoutId,E.id):new n("Not able to create LayoutIdEnteredTrigger")}else if(E.timeRelativeToLayoutEnterTrigger){var c;e=(c=E.timeRelativeToLayoutEnterTrigger)!=null&&c.triggeringLayoutId?new G$(Mk,Number(E.timeRelativeToLayoutEnterTrigger.durationMs),E.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,E.id):new n("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(E.onDifferentLayoutIdEnteredTrigger){var V; e=(V=E.onDifferentLayoutIdEnteredTrigger)!=null&&V.triggeringLayoutId&&E.onDifferentLayoutIdEnteredTrigger.slotType&&E.onDifferentLayoutIdEnteredTrigger.layoutType?new q7(Mk,E.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,E.onDifferentLayoutIdEnteredTrigger.slotType,E.onDifferentLayoutIdEnteredTrigger.layoutType,E.id):new n("Not able to create CloseRequestedTrigger")}else{if(E.liveStreamBreakStartedTrigger)E=E.liveStreamBreakStartedTrigger&&E.id?new Ry(Mk,E.id):new n("Not able to create LiveStreamBreakStartedTrigger"); else if(E.liveStreamBreakEndedTrigger)E=E.liveStreamBreakEndedTrigger&&E.id?new gZ(Mk,E.id):new n("Not able to create LiveStreamBreakEndedTrigger");else{if(E.liveStreamBreakScheduledDurationMatchedTrigger){var F;e=(F=E.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&F.breakDurationMs?new Kh(Number(E.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,E.id):new n("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(E.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; e=(r=E.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new nh(Number(E.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,E.id):new n("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(E.newSlotScheduledWithBreakDurationTrigger){var P;e=(P=E.newSlotScheduledWithBreakDurationTrigger)!=null&&P.breakDurationMs?new tC(Number(E.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,E.id):new n("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else e= E.prefetchCacheExpiredTrigger?new kt(Mk,E.id):new n("Not able to convert an AdsControlflowTrigger.");E=e}e=E}E=e}e=E}E=e}e=E}E=e}e=E}E=e}e=E}E=e}return E}; Oi=function(E,e){e.T>=2&&(E.slot_pos=e.adPodIndex);E.autoplay="1"}; l$p=function(E,e,l,k,H,O,X,A){return e===null?new n("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:e,ActionCompanionAdRenderer:k}):[e6W(E,e,X,O,function(C){var p=C.slotId;C=A(C);var x=k.adLayoutLoggingData,Q=new Zq([new UW(k),new b5(H)]);p=Dj(l.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",p);var W={layoutId:p,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",O7:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",E7:new Map, layoutExitNormalTriggers:[new lv(l.T,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:Q,lY:C(W),adLayoutLoggingData:x}})]}; kre=function(E,e,l,k,H,O,X,A){return e===null?new n("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:e,TopBannerImageTextIconButtonedLayoutViewModel:k}):[e6W(E,e,X,O,function(C){var p=C.slotId;C=A(C);var x=k.adLayoutLoggingData,Q=new Zq([new JK(k),new b5(H)]);p=Dj(l.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",p);var W={layoutId:p,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",O7:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", E7:new Map,layoutExitNormalTriggers:[new lv(l.T,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:Q,lY:C(W),adLayoutLoggingData:x}})]}; u6l=function(E,e,l,k,H,O){if(!O)for(e=g.T(e),O=e.next();!O.done;O=e.next())O=O.value,XJ(E,O.renderer,O.config.adPlacementConfig.kind);E=Array.from(E.values()).filter(function(x){return Hvv(x)}); e=[];O=g.T(E);for(var X=O.next(),A={};!X.done;A={Ds:void 0},X=O.next()){A.Ds=X.value;X=g.T(A.Ds.Pw);for(var C=X.next(),p={};!C.done;p={d_:void 0},C=X.next())p.d_=C.value,C=function(x,Q){return function(W){return x.d_.gz(W,Q.Ds.instreamVideoAdRenderer.elementId,x.d_.Me)}}(p,A),p.d_.isContentVideoCompanion?e.push(OvX(l,k,H,A.Ds.instreamVideoAdRenderer.elementId,p.d_.associatedCompositePlayerBytesLayoutId,p.d_.adSlotLoggingData,C)):E.length>1?e.push(XxS(l,k,H,A.Ds.instreamVideoAdRenderer.elementId,p.d_.adSlotLoggingData, function(x,Q){return function(W){return x.d_.gz(W,Q.Ds.instreamVideoAdRenderer.elementId,x.d_.Me,x.d_.associatedCompositePlayerBytesLayoutId)}}(p,A))):e.push(XxS(l,k,H,A.Ds.instreamVideoAdRenderer.elementId,p.d_.adSlotLoggingData,C))}return e}; XJ=function(E,e,l){if(e=AP0(e)){e=g.T(e);for(var k=e.next();!k.done;k=e.next())if((k=k.value)&&k.externalVideoId){var H=uT(E,k.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=k,H.Hb=l)}else kd("InstreamVideoAdRenderer without externalVideoId")}}; AP0=function(E){var e=[],l=E.sandwichedLinearAdRenderer&&E.sandwichedLinearAdRenderer.linearAd&&g.M(E.sandwichedLinearAdRenderer.linearAd,D5);if(l)return e.push(l),e;if(E.instreamVideoAdRenderer)return e.push(E.instreamVideoAdRenderer),e;if(E.linearAdSequenceRenderer&&E.linearAdSequenceRenderer.linearAds){E=g.T(E.linearAdSequenceRenderer.linearAds);for(l=E.next();!l.done;l=E.next())l=l.value,g.M(l,D5)&&e.push(g.M(l,D5));return e}return null}; Hvv=function(E){if(E.instreamVideoAdRenderer===void 0)return kd("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var e=g.T(E.Pw),l=e.next();!l.done;l=e.next()){l=l.value;if(l.gz===void 0)return!1;if(l.Me===void 0)return kd("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(E.Hb===void 0||l.Bo===void 0||E.Hb!==l.Bo&&l.Bo!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(E.instreamVideoAdRenderer.elementId===void 0)return kd("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:E.Hb,"matching APSR kind":l.Bo}),!1}return!0}; uT=function(E,e){E.has(e)||E.set(e,{instreamVideoAdRenderer:void 0,Hb:void 0,adVideoId:e,Pw:[]});return E.get(e)}; AW=function(E,e,l,k,H,O,X,A,C){H?uT(E,H).Pw.push({LJM:e,Bo:l,isContentVideoCompanion:k,Me:X,associatedCompositePlayerBytesLayoutId:O,adSlotLoggingData:A,gz:C}):kd("Companion AdPlacementSupportedRenderer without adVideoId")}; C4=function(E){var e=0;E=g.T(E.questions);for(var l=E.next();!l.done;l=E.next())if(l=l.value,l=g.M(l,g$)||g.M(l,KG)){var k=void 0;e+=((k=l.surveyAdQuestionCommon)==null?void 0:k.durationMilliseconds)||0}return e}; p4=function(E){var e,l,k,H,O=((l=g.M((e=E.questions)==null?void 0:e[0],g$))==null?void 0:l.surveyAdQuestionCommon)||((H=g.M((k=E.questions)==null?void 0:k[0],KG))==null?void 0:H.surveyAdQuestionCommon),X;e=[].concat(g.Be(((X=E.playbackCommands)==null?void 0:X.instreamAdCompleteCommands)||[]),g.Be((O==null?void 0:O.timeoutCommands)||[]));var A,C,p,x,Q,W,B,w,U,c,V,F,r,P,N,R,K,XW,oZ,A7;return{impressionCommands:(A=E.playbackCommands)==null?void 0:A.impressionCommands,errorCommands:(C=E.playbackCommands)== null?void 0:C.errorCommands,muteCommands:(p=E.playbackCommands)==null?void 0:p.muteCommands,unmuteCommands:(x=E.playbackCommands)==null?void 0:x.unmuteCommands,pauseCommands:(Q=E.playbackCommands)==null?void 0:Q.pauseCommands,rewindCommands:(W=E.playbackCommands)==null?void 0:W.rewindCommands,resumeCommands:(B=E.playbackCommands)==null?void 0:B.resumeCommands,skipCommands:(w=E.playbackCommands)==null?void 0:w.skipCommands,progressCommands:(U=E.playbackCommands)==null?void 0:U.progressCommands,gZH:(c= E.playbackCommands)==null?void 0:c.clickthroughCommands,fullscreenCommands:(V=E.playbackCommands)==null?void 0:V.fullscreenCommands,activeViewViewableCommands:(F=E.playbackCommands)==null?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:(r=E.playbackCommands)==null?void 0:r.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(P=E.playbackCommands)==null?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(N=E.playbackCommands)== null?void 0:(R=N.activeViewTracking)==null?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(K=E.playbackCommands)==null?void 0:(XW=K.activeViewTracking)==null?void 0:XW.activeViewAudioMeasurableCommands,endFullscreenCommands:(oZ=E.playbackCommands)==null?void 0:oZ.endFullscreenCommands,abandonCommands:(A7=E.playbackCommands)==null?void 0:A7.abandonCommands,completeCommands:e}}; pxW=function(E,e,l,k,H,O,X){return function(A,C){return C1e(E,C.slotId,A,O,function(p,x){var Q=C.layoutId;p=X(p);return xo(e,Q,x,H,p,"LAYOUT_TYPE_SURVEY",[new tK(l),k],l.adLayoutLoggingData)})}}; WNp=function(E,e,l,k,H,O,X){if(!xLS(E))return new n("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:E});var A=E.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Q_v(O,e,l,k,function(C){var p=C.slotId;C=X(C);p=Dj(H.G.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",p);var x={layoutId:p,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",O7:"core"},Q=new mZ(H.T,k);return{layoutId:p,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",E7:new Map,layoutExitNormalTriggers:[Q], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([new qp(A)]),lY:C(x)}})]}; xLS=function(E){E=g.M(E==null?void 0:E.additionalPlayerOverlay,Bf0);if(!E)return!1;var e=E.slidingMessages;return E.title&&e&&e.length!==0?!0:!1}; wxe=function(E,e,l,k,H){var O;if((O=E.playerOverlay)==null||!O.instreamSurveyAdRenderer)return function(){return[]}; if(!h0e(E))return function(){return new n("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:E})}; var X=E.playerOverlay.instreamSurveyAdRenderer,A=C4(X);return A<=0?function(){return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:X})}:function(C,p){var x=oD7(C,l,k,function(Q){var W=Q.slotId; Q=p(Q);var B=p4(X);W=Dj(H.G.get(),"LAYOUT_TYPE_SURVEY",W);var w={layoutId:W,layoutType:"LAYOUT_TYPE_SURVEY",O7:"core"},U=new mZ(H.T,k),c=new HF(H.T,W),V=new d$(H.T,W),F=new duX(H.T);return{layoutId:W,layoutType:"LAYOUT_TYPE_SURVEY",E7:new Map,layoutExitNormalTriggers:[U,F],layoutExitSkipTriggers:[c],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[V],Ws:[],O7:"core",clientMetadata:new Zq([new sW(X),new b5(e),new c9(A/1E3),new FL(B)]),lY:Q(w),adLayoutLoggingData:X.adLayoutLoggingData}}); C=WNp(E,l,x.slotId,k,H,C,p);return C instanceof n?C:[x].concat(g.Be(C))}}; UL0=function(E,e,l,k,H,O,X){X=X===void 0?!1:X;var A=[];try{var C=[];if(l.renderer.linearAdSequenceRenderer)var p=function(U){U=z69(U.slotId,l,e,H(U),k,O,X);C=U.u_g;return U.M1}; else if(l.renderer.instreamVideoAdRenderer)p=function(U){var c=U.slotId;U=H(U);var V=X,F=l.config.adPlacementConfig,r=dL7(F),P=r.vC,N=r.d8;r=l.renderer.instreamVideoAdRenderer;var R;if(r==null?0:(R=r.playerOverlay)==null?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=Qk(r,V);R=Math.min(P+K.videoLengthSeconds*1E3,N);V=new ay(0,[K.videoLengthSeconds]);N=K.videoLengthSeconds;var XW=K.playerVars,oZ=K.instreamAdPlayerOverlayRenderer,A7=K.playerOverlayLayoutRenderer, CS=K.adVideoId,ep=Grv(l),IZ=K.E7;K=K.qy;var nS=r==null?void 0:r.adLayoutLoggingData;r=r==null?void 0:r.sodarExtensionData;c=Dj(e.G.get(),"LAYOUT_TYPE_MEDIA",c);var E6={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",O7:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",E7:IZ,layoutExitNormalTriggers:[new gZ(e.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([new Mp(k),new pj(N),new xi(XW),new B9(P),new o2(R),oZ&& new Np(oZ),A7&&new Zc(A7),new b5(F),new hK(CS),new vL(V),new Ta(ep),r&&new W9(r),new OC({current:null}),new za({}),new S_(K)].filter(TfZ)),lY:U(E6),adLayoutLoggingData:nS}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var x=ivv(E,k,l.adSlotLoggingData,p);A.push(x);for(var Q=g.T(C),W=Q.next();!W.done;W=Q.next()){var B=W.value,w=B(E,H);if(w instanceof n)return w;A.push.apply(A,g.Be(w))}}catch(U){return new n(U,{errorMessage:U.message,AdPlacementRenderer:l,numberOfSurveyRenderers:$LZ(l)})}return A}; $LZ=function(E){E=(E.renderer.linearAdSequenceRenderer||{}).linearAds;return E!=null&&E.length?E.filter(function(e){var l,k;return((l=g.M(e,D5))==null?void 0:(k=l.playerOverlay)==null?void 0:k.instreamSurveyAdRenderer)!=null}).length:0}; z69=function(E,e,l,k,H,O,X){var A=e.config.adPlacementConfig,C=dL7(A),p=C.vC,x=C.d8;C=(e.renderer.linearAdSequenceRenderer||{}).linearAds;if(C==null||!C.length)throw new TypeError("Expected linear ads");var Q=[],W={S2:p,a$:0,hKH:Q};C=C.map(function(w){return JPy(E,w,W,l,k,A,H,x,X)}).map(function(w,U){U=new ay(U,Q); return w(U)}); var B=C.map(function(w){return w.PA}); return{M1:cP7(l,E,p,B,A,Grv(e),k,x,O),u_g:C.map(function(w){return w.Q3M})}}; JPy=function(E,e,l,k,H,O,X,A,C){var p=Qk(g.M(e,D5),C),x=l.S2,Q=l.a$,W=Math.min(x+p.videoLengthSeconds*1E3,A);l.S2=W;l.a$++;l.hKH.push(p.videoLengthSeconds);var B,w,U=(B=g.M(e,D5))==null?void 0:(w=B.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer;if(p.adVideoId==="nPpU29QrbiU"&&U==null)throw new TypeError("Survey slate media has no survey overlay");return function(c){Oi(p.playerVars,c);var V,F,r=p.videoLengthSeconds,P=p.playerVars,N=p.E7,R=p.qy,K=p.instreamAdPlayerOverlayRenderer,XW=p.playerOverlayLayoutRenderer, oZ=p.adVideoId,A7=(V=g.M(e,D5))==null?void 0:V.adLayoutLoggingData;V=(F=g.M(e,D5))==null?void 0:F.sodarExtensionData;F=Dj(k.G.get(),"LAYOUT_TYPE_MEDIA",E);var CS={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",O7:"adapter"};c={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",E7:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"adapter",clientMetadata:new Zq([new Mp(X),new pj(r),new xi(P),new B9(x),new o2(W),new wQ(Q),new OC({current:null}), K&&new Np(K),XW&&new Zc(XW),new b5(O),new hK(oZ),new vL(c),V&&new W9(V),U&&new Vg(U),new za({}),new S_(R)].filter(TfZ)),lY:H(CS),adLayoutLoggingData:A7};r=wxe(g.M(e,D5),O,X,c.layoutId,k);return{PA:c,Q3M:r}}}; Qk=function(E,e){if(!E)throw new TypeError("Expected instream video ad renderer");if(!E.playerVars)throw new TypeError("Expected player vars in url encoded string");var l=KF(E.playerVars),k=Number(l.length_seconds);if(isNaN(k))throw new TypeError("Expected valid length seconds in player vars");var H=Number(E.trimmedMaxNonSkippableAdDurationMs);k=isNaN(H)?k:Math.min(k,H/1E3);H=E.playerOverlay||{};H=H.instreamAdPlayerOverlayRenderer===void 0?null:H.instreamAdPlayerOverlayRenderer;var O=E.playerOverlay|| {};O=O.playerOverlayLayoutRenderer===void 0?null:O.playerOverlayLayoutRenderer;var X=l.video_id;X||(X=(X=E.externalVideoId)?X:void 0);if(!X)throw new TypeError("Expected valid video id in IVAR");if(e&&k===0){var A;e=(A=yPX[X])!=null?A:k}else e=k;return{playerVars:l,videoLengthSeconds:e,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:O,adVideoId:X,E7:E.pings?pr(E.pings):new Map,qy:Cr(E.pings)}}; Grv=function(E){E=Number(E.driftRecoveryMs);return isNaN(E)||E<=0?null:E}; dL7=function(E){var e=E.adTimeOffset||{};E=e.offsetEndMilliseconds;e=Number(e.offsetStartMilliseconds);if(isNaN(e))throw new TypeError("Expected valid start offset");E=Number(E);if(isNaN(E))throw new TypeError("Expected valid end offset");return{vC:e,d8:E}}; j_p=function(E){var e,l=(e=Yi(E.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:e.current;if(!l)return null;e=Yi(E.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var k=E.layoutId,H=Yi(E.clientMetadata,"metadata_type_content_cpn"),O=Yi(E.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=Yi(E.clientMetadata,"metadata_type_player_underlay_renderer"),A=Yi(E.clientMetadata,"metadata_type_ad_placement_config"),C=Yi(E.clientMetadata,"metadata_type_video_length_seconds"); var p=Lj(E.clientMetadata,"metadata_type_layout_enter_ms")&&Lj(E.clientMetadata,"metadata_type_layout_exit_ms")?(Yi(E.clientMetadata,"metadata_type_layout_exit_ms")-Yi(E.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Le:k,contentCpn:H,YR:l,Ne:e,instreamAdPlayerOverlayRenderer:O,instreamAdPlayerUnderlayRenderer:X,adPlacementConfig:A,videoLengthSeconds:C,wL:p,inPlayerLayoutId:Yi(E.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yi(E.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; f$8=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w){k=EU(k,"SLOT_TYPE_PLAYER_BYTES");E=I$9(H,E,X,l,k,C,p);if(E instanceof n)return E;var U;p=(U=Yi(E.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:U.layoutId;if(!p)return new n("Invalid adNotify layout");e=FNX(p,H,O,l,A,e,C,x,Q,W,B,w,X);return e instanceof n?e:[E].concat(g.Be(e))}; FNX=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){l=VVW(e,l,k,O,X,A,C,p,x,Q,W);if(l instanceof n)return l;E=SPy(e,E,X,H,l);return E instanceof n?E:[].concat(g.Be(E.sJ),[E.WE])}; DL7=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B){e=VVW(E,e,l,H,O,A,C,p,x,Q,W,B);if(e instanceof n)return e;E=rPW(E,l,O,X,k,A.sK,e);return E instanceof n?E:E.sJ.concat(E.WE)}; VVW=function(E,e,l,k,H,O,X,A,C,p,x,Q){var W=WH(k,l,p);return W instanceof Nk?new n(W):p.U.Y().experiments.P5("html5_refactor_in_player_slot_generation")?function(B){var w=new ay(0,[W.Xj]);B=bvX(e,W.layoutId,W.mJ,l,BH(W.playerVars,W.kx,O,C,w),W.Xj,H,w,X(B),A.get(W.mJ.externalVideoId),Q);w=[];if(W.mJ.playerOverlay.instreamAdPlayerOverlayRenderer){var U=j_p(B);if(!U)return kd("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,B),{layout:B,sJ:[]}; w=[vDv(E,U.contentCpn,U.Le,function(V){return og(e,V.slotId,"core",U,sC(x,V))},U.inPlayerSlotId)].concat(g.Be(w)); if(U.instreamAdPlayerUnderlayRenderer&&wM(p)){var c=U.instreamAdPlayerUnderlayRenderer;w=[P1X(E,U.contentCpn,U.Le,function(V){return a$W(e,V.slotId,c,U.adPlacementConfig,U.Le,sC(x,V))})].concat(g.Be(w))}}return{layout:B, sJ:w}}:function(B){var w=new ay(0,[W.Xj]); return{layout:bvX(e,W.layoutId,W.mJ,l,BH(W.playerVars,W.kx,O,C,w),W.Xj,H,w,X(B),A.get(W.mJ.externalVideoId),Q),sJ:[]}}}; WH=function(E,e,l){if(!E.playerVars)return new Nk("No playerVars available in InstreamVideoAdRenderer.");var k,H;if(E.elementId==null||E.playerVars==null||E.playerOverlay==null||((k=E.playerOverlay)==null?void 0:k.instreamAdPlayerOverlayRenderer)==null&&((H=E.playerOverlay)==null?void 0:H.playerOverlayLayoutRenderer)==null||E.pings==null||E.externalVideoId==null)return new Nk("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:E});k=KF(E.playerVars);H=Number(k.length_seconds); isNaN(H)&&(H=0,kd("Expected valid length seconds in player vars but got NaN"));if(l.Xr(e.kind==="AD_PLACEMENT_KIND_START")){if(E.layoutId===void 0)return new Nk("Expected server generated layout ID in instreamVideoAdRenderer");e=E.layoutId}else e=E.elementId;return{layoutId:e,mJ:E,playerVars:k,kx:E.playerVars,Xj:H}}; BH=function(E,e,l,k,H){E.iv_load_policy=k;e=KF(e);if(e.cta_conversion_urls)try{E.cta_conversion_urls=JSON.parse(e.cta_conversion_urls)}catch(O){kd(O)}l.mY&&(E.ctrl=l.mY);l.bV&&(E.ytr=l.bV);l.e0&&(E.ytrcc=l.e0);l.isMdxPlayback&&(E.mdx="1");E.vvt&&(E.vss_credentials_token=E.vvt,l.gJ&&(E.vss_credentials_token_type=l.gJ),l.mdxEnvironment&&(E.mdx_environment=l.mdxEnvironment));Oi(E,H);return E}; LNZ=function(E){var e=new Map;E=g.T(E);for(var l=E.next();!l.done;l=E.next())(l=l.value.renderer.remoteSlotsRenderer)&&l.hostElementId&&e.set(l.hostElementId,l);return e}; z2=function(E){return E.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; h6X=function(E){return E!=null}; KNS=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w){for(var U=[],c=g.T(E),V=c.next();!V.done;V=c.next())if(V=V.value,!SX9(V)&&!Pnv(V)){var F=z2(V)&&!!V.slotEntryTrigger.beforeContentVideoIdStartedTrigger,r=C.Xr(F),P=MVW(V,p,k,l.Pq,r);if(P instanceof n)return P;var N=void 0,R={slotId:V.adSlotMetadata.slotId,slotType:V.adSlotMetadata.slotType,slotPhysicalPosition:(N=V.adSlotMetadata.slotPhysicalPosition)!=null?N:1,O7:"core",slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers, slotExpirationTriggers:P.slotExpirationTriggers},K=g.M(V.fulfillmentContent.fulfilledLayout,LG);if(K){if(!aP(K))return new n("Invalid PlayerBytesAdLayoutRenderer");N=Q&&!(z2(V)&&V.slotEntryTrigger.beforeContentVideoIdStartedTrigger);P=P.slotFulfillmentTriggers.some(function(XW){return XW instanceof Kh}); r=N?Nf7(R,V.adSlotMetadata.triggerEvent,K,l,k,O,p,E,r,W,P,B):ZvW(R,V.adSlotMetadata.triggerEvent,K,e,l,k,H,O,X,A,C,p,E,x,r,V.adSlotMetadata.triggeringSourceLayoutId);if(r instanceof n)return r;P=[];w?P.push(new Cj({current:w})):P.push(new Cj({current:null}));z2(V)&&P.push(new P9({B3:z2(V)&&!!V.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));N&&P.push(new za({}));l.sK&&P.push(new fj({}));P.push(new bL(F));V=Object.assign({},R,{clientMetadata:new Zq(P),fulfilledLayout:r.layout,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData}); U.push.apply(U,g.Be(r.sJ));U.push(V)}else if(F=g.M(V.fulfillmentContent.fulfilledLayout,Yt)){if(!VaX(F))return new n("Invalid PlayerUnderlayAdLayoutRenderer");F=YPy(F,k,l.Pq,O,R,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof n)return F;V=Object.assign({},R,{clientMetadata:new Zq([]),fulfilledLayout:F,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});U.push(V)}else if(F=g.M(V.fulfillmentContent.fulfilledLayout,DuW)){if(!$uW(F))return new n("Invalid AboveFeedAdLayoutRenderer"); F=mL0(F,k,l.Pq,O,R,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof n)return F;V=Object.assign({},R,{clientMetadata:new Zq([]),fulfilledLayout:F,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});U.push(V)}else if(F=g.M(V.fulfillmentContent.fulfilledLayout,bdX)){if(!iv(F.adLayoutMetadata)||!g.M(F.renderingContent,$t))return new n("Invalid BelowPlayerAdLayoutRenderer");F=mL0(F,k,l.Pq,O,R,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId); if(F instanceof n)return F;V=Object.assign({},R,{clientMetadata:new Zq([]),fulfilledLayout:F,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});U.push(V)}else if(F=g.M(V.fulfillmentContent.fulfilledLayout,m1)){if(!MJ(F))return new n("Invalid PlayerBytesSequenceItemAdLayoutRenderer");F=gDX(F,k,l.Pq,O,R,V.adSlotMetadata.triggerEvent);if(F instanceof n)return F;V=Object.assign({},R,{clientMetadata:new Zq([]),fulfilledLayout:F,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});U.push(V)}else return new n("Unable to retrieve a client slot ["+ R.slotType+"] from a given AdSlotRenderer")}return U}; gDX=function(E,e,l,k,H,O){var X={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,O7:"core"};e=dM(E,e,l);return e instanceof n?e:(l=g.M(E.renderingContent,hS))&&l.pings?Object.assign({},X,{renderingContent:E.renderingContent,E7:pr(l.pings)},e,{lY:sC(k,H)(X),clientMetadata:new Zq([new b5(G2(O))]),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData}):new n("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; mL0=function(E,e,l,k,H,O,X){var A={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,O7:"core"};e=dM(E,e,l);if(e instanceof n)return e;l=[];l.push(new b5(G2(O)));O==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&X!==void 0&&l.push(new EC(X));return Object.assign({},A,{renderingContent:E.renderingContent,E7:new Map([["impression",nDX(E)]])},e,{lY:sC(k,H)(A),clientMetadata:new Zq(l),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData})}; YPy=function(E,e,l,k,H,O,X){if(E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(X=g.M(E.renderingContent,NJ))if(X=g.M(X.sidePanel,FpW)){var A={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,O7:"core"};e=dM(E,e,l);E=e instanceof n?e:Object.assign({},A,{renderingContent:E.renderingContent,E7:new Map([["impression",X.impressionPings||[]],["resume",X.resumePings||[]]])},e,{lY:sC(k,H)(A),clientMetadata:new Zq([new b5(G2(O))]),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData})}else E= new n("DismissablePanelTextPortraitImageRenderer is missing");else E=new n("SqueezebackPlayerSidePanelRenderer is missing");else E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.M(E.renderingContent,yl7)?(X={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,O7:"core"},e=dM(E,e,l),E=e instanceof n?e:Object.assign({},X,{renderingContent:E.renderingContent,E7:new Map},e,{lY:sC(k,H)(X),clientMetadata:new Zq([new b5(G2(O))]),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData})): E=new n("CounterfactualRenderer is missing"):E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?E=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?E=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.M(E.renderingContent,Z5)?(O={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType, O7:"core"},e=dM(E,e,l),E=e instanceof n?e:X?Object.assign({},O,{renderingContent:E.renderingContent,E7:new Map},e,{lY:sC(k,H)(O),clientMetadata:new Zq([new EC(X)]),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData}):new n("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):E=new n("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):E.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.M(E.renderingContent,j6X)? (O={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,O7:"core"},e=dM(E,e,l),E=e instanceof n?e:Object.assign({},O,{renderingContent:E.renderingContent,E7:new Map([])},e,{lY:sC(k,H)(O),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Zq([])})):E=new n("AdsEngagementPanelSectionListViewModel is missing"):E=new n("LayoutType ["+E.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return E}; Nf7=function(E,e,l,k,H,O,X,A,C,p,x,Q){if((Q==null?void 0:Q.YC)===void 0||(Q==null?void 0:Q.DN)===void 0)return new n("Cached ad break range from cue point is missing");var W=dM(l,H,k.Pq);if(W instanceof n)return W;W={layoutExitMuteTriggers:[],layoutExitNormalTriggers:W.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Ws:[],layoutExitUserInputSubmittedTriggers:[]};if(g.M(l.renderingContent,D5))return E=R6X(E,e,l,W,H,O,A,C,k.Pq,X,Q.YC,Q.DN),E instanceof n?E:E.Jf===void 0?new n("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:E.layout,sJ:[E.Jf]};var B=g.M(l.renderingContent,Sr);if(B){if(!iv(l.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!r$(B))return new n("Invalid sequential layout");B=B.sequentialLayouts.map(function(w){return w.playerBytesAdLayoutRenderer}); E=s_0(E,e,l,W,B,H,k,O,X,C,A,p,Q.YC,Q.DN,x);return E instanceof n?E:{layout:E.eq,sJ:E.sJ}}return new n("Not able to convert a sequential layout")}; s_0=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w){var U=tVy(H,W,B);if(U instanceof n)return U;var c=[],V=[];U=g.T(U);for(var F=U.next();!F.done;F=U.next()){var r=F.value;F=E;var P=H[r.a$],N=r,R=e;r=O;var K=X,XW=A,oZ=C,A7=p,CS=x,ep=T2(P);if(ep instanceof n)F=ep;else{var IZ={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,O7:"adapter"};N=qPW(R,P,N,r);N instanceof n?F=N:(F=Object.assign({},IZ,iT,{E7:ep,renderingContent:P.renderingContent,clientMetadata:new Zq(N),lY:sC(XW,F)(IZ), adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData}),F=(P=$o(CS,F,r,K.Pq,XW,oZ,A7,void 0,!0))?P instanceof n?P:{layout:F,Jf:P}:new n("Expecting associatedInPlayerSlot"))}if(F instanceof n)return F;c.push(F.layout);V.push(F.Jf)}H={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,O7:"core"};e=[new Ta(Number(l.driftRecoveryMs)),new B9(W),new o2(B),new b5(G2(e)),new Dq(Q),new za({})];w&&e.push(new a2({}));return{eq:Object.assign({},H,k,{bj:c,E7:new Map,clientMetadata:new Zq(e), lY:sC(A,E)(H)}),sJ:V}}; R6X=function(E,e,l,k,H,O,X,A,C,p,x,Q){if(!aP(l))return new n("Invalid PlayerBytesAdLayoutRenderer");var W=T2(l);if(W instanceof n)return W;var B={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,O7:"core"},w=g.M(l.renderingContent,D5);if(!w)return new n("Invalid rendering content for DAI media layout");w=Qk(w,!1);x={iB:w,a$:0,S2:x,Gm:Math.min(x+w.videoLengthSeconds*1E3,Q),SC:new ay(0,[w.videoLengthSeconds])};var U;Q=(U=Number(l.driftRecoveryMs))!=null?U:void 0;e=qPW(e, l,x,H,Q);if(e instanceof n)return e;E=Object.assign({},B,k,{E7:W,renderingContent:l.renderingContent,clientMetadata:new Zq(e),lY:sC(O,E)(B),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return(H=$o(X,E,H,C,O,p,A,void 0,!0))?H instanceof n?H:{layout:E,Jf:H}:new n("Expecting associatedInPlayerSlot")}; ZvW=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U){var c=dM(l,O,H.Pq);if(c instanceof n)return c;if(g.M(l.renderingContent,D5)){C=Eg7([l],H,C);if(C instanceof n)return C;if(C.length!==1)return new n("Only expected one media layout.");E=eRe(E,e,l,c,C[0],void 0,"core",k,O,X,A,p,W,B,w,H.Pq,Q,void 0,U);return E instanceof n?E:{layout:E.layout,sJ:E.Jf?[E.Jf]:[]}}var V=g.M(l.renderingContent,Sr);if(V){if(!iv(l.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!r$(V))return new n("Invalid sequential layout"); V=V.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); E=lc8(E,e,l.adLayoutMetadata,c,V,k,O,H,C,X,A,p,x,Q,w,W,B,U);return E instanceof n?E:{layout:E.eq,sJ:E.sJ}}return new n("Not able to convert a sequential layout")}; lc8=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V){var F=new L8({current:null}),r=Eg7(H,A,C);if(r instanceof n)return r;C=[];for(var P=[],N=void 0,R=0;R0&&(R.push(V),R.push(new ap(N.adPodSkipTarget)));(O=p.get(N.externalVideoId))&&R.push(new JJ(O));O=R}else O=new n("Invalid vod media renderer")}if(O instanceof n)return O;E=Object.assign({},X,k,{E7:r,renderingContent:l.renderingContent,clientMetadata:new Zq(O),lY:sC(x,E)(X),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});l=g.M(l.renderingContent,D5);if(!l||!Vt(l))return new n("Invalid meida renderer");Q=uT(Q,l.externalVideoId);Q.instreamVideoAdRenderer=l;Q.Hb="AD_PLACEMENT_KIND_START";return B?(C=$o(W,E,C,U,x,c,w,V,!1),C instanceof n?C:O8y(E.layoutId,W)&&C?{layout:Object.assign({},E,{clientMetadata:new Zq(O.concat(new gK(C)))})}:{layout:E,Jf:C}): {layout:E}}; kOW=function(E,e,l,k,H){if(!aP(e))return new n("Invalid PlayerBytesAdLayoutRenderer");var O=g.M(e.renderingContent,g0);if(!O||O.durationMilliseconds===void 0)return new n("Invalid endcap renderer");var X={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,O7:"adapter"};k=[new yg(O.durationMilliseconds),new FL({impressionCommands:void 0,abandonCommands:O.abandonCommands?[{commandExecutorCommand:O.abandonCommands}]:void 0,completeCommands:O.completionCommands}),new b5(k), new lL("LAYOUT_TYPE_ENDCAP")];if(H){k.push(new PL(H.SC.adPodIndex-1));k.push(new wQ(H.SC.adPodIndex));var A;k.push(new ap((A=H.adPodSkipTarget)!=null?A:-1))}return Object.assign({},X,iT,{renderingContent:e.renderingContent,clientMetadata:new Zq(k),E7:O.skipPings?new Map([["skip",O.skipPings]]):new Map,lY:sC(l,E)(X),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}; $o=function(E,e,l,k,H,O,X,A,C){E=E.filter(function(Q){return Q.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Q.adSlotMetadata.triggeringSourceLayoutId===e.layoutId}); if(E.length!==0){if(E.length!==1)return new n("Invalid InPlayer slot association for the given PlayerBytes layout");E=E[0];X=MVW(E,O,l,k,X);if(X instanceof n)return X;var p;O={slotId:E.adSlotMetadata.slotId,slotType:E.adSlotMetadata.slotType,slotPhysicalPosition:(p=E.adSlotMetadata.slotPhysicalPosition)!=null?p:1,O7:"core",slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:X.slotExpirationTriggers};p=g.M(E.fulfillmentContent.fulfilledLayout, rl0);if(!p||!clX(p))return new n("Invalid InPlayerAdLayoutRenderer");X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,O7:"core"};l=dM(p,l,k);if(l instanceof n)return l;k=[];var x=p.adLayoutMetadata.layoutType;C&&k.push(new za({}));if(x==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")k.push.apply(k,g.Be(XLl(E.adSlotMetadata.triggerEvent,e)));else if(x==="LAYOUT_TYPE_ENDCAP"||x==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){k.push(new b5(G2(E.adSlotMetadata.triggerEvent))); if(x==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new n("Cannot parse endcap layout since AdUxReadyApi is not provided");A&&k.push(A)}else return new n("Not able to parse an SDF InPlayer layout");H=Object.assign({},X,l,{renderingContent:p.renderingContent,E7:new Map,lY:sC(H,O)(X),clientMetadata:new Zq(k),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},O,{fulfilledLayout:H,clientMetadata:new Zq([])})}}; XLl=function(E,e){var l=[];l.push(new b5(G2(E)));l.push(new EC(e.layoutId));(E=Yi(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&l.push(new OC(E));(E=Yi(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&l.push(new L8(E));(E=Yi(e.clientMetadata,"metadata_type_remote_slots_data"))&&l.push(new JJ(E));(E=Yi(e.clientMetadata,"metadata_type_ad_next_params"))&&l.push(new jl(E));(E=Yi(e.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&l.push(new Ip(E));(E= Yi(e.clientMetadata,"metadata_type_ad_pod_info"))&&l.push(new vL(E));(e=Yi(e.clientMetadata,"metadata_type_ad_video_id"))&&l.push(new hK(e));return l}; H88=function(E,e,l,k,H,O){function X(p){return Ui(e,p)} var A=k.We.inPlayerSlotId,C={layoutId:k.We.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",O7:"core"};l={slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:new Zx(X,E),slotFulfillmentTriggers:[new Oa(X,A)],slotExpirationTriggers:[new XC(X,A),new lv(X,l)]};E=Object.assign({},C,{layoutExitNormalTriggers:[new mZ(X,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],E7:new Map,clientMetadata:new Zq([new n8(k.We), new b5(k.adPlacementConfig),H]),lY:sC(O,l)(C),adLayoutLoggingData:k.We.adLayoutLoggingData});return Object.assign({},l,{clientMetadata:new Zq([new iL(E)])})}; O8y=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var k=g.M(l.fulfillmentContent.fulfilledLayout,Yt);if(k&&(k=g.M(k.renderingContent,NJ))&&k.associatedPlayerBytesLayoutId===E)return l}}; MVW=function(E,e,l,k,H){var O=uN7(HH(E.slotEntryTrigger,l,k),H,E,e);if(O instanceof n)return O;for(var X=[],A=g.T(E.slotFulfillmentTriggers),C=A.next();!C.done;C=A.next()){C=HH(C.value,l,k);if(C instanceof n)return C;X.push(C)}X=AK8(X,H,E,e);e=[];E=g.T(E.slotExpirationTriggers);for(H=E.next();!H.done;H=E.next()){H=HH(H.value,l,k);if(H instanceof n)return H;e.push(H)}return{slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:e}}; uN7=function(E,e,l,k){return e&&l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&E instanceof Lh?new PE(function(H){return Ui(k,H)},l.adSlotMetadata.slotId):E}; AK8=function(E,e,l,k){return e&&l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?E.map(function(H){return H instanceof Oa?new CG(function(O){return Ui(k,O)},l.adSlotMetadata.slotId):H}):E}; dM=function(E,e,l){for(var k=[],H=g.T(E.layoutExitNormalTriggers||[]),O=H.next();!O.done;O=H.next()){O=HH(O.value,e,l);if(O instanceof n)return O;k.push(O)}H=[];O=g.T(E.layoutExitSkipTriggers||[]);for(var X=O.next();!X.done;X=O.next()){X=HH(X.value,e,l);if(X instanceof n)return X;H.push(X)}O=[];X=g.T(E.layoutExitMuteTriggers||[]);for(var A=X.next();!A.done;A=X.next()){A=HH(A.value,e,l);if(A instanceof n)return A;O.push(A)}X=[];E=g.T(E.layoutExitUserInputSubmittedTriggers||[]);for(A=E.next();!A.done;A= E.next()){A=HH(A.value,e,l);if(A instanceof n)return A;X.push(A)}return{layoutExitNormalTriggers:k,layoutExitSkipTriggers:H,layoutExitMuteTriggers:O,layoutExitUserInputSubmittedTriggers:X,Ws:[]}}; T2=function(E){var e=g.M(E.renderingContent,D5);if(e==null?0:e.pings)return pr(e.pings);E=g.M(E.renderingContent,g0);return(E==null?0:E.skipPings)?new Map([["skip",E.skipPings]]):new Map}; qPW=function(E,e,l,k,H){e=g.M(e.renderingContent,D5);if(!e)return new n("Invalid rendering content for DAI media layout");E=[new Mp(k),new pj(l.iB.videoLengthSeconds),new xi(l.iB.playerVars),new B9(l.S2),new o2(l.Gm),new wQ(l.a$),new b5(G2(E)),new hK(l.iB.adVideoId),new vL(l.SC),e.sodarExtensionData&&new W9(e.sodarExtensionData),new OC({current:null}),new za({}),new S_(Cr(e.pings))].filter(h6X);H!==void 0&&E.push(new Ta(H));return E}; tVy=function(E,e,l){E=E.map(function(C){return Qk(g.M(C.renderingContent,D5),!1)}); var k=E.map(function(C){return C.videoLengthSeconds}),H=k.map(function(C,p){return new ay(p,k)}),O=e,X=l,A=[]; E.forEach(function(C,p){X=Math.min(O+C.videoLengthSeconds*1E3,l);Oi(C.playerVars,H[p]);A.push({iB:C,S2:O,Gm:X,a$:p,SC:H[p]});O=X}); return A}; Eg7=function(E,e,l){for(var k=[],H=g.T(E),O=H.next();!O.done;O=H.next())if(O=g.M(O.value.renderingContent,D5)){if(!Vt(O))return new n("Invalid vod media renderer");k.push(C58(O))}H=k.map(function(Q){return Q.Xj}); O=[];for(var X=0,A=0;A0?A7:-1;else if(IZ= g.M(ep,g0)){ep=TK9(E,e,l,IZ,O,U,A,K,A7);if(ep instanceof n){B=ep;break a}ep=ep(W);c.push(ep.F_);V=[].concat(g.Be(ep.n9),g.Be(V));F=[].concat(g.Be(ep.IF),g.Be(F));ep.Jf&&(oZ=[ep.Jf].concat(g.Be(oZ)))}else if(IZ=g.M(ep,vF)){if(B===void 0){B=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:IZ});break a}ep=Upe(E,e,l,O,IZ,R,A,B,U,rY(x,"supports_multi_step_on_desktop"));if(ep instanceof n){B=ep;break a}ep=ep(W);c.push(ep.F_);ep.Jf&&oZ.push(ep.Jf); V=[].concat(g.Be(ep.n9),g.Be(V));F=[].concat(g.Be(ep.IF),g.Be(F));r=[].concat(g.Be(ep.vY),g.Be(r));P=[].concat(g.Be(ep.KB),g.Be(P));N=[R].concat(g.Be(N))}else if(ep=g.M(ep,PF)){ep=JKX(E,e,l,O,ep,R,A,U);if(ep instanceof n){B=ep;break a}ep=ep(W);c.push(ep.F_);ep.Jf&&oZ.push(ep.Jf);F=[].concat(g.Be(ep.IF),g.Be(F))}else{B=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}B={bj:c,layoutExitSkipTriggers:V,layoutExitUserInputSubmittedTriggers:r,Ws:P,layoutExitMuteTriggers:F,DD:N,sJ:oZ}}}else a:if(U= SWW(k,l,x),U instanceof n)B=U;else{c=0;V=[];F=[];r=[];P=[];N=[];R=[];K=new XL({current:null});XW=new L8({current:null});oZ=!1;CS=[];A7=-1;w=g.T(k);for(ep=w.next();!ep.done;ep=w.next())if(ep=ep.value,g.M(ep,bv)){ep=i8p(e,l,g.M(ep,bv),A);if(ep instanceof n){B=ep;break a}ep=ep(W);V.push(ep.F_);F=[].concat(g.Be(ep.n9),g.Be(F));r=[].concat(g.Be(ep.IF),g.Be(r));ep.Jf&&(CS=[ep.Jf].concat(g.Be(CS)))}else if(g.M(ep,D5)){A7=WH(g.M(ep,D5),l,x);if(A7 instanceof Nk){B=new n(A7);break a}ep=new ay(c,U);ep=rK8(e, A7.layoutId,A7.mJ,l,BH(A7.playerVars,A7.kx,X,p,ep),A7.Xj,O,ep,A(W),XW,C.get(A7.mJ.externalVideoId),void 0,Q);c++;V.push(ep.F_);F=[].concat(g.Be(ep.n9),g.Be(F));r=[].concat(g.Be(ep.IF),g.Be(r));oZ||(R.push(XW),oZ=!0);A7=(A7=A7.mJ.adPodSkipTarget)&&A7>0?A7:-1}else if(g.M(ep,g0)){ep=TK9(E,e,l,g.M(ep,g0),O,c,A,XW,A7);if(ep instanceof n){B=ep;break a}ep=ep(W);V.push(ep.F_);F=[].concat(g.Be(ep.n9),g.Be(F));r=[].concat(g.Be(ep.IF),g.Be(r));ep.Jf&&(CS=[ep.Jf].concat(g.Be(CS)))}else if(g.M(ep,vF)){if(B=== void 0){B=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.M(ep,vF)});break a}ep=Upe(E,e,l,O,g.M(ep,vF),K,A,B,c,rY(x,"supports_multi_step_on_desktop"));if(ep instanceof n){B=ep;break a}ep=ep(W);V.push(ep.F_);ep.Jf&&CS.push(ep.Jf);F=[].concat(g.Be(ep.n9),g.Be(F));r=[].concat(g.Be(ep.IF),g.Be(r));P=[].concat(g.Be(ep.vY),g.Be(P));N=[].concat(g.Be(ep.KB),g.Be(N));R=[K].concat(g.Be(R))}else if(g.M(ep,PF)){ep=JKX(E,e,l,O,g.M(ep,PF),K,A,c);if(ep instanceof n){B=ep;break a}ep=ep(W);V.push(ep.F_);ep.Jf&&CS.push(ep.Jf);r=[].concat(g.Be(ep.IF),g.Be(r))}else{B=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}B={bj:V,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:P,Ws:N,layoutExitMuteTriggers:r,DD:R,sJ:CS}}B instanceof n?W=B:(N=W.slotId,U=B.bj,c=B.layoutExitSkipTriggers,V=B.layoutExitMuteTriggers,F=B.layoutExitUserInputSubmittedTriggers,r=B.DD,W=A(W),P=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=H?H.layoutId: Dj(e.G.get(),P,N),R={layoutId:N,layoutType:P,O7:"core"},W={layout:{layoutId:N,layoutType:P,E7:new Map,layoutExitNormalTriggers:[new er(e.T,N)],layoutExitSkipTriggers:c,layoutExitMuteTriggers:V,layoutExitUserInputSubmittedTriggers:F,Ws:[],O7:"core",clientMetadata:new Zq([new uL(U)].concat(g.Be(r))),lY:W(R)},sJ:B.sJ});return W}}; SWW=function(E,e,l){var k=[];E=g.T(E);for(var H=E.next();!H.done;H=E.next())if(H=H.value,g.M(H,D5)){H=WH(g.M(H,D5),e,l);if(H instanceof Nk)return new n(H);k.push(H.Xj)}return k}; b87=function(E,e,l,k,H,O,X,A){if(!LpX(l,A===void 0?!1:A))return new n("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:l});var C=C4(l);if(C<=0)return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l});var p=new XL({current:null}),x=pxW(E,e,l,p,k,O,X);return Dp7(E,k,O,C,H,function(Q,W){var B=Q.slotId,w=p4(l);Q=X(Q);var U,c=(U=jj(e,k,l.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?U: Dj(e.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",B);B={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",O7:"core"};U=x(c,W);var V=Yi(U.clientMetadata,"metadata_type_fulfilled_layout");V||kd("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new b5(k),new yg(C),new FL(w),p];V&&w.push(new lL(V.layoutType));return{ntt:{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",E7:new Map,layoutExitNormalTriggers:[new er(e.T,c)],layoutExitSkipTriggers:[new HF(e.T, W.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new d$(e.T,W.layoutId)],Ws:[],O7:"core",clientMetadata:new Zq(w),lY:Q(B)},kq:U}})}; vg9=function(E){if(!NLS(E))return!1;var e=g.M(E.adVideoStart,Sj);return e?g.M(E.linearAd,D5)&&FC(e)?!0:(kd("Invalid Sandwich with notify"),!1):!1}; P5X=function(E){if(E.linearAds==null)return!1;E=g.M(E.adStart,Sj);return E?FC(E)?!0:(kd("Invalid LASR with notify"),!1):!1}; acZ=function(E){if(!Ma9(E))return!1;E=g.M(E.adStart,Sj);return E?FC(E)?!0:(kd("Invalid LASR with notify"),!1):!1}; rM=function(E,e,l,k,H,O,X,A,C,p){this.S=E;this.G=e;this.T=l;this.ZM=k;this.KY=H;this.Z=O;this.o4=X;this.er=A;this.tS=C;this.loadPolicy=p===void 0?1:p}; lT=function(E,e,l,k,H,O,X,A,C,p,x){var Q=[];if(e.length===0&&k.length===0&&l.length===0)return Q;e=e.filter(fG);var W=l.filter(vQZ),B=k.filter(fG),w=new Map,U=LNZ(e),c=l.some(function(E6){var zd;return(E6==null?void 0:(zd=E6.adSlotMetadata)==null?void 0:zd.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),V=l.some(function(E6){var zd; return(E6==null?void 0:(zd=E6.adSlotMetadata)==null?void 0:zd.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),F=l.some(function(E6){var zd; return(E6==null?void 0:(zd=E6.adSlotMetadata)==null?void 0:zd.slotType)==="SLOT_TYPE_IN_PLAYER"}),r=l.some(function(E6){var zd,A0; return(E6==null?void 0:(zd=E6.adSlotMetadata)==null?void 0:zd.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(E6==null?void 0:(A0=E6.adSlotMetadata)==null?void 0:A0.slotType)==="SLOT_TYPE_ABOVE_FEED"}); l=l.some(function(E6){var zd;return(E6==null?void 0:(zd=E6.adSlotMetadata)==null?void 0:zd.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(c||V||F||r||l)p=KNS(W,e,A,H,U,E.KY.get(),E.loadPolicy,w,E.ZM.get(),E.S.get(),F,X,C,p,x),p instanceof n?kd(p,void 0,void 0,{contentCpn:H}):Q.push.apply(Q,g.Be(p));p=g.T(e);for(x=p.next();!x.done;x=p.next())x=x.value,l=LfX(E,w,x,H,O,X,c,A,U,C,W),l instanceof n?kd(l,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:H,daiEnabled:X}):Q.push.apply(Q,g.Be(l));hRX(E.ZM.get())||(O=MlW(E,B,H,A,U,w),Q.push.apply(Q,g.Be(O)));if(E.Z===null|| X&&!A.yG){var P,N,R;E=A.sK&&e.length===1&&((P=e[0].config)==null?void 0:(N=P.adPlacementConfig)==null?void 0:N.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((R=e[0].renderer)==null?void 0:R.adBreakServiceRenderer);if(!Q.length&&!E){var K,XW,oZ,A7;kd("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":e.length,contentCpn:H,"first APR kind":(K=e[0])==null?void 0:(XW=K.config)==null?void 0:(oZ=XW.adPlacementConfig)==null?void 0:oZ.kind,renderer:(A7= e[0])==null?void 0:A7.renderer})}return Q}P=k.filter(fG);Q.push.apply(Q,g.Be(u6l(w,P,E.G.get(),E.Z,H,c)));if(!Q.length){var CS,ep,IZ,nS;kd("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":e.length,contentCpn:H,daiEnabled:X.toString(),"first APR kind":(CS=e[0])==null?void 0:(ep=CS.config)==null?void 0:(IZ=ep.adPlacementConfig)==null?void 0:IZ.kind,renderer:(nS=e[0])==null?void 0:nS.renderer})}return Q}; MlW=function(E,e,l,k,H,O){function X(W){return sC(E.KY.get(),W)} var A=[];e=g.T(e);for(var C=e.next();!C.done;C=e.next()){C=C.value;var p=C.renderer,x=p.sandwichedLinearAdRenderer,Q=p.linearAdSequenceRenderer;x&&vg9(x)?(kd("Found AdNotify with SandwichedLinearAdRenderer"),Q=g.M(x.adVideoStart,Sj),x=g.M(x.linearAd,D5),XJ(O,p,C.config.adPlacementConfig.kind),p=void 0,Q=FNX((p=Q)==null?void 0:p.layout.layoutId,E.G.get(),E.T.get(),C.config.adPlacementConfig,C.adSlotLoggingData,x,l,k,X,H,E.loadPolicy,E.ZM.get(),E.KY.get()),Q instanceof n?kd(Q):A.push.apply(A,g.Be(Q))): Q&&(!Q.adLayoutMetadata&&P5X(Q)||Q.adLayoutMetadata&&acZ(Q))&&(kd("Found AdNotify with LinearAdSequenceRenderer"),XJ(O,p,C.config.adPlacementConfig.kind),p=void 0,x=cKy((p=g.M(Q.adStart,Sj))==null?void 0:p.layout.layoutId,E.G.get(),E.T.get(),C.config.adPlacementConfig,C.adSlotLoggingData,Q.linearAds,iv(Q.adLayoutMetadata)?Q.adLayoutMetadata:void 0,l,k,X,H,E.loadPolicy,E.ZM.get()),x instanceof n?kd(x):A.push.apply(A,g.Be(x)))}return A}; LfX=function(E,e,l,k,H,O,X,A,C,p,x){function Q(V){return sC(E.KY.get(),V)} var W=l.renderer,B=l.config.adPlacementConfig,w=B.kind,U=l.adSlotLoggingData,c=A.yG&&w==="AD_PLACEMENT_KIND_START";c=O&&!c;if(W.adsEngagementPanelRenderer!=null)return AW(e,l.elementId,w,W.adsEngagementPanelRenderer.isContentVideoEngagementPanel,W.adsEngagementPanelRenderer.adVideoId,W.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.adsEngagementPanelRenderer;V=sC(E.KY.get(),V);return Dp(N,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new cL(K),F,r,K.impressionPings,V,W.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[]; if(W.adsEngagementPanelLayoutViewModel)return AW(e,l.elementId,w,W.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,W.adsEngagementPanelLayoutViewModel.adVideoId,W.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.adsEngagementPanelLayoutViewModel;V=sC(E.KY.get(),V);return bT(N,R,"LAYOUT_TYPE_PANEL",new yl(K),F,r,V,W.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,P)}),[]; if(W.actionCompanionAdRenderer!=null){if(W.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return l$p(E.G.get(),E.Z,E.T.get(),W.actionCompanionAdRenderer,B,U,k,Q);AW(e,l.elementId,w,W.actionCompanionAdRenderer.isContentVideoCompanion,W.actionCompanionAdRenderer.adVideoId,W.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.actionCompanionAdRenderer;V=sC(E.KY.get(),V);return Dp(N,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new UW(K),F,r,K.impressionPings,V,W.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(W.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(W.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return kre(E.G.get(),E.Z,E.T.get(),W.topBannerImageTextIconButtonedLayoutViewModel,B,U,k,Q); AW(e,l.elementId,w,W.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,W.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,W.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.topBannerImageTextIconButtonedLayoutViewModel;V=sC(E.KY.get(),V);return bT(N,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new JK(K),F,r,V,W.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,P)})}else if(W.imageCompanionAdRenderer)AW(e, l.elementId,w,W.imageCompanionAdRenderer.isContentVideoCompanion,W.imageCompanionAdRenderer.adVideoId,W.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.imageCompanionAdRenderer; V=sC(E.KY.get(),V);return Dp(N,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new f8(K),F,r,K.impressionPings,V,W.imageCompanionAdRenderer.adLayoutLoggingData,P)}); else if(W.bannerImageLayoutViewModel)AW(e,l.elementId,w,W.bannerImageLayoutViewModel.isContentVideoCompanion,W.bannerImageLayoutViewModel.adVideoId,W.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.bannerImageLayoutViewModel;V=sC(E.KY.get(),V);return bT(N,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Vl(K),F,r,V,W.bannerImageLayoutViewModel.adLayoutLoggingData,P)}); else if(W.shoppingCompanionCarouselRenderer)AW(e,l.elementId,w,W.shoppingCompanionCarouselRenderer.isContentVideoCompanion,W.shoppingCompanionCarouselRenderer.adVideoId,W.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,B,U,function(V,F,r,P){var N=E.T.get(),R=V.slotId,K=W.shoppingCompanionCarouselRenderer;V=sC(E.KY.get(),V);return Dp(N,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Sl(K),F,r,K.impressionPings,V,W.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)}); else if(W.adBreakServiceRenderer){if(!EDX(l))return[];if(w==="AD_PLACEMENT_KIND_PAUSE")return qXl(E.G.get(),B,U,l.renderer.adBreakServiceRenderer,k);if(w!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&w!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return taZ(E.G.get(),B,U,l.renderer.adBreakServiceRenderer,k,H,O);A.sK||kd("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:w,adPlacementConfig:B,daiEnabledForContentVideo:String(O),isServedFromLiveInfra:String(A.sK),clientPlaybackNonce:A.clientPlaybackNonce}); if(w==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!E.o4)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!E.tS)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");E.tS.pQ({adPlacementRenderer:l,contentCpn:k,Pq:H});H=E.o4.get().getCurrentTimeSec(1,!1);return NKX(E.G.get(),l.renderer.adBreakServiceRenderer,B,H,k,U,O)}if(!E.er)return new n("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); E.er.pQ({adPlacementRenderer:l,contentCpn:k,Pq:H})}else{if(W.clientForecastingAdRenderer)return Wfl(E.G.get(),E.T.get(),B,U,W.clientForecastingAdRenderer,k,H,Q);if(W.invideoOverlayAdRenderer)return zR0(E.G.get(),E.T.get(),B,U,W.invideoOverlayAdRenderer,k,H,Q);if(W.instreamAdPlayerOverlayRenderer)return og0(E.G.get(),E.T.get(),B,U,W.instreamAdPlayerOverlayRenderer,k,Q);if((W.linearAdSequenceRenderer||W.instreamVideoAdRenderer)&&c)return UL0(E.G.get(),E.T.get(),l,k,Q,p,!E.ZM.get().U.Y().L("html5_override_ad_video_length_killswitch")); if(W.linearAdSequenceRenderer&&!c){if(X)return[];XJ(e,W,w);if(W.linearAdSequenceRenderer.adLayoutMetadata){if(!Ma9(W.linearAdSequenceRenderer))return new n("Received invalid LinearAdSequenceRenderer.")}else if(W.linearAdSequenceRenderer.linearAds==null)return new n("Received invalid LinearAdSequenceRenderer.");if(g.M(W.linearAdSequenceRenderer.adStart,Sj)){kd("Found AdNotify in LinearAdSequenceRenderer");l=g.M(W.linearAdSequenceRenderer.adStart,Sj);if(!UuW(l))return new n("Invalid AdMessageRenderer."); O=W.linearAdSequenceRenderer.linearAds;return yKZ(E.S.get(),E.G.get(),E.T.get(),E.KY.get(),B,U,l,iv(W.linearAdSequenceRenderer.adLayoutMetadata)?W.linearAdSequenceRenderer.adLayoutMetadata:void 0,O,k,H,A,Q,C,E.loadPolicy,E.ZM.get())}return Vlp(E.G.get(),E.T.get(),B,U,W.linearAdSequenceRenderer.linearAds,iv(W.linearAdSequenceRenderer.adLayoutMetadata)?W.linearAdSequenceRenderer.adLayoutMetadata:void 0,k,H,A,Q,C,E.loadPolicy,E.ZM.get(),x)}if(!W.remoteSlotsRenderer||O){if(W.instreamVideoAdRenderer&& !c){if(X)return[];XJ(e,W,w);return DL7(E.G.get(),E.T.get(),B,U,W.instreamVideoAdRenderer,k,H,A,Q,C,E.loadPolicy,E.ZM.get(),E.KY.get(),x)}if(W.instreamSurveyAdRenderer)return b87(E.G.get(),E.T.get(),W.instreamSurveyAdRenderer,B,U,k,Q,rY(E.ZM.get(),"supports_multi_step_on_desktop"));if(W.sandwichedLinearAdRenderer!=null)return NLS(W.sandwichedLinearAdRenderer)?g.M(W.sandwichedLinearAdRenderer.adVideoStart,Sj)?(kd("Found AdNotify in SandwichedLinearAdRenderer"),l=g.M(W.sandwichedLinearAdRenderer.adVideoStart, Sj),UuW(l)?(O=g.M(W.sandwichedLinearAdRenderer.linearAd,D5))?f$8(l,O,B,E.S.get(),E.G.get(),E.T.get(),E.KY.get(),U,k,H,A,Q,C,E.loadPolicy,E.ZM.get()):new n("Missing IVAR from Sandwich"):new n("Invalid AdMessageRenderer.")):Vlp(E.G.get(),E.T.get(),B,U,[W.sandwichedLinearAdRenderer.adVideoStart,W.sandwichedLinearAdRenderer.linearAd],void 0,k,H,A,Q,C,E.loadPolicy,E.ZM.get()):new n("Received invalid SandwichedLinearAdRenderer.");if(W.videoAdTrackingRenderer!=null)return xp9(E.G.get(),E.T.get(),W.videoAdTrackingRenderer, B,U,k,H,A.Jd,Q)}}return[]}; vH=function(E,e,l,k,H,O,X,A){g.a.call(this);var C=this;this.G=E;this.Z=e;this.BN=k;this.o4=H;this.ZM=O;this.l3=X;this.m6=A;this.T=null;l.get().addListener(this);this.addOnDisposeCallback(function(){l.U7()||l.get().removeListener(C)}); k.get().addListener(this);this.addOnDisposeCallback(function(){k.U7()||k.get().removeListener(C)})}; L4=function(E,e,l){var k=E.o4.get().getCurrentTimeSec(1,!1);E.ZM.get().U.Y().f7()&&wZ(E.l3.get(),"sdai","onopp.1;evt."+l.event+";start."+l.startSecs.toFixed(3)+";d."+l.s1.toFixed(3));qr(E.G.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var H=E.Z.get(),O=e.adPlacementRenderer.renderer.adBreakServiceRenderer,X=e.contentCpn,A=e.adPlacementRenderer.adSlotLoggingData;PH(E.ZM.get());var C=E.l3;var p=H.ZM.get();p=g.tJ(p.U.Y().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var x=H.ZM.get();var Q=g.tJ(x.U.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");x=l.startSecs*1E3;x={HV:new wJ(x,x+l.s1*1E3),Q1:!1,cueProcessedMs:k*1E3};var W=l.startSecs+l.s1;if(k===0)x.lR=new wJ(0,W*1E3);else{Q=l.startSecs-Q;var B=Q-k;x.lR=B<=0?new wJ(Q*1E3,W*1E3):new wJ(Math.floor(k+Math.random()*Math.min(B,p))*1E3,W*1E3)}O=ko(H,O,X,x,A,[new AJ(l)]);ag(H.ZM.get())&&wZ(C.get(),"abrsm","cpi."+l.identifier+";cps."+l.startSecs+";cpd."+l.s1+";cts."+k+";rbf."+x.lR.start);C.get().U.s4(l.startSecs- k,x.lR.start/1E3-k);return[O]})}; hW=function(E){var e,l=(e=Yi(E.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:e.current;if(!l)return null;e=Yi(E.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var k=E.layoutId,H=Yi(E.clientMetadata,"metadata_type_content_cpn"),O=Yi(E.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=Yi(E.clientMetadata,"metadata_type_player_overlay_layout_renderer"),A=Yi(E.clientMetadata,"metadata_type_player_underlay_renderer"),C=Yi(E.clientMetadata, "metadata_type_ad_placement_config"),p=Yi(E.clientMetadata,"metadata_type_video_length_seconds");var x=Lj(E.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Yi(E.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Lj(E.clientMetadata,"metadata_type_layout_enter_ms")&&Lj(E.clientMetadata,"metadata_type_layout_exit_ms")?(Yi(E.clientMetadata,"metadata_type_layout_exit_ms")-Yi(E.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Le:k,contentCpn:H,YR:l,Ne:e,instreamAdPlayerOverlayRenderer:O, playerOverlayLayoutRenderer:X,instreamAdPlayerUnderlayRenderer:A,adPlacementConfig:C,videoLengthSeconds:p,wL:x,inPlayerLayoutId:Yi(E.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yi(E.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; YWZ=function(E,e){return Z8v(E,e)}; mpX=function(E,e){e=Z8v(E,e);if(!e)return null;var l;e.wL=(l=Yi(E.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:l.adBreakRemainingLengthSeconds;return e}; Z8v=function(E,e){var l,k=(l=Yi(E.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:l.current;if(!k)return null;l=xZX(E,e);return{P1:pTW(E,e),adPlacementConfig:Yi(E.clientMetadata,"metadata_type_ad_placement_config"),zq:l,contentCpn:Yi(E.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Yi(E.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yi(E.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Yi(E.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,wL:void 0,YR:k,Le:E.layoutId,videoLengthSeconds:Yi(E.clientMetadata,"metadata_type_video_length_seconds")}}; MI=function(E,e,l,k,H,O,X,A,C){g.a.call(this);this.S=E;this.J=e;this.W=l;this.Z=k;this.T=H;this.G=O;this.KY=X;this.ZM=A;this.Lg=C;this.HG=!0}; ggv=function(E,e,l){return P1X(E.T.get(),e.contentCpn,e.Le,function(k){return a$W(E.G.get(),k.slotId,l,e.adPlacementConfig,e.Le,sC(E.KY.get(),k))})}; NI=function(E,e,l,k,H,O,X,A){g.a.call(this);this.G=E;this.T=e;this.Z=l;this.ZM=k;this.S=H;this.Lg=O;this.o4=X;this.SJ=A}; Zp=function(E){g.a.call(this);this.T=E}; qr=function(E,e,l,k){E.T().WG(e,k);l=l();E=E.T();E.UK.Tv("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",e,k,l);e=g.T(l);for(l=e.next();!l.done;l=e.next())a:{k=E;l=l.value;k.UK.YE("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",l);k.UK.YE("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",l);try{var H=k.T;if(g.FF(l.slotId))throw new n("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(XM(H,l))throw new n("Duplicate registration for slot.",{slotId:l.slotId,slotEntryTriggerType:l.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.JB.dP.has(l.slotType))throw new n("No fulfillment adapter factory registered for slot of type: "+l.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.JB.Bz.has(l.slotType))throw new n("No SlotAdapterFactory registered for slot of type: "+l.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");UG(H,"TRIGGER_CATEGORY_SLOT_ENTRY",l.slotEntryTrigger?[l.slotEntryTrigger]:[]);UG(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", l.slotFulfillmentTriggers);UG(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",l.slotExpirationTriggers);var O=k.T,X=l.slotType+"_"+l.slotPhysicalPosition,A=dY(O,X);if(XM(O,l))throw new n("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");A.set(l.slotId,new kw9(l));O.T.set(X,A)}catch(XW){XW instanceof n&&XW.ZB?(k.UK.Y4("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",XW.ZB,l),kd(XW,l,void 0,void 0,XW.ac)):(k.UK.Y4("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", l),kd(XW,l));break a}XM(k.T,l).J=!0;try{var C=k.T,p=XM(C,l),x=l.slotEntryTrigger,Q=C.JB.R$.get(x.triggerType);Q&&(Q.Op("TRIGGER_CATEGORY_SLOT_ENTRY",x,l,null),p.SR.set(x.triggerId,Q));for(var W=g.T(l.slotFulfillmentTriggers),B=W.next();!B.done;B=W.next()){var w=B.value,U=C.JB.R$.get(w.triggerType);U&&(U.Op("TRIGGER_CATEGORY_SLOT_FULFILLMENT",w,l,null),p.pg.set(w.triggerId,U))}for(var c=g.T(l.slotExpirationTriggers),V=c.next();!V.done;V=c.next()){var F=V.value,r=C.JB.R$.get(F.triggerType);r&&(r.Op("TRIGGER_CATEGORY_SLOT_EXPIRATION", F,l,null),p.V.set(F.triggerId,r))}var P=C.JB.dP.get(l.slotType).get().build(C.Z,l);p.j=P;var N=C.JB.Bz.get(l.slotType).get().build(C.W,l);N.init();p.G=N}catch(XW){XW instanceof n&&XW.ZB?(k.UK.Y4("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",XW.ZB,l),kd(XW,l,void 0,void 0,XW.ac)):(k.UK.Y4("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),kd(XW,l));kk(k,l,!0);break a}k.UK.YE("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",l);k.T.qV(l);for(var R=g.T(k.G),K=R.next();!K.done;K= R.next())K.value.qV(l);Cp(k,l)}}; Yo=function(E,e,l,k,H){g.a.call(this);var O=this;this.G=E;this.Z=e;this.n5=l;this.context=H;this.T=new Map;k.get().addListener(this);this.addOnDisposeCallback(function(){k.U7()||k.get().removeListener(O)})}; muZ=function(E,e){var l=0x8000000000000,k=0,H=0x8000000000000;var O=g.T(e.slotFulfillmentTriggers);for(var X=O.next();!X.done;X=O.next())if(X=X.value,X instanceof s2){var A=X.T.start;l=Math.min(l,A);k=Math.max(k,X.T.end);X.visible&&(H=Math.min(H,A))}else kd("Found unexpected fulfillment trigger for throttled slot.",e,null,{fulfillmentTrigger:X});O=l;H=H<0x8000000000000&&l0&&ow(E.J(),l)}; CR=function(E,e,l,k,H){for(var O=[],X=g.T(E.iY.values()),A=X.next();!A.done;A=X.next()){var C=A=A.value,p=C.trigger;C=C.slot;if(p.triggerType===e){if(p instanceof Kh||p instanceof nh||p instanceof tC){if(H&&p.breakDurationMs!==l)continue;if(!H&&p.breakDurationMs===l)continue;if(k.has(C.slotId))continue}O.push(A)}}O.length>0&&ow(E.J(),O)}; Oj7=function(E,e){e=(e.s1+1)*1E3;var l=void 0;E=g.T(E.iY.values());for(var k=E.next();!k.done;k=E.next()){var H=k.value;k=H.trigger;H=H.slot;k instanceof Kh&&k.breakDurationMs<=e&&(!l||k.breakDurationMs>l.trigger.breakDurationMs)&&(l={slot:H,trigger:k})}return l}; X9p=function(E){E=E.adPlacementRenderer.config.adPlacementConfig;if(!E.prefetchModeConfig||!E.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;E=Number(E.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(E)||E<=0?0:Math.floor(Math.random()*E)}; uL0=function(E){E=E.adPlacementRenderer.config.adPlacementConfig;if(E.prefetchModeConfig&&E.prefetchModeConfig.cacheFetchRefreshDurationMs&&(E=Number(E.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(E)||E<=0)))return E}; pR=function(E){E.T=null;E.iY.clear();E.G&&E.G.stop();E.W&&E.W.stop();var e;(e=E.Z)==null||e.stop();delete E.Z}; ka7=function(E){var e=[];E=g.T(E.iY.values());for(var l=E.next();!l.done;l=E.next())l=l.value.trigger,l instanceof Kh&&e.push(l.breakDurationMs);return e}; x2=function(E){g.a.call(this);this.Z=E;this.HG=!0;this.iY=new Map;this.T=new Map;this.G=new Map}; AJ7=function(E,e){var l=[];if(e=E.T.get(e.layoutId)){e=g.T(e);for(var k=e.next();!k.done;k=e.next())(k=E.G.get(k.value.triggerId))&&l.push(k)}return l}; QY=function(E){g.a.call(this);this.T=E;this.iY=new Map}; CLW=function(E,e){for(var l=[],k=g.T(E.iY.values()),H=k.next();!H.done;H=k.next())H=H.value,H.trigger instanceof PE&&H.trigger.slotId===e&&l.push(H);l.length>=1&&ow(E.T(),l)}; p9X=function(E,e){var l={slotId:EU(e,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],O7:"surface",clientMetadata:new Zq([])},k=Object,H=k.assign;e=Dj(e,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l.slotId);e={layoutId:e,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",E7:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"surface", clientMetadata:new Zq([]),lY:Z29(!1,l.slotId,l.slotType,l.slotPhysicalPosition,l.O7,l.slotEntryTrigger,l.slotFulfillmentTriggers,l.slotExpirationTriggers,e,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return H.call(k,{},E,{Fe:!0,slot:l,layout:e})}; s60=function(E,e,l,k){var H=E.kind;k=k?!1:!E.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return k={HV:new wJ(-0x8000000000000,-0x8000000000000),Q1:k},l!=null&&(k.lR=new wJ(-0x8000000000000,-0x8000000000000)),k;case "AD_PLACEMENT_KIND_END":return k={HV:new wJ(0x7ffffffffffff,0x8000000000000),Q1:k},l!=null&&(k.lR=new wJ(Math.max(0,e-l),0x8000000000000)),k;case "AD_PLACEMENT_KIND_MILLISECONDS":H=E.adTimeOffset;H.offsetStartMilliseconds||kd("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||kd("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");E=Number(H.offsetStartMilliseconds);H=Number(H.offsetEndMilliseconds);H===-1&&(H=e);if(Number.isNaN(E)||Number.isNaN(H)||E>H)return new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:E,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===e&&E-500<=H);k={HV:new wJ(E,H),Q1:k};if(l!=null){E=Math.max(0,E-l);if(E===H)return k;k.lR=new wJ(E,H)}return k; default:return new n("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:E})}}; xkS=function(E){if(!E||!E.adPlacements&&!E.adSlots)return!1;for(var e=g.T(E.adPlacements||[]),l=e.next();!l.done;l=e.next())if(l=l.value)if(l=l.adPlacementRenderer,l!=null&&(l.config&&l.config.adPlacementConfig&&l.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;E=g.T(E.adSlots||[]);for(e=E.next();!e.done;e=E.next()){var k=l=void 0;if(((l=g.M(e.value,ej))==null?void 0:(k=l.adSlotMetadata)==null?void 0:k.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; WS=function(E){this.ZM=E;this.G=new Map;this.T=new Map;this.Z=new Map}; EU=function(E,e){if(BS(E.ZM.get())){var l=E.G.get(e)||0;l++;E.G.set(e,l);return e+"_"+l}return g.p2(16)}; Dj=function(E,e,l){if(BS(E.ZM.get())){var k=E.T.get(e)||0;k++;E.T.set(e,k);return l+"_"+e+"_"+k}return g.p2(16)}; Ui=function(E,e){if(BS(E.ZM.get())){var l=E.Z.get(e)||0;l++;E.Z.set(e,l);return e+"_"+l}return g.p2(16)}; Q27=function(E){var e=[new EC(E.Le),new H9(E.YR),new b5(E.adPlacementConfig),new pj(E.videoLengthSeconds),new c9(E.wL)];E.instreamAdPlayerOverlayRenderer&&e.push(new Np(E.instreamAdPlayerOverlayRenderer));E.playerOverlayLayoutRenderer&&e.push(new Zc(E.playerOverlayLayoutRenderer));E.Ne&&e.push(new L8(E.Ne));return e}; WqX=function(E,e,l,k,H,O){E=l.inPlayerLayoutId?l.inPlayerLayoutId:Dj(O,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",E);var X,A,C=l.instreamAdPlayerOverlayRenderer?(X=l.instreamAdPlayerOverlayRenderer)==null?void 0:X.adLayoutLoggingData:(A=l.playerOverlayLayoutRenderer)==null?void 0:A.adLayoutLoggingData;X={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O7:e};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",E7:new Map,layoutExitNormalTriggers:[new mZ(function(p){return Ui(O, p)},l.Le)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:e,clientMetadata:k,lY:H(X),adLayoutLoggingData:C}}; oi=function(E,e){var l=this;this.G=E;this.ZM=e;this.T=function(k){return Ui(l.G.get(),k)}}; a$W=function(E,e,l,k,H,O){l=new Zq([new Yg(l),new b5(k)]);e=Dj(E.G.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",e);k={layoutId:e,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",O7:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",E7:new Map,layoutExitNormalTriggers:[new mZ(function(X){return Ui(E.G.get(),X)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:l,lY:O(k),adLayoutLoggingData:void 0}}; og=function(E,e,l,k,H){var O=Q27(k);return WqX(e,l,k,new Zq(O),H,E.G.get())}; BQ9=function(E,e,l,k,H){var O=Q27(k);O.push(new rK(k.P1));O.push(new Dc(k.zq));return WqX(e,l,k,new Zq(O),H,E.G.get())}; Dp=function(E,e,l,k,H,O,X,A,C,p){e=Dj(E.G.get(),l,e);var x={layoutId:e,layoutType:l,O7:"core"},Q=new Map;X&&Q.set("impression",X);X=[new q7(E.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];p&&X.push(new YR(E.T,p,["normal"]));return{layoutId:e,layoutType:l,E7:Q,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([k,new b5(O),new EC(H)]),lY:A(x),adLayoutLoggingData:C}}; bT=function(E,e,l,k,H,O,X,A,C){e=Dj(E.G.get(),l,e);var p={layoutId:e,layoutType:l,O7:"core"},x=[new q7(E.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&x.push(new YR(E.T,C,["normal"]));return{layoutId:e,layoutType:l,E7:new Map,layoutExitNormalTriggers:x,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([k,new b5(O),new EC(H)]),lY:X(p),adLayoutLoggingData:A}}; cH=function(E,e,l){var k=[];k.push(new Ea(E.T,l));e&&k.push(e);return k}; JW=function(E,e,l,k,H,O,X){var A={layoutId:e,layoutType:l,O7:"core"};return{layoutId:e,layoutType:l,E7:new Map,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[new hC(E.T,e)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([new FN(k),new b5(H)]),lY:O(A),adLayoutLoggingData:k.adLayoutLoggingData}}; xo=function(E,e,l,k,H,O,X,A){var C={layoutId:e,layoutType:O,O7:"core"};return{layoutId:e,layoutType:O,E7:new Map,layoutExitNormalTriggers:[new mZ(E.T,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([new b5(k)].concat(g.Be(X))),lY:H(C),adLayoutLoggingData:A}}; jj=function(E,e,l,k){if(E.ZM.get().Xr(e.kind==="AD_PLACEMENT_KIND_START"))if(l===void 0)kd("Expected SSAP layout ID in renderer",void 0,void 0,{caller:k});else return l}; dpX=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){E=yk(E,e,l,H,O,X,A,C,Q,jj(E,l,k.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),W);e=E.DD;l=new e_(E.md);k=E.layoutExitSkipTriggers;p>0&&(e.push(l),e.push(new ap(p)),k=[]);e.push(new PL(x));return{F_:{layoutId:E.layoutId,layoutType:E.layoutType,E7:E.E7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:E.O7,clientMetadata:new Zq(e),lY:E.lY,adLayoutLoggingData:E.adLayoutLoggingData}, n9:k,IF:E.layoutExitMuteTriggers,vY:E.layoutExitUserInputSubmittedTriggers,KB:E.Ws,Jf:E.Jf}}; $pX=function(E,e,l,k,H,O,X,A,C,p){e=yk(E,e,l,k,O,new Map,X,function(x){return A(x,C)},void 0,jj(E,l,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); E=new d$(E.T,e.md);l=new e_(e.md);p=new PL(p);return{F_:{layoutId:e.layoutId,layoutType:e.layoutType,E7:e.E7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:e.O7,clientMetadata:new Zq([].concat(g.Be(e.DD),[l,p])),lY:e.lY,adLayoutLoggingData:e.adLayoutLoggingData},n9:e.layoutExitSkipTriggers,IF:e.layoutExitMuteTriggers,vY:[].concat(g.Be(e.layoutExitUserInputSubmittedTriggers),[E]),KB:e.Ws,Jf:e.Jf}}; yk=function(E,e,l,k,H,O,X,A,C,p,x){e=p!=null?p:Dj(E.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",e);p={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",O7:"adapter"};A=A(e);var Q=Yi(A.clientMetadata,"metadata_type_fulfilled_layout");Q||kd("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var W=Q?Q.layoutId:"";l=[new b5(l),new yg(k),new FL(H)];Q&&l.push(new lL(Q.layoutType));x&&l.push(new wQ(x));return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", E7:O,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new HF(E.T,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"adapter",DD:l,lY:X(p),adLayoutLoggingData:C,Jf:A,md:W}}; bvX=function(E,e,l,k,H,O,X,A,C,p,x){E=oiX(E,e,"core",l,k,H,O,X,A,C,p,void 0,x);return{layoutId:E.layoutId,layoutType:E.layoutType,E7:E.E7,layoutExitNormalTriggers:E.layoutExitNormalTriggers,layoutExitSkipTriggers:E.layoutExitSkipTriggers,layoutExitMuteTriggers:E.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:E.layoutExitUserInputSubmittedTriggers,Ws:E.Ws,O7:E.O7,clientMetadata:new Zq(E.hJ),lY:E.lY,adLayoutLoggingData:E.adLayoutLoggingData}}; rK8=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){e=oiX(E,e,"adapter",l,k,H,O,X,A,C,x,Q,W);k=e.layoutExitSkipTriggers;H=e.hJ;l.adPodSkipTarget&&l.adPodSkipTarget>0&&(H.push(p),H.push(new ap(l.adPodSkipTarget)),k=[]);H.push(new PL(A.adPodIndex));l.isCritical&&(k=[new YR(E.T,e.layoutId,["error"])].concat(g.Be(k)));return{F_:{layoutId:e.layoutId,layoutType:e.layoutType,E7:e.E7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:e.O7, clientMetadata:new Zq(H),lY:e.lY,adLayoutLoggingData:e.adLayoutLoggingData},n9:k,IF:e.layoutExitMuteTriggers,vY:e.layoutExitUserInputSubmittedTriggers,KB:e.Ws}}; oiX=function(E,e,l,k,H,O,X,A,C,p,x,Q,W){var B={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",O7:l};H=[new b5(H),new vL(C),new hK(k.externalVideoId),new Mp(A),new FL({impressionCommands:k.impressionCommands,abandonCommands:k.onAbandonCommands,completeCommands:k.completeCommands,progressCommands:k.adVideoProgressCommands}),new xi(O),new OC({current:null}),new pj(X)];(O=k.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new Np(O));(X=k.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new Zc(X)); Q&&H.push(new Qg(Q));(Q=k.playerUnderlay)&&H.push(new Yg(Q));A=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");Q=(Q=O?O.elementId:X==null?void 0:X.layoutId)?Q:Dj(E.G.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",A);H.push(new e_(Q));H.push(new ki(A));H.push(new wQ(C.adPodIndex));k.adNextParams&&H.push(new jl(k.adNextParams));k.shrunkenPlayerBytesConfig&&H.push(new K8(k.shrunkenPlayerBytesConfig));k.clickthroughEndpoint&&H.push(new Ip(k.clickthroughEndpoint));k.legacyInfoCardVastExtension&&H.push(new j_(k.legacyInfoCardVastExtension)); k.sodarExtensionData&&H.push(new W9(k.sodarExtensionData));x&&H.push(new JJ(x));H.push(new S_(Cr(k.pings)));C=pr(k.pings);if(W){a:{W=g.T(W);for(x=W.next();!x.done;x=W.next())if(x=x.value,x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(O=g.M(x.fulfillmentContent.fulfilledLayout,Yt))&&(O=g.M(O.renderingContent,NJ))&&O.associatedPlayerBytesLayoutId===e){W=x;break a}W=void 0}W&&H.push(new mf(W))}return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",E7:C,layoutExitNormalTriggers:[new er(E.T,e)],layoutExitSkipTriggers:k.skipOffsetMilliseconds? [new HF(E.T,Q)]:[],layoutExitMuteTriggers:[new HF(E.T,Q)],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:l,hJ:H,lY:p(B),adLayoutLoggingData:k.adLayoutLoggingData}}; cP7=function(E,e,l,k,H,O,X,A,C){k.every(function(x){return hJ(x,[],["LAYOUT_TYPE_MEDIA"])})||kd("Unexpect subLayout type for DAI composite layout"); e=Dj(E.G.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",e);var p={layoutId:e,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",O7:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",E7:new Map,layoutExitNormalTriggers:[new gZ(E.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ws:[],O7:"core",clientMetadata:new Zq([new B9(l),new o2(A),new uL(k),new b5(H),new Ta(O),new za({}),new Dq(C)]),lY:X(p)}}; TfZ=function(E){return E!=null}; wn=function(E,e,l){var k=this;this.G=E;this.Z=e;this.ZM=l;this.T=function(H){return Ui(k.G.get(),H)}}; NKX=function(E,e,l,k,H,O,X){if(!l.prefetchModeConfig)return new n("AdPlacementConfig for Live Prefetch is missing prefetch_config");l=l.prefetchModeConfig;k*=1E3;var A=[];if(!l.breakLengthMs)return new n("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var C=g.T(l.breakLengthMs),p=C.next();!p.done;p=C.next())if(p=p.value,Number(p)>0){var x=k+Number(l.startTimeOffsetMs),Q=x+Number(l.cacheFetchSmearingDurationMs);p={HV:new wJ(Q,Q+Number(p)),Q1:!1,lR:new wJ(Math.floor(x+Math.random()* Number(l.cacheFetchSmearingDurationMs)),Q),cueProcessedMs:k?k:x};x=[];x.push(new a2({}));Q=[];Q.push(new kt(E.T));Q.push(new xuW(E.T));X&&x.push(new za({}));A.push(ko(E,e,H,p,O,x,Q))}return A}; ko=function(E,e,l,k,H,O,X){O=O===void 0?[]:O;var A=EU(E.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");X||(X=[],k.lR&&k.lR.start!==k.HV.start&&X.push(new s2(E.T,l,new wJ(k.lR.start,k.HV.start),!1)),X.push(new s2(E.T,l,new wJ(k.HV.start,k.HV.end),k.Q1)));k={getAdBreakUrl:e.getAdBreakUrl,YC:k.HV.start,DN:k.HV.end,cueProcessedMs:k.cueProcessedMs};e=new AS(E.T,A);O=[new $i(k)].concat(g.Be(O));return{slotId:A,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:X, slotExpirationTriggers:[new lv(E.T,l),new XC(E.T,A),new uv(E.T,A)],O7:"core",clientMetadata:new Zq(O),adSlotLoggingData:H}}; zop=function(E,e,l){var k=[];l=g.T(l);for(var H=l.next();!H.done;H=l.next())k.push(w9X(E,e,H.value));return k}; w9X=function(E,e,l){return l.triggeringSlotId!=null&&l.triggeringSlotId===E?l.clone(e):l}; C1e=function(E,e,l,k,H){return dkS(E,e,l,k,H)}; GO7=function(E,e,l,k){var H=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");return dkS(E,H,e,l,k)}; dkS=function(E,e,l,k,H){var O=new Zx(E.T,l),X=[new Oa(E.T,e)];E=[new XC(E.T,e),new lv(E.T,k)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(H({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E},l))]),adSlotLoggingData:void 0}}; Dp7=function(E,e,l,k,H,O){var X=EU(E.G.get(),"SLOT_TYPE_PLAYER_BYTES"),A=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER"),C=Dj(E.G.get(),"LAYOUT_TYPE_SURVEY",A);k=z4(E,e,l,k);var p=[new Oa(E.T,X)];l=[new XC(E.T,X),new lv(E.T,l),new hC(E.T,C)];if(k instanceof n)return k;A=O({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:k,slotFulfillmentTriggers:p,slotExpirationTriggers:l},{slotId:A,layoutId:C});O=A.ntt;A=A.kq;return[{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:FJ(E,e,X,k),slotFulfillmentTriggers:f4(E,e,X,p),slotExpirationTriggers:l,O7:"core",clientMetadata:new Zq([new iL(O),new bL(Vk(e)),new P9({B3:E.B3(e)})]),adSlotLoggingData:H},A]}; Vk=function(E){return E.kind==="AD_PLACEMENT_KIND_START"}; vDv=function(E,e,l,k,H){H=H?H:EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");l=new Zx(E.T,l);var O=[new Oa(E.T,H)];E=[new lv(E.T,e),new XC(E.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(k({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:E}))])}}; P1X=function(E,e,l,k){var H=EU(E.G.get(),"SLOT_TYPE_PLAYER_UNDERLAY");l=new Zx(E.T,l);var O=[new Oa(E.T,H)];E=[new lv(E.T,e),new XC(E.T,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(k({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:E}))])}}; I$9=function(E,e,l,k,H,O,X){var A=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER"),C=Dj(E.G.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",A);k=Gap(E,k,O,X,C);if(k instanceof n)return k;X=[new Oa(E.T,A)];H=[new lv(E.T,O),new Oa(E.T,H),new pG(E.T,H)];l=sC(l,{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:k,slotFulfillmentTriggers:X,slotExpirationTriggers:H});E=E.Z.get();O={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",O7:"core"};e={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", E7:new Map,layoutExitNormalTriggers:[new GcZ(E.T,C,e.durationMs)],layoutExitSkipTriggers:[new idS(E.T,C,e.durationMs)],Ws:[new TL9(E.T,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O7:"core",clientMetadata:new Zq([new I2(e)]),lY:l(O)};return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:k,slotFulfillmentTriggers:X,slotExpirationTriggers:H,clientMetadata:new Zq([new iL(e)])}}; wLp=function(E,e,l,k,H,O){e=z4(E,e,l,k);if(e instanceof n)return e;var X=e instanceof s2?new wz8(E.T,l,e.T):null;k=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");var A=[new Oa(E.T,k)];E=[new lv(E.T,l),new XC(E.T,k)];O=O({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:e,slotFulfillmentTriggers:A,slotExpirationTriggers:E},X);return O instanceof Nk?new n(O):{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:A,slotExpirationTriggers:E, O7:"core",clientMetadata:new Zq([new iL(O)]),adSlotLoggingData:H}}; BKZ=function(E,e,l,k){var H=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER"),O=new Lh(E.T,e),X=[new CG(E.T,H)];E=[new lv(E.T,e),new XC(E.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(k({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E}))]),adSlotLoggingData:l}}; oD7=function(E,e,l,k){var H=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");l=new Zx(E.T,l);var O=[new Oa(E.T,H)],X=[new XC(E.T,H),new lv(E.T,e)];O={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:X};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:[new Oa(E.T,H)],slotExpirationTriggers:[new lv(E.T,e),new XC(E.T,H)],O7:"core",clientMetadata:new Zq([new iL(k(O))])}}; Q_v=function(E,e,l,k,H){var O=EU(E.G.get(),"SLOT_TYPE_IN_PLAYER");l=new N7(E.T,k,l);k=[new Oa(E.T,O)];E=[new lv(E.T,e)];return{slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:k,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(H({slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:l,slotFulfillmentTriggers:k,slotExpirationTriggers:E}))])}}; XxS=function(E,e,l,k,H,O){var X=EU(E.G.get(),e);return dn(E,X,e,new Zx(E.T,k),[new lv(E.T,l),new XC(E.T,X),new YR(E.T,k,["error"])],H,O)}; OvX=function(E,e,l,k,H,O,X){var A=EU(E.G.get(),e);return dn(E,A,e,new YR(E.T,H,["normal"]),[new lv(E.T,l),new XC(E.T,A),new YR(E.T,k,["error"])],O,X)}; e6W=function(E,e,l,k,H){var O=EU(E.G.get(),e);return dn(E,O,e,new Lh(E.T,l),[new lv(E.T,l),new XC(E.T,O)],k,H)}; pLX=function(E,e,l,k,H){l=l?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var O=EU(E.G.get(),l);e=new Lh(E.T,e);var X=[new Oa(E.T,O)];E=[new XC(E.T,O)];return{slotId:O,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:X,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(H({slotId:O,slotType:l,slotPhysicalPosition:1,O7:"core",slotEntryTrigger:e,slotFulfillmentTriggers:X,slotExpirationTriggers:E}))]),adSlotLoggingData:k}}; ivv=function(E,e,l,k){var H=EU(E.G.get(),"SLOT_TYPE_PLAYER_BYTES"),O=new Ry(E.T),X=[new CG(E.T,H)];E=[new lv(E.T,e)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(k({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:O,slotFulfillmentTriggers:X,slotExpirationTriggers:E})),new za({})]),adSlotLoggingData:l}}; FfZ=function(E,e){return hRX(E.ZM.get())?new YR(E.T,e,["normal","error","skipped"]):new YR(E.T,e,["normal"])}; SPy=function(E,e,l,k,H){e=FfZ(E,e);E=Ig(E,e,l);H=H({slotId:E.slotId,slotType:E.slotType,slotPhysicalPosition:E.slotPhysicalPosition,slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers,O7:E.O7});return H instanceof n?H:{WE:Object.assign({},E,{clientMetadata:new Zq([new iL(H.layout)]),adSlotLoggingData:k}),sJ:H.sJ}}; rPW=function(E,e,l,k,H,O,X){l=fcS(E,e,l,k);if(l instanceof n)return l;X=X({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers,O7:l.O7});if(X instanceof n)return X;k=[new bL(Vk(e)),new iL(X.layout),new P9({B3:E.B3(e)})];O&&k.push(new fj({}));return{WE:{slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:FJ(E, e,l.slotId,l.slotEntryTrigger),slotFulfillmentTriggers:f4(E,e,l.slotId,l.slotFulfillmentTriggers),slotExpirationTriggers:l.slotExpirationTriggers,O7:l.O7,clientMetadata:new Zq(k),adSlotLoggingData:H},sJ:X.sJ}}; FJ=function(E,e,l,k){return E.ZM.get().Xr(Vk(e))?new PE(E.T,l):k}; f4=function(E,e,l,k){return E.ZM.get().Xr(Vk(e))?[new CG(E.T,l)]:k}; Ig=function(E,e,l){var k=EU(E.G.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new Oa(E.T,k)];E=[new XC(E.T,k),new lv(E.T,l)];return{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:H,slotExpirationTriggers:E,O7:"core"}}; fcS=function(E,e,l,k){e=z4(E,e,l,k);return e instanceof n?e:Ig(E,e,l)}; Qpp=function(E,e,l,k,H,O){var X=EU(E.G.get(),"SLOT_TYPE_FORECASTING");e=z4(E,e,l,k);if(e instanceof n)return e;k=[new Oa(E.T,X)];E=[new XC(E.T,X),new lv(E.T,l)];return{slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:k,slotExpirationTriggers:E,O7:"core",clientMetadata:new Zq([new iL(O({slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,O7:"core",slotEntryTrigger:e,slotFulfillmentTriggers:k,slotExpirationTriggers:E}))]),adSlotLoggingData:H}}; TQy=function(E,e,l,k,H){var O=!e.hideCueRangeMarker;switch(e.kind){case "AD_PLACEMENT_KIND_START":return new Lh(E.T,l);case "AD_PLACEMENT_KIND_MILLISECONDS":return E=s60(e,k),E instanceof n?E:H(E.HV,O);case "AD_PLACEMENT_KIND_END":return new M7(E.T,l,O);default:return new n("Cannot construct entry trigger",{kind:e.kind})}}; Gap=function(E,e,l,k,H){return TQy(E,e,l,k,function(O,X){return new oQ0(E.T,l,O,X,H)})}; z4=function(E,e,l,k){return TQy(E,e,l,k,function(H,O){return new s2(E.T,l,H,O)})}; dn=function(E,e,l,k,H,O,X){E=[new CG(E.T,e)];return{slotId:e,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:E,slotExpirationTriggers:H,O7:"core",clientMetadata:new Zq([new iL(X({slotId:e,slotType:l,slotPhysicalPosition:1,O7:"core",slotEntryTrigger:k,slotFulfillmentTriggers:E,slotExpirationTriggers:H}))]),adSlotLoggingData:O}}; G4=function(E,e){g.a.call(this);this.ZM=E;this.T=e;this.eventCount=0}; T4=function(E,e,l,k){G4.call(this,E,e);this.ZM=E;this.Lg=l;this.context=k}; iA=function(){this.T=new Map}; $2=function(E){this.T="pending";this.G=[];this.Z=[];try{E(this.S.bind(this),this.reject.bind(this))}catch(e){this.reject(e)}}; ijZ=function(){var E,e;return{bB:new $2(function(l,k){E=l;e=k}), resolve:E,reject:e}}; cS=function(E){return UD(E)?E:JR(E)?new $2(function(e,l){E.then(e,l)}):new $2(function(e){e(E)})}; yY=function(E){return new $2(function(e,l){l(E)})}; jb=function(E){try{return cS(E())}catch(e){return yY(e)}}; F1=function(E,e,l){var k=ijZ(),H=k.bB,O=k.resolve,X=k.reject;E.G.push(function(A){if(e)try{var C=e(A);O(C)}catch(p){X(p)}else O(A)}); E.Z.push(function(A){if(l)try{var C=l(A);O(C)}catch(p){X(p)}else X(A)}); Ii(E);return H}; fR=function(E,e){return F1(E,void 0,e)}; $k7=function(E,e){F1(E,function(l){return F1(cS(e()),function(){return l})},function(l){return F1(cS(e()),function(){return yY(l)})})}; Ii=function(E){if(E.T==="fulfilled"){var e=E.G;E.G=[];E.Z=[];e=g.T(e);for(var l=e.next();!l.done;l=e.next())l=l.value,l(E.result)}else if(E.T==="rejected")for(e=E.Z,E.G=[],E.Z=[],e=g.T(e),l=e.next();!l.done;l=e.next())l=l.value,l(E.error)}; VY=function(E,e){return Uk8(e.call(E))}; Sb=function(E){return function l(){return aZ(l,function(k){if(k.G==1)return g.J7(k,2),g.S(k,{bB:cS(E)},4);if(k.G!=2)return k.return(k.T);g.r8(k);return g.bX(k,0)})}()}; Uk8=function(E){return jb(function(){return rn(E,E.next())})}; rn=function(E,e){return e.done?cS(e.value):fR(F1(e.value.bB,function(l){return rn(E,E.next(l))}),function(l){return rn(E,E.throw(l))})}; D0=function(E,e){if(E.length===0)return cS(NaN);var l=ijZ(),k=l.bB,H=l.resolve,O=E.length;E=g.T(E.entries());var X=E.next();for(l={};!X.done;l={C1:void 0},X=E.next()){var A=g.T(X.value);X=A.next().value;A=A.next().value;l.C1=X;$k7(A,function(C){return function(){k.T==="pending"&&(JJv(e)&&e(C.C1)&&k.T==="pending"?H(C.C1):(--O,O===0&&H(NaN)))}}(l))}return k}; bA=function(E){return E.map(function(e){return cS(e)})}; PS=function(E){var e=E.hours||0;var l=E.minutes||0,k=E.seconds||0;e=k+l*60+e*3600+(E.days||0)*86400+(E.weeks||0)*604800+(E.months||0)*2629800+(E.years||0)*31557600;e<=0?e={hours:0,minutes:0,seconds:0}:(E=e,e=Math.floor(E/3600),E%=3600,l=Math.floor(E/60),k=Math.floor(E%60),e={hours:e,minutes:l,seconds:k});var H=e.hours===void 0?0:e.hours;l=e.minutes===void 0?0:e.minutes;E=e.seconds===void 0?0:e.seconds;k=H>0;e=[];if(k){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var O=["fr"],X="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); H="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(vS)?H.replace(",","\u00a0"):O.includes(vS)?H.replace(",","\u202f"):X.includes(vS)?H.replace(",","."):H;e.push(H)}k=k===void 0?!1:k;l=(["af","be","lt"].includes(vS)||k)&&l<10?cJe().format(l):(new Intl.NumberFormat("en-u-nu-latn")).format(l);e.push(l);l=cJe().format(E);e.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(vS)&&(l=".");return e.join(l)}; cJe=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; yJl=function(E,e){var l,k;E=((l=E.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(k=l.videoAuthorizationToken)==null?void 0:k.credentialTransferTokens)||[];for(l=0;le;E=l}else E=!1;return E}; g.E1=function(E,e){return E.Uv+"timedtext_video?ref=player&v="+e.videoId}; g.YC9=function(E){var e=this;this.videoData=E;E={};this.T=(E.c1a=function(){var l=[];if(g.tR.isInitialized()){var k="";e.videoData&&e.videoData.YY&&(k=e.videoData.YY+("&r1b="+e.videoData.clientPlaybackNonce));var H={};k=(H.atr_challenge=k,H);I6("bg_v",void 0,"player_att");(k=ZjW(k))?(I6("bg_s",void 0,"player_att"),l.push("r1a="+k)):(I6("bg_e",void 0,"player_att"),l.push("r1c=2"))}else I6("bg_e",void 0,"player_att"),window.trayride||window.botguard?l.push("r1c=1"):l.push("r1c=4");l.push("r1d="+g.tR.getState()); return l.join("&")},E.c6a=function(l){return"r6a="+(Number(l.c)^gL())},E.c6b=function(l){return"r6b="+(Number(l.c)^Number(g.LF("CATSTAT",0)))},E); this.videoData&&this.videoData.YY?this.m8=KF(this.videoData.YY):this.m8={}}; g.mkW=function(E){if(E.videoData&&E.videoData.YY){for(var e=[E.videoData.YY],l=g.T(Object.keys(E.T)),k=l.next();!k.done;k=l.next())k=k.value,E.m8[k]&&E.T[k]&&(k=E.T[k](E.m8))&&e.push(k);return e.join("&")}return null}; g.e$=function(E,e){NQ7(E,{kgz:g.tJ(e.experiments,"bg_vm_reinit_threshold"),cspNonce:e.cspNonce,Uv:e.Uv||""})}; giS=function(){var E=XMLHttpRequest.prototype.fetch;return!!E&&E.length===3}; Kq8=function(E){E=E[u[12]](u[8]);lQ[u[38]](E,2);lQ[u[3]](E,23);lQ[u[38]](E,1);lQ[u[3]](E,6);return E[u[69]](u[8])}; s29=function(E,e){Z$(E,2,e.R5,kn,3);Z$(E,3,e.innertubeRequest,niS,3);ML(E,4,e.onesieUstreamerConfig);ML(E,9,e.pF);Z$(E,10,e.Gk,Hm,3);Z$(E,15,e.reloadPlaybackParams,Rol,3)}; qC8=function(E,e){Z$(E,1,e.formatId,O1,3);Lv(E,2,e.startTimeMs);Lv(E,3,e.durationMs);Lv(E,4,e.kE);Lv(E,5,e.Yv);Z$(E,9,e.qMM,t_W,3);Z$(E,11,e.Jtd,Xv,1);Z$(E,12,e.gW,Xv,1)}; EkS=function(E,e){NL(E,1,e.videoId);Lv(E,2,e.lmt)}; t_W=function(E,e){if(e.jy)for(var l=0;l>31));Lv(E,16,e.qP);Lv(E,17,e.detailedNetworkType);Lv(E,18,e.sy);Lv(E,19,e.uJ);Lv(E,21,e.GhD);Lv(E,23,e.n2);Lv(E,28,e.vt);Lv(E,29,e.J27);Lv(E,34,e.visibility);l=e.playbackRate;if(l!==void 0){var k=new ArrayBuffer(4);(new Float32Array(k))[0]=l;l=(new Uint32Array(k))[0];if(l!==void 0)for(a_(E,285),Px(E,4),k=0;k<4;)E.view.setUint8(E.pos,l&255),l>>=8,E.pos+=1,k+=1}Lv(E,36,e.d6); Z$(E,38,e.mediaCapabilities,OpW,3);Lv(E,39,e.UV4);Lv(E,40,e.KO);Lv(E,44,e.playerState);hP(E,46,e.vA);Lv(E,48,e.zV);Lv(E,50,e.PB);Lv(E,51,e.pB);Lv(E,54,e.hL);if(e.PH)for(l=0;l>31));NL(E,2,e.message)}; BYW=function(E,e){Lv(E,1,e.clientState);Z$(E,2,e.XRn,QwW,1)}; xrS=function(E,e){ML(E,1,e.te5);Z$(E,2,e.BOH,W6S,3);Z$(E,3,e.coldStartInfo,BYW,3)}; puX=function(E,e){Lv(E,1,e.type);ML(E,2,e.value)}; Cxy=function(E,e){NL(E,1,e.hl);NL(E,12,e.deviceMake);NL(E,13,e.deviceModel);Lv(E,16,e.clientName);NL(E,17,e.clientVersion);NL(E,18,e.osName);NL(E,19,e.osVersion)}; ok0=function(E,e){NL(E,1,e.name);NL(E,2,e.value)}; A9=function(E,e){NL(E,1,e.url);if(e.bX)for(var l=0;l0&&!(R5X()>(0,g.dE)()-E*1E3))return 0;E=g.cK("yt-player-quality");if(typeof E==="string"){if(E=g.$f[E],E>0)return E}else if(E instanceof Object)return E.quality;return 0}; Bm=function(){var E=g.cK("yt-player-proxima-pref");return E==null?null:E}; qGp=function(){var E=g.cK("yt-player-quality");if(E instanceof Object&&E.quality&&E.previousQuality){if(E.quality>E.previousQuality)return 1;if(E.quality0&&e[0]?E.getAutoplayPolicy(e[0]):E.getAutoplayPolicy("mediaelement");if(ude[l])return ude[l]}}catch(k){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; iQ=function(E){return E.wG||E.vG||E.mutedAutoplay}; Ajy=function(E,e){return iQ(E)?e!==1&&e!==2&&e!==0?"AUTOPLAY_STATUS_UNAVAILABLE":E.s0?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; Cj0=function(E,e,l){var k=e.Y();E.thirdParty||(E.thirdParty={});k.ancestorOrigins&&(E.thirdParty.embeddedPlayerContext=Object.assign({},E.thirdParty.embeddedPlayerContext,{ancestorOrigins:k.ancestorOrigins}));k.L("embeds_enable_autoplay_and_visibility_signals")&&(k.vy!=null&&(E.thirdParty.embeddedPlayerContext=Object.assign({},E.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(k.vy)})),k.Vh&&(E.thirdParty.embeddedPlayerContext=Object.assign({},E.thirdParty.embeddedPlayerContext,{visibilityFractionSource:k.Vh})), E.thirdParty.embeddedPlayerContext=Object.assign({},E.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Tu(),autoplayIntended:iQ(e),autoplayStatus:Ajy(e,l)}))}; p_8=function(E){var e=[];E=g.T(E.split(","));for(var l=E.next();!l.done;l=E.next()){var k=l.value;k&&((l=k.startsWith("!"))&&(k=k.substring(1)),k=k.split("-"),k.length<3||e.push({D1:k[0],platform:k[1],deviceVersion:k[2],xD:l}))}return e}; W3e=function(E){return p_8(E).map(function(e){return{deviceInterface:xge[Qv7[e.D1]]||0,deviceVersion:e.deviceVersion||"",isSleeping:e.xD}})}; g.$n=function(E,e){this.id=E;this.gC=e;this.captionTracks=[];this.Z=this.S=null;this.xtags="";this.W=!1;this.T=null;this.G="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";E=this.gC.id.split(".");E.length>1&&(this.W=E[1]==="2")}; U1=function(E,e,l,k,H){this.G=E;this.T=e;this.Z=l;this.reason=k;this.Kg=H===void 0?0:H}; g.J9=function(E,e,l,k){return new U1(g.$f[E]||0,g.$f[e]||0,l,k)}; yG=function(E){if(cm&&E.Kg)return!1;var e=g.$f.auto;return E.G===e&&E.T===e}; IJ=function(E){return j$[E.T||E.G]||"auto"}; B0X=function(E,e){e=g.$f[e];return E.G<=e&&(!E.T||E.T>=e)}; Fv=function(E){return"["+E.G+"-"+E.T+", override: "+(E.Z+", reason: "+E.reason+"]")}; f_=function(E,e,l){this.videoInfos=E;this.T=e;this.audioTracks=[];if(this.T){E=new Set;l==null||l({ainfolen:this.T.length});e=g.T(this.T);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!k.gC||E.has(k.gC.id)){var H=void 0,O=void 0,X=void 0;(X=l)==null||X({atkerr:!!k.gC,itag:k.itag,xtag:k.T,lang:((H=k.gC)==null?void 0:H.name)||"",langid:((O=k.gC)==null?void 0:O.id)||""})}else H=new g.$n(k.id,k.gC),E.add(k.gC.id),this.audioTracks.push(H);l==null||l({atklen:this.audioTracks.length})}}; VG=function(){g.a.apply(this,arguments);this.T=null}; dg9=function(E,e,l,k,H,O,X){if(E.T)return E.T;var A={},C=new Set,p={};if(S$(k)){for(var x in k.T)k.T.hasOwnProperty(x)&&(E=k.T[x],p[E.info.DM]=[E.info]);return p}x=oAS(e,k,A);O&&H({aftsrt:rk(x)});for(var Q={},W=g.T(Object.keys(x)),B=W.next();!B.done;B=W.next()){B=B.value;for(var w=g.T(x[B]),U=w.next();!U.done;U=w.next()){U=U.value;var c=U.itag,V=void 0,F=B+"_"+(((V=U.video)==null?void 0:V.fps)||0);Q.hasOwnProperty(F)?Q[F]===!0?p[B].push(U):A[c]=Q[F]:(V=DJ(e,U,l,k.isLive,C),V!==!0?(X.add(B),A[c]=V, V==="disablevp9hfr"&&(Q[F]="disablevp9hfr")):(p[B]=p[B]||[],p[B].push(U),Q[F]=!0))}}O&&H({bfflt:rk(p)});for(var r in p)p.hasOwnProperty(r)&&(k=r,p[k]&&p[k][0].qK()&&(p[k]=p[k],p[k]=w_y(e,p[k],A),p[k]=zxl(p[k],A)));O&&Object.keys(A).length>0&&H({rjr:CL(A)});e=g.T(C.values());for(k=e.next();!k.done;k=e.next())(k=l.S.get(k.value))&&--k.FD;O&&H({aftflt:rk(p)});E.T=g.q$(p,function(P){return!!P.length}); return E.T}; T0p=function(E,e,l,k,H,O,X,A){A=A===void 0?!1:A;if(e.yf&&X&&X.length>1&&!(e.xE>0||e.N)){for(var C=e.G||!!H,p=C&&e.Wh?O:void 0,x=oAS(e,k),Q=[],W=[],B={},w=0;w0&&W&&H&&(x=[X,l],r=H.concat(W).filter(function(P){return P})); if(r.length&&!e.Ni){Pm(r,x);if(C){C=[];e=g.T(r);for(k=e.next();!k.done;k=e.next())C.push(k.value.itag);O({hbdfmt:C.join(".")})}return J2(new f_(r,E,p))}r=fnX(e);r=g.Gd(r,A);if(!r){if(Q[X])return O=Q[X],Pm(O),J2(new f_(O,E,p));C&&O({novideo:1});return UN()}e.iN&&(r==="1"||r==="1h")&&Q[l]&&(X=aJ(Q[r]),x=aJ(Q[l]),x>X?r=l:x===X&&VE0(Q[l])&&(r=l));r==="9"&&Q.h&&aJ(Q.h)>aJ(Q["9"])&&(r="h");e.rH&&k.isLive&&r==="("&&Q.H&&aJ(Q["("])<1440&&(r="H");C&&O({vfmly:L_(r)});e=Q[r];if(!e.length)return C&&O({novfmly:L_(r)}), UN();Pm(e);return J2(new f_(e,E,p))}; $gZ=function(E,e){var l=!(!E.m&&!E.M),k=!(!E.mac3&&!E.MAC3),H=!(!E.meac3&&!E.MEAC3);E=!(!E.i&&!E.I);e.dO=E;return l||k||H||E}; VE0=function(E){E=g.T(E);for(var e=E.next();!e.done;e=E.next())if(e=e.value,e.itag&&SUZ.has(e.itag))return!0;return!1}; Jj0=function(E){E=g.T(E);for(var e=E.next();!e.done;e=E.next())if(e.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; L_=function(E){switch(E){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return E}}; rk=function(E){var e=[],l;for(l in E)if(E.hasOwnProperty(l)){var k=l;e.push(L_(k));k=g.T(E[k]);for(var H=k.next();!H.done;H=k.next())e.push(H.value.itag)}return e.join(".")}; irp=function(E,e,l,k,H,O){var X={},A={};g.t0(e,function(C,p){C=C.filter(function(x){var Q=x.itag;if(!x.oG)return A[Q]="noenc",!1;if(O.GX&&x.DM==="(h"&&O.Yt)return A[Q]="lichdr",!1;if(!E.W&&x.DM==="1e")return A[Q]="noav1enc",!1;if(x.DM==="("||x.DM==="(h"){if(E.Z&&l&&l.flavor==="widevine"){var W=x.mimeType+"; experimental=allowed";(W=!!x.oG[l.flavor]&&!!l.T[W])||(A[Q]=x.oG[l.flavor]?"unspt":"noflv");return W}if(!h9(E,M3.CRYPTOBLOCKFORMAT)&&!E.h0||E.SR)return A[Q]=E.SR?"disvp":"vpsub",!1}return l&&x.oG[l.flavor]&& l.T[x.mimeType]?!0:(A[Q]=l?x.oG[l.flavor]?"unspt":"noflv":"nosys",!1)}); C.length&&(X[p]=C)}); k&&Object.entries(A).length&&H({rjr:CL(A)});return X}; zxl=function(E,e){var l=zs(E,function(k,H){return H.video.fps>32?Math.min(k,H.video.width):k},Infinity); l32||k.video.widthE.J)return"max"+E.J;if(E.b3&&e.DM==="h"&&e.video&&e.video.qualityOrdinal>1080)return"blkhigh264";if(e.DM==="(h"&&!l.j)return"enchdr";if((k===void 0?0:k)&&rB(e)&&!E.fg)return"blk51live";if((e.DM==="MAC3"||e.DM==="mac3")&&!E.S)return"blkac3";if((e.DM==="MEAC3"||e.DM==="meac3")&&!E.W)return"blkeac3";if(e.DM==="M"||e.DM==="m")return"blkaac51"; if((e.DM==="so"||e.DM==="sa")&&!E.pg)return"blkamb";if(!E.GX&&DZZ(e)&&(!l.W||e.DM!=="1e"))return"cbc";if(!l.W&&DZZ(e)&&e.DM==="1e")return"cbcav1";if((e.DM==="i"||e.DM==="I")&&!E.jE)return"blkiamf";var O;if(E.In&&((O=e.audio)==null?void 0:O.G)===!0)return"blkvbcabr";var X,A;if(E.jR&&(e.DM==="1"||e.DM==="1h"||l.W&&e.DM==="1e")&&((X=e.video)==null?0:X.qualityOrdinal)&&((A=e.video)==null?void 0:A.qualityOrdinal)>E.jR)return"av1cap";k=l.S.get(e.DM);if(!E.dC&&k&&k.FD>0)return H.add(e.DM),"byerr";var C; if((C=e.video)==null?0:C.fps>32){if(!l.Qd&&!h9(l,M3.FRAMERATE))return"capHfr";if(E.gH&&e.video.qualityOrdinal>=4320)return"blk8khfr";if(IW(e)&&E.je&&e.oG&&e.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(E.Kg&&e.Kg>E.Kg)return"ratecap";E=rjX(l,e);return E!==!0?E:!0}; Pm=function(E,e){e=e===void 0?[]:e;g.m2(E,function(l,k){var H=k.Kg-l.Kg;if(!l.qK()||!k.qK())return H;var O=k.video.height*k.video.width-l.video.height*l.video.width;!O&&e&&e.length>0&&(l=e.indexOf(l.DM)+1,k=e.indexOf(k.DM)+1,O=l===0||k===0?k||-1:l-k);O||(O=H);return O})}; g.N3=function(E,e){this[u[31]]=E;this[u[60]]=e===void 0?!1:e;this[u[14]]=this[u[9]]=this[u[7]]=u[8];this[u[4]]={};this[u[2]]=u[8]}; Yn=function(E){ZJ(E);return E[u[14]]}; mT=function(E){return E[u[31]]?E[u[31]][u[11]](u[58]):E[u[7]]===u[58]}; DgZ=function(E){ZJ(E);return g.e8(E[u[4]],function(e){return e!==null})}; gk=function(E){ZJ(E);var e=decodeURIComponent(E[u[39]](u[44])||u[8])[u[12]](u[36]);return E[u[9]]===u[17]&&e[u[10]]>1&&!!e[1]}; K_=function(E,e){e=e===void 0?!1:e;ZJ(E);if(E[u[9]]!==u[17]){var l=E[u[18]]();l[u[0]](u[75],u[1]);return l}var k=E[u[21]]();l=new g.tZ(k);var H=E[u[39]](u[77]),O=decodeURIComponent(E[u[39]](u[44])||u[8])[u[12]](u[36]);if(H&&O&&O[u[10]]>1&&O[1])return k=l.T,E=k[u[82]](/^[^.]*/,u[8]),g.Eg(l,(k[u[25]](u[30])===0?u[30]:u[37])+H+u[74]+O[1]+E),l=new g.N3(l[u[42]]()),l[u[0]](u[32],u[1]),l;if(e)return l=E[u[18]](),l[u[0]](u[32],u[1]),l;H=l.T[u[49]](u[45]);l.T[u[49]](u[71])?(g.Eg(l,u[84]),k=l[u[42]]()):l.T[u[49]](u[40])? (g.Eg(l,u[76]),k=l[u[42]]()):(l=J8X(k),Pu(l)&&(k=l));l=new g.N3(k);l[u[0]](u[85],u[1]);H&&l[u[0]](u[53],u[57]);return l}; ZJ=function(E){if(E[u[31]]){if(!(Pu(E[u[31]])||E[u[31]][u[11]](u[58])||E[u[31]][u[11]](u[86])||E[u[31]][u[11]](u[55])))throw new g.PK(u[23],E[u[31]]);var e=g.uF(E[u[31]]);E[u[7]]=e.W;E[u[14]]=e.T+(e.Z!=null?u[54]+e.Z:u[8]);var l=e.G;if(l[u[11]](u[17]))E[u[9]]=u[17],l=l[u[5]](14);else if(l[u[11]](u[6]))E[u[9]]=u[6],l=l[u[5]](13);else if(l[u[11]](u[81])){var k=l[u[25]](u[47],12),H=l[u[25]](u[47],k+1);k>0&&H>0?(E[u[9]]=l[u[5]](0,H),l=l[u[5]](H+1)):(E[u[9]]=l,l=u[8])}else E[u[9]]=l,l=u[8];k=E[u[4]];E[u[4]]= bry(l);Object[u[78]](E[u[4]],vAX(e.S.toString()));Object[u[78]](E[u[4]],k);E[u[4]][u[62]]===u[56]&&(delete E[u[4]][u[62]],E[u[9]]+=u[73]);E[u[31]]=u[8];E[u[2]]=u[8];E[u[60]]&&(ZJ(E),e=E[u[4]][u[35]]||null)&&(e=Pjp[0](e),E[u[0]](u[35],e))}}; anW=function(E){ZJ(E);var e=E[u[7]]+(E[u[7]]?u[46]:u[87])+E[u[14]]+E[u[9]];if(DgZ(E)){var l=[];g.t0(E[u[4]],function(k,H){k!==null&&l[u[15]](H+u[43]+k)}); e+=u[48]+l[u[69]](u[20])}return e}; bry=function(E){E=E[u[12]](u[47]);var e=0;E[0]||e++;for(var l={};e0?L3X(e,k[u[5]](0,H),k[u[5]](H+1)):k&&(e[k]=u[8])}return e}; L3X=function(E,e,l){if(e===u[33]){var k;(k=l[u[25]](u[43]))>=0?(e=u[72]+l[u[5]](0,k),l=l[u[5]](k+1)):(k=l[u[25]](u[41]))>=0&&(e=u[72]+l[u[5]](0,k),l=l[u[5]](k+3))}E[e]=l}; n_=function(E){var e=g.M(E,hx9)||E[u[67]];E={EY:!1,JD:u[8],nZ:u[8],s:u[8]};if(!e)return E;e=KF(e);E[u[26]]=!0;E[u[22]]=e[u[2]];E[u[70]]=e[u[80]];E[u[65]]=e[u[65]];return E}; RJ=function(E,e,l,k,H,O,X,A,C){this.A0=E;this.startTime=e;this.duration=l;this.ingestionTime=k;this.sourceURL=H;this.TN=C;this.endTime=e+l;this.T=X||0;this.range=O||null;this.pending=A||!1;this.TN=C||null}; g.s1=function(){this.segments=[];this.T=null;this.G=!0;this.Z=""}; ME9=function(E,e){if(e>E.Oz())E.segments=[];else{var l=dr(E.segments,function(k){return k.A0>=e},E); l>0&&E.segments.splice(0,l)}}; t9=function(E,e,l,k,H){H=H===void 0?!1:H;this.data=E;this.offset=e;this.size=l;this.type=k;this.T=(this.G=H)?0:8;this.dataOffset=this.offset+this.T}; q3=function(E){var e=E.data.getUint8(E.offset+E.T);E.T+=1;return e}; Et=function(E){var e=E.data.getUint16(E.offset+E.T);E.T+=2;return e}; ef=function(E){var e=E.data.getInt32(E.offset+E.T);E.T+=4;return e}; lH=function(E){var e=E.data.getUint32(E.offset+E.T);E.T+=4;return e}; kz=function(E){var e=E.data;var l=E.offset+E.T;e=e.getUint32(l)*4294967296+e.getUint32(l+4);E.T+=8;return e}; Hs=function(E,e){e=e===void 0?NaN:e;if(isNaN(e))var l=E.size;else for(l=E.T;l1?Math.ceil(H*e):Math.floor(H*e))}E.skip(1);l=q3(E)<<16|Et(E);if(l&256){k=l&1;H=l&4;var O=l&512,X=l&1024,A=l&2048;l=lH(E);k&&E.skip(4);H&&E.skip(4);k=(O?4:0)+(X?4:0)+(A?4:0);for(H=0;H1?Math.ceil(X*e):Math.floor(X*e)),E.skip(k)}}}; QO=function(E){E=new DataView(E.buffer,E.byteOffset,E.byteLength);return(E=g.p0(E,0,1836476516))?g.xz(E):NaN}; Ef9=function(E){var e=g.p0(E,0,1937011556);if(!e)return null;e=Ws(E,e.dataOffset+8,1635148593)||Ws(E,e.dataOffset+8,1635135537);if(!e)return null;var l=Ws(E,e.dataOffset+78,1936995172),k=Ws(E,e.dataOffset+78,1937126244);if(!k)return null;e=null;if(l)switch(l.skip(4),q3(l)){default:e=0;break;case 1:e=2;break;case 2:e=1;break;case 3:e=255}var H=l=null,O=null;if(k=Ws(E,k.dataOffset,1886547818)){var X=Ws(E,k.dataOffset,1886546020),A=Ws(E,k.dataOffset,2037673328);if(!A&&(A=Ws(E,k.dataOffset,1836279920), !A))return null;X&&(X.skip(4),l=ef(X)/65536,O=ef(X)/65536,H=ef(X)/65536);E=N0l(A);E=new DataView(E.buffer,E.byteOffset+8,E.byteLength-8);return new tEX(e,l,O,H,E)}return null}; Ws=function(E,e,l){for(;Bs(E,e);){var k=oo(E,e);if(k.type===l)return k;e+=k.size}return null}; g.p0=function(E,e,l){for(;Bs(E,e);){var k=oo(E,e);if(k.type===l)return k;e=wt(k.type)?e+8:e+k.size}return null}; g.zS=function(E){if(E.data.getUint8(E.dataOffset)){var e=E.data;E=E.dataOffset+4;e=e.getUint32(E)*4294967296+e.getUint32(E+4)}else e=E.data.getUint32(E.dataOffset+4);return e}; oo=function(E,e){var l=E.getUint32(e),k=E.getUint32(e+4);return new t9(E,e,l,k)}; g.xz=function(E){var e=E.data.getUint8(E.dataOffset)?20:12;return E.data.getUint32(E.dataOffset+e)}; eM8=function(E){E=new t9(E.data,E.offset,E.size,E.type,E.G);var e=q3(E);E.skip(7);var l=lH(E);if(e===0){e=lH(E);var k=lH(E)}else e=kz(E),k=kz(E);E.skip(2);for(var H=Et(E),O=[],X=[],A=0;A122)return!1}return!0}; wt=function(E){return E===1701082227||E===1836019558||E===1836019574||E===1835297121||E===1835626086||E===1937007212||E===1953653094||E===1953653099||E===1836475768}; l9W=function(E){E.skip(4);return{La3:Hs(E,0),value:Hs(E,0),timescale:lH(E),tb5:lH(E),eventDuration:lH(E),id:lH(E),s9:Hs(E),offset:E.offset}}; g.k_7=function(E){var e=Ws(E,0,1701671783);if(!e)return null;var l=l9W(e),k=l.La3;l=C0(l.s9);if(E=Ws(E,e.offset+e.size,1701671783))if(E=l9W(E),E=C0(E.s9),l&&E){e=g.T(Object.keys(E));for(var H=e.next();!H.done;H=e.next())H=H.value,l[H]=E[H]}return l?new Ar(l,k):null}; dt=function(E,e){for(var l=Ws(E,0,e);l;){var k=l;k.type=1936419184;k.data.setUint32(k.offset+4,1936419184);l=Ws(E,l.offset+l.size,e)}}; g.GS=function(E,e){for(var l=0,k=[];Bs(E,l);){var H=oo(E,l);H.type===e&&k.push(H);l=wt(H.type)?l+8:l+H.size}return k}; HL9=function(E,e){var l=g.p0(E,0,1937011556),k=g.p0(E,0,1953654136);if(!l||!k||E.getUint32(l.offset+12)>=2)return null;var H=new DataView(e.buffer,e.byteOffset,e.length),O=g.p0(H,0,1937011556);if(!O)return null;e=H.getUint32(O.dataOffset+8);k=H.getUint32(O.dataOffset+12);if(k!==1701733217&&k!==1701733238)return null;k=new Zrl(E.byteLength+e);Ot(k,E,0,l.offset+12);k.data.setInt32(k.offset,2);k.offset+=4;Ot(k,E,l.offset+16,l.size-16);Ot(k,H,H.byteOffset+O.dataOffset+8,e);Ot(k,E,l.offset+l.size,E.byteLength- (l.offset+l.size));l=g.T([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(H=l.next();!H.done;H=l.next())H=g.p0(E,0,H.value),k.data.setUint32(H.offset,H.size+e);E=g.p0(k.data,0,1953654136);k.data.setUint32(E.offset+16,2);return k.data}; OLS=function(E){var e=g.p0(E,0,1937011556);if(!e)return null;var l=E.getUint32(e.dataOffset+12);if(l!==1701733217&&l!==1701733238)return null;e=Ws(E,e.offset+24+(l===1701733217?28:78),1936289382);if(!e)return null;l=Ws(E,e.offset+8,1935894637);if(!l||E.getUint32(l.offset+12)!==1667392371)return null;e=Ws(E,e.offset+8,1935894633);if(!e)return null;e=Ws(E,e.offset+8,1952804451);if(!e)return null;l=new Uint8Array(16);for(var k=0;k<16;k++)l[k]=E.getInt8(e.offset+16+k);return l}; TS=function(E,e){this.T=E;this.pos=0;this.start=e||0}; iH=function(E){return E.pos>=E.T.byteLength}; yO=function(E,e,l){var k=new TS(l);if(!$z(k,E))return!1;k=Ut(k);if(!Jr(k,e))return!1;for(E=0;e;)e>>>=8,E++;e=k.start+k.pos;var H=cs(k,!0);k=E+(k.start+k.pos-e)+H;k=k>9?XRl(k-9,8):XRl(k-2,1);E=e-E;l.setUint8(E++,236);for(e=0;el;H++)l=l*256+VO(E),k*=128;return e?l-k:l}; Io=function(E){var e=cs(E,!0);E.pos+=e}; Cpy=function(E){if(!Jr(E,440786851,!0))return null;var e=E.pos;cs(E,!1);var l=cs(E,!0)+E.pos-e;E.pos=e+l;if(!Jr(E,408125543,!1))return null;cs(E,!0);if(!Jr(E,357149030,!0))return null;var k=E.pos;cs(E,!1);var H=cs(E,!0)+E.pos-k;E.pos=k+H;if(!Jr(E,374648427,!0))return null;var O=E.pos;cs(E,!1);var X=cs(E,!0)+E.pos-O,A=new Uint8Array(l+12+H+X),C=new DataView(A.buffer);A.set(new Uint8Array(E.T.buffer,E.T.byteOffset+e,l));C.setUint32(l,408125543);C.setUint32(l+4,33554431);C.setUint32(l+8,4294967295); A.set(new Uint8Array(E.T.buffer,E.T.byteOffset+k,H),l+12);A.set(new Uint8Array(E.T.buffer,E.T.byteOffset+O,X),l+12+H);return A}; Sf=function(E){var e=E.pos;E.pos=0;var l=1E6;$z(E,[408125543,357149030,2807729])&&(l=jf(E));E.pos=e;return l}; pRS=function(E,e){var l=E.pos;E.pos=0;if(E.T.getUint8(E.pos)!==160&&!rt(E)||!Jr(E,160))return E.pos=l,NaN;cs(E,!0);var k=E.pos;if(!Jr(E,161))return E.pos=l,NaN;cs(E,!0);VO(E);var H=VO(E)<<8|VO(E);E.pos=k;if(!Jr(E,155))return E.pos=l,NaN;k=jf(E);E.pos=l;return(H+k)*e/1E9}; rt=function(E){if(!x58(E)||!Jr(E,524531317))return!1;cs(E,!0);return!0}; x58=function(E){if(E.jc()){if(!Jr(E,408125543))return!1;cs(E,!0)}return!0}; $z=function(E,e){for(var l=0;l0){var k=vAX(e.substring(l+1));g.t0(k,function(H,O){this.set(O,H)},E); e=e.substring(0,l)}e=bry(e);g.t0(e,function(H,O){this.set(O,H)},E)}; WUe=function(E){var e=E.Rr.cN(),l=[];g.t0(E.T,function(H,O){l.push(O+"="+H)}); if(!l.length)return e;var k=l.join("&");E=DgZ(E.Rr)?"&":"?";return e+E+k}; bH=function(E,e){var l=new g.N3(e);(e=l.get("req_id"))&&E.set("req_id",e);g.t0(E.T,function(k,H){l["set"](H,null)}); return l}; BBS=function(){this.S=this.Z=this.T=this.timedOut=this.started=this.W=this.G=0}; vs=function(E){E.W=(0,g.dE)();E.started=0;E.timedOut=0;E.T=0}; Ps=function(E,e){var l=E.started+E.T*4;e&&(l+=E.Z);l=Math.max(0,l-3);return Math.pow(1.6,l)}; ao=function(E,e){E[e]||(E[e]=new BBS);return E[e]}; L0=function(E){this.V=this.j=this.W=this.Z=0;this.N=this.J=!1;this.T=E;this.G=E.clone()}; ofl=function(E,e,l){if(mT(E.T))return!1;var k=ao(l,Yn(E.T));if(k.timedOut<1&&k.T<1)return!1;k=k.timedOut+k.T;E=hr(E,e);l=ao(l,Yn(E));return l.timedOut+l.T+01?e=e.pk:(l=ao(l,NN(E,E.Nd(e,l),e)),e=Math.max(E.W,l.timedOut)+e.Ax*(E.Z-E.W)+.25*E.j,e=e>3?1E3*Math.pow(1.6,e-3):0);return e===0?!0:E.V+e<(0,g.dE)()}; wRy=function(E,e,l){E.T.set(e,l);E.G.set(e,l);E.S&&E.S.set(e,l)}; zM0=function(E,e,l,k,H){++E.Z;e&&++E.W;Yn(l.Rr).startsWith("redirector.")&&(E.T=E.G.clone(),delete E.S,k.s0&&delete H[Yn(E.T)])}; Yz=function(E){return E?(E.itag||"")+";"+(E.lmt||0)+";"+(E.xtags||""):""}; mX=function(E,e,l,k){this.initRange=l;this.indexRange=k;this.T=null;this.Z=!1;this.J=0;this.S=this.NE=this.G=null;this.info=e;this.XS=new L0(E)}; gt=function(E,e){this.start=E;this.end=e;this.length=e-E+1}; K0=function(E){E=E.split("-");var e=Number(E[0]),l=Number(E[1]);if(!isNaN(e)&&!isNaN(l)&&E.length===2&&(E=new gt(e,l),!isNaN(E.start)&&!isNaN(E.end)&&!isNaN(E.length)&&E.length>0))return E}; n0=function(E,e){return new gt(E,E+e-1)}; d59=function(E){return E.end==null?{start:String(E.start)}:{start:String(E.start),end:String(E.end)}}; Ro=function(E){if(!E)return new gt(0,0);var e=Number(E.start);E=Number(E.end);if(!isNaN(e)&&!isNaN(E)&&(e=new gt(e,E),e.length>0))return e}; tr=function(E,e,l,k,H,O,X,A,C,p,x,Q){k=k===void 0?"":k;this.type=E;this.T=e;this.range=l;this.source=k;this.C_=x;this.clipId=Q===void 0?"":Q;this.V=[];this.j="";this.A0=-1;this.pg=this.kt=0;this.j=k;this.A0=H>=0?H:-1;this.startTime=O||0;this.duration=X||0;this.G=A||0;this.Z=C>=0?C:this.range?this.range.length:NaN;this.W=this.range?this.G+this.Z===this.range.length:p===void 0?!!this.Z:p;this.range?(this.S=this.startTime+this.duration*this.G/this.range.length,this.N=this.duration*this.Z/this.range.length, this.J=this.S+this.N):G_8(this)}; G_8=function(E){E.S=E.startTime;E.N=E.duration;E.J=E.S+E.N}; TBX=function(E,e,l){var k=!(!e||e.T!==E.T||e.type!==E.type||e.A0!==E.A0);return l?k&&!!e&&(E.range&&e.range?e.range.end===E.range.end:e.range===E.range)&&e.G+e.Z===E.G+E.Z:k}; qN=function(E){return E.type===1||E.type===2}; EZ=function(E){return E.type===3||E.type===6}; ez=function(E,e){return E.T===e.T?E.range&&e.range?E.range.start+E.G+E.Z===e.range.start+e.G:E.A0===e.A0?E.G+E.Z===e.G:E.A0+1===e.A0&&e.G===0&&E.W:!1}; $58=function(E,e){return E.A0!==e.A0&&e.A0!==E.A0+1||E.type!==e.type?!1:ez(E,e)?!0:Math.abs(E.S-e.S)<=1E-6&&E.A0===e.A0?!1:iLX(E,e)}; iLX=function(E,e){return ez(E,e)||Math.abs(E.J-e.S)<=1E-6||E.A0+1===e.A0&&e.G===0&&E.W?!0:!1}; lS=function(E){return E.A0+(E.W?1:0)}; U5e=function(E){E.length===1||g.wP(E,function(l){return!!l.range}); for(var e=1;e=e.range.start+e.G&&E.range.start+E.G+E.Z<=e.range.start+e.G+e.Z:E.A0===e.A0&&E.G>=e.G&&(E.G+E.Z<=e.G+e.Z||e.W)}; f97=function(E,e){return E.T!==e.T?!1:E.type===4&&e.type===3&&E.T.Sv()?(E=E.T.Zo(E),LY(E,function(l){return f97(l,e)})):E.A0===e.A0&&!!e.Z&&e.G+e.Z>E.G&&e.G+e.Z<=E.G+E.Z}; Hl=function(E,e){var l=e.A0;E.j="updateWithSegmentInfo";E.A0=l;if(E.startTime!==e.startTime||E.duration!==e.duration)E.startTime=e.startTime+E.kt,E.duration=e.duration,G_8(E)}; OZ=function(E,e){var l=this;this.H5=E;this.S=this.T=null;this.W=this.Sr=NaN;this.Nd=this.requestId=null;this.p5={hEn:function(){return l.range}}; this.XS=E[0].T.XS;this.G=e||"";this.H5[0].range&&this.H5[0].Z>0&&(J48(E)?(this.range=U5e(E),this.Z=this.range.length):(this.range=this.H5[this.H5.length-1].range,this.Z=c4p(E)))}; XK=function(E){return!qN(E.H5[E.H5.length-1])}; uS=function(E){return E.H5[E.H5.length-1].type===4}; g.Af=function(E,e,l){l=E.Nd===null?E.XS.Nd(e,l,E.H5[0].type):E.Nd;if(E.T){e=l?K_(E.T,e.vJ):E.T;var k=new Do(e);k.get("alr")||k.set("alr","yes");E.G&&QWy(k,E.G)}else/http[s]?:\/\//.test(E.G)?k=new Do(new g.N3(E.G)):(k=MN(E.XS,l,e),E.G&&QWy(k,E.G));(e=E.range)?k.set("range",e.toString()):E.H5[0].T.On()&&E.H5.length===1&&E.H5[0].G&&k.set("range",E.H5[0].G+"-");E.requestId&&k.set("req_id",E.requestId);isNaN(E.Sr)||k.set("headm",E.Sr.toString());isNaN(E.W)||k.set("mffa",E.W+"ms");E.urlParams&&g.t0(E.urlParams, function(H,O){k.set(O,H)}); return k}; VO8=function(E){if(E.range)return E.Z;E=E.H5[0];return Math.round(E.N*E.T.info.Kg)}; SO0=function(E,e){return Math.max(0,E.H5[0].S-e)}; Cx=function(E,e,l,k,H,O){O=O===void 0?0:O;mX.call(this,E,e,k,void 0);this.W=l;this.R6=O;this.index=H||new g.s1}; r40=function(E,e,l,k,H){this.A0=E;this.startSecs=e;this.s1=l;this.T=k||NaN;this.G=H||NaN}; px=function(E,e,l){for(;E;E=E.parentNode)if(E.attributes&&(!l||E.nodeName===l)){var k=E.getAttribute(e);if(k)return k}return""}; xw=function(E,e){for(;E;E=E.parentNode){var l=E.getElementsByTagName(e);if(l.length>0)return l[0]}return null}; D5p=function(E){if(!E)return 0;var e=E.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return e?(Number(e[2])|0)*3600+(Number(e[4])|0)*60+(Number(e[6])|0):Number(E)|0}; bLl=function(E){return E.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?E+"Z":E}; Qu=function(){this.T=[];this.G=null;this.J=0;this.Z=[];this.W=!1;this.j="";this.S=-1}; vfS=function(E){var e=E.Z;E.Z=[];return e}; Ppv=function(){this.S=[];this.T=null;this.G={};this.Z={}}; MOW=function(E,e){var l=[];e=Array.from(e.getElementsByTagName("SegmentTimeline"));e=g.T(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var H=k.parentNode.parentNode,O=null;H.nodeName==="Period"?O=a98(E):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",O=LU8(E,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",O=hMW(E,H));if(O==null)return;O.update(k);g.VH(l,vfS(O))}g.VH(E.S,l);jZX(E.S,function(X){return X.startSecs*1E3+X.T})}; NBW=function(E){E.T&&(E.T.T=[]);g.t0(E.G,function(e){e.T=[]}); g.t0(E.Z,function(e){e.T=[]})}; a98=function(E){E.T||(E.T=new Qu);return E.T}; LU8=function(E,e){E.G[e]||(E.G[e]=new Qu);return E.G[e]}; hMW=function(E,e){E.Z[e]||(E.Z[e]=new Qu);return E.Z[e]}; Bl=function(E){var e=E===void 0?{}:E;E=e.R6===void 0?0:e.R6;var l=e.mW===void 0?!1:e.mW;var k=e.dl===void 0?0:e.dl;var H=e.Tg===void 0?0:e.Tg;var O=e.SY===void 0?Infinity:e.SY;var X=e.e9===void 0?0:e.e9;var A=e.Af===void 0?!1:e.Af;e=e.B2===void 0?!1:e.B2;g.s1.call(this);this.x7=this.CF=-1;this.xg=E;this.dl=k;this.mW=l;this.Tg=H;this.SY=O;this.e9=X;((this.Af=A)||isFinite(O)&&this.SY>0)&&l&&Wl&&(this.G=!1,this.Z="postLive");this.B2=e}; oc=function(E,e){return N$(E.segments,function(l){return e-l.A0})}; wa=function(E,e,l){l=l===void 0?{}:l;Cx.call(this,E,e,"",void 0,void 0,l.R6||0);this.index=new Bl(l)}; zX=function(E,e,l){mX.call(this,E,e);this.W=l;E=this.index=new g.s1;E.G=!1;E.Z="d"}; ZL8=function(E,e,l){var k=E.index.wb(e),H=E.index.getStartTime(e),O=E.index.getDuration(e);l?O=l=0:l=E.info.Kg*O;return new OZ([new tr(3,E,void 0,"otfCreateRequestInfoForSegment",e,H,O,0,l)],k)}; YOX=function(E,e){if(!E.index.isLoaded()){var l=[],k=e.S;e=e.W.split(",").filter(function(x){return x.length>0}); for(var H=0,O=0,X=0,A=/^(\d+)/,C=/r=(\d+)/,p=0;p0&&(H.T=Math.min(H.T+X,10),H.G=O);H.T>0?(H.T--,H=!0):H=!1;if(H)typeof k==="function"&&(k=k()),console.log("plyr."+e,k);else{var A;k=((A=sW7.get(e))!=null?A:0)+1;sW7.set(e,k);k%100===1&&console.warn("plyr","plyr."+e+" is chatty, dropping logs.")}}}; RM7=function(){this.T=10;this.G=Date.now()}; TX=function(E,e){this.info=E;this.G=e;this.T=null;this.S=this.Z=-1;this.timestampOffset=0;this.isLocked=this.J=!1;this.W=this.info.T.i$()&&!this.info.G}; g.iS=function(E){return Za8(E.G)}; tOe=function(E,e){e=Math.min(e,E.info.Z);var l=E.G.split(e),k=l.Cz;l=new TX(new tr(E.info.type,E.info.T,E.info.range,E.info.j,E.info.A0,E.info.startTime,E.info.duration,E.info.G,e,!1,E.info.C_,E.info.clipId),l.AI);l.S=E.S;l.Z=E.Z;e=new TX(new tr(E.info.type,E.info.T,E.info.range,E.info.j,E.info.A0,E.info.startTime,E.info.duration,E.info.G+e,E.info.Z-e,E.info.W,E.info.C_,E.info.clipId),k);e.S=E.S;e.Z=E.Z;return[l,e]}; g.$w=function(E,e,l,k){l=l===void 0?!1:l;k=k===void 0?0:k;if(E.isLocked||e.isLocked||!ez(E.info,e.info)||E.info.W)return null;if(k){if(E.G.totalLength+e.G.totalLength>k)return null}else if(l&&(l=E.G,k=e.G,l=!(k.T.length?MAy(l,k.T[0]):1)),l)return null;l=new tr(E.info.type,E.info.T,E.info.range,E.info.j,E.info.A0,E.info.startTime,E.info.duration,E.info.G,E.info.Z,E.info.W,E.info.C_,E.info.clipId);k=e.info;l.Z+=k.Z;l.range&&(l.N+=k.N);l.J=k.J;l.W=k.W;k=new eV;l1(k,E.G);l1(k,e.G);l=new TX(l,k);l.T!= null&&e.T!=null&&(new g.da("dash")).T(414627957,"merged slice emsg overridden; prev: "+l.T.US()+" next: "+e.T.US());l.T=e.T||E.T;l.Z=E.Z!==-1?E.Z:e.Z;l.S=E.S!==-1?E.S:e.S;return l}; g.UZ=function(E){g.D9(E.info.T.info)||E.info.T.info.E1();if(E.Z!==-1)return E.Z;if(E.T&&gAW(E.T))return E.Z=gAW(E.T),E.Z;if(g.D9(E.info.T.info)){var e=g.iS(E);for(var l=E.info.T.T,k=NaN,H=NaN,O=0;Bs(e,O);){var X=oo(e,O);X.type===1936286840?H=X.data.getUint32(X.dataOffset+8):X.type===1836476516?H=g.xz(X):X.type===1952867444&&isNaN(k)&&(k=g.zS(X));O=wt(X.type)?O+8:O+X.size}!H&&l&&(H=QO(l));e=k/H}else e=new TS(g.iS(E)),l=E.W?e:new TS(new DataView(E.info.T.T.buffer)),k=Sf(l),l=e.pos,e.pos=0,rt(e)?Jr(e, 231)?(k=jf(e)*k/1E9,e.pos=l,e=k):(e.pos=l,e=NaN):(e.pos=l,e=NaN);E.Z=e||E.info.S;return E.Z}; EZX=function(E,e){E.timestampOffset>0&&(e-=E.timestampOffset);var l=g.UZ(E)+e;qOW(E,l);E.timestampOffset=e}; qOW=function(E,e){g.D9(E.info.T.info)||E.info.T.info.E1();E.Z=e;if(g.D9(E.info.T.info)){var l=g.iS(E);E=E.info.T.T;for(var k=NaN,H=NaN,O=0;Bs(l,O);){var X=oo(l,O);isNaN(k)&&(X.type===1936286840?k=X.data.getUint32(X.dataOffset+8):X.type===1836476516&&(k=g.xz(X)));if(X.type===1952867444){!k&&E&&(k=QO(E));var A=g.zS(X);isNaN(H)&&(H=Math.round(e*k)-A);var C=X;A+=H;if(C.data.getUint8(C.dataOffset)){var p=C.data;C=C.dataOffset+4;p.setUint32(C,Math.floor(A/4294967296));p.setUint32(C+4,A&4294967295)}else C.data.setUint32(C.dataOffset+ 4,A)}O=wt(X.type)?O+8:O+X.size}return!0}l=new TS(g.iS(E));E=E.W?l:new TS(new DataView(E.info.T.T.buffer));k=Sf(E);E=l.pos;l.pos=0;if(rt(l)&&Jr(l,231))if(H=cs(l,!0),e=Math.floor(e*1E9/k),Math.ceil(Math.log(e)/Math.log(2)/8)>H)e=!1;else{for(k=H-1;k>=0;k--)l.T.setUint8(l.pos+k,e&255),e>>>=8;l.pos=E;e=!0}else e=!1;return e}; cl=function(E,e){e=e===void 0?!1:e;var l=Jf(E);E=e?0:E.info.N;return l||E}; Jf=function(E){g.D9(E.info.T.info)||E.info.T.info.E1();if(E.T&&E.info.type===6)return E.T.R6;if(g.D9(E.info.T.info)){var e=g.iS(E);var l=0;e=g.GS(e,1936286840);e=g.T(e);for(var k=e.next();!k.done;k=e.next())k=eM8(k.value),l+=k.hq[0]/k.timescale;l=l||NaN;if(!(l>=0))a:{l=g.iS(E);e=E.info.T.T;for(var H=k=0,O=0;Bs(l,k);){var X=oo(l,k);if(X.type===1836476516)H=g.xz(X);else if(X.type===1836019558){!H&&e&&(H=QO(e));if(!H){l=NaN;break a}var A=Ws(X.data,X.dataOffset,1953653094),C=A;A=H;var p=Ws(C.data,C.dataOffset, 1952868452);C=Ws(C.data,C.dataOffset,1953658222);var x=ef(p);ef(p);x&2&&ef(p);p=x&8?ef(p):0;var Q=ef(C),W=Q&1;x=Q&4;var B=Q&256,w=Q&512,U=Q&1024;Q&=2048;var c=lH(C);W&&ef(C);x&&ef(C);for(var V=W=0;V2048?"":e.indexOf("https://")===0?e:""}; Vu=function(E,e,l){e.match(Q97);return E(e,l).then(function(k){var H=g.xP0(k.xhr);return H?Vu(E,H,l):k.xhr})}; bS=function(E,e,l){E=E===void 0?"":E;e=e===void 0?null:e;l=l===void 0?!1:l;g.sJ.call(this);var k=this;this.sourceUrl=E;this.isLivePlayback=l;this.jR=this.duration=0;this.isPremiere=this.Af=this.S=this.isLiveHeadPlayable=this.isLive=this.G=!1;this.SY=this.Tg=0;this.isOtf=this.sK=!1;this.c5=(0,g.dE)();this.pg=Infinity;this.T={};this.Z=new Map;this.state=this.Uc=0;this.timeline=null;this.isManifestless=!1;this.SR=[];this.J=null;this.h0=0;this.W="";this.fg=NaN;this.Qd=this.GX=this.timestampOffset=this.j= 0;this.Dy=this.Td=NaN;this.Wh=0;this.J0=this.V=!1;this.R4=[];this.gH={};this.kt=NaN;this.p5={jiR:function(A){Sz(k,A)}}; var H;this.b3=(H=e)==null?void 0:H.P5("html5_use_network_error_code_enums");W9e=!!e&&e.P5("html5_modern_vp9_mime_type");var O;ra=!((O=e)==null||!O.P5("html5_enable_flush_during_seek"))&&g.vg();var X;DY=!((X=e)==null||!X.P5("html5_enable_reset_audio_decoder"))&&g.vg()}; Bi8=function(E){return g.e8(E.T,function(e){return!!e.info.video&&e.info.video.qualityOrdinal>=2160})}; F37=function(E){return g.e8(E.T,function(e){return!!e.info.video&&e.info.video.isHdr()})}; bQ=function(E){return g.e8(E.T,function(e){return!!e.info.oG})}; g.oZW=function(E){return g.e8(E.T,function(e){return h4(e.info.mimeType)})}; wf0=function(E){return g.e8(E.T,function(e){return e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR":!1})}; zK7=function(E){return g.e8(E.T,function(e){return e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; dPX=function(E){return g.e8(E.T,function(e){return e.info.video?e.info.video.projectionType==="MESH":!1})}; GUv=function(E){return g.e8(E.T,function(e){return e.info.video?e.info.video.stereoLayout===1:!1})}; Ti0=function(E){return S97(E.T,function(e){return e.info.video?e.Ht():!0})}; S$=function(E){return g.e8(E.T,function(e){return mT(e.XS.T)})}; Sz=function(E,e){E.T[e.info.id]=e;E.Z.set(Yz(g.vR(e.info,E.sK)),e)}; ac=function(E,e,l){l=l===void 0?0:l;var k=E.mimeType||"",H=E.itag;var O=E.xtags;H=H?H.toString():"";O&&(H+=";"+O);O=H;if(LL(k)){var X=E.width||640;H=E.height||360;var A=E.fps,C=E.qualityLabel,p=E.colorInfo,x=E.projectionType,Q;E.stereoLayout&&(Q=iXl[E.stereoLayout]);var W=C38(E)||void 0;if(p==null?0:p.primaries)var B=$P8[p.primaries]||void 0;X=new UO(X,H,A,x,Q,void 0,C,W,B);k=vl(k,X,yp[E.itag||""]);ra&&(k+="; enableflushduringseek=true");DY&&(k+="; enableresetaudiodecoder=true")}var w;if(aW(k)){var U= E.audioSampleRate;Q=E.audioTrack;U=new T_(U?+U:void 0,E.audioChannels,E.spatialAudioType,E.isDrc,E.loudnessDb,E.trackAbsoluteLoudnessLkfs,E.audioQuality||"AUDIO_QUALITY_UNKNOWN",E.isVb);Q&&(B=Q.displayName,H=Q.id,Q=Q.audioIsDefault,B&&(w=new g.fx(B,H||"",!!Q)))}var c;E.captionTrack&&(C=E.captionTrack,Q=C.displayName,B=C.vssId,H=C.languageCode,A=C.kind,C=C.id,Q&&B&&H&&(c=new uSS(Q,B,H,A,E.xtags,C)));Q=Number(E.bitrate)/8;B=Number(E.contentLength);H=Number(E.lastModified);C=E.drmFamilies;A=E.type;l= l&&B?B/l:0;E=Number(E.approxDurationMs);if(e&&C){var V={};C=g.T(C);for(p=C.next();!p.done;p=C.next())(p=Pl[p.value])&&(V[p]=e[p])}return new jO(O,k,{audio:U,video:X,gC:w,oG:V,Kg:Q,CS:l,contentLength:B,lastModified:H,captionTrack:c,streamType:A,approxDurationMs:E})}; Lx=function(E,e,l){l=l===void 0?0:l;var k=E.type;var H=E.itag;var O=E.xtags;O&&(H=E.itag+";"+O);if(LL(k)){var X=(E.size||"640x360").split("x");X=new UO(+X[0],+X[1],+E.fps,E.projection_type,+E.stereo_layout,void 0,E.quality_label,E.eotf,E.primaries);k=vl(k,X,yp[E.itag]);ra&&(k+="; enableflushduringseek=true");DY&&(k+="; enableresetaudiodecoder=true")}var A;if(aW(k)){var C=new T_(+E.audio_sample_rate||void 0,+E.audio_channels||0,E.spatial_audio_type,!!E.drc);E.name&&(A=new g.fx(E.name,E.audio_track_id, E.isDefault==="1"))}var p;E.caption_display_name&&E.caption_vss_id&&E.caption_language_code&&(p=new uSS(E.caption_display_name,E.caption_vss_id,E.caption_language_code,E.caption_kind,E.xtags,E.caption_id));O=Number(E.bitrate)/8;var x=Number(E.clen),Q=Number(E.lmt);l=l&&x?x/l:0;if(e&&E.drm_families){var W={};for(var B=g.T(E.drm_families.split(",")),w=B.next();!w.done;w=B.next())w=w.value,W[w]=e[w]}return new jO(H,k,{audio:C,video:X,gC:A,oG:W,Kg:O,CS:l,contentLength:x,lastModified:Q,captionTrack:p, streamType:E.stream_type,approxDurationMs:Number(E.approx_duration_ms)})}; UPe=function(E){return LY(E,function(e){return"FORMAT_STREAM_TYPE_OTF"===e.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Jpp=function(E){return LY(E,function(e){return"FORMAT_STREAM_TYPE_OTF"===e.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; cpS=function(E,e){return E.timeline?b_(E.timeline.S,e):E.SR.length?b_(E.SR,e):[]}; hf=function(E,e,l){e=e===void 0?"":e;l=l===void 0?"":l;E=new g.N3(E,!0);E.set("alr","yes");l&&(l=Kq8(decodeURIComponent(l)),E[u[0]](e,encodeURIComponent(l)));return E}; F9p=function(E,e){var l=px(e,"id");l=l.replace(":",";");var k=px(e,"mimeType"),H=px(e,"codecs");k=H?k+'; codecs="'+H+'"':k;H=Number(px(e,"bandwidth"))/8;var O=Number(xw(e,"BaseURL").getAttribute(E.W+":contentLength")),X=E.duration&&O?O/E.duration:0;if(LL(k)){var A=Number(px(e,"width"));var C=Number(px(e,"height")),p=Number(px(e,"frameRate")),x=yp7(px(e,E.W+":projectionType"));a:switch(px(e,E.W+":stereoLayout")){case "layout_left_right":var Q=1;break a;case "layout_top_bottom":Q=2;break a;default:Q= 0}A=new UO(A,C,p,x,Q)}if(aW(k)){var W=Number(px(e,"audioSamplingRate"));var B=Number(px(e.getElementsByTagName("AudioChannelConfiguration")[0],"value"));C=j9Z(px(e,E.W+":spatialAudioType"));W=new T_(W,B,C);a:{B=px(e,"lang")||"und";if(C=xw(e,"Role"))if(x=px(C,"value")||"",g.Ce(IU9,x)){C=B+"."+IU9[x];p=x==="main";E=px(e,E.W+":langName")||B+" - "+x;B=new g.fx(E,C,p);break a}B=void 0}}if(e=xw(e,"ContentProtection"))if(e.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var w={};for(e= e.firstChild;e!=null;e=e.nextSibling)e instanceof Element&&/SystemURL/.test(e.nodeName)&&(E=e.getAttribute("type"),C=e.textContent,E&&C&&(w[E]=C.trim()))}else w=void 0;return new jO(l,k,{audio:W,video:A,gC:B,oG:w,Kg:H,CS:X,contentLength:O})}; yp7=function(E){switch(E){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"}}; j9Z=function(E){switch(E){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"}}; VK8=function(E,e){e=e===void 0?"":e;E.state=1;E.c5=(0,g.dE)();return pfZ(e||E.sourceUrl).then(function(l){if(!E.U7()){E.Uc=l.status;l=l.responseText;var k=new DOMParser;l=ca(k,v5W(l),"text/xml").getElementsByTagName("MPD")[0];E.pg=D5p(px(l,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(l.attributes){k=g.T(l.attributes);for(var H=k.next();!H.done;H=k.next())if(H=H.value,H.value==="http://youtube.com/yt/2012/10/10"){k=H.name.split(":")[1];break b}}k=""}E.W=k;E.isLive=E.pg=E.pg}; rpS=function(E){E.J&&E.J.stop()}; fU7=function(E){var e=E.pg;isFinite(e)&&(Mc(E)?E.refresh():(e=Math.max(0,E.c5+e-(0,g.dE)()),E.J||(E.J=new g.Nx(E.refresh,e,E),g.L(E,E.J)),E.J.start(e)))}; DPv=function(E){E=E.T;for(var e in E){var l=E[e].index;if(l.isLoaded())return l.Oz()+1}return 0}; Nc=function(E){return E.GX?E.GX-(E.j||E.timestampOffset):0}; ZY=function(E){return E.Qd?E.Qd-(E.j||E.timestampOffset):0}; Yw=function(E){if(!isNaN(E.fg))return E.fg;var e=E.T,l;for(l in e){var k=e[l].index;if(k.isLoaded()&&!h4(e[l].info.mimeType)){e=0;for(l=k.Qt();l<=k.Oz();l++)e+=k.getDuration(l);e/=k.j6();e=Math.round(e/.5)*.5;k.j6()>10&&(E.fg=e);return e}if(E.isLive&&(k=e[l],k.R6))return k.R6}return NaN}; bXS=function(E,e){E=DW7(E.T,function(k){return k.index.isLoaded()}); if(!E)return NaN;E=E.index;var l=E.GS(e);return E.getStartTime(l)===e?e:l=0&&H.segments.splice(O,1)}}}; P3v=function(E){for(var e in E.T)h4(E.T[e].info.mimeType)||ME9(E.T[e].index,Infinity)}; nx=function(E,e,l){for(var k in E.T){var H=E.T[k].index,O=e,X=l;H.mW&&(O&&(H.CF=Math.max(H.CF,O)),X&&(H.x7=Math.max(H.x7||0,X)))}l&&(E.kt=l/1E3)}; aUy=function(E){E.Qd=0;E.GX=0;E.Wh=0}; Rc=function(E){return E.J0&&E.isManifestless?E.isLiveHeadPlayable:E.isLive}; vl=function(E,e,l){sZ===null&&(sZ=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(W9e&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return sZ||l!=="9"&&l!=="("?sZ||l!=="9h"&&l!=="(h"||(E='video/webm; codecs="vp9.2"'):E='video/webm; codecs="vp9"',E;if(!sZ&&!tf||E!=='video/webm; codecs="vp9"'&&E!=='video/webm; codecs="vp9.2"')return E; l="00";var k="08",H="01",O="01",X="01";E==='video/webm; codecs="vp9.2"'&&(l="02",k="10",e.primaries==="bt2020"&&(X=H="09"),e.T==="smpte2084"&&(O="16"),e.T==="arib-std-b67"&&(O="18"));return'video/webm; codecs="'+["vp09",l,"51",k,"01",H,O,X,"00"].join(".")+'"'}; Es=function(E,e,l){E=""+E+(e>49?"p60":e>32?"p48":"");e=oJ()[E];if(e!=null&&e>0)return e;e=qc.get(E);if(e!=null&&e>0)return e;l=l==null?void 0:l.get(E);return l!=null&&l>0?l:8192}; L9X=function(E){this.F6=E;this.hN=this.Ni=this.h0=this.W=this.S=this.R4=this.J0=this.pg=!1;this.j=this.J=0;this.b3=!1;this.kt=!0;this.gH=!1;this.xE=0;this.ya=this.SR=!1;this.iN=!0;this.c5=this.fg=!1;this.T={};this.dC=this.In=this.C7=this.disableAv1=this.Yt=this.dO=this.ND=this.rH=this.G=this.N=!1;this.Fy=this.F6.L("html5_disable_aac_preference");this.bY=Infinity;this.Qd=0;this.Wh=this.F6.f7();this.GX=this.F6.experiments.P5("html5_enable_vp9_fairplay");this.YU=this.F6.L("html5_force_av1_for_testing"); this.jR=g.tJ(this.F6.experiments,"html5_av1_ordinal_cap");this.je=this.F6.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.yf=this.F6.L("html5_account_onesie_format_selection_during_format_filter");this.Kg=g.tJ(this.F6.experiments,"html5_max_byterate");this.jE=this.F6.L("html5_enable_iamf_audio");this.MM=this.F6.experiments.P5("html5_allow_capability_merge");this.qM=this.F6.L("html5_enable_encrypted_av1")}; fnX=function(E){if(E.J0)return["f"];if(g.DD("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var e=["9h","9","h","8"];E.qM&&e.push("1e");e=e.concat(["(h","(","H","*"]);E.SR&&(e.unshift("1"),e.unshift("1h"));E.Ni&&e.unshift("h");E.V&&(e=(hK8[E.V]||[E.V]).concat(e));return e}; Ug0=function(E){var e=["o","a","A"];E.Qd===1&&(E.S&&(e=["mac3","MAC3"].concat(e)),E.W&&(e=["meac3","MEAC3"].concat(e)),E.jE&&(e=["i","I"].concat(e)));E.pg&&(e=["so","sa"].concat(e));!E.hN||E.h0||E.Z||E.Fy||e.unshift("a");E.Z&&(e=(hK8[E.Z]||[E.Z]).concat(e));return e}; eL=function(E,e,l,k){e=e===void 0?{}:e;if(k===void 0?0:k)return e.disabled=1,0;if(h9(E.W,M3.AV1_CODECS)&&h9(E.W,M3.HEIGHT)&&h9(E.W,M3.BITRATE))return e.isCapabilityUsable=1,8192;try{var H=HrX();if(H&&!E.L("disable_av1_setting"))return e.localPref=H}catch(A){}k=1080;H=navigator.hardwareConcurrency;H<=2&&(k=480);e.coreCount=H;if(H=g.tJ(E.experiments,"html5_default_av1_threshold"))k=e["default"]=H;!E.L("html5_disable_av1_arm_check")&&TxS()&&(e.isArm=1,k=240);if(E=E.W.kt)e.mcap=E,k=Math.max(k,E);if(l){var O, X;if(E=(O=l.videoInfos.find(function(A){return Vp(A)}))==null?void 0:(X=O.G)==null?void 0:X.powerEfficient)k=8192,e.isEfficient=1; l=l.videoInfos[0].video;O=Math.min(Es("1",l.fps),Es("1",30));e.perfCap=O;k=Math.min(k,O);l.isHdr()&&!E&&(e.hdr=1,k*=.75)}else l=Es("1",30),e.perfCap30=l,k=Math.min(k,l),l=Es("1",60),e.perfCap60=l,k=Math.min(k,l);return e.av1Threshold=k}; lg=function(E,e,l,k){this.flavor=E;this.keySystem=e;this.G=l;this.experiments=k;this.T={};this.jR=this.keySystemAccess=null;this.cB=this.Az=-1;this.Ep=null;this.Z=!!k&&k.P5("edge_nonprefixed_eme");k&&k.P5("html5_enable_vp9_fairplay")}; Hi=function(E){return E.Z?!1:!E.keySystemAccess&&!!ks()&&E.keySystem==="com.microsoft.playready"}; Os=function(E){return E.keySystem==="com.microsoft.playready"}; XY=function(E){return!E.keySystemAccess&&!!ks()&&E.keySystem==="com.apple.fps.1_0"}; ug=function(E){return E.keySystem==="com.youtube.fairplay"}; A1=function(E){return E.keySystem==="com.youtube.fairplay.sbdl"}; g.CJ=function(E){return E.flavor==="fairplay"}; ks=function(){var E=window,e=E.MSMediaKeys;LE()&&!e&&(e=E.WebKitMediaKeys);return e&&e.isTypeSupported?e:null}; xs=function(E){return navigator.requestMediaKeySystemAccess?g.oW&&!g.vg()?dJ("45"):g.aa||g.uw?E.P5("edge_nonprefixed_eme"):g.pJ?dJ("47"):g.pA&&E.P5("html5_enable_safari_fairplay")?!1:!0:!1}; MKX=function(E,e,l,k){var H=Pg(),O=(l=H||l&&LE())?["com.youtube.fairplay"]:["com.widevine.alpha"];e&&O.unshift("com.youtube.widevine.l3");H&&k&&O.unshift("com.youtube.fairplay.sbdl");return l?O:E?[].concat(g.Be(O),g.Be(Qo.playready)):[].concat(g.Be(Qo.playready),g.Be(O))}; Wi=function(E,e,l,k,H){k=k===void 0?!1:k;g.a.call(this);this.F6=e;this.useCobaltWidevine=k;this.wH=H;this.G=[];this.Z={};this.T={};this.callback=null;this.W=!1;this.S=[];this.initialize(E,!l)}; ZXW=function(E,e){E.callback=e;E.S=[];xs(E.F6.experiments)?Bi(E):Nil(E)}; Bi=function(E){if(!E.U7())if(E.G.length===0)E.callback(E.S);else{var e=E.G[0],l=E.Z[e],k=Y$Z(E,l);if(oU&&oU.keySystem===e&&oU.Q7t===JSON.stringify(k))E.wH("remksa",{re:!0}),mP0(E,l,oU.keySystemAccess);else{var H,O;E.wH("remksa",{re:!1,ok:(O=(H=oU)==null?void 0:H.keySystem)!=null?O:""});oU=void 0;navigator.requestMediaKeySystemAccess(e,k).then(LR(function(X){mP0(E,l,X,k)}),LR(function(){E.W=!E.W&&E.Z[E.G[0]].flavor==="widevine"; E.W||E.G.shift();Bi(E)}))}}}; mP0=function(E,e,l,k){if(!E.U7()){k&&(oU={keySystem:e.keySystem,keySystemAccess:l,Q7t:JSON.stringify(k)});e.keySystemAccess=l;if(Os(e)){l=WR();k=g.T(Object.keys(E.T[e.flavor]));for(var H=k.next();!H.done;H=k.next())H=H.value,e.T[H]=!!l.canPlayType(H)}else{l=e.keySystemAccess.getConfiguration();if(l.audioCapabilities)for(k=g.T(l.audioCapabilities),H=k.next();!H.done;H=k.next())e.T[H.value.contentType]=!0;if(l.videoCapabilities)for(l=g.T(l.videoCapabilities),k=l.next();!k.done;k=l.next())e.T[k.value.contentType]= !0}E.S.push(e);E.useCobaltWidevine||E.L("html5_enable_vp9_fairplay")&&A1(e)?(E.G.shift(),Bi(E)):E.callback(E.S)}}; Y$Z=function(E,e){var l={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(E.L("html5_enable_vp9_fairplay")&&ug(e))return l.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),l.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[l];Os(e)&&(l.initDataTypes=["keyids","cenc"]);for(var k=g.T(Object.keys(E.T[e.flavor])),H=k.next();!H.done;H=k.next()){H=H.value;var O=H.indexOf("audio/")===0,X=O?l.audioCapabilities:l.videoCapabilities;e.flavor!== "widevine"||E.W?X.push({contentType:H}):O?X.push({contentType:H,robustness:"SW_SECURE_CRYPTO"}):(g.oW&&g.DD("windows nt")&&!E.L("html5_drm_enable_moho")||X.push({contentType:H,robustness:"HW_SECURE_ALL"}),O=H,E.F6.W.Z&&H.includes("vp09")&&(O=H+"; experimental=allowed"),X.push({contentType:O,robustness:"SW_SECURE_DECODE"}),w_(E.F6)==="MWEB"&&(mV()||bM())&&(E.wH("swcrypto",{}),X.push({contentType:H,robustness:"SW_SECURE_CRYPTO"})))}return[l]}; Nil=function(E){if(ks()&&(g.pA||Mb))E.S.push(new lg("fairplay","com.apple.fps.1_0","",E.F6.experiments));else{var e=gZ8(),l=g.Gd(E.G,function(k){var H=E.Z[k],O=!1,X=!1,A;for(A in E.T[H.flavor])e(A,k)&&(H.T[A]=!0,O=O||A.indexOf("audio/")===0,X=X||A.indexOf("video/")===0);return O&&X}); l&&E.S.push(E.Z[l]);E.G=[]}E.callback(E.S)}; gZ8=function(){var E=ks();if(E){var e=E.isTypeSupported;return function(k,H){return e(H,k)}}var l=WR(); return l&&(l.addKey||l.webkitAddKey)?function(k,H){return!!l.canPlayType(k,H)}:function(){return!1}}; K98=function(E){this.experiments=E;this.T=2048;this.S=0;this.pg=(this.j=this.L("html5_streaming_resilience"))?.5:.25;var e=e===void 0?0:e;this.Z=g.tJ(this.experiments,"html5_media_time_weight_prop")||e;this.V=(this.W=this.experiments.P5("html5_consider_end_stall"))&&z8;this.G=this.experiments.P5("html5_measure_max_progress_handling");this.N=this.L("html5_treat_requests_pre_elbow_as_metadata");this.J=this.L("html5_media_time_weight")||!!this.Z;this.L("html5_sabr_live_audio_early_return_fix")&&z8&& (this.T=65536)}; nZW=function(E,e){this.T=void 0;this.experimentIds=E?E.split(","):[];this.flags=mn(e||"","&");E={};e=g.T(this.experimentIds);for(var l=e.next();!l.done;l=e.next())E[l.value]=!0;this.experiments=E}; g.tJ=function(E,e){E=E.flags[e];JSON.stringify(E);return Number(E)||0}; d_=function(E,e){return(E=E.flags[e])?E.toString():""}; RK9=function(E){if(E=E.flags.html5_web_po_experiment_ids)if(E=E.replace(/\[ *(.*?) *\]/,"$1"))return E.split(",").map(Number);return[]}; s9Z=function(E){if(E.T)return E.T;if(E.experimentIds.length<=1)return E.T=E.experimentIds,E.T;var e=[].concat(g.Be(E.experimentIds)).map(function(k){return Number(k)}); e.sort();for(var l=e.length-1;l>0;--l)e[l]-=e[l-1];E.T=e.map(function(k){return k.toString()}); E.T.unshift("v1");return E.T}; q$0=function(E){return tKy.then(E)}; G8=function(E,e,l){this.experiments=E;this.Qd=e;this.h0=l===void 0?!1:l;this.V=!!g.eS("cast.receiver.platform.canDisplayType");this.N={};this.pg=!1;this.S=new Map;this.j=!0;this.G=this.Z=!1;this.T=new Map;this.kt=0;this.SR=this.experiments.P5("html5_disable_vp9_encrypted");this.W=this.experiments.P5("html5_enable_encrypted_av1");E=g.eS("cast.receiver.platform.getValue");this.J=!this.V&&E&&E("max-video-resolution-vpx")||null;ERl(this);this.Z=!!(Pg()&&rv()>=21)}; rjX=function(E,e,l){l=l===void 0?1:l;var k=e.itag;if(k==="0")return!0;var H=e.mimeType;if(e.DM==="1e"&&!E.W)return"dav1enc";if(Vp(e)&&E.pg)return"dav1";if(e.video&&(e.video.isHdr()||e.video.primaries==="bt2020")&&!(h9(E,M3.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(k==="338"&&!(g.oW?dJ(53):g.pJ&&dJ(64)))return"dopus";var O=l;O=O===void 0?1: O;l={};e.video&&(e.video.width&&(l[M3.WIDTH.name]=e.video.width),e.video.height&&(l[M3.HEIGHT.name]=e.video.height),e.video.fps&&(l[M3.FRAMERATE.name]=e.video.fps*O),e.video.T&&(l[M3.EOTF.name]=e.video.T),e.Kg&&(l[M3.BITRATE.name]=e.Kg*8*O),e.DM==="("&&(l[M3.CRYPTOBLOCKFORMAT.name]="subsample"),e.video.projectionType==="EQUIRECTANGULAR"||e.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||e.video.projectionType==="MESH")&&(l[M3.DECODETOTEXTURE.name]="true");e.audio&&e.audio.numChannels&& (l[M3.CHANNELS.name]=e.audio.numChannels);E.Z&&IW(e)&&(l[M3.EXPERIMENTAL.name]="allowed");O=g.T(Object.keys(M3));for(var X=O.next();!X.done;X=O.next()){X=M3[X.value];var A;if(A=l[X.name])if(A=!(X===M3.EOTF&&e.mimeType.indexOf("vp09.02")>0)){A=X;var C=e;A=!(E.experiments.P5("html5_ignore_h264_framerate_cap")&&A===M3.FRAMERATE&&rqe(C))}if(A)if(h9(E,X))if(E.J){if(E.J[X.name] 1080&&e.oG&&(H+="; hdcp=2.2");return k==="227"?"hqcenc":k!=="585"&&k!=="588"&&k!=="583"&&k!=="586"&&k!=="584"&&k!=="587"&&k!=="591"&&k!=="592"||E.experiments.P5("html5_enable_new_hvc_enc")?Pg()&&rv()>=21&&g.DD("appletv5")&&(k==="410"||k==="845")?!0:E.isTypeSupported(H)?!0:"tpus":"newhvc"}; T8=function(){var E=bM()&&!dJ(29),e=g.DD("google tv")&&g.DD("chrome")&&!dJ(30);return E||e?!1:LOp()}; eu0=function(E,e,l){var k=480;e=g.T(e);for(var H=e.next();!H.done;H=e.next()){H=H.value;var O=H.video.qualityOrdinal;O<=1080&&O>k&&rjX(E,H,l)===!0&&(k=O)}return k}; g.ig=function(E,e){e=e===void 0?!1:e;return T8()&&E.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!e&&E.canPlayType(WR(),"application/x-mpegURL")?!0:!1}; kpW=function(E){lxX(function(){for(var e=g.T(Object.keys(M3)),l=e.next();!l.done;l=e.next())h9(E,M3[l.value])})}; h9=function(E,e){e.name in E.N||(E.N[e.name]=Hh9(E,e));return E.N[e.name]}; Hh9=function(E,e){if(E.J)return!!E.J[e.name];if(e===M3.BITRATE&&E.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!E.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(e===M3.AV1_CODECS)return E.isTypeSupported("video/mp4; codecs="+e.valid)&&!E.isTypeSupported("video/mp4; codecs="+e.hY);if(e.video){var l='video/webm; codecs="vp9"';E.isTypeSupported(l)||(l='video/mp4; codecs="avc1.4d401e"')}else l='audio/webm; codecs="opus"', E.isTypeSupported(l)||(l='audio/mp4; codecs="mp4a.40.2"');return E.isTypeSupported(l+"; "+e.name+"="+e.valid)&&!E.isTypeSupported(l+"; "+e.name+"="+e.hY)}; Oh8=function(E,e){var l=0;E.S.has(e)&&(l=E.S.get(e).Wr);E.S.set(e,{Wr:l+1,FD:Math.pow(2,l+1)});E.G=!0}; vm=function(E){for(var e=[],l=g.T(E.T.keys()),k=l.next();!k.done;k=l.next()){k=k.value;var H=E.T.get(k);e.push(k+"_"+H.maxWidth+"_"+H.maxHeight)}return e.join(".")}; cjX=function(E,e){for(var l=new Map,k=g.T(E.T.keys()),H=k.next();!H.done;H=k.next()){H=H.value;var O=H.split("_")[0];e.has(O)||l.set(H,E.T.get(H))}E.T=l}; jvy=function(E,e,l){var k,H=((k=l.video)==null?void 0:k.fps)||0;k=e+"_"+H;var O=!!l.audio,X={itag:l.itag,DM:e,A2:O};if(O)X.numChannels=l.audio.numChannels;else{var A=l.video;X.maxWidth=A==null?void 0:A.width;X.maxHeight=A==null?void 0:A.height;X.maxFramerate=H;h9(E,M3.BITRATE)&&(X.maxBitrateBps=l.Kg*8);X.Dt=A==null?void 0:A.isHdr()}A=E.T.get(k);A?O||(l=Math.max(A.maxWidth||0,A.maxHeight||0)>Math.max(X.maxWidth||0,X.maxHeight||0)?A:X,e={itag:l.itag,DM:e,A2:O,maxWidth:Math.max(A.maxWidth||0,X.maxWidth|| 0),maxHeight:Math.max(A.maxHeight||0,X.maxHeight||0),maxFramerate:H,Dt:l.Dt},h9(E,M3.BITRATE)&&(e.maxBitrateBps=l.maxBitrateBps),E.T.set(k,e)):E.T.set(k,X)}; InZ=function(E,e,l){var k,H=((k=l.video)==null?void 0:k.fps)||0;k=e+"_"+H;var O=!!l.audio,X=E.T.get(k);a:{var A=E.T.get(k),C=!!l.audio;if(A){if(C){var p=!1;break a}var x;if(!C&&((p=l.video)==null?0:p.height)&&A.maxHeight&&A.maxHeight>=((x=l.video)==null?void 0:x.height)){p=!1;break a}}p=!0}p&&(p=l.itag,e=X?X:{itag:p,DM:e,A2:O},O?e.numChannels=l.audio.numChannels:(O=l.video,e.maxWidth=O==null?void 0:O.width,e.maxHeight=O==null?void 0:O.height,e.maxFramerate=H,h9(E,M3.BITRATE)&&(e.maxBitrateBps=l.Kg* 8),e.Dt=O==null?void 0:O.isHdr()),E.T.set(k,e))}; ERl=function(E){var e;(e=navigator.mediaCapabilities)!=null&&e.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(l){l.smooth&&l.powerEfficient&&(E.kt=2160)})}; $s=function(){g.sJ.call(this);this.items={}}; Us=function(E,e){this.T=E;this.cipher=this.T.exports.AES128CTRCipher_create(e.byteOffset)}; ci=function(){this.G=this.HB=0;this.T=Array.from({length:J1.length}).fill(0)}; XE7=function(){}; ufy=function(){this.startTimeMs=(0,g.dE)();this.T=!1}; ACp=function(){this.T=new XE7}; CtX=function(E,e,l,k){k=k===void 0?1:k;l>=0&&(e in E.T||(E.T[e]=new ci),E.T[e].tO(l,k))}; pEZ=function(E,e,l,k,H){var O=(0,g.dE)(),X=H?H(e):void 0,A;H=(A=X==null?void 0:X.HB)!=null?A:1;if(H!==0){var C;A=(C=X==null?void 0:X.profile)!=null?C:l;CtX(E,A,O-k,H)}return e}; x7S=function(E,e,l,k,H){if(e&&typeof e==="object"){var O=function(X){return pEZ(E,X,l,k,H)}; if(JR(e))return e.then(O);if(UD(e))return F1(e,O)}return pEZ(E,e,l,k,H)}; Qyp=function(){}; oRS=function(E,e){return VY(WZy,function(){var l=this;return function H(){var O,X,A;return aZ(H,function(C){switch(C.G){case 1:g.J7(C,2);if(!l.S)throw"wasm.ps.ns";O=E;X=h7;return iX(C,Sb(BZW(l,e)),4);case 4:A=X(C.T);if(!A)throw"wasm.ps.um";try{return C.return(new WebAssembly.Instance(A,O))}catch(p){}return iX(C,Sb(WebAssembly.instantiate(A,O)),5);case 5:return C.return(C.T);case 2:g.r8(C),g.bX(C,0)}})}()})}; wEy=function(E,e){E.T||(E.T=F1(jb(function(){return fetch(e)}),function(l){return l.arrayBuffer()}),fR(E.T,function(l){E.T=void 0; throw"wasm.ps.f: "+l;}))}; BZW=function(E,e){if(E.G)return E.G;E.G=zuX(E,e);fR(E.G,function(l){E.G=void 0;throw"wasm.ps.c: "+l;}); return E.G}; zuX=function(E,e){return VY(E,function(){var l=this;return function H(){var O,X,A,C,p,x,Q,W,B,w,U,c,V,F;return aZ(H,function(r){switch(r.G){case 1:g.J7(r,2);O=[];X=window.ywc;if(!X){r.xt(4);break}A=X[e];if(!A){r.xt(4);break}if(A.mod)return r.return(A.mod);if(!A.modP){r.xt(6);break}g.U9(r,7);C=h7;return iX(r,Sb(A.modP),9);case 9:return r.return(C(r.T));case 7:g.FW(r),O.unshift("pcm");case 6:if(A.bin){l.T=cS(A.bin);r.xt(4);break}if(!A.binP){r.xt(4);break}g.U9(r,12);p=$2;x=cS;Q=h7;return iX(r,Sb(A.binP), 14);case 14:l.T=x.call(p,Q(r.T));g.jp(r,4);break;case 12:g.FW(r),l.T=void 0,O.unshift("pfb");case 4:if(!l.T){r.xt(15);break}g.U9(r,16);W=h7;return iX(r,Sb(l.T),18);case 18:B=W(r.T);if(l.Z)try{return r.return(new WebAssembly.Module(B))}catch(P){l.Z=!1,O.unshift("f0cs")}w=h7;return iX(r,Sb(WebAssembly.compile(B)),19);case 19:return r.return(w(r.T));case 16:g.FW(r),l.T=void 0,O.unshift("f0ca");case 15:return g.U9(r,20),wEy(l,e),U=h7,iX(r,Sb(l.T),22);case 22:c=U(r.T);if(l.Z)try{return r.return(new WebAssembly.Module(c))}catch(P){l.Z= !1,O.unshift("f1cs")}V=h7;return iX(r,Sb(WebAssembly.compile(c)),23);case 23:return r.return(V(r.T));case 20:F=g.FW(r),l.T=void 0,l.S=!1,O.unshift("f1ca: "+F);case 21:throw"["+O.map(function(P){return'"'+P+'"'}).join(", ")+"]"; case 2:g.r8(r),g.bX(r,0)}})}()})}; d7X=function(){}; Gp7=function(){var E=this;this.proc_exit=function(){}; this.fd_write=function(e,l,k){if(!E.exports)return 1;e=new Uint32Array(E.exports.memory.buffer,l,k*2);l=[];for(var H=0;H0)e=E.byterate,this.pg=!0;else{var k; l=(((k=navigator.connection)==null?void 0:k.downlink)||0)*64*1024;l>0&&(e=l,this.pg=!0)}this.Z.CI(this.policy.J,e);E.delay>0&&this.N.CI(1,Math.min(E.delay,2));E.stall>0&&this.j.CI(1,E.stall);E.init>0&&(this.c5=Math.min(E.init,this.c5));E.interruptions&&(this.S=this.S.concat(E.interruptions),this.S.length>16&&this.S.pop());this.kt=(0,g.dE)();this.policy.j>0&&(this.J0=new g.Nx(this.R4,this.policy.j,this),g.L(this,this.J0),this.J0.start())}; aU=function(E,e,l,k){E.Z.CI(k===void 0?e:k,l/e);E.J=(0,g.dE)()}; jy7=function(E){E.W||(E.W=(0,g.dE)());E.policy.V&&(E.J=(0,g.dE)())}; Ix0=function(E,e){if(E.W){var l=e-E.W;if(l<6E4){if(l>1E3){var k=E.interruptions;k.push(Math.ceil(l));k.sort(function(H,O){return O-H}); k.length>16&&k.pop()}E.Qd+=l}}E.W=e}; LJ=function(E,e,l,k,H,O){O=O===void 0?!1:O;E.fg.CI(e,l/e);E.J=(0,g.dE)();H||E.V.CI(1,e-k);O||(E.W=0);E.kt>-1&&(0,g.dE)()-E.kt>3E4&&FZv(E)}; h1=function(E,e,l){e=Math.max(e,E.G.T);E.j.CI(1,l/e)}; MA=function(E){E=E.N.NV()+E.h0.NV()||0;E=isNaN(E)?.5:E;return E=Math.min(E,5)}; NA=function(E,e,l){isNaN(l)||(E.SR+=l);isNaN(e)||(E.jR+=e)}; Z2=function(E){E=E.Z.NV();return E>0?E:1}; Ys=function(E,e,l){e=e===void 0?!1:e;l=l===void 0?1048576:l;var k=Z2(E);k=1/((E.j.NV()||0)*E.policy.pg+1/k);var H=E.fg.NV();H=H>0?H:1;var O=Math.max(k,H);E.policy.W>0&&H=4E3}; VBX=function(E){this.experiments=E;this.T=17;this.Z=13E4;this.J=.5;this.S=this.G=!1;this.kt=this.L("html5_use_histogram_for_bandwidth");this.W=g.tJ(this.experiments,"html5_auxiliary_estimate_weight");this.pg=g.tJ(this.experiments,"html5_stall_factor")||1;this.j=g.tJ(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.P5("html5_trigger_loader_when_idle_network");this.V=this.experiments.P5("html5_sabr_fetch_on_idle_network_preloaded_players")}; rCl=function(E,e){E=E===void 0?{}:E;e=e===void 0?{}:e;g.a.call(this);var l=this;this.values=E;this.XF=e;this.G={};this.Z=this.T=0;this.S=new g.Nx(function(){S27(l)},1E4); g.L(this,this.S)}; g_=function(E,e){D7W(E,e);return E.values[e]&&E.XF[e]?E.values[e]/Math.pow(2,E.T/E.XF[e]):0}; D7W=function(E,e){E.values[e]||(e=EAZ(),E.values=e.values||{},E.XF=e.halfLives||{},E.G=e.values?Object.assign({},e.values):{})}; S27=function(E){var e=EAZ();if(e.values){e=e.values;for(var l={},k=g.T(Object.keys(E.values)),H=k.next();!H.done;H=k.next())H=H.value,e[H]&&E.G[H]&&(E.values[H]+=e[H]-E.G[H]),l[H]=g_(E,H);E.G=l}e=E.XF;l={};l.values=E.G;l.halfLives=e;g.Jw("yt-player-memory",l,2592E3)}; Wk=function(E,e,l,k,H){g.a.call(this);this.webPlayerContextConfig=e;this.wf=k;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Gf=this.dC=this.je=this.Kw=this.userDisplayName=this.userDisplayImage=this.Lw="";this.T={};this.GX={};this.controlsType="0";this.hN=NaN;this.ND=!1;this.UJ=(0,g.dE)();this.In=0;this.T2=this.wD=!1;this.zx=!0;this.preferGapless=this.Ep=this.f0=this.Z=this.lk=!1;this.Jr=[];this.JS=!1;this.VJ=0;E=E?g.o$(E):{};e&&e.csiPageType&&(this.csiPageType=e.csiPageType);e&&e.csiServiceName&& (this.csiServiceName=e.csiServiceName);e&&e.preferGapless&&(this.preferGapless=e.preferGapless);this.experiments=new nZW(e?e.serializedExperimentIds:E.fexp,e?e.serializedExperimentFlags:E.fflags);this.forcedExperiments=e?e.serializedForcedExperimentIds:t2("",E.forced_experiments)||void 0;this.cspNonce=(e==null?0:e.cspNonce)?e.cspNonce:t2("",E.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var O=document.location.toString()}catch(XW){O=""}this.Fr=O;this.ancestorOrigins=(k=window.location.ancestorOrigins)? Array.from(k):[];this.S=nE(!1,e?e.isEmbed:E.is_embed);if(e&&e.device){if(k=e.device,k.androidOsExperience&&(this.T.caoe=""+k.androidOsExperience),k.androidPlayServicesVersion&&(this.T.capsv=""+k.androidPlayServicesVersion),k.brand&&(this.T.cbrand=k.brand),k.browser&&(this.T.cbr=k.browser),k.browserVersion&&(this.T.cbrver=k.browserVersion),k.cobaltReleaseVehicle&&(this.T.ccrv=""+k.cobaltReleaseVehicle),this.T.c=k.interfaceName||"WEB",this.T.cver=k.interfaceVersion||"html5",k.interfaceTheme&&(this.T.ctheme= k.interfaceTheme),this.T.cplayer=k.interfacePlayerType||"UNIPLAYER",k.model&&(this.T.cmodel=k.model),k.network&&(this.T.cnetwork=k.network),k.os&&(this.T.cos=k.os),k.osVersion&&(this.T.cosver=k.osVersion),k.platform&&(this.T.cplatform=k.platform),O=d_(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),O==="all"||O==="once")k.chipset&&(this.GX.cchip=k.chipset),k.cobaltAppVersion&&(this.GX.ccappver=k.cobaltAppVersion),k.firmwareVersion&&(this.GX.cfrmver=k.firmwareVersion),k.deviceYear&&(this.GX.crqyear= k.deviceYear)}else this.T.c=E.c||"web",this.T.cver=E.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=e?this.S||bhv(this)&&e.loaderUrl?e.loaderUrl||"":this.Fr:this.S||bhv(this)&&E.loaderUrl?t2("",E.loaderUrl):this.Fr;this.S&&g.qW("yt.embedded_player.embed_url",this.loaderUrl);this.N=vu(this.loaderUrl,vR9);k=this.loaderUrl;var X=X===void 0?!1:X;this.YZ=bx(vu(k,Ptl),k,X,"Trusted Ad Domain URL");this.bY=nE(!1,E.privembed);this.protocol=this.Fr.indexOf("http:")===0?"http":"https";this.Uv=oFe((e? e.customBaseYoutubeUrl:E.BASE_YT_URL)||"")||oFe(this.Fr)||this.protocol+"://www.youtube.com/";X=e?e.eventLabel:E.el;k="detailpage";X==="adunit"?k=this.S?"embedded":"detailpage":X==="embedded"||this.N?k=RL(k,X,axX):X&&(k="embedded");this.h0=k;Fne();X=null;k=e?e.playerStyle:E.ps;O=g.i_(LZ7,k);!k||O&&!this.N||(X=k);this.playerStyle=X;this.J=g.i_(LZ7,this.playerStyle);this.houseBrandUserStatus=e==null?void 0:e.houseBrandUserStatus;this.kt=this.J&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.zd=!this.kt;this.J0=nE(!1,E.disableplaybackui);this.disablePaidContentOverlay=nE(!1,e==null?void 0:e.disablePaidContentOverlay);this.disableSeek=nE(!1,e==null?void 0:e.disableSeek);this.enableSpeedOptions=(e==null?void 0:e.enableSpeedOptions)||(WR().defaultPlaybackRate?KJ||g.Yq||nJ?g.pJ&&dJ("20")||g.oW&&dJ("4")||g.RU&&dJ("11")||h2():!(g.RU&&!g.DD("chrome")||KJ||g.DD("android")||g.DD("silk")):!1);this.Gd=nE(!1,E.enable_faster_speeds);var A;this.supportsVarispeedExtendedFeatures=(A=e==null?void 0: e.supportsVarispeedExtendedFeatures)!=null?A:!1;this.G=nE(this.playerStyle==="blazer",E.is_html5_mobile_device||e&&e.isMobileDevice);this.jR=ZD()||mV();this.HQ=this.L("mweb_allow_background_playback")?!1:this.G&&!this.J;this.fg=dB();this.aU=g.t1;var C;this.G2=!!(e==null?0:(C=e.embedsHostFlags)==null?0:C.optOutApiDeprecation);var p;e?e.hideInfo!==void 0&&(p=!e.hideInfo):p=E.showinfo;this.Dp=g.qA(this)&&!this.G2||nE(!EV(this)&&!eC(this)&&!this.J,p);this.HJ=e?!!e.mobileIphoneSupportsInlinePlayback:nE(!1, E.playsinline);A=this.G&&lY&&k9!=null&&k9>0&&k9<=2.3;C=e?e.useNativeControls:E.use_native_controls;this.j=g.qA(this)&&this.G;p=this.G&&!this.j;C=g.Hk(this)||!A&&nE(p,C)?"3":"1";this.disableOrganicUi=!(e==null||!e.disableOrganicUi);p=e?e.controlsType:E.controls;this.controlsType=this.disableOrganicUi||p==="0"||p===0?"0":C;this.DG=this.G;this.color=RL("red",e?e.progressBarColor:E.color,hu9);this.jN=this.controlsType==="3";this.Wh=!this.S;this.Y7=(C=!this.Wh&&!eC(this)&&!this.kt&&!this.J&&!EV(this))&& !this.jN&&this.controlsType==="1";this.MM=g.OV(this)&&C&&this.controlsType==="0"&&!this.Y7&&!(e==null?0:e.embedsEnableEmc3ds);this.gY=this.fp=A;this.qM=(this.controlsType==="3"||this.G||nE(!1,E.use_media_volume))&&!this.j;this.K9=Mb&&!g.aE(601)?!1:!0;this.yc=this.S||!1;this.C7=eC(this)?"":(this.loaderUrl||E.post_message_origin||"").substring(0,128);this.widgetReferrer=t2("",e?e.widgetReferrer:E.widget_referrer);var x;e?e.disableCastApi&&(x=!1):x=E.enablecastapi;x=!this.N||nE(!0,x);A=!0;e&&e.disableMdxCast&& (A=!1);this.a6=this.L("enable_cast_for_web_unplugged")&&g.XG(this)&&A||g.Ik(this)&&A||x&&A&&this.controlsType==="1"&&!this.G&&(eC(this)||g.OV(this)||g.uY(this));this.RU=!!window.document.pictureInPictureEnabled||z_();x=e?!!e.supportsAutoplayOverride:nE(!1,E.autoplayoverride);this.wG=!(this.G&&!g.qA(this))&&!g.DD("nintendo wiiu")||x;this.mT=(e?!!e.enableMutedAutoplay:nE(!1,E.mutedautoplay))&&!1;x=(eC(this)||EV(this))&&this.playerStyle==="blazer";this.yS=e?!!e.disableFullscreen:!nE(!0,E.fs);A=g.lG(g.A5(this))&& g.qA(this);this.rH=!this.yS&&(x||g.CZ())&&!A;this.At=this.L("html5_picture_in_picture_logging_onresize");var Q;this.l6=(Q=g.tJ(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Q:.33;this.Kz=this.L("html5_picture_in_picture_blocking_onresize");this.PJ=this.L("html5_picture_in_picture_blocking_ontimeupdate");this.sV=this.L("html5_picture_in_picture_blocking_document_fullscreen");this.NO=this.L("html5_picture_in_picture_blocking_standard_api");Q=bM()&&dJ(58)&&!mV();x=PZ||typeof MediaSource=== "undefined";this.Yu=this.L("uniplayer_block_pip")&&(Q||x)||this.Kz||this.PJ||this.NO;Q=g.qA(this)&&!this.G2;var W;e?e.disableRelatedVideos!==void 0&&(W=!e.disableRelatedVideos):W=E.rel;this.yf=Q||nE(!this.J,W);this.Ce=nE(!1,e?e.enableContentOwnerRelatedVideos:E.co_rel);this.V=mV()&&k9>0&&k9<=4.4?"_top":"_blank";this.Dr=g.uY(this);this.Hn=nE(this.playerStyle==="blazer",e?e.enableCsiLogging:E.enablecsi);switch(this.playerStyle){case "blogger":W="bl";break;case "gmail":W="gm";break;case "gac":W="ga"; break;case "ads-preview":W="ap";break;case "books":W="gb";break;case "docs":case "flix":W="gd";break;case "duo":W="gu";break;case "google-live":W="gl";break;case "google-one":W="go";break;case "play":case "play-ads":W="gp";break;case "chat":W="hc";break;case "hangouts-meet":W="hm";break;case "photos-edu":case "picasaweb":W="pw";break;default:W="yt"}this.pg=W;this.SR=t2("",e?e.authorizedUserIndex:E.authuser);this.jE=g.qA(this)&&(this.bY||!dhe()||this.jR);var B;e?e.disableWatchLater!==void 0&&(B=!e.disableWatchLater): B=E.showwatchlater;this.CD=((W=!this.jE)||!!this.SR&&W)&&nE(!this.kt,this.N?B:void 0);this.YU=e?e.isMobileDevice||!!e.disableKeyboardControls:nE(!1,E.disablekb);this.loop=nE(!1,E.loop);this.pageId=t2("",e?e.initialDelegatedSessionId:E.pageid);this.bI=nE(!0,E.canplaylive);B=g.tJ(this.experiments,"html5_default_audio_quality_setting_lr");var w;this.Ke=(w=MB9[MB9[B]])!=null?w:0;this.Yt=nE(!1,E.livemonitor);this.disableSharing=nE(this.J,e?e.disableSharing:E.ss);(w=e&&this.L("fill_video_container_size_override_from_wpcc")? e.videoContainerOverride:E.video_container_override)?(B=w.split("x"),B.length!==2?w=null:(w=Number(B[0]),B=Number(B[1]),w=isNaN(w)||isNaN(B)||w*B<=0?null:new g.YX(w,B))):w=null;this.vJ=w;this.mute=e?!!e.startMuted:nE(!1,E.mute);this.storeUserVolume=!this.mute&&nE(this.controlsType!=="0",e?e.storeUserVolume:E.store_user_volume);w=e?e.annotationsLoadPolicy:E.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:RL(void 0,w,CT);this.captionsLanguagePreference=e?e.captionsLanguagePreference|| "":t2("",E.cc_lang_pref);w=RL(2,e?e.captionsLanguageLoadPolicy:E.cc_load_policy,CT);this.controlsType==="3"&&w===2&&(w=3);this.Dy=w;this.dO=e?e.hl||"en_US":t2("en_US",E.hl);this.region=e?e.contentRegion||"US":t2("US",E.cr);this.hostLanguage=e?e.hostLanguage||"en":t2("en",E.host_language);this.Td=!this.bY&&Math.random()=480;this.schedule=new Pi(Q,new K98(this.experiments),H);g.L(this,this.schedule);var U;this.enableSafetyMode=(U=e==null?void 0:e.initialEnableSafetyMode)!=null?U:nE(!1,E.enable_safety_mode);H=this.J0?!1:eC(this)&&this.playerStyle!== "blazer";var c;e?e.disableAutonav!=null&&(c=!e.disableAutonav):c=E.allow_autonav;this.Fy=nE(H,!this.kt&&c);this.sendVisitorIdHeader=e?!!e.sendVisitorIdHeader:nE(!1,E.send_visitor_id_header);var V;this.playerStyle==="docs"&&(e?V=e.disableNativeContextMenu:V=E.disable_native_context_menu);this.disableNativeContextMenu=nE(!1,V);this.sM=xk(this)&&this.L("enable_skip_intro_button");this.embedConfig=t2("",e?e.serializedEmbedConfig:E.embed_config);this.Qd=et(E,g.qA(this));this.Z=this.Qd==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(e==null||!e.embedsErrorLinks);this.RF=nE(!1,E.full_window);var F;this.gH=!((F=this.webPlayerContextConfig)==null?0:F.chromeless);var r;this.livingRoomAppMode=RL("LIVING_ROOM_APP_MODE_UNSPECIFIED",E.living_room_app_mode||(e==null?void 0:(r=e.device)==null?void 0:r.livingRoomAppMode),Y2l);var P;c=sN(NaN,e==null?void 0:(P=e.device)==null?void 0:P.deviceYear);isNaN(c)||(this.deviceYear=c);this.transparentBackground=e?!!e.transparentBackground:nE(!1,E.transparent_background);this.showMiniplayerButton= e?!!e.showMiniplayerButton:nE(!1,E.show_miniplayer_button);var N;g.qA(this)&&!(e==null?0:(N=e.embedsHostFlags)==null?0:N.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=e?!!e.externalFullscreen:nE(!1,E.external_fullscreen);this.showMiniplayerUiWhenMinimized=e?!!e.showMiniplayerUiWhenMinimized:nE(!1,E.use_miniplayer_ui);var R;this.zx=(R=E.show_loop_video_toggle)!=null?R:!0;this.Xu=Math.random()<1E-4;if(E.onesie_hot_config||(e==null?0:e.onesieHotConfig))this.iN=new cCl(E.onesie_hot_config, e==null?void 0:e.onesieHotConfig),g.L(this,this.iN);this.isTectonic=e?!!e.isTectonic:!!E.isTectonic;this.playerCanaryState=l;this.playerCanaryStage=e==null?void 0:e.canaryStage;this.AS=new rCl;g.L(this,this.AS);this.datasyncId=(e==null?void 0:e.datasyncId)||g.LF("DATASYNC_ID");this.NT=g.LF("LOGGED_IN",!1);this.w2=(e==null?void 0:e.allowWoffleManagement)||!1;this.Hy=Infinity;this.zT=NaN;this.livingRoomPoTokenId=e==null?void 0:e.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.f0=!0: this.f0=Math.random()*100=0&&E0&&E.Xu&&(k.sort(),g.UJ(new g.PK("Player client parameters changed after startup",k)));E.userAge=sN(E.userAge,e.user_age);E.Lw=t2(E.Lw,e.user_display_email);E.userDisplayImage=t2(E.userDisplayImage,e.user_display_image);g.aw(E.userDisplayImage)||(E.userDisplayImage= "");E.userDisplayName=t2(E.userDisplayName,e.user_display_name);E.Kw=t2(E.Kw,e.user_gender);E.csiPageType=t2(E.csiPageType,e.csi_page_type);E.csiServiceName=t2(E.csiServiceName,e.csi_service_name);E.Hn=nE(E.Hn,e.enablecsi);E.pageId=t2(E.pageId,e.pageid);if(l=e.enabled_engage_types)E.enabledEngageTypes=new Set(l.split(","));e.living_room_session_po_token&&(E.W7=e.living_room_session_po_token.toString())}; Bk=function(E,e){return!E.J&&bM()&&dJ(55)&&E.controlsType==="3"&&!e}; g.oQ=function(E){E=pT(E.Uv);return E==="www.youtube-nocookie.com"?"www.youtube.com":E}; w3=function(E,e,l){return E.protocol+"://i1.ytimg.com/vi/"+e+"/"+(l||"hqdefault.jpg")}; zH=function(E){return eC(E)&&!g.XG(E)}; g.Hk=function(E){return E.L("html5_local_playsinline")?Mb&&!g.aE(602)&&!("playsInline"in WR()):Mb&&!E.HJ||g.DD("nintendo wiiu")?!0:!1}; w_=function(E){return E.T.c}; g.QS=function(E){return/^TVHTML5/.test(w_(E))}; g.d3=function(E){return w_(E)==="TVHTML5"}; bhv=function(E){return w_(E)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; ZhS=function(E){return E.T.cmodel==="CHROMECAST ULTRA/STEAK"||E.T.cmodel==="CHROMECAST/STEAK"}; g.GH=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; xk=function(E){return/web/i.test(w_(E))}; g.TH=function(E){return w_(E).toUpperCase()==="WEB"}; QN=function(E){return w_(E)==="WEB_KIDS"}; g.XG=function(E){return w_(E)==="WEB_UNPLUGGED"}; iY=function(E){return w_(E)==="TVHTML5_UNPLUGGED"}; g.pp=function(E){return g.XG(E)||w_(E)==="TV_UNPLUGGED_CAST"||iY(E)}; g.Ik=function(E){return w_(E)==="WEB_REMIX"}; g.$9=function(E){return w_(E)==="WEB_MUSIC_INTEGRATIONS"}; g.UV=function(E){return w_(E)==="WEB_EMBEDDED_PLAYER"}; g.ck=function(E){return(E.deviceIsAudioOnly||!g.oW||PZ||E.controlsType==="3"?!1:g.Yq?E.S&&g.aE(51):!0)||(E.deviceIsAudioOnly||!g.pJ||PZ||E.controlsType==="3"?!1:g.Yq?E.S&&g.aE(48):g.aE(38))||(E.deviceIsAudioOnly||!g.RU||PZ||E.controlsType==="3"?!1:g.Yq?E.S&&g.aE(37):g.aE(27))||!E.deviceIsAudioOnly&&g.J5&&!UhX()&&g.aE(11)||!E.deviceIsAudioOnly&&g.pA&&g.aE("604.4")}; KZ9=function(E){if(g.OV(E)&&lY)return!1;if(g.pJ){if(!g.aE(47)||!g.aE(52)&&g.aE(51))return!1}else if(g.pA)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; RuS=function(E,e){return E.enabledEngageTypes.has(e.toString())||nRS.includes(e)}; eC=function(E){return E.h0==="detailpage"}; g.OV=function(E){return E.h0==="embedded"}; yN=function(E){return E.h0==="leanback"}; EV=function(E){return E.h0==="adunit"||E.playerStyle==="gvn"}; g.uY=function(E){return E.h0==="profilepage"}; g.qA=function(E){return E.S&&g.OV(E)&&!EV(E)&&!E.J}; jC=function(E){if(!E.userDisplayImage)return"";var e=E.userDisplayImage.split("/");if(e.length===5)return E=e[e.length-1].split("="),E[1]="s20-c",e[e.length-1]=E.join("="),e.join("/");if(e.length===8)return e.splice(7,0,"s20-c"),e.join("/");if(e.length===9)return e[7]+="-s20-c",e.join("/");g.UJ(new g.PK("Profile image not a FIFE URL.",E.userDisplayImage));return E.userDisplayImage}; g.IQ=function(E){var e=g.oQ(E);sy8.includes(e)&&(e="www.youtube.com");return E.protocol+"://"+e}; g.FG=function(E,e){e=e===void 0?"":e;if(E.wf){var l=new xZ,k,H=E.wf();H.signedOut?k="":H.token?k=H.token:H.pendingResult.then(function(O){H.signedOut?l.resolve(""):l.resolve(O.token)},function(O){g.UJ(new g.PK("b189348328_oauth_callback_failed",{error:O})); l.resolve(e)}); return k!==void 0?J2(k):new $q(l)}return J2(e)}; fT=function(E,e){e=e===void 0?"":e;return E.NT?cS(!0):fR(F1(cS(g.FG(E,e)),function(l){return cS(!!l)}),function(){return cS(!1)})}; tB8=function(E,e){e==null||F1(e,function(l){E.rB=l;var k,H;(k=E.iN)!=null&&(H=k.T)!=null&&(H.T=new FY(l,H.G,H.Z),g.L(H,H.T))})}; pT=function(E){var e=g.uy(E);return(E=Number(g.Xw(E)[4]||null)||null)?e+":"+E:e}; VN=function(E,e){e=e===void 0?!1:e;var l=yp[E],k=q2Z[l],H=EtX[E];if(!H||!k)return null;e=new UO(e?H.height:H.width,e?H.width:H.height,H.fps);k=vl(k,e,l);return new jO(E,k,{video:e,Kg:H.bitrate/8})}; l5p=function(E){var e=q2Z[yp[E]],l=e1Z[E];return l&&e?new jO(E,e,{audio:new T_(l.audioSampleRate,l.numChannels)}):null}; SC=function(E){this.T=E}; r3=function(E,e,l,k){if(l)return UN();l={};var H=WR();e=g.T(e);for(var O=e.next();!O.done;O=e.next())if(O=O.value,E.canPlayType(H,O.getInfo().mimeType)||k){var X=O.T.video.quality;if(!l[X]||l[X].getInfo().E1())l[X]=O}E=[];l.auto&&E.push(l.auto);k=g.T(J4);for(H=k.next();!H.done;H=k.next())(H=l[H.value])&&E.push(H);return E.length?J2(E):UN()}; k$7=function(E){this.itag=E.itag;this.url=E.url;this.codecs=E.codecs;this.width=E.width;this.height=E.height;this.fps=E.fps;this.bitrate=E.bitrate;var e;this.G=((e=E.audioItag)==null?void 0:e.split(","))||[];this.Ky=E.Ky;this.oG=E.oG||"";this.gC=E.gC;this.audioChannels=E.audioChannels;this.T=""}; HGS=function(E,e,l,k){e=e===void 0?!1:e;l=l===void 0?!0:l;k=k===void 0?{}:k;var H={};E=g.T(E);for(var O=E.next();!O.done;O=E.next()){O=O.value;if(e&&MediaSource&&MediaSource.isTypeSupported){var X=O.type;O.audio_channels&&(X=X+"; channels="+O.audio_channels);if(!MediaSource.isTypeSupported(X)){k[O.itag]="tpus";continue}}if(l||!O.drm_families||O.eotf!=="smpte2084"&&O.eotf!=="arib-std-b67"){X=void 0;var A={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},C=O.type.match(/codecs="([^"]*)"/); C=C?C[1]:"";O.audio_track_id&&(X=new g.fx(O.name,O.audio_track_id,!!O.is_default));var p=O.eotf;O=new k$7({itag:O.itag,url:O.url,codecs:C,width:Number(O.width),height:Number(O.height),fps:Number(O.fps),bitrate:Number(O.bitrate),audioItag:O.audio_itag,Ky:p?A[p]:void 0,oG:O.drm_families,gC:X,audioChannels:Number(O.audio_channels)});H[O.itag]=H[O.itag]||[];H[O.itag].push(O)}else k[O.itag]="enchdr"}return H}; OGX=function(E,e,l,k,H){this.Z=E;this.G=e;this.W=l;this.cpn=k;this.J=H;this.S=0;this.T=""}; XFS=function(E,e){E.Z.some(function(l){var k;return((k=l.gC)==null?void 0:k.getId())===e}); E.T=e}; DS=function(E,e,l){E.cpn&&(e=g.BJ(e,{cpn:E.cpn}));l&&(e=g.BJ(e,{paired:l}));return e}; uCl=function(E,e){E=E.itag.toString();e!==null&&(E+=e.itag.toString());return E}; ASX=function(E){for(var e=[],l=[],k=g.T(E.G),H=k.next();!H.done;H=k.next())H=H.value,H.bitrate<=E.S?e.push(H):l.push(H);e.sort(function(O,X){return X.bitrate-O.bitrate}); l.sort(function(O,X){return O.bitrate-X.bitrate}); E.G=e.concat(l)}; bY=function(E,e,l){this.T=E;this.G=e;this.expiration=l;this.XS=null}; CvX=function(E,e){if(!(PZ||LE()||Pg()))return null;E=HGS(e,E.L("html5_filter_fmp4_in_hls"));if(!E)return null;e=[];for(var l={},k=g.T(Object.keys(E)),H=k.next();!H.done;H=k.next()){H=g.T(E[H.value]);for(var O=H.next();!O.done;O=H.next()){var X=O.value;X.gC&&(O=X.gC.getId(),l[O]||(X=new g.$n(O,X.gC),l[O]=X,e.push(X)))}}return e.length>0?e:null}; B$X=function(E,e,l,k,H,O,X){if(!(PZ||LE()||Pg()))return UN();var A={},C=pF7(l),p=HGS(l,E.L("html5_filter_fmp4_in_hls"),E.W.j,A);if(!p)return X({noplst:1}),UN();xJ7(p);l={};var x=(l.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",l),Q;l=[];var W=[],B=[],w=null,U="";k=k&&k.match(/hls_timedtext_playlist/)?new k$7({itag:"0",url:k,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,gC:new g.fx("English","en",!1)}):null;for(var c=g.T(Object.keys(p)),V=c.next();!V.done;V=c.next())if(V=V.value,!E.L("html5_disable_drm_hfr_1080")|| V!=="383"&&V!=="373"){V=g.T(p[V]);for(var F=V.next();!F.done;F=V.next())if(F=F.value,F.width){for(var r=g.T(F.G),P=r.next();!P.done;P=r.next())if(P=P.value,p[P]){F.T=P;break}F.T||(F.T=QPl(p,F));if(r=p[F.T])if(l.push(F),F.oG==="fairplay"&&(Q=x),P="",F.Ky==="PQ"?P="smpte2084":F.Ky==="HLG"&&(P="arib-std-b67"),P&&(U=P),B.push(W17(r,[F],k,O,F.itag,F.width,F.height,F.fps,C,void 0,void 0,Q,P)),!w||F.width*F.height*F.fps>w.width*w.height*w.fps)w=F}else W.push(F)}else A[V]="disdrmhfr";B.reduce(function(N, R){return R.getInfo().isEncrypted()&&N},!0)&&(Q=x); H=Math.max(H,0);x=w||{};p=x.fps===void 0?0:x.fps;w=x.width===void 0?0:x.width;x=x.height===void 0?0:x.height;c=E.L("html5_native_audio_track_switching");B.push(W17(W,l,k,O,"93",w,x,p,C,"auto",H,Q,U,c));Object.entries(A).length&&X(A);return r3(E.W,B,Bk(E,e),!1)}; W17=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B){for(var w=0,U="",c=g.T(E),V=c.next();!V.done;V=c.next())V=V.value,U||(U=V.itag),V.audioChannels&&V.audioChannels>w&&(w=V.audioChannels,U=V.itag);H=new jO(H,"application/x-mpegURL",{audio:new T_(0,w),video:new UO(O,X,A,null,void 0,p,void 0,W),oG:Q,uu:U});E=new OGX(E,e,l?[l]:[],k,!!B);E.S=x?x:1369843;return new bY(H,E,C)}; pF7=function(E){E=g.T(E);for(var e=E.next();!e.done;e=E.next())if(e=e.value,e.url&&(e=e.url.split("expire/"),!(e.length<=1)))return+e[1].split("/")[0];return NaN}; QPl=function(E,e){for(var l=g.T(Object.keys(E)),k=l.next();!k.done;k=l.next()){k=k.value;var H=E[k][0];if(!H.width&&H.oG===e.oG&&!H.audioChannels)return k}return""}; xJ7=function(E){for(var e=new Set,l=g.T(Object.values(E)),k=l.next();!k.done;k=l.next())k=k.value,k.length&&(k=k[0],k.height&&k.codecs.startsWith("vp09")&&e.add(k.height));l=[];if(e.size){k=g.T(Object.keys(E));for(var H=k.next();!H.done;H=k.next())if(H=H.value,E[H].length){var O=E[H][0];O.height&&e.has(O.height)&&!O.codecs.startsWith("vp09")&&l.push(H)}}e=g.T(l);for(l=e.next();!l.done;l=e.next())delete E[l.value]}; vk=function(E,e){this.T=E;this.G=e}; otS=function(E,e,l,k){var H=[];l=g.T(l);for(var O=l.next();!O.done;O=l.next()){var X=O.value;if(X.url){O=new g.N3(X.url,!0);if(X.s){var A=O,C=X.sp,p=Kq8(decodeURIComponent(X.s));A[u[0]](C,encodeURIComponent(p))}A=g.T(Object.keys(k));for(C=A.next();!C.done;C=A.next())C=C.value,O.set(C,k[C]);X=M5(X.type,X.quality,X.itag,X.width,X.height);H.push(new vk(X,O))}}return r3(E.W,H,Bk(E,e),!1)}; Pk=function(E,e){this.T=E;this.G=e}; wFe=function(E,e,l){var k=[];l=g.T(l);for(var H=l.next();!H.done;H=l.next())if((H=H.value)&&H.url){var O=M5(H.type,"medium","0");k.push(new Pk(O,H.url))}return r3(E.W,k,Bk(E,e),!1)}; z1S=function(E,e){var l=[],k=M5(e.type,"auto",e.itag);l.push(new Pk(k,e.url));return r3(E.W,l,!1,!0)}; G$X=function(E){return E&&dJp[E]?dJp[E]:null}; T$7=function(E){switch(E){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 E;default:return"sabr.config"}}; iGX=function(E){if(E=E.commonConfig)this.url=E.url,this.urlQueryOverride=E.urlQueryOverride,E.ustreamerConfig&&(this.pF=fJ(E.ustreamerConfig)||void 0)}; $J7=function(E,e){var l;if(e=e==null?void 0:(l=e.watchEndpointSupportedOnesieConfig)==null?void 0:l.html5PlaybackOnesieConfig)E.d0=new iGX(e)}; g.aQ=function(E){E=E===void 0?{}:E;this.languageCode=E.languageCode||"";this.languageName=E.languageName||null;this.kind=E.kind||"";this.name=E.name===void 0?null:E.name;this.displayName=E.displayName||null;this.id=E.id||null;this.T=E.is_servable||!1;this.isTranslateable=E.is_translateable||!1;this.url=E.url||null;this.vssId=E.vss_id||"";this.isDefault=E.is_default||!1;this.translationLanguage=E.translationLanguage||null;this.xtags=E.xtags||"";this.captionId=E.captionId||""}; g.h5=function(E){var e={languageCode:E.languageCode,languageName:E.languageName,displayName:g.LT(E),kind:E.kind,name:E.name,id:E.id,is_servable:E.T,is_default:E.isDefault,is_translateable:E.isTranslateable,vss_id:E.vssId};E.xtags&&(e.xtags=E.xtags);E.captionId&&(e.captionId=E.captionId);E.translationLanguage&&(e.translationLanguage=E.translationLanguage);return e}; g.Mq=function(E){return E.translationLanguage?E.translationLanguage.languageCode:E.languageCode}; g.UJW=function(E){var e=E.vssId;E.translationLanguage&&e&&(e="t"+e+"."+g.Mq(E));return e}; g.LT=function(E){var e=[];if(E.displayName)e.push(E.displayName);else{var l=E.languageName||"";e.push(l);E.kind==="asr"&&l.indexOf("(")===-1&&e.push(" (Legendas autom\u00e1ticas)");E.name&&e.push(" - "+E.name)}E.translationLanguage&&e.push(" >> "+E.translationLanguage.languageName);return e.join("")}; jPZ=function(E,e,l,k){E||(E=e&&JS8.hasOwnProperty(e)&&cS0.hasOwnProperty(e)?cS0[e]+"_"+JS8[e]:void 0);e=E;if(!e)return null;E=e.match(ySW);if(!E||E.length!==5)return null;if(E=e.match(ySW)){var H=Number(E[3]),O=[7,8,10,5,6];E=!(Number(E[1])===1&&H===8)&&O.indexOf(H)>=0}else E=!1;return l||k||E?e:null}; Nq=function(E,e){for(var l={},k=g.T(Object.keys(I50)),H=k.next();!H.done;H=k.next()){H=H.value;var O=e?e+H:H;O=E[O+"_webp"]||E[O];g.aw(O)&&(l[I50[H]]=O)}return l}; ZS=function(E){var e={};if(!E||!E.thumbnails)return e;E=E.thumbnails.filter(function(A){return!!A.url}); E.sort(function(A,C){return A.width-C.width||A.height-C.height}); for(var l=g.T(Object.keys(F19)),k=l.next();!k.done;k=l.next()){var H=Number(k.value);k=F19[H];for(var O=g.T(E),X=O.next();!X.done;X=O.next())if(X=X.value,X.width>=H){H=f5X(X.url);g.aw(H)&&(e[k]=H);break}}(E=E.pop())&&E.width>=1280&&(E=f5X(E.url),g.aw(E)&&(e["maxresdefault.jpg"]=E));return e}; f5X=function(E){return E.startsWith("//")?"https:"+E:E}; Y9=function(E){return E&&E.baseUrl||""}; mD=function(E){E=g.R0(E);for(var e=g.T(Object.keys(E)),l=e.next();!l.done;l=e.next()){l=l.value;var k=E[l];E[l]=Array.isArray(k)?k[0]:k}return E}; Vrl=function(E,e){E.botguardData=e.playerAttestationRenderer.botguardData;e=e.playerAttestationRenderer.challenge;e!=null&&(E.YY=e)}; DJ9=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var k=l.interstitials.map(function(X){var A=g.M(X,Say);if(A)return{is_yto_interstitial:!0,raw_player_response:A};if(X=g.M(X,rSW))return Object.assign({is_yto_interstitial:!0},KF(X))}); k=g.T(k);for(var H=k.next();!H.done;H=k.next())switch(H=H.value,l.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":E.interstitials=E.interstitials.concat({time:0,playerVars:H,Pu:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":E.interstitials=E.interstitials.concat({time:0x7ffffffffffff,playerVars:H,Pu:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var O=Number(l.podConfig.timeToInsertAtMillis);E.interstitials=E.interstitials.concat({time:O,playerVars:H, Pu:O===0?5:7})}}}; bGZ=function(E,e){if(e=e.find(function(l){return!(!l||!l.tooltipRenderer)}))E.tooltipRenderer=e.tooltipRenderer}; vtZ=function(E,e){e.subscribeCommand&&(E.subscribeCommand=e.subscribeCommand);e.unsubscribeCommand&&(E.unsubscribeCommand=e.unsubscribeCommand);e.addToWatchLaterCommand&&(E.addToWatchLaterCommand=e.addToWatchLaterCommand);e.removeFromWatchLaterCommand&&(E.removeFromWatchLaterCommand=e.removeFromWatchLaterCommand);e.getSharePanelCommand&&(E.getSharePanelCommand=e.getSharePanelCommand)}; Pvy=function(E,e){e!=null?(E.Al=e,E.r$=!0):(E.Al="",E.r$=!1)}; g3=function(E,e){this.type=E||"";this.id=e||""}; KT=function(E){return new g3(E.substring(0,2),E.substring(2))}; nT=function(E,e){this.F6=E;this.author="";this.vS=null;this.playlistLength=0;this.T=this.sessionData=null;this.N={};this.title="";if(e){this.author=e.author||e.playlist_author||"";this.title=e.playlist_title||"";if(E=e.session_data)this.sessionData=mn(E,"&");var l;this.T=((l=e.thumbnail_ids)==null?void 0:l.split(",")[0])||null;this.N=Nq(e,"playlist_");this.videoId=e.video_id||void 0;if(l=e.list)switch(e.listType){case "user_uploads":this.playlistId=(new g3("UU","PLAYER_"+l)).toString();break;default:if(E= e.playlist_length)this.playlistLength=Number(E)||0;this.playlistId=KT(l).toString();if(e=e.video)this.videoId=(e[0]||null).video_id||void 0}else e.playlist&&(this.playlistLength=e.playlist.toString().split(",").length)}}; RQ=function(E,e){this.F6=E;this.a5=this.author="";this.vS=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.zo=this.lengthText="";this.sessionData=null;this.N={};this.title="";if(e){this.ariaLabel=e.aria_label||void 0;this.author=e.author||"";this.a5=e.a5||"";if(E=e.endscreen_autoplay_session_data)this.vS=mn(E,"&");this.Gc=e.Gc;this.isLivePlayback=e.live_playback==="1";this.isUpcoming=!!e.isUpcoming;if(E=e.length_seconds)this.lengthSeconds=typeof E==="string"?Number(E):E;this.lengthText= e.lengthText||"";this.zo=e.zo||"";this.publishedTimeText=e.publishedTimeText||void 0;if(E=e.session_data)this.sessionData=mn(E,"&");this.shortViewCount=e.short_view_count_text||void 0;this.N=Nq(e);this.title=e.title||"";this.videoId=e.docid||e.video_id||e.videoId||e.id||void 0;this.watchUrl=e.watchUrl||void 0}}; a58=function(E){var e,l,k=(e=E.getWatchNextResponse())==null?void 0:(l=e.contents)==null?void 0:l.twoColumnWatchNextResults,H,O,X,A,C;E=(H=E.getWatchNextResponse())==null?void 0:(O=H.playerOverlays)==null?void 0:(X=O.playerOverlayRenderer)==null?void 0:(A=X.endScreen)==null?void 0:(C=A.watchNextEndScreenRenderer)==null?void 0:C.results;if(!E){var p,x;E=k==null?void 0:(p=k.endScreen)==null?void 0:(x=p.endScreen)==null?void 0:x.results}return E}; g.t5=function(E){var e,l,k;E=g.M((e=E.getWatchNextResponse())==null?void 0:(l=e.playerOverlays)==null?void 0:(k=l.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,sV);return g.M(E==null?void 0:E.playerBar,L17)}; h1X=function(E){this.T=E.playback_progress_0s_url;this.Z=E.playback_progress_2s_url;this.G=E.playback_progress_10s_url}; MrW=function(){if(qq===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(e){}a:{try{var E=!!self.localStorage}catch(e){E=!1}if(E&&(E=g.Fy(g.aC()+"::yt-player"))){qq=new Vd(E);break a}qq=void 0}}return qq}; g.EE=function(){var E=MrW();if(!E)return{};try{var e=E.get("yt-player-lv");return JSON.parse(e||"{}")}catch(l){return{}}}; g.N$9=function(E){var e=MrW();e&&(E=JSON.stringify(E),e.set("yt-player-lv",E))}; g.ev=function(E){return g.EE()[E]||0}; g.l7=function(E,e){var l=g.EE();e!==l[E]&&(e!==0?l[E]=e:delete l[E],g.N$9(l))}; g.k7=function(E){return g.D(function(e){return e.return(g.DB(ZGe(),E))})}; OE=function(E,e,l,k,H,O,X,A){var C,p,x,Q,W,B;return g.D(function(w){switch(w.G){case 1:return C=g.ev(E),C===4?w.return(4):g.S(w,g.N1(),2);case 2:p=w.T;if(!p)throw g.Q4("wiac");if(!A||X===void 0){w.xt(3);break}return g.S(w,Yap(A,X),4);case 4:X=w.T;case 3:return x=l.lastModified||"0",g.S(w,g.k7(p),5);case 5:return Q=w.T,g.U9(w,6),H$++,g.S(w,g.$I(Q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ag:!0},function(U){if(O!==void 0&&X!==void 0){var c=""+E+"|"+e.id+"|"+x+"|"+String(O).padStart(10, "0");c=g.U0(U.objectStore("media"),X,c)}else c=g.BZ.resolve(void 0);var V=mJ7(E,e.qK()),F=mJ7(E,!e.qK()),r={fmts:gtX(k),format:l||{}};V=g.U0(U.objectStore("index"),r,V);var P=k.downloadedEndTime===-1;r=P?U.objectStore("index").get(F):g.BZ.resolve(void 0);var N={fmts:"music",format:{}};U=P&&H&&!e.qK()?g.U0(U.objectStore("index"),N,F):g.BZ.resolve(void 0);return g.BZ.all([U,r,c,V]).then(function(R){R=g.T(R);R.next();R=R.next().value;H$--;var K=g.ev(E);if(K!==4&&P&&H||R!==void 0&&g.K1p(R.fmts))K=1,g.l7(E, K);return K})}),8); case 8:return w.return(w.T);case 6:W=g.FW(w);H$--;B=g.ev(E);if(B===4)return w.return(B);g.l7(E,4);throw W;}})}; g.nt0=function(E){var e,l;return g.D(function(k){if(k.G==1)return g.S(k,g.N1(),2);if(k.G!=3){e=k.T;if(!e)throw g.Q4("ri");return g.S(k,g.k7(e),3)}l=k.T;return k.return(g.$I(l,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(H){var O=IDBKeyRange.bound(E+"|",E+"~");return H.objectStore("index").getAll(O).then(function(X){return X.map(function(A){return A?A.format:{}})})}))})}; sP0=function(E,e,l,k,H){var O,X,A;return g.D(function(C){if(C.G==1)return g.S(C,g.N1(),2);if(C.G!=3){O=C.T;if(!O)throw g.Q4("rc");return g.S(C,g.k7(O),3)}X=C.T;A=g.$I(X,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(p){var x=""+E+"|"+e+"|"+l+"|"+String(k).padStart(10,"0");return p.objectStore("media").get(x)}); return H?C.return(A.then(function(p){if(p===void 0)throw Error("No data from indexDb");return R1e(H,p)}).catch(function(p){throw new g.PK("Error while reading chunk: "+p.name+", "+p.message); })):C.return(A)})}; g.K1p=function(E){return E?E==="music"?!0:E.includes("dlt=-1")||!E.includes("dlt="):!1}; mJ7=function(E,e){return""+E+"|"+(e?"v":"a")}; gtX=function(E){var e={};return gS((e.dlt=E.downloadedEndTime.toString(),e.mket=E.maxKnownEndTime.toString(),e.avbr=E.averageByteRate.toString(),e))}; qap=function(E){var e={},l={};E=g.T(E);for(var k=E.next();!k.done;k=E.next()){var H=k.value,O=H.split("|");H.match(g.trZ)?(k=Number(O.pop()),isNaN(k)?l[H]="?":(O=O.join("|"),(H=e[O])?(O=H[H.length-1],k===O.end+1?O.end=k:H.push({start:k,end:k})):e[O]=[{start:k,end:k}])):l[H]="?"}E=g.T(Object.keys(e));for(k=E.next();!k.done;k=E.next())k=k.value,l[k]=e[k].map(function(X){return X.start+"-"+X.end}).join(","); return l}; X2=function(E){g.sJ.call(this);this.T=null;this.Z=new Sd;this.T=null;this.J=new Set;this.crossOrigin=E||""}; EoW=function(E,e,l){for(l=u7(E,l);l>=0;){var k=E.levels[l];if(k.isLoaded(AG(k,e))&&(k=g.C9(k,e)))return k;l--}return g.C9(E.levels[0],e)}; lp0=function(E,e,l){l=u7(E,l);for(var k,H;l>=0;l--)if(k=E.levels[l],H=AG(k,e),!k.isLoaded(H)){k=E;var O=l,X=O+"-"+H;k.J.has(X)||(k.J.add(X),k.Z.enqueue(O,{YD:O,jk:H}))}eSX(E)}; eSX=function(E){if(!E.T&&!E.Z.isEmpty()){var e=E.Z.remove();E.T=k29(E,e)}}; k29=function(E,e){var l=document.createElement("img");E.crossOrigin&&(l.crossOrigin=E.crossOrigin);l.src=E.levels[e.YD].cN(e.jk);l.onload=function(){var k=e.YD,H=e.jk;E.T!==null&&(E.T.onload=null,E.T=null);k=E.levels[k];k.loaded.add(H);eSX(E);var O=k.columns*k.rows;H*=O;k=Math.min(H+O-1,k.He()-1);H=[H,k];E.publish("l",H[0],H[1])}; return l}; g.p9=function(E,e,l,k){this.level=E;this.S=e;this.loaded=new Set;this.level=E;this.S=e;E=l.split("#");this.width=Math.floor(Number(E[0]));this.height=Math.floor(Number(E[1]));this.frameCount=Math.floor(Number(E[2]));this.columns=Math.floor(Number(E[3]));this.rows=Math.floor(Number(E[4]));this.T=Math.floor(Number(E[5]));this.Z=E[6];this.signature=E[7];this.videoLength=k}; AG=function(E,e){return Math.floor(e/(E.columns*E.rows))}; g.C9=function(E,e){e>=E.cw()&&E.LB();var l=AG(E,e),k=E.columns*E.rows,H=e%k;e=H%E.columns;H=Math.floor(H/E.columns);var O=E.LB()+1-k*l;if(O1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; H4S=function(E,e,l){return(E=E.levels[e])?E.ZO(l):-1}; u7=function(E,e){var l=E.S.get(e);if(l)return l;l=E.levels.length;for(var k=0;k=e)return E.S.set(e,k),k;E.S.set(e,l-1);return l-1}; QJ=function(E,e,l,k){l=l.split("#");l=[l[1],l[2],0,l[3],l[4],-1,l[0],""].join("#");g.p9.call(this,E,e,l,0);this.G=null;this.W=k?2:0}; W$=function(E,e,l,k){x7.call(this,E,0,void 0,e,!(k===void 0||!k));for(E=0;E=0?CS.countDownSecsForFullscreen*1E3:-1);E.L("web_autonav_color_transition")&&CS.watchToWatchTransitionRenderer&&(E.watchToWatchTransitionRenderer=g.M(CS.watchToWatchTransitionRenderer, G2v))}var TN=a58(E);if(TN){var uZ,Oh,Q1,W4=TN==null?void 0:(uZ=TN[0])==null?void 0:(Oh=uZ.endScreenVideoRenderer)==null?void 0:(Q1=Oh.navigationEndpoint)==null?void 0:Q1.clickTrackingParams,F8=g.$7(E);W4&&F8&&(F8.sessionData={itct:W4})}E.fg.currentVideoThumbnail&&(E.N=ZS(E.fg.currentVideoThumbnail));var Ds,b8,v8,e2,fy,zG=(Ds=E.fg)==null?void 0:(b8=Ds.contents)==null?void 0:(v8=b8.twoColumnWatchNextResults)==null?void 0:(e2=v8.results)==null?void 0:(fy=e2.results)==null?void 0:fy.contents;if(zG&&zG[1]){var VB, lW,P8,JV,iB=(VB=zG[1].videoSecondaryInfoRenderer)==null?void 0:(lW=VB.owner)==null?void 0:(P8=lW.videoOwnerRenderer)==null?void 0:(JV=P8.thumbnail)==null?void 0:JV.thumbnails;iB&&iB.length&&(E.profilePicture=iB[iB.length-1].url)}var PC=E7(e),k5,B4=(k5=E.getWatchNextResponse())==null?void 0:k5.onResponseReceivedEndpoints;if(B4)for(var Hq=g.T(B4),So=Hq.next();!So.done;So=Hq.next()){var ox=So.value;g.M(ox,UE)&&(E.xW=g.M(ox,UE));var EQ=g.M(ox,TMZ),PR=void 0;if((PR=EQ)==null?0:PR.entityKeys)E.WB=EQ.entityKeys|| [],EQ.visibleOnLoadKeys&&(E.visibleOnLoadKeys=EQ.visibleOnLoadKeys)}if(E.L("web_key_moments_markers")){var HO=g.JG.getState().entities,uW=g.gf("visibility_override","markersVisibilityOverrideEntity");var a0=nv(HO,"markersVisibilityOverrideEntity",uW);E.b3=(a0==null?void 0:a0.videoId)===(E.videoId||PC)&&(a0==null?0:a0.visibilityOverrideMarkersKey)?a0.visibilityOverrideMarkersKey:E.visibleOnLoadKeys;E.visibleOnLoadKeys=[].concat(g.Be(E.b3))}}}; Tg=function(E){var e;return((e=E.autoplaySwitchButtonRenderer)==null?void 0:e.enabled)!==void 0}; c$=function(E){return!!(E.Z&&E.Z.videoInfos&&E.Z.videoInfos.length)}; g.VJ=function(E){var e=E.j;E.L("html5_gapless_unlimit_format_selection")&&yJ(E)&&(e=!1);var l=!!E.T&&E.T.sK,k=E.F6,H=E.VT(),O=jv(E),X=E.R4,A=e,C=E.isOtf();e=E.ya();var p=E.Yt,x=E.getUserAudio51Preference(),Q=IR(E),W=F2(E),B=new L9X(k);if(k.f7()||k.L("html5_logging_format_selection"))B.G=!0;B.J0=O;B.R4=X&&k.N;B.Qd=x;g.DD("windows nt 5.1")&&!g.pJ&&(B.Ni=!0);if(O=H)O=g.ck(k)?KZ9(k):!1;O&&(B.pg=!0);A&&(B.Ni=!0,B.hN=!0);C&&!k.L("html5_otf_prefer_vp9")&&(B.Ni=!0);k.playerStyle==="picasaweb"&&(C&&(B.Ni= !1),B.kt=!1);p&&(B.Ni=!0);h9(k.W,M3.CHANNELS)&&(k.L("html5_enable_ac3")&&(B.S=!0),k.L("html5_enable_eac3")&&(B.W=!0),k.L("html5_enable_ac3_gapless")&&(B.h0=!0));k.L("html5_block_8k_hfr")&&(B.gH=!0);B.J=g.tJ(k.experiments,"html5_max_selectable_quality_ordinal");B.j=g.tJ(k.experiments,"html5_min_selectable_quality_ordinal");nJ&&(B.bY=480);if(l||H)B.kt=!1;B.b3=!1;B.disableAv1=Q;l=eL(k,B.T,void 0,B.disableAv1);l>0&&l<2160&&(l3()||k.L("html5_format_hybridization"))&&(B.T.supportsChangeType=+l3(),B.xE= l);l>=2160&&(B.SR=!0);HrX()&&!k.L("disable_av1_setting")&&(B.T.serveVp9OverAv1IfHigherRes=0,B.iN=!1);B.ya=e;B.c5=g.aa||gv()&&!e?!1:!0;B.N=k.L("html5_format_hybridization");B.rH=k.L("html5_disable_encrypted_vp9_live_non_2k_4k");B.dC=W;f9(E)&&(B.C7=E.L("html5_prefer_language_over_codec"));Pg()&&E.playerResponse&&E.playerResponse.playerConfig&&E.playerResponse.playerConfig.webPlayerConfig&&E.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(B.S=!0,B.W=!0);E.j&&E.isAd()&&(E.fp&& (B.V=E.fp),E.l6&&(B.Z=E.l6));B.fg=E.isLivePlayback&&E.hB()&&E.F6.L("html5_drm_live_audio_51");B.Yt=E.Kq;B.In=!f9(E);return E.Fr=B}; IR=function(E){return E.F6.L("html5_disable_av1")||E.L("html5_gapless_shorts_disable_av1")&&yJ(E)?!0:!1}; i4p=function(E){$Q("drm_pb_s",void 0,E.pg);E.jR||E.T&&bQ(E.T);var e={};E.T&&(e=dg9(E.FH,g.VJ(E),E.F6.W,E.T,function(l){return E.publish("ctmp","fmtflt",l)},!0,new Set)); e=new Wi(e,E.F6,E.ib,E.useCobaltWidevine?Pg()?Sv(E):!1:!1,function(l,k){E.wH(l,k)}); g.L(E,e);E.z8=!1;E.loading=!0;ZXW(e,function(l){$Q("drm_pb_f",void 0,E.pg);for(var k=g.T(l),H=k.next();!H.done;H=k.next())switch(H=H.value,H.flavor){case "fairplay":H.jR=E.jR;H.Az=E.Az;H.cB=E.cB;break;case "widevine":H.Ep=E.Ep}E.vJ=l;if(E.vJ.length>0&&(E.W=E.vJ[0],E.F6.f7())){l={};k=g.T(Object.entries(E.W.T));for(H=k.next();!H.done;H=k.next()){var O=g.T(H.value);H=O.next().value;O=O.next().value;var X="unk";(H=H.match(/(.*)codecs="(.*)"/))&&(X=H[2]);l[X]=O}E.wH("drmProbe",l)}E.M4()})}; $Iy=function(E,e){if(e.length===0||ru(E))return null;E.F6.W.Z&&(tf=!0);var l=E.oG;var k=E.lengthSeconds,H=E.isLivePlayback,O=E.Af,X=E.F6,A=Jpp(e);if(H||O){X=X.experiments;k=new bS("",X,!0);k.G=!O;k.sK=!0;k.isManifestless=!0;k.isLive=!O;k.Af=O;e=g.T(e);for(H=e.next();!H.done;H=e.next()){var C=H.value;H=ac(C,l);A=n_(C);A=hf(A.JD||C.url||"",A.nZ,A.s);var p=A.get("id");p&&p.includes("%7E")&&(k.V=!0);var x=void 0;p=(x=X)==null?void 0:x.P5("html5_max_known_end_time_rebase");x=Number(C.targetDurationSec|| 5);C=Number(C.maxDvrDurationSec||14400);var Q=Number(A.get("mindsq")||A.get("min_sq")||"0"),W=Number(A.get("maxdsq")||A.get("max_sq")||"0")||Infinity;k.Tg=k.Tg||Q;k.SY=k.SY||W;var B=!h4(H.mimeType);A&&Sz(k,new wa(A,H,{R6:x,mW:B,dl:C,Tg:Q,SY:W,e9:300,Af:O,B2:p}))}l=k}else if(A==="FORMAT_STREAM_TYPE_OTF"){k=k===void 0?0:k;O=new bS("",X.experiments,!1);O.duration=k||0;X=g.T(e);for(k=X.next();!k.done;k=X.next())k=k.value,e=ac(k,l,O.duration),H=n_(k),(H=hf(H.JD||k.url||"",H.nZ,H.s))&&(e.streamType==="FORMAT_STREAM_TYPE_OTF"? Sz(O,new zX(H,e,"sq/0")):Sz(O,new FK(H,e,Ro(k.initRange),Ro(k.indexRange))));O.isOtf=!0;l=O}else{k=k===void 0?0:k;O=new bS("",X.experiments,!1);O.duration=k||0;X=g.T(e);for(k=X.next();!k.done;k=X.next())A=k.value,k=ac(A,l,O.duration),e=Ro(A.initRange),H=Ro(A.indexRange),p=n_(A),(A=hf(p.JD||A.url||"",p.nZ,p.s))&&Sz(O,new FK(A,k,e,H));l=O}O=E.isLivePlayback&&!E.Af&&!E.SR&&!E.isPremiere;E.L("html5_live_head_playable")&&(!D7(E)&&O&&E.wH("missingLiveHeadPlayable",{}),E.F6.pg==="yt"&&(l.J0=!0));return l}; ru=function(E){return Pg()?!Sv(E):LE()?!(!E.jR||!E.L("html5_enable_safari_fairplay")&&T8()):!1}; Sv=function(E){return E.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Gg=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,l.cueRangeSetIdentifier){var k=void 0;E.wQ.set(l.cueRangeSetIdentifier,(k=l.playerCueRanges)!=null?k:[])}}; b7=function(E){return!(!E.T||!E.T.isManifestless)}; v$=function(E){return E.bY?E.isLowLatencyLiveStream&&E.T!=null&&Yw(E.T)>=5:E.isLowLatencyLiveStream&&E.T!=void 0&&Yw(E.T)>=5}; UIe=function(E){return Pg()&&Sv(E)?!1:ru(E)&&(g.pp(E.F6)?!E.isLivePlayback:E.hlsvp)||!T8()||E.De?!0:!1}; yWy=function(E){E.loading=!0;E.Lw=!1;if(JWW(E))g.nt0(E.videoId).then(function(k){cWX(E,k)}).then(function(){E.M4()}); else{Pu(E.C7)||g.UJ(new g.PK("DASH MPD Origin invalid: ",E.C7));var e=E.C7,l=g.tJ(E.F6.experiments,"dash_manifest_version")||4;e=g.BJ(e,{mpd_version:l});E.isLowLatencyLiveStream&&E.latencyClass!=="NORMAL"||(e=g.BJ(e,{pacing:0}));S$W(e,E.F6.experiments,E.isLivePlayback).then(function(k){E.U7()||(P$(E,k,!0),$Q("mrc",void 0,E.pg),E.M4())},function(k){E.U7()||(E.loading=!1,E.publish("dataloaderror",new g.pL("manifest.net.retryexhausted",{backend:"manifest", rc:k.status},1)))}); $Q("mrs",void 0,E.pg)}}; cWX=function(E,e){var l=e.map(function(C){return C.itag}),k; if((k=E.playerResponse)!=null&&k.streamingData){k=[];if(E.L("html5_offline_always_use_local_formats")){l=0;for(var H=g.T(e),O=H.next();!O.done;O=H.next()){O=O.value;var X=Object.assign({},O);X.signatureCipher="";k.push(X);X=g.T(E.playerResponse.streamingData.adaptiveFormats);for(var A=X.next();!A.done;A=X.next())if(A=A.value,O.itag===A.itag&&O.xtags===A.xtags){l+=1;break}}lx&&(x=B.getInfo().audio.numChannels)}x>2&&E.wH("hlschl",{mn:x});var c;((c=E.Fr)==null?0:c.G)&&E.wH("hlsfmtaf",{itags:Q.join(".")});var V;if(E.L("html5_enable_vp9_fairplay")&&((V=E.W)==null?0:A1(V)))for(E.wH("drm",{sbdlfbk:1}),x=g.T(E.vJ),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,ug(Q)){E.W=Q;break}Mt(E,p)})}return UN()}; VjS=function(E){if(E.isExternallyHostedPodcast&&E.UJ){var e=hG(E.UJ);if(!e[0])return UN();E.SqM=e[0];return z1S(E.F6,e[0]).then(function(l){Mt(E,l)})}return E.Vh&&E.Z2?wFe(E.F6,E.isAd(),E.Vh).then(function(l){Mt(E,l)}):UN()}; rWl=function(E){if(E.isExternallyHostedPodcast)return UN();var e=hG(E.UJ,E.I8);if(E.hlsvp){var l=O4Z(E.hlsvp,E.clientPlaybackNonce,E.hN);e.push(l)}return otS(E.F6,E.isAd(),e,SiW(E)).then(function(k){Mt(E,k)})}; Mt=function(E,e){E.qM=e;E.wN(new f_(g.o7(E.qM,function(l){return l.getInfo()})))}; SiW=function(E){var e={cpn:E.clientPlaybackNonce,c:E.F6.T.c,cver:E.F6.T.cver};E.LS&&(e.ptk=E.LS,e.oid=E.dk,e.ptchn=E.E6,e.pltype=E.Id,E.sA&&(e.m=E.sA));return e}; g.Nt=function(E){return ru(E)&&E.jR?(E={},E.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",E):E.G&&E.G.oG||null}; DIv=function(E){var e=Z7(E);return e&&e.text?g.Ow(e.text):E.paidContentOverlayText}; b4S=function(E){var e=Z7(E);return e&&e.durationMs?SW(e.durationMs):E.paidContentOverlayDurationMs}; Z7=function(E){var e,l,k;return E.playerResponse&&E.playerResponse.paidContentOverlay&&E.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.M((e=E.fg)==null?void 0:(l=e.playerOverlays)==null?void 0:(k=l.playerOverlayRenderer)==null?void 0:k.playerDisclosure,voX)||null}; Y7=function(E){var e="";if(E.pV)return E.pV;E.isLivePlayback&&(e=E.allowLiveDvr?"dvr":E.isPremiere?"lp":E.SR?"window":"live");E.Af&&(e="post");return e}; g.mB=function(E,e){return typeof E.keywords[e]!=="string"?null:E.keywords[e]}; PTX=function(E){return!!E.gV||!!E.x0||!!E.eA||!!E.ql||E.gb}; g.gu=function(E){return!!(E.C7||E.UJ||E.Vh||E.hlsvp||E.AU())}; wu=function(E){if(E.L("html5_onesie")&&E.errorCode)return!1;var e=g.i_(E.V,"ypc");E.ypcPreview&&(e=!1);return E.aG()&&!E.loading&&(g.gu(E)||g.i_(E.V,"heartbeat")||e)}; hG=function(E,e){E=nF(E);var l={};if(e){e=g.T(e.split(","));for(var k=e.next();!k.done;k=e.next())(k=k.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(l[k[1]]={width:k[2],height:k[3]})}e=g.T(E);for(k=e.next();!k.done;k=e.next()){k=k.value;var H=l[k.itag];H&&(k.width=H.width,k.height=H.height)}return E}; WA7=function(E,e){E.showShareButton=!!e;var l,k,H=((l=g.M(e,g.tS))==null?void 0:l.navigationEndpoint)||((k=g.M(e,g.tS))==null?void 0:k.command);H&&(E.sM=!!g.M(H,apX))}; XH9=function(E,e){var l=e.raw_embedded_player_response;if(!l){var k=e.embedded_player_response;k&&(l=JSON.parse(k))}l&&(E.Wq=l);if(E.Wq){E.embeddedPlayerConfig=E.Wq.embeddedPlayerConfig||null;if(l=E.Wq.videoFlags)l.playableInEmbed&&(E.allowEmbed=!0),l.isPrivate&&(E.isPrivate=!0),l.userDisplayName&&(e.user_display_name=l.userDisplayName),l.userDisplayImage&&(e.user_display_image=l.userDisplayImage);if(l=E.Wq.embedPreview){l=l.thumbnailPreviewRenderer;Pvy(E,l.controlBgHtml);if(k=l.defaultThumbnail)E.N= ZS(k);E.L("embeds_web_enable_search_button")&&l.searchButton&&(k=g.M(l.searchButton,g.tS))&&(E.AS3=g.M(k.navigationEndpoint,g.K9));(k=g.M(l==null?void 0:l.videoDetails,LAe))&&zS0(E,e,k);k=g.M(l==null?void 0:l.videoDetails,hSv);E.CD=!!l.addToWatchLaterButton;WA7(E,l.shareButton);if(k==null?0:k.musicVideoType)E.musicVideoType=k.musicVideoType;var H,O,X,A,C;if(k=g.M((H=E.getEmbeddedPlayerResponse())==null?void 0:(O=H.embedPreview)==null?void 0:(X=O.thumbnailPreviewRenderer)==null?void 0:(A=X.playButton)== null?void 0:(C=A.buttonRenderer)==null?void 0:C.navigationEndpoint,g.i7))$J7(E,k),E.videoId=k.videoId||E.videoId;l.videoDurationSeconds&&(E.lengthSeconds=SW(l.videoDurationSeconds));l.webPlayerActionsPorting&&vtZ(E,l.webPlayerActionsPorting);if(H=g.M(l==null?void 0:l.playlist,Mje)){E.Kz=!0;O=[];X=Number(H.currentIndex);if(H.contents)for(A=0,C=H.contents.length;A0:E.W7?!1:E.F6.wG||E.F6.mT||!g.qA(E.F6)?!0:!1:(E.W7?0:E.wG)&&g.qA(E.F6)?!0:!1;E.L("html5_log_detailpage_autoplay")&&OT(E)==="detailpage"&&E.wH("autoplay_info",{autoplay:E.vG,autonav:E.isAutonav,wasDompaused:E.W7,result:e});return e}; g.Cb=function(E){return E.oauthToken||E.F6.Gf}; tjp=function(E){if(E.L("html5_stateful_audio_normalization")){var e=1,l=g.tJ(E.F6.experiments,"html5_default_ad_gain");l&&E.isAd()&&(e=l);var k,H;l=(H=(k=E.S)==null?void 0:k.audio.S)!=null?H:E.lW;if(l==null||isNaN(l))E=sg9(E);else{k=(0,g.dE)();E.Dp=2;H=k-E.F6.zT<=E.maxStatefulTimeThresholdSec*1E3;E.applyStatefulNormalization&&H?E.Dp=4:H||(E.F6.Hy=Infinity,E.F6.zT=NaN);H=(E.Dp===4?g.Lk(E.F6.Hy,E.minimumLoudnessTargetLkfs,E.loudnessTargetLkfs):E.loudnessTargetLkfs)-l;if(E.Dp!==4){var O,X,A,C,p=((O= E.playerResponse)==null?void 0:(X=O.playerConfig)==null?void 0:(A=X.audioConfig)==null?void 0:(C=A.loudnessNormalizationConfig)==null?void 0:C.statelessLoudnessAdjustmentGain)||0;H+=p}H=Math.min(H,0);E.preserveStatefulLoudnessTarget&&(E.F6.Hy=l+H,E.F6.zT=k);E=Math.min(1,Math.pow(10,H/20))||e}}else E=sg9(E);return E}; sg9=function(E){var e=1,l=g.tJ(E.F6.experiments,"html5_default_ad_gain");l&&E.isAd()&&(e=l);if(E.F6.experiments.P5("html5_audio_gain_null_coalescing")){var k,H;l=(H=(k=E.S)==null?void 0:k.audio.Z)!=null?H:E.yf;l==0&&E.wH("db0fix",{rldb:E.yf},!0)}else{var O;l=((O=E.S)==null?void 0:O.audio.Z)||E.yf}isNaN(l)||(E.Dp=1);return Math.min(1,Math.pow(10,-l/20))||e}; jv=function(E){var e=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],l=w_(E.F6)==="TVHTML5_SIMPLY"&&E.F6.T.ctheme==="MUSIC";!E.JS&&(g.Ik(E.F6)||g.$9(E.F6)||l)&&(e.includes(E.musicVideoType)||E.isExternallyHostedPodcast)&&(E.JS=!0);if(e=g.vg())e=/Starboard\/([0-9]+)/.exec(g.vj()),e=(e?parseInt(e[1],10):NaN)<10;l=E.F6;l=(w_(l)==="TVHTML5_CAST"||w_(l)==="TVHTML5"&&(l.T.cver.startsWith("6.20130725")||l.T.cver.startsWith("6.20130726")))&&E.F6.T.ctheme==="MUSIC";var k;if(k=!E.JS)l||(l= E.F6,l=w_(l)==="TVHTML5"&&l.T.cver.startsWith("7")),k=l;k&&!e&&(e=E.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",l=(E.L("cast_prefer_audio_only_for_atv_and_uploads")||E.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&E.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",e||l||E.isExternallyHostedPodcast)&&(E.JS=!0);return E.F6.deviceIsAudioOnly||E.JS&&E.F6.N}; F2=function(E){var e,l,k;return((e=E.playerResponse)==null?void 0:(l=e.playerConfig)==null?void 0:(k=l.compositeVideoConfig)==null?void 0:k.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; qiX=function(E){var e,l,k,H=(e=E.playerResponse)==null?void 0:(l=e.playerConfig)==null?void 0:(k=l.compositeVideoConfig)==null?void 0:k.sourceConfigs,O,X,A;E=(O=E.playerResponse)==null?void 0:(X=O.playerConfig)==null?void 0:(A=X.compositeVideoConfig)==null?void 0:A.defaultActiveSourceVideoId;if(!H||!E)return"";H=g.T(H);for(O=H.next();!O.done;O=H.next())if(O=O.value,O.videoId===E&&O.audioTracks)for(O=g.T(O.audioTracks),X=O.next();!X.done;X=O.next())if(X=X.value,X.isDefaultForSource)return X.id||""; return""}; g.E2p=function(E){return E.sK()&&f9(E)||F2(E)}; pb=function(E){var e,l,k;return!!((e=E.playerResponse)==null?0:(l=e.playerConfig)==null?0:(k=l.mediaCommonConfig)==null?0:k.splitScreenEligible)}; xC=function(E){var e;return!((e=E.playerResponse)==null||!e.compositePlayabilityStatus)}; ecX=function(E){return isNaN(E)?0:Math.max((Date.now()-E)/1E3-30,0)}; l0W=function(E){return E.Dr&&!E.TR}; Qm=function(E){return!(!E.xe||!E.F6.N)&&E.AU()}; WO=function(E){return E.u0&&E.enableServerStitchedDai}; k40=function(E){return E.a6&&!E.OZ}; f9=function(E){var e=E.L("html5_enable_sabr_on_drive")&&E.F6.pg==="gd";if(E.Cu)return E.a6&&E.wH("fds",{fds:!0},!0),!1;if(E.F6.pg!=="yt"&&!e)return E.a6&&E.wH("dsvn",{ns:E.F6.pg},!0),!1;if(E.cotn||!E.T||E.T.isOtf&&!E.L("html5_enable_sabr_otf_in_client")||E.Z&&!E.Z.T||E.CK&&!E.L("html5_enable_sabr_csdai"))return!1;if(E.L("html5_use_sabr_requests_for_debugging"))return!0;E.a6&&E.wH("esfw",{usbc:E.a6,hsu:!!E.OZ},!0);if(E.a6&&E.OZ)return!0;if(E.L("html5_remove_client_sabr_determination"))return!1;var l= !E.T.sK&&!E.hB();e=l&&z8&&E.L("html5_enable_sabr_vod_streaming_xhr");l=l&&!z8&&E.L("html5_enable_sabr_vod_non_streaming_xhr");var k=BO(E),H=E.L("html5_enable_sabr_drm_vod_streaming_xhr")&&z8&&E.hB()&&!E.T.sK&&(E.drmProduct==="1"?!1:!0);(e=e||l||k||H)&&!E.OZ&&E.wH("sabr",{loc:"m"},!0);return e&&!!E.OZ}; BO=function(E){var e;if(!(e=z8&&E.sK()&&E.hB()&&(E.drmProduct==="1"?!1:!0)&&E.L("html5_sabr_live_drm_streaming_xhr"))){e=E.sK()&&!E.hB()&&z8;var l=E.sK()&&E.latencyClass!=="ULTRALOW"&&!E.isLowLatencyLiveStream&&E.L("html5_sabr_live_normal_latency_streaming_xhr"),k=E.isLowLatencyLiveStream&&E.L("html5_sabr_live_low_latency_streaming_xhr"),H=E.latencyClass==="ULTRALOW"&&E.L("html5_sabr_live_ultra_low_latency_streaming_xhr");e=e&&(l||k||H)}l=e;e=E.enableServerStitchedDai&&l&&E.L("html5_enable_sabr_ssdai_streaming_xhr"); l=!E.enableServerStitchedDai&&l;k=E.sK()&&!z8&&E.L("html5_enable_sabr_live_non_streaming_xhr");E=z8&&(E.Z0()||pb(E)&&E.L("html5_enable_sabr_for_lifa_eligible_streams"));return e||l||k||E}; JWW=function(E){var e;if(e=!!E.cotn)e=E.videoId,e=!!e&&g.ev(e)===1;return e&&!E.xe}; g.oF=function(E){if(!E.T||!E.G||!E.S)return!1;var e=E.T.T,l=!!e[E.G.id]&&mT(e[E.G.id].XS.T);e=!!e[E.S.id]&&mT(e[E.S.id].XS.T);return(E.G.itag==="0"||l)&&e}; wh=function(E){return E.jA?["OK","LIVE_STREAM_OFFLINE"].includes(E.jA.status):!0}; NMp=function(E){return(E=E.NO)&&E.showError?E.showError:!1}; zz=function(E,e){return E.L(e)?!0:(E.fflags||"").includes(e+"=true")}; xIe=function(E,e){e.inlineMetricEnabled&&(E.inlineMetricEnabled=!0);e.playback_progress_0s_url&&(E.ql=new h1X(e));if(e=e.video_masthead_ad_quartile_urls)E.x0=e.quartile_0_url,E.XV=e.quartile_25_url,E.FV=e.quartile_50_url,E.Yo=e.quartile_75_url,E.Sl=e.quartile_100_url,E.eA=e.quartile_0_urls,E.NW=e.quartile_25_urls,E.H2=e.quartile_50_urls,E.zk=e.quartile_75_urls,E.W2=e.quartile_100_urls}; pH8=function(E){var e={};E=g.T(E);for(var l=E.next();!l.done;l=E.next()){l=l.value;var k=l.split("=");k.length===2?e[k[0]]=k[1]:e[l]=!0}return e}; AWW=function(E){if(E){if(USW(E))return E;E=J8X(E);if(USW(E,!0))return E}return""}; g.HR8=function(E){return E.captionsLanguagePreference||E.F6.captionsLanguagePreference||g.mB(E,"yt:cc_default_lang")||E.F6.dO}; dh=function(E){return!(!E.isLivePlayback||!E.hasProgressBarBoundaries())}; g.$7=function(E){var e;return E.gY||((e=E.suggestions)==null?void 0:e[0])||null}; g.Gz=function(E){var e,l;return!!((e=E.embeddedPlayerConfig)==null?0:(l=e.embeddedPlayerFlags)==null?0:l.enableMusicUx)}; ORp=function(E){return E.j||E.L("web_player_media_session_infinity")&&E.isLivePlayback}; Tz=function(E){return E.F6.S&&E.isPrivate}; g.$C=function(E){var e=E.Y(),l=g.ic(e),k=e.C7;(e.L("embeds_web_enable_iframe_api_send_full_embed_url")||e.L("embeds_web_enable_rcat_validation_in_havs")||e.L("embeds_enable_autoplay_and_visibility_signals"))&&g.OV(e)&&(k&&(l.thirdParty=Object.assign({},l.thirdParty,{embedUrl:k})),Cj0(l,E));if(k=E.c5)l.clickTracking={clickTrackingParams:k};else if(g.OV(E.Y())&&g.LF("EVENT_ID"))l.clickTracking={clickTrackingParams:g.LF("EVENT_ID")};else if(e.L("html5_log_missing_itct")){var H;k=new g.PK("Missing ITCT in InnerTubeContext", {isAd:E.isAd(),HF5:(H=e.getWebPlayerContextConfig())==null?void 0:H.contextId});g.$F(k)}H=l.client||{};k="EMBED";var O=OT(E);O==="leanback"?k="WATCH":e.L("gvi_channel_client_screen")&&O==="profilepage"?k="CHANNEL":E.Yt?k="LIVE_MONITOR":O==="detailpage"?k="WATCH_FULL_SCREEN":O==="adunit"?k="ADUNIT":O==="sponsorshipsoffer"&&(k="UNKNOWN");H.clientScreen=k;if(e=E.kidsAppInfo)H.kidsAppInfo=JSON.parse(e);(k=E.ZR)&&!e&&(H.kidsAppInfo={contentSettings:{ageUpMode:XSW[k]}});if(e=E.Nh)H.unpluggedAppInfo={enableFilterMode:!0}; (k=E.unpluggedFilterModeType)&&!e&&(H.unpluggedAppInfo={filterModeType:u18[k]});if(e=E.Fy)H.unpluggedLocationInfo=e;l.client=H;H=l.request||{};E.w2&&(H.isPrefetch=!0);if(e=E.mdxEnvironment)H.mdxEnvironment=e;if(e=E.mdxControlMode)H.mdxControlMode=ARy[e];l.request=H;H=l.user||{};if(e=E.h0)H.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=E.iN)H.delegatePurchases={oauthToken:e},H.kidsParent={oauthToken:e};l.user=H;if(H=E.contextParams)l.activePlayers=[{playerContextParams:H}];if(E=E.clientScreenNonce)l.clientScreenNonce= E;return l}; g.ic=function(E){var e=g.N9(),l=e.client||{};if(E.forcedExperiments){var k=E.forcedExperiments.split(","),H=[];k=g.T(k);for(var O=k.next();!O.done;O=k.next())H.push(Number(O.value));l.experimentIds=H}if(H=E.homeGroupInfo)l.homeGroupInfo=JSON.parse(H);if(H=E.getPlayerType())l.playerType=H;if(H=E.T.ctheme)l.theme=H;if(H=E.livingRoomAppMode)l.tvAppInfo=Object.assign({},l.tvAppInfo,{livingRoomAppMode:H});H=E.deviceYear;E.L("html5_propagate_device_year")&&H&&(l.tvAppInfo=Object.assign({},l.tvAppInfo,{deviceYear:H})); if(H=E.livingRoomPoTokenId)l.tvAppInfo=Object.assign({},l.tvAppInfo,{livingRoomPoTokenId:H});e.client=l;l=e.user||{};E.enableSafetyMode&&(l=Object.assign({},l,{enableSafetyMode:!0}));E.pageId&&(l=Object.assign({},l,{onBehalfOfUser:E.pageId}));e.user=l;l=E.C7;E.L("embeds_web_enable_iframe_api_send_full_embed_url")||E.L("embeds_web_enable_rcat_validation_in_havs")||E.L("embeds_enable_autoplay_and_visibility_signals")||!l||(e.thirdParty={embedUrl:l});return e}; Bn0=function(E,e,l){var k=E.videoId,H=g.$C(E),O=E.Y(),X={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(BA()),referer:document.location.toString(),signatureTimestamp:20293};g.VC();E.isAutonav&&(X.autonav=!0);g.St(0,141)&&(X.autonavState=g.St(0,140)?"STATE_OFF":"STATE_ON");X.autoCaptionsDefaultOn=g.St(0,66);RSZ(E)&&(X.autoplay=!0);O.N&&E.cycToken&&(X.cycToken=E.cycToken);O.enablePrivacyFilter&&(X.enablePrivacyFilter=!0);E.isFling&&(X.fling=!0);var A=E.forceAdsUrl;if(A){var C={},p=[];A= A.split(",");A=g.T(A);for(var x=A.next();!x.done;x=A.next()){x=x.value;var Q=x.split("|");Q.length!==3||x.includes("=")||(Q[0]="breaktype="+Q[0],Q[1]="offset="+Q[1],Q[2]="url="+Q[2]);x={adtype:"video_ad"};Q=g.T(Q);for(var W=Q.next();!W.done;W=Q.next()){var B=g.T(W.value.split("="));W=B.next().value;B=OS9(B);x[W]=B.join("=")}Q=x.url;W=x.presetad;B=x.viralresponseurl;var w=Number(x.campaignid);if(x.adtype==="in_display_ad")Q&&(C.url=Q),W&&(C.presetAd=W),B&&(C.viralAdResponseUrl=B),w&&(C.viralCampaignId= String(w));else if(x.adtype==="video_ad"){var U={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(x.offset)||0)}};if(x=CA7[x.breaktype])U.breakType=x;Q&&(U.url=Q);W&&(U.presetAd=W);B&&(U.viralAdResponseUrl=B);w&&(U.viralCampaignId=String(w));p.push(U)}}X.forceAdParameters={videoAds:p,inDisplayAd:C}}E.isInlinePlaybackNoAd&&(X.isInlinePlaybackNoAd=!0);E.isLivingRoomDeeplink&&(X.isLivingRoomDeeplink=!0);C=E.Vw;if(C!=null){C={startWalltime:String(C)};if(p=E.UA)C.manifestDuration=String(p||14400); X.liveContext=C}if(E.mutedAutoplay){X.mutedAutoplay=!0;C=O.getWebPlayerContextConfig();var c,V;(C==null?0:(c=C.embedsHostFlags)==null?0:c.allowMutedAutoplayDurationMode)&&(C==null?0:(V=C.embedsHostFlags)==null?0:V.allowMutedAutoplayDurationMode.includes(pSl[E.mutedAutoplayDurationMode]))&&(X.mutedAutoplayDurationMode=pSl[E.mutedAutoplayDurationMode])}if(E.W7?0:E.wG)X.splay=!0;c=E.vnd;c===5&&(X.vnd=c);c={};if(V=E.isMdxPlayback)c.triggeredByMdx=V;if(V=E.e0)c.skippableAdsSupported=V.split(",").includes("ska"); if(p=E.bV){V=E.IX;C=[];p=g.T(p_8(p));for(A=p.next();!A.done;A=p.next()){A=A.value;x=A.platform;A={applicationState:A.xD?"INACTIVE":"ACTIVE",clientFormFactor:x0Z[x]||"UNKNOWN_FORM_FACTOR",clientName:Qv7[A.D1]||"UNKNOWN_INTERFACE",clientVersion:A.deviceVersion||"",platform:Qi0[x]||"UNKNOWN_PLATFORM"};x={};if(V){Q=void 0;try{Q=JSON.parse(V)}catch(r){g.UJ(r)}Q&&(x={params:[{key:"ms",value:Q.ms}]},Q.advertising_id&&(x.advertisingId=Q.advertising_id),Q.limit_ad_tracking!==void 0&&Q.limit_ad_tracking!== null&&(x.limitAdTracking=Q.limit_ad_tracking),A.osName=Q.os_name,A.userAgent=Q.user_agent,A.windowHeightPoints=Q.window_height_points,A.windowWidthPoints=Q.window_width_points)}C.push({adSignalsInfo:x,remoteClient:A})}c.remoteContexts=C}V=E.sourceContainerPlaylistId;C=E.serializedMdxMetadata;if(V||C)p={},V&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:V}),C&&(p.serializedMdxMetadata=C),c.mdxPlaybackSourceContext=p;X.mdxContext=c;c=e.width;c>0&&(X.playerWidthPixels=Math.round(c));if(e=e.height)X.playerHeightPixels= Math.round(e);l!==0&&(X.vis=l);if(l=O.widgetReferrer)X.widgetReferrer=l.substring(0,128);g.qA(O)&&X&&(X.ancestorOrigins=O.ancestorOrigins);E.defaultActiveSourceVideoId&&(X.compositeVideoContext={defaultActiveSourceVideoId:E.defaultActiveSourceVideoId});if(O=O.getWebPlayerContextConfig())X.encryptedHostFlags=O.encryptedHostFlags;k={videoId:k,context:H,playbackContext:{contentPlaybackContext:X}};if(E.wD){var F;k.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(F=E.wD)==null?void 0:F.reloadPlaybackParams}}E.contentCheckOk&& (k.contentCheckOk=!0);if(F=E.clientPlaybackNonce)k.cpn=F;if(F=E.playerParams)k.params=F;if(F=E.playlistId)k.playlistId=F;E.racyCheckOk&&(k.racyCheckOk=!0);F=E.Y();H=F.embedConfig;E.Q0&&F.L("embeds_enable_per_video_embed_config")?k.serializedThirdPartyEmbedConfig=E.Q0:H&&(k.serializedThirdPartyEmbedConfig=H);k.captionParams={};H=g.St(g.VC(),65);E.deviceCaptionsOn!=null?k.captionParams.deviceCaptionsOn=E.deviceCaptionsOn:g.TH(F)&&(k.captionParams.deviceCaptionsOn=H!=null?!H:!1);E.Po&&(k.captionParams.deviceCaptionsLangPref= E.Po);E.z6.length?k.captionParams.viewerSelectedCaptionLangs=E.z6:g.TH(F)&&(H=g.zu(),H==null?0:H.length)&&(k.captionParams.viewerSelectedCaptionLangs=H);H=E.fetchType==="onesie"&&E.L("html5_onesie_attach_po_token");X=E.fetchType!=="onesie"&&E.L("html5_non_onesie_attach_po_token");if(H||X)H=E.Y(),H.W7&&(k.serviceIntegrityDimensions={},k.serviceIntegrityDimensions.poToken=H.W7);F.L("fetch_att_independently")&&(k.attestationRequest={omitBotguardData:!0});k.playbackContext||(k.playbackContext={});k.playbackContext.devicePlaybackCapabilities= Wg0(E);k.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&E.wH("noVp9",{});return k}; Wg0=function(E){var e=!(E==null?0:E.ya())&&(E==null?void 0:E.sK())&&gv(),l;if(!(l=E==null)){l=g.VJ(E);E=E.Y().W;var k=VN("243");l=!(k&&DJ(l,k,E,!0)===!0)}return{supportsVp9Encoding:!(l||e),supportXhr:z8}}; wSp=function(E,e){var l,k,H;return g.D(function(O){if(O.G==1)return l={context:g.ic(E.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:E.videoId,cpn:E.clientPlaybackNonce}}]},k=g.mt(o2X),g.S(O,g.Vj(e,l,k),2);H=O.T;return O.return(H)})}; zcy=function(E,e,l){var k=g.tJ(e.experiments,"bg_vm_reinit_threshold");(!q0||(0,g.dE)()-q0>k)&&wSp(E,l).then(function(H){H&&(H=H.botguardData)&&g.e$(H,e)},function(H){E.U7()||(H=Qp(H),E.wH("attf",H.details))})}; UT=function(E,e){g.a.call(this);this.app=E;this.state=e}; cO=function(E,e,l){E.state.T.hasOwnProperty(e)||Jt(E,e,l);E.state.j[e]=function(){return l.apply(E,g.LS.apply(0,arguments))}; E.state.J.add(e)}; ym=function(E,e,l){E.state.T.hasOwnProperty(e)||Jt(E,e,l);E.app.Y().N&&(E.state.N[e]=function(){return l.apply(E,g.LS.apply(0,arguments))},E.state.J.add(e))}; Jt=function(E,e,l){E.state.T[e]=function(){return l.apply(E,g.LS.apply(0,arguments))}}; g.ju=function(E,e,l){return E.state.T[e].apply(E.state.T,g.Be(l))}; IF=function(){g.GE.call(this);this.W=new Map}; FD=function(){g.a.apply(this,arguments);this.element=null;this.J=new Set;this.j={};this.N={};this.T={};this.V=new Set;this.Z=new IF;this.G=new IF;this.S=new IF;this.W=new IF}; d07=function(E,e,l){typeof E==="string"&&(E={mediaContentUrl:E,startSeconds:e,suggestedQuality:l});a:{if((e=E.mediaContentUrl)&&(e=/\/([ve]|embed)\/([^#?]+)/.exec(e))&&e[2]){e=e[2];break a}e=null}E.videoId=e;return fb(E)}; fb=function(E,e,l){if(typeof E==="string")return{videoId:E,startSeconds:e,suggestedQuality:l};e={};l=g.T(G4l);for(var k=l.next();!k.done;k=l.next())k=k.value,E[k]&&(e[k]=E[k]);if(E=E.embedConfig||E.embed_config)if(typeof E==="string")e.embed_config=E;else if(g.O6(E))try{var H=JSON.stringify(E);e.embed_config=H}catch(O){console.error("Invalid embedConfig JSON",O)}return e}; TnW=function(E,e,l,k){if(g.O6(E)&&!Array.isArray(E)){e="playlist list listType index startSeconds suggestedQuality".split(" ");l={};for(k=0;k32&&k.push("hfr");e.isHdr()&&k.push("hdr");e.primaries==="bt2020"&&k.push("wcg");l.video_quality_features=k}}if(E=E.getPlaylistId())l.list=E;return l}; bc=function(){Vm.apply(this,arguments)}; vO=function(E,e){var l={};if(E.app.Y().kt){E=g.T(JRv);for(var k=E.next();!k.done;k=E.next())k=k.value,e.hasOwnProperty(k)&&(l[k]=e[k]);if(e=l.qoe_cat)E="",typeof e==="string"&&e.length>0&&(E=e.split(",").filter(function(H){return cR7.includes(H)}).join(",")),l.qoe_cat=E; yRv(l)}else for(E=g.T(jip),k=E.next();!k.done;k=E.next())k=k.value,e.hasOwnProperty(k)&&(l[k]=e[k]);return l}; yRv=function(E){var e=E.raw_player_response;if(!e){var l=E.player_response;l&&(e=JSON.parse(l))}delete E.player_response;delete E.raw_player_response;if(e){E.raw_player_response={streamingData:e.streamingData,playerConfig:e.playerConfig};var k;if((k=e.playbackTracking)==null?0:k.qoeUrl)E.raw_player_response=Object.assign({},E.raw_player_response,{playbackTracking:{qoeUrl:e.playbackTracking.qoeUrl}});e.videoDetails&&(e.videoDetails.videoId||e.videoDetails.lengthSeconds)&&(l={},e.videoDetails.videoId&& (l.videoId=e.videoDetails.videoId),e.videoDetails.lengthSeconds&&(l.lengthSeconds=e.videoDetails.lengthSeconds),E.raw_player_response=Object.assign({},E.raw_player_response,{videoDetails:l}))}}; PO=function(E,e,l){var k=E.app.pY(l);if(!k)return 0;E=k-E.app.getCurrentTime(l);return e-E}; Fg7=function(E){var e=e===void 0?5:e;return E?I0p[E]||e:e}; g.aF=function(){bc.apply(this,arguments)}; f0y=function(E){Jt(E,"getInternalApiInterface",E.getInternalApiInterface);Jt(E,"addEventListener",E.Kv);Jt(E,"removeEventListener",E.GgM);Jt(E,"cueVideoByPlayerVars",E.yF);Jt(E,"loadVideoByPlayerVars",E.Pa);Jt(E,"preloadVideoByPlayerVars",E.HY3);Jt(E,"getAdState",E.getAdState);Jt(E,"sendAbandonmentPing",E.sendAbandonmentPing);Jt(E,"setLoopRange",E.setLoopRange);Jt(E,"getLoopRange",E.getLoopRange);Jt(E,"setAutonavState",E.setAutonavState);Jt(E,"seekTo",E.qJt);Jt(E,"seekBy",E.j7d);Jt(E,"seekToLiveHead", E.seekToLiveHead);Jt(E,"requestSeekToWallTimeSeconds",E.requestSeekToWallTimeSeconds);Jt(E,"seekToStreamTime",E.seekToStreamTime);Jt(E,"prefetchKeyPlay",E.prefetchKeyPlay);Jt(E,"startSeekCsiAction",E.startSeekCsiAction);Jt(E,"getStreamTimeOffset",E.getStreamTimeOffset);Jt(E,"getVideoData",E.FI);Jt(E,"setInlinePreview",E.setInlinePreview);Jt(E,"getAppState",E.getAppState);Jt(E,"updateLastActiveTime",E.updateLastActiveTime);Jt(E,"setBlackout",E.setBlackout);Jt(E,"setUserEngagement",E.setUserEngagement); Jt(E,"updateSubtitlesUserSettings",E.updateSubtitlesUserSettings);Jt(E,"getPresentingPlayerType",E.qI);Jt(E,"canPlayType",E.canPlayType);Jt(E,"updatePlaylist",E.updatePlaylist);Jt(E,"updateVideoData",E.updateVideoData);Jt(E,"updateEnvironmentData",E.updateEnvironmentData);Jt(E,"sendVideoStatsEngageEvent",E.ar3);Jt(E,"productsInVideoVisibilityUpdated",E.productsInVideoVisibilityUpdated);Jt(E,"setSafetyMode",E.setSafetyMode);Jt(E,"isAtLiveHead",function(e){return E.isAtLiveHead(void 0,e)}); Jt(E,"getVideoAspectRatio",E.getVideoAspectRatio);Jt(E,"getPreferredQuality",E.getPreferredQuality);Jt(E,"getPlaybackQualityLabel",E.getPlaybackQualityLabel);Jt(E,"setPlaybackQualityRange",E.H00);Jt(E,"onAdUxClicked",E.onAdUxClicked);Jt(E,"getFeedbackProductData",E.getFeedbackProductData);Jt(E,"getStoryboardFrame",E.getStoryboardFrame);Jt(E,"getStoryboardFrameIndex",E.getStoryboardFrameIndex);Jt(E,"getStoryboardLevel",E.getStoryboardLevel);Jt(E,"getNumberOfStoryboardLevels",E.getNumberOfStoryboardLevels); Jt(E,"getCaptionWindowContainerId",E.getCaptionWindowContainerId);Jt(E,"getAvailableQualityLabels",E.getAvailableQualityLabels);Jt(E,"addCueRange",E.addCueRange);Jt(E,"addUtcCueRange",E.addUtcCueRange);Jt(E,"showAirplayPicker",E.showAirplayPicker);Jt(E,"dispatchReduxAction",E.dispatchReduxAction);Jt(E,"getPlayerResponse",E.pU);Jt(E,"getWatchNextResponse",E.u5);Jt(E,"getHeartbeatResponse",E.V9);Jt(E,"getCurrentTime",E.D5);Jt(E,"getDuration",E.Fp);Jt(E,"getPlayerState",E.getPlayerState);Jt(E,"getPlayerStateObject", E.nU);Jt(E,"getVideoLoadedFraction",E.getVideoLoadedFraction);Jt(E,"getProgressState",E.getProgressState);Jt(E,"getVolume",E.getVolume);Jt(E,"setVolume",E.S4);Jt(E,"isMuted",E.isMuted);Jt(E,"mute",E.QO);Jt(E,"unMute",E.al);Jt(E,"loadModule",E.loadModule);Jt(E,"unloadModule",E.unloadModule);Jt(E,"getOption",E.Js);Jt(E,"getOptions",E.getOptions);Jt(E,"setOption",E.setOption);Jt(E,"loadVideoById",E.Ip);Jt(E,"loadVideoByUrl",E.pC);Jt(E,"playVideo",E.z0);Jt(E,"loadPlaylist",E.loadPlaylist);Jt(E,"nextVideo", E.nextVideo);Jt(E,"previousVideo",E.previousVideo);Jt(E,"playVideoAt",E.playVideoAt);Jt(E,"getDebugText",E.getDebugText);Jt(E,"getWebPlayerContextConfig",E.getWebPlayerContextConfig);Jt(E,"notifyShortsAdSwipeEvent",E.notifyShortsAdSwipeEvent);Jt(E,"getVideoContentRect",E.getVideoContentRect);Jt(E,"setSqueezeback",E.setSqueezeback);Jt(E,"toggleSubtitlesOn",E.toggleSubtitlesOn);Jt(E,"isSubtitlesOn",E.isSubtitlesOn);Jt(E,"reportPlaybackIssue",E.reportPlaybackIssue);Jt(E,"setAutonav",E.setAutonav);Jt(E, "isNotServable",E.isNotServable);Jt(E,"channelSubscribed",E.channelSubscribed);Jt(E,"channelUnsubscribed",E.channelUnsubscribed);Jt(E,"togglePictureInPicture",E.togglePictureInPicture);Jt(E,"supportsGaplessAudio",E.supportsGaplessAudio);Jt(E,"supportsGaplessShorts",E.supportsGaplessShorts);Jt(E,"enqueueVideoByPlayerVars",function(e){return void E.enqueueVideoByPlayerVars(e)}); Jt(E,"clearQueue",E.clearQueue);Jt(E,"getAudioTrack",E.R2);Jt(E,"setAudioTrack",E.yS6);Jt(E,"getAvailableAudioTracks",E.Pr);Jt(E,"getMaxPlaybackQuality",E.getMaxPlaybackQuality);Jt(E,"getUserPlaybackQualityPreference",E.getUserPlaybackQualityPreference);Jt(E,"getSubtitlesUserSettings",E.getSubtitlesUserSettings);Jt(E,"resetSubtitlesUserSettings",E.resetSubtitlesUserSettings);Jt(E,"setMinimized",E.setMinimized);Jt(E,"setOverlayVisibility",E.setOverlayVisibility);Jt(E,"confirmYpcRental",E.confirmYpcRental); Jt(E,"queueNextVideo",E.queueNextVideo);Jt(E,"handleExternalCall",E.handleExternalCall);Jt(E,"logApiCall",E.logApiCall);Jt(E,"isExternalMethodAvailable",E.isExternalMethodAvailable);Jt(E,"setScreenLayer",E.setScreenLayer);Jt(E,"getCurrentPlaylistSequence",E.getCurrentPlaylistSequence);Jt(E,"getPlaylistSequenceForTime",E.getPlaylistSequenceForTime);Jt(E,"shouldSendVisibilityState",E.shouldSendVisibilityState);Jt(E,"syncVolume",E.syncVolume);Jt(E,"highlightSettingsMenuItem",E.highlightSettingsMenuItem); Jt(E,"openSettingsMenuItem",E.openSettingsMenuItem);Jt(E,"getEmbeddedPlayerResponse",E.getEmbeddedPlayerResponse);Jt(E,"getVisibilityState",E.getVisibilityState);Jt(E,"isMutedByMutedAutoplay",E.isMutedByMutedAutoplay);Jt(E,"isMutedByEmbedsMutedAutoplay",E.isMutedByEmbedsMutedAutoplay);Jt(E,"setGlobalCrop",E.setGlobalCrop);Jt(E,"setInternalSize",E.setInternalSize);Jt(E,"setFauxFullscreen",E.setFauxFullscreen);Jt(E,"setAppFullscreen",E.setAppFullscreen)}; ht=function(E,e,l){E=g.Lb(E.tf(),e);return l?(l.addOnDisposeCallback(E),null):E}; g.MX=function(E,e,l){return E.app.Y().YU?e:g.eE("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:e,SHORTCUT:l})}; VbW=function(E){E.tf().element.setAttribute("aria-live","polite")}; g.NX=function(E,e){g.aF.call(this,E,e);f0y(this);ym(this,"addEventListener",this.rh);ym(this,"removeEventListener",this.SJ5);ym(this,"cueVideoByPlayerVars",this.C2);ym(this,"loadVideoByPlayerVars",this.NP);ym(this,"preloadVideoByPlayerVars",this.zf0);ym(this,"loadVideoById",this.Ip);ym(this,"loadVideoByUrl",this.pC);ym(this,"playVideo",this.z0);ym(this,"loadPlaylist",this.loadPlaylist);ym(this,"nextVideo",this.nextVideo);ym(this,"previousVideo",this.previousVideo);ym(this,"playVideoAt",this.playVideoAt); ym(this,"getVideoData",this.Cm);ym(this,"seekBy",this.ehD);ym(this,"seekTo",this.tH6);ym(this,"showControls",this.showControls);ym(this,"hideControls",this.hideControls);ym(this,"cancelPlayback",this.cancelPlayback);ym(this,"getProgressState",this.getProgressState);ym(this,"isInline",this.isInline);ym(this,"setInline",this.setInline);ym(this,"setLoopVideo",this.setLoopVideo);ym(this,"getLoopVideo",this.getLoopVideo);ym(this,"getVideoContentRect",this.getVideoContentRect);ym(this,"getVideoStats",this.i5); ym(this,"getCurrentTime",this.Kd);ym(this,"getDuration",this.Fp);ym(this,"getPlayerState",this.w9);ym(this,"getVideoLoadedFraction",this.xL);ym(this,"mute",this.QO);ym(this,"unMute",this.al);ym(this,"setVolume",this.S4);ym(this,"loadModule",this.loadModule);ym(this,"unloadModule",this.unloadModule);ym(this,"getOption",this.Js);ym(this,"getOptions",this.getOptions);ym(this,"setOption",this.setOption);ym(this,"addCueRange",this.addCueRange);ym(this,"getDebugText",this.getDebugText);ym(this,"getStoryboardFormat", this.getStoryboardFormat);ym(this,"toggleFullscreen",this.toggleFullscreen);ym(this,"isFullscreen",this.isFullscreen);ym(this,"getPlayerSize",this.getPlayerSize);ym(this,"toggleSubtitles",this.toggleSubtitles);ym(this,"setCenterCrop",this.setCenterCrop);ym(this,"setFauxFullscreen",this.setFauxFullscreen);ym(this,"setSizeStyle",this.setSizeStyle);ym(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);ym(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);$07(this)}; g.Zt=function(E){E=E.SE();var e=E.zN.get("endscreen");return e&&e.tY()?!0:E.dE()}; g.YC=function(E,e){E.getPresentingPlayerType()===3?E.publish("mdxautoplaycancel"):E.MD("onAutonavCancelled",e)}; g.gh=function(E){var e=m$(E.SE());return E.app.QS&&!E.isFullscreen()||E.getPresentingPlayerType()===3&&e&&e.sP()&&e.bR()||!!E.getPlaylist()}; g.Kb=function(E,e){g.ju(E,"addEmbedsConversionTrackingParams",[e])}; g.RF=function(E){return(E=g.nb(E.SE()))?E.Tn():{}}; g.SDl=function(E){E=(E=E.getVideoData())&&E.G;return!!E&&!(!E.audio||!E.video)&&E.mimeType!=="application/x-mpegURL"}; g.sT=function(E,e,l){E=E.zz().element;var k=N$(E.children,function(H){H=Number(H.getAttribute("data-layer"));return l-H||1}); k<0&&(k=-(k+1));wT(E,e,k);e.setAttribute("data-layer",String(l))}; g.tt=function(E){var e=E.Y();if(!e.Fy)return!1;var l=E.getVideoData();if(!l||E.getPresentingPlayerType()===3)return!1;var k=(!l.isLiveDefaultBroadcast||e.L("allow_poltergust_autoplay"))&&!dh(l);k=l.isLivePlayback&&(!e.L("allow_live_autoplay")||!k);var H=l.isLivePlayback&&e.L("allow_live_autoplay_on_mweb");E=E.getPlaylist();E=!!E&&E.sP();var O=l.fg&&l.fg.playerOverlays||null;O=!!(O&&O.playerOverlayRenderer&&O.playerOverlayRenderer.autoplay);O=l.r$&&O;return!l.ypcPreview&&(!k||H)&&!g.i_(l.V,"ypc")&& !E&&(!g.qA(e)||O)}; D08=function(E,e){E=rR7(E.app.lP().W);E=g.T(E);for(var l=E.next();!l.done;l=E.next()){l=l.value;var k=l.getAvailableAudioTracks(),H=null;k=g.T(k);for(var O=k.next();!O.done;O=k.next())if(O=O.value,O.getLanguageInfo().getId()===e){H=O;break}H&&l.Ge(H,!0)}}; qX=function(){Fg.apply(this,arguments);this.requestHeaders={}}; ey=function(){Eb||(Eb=new qX);return Eb}; l4=function(E,e){e?E.requestHeaders.Authorization="Bearer "+e:delete E.requestHeaders.Authorization}; g.kl=function(E){g.a.call(this);var e=this;this.I4=E;this.p5={hn:function(){return e.I4}}}; g.HI=function(E,e,l,k){k=k===void 0?!1:k;g.lU.call(this,e);var H=this;this.U=E;this.SR=k;this.N=new g.G_(this);this.fade=new g.mO(this,l,!0,void 0,void 0,function(){H.kQ()}); g.L(this,this.N);g.L(this,this.fade)}; Ob=function(E){var e=E.U.getRootNode();return E.U.L("web_watch_pip")||E.U.L("web_shorts_pip")?tu(e):document}; bR9=function(E){E.G&&(document.activeElement&&g.dT(E.element,document.activeElement)&&E.G.focus(),E.G.setAttribute("aria-expanded","false"),E.G=void 0);g.iG(E.N);E.V=void 0}; X_=function(E,e,l){E.iV()?E.uY():E.Bs(e,l)}; u4=function(E,e,l,k){k=new g.Z({X:"div",s7:["ytp-linked-account-popup-button"],Tz:k,D:{role:"button",tabindex:"0"}});e=new g.Z({X:"div",B:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{X:"div",B:"ytp-linked-account-popup-title",Tz:e},{X:"div",B:"ytp-linked-account-popup-description",Tz:l},{X:"div",B:"ytp-linked-account-popup-buttons",K:[k]}]});g.HI.call(this,E,{X:"div",B:"ytp-linked-account-popup-container",K:[e]},100);var H=this;this.dialog=e;g.L(this,this.dialog); k.listen("click",function(){H.uY()}); g.L(this,k);g.sT(this.U,this.element,4);this.hide()}; g.CV=function(E,e,l,k){g.lU.call(this,E);this.priority=e;l&&g.AL(this,l);k&&this.g$(k)}; g.pV=function(E,e,l,k){E=E===void 0?{}:E;e=e===void 0?[]:e;l=l===void 0?!1:l;k=k===void 0?!1:k;e.push("ytp-menuitem");var H=E;"role"in H||(H.role="menuitem");l||(H=E,"tabindex"in H||(H.tabindex="0"));E={X:l?"a":"div",s7:e,D:E,K:[{X:"div",B:"ytp-menuitem-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-menuitem-label",Tz:"{{label}}"},{X:"div",B:"ytp-menuitem-content",Tz:"{{content}}"}]};k&&E.K.push({X:"div",B:"ytp-menuitem-secondary-icon",Tz:"{{secondaryIcon}}"});return E}; g.AL=function(E,e){E.updateValue("label",e)}; xl=function(E){g.CV.call(this,g.pV({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var e=this;this.U=E;this.G=this.T=!1;this.wC=E.Xm();E.createServerVe(this.element,this,!0);this.C(this.U,"settingsMenuVisibilityChanged",function(l){e.yB(l)}); this.C(this.U,"videodatachange",this.S);this.listen("click",this.onClick);this.S()}; Q7=function(E){return E?g.Ow(E):""}; WI=function(E){g.a.call(this);this.api=E}; BI=function(E){WI.call(this,E);var e=this;Jt(E,"setAccountLinkState",function(l){e.setAccountLinkState(l)}); Jt(E,"updateAccountLinkingConfig",function(l){e.updateAccountLinkingConfig(l)}); E.addEventListener("videodatachange",function(l,k){e.onVideoDataChange(k)}); E.addEventListener("settingsMenuInitialized",function(){e.menuItem=new xl(e.api);g.L(e,e.menuItem)})}; v2Z=function(E){this.api=E;this.T={}}; on=function(E,e,l,k){e in E.T||(l=new g.Mr(l,k,{id:e,priority:2,namespace:"appad"}),E.api.qQ([l],1),E.T[e]=l)}; w7=function(E){WI.call(this,E);var e=this;this.events=new g.G_(this);g.L(this,this.events);this.T=new v2Z(this.api);this.events.C(this.api,"legacyadtrackingpingreset",function(){e.T.T={}}); this.events.C(this.api,"legacyadtrackingpingchange",function(l){var k=e.T;on(k,"part2viewed",1,0x8000000000000);on(k,"engagedview",Math.max(1,l.dC*1E3),0x8000000000000);if(!l.isLivePlayback){var H=l.lengthSeconds*1E3;yJ(l)&&k.api.L("html5_shorts_gapless_ads_duration_fix")&&(H=k.api.getProgressState().seekableEnd*1E3-l.Ft);on(k,"videoplaytime25",H*.25,H);on(k,"videoplaytime50",H*.5,H);on(k,"videoplaytime75",H*.75,H);on(k,"videoplaytime100",H,0x8000000000000);on(k,"conversionview",H,0x8000000000000); on(k,"videoplaybackstart",1,H);on(k,"videoplayback2s",2E3,H);on(k,"videoplayback10s",1E4,H)}}); this.events.C(this.api,g.Zj("appad"),this.G);this.events.C(this.api,g.Yk("appad"),this.G)}; hc7=function(E,e,l){if(!(l in e))return!1;e=e[l];Array.isArray(e)||(e=[e]);e=g.T(e);for(l=e.next();!l.done;l=e.next()){l=l.value;var k={CPN:E.api.getVideoData().clientPlaybackNonce};l=g.Ug(l,k);k=void 0;k=k===void 0?!1:k;(k=bx(vu(l,PAy),l,k,"Active View 3rd Party Integration URL"))||(k=void 0,k=k===void 0?!1:k,k=bx(vu(l,a09),l,k,"Google/YouTube Brand Lift URL"));k||(k=void 0,k=k===void 0?!1:k,k=bx(vu(l,Lg9),l,k,"Nielsen OCR URL"));g.jA(l,void 0,k)}return!0}; zF=function(E,e){Mbp(E,e).then(function(l){g.jA(e,void 0,void 0,l)})}; d7=function(E,e){e.forEach(function(l){zF(E,l)})}; Mbp=function(E,e){return g.QS(E.api.Y())&&eQ(e)&&EN(e)?g.FG(E.api.Y(),g.Cb(E.api.getVideoData())).then(function(l){var k;l&&(k={Authorization:"Bearer "+l});return k},void 0):J2()}; Nn7=function(E){WI.call(this,E);this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"videoready",function(e){if(E.getPresentingPlayerType()===1){var l,k,H={playerDebugData:{pmlSignal:!!((l=e.getPlayerResponse())==null?0:(k=l.adPlacements)==null?0:k.some(function(O){var X;return O==null?void 0:(X=O.adPlacementRenderer)==null?void 0:X.renderer})), contentCpn:e.clientPlaybackNonce}};g.E0("adsClientStateChange",H)}})}; GF=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);Jt(this.api,"getUserAudioQualitySetting",function(){return e.getUserAudioQualitySetting()}); Jt(this.api,"setUserAudioQualitySetting",function(l){e.setUserAudioQualitySetting(l)}); Jt(this.api,"hasHqaAudioTrack",function(){return e.hasHqaAudioTrack()}); this.Ke=X_l();this.updateEnvironmentData()}; TF=function(E){g.Z.call(this,{X:"button",s7:["ytp-button","ytp-autonav-toggle"],D:{title:E.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{X:"div",B:"ytp-autonav-toggle-button-container",K:[{X:"div",B:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.U=E;this.G=[];this.T=!1;this.isChecked=!0;E.createClientVe(this.element,this, 113681);this.C(E,"presentingplayerstatechange",this.RX);this.listen("click",this.onClick);this.U.Y().L("web_player_autonav_toggle_always_listen")&&ZRX(this);ht(E,this.element,this);this.RX()}; ZRX=function(E){E.G.push(E.C(E.U,"videodatachange",E.RX));E.G.push(E.C(E.U,"videoplayerreset",E.RX));E.G.push(E.C(E.U,"onPlaylistUpdate",E.RX));E.G.push(E.C(E.U,"autonavchange",E.qZ))}; YDe=function(E){E.isChecked=E.isChecked;E.X6("ytp-autonav-toggle-button").setAttribute("aria-checked",String(E.isChecked));var e=E.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";E.U.Y().L("player_tooltip_data_title_killswitch")?E.update({title:e,label:e}):E.update({"data-tooltip-title":e,label:e});E.U.nw()}; m0y=function(E){return E.U.Y().L("web_player_autonav_use_server_provided_state")&&Tg(E.mU())}; g2X=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"standardControlsInitialized",function(){var l=new TF(E);g.L(e,l);E.yb(l,"RIGHT_CONTROLS_LEFT")})}; i4=function(E,e){g.CV.call(this,g.pV({role:"menuitemcheckbox","aria-checked":"false"}),e,E,{X:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; $l=function(E,e){E.checked=e;E.element.setAttribute("aria-checked",String(E.checked))}; KgX=function(E){var e=!E.Y().yS&&E.getPresentingPlayerType()!==3;return E.isFullscreen()||e}; g.Ub=function(E,e,l,k){var H=E.currentTarget;if((l===void 0||!l)&&g.wH(E))return E.preventDefault(),!0;e.pauseVideo();E=H.getAttribute("href");g.DX(E,k,!0);return!1}; g.JL=function(E,e,l){if(zH(e.Y())&&e.getPresentingPlayerType()!==2){if(g.wH(l))return e.isFullscreen()&&!e.Y().externalFullscreen&&e.toggleFullscreen(),l.preventDefault(),!0}else{var k=g.wH(l);k&&e.pauseVideo();g.DX(E,void 0,!0);k&&(g.bu(E),l.preventDefault())}return!1}; n29=function(E){E=cI.includes("pt-BR")?E.L("delhi_modern_web_player_icons")?x3():{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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"}}]}:E.L("delhi_modern_web_player_icons")?LW0():{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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"}}]};E.B="ytp-subtitles-button-icon"; return E}; Rc7=function(E){return cI.includes("pt-BR")?E?x3():{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:E?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; y7=function(){return{X:"div",B:"ytp-spinner-container",K:[{X:"div",B:"ytp-spinner-rotator",K:[{X:"div",B:"ytp-spinner-left",K:[{X:"div",B:"ytp-spinner-circle"}]},{X:"div",B:"ytp-spinner-right",K:[{X:"div",B:"ytp-spinner-circle"}]}]}]}}; jy=function(E){if(document.createRange){var e=document.createRange();e&&(e.selectNodeContents(E),E=window.getSelection())&&(E.removeAllRanges(),E.addRange(e))}}; fV=function(E){var e=E.L("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";i4.call(this,e,g.In.BT);var l=this;this.U=E;this.T=!1;this.G=new g.Nx(function(){g.ed(l.element,"ytp-menuitem-highlighted")},0); this.wC=E.Xm();E=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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(E);this.subscribe("select",this.Z,this);this.listen(F_,this.S);g.L(this,this.G)}; V7=function(E){WI.call(this,E);var e=this;this.T=!1;E.addEventListener("settingsMenuInitialized",function(){si8(e)}); E.addEventListener("highlightSettingsMenu",function(l){si8(e);var k=e.menuItem;l==="menu_item_cinematic_lighting"&&(g.qx(k.element,"ytp-menuitem-highlighted"),g.qx(k.element,"ytp-menuitem-highlight-transition-enabled"),k.G.start())}); Jt(E,"updateCinematicSettings",function(l){e.updateCinematicSettings(l)})}; si8=function(E){E.menuItem||(E.menuItem=new fV(E.api),g.L(E,E.menuItem),E.menuItem.qD(E.T))}; tbe=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"applicationvideodatachange",function(l,k){k=k.clipConfig;l==="dataloaded"&&k&&k.startTimeMs!=null&&k.endTimeMs!=null&&e.api.setLoopRange({startTimeMs:Math.floor(Number(k.startTimeMs)),endTimeMs:Math.floor(Number(k.endTimeMs)),postId:k.postId,type:"clips"})})}; Sy=function(E){WI.call(this,E);this.events=new g.G_(E);g.L(this,this.events);Jt(E,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Jt(E,"setCreatorEndscreenHideButton",this.T.bind(this))}; r7=function(E,e,l,k){i4.call(this,"Volume est\u00e1vel",g.In.Lv);g.qx(this.element,"ytp-drc-menu-item");this.wC=E.Xm();this.Z=e;this.T=l;this.hasDrcAudioTrack=k;E.addEventListener("videodatachange",this.G.bind(this));E.L("mta_drc_mutual_exclusion_removal")&&this.C(E,"onPlaybackAudioChange",this.G);e=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());E=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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(E);this.subscribe("select",this.S,this);$l(this,e);this.wC.Qf(this)}; Dd=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);E.L("html5_show_drc_toggle")&&E.addEventListener("settingsMenuInitialized",function(){e.menuItem||(e.menuItem=new r7(e.api,e.setDrcUserPreference.bind(e),e.getDrcUserPreference.bind(e),e.G.bind(e)),g.L(e,e.menuItem))}); Jt(this.api,"setDrcUserPreference",function(k){e.setDrcUserPreference(k)}); Jt(this.api,"getDrcUserPreference",function(){return e.getDrcUserPreference()}); Jt(this.api,"hasDrcAudioTrack",function(){return e.G()}); var l;this.T=(l=g.cK("yt-player-drc-pref"))!=null?l:1;this.updateEnvironmentData()}; b4=function(E){WI.call(this,E);var e=this;this.T={};this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"videodatachange",function(){e.onVideoDataChange()}); this.events.C(E,g.Zj("embargo"),function(l){e.api.By(!0);var k,H=(k=e.T[l.id])!=null?k:[];k=g.T(H);for(H=k.next();!H.done;H=k.next()){var O=H.value;e.api.hideControls();e.api.I7("auth",2,"This video isn't available in your current playback area",CL({embargoed:1,id:l.id,idx:l.G,start:l.start}));H=void 0;(O=(H=O.embargo)==null?void 0:H.onTrigger)&&e.api.MD("innertubeCommand",O)}})}; qDl=function(E,e){var l;return(l=e.onEnter)==null?void 0:l.some(E.G)}; En0=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var k=void 0,H=Number((k=l.playbackPosition)==null?void 0:k.utcTimeMillis)/1E3,O=void 0;k=H+Number((O=l.duration)==null?void 0:O.seconds);O="embargo_"+H;E.api.addUtcCueRange(O,H,k,"embargo",!1);l.onEnter&&(E.T[O]=l.onEnter.filter(E.G))}}; vI=function(E){WI.call(this,E);var e=this;this.T=[];this.events=new g.G_(E);g.L(this,this.events);Jt(E,"addEmbedsConversionTrackingParams",function(l){e.addEmbedsConversionTrackingParams(l)}); this.events.C(E,"veClickLogged",function(l){e.api.hasVe(l)&&(l=l.visualElement.getAsJspb(),l=co(l,2),e.T.push(l))})}; eeZ=function(E){WI.call(this,E);Jt(E,"isEmbedsShortsMode",function(){return E.isEmbedsShortsMode()})}; lJ0=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"initialvideodatacreated",function(l){mg(Y2(),16623);e.T=g.BQ();var k=E.Y().wG&&!l.W7;if(At(l)&&k){mg(Y2(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(l.getWatchNextResponse()){var H,O=(H=l.getWatchNextResponse())==null?void 0:H.trackingParams;O&&KR(O)}if(l.getPlayerResponse()){var X;(l=(X=l.getPlayerResponse())==null?void 0:X.trackingParams)&&KR(l)}}else mg(Y2(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),l.getEmbeddedPlayerResponse()&&(X=(O=l.getEmbeddedPlayerResponse())==null?void 0:O.trackingParams)&&KR(X)}); this.events.C(E,"loadvideo",function(){mg(Y2(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:e.T})}); this.events.C(E,"cuevideo",function(){mg(Y2(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:e.T})}); this.events.C(E,"largeplaybuttonclicked",function(l){mg(Y2(),27240,l.visualElement)}); this.events.C(E,"playlistnextbuttonclicked",function(l){mg(Y2(),27240,l.visualElement)}); this.events.C(E,"playlistprevbuttonclicked",function(l){mg(Y2(),27240,l.visualElement)}); this.events.C(E,"playlistautonextvideo",function(){mg(Y2(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; PI=function(E,e){g.a.call(this);var l=this;this.T=null;this.Z=e;e=[];for(var k=0;k<=100;k++)e.push(k/100);e={threshold:e,trackVisibility:!0,delay:1E3};(this.G=window.IntersectionObserver?new IntersectionObserver(function(H){H=H[H.length-1];var O=null;typeof H.isVisible==="undefined"?document.visibilityState==="visible"&&H.isIntersecting&&H.intersectionRatio>0?O=H.intersectionRatio:document.visibilityState==="hidden"?O=0:O=null:O=H.isVisible?H.intersectionRatio:0;O!=null&&(O=Math.max(O,0),O=Math.min(O, 1));l.T=O;typeof l.Z==="function"&&l.Z(l.T)},e):null)&&this.G.observe(E)}; H_p=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"applicationInitialized",function(){kuX(e)})}; kuX=function(E){var e=E.api.getRootNode(),l,k=E.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((l=e.parentElement)==null?void 0:l.parentElement)||e:e;E.T=new PI(k,function(H){H!=null&&(E.api.Y().vy=H,E.api.Y().Vh="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.L(E,E.T);E.events.C(E.api,"videoStatsPingCreated",function(H){var O=E.T;O=O.T==null?null:Math.round(O.T*100)/100;H.inview=O!=null?O:void 0;O=E.api.getPlayerSize();if(O.height>0&&O.width>0){O=[Math.round(O.width),Math.round(O.height)];var X=g.GH();X>1&&O.push(X);O=O.join(":")}else O=void 0;H.size=O})}; O_8=function(E){var e;return((e=((E==null?void 0:E.messageRenderers)||[]).find(function(l){return!!l.timeCounterRenderer}))==null?void 0:e.timeCounterRenderer)||null}; an=function(E){g.Z.call(this,{X:"div",s7:["ytp-player-content","ytp-iv-player-content"],K:[{X:"div",B:"ytp-free-preview-countdown-timer",K:[{X:"span",Tz:"{{label}}"},{X:"span",B:"ytp-free-preview-countdown-timer-separator",Tz:"\u2022"},{X:"span",Tz:"{{duration}}"}]}]});this.api=E;this.T=null;this.Z=this.G=0;this.C(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; uvy=function(E,e){E.T||(E.G=e,E.Z=(0,g.dE)(),E.T=new g.Mx(function(){XmS(E)},null),XmS(E))}; XmS=function(E){var e=Math,l=e.round,k=Math.min((0,g.dE)()-E.Z,E.G);e=l.call(e,(E.G-k)/1E3);E.updateValue("duration",PS({seconds:e}));e<=0&&E.T?E.stopTimer():E.T&&E.T.start()}; A9l=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"basechromeinitialized",function(){e.T=new an(E);g.L(e,e.T);g.sT(E,e.T.element,4);e.T.hide()})}; LV=function(E){g.Z.call(this,{X:"button",s7:["ytp-fullerscreen-edu-button","ytp-button"],K:[{X:"div",s7:["ytp-fullerscreen-edu-text"],Tz:"Role para ver detalhes"},{X:"div",s7:["ytp-fullerscreen-edu-chevron"],K:[{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{X:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"2"}});this.eR=E;this.fade=new g.mO(this,250,void 0,100);this.G=this.T=!1;E.createClientVe(this.element,this,61214); g.L(this,this.fade);this.C(E,"fullscreentoggled",this.qD);this.C(E,"presentingplayerstatechange",this.qD);this.listen("click",this.onClick);this.qD()}; hL=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);Jt(this.api,"updateFullerscreenEduButtonSubtleModeState",function(k){e.updateFullerscreenEduButtonSubtleModeState(k)}); Jt(this.api,"updateFullerscreenEduButtonVisibility",function(k){e.updateFullerscreenEduButtonVisibility(k)}); var l=E.Y();E.L("external_fullscreen_with_edu")&&l.externalFullscreen&&zH(l)&&l.controlsType==="1"&&this.events.C(E,"standardControlsInitialized",function(){e.T=new LV(E);g.L(e,e.T);E.yb(e.T)})}; CQZ=function(E){g.Z.call(this,{X:"div",B:"ytp-gated-actions-overlay",K:[{X:"div",B:"ytp-gated-actions-overlay-background",K:[{X:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",s7:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Fechar"},K:[g.pN()]},{X:"div",B:"ytp-gated-actions-overlay-bar",K:[{X:"div",B:"ytp-gated-actions-overlay-text-container",K:[{X:"div",B:"ytp-gated-actions-overlay-title",Tz:"{{title}}"},{X:"div",B:"ytp-gated-actions-overlay-subtitle", Tz:"{{subtitle}}"}]},{X:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var e=this;this.api=E;this.background=this.X6("ytp-gated-actions-overlay-background");this.G=this.X6("ytp-gated-actions-overlay-button-container");this.T=[];this.C(this.X6("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){e.api.MD("onCloseMiniplayer")}); this.hide()}; x37=function(E,e){var l=0;l=0;for(var k={};l H&&(H=A.width,O="url("+A.url+")")}l.background.style.backgroundImage=O;x37(l,k.actionButtons||[]);l.show()}else l.hide()}); g.sT(this.api,this.T.element,4)}; M6=function(E){WI.call(this,E);var e=this;ym(this.api,"getSphericalProperties",function(){return e.getSphericalProperties()}); ym(this.api,"setSphericalProperties",function(){e.setSphericalProperties.apply(e,g.Be(g.LS.apply(0,arguments)))}); cO(this.api,"getSphericalProperties",function(){return e.api.getPresentingPlayerType()===2?{}:e.getSphericalProperties()}); cO(this.api,"setSphericalProperties",function(){var l=g.LS.apply(0,arguments);e.api.getPresentingPlayerType()!==2&&e.setSphericalProperties.apply(e,g.Be(l))})}; N6=function(E){WI.call(this,E);Jt(E,"createClientVe",this.createClientVe.bind(this));Jt(E,"createServerVe",this.createServerVe.bind(this));Jt(E,"destroyVe",this.destroyVe.bind(this));Jt(E,"hasVe",this.hasVe.bind(this));Jt(E,"logClick",this.logClick.bind(this));Jt(E,"logVisibility",this.logVisibility.bind(this));Jt(E,"setTrackingParams",this.setTrackingParams.bind(this))}; Zd=function(E,e,l,k){function H(X){var A=!(X.status!==204&&X.status!==200&&!X.response),C;X={succ:""+ +A,rc:X.status,lb:((C=X.response)==null?void 0:C.byteLength)||0,rt:((0,g.dE)()-O).toFixed(),shost:g.uy(E),trigger:e};WTW(X,E);l&&l(X);k&&!A&&k(new g.pL("pathprobe.net",X))} var O=(0,g.dE)();g.zT(E,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:H,onTimeout:H})}; WTW=function(E,e){var l;((l=window.performance)==null?0:l.getEntriesByName)&&(e=performance.getEntriesByName(e))&&e.length&&(e=e[0],E.pedns=(e.domainLookupEnd-e.startTime).toFixed(),E.pecon=(e.connectEnd-e.domainLookupEnd).toFixed(),E.perqs=(e.requestStart-e.connectEnd).toFixed(),Bk9&&(E.perqsa=e.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; on8=function(E){Bk9=E}; Yl=function(E,e){this.Zx=E;this.policy=e;this.playbackRate=1}; wm8=function(E,e){var l=Math.min(2.5,MA(E.Zx));E=mu(E);return e-l*E}; g7=function(E,e,l,k,H){H=H===void 0?!1:H;if(E.policy.l6)return Math.ceil(E.policy.l6*e);E.policy.NO&&(k=Math.abs(k));k/=E.playbackRate;var O=1/Ys(E.Zx);l=Math.max(.9*(k-3),MA(E.Zx)+E.Zx.G.T*O)/O*.8/(e+l);l=Math.min(l,k);E.policy.Py>0&&H&&(l=Math.max(l,E.policy.Py));return zeX(E,l,e)}; zeX=function(E,e,l){return Math.ceil(Math.max(Math.max(E.policy.Dy,E.policy.ql*l),Math.min(Math.min(E.policy.J0,31*l),Math.ceil(e*l))))||E.policy.Dy}; d3X=function(E,e,l){l=g7(E,e.T.info.Kg,l.T.info.Kg,0);var k=MA(E.Zx)+l/Ys(E.Zx);return Math.max(k,k+E.policy.xm-l/e.T.info.Kg)}; mu=function(E){return Ys(E.Zx,!E.policy.NT,E.policy.eA)}; KV=function(E){return mu(E)/E.playbackRate}; nV=function(E,e,l){var k=E.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],H=E.policy.playbackStartPolicy.startMinReadaheadPolicy||[];E=Infinity;e=g.T(e&&k.length>0?k:H);for(k=e.next();!k.done;k=e.next())k=k.value,H=k.minReadaheadMs||0,l<(k.minBandwidthBytesPerSec||0)||E>H&&(E=H);return E0&&(this.G=l.xe)}; i_7=function(E,e,l,k,H){if(!k.info.W){if(l.length===0)l.push(k);else{var O;(E=(O=l.pop())==null?void 0:g.$w(O,k))?l.push(E):l.push(k)}return H}var X;(l=(X=l.pop())==null?void 0:g.$w(X,k))||(l=k);if(l.info.G)return E.logger&&E.logger({incompleteSegment:l.info.T_()}),H;k=E.sT(l);H=k.A0;k={clipId:k.clipId,formatId:k.formatId,startTimeMs:k.startTimeMs,durationMs:k.rr,kE:H,Yv:H};H=Gue(e,k.startTimeMs);if(O=l=H>=0?e[H]:null){O=k;var A=H;X=l.startTimeMs+l.durationMs;var C=O.startTimeMs+O.durationMs;if(O.startTimeMs- X>E.G)O=!1;else if(Tk9(E,l.formatId,O.formatId))l.durationMs=Math.max(X,C)-l.startTimeMs,l.Yv=Math.max(l.Yv,O.Yv),O=!0;else if(Math.abs(l.startTimeMs-O.startTimeMs)<=E.G)if(l.durationMs>O.durationMs+E.G){var p=l.formatId,x=l.kE;A=l.Yv;l.formatId=O.formatId;l.durationMs=O.durationMs;l.kE=O.kE;l.Yv=O.Yv;O.formatId=p;O.startTimeMs=C;O.durationMs=X-C;O.kE=x;O.Yv=A;O=!1}else l.formatId=O.formatId,O=!0;else X>O.startTimeMs&&(X>C&&(e.splice(A+1,0,{formatId:l.formatId,startTimeMs:C,durationMs:X-C,kE:O.Yv+ 1,Yv:l.Yv}),E.logger&&E.logger({splitOldStart:(p=l.startTimeMs)==null?void 0:p.toFixed(3),splitOldEnd:X==null?void 0:X.toFixed(3),splitNewStart:(x=O.startTimeMs)==null?void 0:x.toFixed(3),splitNewEnd:C==null?void 0:C.toFixed(3)})),l.durationMs=O.startTimeMs-l.startTimeMs,l.Yv=O.kE-1),O=!1}O?k=l:(H+=1,e.splice(H,0,k));p=0;for(x=H+1;x=C+l.G?l=!0:A+l.G=0?E:-E-2}; $3X=function(E,e){if(E.Jg){var l=E.Jg.HN();if(l.length!==0){if(E.Z&&e){var k=E.Z,H=k.info.S;!gB(l,H)&&k.info.N>0&&(0,g.dE)()-E.J<5E3&&(E.logger&&E.logger({dend:k.info.T_()}),l=PU7(l,H,H+.01))}E.policy.G2&&E.logger&&E.logger({cbri:""+E.T});k=[];for(var O=H=0;H=X){var x=Object.assign({},E.Iz[O]),Q=E.W5.Z.get(Yz(E.Iz[O].formatId)),W=Math.max(C,X);X=Q.index.GS(W+E.G/ 1E3);C=Q.index.getStartTime(X);var B=X+ +(Math.abs(C-W)>E.G/1E3);W=B+E.S;B=Q.index.getStartTime(B)*1E3;O!==E.T||e?(x.kE=W,x.startTimeMs=B):(E.logger&&E.logger({pEvict:"1",og:x.startTimeMs,adj:C*1E3}),x.kE=X+E.S,x.startTimeMs=C*1E3);X=void 0;C=((X=E.Z)==null?void 0:X.info.duration)||11;O===E.T&&AE.G/1E3);X=C+E.S;Q=Q.index.Pv(C)*1E3;x.Yv=X;x.durationMs=Q-x.startTimeMs;x.kE<=x.Yv&&k.push(x)}p=0&&ek(E.audioTrack,E.targetTime)>=0&&O?((E.videoTrack.W||E.audioTrack.W)&&E.loader.wH("iterativeSeeking",{status:"done",count:E.seekCount}),E.videoTrack.W=!1,E.audioTrack.W=!1):k&&g.Gy(function(){if(E.T||!E.policy.dC)Hw(E);else{var X=e.startTime,A=e.duration;if(!E.policy.W){var C=l?E.videoTrack.W:E.audioTrack.W,p=E.videoTrack.J!==-1&&E.audioTrack.J!==-1,x=E.targetTime>=X&&E.targetTime432E3&&aUy(E.W5);E.G&&(H=E.G,E.G=0);g.Gy(function(){E.policy.W||Or(E,H,102)}); E.loader.wH("initManifestlessSync",{st:H,ost:H+E.loader.eE(),a:E.audioTrack.J,v:E.videoTrack.J});E.Z&&(E.Z.resolve(H+.1),E.Z=null);E.policy.W&&Or(E,H,102)}}}; AY=function(E,e){var l=this;this.TX=E;this.requestNumber=++b_Z;this.T=this.now();this.N=this.V=NaN;this.j=this.T;this.Z=this.Wh=this.W=0;this.J=this.T;this.ND=this.kt=this.fg=this.hN=this.C7=this.Qd=this.G=this.S=0;this.pg=this.isActive=!1;this.GX=this.Yt=0;this.p5={D7D:function(){return l.TY}}; this.Zx=e.Zx;this.snapshot=fxW(this.Zx);this.policy=this.Zx.G;this.cQ=!!e.cQ;this.lz=e.lz;this.Lz=e.Lz||0;this.xg=e.xg||0;e.Ud&&(this.h0=new SL);var k;this.TY=(k=e.TY)!=null?k:!1;this.cQ||jy7(this.Zx)}; vny=function(E){E.fg=Math.max(E.fg,E.W-E.C7);E.kt=Math.max(E.kt,E.j-E.hN);E.Qd=0}; CI=function(E,e,l){Ix0(E.Zx,e);E.h0&&(E.h0.add(Math.ceil(e)-Math.ceil(E.j)),E.h0.add(Math.max(0,Math.ceil(l/1024)-Math.ceil(E.W/1024))));var k=e-E.j,H=l-E.W;E.Wh=H;E.ND=Math.max(E.ND,H/(k+.01)*1E3);E.j=e;E.W=l;E.Qd&&l>E.Qd&&vny(E)}; pI=function(E,e){E.url=e;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; xY=function(E,e){AY.call(this,E,e);this.dC=this.jE=!1;this.c5=this.SR=Infinity;this.J0=NaN;this.In=!1;this.b3=NaN;this.bY=this.jR=this.R4=0;this.ZH=e.ZH||1;this.y5=e.y5||this.ZH;this.Wu=e.Wu;this.A0=e.A0;this.Sr=e.Sr;PQ8(this);this.XT(this.T);this.rH=(this.b3-this.T)/1E3}; aJ9=function(E){var e=E.jR||E.R4;return e?E.snapshot.delay+Math.min(E.xg,(E.N-E.V)/1E3)+e:E.rH}; QD=function(E,e,l){if(!E.cQ){e=Math.max(e,.01);var k=E.Lz?Math.max(e,l/E.Lz):e,H=E.Zx.G.Z;H&&(k=e,E.Lz&&(k=Math.max(e,l/E.Lz*H)));aU(E.Zx,e,l,k)}}; LT7=function(E){return(E.J-E.T)/1E3}; PQ8=function(E){E.J0=E.T+E.snapshot.delay*1E3;E.In=!1}; Ww=function(E,e){if(E.Wu&&E.A0!==void 0&&E.Sr!==void 0){var l=Math,k=l.min,H=E.SR;var O=E.Wu;var X=E.T;if(heZ(O,E.A0))O=e;else{var A=0;O.Gx&&(A=.2);O=X+(O.xg+A)*1E3}E.SR=k.call(l,H,O);l=Math;k=l.min;H=E.c5;O=E.Wu;X=E.T;A=M$e(O,E.A0,E.Sr);A!==2&&(e=A?e:X+O.xg*1E3,O.Gx&&(e+=O.xg*1E3));E.c5=k.call(l,H,e);E.SR<=E.T?PQ8(E):(E.J0=E.SR,E.In=!0)}}; Nkl=function(E,e){if(e+1<=E.totalLength){var l=AP(E,e);l=l<128?1:l<192?2:l<224?3:l<240?4:5}else l=0;if(l<1||!(e+l<=E.totalLength))return[-1,e];if(l===1)E=AP(E,e++);else if(l===2)l=AP(E,e++),E=AP(E,e++),E=(l&63)+64*E;else if(l===3){l=AP(E,e++);var k=AP(E,e++);E=AP(E,e++);E=(l&31)+32*(k+256*E)}else if(l===4){l=AP(E,e++);k=AP(E,e++);var H=AP(E,e++);E=AP(E,e++);E=(l&15)+16*(k+256*(H+256*E))}else l=e+1,E.focus(l),OP(E,l,4)?E=Ndl(E).getUint32(l-E.Z,!0):(k=AP(E,l+2)+256*AP(E,l+3),E=AP(E,l)+256*(AP(E,l+1)+ 256*k)),e+=5;return[E,e]}; Bw=function(E){this.TX=E;this.T=new eV}; oM=function(E,e){this.info=E;this.callback=e;this.state=1;this.Yb=this.jL=!1;this.I3=null}; Z_Z=function(E){return g.wP(E.info.H5,function(e){return e.type===3})}; wD=function(E,e,l,k){var H=this;k=k===void 0?{}:k;this.policy=e;this.TX=l;this.status=0;this.T=new eV;this.G=0;this.U7=this.S=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(k.method||"GET",E);if(k.headers)for(E=k.headers,e=g.T(Object.keys(E)),l=e.next();!l.done;l=e.next())l=l.value,this.xhr.setRequestHeader(l,E[l]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return H.Pl()}; this.xhr.onload=function(){return H.onDone()}; this.xhr.onerror=function(){return H.onError()}; this.xhr.fetch(function(O){H.T.append(O);H.G+=O.length;O=(0,g.dE)();H.TX.M7(O,H.G)},function(){},k.body||null)}; Y1p=function(E,e){this.G=(new TextEncoder).encode(E);this.T=(new TextEncoder).encode(e)}; Yap=function(E,e){var l;return g.D(function(k){if(!e)return k.return(e);l=new g.AK(E.G);return k.return(l.encrypt(e,E.T))})}; R1e=function(E,e){var l;return g.D(function(k){if(k.G==1){if(!e)return k.return(e);l=new g.AK(E.G);return g.S(k,l.decrypt(e,E.T),2)}return k.return(k.T)})}; gne=function(E,e){var l=this;this.T=E;this.TX=e;this.loaded=this.status=0;this.error="";E=K0(this.T.get("range")||"");if(!E)throw Error("bad range");this.range=E;this.G=new eV;m39(this).then(function(){l.TX.PV()},function(k){l.error=""+k||"unknown_err"; l.TX.PV()})}; m39=function(E){var e,l,k,H,O,X,A,C,p,x,Q,W,B,w,U;return g.D(function(c){if(c.G==1){E.status=200;e=E.T.get("docid");l=IE(E.T.get("fmtid")||"");k=E.T.get("lmt")||"0";H=+(E.T.get("csz")||0);if(!e||!l||!H)throw Error("Invalid local URL");E.T.get("ck")&&E.T.get("civ")&&(O=new Y1p(E.T.get("ck"),E.T.get("civ")));X=E.range;A=Math.floor(X.start/H);C=Math.floor(X.end/H);p=A}if(c.G!=5)return p<=C?g.S(c,sP0(e,l,k,p,O),5):c.xt(0);x=c.T;if(x===void 0)throw Error("invariant: data is undefined");Q=p*H;W=(p+1)*H; B=Math.max(0,X.start-Q);w=Math.min(X.end+1,W)-(B+Q);U=new Uint8Array(x.buffer,B,w);E.G.append(U);E.loaded+=w;E.loaded=400?(E.lastError="net.badstatus",!0):(H===void 0?0:H)?(E.lastError="ump.spsrejectfailure",!0):l||k!==void 0&&k?!1:(E.lastError=e===204?"net.nocontent":"net.connect",!0)}; cw=function(E,e){if(E.policy.PF)return!1;var l=e.getResponseHeader("content-type"),k=e.GO();E=!k||k<=E.policy.dV;return(!e.aI()||!l||l.indexOf("text/plain")!==-1)&&E}; loX=function(E,e){var l="";e=e.Xg();e.totalLength<=E.policy.dV&&(l=epe(E,X6(e)));return l}; epe=function(E,e){var l=pv(e);return Pu(l)?(E.logger.debug(function(){return"Redirecting to "+l}),l):""}; iI=function(E){return ao(E.Z,Yn(E.Xy.Rr))}; kSX=function(E){var e=E.timing.DY();e.shost=Yn(E.Xy.Rr);return e}; H07=function(E,e){return(E==null?void 0:E.maxWidth)>(e==null?void 0:e.maxWidth)||(E==null?void 0:E.maxHeight)>(e==null?void 0:e.maxHeight)}; O07=function(E,e){for(var l=g.T(e.keys()),k=l.next();!k.done;k=l.next())if(k=e.get(k.value),k.length!==0){g.m2(k,function(A,C){return C.maxFramerate-A.maxFramerate}); for(var H=[k[0]],O=0,X=1;XE.T||l.push(k)}return l}; yD=function(E,e,l){var k=Ar7[E]||[];l.L("html5_shorts_onesie_mismatched_fix")&&(k=CHW[E]||[]);e.push.apply(e,g.Be(k));l.L("html5_early_media_for_drm")&&e.push.apply(e,g.Be(ps8[E]||[]))}; ws7=function(E,e){var l=g.VJ(E),k=E.Y(),H=k.W;k=k.L("html5_shorts_onesie_mismatched_fix");var O=E.Jd();if(k){if(!H.G){if(O&&jk)return jk;if(IM)return IM}}else if(IM&&!H.G)return IM;var X=[],A=[],C={},p=Fz.concat(xNS);k&&(p=Fz.concat(Qoy));E.L("html5_early_media_for_drm")&&(p=p.concat(WXW),E.L("allow_vp9_1080p_mq_enc")&&p.push(BtW));var x=[].concat(g.Be(ozy));E.L("html5_iamf_audio_onesie_fmt")&&x.push(["773"]);p=g.T(p);for(var Q=p.next();!Q.done;Q=p.next()){var W=!1;Q=g.T(Q.value);for(var B=Q.next();!B.done;B= Q.next()){B=B.value;var w=VN(B,O&&k);if(w&&w.video&&!(Vp(w)&&!l.SR&&w.video.qualityOrdinal>l.xE)){var U=g.tJ(E.Y().experiments,"html5_drm_byterate_soft_cap");U>0&&bNp(w)&&w.Kg>U||(W?(X.push(B),yD(B,X,E)):(w=DJ(l,w,H),w===!0?(W=!0,X.push(B),yD(B,X,E)):C[B]=w))}}}x=g.T(x);for(p=x.next();!p.done;p=x.next())for(p=g.T(p.value),W=p.next();!W.done;W=p.next())if(W=W.value,(Q=l5p(W))&&Q.audio&&(E.L("html5_onesie_51_audio")||!SO(Q)&&!rB(Q)))if(Q=DJ(l,Q,H),Q===!0){A.push(W);yD(W,A,E);break}else C[W]=Q;if(!E.L("html5_enable_audio_quality_setting"))for(E= g.T(["141","774"]),x=E.next();!x.done;x=E.next())x=x.value,A.includes(x)&&(g.U6(A,x),C[x]="blkhqa");l.G&&e("orfmts",C);if(k)return H.G&&(H.G=!1,jk=IM=void 0),O?jk={video:X,audio:A}:IM={video:X,audio:A};IM={video:X,audio:A};H.G=!1;return IM}; g.GS9=function(E,e,l){var k=l.W,H=[],O=[],X=l.L("html5_shorts_onesie_mismatched_fix");E=E.Jd();var A=Fz.concat(xNS);X&&(A=Fz.concat(Qoy));l.L("html5_early_media_for_drm")&&(A=A.concat(WXW),l.L("allow_vp9_1080p_mq_enc")&&A.push(BtW));var C=[].concat(g.Be(ozy));l.L("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);A=g.T(A);for(var p=A.next();!p.done;p=A.next()){p=g.T(p.value);for(var x=p.next();!x.done;x=p.next()){x=x.value;var Q=VN(x,E&&X);if(Q&&Q.video){var W=g.tJ(l.experiments,"html5_drm_byterate_soft_cap"); if(!(W>0&&bNp(Q)&&Q.Kg>W)&&DJ(e,Q,k)===!0){H.push({videoCodec:zp7[yp[x]],maxWidth:Q.video.width,maxHeight:Q.video.height,maxFramerate:Q.video.fps});break}}}}X=g.T(C);for(E=X.next();!E.done;E=X.next())for(E=g.T(E.value),C=E.next();!C.done;C=E.next())if(C=C.value,(A=l5p(C))&&A.audio&&(l.L("html5_onesie_51_audio")||!SO(A)&&!rB(A))&&DJ(e,A,k)===!0){O.push({audioCodec:dNW[yp[C]],numChannels:A.audio.numChannels});break}return{videoFormatCapabilities:H,audioFormatCapabilities:O}}; $NX=function(E){var e,l={},k=E.I4,H=E.F6,O=k.getVideoData(),X=Wm(0),A=k.getVisibilityState(),C;if((C=E.CY)==null?0:C.Jr)l.Ke=H.Ke;X&&(l.qP=X,l.lastManualDirection=qGp(),X=R5X()||0,X>0&&(X=(H.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.dE)())-X,H.L("html5_use_date_now_for_local_storage")?X>0&&(l.timeSinceLastManualFormatSelectionMs=X):l.timeSinceLastManualFormatSelectionMs=X));X=H.L("html5_use_streamer_bandwidth_for_low_latency_live")&&O.isLowLatencyLiveStream;if(H.schedule.pg&&!X){var p; X=H.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((p=E.CY)==null||!p.NT):!1;l.n2=Ys(H.schedule,!X)}X=g.$f.medium;C=Math.floor(X*16/9);(p=O.Jd())||(O.T&&O.Z&&O.Z.videoInfos.length!==0?(p=O.Z.videoInfos[0],p=!!p.video&&p.video.width0?{authorizedFormats:E.authorizedFormats}:{authorizedFormats:e};E.sabrLicenseConstraint&&(l.Kn.sabrLicenseConstraint=E.sabrLicenseConstraint);if(H.L("html5_onesie_media_capabilities")||H.L("html5_enable_server_format_filter"))l.KO= 3;H.L("html5_onesie_audio_only_playback")&&jv(O)&&(l.KO=1);var V;((V=E.CY)==null?0:V.dO)&&E.hh&&(l.KO=l.KO===void 0?7:l.KO|4);V=O.Fr?O.Fr:g.VJ(O);H.L("html5_onesie_media_capabilities")&&(l.mediaCapabilities=g.GS9(O,V,H));var F;if((F=E.CY)==null?0:fI(F)){Q=H.W;F=[];e=[];W=new Map;B=Array.from(Q.T.values());B=g.T(B);for(w=B.next();!w.done;w=B.next())U=w.value,U.A2?e.push({audioCodec:dNW[U.DM],numChannels:U.numChannels,spatialCapabilityBitmask:Tt7[U.DM]}):(c=zp7[U.DM],w={videoCodec:c,maxWidth:U.maxWidth|| 0,maxHeight:U.maxHeight||0,maxFramerate:U.maxFramerate||0,is10BitSupported:U.Dt||!1},U.maxBitrateBps&&(w.maxBitrateBps=U.maxBitrateBps,A=VN(U.itag),p=void 0,((p=A)==null?0:p.video)&&DJ(V,A,Q)===!0&&(A=A.Kg*8,A>w.maxBitrateBps&&(w.maxBitrateBps=A))),U=c+"_"+U.Dt,c=W.get(U)||[],c.push(w),W.set(U,c));F=O07(F,W);Q={};H.L("html5_ssff_denylist_opus_low")&&(Q={itagDenylist:[249,350]});l.mediaCapabilities={videoFormatCapabilities:F,audioFormatCapabilities:e,hdrModeBitmask:3,perPlaybackAttributes:Q}}var r; if((r=E.CY)==null?0:r.T){l.Ni=V.Ni;var P;l.xE=(P=E.CY)==null?void 0:P.xE}H.JS&&(l.vA=H.JS);l.vt=E.xH;l.cI=E.cI;l.AZ=E.AZ;l.zV=E.zV;E.HX&&(l.J27=(0,g.dE)()-E.HX);E.isPrefetch&&H.L("html5_report_prefetch_requests")&&(l.isPrefetch=!0);z8||(l.S7d=!0);r=MA(H.schedule)*1E3;r>0&&(l.JX=r);var N;((N=E.CY)==null?0:N.jA)&&E.Sm&&E.Sm0?R:H.schedule.interruptions[0]||0;var K;if((K=E.CY)==null?0:K.GX)l.zE=E.zE;H.b3&&(l.audioTrackId=H.b3);xC(O)&&!l.audioTrackId&&(H.L("html5_fill_default_mosaic_audio_track_id")||(E=qiX(O),l.audioTrackId=E),O==null||O.wH("misstrkchg",{"default":l.audioTrackId}));if(O=SwW())l.detailedNetworkType=i07[O]||i07.other;H.L("html5_enable_voice_boost")&&(l.wft=H.VJ);return l}; VD=function(E,e,l,k,H,O,X){var A={};e&&(A.vl=e);if(!E)return A;A.playbackCookie=l==null?void 0:l.playbackCookie;H&&(A.XO=H);A.Hi=[];A.HE=[];if(X==null?0:X.size)for(e=g.T(X.values()),l=e.next();!l.done;l=e.next())A.HE.push(l.value);if(E.sabrContextUpdates.size>0)for(e=g.T(E.sabrContextUpdates.values()),l=e.next();!l.done;l=e.next())UNW(A,l.value,k);f9(E)&&O&&UNW(A,O,k);E.Sz&&(A.dVn=E.Sz);k=E.Y().T;A.clientInfo={clientName:Jr9[k.c.toUpperCase()]||0};k.cbrand&&(A.clientInfo.deviceMake=k.cbrand);k.cmodel&& (A.clientInfo.deviceModel=k.cmodel);k.cver&&(A.clientInfo.clientVersion=k.cver);k.cos&&(A.clientInfo.osName=k.cos);k.cosver&&(A.clientInfo.osVersion=k.cosver);k=E.Y();k.L("html5_sabr_enable_server_xtag_selection")&&k.dO&&(A.clientInfo.hl=k.dO);E.pF&&(A.pF=E.pF);return A}; UNW=function(E,e,l){var k=e.type||0;(l==null?0:l.has(k))?E.HE.push(e):E.Hi.push(k)}; q6=function(E,e,l,k,H,O){var X=O===void 0?{}:O;var A=X.k0===void 0?[]:X.k0;var C=X.ZK===void 0?!1:X.ZK;var p=X.Ml===void 0?0:X.Ml;var x=X.poToken===void 0?"":X.poToken;var Q=X.JT===void 0?void 0:X.JT;var W=X.iy===void 0?"":X.iy;var B=X.Wf===void 0?0:X.Wf;var w=X.fI===void 0?new Uint8Array(0):X.fI;var U=X.lm===void 0?!1:X.lm;O=X.rD===void 0?0:X.rD;X=X.vl===void 0?void 0:X.vl;oM.call(this,e,H);var c=this;this.policy=E;this.logger=new g.da("dash/request");this.YA=this.Uc=0;this.J1=!1;this.x7=this.CF= null;this.kD=!1;this.fI=this.Wf=null;this.Oa=this.CT=!1;this.KN=null;this.rD=this.vR=0;this.yu=!1;this.p5={eJ:function(F){c.eJ(F)}, uFt:function(){return c.I3}, dJR:function(F){c.I3=F}, EMM:function(F){c.Uc=F}, Vb6:function(F){c.uN.lastError=F}, iX:function(){return c.xhr}}; this.timing=new xY(this,l);this.ZK=C;this.Wf=B;this.fI=w;this.Xy=g.Af(this.info,this.policy,k);this.Xy.set("rn",this.S7().toString());this.Xy.set("rbuf",(p*1E3).toFixed().toString());this.ZK&&this.Xy.set("smb","1");this.policy.z8&&x&&this.Xy.set("pot",x);W&&this.Xy.set("bbs",W);this.policy.useUmp&&!mT(this.Xy.Rr)&&(this.gf=new Bw(this),this.Xy.set("ump","1"),this.Xy.set("srfvp","1"));if(E=this.policy.tL?this.policy.fN&&!isNaN(this.info.Sr)&&this.info.Sr>this.policy.zk?!1:!0:!1)e=null,this.policy.IL&& this.policy.pM?e=[1]:U&&(e=[]),e!=null&&(this.policy.hx&&e.push(2),this.Xy.set("defsel",e.join(",")));this.uN=new TV(this,this.policy,this.Xy,this.info.XS,this.timing,this.logger,k,Q);this.k0=A||null;this.Yb=crW(this);sJW(this.uN);k=void 0;if(this.policy.Uh||this.gf||this.policy.fg)k={method:"POST"},A=(0,g.Sk)([120,0]),Q={},this.policy.dX&&X&&(X=VD(void 0,X),Q.Gk=X),this.policy.Mx&&this.fI&&(Q.videoPlaybackUstreamerConfig=this.fI),this.policy.fg&&(X=this.info.S)&&Object.assign(Q,X),Object.keys(Q).length> 0?k.body=g.YD(Q,g.p_):k.body=A;if(this.Wf&&this.fI){this.Xy.set("iwts","1");k={method:"POST"};X={zV:this.Wf*1E3};var V;A=(V=this.info.S)==null?void 0:V.jG;V=g.YD({R5:X,jG:A||void 0,videoPlaybackUstreamerConfig:this.fI},g.p_);k.body=V}try{this.xhr=zV(this.Xy,this.policy.j,this.timing,E,k),this.uN.G.start(),O&&(this.v3=new g.Nx(this.hE,O,this),this.v3.start(O+(this.timing.Zx.N.NV()||0)*1E3)),this.policy.fS&&pI(this.timing,this.cN()),this.logger.debug(function(){return"Sent, itag="+c.Xy.get("itag")+ " seg="+c.info.H5[0].A0+" range="+c.Xy.get("range")+" time="+Math.round(c.info.H5[0].S)+"-"+Math.round(g.wr(c.info.H5).J)+" rtp="+(c.timing.kP()-Date.now()).toFixed(0)}),g.Gy(function(){})}catch(F){yrW(this,F,!0)}}; crW=function(E){if(!(uS(E.info)&&E.info.TY()&&E.policy.UJ&&E.k0)||E.info.XS.Z>=2||Wm()>0||!kYX())return!1;var e=E.Xy.get("aitags");if(!e)return!1;e=IE(e).split(",");for(var l=[],k=g.T(E.k0),H=k.next();!H.done;H=k.next())H=H.value,g.i_(e,H)&&l.push(H);if(!l.length)return!1;E.Xy.set("altitags",g.yb(l.join(",")));return!0}; yrW=function(E,e,l){l=l===void 0?!1:l;g.$F(e);E.uN.lastError="player.exception";E.errorMessage=e.name+"_"+e.message;l?g.Gy(function(){Ur(E.uN)}):Ur(E.uN)}; jo7=function(E,e){E.timing.pg=!0;E.xhr.aI()&&E.timing.oI();if(E.policy.yf){var l;(l=E.v3)==null||l.stop()}GV(E.I3,e,!1)}; Io7=function(E,e){E.info=e;if(E.I3){var l=E.I3;e=e.H5;(e.length!==l.H5.length||e.length0){e=g.T(e.H5);for(var l=e.next();!l.done;l=e.next()){var k=void 0;E+=((k=l.value.range)==null?void 0:k.length)||0}return E}if(e.lM.length>0)for(l=g.T(e.lM),k=l.next();!k.done;k=l.next())E+=k.value.mX||0;return E+e.Q$}; hY=function(E,e){if(Pw){var l=0;E=E.jJ.get(e);if(E==null||!E.Wn)return 0;E=g.T(E.Wn.values());for(e=E.next();!e.done;e=E.next())l+=e.value.data.totalLength;return l}return((l=E.jJ.get(e))==null?void 0:l.OJ.totalLength)||0}; MY=function(E,e){E=E.jJ.get(e);if(Pw){if(E==null||!E.FY)return!1;e=E.Wn.size>0;return E.wI.length>0||e}return!(E==null||!E.FY)&&!(E==null||!E.OJ.totalLength)}; DNv=function(E,e){var l=E.jJ.get(e),k=rre(E,e),H=!k&&!!l.bytesReceived;if(Pw){var O;if((O=E.W5)==null?0:O.sK){E=g.T(l.Wn.values());for(e=E.next();!e.done;e=E.next())if(!e.value.tU)return!1;return H}}else if(O=E.jB(e),H&&E.T&&O!==void 0)return O;return(H||l.bytesReceived===k)&&l.PY+hY(E,e)===l.bytesReceived}; b0X=function(E,e,l){E.jJ.set(e,{OJ:new eV,PY:0,bytesReceived:0,Q$:0,I0:!1,Du:!1,jB:!1,A2:l,eI:[],H5:[],lM:[],FY:!1,Wn:new Map,pZ:new Map,wI:[]});E.logger.debug(function(){return"[initStream] formatId: "+e})}; vzX=function(E,e,l,k){l.H5.push.apply(l.H5,g.Be(k));if(Pw){l.pZ.has(e)||l.pZ.set(e,[]);var H;(H=l.pZ.get(e)).push.apply(H,g.Be(k))}else if(l.I3)for(E=g.T(k),e=E.next();!e.done;e=E.next())l.I3.H5.push(e.value);else{l.I3=new dD(E.CY,[].concat(g.Be(l.H5)));var O;((O=E.CY)==null?0:O.KM)&&g.L(E,l.I3)}}; PHX=function(E,e,l){var k,H=(k=E.W5)==null?void 0:k.Z.get(e);if(!H)return[];if(l.jc){var O;return((O=H.hU(0,l.clipId))==null?void 0:O.H5)||[]}if(H.QJ()){var X=l.startMs,A=l.durationMs;k=1E3;var C;if(((C=E.CY)==null?0:C.T)&&l.timeRange){var p;X=(p=l.timeRange.startTicks)!=null?p:-1;var x;A=(x=l.timeRange.HS)!=null?x:-1;var Q;k=(Q=l.timeRange.timescale)!=null?Q:-1}if(l.xx<0||l.L9<0||A<0||X<0||l.mX<0||k<0)return LI(E,e),[];E=n0(l.xx,l.mX);e=l.Bp||0;return[new tr(3,H,E,"makeSliceInfosMediaBytes",l.L9- 1,X/k,A/k,e,E.length-e,void 0,l.C_,l.clipId)]}if(l.L9<0)return LI(E,e),[];var W;return((W=E.W5)==null?0:W.sK)?(e=H.R6,C=e*H.info.Kg,p=l.Bp,((A=E.CY)==null?0:A.h5)&&l.timeRange&&!p&&(X=l.timeRange.startTicks/l.timeRange.timescale),[new tr(3,H,void 0,"makeSliceInfosMediaBytes",l.L9,X,e,p,C,!0,l.C_,l.clipId)]):[]}; aop=function(E,e,l){E.W5=e;E.CY=l;e=g.T(E.jJ);for(l=e.next();!l.done;l=e.next()){var k=g.T(l.value);l=k.next().value;k=k.next().value;for(var H=g.T(k.eI),O=H.next();!O.done;O=H.next()){O=O.value;var X=PHX(E,l,O);vzX(E,O.Ri,k,X)}}}; NY=function(E,e,l,k){E.logger.debug(function(){return"[addStreamData] formatId: "+l+",headerId: "+e+" bytes: "+k.totalLength}); (E=E.jJ.get(l))&&!E.Du&&(Pw?(E.Wn.has(e)||E.Wn.set(e,{data:new eV,Y8:0,tU:!1}),l1(E.Wn.get(e).data,k)):l1(E.OJ,k),E.bytesReceived+=k.totalLength,E.I0=!0)}; aM=function(E,e){E.logger.debug(function(){return"[closeStream] formatId: "+e}); var l=E.jJ.get(e);l&&!l.Du&&(l.Du=!0,l.ev&&l.ev(),LX8(E)&&E.S.CC())}; LX8=function(E){E=g.T(E.jJ.values());for(var e=E.next();!e.done;e=E.next())if(!e.value.Du)return!1;return!0}; hpl=function(E){Pw=E}; Z1=function(E,e,l,k,H,O,X){g.a.call(this);this.policy=E;this.info=e;this.W5=l;this.TX=H;this.logger=new g.da("sabr");this.gf=new Bw(this);this.cL=new bI(this);this.P7=new vw(this);this.state=1;this.sQ=!1;this.x_=0;this.clipId="";this.OP=-1;this.nK=0;this.DJ=-1;this.yu=this.yp=!1;this.VD=0;this.YX=!1;this.policy.m9?this.Vf=new rD(this,O):this.Vf=new xY(this,O);this.Xy=this.policy.GX?e.Ve:MfW(e,this.policy,k);this.Xy.set("rn",""+this.S7());this.Xy.set("alr","yes");aop(this.P7,l,E);this.uN=new TV(this, this.policy,this.Xy,e.XS,this.Vf,this.logger,k,X,this.policy.enableServerDrivenRequestCancellation);sJW(this.uN);var A;if((A=this.policy)==null?0:A.KM)g.L(this,this.P7),g.L(this,this.uN);E=e.G;e={method:"POST",body:E};E&&(this.nK=E.length);try{this.xhr=zV(this.Xy,this.policy.j,this.Vf,z8,e),this.policy.fS&&pI(this.Vf,this.cN()),this.uN.G.start()}catch(C){g.UJ(C)}}; Nty=function(E){E.policy.l2&&E.vW&&!E.YX?E.YX=!0:E.Vf.oI()}; Z09=function(E,e){var l=-1,k=-1,H=-1,O;if((O=E.FT)==null?0:O.items)for(E=g.T(E.FT.items),O=E.next();!O.done;O=E.next())O=O.value,e=A,C=E.W5.isManifestless,X){var p;if(((p=E.T)==null?void 0:p.TN.event)==="predictStart"&&E.T.A0E.J&&(E.J=NaN,E.j=NaN);E.T&&E.T.A0===e?Xl9(E,e,l,E.T,H):E.G===1&&KI(E,5,"noad")}; uK7=function(E,e,l,k,H){k.US?KI(E,4,"cue"):(E.J=e,E.j=l,E.wH("sdai",{joinad:E.G,sg:E.J,st:E.j.toFixed(3)}),E.V=Date.now(),KI(E,2,E.G===3?"staftpred":"join"),H.iW(k.TN))}; Xl9=function(E,e,l,k,H){if(H&&k){var O=k.TN,X=H.II(O);O.event==="predictStart"&&(E.kt=e);E.wH("sdai",{onqevt:O.event,sq:e,mt:l,gab:X,cst:O.startSecs,cueid:E.policy.cF&&(X||O.event==="start")?O.identifier:void 0},!0);if(X)O.event!=="predictStart"?(O.event==="start"&&E.kt===e-1&&E.wH("sdai",{gabonstart:e}),uK7(E,e,l,k,H)):E.policy.Dr?KI(E,3,"predict"):(e+=Math.max(Math.ceil(-O.T/5E3),1),O=Math.floor(l-O.T/1E3),E.policy.G?E.W=O:E.S=e,E.wH("sdai",{onpred:l,estsq:e,estmt:O.toFixed(3)}),nI(E.loader,O,O, e),E.V=Date.now(),KI(E,3,"predict"),H.iW(k.TN));else if(E.G===1){var A;((A=E.Z)==null?0:A.mz(l))?(nI(E.loader,l,l,e),KI(E,4,"sk2head")):KI(E,5,"nogab")}else O.event==="predictStart"?E.policy.G&&E.W>0?(l=Math.floor(l-O.T/1E3),E.W!==l&&E.wH("sdai",{updateSt:l,old:E.W}),E.W=l):E.S>0&&(l=e+Math.max(Math.ceil(-O.T/5E3),1),E.S!==l&&(E.wH("sdai",{updateSt:l,old:E.S}),E.S=l)):E.policy.Dr&&E.G===3&&uK7(E,e,l,k,H)}else E.wH("sdai",{nulldec:1,sq:e,mt:l.toFixed(3),evt:(k==null?void 0:(O=k.TN)==null?void 0:O.event)|| "none"})}; CSX=function(E,e,l){if(E.policy.HQ&&E.policy.G)return!(E.G===1||E.G===2||!E.policy.Dr&&E.G===3&&l>=E.S);if(E.G===1||E.G===2)return!1;if(E.G!==0&&e===E.audioTrack){if(E.policy.G)return Afl(E.videoTrack,l)||Afl(E.videoTrack,l+1);E=RM(E.videoTrack);if(l>(E?E.A0:-1))return!1}return!0}; sr=function(E,e,l){return(l<0||l===E.J)&&!isNaN(E.j)?E.j:e}; lYW=function(E,e){if(E.T){var l=E.T.TN.s1-(e.startTime+E.N-E.T.TN.startSecs);l<=0||(l=new XB(E.T.TN.startSecs-(isNaN(E.N)?0:E.N),l,E.T.TN.context,E.T.TN.identifier,"stop",E.T.TN.T+e.duration*1E3),E.wH("cuepointdiscontinuity",{segNum:e.A0}),gD(E,l,e.A0))}}; KI=function(E,e,l){E.G!==e&&(E.wH("sdai",{setsst:e,old:E.G,r:l}),E.G=e)}; tY=function(E,e,l,k){(k===void 0?0:k)?KI(E,1,"seek"):e>0&&Math.abs(e-l)>=5&&E.G===4&&KI(E,5,"sk2t")}; plW=function(E){this.wH=E;this.T="";this.G=new Map}; xc7=function(E,e,l){if(E.G.has(e.identifier)){var k=E.G.get(e.identifier);var H=qY(k.event||"unknown");qY(e.event)>H&&(k.startTimeSecs=e.startSecs,k.s1=e.s1,k.event=e.event,H===qY("predictStart")&&(k.f2=Date.now()))}else k={event:e.event,startTimeSecs:e.startSecs,s1:e.s1,V6:[]},E.G.set(e.identifier,k);E.Z&&l>-1&&l0}; OR=function(E,e){E.T!==e&&(E.T=e,E.G=!0)}; BaW=function(E,e){var l;e&&(l=g.Gd(E.S.T,function(H){return H.id===e})); if(!l&&(l=g.Gd(E.S.T,function(H){var O;return!((O=H.gC)==null||!O.isDefault)}),e)){var k; E.wH("iaf",{id:e,sid:(k=l)==null?void 0:k.id})}return l}; uf=function(E,e,l,k,H,O){var X=this;O=O===void 0?[]:O;this.loader=E;this.SR=e;this.policy=l;this.W5=k;this.J=H;this.ND=O;this.logger=new g.da("dash/abr");this.T=B$;this.Z=this.j=null;this.V=-1;this.c5=!1;this.nextVideo=this.G=null;this.S=[];this.jR=new Set;this.fg={};this.b3=new D2(1);this.N=0;this.R4=this.kt=this.pg=!1;this.Qd=0;this.gH=!1;this.h0=new Set;this.J0=!1;this.p5={fK:function(){Xe(X)}}; this.W=new lf(this.policy,H,function(A,C){X.loader.wH(A,C)})}; GXp=function(E,e,l){AF(E,e);e=BaW(E.W,l);l||e||(e=owX(E));e=e||E.J.T[0];E.G=E.W5.T[e.id];Xe(E);E.j=E.G;wly(E);znS(E);E.Z=E.nextVideo;E.j=E.G;return dcS(E)}; $cX=function(E,e){if(TaX(E,e))return null;if(e.reason==="m"&&e.isLocked())return E.logger.debug(function(){return"User sets constraint to: "+Fv(e)}),AF(E,e),E.N=E.S.length-1,Xe(E),Cn(E),E.kt=E.kt||E.Z!==E.nextVideo,E.Z=E.nextVideo,new ER(E.G,E.Z,e.reason); e.reason==="r"&&(E.V=-1);AF(E,e);Cn(E);if(e.reason==="r"&&E.nextVideo===E.Z)return new ER(E.G,E.nextVideo,e.reason);ix8(E);return null}; Uc7=function(E,e,l){E.G=E.W5.T[e];E.j=E.G;return new ER(E.j,E.Z,l?"t":"m")}; Jf7=function(E,e){if(e.info.video){if(E.Z!==e)return E.Z=e,dcS(E)}else E.R4=E.j!==e,E.j=e;return null}; cfZ=function(E,e){if(e.T.info.video&&e.W){var l=(e.G+e.Z)/e.duration,k=e.T.info.Kg;l&&k&&(E.b3.CI(1,l/k),E.policy.Z&&l/k>1.5&&E.loader.wH("overshoot",{sq:e.A0,br:l,max:k}))}}; pn=function(E,e,l){kj(E.W,e,l===void 0?!1:l);E.V=-1;AF(E,E.T)}; yfS=function(E,e){return new ER(E.j,E.Z,e||E.T.reason)}; ix8=function(E){if(E.Z&&E.nextVideo&&xj(E,E.Z.info)E.policy.xE,A=H<=E.policy.xE?Vp(k):IW(k);if(!O||X||A)l[H]=k}return l}; AF=function(E,e){E.T=e;var l=E.J.videoInfos;if(!E.T.isLocked()){var k=(0,g.dE)();l=g.JE(l,function(A){if(A.Kg>this.policy.Kg)return!1;var C=this.W5.T[A.id];return HP(this.W).get(A.id)>k?!1:C.XS.Z>4||C.J>4?(this.logger.debug(function(){return"Remove "+N5(A)+"; 4 load failures"}),!1):this.h0.has(+A.itag)?!1:!0},E); WxW(E.W)&&(l=g.JE(l,function(A){return A.video.width<=854&&A.video.height<=480}))}l.length||(l=E.J.videoInfos); var H=l;E.policy.fp&&(H=IY7(E,H,e));H=g.JE(H,e.S,e);if(E.T.isLocked()&&E.W.T){var O=g.Gd(l,function(A){return A.id===E.W.T}); O?H=[O]:OR(E.W,"")}E.policy.fp||(H=IY7(E,H,e));H.length||(H=[l[0]]);H.sort(function(A,C){return xj(E,A)-xj(E,C)}); e={};for(l=1;le.TG.video.width?(g.$G(H,l),l--):xj(E,e.bF)*E.policy.N>xj(E,e.TG)&&(g.$G(H,l-1),l--);var X=H[H.length-1];E.gH=!!E.Z&&!!E.Z.info&&E.Z.info.DM!==X.DM;E.logger.debug(function(){return"Constraint: "+Fv(E.T)+", "+H.length+" fmts selectable, max selectable fmt: "+N5(X)}); E.S=H;E.jR.clear();e=!1;for(l=0;l=1080&&(e=!0);Fxv(E.policy,X,E.W5.sK)}; IY7=function(E,e,l){var k=l.reason==="m"||l.reason==="s";E.policy.wX&&Q6&&g.pA&&(!k||l.T<1080)&&(e=e.filter(function(p){return p.video&&(!p.G||p.G.powerEfficient)})); if(e.length>0)if(l3()){var H=jc7(E,e);e=e.filter(function(p){return!!p&&!!p.video&&p.DM===H[p.video.qualityOrdinal].DM})}else{var O,X,A=(O=e[0])==null?void 0:(X=O.video)==null?void 0:X.qualityOrdinal; if(A){l=e.filter(function(p){return!!p&&!!p.video&&p.video.qualityOrdinal===A}); var C=jc7(E,l)[A].DM;e=e.filter(function(p){return!!p&&!!p.video&&p.DM===C})}}return e}; fYW=function(E,e){for(var l=0;l+1k}; Xe=function(E){if(!E.G||!E.policy.S&&!E.G.info.gC){var e=E.J.T;E.G&&(e=e.filter(function(k){return k.audio.T===E.G.info.audio.T}),e.length||(e=E.J.T)); E.G=E.W5.T[e[0].id];if(e.length>1&&!E.policy.R4){if(!E.policy.Jr){var l=g.Gd(e,function(k){return k.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); l&&(E.G=E.W5.T[l.id])}l=!1;if(l=E.policy.MM?!0:E.T.isLocked()?E.T.T<240:fYW(E,E.G))E.G=E.W5.T[g.wr(e).id]}}}; Cn=function(E){if(!E.nextVideo||!E.policy.S)if(E.T.isLocked())E.nextVideo=E.T.T<=360?E.W5.T[E.S[0].id]:E.W5.T[g.wr(E.S).id],E.logger.debug(function(){return"Select max fmt: "+N5(E.nextVideo.info)}); else{for(var e=Math.min(E.N,E.S.length-1),l=KV(E.SR),k=xj(E,E.G.info),H=l/E.policy.pg-k;e>0&&!(xj(E,E.S[e])<=H);e--);for(var O=l/E.policy.N-k;e=O);e++);E.nextVideo=E.W5.T[E.S[e].id];E.N!==e&&E.logger.info(function(){return"Adapt to: "+N5(E.nextVideo.info)+", bandwidth: "+l.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+O.toFixed(0)+", constraint: "+Fv(E.T)}); E.N=e}}; wly=function(E){var e=E.policy.pg,l=KV(E.SR),k=l/e-xj(E,E.G.info);e=g.Td(E.S,function(H){return xj(this,H)O?H=0:k[X]>E.buffered[X]&&(X===O-1?H=2:X===O-2&&k[X+1]>E.buffered[X+1]&&(H=3))}E.T.add(e<<3|(l&&4)|H);e=Math.ceil(E.track.iH()*1E3);E.T.add(e-E.W);E.W=e;if(H===1)for(E.T.add(O),X=e=0;X=2&&E.T.add(k[O- 1]-E.buffered[O-1]);l&&E.T.add(l);E.buffered=k}; oq=function(E,e,l){var k=this;this.policy=E;this.T=e;this.Qd=l;this.S=this.G=0;this.MK=null;this.pg=new Set;this.V=[];this.indexRange=this.initRange=null;this.N=new xZ;this.kt=this.SR=!1;this.p5={Xg6:function(){return k.Z}, aY3:function(){return k.chunkSize}, Lg7:function(){return k.j}, Wgt:function(){return k.J}}; (e=bxl(this))?(this.chunkSize=e.csz,this.Z=Math.floor(e.clen/e.csz),this.j=e.ck,this.J=e.civ):(this.chunkSize=E.rQ,this.Z=0,this.j=g.p2(16),this.J=g.p2(16));this.W=new Uint8Array(this.chunkSize);this.j&&this.J&&(this.crypto=new Y1p(this.j,this.J))}; bxl=function(E){if(E.policy.Lw&&E.policy.Vn)for(var e=g.T(E.policy.Lw),l=e.next(),k={};!l.done;k={WZ:void 0,Nu:void 0},l=e.next())if(l=g.R0(l.value),k.WZ=+l.clen,k.Nu=+l.csz,k.WZ>0&&k.Nu>0&&E.policy.S===l.docid&&E.T.info.id===l.fmtid&&E.T.info.lastModified===+l.lmt)return E={},E.clen=k.WZ,E.csz=k.Nu,E.ck=l.ck,E.civ=l.civ,E}; wo=function(E){return!!E.MK&&E.MK.UZ()}; aYX=function(E,e){if(!wo(E)&&!E.U7()){if(!(E.SR||(E.SR=!0,E.Z>0))){var l=zP(E);l=OE(E.policy.S,E.T.info,GP(E),l,E.policy.ND);TP(E,l)}if(e.info.type===1){if(E.MK){UR(E,Error("Woffle: Expect INIT slices to always start us off"));return}E.initRange=n0(0,e.G.totalLength)}else if(e.info.type===2)E.MK&&E.MK.type===1||UR(E,Error("Woffle: Index before init")),E.indexRange=n0(E.initRange.end+1,e.G.totalLength);else if(e.info.type===3){if(!E.MK){UR(E,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(E.MK.type===3&&!ez(E.MK,e.info)&&(E.V=[],e.info.A0!==lS(E.MK)||e.info.G!==0))return;if(e.info.W){l=g.T(E.V);for(var k=l.next();!k.done;k=l.next())vwy(E,k.value);E.V=[]}else{E.V.push(e);E.MK=e.info;return}}else{UR(E,Error("Woffle: Unexpected slice type"));return}E.MK=e.info;vwy(E,e);PS0(E)}}; vwy=function(E,e){var l=0,k=X6(e.G);if(E.S=k.length)return;if(l<0)throw Error("Missing data");E.S=E.Z;E.G=0}for(H={};l0){var X=k.getUint32(l+28);O+=X*16+4}var A=k.getUint32(l+O-4);try{var C=ZxX(e.subarray(l+O,l+O+A));if(C!==null){var p=C;break a}}catch(x){}}l+=H}p=null;break a}catch(x){p=null;break a}p=void 0}if(p!=null)for(e=WD(Re(p,7,void 0,Ft)),e==null||E.E1||(E.cryptoPeriodIndex=e),e=WD(Re(p,10,void 0,Ft)),e!=null&&e>0&& !E.E1&&(E.T=e),p=k4(p,2,IuZ,void 0===S3v?2:4),p=g.T(p),k=p.next();!k.done;k=p.next())e=E.Z,l=e.push,k=Sq(k.value),k=g.Jz(k,4),l.call(e,k)}; mc8=function(E){return isNaN(E.cryptoPeriodIndex)?g.Jz(E.initData):""+E.cryptoPeriodIndex}; y6=function(E,e,l){var k=l===void 0?{}:l;l=k.videoDuration===void 0?0:k.videoDuration;var H=k.Zf===void 0?void 0:k.Zf;k=k.UF===void 0?!1:k.UF;this.videoId=E;this.status=e;this.videoDuration=l;this.Zf=H;this.UF=k}; gwp=function(E,e,l,k,H){this.videoId=E;this.JG=e;this.G=l;this.bytesDownloaded=k;this.T=H}; jR=function(E){this.T=E;this.offset=0}; Iq=function(E){if(E.offset>=E.T.totalLength)throw Error();return AP(E.T,E.offset++)}; Kxp=function(E,e){e=e===void 0?!1:e;var l=Iq(E);if(l===1){e=-1;for(l=0;l<7;l++){var k=Iq(E);e===-1&&k!==255&&(e=0);e>-1&&(e=e*256+k)}return e}k=128;for(var H=0;H<6&&k>l;H++)l=l*256+Iq(E),k*=128;return e?l:l-k}; nw8=function(E){try{var e=Kxp(E,!0),l=Kxp(E,!1);return{id:e,size:l}}catch(k){return{id:-1,size:-1}}}; Rn7=function(E){for(var e=new jR(E),l=-1,k=0,H=0;!k||!H;){var O=nw8(e),X=O.id;O=O.size;if(X<0)return;if(X===176){if(O!==2)return;k=e.Zp()}else if(X===186){if(O!==2)return;H=e.Zp()}X===374648427?l=e.Zp()+O:X!==408125543&&X!==174&&X!==224&&e.skip(O)}e=u1(E,0,l);l=new DataView(e.buffer);l.setUint16(k,3840);l.setUint16(H,2160);k=new eV([e]);l1(k,E);return k}; scX=function(E,e,l){var k=this;this.loader=E;this.policy=e;this.W=l;this.logger=new g.da("dash");this.G=[];this.T=null;this.SR=-1;this.V=0;this.h0=NaN;this.pg=0;this.Z=NaN;this.N=this.c5=0;this.gH=-1;this.fg=this.S=this.J=this.Qd=null;this.b3=this.R4=NaN;this.j=this.kt=this.jR=this.ND=null;this.Yt=!1;this.J0=this.timestampOffset=0;this.p5={Lm:function(){return k.G}}; if(this.policy.S){var H=this.W,O=this.policy.S;this.policy.ND&&E.wH("atv",{ap:this.policy.ND});this.j=new oq(this.policy,H,function(X,A,C){Fe(E,new y6(k.policy.S,2,{Zf:new gwp(O,X,H.info,A,C)}))}); this.j.N.promise.then(function(X){k.j=null;X===1?Fe(E,new y6(k.policy.S,X)):k.loader.wH("offlineerr",{status:X.toString()})},function(X){var A=(X.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); X instanceof JF&&!X.T?(k.logger.info(function(){return"Assertion failed: "+A}),k.loader.wH("offlinenwerr",{em:A}),fn(k),Fe(E,new y6(k.policy.S,4))):(k.logger.info(function(){return"Failed to write to disk: "+A}),k.loader.wH("dldbwerr",{em:A}),fn(k),Fe(E,new y6(k.policy.S,4,{UF:!0})))})}}; tzS=function(E){return E.G.length?E.G[0]:null}; qZS=function(E,e){return E.G.some(function(l){return l.info.A0===e})}; HJe=function(E,e,l,k){k=k===void 0?0:k;if(E.S){var H=E.S.G+E.S.Z;if(l.info.G>0)if(l.info.A0===E.S.A0&&l.info.G=0&&E.S.A0>=0&&!ez(E.S,l.info))throw new g.PK("improper_continuation",E.S.T_(),l.info.T_());$58(E.S,l.info)||V6(E,"d")}else if(l.info.G>0)throw new g.PK("continuation_of_null",l.info.T_());E.S=l.info;E.W=l.info.T;if(l.info.G===0){if(E.T)if(!E.loader.isOffline()||E.policy.zx)E.loader.wH("slice_not_fully_processed", {buffered:E.T.info.T_(),push:l.info.T_()});else throw new g.PK("slice_not_fully_processed",E.T.info.T_(),l.info.T_());SR(E);E.c5=k}else{if(E.c5&&k&&E.c5!==k)throw E=new g.PK("lmt_mismatch",l.info.A0,E.c5,k),E.level="WARNING",E;!l.info.T.QJ()&&E.J&&(k=l.info,H=E.J.OP,k.j="updateWithEmsg",k.A0=H)}if(E.T){k=g.$w(E.T,l);if(!k)throw new g.PK("failed_to_merge",E.T.info.T_(),l.info.T_());E.T=k}else E.T=l;a:{l=g.D9(E.T.info.T.info);if(E.T.info.type!==3){if(!E.T.info.W)break a;E.T.info.type===6?Ese(E,e,E.T): eVp(E,E.T);E.T=null}for(;E.T;){k=E.T.G.totalLength;if(E.SR<=0&&E.V===0){var O=E.T.G,X=-1;H=-1;if(l){for(var A=0;A+80))break;if(Q!==408125543)if(Q===524531317)A=!0,x>=0&&(H=O.Zp()+x,C=!0);else{if(A&&(Q===160||Q===163)&&(X<0&&(X=p),C))break;Q===163&&(X=Math.max(0,X),H=O.Zp()+x);if(Q===160){X<0&&(H=X=O.Zp()+ x);break}O.skip(x)}}X<0&&(H=-1)}if(X<0)break;E.SR=X;E.V=H-X}if(E.SR>k)break;E.SR?(k=l2X(E,E.SR),k.W&&k8W(E,k),Ese(E,e,k),ro(E,k),E.SR=0):E.V&&(k=l2X(E,E.V<0?Infinity:E.V),E.V-=k.G.totalLength,ro(E,k))}}E.T&&E.T.info.W&&(ro(E,E.T),E.T=null)}; eVp=function(E,e){!e.info.T.QJ()&&e.info.G===0&&(g.D9(e.info.T.info)||e.info.T.info.E1())&&HX0(e);if(e.info.type===1)try{k8W(E,e),OJ0(E,e)}catch(H){g.$F(H);var l=kw(e.info);l.hms="1";E.loader.handleError("fmt.unparseable",l||{},1)}l=e.info.T;l.An(e);E.j&&aYX(E.j,e);if(l.Sv()&&E.policy.T)a:{E=E.loader.W5;e=e.info.clipId;l=g.vR(l.info,E.sK);if(e){var k=Yz({itag:l.itag,lmt:E.sK?0:l.lmt||0,xtags:l.xtags});if(E.gH[k])break a;E.gH[k]=e}E.R4.push(l)}}; fJp=function(E,e,l){if(E.G.length!==0&&(l||E.G.some(function(O){return O.info.S=bf(X)+A):e=E.getDuration()>=X.getDuration(),e=!e;e&&A1v(l)&&(e=E.Qd,DM?(A=lU8(l),X=1/A,A=bf(E,A),e=bf(e)+X-A):e=e.getDuration()- E.getDuration(),e=1+e/l.info.duration,qUX(g.iS(l),e))}else{X=!1;E.J||(HX0(l),l.T&&(E.J=l.T,X=!0,H=l.info,O=l.T.OP,H.j="updateWithEmsg",H.A0=O,H=l.T,H.UZ&&(O=E.W.index,O.G=!H.UZ,O.Z="emsg"),H=l.info.T.info,O=g.iS(l),g.D9(H)?dt(O,1701671783):H.E1()&&yO([408125543],307544935,O)));a:if((H=cl(l,E.policy.bY))&&kU7(l))A=CgS(E,l),E.N+=A,H-=A,E.pg+=H,E.Z=E.policy.Yu?E.Z+H:NaN;else{if(E.policy.kI){if(O=C=E.loader.w_(g.UZ(l),1),E.Z>=0&&l.info.type!==6){if(E.policy.Yu&&isNaN(E.R4)){g.UJ(new g.PK("Missing duration while processing previous chunk", l.info.T_()));E.loader.isOffline()&&!E.policy.zx||pie(E,l,O);V6(E,"m");break a}k=C-E.Z;var p=k-E.N,x=l.info.A0,Q=E.fg?E.fg.A0:-1,W=E.b3,B=E.R4,w=E.policy.gY&&k>E.policy.gY,U=Math.abs(p)>10,c=Math.abs(E.Z-O)<1E-7;if(Math.abs(p)>1E-4){E.J0+=1;var V=(A=E.J)==null?void 0:K3p(A);A={audio:""+ +E.A2(),sq:x.toFixed(),sliceStart:C,lastSq:Q.toFixed(),lastSliceStart:W,lastSliceDuration:B,totalDrift:(k*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(w||U)};if(V==null?0:V.length)A.adCpn=V[0];E.loader.handleError("qoe.avsync", A);E.gH=x}w||U||c||(O=E.Z);A=CgS(E,l,C);H-=A;E.N=k+A}}else O=isNaN(E.Z)?l.info.startTime:E.Z;pie(E,l,O)&&(E.pg+=H,E.Z=O+H,E.policy.RU&&E.J0>=E.policy.RU&&(E.J0=0,E.loader.zY({resetForRewrites:"count"})))}E.fg=l.info;E.R4=Jf(l);l.Z>=0&&(E.b3=l.Z);if(X&&E.J){X=xA7(E,!0);Hl(l.info,X);E.T&&Hl(E.T.info,X);e=g.T(e);for(A=e.next();!A.done;A=e.next())A=A.value,H=void 0,E.policy.W&&A.A0!==((H=E.J)==null?void 0:H.OP)||Hl(A,X);(l.info.W||E.T&&E.T.info.W)&&l.info.type!==6||(E.kt=X,E.policy.G?(e=QUe(E.J),E.loader.Hp(E.W, X,e)):(e=E.loader,e.W5.isManifestless&&WFl(e,X,null,!!E.W.info.video)),E.policy.mT||B_Z(E))}}OJ0(E,l);E.timestampOffset&&EZX(l,E.timestampOffset)}; ro=function(E,e){if(e.info.W){E.ND=e.info;if(E.J){var l=E.J,k=xA7(E,!1);l=QUe(l);E.loader.Hp(E.W,k,l);E.kt||E.policy.mT||B_Z(E);E.kt=null}SR(E)}E.j&&aYX(E.j,e);if(k=E.Tu())if(k=g.$w(k,e,E.policy.Ze,E.policy.CD)){E.G.pop();E.G.push(k);return}E.G.push(e)}; QUe=function(E){if(E.US()){var e=E.data["Stitched-Video-Id"]?E.data["Stitched-Video-Id"].split(",").slice(0,-1):[],l=K3p(E),k=[];if(E.data["Stitched-Video-Duration-Us"])for(var H=g.T(E.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),O=H.next();!O.done;O=H.next())k.push((Number(O.value)||0)/1E6);H=[];if(E.data["Stitched-Video-Start-Frame-Index"]){O=g.T(E.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var X=O.next();!X.done;X=O.next())H.push(Number(X.value)||0)}H=[]; if(E.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(O=g.T(E.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),X=O.next();!X.done;X=O.next())H.push((Number(X.value)||0)/1E6);E=new Na7(e,l,k,H,g.nAX(E),g.RxX(E))}else E=null;return E}; SR=function(E){E.T=null;E.SR=-1;E.V=0;E.J=null;E.h0=NaN;E.pg=0;E.kt=null}; V6=function(E,e){e={rst4disc:e,cd:E.N.toFixed(3),sq:E.fg?E.fg.A0:-1};E.Z=NaN;E.N=0;E.gH=-1;E.fg=null;E.b3=NaN;E.R4=NaN;E.jR=null;E.loader.wH("mdstm",e)}; OJ0=function(E,e){if(E.isDrm()){if(e.info.T.info.E1()){var l=new TS(g.iS(e));if($z(l,[408125543,374648427,174,28032,25152,20533,18402])){var k=cs(l,!0);l=k!==16?null:f0(l,k)}else l=null;k="webm"}else e.info.V=hnp(g.iS(e)),l=Mz7(e.info.V),k="cenc";l&&l.length&&(l=new cP(l,k),E.policy.A4&&g.D9(e.info.T.info)&&(k=OLS(g.iS(e)))&&(l.G=k),l.E1=e.info.T.info.E1(),e.T&&e.T.cryptoPeriodIndex&&(l.cryptoPeriodIndex=e.T.cryptoPeriodIndex),e.T&&e.T.G&&(l.T=e.T.G),E.loader.AT(l))}}; B_Z=function(E){var e=E.J,l=mgW(e);l&&(l.startSecs+=E.h0,E.loader.uc(E.W,l,e.OP,e.US()))}; xA7=function(E,e){var l,k=E.J;if(l=mgW(k))l.startSecs+=E.h0;return new RJ(k.OP,E.h0,e?k.R6:E.pg,k.ingestionTime,"sq/"+k.OP,void 0,void 0,e,l)}; pie=function(E,e,l){if(!qOW(e,l))return e=kw(e.info),e.smst="1",E.loader.handleError("fmt.unparseable",e||{},1),!1;isNaN(E.h0)&&(E.h0=l);return!0}; CgS=function(E,e,l){var k=0;if(e.info.T.info.E1()&&!kU7(e))return 0;if(E.Qd&&!E.A2()){var H=0;l&&g.D9(e.info.T.info)?H=l-E.Z:e.info.T.info.E1()&&(H=E.N);var O=e.info.A0;l=cl(e,E.policy.bY);var X=E.Qd;var A=X.gH;X=X.N;var C=Math.abs(X-H)>.02;if((O===A||O>A&&O>E.gH)&&C){k=Math.max(.95,Math.min(1.05,(l-(X-H))/l));if(g.D9(e.info.T.info))qUX(g.iS(e),k);else if(e.info.T.info.E1()&&(O=H-X,!g.D9(e.info.T.info)&&(e.info.T.info.E1(),k=new TS(g.iS(e)),A=e.W?k:new TS(new DataView(e.info.T.T.buffer)),cl(e,!0)))){var p= O*1E3,x=Sf(A);A=k.pos;k.pos=0;if(k.T.getUint8(k.pos)===160||rt(k))if(Jr(k,160))if(cs(k,!0),Jr(k,155)){if(O=k.pos,C=cs(k,!0),k.pos=O,p=p*1E9/x,x=jf(k),p=x+Math.max(-x*.7,Math.min(x,p)),p=Math.sign(p)*Math.floor(Math.abs(p)),!(Math.ceil(Math.log(p)/Math.log(2)/8)>C)){k.pos=O+1;for(O=C-1;O>=0;O--)k.T.setUint8(k.pos+O,p&255),p>>>=8;k.pos=A}}else k.pos=A;else k.pos=A;else k.pos=A}k=cl(e,E.policy.bY);k=l-k}k&&e.info.T.info.E1()&&E.loader.wH("webmDurationAdjustment",{durationAdjustment:k,videoDrift:H+k, audioDrift:X})}return k}; A1v=function(E){return E.info.T.QJ()&&E.info.A0===E.info.T.index.Oz()}; bf=function(E,e){e=(e=e===void 0?0:e)?Math.round(E.timestampOffset*e)/e:E.timestampOffset;E.W.S&&e&&(e+=E.W.S.T);return e+E.getDuration()}; os7=function(E,e){e<0||(E.G.forEach(function(l){EZX(l,e)}),E.timestampOffset=e)}; tL=function(E,e,l,k,H){oM.call(this,l,H);var O=this;this.policy=E;this.formatId=e;this.P7=k;this.lastError=null;this.ev=function(){O.U7()||(O.P7.jJ.has(O.formatId)?(O.isComplete()||O.T.start(),MY(O.P7,O.formatId)&&O.Ca(2),O.P7.Du(O.formatId)&&(DNv(O.P7,O.formatId)?O.eJ(4):(O.lastError="net.closed",O.eJ(5)))):(O.lastError="player.exception",O.eJ(5)))}; this.T=new g.Nx(function(){O.isComplete()||(O.lastError="net.timeout",O.eJ(5))},1E3); this.T.start();Vf7(this.P7,this.formatId,this.ev);g.Gy(this.ev)}; vP=function(E,e,l,k){g.a.call(this);var H=this;this.loader=E;this.policy=e;this.T=l;this.timing=k;this.logger=new g.da("dash");this.Z=[];this.Qd=[];this.G=this.Jg=null;this.jR=!1;this.c5=this.J0=0;this.J=-1;this.SR=!1;this.h0=-1;this.fg=null;this.kt=NaN;this.pg=[];this.p5={KA:function(){return H.S}, Zhg:function(){return H.Z}, BYD:function(){return H.N}}; this.S=new scX(E,e,l);this.policy.T&&(this.N=new Rn(this.S,this.loader.getManifest(),this.policy,function(O){H.policy.bI&&H.wH("buftl",O)})); this.policy.Wh&&(this.V=new WP(this));this.Kg=l.info.Kg;this.j=this.policy.kt?!1:l.S9();this.isManifestless=l.S9();this.W=this.j;g.L(this,this.fg)}; PP=function(E,e,l){l=l===void 0?!1:l;e&&DM&&os7(E.S,e.XM());if(!l){var k;(k=E.N)==null||y9S(k)}E.Jg=e;(e=E.N)!=null&&(e.Jg=E.Jg)}; aq=function(E){var e=E.Jg&&E.Jg.Kk();if(E.policy.Kz){if((E=E.N)==null)E=void 0;else{var l;E=(l=E.Z)==null?void 0:l.info}return E||null}return e}; wi0=function(E){for(var e={},l=0;l4&&E.Qd.shift()}; zVW=function(E,e){if(e.Uw()){var l=e.bH();l=g.T(l);for(var k=l.next();!k.done;k=l.next())k=k.value,E.policy.Z&&e instanceof tL&&E.wH("omblss",{s:k.info.T_()}),hF(E,e.info.H5,k,e.T9())}}; hF=function(E,e,l,k){k=k===void 0?0:k;isNaN(E.kt)||(E.wH("aswm",{sq:e[0].A0,id:e[0].T.info.itag,xtag:e[0].T.info.T,ep:Date.now()-E.kt}),E.kt=NaN);switch(l.info.type){case 1:case 2:dAW(E,l);break;case 4:var H=l.info.T,O=H.Lb(l),X;((X=E.G)==null?0:X.type===4)&&FUX(l.info,E.G)&&(E.G=H.Zo(E.G).pop());l=g.T(O);for(H=l.next();!H.done;H=l.next())hF(E,e,H.value,k);break;case 3:l.info.T.info.video?(H=E.timing,H.h0||(H.h0=(0,g.dE)(),g.hp("fvb_r",H.h0,H.T))):(H=E.timing,H.J||(H.J=(0,g.dE)(),g.hp("fab_r",H.J, H.T)));HJe(E.S,e,l,k);E.policy.T&&G8W(E);break;case 6:HJe(E.S,e,l,k),E.G=l.info}}; dAW=function(E,e){if(e.info.type===1)if(e.info.T.info.video){var l=E.timing;l.c5||(l.c5=(0,g.dE)(),g.hp("vis_r",l.c5,l.T))}else l=E.timing,l.N||(l.N=(0,g.dE)(),g.hp("ais_r",l.N,l.T));eVp(E.S,e);E=E.loader;E.videoTrack.T.Sv()&&E.audioTrack.T.Sv()&&E.policy.T&&!E.W5.sK&&(e=E.audioTrack.getDuration(),l=E.videoTrack.getDuration(),Math.abs(e-l)>1&&E.wH("trBug",{af:""+g.vR(E.audioTrack.T.info,!1),vf:""+g.vR(E.videoTrack.T.info,!1),a:""+e,v:""+l}))}; uI=function(E){return tzS(E.S)}; G8W=function(E){E.Z.length?E.G=g.wr(g.wr(E.Z).info.H5):E.S.G.length?E.G=E.S.Tu().info:E.G=aq(E)}; Mi=function(E,e){var l={Iz:[],eM:[]},k;if((E=E.N)==null)E=void 0;else{c9y(E,E.Iz,"og");$3X(E,e);c9y(E,E.Iz,"trim");var H=J97(E);e=H.Iz;H=H.lj;for(var O=[],X=0;X0){var W=mU(Q,C);W>=0&&(x=(Q.end(W)-C+.1)*1E3)}O.push({formatId:g.vR(A.info.T.info,E.W5.sK), C_:A.info.C_,sequenceNumber:A.info.A0+E.S,aJ:p,DQ:A.info.Z,VG:x})}E={Iz:e,eM:O}}return(k=E)!=null?k:l}; ek=function(E,e,l){l=l===void 0?!1:l;if(E.Jg){var k=E.Jg.HN(),H=KL(k,e),O=NaN,X=aq(E);X&&(O=KL(k,X.T.index.getStartTime(X.A0)));if(H===O&&E.G&&E.G.Z&&T_Z(Ni(E),0))return e}E=iJZ(E,e,l);return E>=0?E:NaN}; kY=function(E,e,l){E.T.Sv();var k=iJZ(E,e);if(k>=0)return k;var H;(H=E.N)==null||U3S(H,e,l);k=Math;H=k.min;var O=E.S;if(O.j)if(O=O.j,O.MK&&O.MK.type===3)O=O.MK.startTime;else if(O.Z>0){var X=O.T.index;X=g.M$(X.offsets.subarray(0,X.count),O.Z*O.chunkSize);O=O.T.index.getStartTime(X>=0?X:Math.max(0,-X-2))}else O=0;else O=Infinity;e=H.call(k,e,O);E.G=E.policy.kt?null:E.T.SZ(e).H5[0];ZM(E)&&(E.policy.tT&&(l==null?void 0:l.seekSource)===60||E.Jg&&E.Jg.abort(),E.policy.To&&(l=E.N)!=null&&(l.Z=void 0)); E.c5=0;return E.G?E.G.startTime:e}; IJp=function(E){E.j=!0;E.W=!0;E.J=-1;kY(E,Infinity)}; Yj=function(E){for(var e=0,l=g.T(E.Z),k=l.next();!k.done;k=l.next())e+=VO8(k.value.info);return e+=Xi7(E.S)}; go=function(E,e){e=e===void 0?!1:e;var l=E.loader.getCurrentTime(),k=E.S.Tu(),H=(k==null?void 0:k.info.J)||0;if((k==null?0:k.info.T.S9())&&!k.info.W)if(E.policy.Hy)H=k.info.S;else if(E.policy.sV){var O=k.info;H=O.range?O.J:Math.min(O.startTime+Math.min(O.duration*O.G/O.T.info.Kg,O.duration)+(O.range?O.N:Math.min(O.duration,O.duration*O.Z/O.T.info.Kg)),O.startTime+O.duration)}if(!E.Jg)return E.policy.T&&e&&!isNaN(l)&&k?H-l:0;if((O=aq(E))&&m5(O))return O.J;var X=E.Jg.HN(!0);if(e&&k)return O=0,E.policy.T&& (O=sO(X,H+.02)),O+H-l;e=sO(X,l);E.policy.oX&&O&&(k=mU(X,l),X=mU(X,O.S-.02),k===X&&(l=O.J-l,E.policy.Z&&l>e+.02&&E.wH("abh",{bh:e,bhtls:l}),e=Math.max(e,l)));return e}; $AS=function(E){var e=aq(E);return e?e.J-E.loader.getCurrentTime():0}; UAW=function(E,e){if(E.Z.length){if(E.Z[0].info.H5[0].startTime<=e)return;Er(E)}for(var l=E.S,k=l.G.length-1;k>=0;k--)l.G[k].info.startTime>e&&l.G.pop();G8W(E);E.G&&e=0;X--){var A=H.G[X];A.info.A0>=e&&(H.G.pop(),H.Z-=cl(A,H.policy.bY),O=A.info)}O&&(H.S=H.G.length>0?H.G[H.G.length-1].info:H.jR,H.G.length!==0||H.S||V6(H,"r"));H.loader.wH("mdstm",{rollbk:1,itag:O?O.T.info.itag:"",popped:O?O.A0:-1,sq:e,lastslc:H.S?H.S.A0:-1,lastfraget:H.Z.toFixed(3)});if(E.policy.T)return E.G=null,!0;k>l?kY(E,k):E.G=E.T.jb(e-1,!1).H5[0]}catch(C){return e=Qp(C),e.details.reason="rollbkerr", E.loader.handleError(e.errorCode,e.details,e.severity),!1}return!0}; Rq=function(E,e){var l;for(l=0;l0?l||e.A0>=E.h0:l}; sR=function(E){var e;return ZM(E)||m5((e=E.S.Tu())==null?void 0:e.info)}; Ni=function(E){var e=[],l=aq(E);l&&e.push(l);e=g.FO(e,E.S.eC());l=g.T(E.Z);for(var k=l.next();!k.done;k=l.next()){k=k.value;for(var H=g.T(k.info.H5),O=H.next(),X={};!O.done;X={q9:void 0},O=H.next())X.q9=O.value,k.jL&&(e=g.JE(e,function(A){return function(C){return!FUX(C,A.q9)}}(X))),(EZ(X.q9)||X.q9.type===4)&&e.push(X.q9)}E.G&&!TBX(E.G,g.wr(e),E.G.T.QJ())&&e.push(E.G); return e}; T_Z=function(E,e){if(!E.length)return!1;for(e+=1;e=e){e=O;break a}}e=H}return e<0?NaN:T_Z(E,l?e:0)?E[e].startTime:NaN}; tF=function(E){return!(!E.G||E.G.T===E.T)}; J1e=function(E){return tF(E)&&E.T.Sv()&&E.G.T.info.Kge&&E.J1080&&!E.u0&&(E.c5=36700160,E.Yt=5242880,E.J0=Math.max(4194304,E.J0),E.u0=!0);e.video.qualityOrdinal>2160&&!E.sA&&(E.c5=104857600,E.Kg=13107200,E.sA=!0);g.tJ(E.F6.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?e.isEncrypted()&&g.vg()&&g.DD("samsung")&&(g.DD("kant")||g.DD("muse"))&&(E.Kg=g.tJ(E.F6.experiments,"html5_samsung_kant_limit_max_bitrate")):e.isEncrypted()&&g.vg()&&g.DD("kant")&&(E.Kg=1310720);E.Zc!==0&&e.isEncrypted()&& (E.Kg=E.Zc);E.sM!==0&&e.isEncrypted()&&l&&(E.Kg=E.sM);e.Kg&&(E.eA=Math.max(E.Dy,Math.min(E.J0,5*e.Kg)))}; fI=function(E){return E.T&&E.Xu}; ky=function(E){return E.T&&E.OZ&&E.playbackStartPolicy}; H0=function(E,e,l,k){E.OZ&&(E.playbackStartPolicy=e,E.vF=l,E.Ym=k)}; lV=function(E,e,l){l=l===void 0?0:l;return g.tJ(E.F6.experiments,e)||l}; PgX=function(E){var e=E===void 0?{}:E;E=e.pM;var l=e.Gx;var k=e.xg;var H=e.Oz;e=e.XR;this.pM=E;this.Gx=l;this.xg=k;this.Oz=H;this.XR=e}; heZ=function(E,e){if(e<0)return!0;var l=E.Oz();return e0)return 2;if(e<0)return 1;l=E.Oz();return e(0,g.dE)()?0:1}; Xo=function(E,e,l,k,H,O,X,A,C,p,x,Q,W,B){B=B===void 0?null:B;g.a.call(this);var w=this;this.loader=E;this.policy=e;this.videoTrack=l;this.audioTrack=k;this.S=H;this.T=O;this.timing=X;this.W=A;this.schedule=C;this.W5=p;this.Z=x;this.pg=Q;this.lm=W;this.fI=B;this.kt=!1;this.iy="";this.Wu=null;this.Sr=NaN;this.SR=!1;this.G=null;this.Wf=this.V=NaN;this.rD=this.J=0;this.logger=new g.da("dash");this.p5={nG:function(U,c){return w.nG(U,c)}}; this.policy.FH>0&&(this.iy=g.p2(this.policy.FH));this.policy.w2&&(this.N=new OB(this.loader,this.policy,this.schedule),g.L(this,this.N))}; N_W=function(E,e,l){var k=e.G?e.G.T.XS:e.T.XS;var H=E.S,O;(O=!E.policy.F2)||(O=Yn(k.T)===Yn(k.G));O?k=!1:(H=ao(H,Yn(k.G)),O=6E4*Math.pow(H.S,1.6),(0,g.dE)()=H.S?(H.wH("sdai",{haltrq:O+1,est:H.S}),k=!1):k=H.G!==2;if(!k||!Zo(e.G?e.G.T.XS:e.T.XS,E.policy,E.S,E.loader.Xh())||E.loader.isSuspended&&(!mF(E.schedule)||E.loader.oJ))return!1;if(E.policy.S&&H$>=5)return g.ZC(E.loader.Wl),!1;if(E.W5.isManifestless){if(e.Z.length>0&&e.G&&e.G.A0===-1||e.Z.length>=E.policy.Ce||!E.policy.Nh&&e.Z.length>0&&!E.policy.j.Gx)return!1;if(e.j)return!E.W5.isLive|| !isNaN(E.Sr)}if(FFW(e))return E.logger.debug("Pending request with server-selectable format found"),!1;if(!e.G){if(!e.T.Sv())return!1;kY(e,E.loader.getCurrentTime())}if(uI(e)&&(e.Tu()!==uI(e)||E.loader.isSuspended))return!1;H=(k=E.policy.F9)&&!e.Z.length&&go(e,!0)=E.policy.E4)return!1;k=e.G;if(!k)return!0;k.type===4&&k.T.Sv()&&(e.G=g.wr(k.T.Zo(k)),k= e.G);if(!k.UZ()&&!k.T.Lp(k))return!1;O=E.W5.Af||E.W5.S;if(E.W5.isManifestless&&O){O=e.T.index.Oz();var X=l.T.index.Oz();O=Math.min(O,X);if(e.T.index.xa()>0&&O>0&&k.A0>=O)return e.h0=O,l.h0=O,!1}if(k.T.info.audio&&k.type===4||k.UZ())return!1;O=!e.W&&!l.W;if(H=!H)H=k.J,H=!!(l.G&&!m5(l.G)&&l.G.JZJW(E,e)?(ZJW(E,e),!1):(E=e.Jg)&&E.isLocked()?!1:!0}; ZJW=function(E,e){var l=E.T;l=l.T?l.T.TN:null;if(E.policy.Qd&&l)return l.startSecs+l.s1+15;e=lI(E.loader,e);E.policy.In>0&&(l=((0,g.dE)()-E.loader.oO)/1E3,e=Math.min(e,E.policy.In+E.policy.Gf*l));e=E.loader.getCurrentTime()+e;return E.policy.cB&&(l=Ysy(E.loader)+E.policy.cB,l=0||e.XS.pu("defrag")==="1"||e.XS.pu("otf")==="1"){e=null;break a}H=n0(0,4096)}H=new OZ([new tr(5,k.T,H,"createProbeRequestInfo"+k.j,k.A0)],e.G);H.Nd=l;H.T=e.T;e=H}e&&A3(E,e)}}; A3=function(E,e){E.loader.NI(e);var l=VO8(e),k=E.loader.nu();l={Zx:E.schedule,ZH:l,y5:wm8(E.W,l),TY:qN(e.H5[0]),cQ:mT(e.XS.T),Ud:E.policy.Z,lz:function(X,A){E.loader.c8(X,A)}}; if(E.schedule.G.J){var H,O;l.Lz=(((H=E.videoTrack.T)==null?void 0:H.info.Kg)||0)+(((O=E.audioTrack.T)==null?void 0:O.info.Kg)||0)}E.Wu&&(l.A0=e.H5[0].A0,l.Sr=e.Sr,l.Wu=E.Wu);k={Ml:SO0(e,E.loader.getCurrentTime()),k0:E.policy.UJ&&uS(e)&&e.H5[0].T.info.video?SZ9(E.Z):void 0,ZK:E.policy.Qd,poToken:E.loader.AQ(),JT:E.loader.e6(),iy:E.iy,Wf:isNaN(E.Wf)?null:E.Wf,fI:E.fI,lm:E.lm,rD:E.rD,vl:k};return new q6(E.policy,e,l,E.S,function(X,A){try{a:{var C=X.info.H5[0].T,p=C.info.video?E.videoTrack:E.audioTrack; if(!(X.state>=2)||X.isComplete()||X.GF()||!(!E.loader.B5||E.loader.isSuspended||go(p)>3)){var x=hVZ(X,E.policy,E.S);x===1&&(E.SR=!0);mAl(E,X,x);if(X.isComplete()||X.U7()&&A<3){if(E.policy.Z){var Q=X.timing.DY();Q.rst=X.state;Q.strm=X.xhr.aI();Q.cncl=X.xhr&&X.uN.S?1:0;E.loader.wH("rqs",Q)}X.J1&&E.loader.wH("sbwe3",{},!0)}if(!E.U7()&&X.state>=2){Ew7(E.timing,X,C);var W=E.loader;E.Wf&&X.KN&&W&&(E.Wf=NaN,E.loader.HD(X.KN),E.loader.WS(),E.loader.wH("cabrUtcSeek",{mediaTimeSeconds:X.KN}));X.Fv&&E.Wf&&X.Fv&& !X.Fv.action&&(E.loader.H3(E.Wf),E.Wf=NaN,E.loader.wH("cabrUtcSeekFallback",{targetUtcTimeSeconds:E.Wf}));X.AL&&E.loader.SF(X.AL);E.policy.yf&&(E.rD=X.rD);if(X.state===3){Rq(p,X);uS(X.info)&&pw(E,p,C,!0);if(E.G){var B=X.info.Ao();B&&E.G.xu(X.info.H5[0].A0,C.info.id,B)}E.loader.iq()}else if(X.isComplete()&&X.info.H5[0].type===5){if(X.state!==4)X.lH()&&E.loader.handleError(X.tB(),X.Jl());else{var w=(X.info.H5[0].T.info.video?E.videoTrack:E.audioTrack).Z[0]||null;w&&w instanceof q6&&w.GF()&&w.MB()}X.dispose()}else{X.lH()|| gsl(E,X);var U;((U=X.l$)==null?0:U.itagDenylist)&&E.loader.M3(X.l$.itagDenylist);if(X.state===4)QZ(E,X),E.T&&Ox7(E.T,X.info,E.G);else if(E.policy.tL&&X.Uw()&&!X.isComplete()&&!QZ(E,X)&&!X.lH())break a;X.lH()&&(KF8(E,X),isNaN(E.Wf)||(E.loader.H3(E.Wf),E.Wf=NaN));E.policy.C7&&!X.isComplete()?W0(E.loader):E.loader.iq();var c=ML7(X,E.policy,E.S);mAl(E,X,c)}}}}}catch(V){A=E.kt?1:0,E.kt=!0,X=xf(A),A=Qp(V,A),E.loader.handleError(A.errorCode,A.details,A.severity),X||E.loader.Mw()}},k)}; gsl=function(E,e){if(e.Yb&&e.state>=2&&e.state!==3){var l=e.xhr.getResponseHeader("X-Response-Itag");if(l){E.logger.debug(function(){return"Applying streamer-selected format "+l}); var k=Vzl(E.Z,l),H=e.info.Z;H&&(H-=k.vv(),k.Z=!0,e.info.H5[0].T.Z=!1,Io7(e,k.hU(H)),B0(E.loader,E.videoTrack,k),f2X(E.videoTrack,k),E.loader.tP(k.info.video.quality),(H=e.T9())&&k.info.lastModified&&k.info.lastModified!==+H&&Rq(E.videoTrack,e))}else e.Yb=!1}}; KF8=function(E,e){var l=e.info.H5[0].T,k=e.tB();if(mT(l.XS.T)){var H=g.c1(e.K0(),3);E.loader.wH("dldbrerr",{em:H||"none"})}H=e.info.H5[0].A0;var O=sr(E.T,e.info.H5[0].S,H);k==="net.badstatus"&&(E.J+=1);if(e.canRetry()&&oz(E.loader)){if(!(e.info.XS.Z>=E.policy.Im&&E.G&&e.info.isDecorated()&&k==="net.badstatus"&&E.G.kd(O,H))){H=(l.info.video&&l.XS.Z>1||e.Uc===410||e.Uc===500||e.Uc===503)&&!(HP(E.Z.W).size>0)&&!mT(l.XS.T);O=e.Jl();var X=l.info.video?E.videoTrack:E.audioTrack;H&&(O.stun="1");E.loader.handleError(k, O);E.U7()||(H&&(E.logger.debug(function(){return"Stunning format "+l.info.id}),pn(E.Z,l)),Rq(X,e),E.loader.iq())}}else X=1,E.G&&e.info.isDecorated()&&k==="net.badstatus"&&E.G.kd(O,H)&&(X=0),E.W5.isLive&&e.tB()==="net.badstatus"&&E.J<=E.policy.UE*2?(P3v(E.W5),E.W5.Af||E.W5.isPremiere?Xz(E.loader,0,{AN:"badStatusWorkaround"}):E.W5.S?Xz(E.loader,E.W5.Qd,{AN:"badStatusWorkaround", w_:!0}):wA(E.loader)):E.loader.handleError(k,e.Jl(),X)}; QZ=function(E,e){if(E.policy.useUmp&&e.U7())return!1;try{var l=e.info.H5[0].T,k=l.info.video?E.videoTrack:E.audioTrack;if(E.W5.isManifestless&&k){E.J=0;k.j&&(e.U7(),e.isComplete()||e.Uw(),k.j=!1);e.aE()&&E.loader.j0.CI(1,e.aE());var H=e.xa(),O=e.Q8();nx(E.W5,H,O)}if(e.info.TY()&&!XK(e.info))for(var X=g.T(e.bH()),A=X.next();!A.done;A=X.next())dAW(k,A.value);for(E.loader.getCurrentTime();k.Z.length&&k.Z[0].state===4;){var C=k.Z.shift();zVW(k,C);k.J0=C.Sd()}k.Z.length&&zVW(k,k.Z[0]);var p=!!uI(k);p&& e instanceof tL&&(l.info.A2()?gzy(E.timing):mN8(E.timing));return p}catch(x){e=e.Jl();e.origin="hrhs";a:{E=E.loader;l=x;if(l instanceof Error){e.msg||(e.msg=""+l.message);e.name||(e.name=""+l.name);if(l instanceof g.PK&&l.args)for(k=g.T(Object.entries(l.args)),H=k.next();!H.done;H=k.next())O=g.T(H.value),H=O.next().value,O=O.next().value,e["arg"+H]=""+O;g.UJ(l);if(l.level==="WARNING"){E.I4.zY(e);break a}}E.handleError("fmt.unplayable",e,1)}return!1}}; ns7=function(E){var e=E.videoTrack.T.index;E.Wu=new PgX({pM:E.policy.pM,Gx:E.policy.j.Gx,xg:e.jT(),Oz:function(){return e.Oz()}, XR:function(){return e.XR()}})}; pw=function(E,e,l,k){if(!(l.Sv()||l.i$()||l.Z||!Zo(l.XS,E.policy,E.S,E.loader.Xh())||l.info.DM==="f"||E.policy.T)){if(k){k=E.W;var H=l.info;k=zeX(k,H.video?k.policy.iL:k.policy.Dp,H.Kg)}else k=0;k=l.hU(k);E=A3(E,k);XK(k)&&Ln(e,E);l.Z=!0}}; DL=function(E,e,l,k,H,O,X,A){g.a.call(this);var C=this;this.loader=E;this.CY=e;this.videoTrack=l;this.audioTrack=k;this.W5=H;this.V=O;this.isAudioOnly=X;this.N=A;this.G=B$;this.SR=!1;this.logger=new g.da("sabr");this.j=this.kt=this.pg=!1;this.videoInfos=this.J=this.V.videoInfos;this.Z=this.Qd=this.V.T;this.T=new lf(e,O,function(p,x){C.loader.wH(p,x)}); this.isAudioOnly&&RVl(this,this.W5.T["0"])}; sUl=function(E,e){var l=[];e=g.T(e);for(var k=e.next();!k.done;k=e.next())l.push(g.vR(k.value,E.W5.sK));return l}; RVl=function(E,e,l){e!==E.S&&(E.S&&(E.SR=!0),E.S=e,E.gL(e,E.videoTrack,l))}; evS=function(E,e){E.logger.debug("setConstraint: "+Fv(e));fI(E.CY)&&(E.kt=e.reason==="m"||e.reason==="l"?!0:!1);e.reason==="m"?e.isLocked()&&tLX(E,e.T):qsp(E,e)?E97(E,e.G,e.T):E.videoInfos=E.J;E.G=e}; qsp=function(E,e){return E.CY.I8&&e.reason==="b"||E.CY.Po&&e.reason==="l"||E.CY.x8?!1:E.CY.T6?!0:e.reason==="l"||e.reason==="b"||e.reason==="o"}; lS7=function(E,e){return e.isLocked()&&E.T.G||E.G===void 0?!1:e.equals(E.G)}; kH8=function(E,e){var l,k=(l=E.S)==null?void 0:l.info.video.qualityOrdinal;return E.SR?!0:E.S?e!==k?!0:!E.T.G||E.CY.RF&&E.T.T===E.S.info.itag?!1:!0:!1}; tLX=function(E,e){var l=E.T.T;if(l){E.videoInfos=E.J;var k=g.Gd(E.videoInfos,function(H){return H.id===l}); k&&k.video.qualityOrdinal===e?E.videoInfos=[k]:(k=E.videoInfos.map(function(H){return H.id}),E.loader.wH("sabrpf",{pfid:""+l, vfids:""+k.join(".")}),E97(E,e,e),OR(E.T,""))}else E97(E,e,e)}; E97=function(E,e,l){E.videoInfos=E.J;E.videoInfos=g.JE(E.videoInfos,function(k){return k.video.qualityOrdinal>=e&&k.video.qualityOrdinal<=l})}; HTe=function(E,e,l){if(E.N){var k=g.JE(E.Z,function(H){return H.id===E.N}); return bV(k,l).includes(e)}k=g.JE(E.Z,function(H){var O;return!((O=H.gC)==null||!O.isDefault)}); return k.length>0?bV(k,l).includes(e):bV(E.Z,l).includes(e)}; bV=function(E,e){return E.map(function(l){return Yz(g.vR(l,e))})}; OT7=function(E){var e;if((e=E.G)==null?0:e.isLocked())return E.videoInfos;var l=HP(E.T);e=g.JE(E.videoInfos,function(k){return k.Kg>E.CY.Kg?!1:!l.has(k.id)}); WxW(E.T)&&(e=g.JE(e,function(k){return k.video.width<=854&&k.video.height<=480})); return e}; uG7=function(E,e,l){var k=E.W5,H=E.I4.getVideoData(),O=E.P8,X=$NX({F6:H.Y(),I4:E.I4,xH:E.xH,CY:E.CY,HX:E.HX,Sm:E.Sm,PB:E.PB,pB:E.pB,hL:E.hL,isPrefetch:E.isPrefetch,iJ:E.iJ,sabrLicenseConstraint:H.sabrLicenseConstraint,zV:E.zV,zE:E.zE,cI:E.cI,AZ:E.AZ,hh:!!O,authorizedFormats:H.authorizedFormats}),A=VD(H,E.vl,E.nextRequestPolicy,E.Rv,E.XO,E.hj,E.q1);l&&e&&(l=A.HE?A.HE.map(function(Q){return Q.type}):[],e("sabr",{stmctxt:l.join("_"), unsntctxt:A.Hi?A.Hi.join("_"):""}));e=E.M9;l=E.N9;if(l===void 0&&e===void 0){var C;l=Xk7(k.sK,(C=E.Ti)==null?void 0:C.video);var p;e=Xk7(k.sK,(p=E.Ti)==null?void 0:p.audio)}if(H.fI)var x=H.fI;H={R5:X,eM:E.eM,M9:e,N9:l,P8:O,videoPlaybackUstreamerConfig:x,Gk:A};E.jG&&(H.jG=E.jG);H.Iz=E.Iz;H.TB=k.R4;return H}; Xk7=function(E,e){return e?[g.vR(e.info,E)]:[]}; v0=function(E,e,l){var k=this;this.requestType=E;this.XS=e;this.TX=l;this.G=null;this.p5={zEz:function(){var H;return(H=k.data)==null?void 0:H.isPrefetch}, XO:function(){var H;return(H=k.data)==null?void 0:H.XO}}}; MfW=function(E,e,l){e=MN(E.XS,A5X(E,e,l),e);E.cg()&&e.set("probe","1");return e}; A5X=function(E,e,l){E.Nd===void 0&&(E.Nd=E.XS.Nd(e,l));return E.Nd}; CY7=function(E){var e,l;return((e=E.T)==null?void 0:(l=e.R5)==null?void 0:l.vt)||0}; pkW=function(E){var e,l;return!!((e=E.T)==null?0:(l=e.R5)==null?0:l.zV)}; xq7=function(E){var e={},l=[],k=[];if(!E.data)return e;for(var H=0;H0;C--)l.push(A)}l.length!==X?e.error=!0:(O=l.slice(-O),l.length=H,SVv(e,l,O));break;case 1:SVv(e,Nn,y5S);break;case 0:r5X(e, e.T&7);l=gA(e,16);H=gA(e,16);(l^H)!==65535&&(e.error=!0);e.output.set(e.data.subarray(e.G,e.G+l),e.Z);e.G+=l;e.Z+=l;break;default:e.error=!0}E.Z>E.output.length&&(E.output=new Uint8Array(E.Z*2),E.Z=0,E.G=0,E.S=!1,E.T=0,E.register=0)}E.output.length!==E.Z&&(E.output=E.output.subarray(0,E.Z));return E.error?new Uint8Array(0):E.output}; SVv=function(E,e,l){e=fSv(e);l=fSv(l);for(var k=E.data,H=E.output,O=E.Z,X=E.register,A=E.T,C=E.G;;){if(A<15){if(C>k.length){E.error=!0;break}X|=(k[C+1]<<8)+k[C]<>=7;p<0;)p=e[(X&1)-p],X>>=1;else X>>=p&15;A-=p&15;p>>=4;if(p<256)H[O++]=p;else if(E.register=X,E.T=A,E.G=C,p>256){X=Yy[p];X+=gA(E,ZL[p]);C=VC0(E,l);A=mj[C];A+=gA(E,jQ7[C]);if(bT9&&Xl.length&&(E.error=!0);E.register|=(l[k+1]<<8)+l[k]<=0)return r5X(E,l&15),l>>4;for(r5X(E,7);l<0;)l=e[gA(E,1)-l];return l>>4}; gA=function(E,e){for(;E.T=E.data.length)return E.error=!0,0;E.register|=E.data[E.G++]<>=e;E.T-=e;return l}; r5X=function(E,e){E.T-=e;E.register>>=e}; fSv=function(E){for(var e=[],l=g.T(E),k=l.next();!k.done;k=l.next())k=k.value,e[k]||(e[k]=0),e[k]++;var H=e[0]=0;l=[];var O=0;k=0;for(var X=1;X7&&(O+=e[X]);for(H=1;H>C&1;A=O<<4|X;if(X<=7)for(C=1<<7-X;C--;)k[C<>=7;X--;){k[C]||(k[C]=-e,e+=2);var p=H&1;H>>=1;C=p-k[C]}k[C]=A}}return k}; PYp=function(E){var e,l,k,H,O,X,A,C,p;return g.D(function(x){switch(x.G){case 1:if(!v90)throw Error("DecompressionStream is not supported");e=jL.wE();l=new DecompressionStream("gzip");k=l.writable.getWriter();k.write(E);k.close();H=l.readable.getReader();O=new eV([]);case 2:return g.S(x,H.read(),5);case 5:X=x.T;A=X.value;if(C=X.done){x.xt(4);break}O.append(A);x.xt(2);break;case 4:return p=X6(O),jL.XW("gznb",e,Math.ceil(p.byteLength/16)),x.return(p)}})}; aSy=function(E){D1.call(this,"onesie");this.Uz=E;this.T={};this.S=!0;this.Z=null;this.queue=new c5e(this);this.W={}}; LDe=function(E){var e=E.queue;e.T.length&&e.T[0].isEncrypted&&!e.G&&(e.T.length=0);e=g.T(Object.keys(E.T));for(var l=e.next();!l.done;l=e.next()){l=l.value;var k=E.T[l];if(!k.d7){var H=E.queue;H.T.push({videoId:k.videoId,formatId:l,isEncrypted:!1});H.G||Mn(H)}}}; hv8=function(E,e){var l=e.totalLength,k=!1;switch(E.Z){case 0:E.fQ(e,E.S).then(function(H){var O=E.Uz;O.Rz("oprr");O.playerResponse=H;O.qz||(O.t3=!1);Kw(O)},function(H){E.Uz.fail(H)}); break;case 2:E.Rz("ormk");e=X6(e);E.queue.decrypt(e);break;default:k=!0}E.Uz.Fs&&E.Uz.wH("ombup","id.11;pt."+E.Z+";len."+l+(k?";ignored.1":""));E.Z=null}; MC7=function(E,e){var l,k,H,O,X;return g.D(function(A){switch(A.G){case 1:E.Uz.Rz("oprgz_s");if(!v90){A.xt(2);break}g.U9(A,3);return g.S(A,PYp(e),5);case 5:return l=A.T,E.Uz.Rz("oprgz_n"),A.return(l);case 3:k=g.FW(A),E.Uz.wH("gzerr",{impl:"native",err:""+k});case 2:if(H=E.Uz.Y().rB)try{var C=jL.wE(),p=H.EA(e),x=H,Q=p!=null?p:e,W=Q.byteOffset,B=Q.byteLength,w=x.exports.getInflatedSize(W,B);if(w===0)throw Error("wasm_gz: bad input");var U=x.malloc(w),c=x.exports.inflateGzip(W,B,U);if(c)throw x.free(U), Error("wasm_gz: fail"+c);var V=new Uint8Array(x.exports.memory.buffer,U,w);p&&H.free(p.byteOffset);var F=H.Lf(V);jL.XW("gzwb",C,Math.ceil(F.byteLength/16));O=F;E.Uz.Rz("oprgz_w");return A.return(O)}catch(r){E.Uz.wH("gzerr",{impl:"wasm",err:""+r})}C=jL.wE();p=g.DqZ(new g.IS0(e));jL.XW("gzjb",C,Math.ceil(p.byteLength/16));X=p;E.Uz.Rz("oprgz_p");return A.return(X)}})}; N3Z=function(E){return new Promise(function(e){setTimeout(e,E)})}; ZTp=function(E,e){var l=E.Y();l=E.w2&&l.L("html5_onesie_preload_use_content_owner");var k=E.d0,H=d_(e.dH.experiments,"debug_bandaid_hostname");if(H)e=az(e,H);else if((l===void 0?0:l)&&(k==null?0:k.url)&&!e.G){var O=Yn(new g.N3(k.url));e=az(e,O)}else e=(O=e.T.get(0))==null?void 0:O.location.clone();if(e&&E.videoId){O=fJ(E.videoId);E=[];if(O)for(O=g.T(O),l=O.next();!l.done;l=O.next())E.push(l.value.toString(16).padStart(2,"0"));e.set("id",E.join(""));return e}}; YVl=function(E,e,l){l=l===void 0?0:l;var k,H;return g.D(function(O){if(O.G==1)return k=[],k.push(e.load()),l>0&&k.push(N3Z(l)),g.S(O,Promise.race(k),2);H=ZTp(E,e);return O.return(H)})}; mq0=function(E,e,l,k){k=k===void 0?!1:k;E.set("cpn",e.clientPlaybackNonce);E.set("opr","1");var H=e.Y();E.set("por","1");OW()||E.set("onem","1");e.startSeconds>0&&E.set("osts",""+e.startSeconds);k||(H.L("html5_onesie_disable_partial_segments")&&E.set("oses","1"),e=H.L("html5_gapless_onesie_no_media_bytes")&&yJ(e)&&e.w2,l&&!e?(e=l.audio,E.set("pvi",l.video.join(",")),H.L("html5_onesie_disable_audio_bytes")||E.set("pai",e.join(",")),z8||E.set("osh","1")):(E.set("oad","0"),E.set("ovd","0"),E.set("oaad", "0"),E.set("oavd","0")))}; g97=function(E,e,l,k,H){H=H===void 0?!1:H;var O="https://youtubei.googleapis.com/youtubei/"+e.Py.innertubeApiVersion+"/player",X=[{name:"Content-Type",value:"application/json"}];k&&X.push({name:"Authorization",value:"Bearer "+k});X.push({name:"User-Agent",value:g.vj()});g.LF("EOM_VISITOR_DATA")?X.push({name:"X-Goog-EOM-Visitor-Id",value:g.LF("EOM_VISITOR_DATA")}):(l=l.visitorData||g.LF("VISITOR_DATA"))&&X.push({name:"X-Goog-Visitor-Id",value:l});(l=g.LF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&X.push({name:"X-YouTube-Lava-Device-Context", value:l});(e=d_(e.experiments,"debug_sherlog_username"))&&X.push({name:"X-Youtube-Sherlog-Username",value:e});E=o_(JSON.stringify(E));return{url:O,bX:X,postBody:E,EUn:H,Vq:H}}; KDv=function(E,e,l,k,H,O,X){var A=E.TH,C=E.R_;E=E.Mvn;var p=A!==void 0&&C!==void 0,x=k.getVideoData(),Q,W=e.T.encryptedClientKey;e=p?e.iv:void 0;p=Ys(l.schedule,!0);H=H||!!OW()&&p>1572864;return{innertubeRequest:{ggM:E,Z5:A,R_:C,encryptedClientKey:W,iv:e,b03:!0,mB:!0,DP:"DecompressionStream"in window||!H,Egz:l.experiments.P5("html5_use_jsonformatter_to_parse_player_response")},R5:$NX({F6:l,I4:k,xH:x.startSeconds*1E3}),onesieUstreamerConfig:O,pF:X,Gk:VD(x),reloadPlaybackParams:(Q=x.wD)==null?void 0: Q.reloadPlaybackParams}}; n99=function(E,e,l,k,H,O){var X=g.YD(E,A9),A;if(!E.Vq)if(A=o9X(e,X)){var C=A.xX;A=A.signature}else A=C=e.encrypt(X),(0,g.dE)(),A=CP9(new A$W(e.T.Z),A,e.iv);return KDv(C&&A?{TH:C,R_:A}:{Mvn:X},e,l,k,!!E.Vq,H,O)}; Rve=function(E,e,l,k,H,O){var X,A,C;return g.D(function(p){if(p.G==1)return X=g.YD(E,A9),g.S(p,B3X(e,X),2);if(p.G!=3)return A=p.T,g.S(p,wkS(e,A),3);C=p.T;return p.return(KDv({TH:A,R_:C},e,l,k,!!E.Vq,H,O))})}; sQy=function(E,e,l,k,H,O){var X=g.YD(E,A9);if(X=o9X(e,X))return KDv({TH:X.xX,R_:X.signature},e,l,k,!!E.Vq,H,O)}; Rz=function(E,e){g.a.call(this);var l=this;this.I4=E;this.playerRequest=e;this.logger=new g.da("onesie");this.xhr=null;this.state=1;this.lI=new xZ;this.pn=!1;this.playerResponse="";this.gf=new Bw(this);this.AY=new aSy(this);this.hC="";this.OF=this.Ug=!1;this.OI="";this.enableCompression=this.qz=this.GB=!1;this.XG=[];this.OP=-1;this.Tj=0;this.dH=this.I4.Y();this.videoData=this.I4.getVideoData();this.Fs=this.dH.f7();this.Fd=this.dH.iN;this.VZ=new QQ7(this.Fd.T);this.qW=this.dH.L("html5_onesie_check_timeout"); this.cZ=new g.Nx(this.ix,500,this);this.Ek=new g.Nx(this.Jn,1E4,this);this.Eh=new g.Nx(function(){if(!l.isComplete()){var k=nw(l);l.fail(new g.pL("net.timeout",k))}},1E3); this.J6=new g.Nx(this.mD6,2E3,this);this.H0=this.I4.e6();this.t3=this.L("html5_onesie_wait_for_media_availability");g.L(this.videoData,this);g.L(this,this.cZ);g.L(this,this.Ek);g.L(this,this.J6);E=T8();z8&&E&&(this.VQ=new Map);this.TD=new Map;this.B9=new Map;this.kO=new Map;this.Ul=new Map}; h3=function(E,e){var l;return(l=E.VQ)==null?void 0:l.get(e)}; qVe=function(E,e,l){var k;return g.D(function(H){if(H.G==1)return E.Rz("oprd_s"),tCW(E)?g.S(H,zv0(E.VZ,e,l),3):(k=E.VZ.decrypt(e,l),H.xt(2));H.G!=2&&(k=H.T);E.Rz("oprd_c");return H.return(k)})}; E7Z=function(E){return E.L("html5_onesie_host_probing")||E.Fs?z8:!1}; Kw=function(E){if(!E.playerResponse)return!1;if(E.GB)return!0;var e=E.videoData.L("html5_onesie_audio_only_playback")&&jv(E.videoData);if(E.VQ&&E.t3){if(!E.VQ.has(E.hC))return!1;var l=E.VQ.get(E.hC),k;if(k=l){k=!1;for(var H=g.T(l.jJ.keys()),O=H.next();!O.done;O=H.next())if(O=l.jJ.get(O.value))for(var X=g.T(O.lM),A=X.next();!A.done;A=X.next())A.value.mX>0&&(O.A2?k=!0:e=!0);k=!(e&&k)}if(k)return!1}E.Rz("ofr");E.lI.resolve(E.playerResponse);if(!E.qW){var C;(C=E.Eh)==null||C.start();E.Ek.start()}return E.GB= !0}; l78=function(E){if(E.VQ&&!E.L("html5_onesie_media_capabilities")){E.Rz("ogsf_s");var e=ws7(E.I4.getVideoData(),function(k,H){E.wH(k,H)}),l=eBS(E.I4); e.video=uB7(l,e.video);E.Rz("ogsf_c");if(e.video.length)return e;E.wH("ombspf","l."+l.G+";u."+l.T+";o."+l.Z+";r."+l.reason)}}; tCW=function(E,e){return E.L("html5_onesie_sync_request_encryption")||(e==null?0:e.Vq)||g.UV(E.dH)&&E.L("html5_embed_onesie_use_sync_encryption")?!1:!!OW()}; nw=function(E){if(!E.Vf)return{};var e=E.Vf.DY(),l;e.d=(l=E.Vf.h0)==null?void 0:l.rG();e.shost=E.Ve;e.ty="o";return e}; kg7=function(E,e){var l,k;(k=(E=(l=E.VQ)==null?void 0:l.get(e))==null)||(e=E.Z?!1:E.Z=!0,k=!e);return!k}; H9Z=function(E,e,l,k,H,O,X,A,C,p,x){g.a.call(this);var Q=this;this.I4=E;this.loader=e;this.policy=l;this.audioTrack=k;this.videoTrack=H;this.W5=O;this.Zx=X;this.b3=A;this.Z=C;this.timing=p;this.V=x;this.T=[];this.W={};this.jR=this.gH=!1;this.S=this.J0=this.pg=this.R4=this.hL=0;this.N=null;this.SR={Iz:[],eM:[]};this.Qd={Iz:[],eM:[]};this.j=null;this.J=[];this.p5={QeD:function(){return Q.T}, CI5:function(){return Q.W}, Rr0:function(){Q.T.length=0}, EYM:function(){return Q.videoData.ND}, Kg3:function(){return Q.pg}, vMn:function(W){Q.pg=W}, ITg:function(W){Q.S=W}, t1:function(W){Q.j=W}, bU:function(W){Q.J=W}}; this.videoData=this.I4.getVideoData();this.policy.w2&&(this.fg=new OB(this.loader,this.policy,this.Zx),g.L(this,this.fg))}; u2e=function(E,e){e=e===void 0?!1:e;if(O9X(E)){E.policy.J&&E.loader.wH("sabrcrq",{create:1});var l=new v0(0,E.W5.N,E);E.policy.W7>0&&E.S++;e=X$0(E,l,e);E.T.push(e);var k;(k=E.fg)==null||a20(k,E.W5.N)}}; p$p=function(E,e){var l=AGW(E);if(E.policy.wG){var k=E.SR;var H=E.Qd}else k=sB(E,E.audioTrack),H=sB(E,E.videoTrack);var O=[].concat(g.Be(k.Iz),g.Be(H.Iz));t3(E)&&O.push.apply(O,g.Be(E.J));var X=[].concat(g.Be(k.eM),g.Be(H.eM)),A=E.loader.nu();if(E.policy.YZ&&!E.videoData.isLivePlayback){var C=E.videoData.lengthSeconds*1E3;l>=C&&E.loader.wH("invalidSabrCmt",{cmt:l,vd:C})}var p,x;C=E.I4;var Q=E.W5,W=E.G,B=E.videoData.ND,w=E.policy,U=E.loader.oO,c=Ysy(E.loader)*1E3,V=(p=E.h0)==null?void 0:p.PB;p=(x= E.h0)==null?void 0:x.pB;var F;x=Number((F=E.Z.S)==null?void 0:F.info.itag)||0;var r;F=Number((r=E.Z.W)==null?void 0:r.info.itag)||0;e={I4:C,W5:Q,Iz:O,eM:X,xH:l,nextRequestPolicy:W,Rv:B,CY:w,HX:U,Sm:c,PB:V,pB:p,hL:E.hL,isPrefetch:e||E.loader.isSuspended,Ba:x,eD:F,vl:A,q1:E.I4.bA()};l=E.loader.AQ();O=fJ(l);l&&(e.XO=O);if(l=E.I4.Qu())e.zV=l*1E3;var P;l=E.Z;O=l.pg;if(((P=l.CY)==null?0:fI(P))&&!O)for(P=g.T(l.Z),X=P.next();!X.done;X=P.next())if(X.value.gC){O=!0;break}P=fI(l.CY)&&!O?[]:sUl(l,l.Z);e.M9=P; P=E.Z;fI(P.CY)&&!P.kt?P=[]:(l=OT7(P),l.length===0&&(l=P.J),P=sUl(P,l));e.N9=P;e.P8=t3(E)?[E.j]:void 0;E.policy.uo&&(e.cI=C7y(E.loader,E.audioTrack),e.AZ=C7y(E.loader,E.videoTrack));if(E.policy.G){P=E.loader.getCurrentTime();k=qn(E,k.Iz,P);H=qn(E,H.Iz,P);H=Math.min(k,H);t3(E)&&(k=qn(E,E.J,P),E.I4.f7()&&k0&&E.T[0].hv()&&(e.hj=E.T[0].kc());return e}; AGW=function(E){var e,l=E.policy.W&&((e=E.loader)==null?void 0:e.V_());e=E.loader.getCurrentTime()||0;e=xty(E,e);var k=E.loader.eE()||0;e+=k;k=sE(E.videoData)||g.RR(E.videoData);var H=0;l?(k&&(H=Number.MAX_SAFE_INTEGER),E.videoData.SR&&(H=Math.ceil(E.videoData.Qd*1E3))):H=Math.ceil(e*1E3);return Math.min(Number.MAX_SAFE_INTEGER,H)}; t3=function(E){return E.policy.dO&&!!E.j}; xty=function(E,e){if(E.loader.isSeeking())return e;var l=E.I4.Ps();if(!l)return e;l=l.PG();if(l.length===0||gB(l,e))return e;if(!EB(E.videoTrack,e)&&!EB(E.audioTrack,e))return E.loader.wH("sundrn",{b:0,lt:e}),e;for(var k=e,H=Infinity,O=0;Oe)){var X=e-l.end(O);X=20)?(E.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),e):k}; qn=function(E,e,l){E=E.loader.eE()||0;return EY(e,(l+E)*1E3)/1E3+l}; O9X=function(E){if(E.policy.W7>0){var e=Math.floor((0,g.dE)()/1E4);if(e===E.J0){if(E.S>=E.policy.W7){if(E.S===E.policy.W7){var l={reason:"toomanyrequests"};l.limit=E.S;E.loader.handleError("player.exception",l);E.S+=1}return!1}}else E.J0=e,E.S=0}if(E.loader.isSuspended&&E.loader.oJ)return!1;if(E.kt&&(0,g.dE)()0&&(!E.policy.V||E.T.length!==1||!E.T[0].hv()))return!1;var k;if(!(e=(k=E.W5.N)==null||!Zo(k,E.policy,E.W,E.loader.Xh())||sR(E.audioTrack)&&sR(E.videoTrack))){if(k= E.policy.G){k=!1;if(E.V.G===2)k=!0;else if(E.V.G===3){AGW(E);E.loader.eE();var H=Mi(E.audioTrack,E.loader.isSeeking()).Iz;e=Mi(E.videoTrack,E.loader.isSeeking()).Iz;var O=E.loader.getCurrentTime()||0;H=qn(E,H,O);e=qn(E,e,O);e=Math.min(H,e);O=E.V;e>=O.W?(O.wH("sdai",{haltrq:e,est:O.W}),e=!0):e=!1;e&&(k=!0)}k&&E.policy.J&&E.loader.wH("sabrcrq",{waitad:1})}e=k}if(e)return!1;E.policy.wG&&(E.SR=sB(E,E.audioTrack),E.Qd=sB(E,E.videoTrack));if(!E.G)return E.policy.J&&E.loader.wH("sabrcrq",{nopolicy:1}),!0; if(E.I4.Qu())return E.policy.J&&E.loader.wH("sabrcrq",{utc:1}),!0;if(E.Z.j)return E.policy.J&&E.loader.wH("sabrcrq",{audio:1}),!0;if(!E.G.targetAudioReadaheadMs||!E.G.targetVideoReadaheadMs)return E.policy.J&&E.loader.wH("sabrcrq",{noreadahead:1}),!0;if(E.policy.W&&E.loader.V_())return E.policy.J&&E.loader.wH("sabrcrq",{seekToHead:1}),!0;k=Math.min(lI(E.loader,E.audioTrack)*1E3,E.G.targetAudioReadaheadMs);e=Math.min(lI(E.loader,E.videoTrack)*1E3,E.G.targetVideoReadaheadMs);var X=Math.min(k,e);O=go(E.audioTrack, !0)*1E3;H=go(E.videoTrack,!0)*1E3;var A=E.I4.getCurrentTime()*1E3;if(E.policy.wG){var C=EY(E.SR.Iz,A);var p=EY(E.Qd.Iz,A)}else C=O,p=H;var x=Ce||k>=0&&H.kE>k+1)break;l=Math.max(l,H.startTimeMs+H.durationMs);k=Math.max(k,H.Yv)}return Math.max(0,l-e)}; X$0=function(E,e,l){var k={Zx:E.Zx,lz:function(C,p){E.I4.c8(C,p)}, TY:E.policy.Gd,Ud:E.policy.Z};E.Zx.G.J&&(k.Lz=(E.videoTrack.T.info.Kg||0)+(E.audioTrack.T.info.Kg||0));E.policy.vy&&(k.xg=E.audioTrack.T.index.jT(),k.TY=!1);var H=A5X(e,E.policy,E.W)?2:1;H!==E.pg&&(E.pg=H,WBX(E));l=p$p(E,l);if(E.policy.V&&E.policy.Z&&l.Rv){for(var O=H="",X=g.T(l.Rv),A=X.next();!A.done;A=X.next())A=A.value,E.videoData.sabrContextUpdates.has(A)||E.policy.V&&l.hj&&l.hj.type===A?H+="_"+A:O+="_"+A;E.loader.wH("sabrbldrqs",{ctxts:H,misctxts:O})}!e.setData(l,E.policy,E.W)&&E.policy.V&&E.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);k=new Z1(E.policy,e,E.W5,E.W,E,k,E.loader.e6());YY(E.timing);E.policy.J&&E.loader.wH("sabrcrq",{rn:k.S7(),probe:e.cg()});return k}; ld=function(E,e){if(e.U7()||E.U7())E.policy.wD||(E.policy.W?ec(E.loader):E.loader.iq());else{if(E.policy.Z&&e.isComplete()&&e instanceof Z1){var l=E.loader,k=l.wH,H,O,X=Object.assign(e.Vf.DY(),{rst:e.state,strm:e.xhr.aI(),d:(H=e.Vf.h0)==null?void 0:H.rG(),cncl:e.xhr&&e.uN.S?1:0,rqb:e.nK,cwt:e.VD,swt:(O=e.vW)==null?void 0:O.r3});H=Object.assign(xq7(e.info),X);k.call(l,"rqs",H)}if(e.isComplete()&&e.cg()&&e instanceof Z1)E.policy.hN?e.BO()?(e.dispose(),E.T.length===0?E.loader.iq():(E=E.T[0],E instanceof Z1&&E.GF()&&E.MB())):e.lH()&&E.loader.handleError(e.tB(),e.Jl()):(e.dispose(),E.loader.iq());else{if(e.e3())e instanceof Z1&&Ew7(E.timing,e),WBX(E),BuX(E);else if(e.lH())l=E.I4.Qu(),e instanceof Z1&&pkW(e.info)&&l&&E.loader.H3(l),e instanceof Rz?E.T.pop():(l=1,e.canRetry()&&oz(E.loader)&&(o7W(E,e),l=0),E.loader.handleError(e.tB(),e.Jl(),l));else{if(E.loader.isSuspended&&!e.isComplete())return;BuX(E)}e.U7()||e instanceof Rz||(e.isComplete()?l=ML7(e,E.policy,E.W):(l=hVZ(e,E.policy,E.W),l===1&&(E.gH= !0)),l!==0&&(k=new v0(1,e.info.XS),k.Nd=l===2,X$0(E,k)));E.policy.C7&&!e.isComplete()?W0(E.loader):E.loader.iq()}}}; BuX=function(E){for(;E.T.length&&E.T[0].TA(E.jH());){var e=E.T.shift();w$7(E,e)}E.T.length&&w$7(E,E.T[0])}; w$7=function(E,e){e instanceof Z1&&(E.c5=e);var l=new Set(e.m1(E.jH()));l=g.T(l);for(var k=l.next();!k.done;k=l.next()){var H=k.value;if(!(k=!(e instanceof Rz))){k=E.Z;var O=k.W5.sK,X=bV(k.videoInfos,O);O=HTe(k,H,O);var A=X.includes(H);!k.CY.x0||O||A||k.loader.wH("sabrcpf",{fid:""+H,vfids:""+X.join("."),said:k.N||""});k=O||X.includes(H)}if(k&&(k=e.eC(H,E.jH()),X=E.policy.dO&&h4(k[0].T.info.mimeType),e.Uw(H,E.jH())))for(H=e.bH(H,E.jH()),H=g.T(H),O=H.next();!O.done;O=H.next())if(O=O.value,E.policy.Z&& e instanceof Rz&&E.loader.wH("omblss",{s:O.info.T_()}),X)A=E.timing,A.pg||(A.pg=(0,g.dE)(),g.hp("fcb_r",A.pg,A.T)),A=E,A.videoData.sK()&&A.j&&Yz(A.j)===Yz(g.vR(O.info.T.info,A.W5.sK))&&A.I4.publish("sabrCaptionsDataLoaded",O,A.bU.bind(A));else{A=O.info.T.info.A2();var C=O.info.T;if(A){var p=void 0;var x=E.Z,Q=(p=e.m$(E.jH()))==null?void 0:p.token;x.j&&C!==x.W?p=!0:(x.j=!1,C!==x.W&&(x.W=C,x.gL(C,x.audioTrack,Q)),p=!1);if(p)continue}else p=void 0,RVl(E.Z,C,(p=e.m$(E.jH()))==null?void 0:p.token);p=A? E.audioTrack:E.videoTrack;e instanceof Rz&&(p.j=!1,e instanceof Rz&&(A?gzy(E.timing):mN8(E.timing)));try{hF(p,k,O)}catch(W){O=Qp(W),E.loader.handleError(O.errorCode,O.details,O.severity),p.Mw(),E.Vm(!1,"pushSlice"),ec(E.loader)}}}}; o7W=function(E,e){E.policy.V?E.T.splice(E.T.indexOf(e)).forEach(function(l){l.dispose()}):(E.T.pop(),e==null||e.dispose())}; zBS=function(E,e,l){for(var k=[],H=0;H0)for(var e=g.T(E.videoData.sabrContextUpdates.keys()),l=e.next();!l.done;l=e.next()){l=l.value;var k=void 0;((k=E.videoData.sabrContextUpdates.get(l))==null?0:k.sendByDefault)&&E.videoData.ND.add(l)}if(E.policy.V&&E.T.length)for(e=g.T(E.T),l=e.next();!l.done;l=e.next())(l=l.value.kc())&&l.type&&l.sendByDefault&&E.videoData.ND.add(l.type)}; dtv=function(E){E.policy.iN&&(E.h0=void 0,E.hL=0)}; Ggy=function(E,e){if(e.lH()||e.U7()){var l=E.loader,k=l.wH,H=e.state;E=E.jH();var O,X;if((e=(O=e.VQ)==null?void 0:O.get(E))==null)e=void 0;else{O=0;E=e.m1();for(var A=0;A=e.mediaTime&&g.m(E.I4.getPlayerState(),8)?(e.resolve([e.mediaTime,e.id]),E.T.delete(e.id)):(e.delay.dispose(),e.delay=new g.Nx(function(){Uty(E,e)},(e.mediaTime-l)*1E3/E.I4.getPlaybackRate()),e.delay.start())}; jRe=function(E,e,l,k){var H=this;this.Z=E;this.cpn=e;this.I4=l;this.T=k;this.G=new Map;this.W=new Map;this.j=this.N=NaN;this.J=!1;this.Yz="";this.isSeeking=!1;this.V=0;this.S=new i9X(l);this.Gh=l.Gh;this.I4.subscribe("SEEK_TO",function(){H.Dh()}); this.I4.subscribe("SEEK_COMPLETE",function(){yGZ(H)})}; FBp=function(E,e){if(!E.isSeeking&&E.V!==e&&!isNaN(E.N)){E.V=e;var l=E.J?E.j:E.Z.GS(e);(l!==E.j||E.J)&&I70(E,l,e)}}; I70=function(E,e,l){var k=E.G.get(e),H=E.Z.getStartTime(e),O=E.Z.getDuration(e);E.J=!1;E.j=e;var X=H,A;((A=k==null?void 0:k.T)!=null?A:[E.cpn]).forEach(function(C,p){var x;p=(x=k==null?void 0:k.G[p])!=null?x:O;l>=X&&lH?rG0(E,O,E.G.get(O)):O===H&&rG0(E,O,E.G.get(O),k-E.Z.getStartTime(O))})}; f7X=function(E,e,l,k){e!==E.Yz&&(E.I4.wH("ssevt",{tag:E.T===0?"sstd-cr":E.T===1?"sstd-tm":E.T===2?"sstd-poll":E.T===3?"sstd-poll100":"sstd-unknown",ad:E.cpn!==e,cpn:e,st:l.toFixed(3),late:Math.round(E.isSeeking?0:(k-l)*1E3)}),E.Yz=e)}; DtZ=function(E){var e=g.T(E.split("."));E=e.next().value;e=e.next().value;return[Number(E),e]}; SE9=function(E,e,l,k){l=e+"."+l;E.W.has(e)?E.W.get(e).push(l):E.W.set(e,[l]);E.T===1&&JGX(E.S,k,l).then(function(H){var O=g.T(H);H=O.next().value;O=O.next().value;O=g.T(DtZ(O));O.next();O=O.next().value;f7X(E,O,H,$ty(E.S))}); E.T===0&&(E.Gh.g0("transitiondetector",l),e=(k+E.I4.eE())*1E3,E.Gh.qQ([new g.Mr(e,e+5E3,{id:l,namespace:"transitiondetector",priority:9})]))}; b90=function(E,e,l,k,H){this.loader=E;this.policy=e;this.schedule=l;this.YA=k;this.V=H;this.pg=NaN;this.G=this.j=this.S=null;this.T=this.W=this.J=this.startTimeSecs=NaN;this.Z=!1;this.N=NaN}; v7p=function(E,e,l,k,H,O){return e.a6&&e.je&&l===3?new b90(E,e,k,H,O):null}; P79=function(E,e){if(E.policy.hI){var l=e.info.Kg,k=Ys(E.schedule);e=e.index.jT();l=Math.max(1,k/l);E.N=Math.round(Math.max(((l-1)*e+E.policy.qM)/l,e-E.policy.T2)*1E3)}}; hBl=function(E,e){var l=Date.now()/1E3,k=l-E.startTimeSecs,H=l-E.J,O=H>=E.policy.F7,X=!1;if(O){var A=0;!isNaN(e)&&e>E.W&&(A=e-E.W,E.W=e);A/H=E.policy.T2&&!E.Z;if(!O&&!l&&a7S(E,e))return NaN;l&&(E.Z=!0);a:{k=X;l=(0,g.dE)()/1E3-(E.YA.NV()||0)-E.j.T-E.policy.qM;O=E.G.startTime;l=O+l;if(k){if(isNaN(e)){kK(E,NaN,"n",e);O=NaN;break a}k=e-E.policy.wf;k0&&(A.headers=C);O&&(A.onFinish=O);return Object.keys(A).length>1? A:null}; sRp=function(E,e,l,k,H,O,X,A){EN()&&l.token&&(E=sc(E,{ctt:l.token,cttype:l.lQ,mdx_environment:l.mdxEnvironment}));k.L("net_pings_low_priority")&&(e||(e={}),e.priority="low");O||A&&k.L("nwl_skip_retry")?(e==null?e={}:KBy(E,k.L("html5_assert_cpn_with_regex")),X?PN().sendAndWrite(E,e):PN().sendThenWrite(E,e,A)):e?(KBy(E,k.L("html5_assert_cpn_with_regex")),AZe(E,e)):g.jA(E,H)}; tv7=function(E){for(var e=[],l=0;l0&&l>0&&!E.G&&E.Z<1E7)try{E.S=E.W({sampleInterval:e,maxBufferSize:l});var k;(k=E.S)==null||k.addEventListener("samplebufferfull",function(){return g.D(function(H){if(H.G==1)return g.S(H,E.stop(),2);eIS(E);g.$0(H)})})}catch(H){E.G=ECX(H.message)}}; lt7=function(E,e){var l,k;return!!((l=window.h5vcc)==null?0:(k=l.settings)==null?0:k.set(E,e))}; Hbl=function(){var E,e,l,k=(E=window.h5vcc)==null?void 0:(e=E.settings)==null?void 0:(l=e.getPersistentSettingAsString)==null?void 0:l.call(e,"cpu_usage_tracker_intervals");if(k!=null){var H;E=(H=JSON.parse(k))!=null?H:[];H=E.filter(function(p){return p.type==="total"}).map(function(p){return p.seconds}); e=g.T(kz7);for(l=e.next();!l.done;l=e.next())l=l.value,H.indexOf(l)===-1&&E.push({type:"total",seconds:l});var O,X;(O=window.h5vcc)==null||(X=O.settings)==null||X.set("cpu_usage_tracker_intervals_enabled",1);var A,C;(A=window.h5vcc)==null||(C=A.settings)==null||C.set("cpu_usage_tracker_intervals",JSON.stringify(E))}}; Obv=function(){var E=window.H5vccPlatformService,e="";if(E&&E.has("dev.cobalt.coat.clientloginfo")&&(E=E.open("dev.cobalt.coat.clientloginfo",function(){}))){var l=E.send(new ArrayBuffer(0)); l&&(e=String.fromCharCode.apply(String,g.Be(new Uint8Array(l))));E.close()}return e}; g.ud=function(E){g.a.call(this);var e=this;this.provider=E;this.logger=new g.da("qoe");this.T=new Map;this.sequenceNumber=1;this.kt=NaN;this.bq="N";this.N=this.Ik=this.dg=this.pg=this.G=0;this.bY=this.c5=this.J=this.jR="";this.hN=this.J0=NaN;this.C7=0;this.qM=-1;this.iN=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.dC=this.isEmbargoed=this.h0=this.isOffline=this.isBuffering=!1;this.MM=[];this.V=null;this.rH=this.S=this.Yt=this.j=!1;this.Z=-1;this.gH=!1;this.yf=new g.Nx(this.aM,750,this);this.OW= this.adCpn=this.Qd=this.contentCpn="";this.adFormat=void 0;this.je=0;this.ND=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Fy=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.In=!1;this.Wh=NaN;this.fg=0;this.GX=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.jE=!1;this.dO=new Set;this.p5={oR:function(k){e.oR(k)}, INn:function(){return e.W}, x4:function(){return e.contentCpn}, yLM:function(){return e.Qd}, reportStats:function(){e.reportStats()}, tNd:function(){return e.T.get("cat")||[]}, pu:function(k){return e.T.get(k)||[]}, WLH:function(){return e.T}, qtz:function(){return 0}, lY6:function(){return{adCpn:e.adCpn,OW:e.OW,adFormat:e.adFormat}}}; this.SR=this.provider.dH.L("html5_qoe_relaxed_reporting");var l=g.tJ(this.provider.dH.experiments,"html5_qoe_proto_mock_length");l&&!OY.length&&(OY=tv7(l));g.L(this,this.yf);try{navigator.getBattery().then(function(k){e.V=k})}catch(k){}g.Xu(this,0,"vps",["N"]); E.dH.f7()&&(this.fg=(0,g.dE)(),this.Wh=g.A2(function(){var k=(0,g.dE)(),H=k-e.fg;H>500&&e.wH("vmlock",{diff:H.toFixed()});e.fg=k},250)); this.provider.videoData.mY&&(this.remoteControlMode=XO7[this.provider.videoData.mY]||0);this.provider.videoData.bV&&(l=W3e(this.provider.videoData.bV),l==null?0:l.length)&&(this.remoteConnectedDevices=l);E.dH.f7()&&(this.b3=new Z9l,g.L(this,this.b3));l=g.tJ(E.dH.experiments,"html5_js_self_profiler_sample_interval_ms");E=g.tJ(E.dH.experiments,"html5_js_self_profiler_max_samples");l>0&&E>0&&(this.R4=new Hp(l,E),g.L(this,this.R4))}; AM=function(E,e,l){var k=E.T.get(e);k?k.push(l):E.T.set(e,[l])}; g.Xu=function(E,e,l,k){AM(E,l,e.toFixed(3)+":"+k.join(":"))}; uDX=function(E,e){var l=E.adCpn||E.provider.videoData.clientPlaybackNonce,k=E.provider.getCurrentTime(l);g.Xu(E,e,"cmt",[k.toFixed(3)]);l=k=E.provider.Zu(l);if((!E.W||E.provider.dH.L("html5_shorts_gapless_no_gllat")&&yJ(E.provider.videoData)?0:l*1E3>E.W.tE+100)&&E.W){var H=E.W;l=H.isAd;k=k*1E3-H.tE;E.u$=e*1E3-H.UK3-k-H.TRg;H=(0,g.dE)()-k;e=E.u$;k=E.provider.videoData;var O=k.isAd();if(l||O){O=(l?"ad":"video")+"_to_"+(O?"ad":"video");var X={};k.J&&(X.cttAuthInfo={token:k.J,videoId:k.videoId});X.startTime= H-e;Jl(O,X);g.UX({targetVideoId:k.videoId,targetCpn:k.clientPlaybackNonce},O);$Q("pbs",H,O)}else H=E.provider.I4.VR(),H.J!==k.clientPlaybackNonce?(H.W=k.clientPlaybackNonce,H.G=e):k.Jd()||g.UJ(new g.PK("CSI timing logged before gllat",{cpn:k.clientPlaybackNonce}));E.wH("gllat",{l:E.u$.toFixed(),prev_ad:+l});delete E.W}}; pq=function(E,e){e=e===void 0?NaN:e;e=e>=0?e:g.Cq(E.provider);var l=E.provider.I4.Wb(),k=l.o5-(E.J0||0);k>0&&g.Xu(E,e,"bwm",[k,(l.Cl-(E.hN||0)).toFixed(3)]);isNaN(E.J0)&&l.o5&&E.isOffline&&E.oR(!1);E.J0=l.o5;E.hN=l.Cl;isNaN(l.bandwidthEstimate)||g.Xu(E,e,"bwe",[l.bandwidthEstimate.toFixed(0)]);E.provider.dH.f7()&&Object.keys(l.T).length!==0&&E.wH("bwinfo",l.T);if(E.provider.dH.f7()||E.provider.dH.L("html5_log_meminfo"))k=Mvl(),Object.values(k).some(function(O){return O!==void 0})&&E.wH("meminfo", k); if(E.provider.dH.f7()){var H;(k=(H=E.b3)==null?void 0:YEX(H))&&Object.values(k).some(function(O){return O!=null})&&E.wH("cpuinfo",k)}E.R4&&E.wH("jsprof",E.R4.flush()); E.V&&g.Xu(E,e,"bat",[E.V.level,E.V.charging?"1":"0"]);H=E.provider.I4.getVisibilityState();E.qM!==H&&(g.Xu(E,e,"vis",[H]),E.qM=H);uDX(E,e);(H=Aty(E.provider))&&H!==E.C7&&(g.Xu(E,e,"conn",[H]),E.C7=H);CcW(E,e,l)}; CcW=function(E,e,l){if(!isNaN(l.Ml)){var k=l.Ml;l.G96E3&&(new g.Nx(E.reportStats,0,E)).start()}}; QF9=function(E){E.provider.videoData.w2&&xK(E,"prefetch");E.provider.videoData.jE&&E.wH("reload",{r:E.provider.videoData.reloadReason,ct:E.provider.videoData.jE});E.provider.videoData.Yt&&xK(E,"monitor");E.provider.videoData.isLivePlayback&&xK(E,"live");z8&&xK(E,"streaming");E.provider.videoData.mY&&E.wH("ctrl",{mode:E.provider.videoData.mY},!0);if(E.provider.videoData.bV){var e=E.provider.videoData.bV.replace(/,/g,"_");E.wH("ytp",{type:e},!0)}E.provider.videoData.Ts&&(e=E.provider.videoData.Ts.replace(/,/g, "."),E.wH("ytrexp",{ids:e},!0));e=E.provider.videoData;var l=E.provider.dH.L("enable_white_noise")||E.provider.dH.L("enable_webgl_noop"),k=g.L9(e)||g.tG(e)||g.qt(e)||g.ET(e);(l||k)&&(l=(0,g.QW)())&&E.T.set("gpu",[l]);Qm(E.provider.videoData)&&g.Xu(E,g.Cq(E.provider),"dt",["1"]);E.provider.L("html5_record_is_offline_on_playback_attempt_start")&&e.cotn&&!Qm(e)&&E.oR(!0);E.provider.dH.f7()&&(e=(0,g.dE)()-E.provider.dH.UJ,E.wH("playerage",{secs:Math.pow(1.6,Math.round(Math.log(e/1E3)/Math.log(1.6))).toFixed()})); E.S=!0;E.kt=g.A2(function(){E.reportStats()},1E4)}; BhW=function(E,e,l){var k=g.Cq(E.provider);W$X(E,k,e,0,l);pq(E,k);xXZ(E)}; W$X=function(E,e,l,k,H){var O=E.provider.dH.T.cbrver;E.provider.dH.T.cbr==="Chrome"&&/^96[.]/.test(O)&&l==="net.badstatus"&&/rc\.500/.test(H)&&oC0(E,3);E.provider.dH.L("html5_use_ump")&&/b248180278/.test(H)&&oC0(E,4);O=E.provider.getCurrentTime(E.adCpn||E.provider.videoData.clientPlaybackNonce);k=k===1?"fatal":"";l=[l,k,O.toFixed(3)];k&&(H+=";a6s."+gL());H&&l.push(wOe(H));g.Xu(E,e,"error",l);E.S=!0}; zIW=function(E,e){var l=g.Cq(E.provider);if(!E.provider.dH.experiments.P5("html5_refactor_sabr_video_format_selection_logging")||e.T.id!==E.jR){var k=[e.T.id,e.G,E.jR,e.reason];e.token&&k.push(e.token);g.Xu(E,l,"vfs",k);E.jR=e.T.id;k=E.provider.I4.getPlayerSize();if(k.width>0&&k.height>0){k=[Math.round(k.width),Math.round(k.height)];var H=g.GH();H>1&&k.push(H);g.Xu(E,l,"view",k)}E.Yt||(E.provider.dH.f7()&&xK(E,"rqs2"),E.provider.videoData.T&&S$(E.provider.videoData.T)&&E.T.set("preload",["1"]));E.Yt= !0;E.S=!0}e.reason==="m"&&++E.je===100&&oC0(E,2);g.Xu(E,l,"vps",[E.bq]);E.SR||E.reportStats(l)}; dXy=function(E){E.Z>=0||(E.provider.dH.lk||E.provider.I4.getVisibilityState()!==3?E.Z=g.Cq(E.provider):E.gH=!0)}; GzW=function(E,e,l){if(E.provider.dH.experiments.P5("html5_refactor_sabr_audio_format_selection_logging")){e=l.T;var k=[e.audio&&e.video?e.uu?e.uu:"":e.id];e.gC&&e.gC.id&&k.push(e.gC.id);e=k.join(";");e!==E.J&&(k=[e,E.J,l.reason],l.token&&k.push(l.token),g.Xu(E,g.Cq(E.provider),"afs",k),E.J=e)}else l.T.id!==E.J&&(k=[l.T.id,E.J,l.reason],l.token&&k.push(l.token),g.Xu(E,e,"afs",k),E.J=l.T.id)}; xK=function(E,e){AM(E,"cat",e)}; Th7=function(E,e,l,k,H){var O=g.Cq(E.provider);e!==1&&e!==3&&e!==5||g.Xu(E,O,"vps",[E.bq]);AM(E,"xvt","t."+O.toFixed(3)+";m."+H.toFixed(3)+";g.2;tt."+e+";np.0;c."+l+";d."+k)}; oC0=function(E,e){E.rH||(AM(E,"fcnz",""+e),E.rH=!0)}; wOe=function(E){/[^a-zA-Z0-9;.!_-]/.test(E)&&(E=E.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return E}; g.Bp=function(E,e,l,k,H,O,X,A,C,p){A=A===void 0?!1:A;g.a.call(this);var x=this;this.I4=E;this.schedule=e;this.policy=l;this.W5=k;this.SR=C;this.dO=p;this.B5=null;this.J0=this.jR=this.c5=this.kt=0;this.l8=this.oJ=this.isSuspended=!1;this.ND="";this.Fy={};this.GX=NaN;this.In=0;this.pg=null;this.Wh=this.R4=!1;this.oO=0;this.Yt=!1;this.fg=this.rH=0;this.hN=null;this.iH=function(){return x.I4.iH()}; this.timing=new Yt8(this.dO);this.N=new Yl(this.schedule,this.policy);this.C7=new g.Nx(this.iq,0,this);this.bY=new g.Nx(this.iq,this.policy.C7,this);this.Wl=new g.Nx(this.iq,1E3,this);this.MM=new g.Nx(this.iq,void 0,this);this.b3=new g.Nx(function(){x.isSuspended||x.iq()},1E4,this); this.qM=new g.Nx(this.gUH,250,this);this.J=this.currentTime=NaN;this.j0=new D2(5);this.h0=this.timestampOffset=NaN;this.logger=new g.da("dash");this.yf=Infinity;this.p5={getAudioTrack:function(){return x.audioTrack}, je3:function(){return x.videoTrack}, getManifest:function(){return x.W5}, cWd:function(){return x.G}, iq:function(){x.iq()}, VW:function(){x.kt=0;x.VW()}, BaD:function(W){return Wp(x,x.videoTrack,x.B5.G,W)}}; E=C&&C.m1();C&&(aop(C,this.W5,this.policy),this.h0=Date.now());this.T=new uf(this,this.N,l,this.W5,H,E);l=GXp(this.T,O,X&&X.id);this.audioTrack=new vP(this,this.policy,l.audio,this.timing);this.videoTrack=new vP(this,this.policy,l.video,this.timing);this.videoTrack.S.Qd=this.audioTrack.KA();this.gH={updateend:this.ZF,error:this.LnD};g.L(this,this.C7);g.L(this,this.bY);g.L(this,this.Wl);g.L(this,this.MM);g.L(this,this.b3);l=this.policy.Zh&&this.policy.pM?!rqe(this.videoTrack.T.info):!1;this.iN=rfX({Gx:this.policy.j.Gx|| l,pM:this.policy.pM&&!l,tL:this.policy.tL});this.j=v7p(this,this.policy,this.iN,this.schedule,this.j0,function(W,B){return ibp(x,W,B)}); this.Z=new ma(this,this.W5,this.policy,this.videoTrack,this.audioTrack,A);this.policy.b3&&this.policy.G&&(this.Qd=new plW(function(W,B){x.wH(W,B)})); this.MV=new sb(this,this.W5,this.videoTrack,this.audioTrack,this.policy);A=this.policy.Mx?this.I4.getVideoData().fI:null;this.W=new Xo(this,this.policy,this.videoTrack,this.audioTrack,this.Fy,this.Z,this.timing,this.N,this.schedule,this.W5,this.T,this.j,l,A);g.L(this,this.W);this.S=new DL(this,this.policy,this.videoTrack,this.audioTrack,this.W5,H,jv(this.I4.getVideoData()),X==null?void 0:X.id);g.L(this,this.S);evS(this.S,O);this.G=new H9Z(this.I4,this,this.policy,this.audioTrack,this.videoTrack,this.W5, this.schedule,this.T,this.S,this.timing,this.Z);g.L(this,this.G);this.V=this.I4.sz.DT.Go;this.policy.W||$Xv(this);if(this.policy.f0){var Q;this.dC=new jRe(this.videoTrack.T.index,(Q=this.I4.getVideoData().clientPlaybackNonce)!=null?Q:"",this.I4,this.policy.rH);this.policy.rH===3&&(this.jE=new g.Nx(this.x$,200,this),this.jE.start(),g.L(this,this.jE))}this.logger.debug("Created")}; $Xv=function(E){var e,l;if((e=E.V)==null?0:(l=e.l$)==null?0:l.itagDenylist){var k;E.M3((k=E.V)==null?void 0:k.l$.itagDenylist)}var H;if((H=E.V)==null?0:H.playbackStartPolicy){var O,X;H0(E.policy,(O=E.V)==null?void 0:O.playbackStartPolicy,3,(X=E.V)==null?void 0:X.S7())}if(E.policy.VJ){e=E.jH();var A;(l=e?(A=E.V)==null?void 0:A.B9.get(e):void 0)&&E.G.IU(l)}if(!E.W5.V){var C;A=(C=E.V)==null?void 0:C.r7;(A==null?0:A.CV)&&(A==null?0:A.P0)&&E.W5.sK&&nx(E.W5,A.CV,A.P0)}var p;((p=E.V)==null?0:p.Ul)&&(C=E.V.Ul.get(E.jH()|| ""))&&E.W5&&C.formatId&&(E=E.W5.Z.get(Yz(C.formatId)))&&(E.info.debugInfo=C.debugInfo)}; UXe=function(E,e){var l=Yz(g.vR(e.T.info,E.W5.sK)),k,H=((k=E.SR)==null?void 0:k.eC(l))||[];if(H.length===0)return E.wH("ombmsi",{}),!1;H=new OZ(H);if(k=!E.policy.kt||isFinite(E.getCurrentTime())||E.I4.Qu()){a:{k=E.getCurrentTime();H=g.T(H.H5);for(var O=H.next();!O.done;O=H.next())if(O=O.value,O.type===3&&k>=O.S&&k<=O.J){k=!0;break a}k=!1}k=!k}if(k)return E.wH("ostmf",{ct:E.getCurrentTime(),a:e.T.info.A2()}),!1;(E=E.SR)!=null&&(E.jJ.get(l).FY=!0);return!0}; JtX=function(E){if(!E.W5.sK)return!0;var e=E.I4.getVideoData();if(E.I4.Li())return E.wH("ombpa",{}),!1;var l,k;if(!!((l=E.V)==null?0:(k=l.r7)==null?0:k.MeR)!==E.W5.Af)return E.wH("ombplmm",{}),!1;l=e.In||e.liveUtcStartSeconds||e.dO;if(E.W5.Af&&l)return E.wH("ombplst",{}),!1;if(E.W5.V)return E.wH("ombab",{}),!1;l=Date.now();return Rc(E.W5)&&!isNaN(E.h0)&&l-E.h0>E.policy.u9*1E3?(E.wH("ombttl",{}),!1):E.W5.Tg&&E.W5.S||!E.policy.zn&&E.W5.isPremiere||aR(e)!==0&&!E.policy.T||e.L("html5_disable_onesie_media_for_mosaic")&& xC(e)||e.Z0()&&!e.L("html5_enable_onesie_media_for_lifa")&&e.isDaiEnabled()&&e.enableServerStitchedDai||e.L("html5_disable_onesie_media_for_lifa_eligible")&&pb(e)?!1:!0}; cte=function(E,e){var l=e.T,k=E.W5.sK;if(JtX(E))if(E.SR&&E.SR.jJ.has(Yz(g.vR(l.info,k)))){if(k=Yz(g.vR(l.info,k)),UXe(E,e)){var H=new OZ(E.SR.eC(k)),O=function(X){try{if(X.lH())E.handleError(X.tB(),X.Jl()),Rq(e,X),uS(X.info)&&pw(E.W,e,l,!0),E.iq();else if(QZ(E.W,X)){var A;(A=E.Z)==null||Ox7(A,X.info,E.pg);E.iq()}}catch(C){X=Qp(C),E.handleError(X.errorCode,X.details,X.severity),E.Mw()}}; l.Z=!0;XK(H)&&(Ln(e,new tL(E.policy,k,H,E.SR,O)),YY(E.timing))}}else E.wH("ombfmt",{})}; ytW=function(E,e){e=e||E.videoTrack&&E.videoTrack.G&&E.videoTrack.G.startTime||E.getCurrentTime();var l=B0,k=E.videoTrack,H=E.T;e=H.nextVideo&&H.nextVideo.index.GS(e)||0;H.Qd!==e&&(H.fg={},H.Qd=e,AF(H,H.T));e=!H.T.isLocked()&&H.V>-1&&(0,g.dE)()-H.Ve.T&&e.reason==="b";k||H||l?(E.I4.zY({reattachOnConstraint:k?"u":H?"drm":"perf",lo:e.G,up:e.T}),E.policy.RF||(E.S.T.G=!1)):(E.policy.RF&&(E.S.T.G=!1),ec(E))}}else if(!TaX(E.T,e)&&E.videoTrack){E.logger.debug(function(){return"Setting constraint: r="+e.reason+" u="+e.T}); l=E.T.T;DX0(E,$cX(E.T,e));ytW(E);k=e.isLocked()&&e.reason==="m"&&E.T.kt;H=E.policy.rB&&e.reason==="l"&&tF(E.videoTrack);l=l.T>e.T&&e.reason==="b";var O=E.T.gH&&!l3();k||H||l||O?E.I4.zY({reattachOnConstraint:k?"u":H?"drm":O?"codec":"perf"}):ec(E)}}; vCl=function(E,e,l){if((!E.B5||O$(E.B5)&&!E.policy.rJ)&&!E.MV.isSeeking()&&(E.policy.T||tF(e)&&e.T.Sv()&&E.T.pg)){var k=E.getCurrentTime()+d3X(E.N,e,l);E.logger.debug(function(){return"Clearing back to "+k.toFixed(3)}); UAW(e,k)}}; DX0=function(E,e){e&&(E.logger.debug(function(){return"Logging new format: "+N5(e.video.info)}),Pc8(E.I4,new eR(e.video,e.reason))); if(E.T.R4){var l=yfS(E.T,"a");E.I4.cE(new eR(l.audio,l.reason))}}; ec=function(E){g.ZC(E.C7)}; W0=function(E){E.policy.C7&&E.policy.tL&&Math.min($AS(E.videoTrack),$AS(E.audioTrack))*1E3>E.policy.sN?g.ZC(E.bY):E.iq()}; atS=function(E,e){var l=(0,g.dE)()-e,k=go(E.audioTrack,!0)*1E3,H=go(E.videoTrack,!0)*1E3;E.logger.debug(function(){return"Appends paused for "+l}); if(E.policy.Z&&(E.wH("apdpe",{dur:l.toFixed(),abuf:k.toFixed(),vbuf:H.toFixed()}),ky(E.policy))){var O=KV(E.N);E.wH("sdps",{ct:e,ah:k.toFixed(),vh:H.toFixed(),mr:nV(E.N,E.l8,O),bw:O.toFixed(),js:E.isSeeking(),re:+E.l8,ps:(E.policy.vF||"").toString(),rn:(E.policy.Ym||"").toString()})}}; L$0=function(E){if(FFW(E.videoTrack))return E.logger.debug("Pausing appends for server-selectable format"),"ssf";if(E.policy.jR&&en(E.videoTrack)&&en(E.audioTrack))return"updateEnd";if(sR(E.audioTrack)||sR(E.videoTrack)&&E.videoTrack.T.info.DM!=="f")return"";if(E.MV.isSeeking()){var e=E.N;var l=E.videoTrack;var k=E.audioTrack;if(e.policy.T){var H=e.policy.Hn;ky(e.policy)&&(H=nV(e,!1,KV(e)));e=H;l=go(k,!0)>=e&&go(l,!0)>=e}else l.Z.length||k.Z.length?(H=l.T.info.Kg+k.T.info.Kg,H=10*(1-KV(e)/H),e=Math.max(H, e.policy.Hn),l=go(k,!0)>=e&&go(l,!0)>=e):l=!0;if(!l)return"abr";l=E.videoTrack;if(l.Z.length>0&&l.S.G.length===1&&tzS(l.S).info.N360);k=ky(E.policy)&&E.policy.Td;if(!E.l8||!k&&l)return"";l=E.policy.zT;ky(E.policy)&&(l=nV(E.N,E.l8,KV(E.N)));l=c1Z(E.videoTrack,E.getCurrentTime(),l)||c1Z(E.audioTrack,E.getCurrentTime(), l);return ky(E.policy)?l?"mbnm":"":(E.videoTrack.Z.length>0||E.audioTrack.Z.length>0||uV(E.W,E.videoTrack,E.audioTrack)||uV(E.W,E.audioTrack,E.videoTrack))&&l?"nord":""}; hIX=function(E){if(E.j){var e=E.j.iq(E.audioTrack,nL(E.B5.G.HN()));e&&E.I4.seekTo(e,{W_:!0,AN:"pollSubsegmentReadahead",w_:!0})}}; K$X=function(E,e,l){if(E.policy.jR&&en(e))return!1;if(l.K1())return!0;if(!l.du())return!1;var k=uI(e);if(!k||k.info.type===6)return!1;var H;if(E.policy.UA||((H=E.Z)==null?0:CSX(H,e,k.info.A0)))E.J0=0;else return E.MV.isSeeking()&&ec(E),E.J0=E.J0||(0,g.dE)(),!1;if(!Wp(E,e,l,k.info))return!1;if(E.W5.G&&k.info.G===0){if(H=MuZ(e,l,k)){var O=aq(e);E.wH("initchg",{it:k.info.T.info.id,sr:!!O&&O.T===k.info.T,ty:k.info.type,seg:k.info.A0})}O=g.D9(k.info.T.info);E.policy.YU&&O&&!H&&OX0(k)}O=E.j&&!!E.j.S&&e.T.info.audio; H=E.W5.isManifestless||k.W;if(!(E.W5.G&&k.info.G!==0||H&&!O)&&Nhv(E,e,l,k))return!0;if(O)return!1;O=lI(E,e);O=E.getCurrentTime()+O;if(k.info.S>O)return E.policy.T&&ZbW(E,e),E.policy.WB&&fJp(e.S,O,!1),!1;YTp(E,e);var X;E.policy.lk&&l===((X=E.B5)==null?void 0:X.T)&&E.Yt&&(l.xP()===0?(E.Yt=!1,E.policy.lk=!1):E.rH=l.xP());if(!mX7(E,l,k,e))return!1;E.policy.jR&&k.info.UZ()?(E.I4.Y().f7()&&E.wH("eosl",{ls:k.info.T_()}),k.isLocked=!0):(e.Sb(k),cfZ(E.T,k.info),E.logger.debug(function(){return"Appended "+ k.info.T_()+", buffered: "+Yf(l.HN())})); H&&gC7(E,k.info.T.NE);return!0}; ZbW=function(E,e){e===E.videoTrack?E.jR=E.jR||(0,g.dE)():E.c5=E.c5||(0,g.dE)()}; YTp=function(E,e){e===E.videoTrack?E.jR=0:E.c5=0}; mX7=function(E,e,l,k){var H=E.policy.Wh?(0,g.dE)():0,O=l.W&&l.info.T.T||void 0,X=l.G;l.W&&(X=nC9(E,l,X)||X);var A=X6(X);X=E.policy.Wh?(0,g.dE)():0;e=RIy(E,e,A,l.info,O);(k=k.V)!=null&&(O=l.info,H=X-H,X=(0,g.dE)()-X,!k.G||$58(k.G,O)&&k.G.A0===O.A0||k.flush(),k.S+=H,k.Z+=X,H=1,!k.G&&O.G&&(H=2),BP(k,H,e),X=Math.ceil(O.G/1024),H===2&&k.T.add(X),k.T.add(Math.ceil((O.G+O.Z)/1024)-X),k.G=O);E.fg=0;if(e===0)return E.R4&&(E.logger.debug("Retry succeed, back to normal append logic."),E.R4=!1,E.Wh=!1),E.In= 0,!0;if(e===2||e===5)return sFy(E,"checked",e,l.info),!1;if(e===1){if(!E.R4)return E.logger.debug("QuotaExceeded, retrying."),E.R4=!0,!1;if(!E.Wh)return E.Wh=!0,E.I4.seekTo(E.getCurrentTime(),{AN:"quotaExceeded",w_:!0}),!1;l.info.qK()?(H=E.policy,H.c5=Math.floor(H.c5*.8),H.SR=Math.floor(H.SR*.8)):(H=E.policy,H.Yt=Math.floor(H.Yt*.8),H.SR=Math.floor(H.SR*.8));E.policy.T?kj(E.S.T,l.info.T,!1):pn(E.T,l.info.T)}E.I4.zY({reattachOnAppend:e});return!1}; nC9=function(E,e,l){var k;if(k=E.policy.Oo&&E.B5&&!E.B5.N&&!E.I4.J_())e=e.info.T.info,k=e.E1()&&IW(e)&&e.video&&e.video.width<3840&&e.video.width>e.video.height;if(k&&(E.B5.N=!0,wB('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return l=Rn7(l),E.policy.Z&&E.wH("sp4k",{s:!!l}),l}; sFy=function(E,e,l,k){var H="fmt.unplayable",O=1;l===5||l===3?(H="fmt.unparseable",E.policy.T?!k.T.info.video||HP(E.S.T).size>0||kj(E.S.T,k.T,!1):!k.T.info.video||HP(E.T.W).size>0||pn(E.T,k.T)):l===2&&(E.In<15?(E.In++,H="html5.invalidstate",O=0):H="fmt.unplayable");k=kw(k);var X;k.mrs=(X=E.B5)==null?void 0:CX(X);k.origin=e;k.reason=l;k.trg="appenderr";E.handleError(H,k,O)}; WFl=function(E,e,l,k,H){var O=E.W5;var X=E.policy.T,A=!1,C=-1,p;for(p in O.T){var x=h4(O.T[p].info.mimeType)||O.T[p].info.qK();if(k===x)if(x=O.T[p].index,x.JQ(e.A0)){A=x;var Q=e,W=A.Xf(Q.A0);W&&W.startTime!==Q.startTime?(A.segments=[],A.Gv(Q),A=!0):A=!1;A?C=e.A0:!e.pending&&X&&(Q=x.getDuration(e.A0),Q!==e.duration&&(O.publish("clienttemp","mfldurUpdate",{itag:O.T[p].info.itag,seg:e.A0,od:Q,nd:e.duration},!1),x.Gv(e),A=!0))}else x.Gv(e),A=!0}C>=0&&(X={},O.publish("clienttemp","resetMflIndex",(X[k? "v":"a"]=C,X),!1));O=A;D3v(E.MV,e,k,O);if(E.policy.b3&&E.policy.G&&(C=e.TN||null)){var B;X=(B=E.G)==null?void 0:Tuv(B).requestNumber;var w;(w=E.Qd)==null||xc7(w,C,X)}E.Z.Hp(e,l,k,H);e.A0===E.W5.Tg&&O&&ZY(E.W5)&&e.startTime>ZY(E.W5)&&(E.W5.Qd=e.startTime+(isNaN(E.timestampOffset)?0:E.timestampOffset),E.MV.isSeeking()&&E.MV.targetTime5)return E.fg= 0,E.I4.zY({initSegStuck:1,as:k.info.T_()}),!0}else E.fg=0,E.hN=k;E.policy.mN&&(l.abort(),(X=e.V)!=null&&(BP(X,4),X.flush()));H=RIy(E,l,O,C,H);var p;(p=e.V)==null||Dcv(p,H,C);if(H!==0)return tuv(E,H,k),!0;k.info.qK()?Rpp(E.timing):so7(E.timing);E.logger.debug(function(){return"Appended init for "+k.info.T.info.id}); gC7(E,k.info.T.NE);return l.fz()}; MuZ=function(E,e,l){if(e.SB()==null){E=aq(E);if(!(e=!E||E.T!==l.info.T)){a:if(E=E.V,l=l.info.V,E.length!==l.length)l=!1;else{for(e=0;e1)return 6;X.fg=new g.Nx(function(){var A=uI(X);E.U7()||A==null||!A.isLocked?E.I4.Y().f7()&&E.wH("eosl",{delayA:A==null?void 0:A.info.T_()}):qTl(X)?(E.I4.Y().f7()&&E.wH("eosl",{dunlock:A==null?void 0:A.info.T_()}),El7(E,X===E.audioTrack)):(E.wH("nue",{ls:A.info.T_()}),A.info.pg+=1,E.B5&&E.VW())},1E4,E); E.I4.Y().f7()&&E.wH("eosl",{delayS:k.T_()});X.fg.start()}E.policy.VE&&(k==null?void 0:k.T)instanceof Cx&&k.UZ()&&E.wH("poseos",{itag:k.T.info.itag,seg:k.A0,lseg:k.T.index.Oz(),es:k.T.index.Z});e.appendBuffer(l,k,H)}catch(A){if(A instanceof DOMException){if(A.code===11)return 2;if(A.code===12)return 5;if(A.code===22||A.message.indexOf("Not enough storage")===0)return e=Object.assign({name:"QuotaExceededError",buffered:Yf(e.HN()).replace(/,/g,"_"),vheap:Yj(E.videoTrack),aheap:Yj(E.audioTrack),message:g.c1(A.message, 3),track:E.B5?e===E.B5.G?"v":"a":"u"},Mvl()),E.handleError("player.exception",e),1;g.$F(A)}return 4}return E.B5.Du()?3:0}; Xz=function(E,e,l){ItW(E,l.AN||"unknown");E.I4.seekTo(e,l)}; gC7=function(E,e){e&&E.I4.AT(new cP(e.key,e.type))}; Fe=function(E,e){E.I4.N3(e)}; lI=function(E,e){if(E.R4&&!E.l8)return 3;if(E.isSuspended)return 1;var l;if((l=E.B5)==null?0:l.B5&&l.B5.streaming===!1)return 4;l=(e.T.info.audio?E.policy.Yt:E.policy.c5)/(e.Kg*E.policy.Y7);if(E.policy.mF>0&&E.B5&&O$(E.B5)&&(e=e.T.info.video?E.B5.G:E.B5.T)&&!e.fz()){e=e.HN();var k=mU(e,E.getCurrentTime());k>=0&&(e=E.getCurrentTime()-e.start(k),l+=Math.max(0,Math.min(e-E.policy.mF,E.policy.G6)))}E.policy.SR>0&&(l=Math.min(l,E.policy.SR));return l}; C7y=function(E,e){return(lI(E,e)+E.policy.z6)*e.Kg}; ld7=function(E){E.ND&&!E.isSuspended&&mF(E.schedule)&&(eNS(E,E.ND),E.ND="")}; eNS=function(E,e){Zd(e,"cms",function(l){E.policy.Z&&E.wH("pathprobe",l)},function(l){E.I4.handleError(l)})}; kF9=function(E,e){if(E.B5&&E.B5.S&&!E.B5.Du()&&(e.Ml=go(E.videoTrack),e.G=go(E.audioTrack),E.policy.Z)){var l=Yj(E.videoTrack),k=Yj(E.audioTrack),H=Yf(E.B5.G.HN(),"_",5),O=Yf(E.B5.T.HN(),"_",5);Object.assign(e.T,{lvq:l,laq:k,lvb:H,lab:O})}e.bandwidthEstimate=mu(E.N);var X;(X=E.audioTrack.V)==null||X.flush();var A;(A=E.videoTrack.V)==null||A.flush();E.logger.debug(function(){return CL(e.T)})}; HVX=function(E,e){E.pg=e;E.Z&&(E.Z.Z=e);E.pg.Dm(E.videoTrack.T.info.E1());E.W.G=E.pg;E.policy.G&&(E.G.N=E.pg)}; XIe=function(E,e){if(E.B5&&E.B5.G){if(E.policy.GR){var l=Sse(E.audioTrack);if(l&&l.A2()){var k=E.I4;if(k.Mp&&(k.Mp.T=l,l=k.L7,l.qoe)){l=l.qoe;k=k.Mp;var H=g.Cq(l.provider);GzW(l,H,k)}}}E.policy.ZR&&(l=Sse(E.videoTrack))&&l.qK()&&(k=E.I4,k.HK&&(k.HK.T=l,l=k.L7,l.qoe&&zIW(l.qoe,k.HK)));e-=isNaN(E.timestampOffset)?0:E.timestampOffset;E.getCurrentTime()!==e&&E.resume();E.MV.isSeeking()&&E.B5&&!E.B5.Du()&&(k=E.getCurrentTime()<=e&&e=e&&ibp(E,k.startTime,!1)}); return l&&l.startTimeE.getCurrentTime())return l.start/1E3;return Infinity}; QRy=function(E){if(E.I4.getVideoData().isLivePlayback)return!1;var e=E.I4.Ps();if(!e)return!1;e=e.getDuration();if(E.B5&&E.B5.T&&E.B5.G){var l=E.getCurrentTime(),k=E.B5.T.HN();E=E.B5.G.HN();k=k?KL(k,l):l;l=E?KL(E,l):l;l=Math.min(k,l);e=isNaN(l)?!1:l>=e-.01}else e=!1;return e}; tuv=function(E,e,l){E.policy.TR&&yJ(E.I4.getVideoData())?(E.I4.pG()||sFy(E,"sepInit",e,l.info),Wje(E.I4,"sie")):sFy(E,"sepInit",e,l.info)}; oz=function(E){return E.I4.Xh()0){var k=l.T.shift();oyW(l,k.info)}l.T.length>0&&(k=l.T[0].time-(0,g.dE)(),l.G.start(Math.max(0,k)))}},0); g.L(this,this.G);e.subscribe("widevine_set_need_key_info",this.S,this)}; oyW=function(E,e){a:{var l=e.cryptoPeriodIndex;if(isNaN(l)&&E.Z.size>0)l=!0;else{for(var k=g.T(E.Z.values()),H=k.next();!H.done;H=k.next())if(H.value.cryptoPeriodIndex===l){l=!0;break a}l=!1}}E.publish("log_qoe",{wvagt:"reqnews",canskip:l});l||E.publish("rotated_need_key_info_ready",e)}; w07=function(){var E={};var e=E.url;var l=E.interval;E=E.retries;this.url=e;this.interval=l;this.retries=E}; zO9=function(E,e){this.statusCode=E;this.message=e;this.G=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; dnl=function(E,e,l){l=l===void 0?"":l;g.a.call(this);this.message=E;this.requestNumber=e;this.timer=l;this.onError=this.onSuccess=null;this.T=new g.Fc(5E3,2E4,.2)}; GAl=function(E,e,l){E.onSuccess=e;E.onError=l}; iwl=function(E,e,l,k){var H={timeout:3E4,onSuccess:function(O){if(!E.U7()){$Q("drm_net_r",void 0,E.timer);var X=O.status==="LICENSE_STATUS_OK"?0:9999,A=null;if(O.license)try{A=y$(O.license)}catch(w){g.$F(w)}if(X!==0||A){A=new zO9(X,A);X!==0&&O.reason&&(A.errorMessage=O.reason);if(O.authorizedFormats){X={};for(var C=[],p={},x=g.T(O.authorizedFormats),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.trackType&&Q.keyId){var W=TAv[Q.trackType];if(W){W==="HD"&&O.isHd720&&(W="HD720");Q.isHdr&&(W+="HDR");X[W]|| (C.push(W),X[W]=!0);var B=null;try{B=y$(Q.keyId)}catch(w){g.$F(w)}B&&(p[g.Jz(B,4)]=W)}}A.G=C;A.T=p}O.nextFairplayKeyId&&(A.nextFairplayKeyId=O.nextFairplayKeyId);O.sabrLicenseConstraint&&(A.sabrLicenseConstraint=y$(O.sabrLicenseConstraint));O=A}else O=null;if(O)E.onSuccess(O,E.requestNumber);else E.onError(E,"drm.net","t.p;p.i")}}, onError:function(O){if(!E.U7())if(O&&O.error)O=O.error,E.onError(E,"drm.net.badstatus","t.r;p.i;c."+O.code+";s."+O.status,O.code);else E.onError(E,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){E.onError(E,"drm.net","rt.req."+E.requestNumber)}}; k&&(H.Mf="Bearer "+k);g.hx(l,"player/get_drm_license",e,H)}; $n7=function(E,e,l,k){g.sJ.call(this);this.videoData=E;this.dH=e;this.N=l;this.sessionId=k;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.pg=this.kt=!1;this.Z=null;this.SR=[];this.S=[];this.authorizedFormats=[];this.j=!1;this.T={};this.status="";this.J=NaN;this.G=E.W;this.cryptoPeriodIndex=l.cryptoPeriodIndex;E={};Object.assign(E,this.dH.T);E.cpn=this.videoData.clientPlaybackNonce;this.videoData.h0&&(E.vvt=this.videoData.h0,this.videoData.mdxEnvironment&&(E.mdx_environment= this.videoData.mdxEnvironment));this.dH.SR&&(E.authuser=this.dH.SR);this.dH.pageId&&(E.pageid=this.dH.pageId);isNaN(this.cryptoPeriodIndex)||(E.cpi=this.cryptoPeriodIndex.toString());var H=(H=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.vj()))?H[1]:"";H==="ATV"&&(E.cdt=H);this.W=E;this.W.session_id=k;this.V=!0;this.G.flavor==="widevine"&&(this.W.hdr="1");this.G.flavor==="playready"&&(e=Number(d_(e.experiments,"playready_first_play_expiration")),!isNaN(e)&&e>=0&&(this.W.mfpe=""+e),this.V=!1);e="";g.CJ(this.G)? A1(this.G)?(k=l.G)&&(e="https://www.youtube.com/api/drm/fps?ek="+JTX(k)):(e=l.initData.subarray(4),e=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),e=String.fromCharCode.apply(null,e).replace("skd://","https://")):e=this.G.G;this.baseUrl=e;this.fairplayKeyId=GG(this.baseUrl,"ek")||"";if(e=GG(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(e);this.SR=l.E1?[g.Jz(l.initData,4)]:l.Z;GL(this,{sessioninit:l.cryptoPeriodIndex});this.status="in"}; y38=function(E,e){GL(E,{createkeysession:1});E.status="gr";$Q("drm_gk_s",void 0,E.videoData.pg);E.url=UnW(E);try{E.Z=e.createSession(E.N,function(l){GL(E,{m:l})})}catch(l){e="t.g"; l instanceof DOMException&&(e+=";c."+l.code);E.publish("licenseerror","drm.unavailable",1,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}E.Z&&(J37(E.Z,function(l,k){c3W(E,l,k)},function(l,k,H){if(!E.U7()){k=void 0; var O=1;g.CJ(E.G)&&g.XG(E.dH)&&E.dH.L("html5_enable_safari_fairplay")&&H===1212433232&&(k="ERROR_HDCP",O=E.dH.L("html5_safari_fairplay_ignore_hdcp")?0:O);E.error("drm.keyerror",O,l,k)}},function(){E.U7()||(GL(E,{onkyadd:1}),E.pg||(E.publish("sessionready"),E.pg=!0))},function(l){E.EM(l)}),g.L(E,E.Z))}; UnW=function(E){var e=E.baseUrl;igS(e)||E.error("drm.net",2,"t.x");if(!GG(e,"fexp")){var l=["23898307","23914062","23916106","23883098"].filter(function(H){return E.dH.experiments.experiments[H]}); l.length>0&&(E.W.fexp=l.join())}l=g.T(Object.keys(E.W));for(var k=l.next();!k.done;k=l.next())k=k.value,e=K_0(e,k,E.W[k]);return e}; c3W=function(E,e,l){if(!E.U7())if(e){GL(E,{onkmtyp:l});E.status="km";switch(l){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":jze(E,e);return;default:E.publish("ctmp","message_type",{t:l,l:e.byteLength})}E.kt||($Q("drm_gk_f",void 0,E.videoData.pg),E.kt=!0,E.publish("newsession",E));if(Os(E.G)&&(e=ILW(e),!e))return;e=new dnl(e,++E.requestNumber,E.videoData.pg);GAl(e,function(k){FjX(E,k)},function(k,H,O){if(!E.U7()){var X=0; k.T.G>=3&&(X=1,H="drm.net.retryexhausted");GL(E,{onlcsrqerr:H,info:O});E.error(H,X,O);E.shouldRetry(xf(X),k)&&fLy(E,k)}}); g.L(E,e);VnW(E,e)}else E.error("drm.unavailable",1,"km.empty")}; jze=function(E,e){GL(E,{sdpvrq:1});E.J=Date.now();if(E.G.flavor!=="widevine")E.error("drm.provision",1,"e.flavor;f."+E.G.flavor+";l."+e.byteLength);else{var l={cpn:E.videoData.clientPlaybackNonce};Object.assign(l,E.dH.T);l=g.BJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",l);e={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, e)}),responseType:"arraybuffer"};g.iM(l,e,3,500).then(LR(function(k){k=k.xhr;if(!E.U7()){k=new Uint8Array(k.response);var H=String.fromCharCode.apply(null,k);try{var O=JSON.parse(H)}catch(X){}O&&O.signedResponse?(E.publish("ctmp","drminfo",{provisioning:1}),O=(Date.now()-E.J)/1E3,E.J=NaN,E.publish("ctmp","provs",{et:O.toFixed(3)}),E.Z&&E.Z.update(k)):(O=O&&O.error&&O.error.message,k="e.parse",O&&(k+=";m."+O),E.error("drm.provision",1,k))}}),LR(function(k){E.U7()||E.error("drm.provision",1,"e."+k.errorCode+ ";c."+(k.xhr&&k.xhr.status))}))}}; TL=function(E){var e;if(e=E.V&&E.Z!=null)E=E.Z,e=!(!E.T||!E.T.keyStatuses);return e}; VnW=function(E,e){E.status="km";$Q("drm_net_s",void 0,E.videoData.pg);var l=new g.La(E.dH.Py),k={context:g.kP(l.config_||g.lr())};k.drmSystem=SB0[E.G.flavor];k.videoId=E.videoData.videoId;k.cpn=E.videoData.clientPlaybackNonce;k.sessionId=E.sessionId;k.licenseRequest=g.Jz(e.message);k.drmParams=E.videoData.drmParams;isNaN(E.cryptoPeriodIndex)||(k.isKeyRotated=!0,k.cryptoPeriodIndex=E.cryptoPeriodIndex);var H,O,X=!!((H=E.videoData.G)==null?0:(O=H.video)==null?0:O.isHdr());k.drmVideoFeature=X?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(k.context&&k.context.client){if(H=E.dH.T)k.context.client.deviceMake=H.cbrand,k.context.client.deviceModel=H.cmodel,k.context.client.browserName=H.cbr,k.context.client.browserVersion=H.cbrver,k.context.client.osName=H.cos,k.context.client.osVersion=H.cosver;k.context.user=k.context.user||{};k.context.request=k.context.request||{};E.videoData.h0&&(k.context.user.credentialTransferTokens=[{token:E.videoData.h0,scope:"VIDEO"}]);k.context.request.mdxEnvironment=E.videoData.mdxEnvironment|| k.context.request.mdxEnvironment;E.videoData.iN&&(k.context.user.kidsParent={oauthToken:E.videoData.iN});g.CJ(E.G)&&(k.fairplayKeyId=g.Jz(cT0(E.fairplayKeyId)));g.FG(E.dH,g.Cb(E.videoData)).then(function(A){iwl(e,k,l,A);E.status="rs"})}else E.error("drm.net",2,"t.r;ic.0")}; FjX=function(E,e){if(!E.U7())if(GL(E,{onlcsrsp:1}),E.status="rr",e.statusCode!==0)E.error("drm.auth",1,"t.f;c."+e.statusCode,e.errorMessage||void 0);else{$Q("drm_kr_s",void 0,E.videoData.pg);if(e.heartbeatParams&&e.heartbeatParams.url&&E.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var l=E.G.G.match(/(.*)youtube.com/g);l&&(e.heartbeatParams.url=l[0]+e.heartbeatParams.url)}e.heartbeatParams&&E.publish("newlicense",e.heartbeatParams);e.G&&(E.S=e.G,E.videoData.dX||E.publish("newlicense", new w07),E.videoData.dX=!0,E.j=LY(E.S,function(k){return k.includes("HDR")})); e.T&&(E.dH.L("html5_enable_vp9_fairplay")&&A1(E.G)?(l=g.Jz(cT0(E.fairplayKeyId),4),E.T[l]={type:e.T[l],status:"unknown"}):E.T=Ep(e.T,function(k){return{type:k,status:"unknown"}})); ug(E.G)&&(e.message=mGe(g.Jz(e.message)));E.Z&&(GL(E,{updtks:1}),E.status="ku",E.Z.update(e.message).then(function(){$Q("drm_kr_f",void 0,E.videoData.pg);TL(E)||(GL(E,{ksApiUnsup:1}),E.publish("keystatuseschange",E))},function(k){k="msuf.req."+E.requestNumber+";msg."+g.c1(k.message,3); E.error("drm.keyerror",1,k)})); g.CJ(E.G)&&E.publish("fairplay_next_need_key_info",E.baseUrl,e.nextFairplayKeyId);E.dH.L("html5_enable_vp9_fairplay")&&A1(E.G)&&E.publish("qualitychange",r3e(E.S));e.sabrLicenseConstraint&&E.publish("sabrlicenseconstraint",e.sabrLicenseConstraint)}}; fLy=function(E,e){var l=e.T.getValue();l=new g.Nx(function(){VnW(E,e)},l); g.L(E,l);l.start();g.f$(e.T);GL(E,{rtyrq:1})}; Dny=function(E,e){for(var l=[],k=g.T(Object.keys(E.T)),H=k.next();!H.done;H=k.next())H=H.value,l.push(H+"_"+E.T[H].type+"_"+E.T[H].status);return l.join(e)}; bwZ=function(E){var e={};e[E.status]=TL(E)?Dny(E,"."):E.S.join(".");return e}; vyy=function(E,e,l){var k={};k.isHdr=e.includes("HDR");switch(e.replace("HDR","").replace("720","")){case "AUDIO":k.trackType=1;break;case "SD":k.trackType=2;break;case "HD":k.trackType=3;break;case "UHD1":k.trackType=4;break;case "UHD2":k.trackType=5;break;default:k.trackType=0}!k.trackType||l[e]||TL(E)&&!id(E,e)||(E.authorizedFormats.push(k),l[e]=!0)}; id=function(E,e){for(var l in E.T)if(E.T[l].status==="usable"&&E.T[l].type===e)return!0;return!1}; PV9=function(E,e){for(var l in E.T)if(E.T[l].type===e)return E.T[l].status}; GL=function(E,e){var l=l===void 0?!1:l;CL(e);(l||E.dH.f7())&&E.publish("ctmp","drmlog",e)}; aLl=function(E){var e=E[0];E[0]=E[3];E[3]=e;e=E[1];E[1]=E[2];E[2]=e;e=E[4];E[4]=E[5];E[5]=e;e=E[6];E[6]=E[7];E[7]=e}; r3e=function(E){return g.i_(E,"UHD2")||g.i_(E,"UHD2HDR")?"highres":g.i_(E,"UHD1")||g.i_(E,"UHD1HDR")?"hd2160":g.i_(E,"HD")||g.i_(E,"HDHDR")?"hd1080":g.i_(E,"HD720")||g.i_(E,"HD720HDR")?"hd720":"large"}; ILW=function(E){for(var e="",l=0;l'.charCodeAt(k);E=E.Z.createSession("video/mp4",e,l);return new $K(null,null,null,null,E)}; gyv=function(E,e){var l=E.J[e.sessionId];!l&&E.S&&(l=E.S,E.S=null,l.sessionId=e.sessionId,E.J[e.sessionId]=l);return l}; Zw7=function(E,e){var l=E.subarray(4);l=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2);l=String.fromCharCode.apply(null,l).match(/ek=([0-9a-f]+)/)[1];for(var k="",H=0;H19.2999?(E=l.Az,l=l.cB,l>=E&&(l=E* .75),e=(E-l)*.5,l=new zL(e,E,E-e-l,this)):l=null;break a;case "widevine":l=new dC(e,this,E);break a;default:l=null}if(this.W=l)g.L(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.BH,this),this.W.subscribe("log_qoe",this.Fz,this);xs(this.dH.experiments);this.Fz({cks:this.T.getInfo()})}; ny9=function(E){var e=NA0(E.S);e?e.then(LR(function(){szl(E)}),LR(function(l){if(!E.U7()){g.$F(l); var k="t.a";l instanceof DOMException&&(k+=";n."+l.name+";m."+l.message);E.publish("licenseerror","drm.unavailable",1,k,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(E.Fz({mdkrdy:1}),E.V=!0); E.pg&&(e=NA0(E.pg))}; qB7=function(E,e,l){E.J0=!0;l=new cP(e,l);E.dH.L("html5_eme_loader_sync")&&(E.J.get(e)||E.J.set(e,l));tn8(E,l)}; tn8=function(E,e){if(!E.U7()){E.Fz({onInitData:1});if(E.dH.L("html5_eme_loader_sync")&&E.videoData.Z&&E.videoData.Z.T){var l=E.j.get(e.initData);e=E.J.get(e.initData);if(!l||!e)return;e=l;l=e.initData;E.J.remove(l);E.j.remove(l)}E.Fz({initd:e.initData.length,ct:e.contentType});if(E.T.flavor==="widevine")if(E.h0&&!E.videoData.isLivePlayback)cp(E);else{if(!(E.dH.L("vp9_drm_live")&&E.videoData.isLivePlayback&&e.E1)){E.h0=!0;l=e.cryptoPeriodIndex;var k=e.T;YZv(e);e.E1||(k&&e.T!==k?E.publish("ctmp","cpsmm", {emsg:k,pssh:e.T}):l&&e.cryptoPeriodIndex!==l&&E.publish("ctmp","cpimm",{emsg:l,pssh:e.cryptoPeriodIndex}));E.publish("widevine_set_need_key_info",e)}}else E.BH(e)}}; szl=function(E){if(!E.U7())if(E.dH.L("html5_drm_set_server_cert")||A1(E.T)){var e=E.S.setServerCertificate();e?e.then(LR(function(l){E.dH.f7()&&E.publish("ctmp","ssc",{success:l})}),LR(function(l){E.publish("ctmp","ssce",{n:l.name, m:l.message})})).then(LR(function(){EKZ(E)})):EKZ(E)}else EKZ(E)}; EKZ=function(E){E.U7()||(E.V=!0,E.Fz({onmdkrdy:1}),cp(E))}; eQX=function(E){return E.T.flavor==="widevine"&&E.videoData.L("html5_drm_cpi_license_key")}; cp=function(E){if(E.J0&&E.V&&!E.Qd){for(;E.Z.length;){var e=E.Z[0],l=eQX(E)?mc8(e):g.Jz(e.initData);if(A1(E.T)&&!e.G)E.Z.shift();else{if(E.G.get(l))if(E.T.flavor!=="fairplay"||A1(E.T)){E.Z.shift();continue}else E.G.delete(l);YZv(e);break}}E.Z.length&&E.createSession(E.Z[0])}}; lal=function(E){var e;g.D(function(l){if(l.G==1){var k;if(k=g.vg()){var H;k=!((H=E.S.G)==null||!H.getMetrics)}return k?g.S(l,E.S.getMetrics(),2):l.return()}e=l.T;if(!e)return l.return();gP(e)||(e=g.QF(e));E.publish("ctmp","drm",{metrics:e});g.$0(l)})}; kLZ=function(){var E=aKp();return!(!E||E==="visible")}; OqX=function(E){var e=HqW();e&&document.addEventListener(e,E,!1)}; XpW=function(E){var e=HqW();e&&document.removeEventListener(e,E,!1)}; HqW=function(){if(document.visibilityState)var E="visibilitychange";else{if(!document[Xg+"VisibilityState"])return"";E=Xg+"visibilitychange"}return E}; uu7=function(E){g.a.call(this);var e=this;this.I4=E;this.TC=0;this.J=this.G=this.W=!1;this.S=0;this.F6=this.I4.Y();this.videoData=this.I4.getVideoData();this.Z=g.tJ(this.F6.experiments,"html5_delayed_retry_count");this.T=new g.Nx(function(){e.I4.d2()},g.tJ(this.F6.experiments,"html5_delayed_retry_delay_ms")); g.L(this,this.T)}; Qmy=function(E,e,l){var k=E.videoData.G,H=E.videoData.S,O=E.F6.L("html5_disable_codec_fallback_for_drm")&&E.videoData.hB();yJ(E.I4.getVideoData())&&E.F6.L("html5_gapless_fallback_on_qoe_restart")&&Wje(E.I4,"pe");if((e==="progressive.net.retryexhausted"||e==="fmt.unplayable"||e==="fmt.decode")&&!E.I4.Ev.W&&k&&k.itag==="22")return E.I4.Ev.W=!0,E.wO("qoe.restart",{reason:"fmt.unplayable.22"}),E.I4.eN(),!0;var X=!1;if(E.videoData.isExternallyHostedPodcast){if(X=E.videoData.SqM)l.mimeType=X.type,E.wH("3pp", {url:X.url});l.ns="3pp";E.I4.I7(e,1,"VIDEO_UNAVAILABLE",CL((new g.pL(e,l,1)).details));return!0}var A=E.TC+3E4<(0,g.dE)()||E.T.isActive();if(E.F6.L("html5_empty_src")&&E.videoData.isAd()&&e==="fmt.unplayable"&&/Empty src/.test(""+l.msg))return l.origin="emptysrc",E.wO("auth",l),!0;A||AMX(E.I4.Fm())||(l.nonfg="paused",A=!0,E.I4.pauseVideo());(e==="fmt.decode"||e==="fmt.unplayable")&&(H==null?0:SO(H)||rB(H))&&(Oh8(E.F6.W,H.DM),l.acfallexp=H.DM,X=A=!0);!A&&E.Z>0&&(E.T.start(),A=!0,l.delayed="1",--E.Z); H=E.I4.loader;A||!((k==null?0:Vp(k))||(k==null?0:IW(k)))||O||(Oh8(E.F6.W,k.DM),X=A=!0,l.cfallexp=k.DM);if(!A)return CdX(E,l);O=!1;E.W?E.TC=(0,g.dE)():O=E.W=!0;A=E.videoData;if(A.gH){A=A.gH.xQ();var C=Date.now()/1E3+1800;A=A6048E5&&wpv(E,"signature");return!1}; wpv=function(E,e){try{e={detail:"pr."+e},g.d3(E.F6)&&E.F6.L("html5_reload_by_kabuki_app")?E.I4.I7("qoe.restart",1,void 0,CL(e),"7"):(E.wO("qoe.restart",e),window.location.reload())}catch(l){}}; dmW=function(E,e){var l=E.F6.W;l.j=!1;l.G=!0;E.wO("qoe.restart",{e:e===void 0?"fmt.noneavailable":e,detail:"hdr"});E.I4.d2(!0)}; GLS=function(E,e,l,k,H,O){this.videoData=E;this.T=e;this.reason=l;this.G=k;this.token=H;this.videoId=O}; yW=function(E,e,l){this.dH=E;this.Bi=e;this.I4=l;this.N=this.J=this.T=this.S=this.j=this.G=0;this.W=!1;this.V=g.tJ(this.dH.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; TC8=function(E,e,l){!E.dH.L("html5_tv_ignore_capable_constraint")&&g.QS(E.dH)&&(l=l.compose(E.tA(e)));return l}; iqS=function(E){if(E.I4.Fm().isInline())return B$;var e;E.L("html5_exponential_memory_for_sticky")?e=g_(E.dH.AS,"sticky-lifetime")<.5?"auto":j$[Wm()]:e=j$[Wm()];return g.J9("auto",e,!1,"s")}; UmX=function(E,e){var l,k=$mv(E,(l=e.T)==null?void 0:l.videoInfos);l=E.I4.getPlaybackRate();return l>1&&k?(E=eu0(E.dH.W,e.T.videoInfos,l),new U1(0,E,!0,"o")):new U1(0,0,!1,"o")}; $mv=function(E,e){return e&&g.QS(E.dH)?e.some(function(l){return l.video.fps>32}):!1}; JM0=function(E,e){if(E.L("html5_disable_ustreamer_constraint_for_sabr")&&f9(e.videoData))return B$;var l=E.I4.Nn();E.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&l&&l.DE>0&&yG(e.videoData.kI)&&(E=l.DE,e.videoData.kI=new U1(0,E,!1,"u"));return e.videoData.kI}; cMv=function(E,e){var l;a:if((l=e.T)&&l.videoInfos.length){for(var k=g.T(l.videoInfos),H=k.next();!H.done;H=k.next()){H=H.value;var O=void 0;if((O=H.G)==null?0:O.smooth){l=H.video.qualityOrdinal;break a}}l=l.videoInfos[0].video.qualityOrdinal}else l=0;TxS()&&!g.QS(E.dH)&&IW(e.T.videoInfos[0])&&(l=Math.min(l,g.$f.large));k=g.tJ(E.dH.experiments,"html5_chipset_soft_cap");k>0&&(l=Math.min(l,k));if(k=g.tJ(E.dH.experiments,"html5_max_vertical_resolution")){H=4320;for(O=0;Ok&&(H=Math.min(H,X.video.qualityOrdinal))}if(H<4320){for(X=O=0;X32){H=!0;break a}}H=!1}H&&(l=Math.min(l,k));(k=g.tJ(E.dH.experiments,"html5_live_quality_cap"))&&e.videoData.isLivePlayback&&(l=Math.min(l,k));l=yMl(E,e,l);E=g.tJ(E.dH.experiments,"html5_byterate_soft_cap");return new U1(0,l===4320?0:l,!1,"d",E)}; Ia0=function(E){var e,l,k,H;return g.D(function(O){switch(O.G){case 1:return E.T.T&&typeof((e=navigator.mediaCapabilities)==null?void 0:e.decodingInfo)==="function"?g.S(O,Promise.resolve(),2):O.return(Promise.resolve());case 2:l=g.T(E.T.videoInfos),k=l.next();case 3:if(k.done){O.xt(0);break}H=k.value;return g.S(O,v37(H),4);case 4:k=l.next(),O.xt(3)}})}; fa7=function(E,e){if(!e.videoData.G||E.L("html5_disable_performance_downgrade"))return!1;Date.now()-E.j>6E4&&(E.G=0);E.G++;E.j=Date.now();if(E.G!==4)return!1;FEe(E,e.videoData.G);return!0}; SY9=function(E,e,l,k){if(!e||!l||!e.videoData.G)return!1;var H=g.tJ(E.dH.experiments,"html5_df_downgrade_thresh"),O=E.L("html5_log_media_perf_info");if(!((0,g.dE)()-E.S<5E3?0:O||H>0))return!1;var X=((0,g.dE)()-E.S)/1E3;E.S=(0,g.dE)();l=l.getVideoPlaybackQuality();if(!l)return!1;var A=l.droppedVideoFrames-E.J,C=l.totalVideoFrames-E.N;E.J=l.droppedVideoFrames;E.N=l.totalVideoFrames;var p=l.displayCompositedVideoFrames===0?0:l.displayCompositedVideoFrames||-1;O&&E.dH.f7()&&E.I4.wH("ddf",{dr:l.droppedVideoFrames, de:l.totalVideoFrames,comp:p});if(k)return E.T=0,!1;if((C-A)/X>E.V||!H||g.QS(E.dH))return!1;E.T=(C>60?A/C:0)>H?E.T+1:0;if(E.T!==3)return!1;FEe(E,e.videoData.G);E.I4.wH("dfd",Object.assign({dr:l.droppedVideoFrames,de:l.totalVideoFrames},Vcv()));return!0}; FEe=function(E,e){var l=e.DM,k=e.video.fps,H=e.video.qualityOrdinal-1,O=E.Z;e=""+l+(k>49?"p60":k>32?"p48":"");l=Es(l,k,O);H>0&&(l=Math.min(l,H));if(!jc.has(e)&&wk().includes(e)){var X=l;l=oJ();+l[e]>0&&(X=Math.min(+l[e],X));l[e]!==X&&(l[e]=X,g.Jw("yt-player-performance-cap",l,2592E3))}else if(jc.has(e)||O==null){a:{X=X===void 0?!0:X;k=wk().slice();if(X){if(k.includes(e))break a;k.push(e)}else{if(!k.includes(e))break a;k.splice(k.indexOf(e),1)}g.Jw("yt-player-performance-cap-active-set",k,2592E3)}qc.set(e, l)}else jc.add(e),O==null||O.set(e,l);E.I4.Ii()}; rMv=function(E,e){if(!e.T.T)return E.W?new U1(0,360,!1,"b"):B$;for(var l=!1,k=!1,H=g.T(e.T.videoInfos),O=H.next();!O.done;O=H.next())Vp(O.value)?l=!0:k=!0;l=l&&k;k=0;H=g.tJ(E.dH.experiments,"html5_performance_cap_floor");H=E.dH.G?240:H;e=g.T(e.T.videoInfos);for(O=e.next();!O.done;O=e.next()){var X=O.value;if(!l||!Vp(X))if(O=Es(X.DM,X.video.fps,E.Z),X=X.video.qualityOrdinal,Math.max(O,H)>=X){k=X;break}}return new U1(0,k,!1,"b")}; DmZ=function(E,e){var l=E.I4.Fm();return l.isInline()&&!e.A4?new U1(0,480,!1,"v"):f9(e)?B$:l.isBackground()&&BA()/1E3>60&&!g.QS(E.dH)?new U1(0,360,!1,"v"):B$}; bqp=function(E,e,l){if(E.dH.experiments.P5("html5_disable_client_autonav_cap_for_onesie")&&e.fetchType==="onesie"||g.QS(E.dH)&&(Wm(-1)>=1080||e.osid))return B$;var k=g.tJ(E.dH.experiments,"html5_autonav_quality_cap"),H=g.tJ(E.dH.experiments,"html5_autonav_cap_idle_secs");return k&&e.isAutonav&&BA()/1E3>H?(l&&(k=yMl(E,l,k)),new U1(0,k,!1,"e")):B$}; yMl=function(E,e,l){if(E.L("html5_optimality_defaults_chooses_next_higher")&&l)for(E=e.T.videoInfos,e=1;e=0||(E.provider.I4.getVisibilityState()===3?E.W=!0:(E.T=g.Cq(E.provider),E.delay.start()))}; aaX=function(E){if(!(E.G<0)){var e=g.Cq(E.provider),l=e-E.S;E.S=e;E.playerState.state===8?E.playTimeSecs+=l:E.playerState.isBuffering()&&!g.m(E.playerState,16)&&(E.rebufferTimeSecs+=l)}}; LE8=function(E){var e;switch((e=E.dH.playerCanaryStage)==null?void 0:e.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"}}; hQX=function(E){this.provider=E;this.j=!1;this.T=0;this.S=-1;this.Dc=NaN;this.Z=0;this.segments=[];this.J=this.W=0;this.previouslyEnded=!1;this.V=this.provider.I4.getVolume();this.N=this.provider.I4.isMuted()?1:0;this.G=Fu(this.provider)}; fq=function(E){E.G.startTime=E.Z;E.G.endTime=E.T;var e=!1;E.segments.length&&g.wr(E.segments).isEmpty()?(E.segments[E.segments.length-1].previouslyEnded&&(E.G.previouslyEnded=!0),E.segments[E.segments.length-1]=E.G,e=!0):E.segments.length&&E.G.isEmpty()||(E.segments.push(E.G),e=!0);e?E.G.endTime===0&&(E.previouslyEnded=!1):E.G.previouslyEnded&&(E.previouslyEnded=!0);E.W+=E.T-E.Z;E.G=Fu(E.provider);E.G.previouslyEnded=E.previouslyEnded;E.previouslyEnded=!1;E.Z=E.T}; NCS=function(E){McZ(E);E.J=g.A2(function(){E.update()},100); E.Dc=g.Cq(E.provider);E.G=Fu(E.provider)}; McZ=function(E){g.pE(E.J);E.J=NaN}; Zql=function(E,e,l){l-=E.Dc;return e===E.T&&l>.5}; YY8=function(E,e,l,k){this.dH=e;this.bY=l;this.segments=[];this.experimentIds=[];this.gH=this.Wh=this.isFinal=this.delayThresholdMet=this.GX=this.qM=this.autoplay=this.autonav=!1;this.C7="yt";this.J=[];this.j=this.V=null;this.sendVisitorIdHeader=this.b3=!1;this.N=this.pageId="";this.W=l==="watchtime";this.Z=l==="playback";this.Qd=l==="atr";this.CD=l==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Qd?"/api/stats/"+l:"//"+e.rJ+"/api/stats/"+l;k&&(this.Wh=k.fs,k.rtn&&(this.j=k.rtn),this.W?(this.playerState= k.state,k.rti>0&&(this.V=k.rti)):(this.UJ=k.mos,this.wG=k.volume,k.at&&(this.adType=k.at)),k.autonav&&(this.autonav=k.autonav),k.inview!=null&&(this.iN=k.inview),k.size&&(this.hN=k.size),k.playerwidth&&(this.AS=k.playerwidth),k.playerheight&&(this.Fr=k.playerheight));this.Fy=g.o$(e.T);this.N=d_(e.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.jE=g.o$(e.GX);this.f0=e.C7;this.experimentIds=s9Z(e.experiments);this.R4=e.dO;this.C7=e.pg;this.region=e.region; this.userAge=e.userAge;this.Yt=e.Kw;this.MM=BA();this.sendVisitorIdHeader=e.sendVisitorIdHeader;this.h0=e.L("vss_pings_using_networkless")||e.L("kevlar_woffle");this.JS=e.L("vss_final_ping_send_and_write");this.fg=e.L("vss_use_send_and_write");this.pageId=e.pageId;this.W7=e.L("vss_playback_use_send_and_write");e.livingRoomAppMode&&(this.livingRoomAppMode=e.livingRoomAppMode);this.lk=e.S&&e.L("embeds_append_synth_ch_headers");g.qA(e)&&(this.J0=e.Qd);g.lG(g.A5(e))&&this.J.push(1);this.accessToken=g.Cb(E); E.Y7[this.bY]?this.S=E.Y7[this.bY]:E.Y7.playback&&(this.S=E.Y7.playback);this.adFormat=E.adFormat;this.adQueryId=E.adQueryId;this.autoplay=RSZ(E);this.Z&&(this.qM=E.QA&&OT(E)==="adunit"?!0:!1);this.autonav=E.isAutonav||this.autonav;this.contentVideoId=uc(E);this.clientPlaybackNonce=E.clientPlaybackNonce;this.GX=E.r$;E.J&&(this.kt=E.J,this.In=E.gJ);E.mdxEnvironment&&(this.mdxEnvironment=E.mdxEnvironment);this.T=E.je;this.dC=E.dC;E.G&&(this.dO=E.G.itag,E.S&&E.S.itag!==this.dO&&(this.rH=E.S.itag));E.T&& S$(E.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=OT(E);this.gH=E.W7?!1:E.wG;this.je=E.iL;if(e=Y7(E))this.Dr=e;this.YU=E.mN;this.partnerId=E.partnerId;this.eventId=E.eventId;this.playlistId=E.cH||E.playlistId;this.To=E.To;this.mY=E.mY;this.bV=E.bV;this.Zc=E.Zc;this.subscribed=E.subscribed;this.videoId=E.videoId;this.videoMetadata=E.videoMetadata;this.visitorData=E.visitorData;this.osid=E.osid;this.tZ=E.tZ;this.referrer=E.referrer;this.VJ=E.w4||E.VJ;this.ND=E.Ze;this.Mx=E.Mx;this.userGenderAge= E.userGenderAge;this.aU=E.aU;this.embedsRct=E.embedsRct;this.embedsRctn=E.embedsRctn;g.qA(this.dH)&&E.mutedAutoplay&&(E.mutedAutoplayDurationMode===2&&E.limitedPlaybackDurationInSeconds===0&&E.endSeconds===0?this.J.push(7):this.J.push(2));E.isEmbedsShortsMode(new g.YX(this.AS,this.Fr),!!this.playlistId)&&this.J.push(3);g.Gz(E)&&this.J.push(4);this.jR=E.X2;E.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=E.compositeLiveIngestionOffsetToken)}; mmp=function(E,e){var l=E.sendVisitorIdHeader?E.visitorData:void 0;return g.FG(E.dH,E.accessToken).then(function(k){return RB7(E.uri,E.dH,E.pageId,l,k,e,E.lk)})}; nKW=function(E,e){return function(){E.dH.L("html5_simplify_pings")?(E.T=E.c5,E.yf=e(),E.MM=0,E.send()):mmp(E).then(function(l){var k=gKS(E);k.cmt=k.len;k.lact="0";var H=e().toFixed(3);k.rt=Number(H).toString();k=g.BJ(E.uri,k);E.dH.L("vss_through_gel_double")&&KEW(k);E.h0?(l==null&&(l={}),E.fg?PN().sendAndWrite(k,l):PN().sendThenWrite(k,l)):l?g.zT(k,l):g.jA(k)})}}; gKS=function(E){var e={ns:E.C7,el:E.eventLabel,cpn:E.clientPlaybackNonce,ver:2,cmt:E.G(E.T),fmt:E.dO,fs:E.Wh?"1":"0",rt:E.G(E.yf),adformat:E.adFormat,content_v:E.contentVideoId,euri:E.f0,lact:E.MM,live:E.Dr,cl:(786498154).toString(),mos:E.UJ,state:E.playerState,volume:E.wG};E.subscribed&&(e.subscribed="1");Object.assign(e,E.Fy);E.N==="all"?Object.assign(e,E.jE):E.N==="once"&&E.Z&&Object.assign(e,E.jE);E.autoplay&&(e.autoplay="1");E.qM&&(e.sautoplay="1");E.GX&&(e.dni="1");!E.W&&E.J0&&(e.epm=RQp[E.J0]); E.isFinal&&(e["final"]="1");E.gH&&(e.splay="1");E.dC&&(e.delay=E.dC);E.R4&&(e.hl=E.R4);E.region&&(e.cr=E.region);E.userGenderAge&&(e.uga=E.userGenderAge);E.userAge!==void 0&&E.Yt&&(e.uga=E.Yt+E.userAge);E.c5!==void 0&&(e.len=E.G(E.c5));!E.W&&E.experimentIds.length>0&&(e.fexp=E.experimentIds.toString());E.j!==null&&(e.rtn=E.G(E.j));E.VJ&&(e.feature=E.VJ);E.mY&&(e.ctrl=E.mY);E.bV&&(e.ytr=E.bV);E.rH&&(e.afmt=E.rH);E.offlineDownloadUserChoice&&(e.ODUC=E.offlineDownloadUserChoice);E.pg&&(e.lio=E.G(E.pg)); E.W?(e.idpj=E.je,e.ldpj=E.YU,E.delayThresholdMet&&(e.dtm="1"),E.V!=null&&(e.rti=E.G(E.V)),E.aU&&(e.ald=E.aU),E.compositeLiveIngestionOffsetToken&&(e.clio=E.compositeLiveIngestionOffsetToken)):E.adType!==void 0&&(e.at=E.adType);E.hN&&(E.Z||E.W)&&(e.size=E.hN);E.Z&&E.J.length&&(e.pbstyle=E.J.join(","));E.iN!=null&&(E.Z||E.W)&&(e.inview=E.G(E.iN));E.W&&(e.volume=VW(E,g.o7(E.segments,function(k){return k.volume})),e.st=VW(E,g.o7(E.segments,function(k){return k.startTime})),e.et=VW(E,g.o7(E.segments,function(k){return k.endTime})), LY(E.segments,function(k){return k.playbackRate!==1})&&(e.rate=VW(E,g.o7(E.segments,function(k){return k.playbackRate}))),LY(E.segments,function(k){return k.T!=="-"})&&(e.als=g.o7(E.segments,function(k){return k.T}).join(",")),LY(E.segments,function(k){return k.previouslyEnded})&&(e.pe=g.o7(E.segments,function(k){return""+ +k.previouslyEnded}).join(","))); e.muted=VW(E,g.o7(E.segments,function(k){return k.muted?1:0})); LY(E.segments,function(k){return k.visibilityState!==0})&&(e.vis=VW(E,g.o7(E.segments,function(k){return k.visibilityState}))); LY(E.segments,function(k){return k.connectionType!==0})&&(e.conn=VW(E,g.o7(E.segments,function(k){return k.connectionType}))); LY(E.segments,function(k){return k.G!==0})&&(e.blo=VW(E,g.o7(E.segments,function(k){return k.G}))); LY(E.segments,function(k){return!!k.Z})&&(e.blo=g.o7(E.segments,function(k){return k.Z}).join(",")); LY(E.segments,function(k){return!!k.compositeLiveStatusToken})&&(e.cbs=g.o7(E.segments,function(k){return k.compositeLiveStatusToken}).join(",")); LY(E.segments,function(k){return k.S!=="-"})&&(e.cc=g.o7(E.segments,function(k){return k.S}).join(",")); LY(E.segments,function(k){return k.clipId!=="-"})&&(e.clipid=g.o7(E.segments,function(k){return k.clipId}).join(",")); if(LY(E.segments,function(k){return!!k.audioId})){var l="au"; E.Z&&(l="au_d");e[l]=g.o7(E.segments,function(k){return k.audioId}).join(",")}EN()&&E.kt&&(e.ctt=E.kt,e.cttype=E.In,e.mdx_environment=E.mdxEnvironment); E.CD&&(e.etype=E.SR!==void 0?E.SR:0);E.ND&&(e.uoo=E.ND);E.livingRoomAppMode&&E.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(e.clram=smX[E.livingRoomAppMode]||E.livingRoomAppMode);E.S?tc7(E,e):(e.docid=E.videoId,e.referrer=E.referrer,e.ei=E.eventId,e.of=E.tZ,e.osid=E.osid,e.vm=E.videoMetadata,E.adQueryId&&(e.aqi=E.adQueryId),E.autonav&&(e.autonav="1"),E.playlistId&&(e.list=E.playlistId),E.Zc&&(e.ssrt="1"),E.Mx&&(e.upt=E.Mx));E.Z&&(E.embedsRct&&(e.rct=E.embedsRct),E.embedsRctn&&(e.rctn= E.embedsRctn),E.compositeLiveIngestionOffsetToken&&(e.clio=E.compositeLiveIngestionOffsetToken));E.jR&&(e.host_cpn=E.jR);return e}; tc7=function(E,e){if(e&&E.S){var l=new Set(["q","feature","mos"]),k=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);E.S.ns==="3pp"&&(e.ns="3pp");for(var O=g.T(Object.keys(E.S)),X=O.next();!X.done;X=O.next())X=X.value,k.has(X)||l.has(X)||H.has(X)&&!E.S[X]||(e[X]=E.S[X])}}; VW=function(E,e){return g.o7(e,E.G).join(",")}; KEW=function(E){E.indexOf("watchtime")!==-1&&g.E0("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:E}})}; qYl=function(E,e){E.attestationResponse&&mmp(E).then(function(l){l=l||{};l.method="POST";l.postParams={atr:E.attestationResponse};E.h0?E.fg?PN().sendAndWrite(e,l):PN().sendThenWrite(e,l):g.zT(e,l)})}; Sc=function(E){g.a.call(this);this.provider=E;this.J="paused";this.W=NaN;this.j=[10,10,10,40];this.V=this.N=0;this.kt=this.Qd=this.SR=this.pg=this.Z=!1;this.G=this.S=NaN;this.logger=new g.da("vss");this.T=new hQX(E)}; H6S=function(E){if(!E.Z){E.provider.videoData.by===16623&&g.UJ(Error("Playback for EmbedPage"));var e=rC(E,"playback");E.j=EaS(E);NCS(E.T);e.j=Da(E);E.G>0&&(e.T-=E.G);e.send();if(E.provider.videoData.LS){e=E.provider.dH;var l=E.provider.videoData,k={html5:"1",video_id:l.videoId,cpn:l.clientPlaybackNonce,ei:l.eventId,ptk:l.LS,oid:l.dk,ptchn:l.E6,pltype:l.Id,content_v:uc(l)};l.sA&&Object.assign(k,{m:l.sA});e=g.BJ(e.Uv+"ptracking",k);eml(E,e)}E.provider.videoData.dC||(lOy(E),kxW(E));E.Z=!0;E=E.T;E.T= E.Zu();E.Dc=g.Cq(E.provider);!(E.Z===0&&E.T<5)&&E.T-E.Z>2&&(E.Z=E.T);E.j=!0}}; EaS=function(E){var e=E.provider.videoData.iL,l=E.provider.videoData.mN,k=[10+e,10,10,40+l-e,40],H,O=(H=E.provider.videoData.getPlayerResponse())==null?void 0:H.playbackTracking,X=O==null?void 0:O.videostatsScheduledFlushWalltimeSeconds;H=O==null?void 0:O.videostatsDefaultFlushIntervalSeconds;if(!(X&&X.length>0&&H))return E.logger.info("Missing valid scheduled pings config "+X+" "+H),k;e=[X[0]+e].concat(g.Be(X.slice(1).map(function(A,C){return A-X[C]})),[H+l-e, H]);return e.some(function(A){return A<0})?(E.logger.T(347111855,"Neg vss scheduled pings "+X+" "+H),k):e}; Da=function(E,e){e=e===void 0?NaN:e;var l=g.Cq(E.provider);e=isNaN(e)?l:e;e=Math.ceil(e);var k=E.j[E.N];E.N+11E3;!(O.length>1)&&O[0].isEmpty()||A||(X.j=Da(E,H));X.send();E.V++}},(H-l)*1E3); return E.S=H}; bd=function(E){g.CE(E.W);E.W=NaN}; O6X=function(E){E.T.update();E=E.T;E.segments.length&&E.T===E.Z||fq(E);var e=E.segments;E.segments=[];return e}; rC=function(E,e){var l=uV8(E.provider);Object.assign(l,{state:E.J});e=new YY8(E.provider.videoData,E.provider.dH,e,l);e.T=E.provider.I4.Zu();l=E.provider.videoData.clientPlaybackNonce;e.T=E.provider.I4.CA(l);E.provider.videoData.isLivePlayback||(e.c5=E.provider.I4.getDuration(l));E.provider.videoData.T&&(l=E.provider.videoData.T.pY(e.T))&&(e.pg=l-e.T,E.provider.dH.L("html5_disable_live_dvr_shrink_for_cdm_vss")&&F2(E.provider.videoData)&&(e.T+=E.provider.I4.eE(),e.pg-=E.provider.I4.eE()));e.yf=g.Cq(E.provider); e.segments=[Fu(E.provider)];return e}; Xcy=function(E,e){var l=rC(E,"watchtime");Aa0(E)&&(l.delayThresholdMet=!0,E.SR=!0);if(E.G>0){for(var k=g.T(e),H=k.next();!H.done;H=k.next())H=H.value,H.startTime-=E.G,H.endTime-=E.G;l.T-=E.G}else l.T=E.T.T;l.segments=e;return l}; vp=function(E,e){var l=C0X(E,!isNaN(E.S));e&&(E.S=NaN);return l}; C0X=function(E,e){var l=Xcy(E,O6X(E));!isNaN(E.S)&&e&&(l.V=E.S);return l}; Aa0=function(E){var e;if(e=E.provider.videoData.isLoaded()&&E.provider.videoData.dC&&E.Z&&!E.SR)e=E.T,e=e.W+e.Zu()-e.Z>=E.provider.videoData.dC;return!!e}; lOy=function(E){E.provider.videoData.youtubeRemarketingUrl&&!E.Qd&&(eml(E,E.provider.videoData.youtubeRemarketingUrl),E.Qd=!0)}; kxW=function(E){E.provider.videoData.googleRemarketingUrl&&!E.kt&&(eml(E,E.provider.videoData.googleRemarketingUrl),E.kt=!0)}; pc8=function(E){if(!E.U7()&&E.Z){E.J="paused";var e=vp(E);e.isFinal=!0;e.send();E.dispose()}}; x_Z=function(E,e){if(!E.U7())if(g.m(e.state,2)||g.m(e.state,512)){if(E.J="paused",g.Xh(e,2)||g.Xh(e,512))g.Xh(e,2)&&(E.T.previouslyEnded=!0),E.Z&&(bd(E),vp(E).send(),E.S=NaN)}else if(g.m(e.state,8)){E.J="playing";var l=E.Z&&isNaN(E.W)?Da(E):NaN;if(!isNaN(l)&&(Ou(e,64)<0||Ou(e,512)<0)){var k=C0X(E,!1);k.j=l;k.send()}g.Xh(e,16)&&e.state.seekSource===58&&(E.T.previouslyEnded=!0)}else E.J="paused"}; QNZ=function(E,e,l){if(!E.pg){l||(l=rC(E,"atr"));l.attestationResponse=e;try{l.send()}catch(k){if(k.message!=="Unknown Error")throw k;}E.pg=!0}}; eml=function(E,e){var l=E.provider.dH;g.FG(E.provider.dH,g.Cb(E.provider.videoData)).then(function(k){var H=E.provider.dH.pageId,O=E.provider.dH.sendVisitorIdHeader?E.provider.videoData.visitorData:void 0,X=E.provider.dH.L("vss_pings_using_networkless")||E.provider.dH.L("kevlar_woffle"),A=E.provider.dH.L("allow_skip_networkless");k=RB7(e,l,H,O,k);sRp(e,k,{token:E.provider.videoData.J,lQ:E.provider.videoData.gJ,mdxEnvironment:E.provider.videoData.mdxEnvironment},l,void 0,X&&!A,!1,!0)})}; Wwv=function(){this.endTime=this.startTime=-1;this.S="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.G=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; Pp=function(E,e,l){this.videoData=E;this.dH=e;this.I4=l;this.T=void 0}; g.Cq=function(E){return BpS(E)()}; BpS=function(E){if(!E.T){var e=g.pW(function(k){var H=(0,g.dE)();k&&H<=631152E6&&(E.I4.wH("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},E.dH.L("html5_validate_yt_now")),l=e(); E.T=function(){return Math.round(e()-l)/1E3}; E.I4.Wt()}return E.T}; uV8=function(E){var e=E.I4.ZN()||{};e.fs=E.I4.PQ();e.volume=E.I4.getVolume();e.muted=E.I4.isMuted()?1:0;e.mos=e.muted;e.clipid=E.I4.un();var l;e.playerheight=((l=E.I4.getPlayerSize())==null?void 0:l.height)||0;var k;e.playerwidth=((k=E.I4.getPlayerSize())==null?void 0:k.width)||0;E=E.videoData;l={};E.G&&(l.fmt=E.G.itag,E.S&&(E.bY?E.S.itag!==E.G.itag:E.S.itag!=E.G.itag)&&(l.afmt=E.S.itag));l.ei=E.eventId;l.list=E.playlistId;l.cpn=E.clientPlaybackNonce;E.videoId&&(l.v=E.videoId);E.NT&&(l.infringe=1); (E.W7?0:E.wG)&&(l.splay=1);(k=Y7(E))&&(l.live=k);E.QA&&(l.sautoplay=1);E.vG&&(l.autoplay=1);E.To&&(l.sdetail=E.To);E.partnerId&&(l.partnerid=E.partnerId);E.osid&&(l.osid=E.osid);E.HF&&(l.cc=g.UJW(E.HF));return Object.assign(e,l)}; Aty=function(E){var e=SwW();if(e)return oaS[e]||oaS.other;if(g.QS(E.dH)){E=navigator.userAgent;if(/[Ww]ireless[)]/.test(E))return 3;if(/[Ww]ired[)]/.test(E))return 30}return 0}; Fu=function(E){var e=new Wwv,l;e.S=((l=uV8(E).cc)==null?void 0:l.toString())||"-";e.playbackRate=E.I4.getPlaybackRate();l=E.I4.getVisibilityState();l!==0&&(e.visibilityState=l);E.dH.ND&&(e.G=1);e.Z=E.videoData.sV;e.compositeLiveStatusToken=E.videoData.compositeLiveStatusToken;l=E.I4.getAudioTrack();l.gC&&l.gC.id&&l.gC.id!=="und"&&(e.audioId=l.gC.id);e.connectionType=Aty(E);e.volume=E.I4.getVolume();e.muted=E.I4.isMuted();e.clipId=E.I4.un()||"-";e.T=E.videoData.SS||"-";return e}; g.am=function(E,e){g.a.call(this);var l=this;this.provider=E;this.Z=new Map;this.bq=new g.zU;this.p5={FLR:function(){return l.qoe}, eED:function(){return l.T}, YEd:function(){return l.G}}; this.provider.videoData.aG()&&!this.provider.videoData.Vh&&(this.T=new Sc(this.provider),this.T.G=0,g.L(this,this.T),this.qoe=new g.ud(this.provider,e),g.L(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Yz=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.Yz,this.T));if(E.dH.playerCanaryState==="canary"||E.dH.playerCanaryState==="holdback")this.G=new Im(this.provider),g.L(this,this.G)}; wcZ=function(E){E.G&&Pde(E.G);E.qoe&&dXy(E.qoe)}; zm8=function(E){if(E.qoe){E=E.qoe;for(var e=E.provider.videoData,l=E.provider.dH,k=g.T(l.Jr),H=k.next();!H.done;H=k.next())xK(E,H.value);if(E.provider.L("html5_enable_qoe_cat_list"))for(k=g.T(e.rJ),H=k.next();!H.done;H=k.next())xK(E,H.value);else e.Jr&&xK(E,E.provider.videoData.Jr);e.sK()&&(k=e.T,b7(e)&&xK(E,"manifestless"),k&&Yw(k)&&xK(E,"live-segment-"+Yw(k).toFixed(1)));f9(e)?xK(E,"sabr"):E.yq(aR(e));if(pb(e)||e.Z0())e.Z0()&&xK(E,"ssa"),xK(E,"lifa");F2(e)&&xK(E,"cdm");e.gatewayExperimentGroup&& (k=e.gatewayExperimentGroup,k==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?k="spkadtrt":k==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(k="spkadctrl"),xK(E,k));l.pg!=="yt"&&E.T.set("len",[e.lengthSeconds.toFixed(2)]);e.cotn&&!Qm(e)&&E.oR(!0);l.f7()&&(e=Obv())&&E.wH("cblt",{m:e});if(l.L("html5_log_screen_diagonal")){l=E.wH;var O;e=((O=window.H5vccScreen)==null?0:O.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;l.call(E,"cbltdiag",{v:e})}}}; d_y=function(E,e){E.T&&(E=E.T,e===58?E.T.update():E.Z&&(bd(E),vp(E).send(),E.S=NaN))}; GxS=function(E,e){if(g.Xh(e,1024)||g.Xh(e,512)||g.Xh(e,4)){if(E.G){var l=E.G;l.G>=0||(l.T=-1,l.delay.stop())}E.qoe&&(l=E.qoe,l.j||(l.Z=-1))}if(E.provider.videoData.enableServerStitchedDai&&E.Yz){var k;(k=E.Z.get(E.Yz))==null||x_Z(k,e)}else E.T&&x_Z(E.T,e);if(E.qoe){k=E.qoe;l=e.state;var H=g.Cq(k.provider),O=k.getPlayerState(l),X=l.seekSource||void 0;if(O!==k.bq){k.SR||H= 10&&k.playTimeSecs<=180&&(k.T.set("qoealert",["1"]),k.dC=!0)),O!=="B"||k.bq!=="PL"&&k.bq!=="PB"||(k.isBuffering=!0),k.G=H);k.bq==="PL"&&(O==="B"||O==="S")||k.provider.dH.f7()?pq(k,H):(k.In||O!=="PL"||(k.In=!0,CcW(k,H,k.provider.I4.Wb())),uDX(k,H));O==="PL"&&g.ZC(k.yf);var A=[O];O==="S"&&X&&A.push("ss."+X);g.Xu(k,H,"vps",A);k.bq=O;k.pg=H;k.G=H;k.S=!0}O=l.Bf;g.m(l,128)&&O&&(O.jw=O.jw||"",W$X(k,H,O.errorCode,O.eQ,O.jw));(g.m(l,2)||g.m(l,128))&&k.reportStats(H);l.isPlaying()&&!k.j&&(k.Z>=0&&k.T.set("user_intent", [k.Z.toString()]),k.j=!0);xXZ(k)}E.G&&(E=E.G,aaX(E),E.playerState=e.state,E.G>=0&&g.Xh(e,16)&&E.seekCount++,e.state.isError()&&E.send())}; Tp7=function(E){E.G&&E.G.send();if(E.qoe){var e=E.qoe;if(e.S){e.bq==="PL"&&(e.bq="N");var l=g.Cq(e.provider);g.Xu(e,l,"vps",[e.bq]);e.j||(e.Z>=0&&e.T.set("user_intent",[e.Z.toString()]),e.j=!0);e.provider.dH.f7()&&e.wH("finalized",{});e.h0=!0;e.reportStats(l)}}if(E.provider.videoData.enableServerStitchedDai)for(e=g.T(E.Z.values()),l=e.next();!l.done;l=e.next())pc8(l.value);else E.T&&pc8(E.T);E.dispose()}; i6W=function(E,e){E.T&&QNZ(E.T,e)}; $_y=function(E){if(!E.T)return null;var e=rC(E.T,"atr");return function(l){E.T&&QNZ(E.T,l,e)}}; U_X=function(E,e,l,k){l.adFormat=l.f0;var H=e.I4;e=new Sc(new Pp(l,e.dH,{getDuration:function(){return l.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, Zu:function(){return H.Zu()}, CA:function(){return H.CA()}, Wb:function(){return H.Wb()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return l.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, Bb:function(){return H.Bb()}, getVisibilityState:function(){return H.getVisibilityState()}, VR:function(){return H.VR()}, ZN:function(){return H.ZN()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, PQ:function(){return H.PQ()}, un:function(){return H.un()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, Wt:function(){H.Wt()}, wH:function(O,X){H.wH(O,X)}, Bv:function(){return H.Bv()}, eE:function(){return H.eE()}})); e.G=k;g.L(E,e);return e}; Ja7=function(){this.Ml=0;this.Z=this.Cl=this.o5=this.G=NaN;this.T={};this.bandwidthEstimate=NaN}; caS=function(){this.T=g.Nr;this.array=[]}; jNX=function(E,e,l){var k=[];for(e=yaX(E,e);el)break}return k}; IO9=function(E,e){var l=[];E=g.T(E.array);for(var k=E.next();!k.done&&!(k=k.value,k.contains(e)&&l.push(k),k.start>e);k=E.next());return l}; Fwp=function(E){return E.array.slice(yaX(E,0x7ffffffffffff),E.array.length)}; yaX=function(E,e){E=N$(E.array,function(l){return e-l.start||1}); return E<0?-(E+1):E}; fO0=function(E,e){var l=NaN;E=g.T(E.array);for(var k=E.next();!k.done;k=E.next())if(k=k.value,k.contains(e)&&(isNaN(l)||k.ende&&(isNaN(l)||k.startE.mediaTime+E.W&&e1)E.S=!0;if((H===void 0?0:H)||isNaN(E.G))E.G=e;if(E.T)e!==E.mediaTime&&(E.T=!1);else if(e>0&&E.mediaTime===e){H=1500;if(E.dH.L("html5_buffer_underrun_transition_fix")){H=g.tJ(E.dH.experiments,"html5_min_playback_advance_for_steady_state_secs");var O=g.tJ(E.dH.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&O>0&&Math.abs(e-E.G)(k||!E.S?H:400)}E.mediaTime=e;E.Z=l;return!1}; hml=function(E,e){this.videoData=E;this.T=e}; M0v=function(E,e,l){return e.Ho(l).then(function(){return J2(new hml(e,e.Z))},function(k){k instanceof Error&&g.UJ(k); var H=BR('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),O=wB('audio/mp4; codecs="mp4a.40.2"'),X=H||O,A=e.isLivePlayback&&!g.ig(E.W,!0);k="fmt.noneavailable";A?k="html5.unsupportedlive":X||(k="html5.missingapi");X=A||!X?2:1;H={buildRej:"1",a:e.AU(),d:!!e.C7,drm:e.hB(),f18:e.UJ.indexOf("itag=18")>=0,c18:H};e.T&&(e.hB()?(H.f142=!!e.T.T["142"],H.f149=!!e.T.T["149"],H.f279=!!e.T.T["279"]):(H.f133=!!e.T.T["133"],H.f140=!!e.T.T["140"],H.f242=!!e.T.T["242"]),H.cAAC=O,H.cAVC=wB('video/mp4; codecs="avc1.42001E"'), H.cVP9=wB('video/webm; codecs="vp9"'));e.W&&(H.drmsys=e.W.keySystem,O=0,e.W.T&&(O=Object.keys(e.W.T).length),H.drmst=O);return new g.pL(k,H,X)})}; Mm=function(E){this.data=window.Float32Array?new Float32Array(E):Array(E);this.G=this.T=E-1}; NpX=function(E){return E.data[E.T]||0}; Z6X=function(E){this.W=E;this.Z=this.G=0;this.S=new Mm(50)}; Za=function(E,e,l){g.sJ.call(this);this.videoData=E;this.experiments=e;this.W=l;this.G=[];this.g1=0;this.Z=!0;this.S=!1;this.J=0;l=new YmZ;E.latencyClass==="ULTRALOW"&&(l.J=!1);E.Yt?l.Z=3:g.RR(E)&&(l.Z=2);E.latencyClass==="NORMAL"&&(l.W=!0);l.pg=f9(E)&&e.P5("html5_refactor_decouple_liveness");g.tJ(e,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.tJ(e,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||E.latencyClass!=="LOW"&&E.latencyClass!=="ULTRALOW"||(l.W=!0);var k= g.tJ(e,"html5_liveness_drift_proxima_override");if(aR(E)!==0&&k){l.T=k;var H;((H=E.T)==null?0:Bi8(H))&&l.T--}f9(E)&&e.P5("html5_sabr_parse_live_metadata_playback_boundaries")&&(l.kt=!0);if(g.DD("trident/")||g.DD("edge/"))H=g.tJ(e,"html5_platform_minimum_readahead_seconds")||3,l.S=Math.max(l.S,H);g.tJ(e,"html5_minimum_readahead_seconds")&&(l.S=g.tJ(e,"html5_minimum_readahead_seconds"));g.tJ(e,"html5_maximum_readahead_seconds")&&(l.V=g.tJ(e,"html5_maximum_readahead_seconds"));e.P5("html5_force_adaptive_readahead")&& (l.J=!0);if(H=g.tJ(e,"html5_liveness_drift_chunk_override"))l.T=H;v$(E)&&(l.T=(l.T+1)/5,E.latencyClass==="LOW"&&(l.T*=2));!f9(E)||E.latencyClass!=="ULTRALOW"&&E.latencyClass!=="LOW"||(l.N=g.tJ(e,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,l.j=g.tJ(e,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=l;this.j=this.policy.Z!==1;this.T=Nm(this,m_7(this,isNaN(E.liveChunkReadahead)?3:E.liveChunkReadahead,E))}; ga0=function(E,e){if(e)return e=E.videoData,e=m_7(E,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e),Nm(E,e);if(E.G.length){if(Math.min.apply(null,E.G)>1)return Nm(E,E.T-1);if(E.policy.J)return Nm(E,E.T+1)}return E.T}; Kw9=function(E,e){if(!E.G.length)return!1;var l=E.T;E.T=ga0(E,e===void 0?!1:e);if(e=l!==E.T)E.G=[],E.g1=0;return e}; YK=function(E,e){return e>=E.sZ()-naX(E)}; RmX=function(E,e,l){e=YK(E,e);l||e?e&&(E.Z=!0):E.Z=!1;E.j=E.policy.Z===2||E.policy.Z===3&&E.Z}; sNe=function(E,e){e=YK(E,e);E.S!==e&&E.publish("livestatusshift",e);E.S=e}; naX=function(E){var e=E.policy.T;E.S||(e=Math.max(e-1,0));return e*mE(E)}; m_7=function(E,e,l){l.Yt&&e--;v$(l)&&(e=1);if(aR(l)!==0&&(E=g.tJ(E.experiments,"html5_live_chunk_readahead_proxima_override"))){e=E;var k;((k=l.T)==null?0:Bi8(k))&&e++}return e}; mE=function(E){return E.videoData.T?Yw(E.videoData.T)||5:5}; Nm=function(E,e){e=Math.max(Math.max(1,Math.ceil(E.policy.S/mE(E))),e);return Math.min(Math.min(8,Math.floor(E.policy.V/mE(E))),e)}; YmZ=function(){this.S=0;this.V=Infinity;this.J=!0;this.G=this.T=2;this.Z=1;this.W=!1;this.j=10;this.kt=!1;this.N=1;this.pg=!1}; nq=function(E){g.a.call(this);this.I4=E;this.T=0;this.G=null;this.J=this.S=0;this.Z={};this.dH=this.I4.Y();this.W=new g.Nx(this.iq,1E3,this);this.gH=gC(this,"html5_seek_timeout_delay_ms");this.SR=gC(this,"html5_long_rebuffer_threshold_ms");this.b3=gC(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.fg=gC(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.J0=gC(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.GX=gC(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.pg=gC(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.kt=new Kq(2E4);this.c5=gC(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.R4=gC(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.jR=gC(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.h0=gC(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.N=gC(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.V=gC(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.ND=gC(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Yt=gC(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.j=gC(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.rH=new Kq(g.tJ(this.dH.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.dH.L("html5_report_slow_ads_as_error"));this.dC=new Kq(g.tJ(this.dH.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.dH.L("html5_skip_slow_buffering_ad"));this.In=gC(this,"html5_slow_start_timeout_delay_ms");this.Qd=gC(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.L(this,this.W)}; gC=function(E,e,l){l=l===void 0?null:l;var k=k===void 0?0:k;return new Kq(g.tJ(E.dH.experiments,e)||k,l?E.dH.L(l):!1)}; t0l=function(E,e){E.T=e}; Rm=function(E,e,l,k,H,O,X,A){e?e.test(l)?(E.wO(H,e,X),e.J||O()):(!e.G||e.S?l=!1:(l=(0,g.dE)(),k?e.T||(e.T=l):e.T=0,O=!k&&l-e.G>3E4,l=e.T&&l-e.T>1E3||O?e.S=!0:!1),l&&(A=Object.assign({},E.zX(e),A),A.wn=X,A.we=H,A.wsuc=k,E.I4.wH("workaroundReport",A),k&&(e.reset(),E.Z[H]=!1))):E.I4.I7("auth",2,"BROWSER_OR_EXTENSION_ERROR",CL({source:"watchdog",name:X}))}; Kq=function(E,e){this.J=e===void 0?!1:e;this.T=this.G=this.Z=this.startTimestamp=0;this.S=!1;this.W=Math.ceil(E/1E3)}; l30=function(E){g.a.call(this);var e=this;this.I4=E;this.N=this.T=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.W=this.SR=this.S=null;this.h0=!1;this.In=0;this.kt=!1;this.timestampOffset=0;this.V=!0;this.R4=0;this.b3=this.jE=!1;this.j=0;this.Yt=!1;this.Qd=0;this.dH=this.I4.Y();this.videoData=this.I4.getVideoData();this.policy=new qmX;this.pg=new nq(this.I4);this.rH=this.jR=this.J0=this.J=this.G=NaN;this.c5=new g.Nx(function(){ELW(e,!1)},2E3); this.GX=new g.Nx(function(){sY(e)}); this.gH=new g.Nx(function(){e9S(e,{})}); this.dC=NaN;this.fg=new g.Nx(function(){var l=e.dH.AS;l.T+=1E4/36E5;l.T-l.Z>1/6&&(S27(l),l.Z=l.T);e.fg.start()},1E4); g.L(this,this.pg);g.L(this,this.c5);g.L(this,this.gH);g.L(this,this.GX);g.L(this,this.fg)}; Os7=function(E,e){E.playbackData=e;E.videoData.isLivePlayback&&(E.N=new Z6X(function(){a:{if(E.playbackData&&E.playbackData.T.T){if(b7(E.videoData)&&E.loader){var k=E.loader.j0.NV()||0;break a}if(E.videoData.T){k=E.videoData.T.h0;break a}}k=0}return k}),E.T=new Za(E.videoData,E.dH.experiments,function(){return E.YN(!0)})); if(tM(E.I4)){var l;(l=E.videoData.wD)!=null&&l.dS||(e=kRl(E),e.MS?(f9(E.videoData)&&E.rl(e.MS,e.startSeconds),E.Z=e.startSeconds):e.startSeconds>0&&E.seekTo(e.startSeconds,{AN:"seektimeline_startPlayback",seekSource:15}));E.V=!1}else HsW(E)||(E.Z=E.Z||E.videoData.startSeconds||0,E.videoData.isLivePlayback||(e=E.I4.videoData.YN(),E.Z>e&&(E.L("html5_sabr_log_invalid_sabr_current_time")&&E.I4.wH("invalidSabrCmtStart",{rt:E.Z,mst:e}),E.L("html5_sabr_vod_invalid_start_time_fallback")&&(E.Z=0))))}; uqS=function(E,e){(E.loader=e)?XGp(E,!0):qm(E)}; AmS=function(E,e){g.ZC(E.pg.W);E.L("html5_exponential_memory_for_sticky")&&(e.state.isPlaying()?g.ZC(E.fg):E.fg.stop());if(E.mediaElement)if(e.oldState.state===8&&Jp(e.state)&&e.state.isBuffering()){e=E.mediaElement.getCurrentTime();var l=E.mediaElement.PG();var k=E.L("manifestless_post_live_ufph")||E.L("manifestless_post_live")?mU(l,Math.max(e-3.5,0)):mU(l,e-3.5);k>=0&&e>l.end(k)-1.1&&k+10?(Em(E.I4,E.getCurrentTime()+E.videoData.limitedPlaybackDurationInSeconds),E.b3=!0):E.videoData.isLivePlayback&&E.videoData.endSeconds>0&&(Em(E.I4,E.getCurrentTime()+E.videoData.endSeconds),E.b3=!0))}; pGv=function(E,e){var l=E.getCurrentTime(),k=E.isAtLiveHead(l);if(E.N&&k){var H=E.N;if(H.T&&!(l>=H.G&&l50&&H.G.shift())),H=E.T,RmX(H,l,e===void 0?!0:e),sNe(H,l),e&&ELW(E,!0));k!==E.jE&&(e=E.getCurrentTime()-E.rH<=500,l=E.In>=1E3,e||l||(e=E.I4.L7,e.qoe&&(e=e.qoe,l=g.Cq(e.provider), g.Xu(e,l,"lh",[k?"1":"0"])),E.jE=k,E.In++,E.rH=E.getCurrentTime()))}; ELW=function(E,e){if(E.T){var l=E.T;var k=E.getCurrentTime(),H=l.sZ();var O=l.policy.G;l.S||(O=Math.max(O-1,0));O*=mE(l);k>=H-O||!l.N5()?l=kl+1&&e0&&Wf(E.mediaElement)>0&&(E.G=e0(E,E.G,!1)),e=E.L("html5_pseudogapless_shorts_seek_to_next_start")&&(e==null?void 0:e.seekSource)===60,!E.mediaElement||!z9W(E,e))E.GX.start(750);else if(!isNaN(E.G)&&isFinite(E.G)&&(e=E.jR-(E.G-E.timestampOffset),!(e===0||Math.abs(e)<.005)))if(e=E.mediaElement.getCurrentTime()-E.G,Math.abs(e)<=E.R4||Math.abs(e)<.005)d87(E);else{if(E.videoData.rQ)E.videoData.rQ= !1;else if(!D7(E.videoData)&&E.G>=E.YN()-.1){E.G=E.YN();E.S.resolve(E.YN());E.dH.f7()&&E.I4.wH("setEndedInSeek",{tgt:""+E.G,maxst:""+E.YN()});E.I4.Wz();return}try{var l=E.G-E.timestampOffset;E.mediaElement.seekTo(l);E.pg.T=l;E.jR=l;E.Z=E.G;E.kt=!1}catch(k){}}}; z9W=function(E,e){e=e===void 0?!1:e;if(!E.mediaElement||E.mediaElement.I9()===0||E.mediaElement.hasError())return!1;var l=E.mediaElement.getCurrentTime()>0;return E.videoData.Z&&E.videoData.Z.T||E.videoData.isLivePlayback||!E.videoData.hB()?E.G>=0&&!e&&(e=E.mediaElement.q0(),e.length||!l)?gB(e,E.G-E.timestampOffset):l:l}; d87=function(E){E.S&&(E.S.resolve(E.mediaElement.getCurrentTime()),E.pg.G=null)}; oLZ=function(E,e){E.W&&(E.W.resolve(e),E.I4.jO(),E.dH.f7()||wGv(E))&&(e=E.zX(),e["native"]=""+ +E.kt,e.otgt=""+(E.G+E.timestampOffset),E.I4.wH("seekEnd",e));qm(E)}; qm=function(E){E.G=NaN;E.J=NaN;E.jR=NaN;E.S=null;E.SR=null;E.W=null;E.h0=!1;E.kt=!1;E.R4=0;E.c5.stop();E.gH.stop()}; Tc7=function(E,e){var l=E.mediaElement,k=e.type;switch(k){case "seeking":var H=l.getCurrentTime()+E.timestampOffset;if(!E.S||E.kt&&H!==E.G){E.S=new xZ;E.S.then(function(X){oLZ(E,X)},function(){qm(E)}); if(E.videoData.isAd()){var O;Aky({adCpn:E.videoData.clientPlaybackNonce,contentCpn:(O=E.videoData.X2)!=null?O:""},e.T)}E.jR=H;t0l(E.pg,l.getCurrentTime());E.seekTo(H,{seekSource:104,AN:"seektimeline_mediaElementEvent"});E.kt=!0}break;case "seeked":d87(E);break;case "loadedmetadata":tM(E.I4)||GRZ(E);sY(E);break;case "progress":sY(E);break;case "pause":E.j=E.getCurrentTime()}E.j&&((k==="play"||k==="playing"||k==="timeupdate"||k==="progress")&&E.getCurrentTime()-E.j>10&&(E.L("html5_sky_skip_pause_jump")? E.I4.wH("skipPauseJump",{evt:k,cmt:E.getCurrentTime(),lpt:E.j}):E.seekTo(E.j,{AN:"pauseJump"})),k!=="pause"&&k!=="play"&&k!=="playing"&&k!=="progress"&&(E.j=0))}; ise=function(E){return(sE(E.videoData)||!!E.videoData.liveUtcStartSeconds)&&(!!E.videoData.liveUtcStartSeconds||HsW(E))&&!!E.videoData.T}; HsW=function(E){return!!E.videoData.startSeconds&&isFinite(E.videoData.startSeconds)&&E.videoData.startSeconds>1E9}; kRl=function(E){var e=0,l=NaN,k="";if(!E.V)return{startSeconds:e,MS:l,source:k};E.videoData.SR?e=E.videoData.Qd:D7(E.videoData)&&(e=Infinity);if(g.RR(E.videoData))return{startSeconds:e,MS:l,source:k};E.videoData.startSeconds?(k="ss",e=E.videoData.startSeconds):E.videoData.dO&&(k="stss",e=E.videoData.dO);E.videoData.liveUtcStartSeconds&&(l=E.videoData.liveUtcStartSeconds);if(isFinite(e)&&(e>E.YN()||eE.YN()||l 0?(k.onesie="0",E.handleError(new g.pL("html5.missingapi",k)),!1):!0}; f39=function(E){var e=ey();l4(e,E);return g.Nu(e,Dke())}; jul=function(E,e){var l,k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V,F,r,P,N,R,K,XW,oZ,A7,CS;return g.D(function(ep){if(ep.G==1)return e.fetchType="onesie",l=Bn0(e,E.getPlayerSize(),E.getVisibilityState()),k=new Rz(E,l),g.S(ep,k.fetch(),2);H=ep.T;O={player_response:H};e.loading=!1;X=E.sz.DT;if(k.VQ){A=g.T(k.VQ.entries());for(C=A.next();!C.done;C=A.next())p=C.value,x=g.T(p),Q=x.next().value,W=x.next().value,B=Q,w=W,X.T.set(B,w,180),B===e.videoId&&(U=w.m1(),e.IL=U);X.Go=k}c=g.T(k.TD.entries());for(V=c.next();!V.done;V= c.next())F=V.value,r=g.T(F),P=r.next().value,N=r.next().value,R=P,K=N,X.G.set(R,K,180);g.du(e,O,!0);if(e.loading||wu(e))return ep.return(Promise.resolve());X.T.removeAll();X.G.removeAll();e.IL=[];XW={};oZ="onesie.response";A7=0;e.errorCode?(oZ="auth",XW.ec=e.errorCode,XW.ed=e.errorDetail,XW.es=e.Sc||"",A7=2):(XW.successButUnplayable="1",XW.disposed=""+ +e.U7(),XW.afmts=""+ +/adaptiveFormats/.test(H),XW.cpn=e.clientPlaybackNonce);CS=new g.pL(oZ,XW,A7);return ep.return(Promise.reject(CS))})}; cm7=function(E,e){var l,k,H,O,X,A,C,p,x,Q,W;return g.D(function(B){switch(B.G){case 1:l=e.isAd(),k=!l,H=l?1:3,O=0;case 2:if(!(O0)){B.xt(5);break}return g.S(B,DQ(5E3),6);case 6:X=new g.PK("Retrying OnePlatform request",{attempt:O}),g.UJ(X);case 5:return g.U9(B,7),g.S(B,VJW(E,e),9);case 9:return B.return();case 7:A=g.FW(B);C=Qp(A);p=C.errorCode;x=E.Y();Q=x.L("html5_use_network_error_code_enums")?401:"401";k&&p==="manifest.net.badstatus"&&C.details.rc===Q&&(k=!1,O===H-1&&(H+= 1));if(O===H-1)return W=Sve(l,C.details),W.details.backend="op",W.details.originec=p,B.return(Promise.reject(W));if(p==="auth"||p==="manifest.net.retryexhausted")return B.return(Promise.reject(C));E.handleError(C);if(xf(C.severity)){B.xt(4);break}case 3:O++;B.xt(2);break;case 4:return B.return(Promise.reject(Sve(l,{backend:"op"})))}})}; VJW=function(E,e){function l(oZ){oZ.readyState===2&&E.Rz("ps_c")} var k,H,O,X,A,C,p,x,Q,W,B,w,U,c,V,F,r,P,N,R,K,XW;return g.D(function(oZ){switch(oZ.G){case 1:e.fetchType="gp";k=E.Y();H=g.FG(k,g.Cb(e));if(!H.T){O=H.getValue();oZ.xt(2);break}return g.S(oZ,H.T,3);case 3:O=oZ.T;case 2:return X=O,A=f39(X),C=Bn0(e,E.getPlayerSize(),E.getVisibilityState()),p=g.mt(rmy),x=g.Cb(e),Q=(0,g.dE)(),W=!1,B="empty",w=0,E.Rz("psns"),U={Pl:l},g.S(oZ,g.Vj(A,C,p,void 0,U),4);case 4:c=oZ.T;E.Rz("psnr");if(e.U7())return oZ.return();c?"error"in c&&c.error?(W=!0,B="esf:"+c.error.message, w=c.error.code):c.errorMetadata&&(W=!0,B="its",w=c.errorMetadata.status):W=!0;if(W)return V=0,F=((0,g.dE)()-Q).toFixed(),r={},r=k.L("html5_use_network_error_code_enums")?{backend:"op",rc:w,rt:F,reason:B,has_kpt:e.iN?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.LF("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:k.pageId?"1":"0",has_token:x?"1":"0",has_vvt:e.h0?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.mY||"",token_eq:x===g.Cb(e)?"1":"0"}:{backend:"op", rc:""+w,rt:F,reason:B,has_kpt:e.iN?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.LF("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:k.pageId?"1":"0",has_token:x?"1":"0",has_vvt:e.h0?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.mY||"",token_eq:x===g.Cb(e)?"1":"0"},P="manifest.net.connect",w===429?(P="auth",V=2):w>200&&(P="manifest.net.badstatus",w===400&&(V=2)),oZ.return(Promise.reject(new g.pL(P,r,V)));e.loading=!1;g.du(e,{raw_player_response:c},!0); N=c;g.OV(e.Y())&&N&&N.trackingParams&&KR(N.trackingParams);if(e.errorCode)return R={ec:e.errorCode,ed:e.errorDetail,es:e.Sc||""},oZ.return(Promise.reject(new g.pL("auth",R,2)));if(!e.loading&&!wu(e))return K=e.isAd()?"auth":"manifest.net.retryexhausted",XW=e.isAd()?2:1,oZ.return(Promise.reject(new g.pL(K,{successButUnplayable:"1",hasMedia:g.gu(e)?"1":"0"},XW)));g.$0(oZ)}})}; JmX=function(E,e,l){function k(w){w=Qp(w);if(xf(w.severity))return Promise.reject(w);E.handleError(w);return!1} function H(){return!0} var O,X,A,C,p,x,Q,W,B;return g.D(function(w){switch(w.G){case 1:var U=E.Y();E.getPlayerSize();E.getVisibilityState();E.isFullscreen();if(e.partnerId===38&&U.playerStyle==="books")U=e.videoId.indexOf(":"),U=g.BJ("//play.google.com/books/volumes/"+e.videoId.slice(0,U)+"/content/media",{aid:e.videoId.slice(U+1),sig:e.Jh});else if(e.partnerId===30&&U.playerStyle==="docs")U=g.BJ("https://docs.google.com/get_video_info",{docid:e.videoId,authuser:e.Xk,authkey:e.sD,eurl:U.C7});else if(e.partnerId===33&&U.playerStyle=== "google-live")U=g.BJ("//google-liveplayer.appspot.com/get_video_info",{key:e.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+U.pg);O=U;A=(X=e.isAd())?1:3;C=0;case 2:if(!(C0)){w.xt(5);break}return g.S(w,DQ(5E3),6);case 6:x={playerretry:C,playerretrysrc:l},X||(x.recover="embedded"),p=td(O,x);case 5:return g.S(w,D80(e,p).then(H,k),7);case 7:if(Q=w.T)return w.return();C++;w.xt(2);break;case 4:W=X?"auth":"manifest.net.retryexhausted";B=X?2:1;if(!X&&Math.random()< 1E-4)try{g.UJ(new g.PK("b/152131571",btoa(O)))}catch(c){}return w.return(Promise.reject(new g.pL(W,{backend:"gvi"},B)))}})}; D80=function(E,e){function l(c){return k(c.xhr)} function k(c){if(!E.U7()){c=c?c.status:-1;var V=0,F=((0,g.dE)()-x).toFixed();F=H.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:c,rt:F}:{backend:"gvi",rc:""+c,rt:F};var r="manifest.net.connect";c===429?(r="auth",V=2):c>200&&(r="manifest.net.badstatus",c===400&&(V=2));return Promise.reject(new g.pL(r,F,V))}} var H,O,X,A,C,p,x,Q,W,B,w,U;return g.D(function(c){if(c.G==1){E.fetchType="gvi";H=E.Y();var V={};E.IX&&(V.ytrext=E.IX);(A=g.QI(V)?void 0:V)?(O={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:A},X=td(e,{action_display_post:1})):(O={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},X=e);C={};H.sendVisitorIdHeader&&E.visitorData&&(C["X-Goog-Visitor-Id"]=E.visitorData);(p=d_(H.experiments,"debug_sherlog_username"))&&(C["X-Youtube-Sherlog-Username"]=p);Object.keys(C).length> 0&&(O.headers=C);x=(0,g.dE)();return g.S(c,Vu(TT,X,O).then(void 0,l),2)}Q=c.T;if(!Q||!Q.responseText)return c.return(k(Q));E.loading=!1;W=KF(Q.responseText);g.du(E,W,!0);if(E.errorCode)return B={ec:E.errorCode,ed:E.errorDetail,es:E.Sc||""},c.return(Promise.reject(new g.pL("auth",B,2)));if(!E.loading&&!wu(E))return w=E.isAd()?"auth":"manifest.net.retryexhausted",U=E.isAd()?2:1,c.return(Promise.reject(new g.pL(w,{successButUnplayable:"1"},U)));g.$0(c)})}; Sve=function(E,e){return new g.pL(E?"auth":"manifest.net.retryexhausted",e,E?2:1)}; XV=function(E,e,l){l=l===void 0?!1:l;var k,H,O,X;g.D(function(A){if(A.G==1){k=E.Y();if(l&&(!g.UV(k)||OT(e)!=="embedded")||e.Vn||OT(e)!=="adunit"&&(g.QS(k)||QN(k)||g.Ik(k)||g.$9(k)||g.XG(k)||w_(k)==="WEB_CREATOR"))return A.return();H=g.FG(k,g.Cb(e));return H.T?g.S(A,H.T,3):(O=H.getValue(),A.xt(2))}A.G!=2&&(O=A.T);X=O;return A.return(bsS(E,e,X))})}; bsS=function(E,e,l){var k,H,O,X,A;return g.D(function(C){if(C.G==1){g.U9(C,2);k=f39(l);var p=e.Y();g.VC();var x={context:g.$C(e),videoId:e.videoId,racyCheckOk:e.racyCheckOk,contentCheckOk:e.contentCheckOk,autonavState:"STATE_NONE"};OT(e)==="adunit"&&(x.isAdPlayback=!0);p.embedConfig&&(x.serializedThirdPartyEmbedConfig=p.embedConfig);p.Ce&&(x.showContentOwnerOnly=!0);e.xJ&&(x.showShortsOnly=!0);g.St(0,141)&&(x.autonavState=g.St(0,140)?"STATE_OFF":"STATE_ON");if(g.TH(p)){var Q=g.St(0,65);Q=Q!=null? !Q:!1;var W=!!g.cK("yt-player-sticky-caption");x.captionsRequested=Q&&W}var B;if(p=(B=p.getWebPlayerContextConfig())==null?void 0:B.encryptedHostFlags)x.playbackContext={encryptedHostFlags:p};H=x;O=g.mt(vLl);E.Rz("wn_s");return g.S(C,g.Vj(k,H,O),4)}if(C.G!=2)return X=C.T,E.Rz("wn_r"),!X||"error"in X&&X.error||(A=X,g.OV(e.Y())&&A.trackingParams&&KR(A.trackingParams),g.du(e,{raw_watch_next_response:X},!1)),g.jp(C,0);g.FW(C);g.$0(C)})}; P6l=function(E){E.Rz("vir");E.Rz("ps_s");I6("vir",void 0,"video_to_ad");var e=FH9(E);e.then(function(){E.Rz("virc");I6("virc",void 0,"video_to_ad");E.Rz("ps_r");I6("ps_r",void 0,"video_to_ad")},function(){E.Rz("virc"); I6("virc",void 0,"video_to_ad")}); return e}; g.C6=function(E,e,l,k,H,O,X,A,C,p){C=C===void 0?new g.oR(E):C;p=p===void 0?!0:p;g.sJ.call(this);var x=this;this.dH=E;this.playerType=e;this.xw=l;this.Bi=k;this.getVisibilityState=O;this.visibility=X;this.sz=A;this.videoData=C;this.Zw=p;this.logger=new g.da("VideoPlayer");this.NQ=null;this.Ka=new JM;this.Ie=null;this.V8=!0;this.B5=this.loader=null;this.Gu=[];this.Hg=new Om;this.Zr=this.mp=null;this.zF=new Om;this.Fg=null;this.w7=this.qJ=!1;this.xp=NaN;this.OB=!1;this.playerState=new g.zU;this.oa=[]; this.yC=new g.G_;this.Xn=new uu7(this);this.mediaElement=null;this.v_=new g.Nx(this.hI3,15E3,this);this.jI=this.JF=!1;this.BE=NaN;this.gi=!1;this.mO=0;this.BX=!1;this.PX=NaN;this.Fc=new l0(new Map([["bufferhealth",function(){return C6p(x.lN)}], ["bandwidth",function(){return x.tG()}], ["networkactivity",function(){return x.dH.schedule.SR}], ["livelatency",function(){return x.isAtLiveHead()&&x.isPlaying()?a39(x):NaN}], ["rawlivelatency",function(){return a39(x)}]])); this.TC=0;this.loop=!1;this.playbackRate=1;this.b7=0;this.lN=new l30(this);this.DA=!1;this.Qe=[];this.i4=this.aH=0;this.Aj=this.KT=!1;this.Cl=this.o5=0;this.Rh=new g.Nx(this.l5,0,this);this.EQ=!1;this.L5=null;this.otg=[this.yC,this.Rh,this.v_,this.Fc];this.HK=this.Mp=null;this.B7=function(){var Q=x.L7;Q.provider.dH.lk||Q.provider.I4.getVisibilityState()===3||(Q.provider.dH.lk=!0);Q.pX();if(Q.G){var W=Q.G;W.W&&W.T<0&&W.provider.I4.getVisibilityState()!==3&&Pde(W)}Q.qoe&&(Q=Q.qoe,Q.gH&&Q.Z<0&&Q.provider.dH.lk&& dXy(Q),Q.S&&pq(Q));x.loader&&u0(x);x.dH.HQ&&!x.videoData.backgroundable&&x.mediaElement&&!x.FJ()&&(x.isBackground()&&x.mediaElement.k8()?(x.wH("bgmobile",{suspend:1}),x.aF(!0,!0)):x.isBackground()||Aa(x)&&x.wH("bgmobile",{resume:1}))}; this.p5={EM:function(Q){x.EM(Q)}, KX5:function(Q){x.NQ=Q}, pg4:function(){return x.L7}, T8:function(){return x.B5}, jUR:function(){return x.p8}, e54:function(){return x.n8}, uCn:function(){}, Y:function(){return x.dH}, Ps:function(){return x.mediaElement}, oM6:function(Q){x.UB(Q)}, fNt:function(){return x.Bi}}; this.logger.debug(function(){return"creating, type "+e}); this.cS=new Lwe(this.dH);this.Ev=new yW(this.dH,this.Bi,this);this.Gh=new g.Lq(this,function(Q,W){Q!==g.Zj("endcr")||g.m(x.playerState,32)||x.Wz();H(Q,W,x.playerType);if(Q===g.Zj("transitiondetector")&&(Q=x.loader)!=null&&(Q=Q.dC)!=null){var B=g.T(DtZ(W.id));B.next();B=B.next().value;f7X(Q,B,W.start/1E3-Q.I4.eE(),$ty(Q.S))}}); g.L(this,this.Gh);g.L(this,this.lN);LH8(this,C);this.videoData.subscribe("dataupdated",this.iY5,this);this.videoData.subscribe("dataloaded",this.Av,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.wH,this);this.videoData.subscribe("ctmpstr",this.wK,this);!this.L7||this.L7.U7();this.L7=new g.am(new Pp(this.videoData,this.dH,this));OqX(this.B7);this.visibility.subscribe("visibilitystatechange",this.B7);this.p8=new g.Nx(this.E5,g.tJ(this.dH.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.n8=new g.Nx(this.E5,g.tJ(this.dH.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.ZS=new g.gN(this.oND,350,this);g.L(this,this.ZS)}; LH8=function(E,e){if(E.playerType===2||E.dH.YZ)e.Z2=!0;var l=jPZ(e.f0,e.tT,E.dH.S,E.dH.N);l&&(e.adFormat=l);E.playerType===2&&(e.vG=!0);if(E.isFullscreen()||E.dH.S)l=g.cK("yt-player-autonavstate"),e.autonavState=l||(E.dH.S?2:E.videoData.autonavState);e.endSeconds&&e.endSeconds>e.startSeconds&&Em(E,e.endSeconds)}; h90=function(E){var e=E.videoData;P6l(E).then(void 0,function(l){E.videoData!==e||e.U7()||(l=Qp(l),l.errorCode==="auth"&&E.videoData.errorDetail?E.I7(l.errorCode,2,unescape(E.videoData.errorReason),CL(l.details),E.videoData.errorDetail,E.videoData.Sc||void 0):E.handleError(l))})}; Zs8=function(E){if(!g.m(E.playerState,128))if(E.videoData.isLoaded(),E.logger.debug("finished loading playback data"),E.Gu=g.fW(E.videoData.V),g.gu(E.videoData)){E.xw.tick("bpd_s");p6(E).then(function(){E.xw.tick("bpd_c");if(!E.U7()){E.qJ&&(E.EK(TU(TU(E.playerState,512),1)),Aa(E));var k=E.videoData;k.endSeconds&&k.endSeconds>k.startSeconds&&Em(E,k.endSeconds);E.Hg.finished=!0;xa(E,"dataloaded");E.zF.t9()&&MJW(E);vK7(E.Ev,E.Zr)}}); E.L("html5_log_media_perf_info")&&E.wH("loudness",{v:E.videoData.yf.toFixed(3)},!0);var e,l=(e=E.mediaElement)==null?void 0:e.Zb();if(l&&"disablePictureInPicture"in l&&E.dH.NO)try{l.disablePictureInPicture=E.dH.Yu&&!E.videoData.backgroundable}catch(k){g.UJ(k)}Ncy(E)}else xa(E,"dataloaded")}; p6=function(E){Qx(E);E.Zr=null;var e=M0v(E.dH,E.videoData,E.FJ());E.mp=e;E.mp.then(function(l){YvS(E,l)},function(l){E.U7()||(l=Qp(l),E.visibility.isBackground()?(Wc(E,"vp_none_avail"),E.mp=null,E.Hg.reset()):(E.Hg.finished=!0,E.I7(l.errorCode,l.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",CL(l.details))))}); return e}; YvS=function(E,e){if(!E.U7()&&!e.videoData.U7()){E.logger.debug("finished building playback data");E.Zr=e;Os7(E.lN,E.Zr);if(E.videoData.isLivePlayback){var l=m8S(E.sz.DT,E.videoData.videoId)||E.loader&&!isNaN(E.loader.h0);l=E.L("html5_onesie_live")&&l;tM(E)||E.videoData.In>0&&!b7(E.videoData)||l||E.seekTo(E.YN(),{AN:"videoplayer_playbackData",seekSource:18})}if(E.videoData.Z.T){if(k40(E.videoData)){E.I7("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",CL({missabrurl:1}));return}E.loader?g.UJ(Error("Duplicated Loader")): (l=g.tJ(E.dH.experiments,"html5_onesie_defer_content_loader_ms"))&&E.Li()&&m8S(E.sz.DT,E.videoData.q1R)?g.uM(function(){E.U7()||E.loader||gLe(E)},l):gLe(E)}else!E.videoData.Z.T&&Qm(E.videoData)&&E.N3(new y6(E.videoData.videoId||"",4)); E.q2();Ia0(e).then(function(){var k={};E.Ii(k);E.dH.f7()&&E.L("html5_log_media_perf_info")&&E.wH("av1Info",k);u0(E)})}}; MJW=function(E){E.U7();E.logger.debug("try finish readying playback");if(E.zF.finished)E.logger.debug("already finished readying");else if(E.Hg.finished)if(g.m(E.playerState,128))E.logger.debug("cannot finish readying because of error");else if(E.Gu.length)E.logger.debug(function(){return"cannot finish readying because of pending preroll: "+E.Gu}); else if(E.Gh.started||Smy(E.Gh),E.AO())E.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{E.loader&&(E.w7=en7(E.loader.timing));E.zF.finished||(E.zF.finished=!0);var e=E.L("html5_onesie_live")&&E.loader&&!isNaN(E.loader.h0);!E.videoData.isLivePlayback||E.videoData.In>0&&!b7(E.videoData)||e||tM(E)||(E.logger.debug("seek to head for live"),E.seekTo(Infinity,{AN:"videoplayer_readying",seekSource:18}),E.isBackground()&&(E.jI=!0));zm8(E.L7);E.logger.debug("finished readying playback"); E.publish("playbackready");cz("pl_c",E.xw.timerName)||(E.xw.tick("pl_c"),I6("pl_c",void 0,"video_to_ad"));cz("pbr",E.xw.timerName)||(E.xw.tick("pbr"),I6("pbr",void 0,"video_to_ad"))}else E.logger.debug("playback data not loaded")}; Em=function(E,e){E.Ie&&KHl(E);E.Ie=new g.Mr(e*1E3,0x7ffffffffffff);E.Ie.namespace="endcr";E.addCueRange(E.Ie)}; KHl=function(E){E.removeCueRange(E.Ie);E.Ie=null}; nL7=function(E,e,l,k,H){var O=E.L7,X=E.videoData;X.G=l;var A=g.Bc(E);l=new GLS(X,l,e,A?A.itag:"",k);E.dH.experiments.P5("html5_refactor_sabr_video_format_selection_logging")?(l.videoId=H,E.HK=l):O.qoe&&zIW(O.qoe,l);H=E.Ev;H.G=0;H.T=0;E.publish("internalvideoformatchange",X,e==="m")}; g.Bc=function(E){var e=oN(E);return yG(e)||!E.Zr?null:g.Gd(E.Zr.T.videoInfos,function(l){return e.S(l)})}; oN=function(E){if(E.Zr){var e=E.Ev;var l=E.Zr;E=E.FR();var k=iqS(e);if(yG(k)){if(k=e.tA(l).compose(cMv(e,l)).compose(jmW(e,l)).compose(DmZ(e,l.videoData)).compose(bqp(e,l.videoData,l)).compose(rMv(e,l)).compose(UmX(e,l)),yG(E)||e.L("html5_apply_pbr_cap_for_drm"))k=k.compose(JM0(e,l))}else e.L("html5_perf_cap_override_sticky")&&(k=k.compose(rMv(e,l))),e.L("html5_ustreamer_cap_override_sticky")&&(k=k.compose(JM0(e,l)));k=k.compose(UmX(e,l));e=l.videoData.P_.compose(k).compose(l.videoData.U0).compose(E)}else e= B$;return e}; eBS=function(E){var e=E.Ev;E=E.videoData;var l=DmZ(e,E);e.L("html5_disable_client_autonav_cap_for_onesie")||l.compose(bqp(e,E));return l}; u0=function(E){if(E.videoData.Z&&E.videoData.Z.T){var e=oN(E);E.loader&&bbe(E.loader,e)}}; R9S=function(E){var e;return!!(E.L("html5_native_audio_track_switching")&&g.pA&&((e=E.videoData.G)==null?0:bp(e)))}; suZ=function(E){if(!R9S(E))return!1;var e;E=(e=E.mediaElement)==null?void 0:e.audioTracks();return!!(E&&E.length>1)}; qvZ=function(E){var e=tJl(E);if(e)return E.videoData.getAvailableAudioTracks().find(function(l){return l.gC.getName()===e})}; tJl=function(E){var e;if(E=(e=E.mediaElement)==null?void 0:e.audioTracks())for(e=0;e0&&(e.Lw=l.At));e.rB=l.Kw;e.xE=eL(k,{},l.Z||void 0,IR(l));e.ND=jv(l)&&(g.Ik(k)||g.$9(k));f9(l)&&(e.W=!0,e.sV=k.L("html5_estimate_live_partial_slice_duration"),e.je=!0,k.L("html5_sabr_report_partial_segment_estimated_duration")&&(e.LS=!0),e.T=!0,e.zd=k.L("html5_sabr_enable_live_clock_offset"),e.Td= k.L("html5_disable_client_resume_policy_for_sabr"),e.Te=k.L("html5_trigger_loader_when_idle_network"),e.Q0=k.L("html5_sabr_parse_live_metadata_playback_boundaries"),e.VJ=k.L("html5_consume_onesie_next_request_policy_for_sabr"),e.jA=k.L("html5_sabr_report_next_ad_break_time"),e.bI=k.L("html5_log_high_res_buffer_timeline")&&k.f7(),e.WB=k.L("html5_remove_stuck_slices_beyond_max_buffer_limits"),e.Kz=k.L("html5_gapless_sabr_btl_last_slice")&&yJ(l),e.To=k.L("html5_reset_last_appended_slice_on_seek")&&yJ(l), b7(l)?(e.Jz=!0,e.Gd=k.L("html5_disable_variability_tracker_for_live"),e.gH=!0,k.L("html5_simplified_backup_timeout_sabr_live")&&(e.Ep=!0,e.JS=e.aU)):e.hN=k.L("html5_probe_request_on_sabr_request_progress"),e.Az=k.L("html5_serve_start_seconds_seek_for_post_live_sabr"),e.AS=k.L("html5_flush_index_on_updated_timestamp_offset"),e.V=f9(l),e.Hy=k.L("html5_ignore_partial_segment_from_live_readahead"),k.L("html5_include_partial_segment_for_jumbo_ll")&&v$(l)&&(e.Hy=!1),e.VE=k.L("html5_use_non_active_broadcast_for_post_live"), e.h0=k.L("html5_use_centralized_player_time"),e.jE=k.L("html5_log_centralized_player_time"),e.Ff=k.L("html5_consume_onesie_sabr_seek"),e.kt=k.L("html5_enable_sabr_seek_loader_refactor"),e.h5=k.L("html5_update_segment_start_time_from_media_header"),l.enableServerStitchedDai&&(e.G=!0,e.P_=k.L("html5_reset_server_stitch_state_for_non_sabr_seek"),e.UA=k.L("html5_remove_ssdai_append_pause")&&!l.Z0(),e.f0=k.L("html5_ssdai_log_ssevt_in_loader")||k.L("html5_ssdai_log_ssevt_in_loader_200ms")||k.L("html5_ssdai_log_ssevt_in_loader_timers")|| k.L("html5_ssdai_log_ssevt_in_loader_cuerange"),k.L("html5_ssdai_log_ssevt_in_loader_timers")?e.rH=1:k.L("html5_ssdai_log_ssevt_in_loader_200ms")?e.rH=3:k.L("html5_ssdai_log_ssevt_in_loader_cuerange")&&(e.rH=0)),e.jN=k.f7()||l.Z0());e.dO=g.E2p(l);h9(k.W,M3.BITRATE)&&(e.Kg=NaN);if(A=g.tJ(k.experiments,"html5_request_size_max_kb"))e.J0=A*1024;k.W.Z?e.yS="; "+M3.EXPERIMENTAL.name+"=allowed":k.L("html5_enable_cobalt_tunnel_mode")&&g.vg()&&(A=M3.TUNNELMODE,e.yS="; "+A.name+"="+A.valid);l=l.serverPlaybackStartConfig; (l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(e.OZ=!0,H0(e,l.playbackStartPolicy,2));l=E1X(E);E.Ka.removeAll();a:{A=E.sz.DT;if(k=E.videoData.videoId)if(H=A.T.get(k)){A.T.remove(k);A=H;break a}A=void 0}E.loader=new g.Bp(E,E.dH.schedule,e,E.videoData.T,E.videoData.Z,oN(E),l,E.videoData.enableServerStitchedDai,A,E.videoData.pg);e=E.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&E.videoData.isLivePlayback&&E.Li()?!0:E.qJ&&g.QS(E.dH)&&E.videoData.isLivePlayback;E.loader.initialize(E.getCurrentTime(), oN(E),e);E.videoData.probeUrl&&(E.loader.ND=E.videoData.probeUrl);if(E.Gu.length||E.qJ)E.videoData.cotn||wp(E,!1);uqS(E.lN,E.loader);E.L5&&(HVX(E.loader,new g.om(E.L5)),E.wH("sdai",{sdl:1}));g.oF(E.videoData)&&(E=E.loader,E.policy.UE=E.policy.i9)}; Qx=function(E){E.loader&&(E.loader.dispose(),E.loader=null,uqS(E.lN,null));E.p_()?eGX(E):E.Fu()}; eGX=function(E){if(E.B5)if(E.logger.debug("release media source"),E.n3(),E.B5.W)try{E.dH.f7()&&E.wH("rms",{l:"vprms",sr:E.p_(),rs:CX(E.B5)});E.B5.clear();var e;(e=E.mediaElement)!=null&&(e.G=E.B5);E.B5=null}catch(l){e=new g.PK("Error while clearing Media Source in VideoPlayer: "+l.name+", "+l.message),e=Qp(e),E.handleError(e),E.Fu()}else E.Fu()}; lFX=function(E,e){e=e===void 0?!1:e;if(E.B5)return E.B5.Z;E.logger.debug("update media source");a:{e=e===void 0?!1:e;try{g.vg()&&E.videoData.VT()&&g3p(E.mediaElement);var l=E.mediaElement.T8(E.UM(),E.yH())}catch(H){if(Qmy(E.Xn,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);E.I7("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}E.s3(l,!1,!1,e)}var k;return((k=E.T8())==null?void 0:k.Z)||null}; kIS=function(E,e){e=e===void 0?!1:e;if(E.loader){E.videoData.enableServerStitchedDai&&Qzv(E.loader);var l=E.getCurrentTime()-E.eE();E.loader.seek(l,{yz:e}).Md(function(){})}else gLe(E)}; OQZ=function(E,e,l,k){l=l===void 0?!1:l;k=k===void 0?!1:k;if(E.B5&&(!e||E.B5===e)){E.logger.debug("media source opened");var H=E.getDuration();!H&&b7(E.videoData)&&(H=25200);if(E.B5.isView){var O=H;E.logger.debug(function(){return"Set media source duration to "+O+", video duration "+H}); O>E.B5.getDuration()&&HQ9(E,O)}else HQ9(E,H);ST8(E.loader,E.B5,l,k);E.publish("mediasourceattached")}}; HQ9=function(E,e){if(E.B5){E.B5.qO(e);var l;(l=E.loader)!=null&&l.policy.h0&&(l.J=e)}}; Pc8=function(E,e){nL7(E,e.reason,e.T.info,e.token,e.videoId)}; xa=function(E,e){E.publish("internalvideodatachange",e===void 0?"dataupdated":e,E.videoData)}; Xvy=function(E){for(var e=g.T("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),l=e.next();!l.done;l=e.next())E.yC.C(E.mediaElement,l.value,E.UB,E);E.dH.z8&&E.mediaElement.Zs()&&(E.yC.C(E.mediaElement,"webkitplaybacktargetavailabilitychanged",E.fMM,E),E.yC.C(E.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",E.UDt,E))}; AHl=function(E){g.pE(E.xp);u$8(E)||(E.xp=g.A2(function(){return u$8(E)},100))}; u$8=function(E){var e=E.mediaElement;e&&E.JF&&!E.videoData.kt&&!cz("vfp",E.xw.timerName)&&e.I9()>=2&&!e.isEnded()&&RW(e.PG())&&E.xw.tick("vfp");return(e=E.mediaElement)&&!E.videoData.kt&&e.getDuration()>0&&(e.isPaused()&&e.I9()>=2&&RW(e.PG())&&(cz("pbp",E.xw.timerName)||E.xw.tick("pbp"),!E.videoData.zx||E.OB||e.isSeeking()||(E.OB=!0,E.publish("onPlaybackPauseAtStart"))),e=e.getCurrentTime(),hM(E.cS,e))?(E.q$(),!0):!1}; pvW=function(E){E.L7.ev();if(D7(E.videoData)&&Date.now()>E.b7+6283){if(!(!E.isAtLiveHead()||E.videoData.T&&Mc(E.videoData.T))){var e=E.L7;if(e.qoe){e=e.qoe;var l=e.provider.I4.Wb(),k=g.Cq(e.provider);CcW(e,k,l);l=l.Z;isNaN(l)||g.Xu(e,k,"e2el",[l.toFixed(3)])}}E.L("html5_alc_live_log_rawlat")?(e=E.videoData,e=g.pp(e.Y())?!0:g.d3(e.Y())?e.drmProduct==="6":!1):e=g.pp(E.dH);k=E.L("html5_always_log_rawlat");(e||k)&&E.wH("rawlat",{l:Hc(E.Fc,"rawlivelatency").toFixed(3)});E.b7=Date.now()}E.videoData.G&& bp(E.videoData.G)&&(e=E.xj())&&e.videoHeight!==E.i4&&(E.i4=e.videoHeight,nL7(E,"a",CsZ(E,E.videoData.gH)))}; CsZ=function(E,e){if(e.T.video.quality==="auto"&&bp(e.getInfo())&&E.videoData.qM)for(var l=g.T(E.videoData.qM),k=l.next();!k.done;k=l.next())if(k=k.value,k.getHeight()===E.i4&&k.T.video.quality!=="auto")return k.getInfo();return e.getInfo()}; a39=function(E){if(!D7(E.videoData))return NaN;var e=0;E.loader&&E.videoData.T&&(e=b7(E.videoData)?E.loader.j0.NV()||0:E.videoData.T.h0);return(0,g.dE)()/1E3-E.pY()-e}; Ql9=function(E){E.mediaElement&&E.mediaElement.FJ()&&(E.PX=(0,g.dE)());E.dH.aU?g.uM(function(){xw0(E)},0):xw0(E)}; xw0=function(E){var e;if((e=E.B5)==null||!e.ij()){if(E.mediaElement)try{E.Fg=E.mediaElement.playVideo()}catch(k){Wc(E,"err."+k)}if(E.Fg){var l=E.Fg;l.then(void 0,function(k){E.logger.debug(function(){return"playMediaElement failed: "+k}); if(!g.m(E.playerState,4)&&!g.m(E.playerState,256)&&E.Fg===l)if(k&&k.name==="AbortError"&&k.message&&k.message.includes("load"))E.logger.debug(function(){return"ignore play media element failure: "+k.message}); else{var H="promise";k&&k.name&&(H+=";m."+k.name);Wc(E,H);E.DA=!0;E.videoData.W7=!0}})}}}; Wc=function(E,e){g.m(E.playerState,128)||(E.EK($Z(E.playerState,1028,9)),E.wH("dompaused",{r:e}),E.publish("onAutoplayBlocked"))}; Aa=function(E,e){e=e===void 0?!1:e;if(!E.mediaElement||!E.videoData.Z)return!1;var l=e;l=l===void 0?!1:l;var k=null;var H;if((H=E.videoData.Z)==null?0:H.T){k=lFX(E,l);var O;(O=E.loader)==null||O.resume()}else Qx(E),E.videoData.gH&&(k=E.videoData.gH.Cq());H=E.mediaElement.k8();l=!1;H&&H.equals(k)||(Wie(E,k),l=!0);g.m(E.playerState,2)||(k=E.lN,e=e===void 0?!1:e,k.W||!(k.Z>0)||k.mediaElement&&k.mediaElement.getCurrentTime()>0||(e={AN:"seektimeline_resumeTime",yz:e},k.videoData.kt||(e.seekSource=15), k.seekTo(k.Z,e)));a:{e=l;if(f9(E.videoData)){if(!E.videoData.hB())break a}else if(!g.Nt(E.videoData))break a;if(E.mediaElement)if((k=E.videoData.W)&&E.mediaElement.Zs()){H=E.mediaElement.Zb();if(E.NQ)if(H!==E.NQ.element)zx(E);else if(e&&k.flavor==="fairplay"&&!Pg())zx(E);else break a;if(E.L("html5_report_error_for_unsupported_tvos_widevine")&&Pg()&&k.flavor==="widevine")E.I7("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{E.NQ=new ROv(H,E.videoData,E.dH);E.NQ.subscribe("licenseerror", E.Pp,E);E.NQ.subscribe("qualitychange",E.xNg,E);E.NQ.subscribe("heartbeatparams",E.G0,E);E.NQ.subscribe("keystatuseschange",E.EM,E);E.NQ.subscribe("ctmp",E.wH,E);e=g.T(E.Ka.keys);for(k=e.next();!k.done;k=e.next())k=E.Ka.get(k.value),E.NQ.AT(k);E.L("html5_eme_loader_sync")||E.Ka.removeAll()}}else E.I7("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return l}; Wie=function(E,e){E.xw.tick("vta");I6("vta",void 0,"video_to_ad");E.getCurrentTime()>0&&x8X(E.lN,E.getCurrentTime());E.mediaElement.activate(e);E.B5&&gO(4);!E.videoData.kt&&E.playerState.isOrWillBePlaying()&&E.v_.start();if(R9S(E)){var l;if(e=(l=E.mediaElement)==null?void 0:l.audioTracks())e.onchange=function(){E.publish("internalaudioformatchange",E.videoData,!0)}}}; zx=function(E){E.NQ&&(E.NQ.dispose(),E.NQ=null)}; B10=function(E){var e=e===void 0?!1:e;E.logger.debug("reattachVideoSource");E.mediaElement&&(E.B5?(zx(E),E.Fu(),lFX(E,e)):(E.videoData.gH&&E.videoData.gH.BD(),E.mediaElement.stopVideo()),E.playVideo())}; o1X=function(E,e){E.dH.L("html5_log_rebuffer_reason")&&(e={r:e,lact:BA()},E.mediaElement&&(e.bh=Bf(E.mediaElement)),E.wH("bufreason",e))}; wvW=function(E,e){if(E.dH.f7()&&E.mediaElement){var l=E.mediaElement.zX();l.omt=(E.mediaElement.getCurrentTime()+E.eE()).toFixed(3);l.ps=E.playerState.state.toString(16);l.rt=(g.Cq(E.L7.provider)*1E3).toFixed();l.e=e;E.Qe[E.aH++%5]=l}try{if(e==="timeupdate"||e==="progress")return}catch(k){}E.logger.debug(function(){return"video element event "+e})}; zGe=function(E){if(E.dH.f7()){E.Qe.sort(function(k,H){return+k.rt-+H.rt}); for(var e=g.T(E.Qe),l=e.next();!l.done;l=e.next())l=l.value,E.wH("vpe",Object.assign({t:l.rt},l));E.Qe=[];E.aH=0}}; dwS=function(E){if(g.DD("cobalt")&&g.DD("nintendo switch")){var e=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;E.wH("nxdock",{d:e})}}; wp=function(E,e){var l;(l=E.loader)==null||jFy(l,e)}; Ncy=function(E){zz(E.videoData,"html5_set_debugging_opt_in")&&(E=g.VC(),g.St(0,183)||(DZ(183,!0),E.save()))}; Wje=function(E,e){E.sz.Tf()||(E.wH("sgap",{f:e}),E.sz.clearQueue(!1,e==="pe"))}; tM=function(E){return E.L("html5_disable_video_player_initiated_seeks")&&f9(E.videoData)}; GIZ=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);Jt(this.api,"isLifaAdPlaying",function(){return e.api.isLifaAdPlaying()}); this.events.C(E,"serverstitchedvideochange",function(){var l;(l=e.api.getVideoData())!=null&&l.Z0()&&(e.api.isLifaAdPlaying()?(e.playbackRate=e.api.getPlaybackRate(),e.api.setPlaybackRate(1)):e.api.setPlaybackRate(e.playbackRate))}); this.playbackRate=1}; dp=function(E){i4.call(this,"Loop",g.In.Zd);this.U=E;var e=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:bZ9();this.setIcon(e);this.subscribe("select",this.G,this);E.createClientVe(this.element,this,28661);this.C(E,"settingsMenuVisibilityChanged",this.T);this.listen("click",this.logClick);this.C(E,"onLoopChange",this.onLoopChange);$l(this,E.getLoopVideo());E.Xm().Qf(this)}; T1e=function(E){WI.call(this,E);var e=this;E.addEventListener("settingsMenuInitialized",function(){e.menuItem||(e.menuItem=new dp(e.api),g.L(e,e.menuItem))}); E.addEventListener("videodatachange",function(l,k){l=e.api.getPresentingPlayerType()===2;var H;(H=e.menuItem)==null||H.Yw(!k.isLivePlayback&&!l)})}; iQ0=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);Jt(this.api,"seekToChapterWithAnimation",function(l){e.seekToChapterWithAnimation(l)}); Jt(this.api,"seekToTimeWithAnimation",function(l,k){e.seekToTimeWithAnimation(l,k)}); Jt(this.api,"renderChapterSeekingAnimation",function(l,k,H){e.api.renderChapterSeekingAnimation(l,k,H)}); Jt(this.api,"setMacroMarkers",function(l){e.setMacroMarkers(E,l)}); Jt(this.api,"changeMarkerVisibility",function(l,k,H){e.changeMarkerVisibility(l,k,H)}); Jt(this.api,"isSameMarkerTypeVisible",function(l){return e.isSameMarkerTypeVisible(l)})}; $wX=function(E,e,l){var k=E.api.getCurrentTime()*1E30&&H>0&&(l.width+=H,g.MV(e.element,"width",l.width+"px")));E.size=l}}; g.DO=function(E,e){var l=E.T[E.T.length-1];l!==e&&(E.T.push(e),lTX(E,l,e))}; g.b0=function(E){if(!(E.T.length<=1)){var e=E.T.pop(),l=E.T[0];E.T=[l];lTX(E,e,l,!0)}}; lTX=function(E,e,l,k){kZX(E);e&&(e.unsubscribe("size-change",E.Do,E),e.unsubscribe("back",E.dM,E));l.subscribe("size-change",E.Do,E);l.subscribe("back",E.dM,E);if(E.Vd){g.qx(l.element,k?"ytp-panel-animate-back":"ytp-panel-animate-forward");l.u3(E.element);l.focus();E.element.scrollLeft=0;E.element.scrollTop=0;var H=E.size;eD7(E);g.tV(E.element,H);E.J=new g.Nx(function(){HK7(E,e,l,k)},20,E); E.J.start()}else l.u3(E.element),e&&e.detach()}; HK7=function(E,e,l,k){E.J.dispose();E.J=null;g.qx(E.element,"ytp-popup-animating");k?(g.qx(e.element,"ytp-panel-animate-forward"),g.ed(l.element,"ytp-panel-animate-back")):(g.qx(e.element,"ytp-panel-animate-back"),g.ed(l.element,"ytp-panel-animate-forward"));g.tV(E.element,E.size);E.j=new g.Nx(function(){g.ed(E.element,"ytp-popup-animating");e.detach();g.lw(e.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);E.j.dispose();E.j=null},250,E); E.j.start()}; kZX=function(E){E.J&&g.YN(E.J);E.j&&g.YN(E.j)}; vc=function(E){g.rp.call(this,E,"ytp-shopping-product-menu");this.vN=new g.Vx(this.U);g.L(this,this.vN);this.hide();g.DO(this,this.vN);g.sT(this.U,this.element,4)}; Xd0=function(E,e,l){var k,H=e==null?void 0:(k=e.text)==null?void 0:k.simpleText;H&&(l=OKS(E,l,H,e==null?void 0:e.icon,e==null?void 0:e.secondaryIcon),e.navigationEndpoint&&l.listen("click",function(){E.U.MD("innertubeCommand",e.navigationEndpoint);E.hide()},E))}; uHy=function(E,e,l){var k,H=e==null?void 0:(k=e.text)==null?void 0:k.simpleText;H&&OKS(E,l,H,e==null?void 0:e.icon).listen("click",function(){var O;(e==null?void 0:(O=e.icon)==null?void 0:O.iconType)==="HIDE"?E.U.publish("featuredproductdismissed"):e.serviceEndpoint&&E.U.MD("innertubeCommand",e.serviceEndpoint);E.hide()},E)}; OKS=function(E,e,l,k,H){e=new g.CV(g.pV({},[],!1,!!H),e,l);H&&e.updateValue("secondaryIcon",Abl(H));e.setIcon(Abl(k));g.L(E,e);E.vN.Qf(e,!0);return e}; Abl=function(E){if(!E)return null;switch(E.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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 $z0();case "HIDE":return{X:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"g",K:[{X:"path",D:{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 oY()}}; Pc=function(E){FV.call(this,E,!1,!0);this.isCounterfactual=this.G=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.Z({X:"button",s7:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.L(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Z({X:"img",B:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.L(this,this.thumbnailImage);this.thumbnailIcon=new g.Z({X:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.L(this,this.thumbnailIcon);this.banner=new g.Z({X:"a",B:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{X:"div",B:"ytp-suggested-action-details",K:[{X:"text",B:"ytp-suggested-action-title",Tz:"{{title}}"},{X:"text",B:"ytp-suggested-action-subtitle",Tz:"{{subtitle}}"},{X:"text",B:"ytp-suggested-action-metadata-text", Tz:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.L(this,this.banner);this.banner.u3(this.Z.element);this.C(this.U,"videodatachange",this.onVideoDataChange);this.C(this.U,g.Zj("suggested_action_view_model"),this.phg);this.C(this.U,g.Yk("suggested_action_view_model"),this.kX5);this.C(this.overflowButton.element,"click",this.QX);this.C(E,"featuredproductdismissed",this.dn);this.U.createServerVe(this.banner.element,this.banner,!0)}; CJ7=function(E){E.isInitialized&&(E.enabled=E.isVisible,E.kt=E.isVisible,IN(E),E.Pn(),E.thumbnailImage.Yw(E.isVisible),E.shouldHideDismissButton||E.dismissButton.Yw(E.isVisible),E.shouldShowOverflowButton&&E.overflowButton.Yw(E.isVisible))}; aN=function(){Pc.apply(this,arguments)}; pd9=function(E){WI.call(this,E);this.T=new aN(this.api);g.L(this,this.T);g.sT(this.api,this.T.element,4)}; L6=function(E){WI.call(this,E);var e=this;this.T=!0;var l=new g.G_(E);g.L(this,l);l.C(E,"internalaudioformatchange",function(k,H){xe8(e,k,H)}); l.C(E,"videoplayerreset",function(){QVW(e)}); l.C(E,"videodatachange",function(k,H){e.onVideoDataChange(k,H)})}; xe8=function(E,e,l){if(l){var k="";Wev(E,e)&&(k=e,E.api.Y().b3=e);if(k&&BFS(E,k)){D08(E.api,k);var H;F1(fT(E.api.Y(),(H=E.api.getVideoData())==null?void 0:g.Cb(H)),function(O){o69(E,k,O)})}}}; QVW=function(E){var e;if((e=dk())==null?0:e.size){var l;F1(fT(E.api.Y(),(l=E.api.getVideoData())==null?void 0:g.Cb(l)),function(k){(k=wdv(k))&&BFS(E,k)&&(E.api.Y().b3=k)})}}; o69=function(E,e,l){wdv(l)!==e&&(zDe([{settingItemId:ha(l),settingOptionValue:{stringValue:e}}]),F1(E.LI(),function(k){i2W(k,ha(l),{stringValue:e})}))}; deX=function(E,e){fR(F1(F1(E.LI(),function(l){return Giy(l,[ha(e)])}),function(l){if(l){l=g.T(l); for(var k=l.next();!k.done;k=l.next()){var H=k.value;k=H.key;H=H.value;k&&H&&(zDe([{settingItemId:k,settingOptionValue:H}]),QVW(E))}}}),function(){E.T=!0})}; Wev=function(E,e){E=E.api.getAvailableAudioTracks();E=g.T(E);for(var l=E.next();!l.done;l=E.next())if(l=l.value,l.getLanguageInfo().getId()===e)return l;return null}; wdv=function(E){E=ha(E);var e=dk();E=e?e.get(E):void 0;return E&&E.stringValue?E.stringValue:""}; ha=function(E){var e=(484).toString();E&&(e=(483).toString());return e}; BFS=function(E,e){var l;return e.split(".")[0]!==""&&((l=E.api.getVideoData())==null?void 0:!xC(l))}; zDe=function(E){var e=dk();e||(e=new Map);E=g.T(E);for(var l=E.next();!l.done;l=E.next())l=l.value,e.set(l.settingItemId,l.settingOptionValue);e=JSON.stringify(Object.fromEntries(e));g.Jw("yt-player-user-settings",e,2592E3)}; g.M_=function(E,e,l,k,H,O,X){g.CV.call(this,g.pV({"aria-haspopup":"true"}),e,E);this.wC=k;this.N=!1;this.Z=null;this.options={};this.G=new g.Vx(l,void 0,E,H,O,X);g.L(this,this.G);this.listen("keydown",this.us);this.listen("click",this.open)}; GZX=function(E){if(E.Z){var e=E.options[E.Z];e.element.getAttribute("aria-checked");e.element.setAttribute("aria-checked","false");E.Z=null}}; TF8=function(E,e){g.M_.call(this,"Timer de suspens\u00e3o",g.In.SLEEP_TIMER,E,e);this.U=E;this.V={};this.J=this.Jo("Off");this.j=this.T="";E.L("web_settings_menu_icons")&&(e=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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(e)); this.S=new g.Z({X:"div",s7:["ytp-menuitem-label-wrapper"],K:[{X:"div",Tz:"Fim do v\u00eddeo"},{X:"div",s7:["ytp-menuitem-sublabel"],Tz:"{{content}}"}]});g.L(this,this.S);this.listen("click",this.onClick);this.C(E,"videodatachange",this.onVideoDataChange);this.C(E,"presentingplayerstatechange",this.qD);this.C(E,"settingsMenuVisibilityChanged",this.ox);E.createClientVe(this.element,this,218889);this.qD();this.U.MD("onSleepTimerFeatureAvailable")}; iKp=function(E){var e="Off 10 15 20 30 45 60".split(" "),l;((l=E.U.getVideoData())==null?0:l.isLivePlayback)||e.push("End of video");l=E.U.getPlaylist();var k;l&&((k=l.listId)==null?void 0:k.type)!=="RD"&&e.push("End of playlist");E.nz(g.o7(e,E.Jo));E.V=g.R1(e,E.Jo,E);e=E.Jo("End of video");E.options[e]&&g.AL(E.options[e],E.S)}; $ep=function(E,e){var l=E.V[e],k=l==="End of video"||l==="End of playlist";l==="Off"&&(E.T="");E.U.getPlayerState()!==0&&E.U.getPlayerState()!==5||!k?(E.J=e,g.M_.prototype.IV.call(E,e),E.zS(e),E.U.MD("onSleepTimerSettingsChanged",l)):E.U.MD("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; N_=function(E){WI.call(this,E);var e=this;E.addEventListener("settingsMenuInitialized",function(){e.menuItem||(e.menuItem=new TF8(e.api,e.api.Xm()),g.L(e,e.menuItem))}); E.addEventListener("openSettingsMenuItem",function(l){if(l==="menu_item_sleep_timer"){if(!e.menuItem){var k;(k=e.api.Xm())==null||k.Bs()}e.menuItem.open()}}); Jt(E,"resetSleepTimerMenuSettings",function(){e.resetSleepTimerMenuSettings()}); Jt(E,"setSleepTimerTimeLeft",function(l){e.setSleepTimerTimeLeft(l)}); Jt(E,"setVideoTimeLeft",function(l){e.setVideoTimeLeft(l)})}; UeX=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"onSnackbarMessage",function(l){switch(l){case 1:l=e.api.getPlayerStateObject(),l.isBuffering()&&(e.api.L("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.m(l,8)&&g.m(l,16))&&e.api.MD("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubra por qu\u00ea"}]},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.Ya=function(E,e,l,k,H){e=e===void 0?!1:e;k=k===void 0?!1:k;H=H===void 0?!1:H;g.sJ.call(this);this.V=H;this.j=!1;this.S=new GC(this);this.W=this.J=null;this.Z=this.G=!1;g.L(this,this.S);this.target=E;this.T=e;this.N=l||E;this.j=k;e&&(g.AV&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));ZO(this)}; mw=function(E){g.iG(E.S,!E.T)}; ZO=function(E){E.W=null;E.J=null;E.C(gp("over"),E.GV);E.C("touchstart",E.Uf);E.T&&E.C(gp("down"),E.Fn5)}; JbX=function(E,e){for(var l=0;lx.start&&l>=5;U+=V}H=U.substr(0,4)+" "+U.substr(4,4)+" "+U.substr(8,4)+" "+(U.substr(12,4)+" "+U.substr(16,4))}else H="";X={video_id_and_cpn:String(e.videoId)+" / "+H,codecs:"",dims_and_frames:"",bandwidth_kbps:X.toFixed(0)+" Kbps",buffer_health_seconds:C.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:l,extra_debug_info:"",bandwidth_style:W,network_activity_style:W,network_activity_bytes:A.toFixed(0)+" KB",shader_info:Q,shader_info_style:Q?"":"display:none",playback_categories:""};A=k.clientWidth+"x"+k.clientHeight+(x>1?"*"+x.toFixed(2):"");C="-";O.totalVideoFrames&&(C=(O.droppedVideoFrames||0)+" dropped of "+O.totalVideoFrames);X.dims_and_frames=A+" / "+C;E=E.getVolume();A=tjp(e);var r;if((r=e.S)==null?0:r.audio.G)r= "VB";else{var P;r=((P=e.S)==null?0:P.audio.T)?"DRC":Math.round(E*A)+"%"}P=Math.round(E)+"% / "+r;r=e.yf.toFixed(1);isFinite(Number(r))&&(P+=" (content loudness "+r+"dB)");X.volume=P;X.resolution=k.videoWidth+"x"+k.videoHeight;if(k=e.G){if(P=k.video)r=P.fps,r>1&&(X.resolution+="@"+r),(r=O.jX)&&r.video&&(X.resolution+=" / "+r.video.width+"x"+r.video.height,r.video.fps>1&&(X.resolution+="@"+r.video.fps)),X.codecs=FeX(k),!e.S||k.audio&&k.video?k.uu&&(X.codecs+=" / "+k.uu+"A"):X.codecs+=" / "+FeX(e.S), P.T||P.primaries?(r=P.T||"unknown",r==="smpte2084"?r+=" (PQ)":r==="arib-std-b67"&&(r+=" (HLG)"),X.color=r+" / "+(P.primaries||"unknown"),X.color_style=""):X.color_style="display:none";if(k.debugInfo)for(X.fmt_debug_info="",k=g.T(k.debugInfo),P=k.next();!P.done;P=k.next())P=P.value,X.fmt_debug_info+=P.label+":"+P.text+" ";X.fmt_debug_info_style=X.fmt_debug_info&&X.fmt_debug_info.length>0?"":"display:none"}k=e.isLivePlayback;P=e.Af;X.live_mode_style=k||P?"":"display:none";X.live_latency_style=k?"": "display:none";if(P)X.live_mode="Post-Live"+(b7(e)?" Manifestless":"");else if(k){P=O.HO;X.live_latency_secs=P.toFixed(2)+"s";k=b7(e)?"Manifestless, ":"";e.SR&&(k+="Windowed, ");r="Uncertain";if(P>=0&&P<120)if(e.latencyClass&&e.latencyClass!=="UNKNOWN")switch(e.latencyClass){case "NORMAL":r="Optimized for Normal Latency";break;case "LOW":r="Optimized for Low Latency";break;case "ULTRALOW":r="Optimized for Ultra Low Latency";break;default:r="Unknown Latency Setting"}else r=e.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";k+=r;(P=O.C$)&&(k+=", seq "+P.sequence);X.live_mode=k}!O.isGapless||yJ(e)&&O.Tf||(X.playback_categories+="Gapless ");X.playback_categories_style=X.playback_categories?"":"display:none";X.bandwidth_samples=O.r4;X.network_activity_samples=O.ek;X.live_latency_samples=O.vO;X.buffer_health_samples=O.g1;O=g.oF(e);if(e.cotn||O)X.cotn_and_local_media=(e.cotn?e.cotn:"null")+" / "+O;X.cotn_and_local_media_style=X.cotn_and_local_media?"":"display:none"; zz(e,"web_player_release_debug")?(X.release_name=u[27],X.release_style=""):X.release_style="display:none";X.debug_info&&B.length>0&&X.debug_info.length+B.length<=60?X.debug_info+=" "+B:X.extra_debug_info=B;X.extra_debug_info_style=X.extra_debug_info&&X.extra_debug_info.length>0?"":"display:none";return X}; FeX=function(E){var e=/codecs="([^"]*)"/.exec(E.mimeType);return e&&e[1]?e[1]+" ("+E.itag+")":E.itag}; Ev=function(E,e,l,k,H){g.Z.call(this,{X:"div",B:"ytp-horizonchart"});this.j=e;this.sampleCount=l;this.S=k;this.J=H;this.index=0;this.heightPx=-1;this.Z=this.G=null;this.T=Math.round(E/l);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.j+"em"}; eJ=function(E,e){if(E.heightPx===-1){var l=null;try{l=g.Qz("CANVAS"),E.G=l.getContext("2d")}catch(A){}if(E.G){var k=E.T*E.sampleCount;E.Z=l;E.Z.width=k;E.Z.style.width=k+"px";E.element.appendChild(E.Z)}else for(E.sampleCount=Math.floor(E.sampleCount/4),E.T*=4,l=0;l1?2:1,E.Z.height=E.heightPx*l,E.Z.style.height= E.heightPx+"px",E.G.scale(1,l)));e=g.T(e);for(k=e.next();!k.done;k=e.next()){l=E;var H=E.index,O=k.value;for(k=0;k+20&&g.ob(e.G.element);k.classList.add("ytp-timely-actions-overlay");e.G.element.appendChild(k)}); g.L(this,this.G);this.L("web_player_overlay_positioned_layout")?this.events.C(E,"basechromeinitialized",function(){e.api.ys(e.G.element,4,!0);e.G.element.setAttribute("data-overlay-order","10")}):g.sT(this.api,this.G.element,4)}; mep=function(E){E.timelyActions&&(E.S=E.timelyActions.reduce(function(e,l){if(l.cueRangeId===void 0)return e;e[l.cueRangeId]=0;return e},{}))}; Ov=function(E,e){if(E.timelyActions){E=g.T(E.timelyActions);for(var l=E.next();!l.done;l=E.next())if(l=l.value,l.cueRangeId===e)return l}}; g6p=function(E,e){if((E=Ov(E,e))&&E.onCueRangeExit)return j6(E.onCueRangeExit)}; MHe=function(E,e){return E.Z===void 0?!1:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===5E3?E.Z===72:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===1E4?E.Z===74:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===5E3?E.Z===71:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===1E4?E.Z===73:!1}; KeZ=function(E,e){var l=Number(e==null?void 0:e.maxVisibleDurationMilliseconds);l&&(Xq(E),E.kt=setTimeout(function(){if(E.T!==void 0&&(e==null?void 0:e.cueRangeId)===E.T){E.V=!1;var k=g6p(E,E.T);k&&E.api.MD("innertubeCommand",k)}},l))}; Xq=function(E){E.kt&&clearTimeout(E.kt);E.kt=void 0;E.V=!1}; NFp=function(E){if(E=E.getWatchNextResponse()){var e,l;E=(e=E.playerOverlays)==null?void 0:(l=e.playerOverlayRenderer)==null?void 0:l.timelyActionsOverlayViewModel;e=g.M(E,n6W);if(e!=null&&e.timelyActions)return e==null?void 0:e.timelyActions.map(function(k){return g.M(k,RDX)}).filter(function(k){return!!k})}}; sVe=function(E){WI.call(this,E);var e=this;cO(this.api,"getPlaybackRate",function(){return e.api.getPlaybackRate()}); cO(this.api,"setPlaybackRate",function(l){typeof l==="number"&&e.api.setPlaybackRate(l)})}; u6=function(E,e,l,k){i4.call(this,"VOICE_BOOST",g.In.bG);this.T=!1;this.U=E;this.wC=E.Xm();this.S=e;this.Z=l;this.hasVoiceBoostAudioTrack=k;this.C(E,"videodatachange",this.G);this.setIcon(fZ7());this.subscribe("select",this.J,this);this.G()}; Am=function(E){WI.call(this,E);var e=this;this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"settingsMenuInitialized",function(){tHW(e)}); Jt(this.api,"getVoiceBoostUserPreference",function(){return e.getVoiceBoostUserPreference()}); Jt(this.api,"setVoiceBoostUserPreference",function(k){e.setVoiceBoostUserPreference(k)}); Jt(this.api,"hasVoiceBoostAudioTrack",function(){return e.hasVoiceBoostAudioTrack()}); var l;this.T=(l=OrX())!=null?l:0;this.updateEnvironmentData()}; tHW=function(E){E.menuItem||(E.menuItem=new u6(E.api,function(e){E.setVoiceBoostUserPreference(e)},function(){return E.getVoiceBoostUserPreference()},function(){return E.hasVoiceBoostAudioTrack()}),g.L(E,E.menuItem))}; q_0=function(E){E=E.cN();if(!E)return!1;E=g.R0(E).exp||"";return E.includes("xpv")||E.includes("xpe")}; E87=function(E){E=g.T(g.Cs(E,!0));for(var e=E.next();!e.done;e=E.next())if(q_0(e.value))return!0;return!1}; eAe=function(E,e){E=g.T(g.Cs(E,!0));for(var l=E.next();!l.done;l=E.next())if(l=l.value,q_0(l)){var k={potc:"1",pot:e};l.url&&(l.url=sc(l.url,k))}}; lI7=function(E){return g.D(function(e){if(e.G==1)return g.U9(e,2),g.S(e,E,4);if(e.G!=2)return g.jp(e,0);g.FW(e);g.$0(e)})}; xL=function(E){WI.call(this,E);var e=this;this.useLivingRoomPoToken=!1;this.W=new g.AZ;this.T=!1;this.xw=null;this.N=!1;this.S=null;this.J=!1;var l=E.Y().getWebPlayerContextConfig();this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"spsumpreject",function(k,H,O){e.J=H;k&&e.N&&!e.S&&(e.L("html5_generate_content_po_token")&&O?e.ZD(O):e.L("html5_generate_session_po_token")&&k5e(e));e.S||e.api.wH("stp",{s:+e.N,b:+e.J})}); this.events.C(E,"poTokenVideoBindingChange",function(k){e.ZD(k)}); this.useLivingRoomPoToken=!(l==null||!l.useLivingRoomPoToken);E.addEventListener("csiinitialized",function(){e.xw=E.VR();var k=(e.L("html5_generate_session_po_token")||e.L("html5_generate_content_po_token"))&&!e.useLivingRoomPoToken;try{if(e.L("html5_use_shared_owl_instance"))H5X(e);else if(k){e.xw.Ec("pot_isc");var H=g.tJ(e.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");H?(e.Z=DK(),g.uM(function(){ps(e)},H)):e.L("html5_webpo_idle_priority_job")?(e.Z=DK(),g.Nz(g.Yp(),function(){ps(e)})): ps(e)}}catch(O){O instanceof Error&&g.UJ(O)}}); E.addEventListener("trackListLoaded",this.Bq.bind(this));E.PD(this)}; O5S=function(E){var e=d_(E.experiments,"html5_web_po_request_key");return e?e:g.QS(E)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; XB9=function(E){var e=new ucZ,l={},k=(l["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",l);return new By(e,E,function(){return k})}; ukW=function(E){return new oh(E)}; QR=function(E,e){E.L("html5_webpo_bge_ctmp")&&E.api.wH(e,{hwpo:!!E.G,hwpor:E.T})}; H5X=function(E){var e,l;g.D(function(k){if(k.G==1)return QR(E,"swpo_i"),E.Z=DK(),WG(E),g.S(k,ny(),2);if(k.G!=3)return e=k.T,QR(E,"swpo_co"),g.S(k,b3y(e),3);l=k.T;E.L("html5_web_po_token_disable_caching")||l.RS(150);E.G=l;QR(E,"swpo_cc");lI7(l.lA()).then(function(){E.T=!0;E.W.resolve();QR(E,"swpo_re")}); g.uM(function(){ps(E);QR(E,"swpo_si")},0); g.$0(k)})}; pBX=function(E){var e=E.api.Y(),l=XB9(O5S(e)),k=l.oE.bind(l);l.oE=function(A){var C;return g.D(function(p){if(p.G==1)return g.S(p,k(A),2);C=p.T;E.api.wH("itr",{});return p.return(C)})}; try{var H=ukW({Go:l,fZ:{maxAttempts:5},tp:{Y1:"CLEn",disable:e.experiments.P5("html5_web_po_disable_remote_logging")||AQ7.includes(g.uy(e.Uv)||""),fd:RK9(e.experiments),Rk:e.experiments.P5("wpo_gel_strz")?function(A){var C=Cep.get(A);C||(C=new d10(A),C=new g.bW(C),Cep.set(A,C));return C}:void 0, ZgM:E.L("wpo_dis_lfdms")?0:1E3},nwH:g.UJ});var O=new SF({D0:H,Go:l,onError:g.UJ});lI7(O.lA()).then(function(){E.T=!0;E.W.resolve()}); E.L("html5_web_po_token_disable_caching")||O.RS(150);g.L(E,H);g.L(E,O);E.G=O}catch(A){g.UJ(A);var X;(X=H)==null||X.dispose()}}; ps=function(E){var e=E.api.Y();E.xw.Ec("pot_ist");E.G||pBX(E);E.L("html5_bandaid_attach_content_po_token")||(E.L("html5_generate_session_po_token")&&(WG(E),k5e(E)),e=g.tJ(e.experiments,"html5_session_po_token_interval_time_ms")||0,e>0&&(E.j=g.A2(function(){WG(E)},e)),E.N=!0)}; WG=function(E){var e,l,k,H;g.D(function(O){if(!E.L("html5_generate_session_po_token")||E.useLivingRoomPoToken)return O.return();e=E.api.Y();l=g.LF("EOM_VISITOR_DATA")||g.LF("VISITOR_DATA");k=e.NT?e.datasyncId:l;H=d_(e.experiments,"html5_mock_content_binding_for_session_token")||e.livingRoomPoTokenId||k;e.W7=BG(E,H);g.$0(O)})}; BG=function(E,e){if(!E.G){if(E.Z)try{return E.Z(e)}catch(O){g.UJ(O)}return""}try{E.xw.Ec(E.T?"pot_cms":"pot_csms");var l={W9:!0,LC:!0,uR:e};E.L("html5_web_po_token_disable_caching")||(l.yM={Sq:e,Rf:!0,nT:!0});var k=E.G.JZ(l);E.xw.Ec(E.T?"pot_cmf":"pot_csmf");if(E.T){var H;(H=E.S)==null||H.resolve();E.S=null;E.J&&(E.J=!1,E.api.app.yd().IB(!1))}return k}catch(O){return g.UJ(O),""}}; k5e=function(E){E.G&&(E.S=new xZ,E.W.promise.then(function(){E.xw.Ec("pot_if");WG(E)}))}; g.ou=function(E,e,l){g.k_(E.element,"ytp-suggestion-set",!!e.videoId);var k=e.playlistId;l=e.Za(l?l:"mqdefault.jpg");var H=null,O=null;e instanceof RQ&&(e.lengthText?(H=e.lengthText||null,O=e.zo||null):e.lengthSeconds&&(H=g.ok(e.lengthSeconds),O=g.ok(e.lengthSeconds,!0)));var X=!!k;k=X&&KT(k).type==="RD";var A=e instanceof RQ?e.isLivePlayback:null,C=e instanceof RQ?e.isUpcoming:null,p=e.author,x=e.shortViewCount,Q=e.publishedTimeText,W=[],B=[];p&&W.push(p);x&&(W.push(x),B.push(x));Q&&B.push(Q);l= {title:e.title,author:p,author_and_views:W.join(" \u2022 "),aria_label:e.ariaLabel||g.eE("Assistir a $TITLE",{TITLE:e.title}),duration:H,timestamp:O,url:e.f_(),is_live:A,is_upcoming:C,is_list:X,is_mix:k,background:l?"background-image: url("+l+")":"",views_and_publish_time:B.join(" \u2022 "),autoplayAlternativeHeader:e.a5};e instanceof nT&&(l.playlist_length=e.playlistLength);E.update(l)}; g.wc=function(E){var e=E.Y(),l=g.oW||g.RU?{style:"will-change: opacity"}:void 0,k=e.S,H=["ytp-modern-videowall-still"];e.G&&H.push("ytp-videowall-show-text");g.Z.call(this,{X:"a",s7:H,D:{href:"{{url}}",target:k?e.V:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},K:[{X:"div",B:"ytp-modern-videowall-still-image",D:{style:"{{background}}"},K:[{X:"span",B:"ytp-modern-videowall-still-info-duration",Tz:"{{duration}}"}]},{X:"span",B:"ytp-modern-videowall-still-info", D:{"aria-hidden":"true"},K:[{X:"span",B:"ytp-modern-videowall-still-info-bg",K:[{X:"span",B:"ytp-modern-videowall-still-info-content",D:l,K:[{X:"span",B:"ytp-modern-videowall-still-info-title",Tz:"{{title}}"},{X:"span",B:"ytp-modern-videowall-still-info-author",Tz:"{{author_and_views}}"},{X:"span",B:"ytp-modern-videowall-still-info-live",Tz:"Ao vivo"}]}]}]},{X:"span",s7:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},K:[{X:"span",B:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{X:"span",B:"ytp-modern-videowall-still-listlabel-length",K:[" (",{X:"span",Tz:"{{playlist_length}}"},")"]}]},{X:"span",s7:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},K:[{X:"span",B:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{X:"span",B:"ytp-modern-videowall-still-listlabel-length",Tz:" (50+)"}]}]});this.suggestion=null;this.G=k;this.api=E;this.T=new g.G_(this);g.L(this,this.T);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.T.C(E,"videodatachange",this.onVideoDataChange);E.createServerVe(this.element,this);this.onVideoDataChange()}; g.xHy=function(E,e){if(E.suggestion!==e){E.suggestion=e;var l=E.api.Y();g.ou(E,e,"hqdefault.jpg");if(g.qA(l)&&!E.api.L("web_player_log_click_before_generating_ve_conversion_params")){l=e.f_();var k={};g.ju(E.api,"addEmbedsConversionTrackingParams",[k]);l=g.BJ(l,k);E.updateValue("url",l)}(e=(e=e.sessionData)&&e.itct)&&E.api.setTrackingParams(E.element,e)}}; WK9=function(E,e){g.Z.call(this,{X:"div",s7:["ytp-fullscreen-grid"],K:[{X:"div",B:"ytp-fullscreen-grid-hover-overlay",D:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},K:[{X:"div",B:"ytp-fullscreen-grid-hover-overlay-chevron",K:[{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"g",D:{filter:"url(#filter0_d_3104_799356)"},K:[{X:"path",D:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{X:"defs",K:[{X:"filter",D:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},K:[{X:"feFlood",D:{"flood-opacity":"0",result:"BackgroundImageFix"}},{X:"feColorMatrix",D:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{X:"feOffset"},{X:"feGaussianBlur",D:{stdDeviation:"0.5"}},{X:"feComposite",D:{in2:"hardAlpha",operator:"out"}},{X:"feColorMatrix",D:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {X:"feBlend",D:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{X:"feBlend",D:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{X:"div",B:"ytp-fullscreen-grid-main-content",K:[{X:"div",B:"ytp-fullscreen-grid-header",K:[{X:"div",B:"ytp-fullscreen-grid-header-buttons",K:[{X:"button",s7:["ytp-grid-replay-button","ytp-button"],D:{title:"Reiniciar","aria-keyshortcuts":"r","aria-label":"Reiniciar","data-title-no-tooltip":"Reiniciar"}, K:[vpX()]},{X:"button",B:"ytp-fullscreen-grid-header-button",D:{"aria-label":"{{ariaLabel}}"}}]},{X:"button",s7:["ytp-grid-menu-close","ytp-button"],D:{"aria-label":"Fechar"},K:[g.pN()]}]},{X:"div",B:"ytp-fullscreen-grid-stills-container"}]}]});var l=this;this.player=E;this.stills=[];this.videoData=null;this.currentState=0;this.j=this.X6("ytp-fullscreen-grid-main-content");this.J=this.X6("ytp-fullscreen-grid-header");E=this.X6("ytp-fullscreen-grid-header-buttons");this.Z=this.X6("ytp-grid-menu-close"); this.G=this.X6("ytp-grid-replay-button");this.T=this.X6("ytp-fullscreen-grid-header-button");this.V=this.X6("ytp-fullscreen-grid-stills-container");this.S=new g.G_(this);g.L(this,this.S);this.N=e;if(this.J&&this.j&&E&&this.V&&this.T&&this.Z){if(e=this.X6("ytp-fullscreen-grid-hover-overlay"))this.C(e,"click",this.Ry),ht(this.player,e,this);this.G&&(this.C(this.G,"click",function(k){l.Is(k)}),ht(this.player,this.G,this)); this.T&&this.C(this.T,"click",this.Ry);this.Z&&this.C(this.Z,"click",this.Ry);if(e=this.player.getVideoData(1))this.videoData=e,Qsl(this);this.player.createClientVe(this.J,this,223051);this.S.C(this.player,"videodatachange",this.onVideoDataChange);this.S.C(this.player,"presentingplayerstatechange",this.Fx)}}; Qsl=function(E){var e=E.player.getPlayerStateObject();g.k_(E.player.getRootNode(),"ytp-grid-ended-state",g.m(e,2))}; GR=function(E){WI.call(this,E);var e=this;this.j=this.T=this.G=0;this.J=null;this.S=0;this.isEnded=!1;this.N=null;var l=new g.G_(E);g.L(this,l);this.kt=this.api.L("web_player_imax_theater_mode");this.Z=this.api.L("web_player_enable_fullscreen_grid_components");l.C(E,"fullscreentoggled",function(){zR(e)}); l.C(E,"autohideupdate",function(k){k&&e.G===2&&dc(e,1)}); l.C(E,"videodatachange",function(){if(e.Z){var k=e.api.getVideoData(1);e.videoData!==k&&e.G===2&&dc(e,1);e.videoData=k}},this); l.C(E,"sizestylechange",function(){e.Z&&zR(e)}); Jt(this.api,"setFullscreenQuickActions",function(k){e.setFullscreenQuickActions(k)}); Jt(this.api,"setPlayerOverlayVideoDetailsRenderer",function(k){e.setPlayerOverlayVideoDetailsRenderer(k)}); this.Z&&BU8(this,l,E)}; BU8=function(E,e,l){e.C(l,"keyboardserviceglobalkeydown",function(k,H){E.Z&&k.keyCode===86&&!k.repeat&&E.G!==0&&(H&&(H.U6=!0),o8X(E,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); e.C(E.api.getRootNode(),"wheel",function(k){if(!E.N){var H;if(E.Z&&(H=E.W)!=null&&H.element&&E.G!==0&&TR(E))if(g.qx(E.api.getRootNode(),"ytp-grid-scrolling"),E.S===0&&(E.S=window.innerHeight),E.G===1)E.S!==0&&(E.T+=k.deltaY/E.S,E.T=Math.min(Math.max(E.T,0),.85),i6(E),wBX(E,Math.abs(E.T)>=.85));else if(E.G===2){H=k.deltaY<0;var O,X=((O=E.W)==null?void 0:O.element.scrollTop)===0;H&&X?E.S!==0&&(E.T+=k.deltaY/E.S,i6(E),wBX(E,Math.abs(E.T)>=.85)):E.T!==0&&(E.T=0,i6(E))}}},{passive:!0}); e.C(l,"standardControlsInitialized",function(){if(!E.W){E.W=new WK9(E.api,E.pg.bind(E));g.L(E,E.W);var k=E.api.getRootNode().querySelector(".ytp-chrome-bottom");k&&k.parentNode&&k.parentNode.insertBefore(E.W.element,k.nextSibling)}}); e.C(l,"presentingplayerstatechange",function(){$L(E)}); e.C(l,"autonavvisibility",function(){$L(E)}); E.api.Fm().subscribe("visibilitystatechange",function(){$L(E)}); zA0(E,E.G)}; wBX=function(E,e){E.J&&clearTimeout(E.J);e?dHX(E):E.J=window.setTimeout(function(){dHX(E)},150)}; dHX=function(E){E.J&&(clearTimeout(E.J),E.J=null);E.S=0;E.Z&&E.G!==0&&(Math.abs(E.T)>=.15&&o8X(E,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),E.T=0,i6(E),g.ed(E.api.getRootNode(),"ytp-grid-scrolling"))}; o8X=function(E,e){E.Z&&(e==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(E.N&&clearTimeout(E.N),E.N=window.setTimeout(function(){E.N=null},1E3)),E.G===1?dc(E,2):dc(E,1))}; TR=function(E){return E.api.isFullscreen()||E.kt&&E.api.jY()}; zR=function(E){var e=TR(E);g.k_(E.api.getRootNode(),"ytp-full-bleed-player",e);E.V&&g.Ef(E.V,e);E.playerOverlayVideoDetailsRenderer&&g.Ef(E.playerOverlayVideoDetailsRenderer,e);E.Z&&$L(E)}; $L=function(E){if(E.Z){var e;if(E.api.getPresentingPlayerType()===2||E.api.wR()||((e=g.Su(E.api))==null?0:e.fD())||E.api.isMinimized())dc(E,0);else{if(e=g.m(E.api.getPlayerStateObject(),2))dc(E,2);else if(E.isEnded&&!e){var l=TR(E)?1:0;E.isEnded=e;dc(E,l)}else TR(E)?E.G!==2&&dc(E,1):dc(E,0);E.isEnded=e}}}; dc=function(E,e){E.G=e;var l;(l=E.W)==null||l.eJ(e);E.T=0;i6(E);zA0(E,e)}; zA0=function(E,e){E=E.api.getRootNode();g.k_(E,"ytp-fullscreen-grid-peaking",e===1);g.k_(E,"ytp-fullscreen-grid-active",e===2)}; i6=function(E){requestAnimationFrame(function(){var e=E.T-E.j,l=e;E.T!==0&&(l=Math.max(-.01,Math.min(e,.01)));E.j+=l;E.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+E.j.toString());E.j!==E.T&&i6(E)})}; G5W=function(E){WI.call(this,E);var e=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.G_(E);g.L(this,this.events);this.events.C(E,"heartbeatRequest",function(l){if(e.freePreviewUsageDetails.length||e.freePreviewWatchedDuration!==null)l.heartbeatRequestParams||(l.heartbeatRequestParams={}),l.heartbeatRequestParams.unpluggedParams||(l.heartbeatRequestParams.unpluggedParams={}),e.freePreviewUsageDetails.length>0?l.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= e.freePreviewUsageDetails:l.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+e.freePreviewWatchedDuration}}); Jt(E,"setFreePreviewWatchedDuration",function(l){e.freePreviewWatchedDuration=l}); Jt(E,"setFreePreviewUsageDetails",function(l){e.freePreviewUsageDetails=l})}; Uv=function(E){g.a.call(this);this.features=[];var e=this.T,l=new N6(E),k=new BI(E),H=new $a(E),O=new xL(E);var X=g.pp(E.Y())?void 0:new b4(E);var A=new i0(E),C=new rbW(E),p=new sVe(E),x=new M6(E);var Q=g.pp(E.Y())?new G5W(E):void 0;var W;var B=(W=E.Y().getWebPlayerContextConfig())!=null&&W.cinematicSettingsAvailable?new V7(E):void 0;W=new hL(E);var w=E.L("enable_courses_player_overlay_purchase")?new QJ9(E):void 0;var U=g.TH(E.Y())?new A9l(E):void 0;var c=new vI(E);var V=E.Y().S?new lJ0(E):void 0; var F=g.qA(E.Y())?new eeZ(E):void 0;var r=E.L("web_player_move_autonav_toggle")&&E.Y().Fy?new g2X(E):void 0;var P=g.TH(E.Y())?new iQ0(E):void 0;var N=E.L("web_enable_speedmaster")&&g.TH(E.Y())?new RN(E):void 0;var R=E.Y().RF?void 0:new hDv(E);var K=E.L("report_pml_debug_signal")?new Nn7(E):void 0;var XW=new bQW(E),oZ=new yx(E);var A7=g.Ik(E.Y())?new thy(E):void 0;var CS=navigator.mediaSession&&window.MediaMetadata&&E.Y().Zc?new Gx(E):void 0;var ep=E.L("html5_enable_drc")&&!E.Y().J?new Dd(E):void 0; var IZ=new w7(E);var nS=g.TH(E.Y())?new pd9(E):void 0;var E6=E.L("html5_enable_d6de4")?new Um(E):void 0;var zd=g.TH(E.Y())&&E.L("web_sleep_timer")?new N_(E):void 0;var A0=g.qA(E.Y())?new H_p(E):void 0;var VX=new L6(E),Op=new tbe(E),vt=new GIZ(E);var Zk=E.L("enable_sabr_snackbar_message")?new UeX(E):void 0;var XF=E.L("web_enable_timely_actions")?new Y_8(E):void 0;var f=new Sy(E);var Le=g.TH(E.Y())?new GR(E):void 0;var SS=E.L("html5_enable_voice_boost")?new Am(E):void 0;var k0=E.L("web_player_loop_settings_menu")&& E.Y().zx?new T1e(E):void 0;var ct=E.L("html5_masthead_default_playback_rate")&&!g.pp(E.Y())?new cHX(E):void 0;var J=E.L("web_player_playable_sequences_refactor")?new g1v(E):void 0;var lX=E.L("html5_enable_audio_quality_setting")&&E.L("html5_enable_audio_quality_setting_feature")?new GF(E):void 0;E=E.L("html5_ypc_clickwrap_module_refactor")?new v1l(E):void 0;e.call(this,l,k,H,O,X,A,C,p,x,Q,B,W,w,U,c,V,F,r,P,N,R,K,XW,oZ,A7,void 0,CS,ep,IZ,void 0,nS,E6,zd,A0,void 0,VX,Op,vt,void 0,Zk,XF,f,Le,SS,void 0, k0,void 0,ct,J,lX,E)}; TUp=function(){this.G=this.T=NaN}; i5W=function(E,e){this.dH=E;this.timerName="";this.Z=!1;this.G=NaN;this.S=new TUp;this.T=e||null;this.Z=!1}; $HS=function(E,e,l){var k=g.OV(e.F6)&&!e.F6.J;if(e.F6.Hn&&(eC(e.F6)||e.F6.h0==="shortspage"||yN(e.F6)||k)&&!E.Z){E.Z=!0;E.J=e.clientPlaybackNonce;g.LF("TIMING_ACTION")||vC("TIMING_ACTION",E.dH.csiPageType);E.dH.csiServiceName&&vC("CSI_SERVICE_NAME",E.dH.csiServiceName);if(E.T){k=E.T.VR();for(var H=g.T(Object.keys(k)),O=H.next();!O.done;O=H.next())O=O.value,$Q(O,k[O],E.timerName);k=g.ZP(sa7)(E.T.Xd);g.UX(k,E.timerName);k=E.T;k.T={};k.Xd={}}g.UX({playerInfo:{visibilityState:g.ZP(Rjp)()},playerType:"LATENCY_PLAYER_HTML5"}, E.timerName);E.W!==e.clientPlaybackNonce||Number.isNaN(E.G)||(cz("_start",E.timerName)?l=g.ZP(wL)("_start",E.timerName)+E.G:g.UJ(new g.PK("attempted to log gapless pbs before CSI timeline started",{cpn:e.clientPlaybackNonce})));l&&!cz("pbs",E.timerName)&&Jm(E,l)}}; Jm=function(E,e,l){$Q("pbs",e!=null?e:(0,g.dE)(),l!=null?l:E.timerName)}; cG=function(E){uP8();XN7();E.timerName=""}; UHy=function(E){if(E.T){var e=E.T;e.T={};e.Xd={}}E.Z=!1;E.W=void 0;E.G=NaN}; JQv=function(E,e){g.sJ.call(this);this.F6=E;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.N={};this.G=0;if(E=e.session_data)this.sessionData=mn(E,"&");this.index=Math.max(0,Number(e.index)||0);this.loop=!!e.loop;this.startSeconds=Number(e.startSeconds)||0;this.title=e.playlist_title||"";this.description=e.playlist_description||"";this.author= e.author||e.playlist_author||"";e.video_id&&(this.items[this.index]=e);if(E=e.api)typeof E==="string"&&E.length===16?e.list="PL"+E:e.playlist=E;if(E=e.list)switch(e.listType){case "user_uploads":this.listId=new g3("UU","PLAYER_"+E);break;default:var l=e.playlist_length;l&&(this.length=Number(l)||0);this.listId=KT(E);if(E=e.video)this.items=E.slice(0),this.loaded=!0}else if(e.playlist){E=e.playlist.toString().split(",");this.index>0&&(this.items=[]);E=g.T(E);for(l=E.next();!l.done;l=E.next())(l=l.value)&& this.items.push({video_id:l});this.length=this.items.length;if(E=e.video)this.items=E.slice(0),this.loaded=!0}this.setShuffle(!!e.shuffle);if(E=e.suggestedQuality)this.quality=E;this.N=Nq(e,"playlist_");this.Z=(e=e.thumbnail_ids)?e.split(","):[]}; cQW=function(E){return!!(E.playlist||E.list||E.api)}; yQv=function(E){var e=E.index+1;return e>=E.length?0:e}; jse=function(E){var e=E.index-1;return e<0?E.length-1:e}; g.yR=function(E,e,l,k){e=e!==void 0?e:E.index;e=E.items&&e in E.items?E.items[E.order[e]]:null;var H=null;e&&(l&&(e.autoplay="1"),k&&(e.autonav="1"),H=new g.oR(E.F6,e),g.L(E,H),H.Kz=!0,H.startSeconds=E.startSeconds||H.clipStart||0,E.listId&&(H.playlistId=E.listId.toString()));return H}; II7=function(E,e){E.index=g.Lk(e,0,E.length-1);E.startSeconds=0}; FKZ=function(E,e){if(e.video&&e.video.length){E.title=e.title||"";E.description=e.description;E.views=e.views;E.likes=e.likes;E.dislikes=e.dislikes;E.author=e.author||"";var l=e.loop;l&&(E.loop=l);l=g.yR(E);E.items=[];for(var k=g.T(e.video),H=k.next();!H.done;H=k.next())if(H=H.value)H.video_id=H.encrypted_id,E.items.push(H);E.length=E.items.length;(e=e.index)?E.index=e:E.findIndex(l);E.setShuffle(!1);E.loaded=!0;E.G++;E.T&&E.T()}}; S50=function(E,e){var l,k,H,O,X,A,C;return g.D(function(p){if(p.G==1){l=g.Nu();var x=E.Y(),Q={context:g.$C(E),playbackContext:{contentPlaybackContext:{ancestorOrigins:x.ancestorOrigins}}},W=x.getWebPlayerContextConfig();if(W==null?0:W.encryptedHostFlags)Q.playbackContext.contentPlaybackContext.encryptedHostFlags=W.encryptedHostFlags;if(W==null?0:W.hideInfo)Q.playerParams={showinfo:!1};W=x.embedConfig;var B=E.Q0;var w=e.docid||e.video_id||e.videoId||e.id;if(!w){w=e.raw_embedded_player_response;if(!w){var U= e.embedded_player_response;U&&(w=JSON.parse(U))}if(w){var c,V,F,r,P,N;w=((N=g.M((c=w)==null?void 0:(V=c.embedPreview)==null?void 0:(F=V.thumbnailPreviewRenderer)==null?void 0:(r=F.playButton)==null?void 0:(P=r.buttonRenderer)==null?void 0:P.navigationEndpoint,g.i7))==null?void 0:N.videoId)||null}else w=null}c=(c=w)?c:void 0;V=E.playlistId?E.playlistId:e.list;F=e.listType;if(V){var R;F==="user_uploads"?R={username:V}:R={playlistId:V};fIS(W,B,c,e,R,x.experiments);Q.playlistRequest=R}else e.playlist? (R={templistVideoIds:e.playlist.toString().split(",")},fIS(W,B,c,e,R,x.experiments),Q.playlistRequest=R):c&&(R={videoId:c},B&&x.L("embeds_enable_per_video_embed_config")?R.serializedThirdPartyEmbedConfig=B:W&&(R.serializedThirdPartyEmbedConfig=W),Q.singleVideoRequest=R);k=Q;H=g.mt(Vwy);g.U9(p,2);return g.S(p,g.Vj(l,k,H),4)}if(p.G!=2)return O=p.T,X=E.Y(),e.raw_embedded_player_response=O,X.Qd=et(e,g.qA(X)),X.Z=X.Qd==="EMBEDDED_PLAYER_MODE_PFL",O&&(A=O,A.trackingParams&&KR(A.trackingParams)),p.return(new g.oR(X, e));C=g.FW(p);C instanceof Error||(C=Error("b259802748"));g.$F(C);return p.return(E)})}; fIS=function(E,e,l,k,H,O){k.index&&(H.playlistIndex=String(Number(k.index)+1));H.videoId=l?l:"";e&&O.P5("embeds_enable_per_video_embed_config")?H.serializedThirdPartyEmbedConfig=e:E&&(H.serializedThirdPartyEmbedConfig=E)}; g.Iu=function(E,e){jJ.get(E);jJ.set(E,e)}; g.Fq=function(E){g.sJ.call(this);this.loaded=!1;this.player=E}; rQp=function(){this.G=[];this.T=[]}; g.Cs=function(E,e){return e?E.T.concat(E.G):E.T}; g.fs=function(E,e){switch(e.kind){case "asr":DHS(e,E.G);break;default:DHS(e,E.T)}}; DHS=function(E,e){g.Gd(e,function(l){return E.equals(l)})||e.push(E)}; g.VR=function(E){g.a.call(this);this.eR=E;this.G=new rQp;this.S=null;this.W=[];this.N=[]}; g.SJ=function(E,e,l){g.VR.call(this,E);this.videoData=e;this.audioTrack=l;this.T=null;this.Z=!1;this.W=e.Ic;this.N=e.cF;this.Z=g.XD(e)}; g.b5S=function(E,e){var l;return E.Y().L("safari_live_drm_captions_fix")&&((l=E.getVideoData())==null?0:l.hB())?!1:g.pp(E.Y())&&!e.isManifestless}; g.rc=function(E,e){return h4(E.info.mimeType)?e?E.info.itag===e:!0:!1}; g.v8e=function(E,e){if(E.T!=null&&g.b5S(e,E.T)&&E.T.T.rawcc!=null)return!0;if(!E.sK())return!1;e=!!E.T&&E.T.isManifestless&&Object.values(E.T.T).some(function(l){return g.rc(l,"386")}); E=!!E.T&&!E.T.isManifestless&&g.oZW(E.T);return e||E}; g.D3=function(E,e,l,k,H,O){g.VR.call(this,E);this.videoId=l;this.hw=H;this.eventId=O;this.J={};this.T=null;E=k||g.R0(e).hl||"";E=E.split("_").join("-");this.Z=sc(e,{hl:E})}; Pey=function(E,e){g.a.call(this);var l=this;this.U=E;this.S=e;this.Xd={};this.T={};this.G=null;this.Z=new Set;this.W=new g.G_(this);this.p5={seM:function(){return l.S}}; this.J=this.U.L("web_player_defer_modules");this.zN=new Map;g.L(this,this.W);this.W.C(E,"videodatachange",this.onVideoDataChange)}; aIe=function(E,e){E.G=e}; g.b6=function(E){return E.zN.get("captions")}; mHv=function(E,e){switch(e){case "ad":return LKp(E);case "annotations_module":return E.U.isEmbedsShortsMode()?E=!1:(e=E.U,E=e.Y(),e=e.getVideoData(),E=E.Z||e.yr||E.controlsType==="3"?!1:E.c5.isEmpty()&&E.playerStyle!=="annotation-editor"&&E.playerStyle!=="live-dashboard"?!!e.J0||!!g.lc(e)||!!g.kC(e):!0),E;case "asmjs":return hAW(E);case "creatorendscreen":return MwW(E);case "embed":return g.qA(E.U.Y());case "endscreen":return g.NUp(E);case "heartbeat":return E.vD();case "kids":return QN(E.U.Y()); case "remote":return E.U.Y().a6;case "miniplayer":return E.U.Y().showMiniplayerUiWhenMinimized;case "offline":return E.U.Y().w2;case "captions":return Z5Z(E);case "unplugged":return g.XG(E.U.Y());case "ux":return E.U.Y().gH;case "webgl":return Y5e(E);case "ypc":return E.dE();case "ypc_clickwrap":return l0W(E.U.getVideoData());case "yto":return E.U.L("web_player_playable_sequences_refactor")?!1:!!E.U.getVideoData().V.includes("yto");default:return g.$F(Error("Module descriptor "+e+" does not match")), !1}}; vG=function(E,e,l,k,H){var O;l=l===void 0?!1:l;k=k===void 0?!1:k;var X=E.zN.get(e);if(!X||k)if(H||(H=function(){vG(E,e,l,k)}),O||(O=function(){E.U.SH(e)}),X=X||g8p(E,e,mHv(E,e),H,O))E.zN.set(e,X),X.create(),E.U.publish("modulecreated",e),l&&E.U.c7("onApiChange")}; n80=function(E){var e=e===void 0?!1:e;var l,k,H,O,X;return g.D(function(A){if(A.G==1)return(l=E.zN.get("asmjs"))&&!e?A.return(l):(k=jJ.get("asmjs"))!=null?(H=k,A.xt(2)):g.S(A,new Promise(function(C,p){KKS(E,"asmjs",function(){var x=jJ.get("asmjs");x?C(x):p("cannot load module asmjs")},p)}),3); A.G!=2&&(H=A.T);O=H;if(!O)return A.return(Promise.reject("cannot load module asmjs"));X=new O(E.U);E.zN.set("asmjs",X);X.create();return A.return(X)})}; twy=function(E){RAl(E)&&E.C8();ssZ(E)&&(vG(E,"captions",!0),vG(E,"endscreen"),E.SQ(),vG(E,"creatorendscreen",!0))}; ssZ=function(E){var e=E.U.getVideoData(),l=E.J&&!e.isInlinePlaybackNoAd;E.U.L("html5_defer_modules_on_ads_only")&&!e.isAd()&&(l=!1);return l}; RAl=function(E){E=E.U.getVideoData();var e;if(e=E.L("web_player_defer_ad")){if(g.i_(E.V,"ad")||PTX(E)||E.enableServerStitchedDai)E=!1;else{e=E.playerResponse;E=E.startSeconds;var l=e==null?void 0:e.adPlacements;if(e=l){e=Number.MAX_VALUE;l=g.T(l);for(var k=l.next();!k.done;k=l.next())if(k=k.value.adPlacementRenderer){var H=void 0,O=(H=k.config)==null?void 0:H.adPlacementConfig;H=void 0;if(((H=O)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var X=H=void 0;O=Number((H=O)==null?void 0:(X= H.adTimeOffset)==null?void 0:X.offsetStartMilliseconds)||0;X=H=void 0;k=Number(((H=k.renderer)==null?void 0:(X=H.adBreakServiceRenderer)==null?void 0:X.prefetchMilliseconds)||0);k=O-k;k=11;E=E.api.Y().j&&YL;return!(!e&&!E)}; OI=function(E,e){return!E.api.isInline()&&!GkW(E,zC(e))&&g.wH(e)}; dj8=function(E){E.Th.Wd();if(E.j4&&E.yv)E.yv=!1;else if(!E.api.Y().J0&&!E.mL()){var e=E.api.getPlayerStateObject();g.m(e,2)&&g.Zt(E.api)||E.IZ(e);!E.api.Y().rH||e.isCued()||g.m(e,1024)?E.u6():E.Jm.isActive()?(E.Bc(),E.Jm.stop()):E.Jm.start()}}; iMX=function(E,e){var l;if((l=E.api.getVideoData())==null?0:l.mutedAutoplay){var k,H;if((k=e.target)==null?0:(H=k.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.wH(e)&&E.api.isMutedByMutedAutoplay()?(E.api.unMute(),E.api.getPresentingPlayerType()===2&&E.api.playVideo(),e=E.api.getPlayerStateObject(),!g.m(e,4)||g.m(e,8)||g.m(e,2)||E.u6(),!0):!1}; $je=function(E,e,l){E.api.isFullscreen()?l<1-e&&E.api.toggleFullscreen():l>1+e&&E.api.toggleFullscreen()}; zH7=function(E){var e=bM()&&SQ()>=67&&!E.api.Y().j;E=E.api.Y().disableOrganicUi;return!g.DD("tizen")&&!nJ&&!e&&!E}; g.X$=function(E){g.Z.call(this,{X:"div",K:[{X:"div",B:"ytp-bezel-text-wrapper",K:[{X:"div",B:"ytp-bezel-text",Tz:"{{title}}"}]},{X:"div",B:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},K:[{X:"div",B:"ytp-bezel-icon",Tz:"{{icon}}"}]}]});this.U=E;this.G=new g.Nx(this.show,10,this);E=this.U.L("delhi_modern_web_player")?1E3:500;this.T=new g.Nx(this.hide,E,this);g.L(this,this.G);g.L(this,this.T);this.hide()}; AH=function(E,e,l){if(e<=0){l=iU();e="som desativado";var k=0}else l=l?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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"}}]},k=Math.floor(e),e=k+"volume";us(E,l,e,k+"%")}; Uj9=function(E,e){e=e?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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"}}]}:iZX();var l=E.U.getPlaybackRate(),k=g.eE("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(l)});us(E,e,k,l+"x")}; JNX=function(E,e){e=e?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";us(E,n29(E.U),e)}; us=function(E,e,l,k){k=k===void 0?"":k;E.updateValue("label",l===void 0?"":l);E.updateValue("icon",e);g.mr(E.T);E.G.start();E.updateValue("title",k);g.k_(E.element,"ytp-bezel-text-hide",!k)}; cN7=function(E,e){g.Z.call(this,{X:"button",s7:["ytp-button","ytp-cards-button"],D:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"span",B:"ytp-cards-button-icon-default",K:[{X:"div",B:"ytp-cards-button-icon",K:[E.Y().L("player_new_info_card_format")?JwW():{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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"}}]}]}, {X:"div",B:"ytp-cards-button-title",Tz:"Informa\u00e7\u00f5es"}]},{X:"span",B:"ytp-cards-button-icon-shopping",K:[{X:"div",B:"ytp-cards-button-icon",K:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",B:"ytp-svg-shadow",D:{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"}},{X:"path",B:"ytp-svg-fill",D:{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"}},{X:"path",B:"ytp-svg-shadow-fill",D:{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"}}]}]},{X:"div", B:"ytp-cards-button-title",Tz:"Compras"}]}]});this.U=E;this.G=e;this.T=null;this.fade=new g.mO(this,250,!0,100);g.L(this,this.fade);g.k_(this.G,"ytp-show-cards-title",g.qA(E.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.KW(!0)}; yNp=function(E,e){g.Z.call(this,{X:"div",B:"ytp-cards-teaser",K:[{X:"div",B:"ytp-cards-teaser-box"},{X:"div",B:"ytp-cards-teaser-text",K:E.Y().L("player_new_info_card_format")?[{X:"button",B:"ytp-cards-teaser-info-icon",D:{"aria-label":"Exibir cards","aria-haspopup":"true"},K:[JwW()]},{X:"img",B:"ytp-cards-teaser-channel-avatar",D:{alt:"","aria-hidden":"true"}},{X:"span",B:"ytp-cards-teaser-label",Tz:"{{text}}"},{X:"button",B:"ytp-cards-teaser-close-button",D:{"aria-label":"Fechar"},K:[g.pN()]}]: [{X:"span",B:"ytp-cards-teaser-label",Tz:"{{text}}"}]}]});var l=this;this.U=E;this.gG=e;this.fade=new g.mO(this,250,!1,250);this.T=null;this.j=new g.Nx(this.fb7,300,this);this.J=new g.Nx(this.lbn,2E3,this);this.S=[];this.G=null;this.N=new g.Nx(function(){l.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.L(this,this.fade);g.L(this,this.j);g.L(this,this.J);g.L(this,this.N);E.Y().L("player_new_info_card_format")?(g.qx(E.getRootNode(),"ytp-cards-teaser-dismissible"),this.C(this.X6("ytp-cards-teaser-close-button"),"click",this.W$),this.C(this.X6("ytp-cards-teaser-info-icon"),"click",this.QI),this.C(this.X6("ytp-cards-teaser-label"),"click",this.QI)):this.listen("click",this.QI);this.C(e.element,"mouseover",this.RP);this.C(e.element,"mouseout",this.Cb);this.C(E,"cardsteasershow", this.kNd);this.C(E,"cardsteaserhide",this.uY);this.C(E,"cardstatechange",this.zm);this.C(E,"presentingplayerstatechange",this.zm);this.C(E,"appresize",this.Jk);this.C(E,"onShowControls",this.Jk);this.C(E,"onHideControls",this.sb);this.listen("mouseenter",this.Lo)}; j80=function(E){g.Z.call(this,{X:"button",s7:[CQ.BUTTON,CQ.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{X:"div",B:CQ.TITLE_NOTIFICATIONS_ON,D:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},K:[g.BT()]},{X:"div",B:CQ.TITLE_NOTIFICATIONS_OFF,D:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, K:[{X:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{X:"path",D:{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=E;this.T=!1;E.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; Ie9=function(E,e){E.T=e;E.element.classList.toggle(CQ.NOTIFICATIONS_ENABLED,E.T);var l=E.api.getVideoData();l?(e=e?l.sN:l.u9)?(E=E.api.LI())?fd(E,e):g.$F(Error("No innertube service available when updating notification preferences.")):g.$F(Error("No update preferences command available.")):g.$F(Error("No video data when updating notification preferences."))}; fe7=function(E,e,l){var k=k===void 0?800:k;var H=H===void 0?600:H;var O=document.location.protocol;E=mVl(O+"//"+E+"/signin?context=popup","feature",e,"next",O+"//"+location.hostname+"/post_login");Fc7(E,l,k,H)}; Fc7=function(E,e,l,k){l=l===void 0?800:l;k=k===void 0?600:k;if(E=g.Ba(window,E,"loginPopup","width="+l+",height="+k+",resizable=yes,scrollbars=yes"))Gn9(function(){e()}),E.moveTo((screen.width-l)/2,(screen.height-k)/2)}; g.pQ=function(E,e,l,k,H,O,X,A,C,p,x,Q){E=E.charAt(0)+E.substring(1).toLowerCase();l=l.charAt(0)+l.substring(1).toLowerCase();if(e==="0"||e==="-1")e=null;if(k==="0"||k==="-1")k=null;var W=x.Y(),B=W.userDisplayName&&g.OV(W);g.Z.call(this,{X:"div",s7:["ytp-button","ytp-sb"],K:[{X:"div",B:"ytp-sb-subscribe",D:B?{title:x.Y().L("player_tooltip_data_title_killswitch")?g.eE("Inscrever-se como $USER_NAME",{USER_NAME:W.userDisplayName}):"","data-tooltip-title":g.eE("Inscrever-se como $USER_NAME",{USER_NAME:W.userDisplayName}), "aria-label":"Inscrever-se no canal","data-tooltip-image":jC(W),"data-tooltip-opaque":String(g.qA(W)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},K:[{X:"div",B:"ytp-sb-text",K:[{X:"div",B:"ytp-sb-icon"},E]},e?{X:"div",B:"ytp-sb-count",Tz:e}:""]},{X:"div",B:"ytp-sb-unsubscribe",D:B?{title:x.L("player_tooltip_data_title_killswitch")?g.eE("Inscrito como $USER_NAME",{USER_NAME:W.userDisplayName}):"","data-tooltip-title":g.eE("Inscrito como $USER_NAME",{USER_NAME:W.userDisplayName}), "aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":jC(W),"data-tooltip-opaque":String(g.qA(W)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},K:[{X:"div",B:"ytp-sb-text",K:[{X:"div",B:"ytp-sb-icon"},l]},k?{X:"div",B:"ytp-sb-count",Tz:k}:""]}],D:{"aria-live":"polite"}});var w=this;this.channelId=X;this.U=x;this.Z=Q;var U=this.X6("ytp-sb-subscribe"),c=this.X6("ytp-sb-unsubscribe");O&&g.qx(this.element,"ytp-sb-classic");if(H){A?this.T():this.G(); var V=function(){if(W.SR){var r=w.channelId;if(C||p){var P={c:r};var N;g.tR.isInitialized()&&(N=ZjW(P));P=N||"";if(N=x.getVideoData())if(N=N.subscribeCommand){var R=x.LI();R?(fd(R,N,{botguardResponse:P,feature:C}),x.MD("SUBSCRIBE",r)):g.$F(Error("No innertube service available when updating subscriptions."))}else g.$F(Error("No subscribe command in videoData."));else g.$F(Error("No video data available when updating subscription."))}c.focus();c.removeAttribute("aria-hidden");U.setAttribute("aria-hidden", "true")}else fe7(g.oQ(w.U.Y()),"sb_button",w.S)},F=function(){var r=w.channelId; if(C||p){var P=x.getVideoData();fd(x.LI(),P.unsubscribeCommand,{feature:C});x.MD("UNSUBSCRIBE",r)}U.focus();U.removeAttribute("aria-hidden");c.setAttribute("aria-hidden","true")}; this.C(U,"click",V);this.C(c,"click",F);this.C(U,"keypress",function(r){r.keyCode===13&&V(r)}); this.C(c,"keypress",function(r){r.keyCode===13&&F(r)}); this.C(x,"SUBSCRIBE",this.T);this.C(x,"UNSUBSCRIBE",this.G);this.Z&&B&&(VbW(x),ht(x,U,this),ht(x,c,this))}else g.qx(U,"ytp-sb-disabled"),g.qx(c,"ytp-sb-disabled")}; rNX=function(E){g.Z.call(this,{X:"div",B:"ytp-title-channel",K:[{X:"div",B:"ytp-title-beacon"},{X:"a",B:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:E.Y().V,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",B:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{X:"div",B:"ytp-title-expanded-heading",K:[{X:"div",B:"ytp-title-expanded-title",K:[{X:"a",Tz:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:E.Y().V,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",B:"ytp-title-expanded-subtitle",Tz:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var e=this;this.api=E;this.channel=this.X6("ytp-title-channel");this.G=this.X6("ytp-title-channel-logo");this.channelName=this.X6("ytp-title-expanded-title");this.J=this.X6("ytp-title-expanded-overlay");this.Z=this.T=this.subscribeButton=null;this.S=!1;E.createClientVe(this.G,this,36925);E.createClientVe(this.channelName,this, 37220);g.qA(this.api.Y())&&VsZ(this);this.C(E,"videodatachange",this.qD);this.C(E,"videoplayerreset",this.qD);this.C(this.channelName,"click",function(l){e.api.logClick(e.channelName);g.Ba(window,SnX(e));l.preventDefault()}); this.C(this.G,"click",this.gtd);this.qD()}; Dj0=function(E){if(!E.api.Y().jE){var e=E.api.getVideoData(),l=new g.pQ("Inscreva-se",null,"Inscrito",null,!0,!1,e.Mb,e.subscribed,"channel_avatar",null,E.api,!0);E.api.createServerVe(l.element,E);var k;E.api.setTrackingParams(l.element,((k=e.subscribeButtonRenderer)==null?void 0:k.trackingParams)||null);E.C(l.element,"click",function(){E.api.logClick(l.element)}); E.subscribeButton=l;g.L(E,E.subscribeButton);E.subscribeButton.u3(E.J);E.subscribeButton.hide();var H=new j80(E.api);E.T=H;g.L(E,H);H.u3(E.J);H.hide();E.C(E.api,"SUBSCRIBE",function(){e.vy&&(H.show(),E.api.logVisibility(H.element,!0))}); E.C(E.api,"UNSUBSCRIBE",function(){e.vy&&(H.hide(),E.api.logVisibility(H.element,!1),Ie9(H,!1))})}}; VsZ=function(E){var e=E.api.Y();Dj0(E);E.updateValue("flyoutUnfocusable","true");E.updateValue("channelTitleFocusable","-1");E.updateValue("shouldHideExpandedTitleForA11y","true");E.updateValue("shouldHideExpandedSubtitleForA11y","true");e.G||e.jR||(E.C(E.channel,"mouseenter",E.iA),E.C(E.channel,"mouseleave",E.L8),E.C(E.channel,"focusin",E.iA),E.C(E.channel,"focusout",function(l){E.channel.contains(l.relatedTarget)||E.L8()})); E.Z=new g.Nx(function(){E.isExpanded()&&(E.api.logVisibility(E.channelName,!1),E.subscribeButton&&(E.subscribeButton.hide(),E.api.logVisibility(E.subscribeButton.element,!1)),E.T&&(E.T.hide(),E.api.logVisibility(E.T.element,!1)),E.channel.classList.remove("ytp-title-expanded"),E.channel.classList.add("ytp-title-show-collapsed"))},500); g.L(E,E.Z);E.C(E.channel,bM8,function(){vm7(E)}); E.C(E.api,"onHideControls",E.uU);E.C(E.api,"appresize",E.uU);E.C(E.api,"fullscreentoggled",E.uU)}; vm7=function(E){E.channel.classList.remove("ytp-title-show-collapsed");E.channel.classList.remove("ytp-title-show-expanded")}; PR7=function(E){var e=E.api.getPlayerSize();return g.qA(E.api.Y())&&e.width>=524}; SnX=function(E){var e=E.api.Y(),l=E.api.getVideoData(),k=g.IQ(e)+l.rH;g.Gz(l)&&(k="https://music.youtube.com"+l.rH);if(!g.qA(e))return k;e={};g.ju(E.api,"addEmbedsConversionTrackingParams",[e]);return g.BJ(k,e)}; x1=function(E){var e=g.pV({"aria-haspopup":"true"});g.CV.call(this,e,E);this.listen("keydown",this.T)}; Qi=function(E,e){E.element.setAttribute("aria-haspopup",String(e))}; aeW=function(E,e){g.Z.call(this,{X:"div",B:"ytp-user-info-panel",D:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},K:E.Y().SR&&!E.L("embeds_web_always_enable_signed_out_state")?[{X:"div",B:"ytp-user-info-panel-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-user-info-panel-content",K:[{X:"div",B:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},Tz:"{{watchingAsUsername}}"},{X:"div",B:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Tz:"{{watchingAsEmail}}"}]}]: [{X:"div",B:"ytp-user-info-panel-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-user-info-panel-content",K:[{X:"div",K:[{X:"text",D:{tabIndex:"{{userInfoFocusable}}"},Tz:"Conta desconectada"}]},{X:"div",B:"ytp-user-info-panel-login",K:[{X:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Tz:E.Y().jE?"":"Fazer login no YouTube"}]}]}]});this.eR=E;this.T=e;E.Y().SR||E.Y().jE||this.C(this.X6("ytp-user-info-panel-login"),"click",this.e$);this.closeButton=new g.Z({X:"button",s7:["ytp-collapse","ytp-button"], D:{title:"Fechar"},K:[g.Tt()]});this.closeButton.u3(this.element);g.L(this,this.closeButton);this.C(window,"blur",this.hide);this.C(document,"click",this.j$);this.qD()}; MsZ=function(E,e,l){g.Vx.call(this,E);this.wC=e;this.lq=l;this.getVideoUrl=new x1(6);this.lr=new x1(5);this.hQ=new x1(4);this.zX=new x1(3);this.W8=new g.CV(g.pV({href:"{{href}}",target:this.U.Y().V},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.CV(g.pV(),1,"Estat\u00edsticas para nerds");this.EW=new g.lU({X:"div",s7:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},Tz:"{{text}}"});this.Ls=new f6(this.U,this.EW);this.O$=this.W3=null;g.qA(this.U.Y())&& (this.closeButton=new g.Z({X:"button",s7:["ytp-collapse","ytp-button"],D:{title:"Fechar"},K:[g.Tt()]}),g.L(this,this.closeButton),this.closeButton.u3(this.element),this.closeButton.listen("click",this.cA,this));g.qA(this.U.Y())&&(this.yx=new g.CV(g.pV(),8,"Conta"),g.L(this,this.yx),this.Qf(this.yx,!0),this.yx.listen("click",this.rN3,this),E.createClientVe(this.yx.element,this.yx,137682));this.U.Y().zx&&(this.JO=new i4("Loop",7),g.L(this,this.JO),this.Qf(this.JO,!0),this.JO.listen("click",this.Qn6, this),E.createClientVe(this.JO.element,this.JO,28661));g.L(this,this.getVideoUrl);this.Qf(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Z7R,this);E.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.L(this,this.lr);this.Qf(this.lr,!0);this.lr.listen("click",this.SK4,this);E.createClientVe(this.lr.element,this.lr,28660);g.L(this,this.hQ);this.Qf(this.hQ,!0);this.hQ.listen("click",this.GXR,this);E.createClientVe(this.hQ.element,this.hQ,28658);g.L(this,this.zX);this.Qf(this.zX, !0);this.zX.listen("click",this.TCH,this);g.L(this,this.W8);this.Qf(this.W8,!0);this.W8.listen("click",this.ep5,this);g.L(this,this.showVideoInfo);this.Qf(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.VJD,this);g.L(this,this.EW);this.EW.listen("click",this.zMt,this);g.L(this,this.Ls);e=document.queryCommandSupported&&document.queryCommandSupported("copy");Kl7("Chromium")>=43&&(e=!0);Kl7("Firefox")<=40&&(e=!1);e&&(this.W3=new g.Z({X:"textarea",B:"ytp-html5-clipboard",D:{readonly:"", tabindex:"-1"}}),g.L(this,this.W3),this.W3.u3(this.element));var k;(k=this.yx)==null||k.setIcon(FWe());var H;(H=this.JO)==null||H.setIcon(bZ9());this.zX.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{"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.W8.setIcon($z0());this.showVideoInfo.setIcon(UzX());this.C(E,"onLoopChange",this.onLoopChange);this.C(E,"videodatachange",this.onVideoDataChange);LcS(this);hHl(this,this.U.getVideoData())}; Wv=function(E,e){var l=!1;if(E.W3){var k=E.W3.element;k.value=e;k.select();try{l=document.execCommand("copy")}catch(H){}}l?E.wC.uY():(E.EW.g$(e,"text"),g.DO(E.wC,E.Ls),jy(E.EW.element),E.W3&&(E.W3=null,LcS(E)));return l}; hHl=function(E,e){var l=E.U.Y(),k=E.U.getPresentingPlayerType()===2,H=!k||e.isListed;H=!l.kt&&!!e.videoId&&H;l.playerStyle!=="play"?l="https://support.google.com/youtube/?p=report_playback":(l={contact_type:"playbackissue",html5:1,ei:e.eventId,v:e.videoId,p:"movies_playback"},e.G&&(l.fmt=e.G.itag),e.clientPlaybackNonce&&(l.cpn=e.clientPlaybackNonce),e.partnerId&&(l.partnerid=e.partnerId),l=g.BJ("//support.google.com/googleplay/",l));E.hQ.Yw(H&&e.allowEmbed);E.getVideoUrl.Yw(H);E.lr.Yw(H&&!e.isLivePlayback); E.W8.g$(l,"href");var O;(O=E.JO)==null||O.Yw(!e.isLivePlayback&&!k);var X;(X=E.yx)==null||X.Yw(!k)}; LcS=function(E){var e=!!E.W3;g.AL(E.zX,e?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");Qi(E.zX,!e);g.AL(E.hQ,e?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");Qi(E.hQ,!e);g.AL(E.getVideoUrl,e?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");Qi(E.getVideoUrl,!e);g.AL(E.lr,e?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");Qi(E.lr,!e);E.hQ.setIcon(e?GC0(): null);E.getVideoUrl.setIcon(e?Q8():null);E.lr.setIcon(e?Q8():null)}; Ne0=function(E){return g.qA(E.U.Y())?E.yx:E.JO}; Yny=function(E,e){g.rp.call(this,E);this.lq=e;this.S=new g.G_(this);this.pg=new g.Nx(this.XN0,1E3,this);this.kt=this.Z=null;g.L(this,this.S);g.L(this,this.pg);e=this.U.Y();E.createClientVe(this.element,this,28656);g.qx(this.element,"ytp-contextmenu");this.U.Y().experiments.P5("delhi_modern_web_player")&&g.TH(e)&&g.qx(this.element,"ytp-delhi-modern-contextmenu");ZMX(this);this.hide()}; ZMX=function(E){g.iG(E.S);var e=E.U.Y();e.playerStyle==="gvn"||e.G||e.jR||(e=E.U.zz(),E.S.C(e,"contextmenu",E.NH4),E.S.C(e,"touchstart",E.onTouchStart,null,!0),E.S.C(e,"touchmove",E.A6,null,!0),E.S.C(e,"touchend",E.A6,null,!0))}; mjS=function(E){E.U.isFullscreen()?g.sT(E.U,E.element,10):E.u3(Ob(E).body)}; Bv=function(E,e,l){l=l===void 0?240:l;g.Z.call(this,{X:"button",s7:["ytp-button","ytp-copylink-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"div",B:"ytp-copylink-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-copylink-title",Tz:"Copiar link",D:{"aria-hidden":"true"}}]});this.api=E;this.T=e;this.G=l;this.visible=!1;this.tooltip=this.T.tf();e=E.Y();this.tooltip.element.setAttribute("aria-live", "polite");g.k_(this.element,"ytp-show-copylink-title",g.qA(e));E.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.C(E,"videodatachange",this.qD);this.C(E,"videoplayerreset",this.qD);this.C(E,"appresize",this.qD);this.qD();this.addOnDisposeCallback(g.Lb(this.tooltip,this.element))}; gm0=function(E){var e=E.api.Y(),l=E.api.getVideoData(),k=E.api.zz().getPlayerSize().width;e=e.Z;return!!l.videoId&&k>=E.G&&l.sM&&!l.r$&&!E.api.isEmbedsShortsMode()&&!e}; KcW=function(E){E.updateValue("icon",uU());if(E.api.Y().G)E.tooltip.m7(E.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{E.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");E.updateValue("tooltip-title","Link copiado para a \u00e1rea de transfer\u00eancia");E.tooltip.nw();E.tooltip.m7(E.element);var e=E.listen("mouseleave",function(){E.xN(e);E.qD();E.tooltip.I$()})}}; nmW=function(E,e){return g.D(function(l){if(l.G==1)return g.U9(l,2),g.S(l,navigator.clipboard.writeText(e),4);if(l.G!=2)return l.return(!0);g.FW(l);var k=l.return,H=!1,O=g.Qz("TEXTAREA");O.value=e;O.setAttribute("readonly","");var X=E.api.getRootNode();X.appendChild(O);if(PZ){var A=window.getSelection();A.removeAllRanges();var C=document.createRange();C.selectNodeContents(O);A.addRange(C);O.setSelectionRange(0,e.length)}else O.select();try{H=document.execCommand("copy")}catch(p){}X.removeChild(O); return k.call(l,H)})}; RH7=function(E){g.Z.call(this,{X:"div",B:"ytp-doubletap-ui-legacy",K:[{X:"div",B:"ytp-doubletap-fast-forward-ve"},{X:"div",B:"ytp-doubletap-rewind-ve"},{X:"div",B:"ytp-doubletap-static-circle",K:[{X:"div",B:"ytp-doubletap-ripple"}]},{X:"div",B:"ytp-doubletap-overlay-a11y"},{X:"div",B:"ytp-doubletap-seek-info-container",K:[{X:"div",B:"ytp-doubletap-arrows-container",K:[{X:"span",B:"ytp-doubletap-base-arrow"},{X:"span",B:"ytp-doubletap-base-arrow"},{X:"span",B:"ytp-doubletap-base-arrow"}]},{X:"div", B:"ytp-doubletap-tooltip",K:[{X:"div",B:"ytp-seek-icon-text-container",K:[{X:"div",B:"ytp-seek-icon",Tz:"{{seekIcon}}"},{X:"div",B:"ytp-chapter-seek-text-legacy",Tz:"{{seekText}}"}]},{X:"div",B:"ytp-doubletap-tooltip-label",Tz:"{{seekTime}}"}]}]}]});this.U=E;this.S=new g.Nx(this.show,10,this);this.G=new g.Nx(this.hide,700,this);this.j=this.Z=0;this.pg=this.J=!1;this.T=this.X6("ytp-doubletap-static-circle");g.L(this,this.S);g.L(this,this.G);this.hide();this.N=this.X6("ytp-doubletap-fast-forward-ve"); this.V=this.X6("ytp-doubletap-rewind-ve");this.U.createClientVe(this.N,this,28240);this.U.createClientVe(this.V,this,28239);this.U.logVisibility(this.N,!0);this.U.logVisibility(this.V,!0);this.J=E.L("web_show_cumulative_seek_time");this.pg=E.L("web_center_static_circles")}; s88=function(E,e){e=g.eE("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:e.toString()});E.updateValue("seekTime",e)}; tsy=function(E){FV.call(this,E,!1,!0);this.Qd=[];this.Wh=[];this.element.setAttribute("data-overlay-order","9");this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.h0=new g.Z({X:"div",B:"ytp-featured-product-open-in-new"});g.L(this,this.h0);this.countdownTimer=new g.Z({X:"text",B:"ytp-featured-product-countdown",Tz:"{{content}}"});this.countdownTimer.hide();g.L(this,this.countdownTimer);this.G=new g.Z({X:"div",B:"ytp-featured-product-trending",K:[{X:"div",B:"ytp-featured-product-trending-icon"}, {X:"text",B:"ytp-featured-product-trending-text",Tz:"{{trendingOffer}}"}]});this.G.hide();g.L(this,this.G);this.overflowButton=new g.Z({X:"button",s7:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.L(this,this.overflowButton);this.j=new g.Z({X:"text",B:"ytp-featured-product-exclusive-countdown",Tz:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.j.hide();g.L(this,this.j);this.J=new g.Z({X:"div",B:"ytp-featured-product-exclusive-container", D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},K:[{X:"div",B:"ytp-featured-product-exclusive-badge-container",K:[{X:"div",B:"ytp-featured-product-exclusive-badge",K:[{X:"text",B:"ytp-featured-product-exclusive-badge-text",Tz:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.j]});this.J.hide();g.L(this,this.J);this.banner=new g.Z({X:"a",B:"ytp-featured-product-container",K:[{X:"div",B:"ytp-featured-product-thumbnail",K:[{X:"img",D:{src:"{{thumbnail}}"}},this.h0]},{X:"div", B:"ytp-featured-product-details",K:[{X:"text",B:"ytp-featured-product-title",Tz:"{{title}}"},this.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",B:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},K:[{X:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Tz:"{{price}}",D:{"aria-hidden":"true"}},{X:"text",B:"ytp-featured-product-promotion-text",Tz:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{X:"div",D:{"aria-label":"{{priceA11yText}}"}, K:[{X:"text",B:"ytp-featured-product-price",Tz:"{{price}}",D:{"aria-hidden":"true"}},{X:"text",B:"ytp-featured-product-sales-original-price",Tz:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{X:"text",B:"ytp-featured-product-price-drop-reference-price",Tz:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",B:"ytp-featured-product-when-promotion-text-enabled",K:[{X:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Tz:"{{affiliateDisclaimer}}"},this.G,{X:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Tz:"{{vendor}}"}]}:{X:"div",K:[{X:"text",B:"ytp-featured-product-affiliate-disclaimer",Tz:"{{affiliateDisclaimer}}"},this.U.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.J:null,this.G,{X:"text",B:"ytp-featured-product-vendor",Tz:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.L(this,this.banner);this.banner.u3(this.Z.element);this.C(this.U,g.Zj("featured_product"), this.gv7);this.C(this.U,g.Yk("featured_product"),this.fW);this.C(this.U,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.B$);this.C(E,"featuredproductdismissed",this.dn)}; qn7=function(E){var e,l;E=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:l.itemData;var k,H,O;return(E==null||!E.affiliateDisclaimer)&&(E==null?0:(k=E.exclusivesData)==null?0:k.exclusiveOfferLabelText)&&(E==null?0:(H=E.exclusivesData)==null?0:H.expirationTimestampMs)&&(E==null?0:(O=E.exclusivesData)==null?0:O.exclusiveOfferCountdownText)?!0:!1}; e89=function(E){var e,l,k,H,O=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:(k=l.itemData)==null?void 0:(H=k.exclusivesData)==null?void 0:H.expirationTimestampMs;e=(Number(O)-Date.now())/1E3;if(e>0){if(e<604800){var X,A,C,p;l=(X=E.T)==null?void 0:(A=X.bannerData)==null?void 0:(C=A.itemData)==null?void 0:(p=C.exclusivesData)==null?void 0:p.exclusiveOfferCountdownText;if(l!==void 0)for(X=Date.now(),A=g.T(l),C=A.next();!C.done;C=A.next())if(C=C.value,C!==void 0&&C.text!==void 0&&(p=Number(C.textDisplayStartTimestampMs), !isNaN(p)&&X>=p)){C.insertCountdown?(e=C.text.replace(/\$0/,String(PS({seconds:e}))),E.j.g$(e)):E.j.g$(C.text);E.j.show();break}}var x,Q,W,B;E.J.update({exclusive:(x=E.T)==null?void 0:(Q=x.bannerData)==null?void 0:(W=Q.itemData)==null?void 0:(B=W.exclusivesData)==null?void 0:B.exclusiveOfferLabelText});E.J.show();ol(E);var w;(w=E.bY)==null||w.start()}else ESX(E)}; ESX=function(E){var e;(e=E.bY)==null||e.stop();E.j.hide();E.J.hide();w1(E)}; lg7=function(E){var e,l,k=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:l.itemData;return E.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(k==null||!k.priceReplacementText)&&(k==null?0:k.promotionText)?k==null?void 0:k.promotionText.content:null}; ko8=function(E){var e,l,k=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:l.itemData,H,O;if(!(k!=null&&k.priceReplacementText||E.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(k==null?0:(H=k.dealsData)==null?0:(O=H.sales)==null?0:O.originalPrice)){var X,A;return k==null?void 0:(X=k.dealsData)==null?void 0:(A=X.sales)==null?void 0:A.originalPrice}return null}; H7X=function(E){var e,l,k=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:l.itemData,H,O,X,A;if(!((k==null?0:k.priceReplacementText)||E.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(k==null?0:(H=k.dealsData)==null?0:(O=H.sales)==null?0:O.originalPrice))&&(k==null?0:(X=k.dealsData)==null?0:(A=X.priceDrop)==null?0:A.referencePrice)){var C,p;return k==null?void 0:(C=k.dealsData)==null?void 0:(p=C.priceDrop)==null?void 0:p.referencePrice}return null}; O7v=function(E){var e,l,k=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:l.itemData;if(k==null?0:k.priceReplacementText)return k==null?void 0:k.priceReplacementText;if((k==null?0:k.promotionText)&&E.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(k==null?void 0:k.price)+" "+(k==null?void 0:(H=k.promotionText)==null?void 0:H.content)}var O,X;if(k==null?0:(O=k.dealsData)==null?0:(X=O.sales)==null?0:X.originalPrice){var A,C;return k==null?void 0:(A=k.dealsData)== null?void 0:(C=A.sales)==null?void 0:C.salesPriceAccessibilityLabel}var p,x;if(k==null?0:(p=k.dealsData)==null?0:(x=p.priceDrop)==null?0:x.referencePrice){var Q,W;return(k==null?void 0:k.price)+" "+(k==null?void 0:(Q=k.dealsData)==null?void 0:(W=Q.priceDrop)==null?void 0:W.referencePrice)}return k==null?void 0:k.price}; X5W=function(E){if(E.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e,l,k;return E.G.Vd?null:(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:(k=l.itemData)==null?void 0:k.vendorName}var H,O,X,A,C,p;return E.G.Vd||E.J.Vd||((H=E.T)==null?0:(O=H.bannerData)==null?0:(X=O.itemData)==null?0:X.affiliateDisclaimer)?null:(A=E.T)==null?void 0:(C=A.bannerData)==null?void 0:(p=C.itemData)==null?void 0:p.vendorName}; AXX=function(E,e){zI(E);if(e){var l=g.JG.getState().entities;l=nv(l,"featuredProductsEntity",e);if(l!=null&&l.productsData){e=[];l=g.T(l.productsData);for(var k=l.next();!k.done;k=l.next()){k=k.value;var H=void 0;if((H=k)!=null&&H.identifier&&k.featuredSegments){E.Qd.push(k);var O=void 0;H=g.T((O=k)==null?void 0:O.featuredSegments);for(O=H.next();!O.done;O=H.next()){var X=O.value;O=ulZ(X.startTimeSec);O!==void 0&&(X=ulZ(X.endTimeSec),e.push(new g.Mr(O*1E3,X===void 0?0x7ffffffffffff:X*1E3,{id:k.identifier, namespace:"featured_product"})))}}}E.U.qQ(e)}}}; w1=function(E){if(E.trendingOfferEntityKey){var e=g.JG.getState().entities;if(e=nv(e,"trendingOfferEntity",E.trendingOfferEntityKey)){var l,k,H;e.encodedSkuId!==((l=E.T)==null?void 0:(k=l.bannerData)==null?void 0:(H=k.itemData)==null?void 0:H.encodedOfferSkuId)?ol(E):(E.G.update({trendingOffer:e.shortLabel+" \u2022 "+e.countLabel}),E.G.show(),E.banner.update({vendor:X5W(E)}))}else ol(E)}else ol(E)}; ol=function(E){E.G.hide();E.banner.update({vendor:X5W(E)})}; zI=function(E){E.Qd=[];E.fW();E.U.Qy("featured_product")}; CmW=function(E){var e,l,k,H,O=(e=E.T)==null?void 0:(l=e.bannerData)==null?void 0:(k=l.itemData)==null?void 0:(H=k.hiddenProductOptions)==null?void 0:H.dropTimestampMs;e=(Number(O)-Date.now())/1E3;E.countdownTimer.g$(PS({seconds:e}));if(e>0){var X;(X=E.GX)==null||X.start()}}; p59=function(E){var e;(e=E.GX)==null||e.stop();E.countdownTimer.hide()}; ulZ=function(E){if(E!==void 0&&E.trim()!==""&&(E=Math.trunc(Number(E.trim())),!(isNaN(E)||E<0)))return E}; oSW=function(E,e,l){g.Z.call(this,{X:"div",s7:["ytp-info-panel-action-item"],K:[{X:"div",B:"ytp-info-panel-action-item-disclaimer",Tz:"{{disclaimer}}"},{X:"a",s7:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{X:"div",B:"ytp-info-panel-action-item-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-info-panel-action-item-label",Tz:"{{label}}"}]}]});this.U=E;this.T=l;this.disclaimer=this.X6("ytp-info-panel-action-item-disclaimer");this.button= this.X6("ytp-info-panel-action-item-button");this.aG=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);E="";l=g.M(e==null?void 0:e.onTap,cQ);var k=g.M(l,g.jP);this.aG=!1;k?(E=k.url||"",E.startsWith("//")&&(E="https:"+E),this.aG=!0,g.Ck(this.button,g.Xj(E))):(k=g.M(l,xly))&&!this.T?((E=k.phoneNumbers)&&E.length>0?(E="sms:"+E[0],k.messageText&&(E+="?&body="+encodeURI(k.messageText))):E="",this.aG=!0,g.Ck(this.button,g.Xj(E,[QAp]))):(l=g.M(l,WYW))&&!this.T&&(E=l.phoneNumber? "tel:"+l.phoneNumber:"",this.aG=!0,g.Ck(this.button,g.Xj(E,[B5l])));var H;if(l=(H=e.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var O;this.update({label:(O=e.bodyText)==null?void 0:O.content,icon:oY(),disclaimer:l})}else{this.disclaimer.style.display="none";var X;this.update({label:(X=e.bodyText)==null?void 0:X.content,icon:oY()})}this.U.setTrackingParams(this.element,e.trackingParams||null);this.aG&&(this.G={externalLinkData:{url:E}})}; w5l=function(E,e){var l=t8();g.HI.call(this,E,{X:"div",B:"ytp-info-panel-detail-skrim",K:[{X:"div",B:"ytp-info-panel-detail",D:{role:"dialog",id:l},K:[{X:"div",B:"ytp-info-panel-detail-header",K:[{X:"div",B:"ytp-info-panel-detail-title",Tz:"{{title}}"},{X:"button",s7:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Fechar"},K:[g.pN()]}]},{X:"div",B:"ytp-info-panel-detail-body",Tz:"{{body}}"},{X:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.T=e;this.items=this.X6("ytp-info-panel-detail-items"); this.Z=new g.G_(this);this.itemData=[];this.S=l;this.C(this.X6("ytp-info-panel-detail-close"),"click",this.uY);this.C(this.X6("ytp-info-panel-detail-skrim"),"click",this.uY);this.C(this.X6("ytp-info-panel-detail"),"click",function(k){k.stopPropagation()}); g.L(this,this.Z);this.U.createServerVe(this.element,this,!0);this.C(E,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",E.getVideoData());this.hide()}; z80=function(E,e){E=g.T(E.itemData);for(var l=E.next();!l.done;l=E.next())l=l.value,l.U.logVisibility(l.element,e)}; T5X=function(E,e){g.Z.call(this,{X:"div",B:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":e.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"div",B:"ytp-info-panel-preview-text",Tz:"{{text}}"},{X:"div",B:"ytp-info-panel-preview-chevron",Tz:"{{chevron}}"}]});var l=this;this.U=E;this.bq=this.T=this.videoId=null;this.Z=this.showControls=this.G=!1;this.C(this.element,"click",function(){E.logClick(l.element);E.mL();X_(e)}); this.fade=new g.mO(this,250,!1,100);g.L(this,this.fade);this.U.createServerVe(this.element,this,!0);this.C(E,"videodatachange",this.onVideoDataChange);this.C(E,"presentingplayerstatechange",this.Co);this.C(this.U,"paidcontentoverlayvisibilitychange",this.D9);this.C(this.U,"infopaneldetailvisibilitychange",this.D9);var k=E.getVideoData()||{};dle(k)&&Goy(this,k);this.C(E,"onShowControls",this.yX);this.C(E,"onHideControls",this.O8)}; Goy=function(E,e){if(!e.Dr||!E.U.AO()){var l=e.pO||1E4,k=dle(e);E.T?e.videoId&&e.videoId!==E.videoId&&(g.mr(E.T),E.videoId=e.videoId,k?(i7Z(E,l,e),E.Bs()):(E.uY(),E.T.dispose(),E.T=null)):k&&(e.videoId&&(E.videoId=e.videoId),i7Z(E,l,e),E.Bs())}}; dle=function(E){var e,l,k,H;return!!((e=E.AS)==null?0:(l=e.title)==null?0:l.content)||!!((k=E.AS)==null?0:(H=k.bodyText)==null?0:H.content)}; i7Z=function(E,e,l){E.T&&E.T.dispose();E.T=new g.Nx(E.DKd,e,E);g.L(E,E.T);var k;e=((k=l.AS)==null?void 0:k.trackingParams)||null;E.U.setTrackingParams(E.element,e);var H;var O,X;if(l==null?0:(O=l.AS)==null?0:(X=O.title)==null?0:X.content){var A;k=(H=l.AS)==null?void 0:(A=H.title)==null?void 0:A.content;var C,p;if((C=l.AS)==null?0:(p=C.bodyText)==null?0:p.content)k+=" \u2022 ";H=k}else H="";var x,Q;l=((x=l.AS)==null?void 0:(Q=x.bodyText)==null?void 0:Q.content)||"";E.update({text:H+l,chevron:g.CN()})}; $lX=function(E,e){E.T&&(g.m(e,8)?(E.G=!0,E.Bs(),E.T.start()):(g.m(e,2)||g.m(e,64))&&E.videoId&&(E.videoId=null))}; d1=function(E){var e=null;try{e=E.toLocaleString("pt-BR",{style:"percent"})}catch(l){e=E.toLocaleString(void 0,{style:"percent"})}return e}; GI=function(E,e){var l=0;E=g.T(E);for(var k=E.next();!(k.done||k.value.startTime>e);k=E.next())l++;return l===0?l:l-1}; UlZ=function(E,e){for(var l=0,k=g.T(E),H=k.next();!H.done;H=k.next()){H=H.value;if(e=H.timeRangeStartMillis&&e2147483647?"0":String(E)}; is=function(E,e,l){var k=E.api.getCurrentTime(),H=FYZ(E,k);E=FYZ(E,k+e);return{startMediaTimeMs:H,endMediaTimeMs:E,seekSource:l}}; fge=function(E){var e,l=(e=E.api.getVideoData())==null?void 0:e.Z0();return E.api.getPresentingPlayerType(l)!==2}; TI=function(E,e){E.Z.RC=e;g.k_(E.api.getRootNode(),"ytp-probably-keyboard-focus",e);g.k_(E.contextMenu.element,"ytp-probably-keyboard-focus",e)}; UI=function(E,e,l,k){var H=g.b6(E.api.SE());if(H&&H.loaded){var O=E.api.getSubtitlesUserSettings();H=void 0;for(var X=0;X0?e[0]:null;var l=g.XZ("ytp-chrome-bottom"),k=g.XZ("ytp-ad-module");E.S=!(l==null||!l.contains(e));E.N=!(k==null||!k.contains(e));E.V=!(e==null||!e.hasAttribute("data-tooltip-target-fixed"));return e}; h8y=function(E,e,l){if(!E.J){if(e){E.tooltipRenderer=e;e=E.tooltipRenderer.text;var k=!1,H;(e==null?0:(H=e.runs)==null?0:H.length)&&e.runs[0].text&&(E.update({title:e.runs[0].text.toString()}),k=!0);g.Ef(E.title,k);e=E.tooltipRenderer.detailsText;H=!1;var O;if((e==null?0:(O=e.runs)==null?0:O.length)&&e.runs[0].text){k=e.runs[0].text.toString();O=k.indexOf("$TARGET_ICON");if(O>-1)if(E.tooltipRenderer.targetId){e=[];k=k.split("$TARGET_ICON");var X=new g.qS({X:"span",B:"ytp-promotooltip-details-icon", K:[ag0[E.tooltipRenderer.targetId]]});g.L(E,X);for(var A=[],C=g.T(k),p=C.next();!p.done;p=C.next())p=new g.qS({X:"span",B:"ytp-promotooltip-details-component",Tz:p.value}),g.L(E,p),A.push(p);k.length===2?(e.push(A[0].element),e.push(X.element),e.push(A[1].element)):k.length===1&&(O===0?(e.push(X.element),e.push(A[0].element)):(e.push(A[0].element),e.push(X.element)));O=e.length?e:null}else O=null;else O=k;if(O){if(typeof O!=="string")for(g.ob(E.details),H=g.T(O),O=H.next();!O.done;O=H.next())E.details.appendChild(O.value); else E.update({details:O});H=!0}}g.Ef(E.details,H);H=E.tooltipRenderer.acceptButton;O=!1;var x,Q,W;((x=g.M(H,g.tS))==null?0:(Q=x.text)==null?0:(W=Q.runs)==null?0:W.length)&&g.M(H,g.tS).text.runs[0].text&&(E.update({acceptButtonText:g.M(H,g.tS).text.runs[0].text.toString()}),O=!0);g.Ef(E.acceptButton,O);x=E.tooltipRenderer.dismissButton;Q=!1;var B,w,U;((B=g.M(x,g.tS))==null?0:(w=B.text)==null?0:(U=w.runs)==null?0:U.length)&&g.M(x,g.tS).text.runs[0].text&&(E.update({dismissButtonText:g.M(x,g.tS).text.runs[0].text.toString()}), Q=!0);g.Ef(E.dismissButton,Q)}l&&(E.Z=l);E.T=Pmp(E);E.j=!1;E.U.Y().L("web_player_hide_nitrate_promo_tooltip")||E.Yw(!0);LY0(E);E.Vd&&!E.pg&&(E.pg=!0,E.p5.H8(0));E.G&&E.U.logVisibility(E.element,E.Vd)}}; yi=function(E){E.Yw(!1);E.G&&E.U.logVisibility(E.element,E.Vd)}; MTX=function(E){var e,l,k,H=((e=g.M(E.acceptButton,g.tS))==null?void 0:(l=e.text)==null?void 0:(k=l.runs)==null?void 0:k.length)&&!!g.M(E.acceptButton,g.tS).text.runs[0].text,O,X,A;e=((O=g.M(E.dismissButton,g.tS))==null?void 0:(X=O.text)==null?void 0:(A=X.runs)==null?void 0:A.length)&&!!g.M(E.dismissButton,g.tS).text.runs[0].text;return H||e}; LY0=function(E){var e;if(!(e=!E.T)){e=E.T;var l=window.getComputedStyle(e);e=l.display==="none"||l.visibility==="hidden"||e.getAttribute("aria-hidden")==="true"}if(e||E.U.isMinimized())E.Yw(!1);else if(e=g.qV(E.T),e.width&&e.height){E.U.jm(E.element,E.T);var k=E.U.zz().getPlayerSize().height;l=g.qV(E.X6("ytp-promotooltip-container")).height;E.S?E.element.style.top=k-l-e.height-12+"px":E.V||(k=E.U.uH().height-l-e.height-12,E.element.style.top=k+"px");k=E.X6("ytp-promotooltip-pointer");var H=g.sd(E.T, E.U.getRootNode()),O=Number(E.element.style.left.replace(/[^\d\.]/g,""));E=E.U.isFullscreen()?18:12;k.style.left=H.x-O+e.width/2-E+"px";k.style.top=l+"px"}else E.Yw(!1)}; jh=function(E){g.Z.call(this,{X:"button",s7:["ytp-replay-button","ytp-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"Reiniciar":"","data-tooltip-title":"Reiniciar"},K:[g.dl()]});this.U=E;this.C(E,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.eJ(E.getPlayerStateObject());ht(this.U,this.element,this)}; Il=function(E,e){e=e===void 0?240:e;g.Z.call(this,{X:"button",s7:["ytp-button","ytp-search-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"Pesquisar":"","data-tooltip-title":"Pesquisar","data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"div",B:"ytp-search-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-search-title",Tz:"Pesquisar"}]});this.api=E;this.G=e;this.visible=!1;this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{X:"path",B:"ytp-svg-fill", D:{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"}}]});E.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.C(E,"appresize",this.T);this.C(E,"videodatachange",this.T);ht(E,this.element,this)}; F$=function(E){g.Z.call(this,{X:"div",B:"ytp-seek-overlay",K:[{X:"div",s7:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],K:[{X:"div",s7:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{X:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{X:"path",D:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{X:"div",B:"ytp-seek-overlay-duration",Tz:"{{durationBack}}"}]},{X:"div",s7:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],K:[{X:"div",B:"ytp-seek-overlay-duration",Tz:"{{durationForward}}"},{X:"div",s7:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{X:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{X:"path",D:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{X:"div",B:"ytp-seek-overlay-message",K:[{X:"div",B:"ytp-seek-overlay-message-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-seek-overlay-message-text", Tz:"{{text}}"}]}]});var e=this;this.U=E;this.j=0;this.T="hidden";this.N=this.X6("ytp-seek-overlay-animation-back");this.V=this.X6("ytp-seek-overlay-animation-forward");this.pg=this.X6("ytp-seek-overlay-message");this.J=new g.Nx(function(){N5Z(e)},g.tJ(this.U.Y().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.L(this,this.J);this.U.createClientVe(this.V,this,28240);this.U.createClientVe(this.N,this,28239);this.U.logVisibility(this.V,!0);this.U.logVisibility(this.N,!0);this.hide()}; Z7p=function(E,e){E.Z=E.S.animate([{offset:0,opacity:e,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});E.Z.addEventListener("finish",function(){E.Z=void 0;E.J.start();E.T="lingering"})}; YyW=function(E,e,l,k){l=l===void 0?!1:l;k=k===void 0?!1:k;var H=[];H.push({offset:0,transform:"translateX("+(E.G===-1?20:-20)+"px)",opacity:l?"0":"1"});l&&H.push({offset:.5,opacity:"1"});H.push({offset:1,transform:"translateX(0)"});l=e.animate(H,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});e=e.querySelector("path");H=[];H.push({offset:0,d:E.G===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});k&&H.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); E={offset:1,d:E.G===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};k&&(E.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");H.push(E);e.animate(H,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return l}; mlW=function(E){var e=E.S.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);e.classList.add("ytp-seek-overlay-arrow-additional");e.classList.remove("ytp-seek-overlay-arrow-persistent");E.S.appendChild(e);YyW(E,e,!0,!0).addEventListener("finish",function(){e.remove()})}; N5Z=function(E,e,l){l=l===void 0?!0:l;E.Z=E.S.animate([{offset:0,opacity:e===void 0?1:e},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});l&&(E.Z.addEventListener("finish",function(){E.Z=void 0;gS9(E);E.hide()}),E.T="fading-out")}; KYX=function(E){var e=Number(getComputedStyle(E.S).opacity),l;(l=E.Z)==null||l.cancel();E.Z=void 0;return e}; gS9=function(E){E.j=0;E.T="hidden";E.G=void 0;E.S=void 0;E.J.stop();E.Z=void 0}; nS8=function(E,e,l){E.updateValue("text",e);if(l){a:{switch(l){case "PREMIUM_STANDALONE":e=S7X();break a;case "PREMIUM_STANDALONE_CAIRO":e=rwZ();break a}e=void 0}E.updateValue("icon",e)}e=g.T(E.pg.getAnimations());for(l=e.next();!l.done;l=e.next())l.value.cancel();E.pg.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){E.updateValue("text","");E.updateValue("icon","")})}; fQ=function(E,e,l,k){k=k===void 0?240:k;g.Z.call(this,{X:"button",s7:["ytp-button","ytp-share-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"Compartilhar":"","data-tooltip-title":"Compartilhar","aria-haspopup":"true","aria-owns":l.element.id,"data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"div",B:"ytp-share-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-share-title",Tz:"Compartilhar"}]});this.api=E;this.T=e;this.G=l;this.Z=k;this.visible=!1;this.tooltip=this.T.tf();E.createClientVe(this.element, this,28664);this.listen("click",this.onClick);this.C(E,"videodatachange",this.qD);this.C(E,"videoplayerreset",this.qD);this.C(E,"appresize",this.qD);this.C(E,"presentingplayerstatechange",this.qD);this.qD();this.addOnDisposeCallback(g.Lb(this.tooltip,this.element))}; R8Z=function(E){var e=E.api.Y(),l=E.api.getVideoData(),k=g.qA(e)&&g.gh(E.api)&&g.m(E.api.getPlayerStateObject(),128);e=e.Z||e.disableSharing&&E.api.getPresentingPlayerType()!==2||!l.showShareButton||l.sM||k||l.r$||!1;k=E.api.zz().getPlayerSize().width;return!!l.videoId&&k>=E.Z&&!e}; sAv=function(E,e){e.name!=="InvalidStateError"&&e.name!=="AbortError"&&(e.name==="NotAllowedError"?(E.T.mL(),X_(E.G,E.element,!1)):g.$F(e))}; qyX=function(E,e){var l=t8(),k=E.Y();l={X:"div",B:"ytp-share-panel",D:{id:t8(),role:"dialog","aria-labelledby":l},K:[{X:"div",B:"ytp-share-panel-inner-content",K:[{X:"div",B:"ytp-share-panel-title",D:{id:l},Tz:"Compartilhar"},{X:"a",s7:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:k.V,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},Tz:"{{linkText}}"},{X:"label",B:"ytp-share-panel-include-playlist",K:[{X:"input",B:"ytp-share-panel-include-playlist-checkbox", D:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{X:"div",B:"ytp-share-panel-loading-spinner",K:[y7()]},{X:"div",B:"ytp-share-panel-service-buttons",Tz:"{{buttons}}"},{X:"div",B:"ytp-share-panel-error",Tz:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{X:"button",s7:["ytp-share-panel-close","ytp-button"],D:{title:"Fechar"},K:[g.pN()]}]};g.HI.call(this,E,l,250);var H=this;this.moreButton=null;this.api=E;this.tooltip= e.tf();this.Z=[];this.J=this.X6("ytp-share-panel-inner-content");this.closeButton=this.X6("ytp-share-panel-close");this.C(this.closeButton,"click",this.uY);this.addOnDisposeCallback(g.Lb(this.tooltip,this.closeButton));this.S=this.X6("ytp-share-panel-include-playlist-checkbox");this.C(this.S,"click",this.qD);this.T=this.X6("ytp-share-panel-link");this.addOnDisposeCallback(g.Lb(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.C(this.T,"click",function(O){O.preventDefault();H.api.logClick(H.T); var X=H.api.getVideoUrl(!0,!0,!1,!1);X=tT9(H,X);g.JL(X,H.api,O)&&H.api.MD("SHARE_CLICKED")}); this.listen("click",this.z7);this.C(E,"videoplayerreset",this.hide);this.C(E,"fullscreentoggled",this.onFullscreenToggled);this.C(E,"onLoopRangeChange",this.Kc);this.hide()}; lRZ=function(E,e){E$y(E);for(var l=e.links||e.shareTargets,k=0,H={},O=0;O0&&!R&&!P?(r.length===2&&(r=["noreferrer"]),g.Ba(B,U,W,r[0]),B=lQW()):(c=F.join(","),b2()&&B.navigator&&B.navigator.standalone&&W&&W!="_self"?(c=g.Qz("A"),g.Ck(c,U),c.target=W,V&&(c.rel="noreferrer"),((w=w.attributionsrc)||w==="")&&c.setAttribute("attributionsrc",w),w=document.createEvent("MouseEvent"), w.initMouseEvent("click",!0,!0,B,1),c.dispatchEvent(w),B=lQW()):V?(B=g.Ba(B,"",W,c),w=g.kX(U),B&&(B.opener=null,w===""&&(w="javascript:''"),w='',w=Qb(w),(U=B.document)&&U.write&&(U.write(Wa(w)),U.close()))):((B=g.Ba(B,U,W,c))&&w.noopener&&(B.opener=null),B&&w.noreferrer&&(B.opener=null)));B&&(B.opener||(B.opener=window),B.focus());Q.preventDefault()}}}(H)); H.eG.addOnDisposeCallback(g.Lb(E.tooltip,H.eG.element));A==="Facebook"?E.api.createClientVe(H.eG.element,H.eG,164504):A==="Twitter"&&E.api.createClientVe(H.eG.element,H.eG,164505);E.C(H.eG.element,"click",function(x){return function(){E.api.logClick(x.eG.element)}}(H)); E.api.logVisibility(H.eG.element,!0);E.Z.push(H.eG);k++}}var C=e.more||e.moreLink,p=new g.Z({X:"a",s7:["ytp-share-panel-service-button","ytp-button"],K:[{X:"span",B:"ytp-share-panel-service-button-more",K:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{X:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",D:{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"}}]}]}],D:{href:C,target:"_blank",title:"Mais"}});p.listen("click",function(x){var Q=C;E.api.logClick(E.moreButton.element);Q=tT9(E,Q);g.JL(Q,E.api,x)&&E.api.MD("SHARE_CLICKED")}); p.addOnDisposeCallback(g.Lb(E.tooltip,p.element));E.api.createClientVe(p.element,p,164506);E.C(p.element,"click",function(){E.api.logClick(p.element)}); E.api.logVisibility(p.element,!0);E.Z.push(p);E.moreButton=p;E.updateValue("buttons",E.Z)}; tT9=function(E,e){var l={};g.qA(E.api.Y())&&(g.ju(E.api,"addEmbedsConversionTrackingParams",[l]),e=g.BJ(e,l));return e}; E$y=function(E){for(var e=g.T(E.Z),l=e.next();!l.done;l=e.next())l=l.value,l.detach(),g.qE(l);E.Z=[]}; Vi=function(E){return E===void 0||E.startSec===void 0||E.endSec===void 0?!1:!0}; kBW=function(E,e){E.startSec+=e;E.endSec+=e}; OoZ=function(E){FV.call(this,E);this.G=this.T=this.isContentForward=this.j=!1;this.element.setAttribute("data-overlay-order","8");Hol(this);this.C(this.U,"changeProductsInVideoVisibility",this.SzM);this.C(this.U,"videodatachange",this.onVideoDataChange)}; XUl=function(E){E.J&&E.fg.element.removeChild(E.J.element);E.J=void 0}; AgZ=function(E,e){return e.map(function(l){var k,H;if((l=(k=g.M(l,uUW))==null?void 0:(H=k.thumbnail)==null?void 0:H.thumbnails)&&l.length!==0)return l[0].url}).filter(function(l){return l!==void 0}).map(function(l){l=new g.Z({X:"img", B:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:l}});g.L(E,l);return l})}; CkX=function(E,e){E.isContentForward=e;g.k_(E.badge.element,"ytp-suggested-action-badge-content-forward",e)}; Sh=function(E){var e=E.isContentForward&&!E.xn();g.k_(E.badge.element,"ytp-suggested-action-badge-preview-collapsed",e&&E.T);g.k_(E.badge.element,"ytp-suggested-action-badge-preview-expanded",e&&E.G)}; r1=function(E,e,l){return new g.Mr(E*1E3,e*1E3,{priority:9,namespace:l})}; pUX=function(E){E.U.Qy("shopping_overlay_visible");E.U.Qy("shopping_overlay_preview_collapsed");E.U.Qy("shopping_overlay_preview_expanded");E.U.Qy("shopping_overlay_expanded")}; Hol=function(E){E.C(E.U,g.Zj("shopping_overlay_visible"),function(){E.B7(!0)}); E.C(E.U,g.Yk("shopping_overlay_visible"),function(){E.B7(!1)}); E.C(E.U,g.Zj("shopping_overlay_expanded"),function(){E.kt=!0;IN(E)}); E.C(E.U,g.Yk("shopping_overlay_expanded"),function(){E.kt=!1;IN(E)}); E.C(E.U,g.Zj("shopping_overlay_preview_collapsed"),function(){E.T=!0;Sh(E)}); E.C(E.U,g.Yk("shopping_overlay_preview_collapsed"),function(){E.T=!1;Sh(E)}); E.C(E.U,g.Zj("shopping_overlay_preview_expanded"),function(){E.G=!0;Sh(E)}); E.C(E.U,g.Yk("shopping_overlay_preview_expanded"),function(){E.G=!1;Sh(E)})}; W7p=function(E){g.Z.call(this,{X:"div",B:"ytp-shorts-title-channel",K:[{X:"a",B:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:E.Y().V,"aria-label":"{{channelLogoLabel}}"}},{X:"div",B:"ytp-shorts-title-expanded-heading",K:[{X:"div",B:"ytp-shorts-title-expanded-title",K:[{X:"a",Tz:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:E.Y().V,tabIndex:"0"}}]}]}]});var e=this;this.api=E;this.T=this.X6("ytp-shorts-title-channel-logo");this.channelName=this.X6("ytp-shorts-title-expanded-title"); this.subscribeButton=null;E.createClientVe(this.T,this,36925);this.C(this.T,"click",function(l){e.api.logClick(e.T);g.Ba(window,xsW(e));l.preventDefault()}); E.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",function(l){e.api.logClick(e.channelName);g.Ba(window,xsW(e));l.preventDefault()}); QHW(this);this.C(E,"videodatachange",this.qD);this.C(E,"videoplayerreset",this.qD);this.qD()}; QHW=function(E){if(!E.api.Y().jE){var e=E.api.getVideoData(),l=new g.pQ("Inscreva-se",null,"Inscrito",null,!0,!1,e.Mb,e.subscribed,"channel_avatar",null,E.api,!0);E.api.createServerVe(l.element,E);var k;E.api.setTrackingParams(l.element,((k=e.subscribeButtonRenderer)==null?void 0:k.trackingParams)||null);E.C(l.element,"click",function(){E.api.logClick(l.element)}); E.subscribeButton=l;g.L(E,E.subscribeButton);E.subscribeButton.u3(E.element)}}; xsW=function(E){var e=E.api.Y(),l=E.api.getVideoData();l=g.IQ(e)+l.rH;if(!g.qA(e))return l;e={};g.ju(E.api,"addEmbedsConversionTrackingParams",[e]);return g.BJ(l,e)}; DF=function(E){g.HI.call(this,E,{X:"button",s7:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{X:"div",B:"ytp-skip-intro-button-text",Tz:"Pular introdu\u00e7\u00e3o"}]},100);var e=this;this.Z=!1;this.T=new g.Nx(function(){e.hide()},5E3); this.lk=this.rB=NaN;g.L(this,this.T);this.j=function(){e.show()}; this.J=function(){e.hide()}; this.S=function(){var l=e.U.getCurrentTime();l>e.rB/1E3&&l0?{X:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{X:"path",s7:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {X:"text",s7:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{X:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{X:"path",s7:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {X:"text",s7:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var l=this;this.U=E;this.T=e;this.G=new g.Nx(function(){l.Z?(l.Z=!1,l.G.start()):l.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(e=e>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var k=g.eE(e?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.U.L("player_tooltip_data_title_killswitch")?this.update({title:k,"data-title-no-tooltip":k,"aria-keyshortcuts":e?"\u2192":"\u2190"}):this.update({"tooltip-title":k,"data-title-no-tooltip":k,"aria-keyshortcuts":e?"\u2192":"\u2190"});this.S=this.element.querySelector(".ytp-jump-button-text"); this.S.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);ht(E,this.element,this)}; ioy=function(E,e){e?E.element.classList.add("ytp-jump-button-enabled"):E.element.classList.remove("ytp-jump-button-enabled");E.U.logVisibility(E.element,e);E.U.nw()}; Mw=function(E,e){vv.call(this,E,e,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.C(E,g.Yk("timedMarkerCueRange"),this.oz);this.C(E,"updatemarkervisibility",this.updateVideoData)}; $sZ=function(E){var e,l=(e=E.U.getVideoData())==null?void 0:e.b3;if(l)for(E=E.S.R4,l=g.T(l),e=l.next();!e.done;e=l.next())if(e=E[e.value]){var k=void 0,H=void 0,O=void 0;if(((k=e.onTap)==null?void 0:(H=k.innertubeCommand)==null?void 0:(O=H.changeEngagementPanelVisibilityAction)==null?void 0:O.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return e}}; Nw=function(E){var e=E.L("web_enable_pip_on_miniplayer");g.Z.call(this,{X:"button",s7:["ytp-miniplayer-button","ytp-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:["{{icon}}"]});this.U=E;this.visible=!1;this.listen("click",this.onClick);this.C(E,"fullscreentoggled",this.qD);this.U.L("player_tooltip_data_title_killswitch")? this.update({title:g.MX(E,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Usl(this,e)}):this.update({"tooltip-title":g.MX(E,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Usl(this,e)});ht(E,this.element,this);E.createClientVe(this.element,this,62946);this.qD()}; Usl=function(E,e){return E.U.L("delhi_modern_web_player_icons")?{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:e?{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{X:"g",D:{transform:"translate(96, -96) scale(0.8)"},K:[{X:"path",d$:!0,D:{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"}}]}]}:VtW()}; ZF=function(E,e,l,k,H,O){O=O===void 0?!1:O;var X={X:"div",s7:["ytp-input-slider-section"],K:[{X:"input",B:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};H&&X.K.unshift(H);O&&X.s7.push("ytp-vertical-slider");g.Z.call(this,X);this.S=E;this.J=e;this.N=l;this.initialValue=k;this.header=H;this.G=this.X6("ytp-input-slider");this.T=k?k:E;this.init();this.C(this.G,"input",this.Z);this.C(this.G,"keydown", this.j)}; Y1=function(E,e){E.T=e;E.updateValue("slidervalue",E.T);E.G.valueAsNumber=E.T;Jg9(E,e)}; Jg9=function(E,e){E.G.style.setProperty("--yt-slider-shape-gradient-percent",(e-E.S)/(E.J-E.S)*100+"%")}; mi=function(E){var e=E.isMuted()?0:E.getVolume();ZF.call(this,0,100,1,e,void 0,!0);this.U=E;this.pg=rT(this.SR,10,this);this.V=!1;this.C(E,"onVolumeChange",this.onVolumeChange);this.C(this.element,"wheel",this.kt)}; cgW=function(E,e){g.Z.call(this,{X:"div",D:{tabindex:"0",title:E.L("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},s7:["ytp-volume-popover"]});var l=this;this.isVisible=!1;this.tooltip=e.tf();this.G=new mi(E);g.L(this,this.G);this.G.u3(this.element);this.T=new g.Nx(function(){g1(l,!1)},300); this.listen("mouseenter",function(){l.T.stop()}); this.listen("mouseleave",function(){l.T.start()}); this.listen("focus",function(){l.T.stop()}); this.C(this.G.G,"focus",function(){l.T.stop()}); this.listen("focusout",function(){l.T.start();l.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.Lb(e.tf(),this.element));g.L(this,this.T)}; g1=function(E,e){E.element.classList.toggle("ytp-volume-popover-hovering",e);E.isVisible=e;(E=E.element.closest(".ytp-chrome-bottom"))&&E.classList.toggle("ytp-volume-popover-showing",e)}; KQ=function(E,e,l){l=l===void 0?!1:l;var k=E.Y().fg?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:E.L("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};k=E.L("delhi_modern_web_player")?{X:"div",B:"ytp-mute-button",K:[{X:"button",D:k,s7:["ytp-volume-icon", "ytp-button"],Tz:"{{icon}}"}]}:{X:"button",s7:["ytp-mute-button","ytp-button"],D:k,K:[{X:"div",B:"ytp-volume-icon",Tz:"{{icon}}"}]};g.Z.call(this,k);this.U=E;this.c5=l;this.G=null;this.j=this.SR=this.V=this.N=NaN;this.h0=this.pg=null;this.J=[];this.S=[];this.visible=!1;this.Z=this.T=this.kt=null;E.L("delhi_modern_web_player")&&this.update({"data-priority":4});l=this.U.Y();this.updateValue("icon",iU());this.tooltip=e.tf();this.updateValue("dataTooltipOffsetY",0);this.Z=g.XZ("ytp-volume-icon",this.element); k=this.U.L("delhi_modern_web_player_icons")?{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",s7:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{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"}},{X:"path",B:"ytp-svg-volume-animation-small-ripple",D:{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"}},{X:"path",B:"ytp-svg-volume-animation-big-ripple",D:{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"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"defs",K:[{X:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},K:[{X:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",B:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},K:[{X:"path",B:"ytp-svg-volume-animation-mover", D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",d$:!0,s7:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"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"}},{X:"path",d$:!0,s7:["ytp-svg-fill","ytp-svg-volume-animation-hider"],D:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.G=new g.qS(k);g.L(this,this.G);this.pg=this.G.X6("ytp-svg-volume-animation-speaker");this.h0=this.pg.getAttribute("d");this.J=g.Hb("ytp-svg-volume-animation-mover",this.G.element);this.U.L("delhi_modern_web_player_icons");this.S=g.Hb("ytp-svg-volume-animation-hider",this.G.element);this.U.L("delhi_modern_web_player_icons");this.fg=new kL;g.L(this,this.fg);this.Qd=new kL;g.L(this,this.Qd);this.C(E,"appresize",this.MZ);this.C(E,"onVolumeChange",this.onVolumeChange);E.L("delhi_modern_web_player")? this.listen("click",this.QG5):this.listen("click",this.AP);l.fg?(E.L("delhi_modern_web_player")&&(this.T=new cgW(E,e),this.T.u3(this.element),g.L(this,this.T),this.C(this.Z,"mouseover",this.gZ),this.C(this.Z,"focus",this.gZ),this.C(this.Z,"mouseout",this.ZQ),this.C(this.Z,"blur",this.ZQ)),l=E.L("delhi_modern_web_player")?this.Z:this.element,this.addOnDisposeCallback(g.Lb(e.tf(),l))):yg9(this);this.message=null;E.createClientVe(this.element,this,28662);this.MZ(E.zz().getPlayerSize());this.setVolume(E.getVolume(), E.isMuted())}; jH7=function(E,e){if(E.U.Y().fg){var l=g.MX(E.U,"Sem \u00e1udio","m"),k=g.MX(E.U,"Reativar o som","m");l=e?k:l;E.U.Y().L("player_tooltip_data_title_killswitch")?E.updateValue("title",l):E.update({"tooltip-title":l,"aria-label":l});E.update({"data-title-no-tooltip":e?"Reativar o som":"Sem \u00e1udio"});E.tooltip.nw()}}; fR0=function(E,e){E.N=e;var l=E.h0;E.U.L("delhi_modern_web_player_icons")?E.G.X6("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(e+") translate(-22,-12)")):e&&(l+=PJy(IRv,F7W,e));E.pg.setAttribute("d",l)}; VGW=function(E,e){var l;e===1?l=E.U.L("delhi_modern_web_player_icons")?{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:iU():l=E.G;E.SR=e;if(E.U.L("delhi_modern_web_player_icons"))E.G.X6("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-e+") translate(-18,-12)")),E.G.X6("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(E.N-e+") translate(-22, -12)"));else{for(var k=20*e,H=0;H=3&&E.U.getPresentingPlayerType()!==2}; PkZ=function(E){var e=m$(E.U.SE());return e?E.T?e.sP():e.bR():!1}; DsX=function(E){var e={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},l=E.playlist!=null&&E.playlist.sP();l=g.gh(E.U)&&(!E.T||l);var k=E.T&&g.tt(E.U),H=PkZ(E),O=E.T&&E.U.getPresentingPlayerType()===5,X=g.MX(E.U,"Pr\u00f3ximo","SHIFT+n"),A=g.MX(E.U,"Anterior","SHIFT+p");if(O)e.title="Iniciar v\u00eddeo",e["tooltip-title"]="Iniciar v\u00eddeo";else if(E.Z)e.title="Reiniciar",e["tooltip-title"]="Reiniciar";else if(l){var C= null;E.playlist&&(C=g.yR(E.playlist,E.T?yQv(E.playlist):jse(E.playlist)));if(C){if(C.videoId){var p=E.playlist.listId;e.url=E.U.Y().getVideoUrl(C.videoId,p?p.toString():void 0)}e.text=C.title;e.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.ok(C.lengthSeconds):null;e.preview=C.Za("mqdefault.jpg")}E.T?(e.title=X,e["tooltip-title"]=X,e["data-title-no-tooltip"]="Pr\u00f3ximo",e["aria-keyshortcuts"]="SHIFT+n"):(e.title=A,e["tooltip-title"]=A,e["data-title-no-tooltip"]="Anterior",e["aria-keyshortcuts"]= "SHIFT+p")}else if(k){if(A=(C=E.videoData)==null?void 0:g.$7(C))e.url=A.f_(),e.text=A.title,e.duration=A.lengthText?A.lengthText:A.lengthSeconds?g.ok(A.lengthSeconds):null,e.preview=A.Za("mqdefault.jpg");e.title=X;e["tooltip-title"]=X;e["data-title-no-tooltip"]="Pr\u00f3ximo";e["aria-keyshortcuts"]="SHIFT+n"}e.disabled=!k&&!l&&!H&&!O;E.update(e);E.j=!!e.url;k||l||E.Z||H||O?E.G||(E.G=g.Lb(E.tooltip,E.element),E.J=E.listen("click",E.onClick,E)):E.G&&(E.G(),E.G=null,E.xN(E.J),E.J=null);E.tooltip.nw(); g.k_(E.element,"ytp-playlist-ui",E.T&&(l||E.U.L("web_hide_next_button")))}; rgp=function(E,e){return E?e?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:WT():e?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:Dzv()}; L77=function(E,e){g.Z.call(this,{X:"div",B:"ytp-fine-scrubbing",K:[{X:"div",B:"ytp-fine-scrubbing-draggable",K:[{X:"div",B:"ytp-fine-scrubbing-thumbnails",D:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",D:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{X:"div",B:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"}, Tz:"{{seekTime}}"},{X:"div",B:"ytp-fine-scrubbing-play",K:[E.L("delhi_modern_web_player_icons")?zt():wl()],D:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{X:"div",B:"ytp-fine-scrubbing-dismiss",K:[g.pN()],D:{title:"Sair da busca precisa",role:"button"}}]});var l=this;this.api=E;this.J=this.X6("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.X6("ytp-fine-scrubbing-dismiss");this.SR=this.X6("ytp-fine-scrubbing-draggable");this.playButton=this.X6("ytp-fine-scrubbing-play");this.thumbnails= [];this.G=[];this.c5=this.T=0;this.fg=void 0;this.pg=NaN;this.J0=this.V=this.Z=this.N=0;this.S=[];this.interval=this.frameCount=0;this.j=160;this.scale=1;this.jR=0;this.isEnabled=this.h0=!1;aRl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Lb(e,this.dismissButton));this.addOnDisposeCallback(g.Lb(e,this.playButton));this.Qd=new g.Ya(this.SR,!0);this.Qd.subscribe("dragstart",this.eh,this);this.Qd.subscribe("dragmove",this.jh,this);this.Qd.subscribe("dragend",this.Yf,this);this.C(E,"SEEK_COMPLETE", this.v$);E.L("web_fix_fine_scrubbing_false_play")&&this.C(E,"rootnodemousedown",function(k){l.kt=k}); this.J.addEventListener("keydown",function(){}); g.L(this,this.Qd);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.J,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; aRl=function(E,e){var l=g.ok(e),k=g.eE("Procurar $PROGRESS",{PROGRESS:g.ok(e,!0)});E.update({ariamin:0,ariamax:Math.floor(E.api.getDuration()),arianow:Math.floor(e),arianowtext:k,seekTime:l})}; hfZ=function(E){E.pg=NaN;E.V=0;E.N=E.Z}; ZoW=function(E){var e=E.api.mf();if(e){var l=90*E.scale,k=u7(e,160*E.scale);if(e=e.levels[k]){E.j=e.width;if(!E.S.length){k=[];for(var H=AG(e,e.LB()),O=e.columns*e.rows,X=e.frameCount,A=0;A<=H;A++)for(var C=XE.S.length;)k= void 0,(k=E.thumbnails.pop())==null||k.dispose();for(;E.thumbnails.lengthl.length;)k=void 0,(k=E.G.pop())==null||k.dispose(); for(;E.G.length-l?-e/l*E.interval*.5:-(e+l/2)/l*E.interval}; YS7=function(E){return-((E.J.offsetWidth||(E.frameCount-1)*E.j*E.scale)-E.T/2)}; MGl=function(){g.Z.call(this,{X:"div",B:"ytp-fine-scrubbing-thumbnail"})}; NjS=function(){g.Z.call(this,{X:"div",B:"ytp-fine-scrubbing-chapter-title",K:[{X:"div",B:"ytp-fine-scrubbing-chapter-title-content",Tz:"{{chapterTitle}}"}]})}; g$l=function(E){g.Z.call(this,{X:"div",B:"ytp-heat-map-chapter",K:[{X:"svg",B:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{X:"defs",K:[{X:"clipPath",D:{id:"{{id}}"},K:[{X:"path",B:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{X:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{X:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",B:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",B:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",B:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",B:"ytp-modern-heat-map",D:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=E;this.N=this.X6("ytp-heat-map-svg");this.J=this.X6("ytp-heat-map-path");this.S=this.X6("ytp-heat-map-graph");this.j=this.X6("ytp-heat-map-play");this.T=this.X6("ytp-heat-map-hover");this.Z=this.X6("ytp-modern-heat-map");this.aG=!1;this.G=60;E=""+g.u_(this);this.update({id:E});E="url(#"+E+")";this.S.setAttribute("clip-path",E);this.j.setAttribute("clip-path",E);this.T.setAttribute("clip-path",E)}; K7W=function(E,e){e>0&&(E.G=e,E.N.style.height=E.G+"px")}; tH=function(){g.Z.call(this,{X:"div",B:"ytp-chapter-hover-container",K:[{X:"div",B:"ytp-progress-bar-padding"},{X:"div",B:"ytp-progress-list",K:[{X:"div",s7:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",B:"ytp-progress-linear-live-buffer"},{X:"div",B:"ytp-load-progress"},{X:"div",B:"ytp-hover-progress"},{X:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.G=this.X6("ytp-progress-list");this.J=this.X6("ytp-progress-linear-live-buffer"); this.S=this.X6("ytp-ad-progress-list");this.j=this.X6("ytp-load-progress");this.N=this.X6("ytp-play-progress");this.Z=this.X6("ytp-hover-progress");this.T=this.X6("ytp-chapter-hover-container")}; qw=function(E,e){g.MV(E.T,"width",e)}; n$y=function(E,e){g.MV(E.T,"margin-right",e+"px")}; RfZ=function(){this.G=this.position=this.Z=this.T=this.S=this.width=NaN}; sHW=function(){g.Z.call(this,{X:"div",B:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.eH=function(E,e){g.lU.call(this,{X:"div",B:"ytp-progress-bar-container",D:{"aria-disabled":"true"},K:[{X:"div",s7:["ytp-heat-map-container"],K:[{X:"div",B:"ytp-heat-map-edu"}]},{X:"div",s7:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{X:"div",B:"ytp-chapters-container"},{X:"div",B:"ytp-timed-markers-container"},{X:"div", B:"ytp-clip-start-exclude"},{X:"div",B:"ytp-clip-end-exclude"},{X:"div",B:"ytp-scrubber-container",K:[{X:"div",s7:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{X:"div",B:"ytp-scrubber-pull-indicator"},{X:"img",s7:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",s7:["ytp-fine-scrubbing-container"],K:[{X:"div",B:"ytp-fine-scrubbing-edu"}]},{X:"div",B:"ytp-bound-time-left",Tz:"{{boundTimeLeft}}"},{X:"div",B:"ytp-bound-time-right",Tz:"{{boundTimeRight}}"},{X:"div",B:"ytp-clip-start",D:{title:"{{clipstarttitle}}"}, Tz:"{{clipstarticon}}"},{X:"div",B:"ytp-clip-end",D:{title:"{{clipendtitle}}"},Tz:"{{clipendicon}}"}]});this.api=E;this.wG=!1;this.f0=this.Gf=this.b3=this.J=this.w2=0;this.CD=null;this.lk=!1;this.jR={};this.C7={};this.clipEnd=Infinity;this.Wh=this.X6("ytp-clip-end");this.MM=new g.Ya(this.Wh,!0);this.yf=this.X6("ytp-clip-end-exclude");this.dO=this.X6("ytp-clip-start-exclude");this.clipStart=0;this.bY=this.X6("ytp-clip-start");this.Fy=new g.Ya(this.bY,!0);this.pg=this.dC=0;this.progressBar=this.X6("ytp-progress-bar"); this.GX={};this.R4={};this.ND=this.X6("ytp-chapters-container");this.rB=this.X6("ytp-timed-markers-container");this.T=[];this.j=[];this.W7={};this.mT=null;this.h0=-1;this.In=this.fg=0;this.Fr=this.N=null;this.UJ=this.X6("ytp-scrubber-button");this.SR=this.X6("ytp-decorated-scrubber-button");this.Jr=this.X6("ytp-scrubber-container");this.rH=new g.Nd;this.qM=0;this.Lw=new RfZ;this.Z=new J_(0,0);this.hg=null;this.V=this.Dr=!1;this.Kw=null;this.kt=this.X6("ytp-heat-map-container");this.YU=this.X6("ytp-heat-map-edu"); this.S=[];this.heatMarkersDecorations=[];this.Yt=this.X6("ytp-fine-scrubbing-container");this.je=this.X6("ytp-fine-scrubbing-edu");this.G=void 0;this.c5=this.AS=this.J0=!1;this.tooltip=e.tf();this.addOnDisposeCallback(g.Lb(this.tooltip,this.Wh));g.L(this,this.MM);this.MM.subscribe("hoverstart",this.NG,this);this.MM.subscribe("hoverend",this.P9,this);this.C(this.Wh,"click",this.Ra);this.addOnDisposeCallback(g.Lb(this.tooltip,this.bY));g.L(this,this.Fy);this.Fy.subscribe("hoverstart",this.NG,this); this.Fy.subscribe("hoverend",this.P9,this);this.C(this.bY,"click",this.Ra);tGS(this);this.C(E,"resize",this.NN);this.C(E,"presentingplayerstatechange",this.tM);this.C(E,"videodatachange",this.o9);this.C(E,"videoplayerreset",this.Bj);this.C(E,"cuerangesadded",this.YcM);this.C(E,"cuerangesremoved",this.X7n);this.C(E,"onLoopRangeChange",this.Px);this.C(E,"innertubeCommand",this.onClickCommand);this.C(E,"onRetroModeChanged",this.tJn);this.C(E,g.Zj("timedMarkerCueRange"),this.GN6);this.C(E,"updatemarkervisibility", this.Ys);this.C(E,"serverstitchedvideochange",this.KyH);this.updateVideoData(E.getVideoData(),!0);this.Px(E.getLoopRange());E_(this)&&!this.G&&(this.G=new L77(this.api,this.tooltip),E=g.Rb(this.element).x||0,this.G.NN(E,this.J),this.G.u3(this.Yt),g.L(this,this.G),this.C(this.G.dismissButton,"click",this.Zg),this.C(this.G.playButton,"click",this.AG),this.C(this.G.element,"dblclick",this.AG));this.api.createClientVe(this.kt,this,139609,!0);this.api.createClientVe(this.YU,this,140127,!0);this.api.createClientVe(this.je, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; tGS=function(E){if(E.T.length===0){var e=new tH;E.T.push(e);g.L(E,e);e.u3(E.ND,0)}for(;E.T.length>1;)E.T.pop().dispose();qw(E.T[0],"100%");E.T[0].startTime=0;E.T[0].title=""}; qS9=function(E){var e=e===void 0?NaN:e;var l=new g$l(E.api);E.S.push(l);g.L(E,l);l.u3(E.kt);e>=0&&(l.element.style.width=e+"px")}; EOW=function(E){for(;E.j.length;)E.j.pop().dispose()}; ll8=function(E){var e,l,k,H,O;return(O=g.M((H=g.M((e=E.getWatchNextResponse())==null?void 0:(l=e.playerOverlays)==null?void 0:(k=l.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,sV))==null?void 0:H.playerBar,ehW))==null?void 0:O.chapters}; kqy=function(E){for(var e=E.T,l=[],k=0;k=X&&U<=x&&O.push(W)}C>0&&(E.kt.style.height=C+"px");X=E.S[k];x=O;W=H;w=C;U=k===0;U=U===void 0?!1:U;K7W(X,w);Q=x;B=X.G;U=U===void 0?!1:U;var c=1E3/Q.length,V=[];V.push({x:0,y:100});for(var F=0;F0&&(l=O[O.length-1])}g.lJ(E);A=[];e=g.T(e.heatMarkersDecorations||[]);for(H=e.next();!H.done;H=e.next())if(H=g.M(H.value,pnX))C=H.label,k=l=p=void 0,A.push({visibleTimeRangeStartMillis:(p=H.visibleTimeRangeStartMillis)!=null?p:-1,visibleTimeRangeEndMillis:(l=H.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(k=H.decorationTimeMillis)!=null?k:NaN,label:C?g.Ow(C):""});E.heatMarkersDecorations=A}}; XnZ=function(E,e){E.j.push(e);g.L(E,e);e.u3(E.rB,E.rB.children.length)}; uIW=function(E,e){e=g.T(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var k=k6(E,l.timeRangeStartMillis/(E.Z.T*1E3),Hd(E)),H=E.api.L("delhi_modern_web_player")?.667:.6;g.MV(l.element,"transform","translateX("+k+"px) scaleX("+H+")")}}; Htp=function(E,e){var l=0,k=!1;e=g.T(e);for(var H=e.next();!H.done;H=e.next()){H=H.value;if(g.M(H,QGe)){H=g.M(H,QGe);var O={startTime:NaN,title:null,onActiveCommand:void 0},X=H.title;O.title=X?g.Ow(X):"";X=H.timeRangeStartMillis;X!=null&&(O.startTime=X);O.onActiveCommand=H.onActiveCommand;H=O;l===0&&H.startTime!==0&&(E.T[l].startTime=0,E.T[l].title="",E.T[l].onActiveCommand=H.onActiveCommand,l++,k=!0);E.T.length<=l&&(O=new tH,E.T.push(O),g.L(E,O),O.u3(E.ND,E.ND.children.length));E.T[l].startTime= H.startTime;E.T[l].title=H.title?H.title:"";E.T[l].onActiveCommand=H.onActiveCommand;E.T[l].index=k?l-1:l}l++}for(;l=0;k--)if(E.T[k].width>0){n$y(E.T[k],0);var H=Math.floor(E.T[k].width);E.T[k].width=H;qw(E.T[k],H+"px");break}E.T[l].width=0;qw(E.T[l],"0")}else l===E.T.length-1?(k=Math.floor(E.T[l].width+e),E.T[l].width=k,qw(E.T[l],k+"px")):(e=E.T[l].width+e,k=Math.round(e),e-=k,E.T[l].width=k,qw(E.T[l],k+"px"));l=0;if(E.S.length===E.T.length)for(e=0;e< E.S.length;e++)k=E.T[e].width,E.S[e].element.style.width=k+"px",E.S[e].element.style.left=l+"px",l+=k+XH(E);E.api.L("delhi_modern_web_player")&&(E.T.length===1?E.T[0].G.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(E.T[0].G.classList.remove("ytp-progress-bar-end"),E.T[0].G.classList.add("ytp-progress-bar-start"),E.T[E.T.length-1].G.classList.add("ytp-progress-bar-end")))}; WSZ=function(E,e){var l=0,k=!1,H=E.T.length,O=E.Z.T*1E3;O===0&&(O=E.api.getProgressState().seekableEnd*1E3);if(O>0&&E.J>0){for(var X=E.J-XH(E)*E.fg,A=E.In===0?3:X*E.In,C=g.T(E.T),p=C.next();!p.done;p=C.next())p.value.width=0;for(;l1);p=(O===0?0:C/O*X)+E.T[l].width;if(p>A)E.T[l].width=p;else{E.T[l].width=0;var x=E,Q=l,W=x.T[Q-1];W!==void 0&&W.width>0? W.width+=p:QE.In&&(E.In=C/O),k=!0)}l++}}return k}; O_=function(E){if(E.J){var e=E.api.getProgressState(),l=E.api.getVideoData();if(!(l&&l.enableServerStitchedDai&&l.u0)||isFinite(e.current)){var k;if(((k=E.api.getVideoData())==null?0:dh(k))&&e.airingStart&&e.airingEnd)var H=uJ(E,e.airingStart,e.airingEnd);else if(E.api.getPresentingPlayerType()===2){var O,X,A;H=(l=(H=E.api.getVideoData())==null?void 0:(O=H.getPlayerResponse())==null?void 0:(X=O.playerConfig)==null?void 0:(A=X.webPlayerConfig)==null?void 0:A.skippableAdProgressBarDuration)?uJ(E,e.seekableStart, l/1E3):uJ(E,e.seekableStart,e.seekableEnd)}else H=uJ(E,e.seekableStart,e.seekableEnd);O=c2(H,e.loaded,0);e=c2(H,e.current,0);X=E.Z.G!==H.G||E.Z.T!==H.T;E.Z=H;Ab(E,e,O);X&&BsS(E);oOX(E)}}}; uJ=function(E,e,l){return wn0(E)?new J_(Math.max(e,E.hg.startTimeMs/1E3),Math.min(l,E.hg.endTimeMs/1E3)):new J_(e,l)}; dMS=function(E,e){var l,k,H;e=g.M((l=e.getWatchNextResponse())==null?void 0:(k=l.playerOverlays)==null?void 0:(H=k.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,sV);if(e==null?0:e.progressColor)for(l=0;l1){l=CK(E,e.Z,!0);for(var k=0,H=0;H0&&(k+=E.T[H].width,k+=XH(E));l=(E.T[l].startTime+(e.Z-k)/E.T[l].width*((l===E.T.length-1?E.Z.T*1E3:E.T[l+1].startTime)-E.T[l].startTime))/1E3||0}return l}; TsS=function(E,e){if(e<0)return"0";E=Math.floor(Math.min(e,E.api.getDuration())*1E3);return E>2147483647?"0":String(E)}; x6=function(E,e,l,k,H){e=TsS(E,e);l=TsS(E,l);E=E.progressBar.visualElement;k={seekData:{startMediaTimeMs:e,endMediaTimeMs:l,seekSource:k}};(e=g.BQ())&&Kg(e,E,H,k)}; itX=function(E,e,l){if(l>=E.T.length)return!1;var k=E.J-XH(E)*E.fg;return Math.abs(e-E.T[l].startTime/1E3)/E.Z.T*k<4}; BsS=function(E){E.UJ.style.removeProperty("height");for(var e=g.T(Object.keys(E.jR)),l=e.next();!l.done;l=e.next())$M7(E,l.value);Q_(E);Ab(E,E.pg,E.dC)}; Hd=function(E){var e=E.rH.x;e=g.Lk(e,0,E.J);E.Lw.update(e,E.J);return E.Lw}; Bd=function(E){return(E.V?135:90)-Wd(E)}; Wd=function(E){var e=48,l=E.api.Y();E.api.L("delhi_modern_web_player")?e=E.api.getPlayerSize().width<=528?64:E.V?96:72:E.V?e=54:g.qA(l)&&!l.G&&(e=40);return e}; Ab=function(E,e,l){E.pg=e;E.dC=l;var k=Hd(E),H=E.Z.T,O=oIX(E.Z,E.pg),X=g.eE("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ok(O,!0),DURATION:g.ok(H,!0)}),A=GI(E.T,O*1E3);A=E.T[A].title;E.update({ariamin:Math.floor(E.Z.G),ariamax:Math.floor(H),arianow:Math.floor(O),arianowtext:A?A+" "+X:X});H=E.clipStart;O=E.clipEnd;E.hg&&E.api.getPresentingPlayerType()!==2&&(H=E.hg.startTimeMs/1E3,O=E.hg.endTimeMs/1E3);H=c2(E.Z,H,0);A=c2(E.Z,O,1);X=E.api.getVideoData();O=g.Lk(e,H,A);l=(X==null?0:g.oF(X))?1:g.Lk(l, H,A);e=k6(E,e,k);g.MV(E.Jr,"transform","translateX("+e+"px)");E.api.L("delhi_modern_web_player")&&E.api.L("delhi_modern_web_player_cutout")&&UM9(E,e);oV(E,k,H,O,"PLAY_PROGRESS");(X==null?0:dh(X))?(e=E.api.getProgressState().seekableEnd)&&oV(E,k,O,c2(E.Z,e),"LIVE_BUFFER"):oV(E,k,H,l,"LOAD_PROGRESS");if(E.api.L("web_player_heat_map_played_bar")){var C;(C=E.S[0])!=null&&C.j.setAttribute("width",(O*100).toFixed(2)+"%")}}; UM9=function(E,e){E.api.getPresentingPlayerType()!==1?E.ND.style.removeProperty("clip-path"):(e||(e=k6(E,E.pg,Hd(E))),E.ND.style.clipPath='path("'+(E.lk?JI7(E,8,e,E.V?50:36,0,6):JI7(E,4,e,E.V?34:24,2,3))+'")')}; JI7=function(E,e,l,k,H,O){var X=l-k/2;l+=k/2;e+=H;return"M 0 "+H+" L 0 "+(e+" L ")+(X+" "+e+" C ")+(X+O+" "+e+" "+(X+O)+" "+H+" "+X+" "+H+" L 0 ")+(H+" M ")+(l+" "+H+" L ")+(E.J+" "+H+" L ")+(E.J+" "+e+" L ")+(l+" "+e+" C ")+(l-O+" "+e+" "+(l-O)+" "+H+" "+l+" "+H)}; oV=function(E,e,l,k,H){var O=E.T.length,X=e.T-E.fg*XH(E),A=l*X;l=CK(E,A);var C=k*X;X=CK(E,C);H==="HOVER_PROGRESS"&&(X=CK(E,e.T*k,!0),C=e.T*k-cIX(E,e.T*k)*XH(E));k=Math.max(A-yI8(E,l),0);for(A=l;A=E.T.length)return E.J;for(var l=0,k=0;k0||E.yf.clientWidth>0?(O=e.clientWidth/l,E=-1*E.dO.clientWidth/l):(O/=l,E=-1*E.T[H].element.offsetLeft/l),g.MV(e,"background-size",O+"px"),g.MV(e,"background-position-x",E+"px"))}; wF=function(E,e,l,k,H){H||E.api.Y().G?e.style.width=l+"px":g.MV(e,"transform","scalex("+(k?l/k:0)+")")}; CK=function(E,e,l){var k=0;(l===void 0?0:l)&&(e-=cIX(E,e)*XH(E));l=g.T(E.T);for(var H=l.next();!H.done;H=l.next()){H=H.value;if(e>H.width)e-=H.width;else break;k++}return k===E.T.length?k-1:k}; k6=function(E,e,l){var k=e*E.Z.T*1E3;for(var H=-1,O=g.T(E.T),X=O.next();!X.done;X=O.next())X=X.value,k>X.startTime&&X.width>0&&H++;k=H<0?0:H;H=l.T-XH(E)*E.fg;return e*H+XH(E)*k+l.S}; cIX=function(E,e){for(var l=E.T.length,k=0,H=g.T(E.T),O=H.next();!O.done;O=H.next())if(O=O.value,O.width!==0)if(e>O.width)e-=O.width,e-=XH(E),k++;else break;return k===l?l-1:k}; g.FS0=function(E,e,l,k){var H=E.J!==l,O=E.V!==k;E.w2=e;E.J=l;E.V=k;E_(E)&&(e=E.G)!=null&&(e.scale=k?1.5:1);BsS(E);E.T.length===1&&(E.T[0].width=l||0);H&&g.lJ(E);E.G&&O&&E_(E)&&(E.G.isEnabled&&(l=E.V?135:90,k=l-Wd(E),E.Yt.style.height=l+"px",g.MV(E.kt,"transform","translateY("+-k+"px)"),g.MV(E.progressBar,"transform","translateY("+-k+"px)")),ZoW(E.G))}; Q_=function(E){var e=!!E.hg&&E.api.getPresentingPlayerType()!==2,l=E.clipStart,k=E.clipEnd,H=!0,O=!0;e&&E.hg?(l=E.hg.startTimeMs/1E3,k=E.hg.endTimeMs/1E3):(H=l>E.Z.G,O=E.Z.T>0&&kE.pg);g.k_(E.UJ,"ytp-scrubber-button-hover",l===k&&E.T.length>1);if(E.api.L("web_player_heat_map_played_bar")){var O;(O=E.S[0])!=null&&O.T.setAttribute("width",(e.G*100).toFixed(2)+"%")}}}; $M7=function(E,e){var l=E.jR[e];e=E.C7[e];var k=Hd(E),H=c2(E.Z,l.start/1E3,0),O=jO7(l,E.V)/k.width;var X=c2(E.Z,l.end/1E3,1);O!==Number.POSITIVE_INFINITY&&(H=g.Lk(H,0,X-O));X=Math.min(X,H+O);l.color&&(e.style.background=l.color);l=H;e.style.left=Math.max(l*k.T+k.S,0)+"px";wF(E,e,g.Lk((X-l)*k.T+k.S,0,k.width),k.width,!0)}; flX=function(E,e){var l=e.getId();E.jR[l]===e&&(g.zD(E.C7[l]),delete E.jR[l],delete E.C7[l])}; E_=function(E){var e=g.TH(E.api.Y())&&(E.api.L("web_shorts_pip")||E.api.L("web_watch_pip")),l;return!((l=E.api.getVideoData())==null?0:l.isLivePlayback)&&!E.api.isMinimized()&&!E.api.isInline()&&(!E.api.Dl()||!e)}; zZ=function(E){E.G&&(E.G.disable(),E.b3=0,E.kt.style.removeProperty("transform"),E.progressBar.style.removeProperty("transform"),E.Yt.style.removeProperty("height"),E.element.parentElement&&E.element.parentElement.style.removeProperty("height"))}; VDy=function(E,e){var l=e/Bd(E)*Wd(E);g.MV(E.progressBar,"transform","translateY("+-e+"px)");g.MV(E.kt,"transform","translateY("+-e+"px)");g.MV(E.Yt,"transform","translateY("+l+"px)");E.Yt.style.height=e+l+"px";E.element.parentElement&&(E.element.parentElement.style.height=Wd(E)-l+"px")}; SkS=function(E,e){e?E.N||(E.element.removeAttribute("aria-disabled"),E.N=new g.Ya(E.progressBar,!0),E.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&E.N.subscribe("hoverstart",E.F66,E),E.N.subscribe("hovermove",E.hpn,E),E.N.subscribe("hoverend",E.xMR,E),E.N.subscribe("dragstart",E.XsD,E),E.N.subscribe("dragmove",E.QzM,E),E.N.subscribe("dragend",E.i56,E),E.api&&E.api.L("delhi_modern_web_player")&&E.api.L("delhi_modern_web_player_cutout")&&(E.Fr=new g.Ya(E.progressBar, !0),E.Fr.subscribe("hoverstart",function(){E.lk=!0;UM9(E)},E),E.Fr.subscribe("hoverend",function(){E.lk=!1; UM9(E)},E)),E.Kw=E.listen("keydown",E.VX)):E.N&&(E.element.setAttribute("aria-disabled","true"),E.xN(E.Kw),E.N.cancel(),E.N.dispose(),E.N=null)}; XH=function(E){return E.api.L("delhi_modern_web_player")?4:E.V?3:2}; wn0=function(E){var e;return!((e=E.hg)==null||!e.postId)&&E.api.getPresentingPlayerType()!==2}; dF=function(E,e){g.Z.call(this,{X:"button",s7:["ytp-remote-button","ytp-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"Reproduzir na TV":"","data-tooltip-title":"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},Tz:"{{icon}}"});this.U=E;this.wC=e;this.T=null;this.C(E,"onMdxReceiversChange",this.qD);this.C(E,"presentingplayerstatechange",this.qD);this.C(E,"appresize",this.qD);E.createClientVe(this.element,this,139118);this.qD();this.listen("click",this.G,this);ht(E,this.element, this)}; GZ=function(E,e){g.Z.call(this,{X:"button",s7:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":t8(),title:E.L("player_tooltip_data_title_killswitch")?"Detalhes":"","data-tooltip-title":"Detalhes","data-tooltip-target-id":"ytp-settings-button"},K:[E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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.Gt()]});this.U=E;this.wC=e;this.G=!0;this.listen("click",this.Z);this.C(E,"onPlaybackQualityChange",this.updateBadge);this.C(E,"videodatachange",this.updateBadge);this.C(E,"webglsettingschanged",this.updateBadge);this.C(E,"appresize",this.T);ht(E,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.T(E.zz().getPlayerSize())}; rIv=function(E,e){E.G=!!e;E.T(E.U.zz().getPlayerSize())}; TZ=function(E,e){i4.call(this,"Anota\u00e7\u00f5es",g.In.sH);this.U=E;this.wC=e;this.T=!1;E.L("web_settings_menu_icons")&&(e=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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(e));this.C(E,"videodatachange",this.qD);this.C(E,"onApiChange",this.qD);this.subscribe("select",this.onSelect,this);this.qD()}; iJ=function(E,e){g.M_.call(this,"Faixa de \u00e1udio",g.In.AUDIO,E,e);this.U=E;this.tracks={};g.qx(this.element,"ytp-audio-menu-item");this.countLabel=new g.Z({X:"div",K:[{X:"span",Tz:"Faixa de \u00e1udio"},{X:"span",B:"ytp-menuitem-label-count",Tz:"{{content}}"}]});E.L("web_settings_menu_icons")&&(e=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:fZ7(),this.setIcon(e));g.L(this,this.countLabel);g.AL(this,this.countLabel);this.C(E,"videodatachange",this.qD);this.C(E,"onPlaybackAudioChange",this.qD);this.qD()}; $6=function(E,e){i4.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.In.UH);this.U=E;this.wC=e;this.T=!1;this.Z=[];this.C(E,"presentingplayerstatechange",this.G);this.subscribe("select",this.onSelect,this);E.createClientVe(this.element,this,113682);this.G()}; DM8=function(E,e){g.CV.call(this,g.pV({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.U=E;this.wC=e;this.C(this.element,"click",this.onClick);this.wC.Qf(this)}; btl=function(E,e){var l;g.TH(E.Y())&&(l={X:"div",B:"ytp-panel-footer-content",K:[{X:"span",Tz:"Ajuste a qualidade do download em "},{X:"a",B:"ytp-panel-footer-content-link",Tz:"Detalhes",D:{href:"/account_downloads"}}]});g.M_.call(this,"Qualidade",g.In.fv,E,e,void 0,void 0,l);this.U=E;this.SR={};this.V={};this.S={};this.Qd=new Set;this.T=this.J=!1;this.j="unknown";this.pg="";this.kt=new g.DA;g.L(this,this.kt);this.J=this.U.L("web_player_use_new_api_for_quality_pullback");this.T=this.U.L("web_player_enable_premium_hbr_playback_cap"); E.L("web_settings_menu_icons")&&(e=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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(e));g.qx(this.G.element,"ytp-quality-menu");this.C(E,"videodatachange",this.gQ);this.C(E,"videoplayerreset",this.gQ);this.C(E,"onPlaybackQualityChange",this.NZ);this.gQ();E.createClientVe(this.element,this,137721)}; P9p=function(E,e,l){var k=E.SR[e],H=g.$f[e];return vO0(E,k?k.qualityLabel:H?H+"p":"Autom\u00e1tico",e,l)}; alX=function(E,e,l,k,H){var O=(e=E.T?E.S[e]:E.V[e])&&e.quality,X=e&&e.qualityLabel;X=X?X:"Autom\u00e1tico";k&&(X="("+X);E=vO0(E,X,O||"",H);k&&E.K.push(")");(k=(k=e&&e.paygatedQualityDetails)&&k.paygatedIndicatorText)&&l&&E.K.push({X:"div",B:"ytp-premium-label",Tz:k});return E}; vO0=function(E,e,l,k){e={X:"span",s7:k,K:[e]};var H;k="ytp-swatch-color";if(E.J||E.T)k="ytp-swatch-color-white";l==="highres"?H="8K":l==="hd2880"?H="5K":l==="hd2160"?H="4K":l.indexOf("hd")===0&&l!=="hd720"&&(H="HD");H&&(e.K.push(" "),e.K.push({X:"sup",B:k,Tz:H}));return e}; U_=function(E){ZF.call(this,E.getAvailablePlaybackRates()[0],E.getAvailablePlaybackRates()[E.getAvailablePlaybackRates().length-1],.05,E.getPlaybackRate(),{X:"div",B:"ytp-speedslider-indicator-container",K:[{X:"div",B:"ytp-speedslider-badge"},{X:"p",B:"ytp-speedslider-text"}]});this.U=E;this.pg=rT(this.SR,50,this);g.qx(this.G,"ytp-speedslider");this.V=this.X6("ytp-speedslider-text");this.kt=this.X6("ytp-speedslider-badge");LSv(this);this.C(this.G,"change",this.Qd)}; LSv=function(E){E.V.textContent=E.T.toFixed(2)+"x";var e=E.T>2&&E.U.L("enable_web_premium_varispeed");E.kt.classList.toggle("ytp-speedslider-premium-badge",e);E.kt.setAttribute("aria-label",e?"Premium":"")}; Jb=function(E,e,l,k,H,O,X){g.Z.call(this,{X:"div",B:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{X:"div",B:"ytp-slider",K:[{X:"div",B:"ytp-slider-handle"}]}]});this.N=E;this.V=e;this.G=l;this.Z=k;this.pg=H;this.h0=O;this.range=this.Z-this.G;this.fg=this.X6("ytp-slider-section");this.S=this.X6("ytp-slider");this.kt=this.X6("ytp-slider-handle");this.j=new g.Ya(this.S, !0);this.T=X?X:l;g.L(this,this.j);this.j.subscribe("dragmove",this.dh,this);this.C(this.element,"keydown",this.IT);this.C(this.element,"wheel",this.E8);this.init()}; cd=function(E){Jb.call(this,.05,.05,E.getAvailablePlaybackRates()[0],E.getAvailablePlaybackRates()[E.getAvailablePlaybackRates().length-1],150,20,E.getPlaybackRate());this.U=E;this.J=g.Qz("P");this.Qd=rT(this.SR,50,this);g.qx(this.S,"ytp-speedslider");g.qx(this.J,"ytp-speedslider-text");E=this.J;var e=this.S;e.parentNode&&e.parentNode.insertBefore(E,e.nextSibling);hh7(this);this.C(this.U,"onPlaybackRateChange",this.updateValues)}; hh7=function(E){E.J.textContent=MDX(E,E.T)+"x"}; MDX=function(E,e){E=Number(g.Lk(e,E.G,E.Z).toFixed(2));e=Math.floor((E+.001)*100%5+2E-15);var l=E;e!==0&&(l=E-e*.01);return Number(l.toFixed(2))}; Ns7=function(E){g.lU.call(this,{X:"div",B:"ytp-speedslider-component"});E.L("web_settings_use_input_slider")?this.T=new U_(E):this.T=new cd(E);g.L(this,this.T);this.element.appendChild(this.T.element)}; Zte=function(E){var e=new Ns7(E);f6.call(this,E,e,"Personalizado");g.L(this,e)}; Ykl=function(E,e){var l=new Zte(E);g.M_.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.In.W1,E,e,y_(E)?void 0:"Personalizado",y_(E)?void 0:function(){g.DO(e,l)}); var k=this;this.S=!1;g.L(this,l);this.j=new U_(E);g.L(this,this.j);if(E.L("web_settings_menu_icons")){var H=E.L("delhi_modern_web_player_icons")?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(H)}this.U=E;this.S=!1;this.pg=null;y_(E)?(this.T=g.eE("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.J=this.U.getPlaybackRate()):this.J=this.T=null;this.V=this.U.getAvailablePlaybackRates();this.C(E,"presentingplayerstatechange",this.qD);var O;((O=this.U.getVideoData())==null?0:O.Z0())&&this.C(E,"serverstitchedvideochange",this.qD);this.C(this.j.G,"change",function(){k.S=!0;k.qD()}); this.qD()}; mM7=function(E,e){var l=jH(e);E.T&&(E.S||e===E.J)?(E.zS(E.T),E.g$(e.toString())):E.zS(l)}; KSv=function(E){E.nz(E.V.map(jH));E.T=null;E.J=null;var e=E.U.getPlaybackRate();y_(E.U)&&gOZ(E,e);!E.V.includes(e)||E.S?E.zS(E.T):E.zS(jH(e))}; gOZ=function(E,e){E.J=e;E.T=g.eE("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:e.toString()});e=E.V.map(jH);e.unshift(E.T);E.nz(e)}; jH=function(E){return E.toString()}; y_=function(E){return E.L("web_settings_menu_surface_custom_playback")}; nOy=function(E){return E.L("web_settings_menu_surface_custom_playback")&&E.L("web_settings_use_input_slider")}; sG7=function(E,e,l,k){var H=new g.Vx(e,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.M_.call(this,k.text||"",E,e,l,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.DO(l,H)}); var O=this;g.qx(this.element,"ytp-subtitles-options-menu-item");this.setting=k.option.toString();E=k.options;this.settings=g.R1(E,this.Hx,this);this.J=H;g.L(this,this.J);e=new g.CV({X:"div",B:"ytp-menuitemtitle",Tz:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.L(this,e);this.J.Qf(e,!0);this.S=new g.CV({X:"div",B:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},K:[{X:"div",B:"ytp-menuitem-label",Tz:"Ativ."}]},-1);g.L(this,this.S);this.J.Qf(this.S,!0);this.C(this.S.element, "click",function(){Rhy(O,!0)}); this.T=new g.CV({X:"div",B:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},K:[{X:"div",B:"ytp-menuitem-label",Tz:"Desat"}]},-2);g.L(this,this.T);this.J.Qf(this.T,!0);this.C(this.T.element,"click",function(){Rhy(O,!1)}); this.nz(g.o7(E,this.Hx))}; Rhy=function(E,e){E.publish("settingChange",E.setting+"Override",!e);E.wC.dM()}; IV=function(E,e){g.Vx.call(this,E,void 0,"Op\u00e7\u00f5es");var l=this;this.Yj={};for(var k=0;k=0);if(!(e<0||e===E.S)){E.S=e;e=243*E.scale;var l=141*E.scale,k=EoW(E.G,E.S,e);wUy(E.bg,k,e,l,!0);E.kt.start()}}; cD9=function(E){var e=E.T;E.type===3&&E.SR.stop();E.api.removeEventListener("appresize",E.pg);E.N||(E.env.L("player_tooltip_data_title_killswitch")?e.setAttribute("title",E.Z):e.setAttribute("data-tooltip-title",E.Z));E.Z="";E.T=null;E.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});E.wrapper.style.width=""}; jIX=function(E){g.Z.call(this,{X:"button",s7:["ytp-watch-later-button","ytp-button"],D:{title:E.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.qA(E.Y()))},K:[{X:"div",B:"ytp-watch-later-icon",Tz:"{{icon}}"},{X:"div",B:"ytp-watch-later-title",Tz:"Assistir mais tarde"}]});this.U=E;this.icon=null;this.visible=this.isRequestPending=this.T=!1;VbW(E);E.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.C(E,"videoplayerreset",this.onReset);this.C(E,"appresize",this.l9);this.C(E,"videodatachange",this.l9);this.C(E,"presentingplayerstatechange",this.l9);this.l9();E=this.U.Y();var e=g.cK("yt-player-watch-later-pending");E.S&&e?(lnS(),yDS(this)):this.qD(2);g.k_(this.element,"ytp-show-watch-later-title",g.qA(E));ht(this.U,this.element,this)}; IwX=function(E){var e=E.U.getPlayerSize(),l=E.U.Y(),k=E.U.getVideoData(),H=g.qA(l)&&g.gh(E.U)&&g.m(E.U.getPlayerStateObject(),128),O=l.Z;return l.CD&&e.width>=240&&!k.isAd()&&k.CD&&!H&&!k.r$&&!E.U.isEmbedsShortsMode()&&!O}; F8p=function(E,e){fe7(g.oQ(E.U.Y()),"wl_button",function(){lnS({videoId:e});window.location.reload()})}; yDS=function(E){if(!E.isRequestPending){E.isRequestPending=!0;E.qD(3);var e=E.U.getVideoData();e=E.T?e.removeFromWatchLaterCommand:e.addToWatchLaterCommand;var l=E.U.LI(),k=E.T?function(){E.T=!1;E.isRequestPending=!1;E.qD(2);E.U.Y().N&&E.U.MD("WATCH_LATER_VIDEO_REMOVED")}:function(){E.T=!0; E.isRequestPending=!1;E.qD(1);E.U.Y().G&&E.U.m7(E.element);E.U.Y().N&&E.U.MD("WATCH_LATER_VIDEO_ADDED")}; fd(l,e).then(k,function(){E.isRequestPending=!1;E.qD(4,"Ocorreu um erro. Tente novamente mais tarde.");E.U.Y().N&&E.U.MD("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; fwX=function(E,e){if(e!==E.icon){switch(e){case 3:var l=y7();break;case 1:l=uU();break;case 2:l={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:l={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path", d$:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}E.updateValue("icon",l);E.icon=e}}; Vx7=function(){g.k1.apply(this,arguments);this.tI=(this.u8=g.qA(this.api.Y()))&&(this.api.Y().G||mV()||ZD());this.lK=48;this.f8=69;this.a8=this.Wq=null;this.rP=[];this.WK=this.l1=this.L6=this.YM=this.lq=null;this.U$=[];this.contextMenu=this.t2=this.overflowButton=this.hV=this.gG=this.searchButton=this.copyLinkButton=this.shareButton=this.nF=this.h2=this.title=this.channelAvatar=this.LR=this.tooltip=null;this.wz=!1;this.Su=this.Nx=this.I_=this.mQ=null;this.l06=this.BM=this.bK=!1}; S4Z=function(E){var e=E.api.Y(),l=g.m(E.api.getPlayerStateObject(),128);return e.S&&l&&!E.api.isFullscreen()}; rDe=function(E){if(E.fD()&&!E.api.isEmbedsShortsMode()&&E.hV){var e=E.api.L("web_player_hide_overflow_button_if_empty_menu");!E.nF||e&&!IwX(E.nF)||Sy8(E.hV,E.nF);!E.shareButton||e&&!R8Z(E.shareButton)||Sy8(E.hV,E.shareButton);!E.copyLinkButton||e&&!gm0(E.copyLinkButton)||Sy8(E.hV,E.copyLinkButton)}else{e=E.api.Y().getWebPlayerContextConfig();if(E.hV){for(var l=E.hV,k=g.T(l.actionButtons),H=k.next();!H.done;H=k.next())H.value.detach();l.actionButtons=[]}E.searchButton&&!g.dT(E.h2.element,E.searchButton.element)&& E.searchButton.u3(E.h2.element);!E.nF||(e==null?0:e.hideTopWatchNextButton)||g.dT(E.h2.element,E.nF.element)||E.nF.u3(E.h2.element);!E.shareButton||(e==null?0:e.hideTopShareButton)||g.dT(E.h2.element,E.shareButton.element)||E.shareButton.u3(E.h2.element);E.copyLinkButton&&!g.dT(E.h2.element,E.copyLinkButton.element)&&E.copyLinkButton.u3(E.h2.element)}}; DFX=function(E,e,l){e=l?e.lastElementChild:e.firstElementChild;for(var k=null;e;){if(Yv(e,"display")!=="none"&&e.getAttribute("aria-hidden")!=="true"){var H=void 0;e.tabIndex>=0?H=e:H=DFX(E,e,l);H&&(k?l?H.tabIndex>k.tabIndex&&(k=H):H.tabIndexk/1E3+1)return{msg:"in-the-past"};if(O.isLivePlayback&&!isFinite(k))return{msg:"live-infinite"};(k=e.Ps())&&k.isView()&&(k=k.mediaElement);if(k&&k.u2().length>12&&g.Nt(H))return{msg:"played-ranges"};if(!H.Z)return null;if(!X)return{msg:"no-pvd-formats"};if(!H.Z.T||!X.T)return{msg:"non-dash"};k=X.videoInfos[0];var A=H.Z.videoInfos[0];E.pg&&yJ(O)&&(k=e.UM(), A=l.UM());if(!k||!A)return{msg:"no-video-info"};if(E.J&&(Vp(k)||Vp(A)))return{msg:"av1"};e=E.S&&O.Jd()&&l3();if(A.containerType!==k.containerType)if(e)O.wH("sgap",{ierr:"container"});else return{msg:"container"};if(E.W&&!e&&(A.DM!==k.DM||A.DM===""||k.DM===""))return{msg:"codec"};if(E.j&&A.video&&k.video&&Math.abs(A.video.width/A.video.height-k.video.width/k.video.height)>.01)return{msg:"ratio"};if(g.Nt(O)&&g.Nt(H))return{msg:"content-protection"};X=X.T[0];H=H.Z.T[0];l=X.audio;var C=H.audio;if(l.sampleRate!== C.sampleRate&&!g.oW)if(e)O.wH("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:X.itag,cr:l.sampleRate,ni:H.itag,nr:C.sampleRate};return(l.numChannels||2)!==(C.numChannels||2)?{msg:"channel-count"}:E.N&&O.Jd()&&k.video.fps!==A.video.fps?{msg:"fps"}:null}; awl=function(E,e,l){var k=E.getVideoData(),H=e.getVideoData();if(!k.Y().supportsGaplessShorts())return{nq:"env"};if((!l.V||k.vG&&!k.isAd()||H.vG&&!H.isAd())&&(!l.G||k.vG&&!k.isAd()||H.vG)&&(!l.Z||H.vG&&!H.isAd()||k.vG)&&(k.vG||H.vG))return{nq:"autoplay"};if(k.endSeconds>0)return{nq:"endcr"};if(!k.j)return{nq:"client"};if(!E.Tf())return{nq:"no-empty"};E=Pzl(l,E,e,Infinity);return E!=null?{nq:E.msg}:null}; gF=function(E){g.a.call(this);this.app=E;this.W=this.S=this.G=this.T=null;this.Z=1;this.events=new g.G_(this);this.events.C(this.app.eR,g.Yk("gaplessshortslooprange"),this.N);g.L(this,this.events)}; L80=function(){this.T=this.j=this.Z=this.G=this.V=this.J=this.pg=this.N=this.W=this.S=!1}; hW7=function(E){var e=new L80;e.S=E.L("h5_gapless_support_types_diff");e.N=E.L("h5_gapless_error_on_fps_diff");e.pg=E.L("html5_gapless_use_format_info_fix");e.J=E.L("html5_gapless_disable_on_av1")&&!E.L("html5_gapless_enable_on_av1");e.W=E.L("html5_gapless_check_codec_diff_strictly");e.V=E.L("html5_gapless_on_ad_autoplay");e.j=E.L("html5_gapless_disable_diff_aspect_radio");e.G=E.L("html5_gapless_ad_autoplay_on_ad_to_video_only");e.T=E.L("html5_pseudogapless_shorts_seek_to_next_start");e.Z=E.L("html5_gapless_ad_autoplay_on_video_to_ad_only"); return e}; g.KK=function(E,e,l,k){k=k===void 0?!1:k;Qe.call(this);this.mediaElement=E;this.start=e;this.end=l;this.T=k}; Mxl=function(E,e,l,k,H,O){O=O===void 0?0:O;g.a.call(this);var X=this;this.policy=E;this.T=e;this.G=l;this.sz=H;this.W=O;this.S=this.Z=null;this.currentVideoDuration=this.J=-1;this.j=!1;this.lI=new xZ;this.C9=k-e.eE()*1E3;this.lI.then(void 0,function(){}); this.timeout=new g.Nx(function(){X.VL("timeout")},1E4); g.L(this,this.timeout);this.N=isFinite(k)||this.sz.Y().experiments.P5("html5_pseudogapless_shorts")&&yJ(e.getVideoData());this.status={status:0,error:null}}; ZH7=function(E){var e,l,k,H,O,X,A,C,p;return g.D(function(x){if(x.G==1){if(E.U7())return x.return(Promise.reject(Error(E.status.error||"disposed")));E.timeout.start();return g.S(x,E.lI,2)}e=E.T.Ps();if(e.isEnded())return E.VL("ended_in_finishTransition"),x.return(Promise.reject(Error(E.status.error||"")));if(!E.S||!O$(E.S))return E.VL("next_mse_closed"),x.return(Promise.reject(Error(E.status.error||"")));if(E.G.T8()!==E.S)return E.VL("next_mse_mismatch"),x.return(Promise.reject(Error(E.status.error|| "")));l=nK(E);k=l.AF;H=l.ag;O=l.qG;E.T.u1(!1,!0);X=NIX(e,k,O,!E.G.getVideoData().isAd());E.G.setMediaElement(X);(A=E.T.GI())&&E.G.jF(A.dg,A.Ik);E.N&&(E.policy.T||E.G.seekTo(E.G.getCurrentTime()+.001,{W_:!0,f4:3,AN:"gapless_pseudo"}),X.play(),J2());C=e.zX();C.cpn=E.T.getVideoData().clientPlaybackNonce;C.st=""+k;C.et=""+O;E.G.wH("gapless",C);E.T.wH("gaplessTo",{cpn:E.G.getVideoData().clientPlaybackNonce});p=E.T.getPlayerType()===E.G.getPlayerType();E.T.uy(H,!0,!1,p,E.G.getVideoData().clientPlaybackNonce); E.G.uy(E.G.getCurrentTime(),!0,!0,p,E.T.getVideoData().clientPlaybackNonce);E.G.vp();g.Gy(function(){!E.G.getVideoData().kt&&E.G.getPlayerState().isOrWillBePlaying()&&E.G.q$()}); RV(E,6);E.dispose();return x.return(Promise.resolve())})}; K89=function(E){if(E.G.getVideoData().Z){var e=E.sz.Y().L("html5_gapless_suspend_next_loader")&&E.W===1;E.G.s3(E.S,e,Y4Z(E));RV(E,3);mF8(E);var l=gcS(E);e=l.Y_;l=l.Rs;e.subscribe("updateend",E.uL,E);l.subscribe("updateend",E.uL,E);E.uL(e);E.uL(l)}}; mF8=function(E){E.T.unsubscribe("internalvideodatachange",E.k6,E);E.G.unsubscribe("internalvideodatachange",E.k6,E);E.sz.Y().L("html5_gapless_use_format_info_fix")&&(E.T.unsubscribe("internalvideoformatchange",E.k6,E),E.G.unsubscribe("internalvideoformatchange",E.k6,E));E.T.unsubscribe("mediasourceattached",E.k6,E);E.G.unsubscribe("statechange",E.h7,E)}; NIX=function(E,e,l,k){E=E.isView()?E.mediaElement:E;return new g.KK(E,e,l,k)}; RV=function(E,e){e<=E.status.status||(E.status={status:e,error:null},e===5&&E.lI.resolve())}; Y4Z=function(E){return E.sz.Y().L("html5_gapless_no_clear_buffer_timeline")&&E.W===1&&f9(E.T.getVideoData())}; nK=function(E){var e=E.T.Ps();e=e.isView()?e.start:0;var l=E.T.getVideoData().isLivePlayback?Infinity:E.T.cn(!0);l=Math.min(E.C9/1E3,l)+e;var k=E.N?100:0;E=l-E.G.Zu()+k;return{bJ:e,AF:E,ag:l,qG:Infinity}}; gcS=function(E){return{Y_:E.Z.T.Ez,Rs:E.Z.G.Ez}}; s_=function(E){g.a.call(this);var e=this;this.app=E;this.J=this.G=this.T=null;this.N=!1;this.Z=this.S=null;this.W=hW7(this.app.Y());this.j=function(){g.Gy(function(){ncX(e)})}}; RW8=function(E,e,l,k,H){k=k===void 0?0:k;H=H===void 0?0:H;E.Tf()||tb(E);E.S=new xZ;E.T=e;var O=l,X=H===0;X=X===void 0?!0:X;var A=E.app.yd(),C=A.getVideoData().isLivePlayback?Infinity:A.cn(!0)*1E3;O>C&&(O=C-200,E.N=!0);X&&A.getCurrentTime()>=O/1E3?E.j():(E.G=A,X&&(X=O,O=E.G,E.app.eR.addEventListener(g.Zj("vqueued"),E.j),X=isFinite(X)||X/1E3>O.getDuration()?X:0x8000000000000,E.J=new g.Mr(X,0x8000000000000,{namespace:"vqueued"}),O.addCueRange(E.J)));X=k/=1E3;O=e.getVideoData().T;k&&O&&E.G&&(A=k,C=0, e.getVideoData().isLivePlayback&&(X=Math.min(l/1E3,E.G.cn(!0)),C=Math.max(0,X-E.G.getCurrentTime()),A=Math.min(k,e.cn()+C)),X=bXS(O,A)||k,X!==k&&E.T.wH("qvaln",{st:k,at:X,rm:C,ct:A}));e=X;k=E.T;k.getVideoData().w2=!0;k.getVideoData().j=!0;k.i6(!0);O={};E.G&&(O=E.G.iH(),X=E.G.getVideoData().clientPlaybackNonce,O={crt:(O*1E3).toFixed(),cpn:X});k.wH("queued",O);e!==0&&k.seekTo(e+.01,{W_:!0,f4:3,AN:"videoqueuer_queued"});E.Z=new Mxl(E.W,E.app.yd(),E.T,l,E.app,H);l=E.Z;l.status.status!==Infinity&&(RV(l, 1),l.T.subscribe("internalvideodatachange",l.k6,l),l.G.subscribe("internalvideodatachange",l.k6,l),l.sz.Y().L("html5_gapless_use_format_info_fix")&&(l.T.subscribe("internalvideoformatchange",l.k6,l),l.G.subscribe("internalvideoformatchange",l.k6,l)),l.T.subscribe("mediasourceattached",l.k6,l),l.G.subscribe("statechange",l.h7,l),l.T.subscribe("newelementrequired",l.E9,l),l.k6());return E.S}; ncX=function(E){var e,l,k,H,O,X,A;g.D(function(C){switch(C.G){case 1:if(E.U7()||!E.S||!E.T)return C.return();E.N&&E.app.yd().Wz(!0,!1);e=null;if(!E.Z){C.xt(2);break}g.U9(C,3);return g.S(C,ZH7(E.Z),5);case 5:g.jp(C,2);break;case 3:e=l=g.FW(C);case 2:if(!E.T)return C.return();sIy.k_("vqsp",function(){E.app.Gr(E.T)}); if(!E.T)return C.return();k=E.T.Ps();E.app.Y().L("html5_gapless_seek_on_negative_time")&&k&&k.getCurrentTime()<-.01&&E.T.seekTo(0);sIy.k_("vqpv",function(){E.app.playVideo()}); e&&(E.T?(H=e?e.message:"forced",(O=E.G)==null||O.wH("gapfulfbk",{r:H}),E.T.oC(H)):(X=E.G)==null||X.wH("gapsp",{}));A=E.S;tb(E);A&&A.resolve();return C.return(Promise.resolve())}})}; tb=function(E,e){e=e===void 0?!1:e;if(E.G){if(E.J){var l=E.G;E.app.eR.removeEventListener(g.Zj("vqueued"),E.j);l.removeCueRange(E.J)}E.G=null;E.J=null}E.Z&&(E.Z.status.status!==6&&(l=E.Z,l.status.status!==Infinity&&l.W!==1&&l.VL("Canceled")),E.Z=null);E.S=null;E.T&&!e&&E.T!==E.app.mM()&&E.T!==E.app.yd()&&E.T.dispose();E.T&&e&&E.T.Fu();E.T=null;E.N=!1}; txX=function(E){var e;return((e=E.Z)==null?void 0:e.currentVideoDuration)||-1}; q48=function(E,e,l){if(E.Tf())return"qie";if(E.T==null||E.T.U7()||E.T.getVideoData()==null)return"qpd";if(e.videoId!==E.T.jH())return"vinm";if(txX(E)<=0)return"ivd";if(l!==1)return"upt";if((l=E.Z)==null)E=void 0;else if(l.getStatus().status!==5)E="niss";else if(Pzl(l.policy,l.T,l.G,l.C9)!=null)E="pge";else{e=gcS(l);E=e.Y_;var k=e.Rs;e=g.tJ(l.sz.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var H=l.J+e;l.sz.Y().experiments.P5("html5_pseudogapless_shorts")&&(H=nK(l).AF+e);l=gB(k.HN(), H);E=gB(E.HN(),H);E=!(e>0)||l&&E?null:"neb"}return E!=null?E:null}; EEe=function(){g.sJ.call(this);var E=this;this.fullscreen=0;this.S=this.Z=this.pictureInPicture=this.T=this.G=this.inline=!1;this.W=function(){E.B7()}; OqX(this.W);this.J=this.getVisibilityState(this.FJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Dl(),this.Z7(),this.QW(),this.jY())}; AMX=function(E){return!(E.isMinimized()||E.isInline()||E.isBackground()||E.Dl()||E.Z7()||E.QW()||E.jY())}; g.qe=function(E){g.a.call(this);this.dH=E;this.videoData=this.playerState=null}; le=function(E,e){g.a.call(this);var l=this;this.data=[];this.Z=E||NaN;this.G=e||null;this.T=new g.Nx(function(){E5(l);ew(l)}); g.L(this,this.T)}; rR7=function(E){E5(E);return E.data.map(function(e){return e.value})}; E5=function(E){var e=(0,g.dE)();E.data.forEach(function(l){l.expire0));E.f7()&& Hbl();Error.stackTraceLimit=50;var H=g.tJ(e,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(O){return window.setTimeout(O,H)}}); kpW(E.W);hpl(l("html5_use_ump_request_slicer"));on8(l("html5_record_now"));l("html5_disable_streaming_xhr")&&(z8=!1);l("html5_byterate_constraints")&&(cm=!0);l("html5_use_non_active_broadcast_for_post_live")&&(Wl=!0);l("html5_enable_encrypted_av1")&&(fL=!0);t7l(g.tJ(E.experiments,"html5_sticky_duration_mos"))}; urX=function(E,e){return E.slice(e.length).replace(/_[a-z]/g,function(l){return l.toUpperCase().replace("_","")}).replace("Dot",".")}; Asp=function(E){var e={},l=Object.keys(E.experiments.flags);l=g.T(l);for(var k=l.next();!k.done;k=l.next())if(k=k.value,k.startsWith("cobalt_h5vcc"))if(k.startsWith("cobalt_h5vcc_string")){var H=urX(k,"cobalt_h5vcc_string");k=d_(E.experiments,k);H&&k&&(e[H]=lt7(H,k))}else k.startsWith("cobalt_h5vcc")&&(H=urX(k,"cobalt_h5vcc"),k=g.tJ(E.experiments,k),H&&k&&(e[H]=lt7(H,k)));return e}; pWy=function(E,e,l,k){k=k===void 0?0:k;g.kl.call(this,l.hn());var H=this;this.L5=E;this.videoData=e;this.duration=k;this.T=this.startTimeSecs=0;this.G=new CD8(function(O,X){return void H.wH(O,X)})}; CD8=function(E){this.wH=E;this.T={}}; x29=function(E,e,l){E.T[e]||(E.wH("huli-sdai-err",l),E.T[e]=!0)}; Qje=function(E){this.end=this.start=E}; g.ue=function(){this.T=new Map;this.Z=new Map;this.G=new Map}; W0v=function(){var E=this;this.T=[];this.Z=new Map;this.S=new Map;this.G=new Map;this.p5={GD:function(){return E.Z}, JL7:function(){return E.S}}}; oE7=function(E,e){g.KW(E.T,e,function(l,k){return l.w$===k.w$?l.durationMs-k.durationMs:l.w$-k.w$}); E.Z.set(e.cpn,e);e.f5&&E.S.set(e.f5,e);e.K_&&BXS(E,e.K_,e)}; wWX=function(E,e){e=g.M$(E.T,{nY:e},function(l,k){return l.nY-k.nY}); return e>=0?E.T[e]:null}; zC9=function(E,e){var l=E.T.indexOf(e);l>=0&&E.T.splice(l,1);E.Z.delete(e.cpn);e.f5&&E.S.delete(e.f5)}; BXS=function(E,e,l){var k=E.G.get(e);k?(k.push(l),g.m2(k,function(H,O){return H.w$-O.w$})):E.G.set(e,[l])}; g.AQ=function(E,e,l,k){g.a.call(this);var H=this;this.api=E;this.dH=e;this.playback=l;this.app=k;this.kt=new g.ue;this.G=new Map;this.T=new W0v;this.h0=new Map;this.Qd=null;this.Yt=NaN;this.gH=this.ND=null;this.b3=new g.Nx(function(){d2W(H,H.Yt,H.ND||void 0)}); this.events=new g.G_(this);this.J0=15E3;this.j=new g.Nx(function(){H.N=!0;H.playback.BW(H.J0);GlS(H);if(H.playback.getVideoData().Z0()){var O;H.p7({togab:(O=H.J)==null?void 0:O.identifier})}H.h9(!1)},this.J0); this.N=!1;this.W=new Map;this.fg=[];this.J=null;this.R4=new Set;this.V=[];this.rH=[];this.Wh=[];this.GX=[];this.xl=0;this.pg=!1;this.jE=new Set;this.C7=new Set;this.bY=new Set;this.jR=new Set;this.In=this.IW=0;this.k7=this.dC=!1;this.yQ=this.Z="";this.SR=null;this.logger=new g.da("dai");this.p5={AL4:function(){return H.G}, GD:function(){return H.T.p5.GD()}, JWD:function(){return H.Z}, TY0:function(O){H.onCueRangeEnter(H.G.get(O))}, x27:function(O){H.onCueRangeExit(H.G.get(O))}, Naz:function(O,X){H.G.set(O,X)}, zq7:function(O){H.yQ=O}, nh:function(){return H.nh()}, U2D:function(O){return H.T.G.get(O)}, U7n:function(){return H.SR}, fY6:function(){return H.T.T}}; this.playback.getPlayerType();this.playback.ZX(this);this.c5=this.dH.f7();g.L(this,this.b3);g.L(this,this.events);g.L(this,this.j);this.events.C(this.api,g.Zj("serverstitchedcuerange"),this.onCueRangeEnter);this.events.C(this.api,g.Yk("serverstitchedcuerange"),this.onCueRangeExit);Xk(this.app.lP(),this.playback,!1)}; JsX=function(E,e,l,k,H,O,X,A,C){if(E.dH.L("html5_ignore_ads_after_noadresponse")&&C&&E.R4.has(C))C5(E,{reason:"addafternoad",cueid:C});else{C=TXy(E,O,O+H);E.N&&E.p7({adaftto:1});l||E.p7({missadcon:1,enter:O,len:H,aid:A});E.S&&!E.S.jS&&(E.S.jS=A);E.k7&&E.p7({adfbk:1,enter:O,len:H,aid:A});var p=E.playback;O===X&&!H&&E.dH.L("html5_allow_zero_duration_ads_on_timeline")&&E.p7({attl0d:1});O>X&&C5(E,{reason:"enterTime_greater_than_return",w$:O,nY:X});var x=p.Hs()*1E3;Op&&C5(E,{reason:"parent_return_greater_than_content_duration",nY:X,lv7:p});(p=wWX(E.T,O))&&p.nY>O&&im8(E,e.video_id||"",O,X,p);if(C&&p)for(x=0;x=0)for(var H=e*1E3,O=k;O<=k+1&&O=X.w$-l*1E3&&H<=X.nY+l*1E3)return{p9:X,ES:e}}return{p9:void 0,ES:e}}; F0y=function(E,e){var l="";(e=jjX(E,e))&&(l=e.getId());return l?E.T.JN({cpn:l}):void 0}; jjX=function(E,e){if(E.yQ){var l=E.G.get(E.yQ);if(l&&l.start-200<=e&&l.end+200>=e)return l}E=g.T(E.G.values());for(l=E.next();!l.done;l=E.next())if(l=l.value,l.start<=e&&l.end>=e)return l}; d2W=function(E,e,l){var k=E.gH||E.app.yd().getPlayerState();QU(E,!0);E.playback.seekTo(e,l);E=E.app.yd();e=E.getPlayerState();k.isOrWillBePlaying()&&!e.isOrWillBePlaying()?E.playVideo():k.isPaused()&&!e.isPaused()&&E.pauseVideo()}; QU=function(E,e){E.Yt=NaN;E.ND=null;E.b3.stop();E.Qd&&e&&E.Qd.FW();E.gH=null;E.Qd=null}; D2e=function(E){var e=e===void 0?-1:e;var l=l===void 0?Infinity:l;for(var k=[],H=g.T(E.T.T),O=H.next();!O.done;O=H.next())O=O.value,(O.w$l)&&k.push(O);E.T.T=k;k=g.T(E.G.values());for(H=k.next();!H.done;H=k.next())H=H.value,H.start>=e&&H.end<=l&&(E.playback.removeCueRange(H),E.G.delete(H.getId()),E.p7({rmAdCR:1}));k=x8(E,e/1E3);e=k.p9;k=k.ES;e&&(k=k*1E3-e.w$,rs9(E,e,k,e.w$+k),k=E.G.get(e.cpn))&&(k.start=e.w$,k.end=e.w$+e.durationMs);if(e=x8(E,l/1E3).p9){var X;k="playback_timelinePlaybackId_"+ e.f5+"_video_id_"+((X=e.videoData)==null?void 0:X.videoId)+"_durationMs_"+e.durationMs+"_enterTimeMs_"+e.w$+"_parentReturnTimeMs_"+e.nY;E.lV("Invalid_clearEndTimeMs_"+l+"_that_falls_during_"+k+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; bmW=function(E){E.kt.clearAll();E.G.clear();E.T.clear();E.W.clear();E.fg=[];E.J=null;E.R4.clear();E.V=[];E.rH=[];E.Wh=[];E.GX=[];E.jE.clear();E.C7.clear();E.bY.clear();E.jR.clear();E.N=!1;E.xl=0;E.pg=!1;E.IW=0;E.In=0;E.dC=!1;E.k7=!1;E.Z="";eCp(E.app.lP());Xk(E.app.lP(),E.playback,!1);E.h0.clear();E.j.isActive()&&p5(E)}; rs9=function(E,e,l,k){e.durationMs=l;e.nY=k;(k=E.h0.get(e.cpn))?k.qO(l/1E3):E.p7({nop_d:e.cpn})}; arX=function(E,e,l,k,H,O){if(!E.k7)if(g.vEW(E,l))E.p7({gdu:"undec",seg:l,itag:H});else if(e=PDW(E,e,l,k,O),!(E.playback.getVideoData().Z0()&&(e==null?0:e.qF)))return e}; PDW=function(E,e,l,k,H){var O=E.W.get(l);if(!O){if(O=L07(E,e))return O;e=E.B0(l-1,k!=null?k:2);if(H)return E.p7({misscue:H,sq:l,type:k,prevsstate:e==null?void 0:e.t5,prevrecord:E.W.has(l-1)}),E.W.get(l-1);if((e==null?void 0:e.t5)===2)return E.p7({adnf:1,sq:l,type:k,prevrecord:E.W.has(l-1)}),E.W.get(l-1)}return O}; L07=function(E,e){e+=E.q5();if(E.playback.getVideoData().Z0())a:{var l=1;l=l===void 0?0:l;var k=e*1E3;E=g.T(E.T.T);for(var H=E.next();!H.done;H=E.next()){H=H.value;var O=H.bL?H.bL*1E3:H.w$;if(k>=H.w$-l*1E3&&k<=O+H.durationMs+l*1E3){k={p9:H,ES:e};break a}}k={p9:void 0,ES:e}}else k=x8(E,e),((l=k)==null?0:l.p9)||(k=x8(E,e,1));var X;return(X=k)==null?void 0:X.p9}; hCX=function(E,e){e=e===void 0?"":e;var l=fJ(e)||void 0;if(!e||!l){var k;E.p7({adcfg:(k=e)==null?void 0:k.length,dcfg:l==null?void 0:l.length})}return l}; Mgy=function(E){for(var e=g.T(E.G.values()),l=e.next();!l.done;l=e.next())E.playback.removeCueRange(l.value);E.G.clear();E.kt.clearAll()}; NXW=function(E,e,l,k,H,O,X){if(e&&l){E.yQ=l.cpn;E.ut(l.cpn,l.startTimeSecs||H);ysX(E,l);var A=cs8(E,"a2a",l);E.p7(A);E.IW++;E.playback.A3(e,l,k||0,H||0,!!O,!!X)}else E.p7({misspbkonadtrans:1,enter:(l==null?void 0:l.cpn)||"",exit:(e==null?void 0:e.cpn)||"",seek:O,skip:X})}; WB=function(E,e,l){if(l===void 0||!l){l=g.T(E.fg);for(var k=l.next();!k.done;k=l.next()){k=k.value;if(e>=k.start&&e<=k.end)return;if(e===k.end+1){k.end+=1;return}}E.fg.push(new Qje(e))}}; g.vEW=function(E,e){E=g.T(E.fg);for(var l=E.next();!l.done;l=E.next())if(l=l.value,e>=l.start&&e<=l.end)return!0;return!1}; ZmW=function(E,e,l){var k;if(k=E.playback.getVideoData().Z0()||E.dH.L("html5_ssdai_extent_last_unfinished_ad_cue_range"))k=(k=E.T.JN({cpn:e}))&&k.K_?(E=E.T.G.get(k==null?void 0:k.K_))&&E.slice(-1)[0].cpn===e:!1;return k&&l===2?1E3:0}; im8=function(E,e,l,k,H){var O;e={reason:"overlapping_playbacks",ipH:e,w$:l,nY:k,Xdt:H.f5,Fgz:((O=H.videoData)==null?void 0:O.videoId)||"",Gu5:H.durationMs,Ze7:H.w$,SE7:H.nY};C5(E,e)}; C5=function(E,e,l){E.playback.O5(e,l)}; YKX=function(E,e){var l=[];E=E.T.G.get(e);if(!E)return[];E=g.T(E);for(e=E.next();!e.done;e=E.next())e=e.value,e.cpn&&l.push(e.cpn);return l}; m2W=function(E,e,l){var k=0;E=E.T.G.get(l);if(!E)return-1;E=g.T(E);for(l=E.next();!l.done;l=E.next()){if(l.value.cpn===e)return k;k++}return-1}; gE9=function(E,e){var l=0;E=E.T.G.get(e);if(!E)return 0;E=g.T(E);for(e=E.next();!e.done;e=E.next())e=e.value,e.durationMs!==0&&e.nY!==e.w$&&l++;return l}; K08=function(E,e,l){var k=!1;if(l=E.T.G.get(l)){l=g.T(l);for(var H=l.next();!H.done;H=l.next())H=H.value,H.durationMs!==0&&H.nY!==H.w$&&(H=H.cpn,e===H&&(k=!0),k&&!E.C7.has(H)&&(E.p7({decoratedAd:H}),E.C7.add(H)))}}; GlS=function(E){E.c5&&E.p7({adf:"0_"+((new Date).getTime()/1E3-E.In)+"_isTimeout_"+E.N})}; TXy=function(E,e,l){if(E.V.length)for(var k=g.T(E.V),H=k.next(),O={};!H.done;O={Iy:void 0},H=k.next()){O.Iy=H.value;H=O.Iy.startSecs*1E3;var X=O.Iy.s1*1E3+H;if(e>H&&eH&&l0?E:0}else E.nh().videoData.je=E.playback.getCurrentTime()}; RCp=function(E){E.jR.add(E.Z);E.Z="";E.pg=!1}; lV9=function(E,e,l,k){g.a.call(this);var H=this;this.api=E;this.dH=e;this.T=l;this.app=k;this.W=new Map;this.G=[];this.Z=this.j=null;this.pg=NaN;this.J=this.S=this.V=null;this.N=new g.Nx(function(){egv(H,H.pg,H.V||void 0)}); this.kt=[];this.SR=new g.Nx(function(){var O=H.kt.pop();if(O){var X=O.f5,A=O.playerVars;O=O.playerType;A&&(A.prefer_gapless=!0,H.api.preloadVideoByPlayerVars(A,O,NaN,"",X),H.kt.length&&g.ZC(H.SR,4500))}}); this.events=new g.G_(this);this.p5={OeD:function(){return H.G}}; this.T.getPlayerType();g.L(this,this.N);g.L(this,this.SR);g.L(this,this.events);this.events.C(this.api,g.Zj("childplayback"),this.onCueRangeEnter);this.events.C(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.C(this.api,"presentingplayerstatechange",this.Fx)}; X7l=function(E,e,l,k,H,O){var X=e.cpn,A=e.docid||e.video_id||e.videoId||e.id,C=E.T;O=O===void 0?H+k:O;if(H>O)return os(E,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+O.toFixed(3),X,A),"";var p=C.Hs()*1E3;if(Hp)return C="returnAfterDuration parentReturnTimeMs="+O.toFixed(3)+" is greater than parentDurationMs="+p+". And timestampOffset in seconds is "+ C.eE(),os(E,C,X,A),"";p=null;for(var x=g.T(E.G),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;if(H>=Q.w$&&HQ.w$)return os(E,"overlappingReturn",X,A),"";if(O===Q.w$)return os(E,"outOfOrder",X,A),"";H===Q.nY&&(p=Q)}X="cs_childplayback_"+kmX++;A={qR:wU(k,!0),C9:Infinity,target:null};var W={f5:X,playerVars:e,playerType:l,durationMs:k,w$:H,nY:O,ra:A};E.G=E.G.concat(W).sort(function(U,c){return U.w$-c.w$}); p?Hu7(E,p,{qR:wU(p.durationMs,!0),C9:p.ra.C9,target:W}):(e={qR:wU(H,!1),C9:H,target:W},E.W.set(e.qR,e),C.addCueRange(e.qR));e=!0;if(E.T===E.app.yd()&&(C=C.getCurrentTime()*1E3,C>=W.w$&&Ce)break;if(O>e)return{p9:k,ES:e-H};l=O-k.nY/1E3}return{p9:null,ES:e-l}}; egv=function(E,e,l){l=l===void 0?{}:l;var k=E.J||E.app.yd().getPlayerState();G5(E,!0);e=isFinite(e)?e:E.T.sZ();var H=p70(E,e);e=H.ES;var O=(H=H.p9)&&!z5(E,H)||!H&&E.T!==E.app.yd(),X=e*1E3;X=E.Z&&E.Z.start<=X&&X<=E.Z.end;!O&&X||dU(E);H?Ou8(E,H,e,l,k):xBW(E,e,l,k)}; xBW=function(E,e,l,k){var H=E.T;H!==E.app.yd()&&E.app.fl();H.seekTo(e,Object.assign({},{AN:"application_timelinemanager"},l));Qdl(E,k)}; Ou8=function(E,e,l,k,H){var O=z5(E,e);if(!O){e.playerVars.prefer_gapless=!0;var X=new g.oR(E.dH,e.playerVars);X.f5=e.f5;E.api.P3(X,e.playerType)}X=E.app.yd();O||X.addCueRange(e.ra.qR);X.seekTo(l,Object.assign({},{AN:"application_timelinemanager"},k));Qdl(E,H)}; Qdl=function(E,e){E=E.app.yd();var l=E.getPlayerState();e.isOrWillBePlaying()&&!l.isOrWillBePlaying()?E.playVideo():e.isPaused()&&!l.isPaused()&&E.pauseVideo()}; G5=function(E,e){E.pg=NaN;E.V=null;E.N.stop();E.S&&e&&E.S.FW();E.J=null;E.S=null}; z5=function(E,e){E=E.app.yd();return!!E&&E.getVideoData().f5===e.f5}; WL8=function(E){var e=E.G.find(function(H){return z5(E,H)}); if(e){var l=E.app.yd();dU(E);var k=new g.zU(8);e=CbS(E,e)/1E3;xBW(E,e,{},k);l.wH("forceParentTransition",{childPlayback:1});E.T.wH("forceParentTransition",{parentPlayback:1})}}; oMW=function(E,e,l){e=e===void 0?-1:e;l=l===void 0?Infinity:l;for(var k=e,H=l,O=g.T(E.W),X=O.next();!X.done;X=O.next()){var A=g.T(X.value);X=A.next().value;A=A.next().value;A.C9>=k&&A.target&&A.target.nY<=H&&(E.T.removeCueRange(X),E.W.delete(X))}k=e;H=l;O=[];X=g.T(E.G);for(A=X.next();!A.done;A=X.next())if(A=A.value,A.w$>=k&&A.nY<=H){var C=E;C.j===A&&dU(C);z5(C,A)&&C.app.fl()}else O.push(A);E.G=O;k=p70(E,e/1E3);e=k.p9;k=k.ES;e&&(k*=1E3,Bz7(E,e,k,e.nY===e.w$+e.durationMs?e.w$+k:e.nY));(e=p70(E,l/1E3).p9)&& os(E,"Invalid clearEndTimeMs="+l+" that falls during playback={timelinePlaybackId="+(e.f5+" video_id="+e.playerVars.video_id+" durationMs="+e.durationMs+" enterTimeMs="+e.w$+" parentReturnTimeMs="+e.nY+"}.Child playbacks can only have duration updated not their start."))}; Bz7=function(E,e,l,k){e.durationMs=l;e.nY=k;k={qR:wU(l,!0),C9:l,target:null};Hu7(E,e,k);z5(E,e)&&E.app.yd().getCurrentTime()*1E3>l&&(e=CbS(E,e)/1E3,l=E.app.yd().getPlayerState(),xBW(E,e,{},l))}; os=function(E,e,l,k){E.T.wH("timelineerror",{e:e,cpn:l?l:void 0,videoId:k?k:void 0})}; zg0=function(E){E&&E!=="web"&&w78.includes(E)}; T5=function(){g.a.call(this);this.T=new le(5,null);g.L(this,this.T);this.G=new le(15,null);g.L(this,this.G)}; m8S=function(E,e){return e?!!E.T.get(e):!1}; dBW=function(E,e){E.dataset.version=e}; iu7=function(E){g.Z.call(this,{X:"div",s7:["html5-video-player"],D:{tabindex:E.Y().disableOrganicUi?"":"-1",id:E.webPlayerContextConfig.rootElementId},K:[{X:"div",B:g.Gu.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var e=this;this.app=E;this.rV=this.X6(g.Gu.VIDEO_CONTAINER);this.Es=new g.ab(0,0,0,0);this.rC=null;this.U5=new g.ab(0,0,0,0);this.QT=this.aO=this.Oe=NaN;this.fu=this.s5=this.rW=this.ZP=!1;this.OX=NaN;this.Xi=!1;this.uM=null;this.kR=function(){e.element.focus({preventScroll:!0})}; this.rL=function(){e.app.eR.publish("playerUnderlayVisibilityChange","visible");e.rC.classList.remove(g.Gu.VIDEO_CONTAINER_TRANSITIONING);e.rC.removeEventListener(F_,e.rL);e.rC.removeEventListener("transitioncancel",e.rL)}; this.sG=this.DW=!1;var l=this.element.addEventListener,k=this.element.removeEventListener;this.addEventListener=function(O,X,A){l.apply(e.element,[O,X,A])}; this.removeEventListener=function(O,X,A){k.apply(e.element,[O,X,A])}; var H=E.Y();H.transparentBackground&&this.BR("ytp-transparent");H.controlsType==="0"&&this.BR("ytp-hide-controls");g.qx(this.element,"ytp-exp-bottom-control-flexbox");g.qx(this.element,"ytp-modern-caption");H.L("enable_new_paid_product_placement")&&!g.UV(H)&&g.qx(this.element,"ytp-exp-ppp-update");H.L("html5_enable_ssap")&&g.qx(this.element,"ytp-ssap");g.qx(this.element,"ytp-livebadge-color");if(H.L("delhi_modern_web_player"))switch(g.qx(this.element,"ytp-delhi-modern"),H.L("delhi_modern_web_player_icons")&& g.qx(this.element,"ytp-delhi-modern-icons"),d_(H.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.qx(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.qx(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.qx(this.element,"ytp-delhi-modern-with-exclusion")}dBW(this.element,GmX(E));this.g5=!1;this.dT=new g.YX(NaN,NaN);Tz8(this);this.C(E.eR,"onMutedAutoplayChange",this.onMutedAutoplayChange);E=g.tJ(H.experiments,"html5_android_mweb_resize_delay"); E>0&&(this.CP=new g.Nx(function(){return void e.resize()},E),g.L(this,this.CP))}; Tz8=function(E){function e(X){E.rC&&ie(E);$8(E)!==E.Xi&&E.resize();E.app.Y().L("web_enable_smart_zoom")&&E.zG&&(X.state.isPaused()?E.zG.pause():g.Xh(X,8)&&E.zG.playState==="paused"&&E.zG.play())} function l(X,A){E.o9(X,A)} function k(X){X.getVideoData()&&E.updateVideoData(X.getVideoData())} function H(){E.U5=new g.ab(0,0,0,0);E.Es=new g.ab(0,0,0,0)} var O=E.app.eR;O.addEventListener("initializingmode",H);O.addEventListener("videoplayerreset",k);O.addEventListener("videodatachange",l);O.addEventListener("presentingplayerstatechange",e);E.addOnDisposeCallback(function(){O.removeEventListener("initializingmode",H);O.removeEventListener("videoplayerreset",k);O.removeEventListener("videodatachange",l);O.removeEventListener("presentingplayerstatechange",e)})}; UB7=function(E){var e=E.app.yd();if(e=e?e.getVideoData():null){if(g.tG(e)||g.qt(e)||g.ET(e))return 16/9;if(c$(e)&&e.Z.T)return E=e.Z.videoInfos[0].video,$B7(E.width,E.height)}return(E=E.rC)?$B7(E.videoWidth,E.videoHeight):16/9}; Jh8=function(E,e,l,k){var H=l,O=$B7(e.width,e.height);E.ZP?H=lO?{width:e.width,height:e.width/H,aspectRatio:H}:HH?E.width=E.height*l:lC;if($8(E)){var p=UB7(E);var x=isNaN(p)||g.aa||Q6&&g.pA||C;PZ&&!g.aE(601)?p=H.aspectRatio:x=x||O.controlsType==="3";x?C?(x=O.L("place_shrunken_video_on_left_of_player")?16:E.getPlayerSize().width-e.width-16,p=Math.max((E.getPlayerSize().height-e.height)/2,0),x=new g.ab(x,p,e.width, e.height),E.rC.style.setProperty("border-radius","12px")):x=new g.ab(0,0,e.width,e.height):(l=H.aspectRatio/p,x=new g.ab((e.width-H.width/l)/2,(e.height-H.height)/2,H.width/l,H.height),l===1&&g.pA&&(p=x.width-e.height*p,p>0&&(x.width+=p,x.height+=p)));g.k_(E.element,"ytp-fit-cover-video",Math.max(x.width-H.width,x.height-H.height)<1);if(A||E.g5)E.rC.style.display="";E.Xi=!0}else{x=-e.height;PZ?x*=window.devicePixelRatio:g.J5&&(x-=window.screen.height);x=new g.ab(0,x,e.width,e.height);if(A||E.g5)E.rC.style.display= "none";E.Xi=!1}Ll(E.U5,x)||(E.U5=x,g.XG(O)?(E.rC.style.setProperty("width",x.width+"px","important"),E.rC.style.setProperty("height",x.height+"px","important")):g.tV(E.rC,x.getSize()),k=new g.Nd(x.left,x.top),g.Kl(E.rC,Math.round(k.x),Math.round(k.y)),k=!0);e=new g.ab((e.width-H.width)/2,(e.height-H.height)/2,H.width,H.height);Ll(E.Es,e)||(E.Es=e,k=!0);g.MV(E.rC,"transform",l===1?"":"scaleX("+l+")");X&&C!==E.s5&&(C&&(E.rC.addEventListener(F_,E.rL),E.rC.addEventListener("transitioncancel",E.rL),E.rC.classList.add(g.Gu.VIDEO_CONTAINER_TRANSITIONING)), E.s5=C,E.app.eR.publish("playerUnderlayVisibilityChange",E.s5?"transitioning":"hidden"));return k}; jdX=function(E){E.DW=!E.DW;E.sG=!0;E.element.classList.toggle("ytp-retro-player",E.DW);E.resize();E.sG=!1;E.app.eR.MD("onRetroModeChanged",E.DW)}; IV9=function(){this.csn=g.BQ();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.T=new Set;this.G=new Set}; FLp=function(E){if(E.csn!==g.BQ())if(E.csn==="UNDEFINED_CSN")E.csn=g.BQ();else{var e=g.BQ(),l=g.WQ();if(e&&l){E.csn=e;for(var k=g.T(E.elements),H=k.next();!H.done;H=k.next())(H=H.value.visualElement)&&H.isClientVe()&&e&&l&&(g.QT("combine_ve_grafts")?gn(Y2(),H,l):g.ZP(g.bo)(void 0,e,l,H))}if(e)for(E=g.T(E.T),l=E.next();!l.done;l=E.next())(l=l.value.visualElement)&&l.isClientVe()&&g.Z_(e,l)}}; g.U5=function(E,e,l,k){g.a.call(this);var H=this;this.logger=new g.da("App");this.b$=this.QS=!1;this.WW={};this.Xv=[];this.oK=!1;this.DZ=null;this.intentionalPlayback=!1;this.b2=!0;this.rK=!1;this.GC=this.RK=this.u4=null;this.nC=!0;this.mediaElement=this.hg=null;this.gt=NaN;this.IR=!1;this.LY=this.rg=this.MQ=this.screenLayer=this.playlist=null;this.tj=[];this.WM=0;this.p5={lP:function(){return H.Fa}, lN3:function(){return H.MQ}}; this.logger.debug("constructor begin");if(!l)throw Error("b/179532961");this.j8=(e==null?void 0:e.args)||{};this.webPlayerContextConfig=l;Ai8();e=this.j8;this.dH=new Wk(e,l,l.canaryState,k,this);g.L(this,this.dH);XWX(this.dH);l=Asp(this.dH);this.dH.f7()&&this.T5("h5vcc",l);this.dH.experiments.P5("jspb_serialize_with_worker")&&NSy();this.dH.experiments.P5("gzip_gel_with_worker")&&DCW();this.dH.G&&!fVy&&(window.addEventListener(KJ?"touchstart":"click",vcl,{capture:!0,passive:!0}),fVy=!0);this.L("html5_onesie")&& (this.JT=new P0(this.dH),g.L(this,this.JT));this.PL=nE(eC(this.dH)&&!0,e.enablesizebutton);this.ZI=nE(!1,e.player_wide);this.visibility=new EEe;g.L(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.Ly(nE(!1,e.player_wide));this.QS=nE(!1,e.external_list);this.events=new g.G_(this);g.L(this,this.events);this.L("start_client_gcf")&&(dg($T(),{py:q1,Nk:HDW()}),this.Ub=$T().resolve(q1),uyW(this.Ub));this.rf3=new IF;g.L(this,this.rf3);this.i8=new IV9;l=new FD;this.eR=new g.NX(this,l); g.L(this,this.eR);this.template=new iu7(this);g.L(this,this.template);this.appState=1;this.Ov=V97(this);g.L(this,l);l={};this.IS=(l.internalvideodatachange=this.DI,l.playbackready=this.j45,l.playbackstarted=this.eMH,l.statechange=this.q7z,l);this.Ld=new Uv(this.eR);this.gO=SFv(this);l=this.dH.J;!1!==l&&this.T5("badps",{hbp:l,hostname:window.location.hostname,ps:this.dH.playerStyle});this.xw=new i5W(this.dH,this.gO);this.eR.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||hAW(this.gO))&& rhy(this);l=10;g.QS(this.dH)&&(l=3);iY(this.dH)&&(l=g.tJ(this.dH.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Fa=new g.HB(this.eR,l);l=DBW(this);this.Fa.Il(l);buX(this);l={};this.PU=(l.airplayactivechange=this.abn,l.airplayavailabilitychange=this.b7D,l.beginseeking=this.RIM,l.sabrCaptionsDataLoaded=this.dMg,l.endseeking=this.ME7,l.internalAbandon=this.NCg,l.internalaudioformatchange=this.yg7,l.internalvideodatachange=this.ws0,l.internalvideoformatchange=this.G_H,l.liveviewshift=this.H7d, l.playbackstalledatstart=this.k_0,l.progresssync=this.VEt,l.onAbnormalityDetected=this.O7M,l.onSnackbarMessage=this.nNt,l.onLoadProgress=this.zID,l.SEEK_COMPLETE=this.Ixt,l.SEEK_TO=this.mM0,l.onVideoProgress=this.Z54,l.onLoadedMetadata=this.DNM,l.onAutoplayBlocked=this.CY0,l.onPlaybackPauseAtStart=this.KM7,l.playbackready=this.vwM,l.statechange=this.TM,l.newelementrequired=this.wU,l.heartbeatparams=this.PYR,l.videoelementevent=this.T$z,l.drmoutputrestricted=this.gwR,l.signatureexpired=this.psH,l.nonfatalerror= this.YKd,l.reloadplayer=this.Ewz,l);this.zI=new g.G_(this);g.L(this,this.zI);this.DT=new T5;g.L(this,this.DT);this.QH=this.Od=-1;this.D8=new g.Nx(this.template.resize,16,this.template);g.L(this,this.D8);this.L5=new lV9(this.eR,this.dH,this.mM(),this);this.ZG=new s_(this);g.L(this,this.ZG);this.zt=new gF(this);g.L(this,this.zt);zg0(this.dH.T.c);this.events.C(this.eR,g.Zj("appapi"),this.J04);this.events.C(this.eR,g.Yk("appapi"),this.Wn7);this.events.C(this.eR,g.Zj("appprogressboundary"),this.uaR);this.events.C(this.eR, g.Yk("applooprange"),this.r0);this.events.C(this.eR,"presentingplayerstatechange",this.Fx);this.events.C(this.eR,"resize",this.qz6);this.template.u3(Ed(document,E));this.events.C(this.eR,"offlineslatestatechange",this.LM7);this.events.C(this.eR,"sabrCaptionsTrackChanged",this.PNR);this.events.C(this.eR,"sabrCaptionsBufferedRangesUpdated",this.MJD);this.gO.U.Y().w2&&vG(this.gO,"offline");this.dH.gH&&g.Iu("ux",g.Y6);E=g.tJ(this.dH.experiments,"html5_defer_fetch_att_ms");this.g4=new g.Nx(this.p7t,E, this);g.L(this,this.g4);this.mU().aG()&&(g.jt()&&this.mU().V.push("remote"),vMl(this));this.xw.tick("fs");Pbp(this);this.dH.gH&&vG(this.gO,"ux",!0);g.qA(this.gO.U.Y())&&vG(this.gO,"embed");this.L("web_player_sentinel_is_uniplayer")||g.UJ(new g.PK("Player experiment flags missing","web_player_sentinel_is_uniplayer"));E=this.L("web_player_sentinel_yt_experiments_sync");l=g.QT("web_player_sentinel_yt_experiments_sync");E!==l&&g.UJ(new g.PK("b/195699950",{yt:E,player:l}));this.gq=aVy(this);if(E=g.tJ(this.dH.experiments, "html5_block_pip_safari_delay"))this.LA=new g.Nx(this.kX,E,this),g.L(this,this.LA);cg=this.dH.bY;this.eR.publish("applicationInitialized");this.logger.debug("constructor end")}; aVy=function(E){function e(l){l.stack&&l.stack.indexOf("player")!==-1&&E.yd().Ct(l)} J8.subscribe("handleError",e);Mf.push(e);return function(){J8.unsubscribe("handleError",e);var l=Mf.indexOf(e);l!==-1&&Mf.splice(l,1)}}; DBW=function(E){var e=new g.oR(E.dH,E.j8);E.eR.publish("initialvideodatacreated",e);return JQ(E,1,e,!1)}; buX=function(E){var e=E.mM();e.setPlaybackRate(E.dH.S?1:LL0(E,Number(g.cK("yt-player-playback-rate"))||1));e.yJ(E.IS,E);e.jt()}; SFv=function(E){var e="",l=GmX(E);l.indexOf("//")===0&&(l=E.dH.protocol+":"+l);var k=l.lastIndexOf("/base.js");k!==-1&&(e=l.substring(0,k+1));if(l=Error().stack)if(l=l.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))l=l[1],l.includes(e)||g.UJ(Error("Player module URL mismatch: "+(l+" vs "+e+".")));e=new Pey(E.eR,e);l={};aIe(e,(l.destroyed=function(){E.onApiChange()},l)); return e}; V97=function(E){if(E.dH.storeUserVolume){E=g.cK("yt-player-volume")||{};var e=E.volume;E={volume:isNaN(e)?100:g.Lk(Math.floor(e),0,100),muted:!!E.muted}}else E={volume:100,muted:E.dH.mute};return E}; cB=function(E){E.mediaElement=E.dH.deviceIsAudioOnly?new g.q_(g.Qz("AUDIO")):me.pop()||new g.q_(g.Qz("VIDEO"));g.L(E,E.mediaElement);E.yd().setMediaElement(E.mediaElement);try{E.dH.qM?(E.rg&&E.events.xN(E.rg),E.rg=E.events.C(E.mediaElement,"volumechange",E.Ag4)):(E.mediaElement.Ay(E.Ov.muted),E.mediaElement.setVolume(E.Ov.volume/100))}catch(H){E.VL("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g, "_")));return}g.iG(E.zI);hgl(E);var e=E.template,l=E.mediaElement.Zb();e.rC=l;e.fu=!1;e.rC.parentNode||wT(e.rV,e.rC,0);e.U5=new g.ab(0,0,0,0);yh7(e);ie(e);l=e.rC;g.qx(l,"video-stream");g.qx(l,g.Gu.MAIN_VIDEO);var k=e.app.Y();k.yS&&l.setAttribute("data-no-fullscreen","true");k.L("html5_local_playsinline")?"playsInline"in WR()&&(l.playsInline=!0):k.HJ&&(l.setAttribute("webkit-playsinline",""),l.setAttribute("playsinline",""));k.fp&&e.rC&&e.C(l,"click",l.play,l);try{E.mediaElement.activate()}catch(H){E.VL("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; Nz8=function(E){if(!M97(E)){var e=E.mM().Ps();e&&(e=e.VU(),e instanceof Promise&&e.catch(function(){})); yU(E,cf(E.getPlayerStateObject()))}}; hgl=function(E){var e=E.mediaElement;z_()?E.zI.C(e,"webkitpresentationmodechanged",E.H53):window.document.pictureInPictureEnabled&&(E.zI.C(e,"enterpictureinpicture",function(){E.Ll(!0)}),E.zI.C(e,"leavepictureinpicture",function(){E.Ll(!1)})); Mb&&(E.zI.C(e,"webkitbeginfullscreen",function(){E.a9(3)}),E.zI.C(e,"webkitendfullscreen",function(){E.a9(0)}))}; ZuS=function(E,e){var l=e.getPlayerType(),k=E.Fa.Z[l]||null;e!==E.mM()&&e!==k&&(k==null||k.dispose(),E.Fa.Z[l]=e)}; YFp=function(E,e){e=e===void 0?!0:e;E.logger.debug("start clear presenting player");var l;if(l=E.LY){l=E.LY;var k=E.mediaElement;l=!!k&&k===l.mediaElement}l&&(E.u1(),cB(E));l=E.yd();l.u1(!e);l.NB(E.PU,E);l.getPlayerType()!==1&&l.dispose();e=E.Fa;e.G=e.T;O5(e);E.logger.debug("finish clear presenting player")}; g.mB7=function(E,e,l,k){var H=E.xw;e===2&&(H=new i5W(E.dH));return new g.C6(E.dH,e,H,E.template,function(O,X,A){E.eR.publish(O,X,A)},function(){return E.eR.getVisibilityState()},E.visibility,E,l,k)}; JQ=function(E,e,l,k,H){E=g.mB7(E,e,l,H);E=new g.kl(E);k&&E.jt();return E}; jw=function(E,e){return E.rR(e)?E.mM():e}; Is=function(E,e){var l=E.yd();return e===E.mM()&&E.rR(e)&&E.rR(l)?l:e}; nM9=function(E){E.logger.debug("start application playback");if(E.mM().getPlayerState().isError())E.logger.debug("start application playback done, player in error state");else{var e=Fk(E);E.mU().isLoaded();e&&E.uI(6);gMX(E);RAl(E.gO)||KLe(E)}}; KLe=function(E){if(!Fk(E)){var e=au(E.gO);e&&!e.created&&LKp(E.gO)&&(E.logger.debug("reload ad module"),e.create())}}; gMX=function(E){E.logger.debug("start presenter playback");var e=E.getVideoData(),l=E.gO;RAl(l)||l.C8();!IU&&l.U.L("html5_allow_asmjs")&&lel(l);vG(l,"embed");vG(l,"kids");vG(l,"remote");vG(l,"miniplayer");vG(l,"offline");vG(l,"unplugged");vG(l,"ypc",!1,!0);l.U.L("html5_ypc_clickwrap_module_refactor")||vG(l,"ypc_clickwrap",!1,!0);vG(l,"yto",!1,!0);vG(l,"webgl",!1,!0);ssZ(l)||(vG(l,"captions",!0),vG(l,"endscreen"),l.SQ(),vG(l,"creatorendscreen",!0));l.j_();l.U.publish("modulesCreated");E.eR.publish("videoready", e)}; f5=function(E){E=E.mU();E.aG();return At(E)}; Pbp=function(E){E.logger.debug("start prepare initial playback");E.K8();var e=E.j8;cB(E);E.events.C(window,"resize",E.B$3);var l=E.mU();E.eR.c7("onVolumeChange",E.Ov);if(e&&cQW(e)){var k=zH(E.dH);k&&!E.QS&&(e.fetch=0);var H=g.qA(E.dH);H&&!E.QS&&(e.fetch=0);VU(E,e);g.qA(E.dH)&&E.xw.tick("ep_pr_s");if(!k||E.QS)if(H&&!E.QS)Rgp(E);else if(!l.aG())E.playlist.onReady(function(){Sw(E)})}E.Gr(E.mM(),!1,!0); g.m(E.mM().getPlayerState(),128)||(e=VPp(!E.dH.deviceIsAudioOnly),e==="fmt.noneavailable"?E.VL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):e==="html5.missingapi"?E.VL(e,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):l&&l.aG()&&f5(E)&&(E.dH.wG||E.dH.mT)?rU(E):l.xm?E.eR.mutedAutoplay({durationMode:l.mutedAutoplayDurationMode}):g.cK("yt-player-playback-on-reload")?(g.E0("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!E.dH.SR}),g.Jw("yt-player-playback-on-reload",!1), rU(E)):yN(E.dH)||sd7(E),g.TH(E.dH)||w_(E.dH)==="MWEB"?(g.Nz(g.Yp(),function(){DI(E)}),g.Nz(g.Yp(),function(){fAS()})):(DI(E),fAS()),E.logger.debug("finish prepare initial playback"))}; DI=function(E){if(!E.L("use_rta_for_player"))if(E.L("fetch_att_independently"))g.ZC(E.g4);else{var e=E.getVideoData().botguardData;e&&g.e$(e,E.dH,E.getVideoData().YY||"")}}; sd7=function(E){E.logger.debug("start initialize to CUED mode");E.eR.publish("initializingmode");E.uI(2);vG(E.gO,"remote");vG(E.gO,"miniplayer");E.logger.debug("initialized to CUED mode")}; rU=function(E){E.logger.debug("start initialize application playback");var e=E.mM();if(g.m(e.getPlayerState(),128))return!1;e=e.getVideoData();f5(E)&&E.dH.mT&&(me.length&&E.b$?(be(E,{muted:!1,volume:E.Ov.volume},!1),vB(E,!1)):me.length||E.Ov.muted||(be(E,{muted:!0,volume:E.Ov.volume},!1),vB(E,!0)));f5(E)&&g.qA(E.dH)&&e.mutedAutoplay&&(be(E,{muted:!0,volume:E.Ov.volume},!1),vB(E,!0));e.uo&&be(E,{muted:!0,volume:E.Ov.volume},!1);t9W(E,1,e,!1);var l=E.mM();E.eR.publish("initializingmode");E.Gr(l);E.uI(3); var k;if(!(k=!E.dH.K9)){if(k=E.LY){k=E.LY;var H=E.mediaElement;k=!!H&&H===k.mediaElement}k=k&&E.oK}k&&(E.u1(),cB(E),l.setMediaElement(E.mediaElement));l.O3();if(g.m(l.getPlayerState(),128))return!1;e.zx||yU(E,3);return E.oK=!0}; Fk=function(E){E=m$(E.gO);return!!E&&E.loaded}; qFW=function(E,e){if(!E.hg)return!1;var l=E.hg.startTimeMs*.001-1,k=E.hg.endTimeMs*.001;E.hg.type==="repeatChapter"&&k--;return Math.abs(e-l)<=1E-6||Math.abs(e-k)<=1E-6||e>=l&&e<=k}; EBZ=function(E){var e=E.yd();yJ(e.getVideoData())&&!e.qx()&&(e=PB(E)*1E3-E.getVideoData().Ft,E.L("html5_gapless_new_slr")?(E=E.zt,as(E.app,"gaplessshortslooprange"),e=new g.Mr(0,e,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(E=E.app.yd())&&E.addCueRange(e)):E.setLoopRange({startTimeMs:0,endTimeMs:e,type:"shortsLoop"}))}; eiS=function(E){var e=E.mM();if(!(g.m(e.getPlayerState(),64)&&E.mU().isLivePlayback&&E.hg.startTimeMs<5E3)){if(E.hg.type==="repeatChapter"){var l,k=(l=U0e(E.SE()))==null?void 0:l.uP(),H;l=(H=E.getVideoData())==null?void 0:H.mT;k instanceof g.k1&&l&&(H=l[GI(l,E.hg.startTimeMs)],k.renderChapterSeekingAnimation(0,H.title));isNaN(Number(E.hg.loopCount))?E.hg.loopCount=0:E.hg.loopCount++;E.hg.loopCount===1&&E.eR.MD("innertubeCommand",E.getVideoData().dKz)}k={AN:"application_loopRangeStart"};if(E.hg.type=== "clips"||E.hg.type==="shortsLoop")k.seekSource=58;e.seekTo(E.hg.startTimeMs*.001,k)}}; LL0=function(E,e){var l=E.eR.getAvailablePlaybackRates();e=Number(e.toFixed(2));E=l[0];l=l[l.length-1];e<=E?e=E:e>=l?e=l:(E=Math.floor(e*100+.001)%5,e=E===0?e:Math.floor((e-E*.01)*100+.001)/100);return e}; PB=function(E,e){e=E.JN({playerType:e});if(!e)return E.Fa.T.cn();e=jw(E,e);return L5(E,e.cn(),e)}; L5=function(E,e,l){if(E.rR(l)&&(l=l.getVideoData(),!hQ(E))){E=E.L5;for(var k=g.T(E.G),H=k.next();!H.done;H=k.next())if(H=H.value,l.f5===H.f5){e+=H.w$/1E3;break}k=e;E=g.T(E.G);for(H=E.next();!H.done;H=E.next()){H=H.value;if(l.f5===H.f5)break;var O=H.w$/1E3;if(O1&&(H=!1);if(!E.IR||H!==e){l=l.lock(H?"portrait":"landscape");if(l!=null)l["catch"](function(){}); E.IR=!0}}else E.IR&&(E.IR=!1,l.unlock())}; mK=function(E,e,l){E.eR.publish(e,l);var k=g.QS(E.dH)||g.XG(E.dH)||g.Ik(E.dH);if(l&&k){switch(e){case "cuerangemarkersupdated":var H="onCueRangeMarkersUpdated";break;case "cuerangesadded":H="onCueRangesAdded";break;case "cuerangesremoved":H="onCueRangesRemoved"}H&&E.eR.MD(H,l.map(function(O){return{getId:function(){return this.id}, end:O.end,id:O.getId(),namespace:O.namespace==="ad"?"ad":"",start:O.start,style:O.style,visible:O.visible,markerPositionMs:O.markerPositionMs}}))}}; gU=function(E,e,l,k,H,O){l=l===void 0?!0:l;var X=E.JN({playerType:H});if(!X||(X.getPlayerType()!==2||E.rR(X))&&!g.RR(X.getVideoData())){var A=E.Fa.Xx;A?A.seekTo(e,{Ng:!l,Bm:k,AN:"application",seekSource:O}):(X&&X===E.mM()&&E.hg&&!qFW(E,e)&&E.setLoopRange(null),E.seekTo(e,l,k,H,O))}}; ziZ=function(E,e,l,k){l&&(E.u1(),cB(E));l=E.yd();l.ye(e);var H=E.getVideoData(),O={};O.video_id=H.videoId;O.adformat=H.adFormat;H.isLivePlayback||(O.start=l.getCurrentTime(),O.resume="1");H.isLivePlayback&&b7(H)&&g.pp(E.dH)&&(O.live_utc_start=l.pY(),O.resume="1");H.h0&&(O.vvt=H.h0);H.J&&(O.vss_credentials_token=H.J,O.vss_credentials_token_type=H.gJ);H.oauthToken&&(O.oauth_token=H.oauthToken);O.autoplay=1;O.reload_count=H.jE+1;O.reload_reason=e;H.Ze&&(O.unplugged_partner_opt_out=H.Ze);H.RF&&(O.ypc_is_premiere_trailer= H.RF);H.playerParams&&(O.player_params=H.playerParams);E.loadVideoByPlayerVars(O,void 0,!0,void 0,void 0,k);e==="signature"&&E.MQ&&KLe(E)}; daS=function(E,e){E.mU().autonavState=e;g.Jw("yt-player-autonavstate",e);E.eR.publish("autonavchange",e)}; GKS=function(E){var e=E.getVideoData().NT,l=E.dH.ND,k=E.isInline()&&!E.getVideoData().uB,H=E.mediaElement;e||l||k?H.rz():(H.pA(),be(E,E.Ov))}; MH=function(E){var e=au(E.SE());e&&e.created&&(E.logger.debug("reset ad module"),e.destroy())}; hQ=function(E){return E.getVideoData().enableServerStitchedDai&&!!E.MQ}; Ty9=function(E,e){e.bounds=E.getBoundingClientRect();for(var l=g.T(["display","opacity","visibility","zIndex"]),k=l.next();!k.done;k=l.next())k=k.value,e[k]=Yv(E,k);e.hidden=!!E.hidden}; GmX=function(E){var e=E.webPlayerContextConfig.trustedJsUrl;return e?wS(e).toString():E.webPlayerContextConfig.jsUrl}; iOv=function(E,e){var l=E.JN({playerType:1});if(l){if(l.getVideoData().clientPlaybackNonce===e)return l;if((E=E.ZG.T)&&E.getVideoData().clientPlaybackNonce===e)return E}return null}; rhy=function(E){function e(k){return F1(kk9(E.gO),function(H){return H.GU(k)})} E.xw.tick("wasm_s");var l=ihZ(E.webPlayerContextConfig.wasmModuleUrl,hAW(E.gO)?e:void 0,E.T5.bind(E));l==null||F1(l,function(k){E.xw.tick(k.T?"wasm_fa":"wasm_fw")},function(){E.xw.tick("wasm_ferr")}); tB8(E.dH,l)}; $a8=function(E){return E.name==="TypeError"&&E.stack.includes("/s/player/")&&SQ()<=105}; UaW=function(E){return E.isTimeout?"NO_BID":"ERR_BID"}; J68=function(){var E=null;rZW().then(function(e){return E=e},function(e){return E=UaW(e)}); return E}; c6e=function(){var E=DQ(1E3,"NO_BID");return g.fU(KIv([rZW(),E]).Md(UaW),function(){E.cancel()})}; K5=function(E){return E.Fy?g.St(g.VC(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; n5=function(E){this.player=E;this.Z=this.T=1}; IH7=function(E,e,l,k,H,O){e.client||(e.client={});E.player.Y().L("h5_remove_url_for_get_ad_break")||(e.client.originalUrl=l);var X=qf(l),A=g.uy(l)?!1:!0;(X||A)&&typeof Intl!=="undefined"&&(e.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);A=g.uy(l)?!1:!0;if(X||A||k!==""){var C={};l=gS(Hg(k)).split("&");var p=new Map;l.forEach(function(x){x=x.split("=");x.length>1&&p.set(x[0].toString(),decodeURIComponent(x[1].toString()))}); p.has("bid")&&(C.bid=p.get("bid"));C.params=[];y6e.forEach(function(x){p.has(x)&&(x={key:x,value:p.get(x)},C.params.push(x))}); jTl(E,C);e.adSignalsInfo=C}e.client.unpluggedAppInfo||(e.client.unpluggedAppInfo={});e.client.unpluggedAppInfo.enableFilterMode=!1;l=H.T.cosver;l!=null&&l!=="cosver"&&(e.client.osVersion=l);l=H.T.cplatform;l!=null&&l!=="cplatform"&&l!==""&&(e.client.platform=l);l=H.T.cmodel;l!=null&&l!=="cmodel"&&(e.client.deviceModel=l);l=H.T.cplayer;l!=null&&l!=="cplayer"&&(e.client.playerType=l);l=H.T.cbrand;l!=null&&l!=="cbrand"&&(e.client.deviceMake=l);e.user||(e.user={});e.user.lockedSafetyMode=!1;(H.L("embeds_web_enable_iframe_api_send_full_embed_url")|| H.L("embeds_enable_autoplay_and_visibility_signals"))&&g.OV(H)&&Cj0(e,O,E.player.getPlayerState(1))}; VUl=function(E,e){var l=!1;if(e==="")return l;e.split(",").forEach(function(k){var H={},O={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},X="ACTIVE";k[0]==="!"&&(k=k.substring(1),X="INACTIVE");k=k.split("-");k.length<3||(k[0]in Fml&&(O.clientName=Fml[k[0]]),k[1]in fH7&&(O.platform=fH7[k[1]]),O.applicationState=X,O.clientVersion=k.length>2?k[2]:"",H.remoteClient=O,E.remoteContexts?E.remoteContexts.push(H):E.remoteContexts=[H],l=!0)}); return l}; r69=function(E){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in S8W))return!1;E=E.split(RegExp("[:&]"));var e=S8W.FLAG_AUTO_CAPTIONS_DEFAULT_ON,l="f"+(1+Math.floor(e/31)).toString();e=1<=2?X[1]:"";var A=bOZ.test(e),C=vB0.exec(e);C=C!=null&&C.length>=2?C[1]:"";var p=PhX.exec(e);p=p!=null&&p.length>=2&&!Number.isNaN(Number(p[1]))?Number(p[1]):1;var x=aHp.exec(e);x=x!=null&&x.length>=2?x[1]:"0";var Q=pT(E.player.Y().Uv),W=E.player.getVideoData(1),B=g.N9(W.c5,!0),w="BISCOTTI_ID"in l?l.BISCOTTI_ID:"";IH7(E,B,e,w.toString(),E.player.Y(), W);W={splay:!1,lactMilliseconds:l.LACT.toString(),playerHeightPixels:Math.trunc(l.P_H),playerWidthPixels:Math.trunc(l.P_W),vis:Math.trunc(l.VIS),signatureTimestamp:20293,autonavState:K5(E.player.Y())};k&&(k={},VUl(k,l.YT_REMOTE)&&(W.mdxContext=k));if(k=Lmy.includes(Q)?void 0:g.IL("PREF")){for(var U=k.split(RegExp("[:&]")),c=0,V=U.length;c1&&F[1].toUpperCase()==="TRUE"){B.user.lockedSafetyMode=!0;break}}W.autoCaptionsDefaultOn= r69(k)}e=hi8.exec(e);(e=e!=null&&e.length>=2?e[1]:"")&&C&&(B.user.credentialTransferTokens=[{token:e,scope:"VIDEO"}]);e={contentPlaybackContext:W};X={adBlock:Math.trunc(l.AD_BLOCK),params:X,breakIndex:p,breakPositionMs:x,clientPlaybackNonce:l.CPN,topLevelDomain:Q,isProxyAdTagRequest:A,context:B,adSignalsInfoString:gS(Hg(w.toString())),overridePlaybackContext:e};H!==void 0&&(X.cueProcessedMs=Math.round(H).toString());C&&(X.videoId=C);l.LIVE_TARGETING_CONTEXT&&(X.liveTargetingParams=l.LIVE_TARGETING_CONTEXT); l.AD_BREAK_LENGTH&&(X.breakLengthMs=Math.trunc(l.AD_BREAK_LENGTH*1E3).toString());O&&(X.driftFromHeadMs=O.toString());X.currentMediaTimeMs=Math.round(E.player.getCurrentTime(1)*1E3);(E=E.player.getGetAdBreakContext())&&(X.getAdBreakContext=E);return X}; Nyv=function(){n5.apply(this,arguments)}; ZOv=function(E,e,l,k,H){var O=l.dc;var X=l.qR;var A=E.player.Y().OZ,C=0;l.cueProcessedMs&&X&&!O&&(l=X.end-X.start,l>0&&(C=Math.floor(l/1E3)));var p={AD_BLOCK:H,AD_BREAK_LENGTH:O?O.s1:C,AUTONAV_STATE:K5(E.player.Y()),CA_TYPE:"image",CPN:E.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:E.player.hO()*1E3,LACT:BA(),LIVE_INDEX:O?E.Z++:1,LIVE_TARGETING_CONTEXT:O&&O.context?O.context:"",MIDROLL_POS:X?Math.round(X.start/1E3):0,MIDROLL_POS_MS:X?Math.round(X.start):0,VIS:E.player.getVisibilityState(), P_H:E.player.zz().pI().height,P_W:E.player.zz().pI().width,YT_REMOTE:A?A.join(","):""},x=kq(lM);Object.keys(x).forEach(function(Q){x[Q]!=null&&(p[Q.toUpperCase()]=x[Q].toString())}); k!==""&&(p.BISCOTTI_ID=k);k={};eQ(e)&&(k.sts="20293",(E=E.player.Y().forcedExperiments)&&(k.forced_experiments=E));return td(g.Ug(e,p),k)}; Y80=function(E,e){var l=E.player.Y(),k,H=(k=E.player.getVideoData(1))==null?void 0:k.oauthToken;return g.FG(l,H).then(function(O){if(O&&EN()){var X=ey();l4(X,O)}return g.Vj(E.player.LI(X),e,"/youtubei/v1/player/ad_break").then(function(A){return A})})}; map=function(E){this.l3=E}; gB8=function(E){this.U=E}; Kmv=function(E){this.l3=E}; Rip=function(E){g.a.call(this);this.T=E;this.HT=nBZ(this)}; nBZ=function(E){var e=new VNe(E.T.C5);g.L(E,e);E=[new map(E.T.l3),new gB8(E.T.U),new Kmv(E.T.l3),new wK(E.T.UP,E.T.g_),new dK,new i5(E.T.H7,E.T.Fn,E.T.l3),new zO,new op];E=g.T(E);for(var l=E.next();!l.done;l=E.next())SxW(e,l.value);E=g.T(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(l=E.next();!l.done;l=E.next())GO(e,l.value,function(){}); return e}; Rs=function(E){var e=E.Lg,l=E.ZM;E=E.KY;var k=new Kfy,H={Nw:new FOS(e.get(),l),ZM:l};return{UK:new T4(l,E,e,H),context:H,bO:k}}; s5=function(E,e,l,k,H){g.a.call(this);this.G=e;this.o4=l;this.Lg=k;this.BN=H;this.listeners=[];var O=new GC(this);g.L(this,O);O.C(E,"internalAbandon",this.Xhn);this.addOnDisposeCallback(function(){g.iG(O)})}; tQ=function(E){this.U=E;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.G=this.Z=!1;this.adFormat=null;this.S="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; sT7=function(E){E.contentCpn=null;E.adCpn=null;E.videoId=null;E.adVideoId=null;E.adFormat=null;E.S="AD_PLACEMENT_KIND_UNKNOWN";E.actionType="unknown_type";E.Z=!1;E.G=!1}; tUW=function(E,e){E=g.T(e);for(e=E.next();!e.done;e=E.next())if((e=e.value.renderer)&&(e.instreamVideoAdRenderer||e.linearAdSequenceRenderer||e.sandwichedLinearAdRenderer||e.instreamSurveyAdRenderer)){$Q("ad_i");g.UX({isMonetized:!0});break}}; q8Z=function(E){var e;(e=E.U.getVideoData(1))!=null&&e.kt&&(E.G=!1,e={},E.T&&E.videoId&&(e.cttAuthInfo={token:E.T,videoId:E.videoId}),Jl("video_to_ad",e))}; O2=function(E){E.G=!1;var e={};E.T&&E.videoId&&(e.cttAuthInfo={token:E.T,videoId:E.videoId});Jl("ad_to_video",e);EHW(E)}; EHW=function(E){if(E.Z)if(E.S==="AD_PLACEMENT_KIND_START"&&E.actionType==="video_to_ad")dL("video_to_ad");else{var e={adBreakType:b3(E.S),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:E.videoStreamType};E.actionType==="ad_to_video"?(E.contentCpn&&(e.targetCpn=E.contentCpn),E.videoId&&(e.targetVideoId=E.videoId)):(E.adCpn&&(e.targetCpn=E.adCpn),E.adVideoId&&(e.targetVideoId=E.adVideoId));E.adFormat&&(e.adType=E.adFormat);E.contentCpn&& (e.clientPlaybackNonce=E.contentCpn);E.videoId&&(e.videoId=E.videoId);E.adCpn&&(e.adClientPlaybackNonce=E.adCpn);E.adVideoId&&(e.adVideoId=E.adVideoId);g.UX(e,E.actionType);E.U.Y().experiments.P5("html5_ads_csi_qoes")&&(e=E.U.iH(E.actionType==="ad_to_video"?1:2),e=(0,g.dE)()-1E3*e,yj("qoes",e,E.actionType))}}; qH=function(E){g.a.call(this);this.U=E;this.T=new Map;this.G=new GC(this);g.L(this,this.G);this.G.C(this.U,g.Zj("ad"),this.onCueRangeEnter,this);this.G.C(this.U,g.Yk("ad"),this.onCueRangeExit,this)}; e_9=function(E,e,l,k,H,O,X){g.Mr.call(this,e,l,{id:E,namespace:"ad",priority:H,visible:k,associatedClipId:O,markerPositionMs:X})}; En=function(E){this.U=E}; l6Z=function(E,e){E.U.cueVideoByPlayerVars(e,2)}; es=function(E){this.U=E}; lR=function(E){this.U=E;g.tJ(this.U.Y().experiments,"tv_pacf_logging_sample_rate")}; k97=function(E){return rY(E,"html5_ssap_play_cached_preroll")}; up=function(E,e){e=e===void 0?!1:e;return E.U.Y().L("html5_ssap_force_ads_ctmp")?!0:(e||E.U.Y().f7())&&E.U.Y().L("html5_ssap_pacf_qoe_ctmp")}; km=function(E){var e;return(e=E.U.getVideoData(1)==null?void 0:!1)!=null?e:!1}; rY=function(E,e){return E.U.Y().L(e)}; HP7=function(E){return E.U.Y().L("substitute_ad_cpn_macro_in_ssdai")}; PH=function(E){var e,l,k;return((e=E.U.getVideoData(1).getPlayerResponse())==null?void 0:(l=e.playerConfig)==null?void 0:(k=l.daiConfig)==null?void 0:k.enableServerStitchedDai)||!1}; hRX=function(E){return E.U.Y().L("html5_enable_vod_slar_with_notify_pacf")}; OP0=function(E){return E.U.Y().L("html5_recognize_predict_start_cue_point")}; wM=function(E){return E.U.Y().experiments.P5("enable_desktop_player_underlay")}; X3l=function(E){return E.U.Y().experiments.P5("html5_load_empty_player_in_media_break_sub_lra")}; KX=function(E){return E.U.Y().experiments.P5("html5_load_ads_instead_of_cue")}; nX=function(E){return E.U.Y().experiments.P5("html5_preload_ads")}; uAS=function(E){return E.U.Y().experiments.P5("should_ignore_cuepoints_during_lifa_preroll")}; BS=function(E){return E.U.Y().experiments.P5("enable_ads_control_flow_deterministic_id_generation")}; Aye=function(E){return E.U.Y().experiments.P5("enable_desktop_discovery_video_abandon_pings")||g.d3(E.U.Y())}; Clv=function(E){return E.U.Y().experiments.P5("enable_progres_commands_lr_feeds")}; ag=function(E){return E.U.Y().experiments.P5("html5_cuepoint_identifier_logging")}; Kp7=function(E){E=E.U.getVideoData(1);return!!E&&E.L("html5_preload_first_vod_video_ad")&&!E.isDaiEnabled()&&!E.isLivePlayback}; p3y=function(E){return E.U.Y().experiments.P5("html5_ssdai_enable_media_end_cue_range")}; xDe=function(E){switch(E){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}}; Q3v=function(){g.sJ.call(this);var E=this;this.T={};this.addOnDisposeCallback(function(){for(var e=g.T(Object.keys(E.T)),l=e.next();!l.done;l=e.next())delete E.T[l.value]})}; Hh=function(){if(WG7===null){WG7=new Q3v;dP(Zy).G="b";var E=dP(Zy),e=vV(E)=="h"||vV(E)=="b",l=!(Eq(),!1);e&&l&&(E.W=!0,E.J=new WJl)}return WG7}; B97=function(E,e,l){E.T[e]=l}; oHe=function(E){switch(E){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}}; On=function(E,e,l){this.o4=E;this.U=e;this.ZM=l;this.G=new Set;this.T=new Map;Hh().subscribe("adactiveviewmeasurable",this.iE,this);Hh().subscribe("adfullyviewableaudiblehalfdurationimpression",this.hT,this);Hh().subscribe("adviewableimpression",this.Qq,this);Hh().subscribe("adaudioaudible",this.F1,this);Hh().subscribe("adaudiomeasurable",this.xI,this)}; uR=function(E,e,l){var k=l.qy,H=l.CZ,O=l.listener,X=l.RT;l=l.BV===void 0?!1:l.BV;if(E.T.has(e))kd("Unexpected registration of layout in LidarApi");else{if(X){if(E.G.has(X))return;E.G.add(X)}E.T.set(e,O);JT(Eq().Xa,"fmd",1);UU7(dP(Zy),k);var A=l?e:void 0;B97(Hh(),e,{Hv:function(){if(!H)return{};var C=E.U.getPresentingPlayerType(!0),p;return(p=E.U.getVideoData(C))!=null&&p.isAd()?{currentTime:E.o4.get().getCurrentTimeSec(C,!1,A),duration:H,isPlaying:XQ(E.o4.get(),C).isPlaying(),isVpaid:!1,isYouTube:!0, volume:E.o4.get().isMuted()?0:E.o4.get().getVolume()/100}:{}}})}}; AN=function(E,e){E.T.has(e)?(E.T.delete(e),delete Hh().T[e]):kd("Unexpected unregistration of layout in LidarApi")}; w3W=function(E,e){if(E.U.isLifaAdPlaying()){var l=E.U.uH(!0,!0);E.Yl(e,l.width*.5*1.1,l.height*.25*1.1,l.width*.5*.9,l.height*.5*.9)}}; G99=function(E,e,l){var k={};z_S(E,k,e,l);dD7(k);k.LACT=CM(function(){return BA().toString()}); k.VIS=CM(function(){return E.getVisibilityState().toString()}); k.SDKV="h.3.0";k.VOL=CM(function(){return E.isMuted()?"0":Math.round(E.getVolume()).toString()}); k.VED="";return k}; T99=function(E,e){var l={};if(e||!E||!E.kind)return l;if(E.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||E.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!E.adTimeOffset||!E.adTimeOffset.offsetStartMilliseconds)return g.$F(Error("malformed AdPlacementConfig")),l;l.MIDROLL_POS=CM(FZ(Math.round(SW(E.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else l.MIDROLL_POS=CM(FZ("0"));return l}; CM=function(E){return{toString:function(){return E()}}}; iPl=function(E,e,l){function k(A,C){(C=l[C])&&(O[A]=C)} function H(A,C){(C=l[C])&&(O[A]=X(C))} if(!l||g.QI(l))return E;var O=Object.assign({},E),X=e?encodeURIComponent:function(A){return A}; H("DV_VIEWABILITY","doubleVerifyViewability");H("IAS_VIEWABILITY","integralAdsViewability");H("MOAT_INIT","moatInit");H("MOAT_VIEWABILITY","moatViewability");k("GOOGLE_VIEWABILITY","googleViewability");k("VIEWABILITY","viewability");return O}; z_S=function(E,e,l,k){e.CPN=CM(function(){var H;(H=E.getVideoData(1))?H=H.clientPlaybackNonce:(g.UJ(Error("Video data is null.")),H=null);return H}); e.AD_MT=CM(function(){if(k!=null)var H=k;else{var O=l;E.Y().L("html5_ssap_use_cpn_to_get_time")||(O=void 0);if(E.Y().L("enable_h5_shorts_ad_fill_ad_mt_macro")||E.Y().L("enable_desktop_discovery_pings_ad_mt_macro")||g.d3(E.Y())){var X=E.getPresentingPlayerType(!0),A;H=((A=E.getVideoData(X))==null?0:A.isAd())?$Dv(E,X,O):0}else H=$Dv(E,2,O)}return UD0(H)}); e.MT=CM(function(){return UD0(E.getCurrentTime(1,!1))}); e.P_H=CM(function(){return E.zz().pI().height.toString()}); e.P_W=CM(function(){return E.zz().pI().width.toString()}); e.PV_H=CM(function(){return E.zz().getVideoContentRect().height.toString()}); e.PV_W=CM(function(){return E.zz().getVideoContentRect().width.toString()})}; UD0=function(E){return Math.round(Math.max(0,E*1E3)).toString()}; dD7=function(E){E.CONN=CM(FZ("0"));E.WT=CM(function(){return Date.now().toString()})}; $Dv=function(E,e,l){return l!==void 0?E.getCurrentTime(e,!1,l):E.getCurrentTime(e,!1)}; JyW=function(){}; cye=function(E,e,l,k,H){var O,X,A,C,p,x,Q,W,B,w,U,c,V;g.D(function(F){switch(F.G){case 1:O=!!e.scrubReferrer;X=g.Ug(e.baseUrl,iPl(l,O,k));A={};if(!e.headers){F.xt(2);break}C=E.S();if(!C.T){p=C.getValue();F.xt(3);break}return g.S(F,C.T,4);case 4:p=F.T;case 3:x=p;Q=g.T(e.headers);for(W=Q.next();!W.done;W=Q.next())switch(B=W.value,B.headerType){case "VISITOR_ID":g.LF("VISITOR_DATA")&&(A["X-Goog-Visitor-Id"]=g.LF("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.LF("EOM_VISITOR_DATA")&&(A["X-Goog-EOM-Visitor-Id"]= g.LF("EOM_VISITOR_DATA"));break;case "USER_AUTH":x&&(A.Authorization="Bearer "+x);break;case "PLUS_PAGE_ID":(w=E.W())&&(A["X-Goog-PageId"]=w);break;case "AUTH_USER":U=E.T();!x&&U&&(A["X-Goog-AuthUser"]=U);break;case "DATASYNC_ID":if(c=void 0,(c=E.Z())==null?0:c.P5("enable_datasync_id_header_in_web_vss_pings"))V=E.G(),qf(X)&&g.LF("LOGGED_IN")&&V&&(A["X-YouTube-DataSync-Id"]=V)}"X-Goog-EOM-Visitor-Id"in A&&"X-Goog-Visitor-Id"in A&&delete A["X-Goog-Visitor-Id"];case 2:g.jA(X,void 0,O,Object.keys(A).length!== 0?A:void 0,"",!0,H),g.$0(F)}})}; yyX=function(E,e,l,k,H){this.S=E;this.W=e;this.T=l;this.G=k;this.Z=H}; j38=function(E,e){this.T=E;this.ZM=e}; pM=function(E,e,l,k,H,O,X){var A=A===void 0?new yyX(function(){var C=E.Y(),p=E.getVideoData(1);return g.FG(C,p?g.Cb(p):"")},function(){return E.Y().pageId},function(){return E.Y().SR},function(){var C; return(C=E.Y().datasyncId)!=null?C:""},function(){return E.Y().experiments}):A; this.U=E;this.G=e;this.n7=l;this.Lg=k;this.UK=H;this.ZM=O;this.bO=X;this.S=A;this.uw=null;this.T=new Map;this.Z=new j38(A,this.ZM)}; FGX=function(E,e,l,k,H){var O=K4(E.G.get(),l);O?(l=W_(E,I6e(O),O,void 0,void 0,k),e.hasOwnProperty("baseUrl")?E.S.send(e,l):E.Z.send(e,l,{},H)):kd("Trying to ping from an unknown layout",void 0,void 0,{layoutId:l})}; a_X=function(E,e,l,k,H,O){k=k===void 0?[]:k;var X=K4(E.G.get(),e);if(X){var A=E.n7.get().gB(e,l),C=W_(E,I6e(X),X,H,O);k.forEach(function(p,x){p.baseUrl&&(E.Z.send(p.baseUrl,C,A,p.attributionSrcMode),p.serializedAdPingMetadata&&E.UK.Lh("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,X,new z0W(p,x),void 0,void 0,X.adLayoutLoggingData))})}else kd("Trying to track from an unknown layout.",void 0,void 0,{layoutId:e, trackingType:l})}; Xd=function(E,e){E.U.sendVideoStatsEngageEvent(e,void 0,2)}; WE=function(E,e){g.E0("adsClientStateChange",e)}; f6W=function(E,e){E.T.has(e.L3())?kd("Trying to register an existing AdErrorInfoSupplier."):E.T.set(e.L3(),e)}; Ve9=function(E,e){E.T.delete(e.L3())||kd("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; wZ=function(E,e,l){typeof l==="string"?E.U.getVideoData(1).wK(e,l):E.U.getVideoData(1).wH(e,l)}; I6e=function(E){var e=Yi(E.clientMetadata,"metadata_type_ad_placement_config");E=Yi(E.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:e,ih:E}}; W_=function(E,e,l,k,H,O){var X=l?Sjp(E):{},A=l?ryZ(E,l.layoutId):{},C=DDe(E),p,x=H!=null?H:(p=Ve(E.Lg.get(),2))==null?void 0:p.clientPlaybackNonce;H=void 0;if(l){var Q;if((Q=E.bO.T.get(l.layoutId))==null?0:Q.BV)H=l.layoutId}Q={};E=Object.assign({},G99(E.U,H,k),T99(e.adPlacementConfig,(l==null?void 0:l.renderingContent)!==void 0),A,X,C,(Q.FINAL=CM(function(){return"1"}),Q.AD_CPN=CM(function(){return x||""}),Q)); (l==null?void 0:l.renderingContent)!==void 0||(E.SLOT_POS=CM(function(){return(e.ih||0).toString()})); l={};O=Object.assign({},E,O);E=g.T(Object.values(bPl));for(k=E.next();!k.done;k=E.next())k=k.value,X=O[k],X!=null&&X.toString()!=null&&(l[k]=X.toString());return l}; Sjp=function(E){var e={},l,k=(l=E.uw)==null?void 0:l.wM/1E3;k!=null&&(e.SURVEY_ELAPSED_MS=CM(function(){return Math.round(k*1E3).toString()})); e.SURVEY_LOCAL_TIME_EPOCH_S=CM(function(){return Math.round(Date.now()/1E3).toString()}); return e}; ryZ=function(E,e){E=E.T.get(e);if(!E)return{};E=E.jn();if(!E)return{};e={};return e.YT_ERROR_CODE=E.Yn.toString(),e.ERRORCODE=E.aZ.toString(),e.ERROR_MSG=E.errorMessage,e}; DDe=function(E){var e={},l=E.U.getVideoData(1);e.ASR=CM(function(){var k;return(k=l==null?void 0:l.Ce)!=null?k:null}); e.EI=CM(function(){var k;return(k=l==null?void 0:l.eventId)!=null?k:null}); return e}; xm=function(E,e,l){g.a.call(this);this.U=E;this.JL=e;this.ZM=l;this.listeners=[];this.l4=null;this.Hw=new Map;e=new g.G_(this);g.L(this,e);e.C(E,"videodatachange",this.hf4);e.C(E,"serverstitchedvideochange",this.YzD);this.mj=Ve(this)}; Ve=function(E,e){var l=E.U.getVideoData(e);return l?E.Ho(l,e||E.U.getPresentingPlayerType(!0)):null}; vH7=function(E,e,l){var k=E.Ho(e,l);E.mj=k;E.listeners.forEach(function(H){H.zw(k)})}; Pl7=function(E){switch(E){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}}; QE=function(E,e,l){g.a.call(this);this.U=E;this.Lg=e;this.ZM=l;this.listeners=[];this.tD=[];this.T=function(){kd("Called 'doUnlockPreroll' before it's initialized.")}; e=new GC(this);l=new g.G_(this);g.L(this,l);g.L(this,e);e.C(E,"progresssync",this.szn);e.C(E,"presentingplayerstatechange",this.rgR);e.C(E,"fullscreentoggled",this.onFullscreenToggled);e.C(E,"onVolumeChange",this.onVolumeChange);e.C(E,"minimized",this.uO);e.C(E,"overlayvisibilitychange",this.e1);e.C(E,"shortsadswipe",this.Bn);e.C(E,"resize",this.NN);l.C(E,g.Zj("appad"),this.L_)}; Wh=function(E){km(E.ZM.get())||E.T()}; a69=function(E,e){E.tD=E.tD.filter(function(l){return l!==e})}; Bh=function(E,e,l){return E.getCurrentTimeSec(e,l)}; o8=function(E,e){var l;e=(l=E.Lg.get().Hw.get(e))!=null?l:null;if(e===null)return kd("Expected ad video start time on playback timeline"),0;E=E.U.getCurrentTime(2,!0);return E0){var O=e.end.toString();H.forEach(function(X){(X=X.config&&X.config.adPlacementConfig)&&X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&X.adTimeOffset&&X.adTimeOffset.offsetEndMilliseconds==="-1"&&X.adTimeOffset.offsetEndMilliseconds!==O&&(X.adTimeOffset.offsetEndMilliseconds=O)}); k.map(function(X){return g.M(X,ej)}).forEach(function(X){var A; (X=X==null?void 0:(A=X.slotEntryTrigger)==null?void 0:A.mediaTimeRangeTrigger)&&X.offsetEndMilliseconds==="-1"&&(X.offsetEndMilliseconds=O)})}return{OA:H, adSlots:k,gg:!1,ssdaiAdsConfig:E.ssdaiAdsConfig}}; Tk=function(E){g.a.call(this);this.U=E;this.listeners=[];this.T=new GC(this);g.L(this,this.T);this.T.C(this.U,"aduxclicked",this.onAdUxClicked);this.T.C(this.U,"aduxmouseover",this.zW);this.T.C(this.U,"aduxmouseout",this.HM);this.T.C(this.U,"muteadaccepted",this.lMR)}; ZPX=function(E,e,l){e=g.o7(e,function(k){return new gp9(k,l,k.id)}); E.U.MD("onAdUxUpdate",e)}; iR=function(E,e){E=g.T(E.listeners);for(var l=E.next();!l.done;l=E.next())e(l.value)}; $m=function(E,e){this.G=E;this.Z=e===void 0?!1:e;this.T={}}; Yje=function(E,e){var l=E.startSecs+E.s1;l=l<=0?null:l;if(l===null)return null;switch(E.event){case "start":case "continue":case "stop":break;case "predictStart":if(e)break;return null;default:return null}e=Math.max(E.startSecs,0);return{Ob:new wJ(e,l),Xe:new XB(e,l-e,E.context,E.identifier,E.event,E.T)}}; mDW=function(){this.T=[]}; bBX=function(E,e,l){var k=g.M$(E.T,e);if(k>=0)return e;e=-k-1;return e>=E.T.length||E.T[e]>l?null:E.T[e]}; Un=function(E,e,l){g.a.call(this);this.U=E;this.ZM=e;this.l3=l;this.listeners=[];this.S=!1;this.Pi=[];this.T=null;this.W=new $m(this,OP0(e.get()));this.Z=new mDW;this.G=null}; gHS=function(E,e){E.Pi.push(e);for(var l=!1,k=g.T(E.listeners),H=k.next();!H.done;H=k.next())l=H.value.lc(e)||l;E.S=l;ag(E.ZM.get())&&wZ(E.l3.get(),"onci","cpi."+e.identifier+";cpe."+e.event+";cps."+e.startSecs+";cbi."+l)}; nHX=function(E,e){WE(E.l3.get(),{cuepointTrigger:{event:KGS(e.event),cuepointId:e.identifier,totalCueDurationMs:e.s1*1E3,playheadTimeMs:e.T,cueStartTimeMs:e.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:E.U.getVideoData(1).clientPlaybackNonce}})}; KGS=function(E){switch(E){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 pk(E,"Unexpected cuepoint event")}}; JN=function(E){this.U=E}; ch=function(E){this.U=E}; R_y=function(E){switch(E){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:pk(E,"unknown transitionReason")}}; yE=function(){g.a.apply(this,arguments);this.yfg=new Map}; s3S=function(E){this.U=E}; tee=function(E,e,l,k,H){g.a.call(this);var O=this,X=yS(function(){return new WS(O.ZM)}); g.L(this,X);var A=yS(function(){return new oi(X,O.ZM)}); g.L(this,A);var C=yS(function(){return new mA}); g.L(this,C);var p=yS(function(){return new Zp(E)}); g.L(this,p);var x=yS(function(){return new wn(X,A,O.ZM)}); g.L(this,x);var Q=yS(function(){return new iA}); g.L(this,Q);this.VB=yS(function(){return new Tk(e)}); g.L(this,this.VB);this.QB=yS(function(){return new Iw(H)}); g.L(this,this.QB);this.SJ=yS(function(){return new tQ(e)}); g.L(this,this.SJ);this.n5=yS(function(){return new qH(e)}); g.L(this,this.n5);this.kN=yS(function(){return new En(e)}); g.L(this,this.kN);this.C5=yS(function(){return new es(e)}); g.L(this,this.C5);this.ZM=yS(function(){return new lR(e)}); g.L(this,this.ZM);var W=yS(function(){return new Gk(k)}); g.L(this,W);var B=yS(function(){return new qk(O.ZM)}); g.L(this,B);this.J2=yS(function(){return new JN(e)}); g.L(this,this.J2);this.Ci=yS(function(){return new VS}); g.L(this,this.Ci);this.Lg=yS(function(){return new xm(e,Q,O.ZM)}); g.L(this,this.Lg);var w=Rs({Lg:this.Lg,ZM:this.ZM,KY:B}),U=w.context,c=w.bO;this.UK=w.UK;this.BN=yS(function(){return new Un(e,O.ZM,O.l3)}); g.L(this,this.BN);this.m6=yS(function(){return new ch(e)}); g.L(this,this.m6);this.o4=yS(function(){return new QE(e,O.Lg,O.ZM)}); g.L(this,this.o4);this.dG=yS(function(){return new yE}); g.L(this,this.dG);w=yS(function(){return new rM(X,x,A,O.ZM,B,"SLOT_TYPE_ABOVE_FEED",O.o4,O.er,O.tS)}); g.L(this,w);this.a7=yS(function(){return new S7(O.ZM)}); this.n7=yS(function(){return new On(O.o4,e,O.ZM)}); g.L(this,this.n7);this.l3=yS(function(){return new pM(e,C,O.n7,O.Lg,O.UK,O.ZM,c)}); g.L(this,this.l3);this.e7=new MI(hW,js,function(F,r,P,N){return og(A.get(),F,r,P,N)},p,x,A,B,this.ZM,this.Lg); g.L(this,this.e7);this.Se=new NI(p,w,l,this.ZM,E,this.Lg,this.o4,this.SJ);g.L(this,this.Se);var V=new s5(e,this.Se,this.o4,this.Lg,this.BN);this.QL=yS(function(){return V}); this.uE=V;this.er=new vH(p,x,this.QL,this.BN,this.o4,this.ZM,this.l3,this.m6);g.L(this,this.er);this.Oc=new Yo(p,x,this.n5,this.QL,U);g.L(this,this.Oc);this.xU=new Ei(this.ZM,p,x,w,this.Lg,this.Oc,l,this.kN);g.L(this,this.xU);this.rM=yS(function(){return new sG(W,A,B,O.ZM,O.l3,O.o4,O.m6)}); g.L(this,this.rM);this.ma=yS(function(){return new tU}); g.L(this,this.ma);this.pw=new qI(E,this.VB,this.ZM);g.L(this,this.pw);this.Rn=new ED(E);g.L(this,this.Rn);this.vB=new eb(E);g.L(this,this.vB);this.jr=new k2(E,this.QL,U);g.L(this,this.jr);this.bk=new HS(E,this.n5,this.o4,this.Lg,U);g.L(this,this.bk);this.KX=new OD(E,this.Lg);g.L(this,this.KX);this.tS=new AR(E,this.BN,this.o4,this.l3,this.QL,this.er);g.L(this,this.tS);this.Gg=new X1(E);g.L(this,this.Gg);this.uq=new QY(E);g.L(this,this.uq);this.LM=new uA(E);g.L(this,this.LM);this.nB=new x2(E);g.L(this, this.nB);this.uq=new QY(E);g.L(this,this.uq);this.Vy=yS(function(){return new n4}); g.L(this,this.Vy);this.qT=yS(function(){return new Rg(O.o4)}); g.L(this,this.qT);this.Je=yS(function(){return new ONp(O.VB,O.l3,E,C,O.n7)}); g.L(this,this.Je);this.vn=yS(function(){return new bj(O.xU,p,X)}); g.L(this,this.vn);this.wy=yS(function(){return new av(O.ZM,O.l3,O.Gg,O.n7)}); g.L(this,this.wy);this.j7=yS(function(){return new JC(E,O.uq,O.Gg,O.Lg,O.m6,O.o4,O.dG,O.l3,Q,O.BN,O.n7,O.a7,O.kN,O.n5,O.SJ,O.C5,O.QB,O.J2,O.ZM,C,U,c)}); g.L(this,this.j7);this.Dj=yS(function(){return new GtW(O.o4,O.l3,O.QB,O.ZM,O.n7,O.Lg)}); g.L(this,this.Dj);this.Lx=yS(function(){return new XzW(O.VB,O.o4,O.l3,C,O.n7,O.vB,O.nB,O.QB,O.ZM,l)}); g.L(this,this.Lx);this.Mr=yS(function(){return new XT0(O.VB,O.l3,C)}); g.L(this,this.Mr);this.gA=new de(E,this.Ci,X);g.L(this,this.gA);this.JB={D7:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xU],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.er],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Se],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oc]]),dP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rM],["SLOT_TYPE_ABOVE_FEED",this.ma],["SLOT_TYPE_FORECASTING",this.ma], ["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma],["SLOT_TYPE_PLAYER_UNDERLAY",this.ma],["SLOT_TYPE_PLAYBACK_TRACKING",this.ma],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ma]]),R$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pw],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.pw],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Rn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Rn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Rn],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Rn],["TRIGGER_TYPE_CLOSE_REQUESTED",this.vB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jr],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.bk],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.bk],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.bk],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.bk],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KX],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gg],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.jr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.LM],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.nB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.tS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.tS],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.tS],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.tS],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.tS]]),Bz:new Map([["SLOT_TYPE_ABOVE_FEED",this.Vy], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Vy],["SLOT_TYPE_FORECASTING",this.Vy],["SLOT_TYPE_IN_PLAYER",this.Vy],["SLOT_TYPE_PLAYER_BYTES",this.qT],["SLOT_TYPE_PLAYER_UNDERLAY",this.Vy],["SLOT_TYPE_PLAYBACK_TRACKING",this.Vy],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Vy]]),gP:new Map([["SLOT_TYPE_ABOVE_FEED",this.Je],["SLOT_TYPE_AD_BREAK_REQUEST",this.vn],["SLOT_TYPE_FORECASTING",this.wy],["SLOT_TYPE_PLAYER_BYTES",this.j7],["SLOT_TYPE_PLAYBACK_TRACKING",this.Dj],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Dj],["SLOT_TYPE_IN_PLAYER",this.Lx],["SLOT_TYPE_PLAYER_UNDERLAY",this.Mr]])};this.listeners=[C.get()];this.Us={xU:this.xU,Fn:this.ZM.get(),a4:this.QB.get(),rp:this.o4.get(),Se:this.Se,JU:X.get(),Sg:this.Ci.get(),g_:this.pw,UP:C.get(),H7:this.Lg.get()}}; qjW=function(E,e,l,k,H){g.a.call(this);var O=this,X=yS(function(){return new WS(O.ZM)}); g.L(this,X);var A=yS(function(){return new oi(X,O.ZM)}); g.L(this,A);var C=yS(function(){return new mA}); g.L(this,C);var p=yS(function(){return new Zp(E)}); g.L(this,p);var x=yS(function(){return new wn(X,A,O.ZM)}); g.L(this,x);var Q=yS(function(){return new iA}); g.L(this,Q);this.VB=yS(function(){return new Tk(e)}); g.L(this,this.VB);this.QB=yS(function(){return new Iw(H)}); g.L(this,this.QB);this.SJ=yS(function(){return new tQ(e)}); g.L(this,this.SJ);this.n5=yS(function(){return new qH(e)}); g.L(this,this.n5);this.kN=yS(function(){return new En(e)}); g.L(this,this.kN);this.C5=yS(function(){return new es(e)}); g.L(this,this.C5);this.ZM=yS(function(){return new lR(e)}); g.L(this,this.ZM);var W=yS(function(){return new Gk(k)}); g.L(this,W);var B=yS(function(){return new qk(O.ZM)}); g.L(this,B);var w=yS(function(){return new rM(X,x,A,O.ZM,B,null,null,O.er,O.tS)}); g.L(this,w);this.J2=yS(function(){return new JN(e)}); g.L(this,this.J2);this.Ci=yS(function(){return new VS}); g.L(this,this.Ci);this.Lg=yS(function(){return new xm(e,Q,O.ZM)}); g.L(this,this.Lg);var U=Rs({Lg:this.Lg,ZM:this.ZM,KY:B}),c=U.context,V=U.bO;this.UK=U.UK;this.BN=yS(function(){return new Un(e,O.ZM,O.l3)}); this.o4=yS(function(){return new QE(e,O.Lg,O.ZM)}); g.L(this,this.o4);this.dG=yS(function(){return new yE}); g.L(this,this.dG);this.n7=yS(function(){return new On(O.o4,e,O.ZM)}); g.L(this,this.n7);this.l3=yS(function(){return new pM(e,C,O.n7,O.Lg,O.UK,O.ZM,V)}); g.L(this,this.l3);this.a7=yS(function(){return new S7(O.ZM)}); g.L(this,this.a7);this.e7=new MI(hW,js,function(r,P,N,R){return og(A.get(),r,P,N,R)},p,x,A,B,this.ZM,this.Lg); g.L(this,this.e7);this.Se=new NI(p,w,l,this.ZM,E,this.Lg,this.o4,this.SJ);g.L(this,this.Se);var F=new s5(e,this.Se,this.o4,this.Lg,this.BN);this.QL=yS(function(){return F}); this.uE=F;this.er=new vH(p,x,this.QL,this.BN,this.o4,this.ZM,this.l3);g.L(this,this.er);this.Oc=new Yo(p,x,this.n5,this.QL,c);g.L(this,this.Oc);this.xU=new Ei(this.ZM,p,x,w,this.Lg,this.Oc,l,this.kN);g.L(this,this.xU);this.rM=yS(function(){return new sG(W,A,B,O.ZM,O.l3,O.o4)}); g.L(this,this.rM);this.ma=yS(function(){return new tU}); g.L(this,this.ma);this.pw=new qI(E,this.VB,this.ZM);g.L(this,this.pw);this.Rn=new ED(E);g.L(this,this.Rn);this.vB=new eb(E);g.L(this,this.vB);this.jr=new k2(E,this.QL,c);g.L(this,this.jr);this.bk=new HS(E,this.n5,this.o4,this.Lg,c);g.L(this,this.bk);this.Gg=new X1(E);g.L(this,this.Gg);this.LM=new uA(E);g.L(this,this.LM);this.nB=new x2(E);g.L(this,this.nB);this.m6=yS(function(){return new ch(e)}); g.L(this,this.m6);this.uq=new QY(E);g.L(this,this.uq);this.tS=new AR(E,this.BN,this.o4,this.l3,this.QL,this.er);g.L(this,this.tS);this.Vy=yS(function(){return new n4}); g.L(this,this.Vy);this.qT=yS(function(){return new Rg(O.o4)}); g.L(this,this.qT);this.vn=yS(function(){return new bj(O.xU,p,X)}); g.L(this,this.vn);this.wy=yS(function(){return new av(O.ZM,O.l3,O.Gg,O.n7)}); g.L(this,this.wy);this.Lx=yS(function(){return new uX7(O.VB,O.o4,O.l3,C,O.n7,O.vB,O.nB,O.QB,O.ZM,l)}); g.L(this,this.Lx);this.j7=yS(function(){return new cE(E,O.uq,O.Gg,O.l3,O.n7,O.a7,O.kN,O.Lg,O.o4,O.dG,O.n5,O.SJ,O.C5,O.QB,O.J2,O.ZM,O.m6,c,V)}); g.L(this,this.j7);this.gA=new de(E,this.Ci,X);g.L(this,this.gA);this.JB={D7:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xU],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.er],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Se],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oc]]),dP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rM],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma], ["SLOT_TYPE_PLAYER_BYTES",this.ma]]),R$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pw],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Rn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Rn], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Rn],["TRIGGER_TYPE_CLOSE_REQUESTED",this.vB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bk],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gg],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.jr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.LM],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.nB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.tS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.tS],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.tS],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.tS],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.tS]]),Bz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vy],["SLOT_TYPE_FORECASTING",this.Vy],["SLOT_TYPE_IN_PLAYER",this.Vy],["SLOT_TYPE_PLAYER_BYTES",this.qT]]), gP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vn],["SLOT_TYPE_FORECASTING",this.wy],["SLOT_TYPE_IN_PLAYER",this.Lx],["SLOT_TYPE_PLAYER_BYTES",this.j7]])};this.listeners=[C.get()];this.Us={xU:this.xU,Fn:this.ZM.get(),a4:this.QB.get(),rp:this.o4.get(),Se:this.Se,JU:X.get(),Sg:this.Ci.get(),g_:this.pw,UP:C.get(),H7:this.Lg.get()}}; E0O=function(E,e,l,k,H){g.a.call(this);var O=this,X=yS(function(){return new WS(O.ZM)}); g.L(this,X);var A=yS(function(){return new oi(X,O.ZM)}); g.L(this,A);var C=yS(function(){return new mA}); g.L(this,C);var p=yS(function(){return new Zp(E)}); g.L(this,p);var x=yS(function(){return new wn(X,A,O.ZM)}); g.L(this,x);var Q=yS(function(){return new iA}); g.L(this,Q);this.VB=yS(function(){return new Tk(e)}); g.L(this,this.VB);this.QB=yS(function(){return new Iw(H)}); g.L(this,this.QB);this.SJ=yS(function(){return new tQ(e)}); g.L(this,this.SJ);this.n5=yS(function(){return new qH(e)}); g.L(this,this.n5);this.kN=yS(function(){return new En(e)}); g.L(this,this.kN);this.C5=yS(function(){return new es(e)}); g.L(this,this.C5);this.ZM=yS(function(){return new lR(e)}); g.L(this,this.ZM);var W=yS(function(){return new Gk(k)}); g.L(this,W);var B=yS(function(){return new qk(O.ZM)}); g.L(this,B);var w=yS(function(){return new rM(X,x,A,O.ZM,B,null,null,null,null)}); g.L(this,w);this.J2=yS(function(){return new JN(e)}); g.L(this,this.J2);this.Lg=yS(function(){return new xm(e,Q,O.ZM)}); g.L(this,this.Lg);var U=Rs({Lg:this.Lg,ZM:this.ZM,KY:B}),c=U.context,V=U.bO;this.UK=U.UK;this.o4=yS(function(){return new QE(e,O.Lg,O.ZM)}); g.L(this,this.o4);this.dG=yS(function(){return new yE}); g.L(this,this.dG);this.n7=yS(function(){return new On(O.o4,e,O.ZM)}); g.L(this,this.n7);this.l3=yS(function(){return new pM(e,C,O.n7,O.Lg,O.UK,O.ZM,V)}); g.L(this,this.l3);this.a7=yS(function(){return new S7(O.ZM)}); g.L(this,this.a7);this.e7=new MI(hW,js,function(r,P,N,R){return og(A.get(),r,P,N,R)},p,x,A,B,this.ZM,this.Lg); g.L(this,this.e7);this.Se=new NI(p,w,l,this.ZM,E,this.Lg,this.o4,this.SJ);g.L(this,this.Se);var F=new s5(e,this.Se,this.o4,this.Lg);this.QL=yS(function(){return F}); this.uE=F;this.Oc=new Yo(p,x,this.n5,this.QL,c);g.L(this,this.Oc);this.xU=new Ei(this.ZM,p,x,w,this.Lg,this.Oc,l,this.kN);g.L(this,this.xU);this.rM=yS(function(){return new sG(W,A,B,O.ZM,O.l3,O.o4)}); g.L(this,this.rM);this.ma=yS(function(){return new tU}); g.L(this,this.ma);this.pw=new qI(E,this.VB,this.ZM);g.L(this,this.pw);this.Rn=new ED(E);g.L(this,this.Rn);this.jr=new k2(E,this.QL,c);g.L(this,this.jr);this.bk=new HS(E,this.n5,this.o4,this.Lg,c);g.L(this,this.bk);this.Gg=new X1(E);g.L(this,this.Gg);this.LM=new uA(E);g.L(this,this.LM);this.m6=yS(function(){return new ch(e)}); g.L(this,this.m6);this.uq=new QY(E);g.L(this,this.uq);this.Vy=yS(function(){return new n4}); g.L(this,this.Vy);this.qT=yS(function(){return new Rg(O.o4)}); g.L(this,this.qT);this.vn=yS(function(){return new bj(O.xU,p,X)}); g.L(this,this.vn);this.wy=yS(function(){return new av(O.ZM,O.l3,O.Gg,O.n7)}); g.L(this,this.wy);this.qU=yS(function(){return new dZv(O.VB,O.o4,O.l3,C,l,O.ZM)}); g.L(this,this.qU);this.j7=yS(function(){return new cE(E,O.uq,O.Gg,O.l3,O.n7,O.a7,O.kN,O.Lg,O.o4,O.dG,O.n5,O.SJ,O.C5,O.QB,O.J2,O.ZM,O.m6,c,V)}); g.L(this,this.j7);this.JB={D7:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Se],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oc]]),dP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rM],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma]]),R$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pw],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Rn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Rn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Rn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gg],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.jr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.LM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uq]]),Bz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vy],["SLOT_TYPE_ABOVE_FEED",this.Vy],["SLOT_TYPE_FORECASTING",this.Vy],["SLOT_TYPE_IN_PLAYER",this.Vy],["SLOT_TYPE_PLAYER_BYTES",this.qT]]),gP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vn],["SLOT_TYPE_FORECASTING",this.wy],["SLOT_TYPE_IN_PLAYER", this.qU],["SLOT_TYPE_PLAYER_BYTES",this.j7]])};this.listeners=[C.get()];this.Us={xU:this.xU,Fn:this.ZM.get(),a4:this.QB.get(),rp:this.o4.get(),Se:this.Se,JU:X.get(),Sg:null,g_:this.pw,UP:C.get(),H7:this.Lg.get()}}; eyH=function(E,e,l,k,H){g.a.call(this);var O=this,X=yS(function(){return new WS(O.ZM)}); g.L(this,X);var A=yS(function(){return new oi(X,O.ZM)}); g.L(this,A);var C=yS(function(){return new mA}); g.L(this,C);var p=yS(function(){return new Zp(E)}); g.L(this,p);var x=yS(function(){return new wn(X,A,O.ZM)}); g.L(this,x);var Q=yS(function(){return new iA}); g.L(this,Q);this.Ew=yS(function(){return new s3S(e)}); g.L(this,this.Ew);this.VB=yS(function(){return new Tk(e)}); g.L(this,this.VB);this.QB=yS(function(){return new Iw(H)}); g.L(this,this.QB);this.SJ=yS(function(){return new tQ(e)}); g.L(this,this.SJ);this.n5=yS(function(){return new qH(e)}); g.L(this,this.n5);this.kN=yS(function(){return new En(e)}); g.L(this,this.kN);this.C5=yS(function(){return new es(e)}); g.L(this,this.C5);this.ZM=yS(function(){return new lR(e)}); g.L(this,this.ZM);var W=yS(function(){return new Gk(k)}); g.L(this,W);var B=yS(function(){return new qk(O.ZM)}); g.L(this,B);var w=yS(function(){return new rM(X,x,A,O.ZM,B,null,null,null,null)}); g.L(this,w);this.J2=yS(function(){return new JN(e)}); g.L(this,this.J2);this.Lg=yS(function(){return new xm(e,Q,O.ZM)}); g.L(this,this.Lg);var U=Rs({Lg:this.Lg,ZM:this.ZM,KY:B}),c=U.context,V=U.bO;this.UK=U.UK;this.o4=yS(function(){return new QE(e,O.Lg,O.ZM)}); g.L(this,this.o4);this.dG=yS(function(){return new yE}); g.L(this,this.dG);this.n7=yS(function(){return new On(O.o4,e,O.ZM)}); g.L(this,this.n7);this.l3=yS(function(){return new pM(e,C,O.n7,O.Lg,O.UK,O.ZM,V)}); g.L(this,this.l3);this.a7=yS(function(){return new S7(O.ZM)}); g.L(this,this.a7);this.e7=new MI(YWZ,js,function(r,P,N,R){return BQ9(A.get(),r,P,N,R)},p,x,A,B,this.ZM,this.Lg); g.L(this,this.e7);this.Se=new NI(p,w,l,this.ZM,E,this.Lg,this.o4,this.SJ);g.L(this,this.Se);var F=new s5(e,this.Se,this.o4,this.Lg);this.QL=yS(function(){return F}); this.uE=F;this.Oc=new Yo(p,x,this.n5,this.QL,c);g.L(this,this.Oc);this.xU=new Ei(this.ZM,p,x,w,this.Lg,this.Oc,l,this.kN);g.L(this,this.xU);this.rM=yS(function(){return new sG(W,A,B,O.ZM,O.l3,O.o4)}); g.L(this,this.rM);this.ma=yS(function(){return new tU}); g.L(this,this.ma);this.pw=new qI(E,this.VB,this.ZM);g.L(this,this.pw);this.Rn=new ED(E);g.L(this,this.Rn);this.jr=new k2(E,this.QL,c);g.L(this,this.jr);this.bk=new HS(E,this.n5,this.o4,this.Lg,c);g.L(this,this.bk);this.Gg=new X1(E);g.L(this,this.Gg);this.LM=new uA(E);g.L(this,this.LM);this.m6=yS(function(){return new ch(e)}); g.L(this,this.m6);this.uq=new QY(E);g.L(this,this.uq);this.Vy=yS(function(){return new n4}); g.L(this,this.Vy);this.qT=yS(function(){return new Rg(O.o4)}); g.L(this,this.qT);this.vn=yS(function(){return new bj(O.xU,p,X)}); g.L(this,this.vn);this.wy=yS(function(){return new av(O.ZM,O.l3,O.Gg,O.n7)}); g.L(this,this.wy);this.j7=yS(function(){return new cE(E,O.uq,O.Gg,O.l3,O.n7,O.a7,O.kN,O.Lg,O.o4,O.dG,O.n5,O.SJ,O.C5,O.QB,O.J2,O.ZM,O.m6,c,V)}); g.L(this,this.j7);this.G4=yS(function(){return new CnW(O.VB,O.o4,O.l3,C,O.Ew,l,O.Lg)}); g.L(this,this.G4);this.JB={D7:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Se],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oc]]),dP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rM],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma]]),R$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pw],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Rn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Rn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Rn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gg],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.jr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.LM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uq]]),Bz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vy],["SLOT_TYPE_FORECASTING",this.Vy],["SLOT_TYPE_IN_PLAYER",this.Vy],["SLOT_TYPE_PLAYER_BYTES",this.qT]]),gP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vn],["SLOT_TYPE_FORECASTING",this.wy],["SLOT_TYPE_IN_PLAYER",this.G4],["SLOT_TYPE_PLAYER_BYTES", this.j7]])};this.listeners=[C.get()];this.Us={xU:this.xU,Fn:this.ZM.get(),a4:this.QB.get(),rp:this.o4.get(),Se:this.Se,JU:X.get(),Sg:null,g_:this.pw,UP:C.get(),H7:this.Lg.get()}}; lv6=function(E,e,l,k,H){g.a.call(this);var O=this,X=yS(function(){return new WS(O.ZM)}); g.L(this,X);var A=yS(function(){return new oi(X,O.ZM)}); g.L(this,A);var C=yS(function(){return new mA}); g.L(this,C);var p=yS(function(){return new Zp(E)}); g.L(this,p);var x=yS(function(){return new wn(X,A,O.ZM)}); g.L(this,x);var Q=yS(function(){return new iA}); g.L(this,Q);this.Ew=yS(function(){return new s3S(e)}); g.L(this,this.Ew);this.VB=yS(function(){return new Tk(e)}); g.L(this,this.VB);this.QB=yS(function(){return new Iw(H)}); g.L(this,this.QB);this.SJ=yS(function(){return new tQ(e)}); g.L(this,this.SJ);this.n5=yS(function(){return new qH(e)}); g.L(this,this.n5);this.kN=yS(function(){return new En(e)}); g.L(this,this.kN);this.C5=yS(function(){return new es(e)}); g.L(this,this.C5);this.ZM=yS(function(){return new lR(e)}); g.L(this,this.ZM);var W=yS(function(){return new Gk(k)}); g.L(this,W);var B=yS(function(){return new qk(O.ZM)}); g.L(this,B);this.J2=yS(function(){return new JN(e)}); g.L(this,this.J2);this.Lg=yS(function(){return new xm(e,Q,O.ZM)}); g.L(this,this.Lg);var w=Rs({Lg:this.Lg,ZM:this.ZM,KY:B}),U=w.context,c=w.bO;this.UK=w.UK;this.BN=yS(function(){return new Un(e,O.ZM,O.l3)}); g.L(this,this.BN);this.m6=yS(function(){return new ch(e)}); g.L(this,this.m6);this.o4=yS(function(){return new QE(e,O.Lg,O.ZM)}); g.L(this,this.o4);this.dG=yS(function(){return new yE}); g.L(this,this.dG);w=yS(function(){return new rM(X,x,A,O.ZM,B,null,O.o4,O.er,O.tS,3)}); g.L(this,w);this.a7=yS(function(){return new S7(O.ZM)}); this.n7=yS(function(){return new On(O.o4,e,O.ZM)}); g.L(this,this.n7);this.l3=yS(function(){return new pM(e,C,O.n7,O.Lg,O.UK,O.ZM,c)}); g.L(this,this.l3);this.Se=new NI(p,w,l,this.ZM,E,this.Lg,this.o4,this.SJ);g.L(this,this.Se);var V=new s5(e,this.Se,this.o4,this.Lg,this.BN);this.QL=yS(function(){return V}); this.uE=V;this.e7=new MI(mpX,js,function(F,r,P,N){return BQ9(A.get(),F,r,P,N)},p,x,A,B,this.ZM,this.Lg); g.L(this,this.e7);this.er=new vH(p,x,this.QL,this.BN,this.o4,this.ZM,this.l3,this.m6);g.L(this,this.er);this.Oc=new Yo(p,x,this.n5,this.QL,U);g.L(this,this.Oc);this.xU=new Ei(this.ZM,p,x,w,this.Lg,this.Oc,l,this.kN);g.L(this,this.xU);this.rM=yS(function(){return new sG(W,A,B,O.ZM,O.l3,O.o4,O.m6)}); g.L(this,this.rM);this.ma=yS(function(){return new tU}); g.L(this,this.ma);this.pw=new qI(E,this.VB,this.ZM);g.L(this,this.pw);this.Rn=new ED(E);g.L(this,this.Rn);this.jr=new k2(E,this.QL,U);g.L(this,this.jr);this.bk=new HS(E,this.n5,this.o4,this.Lg,U);g.L(this,this.bk);this.KX=new OD(E,this.Lg);g.L(this,this.KX);this.tS=new AR(E,this.BN,this.o4,this.l3,this.QL,this.er);g.L(this,this.tS);this.Gg=new X1(E);g.L(this,this.Gg);this.LM=new uA(E);g.L(this,this.LM);this.uq=new QY(E);g.L(this,this.uq);this.Vy=yS(function(){return new n4}); g.L(this,this.Vy);this.qT=yS(function(){return new Rg(O.o4)}); g.L(this,this.qT);this.vn=yS(function(){return new bj(O.xU,p,X)}); g.L(this,this.vn);this.wy=yS(function(){return new av(O.ZM,O.l3,O.Gg,O.n7)}); g.L(this,this.wy);this.j7=yS(function(){return new JC(E,O.uq,O.Gg,O.Lg,O.m6,O.o4,O.dG,O.l3,Q,O.BN,O.n7,O.a7,O.kN,O.n5,O.SJ,O.C5,O.QB,O.J2,O.ZM,C,U,c)}); g.L(this,this.j7);this.Lx=yS(function(){return new pzW(O.VB,O.o4,O.l3,C,O.Ew,l,O.ZM,O.Lg)}); g.L(this,this.Lx);this.JB={D7:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xU],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.er],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Se],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oc]]),dP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rM],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma]]),R$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.pw],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Rn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Rn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Rn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Rn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Rn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.jr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.bk],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KX],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gg],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.jr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.LM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.tS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.tS],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.tS],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.tS],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.tS]]),Bz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vy],["SLOT_TYPE_FORECASTING",this.Vy],["SLOT_TYPE_IN_PLAYER",this.Vy],["SLOT_TYPE_PLAYER_BYTES",this.qT]]),gP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vn],["SLOT_TYPE_FORECASTING",this.wy],["SLOT_TYPE_PLAYER_BYTES",this.j7],["SLOT_TYPE_IN_PLAYER",this.Lx]])};this.listeners=[C.get()]; this.Us={xU:this.xU,Fn:this.ZM.get(),a4:this.QB.get(),rp:this.o4.get(),Se:this.Se,JU:X.get(),Sg:null,g_:this.pw,UP:C.get(),H7:this.Lg.get()}}; HS1=function(E,e,l,k){function H(){return O.G} g.a.call(this);var O=this;E.Y().experiments.P5("html5_dispose_of_manager_before_dependency")?(this.T=k7r(H,E,e,l,k),this.G=(new j7(this.T)).Z(),g.L(this,this.G),g.L(this,this.T)):(this.T=k7r(H,E,e,l,k),g.L(this,this.T),this.G=(new j7(this.T)).Z(),g.L(this,this.G))}; I8=function(E){return E.T.Us}; k7r=function(E,e,l,k,H){try{var O=e.Y();if(g.TH(O))var X=new tee(E,e,l,k,H);else if(g.UV(O))X=new qjW(E,e,l,k,H);else if(QN(O))X=new E0O(E,e,l,k,H);else if(g.Ik(O))X=new eyH(E,e,l,k,H);else if(g.XG(O))X=new lv6(E,e,l,k,H);else throw new TypeError("Unknown web interface");return X}catch(A){return X=e.Y(),kd("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:X.T.cplatform,interface:X.T.c,MP7:X.T.cver,gC0:X.T.ctheme,RE0:X.T.cplayer,eqM:X.playerStyle}),new Mep(E,e,l,k,H)}}; OS6=function(E){Db.call(this,E)}; XeH=function(E,e,l,k,H){NZ.call(this,E,{X:"div",B:"ytp-ad-timed-pie-countdown-container",K:[{X:"svg",B:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},K:[{X:"circle",B:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{X:"circle",B:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{X:"circle",B:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",e,l,k,H);this.S=this.X6("ytp-ad-timed-pie-countdown-container");this.Z=this.X6("ytp-ad-timed-pie-countdown-inner"); this.J=this.X6("ytp-ad-timed-pie-countdown-outer");this.G=Math.ceil(2*Math.PI*5);this.hide()}; uWr=function(E,e,l,k,H,O){k3.call(this,E,{X:"div",B:"ytp-ad-action-interstitial",D:{tabindex:"0"},K:[{X:"div",B:"ytp-ad-action-interstitial-background-container"},{X:"div",B:"ytp-ad-action-interstitial-slot",K:[{X:"div",B:"ytp-ad-action-interstitial-instream-info"},{X:"div",B:"ytp-ad-action-interstitial-card",K:[{X:"div",B:"ytp-ad-action-interstitial-image-container"},{X:"div",B:"ytp-ad-action-interstitial-headline-container"},{X:"div",B:"ytp-ad-action-interstitial-description-container"},{X:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",e,l,k);this.EG=H;this.FP=O;this.navigationEndpoint=this.T=this.skipButton=this.G=this.actionButton=null;this.J0=this.X6("ytp-ad-action-interstitial-instream-info");this.c5=this.X6("ytp-ad-action-interstitial-image-container");this.V=new fN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,"ytp-ad-action-interstitial-image");g.L(this,this.V);this.V.u3(this.c5);this.h0=this.X6("ytp-ad-action-interstitial-headline-container"); this.J=new hq(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,"ytp-ad-action-interstitial-headline");g.L(this,this.J);this.J.u3(this.h0);this.kt=this.X6("ytp-ad-action-interstitial-description-container");this.Z=new hq(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,"ytp-ad-action-interstitial-description");g.L(this,this.Z);this.Z.u3(this.kt);this.ND=this.X6("ytp-ad-action-interstitial-background-container");this.jR=new fN(this.api,this.layoutId,this.interactionLoggingClientData, this.a4,"ytp-ad-action-interstitial-background",!0);g.L(this,this.jR);this.jR.u3(this.ND);this.b3=this.X6("ytp-ad-action-interstitial-action-button-container");this.slot=this.X6("ytp-ad-action-interstitial-slot");this.L0=this.X6("ytp-ad-action-interstitial-card");this.S=new GC;g.L(this,this.S);this.hide()}; A7_=function(E){var e=g.XZ("html5-video-player");e&&g.k_(e,"ytp-ad-display-override",E)}; QZO=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-overlay-slot",K:[{X:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",e,l,k);this.V=[];this.ND=this.h0=this.S=this.b3=this.J0=null;this.jR=!1;this.J=null;this.kt=0;E=this.X6("ytp-ad-overlay-container");this.c5=new tq(E,45E3,6E3,.3,.4);g.L(this,this.c5);this.Z=CXO(this);g.L(this,this.Z);this.Z.u3(E);this.G=peS(this);g.L(this,this.G);this.G.u3(E);this.T=xW$(this);g.L(this,this.T);this.T.u3(E);this.hide()}; CXO=function(E){var e=new g.lU({X:"div",B:"ytp-ad-text-overlay",K:[{X:"div",B:"ytp-ad-overlay-ad-info-button-container"},{X:"div",B:"ytp-ad-overlay-close-container",K:[{X:"button",B:"ytp-ad-overlay-close-button",K:[$3(WlW)]}]},{X:"div",B:"ytp-ad-overlay-title",Tz:"{{title}}"},{X:"div",B:"ytp-ad-overlay-desc",Tz:"{{description}}"},{X:"div",s7:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Tz:"{{displayUrl}}"}]});E.C(e.X6("ytp-ad-overlay-title"),"click",function(l){FQ(E,e.element,l)}); E.C(e.X6("ytp-ad-overlay-link"),"click",function(l){FQ(E,e.element,l)}); E.C(e.X6("ytp-ad-overlay-close-container"),"click",E.rN);e.hide();return e}; peS=function(E){var e=new g.lU({X:"div",s7:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{X:"div",B:"ytp-ad-overlay-ad-info-button-container"},{X:"div",B:"ytp-ad-overlay-close-container",K:[{X:"button",B:"ytp-ad-overlay-close-button",K:[$3(WlW)]}]},{X:"div",B:"ytp-ad-overlay-text-image",K:[{X:"img",D:{src:"{{imageUrl}}"}}]},{X:"div",B:"ytp-ad-overlay-title",Tz:"{{title}}"},{X:"div",B:"ytp-ad-overlay-desc",Tz:"{{description}}"},{X:"div",s7:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Tz:"{{displayUrl}}"}]});E.C(e.X6("ytp-ad-overlay-title"),"click",function(l){FQ(E,e.element,l)}); E.C(e.X6("ytp-ad-overlay-link"),"click",function(l){FQ(E,e.element,l)}); E.C(e.X6("ytp-ad-overlay-close-container"),"click",E.rN);E.C(e.X6("ytp-ad-overlay-text-image"),"click",E.wNt);e.hide();return e}; xW$=function(E){var e=new g.lU({X:"div",B:"ytp-ad-image-overlay",K:[{X:"div",B:"ytp-ad-overlay-ad-info-button-container"},{X:"div",B:"ytp-ad-overlay-close-container",K:[{X:"button",B:"ytp-ad-overlay-close-button",K:[$3(WlW)]}]},{X:"div",B:"ytp-ad-overlay-image",K:[{X:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});E.C(e.X6("ytp-ad-overlay-image"),"click",function(l){FQ(E,e.element,l)}); E.C(e.X6("ytp-ad-overlay-close-container"),"click",E.rN);e.hide();return e}; B8$=function(E,e){if(e){var l=g.M(e,RP)||null;l==null?g.$F(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(e=g.XZ("video-ads ytp-ad-module")||null,e==null?g.$F(Error("Could not locate the root ads container element to attach the ad info dialog.")):(E.h0=new g.lU({X:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.L(E,E.h0),E.h0.u3(e),e=new LN(E.api,E.layoutId,E.interactionLoggingClientData,E.a4,E.h0.element,!1),g.L(E,e),e.init(ng("ad-info-hover-text-button"),l,E.macros), E.J?(e.u3(E.J,0),e.subscribe("f",E.c0z,E),e.subscribe("e",E.sI,E),E.C(E.J,"click",E.A0d),E.C(g.XZ("ytp-ad-button",e.element),"click",function(){var k;if(g.M((k=g.M(l.button,g.tS))==null?void 0:k.serviceEndpoint,k0X))E.jR=E.api.getPlayerState(1)===2,E.api.pauseVideo();else E.api.onAdUxClicked("ad-info-hover-text-button",E.layoutId)}),E.ND=e):g.$F(Error("Ad info button container within overlay ad was not present."))))}else g.UJ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; weS=function(E,e){if(o00(E,fM)||E.api.isMinimized())return!1;var l=HT(e.title),k=HT(e.description);if(g.FF(l)||g.FF(k))return!1;E.createServerVe(E.Z.element,e.trackingParams||null);E.Z.updateValue("title",HT(e.title));E.Z.updateValue("description",HT(e.description));E.Z.updateValue("displayUrl",HT(e.displayUrl));e.navigationEndpoint&&g.VH(E.V,e.navigationEndpoint);E.Z.show();E.c5.start();E.logVisibility(E.Z.element,!0);E.C(E.Z.element,"mouseover",function(){E.kt++}); return!0}; zyk=function(E,e){if(o00(E,fM)||E.api.isMinimized())return!1;var l=HT(e.title),k=HT(e.description);if(g.FF(l)||g.FF(k))return!1;E.createServerVe(E.G.element,e.trackingParams||null);E.G.updateValue("title",HT(e.title));E.G.updateValue("description",HT(e.description));E.G.updateValue("displayUrl",HT(e.displayUrl));E.G.updateValue("imageUrl",WW8(e.image));e.navigationEndpoint&&g.VH(E.V,e.navigationEndpoint);E.b3=e.imageNavigationEndpoint||null;E.G.show();E.c5.start();E.logVisibility(E.G.element,!0); E.C(E.G.element,"mouseover",function(){E.kt++}); return!0}; dWs=function(E,e){if(E.api.isMinimized())return!1;var l=BO8(e.image),k=l;l.width0?(e=new yd(E.api,E.T), e.u3(E.playerOverlay),g.L(E,e)):(E=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(e)),g.$F(E))}}else g.$F(Error("addCommonComponents() needs to be called before starting countdown."))}; Fl_=function(E){function e(l){return{toString:function(){return l()}}} E.macros.SURVEY_LOCAL_TIME_EPOCH_S=e(function(){var l=new Date;return(Math.round(l.valueOf()/1E3)+-1*l.getTimezoneOffset()*60).toString()}); E.macros.SURVEY_ELAPSED_MS=e(function(){return(Date.now()-E.Z).toString()})}; fv0=function(E,e,l,k,H){De.call(this,E,e,l,k,"survey-question-multi-select");this.kt=H;this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()}; Vp1=function(E,e,l){E.noneOfTheAbove=new J7$(E.api,E.layoutId,E.interactionLoggingClientData,E.a4);E.noneOfTheAbove.u3(E.answers);E.noneOfTheAbove.init(ng("survey-none-of-the-above"),e,l)}; r7O=function(E){E.G.forEach(function(e){e.T.toggleButton(!1)}); S9d(E,!0)}; S9d=function(E,e){var l=E.S;E=DWd(E);e=e===void 0?!1:e;l.T&&(E?l.T.hide():l.T.show(),e&&l.T instanceof CB&&!l.T.S&&QaX(l.T,!1));l.G&&(E?l.G.show():l.G.hide())}; DWd=function(E){return E.G.some(function(e){return e.T.isToggled()})||E.noneOfTheAbove.button.isToggled()}; bR=function(E,e,l,k,H){De.call(this,E,e,l,k,"survey-question-single-select",function(X){O.api.Y().L("supports_multi_step_on_desktop")&&H([X])}); var O=this;this.hide()}; vh=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-survey",K:[{X:"div",B:"ytp-ad-survey-questions"}]},"survey",e,l,k);this.questions=[];this.G=[];this.conditioningRules=[];this.T=0;this.J=this.X6("ytp-ad-survey-questions");this.api.Y().L("fix_survey_color_contrast_on_destop")&&this.X6("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().L("web_enable_speedmaster")&&this.X6("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; PX6=function(E,e){var l=E.G[e],k;(k=E.Z)==null||k.dispose();g.M(l,KG)?bS2(E,g.M(l,KG),E.macros):g.M(l,g$)&&v0k(E,g.M(l,g$),E.macros);E.T=e}; bS2=function(E,e,l){var k=new bR(E.api,E.layoutId,E.interactionLoggingClientData,E.a4,E.S.bind(E));k.u3(E.J);k.init(ng("survey-question-single-select"),e,l);E.api.Y().L("supports_multi_step_on_desktop")?E.Z=k:E.questions.push(k);g.L(E,k)}; v0k=function(E,e,l){var k=new fv0(E.api,E.layoutId,E.interactionLoggingClientData,E.a4,E.S.bind(E));k.u3(E.J);k.init(ng("survey-question-multi-select"),e,l);E.api.Y().L("supports_multi_step_on_desktop")?E.Z=k:E.questions.push(k);g.L(E,k)}; Ph=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-survey-interstitial",K:[{X:"div",B:"ytp-ad-survey-interstitial-contents",K:[{X:"div",B:"ytp-ad-survey-interstitial-logo",K:[{X:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",e,l,k);this.T=this.actionButton=null;this.interstitial=this.X6("ytp-ad-survey-interstitial");this.G=this.X6("ytp-ad-survey-interstitial-contents");this.text=this.X6("ytp-ad-survey-interstitial-text"); this.logoImage=this.X6("ytp-ad-survey-interstitial-logo-image");this.transition=new g.mO(this,500,!1,300);g.L(this,this.transition)}; avt=function(E,e){e=e&&F0(e)||"";if(g.FF(e))g.UJ(Error("Found ThumbnailDetails without valid image URL"));else{var l=E.style;E=E.style.cssText;var k=document.implementation.createHTMLDocument("").createElement("DIV");k.style.cssText=E;E=M3X(k.style);l.cssText=[E,'background-image:url("'+e+'");'].join("")}}; LlG=function(E){var e=g.XZ("html5-video-player");e&&g.k_(e,"ytp-ad-display-override",E)}; a8=function(E,e,l,k,H,O){O=O===void 0?0:O;NZ.call(this,E,{X:"div",B:"ytp-preview-ad",K:[{X:"div",B:"ytp-preview-ad__text"}]},"preview-ad",e,l,k,H);var X=this;this.kt=O;this.G=0;this.S=-1;this.Z=this.X6("ytp-preview-ad__text");switch(this.kt){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.mO(this,400,!1,100,function(){X.hide()}); g.L(this,this.transition);this.hide()}; LM=function(E,e,l,k){k3.call(this,E,{X:"img",B:"ytp-ad-avatar"},"ad-avatar",e,l,k);this.hide()}; hy0=function(E){switch(E.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}}; hN=function(E,e,l,k,H,O){H=H===void 0?!1:H;O=O===void 0?!1:O;k3.call(this,E,{X:"button",B:"ytp-ad-button-vm"},"ad-button",e,l,k);this.buttonText=this.buttonIcon=null;this.hide();this.T=H;this.G=O}; Mp1=function(E,e,l,k,H){NZ.call(this,E,{X:"div",s7:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{X:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{X:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",e,l,k,H);this.startMilliseconds=0;this.adAvatar=new LM(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.adAvatar);wT(this.element,this.adAvatar.element,0);this.headline=new Tj(this.api,this.layoutId, this.interactionLoggingClientData,this.a4);g.L(this,this.headline);this.headline.u3(this.X6("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.description);this.description.u3(this.X6("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new hN(this.api, this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.adButton);this.adButton.u3(this.element);this.hide()}; Mj=function(E,e,l,k){k3.call(this,E,{X:"button",B:"ytp-skip-ad-button",K:[{X:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",e,l,k);var H=this;this.G=!1;this.S=this.X6("ytp-skip-ad-button__text");this.transition=new g.mO(this,500,!1,100,function(){H.hide()}); g.L(this,this.transition);this.T=new tq(this.element,15E3,5E3,.5,.5,!0);g.L(this,this.T);this.hide()}; N8t=function(E,e,l,k,H){NZ.call(this,E,{X:"div",B:"ytp-skip-ad"},"skip-ad",e,l,k,H);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new Mj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.Z);this.Z.u3(this.element);this.hide()}; Nj=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",e,l,k);this.hide()}; Ze=function(E,e,l,k,H){k3.call(this,E,{X:"div",B:"ytp-ad-player-overlay-layout",K:[{X:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",e,l,k);this.G=H;this.h0=this.X6("ytp-ad-player-overlay-layout__player-card-container");this.T=this.X6("ytp-ad-player-overlay-layout__ad-info-container"); this.V=this.X6("ytp-ad-player-overlay-layout__skip-or-preview-container");this.kt=this.X6("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; ZSd=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-grid-card-text",K:[{X:"div",B:"ytp-ad-grid-card-text__metadata",K:[{X:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",B:"ytp-ad-grid-card-text__metadata__description",K:[{X:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",e,l,k);this.headline=new Tj(this.api,this.layoutId,this.interactionLoggingClientData, this.a4);g.L(this,this.headline);this.headline.u3(this.X6("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new hN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0);g.L(this,this.moreInfoButton);this.moreInfoButton.u3(this.X6("ytp-ad-grid-card-text__button"))}; Ym=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",e,l,k);this.T=[]}; mc=function(E,e,l,k,H,O,X){NZ.call(this,E,O,X,e,l,k,H);this.playerProgressOffsetMs=0;this.G=!1}; Y92=function(E){var e=g.XZ("html5-video-player");e&&g.k_(e,"ytp-ad-display-override",E)}; mWH=function(E,e,l,k,H){mc.call(this,E,e,l,k,H,{X:"div",B:"ytp-display-underlay-text-grid-cards",K:[{X:"div",B:"ytp-display-underlay-text-grid-cards__content_container",K:[{X:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{X:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {X:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Ym(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.adGridCardCollection);this.adGridCardCollection.u3(this.X6("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new hN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.adButton);this.adButton.u3(this.X6("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.X6("ytp-display-underlay-text-grid-cards__content_container");this.S=this.X6("ytp-display-underlay-text-grid-cards__content_container__header")}; ge=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-ad-details-line"},"ad-details-line",e,l,k);this.T=[];this.hide()}; KM=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-image-background",K:[{X:"img",B:"ytp-image-background-image"}]},"image-background",e,l,k);this.hide()}; g0O=function(E,e,l,k,H){NZ.call(this,E,{X:"svg",B:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},K:[{X:"circle",B:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{X:"circle",B:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{X:"circle",B:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",e,l,k,H);this.Z=this.X6("ytp-timed-pie-countdown__inner");this.G=Math.ceil(2*Math.PI*5);this.hide()}; nM=function(E,e,l,k){k3.call(this,E,{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},K:[{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",e,l,k);this.G=null;this.S=this.X6("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new GC;g.L(this,this.Z);this.hide()}; Kl0=function(E){var e=g.XZ("html5-video-player");e&&g.k_(e,"ytp-ad-display-override",E)}; n0_=function(E){if(!E.adAvatar||!g.M(E.adAvatar,R8))return g.$F(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!E.headline)return g.$F(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!E.adBadge||!g.M(E.adBadge,sn))return g.$F(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!E.adButton||!g.M(E.adButton,tN))return g.$F(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!E.adInfoRenderer|| !g.M(E.adInfoRenderer,RP))return g.$F(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;E=E.durationMilliseconds||0;return typeof E!=="number"||E<=0?(g.$F(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+E)),!1):!0}; qj=function(E,e){e=e===void 0?2:e;g.sJ.call(this);this.api=E;this.T=null;this.K5=new GC(this);g.L(this,this.K5);this.G=Wz7;this.K5.C(this.api,"presentingplayerstatechange",this.z4);this.T=this.K5.C(this.api,"progresssync",this.oz);this.Pu=e;this.Pu===1&&this.oz()}; Ey=function(E,e,l){Db.call(this,E);this.api=E;this.a4=e;this.components={};E=new g.Z({X:"div",s7:["video-ads","ytp-ad-module"]});g.L(this,E);nJ&&g.qx(E.element,"ytp-ads-tiny-mode");this.S=new XE(E.element);g.L(this,this.S);g.sT(this.api,E.element,4);wM(l)&&(l=new g.Z({X:"div",s7:["ytp-ad-underlay"]}),g.L(this,l),this.G=new XE(l.element),g.L(this,this.G),g.sT(this.api,l.element,0));g.L(this,Mtv())}; Ry0=function(E,e){E=g.Wj(E.components,e.id,null);E==null&&g.UJ(Error("Component not found for element id: "+e.id));return E||null}; sZ_=function(E){g.Fq.call(this,E);var e=this;this.G=null;this.created=!1;this.Z=E.Y().L("h5_use_refactored_get_ad_break")?new Nyv(this.player):new n5(this.player);this.S=function(){if(e.G!=null)return e.G;var k=new Rip({g_:I8(e.T).g_,H7:I8(e.T).H7,U:e.player,Fn:I8(e.T).Fn,l3:e.T.T.l3,UP:I8(e.T).UP,C5:e.T.T.C5});e.G=k.HT;return e.G}; this.T=new HS1(this.player,this,this.Z,this.S);g.L(this,this.T);var l=E.Y();!xk(l)||g.XG(l)||QN(l)||(g.L(this,new Ey(E,I8(this.T).a4,I8(this.T).Fn)),g.L(this,new OS6(E)))}; tpd=function(E){E.created!==E.loaded&&kd("Created and loaded are out of sync")}; esH=function(E){g.Fq.prototype.load.call(E);var e=I8(E.T).Fn;try{E.player.getRootNode().classList.add("ad-created")}catch(C){kd(C instanceof Error?C:String(C))}var l=E.player.getVideoData(1),k=l&&l.videoId||"",H=l&&l.getPlayerResponse()||{},O=(H&&H.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),X=((H==null?void 0:H.adSlots)||[]).map(function(C){return g.M(C,ej)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;l&&l.sK();O=q9k(O,X,e,I8(E.T).JU);X=l&&l.clientPlaybackNonce||"";l=l&&l.Nl||!1;if(up(e,!0)&&l){var A;e={};(A=E.player.getVideoData())==null||A.wH("p_cpb",(e.cc=X,e))}A=1E3*E.player.getDuration(1);EG1(E);E.T.T.uE.j1(X,A,l,O.Tl,O.qf,O.Tl,H,k)}; EG1=function(E){var e,l;if(l=(e=E.player.getVideoData(1))==null||!e.Nl)e=E.player.Y(),l=xk(e)&&!g.pp(e)&&e.playerStyle==="desktop-polymer";l&&(E=E.player.getInternalApi(),E.addEventListener("updateKevlarOrC3Companion",$1Z),E.addEventListener("updateEngagementPanelAction",U1W),E.addEventListener("changeEngagementPanelVisibility",JkZ),window.addEventListener("yt-navigate-start",yk8))}; eT=function(E,e){e===E.eb&&(E.eb=void 0)}; lkG=function(E){var e=I8(E.T).Se,l=e.S().ws("SLOT_TYPE_PLAYER_BYTES",1);e=Ve(e.Lg.get(),1).clientPlaybackNonce;var k=!1;l=g.T(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;var O=H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.slotEntryTrigger instanceof Lh?H.slotEntryTrigger.Pz:void 0;O&&O===e&&(k&&kd("More than 1 preroll playerBytes slot detected",H),k=!0)}k||Wh(I8(E.T).rp)}; kdS=function(E){if(km(I8(E.T).Fn))return!0;var e="";E=g.T(I8(E.T).UP.n_.keys());for(var l=E.next();!l.done;l=E.next()){l=l.value;if(l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.O7==="core")return!0;e+=l.slotType+" "}Math.random()<.01&&kd("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:e});return!1}; HWW=function(E){E=g.T(I8(E.T).UP.n_.values());for(var e=E.next();!e.done;e=E.next())if(e.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; YXy=function(E,e,l,k,H,O,X){l=l===void 0?[]:l;k=k===void 0?"":k;H=H===void 0?"":H;var A=I8(E.T).Fn,C=E.player.getVideoData(1);C&&C.getPlayerResponse();C&&C.sK();l=q9k(e,l,A,I8(E.T).JU);R0W(I8(E.T).xU,k,l.Tl,l.qf,e,H,O,X)}; q9k=function(E,e,l,k){e={Tl:[],qf:e};E=g.T(E);for(var H=E.next();!H.done;H=E.next())if((H=H.value)&&H.renderer!=null){var O=H.renderer;if(!l.U.Y().L("html5_enable_vod_lasr_with_notify_pacf")){var X=void 0,A=void 0,C=void 0,p=void 0,x=k;g.M((p=O.sandwichedLinearAdRenderer)==null?void 0:p.adVideoStart,Sj)?(X=g.M((C=O.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,Sj),X=p9X(X,x),g.IO(O.sandwichedLinearAdRenderer.adVideoStart,Sj,X)):g.M((A=O.linearAdSequenceRenderer)==null?void 0:A.adStart,Sj)&& (C=g.M((X=O.linearAdSequenceRenderer)==null?void 0:X.adStart,Sj),X=p9X(C,x),g.IO(O.linearAdSequenceRenderer.adStart,Sj,X))}e.Tl.push(H)}return e}; g.lm=function(E){if(typeof DOMParser!="undefined")return ca(new DOMParser,v5W(E),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.kS=function(E){g.a.call(this);this.callback=E;this.T=new BY(0,0,.4,0,.2,1,1,1);this.delay=new g.Mx(this.next,window,this);g.L(this,this.delay)}; g.OWW=function(E){var e=E.Y();return e.yf&&!e.Z&&g.qA(e)?E.isEmbedsShortsMode()?(E=E.uH(),Math.min(E.width,E.height)>=315):!E.fD():!1}; g.H5=function(E){g.Z.call(this,{X:"div",B:"ytp-more-videos-view",D:{tabIndex:"-1"}});var e=this;this.api=E;this.G=!0;this.Z=new g.G_(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.N=this.S=this.scrollPosition=0;this.title=new g.Z({X:"h2",B:"ytp-related-title",Tz:"{{title}}"});this.previous=new g.Z({X:"button",s7:["ytp-button","ytp-previous"],D:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},K:[g.Aq()]});this.j=new g.kS(function(l){e.suggestions.element.scrollLeft= -l}); this.next=new g.Z({X:"button",s7:["ytp-button","ytp-next"],D:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},K:[g.CN()]});g.L(this,this.Z);this.J=E.Y().S;g.L(this,this.title);this.title.u3(this.element);this.suggestions=new g.Z({X:"div",B:"ytp-suggestions"});g.L(this,this.suggestions);this.suggestions.u3(this.element);g.L(this,this.previous);this.previous.u3(this.element);this.previous.listen("click",this.YW,this);g.L(this,this.j);XtS(this);g.L(this,this.next);this.next.u3(this.element);this.next.listen("click", this.D2,this);this.Z.C(this.api,"appresize",this.NN);this.Z.C(this.api,"fullscreentoggled",this.oB);this.Z.C(this.api,"videodatachange",this.onVideoDataChange);this.NN(this.api.zz().getPlayerSize());this.onVideoDataChange()}; XtS=function(E){for(var e={Yd:0};e.Yd<16;e={Yd:e.Yd},++e.Yd){var l=new g.Z({X:"a",B:"ytp-suggestion-link",D:{href:"{{link}}",target:E.api.Y().V,"aria-label":"{{aria_label}}"},K:[{X:"div",B:"ytp-suggestion-image"},{X:"div",B:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{X:"div",B:"ytp-suggestion-title",Tz:"{{title}}"},{X:"div",B:"ytp-suggestion-author",Tz:"{{author_and_views}}"},{X:"div",D:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", Tz:"{{duration}}"}]}]});g.L(E,l);var k=l.X6("ytp-suggestion-link");g.MV(k,"transitionDelay",e.Yd/20+"s");E.Z.C(k,"click",function(H){return function(O){var X=H.Yd;if(E.G){var A=E.suggestionData[X],C=A.sessionData;E.J&&E.api.L("web_player_log_click_before_generating_ve_conversion_params")?(E.api.logClick(E.T[X].element),X=A.f_(),A={},g.Kb(E.api,A),X=g.BJ(X,A),g.JL(X,E.api,O)):g.Ub(O,E.api,E.J,C||void 0)&&E.api.MO(A.videoId,C,A.playlistId)}else O.preventDefault(),document.activeElement.blur()}}(e)); l.u3(E.suggestions.element);E.T.push(l);E.api.createServerVe(l.element,l)}}; uOG=function(E){if(E.api.Y().L("web_player_log_click_before_generating_ve_conversion_params"))for(var e=Math.floor(-E.scrollPosition/(E.S+8)),l=Math.min(e+E.columns,E.suggestionData.length)-1;e<=l;e++)E.api.logVisibility(E.T[e].element,!0)}; g.Oy=function(E){var e=E.api.xz()?32:16;e=E.N/2+e;E.next.element.style.bottom=e+"px";E.previous.element.style.bottom=e+"px";e=E.scrollPosition;var l=E.containerWidth-E.suggestionData.length*(E.S+8);g.k_(E.element,"ytp-scroll-min",e>=0);g.k_(E.element,"ytp-scroll-max",e<=l)}; C_k=function(E){for(var e=E.suggestionData.length,l=0;l>>0)+"_",H=0;return e}); x0("Symbol.iterator",function(E){if(E)return E;E=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l0&&l>0;)if(k[--l]!=e[--H])return!1;return H<=0}}); x0("Array.prototype.find",function(E){return E?E:function(e,l){return QZW(this,e,l).PK}}); x0("Array.prototype.entries",function(E){return E?E:function(){return Zv(this,function(e,l){return[e,l]})}}); x0("Array.prototype.keys",function(E){return E?E:function(){return Zv(this,function(e){return e})}}); x0("String.prototype.startsWith",function(E){return E?E:function(e,l){var k=MW(this,e,"startsWith");e+="";var H=k.length,O=e.length;l=Math.max(0,Math.min(l|0,k.length));for(var X=0;X=O}}); x0("Number.isFinite",function(E){return E?E:function(e){return typeof e!=="number"?!1:!isNaN(e)&&e!==Infinity&&e!==-Infinity}}); x0("String.prototype.repeat",function(E){return E?E:function(e){var l=MW(this,null,"repeat");if(e<0||e>1342177279)throw new RangeError("Invalid count value");e|=0;for(var k="";e;)if(e&1&&(k+=l),e>>>=1)l+=l;return k}}); x0("Object.entries",function(E){return E?E:function(e){var l=[],k;for(k in e)z7(e,k)&&l.push([k,e[k]]);return l}}); x0("Array.from",function(E){return E?E:function(e,l,k){l=l!=null?l:function(A){return A}; var H=[],O=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(typeof O=="function"){e=O.call(e);for(var X=0;!(O=e.next()).done;)H.push(l.call(k,O.value,X++))}else for(O=e.length,X=0;X>>0;if(e===0)return 32;var l=0;(e&4294901760)===0&&(e<<=16,l+=16);(e&4278190080)===0&&(e<<=8,l+=8);(e&4026531840)===0&&(e<<=4,l+=4);(e&3221225472)===0&&(e<<=2,l+=2);(e&2147483648)===0&&l++;return l}}); x0("Number.isNaN",function(E){return E?E:function(e){return typeof e==="number"&&isNaN(e)}}); x0("Array.prototype.values",function(E){return E?E:function(){return Zv(this,function(e,l){return l})}}); x0("Array.prototype.fill",function(E){return E?E:function(e,l,k){var H=this.length||0;l<0&&(l=Math.max(0,H+l));if(k==null||k>H)k=H;k=Number(k);k<0&&(k=Math.max(0,H+k));for(l=Number(l||0);l0&&l?l.repeat(Math.ceil(e/l.length)).substring(0,e):"")+k}}); x0("Array.prototype.findIndex",function(E){return E?E:function(e,l){return QZW(this,e,l).zc}}); x0("Promise.prototype.finally",function(E){return E?E:function(e){return this.then(function(l){return Promise.resolve(e()).then(function(){return l})},function(l){return Promise.resolve(e()).then(function(){throw l; })})}}); x0("Math.imul",function(E){return E?E:function(e,l){e=Number(e);l=Number(l);var k=e&65535,H=l&65535;return k*H+((e>>>16&65535)*H+k*(l>>>16&65535)<<16>>>0)|0}}); x0("Math.sign",function(E){return E?E:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}}); x0("WeakSet",function(E){function e(l){this.T=new WeakMap;if(l){l=g.T(l);for(var k;!(k=l.next()).done;)this.add(k.value)}} if(function(){if(!E||!Object.seal)return!1;try{var l=Object.seal({}),k=Object.seal({}),H=new E([l]);if(!H.has(l)||H.has(k))return!1;H.delete(l);H.add(k);return!H.has(l)&&H.has(k)}catch(O){return!1}}())return E; e.prototype.add=function(l){this.T.set(l,!0);return this}; e.prototype.has=function(l){return this.T.has(l)}; e.prototype.delete=function(l){return this.T.delete(l)}; return e}); x0("AggregateError",function(E){function e(l,k){k=Error(k);"stack"in k&&(this.stack=k.stack);this.errors=l;this.message=k.message} if(E)return E;g.d(e,Error);e.prototype.name="AggregateError";return e}); x0("Array.prototype.copyWithin",function(E){function e(l){l=Number(l);return l===Infinity||l===-Infinity?l:l|0} return E?E:function(l,k,H){var O=this.length;l=e(l);k=e(k);H=H===void 0?O:e(H);l=l<0?Math.max(O+l,0):Math.min(l,O);k=k<0?Math.max(O+k,0):Math.min(k,O);H=H<0?Math.max(O+H,0):Math.min(H,O);if(lk;)--H in this?this[--l]=this[H]:delete this[--l];return this}}); x0("Int8Array.prototype.copyWithin",ml);x0("Uint8Array.prototype.copyWithin",ml);x0("Uint8ClampedArray.prototype.copyWithin",ml);x0("Int16Array.prototype.copyWithin",ml);x0("Uint16Array.prototype.copyWithin",ml);x0("Int32Array.prototype.copyWithin",ml);x0("Uint32Array.prototype.copyWithin",ml);x0("Float32Array.prototype.copyWithin",ml);x0("Float64Array.prototype.copyWithin",ml);x0("Array.prototype.at",function(E){return E?E:KS}); x0("Int8Array.prototype.at",RZ);x0("Uint8Array.prototype.at",RZ);x0("Uint8ClampedArray.prototype.at",RZ);x0("Int16Array.prototype.at",RZ);x0("Uint16Array.prototype.at",RZ);x0("Int32Array.prototype.at",RZ);x0("Uint32Array.prototype.at",RZ);x0("Float32Array.prototype.at",RZ);x0("Float64Array.prototype.at",RZ);x0("String.prototype.at",function(E){return E?E:KS}); x0("Array.prototype.findLastIndex",function(E){return E?E:function(e,l){return WlS(this,e,l).zc}}); x0("Int8Array.prototype.findLastIndex",s9);x0("Uint8Array.prototype.findLastIndex",s9);x0("Uint8ClampedArray.prototype.findLastIndex",s9);x0("Int16Array.prototype.findLastIndex",s9);x0("Uint16Array.prototype.findLastIndex",s9);x0("Int32Array.prototype.findLastIndex",s9);x0("Uint32Array.prototype.findLastIndex",s9);x0("Float32Array.prototype.findLastIndex",s9);x0("Float64Array.prototype.findLastIndex",s9);x0("Number.parseInt",function(E){return E||parseInt});var NO,XO,o07;NO=NO||{};g.t7=this||self;XO="closure_uid_"+(Math.random()*1E9>>>0);o07=0;g.Bt(o1,Error);o1.prototype.name="CustomError";var S6p;var $Wv,zs,LY;$Wv=Array.prototype.indexOf?function(E,e){return Array.prototype.indexOf.call(E,e,void 0)}:function(E,e){if(typeof E==="string")return typeof e!=="string"||e.length!=1?-1:E.indexOf(e,0); for(var l=0;l=0;l--)if(l in E&&E[l]===e)return l;return-1}; g.nW=Array.prototype.forEach?function(E,e,l){Array.prototype.forEach.call(E,e,l)}:function(E,e,l){for(var k=E.length,H=typeof E==="string"?E.split(""):E,O=0;O=.3:this.fY>=.5};var j8={KfM:0,aGM:1},fGl={NONE:0,lyt:1,PPM:2};var v0v="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");db.prototype.getValue=function(){return this.G}; g.d(Gf,db);Gf.prototype.Z=function(E){this.G===null&&g.pe(this.S,E)&&(this.G=E)}; g.d(Tf,db);Tf.prototype.Z=function(E){this.G===null&&typeof E==="number"&&(this.G=E)}; g.d(iK,db);iK.prototype.Z=function(E){this.G===null&&typeof E==="string"&&(this.G=E)};$r.prototype.disable=function(){this.G=!1}; $r.prototype.enable=function(){this.G=!0}; $r.prototype.isEnabled=function(){return this.G}; $r.prototype.reset=function(){this.T={};this.G=!0;this.Z={}};var ME=document,Ib=window;var zsk=kG(1,!0),Pj=kG(610401301,!1);kG(899588437,!1);var d$2=kG(772657768,!1),Gdt=kG(513659523,!1),Tr6=kG(568333945,!1),ef7=kG(1331761403,!1);kG(651175828,!1);kG(722764542,!1);kG(748402145,!1);kG(748402146,!1);var $d0=kG(748402147,!1);kG(333098724,!1);kG(2147483644,!1);kG(2147483645,!1);kG(2147483646,zsk);kG(2147483647,!0);var a$=!!g.eS("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var rb=String.prototype.trim?function(E){return E.trim()}:function(E){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(E)[1]},uO0=/&/g,A0X=//g,pt0=/"/g,x$e=/'/g,Q19=/\x00/g,Xtp=/[\x00&<>"']/;var Mo,iW2=g.t7.navigator;Mo=iW2?iW2.userAgentData||null:null;var n0X=globalThis.trustedTypes,R$;tT.prototype.toString=function(){return this.T+""};l2.prototype.toString=function(){return this.T}; var tp7=new l2("about:invalid#zClosurez");var B5l=O3("tel"),QAp=O3("sms"),sZX=[O3("data"),O3("http"),O3("https"),O3("mailto"),O3("ftp"),new Ha(function(E){return/^[^:]*([/?#]|$)/.test(E)})],q9v=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;xX.prototype.toString=function(){return this.T+""};w2.prototype.toString=function(){return this.T+""};i2.prototype.toString=function(){return this.T};var U3={};g.$$G=String.prototype.repeat?function(E,e){return E.repeat(e)}:function(E,e){return Array(e+1).join(E)};Pa[" "]=function(){};var NV,Q6,oB8,U$S,J01,c0d,KJ,nJ,y0O;g.RU=mk();g.uw=N8e();g.aa=ZW("Edge");g.J5=g.aa||g.uw;NV=ZW("Gecko")&&!(S8(g.vj(),"WebKit")&&!ZW("Edge"))&&!(ZW("Trident")||ZW("MSIE"))&&!ZW("Edge");g.AV=S8(g.vj(),"WebKit")&&!ZW("Edge");Q6=va();oB8=d$l();g.Yq=zsv();U$S=Du();J01=ZW("iPad");c0d=ZW("iPod");KJ=b2();nJ=S8(g.vj(),"KaiOS"); a:{var j10="",IkG=function(){var E=g.vj();if(NV)return/rv:([^\);]+)(\)|;)/.exec(E);if(g.aa)return/Edge\/([\d\.]+)/.exec(E);if(g.uw)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(E);if(g.AV)return/WebKit\/(\S+)/.exec(E);if(g.RU)return/(?:Version)[ \/]?(\S+)/.exec(E)}(); IkG&&(j10=IkG?IkG[1]:"");if(g.uw){var Xl,F2t=g.t7.document;Xl=F2t?F2t.documentMode:void 0;if(Xl!=null&&Xl>parseFloat(j10)){y0O=String(Xl);break a}}y0O=j10}var $$0=y0O,Tr9={};var Mb,Nb;g.pJ=gb();Mb=Du()||ZW("iPod");Nb=ZW("iPad");g.t1=Y9l();g.oW=Ke();g.pA=ne()&&!b2();var DKX=!g.uw&&!ne();g.z=g.Nd.prototype;g.z.clone=function(){return new g.Nd(this.x,this.y)}; g.z.equals=function(E){return E instanceof g.Nd&&Zu(this,E)}; g.z.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.z.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.z.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.z.scale=function(E,e){this.x*=E;this.y*=typeof e==="number"?e:E;return this};g.z=g.YX.prototype;g.z.clone=function(){return new g.YX(this.width,this.height)}; g.z.aspectRatio=function(){return this.width/this.height}; g.z.isEmpty=function(){return!g2(this)}; g.z.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.z.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.z.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.z.scale=function(E,e){this.width*=E;this.height*=typeof e==="number"?e:E;return this};nk.prototype.toString=function(){return this.T}; var Kk={};new nk(Kk,"");var c07=/^[a-z][a-z\d-]*$/i,y0W="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Ik0="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),fk9=["action","formaction","href"];var r00={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.z=s3.prototype;g.z.Zb=function(E){return Ed(this.T,E)}; g.z.getElementsByTagName=function(E,e){return(e||this.T).getElementsByTagName(String(E))}; g.z.X6=function(E){return g.XZ(E,this.T)}; g.z.setProperties=uC;g.z.createElement=function(E){return pl(this.T,E)}; g.z.appendChild=g.Bb;g.z.append=function(E,e){P_7(tu(E),E,arguments,1)}; g.z.canHaveChildren=function(E){if(E.nodeType!=1)return!1;switch(E.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.z.removeNode=g.zD;g.z.getChildren=function(E){return E.children!=void 0?E.children:Array.prototype.filter.call(E.childNodes,function(e){return e.nodeType==1})}; g.z.contains=g.dT;cb.prototype.now=function(){return 0}; cb.prototype.G=function(){return 0}; cb.prototype.Z=function(){return 0}; cb.prototype.T=function(){return 0};g.d(jM,cb);jM.prototype.now=function(){return yz()&&Ib.performance.now?Ib.performance.now():cb.prototype.now.call(this)}; jM.prototype.G=function(){return yz()&&Ib.performance.memory?Ib.performance.memory.totalJSHeapSize||0:cb.prototype.G.call(this)}; jM.prototype.Z=function(){return yz()&&Ib.performance.memory?Ib.performance.memory.usedJSHeapSize||0:cb.prototype.Z.call(this)}; jM.prototype.T=function(){return yz()&&Ib.performance.memory?Ib.performance.memory.jsHeapSizeLimit||0:cb.prototype.T.call(this)};var Sqy=function(){if(!g.t7.addEventListener||!Object.defineProperty)return!1;var E=!1,e=Object.defineProperty({},"passive",{get:function(){E=!0}}); try{var l=function(){}; g.t7.addEventListener("test",l,e);g.t7.removeEventListener("test",l,e)}catch(k){}return E}();var bM8=MSy("AnimationEnd"),F_=MSy("TransitionEnd");g.z=DG.prototype;g.z.getHeight=function(){return this.bottom-this.top}; g.z.clone=function(){return new DG(this.top,this.right,this.bottom,this.left)}; g.z.contains=function(E){return this&&E?E instanceof DG?E.left>=this.left&&E.right<=this.right&&E.top>=this.top&&E.bottom<=this.bottom:E.x>=this.left&&E.x<=this.right&&E.y>=this.top&&E.y<=this.bottom:!1}; g.z.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.z.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.z.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.z.scale=function(E,e){e=typeof e==="number"?e:E;this.left*=E;this.right*=E;this.top*=e;this.bottom*=e;return this};g.z=g.ab.prototype;g.z.clone=function(){return new g.ab(this.left,this.top,this.width,this.height)}; g.z.contains=function(E){return E instanceof g.Nd?E.x>=this.left&&E.x<=this.left+this.width&&E.y>=this.top&&E.y<=this.top+this.height:this.left<=E.left&&this.left+this.width>=E.left+E.width&&this.top<=E.top&&this.top+this.height>=E.top+E.height}; g.z.getSize=function(){return new g.YX(this.width,this.height)}; g.z.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.z.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.z.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.z.scale=function(E,e){e=typeof e==="number"?e:E;this.left*=E;this.width*=E;this.top*=e;this.height*=e;return this};var ZWl={};var RsX=Vz(function(){var E=!1;try{var e=Object.defineProperty({},"passive",{get:function(){E=!0}}); g.t7.addEventListener("test",null,e)}catch(l){}return E});s18.prototype.isVisible=function(){return kb(ME)===1};var Yp9=H1(function(E){return typeof E==="number"}),gP=H1(function(E){return typeof E==="string"}),moZ=H1(function(E){return typeof E==="boolean"}),JR=H1(function(E){return E!=null&&typeof E==="object"&&typeof E.then==="function"}),JJv=H1(function(E){return typeof E==="function"}),fk6=H1(function(E){return!!E&&(typeof E==="object"||typeof E==="function")});var q6X={e$3:"allow-forms",qq5:"allow-modals",BBg:"allow-orientation-lock",tr4:"allow-pointer-lock",OwH:"allow-popups",aa3:"allow-popups-to-escape-sandbox",bw4:"allow-presentation",yBd:"allow-same-origin",COd:"allow-scripts",R$4:"allow-top-navigation",gzM:"allow-top-navigation-by-user-activation"},kf9=Vz(function(){return Er7()});var uF0=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");xb.prototype.cN=function(E,e,l){E=E+"//"+e+l;var k=xol(this)-l.length;if(k<0)return"";this.T.sort(function(p,x){return p-x}); l=null;e="";for(var H=0;H=C.length){k-=C.length;E+=C;e=this.Z;break}l=l==null?O:l}}k="";l!=null&&(k=""+e+"trn="+l);return E+k};Gs.prototype.setInterval=function(E,e){return Ib.setInterval(E,e)}; Gs.prototype.clearInterval=function(E){Ib.clearInterval(E)}; Gs.prototype.setTimeout=function(E,e){return Ib.setTimeout(E,e)}; Gs.prototype.clearTimeout=function(E){Ib.clearTimeout(E)};var Ac=void 0,u8,md9=typeof TextDecoder!=="undefined",$oS,ieW=typeof String.prototype.isWellFormed==="function",TbW=typeof TextEncoder!=="undefined";var j$X={},jq=null,IWv=NV||g.AV||typeof g.t7.btoa=="function";var aW8=typeof Uint8Array!=="undefined",rTX=!g.uw&&typeof btoa==="function",Do0=/[-_.]/g,V8l={"-":"+",_:"/",".":"="},F7={};I7.prototype.isEmpty=function(){return this.T==null}; I7.prototype.sizeBytes=function(){var E=V$(this);return E?E.length:0}; var PK0;var LkZ=void 0;var v1=typeof Symbol==="function"&&typeof Symbol()==="symbol",VSO=bZ("jas",void 0,!0),Bo=bZ(void 0,"1oa"),Fi=bZ(void 0,Symbol()),S6S=bZ(void 0,"0ub"),B2X=bZ(void 0,"0ubs"),wbl=bZ(void 0,"0ubsb"),JuX=bZ(void 0,"0actk"),y9=bZ("m_m","GrM",!0),zPp=bZ(void 0,"vps"),r0G=bZ();Math.max.apply(Math,g.Be(Object.values({NyM:1,PV7:2,M7g:4,bzg:8,jj3:16,LrM:32,zkR:64,Iy7:128,RY7:256,pVM:512,M1z:1024,mT4:2048,j94:4096})));var M89={ZU:{value:0,configurable:!0,writable:!0,enumerable:!1}},hLe=Object.defineProperties,P1=v1?VSO:"ZU",EL,D$r=[];Lf(D$r,7);EL=Object.freeze(D$r);var jZ={},MR={},S3v=Object.freeze({}),Yb={};var R7=typeof g.t7.BigInt==="function"&&typeof g.t7.BigInt(0)==="bigint";var PD=H1(function(E){return R7?E>=bWt&&E<=vGS:E[0]==="-"?grZ(E,P_0):grZ(E,akr)}),P_0=Number.MIN_SAFE_INTEGER.toString(),bWt=R7?BigInt(Number.MIN_SAFE_INTEGER):void 0,akr=Number.MAX_SAFE_INTEGER.toString(),vGS=R7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hPX=typeof Uint8Array.prototype.slice==="function",tz=0,qR=0,z2y;var zh=typeof BigInt==="function"?BigInt.asIntN:void 0,Aul=typeof BigInt==="function"?BigInt.asUintN:void 0,iq=Number.isSafeInteger,Ci=Number.isFinite,$J=Math.trunc,t8W=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ddl={};var L2s={cSt:!0};var rW;var GJW,T28;var bk7=sf(0),Ft={};aK.prototype.init=function(E,e,l,k){var H=k===void 0?{}:k;k=H.aq===void 0?!1:H.aq;H=H.e4===void 0?!1:H.e4;this.aq=k;this.e4=H;E&&(E=Po(E,this.e4),this.G=E.buffer,this.W=E.T,this.S=e||0,this.Z=l!==void 0?this.S+l:this.G.length,this.T=this.S)}; aK.prototype.free=function(){this.clear();gR.length<100&&gR.push(this)}; aK.prototype.clear=function(){this.G=null;this.W=!1;this.T=this.Z=this.S=0;this.aq=!1}; aK.prototype.reset=function(){this.T=this.S}; var gR=[];K1.prototype.free=function(){this.T.clear();this.G=this.S=-1;n1.length<100&&n1.push(this)}; K1.prototype.reset=function(){this.T.reset();this.Z=this.T.T;this.G=this.S=-1}; var n1=[];var Ky8,RP7;QL.prototype.length=function(){return this.T.length}; QL.prototype.end=function(){var E=this.T;this.T=[];return E};var i8=G3(),hs6=G3(),MSs=G3(),NrO=G3(),ZW2=G3(),Y6G=G3(),m$2=G3(),gGr=G3(),K2S=G3(),nG2=G3(),Rs_=G3();T3.prototype.toJSON=function(){return Li(this)}; T3.prototype.rG=function(E){return JSON.stringify(Li(this,E))}; T3.prototype.clone=function(){var E=this.v5,e=E[P1]|0;return ZN(this,E,e)?YJ(this,E,!0):new this.constructor(NK(E,e,!1))}; T3.prototype[y9]=jZ;T3.prototype.toString=function(){return this.v5.toString()};var XbW=Uh(function(E,e,l,k,H){if(E.G!==2)return!1;Xs(E,oK(e,k,l),H);return!0},Oly),uZ7=Uh(function(E,e,l,k,H){if(E.G!==2)return!1; Xs(E,oK(e,k,l),H);return!0},Oly),L3=Symbol(),I4=Symbol(),r6=Symbol(),W_Z=Symbol(),pby=Symbol(),Jc,c8;var s1r=Zs(function(E,e,l){if(E.G!==1)return!1;ms(e,l,Y4(E.T));return!0},g6,K2S),tSG=Zs(function(E,e,l){if(E.G!==1)return!1; E=Y4(E.T);ms(e,l,E===0?void 0:E);return!0},g6,K2S),q6_=Zs(function(E,e,l,k){if(E.G!==1)return!1; Qf(e,l,k,Y4(E.T));return!0},g6,K2S),Er0=Zs(function(E,e,l){if(E.G!==0)return!1; ms(e,l,hO(E.T));return!0},K3,m$2),eLO=Zs(function(E,e,l){if(E.G!==0)return!1; E=hO(E.T);ms(e,l,E===0?void 0:E);return!0},K3,m$2),lWW=Zs(function(E,e,l,k){if(E.G!==0)return!1; Qf(e,l,k,hO(E.T));return!0},K3,m$2),kf6=Zs(function(E,e,l){if(E.G!==0)return!1; ms(e,l,My(E.T));return!0},n3,NrO),HeS=Zs(function(E,e,l){if(E.G!==0)return!1; E=My(E.T);ms(e,l,E===0?void 0:E);return!0},n3,NrO),Oe$=Zs(function(E,e,l,k){if(E.G!==0)return!1; Qf(e,l,k,My(E.T));return!0},n3,NrO),Xj_=Zs(function(E,e,l){if(E.G!==1)return!1; ms(e,l,Zz(E.T));return!0},function(E,e,l){lG9(E,l,C2v(e))},gGr),uFG=Yh(function(E,e,l){if(E.G!==1&&E.G!==2)return!1; e=uB(e,e[P1]|0,l);if(E.G==2)for(l=My(E.T)>>>0,l=E.T.T+l;E.T.T>>0);return!0},function(E,e,l){e=WD(e); e!=null&&e!=null&&(z3(E,l,0),B8(E.T,e))},ZW2),Qr=Zs(function(E,e,l){if(E.G!==0)return!1; ms(e,l,My(E.T));return!0},function(E,e,l){e=Q9(e); e!=null&&(e=parseInt(e,10),z3(E,l,0),tW9(E.T,e))},Rs_);$Vy.prototype.register=function(){Pa(this)};g.d(tc,T3);tc.prototype.Z=JV9([0,tSG,eLO,-2,HeS]);var VMX={pJz:1,aT:2,cO7:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};rV9.prototype.dK=function(E){if(typeof E==="string"&&E.length!=0){var e=this.Xa;if(e.G){E=E.split("&");for(var l=E.length-1;l>=0;l--){var k=E[l].split("="),H=decodeURIComponent(k[0]);k.length>1?(k=decodeURIComponent(k[1]),k=/^[0-9]+$/g.exec(k)?parseInt(k,10):k):k=1;(H=e.T[H])&&H.Z(k)}}}};var W5=null;var HJ=g.t7.performance,orr=!!(HJ&&HJ.mark&&HJ.measure&&HJ.clearMarks),ly=Vz(function(){var E;if(E=orr){var e=e===void 0?window:e;if(W5===null){W5="";try{E="";try{E=e.top.location.hash}catch(k){E=e.location.hash}if(E){var l=E.match(/\bdeid=([\d,]+)/);W5=l?l[1]:""}}catch(k){}}e=W5;E=!!e.indexOf&&e.indexOf("1337")>=0}return E}); kx.prototype.disable=function(){this.T=!1;this.events!==this.G.google_js_reporting_queue&&(ly()&&g.nW(this.events,L_W),this.events.length=0)}; kx.prototype.start=function(E,e){if(!this.T)return null;var l=PC0()||vv7();E=new aGv(E,e,l);e="goog_"+E.label+"_"+E.uniqueId+"_start";HJ&&ly()&&HJ.mark(e);return E}; kx.prototype.end=function(E){if(this.T&&typeof E.value==="number"){var e=PC0()||vv7();E.duration=e-E.value;e="goog_"+E.label+"_"+E.uniqueId+"_end";HJ&&ly()&&HJ.mark(e);!this.T||this.events.length>2048||this.events.push(E)}};var h2l=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),d4=/#|$/,gv9=/[?&]($|#)/;nv0.prototype.j5=function(E,e,l,k,H){H=H||this.rd;try{var O=new xb;O.T.push(1);O.G[1]=Q$("context",E);e.error&&e.meta&&e.id||(e=new Je(cJ(e)));if(e.msg){var X=e.msg.substring(0,512);O.T.push(2);O.G[2]=Q$("msg",X)}var A=e.meta||{};if(this.YG)try{this.YG(A)}catch(B){}if(k)try{k(A)}catch(B){}k=[A];O.T.push(3);O.G[3]=k;var C=CKp();if(C.G){var p=C.G.url||"";O.T.push(4);O.G[4]=Q$("top",p)}var x={url:C.T.url||""};if(C.T.url){var Q=g.Xw(C.T.url);var W=Oq(Q[1],null,Q[3],Q[4])}else W="";p=[x,{url:W}];O.T.push(5); O.G[5]=p;DVW(this.T,H,O,l)}catch(B){try{DVW(this.T,H,{context:"ecmserr",rctx:E,msg:cJ(B),url:C&&C.T.url},l)}catch(w){}}return this.mw}; g.d(Je,ble);var $x,Uq,iy=new kx;$x=new function(){var E="https:";Ib&&Ib.location&&Ib.location.protocol==="http:"&&(E="http:");this.G=E;this.T=.01}; Uq=new nv0;Ib&&Ib.document&&(Ib.document.readyState=="complete"?sb8():iy.T&&lZ(Ib,"load",function(){sb8()}));var Eb0=Date.now(),S1=-1,fY=-1,CBl,r4=-1,VP=!1;D4.prototype.equals=function(E,e){return!!E&&(!(e===void 0?0:e)||this.volume==E.volume)&&this.Z==E.Z&&vb(this.T,E.T)&&!0};by.prototype.Zb=function(){return this.j}; by.prototype.equals=function(E,e){return this.S.equals(E.S,e===void 0?!1:e)&&this.j==E.j&&vb(this.Z,E.Z)&&vb(this.J,E.J)&&this.T==E.T&&this.W==E.W&&this.G==E.G&&this.N==E.N};var wjs={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},NQ={jK:"start",gS:"firstquartile",F$:"midpoint",eK:"thirdquartile",COMPLETE:"complete",ERROR:"error",X$:"metric",PAUSE:"pause",Ur:"resume",JK:"skip",Or:"viewable_impression",iG:"mute",B1:"unmute",Mo:"fullscreen",R1:"exitfullscreen",ea:"bufferstart",LJ:"bufferfinish",PT:"fully_viewable_audible_half_duration_impression",SK:"measurable_impression",uT:"abandon",CJ:"engagedview",No:"impression",OH:"creativeview",LOADED:"loaded", TJz:"progress",CLOSE:"close",N2n:"collapse",PHd:"overlay_resize",Nf0:"overlay_unmeasurable_impression",Hz0:"overlay_unviewable_impression",Dbd:"overlay_viewable_immediate_impression",z67:"overlay_viewable_end_of_session_impression",bT:"custom_metric_viewable",Aa:"audio_audible",fJ:"audio_measurable",lT:"audio_impression"},T6v="start firstquartile midpoint thirdquartile resume loaded".split(" "),i3e=["start","firstquartile","midpoint","thirdquartile"],xyZ=["abandon"],py={UNKNOWN:-1,jK:0,gS:1,F$:2, eK:3,COMPLETE:4,X$:5,PAUSE:6,Ur:7,JK:8,Or:9,iG:10,B1:11,Mo:12,R1:13,PT:14,SK:15,uT:16,CJ:17,No:18,OH:19,LOADED:20,bT:21,ea:22,LJ:23,lT:27,fJ:28,Aa:29};var lie={cBD:"addEventListener",H_R:"getMaxSize",zY0:"getScreenSize",Ddn:"getState",YZM:"getVersion",Q$t:"removeEventListener",HMg:"isViewable"};CZW.prototype.update=function(E){E&&E.document&&(this.j=vJ(!1,E,this.isMobileDevice),this.T=vJ(!0,E,this.isMobileDevice),xRl(this,E),p1W(this,E))};Z4.prototype.cancel=function(){Ts().clearTimeout(this.T);this.T=null}; Z4.prototype.schedule=function(){var E=this,e=Ts(),l=Eq().T.T;this.T=e.setTimeout(qU(l,j1(143,function(){E.G++;E.Z.sample()})),e$X())};g.z=Yx.prototype;g.z.t4=function(){return!1}; g.z.initialize=function(){return this.isInitialized=!0}; g.z.UC=function(){return this.T.h0}; g.z.a_=function(){return this.T.pg}; g.z.fail=function(E,e){if(!this.pg||(e===void 0?0:e))this.pg=!0,this.h0=E,this.N=0,this.T!=this||g4(this)}; g.z.getName=function(){return this.T.J0}; g.z.wP=function(){return this.T.ul()}; g.z.ul=function(){return{}}; g.z.SP=function(){return this.T.N}; g.z.xo=function(){var E=he();E.T=vJ(!0,this.Z,E.isMobileDevice)}; g.z.hH=function(){p1W(he(),this.Z)}; g.z.y8=function(){return this.S.T}; g.z.sample=function(){}; g.z.isActive=function(){return this.T.J}; g.z.gx=function(E){var e=this.T;this.T=E.SP()>=this.N?E:this;e!==this.T?(this.J=this.T.J,g4(this)):this.J!==this.T.J&&(this.J=this.T.J,g4(this))}; g.z.sS=function(E){if(E.G===this.T){var e=!this.S.equals(E,this.V);this.S=E;e&&BPl(this)}}; g.z.iI=function(){return this.V}; g.z.dispose=function(){this.Qd=!0}; g.z.U7=function(){return this.Qd};g.z=KY.prototype;g.z.observe=function(){return!0}; g.z.unobserve=function(){}; g.z.Yl=function(E){this.W=E}; g.z.dispose=function(){if(!this.U7()){var E=this.G;g.U6(E.W,this);E.V&&this.iI()&&Whe(E);this.unobserve();this.SR=!0}}; g.z.U7=function(){return this.SR}; g.z.wP=function(){return this.G.wP()}; g.z.SP=function(){return this.G.SP()}; g.z.UC=function(){return this.G.UC()}; g.z.a_=function(){return this.G.a_()}; g.z.gx=function(){}; g.z.sS=function(){this.Cp()}; g.z.iI=function(){return this.Qd};g.z=nY.prototype;g.z.SP=function(){return this.T.SP()}; g.z.UC=function(){return this.T.UC()}; g.z.a_=function(){return this.T.a_()}; g.z.create=function(E,e,l){var k=null;this.T&&(k=this.mu(E,e,l),mI(this.T,k));return k}; g.z.iZ=function(){return this.aX()}; g.z.aX=function(){return!1}; g.z.init=function(E){return this.T.initialize()?(mI(this.T,this),this.S=E,!0):!1}; g.z.gx=function(E){E.SP()==0&&this.S(E.UC(),this)}; g.z.sS=function(){}; g.z.iI=function(){return!1}; g.z.dispose=function(){this.W=!0}; g.z.U7=function(){return this.W}; g.z.wP=function(){return{}};R5.prototype.add=function(E,e,l){++this.Z;E=new w1l(E,e,l);this.T.push(new w1l(E.G,E.T,E.Z+this.Z/4096));this.G=!0;return this};ifZ.prototype.toString=function(){var E="//pagead2.googlesyndication.com//pagead/gen_204",e=te(this.T);e.length>0&&(E+="?"+e);return E};g.a.prototype.UE=!1;g.a.prototype.U7=function(){return this.UE}; g.a.prototype.dispose=function(){this.UE||(this.UE=!0,this.Gz())}; g.a.prototype[Symbol.dispose]=function(){this.dispose()}; g.a.prototype.addOnDisposeCallback=function(E,e){this.UE?e!==void 0?E.call(e):E():(this.Ff||(this.Ff=[]),e&&(E=E.bind(e)),this.Ff.push(E))}; g.a.prototype.Gz=function(){if(this.Ff)for(;this.Ff.length;)this.Ff.shift()()};var zLt=[0,Er0,ATt,-1];e5.prototype.update=function(E,e,l){E&&(this.T+=e,this.G+=e,this.S+=e,this.Z=Math.max(this.Z,this.S));if(l===void 0?!E:l)this.S=0};var Jve=[1,.75,.5,.3,0];lN.prototype.update=function(E,e,l,k,H,O){O=O===void 0?!0:O;e=H?Math.min(E,e):e;for(H=0;H0&&e>=X;X=!(E>0&&E>=X)||l;this.T[H].update(O&&A,k,!O||X)}};AE.prototype.update=function(E,e,l,k){this.j=this.j!=-1?Math.min(this.j,e.fY):e.fY;this.kt=Math.max(this.kt,e.fY);this.SR=this.SR!=-1?Math.min(this.SR,e.CM):e.CM;this.h0=Math.max(this.h0,e.CM);this.Yt.update(e.CM,l.CM,e.T,E,k);this.c5+=E;e.fY===0&&(this.J0+=E);this.G.update(e.fY,l.fY,e.T,E,k);l=k||l.B_!=e.B_?l.isVisible()&&e.isVisible():l.isVisible();e=!e.isVisible()||e.T;this.R4.update(l,E,e)}; AE.prototype.JW=function(){return this.R4.Z>=this.ND};if(ME&&ME.URL){var dod=ME.URL,GfS;if(GfS=!!dod){var Tb$;a:{if(dod){var ie$=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var B5=ie$.exec(decodeURIComponent(dod));if(B5){Tb$=B5[1]&&B5[1].length>1?B5[1].substring(1):"true";break a}}catch(E){}}Tb$=""}GfS=Tb$.length>0}Uq.mw=!GfS};var $oW=new DG(0,0,0,0);var SAv=new DG(0,0,0,0);g.d(zv,g.a);g.z=zv.prototype; g.z.Gz=function(){if(this.mS.T){if(this.V0.RO){var E=this.mS.T;typeof E.removeEventListener==="function"&&E.removeEventListener("mouseover",this.V0.RO,eq());this.V0.RO=null}this.V0.CG&&(E=this.mS.T,typeof E.removeEventListener==="function"&&E.removeEventListener("mouseout",this.V0.CG,eq()),this.V0.CG=null)}this.Tk&&this.Tk.dispose();this.U1&&this.U1.dispose();delete this.nt;delete this.e5;delete this.Nr;delete this.mS.NJ;delete this.mS.T;delete this.V0;delete this.Tk;delete this.U1;delete this.Xa; g.a.prototype.Gz.call(this)}; g.z.TI=function(){return this.U1?this.U1.T:this.position}; g.z.dK=function(E){Eq().dK(E)}; g.z.iI=function(){return!1}; g.z.mC=function(){return new AE}; g.z.Ad=function(){return this.nt}; g.z.ll=function(E){return vJZ(this,E,1E4)}; g.z.qD=function(E,e,l,k,H,O,X){this.jZ||(this.zR&&(E=this.ZJ(E,l,H,X),k=k&&this.Zl.fY>=(this.B_()?.3:.5),this.yI(O,E,k),this.Dc=e,E.fY>0&&-1===this.Qr&&(this.Qr=e),this.lS==-1&&this.JW()&&(this.lS=e),this.Ue==-2&&(this.Ue=xU(this.TI())?E.fY:-1),this.Zl=E),this.e5(this))}; g.z.yI=function(E,e,l){this.Ad().update(E,e,this.Zl,l)}; g.z.VH=function(){return new s6}; g.z.ZJ=function(E,e,l,k){l=this.VH();l.T=e;e=Ts().G;e=kb(ME)===0?-1:e.isVisible()?0:1;l.G=e;l.fY=this.BZ(E);l.B_=this.B_();l.CM=k;return l}; g.z.BZ=function(E){return this.opacity===0&&cj(this.Xa,"opac")===1?0:E}; g.z.B_=function(){return!1}; g.z.hm=function(){return this.QN||this.Ah}; g.z.GV=function(){Fw()}; g.z.aQ=function(){Fw()}; g.z.BQ=function(){return 0}; g.z.JW=function(){return this.nt.JW()}; g.z.g8=function(){var E=this.zR;E=(this.hasCompleted||this.U7())&&!E;var e=Eq().G!==2||this.BGM;return this.jZ||e&&E?2:this.JW()?4:3}; g.z.Ck=function(){return 0};g.Gv.prototype.next=function(){return g.oA}; g.oA={done:!0,value:void 0};g.Gv.prototype.vu=function(){return this};g.d(NWW,s6);var w5=YAv([void 0,1,2,3,4,8,16]),zo=YAv([void 0,4,8,16]),Uo$={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Uo("p0",zo),p1:Uo("p1",zo),p2:Uo("p2",zo),p3:Uo("p3",zo),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:$U("mtos1",[0,2,4],!1,zo),mtos2:$U("mtos2",[0,2,4],!1,zo),mtos3:$U("mtos3",[0,2,4],!1,zo),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Uo("a0",zo),a1:Uo("a1",zo),a2:Uo("a2",zo),a3:Uo("a3",zo),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:Uo("c0",zo),c1:Uo("c1",zo),c2:Uo("c2",zo),c3:Uo("c3",zo),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Uo("qmtos",w5),qnc:Uo("qnc",w5),qmv:Uo("qmv",w5),qnv:Uo("qnv",w5), 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:Uo("ss0",zo),ss1:Uo("ss1",zo),ss2:Uo("ss2",zo),ss3:Uo("ss3",zo),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"},JT_=Object.assign({},Uo$,{avid:FZ("audio"),avas:"avas",vs:"vs"}),cTG={atos:"atos",avt:$U("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(E,e){return function(l){return l[E]===void 0&&e!==void 0?e:l[E]}}("ss",0), t:"t"};j5.prototype.getValue=function(){return this.G}; j5.prototype.update=function(E,e){E>=32||(this.T&1<=.5;a5(e.volume)&&(this.S=this.S!=-1?Math.min(this.S,e.volume):e.volume,this.J=Math.max(this.J,e.volume));O&&(this.Qd+=E,this.V+=H?E:0);this.T.update(e.fY,l.fY,e.T,E,k,H);this.Z.update(!0,E);this.W.update(H,E);this.pg.update(l.fullscreen,E);this.rH.update(H&&!O,E);E=Math.floor(e.mediaTime/1E3);this.fg.update(E,e.isVisible());this.b3.update(E,e.fY>=1);this.gH.update(E, iN(e))}};sev.prototype.G=function(E){this.Z||(this.T(E)?(E=Ace(this.V,this.S,E),this.W|=E,E=E==0):E=!1,this.Z=E)};g.d(V1,sev);V1.prototype.T=function(){return!0}; V1.prototype.J=function(){return!1}; V1.prototype.getId=function(){var E=this,e=xr(NQ,function(l){return l==E.S}); return py[e].toString()}; V1.prototype.toString=function(){var E="";this.J()&&(E+="c");this.Z&&(E+="s");this.W>0&&(E+=":"+this.W);return this.getId()+E};g.d(S5,V1);S5.prototype.G=function(E,e){e=e===void 0?null:e;e!=null&&this.j.push(e);V1.prototype.G.call(this,E)};g.d(rG,tZy);rG.prototype.G=function(){return null}; rG.prototype.Z=function(){return[]};g.d(Df,KY);g.z=Df.prototype;g.z.FA=function(){if(this.element){var E=this.element,e=this.G.T.Z;try{try{var l=X1W(E.getBoundingClientRect())}catch(p){l=new DG(0,0,0,0)}var k=l.right-l.left,H=l.bottom-l.top,O=gG8(E,e),X=O.x,A=O.y;var C=new DG(Math.round(A),Math.round(X+k),Math.round(A+H),Math.round(X))}catch(p){C=$oW.clone()}this.Z=C;this.T=obX(this,this.Z)}}; g.z.Ig=function(){this.J=this.G.S.T}; g.z.WO=function(E){var e=cj(this.Xa,"od")==1;return VZ7(E,this.J,this.element,e)}; g.z.mG=function(){this.timestamp=Fw()}; g.z.Cp=function(){this.mG();this.FA();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var E=this.element;var e=new g.YX(E.videoWidth,E.videoHeight);E=this.T;var l=bC(E),k=E.getHeight(),H=e.width;e=e.height;H<=0||e<=0||l<=0||k<=0||(H/=e,e=l/k,E=E.clone(),H>e?(l/=H,k=(k-l)/2,k>0&&(k=E.top+k,E.top=Math.round(k),E.bottom=Math.round(k+l))):(k*=H,l=Math.round((l-k)/2),l>0&&(l=E.left+l,E.left=Math.round(l),E.right=Math.round(l+k))));this.T=E}this.Ig(); E=this.T;l=this.J;E=E.left<=l.right&&l.left<=E.right&&E.top<=l.bottom&&l.top<=E.bottom?new DG(Math.max(E.top,l.top),Math.min(E.right,l.right),Math.min(E.bottom,l.bottom),Math.max(E.left,l.left)):new DG(0,0,0,0);l=E.top>=E.bottom||E.left>=E.right?new DG(0,0,0,0):E;E=this.G.S;e=H=k=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.WO(l))l=new DG(0,0,0,0);else{k=he().S;e=new DG(0,k.height,k.width,0);var O;k=wG(l,(O=this.W)!=null?O:this.T);H=wG(l,he().T);e=wG(l,e)}O=l.top>=l.bottom|| l.left>=l.right?new DG(0,0,0,0):Pb(l,-this.T.left,-this.T.top);NE()||(H=k=0);this.V=new by(E,this.element,this.T,O,k,H,this.timestamp,e)}; g.z.getName=function(){return this.G.getName()};var yTG=new DG(0,0,0,0);g.d(bN,Df);g.z=bN.prototype;g.z.observe=function(){this.S();return!0}; g.z.sS=function(){Df.prototype.Cp.call(this)}; g.z.mG=function(){}; g.z.FA=function(){}; g.z.Cp=function(){this.S();Df.prototype.Cp.call(this)}; g.z.gx=function(E){E=E.isActive();E!==this.N&&(E?this.S():(he().T=new DG(0,0,0,0),this.T=new DG(0,0,0,0),this.J=new DG(0,0,0,0),this.timestamp=-1));this.N=E};var d5={},AOy=(d5.firstquartile=0,d5.midpoint=1,d5.thirdquartile=2,d5.complete=3,d5);g.d(P4,zv);g.z=P4.prototype;g.z.iI=function(){return!0}; g.z.tQ=function(){return this.fM==2}; g.z.ll=function(E){return vJZ(this,E,Math.max(1E4,this.Z/3))}; g.z.qD=function(E,e,l,k,H,O,X){var A=this,C=this.j(this)||{};g.zf(C,H);this.Z=C.duration||this.Z;this.V=C.isVpaid||this.V;this.J0=C.isYouTube||this.J0;Ts();this.Yt=!1;H=E47(this,e);qAS(this)===1&&(O=H);zv.prototype.qD.call(this,E,e,l,k,C,O,X);this.jP&&this.jP.Z&&g.nW(this.J,function(p){p.G(A)})}; g.z.yI=function(E,e,l){zv.prototype.yI.call(this,E,e,l);hE(this).update(E,e,this.Zl,l);this.ND=iN(this.Zl)&&iN(e);this.h0==-1&&this.b3&&(this.h0=this.Ad().Z.T);this.R3.Z=0;E=this.JW();e.isVisible()&&y1(this.R3,"vs");E&&y1(this.R3,"vw");a5(e.volume)&&y1(this.R3,"am");iN(e)?y1(this.R3,"a"):y1(this.R3,"mut");this.EC&&y1(this.R3,"f");e.G!=-1&&(y1(this.R3,"bm"),e.G==1&&(y1(this.R3,"b"),iN(e)&&y1(this.R3,"umutb")));iN(e)&&e.isVisible()&&y1(this.R3,"avs");this.ND&&E&&y1(this.R3,"avw");e.fY>0&&y1(this.R3, "pv");MQ(this,this.Ad().Z.T,!0)&&y1(this.R3,"gdr");Xb(this.Ad().G,1)>=2E3&&y1(this.R3,"pmx");this.Yt&&y1(this.R3,"tvoff")}; g.z.mC=function(){return new Ix}; g.z.Ad=function(){return this.nt}; g.z.VH=function(){return new NWW}; g.z.ZJ=function(E,e,l,k){E=zv.prototype.ZJ.call(this,E,e,l,k===void 0?-1:k);E.fullscreen=this.EC;E.paused=this.tQ();E.volume=l.volume;a5(E.volume)||(this.dC++,e=this.Zl,a5(e.volume)&&(E.volume=e.volume));l=l.currentTime;E.mediaTime=l!==void 0&&l>=0?l:-1;return E}; g.z.BZ=function(E){return he(),this.EC?1:zv.prototype.BZ.call(this,E)}; g.z.BQ=function(){return 1}; g.z.getDuration=function(){return this.Z}; g.z.g8=function(){return this.jZ?2:lz7(this)?5:this.JW()?4:3}; g.z.Ck=function(){return this.rH?this.Ad().W.Z>=2E3?4:3:2}; g.z.Yl=function(E){this.U1&&this.U1.Yl(E)};var j$_=g.QH();GNW.prototype.reset=function(){this.T=[];this.G=[]}; var nC=dP(GNW);g.d(tE,nY);g.z=tE.prototype;g.z.getName=function(){return(this.G?this.G:this.T).getName()}; g.z.wP=function(){return(this.G?this.G:this.T).wP()}; g.z.SP=function(){return(this.G?this.G:this.T).SP()}; g.z.init=function(E){var e=!1;(0,g.nW)(this.Z,function(l){l.initialize()&&(e=!0)}); e&&(this.S=E,mI(this.T,this));return e}; g.z.dispose=function(){(0,g.nW)(this.Z,function(E){E.dispose()}); nY.prototype.dispose.call(this)}; g.z.iZ=function(){return LY(this.Z,function(E){return E.t4()})}; g.z.aX=function(){return LY(this.Z,function(E){return E.t4()})}; g.z.mu=function(E,e,l){return new Df(E,this.T,e,l)}; g.z.sS=function(E){this.G=E.G};var Iz7={threshold:[0,.3,.5,.75,1]};g.d(qQ,Df);g.z=qQ.prototype;g.z.observe=function(){var E=this;this.kt||(this.kt=Fw());if(qdZ(298,function(){return FJ9(E)}))return!0; this.G.fail("msf");return!1}; g.z.unobserve=function(){if(this.S&&this.element)try{this.S.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.j&&(this.j.disconnect(),this.j=null)}catch(E){}}; g.z.Cp=function(){var E=El(this);E.length>0&&eo(this,E);Df.prototype.Cp.call(this)}; g.z.FA=function(){}; g.z.WO=function(){return!1}; g.z.Ig=function(){}; g.z.wP=function(){var E={};return Object.assign(this.G.wP(),(E.niot_obs=this.kt,E.niot_cbk=this.pg,E))}; g.z.getName=function(){return"nio"};g.d(l$,nY);l$.prototype.getName=function(){return"nio"}; l$.prototype.aX=function(){return!he().G&&this.T.T.Z.IntersectionObserver!=null}; l$.prototype.mu=function(E,e,l){return new qQ(E,this.T,e,l)};g.d(kW,Yx);kW.prototype.y8=function(){return he().T}; kW.prototype.t4=function(){var E=VYX();this.N!==E&&(this.T!=this&&E>this.T.N&&(this.T=this,g4(this)),this.N=E);return E==2};HV.prototype.sample=function(){u$(this,Rx(),!1)}; HV.prototype.S=function(){var E=NE(),e=Fw();E?(VP||(S1=e,g.nW(nC.T,function(l){var k=l.Ad();k.jR=fC(k,e,l.fM!=1)})),VP=!0):(this.j=v4X(this,e),VP=!1,CBl=e,g.nW(nC.T,function(l){l.zR&&(l.Ad().N=e)})); u$(this,Rx(),!E)}; var Ol=dP(HV);var azZ=null,Dy="",rq=!1;var MYy=hTl().Qc,Cy=hTl().oi;var YLX={b_4:"visible",ZI5:"audible",wV5:"time",T_4:"timetype"},myy={visible:function(E){return/^(100|[0-9]{1,2})$/.test(E)}, audible:function(E){return E=="0"||E=="1"}, timetype:function(E){return E=="mtos"||E=="tos"}, time:function(E){return/^(100|[0-9]{1,2})%$/.test(E)||/^([0-9])+ms$/.test(E)}}; Z1X.prototype.setTime=function(E,e,l){e=="ms"?(this.Z=E,this.S=-1):(this.Z=-1,this.S=E);this.W=l===void 0?"tos":l;return this};g.d(WV,V1);WV.prototype.getId=function(){return this.j}; WV.prototype.J=function(){return!0}; WV.prototype.T=function(E){var e=E.Ad(),l=E.getDuration();return LY(this.N,function(k){if(k.T!=void 0)var H=KJX(k,e);else b:{switch(k.W){case "mtos":H=k.G?e.W.Z:e.Z.T;break b;case "tos":H=k.G?e.W.T:e.Z.T;break b}H=0}H==0?k=!1:(k=k.Z!=-1?k.Z:l!==void 0&&l>0?k.S*l:-1,k=k!=-1&&H>=k);return k})};g.d(BV,gJv);BV.prototype.T=function(E){var e=new mKy;e.T=c4(E,Uo$);e.G=c4(E,cTG);return e};g.d(oD,V1);oD.prototype.T=function(E){return lz7(E)};g.d(wq,tZy);g.d(zM,V1);zM.prototype.T=function(E){return E.Ad().JW()};g.d(dq,S5);dq.prototype.T=function(E){var e=g.i_(this.j,cj(Eq().Xa,"ovms"));return!E.jZ&&(E.fM!=0||e)};g.d(GM,wq);GM.prototype.G=function(){return new dq(this.T)}; GM.prototype.Z=function(){return[new zM("viewable_impression",this.T),new oD(this.T)]};g.d(TM,bN);TM.prototype.S=function(){var E=g.eS("ima.admob.getViewability"),e=cj(this.Xa,"queryid");typeof E==="function"&&e&&E(e)}; TM.prototype.getName=function(){return"gsv"};g.d(i$,nY);i$.prototype.getName=function(){return"gsv"}; i$.prototype.aX=function(){var E=he();Eq();return E.G&&!1}; i$.prototype.mu=function(E,e,l){return new TM(this.T,e,l)};g.d($W,bN);$W.prototype.S=function(){var E=this,e=g.eS("ima.bridge.getNativeViewability"),l=cj(this.Xa,"queryid");typeof e==="function"&&l&&e(l,function(k){g.QI(k)&&E.j++;var H=k.opt_nativeViewVisibleBounds||{},O=k.opt_nativeViewHidden;E.T=u7S(k.opt_nativeViewBounds||{});var X=E.G.S;X.T=O?yTG.clone():u7S(H);E.timestamp=k.opt_nativeTime||-1;he().T=X.T;k=k.opt_nativeVolume;k!==void 0&&(X.volume=k)})}; $W.prototype.getName=function(){return"nis"};g.d(Ul,nY);Ul.prototype.getName=function(){return"nis"}; Ul.prototype.aX=function(){var E=he();Eq();return E.G&&!1}; Ul.prototype.mu=function(E,e,l){return new $W(this.T,e,l)};g.d(JB,Yx);g.z=JB.prototype;g.z.t4=function(){return this.G.Rj!=null}; g.z.ul=function(){var E={};this.fg&&(E.mraid=this.fg);this.SR&&(E.mlc=1);E.mtop=this.G.Iu4;this.j&&(E.mse=this.j);this.c5&&(E.msc=1);E.mcp=this.G.compatibility;return E}; g.z.JC=function(E){var e=g.LS.apply(1,arguments);try{return this.G.Rj[E].apply(this.G.Rj,e)}catch(l){I5(538,l,.01,function(k){k.method=E})}}; g.z.initialize=function(){var E=this;if(this.isInitialized)return!this.a_();this.isInitialized=!0;if(this.G.compatibility===2)return this.j="ng",this.fail("w"),!1;if(this.G.compatibility===1)return this.j="mm",this.fail("w"),!1;he().N=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?tY7(this):pC(this.Z,"load",function(){Ts().setTimeout(j1(292,function(){return tY7(E)}),100)},292); return!0}; g.z.xo=function(){var E=he(),e=k38(this,"getMaxSize");E.T=new DG(0,e.width,e.height,0)}; g.z.hH=function(){he().S=k38(this,"getScreenSize")}; g.z.dispose=function(){Ehy(this);Yx.prototype.dispose.call(this)};var IG9=new function(E,e){this.key=E;this.defaultValue=e===void 0?!1:e;this.valueType="boolean"}("45378663");g.z=yB.prototype;g.z.Q4=function(E){dG(E,!1);Uy7(E)}; g.z.XL=function(){}; g.z.ly=function(E,e,l,k){var H=this;E=new P4(Ib,E,l?e:-1,7,this.Mu(),this.e_());E.I6=k;PX9(E.Xa);JT(E.Xa,"queryid",E.I6);E.dK("");LPe(E,function(){return H.D$.apply(H,g.Be(g.LS.apply(0,arguments)))},function(){return H.g9.apply(H,g.Be(g.LS.apply(0,arguments)))}); (k=dP(so).T)&&bip(E,k);this.Z&&(E.Yl(this.Z),this.Z=null);E.mS.NJ&&dP(SLX);return E}; g.z.gx=function(E){switch(E.SP()){case 0:if(E=dP(so).T)E=E.T,g.U6(E.W,this),E.V&&this.iI()&&Whe(E);ID();break;case 2:X8()}}; g.z.sS=function(){}; g.z.iI=function(){return!1}; g.z.g9=function(E,e){E.jZ=!0;switch(E.BQ()){case 1:C87(E,e);break;case 2:this.SI(E)}}; g.z.vj=function(E){var e=E.j(E);e&&(e=e.volume,E.rH=a5(e)&&e>0);O17(E,0);return Zf(E,"start",NE())}; g.z.zK=function(E,e,l){u$(Ol,[E],!NE());return this.OM(E,e,l)}; g.z.OM=function(E,e,l){return Zf(E,l,NE())}; g.z.Hj=function(E){return aD(E,"firstquartile",1)}; g.z.Dz=function(E){E.b3=!0;return aD(E,"midpoint",2)}; g.z.r9=function(E){return aD(E,"thirdquartile",3)}; g.z.MA=function(E){var e=aD(E,"complete",4);ax(E);return e}; g.z.Pj=function(E){E.fM=3;return Zf(E,"error",NE())}; g.z.XD=function(E,e,l){e=NE();if(E.tQ()&&!e){var k=E.Ad(),H=Fw();k.N=H}u$(Ol,[E],!e);E.tQ()&&(E.fM=1);return Zf(E,l,e)}; g.z.KU=function(E,e){e=this.zK(E,e||{},"skip");ax(E);return e}; g.z.zZ=function(E,e){dG(E,!0);return this.zK(E,e||{},"fullscreen")}; g.z.NA=function(E,e){dG(E,!1);return this.zK(E,e||{},"exitfullscreen")}; g.z.Pt=function(E,e,l){e=E.Ad();var k=Fw();e.jR=fC(e,k,E.fM!=1);u$(Ol,[E],!NE());E.fM==1&&(E.fM=2);return Zf(E,l,NE())}; g.z.YL=function(E){u$(Ol,[E],!NE());return E.G()}; g.z.Wc=function(E){u$(Ol,[E],!NE());this.m0(E);ax(E);return E.G()}; g.z.D$=function(){}; g.z.SI=function(){}; g.z.m0=function(){}; g.z.Qk=function(){}; g.z.PZ=function(){}; g.z.e_=function(){this.T||(this.T=this.PZ());return this.T==null?new rG:new GM(this.T)}; g.z.Mu=function(){return new BV};g.d(Ly,V1);Ly.prototype.T=function(E){return E.Ck()==4};g.d(hB,S5);hB.prototype.T=function(E){E=E.Ck();return E==3||E==4};g.d(M4,wq);M4.prototype.G=function(){return new hB(this.T)}; M4.prototype.Z=function(){return[new Ly(this.T)]};g.d(N4,gJv);N4.prototype.T=function(E){E&&(E.e===28&&(E=Object.assign({},E,{avas:3})),E.vs===4||E.vs===5)&&(E=Object.assign({},E,{vs:3}));var e=new mKy;e.T=c4(E,JT_);e.G=c4(E,cTG);return e};Wsl.prototype.G=function(){return g.eS(this.T)};g.d(Zy,yB);g.z=Zy.prototype;g.z.XL=function(E,e){var l=this,k=dP(so);if(k.T!=null)switch(k.T.getName()){case "nis":var H=zZX(this,E,e);break;case "gsv":H=w8Z(this,E,e);break;case "exc":H=dU8(this,E)}H||(e.opt_overlayAdElement?H=void 0:e.opt_adElement&&(H=xUX(this,E,e.opt_adElement,e.opt_osdId)));H&&H.BQ()==1&&(H.j==g.fl&&(H.j=function(O){return l.Qk(O)}),oh7(this,H,e)); return H}; g.z.Qk=function(E){E.G=0;E.Qd=0;if(E.S=="h"||E.S=="n"){Eq();E.gH&&(Eq(),vV(this)!="h"&&vV(this));var e=g.eS("ima.common.getVideoMetadata");if(typeof e==="function")try{var l=e(E.I6)}catch(H){E.G|=4}else E.G|=2}else if(E.S=="b")if(e=g.eS("ytads.bulleit.getVideoMetadata"),typeof e==="function")try{l=e(E.I6)}catch(H){E.G|=4}else E.G|=2;else if(E.S=="ml")if(e=g.eS("ima.common.getVideoMetadata"),typeof e==="function")try{l=e(E.I6)}catch(H){E.G|=4}else E.G|=2;else E.G|=1;E.G||(l===void 0?E.G|=8:l===null? E.G|=16:g.QI(l)?E.G|=32:l.errorCode!=null&&(E.Qd=l.errorCode,E.G|=64));l==null&&(l={});e=l;E.N=0;for(var k in wjs)e[k]==null&&(E.N|=wjs[k]);Q48(e,"currentTime");Q48(e,"duration");a5(l.volume)&&a5()&&(l.volume*=NaN);return l}; g.z.PZ=function(){Eq();vV(this)!="h"&&vV(this);var E=G3Z(this);return E!=null?new Wsl(E):null}; g.z.SI=function(E){!E.T&&E.jZ&&PV(this,E,"overlay_unmeasurable_impression")&&(E.T=!0)}; g.z.m0=function(E){E.Mc&&(E.JW()?PV(this,E,"overlay_viewable_end_of_session_impression"):PV(this,E,"overlay_unviewable_impression"),E.Mc=!1)}; g.z.D$=function(){}; g.z.ly=function(E,e,l,k){if(F_p()){var H=cj(Eq().Xa,"mm"),O={};(H=(O[e1.cT]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",O[e1.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",O)[H])&&UU7(this,H);this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&I5(1044,Error())}E=yB.prototype.ly.call(this,E,e,l,k);this.W&&(e=this.J,E.W==null&&(E.W=new hYe),e.T[E.I6]=E.W,E.W.W=j$_);return E}; g.z.Q4=function(E){E&&E.BQ()==1&&this.W&&delete this.J.T[E.I6];return yB.prototype.Q4.call(this,E)}; g.z.e_=function(){this.T||(this.T=this.PZ());return this.T==null?new rG:this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new M4(this.T):new GM(this.T)}; g.z.Mu=function(){return this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new N4:new BV}; g.z.Yl=function(E,e,l,k,H){e=new DG(l,e+k,l+H,e);(E=KC(nC,E))?E.Yl(e):this.Z=e}; var IWk=yP(193,cce,void 0,p89);g.qW("Goog_AdSense_Lidar_sendVastEvent",IWk);var FkH=j1(194,function(E,e){e=e===void 0?{}:e;E=$Uy(dP(Zy),E,e);return Jc7(E)}); g.qW("Goog_AdSense_Lidar_getViewability",FkH);var fWs=yP(195,function(){return zLe()}); g.qW("Goog_AdSense_Lidar_getUrlSignalsArray",fWs);var V82=j1(196,function(){return JSON.stringify(zLe())}); g.qW("Goog_AdSense_Lidar_getUrlSignalsList",V82);var Is8=w8(["//ep2.adtrafficquality.google/sodar/",""]),FsW=w8(["//tpc.googlesyndication.com/sodar/",""]);g.d(gq,Error);g.d(RD,g.a);RD.prototype.lA=function(){return this.wpc.f()}; RD.prototype.RS=function(E){this.wpc.c(E)}; RD.prototype.Kx=function(E){return this.wpc.m(rc0(E))}; RD.prototype.JZ=function(E){return this.wpc.mws(rc0(E))}; g.d(Ky,g.a);Ky.prototype.snapshot=function(E){return this.D0.s(Object.assign({},E.uR&&{c:E.uR},E.IY&&{s:E.IY},E.kK!==void 0&&{p:E.kK}))}; Ky.prototype.Gl=function(E){this.D0.e(E)}; Ky.prototype.XP=function(){return this.D0.l()};var LsW;g.d(tB,g.a);tB.prototype.share=function(){if(this.U7())throw Error("E:AD");this.G++;return this}; tB.prototype.dispose=function(){--this.G||g.a.prototype.dispose.call(this)}; LsW=Symbol.dispose;hZ8.prototype.tO=function(E,e){this.T.tO("/client_streamz/bg/frs",E,e)}; M4l.prototype.tO=function(E,e,l,k,H,O){this.T.tO("/client_streamz/bg/wrl",E,e,l,k,H,O)}; N69.prototype.eH=function(E,e){this.T.DB("/client_streamz/bg/ec",E,e)}; Z37.prototype.tO=function(E,e,l){this.T.tO("/client_streamz/bg/el",E,e,l)}; YhW.prototype.eH=function(E,e){this.T.DB("/client_streamz/bg/cec",E,e)}; mU9.prototype.eH=function(E,e){this.T.DB("/client_streamz/bg/po/csc",E,e)}; ghe.prototype.eH=function(E,e){this.T.DB("/client_streamz/bg/po/ctav",E,e)}; Ks7.prototype.eH=function(E,e){this.T.DB("/client_streamz/bg/po/cwsc",E,e)};g.d(nhp,T3);g.d(e3,T3);var AA=[1,2,3];var SpH=[0,AA,Q$G,Oe$,pjt];var rTH=[0,AX,[0,s1r,Er0]];g.d(lO,T3);var uO=[1,2,3];var DoG=[0,uO,lWW,q6_,p7,rTH];g.d(ke,T3);var ber=[0,AX,SpH,DoG];var vr2=[0,um];g.d(H6,T3);var PKG=[0,um,-1,CKS];var aWr=[0,um,-1,kf6,CKS];g.d(OM,T3);var zjv=[1,2,3];var Lk1=[0,zjv,p7,PKG,p7,aWr,p7,vr2];g.d(Xc,T3);Xc.prototype.kC=function(){var E=k4(this,3,Jv,3,!0);Zi(E);return E[void 0]};Xc.prototype.Z=JV9([0,um,Lk1,xo2,AX,ber,Xj_,uFG]);g.d(s4S,T3);g.z=C$.prototype;g.z.isEnabled=function(){if(!g.t7.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{oL:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.z.set=function(E,e,l){var k=!1;if(typeof l==="object"){var H=l.Wa7;k=l.secure||!1;var O=l.domain||void 0;var X=l.path||void 0;var A=l.oL}if(/[;=\s]/.test(E))throw Error('Invalid cookie name "'+E+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');A===void 0&&(A=-1);l=O?";domain="+O:"";X=X?";path="+X:"";k=k?";secure":"";A=A<0?"":A==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+A*1E3)).toUTCString();this.T.cookie=E+"="+e+l+X+A+k+(H!=null?";samesite="+ H:"")}; g.z.get=function(E,e){for(var l=E+"=",k=(this.T.cookie||"").split(";"),H=0,O;H=0;e--)this.remove(E[e])}; var yT=new C$(typeof document=="undefined"?null:document);xe.prototype.compress=function(E){var e,l,k,H;return g.D(function(O){switch(O.G){case 1:return e=new CompressionStream("gzip"),l=(new Response(e.readable)).arrayBuffer(),k=e.writable.getWriter(),g.S(O,k.write((new TextEncoder).encode(E)),2);case 2:return g.S(O,k.close(),3);case 3:return H=Uint8Array,g.S(O,l,4);case 4:return O.return(new H(O.T))}})}; xe.prototype.isSupported=function(E){return E<1024?!1:typeof CompressionStream!=="undefined"};g.d(QM,T3);W6.prototype.setInterval=function(E){this.intervalMs=E;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; W6.prototype.start=function(){var E=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){E.tick()},this.intervalMs),this.G=this.T())}; W6.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; W6.prototype.tick=function(){var E=this;if(this.enabled){var e=Math.max(this.T()-this.G,0);e0?l:void 0));l=tv(l,4,xJ(H>0?H:void 0));l=tv(l,5,xJ(O>0?O:void 0));H=l.v5;O=H[P1]|0;l=NR(l,O)?l:ZN(l,H,O)?YJ(l,H):new l.constructor(NK(H,O,!0));$4(X,wV,10,l)}X=this.T.clone();l=Date.now().toString();X=tv(X,4,Th(l));E=UL(X,JA,3,E.slice());k&&(X=new B6,k=tv(X,13,xJ(k)),X=new ot, k=$4(X,B6,2,k),X=new UM,k=$4(X,ot,1,k),k=Dz(k,2,9),$4(E,UM,18,k));e&&Vf(E,14,e);return E};g.Fc.prototype.G=0;g.Fc.prototype.reset=function(){this.T=this.Z=this.S;this.G=0}; g.Fc.prototype.getValue=function(){return this.Z};g.d(R4,T3);var hLt=sh(R4);g.d(il7,T3);var Go;Go=new $Vy;g.d(rV,g.a);g.z=rV.prototype;g.z.Gz=function(){S3(this);this.G.stop();this.fg.stop();g.a.prototype.Gz.call(this)}; g.z.dispatch=function(E){if(E instanceof JA)this.log(E);else try{var e=new JA,l=E.rG();var k=SY(e,8,l);this.log(k)}catch(H){Dm(this,4,1)}}; g.z.log=function(E){Dm(this,2,1);if(this.c5){E=E.clone();var e=this.R4++;E=Vf(E,21,e);this.componentId&&SY(E,26,this.componentId);e=E;var l=Re(e,1);var k=k===void 0?!1:k;var H=typeof l;k=l==null?l:H==="bigint"?String(zh(64,l)):pi(l)?H==="string"?BD(l):k?dW(l):Gh(l):void 0;k==null&&(k=Date.now(),k=Number.isFinite(k)?k.toString():"0",tv(e,1,Th(k)));k=Re(e,15);k!=null&&(typeof k==="bigint"?PD(k)?k=Number(k):(k=zh(64,k),k=PD(k)?Number(k):String(k)):k=pi(k)?typeof k==="number"?Gh(k):BD(k):void 0);k!=null|| Vf(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(k=this.experimentIds.clone(),$4(e,QM,16,k));Dm(this,1,1);e=this.T.length-1E3+1;e>0&&(this.T.splice(0,e),this.S+=e,Dm(this,3,e));this.T.push(E);this.gX||this.G.enabled||this.G.start()}}; g.z.flush=function(E,e){var l=this;if(this.T.length===0)E&&E();else if(this.h0&&this.pg)this.Z.G=3,iYe(this);else{var k=Date.now();if(this.jR>k&&this.Qd0&&(l.Qd=Date.now(),l.jR=l.Qd+W);W=Wt(Fi);var U;v1&&W&&((U=B.v5[W])==null?void 0:U[175237375])!=null&&Di(S6S,3);a:{var c=c===void 0?!1:c;if(Wt(r0G)&&Wt(Fi)&&void 0===r0G){U=B.v5;W=U[Fi];if(!W)break a;if(W=W.lU)try{W(U,175237375,L2s);break a}catch(V){$b(V)}}c&&(c=B.v5, (U=Wt(Fi))&&U in c&&(c=c[U])&&delete c[175237375])}c=Go.T?Go.G(B,Go.T,175237375,Go.Z):Go.G(B,175237375,null,Go.Z);if(c=c===null?void 0:c)c=co(c,1,-1),c!==-1&&(l.W=new g.Fc(c<1?1:c,3E5,.1),l.G.setInterval(l.W.getValue()))}}E&&E();l.J=0},x=function(W,B){var w=zN(O,JA,3); var U=Number(vXX(O,14));g.f$(l.W);l.G.setInterval(l.W.getValue());W===401&&X&&(l.J0=X);U&&(l.S+=U);B===void 0&&(B=l.isRetryable(W));B&&(l.T=w.concat(l.T),l.gX||l.G.enabled||l.G.start());Dm(l,7,1);e&&e("net-send-failed",W);++l.J},Q=function(){l.network&&l.network.send(C,p,x)}; A?A.then(function(W){Dm(l,5,H);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=W;C.wr=2;Q()},function(){Dm(l,6,H); Q()}):Q()}}}}; g.z.isRetryable=function(E){return 500<=E&&E<600||E===401||E===0};bO.prototype.send=function(E,e,l){var k=this,H,O,X,A,C,p,x,Q,W,B;return g.D(function(w){switch(w.G){case 1:return O=(H=k.yP?new AbortController:void 0)?setTimeout(function(){H.abort()},E.timeoutMillis):void 0,g.U9(w,2,3),X=Object.assign({},{method:E.requestType, headers:Object.assign({},E.requestHeaders)},E.body&&{body:E.body},E.withCredentials&&{credentials:"include"},{signal:E.timeoutMillis&&H?H.signal:null}),g.S(w,fetch(E.url,X),5);case 5:A=w.T;if(A.status!==200){(C=l)==null||C(A.status);w.xt(3);break}if((p=e)==null){w.xt(7);break}return g.S(w,A.text(),8);case 8:p(w.T);case 7:case 3:g.r8(w);clearTimeout(O);g.bX(w,0);break;case 2:x=g.FW(w);switch((Q=x)==null?void 0:Q.name){case "AbortError":(W=l)==null||W(408);break;default:(B=l)==null||B(400)}w.xt(3)}})}; bO.prototype.S8=function(){return 4};g.d(v6,g.a);v6.prototype.EX=function(){this.W=!0;return this}; v6.prototype.build=function(){this.network||(this.network=new bO);var E=new rV({logSource:this.logSource,Qi:this.Qi?this.Qi:AeS,sessionIndex:this.sessionIndex,r23:this.Dv,fh:this.S,gX:!1,EX:this.W,KP:this.KP,network:this.network});g.L(this,E);if(this.G){var e=this.G,l=It(E.Z);SY(l,7,e)}E.j=new xe;this.componentId&&(E.componentId=this.componentId);this.qC&&(E.qC=this.qC);this.pageId&&(E.pageId=this.pageId);this.T&&((l=this.T)?(E.experimentIds||(E.experimentIds=new QM),e=E.experimentIds,l=l.rG(),SY(e, 4,l)):E.experimentIds&&tv(E.experimentIds,4));this.Z&&(E.h0=E.pg);wJX(E.Z);this.network.Df&&this.network.Df(this.logSource);this.network.YJz&&this.network.YJz(E);return E};g.d(P6,g.a);P6.prototype.flush=function(E){E=E||[];if(E.length){for(var e=new s4S,l=[],k=0;k-1?(e=E[X],l||(e.Va=!1)):(e=new FIv(e,this.src,O,!!k,H),e.Va=l,E.push(e));return e}; g.z.remove=function(E,e,l,k){E=E.toString();if(!(E in this.listeners))return!1;var H=this.listeners[E];e=K$(H,e,l,k);return e>-1?(Ye(H[e]),g.$G(H,e),H.length==0&&(delete this.listeners[E],this.T--),!0):!1}; g.z.removeAll=function(E){E=E&&E.toString();var e=0,l;for(l in this.listeners)if(!E||l==E){for(var k=this.listeners[l],H=0;H-1?E[H]:null}; g.z.hasListener=function(E,e){var l=E!==void 0,k=l?E.toString():"",H=e!==void 0;return g.e8(this.listeners,function(O){for(var X=0;X>>0);g.Bt(g.CU,g.a);g.CU.prototype[j5W]=!0;g.z=g.CU.prototype;g.z.addEventListener=function(E,e,l,k){g.Rt(this,E,e,l,k)}; g.z.removeEventListener=function(E,e,l,k){vxX(this,E,e,l,k)}; g.z.dispatchEvent=function(E){var e=this.RD;if(e){var l=[];for(var k=1;e;e=e.RD)l.push(e),++k}e=this.gh;k=E.type||E;if(typeof E==="string")E=new g.MT(E,e);else if(E instanceof g.MT)E.target=E.target||e;else{var H=E;E=new g.MT(k,e);g.zf(E,H)}H=!0;var O;if(l)for(O=l.length-1;!E.G&&O>=0;O--){var X=E.currentTarget=l[O];H=pU(X,k,!0,E)&&H}E.G||(X=E.currentTarget=e,H=pU(X,k,!0,E)&&H,E.G||(H=pU(X,k,!1,E)&&H));if(l)for(O=0;!E.G&&O0){this.G--;var E=this.T;this.T=E.next;E.next=null}else E=this.Z();return E};var Wq;oB.prototype.add=function(E,e){var l=N4W.get();l.set(E,e);this.G?this.G.next=l:this.T=l;this.G=l}; oB.prototype.remove=function(){var E=null;this.T&&(E=this.T,this.T=this.T.next,this.T||(this.G=null),E.next=null);return E}; var N4W=new x5(function(){return new wm},function(E){return E.reset()}); wm.prototype.set=function(E,e){this.T=E;this.scope=e;this.next=null}; wm.prototype.reset=function(){this.next=this.scope=this.T=null};var zy,dm=!1,hEl=new oB;ZYZ.prototype.reset=function(){this.context=this.G=this.Z=this.T=null;this.S=!1}; var YqX=new x5(function(){return new ZYZ},function(E){E.reset()}); g.cq.prototype.then=function(E,e,l){return EUl(this,Q2(typeof E==="function"?E:null),Q2(typeof e==="function"?e:null),l)}; g.cq.prototype.$goog_Thenable=!0;g.z=g.cq.prototype;g.z.finally=function(E){var e=this;E=Q2(E);return new Promise(function(l,k){nxW(e,function(H){E();l(H)},function(H){E(); k(H)})})}; g.z.Md=function(E,e){return EUl(this,null,Q2(E),e)}; g.z.catch=g.cq.prototype.Md;g.z.cancel=function(E){if(this.T==0){var e=new V2(E);g.Gy(function(){RE7(this,e)},this)}}; g.z.Cgg=function(E){this.T=0;Jo(this,2,E)}; g.z.RK7=function(E){this.T=0;Jo(this,3,E)}; g.z.lD=function(){for(var E;E=s5p(this);)t1p(this,E,this.T,this.j);this.J=!1}; var HC0=$b;g.Bt(V2,o1);V2.prototype.name="cancel";g.Bt(g.S2,g.CU);g.z=g.S2.prototype;g.z.enabled=!1;g.z.tN=null;g.z.setInterval=function(E){this.zf=E;this.tN&&this.enabled?(this.stop(),this.start()):this.tN&&this.stop()}; g.z.fut=function(){if(this.enabled){var E=g.QH()-this.g7;E>0&&E0&&(this.getStatus(),this.J=setTimeout(this.po.bind(this), this.pg)),this.getStatus(),this.V=!0,this.T.send(E),this.V=!1}catch(X){this.getStatus(),Gvp(this,X)}}; g.z.po=function(){typeof NO!="undefined"&&this.T&&(this.S="Timed out after "+this.pg+"ms, aborting",this.G=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.z.abort=function(E){this.T&&this.Z&&(this.getStatus(),this.Z=!1,this.W=!0,this.T.abort(),this.W=!1,this.G=E||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),MO(this))}; g.z.Gz=function(){this.T&&(this.Z&&(this.Z=!1,this.W=!0,this.T.abort(),this.W=!1),MO(this,!0));g.ho.zg.Gz.call(this)}; g.z.SX=function(){this.U7()||(this.SR||this.V||this.W?TGW(this):this.lxd())}; g.z.lxd=function(){TGW(this)}; g.z.isActive=function(){return!!this.T}; g.z.isComplete=function(){return g.ZQ(this)==4}; g.z.getStatus=function(){try{return g.ZQ(this)>2?this.T.status:-1}catch(E){return-1}}; g.z.getResponseHeader=function(E){if(this.T&&this.isComplete())return E=this.T.getResponseHeader(E),E===null?void 0:E}; g.z.getLastError=function(){return typeof this.S==="string"?this.S:String(this.S)};nU.prototype.send=function(E,e,l){e=e===void 0?function(){}:e; l=l===void 0?function(){}:l; ztX(E.url,function(k){k=k.target;Y5(k)?e(g.mv(k)):l(k.getStatus())},E.requestType,E.body,E.requestHeaders,E.timeoutMillis,E.withCredentials)}; nU.prototype.S8=function(){return 1};sH.prototype.done=function(){this.logger.En(this.event,RB()-this.startTime)}; g.d(to,tB);g.d(Ee,to);g.z=Ee.prototype;g.z.hZ=function(){}; g.z.vQ=function(){}; g.z.En=function(){}; g.z.lV=function(){}; g.z.vg=function(){}; g.z.iM=function(E,e,l,k){return k}; g.z.rb=function(){}; g.z.YP=function(){}; g.z.vX=function(){}; g.d(eF,to);g.z=eF.prototype;g.z.update=function(E){this.logger.dispose();this.logger=E}; g.z.vQ=function(E){this.logger.vQ(E)}; g.z.En=function(E,e){this.logger.En(E,e)}; g.z.lV=function(E){this.logger.lV(E)}; g.z.vg=function(){this.logger.vg()}; g.z.iM=function(E,e,l,k){return this.logger.iM(E,e,l,k)}; g.z.rb=function(E){this.logger.rb(E)}; g.z.YP=function(E){this.logger.YP(E)}; g.z.vX=function(E){this.logger.vX(E)}; g.z.hZ=function(E){this.logger.hZ(E)}; g.d(JE7,g.a);g.d(li,to);g.z=li.prototype;g.z.hZ=function(E){this.metrics.pGM.tO(E,this.Y1)}; g.z.vQ=function(E){this.metrics.eventCount.eH(E,this.Y1)}; g.z.En=function(E,e){this.metrics.Ab.tO(e,E,this.Y1)}; g.z.lV=function(E){this.metrics.errorCount.eH(E,this.Y1)}; g.z.iM=function(E,e,l,k){function H(A){if(!O.U7()){var C=RB()-X;O.metrics.TB3.tO(C,E,l,A,e,O.Y1)}} var O=this,X=RB();k.then(function(){return void H(0)},function(A){return void H(A instanceof vq?A.code:-1)}); return k}; g.z.rb=function(E){this.metrics.Zwz.eH(E,this.Y1)}; g.z.YP=function(E){this.metrics.Gi.eH(E,this.Y1)}; g.z.vX=function(E){this.metrics.GS7.eH(E,this.Y1)}; g.d(kV,li);kV.prototype.vg=function(){cE8(this.T)};g.d(Hy,T3);g.d(Oe,T3);g.d(Xa,T3);var Lb9=sh(Xa),Ifp=function(E){return H1(function(e){return e instanceof E&&!NR(e)})}(Xa); Xa.messageId="bfkj";g.d(yE0,T3);g.d(sl,T3);g.d(ui,T3);var Fb7=sh(ui);g.d(Cz,g.a);Cz.prototype.snapshot=function(E){if(this.U7())throw Error("Already disposed");this.logger.vQ("n");var e=this.logger.share();return this.Z.then(function(l){var k=l.Er;return new Promise(function(H){var O=new sH(e,"n");k(function(X){O.done();e.hZ(X.length);e.vg();e.dispose();H(X)},[E.uR, E.IY,E.T4,E.kK])})})}; Cz.prototype.zj=function(E){var e=this;if(this.U7())throw Error("Already disposed");this.logger.vQ("n");var l=qO(this.logger,function(){return e.S([E.uR,E.IY,E.T4,E.kK])},"n"); this.logger.hZ(l.length);this.logger.vg();return l}; Cz.prototype.Gl=function(E){this.Z.then(function(e){var l;(l=e.LUH)==null||l(E)})}; Cz.prototype.XP=function(){return this.logger.share()};g.d(Qh,T3);g.d(Wy,T3);By.prototype.oE=function(E){return ZC9(this,E,new Ee,0)};g.d(oh,g.a);oh.prototype.snapshot=function(E){var e=this;return g.D(function(l){switch(l.G){case 1:if(e.U7())throw Error("Already disposed");if(e.G||e.j){l.xt(2);break}return g.S(l,e.W.promise,2);case 2:if(!e.G){l.xt(4);break}return g.S(l,e.G.snapshot(E),5);case 5:return l.return(l.T);case 4:throw e.j;}})}; oh.prototype.Gl=function(E){var e,l;(e=this.G)==null||(l=e.Gl)==null||l.call(e,E)}; oh.prototype.handleError=function(E){if(!this.U7()){this.j=E;this.W.resolve();var e,l;(l=(e=this.options).nwH)==null||l.call(e,E)}}; oh.prototype.XP=function(){return this.logger.share()}; var gU8={nvt:432E5,iS:3E5,AR:10,WA:1E4,jp:3E4,gF:3E4,rS6:6E4,uD:1E3,Q9:6E4,o2:6E5,sU:.25,iD:2,maxAttempts:10};var Ze6,ly0=(Ze6=Math.imul)!=null?Ze6:function(E,e){return E*e|0},Gb=[196, 200,224,18];Tb.prototype.rG=function(){return String(this.T)+","+this.G.join()}; Tb.prototype.Oq=function(E,e){var l=void 0;if(this.G[this.T]!==E){var k=this.G.indexOf(E);k!==-1?(this.G.splice(k,1),k0;)e[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(E%62),E=Math.floor(E/62);return e.join("")}};var oW0;g.d($V,g.a);$V.prototype.JZ=function(E,e){var l=this.Kx(E);e==null||e(l);return qO(this.logger,function(){return g.Jz(l,2)},this.G)}; oW0=Symbol.dispose;g.d(cy,$V);cy.prototype.Kx=function(E,e){var l=this;this.logger.vQ(this.T);++this.W>=this.J&&this.Z.resolve();var k=E();E=qO(this.logger,function(){return l.S(k)},"C"); if(E===void 0)throw new gq(17,"YNJ:Undefined");if(!(E instanceof Uint8Array))throw new gq(18,"ODM:Invalid");e==null||e(E);return E}; g.d(yh,$V);yh.prototype.Kx=function(){return this.S}; g.d(jF,$V);jF.prototype.Kx=function(){var E=this;return qO(this.logger,function(){return y$(E.S)},"d")}; jF.prototype.JZ=function(){return this.S}; g.d(Ih,$V);Ih.prototype.Kx=function(){if(this.S)return this.S;this.S=wVe(this,function(E){return"_"+Bq8(E)}); return wVe(this,function(E){return E})}; g.d(fz,$V);fz.prototype.Kx=function(){var E=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],l=e.concat([this.S&255,this.clientState],[E>>24&255,E>>16&255,E>>8&255,E&255]);E=new Uint8Array(2+l.length);E[0]=34;E[1]=l.length;E.set(l,2);l=E.subarray(2);for(var k=e=e.length;k150))try{this.cache=new C$9(E,this.logger)}catch(e){this.reportError(new gq(22,"GBJ:init",e))}}; g.z.reportError=function(E){this.logger.lV(E.code);this.onError(E);return E}; var GMS=function(E){return H1(function(e){if(!fk6(e))return!1;for(var l=g.T(Object.entries(E)),k=l.next();!k.done;k=l.next()){var H=g.T(k.value);k=H.next().value;H=H.next().value;if(!(k in e)){if(H.Hh7===!0)continue;return!1}if(!H(e[k]))return!1}return!0})}({D0:function(E){return H1(function(e){return e instanceof E})}(oh)},"");var EV7=(new Date).getTime();g.d(bi,T3);var Yp6=sh(bi);Iy9.prototype.getMetadata=function(){return this.metadata};vy.prototype.getMetadata=function(){return this.metadata}; vy.prototype.getStatus=function(){return this.status};Py.prototype.j=function(E,e){e=e===void 0?{}:e;return new Iy9(E,this,e)}; Py.prototype.getName=function(){return this.name};var mo1=new Py("/google.internal.waa.v1.Waa/Create",Qh,bi,function(E){return E.rG()},Yp6);g.d(ah,T3);var M5W=new Py("/google.internal.waa.v1.Waa/GenerateIT",Wy,ah,function(E){return E.rG()},sh(ah));var O$W=new Set(["SAPISIDHASH","APISIDHASH"]);g.d(Lz,T3);Lz.prototype.getValue=function(){var E=Re(this,2);if(Array.isArray(E)||E instanceof T3)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return OL(this,2)};g.d(hZ,T3);hZ.prototype.getMessage=function(){return jY(this,2)}; var D47=sh(hZ);Mh.prototype.Ot=function(E,e){E=="data"?this.Z.push(e):E=="metadata"?this.W.push(e):E=="status"?this.J.push(e):E=="end"?this.S.push(e):E=="error"&&this.G.push(e);return this}; Mh.prototype.removeListener=function(E,e){E=="data"?gx(this.Z,e):E=="metadata"?gx(this.W,e):E=="status"?gx(this.J,e):E=="end"?gx(this.S,e):E=="error"&&gx(this.G,e);return this}; Mh.prototype.cancel=function(){this.T.abort()}; Mh.prototype.cancel=Mh.prototype.cancel;Mh.prototype.removeListener=Mh.prototype.removeListener;Mh.prototype.on=Mh.prototype.Ot;g.d(fyp,Error);g.Bt(g.Kz,oUX);g.Kz.prototype.T=function(){var E=new nz(this.S,this.Z);this.G&&E.setCredentialsMode(this.G);return E}; g.Kz.prototype.setCredentialsMode=function(E){this.G=E}; g.Bt(nz,g.CU);g.z=nz.prototype;g.z.open=function(E,e){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.kt=E;this.pg=e;this.readyState=1;Rh(this)}; g.z.send=function(E){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.N.signal.aborted)throw this.abort(),Error("Request was aborted.");this.T=!0;var e={headers:this.V,method:this.kt,credentials:this.W,cache:void 0,signal:this.N.signal};E&&(e.body=E);(this.SR||g.t7).fetch(new Request(this.pg,e)).then(this.CU.bind(this),this.sF.bind(this))}; g.z.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.N.abort();this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,se(this));this.readyState=0}; g.z.CU=function(E){if(this.T&&(this.S=E,this.G||(this.status=this.S.status,this.statusText=this.S.statusText,this.G=E.headers,this.readyState=2,Rh(this)),this.T&&(this.readyState=3,Rh(this),this.T)))if(this.responseType==="arraybuffer")E.arrayBuffer().then(this.b5.bind(this),this.sF.bind(this));else if(typeof g.t7.ReadableStream!=="undefined"&&"body"in E){this.Z=E.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.j=new TextDecoder;bye(this)}else E.text().then(this.yw.bind(this),this.sF.bind(this))}; g.z.Wj=function(E){if(this.T){if(this.J&&E.value)this.response.push(E.value);else if(!this.J){var e=E.value?E.value:new Uint8Array(0);if(e=this.j.decode(e,{stream:!E.done}))this.response=this.responseText+=e}E.done?se(this):Rh(this);this.readyState==3&&bye(this)}}; g.z.yw=function(E){this.T&&(this.response=this.responseText=E,se(this))}; g.z.b5=function(E){this.T&&(this.response=E,se(this))}; g.z.sF=function(){this.T&&se(this)}; g.z.setRequestHeader=function(E,e){this.V.append(E,e)}; g.z.getResponseHeader=function(E){return this.G?this.G.get(E.toLowerCase())||"":""}; g.z.getAllResponseHeaders=function(){if(!this.G)return"";for(var E=[],e=this.G.entries(),l=e.next();!l.done;)l=l.value,E.push(l[0]+": "+l[1]),l=e.next();return E.join("\r\n")}; g.z.setCredentialsMode=function(E){this.W=E}; Object.defineProperty(nz.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(E){this.setCredentialsMode(E?"include":"same-origin")}});g.tZ.prototype.toString=function(){var E=[],e=this.W;e&&E.push(Og(e,gr1,!0),":");var l=this.T;if(l||e=="file")E.push("//"),(e=this.N)&&E.push(Og(e,gr1,!0),"@"),E.push(g.yb(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.Z,l!=null&&E.push(":",String(l));if(l=this.G)this.T&&l.charAt(0)!="/"&&E.push("/"),E.push(Og(l,l.charAt(0)=="/"?Kk0:nr1,!0));(l=this.S.toString())&&E.push("?",l);(l=this.J)&&E.push("#",Og(l,RLW));return E.join("")}; g.tZ.prototype.resolve=function(E){var e=this.clone(),l=!!E.W;l?g.qh(e,E.W):l=!!E.N;l?e.N=E.N:l=!!E.T;l?g.Eg(e,E.T):l=E.Z!=null;var k=E.G;if(l)g.eX(e,E.Z);else if(l=!!E.G){if(k.charAt(0)!="/")if(this.T&&!this.G)k="/"+k;else{var H=e.G.lastIndexOf("/");H!=-1&&(k=e.G.slice(0,H+1)+k)}H=k;if(H==".."||H==".")k="";else if(g.fe(H,"./")||g.fe(H,"/.")){k=I$(H,"/");H=H.split("/");for(var O=[],X=0;X1||O.length==1&&O[0]!="")&&O.pop(), k&&X==H.length&&O.push("")):(O.push(A),k=!0)}k=O.join("/")}else k=H}l?e.G=k:l=E.S.toString()!=="";l?lF(e,E.S.clone()):l=!!E.J;l&&(e.J=E.J);return e}; g.tZ.prototype.clone=function(){return new g.tZ(this)}; var gr1=/[#\/\?@]/g,nr1=/[#\?:]/g,Kk0=/[#\?]/g,hbX=/[#\?@]/g,RLW=/#/g;g.z=Hr.prototype;g.z.add=function(E,e){Ai(this);this.Z=null;E=Cc(this,E);var l=this.T.get(E);l||this.T.set(E,l=[]);l.push(e);this.G=this.G+1;return this}; g.z.remove=function(E){Ai(this);E=Cc(this,E);return this.T.has(E)?(this.Z=null,this.G=this.G-this.T.get(E).length,this.T.delete(E)):!1}; g.z.clear=function(){this.T=this.Z=null;this.G=0}; g.z.isEmpty=function(){Ai(this);return this.G==0}; g.z.forEach=function(E,e){Ai(this);this.T.forEach(function(l,k){l.forEach(function(H){E.call(e,H,k,this)},this)},this)}; g.z.LF=function(){Ai(this);for(var E=Array.from(this.T.values()),e=Array.from(this.T.keys()),l=[],k=0;k0?String(E[0]):e}; g.z.toString=function(){if(this.Z)return this.Z;if(!this.T)return"";for(var E=[],e=Array.from(this.T.keys()),l=0;l>>3;O.Z!=1&&O.Z!=2&&O.Z!=15&&Wr(O,X,A,"unexpected tag");O.T=1;O.G=0;O.S=0} function l(C){O.S++;O.S==5&&C&240&&Wr(O,X,A,"message length too long");O.G|=(C&127)<<(O.S-1)*7;C&128||(O.T=2,O.N=0,typeof Uint8Array!=="undefined"?O.W=new Uint8Array(O.G):O.W=Array(O.G),O.G==0&&H())} function k(C){O.W[O.N++]=C;O.N==O.G&&H()} function H(){if(O.Z<15){var C={};C[O.Z]=O.W;O.j.push(C)}O.T=0} for(var O=this,X=E instanceof Array?E:new Uint8Array(E),A=0;A0?E:null};Br.prototype.isInputValid=function(){return this.T===null}; Br.prototype.K0=function(){return this.T}; Br.prototype.LN=function(){return!1}; Br.prototype.parse=function(E){this.T!==null&&nW0(this,E,"stream already broken");var e=null;try{var l=this.Z;l.Z||K47(l,E,"stream already broken");l.T+=E;var k=Math.floor(l.T.length/4);if(k==0)var H=null;else{try{var O=fWy(l.T.slice(0,k*4))}catch(X){K47(l,l.T,X.message)}l.G+=k*4;l.T=l.T.slice(k*4);H=O}e=H===null?null:this.S.parse(H)}catch(X){nW0(this,E,X.message)}this.G+=E.length;return e};var t8O={INIT:0,k5:1,Of:2,qj:3,dQ:4,E3:5,STRING:6,qe:7,Kb:8,ZA:9,Sy:10,Xt:11,kT:12,wk:13,TQ:14,GQ:15,Ej:16,d4:17,If:18,oT:19,Bw:20};g.z=wN.prototype;g.z.isInputValid=function(){return this.W!=3}; g.z.K0=function(){return this.V}; g.z.done=function(){return this.W===2}; g.z.LN=function(){return!1}; g.z.parse=function(E){function e(){for(;W0;)if(w=E[W++], O.N===4?O.N=0:O.N++,!w)break a;if(w==='"'&&!O.j){O.T=k();break}if(w==="\\"&&!O.j&&(O.j=!0,w=E[W++],!w))break;if(O.j)if(O.j=!1,w==="u"&&(O.N=1),w=E[W++])continue;else break;A.lastIndex=W;w=A.exec(E);if(!w){W=E.length+1;break}W=w.index+1;w=E[w.index];if(!w)break}O.Z+=W-U;continue;case C.ZA:if(!w)continue;w==="r"?O.T=C.Sy:zW(O,E,W);continue;case C.Sy:if(!w)continue;w==="u"?O.T=C.Xt:zW(O,E,W);continue;case C.Xt:if(!w)continue;w==="e"?O.T=k():zW(O,E,W);continue;case C.kT:if(!w)continue;w==="a"?O.T=C.wk: zW(O,E,W);continue;case C.wk:if(!w)continue;w==="l"?O.T=C.TQ:zW(O,E,W);continue;case C.TQ:if(!w)continue;w==="s"?O.T=C.GQ:zW(O,E,W);continue;case C.GQ:if(!w)continue;w==="e"?O.T=k():zW(O,E,W);continue;case C.Ej:if(!w)continue;w==="u"?O.T=C.d4:zW(O,E,W);continue;case C.d4:if(!w)continue;w==="l"?O.T=C.If:zW(O,E,W);continue;case C.If:if(!w)continue;w==="l"?O.T=k():zW(O,E,W);continue;case C.oT:w==="."?O.T=C.Bw:zW(O,E,W);continue;case C.Bw:if("0123456789.eE+-".indexOf(w)!==-1)continue;else W--,O.Z--,O.T= k();continue;default:zW(O,E,W)}}} function k(){var w=X.pop();return w!=null?w:C.k5} function H(w){O.G>1||(w||(w=Q===-1?O.S+E.substring(x,W):E.substring(Q,W)),O.pg?O.J.push(w):O.J.push(JSON.parse(w)),Q=W)} for(var O=this,X=O.kt,A=O.SR,C=t8O,p=E.length,x=0,Q=-1,W=0;W0?(B=O.J,O.J=[],B):null}return null};dN.prototype.isInputValid=function(){return this.W===null}; dN.prototype.K0=function(){return this.W}; dN.prototype.LN=function(){return!1}; dN.prototype.parse=function(E){function e(C){O.G=6;O.W="The stream is broken @"+O.T+"/"+X+". Error: "+C+". With input:\n";throw Error(O.W);} function l(){O.Z=new wN({BDd:!0,N1:!0})} function k(C){if(C)for(var p=0;p1)&&e("extra status: "+C);O.J=!0;var p={};p[2]=C[0];O.S.push(p)}} for(var O=this,X=0;X0?(E=O.S,O.S=[],E):null};GW.prototype.iX=function(){return this.T}; GW.prototype.getStatus=function(){return this.W}; GW.prototype.pg=function(E){E=E.target;try{if(E==this.T)a:{var e=g.ZQ(this.T),l=this.T.G,k=this.T.getStatus(),H=g.mv(this.T);E=[];if(g.gm(this.T)instanceof Array){var O=g.gm(this.T);O.length>0&&O[0]instanceof Uint8Array&&(this.V=!0,E=O)}if(!(e<3||e==3&&!H&&E.length==0))if(k=k==200||k==206,e==4&&(l==8?TW(this,7):l==7?TW(this,8):k||TW(this,3)),this.G||(this.G=RbX(this.T),this.G==null&&TW(this,5)),this.W>2)iF(this);else{if(E.length>this.Z){var X=E.length;l=[];try{if(this.G.LN())for(var A=0;Athis.Z){A=H.slice(this.Z);this.Z=H.length;try{var p=this.G.parse(A);p!=null&&this.S&&this.S(p)}catch(x){TW(this,5);iF(this);break a}}e==4?(H.length!= 0||this.V?TW(this,2):TW(this,4),iF(this)):TW(this,1)}}}catch(x){TW(this,6),iF(this)}};g.z=sD7.prototype;g.z.Ot=function(E,e){var l=this.G[E];l||(l=[],this.G[E]=l);l.push(e);return this}; g.z.addListener=function(E,e){this.Ot(E,e);return this}; g.z.removeListener=function(E,e){var l=this.G[E];l&&g.U6(l,e);(E=this.T[E])&&g.U6(E,e);return this}; g.z.once=function(E,e){var l=this.T[E];l||(l=[],this.T[E]=l);l.push(e);return this}; g.z.Y7D=function(E){var e=this.G.data;e&&toe(E,e);(e=this.T.data)&&toe(E,e);this.T.data=[]}; g.z.pNg=function(){switch(this.Z.getStatus()){case 1:$N(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$N(this,"error");break;case 8:$N(this,"close");break;case 2:$N(this,"end")}};qlW.prototype.serverStreaming=function(E,e,l,k){var H=this,O=E.substring(0,E.length-k.name.length);return X6y(function(X){var A=X.AE,C=X.getMetadata(),p=lmp(H,!1);C=k69(H,C,p,O+A.getName());var x=H$W(p,A.G,!0);X=A.T(X.w5);p.send(C,"POST",X);return x},this.Tm).call(this,k.j(e,l))};ucZ.prototype.create=function(E,e,l){var k=this.T,H=this.G+"/$rpc/google.internal.waa.v1.Waa/Create";e=e||{};l=l===void 0?{}:l;return NG9(k,H,E,e,mo1,l)};var AAl="://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(" "),COX=/\bocr\b/;var xT8=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(E){throw E;}},{vZM:!0, VCt:!0,EZd:!1,d26:Gdt,IY0:Tr6,m2D:!1,tC6:!1,rlt:!0,nY4:d$2,KJ3:!1,oYM:!1,rWn:!1});var cr=null,jX=!1,UT9=1,TVW=Symbol("SIGNAL"),To={version:0,KL5:0,EE:!1,Qs:void 0,Gy:void 0,SN:void 0,oA:0,Ar:void 0,YV:void 0,lJ:!1,Uy:!1,kind:"unknown",zM:function(){return!1}, DS:function(){}, JJ:function(){}, NDn:function(){}};var im=Symbol("UNSET"),$S=Symbol("COMPUTING"),Uy=Symbol("ERRORED");Object.assign({},To,{value:im,EE:!0,error:null,rX:Ji,kind:"computed",zM:function(E){return E.value===im||E.value===$S}, DS:function(E){if(E.value===$S)throw Error("");var e=E.value;E.value=$S;var l=BVp(E),k=!1;try{var H=E.lx();yK(null);k=e!==im&&e!==Uy&&H!==Uy&&E.rX(e,H)}catch(O){H=Uy,E.error=O}finally{oeS(E,l)}k?E.value=e:(E.value=H,E.version++)}});var G60=Object.assign({},To,{rX:Ji,value:void 0,kind:"signal"});Object.assign({},To,{value:im,EE:!0,error:null,rX:Ji,kind:"linkedSignal",zM:function(E){return E.value===im||E.value===$S}, DS:function(E){if(E.value===$S)throw Error("");var e=E.value;E.value=$S;var l=BVp(E);try{var k=E.source();var H=E.lx(k,e===im||e===Uy?void 0:{source:E.khn,value:e});E.khn=k}catch(O){H=Uy,E.error=O}finally{oeS(E,l)}e!==im&&H!==Uy&&E.rX(e,H)?E.value=e:(E.value=H,E.version++)}});Object.assign({},To,{Uy:!0,lJ:!1,JJ:function(E){E.schedule!==null&&E.schedule(E.av5)}, tPR:!1,CR0:function(){}});g.d(SX,g.CU);SX.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.O_.EZ(this.W);delete SX.instance}; SX.prototype.iO=function(){return this.T}; SX.prototype.iq=function(){var E=this;this.W=this.O_.b1(function(){var e;return g.D(function(l){if(l.G==1)return E.T?((e=window.navigator)==null?0:e.onLine)?l.xt(3):g.S(l,VK(E),3):g.S(l,VK(E),3);E.iq();g.$0(l)})},3E4)};g.d(cAp,T3);var qp1=UVZ(cAp,[0,Qr,zLt,kf6,Qr,-2,kf6,Er0]);DC.prototype.set=function(E,e){e=e===void 0?!0:e;0<=E&&E<52&&Number.isInteger(E)&&this.data[E]!==e&&(this.data[E]=e,this.T=-1)}; DC.prototype.get=function(E){return!!this.data[E]};var vr;g.Bt(g.Mx,g.a);g.z=g.Mx.prototype;g.z.start=function(){this.stop();this.S=!1;var E=jtW(this),e=ImW(this);E&&!e&&this.G.mozRequestAnimationFrame?(this.T=g.Rt(this.G,"MozBeforePaint",this.Z),this.G.mozRequestAnimationFrame(null),this.S=!0):this.T=E&&e?E.call(this.G,this.Z):this.G.setTimeout(NrW(this.Z),20)}; g.z.stop=function(){if(this.isActive()){var E=jtW(this),e=ImW(this);E&&!e&&this.G.mozRequestAnimationFrame?EH(this.T):E&&e?e.call(this.G,this.T):this.G.clearTimeout(this.T)}this.T=null}; g.z.isActive=function(){return this.T!=null}; g.z.kf=function(){this.S&&this.T&&EH(this.T);this.T=null;this.J.call(this.W,g.QH())}; g.z.Gz=function(){this.stop();g.Mx.zg.Gz.call(this)};g.Bt(g.Nx,g.a);g.z=g.Nx.prototype;g.z.b9=0;g.z.Gz=function(){g.Nx.zg.Gz.call(this);this.stop();delete this.T;delete this.G}; g.z.start=function(E){this.stop();this.b9=g.rm(this.Z,E!==void 0?E:this.zf)}; g.z.stop=function(){this.isActive()&&g.t7.clearTimeout(this.b9);this.b9=0}; g.z.isActive=function(){return this.b9!=0}; g.z.oP=function(){this.b9=0;this.T&&this.T.call(this.G)};g.d(g.gN,g.a);g.z=g.gN.prototype;g.z.pN=function(E){this.Z=arguments;this.tN||this.G?this.T=!0:Kc(this)}; g.z.stop=function(){this.tN&&(g.t7.clearTimeout(this.tN),this.tN=null,this.T=!1,this.Z=null)}; g.z.pause=function(){this.G++}; g.z.resume=function(){this.G--;this.G||!this.T||this.tN||(this.T=!1,Kc(this))}; g.z.Gz=function(){g.a.prototype.Gz.call(this);this.stop()};g.nc.prototype[Symbol.iterator]=function(){return this}; g.nc.prototype.next=function(){var E=this.T.next();return{value:E.done?void 0:this.G.call(void 0,E.value),done:E.done}};g.Bt(g.HY,g.CU);g.z=g.HY.prototype;g.z.isPlaying=function(){return this.T==1}; g.z.isPaused=function(){return this.T==-1}; g.z.Oh=function(){this.ZW("begin")}; g.z.ym=function(){this.ZW("end")}; g.z.onFinish=function(){this.ZW("finish")}; g.z.onStop=function(){this.ZW("stop")}; g.z.ZW=function(E){this.dispatchEvent(E)};var EXO=Vz(function(){var E=g.Qz("DIV"),e=g.AV?"-webkit":NV?"-moz":null,l="transition:opacity 1s linear;";e&&(l+=e+"-transition:opacity 1s linear;");e=F2e({style:l});if(E.nodeType===1&&/^(script|style)$/i.test(E.tagName))throw Error("");E.innerHTML=Wa(e);return g.ZG(E.firstChild,"transition")!=""});g.Bt(Oz,g.HY);g.z=Oz.prototype;g.z.play=function(){if(this.isPlaying())return!1;this.Oh();this.ZW("play");this.startTime=g.QH();this.T=1;if(EXO())return g.MV(this.G,this.J),this.Z=g.rm(this.bYH,void 0,this),!0;this.Q6(!1);return!1}; g.z.bYH=function(){g.qV(this.G);V3X(this.G,this.j);g.MV(this.G,this.S);this.Z=g.rm((0,g.CW)(this.Q6,this,!1),this.W*1E3)}; g.z.stop=function(){this.isPlaying()&&this.Q6(!0)}; g.z.Q6=function(E){g.MV(this.G,"transition","");g.t7.clearTimeout(this.Z);g.MV(this.G,this.S);this.endTime=g.QH();this.T=0;if(E)this.onStop();else this.onFinish();this.ym()}; g.z.Gz=function(){this.stop();Oz.zg.Gz.call(this)}; g.z.pause=function(){};var rA7={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};Xy("Element","attributes")||Xy("Node","attributes");Xy("Element","innerHTML")||Xy("HTMLElement","innerHTML");Xy("Node","nodeName");Xy("Node","nodeType");Xy("Node","parentNode");Xy("Node","childNodes");Xy("HTMLElement","style")||Xy("Element","style");Xy("HTMLStyleElement","sheet");var LdX=b$Z("getPropertyValue"),hr0=b$Z("setProperty");Xy("Element","namespaceURI")||Xy("Node","namespaceURI");var am8={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var YMX,A0H,Z$7,NVv,mTZ;YMX=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]");A0H=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.eP$=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.An=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]");Z$7=/^http:\/\/.*/;g.luk=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");NVv=/\s+/;mTZ=/[\d\u06f0-\u06f9]/;pD.prototype.vu=function(){return new x_(this.G())}; pD.prototype[Symbol.iterator]=function(){return new Qy(this.G())}; pD.prototype.T=function(){return new Qy(this.G())}; g.d(x_,g.Gv);x_.prototype.next=function(){return this.G.next()}; x_.prototype[Symbol.iterator]=function(){return new Qy(this.G)}; x_.prototype.T=function(){return new Qy(this.G)}; g.d(Qy,pD);Qy.prototype.next=function(){return this.Z.next()};BY.prototype.clone=function(){return new BY(this.T,this.j,this.Z,this.W,this.S,this.J,this.G,this.N)}; BY.prototype.equals=function(E){return this.T==E.T&&this.j==E.j&&this.Z==E.Z&&this.W==E.W&&this.S==E.S&&this.J==E.J&&this.G==E.G&&this.N==E.N};wJ.prototype.clone=function(){return new wJ(this.start,this.end)};(function(){if(oB8){var E=/Windows NT ([0-9.]+)/;return(E=E.exec(g.vj()))?E[1]:"0"}return Q6?(E=/1[0|1][_.][0-9_.]+/,(E=E.exec(g.vj()))?E[0].replace(/_/g,"."):"10"):g.Yq?(E=/Android\s+([^\);]+)(\)|;)/,(E=E.exec(g.vj()))?E[1]:""):U$S||J01||c0d?(E=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(E=E.exec(g.vj()))?E[1].replace(/_/g,"."):""):""})();var Kd0=function(){if(g.pJ)return zE(/Firefox\/([0-9.]+)/);if(g.uw||g.aa||g.RU)return $$0;if(g.oW){if(b2()||va()){var E=zE(/CriOS\/([0-9.]+)/);if(E)return E}return zE(/Chrome\/([0-9.]+)/)}if(g.pA&&!b2())return zE(/Version\/([0-9.]+)/);if(Mb||Nb){if(E=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.vj()))return E[1]+"."+E[2]}else if(g.t1)return(E=zE(/Android\s+([0-9.]+)/))?E:zE(/Version\/([0-9.]+)/);return""}();g.Bt(g.GE,g.a);g.z=g.GE.prototype;g.z.subscribe=function(E,e,l){var k=this.G[E];k||(k=this.G[E]=[]);var H=this.J;this.T[H]=E;this.T[H+1]=e;this.T[H+2]=l;this.J=H+3;k.push(H);return H}; g.z.unsubscribe=function(E,e,l){if(E=this.G[E]){var k=this.T;if(E=E.find(function(H){return k[H+1]==e&&k[H+2]==l}))return this.MR(E)}return!1}; g.z.MR=function(E){var e=this.T[E];if(e){var l=this.G[e];this.S!=0?(this.Z.push(E),this.T[E+1]=function(){}):(l&&g.U6(l,E),delete this.T[E],delete this.T[E+1],delete this.T[E+2])}return!!e}; g.z.publish=function(E,e){var l=this.G[E];if(l){var k=Array(arguments.length-1),H=arguments.length,O;for(O=1;O0&&this.S==0)for(;l=this.Z.pop();)this.MR(l)}}return O!=0}return!1}; g.z.clear=function(E){if(E){var e=this.G[E];e&&(e.forEach(this.MR,this),delete this.G[E])}else this.T.length=0,this.G={}}; g.z.Gz=function(){g.GE.zg.Gz.call(this);this.clear();this.Z.length=0};g.TE.prototype.set=function(E,e){e===void 0?this.T.remove(E):this.T.set(E,g.Pq(e))}; g.TE.prototype.get=function(E){try{var e=this.T.get(E)}catch(l){return}if(e!==null)try{return JSON.parse(e)}catch(l){throw"Storage: Invalid value was encountered";}}; g.TE.prototype.remove=function(E){this.T.remove(E)};g.Bt(iw,g.TE);iw.prototype.set=function(E,e){iw.zg.set.call(this,E,stX(e))}; iw.prototype.G=function(E){E=iw.zg.get.call(this,E);if(E===void 0||E instanceof Object)return E;throw"Storage: Invalid value was encountered";}; iw.prototype.get=function(E){if(E=this.G(E)){if(E=E.data,E===void 0)throw"Storage: Invalid value was encountered";}else E=void 0;return E};g.Bt($_,iw);$_.prototype.set=function(E,e,l){if(e=stX(e)){if(l){if(l=l.length)return g.oA;var H=l.key(e++);if(E)return g.Tv(H);H=l.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Tv(H)}; return k}; g.z.clear=function(){yy(this);this.T.clear()}; g.z.key=function(E){yy(this);return this.T.key(E)};g.Bt(jd,cY);g.Bt(E5p,cY);g.Bt(IS,Jn);IS.prototype.set=function(E,e){this.G.set(this.T+E,e)}; IS.prototype.get=function(E){return this.G.get(this.T+E)}; IS.prototype.remove=function(E){this.G.remove(this.T+E)}; IS.prototype.vu=function(E){var e=this.G[Symbol.iterator](),l=this,k=new g.Gv;k.next=function(){var H=e.next();if(H.done)return H;for(H=H.value;H.slice(0,l.T.length)!=l.T;){H=e.next();if(H.done)return H;H=H.value}return g.Tv(E?H.slice(l.T.length):l.G.get(H))}; return k};fD.prototype.getValue=function(){return this.G}; fD.prototype.clone=function(){return new fD(this.T,this.G)};g.z=Vy.prototype;g.z.Oq=function(E,e){var l=this.T;l.push(new fD(E,e));E=l.length-1;e=this.T;for(l=e[E];E>0;){var k=E-1>>1;if(e[k].T>l.T)e[E]=e[k],E=k;else break}e[E]=l}; g.z.remove=function(){var E=this.T,e=E.length,l=E[0];if(!(e<=0)){if(e==1)E.length=0;else{E[0]=E.pop();E=0;e=this.T;for(var k=e.length,H=e[E];E>1;){var O=E*2+1,X=E*2+2;O=XH.T)break;e[E]=e[O];E=O}e[E]=H}return l.getValue()}}; g.z.SG=function(){for(var E=this.T,e=[],l=E.length,k=0;k>>16&65535|0;for(var O;l!==0;){O=l>2E3?2E3:l;l-=O;do H=H+e[k++]|0,E=E+H|0;while(--O);H%=65521;E%=65521}return H|E<<16|0};for(var ua={},JX,uj_=[],c5=0;c5<256;c5++){JX=c5;for(var Au2=0;Au2<8;Au2++)JX=JX&1?3988292384^JX>>>1:JX>>>1;uj_[c5]=JX}ua=function(E,e,l,k){l=k+l;for(E^=-1;k>>8^uj_[(E^e[k])&255];return E^-1};var sz={};sz={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 Zh=[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],gJ=[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],coe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],BmX=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],em=Array(576);bw(em);var la=Array(60);bw(la);var mC=Array(512);bw(mC);var NC=Array(256);bw(NC);var Y_=Array(29);bw(Y_);var KD=Array(30);bw(KD);var $Oe,UO7,Jov,iUS=!1;var Qc;Qc=[new xu(0,0,0,0,function(E,e){var l=65535;for(l>E.f9-5&&(l=E.f9-5);;){if(E.MN<=1){Ad(E);if(E.MN===0&&e===0)return 1;if(E.MN===0)break}E.FS+=E.MN;E.MN=0;var k=E.SM+l;if(E.FS===0||E.FS>=k)if(E.MN=E.FS-k,E.FS=k,ku(E,!1),E.WN.PN===0)return 1;if(E.FS-E.SM>=E.S1-262&&(ku(E,!1),E.WN.PN===0))return 1}E.Oq=0;if(e===4)return ku(E,!0),E.WN.PN===0?3:4;E.FS>E.SM&&ku(E,!1);return 1}), new xu(4,4,8,4,CF),new xu(4,5,16,8,CF),new xu(4,6,32,32,CF),new xu(4,4,16,16,pF),new xu(8,16,32,32,pF),new xu(8,16,128,128,pF),new xu(8,32,128,256,pF),new xu(32,128,258,1024,pF),new xu(32,258,258,4096,pF)];var Tm8={};Tm8=function(){this.input=null;this.kA=this.hd=this.X1=0;this.output=null;this.Jq=this.PN=this.yW=0;this.msg="";this.state=null;this.Y2=2;this.hf=0};var yoS=Object.prototype.toString; WC.prototype.push=function(E,e){var l=this.WN,k=this.options.chunkSize;if(this.ended)return!1;var H=e===~~e?e:e===!0?4:0;typeof E==="string"?l.input=kyp(E):yoS.call(E)==="[object ArrayBuffer]"?l.input=new Uint8Array(E):l.input=E;l.X1=0;l.hd=l.input.length;do{l.PN===0&&(l.output=new Dh.Qb(k),l.yW=0,l.PN=k);E=GyS(l,H);if(E!==1&&E!==0)return this.ym(E),this.ended=!0,!1;if(l.PN===0||l.hd===0&&(H===4||H===2))if(this.options.to==="string"){var O=Dh.d3(l.output,l.yW);e=O;O=O.length;if(O<65537&&(e.subarray&& Xa2||!e.subarray))e=String.fromCharCode.apply(null,Dh.d3(e,O));else{for(var X="",A=0;A0||l.PN===0)&&E!==1);if(H===4)return(l=this.WN)&&l.state?(k=l.state.status,k!==42&&k!==69&&k!==73&&k!==91&&k!==103&&k!==113&&k!==666?E=tn(l,-2):(l.state=null,E=k===113?tn(l,-3):0)):E=-2,this.ym(E),this.ended=!0,E===0;H===2&&(this.ym(0),l.PN=0);return!0}; WC.prototype.ym=function(E){E===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Dh.pm(this.chunks));this.chunks=[];this.err=E;this.msg=this.WN.msg};var o0="@@redux/INIT"+BC(),SHW="@@redux/REPLACE"+BC();var ro8=typeof Symbol==="function"&&Symbol.observable||"@@observable";var C2k=[0,WkW,-3,xS];g.d(PWv,T3);var ZxX=UVZ(PWv,[0,Qr,BbO,um,WkW,um,-1,xS,WkW,xS,-1,Qr,xS,BbO,AX,C2k,um,-1,xS]);var aQl=1668240452;var k0X=new g.dS("adInfoDialogEndpoint");var Dv7=new g.dS("adPingingEndpoint");var lX8=new g.dS("crossDeviceProgressCommand");var $t=new g.dS("actionCompanionAdRenderer");var g0=new g.dS("adActionInterstitialRenderer");var pas=new g.dS("adDurationRemainingRenderer");var RP=new g.dS("adHoverTextButtonRenderer");var ej9=new g.dS("adInfoDialogRenderer");var Sj=new g.dS("adMessageRenderer");var sa=new g.dS("adPreviewRenderer");var JS=new g.dS("adsEngagementPanelRenderer");var FpW=new g.dS("dismissablePanelTextPortraitImageRenderer");var j6X=new g.dS("adsEngagementPanelSectionListViewModel");var xdO=new g.dS("flyoutCtaRenderer");var Ua=new g.dS("imageCompanionAdRenderer");var YA=new g.dS("instreamAdPlayerOverlayRenderer");var jZH=new g.dS("instreamSurveyAdBackgroundImageRenderer");var nG=new g.dS("instreamSurveyAdPlayerOverlayRenderer");var vF=new g.dS("instreamSurveyAdRenderer"),KG=new g.dS("instreamSurveyAdSingleSelectQuestionRenderer"),g$=new g.dS("instreamSurveyAdMultiSelectQuestionRenderer"),yr=new g.dS("instreamSurveyAdAnswerRenderer"),QE6=new g.dS("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var D5=new g.dS("instreamVideoAdRenderer");var WyH=new g.dS("textOverlayAdContentRenderer"),B2H=new g.dS("enhancedTextOverlayAdContentRenderer"),oXO=new g.dS("imageOverlayAdContentRenderer");var m3=new g.dS("playerOverlayLayoutRenderer");var Kr=new g.dS("videoInterstitialButtonedCenteredLayoutRenderer");var DuW=new g.dS("aboveFeedAdLayoutRenderer");var bdX=new g.dS("belowPlayerAdLayoutRenderer");var rl0=new g.dS("inPlayerAdLayoutRenderer");var LG=new g.dS("playerBytesAdLayoutRenderer");var m1=new g.dS("playerBytesSequenceItemAdLayoutRenderer");var Yt=new g.dS("playerUnderlayAdLayoutRenderer");var bv=new g.dS("adIntroRenderer");var Sr=new g.dS("playerBytesSequentialLayoutRenderer");var Bf0=new g.dS("slidingTextPlayerOverlayRenderer");var PF=new g.dS("surveyTextInterstitialRenderer");var hS=new g.dS("videoAdTrackingRenderer");var JlZ=new g.dS("videoInterstitialCenteredLayoutViewModel");var wa2=new g.dS("simpleAdBadgeRenderer");var Tp=new g.dS("skipAdRenderer"),zPS=new g.dS("skipButtonRenderer");var ej=new g.dS("adSlotRenderer");var NJ=new g.dS("squeezebackPlayerSidePanelRenderer");var dd2=new g.dS("timedPieCountdownRenderer");var R8=new g.dS("adAvatarViewModel");var sn=new g.dS("adBadgeViewModel");var tN=new g.dS("adButtonViewModel");var GJ$=new g.dS("adDetailsLineViewModel");var T2r=new g.dS("adDisclosureBannerViewModel");var ikt=new g.dS("adPodIndexViewModel");var $dG=new g.dS("imageBackgroundViewModel");var Ud1=new g.dS("adGridCardCollectionViewModel");var Ju_=new g.dS("adGridCardTextViewModel");var cu_=new g.dS("adPreviewViewModel");var yu0=new g.dS("playerAdAvatarLockupCardButtonedViewModel");var jEW=new g.dS("skipAdButtonViewModel");var Iu1=new g.dS("skipAdViewModel");var FyO=new g.dS("timedPieCountdownViewModel");var fuG=new g.dS("visitAdvertiserLinkViewModel");var cF=new g.dS("bannerImageLayoutViewModel");var jr=new g.dS("topBannerImageTextIconButtonedLayoutViewModel");var IP=new g.dS("adsEngagementPanelLayoutViewModel");var Z5=new g.dS("displayUnderlayTextGridCardsLayoutViewModel");g.K9=new g.dS("browseEndpoint");var VW_=new g.dS("confirmDialogEndpoint");var ZKe=new g.dS("commandContext");var oqv=new g.dS("rawColdConfigGroup");var BvS=new g.dS("rawHotConfigGroup");g.A_=new g.dS("commandExecutorCommand");g.d(h4X,T3);var NZ7={eoM:0,N_6:1,Ic0:32,TDM:61,hrt:67,SMn:103,ZFg:86,d57:42,m5d:60,zoR:62,wQH:73,nZ6:76,XQ3:88,FJ7:90,iFR:99,VcM:98,x5H:100,kdR:102,Qit:41,uj3:69,oZ6:70,siH:71,e6D:2,qPD:27,ANDROID:3,NB6:54,Hwz:14,Ild:91,z$n:55,DR5:24,Yqd:20,KTD:18,rBH:21,Vrn:104,pqg:30,wq3:29,T2H:28,Crz:101,GfR:34,mwH:36,vz3:38,IOS:5,UT7:15,ay5:92,Jr7:40,LSM:25,jFM:17,emn:19,qp4:64,By0:66,t7n:26,yr6:22,CV5:33,Rmd:68,gu4:35,OMd:53,bMH:37,WS4:39,ii3:7,Qj5:57,ufM:43,sjn:59,o67:93,kf7:74,cQ6:75,AQ0:85,lWg:65,Ui7:80,JQM:8,xiM:10, LWt:58,WWH:63,fWM:72,n15:23,lcH:11,fcg:13,g1M:12,hoz:16,E60:56,Gd5:31,JO7:77,KY3:84,pQd:87,rdH:89,vE6:94,FrM:95};g.d(Gn,T3);Gn.prototype.z$=function(){return jY(this,3)}; Gn.prototype.EU=function(){return jY(this,5)}; Gn.prototype.kM=function(E){return SY(this,5,E)};g.d(Tn,T3);g.d(M2l,T3);g.d(ia,T3);g.z=ia.prototype;g.z.getDeviceId=function(){return jY(this,6)}; g.z.f3=function(E){var e=k4(this,9,Q9,3,!0);Zi(e,E);return e[E]}; g.z.getPlayerType=function(){return IK(this,36)}; g.z.setHomeGroupInfo=function(E){return $4(this,M2l,81,E)}; g.z.clearLocationPlayabilityToken=function(){return tv(this,89)};g.d($u,T3);$u.prototype.getValue=function(){return jY(this,Wo(this,QL7,2))}; var QL7=[2,3,4,5,6];g.d(Uc,T3);Uc.prototype.setTrackingParams=function(E){return tv(this,1,Nb7(E,!1))};g.d(Jd,T3);g.d(cC,T3);cC.prototype.f3=function(E){var e=k4(this,5,WD,3,!0);Zi(e,E);return e[E]};g.d(yc,T3);yc.prototype.getToken=function(){return f1(this,2)}; yc.prototype.setToken=function(E){return SY(this,2,E)};g.d(jm,T3);jm.prototype.setSafetyMode=function(E){return Dz(this,5,E)};g.d(I0,T3);I0.prototype.zy=function(E){return $4(this,ia,1,E)};var qJ=new g.dS("thumbnailLandscapePortraitRenderer");g.S3k=new g.dS("changeEngagementPanelVisibilityAction");var Vi7=new g.dS("continuationCommand");g.ru$=new g.dS("openPopupAction");g.jT=new g.dS("webCommandMetadata");var dIX=new g.dS("metadataBadgeRenderer");var fBp=new g.dS("signalServiceEndpoint");var cQ=new g.dS("innertubeCommand");var BE7=new g.dS("loggingDirectives");var yZW={lG7:"EMBEDDED_PLAYER_MODE_UNKNOWN",s6t:"EMBEDDED_PLAYER_MODE_DEFAULT",AdR:"EMBEDDED_PLAYER_MODE_PFP",cd3:"EMBEDDED_PLAYER_MODE_PFL"};var YiX=new g.dS("channelThumbnailEndpoint");var Z4X=new g.dS("embeddedPlayerErrorMessageRenderer");var LAe=new g.dS("embeddedPlayerOverlayVideoDetailsRenderer"),mI7=new g.dS("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),goW=new g.dS("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var ooX=new g.dS("embedsInfoPanelRenderer");var Dd2=new g.dS("feedbackEndpoint");var bk0=new g.dS("callToActionButtonViewModel");var vXH=new g.dS("interactionLoggingCommandMetadata");var iDl={rQR:"WEB_DISPLAY_MODE_UNKNOWN",Di3:"WEB_DISPLAY_MODE_BROWSER",KWR:"WEB_DISPLAY_MODE_MINIMAL_UI",v6n:"WEB_DISPLAY_MODE_STANDALONE",Y_H:"WEB_DISPLAY_MODE_FULLSCREEN"};g.d(F9,T3);F9.prototype.getPlayerType=function(){return IK(this,7)}; F9.prototype.jH=function(){return jY(this,19)}; F9.prototype.setVideoId=function(E){return SY(this,19,E)};g.d(fF,T3);g.d(Vc,T3);g.d(Sm,T3); var P2W=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var auS=new g.dS("loggingContext");g.d(rS,T3);g.d(DP,T3);DP.prototype.jH=function(){return f1(this,Wo(this,qv,1))}; DP.prototype.setVideoId=function(E){return x4(this,1,qv,UA(E))}; DP.prototype.getPlaylistId=function(){return f1(this,Wo(this,qv,2))}; var qv=[1,2];g.d(NmS,T3);var UE=new g.dS("changeKeyedMarkersVisibilityCommand");var Ly0=new g.dS("changeMarkersVisibilityCommand");var TMZ=new g.dS("loadMarkersCommand");var hPH=new g.dS("suggestedActionDataViewModel");var RDX=new g.dS("timelyActionViewModel");var n6W=new g.dS("timelyActionsOverlayViewModel");var uUW=new g.dS("productListItemRenderer");var MW6=new g.dS("shoppingOverlayRenderer");var hSv=new g.dS("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var N22=new g.dS("adFeedbackEndpoint");var Zkd=new g.dS("menuEndpoint");var WYW=new g.dS("phoneDialerEndpoint");var xly=new g.dS("sendSmsEndpoint");var apX=new g.dS("copyTextEndpoint");var Y31=new g.dS("shareEndpoint"),md6=new g.dS("shareEntityEndpoint"),gXS=new g.dS("shareEntityServiceEndpoint"),Kyr=new g.dS("webPlayerShareEntityServiceEndpoint");g.jP=new g.dS("urlEndpoint");g.i7=new g.dS("watchEndpoint");var nX1=new g.dS("watchPlaylistEndpoint");g.RP0=new g.dS("offlineOrchestrationActionCommand");var Vhp=new g.dS("compositeVideoOverlayRenderer");var sEt=new g.dS("miniplayerRenderer");var voX=new g.dS("paidContentOverlayRenderer");var tW6=new g.dS("playerMutedAutoplayOverlayRenderer"),q3t=new g.dS("playerMutedAutoplayEndScreenRenderer");var Say=new g.dS("unserializedPlayerResponse"),Ev1=new g.dS("unserializedPlayerResponse");var e2_=new g.dS("playlistEditEndpoint");var IA;g.tS=new g.dS("buttonRenderer");IA=new g.dS("toggleButtonRenderer");var yl7=new g.dS("counterfactualRenderer");var lG6=new g.dS("resolveUrlCommandMetadata");var kD$=new g.dS("modifyChannelNotificationPreferenceEndpoint");var r$X=new g.dS("pingingEndpoint");var Hl1=new g.dS("unsubscribeEndpoint");g.n9=new g.dS("subscribeButtonRenderer");var Ols=new g.dS("subscribeEndpoint");var pmW=new g.dS("buttonViewModel");var I8X=new g.dS("qrCodeRenderer");var Y2l={pud:"LIVING_ROOM_APP_MODE_UNSPECIFIED",dbn:"LIVING_ROOM_APP_MODE_MAIN",Eug:"LIVING_ROOM_APP_MODE_KIDS",IBD:"LIVING_ROOM_APP_MODE_MUSIC",mbM:"LIVING_ROOM_APP_MODE_UNPLUGGED",V7n:"LIVING_ROOM_APP_MODE_GAMING"};var QgW=new g.dS("autoplaySwitchButtonRenderer");var sV,ehW,L17,QGe;sV=new g.dS("decoratedPlayerBarRenderer");ehW=new g.dS("chapteredPlayerBarRenderer");L17=new g.dS("multiMarkersPlayerBarRenderer");QGe=new g.dS("chapterRenderer");g.OtW=new g.dS("markerRenderer");var zh7=new g.dS("decoratedPlayheadRenderer");var wHZ=new g.dS("desktopOverlayConfigRenderer");var f8Z=new g.dS("engagementPanelSectionListRenderer");var BMe=new g.dS("gatedActionsOverlayViewModel");var C9X=new g.dS("heatMarkerRenderer");var AIy=new g.dS("heatmapRenderer");var G2v=new g.dS("watchToWatchTransitionRenderer");var Mje=new g.dS("playlistPanelRenderer");var XbO=new g.dS("productUpsellSuggestedActionViewModel");var uZd=new g.dS("suggestedActionTimeRangeTrigger"),AVd=new g.dS("suggestedActionsRenderer"),CCs=new g.dS("suggestedActionRenderer");var pnX=new g.dS("timedMarkerDecorationRenderer");var hx9=new g.dS("cipher");var rSW=new g.dS("playerVars");var pbs=new g.dS("playerVars");var Fl=g.t7.window,xV0,Qb6,ba=(Fl==null?void 0:(xV0=Fl.yt)==null?void 0:xV0.config_)||(Fl==null?void 0:(Qb6=Fl.ytcfg)==null?void 0:Qb6.data_)||{};g.qW("yt.config_",ba);var Mf=[];var qHv=/^[\w.]*$/,n5X={q:!0,search_query:!0},KvX=String(mn);var lM=new function(){var E=window.document;this.T=window;this.G=E}; g.qW("yt.ads_.signals_.getAdSignalsString",function(E){return gS(Hg(E))});g.QH();var e5Z="XMLHttpRequest"in g.t7?function(){return new XMLHttpRequest}:null;var W_1="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Be(W_1);var Oz7={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"},wyW="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.Be(W_1)),Qh9=!1,Ci7=wv;g.d(GT,o1);$q.prototype.then=function(E,e,l){return this.T?this.T.then(E,e,l):this.Z===1&&E?(E=E.call(l,this.G))&&typeof E.then==="function"?E:J2(E):this.Z===2&&e?(E=e.call(l,this.G))&&typeof E.then==="function"?E:UN(E):this}; $q.prototype.getValue=function(){return this.G}; $q.prototype.$goog_Thenable=!0;var cg=!1;var PZ=Mb||Nb;var JZ8=/^([0-9\.]+):([0-9\.]+)$/;g.d(HK,o1);HK.prototype.name="BiscottiError";g.d(kp,o1);kp.prototype.name="BiscottiMissingError";var IK0={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},O7=null;var lk0=w8(["data-"]),Piv={};var BTW=0,Xg=g.AV?"webkit":NV?"moz":g.uw?"ms":g.RU?"o":"",ovW=g.eS("ytDomDomGetNextId")||function(){return++BTW}; g.qW("ytDomDomGetNextId",ovW);var MFX={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};QC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; QC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; QC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var WK=g.t7.ytEventsEventsListeners||{};g.qW("ytEventsEventsListeners",WK);var Ye7=g.t7.ytEventsEventsCounter||{count:0};g.qW("ytEventsEventsCounter",Ye7);var nV8=Vz(function(){var E=!1;try{var e=Object.defineProperty({},"passive",{get:function(){E=!0}}); window.addEventListener("test",null,e)}catch(l){}return E}),mh9=Vz(function(){var E=!1; try{var e=Object.defineProperty({},"capture",{get:function(){E=!0}}); window.addEventListener("test",null,e)}catch(l){}return E});var f7;f7=window;g.dE=f7.ytcsi&&f7.ytcsi.now?f7.ytcsi.now:f7.performance&&f7.performance.timing&&f7.performance.now&&f7.performance.timing.navigationStart?function(){return f7.performance.timing.navigationStart+f7.performance.now()}:function(){return(new Date).getTime()};g.Bt(dO,g.a);dO.prototype.V=function(E){E.T===void 0&&NxX(E);var e=E.T;E.G===void 0&&NxX(E);this.T=new g.Nd(e,E.G)}; dO.prototype.TI=function(){return this.T||new g.Nd}; dO.prototype.pg=function(){if(this.T){var E=(0,g.dE)();if(this.S!=0){var e=this.J,l=this.T,k=e.x-l.x;e=e.y-l.y;k=Math.sqrt(k*k+e*e)/(E-this.S);this.G[this.Z]=Math.abs((k-this.W)/this.W)>.5?1:0;for(l=e=0;l<4;l++)e+=this.G[l]||0;e>=3&&this.j();this.W=k}this.S=E;this.J=this.T;this.Z=(this.Z+1)%4}}; dO.prototype.Gz=function(){g.pE(this.N);g.oC(this.kt)};g.d(GC,g.a);GC.prototype.C=function(E,e,l,k,H){l=g.ZP((0,g.CW)(l,k||this.GX));l={target:E,name:e,callback:l};var O;H&&nV8()&&(O={passive:!0});E.addEventListener(e,l.callback,O);this.j.push(l);return l}; GC.prototype.xN=function(E){for(var e=0;e=N.Ij)||c.T.version>=R||c.T.objectStoreNames.contains(P)||F.push(P)}C=F;if(C.length===0){U.xt(5);break}p=Object.keys(l.options.tW); x=A.objectStoreNames();if(l.Wl.options.version+1)throw W.close(),l.Z=!1,bcl(l,B);return U.return(W);case 8:throw e(), Q instanceof Error&&!g.QT("ytidb_async_stack_killswitch")&&(Q.stack=Q.stack+"\n"+X.substring(X.indexOf("\n")+1)),xI(Q,l.name,"",(w=l.options.version)!=null?w:-1);}})} function e(){l.T===k&&(l.T=void 0)} var l=this;if(!this.Z)throw bcl(this);if(this.T)return this.T;var k,H={blocking:function(O){O.close()}, closed:e,c2R:e,upgrade:this.options.upgrade};return this.T=k=E()};var bE=new rE("YtIdbMeta",{tW:{databases:{Ij:1}},upgrade:function(E,e){e(1)&&g.T0(E,"databases",{keyPath:"actualName"})}});var hk,LA=new function(){}(new function(){});new g.AZ;g.d(ZB,rE);ZB.prototype.G=function(E,e,l){l=l===void 0?{}:l;return(this.options.shared?YgX:Zc8)(E,e,Object.assign({},l))}; ZB.prototype.delete=function(E){E=E===void 0?{}:E;return(this.options.shared?nN0:mxX)(this.name,E)};var JV6={},sX9=g.YI("ytGcfConfig",{tW:(JV6.coldConfigStore={Ij:1},JV6.hotConfigStore={Ij:1},JV6),shared:!1,upgrade:function(E,e){e(1)&&(g.y4(g.T0(E,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.y4(g.T0(E,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.d(gE,g.a);gE.prototype.Gz=function(){for(var E=g.T(this.G),e=E.next();!e.done;e=E.next()){var l=this.T;e=l.indexOf(e.value);e>=0&&l.splice(e,1)}this.G.length=0;g.a.prototype.Gz.call(this)};q1.prototype.kM=function(E){this.hotHashData=E;g.qW("yt.gcf.config.hotHashData",this.hotHashData||null)};var cVr=typeof TextEncoder!=="undefined"?new TextEncoder:null,LC9=cVr?function(E){return cVr.encode(E)}:function(E){E=g.Uf(E); for(var e=new Uint8Array(E.length),l=0;l=e?!1:!0}; g.z.Kr=function(){var E=this;if(!$P(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.aV.fm("QUEUED",this.C0).then(function(e){e&&!E.HW(e,E.vU)?E.O_.b1(function(){return g.D(function(l){if(l.G==1)return e.id===void 0?l.xt(2):g.S(l,E.aV.o0(e.id,E.C0),2);E.Kr();g.$0(l)})}):E.QR.iO()&&E.Mg()})};var cN;var dbl={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var jbG={},HFe=g.YI("ServiceWorkerLogsDatabase",{tW:(jbG.SWHealthLog={Ij:1},jbG),shared:!0,upgrade:function(E,e){e(1)&&g.y4(g.T0(E,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Ir={},pC7=0;var FP;V5.prototype.requestComplete=function(E,e){e&&(this.G=!0);E=this.removeParams(E);this.T.get(E)||this.T.set(E,e)}; V5.prototype.isEndpointCFR=function(E){E=this.removeParams(E);return(E=this.T.get(E))?!1:E===!1&&this.G?!0:null}; V5.prototype.removeParams=function(E){return E.split("?")[0]}; V5.prototype.removeParams=V5.prototype.removeParams;V5.prototype.isEndpointCFR=V5.prototype.isEndpointCFR;V5.prototype.requestComplete=V5.prototype.requestComplete;V5.getInstance=SA;g.d(rd,g.CU);g.z=rd.prototype;g.z.iO=function(){return this.T.iO()}; g.z.Zk=function(E){this.T.T=E}; g.z.oM=function(){var E=window.navigator.onLine;return E===void 0?!0:E}; g.z.w6=function(){this.G=!0}; g.z.listen=function(E,e){return this.T.listen(E,e)}; g.z.dN=function(E){E=VK(this.T,E);E.then(function(e){g.QT("use_cfr_monitor")&&SA().requestComplete("generate_204",e)}); return E}; rd.prototype.sendNetworkCheckRequest=rd.prototype.dN;rd.prototype.listen=rd.prototype.listen;rd.prototype.enableErrorFlushing=rd.prototype.w6;rd.prototype.getWindowStatus=rd.prototype.oM;rd.prototype.networkStatusHint=rd.prototype.Zk;rd.prototype.isNetworkAvailable=rd.prototype.iO;rd.getInstance=Wn9;g.d(g.DA,g.CU);g.DA.prototype.iO=function(){var E=g.eS("yt.networkStatusManager.instance.isNetworkAvailable");return E?E.bind(this.G)():!0}; g.DA.prototype.Zk=function(E){var e=g.eS("yt.networkStatusManager.instance.networkStatusHint").bind(this.G);e&&e(E)}; g.DA.prototype.dN=function(E){var e=this,l;return g.D(function(k){l=g.eS("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(e.G);return g.QT("skip_network_check_if_cfr")&&SA().isEndpointCFR("generate_204")?k.return(new Promise(function(H){var O;e.Zk(((O=window.navigator)==null?void 0:O.onLine)||!0);H(e.iO())})):l?k.return(l(E)):k.return(!0)})};var br;g.d(vN,UQ);vN.prototype.writeThenSend=function(E,e){e||(e={});e=ar(E,e);g.LZ()||(this.T=!1);UQ.prototype.writeThenSend.call(this,E,e)}; vN.prototype.sendThenWrite=function(E,e,l){e||(e={});e=ar(E,e);g.LZ()||(this.T=!1);UQ.prototype.sendThenWrite.call(this,E,e,l)}; vN.prototype.sendAndWrite=function(E,e){e||(e={});e=ar(E,e);g.LZ()||(this.T=!1);UQ.prototype.sendAndWrite.call(this,E,e)}; vN.prototype.awaitInitialization=function(){return this.Z.promise};var df0=g.t7.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.qW("ytNetworklessLoggingInitializationOptions",df0);g.La.prototype.isReady=function(){!this.config_&&BJS()&&(this.config_=g.lr());return!!this.config_};var IG6,NG,YP;IG6=g.t7.ytPubsubPubsubInstance||new g.GE;NG=g.t7.ytPubsubPubsubSubscribedKeys||{};YP=g.t7.ytPubsubPubsubTopicToKeys||{};g.ZA=g.t7.ytPubsubPubsubIsSynchronous||{};g.GE.prototype.subscribe=g.GE.prototype.subscribe;g.GE.prototype.unsubscribeByKey=g.GE.prototype.MR;g.GE.prototype.publish=g.GE.prototype.publish;g.GE.prototype.clear=g.GE.prototype.clear;g.qW("ytPubsubPubsubInstance",IG6);g.qW("ytPubsubPubsubTopicToKeys",YP);g.qW("ytPubsubPubsubIsSynchronous",g.ZA); g.qW("ytPubsubPubsubSubscribedKeys",NG);var Jd7={};g.d(Ox,g.a);Ox.prototype.append=function(E){if(!this.G)throw Error("This does not support the append operation");E=E.Zb();this.Zb().appendChild(E)}; g.d(XE,Ox);XE.prototype.Zb=function(){return this.T};g.d(uP,g.a);uP.prototype.onTouchStart=function(E){this.j=!0;this.G=E.touches.length;this.T.isActive()&&(this.T.stop(),this.W=!0);E=E.touches;this.J=j0X(this,E)||E.length!=1;var e=E.item(0);this.J||!e?this.V=this.N=Infinity:(this.N=e.clientX,this.V=e.clientY);for(e=this.Z.length=0;e=0)}if(e||E&&Math.pow(E.clientX-this.N,2)+Math.pow(E.clientY-this.V,2)>25)this.S=!0}; uP.prototype.onTouchEnd=function(E){var e=E.changedTouches;e&&this.j&&this.G==1&&!this.S&&!this.W&&!this.J&&j0X(this,e)&&(this.pg=E,this.T.start());this.G=E.touches.length;this.G===0&&(this.S=this.j=!1,this.Z.length=0);this.W=!1};var A$=Date.now().toString();var WA={};var Gi=Symbol("injectionDeps");of.prototype.toString=function(){return"InjectionToken("+this.name+")"}; fPy.prototype.resolve=function(E){return E instanceof wg?Ti(this,E.key,[],!0):Ti(this,E,[])};var iP;var Ux=window;var jN=g.QT("web_enable_lifecycle_monitoring")&&J$()!==0,PaX=g.QT("web_enable_lifecycle_monitoring");Dfl.prototype.cancel=function(){for(var E=g.T(this.T),e=E.next();!e.done;e=E.next())e=e.value,e.jobId===void 0||e.Ji||this.scheduler.EZ(e.jobId),e.Ji=!0;this.G.resolve()};g.z=If.prototype;g.z.install=function(E){this.plugins.push(E);return this}; g.z.uninstall=function(){var E=this;g.LS.apply(0,arguments).forEach(function(e){e=E.plugins.indexOf(e);e>-1&&E.plugins.splice(e,1)})}; g.z.transition=function(E,e){var l=this;jN&&ScS(this.state);var k=this.transitions.find(function(O){return Array.isArray(O.from)?O.from.find(function(X){return X===l.state&&O.to===E}):O.from===l.state&&O.to===E}); if(k){this.G&&(bFX(this.G),this.G=void 0);aP7(this,E,e);this.state=E;jN&&cA(this.state);k=k.action.bind(this);var H=this.plugins.filter(function(O){return O[E]}).map(function(O){return O[E]}); k(vuy(this,H),e)}else throw Error("no transition specified from "+this.state+" to "+E);}; g.z.fr4=function(E){var e=g.LS.apply(1,arguments);g.Yp();for(var l=g.T(E),k=l.next(),H={};!k.done;H={XX:void 0},k=l.next())H.XX=k.value,u47(function(O){return function(){f2(O.XX.name);SN(function(){return O.XX.callback.apply(O.XX,g.Be(e))}); Vv(O.XX.name)}}(H))}; g.z.lrt=function(E){var e=g.LS.apply(1,arguments),l,k,H,O;return g.D(function(X){X.G==1&&(g.Yp(),l=g.T(E),k=l.next(),H={});if(X.G!=3){if(k.done)return X.xt(0);H.MJ=k.value;H.Rq=void 0;O=function(A){return function(){f2(A.MJ.name);var C=SN(function(){return A.MJ.callback.apply(A.MJ,g.Be(e))}); JR(C)?A.Rq=g.QT("web_lifecycle_error_handling_killswitch")?C.then(function(){Vv(A.MJ.name)}):C.then(function(){Vv(A.MJ.name)},function(p){rd8(p); Vv(A.MJ.name)}):Vv(A.MJ.name)}}(H); u47(O);return H.Rq?g.S(X,H.Rq,3):X.xt(3)}H={MJ:void 0,Rq:void 0};k=l.next();return X.xt(2)})}; g.z.BL=function(E){var e=g.LS.apply(1,arguments),l=this,k=E.map(function(H){return{Fi:function(){f2(H.name);SN(function(){return H.callback.apply(H,g.Be(e))}); Vv(H.name)}, priority:FE(l,H)}}); k.length&&(this.G=new Dfl(k))}; g.O9.Object.defineProperties(If.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var DE;g.d(rg,If);rg.prototype.W=function(E,e){var l=this;this.T=g.Nz(0,function(){l.currentState==="application_navigating"&&l.transition("none")},5E3); E(e==null?void 0:e.event)}; rg.prototype.J=function(E,e){this.T&&(g.rN.EZ(this.T),this.T=null);E(e==null?void 0:e.event)};var uo=[];g.qW("yt.logging.transport.getScrapedGelPayloads",function(){return uo});bP.prototype.storePayload=function(E,e){E=vA(E);this.store[E]?this.store[E].push(e):(this.G={},this.store[E]=[e]);this.T++;g.QT("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return E}; bP.prototype.smartExtractMatchingEntries=function(E){if(!E.keys.length)return[];for(var e=af(this,E.keys.splice(0,1)[0]),l=[],k=0;k=0){k=!1;break a}}k=!0}k&&(e=j6(e))&&this.RR(e)}}; g.z.YS=function(E){return E}; g.z.onTouchStart=function(E){this.SR.onTouchStart(E)}; g.z.onTouchMove=function(E){this.SR.onTouchMove(E)}; g.z.onTouchEnd=function(E){if(this.SR)this.SR.onTouchEnd(E)}; g.z.RR=function(E){this.layoutId?this.a4.executeCommand(E,this.layoutId):(E=new g.PK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.$F(E))}; g.z.createServerVe=function(E,e){this.api.createServerVe(E,this);this.api.setTrackingParams(E,e)}; g.z.logVisibility=function(E,e){this.api.hasVe(E)&&this.api.logVisibility(E,e,this.interactionLoggingClientData)}; g.z.Gz=function(){this.clear(null);this.xN(this.Yt);for(var E=g.T(this.Qd),e=E.next();!e.done;e=E.next())this.xN(e.value);g.lU.prototype.Gz.call(this)};g.d(Uw,k3); Uw.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.T=e;if(e.text==null&&e.icon==null)g.UJ(Error("ButtonRenderer did not have text or an icon set."));else{switch(e.style||null){case "STYLE_UNKNOWN":E="ytp-ad-button-link";break;default:E=null}E!=null&&g.qx(this.element,E);e.text!=null&&(E=g.Ow(e.text),g.FF(E)||(this.element.setAttribute("aria-label",E),this.Z=new g.lU({X:"span",B:"ytp-ad-button-text",Tz:E}),g.L(this,this.Z),this.Z.u3(this.element)));e.accessibilityData&&e.accessibilityData.accessibilityData&& e.accessibilityData.accessibilityData.label&&!g.FF(e.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",e.accessibilityData.accessibilityData.label);e.icon!=null&&(e=$3(e.icon,this.S),e!=null&&(this.G=new g.lU({X:"span",B:"ytp-ad-button-icon",K:[e]}),g.L(this,this.G)),this.J?wT(this.element,this.G.element,0):this.G.u3(this.element))}}; Uw.prototype.clear=function(){this.hide()}; Uw.prototype.onClick=function(E){k3.prototype.onClick.call(this,E);E=g.T(hl7(this));for(var e=E.next();!e.done;e=E.next())e=e.value,this.layoutId?this.a4.executeCommand(e,this.layoutId):g.$F(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.d(Jq,g.a);Jq.prototype.Gz=function(){this.G&&g.oC(this.G);this.T.clear();cT=null;g.a.prototype.Gz.call(this)}; Jq.prototype.register=function(E,e){e&&this.T.set(E,e)}; var cT=null;g.d(IY,k3); IY.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);E=e.hoverText||null;e=e.button&&g.M(e.button,g.tS)||null;e==null?g.$F(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,void 0,void 0,void 0,void 0,this.Z),g.L(this,this.button),this.button.init(ng("button"),e,this.macros),E&&this.button.element.setAttribute("aria-label",g.Ow(E)),this.button.u3(this.element),this.V&&!g.ti(this.button.element, "ytp-ad-clickable")&&g.qx(this.button.element,"ytp-ad-clickable"),this.Z&&g.qx(this.button.element,"ytp-ad-hover-text-button--clean-player"),E&&(this.G=new g.lU({X:"div",B:"ytp-ad-hover-text-container"}),this.J&&(e=new g.lU({X:"div",B:"ytp-ad-hover-text-callout"}),e.u3(this.G.element),g.L(this,e)),g.L(this,this.G),this.G.u3(this.element),e=y8(E),wT(this.G.element,e,0)),this.show())}; IY.prototype.hide=function(){this.button&&this.button.hide();this.G&&this.G.hide();k3.prototype.hide.call(this)}; IY.prototype.show=function(){this.button&&this.button.show();k3.prototype.show.call(this)};g.d(fN,k3); fN.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);l=(E=e.thumbnail)&&F0(E)||"";g.FF(l)?Math.random()<.01&&g.UJ(Error("Found AdImage without valid image URL")):(this.T?g.MV(this.element,"backgroundImage","url("+l+")"):uC(this.element,{src:l}),uC(this.element,{alt:E&&E.accessibility&&E.accessibility.label||""}),e&&e.adRendererCommands&&e.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; fN.prototype.clear=function(){this.hide()};g.d(V8,k3);g.z=V8.prototype;g.z.hide=function(){k3.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.z.show=function(){this.Z=document.activeElement;k3.prototype.show.call(this);this.S.focus()}; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.G=e;e.dialogMessages||e.title!=null?e.confirmLabel==null?g.$F(Error("ConfirmDialogRenderer.confirmLabel was not set.")):e.cancelLabel==null?g.$F(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Y7W(this,e):g.$F(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.z.clear=function(){g.iG(this.T);this.hide()}; g.z.KG=function(){this.hide()}; g.z.uF=function(){var E=this.G.cancelEndpoint;E&&(this.layoutId?this.a4.executeCommand(E,this.layoutId):g.$F(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.z.vM=function(){var E=this.G.confirmNavigationEndpoint||this.G.confirmEndpoint;E&&(this.layoutId?this.a4.executeCommand(E,this.layoutId):g.$F(Error("Missing layoutId for confirm dialog.")));this.hide()};g.d(SP,k3);g.z=SP.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.Z=e;if(e.defaultText==null&&e.defaultIcon==null)g.$F(Error("ToggleButtonRenderer must have either text or icon set."));else if(e.defaultIcon==null&&e.toggledIcon!=null)g.$F(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(e.style){switch(e.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":E="ytp-ad-toggle-button-default-style";break;default:E=null}E!=null&&g.qx(this.S,E)}E={};e.defaultText? (l=g.Ow(e.defaultText),g.FF(l)||(E.buttonText=l,this.api.Y().experiments.P5("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",l),this.api.Y().experiments.P5("fix_h5_toggle_button_a11y")&&this.G.setAttribute("aria-label",l))):g.Ef(this.h0,!1);e.defaultTooltip&&(E.tooltipText=e.defaultTooltip,this.T.hasAttribute("aria-label")||this.G.setAttribute("aria-label",e.defaultTooltip));e.defaultIcon?(l=$3(e.defaultIcon),this.updateValue("untoggledIconTemplateSpec",l),e.toggledIcon?(this.kt= !0,l=$3(e.toggledIcon),this.updateValue("toggledIconTemplateSpec",l)):(g.Ef(this.V,!0),g.Ef(this.J,!1)),g.Ef(this.T,!1)):g.Ef(this.G,!1);g.QI(E)||this.update(E);e.isToggled&&(g.qx(this.S,"ytp-ad-toggle-button-toggled"),this.toggleButton(e.isToggled));rl(this);this.C(this.element,"change",this.sj);this.show()}}; g.z.onClick=function(E){this.Qd.length>0&&(this.toggleButton(!this.isToggled()),this.sj());k3.prototype.onClick.call(this,E)}; g.z.sj=function(){g.k_(this.S,"ytp-ad-toggle-button-toggled",this.isToggled());for(var E=g.T(mz7(this,this.isToggled())),e=E.next();!e.done;e=E.next())e=e.value,this.layoutId?this.a4.executeCommand(e,this.layoutId):g.$F(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);rl(this)}; g.z.clear=function(){this.hide()}; g.z.toggleButton=function(E){g.k_(this.S,"ytp-ad-toggle-button-toggled",E);this.T.checked=E;rl(this)}; g.z.isToggled=function(){return this.T.checked};g.d(Db,GC);Db.prototype.W=function(E){if(Array.isArray(E)){E=g.T(E);for(var e=E.next();!e.done;e=E.next())e=e.value,e instanceof gp9&&this.Z(e)}};g.d(bU,k3);g.z=bU.prototype;g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);e.reasons?e.confirmLabel==null?g.$F(Error("AdFeedbackRenderer.confirmLabel was not set.")):(e.cancelLabel==null&&g.UJ(Error("AdFeedbackRenderer.cancelLabel was not set.")),e.title==null&&g.UJ(Error("AdFeedbackRenderer.title was not set.")),sCW(this,e)):g.$F(Error("AdFeedbackRenderer.reasons were not set."))}; g.z.clear=function(){wO(this.J);wO(this.V);this.S.length=0;this.hide()}; g.z.hide=function(){this.T&&this.T.hide();this.G&&this.G.hide();k3.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.z.show=function(){this.T&&this.T.show();this.G&&this.G.show();this.Z=document.activeElement;k3.prototype.show.call(this);this.J.focus()}; g.z.H9=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.z.xQ7=function(){this.hide()}; vT.prototype.Zb=function(){return this.T.element}; vT.prototype.getCommand=function(){return this.G}; vT.prototype.isChecked=function(){return this.Z.checked};g.d(PT,V8);PT.prototype.KG=function(E){V8.prototype.KG.call(this,E);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; PT.prototype.uF=function(E){V8.prototype.uF.call(this,E);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; PT.prototype.vM=function(E){V8.prototype.vM.call(this,E);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.d(aY,k3);g.z=aY.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.J=e;if(e.dialogMessage==null&&e.title==null)g.$F(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{e.confirmLabel==null&&g.UJ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(E=e.closeOverlayRenderer&&g.M(e.closeOverlayRenderer,g.tS)||null)this.T=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.L(this,this.T),this.T.init(ng("button"),E,this.macros),this.T.u3(this.element);e.title&&(E=g.Ow(e.title),this.updateValue("title",E));if(e.adReasons)for(E=e.adReasons,l=0;l=this.c5?(this.kt.hide(),this.jR=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(E=Math.max(0,Math.ceil((this.c5-E)/1E3)),E!=this.b3&&(MZ(this.Z,{TIME_REMAINING:String(E)}),this.b3=E)))}};g.d(nN,NZ);g.z=nN.prototype; g.z.init=function(E,e,l){NZ.prototype.init.call(this,E,e,l);if(e.image&&e.image.thumbnail)if(e.headline)if(e.description)if((E=e.actionButton&&g.M(e.actionButton,g.tS))&&E.navigationEndpoint){var k=this.api.getVideoData(2);if(k!=null)if(e.image&&e.image.thumbnail){var H=e.image.thumbnail.thumbnails;H!=null&&H.length>0&&g.FF(g.fk(H[0].url))&&(H[0].url=k.profilePicture)}else g.UJ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(ng("ad-image"),e.image,l);this.J.init(ng("ad-text"), e.headline,l);this.S.init(ng("ad-text"),e.description,l);this.G.init(ng("button"),E,l);l=aX(this.G.element);Pr(this.G.element,l+" This link opens in new tab");this.kt=E.navigationEndpoint;this.api.xb()||this.show();this.api.Y().L("enable_larger_flyout_cta_on_desktop")&&(this.X6("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.X6("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.X6("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.X6("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.X6("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.X6("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.G.element.classList.add("ytp-flyout-cta-action-button-large"),this.G.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.X6("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.fb.bind(this));this.h0=e.startMs||0;Zb(this)}else g.$F(Error("FlyoutCtaRenderer has no valid action button."));else g.$F(Error("FlyoutCtaRenderer has no description AdText."));else g.$F(Error("FlyoutCtaRenderer has no headline AdText."));else g.UJ(Error("FlyoutCtaRenderer has no image."))}; g.z.onClick=function(E){NZ.prototype.onClick.call(this,E);this.api.pauseVideo();!g.dT(this.G.element,E.target)&&this.kt&&(this.layoutId?this.a4.executeCommand(this.kt,this.layoutId):g.$F(Error("Missing layoutId for flyout cta.")))}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();(E&&E.current||this.c5)&&1E3*E.current>=this.h0&&(Y3(this),g.ed(this.element,"ytp-flyout-cta-inactive"),this.G.element.removeAttribute("tabIndex"))}}; g.z.JY=function(){this.clear()}; g.z.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fb.bind(this))}; g.z.show=function(){this.G&&this.G.show();NZ.prototype.show.call(this)}; g.z.hide=function(){this.G&&this.G.hide();NZ.prototype.hide.call(this)}; g.z.fb=function(E){E=="hidden"?this.show():this.hide()};g.d(RY,k3);g.z=RY.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.T=e;if(this.T.rectangle)for(E=this.T.likeButton&&g.M(this.T.likeButton,IA),e=this.T.dislikeButton&&g.M(this.T.dislikeButton,IA),this.Z.init(ng("toggle-button"),E,l),this.G.init(ng("toggle-button"),e,l),this.C(this.element,"change",this.Uj),this.S.show(100),this.show(),l=g.T(this.T&&this.T.impressionCommands||[]),E=l.next();!E.done;E=l.next())E=E.value,this.layoutId?this.a4.executeCommand(E,this.layoutId):g.$F(Error("Missing layoutId for instream user sentiment."))}; g.z.clear=function(){this.hide()}; g.z.hide=function(){this.Z.hide();this.G.hide();k3.prototype.hide.call(this)}; g.z.show=function(){this.Z.show();this.G.show();k3.prototype.show.call(this)}; g.z.Uj=function(){fmX(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.MD("onYtShowToast",this.T.postMessageAction);this.S.hide()}; g.z.onClick=function(E){this.Qd.length>0&&this.Uj();k3.prototype.onClick.call(this,E)};g.d(tq,g.a);g.z=tq.prototype;g.z.Gz=function(){this.reset();g.a.prototype.Gz.call(this)}; g.z.reset=function(){g.iG(this.S);this.J=!1;this.T&&this.T.stop();this.W.stop();this.Z&&(this.Z=!1,this.j.play())}; g.z.start=function(){this.reset();this.S.C(this.G,"mouseover",this.Wx,this);this.S.C(this.G,"mouseout",this.JH,this);this.pg&&(this.S.C(this.G,"focusin",this.Wx,this),this.S.C(this.G,"focusout",this.JH,this));this.T?this.T.start():(this.J=this.Z=!0,g.MV(this.G,{opacity:this.V}))}; g.z.Wx=function(){this.Z&&(this.Z=!1,this.j.play());this.W.stop();this.T&&this.T.stop()}; g.z.JH=function(){this.J?this.W.start():this.T&&this.T.start()}; g.z.Nf=function(){this.Z||(this.Z=!0,this.N.play(),this.J=!0)};var CEy=[new qZ("b.f_",!1,0),new qZ("j.s_",!1,2),new qZ("r.s_",!1,4),new qZ("e.h_",!1,6),new qZ("i.s_",!0,8),new qZ("s.t_",!1,10),new qZ("p.h_",!1,12),new qZ("s.i_",!1,14),new qZ("f.i_",!1,16),new qZ("a.b_",!1,18),new qZ("a.o_",!1),new qZ("g.o_",!1,22),new qZ("p.i_",!1,24),new qZ("p.m_",!1),new qZ("n.k_",!0,20),new qZ("i.f_",!1),new qZ("a.s_",!0),new qZ("m.c_",!1),new qZ("n.h_",!1,26),new qZ("o.p_",!1),new qZ("m.p_",!0,28),new qZ("o.a_",!1),new qZ("d.p_",!1),new qZ("e.i_",!1)].reduce(function(E,e){E[e.G]= e;return E},{});g.d(uu,NZ);g.z=uu.prototype; g.z.init=function(E,e,l){NZ.prototype.init.call(this,E,e,l);this.kt=e;(this.h0=x1p(this))&&g.UJ(Error("hasAdControlInClickCommands_ is true."));if(!e||g.QI(e))g.$F(Error("SkipButtonRenderer was not specified or empty."));else if(!e.message||g.QI(e.message))g.$F(Error("SkipButtonRenderer.message was not specified or empty."));else if(E=this.J?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},e=$3(E),e==null?g.$F(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+E.iconType+".")): (this.api.Y().L("disable_touch_events_on_skip_button")&&(e.D=Object.assign({},e.D,{"aria-hidden":"true",sUn:"false"})),this.Z=new g.lU({X:"button",s7:[this.J?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{X:"span",B:this.J?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[e]}]}),g.L(this,this.Z),this.Z.u3(this.S.element),this.G=new hq(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,"ytp-ad-skip-button-text"),this.J&&this.G.element.classList.add("ytp-ad-skip-button-text-centered"), this.G.init(ng("ad-text"),this.kt.message,l),g.L(this,this.G),wT(this.Z.element,this.G.element,0)),!this.api.Y().L("disable_touch_events_on_skip_button")){var k=k===void 0?null:k;l=this.api.Y();!(this.Qd.length>0)&&l.G&&(nJ?0:"ontouchstart"in document.documentElement&&(tS0()||Of()))&&(this.xN(this.Yt),k&&this.xN(k),this.Qd=[this.C(this.element,"touchstart",this.onTouchStart,this),this.C(this.element,"touchmove",this.onTouchMove,this),this.C(this.element,"touchend",this.onTouchEnd,this)])}}; g.z.clear=function(){this.c5.reset();this.hide()}; g.z.hide=function(){this.S.hide();this.G&&this.G.hide();Y3(this);NZ.prototype.hide.call(this)}; g.z.onClick=function(E){if(this.Z!=null){if(E){var e=E||window.event;e.returnValue=!1;e.preventDefault&&e.preventDefault()}var l;if(up0(E,{contentCpn:((l=this.api.getVideoData(1))==null?void 0:l.clientPlaybackNonce)||""})===0)this.api.MD("onAbnormalityDetected");else if(NZ.prototype.onClick.call(this,E),this.publish("j"),this.api.MD("onAdSkip"),this.jR||!this.h0)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.z.YS=function(E){if(!this.jR)return this.h0&&kd("SkipButton click commands not pruned while ALC exist"),E;var e,l=(e=g.M(E,g.A_))==null?void 0:e.commands;if(!l)return E;E=[];for(e=0;e=this.J&&QaX(this,!0)};g.d(pB,Uw);pB.prototype.init=function(E,e,l){Uw.prototype.init.call(this,E,e,l);E=!1;e.text!=null&&(E=g.Ow(e.text),E=!g.FF(E));E?e.navigationEndpoint==null?g.UJ(Error("No visit advertiser clickthrough provided in renderer,")):e.style!=="STYLE_UNKNOWN"?g.UJ(Error("Button style was not a link-style type in renderer,")):this.show():g.UJ(Error("No visit advertiser text was present in the renderer."))};g.d(xd,k3); xd.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);E=e.text;g.FF(HT(E))?g.UJ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(E&&E.text&&(e=E.text,this.Z&&!this.G&&(e=this.api.Y(),e=E.text+" "+(e&&e.G?"\u2022":"\u00b7")),e={text:e,isTemplated:E.isTemplated},E.style&&(e.style=E.style),E.targetId&&(e.targetId=E.targetId),E=new hq(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),E.init(ng("simple-ad-badge"),e,l),E.u3(this.element),g.L(this,E)),this.show())}; xd.prototype.clear=function(){this.hide()};g.d(Qd,RO);g.d(W2,g.sJ);g.z=W2.prototype;g.z.Mn=function(){return this.durationMs}; g.z.stop=function(){this.T&&this.K5.xN(this.T)}; g.z.oz=function(E){this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:E.current};this.publish("h")}; g.z.getProgressState=function(){return this.G}; g.z.wv=function(E){g.Xh(E,2)&&this.publish("g")};g.d(B2,g.sJ);g.z=B2.prototype;g.z.Mn=function(){return this.durationMs}; g.z.start=function(){this.T||(this.T=!0,this.timer.start())}; g.z.stop=function(){this.T&&(this.T=!1,this.timer.stop())}; g.z.oz=function(){this.wM+=100;var E=!1;this.wM>this.durationMs&&(this.wM=this.durationMs,this.timer.stop(),E=!0);this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.wM/1E3};this.publish("h");E&&this.publish("g")}; g.z.getProgressState=function(){return this.G};g.d(zj,NZ);g.z=zj.prototype;g.z.init=function(E,e,l){NZ.prototype.init.call(this,E,e,l);var k;if(e==null?0:(k=e.templatedCountdown)==null?0:k.templatedAdText){E=e.templatedCountdown.templatedAdText;if(!E.isTemplated){g.UJ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.G=new hq(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);this.G.init(ng("ad-text"),E,{});this.G.u3(this.element);g.L(this,this.G)}this.show()}; g.z.clear=function(){this.hide()}; g.z.hide=function(){Y3(this);NZ.prototype.hide.call(this)}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(this.T!=null){var E=this.T.getProgressState();if(E!=null&&E.current!=null&&this.G){var e=this.T instanceof W2?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:E.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof B2?E.seekableEnd:this.api.getDuration(2,!1);E=E.current;var l,k,H=((l=this.api.getVideoData())==null?0:(k=l.Z0)==null?0:k.call(l))?Math.max(e-E,0):e-E;MZ(this.G,{FORMATTED_AD_DURATION_REMAINING:String(g.ok(H)), TIME_REMAINING:String(Math.ceil(H))})}}}; g.z.show=function(){Zb(this);NZ.prototype.show.call(this)};g.d(dH,hq);dH.prototype.onClick=function(E){hq.prototype.onClick.call(this,E);this.api.onAdUxClicked(this.componentType)};g.d(Tj,k3);Tj.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(E=e.content){g.GD(this.element,E);var l,k;e=((l=e.interaction)==null?void 0:(k=l.accessibility)==null?void 0:k.label)||E;this.element.setAttribute("aria-label",e)}else g.$F(Error("AdSimpleAttributedString does not have text content"))}; Tj.prototype.clear=function(){this.hide()}; Tj.prototype.onClick=function(E){k3.prototype.onClick.call(this,E)};g.d(iu,k3); iu.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});(E=e.label)&&E.content&&!g.FF(E.content)?(this.adBadgeText.init(ng("ad-simple-attributed-string"),new Gj(E)),(e=e.adPodIndex)&&e.content&&!g.FF(e.content)&&(this.T=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),this.T.u3(this.element),g.L(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(ng("ad-simple-attributed-string"),new Gj(e))),this.element.classList.add(this.G?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.$F(Error("No label is returned in AdBadgeViewModel."))}; iu.prototype.show=function(){this.adBadgeText.show();var E;(E=this.T)==null||E.show();k3.prototype.show.call(this)}; iu.prototype.hide=function(){this.adBadgeText.hide();var E;(E=this.T)==null||E.hide();k3.prototype.hide.call(this)};g.d($d,k3);$d.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});(E=e.adPodIndex)&&E.content&&!g.FF(E.content)&&(this.T=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),this.T.u3(this.element),g.L(this,this.T),this.T.init(ng("ad-simple-attributed-string"),new Gj(E)),e.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()}; $d.prototype.show=function(){var E;(E=this.T)==null||E.show();k3.prototype.show.call(this)}; $d.prototype.hide=function(){var E;(E=this.T)==null||E.hide();k3.prototype.hide.call(this)};g.d(Uu,k3); Uu.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(e!=null&&e.text){var l;if(((l=e.text)==null?0:l.content)&&!g.FF(e.text.content)){this.T=new g.lU({X:"div",B:"ytp-ad-disclosure-banner__text",Tz:e.text.content});g.L(this,this.T);this.T.u3(this.element);var k,H;E=((k=e.interaction)==null?void 0:(H=k.accessibility)==null?void 0:H.label)||e.text.content;this.element.setAttribute("aria-label",E);var O;if((O=e.interaction)==null?0:O.onTap)this.G=new g.lU({X:"div",B:"ytp-ad-disclosure-banner__chevron",K:[g.CN()]}), g.L(this,this.G),this.G.u3(this.element);this.show()}}else g.$F(Error("No banner text found in AdDisclosureBanner."))}; Uu.prototype.clear=function(){this.hide()};g.d(yd,g.lU);yd.prototype.oz=function(){var E=this.G.getProgressState(),e=E.seekableEnd;this.api.getPresentingPlayerType()===2&&(e=this.Z?this.Z/1E3:E.seekableEnd);this.progressBar.style.width=c2(new J_(E.seekableStart,e),E.current,0)*100+"%"}; yd.prototype.onStateChange=function(){g.XG(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.G.subscribe("h",this.oz,this),this.oz()):this.T!==-1&&(this.hide(),this.G.MR(this.T),this.T=-1))};g.d(jI,k3); jI.prototype.init=function(E,e,l,k){k3.prototype.init.call(this,E,e,l);if(e.skipOrPreviewRenderer){if(E=g.M(e.skipOrPreviewRenderer,Tp))l=new CB(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G,this.V),l.u3(this.J0),l.init(ng("skip-button"),E,this.macros),g.L(this,l);if(E=g.M(e.skipOrPreviewRenderer,Tp))var H=E.skipOffsetMilliseconds}e.brandInteractionRenderer&&(E=e.brandInteractionRenderer.brandInteractionRenderer,l=new RY(this.api,this.layoutId,this.interactionLoggingClientData,this.a4), l.u3(this.h0),l.init(ng("instream-user-sentiment"),E,this.macros),g.L(this,l));if(E=g.M(e,xdO))if(E=g.M(E,xdO))l=new nN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G,!!e.showWithoutLinkedMediaLayout),g.L(this,l),l.u3(this.J),l.init(ng("flyout-cta"),E,this.macros);k=k&&k.videoAdDurationSeconds;e.adBadgeRenderer&&(l=e.adBadgeRenderer,E=g.M(l,sn),E!=null?(l=new iu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!1),g.L(this,l),l.u3(this.T),l.init(ng("ad-badge"), E,this.macros),this.Z=l.element):(E=l.simpleAdBadgeRenderer,E==null&&(E={text:{text:"An\u00fancio",isTemplated:!1}}),l=new xd(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0),g.L(this,l),l.u3(this.T),l.init(ng("simple-ad-badge"),E,this.macros)));e.adPodIndex&&(E=g.M(e.adPodIndex,ikt),E!=null&&(l=new $d(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,l),l.u3(this.T),l.init(ng("ad-pod-index"),E)));e.adDurationRemaining&&!e.showWithoutLinkedMediaLayout&& (E=e.adDurationRemaining.adDurationRemainingRenderer,E==null&&(E={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),k=new zj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G,k,!1),g.L(this,k),k.u3(this.T),k.init(ng("ad-duration-remaining"),E,this.macros));e.adInfoRenderer&&(k=g.M(e.adInfoRenderer,RP))&&(E=new LN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.element,void 0,!1),g.L(this,E),this.Z!==null?this.T.insertBefore(E.element, this.Z.nextSibling):E.u3(this.T),E.init(ng("ad-info-hover-text-button"),k,this.macros));e.visitAdvertiserRenderer&&(E=g.M(e.visitAdvertiserRenderer,g.tS))&&(l=wZZ(this)&&this.S?this.S:this.T)&&(k=new pB(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,k),k.u3(l),k.init(ng("visit-advertiser"),E,this.macros),bF(k.element),E=aX(k.element),Pr(k.element,E+" This link opens in new tab"));!(k=this.api.Y())||g.Hk(k)||g.qA(k)||k.controlsType!="3"&&!k.disableOrganicUi||(H=new yd(this.api, this.G,H,!1),H.u3(this.c5),g.L(this,H));e.adDisclosureBannerRenderer&&(e=g.M(e.adDisclosureBannerRenderer,T2r))&&(H=new Uu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),H.u3(this.kt),H.init(ng("ad-disclosure-banner"),e),g.L(this,H));this.api.Y().L("enable_updated_html5_player_focus_style")&&g.qx(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; jI.prototype.clear=function(){this.hide()};g.fB.prototype.flush=function(E,e){E=E===void 0?[]:E;e=e===void 0?!1:e;if(g.QT("enable_client_streamz_web")){E=g.T(E);for(var l=E.next();!l.done;l=E.next())l=Ex7(l.value),this.T&&$4(l,OM,2,this.T),l={serializedIncrementBatch:g.Jz(l.Z())},g.E0("streamzIncremented",l,{sendIsolatedPayload:e})}}; g.d(d10,g.fB);var Cep=new Map;Vd.prototype.set=function(E,e,l){l=l!==void 0?Date.now()+l:void 0;this.T.set(E,e,l)}; Vd.prototype.get=function(E){return this.T.get(E)}; Vd.prototype.remove=function(E){this.T.remove(E)};var TE0=null;var v2=null,P2=null,ak=null,ckX=null;g.qW("yt.www.ads.eventcache.getLastCompanionData",function(){return v2}); g.qW("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.qW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return P2}); g.qW("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return ak}); g.qW("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return ckX});var jav=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);LB.prototype.handleResponse=function(E,e){if(!e)throw Error("request needs to be passed into ConsistencyService");var l,k;e=((l=e.M5.context)==null?void 0:(k=l.request)==null?void 0:k.consistencyTokenJars)||[];var H;(E=(H=E.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(e,E)}; LB.prototype.replace=function(E,e){E=g.T(E);for(var l=E.next();!l.done;l=E.next())delete this.T[l.value.encryptedTokenJarContents];Fz8(this,e)};var rV6=window.location.hostname.split(".").slice(-2).join("."),v5;M9.getInstance=function(){v5=g.eS("yt.clientLocationService.instance");v5||(v5=new M9,g.qW("yt.clientLocationService.instance",v5));return v5}; g.z=M9.prototype; g.z.setLocationOnInnerTubeContext=function(E){E.client||(E.client={});if(this.T)E.client.locationInfo||(E.client.locationInfo={}),E.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),E.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),E.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),E.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)E.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.z.handleResponse=function(E){var e;E=(e=E.responseContext)==null?void 0:e.locationPlayabilityToken;E!==void 0&&(this.locationPlayabilityToken=E,this.T=void 0,g.LF("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=h_(this))&&this.localStorage.set("yt-location-playability-token",E,15552E3):g.jQ("YT_CL",JSON.stringify({loctok:E}),15552E3,rV6,!0))}; g.z.clearLocationPlayabilityToken=function(E){E==="TVHTML5"?(this.localStorage=h_(this))&&this.localStorage.remove("yt-location-playability-token"):g.Fm("YT_CL");this.Z=void 0;this.G!==-1&&(clearTimeout(this.G),this.G=-1)}; g.z.getCurrentPositionFromGeolocation=function(){var E=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var e=!1,l=1E4;g.LF("INNERTUBE_CLIENT_NAME")==="MWEB"&&(e=!0,l=15E3);return new Promise(function(k,H){navigator.geolocation.getCurrentPosition(function(O){E.T=O;k(O)},function(O){H(O)},{enableHighAccuracy:e, maximumAge:0,timeout:l})})}; g.z.createUnpluggedLocationInfo=function(E){var e={};E=E.coords;if(E==null?0:E.latitude)e.latitudeE7=Math.floor(E.latitude*1E7);if(E==null?0:E.longitude)e.longitudeE7=Math.floor(E.longitude*1E7);if(E==null?0:E.accuracy)e.locationRadiusMeters=Math.round(E.accuracy);return e}; g.z.createLocationInfo=function(E){var e={};E=E.coords;if(E==null?0:E.latitude)e.latitudeE7=Math.floor(E.latitude*1E7);if(E==null?0:E.longitude)e.longitudeE7=Math.floor(E.longitude*1E7);return e};g.z=D1S.prototype;g.z.contains=function(E){return Object.prototype.hasOwnProperty.call(this.T,E)}; g.z.get=function(E){if(this.contains(E))return this.T[E]}; g.z.set=function(E,e){this.T[E]=e}; g.z.LF=function(){return Object.keys(this.T)}; g.z.remove=function(E){delete this.T[E]};ZX.prototype.getModuleId=function(E){return E.serviceId.getModuleId()}; ZX.prototype.get=function(E){a:{var e=this.mappings.get(E.toString());switch(e.type){case "mapping":E=e.value;break a;case "factory":e=e.value();this.mappings.set(E.toString(),{type:"mapping",value:e});E=e;break a;default:E=pk(e)}}return E}; ZX.prototype.registerService=function(E,e){this.mappings.set(E.toString(),{type:"mapping",value:e});return E}; new ZX;var P5={},bAZ=(P5.WEB_UNPLUGGED="^unplugged/",P5.WEB_UNPLUGGED_ONBOARDING="^unplugged/",P5.WEB_UNPLUGGED_OPS="^unplugged/",P5.WEB_UNPLUGGED_PUBLIC="^unplugged/",P5.WEB_CREATOR="^creator/",P5.WEB_KIDS="^kids/",P5.WEB_EXPERIMENTS="^experiments/",P5.WEB_MUSIC="^music/",P5.WEB_REMIX="^music/",P5.WEB_MUSIC_EMBEDDED_PLAYER="^music/",P5.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",P5);gH.prototype.W=function(E,e,l){e=e===void 0?{}:e;l=l===void 0?HN:l;var k={context:g.N9(E.clickTrackingParams,!1,this.S)};var H=this.G(E);if(H){this.T(k,H,e);var O;e=g.mt(this.Z());(H=(O=g.M(E.commandMetadata,g.jT))==null?void 0:O.apiUrl)&&(e=H);O=Gb7(fE(e));E=Object.assign({},{command:E},void 0);k={input:O,U4:VT(O),M5:k,config:E};k.config.b0?k.config.b0.identity=l:k.config.b0={identity:l};return k}l=new g.PK("Error: Failed to create Request from Command.",E);g.$F(l)}; g.O9.Object.defineProperties(gH.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.d(KB,gH);g.d(nB,KB);nB.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",U4:VT("/getDatasyncIdsEndpoint","GET"),M5:{}}}; nB.prototype.Z=function(){return[]}; nB.prototype.G=function(){}; nB.prototype.T=function(){};var DV$={},oPX=(DV$.GET_DATASYNC_IDS=Yd(nB),DV$);var aA={},blt=(aA["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",aA["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",aA["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",aA["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",aA["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",aA["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",aA["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", aA["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",aA["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",aA["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",aA["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",aA["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",aA["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",aA["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",aA["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", aA["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",aA["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",aA["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",aA["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",aA["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",aA["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",aA["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", aA["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",aA.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",aA["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",aA["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",aA["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",aA["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",aA["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",aA["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", aA["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",aA["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",aA["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",aA["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",aA["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",aA["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",aA["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",aA["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",aA["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",aA["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",aA.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",aA["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",aA["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",aA["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",aA["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",aA["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",aA["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",aA["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",aA["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",aA["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",aA["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",aA["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",aA["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",aA["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",aA["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",aA["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",aA["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",aA["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",aA["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",aA["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",aA["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",aA["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", aA["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",aA["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",aA["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",aA["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",aA["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",aA["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",aA["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",aA["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",aA["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", aA["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",aA["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",aA["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",aA["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",aA["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",aA["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",aA["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",aA["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", aA),L7={},NE8=(L7.auto_search="LATENCY_ACTION_AUTO_SEARCH",L7.ad_to_ad="LATENCY_ACTION_AD_TO_AD",L7.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",L7.app_startup="LATENCY_ACTION_APP_STARTUP",L7.browse="LATENCY_ACTION_BROWSE",L7.cast_splash="LATENCY_ACTION_CAST_SPLASH",L7.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",L7.channels="LATENCY_ACTION_CHANNELS",L7.chips="LATENCY_ACTION_CHIPS",L7.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",L7.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", L7.editor="LATENCY_ACTION_EDITOR",L7.embed="LATENCY_ACTION_EMBED",L7.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",L7.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",L7.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",L7.explore="LATENCY_ACTION_EXPLORE",L7.favorites="LATENCY_ACTION_FAVORITES",L7.home="LATENCY_ACTION_HOME",L7.inboarding="LATENCY_ACTION_INBOARDING",L7.landing="LATENCY_ACTION_LANDING",L7.learning="LATENCY_ACTION_LEARNING", L7.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",L7.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",L7.library="LATENCY_ACTION_LIBRARY",L7.live="LATENCY_ACTION_LIVE",L7.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",L7.management="LATENCY_ACTION_MANAGEMENT",L7.mini_app="LATENCY_ACTION_MINI_APP_PLAY",L7.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",L7.onboarding="LATENCY_ACTION_ONBOARDING",L7.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", L7.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",L7.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",L7.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",L7.prebuffer="LATENCY_ACTION_PREBUFFER",L7.prefetch="LATENCY_ACTION_PREFETCH",L7.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",L7.profile_switcher="LATENCY_ACTION_LOGIN",L7.projects="LATENCY_ACTION_PROJECTS",L7.reel_watch="LATENCY_ACTION_REEL_WATCH",L7.results="LATENCY_ACTION_RESULTS",L7.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", L7.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",L7.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",L7.review="LATENCY_ACTION_REVIEW",L7.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",L7.search_ui="LATENCY_ACTION_SEARCH_UI",L7.search_suggest="LATENCY_ACTION_SUGGEST",L7.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",L7.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",L7.seek="LATENCY_ACTION_PLAYER_SEEK",L7.settings="LATENCY_ACTION_SETTINGS",L7.store="LATENCY_ACTION_STORE", L7.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",L7.tenx="LATENCY_ACTION_TENX",L7.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",L7.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",L7.watch="LATENCY_ACTION_WATCH",L7.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",L7["watch,watch7"]="LATENCY_ACTION_WATCH",L7["watch,watch7_html5"]="LATENCY_ACTION_WATCH",L7["watch,watch7ad"]="LATENCY_ACTION_WATCH",L7["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",L7.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", L7.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",L7.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",L7.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",L7.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",L7.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",L7.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",L7.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",L7);Object.assign(NE8,blt);g.d(OX,OQ);var k17=new XP("aft-recorded",OX);var vv0=g.t7.ytLoggingGelSequenceIdObj_||{};g.qW("ytLoggingGelSequenceIdObj_",vv0);var Al=g.t7.ytLoggingLatencyUsageStats_||{};g.qW("ytLoggingLatencyUsageStats_",Al);XX.prototype.tick=function(E,e,l,k){Cd(this,"tick_"+E+"_"+e)||g.E0("latencyActionTicked",{tickName:E,clientActionNonce:e},{timestamp:l,cttAuthInfo:k})}; XX.prototype.info=function(E,e,l){var k=Object.keys(E).join("");Cd(this,"info_"+k+"_"+e)||(E=Object.assign({},E),E.clientActionNonce=e,g.E0("latencyActionInfo",E,{cttAuthInfo:l}))}; XX.prototype.jspbInfo=function(E,e,l){for(var k="",H=0;H=H.length?(e.append(H),E-=H.length):E?(e.append(new Uint8Array(H.buffer,H.byteOffset,E)),l.append(new Uint8Array(H.buffer,H.byteOffset+E,H.length-E)),E=0):l.append(H);return{AI:e,Cz:l}}; eV.prototype.isFocused=function(E){return E>=this.Z&&E=64&&(this.J.set(E.subarray(0,64-this.G),this.G),e=64-this.G,this.G=0,O2S(this,this.J,0));for(;e+64<=l;e+=64)O2S(this,E,e);e=this.start&&(E=2&&l.ssdaiAdsConfig&&kd("Unexpected ad placement renderers length",E.slot,null,{length:k.length});var H;((H=l.adSlots)==null?0:H.some(function(O){var X,A;return((X=g.M(O,ej))==null?void 0:(A=X.adSlotMetadata)==null?void 0:A.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||k.some(function(O){var X,A,C,p; return!!((X=O.renderer)==null?0:(A=X.linearAdSequenceRenderer)==null?0:(C=A.linearAds)==null?0:C.length)||!((p=O.renderer)==null||!p.instreamVideoAdRenderer)})||I_9(E)})}; m6.prototype.iK=function(){WoW(this.T)};gY.prototype.Em=function(){var E=this;QOX(this.G,function(){var e=Yi(E.slot.clientMetadata,"metadata_type_ad_break_request_data");return e.cueProcessedMs?E.T.get().fetch({Mk:e.getAdBreakUrl,HZ:new g.Mr(e.YC,e.DN),cueProcessedMs:e.cueProcessedMs}):E.T.get().fetch({Mk:e.getAdBreakUrl,HZ:new g.Mr(e.YC,e.DN)})})}; gY.prototype.iK=function(){WoW(this.G)};Kp.prototype.Em=function(){var E=this.slot.clientMetadata,e,l=(e=this.slot.fulfilledLayout)!=null?e:Yi(E,"metadata_type_fulfilled_layout");mvX(this.callback,this.slot,l)}; Kp.prototype.iK=function(){Hu(this.callback,this.slot,new n("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};Rw.prototype.build=function(E,e){return e.fulfilledLayout||np(e,{IG:["metadata_type_fulfilled_layout"]})?new Kp(E,e):this.Z(E,e)};g.d(sG,Rw); sG.prototype.Z=function(E,e){if(np(e,{IG:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new m6(E,e,this.T,this.G,this.KY,this.ZM,this.l3,this.o4,this.m6);if(np(e,{IG:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new gY(E,e,this.T,this.G,this.KY,this.ZM);throw new n("Unsupported slot with type: "+e.slotType+" and client metadata: "+mq(e.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.d(tU,Rw);tU.prototype.Z=function(E,e){throw new n("Unsupported slot with type: "+e.slotType+" and client metadata: "+mq(e.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.z=FoX.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){}; g.z.release=function(){}; g.z.startRendering=function(E){if(E.layoutId!==this.layout.layoutId)this.callback.NK(this.slot,E,new Nk("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 e=Yi(E.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Ph(this.slot,E),gQ9(this.Z, this.slot,e)):kd("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,E)}}; g.z.Dx=function(E,e){E.layoutId!==this.layout.layoutId?this.callback.NK(this.slot,E,new Nk("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.G_(this.slot,E,e),V68(this),SJe(this))};g.d(kA,g.sJ);g.z=kA.prototype;g.z.qN=function(){return this.G.slot}; g.z.t0=function(){return this.G.layout}; g.z.init=function(){this.Z.get().addListener(this)}; g.z.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.z.lX=function(){}; g.z.sR=function(){}; g.z.ov=function(){}; g.z.Q3=function(){}; g.z.startRendering=function(E){var e=this;lj(this.G,E,function(){return void e.im()})}; g.z.im=function(){this.Z.get().im(this.T)}; g.z.Dx=function(E,e){var l=this;lj(this.G,E,function(){var k=l.Z.get();ZPX(k,l.T,3);l.T=[];l.callback.G_(l.slot,E,e)})}; g.z.Gz=function(){this.Z.U7()||this.Z.get().removeListener(this);g.sJ.prototype.Gz.call(this)}; g.O9.Object.defineProperties(kA.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.G.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.G.layout}}});xA.prototype.gB=function(E,e){e=e===void 0?!1:e;var l=(this.Z.get(E)||[]).concat();if(e=e&&vFy(E)){var k=this.Z.get(e);k&&l.push.apply(l,g.Be(k))}B_(this,E,l);this.T.add(E);e&&this.T.add(e)}; xA.prototype.Bh=function(E,e){e=e===void 0?!1:e;if(!this.T.has(E)){var l=e&&vFy(E);l&&(e=!this.T.has(l));this.gB(E,e)}};g.d(Lol,RO);g.d(GY,kA);g.z=GY.prototype;g.z.v7=function(E,e){uj("ads-engagement-panel-layout",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,IP),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(e,l,k,H,O){return new Lol(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(M6p,RO);g.d(TY,kA);g.z=TY.prototype;g.z.v7=function(E,e){uj("banner-image",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,cF),this.callback,"metadata_type_banner_image_layout_view_model",function(e,l,k,H,O){return new M6p(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(ij,RO);g.d($A,kA);g.z=$A.prototype;g.z.v7=function(E,e){uj("action-companion",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,$t),this.callback,"metadata_type_action_companion_ad_renderer",function(e,l,k,H,O){return new ij(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){e.layoutId===this.layout.layoutId?this.Cg.Bh("impression"):this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(YJ7,RO);g.d(UU,kA);g.z=UU.prototype;g.z.v7=function(E,e){uj("image-companion",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,Ua),this.callback,"metadata_type_image_companion_ad_renderer",function(e,l,k,H,O){return new YJ7(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){e.layoutId===this.layout.layoutId?this.Cg.Bh("impression"):this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(gFv,RO);g.d(Jj,kA);g.z=Jj.prototype;g.z.v7=function(E,e){uj("shopping-companion",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(e,l,k,H,O){return new gFv(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){e.layoutId===this.layout.layoutId?this.Cg.Bh("impression"):this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(yV,kA);g.z=yV.prototype;g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(e,l,k,H,O){return new ij(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(){}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)}; g.z.v7=function(){};g.z=qJ0.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){this.o4.get().addListener(this);this.o4.get().tD.push(this);var E=Yi(this.layout.clientMetadata,"metadata_type_video_length_seconds"),e=Yi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Aj(this.layout.E7)&&uR(this.n7.get(),this.layout.layoutId,{qy:e,CZ:E,listener:this})}; g.z.release=function(){this.o4.get().removeListener(this);a69(this.o4.get(),this);Aj(this.layout.E7)&&AN(this.n7.get(),this.layout.layoutId)}; g.z.startRendering=function(E){this.callback.Ph(this.slot,E)}; g.z.Dx=function(E,e){Aye(this.ZM.get())&&!this.T&&(this.Cg.Bh("abandon"),this.T=!0);this.callback.G_(this.slot,E,e)}; g.z.L_=function(E){switch(E.id){case "part2viewed":this.Cg.Bh("start");this.Cg.Bh("impression");break;case "videoplaytime25":this.Cg.Bh("first_quartile");break;case "videoplaytime50":this.Cg.Bh("midpoint");break;case "videoplaytime75":this.Cg.Bh("third_quartile");break;case "videoplaytime100":Aye(this.ZM.get())?this.T||(this.Cg.Bh("complete"),this.T=!0):this.Cg.Bh("complete");d0(this.Cg)&&w0(this.Cg,Infinity,!0);Clv(this.ZM.get())&&c_(this.G,Infinity,!0);break;case "engagedview":d0(this.Cg)||this.Cg.Bh("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:kd("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.z.onVolumeChange=function(){}; g.z.KI=function(){}; g.z.uO=function(){}; g.z.e1=function(){}; g.z.onFullscreenToggled=function(){}; g.z.LD=function(){}; g.z.eY=function(){}; g.z.VV=function(E){Clv(this.ZM.get())&&c_(this.G,E*1E3,!1);d0(this.Cg)&&w0(this.Cg,E*1E3,!1)}; g.z.Bn=function(){}; g.z.iE=function(){this.Cg.Bh("active_view_measurable")}; g.z.Qq=function(){this.Cg.Bh("active_view_viewable")}; g.z.hT=function(){this.Cg.Bh("active_view_fully_viewable_audible_half_duration")}; g.z.xI=function(){this.Cg.Bh("audio_measurable")}; g.z.F1=function(){this.Cg.Bh("audio_audible")};g.d(jE,kA);g.z=jE.prototype;g.z.init=function(){kA.prototype.init.call(this);var E=Yi(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e={adsClientData:this.layout.lY};this.T.push(new Qd(E,this.layout.layoutId,Yi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),e,!0))}; g.z.Vc=function(){this.S||this.o4.get().resumeVideo(1)}; g.z.startRendering=function(E){kA.prototype.startRendering.call(this,E);we(this.o4.get(),"ad-showing");this.callback.Ph(this.slot,E);this.W.eb=this}; g.z.Dx=function(E,e){kA.prototype.Dx.call(this,E,e);zk(this.o4.get(),"ad-showing");eT(this.W,this)}; g.z.v7=function(E){switch(E){case "ad-info-icon-button":(this.S=this.o4.get().tQ(1))||this.o4.get().pauseVideo();break;case "visit-advertiser":this.o4.get().pauseVideo()}}; g.z.Gz=function(){kA.prototype.Gz.call(this)};g.d(Iv,RO);g.d(Fd,kA);g.z=Fd.prototype;g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(e,l,k,H,O){return new Iv(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(){}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)}; g.z.v7=function(){};g.d(fr,RO);g.d(VV,kA);VV.prototype.init=function(){kA.prototype.init.call(this);this.T.push(new fr(g.M(this.layout.renderingContent,Z5),this.layout.layoutId,{adsClientData:this.layout.lY}))}; VV.prototype.v7=function(){gM(this.S.get(),this.W)&&Xd(this.l3.get(),3)}; VV.prototype.startRendering=function(E){kA.prototype.startRendering.call(this,E);this.callback.Ph(this.slot,E)}; VV.prototype.Gz=function(){kA.prototype.Gz.call(this)};g.d(SE,RO);g.d(r0,kA);r0.prototype.init=function(){kA.prototype.init.call(this);var E=g.M(this.layout.renderingContent,g0)||Yi(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),e=H_(this.Cg);this.T.push(new SE(E,e,this.layout.layoutId,{adsClientData:this.layout.lY},!0,!0))}; r0.prototype.startRendering=function(E){kA.prototype.startRendering.call(this,E);this.callback.Ph(this.slot,E)}; r0.prototype.v7=function(E,e){if(e===this.layout.layoutId)switch(E){case "skip-button":var l;(E=(l=Yi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&E.Kf(this.qN(),this.layout)}}; r0.prototype.Gz=function(){kA.prototype.Gz.call(this)};bj.prototype.build=function(E,e,l,k){if(Dn(k,{IG:["metadata_type_ad_break_response_data"],yy:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new FoX(E,l,k,this.G,this.Z,this.T);throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+mq(k.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.d(lbl,RO);g.d(v_,kA);g.z=v_.prototype;g.z.v7=function(E,e){uj("ads-engagement-panel",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,JS),this.callback,"metadata_type_ads_engagement_panel_renderer",function(e,l,k,H,O){return new lbl(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){e.layoutId===this.layout.layoutId?this.Cg.Bh("impression"):this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};g.d(P_,kA);g.z=P_.prototype;g.z.v7=function(E,e){uj("top-banner-image-text-icon-buttoned",E,this.J.get().n_,this.l3.get(),this.S,this.W,this.qN(),this.t0(),e)}; g.z.startRendering=function(E){OU(this.Cg,this.qN(),this.t0(),g.M(this.t0().renderingContent,jr),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(e,l,k,H,O){return new Iv(e,l,k,H,O)},this.T); kA.prototype.startRendering.call(this,E)}; g.z.Ph=function(E,e){this.W===e.layoutId&&(this.S===null?this.S=this.l3.get().wB():kd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Gz=function(){lx(this.K7(),this);kA.prototype.Gz.call(this)};ONp.prototype.build=function(E,e,l,k){if(Dn(k,ktp())||g.M(k.renderingContent,JS)!==void 0)return new v_(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,Zgy())||g.M(k.renderingContent,$t)!==void 0)return new $A(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,mSW())||g.M(k.renderingContent,Ua)!==void 0)return new UU(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,Kop()))return new Jj(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,t6Z()))return new yV(E,l,k,this.VB,this.l3,this.K7, this.n7,this.T);if(Dn(k,NwX())||g.M(k.renderingContent,cF)!==void 0)return new TY(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,HNe())||g.M(k.renderingContent,jr)!==void 0)return new P_(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,E3S()))return new Fd(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);if(Dn(k,hzX())||g.M(k.renderingContent,IP)!==void 0)return new GY(E,l,k,this.VB,this.l3,this.K7,this.n7,this.T);throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+ mq(k.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};XT0.prototype.build=function(E,e,l,k){if(Dn(k,{IG:["metadata_type_linked_player_bytes_layout_id"],yy:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new VV(E,l,k,this.VB,this.l3,this.T);throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+mq(k.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.z=u0S.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){}; g.z.release=function(){}; g.z.startRendering=function(E){E.layoutId!==this.layout.layoutId?this.callback.NK(this.slot,E,new Nk("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.Ph(this.slot,E),this.Cg.Bh("impression"),Xf(this.qw,E,"normal"))}; g.z.Dx=function(E,e){E.layoutId!==this.layout.layoutId?this.callback.NK(this.slot,E,new Nk("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.G_(this.slot,E,e)};g.z=CU0.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){}; g.z.release=function(){}; g.z.startRendering=function(E){E.layoutId!==this.layout.layoutId?this.callback.NK(this.slot,E,new Nk("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.Ph(this.slot,E),this.Cg.Bh("impression"),Xf(this.qw,E,"normal"))}; g.z.Dx=function(E,e){E.layoutId!==this.layout.layoutId?this.callback.NK(this.slot,E,new Nk("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.G_(this.slot,E,e)};av.prototype.build=function(E,e,l,k){if(!this.ZM.get().U.Y().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Dn(k,Aqv()))return new u0S(E,l,k,this.l3,this.qw)}else if(Dn(k,{IG:[],yy:["LAYOUT_TYPE_FORECASTING"]}))return new CU0(E,l,k,this.l3,this.qw);throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+mq(k.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.d(QYy,RO);g.d(Lr,kA);g.z=Lr.prototype;g.z.init=function(){kA.prototype.init.call(this);var E=g.M(this.layout.renderingContent,m3)||Yi(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),e={adsClientData:this.layout.lY};this.T.push(new QYy(E,Yi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,e))}; g.z.Vc=function(){this.S||this.o4.get().resumeVideo(2)}; g.z.startRendering=function(E){kA.prototype.startRendering.call(this,E);this.callback.Ph(this.slot,E);this.W.eb=this}; g.z.Dx=function(E,e){kA.prototype.Dx.call(this,E,e);eT(this.W,this)}; g.z.v7=function(E,e){if(!rY(this.ZM.get(),"stop_handling_click_for_non_rendering_overlay_layout")||e===this.layout.layoutId){if(gM(this.J.get(),this.j))switch(E){case "visit-advertiser-link":Xd(this.l3.get(),3)}switch(E){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.o4.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.o4.get().tQ(2))||this.o4.get().pauseVideo();break; case "visit-advertiser-link":this.o4.get().pauseVideo();WOy(this).PW();break;case "skip-button":if(E=WOy(this),this.layout.renderingContent&&!Lj(this.layout.clientMetadata,"metadata_type_dai")||!E||!E.aC){var l;(E=(l=Yi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&E.Kf(this.qN(),this.layout)}else kd("Requesting to skip by LegacyPlayerBytes when components enabled"),E.fR(this.qN(),this.layout)}}}; g.z.Gz=function(){kA.prototype.Gz.call(this)};g.d(hj,kA);g.z=hj.prototype;g.z.init=function(){kA.prototype.init.call(this);var E=g.M(this.layout.renderingContent,YA)||Yi(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e={adsClientData:this.layout.lY},l;(l=!!this.layout.renderingContent)||(l=Mg(this),l=!(l&&l.aC));this.T.push(new Qd(E,this.layout.layoutId,Yi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),e,l))}; g.z.Vc=function(){this.S||this.o4.get().resumeVideo(2)}; g.z.startRendering=function(E){kA.prototype.startRendering.call(this,E);this.callback.Ph(this.slot,E);this.W.eb=this}; g.z.Dx=function(E,e){kA.prototype.Dx.call(this,E,e);eT(this.W,this)}; g.z.v7=function(E,e){if(!this.ZM||!rY(this.ZM.get(),"stop_handling_click_for_non_rendering_overlay_layout")||e===this.layout.layoutId){if(gM(this.J.get(),this.j))switch(E){case "visit-advertiser":Xd(this.l3.get(),3)}switch(E){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.o4.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.o4.get().tQ(2))||this.o4.get().pauseVideo();break; case "visit-advertiser":this.o4.get().pauseVideo();Mg(this).PW();break;case "skip-button":if(E=Mg(this),this.layout.renderingContent&&!Lj(this.layout.clientMetadata,"metadata_type_dai")||!E||!E.aC){var l;(E=(l=Yi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&E.Kf(this.qN(),this.layout)}else kd("Requesting to skip by LegacyPlayerBytes"),E.fR(this.qN(),this.layout)}}}; g.z.Gz=function(){kA.prototype.Gz.call(this)};g.d(o37,RO);g.d(Ng,kA);g.z=Ng.prototype;g.z.startRendering=function(E){var e=this;lj(this.G,E,function(){e.T.push(new o37(Yi(e.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),E.layoutId,E.lY));e.im();e.callback.Ph(e.slot,E);g.m(XQ(e.o4.get(),1),512)&&e.callback.NK(e.qN(),e.t0(),new Nk("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.z.eY=function(){}; g.z.LD=function(E){if(E.state.isError()){var e;this.callback.NK(this.qN(),this.t0(),new Nk("A player error happened during adNotify",{playerErrorCode:(e=E.state.Bf)==null?void 0:e.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.z.onFullscreenToggled=function(){}; g.z.uO=function(){}; g.z.e1=function(){}; g.z.KI=function(){}; g.z.onVolumeChange=function(){}; g.z.L_=function(){}; g.z.Bn=function(){}; g.z.v7=function(){};g.d(za7,RO);g.d(Zn,kA);Zn.prototype.init=function(){kA.prototype.init.call(this);var E=g.M(this.layout.renderingContent,Kr),e=H_(this.Cg);this.T.push(new za7(E,e,this.layout.layoutId,{adsClientData:this.layout.lY}))}; Zn.prototype.startRendering=function(E){kA.prototype.startRendering.call(this,E);this.callback.Ph(this.slot,E)}; Zn.prototype.v7=function(E,e){if(e===this.layout.layoutId)switch(E){case "skip-button":var l;(E=(l=Yi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&E.Kf(this.qN(),this.layout)}}; Zn.prototype.Gz=function(){kA.prototype.Gz.call(this)};dZv.prototype.build=function(E,e,l,k){if(E=nr(E,l,k,this.VB,this.o4,this.l3,this.G,this.T,this.ZM))return E;throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+mq(k.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.z=tj.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){this.o4.get().addListener(this);this.o4.get().tD.push(this);if(this.layout.renderingContent){var E=this.Lg.get();E=Ve(E,1).t6/1E3}else E=Yi(this.layout.clientMetadata,"metadata_type_video_length_seconds");var e=g.M(this.layout.renderingContent,hS),l=e?Cr(e.pings):Yi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");e=e?bgW(e.pings):Yi(this.layout.clientMetadata,"metadata_type_active_view_identifier");Aj(this.layout.E7)&&uR(this.n7.get(),this.layout.layoutId, {qy:l,CZ:E,listener:this,RT:e})}; g.z.release=function(){this.o4.get().removeListener(this);a69(this.o4.get(),this);Aj(this.layout.E7)&&AN(this.n7.get(),this.layout.layoutId)}; g.z.startRendering=function(E){this.callback.Ph(this.slot,E)}; g.z.Dx=function(E,e){qg(this,"abandon");this.callback.G_(this.slot,E,e)}; g.z.L_=function(E){switch(E.id){case "part2viewed":this.Cg.Bh("start");this.Cg.Bh("impression");break;case "videoplaytime25":this.Cg.Bh("first_quartile");break;case "videoplaytime50":this.Cg.Bh("midpoint");break;case "videoplaytime75":this.Cg.Bh("third_quartile");break;case "videoplaytime100":qg(this,"complete");d0(this.Cg)&&w0(this.Cg,Infinity,!0);break;case "engagedview":d0(this.Cg)||this.Cg.Bh("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:kd("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.z.onVolumeChange=function(){}; g.z.KI=function(){}; g.z.uO=function(){}; g.z.e1=function(){}; g.z.onFullscreenToggled=function(){}; g.z.LD=function(E){this.T||(g.Xh(E,4)&&!g.Xh(E,2)?ov(this.Cg,"pause"):Ou(E,4)<0&&!(Ou(E,2)<0)&&ov(this.Cg,"resume"))}; g.z.eY=function(){}; g.z.VV=function(E){d0(this.Cg)&&w0(this.Cg,E*1E3,!1)}; g.z.Bn=function(){qg(this,"swipe")}; g.z.iE=function(){this.Cg.Bh("active_view_measurable")}; g.z.Qq=function(){this.Cg.Bh("active_view_viewable")}; g.z.hT=function(){this.Cg.Bh("active_view_fully_viewable_audible_half_duration")}; g.z.xI=function(){this.Cg.Bh("audio_measurable")}; g.z.F1=function(){this.Cg.Bh("audio_audible")};GtW.prototype.build=function(E,e,l,k){if(l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.M(k.renderingContent,hS)!==void 0)return new tj(E,l,k,this.o4,this.l3,this.ZM,this.n7,this.Lg);e=["metadata_type_ad_placement_config"];for(var H=g.T(QV()),O=H.next();!O.done;O=H.next())e.push(O.value);if(Dn(k,{IG:e,yy:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new tj(E,l,k,this.o4,this.l3,this.ZM,this.n7,this.Lg):new qJ0(E,l,k,this.o4,this.l3, this.QB,this.ZM,this.n7);throw new Nk("Unsupported layout with type: "+k.layoutType+" and client metadata: "+mq(k.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var kf={contentCpn:"",LO:new Map};FOS.prototype.p7=function(E,e){var l={};e=Object.assign({},e,(l.cc=this.H7.x4(),l));this.H7.U.wH(E,e)};var lit,YS; lit={MrD:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",xwt:"AUTHENTICATION_MALFORMED",hkt:"AUTHENTICATION_MISSING",ux4:"BAD_REQUEST",JV7:"CAST_SESSION_DEVICE_MISMATCHED",Wfn:"CAST_SESSION_VIDEO_MISMATCHED",Lf3:"CAST_TOKEN_EXPIRED",jrt:"CAST_TOKEN_FAILED",ekg:"CAST_TOKEN_MALFORMED",qv4:"CGI_PARAMS_MALFORMED",B2d:"CGI_PARAMS_MISSING",nE7:"DEVICE_FALLBACK",LYt:"GENERIC_WITH_LINK_AND_CPN",j63:"ERROR_HDCP",eYD:"LICENSE",BM5:"VIDEO_UNAVAILABLE",CP7:"FORMAT_UNAVAILABLE",NMR:"GEO_FAILURE", Ty7:"HTML5_AUDIO_RENDERER_ERROR",GTn:"GENERIC_WITHOUT_LINK",ZMd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Spd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",XyR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",FSt:"HTML5_SPS_UMP_STATUS_REJECTED",fyR:"INVALID_DRM_MESSAGE",Z9n:"PURCHASE_NOT_FOUND",Sw6:"PURCHASE_REFUNDED",usn:"RENTAL_EXPIRED",JYz:"RETRYABLE_ERROR",O9d:"SERVER_ERROR",H94:"SIGNATURE_EXPIRED",VG6:"STOPPED_BY_ANOTHER_PLAYBACK",E74:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",diR:"STREAMING_NOT_ALLOWED", IWM:"STREAM_LICENSE_NOT_FOUND",Zi3:"TOO_MANY_REQUESTS",S_5:"TOO_MANY_REQUESTS_WITH_LINK",XVM:"TOO_MANY_STREAMS_PER_ENTITLEMENT",FW5:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",aWH:"VIDEO_FORBIDDEN",biR:"VIDEO_NOT_FOUND",llH:"BROWSER_OR_EXTENSION_ERROR"};YS={}; g.tm=(YS.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",YS.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",YS.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", YS.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",YS.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",YS.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",YS.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",YS.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",YS.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",YS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",YS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",YS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",YS.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", YS.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",YS.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",YS.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",YS.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",YS.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",YS.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", YS.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",YS.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",YS.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",YS.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",YS.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", YS.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",YS.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",YS.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",YS.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",YS.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", YS.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",YS.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",YS.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",YS.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",YS.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",YS.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",YS.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",YS);var ks$;var Hf_=g.vj(),OfW=Hf_.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!OfW||OfW.length<2)ks$=void 0;else{var X1$=Hf_.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);ks$=X1$&&X1$.length===6?Number(X1$[5].replace("_",".")):0}var Hv=ks$,YL=Hv>=0;g.d(g.G_,GC);g.G_.prototype.C=function(E,e,l,k,H){return GC.prototype.C.call(this,E,e,l,k,H)};var mY={},Pl=(mY.FAIRPLAY="fairplay",mY.PLAYREADY="playready",mY.WIDEVINE="widevine",mY.CLEARKEY=null,mY.FLASHACCESS=null,mY.UNKNOWN=null,mY.WIDEVINE_CLASSIC=null,mY);T_.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var g5={},M3=(g5.WIDTH={name:"width",video:!0,valid:640,hY:99999},g5.HEIGHT={name:"height",video:!0,valid:360,hY:99999},g5.FRAMERATE={name:"framerate",video:!0,valid:30,hY:9999},g5.BITRATE={name:"bitrate",video:!0,valid:3E5,hY:2E9},g5.EOTF={name:"eotf",video:!0,valid:"bt709",hY:"catavision"},g5.CHANNELS={name:"channels",video:!1,valid:2,hY:99},g5.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",hY:"invalidformat"},g5.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", hY:"nope"},g5.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",hY:"av99.0.05M.08"},g5.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",hY:"invalid"},g5.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",hY:"false"},g5);var u7W=["h","H"],Az2=["9","("],CZO=["9h","(h"],p1$=["8","*"],xR2=["a","A"],Q7G=["o","O"],Wht=["m","M"],BP2=["mac3","MAC3"],ob_=["meac3","MEAC3"],K7={},hK8=(K7.h=u7W,K7.H=u7W,K7["9"]=Az2,K7["("]=Az2,K7["9h"]=CZO,K7["(h"]=CZO,K7["8"]=p1$,K7["*"]=p1$,K7.a=xR2,K7.A=xR2,K7.o=Q7G,K7.O=Q7G,K7.m=Wht,K7.M=Wht,K7.mac3=BP2,K7.MAC3=BP2,K7.meac3=ob_,K7.MEAC3=ob_,K7),w12=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),yjX=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var t={},yp=(t["0"]="f",t["160"]="h",t["133"]="h",t["134"]="h",t["135"]="h",t["136"]="h",t["137"]="h",t["264"]="h",t["266"]="h",t["138"]="h",t["298"]="h",t["299"]="h",t["304"]="h",t["305"]="h",t["214"]="h",t["216"]="h",t["374"]="h",t["375"]="h",t["140"]="a",t["141"]="a",t["327"]="sa",t["258"]="m",t["380"]="mac3",t["328"]="meac3",t["161"]="H",t["142"]="H",t["143"]="H",t["144"]="H",t["222"]="H",t["223"]="H",t["145"]="H",t["224"]="H",t["225"]="H",t["146"]="H",t["226"]="H",t["227"]="H",t["147"]="H",t["384"]= "H",t["376"]="H",t["385"]="H",t["377"]="H",t["149"]="A",t["261"]="M",t["381"]="MAC3",t["329"]="MEAC3",t["598"]="9",t["278"]="9",t["242"]="9",t["243"]="9",t["244"]="9",t["775"]="9",t["776"]="9",t["777"]="9",t["778"]="9",t["779"]="9",t["780"]="9",t["781"]="9",t["782"]="9",t["783"]="9",t["247"]="9",t["248"]="9",t["353"]="9",t["355"]="9",t["356"]="9",t["271"]="9",t["577"]="9",t["313"]="9",t["579"]="9",t["272"]="9",t["302"]="9",t["303"]="9",t["407"]="9",t["408"]="9",t["308"]="9",t["315"]="9",t["330"]= "9h",t["331"]="9h",t["332"]="9h",t["333"]="9h",t["334"]="9h",t["335"]="9h",t["336"]="9h",t["337"]="9h",t["338"]="so",t["600"]="o",t["250"]="o",t["251"]="o",t["774"]="o",t["194"]="*",t["195"]="*",t["220"]="*",t["221"]="*",t["196"]="*",t["197"]="*",t["279"]="(",t["280"]="(",t["317"]="(",t["318"]="(",t["273"]="(",t["274"]="(",t["357"]="(",t["358"]="(",t["275"]="(",t["359"]="(",t["360"]="(",t["276"]="(",t["583"]="(",t["584"]="(",t["314"]="(",t["585"]="(",t["561"]="(",t["277"]="(",t["361"]="(h",t["362"]= "(h",t["363"]="(h",t["364"]="(h",t["365"]="(h",t["366"]="(h",t["591"]="(h",t["592"]="(h",t["367"]="(h",t["586"]="(h",t["587"]="(h",t["368"]="(h",t["588"]="(h",t["562"]="(h",t["409"]="(",t["410"]="(",t["411"]="(",t["412"]="(",t["557"]="(",t["558"]="(",t["394"]="1",t["395"]="1",t["396"]="1",t["397"]="1",t["398"]="1",t["399"]="1",t["720"]="1",t["721"]="1",t["400"]="1",t["401"]="1",t["571"]="1",t["402"]="1",t["694"]="1h",t["695"]="1h",t["696"]="1h",t["697"]="1h",t["698"]="1h",t["699"]="1h",t["700"]="1h", t["701"]="1h",t["702"]="1h",t["703"]="1h",t["386"]="3",t["387"]="w",t["406"]="6",t["787"]="1",t["788"]="1",t["548"]="1e",t["549"]="1e",t["550"]="1e",t["551"]="1e",t["809"]="1e",t["810"]="1e",t["552"]="1e",t["811"]="1e",t["812"]="1e",t["553"]="1e",t["813"]="1e",t["814"]="1e",t["554"]="1e",t["815"]="1e",t["816"]="1e",t["555"]="1e",t["817"]="1e",t["818"]="1e",t["572"]="1e",t["556"]="1e",t["645"]="(",t["646"]="(",t["647"]="(",t["648"]="(",t["649"]="(",t["650"]="(",t["651"]="(",t["652"]="(",t["653"]="(", t["654"]="(",t["655"]="(",t["656"]="(",t["657"]="(",t["658"]="(",t["659"]="(",t["660"]="(",t["661"]="(",t["662"]="(",t["663"]="(",t["664"]="(",t["665"]="(",t["666"]="(",t["667"]="(",t["668"]="(",t["669"]="(",t["670"]="(",t["671"]="(",t["672"]="(",t["673"]="(",t["674"]="(h",t["675"]="(h",t["676"]="(h",t["677"]="(h",t["678"]="(h",t["679"]="(h",t["680"]="(h",t["681"]="(h",t["682"]="(h",t["683"]="(h",t["684"]="(h",t["685"]="(h",t["686"]="(h",t["687"]="(h",t["688"]="A",t["689"]="A",t["690"]="A",t["691"]= "MEAC3",t["773"]="i",t["806"]="I",t["805"]="I",t["829"]="9",t["830"]="9",t["831"]="9",t["832"]="9",t["833"]="9",t["834"]="9",t["835"]="9",t["836"]="9",t["892"]="9",t["893"]="9",t["837"]="9",t["838"]="9",t["839"]="9",t["840"]="9",t["841"]="(",t["842"]="(",t["843"]="(",t["844"]="(",t["845"]="(",t["846"]="(",t["847"]="(",t["848"]="(",t["894"]="(",t["895"]="(",t["849"]="(",t["850"]="(",t["851"]="(",t["852"]="(",t["865"]="9",t["866"]="9",t["867"]="9",t["868"]="9",t["869"]="9",t["870"]="9",t["871"]="9", t["872"]="9",t["896"]="9",t["897"]="9",t["873"]="9",t["874"]="9",t["875"]="9",t["876"]="9",t["877"]="(",t["878"]="(",t["879"]="(",t["880"]="(",t["881"]="(",t["882"]="(",t["883"]="(",t["884"]="(",t["898"]="(",t["899"]="(",t["885"]="(",t["886"]="(",t["887"]="(",t["888"]="(",t);var n7={},iXl=(n7.STEREO_LAYOUT_UNKNOWN=0,n7.STEREO_LAYOUT_LEFT_RIGHT=1,n7.STEREO_LAYOUT_TOP_BOTTOM=2,n7);var RA,j$;RA={};g.$f=(RA.auto=0,RA.tiny=144,RA.light=144,RA.small=240,RA.medium=360,RA.large=480,RA.hd720=720,RA.hd1080=1080,RA.hd1440=1440,RA.hd2160=2160,RA.hd2880=2880,RA.highres=4320,RA);j$={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var J4="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");UO.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};jO.prototype.E1=function(){return this.containerType===2}; jO.prototype.isEncrypted=function(){return!!this.oG}; jO.prototype.A2=function(){return!!this.audio}; jO.prototype.qK=function(){return!!this.video}; var fL=!1;g.d(q5,g.sJ);g.z=q5.prototype;g.z.appendBuffer=function(E,e,l){if(this.Ez.nV()!==this.appendWindowStart+this.start||this.Ez.y4()!==this.appendWindowEnd+this.start||this.Ez.eE()!==this.timestampOffset+this.start)this.Ez.supports(1),this.Ez.OG(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ez.Y6(this.timestampOffset+this.start);this.Ez.appendBuffer(E,e,l)}; g.z.abort=function(){this.Ez.abort()}; g.z.remove=function(E,e){this.Ez.remove(E+this.start,e+this.start)}; g.z.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.z.clear=function(){this.Ez.clear()}; g.z.OG=function(E,e){this.appendWindowStart=E;this.appendWindowEnd=e}; g.z.XM=function(){return this.timestampOffset+this.start}; g.z.nV=function(){return this.appendWindowStart}; g.z.y4=function(){return this.appendWindowEnd}; g.z.Y6=function(E){this.timestampOffset=E}; g.z.eE=function(){return this.timestampOffset}; g.z.HN=function(E){E=this.Ez.HN(E===void 0?!1:E);return t4(E,this.start,this.end)}; g.z.fz=function(){return this.Ez.fz()}; g.z.xP=function(){return this.Ez.xP()}; g.z.ij=function(){return this.Ez.ij()}; g.z.K1=function(){return this.Ez.K1()}; g.z.HY=function(){this.Ez.HY()}; g.z.CX=function(E){return this.Ez.CX(E)}; g.z.SB=function(){return this.Ez.SB()}; g.z.D6=function(){return this.Ez.D6()}; g.z.O6=function(E,e,l){this.Ez.O6(E,e,l)}; g.z.aY=function(E,e,l){this.Ez.aY(E,e,l)}; g.z.B8=function(E,e){return this.Ez.B8(E,e)}; g.z.supports=function(E){return this.Ez.supports(E)}; g.z.Kk=function(){return this.Ez.Kk()}; g.z.isView=function(){return!0}; g.z.du=function(){return this.Ez.du()?this.isActive:!1}; g.z.isLocked=function(){return this.MW&&!this.isActive}; g.z.zX=function(E){E=this.Ez.zX(E);E.vw=this.start+"-"+this.end;return E}; g.z.YH=function(){return this.Ez.YH()}; g.z.hA=function(){return this.Ez.hA()}; g.z.n1=function(){return this.Ez.n1()}; g.z.Gz=function(){this.Ez.NB(this.r8);g.sJ.prototype.Gz.call(this)};var DM=!1;g.d(eK,g.sJ);g.z=eK.prototype;g.z.appendBuffer=function(E,e,l){this.fO=!1;l&&(this.kF=l);if(E.length){var k;((k=this.Jg)==null?0:k.appendBuffer)?this.Jg.appendBuffer(E):this.Jg?this.Jg.append(E):this.Uq&&this.Uq.webkitSourceAppend(this.id,E)}e&&(e.isEncrypted()&&(this.QV=this.kF),e.type===3&&(this.MK=e),this.nf.push(e.T_()),this.nf.length>4&&this.nf.shift());this.St&&(this.St.length>=2||E.length>1048576?delete this.St:this.St.push(E))}; g.z.abort=function(){try{this.Jg?this.Jg.abort():this.Uq&&this.Uq.webkitSourceAbort(this.id)}catch(e){if(Om0){var E=new g.PK("Error while abort the source buffer: "+e.name+", "+e.message);g.$F(E)}}this.kF=this.MK=null}; g.z.remove=function(E,e,l){this.fO=!1;var k;if((k=this.Jg)==null?0:k.remove)l&&l({b:Yf(this.HN()),s:E,e:e}),this.Jg.remove(E,e)}; g.z.removeAll=function(){this.remove(this.nV(),this.y4())}; g.z.clear=function(){this.ij()||(this.abort(),this.removeAll(),this.QV=this.kF=this.MK=null,this.appendWindowStart=this.timestampOffset=0,this.XA=Z9([],[]),this.fO=!1,this.St=E$?[]:void 0,this.wu=!0)}; g.z.nV=function(){if(DM&&this.qK)return this.appendWindowStart;var E;return((E=this.Jg)==null?void 0:E.appendWindowStart)||0}; g.z.y4=function(){var E;return((E=this.Jg)==null?void 0:E.appendWindowEnd)||0}; g.z.OG=function(E,e){this.Jg&&(DM&&this.qK?(this.appendWindowStart=E,this.Jg.appendWindowEnd=e):E>this.nV()?(this.Jg.appendWindowEnd=e,this.Jg.appendWindowStart=E):(this.Jg.appendWindowStart=E,this.Jg.appendWindowEnd=e))}; g.z.XM=function(){return this.timestampOffset}; g.z.Y6=function(E){DM?this.timestampOffset=E:this.supports(1)&&(this.Jg.timestampOffset=E)}; g.z.eE=function(){return DM?this.timestampOffset:this.supports(1)?this.Jg.timestampOffset:0}; g.z.HN=function(E){if(E===void 0?0:E)return this.fO||this.fz()||(this.XA=this.HN(!1),this.fO=!0),this.XA;try{return this.Jg?this.Jg.buffered:this.Uq?this.Uq.webkitSourceBuffered(this.id):Z9([0],[Infinity])}catch(e){return Z9([],[])}}; g.z.fz=function(){var E;return((E=this.Jg)==null?void 0:E.updating)||!1}; g.z.ij=function(){return this.wu}; g.z.K1=function(){return!this.wu&&this.fz()}; g.z.HY=function(){this.wu=!1}; g.z.CX=function(E){var e=E==null?void 0:E.DM;E=E==null?void 0:E.containerType;return!e&&!E||e===this.DM&&E===this.containerType}; g.z.SB=function(){return this.kF}; g.z.D6=function(){return this.QV}; g.z.B8=function(E,e){return this.containerType!==E||this.DM!==e}; g.z.O6=function(E,e,l){if(this.containerType!==E||l&&this.B8(E,l))this.supports(4),l3()&&this.Jg.changeType(e),l&&(this.DM=l);this.containerType=E}; g.z.aY=function(E,e,l){this.containerType&&this.B8(E,e)&&l3()&&this.Jg.changeType(l);this.containerType=E;this.DM=e}; g.z.Kk=function(){return this.MK}; g.z.isView=function(){return!1}; g.z.supports=function(E){switch(E){case 1:var e;return((e=this.Jg)==null?void 0:e.timestampOffset)!==void 0;case 0:var l;return!((l=this.Jg)==null||!l.appendBuffer);case 2:var k;return!((k=this.Jg)==null||!k.remove);case 3:var H,O;return!!(((H=this.Jg)==null?0:H.addEventListener)&&((O=this.Jg)==null?0:O.removeEventListener));case 4:return!(!this.Jg||!this.Jg.changeType);default:return!1}}; g.z.du=function(){return!this.fz()}; g.z.isLocked=function(){return!1}; g.z.zX=function(E){E.to=this.eE();E.up=this.fz();var e,l=((e=this.Jg)==null?void 0:e.appendWindowStart)||0,k;e=((k=this.Jg)==null?void 0:k.appendWindowEnd)||Infinity;E.aw=l.toFixed(3)+"-"+e.toFixed(3);return E}; g.z.xP=function(){var E;return((E=this.Jg)==null?void 0:E.writeHead)||0}; g.z.YH=function(){for(var E={},e=0;e=7&&(!e||((k=this.I4)==null?0:k.L("mweb_ios_allow_playback_workaround_when_ready")))&&fb9(this,function(){g.uM(function(){KOe(E,E.getCurrentTime(),0)},500)})}return e}; g.z.seekTo=function(E){this.I9()>0&&(YL&&Hv<4&&(E=Math.max(.1,E)),this.setCurrentTime(E))}; g.z.aF=function(){if(!this.G&&this.B5)if(this.B5.W)try{var E;u3(this,{l:"mer",sr:(E=this.I4)==null?void 0:E.p_(),rs:CX(this.B5)});this.B5.clear();this.G=this.B5;this.B5=void 0}catch(e){E=new g.PK("Error while clearing Media Source in MediaElement: "+e.name+", "+e.message),g.$F(E),this.stopVideo()}else this.stopVideo()}; g.z.stopVideo=function(){var E=this;if(!this.G){var e;(e=this.B5)==null||YwW(e);if(lr0){if(!this.Z){var l=new xZ;l.then(void 0,function(){}); this.Z=l;kl7&&this.pause();g.uM(function(){E.Z===l&&(o9(E),l.resolve())},200)}}else o9(this)}}; g.z.Zy=function(){var E=this.PG();return RW(E)&&this.getDuration()?KL(E,this.getCurrentTime()):0}; g.z.xV=function(){var E=this.getDuration();return E===Infinity?1:E?this.Zy()/E:0}; g.z.zX=function(){try{var E=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Yf(this.u2(),",",3),vbu:Yf(this.PG()),vbs:Yf(this.q0()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.I9(),vns:""+this.IC(),vec:""+this.tB(),vemsg:this.K0(),vvol:""+this.getVolume(),vdom:""+ +this.vc(),vsrc:""+ +!!this.Ir(),vw:""+E.width,vh:""+E.height}}catch(e){return{}}}; g.z.hasError=function(){return this.tB()>0}; g.z.addEventListener=function(E,e){this.S.listen(E,e,!1,this);this.Z4(E)}; g.z.removeEventListener=function(E,e){this.S.xN(E,e,!1,this)}; g.z.dispatchEvent=function(E){if(this.Z&&E.type==="pause")return!1;if(Hml){var e,l=((e=E.T)==null?void 0:e.timeStamp)||Infinity;e=l>performance.now()?l-Date.now()+performance.now():l;l=this.G||this.B5;if((l==null?0:l.ij())||e<=((l==null?void 0:l.J)||0)){var k;u3(this,{l:"mede",sr:(k=this.I4)==null?void 0:k.p_(),et:E.type});return!1}if(this.JI)return u3(this,{l:"medes",et:E.type}),l&&E.type==="seeking"&&(l.J=performance.now(),this.JI=!1),!1}return this.S.dispatchEvent(E)}; g.z.pA=function(){this.J=!1}; g.z.rz=function(){this.J=!0;this.Ay(!0)}; g.z.F0=function(){this.J&&!this.Ed()&&this.Ay(!0)}; g.z.equals=function(E){return!!E&&E.Zb()===this.Zb()}; g.z.Gz=function(){this.j&&this.removeEventListener("volumechange",this.F0);lr0&&o9(this);g.a.prototype.Gz.call(this)}; var lr0=!1,kl7=!1,Hml=!1,sYp=!1;g.z=g.zU.prototype;g.z.isPaused=function(){return g.m(this,4)}; g.z.isPlaying=function(){return g.m(this,8)&&!g.m(this,512)&&!g.m(this,64)&&!g.m(this,2)}; g.z.isOrWillBePlaying=function(){return g.m(this,8)&&!g.m(this,2)&&!g.m(this,1024)}; g.z.isCued=function(){return g.m(this,64)&&!g.m(this,8)&&!g.m(this,4)}; g.z.isBuffering=function(){return g.m(this,1)&&!g.m(this,2)}; g.z.isError=function(){return g.m(this,128)}; g.z.isSuspended=function(){return g.m(this,512)}; g.z.eZ=function(){return g.m(this,64)&&g.m(this,4)}; g.z.toString=function(){return"PSt."+this.state.toString(16)}; var sy={},tX=(sy.BUFFERING="buffering-mode",sy.CUED="cued-mode",sy.ENDED="ended-mode",sy.PAUSED="paused-mode",sy.PLAYING="playing-mode",sy.SEEKING="seeking-mode",sy.UNSTARTED="unstarted-mode",sy);g.d(jK,g.a);g.z=jK.prototype;g.z.ir=function(){return this.Z}; g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){var E=Yi(this.layout.clientMetadata,"metadata_type_video_length_seconds"),e=Yi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Aj(this.layout.E7)&&uR(this.n7.get(),this.layout.layoutId,{qy:e,CZ:E,listener:this,BV:this.Xr()});f6W(this.l3.get(),this);E=this.bO;e=this.layout.layoutId;var l={BV:this.Xr()};E.T.set(e,l);this.WX()}; g.z.wp=function(){}; g.z.release=function(){Aj(this.layout.E7)&&AN(this.n7.get(),this.layout.layoutId);Ve9(this.l3.get(),this);this.bO.T.delete(this.layout.layoutId);this.CR()}; g.z.N7=function(){}; g.z.Et=function(){}; g.z.startRendering=function(E){Xx(I9(this));if(FS(this,E)){var e=this.T;up(e.params.Nw.ZM.get(),!0)&&IbS(e,"p_sr",{});fX(this);this.Eo(E);this.Xr()||this.Np(!1)}}; g.z.Ph=function(E,e){if(e.layoutId===this.layout.layoutId){this.Hh="rendering";this.G=this.o4.get().isMuted()||this.o4.get().getVolume()===0;this.Bh("impression");this.Bh("start");if(this.o4.get().isMuted()){vf(this,"mute");var l;E=((l=ye(this))==null?void 0:l.muteCommands)||[];FM(this.QB.get(),E,this.layout.layoutId)}if(this.o4.get().isFullscreen()){this.gB("fullscreen");var k;l=((k=ye(this))==null?void 0:k.fullscreenCommands)||[];FM(this.QB.get(),l,this.layout.layoutId)}this.Xr()||(k=this.SJ.get(), k.Z&&!k.G&&(k.W=!1,k.G=!0,k.actionType!=="ad_to_video"&&(I6("pbs",void 0,k.actionType),g.QT("finalize_all_timelines")&&Axp(k.actionType))));this.WJ(1);this.X4(e);var H;e=((H=ye(this))==null?void 0:H.impressionCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.Lt=function(E,e,l){this.j={Yn:3,aZ:E==="load_timeout"?402:400,errorMessage:e.message};this.Bh("error");var k;E=((k=ye(this))==null?void 0:k.errorCommands)||[];FM(this.QB.get(),E,this.layout.layoutId);this.Xr()||this.Vt.NK(this.slot,this.layout,e,l)}; g.z.qr=function(){if(this.Hh==="rendering"){vf(this,"pause");var E,e=((E=ye(this))==null?void 0:E.pauseCommands)||[];FM(this.QB.get(),e,this.layout.layoutId);this.WJ(2)}}; g.z.BP=function(){if(this.Hh==="rendering"){vf(this,"resume");var E,e=((E=ye(this))==null?void 0:E.resumeCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.w1=function(E,e){e=e===void 0?!1:e;if(this.Hh==="rendering"){var l={currentTimeSec:E,flush:e};A4(this.T,"p_ip",l);w0(this.Cg,E*1E3,e);this.G||w0(this.Cg,E*1E3,e===void 0?!1:e);var k=this.W0();if(k){k/=1E3;if(E>=k*.25||e)this.Bh("first_quartile"),A4(this.T,"p_fq",l);if(E>=k*.5||e)this.Bh("midpoint"),A4(this.T,"p_sq",l);if(E>=k*.75||e)this.Bh("third_quartile"),A4(this.T,"p_tq",l);this.ZM.get().U.Y().experiments.P5("enable_progress_command_flush_on_kabuki")?c_(this.S,E*1E3,e):c_(this.S,E*1E3,kjy(this)? e:!1)}}}; g.z.x4=function(){var E;return((E=Ve(this.Lg.get(),1))==null?void 0:E.clientPlaybackNonce)||""}; g.z.Sf=function(E,e){E.layoutId!==this.layout.layoutId?this.Vt.NK(this.slot,E,new Nk("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"):e()}; g.z.G_=function(E,e,l){if(e.layoutId===this.layout.layoutId)switch(this.Hh="not_rendering",this.layoutExitReason=void 0,this.Xr()||(E=l!=="normal"||this.position+1===this.J)&&this.Np(E),this.ej(l),this.WJ(0),l){case "abandoned":if(zY(this.Cg,"impression")){var k,H=((k=ye(this))==null?void 0:k.abandonCommands)||[];FM(this.QB.get(),H,this.layout.layoutId)}break;case "normal":k=((H=ye(this))==null?void 0:H.completeCommands)||[];FM(this.QB.get(),k,this.layout.layoutId);break;case "skipped":var O;k=((O= ye(this))==null?void 0:O.skipCommands)||[];FM(this.QB.get(),k,this.layout.layoutId)}}; g.z.L3=function(){return this.layout.layoutId}; g.z.jn=function(){return this.j}; g.z.iE=function(){if(this.Hh==="rendering"){this.Cg.Bh("active_view_measurable");var E,e=((E=ye(this))==null?void 0:E.activeViewMeasurableCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.hT=function(){if(this.Hh==="rendering"){this.Cg.Bh("active_view_fully_viewable_audible_half_duration");var E,e=((E=ye(this))==null?void 0:E.activeViewFullyViewableAudibleHalfDurationCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.Qq=function(){if(this.Hh==="rendering"){this.Cg.Bh("active_view_viewable");var E,e=((E=ye(this))==null?void 0:E.activeViewViewableCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.F1=function(){if(this.Hh==="rendering"){this.Cg.Bh("audio_audible");var E,e=((E=ye(this))==null?void 0:E.activeViewAudioAudibleCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.xI=function(){if(this.Hh==="rendering"){this.Cg.Bh("audio_measurable");var E,e=((E=ye(this))==null?void 0:E.activeViewAudioMeasurableCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}}; g.z.Np=function(E){this.SJ.get().Np(Yi(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,E,this.position,this.J,!1)}; g.z.onFullscreenToggled=function(E){if(this.Hh==="rendering")if(E){this.gB("fullscreen");var e,l=((e=ye(this))==null?void 0:e.fullscreenCommands)||[];FM(this.QB.get(),l,this.layout.layoutId)}else this.gB("end_fullscreen"),e=((l=ye(this))==null?void 0:l.endFullscreenCommands)||[],FM(this.QB.get(),e,this.layout.layoutId)}; g.z.onVolumeChange=function(){if(this.Hh==="rendering")if(this.o4.get().isMuted()){vf(this,"mute");var E,e=((E=ye(this))==null?void 0:E.muteCommands)||[];FM(this.QB.get(),e,this.layout.layoutId)}else vf(this,"unmute"),E=((e=ye(this))==null?void 0:e.unmuteCommands)||[],FM(this.QB.get(),E,this.layout.layoutId)}; g.z.uO=function(){}; g.z.e1=function(){}; g.z.KI=function(){}; g.z.L_=function(){}; g.z.Bn=function(){}; g.z.gB=function(E){this.Cg.gB(E,!this.G)}; g.z.Bh=function(E){this.Cg.Bh(E,!this.G)}; g.z.Xr=function(){var E=Yi(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return E===void 0?(kd("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.ZM.get().Xr(E)};g.d(MP,jK);g.z=MP.prototype;g.z.WX=function(){}; g.z.CR=function(){var E=this.l3.get();E.uw===this&&(E.uw=null);this.timer.stop()}; g.z.N7=function(){this.timer.stop();jK.prototype.qr.call(this)}; g.z.Et=function(){ZU(this);jK.prototype.BP.call(this)}; g.z.W0=function(){return Yi(this.t0().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.z.Dx=function(E,e){var l=this;this.Sf(E,function(){l.Hh!=="rendering_stop_requested"&&(l.Hh="rendering_stop_requested",l.layoutExitReason=e,SK(l,e),l.timer.stop())})}; g.z.oz=function(){var E=Date.now(),e=E-this.A8;this.A8=E;this.wM+=e;this.wM>=this.W0()?this.P4():(this.w1(this.wM/1E3),NP(this,this.wM))}; g.z.ej=function(){}; g.z.eY=function(){}; g.d(YZ,MP);g.z=YZ.prototype;g.z.LD=function(E){if(this.Hh!=="not_rendering"){E=ri(this,E);var e=this.o4.get().getPresentingPlayerType()===2;this.Hh==="rendering_start_requested"?e&&Rv(E)&&this.Z6():e?g.Xh(E,2)?kd("Receive player ended event during MediaBreak",this.qN(),this.t0()):DU(this,E):this.C3()}}; g.z.Eo=function(){e77(this);h_X(this.o4.get());this.l3.get().uw=this;cz("pbp")||cz("pbs")||I6("pbp");cz("pbp","watch")||cz("pbs","watch")||I6("pbp",void 0,"watch");this.Z6()}; g.z.X4=function(E){this.SJ.get();var e=Yi(E.clientMetadata,"metadata_type_ad_placement_config").kind,l=this.position===0;E=Yi(E.clientMetadata,"metadata_type_linked_in_player_layout_type");E={adBreakType:b3(e),adType:BHW(E)};var k=void 0;l?e!=="AD_PLACEMENT_KIND_START"&&(k="video_to_ad"):k="ad_to_ad";$Q("ad_mbs",void 0,k);g.UX(E,k);ZU(this)}; g.z.C3=function(){this.qE()}; g.z.P4=function(){OBy(this);this.qE()}; g.d(m9,MP);g.z=m9.prototype;g.z.LD=function(E){this.Hh!=="not_rendering"&&(E=ri(this,E),DU(this,E))}; g.z.Eo=function(){kd("Not used in SSAP")}; g.z.X4=function(){ZU(this)}; g.z.C3=function(){kd("Not used in SSAP")}; g.z.P4=function(){OBy(this);this.Vt.GK(this.qN(),this.t0(),"normal")}; g.d(gi,m9);gi.prototype.Dx=function(E,e){var l=this;this.Sf(E,function(){eO(l.Z,e)&&(l.Hh="rendering_stop_requested",l.layoutExitReason=e,SK(l,e),l.timer.stop())})}; gi.prototype.startRendering=function(E){Xx(I9(this));FS(this,E)&&(fX(this),this.l3.get().uw=this)};g.d(R9,jK);g.z=R9.prototype;g.z.C3=function(){this.qE()}; g.z.LD=function(E){if(this.Hh!=="not_rendering"){E=ri(this,E);var e=this.o4.get().getPresentingPlayerType()===2;this.Hh==="rendering_start_requested"?e&&Rv(E)&&this.Z6():!e||g.Xh(E,2)?this.qE():DU(this,E)}}; g.z.WX=function(){Yi(this.t0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Yi(this.t0().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.z.CR=function(){Yi(this.t0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.kz){var E=this.context.Nw,e=this.kz,l=this.t0().layoutId;if(up(E.ZM.get(),!0)){var k={};E.p7("mccru",(k.cid=e,k.p_ac=l,k))}this.n5.get().removeCueRange(this.kz)}this.kz=void 0;var H;(H=this.Tw)==null||H.dispose();this.Bl&&this.Bl.dispose()}; g.z.Eo=function(E){var e=KX(this.ZM.get()),l=nX(this.ZM.get());if(e&&l&&!this.Xr()){l=Yi(E.clientMetadata,"metadata_type_preload_player_vars");var k=this.ZM.get();k=g.tJ(k.U.Y().experiments,"html5_preload_wait_time_secs");l&&this.Bl&&this.Bl.start(k*1E3)}A_8(this,E);e77(this);e?(l=this.kN.get(),E=Yi(E.clientMetadata,"metadata_type_player_vars"),l.U.loadVideoByPlayerVars(E,!1,2)):l6Z(this.kN.get(),Yi(E.clientMetadata,"metadata_type_player_vars"));var H;(H=this.Tw)==null||H.start();e||this.kN.get().U.playVideo(2)}; g.z.X4=function(){var E;(E=this.Tw)==null||E.stop();this.fG();(this.adCpn=Ed7(this))||kd("Media layout confirmed started, but ad CPN not set.");this.C5.get().iz("onAdStart",this.adCpn);this.ey=Date.now()}; g.z.W0=function(){var E;return(E=Ve(this.Lg.get(),2))==null?void 0:E.t6}; g.z.PW=function(){this.Cg.gB("clickthrough")}; g.z.Dx=function(E,e){var l=this;this.Sf(E,function(){if(l.Hh!=="rendering_stop_requested"){l.Hh="rendering_stop_requested";l.layoutExitReason=e;SK(l,e);var k;(k=l.Tw)==null||k.stop();l.Bl&&l.Bl.stop();Cu9(l)}})}; g.z.onCueRangeEnter=function(E){if(E!==this.kz)kd("Received CueRangeEnter signal for unknown layout.",this.qN(),this.t0(),{cueRangeId:E});else{var e=this.context.Nw,l=this.t0().layoutId;if(up(e.ZM.get(),!0)){var k={};e.p7("mccre",(k.cid=E,k.p_ac=l,k))}this.n5.get().removeCueRange(this.kz);this.kz=void 0;rY(this.context.ZM.get(),"html5_ssap_flush_at_stop_rendering")&&this.Xr()||(E=Yi(this.t0().clientMetadata,"metadata_type_video_length_seconds"),this.w1(E,!0),this.Bh("complete"))}}; g.z.ej=function(E){E!=="abandoned"&&this.C5.get().iz("onAdComplete");this.C5.get().iz("onAdEnd",this.adCpn)}; g.z.fG=function(){this.kz="adcompletioncuerange:"+this.t0().layoutId;this.n5.get().addCueRange(this.kz,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var E=this.context.Nw,e=this.kz,l=this.t0().layoutId;if(up(E.ZM.get(),!0)){var k={};E.p7("mccr",(k.cid=e,k.p_ac=l,k))}}; g.z.onCueRangeExit=function(){}; g.z.eY=function(E){this.Hh==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&E>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.o4.get().oU(!0),this.w1(E))}; g.z.w1=function(E,e){jK.prototype.w1.call(this,E,e===void 0?!1:e);e=Date.now()-this.ey;var l=E*1E3,k={contentCpn:this.x4(),adCpn:Ed7(this)};if(E-this.aK>=5){var H=e=2||(this.bN.Dx(this.layout,e),E=rY(this.params.context.ZM.get(),"html5_ssap_pass_transition_reason")&&e==="abandoned",this.qm()&&!E&&(rY(this.params.context.ZM.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(e)||kd("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:e})),this.m6.get().finishSegmentByCpn(this.layout.layoutId, Ve(this.Lg.get(),1).clientPlaybackNonce,a9(e,this.params.context.ZM))),this.o4.get().removeListener(this),this.eF()&&lp(this.bN.ir())&&this.QM.G_(this.slot,this.layout,this.bN.ir().T))}; g.z.yZ=function(E,e,l){yqv({cpn:E,H7:this.Lg.get(),Ut:!0});this.t0().layoutId!==E||rY(this.params.context.ZM.get(),"html5_ssap_pass_transition_reason")&&l===5||(this.bN.ir().currentState<2&&(E=LX(l,this.params.context.ZM),E==="error"?this.QM.NK(this.slot,this.layout,new Nk("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:l},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Xf(this.Gg, this.layout,E)),rY(this.params.context.ZM.get(),"html5_ssap_exit_without_waiting_for_transition")||this.QM.G_(this.slot,this.layout,this.bN.ir().T))};g.d(eB,g.a);g.z=eB.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.zw=function(){}; g.z.R7=function(){return this.RV[this.x5]}; g.z.GT=function(){return this.x5}; g.z.N7=function(E,e){var l=this.R7();e.layoutId!==kR(l,E,e)?kd("pauseLayout for a PlayerBytes layout that is not currently active",E,e):l.N7()}; g.z.Et=function(E,e){var l=this.R7();e.layoutId!==kR(l,E,e)?kd("resumeLayout for a PlayerBytes layout that is not currently active",E,e):l.Et()}; g.z.fR=function(E,e){var l=this.R7();Gjv(this,E,e);THv(l,E,e)&&this.Be(l.qN(),l.t0(),"skipped")}; g.z.Kf=function(E,e){var l=this.R7();iBl(this);$9X(l,E,e)&&(E=U9l(this,l,E,e),E!==void 0&&(this.Xr()?kd("Should not happen. Should delete"):c_e(this,l.qN(),l.t0(),E)))}; g.z.oH=function(E,e){var l=Object.assign({},lt(this),{layoutId:e.layoutId}),k=l.layoutId,H=l.Ut;if(l.BV){var O={};OO(l.H7,"wrse",(O.ec=k,O.is=H,O.ctp=HR(k),O))}Wu(this.r_,E,e)}; g.z.Ph=function(E,e){var l;(l=this.R7())==null||l.Ph(E,e)}; g.z.G_=function(E,e,l){e.layoutId===this.t0().layoutId&&(this.LX=!1,lx(this.K7(),this));var k;(k=this.R7())==null||k.G_(E,e,l)}; g.z.eY=function(E){var e;(e=this.R7())==null||e.eY(E)}; g.z.uW=function(E,e,l){this.GT()===-1&&(this.callback.Ph(this.slot,this.layout),this.x5++);var k=this.R7();k?(k.Lt(E,e,l),this.Xr()&&this.callback.NK(this.slot,this.layout,e,l)):kd("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.GT()),layoutId:this.t0().layoutId})}; g.z.onFullscreenToggled=function(E){var e;(e=this.R7())==null||e.onFullscreenToggled(E)}; g.z.uO=function(E){var e;(e=this.R7())==null||e.uO(E)}; g.z.KI=function(E){var e;(e=this.R7())==null||e.KI(E)}; g.z.onVolumeChange=function(){var E;(E=this.R7())==null||E.onVolumeChange()}; g.z.tv=function(E,e,l){Bu(this.r_,E,e,l)}; g.z.Xc=function(E){E.startRendering(E.t0())}; g.z.init=function(){var E=Yi(this.t0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");E&&(E.current=this);if(this.RV.length<1)throw new n("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.RV.length)});if(E=Yi(this.t0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))E.current=this;E=g.T(this.RV);for(var e=E.next();!e.done;e=E.next())e=e.value,e.init(),gTZ(this.r_,this.slot,e.t0()),KM9(this.r_,this.slot,e.t0()); if(this.Xr())for(this.Lg.get().addListener(this),Tl7(d9S(this),this.Lg.get()),E=d9S(this),E=g.T(E),e=E.next();!e.done;e=E.next())this.Kj(e.value)}; g.z.Kj=function(E){var e=Yi(E.clientMetadata,"metadata_type_player_vars");e?(E.layoutType!=="LAYOUT_TYPE_MEDIA"&&kd("Non-video ad contains playerVars",this.slot,E),this.kN.get().addPlayerResponseForAssociation({playerVars:e})):(E=ode(E),this.kN.get().addPlayerResponseForAssociation({BC:E}))}; g.z.release=function(){var E=Yi(this.t0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");E&&(E.current=null);if(E=Yi(this.t0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))E.current=null;E=g.T(this.RV);for(var e=E.next();!e.done;e=E.next())e=e.value,nT9(this.r_,this.slot,e.t0()),e.release();this.Xr()&&(this.Lg.get().removeListener(this),iNX())}; g.z.Sf=function(E){return E.layoutId!==this.t0().layoutId?(this.callback.NK(this.qN(),E,new Nk("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.t0().layoutId+("and LayoutType: "+this.t0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.z.O0=function(){this.o4.get().addListener(this);e7(this.K7(),this)}; g.z.LD=function(E){if(E.state.isError()){var e,l;this.uW((e=E.state.Bf)==null?void 0:e.errorCode,new Nk("There was a player error during this media layout.",{playerErrorCode:(l=E.state.Bf)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(e=this.R7())&&e.LD(E)}; g.z.Xr=function(){var E=Yi(this.qN().clientMetadata,"metadata_type_eligible_for_ssap");return E===void 0?(kd("Expected SSAP eligibility in PlayerBytes slots",this.qN(),this.t0()),!1):this.ZM.get().Xr(E)}; g.z.e1=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.L_=function(){}; g.z.Bn=function(){}; g.d(ut,eB);g.z=ut.prototype;g.z.cU=function(E,e,l){this.Be(E,e,l)}; g.z.sB=function(E,e){this.Be(E,e,"error")}; g.z.Be=function(E,e,l){var k=this;J_0(this,E,e,l,function(){HE(k,k.GT()+1)})}; g.z.startRendering=function(E){this.Sf(E)&&(this.O0(),q8Z(this.SJ.get()),X3l(this.ZM.get())||h_X(this.o4.get()),this.GT()===-1&&HE(this,this.GT()+1))}; g.z.Dx=function(E,e){var l=this;this.LX=!0;this.GT()===this.RV.length?this.callback.G_(this.slot,this.layout,e):(E=this.R7(),E.Dx(E.t0(),e),this.F3=function(){l.callback.G_(l.slot,l.layout,e)}); this.o4.get().U.fl();l6Z(this.kN.get(),{});E=XQ(this.o4.get(),1);E.isPaused()&&!g.m(E,2)&&this.o4.get().playVideo();this.o4.get().removeListener(this);this.LX&&y_8(this)}; g.z.yZ=function(){}; g.z.bM=function(){}; g.z.GK=function(){}; g.d(AC,eB);g.z=AC.prototype;g.z.cU=function(E,e,l){E=Object.assign({},lt(this),{layoutId:e.layoutId,layoutExitReason:l});e=E.layoutId;l=E.layoutExitReason;var k={};OO(E.H7,"prse",(k.xc=e,k.ler=l,k.ctp=HR(e),k))}; g.z.sB=function(){kd("onSubLayoutError in SSAP")}; g.z.Be=function(){kd("exitSubLayoutAndPlayNext in SSAP")}; g.z.R7=function(){return this.xv}; g.z.GT=function(){var E=this;return this.RV.findIndex(function(e){var l;return e.t0().layoutId===((l=E.xv)==null?void 0:l.t0().layoutId)})}; g.z.Xc=function(E){lu(this.xv===void 0,"replacing another adapter");this.xv=E;E.startRendering(E.t0())}; g.z.tv=function(E,e,l){Bu(this.r_,E,e,l);var k;lu(e.layoutId===((k=this.xv)==null?void 0:k.t0().layoutId),"currentAdapter does not match exiting layout",{slot:E?"slot: "+E.slotType:"",subLayout:eI(e)})&&(this.xv=void 0)}; g.z.release=function(){eB.prototype.release.call(this);lu(this.xv===void 0,"currentAdapter is still active during release");this.xv=void 0}; g.z.qm=function(){return this.o4.get().getPresentingPlayerType()===2}; g.z.Dx=function(E,e){function l(){Ch(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(e)||kd("Composite stopRendering: Unexpected layout exit reason",this.slot,E,{layoutExitReason:e}))} function k(){this.xv&&ph(this,this.xv,e);if(this.qm()&&(!Ch(this)||e!=="abandoned")){l.call(this);var O;var X=((O=this.Lg.get().U.getVideoData())==null?void 0:O.clientPlaybackNonce)||"";O=Ve(this.Lg.get(),1).clientPlaybackNonce;this.m6.get().finishSegmentByCpn(X,O,a9(e,this.ZM))}jkW(this,e)} function H(){if(this.xv){var O=this.xv;O.ir().currentState<2&&O.Dx(O.t0(),e);O=Ch(this)&&e==="abandoned";this.qm()&&!O&&(l.call(this),this.m6.get().finishSegmentByCpn(this.xv.t0().layoutId,Ve(this.Lg.get(),1).clientPlaybackNonce,a9(e,this.ZM)))}} lu(E.layoutId===this.t0().layoutId,"StopRendering for wrong layout")&&eO(this.PR.G,e)&&(this.eF()?k.call(this):H.call(this))}; g.z.G_=function(E,e,l){eB.prototype.G_.call(this,E,e,l);e.layoutId===this.t0().layoutId&&this.o4.get().removeListener(this)}; g.z.x4=function(){return Ve(this.Lg.get(),1).clientPlaybackNonce}; g.z.yZ=function(E,e,l){yqv(Object.assign({},lt(this),{cpn:E}));if(!Ch(this)||l!==5)if(this.eF()){if(this.xv&&this.xv.t0().layoutId!==e){var k=this.xv.t0().layoutId;k!==E&&kd("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:k,exitingCpn:E,enteringCpn:e});E=LX(l,this.ZM);ph(this,this.xv,E)}else this.xv&&kd("onClipExited: active layout is entering again");e===this.x4()&&FtW(this,l)}else{if(this.xv&&this.xv.t0().layoutId===E)IXv(this,this.xv,l);else{var H;kd("Exiting cpn does not match active cpn", this.slot,(k=this.xv)==null?void 0:k.t0(),{exitingCpn:E,transitionReason:l,activeCpn:(H=this.xv)==null?void 0:H.t0().layoutId})}e===this.x4()&&(this.xv!==void 0&&(kd("active adapter is not properly exited",this.slot,this.layout,{activeLayout:eI(this.xv.t0())}),IXv(this,this.xv,l)),FtW(this,l),jkW(this,this.PR.G.T))}}; g.z.eF=function(){return rY(this.ZM.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.z.startRendering=function(E){this.Sf(E)&&(E=this.PR,lu(E.T===1,"tickStartRendering: state is not initial"),E.T=2,this.O0())}; g.z.bM=function(E){cqX(Object.assign({},lt(this),{cpn:E}));var e=this.RV.find(function(l){return l.t0().layoutId===E}); e?(this.PR.T!==2&&(CLW(this.uq,this.slot.slotId),lu(this.PR.T===2,"Expect started"),this.callback.Ph(this.slot,this.layout)),this.Xc(e),Wu(this.r_,this.slot,e.t0())):fX0(this,E)}; g.z.fR=function(E,e){Gjv(this,E,e);var l=this.R7();l?THv(l,E,e)&&VIX(this,"skipped"):SuX(this,"onSkipRequested")}; g.z.Kf=function(E,e){var l;a:{if(l=this.R7()){if(iBl(this),$9X(l,E,e)&&(E=U9l(this,l,E,e),E!==void 0)){l={Cv:l,ogt:this.RV[E]};break a}}else SuX(this,"SkipWithAdPodSkip");l=void 0}if(E=l)l=E.Cv,e=E.ogt,E=l.t0().layoutId,this.eF()?ph(this,l,"skipped"):l.Dx(l.t0(),"skipped"),l=e.t0().layoutId,this.m6.get().finishSegmentByCpn(E,l,a9("skipped",this.ZM))}; g.z.oH=function(){kd("Not used in html5_ssap_fix_layout_exit")}; g.z.LD=function(E){var e;(e=this.R7())==null||e.LD(E)}; g.z.uW=function(){kd("Not used in html5_ssap_fix_layout_exit")}; g.z.GK=function(E,e,l){var k;if(((k=this.R7())==null?void 0:k.t0().layoutId)!==e.layoutId)return void kd("requestToExitSubLayout: wrong layout");VIX(this,l)};g.d(xR,g.a);g.z=xR.prototype;g.z.qN=function(){return this.bN.qN()}; g.z.t0=function(){return this.bN.t0()}; g.z.init=function(){var E=Yi(this.t0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");E&&(E.current=this);this.WX()}; g.z.WX=function(){this.bN.init()}; g.z.release=function(){var E=Yi(this.t0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");E&&(E.current=null);this.CR()}; g.z.CR=function(){this.bN.release()}; g.z.N7=function(){this.bN.N7()}; g.z.Et=function(){this.bN.Et()}; g.z.fR=function(E,e){kd("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.qN(),this.t0(),{requestingSlot:E,requestingLayout:e})}; g.z.startRendering=function(E){E.layoutId!==this.t0().layoutId?this.callback.NK(this.qN(),E,new Nk("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.t0().layoutId+("and LayoutType: "+this.t0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.o4.get().addListener(this),e7(this.K7(),this),q8Z(this.SJ.get()),X3l(this.ZM.get())||h_X(this.o4.get()),this.bN.startRendering(E))}; g.z.Dx=function(E,e){this.LX=!0;this.bN.Dx(E,e);this.o4.get().U.fl();l6Z(this.kN.get(),{});E=XQ(this.o4.get(),1);E.isPaused()&&!g.m(E,2)&&this.o4.get().playVideo();this.o4.get().removeListener(this);this.LX&&this.bN.C3()}; g.z.Ph=function(E,e){this.bN.Ph(E,e)}; g.z.G_=function(E,e,l){e.layoutId===this.t0().layoutId&&(this.LX=!1,lx(this.K7(),this));this.bN.G_(E,e,l);e.layoutId===this.t0().layoutId&&O2(this.SJ.get())}; g.z.eY=function(E){this.bN.eY(E)}; g.z.LD=function(E){if(E.state.isError()){var e,l;this.uW((e=E.state.Bf)==null?void 0:e.errorCode,new Nk("There was a player error during this media layout.",{playerErrorCode:(l=E.state.Bf)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.bN.LD(E)}; g.z.uW=function(E,e,l){this.bN.Lt(E,e,l)}; g.z.onFullscreenToggled=function(E){this.bN.onFullscreenToggled(E)}; g.z.uO=function(E){this.bN.uO(E)}; g.z.KI=function(E){this.bN.KI(E)}; g.z.onVolumeChange=function(){this.bN.onVolumeChange()}; g.z.e1=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.L_=function(){}; g.z.Bn=function(){};g.z=Qw.prototype;g.z.qN=function(){return this.slot}; g.z.t0=function(){return this.layout}; g.z.init=function(){this.BN.get().addListener(this);this.o4.get().addListener(this);var E=Yi(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var e=Yi(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.S){var l=this.BN.get().Pi.slice(-1)[0];l!==void 0&&(E=l.startSecs*1E3,e=(l.startSecs+l.s1)*1E3)}this.wp(E,e);var k;l=(k=this.Lg.get().mj)==null?void 0:k.clientPlaybackNonce;k=this.layout.lY.adClientDataEntry;WE(this.l3.get(),{daiStateTrigger:{filledAdsDurationMs:e-E,contentCpn:l, adClientData:k}});var H=this.BN.get();H=bBX(H.Z,E,e);H!==null&&(WE(this.l3.get(),{daiStateTrigger:{filledAdsDurationMs:H-E,contentCpn:l,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:k}}),this.m6.get().Nj(H,e))}; g.z.release=function(){this.CR();this.BN.get().removeListener(this);this.o4.get().removeListener(this)}; g.z.startRendering=function(){this.Eo();this.callback.Ph(this.slot,this.layout)}; g.z.Dx=function(E,e){this.pT(e);this.driftRecoveryMs!==null&&(BE(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(vd7(this)-Yi(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.o4.get().U.hO()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.G_(this.slot,this.layout,e)}; g.z.lc=function(){return!1}; g.z.Ee=function(E){var e=Yi(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),l=Yi(this.layout.clientMetadata,"metadata_type_layout_exit_ms");E*=1E3;if(e<=E&&E0&&ow(this.T(),e)}; g.z.lO=function(E){this.W.delete(E.slotId);for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next()){k=k.value;var H=k.trigger;H instanceof pG&&H.triggeringSlotId===E.slotId&&e.push(k)}e.length>0&&ow(this.T(),e)}; g.z.oV=function(E){for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next()){k=k.value;var H=k.trigger;H instanceof Ea&&H.slotType===E.slotType&&H.T!==E.slotId&&e.push(k)}e.length>0&&ow(this.T(),e)}; g.z.QQ=function(E){this.Z.add(E.slotId);for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next())k=k.value,k.trigger instanceof Oa&&E.slotId===k.trigger.triggeringSlotId&&e.push(k);e.length>0&&ow(this.T(),e)}; g.z.o7=function(E){this.Z.delete(E.slotId);this.S.add(E.slotId);for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next())if(k=k.value,k.trigger instanceof XC)E.slotId===k.trigger.triggeringSlotId&&e.push(k);else if(k.trigger instanceof N7){var H=k.trigger;E.slotId===H.slotId&&this.G.has(H.triggeringLayoutId)&&e.push(k)}e.length>0&&ow(this.T(),e)}; g.z.cf=function(E){for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next())k=k.value,k.trigger instanceof uv&&E.slotId===k.trigger.triggeringSlotId&&e.push(k);e.length>0&&ow(this.T(),e)}; g.z.AB=function(E){for(var e=[],l=g.T(this.iY.values()),k=l.next();!k.done;k=l.next())k=k.value,k.trigger instanceof AS&&E.slotId===k.trigger.triggeringSlotId&&e.push(k);e.length>0&&ow(this.T(),e)}; g.z.KD=function(E,e){this.J.add(e.layoutId)}; g.z.EJ=function(E,e){this.J.delete(e.layoutId)}; g.z.Ph=function(E,e){this.G.add(e.layoutId);for(var l=[],k=g.T(this.iY.values()),H=k.next();!H.done;H=k.next())if(H=H.value,H.trigger instanceof Zx)e.layoutId===H.trigger.triggeringLayoutId&&l.push(H);else if(H.trigger instanceof q7){var O=H.trigger;E.slotType===O.slotType&&e.layoutType===O.layoutType&&e.layoutId!==O.T&&l.push(H)}else H.trigger instanceof N7&&(O=H.trigger,e.layoutId===O.triggeringLayoutId&&this.S.has(O.slotId)&&l.push(H));l.length>0&&ow(this.T(),l)}; g.z.G_=function(E,e,l){this.G.delete(e.layoutId);E=[];for(var k=g.T(this.iY.values()),H=k.next();!H.done;H=k.next())if(H=H.value,H.trigger instanceof mZ&&e.layoutId===H.trigger.triggeringLayoutId&&E.push(H),H.trigger instanceof YR){var O=H.trigger;e.layoutId===O.triggeringLayoutId&&O.T.includes(l)&&E.push(H)}E.length>0&&ow(this.T(),E)}; g.z.WG=function(){}; g.z.j1=function(){this.S.clear()}; g.z.cJ=function(){};g.d(eb,g.a);eb.prototype.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof hC))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in CloseRequestedTriggerAdapter");this.iY.set(e.triggerId,new T$(E,e,l,k))}; eb.prototype.gy=function(E){this.iY.delete(E.triggerId)};g.d(k2,g.a);k2.prototype.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof Lh||e instanceof lv))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.iY.set(e.triggerId,new T$(E,e,l,k))}; k2.prototype.gy=function(E){this.iY.delete(E.triggerId)}; k2.prototype.j1=function(E){for(var e=[],l=e.push,k=l.apply,H=[],O=g.T(this.iY.values()),X=O.next();!X.done;X=O.next())X=X.value,X.trigger instanceof Lh&&X.trigger.Pz===E&&H.push(X);k.call(l,e,g.Be(H));l=e.push;k=l.apply;H=[];O=g.T(this.iY.values());for(X=O.next();!X.done;X=O.next())X=X.value,X.trigger instanceof lv&&X.trigger.T!==E&&H.push(X);k.call(l,e,g.Be(H));e.length&&ow(this.T(),e)}; k2.prototype.cJ=function(E){for(var e=[],l=e.push,k=l.apply,H=[],O=g.T(this.iY.values()),X=O.next();!X.done;X=O.next()){X=X.value;var A=X.trigger;A instanceof lv&&A.T===E&&H.push(X)}k.call(l,e,g.Be(H));e.length&&ow(this.T(),e)};g.d(HS,g.a);g.z=HS.prototype;g.z.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+e.triggerId;if(e instanceof s2)qWp(this,E,e,l,k,H,e.T.start,e.T.end,e.Pz,e.visible);else if(e instanceof M7)qWp(this,E,e,l,k,H,0x7ffffffffffff,0x8000000000000,e.Pz,e.visible);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in CueRangeTriggerAdapter");}; g.z.gy=function(E){var e=this.iY.get(E.triggerId);e&&this.n5.get().removeCueRange(e.cueRangeId);this.iY.delete(E.triggerId)}; g.z.onCueRangeEnter=function(E){var e=Eie(this,E);if(e&&(e=this.iY.get(e)))if(g.m(XQ(this.o4.get()),32))this.T.add(e.cueRangeId);else{var l=e==null?void 0:e.AD.trigger;if(l instanceof s2||l instanceof M7){if(up(this.context.ZM.get())){var k=e.AD.slot,H=e.AD.layout,O={};this.context.Nw.p7("cre",(O.ca=e.AD.category,O.tt=l.triggerType,O.st=k.slotType,O.lt=H==null?void 0:H.layoutType,O.cid=E,O))}ow(this.G(),[e.AD])}}}; g.z.onCueRangeExit=function(E){(E=Eie(this,E))&&(E=this.iY.get(E))&&this.T.delete(E.cueRangeId)}; g.z.LD=function(E){if(Ou(E,16)<0){E=g.T(this.T);for(var e=E.next();!e.done;e=E.next())this.onCueRangeEnter(e.value,!0);this.T.clear()}}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.Ph=function(){}; g.z.G_=function(){}; g.z.WG=function(){}; g.z.eY=function(){}; g.z.onFullscreenToggled=function(){}; g.z.uO=function(){}; g.z.e1=function(){}; g.z.KI=function(){}; g.z.onVolumeChange=function(){}; g.z.L_=function(){}; g.z.Bn=function(){};g.d(OD,g.a);g.z=OD.prototype; g.z.Op=function(E,e,l,k){if(this.G.has(e.triggerId)||this.Z.has(e.triggerId))throw new n("Tried to re-register the trigger.");E=new T$(E,e,l,k);if(E.trigger instanceof Ry)this.G.set(E.trigger.triggerId,E);else if(E.trigger instanceof gZ)this.Z.set(E.trigger.triggerId,E);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+E.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.G.has(E.trigger.triggerId)&&E.slot.slotId===this.T&&ow(this.S(),[E])}; g.z.gy=function(E){this.G.delete(E.triggerId);this.Z.delete(E.triggerId)}; g.z.zw=function(E){E=E.slotId;if(this.T!==E){var e=[];this.T!=null&&e.push.apply(e,g.Be(eov(this.Z,this.T)));E!=null&&e.push.apply(e,g.Be(eov(this.G,E)));this.T=E;e.length&&ow(this.S(),e)}}; g.z.yZ=function(){}; g.z.bM=function(){};g.d(X1,g.a);g.z=X1.prototype;g.z.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof er))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.iY.set(e.triggerId,new T$(E,e,l,k))}; g.z.gy=function(E){this.iY.delete(E.triggerId)}; g.z.Ph=function(){}; g.z.G_=function(){}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){};g.d(uA,g.a);g.z=uA.prototype;g.z.WG=function(E,e){for(var l=[],k=g.T(this.iY.values()),H=k.next();!H.done;H=k.next()){H=H.value;var O=H.trigger;O.opportunityType===E&&(O.associatedSlotId&&O.associatedSlotId!==e||l.push(H))}l.length&&ow(this.T(),l)}; g.z.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof xSp))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in OpportunityEventTriggerAdapter");this.iY.set(e.triggerId,new T$(E,e,l,k))}; g.z.gy=function(E){this.iY.delete(E.triggerId)}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.Ph=function(){}; g.z.G_=function(){};g.d(AR,g.a);g.z=AR.prototype;g.z.Op=function(E,e,l,k){E=new T$(E,e,l,k);if(e instanceof Kh||e instanceof tC||e instanceof nh||e instanceof kt||e instanceof xuW){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");this.iY.set(e.triggerId,E)}else throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in PrefetchTriggerAdapter");}; g.z.gy=function(E){this.iY.delete(E.triggerId)}; g.z.qV=function(E){var e=E.slotFulfillmentTriggers.find(function(l){return l instanceof Kh}); e&&(CR(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",e.breakDurationMs,new Set([E.slotId]),!0),wZ(this.l3.get(),"ads_css","sid."+E.slotId+";bd."+e.breakDurationMs))}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.Ph=function(){}; g.z.G_=function(){}; g.z.WG=function(){}; g.z.lc=function(E){var e=this;if(!this.T)return kd("Unexpected cue break before fetch instructions are available"),!1;this.G&&this.G.stop();this.W&&g.ZC(this.W);var l=Oj7(this,E);if(!l){var k=ka7(this),H=this.j!==void 0&&Date.now()<=this.j+1E4;wZ(this.l3.get(),"ads_ncfs","cid."+E.identifier+";cd."+E.s1.toFixed(3)+";ccs."+H+";cfa."+this.S+";bdc."+k.length+";"+k.slice(0,6).map(function(O){return";bd."+O}).join("")); return H?(L4(this.er,this.T,E),!0):!1}(k=Yi(l.slot.clientMetadata,"metadata_type_triggering_cue_point"))?k.current=E:kd("Expected triggering cue point ref to be available",l.slot);(new g.Nx(function(){var O=l.trigger,X=l.slot;CR(e,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",O.breakDurationMs,new Set,!0);CR(e,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",O.breakDurationMs,new Set,!1);for(var A=0,C=g.T(e.iY.values()),p=C.next();!p.done;p=C.next()){p=p.value;var x=p.trigger; p.slot.slotId===X.slotId&&(e.iY.delete(x.triggerId),A++)}wZ(e.l3.get(),"ads_csf","sid."+X.slotId+";bd."+O.breakDurationMs+";dt."+A)},10)).start(); return!0}; g.z.Ee=function(){}; g.z.j1=function(E){var e=this;this.S=!1;this.j=Date.now();if(this.T&&this.T.contentCpn!==E)kd("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:E,fetchInstructionsCpn:this.T.contentCpn}),pR(this);else{this.Z=new g.Nx(function(){if(e.S)delete e.Z;else{var k=e.o4.get().getGetAdBreakContext(),H;if(Number(k==null?void 0:(H=k.livePlaybackPosition)==null?void 0:H.utcTimeMillis)>0)delete e.Z,Hj7(e);else{var O;(O=e.Z)==null||O.start()}}},200); var l;(l=this.Z)==null||l.start()}}; g.z.cJ=function(E){this.T&&this.T.contentCpn!==E&&kd("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:E,fetchInstructionsCpn:this.T.contentCpn},!0);pR(this)}; g.z.pQ=function(E){var e=this;if(this.T)kd("Unexpected multiple fetch instructions for the current content");else{this.T=E;E=uL0(E);this.G=new g.Nx(function(){Hj7(e)},E?E:6E5); this.G.start();this.W=new g.Nx(function(){e.T&&(e.G&&(e.G.stop(),e.G.start()),lqS(e,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},X9p(this.T)); E=this.o4.get().getCurrentTimeSec(1,!1);for(var l=g.T(this.BN.get().Pi),k=l.next();!k.done;k=l.next())k=k.value,wZ(this.l3.get(),"nocache","ct."+Date.now()+";cmt."+E+";d."+k.s1.toFixed(3)+";tw."+(k.startSecs-E)+";cid."+k.identifier+";")}}; g.z.Gz=function(){g.a.prototype.Gz.call(this);pR(this)};g.d(x2,g.a);g.z=x2.prototype;g.z.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof G$))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.iY.set(e.triggerId,new T$(E,e,l,k));E=this.T.has(e.triggeringLayoutId)?this.T.get(e.triggeringLayoutId):new Set;E.add(e);this.T.set(e.triggeringLayoutId,E)}; g.z.gy=function(E){this.iY.delete(E.triggerId);if(!(E instanceof G$))throw new n("Incorrect TriggerType: Tried to unregister trigger of type "+E.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var e=this.G.get(E.triggerId);e&&(e.dispose(),this.G.delete(E.triggerId));if(e=this.T.get(E.triggeringLayoutId))e.delete(E),e.size===0&&this.T.delete(E.triggeringLayoutId)}; g.z.qV=function(){}; g.z.lO=function(){}; g.z.oV=function(){}; g.z.QQ=function(){}; g.z.o7=function(){}; g.z.cf=function(){}; g.z.AB=function(){}; g.z.KD=function(){}; g.z.EJ=function(){}; g.z.WG=function(){}; g.z.Ph=function(E,e){var l=this;if(this.T.has(e.layoutId)){E=this.T.get(e.layoutId);E=g.T(E);var k=E.next();for(e={};!k.done;e={qS:void 0},k=E.next())e.qS=k.value,k=new g.Nx(function(H){return function(){var O=l.iY.get(H.qS.triggerId);ow(l.Z(),[O])}}(e),e.qS.durationMs),k.start(),this.G.set(e.qS.triggerId,k)}}; g.z.G_=function(){};g.d(QY,g.a);QY.prototype.Op=function(E,e,l,k){if(this.iY.has(e.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(e instanceof PE))throw new n("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in VideoTransitionTriggerAdapter.");this.iY.set(e.triggerId,new T$(E,e,l,k))}; QY.prototype.gy=function(E){this.iY.delete(E.triggerId)};wn.prototype.B3=function(E){return E.kind==="AD_PLACEMENT_KIND_START"};g.d(G4,g.a);g.z=G4.prototype;g.z.logEvent=function(E){this.Lh(E)}; g.z.YE=function(E,e,l){this.Lh(E,void 0,void 0,void 0,e,void 0,void 0,void 0,e.adSlotLoggingData,void 0,void 0,l)}; g.z.Hf=function(E,e,l,k){this.Lh(E,void 0,void 0,void 0,e,l?l:void 0,void 0,void 0,e.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,void 0,k)}; g.z.sf=function(E,e,l,k){rY(this.ZM.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"trigger:",l,"slot:",e,"layout:",k);R2(this.T.get())&&this.Lh(E,void 0,void 0,void 0,e,k?k:void 0,void 0,l,e.adSlotLoggingData,k?k.adLayoutLoggingData:void 0)}; g.z.Tv=function(E,e,l,k,H){this.Lh(E,e,l,k,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.z.Y4=function(E,e,l,k){this.Lh("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,k,void 0,void 0,l.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,{errorType:E,errorMessage:e})}; g.z.Lh=function(E,e,l,k,H,O,X,A,C,p,x,Q){var W=this;Q=Q===void 0?0:Q;rY(this.ZM.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"slot:",H,"layout:",O,"ping:",X,"Opportunity:",{opportunityType:e,associatedSlotId:l,SS6:k,xJz:A,adSlotLoggingData:C,adLayoutLoggingData:p});try{var B=function(){if(!W.ZM.get().U.Y().L("html5_disable_client_tmp_logs")&&E!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){E||kd("Empty PACF event type",H,O);var w=R2(W.T.get()),U={eventType:E,eventOrder:++W.eventCount},c={}; H&&(c.slotData=nj(w,H));O&&(c.layoutData=MNW(w,O));X&&(c.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:X.T.serializedAdPingMetadata,pingIndex:X.index});A&&(c.triggerData=Kj(A.trigger,A.category));e&&(c.opportunityData=Ng9(w,e,l,k));w={organicPlaybackContext:{contentCpn:Ve(W.Lg.get(),1).clientPlaybackNonce}};w.organicPlaybackContext.isLivePlayback=Ve(W.Lg.get(),1).sK;var V;w.organicPlaybackContext.isMdxPlayback=(V=Ve(W.Lg.get(),1))==null?void 0:V.isMdxPlayback; var F;if((F=Ve(W.Lg.get(),1))==null?0:F.daiEnabled)w.organicPlaybackContext.isDaiContent=!0;var r;if(V=(r=Ve(W.Lg.get(),2))==null?void 0:r.clientPlaybackNonce)w.adVideoPlaybackContext={adVideoCpn:V};w&&(c.externalContext=w);U.adClientData=c;C&&(U.serializedSlotAdServingData=C.serializedSlotAdServingDataEntry);p&&(U.serializedAdServingData=p.serializedAdServingDataEntry);x&&(U.errorInfo=x);g.E0("adsClientStateChange",{adsClientEvent:U})}}; Q&&Q>0?g.Nz(g.Yp(),function(){return B()},Q):B()}catch(w){rY(this.ZM.get(),"html5_log_pacf_logging_errors")&&g.Nz(g.Yp(),function(){kd(w instanceof Error?w:String(w),H,O,{pacf_message:"exception during pacf logging"})})}};var dRH=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.d(T4,G4);g.z=T4.prototype; g.z.YE=function(E,e,l){G4.prototype.YE.call(this,E,e,l);up(this.ZM.get())&&(l={},this.context.Nw.p7("pacf",(l.et=E,l.st=e.slotType,l.si=e.slotId,l)))}; g.z.Hf=function(E,e,l,k){var H=dRH.has(E);G4.prototype.Hf.call(this,E,e,l,k);up(this.ZM.get(),H)&&(k={},this.context.Nw.p7("pacf",(k.et=E,k.st=e.slotType,k.si=e.slotId,k.lt=l==null?void 0:l.layoutType,k.li=l==null?void 0:l.layoutId,k.p_ac=l==null?void 0:l.layoutId,k)))}; g.z.Tv=function(E,e,l,k,H){G4.prototype.Tv.call(this,E,e,l,k,H);up(this.ZM.get())&&(l={},this.context.Nw.p7("pacf",(l.et=E,l.ot=e,l.ss=k==null?void 0:k.length,l)))}; g.z.sf=function(E,e,l,k){G4.prototype.sf.call(this,E,e,l,k);if(up(this.ZM.get())){var H={};this.context.Nw.p7("pacf",(H.et=E,H.tt=l.trigger.triggerType,H.tc=l.category,H.st=e.slotType,H.si=e.slotId,H.lt=k==null?void 0:k.layoutType,H.li=k==null?void 0:k.layoutId,H.p_ac=k==null?void 0:k.layoutId,H))}}; g.z.Y4=function(E,e,l,k){G4.prototype.Y4.call(this,E,e,l,k);if(up(this.ZM.get(),!0)){var H={};this.context.Nw.p7("perror",(H.ert=E,H.erm=e,H.st=l.slotType,H.si=l.slotId,H.lt=k==null?void 0:k.layoutType,H.li=k==null?void 0:k.layoutId,H.p_ac=k==null?void 0:k.layoutId,H))}}; g.z.Lh=function(E,e,l,k,H,O,X,A,C,p,x){var Q=this.ZM.get();g.QS(Q.U.Y())?(Q=this.ZM.get(),Q=g.tJ(Q.U.Y().experiments,"H5_async_logging_delay_ms")):Q=void 0;G4.prototype.Lh.call(this,E,e,l,k,H,O,X,A,C,p,x,Q)};iA.prototype.clear=function(){this.T.clear()};$2.prototype.state=function(){return this.T==="fulfilled"?{state:"fulfilled",value:this.result}:this.T==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; $2.prototype.S=function(E){JR(E)||UD(E)?F1(cS(E),this.S.bind(this),this.reject.bind(this)):(this.T="fulfilled",this.result=E,Ii(this))}; $2.prototype.reject=function(E){this.T="rejected";this.error=E;Ii(this)}; var UD=H1(function(E){return fk6(E)?E instanceof $2:!1});Object.freeze({A9n:function(E){var e=bA(E);return F1(D0(e,function(l){return e[l].T==="rejected"}),function(l){return Number.isNaN(l)?e.map(function(k){return k.state().value}):e[l]})}, lTd:function(E){var e=bA(E);return F1(D0(e),function(){return e.map(function(l){return l.state()})})}, fTg:function(E){var e=bA(E);return F1(D0(e,function(l){return e[l].T==="fulfilled"}),function(l){return Number.isNaN(l)?yY(new AggregateError(e.map(function(k){return k.state().reason}))):e[l].state().value})}, UJD:function(E){var e=bA(E);return F1(D0(e,function(){return!0}),function(l){return e[l]})}});var vS=window.Jl4||"pt-BR";hR.prototype.zy=function(E){this.client=E}; hR.prototype.T=function(){this.clear();this.csn=g.BQ()}; hR.prototype.clear=function(){this.Z.clear();this.G.clear();this.S.clear();this.csn=null};N0.prototype.zy=function(E){g.ZP(M0().zy).bind(M0())(E)}; N0.prototype.clear=function(){g.ZP(M0().clear).bind(M0())()};g.z=Z0.prototype;g.z.zy=function(E){this.client=E}; g.z.qa=function(E,e){var l=this;e=e===void 0?{}:e;g.ZP(function(){var k,H,O,X=((k=g.M(E==null?void 0:E.commandMetadata,g.jT))==null?void 0:k.rootVe)||((H=g.M(E==null?void 0:E.commandMetadata,vXH))==null?void 0:(O=H.screenVisualElement)==null?void 0:O.uiType);if(X){k=g.M(E==null?void 0:E.commandMetadata,lG6);if(k==null?0:k.parentTrackingParams){var A=g.xF(k.parentTrackingParams);if(k.parentCsn)var C=k.parentCsn}else e.clickedVisualElement?A=e.clickedVisualElement:E.clickTrackingParams&&(A=g.xF(E.clickTrackingParams)); a:{k=g.M(E,g.i7);H=g.M(E,nX1);if(k){if(H=yJl(k,"VIDEO")){k={token:H,videoId:k.videoId};break a}}else if(H&&(k=yJl(H,"PLAYLIST"))){k={token:k,playlistId:H.playlistId};break a}k=void 0}e=Object.assign({},{cttAuthInfo:k,parentCsn:C},e);if(g.QT("expectation_logging")){var p;e.loggingExpectations=((p=g.M(E==null?void 0:E.commandMetadata,vXH))==null?void 0:p.loggingExpectations)||void 0}mg(l,X,A,e)}else g.UJ(new g.PK("Error: Trying to create a new screen without a rootVeType",E))})()}; g.z.clickCommand=function(E,e,l){E=E.clickTrackingParams;l=l===void 0?0:l;E?(l=g.BQ(l===void 0?0:l))?(h8(this.client,l,g.xF(E),e),e=!0):e=!1:e=!1;return e}; g.z.stateChanged=function(E,e,l){this.visualElementStateChanged(g.xF(E),e,l===void 0?0:l)}; g.z.visualElementStateChanged=function(E,e,l){l=l===void 0?0:l;l===0&&this.G.has(l)?this.N.push([E,e]):SCp(this,E,e,l)};Ri.prototype.fetch=function(E,e,l){var k=this,H=bj8(E,e,l);return new Promise(function(O,X){function A(){if(l==null?0:l.ph)try{var p=k.handleResponse(E,H.status,H.response,l);O(p)}catch(x){X(x)}else O(k.handleResponse(E,H.status,H.response,l))} H.onerror=A;H.onload=A;var C;H.send((C=e.body)!=null?C:null)})}; Ri.prototype.handleResponse=function(E,e,l,k){l=l.replace(")]}'","");try{var H=JSON.parse(l)}catch(O){g.UJ(new g.PK("JSON parsing failed after XHR fetch",E,e,l));if((k==null?0:k.ph)&&l)throw new g.Ld(1,"JSON parsing failed after XHR fetch");H={}}e!==200&&(g.UJ(new g.PK("XHR API fetch failed",E,e,l)),H=Object.assign({},H,{errorMetadata:{status:e}}));return H};sD.getInstance=function(){var E=g.eS("ytglobal.storage_");E||(E=new sD,g.qW("ytglobal.storage_",E));return E}; sD.prototype.estimate=function(){var E,e,l;return g.D(function(k){E=navigator;return((e=E.storage)==null?0:e.estimate)?k.return(E.storage.estimate()):((l=E.webkitTemporaryStorage)==null?0:l.queryUsageAndQuota)?k.return(vi8()):k.return()})}; g.qW("ytglobal.storageClass_",sD);tw.prototype.lV=function(E){this.handleError(E)}; tw.prototype.logEvent=function(E,e){switch(E){case "IDB_DATA_CORRUPTED":g.QT("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":g.QT("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":aq0(this,e);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.T("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":E= Object.assign({},e,{hasWindowUnloaded:this.G}),this.T("idbTransactionAborted",E)}};var ql={},ZGe=g.YI("yt-player-local-media",{tW:(ql.index={Ij:2},ql.media={Ij:2},ql.captions={Ij:5},ql),shared:!1,upgrade:function(E,e){e(2)&&(g.T0(E,"index"),g.T0(E,"media"));e(5)&&g.T0(E,"captions");e(6)&&(iE(E,"metadata"),iE(E,"playerdata"))}, version:5});var GsS={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},ES;a:{var eG=g.vj();eG=eG.toLowerCase();if(g.fe(eG,"android")){var TPS=eG.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(TPS){var if1=parseFloat(TPS[1]);if(if1<100){ES=if1;break a}}var $R0=eG.match("("+Object.keys(GsS).join("|")+")");ES=$R0?GsS[$R0[0]]:0}else ES=void 0}var k9=ES,lY=k9>=0;var n7l=window;var LqZ=Vz(function(){var E,e;return(e=(E=window).matchMedia)==null?void 0:e.call(E,"(prefers-reduced-motion: reduce)").matches});var q0;g.tR=new BL;q0=0;var z8=giS()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.aa?!0:!1;var lQ={Rx:function(E,e){var l=E[0];E[0]=E[e%E[u[10]]];E[e%E[u[10]]]=l}, A5:function(E,e){E[u[19]](0,e)}, P2:function(E){E[u[50]]()}};var axX={LTz:"adunit",pn3:"detailpage",Q6n:"editpage",oE0:"embedded",KSM:"leanback",n7n:"previewpage",wJ3:"profilepage",tK:"unplugged",Ip4:"playlistoverview",rYH:"sponsorshipsoffer",g73:"shortspage",EE5:"handlesclaiming",iM3:"immersivelivepage",E1d:"creatormusic",QF7:"immersivelivepreviewpage",ABz:"admintoolyurt",Rn0:"shortsaudiopivot",DwR:"consumption"};var MB9={Ff4:0,Sv5:1,Xqt:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var swW=2592E3;var lk,URt,Pd;lk={};g.Gu=(lk.STOP_EVENT_PROPAGATION="html5-stop-propagation",lk.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",lk.IV_DRAWER_OPEN="ytp-iv-drawer-open",lk.MAIN_VIDEO="html5-main-video",lk.VIDEO_CONTAINER="html5-video-container",lk.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",lk.HOUSE_BRAND="house-brand",lk);URt={};Pd=(URt.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",URt.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",URt);var ude={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var xge={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},Qv7={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"},XO7={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var CT9={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.$n.prototype.getLanguageInfo=function(){return this.gC}; g.$n.prototype.getXtags=function(){if(!this.xtags){var E=this.id.split(";");E.length>1&&(this.xtags=E[1])}return this.xtags}; g.$n.prototype.toString=function(){return this.gC.name}; g.$n.prototype.getLanguageInfo=g.$n.prototype.getLanguageInfo;U1.prototype.equals=function(E){return this.G===E.G&&this.T===E.T&&this.Z===E.Z&&this.reason===E.reason&&(!cm||this.Kg===E.Kg)}; U1.prototype.isLocked=function(){return this.Z&&!!this.G&&this.G===this.T}; U1.prototype.compose=function(E){if(E.Z&&yG(E))return B$;if(E.Z||yG(this))return E;if(this.Z||yG(E))return this;var e=this.G&&E.G?Math.max(this.G,E.G):this.G||E.G,l=this.T&&E.T?Math.min(this.T,E.T):this.T||E.T;e=Math.min(e,l);var k=0;cm&&(k=this.Kg!==0&&E.Kg!==0?Math.min(this.Kg,E.Kg):this.Kg===0?E.Kg:this.Kg);return cm&&e===this.G&&l===this.T&&k===this.Kg||!cm&&e===this.G&&l===this.T?this:cm?new U1(e,l,!1,l===this.T&&k===this.Kg?this.reason:E.reason,k):new U1(e,l,!1,l===this.T?this.reason:E.reason)}; U1.prototype.S=function(E){return!E.video||cm&&this.Kg!==0&&this.Kg=0}; g.z.wl=function(){var E=this.segments[this.segments.length-1];return E?E.endTime:NaN}; g.z.Hs=function(){return this.segments[0].startTime}; g.z.j6=function(){return this.segments.length}; g.z.Zp=function(){return 0}; g.z.GS=function(E){return(E=this.S6(E))?E.A0:-1}; g.z.wb=function(E){return(E=this.Xf(E))?E.sourceURL:""}; g.z.getStartTime=function(E){return(E=this.Xf(E))?E.startTime:0}; g.z.Pv=function(E){return this.getStartTime(E)+this.getDuration(E)}; g.z.ZL=E9(1);g.z.isLoaded=function(){return this.segments.length>0}; g.z.Xf=function(E){if(this.T&&this.T.A0===E)return this.T;E=g.M$(this.segments,new RJ(E,0,0,0,""),function(e,l){return e.A0-l.A0}); return this.T=E>=0?this.segments[E]:null}; g.z.S6=function(E){if(this.T&&this.T.startTime<=E&&E=0?this.segments[E]:this.segments[Math.max(0,-E-2)]}; g.z.append=function(E){if(E.length)if(E=g.fW(E),this.segments.length){var e=this.segments.length?g.wr(this.segments).endTime:0,l=E[0].A0-this.Oz();l>1&&UWW(this.segments);for(l=l>0?0:-l+1;lE.A0&&this.index.Qt()<=E.A0+1}; g.z.update=function(E,e,l){this.index.append(E);ME9(this.index,l);E=this.index;E.G=e;E.Z="update"}; g.z.Sv=function(){return this.i$()?!0:mX.prototype.Sv.call(this)}; g.z.jb=function(E,e){var l=this.index.wb(E),k=this.index.getStartTime(E),H=this.index.getDuration(E),O;e?H=O=0:O=this.info.Kg>0?this.info.Kg*H:1E3;return new OZ([new tr(3,this,void 0,"liveCreateRequestInfoForSegment",E,k,H,0,O,!e)],l)}; g.z.vv=function(){return this.i$()?0:this.initRange.length}; g.z.Ht=function(){return!1};Qu.prototype.update=function(E){var e=void 0;this.G&&(e=this.G);var l=new Qu,k=Array.from(E.getElementsByTagName("S"));if(k.length){var H=+px(E,"timescale")||1,O=(+k[0].getAttribute("t")||0)/H,X=+px(E,"startNumber")||0;l.S=O;var A=e?e.startSecs+e.s1:0,C=Date.parse(bLl(px(E,"yt:segmentIngestTime")))/1E3;l.W=E.parentElement.tagName==="SegmentTemplate";l.W&&(l.j=px(E,"media"));E=e?X-e.A0:1;l.J=E>0?0:-E+1;E=g.T(k);for(k=E.next();!k.done;k=E.next()){k=k.value;for(var p=+k.getAttribute("d")/H,x=(+k.getAttribute("yt:sid")|| 0)/H,Q=+k.getAttribute("r")||0,W=0;W<=Q;W++)if(e&&X<=e.A0)X++;else{var B=new r40(X,A,p,C+x,O);l.T.push(B);var w=k;var U=H,c=B.startSecs;B=w.getAttribute("yt:cuepointTimeOffset");var V=w.getAttribute("yt:cuepointDuration");if(B&&V){B=Number(B);c=-B/U+c;U=Number(V)/U;V=w.getAttribute("yt:cuepointContext")||null;var F=w.getAttribute("yt:cuepointIdentifier")||"";w=w.getAttribute("yt:cuepointEvent")||"";w=new XB(c,U,V,F,cz_[w]||"unknown",B)}else w=null;w&&l.Z.push(w);X++;A+=p;O+=p;C+=p+x}}l.T.length&& (l.G=g.wr(l.T))}this.J=l.J;this.G=l.G||this.G;g.VH(this.T,l.T);g.VH(this.Z,l.Z);this.W=l.W;this.j=l.j;this.S===-1&&(this.S=l.getStreamTimeOffset())}; Qu.prototype.getStreamTimeOffset=function(){return this.S===-1?0:this.S};g.d(Bl,g.s1);g.z=Bl.prototype;g.z.jT=function(){return this.xg}; g.z.JQ=function(E,e){E=oc(this,E);return E>=0&&(e||!this.segments[E].pending)}; g.z.Qt=function(){return this.mW?this.segments.length?this.S6(this.Hs()).A0:-1:g.s1.prototype.Qt.call(this)}; g.z.Hs=function(){if(this.Af)return 0;if(!this.mW)return g.s1.prototype.Hs.call(this);if(!this.segments.length)return 0;var E=Math.max(g.wr(this.segments).endTime-this.dl,0);return this.Tg>0&&this.S6(E).A00)return this.x7/1E3;if(!this.segments.length)return g.s1.prototype.wl.call(this);var E=this.Oz();if(!this.mW||E<=this.segments[this.segments.length-1].A0)E=this.segments[this.segments.length-1];else{var e=this.segments[this.segments.length-1];E=new RJ(E,Math.max(0,e.startTime-(e.A0-E)*this.xg),this.xg,0,"sq/"+E,void 0,void 0,!0)}return this.Af?Math.min(this.dl,E.endTime):E.endTime}; g.z.j6=function(){return this.mW?this.segments.length?this.Oz()-this.Qt()+1:0:g.s1.prototype.j6.call(this)}; g.z.Oz=function(){var E=Math.min(this.SY,Math.max(g.s1.prototype.Oz.call(this),this.CF)),e=this.dl*1E3;e=this.x7>0&&this.x70&&this.CF>0&&!e&&(e=this.S6(this.dl))&&(E=Math.min(e.A0-1,E));return E}; g.z.XR=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.z.Gv=function(E){var e=oc(this,E.A0);if(e>=0)this.segments[e]=E;else if(this.segments.splice(-(e+1),0,E),this.e9&&E.A0%(300/this.xg)===0){var l=this.segments[0].A0,k=Math.floor(this.e9/this.xg);E=E.A0-k;e=-(e+1)-k;e>0&&E>l&&(this.segments=this.segments.slice(e))}}; g.z.xa=function(){return this.CF}; g.z.ET=function(E){return Wl?!this.G&&E>=0&&this.Oz()<=E:g.s1.prototype.ET.call(this,E)}; g.z.S6=function(E){if(!this.mW)return g.s1.prototype.S6.call(this,E);if(!this.segments.length)return null;var e=this.segments[this.segments.length-1];if(E=e.endTime)e=e.A0+Math.floor((E-e.endTime)/this.xg+1);else{e=N$(this.segments,function(k){return E=k.endTime?1:0}); if(e>=0)return this.segments[e];var l=-(e+1);e=this.segments[l-1];l=this.segments[l];e=Math.floor((E-e.endTime)/((l.startTime-e.endTime)/(l.A0-e.A0-1))+1)+e.A0}return this.Xf(e)}; g.z.Xf=function(E){if(!this.mW)return g.s1.prototype.Xf.call(this,E);if(!this.segments.length)return null;var e=oc(this,E);if(e>=0)return this.segments[e];var l=-(e+1);e=this.xg;if(l===0)var k=Math.max(0,this.segments[0].startTime-(this.segments[0].A0-E)*e);else l===this.segments.length?(k=this.segments[this.segments.length-1],k=k.endTime+(E-k.A0-1)*e):(k=this.segments[l-1],e=this.segments[l],e=(e.startTime-k.endTime)/(e.A0-k.A0-1),k=k.endTime+(E-k.A0-1)*e);return new RJ(E,k,e,0,"sq/"+E,void 0,void 0, !0)}; var Wl=!1;g.d(wa,Cx);g.z=wa.prototype;g.z.S9=function(){return!0}; g.z.Sv=function(){return!0}; g.z.Lp=function(E){return this.On()&&E.Z&&!E.W||!E.T.index.ET(E.A0)}; g.z.hU=function(){}; g.z.SZ=function(E,e){return typeof E!=="number"||isFinite(E)?Cx.prototype.SZ.call(this,E,e===void 0?!1:e):new OZ([new tr(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.R6,void 0,this.R6*this.info.Kg)],"")}; g.z.jb=function(E,e){var l=l===void 0?!1:l;if(this.index.JQ(E))return Cx.prototype.jb.call(this,E,e);var k=this.index.getStartTime(E),H=Math.round(this.R6*this.info.Kg),O=this.R6;e&&(O=H=0);return new OZ([new tr(l?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",E,k,O,void 0,H,!e)],E>=0?"sq/"+E:"")};g.d(zX,mX);g.z=zX.prototype;g.z.QJ=function(){return!1}; g.z.On=function(){return!1}; g.z.S9=function(){return!1}; g.z.hU=function(){return new OZ([new tr(1,this,void 0,"otfInit")],this.W)}; g.z.WY=function(){return null}; g.z.yn=function(E){this.Lp(E);return ZL8(this,lS(E),!1)}; g.z.SZ=function(E,e){e=e===void 0?!1:e;E=this.index.GS(E);e&&(E=Math.min(this.index.Oz(),E+1));return ZL8(this,E,!0)}; g.z.An=function(E){E.info.type===1&&(this.T||(this.T=u1(E.G)),E.T&&E.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&YOX(this,E.T))}; g.z.Lp=function(E){return E.Z===0?!0:this.index.Oz()>E.A0&&this.index.Qt()<=E.A0+1}; g.z.vv=function(){return 0}; g.z.Ht=function(){return!1};g.da.prototype.info=function(){}; g.da.prototype.debug=function(){}; g.da.prototype.T=function(E){GX.apply(null,[5,this.tag,E].concat(g.Be(g.LS.apply(1,arguments))))}; var KUZ=new Map,sW7=new Map,nfX=new function(){var E=this;this.T=new Map;this.p5={qE3:function(){return E.T}}};g.z=g.jz.prototype;g.z.JQ=function(E){return E<=this.Oz()}; g.z.Zp=function(E){return this.offsets[E]}; g.z.getStartTime=function(E){return this.startTicks[E]/this.T}; g.z.Pv=function(E){return this.getStartTime(E)+this.getDuration(E)}; g.z.ZL=E9(0);g.z.pY=function(){return NaN}; g.z.getDuration=function(E){E=this.Xp(E);return E>=0?E/this.T:-1}; g.z.Xp=function(E){return E+1=0}; g.z.wl=function(){return this.G?this.startTicks[this.count]/this.T:NaN}; g.z.Hs=function(){return 0}; g.z.j6=function(){return this.count}; g.z.wb=function(){return""}; g.z.GS=function(E){E=g.M$(this.startTicks.subarray(0,this.count),E*this.T);return E>=0?E:Math.max(0,-E-2)}; g.z.isLoaded=function(){return this.Oz()>=0}; g.z.sY=function(E,e){if(E>=this.Oz())return 0;var l=0;for(e=this.getStartTime(E)+e;Ethis.getStartTime(E);E++)l=Math.max(l,Xfl(this,E)/this.getDuration(E));return l}; g.z.resize=function(E){E+=2;var e=this.offsets;this.offsets=new Float64Array(E+1);var l=this.startTicks;this.startTicks=new Float64Array(E+1);for(E=0;E0&&E&&(l=l.range.end+1,E=Math.min(E,this.info.contentLength-l),E>0&&k.push(new tr(4,this,n0(l,E),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)));return new OZ(k)}; g.z.An=function(E){if(E.info.type===1){if(this.T)return;this.T=u1(E.G)}else if(E.info.type===2){if(this.W||this.index.Oz()>=0)return;if(g.D9(this.info)){var e=this.index,l=g.iS(E);E=E.info.range.start;var k=g.p0(l,0,1936286840);l=eM8(k);e.T=l.timescale;var H=l.VF;e.offsets[0]=l.tb+E+k.size;e.startTicks[0]=H;e.G=!0;E=l.hq.length;for(k=0;k0&&E===O[0].Gb)for(E=0;E=e+l)break}H.length||(E=new g.PK("b189619593",""+E,""+e,""+l),g.$F(E));return new OZ(H)}; g.z.Lb=function(E){for(var e=this.Zo(E.info),l=E.info.range.start+E.info.G,k=[],H=0;H=this.index.Zp(l+1);)l++;return this.JA(l,e,E.Z).H5}; g.z.Lp=function(E){E.UZ();return this.Sv()?!0:E.range.end+1this.info.contentLength&&(e=new gt(e.start,this.info.contentLength-1)),new OZ([new tr(4,E.T,e,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,E.clipId)]);E.type===4&&(E=this.Zo(E),E=E[E.length-1]);var l=0,k=E.range.start+E.G+E.Z;E.type===3&&(E.UZ(),l=E.A0,k===E.range.end+1&&(l+=1));return this.JA(l,k,e)}; g.z.yn=function(){return null}; g.z.SZ=function(E,e){e=e===void 0?!1:e;E=this.index.GS(E);e&&(E=Math.min(this.index.Oz(),E+1));return this.JA(E,this.index.Zp(E),0,void 0)}; g.z.QJ=function(){return!0}; g.z.On=function(){return!0}; g.z.S9=function(){return!1}; g.z.vv=function(){return this.indexRange.length+this.initRange.length}; g.z.Ht=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var HU={},$P8=(HU.COLOR_PRIMARIES_BT709="bt709",HU.COLOR_PRIMARIES_BT2020="bt2020",HU.COLOR_PRIMARIES_UNKNOWN=null,HU.COLOR_PRIMARIES_UNSPECIFIED=null,HU),OS={},ApX=(OS.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",OS.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",OS.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",OS.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",OS.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,OS.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,OS);g.fx.prototype.getName=function(){return this.name}; g.fx.prototype.getId=function(){return this.id}; g.fx.prototype.getIsDefault=function(){return this.isDefault}; g.fx.prototype.toString=function(){return this.name}; g.fx.prototype.getName=g.fx.prototype.getName;g.fx.prototype.getId=g.fx.prototype.getId;g.fx.prototype.getIsDefault=g.fx.prototype.getIsDefault;var Q97=/action_display_post/;var W9e,ra,DY;g.d(bS,g.sJ);g.z=bS.prototype;g.z.isLoading=function(){return this.state===1}; g.z.lH=function(){return this.state===3}; g.z.f0M=function(E){var e=E.getElementsByTagName("Representation");if(E.getElementsByTagName("SegmentList").length>0||E.getElementsByTagName("SegmentTemplate").length>0){this.sK=this.G=!0;this.timeline||(this.timeline=new Ppv);MOW(this.timeline,E);this.publish("refresh");for(E=0;E=0?x=K0(W):Q=Q+"?range="+W}C.call(A,new RJ(p.A0,p.startSecs,p.s1,p.T,Q,x,p.G))}k=H}l.update(k,this.isLive,this.jR)}NBW(this.timeline);return!0}this.duration=D5p(px(E,"mediaPresentationDuration")); a:{for(E=0;E0))return this.YN()-E}}E=this.T;for(var e in E){var l=E[e].index;if(l.isLoaded()&&!h4(E[e].info.mimeType))return l.Hs()}return 0}; g.z.getStreamTimeOffset=function(){return this.j}; g.z.pY=function(E){for(var e in this.T){var l=this.T[e].index;if(l.isLoaded()){var k=l.GS(E),H=l.pY(k);if(H)return H+E-l.getStartTime(k)}}return NaN}; var sZ=null,yzd,tf=!((yzd=navigator.mediaCapabilities)==null||!yzd.decodingInfo),IU9={commentary:1,alternate:2,dub:3,main:4};var jc=new Set,qc=new Map;lg.prototype.clone=function(E){return new lg(this.flavor,E,this.G,this.experiments)}; lg.prototype.zX=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; lg.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 j7H={},Qo=(j7H.playready=["com.youtube.playready","com.microsoft.playready"],j7H.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],j7H),XU={},SB0=(XU.widevine="DRM_SYSTEM_WIDEVINE",XU.fairplay="DRM_SYSTEM_FAIRPLAY",XU.playready="DRM_SYSTEM_PLAYREADY",XU),uk={},Iid=(uk.widevine=1,uk.fairplay=2,uk.playready=3,uk);var oU;g.d(Wi,g.a); Wi.prototype.initialize=function(E,e){for(var l=this,k=g.T(Object.keys(E)),H=k.next();!H.done;H=k.next()){H=g.T(E[H.value]);for(var O=H.next();!O.done;O=H.next())if(O=O.value,O.oG)for(var X=g.T(Object.keys(O.oG)),A=X.next();!A.done;A=X.next()){var C=A.value;A=C;C=Qo[C];!C&&this.L("html5_enable_vp9_fairplay")&&A==="fairplay"&&(C=["com.youtube.fairplay.sbdl"]);if(C){C=g.T(C);for(var p=C.next();!p.done;p=C.next())p=p.value,this.Z[p]=this.Z[p]||new lg(A,p,O.oG[A],this.F6.experiments),this.T[A]=this.T[A]|| {},this.T[A][O.mimeType]=!0}}}Pg()&&(this.Z["com.youtube.fairplay"]=new lg("fairplay","com.youtube.fairplay","",this.F6.experiments),this.L("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.G=MKX(e,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay")&&!0,this.L("html5_enable_vp9_fairplay")).filter(function(x){return!!l.Z[x]})}; Wi.prototype.L=function(E){return this.F6.experiments.P5(E)};var Fh$={"":"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"};K98.prototype.L=function(E){return this.experiments.P5(E)};var hu9={RED:"red",cld:"white"};nZW.prototype.P5=function(E){E=this.flags[E];JSON.stringify(E);return E==="true"};var tKy=Promise.resolve(),lxX=window.queueMicrotask?window.queueMicrotask.bind(window):q$0;G8.prototype.canPlayType=function(E,e){E=E.canPlayType?E.canPlayType(e):!1;PZ?E=E||fi_[e]:k9===2.2?E=E||Vqs[e]:bM()&&(E=E||SfH[e]);return!!E}; G8.prototype.isTypeSupported=function(E){return this.V?window.cast.receiver.platform.canDisplayType(E):wB(E)}; var Vqs={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},SfH={"application/x-mpegURL":"maybe"},fi_={"application/x-mpegURL":"maybe"};g.d($s,g.sJ);$s.prototype.add=function(E,e){if(!this.items[E]&&(e.mI||e.oS||e.LT)){var l=this.items,k=e;Object.isFrozen&&!Object.isFrozen(e)&&(k=Object.create(e),Object.freeze(k));l[E]=k;this.publish("vast_info_card_add",E)}}; $s.prototype.remove=function(E){var e=this.get(E);delete this.items[E];return e}; $s.prototype.get=function(E){return this.items[E]||null}; $s.prototype.isEmpty=function(){return g.QI(this.items)};Us.prototype.encrypt=function(E){this.T.exports.AES128CTRCipher_encrypt(this.cipher,E.byteOffset,E.byteLength);return E}; Us.prototype.U7=function(){return this.cipher===0}; Us.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ci.prototype.tO=function(E,e){e=e===void 0?1:e;this.HB+=e;this.G+=E;E/=e;for(var l=0;l0)k+="."+J1[H].toFixed(0)+"_"+l.T[H].toFixed(0);else break;l=k}l&&(E[e]=l)}this.T=new XE7;return E}; g.z.toString=function(){return""};g.z=Qyp.prototype;g.z.isActive=function(){return!1}; g.z.fn=function(){}; g.z.wE=function(){}; g.z.XW=function(){}; g.z.k_=function(E,e){e()}; g.z.nm=function(){return{}}; g.z.toString=function(){return""};var rz6=new Qyp,DRt=!!+hd("html5_enable_profiler"),bf_=!!+hd("html5_onesie_enable_profiler"),Ag=DRt||bf_?new ACp:rz6,sIy=DRt?Ag:rz6,jL=bf_?Ag:rz6;d7X.prototype.emscripten_notify_memory_growth=function(){};g.z=yo.prototype;g.z.malloc=function(E){return this.exports.malloc(E)}; g.z.free=function(E){this.exports.free(E)}; g.z.realloc=function(E,e){return this.exports.realloc(E,e)}; g.z.EA=function(E){if(E.buffer!==this.exports.memory.buffer){var e=this.malloc(E.byteLength);e=new Uint8Array(this.exports.memory.buffer,e,E.byteLength);e.set(E);return e}}; g.z.Lf=function(E){if(E.buffer===this.exports.memory.buffer){var e=E.slice();this.free(E.byteOffset);return e}}; var WZy=new function(){this.Z=this.S="WebAssembly"in window},IU="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); jL.fn(yo,{EA:function(E){return{profile:"copyj2w",HB:E===void 0?0:Math.ceil(E.byteLength/16)}}, Lf:function(E){return{profile:"copyw2j",HB:E===void 0?0:Math.ceil(E.byteLength/16)}}});FY.prototype.encrypt=function(E,e){try{return this.T.Lf($7W(this,E,e))}catch(l){g.UJ(Error("ocwce: wasm encrypt failed: "+l))}}; FY.prototype.U7=function(){return this.Z}; FY.prototype.dispose=function(){this.U7()||(g.qE(this.G),this.T.free(this.S.byteOffset),this.Z=!0)};g.d(U7l,g.a);g.d(cCl,g.a);var Vo;SL.prototype.add=function(E){if(this.pos+20>this.data.length){var e=new Uint8Array(this.data.length*2);e.set(this.data);this.data=e}for(;E>31;)this.data[this.pos++]=Vo[(E&31)+32],E>>=5;this.data[this.pos++]=Vo[E|0]}; SL.prototype.rG=function(){return g.QF(this.data.subarray(0,this.pos))}; SL.prototype.reset=function(){this.pos=0};D2.prototype.CI=function(E,e){var l=Math.pow(this.alpha,E);this.T=e*(1-l)+l*this.T;this.G+=E}; D2.prototype.NV=function(){return this.T/(1-Math.pow(this.alpha,this.G))};bg.prototype.CI=function(E,e){for(var l=0;l<10;l++){var k=this.T[l],H=k+(l===0?E:0),O=1*Math.pow(2,l);if(H<=O)break;k=Math.min(1,(H-O*.5)/k);for(H=0;H<16;H++)O=this.values[l*16+H]*k,this.values[(l+1)*16+H]+=O,this.T[l+1]+=O,this.values[l*16+H]-=O,this.T[l]-=O}k=l=0;H=8192;e>8192&&(l=Math.ceil(Math.log(e/8192)/Math.log(2)),k=8192*Math.pow(2,l-1),H=k*2);l+2>16?this.values[15]+=E:(e=(e-k)/(H-k),this.values[l]+=E*(1-e),this.values[l+1]+=E*e);this.T[0]+=E}; bg.prototype.NV=function(){var E=E===void 0?this.G:E;var e=e===void 0?.02:e;var l=l===void 0?.98:l;for(var k=this.Z,H=0;H<16;H++)k[H]=this.values[H];H=this.T[0];for(var O=1;O<11;O++){var X=this.T[O];if(X===0)break;for(var A=Math.min(1,(E-H)/X),C=0;C<16;C++)k[C]+=this.values[O*16+C]*A;H+=X*A;if(A<1)break}for(O=E=X=0;O<16;O++){A=X+k[O]/H;E+=Math.max(0,Math.min(A,l)-Math.max(X,e))*(O>0?8192*Math.pow(2,O-1):0);if(A>l)break;X=A}return E/(l-e)};vi.prototype.CI=function(E,e){E=Math.min(this.T,Math.max(1,Math.round(E*this.resolution)));E+this.G>=this.T&&(this.Z=!0);for(;E--;)this.values[this.G]=e,this.G=(this.G+1)%this.T;this.EE=!0}; vi.prototype.percentile=function(E){var e=this;if(!this.Z&&this.G===0)return 0;this.EE&&(g.m2(this.W,function(l,k){return e.values[l]-e.values[k]}),this.EE=!1); return this.values[this.W[Math.round(E*((this.Z?this.T:this.G)-1))]]||0}; vi.prototype.NV=function(){return this.J?(this.percentile(this.S-this.J)+this.percentile(this.S)+this.percentile(this.S+this.J))/3:this.percentile(this.S)};g.d(Pi,g.a);Pi.prototype.R4=function(){var E;(E=this.J0)==null||E.start();if(mF(this)&&this.policy.N){var e;(e=this.sz)==null||e.Vz()}};VBX.prototype.L=function(E){return this.experiments.P5(E)};g.d(rCl,g.a);var LZ7="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(" "),gR7={Ez0:"caoe",dwg:"capsv",cVH:"cbrand",AVz:"cbr",fld:"cbrver",OId:"cchip",MYM:"ccappver",P13:"ccrv",ydz:"cfrmver",out:"c",Arz:"cver",cr6:"ctheme",sFM:"cplayer",s94:"cmodel",QP:"cnetwork",MMH:"cos",OS_VERSION:"cosver",v43:"cplatform",cYD:"crqyear"};g.d(Wk,g.a);g.z=Wk.prototype;g.z.L=function(E){return this.experiments.P5(E)}; g.z.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.z.getVideoUrl=function(E,e,l,k,H,O,X){e={list:e};l&&(H?e.time_continue=l:e.t=l);l=X?"music.youtube.com":g.oQ(this);H=l==="www.youtube.com";!O&&k&&H?O="https://youtu.be/"+E:g.XG(this)?(O="https://"+l+"/fire",e.v=E):(O&&H?(O=this.protocol+"://"+l+"/shorts/"+E,k&&(e.feature="share")):(O=this.protocol+"://"+l+"/watch",e.v=E),PZ&&(E=ZU8())&&(e.ebc=E));return g.BJ(O,e)}; g.z.getVideoEmbedCode=function(E,e,l,k){e="https://"+g.oQ(this)+"/embed/"+e;k&&(e=g.BJ(e,{list:k}));k=l.width;l=l.height;e=Fj(e);E=Fj(E!=null?E:"YouTube video player");return'')}; g.z.supportsGaplessAudio=function(){return g.oW&&!PZ&&SQ()>=74||g.pJ&&g.aE(68)?!0:!1}; g.z.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.jR||g.pA?!1:!0}; g.z.getPlayerType=function(){return this.T.cplayer}; g.z.f7=function(){return this.f0}; var sy8=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],m7Z=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],nRS=[19];var Co={},e1Z=(Co["140"]={numChannels:2},Co["141"]={numChannels:2},Co["251"]={audioSampleRate:48E3,numChannels:2},Co["774"]={audioSampleRate:48E3,numChannels:2},Co["380"]={numChannels:6},Co["328"]={numChannels:6},Co["773"]={},Co),po={},q2Z=(po["1"]='video/mp4; codecs="av01.0.08M.08"',po["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',po["1e"]='video/mp4; codecs="av01.0.08M.08"',po["9"]='video/webm; codecs="vp9"',po["("]='video/webm; codecs="vp9"',po["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', po.h='video/mp4; codecs="avc1.64001e"',po.H='video/mp4; codecs="avc1.64001e"',po.o='audio/webm; codecs="opus"',po.a='audio/mp4; codecs="mp4a.40.2"',po.ah='audio/mp4; codecs="mp4a.40.2"',po.mac3='audio/mp4; codecs="ac-3"; channels=6',po.meac3='audio/mp4; codecs="ec-3"; channels=6',po.i='audio/mp4; codecs="iamf.001.001.Opus"',po),x$={},EtX=(x$["337"]={width:3840,height:2160,bitrate:3E7,fps:30},x$["336"]={width:2560,height:1440,bitrate:15E6,fps:30},x$["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, x$["702"]={width:7680,height:4320,bitrate:4E7,fps:60},x$["701"]={width:3840,height:2160,bitrate:2E7,fps:60},x$["700"]={width:2560,height:1440,bitrate:1E7,fps:60},x$["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},x$["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},x$["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},x$["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, x$["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},x$["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},x$["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},x$["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},x$["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},x$["315"]={width:3840,height:2160,bitrate:2E7,fps:60},x$["308"]={width:2560, height:1440,bitrate:1E7,fps:60},x$["303"]={width:1920,height:1080,bitrate:5E6,fps:60},x$["302"]={width:1280,height:720,bitrate:25E5,fps:60},x$["299"]={width:1920,height:1080,bitrate:75E5,fps:60},x$["298"]={width:1280,height:720,bitrate:35E5,fps:60},x$["571"]={width:7680,height:4320,bitrate:3E7,fps:60},x$["401"]={width:3840,height:2160,bitrate:15E6,fps:60},x$["400"]={width:2560,height:1440,bitrate:75E5,fps:60},x$["399"]={width:1920,height:1080,bitrate:2E6,fps:60},x$["398"]={width:1280,height:720,bitrate:1E6, fps:60},x$["397"]={width:854,height:480,bitrate:4E5,fps:30},x$["396"]={width:640,height:360,bitrate:25E4,fps:30},x$["787"]={width:1080,height:608,bitrate:2E5,fps:30},x$["788"]={width:1080,height:608,bitrate:4E5,fps:30},x$["572"]={width:7680,height:4320,bitrate:3E7,fps:60},x$["555"]={width:3840,height:2160,bitrate:15E6,fps:60},x$["554"]={width:2560,height:1440,bitrate:75E5,fps:60},x$["553"]={width:1920,height:1080,bitrate:2E6,fps:60},x$["552"]={width:1280,height:720,bitrate:1E6,fps:60},x$["551"]={width:854, height:480,bitrate:4E5,fps:30},x$["550"]={width:640,height:360,bitrate:25E4,fps:30},x$["313"]={width:3840,height:2160,bitrate:8E6,fps:30},x$["271"]={width:2560,height:1440,bitrate:4E6,fps:30},x$["248"]={width:1920,height:1080,bitrate:2E6,fps:30},x$["247"]={width:1280,height:720,bitrate:15E5,fps:30},x$["244"]={width:854,height:480,bitrate:52E4,fps:30},x$["243"]={width:640,height:360,bitrate:28E4,fps:30},x$["137"]={width:1920,height:1080,bitrate:4E6,fps:30},x$["136"]={width:1280,height:720,bitrate:3E6, fps:30},x$["135"]={width:854,height:480,bitrate:1E6,fps:30},x$["385"]={width:1920,height:1080,bitrate:6503313,fps:60},x$["376"]={width:1280,height:720,bitrate:5706960,fps:60},x$["384"]={width:1280,height:720,bitrate:3660979,fps:60},x$["225"]={width:1280,height:720,bitrate:5805E3,fps:30},x$["224"]={width:1280,height:720,bitrate:453E4,fps:30},x$["145"]={width:1280,height:720,bitrate:2682052,fps:30},x$);g.z=SC.prototype;g.z.getInfo=function(){return this.T}; g.z.Cq=function(){return null}; g.z.xQ=function(){var E=this.Cq();return E?(E=g.R0(E.XS),Number(E.expire)):NaN}; g.z.BD=function(){}; g.z.getHeight=function(){return this.T.video.height};OGX.prototype.build=function(){ASX(this);var E=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],e={};a:if(this.T)var l=this.T;else{l="";for(var k=g.T(this.Z),H=k.next();!H.done;H=k.next())if(H=H.value,H.gC){if(H.gC.getIsDefault()){l=H.gC.getId();break a}l||(l=H.gC.getId())}}k=g.T(this.Z);for(H=k.next();!H.done;H=k.next())if(H=H.value,this.J||!H.gC||H.gC.getId()===l)e[H.itag]||(e[H.itag]=[]),e[H.itag].push(H);l=g.T(this.G);for(k=l.next();!k.done;k=l.next())if(k=k.value,H=e[k.T]){H=g.T(H);for(var O=H.next();!O.done;O= H.next()){var X=E,A=X.push;O=O.value;var C="#EXT-X-MEDIA:TYPE=AUDIO,",p="YES",x="audio";if(O.gC){x=O.gC;var Q=x.getId().split(".")[0];Q&&(C+='LANGUAGE="'+Q+'",');(this.T?this.T===x.getId():x.getIsDefault())||(p="NO");x=x.getName()}Q="";k!==null&&(Q=k.itag.toString());Q=DS(this,O.url,Q);C=C+('NAME="'+x+'",DEFAULT='+(p+',AUTOSELECT=YES,GROUP-ID="'))+(uCl(O,k)+'",URI="'+(Q+'"'));A.call(X,C)}}l=g.T(this.W);for(k=l.next();!k.done;k=l.next())k=k.value,H=vb0,k=(X=k.gC)?'#EXT-X-MEDIA:URI="'+DS(this,k.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+H+'",LANGUAGE="'+X.getId()+'",NAME="'+X.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,k&&E.push(k);l=this.W.length>0?vb0:void 0;k=g.T(this.G);for(H=k.next();!H.done;H=k.next())H=H.value,A=e[H.T],X=void 0,((X=A)==null?void 0:X.length)>0&&(X=H,A=A[0],A="#EXT-X-STREAM-INF:BANDWIDTH="+(X.bitrate+A.bitrate)+',CODECS="'+(X.codecs+","+A.codecs+'",RESOLUTION=')+(X.width+"x"+X.height+',AUDIO="')+(uCl(A,X)+'",')+(l?'SUBTITLES="'+l+'",':"")+"CLOSED-CAPTIONS=NONE",X.fps>1&&(A+= ",FRAME-RATE="+X.fps),X.Ky&&(A+=",VIDEO-RANGE="+X.Ky),E.push(A),E.push(DS(this,H.url,"")));return E.join("\n")}; var vb0="text";g.d(bY,SC);bY.prototype.xQ=function(){return this.expiration}; bY.prototype.Cq=function(){if(!this.XS||this.XS.U7()){var E=this.G.build();E="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(E);this.XS=new kZ(E)}return this.XS};g.d(vk,SC);vk.prototype.Cq=function(){return new kZ(this.G.cN())}; vk.prototype.BD=function(){this.G=K_(this.G)};g.d(Pk,SC);Pk.prototype.Cq=function(){return new kZ(this.G)};var Qn={},dJp=(Qn.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Qn.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Qn.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Qn.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Qn);g.z=g.aQ.prototype;g.z.getId=function(){return this.id}; g.z.getName=function(){return this.name}; g.z.isServable=function(){return this.T}; g.z.cN=function(){return this.url}; g.z.getXtags=function(){return this.xtags}; g.z.toString=function(){return this.languageCode+": "+g.LT(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.z.equals=function(E){return E?this.toString()===E.toString():!1}; g.z.aG=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var JS8={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},cS0={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ySW=/^(\d*)_((\d*)_?(\d*))$/;var I50={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},F19={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var WU={},PZO=(WU.ALWAYS=1,WU.BY_REQUEST=3,WU.UNKNOWN=void 0,WU),BU={},ais=(BU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",BU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",BU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",BU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",BU);var hJS; hJS=function(E){for(var e=Object.keys(E),l={},k=0;kk-e?-1:E}; g.z.LB=function(){return this.G.Oz()}; g.z.cw=function(){return this.G.Qt()}; g.z.jo=function(E){this.G=E};g.d(W$,x7);W$.prototype.G=function(E,e){return x7.prototype.G.call(this,"$N|"+E,e)}; W$.prototype.W=function(E,e,l){return new QJ(E,e,l,this.isLive)};g.d(g.oR,g.sJ);g.z=g.oR.prototype; g.z.setData=function(E){E=E||{};var e=E.errordetail;e!=null&&(this.errorDetail=e);var l=E.errorcode;l!=null?this.errorCode=l:E.status==="fail"&&(this.errorCode="auth");var k=E.reason;k!=null&&(this.errorReason=k);var H=E.subreason;H!=null&&(this.Sc=H);this.clientPlaybackNonce||(this.clientPlaybackNonce=E.cpn||(this.F6.f7()?"r"+g.p2(15):g.p2(16)));this.Yt=nE(this.F6.Yt,E.livemonitor);XH9(this,E);var O=E.raw_player_response;if(O)this.dw=O;else{var X=E.player_response;X&&(O=JSON.parse(X))}O&&(this.playerResponse= O);if(this.playerResponse){var A=this.playerResponse.annotations;if(A)for(var C=g.T(A),p=C.next();!p.done;p=C.next()){var x=p.value.playerAnnotationsUrlsRenderer;if(x){x.adsOnly&&(this.RU=!0);var Q=x.loadPolicy;Q&&(this.annotationsLoadPolicy=PZO[Q]);var W=x.invideoUrl;W&&(this.J0=Lp(W));break}}var B=this.playerResponse.attestation;B&&Vrl(this,B);var w=this.playerResponse.cotn;w&&(this.cotn=w);var U=this.playerResponse.heartbeatParams;if(U){this.zn=!0;var c=U.heartbeatToken;c&&(this.drmSessionId=U.drmSessionId|| "",this.heartbeatToken=c,this.fS=Number(U.intervalMilliseconds),this.Gw=Number(U.maxRetries),this.Uh=!!U.softFailOnError,this.Q2=!!U.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=U.heartbeatServerData;var V;this.DG=!((V=U.heartbeatAttestationConfig)==null||!V.requiresAttestation)}var F=this.playerResponse.messages;F&&bGZ(this,F);var r=this.playerResponse.overlay;if(r){var P=r.playerControlsOverlayRenderer;if(P)if(Pvy(this,P.controlBgHtml),P.mutedAutoplay){var N=g.M(P.mutedAutoplay,tW6);if(N&& N.endScreen){var R=g.M(N.endScreen,q3t);R&&R.text&&(this.Qg=g.Ow(R.text))}}else this.mutedAutoplay=!1}var K=this.playerResponse.playabilityStatus;if(K){var XW=K.backgroundability;XW&&XW.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var oZ,A7;if((oZ=K.offlineability)==null?0:(A7=oZ.offlineabilityRenderer)==null?0:A7.offlineable)this.offlineable=!0;var CS=K.contextParams;CS&&(this.contextParams=CS);var ep=K.pictureInPicture;ep&&ep.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);K.playableInEmbed&&(this.allowEmbed=!0);var IZ=K.ypcClickwrap;if(IZ){var nS=IZ.playerLegacyDesktopYpcClickwrapRenderer,E6=IZ.ypcRentalActivationRenderer;if(nS)this.wf=nS.durationMessage||"",this.Dr=!0;else if(E6){var zd=E6.durationMessage;this.wf=zd?g.Ow(zd):"";this.Dr=!0}}var A0=K.errorScreen;if(A0){if(A0.playerLegacyDesktopYpcTrailerRenderer){var VX=A0.playerLegacyDesktopYpcTrailerRenderer;this.jN=VX.trailerVideoId||"";var Op=A0.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var vt=Op&&Op.ypcTrailerRenderer}else if(A0.playerLegacyDesktopYpcOfferRenderer)VX= A0.playerLegacyDesktopYpcOfferRenderer;else if(A0.ypcTrailerRenderer){vt=A0.ypcTrailerRenderer;var Zk=vt.fullVideoMessage;this.HQ=Zk?g.Ow(Zk):"";var XF,f;this.jN=((XF=g.M(vt,Ev1))==null?void 0:(f=XF.videoDetails)==null?void 0:f.videoId)||""}VX&&(this.zd=VX.itemTitle||"",VX.itemUrl&&(this.F7=VX.itemUrl),VX.itemBuyUrl&&(this.Im=VX.itemBuyUrl),this.Te=VX.itemThumbnail||"",this.h5=VX.offerHeadline||"",this.YZ=VX.offerDescription||"",this.T2=VX.offerId||"",this.xA=VX.offerButtonText||"",this.Ym=VX.offerButtonFormattedText|| null,this.Xu=VX.overlayDurationMsec||NaN,this.HQ=VX.fullVideoMessage||"",this.yS=!0);if(vt){var Le=g.M(vt,Ev1);if(Le)this.G2={raw_player_response:Le};else{var SS=g.M(vt,pbs);this.G2=SS?KF(SS):null}this.yS=!0}}}var k0=this.playerResponse.playbackTracking;if(k0){var ct=E,J=Y9(k0.googleRemarketingUrl);J&&(this.googleRemarketingUrl=J);var lX=Y9(k0.youtubeRemarketingUrl);lX&&(this.youtubeRemarketingUrl=lX);var VI={},u2=Y9(k0.ptrackingUrl);if(u2){var h0=mD(u2),g8=h0.oid;g8&&(this.dk=g8);var l_=h0.pltype; l_&&(this.Id=l_);var qo=h0.ptchn;qo&&(this.E6=qo);var hT=h0.ptk;hT&&(this.LS=encodeURIComponent(hT));var y=h0.m;y&&(this.sA=y)}var G=Y9(k0.qoeUrl);if(G){for(var I=g.R0(G),b=g.T(Object.keys(I)),h=b.next();!h.done;h=b.next()){var QX=h.value,Y=I[QX];I[QX]=Array.isArray(Y)?Y.join(","):Y}this.fN=I;var q=I.cat;q&&(this.L("html5_enable_qoe_cat_list")?this.rJ=this.rJ.concat(q.split(",")):this.Jr=q);var v=I.live;v&&(this.pV=v);var Dv=I.drm_product;Dv&&(this.drmProduct=Dv)}var NW=Y9(k0.videostatsPlaybackUrl); if(NW){var uX=mD(NW),xG=uX.adformat;if(xG){ct.adformat=xG;var Sp=this.Y(),ce=jPZ(xG,this.tT,Sp.S,Sp.N);ce&&(this.adFormat=ce)}var eM=uX.aqi;eM&&(ct.ad_query_id=eM);var J0=uX.autoplay;J0&&(this.vG=J0=="1",this.QA=J0=="1");var Pt=uX.autonav;Pt&&(this.isAutonav=Pt=="1");var yX=uX.delay;yX&&(this.dC=SW(yX));var $v=uX.ei;$v&&(this.eventId=$v);var fS=fJ(uX.adcontext);if(fS)try{var rr=qp1(fS);rr&&(this.Eb=rr)}catch(ZNS){g.UJ(Error("Malformed adContext"))}if(fS||xG)this.vG=!0;var yH=uX.feature;yH&&(this.VJ= yH);var uK=uX.list;uK&&(this.playlistId=uK);var jS=uX.of;jS&&(this.tZ=jS);var sL=uX.osid;sL&&(this.osid=sL);var kr=uX.referrer;kr&&(this.referrer=kr);var YG=uX.sdetail;YG&&(this.To=YG);var Dk=uX.ssrt;Dk&&(this.Zc=Dk=="1");var jW=uX.subscribed;jW&&(this.subscribed=jW=="1");var Kf=uX.uga;Kf&&(this.userGenderAge=Kf);var oe=uX.upt;oe&&(this.Mx=oe);var bq=uX.vm;bq&&(this.videoMetadata=bq);VI.playback=uX}var tO=Y9(k0.videostatsWatchtimeUrl);if(tO){var qy=mD(tO),X7=qy.ald;X7&&(this.aU=X7);VI.watchtime=qy}var Ud= Y9(k0.atrUrl);if(Ud){var VL=mD(Ud);VI.atr=VL}var nf=Y9(k0.engageUrl);if(nf){var S4=mD(nf);VI.engage=S4}this.Y7=VI;if(k0.promotedPlaybackTracking){var lC=k0.promotedPlaybackTracking;lC.startUrls&&(this.eA=lC.startUrls);lC.firstQuartileUrls&&(this.NW=lC.firstQuartileUrls);lC.secondQuartileUrls&&(this.H2=lC.secondQuartileUrls);lC.thirdQuartileUrls&&(this.zk=lC.thirdQuartileUrls);lC.completeUrls&&(this.W2=lC.completeUrls);lC.engagedViewUrls&&(lC.engagedViewUrls.length>1&&g.UJ(new g.PK("There are more than one engaged_view_urls.")), this.gV=lC.engagedViewUrls[0])}}var wW=this.playerResponse.playerCueRanges;wW&&wW.length>0&&(this.cueRanges=wW);var vD=this.playerResponse.playerCueRangeSet;vD&&g.Gg(this,vD);a:{var dR=this.playerResponse.adPlacements;if(dR)for(var Eh=g.T(dR),GN=Eh.next();!GN.done;GN=Eh.next()){var e4=void 0,l8=void 0,kh=(e4=GN.value.adPlacementRenderer)==null?void 0:(l8=e4.renderer)==null?void 0:l8.videoAdTrackingRenderer;if(kh){var H8=kh;break a}}H8=null}var TN=H8;k0&&k0.promotedPlaybackTracking&&TN&&g.UJ(new g.PK("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var uZ;if(!(uZ=TN))a:{for(var Oh=g.T(this.playerResponse.adSlots||[]),Q1=Oh.next();!Q1.done;Q1=Oh.next()){var W4=g.M(Q1.value,ej);if(W4===void 0||!vQZ(W4))break;var F8=void 0,Ds=(F8=W4.fulfillmentContent)==null?void 0:F8.fulfilledLayout,b8=g.M(Ds,m1);if(b8&&MJ(b8)){uZ=!0;break a}}uZ=!1}uZ&&(this.gb=!0);var v8=this.playerResponse.playerAds;if(v8)for(var e2=E,fy=g.T(v8),zG=fy.next();!zG.done;zG=fy.next()){var VB=zG.value;if(VB){var lW=VB.playerLegacyDesktopWatchAdsRenderer;if(lW){var P8=lW.playerAdParams; if(P8){P8.autoplay=="1"&&(this.QA=this.vG=!0);this.Ce=P8.encodedAdSafetyReason||null;P8.showContentThumbnail!==void 0&&(this.Yu=!!P8.showContentThumbnail);e2.enabled_engage_types=P8.enabledEngageTypes;break}}}}var JV=this.playerResponse.playerConfig;if(JV){var iB=JV.manifestlessWindowedLiveConfig;if(iB){var PC=Number(iB.minDvrSequence),k5=Number(iB.maxDvrSequence),B4=Number(iB.minDvrMediaTimeMs),Hq=Number(iB.maxDvrMediaTimeMs),So=Number(iB.startWalltimeMs);PC&&(this.Tg=PC);B4&&(this.Qd=B4/1E3,this.L("html5_sabr_parse_live_metadata_playback_boundaries")&& f9(this)&&(this.Td=B4/1E3));k5&&(this.SY=k5);Hq&&(this.GX=Hq/1E3,this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&f9(this)&&(this.Dy=Hq/1E3));So&&(this.Wh=So/1E3);(PC||B4)&&(k5||Hq)&&(this.allowLiveDvr=this.isLivePlayback=this.SR=!0,this.Af=!1)}var ox=JV.daiConfig;if(ox){if(ox.enableDai){this.rR=!0;var EQ=ox.enableServerStitchedDai;EQ&&(this.enableServerStitchedDai=EQ);var PR=ox.enablePreroll;PR&&(this.u0=PR)}var HO;if(ox.daiType==="DAI_TYPE_SS_DISABLED"||((HO=ox.debugInfo)==null?0:HO.isDisabledUnpluggedChannel))this.wX= !0;ox.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.CK=!0);ox.allowUstreamerRequestAdconfig&&(this.ub=!0)}var uW=JV.audioConfig;if(uW){var a0=uW.loudnessDb;a0!=null&&(this.yf=a0);var C49=uW.trackAbsoluteLoudnessLkfs;C49!=null&&(this.lW=C49);var pI0=uW.loudnessTargetLkfs;pI0!=null&&(this.loudnessTargetLkfs=pI0);uW.audioMuted&&(this.NT=!0);uW.muteOnStart&&(this.uo=!0);var xt=uW.loudnessNormalizationConfig;if(xt){xt.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);xt.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var x69=xt.minimumLoudnessTargetLkfs;x69!=null&&(this.minimumLoudnessTargetLkfs=x69);var QnW=xt.maxStatefulTimeThresholdSec;QnW!=null&&(this.maxStatefulTimeThresholdSec=QnW)}uW.playAudioOnly&&(this.JS=!0)}var JzZ=JV.playbackEndConfig;if(JzZ){var Wue=JzZ.endSeconds,B77=JzZ.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Wue&&(this.endSeconds=Wue),B77&&(this.limitedPlaybackDurationInSeconds=B77))}var zA=JV.fairPlayConfig;if(zA){var ol9=zA.certificate;ol9&& (this.jR=fJ(ol9));var wIv=Number(zA.keyRotationPeriodMs);wIv>0&&(this.Az=wIv);var zN7=Number(zA.keyPrefetchMarginMs);zN7>0&&(this.cB=zN7)}var jV=JV.playbackStartConfig;if(jV){this.K9=Number(jV.startSeconds);var d68=jV.liveUtcStartSeconds,GFZ=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;d68&&!GFZ&&(this.liveUtcStartSeconds=Number(d68));var czX=jV.startPosition;if(czX){var T77=czX.utcTimeMillis;T77&&!GFZ&&(this.liveUtcStartSeconds=Number(T77)*.001);var iV0=czX.streamTimeMillis;iV0&&(this.dO= Number(iV0)*.001)}this.progressBarStartPosition=jV.progressBarStartPosition;this.progressBarEndPosition=jV.progressBarEndPosition}else{var yz7=JV.skippableSegmentsConfig;if(yz7){var $6W=yz7.introSkipDurationMs;$6W&&(this.HJ=Number($6W)/1E3);var U6Z=yz7.outroSkipDurationMs;U6Z&&(this.Zh=Number(U6Z)/1E3)}}var j7X=JV.skippableIntroConfig;if(j7X){var JL9=Number(j7X.startMs),cLW=Number(j7X.endMs);isNaN(JL9)||isNaN(cLW)||(this.rB=JL9,this.lk=cLW)}var yLv=JV.streamSelectionConfig;yLv&&(this.hN=Number(yLv.maxBitrate)); var jn8=JV.vrConfig;jn8&&(this.X5=jn8.partialSpherical=="1");var Qt=JV.webDrmConfig;if(Qt){Qt.skipWidevine&&(this.ib=!0);var Id0=Qt.widevineServiceCert;Id0&&(this.Ep=fJ(Id0));Qt.useCobaltWidevine&&(this.useCobaltWidevine=!0);Qt.startWithNoQualityConstraint&&(this.Kw=!0)}var Lc=JV.mediaCommonConfig;if(Lc){var dA=Lc.dynamicReadaheadConfig;if(dA){this.maxReadAheadMediaTimeMs=dA.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=dA.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=dA.readAheadGrowthRateMs|| NaN;var Fuy,fd7=Lc==null?void 0:(Fuy=Lc.mediaUstreamerRequestConfig)==null?void 0:Fuy.videoPlaybackUstreamerConfig;fd7&&(this.fI=fJ(fd7));var Ii7=Lc==null?void 0:Lc.sabrContextUpdates;if(Ii7&&Ii7.length>0)for(var Vyp=g.T(Ii7),FhW=Vyp.next();!FhW.done;FhW=Vyp.next()){var Ka=FhW.value;if(Ka.type&&Ka.value){var QL0={type:Ka.type,scope:Ka.scope,value:fJ(Ka.value)||void 0,sendByDefault:Ka.sendByDefault};this.sabrContextUpdates.set(Ka.type,QL0)}}}var Sbv=Lc.serverPlaybackStartConfig;Sbv&&(this.serverPlaybackStartConfig= Sbv);Lc.useServerDrivenAbr&&(this.a6=!0);var rL9=Lc.requestPipeliningConfig;rL9&&(this.requestPipeliningConfig=rL9)}var D6X=JV.inlinePlaybackConfig;D6X&&(this.uB=!!D6X.showAudioControls);var GA=JV.embeddedPlayerConfig;if(GA){this.embeddedPlayerConfig=GA;var fiX=GA.embeddedPlayerMode;if(fiX){var bVW=this.Y();bVW.Qd=fiX;bVW.Z=fiX==="EMBEDDED_PLAYER_MODE_PFL"}var vl8=GA.permissions;vl8&&(this.allowImaMonetization=!!vl8.allowImaMonetization)}var TA=JV.webPlayerConfig;TA&&(TA.gatewayExperimentGroup&&(this.gatewayExperimentGroup= TA.gatewayExperimentGroup),TA.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var hi=this.playerResponse.streamingData;if(hi){var Vqy=hi.formats;if(Vqy){for(var WF=[],P4y=g.T(Vqy),SfX=P4y.next();!SfX.done;SfX=P4y.next()){var rz9=SfX.value;WF.push(rz9.itag+"/"+rz9.width+"x"+rz9.height)}this.I8=WF.join(",");WF=[];for(var adv=g.T(Vqy),DRe=adv.next();!DRe.done;DRe=adv.next()){var BF=DRe.value,oP={itag:BF.itag,type:BF.mimeType,quality:BF.quality},Luv=BF.url;Luv&&(oP.url=Luv);var iV=n_(BF),WVr=iV.JD, BvW=iV.nZ,oqk=iV.s;iV.EY&&(oP.url=WVr,oP.sp=BvW,oP.s=oqk);WF.push(g.WJ(oP))}this.UJ=WF.join(",")}var bfX=hi.hlsFormats;if(bfX){var hNS=JV||null,$y={};if(hNS){var vb7=hNS.audioPairingConfig;if(vb7&&vb7.pairs)for(var MyX=g.T(vb7.pairs),PZW=MyX.next();!PZW.done;PZW=MyX.next()){var N7l=PZW.value,aiy=N7l.videoItag;$y[aiy]||($y[aiy]=[]);$y[aiy].push(N7l.audioItag)}}for(var ZV7={},Yb0=g.T(bfX),LhS=Yb0.next();!LhS.done;LhS=Yb0.next()){var m69=LhS.value;ZV7[m69.itag]=m69.bitrate}for(var glW=[],KuX=g.T(bfX), h$l=KuX.next();!h$l.done;h$l=KuX.next()){var NU=h$l.value,Ty={itag:NU.itag,type:NU.mimeType,url:NU.url,bitrate:NU.bitrate,width:NU.width,height:NU.height,fps:NU.fps},UB=NU.audioTrack;if(UB){var nlv=UB.displayName;nlv&&(Ty.name=nlv,Ty.audio_track_id=UB.id,UB.audioIsDefault&&(Ty.is_default="1"))}if(NU.drmFamilies){for(var RN7=[],snZ=g.T(NU.drmFamilies),Mqy=snZ.next();!Mqy.done;Mqy=snZ.next())RN7.push(Pl[Mqy.value]);Ty.drm_families=RN7.join(",")}var J3=$y[NU.itag];if(J3&&J3.length){Ty.audio_itag=J3.join(","); var ty0=ZV7[J3[0]];ty0&&(Ty.bitrate+=ty0)}var qbZ=C38(NU);qbZ&&(Ty.eotf=qbZ);NU.audioChannels&&(Ty.audio_channels=NU.audioChannels);glW.push(g.WJ(Ty))}this.hlsFormats=glW.join(",")}var NP0=hi.licenseInfos;if(NP0&&NP0.length>0){for(var EYv={},ewS=g.T(NP0),Zf9=ewS.next();!Zf9.done;Zf9=ewS.next()){var l10=Zf9.value,kVW=l10.drmFamily,HIl=l10.url;kVW&&HIl&&(EYv[Pl[kVW]]=HIl)}this.oG=EYv}var OIX=hi.drmParams;OIX&&(this.drmParams=OIX);var Xwp=hi.dashManifestUrl;Xwp&&(this.C7=g.BJ(Xwp,{cpn:this.clientPlaybackNonce})); var uzX=hi.hlsManifestUrl;uzX&&(this.hlsvp=uzX);var AYX=hi.probeUrl;AYX&&(this.probeUrl=Lp(g.BJ(AYX,{cpn:this.clientPlaybackNonce})));var CIe=hi.serverAbrStreamingUrl;CIe&&(this.OZ=new g.N3(CIe,!0))}var pwZ=this.playerResponse.trackingParams;pwZ&&(this.c5=pwZ);var TJ=this.playerResponse.videoDetails;if(TJ){var iW=E,Yf7=TJ.videoId;Yf7&&(this.videoId=Yf7,iW.video_id||(iW.video_id=Yf7));var mR8=TJ.title;mR8&&(this.title=mR8,iW.title||(iW.title=mR8));var gbp=TJ.lengthSeconds;gbp&&(this.lengthSeconds= Number(gbp),iW.length_seconds||(iW.length_seconds=gbp));var xY7=TJ.keywords;xY7&&(this.keywords=pH8(xY7));var Kh0=TJ.channelId;Kh0&&(this.Mb=Kh0,iW.ucid||(iW.ucid=Kh0));var QMp=TJ.viewCount;QMp&&(this.rawViewCount=Number(QMp));var nbX=TJ.author;nbX&&(this.author=nbX,iW.author||(iW.author=nbX));var Wa9=TJ.shortDescription;Wa9&&(this.shortDescription=Wa9);var BDX=TJ.isCrawlable;BDX&&(this.isListed=BDX);var oYy=TJ.musicVideoType;oYy&&(this.musicVideoType=oYy);var R$Z=TJ.isLive;R$Z!=null&&(this.isLivePlayback= R$Z);if(R$Z||TJ.isUpcoming)this.isPremiere=!TJ.isLiveContent;var wwl=TJ.thumbnail;wwl&&(this.N=ZS(wwl));var zwy=TJ.isExternallyHostedPodcast;zwy&&(this.isExternallyHostedPodcast=zwy);var s78=TJ.viewerLivestreamJoinPosition;if(s78==null?0:s78.utcTimeMillis)this.Oo=SW(s78.utcTimeMillis);var dYy=JV||null,tqS=E;TJ.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);TJ.isUpcoming&&(this.isUpcoming=!0);if(TJ.isPostLiveDvr){this.Af=!0;var GVW=TJ.latencyClass;GVW&&(this.latencyClass=ais[GVW]||"UNKNOWN"); TJ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var qfl=!1;this.Yt?(this.allowLiveDvr=T8()?!0:Nb&&Hv<5?!1:!0,this.isLivePlayback=!0):TJ.isLive?(tqS.livestream="1",this.allowLiveDvr=TJ.isLiveDvrEnabled?T8()?!0:Nb&&Hv<5?!1:!0:!1,this.partnerId=27,qfl=!0):TJ.isUpcoming&&(qfl=!0);if(TJ.isLive||this.Yt){TJ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var TDv=TJ.latencyClass;TDv&&(this.latencyClass=ais[TDv]||"UNKNOWN");var iIS=TJ.liveChunkReadahead;iIS&&(this.liveChunkReadahead= iIS);var I_=dYy&&dYy.livePlayerConfig;if(I_){I_.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);I_.hasSubfragmentedWebm&&(this.y_=!0);I_.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var $YX=I_.liveExperimentalContentId;$YX&&(this.liveExperimentalContentId=Number($YX));var UYW=I_.isLiveHeadPlayable;this.L("html5_live_head_playable")&&UYW!=null&&(this.isLiveHeadPlayable=UYW)}}qfl&&(this.isLivePlayback=!0,tqS.adformat&&tqS.adformat.split("_")[1]!=="8"||this.V.push("heartbeat"))}var JY7= TJ.isPrivate;JY7!==void 0&&(this.isPrivate=nE(this.isPrivate,JY7))}if(K){var cYW=TJ||null,yYv=!1,F6=K.errorScreen;yYv=F6&&(F6.playerLegacyDesktopYpcOfferRenderer||F6.playerLegacyDesktopYpcTrailerRenderer||F6.ypcTrailerRenderer)?!0:cYW&&cYW.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(K.status);if(!yYv){this.errorCode=G$X(K.errorCode)||"auth";var c0=F6&&F6.playerErrorMessageRenderer;if(c0){this.playerErrorMessageRenderer=c0;var jMW=c0.reason;jMW&&(this.errorReason=g.Ow(jMW)); var EJy=c0.subreason;EJy&&(this.Sc=g.Ow(EJy),this.l0=EJy)}else this.errorReason=K.reason||null;var eYW=K.status;if(eYW==="LOGIN_REQUIRED")this.errorDetail="1";else if(eYW==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(eYW==="AGE_CHECK_REQUIRED"){var I17=K.errorScreen,Fay=I17&&I17.playerKavRenderer;this.errorDetail=Fay&&Fay.kavUrl?"4":"3"}else this.errorDetail=K.isBlockedInRestrictedMode?"5":"0"}}var f1l=this.playerResponse.interstitialPods;f1l&&DJ9(this,f1l);this.J0&&this.eventId&&(this.J0= td(this.J0,{ei:this.eventId}));var lNX=this.playerResponse.captions;if(lNX&&lNX.playerCaptionsTracklistRenderer)a:{var $5=lNX.playerCaptionsTracklistRenderer;this.captionTracks=[];if($5.captionTracks)for(var Vk9=g.T($5.captionTracks),khl=Vk9.next();!khl.done;khl=Vk9.next()){var UH=khl.value,Srl=AWW(UH.baseUrl);if(!Srl)break a;var Hi9={is_translateable:!!UH.isTranslatable,languageCode:UH.languageCode,languageName:UH.name&&g.Ow(UH.name),url:Srl,vss_id:UH.vssId,kind:UH.kind};Hi9.name=UH.trackName;Hi9.displayName= UH.name&&g.Ow(UH.name);this.captionTracks.push(new g.aQ(Hi9))}this.oX=$5.audioTracks||[];this.Jx=$5.defaultAudioTrackIndex||0;this.Ic=[];if($5.translationLanguages)for(var rY8=g.T($5.translationLanguages),OiX=rY8.next();!OiX.done;OiX=rY8.next()){var fv=OiX.value,na={};na.languageCode=fv.languageCode;na.languageName=g.Ow(fv.languageName);if(fv.translationSourceTrackIndices){na.translationSourceTrackIndices=[];for(var DY8=g.T(fv.translationSourceTrackIndices),XDW=DY8.next();!XDW.done;XDW=DY8.next())na.translationSourceTrackIndices.push(XDW.value)}if(fv.excludeAudioTrackIndices){na.excludeAudioTrackIndices= [];for(var bIp=g.T(fv.excludeAudioTrackIndices),uiX=bIp.next();!uiX.done;uiX=bIp.next())na.excludeAudioTrackIndices.push(uiX.value)}this.Ic.push(na)}this.cF=[];if($5.defaultTranslationSourceTrackIndices)for(var vYX=g.T($5.defaultTranslationSourceTrackIndices),AvX=vYX.next();!AvX.done;AvX=vYX.next())this.cF.push(AvX.value);this.dV=!!$5.contribute&&!!$5.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.K9=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&vtZ(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var PIZ;this.compositeLiveIngestionOffsetToken=(PIZ=this.playerResponse.playbackTracking)==null?void 0:PIZ.compositeLiveIngestionOffsetToken;var a1p;this.compositeLiveStatusToken=(a1p=this.playerResponse.playbackTracking)==null?void 0: a1p.compositeLiveStatusToken;this.L("html5_fill_default_mosaic_audio_track_id")&&xC(this)&&(this.F6.b3=qiX(this))}zg(this,E);E.queue_info&&(this.queueInfo=E.queue_info);var LaX=E.hlsdvr;LaX!=null&&(this.allowLiveDvr=Number(LaX)===1?T8()?!0:Nb&&Hv<5?!1:!0:!1);this.adQueryId=E.ad_query_id||null;this.Ce||(this.Ce=E.encoded_ad_safety_reason||null);this.NT=nE(this.NT,E.infringe||E.muted);this.sD=E.authkey;this.Xk=E.authuser;this.mutedAutoplay=nE(this.mutedAutoplay,E&&E.playmuted);this.mutedAutoplayDurationMode= sN(this.mutedAutoplayDurationMode,E&&E.muted_autoplay_duration_mode);this.xm=nE(this.xm,E&&E.mutedautoplay);var yZ=E.length_seconds;yZ&&(this.lengthSeconds=typeof yZ==="string"?SW(yZ):yZ);if(this.isAd()||this.Kz||!g.lG(g.A5(this.F6)))this.endSeconds=sN(this.endSeconds,this.Zh||E.end||E.endSeconds);else{var wgs=g.A5(this.F6),jn=this.lengthSeconds;switch(wgs){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":jn>30?this.limitedPlaybackDurationInSeconds=30:jn<30&&jn>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=jn*.2}}this.c5=t2(this.c5,E.itct);this.GR=nE(this.GR,E.is_live_destination);this.isLivePlayback=nE(this.isLivePlayback,E.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.sK();E.isUpcoming&&(this.isUpcoming=nE(this.isUpcoming,E.isUpcoming));this.Af=nE(this.Af,E.post_live_playback);this.SR&&(this.Af=!1);this.isMdxPlayback=nE(this.isMdxPlayback,E.mdx);var Iz=E.mdx_control_mode; Iz&&(this.mdxControlMode=typeof Iz==="number"?Iz:SW(Iz));this.isInlinePlaybackNoAd=nE(this.isInlinePlaybackNoAd,E.is_inline_playback_no_ad);this.jE=sN(this.jE,E.reload_count);this.reloadReason=t2(this.reloadReason,E.reload_reason);this.Yu=nE(this.Yu,E.show_content_thumbnail);this.cycToken=E.cyc||null;var hw9=Nq(E);Object.keys(hw9).length>0&&(this.N=hw9);this.h0=t2(this.h0,E.vvt);this.mdxEnvironment=t2(this.mdxEnvironment,E.mdx_environment);E.source_container_playlist_id&&(this.sourceContainerPlaylistId= E.source_container_playlist_id);E.serialized_mdx_metadata&&(this.serializedMdxMetadata=E.serialized_mdx_metadata);this.Jh=E.osig;this.eventId||(this.eventId=E.eventid);this.osid||(this.osid=E.osid);this.playlistId=t2(this.playlistId,E.list);E.index&&(this.playlistIndex=this.playlistIndex===void 0?sN(0,E.index):sN(this.playlistIndex,E.index));this.vx=E.pyv_view_beacon_url;this.pP=E.pyv_quartile25_beacon_url;this.nP=E.pyv_quartile50_beacon_url;this.kJ=E.pyv_quartile75_beacon_url;this.Vk=E.pyv_quartile100_beacon_url; var Mky=E.session_data;!this.w4&&Mky&&(this.w4=mn(Mky,"&").feature);this.isFling=sN(this.isFling?1:0,E.is_fling)===1;this.vnd=sN(this.vnd,E.vnd);this.forceAdsUrl=t2(this.forceAdsUrl,E.force_ads_url);this.mY=t2(this.mY,E.ctrl);this.bV=t2(this.bV,E.ytr);this.e0=E.ytrcc;this.Ts=E.ytrexp;this.IX=E.ytrext;this.f0=t2(this.f0,E.adformat);this.tT=t2(this.tT,E.attrib);this.slotPosition=sN(this.slotPosition,E.slot_pos);this.breakType=E.break_type;this.Zc=nE(this.Zc,E.ssrt);this.videoId=E7(E)||this.videoId; this.J=t2(this.J,E.vss_credentials_token);this.gJ=t2(this.gJ,E.vss_credentials_token_type);this.JS=nE(this.JS,E.audio_only);this.R4=nE(this.R4,E.aac_high);this.T6=nE(this.T6,E.prefer_low_quality_audio);this.A4=nE(this.A4,E.uncap_inline_quality);this.L("html5_enable_qoe_cat_list")?E.qoe_cat&&(this.rJ=this.rJ.concat(E.qoe_cat.split(","))):this.Jr=t2(this.Jr,E.qoe_cat);this.xe=nE(this.xe,E.download_media);var NDl=E.prefer_gapless;this.j=NDl!=null?nE(this.j,NDl):this.j?this.j:this.F6.preferGapless&&this.F6.supportsGaplessShorts(); xkS(this.playerResponse)&&this.V.push("ad");var ZIe=E.adaptive_fmts;ZIe&&(this.adaptiveFormats=ZIe,this.wH("adpfmts",{},!0));var Yr8=E.allow_embed;Yr8&&(this.allowEmbed=Number(Yr8)===1);var mY9=E.backgroundable;mY9&&(this.backgroundable=Number(mY9)===1);var gYe=E.autonav;gYe&&(this.isAutonav=Number(gYe)===1);var Ka0=E.autoplay;Ka0&&(this.vG=this.QA=Number(Ka0)===1);var nYZ=E.iv_load_policy;nYZ&&(this.annotationsLoadPolicy=RL(this.annotationsLoadPolicy,nYZ,CT));var RwW=E.cc_lang_pref;RwW&&(this.captionsLanguagePreference= t2(RwW,this.captionsLanguagePreference));var sM0=E.cc_load_policy;sM0&&(this.VE=RL(this.VE,sM0,CT));var tkv;this.deviceCaptionsOn=(tkv=E.device_captions_on)!=null?tkv:void 0;var qr9;this.Po=(qr9=E.device_captions_lang_pref)!=null?qr9:"";var Eje;this.z6=(Eje=E.viewer_selected_caption_langs)!=null?Eje:[];var e38=E.cached_load;e38&&(this.Nl=nE(this.Nl,e38));if(E.dash==="0"||E.dash===0||E.dash===!1)this.De=!0;var lMp=E.dashmpd;lMp&&(this.C7=g.BJ(lMp,{cpn:this.clientPlaybackNonce}));var kP8=E.delay;kP8&& (this.dC=SW(kP8));var CqW=this.Zh||E.end;if(this.bY?CqW!=null:CqW!=void 0)this.clipEnd=sN(this.clipEnd,CqW);var Hn8=E.fmt_list;Hn8&&(this.I8=Hn8);E.heartbeat_preroll&&this.V.push("heartbeat");this.iL=-Math.floor(Math.random()*10);this.mN=-Math.floor(Math.random()*40);var OnS=E.is_listed;OnS&&(this.isListed=nE(this.isListed,OnS));var XP7=E.is_private;XP7&&(this.isPrivate=nE(this.isPrivate,XP7));var ueZ=E.is_dni;ueZ&&(this.r$=nE(this.r$,ueZ));var AFe=E.dni_color;AFe&&(this.Al=t2(this.Al,AFe));var Cfv= E.pipable;Cfv&&(this.pipable=nE(this.pipable,Cfv));this.Qp=(this.hx=this.pipable&&this.F6.RU)&&!this.F6.showMiniplayerButton;var pPX=E.paid_content_overlay_duration_ms;pPX&&(this.paidContentOverlayDurationMs=SW(pPX));var xiy=E.paid_content_overlay_text;xiy&&(this.paidContentOverlayText=xiy);var Qqy=E.url_encoded_fmt_stream_map;Qqy&&(this.UJ=Qqy);var W5v=E.hls_formats;W5v&&(this.hlsFormats=W5v);var BoS=E.hlsvp;BoS&&(this.hlsvp=BoS);var Fo=E.live_start_walltime;Fo&&(this.Vw=typeof Fo==="number"?Fo: SW(Fo));var fw=E.live_manifest_duration;fw&&(this.UA=typeof fw==="number"?fw:SW(fw));var oj9=E.player_params;oj9&&(this.playerParams=oj9);var wPv=E.partnerid;wPv&&(this.partnerId=sN(this.partnerId,wPv));var z3S=E.probe_url;z3S&&(this.probeUrl=Lp(g.BJ(z3S,{cpn:this.clientPlaybackNonce})));var pDX=E.pyv_billable_url;pDX&&Gwp(pDX)&&(this.gV=pDX);var xKv=E.pyv_conv_url;xKv&&Gwp(xKv)&&(this.rZ=xKv);xIe(this,E);this.startSeconds>0?this.L("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.K9|| this.HJ||E.start||E.startSeconds)&&this.wH("lss",{css:this.startSeconds,pcss:this.K9,iss:this.HJ,ps:E.start||void 0,pss:E.startSeconds||void 0}):this.In=this.startSeconds=sN(this.startSeconds,this.K9||this.HJ||E.start||E.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var dip=E.live_utc_start;if(dip!=null)this.liveUtcStartSeconds=Number(dip);else{var QeW=this.startSeconds;QeW&&isFinite(QeW)&&QeW>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var GPy=E.utc_start_millis;GPy&&(this.liveUtcStartSeconds=Number(GPy)*.001)}var To7=E.stream_time_start_millis;To7&&(this.dO=Number(To7)*.001);var WPZ=this.HJ||E.start;(this.bY?WPZ==null||Number(E.resume)===1:WPZ==void 0||E.resume=="1")||this.isLivePlayback||(this.clipStart=sN(this.clipStart,WPZ));var in9=E.url_encoded_third_party_media;in9&&(this.Vh=nF(in9));var BWX=E.ypc_offer_button_formatted_text;if(BWX){var $iX=JSON.parse(BWX);this.Ym=$iX!=null?$iX:null;this.Ou=BWX}var Ui9= E.ypc_offer_button_text;Ui9&&(this.xA=Ui9);var JFe=E.ypc_offer_description;JFe&&(this.YZ=JFe);var cFe=E.ypc_offer_headline;cFe&&(this.h5=cFe);var yFe=E.ypc_full_video_message;yFe&&(this.HQ=yFe);var jqe=E.ypc_offer_id;jqe&&(this.T2=jqe);var IM0=E.ypc_buy_url;IM0&&(this.Im=IM0);var F57=E.ypc_item_thumbnail;F57&&(this.Te=F57);var fMv=E.ypc_item_title;fMv&&(this.zd=fMv);var VRX=E.ypc_item_url;VRX&&(this.F7=VRX);var SRS=E.ypc_vid;SRS&&(this.jN=SRS);E.ypc_overlay_timeout&&(this.Xu=Number(E.ypc_overlay_timeout)); var rFS=E.ypc_trailer_player_vars;rFS&&(this.G2=KF(rFS));var DiX=E.ypc_original_itct;DiX&&(this.h$n=DiX);this.Mb=t2(this.Mb,E.ucid);this.l2=E.storyboard_spec||null;this.Jz=E.live_storyboard_spec||null;this.FN=E.iv_endscreen_url||null;this.yS=nE(this.yS,E.ypc_module);this.Dr=nE(this.Dr,E.ypc_clickwrap_module);this.yS&&this.V.push("ypc");this.Dr&&this.V.push("ypc_clickwrap");this.nE={video_id:E.video_id,eventid:E.eventid,cbrand:E.cbrand,cbr:E.cbr,cbrver:E.cbrver,c:E.c,cver:E.cver,ctheme:E.ctheme,cplayer:E.cplayer, cmodel:E.cmodel,cnetwork:E.cnetwork,cos:E.cos,cosver:E.cosver,cplatform:E.cplatform,user_age:E.user_age,user_display_image:E.user_display_image,user_display_name:E.user_display_name,user_gender:E.user_gender,csi_page_type:E.csi_page_type,csi_service_name:E.csi_service_name,enablecsi:E.enablecsi,enabled_engage_types:E.enabled_engage_types};uJ8(this,E);var bn0=E.cotn;bn0&&(this.cotn=bn0);if(UIe(this))ru(this)&&(this.isLivePlayback&&this.C7&&(this.Lw=!0),this.jR&&(this.z8=!0));else if(JWW(this))this.Lw= !0;else{var vj9,Pf0,aMp=((vj9=this.playerResponse)==null?void 0:(Pf0=vj9.streamingData)==null?void 0:Pf0.adaptiveFormats)||[];if(aMp.length>0)var w$=$Iy(this,aMp);else{var L5l=this.adaptiveFormats;if(L5l&&!ru(this)){this.F6.W.Z&&(tf=!0);var VF=hG(L5l),oJp=this.oG,h3X=this.lengthSeconds,zF0=this.isLivePlayback,z$=this.Af,SV=this.F6,db2=UPe(VF);if(zF0||z$){var MRS=SV==null?void 0:SV.experiments,Fb=new bS("",MRS,!0);Fb.sK=!0;Fb.isManifestless=!0;Fb.G=!z$;Fb.isLive=!z$;Fb.Af=z$;for(var NoZ=g.T(VF),wDW= NoZ.next();!wDW.done;wDW=NoZ.next()){var rf=wDW.value,ZnW=Lx(rf,oJp),Rr=hf(rf.url,rf.sp,rf.s),YR9=Rr.get("id");YR9&&YR9.includes("%7E")&&(Fb.V=!0);var miv=void 0,GT2=(miv=MRS)==null?void 0:miv.P5("html5_max_known_end_time_rebase"),Tv_=Number(rf.target_duration_sec)||5,iE1=Number(rf.max_dvr_duration_sec)||14400,gjv=Number(Rr.get("mindsq")||Rr.get("min_sq")||"0"),K5p=Number(Rr.get("maxdsq")||Rr.get("max_sq")||"0")||Infinity;Fb.Tg=Fb.Tg||gjv;Fb.SY=Fb.SY||K5p;var $bt=!h4(ZnW.mimeType);Rr&&Sz(Fb,new wa(Rr, ZnW,{R6:Tv_,mW:$bt,dl:iE1,Tg:gjv,SY:K5p,e9:300,Af:z$,B2:GT2}))}var njv=Fb}else{if(db2==="FORMAT_STREAM_TYPE_OTF"){var VZ=h3X;VZ=VZ===void 0?0:VZ;var D$=new bS("",SV==null?void 0:SV.experiments,!1);D$.duration=VZ||0;for(var R37=g.T(VF),zY7=R37.next();!zY7.done;zY7=R37.next()){var b1=zY7.value,dK7=Lx(b1,oJp,D$.duration),GhW=hf(b1.url,b1.sp,b1.s);if(GhW)if(dK7.streamType==="FORMAT_STREAM_TYPE_OTF")Sz(D$,new zX(GhW,dK7,"sq/0"));else{var Ub2=K0(b1.init),J26=K0(b1.index);Sz(D$,new FK(GhW,dK7,Ub2,J26))}}D$.isOtf= !0;var sqp=D$}else{var Sn=h3X;Sn=Sn===void 0?0:Sn;var rA=new bS("",SV==null?void 0:SV.experiments,!1);rA.duration=Sn||0;for(var tR7=g.T(VF),TW0=tR7.next();!TW0.done;TW0=tR7.next()){var vx=TW0.value,c2S=Lx(vx,oJp,rA.duration),y2d=K0(vx.init),jLH=K0(vx.index),qR8=hf(vx.url,vx.sp,vx.s);qR8&&Sz(rA,new FK(qR8,c2S,y2d,jLH))}sqp=rA}njv=sqp}var Ey0=njv;if(VF.length>0){var eO8=VF[0];if(this.Y().playerStyle==="hangouts-meet"&&eO8.url){var IDO=g.R0(eO8.url);this.yc=this.yc||Number(IDO.expire)}}var FVS=this.isLivePlayback&& !this.Af&&!this.SR&&!this.isPremiere;this.L("html5_live_head_playable")&&(!D7(this)&&FVS&&this.wH("missingLiveHeadPlayable",{}),this.F6.pg==="yt"&&(Ey0.J0=!0));w$=Ey0}else w$=null;this.wH("pafmts",{isManifestFilled:!!w$})}if(w$){P$(this,w$);var lLW=!0}else lLW=!1;lLW?this.enableServerStitchedDai=this.enableServerStitchedDai&&b7(this):this.C7&&(this.F6.pg==="yt"&&this.sK()&&this.L("drm_manifestless_unplugged")&&this.L("html5_deprecate_manifestful_fallback")?this.wH("deprecateMflFallback",{}):this.Lw= !0)}var iiX=E.adpings;iiX&&(this.bI=iiX?KF(iiX):null);var kA8=E.feature;kA8&&(this.VJ=kA8);var Hw7=E.referrer;Hw7&&(this.referrer=Hw7);this.clientScreenNonce=t2(this.clientScreenNonce,E.csn);this.by=sN(this.by,E.root_ve_type);this.ZR=sN(this.ZR,E.kids_age_up_mode);this.bY||E.kids_app_info==void 0||(this.kidsAppInfo=E.kids_app_info);this.bY&&E.kids_app_info!=null&&(this.kidsAppInfo=E.kids_app_info);this.Nh=nE(this.Nh,E.upg_content_filter_mode);this.unpluggedFilterModeType=sN(this.unpluggedFilterModeType, E.unplugged_filter_mode_type);var Ow8=E.unplugged_location_info;Ow8&&(this.Fy=Ow8);var X0S=E.unplugged_partner_opt_out;X0S&&(this.Ze=t2("",X0S));this.Vn=nE(this.Vn,E.disable_watch_next);this.nO=t2(this.nO,E.internal_ip_override);this.TR=!!E.is_yto_interstitial;(this.interstitials.length||this.TR)&&this.V.push("yto");var uoe=E.o$;uoe&&(this.o$=uoe);this.pg=t2(this.pg,E.csi_timer);E.watchUrl&&(this.watchUrl=E.watchUrl);var sQ=E.watch_endpoint;this.L("html5_attach_watch_endpoint_ustreamer_config")&& sQ&&$J7(this,sQ);if(sQ==null?0:sQ.ustreamerConfig)this.pF=fJ(sQ.ustreamerConfig);var A3X,CVe,p07=sQ==null?void 0:(A3X=sQ.loggingContext)==null?void 0:(CVe=A3X.qoeLoggingContext)==null?void 0:CVe.serializedContextData;p07&&(this.pf4=p07);g.qA(this.F6)&&this.F6.Ep&&(this.embedsRct=t2(this.embedsRct,E.rct),this.embedsRctn=t2(this.embedsRctn,E.rctn));E.embed_config&&(this.Q0=E.embed_config);this.zx=this.zx||!!E.pause_at_start;E.default_active_source_video_id&&(this.defaultActiveSourceVideoId=E.default_active_source_video_id)}; g.z.Y=function(){return this.F6}; g.z.L=function(E){return this.F6.L(E)}; g.z.Yg=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.z.hasSupportedAudio51Tracks=function(){var E;return!((E=this.Fr)==null||!E.ND)}; g.z.getUserAudio51Preference=function(){var E=1;iY(this.F6)&&this.L("html5_ytv_surround_toggle_default_off")?E=0:g.d3(this.F6)&&this.isLivePlayback&&this.hB()&&(E=0);var e;return(e=g.cK("yt-player-audio51"))!=null?e:E}; g.z.YB=function(){this.U7()||(this.T.G||this.T.unsubscribe("refresh",this.YB,this),this.S_(-1))}; g.z.S_=function(E){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var e=cpS(this.T,this.S0);if(e.length>0){for(var l=g.T(e),k=l.next();!k.done;k=l.next())k=k.value,k.startSecs=Math.max(k.startSecs,this.Hs()),this.L("html5_cuepoint_identifier_logging")&&k.event==="start"&&this.wH("cuepoint",{pubCue:k.identifier,segNum:E});this.publish("cuepointupdated",e,E);this.S0+=e.length;if(b7(this)&&this.F6.f7())for(e=g.T(e),l=e.next();!l.done;l=e.next())l=l.value,this.wH("cuepoint",{segNum:E,event:l.event, startSecs:l.startSecs,id:l.identifier.slice(-16)}),l.event==="start"&&(l=l.startSecs,this.F9.start=this.je,this.F9.end=l+3)}}}; g.z.M4=function(){this.U7()||(this.loading=!1,this.publish("dataloaded"))}; g.z.hB=function(){return this.E4!==void 0?this.E4:this.E4=!!this.oG||!!this.T&&bQ(this.T)}; g.z.Ho=function(E){var e=this;if(this.U7())return UN();this.qM=this.gH=this.Z=null;zz(this,"html5_high_res_logging_always")&&(this.F6.f0=!0);return IpZ(this,E).then(void 0,function(){return fp7(e,E)}).then(void 0,function(){return VjS(e)}).then(void 0,function(){return rWl(e)})}; g.z.wN=function(E){this.Z=E;FA9(this,this.Z.getAvailableAudioTracks());if(this.Z){E=g.T(this.Z.videoInfos);for(var e=E.next();!e.done;e=E.next()){e=e.value;var l=e.containerType;l!==0&&(this.mF[l]=e.id)}}E=this.getAvailableAudioTracks();E=E.concat(this.Hy);for(e=0;e0?this.Z.getAvailableAudioTracks():this.zT||[]:[]}; g.z.getAudioTrack=function(){var E=this;if(this.S&&!bp(this.S)){var e=g.Gd(this.getAvailableAudioTracks(),function(H){return H.id===E.S.id}),l; if(!e&&((l=this.S.gC)==null?0:l.id)){var k=this.S.gC.id;e=g.Gd(this.getAvailableAudioTracks(),function(H){return H.gC.id===k}); this.wH("nat",{id:this.S.id,track:!!e})}return e||this.Hy}if(this.zT){if(!this.Gd)for(e=g.T(this.zT),l=e.next();!l.done;l=e.next())if(l=l.value,l.gC.getIsDefault()){this.Gd=l;break}return this.Gd||this.Hy}return this.Hy}; g.z.getPlayerResponse=function(){return this.playerResponse}; g.z.getWatchNextResponse=function(){return this.fg}; g.z.getHeartbeatResponse=function(){return this.m9}; g.z.f_=function(){return this.watchUrl?this.watchUrl:this.F6.getVideoUrl(this.videoId)}; g.z.VT=function(){return!!this.T&&(wf0(this.T)||zK7(this.T)||dPX(this.T))}; g.z.getEmbeddedPlayerResponse=function(){return this.Wq}; g.z.Jd=function(){return(this.eventLabel||this.F6.h0)==="shortspage"}; g.z.isAd=function(){return!!this.adFormat}; g.z.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.z.Z0=function(){var E,e,l;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((E=this.playerResponse)==null?0:(e=E.playerConfig)==null?0:(l=e.daiConfig)==null?0:l.ssaEnabledPlayback)}; g.z.vD=function(){return this.zn}; g.z.dE=function(){return this.yS||this.RF}; g.z.ya=function(){return zz(this,"html5_samsung_vp9_live")}; g.z.wH=function(E,e,l){this.publish("ctmp",E,e,l)}; g.z.wK=function(E,e,l){this.publish("ctmpstr",E,e,l)}; g.z.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.z.getGetAdBreakContext=function(E,e){E=E===void 0?NaN:E;e=e===void 0?NaN:e;var l={isSabr:f9(this)},k,H=(k=this.getHeartbeatResponse())==null?void 0:k.adBreakHeartbeatParams;H&&(l.adBreakHeartbeatParams=H);if(this.L("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(E)&&!isNaN(e)){e=E-e;for(var O in this.T.T)if(k=this.T.T[O],k.info.qK()||k.info.A2())if(k=k.index,k.isLoaded()){O=k.GS(e);k=k.pY(O)+e-k.getStartTime(O);this.wH("gabc",{t:E.toFixed(3),mt:e.toFixed(3),sg:O,igt:k.toFixed(3)}); l.livePlaybackPosition={utcTimeMillis:""+(k*1E3).toFixed(0)};break}}return l}; g.z.isEmbedsShortsMode=function(E,e){if(!g.qA(this.F6)||(this.F6.Qd||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||e)return!1;var l,k;return!!(((l=this.embeddedPlayerConfig)==null?0:(k=l.embeddedPlayerFlags)==null?0:k.isShortsExperienceEligible)&&E.width<=E.height)}; g.z.Gz=function(){g.sJ.prototype.Gz.call(this);this.bI=null;delete this.Br;delete this.accountLinkingConfig;delete this.T;this.Z=this.m9=this.playerResponse=this.fg=null;this.UJ=this.adaptiveFormats="";delete this.botguardData;this.b3=this.suggestions=this.gY=null;this.sabrContextUpdates.clear()};var x0Z={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Qi0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},CA7={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},XSW={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"},ARy={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},u18={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"},pSl={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.d(UT,g.a);g.z=UT.prototype;g.z.handleExternalCall=function(E,e,l){var k=this.state.j[E],H=this.state.N[E],O=k;if(H)if(l&&vu(l,e$_))O=H;else if(!k)throw Error('API call from an untrusted origin: "'+l+'"');this.logApiCall(E,l);if(O){l=!1;k=g.T(e);for(H=k.next();!H.done;H=k.next())if(String(H.value).includes("javascript:")){l=!0;break}l&&g.UJ(Error('Dangerous call to "'+E+'" with ['+e+"]."));return O.apply(this,e)}throw Error('Unknown API method: "'+E+'".');}; g.z.logApiCall=function(E,e,l){var k=this.app.Y();k.Td&&!this.state.V.has(E)&&(this.state.V.add(E),g.E0("webPlayerApiCalled",{callerUrl:k.loaderUrl,methodName:E,origin:e||void 0,playerStyle:k.playerStyle||void 0,embeddedPlayerMode:k.Qd,errorCode:l}))}; g.z.publish=function(E){var e=g.LS.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[E].concat(g.Be(e)));if(E==="videodatachange"||E==="resize"||E==="cardstatechange")this.state.G.publish.apply(this.state.G,[E].concat(g.Be(e))),this.state.S.publish.apply(this.state.S,[E].concat(g.Be(e)))}; g.z.MD=function(E){var e=g.LS.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[E].concat(g.Be(e)));this.state.G.publish.apply(this.state.G,[E].concat(g.Be(e)))}; g.z.kU=function(E){var e=g.LS.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[E].concat(g.Be(e)));this.state.G.publish.apply(this.state.G,[E].concat(g.Be(e)));this.state.S.publish.apply(this.state.S,[E].concat(g.Be(e)))}; g.z.c7=function(E){var e=g.LS.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[E].concat(g.Be(e)));this.state.G.publish.apply(this.state.G,[E].concat(g.Be(e)));this.state.S.publish.apply(this.state.S,[E].concat(g.Be(e)));this.state.W.publish.apply(this.state.W,[E].concat(g.Be(e)))}; g.z.L=function(E){return this.app.Y().L(E)}; g.z.Gz=function(){if(this.state.element){var E=this.state.element,e;for(e in this.state.T)this.state.T.hasOwnProperty(e)&&(E[e]=null);this.state.element=null}g.a.prototype.Gz.call(this)};g.d(IF,g.GE);IF.prototype.publish=function(E){var e=g.LS.apply(1,arguments);if(this.W.has(E))return this.W.get(E).push(e),!0;var l=!1;try{for(e=[e],this.W.set(E,e);e.length;)l=g.GE.prototype.publish.call.apply(g.GE.prototype.publish,[this,E].concat(g.Be(e.shift())))}finally{this.W.delete(E)}return l};g.d(FD,g.a);FD.prototype.Gz=function(){this.W.dispose();this.S.dispose();this.G.dispose();this.Z.dispose();this.V=this.T=this.N=this.j=this.J=void 0};var G4l=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.d(Vm,UT);g.z=Vm.prototype;g.z.getApiInterface=function(){return Array.from(this.state.J)}; g.z.v1=function(E,e){this.state.W.subscribe(E,e)}; g.z.Z07=function(E,e){this.state.W.unsubscribe(E,e)}; g.z.getPlayerState=function(E){return lHW(this.app,E)}; g.z.kL=function(){return lHW(this.app)}; g.z.BRD=function(E,e,l){Dt(this)&&(ZI(this.app,!0,1),gU(this.app,E,e,l,1))}; g.z.getCurrentTime=function(E,e,l){var k=this.getPlayerState(E);if(this.app.getAppState()===2&&k===5){var H;return((H=this.app.getVideoData())==null?void 0:H.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&k===0?PB(this.app,E):E?this.app.getCurrentTime(E,e,l):this.app.getCurrentTime(E)}; g.z.Yr=function(){return this.app.getCurrentTime(1)}; g.z.d9=function(){var E=this.app.pY(1);return isNaN(E)?this.getCurrentTime(1):E}; g.z.r6=function(){return this.app.getDuration(1)}; g.z.S4=function(E,e){E=g.Lk(Math.floor(E),0,100);isFinite(E)&&be(this.app,{volume:E,muted:this.isMuted()},e)}; g.z.vv0=function(E){this.S4(E,!1)}; g.z.QO=function(E){be(this.app,{muted:!0,volume:this.getVolume()},E)}; g.z.hMD=function(){this.QO(!1)}; g.z.al=function(E){rh(this.app)&&!this.L("embeds_enable_emc3ds_muted_autoplay")||be(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},E)}; g.z.y2z=function(){rh(this.app)&&this.L("embeds_enable_emc3ds_muted_autoplay")||this.al(!1)}; g.z.getPlayerMode=function(){var E={};this.app.getVideoData().r$&&(E.pfp={enableIma:this.app.mU().allowImaMonetization,autoplay:At(this.app.mU()),mutedAutoplay:this.app.mU().mutedAutoplay});return E}; g.z.z0=function(){var E=this.app.getPresentingPlayerType();if(E===2&&!this.app.rR()){var e=au(this.app.SE());if(!(kdS(e)||g.qA(this.app.Y())&&g.m(this.app.yd().getPlayerState(),1024))||HWW(e))return}(e=this.app.lP().Xx)?e.playVideo():this.app.playVideo(E)}; g.z.a07=function(){ZI(this.app,!0,1);this.z0()}; g.z.pauseVideo=function(E){var e=this.app.getPresentingPlayerType();if(e!==2||this.app.rR()||kdS(au(this.app.SE()))){var l=this.app.lP().Xx;l?l.pauseVideo():this.app.pauseVideo(e,E)}}; g.z.XGR=function(){var E=this.app,e=!1;E.dH.Wh&&(E.eR.publish("pageTransition"),e=!0);E.stopVideo(e)}; g.z.clearVideo=function(){}; g.z.getAvailablePlaybackRates=function(){var E=this.app.Y();return E.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(E.S?E.ancestorOrigins[0]:window.location.origin)||E.Gd?F_S:E.supportsVarispeedExtendedFeatures?fG2:E.L("web_remix_allow_up_to_3x_playback_rate")&&g.Ik(E)?VM_:bm:[1]}; g.z.getPlaybackQuality=function(E){return(E=this.app.hS(E))?E.getPlaybackQuality():"unknown"}; g.z.NRM=function(){}; g.z.getAvailableQualityLevels=function(E){return(E=this.app.hS(E))?(E=g.o7(E.x6(),function(e){return e.quality}),E.length&&(E[0]==="auto"&&E.shift(),E=E.concat(["auto"])),E):[]}; g.z.N_=function(){return this.getAvailableQualityLevels(1)}; g.z.SU=function(){return this.Rw()}; g.z.XI=function(){return 1}; g.z.getVideoLoadedFraction=function(E){return this.app.getVideoLoadedFraction(E)}; g.z.Rw=function(){return this.getVideoLoadedFraction()}; g.z.hM=function(){return 0}; g.z.getSize=function(){var E=this.app.zz().getPlayerSize();return{width:E.width,height:E.height}}; g.z.setSize=function(){this.app.zz().resize()}; g.z.loadVideoById=function(E,e,l,k){if(!E)return!1;E=fb(E,e,l);return this.app.loadVideoByPlayerVars(E,k)}; g.z.MP=function(E,e,l){E=this.loadVideoById(E,e,l,1);ZI(this.app,E,1)}; g.z.cueVideoById=function(E,e,l,k){E=fb(E,e,l);this.app.cueVideoByPlayerVars(E,k)}; g.z.bx=function(E,e,l){this.cueVideoById(E,e,l,1)}; g.z.loadVideoByUrl=function(E,e,l,k){E=d07(E,e,l);return this.app.loadVideoByPlayerVars(E,k)}; g.z.Ha=function(E,e,l){E=this.loadVideoByUrl(E,e,l,1);ZI(this.app,E,1)}; g.z.cueVideoByUrl=function(E,e,l,k){E=d07(E,e,l);this.app.cueVideoByPlayerVars(E,k)}; g.z.Ru=function(E,e,l){this.cueVideoByUrl(E,e,l,1)}; g.z.Qw=function(){var E=this.app.Y();if(E.kt)return"";var e=this.app.mU(),l=void 0;e.isLivePlayback||(l=Math.floor(this.app.getCurrentTime(1)));return E.getVideoUrl(e.videoId,this.getPlaylistId()||void 0,l)}; g.z.vr=function(){return this.app.getDebugText()}; g.z.getVideoEmbedCode=function(){var E=this.app.Y();if(E.kt)return"";var e=this.app.mU();return E.getVideoEmbedCode(e.isPrivate?"":e.title,this.app.mU().videoId,this.app.zz().getPlayerSize(),this.getPlaylistId()||void 0)}; g.z.Yh=function(E,e,l){return pX8(this.app,E,e,l)}; g.z.removeCueRange=function(E){return this.app.g0(E)}; g.z.loadPlaylist=function(E,e,l,k){this.app.loadPlaylist(E,e,l,k)}; g.z.Rb=function(E,e,l,k){this.loadPlaylist(E,e,l,k);ZI(this.app,!0,1)}; g.z.cuePlaylist=function(E,e,l,k){this.app.cuePlaylist(E,e,l,k)}; g.z.nextVideo=function(E,e){this.app.nextVideo(E,e)}; g.z.igg=function(){this.nextVideo();ZI(this.app,!0,1)}; g.z.previousVideo=function(E){this.app.previousVideo(E)}; g.z.Y1R=function(){this.previousVideo();ZI(this.app,!0,1)}; g.z.playVideoAt=function(E){this.app.playVideoAt(E)}; g.z.OYd=function(E){this.playVideoAt(E);ZI(this.app,!0,1)}; g.z.setShuffle=function(E){var e=this.app.getPlaylist();e&&e.setShuffle(E)}; g.z.setLoop=function(E){var e=this.app.getPlaylist();e&&(e.loop=E)}; g.z.TZ=function(){var E=this.app.getPlaylist();if(!E)return null;for(var e=[],l=0;l=400)if(E=this.mU(),this.U.Y().L("client_respect_autoplay_switch_button_renderer"))E=!!E.autoplaySwitchButtonRenderer;else{var e,l,k,H;E=!!((e=E.getWatchNextResponse())==null?0:(l=e.contents)==null?0:(k=l.twoColumnWatchNextResults)==null?0:(H=k.autoplay)==null?0:H.autoplay)!==!1}if(E)this.T||(this.T=!0,this.Yw(this.T),this.U.Y().L("web_player_autonav_toggle_always_listen")||ZRX(this), e=this.mU(),this.qZ(e.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T=!1,this.Yw(this.T),!this.U.Y().L("web_player_autonav_toggle_always_listen"))for(this.U.Y().L("web_player_autonav_toggle_always_listen"),e=g.T(this.G),l=e.next();!l.done;l=e.next())this.xN(l.value)}; g.z.qZ=function(E){m0y(this)?this.isChecked=E!==1:((E=E!==1)||(g.VC(),E=g.QT("web_autonav_allow_off_by_default")&&!g.St(0,141)&&g.LF("AUTONAV_OFF_BY_DEFAULT")?!1:!g.St(0,140)),this.isChecked=E);YDe(this)}; g.z.onClick=function(){this.isChecked=!this.isChecked;this.U.Nt(this.isChecked?2:1);YDe(this);if(m0y(this)){var E=this.mU().autoplaySwitchButtonRenderer;this.isChecked&&(E==null?0:E.onEnabledCommand)?this.U.MD("innertubeCommand",E.onEnabledCommand):!this.isChecked&&(E==null?0:E.onDisabledCommand)&&this.U.MD("innertubeCommand",E.onDisabledCommand)}this.U.logClick(this.element)}; g.z.getValue=function(){return this.isChecked}; g.z.mU=function(){return this.U.getVideoData(1)};g.d(g2X,WI);g.d(i4,g.CV);i4.prototype.onClick=function(){this.enabled&&($l(this,!this.checked),this.publish("select",this.checked))}; i4.prototype.getValue=function(){return this.checked}; i4.prototype.setEnabled=function(E){(this.enabled=E)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var cI=["en-CA","en","es-MX","fr-CA"];g.d(fV,i4);fV.prototype.qD=function(E){E?this.T||(this.wC.Qf(this),this.T=!0):this.T&&(this.wC.BG(this),this.T=!1);this.T&&$l(this,ho7())}; fV.prototype.S=function(){g.ed(this.element,"ytp-menuitem-highlight-transition-enabled")}; fV.prototype.Z=function(E){var e=ho7();E!==e&&(e=g.VC(),DZ(190,E),DZ(192,!0),e.save(),this.U.MD("cinematicSettingsToggleChange",E))}; fV.prototype.Gz=function(){this.T&&this.wC.BG(this);i4.prototype.Gz.call(this)};g.d(V7,WI);V7.prototype.updateCinematicSettings=function(E){this.T=E;var e;(e=this.menuItem)==null||e.qD(E);this.api.publish("onCinematicSettingsVisibilityChange",E)};g.d(tbe,WI);g.d(Sy,WI);Sy.prototype.setCreatorEndscreenVisibility=function(E){var e;(e=N8(this.api.SE()))==null||e.Yw(E)}; Sy.prototype.T=function(E){function e(k){k==="creatorendscreen"&&(k=N8(l.api.SE()))&&k.MH5(l.hideButton)} var l=this;this.hideButton=E;this.events.C(this.api,"modulecreated",e);e("creatorendscreen")};g.d(r7,i4);r7.prototype.S=function(E){this.Z(E?1:0)}; r7.prototype.G=function(){var E=this.hasDrcAudioTrack(),e=this.T()===1&&E;$l(this,e);this.setEnabled(E)}; r7.prototype.Gz=function(){this.wC.BG(this);i4.prototype.Gz.call(this)};g.d(Dd,WI);Dd.prototype.getDrcUserPreference=function(){return this.T}; Dd.prototype.setDrcUserPreference=function(E){g.Jw("yt-player-drc-pref",E,31536E3);E!==this.T&&(this.T=E,this.updateEnvironmentData(),this.G()&&this.api.eN())}; Dd.prototype.updateEnvironmentData=function(){this.api.Y().JS=this.T===1}; Dd.prototype.G=function(){var E,e,l=(E=this.api.getVideoData())==null?void 0:(e=E.Z)==null?void 0:e.T;if(!l)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.L("mta_drc_mutual_exclusion_removal")){var k,H,O=(k=this.api.xd())==null?void 0:(H=k.gC)==null?void 0:H.id;return LY(l,function(X){var A;return X.audio.T&&((A=X.gC)==null?void 0:A.id)===O})}return LY(l,function(X){var A; return((A=X.audio)==null?void 0:A.T)===!0})};g.d(b4,WI);b4.prototype.onVideoDataChange=function(){var E=this,e=this.api.getVideoData();this.api.Qy("embargo",1);var l=e==null?void 0:e.wQ.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(l==null?0:l.length)?En0(this,l.filter(function(k){return qDl(E,k)})):(e==null?0:e.cueRanges)&&En0(this,e.cueRanges.filter(function(k){return qDl(E,k)}))}; b4.prototype.G=function(E){return E.embargo!==void 0}; b4.prototype.Gz=function(){WI.prototype.Gz.call(this);this.T={}};g.d(vI,WI); vI.prototype.addEmbedsConversionTrackingParams=function(E){var e=this.api.Y(),l=e.widgetReferrer,k=e.C7,H=this.T,O="",X=e.getWebPlayerContextConfig();X&&(O=X.embedsIframeOriginParam||"");l.length>0&&(E.embeds_widget_referrer=l);k.length>0&&(E.embeds_referring_euri=k);e.S&&O.length>0&&(E.embeds_referring_origin=O);X&&X.embedsFeature&&(E.feature=X.embedsFeature);H.length>0&&(e.L("embeds_web_enable_lite_experiment_control_arm_logging")?H.unshift(28572):g.lG(g.A5(e))&&H.unshift(159628),e=H.join(","),e= g.vg()?e:g.c1(e,4),E.source_ve_path=e);this.T.length=0};g.d(eeZ,WI);g.d(lJ0,WI);g.d(PI,g.a);PI.prototype.Gz=function(){g.a.prototype.Gz.call(this);this.T=null;this.G&&this.G.disconnect()};g.d(H_p,WI);g.d(an,g.Z);an.prototype.show=function(){g.Z.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; an.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)}; an.prototype.onVideoDataChange=function(E){var e,l,k=(e=this.api.getVideoData())==null?void 0:(l=e.getPlayerResponse())==null?void 0:l.playabilityStatus;k&&(e=O_8(k),g.m(this.api.getPlayerStateObject(),128)||E==="dataloaderror"||!e?(this.G=0,this.stopTimer(),this.hide()):(E=(e.remainingTimeSecs||0)*1E3,E>0&&(this.show(),this.updateValue("label",ai(e.label)),uvy(this,E))))}; an.prototype.Gz=function(){this.stopTimer();g.Z.prototype.Gz.call(this)};g.d(A9l,WI);g.d(LV,g.Z);LV.prototype.onClick=function(){this.eR.logClick(this.element);this.eR.MD("onFullerscreenEduClicked")}; LV.prototype.qD=function(){this.eR.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.eR.logVisibility(this.element,this.eR.isFullscreen()&&!this.T)};g.d(hL,WI);hL.prototype.updateFullerscreenEduButtonSubtleModeState=function(E){var e;(e=this.T)!=null&&(g.k_(e.element,"ytp-fullerscreen-edu-button-subtle",E),E&&!e.G&&(e.eR.L("player_tooltip_data_title_killswitch")?e.element.setAttribute("title","Role para ver detalhes"):e.element.setAttribute("data-tooltip-title","Role para ver detalhes"),ht(e.eR,e.element,e),e.G=!0))}; hL.prototype.updateFullerscreenEduButtonVisibility=function(E){var e;(e=this.T)!=null&&(e.T=E,e.qD())};g.d(CQZ,g.Z);g.d(QJ9,WI);g.d(M6,WI);M6.prototype.getSphericalProperties=function(){var E=g.nb(this.api.SE());return E?E.getSphericalProperties():{}}; M6.prototype.setSphericalProperties=function(E){if(E){var e=g.nb(this.api.SE());e&&e.setSphericalProperties(E,!0)}};g.d(N6,WI);g.z=N6.prototype;g.z.createClientVe=function(E,e,l,k){this.api.createClientVe(E,e,l,k===void 0?!1:k)}; g.z.createServerVe=function(E,e,l){this.api.createServerVe(E,e,l===void 0?!1:l)}; g.z.setTrackingParams=function(E,e){this.api.setTrackingParams(E,e)}; g.z.logClick=function(E,e){this.api.logClick(E,e)}; g.z.logVisibility=function(E,e,l){this.api.logVisibility(E,e,l)}; g.z.hasVe=function(E){return this.api.hasVe(E)}; g.z.destroyVe=function(E){this.api.destroyVe(E)};var Bk9=!1;Yl.prototype.setPlaybackRate=function(E){this.playbackRate=Math.max(1,E)}; Yl.prototype.getPlaybackRate=function(){return this.playbackRate};Rn.prototype.sT=function(E){var e=g.vR(E.info.T.info,this.W5.sK),l=E.info.A0+this.S,k=E.info.startTime*1E3;if(this.policy.gH)try{k=this.policy.gH?g.UZ(E)*1E3:E.info.startTime*1E3}catch(X){Math.random()>.99&&this.logger&&(k=u1(E.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:E.info.T_(),encodedDataView:g.Jz(k,4)})),k=E.info.startTime*1E3}var H=E.info.clipId,O=this.policy.gH?g.eKy(E)*1E3:E.info.duration*1E3;this.policy.gH&&(k<0||O<0)&&(this.logger&&(this.logger({missingSegInfo:E.info.T_(), startTimeMs:k,durationMs:O}),this.policy.HJ||(k<0&&(k=E.info.startTime*1E3),O<0&&(O=E.info.duration*1E3))),this.policy.HJ&&(k<0&&(k=E.info.startTime*1E3),O<0&&(O=E.info.duration*1E3)));return{formatId:e,A0:l,startTimeMs:k,clipId:H,rr:O}}; Rn.prototype.Y6=function(E){this.timestampOffset=E};sb.prototype.seek=function(E,e){E!==this.targetTime&&(this.seekCount=0);this.targetTime=E;var l=this.videoTrack.G,k=this.audioTrack.G,H=this.audioTrack.Jg,O=S1y(this,this.videoTrack,E,this.videoTrack.Jg,e);e=S1y(this,this.audioTrack,this.policy.je?E:O,H,e);E=Math.max(E,O,e);this.S=!0;this.W5.isManifestless&&(jJe(this,this.videoTrack,l),jJe(this,this.audioTrack,k));return E}; sb.prototype.isSeeking=function(){return this.S}; sb.prototype.HD=function(E){this.G=E}; var V$X=2/24;var b_Z=0;g.z=AY.prototype;g.z.Fw=function(){this.V=this.now();Ix0(this.Zx,this.V);this.TX.Fw()}; g.z.M7=function(E,e){var l=this.policy.G?(0,g.dE)():0;CI(this,E,e);E-this.J<10&&this.G>0||this.SA(E,e);this.TX.M7(E,e);this.policy.G&&(E=(0,g.dE)()-l,this.GX+=E,this.Yt=Math.max(E,this.Yt))}; g.z.SA=function(E,e){var l=(E-this.J)/1E3,k=e-this.Z;this.cQ||(NA(this.Zx,l,k),this.lz(l,k));this.J=E;this.Z=e}; g.z.PV=function(){this.Qd&&vny(this);this.TX.PV()}; g.z.Ch=function(E){this.Qd||(this.Qd=this.W-this.Wh+E,this.C7=this.W,this.hN=this.j)}; g.z.oI=function(E,e){E=E===void 0?this.j:E;e=e===void 0?this.W:e;this.G>0||(this.N=E,this.G=e,this.pg=this.isActive=!0)}; g.z.V4=function(){return this.xg||2}; g.z.Vl=function(){}; g.z.DY=function(){var E,e={rn:this.requestNumber,rt:(this.j-this.T).toFixed(),lb:this.W,stall:(1E3*this.S).toFixed(),ht:(this.V-this.T).toFixed(),elt:(this.N-this.T).toFixed(),elb:this.G,d:(E=this.h0)==null?void 0:E.rG()};this.url&&WTW(e,this.url);this.policy.G&&(e.mph=this.Yt.toFixed(),e.tph=this.GX.toFixed());e.ulb=this.fg;e.ult=this.kt;return e}; g.z.now=function(){return(0,g.dE)()}; g.z.deactivate=function(){this.isActive&&(this.isActive=!1)};g.d(xY,AY);g.z=xY.prototype;g.z.DY=function(){var E=AY.prototype.DY.call(this);E.pb=this.ZH;E.pt=(1E3*this.rH).toFixed();E.se=this.bY;return E}; g.z.fF=function(){var E=this.TX;this.gH||(this.gH=E.fF?E.fF():1);return this.gH}; g.z.GW=function(){return this.Wu?this.fF()!==1:!1}; g.z.PM=function(E,e,l){if(!this.jE){this.jE=!0;if(!this.cQ){CI(this,E,e);this.SA(E,e);var k=this.fF();this.bY=l;if(!this.cQ)if(k===2){k=E-this.N0)||QD(this,k,e),this.G>0&&h1(this.Zx,e,this.S));E=(E-this.T)/ 1E3||.01;this.policy.N&&!(this.G>0)||LJ(this.Zx,E,this.Z,aJ9(this),this.TY)}this.deactivate()}}; g.z.Zq=function(E,e,l){l&&(this.gH=2);E<0&&this.xg&&(E=this.xg);e?this.R4+=E:this.jR+=E}; g.z.V4=function(){return this.jR||this.R4||AY.prototype.V4.call(this)}; g.z.SA=function(E,e){var l=(E-this.J)/1E3,k=e-this.Z,H=this.fF();this.isActive?H===1&&((k>0||this.policy.W)&&(l>.2||k<1024)?(this.S+=l,k>0&&l>.2&&QD(this,this.Lz?l:.05,k),this.dC=!0):k>0&&(QD(this,l,k),this.dC=!0)):e&&e>=this.policy.T&&this.oI(E,e);AY.prototype.SA.call(this,E,e)}; g.z.q3=function(E){if(!this.cQ){CI(this,E,this.W);var e=(E-this.T)/1E3;this.fF()!==2&&this.G>0&&(this.S+=(E-this.J)/1E3,h1(this.Zx,this.Z,this.S));LJ(this.Zx,e,this.Z,aJ9(this),this.TY,!0);E=(E-this.J)/1E3;NA(this.Zx,E,0);this.lz(E,0)}}; g.z.oI=function(E,e){E=E===void 0?this.j:E;e=e===void 0?this.W:e;if(!(this.G>0)&&(AY.prototype.oI.call(this,E,e),this.fF()===1)){e=(this.V-this.T)/1E3;var l=(E-this.V)/1E3;this.Wu&&Ww(this,this.now());this.In||this.cQ||(this.xg&&(l=Math.max(0,l-this.xg)),E=this.Zx,E.N.CI(1,e),E.h0.CI(1,l))}}; g.z.jd=function(){this.Wu&&Ww(this,this.now());return this.J0}; g.z.aW=function(){var E;if(E=this.Z>this.y5)E=(E=this.Z)?E>=this.policy.T:!1;return E}; g.z.kP=function(){return this.b3}; g.z.XT=function(E){E=E===void 0?this.now():E;if(this.Wu){Ww(this,E);if(this.gH?this.GW():this.SR!==this.c5){var e=this.c5;if(E0?l+E:l+Math.max(E,e)}; g.z.Pe=function(){return this.now()-this.N}; g.z.Iv=function(){return(this.Z-this.G)*1E3/this.Pe()||0}; g.z.B4=function(){return this.N};Bw.prototype.feed=function(E){l1(this.T,E);this.iq()}; Bw.prototype.iq=function(){if(this.S){if(!this.T.totalLength)return;var E=this.T.split(this.Z-this.G),e=E.AI;E=E.Cz;if(!this.TX.Ch(this.S,e,this.G,this.Z))return;this.G+=e.totalLength;this.T=E;this.G===this.Z&&(this.S=this.Z=this.G=void 0)}for(;;){var l=0;E=g.T(Nkl(this.T,l));e=E.next().value;l=E.next().value;l=g.T(Nkl(this.T,l));E=l.next().value;l=l.next().value;if(e<0||E<0)break;if(!(l+E<=this.T.totalLength)){if(!(this.TX.Ch&&l+1<=this.T.totalLength))break;l=this.T.split(l).Cz;this.TX.Ch(e,l,0, E)&&(this.S=e,this.G=l.totalLength,this.Z=E,this.T=new eV([]));break}E=this.T.split(l).Cz.split(E);l=E.Cz;this.TX.zB(e,E.AI);this.T=l}}; Bw.prototype.dispose=function(){this.T=new eV};g.z=oM.prototype;g.z.aE=function(){return 0}; g.z.xa=function(){return null}; g.z.Q8=function(){return null}; g.z.t9=function(){return this.state>=1}; g.z.isComplete=function(){return this.state>=3}; g.z.lH=function(){return this.state===5}; g.z.onStateChange=function(){}; g.z.eJ=function(E){var e=this.state;this.state=E;this.onStateChange(e);this.callback&&this.callback(this,e)}; g.z.Ca=function(E){E&&this.state=this.xhr.HEADERS_RECEIVED}; g.z.getResponseHeader=function(E){try{return this.xhr.getResponseHeader(E)}catch(e){return""}}; g.z.GO=function(){return+this.getResponseHeader("content-length")}; g.z.G8=function(){return this.G}; g.z.aB=function(){return this.status>=200&&this.status<300&&!!this.G}; g.z.Qm=function(){return this.T.totalLength>0}; g.z.vE=function(){var E=this.T;this.T=new eV;return E}; g.z.Xg=function(){return this.T}; g.z.abort=function(){this.U7=!0;this.xhr.abort()}; g.z.aI=function(){return!0}; g.z.ew=function(){return this.Z}; g.z.K0=function(){return""};g.z=gne.prototype;g.z.getResponseHeader=function(E){return E==="content-type"?this.T.get("type"):""}; g.z.abort=function(){}; g.z.A9=function(){return!0}; g.z.GO=function(){return this.range.length}; g.z.G8=function(){return this.loaded}; g.z.aB=function(){return!!this.loaded}; g.z.Qm=function(){return!!this.G.totalLength}; g.z.vE=function(){var E=this.G;this.G=new eV;return E}; g.z.Xg=function(){return this.G}; g.z.aI=function(){return!0}; g.z.ew=function(){return!!this.error}; g.z.K0=function(){return this.error};g.z=nnv.prototype;g.z.start=function(E){var e={credentials:"include",cache:"no-store"};Object.assign(e,this.j);this.S&&(e.signal=this.S.signal);E=new Request(E,e);fetch(E).then(this.V,this.onError).then(void 0,qz)}; g.z.onDone=function(){this.U7()||this.TX.PV()}; g.z.getResponseHeader=function(E){return this.responseHeaders?this.responseHeaders.get(E):null}; g.z.A9=function(){return!!this.responseHeaders}; g.z.G8=function(){return this.G}; g.z.GO=function(){return+this.getResponseHeader("content-length")}; g.z.aB=function(){return this.status>=200&&this.status<300&&!!this.G}; g.z.Qm=function(){return!!this.T.totalLength}; g.z.vE=function(){var E=this.T;this.T=new eV;return E}; g.z.Xg=function(){return this.T}; g.z.U7=function(){return this.W}; g.z.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.S&&this.S.abort();this.W=!0}; g.z.aI=function(){return!0}; g.z.ew=function(){return this.J}; g.z.K0=function(){return this.errorMessage};g.z=ReW.prototype;g.z.onDone=function(){if(!this.U7){this.status=this.xhr.status;try{this.response=this.xhr.response,this.G=this.response.byteLength}catch(E){}this.T=!0;this.TX.PV()}}; g.z.Pl=function(){this.xhr.readyState===2&&this.TX.Fw()}; g.z.ev=function(E){this.U7||(this.status=this.xhr.status,this.T||(this.G=E.loaded),this.TX.M7((0,g.dE)(),E.loaded))}; g.z.A9=function(){return this.xhr.readyState>=2}; g.z.getResponseHeader=function(E){try{return this.xhr.getResponseHeader(E)}catch(e){return g.UJ(Error("Could not read XHR header "+E)),""}}; g.z.GO=function(){return+this.getResponseHeader("content-length")}; g.z.G8=function(){return this.G}; g.z.aB=function(){return this.status>=200&&this.status<300&&this.T&&!!this.G}; g.z.Qm=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.z.vE=function(){var E=this.response;this.response=void 0;return new eV([new Uint8Array(E)])}; g.z.Xg=function(){return new eV([new Uint8Array(this.response)])}; g.z.abort=function(){this.U7=!0;this.xhr.abort()}; g.z.aI=function(){return!1}; g.z.ew=function(){return!1}; g.z.K0=function(){return""};g.d(dD,g.a);dD.prototype.bH=function(){if(!this.OJ.length)return[];var E=this.OJ;this.OJ=[];this.Z=g.wr(E).info;return E}; dD.prototype.pW=function(){return this.OJ}; dD.prototype.Gz=function(){g.a.prototype.Gz.call(this);this.T=null;this.OJ.length=0;this.H5.length=0;this.Z=null};g.d(TV,g.a);g.z=TV.prototype; g.z.hhz=function(){if(!this.U7()){var E=(0,g.dE)(),e=!1;if(this.policy.Ep){E=E-(this.timing.G>0?this.timing.N:this.timing.T)-this.timing.V4()*1E3;var l=Ps(iI(this),!1);E>=2E3*l?e=!0:E>=this.policy.aU*l&&(this.T=this.policy.DG)}else if(this.timing.G>0){if(this.W){this.policy.hN&&(this.T=0);return}var k=this.timing.kP();this.timing.XT();var H=this.timing.kP();H-k>=this.policy.JS*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(H-k).toFixed(0)}),e=this.T>=5):this.T=0}else{var O=E- this.timing.jd(); this.policy.DG&&O>0&&(this.T+=1);e=Ps(iI(this),!1)*this.policy.H2;(e=O>e*1E3)&&this.logger.debug(function(){return"Elbow late by "+O.toFixed(3)})}this.T>0&&this.TX.f1(); e?this.MB():this.G.start()}}; g.z.MB=function(){this.S=!0;this.TX.BY();this.lastError="net.timeout";Ur(this)}; g.z.canRetry=function(E){var e=iI(this);E=E?this.policy.Im:this.policy.UE;return e.timedOut0&&(e=AP(e.T,0),E.ubyte=e,l===1&&e===0&&(E.b248180278=!0))}this.Uc&&(E.rc=this.policy.PJ?this.Uc:this.Uc.toString());this.policy.yf&&this.cP&&(E.tr=this.cP);E.itag=this.info.H5[0].T.info.itag;E.ml=""+ +this.info.H5[0].T.Sv();E.sq=""+this.info.H5[0].A0;this.Xy&&(E.ifi=""+ +gk(this.info.XS.G));this.Uc!==410&&this.Uc!==500&&this.Uc!==503||(E.fmt_unav="true");var k;(l=this.errorMessage||((k=this.xhr)==null?void 0: k.K0()))&&(E.msg=l);this.ZK&&(E.smb="1");this.info.isDecorated()&&(E.sdai="1");return E}; g.z.Sd=function(){return LT7(this.timing)}; g.z.K0=function(){return this.xhr.K0()||""}; g.z.aW=function(){return this.isComplete()||this.timing.aW()}; g.z.M7=function(){!this.U7()&&this.xhr&&(this.Uc=this.xhr.status,this.policy.Ic&&this.I3&&this.Xs(!1),this.Uw()?this.Ca(2):!this.kD&&this.aW()&&(this.Ca(),this.kD=!0))}; g.z.Fw=function(){if(!this.U7()&&this.xhr){if(!this.YA&&this.xhr.A9()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var E=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.YA=((0,g.dE)()-E)/1E3}this.xhr.A9()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.uB&&!kYX()&&g.Jw("yt-player-headers-readable",!0,2592E3);E=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var e=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),l;(l=this.v3)==null||l.stop();this.CF=E||this.CF; this.x7=e||this.x7}}; g.z.PV=function(){var E=this.xhr;if(!this.U7()&&E){this.Uc=E.status;E=this.L1(E);if(this.policy.yf){var e;(e=this.v3)==null||e.stop()}E===5?Ur(this.uN):this.eJ(E);this.uN.G.stop()}}; g.z.L1=function(E){var e=this;FX0(this);if(JY(this.uN,this.xhr.status,this.vR?this.timing.pg||this.Oa:this.xhr.aB(),!1,this.yu))return 5;var l="";cw(this.uN,this.xhr)&&(l=loX(this.uN,this.xhr));if(l)return vs(iI(this.uN)),this.info.xu(this.Xy,l),3;l=E.G8();if(this.gf){this.Xs(!0);FX0(this);if(JY(this.uN,this.xhr.status,this.timing.pg||this.Oa,!1,this.yu))return 5;if(!this.CT){if(this.Oa)return vs(iI(this.uN)),3;this.uN.lastError="net.closed";return 5}}else{if(JY(this.uN,this.xhr.status,this.xhr.aB(), !1,this.yu))return 5;var k=this.info.Z;if(k&&k!==l||E.ew())return this.uN.lastError="net.closed",5;this.Xs(!0)}k=Z_Z(this)?E.getResponseHeader("X-Bandwidth-Est"):0;if(E=Z_Z(this)?E.getResponseHeader("X-Bandwidth-Est3"):0)this.J1=!0,this.policy.X2&&(k=E);Ez7(this.uN,l,k?Number(k):0,this.info.H5[0].type===5);this.logger.debug(function(){var H=e.timing;return"Succeeded, rtpd="+(H.rH*1E3+H.T-Date.now()).toFixed(0)}); return 4}; g.z.canRetry=function(){this.U7();var E=this.info.isDecorated();return this.uN.canRetry(E)}; g.z.onStateChange=function(){this.isComplete()&&(this.policy.At?this.BY():this.timing.deactivate())}; g.z.MB=function(){this.uN.MB()}; g.z.f1=function(){this.callback&&this.callback(this,this.state)}; g.z.GF=function(){return this.uN.GF()}; g.z.dispose=function(){oM.prototype.dispose.call(this);this.uN.dispose();var E;(E=this.v3)==null||E.dispose();this.policy.At||this.BY()}; g.z.BY=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.z.bH=function(){if(!this.pW().length)return[];this.jL=!0;return this.I3.bH()}; g.z.Uw=function(){if(this.state<1)return!1;if(this.I3&&this.I3.OJ.length)return!0;var E;return((E=this.xhr)==null?0:E.Qm())?!0:!1}; g.z.pW=function(){this.Xs(!1);return this.I3?this.I3.pW():[]}; g.z.Xs=function(E){try{if(E||this.xhr.A9()&&this.xhr.Qm()&&!cw(this.uN,this.xhr)&&!this.Yb)this.I3||(this.I3=new dD(this.policy,this.info.H5)),this.xhr.Qm()&&(this.gf?this.gf.feed(this.xhr.vE()):GV(this.I3,this.xhr.vE(),E&&!this.xhr.Qm()))}catch(e){this.gf?yrW(this,e):g.UJ(e)}}; g.z.zB=function(E,e){switch(E){case 21:E=e.split(1).Cz;jo7(this,E);break;case 22:this.CT=!0;GV(this.I3,new eV([]),!0);break;case 43:if(E=$D(new wf(e),1))this.info.xu(this.Xy,E),this.Oa=!0;break;case 45:e=QG(new wf(e));E=e.WD;e=e.LL;E&&e&&(this.KN=E/e);break;case 44:this.Fv=YG0(new wf(e));var l,k,H;!this.timing.pg&&((l=this.Fv)==null?void 0:l.action)===4&&((k=this.Fv)==null?0:(H=k.ud)==null?0:H.vR)&&(this.vR=this.Fv.ud.vR);break;case 53:this.policy.yf&&(E=M7S(new wf(e)).rD)&&(this.v3||(this.rD=E,this.v3= new g.Nx(this.hE,E,this)),this.v3.start());break;case 60:this.l$=xn(new wf(e));break;case 58:if(E=dry(new wf(e)))this.AL=E,E.AL===3&&(this.yu=!0)}}; g.z.Ch=function(E,e,l,k){l||this.timing.Ch(k);if(E!==21)return!1;if(E=this.policy.Ic)if(E*=this.info.H5[0].T.info.Kg,e.totalLength+l!==k&&e.totalLength0)return!1;if(!this.xhr.A9())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.gf)var E=!this.info.Z;else this.xhr.GO()?E=!1:(E=this.xhr.getResponseHeader("content-type"),E=E==="audio/mp4"||E==="video/mp4"||E==="video/webm");if(!E)return!1;if(isNaN(this.info.Sr)){E=this.xhr.getResponseHeader("x-head-seqnum");var e=this.timing.policy.j?1:0;if(!E)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(E)>this.info.H5[0].A0+e)return!1}return!0}; g.z.T9=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.z.xa=function(){this.xhr&&(this.CF=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.CF}; g.z.Q8=function(){this.xhr&&(this.x7=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.x7}; g.z.tB=function(){return this.uN.tB()}; g.z.hE=function(){if(!this.U7()&&this.xhr){this.cP="heartbeat";var E=this.uN;E.T+=2;this.f1()}};g.d(rD,AY);g.z=rD.prototype;g.z.SA=function(E,e){var l=(E-this.J)/1E3,k=e-this.Z;this.G>0?k>0&&(this.SR&&(l>.2||k<1024?(this.S+=l,l>.2&&fo7(this,.05,k)):fo7(this,l,k)),this.c5&&(this.J0+=k,this.jR+=l)):e>this.policy.T&&this.oI(E,e);AY.prototype.SA.call(this,E,e)}; g.z.PM=function(E,e){CI(this,E,e);this.SA(E,e);this.SR&&(e=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.G>0&&h1(this.Zx,this.J0,this.S),E=(E-this.T)/1E3||.01,this.policy.N&&!(this.G>0)||LJ(this.Zx,E,this.Z,e,!1))}; g.z.q3=function(E){CI(this,E,this.W);var e=(E-this.J)/1E3;NA(this.Zx,e,0);this.lz(e,0);!this.SR&&this.G>0||(e=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.G>0&&(this.S+=(E-this.J)/1E3,h1(this.Zx,this.J0,this.S)),LJ(this.Zx,(E-this.T)/1E3||.01,this.Z,e,!1,!0))}; g.z.vI=function(E){E=E.GG||2147483647;(E&2)!==2&&(this.c5=!1);(E&1)===1&&(this.SR=!0)}; g.z.Cf=function(E){E=E.GG||2147483647;(E&2)===2&&(this.c5=!1);(E&1)===1&&(this.SR=!1)}; g.z.B4=function(){return this.N}; g.z.Pe=function(){var E=this.c5?this.now()-this.J:0;return Math.max(this.jR*1E3+E,1)}; g.z.Iv=function(){return this.J0*1E3/this.Pe()}; g.z.oI=function(E,e){E=E===void 0?this.j:E;e=e===void 0?this.W:e;this.G>0||(AY.prototype.oI.call(this,E,e),e=this.Zx,E=(E-this.V)/1E3,e.N.CI(1,(this.V-this.T)/1E3),e.h0.CI(1,E))}; g.z.Vl=function(E){this.R4=E}; g.z.DY=function(){var E=AY.prototype.DY.call(this);E.rbw=this.Iv();E.rbe=+this.c5;E.gbe=+this.SR;E.ackt=(this.R4-this.T).toFixed();return E}; g.z.XT=function(){}; g.z.kP=function(){return NaN}; g.z.jd=function(){return this.T+this.snapshot.delay*1E3};D1.prototype.zB=function(E,e){switch(E){case 20:E=new wf(e);E={Ri:Gr(E,1),videoId:$D(E,2),itag:Gr(E,3),lmt:Gr(E,4),xtags:$D(E,5),xx:Gr(E,6),jc:Tr(E,8),L9:Gr(E,9),D5R:Gr(E,10),startMs:Gr(E,11),durationMs:Gr(E,12),mX:Gr(E,14),timeRange:UP(E,15,ekS),C_:Gr(E,16),Bp:Gr(E,17),clipId:$D(E,1E3)};this.Q5(E);break;case 21:this.xR(e,!1);break;case 22:this.dY(e);break;case 31:E=yF(e,rUX);this.TL(E);break;case 52:E=yF(e,NY0);this.N4(E);break;default:this.mE(E,e)}}; D1.prototype.Q5=function(){}; D1.prototype.mE=function(){};g.d(bI,D1);g.z=bI.prototype; g.z.mE=function(E,e){switch(E){case 35:this.IU(e);break;case 44:this.HI(e);break;case 43:this.LQ(e);break;case 53:this.UI(e);break;case 55:E=new wf(e);UP(E,1,gky);UP(E,2,Rke);break;case 56:this.M$();break;case 57:this.lE(e);break;case 42:this.wW(e);break;case 45:this.kY(e);break;case 59:this.N$(e);break;case 51:this.YF(e);break;case 49:this.vI(e);break;case 50:this.Cf(e);break;case 47:this.zC(e);break;case 58:this.SF(e);break;case 61:this.TX.Vf.Vl((0,g.dE)());break;case 66:this.Re(e);break;case 46:this.RL(e); break;case 67:this.onSnackbarMessage(e);break;case 69:this.b8(e)}}; g.z.YF=function(E){E=new wf(E);E={MbR:cx(E,1,uQ),gM3:cx(E,2,uQ)};this.TX.YF(E)}; g.z.N$=function(E){var e=new wf(E);E=JP(e,1);var l=JP(e,2);e=JP(e,3);this.TX.N$(E,l,e)}; g.z.kY=function(E){E=QG(new wf(E));this.TX.kY(E)}; g.z.zC=function(E){E=yF(E,vk9);this.TX.zC(E)}; g.z.wW=function(E){E=new wf(E);E={videoId:$D(E,1),formatId:UP(E,2,uQ),endTimeMs:Gr(E,3),wdM:Gr(E,4),mimeType:$D(E,5),u7:UP(E,6,jwX),indexRange:UP(E,7,jwX),JG:UP(E,8,Ij7)};this.TX.wW(E)}; g.z.lE=function(E){E=Rke(new wf(E));this.TX.lE(E)}; g.z.M$=function(){this.TX.M$()}; g.z.IU=function(E){E=Dre(new wf(E));this.TX.IU(E)}; g.z.UI=function(E){E=M7S(new wf(E));this.TX.UI(E)}; g.z.HI=function(E){E=YG0(new wf(E));this.TX.HI(E)}; g.z.LQ=function(E){E={redirectUrl:$D(new wf(E),1)};this.TX.LQ(E)}; g.z.xR=function(E){var e=AP(E,0);if(E.totalLength!==1){E=E.split(1).Cz;var l=this.G[e]||null;l&&NY(this.TX.P7,e,l,E)}}; g.z.dY=function(E){E=AP(E,0);var e=this.G[E]||null;e&&this.TX.dY(E,e)}; g.z.N4=function(E){this.TX.N4(E)}; g.z.Q5=function(E){var e=E.Ri,l=E.jc,k=E.xx,H=E.Bp,O=E.C_,X=E.L9,A=E.startMs,C=E.durationMs,p=E.timeRange,x=E.mX,Q=E.clipId,W=Yz(E);E=w12.has(yp[""+E.itag]);this.G[e]=W;this.TX.Zq(W,E,{Ri:e,jc:!!l,xx:k!=null?k:-1,L9:X!=null?X:-1,startMs:A!=null?A:-1,durationMs:C!=null?C:-1,mX:x,Bp:H,C_:O,clipId:Q,timeRange:p})}; g.z.vI=function(E){E={GG:Gr(new wf(E),1)};this.TX.vI(E)}; g.z.Cf=function(E){E={GG:Gr(new wf(E),1)};this.TX.Cf(E)}; g.z.TL=function(E){this.TX.TL(E)}; g.z.SF=function(E){E=dry(new wf(E));this.TX.SF(E)}; g.z.Re=function(E){E={zO:UP(new wf(E),1,L6y)};this.TX.Re(E)}; g.z.onSnackbarMessage=function(E){E=Gr(new wf(E),1);this.TX.onSnackbarMessage(E)}; g.z.b8=function(E){E={Oy:cx(new wf(E),1,yU7)};this.TX.b8(E)}; g.z.RL=function(E){E=new wf(E);E={reloadPlaybackParams:UP(E,1,zkp),dS:Tr(E,2)};this.TX.RL(E)};g.d(vw,g.a);g.z=vw.prototype;g.z.m1=function(){return Array.from(this.jJ.keys())}; g.z.Sb=function(E){E=this.jJ.get(E);var e=E.OJ;E.PY+=e.totalLength;E.OJ=new eV;return e}; g.z.Du=function(E){return this.jJ.get(E).Du}; g.z.jB=function(E){return this.jJ.get(E).jB}; g.z.Zq=function(E,e,l,k){this.jJ.get(E)||b0X(this,E,e);e=this.jJ.get(E);if(this.W5){E=PHX(this,E,l);if(k)for(var H=g.T(E),O=H.next();!O.done;O=H.next()){O=O.value;var X=k;O.kt=X;O.startTime+=X;O.S+=X;O.J+=X}vzX(this,l.Ri,e,E)}else l.jc?e.Q$=l.mX:e.lM.push(l),e.eI.push(l)}; g.z.eC=function(E){var e;return((e=this.jJ.get(E))==null?void 0:e.H5)||[]}; g.z.Ca=function(){for(var E=g.T(this.jJ.values()),e=E.next();!e.done;e=E.next())e=e.value,e.I0&&(e.ev&&e.ev(),e.I0=!1)}; g.z.dY=function(E,e){this.logger.debug(function(){return"[onMediaEnd] formatId: "+e}); var l=this.jJ.get(e);Pw?l&&!l.Du&&(l.Wn.get(E)?l.Wn.get(E).tU=!0:l.Wn.set(E,{data:new eV,Y8:0,tU:!0}),l.jB=!0):l&&!l.jB&&(l.jB=!0)}; g.z.bH=function(E){if(Pw){var e=this.jJ.get(E);if(e)for(var l=g.T(e.Wn),k=l.next();!k.done;k=l.next()){var H=g.T(k.value);k=H.next().value;H=H.next().value;var O=e.pZ.get(k);if(qN(O[0])){if(!H.tU)continue;var X=H.data,A=0,C=[];O=g.T(O);for(var p=O.next();!p.done;p=O.next()){p=p.value;var x=p.Z,Q=kD(X,A,x);A+=x;C.push(new TX(p,Q))}e.wI.push.apply(e.wI,g.Be(C))}else if(H.data.totalLength>0||!O[0].range&&H.tU)X=void 0,A=O[0],C=H.Y8,O=H.data,A.range||(X=H.tU),X=new TX(I90(A,A.G+C,O.totalLength,X),O), H.Y8+=X.info.Z,e.wI.push(X);e.Wn.get(k).data=new eV;H.tU&&e.Wn.delete(k)}E=this.jJ.get(E);if(!E)return[];e=E.wI;E.wI=[];l=g.T(e);for(k=l.next();!k.done;k=l.next())E.PY+=k.value.info.Z;return e||[]}l=(e=this.jJ.get(E))==null?void 0:e.I3;if(!l)return[];this.Xs(E,l);return l.bH()}; g.z.Uw=function(E){if(Pw)return MY(this,E);var e,l,k;return!!((l=(e=this.jJ.get(E))==null?void 0:e.I3)==null?0:(k=l.pW())==null?0:k.length)||MY(this,E)}; g.z.Xs=function(E,e){for(;MY(this,E);){var l=this.Sb(E);var k=E;k=this.jJ.get(k).Du&&!hY(this,k);GV(e,l,k&&DNv(this,E))}}; g.z.Gz=function(){g.a.prototype.Gz.call(this);for(var E=g.T(this.jJ.keys()),e=E.next();!e.done;e=E.next())aM(this,e.value);var l;if((l=this.CY)==null?0:l.KM)for(E=g.T(this.jJ.values()),e=E.next();!e.done;e=E.next())e=e.value,e.Wn.clear(),e.pZ.clear(),e.wI.length=0,e.H5.length=0,e.eI.length=0,e.lM.length=0;this.jJ.clear()}; var Pw=!1;g.d(Z1,g.a);g.z=Z1.prototype;g.z.M7=function(){!this.U7()&&this.xhr&&(this.Xs(!1),ld(this.TX,this))}; g.z.Fw=function(){}; g.z.PV=function(){if(!this.U7()&&this.xhr){var E=this.L1();E===5?Ur(this.uN):this.eJ(E);this.uN.G.stop();var e;(e=this.LW)==null||e.stop()}}; g.z.L1=function(){var E="";cw(this.uN,this.xhr)&&(E=loX(this.uN,this.xhr));if(E)return this.info.XS.xu(this.Xy,E),3;this.Xs(!0);if(JY(this.uN,this.xhr.status,this.xhr.aB(),this.info.cg(),this.yu))return 5;if(this.sQ)return 3;Ez7(this.uN,this.xhr.G8(),0,this.cg());this.policy.iN&&dtv(this.TX);return 4}; g.z.Xs=function(E){var e=this.xhr;if((E||!cw(this.uN,this.xhr))&&e.Qm()){E=e.vE();var l=E.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+l}); this.gf.feed(E)}}; g.z.zB=function(E,e){this.xhr.aI()&&E===21&&Nty(this);this.cL.zB(E,e)}; g.z.Ch=function(E,e,l,k){l||(this.Vf.Ch(k),this.policy.l2&&E===21&&Nty(this));if(E!==21)return!1;this.Vf.pg=!0;E=e.totalLength;l||(this.DJ=AP(e,0),e=e.split(1).Cz);var H=this.policy.wQ,O=this.cL.G[this.DJ],X=this.W5.Z.get(O);if(H&&X&&(H*=X.info.Kg,E+l!==k&&E0){this.policy.Ep&&this.uN.G.stop();E=this.Vf.Pe();e=this.Vf.Iv();var l=Z09(this,E);if(!(e>l.XE||l.yV>0&&this.info.RE()>l.yV)){this.x_=(0,g.dE)();var k;(k=this.LW)==null||k.stop();this.policy.iN&&(k=this.TX,E={PB:Math.round(e*E/1E3),pB:E},k.policy.iN&&(k.h0=E,k.hL++));this.MB()}}}}; g.z.MB=function(){this.uN.MB()}; g.z.HI=function(E){this.TX.HI(E,this.S7())}; g.z.LQ=function(E){this.sQ=!0;this.info.XS.xu(this.Xy,E.redirectUrl)}; g.z.vI=function(E){this.Vf instanceof rD&&this.Vf.vI(E)}; g.z.Cf=function(E){this.Vf instanceof rD&&this.Vf.Cf(E)}; g.z.wW=function(E){var e=E.formatId,l=Yz({itag:e.itag,lmt:e.lmt,xtags:e.xtags}),k,H,O=new gt(((k=E.u7)==null?void 0:k.first)||0,((H=E.u7)==null?void 0:H.Og)||0),X,A;k=new gt(((X=E.indexRange)==null?void 0:X.first)||0,((A=E.indexRange)==null?void 0:A.Og)||0);this.W5.Z.get(l)||(l=E.JG||{},l.mimeType=E.mimeType,l.itag=e.itag,l.lastModified=""+(e.lmt||0),l.xtags=e.xtags,E=this.W5,e=hf(""),l=ac(l,null),Sz(E,new FK(e,l,O,k)))}; g.z.kY=function(E){this.TX.kY(E,this.S7())}; g.z.onSnackbarMessage=function(E){if(this.policy.pO)this.TX.onSnackbarMessage(E)}; g.z.b8=function(E){this.policy.Fr&&this.TX.b8(E,this.S7())}; g.z.TL=function(E){this.vW=E;this.VD=(0,g.dE)();this.TX.TL(E)}; g.z.N$=function(E,e,l){this.TX.N$(E,e,l)}; g.z.lE=function(E){E.scope===2&&(this.Jj=E);this.TX.lE(E)}; g.z.M$=function(){this.yp=!0;this.TX.M$()}; g.z.YF=function(E){this.policy.Xu&&this.TX.YF(E)}; g.z.zC=function(E){this.TX.zC(E,this.S7())}; g.z.SF=function(E){E.AL===3&&(this.yu=!0);this.TX.SF(E)}; g.z.Re=function(E){this.TX.Re(E)}; g.z.RL=function(E){this.TX.RL(E)}; g.z.canRetry=function(){this.U7();return this.uN.canRetry(!1)}; g.z.dispose=function(){if(!this.U7()){g.a.prototype.dispose.call(this);this.uN.dispose();var E;(E=this.LW)==null||E.dispose();this.eJ(-1);this.BY()}}; g.z.eJ=function(E){this.state=E;ld(this.TX,this)}; g.z.cg=function(){return this.info.cg()}; g.z.hv=function(){return this.yp}; g.z.kc=function(){return this.Jj}; g.z.Zq=function(E,e,l){l.clipId&&(this.clipId=l.clipId);this.policy.G&&!e&&(this.OP=l.L9);this.P7.Zq(E,e,l,0);if(this.policy.vy&&this.vW&&this.Vf instanceof xY){var k=this.vW.CV;this.Vf.Zq(l.durationMs/1E3,e,k>0&&l.L9+1>=k)}this.P7.jJ.get(E).FY=!0}; g.z.dY=function(E,e){this.P7.dY(E,e)}; g.z.N4=function(E){this.requestIdentifier=E}; g.z.bH=function(E){return this.P7.bH(E)}; g.z.eC=function(E){return this.P7.eC(E)}; g.z.Uw=function(E){return this.P7.Uw(E)}; g.z.m1=function(){return this.P7.m1()}; g.z.fF=function(){return 1}; g.z.S7=function(){return this.Vf.requestNumber}; g.z.m$=function(){return this.requestIdentifier}; g.z.cN=function(){return this.Xy.cN()}; g.z.CC=function(){this.BY()}; g.z.BY=function(){this.Vf.deactivate();var E;(E=this.xhr)==null||E.abort()}; g.z.isComplete=function(){return this.state>=3}; g.z.e3=function(){return this.state===3}; g.z.lH=function(){return this.state===5}; g.z.BO=function(){return this.state===4}; g.z.TA=function(){return this.isComplete()}; g.z.t9=function(){return this.state>=1}; g.z.GF=function(){return this.policy.hN?this.uN.GF():0}; g.z.f1=function(){this.policy.hN&&ld(this.TX,this)}; g.z.OY=function(){return CY7(this.info)}; g.z.tB=function(){return this.uN.tB()}; g.z.Jl=function(){var E=kSX(this.uN);Object.assign(E,xq7(this.info));E.req="sabr";E.rn=this.S7();var e;if((e=this.xhr)==null?0:e.status)E.rc=this.policy.PJ?this.xhr.status:this.xhr.status.toString();var l;(e=(l=this.xhr)==null?void 0:l.K0())&&(E.msg=e);this.x_&&(l=Z09(this,this.x_-this.Vf.B4()),E.letm=l.jD,E.mrbps=l.XE,E.mram=l.yV);return E};Yt8.prototype.tick=function(E,e){this.ticks[E]=e?window.performance.timing.navigationStart+e:(0,g.dE)()};g.d(ma,g.sJ);g.z=ma.prototype; g.z.Hp=function(E,e,l,k){if(this.policy.HQ&&this.policy.G){var H=E.TN||null;H?(Xl9(this,E.A0,sr(this,E.startTime,E.A0),{TN:H,A0:E.A0,US:!!e,qK:l},this.Z),k&&this.Z&&this.Z.Hl(E.A0,E.startTime,this.G,(e==null?void 0:e.T)||[],(e==null?void 0:e.G)||[],(e==null?void 0:e.S)||[],l,(e==null?void 0:e.t5)||0,(e==null?void 0:e.Z)||void 0)):this.G===1&&KI(this,5,"noad")}else{var O=!1;this.policy.G&&(O=l?this.Qd===E.A0:this.SR===E.A0);if(this.Z&&k&&!O){k=[];O=[];var X=[],A=void 0,C=0;e&&(k=e.T,O=e.G,X=e.S,A= e.Z,C=e.t5,this.wH("sdai",{sq:E.A0,ssvicpns:k.join("."),ssvid:O.join(".")}));this.policy.G&&(l?this.Qd=E.A0:this.SR=E.A0);this.Z.Hl(E.A0,E.startTime,this.G,k,O,X,l,C,A)}this.policy.G?l&&(this.G===1&&KI(this,5,"noad"),E.A0!==((H=this.T)==null?void 0:H.A0)&&(kXe(this,E,e,l),isNaN(E.startTime)||Hx8(this,E.A0,sr(this,E.startTime,E.A0),!!e,this.Z))):l&&kXe(this,E,e)}}; g.z.uc=function(E,e,l){var k=this.videoTrack.T.index.Oz()<=e;this.T={TN:E,A0:e,US:l};k&&gD(this,E,e)}; g.z.c_=function(){this.Z&&this.Z.c_()}; g.z.wH=function(E,e,l){(E!=="sdai"||this.policy.jN||(l===void 0?0:l))&&this.loader.wH(E,e)}; g.z.Ow=function(E,e){var l=this.videoTrack.T.index.GS(E);if(l>=0){var k;var H=((k=e.L5.B0(l,2))==null?void 0:k.nX)||"";if(this.policy.G||H)return e.XC(E,l),nI(this.loader,E,E,l),this.wH("sdai",{cmskpad:1,t:E.toFixed(3),sq:l}),!0}this.wH("sdai",{cmskpad:0,t:E.toFixed(3),sq:l});return!1};g.z=plW.prototype;g.z.Zv=function(E,e,l){E=E||this.T;this.G.has(E)||(this.wH("sldai",{setadconfig:"noentry",cid:E}),this.G.set(E,{event:"unknown",startTimeSecs:0,s1:0,V6:[],f2:Date.now()}));var k=this.G.get(E);k?(k.qp=6,k.V6.push(l),k.LP=e):this.wH("sldai",{setadconfig:"notfound",cid:E})}; g.z.b8=function(E,e){var l;if(!((((l=E.Oy)==null?void 0:l.length)||0)<=0)&&(E=E.Oy[0],E.TN)){var k,H,O,X,A,C;l=new XB(((k=E.TN)==null?void 0:k.yl)||0,((H=E.TN)==null?void 0:H.Ly0)||0,((O=E.TN)==null?void 0:O.gr)||"",((X=E.TN)==null?void 0:X.identifier)||"",Qc7(((A=E.TN)==null?void 0:A.event)||0),(((C=E.TN)==null?void 0:C.yl)||0)*1E3);xc7(this,l,e)}}; g.z.G9=function(E,e){E!==void 0&&this.e2(E);if(this.T&&(E=this.G.get(this.T),E!=null&&E.LP)){var l={BB:E.V6,rA:fJ(E.LP||"")||void 0,cuepointId:this.T};E.w3&&(l.ol=E.w3);e&&(l.Hm=SW(e.split(";")[0]),l.z1=e.split(";")[1]||"");E.qp&&(l.qp=E.qp);return l}}; g.z.XC=function(E,e){this.e2(E);var l=this.G.get(this.T);l?(this.wH("ssskipad",{cid:this.T,sn:e,mt:E.toFixed(3)}),l.w3=e):this.wH("ssskipadfail",{cid:this.T,sn:e,mt:E.toFixed(3)})}; g.z.O2=function(){for(var E=g.T(this.G.values()),e=E.next();!e.done;e=E.next())e.value.w3=NaN}; g.z.e2=function(E,e){e&&(this.Z=e);if(this.T&&(e=this.G.get(this.T))&&e.startTimeSecs<=E&&E<=e.startTimeSecs+e.s1)return;this.T="";e=g.T(this.G.entries());for(var l=e.next();!l.done;l=e.next()){var k=g.T(l.value);l=k.next().value;k=k.next().value;var H=void 0,O=void 0,X=void 0;if(((H=k)==null?void 0:H.startTimeSecs)<=E&&E<=((O=k)==null?void 0:O.startTimeSecs)+((X=k)==null?void 0:X.s1)){this.T=l;break}}};g.d(lf,g.a);lf.prototype.Ii=function(E,e,l){l=l===void 0?{}:l;this.policy.xE=eL(E,l,this.S,e===void 0?!1:e)};uf.prototype.M3=function(E){var e=this;if(this.policy.EN){var l=new Set(E);l.size===this.h0.size&&[].concat(g.Be(l)).every(function(k){return e.h0.has(k)})||(this.loader.wH("lwnmow",{itagDenylist:[].concat(g.Be(E)).join(",")}),this.loader.MC(!!l.size),this.V=-1,this.h0=l,AF(this,this.T),this.J0=!0)}}; uf.prototype.Ii=function(E,e,l){l=l===void 0?{}:l;var k=this.policy.xE;this.W.Ii(E,e===void 0?!1:e,l);if(k!==this.policy.xE){AF(this,this.T);Cn(this);var H,O;k>this.policy.xE&&((H=this.Z)==null?0:Vp(H.info))&&((O=this.nextVideo)==null||!Vp(O.info))&&(this.pg=!0)}};WP.prototype.Y6=function(E){this.timestampOffset=E;this.flush()}; WP.prototype.flush=function(){if(this.T.pos>0){var E={a:this.track.A2(),u:this.T.rG(),pd:Math.round(this.S),ad:Math.round(this.Z)},e=this.G;if(e){var l=e.T.info;E.itag=l.itag;l.T&&(E.xtags=l.T);E.sq=e.A0;E.st=e.startTime;E.sd=e.duration;this.track.policy.W2&&(E.si=e.T_());e.W&&(E.esl=e.G+e.Z);e.UZ()&&(E.eos=1)}isNaN(this.timestampOffset)||(E.to=this.timestampOffset);var k;if(e=(k=this.track.Jg)==null?void 0:k.zX({})){for(var H in e)this.J[H]!==e[H]&&(E["sb_"+H]=e[H]);this.J=e}this.track.wH("sbu", E);this.T.reset();this.buffered=[];this.W=this.Z=this.S=0;this.timestampOffset=this.G=void 0}};oq.prototype.dispose=function(){this.kt=!0}; oq.prototype.U7=function(){return this.kt}; g.d(JF,Error);jR.prototype.skip=function(E){this.offset+=E}; jR.prototype.Zp=function(){return this.offset};g.z=scX.prototype;g.z.Lm=function(){return this.G}; g.z.Tu=function(){return this.G.length?this.G[this.G.length-1]:null}; g.z.Mw=function(){this.G=[];SR(this);fn(this)}; g.z.Sb=function(E){this.jR=this.G.shift().info;E.info.equals(this.jR)}; g.z.eC=function(){return g.o7(this.G,function(E){return E.info})}; g.z.A2=function(){return!!this.W.info.audio}; g.z.isDrm=function(){return!!this.W.info.oG}; g.z.getDuration=function(){return this.W.index.wl()};g.d(tL,oM);g.z=tL.prototype;g.z.onStateChange=function(){this.U7()&&(LI(this.P7,this.formatId),this.T.dispose())}; g.z.Jl=function(){var E=rre(this.P7,this.formatId),e;var l=((e=this.P7.jJ.get(this.formatId))==null?void 0:e.bytesReceived)||0;var k;e=((k=this.P7.jJ.get(this.formatId))==null?void 0:k.PY)||0;return{expected:E,received:l,bytesShifted:e,sliceLength:hY(this.P7,this.formatId),isAnyMediaEndReceived:this.P7.jB(this.formatId)}}; g.z.Sd=function(){return 0}; g.z.aW=function(){return!0}; g.z.bH=function(){return this.P7.bH(this.formatId)}; g.z.pW=function(){return[]}; g.z.Uw=function(){return this.P7.Uw(this.formatId)}; g.z.tB=function(){return this.lastError}; g.z.GF=function(){return 0};g.d(vP,g.a);g.z=vP.prototype;g.z.A2=function(){return!!this.T.info.audio}; g.z.Tu=function(){return this.S.Tu()}; g.z.Sb=function(E){this.S.Sb(E);var e;(e=this.N)!=null&&(e.W.add(E.info.A0),e.T=i_7(e,e.Iz,e.lj,E,e.T),e.Z=E,e.J=(0,g.dE)());this.Kg=Math.max(this.Kg,E.info.T.info.Kg||0)}; g.z.getDuration=function(){return this.T.index.wl()}; g.z.Mw=function(){Er(this);this.S.Mw()}; g.z.KA=function(){return this.S}; g.z.isRequestPending=function(E){return this.Z.length?E===this.Z[this.Z.length-1].info.H5[0].A0:!1}; g.z.Y6=function(E){var e;(e=this.N)==null||e.Y6(E);var l;(l=this.V)==null||l.Y6(E)}; g.z.wH=function(E,e){this.loader.wH(E,e)}; g.z.iH=function(){return this.loader.iH()}; g.z.dispose=function(){var E;(E=this.V)==null||E.flush();g.a.prototype.dispose.call(this)};g.d(OB,g.a);OB.prototype.Z=function(){this.G++>15||(this.T=!this.T,new LFW(this.loader,this.policy,this.Zx,this.XS,this.T),this.delay.start())}; g.z=LFW.prototype;g.z.Fw=function(){}; g.z.M7=function(){}; g.z.PV=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.G8()===this.size)this.loader.wH("rqs",this.getInfo());else{var E="net.connect";this.xhr.status>200?E="net.badstatus":this.xhr.A9()&&(E="net.closed");this.onError(E)}}; g.z.onError=function(E){var e=this;this.loader.handleError(E,this.getInfo());Zd("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(l){e.loader.wH("pathprobe",l)},function(l){e.loader.handleError(l.errorCode,l.details)})}; g.z.getInfo=function(){var E=this.timing.DY();E.shost=Yn(this.location.Rr);E.pb=this.size;return E};g.d(Xo,g.a); Xo.prototype.j=function(E,e){if(E.j){this.W5.isLive?(E=this.W5.Tg&&this.W5.S?E.T.jb(this.W5.Tg,!1):E.T.SZ(Infinity),E.Sr=this.Sr):E=E.T.jb(0,!1);if(this.pg){var l=this.pg;E.Sr===0&&(E.W=l.N)}else E.W=this.V;return E}l=E.G;if(!l.T.Sv())return l.T.QJ()?(E=g7(this.W,E.T.info.Kg,e.T.info.Kg,0),E=l.T.WY(l,E)):E=l.T.yn(l),E;var k=l.J-this.loader.getCurrentTime(),H=!l.range||l.Z===0&&l.G===0?0:l.range.length-(l.G+l.Z),O=l.T;this.nG(E,k)&&H===0&&(this.W5.isManifestless?O=E.T:(O=l.startTime+OVX,l.Z&&(O+=l.duration), kY(E,O),l=E.G,O=l.T));O.QJ()?(H=this.Z,e=g7(this.W,O.info.Kg,e.T.info.Kg,k,H.S.length>0&&H.N===0&&this.loader.l8),k=tF(E),E=l.T.WY(l,e),(e=E.Z)&&E.H5.length>1&&(k||E.XS.Z||E.H5[0].T!==l.T?E=l.T.WY(l,E.H5[0].Z):(k=E.H5[E.H5.length-1],O=k.Z/e,!k.W&&O<.4&&(E=l.T.WY(l,e-k.Z))))):(l.A0<0&&(e=kw(l),e.pr=""+E.Z.length,this.loader.isSeeking()&&(e.sk="1"),e.snss=l.j,this.loader.wH("nosq",e)),E=O.yn(l));if(this.policy.Qd)for(l=g.T(E.H5),e=l.next();!e.done;e=l.next())e.value.type=6;return E}; Xo.prototype.nG=function(E,e){if(!tF(E)||!E.T.Sv())return!1;var l=this.Z.J0||J1e(E)||e<=this.policy.NW||this.Z.pg;this.logger.debug(function(){return"ready to adapt: "+l+", upgrade pending: "+J1e(E)+", health: "+e}); return l}; Xo.prototype.Gz=function(){g.a.prototype.Gz.call(this)}; var OVX=2/24;g.d(DL,g.a);DL.prototype.gL=function(E,e,l){var k;var H=((k=this.G)==null?void 0:k.reason)==="m"?"m":this.G&&qsp(this,this.G)?this.G.reason:"a";this.loader.gL(new eR(E,H,l));B0(this.loader,e,E,!0)}; DL.prototype.fK=function(E,e){for(var l=g.T(this.Qd),k=l.next();!k.done;k=l.next())if(k.value.id===E)return this.W=this.W5.T[E],fI(this.CY)&&(this.pg=!0),E=new eR(this.W,e?"t":"m"),e&&(this.j=!0),E;this.Z=[];return null}; DL.prototype.Ii=function(E,e,l){l=l===void 0?{}:l;this.T.Ii(E,e===void 0?!1:e,l)};v0.prototype.setData=function(E,e,l){var k=this;l=l===void 0?{}:l;if(e==null?0:e.GX)this.Ve=MfW(this,e,l),E.zE=this.XS.zE();if(this.cg())return!0;this.data=E;this.T=uG7(E,function(H,O){var X;(X=k.TX)==null||X.p7(H,O)},e==null?void 0:e.Z); if(!this.T)return!1;this.G=g.YD(this.T,ip8);return!0}; v0.prototype.cg=function(){return this.requestType===1}; v0.prototype.RE=function(){var E;return((E=this.TX)==null?void 0:E.RE())||0}; v0.prototype.isDecorated=function(){var E;return!((E=this.data)==null||!E.jG)};QQ7.prototype.encrypt=function(E){(0,g.dE)();return this.T.T?dqS(this,E,this.iv):(new g.u5(this.T.G)).encrypt(E,this.iv)}; QQ7.prototype.decrypt=function(E,e){(0,g.dE)();return this.T.T?dqS(this,E,e):(new g.u5(this.T.G)).decrypt(E,e)};g.d(P0,g.a);P0.prototype.Z=function(E,e){if(e){e=e instanceof g.N3?e:az(this,e);var l;((l=this.T.get(E))==null?void 0:Yn(l.location))!==Yn(e)&&this.T.set(E,new J57(e,E))}else this.T.delete(E)}; P0.prototype.load=function(){var E=this,e,l,k,H,O,X,A,C,p,x;return g.D(function(Q){switch(Q.G){case 1:e=E.T.get(0);g.U9(Q,2);var W;if(W=e&&!E.G)W=Yn(e.location),W=E.G===$Y(W);if(W){Q.xt(4);break}return g.S(Q,$qp(E,E.G?2:0),5);case 5:if(l=Q.T)E.Z(0,l),gk(l)&&E.Z(1,K_(l));case 4:g.jp(Q,3);break;case 2:k=g.FW(Q);g.UJ(k);if(!E.G){Q.xt(3);break}E.G=!1;return g.S(Q,E.load(),7);case 7:return Q.return();case 3:if(!E.dH.experiments.P5("html5_onesie_probe_ec_hosts")){Q.xt(0);break}g.U9(Q,9);H=E;O=H.Z;X=3;return g.S(Q, $qp(E,1),11);case 11:return O.call(H,X,Q.T),A=E,C=A.Z,p=4,g.S(Q,$qp(E,2),12);case 12:C.call(A,p,Q.T);g.jp(Q,0);break;case 9:x=g.FW(Q),g.UJ(x),g.$0(Q)}})}; P0.prototype.j=function(){var E=this,e,l;return g.D(function(k){g.ZC(E.N);e=g.tJ(E.dH.experiments,"html5_onesie_prewarm_max_lact_ms");if(BA()>=e)return k.return();(l=E.T.get(0))&&iTX(E,l);g.$0(k)})}; var GHS={k8D:0,BJg:1,xO0:2,tGg:3,md7:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};c5e.prototype.decrypt=function(E){var e=this,l,k,H,O,X,A;return g.D(function(C){switch(C.G){case 1:if(e.T.length&&!e.T[0].isEncrypted)return C.return();e.G=!0;e.AY.Rz("omd_s");l=new Uint8Array(16);OW()?k=new g.AK(E):H=new g.u5(E);case 2:if(!e.T.length||!e.T[0].isEncrypted){C.xt(4);break}O=e.T.shift();if(!k){X=H.decrypt(X6(O.buffer),l);C.xt(5);break}return g.S(C,k.decrypt(X6(O.buffer),l),6);case 6:X=C.T;case 5:A=X;for(var p=0;p=4)){var e=nw(this),l=this.xhr;e.rc=l.status;E&&(e.ab=!0);if(l.K0()){var k="onesie.net";e.msg=l.K0()}else l.status>=400?k="onesie.net.badstatus":l.aB()?this.pn||(k="onesie.response.noplayerresponse"):k=l.status===204?"onesie.net.nocontent":"onesie.net.connect";k?this.fail(new g.pL(k,e)):(this.Rz("or_fs"),this.Vf.PM((0,g.dE)(),l.G8(),0),this.eJ(4),this.Fs&&this.wH("rqs",e));this.Fs&&this.wH("ombre", "ok."+ +!k);this.t3=!1;Kw(this);LDe(this.AY);if(!this.qW){this.Ek.stop();var H;(H=this.Eh)==null||H.stop()}var O;if(E=(O=this.H0)==null?void 0:Uq7(O))for(O=0;O1E3){var E;(E=this.Vf)==null||E.q3((0,g.dE)());E=nw(this);if(this.dH.f7()&&this.xhr instanceof wD){var e=this.xhr;E.xrs=e.xhr.readyState;E.xpb=e.T.totalLength;E.xdc=e.S}this.fail(new g.pL("net.timeout",E))}}else(0,g.dE)()-this.Vf.T>1E4&&((e=this.Vf)==null||e.q3((0,g.dE)()),this.Jn());this.isComplete()||this.cZ.start()}}; g.z.Jn=function(){this.logger.info("Onesie request timed out");this.t3=!1;if(!Kw(this)){var E=nw(this);E.timeout="1";this.fail(new g.pL("onesie.request",E))}}; g.z.fail=function(E){var e=this;E=Qp(E);this.GB?this.I4.wO(E):(this.lI.reject(E),this.GB=!0);LDe(this.AY);this.qW||this.Ek.stop();this.Rz("or_fe");var l,k;(l=this.H0)==null||(k=Uq7(l))==null||k.forEach(function(H){e.wH("pathprobe",H)}); this.eJ(5);this.dispose()}; g.z.isComplete=function(){return this.state>=3}; g.z.BO=function(){return this.state===4}; g.z.TA=function(E){var e,l;return this.isComplete()||!!((e=this.VQ)==null?0:(l=e.get(E))==null?0:l.T)}; g.z.e3=function(){return!1}; g.z.lH=function(){return this.state===5}; g.z.notifySubscribers=function(E){for(var e=0;e102400&&!this.Ug&&(this.Rz("or100k"),this.Ug=!0);if(E.Qm()){var e=E.vE(),l=e.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+l}); this.Fs&&this.wH("ombrss","len."+l);this.gf.feed(e)}if(this.VQ)for(var k=g.T(this.VQ.keys()),H=k.next();!H.done;H=k.next()){var O=H.value;E=void 0;(E=this.VQ.get(O))==null||E.Ca();this.notifySubscribers(O)}}catch(X){this.fail(X)}}; g.z.S7=function(){return this.Vf.requestNumber}; g.z.m$=function(E){return this.kO.get(E)};g.d(H9Z,g.a);g.z=H9Z.prototype;g.z.Vm=function(E,e){this.kt=void 0;dtv(this);zBS(this,E,e)}; g.z.m5=function(E){if(this.T.length===0)return!1;var e=this.T[0];return e instanceof Rz?E===this.loader.getCurrentTime()*1E3:!(e instanceof Z1&&pkW(e.info))&&Math.abs(e.OY()-E)<50}; g.z.IU=function(E){this.G=E;this.kt=(0,g.dE)()+(E.backoffTimeMs||0)}; g.z.HI=function(E,e){if(E.action===void 0){var l=this.I4.Qu();l!==void 0&&this.loader.H3(l)}else if(E.action!==0||!this.jR)if(E.action===0&&this.policy.De&&(E.action=2),E.h3==="sabr.malformed_config"&&this.policy.Vh>0&&this.R4++0&&(E.action=2),l={},l.reason=E.h3,l.action=E.action,l.rn=e,E.action){case 1:this.policy.G&&this.N&&this.N.kd(void 0, void 0,l);break;case 0:this.jR=!0;this.videoData.Z0()&&this.policy.G&&this.N&&this.N.kd(void 0,void 0,l,!1);this.loader.Vv(l);break;case 2:T$7(E.h3)!=="sabr.config"&&delete l.reason;this.loader.handleError(T$7(E.h3),l,1);break;case 3:this.policy.GX&&((E=this.W5.N)!=null&&(E.N=!0),this.loader.handleError("sabr.hostfallback",l))}}; g.z.lE=function(E){E&&(this.loader.wH("sabrctxt",{onsbrctxt:E.type,scp:E.scope,dflt:E.sendByDefault}),E.type&&E.sendByDefault&&this.videoData.ND.add(E.type),E.scope!==2&&(E.type&&this.videoData.sabrContextUpdates.set(E.type,E),this.I4.lE(E)))}; g.z.M$=function(){}; g.z.kY=function(E,e){if(E.WD!==void 0&&E.LL){var l=E.WD/E.LL;this.audioTrack.j=!1;this.videoTrack.j=!1;if(this.policy.kt||this.policy.Ff||this.policy.wD)this.loader.MV.T=!1;var k=this.loader.w_(l,1);this.policy.b3&&this.policy.G&&this.loader.e2(k,e);this.I4.getCurrentTime()!==l&&(e={AN:"sabr_seek",yz:!0,n4:!0},E.seekSource&&(e.seekSource=E.seekSource),Xz(this.loader,l+.1,e))}}; g.z.onSnackbarMessage=function(E){this.I4.publish("onSnackbarMessage",E)}; g.z.b8=function(E,e){this.policy.Fr&&this.V&&this.loader.b8(E,e)}; g.z.TL=function(E){E.CV&&E.P0&&nx(this.W5,E.CV,E.P0);this.policy.Q0&&(E.U9&&E.JE&&(this.W5.Td=E.U9/E.JE),E.Sk&&E.XZ&&(this.W5.Dy=E.Sk/E.XZ));sE(this.videoData)&&!this.videoData.SR&&E.P0&&this.loader.w_(E.P0,1E3);E.DL!=null&&this.I4.yq(E.DL);this.policy.zd&&E.r3&&(E=((0,g.dE)()-E.r3)/1E3,this.loader.j0.CI(1,E))}; g.z.SF=function(E){this.loader.SF(E)}; g.z.hp=function(E){return this.videoData.ND.has(E)}; g.z.N$=function(E,e,l){this.policy.Z&&this.loader.wH("sabrctxtplc",{start:E?E.join("_"):"",stop:e?e.join("_"):"",discard:l?l.join("_"):""});if(E){E=g.T(E);for(var k=E.next();!k.done;k=E.next())this.videoData.ND.add(k.value)}if(e)for(e=g.T(e),E=e.next();!E.done;E=e.next())E=E.value,this.videoData.ND.has(E)&&this.videoData.ND.delete(E);if(l)for(l=g.T(l),e=l.next();!e.done;e=l.next())if(e=e.value,this.videoData.sabrContextUpdates.has(e)&&(this.videoData.sabrContextUpdates.delete(e),e===3&&(this.videoData.Sz= "")),this.policy.V&&this.T.length)for(E=g.T(this.T),k=E.next();!k.done;k=E.next())if(k=k.value,!(k instanceof Rz)){var H=void 0;((H=k.Jj)==null?void 0:H.type)===e&&(k.Jj=void 0)}}; g.z.YF=function(){}; g.z.t1=function(E){this.j=E}; g.z.bU=function(E){this.J=E}; g.z.zC=function(E,e){H0(this.policy,E,4,e)}; g.z.Re=function(E){if(E==null?0:E.zO)if(E=E.zO.w8){E=g.T(E);for(var e=E.next();!e.done;e=E.next())if(e=e.value,e.formatId){var l=this.W5.Z.get(Yz(e.formatId));l&&l.info&&(l.info.debugInfo=e.debugInfo)}}}; g.z.RL=function(E){this.I4.publish("reloadplayer",E)}; g.z.jH=function(){return this.I4.jH()||""}; g.z.RE=function(){var E=go(this.audioTrack,!0)*1E3,e=go(this.videoTrack,!0)*1E3;return Math.min(E,e)}; g.z.p7=function(E,e){this.loader.wH(E,e)}; g.z.NI=function(E){DX0(this.loader,Jf7(this.b3,E))}; g.z.Gz=function(){g.a.prototype.Gz.call(this);this.G=void 0;zBS(this,!0,"i");this.T=[]};jRe.prototype.Dh=function(){this.isSeeking=!0;this.T===1&&cGy(this.S);this.T===0&&this.Gh.Qy("transitiondetector");this.J=!1};b90.prototype.iq=function(E,e){if(this.S)return hBl(this,e);if(e=uI(E)){var l=e.T;l&&l.Z&&l.T&&(E=E.Z.length?E.Z[0]:null)&&E.state>=2&&!E.lH()&&E.info.Sr===0&&(this.S=E,this.j=l,this.G=e.info,this.J=this.startTimeSecs=Date.now()/1E3,this.W=this.G.startTime)}return NaN}; b90.prototype.clear=function(){this.G=this.j=this.S=null;this.T=this.W=this.J=this.startTimeSecs=NaN;this.Z=!1};g.d(Z9l,g.a);Z9l.prototype.Gz=function(){mtX(this);g.a.prototype.Gz.call(this)};var g7X=/[?&]cpn=/;g.d(Hp,g.a);Hp.prototype.flush=function(){var E={};this.G&&(E.pe=this.G);this.T.length>0&&(E.pt=this.T.join("."));this.T=[];return E}; Hp.prototype.stop=function(){var E=this,e,l,k;return g.D(function(H){if(H.G==1)return g.U9(H,2),g.S(H,(e=E.S)==null?void 0:e.stop(),4);if(H.G!=2)return(l=H.T)&&E.logTrace(l),g.jp(H,0);k=g.FW(H);E.G=ECX(k.message);g.$0(H)})}; Hp.prototype.logTrace=function(E){this.encoder.reset();this.encoder.add(1);this.encoder.add(E.resources.length);for(var e=g.T(E.resources),l=e.next();!l.done;l=e.next()){l=l.value.replace("https://www.youtube.com/s/","");this.encoder.add(l.length);for(var k=0;k=0?E:g.Cq(this.provider),this.SR?LhW.has(this.bq)&&(this.T.size||(this.bq==="PL"?E>=this.G+30:E<=this.pg+30||E>=this.G+1200&&E<=this.pg+86400))&&(g.Xu(this,E,"vps",[this.bq]),this.G=E):["PL","B","S"].indexOf(this.bq)>-1&&(this.T.size||E>=this.G+30)&&(g.Xu(this,E,"vps",[this.bq]),this.G=E),this.T.size)){this.sequenceNumber===7E3&&g.UJ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){pq(this,E);var e=this.provider.I4.Bv(); e=g.T(e);for(var l=e.next();!l.done;l=e.next())l=l.value,this.wH(l.key,l.value);e=E;l=this.provider.I4.Bb();var k=l.droppedVideoFrames||0,H=l.totalVideoFrames||0,O=k-this.dg,X=H&&!this.Ik;k>l.totalVideoFrames||O>5E3?BhW(this,"html5.badframedropcount","df."+k+";tf."+l.totalVideoFrames):(O>0||X)&&g.Xu(this,e,"df",[O]);this.dg=k;this.Ik=H;this.N>0&&(g.Xu(this,E,"glf",[this.N]),this.N=0);Ag.isActive()&&(E=Ag.nm(),Object.keys(E).length>0&&this.wH("profile",E));this.GX&&xK(this,"lwnmow");this.provider.dH.f7()&& this.provider.L("html5_record_now")&&this.wH("now",{wt:(0,g.dE)()});E={};this.provider.videoData.G&&(E.fmt=this.provider.videoData.G.itag,(e=this.provider.videoData.S)&&e.itag!==E.fmt&&(E.afmt=e.itag));E.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(E.adcpn=this.adCpn);this.OW&&(E.addocid=this.OW);this.contentCpn&&(E.ccpn=this.contentCpn);this.Qd&&(E.cdocid=this.Qd);this.provider.videoData.cotn&&(E.cotn=this.provider.videoData.cotn);E.el=OT(this.provider.videoData);E.content_v=uc(this.provider.videoData); E.ns=this.provider.dH.pg;E.fexp=s9Z(this.provider.dH.experiments).toString();E.cl=(786498154).toString();(e=this.provider.videoData.adFormat||this.adFormat)&&(E.adformat=e);(e=Y7(this.provider.videoData))&&(E.live=e);this.provider.videoData.hB()&&(E.drm=1,this.provider.videoData.W&&(E.drm_system=Iid[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(E.drm_product=this.provider.videoData.drmProduct));EN()&&this.provider.videoData.J&&(E.ctt=this.provider.videoData.J,E.cttype= this.provider.videoData.gJ,this.provider.videoData.mdxEnvironment&&(E.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(E.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.xs&&(E.dai_fallback="1")):this.provider.videoData.f5?E.dai="cs":this.provider.videoData.wX&&(E.dai="disabled");E.seq=this.sequenceNumber++;if(this.provider.videoData.fN){if(e=this.provider.videoData.fN,E&&e)for(e.ns==="3pp"&&(E.ns="3pp"),this.Fy.has(e.ns)&& xK(this,"hbps"),e.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=e.shbpslc),this.provider.dH.experiments.P5("html5_use_server_qoe_el_value")&&this.ND.delete("el"),l=g.T(Object.keys(e)),k=l.next();!k.done;k=l.next())k=k.value,this.ND.has(k)||(E[k]=e[k])}else E.event="streamingstats",E.docid=this.provider.videoData.videoId,E.ei=this.provider.videoData.eventId;this.isEmbargoed&&(E.embargoed="1");Object.assign(E,this.provider.dH.T);if(e=E.seq)e={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+e,serializedWatchEndpointLoggingContext:this.provider.videoData.pf4},this.serializedHouseBrandPlayerServiceLoggingContext&&(e.serializedHouseBrandPlayerServiceLoggingContext=y$(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(e.playerResponseCpn=this.provider.videoData.playerResponseCpn),OY.length&&(e.decoderInfo=OY),this.remoteControlMode&&(e.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(e.remoteConnectedDevices= this.remoteConnectedDevices),e=g.YD(e,JUy),e=g.Jz(e,4),this.T.set("qclc",[e]);E=g.BJ("//"+this.provider.dH.rJ+"/api/stats/qoe",E);l=e="";k=g.T(this.T.entries());for(H=k.next();!H.done;H=k.next())O=g.T(H.value),H=O.next().value,O=O.next().value,X=void 0,(X=O)!=null&&X.join&&(H="&"+H+"="+O.join(","),H.length>100?l+=H:e+=H);pOW(this,E+e,l.replace(/ /g,"%20"))}this.T.clear()}}; g.z.MC=function(E){this.GX=E}; g.z.qc=function(){if(this.provider.videoData.W){var E=this.provider.videoData.W;xK(this,"eme-"+(E.keySystemAccess?"final":Hi(E)?"ms":ug(E)?"ytfp":XY(E)?"safarifp":"nonfinal"))}}; g.z.jM=E9(53);g.z.By=function(E){this.isEmbargoed=E}; g.z.yR=E9(30);g.z.Cw=E9(36);g.z.onPlaybackRateChange=function(E){var e=g.Cq(this.provider);E&&E!==this.iN&&(g.Xu(this,e,"rate",[E]),this.iN=E);this.SR||this.reportStats(e)}; g.z.Vs=E9(24);g.z.getPlayerState=function(E){if(g.m(E,128))return"ER";if(g.m(E,2048))return"B";if(g.m(E,512))return"SU";if(g.m(E,16)||g.m(E,32))return"S";if(E.isOrWillBePlaying()&&g.m(E,64))return"B";var e=h$2[cf(E)];g.QS(this.provider.dH)&&e==="B"&&this.provider.I4.getVisibilityState()===3&&(e="SU");e==="B"&&g.m(E,4)&&(e="PB");return e}; g.z.Gz=function(){g.a.prototype.Gz.call(this);g.pE(this.kt);g.pE(this.Wh)}; g.z.oR=function(E){this.isOffline=E;g.Xu(this,g.Cq(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.z.wH=function(E,e,l){var k=this.MM.indexOf(E)!==-1;k||this.MM.push(E);if(!l||!k){var H=typeof e!=="string"?CL(e):e;H=wOe(H);if(!l&&!/^t[.]/.test(H)){var O=g.Cq(this.provider)*1E3;H="t."+O.toFixed()+";"+H}AM(this,"ctmp",E+":"+H);this.logger.debug(function(){return"ctmp "+E+" "+H}); xXZ(this);return O}}; g.z.cz=function(E,e,l){this.W={UK3:Number(this.wH("glrem",{nst:E.toFixed(),rem:e.toFixed(),ca:+l})),tE:E,TRg:e,isAd:l}}; g.z.Kh=function(E,e,l){g.Xu(this,g.Cq(this.provider),"ad_playback",[E,e,l])}; g.z.s4=function(E,e){var l=g.Cq(this.provider)*1E3;AM(this,"daism","t."+l.toFixed(0)+";smw."+(E*1E3).toFixed(0)+";smo."+(e*1E3).toFixed(0))}; g.z.resume=function(){var E=this;isNaN(this.kt)?QF9(this):this.kt=g.A2(function(){E.reportStats()},1E4)}; var US={},h$2=(US[5]="N",US[-1]="N",US[3]="B",US[0]="EN",US[2]="PA",US[1]="PL",US[-1E3]="ER",US[1E3]="N",US),LhW=new Set(["PL","B","S"]),OY=[];g.d(g.Bp,g.a);g.z=g.Bp.prototype;g.z.initialize=function(E,e,l){this.logger.debug(function(){return"Initialized, t="+E}); E=E||0;this.policy.T||(e=yfS(this.T),Pc8(this.I4,new eR(e.video,e.reason)),this.I4.cE(new eR(e.audio,e.reason)));this.policy.T&&Cw(this);this.W5.isManifestless&&ns7(this.W);this.j&&P79(this.j,this.videoTrack.T);e=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var k=!this.W5.isManifestless;this.policy.Az&&(k=k||this.W5.Af);if(!this.policy.h0||this.policy.jE)this.currentTime=k?E:e;this.policy.kt&&this.seek(this.getCurrentTime(),{}).Md(function(){}); if(this.policy.T){var H;((H=this.V)==null?0:kg7(H,this.jH()||""))&&JtX(this)&&UXe(this,this.videoTrack)&&UXe(this,this.audioTrack)&&(Ggy(this.G,this.V),this.policy.W&&$Xv(this))}else this.SR&&(cte(this,this.videoTrack),cte(this,this.audioTrack),Sty(this.SR),delete this.SR);l?(jFy(this,!1),g.ZC(this.Wl)):(l=this.getCurrentTime()===0,pw(this.W,this.videoTrack,this.videoTrack.T,l),pw(this.W,this.audioTrack,this.audioTrack.T,l),this.policy.T&&u2e(this.G,!0),this.policy.kt||this.seek(this.getCurrentTime(), {}).Md(function(){}),this.timing.tick("gv")); (this.W5.Tg||this.W5.SY||this.W5.Qd||this.W5.GX||this.W5.Wh)&&this.I4.s2(this.W5)}; g.z.resume=function(){if(this.isSuspended||this.l8){this.logger.debug("Resumed.");this.oJ=this.l8=this.isSuspended=!1;try{this.iq()}catch(E){g.$F(E)}}}; g.z.qx=function(){return!this.policy.Fy}; g.z.n3=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;this.logger.debug("detaching media source");Vu7(this);this.I4.p_()&&(this.J=NaN);E?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.fg&&this.wH("loader",{setsmb:1}),this.policy.Qd=!0,this.Mw()):(jFy(this,!1),e||this.Mw())}; g.z.setAudioTrack=function(E,e,l){l=l===void 0?!1:l;if(!this.U7()){var k=!isNaN(e);l&&k&&(this.audioTrack.kt=Date.now(),this.policy.lk&&(this.Yt=!0));if(this.policy.T){var H=this.S.fK(E.id,k);this.logger.debug(function(){return"Logging new audio format: "+H.T.info.id}); this.I4.cE(H)}else{var O=Uc7(this.T,E.id,k);this.logger.debug(function(){return"Logging new audio format: "+O.audio.info.id}); this.I4.cE(new eR(O.audio,O.reason))}k?(this.GX=Date.now(),l=this.audioTrack.T.index.GS(e),this.wH("setAudio",{id:E.id,cmt:e,sq:l}),l>=0&&(E=this.policy.nO?l+1:l,this.policy.T&&this.Vm(!0,"mosaic"),Kn(this.audioTrack,E,NaN,NaN),!this.policy.AS&&this.W5.isLive&&Kx(this.W5,E,!1))):this.I4.zY()}}; g.z.setPlaybackRate=function(E){E!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(E)}; g.z.Jy=function(E){var e=this.G.j;this.G.t1(E);this.wH("scfidc",{curr:Yz(e),"new":Yz(E)});E&&Yz(E)!==Yz(e)&&(this.Vm(!0,"caption change"),this.iq())}; g.z.U3=function(E){this.G.bU(E)}; g.z.gL=function(E){var e=E.T.info.A2();this.logger.debug(function(){return"New "+(e?"audio":"video")+" format from SABR: "+N5(E.T.info)}); e?this.I4.cE(E):Pc8(this.I4,E)}; g.z.NI=function(E){EZ(E.H5[E.H5.length-1])&&DX0(this,Jf7(this.T,E.H5[0].T))}; g.z.AQ=function(){return this.I4.AQ()}; g.z.nu=function(){return this.I4.nu()}; g.z.SF=function(E){this.I4.Y().f7()&&this.wH("sps",{status:E.AL||""});if(E.AL===1)this.I4.videoData.G6=0;else if(E.AL===2||E.AL===3){var e=!1;if(E.AL===3){e=this.I4.Xh();var l;this.yf=(l=E.w7H)!=null?l:Infinity;this.I4.videoData.G6=e+1;(e=oz(this))&&this.IB(!0)}this.I4.eO(!0,e)}}; g.z.e6=function(){return this.I4.e6()}; g.z.Eq=function(){return this.I4.Eq()}; g.z.tP=function(E){this.I4.tP(E)}; g.z.gUH=function(){var E,e=(E=this.I4.Ps())==null?void 0:E.getCurrentTime();e?this.I4.wH("rms",{cta:e}):g.ZC(this.qM)}; g.z.iq=function(){rtp(this);if(this.B5&&O$(this.B5)&&!this.B5.fz()&&(!this.policy.h0||isFinite(this.getCurrentTime()))){var E=aq(this.videoTrack);E=this.policy.dw&&E&&E.UZ();this.W5.isManifestless&&this.W5.S&&Nc(this.W5)?(this.J=Nc(this.W5),this.B5.qO(this.J)):Rc(this.W5)&&!E?isNaN(this.J)?(this.J=this.getCurrentTime()+3600,this.B5.qO(this.J)):this.J<=this.getCurrentTime()+1800&&(this.J=Math.max(this.J+1800,this.getCurrentTime()+3600),this.B5.qO(this.J)):this.B5.isView||(E=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==E)&&E>0&&(this.B5.qO(E),this.J=E))}if(!this.U7())if(Mc(this.W5)&&this.W5.lH()){var e=this.W5;this.handleError("manifest.net.retryexhausted",e.b3?{rc:e.Uc}:{rc:e.Uc.toString()},1)}else if(this.policy.T)a:{try{BuX(this.G);this.W5.isManifestless&&this.policy.W&&Hw(this.MV);var l;((l=this.B5)==null?0:Ap(l))&&this.VW();u2e(this.G)}catch(X){g.UJ(X);e=X;if(e.message.includes("changeType")){this.wH("ctype",{exp:e.name,msg:e.message,s:e.stack});break a}this.handleError("fmt.unplayable", {exp:e.name,msg:e.message,s:e.stack,trg:"sabrslicerqt"},1)}ld7(this);g.ZC(this.b3)}else if(!this.W5.G||!jUp(this.videoTrack)&&!jUp(this.audioTrack)||(this.videoTrack.W||this.audioTrack.W)&&this.policy.dC?l=!1:(this.Mw(),this.I4.seekTo(Infinity,{AN:"checkLoaderTracksSync",w_:!0}),l=!0),!l){rtp(this);this.W5.isManifestless&&(I2e(this.videoTrack),I2e(this.audioTrack),Hw(this.MV),(l=uI(this.videoTrack))&&l.T&&(l=l.T.Z&&!this.policy.pM,this.wH(l===this.policy.j.Gx?"strm":"strmbug",{strm:l,sfmp4:this.policy.j.Gx, dfs:this.policy.pM},!0)));if(this.B5)this.VW();else if(this.policy.S){var k;l=!1;if(this.policy.Qn){var H;E=g.T([this.videoTrack,this.audioTrack]);for(H=E.next();!H.done;H=E.next()){var O=H.value;for(H=uI(O);H&&O.Tu()!==aq(O);H=uI(O))O.Sb(H);l=l||!!H}}else(e=uI(this.videoTrack))&&this.videoTrack.Sb(e),(k=uI(this.audioTrack))&&this.audioTrack.Sb(k);ZM(this.videoTrack)&&ZM(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(e||k||l)&&ec(this)}ytW(this);pw(this.W,this.videoTrack, this.videoTrack.T,!1);pw(this.W,this.audioTrack,this.audioTrack.T,!1);this.policy.Kq||vCl(this,this.videoTrack,this.audioTrack);N_W(this.W,this.videoTrack,this.audioTrack);N_W(this.W,this.audioTrack,this.videoTrack);ld7(this);this.j&&(e=this.j,e.S?(k=e.J+e.policy.F7,e.Z||(k=Math.min(k,e.startTimeSecs+e.policy.T2)),e=Math.max(0,k*1E3-Date.now())):e=NaN,isNaN(e)||g.ZC(this.MM,e));g.ZC(this.b3)}}; g.z.Vv=function(E){this.I4.Vv(E)}; g.z.VW=function(){var E=this;if(this.B5){var e=this.B5.T,l=this.B5.G;ALZ(this,this.audioTrack);ALZ(this,this.videoTrack);var k=L$0(this);if(k){if(this.policy.tL){if(!e.SB()){var H=uI(this.audioTrack);if(H){if(!Wp(this,this.audioTrack,e,H.info))return;Nhv(this,this.audioTrack,e,H)}}if(!l.SB()&&(H=uI(this.videoTrack))){if(!Wp(this,this.videoTrack,l,H.info))return;Nhv(this,this.videoTrack,l,H)}}this.kt||(this.kt=(0,g.dE)(),this.logger.debug(function(){return"Appends pause start "+E.kt+" reason "+k}), this.policy.Z&&this.wH("apdps",{r:k}))}else if(this.kt&&(atS(this,this.kt),this.kt=0),hIX(this),H=!1,K$X(this,this.videoTrack,l)&&(H=!0,KXe(this.timing),tfW(this.timing)),this.B5&&!this.B5.Du()&&(K$X(this,this.audioTrack,e)&&(H=!0,nz7(this.timing),qt7(this.timing)),!this.U7()&&this.B5))!this.policy.Fy&&ZM(this.videoTrack)&&ZM(this.audioTrack)&&O$(this.B5)&&!this.B5.fz()&&(l=!1,l=aq(this.audioTrack).T,l=l===this.W5.T[l.info.id])&&(this.logger.debug("Setting EOS"),NlW(this.B5),FZv(this.schedule),this.AC("e")), H&&!this.B5.isAsync()&&ec(this)}}; g.z.AC=function(E){if(this.policy.Qa&&this.W5.isManifestless){var e=this.videoTrack.T;if(e){var l=e.index.Oz(),k=-1,H=-1;e.index instanceof Bl&&(k=e.index.xa(),H=e.index.wl());this.I4.AC(E,l,k,H)}}}; g.z.ZF=function(E){var e,l=E===((e=this.B5)==null?void 0:e.T)?this.audioTrack:this.videoTrack,k;if((k=uI(l))==null?0:k.isLocked){if(this.I4.Y().f7()){var H;this.wH("eosl",{ounlock:(H=uI(l))==null?void 0:H.info.T_()})}var O;El7(this,E===((O=this.B5)==null?void 0:O.T))}var X;if(this.policy.lk&&E===((X=this.B5)==null?void 0:X.T)&&this.rH){e=this.rH-this.getCurrentTime();var A;this.I4.wH("asl",{l:e,xtag:(A=aq(this.audioTrack))==null?void 0:A.T.info.T});this.Yt=!1;this.rH=0}E.ij()&&E.HN().length===0&& (E.HY(),this.B5&&!this.B5.ij()&&(this.I4.Y().f7()&&this.I4.wH("rms",{ld:"seek"}),this.B5.J=performance.now(),this.I4.fA(),this.I4.Y().f7()&&g.ZC(this.qM)));var C;(C=l.V)!=null&&BP(C,0);this.policy.C7?W0(this):this.iq()}; g.z.LnD=function(E){if(this.B5){var e=aq(E===this.B5.T?this.audioTrack:this.videoTrack);if(E=E.n1())for(var l=0;l 5&&E.pg.shift();e=e.A0;var A;if((A=this.I4.getVideoData())==null?0:A.enableServerStitchedDai)A=r18(this.audioTrack,e),l=r18(this.videoTrack,e),A!==0&&l!==0&&A!==l&&this.handleError("ssdai.avsync",{sq:e,a:A,v:l},0)}}; g.z.uc=function(E,e,l,k){E.info.video&&this.Z.uc(e,l,k)}; g.z.M3=function(E){this.T.M3(E)}; g.z.eT=E9(12);g.z.x$=function(){if(g.m(this.I4.getPlayerState(),8)){var E,e,l=(e=(E=this.I4.Ps())==null?void 0:E.getCurrentTime())!=null?e:this.I4.getCurrentTime(),k;(k=this.dC)==null||FBp(k,l)}var H;(H=this.jE)==null||g.ZC(H)}; g.z.V_=function(){return this.videoTrack.j||this.audioTrack.j}; g.z.seek=function(E,e){if(this.U7())return IB();if(this.V_())return IB("seeking to head");if(this.policy.kt&&!isFinite(E))return FTS(this.MV),g.j2(Infinity);rtp(this);Cw(this);this.policy.T||ytW(this,E);this.B5&&this.B5.T&&this.B5.G&&!this.I4.getVideoData().Qa&&(this.B5.T.isLocked()||this.B5.G.isLocked())&&this.I4.zY({reattachOnLockedBuffer:1,vsb:""+this.B5.G.isLocked(),asb:""+this.B5.T.isLocked()});var l=this.getCurrentTime(),k=this.MV.seek(E,e);if(!this.policy.h0||this.policy.jE)this.currentTime= k;tY(this.Z,E,l,this.policy.P_&&!e.yz);ec(this);return g.j2(k)}; g.z.m5=function(E){return this.policy.T&&this.G.m5(E)}; g.z.hp=function(E){return this.G.hp(E)}; g.z.Vm=function(E,e){this.G.Vm(E,e)}; g.z.getCurrentTime=function(){if(this.policy.h0){var E=this.eE()||0;return this.I4.getCurrentTime(!0)-E}return this.currentTime}; g.z.yH=function(){return this.audioTrack.T.info}; g.z.UM=function(){return this.videoTrack.T.info}; g.z.oy=function(){return this.audioTrack.T.info.DM}; g.z.sC=function(){return this.videoTrack.T.info.DM}; g.z.Gz=function(){try{this.n3(),Er(this.audioTrack),Er(this.videoTrack),qi(this.audioTrack),qi(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.a.prototype.Gz.call(this)}catch(E){g.$F(E)}}; g.z.handleError=function(E,e,l){l=l===void 0?0:l;var k=xf(l);E==="fmt.unplayable"&&this.W5.isLive&&(this.policy.tL=!1,mx(this.W5));e=new g.pL(E,e,l);g.u_(this);CL(e.details);this.I4.handleError(e);E!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&E!=="fmt.unparseable"&&k&&this.dispose()}; g.z.zX=function(){var E=aq(this.audioTrack),e=aq(this.videoTrack);E={lct:this.getCurrentTime().toFixed(3),lsk:this.MV.isSeeking(),lmf:this.T.T.isLocked(),lbw:Z2(this.schedule).toFixed(3),lhd:MA(this.schedule).toFixed(3),lst:((this.schedule.j.NV()||0)*1E9).toFixed(3),laa:E?E.T_():"",lva:e?e.T_():"",lar:this.audioTrack.G?this.audioTrack.G.T_():"",lvr:this.videoTrack.G?this.videoTrack.G.T_():"",laq:""+Yj(this.audioTrack),lvq:""+Yj(this.videoTrack)};this.B5&&!this.B5.Du()&&this.B5.T&&this.B5.G&&(E.lab= Yf(this.B5.T.HN()),E.lvb=Yf(this.B5.G.HN()));this.kt&&(E.lapt=((0,g.dE)()-this.kt).toFixed(0),E.lapr=L$0(this));this.c5&&(E.lapmabht=((0,g.dE)()-this.c5).toFixed(0),E.lapmabh=lI(this,this.audioTrack).toFixed(0));this.jR&&(E.lapmvbht=((0,g.dE)()-this.jR).toFixed(0),E.lapmvbh=lI(this,this.videoTrack).toFixed(0));this.J0&&(E.lapsdai=((0,g.dE)()-this.J0).toFixed(0));return E}; g.z.Mw=function(){try{this.policy.T&&this.G.Vm(!1,"pending"),this.audioTrack.Mw(),this.videoTrack.Mw()}catch(E){g.$F(E)}this.policy.S=""}; g.z.tG=function(){return mu(this.N)}; g.z.wH=function(E,e,l){this.I4.wH(E,e,l===void 0?!1:l)}; g.z.jH=function(){return this.I4.jH()}; g.z.w_=function(E,e){E/=e;isNaN(this.timestampOffset)&&xnX(this,E-Math.min(E,this.policy.IX));return(E-this.timestampOffset)*e}; g.z.eE=function(){return this.timestampOffset}; g.z.isSeeking=function(){return this.MV.isSeeking()}; g.z.c_=function(){this.Z.c_()}; g.z.Ii=function(E,e,l){e=e===void 0?!1:e;l=l===void 0?{}:l;this.policy.T?this.S.Ii(E,e,l):this.T.Ii(E,e,l)}; g.z.Ow=function(E,e){if(this.pg&&this.Z.Ow(E,this.pg)){if(this.policy.b3&&this.policy.G){var l=this.videoTrack.T.index.GS(E),k;(k=this.Qd)==null||k.XC(E,l)}xnX(this,this.timestampOffset-e);ec(this);this.policy.G&&(mx(this.W5),qi(this.audioTrack),qi(this.videoTrack),this.Mw());return!0}e=this.videoTrack.T.index.GS(E);this.handleError("ad.skipfailed",{dec:!!this.pg,t:E.toFixed(3),sq:e});return!1}; g.z.getManifest=function(){return this.W5}; g.z.isOffline=function(){return!!this.I4.getVideoData().cotn}; g.z.c8=function(E,e){this.I4.c8(E,e)}; g.z.rl=function(E){if(this.policy.T)this.G.Vm(!0,"utc"),this.iq();else{var e=this.I4.getVideoData().fI;if(e){var l=this.W;l.Wf=E;l.fI=e;wA(this)}}}; g.z.H3=function(E){this.videoTrack.j=!1;this.audioTrack.j=!1;this.MV.T=!1;this.I4.H3(E)}; g.z.HD=function(E){this.MV.HD(E-this.eE())}; g.z.WS=function(){this.I4.WS()}; g.z.IB=function(E){E!==this.policy.Kw&&((this.policy.Kw=E)||this.iq())}; g.z.zY=function(E){this.I4.zY(E)}; g.z.MC=function(E){this.I4.MC(E)}; g.z.Zv=function(E,e,l){var k;(k=this.Qd)==null||k.Zv(E,e,l)}; g.z.e2=function(E,e){var l;(l=this.Qd)==null||l.e2(E,e)}; g.z.G9=function(E){var e;return(e=this.Qd)==null?void 0:e.G9(void 0,E)}; g.z.Xh=function(){return this.I4.Xh()}; g.z.b8=function(E,e){if(this.policy.Fr){var l;(l=this.Qd)==null||l.b8(E,e)}};g.z=g.om.prototype;g.z.Ao=function(E,e,l,k,H,O){return this.L5.Ao(E,e,l,k,H,O)}; g.z.FL=function(E,e,l,k,H,O){return this.L5.FL(E,e,l,k,H,O)}; g.z.ZZ=function(E){return this.L5.ZZ(E)}; g.z.iW=function(E){this.L5.iW(E)}; g.z.kd=function(E,e,l,k){return this.L5.kd(E,e,l,k)}; g.z.c_=function(){this.L5.c_()}; g.z.XC=function(E,e){this.L5.XC(E,e)}; g.z.O2=function(){this.L5.O2()}; g.z.Zt=E9(56);g.z.xu=function(E,e,l){this.L5.xu(E,e,l)}; g.z.zL=E9(59);g.z.Hl=function(E,e,l,k,H,O,X,A,C){this.L5.Hl(E,e,l,k,H,O,X,A,C)}; g.z.Dm=function(E){this.L5.Dm(E)}; g.z.II=function(E){return this.L5.II(E)}; g.z.mz=function(E){return this.L5.mz(E)};g.d(wC,g.sJ);g.d(zL,wC);zL.prototype.J=function(E,e){if(E&&e){var l=Number(GG(E,"cpi"))*1+1;isNaN(l)||l<=0||lthis.Z&&(this.Z=l,g.QI(this.T)||(this.T={},this.S.stop(),this.G.stop())),this.T[e]=E,g.ZC(this.G))}}; zL.prototype.W=function(){for(var E=g.T(Object.keys(this.T)),e=E.next();!e.done;e=E.next()){var l=e.value;e=this.publish;for(var k=this.Z,H=g.Xw(this.T[l]),O=[],X=g.T(H[6].split("&")),A=X.next();!A.done;A=X.next())A=A.value,A.indexOf("cpi=")===0?O.push("cpi="+k.toString()):A.indexOf("ek=")===0?O.push("ek="+g.yb(l)):O.push(A);H[6]="?"+O.join("&");l="skd://"+H.slice(2).join("");H=l.length*2;k=new Uint8Array(H+4);k[0]=H%256;k[1]=(H-k[0])/256;for(H=0;H0)for(var l=g.T(this.T),k=l.next();!k.done;k=l.next())if(e===k.value.info.cryptoPeriodIndex){e=!0;break a}e=!1}if(!e){e=(0,g.dE)();a:{l=E.cryptoPeriodIndex;if(!isNaN(l)){k=g.T(this.Z.values());for(var H=k.next();!H.done;H=k.next())if(Math.abs(H.value.cryptoPeriodIndex-l)<=1){l=!0;break a}}l=!1}l?(l=E.T,l=Math.max(0,Math.random()*((isNaN(l)?120:l)-30))*1E3):l=0;this.publish("log_qoe",{wvagt:"delay."+l,cpi:E.cryptoPeriodIndex,reqlen:this.T.length}); l<=0?oyW(this,E):(this.T.push({time:e+l,info:E}),g.ZC(this.G,l))}}; dC.prototype.Gz=function(){this.T=[];wC.prototype.Gz.call(this)};var Jg={},TAv=(Jg.DRM_TRACK_TYPE_AUDIO="AUDIO",Jg.DRM_TRACK_TYPE_SD="SD",Jg.DRM_TRACK_TYPE_HD="HD",Jg.DRM_TRACK_TYPE_UHD1="UHD1",Jg);g.d(dnl,g.a);g.d($n7,g.sJ);g.z=$n7.prototype;g.z.EM=function(E){var e=this;if(!(this.U7()||E.size<=0)){var l={};E.forEach(function(k,H){var O=Os(e.G)?H:k;H=new Uint8Array(Os(e.G)?k:H);Os(e.G)&&aLl(H);k=g.Jz(H,4);aLl(H);H=g.Jz(H,4);e.T[k]?e.T[k].status=O:e.T[H]?e.T[H].status=O:e.T[k]={type:"",status:O};vyy(e,e.T[k].type,l)}); Dny(this,",");GL(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.z.error=function(E,e,l,k){this.U7()||(this.publish("licenseerror",E,e,l,k),E==="drm.provision"&&(E=(Date.now()-this.J)/1E3,this.J=NaN,this.publish("ctmp","provf",{et:E.toFixed(3)})));xf(e)&&this.dispose()}; g.z.shouldRetry=function(E,e){return!E&&this.requestNumber===e.requestNumber}; g.z.Gz=function(){this.T={};g.sJ.prototype.Gz.call(this)}; g.z.zX=function(){var E={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.SR,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(E.keyStatuses=this.T);return E}; g.z.getInfo=function(){var E=this.S.join();if(TL(this)){var e=new Set,l;for(l in this.T)this.T[l].status!=="usable"&&e.add(this.T[l].type);E+="/UKS."+Array.from(e)}return E+="/"+this.cryptoPeriodIndex}; g.z.cN=function(){return this.url};g.d($K,g.a);g.z=$K.prototype;g.z.S$=function(E){if(this.W){var e=E.messageType||"license-request";this.W(new Uint8Array(E.message),e)}}; g.z.EM=function(){this.j&&this.j(this.T.keyStatuses)}; g.z.onClosed=function(){this.U7()||g.DD("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.z.kS=function(E){this.W&&this.W(E.message,"license-request")}; g.z.n$=function(E){if(this.Z){if(this.G){var e=this.G.error.code;E=this.G.error.systemCode}else e=E.errorCode,E=E.systemCode;this.Z("t.prefixedKeyError;c."+e+";sc."+E,e,E)}}; g.z.p$=function(){this.J&&this.J()}; g.z.update=function(E){var e=this;if(this.T)return this.T.update(E).then(null,LR(function(l){hOS(e,"t.update",l)})); this.G?this.G.update(E):this.element.addKey?this.element.addKey(this.N.keySystem,E,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,E,this.initData,this.sessionId);return J2()}; g.z.Gz=function(){this.T&&(this.V?this.T.close().catch(g.UJ):this.T.close());this.element=null;g.a.prototype.Gz.call(this)};g.d(UY,g.a);g.z=UY.prototype;g.z.setServerCertificate=function(){return this.G.setServerCertificate?this.T.flavor==="widevine"&&this.T.Ep?this.G.setServerCertificate(this.T.Ep):A1(this.T)&&this.T.jR?this.G.setServerCertificate(this.T.jR):null:null}; g.z.createSession=function(E,e){var l=E.initData;if(this.T.keySystemAccess){e&&e("createsession");var k=this.G.createSession();ug(this.T)?l=Zw7(l,this.T.jR):A1(this.T)&&(l=BAp(l)||new Uint8Array(0));e&&e("genreq");E=k.generateRequest(E.contentType,l);var H=new $K(null,null,null,k,null,this.j);E.then(function(){e&&e("genreqsuccess")},LR(function(X){hOS(H,"t.generateRequest",X)})); return H}if(Hi(this.T))return mnW(this,l);if(XY(this.T))return YBW(this,l);if((k=this.element)==null?0:k.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,l);else{var O;(O=this.element)==null||O.webkitGenerateKeyRequest(this.T.keySystem,l)}return this.S=new $K(this.element,this.T,l,null,null,this.j)}; g.z.xf=function(E){var e=gyv(this,E);e&&e.kS(E)}; g.z.Fl=function(E){var e=gyv(this,E);e&&e.n$(E)}; g.z.Xl=function(E){var e=gyv(this,E);e&&e.p$(E)}; g.z.getMetrics=function(){var E=null;if(this.G&&this.G.getMetrics)try{E=this.G.getMetrics()}catch(e){}return E}; g.z.Gz=function(){this.Z=this.G=null;var E;(E=this.S)==null||E.dispose();E=g.T(Object.values(this.J));for(var e=E.next();!e.done;e=E.next())e.value.dispose();this.J={};g.a.prototype.Gz.call(this);delete this.element};g.z=JM.prototype;g.z.get=function(E){E=this.findIndex(E);return E!==-1?this.values[E]:null}; g.z.remove=function(E){E=this.findIndex(E);E!==-1&&(this.keys.splice(E,1),this.values.splice(E,1))}; g.z.removeAll=function(){this.keys=[];this.values=[]}; g.z.set=function(E,e){var l=this.findIndex(E);l!==-1?this.values[l]=e:(this.keys.push(E),this.values.push(e))}; g.z.findIndex=function(E){return g.Td(this.keys,function(e){return g.gr(E,e)})};g.d(ROv,g.sJ);g.z=ROv.prototype;g.z.mNH=function(E){this.Fz({onecpt:1});E.initData&&qB7(this,new Uint8Array(E.initData),E.initDataType)}; g.z.Jg7=function(E){this.Fz({onndky:1});qB7(this,E.initData,E.contentType)}; g.z.AT=function(E){this.Fz({onneedkeyinfo:1});this.dH.L("html5_eme_loader_sync")&&(this.j.get(E.initData)||this.j.set(E.initData,E));tn8(this,E)}; g.z.BH=function(E){this.Z.push(E);cp(this)}; g.z.createSession=function(E){var e=eQX(this)?mc8(E):g.Jz(E.initData);this.G.get(e);this.Qd=!0;E=new $n7(this.videoData,this.dH,E,this.drmSessionId);this.G.set(e,E);E.subscribe("ctmp",this.MG,this);E.subscribe("keystatuseschange",this.EM,this);E.subscribe("licenseerror",this.Pp,this);E.subscribe("newlicense",this.dU,this);E.subscribe("newsession",this.IH,this);E.subscribe("sessionready",this.Ql,this);E.subscribe("fairplay_next_need_key_info",this.KC,this);this.dH.L("html5_enable_vp9_fairplay")&&E.subscribe("qualitychange", this.g3,this);E.subscribe("sabrlicenseconstraint",this.N$7,this);y38(E,this.S)}; g.z.dU=function(E){this.U7()||(this.Fz({onnelcswhb:1}),E&&!this.heartbeatParams&&(this.heartbeatParams=E,this.publish("heartbeatparams",E)))}; g.z.IH=function(){this.U7()||(this.Fz({newlcssn:1}),this.Z.shift(),this.Qd=!1,cp(this))}; g.z.Ql=function(){if(Hi(this.T)&&(this.Fz({onsnrdy:1}),this.c5--,this.c5===0)){var E=this.pg,e,l;(e=E.element)==null||(l=e.msSetMediaKeys)==null||l.call(e,E.Z)}}; g.z.EM=function(E){if(!this.U7()){!this.fg&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(lal(this),this.fg=!0);this.Fz({onksch:1});var e=this.g3;if(!TL(E)&&g.aa&&E.G.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var l="large";else{l=[];var k=!0;if(TL(E))for(var H=g.T(Object.keys(E.T)),O=H.next();!O.done;O=H.next())O=O.value,E.T[O].status==="usable"&&l.push(E.T[O].type),E.T[O].status!=="unknown"&&(k=!1);if(!TL(E)||k)l=E.S;l=r3e(l)}e.call(this,l);if(!TL(E))for(e= {},l=g.T(E.S),k=l.next();!k.done;k=l.next())vyy(E,k.value,e);this.videoData.authorizedFormats=E.authorizedFormats;this.publish("keystatuseschange",E)}}; g.z.MG=function(E,e){this.U7()||this.publish("ctmp",E,e)}; g.z.KC=function(E,e){this.U7()||this.publish("fairplay_next_need_key_info",E,e)}; g.z.Pp=function(E,e,l,k){this.U7()||(this.videoData.L("html5_log_drm_metrics_on_error")&&lal(this),this.publish("licenseerror",E,e,l,k))}; g.z.FR=function(){return this.N}; g.z.g3=function(E){var e=g.J9("auto",E,!1,"l");if(this.videoData.Kw){if(this.N.equals(e))return}else if(B0X(this.N,E))return;this.N=e;this.publish("qualitychange");this.Fz({updtlq:E})}; g.z.N$7=function(E){this.videoData.sabrLicenseConstraint=E}; g.z.Gz=function(){this.T.keySystemAccess&&this.element&&(this.SR?this.element.setMediaKeys(null).catch(g.UJ):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var E=g.T(this.G.values()),e=E.next();!e.done;e=E.next())e=e.value,e.unsubscribe("ctmp",this.MG,this),e.unsubscribe("keystatuseschange",this.EM,this),e.unsubscribe("licenseerror",this.Pp,this),e.unsubscribe("newlicense",this.dU,this),e.unsubscribe("newsession",this.IH,this),e.unsubscribe("sessionready",this.Ql,this),e.unsubscribe("fairplay_next_need_key_info", this.KC,this),this.dH.L("html5_enable_vp9_fairplay")&&e.unsubscribe("qualitychange",this.g3,this),e.dispose();this.G.clear();this.J.removeAll();this.j.removeAll();this.heartbeatParams=null;g.sJ.prototype.Gz.call(this)}; g.z.zX=function(){for(var E={systemInfo:this.T.zX(),sessions:[]},e=g.T(this.G.values()),l=e.next();!l.done;l=e.next())E.sessions.push(l.value.zX());return E}; g.z.getInfo=function(){return this.G.size<=0?"no session":""+this.G.values().next().value.getInfo()+(this.W?"/KR":"")}; g.z.Fz=function(E,e){e=e===void 0?!1:e;this.U7()||(CL(E),(this.dH.f7()||e)&&this.publish("ctmp","drmlog",E))};g.d(uu7,g.a);g.z=uu7.prototype;g.z.J_=function(){return!!this.TC}; g.z.RW=function(){return this.G}; g.z.handleError=function(E){var e=this;WEW(this,E);if((E.errorCode!=="html5.invalidstate"&&E.errorCode!=="fmt.unplayable"&&E.errorCode!=="fmt.unparseable"||!Qmy(this,E.errorCode,E.details))&&!zQl(this,E)){if(this.F6.pg!=="yt"&&oKW(this,E)&&this.videoData.yc&&(0,g.dE)()/1E3>this.videoData.yc&&this.F6.pg==="hm"){var l=Object.assign({e:E.errorCode},E.details);l.stalesigexp="1";l.expire=this.videoData.yc;l.init=this.videoData.pE/1E3;l.now=(0,g.dE)()/1E3;l.systelapsed=((0,g.dE)()-this.videoData.pE)/1E3; E=new g.pL(E.errorCode,l,2);this.I4.I7(E.errorCode,2,"SIGNATURE_EXPIRED",CL(E.details))}if(xf(E.severity)){var k;l=(k=this.I4.loader)==null?void 0:k.T.T;if(this.F6.L("html5_use_network_error_code_enums"))if(BCv(E)&&l&&l.isLocked())var H="FORMAT_UNAVAILABLE";else if(this.F6.J||E.errorCode!=="auth"||E.details.rc!==429)E.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED");else{H="TOO_MANY_REQUESTS";var O="6"}else BCv(E)&&l&&l.isLocked()?H="FORMAT_UNAVAILABLE":this.F6.J||E.errorCode!== "auth"||E.details.rc!=="429"?E.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED"):(H="TOO_MANY_REQUESTS",O="6");this.I4.I7(E.errorCode,E.severity,H,CL(E.details),O)}else this.I4.publish("nonfatalerror",E),k=/^pp/.test(this.videoData.clientPlaybackNonce),this.wO(E.errorCode,E.details),k&&E.errorCode==="manifest.net.connect"&&(E="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.dE)(),Zd(E,"manifest",function(X){e.J=!0;e.wH("pathprobe",X)}, function(X){e.wO(X.errorCode,X.details)}))}}; g.z.wH=function(E,e){this.I4.L7.wH(E,e)}; g.z.wO=function(E,e){e=CL(e);this.I4.L7.wO(E,e)};yW.prototype.qX=function(E){var e=iqS(this);if(!E)return{BU:B$,Rg:B$,HL:B$,kW:B$,Ks:B$,YO:B$,m3:e};var l=B$;if(yG(e)||this.L("html5_perf_cap_override_sticky"))l=rMv(this,E);return{BU:l,Rg:jmW(this,E),HL:cMv(this,E),kW:DmZ(this,E.videoData),Ks:bqp(this,E.videoData,E),YO:UmX(this,E),m3:e}}; yW.prototype.tA=function(E){if(g.QS(this.dH)&&h9(this.dH.W,M3.HEIGHT))var e=E.T.videoInfos[0].video.qualityOrdinal;else{var l=this.RJ(!!E.T.T);jv(E.videoData)||Qm(E.videoData);E=E.T.videoInfos;if(E.length){var k=g.tJ(this.dH.experiments,"html5_override_oversend_fraction")||.85,H=E[0].video;H.projectionType!=="MESH"&&H.projectionType!=="EQUIRECTANGULAR"&&H.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||lY||(k=.45);H=g.tJ(this.dH.experiments,"html5_viewport_undersend_maximum");for(var O=0;O< E.length;O++){e=E[O];var X=e.video;if(l===null||X.width*k=0,stateAtSend:e,joinLatencySecs:O,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:k,playerCanaryStage:H,isAd:this.provider.videoData.isAd(),liveMode:l,hasDrm:!!g.Nt(this.provider.videoData),isGapless:this.provider.videoData.j,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:f9(this.provider.videoData)};E||g.E0("html5PlayerHealthEvent",e);this.Z=!0;this.dispose()}}; Im.prototype.Gz=function(){this.Z||this.send();window.removeEventListener("error",this.gp);window.removeEventListener("unhandledrejection",this.gp);g.a.prototype.Gz.call(this)}; var Mqs=/\bnet\b/;hQX.prototype.update=function(){if(this.j){var E=this.Zu()||0,e=g.Cq(this.provider);E>=this.provider.I4.getDuration()-.1&&(this.previouslyEnded=!0);if(E!==this.T||Zql(this,E,e)){var l;if(!(l=Ee-this.Dc+2||Zql(this,E,e))){l=this.provider.I4.getVolume();var k=l!==this.V,H=this.provider.I4.isMuted()?1:0;H!==this.N?(this.N=H,l=!0):(!k||this.S>=0||(this.V=l,this.S=e),l=e-this.S,this.S>=0&&l>2?(this.S=-1,l=!0):l=!1)}l&&(fq(this),this.Z=E);this.Dc=e;this.T=E}}}; hQX.prototype.Zu=function(){var E=this.provider.I4.Zu();return this.provider.dH.L("html5_disable_live_dvr_shrink_for_cdm_vss")&&F2(this.provider.videoData)?E+this.provider.I4.eE():E};YY8.prototype.send=function(E){var e=this;if(!this.b3){var l=gKS(this),k=g.BJ(this.uri,l);this.dH.L("vss_through_gel_double")&&KEW(k);this.Qd&&!this.dH.L("html5_simplify_pings")?qYl(this,k):mmp(this,E).then(function(H){e.Qd&&(H=H||{},H.method="POST",H.postParams={atr:e.attestationResponse});sRp(k,H,{token:e.kt,lQ:e.In,mdxEnvironment:e.mdxEnvironment},e.dH,E,e.h0,e.isFinal&&e.JS||e.fg||e.Z&&e.W7)}); this.b3=!0}}; YY8.prototype.G=function(E){E===void 0&&(E=NaN);return Number(E.toFixed(3)).toString()}; var cU={},smX=(cU.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,cU.LIVING_ROOM_APP_MODE_MAIN=1,cU.LIVING_ROOM_APP_MODE_KIDS=2,cU.LIVING_ROOM_APP_MODE_MUSIC=3,cU.LIVING_ROOM_APP_MODE_UNPLUGGED=4,cU.LIVING_ROOM_APP_MODE_GAMING=5,cU),yn={},RQp=(yn.EMBEDDED_PLAYER_MODE_UNKNOWN=0,yn.EMBEDDED_PLAYER_MODE_DEFAULT=1,yn.EMBEDDED_PLAYER_MODE_PFP=2,yn.EMBEDDED_PLAYER_MODE_PFL=3,yn);g.d(Sc,g.a);Sc.prototype.ev=function(){this.T.update();Aa0(this)&&(lOy(this),kxW(this))}; Sc.prototype.Gz=function(){g.a.prototype.Gz.call(this);bd(this);McZ(this.T)}; Sc.prototype.zX=function(){return gKS(rC(this,"playback"))}; Sc.prototype.wB=function(E){var e=rC(this,"engage");e.SR=E;return nKW(e,BpS(this.provider))};Wwv.prototype.isEmpty=function(){return this.endTime===this.startTime};Pp.prototype.L=function(E){return this.dH.L(E)}; Pp.prototype.getCurrentTime=function(){return this.I4.getCurrentTime()}; Pp.prototype.Zu=function(){return this.I4.Zu()}; var oaS={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.d(g.am,g.a);g.z=g.am.prototype;g.z.ev=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Yz){var E;(E=this.Z.get(this.Yz))==null||E.ev()}else this.T&&this.T.ev()}; g.z.By=function(E){this.qoe&&this.qoe.By(E)}; g.z.yR=E9(29);g.z.Cw=E9(35);g.z.s4=function(E,e){this.qoe&&this.qoe.s4(E,e)}; g.z.pX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Yz){var E;(E=this.Z.get(this.Yz))!=null&&fq(E.T)}else this.T&&fq(this.T.T)}; g.z.wO=function(E,e){this.qoe&&BhW(this.qoe,E,e);if(this.G)this.G.onError(E)}; g.z.onPlaybackRateChange=function(E){if(this.qoe)this.qoe.onPlaybackRateChange(E);this.T&&fq(this.T.T)}; g.z.jM=E9(52);g.z.wH=function(E,e,l){this.qoe&&this.qoe.wH(E,e,l)}; g.z.cz=function(E,e,l){this.qoe&&this.qoe.cz(E,e,l)}; g.z.yq=function(E){var e;(e=this.qoe)==null||e.yq(E)}; g.z.s2=function(E){var e;(e=this.qoe)==null||e.s2(E)}; g.z.AC=function(E,e,l,k){var H;(H=this.qoe)==null||H.AC(E,e,l,k)}; g.z.MC=function(E){this.qoe&&this.qoe.MC(E)}; g.z.Kh=function(E,e,l){this.qoe&&this.qoe.Kh(E,e,l)}; g.z.Vs=E9(23);g.z.Q_=function(){if(this.qoe)return this.qoe.Q_()}; g.z.zX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Yz){var E,e;return(e=(E=this.Z.get(this.Yz))==null?void 0:E.zX())!=null?e:{}}return this.T?this.T.zX():{}}; g.z.GI=function(){var E;return(E=this.qoe)==null?void 0:E.GI()}; g.z.jF=function(E,e){var l;(l=this.qoe)==null||l.jF(E,e)}; g.z.wB=function(E){return this.T?this.T.wB(E):function(){}}; g.z.getVideoData=function(){return this.provider.videoData}; g.z.resume=function(){this.qoe&&this.qoe.resume()};g.d(g.Lq,g.a);g.z=g.Lq.prototype;g.z.qQ=function(E,e){this.sync();e&&this.T.array.length>=2E3&&this.wc("captions",1E4);e=this.T;if(E.length>1&&E.length>e.array.length)e.array=e.array.concat(E),e.array.sort(e.T);else{E=g.T(E);for(var l=E.next();!l.done;l=E.next())l=l.value,!e.array.length||e.T(l,e.array[e.array.length-1])>0?e.array.push(l):g.KW(e.array,l,e.T)}this.Z=NaN;this.sync()}; g.z.yh=function(E){E.length>1E4&&g.UJ(new g.PK("Over 10k cueRanges removal occurs with a sample: ",E[0]));if(!this.U7()){var e=new Set(E);this.G=this.G.filter(function(l){return!e.has(l)}); V0p(this.T,e);this.sync()}}; g.z.g0=function(E,e){if(!this.U7()){var l=this.Eq().find(function(k){return k.id===e&&k.namespace===E}); l&&this.yh([l])}}; g.z.wc=function(E,e){var l=(isNaN(this.Z)?va0(this):this.Z)-e;e=this.Eq().filter(function(k){return k.namespace===E&&k.endthis.T,O=g.m(l,8)&&g.m(l,16),X=this.I4.Fm().isBackground()||l.isSuspended();Rm(this,this.gH,O&&!X,H,"qoe.slowseek",function(){},"timeout"); var A=isFinite(this.T);A=O&&A&&Ral(e,this.T);var C=!k||Math.abs(k-this.T)>10,p=this.dH.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),x=k===0&&this.G&&[11,10].includes(this.G);Rm(this,this.b3,A&&C&&!X&&(!p||!x),H,"qoe.slowseek",function(){e.seekTo(E.T)},"set_cmt"); C=A&&gB(e.PG(),this.T);var Q=this.I4.loader;A=!Q||Q.qx();var W=function(){e.seekTo(E.T+.001)}; Rm(this,this.fg,C&&A&&!X,H,"qoe.slowseek",W,"jiggle_cmt");A=function(){return E.I4.d2()}; Rm(this,this.J0,C&&!X,H,"qoe.slowseek",A,"new_elem");var B=Jp(l);x=l.isBuffering();var w=e.PG(),U=mU(w,k),c=U>=0&&w.end(U)>k+5;C=B&&x&&c;p=this.I4.getVideoData();Rm(this,this.c5,k<.002&&this.T<.002&&O&&g.QS(this.dH)&&g.XD(p)&&!X,H,"qoe.slowseek",A,"slow_seek_shorts");Rm(this,this.V,p.Jd()&&O&&!X&&!p.kt,H,"qoe.slowseek",A,"slow_seek_gapless_shorts");Rm(this,this.pg,C&&!X,B&&!x,"qoe.longrebuffer",W,"jiggle_cmt");Rm(this,this.kt,C&&!X,B&&!x,"qoe.longrebuffer",A,"new_elem_nnr");if(Q){var V=Q.getCurrentTime(); O=e.u2();O=abl(O,V);O=!Q.isSeeking()&&k===O;Rm(this,this.GX,B&&x&&O&&!X,B&&!x&&!O,"qoe.longrebuffer",function(){e.seekTo(V)},"seek_to_loader")}O={}; W=mU(w,Math.max(k-3.5,0));var F=W>=0&&k>w.end(W)-1.1,r=W>=0&&W+1=0&&F&&r<11;O.close2edge=F;O.gapsize=r;O.buflen=w.length;this.G&&(O.seekSour=this.G);Rm(this,this.SR,B&&x&&!X,B&&!x,"qoe.longrebuffer",function(){},"timeout",O); O=l.isSuspended();O=this.I4.Li()&&!O;Rm(this,this.j,O,!O,"qoe.start15s",function(){E.I4.SH("ad")},"ads_preroll_timeout"); O=this.dH.experiments.P5("html5_use_playback_rate_in_skip_slow_ad")?this.I4.getPlaybackRate()*1E3:1E3;U=k-this.S5;Rm(this,this.R4,g.XD(p)&&Q,B&&!x,"qoe.longrebuffer",function(){E.I4.zY()},"reset_media_source"); Rm(this,this.jR,g.XD(p)&&Q,B&&!x,"qoe.longrebuffer",A,"reset_media_element");this.S===0&&(this.J=k);Q=x&&this.T===0&&k>1&&k===this.J;Rm(this,this.h0,g.XD(p)&&Q,B&&!x,"qoe.slowseek",function(){e.seekTo(0)},"reseek_after_time_jump"); X=l.isOrWillBePlaying()&&!X;c=this.I4.cn()-k<6&&!c&&this.I4.oe();Rm(this,this.N,p.Jd()&&X&&x&&c,B&&!x,"qoe.longrebuffer",function(){E.I4.d2(!1,!0)},"handoff_end_long_buffer_reload"); X=this.G===104||this.I4.EQ;l=yJ(p)&&p.isAd()&&!p.kt&&X&&(x||g.m(l,8)&&g.m(l,16));Rm(this,this.ND,l,H,"qoe.start15s",A,"gapless_ad_slow_start");l=yJ(p)&&!p.kt&&X&&C;Rm(this,this.Yt,l,H,"qoe.longrebuffer",A,"gapless_slow_start");this.S=k;this.W.start()}}; nq.prototype.wO=function(E,e,l){e=this.zX(e);e.wn=l;e.wdup=this.Z[E]?"1":"0";this.I4.wO(new g.pL(E,e));this.Z[E]=!0}; nq.prototype.zX=function(E){E=Object.assign(this.I4.zX(!0),E.zX());this.T&&(E.stt=this.T.toFixed(3));this.I4.getVideoData().isLivePlayback&&(E.ct=this.I4.getCurrentTime().toFixed(3),E.to=this.I4.eE().toFixed(3));delete E.uga;delete E.euri;delete E.referrer;delete E.fexp;delete E.vm;return E}; Kq.prototype.reset=function(){this.T=this.G=this.Z=this.startTimestamp=0;this.S=!1}; Kq.prototype.test=function(E){if(!this.W||this.G)return!1;if(!E)return this.reset(),!1;E=(0,g.dE)();if(!this.startTimestamp)this.startTimestamp=E,this.Z=0;else if(this.Z>=this.W)return this.G=E,!0;this.Z+=1;return!1}; Kq.prototype.zX=function(){var E={},e=(0,g.dE)();this.startTimestamp&&(E.wsd=(e-this.startTimestamp).toFixed());this.G&&(E.wtd=(e-this.G).toFixed());this.T&&(E.wssd=(e-this.T).toFixed());return E};g.d(l30,g.a);g.z=l30.prototype;g.z.setMediaElement=function(E){(this.mediaElement=E)?(this.mediaElement&&(this.W||this.Z||!this.mediaElement.QY()||this.seekTo(.01,{AN:"seektimeline_setupMediaElement"})),sY(this)):qm(this)}; g.z.getCurrentTime=function(E){E=E===void 0?!1:E;if(tM(this.I4)){if(this.L("html5_use_centralized_player_time")&&!E&&!isNaN(this.J))return this.J;if(!isNaN(this.G))return this.G}else{if(this.L("html5_use_centralized_player_time")&&!E&&!isNaN(this.J)&&isFinite(this.J))return this.J;if(!isNaN(this.G)&&isFinite(this.G))return this.G}return this.mediaElement&&z9W(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.z.Qu=function(){return this.ND}; g.z.Zu=function(){return this.getCurrentTime()-this.eE()}; g.z.sZ=function(){return this.T?this.T.sZ():Infinity}; g.z.isAtLiveHead=function(E){if(!this.T)return!1;E===void 0&&(E=this.getCurrentTime());return YK(this.T,E)}; g.z.N5=function(){return!!this.T&&this.T.N5()}; g.z.seekTo=function(E,e){var l=e===void 0?{}:e;e=l.Ng===void 0?!1:l.Ng;var k=l.Bm===void 0?0:l.Bm;var H=l.W_===void 0?!1:l.W_;var O=l.f4===void 0?0:l.f4;var X=l.AN===void 0?"":l.AN;var A=l.seekSource===void 0?void 0:l.seekSource;var C=l.w_===void 0?!1:l.w_;var p=l.yz===void 0?!1:l.yz;l=l.n4===void 0?!1:l.n4;C&&(E+=this.eE());f9(this.videoData)&&A===29&&(this.ND=void 0);C=E=this.YN())||!g.RR(this.videoData),U||(c={st:c,mst:this.YN()},this.T&&this.L("html5_high_res_seek_logging")&&(c.ht=this.T.sZ(),c.adft=naX(this.T)),this.I4.wH("seeknotallowed",c)),c=U));if(!c)return this.S&&(this.S=null,Bcv(this)),g.j2(this.getCurrentTime());c=.005;p&&this.L("html5_sabr_seek_no_shift_tolerance")&&(c=0);if(Math.abs(E-this.G)<=c&&this.h0)return this.W;X&&(c=E,(this.dH.f7()||this.L("html5_log_seek_reasons"))&& this.I4.wH("seekreason",{reason:X,tgt:c}));A&&(this.pg.G=A);this.h0&&qm(this);this.W||(this.W=new xZ);E&&!isFinite(E)&&XGp(this,!1);(X=l||C)||(X=E,X=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.T&&!(this.mediaElement&&this.mediaElement.I9()>0&&Wf(this.mediaElement)>0)||b7(this.videoData)&&this.Hs()===this.YN(!1)?0:isFinite(X)||!b7(this.videoData)));X||(E=e0(this,E,H));E&&!isFinite(E)&&XGp(this,!1);this.L("html5_use_centralized_player_time")?this.J=E:this.G=this.Z=E;this.R4= O;this.j=0;this.T&&(H=this.T,O=E,RmX(H,O,!1),sNe(H,O));H=this.I4;O=E;X={Ng:e,seekSource:A};H.lN.Z=O;l=H.cS;l.mediaTime=O;l.T=!0;X.Ng&&H.yE(X);X=O>H.videoData.endSeconds&&O>H.videoData.limitedPlaybackDurationInSeconds;H.Ie&&X&&isFinite(O)&&KHl(H);Oe.start&&KHl(this.I4);return this.W}; g.z.YN=function(E){if(!this.videoData.isLivePlayback)return this.I4.videoData.YN();var e;return dh(this.videoData)&&((e=this.mediaElement)==null?0:e.isPaused())&&this.videoData.T?(E=this.getCurrentTime(),ecX(this.pY(E)*1E3)+E):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&f9(this.videoData)&&this.videoData.T?E?this.videoData.T.kt||0:this.videoData.T.Dy||0:b7(this.videoData)&&this.videoData.SR&&this.videoData.T?this.videoData.T.YN()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.T? !E&&this.T?this.T.sZ():this.I4.videoData.YN()+this.timestampOffset:this.mediaElement?Pg()?ecX(this.mediaElement.wi().getTime()):Wf(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.z.Hs=function(){if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&f9(this.videoData)){var E;return((E=this.videoData.T)==null?void 0:E.Td)||0}E=this.videoData?this.videoData.Hs()+this.timestampOffset:this.timestampOffset;if(dh(this.videoData)&&this.videoData.T){var e,l=Number((e=this.videoData.progressBarStartPosition)==null?void 0:e.utcTimeMillis)/1E3;e=this.getCurrentTime();e=this.pY(e)-e;if(!isNaN(l)&&!isNaN(e))return Math.max(E,l-e)}return E}; g.z.fA=function(){this.W||this.seekTo(this.Z,{AN:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.z.V_=function(){return this.h0&&!isFinite(this.G)}; g.z.Gz=function(){uqS(this,null);this.pg.dispose();g.a.prototype.Gz.call(this)}; g.z.zX=function(){var E={};this.loader&&Object.assign(E,this.loader.zX());this.mediaElement&&Object.assign(E,this.mediaElement.zX());return E}; g.z.Bt=function(E){this.timestampOffset=E}; g.z.getStreamTimeOffset=function(){return b7(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.z.eE=function(){return this.timestampOffset}; g.z.pY=function(E){return this.videoData&&this.videoData.T?this.videoData.T.pY(E-this.timestampOffset):NaN}; g.z.xV=function(){if(!this.mediaElement)return 0;if(sE(this.videoData)){var E=this.mediaElement,e=E.PG();E=(RW(e)&&E.getDuration()?e.end(e.length-1):0)+this.timestampOffset-this.Hs();e=this.YN()-this.Hs();return Math.max(0,Math.min(1,E/e))}return this.mediaElement.xV()}; g.z.cE=function(E){this.N&&(this.N.T=E)}; g.z.rl=function(E,e){this.I4.wH("requestUtcSeek",{time:E});f9(this.videoData)&&(this.ND=E);var l;(l=this.loader)==null||l.rl(E);e&&(this.Qd=e)}; g.z.H3=function(E){f9(this.videoData)&&(this.ND=void 0);if(this.Qd)this.I4.wH("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Qd}),this.I4.seekTo(this.Qd,{AN:"utcSeekingFallback_streamTime"}),this.Qd=0;else{var e=this.getCurrentTime();isNaN(e)||(E=this.pY(e)-E,e-=E,this.I4.wH("utcSeekingFallback",{source:"estimate",timeSeconds:e}),this.I4.seekTo(e,{AN:"utcSeekingFallback_estimate"}))}}; g.z.WS=function(){this.Qd=0}; g.z.L=function(E){return this.dH&&this.dH.L(E)};g.d(l0,g.a);l0.prototype.start=function(){this.G.start()}; l0.prototype.stop=function(){this.G.stop()}; l0.prototype.clear=function(){for(var E=g.T(this.T.values()),e=E.next();!e.done;e=E.next())e.value.clear()}; l0.prototype.sample=function(){for(var E=g.T(this.Z),e=E.next();!e.done;e=E.next()){var l=g.T(e.value);e=l.next().value;l=l.next().value;this.T.has(e)||this.T.set(e,new U8e(NPG.has(e)));this.T.get(e).update(l())}this.G.start()}; var NPG=new Set(["networkactivity"]);U8e.prototype.update=function(E){this.G?(this.buffer.add(E-this.T||0),this.T=E):this.buffer.add(E)}; U8e.prototype.clear=function(){this.buffer.clear();this.T=0};Om.prototype.t9=function(){return this.started}; Om.prototype.start=function(){this.started=!0}; Om.prototype.reset=function(){this.finished=this.started=!1};var I38=!1;g.d(g.C6,g.sJ);g.z=g.C6.prototype;g.z.Gz=function(){this.logger.debug("dispose");g.pE(this.xp);XpW(this.B7);this.visibility.unsubscribe("visibilitystatechange",this.B7);Tp7(this.L7);g.qE(this.L7);Qx(this);g.rN.EZ(this.BE);this.u1();this.Zr=null;g.qE(this.videoData);g.qE(this.Xn);g.qE(this.p8);g.qE(this.n8);g.Eo(this.otg);this.Ie=null;g.sJ.prototype.Gz.call(this)}; g.z.Kh=function(E,e,l,k,H){if(this.dH.L("html5_log_ad_playback_docid")){var O=this.L7;if(O.qoe){O=O.qoe;var X=this.dH.pg||"yt";g.Xu(O,g.Cq(O.provider),"ad_playback",[E,e,l,H,X])}}else this.L7.Kh(E,e,l);this.L("html5_log_media_perf_info")&&this.wH("adloudness",{ld:k.toFixed(3),cpn:E})}; g.z.oy=function(){var E;return(E=this.loader)==null?void 0:E.oy()}; g.z.sC=function(){var E;return(E=this.loader)==null?void 0:E.sC()}; g.z.UM=function(){var E;return(E=this.loader)==null?void 0:E.UM()}; g.z.yH=function(){var E;return(E=this.loader)==null?void 0:E.yH()}; g.z.hB=function(){return this.videoData.hB()}; g.z.p_=function(){return this.L("html5_not_reset_media_source")&&!this.hB()&&!this.videoData.isLivePlayback&&g.XD(this.videoData)&&!this.dH.supportsGaplessShorts()}; g.z.jt=function(){this.videoData.j&&(this.videoData.l6=this.videoData.l6||this.sz.yd().oy(),this.videoData.fp=this.videoData.fp||this.sz.yd().sC());if(NMp(this.videoData)||!wh(this.videoData)){var E=this.videoData.errorDetail;this.I7(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),E,E,this.videoData.Sc||void 0)}this.L("html5_generate_content_po_token")&&this.ZD();this.L("html5_enable_d6de4")&&this.LZ()}; g.z.getVideoData=function(){return this.videoData}; g.z.Y=function(){return this.dH}; g.z.qX=function(){return this.Ev.qX(this.Zr)}; g.z.Fm=function(){return this.visibility}; g.z.xj=function(){return this.mediaElement&&this.mediaElement.Zs()?this.mediaElement.Zb():null}; g.z.Ps=function(){return this.mediaElement}; g.z.KS=function(){if(this.videoData.errorCode)return!1;this.Y().J&&this.Y().houseBrandUserStatus&&this.wH("hbut",{status:this.Y().houseBrandUserStatus},!0);if(this.videoData.aG())return!0;this.I7("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.z.i6=function(E){(E=E===void 0?!1:E)||wcZ(this.L7);this.qJ=E;!this.KS()||this.Hg.t9()?g.QS(this.dH)&&this.videoData.isLivePlayback&&this.Hg.t9()&&!this.Hg.finished&&!this.qJ&&this.Av():(this.Hg.start(),E=this.L7,g.Cq(E.provider),E.qoe&&QF9(E.qoe),this.Av())}; g.z.Av=function(){if(this.videoData.isLoaded()){var E=this.Xn;g.tJ(E.F6.experiments,"html5_player_min_build_cl")>0&&g.tJ(E.F6.experiments,"html5_player_min_build_cl")>786498154&&wpv(E,"oldplayer");Zs8(this)}else this.videoData.Lw||this.videoData.z8?this.qJ&&g.QS(this.dH)&&this.videoData.isLivePlayback||(this.videoData.Lw?yWy(this.videoData):(E=this.L7,E.qoe&&(E=E.qoe,xK(E,"protected"),E.provider.videoData.W?E.qc():E.provider.videoData.subscribe("dataloaded",E.qc,E)),i4p(this.videoData))):!this.videoData.loading&& this.Zw&&h90(this)}; g.z.ZX=function(E){this.L5=E;this.loader&&(HVX(this.loader,new g.om(E)),this.wH("sdai",{sdsstm:1}))}; g.z.Zv=function(E,e,l){var k;(k=this.loader)==null||k.Zv(E,e,l)}; g.z.s_=E9(8);g.z.isFullscreen=function(){return this.visibility.isFullscreen()}; g.z.isBackground=function(){return this.visibility.isBackground()}; g.z.eN=function(){var E=this;this.logger.debug("Updating for format change");p6(this).then(function(){return Aa(E)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.z.O3=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.i6();this.KS()&&!g.m(this.playerState,128)&&(this.zF.t9()||(this.zF.start(),this.videoData.zx?this.EK(TU(this.playerState,4)):this.EK(TU(TU(this.playerState,8),1))),MJW(this))}; g.z.rT=function(){return this.Hg.finished}; g.z.sendAbandonmentPing=function(){g.m(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.E5(!0),Tp7(this.L7),g.qE(this.L7),g.rN.EZ(this.BE))}; g.z.Wz=function(E,e,l){E=E===void 0?!0:E;(e===void 0||e)&&this.mediaElement&&this.mediaElement.pause();E&&l&&this.loader&&b7(this.videoData)&&this.loader.AC(l);this.EK(E?new g.zU(14):new g.zU)}; g.z.cR=function(){this.L7.pX()}; g.z.I7=function(E,e,l,k,H,O){this.logger.debug(function(){return"set player error: ec="+E+", detail="+H}); var X,A;g.pe(lit,l)?X=l:l?A=l:X="GENERIC_WITHOUT_LINK";k=(k||"")+(";a6s."+gL());if(E==="auth"||E==="drm.auth"||E==="heartbeat.stop")l&&(k+=";r."+l.replaceAll(" ","_")),O&&(k+="sr."+O.replaceAll(" ","_"));e={errorCode:E,errorDetail:H,errorMessage:A||g.tm[X]||"",FK:X,Sc:O||"",jw:k,eQ:e,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=E;xa(this,"dataloaderror");this.EK(GU(this.playerState,128,e));g.rN.EZ(this.BE);Qx(this);this.aF()}; g.z.SH=function(E){this.Gu=this.Gu.filter(function(e){return E!==e}); this.logger.debug(function(){return"set preroll ready for "+E}); this.zF.t9()&&MJW(this)}; g.z.AO=function(){var E;(E=!!this.Gu.length)||(E=this.Gh.T.array[0],E=!!E&&E.start<=-0x8000000000000);return E}; g.z.N5=function(){return this.lN.N5()}; g.z.isPlaying=function(){return this.playerState.isPlaying()}; g.z.eZ=function(){return this.playerState.eZ()&&this.videoData.zx}; g.z.getPlayerState=function(){return this.playerState}; g.z.Jy=function(E){var e;(e=this.loader)==null||e.Jy(E)}; g.z.U3=function(E){var e;(e=this.loader)==null||e.U3(E)}; g.z.getPlayerType=function(){return this.playerType}; g.z.getPreferredQuality=function(){if(this.Zr){var E=this.Zr;E=E.videoData.P_.compose(E.videoData.U0);E=IJ(E)}else E="auto";return E}; g.z.jC=E9(16);g.z.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.z.setMediaElement=function(E){this.logger.debug("set media element");if(this.mediaElement&&E.Zb()===this.mediaElement.Zb()&&(E.isView()||this.mediaElement.isView())){if(E.isView()||!this.mediaElement.isView())this.wg(),this.mediaElement=E,this.mediaElement.I4=this,Xvy(this),this.lN.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.u1();if(!this.playerState.isError()){var e=i3(this.playerState,512);g.m(e,8)&&!g.m(e,2)&&(e=TU(e,1));E.isView()&&(e=i3(e,64));this.EK(e)}this.mediaElement= E;this.mediaElement.I4=this;!g.QS(this.dH)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Xvy(this);this.lN.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Xn.J_()&&mZ7(this.mediaElement)}}; g.z.u1=function(E,e,l){E=E===void 0?!1:E;e=e===void 0?!1:e;l=l===void 0?!1:l;this.logger.debug("remove media element");if(this.mediaElement){var k=this.getCurrentTime();k>0&&(this.lN.Z=k);this.lN.setMediaElement(null);!E&&this.p_()?eGX(this):this.Fu(l);this.loader&&(ec(this.loader),wp(this,e));this.v_.stop();if(this.mediaElement&&(!this.zF.t9()&&!this.Li()||this.playerState.isError()||g.m(this.playerState,2)||this.EK(TU(this.playerState,512)),this.mediaElement)){this.wg();if(E||!this.mediaElement.isView())this.xw.y7("mesv_s"), this.mediaElement.stopVideo(),zx(this);this.mediaElement=this.mediaElement.I4=null}}}; g.z.playVideo=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;var l=this,k,H,O,X,A,C;return g.D(function(p){if(p.G==1){l.logger.debug("start play video");var x=window.google_image_requests;x&&x.length>10&&(window.google_image_requests=x.slice(-10));if(g.m(l.playerState,128))return p.return();if(l.Xn.RW())return l.publish("signatureexpired"),p.return();l.mediaElement&&wcZ(l.L7);l.O3();(g.m(l.playerState,64)||E)&&l.EK(TU(l.playerState,8));return l.zF.finished&&l.mediaElement?l.Zr||!l.mp?p.xt(2):g.S(p, l.mp,3):p.return()}if(p.G!=2&&g.m(l.playerState,128))return p.return();if(!l.videoData.Z)return l.videoData.isLivePlayback&&!g.ig(l.dH.W,!0)?(k="html5.unsupportedlive",H=2):(k=l.videoData.hB()?"fmt.unplayable":"fmt.noneavailable",H=1),g.UJ(Error("selectableFormats")),l.I7(k,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),p.return();if(l.FJ()&&l.videoData.Z.T)return l.logger.debug("rebuild playbackData for airplay"),p.return(p6(l));if(tM(l))x=l.lN,D7(x.videoData)&&!x.isAtLiveHead(x.getCurrentTime())&& x.N5()&&x.I4.seekTo(Infinity,{AN:"seektimeline_peggedToLive",seekSource:34});else if(D7(l.videoData)&&(O=l.getCurrentTime()X;if(!A||!X){O&&A&&(k=Math.max(k,O));var C;O=$mv(e,(C=H.T)==null?void 0:C.videoInfos);C=e.I4.getPlaybackRate();C>1&&O&&(C=eu0(e.dH.W,H.T.videoInfos,C),E.T!==0&&C< E.T&&e.I4.setPlaybackRate(1));var p,x;E=((p=H.videoData.G)==null?void 0:(x=p.video)==null?void 0:x.qualityOrdinal)||0;g.Jw("yt-player-quality",{quality:k,previousQuality:E},31104E3);e.dH.schedule.policy.S=Wm()>=480;if(e.L("html5_exponential_memory_for_sticky")){p=e.dH.AS;x=1;var Q=Q===void 0?!1:Q;D7W(p,"sticky-lifetime");p.values["sticky-lifetime"]&&p.XF["sticky-lifetime"]||(p.values["sticky-lifetime"]=0,p.XF["sticky-lifetime"]=0);Q&&g_(p,"sticky-lifetime")>.0625&&(x=p.XF["sticky-lifetime"]*2);p.values["sticky-lifetime"]+= 1*Math.pow(2,p.T/x);p.XF["sticky-lifetime"]=x;p.S.start()}if(e.L("html5_perf_cap_override_sticky")){Q=e.Z;p=e.L("html5_perserve_av1_perf_cap");p=p===void 0?!1:p;if(p===void 0?0:p){x=oJ();E=g.T(Object.keys(x));for(e=E.next();!e.done;e=E.next())e=e.value,e.indexOf("1")!==0&&delete x[e];g.Jw("yt-player-performance-cap",x,2592E3)}else g.yC("yt-player-performance-cap");exX(p);if(p){p=g.T(qc.keys());for(x=p.next();!x.done;x=p.next())x=x.value,x.startsWith("1")||qc.delete(x);p=g.T(jc.values());for(x=p.next();!x.done;x= p.next())x=x.value,x.startsWith("1")||jc.delete(x);p=g.T(Q.keys());for(x=p.next();!x.done;x=p.next())x=x.value,x.startsWith("1")||Q.delete(x)}else qc.clear(),jc.clear(),Q.clear()}}}this.loader&&(Q=this.loader,l=l||"",Q.policy.T?OR(Q.S.T,l):OR(Q.T.W,l));this.q2()}; g.z.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.T?IJ(this.videoData.P_):j$[Wm()]}; g.z.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.z.setUserAudio51Preference=function(E,e){this.getUserAudio51Preference()!==E&&(this.wH("toggle51",{pref:E}),g.Jw("yt-player-audio51",E,e?31536E3:2592E3),this.eN())}; g.z.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.z.setProximaLatencyPreference=function(E){var e=this.getProximaLatencyPreference();this.wH("proxima",{pref:E});g.Jw("yt-player-proxima-pref",E,31536E3);e!==E&&(E=this.lN,E.Yt=!0,E.I4.seekTo(Infinity,{AN:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.z.getProximaLatencyPreference=function(){var E;return(E=Bm())!=null?E:0}; g.z.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.z.ZD=function(){this.videoData.videoId?this.sz.ZD(this.videoData):this.wH("povid",{})}; g.z.LZ=function(){this.videoData.videoId?this.sz.LZ(this.videoData):this.wH("piavid",{})}; g.z.q2=function(){if(!this.U7()&&!g.m(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.T)u0(this);else{var E=oN(this),e=this.videoData;a:{var l=this.videoData.qM;if(E.T){for(var k=g.T(l),H=k.next();!H.done;H=k.next()){H=H.value;var O=H.getInfo(),X=g.$f[O.video.quality];if((!E.Z||O.video.quality!=="auto")&&X<=E.T){l=H;break a}}l=l[l.length-1]}else l=l[0]}e.gH=l;nL7(this,E.reason,CsZ(this,this.videoData.gH))}if(this.L("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.lN.V= !1,this.playVideo()}}; g.z.Ge=function(E,e){if(this.U7()||g.m(this.playerState,128))return!1;var l,k=!((l=this.videoData.Z)==null||!l.T);l=k&&e?this.getCurrentTime()-this.eE():NaN;if(this.dH.experiments.P5("html5_record_audio_format_intent")){var H=this.L7;if(H.qoe){H=H.qoe;var O=[E.gC.id,isNaN(l)?"m":"t"];g.Xu(H,g.Cq(H.provider),"afi",O)}}if(k)return e&&(k=C6p(this.lN),this.wH("aswh",{id:E.id,xtags:E.xtags,bh:k.toFixed(3)})),this.loader.setAudioTrack(E,l,e),!0;if(suZ(this)){a:{e=this.mediaElement.audioTracks();for(k=0;k< e.length;++k)if(l=e[k],l.label===E.gC.getName()){if(l.enabled){e=!1;break a}e=l.enabled=!0;break a}e=void 0}e&&this.wH("hlsaudio",{id:E.id})}else{a:if(e=this.videoData,e.S&&!bp(e.S)||E===e.Gd||!e.qM||e.qM.length<=0)e=!1;else{k=g.T(e.qM);for(l=k.next();!l.done;l=k.next()){l=l.value;if(!(l instanceof bY)){e=!1;break a}H=E.gC.getId();l.G&&(XFS(l.G,H),l.XS=null)}e.Gd=E;e=!0}e&&Aa(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.wH("hlsaudio",{id:E.id}))}return!0}; g.z.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.z.getAudioTrack=function(){if(suZ(this)){var E=qvZ(this);if(E)return E}return this.videoData.getAudioTrack()}; g.z.xd=function(){return this.videoData.S}; g.z.Vz=function(){if(this.videoData.L("html5_trigger_loader_when_idle_network")&&!this.videoData.sK()&&f9(this.videoData)){var E;(E=this.loader)!=null&&E.iq()}}; g.z.Wp=function(){if(yJ(this.videoData)&&this.videoData.L("html5_gapless_append_early")){var E;(E=this.loader)!=null&&E.iq()}}; g.z.onPlayerRequestSent=function(E){this.sz.onPlayerRequestSent(E)}; g.z.n3=function(E){E=E===void 0?!1:E;if(this.loader){var e=this.loader,l=e.n3;var k=this.videoData;k=k.L("html5_ssdai_use_post_for_media")&&k.enableServerStitchedDai?!1:b7(k)&&k.rR&&!k.isAd();l.call(e,k,E)}}; g.z.Fu=function(E){E=E===void 0?!1:E;this.B5&&(this.logger.debug("remove media source"),YwW(this.B5),this.n3(E),this.B5.dispose(),this.B5=null)}; g.z.T8=function(){return this.B5}; g.z.s3=function(E,e,l,k){function H(X){try{OQZ(O,X,e,l)}catch(A){g.UJ(A),O.handleError(new g.pL("fmt.unplayable",{msi:"1",ename:A&&typeof A==="object"&&"name"in A?String(A.name):void 0,trg:"setmediasrc"},1))}} var O=this;e=e===void 0?!1:e;l=l===void 0?!1:l;kIS(this,k===void 0?!1:k);this.B5=E;this.p_()&&CX(this.B5)==="open"?H(this.B5):ha9(this.B5,H)}; g.z.AT=function(E){this.logger.debug("onNeedKeyInfo");this.Ka.set(E.initData,E);this.NQ&&(this.NQ.AT(E),this.L("html5_eme_loader_sync")||this.Ka.remove(E.initData))}; g.z.tP=function(E){this.videoData.kI=g.J9("auto",E,!1,"u");u0(this)}; g.z.cE=function(E){var e=E.reason,l=E.T.info,k=E.token,H=E.videoId,O=this.L7,X=this.videoData;if(l!==X.S){var A=!X.S;X.S=l;e!=="m"&&e!=="t"&&(e=A?"i":"a");var C=e==="m"||e==="t";this.dH.experiments.P5("html5_refactor_sabr_audio_format_selection_logging")?this.Mp=new GLS(X,l,e,"",k,H):(e=new GLS(X,l,e,"",k),O.qoe&&(O=O.qoe,l=g.Cq(O.provider),GzW(O,l,e)));this.publish("internalaudioformatchange",X,!A&&C)}this.lN.cE(E.T.index)}; g.z.N3=function(E){this.publish("localmediachange",E)}; g.z.Ii=function(E){E=E===void 0?{}:E;var e;(e=this.loader)==null||e.Ii(this.dH,IR(this.videoData),E)}; g.z.RW=function(){return this.Xn.RW()}; g.z.ye=function(E){this.wO(new g.pL("staleconfig",{reason:E}))}; g.z.handleError=function(E){this.Xn.handleError(E)}; g.z.J_=function(){return this.Xn.J_()}; g.z.H3=function(E){this.lN.H3(E)}; g.z.d2=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;var l=this,k,H,O;return g.D(function(X){if(X.G==1){l.loader&&l.loader.c_();l.loader&&l.loader.U7()&&Qx(l);if(l.L("html5_enable_vp9_fairplay")&&l.hB()&&(k=l.videoData.T)!=null)for(var A in k.T)k.T.hasOwnProperty(A)&&(k.T[A].T=null,k.T[A].Z=!1);l.EK(TU(l.playerState,2048));l.publish("newelementrequired");return E?g.S(X,p6(l),2):X.xt(2)}l.videoData.sK()&&((H=l.loader)==null?0:H.h0)&&!tM(l)&&((O=l.isAtLiveHead())&&D7(l.videoData)?l.seekTo(Infinity, {AN:"videoPlayer_getNewElement"}):l.videoData.Af&&l.loader&&(A=l.loader,A.W5.sK&&(A.W5.Af||A.W5.S||A.W5.isPremiere?(A.seek(0,{AN:"loader_resetSqless"}),A.videoTrack.j=!0,A.audioTrack.j=!0,A.videoTrack.W=!0,A.audioTrack.W=!0):Rc(A.W5)&&wA(A))));e&&l.seekTo(0,{seekSource:105});g.m(l.playerState,8)&&l.playVideo();g.$0(X)})}; g.z.oW=function(E){this.wH("hgte",{ne:+E});this.videoData.j=!1;E&&this.d2();this.loader&&fte(this.loader)}; g.z.oC=function(E){this.wH("newelem",{r:E});this.d2()}; g.z.pauseVideo=function(E){E=E===void 0?!1:E;if((g.m(this.playerState,64)||g.m(this.playerState,2))&&!E)if(g.m(this.playerState,8))this.EK($Z(this.playerState,4,8));else if(this.eZ())Aa(this);else return;g.m(this.playerState,128)||(E?this.EK(TU(this.playerState,256)):this.EK($Z(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.RR(this.videoData)&&this.loader&&wp(this,!1)}; g.z.stopVideo=function(){this.pauseVideo();this.loader&&(wp(this,!1),this.loader.Mw())}; g.z.aF=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;if(this.p_()&&e){var l;(l=this.mediaElement)==null||l.aF()}else{var k;(k=this.mediaElement)==null||k.stopVideo()}zx(this);Qx(this);g.m(this.playerState,128)||(E?this.EK(i3(i3(TU(this.playerState,4),8),16)):this.EK(GU(this.playerState)));this.videoData.videoId&&this.dH.c5.remove(this.videoData.videoId)}; g.z.seekTo=function(E,e){e=e===void 0?{}:e;this.logger.debug(function(){return"SeekTo "+E+", "+JSON.stringify(e)}); g.m(this.playerState,2)&&Aa(this);e.kr5&&this.EK(TU(this.playerState,2048));e.seekSource!==58&&e.seekSource!==60||!this.L("html5_update_vss_during_gapless_seeking")||d_y(this.L7,e.seekSource);this.lN.seekTo(E,e);this.Gh.sync()}; g.z.yE=function(E){this.xw.S.G=(0,g.dE)();g.m(this.playerState,32)||(this.EK(TU(this.playerState,32,E==null?void 0:E.seekSource)),g.m(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.oz()}; g.z.FW=function(E){E=E==null?void 0:E.seekSource;g.m(this.playerState,32)?(this.EK($Z(this.playerState,16,32,E)),this.publish("endseeking")):g.m(this.playerState,2)||this.EK(TU(this.playerState,16,E));E=this.xw.S;var e=this.videoData,l=this.playerState.isPaused();if(e.clientPlaybackNonce&&!isNaN(E.T)){if(Math.random()<.01){l=l?"pbp":"pbs";var k={startTime:E.T};e.J&&(k.cttAuthInfo={token:e.J,videoId:e.videoId});Jl("seek",k);g.UX({clientPlaybackNonce:e.clientPlaybackNonce},"seek");isNaN(E.G)||$Q("pl_ss", E.G,"seek");$Q(l,(0,g.dE)(),"seek")}E.reset()}}; g.z.Dh=function(E){this.FW(E)}; g.z.jO=function(){this.publish("SEEK_COMPLETE")}; g.z.lE=function(E){var e=this.sz,l=this.videoData.clientPlaybackNonce,k=this.playerType;if(E.scope===4){var H=E.type;if(H){var O=e.mM(),X=O.getVideoData().clientPlaybackNonce;k===1&&(X=l);if(k=iOv(e,X)){if(l=k.getVideoData())E.writePolicy===2&&l.sabrContextUpdates.has(H)||(E.sendByDefault&&l.ND.add(H),l.sabrContextUpdates.set(H,E)),e.L("html5_enable_t1_enf_on_sabr")&&(E=H===5,H=xkS(l.playerResponse),E?(E=H?1:0,Eu(E,"m.p_",{}),vC("MBSTAT",E)):E=1,E===0&&e.eR.MD("onAbnormalityDetected"))}else O.wH("scuset", {ncpf:"1",ccpn:X,crcpn:l})}else g.UJ(Error("b/380308491: contextUpdateType is undefined"))}}; g.z.bA=function(){if(this.playerType===2)return this.sz.bA("")}; g.z.getCurrentTime=function(E){return this.lN.getCurrentTime(E===void 0?!1:E)}; g.z.Qu=function(){return this.lN.Qu()}; g.z.Zu=function(){return this.lN.Zu()}; g.z.CA=function(){return this.Zu()}; g.z.sZ=function(){return this.lN.sZ()}; g.z.getPlaylistSequenceForTime=function(E){return this.videoData.getPlaylistSequenceForTime(E-this.eE())}; g.z.Zy=function(){var E=NaN;this.mediaElement&&(E=this.mediaElement.Zy());return E>=0?E:this.getCurrentTime()}; g.z.pY=function(){var E;return((E=this.videoData.T)==null?0:E.pY)?this.videoData.T.pY(this.getCurrentTime()-this.eE()):this.mediaElement&&(E=this.mediaElement.wi())&&(E=E.getTime(),!isNaN(E))?E/1E3+this.getCurrentTime():NaN}; g.z.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.eE():this.YN()?this.YN():0}; g.z.Wb=function(){var E=new Ja7;if(this.loader){var e=this.dH.schedule,l=this.dH.f7();l=l===void 0?!1:l;E.o5=e.SR;E.Cl=e.jR;E.bandwidthEstimate=Ys(e);if(l){l=(e.N.NV()*1E3).toFixed();var k=(e.h0.NV()*1E3).toFixed(),H=MA(e).toFixed(2),O=((e.j.NV()||0)*1E9).toFixed(2),X=e.Z.NV().toFixed(0),A=e.fg.NV().toFixed(0),C=e.V.percentile(.5).toFixed(2),p=e.V.percentile(.92).toFixed(2),x=e.V.percentile(.96).toFixed(2),Q=e.V.percentile(.98).toFixed(2);e.T?e.T.reset():e.T=new SL;e.T.add(e.Qd);e.T.add(e.interruptions.length); for(var W=0,B=e.interruptions.length-1;B>=0;B--){var w=e.interruptions[B];e.T.add(w-W);W=w}W=0;for(B=e.S.length-1;B>=0;B--){w=e.S[B];var U=w.stamp/36E5;e.T.add(U-W);W=U;e.T.add(w.net/1E3);e.T.add(w.max)}e=e.T.rG();E.T={ttr:l,ttm:k,d:H,st:O,bw:X,abw:A,v50:C,v92:p,v96:x,v98:Q,"int":e}}kF9(this.loader,E)}else this.mediaElement&&(E.Ml=Bf(this.mediaElement));E.o5=this.o5;E.Cl=this.Cl;E.Z=this.isAtLiveHead()&&this.isPlaying()?a39(this):NaN;return E}; g.z.c8=function(E,e){this.Cl+=E;this.o5+=e}; g.z.xV=function(){return this.mediaElement?g.RR(this.videoData)?1:sE(this.videoData)?this.isAtLiveHead()||this.N5()?1:this.lN.xV():this.mediaElement.xV():0}; g.z.OC=function(){var E=this.Fc,e=Hc(E,"bandwidth"),l=Hc(E,"bufferhealth"),k=Hc(E,"livelatency"),H=Hc(E,"networkactivity"),O=ka(E,"bandwidth"),X=ka(E,"bufferhealth"),A=ka(E,"livelatency");E=ka(E,"networkactivity");var C=this.Bb(),p=C.droppedVideoFrames;C=C.totalVideoFrames;var x=this.getCurrentTime();if(this.NQ){var Q="IT/"+(this.NQ.T.getInfo()+"/"+IJ(this.FR()));Q+="/"+this.NQ.getInfo()}else Q="";var W=this.isGapless(),B=this.Tf(),w=this.Q_(),U=g.Bc(this),c=this.getPlayerState(),V=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var F=0;var r="";if(this.L5){if(this.L5.k7){r="D,";break a}F=this.L5.IW;r=this.L5.yQ.substring(0,4)}F>0?(F="AD"+F+", ",r&&(F+=r+", "),r=F):r=""}return{r4:O,g1:X,currentTime:x,NE:Q,droppedVideoFrames:p,isGapless:W,Tf:B,u$:w,MF:e,PO:l,HO:k,zA:H,vO:A,ek:E,jX:U,playerState:c,C$:V,sL:r,totalVideoFrames:C}}; g.z.zX=function(E){var e={};if(E===void 0?0:E){Object.assign(e,this.L7.zX());this.mediaElement&&(Object.assign(e,this.mediaElement.zX()),E=this.Bb(),e.dvf=E.droppedVideoFrames,e.tvf=E.totalVideoFrames);this.loader&&Object.assign(e,this.loader.zX());this.NQ&&(e.drm=JSON.stringify(this.NQ.zX()));e.state=this.playerState.state.toString(16);g.m(this.playerState,128)&&(e.debug_error=JSON.stringify(this.playerState.Bf));this.AO()&&(e.prerolls=this.Gu.join(","));this.videoData.hN&&(e.ismb=this.videoData.hN); this.videoData.latencyClass!=="UNKNOWN"&&(e.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(e.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)e.is_mosaic=1;this.videoData.cotn&&(e.is_offline=1,e.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(e.playerResponseCpn=this.videoData.playerResponseCpn);this.sz.isOrchestrationLeader()&&(e.leader=1);this.videoData.isLivePlayback&& (this.videoData.T&&Yw(this.videoData.T)&&(e.segduration=Yw(this.videoData.T)),E=this.lN,e.lat=E.N?NpX(E.N.S):0,e.liveutcstart=this.videoData.liveUtcStartSeconds);e.relative_loudness=this.videoData.yf.toFixed(3);if(E=g.Bc(this))e.optimal_format=E.video.qualityLabel;e.user_qual=Wm();e.release_version=u[27]}e.debug_videoId=this.videoData.videoId;return e}; g.z.addCueRange=function(E){this.OV([E])}; g.z.removeCueRange=function(E){this.Gh.yh([E])}; g.z.yO=function(){this.Gh.sync()}; g.z.wc=function(E,e){return this.Gh.wc(E,e)}; g.z.OV=function(E,e){this.Gh.qQ(E,e)}; g.z.gI=function(E){this.Gh.yh(E)}; g.z.Eq=function(){return this.Gh.Eq()||[]}; g.z.zb=function(){return this.BX}; g.z.FJ=function(){return this.visibility.FJ()}; g.z.Ki=function(){this.mediaElement&&this.mediaElement.Ki()}; g.z.iY5=function(){xa(this)}; g.z.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.z.wg=function(){g.iG(this.yC)}; g.z.oND=function(){this.oz();this.publish("onLoadProgress",this.xV())}; g.z.UB=function(E){var e=E.target.Ir();if(this.mediaElement&&this.mediaElement.Ir()&&this.mediaElement.Ir()===e){wvW(this,E.type);switch(E.type){case "error":var l=wi(this.mediaElement)||"",k=this.mediaElement.K0();if(l==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.wH("capchg",{msg:k}),this.d2(!0)):p6(this);return}if(this.mediaElement.hasError()&&Qmy(this.Xn,l,{msg:k,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.tB()===4){this.aF();Wc(this,"unplayable"); return}break;case "durationchange":l=this.mediaElement.getDuration();isFinite(l)&&(!this.B5||l>0)&&l!==1&&this.qO(l);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Smy(this.Gh);this.L7.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":dwS(this);this.publish("onLoadedMetadata");AHl(this);l=this.pY();this.videoData.Oo&&(this.videoData.Oo=l);break;case "loadstart":AHl(this);break;case "progress":case "suspend":this.ZS.pN(); break;case "playing":this.xw.y7("plev");this.jI&&!tM(this)&&(this.jI=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{AN:"videoplayer_onPlaying"})));break;case "timeupdate":l=this.mediaElement&&!this.mediaElement.getCurrentTime();k=this.mediaElement&&this.mediaElement.I9()===0;if(l&&(!this.JF||k))return;this.JF=this.JF||!!this.mediaElement.getCurrentTime();u$8(this);this.oz();if(!this.mediaElement||this.mediaElement.Ir()!==e)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.u2().length>0&&this.mediaElement.PG().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.I9()>2||!this.mediaElement.isSeeking()&&gB(this.mediaElement.PG(),this.mediaElement.getCurrentTime()))&&(l=this.mediaElement.zX(),l.bh=Bf(this.mediaElement).toFixed(3),this.wH("uwe",l));break;case "resize":dwS(this); this.videoData.G&&this.videoData.G.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.DA&&g.m(this.playerState,8)&&!g.m(this.playerState,1024)&&this.getCurrentTime()===0&&g.pA){Wc(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ir()===e){Tc7(this.lN,E);this.publish("videoelementevent",E);e=this.playerState;k=this.cS;var H=this.mediaElement;l=this.videoData.clientPlaybackNonce;if(!g.m(e,128)){var O=e.state; H=H?H:E.target;var X=H.getCurrentTime();if(!g.m(e,64)||E.type!=="ended"&&E.type!=="pause"){var A=H.getDuration();A=H.isEnded()||X>1&&Math.abs(X-A)<1.1;var C=E.type==="pause"&&H.isEnded();X=E.type==="ended"||E.type==="waiting"||E.type==="timeupdate"&&!g.m(e,4)&&!hM(k,X);if(C||A&&X)H.IC()>0&&H.Ir()&&(O=14);else switch(E.type){case "error":wi(H)&&(O|=128);break;case "pause":g.m(e,256)?(O^=256)||(O=64):g.m(e,32)||g.m(e,2)||g.m(e,4)||(O=4,g.m(e,1)&&g.m(e,8)&&(O|=1));break;case "playing":X=O;O=(O|8)&-1093; X&4?(O|=1,di(k,H,!0)):hM(k,H.getCurrentTime())&&(O&=-2);g.m(e,1)&&di(k,H)&&(O|=1);break;case "seeking":O|=16;g.m(e,8)&&(O|=1);O&=-3;break;case "seeked":O&=-17;di(k,H,!0);break;case "waiting":g.m(e,2)||(O|=1);di(k,H);break;case "timeupdate":X=g.m(e,16),A=g.m(e,4),(g.m(e,8)||X)&&!A&&hM(k,H.getCurrentTime())&&(O=8),di(k,H)&&(O|=1)}}k=O;O=null;k&128&&(O=E.target,H=wi(O),X=1,H?(H==="capability.changed"&&(X=2),A="GENERIC_WITHOUT_LINK",C=O.zX(),C.mediaElem="1",C.trg="melem",/AUDIO_RENDERER/.test(O.K0())&& (A="HTML5_AUDIO_RENDERER_ERROR"),O={errorCode:H,errorMessage:g.tm[A]||"",FK:A,jw:CL(C),eQ:X,cpn:e.Bf?e.Bf.cpn:""}):O=null,O&&(O.cpn=l));e=GU(e,k,O)}!g.m(this.playerState,1)&&g.m(e,1)&&o1X(this,"evt"+E.type);this.EK(e)}}}; g.z.fMM=function(E){E=E.T.availability==="available";E!==this.BX&&(this.BX=E,this.publish("airplayavailabilitychange"))}; g.z.UDt=function(){var E=(0,g.dE)(),e=this.mediaElement.FJ();this.wH("airplay",{ia:e});!e&&!isNaN(this.PX)&&E-this.PX<2E3||(this.PX=E,e!==this.FJ()&&(E=this.visibility,E.T!==e&&(E.T=e,E.B7()),this.wH("airplay",{rbld:e}),this.eN()),this.publish("airplayactivechange"))}; g.z.h9=function(E){if(this.loader){var e=this.loader,l=e.Z,k=e.getCurrentTime(),H=Date.now()-l.V;l.V=NaN;l.wH("sdai",{adfetchdone:E,d:H});E&&!isNaN(l.j)&&l.G!==3&&nI(l.loader,k,l.j,l.J);l.policy.G?l.W=NaN:l.S=NaN;KI(l,4,l.G===3?"adfps":"adf");ec(e)}}; g.z.q$=function(){g.pE(this.xp);this.v_.stop();this.videoData.kt=!0;this.dH.wD=!0;this.dH.In=0;var E=this.Xn;if(E.videoData.G){var e=E.F6.W,l=E.videoData.G.DM;e.S.has(l)&&(e.S.delete(l),e.G=!0)}E.T.stop();this.Um();g.m(this.playerState,8)&&this.EK(i3(this.playerState,65));this.qJ=!1;E=this.L7;E.T&&H6S(E.T);E.G&&(E=E.G,e=g.Cq(E.provider),E.T<0&&(E.T=e,E.delay.start()),E.G=e,E.S=e);g.ZC(this.p8);this.publish("playbackstarted");(E=g.eS("yt.scheduler.instance.clearPriorityThreshold"))?E():gO(0)}; g.z.Um=function(){var E=this.sz.mU(),e={},l={};!cz("pbs",this.xw.timerName)&&pd.measure&&pd.getEntriesByName&&(pd.getEntriesByName("mark_nr")[0]?Cr7("mark_nr"):Cr7());E.videoId&&(e.videoId=E.videoId);E.clientPlaybackNonce&&!this.L("web_player_early_cpn")&&(e.clientPlaybackNonce=E.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(l.isPausedOnLoad=!0);l.itag=E.G?Number(E.G.itag):-1;E.w2&&(l.preloadType=String(this.w7?2:1));e.liveStreamMode=Fh$[Y7(E)];e.playerInfo=l;this.xw.infoGel(e); if(this.loader){E=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(E.Z&&(e=window.performance.getEntriesByName(E.Z),e.length&&(e=e[0],E.tick("vri",e.fetchStart),E.tick("vdns",e.domainLookupEnd),E.tick("vreq",e.requestStart),E.tick("vrc",e.responseEnd))),E.G&&(e=window.performance.getEntriesByName(E.G),e.length&&(e=e[0],E.tick("ari",e.fetchStart),E.tick("adns",e.domainLookupEnd),E.tick("areq",e.requestStart),E.tick("arc",e.responseEnd))));E=E.ticks;for(var k in E)E.hasOwnProperty(k)&& this.xw.tick(k,E[k])}}; g.z.oz=function(E){var e=this;E=E===void 0?!1:E;if(this.mediaElement&&this.videoData){pGv(this.lN,this.isPlaying());var l=this.getCurrentTime();if(this.loader&&(g.m(this.playerState,4)&&g.RR(this.videoData)||g.m(this.playerState,32)&&f9(this.videoData)||XIe(this.loader,l),this.L("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var k;this.wH("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(k=this.loader)==null?void 0:k.currentTime},!0)}l> 5&&(this.lN.Z=l);(k=g.mW())?g.rN.EZ(this.BE):g.CE(this.BE);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||dh(this.videoData))&&!g.m(this.playerState,128)){var O=function(){if(e.mediaElement&&!g.m(e.playerState,128)){e.dH.f7()&&wvW(e,"pfx");var X=e.getCurrentTime();e.L("html5_buffer_underrun_transition_fix")&&(X-=e.eE());var A=Bf(e.mediaElement),C=g.m(e.playerState,8),p=hM(e.cS,X),x=tPp(e.cS,X,(0,g.dE)(),A);C&&p?e.EK(i3(e.playerState,1)):C&&x?(C=e.getDuration(),p=D7(e.videoData), C&&Math.abs(C-X)<1.1?(e.wH("setended",{ct:X,bh:A,dur:C,live:p}),e.mediaElement.cV()?(e.logger.debug("seek to 0 because of looping"),e.seekTo(0,{AN:"videoplayer_loop",seekSource:37})):e.Wz()):(e.playerState.isBuffering()||o1X(e,"progress_fix"),e.EK(TU(e.playerState,1)))):(C&&!p&&!x&&X>0&&(C=(Date.now()-e.TC)/1E3,p=e.getDuration(),X>p-1&&e.wH("misspg",{t:X.toFixed(2),d:p.toFixed(2),r:C.toFixed(2),bh:A.toFixed(2)})),e.playerState.isPaused()&&e.playerState.isBuffering()&&Bf(e.mediaElement)>5&&e.EK(i3(e.playerState, 1)));e.oz()}}; this.mediaElement.u2().length===0?this.BE=k?g.rN.b1(O,100):g.uM(O,100):this.BE=k?g.rN.b1(O,500):g.uM(O,500)}this.videoData.je=l;!E&&this.isPlaying()&&pvW(this);SY9(this.Ev,this.Zr,this.Ps(),this.isBackground())&&u0(this);this.publish("progresssync",E);H&&dh(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.z.l5=function(){this.I7("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.z.Q_=function(){return this.L7.Q_()}; g.z.tG=function(){return this.loader?this.loader.tG():Ys(this.dH.schedule,!0)}; g.z.EK=function(E){if(!g.U$(this.playerState,E)){this.logger.debug(function(){return"Setting state "+E.toString()}); var e=new g.H2(E,this.playerState);this.playerState=E;zGe(this);var l=!this.oa.length;this.oa.push(e);var k=this.mediaElement&&this.mediaElement.isSeeking();g.Xh(e,1)&&this.loader&&ItW(this.loader);k=e.oldState.state===8&&!k;g.Xh(e,1)&&k&&g.m(this.playerState,8)&&!g.m(this.playerState,64)&&this.loader&&(F$X(this.loader),this.mediaElement&&Bf(this.mediaElement)>=5&&fa7(this.Ev,this.Zr)&&u0(this));(k=g.tJ(this.dH.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.m(E,1)&&(g.m(E,8)||g.m(E, 16))?this.Rh.start(k):this.Rh.stop();(Ou(e,8)<0||g.Xh(e,1024))&&this.v_.stop();!g.Xh(e,8)||this.videoData.kt||g.m(e.state,1024)||this.v_.start();g.m(e.state,8)&&Ou(e,16)<0&&!g.m(e.state,32)&&!g.m(e.state,2)&&this.playVideo();g.m(e.state,2)&&sE(this.videoData)&&(this.qO(this.getCurrentTime()),this.oz(!0));g.Xh(e,2)&&(this.E5(!0),this.dH.f7()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&f9(this.videoData)&&this.videoData.T&&(k={minst:""+this.videoData.T.Td,cminst:""+(this.videoData.T.Hs()+ this.eE()),maxst:""+this.videoData.T.Dy,hts:""+this.videoData.T.kt,cmaxst:""+(this.videoData.T.YN()+this.eE())},this.wH("sabrSeekableBoundaries",k)));g.Xh(e,128)&&this.aF();this.videoData.T&&this.videoData.isLivePlayback&&!this.KT&&(Ou(e,8)<0?rpS(this.videoData.T):g.Xh(e,8)&&this.videoData.T.resume());AmS(this.lN,e);GxS(this.L7,e);if(l&&!this.U7())try{for(var H=g.T(this.oa),O=H.next();!O.done;O=H.next()){var X=O.value;rap(this.Gh,X);this.publish("statechange",X)}}finally{this.oa.length=0}}}; g.z.Wt=function(){this.xw.tick("qoes")}; g.z.fA=function(){this.lN.fA()}; g.z.Pp=function(E,e,l,k){a:{var H=this.Xn;k=k===void 0?"LICENSE":k;l=l.substring(0,256);var O=xf(e);E==="drm.keyerror"&&this.NQ&&this.NQ.G.keys.length>1&&H.S<96&&(E="drm.sessionlimitexhausted",O=!1);var X=H.F6.experiments.P5("html5_retry_on_drm_unavailable"),A=H.F6.experiments.P5("html5_retry_on_drm_key_error"),C=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(X&&E==="drm.unavailable"||A&&E==="drm.keyerror"&&!l.match(C))H.wO("qoe.restart",{retryOnDrmError:1,e:E,detail:l}),H.I4.d2(!0);else{if(O)if(H.videoData.G&& H.videoData.G.video.isHdr())dmW(H,E);else{if(H.I4.I7(E,e,k,l),CdX(H,{detail:l}))break a}else H.wO(E,{detail:l});E==="drm.sessionlimitexhausted"&&(H.wH("retrydrm",{sessionLimitExhausted:1}),H.S++,B10(H.I4))}}}; g.z.xNg=function(){var E=this,e=g.tJ(this.dH.experiments,"html5_license_constraint_delay"),l=gv();e&&l?(e=new g.Nx(function(){E.q2();xa(E)},e),g.L(this,e),e.start()):(this.q2(),xa(this))}; g.z.G0=function(E){this.publish("heartbeatparams",E)}; g.z.EM=function(E){this.wH("keystatuses",bwZ(E));var e="auto",l=!1;this.videoData.G&&(e=this.videoData.G.video.quality,l=this.videoData.G.video.isHdr());a:{switch(e){case "highres":case "hd2880":e="UHD2";break;case "hd2160":case "hd1440":e="UHD1";break;case "hd1080":case "hd720":e="HD";break;case "large":case "medium":case "small":case "light":case "tiny":e="SD";break;default:e="";break a}l&&(e+="HDR")}e=TL(E)?id(E,e):E.S.includes(e);if(this.L("html5_enable_vp9_fairplay")){if(l)if(E.j){var k;if((k= this.NQ)==null?0:A1(k.T))if((l=this.NQ)==null)l=0;else{for(var H=k=void 0,O=g.T(l.G.values()),X=O.next();!X.done;X=O.next())X=X.value,k||(k=PV9(X,"SD")),H||(H=PV9(X,"AUDIO"));l.Fz({sd:k,audio:H});l=k==="output-restricted"||H==="output-restricted"}else l=!e;if(l){this.wH("drm",{dshdr:1});dmW(this.Xn);return}}else{this.videoData.Kq||(this.videoData.Kq=!0,this.wH("drm",{dphdr:1}),this.d2(!0));return}var A;if((A=this.NQ)==null?0:A1(A.T))return}else if(A=E.j&&e,l&&!A){dmW(this.Xn);return}e||id(E,"AUDIO")&& id(E,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),E=bwZ(E),this.Aj?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.I7("drm.keyerror",2,void 0,"info."+E)):(this.Aj=!0,this.wO(new g.pL("qoe.restart",Object.assign({},{retrydrm:1},E))),u0(this),B10(this)))}; g.z.hI3=function(){if(!this.videoData.kt&&this.mediaElement&&!this.isBackground()){var E="0";this.mediaElement.I9()>0&&Bf(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.T&&(this.EK(TU(this.playerState,1)),o1X(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),E="1");zGe(this);var e=this.videoData.Z;E={restartmsg:E,mfmt:!c$(this.videoData),mdrm:!(!(e&&e.videoInfos&&e.videoInfos.length&&e.videoInfos[0].oG)||this.NQ),mfmtinfo:!this.videoData.G,prerolls:this.AO()?this.Gu.join(","): "0"};if(this.NQ){e=this.NQ;if(e.G.size<=0){var l="ns;";e.V||(l+="nr;");e=l+="ql."+e.Z.length}else e=bwZ(e.G.values().next().value),e=CL(e);E.drmp=e}var k;Object.assign(E,((k=this.loader)==null?void 0:k.zX())||{});var H;Object.assign(E,((H=this.mediaElement)==null?void 0:H.zX())||{});this.L7.wO("qoe.start15s",CL(E));this.publish("loadsofttimeout")}}; g.z.qO=function(E){this.videoData.lengthSeconds!==E&&(this.videoData.lengthSeconds=E,xa(this))}; g.z.E5=function(E,e){var l=this;E=E===void 0?!1:E;if(!this.gi)if(cz("att_s","player_att")||I6("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var H,O,X,A;return g.D(function(C){switch(C.G){case 1:if(!(H=E)){C.xt(2);break}return g.S(C,g.Pr7(),3);case 3:H=!C.T;case 2:if(H)return C.return();g.U9(C,4);O=$_y(l.L7);if(!O)throw Error();X={};return g.S(C,g.vPX((X.cpn=l.videoData.clientPlaybackNonce,X.encryptedVideoId=l.videoData.videoId||"",X),3E4),6);case 6:A=C.T;if(l.gi)throw Error(); if(!A.challenge)throw g.UJ(Error("Not sending attestation ping; no attestation challenge string")),Error();l.gi=!0;var p=[A.challenge];A.error?p.push("r1c="+A.error):A.webResponse&&p.push("r1a="+A.webResponse);var x;((x=A.adblockReporting)==null?void 0:x.reportingStatus)!==void 0&&p.push("r6a="+A.adblockReporting.reportingStatus);var Q;((Q=A.adblockReporting)==null?void 0:Q.broadSpectrumDetectionResult)!==void 0&&p.push("r6b="+A.adblockReporting.broadSpectrumDetectionResult);O(p.join("&"));I6("att_f", void 0,"player_att");g.jp(C,0);break;case 4:g.FW(C),I6("att_e",void 0,"player_att"),g.$0(C)}})})().then(function(){e==null||e()}); else{var k=new g.YC9(this.videoData);if("c1a"in k.m8&&!g.tR.isInitialized()){I6("att_wb",void 0,"player_att");this.mO===2&&Math.random()<.01&&g.UJ(Error("Botguard not available after 2 attempts"));if(E)return;if(this.mO<5){g.ZC(this.n8);this.mO++;return}}(k=g.mkW(k))?(I6("att_f",void 0,"player_att"),i6W(this.L7,k),this.gi=!0):I6("att_e",void 0,"player_att")}}; g.z.cn=function(E){E=E===void 0?!1:E;return D7(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.N5()||g.RR(this.videoData))?this.getCurrentTime():this.YN(E)}; g.z.TF=function(){return this.Hs()}; g.z.YN=function(E){return this.lN.YN(E===void 0?!1:E)}; g.z.Hs=function(){return this.lN.Hs()}; g.z.eE=function(){return this.lN?this.lN.eE():0}; g.z.getStreamTimeOffset=function(){return this.lN?this.lN.getStreamTimeOffset():0}; g.z.q5=function(){var E=0;this.dH.L("web_player_ss_media_time_offset")&&(E=this.getStreamTimeOffset()===0?this.eE():this.getStreamTimeOffset());return E}; g.z.setPlaybackRate=function(E){var e;this.playbackRate!==E&&$mv(this.Ev,(e=this.videoData.Z)==null?void 0:e.videoInfos)&&(this.playbackRate=E,u0(this));this.playbackRate=E;this.mediaElement&&this.mediaElement.setPlaybackRate(E)}; g.z.getPlaybackRate=function(){return this.playbackRate}; g.z.getPlaybackQuality=function(){var E="unknown";if(this.videoData.G&&(E=this.videoData.G.video.quality,E==="auto"&&this.mediaElement)){var e=this.xj();e&&e.videoHeight>0&&(E=ip(e.videoWidth,e.videoHeight))}return E}; g.z.isHdr=function(){return!!(this.videoData.G&&this.videoData.G.video&&this.videoData.G.video.isHdr())}; g.z.sendVideoStatsEngageEvent=function(E,e){var l=this.L7;l.T?(l=rC(l.T,"engage"),l.SR=E,l.send(e)):e&&e()}; g.z.wB=function(E){return this.L7.wB(E)}; g.z.isAtLiveHead=function(E,e){e=e===void 0?!1:e;return D7(this.videoData)&&(this.V8||e)?this.lN.isAtLiveHead(E):!1}; g.z.hO=function(){var E=this.YN(),e=this.getCurrentTime(),l;(l=!D7(this.videoData))||(l=this.lN,l=!(l.T&&l.T.Z));return l||this.N5()||isNaN(E)||isNaN(e)?0:Math.max(0,E-e)}; g.z.Rl=function(E){(this.V8=E)||this.v_.stop();this.videoData.T&&(E?this.videoData.T.resume():rpS(this.videoData.T));if(this.loader){var e=this.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&this.Li()&&this.videoData.isLivePlayback;E&&!e?this.loader.resume():wp(this,!0)}g.m(this.playerState,2)||E?g.m(this.playerState,512)&&E&&this.EK(i3(this.playerState,512)):this.EK(TU(this.playerState,512));e=this.L7;e.qoe&&(e=e.qoe,g.Xu(e,g.Cq(e.provider),"stream",[E?"A":"I"]))}; g.z.Ct=function(E){this.L7.wO("player.exception",CL({n:E.name,m:E.message}))}; g.z.Vs=E9(22);g.z.jM=E9(51);g.z.By=function(E){this.L7.By(E)}; g.z.yq=function(E){this.L7.yq(E)}; g.z.MC=function(E){this.L7.MC(E)}; g.z.yR=E9(28);g.z.Cw=E9(34);g.z.s2=function(E){this.L7.s2(E)}; g.z.AC=function(E,e,l,k){this.L7.AC(E,e,l,k)}; g.z.V3=function(){this.wH("hidden",{},!0)}; g.z.Bb=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.z.qx=function(){return this.loader?this.loader.qx():!0}; g.z.setLoop=function(E){this.loop=E;this.mediaElement&&!g.QS(this.dH)&&this.mediaElement.setLoop(E)}; g.z.cV=function(){return this.mediaElement&&!g.QS(this.dH)?this.mediaElement.cV():this.loop}; g.z.Bt=function(E){this.wH("timestamp",{o:E.toString()});this.lN.Bt(E)}; g.z.Rz=function(E){this.xw.tick(E)}; g.z.Ec=function(E){return this.xw.Ec(E)}; g.z.y7=function(E){this.xw.y7(E)}; g.z.wH=function(E,e,l){this.L7.wH(E,e,l===void 0?!1:l)}; g.z.wK=function(E,e,l){this.L7.wH(E,e,l===void 0?!1:l)}; g.z.wO=function(E){this.L7.wO(E.errorCode,CL(E.details));E=E.errorCode;if(this.videoData.isLivePlayback&&(E==="qoe.longrebuffer"||E==="qoe.slowseek")||E==="qoe.restart"){E=this.loader?wi0(this.loader.videoTrack):{};var e,l;this.wH("lasoe",Object.assign(this.loader?wi0(this.loader.audioTrack):{},(e=this.B5)==null?void 0:(l=e.T)==null?void 0:l.YH()));var k,H;this.wH("lvsoe",Object.assign(E,(k=this.B5)==null?void 0:(H=k.G)==null?void 0:H.YH()))}if(this.L("html5_log_centralized_player_time")){var O;this.wH("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(O=this.loader)==null?void 0:O.currentTime})}}; g.z.cz=function(E,e,l){this.L7.cz(E,e,l)}; g.z.A3=function(E,e,l,k,H,O,X,A){var C;if((C=this.videoData.T)!=null&&C.isLive){var p=e.playerType===2?e:E,x=E.videoData.videoId,Q=e.videoData.videoId;if(x&&Q){C=this.L7;if(C.qoe){var W=C.qoe,B=E.cpn,w=e.cpn,U=p.videoData.f0,c=W.provider.videoData.clientPlaybackNonce,V=W.provider.videoData.videoId,F=w!==c&&Q!==V;c=B!==c&&x!==V;W.reportStats();W.adCpn&&W.adCpn!==B||(W.adCpn=c?B:"",W.OW=c?x:"",W.adFormat=c?U:void 0,Th7(W,O?4:H?2:0,w,Q,k),W.reportStats(),W.adCpn=F?w:"",W.OW=F?Q:"",W.adFormat=F?U:void 0, Th7(W,O?5:H?3:1,B,x,l),W.reportStats())}l=E.cpn;if(C.Z.has(l)){if(H=C.Z.get(l),vp(H,!0).send(),bd(H),l!==C.provider.videoData.clientPlaybackNonce){pc8(H);var r;(r=C.T)==null||O6X(r);C.Z.delete(l)}}else C.Yz=C.provider.videoData.clientPlaybackNonce,C.Yz&&C.T&&(C.Z.set(C.Yz,C.T),vp(C.T).send(),bd(C.T));r=e.cpn;p=p.videoData;k-=this.q5();if(C.Z.has(r)){k=C.Z.get(r);var P=k.Z&&isNaN(k.W)?Da(k):NaN;k=C0X(k,!1);isNaN(P)||(k.j=P);k.send()}else k=U_X(C,C.provider,p,k),C.Z.set(r,k),x_Z(k,new g.H2(TU(new g.zU, 8),new g.zU)),H6S(k),(P=C.T)==null||bd(P);C.Yz=r;if(this.L("html5_unify_csi_server_stitched_transition_logging")){if(C=this.xw,P=e.cpn,k=this.videoData.clientPlaybackNonce,e=e.videoData,E=(E.cpn===k?"video":"ad")+"_to_"+(P===k?"video":"ad"),E!=="video_to_ad"){k=E==="ad_to_video"?void 0:e;p=k==null?void 0:k.BC;r={};if(e==null?0:e.J)r.cttAuthInfo={token:e.J,videoId:e.videoId};X&&(r.startTime=X);Jl(E,r);var N,R,K;X={targetVideoId:(N=e==null?void 0:e.videoId)!=null?N:"empty_video",targetCpn:P,adVideoId:(R= k==null?void 0:k.videoId)!=null?R:"empty_video",adClientPlaybackNonce:(K=p==null?void 0:p.cpn)!=null?K:k==null?void 0:k.clientPlaybackNonce};p&&(X.adBreakType=p.adBreakType,X.adType=p.adType);g.UX(X,E);Jm(C,A,E)}}else N=this.xw,K=this.videoData.clientPlaybackNonce,R=e.videoData,K=(E.cpn===K?"video":"ad")+"_to_"+(e.cpn===K?"video":"ad"),E={},R.J&&(E.cttAuthInfo={token:R.J,videoId:R.videoId}),X&&(E.startTime=X),Jl(K,E),g.UX({targetVideoId:R.videoId,targetCpn:e.cpn,isSsdai:!0},K),X||Jm(N,A,K)}}else this.logger.T(360717806, "SSTEvent for nonSS")}; g.z.Bv=function(){var E=this.sz,e=E.tj;E.tj=[];return e}; g.z.Vv=function(E){this.videoData.Cu=!0;this.wO(new g.pL("sabr.fallback",E));this.d2(!0)}; g.z.A_=function(E,e){this.videoData.xs=!0;if(e===void 0||e)this.wO(new g.pL("qoe.restart",E)),this.d2(!0);this.videoData.Z0()&&this.L("html5_reload_caption_on_ssdai_fallback")&&this.sz.RB()}; g.z.BW=function(E){this.wH("sdai",{aftimeout:E});this.wO(new g.pL("ad.fetchtimeout",{timeout:E}))}; g.z.O5=function(E,e){this.wH("timelineerror",E);E=new g.pL("dai.timelineerror",E);e?this.I7("dai.timelineerror",1,"RETRYABLE_ERROR",CL(E.details)):this.wO(E)}; g.z.iH=function(){return g.Cq(this.L7.provider)}; g.z.getPlayerSize=function(){return this.Bi.getPlayerSize()}; g.z.pI=function(){return this.Bi.pI()}; g.z.VR=function(){return this.xw}; g.z.ZN=function(){return this.sz.ZN()}; g.z.getVolume=function(){return this.sz.getVolume()}; g.z.PQ=function(){return this.sz.PQ()}; g.z.isMuted=function(){return this.sz.isMuted()}; g.z.un=function(){return this.sz.un()}; g.z.n6=function(){this.KT=!0}; g.z.L=function(E){return this.dH.L(E)}; g.z.uy=function(E,e,l,k,H){this.wH("xvt",{m:E,g:e?1:0,tt:l?1:0,np:k?1:0,c:H})}; g.z.Yp=function(){var E;(E=this.loader)==null||E.resume()}; g.z.Li=function(){return g.i_(this.Gu,"ad")}; g.z.Ow=function(){var E=this.getCurrentTime(),e=E-this.eE();var l=this.mediaElement?nL(this.mediaElement.PG()):0;l=Math.floor(Math.max(l-e,0))+100;var k;return((k=this.loader)==null?0:k.Ow(e,l))?(this.wH("sdai",{skipad:1,ct:e.toFixed(3),adj:l.toFixed(3)}),f9(this.videoData)&&this.loader.seek(e+l,{seekSource:89,AN:"videoplayer_skipServerStitchedAd"}),$8X(this.lN,E),!0):!1}; g.z.f7=function(){return this.dH.f7()}; g.z.AQ=function(){if(this.L("html5_generate_content_po_token"))return this.videoData.Wo||"";this.sz.C4();return this.dH.W7||""}; g.z.nu=function(){if(this.videoData.videoId)return this.videoData.PF}; g.z.jH=function(){return this.videoData.videoId}; g.z.e6=function(){return this.sz.JT}; g.z.F5=function(){return this.qJ}; g.z.oe=function(){return this.sz.oe()}; g.z.rl=function(E,e,l){this.EK(TU(this.playerState,16,l));this.lN.rl(E,e)}; g.z.prefetchKeyPlay=function(){}; g.z.WS=function(){this.lN.WS()}; g.z.eO=function(E,e){var l=this.L("html5_generate_content_po_token")?this.videoData:void 0;this.sz.eO(E,e,l)}; g.z.jF=function(E,e){this.L7.jF(E,e)}; g.z.GI=function(){return this.L7.GI()}; g.z.Xh=function(){return this.videoData.G6}; g.z.Tf=function(){return this.sz.Tf()}; g.z.pG=function(){return this.sz.pG(this)}; g.z.vp=function(){this.EQ=!0}; g.z.IB=function(E){var e;(e=this.loader)==null||e.IB(E)};g.d(GIZ,WI);g.d(dp,i4);dp.prototype.T=function(E){E&&$l(this,this.U.getLoopVideo());this.U.logVisibility(this.element,E)}; dp.prototype.logClick=function(){this.U.logClick(this.element)}; dp.prototype.onLoopChange=function(E){$l(this,E)}; dp.prototype.G=function(E){this.U.setLoopVideo(E)};g.d(T1e,WI);g.d(iQ0,WI);g.z=iQ0.prototype;g.z.seekToChapterWithAnimation=function(E){var e=this;if(g.Su(this.api)&&!(E<0)){var l=this.api.getVideoData(),k=l.mT;if(k&&E=0)return;e=~e;g.a1(this.items,e,0,E);wT(this.menuItems.element,E.element,e)}E.subscribe("size-change",this.oD,this);this.menuItems.publish("size-change")}; g.z.BG=function(E){E.unsubscribe("size-change",this.oD,this);this.U7()||(g.U6(this.items,E),this.menuItems.element.removeChild(E.element),this.menuItems.publish("size-change"))}; g.z.oD=function(){this.menuItems.publish("size-change")}; g.z.focus=function(){for(var E=0,e=0;e1&&g.b0(this)}; g.z.Do=function(){kZX(this);this.Vd&&(eD7(this),g.tV(this.element,this.size))}; g.z.dM=function(){var E=this.T.pop();lTX(this,E,this.T[this.T.length-1],!0)}; g.z.hc=function(E){if(!E.defaultPrevented)switch(E.keyCode){case 27:this.uY();E.preventDefault();break;case 37:this.T.length>1&&this.dM();E.preventDefault();break;case 39:E.preventDefault()}}; g.z.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.z.Gz=function(){g.HI.prototype.Gz.call(this);this.J&&this.J.dispose();this.j&&this.j.dispose()};g.d(vc,g.rp);vc.prototype.open=function(E,e){this.initialize(E.items)&&this.Bs(e,!!e)}; vc.prototype.initialize=function(E){g.S0(this.vN);if(E===void 0||E.length===0)return!1;var e=E.length;E=g.T(E);for(var l=E.next();!l.done;l=E.next())this.Qf(l.value,e--);return!0}; vc.prototype.Qf=function(E,e){E.menuNavigationItemRenderer?Xd0(this,E.menuNavigationItemRenderer,e):E.menuServiceItemRenderer&&uHy(this,E.menuServiceItemRenderer,e)};g.d(Pc,FV);g.z=Pc.prototype;g.z.Ok=function(E){E.target!==this.dismissButton.element&&E.target!==this.overflowButton.element&&(this.nR(),this.onClickCommand&&this.U.MD("innertubeCommand",this.onClickCommand))}; g.z.dn=function(){this.enabled=!1;this.V.hide()}; g.z.qB=function(){return!!this.T&&this.enabled}; g.z.onVideoDataChange=function(E,e){this.LK(e);if(this.T){this.eV();a:if(!this.isCounterfactual){var l,k,H;this.banner.update({title:(l=this.T)==null?void 0:l.title,subtitle:(k=this.T)==null?void 0:k.subtitle,metadata:(H=this.T)==null?void 0:H.metadataText});var O;this.onClickCommand=g.M((O=this.T)==null?void 0:O.onTap,cQ);var X;if(E=g.M((X=this.T)==null?void 0:X.onOverflow,cQ))this.j=g.M(E,Zkd);var A;if((A=this.T)==null?0:A.thumbnailImage){var C,p;X=((C=this.T)==null?void 0:(p=C.thumbnailImage)== null?void 0:p.sources)||[];if(X.length===0)break a;this.thumbnailImage.update({url:X[0].url})}else{var x;if((x=this.T)==null?0:x.thumbnailIconName){var Q;this.thumbnailIcon.update({icon:(Q=this.T)==null?void 0:Q.thumbnailIconName})}}var W;this.shouldShowOverflowButton=!((W=this.T)==null||!W.shouldShowOverflowButton);var B;this.shouldHideDismissButton=!((B=this.T)==null||!B.shouldHideDismissButton)}var w;this.banner.element.setAttribute("aria-label",((w=this.T)==null?void 0:w.a11yLabel)||"");var U; this.R4=(U=this.T)==null?void 0:U.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;CJ7(this)}}; g.z.phg=function(){this.isVisible=!0;CJ7(this)}; g.z.kX5=function(){this.isVisible=!1;CJ7(this)}; g.z.mA=function(){FV.prototype.mA.call(this);this.G&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.z.nR=function(){FV.prototype.nR.call(this,!1);this.G&&this.U.logClick(this.banner.element)}; g.z.QX=function(E){this.J||(this.J=new vc(this.U),g.L(this,this.J));var e,l;if((e=this.j)==null?0:(l=e.menu)==null?0:l.menuRenderer)this.J.open(this.j.menu.menuRenderer,E.target),E.preventDefault()}; g.z.LK=function(){}; g.z.eV=function(){}; g.z.Gz=function(){this.U.Qy("suggested_action_view_model");FV.prototype.Gz.call(this)};g.d(aN,Pc); aN.prototype.LK=function(E){var e,l,k;this.productUpsellSuggestedActionViewModel=g.M((e=E.getWatchNextResponse())==null?void 0:(l=e.playerOverlays)==null?void 0:(k=l.playerOverlayRenderer)==null?void 0:k.suggestedActionViewModel,XbO);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var O;this.T=g.M((O=this.productUpsellSuggestedActionViewModel)==null?void 0:O.content,hPH)}var X,A;if(this.G=!!((X=this.productUpsellSuggestedActionViewModel)==null?0:(A=X.loggingDirectives)==null? 0:A.trackingParams)){var C,p;this.U.setTrackingParams(this.banner.element,((C=this.productUpsellSuggestedActionViewModel)==null?void 0:(p=C.loggingDirectives)==null?void 0:p.trackingParams)||null)}var x;this.isCounterfactual=!((x=this.productUpsellSuggestedActionViewModel)==null||!x.isCounterfactualServing)}; aN.prototype.eV=function(){var E=[],e,l=g.T(((e=this.productUpsellSuggestedActionViewModel)==null?void 0:e.ranges)||[]);for(e=l.next();!e.done;e=l.next()){var k=e.value;k&&(e=Number(k.startTimeMilliseconds),k=Number(k.endTimeMilliseconds),isNaN(e)||isNaN(k)||E.push(new g.Mr(e,k,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.qQ(E)};g.d(pd9,WI);g.d(L6,WI);L6.prototype.onVideoDataChange=function(E,e){var l=this;if(!xC(e)&&(E==="newdata"&&QVW(this),this.T&&E==="dataloaded")){this.T=!1;var k;fR(F1(fT(this.api.Y(),(k=this.api.getVideoData())==null?void 0:g.Cb(k)),function(H){deX(l,H)}),function(){l.T=!0})}}; L6.prototype.LI=function(){var E=this;if(g.QS(this.api.Y())){var e,l=g.FG(this.api.Y(),(e=this.api.getVideoData())==null?void 0:g.Cb(e));return F1(cS(l),function(k){var H=ey();l4(H,k);return E.api.LI(H)})}return cS(this.api.LI())};g.d(g.M_,g.CV);g.z=g.M_.prototype;g.z.open=function(){g.DO(this.wC,this.G)}; g.z.zS=function(E){GZX(this);var e=this.options[E];e&&(e.element.setAttribute("aria-checked","true"),this.g$(this.pz(E)),this.Z=E)}; g.z.nz=function(E){g.S0(this.G);for(var e={},l=!1,k=0;k=0?this.T.playbackRate:1}catch(E){return 1}}; g.z.setPlaybackRate=function(E){this.getPlaybackRate()!==E&&(this.T.playbackRate=E);return E}; g.z.cV=function(){return this.T.loop}; g.z.setLoop=function(E){this.T.loop=E}; g.z.canPlayType=function(E,e){return this.T.canPlayType(E,e)}; g.z.isPaused=function(){return this.T.paused}; g.z.isSeeking=function(){return this.T.seeking}; g.z.isEnded=function(){return this.T.ended}; g.z.Ed=function(){return this.T.muted}; g.z.Ay=function(E){dB();this.T.muted=E}; g.z.u2=function(){return this.T.played||Z9([],[])}; g.z.PG=function(){try{var E=this.T.buffered}catch(e){}return E||Z9([],[])}; g.z.q0=function(){return this.T.seekable||Z9([],[])}; g.z.wi=function(){var E=this.T;return E.getStartDate?E.getStartDate():null}; g.z.getCurrentTime=function(){return this.T.currentTime}; g.z.setCurrentTime=function(E){this.T.currentTime=E}; g.z.getDuration=function(){return this.T.duration}; g.z.load=function(){var E=this.T.playbackRate;try{this.T.load()}catch(e){}this.T.playbackRate=E}; g.z.pause=function(){this.T.pause()}; g.z.play=function(){var E=this.T.play();if(!E||!E.then)return null;E.then(void 0,function(){}); return E}; g.z.I9=function(){return this.T.readyState}; g.z.IC=function(){return this.T.networkState}; g.z.tB=function(){return this.T.error?this.T.error.code:null}; g.z.K0=function(){return this.T.error?this.T.error.message:""}; g.z.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var E=this.T,e=E.webkitDroppedFrameCount;if(E=E.webkitDecodedFrameCount)return{droppedVideoFrames:e||0,totalVideoFrames:E}}return{}}; g.z.FJ=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.z.Ki=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.z.togglePictureInPicture=function(){var E=this.T,e=window.document;window.document.pictureInPictureEnabled?this.T!==e.pictureInPictureElement?E.requestPictureInPicture():e.exitPictureInPicture():z_()&&E.webkitSetPresentationMode(E.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.z.TI=function(){var E=this.T;return new g.Nd(E.offsetLeft,E.offsetTop)}; g.z.getSize=function(){return g.qV(this.T)}; g.z.setSize=function(E){g.tV(this.T,E)}; g.z.getVolume=function(){return this.T.volume}; g.z.setVolume=function(E){dB();this.T.volume=E}; g.z.Z4=function(E){this.W[E]||(this.T.addEventListener(E,this.listener),this.W[E]=this.listener)}; g.z.setAttribute=function(E,e){this.T.setAttribute(E,e)}; g.z.removeAttribute=function(E){this.T.removeAttribute(E)}; g.z.hasAttribute=function(E){return this.T.hasAttribute(E)}; g.z.iC=E9(61);g.z.FG=E9(63);g.z.QC=E9(65);g.z.ze=E9(67);g.z.VU=function(){return xp(this.T)}; g.z.BR=function(E){g.qx(this.T,E)}; g.z.LV=function(E){return g.ZG(this.T,E)}; g.z.vc=function(){return g.dT(document.body,this.T)}; g.z.audioTracks=function(){var E=this.T;if("audioTracks"in E)return E.audioTracks}; g.z.Gz=function(){for(var E=g.T(Object.keys(this.W)),e=E.next();!e.done;e=E.next())e=e.value,this.T.removeEventListener(e,this.W[e]);Qe.prototype.Gz.call(this)}; g.z.CL=function(E){this.T.disableRemotePlayback=E};g.d(Ev,g.Z);g.d(l6,g.Z);l6.prototype.show=function(){g.Z.prototype.show.call(this);this.qD();this.eR.L("html5_enable_moving_s4n_window")&&g.QS(this.eR.Y())&&this.N()}; l6.prototype.hide=function(){g.Z.prototype.hide.call(this);this.delay.stop();this.S.stop()}; l6.prototype.qD=function(){var E=(0,g.dE)(),e=fTS(this.eR);eJ(this.T,e.bandwidth_samples);eJ(this.j,e.network_activity_samples);eJ(this.Z,e.live_latency_samples);eJ(this.G,e.buffer_health_samples);var l={};e=g.T(Object.entries(e));for(var k=e.next();!k.done;k=e.next()){var H=g.T(k.value);k=H.next().value;H=H.next().value;this.V[k]!==H&&(l[k]=" "+String(H));this.V[k]=H}this.update(l);E=(0,g.dE)()-E>25?5E3:500;this.delay.start(E)}; l6.prototype.N=function(){this.J?(this.position+=1,this.position>15&&(this.J=!1)):(--this.position,this.position<=0&&(this.J=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.S.start(2E4)};g.d(rbW,WI);g.d(kL,g.a);kL.prototype.T=function(){var E=(0,g.dE)()-this.startTime;E=Ethis.S[E])&&(this.T=E,this.pR())}; g.z.onCueRangeExit=function(E){var e=g6p(this,E);e&&this.T===E&&this.api.MD("innertubeCommand",e);Xq(this);this.T=void 0}; g.z.Dh=function(E){this.Z=E}; g.z.jO=function(){this.pR();this.Z=void 0}; g.z.pR=function(){if(this.T!==void 0){var E=(E=Ov(this,this.T))&&E.onCueRangeEnter?j6(E.onCueRangeEnter):void 0;var e=Ov(this,this.T);a:if(e&&e.additionalTrigger){var l=g.T(e.additionalTrigger);for(var k=l.next();!k.done;k=l.next())if(k=k.value,k.type){var H=void 0,O=void 0;if((H=this.Qd[k.type])==null?0:H((O=k.args)!=null?O:{})){l=!0;break a}}l=!1}else l=!0;E&&l&&(this.api.MD("innertubeCommand",E),KeZ(this,e),this.S[this.T]!==void 0&&this.S[this.T]++,this.V=!0)}}; g.z.Gz=function(){this.timelyActions=this.Z=this.T=this.videoId=void 0;this.S={};this.yh();Xq(this);WI.prototype.Gz.call(this)};g.d(sVe,WI);g.d(u6,i4);u6.prototype.J=function(E){this.S(E?2:1)}; u6.prototype.G=function(){var E=this.U.getPresentingPlayerType();E===2||E===3?(this.T=!1,this.wC.BG(this)):this.T||(E=this.hasVoiceBoostAudioTrack(),this.setEnabled(E),E=this.Z()===2&&E,$l(this,E),this.wC.Qf(this),this.T=!0)}; u6.prototype.Gz=function(){this.wC.BG(this);i4.prototype.Gz.call(this)};g.d(Am,WI);Am.prototype.getVoiceBoostUserPreference=function(){return this.T}; Am.prototype.setVoiceBoostUserPreference=function(E){this.api.wH("vb_set",{pref:E});g.Jw("yt-player-voice-boost",E);E!==this.T&&(this.T=E,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.eN())}; Am.prototype.hasVoiceBoostAudioTrack=function(){var E,e,l=(E=this.api.getVideoData())==null?void 0:(e=E.Z)==null?void 0:e.T;return l?LY(l,function(k){var H;return((H=k.audio)==null?void 0:H.G)===!0}):!1}; Am.prototype.updateEnvironmentData=function(){this.api.Y().VJ=this.T};var AQ7=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.d(xL,WI);xL.prototype.Gz=function(){this.j&&(g.pE(this.j),this.j=void 0);WI.prototype.Gz.call(this)}; xL.prototype.C4=function(){(this.G?!this.T:this.Z)&&WG(this)}; xL.prototype.Bq=function(E,e,l){var k=this;if(E87(E)){var H=l||"";if(this.T)e=BG(this,H),eAe(E,e);else{var O=new g.AZ;e.push(O.promise);this.W.promise.then(function(){var X=BG(k,H);eAe(E,X);O.resolve()})}}}; xL.prototype.ZD=function(E){var e=this;if(this.G||this.Z)E.Wo=BG(this,E.videoId),this.T||(this.S=new xZ,this.W.promise.then(function(){e.xw.Ec("pot_if");E.Wo=BG(e,E.videoId)}))};g.d(g.wc,g.Z);g.wc.prototype.select=function(){this.api.MO(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Gc||void 0)&&this.api.logClick(this.element)}; g.wc.prototype.onClick=function(E){if(g.qA(this.api.Y())&&this.api.L("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var e=this.suggestion.f_(),l={};g.Kb(this.api,l);e=g.BJ(e,l);g.JL(e,this.api,E)}else g.Ub(E,this.api,this.G,this.suggestion.sessionData||void 0)&&this.select()}; g.wc.prototype.onKeyPress=function(E){switch(E.keyCode){case 13:case 32:E.defaultPrevented||(this.select(),E.preventDefault())}}; g.wc.prototype.onVideoDataChange=function(){var E=this.api.getVideoData(),e=this.api.Y();this.G=E.r$?!1:e.S};g.d(WK9,g.Z);g.z=WK9.prototype;g.z.Gz=function(){this.hide();g.iG(this.S);g.Eo(this.stills);this.stills.length=0;this.G&&this.G.removeEventListener("click",this.Is);this.Z&&this.Z.removeEventListener("click",this.Ry);this.T&&this.T.removeEventListener("click",this.Ry);g.Z.prototype.Gz.call(this)}; g.z.Ry=function(E){this.N&&this.N(E)}; g.z.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var E,e,l,k,H;var O=(((E=this.videoData)==null?0:(e=E.suggestions)==null?0:e.length)?(l=this.videoData)==null?void 0:l.suggestions:((k=this.videoData)==null?0:g.$7(k))?[(H=this.videoData)==null?void 0:g.$7(H)]:[]).slice(0,18);if((E=this.V)&&this.j&&this.J)if(g.ob(E),O.length)for(this.stills.length>O.length&&g.Eo(this.stills.splice(O.length)),this.stills.length=O.length,e=0;e=0;E--)this.features[E].dispose();this.features.length=0;g.a.prototype.Gz.call(this)};TUp.prototype.reset=function(){this.T=this.G=NaN};g.z=i5W.prototype;g.z.reset=function(){dL(this.timerName)}; g.z.tick=function(E,e){$Q(E,e,this.timerName)}; g.z.Ec=function(E){return yj(E,void 0,this.timerName)}; g.z.y7=function(E){g.hp(E,void 0,this.timerName)}; g.z.infoGel=function(E){g.UX(E,this.timerName)};g.d(JQv,g.sJ);g.z=JQv.prototype;g.z.sP=function(E){return this.loop||!!E||this.index+1=0}; g.z.setShuffle=function(E){this.shuffle=E;E=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var e=0;e0)||Z3(this,1,!0)}; g.z.bZ=function(){this.J=!0;this.T.xN(this.W);this.W=this.T.C(document,"mouseup",this.Ac)}; g.z.Ac=function(){this.J=!1;Z3(this,8,!1);this.T.xN(this.W);this.W=this.T.C(this.target,"mousedown",this.bZ)}; g.z.yk=function(E){if(E=(E=E.changedTouches)&&E[0])this.Qd=E.identifier,this.T.xN(this.N),this.N=this.T.C(this.target,"touchend",this.U8,void 0,!0),Z3(this,1024,!0)}; g.z.U8=function(E){if(E=E.changedTouches)for(var e=0;e1280||H>720)if(e=k.Za("maxresdefault.jpg"))break;if(O>640||H>480)if(e=k.Za("maxresdefault.jpg"))break;if(O>320||H>180)if(e=k.Za("sddefault.jpg")||k.Za("hqdefault.jpg")||k.Za("mqdefault.jpg"))break;if(e=k.Za("default.jpg"))break}g.UV(E)&&(E=new Image,E.addEventListener("load", function(){BdS()}),E.src=e?e:"",this.api.VR().tick("ftr")); this.S.style.backgroundImage=e?"url("+e+")":""};g.d(g.ns,g.Z);g.ns.prototype.resize=function(){}; g.ns.prototype.G=function(E){var e=this;this.Z=!1;phS(this);var l=E.FK,k=this.api.Y();l!=="GENERIC_WITHOUT_LINK"||k.J?l==="TOO_MANY_REQUESTS"?(k=this.api.getVideoData(),this.g$(q8(this,"TOO_MANY_REQUESTS_WITH_LINK",k.f_(),void 0,void 0,void 0,!1))):l!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||k.J?this.api.Y().L("html5_enable_bandaid_error_screen")&&l==="HTML5_SPS_UMP_STATUS_REJECTED"&&!k.J?(k=k.hostLanguage,E="//support.google.com/youtube?p=videoError",k&&(E=g.BJ(E,{hl:k})),this.g$(q8(this,"HTML5_SPS_UMP_STATUS_REJECTED", E))):this.api.Y().L("enable_adb_handling_in_sabr")&&l==="BROWSER_OR_EXTENSION_ERROR"&&!k.J?(k=k.hostLanguage,E="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",k&&(E=g.BJ(E,{hl:k})),this.g$(q8(this,"BROWSER_OR_EXTENSION_ERROR",E))):this.g$(g.Ru(E.errorMessage)):this.g$(q8(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(E=k.hostLanguage,l="//support.google.com/youtube/?p=player_error1",E&&(l=g.BJ(l, {hl:E})),this.g$(q8(this,"GENERIC_WITH_LINK_AND_CPN",l,!0)),k.Wh&&!k.S&&CR7(this,function(O){if(g.Ub(O,e.api,!zH(e.api.Y()))){O={as3:!1,html5:!0,player:!0,cpn:e.api.getVideoData().clientPlaybackNonce};var X=e.api;X.kU("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:O});X.isFullscreen()&&X.toggleFullscreen()}})); if(this.Z){var H=this.X6("ytp-error-link");H&&(this.api.createClientVe(H,this,216104),this.api.logVisibility(H,!0),CR7(this,function(){e.api.logClick(H)}))}}; var ANZ=/([^<>]+)<\/a>/;g.d(xjX,g.Z);xjX.prototype.ys=function(E,e,l){l=l===void 0?!1:l;switch(e){case 1:EI(this,E,this.Z,l);break;case 2:EI(this,E,this.S,l);break;case 3:EI(this,E,this.T,l);break;case 4:EI(this,E,this.G,l)}};g.d(Q8X,g.Z);g.z=Q8X.prototype;g.z.onClick=function(E){this.innertubeCommand?(this.U.MD("innertubeCommand",this.innertubeCommand),E.preventDefault()):g.Ub(E,this.U,!0);this.U.logClick(this.element)}; g.z.onVideoDataChange=function(E,e){Bel(this,e);this.bq&&omy(this,this.bq)}; g.z.Jc=function(E){var e=this.U.getVideoData();this.videoId!==e.videoId&&Bel(this,e);this.T&&omy(this,E.state);this.bq=E.state}; g.z.Bs=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.z.uY=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.d(eh,g.Z);eh.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.Z.prototype.hide.call(this)}; eh.prototype.onStateChange=function(E){this.eJ(E.state)}; eh.prototype.eJ=function(E){if(g.m(E,128)||this.api.F5())var e=!1;else{var l;e=this.api.L("web_watch_enable_multiview_manager")&&((l=this.api.getVideoData())==null?0:xC(l))?!1:g.m(E,16)||g.m(E,1)?!0:!1}e?this.T.start():this.hide()}; eh.prototype.G=function(){this.message.style.display="block"};g.d(ls,g.HI);ls.prototype.onMutedAutoplayChange=function(E){this.Z&&(E?(whp(this),this.Bs()):(this.T&&this.logClick(),this.uY()))}; ls.prototype.Fx=function(E){this.api.isMutedByMutedAutoplay()&&g.Xh(E,2)&&this.uY()}; ls.prototype.onClick=function(){this.api.unMute();this.logClick()}; ls.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.d(g.k1,g.G_);g.z=g.k1.prototype;g.z.init=function(){var E=this.api,e=E.getPlayerStateObject();this.Lu=E.getPlayerSize();this.EK(e);this.Bd();this.NN();this.api.publish("basechromeinitialized",this);this.SL()&&this.api.publish("standardControlsInitialized")}; g.z.onVideoDataChange=function(E,e){var l=this.ww!==e.videoId;if(l||E==="newdata")E=this.api,E.isFullscreen()||(this.Lu=E.getPlayerSize());l&&(this.ww=e.videoId,l=this.Th,l.h0=3E3,Z3(l,512,!0),this.Bd());this.api.L("web_render_jump_buttons")&&e.showSeekingControls&&(this.Nc=572)}; g.z.tE3=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.z.qg=function(){var E=this.api.VS()&&this.api.Fj(),e=this.api.bW();return this.bK||E||this.qY||e}; g.z.Dq=function(){var E=!this.qg();g.k_(this.api.getRootNode(),"ytp-menu-shown",!E)}; g.z.IJ=function(E){try{if(!g.dT(this.api.getRootNode(),E))return!1}catch(e){return!1}for(;E&&!L2y(E);)E=E===this.api.getRootNode()?null:E.parentElement||null;return!!E}; g.z.RQ=function(E){var e=this.api.getRootNode();g.k_(e,"ytp-autohide",E);g.k_(e,"ytp-autohide-active",!0);this.HH.start(E?250:100);E&&(this.j4=!1,g.ed(e,"ytp-touch-mode"));this.yv=!E;this.api.p6(!E);this.api.L("delhi_modern_web_player")&&this.api.publish("autohideupdate",E)}; g.z.Yk=function(){var E=this.api.getRootNode();g.k_(E,"ytp-autohide-active",!1)}; g.z.gNH=function(){this.Wm=!0}; g.z.RpR=function(E){if(this.api.Y().L("player_doubletap_to_seek")||this.api.Y().j)this.Wm=!1,this.L4&&this.xN(this.L4),this.BI===0&&OI(this,E)?(this.Bc(),this.lB.start(),this.L4=this.C(this.api.zz(),"touchmove",this.gNH,void 0,!0)):this.lB.stop();Te7(this)&&OI(this,E)&&!this.api.Y().j&&dj8(this);var e=this.tq.iV();if(!g.qA(this.api.Y())&&KJ&&iMX(this,E))e&&E.preventDefault();else if(this.j4=!0,g.qx(this.api.getRootNode(),"ytp-touch-mode"),this.Th.Wd(),this.api.Y().L("player_doubletap_to_seek")||this.api.Y().j)if(e= this.api.getPlayerStateObject(),!(!this.api.Yg()||g.m(e,2)&&g.Zt(this.api)||g.m(e,64))){e=Date.now()-this.Cn;this.BI+=1;if(e<=350){this.PS=!0;e=this.api.getPlayerSize().width/3;var l=this.api.getRootNode().getBoundingClientRect(),k=E.targetTouches[0].clientX-l.left;l=E.targetTouches[0].clientY-l.top;var H=(this.BI-1)*10;k>0&&ke*2&&k=650,k=E.width<528;this.Th.resize();if(this.api.L("web_player_use_screen_width_for_big_mode")){var H,O=E.width>=((H=g.tJ(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?H:2E3);g.k_(e,"ytp-big-mode",O)}g.k_(e,"ytp-fullscreen",this.api.isFullscreen());g.k_(e,"ytp-large-width-mode",l);this.api.L("delhi_modern_web_player")?g.k_(e,"ytp-xsmall-width-mode",k):g.k_(e,"ytp-small-mode",this.fD()); g.k_(e,"ytp-tiny-mode",this.y3());g.k_(e,"ytp-big-mode",this.xz());this.o3&&this.o3.resize(E)}; g.z.Fx=function(E){this.EK(E.state);this.Bd()}; g.z.le=E9(3);g.z.D4=function(){var E=!!this.ww&&!this.api.wR()&&!this.CQ,e=this.api.getPresentingPlayerType()===2,l=this.api.Y();if(e)return l=au(this.api.SE()),E&&(l&&l.player?E=(E=l.player.getVideoData(2))?E.isListed&&!g.pp(l.player.Y()):!1:(kd("showInfoBarDuringAd: this is null"),E=!1)),E;e=l.L("web_player_imax_theater_mode")&&this.api.jY();return E&&(l.Dp||e||this.api.isFullscreen()||l.RF)}; g.z.Bd=function(){var E=this.D4();this.WV!==E&&(this.WV=E,g.k_(this.api.getRootNode(),"ytp-hide-info-bar",!E))}; g.z.EK=function(E){var e=E.isCued()||this.api.AO()&&this.api.getPresentingPlayerType()!==3;e!==this.isCued&&(this.isCued=e,this.ji&&this.xN(this.ji),this.ji=this.C(this.api.zz(),"touchstart",this.RpR,void 0,e));var l=this.Th,k=E.isPlaying()&&!g.m(E,32)||this.api.KV();Z3(l,128,!k);l=this.Th;k=this.api.getPresentingPlayerType()===3;Z3(l,256,k);l=this.api.getRootNode();g.m(E,2)?k=[tX.ENDED]:(k=[],g.m(E,8)?k.push(tX.PLAYING):g.m(E,4)&&k.push(tX.PAUSED),g.m(E,1)&&!g.m(E,32)&&k.push(tX.BUFFERING),g.m(E, 32)&&k.push(tX.SEEKING),g.m(E,64)&&k.push(tX.UNSTARTED));g.gr(this.Cj,k)||(g.lw(l,this.Cj),this.Cj=k,g.Ez(l,k));k=this.api.Y();var H=g.m(E,2);a:{var O=this.api.Y();var X=O.controlsType;switch(X){case "2":case "0":O=!1;break a}O=X==="3"&&!g.m(E,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:HWW(au(this.api.SE())))||this.api.bW()||g.qA(O)&&this.api.getPresentingPlayerType()===2?!1:!0}g.k_(l,"ytp-hide-controls",!O);g.k_(l,"ytp-native-controls",k.controlsType==="3"&&!e&&!H&&!this.qY);g.m(E, 128)&&!g.qA(k)?(this.o3||(this.o3=new g.ns(this.api),g.L(this,this.o3),g.sT(this.api,this.o3.element,4)),this.o3.G(E.Bf),this.o3.show()):this.o3&&(this.o3.dispose(),this.o3=null)}; g.z.mL=function(){return this.api.VS()&&this.api.Fj()?(this.api.ue(!1,!1),!0):this.api.wR()?(g.YC(this.api,!0),!0):!1}; g.z.onMutedAutoplayChange=function(E){this.qY=E;this.Dq()}; g.z.xz=function(){return!1}; g.z.fD=function(){return!this.xz()&&(this.api.getPlayerSize().width=0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null;e=this.size;E=E.clone();e=e.clone();k&&(X=e,H=5,(H&65)==65&&(E.x=k.right)&&(H&=-2),(H&132)==132&&(E.y=k.bottom)&&(H&=-5),E.xk.right&&(X.width=Math.min(k.right-E.x,O+X.width-k.left),X.width=Math.max(X.width,0))),E.x+X.width>k.right&&H&1&&(E.x=Math.max(k.right-X.width,k.left)),E.yk.bottom&&(X.height=Math.min(k.bottom-E.y,O+X.height-k.top),X.height=Math.max(X.height,0))),E.y+X.height>k.bottom&&H&4&&(E.y=Math.max(k.bottom-X.height,k.top)));k=new g.ab(0,0,0,0);k.left=E.x;k.top=E.y;k.width= e.width;k.height=e.height;g.Kl(this.element,new g.Nd(k.left,k.top));g.iG(this.S);this.S.C(Ob(this),"contextmenu",this.VRd);this.S.C(this.U,"fullscreentoggled",this.onFullscreenToggled);this.S.C(this.U,"pageTransition",this.qv)}; g.z.VRd=function(E){if(!E.defaultPrevented){var e=zC(E);g.dT(this.element,e)||this.uY();this.U.Y().disableNativeContextMenu&&E.preventDefault()}}; g.z.onFullscreenToggled=function(){this.uY();mjS(this)}; g.z.qv=function(){this.uY()};g.d(Bv,g.Z);Bv.prototype.onClick=function(){var E=this,e,l,k,H;return g.D(function(O){if(O.G==1)return e=E.api.Y(),l=E.api.getVideoData(),k=E.api.getPlaylistId(),H=e.getVideoUrl(l.videoId,k,void 0,!0),g.S(O,nmW(E,H),2);O.T&&KcW(E);E.api.logClick(E.element);g.$0(O)})}; Bv.prototype.qD=function(){this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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 link");this.updateValue("tooltip-title","Copiar link");this.visible=gm0(this); g.k_(this.element,"ytp-copylink-button-visible",this.visible);this.Yw(this.visible);this.tooltip.nw();this.api.logVisibility(this.element,this.visible&&this.W)}; Bv.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.api.logVisibility(this.element,this.visible&&E)}; Bv.prototype.Gz=function(){g.Z.prototype.Gz.call(this);g.ed(this.element,"ytp-copylink-button-visible")};g.d(RH7,g.Z);g.z=RH7.prototype;g.z.show=function(){g.Z.prototype.show.call(this);g.ZC(this.G)}; g.z.hide=function(){this.S.stop();this.Z=0;this.X6("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.ed(this.element,"ytp-chapter-seek");g.ed(this.element,"ytp-time-seeking");g.Z.prototype.hide.call(this)}; g.z.TK=function(E,e,l,k){this.Z=E===this.j?this.Z+k:k;this.j=E;var H=E===-1?this.V:this.N;H&&this.U.logClick(H);this.J?this.G.stop():g.mr(this.G);this.S.start();this.element.setAttribute("data-side",E===-1?"back":"forward");var O=3*this.U.zz().getPlayerSize().height;H=this.U.zz().getPlayerSize();H=H.width/3-3*H.height;this.T.style.width=O+"px";this.T.style.height=O+"px";E===1?(this.T.style.left="",this.T.style.right=H+"px"):E===-1&&(this.T.style.right="",this.T.style.left=H+"px");var X=O*2.5;O=X/ 2;var A=this.X6("ytp-doubletap-ripple");A.style.width=X+"px";A.style.height=X+"px";E===1?(E=this.U.zz().getPlayerSize().width-e+Math.abs(H),A.style.left="",A.style.right=E-O+"px"):E===-1&&(E=Math.abs(H)+e,A.style.right="",A.style.left=E-O+"px");A.style.top="calc((33% + "+Math.round(l)+"px) - "+O+"px)";if(l=this.X6("ytp-doubletap-ripple"))l.classList.remove("ytp-doubletap-ripple"),l.classList.add("ytp-doubletap-ripple");s88(this,this.J?this.Z:k)}; g.z.xY=function(E,e,l){if(l=l===void 0?null:l){var k=E===-1?this.V.visualElement:this.N.visualElement;l={seekData:l};var H=g.BQ();H&&Kg(H,k,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l)}this.Z=E===this.j?this.Z+e:e;this.j=E;k=this.U.zz().getPlayerSize();this.J?this.G.stop():g.mr(this.G);this.S.start();this.element.setAttribute("data-side",E===-1?"back":"forward");g.qx(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";l=k.width*.1-15;E===1?this.pg?(this.T.style.right= l+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=k.width*.8-30+"px"):E===-1&&(this.pg?(this.T.style.right="",this.T.style.left=l+"px"):(this.T.style.right="",this.T.style.left=k.width*.1-15+"px"));this.T.style.top=k.height*.5+15+"px";s88(this,this.J?this.Z:e)}; g.z.J3=function(E,e,l){l=l===void 0?null:l;g.mr(this.G);this.S.start();switch(E){case -1:E="back";break;case 1:E="forward";break;default:E=""}this.element.setAttribute("data-side",E);this.T.style.width="0";this.T.style.height="0";g.qx(this.element,"ytp-chapter-seek");this.updateValue("seekText",e);this.updateValue("seekTime","");e=this.X6("ytp-seek-icon");if(l){a:if(l){switch(l){case "PREMIUM_STANDALONE":l=S7X();break a;case "PREMIUM_STANDALONE_CAIRO":l=rwZ();break a}l=void 0}else l=null;this.updateValue("seekIcon", l);e.style.display="inline-block"}else e.style.display="none"};g.d(tsy,FV);g.z=tsy.prototype;g.z.B$=function(E){this.c5||(this.c5=new vc(this.U),g.L(this,this.c5));var e,l;if((e=this.dC)==null?0:(l=e.menu)==null?0:l.menuRenderer)this.c5.open(this.dC.menu.menuRenderer,E.target),E.preventDefault()}; g.z.qB=function(){return!!this.T}; g.z.xn=function(){return!!this.T}; g.z.Ok=function(E){E.target===this.overflowButton.element?E.preventDefault():(this.hN&&this.U.MD("innertubeCommand",this.hN),this.nR(!1))}; g.z.dn=function(){this.nR(!0);var E,e;((E=this.T)==null?0:(e=E.bannerData)==null?0:e.dismissedStatusKey)&&this.Wh.push(this.T.bannerData.dismissedStatusKey);this.fW()}; g.z.Bx=function(){this.fW();zI(this)}; g.z.gv7=function(E){var e=this,l;if(E.id!==((l=this.T)==null?void 0:l.identifier)){this.fW();l=g.T(this.Qd);for(var k=l.next();!k.done;k=l.next()){var H=k.value,O=void 0,X=void 0;if((k=(O=H)==null?void 0:(X=O.bannerData)==null?void 0:X.itemData)&&H.identifier===E.id){X=O=void 0;var A=((O=H)==null?void 0:(X=O.bannerData)==null?void 0:X.dismissedStatusKey)||"";if(this.Wh.includes(A))return;this.T=H;this.banner.element.setAttribute("aria-label",k.accessibilityLabel||"");k.trackingParams&&(this.S=!0, this.U.setTrackingParams(this.badge.element,k.trackingParams));this.show();this.V.show();IN(this);this.h0.Yw(!k.stayInApp);p59(this);ESX(this);w1(this);this.hN=g.M(k.onTapCommand,cQ);if(H=g.M(k.menuOnTap,cQ))this.dC=g.M(H,Zkd);H=void 0;this.banner.update({thumbnail:(H=(k.thumbnailSources||[])[0])==null?void 0:H.url,title:k.productTitle,price:k.priceReplacementText?k.priceReplacementText:k.price,salesOriginalPrice:ko8(this),priceDropReferencePrice:H7X(this),promotionText:lg7(this),priceA11yText:O7v(this), affiliateDisclaimer:k.affiliateDisclaimer,vendor:X5W(this)});A=X=O=H=void 0;((H=k)==null?0:(O=H.hiddenProductOptions)==null?0:O.showDropCountdown)&&((X=k)==null?0:(A=X.hiddenProductOptions)==null?0:A.dropTimestampMs)&&(this.GX=new g.Nx(function(){CmW(e)},1E3),this.h0.hide(),this.countdownTimer.show(),CmW(this)); this.U.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&qn7(this)&&(this.bY=new g.Nx(function(){e89(e)},1E3),e89(this))}}this.U.getRootNode()&&g.qx(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.z.fW=function(){this.T&&(this.T=void 0,this.Pn(),this.U.getRootNode()&&g.ed(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.z.onVideoDataChange=function(E,e){var l=this;E==="dataloaded"&&zI(this);var k,H,O;E=g.M((k=e.getWatchNextResponse())==null?void 0:(H=k.playerOverlays)==null?void 0:(O=H.playerOverlayRenderer)==null?void 0:O.productsInVideoOverlayRenderer,MW6);this.overflowButton.show();this.dismissButton.hide();var X=E==null?void 0:E.featuredProductsEntityKey;this.trendingOfferEntityKey=E==null?void 0:E.trendingOfferEntityKey;this.Qd.length||(AXX(this,X),w1(this));var A;(A=this.iN)==null||A.call(this);this.iN=g.JG.subscribe(function(){AXX(l, X);w1(l)})}; g.z.Gz=function(){zI(this);p59(this);ESX(this);FV.prototype.Gz.call(this)};g.d(oSW,g.Z);oSW.prototype.onClick=function(){this.U.logClick(this.element,this.G)};g.d(w5l,g.HI);g.z=w5l.prototype;g.z.show=function(){g.HI.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);z80(this,!0)}; g.z.hide=function(){g.HI.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);z80(this,!1)}; g.z.getId=function(){return this.S}; g.z.WQ=function(){return this.itemData.length}; g.z.onVideoDataChange=function(E,e){if(e){var l,k,H,O;this.update({title:((l=e.Hn)==null?void 0:(k=l.title)==null?void 0:k.content)||"",body:((H=e.Hn)==null?void 0:(O=H.bodyText)==null?void 0:O.content)||""});var X;E=((X=e.Hn)==null?void 0:X.trackingParams)||null;this.U.setTrackingParams(this.element,E);X=g.T(this.itemData);for(E=X.next();!E.done;E=X.next())E.value.dispose();this.itemData=[];var A;if((A=e.Hn)==null?0:A.ctaButtons)for(e=g.T(e.Hn.ctaButtons),A=e.next();!A.done;A=e.next())if(A=g.M(A.value, bk0))A=new oSW(this.U,A,this.T),A.aG&&(this.itemData.push(A),A.u3(this.items))}}; g.z.Gz=function(){this.hide();g.HI.prototype.Gz.call(this)};g.d(T5X,g.Z);g.z=T5X.prototype;g.z.onVideoDataChange=function(E,e){Goy(this,e);this.bq&&$lX(this,this.bq)}; g.z.Co=function(E){var e=this.U.getVideoData();this.videoId!==e.videoId&&Goy(this,e);$lX(this,E.state);this.bq=E.state}; g.z.D9=function(E){(this.Z=E)?this.hide():this.T&&this.show()}; g.z.yX=function(){this.G||this.Bs();this.showControls=!0}; g.z.O8=function(){this.G||this.uY();this.showControls=!1}; g.z.Bs=function(){var E,e=(E=this.U)==null?void 0:E.getPlayerSize();E=e.width<380;var l;e=e.height<(((l=this.U)==null?0:l.isEmbedsShortsMode())?400:280);var k,H;(((k=this.U)==null?0:k.getPlayerStateObject().isCued())||((H=this.U)==null?0:g.m(H.getPlayerStateObject(),1024)))&&E&&e||!this.T||this.Z||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.z.uY=function(){this.T&&!this.Z&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.z.DKd=function(){this.G=!1;this.showControls||this.uY()};var gbS={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(gbS).reduce(function(E,e){E[gbS[e]]=e;return E},{}); var KhG={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(KhG).reduce(function(E,e){E[KhG[e]]=e;return E},{}); var nb_={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(nb_).reduce(function(E,e){E[nb_[e]]=e;return E},{});var R$1,s7r;R$1=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];s7r=[{option:0,text:d1(0)},{option:.25,text:d1(.25)},{option:.5,text:d1(.5)},{option:.75,text:d1(.75)},{option:1,text:d1(1)}]; g.$1=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:R$1},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:d1(.5)},{option:-1,text:d1(.75)},{option:0,text:d1(1)},{option:1, text:d1(1.5)},{option:2,text:d1(2)},{option:3,text:d1(3)},{option:4,text:d1(4)}]},{option:"background",text:"Cor de fundo",options:R$1},{option:"backgroundOpacity",text:"Opacidade de fundo",options:s7r},{option:"windowColor",text:"Cor da janela",options:R$1},{option:"windowOpacity",text:"Opacidade da janela",options:s7r},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:d1(.25)},{option:.5,text:d1(.5)},{option:.75,text:d1(.75)},{option:1,text:d1(1)}]}];var tqW=[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.d(Igv,g.G_);g.z=Igv.prototype; g.z.YQ=function(E){E.repeat||(this.Z.gT=!1);var e=!1,l=E.keyCode,k=zC(E),H=!E.altKey&&!E.ctrlKey&&!E.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||tqW.includes(l)),O=!1,X=!1,A=this.api.Y();E.defaultPrevented?(H=!1,X=!0):A.YU&&!this.api.isMutedByEmbedsMutedAutoplay()&&(H=!1);if(l===9)e=!0;else{if(k)switch(l){case 32:case 13:if(k.tagName==="BUTTON"||k.tagName==="A"||k.tagName==="INPUT")e=!0,H=!1;else if(H){var C=k.getAttribute("role");!C||C!=="option"&&C!=="button"&&C.indexOf("menuitem")!==0|| (e=!0,k.click(),O=!0)}break;case 37:case 39:case 36:case 35:e=k.getAttribute("role")==="slider";break;case 38:case 40:C=k.getAttribute("role"),k=l===38?k.previousSibling:k.nextSibling,C==="slider"?e=!0:H&&(C==="option"?(k&&k.getAttribute("role")==="option"&&k.focus(),O=e=!0):C&&C.indexOf("menuitem")===0&&(k&&k.hasAttribute("role")&&k.getAttribute("role").indexOf("menuitem")===0&&k.focus(),O=e=!0))}if(H&&!O)switch(l){case 38:O=Math.min(this.api.getVolume()+5,100);AH(this.lq,O,!1);this.api.setVolume(O); X=O=!0;break;case 40:O=Math.max(this.api.getVolume()-5,0);AH(this.lq,O,!0);this.api.setVolume(O);X=O=!0;break;case 36:this.api.Yg()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),X=O=!0);break;case 35:this.api.Yg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),X=O=!0)}}e&&TI(this,!0);(e||X)&&this.Th.Wd();(O||H&&this.handleGlobalKeyDown(l,E.shiftKey,E.ctrlKey,E.altKey,E.metaKey,E.key,E.code,E.repeat))&&E.preventDefault();A.N&&(E={keyCode:E.keyCode, altKey:E.altKey,ctrlKey:E.ctrlKey,metaKey:E.metaKey,shiftKey:E.shiftKey,handled:E.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.c7("onKeyPress",E))}; g.z.Km=function(E){var e=E.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.Z.RC)&&this.handleGlobalKeyUp(e,E.shiftKey,E.ctrlKey,E.altKey,E.metaKey,E.key,E.code)&&E.preventDefault()}; g.z.handleGlobalKeyUp=function(E,e,l,k,H,O,X){this.api.publish("keyboardserviceglobalkeyup",{keyCode:E,shiftKey:e,ctrlKey:l,altKey:k,metaKey:H,key:O,code:X});e=!1;if(this.Z.gT)return e;(O=g.nb(this.api.SE()))&&(O=O.xM)&&O.Vd&&(O.zD(E),e=!0);switch(E){case 9:TI(this,!0);e=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.Z.RC||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.Y().YU){var A,C;E=(A=this.progressBar)== null?void 0:(C=A.G)==null?void 0:C.isEnabled;e=this.u6(E)}break;case 39:(Q6?k:l)&&!H&&this.api.Yg()&&this.api.L("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),A=(A=this.api.getVideoData())?A.mT:[],C=JXl(A,this.api.getCurrentTime()*1E3),C!==-1&&this.T!=null&&(this.T.J3(1,A[C].title),this.api.seekTo(A[C].startTime/1E3,void 0,void 0,void 0,52),e=!0))}return e}; g.z.handleGlobalKeyDown=function(E,e,l,k,H,O,X,A){A||(this.Z.gT=!1);var C=!1,p=this.api.Y();if(p.YU&&!this.api.isMutedByEmbedsMutedAutoplay())return C;var x=g.nb(this.api.SE());if(x&&(x=x.xM)&&x.Vd)switch(E){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:C=x.H4(E)}p.J||C||(C=O||String.fromCharCode(E).toLowerCase(),this.G+=C,"awesome".indexOf(this.G)===0||this.api.L("web_player_rtr_ctrls")&&"bday".indexOf(this.G)===0?(C=!0,4===this.G.length&&this.G==="bday"&&this.api.L("web_player_rtr_ctrls")&& (jdX(this.W),this.Th.Wd()),7===this.G.length&&this.G==="awesome"&&fmX(this.api.getRootNode(),"ytp-color-party")):(this.G=C,C="awesome".indexOf(this.G)===0||"bday".indexOf(this.G)===0));if(!C&&(!this.api.isMutedByEmbedsMutedAutoplay()||tqW.includes(E))){var Q=this.api.getVideoData(),W,B;x=(W=this.progressBar)==null?void 0:(B=W.G)==null?void 0:B.isEnabled;W=Q?Q.mT:[];B=Q6?k:l;switch(E){case 80:e&&!p.J0&&(us(this.lq,Dzv(),"Anterior"),this.api.previousVideo(),C=!0);break;case 78:e&&!p.J0&&(us(this.lq, WT(),"Pr\u00f3ximo"),this.api.nextVideo(),C=!0);break;case 74:this.api.Yg()&&(this.api.startSeekCsiAction(),this.T?this.api.L("enable_key_press_seek_logging")?(C=is(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.xY(-1,10,C)):this.T.xY(-1,10):us(this.lq,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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),C=!0);break;case 76:this.api.Yg()&&(this.api.startSeekCsiAction(),this.T?this.api.L("enable_key_press_seek_logging")?(C=is(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.xY(1,10,C)):this.T.xY(1,10):us(this.lq,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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),C=!0);break;case 37:this.api.Yg()&&(this.api.startSeekCsiAction(),B?(B=cXZ(W,this.api.getCurrentTime()*1E3),B!==-1&&this.T!=null&&(this.T.J3(-1,W[B].title),this.api.seekTo(W[B].startTime/1E3,void 0,void 0,void 0,53),C=!0)):(this.T?this.api.L("enable_key_press_seek_logging")?(C=is(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.xY(-1,5,C)):this.T.xY(-1,5):us(this.lq,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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),C=!0));break;case 39:this.api.Yg()&&(this.api.startSeekCsiAction(),B?this.api.L("web_enable_keyboard_shortcut_for_timely_actions")||(B=JXl(W,this.api.getCurrentTime()*1E3),B!==-1&&this.T!=null&&(this.T.J3(1,W[B].title),this.api.seekTo(W[B].startTime/1E3,void 0,void 0,void 0,52),C=!0)):(this.T!=null?this.api.L("enable_key_press_seek_logging")?(C=is(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.xY(1,5,C)):this.T.xY(1, 5):us(this.lq,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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),C=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),AH(this.lq,this.api.getVolume(),!1)):(this.api.mute(),AH(this.lq,0,!0));C=!0;break;case 32:C=this.api.L("web_speedmaster_spacebar_control")?!this.api.Y().J0:this.u6(x);break;case 75:C=this.u6(x);break;case 190:e?p.enableSpeedOptions&&fge(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C+.25,!0),Uj9(this.lq,!1),C=!0):this.api.Yg()&&(this.step(1),C=!0);break;case 188:e? p.enableSpeedOptions&&fge(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C-.25,!0),Uj9(this.lq,!0),C=!0):this.api.Yg()&&(this.step(-1),C=!0);break;case 70:KgX(this.api)&&(this.api.toggleFullscreen().catch(function(){}),C=!0); break;case 27:x?(this.progressBar.Zg(),C=!0):this.J()&&(C=!0)}if(p.controlsType!=="3")switch(E){case 67:g.b6(this.api.SE())&&(p=this.api.getOption("captions","track"),this.api.toggleSubtitles(),JNX(this.lq,!p||p&&!p.displayName),C=!0);break;case 79:UI(this,"textOpacity");break;case 87:UI(this,"windowOpacity");break;case 187:case 61:UI(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:UI(this,"fontSizeIncrement",!0,!0)}var w;e||l||k||(E>=48&&E<=57?w=E-48:E>=96&&E<=105&&(w=E-96));w!=null&&this.api.Yg()&& !this.api.L("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),p=this.api.getProgressState(),this.api.seekTo(w/10*(p.seekableEnd-p.seekableStart)+p.seekableStart,void 0,void 0,void 0,81),C=!0);C&&this.Th.Wd()}this.Z.U6=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:E,shiftKey:e,ctrlKey:l,altKey:k,metaKey:H,key:O,code:X,repeat:A},this.Z);this.Z.U6&&(C=!0,this.Th.Wd());return C}; g.z.step=function(E){this.api.Yg();if(this.api.getPlayerStateObject().isPaused()){var e=this.api.getVideoData().G;e&&(e=e.video)&&this.api.seekBy(E/(e.fps||30),void 0,void 0,E>0?77:78)}}; g.z.u6=function(E){if(!this.api.Y().J0){var e;var l,k=(e=this.api.getVideoData())==null?void 0:(l=e.getPlayerResponse())==null?void 0:l.playabilityStatus;if(k){var H;e=((H=g.M(k.miniplayer,sEt))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else e=!1;e&&this.api.MD("onExpandMiniplayer");E?this.progressBar.AG():(E=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.lq.IZ(E),E?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.z.Gz=function(){g.mr(this.S);g.G_.prototype.Gz.call(this)};g.d(JH,g.Z);JH.prototype.qD=function(){var E=this.U.Y(),e=E.Z||this.U.L("web_player_hide_overflow_button_if_empty_menu")&&this.hV.isEmpty();E=g.qA(E)&&g.gh(this.U)&&g.m(this.U.getPlayerStateObject(),128);var l=this.U.getPlayerSize();this.visible=this.U.fD()&&!E&&l.width>=240&&!this.U.getVideoData().r$&&!e&&!this.U.isEmbedsShortsMode();g.k_(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.nw();this.U.logVisibility(this.element,this.visible&&this.W)}; JH.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.U.logVisibility(this.element,this.visible&&E)}; JH.prototype.Gz=function(){g.Z.prototype.Gz.call(this);g.ed(this.element,"ytp-overflow-button-visible")};g.d(VTZ,g.HI);g.z=VTZ.prototype;g.z.Mv=function(E){E=zC(E);g.dT(this.element,E)&&(g.dT(this.T,E)||g.dT(this.closeButton,E)||X_(this))}; g.z.uY=function(){g.HI.prototype.uY.call(this);this.U.I$(this.element)}; g.z.show=function(){this.Vd&&this.U.publish("OVERFLOW_PANEL_OPENED");g.HI.prototype.show.call(this);this.element.setAttribute("aria-modal","true");rXZ(this,!0)}; g.z.hide=function(){g.HI.prototype.hide.call(this);this.element.removeAttribute("aria-modal");rXZ(this,!1)}; g.z.onFullscreenToggled=function(E){!E&&this.iV()&&X_(this)}; g.z.isEmpty=function(){return this.actionButtons.length===0}; g.z.focus=function(){for(var E=g.T(this.actionButtons),e=E.next();!e.done;e=E.next())if(e=e.value,e.Vd){e.focus();break}};g.d(Dlp,g.Z);Dlp.prototype.onClick=function(E){g.Ub(E,this.api)&&this.api.playVideoAt(this.index)};g.d(b7W,g.HI);g.z=b7W.prototype;g.z.show=function(){g.HI.prototype.show.call(this);this.T.C(this.api,"videodatachange",this.Ww);this.T.C(this.api,"onPlaylistUpdate",this.Ww);this.Ww()}; g.z.hide=function(){g.HI.prototype.hide.call(this);g.iG(this.T);this.updatePlaylist(null)}; g.z.Ww=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().Z&&(this.X6("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.xN(this.Z),this.Z=null))}; g.z.zl=function(){var E=this.playlist,e=E.author,l=e?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",k={CURRENT_POSITION:String(E.index+1),PLAYLIST_LENGTH:String(E.length)};e&&(k.AUTHOR=e);this.update({title:E.title,subtitle:g.eE(l,k),playlisturl:this.api.getVideoUrl(!0)});e=E.G;if(e===this.S)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[E.index];else{l=g.T(this.playlistData);for(k=l.next();!k.done;k=l.next())k.value.dispose(); l=E.length;this.playlistData=[];for(k=0;k=this.G&&!E.Z&&!e.isAd()&&!this.api.isEmbedsShortsMode()}else E=!1;this.visible=E;this.Yw(this.visible);g.k_(this.element,"ytp-search-button-visible",this.visible);g.k_(this.element,"ytp-show-search-title",!this.api.fD());this.api.logVisibility(this.element,this.visible&&this.W)}; Il.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.api.logVisibility(this.element,this.visible&&E)};g.d(F$,g.Z); F$.prototype.trigger=function(E,e,l,k){this.show();if(this.G&&E!==this.G){var H=1;this.Z&&(H=KYX(this));N5Z(this,H,!1);gS9(this)}this.G=E;this.S=this.G===-1?this.N:this.V;E="";e?(this.j+=e,E=(this.G===-1?"\u2212":"+")+" "+this.j):this.j=0;this.updateValue(this.G===-1?"durationBack":"durationForward",E);if(this.T==="hidden"||this.T==="fading-out")e=0,this.T==="fading-out"&&(e=KYX(this),mlW(this)),Z7p(this,e),this.T!=="fading-out"&&YyW(this,this.S.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T= "fading-in";else if(this.T==="fading-in"||this.T==="lingering")e=this.S.querySelector(".ytp-seek-overlay-duration"),E=g.tJ(this.U.Y().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,e.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+E+")"},{offset:1,transform:"scale(1)"}],{duration:184}),mlW(this),this.T==="lingering"&&(this.J.stop(),this.J.start());l&&nS8(this,l,k)}; F$.prototype.TK=function(E,e,l,k){this.trigger(E,k)}; F$.prototype.xY=function(E,e,l){this.trigger(E,e);l&&(E=E===-1?this.V.visualElement:this.N.visualElement,l={seekData:l},(e=g.BQ())&&Kg(e,E,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l))}; F$.prototype.J3=function(E,e,l){this.trigger(E,void 0,e,l)};g.d(fQ,g.Z);fQ.prototype.onClick=function(){var E=this,e=this.api.Y(),l=this.api.getVideoData(this.api.getPresentingPlayerType()),k=this.api.getPlaylistId();e=this.api.L("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):e.getVideoUrl(l.videoId,k,void 0,!0);if(navigator.share)try{var H=navigator.share({title:l.title,url:e});H instanceof Promise&&H.catch(function(O){sAv(E,O)})}catch(O){O instanceof Error&&sAv(this,O)}else this.T.mL(),X_(this.G,this.element,!1); this.api.logClick(this.element)}; fQ.prototype.qD=function(){var E=this.api.Y(),e=this.api.isEmbedsShortsMode();g.k_(this.element,"ytp-show-share-title",g.qA(E)&&!e);this.T.xz()&&e?(E=(this.api.zz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MV(this.element,"right",E+"px")):e&&g.MV(this.element,"right","0px");this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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=R8Z(this);g.k_(this.element,"ytp-share-button-visible",this.visible);this.Yw(this.visible);this.tooltip.nw();this.api.logVisibility(this.element,R8Z(this)&&this.W)}; fQ.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.api.logVisibility(this.element,this.visible&&E)}; fQ.prototype.Gz=function(){g.Z.prototype.Gz.call(this);g.ed(this.element,"ytp-share-button-visible")};g.d(qyX,g.HI);g.z=qyX.prototype;g.z.z7=function(E){E=zC(E);g.dT(this.J,E)||g.dT(this.closeButton,E)||X_(this)}; g.z.uY=function(){g.HI.prototype.uY.call(this);this.tooltip.I$(this.element);this.api.logVisibility(this.T,!1);for(var E=g.T(this.Z),e=E.next();!e.done;e=E.next())e=e.value,this.api.hasVe(e.element)&&this.api.logVisibility(e.element,!1)}; g.z.show=function(){var E=this.Vd;g.HI.prototype.show.call(this);this.qD();E||this.api.MD("onSharePanelOpened")}; g.z.Kc=function(){this.Vd&&this.qD()}; g.z.qD=function(){var E=this;g.qx(this.element,"ytp-share-panel-loading");g.ed(this.element,"ytp-share-panel-fail");var e=this.api.getVideoData(),l=this.api.getPlaylistId()&&this.S.checked;e.getSharePanelCommand&&fd(this.api.LI(),e.getSharePanelCommand,{includeListId:l}).then(function(k){E.U7()||(g.ed(E.element,"ytp-share-panel-loading"),lRZ(E,k))}); e=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",e);this.updateValue("linkText",e);this.updateValue("shareLinkWithUrl",g.eE("Compartilhar o link $URL",{URL:e}));jy(this.T);this.api.logVisibility(this.T,!0)}; g.z.onFullscreenToggled=function(E){!E&&this.iV()&&X_(this)}; g.z.focus=function(){this.T.focus()}; g.z.Gz=function(){g.HI.prototype.Gz.call(this);E$y(this)};g.d(OoZ,FV);g.z=OoZ.prototype;g.z.Gz=function(){pUX(this);FV.prototype.Gz.call(this)}; g.z.Ok=function(E){E.target!==this.dismissButton.element&&(this.nR(!1),this.U.MD("innertubeCommand",this.onClickCommand))}; g.z.dn=function(){this.gH=!0;this.nR(!0);this.Pn()}; g.z.SzM=function(E){this.j=E;this.Pn()}; g.z.onVideoDataChange=function(E,e){if(E=!!e.videoId&&this.videoId!==e.videoId)this.videoId=e.videoId,this.gH=!1,this.SR=!0,this.N=this.kt=!1,pUX(this),CkX(this,!1),this.G=this.T=!1,Sh(this),XUl(this);if(E||!e.videoId)this.pg=this.S=!1;var l,k;if(e==null?0:(l=e.getPlayerResponse())==null?0:(k=l.videoDetails)==null?0:k.isLiveContent)this.B7(!1);else{var H,O,X;e=g.M((H=e.getWatchNextResponse())==null?void 0:(O=H.playerOverlays)==null?void 0:(X=O.playerOverlayRenderer)==null?void 0:X.productsInVideoOverlayRenderer, MW6);this.j=this.enabled=!1;if(e){if(H=e==null?void 0:e.featuredProductsEntityKey){O=g.JG.getState().entities;var A;if((A=nv(O,"featuredProductsEntity",H))==null?0:A.productsData){this.B7(!1);return}}if(!e.text||!e.onClickCommand||!e.timing){this.B7(!1);return}this.enabled=!0;if(!this.S){var C;A=(C=e.badgeInteractionLogging)==null?void 0:C.trackingParams;(this.S=!!A)&&this.U.setTrackingParams(this.badge.element,A||null)}if(!this.pg){var p;if(this.pg=!((p=e.dismissButton)==null||!p.trackingParams)){var x; this.U.setTrackingParams(this.dismissButton.element,((x=e.dismissButton)==null?void 0:x.trackingParams)||null)}}e.isContentForward&&(C=e.productsData,CkX(this,!0),XUl(this),C=AgZ(this,C),p=[],C.length>0&&p.push(C[0]),C.length>1&&(x=new g.Z({X:"div",B:"ytp-suggested-action-more-products-icon"}),g.L(this,x),p.push(x),p.push.apply(p,g.Be(C.slice(1)))),this.J=new g.Z({X:"div",K:p,B:"ytp-suggested-action-content-forward-container"}),g.L(this,this.J),this.fg.element.append(this.J.element));this.text=g.Ow(e.text); var Q;if(C=(Q=e.dismissButton)==null?void 0:Q.a11yLabel)this.R4=g.Ow(C);this.onClickCommand=e.onClickCommand;this.timing=e.timing;this.qQ()}qI9(this);IN(this);this.Pn()}}; g.z.qB=function(){return!this.j&&this.enabled&&!this.gH&&!this.U.fD()&&!this.In&&(this.N||this.SR)}; g.z.bu=function(E){FV.prototype.bu.call(this,E);if(this.T||this.G)this.timing&&Vi(this.timing.preview)&&(this.T=!1,Sh(this),this.G=!1,Sh(this),this.U.Qy("shopping_overlay_preview_collapsed"),this.U.Qy("shopping_overlay_preview_expanded"),E=r1(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Vi(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.Qy("shopping_overlay_expanded"),E.end=this.timing.expanded.endSec*1E3),this.U.qQ([E])), this.kt=!0,IN(this);Sh(this)}; g.z.B7=function(E){(this.N=E)?(j0(this),IN(this,!1)):(pUX(this),this.J0.start());this.Pn()}; g.z.qQ=function(E){var e=this.timing;E=(E===void 0?0:E)+this.U.getCurrentTime();var l=[],k=e.visible,H=e.preview;e=e.expanded;Vi(k)&&(kBW(k,E),l.push(r1(k.startSec,k.endSec,"shopping_overlay_visible")));Vi(H)&&(kBW(H,E),k=H.startSec+1,l.push(r1(H.startSec,k,"shopping_overlay_preview_collapsed")),l.push(r1(k,H.endSec,"shopping_overlay_preview_expanded")));Vi(e)&&(kBW(e,E),l.push(r1(e.startSec,e.endSec,"shopping_overlay_expanded")));this.U.qQ(l)}; g.z.Pn=function(){FV.prototype.Pn.call(this);this.U.getRootNode()&&g.k_(this.U.getRootNode(),"ytp-shopping-pill-shown",this.qB())};g.d(W7p,g.Z); W7p.prototype.qD=function(){var E=this.api.Y();this.Yw(g.qA(E)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Vd);var e=this.api.getVideoData(),l=!1;this.api.getPresentingPlayerType()===2?l=!!e.videoId&&!!e.isListed&&!!e.author&&!!e.rH&&!!e.profilePicture:g.qA(E)&&(l=!!e.videoId&&!!e.rH&&!!e.profilePicture&&!e.r$&&!E.Z&&!(E.j&&this.api.getPlayerSize().width<200));var k=e.profilePicture;E=g.qA(E)?e.expandedTitle:e.author;k=k===void 0? "":k;E=E===void 0?"":E;l?(this.G!==k&&(this.T.style.backgroundImage="url("+k+")",this.G=k),this.updateValue("channelLogoLabel",g.eE("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:E})),g.qx(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ed(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,l&&this.W);this.api.logVisibility(this.channelName,l&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=e.Mb);this.updateValue("expandedTitle",e.expandedTitle)};g.d(DF,g.HI);DF.prototype.show=function(){g.HI.prototype.show.call(this);this.T.start()}; DF.prototype.hide=function(){g.HI.prototype.hide.call(this);this.T.stop()}; DF.prototype.o9=function(E,e){E==="dataloaded"&&((this.rB=e.rB,this.lk=e.lk,isNaN(this.rB)||isNaN(this.lk))?this.Z&&(this.U.Qy("intro"),this.U.removeEventListener(g.Zj("intro"),this.j),this.U.removeEventListener(g.Yk("intro"),this.J),this.U.removeEventListener("onShowControls",this.S),this.hide(),this.Z=!1):(this.U.addEventListener(g.Zj("intro"),this.j),this.U.addEventListener(g.Yk("intro"),this.J),this.U.addEventListener("onShowControls",this.S),E=new g.Mr(this.rB,this.lk,{priority:9,namespace:"intro"}), this.U.qQ([E]),this.Z=!0))};g.d(bs,g.Z);bs.prototype.onClick=function(){this.U.Ki()}; bs.prototype.qD=function(){var E=!0;g.qA(this.U.Y())&&(E=E&&this.U.zz().getPlayerSize().width>=480);this.Yw(E);E=this.updateValue;var e=this.U.L("delhi_modern_web_player_icons"),l=e?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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"}}]};e=e?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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"}}]};E.call(this,"icon",this.U.FJ()?l:e)};g.d(o$p,g.Z);o$p.prototype.Gz=function(){this.T=null;g.Z.prototype.Gz.call(this)};g.d(vv,g.Z);vv.prototype.onClick=function(){this.U.MD("innertubeCommand",this.G)}; vv.prototype.V=function(){if(this.U.L("delhi_modern_web_player")){var E=this.U.getPlayerSize();E.width&&(this.element.style.maxWidth=E.width*.25+"px")}}; vv.prototype.kt=function(E){E!==this.j&&(this.update({chapterTitle:E,ariaLabel:E}),this.j=E);E?this.show():this.hide()}; vv.prototype.pg=function(){this.T.disabled=this.G==null;g.k_(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.oz()};g.d(Pv,vv);Pv.prototype.onClickCommand=function(E){g.M(E,UE)&&this.oz()}; Pv.prototype.updateVideoData=function(E,e){var l,k,H;E=g.M((l=e.getWatchNextResponse())==null?void 0:(k=l.playerOverlays)==null?void 0:(H=k.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,sV);l=g.M(E==null?void 0:E.playerBarActionButton,g.tS);if(this.U.L("web_player_updated_entrypoint")){this.N=ai(l==null?void 0:l.text);var O;k=(O=l==null?void 0:l.tooltip)!=null?O:"Ver cap\u00edtulo";this.J.setAttribute("title",k)}this.G=l==null?void 0:l.command;vv.prototype.pg.call(this)}; Pv.prototype.oz=function(){var E=this.N,e=this.S.T,l,k=((l=this.U.getLoopRange())==null?void 0:l.type)==="clips";if(e.length>1&&!k){E=this.U.getProgressState().current*1E3;l=GI(e,E);E=e[l].title||"Cap\u00edtulos";if(l!==this.currentIndex||this.Z)this.U.MD("innertubeCommand",e[l].onActiveCommand),this.currentIndex=l;this.Z=!1}else this.Z=!0;vv.prototype.kt.call(this,E)};g.d(al,g.lU);al.prototype.G=function(){var E;(E=this.element.parentElement)==null||E.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; al.prototype.isExpanded=function(){return this.T};g.d(LQ,g.Z);LQ.prototype.Z=function(E){g.m(E.state,32)?zf7(this,this.api.mf()):this.Vd&&(g.m(E.state,16)||g.m(E.state,1))||this.fade.hide()}; LQ.prototype.ev=function(){var E=this.api.getPlayerStateObject();(g.m(E,32)||g.m(E,16))&&dsX(this)}; LQ.prototype.S=function(){this.frameIndex=NaN;dsX(this)}; LQ.prototype.hide=function(){this.T&&zf7(this,null);g.Z.prototype.hide.call(this)};g.d(GB7,g.Z);g.z=GB7.prototype;g.z.onClick=function(){var E=this;if(this.U.Y().rH||this.U.Y().j){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(e){E.OT(e)})}catch(e){this.OT(e)}}else X_(this.message,this.element,!0)}; g.z.OT=function(E){String(E).includes("fullscreen error")?g.UJ(E):g.$F(E);this.T0()}; g.z.T0=function(){this.disable();this.message.Bs(this.element,!0)}; g.z.oB=function(){pZ()===this.U.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.z.hX=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var E=window.screen.width*.9,e=window.screen.height*.9,l=Math.max(window.outerWidth,window.innerWidth),k=Math.max(window.outerHeight,window.innerHeight);if(l>k!==E>e){var H=l;l=k;k=H}E>l&&e>k&&this.T0()}}; g.z.disable=function(){var E=this;if(!this.message){var e=(uG(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.HI(this.U,{X:"div",s7:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},K:[e[0],{X:"a",D:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.Y().V},Tz:e[2]},e[4]]},100,!0);this.message.hide();g.L(this,this.message);this.message.subscribe("show",function(l){E.G.Y5(E.message,l)}); g.sT(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.z.qD=function(){var E=KgX(this.U),e=this.U.Y().j&&this.U.getPlayerSize().width<250;this.Yw(E&&!e);var l;((l=this.U.Y())==null?0:l.L("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.Vd&&this.W):this.U.logVisibility(this.element,this.Vd)}; g.z.a9=function(E){if(E){var e=g.MX(this.U,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(l){g.UJ(l)})}else e=g.MX(this.U,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"}); E=TjZ(this,E);e=this.message?null:e;this.U.Y().L("player_tooltip_data_title_killswitch")?this.update({title:e,icon:E}):this.update({"tooltip-title":e,"aria-label":e,icon:E});this.G.tf().nw()}; g.z.Gz=function(){this.message||((0,this.T)(),this.T=null);g.Z.prototype.Gz.call(this)}; g.z.yB=function(E){g.Z.prototype.yB.call(this,E);var e;((e=this.U.Y())==null?0:e.L("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Vd&&E)};g.d(hH,g.Z);hH.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.T,!0);var E=this.T>0?1:-1,e=Math.abs(this.T),l=this.U.uP().YM;l&&l.xY(E,e);this.G.isActive()?this.Z=!0:(E=["ytp-jump-spin"],this.T<0&&E.push("backwards"),this.element.classList.add.apply(this.element.classList,g.Be(E)),g.ZC(this.G))};g.d(Mw,vv);Mw.prototype.onClickCommand=function(E){g.M(E,Ly0)&&this.oz()}; Mw.prototype.updateVideoData=function(){var E,e;this.G=(E=$sZ(this))==null?void 0:(e=E.onTap)==null?void 0:e.innertubeCommand;vv.prototype.pg.call(this)}; Mw.prototype.oz=function(){var E="",e=this.S.j,l,k=(l=$sZ(this))==null?void 0:l.headerTitle;l=k?g.Ow(k):"";var H;k=((H=this.U.getLoopRange())==null?void 0:H.type)==="clips";e.length>1&&!k&&(E=this.U.getProgressState().current*1E3,H=UlZ(e,E),E=H!=null?e[H].title:l,H!=null&&H!==this.currentIndex&&(this.U.MD("innertubeCommand",e[H].onActiveCommand),this.currentIndex=H));vv.prototype.kt.call(this,E)};g.d(Nw,g.Z);Nw.prototype.onClick=function(){this.U.MD("onCollapseMiniplayer");this.U.logClick(this.element)}; Nw.prototype.qD=function(){this.visible=!this.U.isFullscreen();this.Yw(this.visible);this.U.logVisibility(this.element,this.visible&&this.W)}; Nw.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.U.logVisibility(this.element,this.visible&&E)};g.d(ZF,g.Z);ZF.prototype.init=function(){this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.J);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.T);Jg9(this,this.T)}; ZF.prototype.Z=function(){Y1(this,Number(this.G.value));this.G.focus()}; ZF.prototype.j=function(E){if(!E.defaultPrevented){switch(E.code){case "ArrowDown":E=-this.N;break;case "ArrowUp":E=this.N;break;default:return}Y1(this,Math.min(this.J,Math.max(Number((this.T+E).toFixed(2)),this.S)))}};g.d(mi,ZF);mi.prototype.onVolumeChange=function(E){if(this.V)this.V=!1;else{var e=E.volume;e===0||E.muted?Y1(this,0):Y1(this,e)}}; mi.prototype.Z=function(){ZF.prototype.Z.call(this);this.pg(this.T)}; mi.prototype.kt=function(E){var e=-E.deltaY;e=E.deltaMode===WheelEvent.DOM_DELTA_LINE||E.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Lk(this.T+e,0,100):g.Lk(this.T+g.Lk(e/10,-10,10),0,100);e===0?Y1(this,0):Y1(this,e);this.pg(e);E.preventDefault();E.stopPropagation()}; mi.prototype.SR=function(E,e){this.V=!0;E===0||e?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(E))};g.d(cgW,g.Z);g.d(KQ,g.Z);g.z=KQ.prototype;g.z.gZ=function(){if(!this.U.uV()){this.updateValue("dataTooltipOffsetY",-120);var E;(E=this.T)!=null&&g1(E,!0);var e;(e=this.T)!=null&&e.T.stop()}}; g.z.ZQ=function(){var E;(E=this.T)!=null&&E.T.start()}; g.z.MZ=function(E){this.visible=E.width>=300||this.c5;this.Yw(this.visible);this.U.logVisibility(this.element,this.visible&&this.W)}; g.z.AP=function(){this.U.Y().fg?this.U.isMuted()?this.U.unMute():this.U.mute():X_(this.message,this.element,!0);this.U.logClick(this.element)}; g.z.QG5=function(E){if(this.U.Y().fg&&this.T)if(E.target===this.Z){var e;if(!this.U.uV()||((e=this.T)==null?0:e.isVisible))this.AP();else{var l;(l=this.T)!=null&&g1(l,!0)}}else{var k;(k=this.T)!=null&&g1(k,!0)}else this.AP()}; g.z.onVolumeChange=function(E){this.setVolume(E.volume,E.muted)}; g.z.setVolume=function(E,e){var l=this,k=e?0:E/100;E=k===0?1:E>50?1:0;if(this.V!==E){var H=this.N;isNaN(H)?fR0(this,E):v6l(this.fg,function(X){fR0(l,H+(l.V-H)*X)},250); this.V=E}k=k===0?1:0;if(this.j!==k){var O=this.SR;isNaN(O)?VGW(this,k):v6l(this.Qd,function(X){VGW(l,O+(l.j-O)*X)},250); this.j=k}jH7(this,e)}; g.z.yB=function(E){g.Z.prototype.yB.call(this,E);this.U.logVisibility(this.element,this.visible&&E)}; var IRv=["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"],F7W=["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.d(g.nQ,g.Z);g.z=g.nQ.prototype;g.z.onStateChange=function(E){this.eJ(E.state);var e;((e=this.U.Y())==null?0:e.L("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Vd&&this.W)}; g.z.eJ=function(E){var e=g.RR(this.U.getVideoData()),l=!1;E.isOrWillBePlaying()?E=e?4:2:g.m(E,2)?(E=3,l=e):E=1;this.element.disabled=l;if(this.T!==E){e=null;switch(E){case 2:e=g.MX(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:e="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:e=g.MX(this.U,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:e="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}E=== 3?this.U.Y().L("player_tooltip_data_title_killswitch")?this.update({title:e,icon:SSW(this,E)}):this.update({"tooltip-title":e,icon:SSW(this,E)}):(this.U.L("player_tooltip_data_title_killswitch")?this.update({title:e}):this.update({"tooltip-title":e}),(e=SSW(this,E))&&this.T&&this.T!==3?aT0(this.transition,this.element,e):this.updateValue("icon",e));this.tooltip.nw();this.T=E}}; g.z.onVideoDataChange=function(){g.k_(this.element,"ytp-play-button-playlist",g.gh(this.U))}; g.z.u6=function(E){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var e={},l;if((l=this.U.getVideoData())==null?0:l.J)e.cttAuthInfo={token:this.U.getVideoData().J,videoId:this.U.getVideoData().videoId};Jl("direct_playback",e);this.U.VR().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(E==null?void 0:E.type)==="click"&&this.element.blur()}; g.z.yB=function(E){g.Z.prototype.yB.call(this,E);var e;((e=this.U.Y())==null?0:e.L("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Vd&&E)};g.d(g.Rl,g.Z);g.z=g.Rl.prototype;g.z.onVideoDataChange=function(){boW(this);this.S&&(this.xN(this.S),this.S=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.S=this.C(this.U,"progresssync",this.DF);this.Z=v$W(this);DsX(this);this.Lj(this.U.zz().getPlayerSize())}; g.z.Lj=function(E){E=E===void 0?this.U.zz().getPlayerSize():E;var e,l=((e=this.U.getLoopRange())==null?void 0:e.type)==="clips";E=(g.gh(this.U)||this.T&&g.tt(this.U)&&!this.U.L("web_hide_next_button")||PkZ(this))&&!l&&(this.T||E.width>=400);this.Yw(E);this.U.logVisibility(this.element,E)}; g.z.onClick=function(E){this.U.logClick(this.element);var e=!0;this.j?e=g.Ub(E,this.U):E.preventDefault();e&&(this.T&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.T?(cG(this.U.VR()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.Z?this.U.seekTo(0):(cG(this.U.VR()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.z.DF=function(){var E=v$W(this);E!==this.Z&&(this.Z=E,DsX(this))}; g.z.Gz=function(){this.G&&(this.G(),this.G=null);boW(this);g.Z.prototype.Gz.call(this)};g.d(L77,g.Z);g.z=L77.prototype;g.z.Ko=function(E){this.eh(E.pageX);this.jh(E.pageX+E.deltaX);hfZ(this)}; g.z.eh=function(E){this.pg=E-this.c5}; g.z.jh=function(E){E-=this.c5;!isNaN(this.pg)&&this.thumbnails.length>0&&(this.V=E-this.pg,this.thumbnails.length>0&&this.V!==0&&(this.Z=this.N+this.V,E=mse(this,this.Z),this.Z<=this.T/2&&this.Z>=YS7(this)?(this.api.seekTo(E,!1,void 0,void 0,25),g.MV(this.SR,"transform","translateX("+(this.Z-this.T/2)+"px)"),aRl(this,E)):this.Z=this.N))}; g.z.Yf=function(){this.kt&&(this.kt.Vi=!0);var E=(0,g.dE)()-this.jR<300;if(Math.abs(this.V)<5&&!E){this.jR=(0,g.dE)();E=this.pg+this.V;var e=this.T/2-E;this.eh(E);this.jh(E+e);hfZ(this);this.api.logClick(this.J)}hfZ(this)}; g.z.v$=function(){sI(this,this.api.getCurrentTime())}; g.z.play=function(E){this.api.seekTo(mse(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();E&&this.api.logClick(this.playButton)}; g.z.onExit=function(E){this.api.seekTo(this.J0,void 0,void 0,void 0,63);this.api.playVideo();E&&this.api.logClick(this.dismissButton)}; g.z.NN=function(E,e){this.c5=E;this.T=e;sI(this,this.api.getCurrentTime())}; g.z.enable=function(){this.isEnabled||(this.isEnabled=!0,this.J0=this.api.getCurrentTime(),aRl(this,this.J0),g.k_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.fg=this.C(this.element,"wheel",this.Ko),this.logVisibility(this.isEnabled))}; g.z.disable=function(){this.isEnabled=!1;this.hide();g.k_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.fg&&this.xN(this.fg);this.logVisibility(this.isEnabled)}; g.z.reset=function(){this.disable();this.S=[];this.h0=!1}; g.z.logVisibility=function(E){this.api.logVisibility(this.element,E);this.api.logVisibility(this.J,E);this.api.logVisibility(this.dismissButton,E);this.api.logVisibility(this.playButton,E)}; g.z.Gz=function(){for(;this.G.length;){var E=void 0;(E=this.G.pop())==null||E.dispose()}g.Z.prototype.Gz.call(this)}; g.d(MGl,g.Z);g.d(NjS,g.Z);g.d(g$l,g.Z);g.d(tH,g.Z);tH.prototype.Zb=function(E){return E==="PLAY_PROGRESS"?this.N:E==="LOAD_PROGRESS"?this.j:E==="LIVE_BUFFER"?this.J:this.Z};RfZ.prototype.update=function(E,e,l,k){l=l===void 0?0:l;this.width=e;this.S=l;this.T=e-l-(k===void 0?0:k);this.position=g.Lk(E,l,l+this.T);this.Z=this.position-l;this.G=this.Z/this.T};g.d(sHW,g.Z);g.d(g.eH,g.lU);g.z=g.eH.prototype; g.z.Ys=function(){var E=!1,e=this.api.getVideoData();if(!e)return E;this.api.Qy("timedMarkerCueRange");EOW(this);for(var l=g.T(e.b3),k=l.next();!k.done;k=l.next()){k=k.value;var H=void 0,O=(H=this.R4[k])==null?void 0:H.markerType,X=void 0;H=(X=this.R4[k])==null?void 0:X.markers;if(!H)break;if(O==="MARKER_TYPE_TIMESTAMPS"){E=g.T(H);for(O=E.next();!O.done;O=E.next()){X=O.value;O=new sHW;var A=void 0;O.title=((A=X.title)==null?void 0:A.simpleText)||"";O.timeRangeStartMillis=Number(X.startMillis);O.T= Number(X.durationMillis);var C=A=void 0;O.onActiveCommand=(C=(A=X.onActive)==null?void 0:A.innertubeCommand)!=null?C:void 0;XnZ(this,O)}uIW(this,this.j);E=this.j;O=this.W7;X=[];A=null;for(C=0;Cp&&(A.end=p);p=yXy(p,p+Q);X.push(p);A=p;O[p.id]=E[C].onActiveCommand}}this.api.qQ(X);a:{E=g.T(H);for(H=E.next();!H.done;H=E.next())if(H.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){E= !1;break a}E=!0}E&&(this.mT=this.R4[k]);E=!0}else if(O==="MARKER_TYPE_HEATMAP"){k=this.R4[k];x=p=O=C=A=X=void 0;if(k&&k.markers){H=(O=(x=k.markersMetadata)==null?void 0:(p=x.heatmapMetadata)==null?void 0:p.minHeightDp)!=null?O:0;O=(X=(C=k.markersMetadata)==null?void 0:(A=C.heatmapMetadata)==null?void 0:A.maxHeightDp)!=null?X:60;X=this.T.length;A=null;for(C=0;C=x&&w<=Q&&p.push(B)}O>0&&(this.kt.style.height=O+"px");x=this.S[C];Q=p;B=H;var U=O,c=C===0;c=c===void 0?!1:c;K7W(x,U);W=Q;w=x.G;c=c===void 0?!1:c;var V=1E3/W.length,F=[];F.push({x:0,y:100});for(var r=0;r0&&(A=p[p.length-1])}g.lJ(this)}O=void 0;H=[];if(k=(O=k.markersDecoration)==null?void 0:O.timedMarkerDecorations)for(k=g.T(k),O=k.next();!O.done;O=k.next())O=O.value,C=A=X=void 0,H.push({visibleTimeRangeStartMillis:(X=O.visibleTimeRangeStartMillis)!= null?X:-1,visibleTimeRangeEndMillis:(A=O.visibleTimeRangeEndMillis)!=null?A:-1,decorationTimeMillis:(C=O.decorationTimeMillis)!=null?C:NaN,label:O.label?g.Ow(O.label):""});k=H;this.heatMarkersDecorations=k}}e.x8=this.j;g.k_(this.element,"ytp-timed-markers-enabled",E);return E}; g.z.NN=function(){g.lJ(this);O_(this);uIW(this,this.j);if(this.G){var E=g.Rb(this.element).x||0;this.G.NN(E,this.J)}}; g.z.tJn=function(){var E=this.api.getVideoData();E&&dMS(this,E)}; g.z.onClickCommand=function(E){if(E=g.M(E,UE)){var e=E.key;E.isVisible&&e&&xMp(this,e)}}; g.z.GN6=function(E){this.api.MD("innertubeCommand",this.W7[E.id])}; g.z.oz=function(){O_(this);var E=this.api.getCurrentTime();(Ethis.clipEnd)&&this.Ra()}; g.z.VX=function(E){if(!E.defaultPrevented){var e=!1;switch(E.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);e=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);e=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);e=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);e=!0;break;case 38:this.api.L("enable_key_press_seek_logging")&&x6(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);e=!0;break;case 40:this.api.L("enable_key_press_seek_logging")&&x6(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),e=!0}e&&E.preventDefault()}}; g.z.o9=function(E,e){this.updateVideoData(e,E==="newdata")}; g.z.Bj=function(){this.o9("newdata",this.api.getVideoData())}; g.z.updateVideoData=function(E,e){e=e===void 0?!1:e;var l=!!E&&E.aG();l&&(dh(E)||wn0(this)?this.Dr=!1:this.Dr=E.allowLiveDvr,g.k_(this.api.getRootNode(),"ytp-enable-live-buffer",!(E==null||!dh(E))),dMS(this,E));SkS(this,this.api.Yg());if(e){if(l){e=E.clipEnd;this.clipStart=E.clipStart;this.clipEnd=e;Q_(this);for(Ab(this,this.pg,this.dC);this.S.length>0;)this.S.pop().dispose();this.heatMarkersDecorations=[];this.GX={};var k;(k=this.G)==null||k.reset();zZ(this);g.k_(this.api.getRootNode(),"ytp-fine-scrubbing-exp", E_(this))}else this.Ra();this.nI()}if(E){var H;k=((H=this.hg)==null?void 0:H.type)==="clips";if(H=!E.isLivePlayback){H=this.api.getVideoData();e=g.t5(H);l=ll8(H);var O;H=e!=null||l!=null&&l.length>0||((O=H.WB)==null?void 0:O.length)>0}if(H&&!k){O=this.api.getVideoData();k=g.t5(O);H=!1;if(k==null?0:k.markersMap){H=this.api.getVideoData();var X;H.XH=((X=k.visibleOnLoad)==null?void 0:X.key)||H.XH;X=g.T(k.markersMap);for(k=X.next();!k.done;k=X.next())k=k.value,k.key&&k.value&&(this.GX[k.key]=k.value, k.value.onChapterRepeat&&(H.dKz=k.value.onChapterRepeat));H.XH!=null&&xMp(this,H.XH);H=!0}var A;if(((A=O.WB)==null?void 0:A.length)>0){A=g.JG.getState().entities;X=g.T(O.WB);for(k=X.next();!k.done;k=X.next()){k=k.value;l=void 0;e=(l=nv(A,"macroMarkersListEntity",k))==null?void 0:l.markersList;var C=l=void 0;if(((l=e)==null?void 0:l.markerType)==="MARKER_TYPE_TIMESTAMPS"||((C=e)==null?void 0:C.markerType)==="MARKER_TYPE_HEATMAP")this.R4[k]=e}H=this.Ys()||H}!H&&(A=ll8(O))&&(Htp(this,A),O.mT=this.T, kqy(this));Gqy(this,null);E.xW&&this.S.length===0&&(E=E.xW,A=E.key,E.isVisible&&A&&xMp(this,A))}else tGS(this),EOW(this)}O_(this)}; g.z.tM=function(E){this.N&&!g.m(E.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var e;((e=this.G)==null?0:e.isEnabled)&&g.m(E.state,8)&&this.api.pauseVideo();E=this.api.getPresentingPlayerType()===2||!this.api.Yg()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.k_(this.UJ,"ytp-hide-scrubber-button",E)}; g.z.Px=function(E){var e=!!this.hg!==!!E,l=this.hg;this.hg=E;Gqy(this,l);(E==null?void 0:E.type)!=="clips"&&E||(E?(this.updateValue("clipstarticon",ywl()),this.updateValue("clipendicon",ywl()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",dz7()),this.updateValue("clipendicon",zl8()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),e&&(this.updateVideoData(this.api.getVideoData(), !0),g.lJ(this)),Q_(this));Ab(this,this.pg,this.dC)}; g.z.F66=function(){this.api.publish("progressBarHoverStart")}; g.z.hpn=function(E,e,l){var k=g.Rb(this.element),H=Hd(this).T,O=l?l.getAttribute("data-tooltip"):void 0,X=l?l.getAttribute("data-position"):void 0,A=l?l.getAttribute("data-offset-y"):void 0;A=A?Number(A):0;X&&(E=c2(this.Z,Number(l.getAttribute("data-position")),0)*H+g.Rb(this.progressBar).x);this.rH.x=E-k.x;this.rH.y=e-k.y;E=Hd(this);l=pK(this,E);e=0;var C;if((C=this.api.getVideoData())==null?0:dh(C))(C=this.api.getProgressState().seekableEnd)&&l>C&&(l=C,E.position=c2(this.Z,C)*Hd(this).T),e=this.Z.G; wn0(this)&&(e=this.Z.G);C=O||g.ok(this.Dr?l-this.Z.T:l-e);e=E.position+this.w2;l-=this.api.eE();var p;if((p=this.G)==null||!p.isEnabled)if(this.api.mf()){if(this.T.length>1){p=CK(this,this.rH.x,!0);if(!this.hg)for(k=0;k1)for(k=0;k0)for(p=this.rH.x,k=g.T(this.j),H=k.next();!H.done;H=k.next())H=H.value,X=k6(this,H.timeRangeStartMillis/ (this.Z.T*1E3),Hd(this)),g.k_(H.element,"ytp-timed-marker-hover",X<=p&&X+6>=p);k=this.tooltip.scale;p=this.api.L("delhi_modern_web_player")?67:45;A=(isNaN(A)?0:A)-p*k;this.api.L("web_key_moments_markers")?this.mT?(p=UlZ(this.j,l*1E3),p=p!=null?this.j[p].title:""):(p=GI(this.T,l*1E3),p=this.T[p].title):(p=GI(this.T,l*1E3),p=this.T[p].title);p||(A+=16*k);this.tooltip.scale===.6&&(g.TH(this.api.Y())?(A=this.api.zz().getPlayerSize().height-225,k=this.api.L("delhi_modern_web_player")?70:110,A=p?A+k:A+ k+16):A=p?110:126);k=GI(this.T,l*1E3);this.h0=itX(this,l,k)?k:itX(this,l,k+1)?k+1:-1;g.k_(this.api.getRootNode(),"ytp-progress-bar-snap",this.h0!==-1&&this.T.length>1);k=!1;H=g.T(this.heatMarkersDecorations);for(X=H.next();!X.done;X=H.next()){X=X.value;var x=l*1E3;x>=X.visibleTimeRangeStartMillis&&x<=X.visibleTimeRangeEndMillis&&(p=X.label,C=g.ok(X.decorationTimeMillis/1E3),this.api.L("web_heat_marker_use_current_time")&&(C=g.ok(pK(this,E))),k=!0)}this.AS!==k&&(this.AS=k,this.api.logVisibility(this.YU, this.AS));g.k_(this.api.getRootNode(),"ytp-progress-bar-decoration",k);k=160*this.tooltip.scale*2;H=p.length*(this.V?8.55:5.7);H=H<=k?H:k;X=H<160*this.tooltip.scale;k=3;!X&&H/2>E.position&&(k=1);!X&&H/2>this.J-E.position&&(k=2);this.api.Y().j&&(A-=10);this.S.length&&this.S[0].aG&&(A-=14*(this.V?2:1),this.J0||(this.J0=!0,this.api.logVisibility(this.kt,this.J0)));var Q;if(E_(this)&&(((Q=this.G)==null?0:Q.isEnabled)||this.b3>0)){var W;A-=((W=this.G)==null?0:W.isEnabled)?Bd(this):this.b3}Q=void 0;E_(this)&& !this.api.L("web_player_hide_fine_scrubbing_edu")&&(Q="Puxe para cima para uma busca precisa",this.c5||(this.c5=!0,this.api.logVisibility(this.je,this.c5)));this.tooltip.QK(e,l,C,!!O,A,p,k,Q)}else this.tooltip.QK(e,l,C,!!O,A);g.qx(this.api.getRootNode(),"ytp-progress-bar-hover");oOX(this)}; g.z.xMR=function(){this.nI();g.ed(this.api.getRootNode(),"ytp-progress-bar-hover");this.J0&&(this.J0=!1,this.api.logVisibility(this.kt,this.J0));this.c5&&(this.c5=!1,this.api.logVisibility(this.je,this.c5));this.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.z.XsD=function(E,e){var l=g.Rb(this.element);this.qM=E-l.x;E_(this)&&this.G&&(this.G.h0?sI(this.G,this.api.getCurrentTime()):ZoW(this.G),this.G.show(),g.k_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.G.isEnabled));this.CD&&(this.CD.dispose(),this.CD=null);this.Gf=e;this.f0=this.api.getCurrentTime();this.T.length>1&&this.h0!==-1?this.api.seekTo(this.T[this.h0].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(pK(this,Hd(this)),!1,void 0,void 0,7);g.qx(this.element,"ytp-drag");(this.wG= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.z.i56=function(){if(E_(this)&&this.G){var E=Bd(this);this.b3>=E*.5?(this.G.enable(),sI(this.G,this.api.getCurrentTime()),VDy(this,E)):zZ(this)}if(g.m(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var e;if((e=this.G)==null?0:e.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.h0!==-1)this.api.L("html5_enable_progress_bar_slide_seek_logging")&&x6(this,this.f0,this.T[this.h0].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.h0].startTime/1E3,void 0,void 0,void 0,7);else{E=pK(this,Hd(this));this.api.L("html5_enable_progress_bar_slide_seek_logging")&&x6(this,this.f0,E,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(E,void 0,void 0,void 0,7);e=g.T(this.heatMarkersDecorations);for(var l=e.next();!l.done;l=e.next())l=l.value,E*1E3>=l.visibleTimeRangeStartMillis&&E*1E3<=l.visibleTimeRangeEndMillis&& this.api.logClick(this.YU)}g.ed(this.element,"ytp-drag");this.Qd&&(this.SR.src=this.Qd);this.wG&&!g.m(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.z.QzM=function(E,e){var l=this,k=Hd(this),H=pK(this,k);this.api.zz().DW||(k.position>this.qM+2?this.hN&&(this.SR.src=this.hN):k.position1);this.Yw(E&&this.U.zz().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.Vd);var e=1;E&&this.isActive()&&(e=2);if(this.T!==e){this.T=e;E=this.U.L("delhi_modern_web_player_icons");switch(e){case 1:this.updateValue("icon",E?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{X:"path",d$:!0,D:{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", E?{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{X:"path",D:{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.opp())}g.k_(this.element,"ytp-remote-button-active",this.isActive())}}; dF.prototype.G=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var E=this.wC,e=this.element;if(E.iV())E.uY();else{E.initialize();a:{var l=g.T(E.vN.items);for(var k=l.next();!k.done;k=l.next())if(k=k.value,k.priority===1){l=k;break a}l=null}l&&(l.open(),E.Bs(e));E.Bs(e)}}this.U.logClick(this.element)};g.d(GZ,g.Z);GZ.prototype.T=function(E){var e=this.U.Y(),l=400;this.U.L("web_player_small_hbp_settings_menu")&&e.J?l=300:e.j&&(l=200);E=this.G&&E.width>=l;this.Yw(E);this.U.L("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,E&&this.W):this.U.logVisibility(this.element,E)}; GZ.prototype.Z=function(){if(this.wC.Vd)this.wC.uY();else{var E=g.b6(this.U.SE());E&&!E.loaded&&(E.Da("tracklist",{includeAsr:!0}).length||E.load());this.U.logClick(this.element);this.wC.Bs(this.element)}}; GZ.prototype.updateBadge=function(){var E=this.U.isHdr(),e=this.U.getPresentingPlayerType(),l=e!==2&&e!==3,k=g.RF(this.U),H=l&&!!g.nb(this.U.SE());e=H&&k.displayMode===1;k=H&&k.displayMode===2;l=(H=e||k)||!l?null:this.U.getPlaybackQuality();g.k_(this.element,"ytp-hdr-quality-badge",E);g.k_(this.element,"ytp-hd-quality-badge",!E&&(l==="hd1080"||l==="hd1440"));g.k_(this.element,"ytp-4k-quality-badge",!E&&l==="hd2160");g.k_(this.element,"ytp-5k-quality-badge",!E&&l==="hd2880");g.k_(this.element,"ytp-8k-quality-badge", !E&&l==="highres");g.k_(this.element,"ytp-3d-badge-grey",!E&&H&&e);g.k_(this.element,"ytp-3d-badge",!E&&H&&k)};g.d(TZ,i4);TZ.prototype.isLoaded=function(){var E=g.M8(this.U.SE());return E!==void 0&&E.loaded}; TZ.prototype.qD=function(){g.M8(this.U.SE())!==void 0&&this.U.getPresentingPlayerType()!==3?this.T||(this.wC.Qf(this),this.T=!0):this.T&&(this.wC.BG(this),this.T=!1);$l(this,this.isLoaded())}; TZ.prototype.onSelect=function(E){this.isLoaded();E?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",E)}; TZ.prototype.Gz=function(){this.T&&this.wC.BG(this);i4.prototype.Gz.call(this)};g.d(iJ,g.M_);iJ.prototype.qD=function(){var E=this.U.getAvailableAudioTracks();E.length>1?(this.nz(g.o7(E,this.T)),this.tracks=g.R1(E,this.T,this),this.countLabel.g$(E.length?" ("+E.length+")":""),this.publish("size-change"),this.zS(this.T(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; iJ.prototype.IV=function(E){g.M_.prototype.IV.call(this,E);this.U.setAudioTrack(this.tracks[E]);this.wC.dM()}; iJ.prototype.T=function(E){return E.toString()};g.d($6,i4); $6.prototype.G=function(){var E=this.U.getPresentingPlayerType();if(E!==2&&E!==3&&g.tt(this.U))this.T||(this.wC.Qf(this),this.T=!0,this.Z.push(this.C(this.U,"videodatachange",this.G)),this.Z.push(this.C(this.U,"videoplayerreset",this.G)),this.Z.push(this.C(this.U,"onPlaylistUpdate",this.G)),this.Z.push(this.C(this.U,"autonavchange",this.S)),E=this.U.getVideoData(),this.S(E.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T){this.wC.BG(this);this.T=!1;E=g.T(this.Z);for(var e=E.next();!e.done;e= E.next())this.xN(e.value)}}; $6.prototype.S=function(E){$l(this,E!==1)}; $6.prototype.onSelect=function(E){this.U.Nt(E?2:1);this.T&&(this.U.logVisibility(this.element,this.T),this.U.logClick(this.element))}; $6.prototype.Gz=function(){this.T&&this.wC.BG(this);i4.prototype.Gz.call(this)};g.d(DM8,g.CV);DM8.prototype.onClick=function(E){E.preventDefault();var e,l;(e=g.Su(this.U))==null||(l=e.Xm())==null||l.uY();var k,H;(k=g.Su(this.U))==null||(H=k.Z$())==null||H.Bs(E.target)};g.d(btl,g.M_);g.z=btl.prototype; g.z.gQ=function(){var E=this.U.getPresentingPlayerType();if(E!==2&&E!==3){this.SR=this.U.x6();var e=this.U.getAvailableQualityLevels();if(this.T){this.S={};E=g.ju(this.U,"getAvailableQualityData",[]);E=g.T(E);for(var l=E.next();!l.done;l=E.next())l=l.value,this.S[l.qualityLabel]=l;E=Object.keys(this.S);e[e.length-1]==="auto"&&E.push("auto");this.Qd=new Set(e)}else if(this.J){l=g.ju(this.U,"getAvailableQualityData",[]);E=[];l=g.T(l);for(var k=l.next();!k.done;k=l.next())k=k.value,this.V[k.quality]= k,k.quality&&E.push(k.quality);e[e.length-1]==="auto"&&E.push("auto")}else E=e;g.SDl(this.U)&&this.U.AU()&&E.unshift("missing-qualities");e=this.U.app.yd();l=e.getVideoData();if(!l.G||!l.G.video||l.G.video.qualityOrdinal<1080||l.Lr)e=!1;else{k=/^qsa/.test(l.clientPlaybackNonce);var H="r";l.G.id.indexOf(";")>=0&&(k=/^[a-p]/.test(l.clientPlaybackNonce),H="x");k?(e.wH("iqss",{trigger:H},!0),e=!0):e=!1}e&&E.unshift("inline-survey");this.nz(E);e=this.U.getVideoData().cotn?!0:!1;l=this.kt.iO();l=!g.TH(this.U.Y())|| !(e===void 0?0:e)||!(l===void 0||l);e=this.G;l=l===void 0?!1:l;e.IK&&g.k_(e.X6("ytp-panel-footer"),"ytp-panel-hide-footer",l===void 0?!1:l);if(E.length){this.NZ();this.enable(!0);return}}this.enable(!1)}; g.z.NZ=function(){if(this.T){var E=this.U.getPreferredQuality();this.Qd.has(E)&&(this.j=this.U.getPlaybackQuality(),this.pg=this.U.getPlaybackQualityLabel(),E==="auto"?(this.zS(E),this.g$(this.pz(E))):this.zS(this.pg))}else E=this.U.getPreferredQuality(),this.options[E]&&(this.j=this.U.getPlaybackQuality(),this.zS(E),E==="auto"&&this.g$(this.pz(E)))}; g.z.IV=function(E){if(E!=="missing-qualities"){g.M_.prototype.IV.call(this,E);var e=this.T?this.S[E]:this.V[E];var l=e==null?void 0:e.quality,k=e==null?void 0:e.formatId,H=e==null?void 0:e.paygatedQualityDetails;e=H==null?void 0:H.endpoint;if(H){var O;H=(O=this.options[E])==null?void 0:O.element;this.U.logClick(H)}if(this.T){var X,A;if((X=g.M(e,g.ru$))==null?0:(A=X.popup)==null?0:A.notificationActionRenderer)this.U.MD("innertubeCommand",e);else if(e){this.U.MD("innertubeCommand",e);return}k?this.U.setPlaybackQuality(l, k):this.U.setPlaybackQuality(l)}else{if(this.J){var C,p;if((C=g.M(e,g.ru$))==null?0:(p=C.popup)==null?0:p.notificationActionRenderer)this.U.MD("innertubeCommand",e);else if(e){this.U.MD("innertubeCommand",e);return}}this.U.setPlaybackQuality(E)}this.wC.uY();this.gQ()}}; g.z.open=function(){for(var E=g.T(Object.values(this.options)),e=E.next();!e.done;e=E.next()){e=e.value;var l=void 0;this.U.hasVe((l=e)==null?void 0:l.element)&&(l=void 0,this.U.logVisibility((l=e)==null?void 0:l.element,!0))}g.M_.prototype.open.call(this);this.U.logClick(this.element)}; g.z.Mj=function(E,e,l){var k=this;if(E==="missing-qualities")return new g.CV({X:"a",s7:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.Y().V,tabindex:"0",role:"menuitemradio"},K:[{X:"div",s7:["ytp-menuitem-label"],Tz:"{{label}}"}]},e,this.pz(E));if(E!=="inline-survey"){var H,O=(H=this.T?this.S[E]:this.V[E])==null?void 0:H.paygatedQualityDetails;H=O==null?void 0:O.veType;O=O==null?void 0:O.trackingParams;e=g.M_.prototype.Mj.call(this,E,e,l);O?(this.U.createServerVe(e.element, this,!0),this.U.setTrackingParams(e.element,O)):H&&this.U.createClientVe(e.element,this,H,!0);return e}E=[{X:"span",Tz:"Que tal?"}];l=g.T([!0,!1]);O=l.next();for(H={};!O.done;H={yT:void 0},O=l.next())H.yT=O.value,O=new g.Z({X:"span",B:"ytp-menuitem-inline-survey-response",K:[H.yT?cwe():TO9()],D:{tabindex:"0",role:"button"}}),O.listen("click",function(X){return function(){var A=k.U.app.yd();A.wH("iqsr",{tu:X.yT});A.getVideoData().Lr=!0;k.wC.uY();k.gQ()}}(H)),E.push(O); return new g.CV({X:"div",B:"ytp-menuitem",D:{"aria-disabled":"true"},K:[{X:"div",s7:["ytp-menuitem-label"],K:E}]},e)}; g.z.pz=function(E,e){e=e===void 0?!1:e;if(E==="missing-qualities")return{X:"div",Tz:"Faltam op\u00e7\u00f5es?"};if(E==="inline-survey")return"";var l=this.J||this.T?[alX(this,E,e,!1)]:[P9p(this,E)];var k=this.U.getPreferredQuality();e||k!=="auto"||E!=="auto"||(l.push(" "),this.T?l.push(alX(this,this.pg,e,!0,["ytp-menu-label-secondary"])):this.J?l.push(alX(this,this.j,e,!0,["ytp-menu-label-secondary"])):l.push(P9p(this,this.j,["ytp-menu-label-secondary"])));return{X:"div",K:l}};g.d(U_,ZF);U_.prototype.Z=function(){ZF.prototype.Z.call(this);this.V&&LSv(this)}; U_.prototype.Qd=function(){this.pg()}; U_.prototype.SR=function(){this.U.setPlaybackRate(this.T,!0)}; U_.prototype.j=function(E){ZF.prototype.j.call(this,E);this.pg();LSv(this);E.preventDefault()};g.d(Jb,g.Z);g.z=Jb.prototype;g.z.init=function(){this.KR(this.T);this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.Z)}; g.z.IT=function(E){if(!E.defaultPrevented){switch(E.keyCode){case 37:case 40:var e=-this.N;break;case 39:case 38:e=this.N;break;default:return}this.KR(this.T+e);E.preventDefault()}}; g.z.E8=function(E){var e=this.T;e+=(E.deltaX||-E.deltaY)<0?-this.V:this.V;this.KR(e);E.preventDefault()}; g.z.dh=function(E){E=(E-g.Rb(this.S).x)/this.pg*this.range+this.G;this.KR(E)}; g.z.KR=function(E,e){e=e===void 0?"":e;E=g.Lk(E,this.G,this.Z);e===""&&(e=E.toString());this.updateValue("valuenow",E);this.updateValue("valuetext",e);this.kt.style.left=(E-this.G)/this.range*(this.pg-this.h0)+"px";this.T=E}; g.z.focus=function(){this.fg.focus()};g.d(cd,Jb);cd.prototype.SR=function(){this.U.setPlaybackRate(this.T,!0)}; cd.prototype.KR=function(E){Jb.prototype.KR.call(this,E,MDX(this,E).toString());this.J&&(hh7(this),this.Qd())}; cd.prototype.updateValues=function(){var E=this.U.getPlaybackRate();MDX(this,this.T)!==E&&(this.KR(E),hh7(this))};g.d(Ns7,g.lU);Ns7.prototype.focus=function(){this.T.focus()};g.d(Zte,f6);g.d(Ykl,g.M_);g.z=Ykl.prototype;g.z.pz=function(E){return E==="1"?"Normal":E.toLocaleString()}; g.z.qD=function(){var E,e=(E=this.U.getVideoData())==null?void 0:E.Z0();E=this.U.getPresentingPlayerType(e);this.enable(E!==2&&E!==3);KSv(this)}; g.z.nz=function(E){g.M_.prototype.nz.call(this,E);this.j&&this.j.G.focus()}; g.z.jf=function(E){g.M_.prototype.jf.call(this,E);E?(this.pg=this.C(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),KSv(this),mM7(this,this.U.getPlaybackRate())):(this.xN(this.pg),this.pg=null)}; g.z.onPlaybackRateChange=function(E){var e=this.U.getPlaybackRate();!this.S&&this.V.includes(e)||gOZ(this,e);mM7(this,E)}; g.z.Mj=function(E,e,l){return E===this.T&&nOy(this.U)?g.M_.prototype.Mj.call(this,E,e,l,{X:"div",B:"ytp-speed-slider-menu-footer",K:[this.j]}):g.M_.prototype.Mj.call(this,E,e,l)}; g.z.IV=function(E){g.M_.prototype.IV.call(this,E);E===this.T?this.U.setPlaybackRate(this.J,!0):this.U.setPlaybackRate(Number(E),!0);nOy(this.U)&&E===this.T||this.wC.dM()}; g.z.Ak=function(E){var e=E===this.T;this.S=!1;e&&y_(this.U)&&!nOy(this.U)?(E=new Zte(this.U),g.DO(this.wC,E)):g.M_.prototype.Ak.call(this,E)};g.d(sG7,g.M_);g.z=sG7.prototype;g.z.zS=function(E){g.M_.prototype.zS.call(this,E)}; g.z.Hx=function(E){return E.option.toString()}; g.z.getOption=function(E){return this.settings[E]}; g.z.pz=function(E){return this.getOption(E).text||""}; g.z.IV=function(E){g.M_.prototype.IV.call(this,E);this.publish("settingChange",this.setting,this.settings[E].option)};g.d(IV,g.Vx);IV.prototype.AV=function(E){for(var e=g.T(Object.keys(E)),l=e.next();!l.done;l=e.next()){var k=l.value;if(l=this.Yj[k]){var H=E[k].toString();k=!!E[k+"Override"];l.options[H]&&(l.zS(H),l.S.element.setAttribute("aria-checked",String(!k)),l.T.element.setAttribute("aria-checked",String(k)))}}}; IV.prototype.Wy=function(E,e){this.publish("settingChange",E,e)};g.d(FH,g.M_);FH.prototype.T=function(E){return E.languageCode}; FH.prototype.pz=function(E){return this.languages[E].languageName||""}; FH.prototype.IV=function(E){this.publish("select",E);this.U.logClick(this.element);g.b0(this.wC)};g.d(Ecy,g.M_);g.z=Ecy.prototype;g.z.Mh=function(E){return g.QI(E)?"__off__":E.displayName}; g.z.pz=function(E){return E==="__off__"?"Desativado":E==="__translate__"?"Traduzir automaticamente":E==="__contribute__"?"Adicionar legendas/CC":E==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(E==="__off__"?{}:this.tracks[E]).displayName}; g.z.IV=function(E){if(E==="__translate__")this.T.open();else if(E==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var e=g.E1(this.U.Y(),this.U.getVideoData());g.bu(e)}else if(E==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var l=eW9(this);fK(this,l);g.M_.prototype.IV.call(this,this.Mh(l));var k,H;l=(e=this.U.getVideoData().getPlayerResponse())==null?void 0:(k=e.captions)==null?void 0:(H=k.playerCaptionsTracklistRenderer)== null?void 0:H.openTranscriptCommand;this.U.MD("innertubeCommand",l);this.wC.dM();this.S&&this.U.logClick(this.S)}else{if(E==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();e=eW9(this);fK(this,e);g.M_.prototype.IV.call(this,this.Mh(e));var O,X;e=(l=this.U.getVideoData().getPlayerResponse())==null?void 0:(O=l.captions)==null?void 0:(X=O.playerCaptionsTracklistRenderer)==null?void 0:X.openTranscriptCommand;this.U.MD("innertubeCommand",e)}else this.U.logClick(this.element), fK(this,E==="__off__"?{}:this.tracks[E]),g.M_.prototype.IV.call(this,E);this.wC.dM()}}; g.z.qD=function(){var E=this.U.getOptions();E=E&&E.indexOf("captions")!==-1;var e=this.U.getVideoData(),l=e&&e.dV,k,H=!((k=this.U.getVideoData())==null||!g.oF(k));k={};if(E||l){var O;if(E){var X=this.U.getOption("captions","track");k=this.U.getOption("captions","tracklist",{includeAsr:!0});var A=H?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.R1(k,this.Mh,this);H=g.o7(k,this.Mh);var C,p;eW9(this)&&((O=e.getPlayerResponse())==null?0:(C=O.captions)==null?0:(p=C.playerCaptionsTracklistRenderer)== null?0:p.openTranscriptCommand)&&H.push("__correction__");if(A.length&&!g.QI(X)){if((O=X.translationLanguage)&&O.languageName){var x=O.languageName;O=A.findIndex(function(Q){return Q.languageName===x}); fv7(A,O)}tDy(this.T,A);H.push("__translate__")}O=this.Mh(X)}else this.tracks={},H=[],O="__off__";H.unshift("__off__");this.tracks.__off__={};l&&H.unshift("__contribute__");this.tracks[O]||(this.tracks[O]=X,H.push(O));this.nz(H);this.zS(O);X&&X.translationLanguage?this.T.zS(this.T.T(X.translationLanguage)):GZX(this.T);E&&this.J.AV(this.U.getSubtitlesUserSettings());this.countLabel.g$(k&&k.length?" ("+k.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.z.mH=function(E){var e=this.U.getOption("captions","track");e=g.o$(e);e.translationLanguage=this.T.languages[E];fK(this,e)}; g.z.Wy=function(E,e){if(E==="reset")this.U.resetSubtitlesUserSettings();else{var l={};l[E]=e;this.U.updateSubtitlesUserSettings(l)}qk8(this,!0);this.j.start();this.J.AV(this.U.getSubtitlesUserSettings())}; g.z.vNg=function(E){E||g.mr(this.j)}; g.z.Gz=function(){g.mr(this.j);g.M_.prototype.Gz.call(this)}; g.z.open=function(){g.M_.prototype.open.call(this);this.options.__correction__&&!this.S&&(this.S=this.options.__correction__.element,this.U.createClientVe(this.S,this,167341),this.U.logVisibility(this.S,!0))};g.d(lwe,g.rp);g.z=lwe.prototype; g.z.initialize=function(){if(!this.isInitialized){var E=this.U.Y();this.isInitialized=!0;try{this.nL=new btl(this.U,this)}catch(l){g.UJ(Error("QualityMenuItem creation failed"))}g.L(this,this.nL);var e=new Ecy(this.U,this);g.L(this,e);E.Z||(e=new TZ(this.U,this),g.L(this,e));E.enableSpeedOptions&&(e=new Ykl(this.U,this),g.L(this,e));(g.qA(E)||E.J)&&(E.G||E.jR)&&(e=new DM8(this.U,this),g.L(this,e));E.Fy&&!E.L("web_player_move_autonav_toggle")&&(E=new $6(this.U,this),g.L(this,E));E=new iJ(this.U,this); g.L(this,E);this.U.publish("settingsMenuInitialized");rIv(this.settingsButton,this.vN.WQ())}}; g.z.Qf=function(E){this.initialize();this.vN.Qf(E);rIv(this.settingsButton,this.vN.WQ())}; g.z.BG=function(E){this.Vd&&this.vN.WQ()<=1&&this.hide();this.vN.BG(E);rIv(this.settingsButton,this.vN.WQ())}; g.z.Bs=function(E){this.initialize();this.vN.WQ()>0&&g.rp.prototype.Bs.call(this,E)}; g.z.uY=function(){this.w0?this.w0=!1:g.rp.prototype.uY.call(this)}; g.z.show=function(){g.rp.prototype.show.call(this);g.qx(this.U.getRootNode(),"ytp-settings-shown")}; g.z.hide=function(){g.rp.prototype.hide.call(this);g.ed(this.U.getRootNode(),"ytp-settings-shown")}; g.z.B7=function(E){this.U.logVisibility(this.element,E);this.U.publish("settingsMenuVisibilityChanged",E)};g.d(OH9,g.Z);g.z=OH9.prototype;g.z.onClick=function(){if(V_(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var E=!1,e=g.St(g.VC(),65);g.TH(this.U.Y())&&e!=null&&(E=!e);E&&this.U.Y().L("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.z.S1M=function(E){var e,l;(e=g.Su(this.U))==null||(l=e.Xm())==null||l.Bs(E)}; g.z.isEnabled=function(){var E=this.U.getOption("captions","track");return!(!E||!E.displayName)}; g.z.qD=function(){var E=V_(this),e=300;this.U.Y().j&&(e=480);this.U.L("delhi_modern_web_player_icons")&&this.updateValue("icon",HH7(this));if(this.U.Y().J){this.updateValue("title",g.MX(this.U,"Legendas/legendas ocultas","c"));this.update({"tooltip-title":g.MX(this.U,"Legendas/legendas ocultas","c")});this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var l=E}else{if(E)(l=this.X6("ytp-subtitles-button-icon"))==null||l.setAttribute("fill-opacity","1"),this.U.Y().L("player_tooltip_data_title_killswitch")? this.updateValue("title",g.MX(this.U,"Legendas/legendas ocultas","c")):this.update({"tooltip-title":g.MX(this.U,"Legendas/legendas ocultas","c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{if(this.U.L("delhi_modern_web_player_icons")){var k;(k=this.X6("ytp-subtitles-button-icon"))==null||k.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var H;(H=this.X6("ytp-subtitles-button-icon"))==null||H.setAttribute("fill-opacity","0.3")}this.updateValue("title", "N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"tooltip-title":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"});this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}l=!0}this.tooltip.nw();l=l&&this.U.zz().getPlayerSize().width>=e;this.Yw(l);this.U.L("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,l&&this.W):this.U.logVisibility(this.element,l);E?this.updateValue("pressed",this.isEnabled()): this.updateValue("pressed",!1)}; g.z.yB=function(E){g.Z.prototype.yB.call(this,E);this.U.Y().L("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.Vd&&E)};g.d(g.SH,g.Z);g.z=g.SH.prototype;g.z.canShowCountdown=function(){return!DT(this)&&!rF(this)}; g.z.oz=function(){var E=this.api.zz().getPlayerSize().width,e=this.V;this.api.Y().j&&(e=400);e=E>=e&&(!rF(this)||!g.m(this.api.getPlayerStateObject(),64));this.Yw(e);g.k_(this.element,"ytp-time-display-allow-autohide",e&&E<400);E=this.api.getProgressState();if(e){var l=this.api.getPresentingPlayerType();e=this.api.getCurrentTime(l,!1);this.G&&(e-=E.airingStart);DT(this)&&(e-=this.hg.startTimeMs/1E3);this.canShowCountdown()&&this.Z&&(e-=this.api.getDuration(l,!1));var k=g.ok(e);this.S!==k&&(this.updateValue("currenttime", k),this.S=k);l=DT(this)?(this.hg.endTimeMs-this.hg.startTimeMs)/1E3:this.api.getDuration(l,!1);k=g.ok(l);this.J!==k&&(this.updateValue("duration",k),this.J=k,e&&(e=g.eE("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ok(e,!0),DURATION:g.ok(l,!0)}),this.updateValue("timeDisplayAriaLabel",e)))}XM7(this,E.isAtLiveHead);u5S(this,this.api.getLoopRange())}; g.z.onLoopRangeChange=function(E){var e=this.hg!==E;this.hg=E;e&&(this.oz(),ADZ(this))}; g.z.uyD=function(){this.api.setLoopRange(null)}; g.z.DD5=function(){this.Z=!this.Z;this.oz()}; g.z.onVideoDataChange=function(E,e,l){this.updateVideoData((this.api.Y().L("enable_topsoil_wta_for_halftime")||this.api.Y().L("enable_topsoil_wta_for_halftime_live_infra"))&&l===2?this.api.getVideoData(1):e);this.oz();ADZ(this)}; g.z.updateVideoData=function(E){this.Ya=E.isLivePlayback&&!E.Yt;this.G=dh(E);this.isPremiere=E.isPremiere;g.k_(this.element,"ytp-live",rF(this));this.api.L("delhi_modern_web_player")&&this.X6("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.z.onClick=function(E){E.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.z.Gz=function(){this.T&&this.T();g.Z.prototype.Gz.call(this)};g.d(pMX,g.Z);g.z=pMX.prototype;g.z.oB=function(){var E=this.api.xz();this.Z!==E&&(this.Z=E,Cze(this,this.api.getVolume(),this.api.isMuted()))}; g.z.zP=function(E){this.Yw(E.width>=350)}; g.z.Tq=function(E){if(!E.defaultPrevented){var e=E.keyCode,l=null;e===37?l=this.volume-5:e===39?l=this.volume+5:e===36?l=0:e===35&&(l=100);l!==null&&(l=g.Lk(l,0,100),l===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(l)),E.preventDefault())}}; g.z.kh=function(E){var e=E.deltaX||-E.deltaY;E.deltaMode?this.api.setVolume(this.volume+(e<0?-10:10)):this.api.setVolume(this.volume+g.Lk(e/10,-10,10));E.preventDefault()}; g.z.dQ5=function(){bJ(this,this.T,!0,this.G,this.api.uV());this.V=this.volume;this.api.isMuted()&&this.api.unMute()}; g.z.wh=function(E){var e=this.Z?78:52,l=this.Z?18:12;E-=g.Rb(this.N).x;this.api.setVolume(g.Lk((E-l/2)/(e-l),0,1)*100)}; g.z.EN3=function(){bJ(this,this.T,!1,this.G,this.api.uV());this.volume===0&&(this.api.mute(),this.api.setVolume(this.V))}; g.z.onVolumeChange=function(E){Cze(this,E.volume,E.muted)}; g.z.X0=function(){bJ(this,this.T,this.isDragging,this.G,this.api.uV())}; g.z.Gz=function(){g.Z.prototype.Gz.call(this);g.ed(this.j,"ytp-volume-slider-active")};g.d(vd,g.Z); vd.prototype.onVideoDataChange=function(){var E=this.api.Y();this.NN();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).r$;this.Yw(this.visible);this.api.logVisibility(this.element,this.visible&&this.W);if(this.visible){var e=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",e)}E.Z&&(this.T&&(this.xN(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.qx(this.element,"no-link")); e=this.api.Y();E=this.api.getVideoData();var l="";e.Z||(e=g.oQ(e),e.indexOf("www.")===0&&(e=e.substring(4)),l=g.Gz(E)?"Assistir no YouTube Music":e==="youtube.com"?"Assistir no YouTube":g.eE("Assista em $WEBSITE",{WEBSITE:e}));this.api.L("player_tooltip_data_title_killswitch")?this.updateValue("title",l):this.updateValue("tooltip-title",l)}; vd.prototype.onClick=function(E){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var e=this.api.Y(),l=this.api.getVideoUrl(!g.wH(E),!1,!0,!0);if(g.qA(e)){var k={};g.qA(e)&&g.ju(this.api,"addEmbedsConversionTrackingParams",[k]);l=g.BJ(l,k)}g.JL(l,this.api,E);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; vd.prototype.NN=function(){var E={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{X:"path",d$:!0,B:"ytp-svg-fill",D:{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 "}}]}, e=28666,l=this.api.getVideoData();this.api.isEmbedsShortsMode()?E={X:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{X:"path",D:{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.Gz(l)&&(E={X:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}},{X:"path",D:{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"}}]},e=216163);g.Gz(l)?g.qx(this.element,"ytp-youtube-music-button"):g.ed(this.element,"ytp-youtube-music-button");E.D=Object.assign({},E.D,{"aria-hidden":"true"});this.updateValue("logoSvg",E);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,e,!0)}; vd.prototype.yB=function(E){g.Z.prototype.yB.call(this,E);this.api.logVisibility(this.element,this.visible&&E)};g.d(W88,g.G_);g.z=W88.prototype;g.z.ev=function(){if(this.U.L("web_player_max_seekable_on_ended")||!g.m(this.U.getPlayerStateObject(),2))this.progressBar.oz(),this.fg.oz()}; g.z.RQ=function(){this.RY();this.Th.G?this.ev():this.progressBar.nI()}; g.z.Gq=function(){this.ev();this.V.start()}; g.z.RY=function(){var E;if(E=!this.U.Y().G){E=this.progressBar;var e=2*g.GH()*E.J,l=E.Z;E=(l.T-l.G)*1E3/E.api.getPlaybackRate()/e<300}E=E&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;e=!E;this.Th.G||(E=e=!1);e?this.SR||(this.SR=this.C(this.U,"progresssync",this.ev)):this.SR&&(this.xN(this.SR),this.SR=null);E?this.V.isActive()||this.V.start():this.V.stop()}; g.z.NN=function(){var E=this.U.xz(),e=this.U.zz().getPlayerSize(),l=this.U.zz().DW,k=ocp(this),H=wMl(this),O=Math.max(e.width-k*2,100);if(this.dC!==e.width||this.rH!==E||this.U.L("web_player_rtr_ctrls")&&this.GC!==l)this.dC=e.width,this.rH=E,this.GC=l,this.G.element.style.width=H+"px",this.G.element.style.left=k+"px",g.FS0(this.progressBar,k,H,E),this.U.tf().xT=H;l=this.S;O=Math.min(570*(E?1.5:1),O);E=Math.min(413*(E?1.5:1),Math.round((e.height-zWv(this))*.82));l.maxWidth=O;l.maxHeight=E;l.Do();this.RY(); this.In&&Bjp(this.Yt,e.height)}; g.z.onVideoDataChange=function(){var E=this.U.getVideoData();this.R4.style.background=E.r$?E.Al:"";this.kt&&ioy(this.kt,E.showSeekingControls);this.pg&&ioy(this.pg,E.showSeekingControls)}; g.z.Zb=function(){return this.G.element};g.d(dFX,FV);g.z=dFX.prototype;g.z.Ok=function(E){E.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.MD("innertubeCommand",this.onClickCommand),this.dn())}; g.z.dn=function(){this.enabled=!1;this.V.hide()}; g.z.onVideoDataChange=function(E,e){E==="dataloaded"&&Ge0(this);E=[];var l,k,H,O;if(e=(O=g.M((l=e.getWatchNextResponse())==null?void 0:(k=l.playerOverlays)==null?void 0:(H=k.playerOverlayRenderer)==null?void 0:H.suggestedActionsRenderer,AVd))==null?void 0:O.suggestedActions)for(l=g.T(e),k=l.next();!k.done;k=l.next())(k=g.M(k.value,CCs))&&g.M(k.trigger,uZd)&&E.push(k);if(E.length!==0){l=[];E=g.T(E);for(k=E.next();!k.done;k=E.next())if(k=k.value,H=g.M(k.trigger,uZd))O=(O=k.title)?g.Ow(O):"View Chapters", e=H.timeRangeStartMillis,H=H.timeRangeEndMillis,e!=null&&H!=null&&k.tapCommand&&(l.push(new g.Mr(e,H,{priority:9,namespace:"suggested_action_button_visible",id:O})),this.suggestedActions[O]=k.tapCommand);this.U.qQ(l)}}; g.z.qB=function(){return this.enabled}; g.z.B7=function(){this.enabled?this.J0.start():j0(this);this.Pn()}; g.z.Gz=function(){Ge0(this);FV.prototype.Gz.call(this)};var fo={},LK=(fo.CHANNEL_NAME="ytp-title-channel-name",fo.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",fo.LINK="ytp-title-link",fo.SESSIONLINK="yt-uix-sessionlink",fo.SUBTEXT="ytp-title-subtext",fo.TEXT="ytp-title-text",fo.TITLE="ytp-title",fo);g.d(Me,g.Z);Me.prototype.onClick=function(E){this.api.logClick(this.element);var e=this.api.Y(),l=this.api.getVideoUrl(!g.wH(E),!1,!0);g.qA(e)&&(e={},g.ju(this.api,"addEmbedsConversionTrackingParams",[e]),l=g.BJ(l,e));g.JL(l,this.api,E)}; Me.prototype.qD=function(){var E=this.api.getVideoData(),e=this.api.Y();this.updateValue("title",E.title);var l={X:"a",B:LK.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},Tz:"{{channelName}}"};this.api.Y().Z&&(l={X:"span",B:LK.CHANNEL_NAME,Tz:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",l);TIW(this);this.api.getPresentingPlayerType()===2&&(l=this.api.getVideoData(),l.videoId&&l.isListed&&l.author&&l.rH&&l.profilePicture?(this.updateValue("channelLink", l.rH),this.updateValue("channelName",l.author),this.updateValue("channelTitleFocusable","0")):TIW(this));l=e.externalFullscreen||!this.api.isFullscreen()&&e.RF;g.k_(this.link,LK.FULLERSCREEN_LINK,l);e.kt||!E.videoId||l||E.r$||e.Z?this.T&&(this.updateValue("url",null),this.xN(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.C(this.link,"click",this.onClick)));e.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.qA(e)?E.expandedTitle: E.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.d(g.Ne,g.Z);g.z=g.Ne.prototype;g.z.setEnabled=function(E){if(this.type!=null)if(E)switch(this.type){case 3:case 2:ZT(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.j=E}; g.z.QK=function(E,e,l,k,H,O,X,A){if(!this.Qd||this.env.j){this.type===3&&this.nI();this.type!==1&&(g.sg(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.j&&this.fade.show(),this.G&&this.G.dispose(),(this.G=this.api.mf())&&this.G.subscribe("l",this.v9,this));if(A){var C=g.qV(this.bg).height||141;this.h0.style.bottom=C+2+"px"}else this.h0.style.display="none";this.env.L("delhi_modern_web_player")?(this.update({pillTimeStamp:l,pillTitle:O!=null?O:"",eduText:A!=null?A:""}),g.qx(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:l,title:O!=null?O:"",eduText:A!=null?A:""}),g.k_(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!O));this.api.isInline()&&g.qx(this.bottomText,"ytp-modern-tooltip-text");g.k_(this.element,"ytp-text-detail",!!k);l=-1;this.G&&(l=u7(this.G,243*this.scale),this.env.L("web_l3_storyboard")&&this.G.levels.length===4&&(l=this.G.levels.length-1),l=H4S(this.G,l,e));JDp(this,l);if(X)switch(e=g.qV(this.element).width,X){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=e+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=e/2+"px",this.title.style.textAlign="center"}UFW(this,!!k,E,H)}}; g.z.OR=function(){this.type===1&&this.nI()}; g.z.m7=function(E,e){if(this.type)if(this.type===3)this.nI();else return;iH7(this,E,3,e)}; g.z.nw=function(){this.T&&!this.N&&(this.env.L("player_tooltip_data_title_killswitch")?this.T.hasAttribute("title")&&(this.Z=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.j&&ZT(this)):this.T.hasAttribute("data-tooltip-title")&&(this.Z=this.T.getAttribute("data-tooltip-title")||"",this.T.removeAttribute("data-tooltip-title"),this.j&&ZT(this)))}; g.z.v9=function(E,e){E<=this.S&&this.S<=e&&(E=this.S,this.S=NaN,JDp(this,E))}; g.z.Cc=function(){lp0(this.G,this.S,243*this.scale)}; g.z.nI=function(){switch(this.type){case 2:var E=this.T;E.removeEventListener("mouseout",this.V);E.addEventListener("mouseover",this.J);E.removeEventListener("blur",this.V);E.addEventListener("focus",this.J);cD9(this);break;case 3:cD9(this);break;case 1:this.G&&(this.G.unsubscribe("l",this.v9,this),this.G=null),this.api.removeEventListener("videoready",this.pg),this.kt.stop()}this.type=null;this.j&&this.fade.hide()}; g.z.I$=function(){if(this.T)for(var E=0;E=0;e--)if(this.rP[e]===E){this.rP.splice(e,1);break}Z3(this.Th,64,this.rP.length>0)}; g.z.qg=function(){this.api.VS()&&this.api.Fj();return!!this.a8||S4Z(this)||g.k1.prototype.qg.call(this)}; g.z.Dq=function(){var E=!this.qg(),e=E&&this.api.VS()&&!g.m(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().r$&&!this.api.Y().Z&&!this.api.isEmbedsShortsMode(),l=this.u8&&g.gh(this.api)&&g.m(this.api.getPlayerStateObject(),128);E||l?(this.WK.show(),this.L6.show()):(this.WK.hide(),this.L6.hide(),this.api.I$(this.l1.element));e?this.gG.Bs():this.gG.uY();this.t2&&BIX(this.t2,this.l06||!E);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&rDe(this);g.k1.prototype.Dq.call(this)}; g.z.jm=function(E,e,l,k,H){E.style.left="";E.style.top="";E.style.bottom="";var O=g.qV(E),X=k||this.t2&&g.dT(this.t2.Zb(),e),A=k=null;l!=null&&X||(k=g.qV(e),A=g.sd(e,this.api.getRootNode()),l==null&&(l=A.x+k.width/2));l-=O.width/2;X?(e=this.t2,k=ocp(e),A=wMl(e),X=this.api.zz().getPlayerSize().height,l=g.Lk(l,k,k+A-O.width),O=X-zWv(e)-O.height):g.dT(this.l1.element,e)?(e=this.api.zz().getPlayerSize().width,l=g.Lk(l,12,e-O.width-12),O=this.xz()?this.f8:this.lK,this.api.Y().playerStyle==="gvn"&&(O+= 20),this.u8&&(O-=this.xz()?26:18)):(e=this.api.zz().getPlayerSize(),l=g.Lk(l,12,e.width-O.width-12),O=A.y>(e.height-k.height)/2?A.y-O.height-12:A.y+k.height+12);E.style.top=O+(H||0)+"px";E.style.left=l+"px"}; g.z.RQ=function(E){E&&(this.api.I$(this.l1.element),this.t2&&this.api.I$(this.t2.Zb()));this.tI&&(g.k_(this.contextMenu.element,"ytp-autohide",E),g.k_(this.contextMenu.element,"ytp-autohide-active",!0));g.k1.prototype.RQ.call(this,E)}; g.z.Yk=function(){g.k1.prototype.Yk.call(this);this.tI&&(g.k_(this.contextMenu.element,"ytp-autohide-active",!1),this.tI&&(this.contextMenu.hide(),this.hV&&this.hV.hide()))}; g.z.uH=function(E,e){var l=this.api.zz().getPlayerSize();l=new g.ab(0,0,l.width,l.height);if(E||this.Th.G&&!this.qg()){if(this.api.Y().Dp||e)E=this.xz()?this.f8:this.lK,l.top+=E,l.height-=E;this.t2&&(l.height-=zWv(this.t2))}return l}; g.z.oB=function(E){var e=this.api.getRootNode();E?e.parentElement?(e.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.Y().externalFullscreen||(e.parentElement.insertBefore(this.mQ.element,e),e.parentElement.insertBefore(this.I_.element,e.nextSibling))):g.$F(Error("Player not in DOM.")):(e.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.mQ.detach(),this.I_.detach());this.NN();this.Bd()}; g.z.xz=function(){if(this.api.L("web_player_use_screen_width_for_big_mode")){var E;return this.api.zz().getPlayerSize().width>=((E=g.tJ(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?E:2E3)}E=this.api.Y();return this.api.isFullscreen()&&!E.j||!1}; g.z.showControls=function(E){this.bK=!E;this.Dq()}; g.z.NN=function(){var E=this.xz();this.tooltip.scale=E?1.5:1;this.contextMenu&&g.k_(this.contextMenu.element,"ytp-big-mode",E);this.Dq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||rDe(this);this.Bd();var e=this.api.isEmbedsShortsMode();e&&E?(E=(this.api.zz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MV(this.l1.element,"padding-left",E+"px"),g.MV(this.l1.element,"padding-right",E+"px")):e&&(g.MV(this.l1.element,"padding-left",""),g.MV(this.l1.element,"padding-right", ""));g.k1.prototype.NN.call(this)}; g.z.D4=function(){if(S4Z(this)&&!g.gh(this.api))return!1;var E=this.api.getVideoData();return!g.qA(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.Wq||((E=this.Wq||E.Wq)?(E=E.embedPreview)?(E=E.thumbnailPreviewRenderer,E=E.videoDetails&&g.M(E.videoDetails,LAe)||null):E=null:E=null,E&&E.collapsedRenderer&&E.expandedRenderer)?g.k1.prototype.D4.call(this):!1}; g.z.Bd=function(){g.k1.prototype.Bd.call(this);this.api.logVisibility(this.title.element,!!this.WV);this.LR&&this.LR.yB(!!this.WV);this.channelAvatar.yB(!!this.WV);this.overflowButton&&this.overflowButton.yB(this.fD()&&!!this.WV);this.shareButton&&this.shareButton.yB(!this.fD()&&!!this.WV);this.nF&&this.nF.yB(!this.fD()&&!!this.WV);this.searchButton&&this.searchButton.yB(!this.fD()&&!!this.WV);this.copyLinkButton&&this.copyLinkButton.yB(!this.fD()&&!!this.WV);if(!this.WV){this.api.I$(this.l1.element); for(var E=0;E5&&e.wH("glrs",{cmt:l});e.seekTo(0,{seekSource:58});e.wH("glrre",{cmt:l})}}; gF.prototype.Gz=function(){this.T=null;g.a.prototype.Gz.call(this)};g.d(g.KK,Qe);g.z=g.KK.prototype;g.z.isView=function(){return!0}; g.z.QY=function(){var E=this.mediaElement.getCurrentTime();if(E1;gB(E.HN(),k-.01)&&!H&&(RV(this,4),l.isActive=!1,l.MW=l.MW||l.isActive,(this.W===1?this.T:this.G).wH("sbh",{}),e.isActive=!0,e.MW=e.MW||e.isActive,this.W!==0&&(this.T.getVideoData().Qa=!0));E=this.S.G;if(this.S.T.isActive&&E.isActive&&(RV(this,5),this.W!==0)){E=this.G.UM();l=this.T.UM(); this.T.wH("sbs",{citag:l==null?void 0:l.itag,nitag:E==null?void 0:E.itag});this.G.wH("gitags",{pitag:l==null?void 0:l.itag,citag:E==null?void 0:E.itag});var O;(O=this.G)==null||O.Wp()}}}; g.z.E9=function(){this.oe()&&this.VL("player-reload-after-handoff")}; g.z.VL=function(E,e){e=e===void 0?{}:e;if(!this.U7()&&this.status.status!==6){var l=this.status.status>=4&&E!=="player-reload-after-handoff";this.status={status:Infinity,error:E};if(this.T&&this.G){var k=this.G.getVideoData().clientPlaybackNonce;this.T.wO(new g.pL("dai.transitionfailure",Object.assign(e,{cpn:k,transitionTimeMs:this.C9,msg:E})));this.T.oW(l)}this.lI.reject(E);this.dispose()}}; g.z.oe=function(){return this.status.status>=4&&this.status.status<6}; g.z.Gz=function(){mF8(this);this.T.unsubscribe("newelementrequired",this.E9,this);if(this.Z){var E=this.Z.G;this.Z.T.Ez.unsubscribe("updateend",this.uL,this);E.Ez.unsubscribe("updateend",this.uL,this)}g.a.prototype.Gz.call(this)}; g.z.h7=function(E){g.Xh(E,128)&&this.VL("player-error-event")};g.d(s_,g.a);s_.prototype.clearQueue=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;this.S&&this.S.reject("Queue cleared");this.app.Y().L("html5_gapless_fallback_on_qoe_restart_v2")||e&&this.G&&this.G.oW(!1);tb(this,E)}; s_.prototype.Tf=function(){return!this.T}; s_.prototype.oe=function(){var E;return((E=this.Z)==null?void 0:E.oe())||!1}; s_.prototype.Gz=function(){tb(this);g.a.prototype.Gz.call(this)};g.d(EEe,g.sJ);g.z=EEe.prototype;g.z.getVisibilityState=function(E,e,l,k,H,O,X,A){return E?4:kLZ()?3:e?2:l?1:k?5:H?7:O?8:X?9:A?10:0}; g.z.a9=function(E){this.fullscreen!==E&&(this.fullscreen=E,this.B7())}; g.z.setMinimized=function(E){this.G!==E&&(this.G=E,this.B7())}; g.z.setInline=function(E){this.inline!==E&&(this.inline=E,this.B7())}; g.z.Ll=function(E){this.pictureInPicture!==E&&(this.pictureInPicture=E,this.B7())}; g.z.setSqueezeback=function(E){this.Z!==E&&(this.Z=E,this.B7())}; g.z.Ly=function(E){this.S!==E&&(this.S=E,this.B7())}; g.z.FJ=function(){return this.T}; g.z.PQ=function(){return this.fullscreen!==0}; g.z.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.z.FB=function(){return this.fullscreen}; g.z.isMinimized=function(){return this.G}; g.z.isInline=function(){return this.inline}; g.z.isBackground=function(){return kLZ()}; g.z.Dl=function(){return this.pictureInPicture}; g.z.Z7=function(){return!1}; g.z.QW=function(){return this.Z}; g.z.jY=function(){return this.S}; g.z.B7=function(){this.publish("visibilitychange");var E=this.getVisibilityState(this.FJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Dl(),this.Z7(),this.QW(),this.jY());E!==this.J&&this.publish("visibilitystatechange");this.J=E}; g.z.Gz=function(){XpW(this.W);g.sJ.prototype.Gz.call(this)};g.d(g.qe,g.a);g.z=g.qe.prototype;g.z.Gz=function(){this.videoData=this.playerState=null;g.a.prototype.Gz.call(this)}; g.z.addCueRange=function(){}; g.z.OV=function(){}; g.z.Um=function(){}; g.z.KS=function(){return!1}; g.z.WC=function(){return!1}; g.z.pX=function(){}; g.z.A_=function(){}; g.z.wc=function(){return[]}; g.z.FW=function(){}; g.z.getAudioTrack=function(){return this.getVideoData().Hy}; g.z.xd=function(){return null}; g.z.getAvailableAudioTracks=function(){return[]}; g.z.x6=function(){return[]}; g.z.nx=function(){return[]}; g.z.o6=function(){return""}; g.z.Eq=function(){return[]}; g.z.oy=function(){}; g.z.Zu=function(){return 0}; g.z.getCurrentTime=function(){return 0}; g.z.sC=function(){}; g.z.UM=function(){}; g.z.zX=function(){return{}}; g.z.getDuration=function(){return 0}; g.z.sZ=function(){return 0}; g.z.pY=function(){return 0}; g.z.zb=function(){return!1}; g.z.hO=function(){return 0}; g.z.Zy=function(){return 0}; g.z.s_=E9(7);g.z.iH=function(){return 0}; g.z.cV=function(){return!1}; g.z.cn=function(){return 0}; g.z.Ps=function(){return null}; g.z.T8=function(){return null}; g.z.Hs=function(){return 0}; g.z.TF=function(){return 0}; g.z.d2=function(){return g.D(function(E){g.$0(E)})}; g.z.jC=E9(15);g.z.getPlaybackQuality=function(){return"auto"}; g.z.getPlaybackRate=function(){return 1}; g.z.getPlayerState=function(){this.playerState||(this.playerState=new g.zU);return this.playerState}; g.z.getPlayerType=function(){return 0}; g.z.getPlaylistSequenceForTime=function(){return null}; g.z.wB=function(){return function(){}}; g.z.AQ=function(){return""}; g.z.getPreferredQuality=function(){return"unknown"}; g.z.GI=function(){}; g.z.getProximaLatencyPreference=function(){return 0}; g.z.Gn=function(){return B$}; g.z.mf=function(){return null}; g.z.getStoryboardFormat=function(){return null}; g.z.getStreamTimeOffset=function(){return 0}; g.z.q5=function(){return 0}; g.z.eE=function(){return 0}; g.z.OC=function(){return{r4:[],g1:[],currentTime:0,NE:"",droppedVideoFrames:0,isGapless:!1,Tf:!0,u$:0,MF:0,PO:0,HO:0,zA:0,vO:[],ek:[],jX:null,playerState:this.getPlayerState(),C$:null,sL:"",totalVideoFrames:0}}; g.z.getUserAudio51Preference=function(){return 0}; g.z.getUserPlaybackQualityPreference=function(){return""}; g.z.getVideoData=function(){this.videoData||(this.videoData=new g.oR(this.dH),g.L(this,this.videoData));return this.videoData}; g.z.hn=function(){return null}; g.z.xj=function(){return null}; g.z.jH=function(){}; g.z.getVideoLoadedFraction=function(){return 0}; g.z.h9=function(){}; g.z.handleError=function(){}; g.z.oW=function(){}; g.z.oC=function(){}; g.z.ai=E9(40);g.z.AO=function(){return!1}; g.z.hasSupportedAudio51Tracks=function(){return!1}; g.z.Li=function(){return!1}; g.z.FJ=function(){return!1}; g.z.isAtLiveHead=function(){return!1}; g.z.qx=function(){return!0}; g.z.isGapless=function(){return!1}; g.z.isHdr=function(){return!1}; g.z.eZ=function(){return!1}; g.z.rT=function(){return!1}; g.z.F5=function(){return!1}; g.z.isProximaLatencyEligible=function(){return!1}; g.z.Tf=function(){return!0}; g.z.hp=function(){return!1}; g.z.RW=function(){return!1}; g.z.V3=function(){}; g.z.IB=function(){}; g.z.Wp=function(){}; g.z.Vz=function(){}; g.z.q$=function(){}; g.z.yO=function(){}; g.z.Ct=function(){}; g.z.jM=E9(50);g.z.Vs=E9(21);g.z.vp=function(){}; g.z.pauseVideo=function(){}; g.z.prefetchKeyPlay=function(){}; g.z.playVideo=function(){return g.D(function(E){return E.return()})}; g.z.Kh=function(){}; g.z.yR=E9(27);g.z.Cw=E9(33);g.z.uy=function(){}; g.z.wH=function(){}; g.z.By=function(){}; g.z.s4=function(){}; g.z.cz=function(){}; g.z.wO=function(){}; g.z.BW=function(){}; g.z.O5=function(){}; g.z.A3=function(){}; g.z.EB=function(){}; g.z.ye=function(){}; g.z.aF=function(){}; g.z.removeCueRange=function(){}; g.z.gI=function(){}; g.z.Qy=function(){return[]}; g.z.Fu=function(){}; g.z.u1=function(){}; g.z.wg=function(){}; g.z.Gj=function(){}; g.z.Yp=function(){}; g.z.rl=function(){}; g.z.seekTo=function(){}; g.z.sendAbandonmentPing=function(){}; g.z.sendVideoStatsEngageEvent=function(){}; g.z.Wz=function(){}; g.z.setLoop=function(){}; g.z.n6=function(){}; g.z.setMediaElement=function(){}; g.z.s3=function(){}; g.z.setPlaybackRate=function(){}; g.z.I7=function(){}; g.z.jF=function(){}; g.z.SH=function(){}; g.z.setProximaLatencyPreference=function(){}; g.z.U3=function(){}; g.z.Jy=function(){}; g.z.Zv=function(){}; g.z.jt=function(){}; g.z.ZX=function(){}; g.z.setUserAudio51Preference=function(){}; g.z.v8=function(){}; g.z.p_=function(){return!1}; g.z.Ki=function(){}; g.z.Ow=function(){return!1}; g.z.i6=function(){}; g.z.O3=function(){}; g.z.yE=function(){}; g.z.stopVideo=function(){}; g.z.subscribe=function(){return NaN}; g.z.yJ=function(){}; g.z.togglePictureInPicture=function(){}; g.z.RI=function(){return 0}; g.z.unsubscribe=function(){return!1}; g.z.NB=function(){}; g.z.Ge=function(){return!1}; g.z.q2=function(){}; g.z.Rl=function(){}; g.z.eN=function(){};g.d(le,g.a);g.z=le.prototype;g.z.get=function(E){E5(this);var e=this.data.find(function(l){return l.key===E}); return e?e.value:null}; g.z.set=function(E,e,l){this.remove(E,!0);E5(this);E={key:E,value:e,expire:Infinity};l&&isFinite(l)&&(l*=1E3,E.expire=(0,g.dE)()+l);for(this.data.push(E);this.data.length>this.Z;)(l=this.data.shift())&&k8(this,l,!0);ew(this)}; g.z.remove=function(E,e){e=e===void 0?!1:e;var l=this.data.find(function(k){return k.key===E}); l&&(k8(this,l,e),g.I1(this.data,function(k){return k.key===E}),ew(this))}; g.z.removeAll=function(E){if(E=E===void 0?!1:E)for(var e=g.T(this.data),l=e.next();!l.done;l=e.next())k8(this,l.value,E);this.data=[];ew(this)}; g.z.Gz=function(){var E=this;g.a.prototype.Gz.call(this);this.data.forEach(function(e){k8(E,e,!0)}); this.data=[]};g.d(g.HB,g.a);g.z=g.HB.prototype;g.z.Gz=function(){for(var E=g.T(Object.values(this.Z)),e=E.next();!e.done;e=E.next())e.value.dispose();eCp(this);this.T.dispose();g.a.prototype.Gz.call(this)}; g.z.hS=function(E){return E?E===1?this.N:this.G.getVideoData().enableServerStitchedDai&&E===2?this.G.getVideoData().u0?this.Z[2]||this.G:this.G:this.Z[E]||null:this.G}; g.z.JN=function(E){var e=E.cpn;E=E.playerType;if(e)a:{E=g.T(Object.values(this.Z));for(var l=E.next();!l.done;l=E.next())if(l=l.value,l.o6()===e){e=l;break a}e=this.J[e]||null}else e=E?this.hS(E):this.G;return e}; g.z.mM=function(){return this.N}; g.z.Il=function(E){this.N=E}; g.z.yd=function(){return this.G}; g.z.Gr=function(E){this.G=E;O5(this)}; g.z.Y0=E9(46);g.z.U2=E9(48);g.d(pWy,g.kl);g.z=pWy.prototype;g.z.HC=function(){}; g.z.o6=function(){return this.videoData.clientPlaybackNonce}; g.z.getVideoData=function(){if(g.kl.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var E=SKZ(this.L5,g.kl.prototype.getCurrentTime.call(this))||g.kl.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==E.clientPlaybackNonce&&x29(this.G,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:E.clientPlaybackNonce});return this.videoData}return SKZ(this.L5,g.kl.prototype.getCurrentTime.call(this))||g.kl.prototype.getVideoData.call(this)}; g.z.getCurrentTime=function(E){var e=g.kl.prototype.getCurrentTime.call(this);if(g.kl.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){this.T===0?E||(e-=this.startTimeSecs):E&&(e=this.T);var l=E?this.L5.xl||g.kl.prototype.getCurrentTime.call(this):Ir7(this.L5,g.kl.prototype.getCurrentTime.call(this));e!==l&&x29(this.G,"time"+(E!=null?E:!1),{time:e,ref:l,ct:E!=null?E:!1})}else e=E?this.L5.xl||e:Ir7(this.L5,e);return e}; g.z.getDuration=function(){if(g.kl.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var E=frZ(this.L5,g.kl.prototype.getCurrentTime.call(this));this.duration!==E&&x29(this.G,"duration",{dur:this.duration,ref:E});return this.duration}return frZ(this.L5,g.kl.prototype.getCurrentTime.call(this))}; g.z.qO=function(E){this.duration=E};g.ue.prototype.B0=function(E,e){if(e===1)return this.T.get(E);if(e===2)return this.Z.get(E);if(e===3)return this.G.get(E)}; g.ue.prototype.zL=E9(58);g.ue.prototype.Hl=function(E,e,l,k){l={nX:k,t5:l};e?this.Z.set(E,l):this.T.set(E,l)}; g.ue.prototype.clearAll=function(){this.T.clear();this.Z.clear();this.G.clear()}; W0v.prototype.clear=function(){this.T=[];this.Z.clear();this.S.clear();this.G.clear()}; W0v.prototype.JN=function(E){var e=E.cpn;E=E.f5;if(e&&(e=this.Z.get(e))||E&&(e=this.S.get(E)))return e}; g.d(g.AQ,g.a);g.z=g.AQ.prototype;g.z.onCueRangeEnter=function(E){var e=E.getId();this.p7({oncueEnter:1,cpn:e,start:E.start,end:E.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Zu()||0).toFixed(3)});var l=this.T.JN({cpn:e});this.p7({enterAdCueRange:1});var k=this.yQ||this.nh().cpn,H;k=(H=this.T.JN({cpn:k}))!=null?H:this.nh();l&&(H=this.playback.getCurrentTime(),l.startTimeSecs=E.start/1E3,l={hG:k,Sn:l,XK:H},tgW(this,e,E.start/1E3,H),sjl(this,l))}; g.z.ut=function(E,e){if(E===this.playback.o6())Xk(this.app.lP(),this.playback,!1);else{var l=this.h0.get(E);l?(l.T=0,l.startTimeSecs=e,Xk(this.app.lP(),l,!0)):this.p7({nop_s:E})}}; g.z.onCueRangeExit=function(E){for(var e=this.playback.getCurrentTime()*1E3,l=E.getId(),k=g.T(this.G.values()),H=k.next();!H.done;H=k.next())if(H=H.value,H.getId()!==l&&e>=H.start&&e<=H.end)return;if(l=this.T.JN({cpn:l}))e=this.playback.getCurrentTime(),k=this.nh(),k.startTimeSecs=E.end/1E3,l={hG:l,Sn:k,XK:e},tgW(this,this.playback.o6(),E.end/1E3,e),sjl(this,l)}; g.z.nh=function(){return{cpn:this.playback.o6(),durationMs:0,w$:0,playerType:1,nY:0,videoData:this.playback.getVideoData(),errorCount:0,K_:""}}; g.z.seekTo=function(E,e,l,k){E=E===void 0?0:E;e=e===void 0?{}:e;l=l===void 0?!1:l;k=k===void 0?null:k;BB(this,this.yQ);if(this.playback.getVideoData().Z0()&&E<=this.xl)this.playback.pauseVideo(),this.xl=0,qK9(this,E);else if(this.pg=!0,l)d2W(this,E,e);else{l=this.app.yd();var H=l===this.Qd?this.gH:null;QU(this,!1);this.Yt=E;this.ND=e;k!=null&&this.b3.start(k);l&&(this.gH=H||l.getPlayerState(),l.yE(e),this.Qd=l)}}; g.z.Gz=function(){QU(this,!1);D2e(this);bmW(this);g.a.prototype.Gz.call(this)}; g.z.Dm=function(E){this.dC=E;this.p7({swebm:E})}; g.z.xu=function(E,e,l){if(l&&e){var k=this.W.get(E);if(k){k.locations||(k.locations=new Map);var H=Number(e.split(";")[0]);l=new g.N3(l);this.p7({hdlredir:1,itag:e,seg:E,hostport:Yn(l)});k.locations.set(H,l)}}}; g.z.FL=function(E,e,l,k,H,O){var X=k===3,A=arX(this,E,e,k,l,O);if(!A){WB(this,e,X);var C=g.vEW(this,e)?"undec":"ncp";this.p7({gvprp:C,mt:E,seg:e,tt:k,itag:l,ce:O});return null}X||this.W.set(e,A);O=A.K_;var p;k=((p=this.B0(e-1,k,H))==null?void 0:p.nX)||"";k===""&&this.p7({eds:1});p=hCX(this,A.ssdaiAdsConfig);H=this.playback.getVideoData();var x;X=((x=H.G)==null?void 0:x.containerType)||0;x=H.mF[X];A=A.FC&&e>=A.FC?A.FC:void 0;x={BB:O?YKX(this,O):[],rA:p,nX:k,ol:A,Hm:SW(x.split(";")[0]),z1:x.split(";")[1]|| ""};A={jG:x};this.c5&&(E={gvprpro:"v",sq:e,mt:E.toFixed(3),itag:l,acpns:((C=x.BB)==null?void 0:C.join("_"))||"none",abid:O},this.p7(E));return A}; g.z.ZZ=function(E){a:{if(!this.k7){var e=L07(this,E);if(!(this.playback.getVideoData().Z0()&&(e==null?0:e.qF)))break a}e=void 0}var l=e;if(!l)return this.p7({gvprp:"ncp",mt:E}),null;e=l.K_;var k=hCX(this,l.ssdaiAdsConfig);l=l.FC&&l.G1&&E>=l.G1?l.FC:void 0;var H=this.playback.getVideoData(),O,X=((O=H.G)==null?void 0:O.containerType)||0;O=H.mF[X];O={BB:e?YKX(this,e):[],rA:k,ol:l,Hm:SW(O.split(";")[0]),z1:O.split(";")[1]||""};var A;E={gvprpro:"v",mt:E.toFixed(3),acpns:((A=O.BB)==null?void 0:A.join("_"))|| "none",abid:e};this.p7(E);return O}; g.z.Ao=function(E,e,l,k,H,O){var X=Number(l.split(";")[0]),A=k===3;E=arX(this,E,e,k,l,O);this.p7({gdu:1,seg:e,itag:X,pb:""+!!E});if(!E)return WB(this,e,A),null;E.locations||(E.locations=new Map);if(!E.locations.has(X)){var C,p;O=(C=E.videoData.getPlayerResponse())==null?void 0:(p=C.streamingData)==null?void 0:p.adaptiveFormats;if(!O)return this.p7({gdu:"noadpfmts",seg:e,itag:X}),WB(this,e,A),null;C=O.find(function(W){return W.itag===X}); if(!C||!C.url){var x=E.videoData.videoId;E=[];var Q=g.T(O);for(k=Q.next();!k.done;k=Q.next())E.push(k.value.itag);this.p7({gdu:"nofmt",seg:e,vid:x,itag:X,fullitag:l,itags:E.join(",")});WB(this,e,A);return null}E.locations.set(X,new g.N3(C.url,!0))}O=E.locations.get(X);if(!O)return this.p7({gdu:"nourl",seg:e,itag:X}),WB(this,e,A),null;O=new Do(O);this.dC&&(O.get("dvc")?this.p7({dvc:O.get("dvc")||""}):O.set("dvc","webm"));(k=(Q=this.B0(e-1,k,H))==null?void 0:Q.nX)&&O.set("daistate",k);E.FC&&e>=E.FC&& O.set("skipsq",""+E.FC);(Q=this.playback.getVideoData().clientPlaybackNonce)&&O.set("cpn",Q);Q=[];E.K_&&(Q=YKX(this,E.K_),Q.length>0&&O.set("acpns",Q.join(",")));A||this.W.set(e,E);A=null;A=O.get("aids");k=O.cN();(k==null?void 0:k.length)>2048&&this.p7({urltoolong:1,sq:e,itag:X,len:k.length});this.c5&&(k&&(O=E.cpn,H=E.K_,K08(this,O,H),H&&!this.bY.has(H)&&(O=m2W(this,O,H),C=gE9(this,H),this.p7({iofa:O}),this.p7({noawnzd:C-O}),this.p7({acpns:Q.join("."),aids:(x=A)==null?void 0:x.replace(/,/g,".")}), this.bY.add(H))),this.p7({gdu:"v",seg:e,itag:l,ast:E.w$.toFixed(3),alen:E.durationMs.toFixed(3),acpn:E.cpn,avid:E.videoData.videoId}));return k}; g.z.XC=function(E,e,l){l=l===void 0?!1:l;var k=PDW(this,E,e);if(k){var H=void 0,O=k.K_;if(O){this.p7({skipadonsq:e,sts:l,abid:O,acpn:k.cpn,avid:k.videoData.videoId});l=this.T.G.get(O);if(!l)return;l=g.T(l);for(O=l.next();!O.done;O=l.next())O=O.value,O.FC=e,O.G1=E,O.w$>k.w$&&(H=O)}BB(this,this.yQ);this.Z=k.cpn;Mgy(this);E=this.playback.getCurrentTime();NXW(this,k,H,E,E,!1,!0);RCp(this)}}; g.z.O2=function(){for(var E=g.T(this.T.T),e=E.next();!e.done;e=E.next())e=e.value,e.FC=NaN,e.G1=NaN;Mgy(this);this.p7({rsac:"resetSkipAd",sac:this.Z});this.jR.delete(this.Z);this.Z=""}; g.z.B0=function(E,e,l){return this.kt.B0(E,e,l)}; g.z.zL=E9(57); g.z.Hl=function(E,e,l,k,H,O,X,A,C){k.length>0&&this.p7({onssinfo:1,sq:E,start:e.toFixed(3),cpns:k.join(","),ds:H.join(","),isVideo:X?1:0});C&&this.kt.Hl(E,X,A,C);if(X){if(k.length&&H.length)for(this.jR.has(k[0])&&this.p7({skipfail:1,sq:E,acpn:k[0]}),E=e+this.q5(),l=0;l0&&(this.IW=0,this.yQ="",this.dH.L("html5_huli_ssdai_use_playback_state")&&this.ut(this.playback.o6(),0),this.api.publish("serverstitchedvideochange"));this.playback.A_(l,k);return!0}; g.z.c_=function(){this.p7({rstdaist:1});this.kt.clearAll()}; g.z.GL=function(E){var e;if(E!==((e=this.J)==null?void 0:e.identifier))this.p7({ignorenoad:E});else{this.R4.add(E);this.p7({noadrcv:E});var l;((l=this.J)==null?void 0:l.identifier)===E&&p5(this)}}; g.z.II=function(E){if(this.k7)return this.p7({dai_disabled:E.event}),!1;if(this.playback.getVideoData().Z0()&&(this.dH.L("html5_lifa_no_gab_on_predict_start")&&E.event==="predictStart"||E.event==="continue"||E.event==="stop"))return!1;var e=au(this.api.SE());if(e=e?e.II(E):!1)this.S={tX:E.identifier,eS:E.startSecs};else if(this.S&&this.S.tX===E.identifier&&E.startSecs>this.S.eS+1){this.p7({cueStChg:E.identifier,oldSt:this.S.eS.toFixed(3),newSt:E.startSecs.toFixed(3),abid:this.S.jS});if(this.S.jS){var l= E.startSecs-this.S.eS,k=this.T.G.get(this.S.jS);if(k){k=g.T(k);for(var H=k.next();!H.done;H=k.next())H=H.value,H.w$>=0&&(H.w$+=l*1E3,this.dH.L("html5_ssdai_update_timeline_on_start_time_change")&&(H.nY+=l*1E3),this.p7({newApEt:H.w$,newApPrt:H.nY,acpn:H.cpn}))}}this.S.eS=E.startSecs}return e}; g.z.mz=function(E){return this.k7?!1:!!L07(this,E)}; g.z.T1=function(E){var e=this;if(this.dH.L("html5_lifa_ignore_multiple_skips")&&this.SR)return this.p7({ufs_ad:this.Z,ufs_cur:this.yQ,ufs_cont:this.nh().cpn}),!1;BB(this,this.yQ);this.playback.pauseVideo();var l=this.playback.getCurrentTime(),k=this.T.JN({cpn:this.yQ});if(!k)return this.p7({skipFail:l}),!1;this.Z=this.yQ;this.pg=!1;nE9(this,k.K_);EMy(this,k,this.nh(),E);qK9(this,l,{seekSource:89,AN:"lifa_skip"});this.SR||(this.SR=this.events.C(this.api,"progresssync",function(){Jm(e.api.VR(),(0,g.dE)(), "ad_to_video");e.SR&&(e.events.xN(e.SR),e.SR=null)})); return!0}; g.z.p7=function(E,e){((e===void 0?0:e)||this.c5||this.playback.getVideoData().Z0())&&this.playback.wH("sdai",E)}; var $27=0;g.d(lV9,g.a);g.z=lV9.prototype;g.z.onCueRangeEnter=function(E){if(this.T===this.app.yd()){var e=this.W.get(E);e?AhX(this,e.target,e.C9,E):this.wO("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:E.toString()})}else if(e=this.G.find(function(H){return H.ra.qR===E})){var l=e.ra,k=l.target; l=l.C9;k?AhX(this,k,l,E):unp(this,e.nY,l,E)}}; g.z.onQueuedVideoLoaded=function(){var E=this.j;dU(this);if(E){if(!z5(this,E)){var e=this.app.yd();this.wO("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:e==null?void 0:e.getVideoData().clientPlaybackNonce,ccpn:""+E.playerVars.cpn})}this.app.yd().addCueRange(E.ra.qR)}}; g.z.seekTo=function(E,e,l,k){E=E===void 0?0:E;e=e===void 0?{}:e;k=k===void 0?null:k;if(l===void 0?0:l)egv(this,E,e);else{l=this.app.yd()||null;var H=l===this.S?this.J:null;G5(this,!1);this.pg=E;this.V=e;k!=null&&this.N.start(k);l&&(this.J=H||l.getPlayerState(),l.yE(),this.S=l)}}; g.z.Fx=function(E){g.Xh(E,128)&&WL8(this)}; g.z.isManifestless=function(){return b7(this.T.getVideoData())}; g.z.Gz=function(){G5(this,!1);oMW(this);g.a.prototype.Gz.call(this)}; g.z.wO=function(E,e){this.T.wO(new g.pL(E,e))}; var kmX=0;var w78="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.d(T5,g.a);T5.prototype.Nn=function(E){if(E)return this.G.get(E)}; T5.prototype.Gz=function(){this.T.removeAll();this.G.removeAll();g.a.prototype.Gz.call(this)};g.qf2=Vz(function(){var E=window.AudioContext||window.webkitAudioContext;try{return new E}catch(e){return e.name}});g.d(iu7,g.Z);g.z=iu7.prototype;g.z.BR=function(){g.Ez(this.element,g.LS.apply(0,arguments))}; g.z.u1=function(){this.rC&&(this.rC.removeEventListener("focus",this.kR),g.zD(this.rC),this.rC=null)}; g.z.K8=function(){this.U7();var E=this.app.Y();E.K9||this.BR("tag-pool-enabled");E.J&&this.BR(g.Gu.HOUSE_BRAND);E.playerStyle==="gvn"&&(this.BR("ytp-gvn"),this.element.style.backgroundColor="transparent");E.Wh&&(this.OX=g.mQ("yt-dom-content-change",this.resize,this));this.C(window,"orientationchange",this.resize,this);this.C(window,"resize",this.resize,this)}; g.z.p6=function(E){g.Hk(this.app.Y());this.fu=!E;ie(this)}; g.z.resize=function(){if(this.rC){var E=this.pI();if(!E.isEmpty()){var e=g.tJ(this.app.Y().experiments,"html5_android_mweb_resize_delay")>0,l=this.app.eR.isFullscreen();if(e&&l&&bM()){var k;(k=this.CP)==null||k.start()}e=!g.my(E,this.Es.getSize());l=yh7(this);e&&(this.Es.width=E.width,this.Es.height=E.height);E=this.app.Y();(l||e||this.sG||E.Wh)&&this.app.eR.publish("resize",this.getPlayerSize())}}}; g.z.o9=function(E,e){this.updateVideoData(e)}; g.z.updateVideoData=function(E){if(this.rC){var e=this.app.Y();PZ&&(this.rC.setAttribute("x-webkit-airplay","allow"),E.title?this.rC.setAttribute("title",E.title):this.rC.removeAttribute("title"));this.rC.setAttribute("controlslist","nodownload");e.gY&&E.videoId&&(this.rC.poster=E.Za("default.jpg"))}e=g.mB(E,"yt:bgcolor");this.rV.style.backgroundColor=e?e:"";this.Oe=qb(g.mB(E,"yt:stretch"));this.aO=qb(g.mB(E,"yt:crop"),!0);g.k_(this.element,"ytp-dni",E.r$);this.resize()}; g.z.setGlobalCrop=function(E){this.QT=qb(E,!0);this.resize()}; g.z.setCenterCrop=function(E){this.ZP=E;this.resize()}; g.z.a9=function(){}; g.z.getPlayerSize=function(){var E=this.app.Y(),e=this.app.eR.isFullscreen(),l=E.externalFullscreen&&g.qA(E);if(e&&bM()&&!l)return new g.YX(window.outerWidth,window.outerHeight);l=!isNaN(this.dT.width)&&!isNaN(this.dT.height);var k=this.app.Y().L("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.Y().L("web_watch_enable_fs_squeezeback_panels");if(e&&!l&&k)return new g.YX(this.element.clientWidth,this.element.clientHeight);if(e||E.yc){if(window.matchMedia){E="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.uM&&this.uM.media===E||(this.uM=window.matchMedia(E));var H=this.uM&&this.uM.matches}if(H)return new g.YX(window.innerWidth,window.innerHeight)}else if(l)return this.dT.clone();return new g.YX(this.element.clientWidth,this.element.clientHeight)}; g.z.pI=function(){var E=this.app.Y().L("enable_desktop_player_underlay"),e=this.getPlayerSize(),l=g.tJ(this.app.Y().experiments,"player_underlay_min_player_width");return E&&this.rW&&e.width>l?(E=g.tJ(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.YX(Math.min(e.height*this.getVideoAspectRatio(),e.width*E),Math.min(e.height,e.width*E/this.getVideoAspectRatio()))):e}; g.z.getVideoAspectRatio=function(){return isNaN(this.Oe)?UB7(this):this.Oe}; g.z.getVideoContentRect=function(E){var e=this.pI();E=Jh8(this,e,this.getVideoAspectRatio(),E);return new g.ab((e.width-E.width)/2,(e.height-E.height)/2,E.width,E.height)}; g.z.oU=function(E){this.rW=E;this.resize()}; g.z.xb=function(){return this.s5}; g.z.onMutedAutoplayChange=function(){ie(this)}; g.z.setInternalSize=function(E){g.my(this.dT,E)||(this.dT=E,this.resize())}; g.z.Gz=function(){this.OX&&g.gd(this.OX);this.u1();g.Z.prototype.Gz.call(this)};g.z=IV9.prototype;g.z.click=function(E,e){this.elements.has(E);this.T.has(E);var l=g.BQ();l&&E.visualElement&&g.gw(l,E.visualElement,e)}; g.z.createClientVe=function(E,e,l,k){var H=this;k=k===void 0?!1:k;this.elements.has(E);this.elements.add(E);l=iEZ(l);E.visualElement=l;var O=g.BQ(),X=g.WQ();O&&X&&(g.QT("combine_ve_grafts")?gn(Y2(),l,X):g.ZP(g.bo)(void 0,O,X,l));e.addOnDisposeCallback(function(){H.elements.has(E)&&H.destroyVe(E)}); k&&this.G.add(E)}; g.z.createServerVe=function(E,e,l){var k=this;l=l===void 0?!1:l;this.elements.has(E);this.elements.add(E);e.addOnDisposeCallback(function(){k.destroyVe(E)}); l&&this.G.add(E)}; g.z.destroyVe=function(E){this.elements.has(E);this.elements.delete(E);this.Z.delete(E);this.T.delete(E);this.G.delete(E)}; g.z.qa=function(E,e){this.clientPlaybackNonce!==e&&(this.clientPlaybackNonce=e,mg(Y2(),E),FLp(this))}; g.z.setTrackingParams=function(E,e){this.elements.has(E);e&&(E.visualElement=g.xF(e))}; g.z.Yw=function(E,e,l){this.elements.has(E);e?this.T.add(E):this.T.delete(E);var k=g.BQ(),H=E.visualElement;this.G.has(E)?k&&H&&(e?g.YF(k,[H]):g.mo(k,[H])):e&&!this.Z.has(E)&&(k&&H&&g.Z_(k,H,void 0,l),this.Z.add(E))}; g.z.hasVe=function(E){return this.elements.has(E)};g.d(g.U5,g.a);g.U5.create=function(E,e,l,k){try{var H=typeof E==="string"?E:"player"+g.u_(E),O=Vn[H];if(O){try{O.dispose()}catch(A){g.$F(A)}Vn[H]=null}var X=new g.U5(E,e,l,k);X.addOnDisposeCallback(function(){Vn[H]=null;X.gq&&X.gq()}); return Vn[H]=X}catch(A){throw g.$F(A),(A&&A instanceof Error?A:Error(String(A))).stack;}}; g.z=g.U5.prototype;g.z.Fm=function(){return this.visibility}; g.z.Il=function(E){var e=this.mM();if(E!==e){E.getVideoData().autonavState=e.getVideoData().autonavState;e.NB(this.IS,this);var l=e.getPlaybackRate();e.dispose();this.Fa.Il(E);E.setPlaybackRate(l);E.yJ(this.IS,this);vMl(this)}}; g.z.LI=function(){this.DZ||(this.DZ=g.Nu(ey(),Dke()));return this.DZ}; g.z.u1=function(E){if(this.mediaElement){this.rg&&(this.events.xN(this.rg),this.rg=null);g.iG(this.zI);this.yd().u1(!0,!1,E);this.template.u1();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Mt()}catch(e){g.UJ(e)}this.mediaElement=null}}; g.z.Gr=function(E,e,l){l=l===void 0?!1:l;if(E!==this.yd()){this.logger.debug(function(){return"start set presenting player, type "+E.getPlayerType()+", vid "+E.getVideoData().videoId}); var k=null;l||(l=this.yd(),k=l.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),PG(this.gO,3),mK(this,"cuerangesremoved",l.Eq()),this.ZG&&!E.isGapless()&&l.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),l=E.p_()&&l.p_(),this.xw.y7("iv_s"),YFp(this,l));E.getPlayerType()===1&&this.Il(E);ZuS(this,E);this.Fa.Gr(E);this.mediaElement&&E.setMediaElement(this.mediaElement);E.yJ(this.PU,this);E.RW()?ziZ(this,"setPresenting",!1):(this.o9("newdata",E,E.getVideoData()), k&&!g.U$(k,E.getPlayerState())&&this.TM(new g.H2(E.getPlayerState(),k)),e=e&&E.getPlayerType()===1,E.rT()&&!e&&this.o9("dataloaded",E,E.getVideoData()),(e=(e=E.getVideoData().G)&&e.video)&&this.eR.c7("onPlaybackQualityChange",e.quality),mK(this,"cuerangesadded",E.Eq()),e=E.getPlayerState(),g.m(e,2)?Nz8(this):g.m(e,8)?E.playVideo():E.eZ()&&E.pauseVideo(),e=this.mM(),E.getPlayerType()===2&&(E.getVideoData().X2=e.getVideoData().clientPlaybackNonce),E.getPlayerType()!==2||this.rR()||(k=E.getVideoData(), e.Kh(k.clientPlaybackNonce,k.f0||"",k.breakType||0,k.yf,k.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.z.fl=function(){if(this.mM()!==this.yd()){var E=this.yd();this.logger.debug(function(){return"release presenting player, type "+E.getPlayerType()+", vid "+E.getVideoData().videoId}); this.Gr(this.mM())}}; g.z.lP=function(){return this.Fa}; g.z.JN=function(E){return this.Fa.JN(E)}; g.z.hS=function(E){return this.Fa.hS(E)}; g.z.mM=function(){return this.Fa.mM()}; g.z.yd=function(){return this.Fa.yd()}; g.z.Om=E9(44);g.z.j45=function(){Fk(this)||(this.logger.debug("application playback ready"),this.uI(5))}; g.z.vwM=function(){if(!Fk(this)){this.logger.debug("playback ready");Wml(this);var E=this.yd(),e=E.getPlayerState();E.eZ()?this.pauseVideo():e.isOrWillBePlaying()&&this.playVideo()}}; g.z.canPlayType=function(E){return BR(E)}; g.z.Y=function(){return this.dH}; g.z.getVideoData=function(){return this.yd().getVideoData()}; g.z.eT=E9(11);g.z.mU=function(){return this.mM().getVideoData()}; g.z.getVideoLoadedFraction=function(E){return(E=this.JN({playerType:E}))?E.getVideoLoadedFraction():this.Fa.T.getVideoLoadedFraction()}; g.z.zz=function(){return this.template}; g.z.SE=function(){return this.gO}; g.z.VR=function(){return this.xw}; g.z.Dk=function(E,e,l){(e=this.JN({playerType:e===void 0?1:e}))&&e.Wz(E,void 0,l)}; g.z.ZN=function(){var E=this.gO.ZN();this.eR.publish("videoStatsPingCreated",E);return E}; g.z.getVolume=function(){return Math.round(this.eR.getVolume())}; g.z.isMuted=function(){return this.eR.isMuted()}; g.z.un=function(){if(this.mM()===this.yd()&&this.hg)return this.hg.postId}; g.z.p7t=function(){var E=this;this.L("use_rta_for_player")||(g.QS(this.dH)?g.FG(this.dH,g.Cb(this.getVideoData())).then(function(e){l4(ey(),e);zcy(E.getVideoData(),E.dH,E.LI())}):zcy(this.getVideoData(),this.dH,this.LI()))}; g.z.ZD=function(E){this.eR.publish("poTokenVideoBindingChange",E)}; g.z.LZ=function(E){this.eR.publish("d6de4videobindingchange",E)}; g.z.C4=function(){this.RH&&this.RH.C4()}; g.z.PD=function(E){this.RH=E}; g.z.FO=function(E){if(E===1){this.xw.tick("vr");var e=this.yd();e.Um();$HS(this.xw,e.getVideoData(),QTW(this));twy(this.gO)}e=this.dH;if(yN(e)&&e.N||g.XG(e)){var l;(((l=this.yd().getVideoData())==null?0:l.enableServerStitchedDai)||!this.rR())&&this.eR.c7("onAdStateChange",E)}}; g.z.setLoopVideo=function(E){var e=this.yd();e===this.mM()&&e.cV()!==E&&(e.setLoop(E),this.eR.MD("onLoopChange",E))}; g.z.getLoopVideo=function(){return this.yd().cV()}; g.z.setLoopRange=function(E){var e=!1;!!this.hg!==!!E?e=!0:this.hg&&E&&(e=this.hg.startTimeMs!==E.startTimeMs||this.hg.endTimeMs!==E.endTimeMs||this.hg.postId!==E.postId||this.hg.type!==E.type);if(e){e=this.yd();yJ(e.getVideoData())&&e.wH("slr",{et:(E==null?void 0:E.endTimeMs)||-1});e=this.mM();e.Qy("applooprange");if(E){var l=new g.Mr(E.startTimeMs,E.endTimeMs,{id:"looprange",namespace:"applooprange"});e.addCueRange(l)}else{this.mU().clipConfig=void 0;var k;((l=this.hg)==null?void 0:l.type)!=="repeatChapter"|| isNaN(Number((k=this.hg)==null?void 0:k.loopCount))||(l={loopCount:String(this.hg.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.E0("repeatChapterLoopEvent",l))}this.hg=E;this.eR.MD("onLoopRangeChange",E||void 0);this.mM()===this.yd()&&(this.r0(),e.pX())}}; g.z.getLoopRange=function(){return this.hg}; g.z.r0=function(){var E="",e=this.mM();this.hg?e!==this.yd()?E="pnea":qFW(this,e.getCurrentTime())&&(this.hg.loopCount=0,E="ilr"):E="nlr";var l=this.yd();if(yJ(l.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var k,H;l.wH("slrre",{rej:E,ct:e.getCurrentTime(),lst:(k=this.hg)==null?void 0:k.startTimeMs,let:(H=this.hg)==null?void 0:H.endTimeMs})}else l.wH("slrre",{});E||eiS(this)}; g.z.setPlaybackRate=function(E,e){if(!isNaN(E)){E=LL0(this,E);var l=this.mM();l.getPlaybackRate()!==E&&(l.setPlaybackRate(E),e&&!this.dH.S&&g.Jw("yt-player-playback-rate",E),this.eR.c7("onPlaybackRateChange",E))}}; g.z.getCurrentTime=function(E,e){e=e===void 0?!0:e;var l=this.Fa.Xx;if(l)return l.getCurrentTime();var k=E===2&&this.getVideoData().enableServerStitchedDai;l=null;k?l=this.yd():l=this.JN({playerType:E});return l?k&&this.MQ?(E=this.Fa.j)?E.getCurrentTime(e):l.getCurrentTime():e?(e=Is(this,l),L5(this,e.getCurrentTime(),e)):l.getCurrentTime():this.Fa.T.getCurrentTime()}; g.z.Zy=function(){var E=this.JN({playerType:void 0});if(!E)return this.Fa.T.Zy();E=Is(this,E);return L5(this,E.Zy(),E)}; g.z.getDuration=function(E,e){e=e===void 0?!0:e;var l=this.Fa.Xx;if(l)return l.getDuration();l=this.getVideoData();var k=E===2&&l.enableServerStitchedDai,H=null;k?H=this.yd():H=this.JN({playerType:E});if(!H)return this.Fa.T.getDuration();if(l.hasProgressBarBoundaries()&&!k){var O,X=Number((O=l.progressBarStartPosition)==null?void 0:O.utcTimeMillis),A;O=Number((A=l.progressBarEndPosition)==null?void 0:A.utcTimeMillis);if(!isNaN(X)&&!isNaN(O))return(O-X)/1E3}if(yJ(l)&&!l.isLivePlayback)return PB(this, E);if(e)return E=jw(this,H),L5(this,E.getDuration(),E);if(k&&this.MQ){if(this.L("html5_huli_ssdai_use_playback_state"))return E=this.Fa,E=E.S===E.j?E.S:null,(E==null?void 0:E.getDuration())||0;var C;return((C=this.Fa.j)==null?void 0:C.getDuration())||0}return H.getDuration()}; g.z.pY=function(E){var e=this.JN({playerType:E});return e?this.rR(e)?(e=jw(this,e),e.pY()-e.getCurrentTime()+this.getCurrentTime(E)):e.pY():this.Fa.T.pY()}; g.z.finishSegmentByCpn=function(){return[]}; g.z.K8=function(){this.template.K8();var E=this.eR;E.state.element=this.template.element;var e=E.state.element,l;for(l in E.state.T)E.state.T.hasOwnProperty(l)&&(e[l]=E.state.T[l]);(E=LR0(this.template.element))&&this.events.C(this.template,E,this.onFullscreenChange)}; g.z.getDebugText=function(E){var e=this.mM().zX(E),l=this.yd();if(l!==this.mM()){l=l.zX(E);for(var k=g.T(Object.keys(l)),H=k.next();!H.done;H=k.next())H=H.value,e["ad"+H]=l[H];if(E){l=e;k={};if(H=Ed(document,"movie_player"))k.bounds=H.getBoundingClientRect(),k["class"]=H.className;H={};var O=g.XZ("video-ads");O?(Ty9(O,H),H.html=O.outerHTML):H.missing=1;O={};var X=g.XZ("videoAdUiSkipContainer"),A=g.XZ("ytp-ad-skip-button-container"),C=g.XZ("ytp-skip-ad-button"),p=X||A||C;p?(Ty9(p,O),O.ima=X?1:0,O.bulleit= A?1:0,O.component=C?1:0):O.missing=1;k=JSON.stringify({player:k,videoAds:H,skipButton:O});l.ad_skipBtnDbgInfo=k}}E&&this.mediaElement&&(e["0sz"]=""+(+g2(this.mediaElement.getSize())===0),e.op=this.mediaElement.LV("opacity"),l=this.mediaElement.TI().y+this.mediaElement.getSize().height,e.yof=""+(+l<=0),e.dis=this.mediaElement.LV("display"));E&&((E=(0,g.QW)())&&(e.gpu=E),(E=this.dH.playerStyle)&&(e.ps=E),this.dH.jR&&(e.webview=1),(E=this.webPlayerContextConfig.jsUrl)&&(e.js=E));e.debug_playbackQuality= this.eR.getPlaybackQuality(1);e.debug_date=(new Date).toString();e.origin=window.origin;e.timestamp=Date.now();delete e.uga;delete e.q;return JSON.stringify(e,null,2)}; g.z.getFeedbackProductData=function(){var E={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:u[27]},e=this.getPlayerStateObject().Bf;e&&(E.player_error_code=e.errorCode,E.player_error_details=JSON.stringify(e.errorDetail));return E}; g.z.getPresentingPlayerType=function(E){if(this.appState===1)return 1;if(Fk(this))return 3;var e;return E&&((e=this.MQ)==null?0:VgW(e,this.getCurrentTime()))?2:this.yd().getPlayerType()}; g.z.bW=function(){return!1}; g.z.getPlayerStateObject=function(E){var e=this.Fa.Xx;return e?e.getPlayerState():this.JN({playerType:E}).getPlayerState()}; g.z.getAppState=function(){return this.appState}; g.z.T$z=function(E){switch(E.type){case "loadedmetadata":this.D8.start();E=g.T(this.Xv);for(var e=E.next();!e.done;e=E.next())e=e.value,xa7(this,e.id,e.mRH,e.Iat,void 0,!1);this.Xv=[];break;case "loadstart":this.xw.y7("gv");break;case "progress":case "timeupdate":nL(E.target.PG())>=2&&this.xw.y7("l2s");break;case "playing":g.J5&&this.D8.start();if(g.QS(this.dH))E=!1;else{e=g.nb(this.SE());E=this.mediaElement.LV("display")==="none"||g2(this.mediaElement.getSize())===0;var l=$8(this.template),k=this.yd().getVideoData(), H=g.Ik(this.dH);k=jv(k);e=!l||e||H||k||this.dH.ND;E=E&&!e}E&&(E=this.yd(),E.V3(),this.getVideoData().jE||(this.getVideoData().jE=1,this.wU(),E.playVideo()))}}; g.z.zID=function(E){this.eR.kU("onLoadProgress",E)}; g.z.k_0=function(){this.eR.publish("playbackstalledatstart")}; g.z.dMg=function(E,e){this.eR.publish("sabrCaptionsDataLoaded",E,e)}; g.z.PNR=function(E){this.yd().Jy(E)}; g.z.MJD=function(E){this.yd().U3(E)}; g.z.Z54=function(E){E=Is(this,this.yd());E=L5(this,E.getCurrentTime(),E);this.eR.c7("onVideoProgress",E);this.dH.PJ&&u3X(this,this.visibility.Dl())&&this.pauseVideo()}; g.z.CY0=function(){this.eR.c7("onAutoplayBlocked");var E=this.yd().getVideoData();E&&(E.s0=!0);this.L("embeds_enable_autoplay_and_visibility_signals")&&g.qA(this.dH)&&(E={autoplayBrowserPolicy:Tu(),autoplayIntended:iQ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.E0("embedsAutoplayStatusChanged",E))}; g.z.VEt=function(){this.eR.publish("progresssync")}; g.z.KM7=function(){this.eR.kU("onPlaybackPauseAtStart")}; g.z.q7z=function(E){if(this.getPresentingPlayerType()===1){g.Xh(E,1)&&!g.m(E.state,64)&&this.mU().isLivePlayback&&this.mM().isAtLiveHead()&&this.eR.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Xh(E,2)){if(this.hg&&this.hg.endTimeMs>=(this.getDuration()-1)*1E3){eiS(this);return}Nz8(this)}if(g.m(E.state,128)){var e=E.state;this.cancelPlayback(5);e=e.Bf;JSON.stringify({errorData:e,debugInfo:this.getDebugText(!0)});this.eR.c7("onError",Fg7(e.errorCode));this.eR.kU("onDetailedError",{errorCode:e.errorCode, errorDetail:e.errorDetail,message:e.errorMessage,messageKey:e.FK,cpn:e.cpn});(0,g.dE)()-this.dH.UJ>6048E5&&this.eR.kU("onReloadRequired")}e={};if(E.state.isPlaying()&&!E.state.isBuffering()&&!cz("pbresume","ad_to_video")&&cz("_start","ad_to_video")){var l=this.getVideoData();e.clientPlaybackNonce=l.clientPlaybackNonce;l.videoId&&(e.videoId=l.videoId);g.UX(e,"ad_to_video");$Q("pbresume",void 0,"ad_to_video");twy(this.gO)}this.eR.publish("applicationplayerstatechange",E)}}; g.z.TM=function(E){this.Fa.Xx||this.eR.publish("presentingplayerstatechange",E)}; g.z.Fx=function(E){yU(this,cf(E.state));g.m(E.state,1024)&&this.eR.isMutedByMutedAutoplay()&&(be(this,{muted:!1,volume:this.Ov.volume},!1),vB(this,!1))}; g.z.onPlayerRequestSent=function(E){this.eR.MD("onPlayerRequestSent",E)}; g.z.DI=function(E,e){E==="newdata"&&vMl(this);this.eR.publish("applicationvideodatachange",E,e)}; g.z.yg7=function(E,e){this.L("html5_afmt_change_update_volume")&&Wml(this);this.eR.kU("onPlaybackAudioChange",this.eR.getAudioTrack().gC.name);this.eR.publish("internalaudioformatchange",this.eR.getAudioTrack().gC.id,e)}; g.z.G_H=function(E){var e=this.yd().getVideoData();E===e&&this.eR.c7("onPlaybackQualityChange",E.G.video.quality)}; g.z.kH=function(){var E=this.Fa.Z[2]||null;E&&(E=E.getVideoData(),this.yd().wH("ssdai",{cleanaply:1,acpn:E==null?void 0:E.clientPlaybackNonce,avid:E.videoId,isDai:this.mU().enableServerStitchedDai?1:0}),delete this.Fa.Z[2])}; g.z.ws0=function(E,e){this.o9(E,this.yd(),e)}; g.z.o9=function(E,e,l){this.logger.debug(function(){return"on video data change "+E+", player type "+e.getPlayerType()+", vid "+l.videoId}); this.dH.f7()&&e.wH("vdc",{type:E,vid:l.videoId||"",cpn:l.clientPlaybackNonce||""});e===this.mM()&&(this.dH.Gf=l.oauthToken);e===this.mM()&&(this.getVideoData().enableServerStitchedDai&&!this.MQ?(this.mM().wH("sdai",{initSstm:1}),this.MQ=new g.AQ(this.eR,this.dH,this.mM(),this)):!this.getVideoData().enableServerStitchedDai&&this.MQ&&(this.MQ.dispose(),this.MQ=null));if(E==="newdata")this.logger.debug("new video data, destroy modules"),PG(this.gO,2),this.eR.publish("videoplayerreset",e);else{if(!this.mediaElement)return; E==="dataloaded"&&(this.mM()===this.yd()?(x9(l.F6,l.nE),nM9(this)):gMX(this));e.getPlayerType()===1&&(this.dH.fg&&GKS(this),this.getVideoData().isLivePlayback&&!this.dH.bI&&this.VL("html5.unsupportedlive",2,"DEVICE_FALLBACK"),l.isLoaded()&&((PTX(l)||this.getVideoData().bI)&&this.eR.publish("legacyadtrackingpingchange",this.getVideoData()),l.hasProgressBarBoundaries()&&kKX(this)));this.eR.publish("videodatachange",E,l,e.getPlayerType())}this.eR.c7("onVideoDataChange",{type:E,playertype:e.getPlayerType()}); this.r0();var k=l.by;k?this.i8.qa(k,l.clientPlaybackNonce):FLp(this.i8)}; g.z.Jv=function(){VU(this,null);this.eR.kU("onPlaylistUpdate")}; g.z.uaR=function(E){delete this.WW[E.getId()];this.mM().removeCueRange(E);a:{E=this.getVideoData();var e,l,k,H,O,X,A,C,p,x,Q=((e=E.fg)==null?void 0:(l=e.contents)==null?void 0:(k=l.singleColumnWatchNextResults)==null?void 0:(H=k.autoplay)==null?void 0:(O=H.autoplay)==null?void 0:O.sets)||((X=E.fg)==null?void 0:(A=X.contents)==null?void 0:(C=A.twoColumnWatchNextResults)==null?void 0:(p=C.autoplay)==null?void 0:(x=p.autoplay)==null?void 0:x.sets);if(Q)for(e=g.T(Q),l=e.next();!l.done;l=e.next())if(l= l.value,H=k=void 0,l=l.autoplayVideo||((k=l.autoplayVideoRenderer)==null?void 0:(H=k.autoplayEndpointRenderer)==null?void 0:H.endpoint),k=g.M(l,g.i7),O=H=void 0,l!=null&&((H=k)==null?void 0:H.videoId)===E.videoId&&((O=k)==null?0:O.continuePlayback)){E=l;break a}E=null}(e=g.M(E,g.i7))&&this.eR.MD("onPlayVideo",{sessionData:{autonav:"1",itct:E==null?void 0:E.clickTrackingParams},videoId:e.videoId,watchEndpoint:e})}; g.z.uI=function(E){var e=this;E!==this.appState&&(this.logger.debug(function(){return"app state change "+e.appState+" -> "+E}),E===2&&this.getPresentingPlayerType()===1&&(yU(this,-1),yU(this,5)),this.appState=E,this.eR.publish("appstatechange",E))}; g.z.VL=function(E,e,l,k,H){this.mM().I7(E,e,l,k,H)}; g.z.sE=E9(13);g.z.isAtLiveHead=function(E,e){e=e===void 0?!1:e;var l=this.JN({playerType:E});if(!l)return this.Fa.T.isAtLiveHead();E=jw(this,l);l=Is(this,l);return E!==l?E.isAtLiveHead(L5(this,l.getCurrentTime(),l),!0):E.isAtLiveHead(void 0,e)}; g.z.hO=function(){var E=this.JN({playerType:void 0});return E?jw(this,E).hO():this.Fa.T.hO()}; g.z.seekTo=function(E,e,l,k,H){e=e!==!1;if(k=this.JN({playerType:k}))this.appState===2&&rU(this),this.rR(k)?hQ(this)?this.MQ.seekTo(E,{seekSource:H},e,l):this.L5.seekTo(E,{seekSource:H},e,l):k.seekTo(E,{Ng:!e,Bm:l,AN:"application",seekSource:H})}; g.z.seekBy=function(E,e,l,k){this.seekTo(this.getCurrentTime()+E,e,l,k)}; g.z.Ixt=function(){this.eR.c7("SEEK_COMPLETE")}; g.z.O7M=function(){this.eR.MD("onAbnormalityDetected")}; g.z.nNt=function(E){this.eR.MD("onSnackbarMessage",E)}; g.z.mM0=function(E){var e=this.yd(),l=e.getVideoData();if(this.appState===1||this.appState===2)l.startSeconds=E;this.appState===2?g.m(e.getPlayerState(),512)||rU(this):this.eR.c7("SEEK_TO",E)}; g.z.abn=function(){this.eR.publish("airplayactivechange")}; g.z.b7D=function(){this.eR.publish("airplayavailabilitychange")}; g.z.showAirplayPicker=function(){this.yd().Ki()}; g.z.RIM=function(){this.eR.publish("beginseeking")}; g.z.ME7=function(){this.eR.publish("endseeking")}; g.z.getStoryboardFormat=function(E){return(E=this.JN({playerType:E}))?jw(this,E).getStoryboardFormat():this.Fa.T.getStoryboardFormat()}; g.z.mf=function(E){return(E=this.JN({playerType:E}))?jw(this,E).getVideoData().mf():this.Fa.T.mf()}; g.z.rR=function(E){E=(E||this.yd()).getVideoData();if(hQ(this))E=E===this.MQ.playback.getVideoData();else a:{var e=this.L5;if(E===e.T.getVideoData()&&e.G.length)E=!0;else{e=g.T(e.G);for(var l=e.next();!l.done;l=e.next())if(E.f5===l.value.f5){E=!0;break a}E=!1}}return E}; g.z.hD=function(E,e,l,k,H,O,X,A){this.logger.debug(function(){return"Adding video to timeline id="+E.video_id+"\n lengthMs="+k+" enterTimeMs="+H}); var C="",p=hQ(this);this.yd().wH("appattl",{sstm:this.MQ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:p});p?(l=JsX(this.MQ,E,e,l,k,H,O,X,A),C=(l==null?void 0:l.f5)||"",this.L("html5_ssdai_new_decoration_logic")&&this.mM().Zv(A||"",e,(l==null?void 0:l.clientPlaybackNonce)||"")):C=X7l(this.L5,E,l,k,H,O);this.logger.debug(function(){return"Video added to timeline id="+E.video_id+" timelinePlaybackId="+C}); return C}; g.z.Pb=function(E,e,l,k,H,O,X,A){if(hQ(this)){var C,p=(C=this.MQ)==null?void 0:JsX(C,E,e,l,k,H,O,X,A);this.logger.debug(function(){return"Remaining video added to timeline id="+E.video_id+" timelinePlaybackId="+((p==null?void 0:p.f5)||"")})}}; g.z.GL=function(E){this.L("html5_ssdai_new_decoration_logic")&&this.mM().Zv(E,"","");var e;(e=this.MQ)==null||e.GL(E)}; g.z.Nj=function(E,e){E=E===void 0?-1:E;e=e===void 0?Infinity:e;hQ(this)||oMW(this.L5,E,e)}; g.z.j2=function(E,e,l){if(hQ(this)){var k=this.MQ,H=k.T.JN({f5:E});H?(l===void 0&&(l=H.nY),rs9(k,H,e,l)):k.lV("Invalid_timelinePlaybackId_"+E+"_specified")}else{k=this.L5;H=null;for(var O=g.T(k.G),X=O.next();!X.done;X=O.next())if(X=X.value,X.f5===E){H=X;break}H?(l===void 0&&(l=H.nY),Bz7(k,H,e,l)):os(k,"InvalidTimelinePlaybackId timelinePlaybackId="+E)}}; g.z.enqueueVideoByPlayerVars=function(E,e,l,k){l=l===void 0?Infinity:l;k=k===void 0?"":k;this.rR();E=new g.oR(this.dH,E);k&&(E.f5=k);HO8(this,E,e,l)}; g.z.queueNextVideo=function(E,e,l,k,H){l=l===void 0?NaN:l;E=this.preloadVideoByPlayerVars(E,e===void 0?1:e,l,k===void 0?"":k,H===void 0?"":H);e=this.yd();E&&(this.L("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&e.getVideoData().j&&(l=this.zt,k=this.ZG.W,l.S!==E&&(l.G=e,l.S=E,l.Z=1,l.T=E.getVideoData(),l.W=k,l.T.isLoaded()?l.J():l.T.subscribe("dataloaded",l.J,l))):(l=awl(e,E,this.ZG.W),l!=null?(e.wH("sgap",l),e.getVideoData().j&&e.oW(!1)):(E=E.getVideoData(),e=this.zt,e.T!== E&&(e.T=E,e.Z=1,E.isLoaded()?e.j():e.T.subscribe("dataloaded",e.j,e)))))}; g.z.Lk=function(E,e,l,k){var H=this;l=l===void 0?0:l;k=k===void 0?0:k;jw(this,this.yd()).n6();RW8(this.ZG,E,e,l,k).then(function(){H.eR.kU("onQueuedVideoLoaded")},function(){})}; g.z.Tf=function(){return this.ZG.Tf()}; g.z.pG=function(E){var e=this.ZG.T;return e?e.WC(E):!1}; g.z.clearQueue=function(E,e){E=E===void 0?!1:E;e=e===void 0?!1:e;this.logger.debug("Clearing queue");this.ZG.clearQueue(E,e)}; g.z.loadVideoByPlayerVars=function(E,e,l,k,H,O){e=e===void 0?1:e;var X=this.mM();if(e===2&&this.mU().enableServerStitchedDai&&X&&!X.Li())return X.wH("lvonss",{vid:(E==null?void 0:E.videoId)||"",ptype:e}),!1;var A=!1;X=new g.oR(this.dH,E);X.wD=O;g.UV(this.dH)&&!X.vG&&cG(this.xw);var C;O=this.xw;var p=(C=X.pg)!=null?C:"";O.timerName=p;this.xw.Ec("pl_i");this.L("web_player_early_cpn")&&X.clientPlaybackNonce&&this.xw.infoGel({clientPlaybackNonce:X.clientPlaybackNonce});Wg0(X).supportsVp9Encoding===!1&& this.yd().wH("noVp9enc",{});if(this.Y().supportsGaplessShorts()){C=q48(this.ZG,X,e);if(C==null){yU(this,-1);var x;((x=this.ZG.T)==null?0:x.getVideoData().isAd())||MH(this);E=this.ZG;E.app.Y().L("html5_gapless_new_slr")?as(E.app,"gaplessshortslooprange"):E.app.setLoopRange(null);E.app.getVideoData().rQ=!0;var Q;(Q=E.T)==null||Q.Yp();var W;(W=E.T)==null||W.EB();l={AN:"gapless_to_next_video",seekSource:60,n4:E.W.T};k=g.tJ(E.app.Y().experiments,"html5_gapless_seek_offset");H=txX(E);if(E.W.T){var B;X= ((B=E.Z)==null?void 0:nK(B))||{};B=X.bJ;X=X.AF;X!=null&&B!=null&&(H=X-B+.001)}var w;(w=E.app.yd())==null||w.seekTo(H+k,l);if(!E.app.getPlayerStateObject(e).isPlaying()){var U;(U=E.app.yd())==null||U.playVideo(!0)}var c;(c=E.app.yd())==null||c.wg();E.j();return!0}w=this.L("html5_shorts_gapless_preload_fallback");U=this.ZG.T;w&&U&&!U.U7()&&(c=U.getVideoData(),this.Fa.W.set(NH(e,c),U,3600));this.ZG.clearQueue(w);this.yd().wH("sgap",{f:C})}if(H){for(;X.o$.length&&X.o$[0].isExpired();)X.o$.shift();w=X.o$.length- 1;A=w>0&&H.G(X.o$[w])&&H.G(X.o$[w-1]);X.o$.push(H)}l||(E&&cQW(E)?(zH(this.dH)&&!this.QS&&(E.fetch=0),VU(this,E)):this.playlist&&VU(this,null),E&&(this.QS=nE(!1,E.external_list)));this.eR.publish("loadvideo");w=this.P3(X,e,k);A&&this.VL("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+X.o$.join()).replace(/[;:,]/g,"_"));return w}; g.z.preloadVideoByPlayerVars=function(E,e,l,k,H){e=e===void 0?1:e;l=l===void 0?NaN:l;k=k===void 0?"":k;H=H===void 0?"":H;var O=XXW(e,E,H),X=this.Fa.W.get(O)||null;if(X)return this.logger.debug(function(){return"already preloaded "+O}),this.L("html5_return_playback_if_already_preloaded")?X:null; E=new g.oR(this.dH,E);H&&(E.f5=H);return OOS(this,E,e,l,k)}; g.z.setMinimized=function(E){this.visibility.setMinimized(E);(E=eHW(this.gO))&&(this.isMinimized()?E.load():E.unload());this.eR.publish("minimized")}; g.z.setInline=function(E){this.visibility.setInline(E)}; g.z.setInlinePreview=function(E){this.visibility.setInline(E)}; g.z.Ll=function(E){A6X(this,E)||this.visibility.Ll(E)}; g.z.setSqueezeback=function(E){this.visibility.setSqueezeback(E)}; g.z.kX=function(){var E,e=(E=this.mediaElement)==null?void 0:E.Zb();e&&(this.dH.sV&&fR(jb(function(){return document.exitFullscreen()}),function(){}),fR(jb(function(){return xp(e)}),function(){}))}; g.z.H53=function(){this.mediaElement.Zb();this.mediaElement.Zb().webkitPresentationMode==="picture-in-picture"?this.Ll(!0):this.Ll(!1)}; g.z.togglePictureInPicture=function(){this.yd().togglePictureInPicture()}; g.z.P3=function(E,e,l){e=e===void 0?1:e;this.logger.debug(function(){return"start load video, id "+E.videoId+", type "+e}); cz("_start",this.xw.timerName)||g.ZP(Bz)(void 0,this.xw.timerName);var k=!1,H=t9W(this,e,E,!1);H?(k=!0,E.dispose()):(H=JQ(this,e,E,!0,l),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&H.KS()&&H.i6(),this.D8.stop(),e===1&&e!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,e),this.Gr(H));H===this.mM()&&(this.dH.Gf=E.oauthToken);if(!H.KS())return!1;if(H===this.mM())return this.uI(1),l=rU(this),k&&this.L("html5_player_preload_ad_fix")&&H.getPlayerType()===1&& H.rT()&&this.o9("dataloaded",H,H.getVideoData()),l;H.O3();return!0}; g.z.cueVideoByPlayerVars=function(E,e){var l=this;e=e===void 0?1:e;var k=this.mM();if(this.mU().enableServerStitchedDai&&k&&!k.Li()&&E&&Object.keys(E).length>0)k.wH("qvonss",{vid:(E==null?void 0:E.videoId)||"",ptype:e});else if(E&&cQW(E))if(this.b2=!0,VU(this,E),(E=g.yR(this.playlist))&&E.aG())Y8(this,E,e);else this.playlist.onReady(function(){Sw(l)}); else{e||(e=this.getPresentingPlayerType());e===1&&this.Jv();k=new g.oR(this.dH,E);var H=g.qA(this.dH)&&!this.dH.kt&&e===1&&!k.isAd()&&!k.f0;this.eR.publish("cuevideo");H?(this.yd().getVideoData().loading=!0,S50(k,E?E:{}).then(function(O){Y8(l,O,e)}),k.dispose()):Y8(this,k,e)}}; g.z.MO=function(E,e,l,k,H,O,X){if(!E&&!l)throw Error("Playback source is invalid");if(eC(this.dH)||g.pp(this.dH))return e=e||{},e.lact=BA(),e.vis=this.eR.getVisibilityState(),this.eR.MD("onPlayVideo",{videoId:E,watchEndpoint:O,sessionData:e,listId:l}),!1;UHy(this.xw);this.xw.reset();E={video_id:E};k&&(E.autoplay="1");k&&(E.autonav="1");O&&(E.player_params=O.playerParams);X&&(E.oauth_token=X);l?(E.list=l,this.loadPlaylist(E)):this.loadVideoByPlayerVars(E,1);return!0}; g.z.cuePlaylist=function(E,e,l,k){this.b2=!0;Chv(this,E,e,l,k)}; g.z.loadPlaylist=function(E,e,l,k){this.b2=!1;Chv(this,E,e,l,k)}; g.z.TO=function(){return this.eR.isMutedByMutedAutoplay()?!1:this.Fa.Xx?!0:!(!this.playlist||!this.playlist.sP())}; g.z.It=E9(5); g.z.nextVideo=function(E,e){var l=g.$7(this.mM().getVideoData());g.tt(this.eR)&&l?this.MO(l.videoId,e?l.vS:l.sessionData,l.playlistId,e,void 0,l.zs||void 0):this.QS?this.eR.kU("onPlaylistNext"):this.getPresentingPlayerType()===3?m$(this.gO).nextVideo():!this.playlist||zH(this.dH)&&!this.eR.isFullscreen()||(this.playlist.sP(E)&&II7(this.playlist,yQv(this.playlist)),this.playlist.loaded?(E=e&&this.dH.L("html5_player_autonav_logging"),e&&this.eR.publish("playlistautonextvideo"),this.P3(g.yR(this.playlist,void 0, e,E),1)):this.b2=!1)}; g.z.previousVideo=function(E){this.QS?this.eR.kU("onPlaylistPrevious"):this.getPresentingPlayerType()===3?m$(this.gO).Ai():!this.playlist||zH(this.dH)&&!this.eR.isFullscreen()||(this.playlist.bR(E)&&II7(this.playlist,jse(this.playlist)),this.playlist.loaded?this.P3(g.yR(this.playlist),1):this.b2=!1)}; g.z.playVideoAt=function(E){this.QS?this.eR.kU("onPlaylistIndex",E):this.playlist&&(this.playlist.loaded?this.P3(g.yR(this.playlist,E),1):this.b2=!1,II7(this.playlist,E))}; g.z.getPlaylist=function(){return this.playlist}; g.z.AA=E9(19);g.z.g0=function(E){this.Xv=g.JE(this.Xv,function(O){return O.id!==E}); for(var e=this.mM(),l=e.Eq(),k=0;k0&&(C=Math.floor(p/1E3))}C=e?e.s1:C;var x={AD_BLOCK:this.T++,AD_BREAK_LENGTH:C,AUTONAV_STATE:K5(this.player.Y()),CA_TYPE:"image",CPN:A.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.hO()*1E3,LACT:BA(),LIVE_INDEX:e?this.Z++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:O? Math.round(O.start/1E3):0,MIDROLL_POS_MS:O?Math.round(O.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.zz().pI().height,P_W:this.player.zz().pI().width,YT_REMOTE:H?H.join(","):""},Q=kq(lM);Object.keys(Q).forEach(function(B){Q[B]!=null&&(x[B.toUpperCase()]=Q[B].toString())}); l!==""&&(x.BISCOTTI_ID=l);l={};eQ(E)&&(l.sts="20293",(e=this.player.Y().forcedExperiments)&&(l.forced_experiments=e));var W=td(g.Ug(E,x),l);return W.split("?").length!==2?IB(Error("Invalid AdBreakInfo URL")):g.FG(this.player.Y(),A==null?void 0:A.oauthToken).then(function(B){if(B&&EN()){var w=ey();l4(w,B)}B=k.player.LI(w);w=MUW(k,W,x,A.isMdxPlayback,X);return g.Vj(B,w,"/youtubei/v1/player/ad_break").then(function(U){return U})})}; n5.prototype.reset=function(){this.Z=this.T=1};g.d(Nyv,n5); Nyv.prototype.G=function(E,e,l){e=e===void 0?{}:e;var k=e.dc;var H=e.qR;var O=e.cueProcessedMs;l=l===void 0?"":l;e=this.T;this.T++;var X=this.player.Y().L("h5_disable_macro_substitution_in_get_ad_break")?E:ZOv(this,E,{dc:k,qR:H,cueProcessedMs:O},l,e);if(X.split("?").length!==2)return Math.random()<.1&&g.UJ(Error("Invalid AdBreakInfo URL")),IB(Error("Invalid AdBreakInfo URL"));var A=this.player.getVideoData(1).isMdxPlayback,C=l;l=Da8.exec(X);l=l!=null&&l.length>=2?l[1]:"";E=bOZ.test(X);var p=vB0.exec(X); p=p!=null&&p.length>=2?p[1]:"";var x=PhX.exec(X);x=x!=null&&x.length>=2&&!Number.isNaN(Number(x[1]))?Number(x[1]):1;var Q=aHp.exec(X);Q=Q!=null&&Q.length>=2?Q[1]:"0";var W=pT(this.player.Y().Uv),B=g.N9(this.player.getVideoData(1).c5,!0);IH7(this,B,X,C===""?"":C,this.player.Y(),this.player.getVideoData(1));C={splay:!1,lactMilliseconds:String(BA()),playerHeightPixels:Math.trunc(this.player.zz().pI().height),playerWidthPixels:Math.trunc(this.player.zz().pI().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20293,autonavState:K5(this.player.Y())};if(A){A={};var w=this.player.Y().OZ;VUl(A,w?w.join(","):"")&&(C.mdxContext=A)}if(A=Lmy.includes(W)?void 0:g.IL("PREF")){w=A.split(RegExp("[:&]"));for(var U=0,c=w.length;U1&&V[1].toUpperCase()==="TRUE"){B.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn=r69(A)}X=hi8.exec(X);(X=X!=null&&X.length>=2?X[1]:"")&&p&&(B.user.credentialTransferTokens= [{token:X,scope:"VIDEO"}]);X={contentPlaybackContext:C};C=this.player.getVideoData(1).getGetAdBreakContext();A=this.player.getVideoData(1).clientPlaybackNonce;w=O!==void 0?Math.round(O).toString():void 0;U=(k==null?0:k.context)?k.context:void 0;c=0;O&&H&&!k&&(H=H.end-H.start,H>0&&(c=Math.floor(H/1E3)));k=(k=Math.trunc((k?k.s1:c)*1E3))?String(k):void 0;H=this.player.hO()*1E3;H=Number.isNaN(H)?0:Math.trunc(H);e={adBlock:e,params:l,breakIndex:x,breakPositionMs:Q,clientPlaybackNonce:A,topLevelDomain:W, isProxyAdTagRequest:E,context:B,overridePlaybackContext:X,cueProcessedMs:w,videoId:p?p:void 0,liveTargetingParams:U,breakLengthMs:k,driftFromHeadMs:H?String(H):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:C?C:void 0};return Y80(this,e)};var eY$={o76:"replaceUrlMacros",CH6:"onAboutThisAdPopupClosed",O_H:"executeCommand"};map.prototype.kC=function(){return"adPingingEndpoint"}; map.prototype.Qz=function(E,e,l){FGX(this.l3.get(),E,e,l)};gB8.prototype.kC=function(){return"changeEngagementPanelVisibilityAction"}; gB8.prototype.Qz=function(E){this.U.MD("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:E})};Kmv.prototype.kC=function(){return"loggingUrls"}; Kmv.prototype.Qz=function(E,e,l){E=g.T(E);for(var k=E.next();!k.done;k=E.next())k=k.value,FGX(this.l3.get(),k.baseUrl,e,l,k.attributionSrcMode)};g.d(Rip,g.a);g.d(s5,g.a);g.z=s5.prototype;g.z.addListener=function(E){this.listeners.push(E)}; g.z.removeListener=function(E){this.listeners=this.listeners.filter(function(e){return e!==E})}; g.z.j1=function(E,e,l,k,H,O,X,A){if(E==="")kd("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(E!==this.T||l){this.T=E;this.o4.get().j1(E,e,l,k,H,O,X,A);this.Lg.get().j1(E,e,l,k,H,O,X,A);var C;(C=this.BN)==null||C.get().j1(E,e,l,k,H,O,X,A);this.G.j1(E,e,l,k,H,O,X,A);C=g.T(this.listeners);for(var p=C.next();!p.done;p=C.next())p.value.j1(E,e,l,k,H,O,X,A)}else kd("Duplicate content video loaded signal")}; g.z.Xhn=function(){this.T&&this.cJ(this.T)}; g.z.cJ=function(E){this.T=void 0;for(var e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.cJ(E)};tQ.prototype.Np=function(E,e,l,k,H){sT7(this);this.W=!e&&l===0;var O=this.U.getVideoData(1),X=this.U.getVideoData(2);O&&(this.contentCpn=O.clientPlaybackNonce,this.videoId=O.videoId,this.T=O.J);X&&(this.adCpn=X.clientPlaybackNonce,this.adVideoId=X.videoId,this.adFormat=X.adFormat);this.S=E;k<=0?(sT7(this),this.W=!e&&l===0):(this.actionType=this.W?e?"unknown_type":"video_to_ad":e?"ad_to_video":"ad_to_ad",this.videoStreamType=H?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,cz("_start",this.actionType)&&EHW(this)))}; tQ.prototype.reset=function(){return new tQ(this.U)};g.d(qH,g.a);qH.prototype.addCueRange=function(E,e,l,k,H,O,X,A,C){O=O===void 0?3:O;X=X===void 0?1:X;this.T.has(E)?kd("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:E}):(E=new e_9(E,e,l,k,O,A,C),this.T.set(E.id,{qR:E,listener:H,Pu:X}),this.U.qQ([E],X))}; qH.prototype.removeCueRange=function(E){var e=this.T.get(E);e?(this.U.yh([e.qR],e.Pu),this.T.delete(e.qR.id)):kd("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:E})}; qH.prototype.onCueRangeEnter=function(E){if(this.T.has(E.id))this.T.get(E.id).listener.onCueRangeEnter(E.id)}; qH.prototype.onCueRangeExit=function(E){if(this.T.has(E.id))this.T.get(E.id).listener.onCueRangeExit(E.id)}; g.d(e_9,g.Mr);En.prototype.addPlayerResponseForAssociation=function(E){this.U.addPlayerResponseForAssociation(E)};es.prototype.FO=function(E){this.U.FO(E)}; es.prototype.iz=function(E){var e=g.LS.apply(1,arguments);E==="onAdStart"||E==="onAdEnd"?this.U.c7.apply(this.U,[E].concat(g.Be(e))):this.U.MD.apply(this.U,[E].concat(g.Be(e)))};lR.prototype.Xr=function(E){return E&&km(this)};var WG7=null;g.d(Q3v,g.sJ);Q3v.prototype.Hv=function(E){return this.T.hasOwnProperty(E)?this.T[E].Hv():{}}; g.qW("ytads.bulleit.getVideoMetadata",function(E){return Hh().Hv(E)}); g.qW("ytads.bulleit.triggerExternalActivityEvent",function(E,e,l){var k=Hh();l=xDe(l);l!==null&&k.publish(l,{queryId:E,viewabilityString:e})});g.z=On.prototype;g.z.gB=function(E,e){if(!this.T.has(E))return{};if(e==="seek"){e=!1;e=e===void 0?!1:e;var l=dP(Zy).XL(E,{});l?ax(l):e&&(E=dP(Zy).ly(null,Fw(),!1,E),E.fM=3,cO9([E]));return{}}e=oHe(e);if(e===null)return{};var k=this.U.xj();if(!k)return{};var H=this.U.getPresentingPlayerType(!0);if((l=this.U.getVideoData(H))==null||!l.isAd())return{};l={opt_adElement:k,opt_fullscreen:this.o4.get().isFullscreen()};return cce(e,E,l)}; g.z.Yl=function(E,e,l,k,H){this.T.has(E)&&(k<=0||H<=0||dP(Zy).Yl(E,e,l,k,H))}; g.z.iE=function(E){var e;(e=this.T.get(E.queryId))==null||e.iE()}; g.z.hT=function(E){var e;(e=this.T.get(E.queryId))==null||e.hT()}; g.z.Qq=function(E){var e;(e=this.T.get(E.queryId))==null||e.Qq()}; g.z.F1=function(E){var e;(e=this.T.get(E.queryId))==null||e.F1()}; g.z.xI=function(E){var e;(e=this.T.get(E.queryId))==null||e.xI()};JyW.prototype.send=function(E,e,l,k){try{cye(this,E,e,l,k===void 0?!1:k)}catch(H){}};g.d(yyX,JyW);j38.prototype.send=function(E,e,l,k){var H=!1;try{if(k==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||k==="ATTRIBUTION_SRC_MODE_XHR_OPTION")H=!0,E=xfl(E);k=H;var O=g.Xw(E);if(O[1]==="https")var X=E;else O[1]="https",X=Oq("https",O[2],O[3],O[4],O[5],O[6],O[7]);var A=p6y(X);O=[];var C=t2W(X)&&this.ZM.get().U.Y().experiments.P5("add_auth_headers_to_remarketing_google_dot_com_ping");if(eQ(X)||C)O.push({headerType:"USER_AUTH"}),O.push({headerType:"PLUS_PAGE_ID"}),O.push({headerType:"VISITOR_ID"}),O.push({headerType:"EOM_VISITOR_ID"}), O.push({headerType:"AUTH_USER"}),O.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:X,scrubReferrer:A,headers:O},e,l,k)}catch(p){}};pM.prototype.wB=function(){return this.U.wB(1)};g.d(xm,g.a);g.z=xm.prototype;g.z.x4=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.z.addListener=function(E){this.listeners.push(E)}; g.z.removeListener=function(E){this.listeners=this.listeners.filter(function(e){return e!==E})}; g.z.j1=function(){this.Hw.clear();this.l4=null;this.JL.get().clear()}; g.z.cJ=function(){}; g.z.hf4=function(E,e,l,k,H){e.videoId==="nPpU29QrbiU"&&this.U.wH("ads_ssm_vdc_s",{pt:l,dvt:E});PH(this.ZM.get())&&E!=="dataloaded"||vH7(this,e,l);if(km(this.ZM.get())&&E==="newdata"&&H!==void 0){E=this.x4();var O=e.clientPlaybackNonce,X={};OO(this,"rte",(X.ec=O,X.xc=k==null?void 0:k.clientPlaybackNonce,X.tr=H,X.pt=l,X.ia=O!==E,X.ctp=HR(O),X));e=e.clientPlaybackNonce;k=k==null?void 0:k.clientPlaybackNonce;H=Pl7(H);if(H!==1)if(k!==void 0)for(l=g.T(this.listeners),E=l.next();!E.done;E=l.next())E.value.yZ(k, e,H);else kd("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:e,transitionReason:String(H)});H=g.T(this.listeners);for(k=H.next();!k.done;k=H.next())k.value.bM(e)}}; g.z.YzD=function(E,e){E!==void 0&&(this.l4=E,e===void 0?kd("Expected ad video start time on SS video changed"):this.Hw.set(E,e));var l=this.U.getPresentingPlayerType(!0),k=this.U.getVideoData(l),H;E===void 0?H=null:H=this.JL.get().T.get(E)||null;this.U.getVideoData(1).wH("ads_ssvc",{pt:l,cpn:k==null?void 0:k.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:e,pid:E,slid:H==null?void 0:H.layoutId});k?vH7(this,k,l):kd("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:E})}; g.z.Ho=function(E,e){var l=E.author,k=E.clientPlaybackNonce,H=E.isListed,O=E.f5,X=E.title,A=E.mY,C=E.bV,p=E.isMdxPlayback,x=E.gJ,Q=E.mdxEnvironment,W=E.isAutonav,B=E.QA,w=E.vG,U=E.Nl,c=E.videoId||"",V=E.profilePicture||"",F=E.Mb||"",r=E.Jd()||!1,P=E.Z0()||!1;E=E.e0||void 0;O=this.JL.get().T.get(O)||{layoutId:null,slotId:null};var N=this.U.getVideoData(1),R=N.sK();N=N.getPlayerResponse();e=1E3*this.U.getDuration(e);var K=1E3*this.U.getDuration(1),XW,oZ,A7=(N==null?void 0:(XW=N.playerConfig)==null? void 0:(oZ=XW.daiConfig)==null?void 0:oZ.enableDai)||!1,CS,ep;XW=(N==null?void 0:(CS=N.playerConfig)==null?void 0:(ep=CS.daiConfig)==null?void 0:ep.enablePreroll)||!1;return Object.assign({},O,{videoId:c,author:l,clientPlaybackNonce:k,t6:e,Pq:K,daiEnabled:A7,yG:XW,isListed:H,sK:R,profilePicture:V,title:X,Mb:F,mY:A,bV:C,e0:E,isMdxPlayback:p,gJ:x,mdxEnvironment:Q,isAutonav:W,QA:B,vG:w,Nl:U,Jd:r,Z0:P})}; g.z.Gz=function(){this.listeners.length=0;this.mj=null;g.a.prototype.Gz.call(this)};g.d(QE,g.a);g.z=QE.prototype;g.z.j1=function(){var E=this;km(this.ZM.get())||(this.T=SM(function(){E.U.U7()||E.U.SH("ad",1)}))}; g.z.cJ=function(){}; g.z.addListener=function(E){this.listeners.push(E)}; g.z.removeListener=function(E){this.listeners=this.listeners.filter(function(e){return e!==E})}; g.z.VV=function(){}; g.z.playVideo=function(){this.U.playVideo()}; g.z.pauseVideo=function(){this.U.pauseVideo()}; g.z.resumeVideo=function(E){this.tQ(E)&&this.U.playVideo()}; g.z.tQ=function(E){return this.U.getPlayerState(E)===2}; g.z.getCurrentTimeSec=function(E,e,l){var k=this.Lg.get().l4;if(E===2&&!e&&k!==null)return o8(this,k);rY(this.ZM.get(),"html5_ssap_use_cpn_to_get_time")||(l=void 0);return l!==void 0?this.U.getCurrentTime(E,e,l):this.U.getCurrentTime(E,e)}; g.z.getVolume=function(){return this.U.getVolume()}; g.z.isMuted=function(){return this.U.isMuted()}; g.z.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.z.getPlayerState=function(E){return this.U.getPlayerState(E)}; g.z.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.z.isFullscreen=function(){return this.U.isFullscreen()}; g.z.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.z.oU=function(E){this.U.oU(E)}; g.z.szn=function(){var E=this.U.getPresentingPlayerType(!0),e=this.getCurrentTimeSec(E,!1);if(E===2){E=g.T(this.listeners);for(var l=E.next();!l.done;l=E.next())l.value.eY(e)}else if(E===1)for(E=g.T(this.tD),l=E.next();!l.done;l=E.next())l.value.VV(e)}; g.z.rgR=function(E){for(var e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.LD(E,this.getPresentingPlayerType())}; g.z.onFullscreenToggled=function(E){for(var e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.onFullscreenToggled(E)}; g.z.onVolumeChange=function(){for(var E=g.T(this.listeners),e=E.next();!e.done;e=E.next())e.value.onVolumeChange()}; g.z.uO=function(){for(var E=this.U.isMinimized(),e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.uO(E)}; g.z.e1=function(E){for(var e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.e1(E)}; g.z.NN=function(){for(var E=this.U.zz().pI(),e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.KI(E)}; g.z.L_=function(E){for(var e=g.T(this.listeners),l=e.next();!l.done;l=e.next())l.value.L_(E)}; g.z.Bn=function(){for(var E=g.T(this.listeners),e=E.next();!e.done;e=E.next())e.value.Bn()};g.d(Mep,g.a);g.d(de,g.a);de.prototype.Gz=function(){this.Ci.U7()||this.Ci.get().removeListener(this);g.a.prototype.Gz.call(this)};Gk.prototype.fetch=function(E){var e=E.HZ;return this.T.fetch(E.Mk,{dc:E.dc===void 0?void 0:E.dc,qR:e,cueProcessedMs:E.cueProcessedMs===void 0?0:E.cueProcessedMs}).then(function(l){return N9Z(l,e)})};g.d(Tk,g.a);g.z=Tk.prototype;g.z.addListener=function(E){this.listeners.push(E)}; g.z.removeListener=function(E){this.listeners=this.listeners.filter(function(e){return e!==E})}; g.z.im=function(E){ZPX(this,E,1)}; g.z.onAdUxClicked=function(E,e){iR(this,function(l){l.v7(E,e)})}; g.z.zW=function(E){iR(this,function(e){e.sR(E)})}; g.z.HM=function(E){iR(this,function(e){e.ov(E)})}; g.z.lMR=function(E){iR(this,function(e){e.Q3(E)})};$m.prototype.reduce=function(E){switch(E.event){case "unknown":return}var e=E.identifier;var l=this.T[e];l?e=l:(l={bC:null,NF:-Infinity},e=this.T[e]=l);l=E.startSecs+E.T/1E3;if(!(l=this.T.startSecs&&l.startSecs<=this.T.startSecs+this.T.s1)){var k=void 0;if(ag(this.ZM.get())&&l.identifier!==((k=this.T)==null?void 0:k.identifier)){var H=k=void 0,O=void 0,X=void 0;wZ(this.l3.get(),"ocud","ccpi."+l.identifier+";ccpe."+l.event+";ccps."+l.startSecs+";\n ccpd."+l.s1+";pcpi."+((k=this.T)==null?void 0:k.identifier)+ ";pcpe."+((H=this.T)==null?void 0:H.event)+";\n pcps."+((O=this.T)==null?void 0:O.startSecs)+";pcpd."+((X=this.T)==null?void 0:X.s1)+";")}k=void 0;l.identifier!==((k=this.T)==null?void 0:k.identifier)&&kd("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=l,gHS(this,l)}}; g.z.Gz=function(){this.G!=null&&(this.G.unsubscribe("cuepointupdated",this.dW,this),this.G=null);this.listeners.length=0;this.Pi.length=0;g.a.prototype.Gz.call(this)};g.z=ch.prototype;g.z.hD=function(E,e,l,k,H,O,X,A){return this.U.hD(E,e,l,k,H,O,X,A)}; g.z.Nj=function(E,e){this.U.Nj(E,e)}; g.z.j2=function(E,e,l){this.U.j2(E,e,l)}; g.z.GL=function(E){this.U.GL(E)}; g.z.Pb=function(E,e,l,k,H,O,X,A){this.U.Pb(E,e,l,k,H,O,X,A)}; g.z.Ow=function(E){return this.U.Ow(E)}; g.z.finishSegmentByCpn=function(E,e,l){l=R_y(l);this.U.finishSegmentByCpn(E,e,l)};g.d(yE,g.a);g.d(tee,g.a);g.d(qjW,g.a);g.d(E0O,g.a);g.d(eyH,g.a);g.d(lv6,g.a);g.d(HS1,g.a);HS1.prototype.Z=function(){return this.G};g.d(OS6,Db); OS6.prototype.Z=function(E){var e=E.content;if(e.componentType==="shopping-companion")switch(E.actionType){case 1:case 2:E=this.T.getVideoData(1);this.T.MD("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId,shoppingCompanionCarouselRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:this.T.MD("updateKevlarOrC3Companion",{})}else if(e.componentType==="action-companion")switch(E.actionType){case 1:case 2:E=this.T.getVideoData(1); this.T.MD("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId,actionCompanionAdRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e.renderer&&(e=this.T.getVideoData(1),this.T.MD("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId})),this.T.MD("updateKevlarOrC3Companion",{})}else if(e.componentType==="image-companion")switch(E.actionType){case 1:case 2:E=this.T.getVideoData(1);this.T.MD("updateKevlarOrC3Companion", {contentVideoId:E&&E.videoId,imageCompanionAdRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e=this.T.getVideoData(1),this.T.MD("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId}),this.T.MD("updateKevlarOrC3Companion",{})}else if(e.componentType==="top-banner-image-text-icon-buttoned")switch(E.actionType){case 1:case 2:E=this.T.getVideoData(1);this.T.MD("updateKevlarOrC3Companion", {contentVideoId:E&&E.videoId,topBannerImageTextIconButtonedLayoutViewModel:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e.renderer&&(e=this.T.getVideoData(1),this.T.MD("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId})),this.T.MD("updateKevlarOrC3Companion",{})}else if(e.componentType==="banner-image")switch(E.actionType){case 1:case 2:E=this.T.getVideoData(1);this.T.MD("updateKevlarOrC3Companion", {contentVideoId:E&&E.videoId,bannerImageLayoutViewModel:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e=this.T.getVideoData(1),this.T.MD("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId}),this.T.MD("updateKevlarOrC3Companion",{})}else if(e.componentType==="ads-engagement-panel")switch(e=e.renderer,E.actionType){case 1:case 2:this.T.MD("updateEngagementPanelAction",e.addAction);this.T.MD("changeEngagementPanelVisibility", e.expandAction);break;case 3:this.T.MD("changeEngagementPanelVisibility",e.hideAction),this.T.MD("updateEngagementPanelAction",e.removeAction)}else if(e.componentType==="ads-engagement-panel-layout"){var l=e.renderer;switch(E.actionType){case 1:case 2:this.T.MD("updateEngagementPanelAction",{action:j6(l.addAction),layoutId:e.layoutId,onLayoutVisibleCallback:e.T,interactionLoggingClientData:e.interactionLoggingClientData});this.T.MD("changeEngagementPanelVisibility",j6(l.expandAction));break;case 3:this.T.MD("changeEngagementPanelVisibility", j6(l.hideAction)),this.T.MD("updateEngagementPanelAction",{action:j6(l.removeAction)})}}};g.d(XeH,NZ);g.z=XeH.prototype;g.z.init=function(E,e,l){NZ.prototype.init.call(this,E,e,l);g.MV(this.Z,"stroke-dasharray","0 "+this.G);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.J.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.S.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.z.clear=function(){this.hide()}; g.z.hide=function(){Y3(this);NZ.prototype.hide.call(this)}; g.z.show=function(){Zb(this);NZ.prototype.show.call(this)}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();E!=null&&E.current!=null&&g.MV(this.Z,"stroke-dasharray",E.current/E.seekableEnd*this.G+" "+this.G)}};g.d(uWr,k3);g.z=uWr.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);if(e.image&&e.image.thumbnail)if(e.headline)if(e.description)if(e.backgroundImage&&e.backgroundImage.thumbnail)if(e.actionButton&&g.M(e.actionButton,g.tS))if(E=e.durationMilliseconds||0,typeof E!=="number"||E<=0)g.$F(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+E));else if(e.navigationEndpoint){var k=this.api.getVideoData(2);if(k!=null){var H=e.image.thumbnail.thumbnails;H!=null&& H.length>0&&g.FF(g.fk(H[0].url))&&(H[0].url=k.profilePicture,g.FF(g.fk(k.profilePicture))&&m5X("VideoPlayer",239976093,"Expected non-empty profile picture."));H=e.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.FF(g.fk(H[0].url))&&(H[0].url=k.Za());H=e.headline;H!=null&&g.FF(g.fk(H.text))&&(H.text=k.author)}this.V.init(ng("ad-image"),e.image,l);this.J.init(ng("ad-text"),e.headline,l);this.Z.init(ng("ad-text"),e.description,l);this.jR.init(ng("ad-image"),e.backgroundImage,l);k=["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.J.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");k.push("ytp-ad-action-interstitial-action-button-dark");this.api.Y().G&&(k.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),k.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().L("enable_unified_action_endcap_on_web")&& !this.api.Y().G&&(k.push("ytp-ad-action-interstitial-action-button-unified"),this.b3.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.ND.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.L0.classList.add("ytp-ad-action-interstitial-card-unified"),this.kt.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.h0.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.c5.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.J0.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,k);g.L(this,this.actionButton);this.actionButton.u3(this.b3); this.actionButton.init(ng("button"),g.M(e.actionButton,g.tS),l);bF(this.actionButton.element);k=aX(this.actionButton.element);Pr(this.actionButton.element,k+" This link opens in new tab");this.navigationEndpoint=e.navigationEndpoint;this.S.C(this.c5,"click",this.xi,this);this.S.C(this.kt,"click",this.xi,this);!this.api.Y().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Y().G||this.S.C(this.h0,"click",this.xi,this);this.T=this.EG?new W2(this.api,E):new B2(E);g.L(this,this.T);if(e.skipButton){(E= g.M(e.skipButton,zPS))&&this.T&&(this.skipButton=new uu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.T,this.FP),g.L(this,this.skipButton),this.skipButton.u3(this.element),this.skipButton.init(ng("skip-button"),E,l));if(l=e.adBadgeRenderer)if(l=g.M(l,wa2))E=new xd(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0,!0),E.u3(this.J0),E.init(ng("simple-ad-badge"),l,this.macros),g.L(this,E);if(l=e.adInfoRenderer)if(l=g.M(l,RP))E=new LN(this.api,this.layoutId,this.interactionLoggingClientData, this.a4,this.element,void 0,!0),E.u3(this.J0),E.init(ng("ad-info-hover-text-button"),l,this.macros),g.L(this,E)}else e.nonskippableOverlayRenderer&&(E=g.M(e.nonskippableOverlayRenderer,sa))&&this.T&&(this.G=new KN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.T,!1),g.L(this,this.G),this.G.u3(this.element),this.G.init(ng("ad-preview"),E,l));e.countdownRenderer&&(e=e.countdownRenderer,g.M(e,dd2)&&this.T&&(l=new XeH(this.api,this.layoutId,this.interactionLoggingClientData,this.a4, this.T),g.L(this,l),l.u3(this.element),l.init(ng("timed-pie-countdown"),g.M(e,dd2),this.macros)));this.show();this.element.focus()}else g.$F(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.$F(Error("AdActionInterstitialRenderer has no button."));else g.$F(Error("AdActionInterstitialRenderer has no background AdImage."));else g.$F(Error("AdActionInterstitialRenderer has no description AdText."));else g.$F(Error("AdActionInterstitialRenderer has no headline AdText."));else g.$F(Error("AdActionInterstitialRenderer has no image."))}; g.z.clear=function(){g.iG(this.S);this.hide()}; g.z.show=function(){A7_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.G&&this.G.show();k3.prototype.show.call(this)}; g.z.hide=function(){A7_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.G&&this.G.hide();k3.prototype.hide.call(this)}; g.z.xi=function(){this.navigationEndpoint&&(this.layoutId?this.a4.executeCommand(this.navigationEndpoint,this.layoutId):g.$F(Error("Missing layoutId for ad action interstitial.")))};var WlW={iconType:"CLOSE"},fM=new g.YX(320,63);g.d(QZO,k3);g.z=QZO.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);this.S=e;this.V=g.fW(this.S.onClickCommands||[]);this.J0=this.S.onErrorCommand||null;if(E=this.S.contentSupportedRenderer)E=this.S.contentSupportedRenderer,e=this.S.adInfoRenderer||null,g.M(E,WyH)?(this.J=g.XZ("ytp-ad-overlay-ad-info-button-container",this.Z.element),B8$(this,e),E=weS(this,g.M(E,WyH))):g.M(E,B2H)?(this.J=g.XZ("ytp-ad-overlay-ad-info-button-container",this.G.element),B8$(this,e),E=zyk(this,g.M(E,B2H))):g.M(E,oXO)?(this.J= g.XZ("ytp-ad-overlay-ad-info-button-container",this.T.element),B8$(this,e),E=dWs(this,g.M(E,oXO))):(g.$F(Error("InvideoOverlayAdRenderer content could not be initialized.")),E=!1);E&&(this.show(),G7S(this,!0))}; g.z.clear=function(){G7S(this,!1);this.c5.reset();this.kt=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.z.wNt=function(){this.b3&&(this.layoutId?this.a4.executeCommand(this.b3,this.layoutId):g.$F(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.z.rN=function(){a:{if(this.S&&this.S.closeButton&&this.S.closeButton.buttonRenderer){var E=this.S.closeButton.buttonRenderer;if(E.serviceEndpoint){E=[E.serviceEndpoint];break a}}E=[]}E=g.T(E);for(var e=E.next();!e.done;e=E.next())e=e.value,this.layoutId?this.a4.executeCommand(e,this.layoutId):g.$F(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.z.c0z=function(){this.jR||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.z.sI=function(){this.jR||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.sI("invideo-overlay")}; g.z.A0d=function(E){E.target===this.J&&g.XZ("ytp-ad-button",this.ND.element).click()};g.d(T8O,NZ);g.z=T8O.prototype;g.z.init=function(E,e,l){NZ.prototype.init.call(this,E,e,l);E=e.durationMs;this.Z=E==null||E===0?0:E+this.T.getProgressState().current*1E3;if(e.text)var k=e.text.templatedAdText;else e.staticMessage&&(k=e.staticMessage);this.messageText.init(ng("ad-text"),k,l);this.messageText.u3(this.G.element);this.S.show(100);this.show()}; g.z.clear=function(){this.hide()}; g.z.hide=function(){iS0(this,!1);NZ.prototype.hide.call(this);this.G.hide();this.messageText.hide();Y3(this)}; g.z.show=function(){iS0(this,!0);NZ.prototype.show.call(this);Zb(this);this.G.show();this.messageText.show()}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(this.T!=null){var E=this.T.getProgressState();E!=null&&E.current!=null&&(E=1E3*E.current,!this.kt&&E>=this.Z?(this.S.hide(),this.kt=!0):this.messageText&&this.messageText.isTemplated()&&(E=Math.max(0,Math.ceil((this.Z-E)/1E3)),E!==this.J&&(MZ(this.messageText,{TIME_REMAINING:String(E)}),this.J=E)))}};g.d($Wk,k3);g.z=$Wk.prototype; g.z.init=function(E,e,l){k3.prototype.init.call(this,E,e,{});e.image&&e.image.thumbnail?e.headline?e.description?e.actionButton&&g.M(e.actionButton,g.tS)?(this.Z.init(ng("ad-image"),e.image,l),this.G.init(ng("ad-text"),e.headline,l),this.S.init(ng("ad-text"),e.description,l),this.actionButton=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,["ytp-ad-underlay-action-button"]),e.backgroundColor&&g.MV(this.element,"background-color",g.Fh(e.backgroundColor)),g.L(this,this.actionButton), this.actionButton.u3(this.J),this.actionButton.init(ng("button"),g.M(e.actionButton,g.tS),l),E=g.tJ(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().L("place_shrunken_video_on_left_of_player")?(e=this.T,g.ed(e,"ytp-ad-underlay-left-container"),g.qx(e,"ytp-ad-underlay-right-container"),g.MV(this.T,"margin-left",Math.round((E+.02)*100)+"%")):(e=this.T,g.ed(e,"ytp-ad-underlay-right-container"),g.qx(e,"ytp-ad-underlay-left-container")),g.MV(this.T,"width",Math.round((1-E- .04)*100)+"%"),this.api.xb()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.uf.bind(this)),this.api.addEventListener("resize",this.Qo.bind(this))):g.$F(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.$F(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.$F(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.$F(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.z.show=function(){UWO(!0);this.actionButton&&this.actionButton.show();k3.prototype.show.call(this)}; g.z.hide=function(){UWO(!1);this.actionButton&&this.actionButton.hide();k3.prototype.hide.call(this)}; g.z.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.uf.bind(this));this.api.removeEventListener("resize",this.Qo.bind(this));this.hide()}; g.z.onClick=function(E){k3.prototype.onClick.call(this,E);this.actionButton&&g.dT(this.actionButton.element,E.target)&&this.api.pauseVideo()}; g.z.uf=function(E){E==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):E==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):E==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.z.Qo=function(E){E.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):E.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.MV(this.G.element,"font-size",E.width/40+"px")};g.d(VE,k3); VE.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);e.toggledLoggingParams&&(this.toggledLoggingParams=e.toggledLoggingParams);e.answer&&g.M(e.answer,g.tS)?(E=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),E.u3(this.answer),E.init(ng("ytp-ad-survey-answer-button"),g.M(e.answer,g.tS),l),E.show()):e.answer&&g.M(e.answer,IA)&&(this.T=new SP(this.api,this.layoutId,this.interactionLoggingClientData,this.a4, ["ytp-ad-survey-answer-toggle-button"]),this.T.u3(this.answer),g.L(this,this.T),this.T.init(ng("survey-answer-button"),g.M(e.answer,IA),l));this.show()}; VE.prototype.RR=function(E){this.layoutId?fp(this.a4,E,this.layoutId,this.macros):(E=new g.PK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.$F(E))}; VE.prototype.onClick=function(E){k3.prototype.onClick.call(this,E);if(this.api.Y().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; VE.prototype.clear=function(){this.hide()};g.d(J7$,k3);J7$.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);e.answer&&g.M(e.answer,IA)&&(this.button=new SP(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.u3(this.T),this.button.init(ng("survey-none-of-the-above-button"),g.M(e.answer,IA),l));this.show()};g.d(Ss,Uw);Ss.prototype.init=function(E,e,l){Uw.prototype.init.call(this,E,e,l);E=!1;e.text&&(e=g.Ow(e.text),E=!g.FF(e));E||g.UJ(Error("No submit text was present in the renderer."))}; Ss.prototype.onClick=function(E){this.publish("l");Uw.prototype.onClick.call(this,E)};g.d(re,k3); re.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);if(E=e.skipOrPreviewRenderer)g.M(E,Tp)?(E=g.M(E,Tp),l=new CB(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.S,!0),l.u3(this.skipOrPreview),l.init(ng("skip-button"),E,this.macros),g.L(this,l),this.T=l):g.M(E,sa)&&(E=g.M(E,sa),l=new KN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.S,!1),l.u3(this.skipOrPreview),l.init(ng("ad-preview"),E,this.macros),l.kt.show(100),l.show(),g.L(this,l), this.T=l);this.T==null&&(E=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(e)),g.$F(E));e.submitButton&&(E=e.submitButton,g.M(E,g.tS)&&(E=g.M(E,g.tS),l=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),l.u3(this.submitButton),l.init(ng("survey-submit"),E,this.macros),g.L(this,l),this.G=l));if(E=e.adBadgeRenderer)E=g.M(E,wa2),l=new xd(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0,!0,!0),l.u3(this.Z),l.init(ng("simple-ad-badge"), E,this.macros),this.adBadge=l.element,g.L(this,l);if(E=e.adDurationRemaining)E=g.M(E,pas),l=new zj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.S,void 0,!0),l.u3(this.Z),l.init(ng("ad-duration-remaining"),E,this.macros),g.L(this,l);(e=e.adInfoRenderer)&&g.M(e,RP)&&(E=new LN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.element,void 0,!0),g.L(this,E),this.adBadge!==void 0?this.Z.insertBefore(E.element,this.adBadge.nextSibling):E.u3(this.Z),E.init(ng("ad-info-hover-text-button"), g.M(e,RP),this.macros));this.show()}; re.prototype.clear=function(){this.hide()};g.d(De,k3);De.prototype.init=function(E,e,l){k3.prototype.init.call(this,E,e,l);Fl_(this)}; De.prototype.show=function(){this.Z=Date.now();k3.prototype.show.call(this)}; De.prototype.d5=function(){};g.d(fv0,De);g.z=fv0.prototype;g.z.init=function(E,e,l){var k=this;De.prototype.init.call(this,E,e,l);e.questionText&&c7r(this,e.questionText);e.answers&&e.answers.forEach(function(H,O){g.M(H,yr)&&y70(k,g.M(H,yr),l,O)}); this.J=new Set(this.G.map(function(H){return H.T.T})); (E=e.noneOfTheAbove)&&(E=g.M(E,QE6))&&Vp1(this,E,l);e.surveyAdQuestionCommon&&IvO(this,e.surveyAdQuestionCommon);e.submitEndpoints&&(this.submitEndpoints=e.submitEndpoints);this.C(this.element,"change",this.onChange);this.show()}; g.z.d5=function(){S9d(this,!1);this.S.G.subscribe("l",this.nU7,this)}; g.z.onChange=function(E){E.target===this.noneOfTheAbove.button.T?r7O(this):this.J.has(E.target)&&(this.noneOfTheAbove.button.toggleButton(!1),S9d(this,!0))}; g.z.nU7=function(){var E=[],e=this.G.reduce(function(H,O,X){var A=O.toggledLoggingParams;O.T&&O.T.isToggled()&&A&&(H.push(A),E.push(X));return H},[]).join("&"),l=this.submitEndpoints.map(function(H){if(!H.loggingUrls)return H; H=g.wb(H);H.loggingUrls=H.loggingUrls.map(function(O){O.baseUrl&&(O.baseUrl=o5(O.baseUrl,e));return O}); return H}); if(l){l=g.T(l);for(var k=l.next();!k.done;k=l.next())k=k.value,this.layoutId?fp(this.a4,k,this.layoutId,this.macros):g.$F(Error("Missing layoutId for multi_select_question."))}this.api.Y().L("supports_multi_step_on_desktop")&&this.kt(E)}; g.z.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(bR,De);bR.prototype.init=function(E,e,l){var k=this;De.prototype.init.call(this,E,e,l);e.questionText&&c7r(this,e.questionText);e.answers&&e.answers.forEach(function(H,O){g.M(H,yr)&&y70(k,g.M(H,yr),l,O)}); e.surveyAdQuestionCommon?IvO(this,e.surveyAdQuestionCommon):qz(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(e)));this.show()}; bR.prototype.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(vh,k3);vh.prototype.init=function(E,e,l){var k=this;k3.prototype.init.call(this,E,e,l);if(this.api.Y().L("supports_multi_step_on_desktop")){var H;this.conditioningRules=(H=e.conditioningRules)!=null?H:[];var O;this.G=(O=e.questions)!=null?O:[];var X;((X=e.questions)==null?0:X.length)&&PX6(this,0)}else(e.questions||[]).forEach(function(A){g.M(A,KG)?bS2(k,g.M(A,KG),l):g.M(A,g$)&&v0k(k,g.M(A,g$),l)}); this.show()}; vh.prototype.clear=function(){this.api.Y().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; vh.prototype.S=function(E){var e=this;if(this.api.Y().L("supports_multi_step_on_desktop")){var l;if((l=this.conditioningRules)==null?0:l.length){var k;if(E.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(H){return H.questionIndex===e.T})==null)g.$F(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(H){if(H.questionIndex===e.T)switch(H.condition){case "CONDITION_ALL_OF":var O;if((O=H.answerIndices)==null?0:O.every(function(A){return E.includes(A)}))k=H.nextQuestionIndex; break;case "CONDITION_ANY_OF":var X;if((X=H.answerIndices)==null?0:X.some(function(A){return E.includes(A)}))k=H.nextQuestionIndex; break;default:g.$F(Error("Expected specified condition in survey conditioning rules."))}}),k!=null)PX6(this,k); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.$F(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.d(Ph,k3); Ph.prototype.init=function(E,e,l){var k=this;k3.prototype.init.call(this,E,e,l);E=e.timeoutSeconds||0;if(typeof E!=="number"||E<0)g.$F(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+E));else if(e.timeoutCommands)if(e.text)if(e.ctaButton&&g.M(e.ctaButton,g.tS))if(e.brandImage)if(e.backgroundImage&&g.M(e.backgroundImage,qJ)&&g.M(e.backgroundImage,qJ).landscape){this.layoutId||g.$F(Error("Missing layoutId for survey interstitial."));avt(this.interstitial,g.M(e.backgroundImage, qJ).landscape);avt(this.logoImage,e.brandImage);g.GD(this.text,g.Ow(e.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,H);g.L(this,this.actionButton);this.actionButton.u3(this.G);this.actionButton.init(ng("button"),g.M(e.ctaButton,g.tS),l);this.actionButton.show();this.T=new W2(this.api,E*1E3);this.T.subscribe("g",function(){k.transition.hide()}); g.L(this,this.T);this.C(this.element,"click",function(O){var X=O.target===k.interstitial;O=k.actionButton.element.contains(O.target);if(X||O)if(k.transition.hide(),X)k.api.onAdUxClicked(k.componentType,k.layoutId)}); this.transition.show(100)}else g.$F(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.$F(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.$F(Error("SurveyTextInterstitialRenderer has no button."));else g.$F(Error("SurveyTextInterstitialRenderer has no text."));else g.$F(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Ph.prototype.clear=function(){this.hide()}; Ph.prototype.show=function(){LlG(!0);k3.prototype.show.call(this)}; Ph.prototype.hide=function(){LlG(!1);k3.prototype.hide.call(this)};g.d(a8,NZ);g.z=a8.prototype; g.z.init=function(E,e){NZ.prototype.init.call(this,E,e,{});if(e.durationMilliseconds){if(e.durationMilliseconds<0){g.$F(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+e.durationMilliseconds));return}this.G=e.durationMilliseconds}else this.G=this.T.Mn();var l;if((l=e.previewText)==null||!l.text||g.FF(e.previewText.text))g.$F(Error("No text is returned for AdPreview."));else{this.J=e.previewText;e.previewText.isTemplated||g.GD(this.Z,e.previewText.text);var k; if(((k=this.api.getVideoData(1))==null?0:k.Yu)&&e.previewImage){var H,O;(E=((O=xg(((H=e.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:O.url)||"")&&E.length?(this.previewImage=new g.lU({X:"img",B:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",E),g.L(this,this.previewImage),this.previewImage.u3(this.element)):g.$F(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.z.clear=function(){this.hide()}; g.z.hide=function(){Y3(this);NZ.prototype.hide.call(this)}; g.z.show=function(){Zb(this);NZ.prototype.show.call(this)}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();if(E!=null&&E.current)if(E=1E3*E.current,E>=this.G)this.transition.hide();else{var e;if((e=this.J)==null?0:e.isTemplated)if(e=Math.max(0,Math.ceil((this.G-E)/1E3)),e!==this.S){var l,k;(E=(l=this.J)==null?void 0:(k=l.text)==null?void 0:k.replace("{TIME_REMAINING}",String(e)))&&g.GD(this.Z,E);this.S=e}}}};g.d(LM,k3); LM.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});var l,k;if((E=((k=xg(((l=e.image)==null?void 0:l.sources)||[],hy0(e),!0))==null?void 0:k.url)||"")&&E.length){l=this.X6("ytp-ad-avatar");l.src=E;var H,O;if(k=(H=e.interaction)==null?void 0:(O=H.accessibility)==null?void 0:O.label)l.alt=k;switch(e.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(e.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.$F(Error("Failed to get imageUrl in AdAvatar."))}; LM.prototype.clear=function(){this.hide()}; LM.prototype.onClick=function(E){k3.prototype.onClick.call(this,E)};g.d(hN,k3); hN.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});var l;E=(l=e.label)==null?void 0:l.content;if((l=E!=null&&!g.FF(E))||e.iconImage){l&&(this.buttonText=new g.lU({X:"span",B:"ytp-ad-button-vm__text",Tz:E}),g.L(this,this.buttonText),this.buttonText.u3(this.element));var k,H,O=((k=e.interaction)==null?0:(H=k.accessibility)==null?0:H.label)||l?E:"";O&&Pr(this.element,O+" This link opens in new tab");bF(this.element);if(e.iconImage){k=void 0;if(e.iconImage){a:{H=e.iconImage;if(H.sources)for(H= g.T(H.sources),E=H.next();!E.done;E=H.next())if(E=E.value,O=void 0,(O=E.clientResource)==null?0:O.imageName){H=E;break a}H=void 0}if(H){var X;k={iconType:(X=H.clientResource)==null?void 0:X.imageName}}}X=$3(k,!1,this.G);X!=null&&(this.buttonIcon=new g.lU({X:"span",B:"ytp-ad-button-vm__icon",K:[X]}),g.L(this,this.buttonIcon),e.iconLeading?(wT(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):l?(this.buttonIcon.u3(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.u3(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(e.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.L("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.T?"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(e.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.UJ(Error("AdButton does not have label or an icon."))}; hN.prototype.clear=function(){this.hide()}; hN.prototype.onClick=function(E){k3.prototype.onClick.call(this,E)};g.d(Mp1,NZ);g.z=Mp1.prototype; g.z.init=function(E,e){NZ.prototype.init.call(this,E,e,{});this.api.Y().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.X6("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"),wT(this.X6("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(E=g.M(e.avatar,R8)){var l=e.headline;if(l){var k=e.description;if(k){var H=g.M(e.button,tN);H?(this.adAvatar.init(ng("ad-avatar"),E),this.headline.init(ng("ad-simple-attributed-string"),new Gj(l)),this.description.init(ng("ad-simple-attributed-string"),new Gj(k)),l.content&&l.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(ng("ad-button"),H),this.startMilliseconds=e.startMs||0,this.api.xb()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.sO.bind(this)),Zb(this)):g.$F(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.$F(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.$F(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.$F(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();E&&E.current&&1E3*E.current>=this.startMilliseconds&&(Y3(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.z.JY=function(){this.clear()}; g.z.onClick=function(E){this.api.pauseVideo();NZ.prototype.onClick.call(this,E)}; g.z.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.sO.bind(this))}; g.z.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();NZ.prototype.show.call(this)}; g.z.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();NZ.prototype.hide.call(this)}; g.z.sO=function(E){E==="hidden"?this.show():this.hide()};g.d(Mj,k3);g.z=Mj.prototype; g.z.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(!e.label||g.FF(e.label))g.$F(Error("No label is returned for SkipAdButton."));else if(g.GD(this.S,e.label),E=$3({iconType:"SKIP_NEXT_NEW"}),E==null)g.$F(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.lU({X:"span",B:"ytp-skip-ad-button__icon",K:[E]}),g.L(this,this.Z),this.Z.u3(this.element),this.api.Y().experiments.P5("enable_skip_to_next_messaging")&&(e=g.fk(e.targetId)))this.G=!0,this.element.setAttribute("data-tooltip-target-id",e), this.element.setAttribute("data-tooltip-target-fixed","")}; g.z.onClick=function(E){E&&E.preventDefault();var e,l;up0(E,{contentCpn:(l=(e=this.api.getVideoData(1))==null?void 0:e.clientPlaybackNonce)!=null?l:""})===0?this.api.MD("onAbnormalityDetected"):(k3.prototype.onClick.call(this,E),this.api.MD("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.z.clear=function(){this.T.reset();this.hide()}; g.z.hide=function(){k3.prototype.hide.call(this)}; g.z.show=function(){this.T.start();k3.prototype.show.call(this);this.G&&this.api.Y().experiments.P5("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.d(N8t,NZ);g.z=N8t.prototype; g.z.init=function(E,e){NZ.prototype.init.call(this,E,e,{});E=g.M(e.preskipState,cu_);var l;if((l=this.api.getVideoData())==null?0:l.isDaiEnabled()){if(!E){g.$F(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.G=new a8(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.T);g.L(this,this.G);this.G.u3(this.element);var k;(k=this.G)==null||k.init(ng("preview-ad"),E);(l=this.G)!=null&&(l.transition.show(100),l.show())}(l=g.M(e.skippableState,jEW))?(e.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=e.skipOffsetMilliseconds:(g.UJ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(ng("skip-button"),l),this.show()):g.$F(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.z.show=function(){Zb(this);NZ.prototype.show.call(this)}; g.z.hide=function(){!this.isSkippable&&this.G?this.G.hide():this.Z&&this.Z.hide();Y3(this);NZ.prototype.hide.call(this)}; g.z.clear=function(){var E;(E=this.G)==null||E.clear();this.Z&&this.Z.clear();Y3(this);NZ.prototype.hide.call(this)}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var E;(E=this.G)!=null&&E.transition.hide();(E=this.Z)!=null&&(E.transition.show(),E.show())}};g.d(Nj,k3); Nj.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(e.label){var l;((l=e.label)==null?0:l.content)&&!g.FF(e.label.content)&&(this.linkText=new g.lU({X:"span",B:"ytp-visit-advertiser-link__text",Tz:e.label.content}),g.L(this,this.linkText),this.linkText.u3(this.element));var k,H;if((k=e.interaction)==null?0:(H=k.accessibility)==null?0:H.label)Pr(this.element,e.interaction.accessibility.label+" This link opens in new tab");else{var O;((O=e.label)==null?0:O.content)&&!g.FF(e.label.content)&&Pr(this.element, e.label.content+" This link opens in new tab")}bF(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.$F(Error("No label found in VisitAdvertiserLink."))}; Nj.prototype.onClick=function(E){k3.prototype.onClick.call(this,E);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Nj.prototype.clear=function(){this.hide()};g.d(Ze,k3); Ze.prototype.init=function(E,e,l,k){k3.prototype.init.call(this,E,e,{});if(e.skipOrPreview){l=e.skipOrPreview;E=g.M(l,Iu1);l=g.M(l,cu_);if(E)this.XC=new N8t(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G),g.L(this,this.XC),this.XC.u3(this.V),this.XC.init(ng("skip-ad"),E);else{var H;l&&((H=this.api.getVideoData())==null?0:H.isDaiEnabled())&&(this.S=new a8(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G,1),g.L(this,this.S),this.S.u3(this.V),this.S.init(ng("ad-preview"), l),H=this.S,H.transition.show(100),H.show())}if(H=g.M(e.skipOrPreview,Iu1))var O=H.skipOffsetMilliseconds}e.playerAdCard&&(H=g.M(e.playerAdCard,yu0))&&(this.playerAdCard=new Mp1(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G),g.L(this,this.playerAdCard),this.playerAdCard.u3(this.h0),this.playerAdCard.init(ng("ad-avatar-lockup-card"),H));e.adBadgeRenderer&&((H=g.M(e.adBadgeRenderer,sn))?(this.Z=new iu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0),g.L(this, this.Z),this.Z.u3(this.T),this.Z.init(ng("ad-badge"),H)):g.$F(Error("AdBadgeViewModel is not found in player overlay layout.")));e.adPodIndex&&(H=g.M(e.adPodIndex,ikt))&&(this.adPodIndex=new $d(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.adPodIndex),this.adPodIndex.u3(this.T),this.adPodIndex.init(ng("ad-pod-index"),H));e.adInfoRenderer&&((H=g.M(e.adInfoRenderer,RP))?(this.adInfoButton=new LN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.element, void 0,!0),g.L(this,this.adInfoButton),this.Z!==void 0?this.T.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.u3(this.T),this.adInfoButton.init(ng("ad-info-hover-text-button"),H,this.macros)):g.UJ(Error("AdInfoRenderer is not found in player overlay layout.")));var X;H=(X=this.api.getVideoData())==null?void 0:X.isDaiEnabled();e.adDurationRemaining&&H&&(X=g.M(e.adDurationRemaining,pas))&&(this.adDurationRemaining=new zj(this.api,this.layoutId,this.interactionLoggingClientData, this.a4,this.G,k.videoAdDurationSeconds,!0),g.L(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.u3(this.T),this.adDurationRemaining.init(ng("ad-duration-remaining"),X,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));e.visitAdvertiserLink&&(k=g.M(e.visitAdvertiserLink,fuG))&&(this.visitAdvertiserLink=new Nj(this.api,this.layoutId, this.interactionLoggingClientData,this.a4),g.L(this,this.visitAdvertiserLink),this.visitAdvertiserLink.u3(this.T),this.visitAdvertiserLink.init(ng("visit-advertiser-link"),k));e.adDisclosureBanner&&(e=g.M(e.adDisclosureBanner,T2r))&&(this.adDisclosureBanner=new Uu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.adDisclosureBanner),this.adDisclosureBanner.u3(this.kt),this.adDisclosureBanner.init(ng("ad-disclosure-banner"),e));this.J=new yd(this.api,this.G,O,!0);g.L(this, this.J);g.sT(this.api,this.J.element,4);this.show()}; Ze.prototype.clear=function(){this.hide()};g.d(ZSd,k3);g.z=ZSd.prototype; g.z.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(e!=null&&e.title)if(E=e.title)if(this.headline.init(ng("ad-simple-attributed-string"),new Gj(E)),E=g.M(e.moreInfoButton,tN)){if(this.moreInfoButton.init(ng("ad-button"),E),e.descriptions)e.descriptions.length>0&&(E=e.descriptions[0])&&(this.T=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.T),this.T.u3(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(ng("ad-simple-attributed-string"), new Gj(E))),e.descriptions.length>1&&(e=e.descriptions[1])&&(this.G=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.G),this.G.u3(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.G.init(ng("ad-simple-attributed-string"),new Gj(e)))}else g.$F(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.$F(Error("No headline found in AdGridCardText."));else g.$F(Error("No headline found in AdGridCardText."))}; g.z.onClick=function(E){k3.prototype.onClick.call(this,E);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.z.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var E;(E=this.T)==null||E.clear();var e;(e=this.G)==null||e.clear()}; g.z.hide=function(){this.headline.hide();this.moreInfoButton.hide();var E;(E=this.T)==null||E.hide();var e;(e=this.G)==null||e.hide();k3.prototype.hide.call(this)}; g.z.show=function(){k3.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var E;(E=this.T)==null||E.show();var e;(e=this.G)==null||e.show()};g.d(Ym,k3);Ym.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(e!=null&&e.gridCards)if(e.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.$F(Error("Only single column style is currently supported in AdGridCardCollection."));else for(E=g.T(e.gridCards),e=E.next();!e.done;e=E.next()){if(e=g.M(e.value,Ju_)){var l=new ZSd(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,l);l.u3(this.element);l.init(ng("ad-grid-card-text"),e);this.T.push(l)}}else g.$F(Error("No grid cards found in AdGridCardCollection."))}; Ym.prototype.show=function(){for(var E=g.T(this.T),e=E.next();!e.done;e=E.next())e.value.show();k3.prototype.show.call(this)}; Ym.prototype.clear=function(){this.hide();for(var E=g.T(this.T),e=E.next();!e.done;e=E.next())e.value.clear()}; Ym.prototype.hide=function(){for(var E=g.T(this.T),e=E.next();!e.done;e=E.next())e.value.hide();k3.prototype.hide.call(this)};g.d(mc,NZ);g.z=mc.prototype;g.z.init=function(E,e,l,k,H){H=H===void 0?0:H;NZ.prototype.init.call(this,E,e,l,k);this.playerProgressOffsetMs=H;Zb(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.v4.bind(this));this.api.addEventListener("resize",this.c6.bind(this));this.api.xb()?(this.G=!0,this.api.oU(!0),this.show()):this.hide()}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();E&&E.current&&!this.G&&1E3*E.current>=this.playerProgressOffsetMs&&(this.G=!0,this.api.oU(!0),this.show())}}; g.z.JY=function(){this.G&&this.api.oU(!1);this.hide()}; g.z.clear=function(){this.api.oU(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.v4.bind(this));this.api.removeEventListener("resize",this.c6.bind(this));Y3(this);this.hide()}; g.z.hide=function(){Y92(!1);NZ.prototype.hide.call(this)}; g.z.show=function(){Y92(!0);NZ.prototype.show.call(this)};g.d(mWH,mc);g.z=mWH.prototype; g.z.init=function(E,e,l,k){if(e!=null&&e.adGridCardCollection)if(e!=null&&e.adButton){var H=Number(e.playerProgressOffsetMs||"0");isNaN(H)?mc.prototype.init.call(this,E,e,l,k):mc.prototype.init.call(this,E,e,l,k,H);E=e.headline;l=g.M(e.adAvatar,R8);E&&l?(this.headline=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.headline),this.headline.u3(this.X6("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(ng("ad-simple-attributed-string"),new Gj(E)), this.adAvatar=new LM(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.adAvatar),this.adAvatar.u3(this.X6("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(ng("ad-avatar"),l)):this.S.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");E=g.M(e.adGridCardCollection,Ud1);this.adGridCardCollection.init(ng("ad-grid-card-collection"),E);e=g.M(e.adButton,tN);this.adButton.init(ng("ad-button"),e); this.hide()}else g.$F(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.$F(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.z.onClick=function(E){(this.adButton&&g.dT(this.adButton.element,E.target)||this.adAvatar&&g.dT(this.adAvatar.element,E.target))&&this.api.pauseVideo();mc.prototype.onClick.call(this,E);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.z.c6=function(){}; g.z.clear=function(){this.hide();var E;(E=this.headline)==null||E.clear();var e;(e=this.adAvatar)==null||e.clear();this.adGridCardCollection.clear();this.adButton.clear();mc.prototype.clear.call(this)}; g.z.show=function(){var E;(E=this.headline)==null||E.show();var e;(e=this.adAvatar)==null||e.show();this.adGridCardCollection.show();this.adButton.show();mc.prototype.show.call(this)}; g.z.hide=function(){var E;(E=this.headline)==null||E.hide();var e;(e=this.adAvatar)==null||e.hide();this.adGridCardCollection.hide();this.adButton.hide();mc.prototype.hide.call(this)}; g.z.v4=function(E){E==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):E==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):E==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.d(ge,k3); ge.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(e.attributes===void 0)g.$F(Error("No attributes found in AdDetailsLineViewModel."));else if(e.style===void 0)g.$F(Error("No style found in AdDetailsLineViewModel."));else{E=g.T(e.attributes);for(var l=E.next();!l.done;l=E.next())if(l=l.value,l.text!==void 0){l=l.text;var k=e.style,H=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,H);H.u3(this.element);a:switch(k){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":k="ytp-ad-details-line__text--style-responsive"; break a;default:k="ytp-ad-details-line__text--style-standard"}H.element.classList.add(k);H.init(ng("ad-simple-attributed-string"),new Gj(l));this.T.push(H)}this.show()}}; ge.prototype.show=function(){this.T.forEach(function(E){E.show()}); k3.prototype.show.call(this)}; ge.prototype.clear=function(){this.hide()}; ge.prototype.hide=function(){this.T.forEach(function(E){E.hide()}); k3.prototype.hide.call(this)};g.d(KM,k3);KM.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});var l,k;(E=((k=xg(((l=e.image)==null?void 0:l.sources)||[]))==null?void 0:k.url)||"")&&E.length?(l=this.X6("ytp-image-background-image"),g.MV(l,"backgroundImage","url("+E+")"),e.blurLevel!==void 0&&g.MV(l,"filter","blur("+e.blurLevel+"px)"),e.gradient!==void 0&&(e=new g.Z({X:"div",s7:["ytp-image-background--gradient-vertical"]}),g.L(this,e),e.u3(this.element)),this.show()):g.$F(Error("Failed to get imageUrl in ImageBackground."))}; KM.prototype.clear=function(){this.hide()};g.d(g0O,NZ);g.z=g0O.prototype;g.z.init=function(E,e){NZ.prototype.init.call(this,E,e,{});g.MV(this.Z,"stroke-dasharray","0 "+this.G);this.show()}; g.z.clear=function(){this.hide()}; g.z.hide=function(){Y3(this);NZ.prototype.hide.call(this)}; g.z.show=function(){Zb(this);NZ.prototype.show.call(this)}; g.z.JY=function(){this.hide()}; g.z.Bu=function(){if(this.T){var E=this.T.getProgressState();E!=null&&E.current!=null&&g.MV(this.Z,"stroke-dasharray",E.current/E.seekableEnd*this.G+" "+this.G)}};g.d(nM,k3); nM.prototype.init=function(E,e){k3.prototype.init.call(this,E,e,{});if(n0_(e)){this.adAvatar=new LM(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.adAvatar);this.adAvatar.u3(this.X6("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(ng("ad-avatar"),g.M(e.adAvatar,R8));this.headline=new Tj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4);g.L(this,this.headline);this.headline.u3(this.X6("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(ng("ad-simple-attributed-string"),new Gj(e.headline));if(E=g.M(e.adDetailsLine,GJ$))this.detailsLine=new ge(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.detailsLine),this.detailsLine.u3(this.X6("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(ng("ad-details-line"),E);this.adButton=new hN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0);g.L(this,this.adButton); this.adButton.u3(this.X6("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(ng("ad-button"),g.M(e.adButton,tN));this.adBadge=new iu(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,!0);g.L(this,this.adBadge);this.adBadge.u3(this.S);this.adBadge.init(ng("ad-badge"),g.M(e.adBadge,sn));this.adInfoButton=new LN(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.element,void 0,!0);g.L(this,this.adInfoButton);this.adInfoButton.u3(this.S); this.adInfoButton.init(ng("ad-info-hover-text-button"),g.M(e.adInfoRenderer,RP),this.macros);if(E=g.M(e.skipAdButton,jEW))this.skipAdButton=new Mj(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.skipAdButton),this.skipAdButton.u3(this.element),this.skipAdButton.init(ng("skip-button"),E);this.G=new B2(e.durationMilliseconds);g.L(this,this.G);if(E=g.M(e.countdownViewModel,FyO))this.T=new g0O(this.api,this.layoutId,this.interactionLoggingClientData,this.a4,this.G),g.L(this, this.T),this.T.u3(this.X6("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(ng("timed-pie-countdown"),E);if(e=g.M(e.imageBackground,$dG))this.imageBackground=new KM(this.api,this.layoutId,this.interactionLoggingClientData,this.a4),g.L(this,this.imageBackground),this.imageBackground.u3(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(ng("image-background"), e);this.show();this.element.focus()}}; nM.prototype.clear=function(){g.iG(this.Z);this.hide()}; nM.prototype.show=function(){Kl0(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();k3.prototype.show.call(this)}; nM.prototype.hide=function(){Kl0(!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.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();k3.prototype.hide.call(this)};g.d(qj,g.sJ);g.z=qj.prototype;g.z.Mn=function(){return 1E3*this.api.getDuration(this.Pu,!1)}; g.z.stop=function(){this.T&&this.K5.xN(this.T)}; g.z.oz=function(){var E=this.api.getProgressState(this.Pu);this.G={seekableStart:E.seekableStart,seekableEnd:E.seekableEnd,current:this.api.getCurrentTime(this.Pu,!1)};this.publish("h")}; g.z.getProgressState=function(){return this.G}; g.z.z4=function(E){g.Xh(E,2)&&this.publish("g")};var lN_="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.d(Ey,Db); Ey.prototype.Z=function(E){var e=E.id,l=E.content,k=l.componentType;if(!lN_.includes(k))switch(E.actionType){case 1:E=this.api;var H=this.a4,O=l.layoutId,X=l.interactionLoggingClientData,A=l instanceof SE?l.EG:!1,C=l instanceof SE||l instanceof Qd?l.FP:!1;X=X===void 0?{}:X;A=A===void 0?!1:A;C=C===void 0?!1:C;switch(k){case "invideo-overlay":E=new QZO(E,O,X,H);break;case "player-overlay":E=new jI(E,O,X,H,new qj(E),C);break;case "player-overlay-layout":E=new Ze(E,O,X,H,new qj(E));break;case "survey":E= new vh(E,O,X,H);break;case "ad-action-interstitial":E=new uWr(E,O,X,H,A,C);break;case "video-interstitial-buttoned-centered":E=new nM(E,O,X,H);break;case "survey-interstitial":E=new Ph(E,O,X,H);break;case "ad-message":E=new T8O(E,O,X,H,new qj(E,1));break;case "player-underlay":E=new $Wk(E,O,X,H);break;case "display-underlay-text-grid-cards":E=new mWH(E,O,X,H,new qj(E));break;default:E=null}if(!E){g.UJ(Error("No UI component returned from ComponentFactory for type: "+k));break}g.Ce(this.components, e)?g.UJ(Error("Ad UI component already registered: "+e)):this.components[e]=E;E.bind(l);l instanceof fr?this.G?this.G.append(E.fL):g.UJ(Error("Underlay view was not created but UnderlayRenderer was created")):this.S.append(E.fL);break;case 2:e=Ry0(this,E);if(e==null)break;e.bind(l);break;case 3:l=Ry0(this,E),l!=null&&(g.qE(l),g.Ce(this.components,e)?(l=this.components,e in l&&delete l[e]):g.UJ(Error("Ad UI component does not exist: "+e)))}}; Ey.prototype.Gz=function(){g.Eo(Object.values(this.components));this.components={};Db.prototype.Gz.call(this)};g.d(sZ_,g.Fq);g.z=sZ_.prototype;g.z.create=function(){try{tpd(this),this.load(),this.created=!0,tpd(this)}catch(E){kd(E instanceof Error?E:String(E))}}; g.z.load=function(){try{esH(this)}finally{km(I8(this.T).Fn)&&this.player.SH("ad",1)}}; g.z.destroy=function(){var E=this.player.getVideoData(1);this.T.T.uE.cJ(E&&E.clientPlaybackNonce||"");this.unload();this.created=!1}; g.z.unload=function(){g.Fq.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(e){kd(e instanceof Error?e:String(e))}if(this.G!=null){var E=this.G;this.G=null;E.dispose()}this.Z.reset()}; g.z.BJ=function(){return!1}; g.z.getAdState=function(){return-1}; g.z.getOptions=function(){return Object.values(eY$)}; g.z.Da=function(E,e){e=e===void 0?{}:e;switch(E){case "replaceUrlMacros":return E=e,E.url?(e=G99(this.player),Object.assign(e,E.erM),E=g.Ug(E.url,e)):E=null,E;case "onAboutThisAdPopupClosed":this.Vc(e);break;case "executeCommand":E=e;E.command&&E.layoutId&&this.executeCommand(E);break;default:return null}}; g.z.II=function(E){var e;return!((e=this.T.T.BN)==null||!e.get().II(E))}; g.z.Vc=function(E){E.isMuted&&FM9(I8(this.T).UP,I8(this.T).g_,E.layoutId);this.eb&&this.eb.Vc()}; g.z.executeCommand=function(E){I8(this.T).a4.executeCommand(E.command,E.layoutId)};g.qW("yt.player.Application.create",g.U5.create);g.qW("yt.player.Application.createAlternate",g.U5.create);aDp(dw(),EJs);var kh2=g.eS("ytcsi.tick");kh2&&kh2("pe");g.Iu("ad",sZ_);g.d(g.kS,g.a);g.kS.prototype.start=function(E,e,l){this.config={from:E,to:e,duration:l,startTime:(0,g.dE)()};this.next()}; g.kS.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.kS.prototype.next=function(){if(this.config){var E=this.config,e=E.from,l=E.to,k=E.duration;E=E.startTime;var H=(0,g.dE)()-E;E=this.T;k=geW(E,H/k);if(k==0)E=E.j;else if(k==1)E=E.N;else{H=Md(E.j,E.W,k);var O=Md(E.W,E.J,k);E=Md(E.J,E.N,k);H=Md(H,O,k);O=Md(O,E,k);E=Md(H,O,k)}E=g.Lk(E,0,1);this.callback(e+(l-e)*E);E<1&&this.delay.start()}};g.d(g.H5,g.Z);g.z=g.H5.prototype;g.z.hasSuggestions=function(){return this.suggestionData.length>0}; g.z.D2=function(){this.G&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.z.show=function(){g.Z.prototype.show.call(this);uOG(this)}; g.z.YW=function(){this.G&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.z.oB=function(){this.NN(this.api.zz().getPlayerSize())}; g.z.NN=function(E){var e=this.api.isEmbedsShortsMode()?.5625:16/9,l=this.api.xz();E=E.width-(l?112:58);l=Math.ceil(E/(l?320:192));var k=(E-l*8)/l;e=Math.floor(k/e);for(var H=g.T(this.T),O=H.next();!O.done;O=H.next())O=O.value.X6("ytp-suggestion-image"),O.style.width=k+"px",O.style.height=e+"px";this.suggestions.element.style.height=e+"px";this.S=k;this.N=e;this.containerWidth=E;this.columns=l;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Oy(this)}; g.z.onVideoDataChange=function(){var E=this.api.Y(),e=this.api.getVideoData();this.J=e.r$?!1:E.S;this.suggestionData=e.suggestions?g.JE(e.suggestions,function(l){return l&&!l.playlistId}):[]; C_k(this);e.r$?this.title.update({title:g.eE("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:e.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.z.scrollTo=function(E){E=g.Lk(E,this.containerWidth-this.suggestionData.length*(this.S+8),0);this.j.start(this.scrollPosition,E,1E3);this.scrollPosition=E;g.Oy(this);uOG(this)};})(_yt_player);