ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /tmp/ |
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2541059:"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 Oi,niv,Ov5,w9,giv,Xe5,Ag,oi9,b9,F0f,Ui,u9,Pe,x7v,hf8,Zva,M7,Q5,Jgi,weq,Hv5,Ag8,jq,Gk,m0,I8,d9,$i,bv5,V5,Sq,si,U70,uaq,P9q,OF,LO,Xu,T9i,W05,J0,wD,b1,N98,D77,qi9,kki,ygi,Mqf,Q89,efg,u1,Yi5,PR,j8i,d79,Tc,$77,Vqf,NQ,B9k,kq,MQ,mD,Ik,dD,$q,cga,iv5,BR,i1,cR,zfg,Sia,peq,s89,zc,f59,S6,pO,sF,K09,a59,KO,C99,tqv,Xz,vi9,hm,lLa,nqf,Fz,OOv,gqe,LDe,Ut,XR0,FDk,HO9,Wd,wRf,hi9,bO8,UQ7,P19,NP,DI,kd,MP,yx,WD8,ND0,Qx,ee,Yd,mc,IA,y0a,dQ,$d,Vx,ia,M6q,zR,Se,fm,aA,Cm,jka,nj,g8,XL,Gc8,Lj,mQ0,IL7,oa,Op,FL,x6, dQe,hh,Jh,V69,w8,Hw,b3,c0k,Ep,iO5,zi8,SF5,BD5,Ww,u3,r8,pRv,ski,KD5,Riq,C1e,DZ,q1,k6,t68,vqv,M1,gdv,ode,lIk,Xdi,Lcv,Omi,ndf,Fck,xPi,hNv,QO,Jm9,Y6,Zma,Hm0,Ia,mW,Amv,rmf,d8,$6,Bw,VO,i3,cw,Kj,z3,pj,sp,UPe,Ra,uz9,Cj,th,OK,gb,LU,vw,nU,lV,oL,Fe,xM,Pa9,ok,hX,JX,So,fj,wb,Wc9,HO,xq,AX,bV,rb,UK,uV,PO,TZ,Edg,WO,NQg,Ng,DP5,qg,DN,kM,yK,Mg,QK,eI,qtk,ym7,jI,Meq,QAq,GZ,mP,$M,Yt9,VK,jA0,BO,mPi,cO,dP9,iV,zZ,SI,$P9,pU,Vei,sK,BQi,cmk,fU,im9,KU,aL,CU,tX,Stf,nC,fIv,zNk,OM,LC,X_,aIe,oW,xu,RNk,tee,vdk,hp,Ze,Jp,wY,H3,Ap,b_, n6a,Ojg,g6q,LWi,rY,Xwq,o6i,UM,u_,P3,Tl,FWe,Jh9,ww0,Ah5,Hjg,bj9,U17,De,qL,ku,y6,ML,e8,Yu,WW9,Gl,IW,dY,$u,B3,c3,E6g,i_,zl,pC,D1v,qp8,sM,KC,aW,CC,tp,lf,nJ,G38,m1q,IZk,d1i,Od,ge,$18,Vo0,B87,LJ,Xb,oC,Fb,xw,HM,bf,uf,WM,chg,ij8,MX,zQ0,de,$w,sag,C39,aZ9,v60,cM,zB,RC,OUa,LPe,gM9,tR,lA,XOk,vM,Xg,BM,FPe,oMa,ZB,h3,Vj,J3,wT,HE,xge,A3,ZU9,UN,JX0,uA,PE,T1,EN,wOe,HUg,AX9,NF,bUq,rX8,Ugi,y$,ue8,PVi,Tb7,EMf,WP8,kQ,MF,Q$,Nbk,Dg8,qKi,kZ5,ew,yXf,YQ,hQ9,x1q,jw,G1,Ig,dT,eCq,$Q,V$,cE,YK5,jL5,iA,$g8,Rg,mga,dgi,Kf,ff,lK,O6, VI5,oh,Bba,F7,xo,cX8,zCi,wa,pO7,Ao,bK,sLk,fNi,uK,Te,CVe,vM0,le0,E6,nu5,W$,X30,ra,aNe,Fv9,Lvf,OCf,gu8,xLv,oui,Nv,tIv,ko,ZCi,Jpq,w37,JR5,wM0,Mv,HJe,ej,ARf,UXe,ubg,Yo,jj,Ih,B$,Tek,c$,iK,ze,Wf0,Ewk,s6,Nei,fr,Kr,kBa,MYf,eKf,QC7,Ydi,Rh,v$,gh,Xp,oo,Fp,xa,h_,mXk,IFi,Zk,dXf,J_,wh,LV,Hq,A_,b2,Fu,rh,$X5,u2,cRk,Pq,TN,Wq,iJ8,zKk,Sd9,pM9,E_,NK,Dk,qK,aFk,Kff,RKi,Cf5,tYg,ka,vwf,sCa,MK,lB9,nQi,Qh,gQi,Liq,XEk,oQi,Fi5,Ya,xF9,h69,Zfi,J3g,A35,wEf,jJ,GN,m5,Io,dh,Vh,Bq,cq,r3e,zN,i2,SJ,UFa,pV,ugf,PAf,TT9,Wie,s_,KV,DF9,fV, qNe,ao,Ro,k1g,CV,t_,vq,ls,n2,Or,YNe,y39,oO,e67,Fq,Qg7,Xq,gM,Mwa,L2,hn,G10,Jn,Zo,rM,Ur,P1,dF5,us,Er,$Fi,NJ,mF9,c3a,if8,z6i,kU,yR,MJ,SN9,QR,ea,YU,Gf,pE8,ma,B1,c1,sgi,fBq,is,Ki5,twf,vQ8,CAk,lGi,no9,Or9,aB0,LYi,zf,Sa,p2,X$i,f2,sr,oo9,FY8,xvq,C2,h7i,tn,v1,Zr0,lz,w$k,nE,Jo5,Hr5,Aov,brf,OO,gS,LE,XP,oB,FP,xC,ro9,hf,Zs,Jf,Uvi,PKi,Ta9,H4,bz,Af,UO,uz,P4,Eo7,Nak,TS,W4,EO,q69,ke9,Qhi,yov,e7k,mv5,N9,Gei,Y6i,Ds,q9,IGi,kC,dv7,yv,Vjv,$v5,Ba7,coe,YC,ji,irq,z7q,S6q,GS,m1,p$q,IB,she,fG0,aG5,vo5,dS,lki,na5,OV9,gai,L50, B4,Xqi,oav,F5g,fE,sO,pE,xK5,hF5,ZVg,KE,aB,RB,wq9,nl,Oo,gZ,Ll,X5,oj,A_9,bV7,r_5,F5,Z2,wZ,rZ,Uo,Tw,upi,Thg,P2v,W55,Eav,kH,Nh5,DK5,YH,q_i,kN5,y_9,MJ7,Ij,Gw,dZ,$H,Vp,Qof,eFq,Y_9,BH,cH,jog,iE,GNa,mKf,Iki,zw,dKk,Sz,pl,$Ki,VJ7,Bha,c_e,iVi,zFg,so,fl,Kl,Rj,sok,Cl,tS,fki,pqv,aj,K5q,vH,lc,nQ,gw,O4,ak9,RFf,C25,LQ,vai,XB,nUi,O2v,gU9,La9,X17,oU5,Faf,xJk,xk,hq,Z$,Z2i,hZ9,Jn0,w10,ww,H29,Hx,An5,b2g,Aq,bc,rw,rni,U4,uc,UJ7,Px,TU,Wx,E4,NO,D$,qO,kk,uqv,Psf,TM8,Wai,yV,EU0,DJi,NMq,QV,eu,kfi,qri,QO9,jOg,Yr9,Yk,Gfq,mJk,Iok, $Jg,dJq,Va9,ju,BMe,cni,m4,i2a,zZ5,Sr0,p17,IJ,sOf,dw,fog,$k,VV,aoq,Bx,RZa,cx,ic,Cs8,ta8,zU,pQ,lsv,s4,vU5,nCi,OE9,gCg,X4e,fQ,oCi,RJ,CQ,x95,hxi,w49,HE5,tq,vx,lh,n7,OU,gO,L7,Xj,oU,Fj,xK,hN,ZC,U90,rf9,uP9,TSi,Pz0,EC9,bE5,W1g,Af0,JN,wO,D9i,qO7,kS5,rO,UU,uh,Hs,Mi7,Ps,NSf,ex9,YO9,QB9,TV,Ws,EU,NC,jBg,yfv,GSi,DC,m99,Is9,d9v,$95,Vik,iE8,zx0,SOi,p4g,yu,fsi,K1q,Cze,ti0,et,l25,YK,Qu,Olf,nH9,XHi,x45,GV,dO,h8f,Zlg,JS9,wH8,AS9,Bs,Vu,ble,Hl8,U49,PEv,D4g,zV,qoi,ih,p7,kwi,sU,K7,aU,ySa,Mzg,Qje,Lz,e8i,Yo8,A5,jj9,m4e,bx, I2e,d4a,ilg,$47,PU,TC,WU,No,DW,f25,qo,ky,y8,a2i,eW,R88,CEf,Yy,vHk,GC,mt,IK,dP,l$q,$y,BU,cU,ix,zC,nk9,pz,sJ,fz,Kz,aK,RK,OQ8,gkf,L4e,Xxv,oki,F4k,Cz,xOg,Lx,hYe,ZQv,Jqe,Xi,Fi,x$,hz,wL,HK,Az,HQi,Ul,ue,PK,Aq5,bQ7,T_,rqe,UOg,El,q49,kUg,yq5,NH,Mu8,QJi,jJe,qH,mOv,GU5,yE,dO5,$Oe,Vuk,QE,eg,Bw8,Y$,jg,G_,mq,I3,dL,$$,VE,BK,cK,Sg,px,sl,fx,cq9,iQi,zYg,a3,Cx,S48,nh,O0,gc,Lh,XX,FX,xp,K4g,hP,ZE,JP,RYi,a$7,px7,AP,Hu,lCq,bk,DE,Wu,qY,kp,O75,Xs7,MY,xC9,oK7,Fbk,Z7q,b77,JN9,H75,AN8,e_,QA,rN9,j_,Gj,mA,UCv,cu,uj9,ik,zj,ph, Ph5,fh,Kh,TOi,aT,RT,EK8,vu,ni,Oh,gU,Li,X1,ot,F1,xT,hB,DCa,ZM,Hk,wU,kVa,ewv,Mt5,QUe,YU5,jUq,mC7,ICa,GV7,$Cg,rU,Uh,TK,Vt7,BO9,Pk,Wk,i78,zwf,fCi,sU0,qV,kT,yd,MV,Qd,jU,aC5,Rw7,Ch5,Bk,ck,tti,vKk,lWv,sh,fi,Ki,nyi,Ozg,Lti,oya,tB,Fta,n1,vk,L1,Xm,Fm,xo0,AG,bX,rF,Uy,Po,Tz,Ey,Hzg,A59,D7,bzv,r59,kt,Uo7,uW9,y_,M3,Px0,TPq,Eyi,jH,Doi,qJi,eH,kC9,y5v,QK9,MWi,dF,NPi,YJk,jK5,zz,co,GCi,mo8,SH,p1,IW5,dok,K1,$ov,VW9,BP0,c5e,vo,iz0,zcf,SJe,pU5,sKg,fWf,Kt9,aW9,nK,Rcg,gx,tWi,vyf,lwe,n$f,Oxk,LK,Zg,Lq8,Fqf,Jc,xHf,Zx5,g$0,Jz8, wK5,Hx9,XKi,o$q,Xl,oH,hc,h9i,xO,Fl,Az0,bx0,rzi,UHf,ui5,Pef,DHv,TLi,bI,rx,uI,yzk,e9v,Q35,Ux,kO,Yli,Qf,j39,mH5,mB,G_9,Slf,Iw9,z9a,Vf,pK9,Kq9,B2,$O,s3v,fw5,aw0,iI,Ceq,tga,v$a,lEk,npi,Oh9,gpi,R9v,Xu5,opq,FAi,hR5,xYk,JPf,sx,wu9,fK,KK,aH,Hhi,APi,tc,v2,rPa,bh5,lu,UYa,Pk8,WAk,Tcg,Epf,q0k,Ncf,Js,As,HV,kjf,wz,bu,Tn,WV,yP5,M_i,NU,eRe,kj,qU,MU,Q3,e5,Y0q,Yj,Gn,jT0,Iu,V3,BV,Gj5,mYi,IEf,dYf,cV,zn,$Y5,S5,pP,sG,Bc5,fP,KP,cPk,Ru,vV,ts,CP,ll,nA,S0i,RR9,t_a,aEi,KA7,Ck9,LA,Fv,Oi9,vp5,lMq,nTi,zRi,JBv,U$,Zi9,ABk,hp0,g2, ul,Jr,bl,wkv,hr,sTk,pu5,fE0,or,xVg,E$,TUq,NR,ET5,NUq,DV7,qR,qh0,kK9,yB5,Qtk,epe,MR,jt7,QS,GKv,mV0,dV0,$Vf,Ym,VU0,cB7,jr,ii9,Gs,mG,Z7,fM5,tUa,cv,l79,gt5,zs,Xok,otv,FI5,x3k,lm,hP5,tr,Mgf,Rr,vv,CA,Sr,xR,F2,ZT,wW,JG9,Hr,bm,rW,wo9,H18,Pr,b1k,rGi,U3v,umv,PXi,TF9,WIf,Et5,NFq,D35,N6,qy5,DT,kR,kzg,yG8,MHe,yo,QZa,eP7,YR,jf,G5,Yy7,mO,jZ5,dW,m3i,Gza,Vo,Br,cr,im,I7i,z5,Sf,d35,$39,pI,fI,i1g,VH9,cGf,BFv,KI,aF,RF,zPq,Sy9,po7,CI,f79,RPg,a7v,tj,vr,lr,nH,O2,LH,X8,oN,F8,x7,hV,ZD,CXa,tHa,vt8,JV,wy,Ht,AV,ry,ur,OKv,nOf, T7,gO8,Wt,E2,Ni,DD,qi,Mi,Qz,en,Y7,jn,G7,m3,IN,dy,$7,Vz,oO9,ct,z7,FBq,Sn,hE0,ZKe,Jck,HKg,bKe,RN,rci,tV,CH,PI8,Txv,WB5,lD,np,Nx9,g1,Lp,Xn,oM,qxa,uD,Pn,Tp,ku9,Wn,Dz5,Eg,Nu,M39,yci,D3,qu,k5,y9,Q9,eE7,Yx9,Y5,j$,mk,IM,jHg,Gp,Ig5,dzg,$zi,V35,Bxq,cce,iKq,$5,d1,mzk,p25,V9,fge,KBf,S$,agi,cn,iD,REg,pp,t38,l0a,sg,fp,nj5,aM,gj5,RM,hyg,F_q,L_7,oji,XV5,te,vn,lv,nu,Of,g4,Lu,Xs,Js5,Asq,xs,vC0,hM,bP0,UUk,JM,bv,w4,AM,Ha,Tz9,Pu8,ux8,W_8,r4,Eje,kn9,Uf,Pa,M57,TA,Wa,Ef,NT,Qu5,DP,ey5,YGi,ks,e9,Ys,j9,GA,mF,Im,d4,$s,VN,Ba, ca,iv,zA,ju0,Gni,S9,pu,sf,fu,Ku,am,mUi,I0q,Rm,Z4,V5a,Bzg,J9,w3,uB,PT,iP0,EE,qm,zy5,pVf,SG5,su8,f0f,K_i,a0i,Ryg,Cui,vji,t57,lx5,gmi,Xvf,OA5,yU,Mm,FG9,omf,QU,eh,Yg,hlg,jh,G0,mZ,Jri,wva,II,ZAa,d3,bA8,$g,VU,BT,cT,iB,z0,Sh,p0,sE,f0,K0,aI,RI,C0,t9,vT,lJ,nb,OP,g$,Lb,Xc,oz,Fc,xr,h8,Za,J8,w$,HC,A8,bJ,r$,UP,uJ,PC,TE,WC,EP,N_,Da,q_,kr,yi,M_,Qi,eO,Yr,jO,GE,mV,Iz,d$,$r,Vi,BC,cC,iJ,zE,SO,pb,sP,fb,Kb,az,Rz,Cb,t8,vC,li,Ou,gg,URe,LL,C,XY,nL,on,FY,x_,Plk,Z9,WGg,hk,Em9,wg,N20,Ak,Jk,bi,rg,Uu,PQ,q$i,ks7,yra,Mr7,Mp,Qw, D9,eX,el5,Y$8,jri,Gsq,DRe,mR9,ui,Ixi,dR5,jX,$_,Gg,WQ,$Rg,Tg,Y_,mo,Vw,B25,Eu,Np,dg,In,cra,BQ,cQ,ii,zg,iAi,SX,pL,fL,KL,an,zl9,S$a,sri,fxa,tk,vQ,lN,n$,tr8,lT5,OI5,gRk,go,Xr8,oRv,hJ,FOv,Z8,JJ,wo,HZ,AJ,bN,x6i,ZIe,Jji,h35,wr0,HI0,PZ,Tx,ET,D8,qr,kx,ya,Ajf,Mr,Qa,WZ,jv,Gx,mE,I_,bIq,Yx,U68,$x,u2e,Pmq,Va,TWi,BZ,cZ,WOf,ER0,iN,NWa,D69,zx,qwv,k5e,yj5,Mf7,Sv,p$,QFi,e39,sT,f$,K$,Yw7,a_,R_,C$,tJ,jFf,vZ,lj,G5a,nB,m6i,Oe,ITv,d69,$6a,Vfg,BW5,cj9,g0,iIv,z3v,Swa,LB,prq,Xr,sFf,ob,fTv,Fr,KOe,aTi,xB,H7,R3k,A6,bj,r0,Ue,Cm7, uj,P7,T2,tf7,vRi,Ee,Nl,n70,D_,OHi,g79,lD9,L39,Xtq,o7a,kB,F3k,yC,Ml,QC,el,xif,YB,jl,m8,hhk,Ib,d0,ZHk,VC,ij,B7,se,fB,JVi,KB,wtk,Rb,CB,t6,HHk,lt,AVk,Ov,gv,L5,Sl,XO,o1,FO,bHg,xG,hY,ZA,rVi,JY,wv,H6,AY,bt,Uv,ut,P6,p5,Uii,u8k,Prg,Tyi,R1,f5,C5,tY,W3e,E78,Ny5,v6,lL,nX,Di9,q28,a1,k79,yVv,Oz,Mna,gX,LX,ov,FI,xX,h1,Zh,wX,HG,bL,rX,Uz,uL,A1,Y20,jN5,TO,WG,Ez,G7q,Dh,IDa,qI,kX,diq,yb,MI,Qb,YX,$i9,ec,jc,GO,m6,Vn7,$X,cV9,iHg,zhg,Vb,BG,S2k,pti,sNe,cG,K3q,NI,fDi,aDq,iL,Rhf,zO,Crk,Sc,tn9,v7q,l3i,n55,Op7,pX,Lk8,g5a,sz,av, Xn8,Rv,o5i,CX,Fk5,xu7,t1,hd5,Zpv,Je5,wni,vG,Hpg,l$,bpf,OZ,gR,Uua,re0,unq,PD7,T1e,X9,oi,F9,Wkv,E5q,N1k,Dua,qgi,kp7,yeg,M$e,QMq,ed0,h$,Zv,Yg5,jMa,J$,wR,Gpk,H0,A$,rR,mu8,UZ,u$,P0,I39,Td,du9,W0,$ua,EZ,V$5,B1i,Na,cek,ip9,zdq,Dv,qa,k4,y1,Ma,Sgi,pn9,Q1,eP,Y4,sMi,jP,Gd,mg,Ii,dR,f3i,Kkg,$4,V1,a3i,B0,c0,i$,zd,pv7,Rdk,CD9,SP,t$k,v57,lP8,pS,sZ,fS,KS,ai,Ri,CS,t$,v0,l6,n6,nsk,Ou9,x2,hl,gs0,Zc,Dc,wm,k2,Zuv,bu5,JMi,rM5,us0,Pvf,UTi,T4i,WF0,Ese,Vq,qf0,yM0,Qmf,eo5,Yfg,i6,zb,GA0,mT8,V9g,SQ,B4q,IPi,p6,sc,f6,K6,iuk,paf, zoq,KF9,nga,l45,aPg,O0g,Rp,Cv9,Ro0,XTi,xmi,FZ5,wT9,hg0,C6,tl,Um9,nW,uV9,qE9,Dm8,N38,Egk,T3a,Mh8,y9v,WZf,G05,jI5,mmq,o7,$m5,I40,dma,PB0,Vhq,B39,O1,LW,eg5,QI0,YE5,c9f,gf,k05,zgi,pTa,f4i,a45,thf,vgi,nr8,Ob5,LVa,gr8,h19,or9,XC0,Zba,Hb0,A8q,bbe,r8v,U1,kA9,PJf,U_9,TJ,Erg,E1,D_i,qP7,N$i,Nd,kEg,Dj,qd,ro,kF,DTi,yX,Md,QX,y8i,MO7,e7,Qz5,e18,YPf,YF,j7,GJ,mU,I7,df,$F,VX,BP,jze,GEi,cP,m_g,iZ,KX,zJ,S7,d_f,Iai,pW,$_f,VO9,s1,fW,B$9,KW,c80,ibq,M9k,WV9,z1v,a7,UT,CL,FT,SPf,pCk,CW,r90,vi,sz0,uZ,PP,hi,xF,ap,Ji,Rgq,la0, Zj,H0g,J85,fag,gg5,t9a,ti,T$k,ci,aa9,KV5,cM5,CB0,R1e,wCg,bZ,A90,b09,ogi,KZi,sIf,fPf,Sf5,$Tk,dT9,jma,i0k,vs5,FVq,Z0i,J9k,HP,Ai,wf,x_8,SEi,tOe,CJg,vP,lo,nD,OA,gB,oR,hw,Zb,Jw,wB,Aw,bo,vr0,LD,XC,HJ,n_5,l97,rB,OLv,g_a,uo,Lo0,XQ9,PJ,T$,WJ,EA,N8,Db,q8,kW,hqa,M8,ye,ZL9,Fo9,xpi,Jk8,Qe,ek,wQ9,HLi,YW,Akf,hG,rk5,bL0,uY9,Tgg,Woa,Pi5,E_q,qu5,$W,Ve,kgk,yk9,BJ,cJ,MX0,Qna,eq5,Yua,z$,pD,sA,Ggf,mp5,$p9,Bg9,ck5,VXi,aR,CD,RR,iL9,zqi,fD,Su9,pQ5,sn8,f9g,KD,Cik,tXq,v_5,Rqi,a99,Koq,l8v,nx7,I9i,O$7,dp5,gxv,LE9,xrv,XZ9,oxa, FEe,JJ5,hWk,Z$g,wZ8,H$a,vJ,rJk,AJg,Uri,b$8,u4k,PNq,Tog,WE7,Exg,No8,Dre,qT0,kxa,yJ0,Mv0,Q_5,ld,YTq,j_q,Gxv,eWi,mr5,I85,Vvv,OH,XF,FF,Bov,xc,hF,Zu,ST9,s_i,pZi,KEa,OBf,ud,wI,f88,zW5,i$0,cJe,UH,HW,rI,Ne,Du,X70,qe,kc,EH,hU7,oB9,F8q,ZB5,yT,Me,w79,e1,Yc,j1,GP,mx,Ie,dI,HBi,A65,$c,VT,cW,r6i,Ul8,BW,id,T0q,W89,zP,EB8,sH,N00,fn,ae,Dlq,Kn,Re,qe7,tF,y6e,Mla,ln,nd,of,eUq,gK,Fy,hW,Yeg,JW,Xy,xz,jbi,wK,G25,H_,ml7,OL,Ld,Qbi,Zy,AW,I_i,dle,bn,$l5,rK,UL,un,P_,Vlq,W_,Tt,EL,NS,B05,c6e,Dy,qS,kz,y4,MS,iB0,Q4,es,zUa,Se5,Yz, js,Gt,sb9,p7i,mp,f_9,K8i,a_5,If,RUg,Cji,tl5,vBi,lAv,dK,$z,V4,B_,nG0,O5v,zt,gG9,Ss,pd,Lhv,X6f,sL,oGi,Fh7,JYk,w6v,xBa,hXi,Z58,Kd,af,Rf,Cd,H59,AY9,tW,b5v,UBk,rY9,Ok,nG,Pt0,Tv9,Whe,EG8,gC,Nv5,XD,oS,DB7,kqf,yY5,xY,wC,Yvv,l_e,AF,Gqf,mBk,IAa,dBa,$Bg,JF,ha,VCi,bM,rC,i5a,zXa,Sve,Uk,Khi,p6f,s19,RX9,Ct5,uM,tCa,aAi,vGq,Pz,TI,Wz,lh9,nX8,Ek,Nb,OXi,D6,gXq,qb,Hz,QY,L6f,nB8,a8i,em,YY,GI,m9,IS,dC,$Y,jm,cz,oXa,Sm,F6a,xIe,hS5,ZXa,J1e,pG,HXi,sk,bXv,fG,UIe,uIa,r19,A15,PL9,TXf,W6v,ta,EXa,NXa,qza,vz,L8i,nw,y1a,Qvg,PW,eS5, Yz7,gn,GOk,bd,jvf,RW9,tvg,vx9,kO7,Lw,X$,o5,mIk,Ih0,F$,dI9,ht,ZU,Jt,wn,HI,$If,At,bO,Vc5,BXv,rn,UI,uO,PI,TH,WI,iX0,c18,EI,zSi,pG5,Nt,svi,Szf,iO,BI,zH,pw,sI,RS,fhe,lvi,k_,cI,R5,Lgi,o40,QG,lQ,Mt,ny,Ly,VG,XE,J$q,o4,FE,w0k,HS8,A$7,bS0,xP,r$9,Uaa,h2,u9q,NR5,E4k,P$8,Wgi,TRv,ZY,Da9,J2,qZv,kdq,MPi,Qii,eui,Iva,r7,U7,VPq,uQ,Py,BR7,zu9,SZi,p0k,si9,T8,fvg,ave,Ruv,jb,Xig,lc9,n2i,FK8,G8,x08,Z65,hB0,Jl8,I4,VJ,wii,m7,By,cy,H6v,b6e,u60,py,R4,nN,LN,Yc5,jpg,xZ,FZ,JZ,wi,Gbg,d0k,Icg,$0k,AZ,Hf,Bm5,cl5,i6a,Scv,VQe,U9,zBv, pie,spq,Ty,Wf,KKv,Sb,ri,uT,Nmv,Ale,ylg,yZ,Zf,Bf,O9,iT,zy,S4,FU5,oFe,gi,s9,fN,hA7,KN,aY,ZW0,XZ,RY,m0f,tZ,v28,hZ,Jie,Tm9,P60,rli,vf,nF,WUe,Tf8,Nfg,Dd0,XG,FG,xA,oc,ZQ,JA,q1q,wj,yiv,HD,Q7i,rj,M7v,UY,u4,GJ7,PD,dd0,$di,EY,V70,ciq,mM,dj,$A,BD,iW0,cD,i4,sY,fF,KF,ac,zAi,Rc,CF,fja,tA,vD,KU8,ajf,lg,RA0,CZa,t70,vFf,ne,O3,lb0,OD9,Xo,oq,h7,ZK,gWv,J7,wk,HN,A7,bg,L$i,XJg,rk,oWi,F$9,U3,hGi,x85,ZDf,ug,wJ9,Jw7,PN,HDa,TT,WN,Awq,rw8,U8e,E3,N$,DK,uC0,q$,TB9,yr,W$5,EWe,ke,M$,Qr,ex,k$k,Mkf,NBa,yw0,QRf,D8i,qAv,eG9,YA5,GT, jRe,m8v,$89,BBv,Vki,ig,cN,pe,iD0,s3,fe,Ke,SA5,aq,pJk,zGe,Rq,K$5,Ce,t7,ab0,vN,RGq,v49,LKq,tk5,Cog,lu5,vW5,nc5,na,Onv,gcv,gH,ocq,La,Xw,oQ,xe9,JFe,hT,Zn,JT,Hn9,wW5,Fw,AFe,bni,rFv,uFi,wH,yFe,rH,UW,GPf,Iq,Iu8,de9,$eq,V1q,BI5,Pm,cFe,TQ,Wm,EW,ini,qw,z_v,SH7,k0,yP,pWf,se5,fui,Kxq,auq,Mw,Dn,R_f,QP,t1q,vc0,lyi,eE,nzk,Od5,gzf,Lp5,X_0,ozf,Fpa,xSq,hb5,Zd9,Y0,w_f,jE,Hd9,my,bd5,$0,JW7,GQ,VP,Bm,cm,iY,zQ,SE,rW0,pa,USa,fa,Ezg,qLi,ktq,yWf,Ms8,RQ,Qf5,DS7,Wp9,eb9,Ka,YL5,Gt7,sW,aQ,Pn5,TKi,Ca,mS7,Iyi,NK9,uy7,dSv,vm,$S8, lC,n4,Vs8,Oj,idv,BK8,cW5,g_,zb9,L4,X3,o2,F3,SL5,p_9,sfi,xS,Kpg,aye,h4,Rb9,ZR,J4,Cn7,tsf,vz9,l68,nY8,OG9,F9q,L99,Ibv,HY,he8,ZGe,Xza,oYf,gYe,r_,bG8,bC,A4,xb5,Ub0,Aai,HGv,wz9,Jag,uC,uD9,mL,PY,Tr,WY,PM5,Ej,TC9,NG,W9e,Sx,EY5,DR,$e,BN,G$5,yc,Qc,qk9,kIv,eS,jS,MG,kS,mz,qG,NCv,Db5,I2,ya5,Mm8,dH,AWa,dk,d_,QS9,YS,ee8,Yk0,jSe,GI8,$S,Vc,BY,I6e,db0,$be,Vmv,BC5,cav,jfi,iC,zr,SS,cY,ze9,sRq,fbi,p4,Skv,pza,sSi,f6a,sj,K99,f4,a6i,CM9,K4,tmf,vY5,R2,lU9,a2,u5,gJ5,Ow9,oJq,XIe,FXi,xtf,LX9,Ph,nJg,htg,To,Zwk,Hwk,Jt5,wI5,ED, Cd5,Atf,bw8,rtq,Utf,u$9,NE,DX,qE,POv,kN,yH,Tn7,ME,WXa,EJf,QH,Nng,Dt8,qIi,kH9,ep,Zn7,YN,Q59,jp,MVa,Go,eti,h_9,x0,YI5,mH,du,IUi,mt9,p3,dt5,GHv,Bni,sD,cte,iw0,pIi,s5q,KXe,SIe,aUf,Rta,CO5,tVf,vJ8,nPq,Oye,gP9,lYa,K3,IG,Xyq,zt9,oP5,fUk,aG,xW7,L7g,f3,hki,Zy0,Hyq,UWa,A29,uEi,r29,PQ9,J2i,RG,T7k,wya,lb,DWk,k87,q7k,y2k,Mbq,Q49,N70,ekv,Y77,C3,j4e,G8a,mW5,IYg,Vba,$W5,dWf,OV,B7k,iy7,zkq,S75,pyv,XU,oD,IQ,s4v,fYa,K77,CQ8,Rke,aY9,tbe,lfi,nZa,vP5,vh,C4,gZ9,LN8,Xf0,wfi,xkv,h20,ZNq,HNe,bNq,raq,gA,FN9,oZa,AZe,zT,JZ9, w_,Vr,bye,Tii,PT9,WNq,EZ5,Ni0,Dke,c2q,UD,t4,Uk9,q95,uZk,kyq,yZa,Rea,M40,EP8,W7q,rZa,vY,hO,Zl,e29,JO,Y90,jY5,Gyv,mka,Ifq,$kk,V47,z2f,Bi9,iN9,S9k,HF,KNv,sYq,ffq,CTi,t4f,vZf,lQa,nA9,wA,OF8,R2i,pf8,AO,gA7,cZ0,LMi,bb,oAv,FMi,xck,XD7,rA,JAi,ZFv,PCi,u39,UG8,T_8,Wzk,UV,ES5,N_a,qja,kre,DG0,y4i,j2e,Q2g,e08,Yje,Gr5,mGe,IR5,$G5,dGv,VSa,B_8,c4q,z07,Sjq,s2i,pYe,fRi,i4q,Kz8,R07,CCf,vSv,nNi,tSi,TW,O3f,gN9,aR0,LH9,lX9,WF,Xh0,oN7,FHi,xEi,hD5,Z3g,Jy7,H38,b3f,ry8,UEi,uAv,P59,Ns,Tu5,Dl,EN9,Nu8,qD0,Ms,yy9,Mp8,QGe,eDk, jGe,YDe,IX5,dEi,Qn,Yb,Gof,mEi,$Ev,GW,Bu5,Vp8,cye,i3e,zDe,sGg,SD0,aX8,mR,phv,RD5,ID,ll9,$b,Vn,nb9,dA,Ot7,BF,XFv,LRi,tpk,vNv,ob9,FR7,xsa,C59,hsi,cF,Zte,gbq,ko9,jT,wFe,zW,Htq,AOf,bt0,rOa,Us0,uU7,Pbq,TA5,WR9,Ebi,ST,NAi,Ds5,kW5,yOe,MT9,qVe,QD0,es5,YV0,jDi,GWk,ft,mse,Kt,eh7,Il5,ds5,aD,$s8,VT8,Ct,it9,zs5,tO,pFg,sDg,SV5,cOi,vF,RD,BAq,Oa,no,fl5,gr,lU,Cbv,l1i,Oo8,g8q,XL0,al9,n8i,o89,Rs9,Frf,xDe,x8,Lo,Zoa,hv9,oy,Ho0,AH0,vbg,tTi,wLq,boa,Lr5,KR8,hH,Z1,JH,rHg,wr,E8k,PUg,Nra,Tri,uti,DDe,UDi,MLk,qaq,HL,Qyq,Yaq,GF8, mDa,I1g,VLf,Ua,Bra,dDk,Ft,zvi,Saf,Ea,F77,AH,pL5,sy9,Krk,f10,a1q,iof,PL,Rve,CUi,tL9,lqv,v8e,ONq,nV9,uU,ORq,Lli,gVa,oVi,X8i,jyk,xqg,Fl9,TF,bU,h45,D1,Jxk,w88,HR9,Axq,bRi,ND,MSf,$D5,rxi,QYf,Xt,Uqg,uR9,P0v,Ttg,Wlv,qD,k8,Ntf,Dq8,q88,EVk,k4i,yF,e4i,MZ5,Q60,Y8i,MD,j69,G40,mqi,QF,Iq5,$qq,VZg,Bt7,eL,dqv,Y8,jL,cxf,iRe,Iy,GF,mr,z4i,dr,S87,p8i,s6i,Klg,fqi,zF,R47,C09,aqi,tZf,SL,vVi,po,lzk,sa,n3i,OTk,o3k,XAf,hI9,g3q,F2e,fo,L2f,x2i,ZTq,Jb9,wA7,HTe,ay,Ab0,tH,Ry,bTi,vL,l0,U27,O8,gt,ude,nR,Pqa,LR,W2i,T55,FR,xV,hx,D2e, E3v,N58,Zq,qX0,QX0,ybi,kii,M20,Jx,YXf,m27,Izk,wt,d2a,$2g,jX8,Gif,cbe,iT9,zI7,SXi,pAv,sXi,b0,RIf,rt,K2q,az8,lJi,Ax,U8,u0,fz8,Cqa,n1e,P8,T4,Osg,g15,Lmf,W8,Xli,o15,Fm0,xhk,hM7,Zs9,JEk,AE7,wlf,bsv,rE0,u0v,Pw9,jZ,qm5,Wm0,E15,kGa,yEi,Dh9,TN8,Md5,eM9,Qxf,Ym8,$ha,ml,cE9,Smf,zMi,ise,IJq,dhe,jx0,GG9,Vdv,I6,dt,sx9,y7,eAe,fJq,Vk,c8,aJi,Km5,BNk,Cwq,td5,v10,i0,lHa,a6,OM5,gvi,LJf,ovv,XBi,FJi,R6,CR,xn5,JLi,wB9,lq,ZM5,HMv,AL8,h$0,nT,LT,bM9,rLi,g5,Una,uNk,Py8,Td5,Ev8,WJ0,q55,kag,Nd0,MK5,QP0,Dnf,Fd,x3,e$9,jP8,Zz,Y5e, Gaq,IHg,mna,dn0,Jb,$nk,VK9,Bdv,w5,HA,iM9,cL7,z$0,S5i,sPi,pB9,fHk,KJ9,aHq,R$8,Cye,vvg,bq,Ab,r5,lpi,nf9,tKf,of0,FTv,xNv,JQ5,Zkk,hOv,wgf,Hk8,UX,uq,AQg,bkg,rQq,UNa,PFa,Tsv,Ti,WTa,PA,EX,uHf,Efi,Nsk,DN5,qR9,kL8,Dz,yQ5,MG0,YRi,q2,jse,eO9,k3,y0,GLv,mN9,dNa,VGa,Ip8,$N5,Q0,Bsv,ike,zOi,pg8,ss8,e2,Y3,fpg,cQa,RO5,ap9,KT7,j2,Gi,tGv,CFe,m2,IX,vfv,d5,lSg,nl5,Ogi,$3,gla,V0,LS5,BA,cA,FSi,xZ5,hLe,Jdk,w95,Hge,Zgf,bg7,Adq,rd9,PRk,S2,WS8,Tqe,UZ8,uJ9,Elg,Nq8,pT,sX,DZ8,qb8,k9g,ydk,M05,Q9k,Ybi,j98,cd9,ISi,dZ5,G9i,zLe,tb, lw,fS5,gN,Ls,KS5,Sb5,CT,F0,ox,ns,RLv,x1,t00,lri,vl9,hE,Om,RX,CRg,X0,p99,aSf,O95,fT,ZJ,gLe,Lwe,vA,s98,JE,wN,X5a,Hl,AE,bw,oL8,Fwq,hai,Z90,x59,rN,w50,Jve,Um,H98,uw,Pl,Av5,b9i,rva,U5e,uSv,TGa,ELa,Ww5,PP5,TG,NGi,qsq,D5q,Wl,Em,kvf,MD5,Q$i,Nh,yv0,eaq,Ysf,j$9,Gvq,m55,Irk,d5i,qh,k1,VDf,$59,BGf,yD,Mh,cva,i99,Sse,zag,p5i,ed,s$i,fr8,jd,Kwi,ar9,Ra0,CPi,tDf,vL0,nD5,OY5,gD9,ltk,Ld9,Xj9,oDk,Fde,xf0,hV8,ZY8,JCa,$1,wjf,HY9,ACq,Ufe,Wdg,P8i,rC0,cl,uff,bY9,TEi,iw,NE9,ED5,zG,Df0,qC9,k6i,ub,yCa,MN7,G6i,mf0,It7,Sd,dfi,sm, nt,$fg,fs,VNe,ps,BEk,cC0,fte,tE,vl,nM,O5,atv,Kdi,iYe,gd,RV0,C8k,vD5,LM,lmq,nhq,Ock,ly,Ln7,ghe,XN,Xcf,pje,Rx,ohk,Fne,xAg,hT0,zV7,SCq,Cs,Zc9,AD8,bc0,UAa,Hcv,Tpk,Ye,jx,ty,Np5,DA5,Ehf,qqe,rDe,Wni,JDq,kD7,PSi,yDv,uMe,Gr,mbf,JH9,oP,Wh,wc8,Qd0,GDk,xv,mA0,Im7,Yq5,ZH,dAa,$Av,MF9,VF0,jd9,Bpv,JL,hL,cDi,zT5,ic9,FN,pc9,AL,sdg,wd,by,HB,rd,cH5,fm9,RTa,am9,tF9,vhk,CS5,uy,U5,nEi,OZ5,gEi,wp5,xx5,hri,oEg,bZi,Xpa,WB,uQa,rK9,PW5,Tlg,Wje,Nn,DH,Dx0,Nla,EEe,kv,JK5,eK,kh0,Qm,qn,MAf,YSk,j09,AK9,Q00,Ga,Gh7,ZZ9,qSi,ym,mx5,E5, IOi,dx7,$xa,dd,$v,yK8,VA0,Bl5,Vm,BB,cKf,Mn,Ux5,iZ9,zra,SSa,er5,pp0,Yv,s09,jK,b4,fOi,aO5,cB,iy,Rrg,CWg,tA8,IP,mJ,vEa,Knv,lVi,nIq,Oq9,gIi,Leq,za,SK,Fe9,Zq0,wXf,oI9,T65,We5,EIi,N6i,Dji,qQ5,kXe,MBi,yUk,pM,s5,fM,QEi,eji,YQ5,fX,jEv,KM,GXq,aP,RP,ql,CM,Rn,mjv,WP,uc8,IVi,lZ,dj9,Iv,dX,R7,$je,VB5,B6a,cUk,iqv,tL,SQf,pX9,vB,nk,OR,sEe,aVf,Rjq,gs,CHa,fVf,Ke8,tB9,vIk,lie,n9i,O_9,Lk,Lu5,rj5,Nr,nS,Xba,o95,LS,g9g,ev,Fuf,xMq,h55,XH,PG,Ju9,wb0,os,FH,H_q,xf,Au0,lF,b_8,ru7,Byg,hQ,Zp,UMi,JQ,ws,uka,Hg,P7i,AQ,bF,TJk,Wue,Aev, rs,E9k,DM9,NJg,UR,qBg,uF,Pg,kY5,yug,My9,Qw7,e58,YB7,jw5,mMg,Wg,GY5,Iik,dMv,$Mk,Vyq,z5i,BJv,cu9,i_k,pbf,fi9,Ku5,aif,sw7,ER,R55,C7f,tyi,v9i,ldk,Dp,nn5,qN,kf,y2,O8f,gne,XSa,on9,Fsa,xy8,Z85,hz5,JIk,MN,Q2,AIf,wSq,H89,eG,b8k,rI5,Yf,jG,Uyk,GL,uha,mT,Pp5,Is,ds,TVa,$f,V2,Ws0,Eni,Bg,cg,NV5,iF,Dyg,qng,sR,km5,yI9,MM9,Ynf,ezi,fk,jV5,Gm5,myf,N4a,QVa,dy7,$y0,BVq,l5q,Z5;Oi=function(l){return function(){return l5q[l].apply(this,arguments)}}; g.g9=function(l,n){return l5q[l]=n}; niv=function(l){var n=0;return function(){return n<l.length?{done:!1,value:l[n++]}:{done:!0}}}; Ov5=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<l.length;++n){var O=l[n];if(O&&O.Math==Math)return O}throw Error("Cannot find global object");}; w9=function(l,n){if(n)a:{var O=g.xi;l=l.split(".");for(var L=0;L<l.length-1;L++){var X=l[L];if(!(X in O))break a;O=O[X]}l=l[l.length-1];L=O[l];n=n(L);n!=L&&n!=null&&Z5(O,l,{configurable:!0,writable:!0,value:n})}}; giv=function(l){l={next:l};l[Symbol.iterator]=function(){return this}; return l}; g.u=function(l,n){l.prototype=L0g(n.prototype);l.prototype.constructor=l;if(He)He(l,n);else for(var O in n)if(O!="prototype")if(Object.defineProperties){var L=Object.getOwnPropertyDescriptor(n,O);L&&Object.defineProperty(l,O,L)}else l[O]=n[O];l.CN=n.prototype}; g.P=function(l){var n=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(n)return n.call(l);if(typeof l.length=="number")return{next:niv(l)};throw Error(String(l)+" is not an iterable or ArrayLike");}; Xe5=function(l){for(var n,O=[];!(n=l.next()).done;)O.push(n.value);return O}; g.E=function(l){return l instanceof Array?l:Xe5(g.P(l))}; Ag=function(l){return oi9(l,l)}; oi9=function(l,n){l.raw=n;Object.freeze&&(Object.freeze(l),Object.freeze(n));return l}; b9=function(l,n){return Object.prototype.hasOwnProperty.call(l,n)}; F0f=function(l){if(!(l instanceof Object))throw new TypeError("Iterator result "+l+" is not an object");}; Ui=function(){this.T=!1;this.L=null;this.W=void 0;this.S=1;this.B=this.V=0;this.Y=this.N=null}; u9=function(l){if(l.T)throw new TypeError("Generator is already running");l.T=!0}; Pe=function(l,n){l.N={fG:n,Gi:!0};l.S=l.V||l.B}; g.Q=function(l,n,O){l.S=O;return{value:n}}; x7v=function(l,n,O){n=g.P(n);var L=n.next();F0f(L);if(L.done)l.W=L.value,l.S=O;else return l.L=n,g.Q(l,L.value,O)}; g.Tk=function(l){l.S=0}; g.We=function(l,n,O){l.V=n;O!=void 0&&(l.B=O)}; g.Ei=function(l,n){l.V=0;l.B=n||0}; g.N7=function(l,n,O){l.S=n;l.V=O||0}; g.D5=function(l,n){l.V=n||0;n=l.N.fG;l.N=null;return n}; g.q7=function(l,n,O,L){L?l.Y[L]=l.N:l.Y=[l.N];l.V=n||0;l.B=O||0}; g.ki=function(l,n,O){O=l.Y.splice(O||0)[0];(O=l.N=l.N||O)?O.Gi?l.S=l.V||l.B:O.D2!=void 0&&l.B<O.D2?(l.S=O.D2,l.N=null):l.S=l.B:l.S=n}; hf8=function(l){this.S=new Ui;this.W=l}; Zva=function(l,n){u9(l.S);var O=l.S.L;if(O)return M7(l,"return"in O?O["return"]:function(L){return{value:L,done:!0}},n,l.S.return); l.S.return(n);return Q5(l)}; M7=function(l,n,O,L){try{var X=n.call(l.S.L,O);F0f(X);if(!X.done)return l.S.T=!1,X;var F=X.value}catch(x){return l.S.L=null,Pe(l.S,x),Q5(l)}l.S.L=null;L.call(l.S,F);return Q5(l)}; Q5=function(l){for(;l.S.S;)try{var n=l.W(l.S);if(n)return l.S.T=!1,{value:n.value,done:!1}}catch(O){l.S.W=void 0,Pe(l.S,O)}l.S.T=!1;if(l.S.N){n=l.S.N;l.S.N=null;if(n.Gi)throw n.fG;return{value:n.return,done:!0}}return{value:void 0,done:!0}}; Jgi=function(l){this.next=function(n){u9(l.S);l.S.L?n=M7(l,l.S.L.next,n,l.S.G):(l.S.G(n),n=Q5(l));return n}; this.throw=function(n){u9(l.S);l.S.L?n=M7(l,l.S.L["throw"],n,l.S.G):(Pe(l.S,n),n=Q5(l));return n}; this.return=function(n){return Zva(l,n)}; this[Symbol.iterator]=function(){return this}}; weq=function(l,n){n=new Jgi(new hf8(n));He&&l.prototype&&He(n,l.prototype);return n}; Hv5=function(l){function n(L){return l.next(L)} function O(L){return l.throw(L)} return new Promise(function(L,X){function F(x){x.done?L(x.value):Promise.resolve(x.value).then(n,O).then(F,X)} F(l.next())})}; g.Y=function(l){return Hv5(new Jgi(new hf8(l)))}; g.eq=function(){for(var l=Number(this),n=[],O=l;O<arguments.length;O++)n[O-l]=arguments[O];return n}; Ag8=function(l,n,O){l instanceof String&&(l=String(l));for(var L=l.length,X=0;X<L;X++){var F=l[X];if(n.call(O,F,X,l))return{lX:X,iL:F}}return{lX:-1,iL:void 0}}; jq=function(l,n,O){if(l==null)throw new TypeError("The 'this' value for String.prototype."+O+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+O+" must not be a regular expression");return l+""}; Gk=function(l,n){l instanceof String&&(l+="");var O=0,L=!1,X={next:function(){if(!L&&O<l.length){var F=O++;return{value:n(F,l[F]),done:!1}}L=!0;return{done:!0,value:void 0}}}; X[Symbol.iterator]=function(){return X}; return X}; m0=function(l){return l?l:Array.prototype.fill}; I8=function(l){return l?l:Array.prototype.copyWithin}; d9=function(l){l=Math.trunc(l)||0;l<0&&(l+=this.length);if(!(l<0||l>=this.length))return this[l]}; $i=function(l){return l?l:d9}; bv5=function(l,n,O){l instanceof String&&(l=String(l));for(var L=l.length-1;L>=0;L--){var X=l[L];if(n.call(O,X,L,l))return{lX:L,iL:X}}return{lX:-1,iL:void 0}}; V5=function(l){return l?l:function(n,O){return bv5(this,n,O).lX}}; g.i9=function(l,n,O){l=l.split(".");O=O||g.Be;for(var L;l.length&&(L=l.shift());)l.length||n===void 0?O[L]&&O[L]!==Object.prototype[L]?O=O[L]:O=O[L]={}:O[L]=n}; Sq=function(l,n){var O=g.zk("CLOSURE_FLAGS");l=O&&O[l];return l!=null?l:n}; g.zk=function(l,n){l=l.split(".");n=n||g.Be;for(var O=0;O<l.length;O++)if(n=n[l[O]],n==null)return null;return n}; si=function(l){var n=typeof l;return n!="object"?n:l?Array.isArray(l)?"array":n:"null"}; g.fv=function(l){var n=si(l);return n=="array"||n=="object"&&typeof l.length=="number"}; g.Kv=function(l){var n=typeof l;return n=="object"&&l!=null||n=="function"}; g.R8=function(l){return Object.prototype.hasOwnProperty.call(l,a8)&&l[a8]||(l[a8]=++rgq)}; U70=function(l,n,O){return l.call.apply(l.bind,arguments)}; uaq=function(l,n,O){if(!l)throw Error();if(arguments.length>2){var L=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,L);return l.apply(n,X)}}return function(){return l.apply(n,arguments)}}; g.tg=function(l,n,O){g.tg=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?U70:uaq;return g.tg.apply(null,arguments)}; g.ve=function(l,n){var O=Array.prototype.slice.call(arguments,1);return function(){var L=O.slice();L.push.apply(L,arguments);return l.apply(this,L)}}; g.l1=function(){return Date.now()}; P9q=function(l){return l}; g.nO=function(l,n){function O(){} O.prototype=n.prototype;l.CN=n.prototype;l.prototype=new O;l.prototype.constructor=l;l.Yt=function(L,X,F){for(var x=Array(arguments.length-2),Z=2;Z<arguments.length;Z++)x[Z-2]=arguments[Z];return n.prototype[X].apply(L,x)}}; OF=function(l,n){if(n!==null&&n!==void 0){if(typeof n!=="object"&&typeof n!=="function")throw new TypeError("Object expected.");if(O===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var O=n[Symbol.dispose]}if(typeof O!=="function")throw new TypeError("Object not disposable.");l.stack.push({value:n,dispose:O,async:!1})}return n}; LO=function(l){function n(F){l.error=l.hasError?new SuppressedError(F,l.error,"An error was suppressed during disposal."):F;l.hasError=!0} function O(){for(;L=l.stack.pop();)try{if(!L.async&&X===1)return X=0,l.stack.push(L),Promise.resolve().then(O);if(L.dispose){var F=L.dispose.call(L.value);if(L.async)return X|=2,Promise.resolve(F).then(O,function(x){n(x);return O()})}else X|=1}catch(x){n(x)}if(X===1)return l.hasError?Promise.reject(l.error):Promise.resolve(); if(l.hasError)throw l.error;} var L,X=0;O()}; Xu=function(l,n,O){O=O===void 0?Error():O;var L=Error.call(this);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=l;n+=":";O instanceof Error?(this.message=n+O.message,this.stack=O.stack||""):(this.message=n+String(O),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; T9i=function(l){var n=n===void 0?46:n;var O=[];ok(l,Fu,6).forEach(function(L){xq(L,2)<=n&&O.push(xq(L,1))}); return O}; W05=function(l){var n=n===void 0?46:n;var O=[];ok(l,Fu,6).forEach(function(L){xq(L,2)>n&&O.push(xq(L,1))}); return O}; g.h0=function(l){l&&typeof l.dispose=="function"&&l.dispose()}; g.ZL=function(l){for(var n=0,O=arguments.length;n<O;++n){var L=arguments[n];g.fv(L)?g.ZL.apply(null,L):g.h0(L)}}; g.V=function(){this.hn=this.hn;this.G6=this.G6}; g.c=function(l,n){l.addOnDisposeCallback(g.ve(g.h0,n))}; J0=function(l){l.then(function(){},function(){})}; wD=function(){g.V.apply(this,arguments);this.L=1;this[Eie]=this.dispose}; b1=function(l){return{fieldType:2,fieldName:l}}; g.UF=function(l){return{fieldType:3,fieldName:l}}; N98=function(l){this.S=l;l.j_("/client_streamz/bg/frs",g.UF("ke"))}; D77=function(l){this.S=l;l.j_("/client_streamz/bg/wrl",g.UF("mn"),b1("ac"),b1("sc"),g.UF("rk"),g.UF("mk"))}; qi9=function(l){this.W=l;l.gH("/client_streamz/bg/ec",g.UF("en"),g.UF("mk"))}; kki=function(l){this.S=l;l.j_("/client_streamz/bg/el",g.UF("en"),g.UF("rk"),g.UF("mk"))}; ygi=function(l){this.W=l;l.gH("/client_streamz/bg/cec",b1("ec"),g.UF("rk"),g.UF("mk"))}; Mqf=function(l){this.W=l;l.gH("/client_streamz/bg/po/csc",b1("cs"),g.UF("rk"),g.UF("mk"))}; Q89=function(l){this.W=l;l.gH("/client_streamz/bg/po/ctav",g.UF("av"),g.UF("rk"),g.UF("mk"))}; efg=function(l){this.W=l;l.gH("/client_streamz/bg/po/cwsc",g.UF("su"),g.UF("rk"),g.UF("mk"))}; u1=function(l,n){if(Error.captureStackTrace)Error.captureStackTrace(this,u1);else{var O=Error().stack;O&&(this.stack=O)}l&&(this.message=String(l));n!==void 0&&(this.cause=n)}; Yi5=function(){}; PR=function(){throw Error("Invalid UTF8");}; j8i=function(l,n){n=String.fromCharCode.apply(null,n);return l==null?n:l+n}; d79=function(l){var n=!1;n=n===void 0?!1:n;if(Gk7){if(n&&(m78?!l.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(l)))throw Error("Found an unpaired surrogate");l=(I5i||(I5i=new TextEncoder)).encode(l)}else{for(var O=0,L=new Uint8Array(3*l.length),X=0;X<l.length;X++){var F=l.charCodeAt(X);if(F<128)L[O++]=F;else{if(F<2048)L[O++]=F>>6|192;else{if(F>=55296&&F<=57343){if(F<=56319&&X<l.length){var x=l.charCodeAt(++X);if(x>=56320&&x<=57343){F=(F-55296)*1024+ x-56320+65536;L[O++]=F>>18|240;L[O++]=F>>12&63|128;L[O++]=F>>6&63|128;L[O++]=F&63|128;continue}else X--}if(n)throw Error("Found an unpaired surrogate");F=65533}L[O++]=F>>12|224;L[O++]=F>>6&63|128}L[O++]=F&63|128}}l=O===L.length?L:L.subarray(0,O)}return l}; Tc=function(l){g.Be.setTimeout(function(){throw l;},0)}; $77=function(l){return Array.prototype.map.call(l,function(n){n=n.toString(16);return n.length>1?n:"0"+n}).join("")}; Vqf=function(l){for(var n=[],O=0;O<l.length;O+=2)n.push(parseInt(l.substring(O,O+2),16));return n}; g.EF=function(l){for(var n=[],O=0,L=0;L<l.length;L++){var X=l.charCodeAt(L);X<128?n[O++]=X:(X<2048?n[O++]=X>>6|192:((X&64512)==55296&&L+1<l.length&&(l.charCodeAt(L+1)&64512)==56320?(X=65536+((X&1023)<<10)+(l.charCodeAt(++L)&1023),n[O++]=X>>18|240,n[O++]=X>>12&63|128):n[O++]=X>>12|224,n[O++]=X>>6&63|128),n[O++]=X&63|128)}return n}; NQ=function(l,n){return l.lastIndexOf(n,0)==0}; B9k=function(l,n){var O=l.length-n.length;return O>=0&&l.indexOf(n,O)==O}; g.DL=function(l){return/^[\s\xa0]*$/.test(l)}; g.qQ=function(l,n){return l.indexOf(n)!=-1}; kq=function(l,n){return g.qQ(l.toLowerCase(),n.toLowerCase())}; g.Qs=function(l,n){var O=0;l=ys(String(l)).split(".");n=ys(String(n)).split(".");for(var L=Math.max(l.length,n.length),X=0;O==0&&X<L;X++){var F=l[X]||"",x=n[X]||"";do{F=/(\d*)(\D*)(.*)/.exec(F)||["","","",""];x=/(\d*)(\D*)(.*)/.exec(x)||["","","",""];if(F[0].length==0&&x[0].length==0)break;O=MQ(F[1].length==0?0:parseInt(F[1],10),x[1].length==0?0:parseInt(x[1],10))||MQ(F[2].length==0,x[2].length==0)||MQ(F[2],x[2]);F=F[3];x=x[3]}while(O==0)}return O}; MQ=function(l,n){return l<n?-1:l>n?1:0}; g.e6=function(){var l=g.Be.navigator;return l&&(l=l.userAgent)?l:""}; mD=function(l){return Yq||j6?Gc?Gc.brands.some(function(n){return(n=n.brand)&&g.qQ(n,l)}):!1:!1}; Ik=function(l){return g.qQ(g.e6(),l)}; dD=function(){return Yq||j6?!!Gc&&Gc.brands.length>0:!1}; $q=function(){return dD()?!1:Ik("Opera")}; cga=function(){return dD()?!1:Ik("Trident")||Ik("MSIE")}; iv5=function(){return dD()?mD("Microsoft Edge"):Ik("Edg/")}; BR=function(){return Ik("Firefox")||Ik("FxiOS")}; i1=function(){return Ik("Safari")&&!(cR()||(dD()?0:Ik("Coast"))||$q()||(dD()?0:Ik("Edge"))||iv5()||(dD()?mD("Opera"):Ik("OPR"))||BR()||Ik("Silk")||Ik("Android"))}; cR=function(){return dD()?mD("Chromium"):(Ik("Chrome")||Ik("CriOS"))&&!(dD()?0:Ik("Edge"))||Ik("Silk")}; zfg=function(){return Ik("Android")&&!(cR()||BR()||$q()||Ik("Silk"))}; Sia=function(l){var n={};l.forEach(function(O){n[O[0]]=O[1]}); return function(O){return n[O.find(function(L){return L in n})]||""}}; peq=function(l){var n=g.e6();if(l==="Internet Explorer"){if(cga())if((l=/rv: *([\d\.]*)/.exec(n))&&l[1])n=l[1];else{l="";var O=/MSIE +([\d\.]+)/.exec(n);if(O&&O[1])if(n=/Trident\/(\d.\d)/.exec(n),O[1]=="7.0")if(n&&n[1])switch(n[1]){case "4.0":l="8.0";break;case "5.0":l="9.0";break;case "6.0":l="10.0";break;case "7.0":l="11.0"}else l="7.0";else l=O[1];n=l}else n="";return n}var L=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");O=[];for(var X;X=L.exec(n);)O.push([X[1],X[2],X[3]||void 0]); n=Sia(O);switch(l){case "Opera":if($q())return n(["Version","Opera"]);if(dD()?mD("Opera"):Ik("OPR"))return n(["OPR"]);break;case "Microsoft Edge":if(dD()?0:Ik("Edge"))return n(["Edge"]);if(iv5())return n(["Edg"]);break;case "Chromium":if(cR())return n(["Chrome","CriOS","HeadlessChrome"])}return l==="Firefox"&&BR()||l==="Safari"&&i1()||l==="Android Browser"&&zfg()||l==="Silk"&&Ik("Silk")?(n=O[2])&&n[1]||"":""}; s89=function(l){if(dD()&&l!=="Silk"){var n=Gc.brands.find(function(O){return O.brand===l}); if(!n||!n.version)return NaN;n=n.version.split(".")}else{n=peq(l);if(n==="")return NaN;n=n.split(".")}return n.length===0?NaN:Number(n[0])}; zc=function(){return Yq||j6?!!Gc&&!!Gc.platform:!1}; f59=function(){return zc()?Gc.platform==="Android":Ik("Android")}; S6=function(){return Ik("iPhone")&&!Ik("iPod")&&!Ik("iPad")}; pO=function(){return S6()||Ik("iPad")||Ik("iPod")}; sF=function(){return zc()?Gc.platform==="macOS":Ik("Macintosh")}; K09=function(){return zc()?Gc.platform==="Windows":Ik("Windows")}; g.fO=function(l){return l[l.length-1]}; a59=function(l,n){var O=l.length,L=typeof l==="string"?l.split(""):l;for(--O;O>=0;--O)O in L&&n.call(void 0,L[O],O,l)}; g.ak=function(l,n,O){n=KO(l,n,O);return n<0?null:typeof l==="string"?l.charAt(n):l[n]}; KO=function(l,n,O){for(var L=l.length,X=typeof l==="string"?l.split(""):l,F=0;F<L;F++)if(F in X&&n.call(O,X[F],F,l))return F;return-1}; g.Rk=function(l,n,O){var L=l.length,X=typeof l==="string"?l.split(""):l;for(--L;L>=0;L--)if(L in X&&n.call(O,X[L],L,l))return L;return-1}; g.CO=function(l,n){return Rf8(l,n)>=0}; C99=function(l){if(!Array.isArray(l))for(var n=l.length-1;n>=0;n--)delete l[n];l.length=0}; g.vR=function(l,n){n=Rf8(l,n);var O;(O=n>=0)&&g.t0(l,n);return O}; g.t0=function(l,n){return Array.prototype.splice.call(l,n,1).length==1}; g.la=function(l,n){n=KO(l,n);n>=0&&g.t0(l,n)}; tqv=function(l,n){var O=0;a59(l,function(L,X){n.call(void 0,L,X,l)&&g.t0(l,X)&&O++})}; g.nm=function(l){return Array.prototype.concat.apply([],arguments)}; g.Ot=function(l){var n=l.length;if(n>0){for(var O=Array(n),L=0;L<n;L++)O[L]=l[L];return O}return[]}; g.Lm=function(l,n){for(var O=1;O<arguments.length;O++){var L=arguments[O];if(g.fv(L)){var X=l.length||0,F=L.length||0;l.length=X+F;for(var x=0;x<F;x++)l[X+x]=L[x]}else l.push(L)}}; g.oA=function(l,n,O,L){Array.prototype.splice.apply(l,Xz(arguments,1))}; Xz=function(l,n,O){return arguments.length<=2?Array.prototype.slice.call(l,n):Array.prototype.slice.call(l,n,O)}; vi9=function(l){for(var n=0,O=0,L={};O<l.length;){var X=l[O++],F=g.Kv(X)?"o"+g.R8(X):(typeof X).charAt(0)+X;Object.prototype.hasOwnProperty.call(L,F)||(L[F]=!0,l[n++]=X)}l.length=n}; g.xd=function(l,n,O){return lLa(l,O||Fz,!1,n)}; hm=function(l,n){return lLa(l,n,!0)}; lLa=function(l,n,O,L){for(var X=0,F=l.length,x;X<F;){var Z=X+(F-X>>>1),J=void 0;O?J=n.call(void 0,l[Z],Z,l):J=n(L,l[Z]);J>0?X=Z+1:(F=Z,x=!J)}return x?X:-X-1}; g.ZI=function(l,n){l.sort(n||Fz)}; nqf=function(l,n){var O=Fz;g.ZI(l,function(L,X){return O(n(L),n(X))})}; g.Jm=function(l,n,O){if(!g.fv(l)||!g.fv(n)||l.length!=n.length)return!1;var L=l.length;O=O||OOv;for(var X=0;X<L;X++)if(!O(l[X],n[X]))return!1;return!0}; Fz=function(l,n){return l>n?1:l<n?-1:0}; OOv=function(l,n){return l===n}; g.wQ=function(l,n,O){O=g.xd(l,n,O);O<0&&g.oA(l,-(O+1),0,n)}; g.rQ=function(l,n,O){var L={};(0,g.ba)(l,function(X,F){L[n.call(O,X,F,l)]=X}); return L}; gqe=function(l){for(var n=[],O=0;O<l;O++)n[O]="";return n}; LDe=function(l,n){n=Array.prototype.splice.call(l,n,1);Array.prototype.splice.call(l,0,0,n[0])}; Ut=function(l){Ut[" "](l);return l}; XR0=function(l,n){try{return Ut(l[n]),!0}catch(O){}return!1}; FDk=function(l,n){var O=oq5;return Object.prototype.hasOwnProperty.call(O,l)?O[l]:O[l]=n(l)}; g.ua=function(l){return FDk(l,function(){return g.Qs(xQi,l)>=0})}; g.Pd=function(l,n){n===void 0&&(n=0);hi9();n=ZO5[n];for(var O=Array(Math.floor(l.length/3)),L=n[64]||"",X=0,F=0;X<l.length-2;X+=3){var x=l[X],Z=l[X+1],J=l[X+2],w=n[x>>2];x=n[(x&3)<<4|Z>>4];Z=n[(Z&15)<<2|J>>6];J=n[J&63];O[F++]=""+w+x+Z+J}w=0;J=L;switch(l.length-X){case 2:w=l[X+1],J=n[(w&15)<<2]||L;case 1:l=l[X],O[F]=""+n[l>>2]+n[(l&3)<<4|w>>4]+J+L}return O.join("")}; g.TR=function(l,n){if(J08&&!n)l=g.Be.btoa(l);else{for(var O=[],L=0,X=0;X<l.length;X++){var F=l.charCodeAt(X);F>255&&(O[L++]=F&255,F>>=8);O[L++]=F}l=g.Pd(O,n)}return l}; HO9=function(l){var n=[];wRf(l,function(O){n.push(O)}); return n}; Wd=function(l){var n=l.length,O=n*3/4;O%3?O=Math.floor(O):g.qQ("=.",l[n-1])&&(O=g.qQ("=.",l[n-2])?O-2:O-1);var L=new Uint8Array(O),X=0;wRf(l,function(F){L[X++]=F}); return X!==O?L.subarray(0,X):L}; wRf=function(l,n){function O(J){for(;L<l.length;){var w=l.charAt(L++),H=Et[w];if(H!=null)return H;if(!g.DL(w))throw Error("Unknown base64 encoding at char: "+w);}return J} hi9();for(var L=0;;){var X=O(-1),F=O(0),x=O(64),Z=O(64);if(Z===64&&X===-1)break;n(X<<2|F>>4);x!=64&&(n(F<<4&240|x>>2),Z!=64&&n(x<<6&192|Z))}}; hi9=function(){if(!Et){Et={};for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"],O=0;O<5;O++){var L=l.concat(n[O].split(""));ZO5[O]=L;for(var X=0;X<L.length;X++){var F=L[X];Et[F]===void 0&&(Et[F]=X)}}}}; bO8=function(l){if(!A05)return g.Pd(l);for(var n="",O=0,L=l.length-10240;O<L;)n+=String.fromCharCode.apply(null,l.subarray(O,O+=10240));n+=String.fromCharCode.apply(null,O?l.subarray(O):l);return btoa(n)}; UQ7=function(l){return r0i[l]||""}; P19=function(l){if(!A05)return Wd(l);uuk.test(l)&&(l=l.replace(uuk,UQ7));l=atob(l);for(var n=new Uint8Array(l.length),O=0;O<l.length;O++)n[O]=l.charCodeAt(O);return n}; NP=function(l){return TD5&&l!=null&&l instanceof Uint8Array}; DI=function(l,n){WD8(n);this.S=l;if(l!=null&&l.length===0)throw Error("ByteString should be constructed with non-empty values");}; kd=function(){return Eqa||(Eqa=new DI(null,qP))}; MP=function(l){return new Uint8Array(yx(l)||0)}; yx=function(l){WD8(qP);var n=l.S;n=n==null||NP(n)?n:typeof n==="string"?P19(n):null;return n==null?n:l.S=n}; WD8=function(l){if(l!==qP)throw Error("illegal external caller");}; ND0=function(l,n){l.__closure__error__context__984382||(l.__closure__error__context__984382={});l.__closure__error__context__984382.severity=n}; Qx=function(l){l=Error(l);ND0(l,"warning");return l}; ee=function(l){if(l!=null){var n;var O=(n=DQf)!=null?n:DQf={};n=O[l]||0;n>=5||(O[l]=n+1,l=Error(),ND0(l,"incident"),Tc(l))}}; Yd=function(l,n,O){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(O===void 0?0:O)&&Symbol.for&&l?Symbol.for(l):l!=null?Symbol(l):Symbol():n}; mc=function(l,n){je||GR in l||qF7(l,kca);l[GR]|=n}; IA=function(l,n){je||GR in l||qF7(l,kca);l[GR]=n}; y0a=function(l,n){IA(n,(l|0)&-15615)}; dQ=function(l,n){IA(n,(l|34)&-15581)}; $d=function(){return typeof BigInt==="function"}; Vx=function(l){return Array.prototype.slice.call(l)}; ia=function(l){return l!==null&&typeof l==="object"&&!Array.isArray(l)&&l.constructor===Object}; M6q=function(l,n){if(l!=null)if(typeof l==="string")l=l?new DI(l,qP):kd();else if(l.constructor!==DI)if(NP(l))l=l.length?new DI(new Uint8Array(l),qP):kd();else{if(!n)throw Error();l=void 0}return l}; zR=function(l){if(l&2)throw Error();}; Se=function(l,n){if(typeof n!=="number"||n<0||n>=l.length)throw Error();}; fm=function(l){var n=P9q(pm);return n?l[n]:void 0}; aA=function(l){l.Qu5=!0;return l}; Cm=function(l){var n=l;if(Qkk(n)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(n))throw Error(String(n));}else if(eiv(n)&&!Number.isSafeInteger(n))throw Error(String(n));return RA?BigInt(l):l=YFq(l)?l?"1":"0":Qkk(l)?l.trim()||"0":String(l)}; jka=function(l,n){if(l.length>n.length)return!1;if(l.length<n.length||l===n)return!0;for(var O=0;O<l.length;O++){var L=l[O],X=n[O];if(L>X)return!1;if(L<X)return!0}}; nj=function(l){var n=l>>>0;tm=n;l3=(l-n)/4294967296>>>0}; g8=function(l){if(l<0){nj(0-l);var n=g.P(Op(tm,l3));l=n.next().value;n=n.next().value;tm=l>>>0;l3=n>>>0}else nj(l)}; XL=function(l,n){var O=n*4294967296+(l>>>0);return Number.isSafeInteger(O)?O:Lj(l,n)}; Gc8=function(l,n){var O=n&2147483648;O&&(l=~l+1>>>0,n=~n>>>0,l==0&&(n=n+1>>>0));l=XL(l,n);return typeof l==="number"?O?-l:l:O?"-"+l:l}; Lj=function(l,n){n>>>=0;l>>>=0;if(n<=2097151)var O=""+(4294967296*n+l);else $d()?O=""+(BigInt(n)<<BigInt(32)|BigInt(l)):(O=(l>>>24|n<<8)&16777215,n=n>>16&65535,l=(l&16777215)+O*6777216+n*6710656,O+=n*8147497,n*=2,l>=1E7&&(O+=l/1E7>>>0,l%=1E7),O>=1E7&&(n+=O/1E7>>>0,O%=1E7),O=n+mQ0(O)+mQ0(l));return O}; mQ0=function(l){l=String(l);return"0000000".slice(l.length)+l}; IL7=function(){var l=tm,n=l3;n&2147483648?$d()?l=""+(BigInt(n|0)<<BigInt(32)|BigInt(l>>>0)):(n=g.P(Op(l,n)),l=n.next().value,n=n.next().value,l="-"+Lj(l,n)):l=Lj(l,n);return l}; oa=function(l){if(l.length<16)g8(Number(l));else if($d())l=BigInt(l),tm=Number(l&BigInt(4294967295))>>>0,l3=Number(l>>BigInt(32)&BigInt(4294967295));else{var n=+(l[0]==="-");l3=tm=0;for(var O=l.length,L=0+n,X=(O-n)%6+n;X<=O;L=X,X+=6)L=Number(l.slice(L,X)),l3*=1E6,tm=tm*1E6+L,tm>=4294967296&&(l3+=Math.trunc(tm/4294967296),l3>>>=0,tm>>>=0);n&&(n=g.P(Op(tm,l3)),l=n.next().value,n=n.next().value,tm=l,l3=n)}}; Op=function(l,n){n=~n;l?l=~l+1:n+=1;return[l,n]}; FL=function(l,n){throw Error(n===void 0?"unexpected value "+l+"!":n);}; x6=function(l){if(l!=null&&typeof l!=="number")throw Error("Value of float/double field must be a number, found "+typeof l+": "+l);return l}; dQe=function(l){return l.displayName||l.name||"unknown type name"}; hh=function(l){if(l!=null&&typeof l!=="boolean")throw Error("Expected boolean but got "+si(l)+": "+l);return l}; Jh=function(l){switch(typeof l){case "bigint":return!0;case "number":return ZZ(l);case "string":return $Q9.test(l);default:return!1}}; V69=function(l){if(typeof l!=="number")throw Qx("int32");if(!ZZ(l))throw Qx("int32");return l|0}; w8=function(l){return l==null?l:V69(l)}; Hw=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return ZZ(l)?l|0:void 0}; b3=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return ZZ(l)?l>>>0:void 0}; c0k=function(l){var n=0;n=n===void 0?0:n;if(!Jh(l))throw Qx("int64");var O=typeof l;switch(n){case 2048:switch(O){case "string":return r8(l);case "bigint":return String(Up(64,l));default:return u3(l)}case 4096:switch(O){case "string":return n=Pw(Number(l)),T3(n)?l=Cm(n):(n=l.indexOf("."),n!==-1&&(l=l.substring(0,n)),l=$d()?Cm(Up(64,BigInt(l))):Cm(BD5(l))),l;case "bigint":return Cm(Up(64,l));default:return T3(l)?Cm(Ww(l)):Cm(u3(l))}case 0:switch(O){case "string":return r8(l);case "bigint":return Cm(Up(64, l));default:return Ww(l)}default:return FL(n,"Unknown format requested type for int64")}}; Ep=function(l){return l==null?l:c0k(l)}; iO5=function(l){if(l[0]==="-")return!1;var n=l.length;return n<20?!0:n===20&&Number(l.substring(0,6))<184467}; zi8=function(l){var n=l.length;return l[0]==="-"?n<20?!0:n===20&&Number(l.substring(0,7))>-922337:n<19?!0:n===19&&Number(l.substring(0,6))<922337}; SF5=function(l){if(l<0){g8(l);var n=Lj(tm,l3);l=Number(n);return T3(l)?l:n}n=String(l);if(iO5(n))return n;g8(l);return XL(tm,l3)}; BD5=function(l){if(zi8(l))return l;oa(l);return IL7()}; Ww=function(l){Jh(l);l=Pw(l);T3(l)||(g8(l),l=Gc8(tm,l3));return l}; u3=function(l){Jh(l);l=Pw(l);if(T3(l))l=String(l);else{var n=String(l);zi8(n)?l=n:(g8(l),l=IL7())}return l}; r8=function(l){Jh(l);var n=Pw(Number(l));if(T3(n))return String(n);n=l.indexOf(".");n!==-1&&(l=l.substring(0,n));return BD5(l)}; pRv=function(l){if(l==null)return l;if(typeof l==="bigint")return N1(l)?l=Number(l):(l=Up(64,l),l=N1(l)?Number(l):String(l)),l;if(Jh(l))return typeof l==="number"?Ww(l):r8(l)}; ski=function(l){if(l==null)return l;var n=typeof l;if(n==="bigint")return String(Up(64,l));if(Jh(l)){if(n==="string")return r8(l);if(n==="number")return Ww(l)}}; KD5=function(l){if(l==null)return l;var n=typeof l;if(n==="bigint")return String(fLf(64,l));if(Jh(l)){if(n==="string")return Jh(l),n=Pw(Number(l)),T3(n)&&n>=0?l=String(n):(n=l.indexOf("."),n!==-1&&(l=l.substring(0,n)),iO5(l)||(oa(l),l=Lj(tm,l3))),l;if(n==="number")return Jh(l),l=Pw(l),l>=0&&T3(l)?l:SF5(l)}}; Riq=function(l){if(l==null||typeof l=="string"||l instanceof DI)return l;if(NP(l))return NP(l)&&ee(aL0),l}; C1e=function(l){if(typeof l!=="string")throw Error();return l}; DZ=function(l){if(l!=null&&typeof l!=="string")throw Error();return l}; q1=function(l){return l==null||typeof l==="string"?l:void 0}; k6=function(l,n){if(!(l instanceof n))throw Error("Expected instanceof "+dQe(n)+" but got "+(l&&dQe(l.constructor)));return l}; t68=function(l,n,O){if(l!=null&&typeof l==="object"&&l.Og===yO)return l;if(Array.isArray(l)){var L=l[GR]|0,X=L;X===0&&(X|=O&32);X|=O&2;X!==L&&IA(l,X);return new n(l)}}; vqv=function(l){return l}; M1=function(l){return l}; gdv=function(l,n,O,L){return lIk(l,n,O,L,ndf,Omi)}; ode=function(l,n,O,L){return lIk(l,n,O,L,Lcv,Xdi)}; lIk=function(l,n,O,L,X,F){if(!O.length&&!L)return 0;for(var x=0,Z=0,J=0,w=0,H=0,A=O.length-1;A>=0;A--){var b=O[A];L&&A===O.length-1&&b===L||(w++,b!=null&&J++)}if(L)for(var r in L)A=+r,isNaN(A)||(H+=Fck(A),Z++,A>x&&(x=A));w=X(w,J)+F(Z,x,H);r=J;A=Z;b=x;for(var U=H,W=O.length-1;W>=0;W--){var N=O[W];if(!(N==null||L&&W===O.length-1&&N===L)){N=W-n;var q=X(N,r)+F(A,b,U);q<w&&(l=1+N,w=q);A++;r--;U+=Fck(N);b=Math.max(b,N)}}n=X(0,0)+F(A,b,U);n<w&&(l=0,w=n);if(L){A=Z;b=x;U=H;r=J;for(var y in L)L=+y,isNaN(L)|| L>=1024||(A--,r++,U-=y.length,x=X(L,r)+F(A,b,U),x<w&&(l=1+L,w=x))}return l}; Xdi=function(l,n,O){return O+l*3+(l>1?l-1:0)}; Lcv=function(l,n){return(l>1?l-1:0)+(l-n)*4}; Omi=function(l,n){return l==0?0:9*Math.max(1<<32-Math.clz32(l+l/2-1),4)<=n?l==0?0:l<4?100+(l-1)*16:l<6?148+(l-4)*16:l<12?244+(l-6)*16:l<22?436+(l-12)*19:l<44?820+(l-22)*17:52+32*l:40+4*n}; ndf=function(l){return 40+4*l}; Fck=function(l){return l>=100?l>=1E4?Math.ceil(Math.log10(1+l)):l<1E3?3:4:l<10?1:2}; xPi=function(l,n,O){var L=Vx(l),X=L.length,F=n&256?L[X-1]:void 0;X+=F?-1:0;for(n=n&512?1:0;n<X;n++)L[n]=O(L[n]);if(F){n=L[n]={};for(var x in F)n[x]=O(F[x])}(l=fm(l))&&(L[pm]=Vx(l));return L}; hNv=function(l,n,O,L,X){if(l!=null){if(Array.isArray(l)){var F=l[GR]|0;return l.length===0&&F&1?void 0:X&&F&2?l:QO(l,n,O,L!==void 0,X)}return n(l,L)}}; QO=function(l,n,O,L,X){var F=L||O?l[GR]|0:0,x=L?!!(F&32):void 0;L=Vx(l);for(var Z=0,J=L.length,w=0;w<J;w++){var H=L[w];if(w===J-1&&ia(H)){var A=void 0;var b=n,r=O,U=x,W=X,N=void 0;for(A in H){var q=hNv(H[A],b,r,U,W);if(q!=null){var y=void 0;((y=N)!=null?y:N={})[A]=q}}A=N}else A=hNv(L[w],n,O,x,X);L[w]=A;A!=null&&(Z=w+1)}Z<J&&(L.length=Z);O&&((l=fm(l))&&(L[pm]=Vx(l)),O(F,L));return L}; Jm9=function(l){switch(typeof l){case "number":return Number.isFinite(l)?l:""+l;case "bigint":return N1(l)?Number(l):""+l;case "boolean":return l?1:0;case "object":if(NP(l))return NP(l)&&ee(aL0),bO8(l);if(l.Og===yO)return Zma(l);if(l instanceof DI){var n=l.S;return n==null?"":typeof n==="string"?n:l.S=bO8(n)}return}return l}; Y6=function(l,n){n&&(eo=n===M1||n!==vqv&&n!==gdv&&n!==ode?M1:n);try{return Zma(l)}finally{eo=void 0}}; Zma=function(l){var n=l.RO;l=QO(n,Jm9,void 0,void 0,!1);var O=n[GR]|0;if((n=l.length)&&!(O&512)){var L=l[n-1],X=!1;ia(L)?(n--,X=!0):L=void 0;var F,x=(F=eo)!=null?F:M1;F=O&512?0:-1;O=n-F;x=x(O,F,l,L);L&&(l[n]=void 0);if(O<x&&L){O=!0;for(var Z in L){var J=+Z;J<=x?(X=J+F,l[X]=L[Z],n=Math.max(X+1,n),X=!1,delete L[Z]):O=!1}O&&(L=void 0)}for(O=n-1;n>0;O=n-1)if(Z=l[O],Z==null)n--,X=!0;else if(O-=F,O>=x)X=void 0,((X=L)!=null?X:L={})[O]=Z,n--,X=!0;else break;X&&(l.length=n);L&&l.push(L)}return l}; Hm0=function(l){switch(typeof l){case "boolean":return G3||(G3=[0,void 0,!0]);case "number":return l>0?void 0:l===0?wd5||(wd5=[0,void 0]):[-l,void 0];case "string":return[0,l];case "object":return l}}; Ia=function(l,n,O){l=mW(l,n[0],n[1],O?1:2);n!==G3&&O&&mc(l,8192);return l}; mW=function(l,n,O,L){if(l==null){var X=96;O?(l=[O],X|=512):l=[];n&&(X=X&-16760833|(n&1023)<<14)}else{if(!Array.isArray(l))throw Error("narr");X=l[GR]|0;8192&X||!(64&X)||2&X||Amv();if(X&1024)throw Error("farr");if(X&64)return l;L===1||L===2||(X|=64);if(O&&(X|=512,O!==l[0]))throw Error("mid");a:{O=l;var F=O.length;if(F){var x=F-1;L=O[x];if(ia(L)){X|=256;n=X&512?0:-1;x-=n;if(x>=1024)throw Error("pvtlmt");for(var Z in L)F=+Z,F<x&&(O[F+n]=L[Z],delete L[Z]);X=X&-16760833|(x&1023)<<14;break a}}if(n){Z=Math.max(n, F-(X&512?0:-1));if(Z>1024)throw Error("spvt");X=X&-16760833|(Z&1023)<<14}}}IA(l,X);return l}; Amv=function(){ee(bma)}; rmf=function(l,n,O){O=O===void 0?dQ:O;if(l!=null){if(TD5&&l instanceof Uint8Array)return n?l:new Uint8Array(l);if(Array.isArray(l)){var L=l[GR]|0;if(L&2)return l;n&&(n=L===0||!!(L&32)&&!(L&64||!(L&16)));return n?(IA(l,L|34),L&4&&Object.freeze(l),l):QO(l,rmf,L&4?dQ:O,!0,!0)}l.Og===yO&&(O=l.RO,L=O[GR]|0,l=L&2?l:new l.constructor(d8(O,L,!0)));return l}}; d8=function(l,n,O){var L=O||n&2?dQ:y0a,X=!!(n&32);l=xPi(l,n,function(F){return rmf(F,X,L)}); mc(l,32|(O?2:0));return l}; $6=function(l){var n=l.RO,O=n[GR]|0;return O&2?new l.constructor(d8(n,O,!1)):l}; Bw=function(l,n){l=l.RO;return VO(l,l[GR]|0,n)}; VO=function(l,n,O){if(O===-1)return null;var L=O+(n&512?0:-1),X=l.length-1;if(L>=X&&n&256)return l[X][O];if(L<=X)return l[L]}; i3=function(l,n,O){var L=l.RO,X=L[GR]|0;zR(X);cw(L,X,n,O);return l}; cw=function(l,n,O,L){var X=n&512?0:-1,F=O+X,x=l.length-1;if(F>=x&&n&256)return l[x][O]=L,n;if(F<=x)return l[F]=L,n;L!==void 0&&(x=n>>14&1023||536870912,O>=x?L!=null&&(F={},l[x+X]=(F[O]=L,F),n|=256,IA(l,n)):l[F]=L);return n}; Kj=function(l,n,O,L,X){var F=l.RO;l=F[GR]|0;var x=2&l?1:L;X=!!X;L=z3(F,l,n);var Z=L[GR]|0;if(!(4&Z)){4&Z&&(L=Vx(L),Z=So(Z,l),l=cw(F,l,n,L));for(var J=0,w=0;J<L.length;J++){var H=O(L[J]);H!=null&&(L[w++]=H)}w<J&&(L.length=w);Z=pj(Z,l);O=(Z|20)&-2049;Z=O&=-4097;IA(L,Z);2&Z&&Object.freeze(L)}x===1||x===4&&32&Z?sp(Z)||(X=Z,Z|=2,Z!==X&&IA(L,Z),Object.freeze(L)):(x===2&&sp(Z)&&(L=Vx(L),Z=So(Z,l),Z=fj(Z,l,X),IA(L,Z),l=cw(F,l,n,L)),sp(Z)||(n=Z,Z=fj(Z,l,X),Z!==n&&IA(L,Z)));return L}; z3=function(l,n,O){l=VO(l,n,O);return Array.isArray(l)?l:aa}; pj=function(l,n){l===0&&(l=So(l,n));return l|1}; sp=function(l){return!!(2&l)&&!!(4&l)||!!(1024&l)}; UPe=function(l){return M6q(l,!0)}; Ra=function(l,n){l=l.RO;var O=l[GR]|0,L=VO(l,O,n),X=UPe(L);X!=null&&X!==L&&cw(l,O,n,X);return X==null?kd():X}; uz9=function(l,n,O){var L=l.RO,X=L[GR]|0;zR(X);if(n==null)return cw(L,X,3),l;if(!Array.isArray(n))throw Qx();var F=n[GR]|0,x=F,Z=sp(F),J=Z||Object.isFrozen(n);Z||(F=0);J||(n=Vx(n),x=0,F=So(F,X),F=fj(F,X,!0),J=!1);F|=21;Z=4&F?2048&F?2048:4096&F?4096:0:void 0;Z=Z!=null?Z:0;for(var w=0;w<n.length;w++){var H=n[w],A=O(H,Z);Object.is(H,A)||(J&&(n=Vx(n),x=0,F=So(F,X),F=fj(F,X,!0),J=!1),n[w]=A)}F!==x&&(J&&(n=Vx(n),F=So(F,X),F=fj(F,X,!0)),IA(n,F));cw(L,X,3,n);return l}; Cj=function(l,n,O,L){var X=l.RO,F=X[GR]|0;zR(F);cw(X,F,n,(L==="0"?Number(O)===0:O===L)?void 0:O);return l}; th=function(l,n,O,L){zR(n);var X=z3(l,n,O),F=X!==aa;if(64&n||!(8192&n)||!F){var x=F?X[GR]|0:0,Z=x;if(!F||2&Z||sp(Z)||4&Z&&!(32&Z))X=Vx(X),Z=So(Z,n),n=cw(l,n,O,X);Z=pj(Z,n)&-13;Z=fj(L?Z&-17:Z|16,n,!0);Z!==x&&IA(X,Z)}return X}; OK=function(l,n,O,L){var X=l.RO,F=X[GR]|0;zR(F);if(L==null){var x=vw(X);if(lV(x,X,F,O)===n)x.set(O,0);else return l}else F=nU(X,F,O,n);cw(X,F,n,L);return l}; gb=function(l,n,O,L){var X=l[GR]|0;X=nU(l,X,O,n);cw(l,X,n,L)}; LU=function(l,n){l=l.RO;return lV(vw(l),l,l[GR]|0,n)}; vw=function(l){if(je){var n;return(n=l[Xe])!=null?n:l[Xe]=new Map}if(Xe in l)return l[Xe];n=new Map;Object.defineProperty(l,Xe,{value:n});return n}; nU=function(l,n,O,L){O.includes(L);var X=vw(l),F=lV(X,l,n,O);F!==L&&(F&&(n=cw(l,n,F)),X.set(O,L));return n}; lV=function(l,n,O,L){var X=l.get(L);if(X!=null)return X;for(var F=X=0;F<L.length;F++){var x=L[F];VO(n,O,x)!=null&&(X!==0&&(O=cw(n,O,X)),X=x)}l.set(L,X);return X}; oL=function(l,n,O){var L=l[GR]|0,X=VO(l,L,O),F;if(X!=null&&X.Og===yO)return n=$6(X),n!==X&&cw(l,L,O,n),n.RO;if(Array.isArray(X)){var x=X[GR]|0;x&2?F=Ia(d8(X,x,!1),n,!0):x&64?F=X:F=Ia(F,n,!0)}else F=Ia(void 0,n,!0);F!==X&&cw(l,L,O,F);return F}; Fe=function(l,n,O){l=l.RO;var L=l[GR]|0,X=VO(l,L,O);n=t68(X,n,L);n!==X&&n!=null&&cw(l,L,O,n);return n}; xM=function(l,n,O){n=Fe(l,n,O);if(n==null)return n;l=l.RO;var L=l[GR]|0;if(!(L&2)){var X=$6(n);X!==n&&(n=X,cw(l,L,O,n))}return n}; Pa9=function(l,n,O,L,X,F,x){l=l.RO;var Z=!!(2&n),J=Z?1:X;F=!!F;x&&(x=!Z);X=z3(l,n,L);var w=X[GR]|0;Z=!!(4&w);if(!Z){w=pj(w,n);var H=X,A=n,b=!!(2&w);b&&(A|=2);for(var r=!b,U=!0,W=0,N=0;W<H.length;W++){var q=t68(H[W],O,A);if(q instanceof O){if(!b){var y=!!((q.RO[GR]|0)&2);r&&(r=!y);U&&(U=y)}H[N++]=q}}N<W&&(H.length=N);w|=4;w=U?w|16:w&-17;w=r?w|8:w&-9;IA(H,w);b&&Object.freeze(H)}if(x&&!(8&w||!X.length&&(J===1||J===4&&32&w))){sp(w)&&(X=Vx(X),w=So(w,n),n=cw(l,n,L,X));O=X;x=w;for(H=0;H<O.length;H++)w=O[H], A=$6(w),w!==A&&(O[H]=A);x|=8;x=O.length?x&-17:x|16;IA(O,x);w=x}J===1||J===4&&32&w?sp(w)||(n=w,w|=!X.length||16&w&&(!Z||32&w)?2:1024,w!==n&&IA(X,w),Object.freeze(X)):(J===2&&sp(w)&&(X=Vx(X),w=So(w,n),w=fj(w,n,F),IA(X,w),n=cw(l,n,L,X)),sp(w)||(L=w,w=fj(w,n,F),w!==L&&IA(X,w)));return X}; ok=function(l,n,O){var L=l.RO[GR]|0;return Pa9(l,L,n,O,void 0===TQf?2:4,!1,!(2&L))}; hX=function(l,n,O,L){L!=null?k6(L,n):L=void 0;return i3(l,O,L)}; JX=function(l,n,O,L){var X=l.RO,F=X[GR]|0;zR(F);if(L==null)return cw(X,F,O),l;if(!Array.isArray(L))throw Qx();for(var x=L[GR]|0,Z=x,J=sp(x),w=J||Object.isFrozen(L),H=!0,A=!0,b=0;b<L.length;b++){var r=L[b];k6(r,n);J||(r=!!((r.RO[GR]|0)&2),H&&(H=!r),A&&(A=r))}J||(x=H?13:5,x=A?x|16:x&-17);w&&x===Z||(L=Vx(L),Z=0,x=So(x,F),x=fj(x,F,!0));x!==Z&&IA(L,x);cw(X,F,O,L);return l}; So=function(l,n){l=(2&n?l|2:l&-3)|32;return l&=-1025}; fj=function(l,n,O){32&n&&O||(l&=-33);return l}; wb=function(l,n,O,L){var X=l.RO[GR]|0;zR(X);l=Pa9(l,X,O,n,2,!0);L=L!=null?k6(L,O):new O;l.push(L);l[GR]=(L.RO[GR]|0)&2?l[GR]&-9:l[GR]&-17}; Wc9=function(l){l=Bw(l,1);var n=n===void 0?!1:n;var O=typeof l;n=l==null?l:O==="bigint"?String(Up(64,l)):Jh(l)?O==="string"?r8(l):n?u3(l):Ww(l):void 0;return n}; HO=function(l,n){return q1(Bw(l,n))}; xq=function(l,n,O){O=O===void 0?0:O;var L;return(L=Hw(Bw(l,n)))!=null?L:O}; AX=function(l,n){var O=O===void 0?0:O;var L;return(L=b3(Bw(l,n)))!=null?L:O}; bV=function(l,n){var O;return(O=HO(l,n))!=null?O:""}; rb=function(l,n){var O=O===void 0?0:O;l=Bw(l,n);l=l==null?l:ZZ(l)?l|0:void 0;return l!=null?l:O}; UK=function(l,n,O){return i3(l,n,Ep(O))}; uV=function(l,n,O){return i3(l,n,DZ(O))}; PO=function(l,n,O){return Cj(l,n,DZ(O),"")}; TZ=function(l,n,O){if(O!=null){if(!ZZ(O))throw Qx("enum");O|=0}return i3(l,n,O)}; Edg=function(l,n){return Error("Invalid wire type: "+l+" (at position "+n+")")}; WO=function(){return Error("Failed to read varint, encoding is invalid.")}; NQg=function(l,n){return Error("Tried to read past the end of the data "+n+" > "+l)}; Ng=function(l){if(typeof l==="string")return{buffer:P19(l),n4:!1};if(Array.isArray(l))return{buffer:new Uint8Array(l),n4:!1};if(l.constructor===Uint8Array)return{buffer:l,n4:!1};if(l.constructor===ArrayBuffer)return{buffer:new Uint8Array(l),n4:!1};if(l.constructor===DI)return{buffer:yx(l)||new Uint8Array(0),n4:!0};if(l instanceof Uint8Array)return{buffer:new Uint8Array(l.buffer,l.byteOffset,l.byteLength),n4:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; DP5=function(l,n){this.W=null;this.B=!1;this.S=this.N=this.L=0;this.init(l,void 0,void 0,n)}; qg=function(l){var n=0,O=0,L=0,X=l.W,F=l.S;do{var x=X[F++];n|=(x&127)<<L;L+=7}while(L<32&&x&128);L>32&&(O|=(x&127)>>4);for(L=3;L<32&&x&128;L+=7)x=X[F++],O|=(x&127)<<L;DN(l,F);if(x<128)return Gc8(n>>>0,O>>>0);throw WO();}; DN=function(l,n){l.S=n;if(n>l.N)throw NQg(l.N,n);}; kM=function(l){var n=l.W,O=l.S,L=n[O++],X=L&127;if(L&128&&(L=n[O++],X|=(L&127)<<7,L&128&&(L=n[O++],X|=(L&127)<<14,L&128&&(L=n[O++],X|=(L&127)<<21,L&128&&(L=n[O++],X|=L<<28,L&128&&n[O++]&128&&n[O++]&128&&n[O++]&128&&n[O++]&128&&n[O++]&128)))))throw WO();DN(l,O);return X}; yK=function(l){var n=l.W,O=l.S,L=n[O+0],X=n[O+1],F=n[O+2];n=n[O+3];DN(l,l.S+4);return(L<<0|X<<8|F<<16|n<<24)>>>0}; Mg=function(l){var n=yK(l);l=yK(l);return XL(n,l)}; QK=function(l){var n=yK(l),O=yK(l);l=(O>>31)*2+1;var L=O>>>20&2047;n=4294967296*(O&1048575)+n;return L==2047?n?NaN:l*Infinity:L==0?l*4.9E-324*n:l*Math.pow(2,L-1075)*(n+4503599627370496)}; eI=function(l){for(var n=0,O=l.S,L=O+10,X=l.W;O<L;){var F=X[O++];n|=F;if((F&128)===0)return DN(l,O),!!(n&127)}throw WO();}; qtk=function(l,n){if(n<0)throw Error("Tried to read a negative byte length: "+n);var O=l.S,L=O+n;if(L>l.N)throw NQg(n,l.N-O);l.S=L;return O}; ym7=function(l,n){if(n==0)return kd();var O=qtk(l,n);l.Q0&&l.B?O=l.W.subarray(O,O+n):(l=l.W,n=O+n,O=O===n?new Uint8Array(0):kR0?l.slice(O,n):new Uint8Array(l.subarray(O,n)));return O.length==0?kd():new DI(O,qP)}; jI=function(l,n){if(YM.length){var O=YM.pop();O.init(l,void 0,void 0,n);l=O}else l=new DP5(l,n);this.S=l;this.N=this.S.S;this.W=this.L=-1;Meq(this,n)}; Meq=function(l,n){n=n===void 0?{}:n;l.Zi=n.Zi===void 0?!1:n.Zi}; QAq=function(l){var n=l.S;if(n.S==n.N)return!1;l.N=l.S.S;var O=kM(l.S)>>>0;n=O>>>3;O&=7;if(!(O>=0&&O<=5))throw Edg(O,l.N);if(n<1)throw Error("Invalid field number: "+n+" (at position "+l.N+")");l.L=n;l.W=O;return!0}; GZ=function(l){switch(l.W){case 0:l.W!=0?GZ(l):eI(l.S);break;case 1:l=l.S;DN(l,l.S+8);break;case 2:if(l.W!=2)GZ(l);else{var n=kM(l.S)>>>0;l=l.S;DN(l,l.S+n)}break;case 5:l=l.S;DN(l,l.S+4);break;case 3:n=l.L;do{if(!QAq(l))throw Error("Unmatched start-group tag: stream EOF");if(l.W==4){if(l.L!=n)throw Error("Unmatched end-group tag");break}GZ(l)}while(1);break;default:throw Edg(l.W,l.N);}}; mP=function(l,n,O){var L=l.S.N,X=kM(l.S)>>>0,F=l.S.S+X,x=F-L;x<=0&&(l.S.N=F,O(n,l,void 0,void 0,void 0),x=F-l.S.S);if(x)throw Error("Message parsing ended unexpectedly. Expected to read "+(X+" bytes, instead read "+(X-x)+" bytes, either the data ended unexpectedly or the message misreported its own length"));l.S.S=F;l.S.N=L}; $M=function(l){var n=kM(l.S)>>>0;l=l.S;var O=qtk(l,n);l=l.W;if(eNv){var L=l,X;(X=IL)||(X=IL=new TextDecoder("utf-8",{fatal:!0}));n=O+n;L=O===0&&n===L.length?L:L.subarray(O,n);try{var F=X.decode(L)}catch(w){if(db===void 0){try{X.decode(new Uint8Array([128]))}catch(H){}try{X.decode(new Uint8Array([97])),db=!0}catch(H){db=!1}}!db&&(IL=void 0);throw w;}}else{F=O;n=F+n;O=[];for(var x=null,Z,J;F<n;)Z=l[F++],Z<128?O.push(Z):Z<224?F>=n?PR():(J=l[F++],Z<194||(J&192)!==128?(F--,PR()):O.push((Z&31)<<6|J&63)): Z<240?F>=n-1?PR():(J=l[F++],(J&192)!==128||Z===224&&J<160||Z===237&&J>=160||((X=l[F++])&192)!==128?(F--,PR()):O.push((Z&15)<<12|(J&63)<<6|X&63)):Z<=244?F>=n-2?PR():(J=l[F++],(J&192)!==128||(Z<<28)+(J-144)>>30!==0||((X=l[F++])&192)!==128||((L=l[F++])&192)!==128?(F--,PR()):(Z=(Z&7)<<18|(J&63)<<12|(X&63)<<6|L&63,Z-=65536,O.push((Z>>10&1023)+55296,(Z&1023)+56320))):PR(),O.length>=8192&&(x=j8i(x,O),O.length=0);F=j8i(x,O)}return F}; Yt9=function(l){var n=kM(l.S)>>>0;return ym7(l.S,n)}; VK=function(l,n,O){this.RO=mW(l,n,O)}; jA0=function(l,n){if(n==null||n=="")return new l;n=JSON.parse(n);if(!Array.isArray(n))throw Error("dnarr");mc(n,32);return new l(n)}; BO=function(l,n){this.W=l>>>0;this.S=n>>>0}; mPi=function(l){if(!l)return GR8||(GR8=new BO(0,0));if(!/^\d+$/.test(l))return null;oa(l);return new BO(tm,l3)}; cO=function(l,n){this.W=l>>>0;this.S=n>>>0}; dP9=function(l){if(!l)return IIk||(IIk=new cO(0,0));if(!/^-?\d+$/.test(l))return null;oa(l);return new cO(tm,l3)}; iV=function(){this.S=[]}; zZ=function(l,n,O){for(;O>0||n>127;)l.S.push(n&127|128),n=(n>>>7|O<<25)>>>0,O>>>=7;l.S.push(n)}; SI=function(l,n){for(;n>127;)l.S.push(n&127|128),n>>>=7;l.S.push(n)}; $P9=function(l,n){if(n>=0)SI(l,n);else{for(var O=0;O<9;O++)l.S.push(n&127|128),n>>=7;l.S.push(1)}}; pU=function(l,n){l.S.push(n>>>0&255);l.S.push(n>>>8&255);l.S.push(n>>>16&255);l.S.push(n>>>24&255)}; Vei=function(){this.N=[];this.W=0;this.S=new iV}; sK=function(l,n){n.length!==0&&(l.N.push(n),l.W+=n.length)}; BQi=function(l,n){fU(l,n,2);n=l.S.end();sK(l,n);n.push(l.W);return n}; cmk=function(l,n){var O=n.pop();for(O=l.W+l.S.length()-O;O>127;)n.push(O&127|128),O>>>=7,l.W++;n.push(O);l.W++}; fU=function(l,n,O){SI(l.S,n*8+O)}; im9=function(l,n,O){if(O!=null){switch(typeof O){case "string":mPi(O)}fU(l,n,1);switch(typeof O){case "number":l=l.S;nj(O);pU(l,tm);pU(l,l3);break;case "bigint":O=BigInt.asUintN(64,O);O=new BO(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));l=l.S;n=O.S;pU(l,O.W);pU(l,n);break;default:O=mPi(O),l=l.S,n=O.S,pU(l,O.W),pU(l,n)}}}; KU=function(l,n,O){fU(l,n,2);SI(l.S,O.length);sK(l,l.S.end());sK(l,O)}; aL=function(){function l(){throw Error();} Object.setPrototypeOf(l,l.prototype);return l}; CU=function(l,n,O){this.GA=l;this.K3=n;l=P9q(RL);this.S=!!l&&O===l||!1}; tX=function(l,n){var O=O===void 0?RL:O;return new CU(l,n,O)}; Stf=function(l,n,O,L,X){n=zNk(n,L);n!=null&&(O=BQi(l,O),X(n,l),cmk(l,O))}; nC=function(l,n,O,L){var X=L[l];if(X)return X;X={};X.QUm=L;X.kF=Hm0(L[0]);var F=L[1],x=1;F&&F.constructor===Object&&(X.extensions=F,F=L[++x],typeof F==="function"&&(X.K0=!0,vO!=null||(vO=F),l_!=null||(l_=L[x+1]),F=L[x+=2]));for(var Z={};F&&Array.isArray(F)&&F.length&&typeof F[0]==="number"&&F[0]>0;){for(var J=0;J<F.length;J++)Z[F[J]]=F;F=L[++x]}for(J=1;F!==void 0;){typeof F==="number"&&(J+=F,F=L[++x]);var w=void 0;if(F instanceof CU)var H=F;else H=pdi,x--;F=void 0;if((F=H)==null?0:F.S){F=L[++x];w= L;var A=x;typeof F==="function"&&(F=F(),w[A]=F);w=F}F=L[++x];A=J+1;typeof F==="number"&&F<0&&(A-=F,F=L[++x]);for(;J<A;J++){var b=Z[J];w?O(X,J,H,w,b):n(X,J,H,b)}}return L[l]=X}; fIv=function(l){return Array.isArray(l)?l[0]instanceof CU?l:[sA5,l]:[l,void 0]}; zNk=function(l,n){if(l instanceof VK)return l.RO;if(Array.isArray(l))return Ia(l,n,!1)}; OM=function(l,n,O,L){var X=O.GA;l[n]=L?function(F,x,Z){return X(F,x,Z,L)}:X}; LC=function(l,n,O,L,X){var F=O.GA,x,Z;l[n]=function(J,w,H){return F(J,w,H,Z||(Z=nC(gY,OM,LC,L).kF),x||(x=X_(L)),X)}}; X_=function(l){var n=l[Kca];if(n!=null)return n;var O=nC(gY,OM,LC,l);n=O.K0?function(L,X){return vO(L,X,O)}:function(L,X){for(var F=L[GR]|0;QAq(X)&&X.W!=4;){var x=X.L,Z=O[x]; if(Z==null){var J=O.extensions;J&&(J=J[x])&&(J=aIe(J),J!=null&&(Z=O[x]=J))}Z!=null&&Z(X,L,x)||(Z=X,x=Z.N,GZ(Z),Z.Zi?Z=void 0:(J=Z.S.S-x,Z.S.S=x,Z=ym7(Z.S,J)),x=L,Z&&((J=x[pm])?J.push(Z):x[pm]=[Z]))}F&8192&&mc(L,34);return!0}; return l[Kca]=n}; aIe=function(l){l=fIv(l);var n=l[0].GA;if(l=l[1]){var O=X_(l),L=nC(gY,OM,LC,l).kF;return function(X,F,x){return n(X,F,x,L,O)}}return n}; oW=function(l,n,O){l[n]=O.K3}; xu=function(l,n,O,L){var X,F,x=O.K3;l[n]=function(Z,J,w){return x(Z,J,w,F||(F=nC(F_,oW,xu,L).kF),X||(X=RNk(L)))}}; RNk=function(l){var n=l[Caq];if(!n){var O=nC(F_,oW,xu,l);n=function(L,X){return tee(L,X,O)}; l[Caq]=n}return n}; tee=function(l,n,O){for(var L=l[GR]|0,X=L&512?0:-1,F=l.length,x=F+(L&256?-1:0),Z=L&512?1:0;Z<x;Z++){var J=l[Z];if(J!=null){var w=Z-X,H=vdk(O,w);H&&H(n,J,w)}}if(L&256){L=l[F-1];for(var A in L)X=+A,Number.isNaN(X)||(F=L[X],F!=null&&(x=vdk(O,X))&&x(n,F,X))}if(l=fm(l))for(sK(n,n.S.end()),O=0;O<l.length;O++)sK(n,yx(l[O])||new Uint8Array(0))}; vdk=function(l,n){var O=l[n];if(O)return O;if(O=l.extensions)if(O=O[n]){O=fIv(O);var L=O[0].K3;if(O=O[1]){var X=RNk(O),F=nC(F_,oW,xu,O).kF;O=l.K0?l_(F,X):function(x,Z,J){return L(x,Z,J,F,X)}}else O=L; return l[n]=O}}; hp=function(l,n,O){if(Array.isArray(n)){var L=n[GR]|0;if(L&4)return n;for(var X=0,F=0;X<n.length;X++){var x=l(n[X]);x!=null&&(n[F++]=x)}F<X&&(n.length=F);O&&(IA(n,(L|5)&-6145),L&2&&Object.freeze(n));return n}}; Ze=function(l,n,O){return new CU(l,n,O)}; Jp=function(l,n,O){return new CU(l,n,O)}; wY=function(l,n,O){cw(l,l[GR]|0,n,O)}; H3=function(l,n,O){n=n==null||typeof n==="number"?n:n==="NaN"||n==="Infinity"||n==="-Infinity"?Number(n):void 0;n!=null&&(fU(l,O,1),l=l.S,O=lZg||(lZg=new DataView(new ArrayBuffer(8))),O.setFloat64(0,+n,!0),tm=O.getUint32(0,!0),l3=O.getUint32(4,!0),pU(l,tm),pU(l,l3))}; Ap=function(l,n,O){n=ski(n);if(n!=null){switch(typeof n){case "string":dP9(n)}if(n!=null)switch(fU(l,O,0),typeof n){case "number":l=l.S;g8(n);zZ(l,tm,l3);break;case "bigint":O=BigInt.asUintN(64,n);O=new cO(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));zZ(l.S,O.W,O.S);break;default:O=dP9(n),zZ(l.S,O.W,O.S)}}}; b_=function(l,n,O){n=Hw(n);n!=null&&n!=null&&(fU(l,O,0),$P9(l.S,n))}; n6a=function(l,n,O){n=n==null||typeof n==="boolean"?n:typeof n==="number"?!!n:void 0;n!=null&&(fU(l,O,0),l.S.S.push(n?1:0))}; Ojg=function(l,n,O){n=q1(n);n!=null&&KU(l,O,d79(n))}; g6q=function(l,n,O,L,X){n=zNk(n,L);n!=null&&(O=BQi(l,O),X(n,l),cmk(l,O))}; LWi=function(l){return function(){var n=new Vei;tee(this.RO,n,nC(F_,oW,xu,l));sK(n,n.S.end());for(var O=new Uint8Array(n.W),L=n.N,X=L.length,F=0,x=0;x<X;x++){var Z=L[x];O.set(Z,F);F+=Z.length}n.N=[O];return O}}; rY=function(l){return function(n){return jA0(l,n)}}; Xwq=function(l){this.RO=mW(l)}; o6i=function(l,n){return uz9(l,n,V69)}; UM=function(l){this.RO=mW(l)}; u_=function(l){this.RO=mW(l)}; P3=function(l){this.RO=mW(l)}; Tl=function(l){this.RO=mW(l)}; FWe=function(l){this.RO=mW(l)}; g.Zja=function(l){var n=new Tl;n=uV(n,1,l.W);var O=x1q(l);n=uz9(n,O,C1e);O=[];for(var L=[],X=g.P(l.S.keys()),F=X.next();!F.done;F=X.next())L.push(F.value.split(","));for(X=0;X<L.length;X++){F=L[X];for(var x=l.L,Z=l.Ex(F)||[],J=[],w=0;w<Z.length;w++){var H=Z[w],A=H&&H.S;H=new u_;switch(x){case 3:A=Number(A);Number.isFinite(A)&&OK(H,1,W3,Ep(A));break;case 2:OK(H,2,W3,x6(Number(A)))}J.push(H)}x=J;for(Z=0;Z<x.length;Z++){J=x[Z];w=new P3;J=hX(w,u_,2,J);w=[];H=hQ9(l);for(A=0;A<H.length;A++){var b=H[A], r=F[A],U=new UM;switch(b){case 3:OK(U,1,EM,DZ(String(r)));break;case 2:b=Number(r);Number.isFinite(b)&&OK(U,2,EM,w8(b));break;case 1:OK(U,3,EM,hh(r==="true"))}w.push(U)}JX(J,UM,1,w);O.push(J)}}JX(n,P3,4,O);return n}; Jh9=function(l){if(!l)return"";if(/^about:(?:blank|srcdoc)$/.test(l))return window.origin||"";l.indexOf("blob:")===0&&(l=l.substring(5));l=l.split("#")[0].split("?")[0];l=l.toLowerCase();l.indexOf("//")==0&&(l=window.location.protocol+l);/^[\w\-]*:\/\//.test(l)||(l=window.location.href);var n=l.substring(l.indexOf("://")+3),O=n.indexOf("/");O!=-1&&(n=n.substring(0,O));O=l.substring(0,l.indexOf("://"));if(!O)throw Error("URI is missing protocol: "+l);if(O!=="http"&&O!=="https"&&O!=="chrome-extension"&& O!=="moz-extension"&&O!=="file"&&O!=="android-app"&&O!=="chrome-search"&&O!=="chrome-untrusted"&&O!=="chrome"&&O!=="app"&&O!=="devtools")throw Error("Invalid URI scheme in origin: "+O);l="";var L=n.indexOf(":");if(L!=-1){var X=n.substring(L+1);n=n.substring(0,L);if(O==="http"&&X!=="80"||O==="https"&&X!=="443")l=":"+X}return O+"://"+n+l}; ww0=function(){function l(){X[0]=1732584193;X[1]=4023233417;X[2]=2562383102;X[3]=271733878;X[4]=3285377520;H=w=0} function n(A){for(var b=x,r=0;r<64;r+=4)b[r/4]=A[r]<<24|A[r+1]<<16|A[r+2]<<8|A[r+3];for(r=16;r<80;r++)A=b[r-3]^b[r-8]^b[r-14]^b[r-16],b[r]=(A<<1|A>>>31)&4294967295;A=X[0];var U=X[1],W=X[2],N=X[3],q=X[4];for(r=0;r<80;r++){if(r<40)if(r<20){var y=N^U&(W^N);var e=1518500249}else y=U^W^N,e=1859775393;else r<60?(y=U&W|N&(U|W),e=2400959708):(y=U^W^N,e=3395469782);y=((A<<5|A>>>27)&4294967295)+y+q+e+b[r]&4294967295;q=N;N=W;W=(U<<30|U>>>2)&4294967295;U=A;A=y}X[0]=X[0]+A&4294967295;X[1]=X[1]+U&4294967295;X[2]= X[2]+W&4294967295;X[3]=X[3]+N&4294967295;X[4]=X[4]+q&4294967295} function O(A,b){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var r=[],U=0,W=A.length;U<W;++U)r.push(A.charCodeAt(U));A=r}b||(b=A.length);r=0;if(w==0)for(;r+64<b;)n(A.slice(r,r+64)),r+=64,H+=64;for(;r<b;)if(F[w++]=A[r++],H++,w==64)for(w=0,n(F);r+64<b;)n(A.slice(r,r+64)),r+=64,H+=64} function L(){var A=[],b=H*8;w<56?O(Z,56-w):O(Z,64-(w-56));for(var r=63;r>=56;r--)F[r]=b&255,b>>>=8;n(F);for(r=b=0;r<5;r++)for(var U=24;U>=0;U-=8)A[b++]=X[r]>>U&255;return A} for(var X=[],F=[],x=[],Z=[128],J=1;J<64;++J)Z[J]=0;var w,H;l();return{reset:l,update:O,digest:L,mY:function(){for(var A=L(),b="",r=0;r<A.length;r++)b+="0123456789ABCDEF".charAt(Math.floor(A[r]/16))+"0123456789ABCDEF".charAt(A[r]%16);return b}}}; Ah5=function(l,n,O){var L=String(g.Be.location.href);return L&&l&&n?[n,Hjg(Jh9(L),l,O||null)].join(" "):null}; Hjg=function(l,n,O){var L=[],X=[];if((Array.isArray(O)?2:1)==1)return X=[n,l],g.ba(L,function(Z){X.push(Z)}),bj9(X.join(" ")); var F=[],x=[];g.ba(O,function(Z){x.push(Z.key);F.push(Z.value)}); O=Math.floor((new Date).getTime()/1E3);X=F.length==0?[O,n,l]:[F.join(":"),O,n,l];g.ba(L,function(Z){X.push(Z)}); l=bj9(X.join(" "));l=[O,l];x.length==0||l.push(x.join(""));return l.join("_")}; bj9=function(l){var n=ww0();n.update(l);return n.mY().toLowerCase()}; U17=function(){var l=null;if(!rhf)return l;try{var n=function(O){return O}; l=rhf.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch(O){}return l}; De=function(){NL===void 0&&(NL=U17());return NL}; qL=function(l){this.S=l}; ku=function(l){var n=De();return new qL(n?n.createScriptURL(l):l)}; y6=function(l){if(l instanceof qL)return l.S;throw Error("");}; ML=function(l){this.S=l}; g.Q6=function(l){if(l instanceof ML)return l.S;throw Error("");}; e8=function(l){this.MP=l}; Yu=function(l){return new e8(function(n){return n.substr(0,l.length+1).toLowerCase()===l+":"})}; g.j8=function(l,n){n=n===void 0?uLi:n;a:if(n=n===void 0?uLi:n,!(l instanceof ML)){for(var O=0;O<n.length;++O){var L=n[O];if(L instanceof e8&&L.MP(l)){l=new ML(l);break a}}l=void 0}return l||P35}; WW9=function(l){if(T8a.test(l))return l}; Gl=function(l){return l instanceof ML?g.Q6(l):WW9(l)}; g.mv=function(l,n){n=Gl(n);n!==void 0&&(l.href=n)}; IW=function(l){this.S=l}; dY=function(l){var n=De();return new IW(n?n.createHTML(l):l)}; $u=function(l){if(l instanceof IW)return l.S;throw Error("");}; g.V6=function(l,n,O,L){n=Gl(n);return n!==void 0?l.open(n,O,L):null}; B3=function(l){l=l===void 0?document:l;var n,O;l=(O=(n=l).querySelector)==null?void 0:O.call(n,"script[nonce]");return l==null?"":l.nonce||l.getAttribute("nonce")||""}; c3=function(l){this.S=l}; E6g=function(l){var n=De();return new c3(n?n.createScript(l):l)}; i_=function(l){if(l instanceof c3)return l.S;throw Error("");}; zl=function(l){var n=B3(l.ownerDocument);n&&l.setAttribute("nonce",n)}; g.S8=function(l,n){l.src=y6(n);zl(l)}; pC=function(){this.S=N8e[0].toLowerCase()}; D1v=function(l){var n="true".toString(),O=[new pC];if(O.length===0)throw Error("");if(O.map(function(L){if(L instanceof pC)L=L.S;else throw Error("");return L}).every(function(L){return"data-loaded".indexOf(L)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); l.setAttribute("data-loaded",n)}; qp8=function(l){var n=g.zk("window.location.href");l==null&&(l='Unknown Error of type "null/undefined"');if(typeof l==="string")return{message:l,name:"Unknown error",lineNumber:"Not available",fileName:n,stack:"Not available"};var O=!1;try{var L=l.lineNumber||l.line||"Not available"}catch(x){L="Not available",O=!0}try{var X=l.fileName||l.filename||l.sourceURL||g.Be.$googDebugFname||n}catch(x){X="Not available",O=!0}n=sM(l);if(!(!O&&l.lineNumber&&l.fileName&&l.stack&&l.message&&l.name)){O=l.message; if(O==null){if(l.constructor&&l.constructor instanceof Function){if(l.constructor.name)O=l.constructor.name;else if(O=l.constructor,fC[O])O=fC[O];else{O=String(O);if(!fC[O]){var F=/function\s+([^\(]+)/m.exec(O);fC[O]=F?F[1]:"[Anonymous]"}O=fC[O]}O='Unknown Error of type "'+O+'"'}else O="Unknown Error of unknown type";typeof l.toString==="function"&&Object.prototype.toString!==l.toString&&(O+=": "+l.toString())}return{message:O,name:l.name||"UnknownError",lineNumber:L,fileName:X,stack:n||"Not available"}}return{message:l.message, name:l.name,lineNumber:l.lineNumber,fileName:l.fileName,stack:n}}; sM=function(l,n){n||(n={});n[KC(l)]=!0;var O=l.stack||"",L=l.cause;L&&!n[KC(L)]&&(O+="\nCaused by: ",L.stack&&L.stack.indexOf(L.toString())==0||(O+=typeof L==="string"?L:L.message+"\n"),O+=sM(L,n));l=l.errors;if(Array.isArray(l)){L=1;var X;for(X=0;X<l.length&&!(L>4);X++)n[KC(l[X])]||(O+="\nInner error "+L++ +": ",l[X].stack&&l[X].stack.indexOf(l[X].toString())==0||(O+=typeof l[X]==="string"?l[X]:l[X].message+"\n"),O+=sM(l[X],n));X<l.length&&(O+="\n... "+(l.length-X)+" more inner errors")}return O}; KC=function(l){var n="";typeof l.toString==="function"&&(n=""+l);return n+l.stack}; aW=function(l,n,O){return l.parseFromString($u(n),O)}; g.RW=function(l){return encodeURIComponent(String(l))}; CC=function(l){return decodeURIComponent(l.replace(/\+/g," "))}; tp=function(l){k39.test(l)&&(l.indexOf("&")!=-1&&(l=l.replace(yhg,"&")),l.indexOf("<")!=-1&&(l=l.replace(Mof,"<")),l.indexOf(">")!=-1&&(l=l.replace(Qa9,">")),l.indexOf('"')!=-1&&(l=l.replace(eQ5,""")),l.indexOf("'")!=-1&&(l=l.replace(Ypi,"'")),l.indexOf("\x00")!=-1&&(l=l.replace(ja5,"�")));return l}; g.v3=function(l){return l==null?"":String(l)}; lf=function(l){for(var n=0,O=0;O<l.length;++O)n=31*n+l.charCodeAt(O)>>>0;return n}; nJ=function(l){var n=Number(l);return n==0&&g.DL(l)?NaN:n}; G38=function(l){return String(l).replace(/\-([a-z])/g,function(n,O){return O.toUpperCase()})}; m1q=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; IZk=function(l){return l.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(n,O,L){return O+L.toUpperCase()})}; d1i=function(l){var n=1;l=l.split(":");for(var O=[];n>0&&l.length;)O.push(l.shift()),n--;l.length&&O.push(l.join(":"));return O}; Od=function(l){this.S=l||{cookie:""}}; ge=function(l){l=(l.S.cookie||"").split(";");for(var n=[],O=[],L,X,F=0;F<l.length;F++)X=ys(l[F]),L=X.indexOf("="),L==-1?(n.push(""),O.push(X)):(n.push(X.substring(0,L)),O.push(X.substring(L+1)));return{keys:n,values:O}}; $18=function(){var l=g.Be.__SAPISID||g.Be.__APISID||g.Be.__3PSAPISID||g.Be.__1PSAPISID||g.Be.__OVERRIDE_SID;if(l)return!0;typeof document!=="undefined"&&(l=new Od(document),l=l.get("SAPISID")||l.get("APISID")||l.get("__Secure-3PAPISID")||l.get("__Secure-1PAPISID"));return!!l}; Vo0=function(l,n,O,L){(l=g.Be[l])||typeof document==="undefined"||(l=(new Od(document)).get(n));return l?Ah5(l,O,L):null}; B87=function(l){var n=Jh9(String(g.Be.location.href)),O=[];if($18()){n=n.indexOf("https:")==0||n.indexOf("chrome-extension:")==0||n.indexOf("chrome-untrusted://new-tab-page")==0||n.indexOf("moz-extension:")==0;var L=n?g.Be.__SAPISID:g.Be.__APISID;L||typeof document==="undefined"||(L=new Od(document),L=L.get(n?"SAPISID":"APISID")||L.get("__Secure-3PAPISID"));(L=L?Ah5(L,n?"SAPISIDHASH":"APISIDHASH",l):null)&&O.push(L);n&&((n=Vo0("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",l))&&O.push(n),(l=Vo0("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",l))&&O.push(l))}return O.length==0?null:O.join(" ")}; LJ=function(){}; Xb=function(l){this.RO=mW(l)}; oC=function(l,n){this.intervalMs=l;this.callback=n;this.enabled=!1;this.S=function(){return g.l1()}; this.W=this.S()}; Fb=function(l){this.RO=mW(l)}; xw=function(l){this.RO=mW(l)}; g.hR=function(l,n,O){return Math.min(Math.max(l,n),O)}; g.ZF=function(l,n){l%=n;return l*n<0?l+n:l}; HM=function(l,n,O){return l+O*(n-l)}; g.AR=function(l,n){this.x=l!==void 0?l:0;this.y=n!==void 0?n:0}; bf=function(l,n){return l==n?!0:l&&n?l.x==n.x&&l.y==n.y:!1}; g.re=function(l,n){this.width=l;this.height=n}; g.Ud=function(l,n){return l==n?!0:l&&n?l.width==n.width&&l.height==n.height:!1}; uf=function(l){return l.width*l.height}; g.PM=function(l,n,O){for(var L in l)n.call(O,l[L],L,l)}; g.TB=function(l,n,O){var L={},X;for(X in l)n.call(O,l[X],X,l)&&(L[X]=l[X]);return L}; WM=function(l,n){var O={},L;for(L in l)O[L]=n.call(void 0,l[L],L,l);return O}; g.Ed=function(l,n,O){for(var L in l)if(n.call(O,l[L],L,l))return!0;return!1}; chg=function(l,n){for(var O in l)if(!n.call(void 0,l[O],O,l))return!1;return!0}; g.NX=function(l){for(var n in l)return n}; ij8=function(l){for(var n in l)return l[n]}; g.DF=function(l){var n=[],O=0,L;for(L in l)n[O++]=l[L];return n}; g.qX=function(l){var n=[],O=0,L;for(L in l)n[O++]=L;return n}; g.kw=function(l,n){return l!==null&&n in l}; g.yj=function(l,n){for(var O in l)if(l[O]==n)return!0;return!1}; MX=function(l,n){for(var O in l)if(n.call(void 0,l[O],O,l))return O}; zQ0=function(l,n){return(n=MX(l,n))&&l[n]}; g.Qj=function(l){for(var n in l)return!1;return!0}; g.Sp5=function(l){for(var n in l)delete l[n]}; g.eY=function(l,n,O){return l!==null&&n in l?l[n]:O}; g.Yw=function(l,n){for(var O in l)if(!(O in n)||l[O]!==n[O])return!1;for(var L in n)if(!(L in l))return!1;return!0}; g.jY=function(l){var n={},O;for(O in l)n[O]=l[O];return n}; g.GB=function(l){if(!l||typeof l!=="object")return l;if(typeof l.clone==="function")return l.clone();if(typeof Map!=="undefined"&&l instanceof Map)return new Map(l);if(typeof Set!=="undefined"&&l instanceof Set)return new Set(l);if(l instanceof Date)return new Date(l.getTime());var n=Array.isArray(l)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(l)||l instanceof DataView?{}:new l.constructor(l.length),O;for(O in l)n[O]=g.GB(l[O]);return n}; g.mf=function(l,n){for(var O,L,X=1;X<arguments.length;X++){L=arguments[X];for(O in L)l[O]=L[O];for(var F=0;F<pw8.length;F++)O=pw8[F],Object.prototype.hasOwnProperty.call(L,O)&&(l[O]=L[O])}}; de=function(l,n){this.S=l===IC&&n||""}; $w=function(l){if(l instanceof IW)return l;l=String(l).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return dY(l)}; sag=function(l){var n=$w("");return dY(l.map(function(O){return $u($w(O))}).join($u(n).toString()))}; C39=function(l){var n;if(!fZk.test("div"))throw Error("");if(KWq.indexOf("DIV")!==-1)throw Error("");var O="<div";l&&(O+=aZ9(l));Array.isArray(n)||(n=n===void 0?[]:[n]);RQq.indexOf("DIV")!==-1?O+=">":(l=sag(n.map(function(L){return L instanceof IW?L:$w(String(L))})),O+=">"+l.toString()+"</div>"); return dY(O)}; aZ9=function(l){for(var n="",O=Object.keys(l),L=0;L<O.length;L++){var X=O[L],F=l[X];if(!fZk.test(X))throw Error("");if(F!==void 0&&F!==null){if(/^on./i.test(X))throw Error("");toe.indexOf(X.toLowerCase())!==-1&&(F=F instanceof ML?F.toString():WW9(String(F))||"about:invalid#zClosurez");F=X+'="'+$w(String(F))+'"';n+=" "+F}}return n}; v60=function(l){var n=g.eq.apply(1,arguments);if(n.length===0)return ku(l[0]);for(var O=l[0],L=0;L<n.length;L++)O+=encodeURIComponent(n[L])+l[L+1];return ku(O)}; cM=function(l){return l?new Vj(BM(l)):lN9||(lN9=new Vj)}; zB=function(l,n){return typeof n==="string"?l.getElementById(n):n}; g.SY=function(l,n){return(n||document).getElementsByTagName(String(l))}; g.pJ=function(l,n){return(n||document).querySelectorAll("."+l)}; g.aC=function(l,n){var O=n||document;O.getElementsByClassName?l=O.getElementsByClassName(l)[0]:(O=document,l=l?(n||O).querySelector(l?"."+l:""):g.KJ(O,"*",l,n)[0]||null);return l||null}; g.KJ=function(l,n,O,L){l=L||l;return(n=n&&n!="*"?String(n).toUpperCase():"")||O?l.querySelectorAll(n+(O?"."+O:"")):l.getElementsByTagName("*")}; RC=function(l,n){g.PM(n,function(O,L){L=="style"?l.style.cssText=O:L=="class"?l.className=O:L=="for"?l.htmlFor=O:nMi.hasOwnProperty(L)?l.setAttribute(nMi[L],O):NQ(L,"aria-")||NQ(L,"data-")?l.setAttribute(L,O):l[L]=O})}; OUa=function(l){l=l.document;l=l.compatMode=="CSS1Compat"?l.documentElement:l.body;return new g.re(l.clientWidth,l.clientHeight)}; LPe=function(l){var n=gM9(l);l=l.defaultView;return new g.AR(l.pageXOffset||n.scrollLeft,l.pageYOffset||n.scrollTop)}; gM9=function(l){return l.scrollingElement?l.scrollingElement:g.CJ||l.compatMode!="CSS1Compat"?l.body||l.documentElement:l.documentElement}; tR=function(l){return l?l.defaultView:window}; lA=function(l,n,O){var L=arguments,X=document,F=L[1],x=vM(X,String(L[0]));F&&(typeof F==="string"?x.className=F:Array.isArray(F)?x.className=F.join(" "):RC(x,F));L.length>2&&XOk(X,x,L,2);return x}; XOk=function(l,n,O,L){function X(Z){Z&&n.appendChild(typeof Z==="string"?l.createTextNode(Z):Z)} for(;L<O.length;L++){var F=O[L];if(!g.fv(F)||g.Kv(F)&&F.nodeType>0)X(F);else{a:{if(F&&typeof F.length=="number"){if(g.Kv(F)){var x=typeof F.item=="function"||typeof F.item=="string";break a}if(typeof F==="function"){x=typeof F.item=="function";break a}}x=!1}g.ba(x?g.Ot(F):F,X)}}}; g.nf=function(l){return vM(document,l)}; vM=function(l,n){n=String(n);l.contentType==="application/xhtml+xml"&&(n=n.toLowerCase());return l.createElement(n)}; g.ON=function(l){return document.createTextNode(String(l))}; g.gT=function(l,n){l.appendChild(n)}; g.Lf=function(l){for(var n;n=l.firstChild;)l.removeChild(n)}; Xg=function(l,n,O){l.insertBefore(n,l.childNodes[O]||null)}; g.og=function(l){return l&&l.parentNode?l.parentNode.removeChild(l):null}; g.Fg=function(l,n){if(!l||!n)return!1;if(l.contains&&n.nodeType==1)return l==n||l.contains(n);if(typeof l.compareDocumentPosition!="undefined")return l==n||!!(l.compareDocumentPosition(n)&16);for(;n&&l!=n;)n=n.parentNode;return n==l}; BM=function(l){return l.nodeType==9?l:l.ownerDocument||l.document}; g.xQ=function(l,n){if("textContent"in l)l.textContent=n;else if(l.nodeType==3)l.data=String(n);else if(l.firstChild&&l.firstChild.nodeType==3){for(;l.lastChild!=l.firstChild;)l.removeChild(l.lastChild);l.firstChild.data=String(n)}else g.Lf(l),l.appendChild(BM(l).createTextNode(String(n)))}; FPe=function(l){return l.tagName=="A"&&l.hasAttribute("href")||l.tagName=="INPUT"||l.tagName=="TEXTAREA"||l.tagName=="SELECT"||l.tagName=="BUTTON"?!l.disabled&&(!l.hasAttribute("tabindex")||oMa(l)):l.hasAttribute("tabindex")&&oMa(l)}; oMa=function(l){l=l.tabIndex;return typeof l==="number"&&l>=0&&l<32768}; ZB=function(l,n,O){if(!n&&!O)return null;var L=n?String(n).toUpperCase():null;return h3(l,function(X){return(!L||X.nodeName==L)&&(!O||typeof X.className==="string"&&g.CO(X.className.split(/\s+/),O))},!0)}; h3=function(l,n,O){l&&!O&&(l=l.parentNode);for(O=0;l;){if(n(l))return l;l=l.parentNode;O++}return null}; Vj=function(l){this.S=l||g.Be.document||document}; J3=function(l){this.RO=mW(l)}; wT=function(l){this.RO=mW(l)}; HE=function(l){this.RO=mW(l)}; xge=function(l,n){JX(l,wT,1,n)}; A3=function(l){this.RO=mW(l)}; ZU9=function(l,n){n=n===void 0?hC9:n;if(!bA){var O;l=(O=l.navigator)==null?void 0:O.userAgentData;if(!l||typeof l.getHighEntropyValues!=="function"||l.brands&&typeof l.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));O=(l.brands||[]).map(function(X){var F=new wT;F=uV(F,1,X.brand);return uV(F,2,X.version)}); xge(i3(rT,2,hh(l.mobile)),O);bA=l.getHighEntropyValues(n)}var L=new Set(n);return bA.then(function(X){var F=rT.clone();L.has("platform")&&uV(F,3,X.platform);L.has("platformVersion")&&uV(F,4,X.platformVersion);L.has("architecture")&&uV(F,5,X.architecture);L.has("model")&&uV(F,6,X.model);L.has("uaFullVersion")&&uV(F,7,X.uaFullVersion);return F}).catch(function(){return rT.clone()})}; UN=function(l){this.RO=mW(l)}; JX0=function(l){this.RO=mW(l)}; uA=function(l){this.RO=mW(l,4)}; PE=function(l){this.RO=mW(l,36)}; T1=function(l){this.RO=mW(l,19)}; EN=function(l,n){this.Zo=n=n===void 0?!1:n;this.uach=this.locale=null;this.W=0;this.isFinal=!1;this.S=new T1;Number.isInteger(l)&&this.S.yZ(l);n||(this.locale=document.documentElement.getAttribute("lang"));wOe(this,new UN)}; wOe=function(l,n){hX(l.S,UN,1,n);rb(n,1)||TZ(n,1,1);l.Zo||(n=NF(l),bV(n,5)||uV(n,5,l.locale));l.uach&&(n=NF(l),xM(n,HE,9)||hX(n,HE,9,l.uach))}; HUg=function(l,n){l.W=n}; AX9=function(l){var n=n===void 0?hC9:n;var O=l.Zo?void 0:tR();O?ZU9(O,n).then(function(L){l.uach=L;L=NF(l);hX(L,HE,9,l.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; NF=function(l){l=xM(l.S,UN,1);var n=xM(l,A3,11);n||(n=new A3,hX(l,A3,11,n));return n}; bUq=function(l){return g.CJ?"webkit"+l:l.toLowerCase()}; g.DB=function(l,n,O,L){this.L=l;this.B=n;this.S=this.N=l;this.V=O||0;this.T=L||2}; g.qF=function(l){l.S=Math.min(l.B,l.S*l.T);l.N=Math.min(l.B,l.S+(l.V?Math.round(l.V*(Math.random()-.5)*2*l.S):0));l.W++}; rX8=function(l){this.RO=mW(l,8)}; Ugi=function(l){this.RO=mW(l)}; y$=function(l){g.V.call(this);var n=this;this.componentId="";this.S=[];this.Hm="";this.pageId=null;this.wq=this.Q5=-1;this.T=this.experimentIds=null;this.Wm=this.NQ=this.V=this.L=0;this.Fi=1;this.timeoutMillis=0;this.Lf=!1;this.logSource=l.logSource;this.Dy=l.Dy||function(){}; this.N=new EN(l.logSource,l.Zo);this.network=l.network||null;this.Ue=l.Ue||null;this.G=l.c7q||null;this.sessionIndex=l.sessionIndex||null;this.mK=l.mK||!1;this.logger=null;this.withCredentials=!l.iR;this.Zo=l.Zo||!1;this.Y=!this.Zo&&!!tR()&&!!tR().navigator&&tR().navigator.sendBeacon!==void 0;this.z3=typeof URLSearchParams!=="undefined"&&!!(new URL(kQ())).searchParams&&!!(new URL(kQ())).searchParams.set;var O=TZ(new UN,1,1);wOe(this.N,O);this.B=new g.DB(1E4,3E5,.1);l=ue8(this,l.bC);this.W=new oC(this.B.getValue(), l);this.Cf=new oC(6E5,l);this.mK||this.Cf.start();this.Zo||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n.hU()}),document.addEventListener("pagehide",this.hU.bind(this)))}; ue8=function(l,n){return l.z3?n?function(){n().then(function(){l.flush()})}:function(){l.flush()}:function(){}}; PVi=function(l){l.G||(l.G=kQ());try{return(new URL(l.G)).toString()}catch(n){return(new URL(l.G,tR().location.origin)).toString()}}; Tb7=function(l,n,O){O=O===void 0?l.Dy():O;var L={},X=new URL(PVi(l));O&&(L.Authorization=O);l.sessionIndex&&(L["X-Goog-AuthUser"]=l.sessionIndex,X.searchParams.set("authuser",l.sessionIndex));l.pageId&&(Object.defineProperty(L,"X-Goog-PageId",{value:l.pageId}),X.searchParams.set("pageId",l.pageId));return{url:X.toString(),body:n,J4:1,requestHeaders:L,requestType:"POST",withCredentials:l.withCredentials,timeoutMillis:l.timeoutMillis}}; EMf=function(l){WP8(l,function(n,O){n=new URL(n);n.searchParams.set("format","json");var L=!1;try{L=tR().navigator.sendBeacon(n.toString(),O.OP())}catch(X){}L||(l.Y=!1);return L})}; WP8=function(l,n){if(l.S.length!==0){var O=new URL(PVi(l));O.searchParams.delete("format");var L=l.Dy();L&&O.searchParams.set("auth",L);O.searchParams.set("authuser",l.sessionIndex||"0");for(L=0;L<10&&l.S.length;++L){var X=l.S.slice(0,32),F=l.N.build(X,l.L,l.V,l.Ue,l.NQ,l.Wm);if(!n(O.toString(),F)){++l.V;break}l.L=0;l.V=0;l.NQ=0;l.Wm=0;l.S=l.S.slice(X.length)}l.W.enabled&&l.W.stop()}}; kQ=function(){return"https://play.google.com/log?format=json&hasfast=true"}; MF=function(){this.NT=typeof AbortController!=="undefined"}; Q$=function(l,n){g.V.call(this);this.logSource=l;this.sessionIndex=n;this.HX="https://play.google.com/log?format=json&hasfast=true";this.W=null;this.L=!1;this.network=null;this.componentId="";this.S=this.Ue=null;this.N=!1;this.pageId=null}; Nbk=function(l,n){l.W=n;return l}; Dg8=function(l,n){l.network=n;return l}; qKi=function(l,n){l.S=n}; kZ5=function(l){l.N=!0;return l}; ew=function(l,n,O,L,X,F,x){l=l===void 0?-1:l;n=n===void 0?"":n;O=O===void 0?"":O;L=L===void 0?!1:L;X=X===void 0?"":X;g.V.call(this);this.logSource=l;this.componentId=n;F?n=F:(l=new Q$(l,"0"),l.componentId=n,g.c(this,l),O!==""&&(l.HX=O),L&&(l.L=!0),X&&Nbk(l,X),x&&Dg8(l,x),n=l.build());this.S=n}; yXf=function(l){this.S=l}; YQ=function(l,n,O){this.W=l;this.L=n;this.fields=O||[];this.S=new Map}; hQ9=function(l){return l.fields.map(function(n){return n.fieldType})}; x1q=function(l){return l.fields.map(function(n){return n.fieldName})}; jw=function(l,n){YQ.call(this,l,3,n)}; G1=function(l,n){YQ.call(this,l,2,n)}; g.mi=function(l,n){this.type=l;this.currentTarget=this.target=n;this.defaultPrevented=this.W=!1}; Ig=function(l,n){g.mi.call(this,l?l.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.S=null;l&&this.init(l,n)}; dT=function(l){return!(!l||!l[MI9])}; eCq=function(l,n,O,L,X){this.listener=l;this.proxy=null;this.src=n;this.type=O;this.capture=!!L;this.RI=X;this.key=++QLg;this.removed=this.Tc=!1}; $Q=function(l){l.removed=!0;l.listener=null;l.proxy=null;l.src=null;l.RI=null}; V$=function(l){this.src=l;this.listeners={};this.S=0}; g.BE=function(l,n){var O=n.type;O in l.listeners&&g.vR(l.listeners[O],n)&&($Q(n),l.listeners[O].length==0&&(delete l.listeners[O],l.S--))}; cE=function(l,n,O,L){for(var X=0;X<l.length;++X){var F=l[X];if(!F.removed&&F.listener==n&&F.capture==!!O&&F.RI==L)return X}return-1}; g.z1=function(l,n,O,L,X){if(L&&L.once)return iA(l,n,O,L,X);if(Array.isArray(n)){for(var F=0;F<n.length;F++)g.z1(l,n[F],O,L,X);return null}O=ff(O);return dT(l)?l.listen(n,O,g.Kv(L)?!!L.capture:!!L,X):YK5(l,n,O,!1,L,X)}; YK5=function(l,n,O,L,X,F){if(!n)throw Error("Invalid event type");var x=g.Kv(X)?!!X.capture:!!X,Z=Kf(l);Z||(l[ag]=Z=new V$(l));O=Z.add(n,O,L,x,F);if(O.proxy)return O;L=jL5();O.proxy=L;L.src=l;L.listener=O;if(l.addEventListener)GZ9||(X=x),X===void 0&&(X=!1),l.addEventListener(n.toString(),L,X);else if(l.attachEvent)l.attachEvent(mga(n.toString()),L);else if(l.addListener&&l.removeListener)l.addListener(L);else throw Error("addEventListener and attachEvent are unavailable.");IN0++;return O}; jL5=function(){function l(O){return n.call(l.src,l.listener,O)} var n=dgi;return l}; iA=function(l,n,O,L,X){if(Array.isArray(n)){for(var F=0;F<n.length;F++)iA(l,n[F],O,L,X);return null}O=ff(O);return dT(l)?l.kq(n,O,g.Kv(L)?!!L.capture:!!L,X):YK5(l,n,O,!0,L,X)}; $g8=function(l,n,O,L,X){if(Array.isArray(n))for(var F=0;F<n.length;F++)$g8(l,n[F],O,L,X);else L=g.Kv(L)?!!L.capture:!!L,O=ff(O),dT(l)?l.EC(n,O,L,X):l&&(l=Kf(l))&&(n=l.Zj(n,O,L,X))&&Rg(n)}; Rg=function(l){if(typeof l!=="number"&&l&&!l.removed){var n=l.src;if(dT(n))g.BE(n.Es,l);else{var O=l.type,L=l.proxy;n.removeEventListener?n.removeEventListener(O,L,l.capture):n.detachEvent?n.detachEvent(mga(O),L):n.addListener&&n.removeListener&&n.removeListener(L);IN0--;(O=Kf(n))?(g.BE(O,l),O.S==0&&(O.src=null,n[ag]=null)):$Q(l)}}}; mga=function(l){return l in Cf?Cf[l]:Cf[l]="on"+l}; dgi=function(l,n){if(l.removed)l=!0;else{n=new Ig(n,this);var O=l.listener,L=l.RI||l.src;l.Tc&&Rg(l);l=O.call(L,n)}return l}; Kf=function(l){l=l[ag];return l instanceof V$?l:null}; ff=function(l){if(typeof l==="function")return l;l[t3]||(l[t3]=function(n){return l.handleEvent(n)}); return l[t3]}; g.vE=function(){g.V.call(this);this.Es=new V$(this);this.oF=this;this.f_=null}; lK=function(l,n,O,L){n=l.Es.listeners[String(n)];if(!n)return!0;n=n.concat();for(var X=!0,F=0;F<n.length;++F){var x=n[F];if(x&&!x.removed&&x.capture==O){var Z=x.listener,J=x.RI||x.src;x.Tc&&g.BE(l.Es,x);X=Z.call(J,L)!==!1&&X}}return X&&!L.defaultPrevented}; O6=function(l,n){this.N=l;this.L=n;this.W=0;this.S=null}; VI5=function(l,n){l.L(n);l.W<100&&(l.W++,n.next=l.S,l.S=n)}; oh=function(l){l=Lr(l);X7||(X7=Bba());X7(l)}; Bba=function(){if(typeof MessageChannel!=="undefined"){var l=new MessageChannel,n={},O=n;l.port1.onmessage=function(){if(n.next!==void 0){n=n.next;var L=n.uR;n.uR=null;L()}}; return function(L){O.next={uR:L};O=O.next;l.port2.postMessage(0)}}return function(L){g.Be.setTimeout(L,0)}}; F7=function(){this.W=this.S=null}; xo=function(){this.next=this.scope=this.S=null}; g.Jo=function(l,n){ho||cX8();ZG||(ho(),ZG=!0);iUv.add(l,n)}; cX8=function(){var l=Promise.resolve(void 0);ho=function(){l.then(zCi)}}; zCi=function(){for(var l;l=iUv.remove();){try{l.S.call(l.scope)}catch(n){Tc(n)}VI5(SK8,l)}ZG=!1}; wa=function(l){return function(){return l}}; g.H$=function(){}; pO7=function(l){var n=n||0;return function(){return l.apply(this,Array.prototype.slice.call(arguments,0,n))}}; Ao=function(l){var n=!1,O;return function(){n||(O=l(),n=!0);return O}}; bK=function(l){var n=l;return function(){if(n){var O=n;n=null;O()}}}; sLk=function(l,n){var O=0;return function(L){g.Be.clearTimeout(O);var X=arguments;O=g.Be.setTimeout(function(){l.apply(n,X)},50)}}; g.U6=function(l){this.S=0;this.T=void 0;this.L=this.W=this.N=null;this.B=this.V=!1;if(l!=g.H$)try{var n=this;l.call(void 0,function(O){ra(n,2,O)},function(O){ra(n,3,O)})}catch(O){ra(this,3,O)}}; fNi=function(){this.next=this.context=this.W=this.N=this.S=null;this.L=!1}; uK=function(l,n,O){var L=KPi.get();L.N=l;L.W=n;L.context=O;return L}; g.P$=function(l){if(l instanceof g.U6)return l;var n=new g.U6(g.H$);ra(n,2,l);return n}; Te=function(l){return new g.U6(function(n,O){O(l)})}; g.RCq=function(l,n,O){aNe(l,n,O,null)||g.Jo(g.ve(n,l))}; CVe=function(l){return new g.U6(function(n,O){l.length||n(void 0);for(var L,X=0;X<l.length;X++)L=l[X],g.RCq(L,n,O)})}; vM0=function(){var l,n,O=new g.U6(function(L,X){l=L;n=X}); return new tIv(O,l,n)}; le0=function(l,n,O,L){W$(l,uK(n||g.H$,O||null,L))}; E6=function(l,n){n=Lr(n);n=uK(n,n);n.L=!0;W$(l,n);return l}; nu5=function(l,n){if(l.S==0)if(l.N){var O=l.N;if(O.W){for(var L=0,X=null,F=null,x=O.W;x&&(x.L||(L++,x.S==l&&(X=x),!(X&&L>1)));x=x.next)X||(F=x);X&&(O.S==0&&L==1?nu5(O,n):(F?(L=F,L.next==O.L&&(O.L=L),L.next=L.next.next):OCf(O),gu8(O,X,3,n)))}l.N=null}else ra(l,3,n)}; W$=function(l,n){l.W||l.S!=2&&l.S!=3||Lvf(l);l.L?l.L.next=n:l.W=n;l.L=n}; X30=function(l,n,O,L){var X=uK(null,null,null);X.S=new g.U6(function(F,x){X.N=n?function(Z){try{var J=n.call(L,Z);F(J)}catch(w){x(w)}}:F; X.W=O?function(Z){try{var J=O.call(L,Z);J===void 0&&Z instanceof Nv?x(Z):F(J)}catch(w){x(w)}}:x}); X.S.N=l;W$(l,X);return X.S}; ra=function(l,n,O){l.S==0&&(l===O&&(n=3,O=new TypeError("Promise cannot resolve to itself")),l.S=1,aNe(O,l.A7F,l.jpG,l)||(l.T=O,l.S=n,l.N=null,Lvf(l),n!=3||O instanceof Nv||oui(l,O)))}; aNe=function(l,n,O,L){if(l instanceof g.U6)return le0(l,n,O,L),!0;if(l)try{var X=!!l.$goog_Thenable}catch(x){X=!1}else X=!1;if(X)return l.then(n,O,L),!0;if(g.Kv(l))try{var F=l.then;if(typeof F==="function")return Fv9(l,F,n,O,L),!0}catch(x){return O.call(L,x),!0}return!1}; Fv9=function(l,n,O,L,X){function F(J){Z||(Z=!0,L.call(X,J))} function x(J){Z||(Z=!0,O.call(X,J))} var Z=!1;try{n.call(l,x,F)}catch(J){F(J)}}; Lvf=function(l){l.V||(l.V=!0,g.Jo(l.KQ,l))}; OCf=function(l){var n=null;l.W&&(n=l.W,l.W=n.next,n.next=null);l.W||(l.L=null);return n}; gu8=function(l,n,O,L){if(O==3&&n.W&&!n.L)for(;l&&l.B;l=l.N)l.B=!1;if(n.S)n.S.N=null,xLv(n,O,L);else try{n.L?n.N.call(n.context):xLv(n,O,L)}catch(X){hm0.call(null,X)}VI5(KPi,n)}; xLv=function(l,n,O){n==2?l.N.call(l.context,O):l.W&&l.W.call(l.context,O)}; oui=function(l,n){l.B=!0;g.Jo(function(){l.B&&hm0.call(null,n)})}; Nv=function(l){u1.call(this,l)}; tIv=function(l,n,O){this.promise=l;this.resolve=n;this.reject=O}; g.DG=function(l,n){g.vE.call(this);this.vQ=l||1;this.RY=n||g.Be;this.kM=(0,g.tg)(this.zfG,this);this.W9=g.l1()}; g.qv=function(l,n,O){if(typeof l==="function")O&&(l=(0,g.tg)(l,O));else if(l&&typeof l.handleEvent=="function")l=(0,g.tg)(l.handleEvent,l);else throw Error("Invalid listener argument");return Number(n)>2147483647?-1:g.Be.setTimeout(l,n||0)}; ko=function(l,n){var O=null;return(new g.U6(function(L,X){O=g.qv(function(){L(n)},l); O==-1&&X(Error("Failed to schedule timer."))})).O9(function(L){g.Be.clearTimeout(O); throw L;})}; g.yM=function(l){g.V.call(this);this.T=l;this.L=0;this.N=100;this.B=!1;this.W=new Map;this.V=new Set;this.flushInterval=3E4;this.S=new g.DG(this.flushInterval);this.S.listen("tick",this.bq,!1,this);g.c(this,this.S)}; ZCi=function(l){l.S.enabled||l.S.start();l.L++;l.L>=l.N&&l.bq()}; Jpq=function(l,n){return l.V.has(n)?void 0:l.W.get(n)}; w37=function(l){for(var n=0;n<l.length;n++)l[n].clear()}; JR5=function(l){switch(l){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; wM0=function(l){switch(l){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; Mv=function(l,n,O){O=O===void 0?{}:O;n=Error.call(this,n);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.code=l;this.metadata=O;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; g.QM=function(l){return(new HJe).OP(l)}; HJe=function(){}; ej=function(l,n,O){if(n==null)O.push("null");else{if(typeof n=="object"){if(Array.isArray(n)){var L=n;n=L.length;O.push("[");for(var X="",F=0;F<n;F++)O.push(X),ej(l,L[F],O),X=",";O.push("]");return}if(n instanceof String||n instanceof Number||n instanceof Boolean)n=n.valueOf();else{O.push("{");X="";for(L in n)Object.prototype.hasOwnProperty.call(n,L)&&(F=n[L],typeof F!="function"&&(O.push(X),ARf(L,O),O.push(":"),ej(l,F,O),X=","));O.push("}");return}}switch(typeof n){case "string":ARf(n,O);break;case "number":O.push(isFinite(n)&& !isNaN(n)?String(n):"null");break;case "boolean":O.push(String(n));break;case "function":O.push("null");break;default:throw Error("Unknown type: "+typeof n);}}}; ARf=function(l,n){n.push('"',l.replace(bJ5,function(O){var L=rRg[O];L||(L="\\u"+(O.charCodeAt(0)|65536).toString(16).slice(1),rRg[O]=L);return L}),'"')}; UXe=function(l){switch(l){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; ubg=function(){}; Yo=function(){}; jj=function(l,n,O,L,X,F,x){var Z="";l&&(Z+=l+":");O&&(Z+="//",n&&(Z+=n+"@"),Z+=O,L&&(Z+=":"+L));X&&(Z+=X);F&&(Z+="?"+F);x&&(Z+="#"+x);return Z}; Ih=function(l){return l?decodeURI(l):l}; g.$o=function(l,n){return n.match(da)[l]||null}; g.VM=function(l){return Ih(g.$o(3,l))}; g.Pfi=function(l){l=l.match(da);return jj(l[1],l[2],l[3],l[4])}; B$=function(l){l=l.match(da);return jj(null,null,null,null,l[5],l[6],l[7])}; Tek=function(l){var n=l.indexOf("#");return n<0?l:l.slice(0,n)}; c$=function(l,n){if(l){l=l.split("&");for(var O=0;O<l.length;O++){var L=l[O].indexOf("="),X=null;if(L>=0){var F=l[O].substring(0,L);X=l[O].substring(L+1)}else F=l[O];n(F,X?CC(X):"")}}}; iK=function(l,n){if(!n)return l;var O=l.indexOf("#");O<0&&(O=l.length);var L=l.indexOf("?");if(L<0||L>O){L=O;var X=""}else X=l.substring(L+1,O);l=[l.slice(0,L),X,l.slice(O)];O=l[1];l[1]=n?O?O+"&"+n:n:O;return l[0]+(l[1]?"?"+l[1]:"")+l[2]}; ze=function(l,n,O){if(Array.isArray(n))for(var L=0;L<n.length;L++)ze(l,String(n[L]),O);else n!=null&&O.push(l+(n===""?"":"="+g.RW(n)))}; Wf0=function(l,n){var O=[];for(n=n||0;n<l.length;n+=2)ze(l[n],l[n+1],O);return O.join("&")}; g.Sj=function(l){var n=[],O;for(O in l)ze(O,l[O],n);return n.join("&")}; Ewk=function(l,n){var O=arguments.length==2?Wf0(arguments[1],0):Wf0(arguments,1);return iK(l,O)}; g.pr=function(l,n){n=g.Sj(n);return iK(l,n)}; s6=function(l,n,O){O=O!=null?"="+g.RW(O):"";return iK(l,n+O)}; Nei=function(l,n,O,L){for(var X=O.length;(n=l.indexOf(O,n))>=0&&n<L;){var F=l.charCodeAt(n-1);if(F==38||F==63)if(F=l.charCodeAt(n+X),!F||F==61||F==38||F==35)return n;n+=X+1}return-1}; fr=function(l,n){var O=l.search(DXi),L=Nei(l,0,n,O);if(L<0)return null;var X=l.indexOf("&",L);if(X<0||X>O)X=O;L+=n.length+1;return CC(l.slice(L,X!==-1?X:0))}; Kr=function(l,n){for(var O=l.search(DXi),L=0,X,F=[];(X=Nei(l,L,n,O))>=0;)F.push(l.substring(L,X)),L=Math.min(l.indexOf("&",X)+1||O,O);F.push(l.slice(L));return F.join("").replace(qd8,"$1")}; kBa=function(l,n,O){return s6(Kr(l,n),n,O)}; g.ah=function(l){g.vE.call(this);this.headers=new Map;this.Cf=l||null;this.N=!1;this.S=null;this.G="";this.W=0;this.L="";this.B=this.Q5=this.Y=this.NQ=!1;this.Wm=0;this.V=null;this.Lf="";this.T=!1}; MYf=function(l,n,O,L,X,F,x){var Z=new g.ah;yR5.push(Z);n&&Z.listen("complete",n);Z.kq("ready",Z.yN);F&&(Z.Wm=Math.max(0,F));x&&(Z.T=x);Z.send(l,O,L,X)}; eKf=function(l,n){l.N=!1;l.S&&(l.B=!0,l.S.abort(),l.B=!1);l.L=n;l.W=5;QC7(l);Rh(l)}; QC7=function(l){l.NQ||(l.NQ=!0,l.dispatchEvent("complete"),l.dispatchEvent("error"))}; Ydi=function(l){if(l.N&&typeof Cr!="undefined")if(l.Y&&g.to(l)==4)setTimeout(l.zQ.bind(l),0);else if(l.dispatchEvent("readystatechange"),l.isComplete()){l.getStatus();l.N=!1;try{if(v$(l))l.dispatchEvent("complete"),l.dispatchEvent("success");else{l.W=6;try{var n=g.to(l)>2?l.S.statusText:""}catch(O){n=""}l.L=n+" ["+l.getStatus()+"]";QC7(l)}}finally{Rh(l)}}}; Rh=function(l,n){if(l.S){l.V&&(clearTimeout(l.V),l.V=null);var O=l.S;l.S=null;n||l.dispatchEvent("ready");try{O.onreadystatechange=null}catch(L){}}}; v$=function(l){var n=l.getStatus();a:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var O=!0;break a;default:O=!1}if(!O){if(n=n===0)l=g.$o(1,String(l.G)),!l&&g.Be.self&&g.Be.self.location&&(l=g.Be.self.location.protocol.slice(0,-1)),n=!jCa.test(l?l.toLowerCase():"");O=n}return O}; g.to=function(l){return l.S?l.S.readyState:0}; g.l2=function(l){try{return l.S?l.S.responseText:""}catch(n){return""}}; g.nV=function(l){try{if(!l.S)return null;if("response"in l.S)return l.S.response;switch(l.Lf){case "":case "text":return l.S.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in l.S)return l.S.mozResponseArrayBuffer}return null}catch(n){return null}}; g.GBk=function(l){var n={};l=(l.S&&g.to(l)>=2?l.S.getAllResponseHeaders()||"":"").split("\r\n");for(var O=0;O<l.length;O++)if(!g.DL(l[O])){var L=d1i(l[O]),X=L[0];L=L[1];if(typeof L==="string"){L=L.trim();var F=n[X]||[];n[X]=F;F.push(L)}}return WM(n,function(x){return x.join(", ")})}; g.O_=function(l,n){return l.S?l.S.getResponseHeader(n):null}; gh=function(){}; Xp=function(l,n){this.logger=l;this.event=n;this.startTime=LV()}; oo=function(){wD.apply(this,arguments);this.DQ={iX:function(){return[]}}}; Fp=function(l,n,O){var L=LV();n=n();l.dN(O,LV()-L);return n}; xa=function(){oo.apply(this,arguments)}; h_=function(l){oo.call(this);var n=this;this.logger=l;this.DQ={RSz:function(){return n.logger}, iX:function(){return n.logger.DQ.iX()}}; this.addOnDisposeCallback(function(){return void n.logger.dispose()})}; mXk=function(l){return{u7f:new N98(l),errorCount:new ygi(l),eventCount:new qi9(l),Gw:new kki(l),Nt1:new D77(l),vtz:new Mqf(l),EW:new Q89(l),sNm:new efg(l)}}; IFi=function(l,n,O,L){l=kZ5(Dg8(Nbk(new Q$(1828,"0"),l),new gh));n.length&&qKi(l,o6i(new Xwq,n));L!==void 0&&(l.HX=L);var X=new ew(1828,"","",!1,"",l.build());g.c(X,l);var F=new g.yM({flush:function(x){try{X.flush(x)}catch(Z){O(Z)}}}); F.addOnDisposeCallback(function(){setTimeout(function(){try{F.bq()}finally{X.dispose()}})}); F.N=1E5;F.flushInterval=3E4;F.S.setInterval(3E4);return F}; Zk=function(l,n){g.V.call(this);var O=this;this.callback=l;this.W=n;this.S=-n;this.addOnDisposeCallback(function(){return void clearTimeout(O.Yh)})}; dXf=function(l){if(l.Yh===void 0){var n=Math.max(0,l.S+l.W-LV());l.Yh=setTimeout(function(){try{l.callback()}finally{l.S=LV(),l.Yh=void 0}},n)}}; J_=function(l,n,O){oo.call(this);this.metrics=l;this.IN=n;this.vR=O}; wh=function(l,n){n=n===void 0?[]:n;var O={IN:l.IN||"_",vR:l.vR||"",qI:l.qI||[],Au:l.Au|0,HX:l.HX,EG:l.EG||function(){}, Ny:l.Ny||function(F,x){return IFi(F,x,O.EG,O.HX)}},L=O.Ny("46",O.qI.concat(n)); J_.call(this,mXk(L),O.IN,O.vR);var X=this;this.N=n;this.DQ={iX:function(){return X.options.qI.concat(X.N).sort(function(F,x){return F-x})}}; this.options=O;this.service=L;this.W=!l.Ny;this.S=new Zk(function(){return void X.service.bq()},O.Au); this.addOnDisposeCallback(function(){X.S.dispose();X.W&&X.service.dispose()})}; LV=function(){var l,n,O;return(O=(l=globalThis.performance)==null?void 0:(n=l.now)==null?void 0:n.call(l))!=null?O:Date.now()}; Hq=function(l){this.RO=mW(l)}; A_=function(l){this.RO=mW(l)}; b2=function(l){this.RO=mW(l,0,b2.messageId)}; Fu=function(l){this.RO=mW(l)}; rh=function(l){this.RO=mW(l)}; g.U_=function(){var l=this;this.promise=new Promise(function(n,O){l.resolve=n;l.reject=O})}; $X5=function(l,n,O){if(l.disable)return new xa;n=n?T9i(n):[];if(O)return O.q9(n),O.share();l={IN:l.IN,vR:l.vR,qI:l.Mz,Au:l.gPF,HX:l.HX,EG:l.EG,Ny:l.Ny};O=n;O=O===void 0?[]:O;return new wh(l,O)}; u2=function(l){function n(U,W,N,q){Promise.resolve().then(function(){J.done();Z.au();Z.dispose();x.resolve({VN:U,k1G:W,Jt5:N,DHf:q})})} function O(U,W,N,q){if(!L.logger.JG()){var y="k";W?y="h":N&&(y="u");y!=="k"?q!==0&&(L.logger.yw(y),L.logger.dN(y,U)):L.W<=0?(L.logger.yw(y),L.logger.dN(y,U),L.W=Math.floor(Math.random()*200)):L.W--}} g.V.call(this);var L=this;this.W=Math.floor(Math.random()*200);this.S=new rh;if("challenge"in l&&VY9(l.challenge)){var X=bV(l.challenge,4);var F=bV(l.challenge,5);bV(l.challenge,7)&&(this.S=Be0(bV(l.challenge,7)))}else X=l.program,F=l.globalName;this.addOnDisposeCallback(function(){var U,W,N;return g.Y(function(q){if(q.S==1)return g.Q(q,L.N,2);U=q.W;W=U.k1G;(N=W)==null||N();g.Tk(q)})}); this.logger=$X5(l.Gk||{},this.S,l.P1);g.c(this,this.logger);var x=new g.U_;this.N=x.promise;this.logger.yw("t");var Z=this.logger.share(),J=new Xp(Z,"t");if(!g.Be[F])throw this.logger.hP(25),Error("EGOU");if(!g.Be[F].a)throw this.logger.hP(26),Error("ELIU");try{var w=g.Be[F].a;F=[];for(var H=[],A=T9i(this.S),b=0;b<A.length;b++)F.push(A[b]),H.push(1);var r=W05(this.S);for(A=0;A<r.length;A++)F.push(r[A]),H.push(2);this.L=g.P(w(X,n,!0,l.HV,O,[F,H],bV(this.S,5))).next().value;this.l1=x.promise.then(function(){})}catch(U){throw this.logger.hP(28), U; }}; cRk=function(l){if(!l)return null;l=HO(l,4);return l===null||l===void 0?null:ku(l)}; Pq=function(){this.W={};this.S=null}; TN=function(){Pq.instance||(Pq.instance=new Pq);return Pq.instance}; Wq=function(l,n){return iJ8(l,xM(n,Hq,1),xM(n,A_,2),bV(n,3))}; iJ8=function(l,n,O,L){if(!n&&!O)return Promise.resolve();if(!L)return zKk(n,O);var X;(X=l.W)[L]||(X[L]=new Promise(function(F,x){zKk(n,O).then(function(){l.S=L;F()},function(Z){delete l.W[L]; x(Z)})})); return l.W[L]}; zKk=function(l,n){return n?Sd9(n):l?pM9(l):Promise.resolve()}; Sd9=function(l){return new Promise(function(n,O){var L=g.nf("SCRIPT"),X=cRk(l);g.S8(L,X);L.onload=function(){g.og(L);n()}; L.onerror=function(){g.og(L);O(Error("EWLS"))}; (g.SY("HEAD")[0]||document.documentElement).appendChild(L)})}; pM9=function(l){return new Promise(function(n){var O=g.nf("SCRIPT");if(l){var L=HO(l,6);L=L===null||L===void 0?null:E6g(L)}else L=null;O.textContent=i_(L);zl(O);(g.SY("HEAD")[0]||document.documentElement).appendChild(O);g.og(O);n()})}; E_=function(l){this.RO=mW(l)}; NK=function(l){this.RO=mW(l)}; Dk=function(l,n,O){this.client=l;this.LY=n;this.S=O}; qK=function(l){g.V.call(this);var n=this;this.options=l;this.V=new g.U_;this.l1=this.V.promise;this.B=new g.U_;this.G=1;this.N=new g.U_;this.L=[];this.Pw=l.Pw||function(){}; this.logger=new h_($X5(l.Gk||{}));sCa(this,l.qq,l.Bt,l.Z82,l.L4m,Object.assign({},fF7,l.ey||{}));this.addOnDisposeCallback(function(){return void Kff(n)})}; aFk=function(l){var n;return g.Y(function(O){if(l.JG())throw Error("Already disposed");(n=l.S)!=null&&(n.endTimeMs=0,n.uO(1));return g.Q(O,l.N.promise,0)})}; Kff=function(l){l.T=Error("Cancelled by dispose");l.B.resolve();J0(l.V.promise);l.V.reject(Error("Cancelled by dispose"));l.logger.dispose();Promise.all(l.L).then(function(){var O;return g.Y(function(L){(O=l.W)==null||O.dispose();l.W=void 0;g.Tk(L)})}); l.L=[];var n;(n=l.S)!=null&&(n.endTimeMs=0,n.uO(1));J0(l.N.promise);l.N.reject(Error("Cancelled by dispose"))}; RKi=function(l,n){var O=l.Pw;l.Pw=function(){O();n()}}; Cf5=function(l,n){l.JG()||(l.W=n,l.logger.update(n.xX()),l.B.resolve(),l.V.resolve(void 0),l.Pw())}; tYg=function(l,n){n&&(Promise.all(l.L).then(function(){return void n.dispose()}),l.L=[])}; ka=function(l,n){l.G=n;var O,L;(L=(O=l.options).juJ)==null||L.call(O,n)}; vwf=function(l){l.JG()||(l.N.resolve(),l.N=new g.U_)}; sCa=function(l,n,O,L,X,F){L=L===void 0?TN():L;X=X===void 0?Promise.resolve(void 0):X;var x,Z,J,w,H,A,b,r,U,W,N,q;g.Y(function(y){switch(y.S){case 1:return g.Q(y,0,3);case 3:Z=null;if(!x){y.D2(6);break}ka(l,7);g.We(y,7);return g.Q(y,MK(x.snapshot({}),F.KH,function(){return Promise.resolve("E:CTO")}),9); case 9:Z=y.W;g.N7(y,6);break;case 7:g.D5(y),Z="E:UCE";case 6:J=void 0,w=x?F.jU:F.pQ,H=new g.DB(w,F.If,F.nQ,F.Ac),A=0;case 10:if(!(A<F.maxAttempts)){y.D2(12);break}if(A===0){y.D2(13);break}ka(l,0);l.S=new lB9(H.getValue(),F.iD,F.Av);return g.Q(y,l.S.promise,14);case 14:b=y.W,l.S=void 0,b===1?(A=0,H.reset()):g.qF(H);case 13:g.We(y,15);r=void 0;if(O){r=O;y.D2(17);break}ka(l,5);U=L.S;return g.Q(y,MK(n.iH(U,Z),F.OY,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:r=y.W;case 17:return ka(l,3),g.Q(y,MK(Wq(L,r),F.Off,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return ka(l,8),g.Q(y,X,20);case 20:return W=new u2({challenge:r,Gk:l.options.Gk,HV:l.options.HV}),g.Q(y,MK(W.l1,F.lsf,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:J=W;y.D2(12);break;case 15:N=g.D5(y),l.handleError(N),vwf(l);case 11:A++;y.D2(10);break;case 12:if(l.JG()){y.D2(5);break}J&&(O=void 0,tYg(l,x),x=J,Cf5(l,J),vwf(l));ka(l,2);l.S=new lB9(F.Z15,F.iD,F.Av);return g.Q(y,l.S.promise,22);case 22:l.S=void 0;if(l.JG()){y.D2(5);break}y.D2(3);break;case 5:(q=x)==null||q.dispose(),g.Tk(y)}})}; MK=function(l,n,O){var L,X=new Promise(function(F){L=setTimeout(F,n)}); return Promise.race([l.finally(function(){return void clearTimeout(L)}), X.then(O)])}; lB9=function(l,n,O){function L(){var F=X.endTimeMs-Date.now();F<=O?X.uO(0):setTimeout(L,Math.min(F,n))} var X=this;this.endTimeMs=Date.now()+l;this.promise=new Promise(function(F){X.uO=F}); L()}; nQi=function(l,n){try{return globalThis.sessionStorage.setItem(l,n),!0}catch(O){return!1}}; Qh=function(l,n,O,L){n=n===void 0?0:n;O=O===void 0?l.length:O;var X=0;for(L&&(X=Qh(L));n<O;n++)L=typeof l==="string"?l.charCodeAt(n):l[n],X=Ofv(31,X)+L|0;return X}; gQi=function(l,n){return[Qh(l,0,l.length>>1,n),Qh(l,l.length>>1)]}; Liq=function(l){var n=g.P(gQi(l,eJ));l=n.next().value;n=n.next().value;return l.toString(16)+n.toString(16)}; XEk=function(l,n){var O=gQi(n);l=new Uint32Array(l.buffer);n=l[0];var L=g.P(O);O=L.next().value;L=L.next().value;for(var X=1;X<l.length;X+=2){for(var F=n,x=X,Z=O,J=L,w=0;w<22;w++)x=x>>>8|x<<24,x+=F|0,x^=Z+38293,F=F<<3|F>>>29,F^=x,J=J>>>8|J<<24,J+=Z|0,J^=w+38293,Z=Z<<3|Z>>>29,Z^=J;F=[F,x];l[X]^=F[0];X+1<l.length&&(l[X+1]^=F[1])}}; oQi=function(l,n,O,L,X){var F=(4-(eJ.length+O.length)%4)%4,x=new Uint8Array(4+F+eJ.length+4+O.length),Z=new DataView(x.buffer),J=0;Z.setUint32(J,Math.random()*4294967295);J=J+4+F;x.set(eJ,J);J+=eJ.length;Z.setUint32(J,X);x.set(O,J+4);XEk(x,L);return l.f2(n,function(w){return void globalThis.sessionStorage.removeItem(w)})?nQi(n,g.Pd(x))?"s":"t":"i"}; Fi5=function(l,n){var O=globalThis.sessionStorage.getItem(l);if(!O)return["m"];try{var L=Wd(O);XEk(L,n)}catch(X){return globalThis.sessionStorage.removeItem(l),["c"]}for(n=4;n<7&&L[n]===0;)n++;for(O=0;O<eJ.length;O++)if(L[n++]!==eJ[O])return globalThis.sessionStorage.removeItem(l),["d"];O=(new DataView(L.buffer)).getUint32(n);return Math.floor(Date.now()/1E3)>=O?(globalThis.sessionStorage.removeItem(l),["e"]):["a",new Uint8Array(L.buffer,n+4)]}; Ya=function(l,n,O){O=O===void 0?[]:O;this.maxItems=l;this.S=n===void 0?0:n;this.W=O}; xF9=function(l){var n=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!n)return new Ya(l);var O=n.split(",");if(O.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ya(l);n=O.slice(1);n.length===1&&n[0]===""&&(n=[]);O=Number(O[0]);return isNaN(O)||O<0||O>n.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ya(l)):new Ya(l,O,n)}; h69=function(l,n){this.logger=n;try{var O=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(L){O=!1}O&&(this.index=xF9(l))}; Zfi=function(l,n,O,L,X){var F=l.index?Fp(l.logger,function(){return oQi(l.index,Liq(n),O,L,X)},"W"):"u"; l.logger.p7(F)}; J3g=function(l,n,O){var L=g.P(l.index?Fp(l.logger,function(){return Fi5(Liq(n),O)},"R"):["u"]),X=L.next().value; L=L.next().value;l.logger.Ug(X);return L}; A35=function(l){function n(){O-=L;O-=X;O^=X>>>13;L-=X;L-=O;L^=O<<8;X-=O;X-=L;X^=L>>>13;O-=L;O-=X;O^=X>>>12;L-=X;L-=O;L^=O<<16;X-=O;X-=L;X^=L>>>5;O-=L;O-=X;O^=X>>>3;L-=X;L-=O;L^=O<<10;X-=O;X-=L;X^=L>>>15} l=wEf(l);for(var O=2654435769,L=2654435769,X=314159265,F=l.length,x=F,Z=0;x>=12;x-=12,Z+=12)O+=jJ(l,Z),L+=jJ(l,Z+4),X+=jJ(l,Z+8),n();X+=F;switch(x){case 11:X+=l[Z+10]<<24;case 10:X+=l[Z+9]<<16;case 9:X+=l[Z+8]<<8;case 8:L+=l[Z+7]<<24;case 7:L+=l[Z+6]<<16;case 6:L+=l[Z+5]<<8;case 5:L+=l[Z+4];case 4:O+=l[Z+3]<<24;case 3:O+=l[Z+2]<<16;case 2:O+=l[Z+1]<<8;case 1:O+=l[Z+0]}n();return Hf9.toString(X)}; wEf=function(l){for(var n=[],O=0;O<l.length;O++)n.push(l.charCodeAt(O));return n}; jJ=function(l,n){return l[n+0]+(l[n+1]<<8)+(l[n+2]<<16)+(l[n+3]<<24)}; GN=function(l){g.V.call(this);var n=this;this.logger=l;this.W=new g.U_;this[bf9]=this.dispose;this.addOnDisposeCallback(function(){J0(n.W.promise);n.W.reject()})}; m5=function(l,n){var O=setTimeout(function(){l.W.resolve()},n); l.addOnDisposeCallback(function(){return void clearTimeout(O)})}; Io=function(l,n,O,L){return Fp(l.logger,function(){return O?l.Qg(n,L):l.eC(n,L)},l.S)}; dh=function(l,n,O,L){GN.call(this,l);this.L=n;this.V=O;this.S="m";this.N="x";this.B=0;m5(this,L)}; Vh=function(l,n,O){GN.call(this,l);this.L=n;this.S="f";this.N="z";m5(this,O)}; Bq=function(l,n,O){GN.call(this,l);this.L=n;this.S="w";this.N="z";m5(this,O)}; cq=function(l,n){GN.call(this,l);this.error=n;this.S="e";this.N="y"}; r3e=function(l,n){var O=(n(l.error.message)+":"+n(l.error.stack)).substring(0,2048);n=O.length+1;O=i2(O);var L=new Uint8Array(4+O.length);L.set([42,n&127|128,n>>7,l.error.code]);L.set(O,4);return L}; zN=function(l,n,O){GN.call(this,l);this.L=n;this.clientState=O;this.S="S";this.N="q"}; i2=function(l){return globalThis.TextEncoder?(new TextEncoder).encode(l):g.EF(l)}; SJ=function(l,n,O){g.V.call(this);var L=this;this.logger=l;this.onError=n;this.state=O;this.T=0;this.W=void 0;this.addOnDisposeCallback(function(){L.S&&(L.S.dispose(),L.S=void 0)})}; UFa=function(l,n){n=n instanceof Xu?n:new Xu(5,"TVD:error",n);return l.reportError(n)}; pV=function(l,n,O){try{if(l.JG())throw new Xu(21,"BNT:disposed");if(!l.S&&l.W)throw l.W;var L,X;return(X=(L=ugf(l,n,O))!=null?L:PAf(l,n,O))!=null?X:TT9(l,n,O)}catch(F){if(!n.qX)throw UFa(l,F);return Wie(l,O,F)}}; ugf=function(l,n,O){var L;return(L=l.S)==null?void 0:Io(L,function(){return s_(l,n)},O,function(X){var F; if(l.S instanceof dh&&((F=n.vT)==null?0:F.S2))try{var x;(x=l.cache)==null||Zfi(x,s_(l,n),X,n.vT.xe,l.G-120)}catch(Z){l.reportError(new Xu(24,"ELX:write",Z))}})}; PAf=function(l,n,O){var L;if((L=n.vT)!=null&&L.x5)try{var X,F=(X=l.cache)==null?void 0:J3g(X,s_(l,n),n.vT.xe);return F?O?Fp(l.logger,function(){return g.Pd(F,2)},"a"):F:void 0}catch(x){l.reportError(new Xu(23,"RXO:read",x))}}; TT9=function(l,n,O){var L={stack:[],error:void 0,hasError:!1};try{if(!n.Ei)throw new Xu(29,"SDF:notready");return Io(OF(L,new zN(l.logger,l.T,l.state)),function(){return s_(l,n)},O)}catch(X){L.error=X,L.hasError=!0}finally{LO(L)}}; Wie=function(l,n,O){var L={stack:[],error:void 0,hasError:!1};try{var X=UFa(l,O);return Io(OF(L,new cq(l.logger,X)),function(){return[]},n)}catch(F){L.error=F,L.hasError=!0}finally{LO(L)}}; s_=function(l,n){return n.Jk?n.Jk:n.SD?Fp(l.logger,function(){return n.Jk=i2(n.SD)},"c"):[]}; KV=function(l){var n;SJ.call(this,l.vl.xX(),(n=l.onError)!=null?n:function(){},0); var O=this;this.B=0;this.L=new g.U_;this.N=!1;this.vl=l.vl;this.qq=l.qq;this.ey=Object.assign({},EQf,l.ey||{});l.vR&&(this.logger instanceof wh||this.logger instanceof h_)&&this.logger.Nt(l.vR);this.PV=l.PV||!1;if(NTv(l)){var L=this.vl;this.V=function(){return aFk(L).catch(function(x){x=O.reportError(new Xu(O.N?20:32,"TRG:Disposed",x));O.W=x;var Z;(Z=O.S)==null||Z.dispose();O.S=void 0;O.L.reject(x)})}; RKi(L,function(){return void fV(O)}); L.G===2&&fV(this)}else this.V=l.A5F,fV(this);var X=this.logger.share();X.yw("o");var F=new Xp(X,"o");this.L.promise.then(function(){F.done();X.au();X.dispose()},function(){return void X.dispose()}); this.addOnDisposeCallback(function(){O.N||(O.W?O.logger.au():(O.W=O.reportError(new Xu(32,"TNP:Disposed")),O.logger.au(),O.L.reject(O.W)));O.logger.dispose()})}; DF9=function(l,n){if(!(n instanceof Xu))if(n instanceof Mv){var O=Error(n.toString());O.stack=n.stack;n=new Xu(11,"EBH:Error",O)}else n=new Xu(12,"BSO:Unknown",n);return l.reportError(n)}; fV=function(l){var n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W;return g.Y(function(N){switch(N.S){case 1:n=void 0;l.B++;O=new g.U_;l.vl instanceof qK&&l.vl.L.push(O.promise);if(!l.PV){N.D2(2);break}L=new g.U_;setTimeout(function(){return void L.resolve()}); return g.Q(N,L.promise,2);case 2:return X=l.logger.share(),g.We(N,4,5),l.state=5,F={},x=[],g.Q(N,MK(l.vl.snapshot({SD:F,QX:x}),l.ey.SP1,function(){return Promise.reject(new Xu(15,"MDA:Timeout"))}),7); case 7:Z=N.W;if(l.JG())throw new Xu(l.N?20:32,"MDA:Disposed");J=x[0];l.state=6;return g.Q(N,MK(X.w2("g",1,l.qq.mM(Z)),l.ey.Zg,function(){return Promise.reject(new Xu(10,"BWB:Timeout"))}),8); case 8:w=N.W;if(l.JG())throw new Xu(l.N?20:32,"BWB:Disposed");l.state=7;n=Fp(X,function(){var y=qNe(l,w,O,J);y.W.promise.then(function(){return void l.V()}).catch(function(){}); return y},"i"); case 5:g.q7(N);X.dispose();g.ki(N,6);break;case 4:H=g.D5(N);(A=n)==null||A.dispose();if(!l.W){b=DF9(l,H);O.resolve();var q;if(q=l.vl instanceof qK&&l.B<2)a:if(H instanceof Xu)q=H.code!==32&&H.code!==20&&H.code!==10;else{if(H instanceof Mv)switch(H.code){case 2:case 13:case 14:case 4:break;default:q=!1;break a}q=!0}if(q)return r=(1+Math.random()*.25)*(l.N?6E4:1E3),U=setTimeout(function(){return void l.V()},r),l.addOnDisposeCallback(function(){return void clearTimeout(U)}),N.return(); l.W=b}X.hP(l.N?13:14);l.L.reject(l.W);return N.return();case 6:l.state=8,l.B=0,(W=l.S)==null||W.dispose(),l.S=n,l.N=!0,l.L.resolve(),g.Tk(N)}})}; qNe=function(l,n,O,L){var X=AX(n,2)*1E3;if(X<=0)throw new Xu(31,"TTM:Invalid");if(bV(n,4))return new Bq(l.logger,bV(n,4),X);if(!AX(n,3))return new Vh(l.logger,MP(Ra(n,1)),X);if(!L)throw new Xu(4,"PMD:Undefined");L=L(MP(Ra(n,1)));if(!(L instanceof Function))throw new Xu(16,"APF:Failed");l.G=Math.floor((Date.now()+X)/1E3);l=new dh(l.logger,L,AX(n,3),X);l.addOnDisposeCallback(function(){return void O.resolve()}); return l}; ao=function(){var l=0,n;return function(O){n||(n=new xa);var L=new zN(n,l,1),X=Io(L,function(){return i2(O)},!0); L.dispose();l++;return X}}; Ro=function(l){this.RO=mW(l)}; k1g=function(l,n,O){this.q$=l;this.P9=n;this.metadata=O}; CV=function(l,n){n=n===void 0?{}:n;this.LIz=l;this.metadata=n;this.status=null}; t_=function(l,n,O,L,X){this.name=l;this.methodType="unary";this.requestType=n;this.responseType=O;this.S=L;this.W=X}; vq=function(l){this.RO=mW(l)}; ls=function(l){this.RO=mW(l)}; n2=function(l){this.RO=mW(l)}; Or=function(l,n){this.T=l.i5i;this.G=n;this.S=l.xhr;this.N=[];this.B=[];this.V=[];this.L=[];this.W=[];this.T&&y39(this)}; YNe=function(l,n){var O=new Mwa;g.z1(l.S,"complete",function(){if(v$(l.S)){var L=g.l2(l.S);if(n&&l.S.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");L=atob(L)}try{var X=l.G(L)}catch(Z){gM(l,L2(new Mv(13,"Error when deserializing response data; error: "+Z+(", response: "+L)),O));return}L=JR5(l.S.getStatus());Xq(l,oO(l));L==0?Qg7(l,X):gM(l,L2(new Mv(L,"Xhr succeeded but the status code is not 200"),O))}else{L=g.l2(l.S);X=oO(l);if(L){var F=e67(l, L);L=F.code;var x=F.details;F=F.metadata}else L=2,x="Rpc failed due to xhr error. uri: "+String(l.S.G)+", error code: "+l.S.W+", error: "+l.S.getLastError(),F=X;Xq(l,X);gM(l,L2(new Mv(L,x,F),O))}})}; y39=function(l){l.T.Dv("data",function(n){if("1"in n){var O=n["1"];try{var L=l.G(O)}catch(X){gM(l,new Mv(13,"Error when deserializing response data; error: "+X+(", response: "+O)))}L&&Qg7(l,L)}if("2"in n)for(n=e67(l,n["2"]),O=0;O<l.V.length;O++)l.V[O](n)}); l.T.Dv("end",function(){Xq(l,oO(l));for(var n=0;n<l.L.length;n++)l.L[n]()}); l.T.Dv("error",function(){if(l.W.length!=0){var n=l.S.W;n!==0||v$(l.S)||(n=6);var O=-1;switch(n){case 0:var L=2;break;case 7:L=10;break;case 8:L=4;break;case 6:O=l.S.getStatus();L=JR5(O);break;default:L=14}Xq(l,oO(l));n=UXe(n)+", error: "+l.S.getLastError();O!=-1&&(n+=", http status code: "+O);gM(l,new Mv(L,n))}})}; oO=function(l){var n={},O=g.GBk(l.S);Object.keys(O).forEach(function(L){n[L]=O[L]}); return n}; e67=function(l,n){var O=2,L={};try{var X=jga(n);O=xq(X,1);var F=X.getMessage();ok(X,ls,3).length&&(L["grpc-web-status-details-bin"]=n)}catch(x){l.S&&l.S.getStatus()===404?(O=5,F="Not Found: "+String(l.S.G)):(O=14,F="Unable to parse RpcStatus: "+x)}return{code:O,details:F,metadata:L}}; Fq=function(l,n){n=l.indexOf(n);n>-1&&l.splice(n,1)}; Qg7=function(l,n){for(var O=0;O<l.N.length;O++)l.N[O](n)}; Xq=function(l,n){for(var O=0;O<l.B.length;O++)l.B[O](n)}; gM=function(l,n){for(var O=0;O<l.W.length;O++)l.W[O](n)}; Mwa=function(){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"}; L2=function(l,n){n.stack&&(l.stack+="\n"+n.stack);return l}; g.xU=function(l){this.L=l.d35||null;this.N=l.Jv||!1;this.W=void 0}; hn=function(l,n){g.vE.call(this);this.NQ=l;this.V=n;this.B=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.G=new Headers;this.W=null;this.Wm="GET";this.Y="";this.S=!1;this.T=this.N=this.L=null}; G10=function(l){l.N.read().then(l.ZU.bind(l)).catch(l.S8.bind(l))}; Jn=function(l){l.readyState=4;l.L=null;l.N=null;l.T=null;Zo(l)}; Zo=function(l){l.onreadystatechange&&l.onreadystatechange.call(l)}; g.wM=function(l){this.S=this.G=this.B="";this.N=null;this.V=this.W="";this.T=!1;var n;l instanceof g.wM?(this.T=l.T,g.H1(this,l.B),this.G=l.G,g.An(this,l.S),g.bs(this,l.N),this.W=l.W,rM(this,l.L.clone()),this.V=l.V):l&&(n=String(l).match(da))?(this.T=!1,g.H1(this,n[1]||"",!0),this.G=Ur(n[2]||""),g.An(this,n[3]||"",!0),g.bs(this,n[4]),this.W=Ur(n[5]||"",!0),rM(this,n[6]||"",!0),this.V=Ur(n[7]||"")):(this.T=!1,this.L=new us(null,this.T))}; g.H1=function(l,n,O){l.B=O?Ur(n,!0):n;l.B&&(l.B=l.B.replace(/:$/,""))}; g.An=function(l,n,O){l.S=O?Ur(n,!0):n}; g.bs=function(l,n){if(n){n=Number(n);if(isNaN(n)||n<0)throw Error("Bad port number "+n);l.N=n}else l.N=null}; rM=function(l,n,O){n instanceof us?(l.L=n,mF9(l.L,l.T)):(O||(n=P1(n,IB7)),l.L=new us(n,l.T))}; g.Tf=function(l,n,O){l.L.set(n,O)}; g.W1=function(l){return l instanceof g.wM?l.clone():new g.wM(l)}; Ur=function(l,n){return l?n?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""}; P1=function(l,n,O){return typeof l==="string"?(l=encodeURI(l).replace(n,dF5),O&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null}; dF5=function(l){l=l.charCodeAt(0);return"%"+(l>>4&15).toString(16)+(l&15).toString(16)}; us=function(l,n){this.W=this.S=null;this.N=l||null;this.L=!!n}; Er=function(l){l.S||(l.S=new Map,l.W=0,l.N&&c$(l.N,function(n,O){l.add(CC(n),O)}))}; $Fi=function(l,n){Er(l);n=NJ(l,n);return l.S.has(n)}; g.Vwf=function(l,n,O){l.remove(n);O.length>0&&(l.N=null,l.S.set(NJ(l,n),g.Ot(O)),l.W=l.W+O.length)}; NJ=function(l,n){n=String(n);l.L&&(n=n.toLowerCase());return n}; mF9=function(l,n){n&&!l.L&&(Er(l),l.N=null,l.S.forEach(function(O,L){var X=L.toLowerCase();L!=X&&(this.remove(L),g.Vwf(this,X,O))},l)); l.L=n}; g.BTv=function(l){var n="";g.PM(l,function(O,L){n+=L;n+=":";n+=O;n+="\r\n"}); return n}; g.Do=function(l,n,O){if(g.Qj(O))return l;O=g.BTv(O);if(typeof l==="string")return s6(l,g.RW(n),O);g.Tf(l,n,O);return l}; g.qJ=function(l){g.V.call(this);this.W=l;this.S={}}; c3a=function(l,n,O,L,X,F){if(Array.isArray(O))for(var x=0;x<O.length;x++)c3a(l,n,O[x],L,X,F);else{n=iA(n,O,L||l.handleEvent,X,F||l.W||l);if(!n)return l;l.S[n.key]=n}return l}; if8=function(){this.N=!0;this.W=0;this.S=""}; z6i=function(l,n,O){l.N=!1;throw Error("The stream is broken @"+l.W+". Error: "+O+". With input:\n"+n);}; kU=function(){this.V=null;this.T=[];this.L=this.W=this.N=this.S=this.Y=0;this.B=null;this.G=0}; yR=function(l,n,O,L){l.S=3;l.V="The stream is broken @"+l.Y+"/"+O+". Error: "+L+". With input:\n"+n;throw Error(l.V);}; MJ=function(){this.S=null;this.W=0;this.N=new if8;this.L=new kU}; SN9=function(l,n,O){l.S="The stream is broken @"+l.W+". Error: "+O+". With input:\n"+n;throw Error(l.S);}; QR=function(l){return l=="\r"||l=="\n"||l==" "||l=="\t"}; ea=function(l){this.Y=null;this.V=[];this.L="";this.NQ=[];this.N=this.W=0;this.T=!1;this.G=0;this.Q5=/[\\"]/g;this.S=this.B=0;this.Wm=!(!l||!l.r0)}; YU=function(l,n,O){l.B=3;l.Y="The stream is broken @"+l.N+"/"+O+". With input:\n"+n;throw Error(l.Y);}; Gf=function(){this.B=this.N=null;this.W=this.S=0;this.L=[];this.V=!1}; pE8=function(l){var n=g.O_(l,"Content-Type");if(!n)return null;n=n.toLowerCase();return n.startsWith("application/json")?n.startsWith("application/json+protobuf")?new Gf:new ea:n.startsWith("application/x-protobuf")?(l=g.O_(l,"Content-Transfer-Encoding"))?l.toLowerCase()=="base64"?new MJ:null:new kU:null}; ma=function(l){this.S=l;this.W=null;this.B=this.N=0;this.Y=!1;this.L=this.T=this.V=null;this.G=new g.qJ(this);this.G.listen(this.S,"readystatechange",this.Wm)}; B1=function(l,n){l.B!=n&&(l.B=n,l.T&&l.T())}; c1=function(l){l.G.removeAll();if(l.S){var n=l.S;l.S=null;n.abort();n.dispose()}}; sgi=function(l){l=this.N=l;var n=(0,g.tg)(this.v4F,this);l.L=n;l=this.N;n=(0,g.tg)(this.k$3,this);l.T=n;this.W={};this.S={}}; fBq=function(l,n){for(var O={},L=0;L<l.length;O={iB:void 0},L++)O.iB=l[L],n.forEach(function(X){return function(F){try{F(X.iB)}catch(x){}}}(O))}; is=function(l,n){var O=l.W[n];O&&O.forEach(function(L){try{L()}catch(X){}}); (O=l.S[n])&&O.forEach(function(L){L()}); l.S[n]=[]}; Ki5=function(){var l={format:"jspb"};l=l===void 0?{}:l;this.B=l.qm5||g.zk("suppressCorsPreflight",l)||!1;this.W=l.withCredentials||g.zk("withCredentials",l)||!1;this.L=l.Ebo||[];this.V=l.XXi||[];this.S=l.jL5;this.N=l.F43||!1}; twf=function(l,n,O,L,X,F){F=F===void 0?{}:F;var x=n.substring(0,n.length-X.name.length),Z,J=(Z=F)==null?void 0:Z.signal;return aB0(function(w){return new R69(function(H,A){if(J==null?0:J.aborted){var b=new Mv(1,"Aborted");b.cause=J.reason;A(b)}else{var r={},U=CAk(l,w,x);U.Dv("error",function(W){return A(W)}); U.Dv("metadata",function(W){r=W}); U.Dv("data",function(W){var N=r;N=N===void 0?{}:N;H(new CV(W,N))}); J&&J.addEventListener("abort",function(){U.cancel();var W=new Mv(1,"Aborted");W.cause=J.reason;A(W)})}})},l.V).call(l,X.T(O,L)).then(function(w){return w.LIz})}; vQ8=function(l,n,O,L,X){var F=F===void 0?{}:F;return twf(l,n,O,L,X,F)}; CAk=function(l,n,O){var L=n.P9,X=n.getMetadata(),F=lGi(l,!0);l=no9(l,X,F,O+L.getName());O=Or9(F,L.W,!1);YNe(O,X["X-Goog-Encode-Response-If-Executable"]=="base64");n=L.S(n.q$);F.send(l,"POST",n);return O}; lGi=function(l,n){n=l.N&&!n;return l.S||n?new g.ah(new g.xU({d35:l.S,Jv:n})):new g.ah}; no9=function(l,n,O,L){n["Content-Type"]="application/json+protobuf";n["X-User-Agent"]="grpc-web-javascript/0.1";var X=n.Authorization;if(X&&goa.has(X.split(" ")[0])||l.W)O.T=!0;if(l.B)L=g.Do(L,"$httpHeaders",n);else for(var F in n)O.headers.set(F,n[F]);return L}; Or9=function(l,n,O){if(O){l.isActive();O=new ma(l);var L=new sgi(O)}return new Or({xhr:l,i5i:L},n)}; aB0=function(l,n){return n.reduce(function(O,L){return function(X){return L.intercept(X,O)}},l)}; LYi=function(){this.S=new Ki5;this.W="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; zf=function(l){g.V.call(this);this.owner=l;this.signals=new Set;l&&g.c(l,this)}; Sa=function(l,n){l.signals.has(n);return n}; p2=function(l){g.V.call(this);this.OM=l;this.slots=new Map;this.XS=new Set;this.Wz=!1}; X$i=function(l,n){l.JG()||l.slots.set(n,{slotId:n,slot:void 0,wj:function(){return l.slots.delete(n)}})}; f2=function(l,n){new Promise(function(O){sr(function(){l.OM&&(l.uB=n,l.Wz=!0);for(var L=g.P(l.slots.values()),X=L.next();!X.done;X=L.next()){var F=X.value;X=F.slotId;F=F.slot;try{F(n,{signal:l,slotId:X})}catch(x){Tc(x)}}L=g.P(l.XS);for(X=L.next();!X.done;X=L.next())X.value.resolve(n);l.XS.clear();O()})})}; sr=function(l){K2.push(l);oo9()}; oo9=function(){var l,n;g.Y(function(O){switch(O.S){case 1:if(aO)return O.return();g.We(O,2,3);aO=!0;l=FY8(0);case 5:if(!(l<K2.length)){O.D2(3);break}return g.Q(O,Promise.resolve(),8);case 8:l=FY8(l);O.D2(5);break;case 3:g.q7(O);K2.length=0;aO=!1;g.ki(O,0);break;case 2:n=g.D5(O),Tc(n),O.D2(3)}})}; FY8=function(l){for(var n=l+100;l<n&&l<K2.length;)try{K2[l++]()}catch(O){Tc(O)}return l}; xvq=function(l,n){if(l.JG())n();else{var O=RO.get(l);if(O)O.push(n);else{var L=[n];RO.set(l,L);l.addOnDisposeCallback(function(){for(var X=g.P([].concat(g.E(L))),F=X.next();!F.done;F=X.next())F=F.value,F();RO.delete(l)})}}}; C2=function(l,n,O){g.V.call(this);this.T=l;this.milliseconds=n;this.hA=O;this.state=this.L=0}; h7i=function(l){return new C2(!1,l,{F0:function(){}, uN:void 0})}; tn=function(l){u1.call(this,l);this.name="TimerCancelledError"}; v1=function(l){u1.call(this,l);this.name="TimerDisposedError"}; Zr0=function(l){var n={SD:l.SD,Jk:l.Jk,Ei:!0,qX:!0};l.vT&&(l=l.vT,n.vT={xe:l.xe,x5:l.x5,S2:l.S2});return n}; lz=function(l){var n;SJ.call(this,l.Scf?new xa:new wh({IN:l.IN,vR:l.LY,qI:l.qI},[]),(n=l.onError)!=null?n:function(){},1); this.N=new g.U_;this.Bt=void 0;this.qq=l.qq;this.eG=l.eG;var O;this.onEvent=(O=l.onEvent)!=null?O:function(){}}; w$k=function(l){var n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N;return g.Y(function(q){switch(q.S){case 1:n=void 0,O=l.isReady()?6E4:1E3,L=new g.DB(O,6E5,.25,2),X={},F=1;case 2:if(!(F<=2)){q.D2(4);break}g.We(q,5);l.state=3;l.T=F-1;return g.Q(q,l.Bt&&F===1?l.Bt:l.iH(F),7);case 7:return x=q.W,l.Bt=void 0,l.state=4,Z=new Xp(l.logger,"b"),g.Q(q,Wq(TN(),x),8);case 8:return l.state=5,l.onEvent(1),X.xE=3,X.V0=new u2({challenge:x,P1:l.logger}),J=nE(l,12E4).then(function(e){return function(){l.onEvent(e.xE);return Promise.reject(new Xu(15, "MDA:Timeout"))}}(X)),g.Q(q,Promise.race([X.V0.l1, J]),9);case 9:return l.onEvent(2),w=[],l.onEvent(4),X.xE=6,g.Q(q,Promise.race([X.V0.snapshot({QX:w}),J]),10);case 10:return H=q.W,l.onEvent(5),A=g.P(w),b=A.next().value,X.Yx=b,Z.done(),l.state=6,g.Q(q,Jo5(l,l.logger.w2("g",F,l.qq.mM(H)),new Xu(10,"BWB:Timeout")),11);case 11:return X.Po=q.W,l.state=7,r=Fp(l.logger,function(e){return function(){var d=e.Po;var B=e.V0;var R=e.Yx;if(bV(d,4))B.dispose(),B=new Bq(l.logger,bV(d,4),AX(d,2)*1E3);else if(AX(d,3)){if(!R)throw new Xu(4,"PMD:Undefined");var a= R(MP(Ra(d,1)));if(!(a instanceof Function))throw new Xu(16,"APF:Failed");R=AX(d,2)*1E3;d=new dh(l.logger,a,AX(d,3),R);g.c(d,B);l.G=Math.floor((Date.now()+R)/1E3);B=d}else B.dispose(),B=new Vh(l.logger,MP(Ra(d,1)),AX(d,2)*1E3);return B}}(X),"i"),W=U=void 0,(W=(U=l).eG)==null||W.call(U,MP(Ra(X.Po,1))),l.state=8,q.return(r); case 5:N=g.D5(q);n=N instanceof Xu?N:N instanceof v1?new Xu(20,"WTO:Disposed",N):N instanceof Mv?new Xu(11,"EBH:Error",N):new Xu(12,"BSO:Unknown",N);l.reportError(n);a:{if(N instanceof Mv)switch(N.code){case 2:case 13:case 14:case 4:var y=!0;break a;default:y=!1;break a}y=N instanceof Xu?N.code!==20:!0}if(!y)throw n;return g.Q(q,nE(l,L.getValue()),12);case 12:g.qF(L);case 3:X={xE:void 0,Po:void 0,V0:void 0,Yx:void 0};F++;q.D2(2);break;case 4:throw n;}})}; nE=function(l,n){n=h7i(n);g.c(l,n);n.start();return n.G}; Jo5=function(l,n,O){return Promise.race([n,nE(l,12E4).then(function(){return Promise.reject(O)})])}; Hr5=function(l){var n,O,L;g.Y(function(X){switch(X.S){case 1:return n=void 0,g.We(X,5),g.Q(X,w$k(l),7);case 7:n=X.W;g.N7(X,6);break;case 5:O=g.D5(X);if(l.S){l.logger.hP(13);X.D2(0);break}l.logger.hP(14);n=new cq(l.logger,O instanceof Xu?O:new Xu(14,"SOM:Init",O instanceof Error?O:Error(String(O))));case 6:return L=void 0,(L=l.S)==null||L.dispose(),l.S=n,l.N.resolve(),g.We(X,8),g.Q(X,l.S.W.promise,10);case 10:g.N7(X,1);break;case 8:g.D5(X),X.D2(0)}})}; Aov=function(l,n){n.vT&&!l.cache&&l.Pn(Math.min(n.vT.dvQ,150))}; brf=function(l){var n={};g.ba(l,function(O){var L=O.event,X=n[L];n.hasOwnProperty(L)?X!==null&&(O.XT(X)||(n[L]=null)):n[L]=O}); tqv(l,function(O){return n[O.event]===null})}; OO=function(){this.II=0;this.S=!1;this.W=-1;this.GY=!1;this.cR=0}; gS=function(){this.W=null;this.S=!1}; LE=function(l){gS.call(this);this.L=l}; XP=function(){gS.call(this)}; oB=function(){gS.call(this)}; FP=function(){this.S={};this.W=!0;this.N={}}; xC=function(l,n,O){l.S[n]||(l.S[n]=new LE(O));return l.S[n]}; ro9=function(l){l.S.queryid||(l.S.queryid=new oB)}; hf=function(l,n,O){(l=l.S[n])&&l.N(O)}; Zs=function(l,n){if(g.kw(l.N,n))return l.N[n];if(l=l.S[n])return l.getValue()}; Jf=function(l){var n={},O=g.TB(l.S,function(L){return L.S}); g.PM(O,function(L,X){L=l.N[X]!==void 0?String(l.N[X]):L.S&&L.W!==null?String(L.W):"";L.length>0&&(n[X]=L)},l); return n}; Uvi=function(l){l=Jf(l);var n=[];g.PM(l,function(O,L){L in Object.prototype||typeof O!="undefined"&&n.push([L,":",O].join(""))}); return n}; PKi=function(l){xC(l,"od",u7v);xC(l,"opac",wS).S=!0;xC(l,"sbeos",wS).S=!0;xC(l,"prf",wS).S=!0;xC(l,"mwt",wS).S=!0;xC(l,"iogeo",wS)}; Ta9=function(){this.S=this.oB=null}; H4=function(){}; bz=function(){if(!Af())throw Error();}; Af=function(){return!(!rS||!rS.performance)}; UO=function(l){return l?l.passive&&WYa()?l:l.capture||!1:!1}; uz=function(l,n,O,L){return l.addEventListener?(l.addEventListener(n,O,UO(L)),!0):!1}; P4=function(l){return l.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[l.visibilityState||l.webkitVisibilityState||l.mozVisibilityState||""]||0}; Eo7=function(){}; Nak=function(){return(Yq||j6)&&Gc?Gc.mobile:!TS()&&(Ik("iPod")||Ik("iPhone")||Ik("Android")||Ik("IEMobile"))}; TS=function(){return(Yq||j6)&&Gc?!Gc.mobile&&(Ik("iPad")||Ik("Android")||Ik("Silk")):Ik("iPad")||Ik("Android")&&!Ik("Mobile")||Ik("Silk")}; W4=function(l){try{return!!l&&l.location.href!=null&&XR0(l,"foo")}catch(n){return!1}}; EO=function(l,n){if(l)for(var O in l)Object.prototype.hasOwnProperty.call(l,O)&&n(l[O],O,l)}; q69=function(){var l=[];EO(Dvg,function(n){l.push(n)}); return l}; ke9=function(l){var n,O;return(O=(n=/https?:\/\/[^\/]+/.exec(l))==null?void 0:n[0])!=null?O:""}; Qhi=function(){var l=yov("IFRAME"),n={};g.ba(Mje(),function(O){l.sandbox&&l.sandbox.supports&&l.sandbox.supports(O)&&(n[O]=!0)}); return n}; yov=function(l,n){n=n===void 0?document:n;return n.createElement(String(l).toLowerCase())}; e7k=function(l){for(var n=l;l&&l!=l.parent;)l=l.parent,W4(l)&&(n=l);return n}; mv5=function(l){l=l||N9();for(var n=new Y6i(g.Be.location.href,!1),O=null,L=l.length-1,X=L;X>=0;--X){var F=l[X];!O&&jhf.test(F.url)&&(O=F);if(F.url&&!F.nR){n=F;break}}X=null;F=l.length&&l[L].url;n.depth!=0&&F&&(X=l[L]);return new Gei(n,X,O)}; N9=function(){var l=g.Be,n=[],O=null;do{var L=l;if(W4(L)){var X=L.location.href;O=L.document&&L.document.referrer||null}else X=O,O=null;n.push(new Y6i(X||""));try{l=L.parent}catch(F){l=null}}while(l&&L!=l);L=0;for(l=n.length-1;L<=l;++L)n[L].depth=l-L;L=g.Be;if(L.location&&L.location.ancestorOrigins&&L.location.ancestorOrigins.length==n.length-1)for(l=1;l<n.length;++l)X=n[l],X.url||(X.url=L.location.ancestorOrigins[l-1]||"",X.nR=!0);return n}; Gei=function(l,n,O){this.S=l;this.W=n;this.N=O}; Y6i=function(l,n){this.url=l;this.nR=!!n;this.depth=null}; Ds=function(){this.N="&";this.W={};this.L=0;this.S=[]}; q9=function(l,n){var O={};O[l]=n;return[O]}; IGi=function(l,n,O,L,X){var F=[];EO(l,function(x,Z){(x=kC(x,n,O,L,X))&&F.push(Z+"="+x)}); return F.join(n)}; kC=function(l,n,O,L,X){if(l==null)return"";n=n||"&";O=O||",$";typeof O==="string"&&(O=O.split(""));if(l instanceof Array){if(L||(L=0),L<O.length){for(var F=[],x=0;x<l.length;x++)F.push(kC(l[x],n,O,L+1,X));return F.join(O[L])}}else if(typeof l==="object")return X||(X=0),X<2?encodeURIComponent(IGi(l,n,O,L,X+1)):"...";return encodeURIComponent(String(l))}; dv7=function(l){var n=1,O;for(O in l.W)O.length>n&&(n=O.length);return 3997-n-l.N.length-1}; yv=function(l,n){this.S=l;this.depth=n}; Vjv=function(){function l(Z,J){return Z==null?J:Z} var n=N9(),O=Math.max(n.length-1,0),L=mv5(n);n=L.S;var X=L.W,F=L.N,x=[];F&&x.push(new yv([F.url,F.nR?2:0],l(F.depth,1)));X&&X!=F&&x.push(new yv([X.url,2],0));n.url&&n!=F&&x.push(new yv([n.url,0],l(n.depth,O)));L=g.M9(x,function(Z,J){return x.slice(0,x.length-J)}); !n.url||(F||X)&&n!=F||(X=ke9(n.url))&&L.push([new yv([X,1],l(n.depth,O))]);L.push([]);return g.M9(L,function(Z){return $v5(O,Z)})}; $v5=function(l,n){g.Qv(n,function(X){return X.depth>=0}); var O=ei(n,function(X,F){return Math.max(X,F.depth)},-1),L=gqe(O+2); L[0]=l;g.ba(n,function(X){return L[X.depth+1]=X.S}); return L}; Ba7=function(){var l=l===void 0?Vjv():l;return l.map(function(n){return kC(n)})}; coe=function(l){var n=!1;n=n===void 0?!1:n;rS.google_image_requests||(rS.google_image_requests=[]);var O=yov("IMG",rS.document);n&&(O.attributionSrc="");O.src=l;rS.google_image_requests.push(O)}; YC=function(l){var n="J7";if(l.J7&&l.hasOwnProperty(n))return l.J7;var O=new l;l.J7=O;l.hasOwnProperty(n);return O}; ji=function(){this.W=new Eo7;this.S=Af()?new bz:new H4}; irq=function(){GS();var l=rS.document;return!!(l&&l.body&&l.body.getBoundingClientRect&&typeof rS.setInterval==="function"&&typeof rS.clearInterval==="function"&&typeof rS.setTimeout==="function"&&typeof rS.clearTimeout==="function")}; z7q=function(){GS();return Ba7()}; S6q=function(){}; GS=function(){var l=YC(S6q);if(!l.S){if(!rS)throw Error("Context has not been set and window is undefined.");l.S=YC(ji)}return l.S}; m1=function(l){this.RO=mW(l)}; p$q=function(l){this.N=l;this.S=-1;this.W=this.L=0}; IB=function(l,n){return function(){var O=g.eq.apply(0,arguments);if(l.S>-1)return n.apply(null,g.E(O));try{return l.S=l.N.S.now(),n.apply(null,g.E(O))}finally{l.L+=l.N.S.now()-l.S,l.S=-1,l.W+=1}}}; she=function(l,n){this.W=l;this.N=n;this.S=new p$q(l)}; fG0=function(){this.S={}}; aG5=function(){var l=dS().flags,n=KY9;l=l.S[n.key];if(n.valueType==="proto"){try{var O=JSON.parse(l);if(Array.isArray(O))return O}catch(L){}return n.defaultValue}return typeof l===typeof n.defaultValue?l:n.defaultValue}; vo5=function(){this.N=void 0;this.W=this.V=0;this.B=-1;this.z2=new FP;xC(this.z2,"mv",R7q).S=!0;xC(this.z2,"omid",wS);xC(this.z2,"epoh",wS).S=!0;xC(this.z2,"epph",wS).S=!0;xC(this.z2,"umt",wS).S=!0;xC(this.z2,"phel",wS).S=!0;xC(this.z2,"phell",wS).S=!0;xC(this.z2,"oseid",CKq).S=!0;var l=this.z2;l.S.sloi||(l.S.sloi=new XP);l.S.sloi.S=!0;xC(this.z2,"mm",$C);xC(this.z2,"ovms",tjq).S=!0;xC(this.z2,"xdi",wS).S=!0;xC(this.z2,"amp",wS).S=!0;xC(this.z2,"prf",wS).S=!0;xC(this.z2,"gtx",wS).S=!0;xC(this.z2, "mvp_lv",wS).S=!0;xC(this.z2,"ssmol",wS).S=!0;xC(this.z2,"fmd",wS).S=!0;xC(this.z2,"gen204simple",wS);this.S=new she(GS(),this.z2);this.L=!1;this.flags=new fG0}; dS=function(){return YC(vo5)}; lki=function(l,n,O,L){if(Math.random()<(L||l.S))try{if(O instanceof Ds)var X=O;else X=new Ds,EO(O,function(x,Z){var J=X,w=J.L++;x=q9(Z,x);J.S.push(w);J.W[w]=x}); var F=X.Ae(l.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+n+"&");F&&(GS(),coe(F))}catch(x){}}; na5=function(l,n,O){O=O===void 0?{}:O;this.error=l;this.context=n.context;this.msg=n.message||"";this.id=n.id||"jserror";this.meta=O}; OV9=function(){var l=l===void 0?g.Be:l;return(l=l.performance)&&l.now&&l.timing?Math.floor(l.now()+l.timing.navigationStart):g.l1()}; gai=function(){var l=l===void 0?g.Be:l;return(l=l.performance)&&l.now?l.now():null}; L50=function(l,n,O){this.label=l;this.type=n;this.value=O;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; B4=function(){var l=window;this.events=[];this.W=l||g.Be;var n=null;l&&(l.google_js_reporting_queue=l.google_js_reporting_queue||[],this.events=l.google_js_reporting_queue,n=l.google_measure_js_timing);this.S=Vv()||(n!=null?n:Math.random()<1)}; Xqi=function(l){l&&c4&&Vv()&&(c4.clearMarks("goog_"+l.label+"_"+l.uniqueId+"_start"),c4.clearMarks("goog_"+l.label+"_"+l.uniqueId+"_end"))}; oav=function(){var l=iz;this.S=zS;this.KG="jserror";this.Du=!0;this.Il=null;this.W=this.mL;this.Kp=l===void 0?null:l}; F5g=function(l,n,O){var L=Si;return IB(dS().S.S,function(){try{if(L.Kp&&L.Kp.S){var X=L.Kp.start(l.toString(),3);var F=n();L.Kp.end(X)}else F=n()}catch(Z){var x=L.Du;try{Xqi(X),x=L.W(l,new pE(sO(Z)),void 0,O)}catch(J){L.mL(217,J)}if(!x)throw Z;}return F})()}; fE=function(l,n,O,L){return IB(dS().S.S,function(){var X=g.eq.apply(0,arguments);return F5g(l,function(){return n.apply(O,X)},L)})}; sO=function(l){var n=l.toString();l.name&&n.indexOf(l.name)==-1&&(n+=": "+l.name);l.message&&n.indexOf(l.message)==-1&&(n+=": "+l.message);if(l.stack)a:{l=l.stack;var O=n;try{l.indexOf(O)==-1&&(l=O+"\n"+l);for(var L;l!=L;)L=l,l=l.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");n=l.replace(/\n */g,"\n");break a}catch(X){n=O;break a}n=void 0}return n}; pE=function(l){na5.call(this,Error(l),{message:l})}; xK5=function(){rS&&typeof rS.google_measure_js_timing!="undefined"&&(rS.google_measure_js_timing||iz.disable())}; hF5=function(l){Si.Il=function(n){g.ba(l,function(O){O(n)})}}; ZVg=function(l,n){return F5g(l,n)}; KE=function(l,n){return fE(l,n)}; aB=function(l,n,O,L){Si.mL(l,n,O,L)}; RB=function(){return Date.now()-J_i}; wq9=function(){var l=dS().N,n=CE>=0?RB()-CE:-1,O=tf?RB()-v4:-1,L=lE>=0?RB()-lE:-1;if(l==947190542)return 100;if(l==79463069)return 200;l=[2E3,4E3];var X=[250,500,1E3];aB(637,Error(),.001);var F=n;O!=-1&&O<n&&(F=O);for(n=0;n<l.length;++n)if(F<l[n]){var x=X[n];break}x===void 0&&(x=X[l.length]);return L!=-1&&L>1500&&L<4E3?500:x}; nl=function(l,n,O,L){this.top=l;this.right=n;this.bottom=O;this.left=L}; Oo=function(l){return l.right-l.left}; gZ=function(l,n){return l==n?!0:l&&n?l.top==n.top&&l.right==n.right&&l.bottom==n.bottom&&l.left==n.left:!1}; Ll=function(l,n,O){n instanceof g.AR?(l.left+=n.x,l.right+=n.x,l.top+=n.y,l.bottom+=n.y):(l.left+=n,l.right+=n,typeof O==="number"&&(l.top+=O,l.bottom+=O));return l}; X5=function(l,n,O){var L=new nl(0,0,0,0);this.time=l;this.volume=null;this.N=n;this.S=L;this.W=O}; oj=function(l,n,O,L,X,F,x,Z){this.L=l;this.T=n;this.N=O;this.V=L;this.S=X;this.B=F;this.W=x;this.G=Z}; A_9=function(l){var n=l!==l.top,O=l.top===e7k(l),L=-1,X=0;if(n&&O&&l.top.mraid){L=3;var F=l.top.mraid}else L=(F=l.mraid)?n?O?2:1:0:-1;F&&(F.IS_GMA_SDK||(X=2),chg(HV9,function(x){return typeof F[x]==="function"})||(X=1)); return{uI:F,compatibility:X,Yc2:L}}; bV7=function(){var l=window.document;return l&&typeof l.elementFromPoint==="function"}; r_5=function(l,n,O){l&&n!==null&&n!=n.top&&(n=n.top);try{return(O===void 0?0:O)?(new g.re(n.innerWidth,n.innerHeight)).round():OUa(n||window).round()}catch(L){return new g.re(-12245933,-12245933)}}; F5=function(l,n,O){try{l&&(n=n.top);var L=r_5(l,n,O),X=L.height,F=L.width;if(F===-12245933)return new nl(F,F,F,F);var x=LPe(cM(n.document).S),Z=x.x,J=x.y;return new nl(J,Z+F,J+X,Z)}catch(w){return new nl(-12245933,-12245933,-12245933,-12245933)}}; g.xH=function(l,n,O,L){this.left=l;this.top=n;this.width=O;this.height=L}; Z2=function(l,n){return l==n?!0:l&&n?l.left==n.left&&l.width==n.width&&l.top==n.top&&l.height==n.height:!1}; g.HH=function(l,n,O){if(typeof n==="string")(n=wZ(l,n))&&(l.style[n]=O);else for(var L in n){O=l;var X=n[L],F=wZ(O,L);F&&(O.style[F]=X)}}; wZ=function(l,n){var O=UK9[n];if(!O){var L=G38(n);O=L;l.style[L]===void 0&&(L=(g.CJ?"Webkit":AS?"Moz":null)+IZk(L),l.style[L]!==void 0&&(O=L));UK9[n]=O}return O}; g.bE=function(l,n){var O=l.style[G38(n)];return typeof O!=="undefined"?O:l.style[wZ(l,n)]||""}; rZ=function(l,n){var O=BM(l);return O.defaultView&&O.defaultView.getComputedStyle&&(l=O.defaultView.getComputedStyle(l,null))?l[n]||l.getPropertyValue(n)||"":""}; Uo=function(l,n){return rZ(l,n)||(l.currentStyle?l.currentStyle[n]:null)||l.style&&l.style[n]}; g.PH=function(l,n,O){if(n instanceof g.AR){var L=n.x;n=n.y}else L=n,n=O;l.style.left=g.uE(L,!1);l.style.top=g.uE(n,!1)}; Tw=function(l){try{return l.getBoundingClientRect()}catch(n){return{left:0,top:0,right:0,bottom:0}}}; upi=function(l){var n=BM(l),O=Uo(l,"position"),L=O=="fixed"||O=="absolute";for(l=l.parentNode;l&&l!=n;l=l.parentNode)if(l.nodeType==11&&l.host&&(l=l.host),O=Uo(l,"position"),L=L&&O=="static"&&l!=n.documentElement&&l!=n.body,!L&&(l.scrollWidth>l.clientWidth||l.scrollHeight>l.clientHeight||O=="fixed"||O=="absolute"||O=="relative"))return l;return null}; g.WH=function(l){var n=BM(l),O=new g.AR(0,0);if(l==(n?BM(n):document).documentElement)return O;l=Tw(l);n=LPe(cM(n).S);O.x=l.left+n.x;O.y=l.top+n.y;return O}; Thg=function(l,n){var O=new g.AR(0,0),L=tR(BM(l));if(!XR0(L,"parent"))return O;do{var X=L==n?g.WH(l):P2v(l);O.x+=X.x;O.y+=X.y}while(L&&L!=n&&L!=L.parent&&(l=L.frameElement)&&(L=L.parent));return O}; g.Eo=function(l,n){l=W55(l);n=W55(n);return new g.AR(l.x-n.x,l.y-n.y)}; P2v=function(l){l=Tw(l);return new g.AR(l.left,l.top)}; W55=function(l){if(l.nodeType==1)return P2v(l);l=l.changedTouches?l.changedTouches[0]:l;return new g.AR(l.clientX,l.clientY)}; g.N4=function(l,n,O){if(n instanceof g.re)O=n.height,n=n.width;else if(O==void 0)throw Error("missing height argument");l.style.width=g.uE(n,!0);l.style.height=g.uE(O,!0)}; g.uE=function(l,n){typeof l=="number"&&(l=(n?Math.round(l):l)+"px");return l}; g.D2=function(l){var n=Eav;if(Uo(l,"display")!="none")return n(l);var O=l.style,L=O.display,X=O.visibility,F=O.position;O.visibility="hidden";O.position="absolute";O.display="inline";l=n(l);O.display=L;O.position=F;O.visibility=X;return l}; Eav=function(l){var n=l.offsetWidth,O=l.offsetHeight,L=g.CJ&&!n&&!O;return(n===void 0||L)&&l.getBoundingClientRect?(l=Tw(l),new g.re(l.right-l.left,l.bottom-l.top)):new g.re(n,O)}; g.q4=function(l,n){l.style.display=n?"":"none"}; kH=function(l,n){n=Math.pow(10,n);return Math.floor(l*n)/n}; Nh5=function(l){return new nl(l.top,l.right,l.bottom,l.left)}; DK5=function(l){var n=l.top||0,O=l.left||0;return new nl(n,O+(l.width||0),n+(l.height||0),O)}; YH=function(l){return l!=null&&l>=0&&l<=1}; q_i=function(){var l=g.e6();return l?jz("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(n){return kq(l,n)})||kq(l,"OMI/")&&!kq(l,"XiaoMi/")?!0:kq(l,"Presto")&&kq(l,"Linux")&&!kq(l,"X11")&&!kq(l,"Android")&&!kq(l,"Mobi"):!1}; kN5=function(){this.N=!W4(rS.top);this.isMobileDevice=TS()||Nak();var l=N9();this.domain=l.length>0&&l[l.length-1]!=null&&l[l.length-1].url!=null?g.VM(l[l.length-1].url)||"":"";this.S=new nl(0,0,0,0);this.L=new g.re(0,0);this.B=new g.re(0,0);this.T=new nl(0,0,0,0);this.frameOffset=new g.AR(0,0);this.V=0;this.G=!1;this.W=!(!rS||!A_9(rS).uI);this.update(rS)}; y_9=function(l,n){n&&n.screen&&(l.L=new g.re(n.screen.width,n.screen.height))}; MJ7=function(l,n){a:{var O=l.S?new g.re(Oo(l.S),l.S.getHeight()):new g.re(0,0);n=n===void 0?rS:n;n!==null&&n!=n.top&&(n=n.top);var L=0,X=0;try{var F=n.document,x=F.body,Z=F.documentElement;if(F.compatMode=="CSS1Compat"&&Z.scrollHeight)L=Z.scrollHeight!=O.height?Z.scrollHeight:Z.offsetHeight,X=Z.scrollWidth!=O.width?Z.scrollWidth:Z.offsetWidth;else{var J=Z.scrollHeight,w=Z.scrollWidth,H=Z.offsetHeight,A=Z.offsetWidth;Z.clientHeight!=H&&(J=x.scrollHeight,w=x.scrollWidth,H=x.offsetHeight,A=x.offsetWidth); J>O.height?J>H?(L=J,X=w):(L=H,X=A):J<H?(L=J,X=w):(L=H,X=A)}var b=new g.re(X,L);break a}catch(r){b=new g.re(-12245933,-12245933);break a}b=void 0}l.B=b}; Ij=function(){var l=Gw();if(l.V>0||l.G)return!0;l=GS().W.isVisible();var n=P4(mC)===0;return l||n}; Gw=function(){return YC(kN5)}; dZ=function(l){this.N=l;this.W=0;this.S=null}; $H=function(l,n,O){this.N=l;this.wq=O===void 0?"na":O;this.B=[];this.isInitialized=!1;this.L=new X5(-1,!0,this);this.S=this;this.G=n;this.Wm=this.Y=!1;this.Cf="uk";this.Lf=!1;this.V=!0}; Vp=function(l,n){g.CO(l.B,n)||(l.B.push(n),n.KO(l.S),n.IL(l.L),n.cO()&&(l.Y=!0))}; Qof=function(l){l=l.S;l.r4();l.Qj();var n=Gw();n.T=F5(!1,l.N,n.isMobileDevice);MJ7(Gw(),l.N);l.L.S=l.PZ()}; eFq=function(l){l.Y=l.B.length?jz(l.B,function(n){return n.cO()}):!1}; Y_9=function(l){var n=g.Ot(l.B);g.ba(n,function(O){O.IL(l.L)})}; BH=function(l){var n=g.Ot(l.B);g.ba(n,function(O){O.KO(l.S)}); l.S!=l||Y_9(l)}; cH=function(l,n,O,L){this.element=l;this.S=new nl(0,0,0,0);this.N=null;this.V=new nl(0,0,0,0);this.W=n;this.z2=O;this.Lf=L;this.Q5=!1;this.timestamp=-1;this.Y=new oj(n.L,this.element,this.S,new nl(0,0,0,0),0,0,RB(),0);this.B=void 0}; jog=function(l,n){return l.B?new nl(Math.max(n.top+l.B.top,n.top),Math.min(n.left+l.B.right,n.right),Math.min(n.top+l.B.bottom,n.bottom),Math.max(n.left+l.B.left,n.left)):n.clone()}; iE=function(l){this.B=!1;this.S=l;this.L=function(){}}; GNa=function(l,n,O){this.N=O===void 0?0:O;this.W=l;this.S=n==null?"":n}; mKf=function(l){switch(Math.trunc(l.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Iki=function(l,n){return l.N<n.N?!0:l.N>n.N?!1:l.W<n.W?!0:l.W>n.W?!1:typeof l.S<typeof n.S?!0:typeof l.S>typeof n.S?!1:l.S<n.S}; zw=function(){this.N=0;this.S=[];this.W=!1}; dKk=function(l,n){(0,g.ba)(n.S,function(O){l.add(O.W,O.S,mKf(O))})}; Sz=function(l,n){var O=O===void 0?0:O;var L=L===void 0?!0:L;EO(n,function(X,F){L&&X===void 0||l.add(F,X,O)}); return l}; pl=function(l){var n=$Ki;l.W&&(g.ZI(l.S,function(O,L){return Iki(L,O)?1:Iki(O,L)?-1:0}),l.W=!1); return ei(l.S,function(O,L){L=n(L);return""+O+(O!=""&&L!=""?"&":"")+L},"")}; $Ki=function(l){var n=l.W;l=l.S;return l===""?n:typeof l==="boolean"?l?n:"":Array.isArray(l)?l.length===0?n:n+"="+l.join():n+"="+(g.CO(["mtos","tos","p"],n)?l:encodeURIComponent(l))}; VJ7=function(l){var n=n===void 0?!0:n;this.S=new zw;l!==void 0&&dKk(this.S,l);n&&this.S.add("v","unreleased",-16)}; Bha=function(l){var n=[],O=[];g.PM(l,function(L,X){if(!(X in Object.prototype)&&typeof L!="undefined")switch(Array.isArray(L)&&(L=L.join(",")),L=[X,"=",L].join(""),X){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":n.unshift(L);break;case "req":case "url":case "referrer":case "iframe_loc":O.push(L);break;default:n.push(L)}}); return n.concat(O)}; c_e=function(l){l=l.toString();GS();coe(l)}; iVi=function(){this.S=0}; zFg=function(l,n,O){(0,g.ba)(l.N,function(L){var X=l.S;if(!L.S&&(L.N(n,O),L.L())){L.S=!0;var F=L.W(),x=new zw;x.add("id","av-js");x.add("type","verif");x.add("vtype",L.B);L=YC(iVi);x.add("i",L.S++);x.add("adk",X);Sz(x,F);X=new VJ7(x);c_e(X)}})}; so=function(){this.W=this.N=this.L=this.S=0}; fl=function(l){this.W=l=l===void 0?S_e:l;this.S=g.M9(this.W,function(){return new so})}; Kl=function(l,n){return pqv(l,function(O){return O.S},n===void 0?!0:n)}; Rj=function(l,n){return aj(l,n,function(O){return O.S})}; sok=function(l,n){return pqv(l,function(O){return O.N},n===void 0?!0:n)}; Cl=function(l,n){return aj(l,n,function(O){return O.N})}; tS=function(l,n){return aj(l,n,function(O){return O.W})}; fki=function(l){g.ba(l.S,function(n){n.W=0})}; pqv=function(l,n,O){l=g.M9(l.S,function(L){return n(L)}); return O?l:K5q(l)}; aj=function(l,n,O){var L=g.Rk(l.W,function(X){return n<=X}); return L==-1?0:O(l.S[L])}; K5q=function(l){return g.M9(l,function(n,O,L){return O>0?L[O]-L[O-1]:L[O]})}; vH=function(){this.W=new fl;this.wq=this.Hm=0;this.Pm=new so;this.NQ=this.T=-1;this.Of=1E3;this.Yo=new fl([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Cf=this.Q5=-1}; lc=function(l,n){return sok(l.W,n===void 0?!0:n)}; nQ=function(l,n,O,L){var X=X===void 0?!1:X;O=fE(L,O);uz(l,n,O,{capture:X})}; gw=function(l,n){n=O4(n);return n===0?0:O4(l)/n}; O4=function(l){return Math.max(l.bottom-l.top,0)*Math.max(l.right-l.left,0)}; ak9=function(l,n){if(!l||!n)return!1;for(var O=0;l!==null&&O++<100;){if(l===n)return!0;try{if(l=l.parentElement||l){var L=BM(l),X=L&&tR(L),F=X&&X.frameElement;F&&(l=F)}}catch(x){break}}return!1}; RFf=function(l,n,O){if(!l||!n)return!1;n=Ll(l.clone(),-n.left,-n.top);l=(n.left+n.right)/2;n=(n.top+n.bottom)/2;W4(window.top)&&window.top&&window.top.document&&(window=window.top);if(!bV7())return!1;l=window.document.elementFromPoint(l,n);if(!l)return!1;n=(n=(n=BM(O))&&n.defaultView&&n.defaultView.frameElement)&&ak9(n,l);var L=l===O;l=!L&&l&&h3(l,function(X){return X===O}); return!(n||L||l)}; C25=function(l,n,O,L){return Gw().N?!1:Oo(l)<=0||l.getHeight()<=0?!0:O&&L?ZVg(208,function(){return RFf(l,n,O)}):!1}; LQ=function(l,n,O){g.V.call(this);this.position=tJ0.clone();this.b_=this.UQ();this.RH=-2;this.timeCreated=Date.now();this.IX=-1;this.iW=n;this.i_=null;this.VT=!1;this.Bw=null;this.opacity=-1;this.requestSource=O;this.a9q=!1;this.LW=function(){}; this.vV=function(){}; this.BR=new Ta9;this.BR.oB=l;this.BR.S=l;this.bG=!1;this.oS={T4:null,wX:null};this.hv=!0;this.Y2=null;this.us=this.I2m=!1;dS().V++;this.BT=this.nF();this.aX=-1;this.bK=null;this.hasCompleted=this.AGi=!1;this.z2=new FP;PKi(this.z2);vai(this);this.requestSource==1?hf(this.z2,"od",1):hf(this.z2,"od",0)}; vai=function(l){l=l.BR.oB;var n;if(n=l&&l.getAttribute)n=/-[a-z]/.test("googleAvInapp")?!1:lo5&&l.dataset?"googleAvInapp"in l.dataset:l.hasAttribute?l.hasAttribute("data-"+m1q()):!!l.getAttribute("data-"+m1q());n&&(Gw().W=!0)}; XB=function(l,n){n!=l.us&&(l.us=n,l=Gw(),n?l.V++:l.V>0&&l.V--)}; nUi=function(l,n){if(l.bK){if(n.getName()===l.bK.getName())return;l.bK.dispose();l.bK=null}n=n.create(l.BR.S,l.z2,l.cO());if(n=n!=null&&n.observe()?n:null)l.bK=n}; O2v=function(l,n,O){if(!l.i_||l.iW==-1||n.W===-1||l.i_.W===-1)return 0;l=n.W-l.i_.W;return l>O?0:l}; gU9=function(l,n,O){if(l.bK){l.bK.r7();var L=l.bK.Y,X=L.L,F=X.S;if(L.V!=null){var x=L.N;l.Bw=new g.AR(x.left-F.left,x.top-F.top)}F=l.W7()?Math.max(L.S,L.B):L.S;x={};X.volume!==null&&(x.volume=X.volume);X=l.J3(L);l.i_=L;l.y5(F,n,O,!1,x,X,L.G)}}; La9=function(l){if(l.VT&&l.Y2){var n=Zs(l.z2,"od")==1,O=Gw().S,L=l.Y2,X=l.bK?l.bK.getName():"ns",F=l.Bw,x=new g.re(Oo(O),O.getHeight());O=l.W7();l={Qpp:X,Bw:F,SuF:x,W7:O,II:l.BT.II,O2f:n};if(n=L.W){n.r7();X=n.Y;F=X.L.S;var Z=x=null;X.V!=null&&F&&(x=X.N,x=new g.AR(x.left-F.left,x.top-F.top),Z=new g.re(F.right-F.left,F.bottom-F.top));X=O?Math.max(X.S,X.B):X.S;O={Qpp:n.getName(),Bw:x,SuF:Z,W7:O,O2f:!1,II:X}}else O=null;O&&zFg(L,l,O)}}; X17=function(l,n,O){n&&(l.LW=n);O&&(l.vV=O)}; g.oJ=function(){}; g.FB=function(l){return{value:l,done:!1}}; oU5=function(){this.L=this.S=this.N=this.W=this.B=0}; Faf=function(l){var n={};var O=g.l1()-l.B;n=(n.ptlt=O,n);(O=l.W)&&(n.pnk=O);(O=l.N)&&(n.pnc=O);(O=l.L)&&(n.pnmm=O);(l=l.S)&&(n.pns=l);return n}; xJk=function(){OO.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; xk=function(l){return YH(l.volume)&&l.volume>0}; hq=function(l,n,O,L){O=O===void 0?!0:O;L=L===void 0?function(){return!0}:L; return function(X){var F=X[l];if(Array.isArray(F)&&L(X))return hZ9(F,n,O)}}; Z$=function(l,n){return function(O){return n(O)?O[l]:void 0}}; Z2i=function(l){return function(n){for(var O=0;O<l.length;O++)if(l[O]===n.e||l[O]===void 0&&!n.hasOwnProperty("e"))return!0;return!1}}; hZ9=function(l,n,O){return O===void 0||O?g.Jq(l,function(L,X){return g.CO(n,X)}):g.M9(n,function(L,X,F){return l.slice(X>0?F[X-1]+1:0,L+1).reduce(function(x,Z){return x+Z},0)})}; Jn0=function(){this.W=this.S=""}; w10=function(){}; ww=function(l,n){var O={};if(l!==void 0)if(n!=null)for(var L in n){var X=n[L];L in Object.prototype||X!=null&&(O[L]=typeof X==="function"?X(l):l[X])}else g.mf(O,l);return pl(Sz(new zw,O))}; H29=function(){var l={};this.W=(l.vs=[1,0],l.vw=[0,1],l.am=[2,2],l.a=[4,4],l.f=[8,8],l.bm=[16,16],l.b=[32,32],l.avw=[0,64],l.avs=[64,0],l.pv=[256,256],l.gdr=[0,512],l.p=[0,1024],l.r=[0,2048],l.m=[0,4096],l.um=[0,8192],l.ef=[0,16384],l.s=[0,32768],l.pmx=[0,16777216],l.mut=[33554432,33554432],l.umutb=[67108864,67108864],l.tvoff=[134217728,134217728],l);this.S={};for(var n in this.W)this.W[n][1]>0&&(this.S[n]=0);this.N=0}; Hx=function(l,n){var O=l.W[n],L=O[1];l.N+=O[0];L>0&&l.S[n]==0&&(l.S[n]=1)}; An5=function(l){var n=g.qX(l.W),O=0,L;for(L in l.S)g.CO(n,L)&&l.S[L]==1&&(O+=l.W[L][1],l.S[L]=2);return O}; b2g=function(l){var n=0,O;for(O in l.S){var L=l.S[O];if(L==1||L==2)n+=l.W[O][1]}return n}; Aq=function(){this.S=this.W=0}; bc=function(){vH.call(this);this.N=new so;this.Fi=this.Y=this.Lf=0;this.G=-1;this.uv=new so;this.B=new so;this.S=new fl;this.V=this.L=-1;this.Wm=new so;this.Of=2E3;this.z3=new Aq;this.nf=new Aq;this.G3=new Aq}; rw=function(l,n,O){var L=l.Fi;tf||O||l.G==-1||(L+=n-l.G);return L}; rni=function(){this.N=!1}; U4=function(l,n){this.N=!1;this.L=l;this.Y=n;this.B=0}; uc=function(l,n){U4.call(this,l,n);this.T=[]}; UJ7=function(){}; Px=function(){}; TU=function(l,n,O,L){cH.call(this,l,n,O,L)}; Wx=function(l,n,O){cH.call(this,null,l,n,O);this.G=l.isActive();this.T=0}; E4=function(l){return[l.top,l.left,l.bottom,l.right]}; NO=function(l,n,O,L,X,F){F=F===void 0?new Px:F;LQ.call(this,n,O,L);this.xz=X;this.le=0;this.q3={};this.YY=new H29;this.qU={};this.QO="";this.G3=null;this.Fp=!1;this.S=[];this.dP=F.W();this.V=F.N();this.L=null;this.N=-1;this.wq=this.Y=void 0;this.NQ=this.Wm=0;this.Cf=-1;this.Of=this.nf=!1;this.Lf=this.G=this.W=this.mX=this.oO=0;new fl;this.z3=this.Fi=0;this.Pm=-1;this.U9=0;this.T=g.H$;this.Q5=[this.UQ()];this.K5=2;this.qD={};this.qD.pause="p";this.qD.resume="r";this.qD.skip="s";this.qD.mute="m";this.qD.unmute= "um";this.qD.exitfullscreen="ef";this.B=null;this.Yo=this.uv=!1;this.JA=Math.floor(Date.now()/1E3-1704067200);this.Hm=0}; D$=function(l){l.hasCompleted=!0;l.U9!=0&&(l.U9=3)}; qO=function(l){return l===void 0?l:Number(l)?kH(l,3):0}; kk=function(l,n){return l.Q5[n!=null&&n<l.Q5.length?n:l.Q5.length-1]}; uqv=function(l){var n=!!Zs(dS().z2,"umt");return l.Y||!n&&!l.wq?0:1}; Psf=function(l,n){l.OS()?n=0:l.iW==-1?n=0:(n-=l.iW,n=n>Math.max(1E4,l.N/3)?0:n);var O=l.T(l)||{};O=O.currentTime!==void 0?O.currentTime:l.Wm;var L=O-l.Wm,X=0;L>=0?(l.NQ+=n,l.z3+=Math.max(n-L,0),X=Math.min(L,l.NQ)):l.Fi+=Math.abs(L);L!=0&&(l.NQ=0);l.Pm==-1&&L>0&&(l.Pm=lE>=0?RB()-lE:-1);l.Wm=O;return X}; TM8=function(l,n){jz(l.V,function(O){return O.L==n.L})||l.V.push(n)}; Wai=function(l){var n=Rj(l.yO().S,1);return yV(l,n)}; yV=function(l,n,O){return n>=15E3?!0:l.nf?(O===void 0?0:O)?!0:l.N>0?n>=l.N/2:l.Cf>0?n>=l.Cf:!1:!1}; EU0=function(l){var n=kH(l.BT.II,2),O=l.YY.N,L=l.BT,X=kk(l),F=qO(X.L),x=qO(X.V),Z=qO(L.volume),J=kH(X.T,2),w=kH(X.NQ,2),H=kH(L.II,2),A=kH(X.Q5,2),b=kH(X.Cf,2);L=kH(L.cR,2);var r=l.PX().clone().round();l=l.bK&&l.bK.N?(l.bK?l.bK.N:null).clone().round():null;X=lc(X,!1);return{uxz:n,gf:O,YF:F,n7:x,Kh:Z,xv:J,K7:w,II:H,SL:A,MN:b,cR:L,position:r,NW:l,sG:X}}; DJi=function(l,n){NMq(l.S,n,function(){return{uxz:0,gf:void 0,YF:-1,n7:-1,Kh:-1,xv:-1,K7:-1,II:-1,SL:-1,MN:-1,cR:-1,position:void 0,NW:void 0,sG:[]}}); l.S[n]=EU0(l)}; NMq=function(l,n,O){for(var L=l.length;L<n+1;)l.push(O()),L++}; QV=function(l,n,O){var L=l.qU[n];if(L!=null)return L;L=qri(l,n);var X=MX(MO,function(F){return F==n}); l=kfi(l,L,L,O,yn9[MO[X]]);n=="fully_viewable_audible_half_duration_impression"&&(l.std="csm");return l}; eu=function(l,n,O){var L=[n];if(l!=n||O!=n)L.unshift(l),L.push(O);return L}; kfi=function(l,n,O,L,X){if(l.bG)return{"if":0,vs:0};var F=l.PX().clone().round(),x=l.bK?l.bK.N:null,Z=Gw(),J=dS(),w=l.yO(),H=l.bK?l.bK.getName():"ns",A={};A["if"]=Z.N?1:void 0;A.sdk=l.L?l.L:void 0;A.t=l.timeCreated;A.p=[F.top,F.left,F.bottom,F.right];F&&x&&!gZ(x,F)&&(F=x.round(),A.cp=[F.top,F.left,F.bottom,F.right]);A.tos=Kl(w.W,!1);A.mtos=lc(w);A.mcvt=w.Pm.N;A.ps=void 0;F=rw(w,RB(),l.OS());A.vht=F;A.mut=w.uv.N;A.a=qO(l.BT.volume);A.mv=qO(w.V);A.fs=l.us?1:0;A.ft=w.Wm.S;A.at=w.B.S;A.as=w.L>0?1:0;A.atos= Kl(w.S);A.ssb=Kl(w.Yo,!1);A.amtos=sok(w.S,!1);A.uac=l.oO;A.vpt=w.N.S;H=="nio"&&(A.nio=1,A.avms="nio");A.gmm="4";A.gdr=yV(l,w.N.S,!0)?1:0;A.efpf=l.K5;if(H=="gsv"||H=="nis")H=l.bK,H.T>0&&(A.nnut=H.T);A.tcm=uqv(l);A.nmt=l.Fi;A.bt=l.z3;A.pst=l.Pm;A.vpaid=l.Y;A.dur=l.N;A.vmtime=l.Wm;A.is=l.YY.N;l.S.length>=1&&(A.i0=l.S[0].gf,A.a0=[l.S[0].Kh],A.c0=[l.S[0].II],A.ss0=[l.S[0].cR],H=l.S[0].position,F=l.S[0].NW,A.p0=H?E4(H):void 0,H&&F&&!gZ(F,H)&&(A.cp0=E4(F)));l.S.length>=2&&(A.i1=l.S[1].gf,A.a1=eu(l.S[1].YF, l.S[1].Kh,l.S[1].n7),A.c1=eu(l.S[1].xv,l.S[1].II,l.S[1].K7),A.ss1=eu(l.S[1].SL,l.S[1].cR,l.S[1].MN),H=l.S[1].position,F=l.S[1].NW,A.p1=H?E4(H):void 0,H&&F&&!gZ(F,H)&&(A.cp1=E4(F)),A.mtos1=l.S[1].sG);l.S.length>=3&&(A.i2=l.S[2].gf,A.a2=eu(l.S[2].YF,l.S[2].Kh,l.S[2].n7),A.c2=eu(l.S[2].xv,l.S[2].II,l.S[2].K7),A.ss2=eu(l.S[2].SL,l.S[2].cR,l.S[2].MN),H=l.S[2].position,F=l.S[2].NW,A.p2=H?E4(H):void 0,H&&F&&!gZ(F,H)&&(A.cp2=E4(F)),A.mtos2=l.S[2].sG);l.S.length>=4&&(A.i3=l.S[3].gf,A.a3=eu(l.S[3].YF,l.S[3].Kh, l.S[3].n7),A.c3=eu(l.S[3].xv,l.S[3].II,l.S[3].K7),A.ss3=eu(l.S[3].SL,l.S[3].cR,l.S[3].MN),H=l.S[3].position,F=l.S[3].NW,A.p3=H?E4(H):void 0,H&&F&&!gZ(F,H)&&(A.cp3=E4(F)),A.mtos3=l.S[3].sG);A.cs=b2g(l.YY);n&&(A.ic=An5(l.YY),A.dvpt=w.N.W,A.dvs=tS(w.W,.5),A.dfvs=tS(w.W,1),A.davs=tS(w.S,.5),A.dafvs=tS(w.S,1),O&&(w.N.W=0,fki(w.W),fki(w.S)),l.SC()&&(A.dtos=w.Lf,A.dav=w.Y,A.dtoss=l.le+1,O&&(w.Lf=0,w.Y=0,l.le++)),A.dat=w.B.W,A.dft=w.Wm.W,O&&(w.B.W=0,w.Wm.W=0));A.ps=[Z.B.width,Z.B.height];A.bs=[Oo(Z.S),Z.S.getHeight()]; A.scs=[Z.L.width,Z.L.height];A.dom=Z.domain;l.mX&&(A.vds=l.mX);if(l.V.length>0||l.dP)n=g.Ot(l.V),l.dP&&n.push(l.dP),A.pings=g.M9(n,function(b){return b.toString()}); n=g.M9(g.Jq(l.V,function(b){return b.V()}),function(b){return b.getId()}); vi9(n);A.ces=n;l.W&&(A.vmer=l.W);l.G&&(A.vmmk=l.G);l.Lf&&(A.vmiec=l.Lf);A.avms=l.bK?l.bK.getName():"ns";l.bK&&g.mf(A,l.bK.XU());L?(A.c=kH(l.BT.II,2),A.ss=kH(l.BT.cR,2)):A.tth=RB()-Mai;A.mc=kH(w.NQ,2);A.nc=kH(w.T,2);A.mv=qO(w.V);A.nv=qO(w.L);A.lte=kH(l.RH,2);L=kk(l,X);lc(w);A.qmtos=lc(L);A.qnc=kH(L.T,2);A.qmv=qO(L.V);A.qnv=qO(L.L);A.qas=L.L>0?1:0;A.qi=l.QO;A.avms||(A.avms="geo");A.psm=w.z3.S;A.psv=w.z3.getValue();A.psfv=w.nf.getValue();A.psa=w.G3.getValue();J=Uvi(J.z2);J.length&&(A.veid=J);l.B&&g.mf(A, Faf(l.B));A.avas=l.CA();A.vs=l.j$();A.co=QO9(l);A.tm=w.Hm;A.tu=w.wq;return A}; qri=function(l,n){if(g.CO(eZv,n))return!0;var O=l.q3[n];return O!==void 0?(l.q3[n]=!0,!O):!1}; QO9=function(l){var n=l.Hm.toString(10).padStart(2,"0");n=""+l.JA+n;l.Hm<99&&l.Hm++;return n}; jOg=function(){this.S={};var l=tR();Yk(this,l,document);var n=Yr9();try{if("1"==n){for(var O=l.parent;O!=l.top;O=O.parent)Yk(this,O,O.document);Yk(this,l.top,l.top.document)}}catch(L){}}; Yr9=function(){var l=document.documentElement;try{if(!W4(tR().top))return"2";var n=[],O=tR(l.ownerDocument);for(l=O;l!=O.top;l=l.parent)if(l.frameElement)n.push(l.frameElement);else break;return n&&n.length!=0?"1":"0"}catch(L){return"2"}}; Yk=function(l,n,O){nQ(O,"mousedown",function(){return Gfq(l)},301); nQ(n,"scroll",function(){return mJk(l)},302); nQ(O,"touchmove",function(){return Iok(l)},303); nQ(O,"mousemove",function(){return dJq(l)},304); nQ(O,"keydown",function(){return $Jg(l)},305)}; Gfq=function(l){g.PM(l.S,function(n){n.N>1E5||++n.N})}; mJk=function(l){g.PM(l.S,function(n){n.S>1E5||++n.S})}; Iok=function(l){g.PM(l.S,function(n){n.S>1E5||++n.S})}; $Jg=function(l){g.PM(l.S,function(n){n.W>1E5||++n.W})}; dJq=function(l){g.PM(l.S,function(n){n.L>1E5||++n.L})}; Va9=function(){this.S=[];this.W=[]}; ju=function(l,n){return g.ak(l.S,function(O){return O.QO==n})}; BMe=function(l,n){return n?g.ak(l.S,function(O){return O.BR.oB==n}):null}; cni=function(l,n){return g.ak(l.W,function(O){return O.m3()==2&&O.QO==n})}; m4=function(){var l=GU;return l.S.length==0?l.W:l.W.length==0?l.S:g.nm(l.W,l.S)}; i2a=function(l,n){l=n.m3()==1?l.S:l.W;var O=KO(l,function(L){return L==n}); return O!=-1?(l.splice(O,1),n.bK&&n.bK.unobserve(),n.dispose(),!0):!1}; zZ5=function(l){var n=GU;if(i2a(n,l)){switch(l.m3()){case 0:var O=function(){return null}; case 2:O=function(){return cni(n,l.QO)}; break;case 1:O=function(){return ju(n,l.QO)}}for(var L=O();L;L=O())i2a(n,L)}}; Sr0=function(l){var n=GU;l=g.Jq(l,function(O){return!BMe(n,O.BR.oB)}); n.S.push.apply(n.S,g.E(l))}; p17=function(l){var n=[];g.ba(l,function(O){jz(GU.S,function(L){return L.BR.oB===O.BR.oB&&L.QO===O.QO})||(GU.S.push(O),n.push(O))})}; IJ=function(){this.S=this.W=null}; sOf=function(l,n){function O(L,X){n(L,X)} if(l.W==null)return!1;l.S=g.ak(l.W,function(L){return L!=null&&L.m7()}); l.S&&(l.S.init(O)?Qof(l.S.S):n(l.S.S.aE(),l.S));return l.S!=null}; dw=function(l){l=fog(l);iE.call(this,l.length?l[l.length-1]:new $H(rS,0));this.N=l;this.W=null}; fog=function(l){if(!l.length)return[];l=(0,g.Jq)(l,function(O){return O!=null&&O.Gt()}); for(var n=1;n<l.length;n++)Vp(l[n-1],l[n]);return l}; $k=function(l,n,O,L){cH.call(this,l,n,O,L);this.NQ=this.Wm=this.T=this.G=this.L=null}; VV=function(l){return l.L&&l.L.takeRecords?l.L.takeRecords():[]}; aoq=function(l){if(!l.element)return!1;var n=l.element,O=l.W.S.N,L=dS().S.S;l.L=new O.IntersectionObserver(IB(L,function(X){return Bx(l,X)}),Kai); L=IB(L,function(){l.L.unobserve(n);l.L.observe(n);Bx(l,VV(l))}); O.ResizeObserver?(l.G=new O.ResizeObserver(L),l.G.observe(n)):O.MutationObserver&&(l.T=new g.Be.MutationObserver(L),l.T.observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));l.L.observe(n);Bx(l,VV(l));return!0}; Bx=function(l,n){try{if(n.length){l.Wm||(l.Wm=RB());var O=RZa(n),L=Thg(l.element,l.W.S.N),X=L.x,F=L.y;l.N=new nl(Math.round(F),Math.round(X)+O.boundingClientRect.width,Math.round(F)+O.boundingClientRect.height,Math.round(X));l.S=jog(l,l.N);var x=Nh5(O.intersectionRect);l.V=Ll(x,l.N.left-x.left,l.N.top-x.top)}}catch(Z){l.unobserve(),aB(299,Z)}}; RZa=function(l){return ei(l,function(n,O){return n.time>O.time?n:O},l[0])}; cx=function(l){l=l===void 0?rS:l;iE.call(this,new $H(l,2))}; ic=function(){var l=Cs8();$H.call(this,rS.top,l,"geo")}; Cs8=function(){dS();var l=Gw();return l.N||l.W?0:2}; ta8=function(){}; zU=function(){this.done=!1;this.S={d6:0,EM:0,Yvf:0,Fy:0,w3:-1,kU:0,fH:0,OW:0,Rfz:0};this.B=null;this.V=!1;this.N=null;this.T=0;this.W=new dZ(this)}; pQ=function(){var l=Su;l.V||(l.V=!0,vU5(l,function(){return l.L.apply(l,g.E(g.eq.apply(0,arguments)))}),l.L())}; lsv=function(){YC(ta8);var l=YC(IJ);l.S!=null&&l.S.S?Qof(l.S.S):Gw().update(rS)}; s4=function(l,n,O){if(!l.done&&(l.W.cancel(),n.length!=0)){l.N=null;try{lsv();var L=RB();dS().B=L;if(YC(IJ).S!=null)for(var X=0;X<n.length;X++)gU9(n[X],L,O);for(L=0;L<n.length;L++)La9(n[L]);++l.S.Fy}finally{O?g.ba(n,function(F){F.BT.II=0}):l.W.schedule()}}}; vU5=function(l,n){if(!l.B){n=fE(142,n);GS();var O;mC.visibilityState?O="visibilitychange":mC.mozVisibilityState?O="mozvisibilitychange":mC.webkitVisibilityState&&(O="webkitvisibilitychange");O&&uz(mC,O,n,{capture:!1})&&(l.B=n)}}; nCi=function(){var l=YC(IJ);if(l.S!=null){var n=l.S;g.ba(m4(),function(O){return nUi(O,n)})}}; OE9=function(l,n){l=l.T;tf&&(l+=n-v4);return l}; gCg=function(l){l=l===void 0?function(){return{}}:l; Si.KG="av-js";zS.S=.01;hF5([function(n){var O=dS(),L={};L=(L.bin=O.W,L.type="error",L);O=Jf(O.z2);if(!Su.N){var X=Su,F=rS.document,x=CE>=0?RB()-CE:-1,Z=RB();X.S.w3==-1&&(x=Z);var J=Gw(),w=dS(),H=Jf(w.z2),A=m4();try{if(A.length>0){var b=J.S;b&&(H.bs=[Oo(b),b.getHeight()]);var r=J.B;r&&(H.ps=[r.width,r.height]);rS.screen&&(H.scs=[rS.screen.width,rS.screen.height])}else H.url=encodeURIComponent(rS.location.href.substring(0,512)),F.referrer&&(H.referrer=encodeURIComponent(F.referrer.substring(0,512))); H.tt=x;H.pt=CE;H.bin=w.W;rS.google_osd_load_pub_page_exp!==void 0&&(H.olpp=rS.google_osd_load_pub_page_exp);H.deb=[1,X.S.d6,X.S.EM,X.S.Fy,X.S.w3,0,X.W.W,X.S.kU,X.S.fH,X.S.OW,X.S.Rfz,-1].join(";");H.tvt=OE9(X,Z);J.W&&(H.inapp=1);if(rS!==null&&rS!=rS.top){A.length>0&&(H.iframe_loc=encodeURIComponent(rS.location.href.substring(0,512)));var U=J.T;H.is=[Oo(U),U.getHeight()]}}catch(W){H.error=1}Su.N=H}b=g.jY(Su.N);r=dS().S;Zs(r.N,"prf")==1?(U=new m1,X=r.S,F=0,X.S>-1&&(F=X.N.S.now()-X.S),U=Cj(U,1,x6(X.L+ F),0),X=r.S,U=Cj(U,5,w8(X.S>-1?X.W+1:X.W),0),U=Cj(U,2,Ep(r.W.S.N()),"0"),U=Cj(U,3,Ep(r.W.S.W()),"0"),r=Cj(U,4,Ep(r.W.S.S()),"0"),U={},r=(U.pf=g.Pd(r.S()),U)):r={};g.mf(b,r);g.mf(n,L,O,b,l())}])}; X4e=function(){var l=L1k||rS;if(!l)return"";var n=[];if(!l.location||!l.location.href)return"";n.push("url="+encodeURIComponent(l.location.href.substring(0,512)));l.document&&l.document.referrer&&n.push("referrer="+encodeURIComponent(l.document.referrer.substring(0,512)));return n.join("&")}; fQ=function(){var l="youtube.player.web_20250223_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250223_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250223_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250223_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),n;if(((n=l)==null?void 0:n.length)==2)return l[1];l="youtube.player.web_20250223_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var O;return((O=l)==null?void 0:O.length)==3?"20"+l[1]+l[2]:null}; oCi=function(){return"av.default_js".includes("ima_html5_sdk")?{c$:"ima",kG:null}:"av.default_js".includes("ima_native_sdk")?{c$:"nima",kG:null}:"av.default_js".includes("admob-native-video-javascript")?{c$:"an",kG:null}:"youtube.player.web_20250223_00_RC00".includes("cast_js_sdk")?{c$:"cast",kG:fQ()}:"youtube.player.web_20250223_00_RC00".includes("youtube.player.web")?{c$:"yw",kG:fQ()}:"youtube.player.web_20250223_00_RC00".includes("outstream_web_client")?{c$:"out",kG:fQ()}:"youtube.player.web_20250223_00_RC00".includes("drx_rewarded_web")? {c$:"r",kG:fQ()}:"youtube.player.web_20250223_00_RC00".includes("gam_native_web_video")?{c$:"n",kG:fQ()}:"youtube.player.web_20250223_00_RC00".includes("admob_interstitial_video")?{c$:"int",kG:fQ()}:{c$:"j",kG:null}}; RJ=function(l,n){var O={sv:"966"};KQ!==null&&(O.v=KQ);O.cb=F1i;O.nas=GU.S.length;O.msg=l;n!==void 0&&(l=x95(n))&&(O.e=aJ[l]);return O}; CQ=function(l){return NQ(l,"custom_metric_viewable")}; x95=function(l){var n=CQ(l)?"custom_metric_viewable":l.toLowerCase();return MX(MO,function(O){return O==n})}; hxi=function(){this.S=void 0;this.W=!1;this.N=0;this.L=-1;this.B="tos"}; w49=function(l){try{var n=l.split(",");return n.length>g.qX(ZE5).length?null:ei(n,function(O,L){L=L.toLowerCase().split("=");if(L.length!=2||Jfk[L[0]]===void 0||!Jfk[L[0]](L[1]))throw Error("Entry ("+L[0]+", "+L[1]+") is invalid.");O[L[0]]=L[1];return O},{})}catch(O){return null}}; HE5=function(l,n){if(l.S==void 0)return 0;switch(l.B){case "mtos":return l.W?Cl(n.S,l.S):Cl(n.W,l.S);case "tos":return l.W?Rj(n.S,l.S):Rj(n.W,l.S)}return 0}; tq=function(l,n,O,L){U4.call(this,n,L);this.T=l;this.G=O}; vx=function(){}; lh=function(l){U4.call(this,"fully_viewable_audible_half_duration_impression",l)}; n7=function(l){this.S=l}; OU=function(l,n){U4.call(this,l,n)}; gO=function(l){uc.call(this,"measurable_impression",l)}; L7=function(){n7.apply(this,arguments)}; Xj=function(l,n,O){Wx.call(this,l,n,O)}; oU=function(l){l=l===void 0?rS:l;iE.call(this,new $H(l,2))}; Fj=function(l,n,O){Wx.call(this,l,n,O)}; xK=function(l){l=l===void 0?rS:l;iE.call(this,new $H(l,2))}; hN=function(){$H.call(this,rS,2,"mraid");this.z3=0;this.NQ=this.Q5=!1;this.T=null;this.W=A_9(this.N);this.L.S=new nl(0,0,0,0);this.Hm=!1}; ZC=function(l,n,O){l.yC("addEventListener",n,O)}; U90=function(l){dS().L=!!l.yC("isViewable");ZC(l,"viewableChange",Af0);l.yC("getState")==="loading"?ZC(l,"ready",bE5):rf9(l)}; rf9=function(l){typeof l.W.uI.AFMA_LIDAR==="string"?(l.Q5=!0,uP9(l)):(l.W.compatibility=3,l.T="nc",l.No("w"))}; uP9=function(l){l.NQ=!1;var n=Zs(dS().z2,"rmmt")==1,O=!!l.yC("isViewable");(n?!O:1)&&GS().setTimeout(KE(524,function(){l.NQ||(Pz0(l),aB(540,Error()),l.T="mt",l.No("w"))}),500); TSi(l);ZC(l,l.W.uI.AFMA_LIDAR,W1g)}; TSi=function(l){var n=Zs(dS().z2,"sneio")==1,O=l.W.uI.AFMA_LIDAR_EXP_1!==void 0,L=l.W.uI.AFMA_LIDAR_EXP_2!==void 0;(n=n&&L)&&(l.W.uI.AFMA_LIDAR_EXP_2=!0);O&&(l.W.uI.AFMA_LIDAR_EXP_1=!n)}; Pz0=function(l){l.yC("removeEventListener",l.W.uI.AFMA_LIDAR,W1g);l.Q5=!1}; EC9=function(l,n){if(l.yC("getState")==="loading")return new g.re(-1,-1);n=l.yC(n);if(!n)return new g.re(-1,-1);l=parseInt(n.width,10);n=parseInt(n.height,10);return isNaN(l)||isNaN(n)?new g.re(-1,-1):new g.re(l,n)}; bE5=function(){try{var l=YC(hN);l.yC("removeEventListener","ready",bE5);rf9(l)}catch(n){aB(541,n)}}; W1g=function(l,n){try{var O=YC(hN);O.NQ=!0;var L=l?new nl(l.y,l.x+l.width,l.y+l.height,l.x):new nl(0,0,0,0);var X=RB(),F=Ij();var x=new X5(X,F,O);x.S=L;x.volume=n;O.IL(x)}catch(Z){aB(542,Z)}}; Af0=function(l){var n=dS(),O=YC(hN);l&&!n.L&&(n.L=!0,O.Hm=!0,O.T&&O.No("w",!0))}; JN=function(){this.isInitialized=!1;this.S=this.W=null;var l={};this.T=(l.start=this.HfF,l.firstquartile=this.LJ1,l.midpoint=this.CFm,l.thirdquartile=this.goi,l.complete=this.Qz2,l.error=this.rGo,l.pause=this.Yj,l.resume=this.ip,l.skip=this.Bqq,l.viewable_impression=this.LX,l.mute=this.e2,l.unmute=this.e2,l.fullscreen=this.DQ1,l.exitfullscreen=this.mQJ,l.fully_viewable_audible_half_duration_impression=this.LX,l.measurable_impression=this.LX,l.abandon=this.Yj,l.engagedview=this.LX,l.impression=this.LX, l.creativeview=this.LX,l.progress=this.e2,l.custom_metric_viewable=this.LX,l.bufferstart=this.Yj,l.bufferfinish=this.ip,l.audio_measurable=this.LX,l.audio_audible=this.LX,l);l={};this.G=(l.overlay_resize=this.Vpz,l.abandon=this.LR,l.close=this.LR,l.collapse=this.LR,l.overlay_unmeasurable_impression=function(n){return QV(n,"overlay_unmeasurable_impression",Ij())},l.overlay_viewable_immediate_impression=function(n){return QV(n,"overlay_viewable_immediate_impression",Ij())},l.overlay_unviewable_impression= function(n){return QV(n,"overlay_unviewable_impression",Ij())},l.overlay_viewable_end_of_session_impression=function(n){return QV(n,"overlay_viewable_end_of_session_impression",Ij())},l); dS().W=3;NSf(this);this.N=null}; wO=function(l,n,O,L){l=l.dl(null,L,!0,n);l.L=O;Sr0([l]);return l}; D9i=function(l,n,O){brf(n);var L=l.S;g.ba(n,function(X){var F=g.M9(X.criteria,function(x){var Z=w49(x);if(Z==null)x=null;else if(x=new hxi,Z.visible!=null&&(x.S=Z.visible/100),Z.audible!=null&&(x.W=Z.audible==1),Z.time!=null){var J=Z.timetype=="mtos"?"mtos":"tos",w=B9k(Z.time,"%")?"%":"ms";Z=parseInt(Z.time,10);w=="%"&&(Z/=100);x.setTime(Z,w,J)}return x}); jz(F,function(x){return x==null})||TM8(O,new tq(X.id,X.event,F,L))})}; qO7=function(){var l=[],n=dS();l.push(YC(ic));Zs(n.z2,"mvp_lv")&&l.push(YC(hN));n=[new oU,new xK];n.push(new dw(l));n.push(new cx(rS));return n}; kS5=function(l){if(!l.isInitialized){l.isInitialized=!0;try{var n=RB(),O=dS(),L=Gw();CE=n;O.N=79463069;l.W!=="o"&&(L1k=e7k(rS));if(irq()){Su.S.EM=0;Su.S.w3=RB()-n;var X=qO7(),F=YC(IJ);F.W=X;sOf(F,function(){Hs()})?Su.done||(nCi(),Vp(F.S.S,l),pQ()):L.N?Hs():pQ()}else AN=!0}catch(x){throw GU.reset(),x; }}}; rO=function(l){Su.W.cancel();bh=l;Su.done=!0}; UU=function(l){if(l.W)return l.W;var n=YC(IJ).S;if(n)switch(n.getName()){case "nis":l.W="n";break;case "gsv":l.W="m"}l.W||(l.W="h");return l.W}; uh=function(l,n,O){if(l.S==null)return n.mX|=4,!1;l=yfv(l.S,O,n);n.mX|=l;return l==0}; Hs=function(){var l=[new cx(rS)],n=YC(IJ);n.W=l;sOf(n,function(){rO("i")})?Su.done||(nCi(),pQ()):rO("i")}; Mi7=function(l,n){if(!l.Fp){var O=QV(l,"start",Ij());O=l.xz.S(O).S;var L={id:"lidarv"};L.r=n;L.sv="966";KQ!==null&&(L.v=KQ);c$(O,function(X,F){return L[X]=X=="mtos"||X=="tos"?F:encodeURIComponent(F)}); n=X4e();c$(n,function(X,F){return L[X]=encodeURIComponent(F)}); n="//pagead2.googlesyndication.com/pagead/gen_204?"+pl(Sz(new zw,L));c_e(n);l.Fp=!0}}; Ps=function(l,n,O){s4(Su,[l],!Ij());DJi(l,O);O!=4&&NMq(l.Q5,O,l.UQ);return QV(l,n,Ij())}; NSf=function(l){gCg(function(){var n=QB9();l.W!=null&&(n.sdk=l.W);var O=YC(IJ);O.S!=null&&(n.avms=O.S.getName());return n})}; ex9=function(l,n,O,L){var X=BMe(GU,O);X!==null&&X.QO!==n&&(l.lr(X),X=null);X||(n=l.dl(O,RB(),!1,n),GU.W.length==0&&(dS().N=79463069),p17([n]),X=n,X.L=UU(l),L&&(X.G3=L));return X}; YO9=function(l,n){var O=l[n];O!==void 0&&O>0&&(l[n]=Math.floor(O*1E3))}; QB9=function(){var l=Gw(),n={},O={},L={};return Object.assign({},(n.sv="966",n),KQ!==null&&(O.v=KQ,O),(L["if"]=l.N?"1":"0",L.nas=String(GU.S.length),L))}; TV=function(l){U4.call(this,"audio_audible",l)}; Ws=function(l){uc.call(this,"audio_measurable",l)}; EU=function(){n7.apply(this,arguments)}; NC=function(){}; jBg=function(l){this.S=l}; yfv=function(l,n,O){l=l.W();if(typeof l==="function"){var L={};var X={};L=Object.assign({},KQ!==null&&(L.v=KQ,L),(X.sv="966",X.cb=F1i,X.e=GSi(n),X));X=QV(O,n,Ij());g.mf(L,X);O.qU[n]=X;L=O.m3()==2?Bha(L).join("&"):O.xz.S(L).S;try{return l(O.QO,L,n),0}catch(F){return 2}}else return 1}; GSi=function(l){var n=CQ(l)?"custom_metric_viewable":l;l=MX(MO,function(O){return O==n}); return aJ[l]}; DC=function(){JN.call(this);this.V=null;this.B=!1;this.L="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; m99=function(l,n,O){O=O.opt_configurable_tracking_events;l.S!=null&&Array.isArray(O)&&D9i(l,O,n)}; Is9=function(l,n,O){var L=ju(GU,n);L||(L=O.opt_nativeTime||-1,L=wO(l,n,UU(l),L),O.opt_osdId&&(L.G3=O.opt_osdId));return L}; d9v=function(l,n,O){var L=ju(GU,n);L||(L=wO(l,n,"n",O.opt_nativeTime||-1));return L}; $95=function(l,n){var O=ju(GU,n);O||(O=wO(l,n,"h",-1));return O}; Vik=function(l){dS();switch(UU(l)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; iE8=function(l,n,O,L){O=O===void 0?{}:O;var X={};g.mf(X,{opt_adElement:void 0,opt_fullscreen:void 0},O);var F=l.fA(n,O);O=F?F.xz:l.jf();if(X.opt_bounds)return O.S(RJ("ol",L));if(L!==void 0)if(x95(L)!==void 0)if(AN)l=RJ("ue",L);else if(kS5(l),bh=="i")l=RJ("i",L),l["if"]=0;else if(n=l.fA(n,X)){b:{bh=="i"&&(n.bG=!0);F=X.opt_fullscreen;F!==void 0&&XB(n,!!F);var x;if(F=!Gw().W)(F=kq(g.e6(),"CrKey")&&!(kq(g.e6(),"CrKey")&&kq(g.e6(),"SmartSpeaker"))||kq(g.e6(),"PlayStation")||kq(g.e6(),"Roku")||q_i()||kq(g.e6(), "Xbox"))||(F=g.e6(),F=kq(F,"AppleTV")||kq(F,"Apple TV")||kq(F,"CFNetwork")||kq(F,"tvOS")),F||(F=g.e6(),F=kq(F,"sdk_google_atv_x86")||kq(F,"Android TV")),F=!F;F&&(GS(),F=P4(mC)===0);if(x=F){switch(n.m3()){case 1:Mi7(n,"pv");break;case 2:l.BW(n)}rO("pv")}F=L.toLowerCase();if(x=!x)x=Zs(dS().z2,"ssmol")&&F==="loaded"?!1:g.CO(BS5,F);if(x&&n.U9==0){bh!="i"&&(Su.done=!1);x=X!==void 0?X.opt_nativeTime:void 0;lE=x=typeof x==="number"?x:RB();n.VT=!0;var Z=Ij();n.U9=1;n.q3={};n.q3.start=!1;n.q3.firstquartile= !1;n.q3.midpoint=!1;n.q3.thirdquartile=!1;n.q3.complete=!1;n.q3.resume=!1;n.q3.pause=!1;n.q3.skip=!1;n.q3.mute=!1;n.q3.unmute=!1;n.q3.viewable_impression=!1;n.q3.measurable_impression=!1;n.q3.fully_viewable_audible_half_duration_impression=!1;n.q3.fullscreen=!1;n.q3.exitfullscreen=!1;n.le=0;Z||(n.yO().G=x);s4(Su,[n],!Z)}(x=n.qD[F])&&Hx(n.YY,x);Zs(dS().z2,"fmd")||g.CO(cf8,F)&&n.dP&&n.dP.W(n,null);switch(n.m3()){case 1:var J=CQ(F)?l.T.custom_metric_viewable:l.T[F];break;case 2:J=l.G[F]}if(J&&(L=J.call(l, n,X,L),Zs(dS().z2,"fmd")&&g.CO(cf8,F)&&n.dP&&n.dP.W(n,null),L!==void 0)){X=RJ(void 0,F);g.mf(X,L);L=X;break b}L=void 0}n.U9==3&&l.lr(n);l=L}else l=RJ("nf",L);else l=void 0;else AN?l=RJ("ue"):F?(l=RJ(),g.mf(l,kfi(F,!0,!1,!1))):l=RJ("nf");return typeof l==="string"?O.S():O.S(l)}; zx0=function(l,n){n&&(l.L=n)}; SOi=function(l){var n={};return n.viewability=l.S,n.googleViewability=l.W,n}; p4g=function(l,n,O){O=O===void 0?{}:O;l=iE8(YC(DC),n,O,l);return SOi(l)}; yu=function(l){var n=g.eq.apply(1,arguments).filter(function(L){return L}).join("&"); if(!n)return l;var O=l.match(/[?&]adurl=/);return O?l.slice(0,O.index+1)+n+"&"+l.slice(O.index+1):l+(l.indexOf("?")===-1?"?":"&")+n}; fsi=function(l){var n=l.url;l=l.aop;this.S=n;this.T=l;l=/[?&]dsh=1(&|$)/.test(n);this.B=!l&&/[?&]ae=1(&|$)/.test(n);this.V=!l&&/[?&]ae=2(&|$)/.test(n);if((this.W=/[?&]adurl=([^&]*)/.exec(n))&&this.W[1]){try{var O=decodeURIComponent(this.W[1])}catch(L){O=null}this.N=O}this.L=(new Date).getTime()-sB9}; K1q=function(l){l=l.T;if(!l)return"";var n="";l.platform&&(n+="&uap="+encodeURIComponent(l.platform));l.platformVersion&&(n+="&uapv="+encodeURIComponent(l.platformVersion));l.uaFullVersion&&(n+="&uafv="+encodeURIComponent(l.uaFullVersion));l.architecture&&(n+="&uaa="+encodeURIComponent(l.architecture));l.model&&(n+="&uam="+encodeURIComponent(l.model));l.bitness&&(n+="&uab="+encodeURIComponent(l.bitness));l.fullVersionList&&(n+="&uafvl="+encodeURIComponent(l.fullVersionList.map(function(O){return encodeURIComponent(O.brand)+ ";"+encodeURIComponent(O.version)}).join("|"))); typeof l.wow64!=="undefined"&&(n+="&uaw="+Number(l.wow64));return n.substring(1)}; Cze=function(l,n,O,L,X){var F=window;var x=x===void 0?!1:x;var Z;O?Z=(x===void 0?0:x)?"//ep1.adtrafficquality.google/bg/"+tp(O)+".js":"//pagead2.googlesyndication.com/bg/"+tp(O)+".js":Z="";x=x===void 0?!1:x;O=F.document;var J={};n&&(J._scs_=n);J._bgu_=Z;J._bgp_=L;J._li_="v_h.3.0.0.0";X&&(J._upb_=X);(n=F.GoogleTyFxhY)&&typeof n.push=="function"||(n=F.GoogleTyFxhY=[]);n.push(J);n=cM(O).createElement("SCRIPT");n.type="text/javascript";n.async=!0;l=(x===void 0?0:x)?v60(ase,tp(l)+".js"):v60(Rx5,tp(l)+ ".js");g.S8(n,l);(F=(F.GoogleTyFxhYEET||{})[n.src])?F():O.getElementsByTagName("head")[0].appendChild(n)}; ti0=function(){try{var l,n;return!!((l=window)==null?0:(n=l.top)==null?0:n.location.href)&&!1}catch(O){return!0}}; et=function(){var l=vC0();l=l===void 0?"bevasrsg":l;return new Promise(function(n){var O=window===window.top?window:ti0()?window:window.top,L=O[l],X;((X=L)==null?0:X.bevasrs)?n(new Qu(L.bevasrs)):(L||(L={},L=(L.nqfbel=[],L),O[l]=L),L.nqfbel.push(function(F){n(new Qu(F))}))})}; l25=function(l){var n={c:l.SD,e:l.Jk,mc:l.Ei,me:l.qX};l.vT&&(n.co={c:l.vT.xe,a:l.vT.x5,s:l.vT.S2});return n}; YK=function(l){g.V.call(this);this.wpc=l}; Qu=function(l){g.V.call(this);var n=this;this.vl=l;this.N="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.S=void 0;this.l1=this.vl.p;this.L=this.ZX.bind(this);this.addOnDisposeCallback(function(){return void nH9(n)})}; Olf=function(l){var n;return g.Y(function(O){if(O.S==1){if(!l.vl.wpc)throw new Xu(30,"NWA");return l.W?O.return(l.W):g.Q(O,l.vl.wpc(),2)}n=O.W;l.W=new YK(n);return O.return(l.W)})}; nH9=function(l){l.S!==void 0&&(l.N.forEach(function(n){var O;(O=l.S)==null||O.removeEventListener(n,l.L)}),l.S=void 0)}; XHi=function(l){if(g.DL(g.v3(l)))return!1;if(l.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var n=new g.wM(l)}catch(O){return g.ak(gHv,function(L){return l.search(L)>0})!=null}return n.V.match(LCi)?!0:g.ak(gHv,function(O){return l.match(O)!=null})!=null}; g.jt=function(l,n){return l.replace(oHe,function(O,L){try{var X=g.eY(n,L);if(X==null||X.toString()==null)return O;X=X.toString();if(X==""||!g.DL(g.v3(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(F){}return O})}; x45=function(l){var n=FC7.qz;if(n){var O,L;(L=(O=performance).mark)==null||L.call(O,"signalSetStart__"+l)}O={};return O[Symbol.dispose]=function(){if(n){var X,F;(F=(X=performance).measure)==null||F.call(X,"signalSet__"+l,"signalSetStart__"+l)}},O}; GV=function(l,n){return Object.is(l,n)}; dO=function(l){var n=IU;IU=l;return n}; h8f=function(l){if(l.PR!==void 0){var n=$K;$K=!0;try{for(var O=g.P(l.PR),L=O.next();!L.done;L=O.next()){var X=L.value;X.X6||(l=void 0,X.X6=!0,h8f(X),(l=X.CG)==null||l.call(X,X))}}finally{$K=n}}}; Zlg=function(){var l;return((l=IU)==null?void 0:l.LG)!==!1}; JS9=function(l){l&&(l.RJ=0);return dO(l)}; wH8=function(l,n){dO(n);if(l&&l.zB!==void 0&&l.MH!==void 0&&l.lE!==void 0){if(Vu(l))for(n=l.RJ;n<l.zB.length;n++)Bs(l.zB[n],l.MH[n]);for(;l.zB.length>l.RJ;)l.zB.pop(),l.lE.pop(),l.MH.pop()}}; AS9=function(l,n,O){Hl8(l);if(l.PR.length===0&&l.zB!==void 0)for(var L=0;L<l.zB.length;L++)l.MH[L]=AS9(l.zB[L],l,L);l.WJ.push(O);return l.PR.push(n)-1}; Bs=function(l,n){Hl8(l);if(l.PR.length===1&&l.zB!==void 0)for(var O=0;O<l.zB.length;O++)Bs(l.zB[O],l.MH[O]);O=l.PR.length-1;l.PR[n]=l.PR[O];l.WJ[n]=l.WJ[O];l.PR.length--;l.WJ.length--;n<l.PR.length&&(O=l.WJ[n],l=l.PR[n],ble(l),l.MH[O]=n)}; Vu=function(l){var n,O;return l.D6||((O=l==null?void 0:(n=l.PR)==null?void 0:n.length)!=null?O:0)>0}; ble=function(l){l.zB!=null||(l.zB=[]);l.MH!=null||(l.MH=[]);l.lE!=null||(l.lE=[])}; Hl8=function(l){l.PR!=null||(l.PR=[]);l.WJ!=null||(l.WJ=[])}; U49=function(l){function n(){if($K)throw Error("");if(IU!==null){var L=IU.RJ++;ble(IU);L<IU.zB.length&&IU.zB[L]!==O&&Vu(IU)&&Bs(IU.zB[L],IU.MH[L]);IU.zB[L]!==O&&(IU.zB[L]=O,IU.MH[L]=Vu(IU)?AS9(O,IU,L):0);IU.lE[L]=O.version}return O.value} var O=Object.create(rSa);O.value=l;n[cs]=O;return n}; PEv=function(l,n){if(!Zlg())throw Error();l.qW(l.value,n)||(l.value=n,l.version++,u5v++,h8f(l))}; D4g=function(l,n){function O(){TZ5++;return L()} n=n===void 0?"":n;var L=U49(l);WC5++;var X=L[cs];X.eU=n!=null?n:"[signal]";O[cs]=X;return[O,function(F){var x={stack:[],error:void 0,hasError:!1};try{if(OF(x,x45(X.eU)),EHa++,F&&F[NZg]){var Z=F[NZg];if(!Zlg())throw Error();PEv(X,Z(X.value))}else PEv(X,F)}catch(J){x.error=J,x.hasError=!0}finally{LO(x)}}]}; zV=function(l){g.vE.call(this);var n=this;this.B=this.W=0;this.ZJ=l!=null?l:{Ou:function(X,F){return setTimeout(X,F)}, DN:function(X){clearTimeout(X)}}; var O,L;this.S=(L=(O=window.navigator)==null?void 0:O.onLine)!=null?L:!0;this.N=function(){return g.Y(function(X){return g.Q(X,ih(n),0)})}; window.addEventListener("offline",this.N);window.addEventListener("online",this.N);this.B||this.yV()}; qoi=function(){var l=g.St;zV.instance||(zV.instance=new zV(l));return zV.instance}; ih=function(l,n){return l.L?l.L:l.L=new Promise(function(O){var L,X,F,x;return g.Y(function(Z){switch(Z.S){case 1:return L=window.AbortController?new window.AbortController:void 0,F=(X=L)==null?void 0:X.signal,x=!1,g.We(Z,2,3),L&&(l.W=l.ZJ.Ou(function(){L.abort()},n||2E4)),g.Q(Z,fetch("/generate_204",{method:"HEAD", signal:F}),5);case 5:x=!0;case 3:g.q7(Z);l.L=void 0;l.W&&(l.ZJ.DN(l.W),l.W=0);x!==l.S&&(l.S=x,l.S?l.dispatchEvent("networkstatus-online"):l.dispatchEvent("networkstatus-offline"));O(x);g.ki(Z,0);break;case 2:g.D5(Z),x=!1,Z.D2(3)}})})}; p7=function(){this.data=[];this.S=-1}; kwi=function(l){l.S===-1&&(l.S=l.data.reduce(function(n,O,L){return n+(O?Math.pow(2,L):0)},0)); return l.S}; sU=function(l){l.setAttribute("role","link")}; K7=function(l,n){Array.isArray(n)&&(n=n.join(" "));n===""||n==void 0?(f7||(n={},f7=(n.atomic=!1,n.autocomplete="none",n.dropeffect="none",n.haspopup=!1,n.live="off",n.multiline=!1,n.multiselectable=!1,n.orientation="vertical",n.readonly=!1,n.relevant="additions text",n.required=!1,n.sort="none",n.busy=!1,n.disabled=!1,n.hidden=!1,n.invalid="false",n)),n=f7,"label"in n?l.setAttribute("aria-label",n.label):l.removeAttribute("aria-label")):l.setAttribute("aria-label",n)}; aU=function(l){l=l.getAttribute("aria-label");return l==null||l==void 0?"":String(l)}; g.tN=function(l,n,O){g.V.call(this);this.S=null;this.L=!1;this.V=l;this.B=O;this.W=n||window;this.N=(0,g.tg)(this.yP,this)}; ySa=function(l){l=l.W;return l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||null}; Mzg=function(l){l=l.W;return l.cancelAnimationFrame||l.cancelRequestAnimationFrame||l.webkitCancelRequestAnimationFrame||l.mozCancelRequestAnimationFrame||l.oCancelRequestAnimationFrame||l.msCancelRequestAnimationFrame||null}; g.vs=function(l,n,O){g.V.call(this);this.S=l;this.vQ=n||0;this.W=O;this.N=(0,g.tg)(this.Dl,this)}; g.lx=function(l,n){l.isActive()||l.start(n)}; g.nz=function(l){l.stop();l.Dl()}; g.OJ=function(l){l.isActive()&&g.nz(l)}; g.gP=function(l,n){this.S=l[g.Be.Symbol.iterator]();this.W=n}; Qje=function(l){return typeof l.className=="string"?l.className:l.getAttribute&&l.getAttribute("class")||""}; Lz=function(l){return l.classList?l.classList:Qje(l).match(/\S+/g)||[]}; g.XW=function(l,n){typeof l.className=="string"?l.className=n:l.setAttribute&&l.setAttribute("class",n)}; g.oK=function(l,n){return l.classList?l.classList.contains(n):g.CO(Lz(l),n)}; g.FW=function(l,n){if(l.classList)l.classList.add(n);else if(!g.oK(l,n)){var O=Qje(l);g.XW(l,O+(O.length>0?" "+n:n))}}; g.h5=function(l,n){if(l.classList)Array.prototype.forEach.call(n,function(X){g.FW(l,X)}); else{var O={};Array.prototype.forEach.call(Lz(l),function(X){O[X]=!0}); Array.prototype.forEach.call(n,function(X){O[X]=!0}); n="";for(var L in O)n+=n.length>0?" "+L:L;g.XW(l,n)}}; g.ZW=function(l,n){l.classList?l.classList.remove(n):g.oK(l,n)&&g.XW(l,Array.prototype.filter.call(Lz(l),function(O){return O!=n}).join(" "))}; g.J5=function(l,n){l.classList?Array.prototype.forEach.call(n,function(O){g.ZW(l,O)}):g.XW(l,Array.prototype.filter.call(Lz(l),function(O){return!g.CO(n,O)}).join(" "))}; g.wP=function(l,n,O){O?g.FW(l,n):g.ZW(l,n)}; e8i=function(l,n){var O=!g.oK(l,n);g.wP(l,n,O)}; g.HU=function(){g.vE.call(this);this.S=0;this.endTime=this.startTime=null}; Yo8=function(l,n){Array.isArray(n)||(n=[n]);n=n.map(function(O){return typeof O==="string"?O:O.property+" "+O.duration+"s "+O.timing+" "+O.delay+"s"}); g.HH(l,"transition",n.join(","))}; A5=function(l,n,O,L,X){g.HU.call(this);this.W=l;this.B=n;this.V=O;this.L=L;this.T=Array.isArray(X)?X:[X]}; jj9=function(l,n,O,L){return new A5(l,n,{opacity:O},{opacity:L},{property:"opacity",duration:n,timing:"ease-in",delay:0})}; m4e=function(l){l=ys(l);if(l=="")return null;var n=String(l.slice(0,4)).toLowerCase();if(("url("<n?-1:"url("==n?0:1)==0)return!l.endsWith(")")||(l?l.split("(").length-1:0)>1||l&&l.split(")"),null;if(l.indexOf("(")>0){if(/"|'/.test(l))return null;n=/([\-\w]+)\(/g;for(var O;O=n.exec(l);)if(!(O[1].toLowerCase()in Gwq))return null}return l}; bx=function(l,n){l=g.Be[l];return l&&l.prototype?(n=Object.getOwnPropertyDescriptor(l.prototype,n))&&n.get||null:null}; I2e=function(l){var n=g.Be.CSSStyleDeclaration;return n&&n.prototype&&n.prototype[l]||null}; d4a=function(l,n,O,L){if(l)return l.apply(n,L);if(g.rP&&document.documentMode<10){if(!n[O].call)throw Error("IE Clobbering detected");}else if(typeof n[O]!="function")throw Error("Clobbering detected");return n[O].apply(n,L)}; ilg=function(l){if(!l)return"";var n=document.createElement("div").style;$47(l).forEach(function(O){var L=g.CJ&&O in Vz0?O:O.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");NQ(L,"--")||NQ(L,"var")||(O=d4a(BZa,l,l.getPropertyValue?"getPropertyValue":"getAttribute",[O])||"",O=m4e(O),O!=null&&d4a(cSi,n,n.setProperty?"setProperty":"setAttribute",[L,O]))}); return n.cssText||""}; $47=function(l){g.fv(l)?l=g.Ot(l):(l=g.qX(l),g.vR(l,"cssText"));return l}; g.ux=function(l){var n,O=n=0,L=!1;l=l.split(z8i);for(var X=0;X<l.length;X++){var F=l[X];g.UJ.test(F)?(n++,O++):So0.test(F)?L=!0:pH9.test(F)?O++:sj0.test(F)&&(L=!0)}n=O==0?L?1:0:n/O>.4?-1:1;return(n==0?null:n)==-1?"rtl":"ltr"}; g.EJ=function(l){if(l instanceof PU||l instanceof TC||l instanceof WU)return l;if(typeof l.next=="function")return new PU(function(){return l}); if(typeof l[Symbol.iterator]=="function")return new PU(function(){return l[Symbol.iterator]()}); if(typeof l.LL=="function")return new PU(function(){return l.LL()}); throw Error("Not an iterator or iterable.");}; PU=function(l){this.W=l}; TC=function(l){this.W=l}; WU=function(l){PU.call(this,function(){return l}); this.N=l}; No=function(l,n,O,L,X,F,x,Z){this.S=l;this.T=n;this.N=O;this.B=L;this.L=X;this.V=F;this.W=x;this.G=Z}; DW=function(l,n){if(n==0)return l.S;if(n==1)return l.W;var O=HM(l.S,l.N,n),L=HM(l.N,l.L,n);l=HM(l.L,l.W,n);O=HM(O,L,n);L=HM(L,l,n);return HM(O,L,n)}; f25=function(l,n){var O=(n-l.S)/(l.W-l.S);if(O<=0)return 0;if(O>=1)return 1;for(var L=0,X=1,F=0,x=0;x<8;x++){F=DW(l,O);var Z=(DW(l,O+1E-6)-F)/1E-6;if(Math.abs(F-n)<1E-6)return O;if(Math.abs(Z)<1E-6)break;else F<n?L=O:X=O,O-=(F-n)/Z}for(x=0;Math.abs(F-n)>1E-6&&x<8;x++)F<n?(L=O,O=(O+X)/2):(X=O,O=(O+L)/2),F=DW(l,O);return O}; qo=function(l,n){this.start=l<n?l:n;this.end=l<n?n:l}; ky=function(l){return(l=l.exec(g.e6()))?l[1]:""}; y8=function(l){return g.Qs(KC5,l)>=0}; g.Mo=function(l){g.V.call(this);this.V=1;this.N=[];this.L=0;this.S=[];this.W={};this.T=!!l}; a2i=function(l,n,O){g.Jo(function(){l.apply(n,O)})}; g.Q8=function(l){this.S=l}; eW=function(l){this.S=l}; R88=function(l){this.data=l}; CEf=function(l){return l===void 0||l instanceof R88?l:new R88(l)}; Yy=function(l){this.S=l}; g.tzv=function(l){var n=l.creation;l=l.expiration;return!!l&&l<g.l1()||!!n&&n>g.l1()}; g.jW=function(l){this.S=l}; vHk=function(){}; GC=function(){}; mt=function(l){this.S=l;this.W=null}; IK=function(l){if(l.S==null)throw Error("Storage mechanism: Storage unavailable");var n;((n=l.W)!=null?n:l.isAvailable())||Tc(Error("Storage mechanism: Storage unavailable"))}; dP=function(){var l=null;try{l=g.Be.localStorage||null}catch(n){}mt.call(this,l)}; l$q=function(){var l=null;try{l=g.Be.sessionStorage||null}catch(n){}mt.call(this,l)}; $y=function(l,n){this.W=l;this.S=n+"::"}; g.V8=function(l){var n=new dP;return n.isAvailable()?l?new $y(n,l):n:null}; BU=function(l,n){this.S=l;this.W=n}; cU=function(l){this.S=[];if(l)a:{if(l instanceof cU){var n=l.pT();l=l.yW();if(this.S.length<=0){for(var O=this.S,L=0;L<n.length;L++)O.push(new BU(n[L],l[L]));break a}}else n=g.qX(l),l=g.DF(l);for(O=0;O<n.length;O++)this.f2(n[O],l[O])}}; ix=function(){cU.apply(this,arguments)}; zC=function(){}; nk9=function(l){var n,O,L=l.length,X=0;for(n=0;n<L;n++){var F=l.charCodeAt(n);if((F&64512)===55296&&n+1<L){var x=l.charCodeAt(n+1);(x&64512)===56320&&(F=65536+(F-55296<<10)+(x-56320),n++)}X+=F<128?1:F<2048?2:F<65536?3:4}var Z=new SW.a$(X);for(n=O=0;O<X;n++)F=l.charCodeAt(n),(F&64512)===55296&&n+1<L&&(x=l.charCodeAt(n+1),(x&64512)===56320&&(F=65536+(F-55296<<10)+(x-56320),n++)),F<128?Z[O++]=F:(F<2048?Z[O++]=192|F>>>6:(F<65536?Z[O++]=224|F>>>12:(Z[O++]=240|F>>>18,Z[O++]=128|F>>>12&63),Z[O++]=128|F>>> 6&63),Z[O++]=128|F&63);return Z}; pz=function(l){for(var n=l.length;--n>=0;)l[n]=0}; sJ=function(l,n,O,L,X){this.BC=l;this.bj=n;this.fQ=O;this.zw=L;this.rA3=X;this.mj=l&&l.length}; fz=function(l,n){this.PE=l;this.Aw=0;this.nK=n}; Kz=function(l,n){l.FT[l.pending++]=n&255;l.FT[l.pending++]=n>>>8&255}; aK=function(l,n,O){l.Xx>16-O?(l.qo|=n<<l.Xx&65535,Kz(l,l.qo),l.qo=n>>16-l.Xx,l.Xx+=O-16):(l.qo|=n<<l.Xx&65535,l.Xx+=O)}; RK=function(l,n,O){aK(l,O[n*2],O[n*2+1])}; OQ8=function(l,n){var O=0;do O|=l&1,l>>>=1,O<<=1;while(--n>0);return O>>>1}; gkf=function(l,n,O){var L=Array(16),X=0,F;for(F=1;F<=15;F++)L[F]=X=X+O[F-1]<<1;for(O=0;O<=n;O++)X=l[O*2+1],X!==0&&(l[O*2]=OQ8(L[X]++,X))}; L4e=function(l){var n;for(n=0;n<286;n++)l.JZ[n*2]=0;for(n=0;n<30;n++)l.QR[n*2]=0;for(n=0;n<19;n++)l.xV[n*2]=0;l.JZ[512]=1;l.gP=l.u2=0;l.Go=l.matches=0}; Xxv=function(l){l.Xx>8?Kz(l,l.qo):l.Xx>0&&(l.FT[l.pending++]=l.qo);l.qo=0;l.Xx=0}; oki=function(l,n,O){Xxv(l);Kz(l,O);Kz(l,~O);SW.ZR(l.FT,l.window,n,O,l.pending);l.pending+=O}; F4k=function(l,n,O,L){var X=n*2,F=O*2;return l[X]<l[F]||l[X]===l[F]&&L[n]<=L[O]}; Cz=function(l,n,O){for(var L=l.pN[O],X=O<<1;X<=l.kR;){X<l.kR&&F4k(n,l.pN[X+1],l.pN[X],l.depth)&&X++;if(F4k(n,L,l.pN[X],l.depth))break;l.pN[O]=l.pN[X];O=X;X<<=1}l.pN[O]=L}; xOg=function(l,n,O){var L=0;if(l.Go!==0){do{var X=l.FT[l.QT+L*2]<<8|l.FT[l.QT+L*2+1];var F=l.FT[l.Y9+L];L++;if(X===0)RK(l,F,n);else{var x=t5[F];RK(l,x+256+1,n);var Z=vU[x];Z!==0&&(F-=le[x],aK(l,F,Z));X--;x=X<256?nx[X]:nx[256+(X>>>7)];RK(l,x,O);Z=Ol[x];Z!==0&&(X-=gL[x],aK(l,X,Z))}}while(L<l.Go)}RK(l,256,n)}; Lx=function(l,n){var O=n.PE,L=n.nK.BC,X=n.nK.mj,F=n.nK.zw,x,Z=-1;l.kR=0;l.fO=573;for(x=0;x<F;x++)O[x*2]!==0?(l.pN[++l.kR]=Z=x,l.depth[x]=0):O[x*2+1]=0;for(;l.kR<2;){var J=l.pN[++l.kR]=Z<2?++Z:0;O[J*2]=1;l.depth[J]=0;l.gP--;X&&(l.u2-=L[J*2+1])}n.Aw=Z;for(x=l.kR>>1;x>=1;x--)Cz(l,O,x);J=F;do x=l.pN[1],l.pN[1]=l.pN[l.kR--],Cz(l,O,1),L=l.pN[1],l.pN[--l.fO]=x,l.pN[--l.fO]=L,O[J*2]=O[x*2]+O[L*2],l.depth[J]=(l.depth[x]>=l.depth[L]?l.depth[x]:l.depth[L])+1,O[x*2+1]=O[L*2+1]=J,l.pN[1]=J++,Cz(l,O,1);while(l.kR>= 2);l.pN[--l.fO]=l.pN[1];x=n.PE;J=n.Aw;L=n.nK.BC;X=n.nK.mj;F=n.nK.bj;var w=n.nK.fQ,H=n.nK.rA3,A,b=0;for(A=0;A<=15;A++)l.wE[A]=0;x[l.pN[l.fO]*2+1]=0;for(n=l.fO+1;n<573;n++){var r=l.pN[n];A=x[x[r*2+1]*2+1]+1;A>H&&(A=H,b++);x[r*2+1]=A;if(!(r>J)){l.wE[A]++;var U=0;r>=w&&(U=F[r-w]);var W=x[r*2];l.gP+=W*(A+U);X&&(l.u2+=W*(L[r*2+1]+U))}}if(b!==0){do{for(A=H-1;l.wE[A]===0;)A--;l.wE[A]--;l.wE[A+1]+=2;l.wE[H]--;b-=2}while(b>0);for(A=H;A!==0;A--)for(r=l.wE[A];r!==0;)L=l.pN[--n],L>J||(x[L*2+1]!==A&&(l.gP+=(A- x[L*2+1])*x[L*2],x[L*2+1]=A),r--)}gkf(O,Z,l.wE)}; hYe=function(l,n,O){var L,X=-1,F=n[1],x=0,Z=7,J=4;F===0&&(Z=138,J=3);n[(O+1)*2+1]=65535;for(L=0;L<=O;L++){var w=F;F=n[(L+1)*2+1];++x<Z&&w===F||(x<J?l.xV[w*2]+=x:w!==0?(w!==X&&l.xV[w*2]++,l.xV[32]++):x<=10?l.xV[34]++:l.xV[36]++,x=0,X=w,F===0?(Z=138,J=3):w===F?(Z=6,J=3):(Z=7,J=4))}}; ZQv=function(l,n,O){var L,X=-1,F=n[1],x=0,Z=7,J=4;F===0&&(Z=138,J=3);for(L=0;L<=O;L++){var w=F;F=n[(L+1)*2+1];if(!(++x<Z&&w===F)){if(x<J){do RK(l,w,l.xV);while(--x!==0)}else w!==0?(w!==X&&(RK(l,w,l.xV),x--),RK(l,16,l.xV),aK(l,x-3,2)):x<=10?(RK(l,17,l.xV),aK(l,x-3,3)):(RK(l,18,l.xV),aK(l,x-11,7));x=0;X=w;F===0?(Z=138,J=3):w===F?(Z=6,J=3):(Z=7,J=4)}}}; Jqe=function(l){var n=4093624447,O;for(O=0;O<=31;O++,n>>>=1)if(n&1&&l.JZ[O*2]!==0)return 0;if(l.JZ[18]!==0||l.JZ[20]!==0||l.JZ[26]!==0)return 1;for(O=32;O<256;O++)if(l.JZ[O*2]!==0)return 1;return 0}; Xi=function(l,n,O){l.FT[l.QT+l.Go*2]=n>>>8&255;l.FT[l.QT+l.Go*2+1]=n&255;l.FT[l.Y9+l.Go]=O&255;l.Go++;n===0?l.JZ[O*2]++:(l.matches++,n--,l.JZ[(t5[O]+256+1)*2]++,l.QR[(n<256?nx[n]:nx[256+(n>>>7)])*2]++);return l.Go===l.Oj-1}; Fi=function(l,n){l.msg=o3[n];return n}; x$=function(l){for(var n=l.length;--n>=0;)l[n]=0}; hz=function(l){var n=l.state,O=n.pending;O>l.e7&&(O=l.e7);O!==0&&(SW.ZR(l.output,n.FT,n.Gy,O,l.Oo),l.Oo+=O,n.Gy+=O,l.jh+=O,l.e7-=O,n.pending-=O,n.pending===0&&(n.Gy=0))}; wL=function(l,n){var O=l.gA>=0?l.gA:-1,L=l.Bj-l.gA,X=0;if(l.level>0){l.ZZ.MC===2&&(l.ZZ.MC=Jqe(l));Lx(l,l.qN);Lx(l,l.Kw);hYe(l,l.JZ,l.qN.Aw);hYe(l,l.QR,l.Kw.Aw);Lx(l,l.cN);for(X=18;X>=3&&l.xV[wxe[X]*2+1]===0;X--);l.gP+=3*(X+1)+5+5+4;var F=l.gP+3+7>>>3;var x=l.u2+3+7>>>3;x<=F&&(F=x)}else F=x=L+5;if(L+4<=F&&O!==-1)aK(l,n?1:0,3),oki(l,O,L);else if(l.strategy===4||x===F)aK(l,2+(n?1:0),3),xOg(l,Zw,Jz);else{aK(l,4+(n?1:0),3);O=l.qN.Aw+1;L=l.Kw.Aw+1;X+=1;aK(l,O-257,5);aK(l,L-1,5);aK(l,X-4,4);for(F=0;F<X;F++)aK(l, l.xV[wxe[F]*2+1],3);ZQv(l,l.JZ,O-1);ZQv(l,l.QR,L-1);xOg(l,l.JZ,l.QR)}L4e(l);n&&Xxv(l);l.gA=l.Bj;hz(l.ZZ)}; HK=function(l,n){l.FT[l.pending++]=n}; Az=function(l,n){l.FT[l.pending++]=n>>>8&255;l.FT[l.pending++]=n&255}; HQi=function(l,n){var O=l.zs,L=l.Bj,X=l.fZ,F=l.lB,x=l.Bj>l.VO-262?l.Bj-(l.VO-262):0,Z=l.window,J=l.W0,w=l.KX,H=l.Bj+258,A=Z[L+X-1],b=Z[L+X];l.fZ>=l.G8&&(O>>=2);F>l.Ze&&(F=l.Ze);do{var r=n;if(Z[r+X]===b&&Z[r+X-1]===A&&Z[r]===Z[L]&&Z[++r]===Z[L+1]){L+=2;for(r++;Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&Z[++L]===Z[++r]&&L<H;);r=258-(H-L);L=H-258;if(r>X){l.Pi=n;X=r;if(r>=F)break;A=Z[L+X-1];b=Z[L+X]}}}while((n=w[n&J])>x&&--O!== 0);return X<=l.Ze?X:l.Ze}; Ul=function(l){var n=l.VO,O;do{var L=l.aW-l.Ze-l.Bj;if(l.Bj>=n+(n-262)){SW.ZR(l.window,l.window,n,n,0);l.Pi-=n;l.Bj-=n;l.gA-=n;var X=O=l.W_;do{var F=l.head[--X];l.head[X]=F>=n?F-n:0}while(--O);X=O=n;do F=l.KX[--X],l.KX[X]=F>=n?F-n:0;while(--O);L+=n}if(l.ZZ.EX===0)break;X=l.ZZ;O=l.window;F=l.Bj+l.Ze;var x=X.EX;x>L&&(x=L);x===0?O=0:(X.EX-=x,SW.ZR(O,X.input,X.CV,x,F),X.state.wrap===1?X.qP=be(X.qP,O,x,F):X.state.wrap===2&&(X.qP=rL(X.qP,O,x,F)),X.CV+=x,X.Hh+=x,O=x);l.Ze+=O;if(l.Ze+l.f2>=3)for(L=l.Bj-l.f2, l.Wl=l.window[L],l.Wl=(l.Wl<<l.lS^l.window[L+1])&l.bS;l.f2&&!(l.Wl=(l.Wl<<l.lS^l.window[L+3-1])&l.bS,l.KX[L&l.W0]=l.head[l.Wl],l.head[l.Wl]=L,L++,l.f2--,l.Ze+l.f2<3););}while(l.Ze<262&&l.ZZ.EX!==0)}; ue=function(l,n){for(var O;;){if(l.Ze<262){Ul(l);if(l.Ze<262&&n===0)return 1;if(l.Ze===0)break}O=0;l.Ze>=3&&(l.Wl=(l.Wl<<l.lS^l.window[l.Bj+3-1])&l.bS,O=l.KX[l.Bj&l.W0]=l.head[l.Wl],l.head[l.Wl]=l.Bj);O!==0&&l.Bj-O<=l.VO-262&&(l.Bl=HQi(l,O));if(l.Bl>=3)if(O=Xi(l,l.Bj-l.Pi,l.Bl-3),l.Ze-=l.Bl,l.Bl<=l.rX&&l.Ze>=3){l.Bl--;do l.Bj++,l.Wl=(l.Wl<<l.lS^l.window[l.Bj+3-1])&l.bS,l.KX[l.Bj&l.W0]=l.head[l.Wl],l.head[l.Wl]=l.Bj;while(--l.Bl!==0);l.Bj++}else l.Bj+=l.Bl,l.Bl=0,l.Wl=l.window[l.Bj],l.Wl=(l.Wl<<l.lS^ l.window[l.Bj+1])&l.bS;else O=Xi(l,0,l.window[l.Bj]),l.Ze--,l.Bj++;if(O&&(wL(l,!1),l.ZZ.e7===0))return 1}l.f2=l.Bj<2?l.Bj:2;return n===4?(wL(l,!0),l.ZZ.e7===0?3:4):l.Go&&(wL(l,!1),l.ZZ.e7===0)?1:2}; PK=function(l,n){for(var O,L;;){if(l.Ze<262){Ul(l);if(l.Ze<262&&n===0)return 1;if(l.Ze===0)break}O=0;l.Ze>=3&&(l.Wl=(l.Wl<<l.lS^l.window[l.Bj+3-1])&l.bS,O=l.KX[l.Bj&l.W0]=l.head[l.Wl],l.head[l.Wl]=l.Bj);l.fZ=l.Bl;l.dG=l.Pi;l.Bl=2;O!==0&&l.fZ<l.rX&&l.Bj-O<=l.VO-262&&(l.Bl=HQi(l,O),l.Bl<=5&&(l.strategy===1||l.Bl===3&&l.Bj-l.Pi>4096)&&(l.Bl=2));if(l.fZ>=3&&l.Bl<=l.fZ){L=l.Bj+l.Ze-3;O=Xi(l,l.Bj-1-l.dG,l.fZ-3);l.Ze-=l.fZ-1;l.fZ-=2;do++l.Bj<=L&&(l.Wl=(l.Wl<<l.lS^l.window[l.Bj+3-1])&l.bS,l.KX[l.Bj&l.W0]= l.head[l.Wl],l.head[l.Wl]=l.Bj);while(--l.fZ!==0);l.hV=0;l.Bl=2;l.Bj++;if(O&&(wL(l,!1),l.ZZ.e7===0))return 1}else if(l.hV){if((O=Xi(l,0,l.window[l.Bj-1]))&&wL(l,!1),l.Bj++,l.Ze--,l.ZZ.e7===0)return 1}else l.hV=1,l.Bj++,l.Ze--}l.hV&&(Xi(l,0,l.window[l.Bj-1]),l.hV=0);l.f2=l.Bj<2?l.Bj:2;return n===4?(wL(l,!0),l.ZZ.e7===0?3:4):l.Go&&(wL(l,!1),l.ZZ.e7===0)?1:2}; Aq5=function(l,n){for(var O,L,X,F=l.window;;){if(l.Ze<=258){Ul(l);if(l.Ze<=258&&n===0)return 1;if(l.Ze===0)break}l.Bl=0;if(l.Ze>=3&&l.Bj>0&&(L=l.Bj-1,O=F[L],O===F[++L]&&O===F[++L]&&O===F[++L])){for(X=l.Bj+258;O===F[++L]&&O===F[++L]&&O===F[++L]&&O===F[++L]&&O===F[++L]&&O===F[++L]&&O===F[++L]&&O===F[++L]&&L<X;);l.Bl=258-(X-L);l.Bl>l.Ze&&(l.Bl=l.Ze)}l.Bl>=3?(O=Xi(l,1,l.Bl-3),l.Ze-=l.Bl,l.Bj+=l.Bl,l.Bl=0):(O=Xi(l,0,l.window[l.Bj]),l.Ze--,l.Bj++);if(O&&(wL(l,!1),l.ZZ.e7===0))return 1}l.f2=0;return n=== 4?(wL(l,!0),l.ZZ.e7===0?3:4):l.Go&&(wL(l,!1),l.ZZ.e7===0)?1:2}; bQ7=function(l,n){for(var O;;){if(l.Ze===0&&(Ul(l),l.Ze===0)){if(n===0)return 1;break}l.Bl=0;O=Xi(l,0,l.window[l.Bj]);l.Ze--;l.Bj++;if(O&&(wL(l,!1),l.ZZ.e7===0))return 1}l.f2=0;return n===4?(wL(l,!0),l.ZZ.e7===0?3:4):l.Go&&(wL(l,!1),l.ZZ.e7===0)?1:2}; T_=function(l,n,O,L,X){this.M6=l;this.QOF=n;this.tvG=O;this.e6Q=L;this.func=X}; rqe=function(){this.ZZ=null;this.status=0;this.FT=null;this.wrap=this.pending=this.Gy=this.cH=0;this.HS=null;this.nT=0;this.method=8;this.g2=-1;this.W0=this.hp=this.VO=0;this.window=null;this.aW=0;this.head=this.KX=null;this.lB=this.G8=this.strategy=this.level=this.rX=this.zs=this.fZ=this.Ze=this.Pi=this.Bj=this.hV=this.dG=this.Bl=this.gA=this.lS=this.bS=this.Bo=this.W_=this.Wl=0;this.JZ=new SW.Bd(1146);this.QR=new SW.Bd(122);this.xV=new SW.Bd(78);x$(this.JZ);x$(this.QR);x$(this.xV);this.cN=this.Kw= this.qN=null;this.wE=new SW.Bd(16);this.pN=new SW.Bd(573);x$(this.pN);this.fO=this.kR=0;this.depth=new SW.Bd(573);x$(this.depth);this.Xx=this.qo=this.f2=this.matches=this.u2=this.gP=this.QT=this.Go=this.Oj=this.Y9=0}; UOg=function(l,n){if(!l||!l.state||n>5||n<0)return l?Fi(l,-2):-2;var O=l.state;if(!l.output||!l.input&&l.EX!==0||O.status===666&&n!==4)return Fi(l,l.e7===0?-5:-2);O.ZZ=l;var L=O.g2;O.g2=n;if(O.status===42)if(O.wrap===2)l.qP=0,HK(O,31),HK(O,139),HK(O,8),O.HS?(HK(O,(O.HS.text?1:0)+(O.HS.KP?2:0)+(O.HS.extra?4:0)+(O.HS.name?8:0)+(O.HS.comment?16:0)),HK(O,O.HS.time&255),HK(O,O.HS.time>>8&255),HK(O,O.HS.time>>16&255),HK(O,O.HS.time>>24&255),HK(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),HK(O,O.HS.os& 255),O.HS.extra&&O.HS.extra.length&&(HK(O,O.HS.extra.length&255),HK(O,O.HS.extra.length>>8&255)),O.HS.KP&&(l.qP=rL(l.qP,O.FT,O.pending,0)),O.nT=0,O.status=69):(HK(O,0),HK(O,0),HK(O,0),HK(O,0),HK(O,0),HK(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),HK(O,3),O.status=113);else{var X=8+(O.hp-8<<4)<<8;X|=(O.strategy>=2||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6;O.Bj!==0&&(X|=32);O.status=113;Az(O,X+(31-X%31));O.Bj!==0&&(Az(O,l.qP>>>16),Az(O,l.qP&65535));l.qP=1}if(O.status===69)if(O.HS.extra){for(X= O.pending;O.nT<(O.HS.extra.length&65535)&&(O.pending!==O.cH||(O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X)),hz(l),X=O.pending,O.pending!==O.cH));)HK(O,O.HS.extra[O.nT]&255),O.nT++;O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X));O.nT===O.HS.extra.length&&(O.nT=0,O.status=73)}else O.status=73;if(O.status===73)if(O.HS.name){X=O.pending;do{if(O.pending===O.cH&&(O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X)),hz(l),X=O.pending,O.pending===O.cH)){var F=1;break}F=O.nT<O.HS.name.length? O.HS.name.charCodeAt(O.nT++)&255:0;HK(O,F)}while(F!==0);O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X));F===0&&(O.nT=0,O.status=91)}else O.status=91;if(O.status===91)if(O.HS.comment){X=O.pending;do{if(O.pending===O.cH&&(O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X)),hz(l),X=O.pending,O.pending===O.cH)){F=1;break}F=O.nT<O.HS.comment.length?O.HS.comment.charCodeAt(O.nT++)&255:0;HK(O,F)}while(F!==0);O.HS.KP&&O.pending>X&&(l.qP=rL(l.qP,O.FT,O.pending-X,X));F===0&&(O.status=103)}else O.status= 103;O.status===103&&(O.HS.KP?(O.pending+2>O.cH&&hz(l),O.pending+2<=O.cH&&(HK(O,l.qP&255),HK(O,l.qP>>8&255),l.qP=0,O.status=113)):O.status=113);if(O.pending!==0){if(hz(l),l.e7===0)return O.g2=-1,0}else if(l.EX===0&&(n<<1)-(n>4?9:0)<=(L<<1)-(L>4?9:0)&&n!==4)return Fi(l,-5);if(O.status===666&&l.EX!==0)return Fi(l,-5);if(l.EX!==0||O.Ze!==0||n!==0&&O.status!==666){L=O.strategy===2?bQ7(O,n):O.strategy===3?Aq5(O,n):WK[O.level].func(O,n);if(L===3||L===4)O.status=666;if(L===1||L===3)return l.e7===0&&(O.g2= -1),0;if(L===2&&(n===1?(aK(O,2,3),RK(O,256,Zw),O.Xx===16?(Kz(O,O.qo),O.qo=0,O.Xx=0):O.Xx>=8&&(O.FT[O.pending++]=O.qo&255,O.qo>>=8,O.Xx-=8)):n!==5&&(aK(O,0,3),oki(O,0,0),n===3&&(x$(O.head),O.Ze===0&&(O.Bj=0,O.gA=0,O.f2=0))),hz(l),l.e7===0))return O.g2=-1,0}if(n!==4)return 0;if(O.wrap<=0)return 1;O.wrap===2?(HK(O,l.qP&255),HK(O,l.qP>>8&255),HK(O,l.qP>>16&255),HK(O,l.qP>>24&255),HK(O,l.Hh&255),HK(O,l.Hh>>8&255),HK(O,l.Hh>>16&255),HK(O,l.Hh>>24&255)):(Az(O,l.qP>>>16),Az(O,l.qP&65535));hz(l);O.wrap>0&& (O.wrap=-O.wrap);return O.pending!==0?0:1}; El=function(l){if(!(this instanceof El))return new El(l);l=this.options=SW.assign({level:-1,method:8,chunkSize:16384,NA:15,Vvf:8,strategy:0,o6:""},l||{});l.raw&&l.NA>0?l.NA=-l.NA:l.f6&&l.NA>0&&l.NA<16&&(l.NA+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ZZ=new uBg;this.ZZ.e7=0;var n=this.ZZ;var O=l.level,L=l.method,X=l.NA,F=l.Vvf,x=l.strategy;if(n){var Z=1;O===-1&&(O=6);X<0?(Z=0,X=-X):X>15&&(Z=2,X-=16);if(F<1||F>9||L!==8||X<8||X>15||O<0||O>9||x<0||x>4)n=Fi(n,-2);else{X===8&&(X=9); var J=new rqe;n.state=J;J.ZZ=n;J.wrap=Z;J.HS=null;J.hp=X;J.VO=1<<J.hp;J.W0=J.VO-1;J.Bo=F+7;J.W_=1<<J.Bo;J.bS=J.W_-1;J.lS=~~((J.Bo+3-1)/3);J.window=new SW.a$(J.VO*2);J.head=new SW.Bd(J.W_);J.KX=new SW.Bd(J.VO);J.Oj=1<<F+6;J.cH=J.Oj*4;J.FT=new SW.a$(J.cH);J.QT=1*J.Oj;J.Y9=3*J.Oj;J.level=O;J.strategy=x;J.method=L;if(n&&n.state){n.Hh=n.jh=0;n.MC=2;O=n.state;O.pending=0;O.Gy=0;O.wrap<0&&(O.wrap=-O.wrap);O.status=O.wrap?42:113;n.qP=O.wrap===2?0:1;O.g2=0;if(!Pc9){L=Array(16);for(F=x=0;F<28;F++)for(le[F]= x,X=0;X<1<<vU[F];X++)t5[x++]=F;t5[x-1]=F;for(F=x=0;F<16;F++)for(gL[F]=x,X=0;X<1<<Ol[F];X++)nx[x++]=F;for(x>>=7;F<30;F++)for(gL[F]=x<<7,X=0;X<1<<Ol[F]-7;X++)nx[256+x++]=F;for(X=0;X<=15;X++)L[X]=0;for(X=0;X<=143;)Zw[X*2+1]=8,X++,L[8]++;for(;X<=255;)Zw[X*2+1]=9,X++,L[9]++;for(;X<=279;)Zw[X*2+1]=7,X++,L[7]++;for(;X<=287;)Zw[X*2+1]=8,X++,L[8]++;gkf(Zw,287,L);for(X=0;X<30;X++)Jz[X*2+1]=5,Jz[X*2]=OQ8(X,5);Tw7=new sJ(Zw,vU,257,286,15);W4q=new sJ(Jz,Ol,0,30,15);Ekv=new sJ([],Nw5,0,19,7);Pc9=!0}O.qN=new fz(O.JZ, Tw7);O.Kw=new fz(O.QR,W4q);O.cN=new fz(O.xV,Ekv);O.qo=0;O.Xx=0;L4e(O);O=0}else O=Fi(n,-2);O===0&&(n=n.state,n.aW=2*n.VO,x$(n.head),n.rX=WK[n.level].QOF,n.G8=WK[n.level].M6,n.lB=WK[n.level].tvG,n.zs=WK[n.level].e6Q,n.Bj=0,n.gA=0,n.Ze=0,n.f2=0,n.Bl=n.fZ=2,n.hV=0,n.Wl=0);n=O}}else n=-2;if(n!==0)throw Error(o3[n]);l.header&&(n=this.ZZ)&&n.state&&n.state.wrap===2&&(n.state.HS=l.header);if(l.rS){var w;typeof l.rS==="string"?w=nk9(l.rS):DO7.call(l.rS)==="[object ArrayBuffer]"?w=new Uint8Array(l.rS):w=l.rS; l=this.ZZ;F=w;x=F.length;if(l&&l.state)if(w=l.state,n=w.wrap,n===2||n===1&&w.status!==42||w.Ze)n=-2;else{n===1&&(l.qP=be(l.qP,F,x,0));w.wrap=0;x>=w.VO&&(n===0&&(x$(w.head),w.Bj=0,w.gA=0,w.f2=0),O=new SW.a$(w.VO),SW.ZR(O,F,x-w.VO,w.VO,0),F=O,x=w.VO);O=l.EX;L=l.CV;X=l.input;l.EX=x;l.CV=0;l.input=F;for(Ul(w);w.Ze>=3;){F=w.Bj;x=w.Ze-2;do w.Wl=(w.Wl<<w.lS^w.window[F+3-1])&w.bS,w.KX[F&w.W0]=w.head[w.Wl],w.head[w.Wl]=F,F++;while(--x);w.Bj=F;w.Ze=2;Ul(w)}w.Bj+=w.Ze;w.gA=w.Bj;w.f2=w.Ze;w.Ze=0;w.Bl=w.fZ=2; w.hV=0;l.CV=L;l.input=X;l.EX=O;w.wrap=n;n=0}else n=-2;if(n!==0)throw Error(o3[n]);this.sUJ=!0}}; q49=function(l,n){n=n||{};n.f6=!0;n=new El(n);n.push(l,!0);if(n.err)throw n.msg||o3[n.err];return n.result}; kUg=function(){var l=g.eq.apply(0,arguments);return l.length===0?function(n){return n}:l.length===1?l[0]:l.reduce(function(n,O){return function(){return n(O.apply(null,g.E(g.eq.apply(0,arguments))))}})}; yq5=function(){var l=g.eq.apply(0,arguments);return function(n){return function(O,L){function X(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} O=n(O,L);var F={getState:O.getState,dispatch:function(x){return X.apply(null,[x].concat(g.E(g.eq.apply(1,arguments))))}}; L=l.map(function(x){return x(F)}); X=kUg.apply(null,g.E(L))(O.dispatch);return Object.assign({},O,{dispatch:X})}}}; NH=function(){return Math.random().toString(36).substring(7).split("").join(".")}; Mu8=function(l){Object.keys(l).forEach(function(n){var O=l[n];if(typeof O(void 0,{type:Dw})==="undefined")throw Error('The slice reducer for key "'+n+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof O(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+NH()})==="undefined")throw Error('The slice reducer for key "'+ n+"\" returned undefined when probed with a random type. Don't try to handle '"+(Dw+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; QJi=function(l,n,O){function L(){if(H)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return Z} function X(r){if(typeof r!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof r+"'");if(H)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var U=!0;w===J&&(w=J.slice());w.push(r);return function(){if(U){if(H)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); U=!1;w===J&&(w=J.slice());w.splice(w.indexOf(r),1);J=null}}} function F(r){if(typeof r!=="object"||r===null)var U=!1;else{for(U=r;Object.getPrototypeOf(U)!==null;)U=Object.getPrototypeOf(U);U=Object.getPrototypeOf(r)===U}if(!U)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof r+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof r.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(H)throw Error("Reducers may not dispatch actions.");try{H=!0,Z=x(Z,r)}finally{H=!1}U=J=w;for(var W=0;W<U.length;W++)(0,U[W])();return r} if(typeof n==="function"&&typeof O==="function"||typeof O==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof n==="function"&&typeof O==="undefined"&&(O=n,n=void 0);if(typeof O!=="undefined"){if(typeof O!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+ typeof O+"'");return O(QJi)(l,n)}if(typeof l!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof l+"'");var x=l,Z=n,J=[],w=J,H=!1;F({type:Dw});var A={},b=(A.dispatch=F,A.subscribe=X,A.getState=L,A.replaceReducer=function(r){if(typeof r!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof r);x=r;F({type:eY7});return b},A[Y48]=function(){var r={}; return r.subscribe=function(U){function W(){U.next&&U.next(L())} if(typeof U!=="object"||U===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof U+"'");W();return{unsubscribe:X(W)}},r[Y48]=function(){return this},r},A); return b}; jJe=function(l){return l?(l=l.privateDoNotAccessOrElseSafeScriptWrappedValue)?E6g(l):null:null}; qH=function(l){return l?(l=l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?ku(l):null:null}; mOv=function(l){l=GU5(l);return dY(l)}; g.k$=function(l){l=GU5(l);return ku(l)}; GU5=function(l){return l===null?"null":l===void 0?"undefined":l}; yE=function(l){this.RO=mW(l)}; dO5=function(l){var n=l.split(l.slice(0,0)),O=[-407167076,function(L,X){for(X=(X%L.length+L.length)%L.length;X--;)L.unshift(L.pop())}, 163704570,-1709341625,-511996544,"_fDR40",-780428057,n,function(){for(var L=64,X=[];++L-X.length-32;)switch(L){case 46:L=95;default:X.push(String.fromCharCode(L));case 94:case 95:case 96:break;case 123:L-=76;case 92:case 93:continue;case 58:L=44;case 91:}return X}, function(L,X,F,x,Z,J,w,H,A,b){return X(Z,J,w,H,A,b)}, 406147638,function(L,X){if(X.length!=0){L=(L%X.length+X.length)%X.length;var F=X[0];X[0]=X[L];X[L]=F}}, n,null,515890667,"([{{})",null,2037755752,-349656017,-1400055663,-186326707,801246604,function(L,X){L=(L%X.length+X.length)%X.length;X.splice(L,1)}, -1989510392,1725875329,-447284258,-1835455368,2046922380,-2074844578,1115506661,1290378248,",51];c[54]=c;",511765347,511765347,281403125,function(){for(var L=64,X=[];++L-X.length-32;)switch(L){case 58:L=96;continue;case 91:L=44;break;case 65:L=47;continue;case 46:L=153;case 123:L-=58;default:X.push(String.fromCharCode(L))}return X}, -371706804,function(L){for(var X=L.length;X;)L.push(L.splice(--X,1)[0])}, 1650592660,1982457865,-2115500630,-929311872,function(L,X){X.push(L)}, "pop",429061180,606065653,1844786494,function(L,X){L=(L%X.length+X.length)%X.length;X.splice(-L).reverse().forEach(function(F){X.unshift(F)})}, function(){for(var L=64,X=[];++L-X.length-32;){switch(L){case 91:L=44;continue;case 123:L=65;break;case 65:L-=18;continue;case 58:L=96;continue;case 46:L=95}X.push(String.fromCharCode(L))}return X}, 425095947,-32434680,-79594100,190014062,'],";(";',-1150163614,n,1725875329,1751292976,1260760548,function(L,X){X.push(L)}, -1869012731,-678382736,-1625555871,function(L){L.reverse()}, -1635055224,-680898662,function(L,X,F,x,Z,J){return X(x,Z,J)}, 852029900,-1795520608,1946980241,"pop",-1733339765,function(L,X,F){var x=L.length;F.forEach(function(Z,J,w){this.push(w[J]=L[(L.indexOf(Z)-L.indexOf(this[J])+J+x--)%L.length])},X.split(""))}, function(L,X,F,x,Z){return X(F,x,Z)}, 699795061,603800358,function(){for(var L=64,X=[];++L-X.length-32;){switch(L){case 58:L-=14;case 91:case 92:case 93:continue;case 123:L=47;case 94:case 95:case 96:continue;case 46:L=95}X.push(String.fromCharCode(L))}return X}, 1201813380,function(L,X){L.length!=0&&(X=(X%L.length+L.length)%L.length,L.splice(0,1,L.splice(X,1,L[0])[0]))}, null,-736467972,1946980241,-1759603978,1963515038];O[13]=O;O[16]=O;O[79]=O;if(typeof I$i==="undefined")return l;try{try{O[36]!==0&&(O[41]===new Date("1969-12-31T20:14:58.000-03:45")/1E3||((0,O[73])((0,O[73])((0,O[11])(O[6],O[16]),O[11],O[68],O[16]),O[11],O[23],O[79]),0))&&((0,O[22])(O[26],O[12]),(0,O[37])(O[13]),O[72])((0,O[35])(),O[70],O[55]),O[80]===1&&(((((0,O[72])((0,O[35])(),O[70],O[55]),O[new Date("1970-01-01T07:16:12.000+07:15")/1E3])((0,O[8])(),O[70],O[7]),O[63])(O[79]),O[73])((0,O[22])(O[18], O[55]),O[72],(0,O[35])(),O[43],O[55]),(0,O[22])(O[62],O[55]),1)||(0,O[66])(((0,O[47])(O[58],O[16]),O[59])(O[51],O[7])+(0,O[64])(O[8])>(0,O[23])(O[39],O[56]),O[79],(0,O[38])(O[8]),O[17],O[75])}catch(L){(0,O[74])((0,O[new Date("1970-01-15T12:15:16.000-06:45")/1E3+-1277952])(O[80]),O[48],O[49],O[80])}try{O[65]==-3?(0,O[74])((0,O[38])(O[80]),O[23],O[45],O[14])^(0,O[74])((0,O[2])(O[13],O[55]),O[2],O[13],O[15]):((0,O[74])((0,O[38])(O[17]),O[976+new Date("1969-12-31T20:00:05.000-03:45")/1E3],O[3],O[62]), O[74])(O[63],O[15])&(0,O[3])((0,O[76])(),O[70],O[68]),(0,O[9])((0,O[3])((0,O[67])(),O[49],O[63]),O[3],(0,O[new Date("1969-12-31T15:00:28.000-09:00")/1E3])(O[19],O[62]),(0,O[67])(),O[70],O[20])}catch(L){O[15]>-1&&((0,O[74])(O[62],O[71]),(0,O[3])((0,O[76])(),O[5],O[63]),1)||(0,O[2])((0,O[38])(O[80]),O[19],O[44],O[63]),O[70]<=7&&(O[52]===-8&&((0,O[80])((0,O[16])(),O[13],O[15]),1)||(0,O[19])(O[37],O[3]))}finally{O[73]<-9&&(O[29]<=0&&((0,O[0])(((0,O[30])(O[54],O[15]),O[80])((0,O[16])(),O[13],O[20]),O[81], (0,O[9])(O[15],O[10])/(0,O[2])(O[20],O[42]),(0,O[55])(O[60],O[3]),(0,O[81])((0,O[55])(O[27],O[15]),O[30],O[53],O[20]),O[80],(0,O[16])(),O[new Date("1969-12-31T18:45:13.000-05:15")/1E3],O[63]),[])||(((0,O[81])((((0,O[2])(O[63],O[25]),O[2])(O[21],O[5]),O[2])(O[63],O[8]),O[55],O[41],O[3]),(0,O[38])(O[66]),O[48])((0,O[22])(O[42],O[72]),O[62],O[81],O[46]),O[14])(O[38],O[46])),O[18]==9?(0,O[23])((0,O[16])((0,O[22])((0,O[42])(),O[77],O[5]),O[13],(0,O[28])(O[41],O[7]),O[new Date("1969-12-31T21:48:47.000-02:15")/ 1E3*-145+1+32919]),O[45],O[75],O[41]):(0,O[23])((0,O[23])((0,O[23])((0,O[81])(O[25],O[29]),O[70],O[83],O[42]),O[39],O[16],O[8]),O[3],O[6],O[77]),O[27]>-8&&(O[35]!==-5?(0,O[54])((((0,O[new Date("1970-01-01T01:15:28.000+01:15")/1E3])(O[61],O[77]),O[new Date("1969-12-31T21:45:53.000-02:15")/1E3])((0,O[64])(),O[24],O[36]),(0,O[66])(O[72],O[68])),O[59],O[72],O[2])*((0,O[18])(O[77]),O[23])(O[24],O[60]):((0,O[54])((0,O[18])(O[36]),O[3],O[8],O[36])^(0,O[54])((0,O[3])(O[32],O[36]),O[44],O[77]))&((0,O[18])(O[60]), O[53])((0,O[57])(),O[51],O[36]))}try{O[79]>=-5&&(((0,O[44])(O[78]),O[30])(((0,O[56])(O[21],O[12]),O[66])(O[7]),O[8],O[26],O[6]),{})||(0,O[37])((0,O[31])((0,O[20])(),O[33],O[48]),O[81],((0,O[31])((0,O[68])(),O[14],O[48]),O[31])((0,O[68])(),O[33],O[48]),O[42],O[7]),O[69]>=3&&(O[74]===4?(0,O[81])(O[75],O[7]):(0,O[25])(O[12],O[39]))}catch(L){(0,O[31])((0,O[11])(),O[60],O[48]),(0,O[25])(O[3],O[54])}finally{O[82]!=4&&(O[13]<=-6?(0,O[25])(O[7],O[38]):(0,O[25])(O[24],O[9]))}}catch(L){return"yr2HQHp1swMr50B0OL-_w8_"+ l}return n.join("")}; $Oe=function(l){return l,"normal"[0+!!l]}; g.MH=function(l){this.name=l}; Vuk=function(l){this.RO=mW(l)}; QE=function(l){this.RO=mW(l)}; eg=function(l){this.RO=mW(l)}; Bw8=function(l){this.RO=mW(l)}; Y$=function(l){this.RO=mW(l)}; jg=function(l){this.RO=mW(l)}; G_=function(l){this.RO=mW(l)}; mq=function(l){this.RO=mW(l)}; I3=function(l){this.RO=mW(l)}; dL=function(l){this.RO=mW(l)}; $$=function(l){this.RO=mW(l)}; VE=function(l){this.RO=mW(l)}; BK=function(l){this.RO=mW(l)}; cK=function(l){this.RO=mW(l)}; Sg=function(l){this.RO=mW(l)}; px=function(l){this.RO=mW(l,500)}; sl=function(l){this.RO=mW(l)}; fx=function(l){this.RO=mW(l)}; cq9=function(l){this.RO=mW(l)}; iQi=function(){return g.zk("yt.ads.biscotti.lastId_")||""}; zYg=function(l){g.i9("yt.ads.biscotti.lastId_",l)}; a3=function(){var l=arguments,n=Kx;l.length>1?n[l[0]]=l[1]:l.length===1&&Object.assign(n,l[0])}; g.R3=function(l,n){return l in Kx?Kx[l]:n}; Cx=function(l){var n=Kx.EXPERIMENT_FLAGS;return n?n[l]:void 0}; S48=function(l){tz.forEach(function(n){return n(l)})}; g.lk=function(l){return l&&window.yterr?function(){try{return l.apply(this,arguments)}catch(n){g.vK(n)}}:l}; g.vK=function(l){var n=g.zk("yt.logging.errors.log");n?n(l,"ERROR",void 0,void 0,void 0,void 0,void 0):(n=g.R3("ERRORS",[]),n.push([l,"ERROR",void 0,void 0,void 0,void 0,void 0]),a3("ERRORS",n));S48(l)}; nh=function(l,n,O,L,X){var F=g.zk("yt.logging.errors.log");F?F(l,"WARNING",n,O,L,void 0,X):(F=g.R3("ERRORS",[]),F.push([l,"WARNING",n,O,L,void 0,X]),a3("ERRORS",F))}; O0=function(l,n){n=l.split(n);for(var O={},L=0,X=n.length;L<X;L++){var F=n[L].split("=");if(F.length===1&&F[0]||F.length===2)try{var x=px7(F[0]||""),Z=px7(F[1]||"");if(x in O){var J=O[x];Array.isArray(J)?g.Lm(J,Z):O[x]=[J,Z]}else O[x]=Z}catch(b){var w=b,H=F[0],A=String(O0);w.args=[{key:H,value:F[1],query:l,method:sJa===A?"unchanged":A}];f$9.hasOwnProperty(H)||nh(w)}}return O}; gc=function(l){var n=[];g.PM(l,function(O,L){var X=g.RW(L);g.ba(Array.isArray(O)?O:[O],function(F){F==""?n.push(X):n.push(X+"="+g.RW(F))})}); return n.join("&")}; Lh=function(l){l.charAt(0)==="?"&&(l=l.substring(1));return O0(l,"&")}; XX=function(l){return l.split(",").map(function(n){return Lh(n)})}; g.oT=function(l){return l.indexOf("?")!==-1?(l=(l||"").split("#")[0],l=l.split("?",2),Lh(l.length>1?l[1]:l[0])):{}}; FX=function(l,n){return K4g(l,n||{},!0)}; xp=function(l,n){return K4g(l,n||{},!1)}; K4g=function(l,n,O){var L=l.split("#",2);l=L[0];L=L.length>1?"#"+L[1]:"";var X=l.split("?",2);l=X[0];X=Lh(X[1]||"");for(var F in n)if(O||!g.kw(X,F))X[F]=n[F];return g.pr(l,X)+L}; hP=function(l){if(!n)var n=window.location.href;var O=g.$o(1,l),L=g.VM(l);O&&L?(l=l.match(da),n=n.match(da),l=l[3]==n[3]&&l[1]==n[1]&&l[4]==n[4]):l=L?g.VM(n)===L&&(Number(g.$o(4,n))||null)===(Number(g.$o(4,l))||null):!0;return l}; ZE=function(l){l||(l=document.location.href);l=g.$o(1,l);return l!==null&&l==="https"}; JP=function(l){l=a$7(l);return l===null?!1:l[0]==="com"&&l[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; RYi=function(l){l=a$7(l);return l===null?!1:l[1]==="google"?!0:l[2]==="google"?l[0]==="au"&&l[1]==="com"?!0:l[0]==="uk"&&l[1]==="co"?!0:!1:!1}; a$7=function(l){l=g.VM(l);return l!==null?l.split(".").reverse():null}; px7=function(l){return l&&l.match(Cca)?l:CC(l)}; AP=function(l){var n=wc;l=l===void 0?iQi():l;var O=Object,L=O.assign,X=Hu(n);var F=n.S;try{var x=F.screenX;var Z=F.screenY}catch(q){}try{var J=F.outerWidth;var w=F.outerHeight}catch(q){}try{var H=F.innerWidth;var A=F.innerHeight}catch(q){}try{var b=F.screenLeft;var r=F.screenTop}catch(q){}try{H=F.innerWidth,A=F.innerHeight}catch(q){}try{var U=F.screen.availWidth;var W=F.screen.availTop}catch(q){}F=[b,r,x,Z,U,W,J,w,H,A];x=r_5(!1,n.S.top);Z={};var N=N===void 0?g.Be:N;J=new p7;"SVGElement"in N&&"createElementNS"in N.document&&J.set(0);w=Qhi();w["allow-top-navigation-by-user-activation"]&&J.set(1);w["allow-popups-to-escape-sandbox"]&&J.set(2);N.crypto&&N.crypto.subtle&&J.set(3);"TextDecoder"in N&&"TextEncoder"in N&&J.set(4);N=kwi(J);n=(Z.bc=N,Z.bih=x.height,Z.biw=x.width,Z.brdim=F.join(),Z.vis=P4(n.W),Z.wgl=!!rS.WebGLRenderingContext,Z);O=L.call(O,X,n);O.ca_type="image";l&&(O.bid=l);return O}; Hu=function(l){var n={};n.dt=tu5;n.flash="0";a:{try{var O=l.S.top.location.href}catch(H){l=2;break a}l=O?O===l.W.location.href?0:1:2}n=(n.frm=l,n);try{n.u_tz=-(new Date).getTimezoneOffset();var L=L===void 0?rS:L;try{var X=L.history.length}catch(H){X=0}n.u_his=X;var F;n.u_h=(F=rS.screen)==null?void 0:F.height;var x;n.u_w=(x=rS.screen)==null?void 0:x.width;var Z;n.u_ah=(Z=rS.screen)==null?void 0:Z.availHeight;var J;n.u_aw=(J=rS.screen)==null?void 0:J.availWidth;var w;n.u_cd=(w=rS.screen)==null?void 0: w.colorDepth}catch(H){}return n}; lCq=function(){if(!vki)return null;var l=vki();return"open"in l?l:null}; g.rc=function(l){switch(bk(l)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; bk=function(l){return l&&"status"in l?l.status:-1}; g.U0=function(l,n){typeof l==="function"&&(l=g.lk(l));return window.setTimeout(l,n)}; g.uk=function(l,n){typeof l==="function"&&(l=g.lk(l));return window.setInterval(l,n)}; g.Pu=function(l){window.clearTimeout(l)}; g.Tj=function(l){window.clearInterval(l)}; g.E0=function(l){l=Wu(l);return typeof l==="string"&&l==="false"?!1:!!l}; g.NY=function(l,n){l=Wu(l);return l===void 0&&n!==void 0?n:Number(l||0)}; DE=function(){return g.R3("EXPERIMENTS_TOKEN","")}; Wu=function(l){return g.R3("EXPERIMENT_FLAGS",{})[l]}; qY=function(){for(var l=[],n=g.R3("EXPERIMENTS_FORCED_FLAGS",{}),O=g.P(Object.keys(n)),L=O.next();!L.done;L=O.next())L=L.value,l.push({key:L,value:String(n[L])});O=g.R3("EXPERIMENT_FLAGS",{});L=g.P(Object.keys(O));for(var X=L.next();!X.done;X=L.next())X=X.value,X.startsWith("force_")&&n[X]===void 0&&l.push({key:X,value:String(O[X])});return l}; kp=function(l,n,O,L,X,F,x,Z){function J(){(w&&"readyState"in w?w.readyState:0)===4&&n&&g.lk(n)(w)} O=O===void 0?"GET":O;L=L===void 0?"":L;Z=Z===void 0?!1:Z;var w=lCq();if(!w)return null;"onloadend"in w?w.addEventListener("loadend",J,!1):w.onreadystatechange=J;g.E0("debug_forward_web_query_parameters")&&(l=nK7(l,window.location.search));w.open(O,l,!0);F&&(w.responseType=F);x&&(w.withCredentials=!0);O=O==="POST"&&(window.FormData===void 0||!(L instanceof FormData));if(X=O75(l,X))for(var H in X)w.setRequestHeader(H,X[H]),"content-type"===H.toLowerCase()&&(O=!1);O&&w.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(Z&&"setAttributionReporting"in XMLHttpRequest.prototype){l={eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(l)}catch(A){nh(A)}}w.send(L);return w}; O75=function(l,n){n=n===void 0?{}:n;var O=hP(l),L=g.R3("INNERTUBE_CLIENT_NAME"),X=g.E0("web_ajax_ignore_global_headers_if_set"),F;for(F in gKv){var x=g.R3(gKv[F]),Z=F==="X-Goog-AuthUser"||F==="X-Goog-PageId";F!=="X-Goog-Visitor-Id"||x||(x=g.R3("VISITOR_DATA"));var J;if(!(J=!x)){if(!(J=O||(g.VM(l)?!1:!0))){J=l;var w;if(w=g.E0("add_auth_headers_to_remarketing_google_dot_com_ping")&&F==="Authorization"&&(L==="TVHTML5"||L==="TVHTML5_UNPLUGGED"||L==="TVHTML5_SIMPLY")&&RYi(J))J=Ih(g.$o(5,J))||"",J=J.split("/"), J="/"+(J.length>1?J[1]:""),w=J==="/pagead";J=w?!0:!1}J=!J}J||X&&n[F]!==void 0||L==="TVHTML5_UNPLUGGED"&&Z||(n[F]=x)}"X-Goog-EOM-Visitor-Id"in n&&"X-Goog-Visitor-Id"in n&&delete n["X-Goog-Visitor-Id"];if(O||!g.VM(l))n["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(O||!g.VM(l)){try{var H=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}H&&(n["X-YouTube-Time-Zone"]=H)}document.location.hostname.endsWith("youtubeeducation.com")||!O&&g.VM(l)||(n["X-YouTube-Ad-Signals"]= gc(AP()));return n}; Xs7=function(l,n){var O=g.VM(l);g.E0("debug_handle_relative_url_for_query_forward_killswitch")||!O&&hP(l)&&(O=document.location.hostname);var L=Ih(g.$o(5,l));L=(O=O&&(O.endsWith("youtube.com")||O.endsWith("youtube-nocookie.com")))&&L&&L.startsWith("/api/");if(!O||L)return l;var X=Lh(n),F={};g.ba(Lbi,function(x){X[x]&&(F[x]=X[x])}); return xp(l,F)}; MY=function(l,n){n.method="POST";n.postParams||(n.postParams={});return g.yA(l,n)}; xC9=function(l,n){if(window.fetch&&n.format!=="XML"){var O={method:n.method||"GET",credentials:"same-origin"};n.headers&&(O.headers=n.headers);n.priority&&(O.priority=n.priority);l=oK7(l,n);var L=Fbk(l,n);L&&(O.body=L);n.withCredentials&&(O.credentials="include");var X=n.context||g.Be,F=!1,x;fetch(l,O).then(function(Z){if(!F){F=!0;x&&g.Pu(x);var J=Z.ok,w=function(H){H=H||{};J?n.onSuccess&&n.onSuccess.call(X,H,Z):n.onError&&n.onError.call(X,H,Z);n.onFinish&&n.onFinish.call(X,H,Z)}; (n.format||"JSON")==="JSON"&&(J||Z.status>=400&&Z.status<500)?Z.json().then(w,function(){w(null)}):w(null)}}).catch(function(){n.onError&&n.onError.call(X,{},{})}); l=n.timeout||0;n.onFetchTimeout&&l>0&&(x=g.U0(function(){F||(F=!0,g.Pu(x),n.onFetchTimeout.call(n.context||g.Be))},l))}else g.yA(l,n)}; g.yA=function(l,n){var O=n.format||"JSON";l=oK7(l,n);var L=Fbk(l,n),X=!1,F=hwi(l,function(J){if(!X){X=!0;Z&&g.Pu(Z);var w=g.rc(J),H=null,A=400<=J.status&&J.status<500,b=500<=J.status&&J.status<600;if(w||A||b)H=Z7q(l,O,J,n.convertToSafeHtml);w&&(w=JN9(O,J,H));H=H||{};A=n.context||g.Be;w?n.onSuccess&&n.onSuccess.call(A,J,H):n.onError&&n.onError.call(A,J,H);n.onFinish&&n.onFinish.call(A,J,H)}},n.method,L,n.headers,n.responseType,n.withCredentials); L=n.timeout||0;if(n.onTimeout&&L>0){var x=n.onTimeout;var Z=g.U0(function(){X||(X=!0,F.abort(),g.Pu(Z),x.call(n.context||g.Be,F))},L)}return F}; oK7=function(l,n){n.includeDomain&&(l=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+l);var O=g.R3("XSRF_FIELD_NAME");if(n=n.urlParams)n[O]&&delete n[O],l=FX(l,n);return l}; Fbk=function(l,n){var O=g.R3("XSRF_FIELD_NAME"),L=g.R3("XSRF_TOKEN"),X=n.postBody||"",F=n.postParams,x=g.R3("XSRF_FIELD_NAME"),Z;n.headers&&(Z=n.headers["Content-Type"]);n.excludeXsrf||g.VM(l)&&!n.withCredentials&&g.VM(l)!==document.location.hostname||n.method!=="POST"||Z&&Z!=="application/x-www-form-urlencoded"||n.postParams&&n.postParams[x]||(F||(F={}),F[O]=L);(g.E0("ajax_parse_query_data_only_when_filled")&&F&&Object.keys(F).length>0||F)&&typeof X==="string"&&(X=Lh(X),g.mf(X,F),X=n.postBodyFormat&& n.postBodyFormat==="JSON"?JSON.stringify(X):g.Sj(X));F=X||F&&!g.Qj(F);!wsg&&F&&n.method!=="POST"&&(wsg=!0,g.vK(Error("AJAX request with postData should use POST")));return X}; Z7q=function(l,n,O,L){var X=null;switch(n){case "JSON":try{var F=O.responseText}catch(x){throw L=Error("Error reading responseText"),L.params=l,nh(L),x;}l=O.getResponseHeader("Content-Type")||"";F&&l.indexOf("json")>=0&&(F.substring(0,5)===")]}'\n"&&(F=F.substring(5)),X=JSON.parse(F));break;case "XML":if(l=(l=O.responseXML)?H75(l):null)X={},g.ba(l.getElementsByTagName("*"),function(x){X[x.tagName]=AN8(x)})}L&&b77(X); return X}; b77=function(l){if(g.Kv(l))for(var n in l)n==="html_content"||B9k(n,"_html")?l[n]=dY(l[n]):b77(l[n])}; JN9=function(l,n,O){if(n&&n.status===204)return!0;switch(l){case "JSON":return!!O;case "XML":return Number(O&&O.return_code)===0;case "RAW":return!0;default:return!!O}}; H75=function(l){return l?(l=("responseXML"in l?l.responseXML:l).getElementsByTagName("root"))&&l.length>0?l[0]:null:null}; AN8=function(l){var n="";g.ba(l.childNodes,function(O){n+=O.nodeValue}); return n}; e_=function(l,n){var O=g.jY(n),L;return(new g.U6(function(X,F){O.onSuccess=function(x){g.rc(x)?X(new rN9(x)):F(new QA("Request failed, status="+bk(x),"net.badstatus",x))}; O.onError=function(x){F(new QA("Unknown request error","net.unknown",x))}; O.onTimeout=function(x){F(new QA("Request timed out","net.timeout",x))}; L=g.yA(l,O)})).O9(function(X){if(X instanceof Nv){var F; (F=L)==null||F.abort()}return Te(X)})}; g.Yp=function(l,n,O,L){function X(Z,J,w){return Z.O9(function(H){if(J<=0||bk(H.xhr)===403)return Te(new QA("Request retried too many times","net.retryexhausted",H.xhr,H));H=Math.pow(2,O-J+1)*w;var A=x>0?Math.min(x,H):H;return F(w).then(function(){return X(e_(l,n),J-1,A)})})} function F(Z){return new g.U6(function(J){setTimeout(J,Z)})} var x=x===void 0?-1:x;return X(e_(l,n),O-1,L)}; QA=function(l,n,O){u1.call(this,l+", errorCode="+n);this.errorCode=n;this.xhr=O;this.name="PromiseAjaxError"}; rN9=function(l){this.xhr=l}; j_=function(l){this.S=l===void 0?null:l;this.N=0;this.W=null}; Gj=function(l){var n=new j_;l=l===void 0?null:l;n.N=2;n.W=l===void 0?null:l;return n}; mA=function(l){var n=new j_;l=l===void 0?null:l;n.N=1;n.W=l===void 0?null:l;return n}; g.$p=function(l,n,O,L,X){IT||dc.set(""+l,n,{Sc:O,path:"/",domain:L===void 0?"youtube.com":L,secure:X===void 0?!1:X})}; g.VA=function(l,n){if(!IT)return dc.get(""+l,n)}; g.Bu=function(l,n,O){IT||dc.remove(""+l,n===void 0?"/":n,O===void 0?"youtube.com":O)}; UCv=function(){if(g.E0("embeds_web_enable_cookie_detection_fix")){if(!g.Be.navigator.cookieEnabled)return!1}else if(!dc.isEnabled())return!1;if(!dc.isEmpty())return!0;g.E0("embeds_web_enable_cookie_detection_fix")?dc.set("TESTCOOKIESENABLED","1",{Sc:60,zQJ:"none",secure:!0}):dc.set("TESTCOOKIESENABLED","1",{Sc:60});if(dc.get("TESTCOOKIESENABLED")!=="1")return!1;dc.remove("TESTCOOKIESENABLED");return!0}; g.z=function(l,n){if(l)return l[n.name]}; cu=function(l){var n=g.R3("INNERTUBE_HOST_OVERRIDE");n&&(l=String(n)+String(B$(l)));return l}; uj9=function(l){var n={};g.E0("json_condensed_response")&&(n.prettyPrint="false");return l=xp(l,n)}; ik=function(l,n){var O=O===void 0?{}:O;l={method:n===void 0?"POST":n,mode:hP(l)?"same-origin":"cors",credentials:hP(l)?"same-origin":"include"};n={};for(var L=g.P(Object.keys(O)),X=L.next();!X.done;X=L.next())X=X.value,O[X]&&(n[X]=O[X]);Object.keys(n).length>0&&(l.headers=n);return l}; zj=function(){var l=/Chrome\/(\d+)/.exec(g.e6());return l?parseFloat(l[1]):NaN}; ph=function(){return g.S_("android")&&g.S_("chrome")&&!(g.S_("trident/")||g.S_("edge/"))&&!g.S_("cobalt")}; Ph5=function(){return g.S_("armv7")||g.S_("aarch64")||g.S_("android")}; g.s0=function(){return g.S_("cobalt")}; fh=function(){return g.S_("cobalt")&&g.S_("appletv")}; Kh=function(){return g.S_("(ps3; leanback shell)")||g.S_("ps3")&&g.s0()}; TOi=function(){return g.S_("(ps4; leanback shell)")||g.S_("ps4")&&g.s0()}; g.Wbf=function(){return g.s0()&&(g.S_("ps4 vr")||g.S_("ps4 pro vr"))}; aT=function(){var l=/WebKit\/([0-9]+)/.exec(g.e6());return!!(l&&parseInt(l[1],10)>=600)}; RT=function(){var l=/WebKit\/([0-9]+)/.exec(g.e6());return!!(l&&parseInt(l[1],10)>=602)}; EK8=function(){return g.S_("iemobile")||g.S_("windows phone")&&g.S_("edge")}; vu=function(){return(Ch||tP)&&g.S_("applewebkit")&&!g.S_("version")&&(!g.S_("safari")||g.S_("gsa/"))}; ni=function(){return g.lG&&g.S_("version/")}; Oh=function(){return g.S_("smart-tv")&&g.S_("samsung")}; g.S_=function(l){var n=g.e6();return n?n.toLowerCase().indexOf(l)>=0:!1}; gU=function(){return $18()||vu()||ni()?!0:g.R3("EOM_VISITOR_DATA")?!1:!0}; Li=function(l,n){return n===void 0||n===null?l:n==="1"||n===!0||n===1||n==="True"?!0:!1}; X1=function(l,n,O){for(var L in O)if(O[L]==n)return O[L];return l}; ot=function(l,n){return n===void 0||n===null?l:Number(n)}; F1=function(l,n){return n===void 0||n===null?l:n.toString()}; xT=function(l,n){if(n){if(l==="fullwidth")return Infinity;if(l==="fullheight")return 0}return l&&(n=l.match(NOi))&&(l=Number(n[2]),n=Number(n[1]),!isNaN(l)&&!isNaN(n)&&l>0)?n/l:NaN}; hB=function(l){var n=l.docid||l.video_id||l.videoId||l.id;if(n)return n;n=l.raw_player_response;n||(l=l.player_response)&&(n=JSON.parse(l));return n&&n.videoDetails&&n.videoDetails.videoId||null}; DCa=function(l){return ZM(l,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.JB=function(l){return l==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||l==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; ZM=function(l,n){n=(n===void 0?0:n)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(n="EMBEDDED_PLAYER_MODE_PFL");var O=l.raw_embedded_player_response;if(!O&&(l=l.embedded_player_response))try{O=JSON.parse(l)}catch(L){return n}return O?X1(n,O.embeddedPlayerMode,qU9):n}; Hk=function(l){u1.call(this,l.message||l.description||l.name);this.isMissing=l instanceof wU;this.isTimeout=l instanceof QA&&l.errorCode=="net.timeout";this.isCanceled=l instanceof Nv}; wU=function(){u1.call(this,"Biscotti ID is missing from server")}; kVa=function(){if(g.E0("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!gU())return Error("User has not consented - not fetching biscotti id.");var l=g.R3("PLAYER_VARS",{});if(g.eY(l,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(DCa(l))return Error("Biscotti id fetching has been disabled for pfl.")}; ewv=function(){var l=kVa();if(l!==void 0)return Te(l);AB||(AB=e_("//googleads.g.doubleclick.net/pagead/id",yNq).then(Mt5).O9(function(n){return QUe(2,n)})); return AB}; Mt5=function(l){l=l.xhr.responseText;if(!NQ(l,")]}'"))throw new wU;l=JSON.parse(l.substr(4));if((l.type||1)>1)throw new wU;l=l.id;zYg(l);AB=mA(l);YU5(18E5,2);return l}; QUe=function(l,n){n=new Hk(n);zYg("");AB=Gj(n);l>0&&YU5(12E4,l-1);throw n;}; YU5=function(l,n){g.U0(function(){e_("//googleads.g.doubleclick.net/pagead/id",yNq).then(Mt5,function(O){return QUe(n,O)}).O9(g.H$)},l)}; jUq=function(){try{var l=g.zk("yt.ads.biscotti.getId_");return l?l():ewv()}catch(n){return Te(n)}}; mC7=function(l){l&&(l.dataset?l.dataset[GV7()]="true":D1v(l))}; ICa=function(l){return l?l.dataset?l.dataset[GV7()]:l.getAttribute("data-loaded"):null}; GV7=function(){return dC8.loaded||(dC8.loaded="loaded".replace(/\-([a-z])/g,function(l,n){return n.toUpperCase()}))}; $Cg=function(){var l=document;if("visibilityState"in l)return l.visibilityState;var n=bG+"VisibilityState";if(n in l)return l[n]}; rU=function(l,n){var O;jz(l,function(L){O=n[L];return!!O}); return O}; Uh=function(l){if(l.requestFullscreen)l=l.requestFullscreen(void 0);else if(l.webkitRequestFullscreen)l=l.webkitRequestFullscreen();else if(l.mozRequestFullScreen)l=l.mozRequestFullScreen();else if(l.msRequestFullscreen)l=l.msRequestFullscreen();else if(l.webkitEnterFullscreen)l=l.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return l instanceof Promise?l:Promise.resolve()}; TK=function(l){var n;g.uG()?Pk()==l&&(n=document):n=l;return n&&(l=rU(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],n))?(n=l.call(n),n instanceof Promise?n:Promise.resolve()):Promise.resolve()}; Vt7=function(l){return g.ak(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(n){return"on"+n.toLowerCase()in l})}; BO9=function(){var l=document;return g.ak(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(n){return"on"+n.toLowerCase()in l})}; g.uG=function(){return!!rU(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Pk=function(l){l=l===void 0?!1:l;var n=rU(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(l)for(;n&&n.shadowRoot;)n=n.shadowRoot.fullscreenElement;return n?n:null}; Wk=function(l){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(l=l||window.event){this.event=l;for(var n in l)n in cNk||(this[n]=l[n]);this.scale=l.scale;this.rotation=l.rotation;var O=l.target||l.srcElement;O&&O.nodeType==3&&(O=O.parentNode);this.target=O;var L=l.relatedTarget; if(L)try{L=L.nodeName?L:null}catch(X){L=null}else this.type=="mouseover"?L=l.fromElement:this.type=="mouseout"&&(L=l.toElement);this.relatedTarget=L;this.clientX=l.clientX!=void 0?l.clientX:l.pageX;this.clientY=l.clientY!=void 0?l.clientY:l.pageY;this.keyCode=l.keyCode?l.keyCode:l.which;this.charCode=l.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=l.altKey;this.ctrlKey=l.ctrlKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.S=l.pageX;this.W=l.pageY}}catch(X){}}; i78=function(l){if(document.body&&document.documentElement){var n=document.body.scrollTop+document.documentElement.scrollTop;l.S=l.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);l.W=l.clientY+n}}; zwf=function(l,n,O,L){L=L===void 0?{}:L;l.addEventListener&&(n!="mouseenter"||"onmouseenter"in document?n!="mouseleave"||"onmouseenter"in document?n=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(n="MozMousePixelScroll"):n="mouseout":n="mouseover");return MX(Eh,function(X){var F=typeof X[4]==="boolean"&&X[4]==!!L,x=g.Kv(X[4])&&g.Kv(L)&&g.Yw(X[4],L);return!!X.length&&X[0]==l&&X[1]==n&&X[2]==O&&(F||x)})}; g.NV=function(l,n,O,L){L=L===void 0?{}:L;if(!l||!l.addEventListener&&!l.attachEvent)return"";var X=zwf(l,n,O,L);if(X)return X;X=++SU8.count+"";var F=!(n!="mouseenter"&&n!="mouseleave"||!l.addEventListener||"onmouseenter"in document);var x=F?function(Z){Z=new Wk(Z);if(!h3(Z.relatedTarget,function(J){return J==l},!0))return Z.currentTarget=l,Z.type=n,O.call(l,Z)}:function(Z){Z=new Wk(Z); Z.currentTarget=l;return O.call(l,Z)}; x=g.lk(x);l.addEventListener?(n=="mouseenter"&&F?n="mouseover":n=="mouseleave"&&F?n="mouseout":n=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(n="MozMousePixelScroll"),ps9()||typeof L==="boolean"?l.addEventListener(n,x,L):l.addEventListener(n,x,!!L.capture)):l.attachEvent("on"+n,x);Eh[X]=[l,n,O,x,L];return X}; fCi=function(l){return sU0(l,function(n){return g.oK(n,"ytp-ad-has-logging-urls")})}; sU0=function(l,n){var O=document.body||document;return g.NV(O,"click",function(L){var X=h3(L.target,function(F){return F===O||n(F)},!0); X&&X!==O&&!X.disabled&&(L.currentTarget=X,l.call(X,L))})}; g.DM=function(l){l&&(typeof l=="string"&&(l=[l]),g.ba(l,function(n){if(n in Eh){var O=Eh[n],L=O[0],X=O[1],F=O[3];O=O[4];L.removeEventListener?ps9()||typeof O==="boolean"?L.removeEventListener(X,F,O):L.removeEventListener(X,F,!!O.capture):L.detachEvent&&L.detachEvent("on"+X,F);delete Eh[n]}}))}; qV=function(l){for(var n in Eh)Eh[n][0]==l&&g.DM(n)}; kT=function(l){l=l||window.event;var n;l.composedPath&&typeof l.composedPath==="function"?n=l.composedPath():n=l.path;n&&n.length?l=n[0]:(l=l||window.event,l=l.target||l.srcElement,l.nodeType==3&&(l=l.parentNode));return l}; yd=function(l){this.T=l;this.S=null;this.L=0;this.V=null;this.B=0;this.W=[];for(l=0;l<4;l++)this.W.push(0);this.N=0;this.NQ=g.NV(window,"mousemove",(0,g.tg)(this.Y,this));this.G=g.uk((0,g.tg)(this.Wm,this),25)}; MV=function(l){g.V.call(this);this.T=[];this.oO=l||this}; Qd=function(l,n,O,L){for(var X=0;X<O.length;X++)l.U(n,O[X],L)}; g.eU=function(l,n){for(;l.T.length;){var O=l.T.pop(),L=void 0;n&&Kbi()&&(L={passive:!0});O.target.removeEventListener(O.name,O.callback,L)}}; jU=function(l){l=l||{};var n={},O={};this.url=l.url||"";this.args=l.args||g.jY(n);this.assets=l.assets||{};this.attrs=l.attrs||g.jY(O);this.fallback=l.fallback||null;this.fallbackMessage=l.fallbackMessage||null;this.html5=!!l.html5;this.disable=l.disable||{};this.loaded=!!l.loaded;this.messages=l.messages||{}}; aC5=function(l){l instanceof jU||(l=new jU(l));return l}; g.It=function(l,n,O){var L=O&&O>0?O:0;O=L?Date.now()+L*1E3:0;if((L=L?(0,g.GK)():mQ())&&window.JSON){typeof n!=="string"&&(n=JSON.stringify(n,void 0));try{L.set(l,n,O)}catch(X){L.remove(l)}}}; g.dU=function(l){var n=mQ(),O=(0,g.GK)();if(!n&&!O||!window.JSON)return null;try{var L=n.get(l)}catch(X){}if(typeof L!=="string")try{L=O.get(l)}catch(X){}if(typeof L!=="string")return null;try{L=JSON.parse(L,void 0)}catch(X){}return L}; Rw7=function(){var l=(0,g.GK)();if(l&&(l=l.W("yt-player-quality")))return l.creation}; g.$T=function(l){try{var n=mQ(),O=(0,g.GK)();n&&n.remove(l);O&&O.remove(l)}catch(L){}}; g.Vd=function(){return g.dU("yt-remote-session-screen-id")}; Ch5=function(l){var n=this;this.W=void 0;this.S=!1;l.addEventListener("beforeinstallprompt",function(O){O.preventDefault();n.W=O}); l.addEventListener("appinstalled",function(){n.S=!0},{once:!0})}; Bk=function(){if(!g.Be.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Be.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Be.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Be.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Be.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(l){return"WEB_DISPLAY_MODE_UNKNOWN"}}; ck=function(){this.qY=!0}; tti=function(){ck.instance||(ck.instance=new ck);return ck.instance}; vKk=function(l){switch(l){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}}; lWv=function(){this.S=g.R3("ALT_PREF_COOKIE_NAME","PREF");this.W=g.R3("ALT_PREF_COOKIE_DOMAIN","youtube.com");var l=g.VA(this.S);l&&this.parse(l)}; g.zK=function(){iG||(iG=new lWv);return iG}; g.SU=function(l,n){return!!((nyi("f"+(Math.floor(n/31)+1))||0)&1<<n%31)}; sh=function(l,n){var O="f"+(Math.floor(l/31)+1);l=1<<l%31;var L=nyi(O)||0;L=n?L|l:L&~l;L===0?delete pi[O]:(n=L.toString(16),pi[O]=n.toString())}; fi=function(l){if(/^f([1-9][0-9]*)$/.test(l))throw Error("ExpectedRegexMatch: "+l);}; Ki=function(l){if(!/^\w+$/.test(l))throw Error("ExpectedRegexMismatch: "+l);}; nyi=function(l){l=pi[l]!==void 0?pi[l].toString():null;return l!=null&&/^[A-Fa-f0-9]+$/.test(l)?parseInt(l,16):null}; Ozg=function(){var l=g.Be.navigator;return l?l.connection:void 0}; Lti=function(){var l=Ozg();if(l){var n=gy5[l.type||"unknown"]||"CONN_UNKNOWN";l=gy5[l.effectiveType||"unknown"]||"CONN_UNKNOWN";n==="CONN_CELLULAR_UNKNOWN"&&l!=="CONN_UNKNOWN"&&(n=l);if(n!=="CONN_UNKNOWN")return n;if(l!=="CONN_UNKNOWN")return l}}; oya=function(){var l=Ozg();if(l!=null&&l.effectiveType)return XU0.hasOwnProperty(l.effectiveType)?XU0[l.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; g.at=function(l){var n=g.eq.apply(1,arguments);var O=Error.call(this,l);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.args=[].concat(g.E(n));Object.setPrototypeOf(this,this.constructor.prototype)}; g.Ci=function(){try{return g.Rt(),!0}catch(l){return!1}}; g.Rt=function(l){if(g.R3("DATASYNC_ID")!==void 0)return g.R3("DATASYNC_ID");throw new g.at("Datasync ID not set",l===void 0?"unknown":l);}; tB=function(){this.S=new WeakMap}; g.lX=function(l,n,O){return vk(n,0,O)}; Fta=function(l){var n=g.zk("yt.scheduler.instance.addImmediateJob");n?n(l):l()}; n1=function(){tB.apply(this,arguments)}; g.Oy=function(){n1.instance||(n1.instance=new n1);return n1.instance}; g.gF=function(){return!!g.zk("yt.scheduler.instance")}; vk=function(l,n,O){O!==void 0&&Number.isNaN(Number(O))&&(O=void 0);var L=g.zk("yt.scheduler.instance.addJob");return L?L(l,n,O):O===void 0?(l(),NaN):g.U0(l,O||0)}; L1=function(l,n){(l=g.zk("yt.scheduler.instance.setPriorityThreshold"))&&l(n)}; Xm=function(l){this.S=(l=g.V8(l))?new Yy(l):null;this.W=document.domain||window.location.hostname}; Fm=function(){var l;return(l=oZ())==null?void 0:l.get("LAST_RESULT_ENTRY_KEY",!0)}; xo0=function(){var l={};for(xt=new hG(l.handleError===void 0?Z7:l.handleError,l.logEvent===void 0?g.JG:l.logEvent);wF.length>0;)switch(l=wF.shift(),l.type){case "ERROR":xt.hP(l.payload);break;case "EVENT":xt.logEvent(l.eventType,l.payload)}}; AG=function(l){Ho||(xt?xt.hP(l):(wF.push({type:"ERROR",payload:l}),wF.length>10&&wF.shift()))}; bX=function(l,n){Ho||(xt?xt.logEvent(l,n):(wF.push({type:"EVENT",eventType:l,payload:n}),wF.length>10&&wF.shift()))}; rF=function(l){if(l.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Uy=function(l){return l.substr(0,l.indexOf(":"))||l}; g.uX=function(l,n,O,L,X){n=n===void 0?{}:n;O=O===void 0?hck[l]:O;L=L===void 0?Zz7[l]:L;X=X===void 0?J5k[l]:X;g.at.call(this,O,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:l},n));this.type=l;this.message=O;this.level=L;this.S=X;Object.setPrototypeOf(this,g.uX.prototype)}; Po=function(l,n){g.uX.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:n,foundObjectStores:l},hck.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Po.prototype)}; Tz=function(l,n){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.index=l;this.objectStore=n;Object.setPrototypeOf(this,Tz.prototype)}; Ey=function(l,n,O,L){n=Uy(n);var X=l instanceof Error?l:Error("Unexpected error: "+l);if(X instanceof g.uX)return X;l={objectStoreNames:O,dbName:n,dbVersion:L};if(X.name==="QuotaExceededError")return new g.uX("QUOTA_EXCEEDED",l);if(g.Wo&&X.name==="UnknownError")return new g.uX("QUOTA_MAYBE_EXCEEDED",l);if(X instanceof Tz)return new g.uX("MISSING_INDEX",Object.assign({},l,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&wUf.some(function(F){return X.message.includes(F)}))return new g.uX("EXECUTE_TRANSACTION_ON_CLOSED_DB", l); if(X.name==="AbortError")return new g.uX("UNKNOWN_ABORT",l,X.message);X.args=[Object.assign({},l,{name:"IdbError",KE:X.name})];X.level="WARNING";return X}; g.N3=function(l,n,O){var L=Fm();return new g.uX("IDB_NOT_SUPPORTED",{context:{caller:l,publicName:n,version:O,hasSucceededOnce:L==null?void 0:L.hasSucceededOnce}})}; Hzg=function(l){if(!l)throw Error();throw l;}; A59=function(l){return l}; D7=function(l){this.S=l}; g.q3=function(l){function n(X){if(L.state.status==="PENDING"){L.state={status:"REJECTED",reason:X};X=g.P(L.W);for(var F=X.next();!F.done;F=X.next())F=F.value,F()}} function O(X){if(L.state.status==="PENDING"){L.state={status:"FULFILLED",value:X};X=g.P(L.S);for(var F=X.next();!F.done;F=X.next())F=F.value,F()}} var L=this;this.state={status:"PENDING"};this.S=[];this.W=[];l=l.S;try{l(O,n)}catch(X){n(X)}}; bzv=function(l,n,O,L,X){try{if(l.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var F=O(l.state.value);F instanceof g.q3?kt(l,n,F,L,X):L(F)}catch(x){X(x)}}; r59=function(l,n,O,L,X){try{if(l.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var F=O(l.state.reason);F instanceof g.q3?kt(l,n,F,L,X):L(F)}catch(x){X(x)}}; kt=function(l,n,O,L,X){n===O?X(new TypeError("Circular promise chain detected.")):O.then(function(F){F instanceof g.q3?kt(l,n,F,L,X):L(F)},function(F){X(F)})}; Uo7=function(l,n,O){function L(){O(l.error);F()} function X(){n(l.result);F()} function F(){try{l.removeEventListener("success",X),l.removeEventListener("error",L)}catch(x){}} l.addEventListener("success",X);l.addEventListener("error",L)}; uW9=function(l){return new Promise(function(n,O){Uo7(l,n,O)})}; y_=function(l){return new g.q3(new D7(function(n,O){Uo7(l,n,O)}))}; M3=function(l,n){return new g.q3(new D7(function(O,L){function X(){var F=l?n(l):null;F?F.then(function(x){l=x;X()},L):O()} X()}))}; Px0=function(l,n){this.request=l;this.cursor=n}; TPq=function(l){return y_(l).then(function(n){return n?new Px0(l,n):null})}; g.Wt9=function(l){l.cursor.continue(void 0);return TPq(l.request)}; Eyi=function(l,n){this.S=l;this.options=n;this.transactionCount=0;this.N=Math.round((0,g.Q_)());this.W=!1}; g.Yt=function(l,n,O){l=l.S.createObjectStore(n,O);return new eH(l)}; jH=function(l,n){l.S.objectStoreNames.contains(n)&&l.S.deleteObjectStore(n)}; g.IZ=function(l,n,O){return g.Gz(l,[n],{mode:"readwrite",aO:!0},function(L){return g.mI(L.objectStore(n),O)})}; g.Gz=function(l,n,O,L){var X,F,x,Z,J,w,H,A,b,r,U,W;return g.Y(function(N){switch(N.S){case 1:var q={mode:"readonly",aO:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof O==="string"?q.mode=O:Object.assign(q,O);X=q;l.transactionCount++;F=X.aO?3:1;x=0;case 2:if(Z){N.D2(4);break}x++;J=Math.round((0,g.Q_)());g.We(N,5);w=l.S.transaction(n,X.mode);q=new dF(w);q=NPi(q,L);return g.Q(N,q,7);case 7:return H=N.W,A=Math.round((0,g.Q_)()),Doi(l,J,A,x,void 0,n.join(),X),N.return(H);case 5:b=g.D5(N);r=Math.round((0,g.Q_)()); U=Ey(b,l.S.name,n.join(),l.S.version);if((W=U instanceof g.uX&&!U.S)||x>=F)Doi(l,J,r,x,U,n.join(),X),Z=U;N.D2(2);break;case 4:return N.return(Promise.reject(Z))}})}; Doi=function(l,n,O,L,X,F,x){n=O-n;X?(X instanceof g.uX&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&bX("QUOTA_EXCEEDED",{dbName:Uy(l.S.name),objectStoreNames:F,transactionCount:l.transactionCount,transactionMode:x.mode}),X instanceof g.uX&&X.type==="UNKNOWN_ABORT"&&(O-=l.N,O<0&&O>=2147483648&&(O=0),bX("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:F,transactionDuration:n,transactionCount:l.transactionCount,dbDuration:O}),l.W=!0),qJi(l,!1,L,F,n,x.tag),AG(X)):qJi(l,!0,L,F,n, x.tag)}; qJi=function(l,n,O,L,X,F){bX("TRANSACTION_ENDED",{objectStoreNames:L,connectionHasUnknownAbortedTransaction:l.W,duration:X,isSuccessful:n,tryCount:O,tag:F===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":F})}; eH=function(l){this.S=l}; g.$t=function(l,n,O){l.S.createIndex(n,O,{unique:!1})}; kC9=function(l,n){return g.V_(l,{query:n},function(O){return O.delete().then(function(){return g.Bo(O)})}).then(function(){})}; y5v=function(l,n,O){var L=[];return g.V_(l,{query:n},function(X){if(!(O!==void 0&&L.length>=O))return L.push(X.getValue()),g.Bo(X)}).then(function(){return L})}; QK9=function(l){return"getAllKeys"in IDBObjectStore.prototype?y_(l.S.getAllKeys(void 0,void 0)):MWi(l)}; MWi=function(l){var n=[];return g.ec5(l,{query:void 0},function(O){n.push(O.cursor.primaryKey);return g.Wt9(O)}).then(function(){return n})}; g.mI=function(l,n,O){return y_(l.S.put(n,O))}; g.V_=function(l,n,O){l=l.S.openCursor(n.query,n.direction);return co(l).then(function(L){return M3(L,O)})}; g.ec5=function(l,n,O){var L=n.query;n=n.direction;l="openKeyCursor"in IDBObjectStore.prototype?l.S.openKeyCursor(L,n):l.S.openCursor(L,n);return TPq(l).then(function(X){return M3(X,O)})}; dF=function(l){var n=this;this.S=l;this.N=new Map;this.W=!1;this.done=new Promise(function(O,L){n.S.addEventListener("complete",function(){O()}); n.S.addEventListener("error",function(X){X.currentTarget===X.target&&L(n.S.error)}); n.S.addEventListener("abort",function(){var X=n.S.error;if(X)L(X);else if(!n.W){X=g.uX;for(var F=n.S.objectStoreNames,x=[],Z=0;Z<F.length;Z++){var J=F.item(Z);if(J===null)throw Error("Invariant: item in DOMStringList is null");x.push(J)}X=new X("UNKNOWN_ABORT",{objectStoreNames:x.join(),dbName:n.S.db.name,mode:n.S.mode});L(X)}})})}; NPi=function(l,n){var O=new Promise(function(L,X){try{n(l).then(function(F){L(F)}).catch(X)}catch(F){X(F),l.abort()}}); return Promise.all([O,l.done]).then(function(L){return g.P(L).next().value})}; YJk=function(l){this.S=l}; jK5=function(l,n,O){var L=[];return g.iX(l,{query:n},function(X){if(!(O!==void 0&&L.length>=O))return L.push(X.getValue()),g.Bo(X)}).then(function(){return L})}; g.iX=function(l,n,O){l=l.S.openCursor(n.query===void 0?null:n.query,n.direction===void 0?"next":n.direction);return co(l).then(function(L){return M3(L,O)})}; zz=function(l,n){this.request=l;this.cursor=n}; co=function(l){return y_(l).then(function(n){return n?new zz(l,n):null})}; g.Bo=function(l){l.cursor.continue(void 0);return co(l.request)}; GCi=function(l,n,O){return new Promise(function(L,X){function F(){b||(b=new Eyi(x.result,{closed:A}));return b} var x=n!==void 0?self.indexedDB.open(l,n):self.indexedDB.open(l);var Z=O.blocked,J=O.blocking,w=O.H2q,H=O.upgrade,A=O.closed,b;x.addEventListener("upgradeneeded",function(r){try{if(r.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(x.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");r.dataLoss&&r.dataLoss!=="none"&&bX("IDB_DATA_CORRUPTED",{reason:r.dataLossMessage||"unknown reason",dbName:Uy(l)});var U=F(),W=new dF(x.transaction); H&&H(U,function(N){return r.oldVersion<N&&r.newVersion>=N},W); W.done.catch(function(N){X(N)})}catch(N){X(N)}}); x.addEventListener("success",function(){var r=x.result;J&&r.addEventListener("versionchange",function(){J(F())}); r.addEventListener("close",function(){bX("IDB_UNEXPECTEDLY_CLOSED",{dbName:Uy(l),dbVersion:r.version});w&&w()}); L(F())}); x.addEventListener("error",function(){X(x.error)}); Z&&x.addEventListener("blocked",function(){Z()})})}; mo8=function(l,n,O){O=O===void 0?{}:O;return GCi(l,n,O)}; SH=function(l,n){n=n===void 0?{}:n;var O,L,X,F;return g.Y(function(x){if(x.S==1)return g.We(x,2),O=self.indexedDB.deleteDatabase(l),L=n,(X=L.blocked)&&O.addEventListener("blocked",function(){X()}),g.Q(x,uW9(O),4); if(x.S!=2)return g.N7(x,0);F=g.D5(x);throw Ey(F,l,"",-1);})}; p1=function(l,n){this.name=l;this.options=n;this.N=!0;this.B=this.L=0}; IW5=function(l,n){return new g.uX("INCOMPATIBLE_DB_VERSION",{dbName:l.name,oldVersion:l.options.version,newVersion:n})}; g.sy=function(l,n){if(!n)throw g.N3("openWithToken",Uy(l.name));return l.open()}; dok=function(l,n){var O;return g.Y(function(L){if(L.S==1)return g.Q(L,g.sy(f1,n),2);O=L.W;return L.return(g.Gz(O,["databases"],{aO:!0,mode:"readwrite"},function(X){var F=X.objectStore("databases");return F.get(l.actualName).then(function(x){if(x?l.actualName!==x.actualName||l.publicName!==x.publicName||l.userIdentifier!==x.userIdentifier:1)return g.mI(F,l).then(function(){})})}))})}; K1=function(l,n){var O;return g.Y(function(L){if(L.S==1)return l?g.Q(L,g.sy(f1,n),2):L.return();O=L.W;return L.return(O.delete("databases",l))})}; $ov=function(l,n){var O,L;return g.Y(function(X){return X.S==1?(O=[],g.Q(X,g.sy(f1,n),2)):X.S!=3?(L=X.W,g.Q(X,g.Gz(L,["databases"],{aO:!0,mode:"readonly"},function(F){O.length=0;return g.V_(F.objectStore("databases"),{},function(x){l(x.getValue())&&O.push(x.getValue());return g.Bo(x)})}),3)):X.return(O)})}; VW9=function(l,n){return $ov(function(O){return O.publicName===l&&O.userIdentifier!==void 0},n)}; BP0=function(){var l,n,O,L;return g.Y(function(X){switch(X.S){case 1:l=Fm();if((n=l)==null?0:n.hasSucceededOnce)return X.return(!0);if(aZ&&aT()&&!RT()||g.RZ)return X.return(!1);try{if(O=self,!(O.indexedDB&&O.IDBIndex&&O.IDBKeyRange&&O.IDBObjectStore))return X.return(!1)}catch(F){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);g.We(X,2);L={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.Q(X,dok(L,C1),4);case 4:return g.Q(X,K1("yt-idb-test-do-not-use",C1),5);case 5:return X.return(!0);case 2:return g.D5(X),X.return(!1)}})}; c5e=function(){if(tG!==void 0)return tG;Ho=!0;return tG=BP0().then(function(l){Ho=!1;var n;if((n=oZ())!=null&&n.S){var O;n={hasSucceededOnce:((O=Fm())==null?void 0:O.hasSucceededOnce)||l};var L;(L=oZ())==null||L.set("LAST_RESULT_ENTRY_KEY",n,2592E3,!0)}return l})}; vo=function(){return g.zk("ytglobal.idbToken_")||void 0}; g.lI=function(){var l=vo();return l?Promise.resolve(l):c5e().then(function(n){(n=n?C1:void 0)&&g.i9("ytglobal.idbToken_",n);return n})}; iz0=function(l){if(!g.Ci())throw l=new g.uX("AUTH_INVALID",{dbName:l}),AG(l),l;var n=g.Rt();return{actualName:l+":"+n,publicName:l,userIdentifier:n}}; zcf=function(l,n,O,L){var X,F,x,Z,J,w;return g.Y(function(H){switch(H.S){case 1:return F=(X=Error().stack)!=null?X:"",g.Q(H,g.lI(),2);case 2:x=H.W;if(!x)throw Z=g.N3("openDbImpl",l,n),g.E0("ytidb_async_stack_killswitch")||(Z.stack=Z.stack+"\n"+F.substring(F.indexOf("\n")+1)),AG(Z),Z;rF(l);J=O?{actualName:l,publicName:l,userIdentifier:void 0}:iz0(l);g.We(H,3);return g.Q(H,dok(J,x),5);case 5:return g.Q(H,mo8(J.actualName,n,L),6);case 6:return H.return(H.W);case 3:return w=g.D5(H),g.We(H,7),g.Q(H,K1(J.actualName, x),9);case 9:g.N7(H,8);break;case 7:g.D5(H);case 8:throw w;}})}; SJe=function(l,n,O){O=O===void 0?{}:O;return zcf(l,n,!1,O)}; pU5=function(l,n,O){O=O===void 0?{}:O;return zcf(l,n,!0,O)}; sKg=function(l,n){n=n===void 0?{}:n;var O,L;return g.Y(function(X){if(X.S==1)return g.Q(X,g.lI(),2);if(X.S!=3){O=X.W;if(!O)return X.return();rF(l);L=iz0(l);return g.Q(X,SH(L.actualName,n),3)}return g.Q(X,K1(L.actualName,O),0)})}; fWf=function(l,n,O){l=l.map(function(L){return g.Y(function(X){return X.S==1?g.Q(X,SH(L.actualName,n),2):g.Q(X,K1(L.actualName,O),0)})}); return Promise.all(l).then(function(){})}; Kt9=function(l){var n=n===void 0?{}:n;var O,L;return g.Y(function(X){if(X.S==1)return g.Q(X,g.lI(),2);if(X.S!=3){O=X.W;if(!O)return X.return();rF(l);return g.Q(X,VW9(l,O),3)}L=X.W;return g.Q(X,fWf(L,n,O),0)})}; aW9=function(l,n){n=n===void 0?{}:n;var O;return g.Y(function(L){if(L.S==1)return g.Q(L,g.lI(),2);if(L.S!=3){O=L.W;if(!O)return L.return();rF(l);return g.Q(L,SH(l,n),3)}return g.Q(L,K1(l,O),0)})}; nK=function(l,n){p1.call(this,l,n);this.options=n;rF(l)}; Rcg=function(l,n){var O;return function(){O||(O=new nK(l,n));return O}}; g.Ox=function(l,n){return Rcg(l,n)}; gx=function(l){return g.sy(Cxf(),l)}; tWi=function(l,n,O,L){var X,F,x;return g.Y(function(Z){switch(Z.S){case 1:return X={config:l,hashData:n,timestamp:L!==void 0?L:(0,g.Q_)()},g.Q(Z,gx(O),2);case 2:return F=Z.W,g.Q(Z,F.clear("hotConfigStore"),3);case 3:return g.Q(Z,g.IZ(F,"hotConfigStore",X),4);case 4:return x=Z.W,Z.return(x)}})}; vyf=function(l,n,O,L,X){var F,x,Z;return g.Y(function(J){switch(J.S){case 1:return F={config:l,hashData:n,configData:O,timestamp:X!==void 0?X:(0,g.Q_)()},g.Q(J,gx(L),2);case 2:return x=J.W,g.Q(J,x.clear("coldConfigStore"),3);case 3:return g.Q(J,g.IZ(x,"coldConfigStore",F),4);case 4:return Z=J.W,J.return(Z)}})}; lwe=function(l){var n,O;return g.Y(function(L){return L.S==1?g.Q(L,gx(l),2):L.S!=3?(n=L.W,O=void 0,g.Q(L,g.Gz(n,["coldConfigStore"],{mode:"readwrite",aO:!0},function(X){return g.iX(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(F){O=F.getValue()})}),3)):L.return(O)})}; n$f=function(l){var n,O;return g.Y(function(L){return L.S==1?g.Q(L,gx(l),2):L.S!=3?(n=L.W,O=void 0,g.Q(L,g.Gz(n,["hotConfigStore"],{mode:"readwrite",aO:!0},function(X){return g.iX(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(F){O=F.getValue()})}),3)):L.return(O)})}; Oxk=function(){return g.Y(function(l){return g.Q(l,Kt9("ytGcfConfig"),0)})}; LK=function(){g.V.call(this);this.W=[];this.S=[];var l=g.zk("yt.gcf.config.hotUpdateCallbacks");l?(this.W=[].concat(g.E(l)),this.S=l):(this.S=[],g.i9("yt.gcf.config.hotUpdateCallbacks",this.S))}; Zg=function(){var l=this;this.B=!1;this.N=this.L=0;this.V=new LK;this.DQ={ds5:function(){l.B=!0}, s6o:function(){return l.S}, RaJ:function(n){Xl(l,n)}, Uv:function(n){l.Uv(n)}, N7J:function(n){oH(l,n)}, L6:function(){return l.coldHashData}, Jx:function(){return l.hotHashData}, zSo:function(){return l.W}, LS2:function(){return Fl()}, CS5:function(){return xO()}, D1f:function(){return g.zk("yt.gcf.config.coldHashData")}, VNm:function(){return g.zk("yt.gcf.config.hotHashData")}, tk2:function(){g$0(l)}, O81:function(){l.Uv(void 0);hc(l);delete Zg.instance}, obF:function(n){l.N=n}, eS5:function(){return l.N}}}; Lq8=function(){if(!Zg.instance){var l=new Zg;Zg.instance=l}return Zg.instance}; Fqf=function(l){var n;g.Y(function(O){if(O.S==1)return g.E0("start_client_gcf")||g.E0("delete_gcf_config_db")?g.E0("start_client_gcf")?g.Q(O,g.lI(),3):O.D2(2):O.return();O.S!=2&&((n=O.W)&&g.Ci()&&!g.E0("delete_gcf_config_db")?(l.B=!0,g$0(l)):(XKi(l),o$q(l)));return g.E0("delete_gcf_config_db")?g.Q(O,Oxk(),0):O.D2(0)})}; Jc=function(){var l;return(l=xO())!=null?l:g.R3("RAW_HOT_CONFIG_GROUP")}; xHf=function(l){var n,O,L,X,F,x;return g.Y(function(Z){switch(Z.S){case 1:if(l.W)return Z.return(xO());if(!l.B)return n=g.N3("getHotConfig IDB not initialized"),nh(n),Z.return(Promise.reject(n));O=vo();L=g.R3("TIME_CREATED_MS");if(!O){X=g.N3("getHotConfig token error");nh(X);Z.D2(2);break}return g.Q(Z,n$f(O),3);case 3:if((F=Z.W)&&F.timestamp>L)return Xl(l,F.config),l.Uv(F.hashData),Z.return(xO());case 2:o$q(l);if(!(O&&l.W&&l.hotHashData)){Z.D2(4);break}return g.Q(Z,tWi(l.W,l.hotHashData,O,L),4);case 4:return l.W? Z.return(xO()):(x=new g.at("Config not available in ytConfig"),nh(x),Z.return(Promise.reject(x)))}})}; Zx5=function(l){var n,O,L,X,F,x;return g.Y(function(Z){switch(Z.S){case 1:if(l.S)return Z.return(Fl());if(!l.B)return n=g.N3("getColdConfig IDB not initialized"),nh(n),Z.return(Promise.reject(n));O=vo();L=g.R3("TIME_CREATED_MS");if(!O){X=g.N3("getColdConfig");nh(X);Z.D2(2);break}return g.Q(Z,lwe(O),3);case 3:if((F=Z.W)&&F.timestamp>L)return oH(l,F.config),h9i(l,F.configData),hc(l,F.hashData),Z.return(Fl());case 2:XKi(l);if(!(O&&l.S&&l.coldHashData&&l.configData)){Z.D2(4);break}return g.Q(Z,vyf(l.S, l.coldHashData,l.configData,O,L),4);case 4:return l.S?Z.return(Fl()):(x=new g.at("Config not available in ytConfig"),nh(x),Z.return(Promise.reject(x)))}})}; g$0=function(l){if(!l.W||!l.S){if(!vo()){var n=g.N3("scheduleGetConfigs");nh(n)}l.L||(l.L=g.St.Ou(function(){return g.Y(function(O){switch(O.S){case 1:return g.We(O,2),g.Q(O,xHf(l),4);case 4:g.N7(O,3);break;case 2:g.D5(O);case 3:return g.We(O,5),g.Q(O,Zx5(l),7);case 7:g.N7(O,6);break;case 5:g.D5(O);case 6:l.L&&(l.L=0),g.Tk(O)}})},100))}}; Jz8=function(l,n,O){var L,X,F;return g.Y(function(x){switch(x.S){case 1:if(!g.E0("start_client_gcf")){x.D2(0);break}O&&Xl(l,O);l.Uv(n);L=vo();if(!L){x.D2(3);break}if(O){x.D2(4);break}return g.Q(x,n$f(L),5);case 5:X=x.W,O=(F=X)==null?void 0:F.config;case 4:return g.Q(x,tWi(O,n,L),3);case 3:if(O)for(var Z=O,J=g.P(l.V.S),w=J.next();!w.done;w=J.next())w=w.value,w(Z);g.Tk(x)}})}; wK5=function(l,n,O){var L,X,F,x;return g.Y(function(Z){if(Z.S==1){if(!g.E0("start_client_gcf"))return Z.D2(0);hc(l,n);return(L=vo())?O?Z.D2(4):g.Q(Z,lwe(L),5):Z.D2(0)}Z.S!=4&&(X=Z.W,O=(F=X)==null?void 0:F.config);if(!O)return Z.D2(0);x=O.configData;return g.Q(Z,vyf(O,n,x,L),0)})}; Hx9=function(){var l=Lq8(),n=(0,g.Q_)()-l.N;if(!(l.N!==0&&n<g.NY("send_config_hash_timer"))){n=g.zk("yt.gcf.config.coldConfigData");var O=g.zk("yt.gcf.config.hotHashData"),L=g.zk("yt.gcf.config.coldHashData");n&&O&&L&&(l.N=(0,g.Q_)());return{coldConfigData:n,hotHashData:O,coldHashData:L}}}; XKi=function(l){oH(l,g.R3("RAW_COLD_CONFIG_GROUP"));hc(l,g.R3("SERIALIZED_COLD_HASH_DATA"));var n;h9i(l,(n=l.S)==null?void 0:n.configData)}; o$q=function(l){Xl(l,g.R3("RAW_HOT_CONFIG_GROUP"));l.Uv(g.R3("SERIALIZED_HOT_HASH_DATA"))}; Xl=function(l,n){l.W=n;g.i9("yt.gcf.config.hotConfigGroup",l.W||null)}; oH=function(l,n){l.S=n;g.i9("yt.gcf.config.coldConfigGroup",l.S||null)}; hc=function(l,n){l.coldHashData=n;g.i9("yt.gcf.config.coldHashData",l.coldHashData||null)}; h9i=function(l,n){l.configData=n;g.i9("yt.gcf.config.coldConfigData",l.configData||null)}; xO=function(){return g.zk("yt.gcf.config.hotConfigGroup")}; Fl=function(){return g.zk("yt.gcf.config.coldConfigGroup")}; Az0=function(){return"INNERTUBE_API_KEY"in Kx&&"INNERTUBE_API_VERSION"in Kx}; g.wx=function(){return{innertubeApiKey:g.R3("INNERTUBE_API_KEY"),innertubeApiVersion:g.R3("INNERTUBE_API_VERSION"),L7:g.R3("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Tm:g.R3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),yG:g.R3("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.R3("INNERTUBE_CONTEXT_CLIENT_VERSION"),XL:g.R3("INNERTUBE_CONTEXT_HL"),t8:g.R3("INNERTUBE_CONTEXT_GL"),F3:g.R3("INNERTUBE_HOST_OVERRIDE")||"",Pz:!!g.R3("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),tp3:!!g.R3("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.R3("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.H2=function(l){var n={client:{hl:l.XL,gl:l.t8,clientName:l.Tm,clientVersion:l.innertubeContextClientVersion,configInfo:l.L7}};navigator.userAgent&&(n.client.userAgent=String(navigator.userAgent));var O=g.Be.devicePixelRatio;O&&O!=1&&(n.client.screenDensityFloat=String(O));O=DE();O!==""&&(n.client.experimentsToken=O);O=qY();O.length>0&&(n.request={internalExperimentFlags:O});bx0(l,void 0,n);rzi(void 0,n);UHf(void 0,n);ui5(l,void 0,n);Pef(void 0,n);g.E0("start_client_gcf")&&TLi(void 0,n);g.R3("DELEGATED_SESSION_ID")&& !g.E0("pageid_as_header_web")&&(n.user={onBehalfOfUser:g.R3("DELEGATED_SESSION_ID")});!g.E0("fill_delegate_context_in_gel_killswitch")&&(l=g.R3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(n.user=Object.assign({},n.user,{serializedDelegationContext:l}));l=g.R3("INNERTUBE_CONTEXT");var L;if(g.E0("enable_persistent_device_token")&&(l==null?0:(L=l.client)==null?0:L.rolloutToken)){var X;n.client.rolloutToken=l==null?void 0:(X=l.client)==null?void 0:X.rolloutToken}L=Object;X=L.assign;l=n.client; O={};for(var F=g.P(Object.entries(Lh(g.R3("DEVICE","")))),x=F.next();!x.done;x=F.next()){var Z=g.P(x.value);x=Z.next().value;Z=Z.next().value;x==="cbrand"?O.deviceMake=Z:x==="cmodel"?O.deviceModel=Z:x==="cbr"?O.browserName=Z:x==="cbrver"?O.browserVersion=Z:x==="cos"?O.osName=Z:x==="cosver"?O.osVersion=Z:x==="cplatform"&&(O.platform=Z)}n.client=X.call(L,l,O);return n}; bx0=function(l,n,O){l=l.Tm;if(l==="WEB"||l==="MWEB"||l===1||l===2)if(n){O=xM(n,eg,96)||new eg;var L=Bk();L=Object.keys(Wq9).indexOf(L);L=L===-1?null:L;L!==null&&TZ(O,3,L);hX(n,eg,96,O)}else O&&(O.client.mainAppWebInfo=(L=O.client.mainAppWebInfo)!=null?L:{},O.client.mainAppWebInfo.webDisplayMode=Bk())}; rzi=function(l,n){var O=g.zk("yt.embedded_player.embed_url");O&&(l?(n=xM(l,I3,7)||new I3,uV(n,4,O),hX(l,I3,7,n)):n&&(n.thirdParty={embedUrl:O}))}; UHf=function(l,n){var O;if(g.E0("web_log_memory_total_kbytes")&&((O=g.Be.navigator)==null?0:O.deviceMemory)){var L;O=(L=g.Be.navigator)==null?void 0:L.deviceMemory;l?i3(l,95,Ep(O*1E6)):n&&(n.client.memoryTotalKbytes=""+O*1E6)}}; ui5=function(l,n,O){if(l.appInstallData)if(n){var L;O=(L=xM(n,QE,62))!=null?L:new QE;uV(O,6,l.appInstallData);hX(n,QE,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},O.client.configInfo.appInstallData=l.appInstallData)}; Pef=function(l,n){var O=Lti();O&&(l?TZ(l,61,E$f[O]):n&&(n.client.connectionType=O));g.E0("web_log_effective_connection_type")&&(O=oya())&&(l?TZ(l,94,NLv[O]):n&&(n.client.effectiveConnectionType=O))}; DHv=function(l,n,O){O=O===void 0?{}:O;var L={};g.R3("EOM_VISITOR_DATA")?L={"X-Goog-EOM-Visitor-Id":g.R3("EOM_VISITOR_DATA")}:L={"X-Goog-Visitor-Id":O.visitorData||g.R3("VISITOR_DATA","")};if(n&&n.includes("www.youtube-nocookie.com"))return L;n=O.jB||g.R3("AUTHORIZATION");n||(l?n="Bearer "+g.zk("gapi.auth.getToken")().access_token:(l=tti().pU(Ac),g.E0("pageid_as_header_web")||delete l["X-Goog-PageId"],L=Object.assign({},L,l)));n&&(L.Authorization=n);return L}; TLi=function(l,n){var O=Hx9();if(O){var L=O.coldConfigData,X=O.coldHashData;O=O.hotHashData;if(l){var F;n=(F=xM(l,QE,62))!=null?F:new QE;L=uV(n,1,L);uV(L,3,X).Uv(O);hX(l,QE,62,n)}else n&&(n.client.configInfo=n.client.configInfo||{},L&&(n.client.configInfo.coldConfigData=L),X&&(n.client.configInfo.coldHashData=X),O&&(n.client.configInfo.hotHashData=O))}}; bI=function(l,n){this.version=l;this.args=n}; rx=function(l,n){this.topic=l;this.S=n}; uI=function(l,n){var O=Ux();O&&O.publish.call(O,l.toString(),l,n)}; yzk=function(l){var n=qla,O=Ux();if(!O)return 0;var L=O.subscribe(n.toString(),function(X,F){var x=g.zk("ytPubsub2Pubsub2SkipSubKey");x&&x==L||(x=function(){if(P2[L])try{if(F&&n instanceof rx&&n!=X)try{var Z=n.S,J=F;if(!J.args||!J.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!Z.SS){var w=new Z;Z.SS=w.version}var H=Z.SS}catch(A){}if(!H||J.version!=H)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{F=Reflect.construct(Z, g.Ot(J.args))}catch(A){throw A.message="yt.pubsub2.Data.deserialize(): "+A.message,A;}}catch(A){throw A.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+n.toString()+": "+A.message,A;}l.call(window,F)}catch(A){g.vK(A)}},k_g[n.toString()]?g.gF()?g.St.Ou(x):g.U0(x,0):x())}); P2[L]=!0;Tu[n.toString()]||(Tu[n.toString()]=[]);Tu[n.toString()].push(L);return L}; e9v=function(){var l=Mgf,n=yzk(function(O){l.apply(void 0,arguments);Q35(n)}); return n}; Q35=function(l){var n=Ux();n&&(typeof l==="number"&&(l=[l]),g.ba(l,function(O){n.unsubscribeByKey(O);delete P2[O]}))}; Ux=function(){return g.zk("ytPubsub2Pubsub2Instance")}; kO=function(l,n,O){O=O===void 0?{sampleRate:.1}:O;Math.random()<Math.min(.02,O.sampleRate/100)&&uI("meta_logging_csi_event",{timerName:l,wX1:n})}; Yli=function(){yf||(yf=qH(g.R3("WORKER_SERIALIZATION_URL")));return yf||void 0}; Qf=function(){var l=Yli();Mz||l===void 0||(Mz=new Worker(y6(l),void 0));return Mz}; j39=function(){return typeof Worker==="function"&&Yli()?!0:!1}; mH5=function(){if(j39()&&!e3){var l=function(O){O=O.data;if(O.op==="gzippedGelBatch"){var L=YO.get(O.key);L&&(G_9(O.gzippedBatch,L.latencyPayload,L.url,L.options,L.sendFn),YO.delete(O.key))}},n=Qf(); n&&(n.addEventListener("message",l),n.onerror=function(){YO.clear()},e3=!0)}}; mB=function(l,n,O,L,X){X=X===void 0?!1:X;var F={startTime:(0,g.Q_)(),ticks:{},infos:{}};if(j3)try{var x=Iw9(n);if(x!=null&&(x>dH5||x<$Hv))L(l,O);else{if(g.E0("gzip_gel_with_worker")&&(g.E0("initial_gzip_use_main_thread")&&!Vg7||!g.E0("initial_gzip_use_main_thread"))){e3||mH5();var Z=Qf();if(Z&&!X){YO.set(Gu,{latencyPayload:F,url:l,options:O,sendFn:L});Z.postMessage({op:"gelBatchToGzip",serializedBatch:n,key:Gu});Gu++;return}}var J=q49(BLe(n));G_9(J,F,l,O,L)}}catch(w){nh(w),L(l,O)}else L(l,O)}; G_9=function(l,n,O,L,X){Vg7=!1;var F=(0,g.Q_)();n.ticks.gelc=F;IH++;g.E0("disable_compression_due_to_performance_degredation")&&F-n.startTime>=cz9&&(dx++,g.E0("abandon_compression_after_N_slow_zips")?IH===g.NY("compression_disable_point")&&dx>ix9&&(j3=!1):j3=!1);z9a(n);L.headers||(L.headers={});L.headers["Content-Encoding"]="gzip";L.postBody=l;L.postParams=void 0;X(O,L)}; Slf=function(l){var n=n===void 0?!1:n;var O=O===void 0?!1:O;var L=(0,g.Q_)(),X={startTime:L,ticks:{},infos:{}},F=n?g.zk("yt.logging.gzipForFetch",!1):!0;if(j3&&F){if(!l.body)return l;try{var x=O?l.body:typeof l.body==="string"?l.body:JSON.stringify(l.body);F=x;if(!O&&typeof x==="string"){var Z=Iw9(x);if(Z!=null&&(Z>dH5||Z<$Hv))return l;O=n?{level:1}:void 0;F=q49(BLe(x),O);var J=(0,g.Q_)();X.ticks.gelc=J;if(n){IH++;if((g.E0("disable_compression_due_to_performance_degredation")||g.E0("disable_compression_due_to_performance_degradation_lr"))&& J-L>=cz9)if(dx++,g.E0("abandon_compression_after_N_slow_zips")||g.E0("abandon_compression_after_N_slow_zips_lr")){n=dx/IH;var w=ix9/g.NY("compression_disable_point");IH>0&&IH%g.NY("compression_disable_point")===0&&n>=w&&(j3=!1)}else j3=!1;z9a(X)}}l.headers=Object.assign({},{"Content-Encoding":"gzip"},l.headers||{});l.body=F;return l}catch(H){return nh(H),l}}else return l}; Iw9=function(l){try{return(new Blob(l.split(""))).size}catch(n){return nh(n),null}}; z9a=function(l){g.E0("gel_compression_csi_killswitch")||!g.E0("log_gel_compression_latency")&&!g.E0("log_gel_compression_latency_lr")||kO("gel_compression",l,{sampleRate:.1})}; Vf=function(l){var n=this;this.J$=this.S=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.MK=function(){}; this.now=Date.now;this.LU=!1;this.DQ={vbG:function(H){n.uQ=H}, iPJ:function(){n.v6()}, w6:function(){n.vn()}, Vd:function(H){return g.Y(function(A){return g.Q(A,n.Vd(H),0)})}, i9:function(H,A){return n.i9(H,A)}, Fs:function(){n.Fs()}}; var O;this.tv=(O=l.tv)!=null?O:100;var L;this.yI=(L=l.yI)!=null?L:1;var X;this.Js=(X=l.Js)!=null?X:2592E6;var F;this.Ly=(F=l.Ly)!=null?F:12E4;var x;this.XF=(x=l.XF)!=null?x:5E3;var Z;this.uQ=(Z=l.uQ)!=null?Z:void 0;this.ud=!!l.ud;var J;this.y0=(J=l.y0)!=null?J:.1;var w;this.Rt=(w=l.Rt)!=null?w:10;l.handleError&&(this.handleError=l.handleError);l.MK&&(this.MK=l.MK);l.LU&&(this.LU=l.LU);l.J$&&(this.J$=l.J$);this.MQ=l.MQ;this.ZJ=l.ZJ;this.lU=l.lU;this.wZ=l.wZ;this.sendFn=l.sendFn;this.Ic=l.Ic;this.Pb= l.Pb;$O(this)&&(!this.MQ||this.MQ("networkless_logging"))&&pK9(this)}; pK9=function(l){$O(l)&&!l.LU&&(l.S=!0,l.ud&&Math.random()<=l.y0&&l.lU.XH(l.uQ),l.Fs(),l.wZ.EP()&&l.v6(),l.wZ.listen(l.Ic,l.v6.bind(l)),l.wZ.listen(l.Pb,l.vn.bind(l)))}; Kq9=function(l,n){if(!$O(l))throw Error("IndexedDB is not supported: updateRequestHandlers");var O=n.options.onError?n.options.onError:function(){}; n.options.onError=function(X,F){var x,Z,J,w;return g.Y(function(H){switch(H.S){case 1:x=s3v(F);(Z=fw5(F))&&l.MQ&&l.MQ("web_enable_error_204")&&l.handleError(Error("Request failed due to compression"),n.url,F);if(!(l.MQ&&l.MQ("nwl_consider_error_code")&&x||l.MQ&&!l.MQ("nwl_consider_error_code")&&l.potentialEsfErrorCounter<=l.Rt)){H.D2(2);break}if(!l.wZ.G_){H.D2(3);break}return g.Q(H,l.wZ.G_(),3);case 3:if(l.wZ.EP()){H.D2(2);break}O(X,F);if(!l.MQ||!l.MQ("nwl_consider_error_code")||((J=n)==null?void 0: J.id)===void 0){H.D2(6);break}return g.Q(H,l.lU.Tf(n.id,l.uQ,!1),6);case 6:return H.return();case 2:if(l.MQ&&l.MQ("nwl_consider_error_code")&&!x&&l.potentialEsfErrorCounter>l.Rt)return H.return();l.potentialEsfErrorCounter++;if(((w=n)==null?void 0:w.id)===void 0){H.D2(8);break}return n.sendCount<l.yI?g.Q(H,l.lU.Tf(n.id,l.uQ,!0,Z?!1:void 0),12):g.Q(H,l.lU.BK(n.id,l.uQ),8);case 12:l.ZJ.Ou(function(){l.wZ.EP()&&l.v6()},l.XF); case 8:O(X,F),g.Tk(H)}})}; var L=n.options.onSuccess?n.options.onSuccess:function(){}; n.options.onSuccess=function(X,F){var x;return g.Y(function(Z){if(Z.S==1)return((x=n)==null?void 0:x.id)===void 0?Z.D2(2):g.Q(Z,l.lU.BK(n.id,l.uQ),2);l.wZ.LV&&l.MQ&&l.MQ("vss_network_hint")&&l.wZ.LV(!0);L(X,F);g.Tk(Z)})}; return n}; B2=function(l,n){l.X8&&!l.wZ.EP()?l.X8(n):l.handleError(n)}; $O=function(l){return!!l.uQ||l.J$}; s3v=function(l){var n;return(l=l==null?void 0:(n=l.error)==null?void 0:n.code)&&l>=400&&l<=599?!1:!0}; fw5=function(l){var n;l=l==null?void 0:(n=l.error)==null?void 0:n.code;return!(l!==400&&l!==415)}; aw0=function(){if(c2)return c2();var l={};c2=g.Ox("LogsDatabaseV2",{L8:(l.LogsRequestsStore={JM:2},l),shared:!1,upgrade:function(n,O,L){O(2)&&g.Yt(n,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});O(3);O(5)&&(L=L.objectStore("LogsRequestsStore"),L.S.indexNames.contains("newRequest")&&L.S.deleteIndex("newRequest"),g.$t(L,"newRequestV2",["status","interface","timestamp"]));O(7)&&jH(n,"sapisid");O(9)&&jH(n,"SWHealthLog")}, version:9});return c2()}; iI=function(l){return g.sy(aw0(),l)}; Ceq=function(l,n){var O,L,X,F;return g.Y(function(x){if(x.S==1)return O={startTime:(0,g.Q_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.Q(x,iI(n),2);if(x.S!=3)return L=x.W,X=Object.assign({},l,{options:JSON.parse(JSON.stringify(l.options)),interface:g.R3("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.Q(x,g.IZ(L,"LogsRequestsStore",X),3);F=x.W;O.ticks.tc=(0,g.Q_)();R9v(O);return x.return(F)})}; tga=function(l,n){var O,L,X,F,x,Z,J,w;return g.Y(function(H){if(H.S==1)return O={startTime:(0,g.Q_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.Q(H,iI(n),2);if(H.S!=3)return L=H.W,X=g.R3("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[l,X,0],x=[l,X,(0,g.Q_)()],Z=IDBKeyRange.bound(F,x),J="prev",g.E0("use_fifo_for_networkless")&&(J="next"),w=void 0,g.Q(H,g.Gz(L,["LogsRequestsStore"],{mode:"readwrite",aO:!0},function(A){return g.iX(A.objectStore("LogsRequestsStore").index("newRequestV2"), {query:Z,direction:J},function(b){b.getValue()&&(w=b.getValue(),l==="NEW"&&(w.status="QUEUED",b.update(w)))})}),3); O.ticks.tc=(0,g.Q_)();R9v(O);return H.return(w)})}; v$a=function(l,n){var O;return g.Y(function(L){if(L.S==1)return g.Q(L,iI(n),2);O=L.W;return L.return(g.Gz(O,["LogsRequestsStore"],{mode:"readwrite",aO:!0},function(X){var F=X.objectStore("LogsRequestsStore");return F.get(l).then(function(x){if(x)return x.status="QUEUED",g.mI(F,x).then(function(){return x})})}))})}; lEk=function(l,n,O,L){O=O===void 0?!0:O;var X;return g.Y(function(F){if(F.S==1)return g.Q(F,iI(n),2);X=F.W;return F.return(g.Gz(X,["LogsRequestsStore"],{mode:"readwrite",aO:!0},function(x){var Z=x.objectStore("LogsRequestsStore");return Z.get(l).then(function(J){return J?(J.status="NEW",O&&(J.sendCount+=1),L!==void 0&&(J.options.compress=L),g.mI(Z,J).then(function(){return J})):g.q3.resolve(void 0)})}))})}; npi=function(l,n){var O;return g.Y(function(L){if(L.S==1)return g.Q(L,iI(n),2);O=L.W;return L.return(O.delete("LogsRequestsStore",l))})}; Oh9=function(l){var n,O;return g.Y(function(L){if(L.S==1)return g.Q(L,iI(l),2);n=L.W;O=(0,g.Q_)()-2592E6;return g.Q(L,g.Gz(n,["LogsRequestsStore"],{mode:"readwrite",aO:!0},function(X){return g.V_(X.objectStore("LogsRequestsStore"),{},function(F){if(F.getValue().timestamp<=O)return F.delete().then(function(){return g.Bo(F)})})}),0)})}; gpi=function(){g.Y(function(l){return g.Q(l,Kt9("LogsDatabaseV2"),0)})}; R9v=function(l){g.E0("nwl_csi_killswitch")||kO("networkless_performance",l,{sampleRate:1})}; Xu5=function(l){return g.sy(LAe(),l)}; opq=function(l){var n,O;g.Y(function(L){if(L.S==1)return g.Q(L,Xu5(l),2);n=L.W;O=(0,g.Q_)()-2592E6;return g.Q(L,g.Gz(n,["SWHealthLog"],{mode:"readwrite",aO:!0},function(X){return g.V_(X.objectStore("SWHealthLog"),{},function(F){if(F.getValue().timestamp<=O)return F.delete().then(function(){return g.Bo(F)})})}),0)})}; FAi=function(l){var n;return g.Y(function(O){if(O.S==1)return g.Q(O,Xu5(l),2);n=O.W;return g.Q(O,n.clear("SWHealthLog"),0)})}; g.zu=function(l,n,O,L,X,F,x){X=X===void 0?"":X;F=F===void 0?!1:F;x=x===void 0?!1:x;if(l)if(O&&!g.s0())nh(new g.at("Legacy referrer-scrubbed ping detected")),l&&xYk(l,void 0,{scrubReferrer:!0});else if(X)kp(l,n,"POST",X,L);else if(g.R3("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||L||x)kp(l,n,"GET","",L,void 0,F,x);else{b:{try{var Z=new fsi({url:l});if(Z.B?typeof Z.N!=="string"||Z.N.length===0?0:{version:3,LQ:Z.N,B1:yu(Z.S,"act=1","ri=1",K1q(Z))}:Z.V&&{version:4,LQ:yu(Z.S,"dct=1","suid="+Z.L,""),B1:yu(Z.S, "act=1","ri=1","suid="+Z.L)}){var J=Ih(g.$o(5,l));var w=!(!J||!J.endsWith("/aclk")||fr(l,"ri")!=="1");break b}}catch(H){}w=!1}w?hR5(l)?(n&&n(),O=!0):O=!1:O=!1;O||xYk(l,n)}}; hR5=function(l,n){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(l,n===void 0?"":n))return!0}catch(O){}return!1}; xYk=function(l,n,O){O=O===void 0?{}:O;var L=new Image,X=""+Zhv++;S3[X]=L;L.onload=L.onerror=function(){n&&S3[X]&&n();delete S3[X]}; O.scrubReferrer&&(L.referrerPolicy="no-referrer");L.src=l}; JPf=function(l){var n;return((n=document.featurePolicy)==null?0:n.allowedFeatures().includes("attribution-reporting"))?l+"&nis=6":l+"&nis=5"}; sx=function(){pK||(pK=new Xm("yt.offline"));return pK}; wu9=function(l){if(g.E0("offline_error_handling")){var n=sx().get("errors",!0)||{};n[l.message]={name:l.name,stack:l.stack};l.level&&(n[l.message].level=l.level);sx().set("errors",n,2592E3,!0)}}; fK=function(){this.S=new Map;this.W=!1}; KK=function(){if(!fK.instance){var l=g.zk("yt.networkRequestMonitor.instance")||new fK;g.i9("yt.networkRequestMonitor.instance",l);fK.instance=l}return fK.instance}; aH=function(){g.vE.call(this);var l=this;this.W=!1;this.S=qoi();this.S.listen("networkstatus-online",function(){if(l.W&&g.E0("offline_error_handling")){var n=sx().get("errors",!0);if(n){for(var O in n)if(n[O]){var L=new g.at(O,"sent via offline_errors");L.name=n[O].name;L.stack=n[O].stack;L.level=n[O].level;g.vK(L)}sx().set("errors",{},2592E3,!0)}}})}; Hhi=function(){if(!aH.instance){var l=g.zk("yt.networkStatusManager.instance")||new aH;g.i9("yt.networkStatusManager.instance",l);aH.instance=l}return aH.instance}; g.RH=function(l){l=l===void 0?{}:l;g.vE.call(this);var n=this;this.S=this.L=0;this.W=Hhi();var O=g.zk("yt.networkStatusManager.instance.listen").bind(this.W);O&&(l.rateLimit?(this.rateLimit=l.rateLimit,O("networkstatus-online",function(){APi(n,"publicytnetworkstatus-online")}),O("networkstatus-offline",function(){APi(n,"publicytnetworkstatus-offline")})):(O("networkstatus-online",function(){n.dispatchEvent("publicytnetworkstatus-online")}),O("networkstatus-offline",function(){n.dispatchEvent("publicytnetworkstatus-offline")})))}; APi=function(l,n){l.rateLimit?l.S?(g.St.DN(l.L),l.L=g.St.Ou(function(){l.N!==n&&(l.dispatchEvent(n),l.N=n,l.S=(0,g.Q_)())},l.rateLimit-((0,g.Q_)()-l.S))):(l.dispatchEvent(n),l.N=n,l.S=(0,g.Q_)()):l.dispatchEvent(n)}; tc=function(){var l=Vf.call;CK||(CK=new g.RH({zVQ:!0,aEf:!0}));l.call(Vf,this,{lU:{XH:Oh9,BK:npi,z8:tga,oP5:v$a,Tf:lEk,set:Ceq},wZ:CK,handleError:function(n,O,L){var X,F=L==null?void 0:(X=L.error)==null?void 0:X.code;if(F===400||F===415){var x;nh(new g.at(n.message,O,L==null?void 0:(x=L.error)==null?void 0:x.code),void 0,void 0,void 0,!0)}else g.vK(n)}, MK:nh,sendFn:bh5,now:g.Q_,X8:wu9,ZJ:g.Oy(),Ic:"publicytnetworkstatus-online",Pb:"publicytnetworkstatus-offline",ud:!0,y0:.1,Rt:g.NY("potential_esf_error_limit",10),MQ:g.E0,LU:!(g.Ci()&&g.VM(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.U_;g.E0("networkless_immediately_drop_all_requests")&&gpi();aW9("LogsDatabaseV2")}; v2=function(){var l=g.zk("yt.networklessRequestController.instance");l||(l=new tc,g.i9("yt.networklessRequestController.instance",l),g.E0("networkless_logging")&&g.lI().then(function(n){l.uQ=n;pK9(l);l.N.resolve();l.ud&&Math.random()<=l.y0&&l.uQ&&opq(l.uQ);g.E0("networkless_immediately_drop_sw_health_store")&&rPa(l)})); return l}; rPa=function(l){var n;g.Y(function(O){if(!l.uQ)throw n=g.N3("clearSWHealthLogsDb"),n;return O.return(FAi(l.uQ).catch(function(L){l.handleError(L)}))})}; bh5=function(l,n,O,L){L=L===void 0?!1:L;n=g.E0("web_fp_via_jspb")?Object.assign({},n):n;g.E0("use_cfr_monitor")&&UYa(l,n);if(g.E0("use_request_time_ms_header"))n.headers&&hP(l)&&(n.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Q_)())));else{var X;if((X=n.postParams)==null?0:X.requestTimeMs)n.postParams.requestTimeMs=Math.round((0,g.Q_)())}O&&Object.keys(n).length===0?g.zu(l):n.compress?n.postBody?(typeof n.postBody!=="string"&&(n.postBody=JSON.stringify(n.postBody)),mB(l,n.postBody, n,g.yA,L)):mB(l,JSON.stringify(n.postParams),n,MY,L):g.yA(l,n)}; lu=function(l,n){g.E0("use_event_time_ms_header")&&hP(l)&&(n.headers||(n.headers={}),n.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Q_)())));return n}; UYa=function(l,n){var O=n.onError?n.onError:function(){}; n.onError=function(X,F){KK().requestComplete(l,!1);O(X,F)}; var L=n.onSuccess?n.onSuccess:function(){}; n.onSuccess=function(X,F){KK().requestComplete(l,!0);L(X,F)}}; g.nP=function(l){this.config_=null;l?this.config_=l:Az0()&&(this.config_=g.wx())}; g.OG=function(l,n,O,L){function X(w){try{if((w===void 0?0:w)&&L.retry&&!L.networklessOptions.bypassNetworkless)F.method="POST",L.networklessOptions.writeThenSend?v2().writeThenSend(J,F):v2().sendAndWrite(J,F);else if(L.compress){var H=!L.networklessOptions.writeThenSend;if(F.postBody){var A=F.postBody;typeof A!=="string"&&(A=JSON.stringify(F.postBody));mB(J,A,F,g.yA,H)}else mB(J,JSON.stringify(F.postParams),F,MY,H)}else g.E0("web_all_payloads_via_jspb")?g.yA(J,F):MY(J,F)}catch(b){if(b.name==="InvalidAccessError")nh(Error("An extension is blocking network request.")); else throw b;}} !g.R3("VISITOR_DATA")&&n!=="visitor_id"&&Math.random()<.01&&nh(new g.at("Missing VISITOR_DATA when sending innertube request.",n,O,L));if(!l.isReady())throw l=new g.at("innertube xhrclient not ready",n,O,L),g.vK(l),l;var F={headers:L.headers||{},method:"POST",postParams:O,postBody:L.postBody,postBodyFormat:L.postBodyFormat||"JSON",onTimeout:function(){L.onTimeout()}, onFetchTimeout:L.onTimeout,onSuccess:function(w,H){if(L.onSuccess)L.onSuccess(H)}, onFetchSuccess:function(w){if(L.onSuccess)L.onSuccess(w)}, onError:function(w,H){if(L.onError)L.onError(H)}, onFetchError:function(w){if(L.onError)L.onError(w)}, timeout:L.timeout,withCredentials:!0,compress:L.compress};F.headers["Content-Type"]||(F.headers["Content-Type"]="application/json");O="";var x=l.config_.F3;x&&(O=x);x=l.config_.Pz||!1;var Z=DHv(x,O,L);Object.assign(F.headers,Z);F.headers.Authorization&&!O&&x&&(F.headers["x-origin"]=window.location.origin);var J=FX(""+O+("/youtubei/"+l.config_.innertubeApiVersion+"/"+n),{alt:"json"});g.zk("ytNetworklessLoggingInitializationOptions")&&uXk.isNwlInitialized?c5e().then(function(w){X(w)}):X(!1)}; g.Fx=function(l,n,O){var L=g.gz();if(L&&n){var X=L.subscribe(l,function(){function F(){LP[X]&&n.apply&&typeof n.apply=="function"&&n.apply(O||window,x)} var x=arguments;try{g.Xx[l]?F():g.U0(F,0)}catch(Z){g.vK(Z)}},O); LP[X]=!0;ou[l]||(ou[l]=[]);ou[l].push(X);return X}return 0}; Pk8=function(l){var n=g.Fx("LOGGED_IN",function(O){l.apply(void 0,arguments);g.xj(n)})}; g.xj=function(l){var n=g.gz();n&&(typeof l==="number"?l=[l]:typeof l==="string"&&(l=[parseInt(l,10)]),g.ba(l,function(O){n.unsubscribeByKey(O);delete LP[O]}))}; g.hs=function(l,n){var O=g.gz();return O?O.publish.apply(O,arguments):!1}; WAk=function(l){var n=g.gz();if(n)if(n.clear(l),l)Tcg(l);else for(var O in ou)Tcg(O)}; g.gz=function(){return g.Be.ytPubsubPubsubInstance}; Tcg=function(l){ou[l]&&(l=ou[l],g.ba(l,function(n){LP[n]&&delete LP[n]}),l.length=0)}; g.Z0=function(l,n,O){Epf(l,n,O===void 0?null:O)}; Epf=function(l,n,O){O=O===void 0?null:O;var L=Ncf(l),X=document.getElementById(L),F=X&&ICa(X),x=X&&!F;F?n&&n():(n&&(F=g.Fx(L,n),n=""+g.R8(n),DY9[n]=F),x||(X=q0k(l,L,function(){ICa(X)||(mC7(X),g.hs(L),g.U0(function(){WAk(L)},0))},O)))}; q0k=function(l,n,O,L){L=L===void 0?null:L;var X=g.nf("SCRIPT");X.id=n;X.onload=function(){O&&setTimeout(O,0)}; X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}}; L&&X.setAttribute("nonce",L);g.S8(X,g.k$(l));l=document.getElementsByTagName("head")[0]||document.body;l.insertBefore(X,l.firstChild);return X}; Ncf=function(l){var n=document.createElement("a");g.mv(n,l);l=n.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+lf(l)}; Js=function(l,n){if(l===n)l=!0;else if(Array.isArray(l)&&Array.isArray(n))l=g.Jm(l,n,Js);else if(g.Kv(l)&&g.Kv(n))a:if(g.qX(l).length!=g.qX(n).length)l=!1;else{for(var O in l)if(!Js(l[O],n[O])){l=!1;break a}l=!0}else l=!1;return l}; As=function(l){var n=g.eq.apply(1,arguments);if(!wz(l)||n.some(function(L){return!wz(L)}))throw Error("Only objects may be merged."); n=g.P(n);for(var O=n.next();!O.done;O=n.next())HV(l,O.value)}; HV=function(l,n){for(var O in n)if(wz(n[O])){if(O in l&&!wz(l[O]))throw Error("Cannot merge an object into a non-object.");O in l||(l[O]={});HV(l[O],n[O])}else if(bu(n[O])){if(O in l&&!bu(l[O]))throw Error("Cannot merge an array into a non-array.");O in l||(l[O]=[]);kjf(l[O],n[O])}else l[O]=n[O];return l}; kjf=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=O.value,wz(O)?l.push(HV({},O)):bu(O)?l.push(kjf([],O)):l.push(O);return l}; wz=function(l){return typeof l==="object"&&!Array.isArray(l)}; bu=function(l){return typeof l==="object"&&Array.isArray(l)}; Tn=function(l){g.V.call(this);this.W=l}; WV=function(l){Tn.call(this,!0);this.S=l}; yP5=function(l,n){g.V.call(this);var O=this;this.N=[];this.T=!1;this.W=0;this.B=this.V=this.L=!1;this.Wm=null;var L=(0,g.tg)(l,n);this.S=new g.vs(function(){return L(O.Wm)},300); g.c(this,this.S);this.Y=this.G=Infinity}; M_i=function(l,n){if(!n)return!1;for(var O=0;O<n.length;O++){var L=n.item(O);if(L&&l.N.includes(L.identifier))return!0}return!1}; NU=function(l){if(window.crypto&&window.crypto.getRandomValues)try{var n=Array(l),O=new Uint8Array(l);window.crypto.getRandomValues(O);for(var L=0;L<n.length;L++)n[L]=O[L];return n}catch(F){}n=Array(l);for(O=0;O<l;O++){L=Date.now();for(var X=0;X<L%23;X++)n[O]=Math.random();n[O]=Math.floor(Math.random()*256)}if(EG)for(O=1,L=0;L<EG.length;L++)n[O%l]^=n[(O-1)%l]/4^EG.charCodeAt(L),O++;return n}; g.D0=function(l){l=NU(l);for(var n=[],O=0;O<l.length;O++)n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[O]&63));return n.join("")}; g.QTa=function(){return g.M9(NU(16),function(l){return(l&15).toString(16)}).join("")}; eRe=function(){var l={};var n=l.U_F===void 0?!1:l.U_F;l=l.w0===void 0?!0:l.w0;if(g.zk("_lact",window)==null){var O=parseInt(g.R3("LACT"),10);O=isFinite(O)?Date.now()-Math.max(O,0):-1;g.i9("_lact",O,window);g.i9("_fact",O,window);O==-1&&qU();g.NV(document,"keydown",qU);g.NV(document,"keyup",qU);g.NV(document,"mousedown",qU);g.NV(document,"mouseup",qU);n?g.NV(window,"touchmove",function(){kj("touchmove",200)},{passive:!0}):(g.NV(window,"resize",function(){kj("resize",200)}),l&&g.NV(window,"scroll", function(){kj("scroll",200)})); new yd(function(){kj("mouse",100)}); g.NV(document,"touchstart",qU,{passive:!0});g.NV(document,"touchend",qU,{passive:!0})}}; kj=function(l,n){y3[l]||(y3[l]=!0,g.St.Ou(function(){qU();y3[l]=!1},n))}; qU=function(){g.zk("_lact",window)==null&&(eRe(),g.zk("_lact",window));var l=Date.now();g.i9("_lact",l,window);g.zk("_fact",window)==-1&&g.i9("_fact",l,window);(l=g.zk("ytglobal.ytUtilActivityCallback_"))&&l()}; MU=function(){var l=g.zk("_lact",window);return l==null?-1:Math.max(Date.now()-l,0)}; Q3=function(l){this.name=l}; e5=function(l){this.key=l}; Y0q=function(){var l=this;this.S=new Map;this.N=new Map;this.W=new Map;this.DQ={qkq:function(){return new Map(l.S)}}}; Yj=function(l,n){l.S.set(n.Y1,n);var O=l.N.get(n.Y1);if(O)try{O.uO(l.resolve(n.Y1))}catch(L){O.Cl(L)}}; Gn=function(l,n,O,L){L=L===void 0?!1:L;if(O.indexOf(n)>-1)throw Error("Deps cycle for: "+n);if(l.W.has(n))return l.W.get(n);if(!l.S.has(n)){if(L)return;throw Error("No provider for: "+n);}L=l.S.get(n);O.push(n);if(L.v3!==void 0)var X=L.v3;else if(L.kEG)X=L[j5]?jT0(l,L[j5],O):[],X=L.kEG.apply(L,g.E(X));else if(L.Vc){X=L.Vc;var F=X[j5]?jT0(l,X[j5],O):[];X=new (Function.prototype.bind.apply(X,[null].concat(g.E(F))))}else throw Error("Could not resolve providers for: "+n);O.pop();L.gbp||l.W.set(n,X); return X}; jT0=function(l,n,O){return n?n.map(function(L){return L instanceof e5?Gn(l,L.key,O,!0):Gn(l,L,O)}):[]}; Iu=function(){m_||(m_=new Y0q);return m_}; V3=function(){var l,n;return"h5vcc"in dz&&((l=dz.h5vcc.traceEvent)==null?0:l.traceBegin)&&((n=dz.h5vcc.traceEvent)==null?0:n.traceEnd)?1:"performance"in dz&&dz.performance.mark&&dz.performance.measure?2:0}; BV=function(l){var n=V3();switch(n){case 1:dz.h5vcc.traceEvent.traceBegin("YTLR",l);break;case 2:dz.performance.mark(l+"-start");break;case 0:break;default:FL(n,"unknown trace type")}}; Gj5=function(l){var n=V3();switch(n){case 1:dz.h5vcc.traceEvent.traceEnd("YTLR",l);break;case 2:n=l+"-start";var O=l+"-end";dz.performance.mark(O);dz.performance.measure(l,n,O);break;case 0:break;default:FL(n,"unknown trace type")}}; mYi=function(l){var n,O;(O=(n=window).onerror)==null||O.call(n,l.message,"",0,0,l)}; IEf=function(l){var n=this;var O=O===void 0?0:O;var L=L===void 0?g.Oy():L;this.N=O;this.scheduler=L;this.W=new g.U_;this.S=l;for(l={yR:0};l.yR<this.S.length;l={xD:void 0,yR:l.yR},l.yR++)l.xD=this.S[l.yR],O=function(X){return function(){X.xD.ZH();n.S[X.yR].rI=!0;n.S.every(function(F){return F.rI===!0})&&n.W.resolve()}}(l),L=vk(O,cV(this,l.xD)),this.S[l.yR]=Object.assign({},l.xD,{ZH:O, jobId:L})}; dYf=function(l){var n=Array.from(l.S.keys()).sort(function(L,X){return cV(l,l.S[X])-cV(l,l.S[L])}); n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=l.S[O.value],O.jobId===void 0||O.rI||(l.scheduler.DN(O.jobId),vk(O.ZH,10))}; cV=function(l,n){var O;return(O=n.priority)!=null?O:l.N}; zn=function(l){this.state=l;this.plugins=[];this.N=void 0;this.L={};iu&&BV(this.state)}; $Y5=function(l,n){var O=n.filter(function(X){return S5(l,X)===10}),L=n.filter(function(X){return S5(l,X)!==10}); return l.L.CG3?function(){var X=g.eq.apply(0,arguments);return g.Y(function(F){if(F.S==1)return g.Q(F,l.CQz.apply(l,[O].concat(g.E(X))),2);l.xm.apply(l,[L].concat(g.E(X)));g.Tk(F)})}:function(){var X=g.eq.apply(0,arguments); l.V1p.apply(l,[O].concat(g.E(X)));l.xm.apply(l,[L].concat(g.E(X)))}}; S5=function(l,n){var O,L;return(L=(O=l.N)!=null?O:n.priority)!=null?L:0}; pP=function(l){iu&&l&&BV(l)}; sG=function(l){iu&&l&&Gj5(l)}; Bc5=function(l,n,O){V_i&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+l.constructor.name+"] '"+l.state+"' to '"+n+"'"),console.log("with message: ",O),console.groupEnd())}; fP=function(l){if(g.E0("web_lifecycle_error_handling_killswitch"))return l();try{return l()}catch(n){mYi(n)}}; KP=function(l){zn.call(this,l===void 0?"none":l);this.S=null;this.N=10;this.transitions=[{from:"none",o6:"application_navigating",action:this.B},{from:"application_navigating",o6:"none",action:this.V},{from:"application_navigating",o6:"application_navigating",action:function(){}}, {from:"none",o6:"none",action:function(){}}]}; cPk=function(){au||(au=new KP);return au}; Ru=function(){var l=this;this.store={};this.S=0;this.W={};this.DQ={rnf:function(){return l.S}}}; vV=function(l,n){var O=CP(n);if(l.W[O])return l.W[O];var L=Object.keys(l.store)||[];if(L.length<=1&&CP(n)===L[0])return L;for(var X=[],F=0;F<L.length;F++){var x=L[F].split("/");if(ts(n.auth,x[0])){var Z=n.isJspb;ts(Z===void 0?"undefined":Z?"true":"false",x[1])&&ts(n.cttAuthInfo,x[2])&&(Z=n.tier,Z=Z===void 0?"undefined":JSON.stringify(Z),ts(Z,x[3])&&X.push(L[F]))}}return l.W[O]=X}; ts=function(l,n){return l===void 0||l==="undefined"?!0:l===n}; CP=function(l){return[l.auth===void 0?"undefined":l.auth,l.isJspb===void 0?"undefined":l.isJspb,l.cttAuthInfo===void 0?"undefined":l.cttAuthInfo,l.tier===void 0?"undefined":l.tier].join("/")}; ll=function(){this.L=this.S=this.W=0;this.N=!1}; nA=function(){var l=g.zk("yt.logging.ims");l||(l=new Ru,g.i9("yt.logging.ims",l));return l}; S0i=function(){if(j39()&&!ih8){var l=function(O){O=O.data;if(O.op==="serializedGelBatch"){var L=O$.get(O.key);L&&(zRi(O.serializedBatch,L.client,L.resolve,L.networklessOptions,L.isIsolated,L.useVSSEndpoint,L.dangerousLogToVisitorSession,L.requestsOutstanding),O$.delete(O.key))}},n=Qf(); n&&(n.addEventListener("message",l),n.onerror=function(){O$.clear()}); ih8=!0}}; RR9=function(l,n){if(l.endpoint==="log_event"){g2(l);var O=LA(l),L=pu5(l.payload)||"",X=sTk(L),F=200;if(X){if(X.enabled===!1&&!g.E0("web_payload_policy_disabled_killswitch"))return;F=fE0(X.tier);if(F===400){KA7(l,n);return}}Xv[O]=!0;O={cttAuthInfo:O,isJspb:!1,tier:F};nA().storePayload(O,l.payload);aEi(n,!1,O,or(L))}}; t_a=function(l,n,O){if(n.endpoint==="log_event"){g2(void 0,n);var L=LA(n,!0),X=sTk(l),F=200;if(X){if(X.enabled===!1&&!g.E0("web_payload_policy_disabled_killswitch"))return;F=fE0(X.tier);if(F===400){Ck9(l,n,O);return}}Xv[L]=!0;L={cttAuthInfo:L,isJspb:!0,tier:F};nA().storePayload(L,Y6(n.payload));aEi(O,!0,L,or(l))}}; aEi=function(l,n,O,L){function X(){Fv({writeThenSend:!0},n,O.tier)} n=n===void 0?!1:n;L=L===void 0?!1:L;l&&(xm=new l);l=g.NY("tvhtml5_logging_max_batch_ads_fork")||g.NY("tvhtml5_logging_max_batch")||g.NY("web_logging_max_batch")||100;var F=(0,g.Q_)(),x=hr(n,O.tier),Z=x.L;L&&(x.N=!0);L=0;O&&(L=nA().getSequenceCount(O));L>=1E3?X():L>=l?Zx||(Zx=Jr(function(){X();Zx=void 0},0)):F-Z>=10&&(vp5(n,O.tier),x.L=F)}; KA7=function(l,n){if(l.endpoint==="log_event"){g.E0("more_accurate_gel_parser")&&nA().storePayload({isJspb:!1},l.payload);g2(l);var O=LA(l),L=new Map;L.set(O,[l.payload]);var X=pu5(l.payload)||"";n&&(xm=new n);return new g.U6(function(F,x){xm&&xm.isReady()?lMq(L,xm,F,x,{bypassNetworkless:!0},!0,or(X)):F()})}}; Ck9=function(l,n,O){if(n.endpoint==="log_event"){g2(void 0,n);var L=LA(n,!0),X=new Map;X.set(L,[Y6(n.payload)]);O&&(xm=new O);return new g.U6(function(F){xm&&xm.isReady()?nTi(X,xm,F,{bypassNetworkless:!0},!0,or(l)):F()})}}; LA=function(l,n){var O="";if(l.dangerousLogToVisitorSession)O="visitorOnlyApprovedKey";else if(l.cttAuthInfo){if(n===void 0?0:n){n=l.cttAuthInfo.token;O=l.cttAuthInfo;var L=new fx;O.videoId?L.setVideoId(O.videoId):O.playlistId&&OK(L,2,w2,DZ(O.playlistId));Hv[n]=L}else n=l.cttAuthInfo,O={},n.videoId?O.videoId=n.videoId:n.playlistId&&(O.playlistId=n.playlistId),Ar[l.cttAuthInfo.token]=O;O=l.cttAuthInfo.token}return O}; Fv=function(l,n,O){l=l===void 0?{}:l;n=n===void 0?!1:n;new g.U6(function(L,X){var F=hr(n,O),x=F.N;F.N=!1;bl(F.W);bl(F.S);F.S=0;xm&&xm.isReady()?O===void 0&&g.E0("enable_web_tiered_gel")?Oi9(L,X,l,n,300,x):Oi9(L,X,l,n,O,x):(vp5(n,O),L())})}; Oi9=function(l,n,O,L,X,F){var x=xm;O=O===void 0?{}:O;L=L===void 0?!1:L;X=X===void 0?200:X;F=F===void 0?!1:F;var Z=new Map,J=new Map,w={isJspb:L,cttAuthInfo:void 0,tier:X},H={isJspb:L,cttAuthInfo:void 0};if(L){n=g.P(Object.keys(Xv));for(X=n.next();!X.done;X=n.next())X=X.value,J=g.E0("enable_web_tiered_gel")?nA().smartExtractMatchingEntries({keys:[w,H],sizeLimit:1E3}):nA().extractMatchingEntries({isJspb:!0,cttAuthInfo:X}),J.length>0&&Z.set(X,J),(g.E0("web_fp_via_jspb_and_json")&&O.writeThenSend||!g.E0("web_fp_via_jspb_and_json"))&& delete Xv[X];nTi(Z,x,l,O,!1,F)}else{Z=g.P(Object.keys(Xv));for(w=Z.next();!w.done;w=Z.next())w=w.value,H=g.E0("enable_web_tiered_gel")?nA().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:w,tier:X},{isJspb:!1,cttAuthInfo:w}],sizeLimit:1E3}):nA().extractMatchingEntries({isJspb:!1,cttAuthInfo:w}),H.length>0&&J.set(w,H),(g.E0("web_fp_via_jspb_and_json")&&O.writeThenSend||!g.E0("web_fp_via_jspb_and_json"))&&delete Xv[w];lMq(J,x,l,n,O,!1,F)}}; vp5=function(l,n){function O(){Fv({writeThenSend:!0},l,n)} l=l===void 0?!1:l;n=n===void 0?200:n;var L=hr(l,n),X=L===gT8||L===LQi?5E3:Xkk;g.E0("web_gel_timeout_cap")&&!L.S&&(X=Jr(function(){O()},X),L.S=X); bl(L.W);X=g.R3("LOGGING_BATCH_TIMEOUT",g.NY("web_gel_debounce_ms",1E4));g.E0("shorten_initial_gel_batch_timeout")&&r2&&(X=oT5);X=Jr(function(){g.NY("gel_min_batch_size")>0?nA().getSequenceCount({cttAuthInfo:void 0,isJspb:l,tier:n})>=FQk&&O():O()},X); L.W=X}; lMq=function(l,n,O,L,X,F,x){X=X===void 0?{}:X;var Z=Math.round((0,g.Q_)()),J=l.size,w=xVg(x);l=g.P(l);var H=l.next();for(x={};!H.done;x={aH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,X0:void 0,Zw:void 0},H=l.next()){var A=g.P(H.value);H=A.next().value;A=A.next().value;x.batchRequest=g.GB({context:g.H2(n.config_||g.wx())});if(!g.fv(A)&&!g.E0("throw_err_when_logevent_malformed_killswitch")){L();break}x.batchRequest.events=A;(A=Ar[H])&&hp0(x.batchRequest,H,A);delete Ar[H];x.dangerousLogToVisitorSession= H==="visitorOnlyApprovedKey";Zi9(x.batchRequest,Z,x.dangerousLogToVisitorSession);JBv(X);x.X0=function(b){g.E0("start_client_gcf")&&g.St.Ou(function(){return g.Y(function(r){return g.Q(r,wkv(b),0)})}); J--;J||O()}; x.aH=0;x.Zw=function(b){return function(){b.aH++;if(X.bypassNetworkless&&b.aH===1)try{g.OG(n,w,b.batchRequest,U$({writeThenSend:!0},b.dangerousLogToVisitorSession,b.X0,b.Zw,F)),r2=!1}catch(r){g.vK(r),L()}J--;J||O()}}(x); try{g.OG(n,w,x.batchRequest,U$(X,x.dangerousLogToVisitorSession,x.X0,x.Zw,F)),r2=!1}catch(b){g.vK(b),L()}}}; nTi=function(l,n,O,L,X,F){L=L===void 0?{}:L;var x=Math.round((0,g.Q_)()),Z={value:l.size},J=new Map([].concat(g.E(l)));J=g.P(J);for(var w=J.next();!w.done;w=J.next()){var H=g.P(w.value).next().value,A=l.get(H);w=new cq9;var b=n.config_||g.wx(),r=new VE,U=new Y$;uV(U,1,b.XL);uV(U,2,b.t8);TZ(U,16,b.yG);uV(U,17,b.innertubeContextClientVersion);if(b.L7){var W=b.L7,N=new QE;W.coldConfigData&&uV(N,1,W.coldConfigData);W.appInstallData&&uV(N,6,W.appInstallData);W.coldHashData&&uV(N,3,W.coldHashData);W.hotHashData&& N.Uv(W.hotHashData);hX(U,QE,62,N)}(W=g.Be.devicePixelRatio)&&W!=1&&i3(U,65,x6(W));W=DE();W!==""&&uV(U,54,W);W=qY();if(W.length>0){N=new mq;for(var q=0;q<W.length;q++){var y=new jg;uV(y,1,W[q].key);OK(y,2,Hii,DZ(W[q].value));wb(N,15,jg,y)}hX(r,mq,5,N)}bx0(b,U);rzi(r);UHf(U);ui5(b,U);Pef(U);g.E0("start_client_gcf")&&TLi(U);g.R3("DELEGATED_SESSION_ID")&&!g.E0("pageid_as_header_web")&&(b=new $$,uV(b,3,g.R3("DELEGATED_SESSION_ID")));!g.E0("fill_delegate_context_in_gel_killswitch")&&(W=g.R3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (N=xM(r,$$,3)||new $$,b=r,W=uV(N,18,W),hX(b,$$,3,W));b=U;W=g.P(Object.entries(Lh(g.R3("DEVICE",""))));for(N=W.next();!N.done;N=W.next())q=g.P(N.value),N=q.next().value,q=q.next().value,N==="cbrand"?uV(b,12,q):N==="cmodel"?uV(b,13,q):N==="cbr"?uV(b,87,q):N==="cbrver"?uV(b,88,q):N==="cos"?uV(b,18,q):N==="cosver"?uV(b,19,q):N==="cplatform"&&TZ(b,42,vKk(q));r.X9(U);hX(w,VE,1,r);if(U=Hv[H])a:{if(U.G7())r=1;else if(U.getPlaylistId())r=2;else break a;hX(w,fx,4,U);U=xM(w,VE,1)||new VE;b=xM(U,$$,3)||new $$; W=new dL;W.setToken(H);TZ(W,1,r);wb(b,12,dL,W);hX(U,$$,3,b)}delete Hv[H];H=H==="visitorOnlyApprovedKey";ul()||UK(w,2,x);!H&&(r=g.R3("EVENT_ID"))&&(U=ABk(),b=new sl,uV(b,1,r),UK(b,2,U),hX(w,sl,5,b));JBv(L);if(g.E0("jspb_serialize_with_worker")&&(r=Qf())&&L.writeThenSend){O$.set(Pv,{client:n,resolve:O,networklessOptions:L,isIsolated:X,useVSSEndpoint:F,dangerousLogToVisitorSession:H,requestsOutstanding:Z});r.postMessage({op:"gelBatchToSerialize",batchRequest:Y6(w),clientEvents:A,key:Pv});Pv++;break}if(A){r= [];for(U=0;U<A.length;U++)try{r.push(new px(A[U]))}catch(e){g.vK(new g.at("Transport failed to deserialize "+String(A[U])))}A=r}else A=[];A=g.P(A);for(r=A.next();!r.done;r=A.next())wb(w,3,px,r.value);A={startTime:(0,g.Q_)(),ticks:{},infos:{}};w=w.OP();A.ticks.geljspc=(0,g.Q_)();g.E0("log_jspb_serialize_latency")&&kO("gel_jspb_serialize",A,{sampleRate:.1});zRi(w,n,O,L,X,F,H,Z)}}; zRi=function(l,n,O,L,X,F,x,Z){L=L===void 0?{}:L;Z=Z===void 0?{value:0}:Z;F=xVg(F);L=U$(L,x,function(J){g.E0("start_client_gcf")&&g.St.Ou(function(){return g.Y(function(w){return g.Q(w,wkv(J),0)})}); Z.value--;Z.value||O()},function(){Z.value--; Z.value||O()},X); L.headers["Content-Type"]="application/json+protobuf";L.postBodyFormat="JSPB";L.postBody=l;g.OG(n,F,"",L);r2=!1}; JBv=function(l){g.E0("always_send_and_write")&&(l.writeThenSend=!1)}; U$=function(l,n,O,L,X){l={retry:!0,onSuccess:O,onError:L,networklessOptions:l,dangerousLogToVisitorSession:n,mH2:!!X,headers:{},postBodyFormat:"",postBody:"",compress:g.E0("compress_gel")||g.E0("compress_gel_lr")};ul()&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Q_)())));return l}; Zi9=function(l,n,O){ul()||(l.requestTimeMs=String(n));g.E0("unsplit_gel_payloads_in_logs")&&(l.unsplitGelPayloadsInLogs=!0);!O&&(n=g.R3("EVENT_ID"))&&(O=ABk(),l.serializedClientEventId={serializedEventId:n,clientCounter:String(O)})}; ABk=function(){var l=g.R3("BATCH_CLIENT_COUNTER")||0;l||(l=Math.floor(Math.random()*65535/2));l++;l>65535&&(l=1);a3("BATCH_CLIENT_COUNTER",l);return l}; hp0=function(l,n,O){if(O.videoId)var L="VIDEO";else if(O.playlistId)L="PLAYLIST";else return;l.credentialTransferTokenTargetId=O;l.context=l.context||{};l.context.user=l.context.user||{};l.context.user.credentialTransferTokens=[{token:n,scope:L}]}; g2=function(l,n){if(!g.zk("yt.logging.transport.enableScrapingForTest")){var O=Wu("il_payload_scraping");if((O!==void 0?String(O):"")==="enable_il_payload_scraping")Ts=[],g.i9("yt.logging.transport.enableScrapingForTest",!0),g.i9("yt.logging.transport.scrapedPayloadsForTesting",Ts),g.i9("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.i9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.i9("yt.logging.transport.scrapeClientEvent",!0);else return}O=g.zk("yt.logging.transport.scrapedPayloadsForTesting");var L=g.zk("yt.logging.transport.payloadToScrape");n&&(n=n.payload,(n=g.zk("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(n)())&&O.push(n));n=g.zk("yt.logging.transport.scrapeClientEvent");if(L&&L.length>=1)for(var X=0;X<L.length;X++)if(l&&l.payload[L[X]])if(n)O.push(l.payload);else{var F=void 0;O.push(((F=l)==null?void 0:F.payload)[L[X]])}g.i9("yt.logging.transport.scrapedPayloadsForTesting", O)}; ul=function(){return g.E0("use_request_time_ms_header")||g.E0("lr_use_request_time_ms_header")}; Jr=function(l,n){return g.E0("transport_use_scheduler")===!1?g.U0(l,n):g.E0("logging_avoid_blocking_during_navigation")||g.E0("lr_logging_avoid_blocking_during_navigation")?g.lX(0,function(){if(cPk().currentState==="none")l();else{var O={};cPk().install((O.none={callback:l},O))}},n):vk(l,0,n)}; bl=function(l){g.E0("transport_use_scheduler")?g.St.DN(l):g.Pu(l)}; wkv=function(l){var n,O,L,X,F,x,Z,J,w,H;return g.Y(function(A){return A.S==1?(L=(n=l)==null?void 0:(O=n.responseContext)==null?void 0:O.globalConfigGroup,X=g.z(L,biq),x=(F=L)==null?void 0:F.hotHashData,Z=g.z(L,rB9),w=(J=L)==null?void 0:J.coldHashData,(H=Iu().resolve(new e5(Zg)))?x?X?g.Q(A,Jz8(H,x,X),2):g.Q(A,Jz8(H,x),2):A.D2(2):A.return()):w?Z?g.Q(A,wK5(H,w,Z),0):g.Q(A,wK5(H,w),0):A.D2(0)})}; hr=function(l,n){n=n===void 0?200:n;return l?n===300?gT8:UV8:n===300?LQi:u19}; sTk=function(l){if(g.E0("enable_web_tiered_gel")){l=PG9[l||""];var n,O,L,X=Iu().resolve(new e5(Zg))==null?void 0:(n=Jc())==null?void 0:(O=n.loggingHotConfig)==null?void 0:(L=O.eventLoggingConfig)==null?void 0:L.payloadPolicies;if(X)for(n=0;n<X.length;n++)if(X[n].payloadNumber===l)return X[n]}}; pu5=function(l){l=Object.keys(l);l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,PG9[n])return n}; fE0=function(l){switch(l){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; or=function(l){return l==="gelDebuggingEvent"}; xVg=function(l){return(l===void 0?0:l)&&g.E0("vss_through_gel_video_stats")?"video_stats":"log_event"}; E$=function(l,n,O,L){L=L===void 0?{}:L;var X={},F=Math.round(L.timestamp||(0,g.Q_)());X.eventTimeMs=F<Number.MAX_SAFE_INTEGER?F:0;X[l]=n;l=MU();X.context={lastActivityMs:String(L.timestamp||!isFinite(l)?-1:l)};L.sequenceGroup&&!g.E0("web_gel_sequence_info_killswitch")&&(l=X.context,n=L.sequenceGroup,n={index:TUq(n),groupKey:n},l.sequence=n,L.endOfSequence&&delete Wv[L.sequenceGroup]);(L.sendIsolatedPayload?KA7:RR9)({endpoint:"log_event",payload:X,cttAuthInfo:L.cttAuthInfo,dangerousLogToVisitorSession:L.dangerousLogToVisitorSession}, O)}; TUq=function(l){Wv[l]=l in Wv?Wv[l]+1:0;return Wv[l]}; g.JG=function(l,n,O){O=O===void 0?{}:O;var L=g.nP;g.R3("ytLoggingEventsDefaultDisabled",!1)&&g.nP===g.nP&&(L=null);E$(l,n,L,O)}; NR=function(l){this.S=l}; g.Dx=function(l){return new NR({trackingParams:l})}; ET5=function(l){var n=WQ5++;return new NR({veType:l,veCounter:n,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})}; NUq=function(l){return g.R3("client-screen-nonce-store",{})[l===void 0?0:l]}; DV7=function(l,n){n=n===void 0?0:n;var O=g.R3("client-screen-nonce-store");O||(O={},a3("client-screen-nonce-store",O));O[n]=l}; qR=function(l){l=l===void 0?0:l;return l===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+l}; qh0=function(l){return g.R3(qR(l===void 0?0:l))}; g.km=function(l){return(l=qh0(l===void 0?0:l))?new NR({veType:l,youtubeData:void 0,jspbYoutubeData:void 0}):null}; kK9=function(){var l=g.R3("csn-to-ctt-auth-info");l||(l={},a3("csn-to-ctt-auth-info",l));return l}; yB5=function(){return Object.values(g.R3("client-screen-nonce-store",{})).filter(function(l){return l!==void 0})}; g.yS=function(l){l=NUq(l===void 0?0:l);if(!l&&!g.R3("USE_CSN_FALLBACK",!0))return null;l||(l="UNDEFINED_CSN");return l?l:null}; Qtk=function(l){for(var n=g.P(Object.values(MU7)),O=n.next();!O.done;O=n.next())if(g.yS(O.value)===l)return!0;return!1}; epe=function(l,n,O){var L=kK9();(O=g.yS(O))&&delete L[O];n&&(L[l]=n)}; MR=function(l){return kK9()[l]}; jt7=function(l,n,O,L){O=O===void 0?0:O;if(l!==NUq(O)||n!==g.R3(qR(O)))if(epe(l,L,O),DV7(l,O),a3(qR(O),n),n=function(){setTimeout(function(){l&&g.JG("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Yh7,clientScreenNonce:l})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(n)}catch(X){n()}else n()}; QS=function(l,n){var O=O===void 0?!0:O;var L=g.R3("VALID_SESSION_TEMPDATA_DOMAINS",[]),X=g.VM(window.location.href);X&&L.push(X);X=g.VM(l);if(g.CO(L,X)||!X&&NQ(l,"/"))if(L=document.createElement("a"),g.mv(L,l),l=L.href)if(l=B$(l),l=Tek(l))if(O&&!n.csn&&(n.itct||n.ved)&&(n=Object.assign({csn:g.yS()},n)),F){var F=parseInt(F,10);isFinite(F)&&F>0&&GKv(l,n,F)}else GKv(l,n)}; GKv=function(l,n,O){l=mV0(l);n=n?g.Sj(n):"";O=O||5;gU()&&g.$p(l,n,O)}; mV0=function(l){for(var n=g.P(IMi),O=n.next();!O.done;O=n.next())l=Kr(l,O.value);return"ST-"+lf(l).toString(36)}; dV0=function(l){if(l.name==="JavaException")return!0;l=l.stack;return l.includes("chrome://")||l.includes("chrome-extension://")||l.includes("moz-extension://")}; $Vf=function(){this.Tj=[];this.Ru=[]}; Ym=function(){if(!er){var l=er=new $Vf;l.Ru.length=0;l.Tj.length=0;VU0(l,BU9)}return er}; VU0=function(l,n){n.Ru&&l.Ru.push.apply(l.Ru,n.Ru);n.Tj&&l.Tj.push.apply(l.Tj,n.Tj)}; cB7=function(l){function n(){return l.charCodeAt(L++)} var O=l.length,L=0;do{var X=jr(n);if(X===Infinity)break;var F=X>>3;switch(X&7){case 0:X=jr(n);if(F===2)return X;break;case 1:if(F===2)return;L+=8;break;case 2:X=jr(n);if(F===2)return l.substr(L,X);L+=X;break;case 5:if(F===2)return;L+=4;break;default:return}}while(L<O)}; jr=function(l){var n=l(),O=n&127;if(n<128)return O;n=l();O|=(n&127)<<7;if(n<128)return O;n=l();O|=(n&127)<<14;if(n<128)return O;n=l();return n<128?O|(n&127)<<21:Infinity}; ii9=function(l,n,O,L){if(l)if(Array.isArray(l)){var X=L;for(L=0;L<l.length&&!(l[L]&&(X+=Gs(L,l[L],n,O),X>500));L++);L=X}else if(typeof l==="object")for(X in l){if(l[X]){var F=X;var x=l[X],Z=n,J=O;F=typeof x!=="string"||F!=="clickTrackingParams"&&F!=="trackingParams"?0:(x=cB7(atob(x.replace(/-/g,"+").replace(/_/g,"/"))))?Gs(F+".ve",x,Z,J):0;L+=F;L+=Gs(X,l[X],n,O);if(L>500)break}}else O[n]=mG(l),L+=O[n].length;else O[n]=mG(l),L+=O[n].length;return L}; Gs=function(l,n,O,L){O+="."+l;l=mG(n);L[O]=l;return O.length+l.length}; mG=function(l){try{return(typeof l==="string"?l:String(JSON.stringify(l))).substr(0,500)}catch(n){return"unable to serialize "+typeof l+" ("+n.message+")"}}; Z7=function(l){g.Ir(l)}; g.d2=function(l){g.Ir(l,"WARNING")}; g.Ir=function(l,n){var O=O===void 0?{}:O;O.name=g.R3("INNERTUBE_CONTEXT_CLIENT_NAME",1);O.version=g.R3("INNERTUBE_CONTEXT_CLIENT_VERSION");n=n===void 0?"ERROR":n;var L=!1;n=n===void 0?"ERROR":n;L=L===void 0?!1:L;if(l){l.hasOwnProperty("level")&&l.level&&(n=l.level);if(g.E0("console_log_js_exceptions")){var X=[];X.push("Name: "+l.name);X.push("Message: "+l.message);l.hasOwnProperty("params")&&X.push("Error Params: "+JSON.stringify(l.params));l.hasOwnProperty("args")&&X.push("Error args: "+JSON.stringify(l.args)); X.push("File name: "+l.fileName);X.push("Stacktrace: "+l.stack);window.console.log(X.join("\n"),l)}if(!(zpg>=5)){X=Shq;var F=qp8(l),x=F.message||"Unknown Error",Z=F.name||"UnknownError",J=F.stack||l.W||"Not available";if(J.startsWith(Z+": "+x)){var w=J.split("\n");w.shift();J=w.join("\n")}w=F.lineNumber||"Not available";F=F.fileName||"Not available";var H=0;if(l.hasOwnProperty("args")&&l.args&&l.args.length)for(var A=0;A<l.args.length&&!(H=ii9(l.args[A],"params."+A,O,H),H>=500);A++);else if(l.hasOwnProperty("params")&& l.params){var b=l.params;if(typeof l.params==="object")for(A in b){if(b[A]){var r="params."+A,U=mG(b[A]);O[r]=U;H+=r.length+U.length;if(H>500)break}}else O.params=mG(b)}if(X.length)for(A=0;A<X.length&&!(H=ii9(X[A],"params.context."+A,O,H),H>=500);A++);navigator.vendor&&!O.hasOwnProperty("vendor")&&(O["device.vendor"]=navigator.vendor);O={message:x,name:Z,lineNumber:w,fileName:F,stack:J,params:O,sampleWeight:1};X=Number(l.columnNumber);isNaN(X)||(O.lineNumber=O.lineNumber+":"+X);if(l.level==="IGNORED")l= 0;else a:{l=Ym();X=g.P(l.Ru);for(x=X.next();!x.done;x=X.next())if(x=x.value,O.message&&O.message.match(x.h5)){l=x.weight;break a}l=g.P(l.Tj);for(X=l.next();!X.done;X=l.next())if(X=X.value,X.callback(O)){l=X.weight;break a}l=1}O.sampleWeight=l;l=g.P(pka);for(X=l.next();!X.done;X=l.next())if(X=X.value,X.Yv[O.name])for(Z=g.P(X.Yv[O.name]),x=Z.next();!x.done;x=Z.next())if(A=x.value,x=O.message.match(A.kV)){O.params["params.error.original"]=x[0];Z=A.groups;A={};for(w=0;w<Z.length;w++)A[Z[w]]=x[w+1],O.params["params.error."+ Z[w]]=x[w+1];O.message=X.Bb(A);break}O.params||(O.params={});l=Ym();O.params["params.errorServiceSignature"]="msg="+l.Ru.length+"&cb="+l.Tj.length;O.params["params.serviceWorker"]="false";g.Be.document&&g.Be.document.querySelectorAll&&(O.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new de(IC,"sample")).constructor!==de&&(O.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(O);if(O.sampleWeight!==0&&!st9.has(O.message)){if(L&& g.E0("web_enable_error_204"))fM5(n===void 0?"ERROR":n,O);else{n=n===void 0?"ERROR":n;n==="ERROR"?($m.publish("handleError",O),g.E0("record_app_crashed_web")&&KQi===0&&O.sampleWeight===1&&(KQi++,L={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.E0("report_client_error_with_app_crash_ks")||(L.systemHealth={crashData:{clientError:{logMessage:{message:O.message}}}}),g.JG("appCrashed",L)),aMq++):n==="WARNING"&&$m.publish("handleWarning",O);if(g.E0("kevlar_gel_error_routing")){L=n;l=void 0;l=l===void 0?{}:l; b:{X=g.P(Rpq);for(x=X.next();!x.done;x=X.next())if(g.S_(x.value.toLowerCase())){X=!0;break b}X=!1}if(X)l=void 0;else{x={stackTrace:O.stack};O.fileName&&(x.filename=O.fileName);X=O.lineNumber&&O.lineNumber.split?O.lineNumber.split(":"):[];X.length!==0&&(X.length!==1||isNaN(Number(X[0]))?X.length!==2||isNaN(Number(X[0]))||isNaN(Number(X[1]))||(x.lineNumber=Number(X[0]),x.columnNumber=Number(X[1])):x.lineNumber=Number(X[0]));X={level:"ERROR_LEVEL_UNKNOWN",message:O.message,errorClassName:O.name,sampleWeight:O.sampleWeight}; L==="ERROR"?X.level="ERROR_LEVEL_ERROR":L==="WARNING"&&(X.level="ERROR_LEVEL_WARNNING");x={isObfuscated:!0,browserStackInfo:x};l.pageUrl=window.location.href;l.kvPairs=[];g.R3("FEXP_EXPERIMENTS")&&(l.experimentIds=g.R3("FEXP_EXPERIMENTS"));Z=g.R3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Cx("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(A=g.P(Object.keys(Z)),w=A.next();!w.done;w=A.next())w=w.value,l.kvPairs.push({key:w,value:String(Z[w])});if(Z=O.params)for(A=g.P(Object.keys(Z)),w=A.next();!w.done;w= A.next())w=w.value,l.kvPairs.push({key:"client."+w,value:String(Z[w])});Z=g.R3("SERVER_NAME");A=g.R3("SERVER_VERSION");Z&&A&&(l.kvPairs.push({key:"server.name",value:Z}),l.kvPairs.push({key:"server.version",value:A}));l={errorMetadata:l,stackTrace:x,logMessage:X}}if(l&&(g.JG("clientError",l),L==="ERROR"||g.E0("errors_flush_gel_always_killswitch")))a:{if(g.E0("web_fp_via_jspb")){L=!0;L=L===void 0?!1:L;l=CGk;CGk=[];if(l)for(l=g.P(l),X=l.next();!X.done;X=l.next())X=X.value,L?E$(X.payloadName,X.payload, g.nP,X.options):g.JG(X.payloadName,X.payload,X.options);Fv(void 0,!0);if(!g.E0("web_fp_via_jspb_and_json"))break a}Fv(void 0,!1)}}g.E0("suppress_error_204_logging")||fM5(n,O)}try{st9.add(O.message)}catch(W){}zpg++}}}}; fM5=function(l,n){var O=n.params||{};l={urlParams:{a:"logerror",t:"jserror",type:n.name,msg:n.message.substr(0,250),line:n.lineNumber,level:l,"client.name":O.name},postParams:{url:g.R3("PAGE_NAME",window.location.href),file:n.fileName},method:"POST"};O.version&&(l["client.version"]=O.version);if(l.postParams){n.stack&&(l.postParams.stack=n.stack);n=g.P(Object.keys(O));for(var L=n.next();!L.done;L=n.next())L=L.value,l.postParams["client."+L]=O[L];if(O=g.R3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(n= g.P(Object.keys(O)),L=n.next();!L.done;L=n.next())L=L.value,l.postParams[L]=O[L];(O=g.R3("LAVA_VERSION"))&&(l.postParams["lava.version"]=O);O=g.R3("SERVER_NAME");n=g.R3("SERVER_VERSION");O&&n&&(l.postParams["server.name"]=O,l.postParams["server.version"]=n)}g.yA(g.R3("ECATCHER_REPORT_HOST","")+"/error_204",l)}; tUa=function(l){var n=g.eq.apply(1,arguments);l.args||(l.args=[]);l.args.push.apply(l.args,g.E(n))}; cv=function(l){var n=g.z(l,VS);if(n)return n;if((n=g.z(l,vTe))&&n.commands)return l79(n.commands);if((n=g.z(l,nti))&&n.commands)return l79(n.commands);if((l=g.z(l,O1g))&&l.identifier&&l.command&&(Bv||(Bv=[]),!Bv.includes(l.identifier)))return Bv.push(l.identifier),g.z(l.command,VS)}; l79=function(l){if(l.length!==0){var n=[];l=g.P(l);for(var O=l.next();!O.done;O=l.next())(O=cv(O.value))&&n.push(O);return{commandExecutorCommand:{commands:n}}}}; g.il=function(l,n,O){O===void 0?delete l[n.name]:l[n.name]=O}; gt5=function(l){for(var n=0,O=0;O<l.length;O++)n=n*31+l.charCodeAt(O),O<l.length-1&&(n%=0x800000000000);return n%1E5}; zs=function(l){bI.call(this,1,arguments);this.csn=l}; Xok=function(l,n,O,L,X,F,x,Z){var J=LI8(),w=new NR({veType:n,youtubeData:F,jspbYoutubeData:void 0});F=Sr({},J);X&&(F.cttAuthInfo=X);X={csn:J,pageVe:w.getAsJson()};g.E0("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(X.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);O&&O.visualElement?(X.implicitGesture={parentCsn:O.clientScreenNonce,gesturedVe:O.visualElement.getAsJson()},x&&(X.implicitGesture.gestureType=x)):O&&g.d2(new g.at("newScreen() parent element does not have a VE - rootVe", n));L&&(X.cloneCsn=L);l?E$("screenCreated",X,l,F):g.JG("screenCreated",X,F);uI(qla,new zs(J));pA.clear();s$.clear();fA.clear();return J}; g.ar=function(l,n,O,L,X){g.KA(l,n,O,[L],X===void 0?!1:X)}; g.KA=function(l,n,O,L,X){X=X===void 0?!1:X;for(var F=Sr({cttAuthInfo:MR(n)||void 0},n),x=g.P(L),Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var J=Z.getAsJson();(g.Qj(J)||!J.trackingParams&&!J.veType)&&g.d2(Error("Child VE logged with no data"));if(g.E0("no_client_ve_attach_unless_shown")){var w=Rr(Z,n);if(J.veType&&!s$.has(w)&&!fA.has(w)&&!X){if(!g.E0("il_attach_cache_limit")||pA.size<1E3){pA.set(w,[l,n,O,Z]);return}g.E0("il_attach_cache_limit")&&pA.size>1E3&&g.d2(new g.at("IL Attach cache exceeded limit"))}Z= Rr(O,n);pA.has(Z)?CA(O,n):fA.set(Z,!0)}}L=L.filter(function(H){H.csn!==n?(H.csn=n,H=!0):H=!1;return H}); O={csn:n,parentVe:O.getAsJson(),childVes:g.M9(L,function(H){return H.getAsJson()})}; n==="UNDEFINED_CSN"?tr("visualElementAttached",F,O):l?E$("visualElementAttached",O,l,F):g.JG("visualElementAttached",O,F)}; otv=function(l,n,O,L,X){vv(O,n);L=Sr({cttAuthInfo:MR(n)||void 0},n);O={csn:n,ve:O.getAsJson(),eventType:1};X&&(O.clientData=X);n==="UNDEFINED_CSN"?tr("visualElementShown",L,O):l?E$("visualElementShown",O,l,L):g.JG("visualElementShown",O,L)}; FI5=function(l,n,O,L){var X=(L=L===void 0?!1:L)?16:8;L=Sr({cttAuthInfo:MR(n)||void 0,endOfSequence:L},n);O={csn:n,ve:O.getAsJson(),eventType:X};n==="UNDEFINED_CSN"?tr("visualElementHidden",L,O):l?E$("visualElementHidden",O,l,L):g.JG("visualElementHidden",O,L)}; x3k=function(l,n,O,L,X){lm(l,n,O,void 0,L,X)}; lm=function(l,n,O,L,X){vv(O,n);L=L||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var F=Sr({cttAuthInfo:MR(n)||void 0},n);O={csn:n,ve:O.getAsJson(),gestureType:L};X&&(O.clientData=X);n==="UNDEFINED_CSN"?tr("visualElementGestured",F,O):l?E$("visualElementGestured",O,l,F):g.JG("visualElementGestured",O,F)}; hP5=function(){var l=NU(16);for(var n=[],O=0;O<l.length;O++)n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[O]&63));return n.join("")}; tr=function(l,n,O){nI.push({payloadName:l,payload:O,Cym:void 0,options:n});Ow||(Ow=e9v())}; Mgf=function(l){if(nI){for(var n=g.P(nI),O=n.next();!O.done;O=n.next())O=O.value,O.payload&&(O.payload.csn=l.csn,g.JG(O.payloadName,O.payload,O.options));nI.length=0}Ow=0}; Rr=function(l,n){return""+l.getAsJson().veType+l.getAsJson().veCounter+n}; vv=function(l,n){if(g.E0("no_client_ve_attach_unless_shown")){var O=Rr(l,n);s$.set(O,!0);CA(l,n)}}; CA=function(l,n){l=Rr(l,n);pA.has(l)&&(n=pA.get(l)||[],g.ar(n[0],n[1],n[2],n[3],!0),pA.delete(l))}; Sr=function(l,n){g.E0("log_sequence_info_on_gel_web")&&(l.sequenceGroup=n);return l}; g.gW=function(l,n,O,L){g.lk(otv)(void 0,l,n,O,L,void 0)}; g.LI=function(l,n){g.lk(function(){g.ba(n,function(O){vv(O,l);var L=Sr({cttAuthInfo:MR(l)||void 0},l);O={csn:l,ve:O.getAsJson(),eventType:4};l==="UNDEFINED_CSN"?tr("visualElementShown",L,O):g.JG("visualElementShown",O,L)})})()}; g.X2=function(l,n){g.lk(function(){g.ba(n,function(O){FI5(void 0,l,O)})})()}; g.oF=function(l,n,O){g.lk(x3k)(void 0,l,n,O,void 0)}; xR=function(l,n,O,L,X,F){O=O===void 0?{}:O;this.componentType=l;this.renderer=n===void 0?null:n;this.macros=O;this.layoutId=L;this.interactionLoggingClientData=X;this.S=F;this.id=F2(l)}; F2=function(l){var n=":"+(zC.getInstance().S++).toString(36);return l+n}; g.hj=function(l){l=l===void 0?!1:l;g.V.call(this);this.I0=new g.Mo(l);g.c(this,this.I0)}; ZT=function(){var l="ytp-id-"+Z15.toString();Z15++;return l}; g.Jj=function(l){g.V.call(this);this.Fp={};this.UU={};this.element=this.createElement(l)}; wW=function(l,n,O,L){if(L.substring(0,2)==="{{")l.UU[L]=[n,O];else return L}; JG9=function(l,n){var O=[];if(!n)return O;n=g.P(n);for(var L=n.next();!L.done;L=n.next())if(L=L.value,L!=null){var X=L.nodeType;X===1||X===3?O.push(L):L&&typeof L.D==="string"?O.push(l.createElement(L)):L.element?O.push(L.element):typeof L==="string"&&L.indexOf("\n")!==-1?L.split("\n").forEach(function(F,x){x>0&&O.push(g.nf("BR"));O.push(g.ON(F))}):O.push(g.ON(L))}return O}; Hr=function(l,n,O,L){if(O==="child"){g.Lf(n);var X;L===void 0?X=void 0:X=!Array.isArray(L)||L&&typeof L.D==="string"?[L]:L;O=JG9(l,X);O=g.P(O);for(l=O.next();!l.done;l=O.next())n.appendChild(l.value)}else O==="style"?g.HH(n,"cssText",L?L:""):L===null||L===void 0?n.removeAttribute(O):(l=L.toString(),O==="href"&&(l=g.Q6(g.j8(l))),n.setAttribute(O,l))}; g.f=function(l){g.Jj.call(this,l);this.Qp=!0;this.B=!1;this.listeners=[]}; g.Aj=function(l){g.f.call(this,l);this.Fi=new g.hj;g.c(this,this.Fi)}; bm=function(l,n,O,L,X,F,x){x=x===void 0?null:x;g.Aj.call(this,n);this.api=l;this.macros={};this.componentType=O;this.T=this.G=null;this.uv=x;this.layoutId=L;this.interactionLoggingClientData=X;this.Iz=F;this.G3=null;this.Fw=new WV(this.element);g.c(this,this.Fw);this.Yo=this.U(this.element,"click",this.onClick);this.Lf=[];this.Q5=new yP5(this.onClick,this);g.c(this,this.Q5);this.oO=!1;this.z3=this.Wm=null}; rW=function(l,n){l=l===void 0?null:l;n=n===void 0?null:n;if(l==null)return g.d2(Error("Got null or undefined adText object")),"";var O=g.v3(l.text);if(!l.isTemplated)return O;if(n==null)return g.d2(Error("Missing required parameters for a templated message")),O;l=g.P(Object.entries(n));for(n=l.next();!n.done;n=l.next()){var L=g.P(n.value);n=L.next().value;L=L.next().value;O=O.replace("{"+n+"}",L)}return O}; wo9=function(l){l=l===void 0?null:l;return l!=null&&(l=l.thumbnail,l!=null&&l.thumbnails!=null&&l.thumbnails.length!=0&&l.thumbnails[0].url!=null)?g.v3(l.thumbnails[0].url):""}; H18=function(l){l=l===void 0?null:l;return l!=null&&(l=l.thumbnail,l!=null&&l.thumbnails!=null&&l.thumbnails.length!=0&&l.thumbnails[0].width!=null&&l.thumbnails[0].height!=null)?new g.re(l.thumbnails[0].width||0,l.thumbnails[0].height||0):new g.re(0,0)}; g.Uw=function(l){if(l.simpleText)return l.simpleText;if(l.runs){var n=[];l=g.P(l.runs);for(var O=l.next();!O.done;O=l.next())O=O.value,O.text&&n.push(O.text);return n.join("")}return""}; g.um=function(l){if(l.simpleText)return l=document.createTextNode(l.simpleText),l;var n=[];if(l.runs)for(var O=0;O<l.runs.length;O++){var L=l.runs[O];if(L.text){var X=n,F=X.push,x=null;var Z=L.text;L.bold&&(x=lA("B",null,x||Z));L.italics&&(x=lA("I",null,x||Z));L.strikethrough&&(x=lA("STRIKE",null,x||Z));L.navigationEndpoint&&L.navigationEndpoint.urlEndpoint&&(L=L.navigationEndpoint.urlEndpoint,x=lA("A",null,x||Z),g.mv(x,L.url),L.target=="TARGET_NEW_WINDOW"&&(x.target="_blank"));Z=x||lA("SPAN",null, Z);F.call(X,Z)}}return n.length==1?n[0]:lA("SPAN",null,n)}; g.AGa=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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", fill:"#fff"}}]}}; Pr=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Z:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; g.T5=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{D:"path",Z:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; g.Wr=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{D:"path",Z:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; b1k=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Z:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",Z:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; rGi=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; U3v=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.Ew=function(){return{D:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; umv=function(){return{D:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Z:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; PXi=function(){return{D:"svg",Z:{viewBox:"0 0 24 24"},K:[{D:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Z:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; TF9=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; WIf=function(){return{D:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; Et5=function(){return{D:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},K:[{D:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",Z:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; NFq=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; D35=function(){return{D:"svg",Z:{viewBox:"0 0 24 24"},K:[{D:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Z:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; N6=function(){return{D:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Z:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; qy5=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; DT=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; g.q6=function(){return{D:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{D:"path",Z:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}}; kR=function(){return{D:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},K:[{D:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",Z:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; kzg=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; yG8=function(){return{D:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",X:"ytp-svg-fill",Z:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; MHe=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; yo=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; QZa=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.M6=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}}; g.Qo=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; g.ef=function(){return{D:"svg",Z:{height:"100%",viewBox:"0 0 16 16",width:"100%"},K:[{D:"path",Z:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; eP7=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; YR=function(){return{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; jf=function(l,n,O){n=n===void 0?!1:n;O=O===void 0?!1:O;if(!l)return null;switch(l.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return O?{D:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:kR();case "CHECK_BOX":return{D:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Z:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{D:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{D:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Ew();case "INFO_OUTLINE":return n?{D:"svg",Z:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},K:[{D:"path",Z:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: Et5();case "REMOVE_CIRCLE":return{D:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return DT();case "SKIP_NEXT_NEW":return{D:"svg",Z:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},K:[{D:"path",Z:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return D35(); case "DISLIKE":return PXi();default:return g.d2(new g.at("Unexpected icon:",l)),null}}; G5=function(l,n,O,L,X,F,x,Z,J){X=X===void 0?[]:X;x=x===void 0?!1:x;J=J===void 0?!1:J;X={D:"button",gq:["ytp-ad-button"].concat(X)};Z!=null&&(X.Z={tabindex:Z});bm.call(this,l,X,F===void 0?"button":F,n,O,L);this.S=this.W=this.N=null;this.V=x;this.L=J;this.hide()}; Yy7=function(l){var n=null;l.S!=null&&(n=[l.S.serviceEndpoint,l.S.navigationEndpoint].filter(function(O){return O!=null}),l.S.command&&(n=n.concat(l.S.command))); return n||[]}; mO=function(){g.V.call(this);var l=this;this.S=new Map;this.W=fCi(function(n){if(n.target&&(n=l.S.get(n.target))&&n)for(var O=0;O<n.length;O++)g.zu(n[O])})}; jZ5=function(){IF==null&&(IF=new mO);return IF}; dW=function(l,n){if(l.simpleText){a:{l=l.simpleText;if(n&&(n=Gza(l))){n=lA("SPAN",null,n);break a}n=g.ON(l)}return n}var O=[];if(l.runs)for(var L=0;L<l.runs.length;L++){var X=l.runs[L];X.text&&O.push(m3i(X,n))}return O.length==1?O[0]:lA("SPAN",null,O)}; m3i=function(l,n){var O=null,L=l.text;n&&(L=Gza(L)||L);l.bold&&(O=lA("B",null,O||L));l.italics&&(O=lA("I",null,O||L));l.strikethrough&&(O=lA("STRIKE",null,O||L));l.navigationEndpoint&&g.z(l.navigationEndpoint,g.$R)&&(n=g.z(l.navigationEndpoint,g.$R),O=lA("A",null,O||L),g.mv(O,n.url),n.target=="TARGET_NEW_WINDOW"&&(O.target="_blank"),l=l.navigationEndpoint.loggingUrls)&&(l=l.map(function(X){return X.baseUrl}),jZ5().register(O,l),g.FW(O,"ytp-ad-has-logging-urls")); return O||lA("SPAN",null,L)}; Gza=function(l){l=l.split(/(?:\r\n|\r|\n)/g);if(l.length>1){for(var n=[l[0]],O=1;O<l.length;O++)n.push(lA("BR")),n.push(l[O]);return n}return null}; Vo=function(l,n,O,L,X,F,x,Z,J){F=F===void 0?!1:F;x=x===void 0?[]:x;J=J===void 0?!1:J;bm.call(this,l,{D:"span",gq:["ytp-ad-hover-text-button"].concat(x)},Z===void 0?"ad-hover-text-button":Z,n,O,L);this.button=this.W=null;this.Y=F;this.V=X;this.N=J;this.hide()}; Br=function(l){return l&&l.thumbnails&&(l.thumbnails||null).length!=0&&l.thumbnails[0].url?g.v3(l.thumbnails[0].url):""}; cr=function(l,n,O,L,X,F){F=F===void 0?!1:F;bm.call(this,l,{D:"img",X:"ytp-ad-image"},"ad-image",n,O,L,X===void 0?null:X);this.S=F;this.hide()}; im=function(l,n,O,L,X,F){X=X===void 0?[]:X;bm.call(this,l,{D:"div",gq:["ytp-ad-confirm-dialog-background"],K:[{D:"div",X:"ytp-ad-confirm-dialog-container",K:[{D:"div",gq:["ytp-ad-confirm-dialog"].concat(X),Z:{role:"dialog",tabindex:"-1"},K:[{D:"div",X:"ytp-ad-confirm-dialog-title",hG:"{{title}}"},{D:"div",X:"ytp-ad-confirm-dialog-messages"},{D:"div",X:"ytp-ad-confirm-dialog-confirm-container",K:[{D:"button",X:"ytp-ad-confirm-dialog-cancel-button",hG:"{{cancelLabel}}"},{D:"button",X:"ytp-ad-confirm-dialog-confirm-button", hG:"{{confirmLabel}}"}]}]}]},{D:"button",gq:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],K:[{D:"span",X:"ytp-ad-button-icon",K:[g.Ew()]}]}]},F===void 0?"confirm-dialog":F,n,O,L);this.Y=this.mJ("ytp-ad-confirm-dialog-close-overlay-button");this.L=this.mJ("ytp-ad-confirm-dialog-cancel-button");this.V=this.mJ("ytp-ad-confirm-dialog-confirm-button");this.NQ=this.mJ("ytp-ad-confirm-dialog-messages");this.N=null;this.S=new MV;g.c(this,this.S);this.W=null;this.hide()}; I7i=function(l,n){if(n.title){var O=g.Uw(n.title);l.updateValue("title",O)}if(n.dialogMessages){O=g.P(n.dialogMessages);for(var L=O.next();!L.done;L=O.next())L=dW(L.value),l.NQ.appendChild(L)}n.cancelLabel&&(O=g.Uw(n.cancelLabel),l.updateValue("cancelLabel",O),l.S.U(l.L,"click",function(X){return l.Rl(X)})); n.confirmLabel&&(n=g.Uw(n.confirmLabel),l.updateValue("confirmLabel",n),l.S.U(l.V,"click",function(X){return l.KW(X)})); l.S.U(l.Y,"click",function(X){return l.G4(X)})}; z5=function(l,n,O,L,X,F){X=X===void 0?[]:X;F=F===void 0?"toggle-button":F;var x=F2("ytp-ad-toggle-button-input"),Z={role:"button","aria-label":"{{tooltipText}}"};l.j().experiments.MQ("fix_h5_toggle_button_a11y")&&(Z.tabindex="0");l.j().experiments.MQ("fix_toggle_button_role_for_ad_components")&&(Z.role="checkbox");bm.call(this,l,{D:"div",gq:["ytp-ad-toggle-button"].concat(X),K:[{D:"label",X:"ytp-ad-toggle-button-label",Z:{"for":x},K:[{D:"span",X:"ytp-ad-toggle-button-icon",Z:Z,K:[{D:"span",X:"ytp-ad-toggle-button-untoggled-icon", hG:"{{untoggledIconTemplateSpec}}"},{D:"span",X:"ytp-ad-toggle-button-toggled-icon",hG:"{{toggledIconTemplateSpec}}"}]},{D:"input",X:"ytp-ad-toggle-button-input",Z:{id:x,type:"checkbox"}},{D:"span",X:"ytp-ad-toggle-button-text",hG:"{{buttonText}}"},{D:"span",X:"ytp-ad-toggle-button-tooltip",hG:"{{tooltipText}}"}]}]},F,n,O,L);this.L=this.mJ("ytp-ad-toggle-button");this.S=this.mJ("ytp-ad-toggle-button-input");this.W=this.mJ("ytp-ad-toggle-button-icon");this.Y=this.mJ("ytp-ad-toggle-button-untoggled-icon"); this.V=this.mJ("ytp-ad-toggle-button-toggled-icon");this.Cf=this.mJ("ytp-ad-toggle-button-text");this.N=null;this.NQ=!1;this.hide()}; Sf=function(l){l.NQ&&(l.isToggled()?(g.q4(l.Y,!1),g.q4(l.V,!0),l.api.j().experiments.MQ("fix_toggle_button_role_for_ad_components")&&l.W.setAttribute("aria-checked",!0)):(g.q4(l.Y,!0),g.q4(l.V,!1),l.api.j().experiments.MQ("fix_toggle_button_role_for_ad_components")&&l.W.setAttribute("aria-checked",!1)))}; d35=function(l,n){var O=null;l.N&&(O=(n?[l.N.defaultServiceEndpoint,l.N.defaultNavigationEndpoint]:[l.N.toggledServiceEndpoint]).filter(function(L){return L!=null})); return O||[]}; $39=function(l,n,O){this.actionType=n;this.id=O;this.content=l}; pI=function(l){MV.call(this);this.S=l;this.U(this.S,"onAdUxUpdate",this.V)}; fI=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-feedback-dialog-background",K:[{D:"div",X:"ytp-ad-feedback-dialog-container",K:[{D:"div",X:"ytp-ad-feedback-dialog-form",Z:{role:"dialog",tabindex:"-1"},K:[{D:"div",X:"ytp-ad-feedback-dialog-title",K:[{D:"span",hG:"{{title}}"}]},{D:"span",X:"ytp-ad-info-dialog-feedback-options-title",hG:"{{reasonsTitle}}"},{D:"div",X:"ytp-ad-info-dialog-feedback-options"},{D:"div",X:"ytp-ad-feedback-dialog-confirm-container",K:[{D:"button",X:"ytp-ad-feedback-dialog-cancel-button", hG:"{{cancelLabel}}"},{D:"button",X:"ytp-ad-feedback-dialog-confirm-button",hG:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",n,O,L);this.L=[];this.S=null;this.V=this.mJ("ytp-ad-feedback-dialog-cancel-button");this.Y=this.mJ("ytp-ad-feedback-dialog-confirm-button");this.NQ=this.mJ("ytp-ad-info-dialog-feedback-options");this.Cf=this.mJ("ytp-ad-feedback-dialog-title");this.N=this.W=null;this.hide()}; i1g=function(l,n){var O=n.cancelRenderer&&n.cancelRenderer.buttonRenderer||null;O&&(l.S=new G5(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,["ytp-ad-feedback-dialog-close-button"],"button"),g.c(l,l.S),l.S.init(F2("button"),O,l.macros),l.S.listen("click",l.N7,l),l.S.V5(l.element));n.title&&(O=g.Uw(n.title),l.updateValue("title",O));n.reasonsTitle&&(O=g.Uw(n.reasonsTitle),l.updateValue("reasonsTitle",O));n.reasons&&VH9(l,n.reasons);n.cancelLabel&&(O=g.Uw(n.cancelLabel),l.updateValue("cancelLabel", O),g.NV(l.V,"click",function(){return l.N7()})); n.confirmLabel&&(O=g.Uw(n.confirmLabel),l.updateValue("confirmLabel",O),g.NV(l.Y,"click",function(){return BFv(l)})); n.undoRenderer&&cGf(l,n.undoRenderer)}; VH9=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){var L=O.value;O=L.reason;if(O==null)g.d2(Error("AdFeedbackReason.reason was not set."));else if(L=L.endpoint,L==null)g.d2(Error("AdFeedbackReason.endpoint was not set."));else{O=new KI(O,L);g.c(l,O);L=l.NQ;var X=O.De();L.appendChild(X);l.L.push(O)}}}; cGf=function(l,n){if(n=n&&n.buttonRenderer||null)n.serviceEndpoint?(l.W=new G5(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.c(l,l.W),l.W.init(F2("ad-feedback-undo-mute-button"),n,l.macros),l.W.listen("click",l.ouo,l),l.W.V5(l.Cf)):g.d2(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; BFv=function(l){var n=l.L.filter(function(O){return O.isChecked()}); n.length!==0&&(n=n[0].getCommand(),l.layoutId?l.Iz.executeCommand(n,l.layoutId):g.Ir(Error("Missing layoutId for ad feedback dialog.")),l.api.onAdUxClicked("ad-feedback-dialog-confirm-button",l.layoutId),l.publish("a"),l.hide())}; KI=function(l,n){this.W=n;this.S=new g.Aj({D:"label",X:"ytp-ad-feedback-dialog-reason-label",K:[{D:"input",X:"ytp-ad-feedback-dialog-reason-input",Z:{type:"radio",name:"feedback-reason-group"}},{D:"span",X:"ytp-ad-feedback-dialog-reason-text",hG:g.Uw(l)}]});this.N=this.S.mJ("ytp-ad-feedback-dialog-reason-input")}; aF=function(l,n,O,L){im.call(this,l,n,O,L,[],"ad-mute-confirm-dialog")}; RF=function(l,n,O,L,X){bm.call(this,l,{D:"div",X:"ytp-ad-info-dialog-background",K:[{D:"div",X:"ytp-ad-info-dialog-container",K:[{D:"div",X:"ytp-ad-info-dialog-form",Z:{role:"dialog",tabindex:"-1"},K:[{D:"div",X:"ytp-ad-info-dialog-title",hG:"{{title}}"},{D:"ul",X:"ytp-ad-info-dialog-ad-reasons"},{D:"div",X:"ytp-ad-info-dialog-message"},{D:"div",X:"ytp-ad-info-dialog-mute-container"},{D:"div",X:"ytp-ad-info-dialog-confirm-container",K:[{D:"button",X:"ytp-ad-info-dialog-confirm-button",hG:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",n,O,L);this.S=this.W=null;this.Y=this.mJ("ytp-ad-info-dialog-confirm-button");this.nf=this.mJ("ytp-ad-info-dialog-mute-container");this.Pm=this.mJ("ytp-ad-info-dialog-message");this.Hm=this.mJ("ytp-ad-info-dialog-ad-reasons");this.L=this.N=null;this.Cf=X;this.V=null;this.wq=!1;this.NQ=null;this.hide()}; zPq=function(l,n){if(n=n.content&&n.content.adFeedbackRenderer||null)l.W=new fI(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz),g.c(l,l.W),l.W.init(F2("ad-feedback-dialog"),n,l.macros),l.W.V5(l.Cf),l.W.subscribe("a",function(){return l.publish("c")})}; Sy9=function(l,n){if(n=n.content&&n.content.confirmDialogRenderer||null)l.L=new aF(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz),g.c(l,l.L),l.L.init(F2("ad-mute-confirm-dialog"),n,l.macros),l.L.V5(l.Cf),l.L.subscribe("b",function(){return l.publish("c")})}; po7=function(l){l.S&&l.S.listen("click",l.Vj,l);g.NV(l.Y,"click",function(){return l.Vj()})}; CI=function(l,n,O,L,X,F,x){Vo.call(this,l,n,O,L,F===void 0?!0:F,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",x===void 0?!1:x);this.S=null;this.L=X;this.hide()}; f79=function(l,n,O){n=n.dialog&&g.z(n.dialog,sZ9)||null;n==null?g.Ir(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(l.S=new RF(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,l.L),g.c(l,l.S),l.S.init(F2("ad-info-dialog"),n,O),l.S.V5(l.L),l.S.subscribe("d",function(){return l.publish("f")}),l.S.subscribe("c",function(){return l.publish("e")}))}; RPg=function(l,n,O){l.button==null?g.Ir(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(l.W&&g.FW(l.W.element,"ytp-ad-info-hover-text-short"),(n=n&&n.serviceEndpoint&&g.z(n.serviceEndpoint,KI5)||null)?(f79(l,n,O),l.button.listen("click",function(){l.S&&!l.S.Qp&&(l.S.show(),a7v(l))})):l.button.listen("click",function(){return a7v(l)}))}; a7v=function(l){l.api.onAdUxClicked("ad-info-icon-button",l.layoutId)}; tj=function(l,n,O,L,X,F){bm.call(this,l,{D:"div",X:"ytp-ad-text"},F===void 0?"ad-text":F,n,O,L,X===void 0?null:X);this.S=null;this.hide()}; vr=function(l,n){n&&g.xQ(l.element,rW(l.S,n))}; lr=function(l,n,O,L,X,F,x){bm.call(this,l,n,O,L,X,F);this.S=x;g.c(this,this.S);this.wq=this.Y=-1}; nH=function(l){l.S&&l.Y===-1&&(l.Y=l.S.subscribe("h",l.lc,l),l.wq=l.S.subscribe("g",l.Os,l),l.lc())}; O2=function(l){l.S!=null&&l.Y!==-1&&(l.S.uJ(l.Y),l.S.uJ(l.wq),l.wq=-1,l.Y=-1)}; g.gy=function(l,n,O,L,X,F){g.V.call(this);this.element=l;this.state=null;O||l.hide();this.W=n;this.N=L===void 0?n:L;this.S=F;this.onHidden=X;this.delay=new g.vs(this.YI,0,this);g.c(this,this.delay)}; LH=function(l,n){l=l.element.element;n?l.setAttribute("aria-hidden","true"):l.removeAttribute("aria-hidden")}; X8=function(l,n,O,L,X,F){lr.call(this,l,{D:"div",X:"ytp-ad-preview-slot"},"ad-preview",n,O,L,X);var x=this;this.nf=-1;this.L=this.api.j().experiments.MQ("enable_modern_skip_button_on_web");this.W=new g.Aj({D:"span",X:"ytp-ad-preview-container"});this.L&&this.W.element.classList.add("ytp-ad-preview-container-detached");g.c(this,this.W);this.N=this.L?new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-preview-text-modern"):new tj(this.api,this.layoutId,this.interactionLoggingClientData, this.Iz,"ytp-ad-preview-text");g.c(this,this.N);this.N.V5(this.W.element);this.NQ=this.L?new g.Aj({D:"span",X:"ytp-ad-preview-image-modern"}):new g.Aj({D:"span",X:"ytp-ad-preview-image"});g.c(this,this.NQ);this.V=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.V);this.V.V5(this.NQ.element);this.NQ.V5(this.W.element);this.W.V5(this.element);this.Cf=new g.gy(this.W,400,!1,100,function(){return x.hide()}); g.c(this,this.Cf);this.Hm=0;this.Pm=!1;this.Of=F;this.hide()}; oN=function(l){l.Cf.show(100);l.show()}; F8=function(l,n,O,L,X,F){lr.call(this,l,{D:"div",gq:["ytp-flyout-cta","ytp-flyout-cta-inactive"],K:[{D:"div",X:"ytp-flyout-cta-icon-container"},{D:"div",X:"ytp-flyout-cta-body",K:[{D:"div",X:"ytp-flyout-cta-text-container",K:[{D:"div",X:"ytp-flyout-cta-headline-container"},{D:"div",X:"ytp-flyout-cta-description-container"}]},{D:"div",X:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",n,O,L,X);this.N=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-flyout-cta-icon"); g.c(this,this.N);this.N.V5(this.mJ("ytp-flyout-cta-icon-container"));this.N.element.classList.add("ytp-flyout-cta-icon-rounded");this.V=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-flyout-cta-headline");g.c(this,this.V);this.V.V5(this.mJ("ytp-flyout-cta-headline-container"));this.L=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-flyout-cta-description");g.c(this,this.L);this.L.V5(this.mJ("ytp-flyout-cta-description-container"));l=["ytp-flyout-cta-action-button"]; this.api.j().J("web_modern_buttons")&&l.push("ytp-flyout-cta-action-button-rounded");this.W=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,l);g.c(this,this.W);this.W.V5(this.mJ("ytp-flyout-cta-action-button-container"));this.W.element.setAttribute("tabIndex","-1");sU(this.W.element);this.NQ=null;this.Cf=0;this.Hm=F;this.hide()}; x7=function(l,n,O,L,X){bm.call(this,l,{D:"div",X:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",n,O,L,X===void 0?null:X);var F=this;this.S=null;this.N=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-instream-user-sentiment-like-button"]);g.c(this,this.N);this.N.V5(this.element);this.W=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-instream-user-sentiment-dislike-button"]);g.c(this,this.W);this.W.V5(this.element); this.L=new g.gy(this,400,!1,500,function(){return F.hide()}); g.c(this,this.L);this.hide()}; hV=function(l,n,O,L,X,F){X=X===void 0?0:X;F=F===void 0?!1:F;g.V.call(this);this.W=l;this.N=!1;this.Y=L;this.Wm=F;this.V=!1;this.S=null;n>0&&(this.S=new g.vs(this.IM,n,this),g.c(this,this.S));this.B=new g.vs(this.IM,O,this);g.c(this,this.B);this.G=jj9(this.W,X,1,L);g.c(this,this.G);this.T=jj9(this.W,0,L,1);g.c(this,this.T);this.L=new MV;g.c(this,this.L)}; ZD=function(l,n,O){this.W=l;this.isAsync=n;this.S=O}; CXa=function(l){switch(l){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:FL(l,"unknown result type")}}; tHa=function(l,n){var O=1;l.isTrusted===!1&&(O=0);a3("ISDSTAT",O);JV(O,"i.s_",{triggerContext:"sk",metadata:n});return O}; vt8=function(l,n){var O=[];n?n.isTrusted===!0?O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):n.isTrusted===!1?O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");JV(0,"a.s_",{metadata:l,states:O});a3("ASDSTAT",0)}; JV=function(l,n,O){n=lgk[n];var L,X,F={detected:l===0,source:""+n.W+((L=O.triggerContext)!=null?L:"")+((X=O.Tu)!=null?X:""),detectionStates:O.states,durationMs:O.wO};O.metadata&&(F.contentCpn=O.metadata.contentCpn,F.adCpn=O.metadata.adCpn);g.JG("biscottiBasedDetection",F);n.S!==void 0&&(O=Number(g.R3("CATSTAT",0)),n.S!==void 0?(n=n.S,l=CXa(l),l=O&~(3<<n)|l<<n):l=O,a3("CATSTAT",l))}; wy=function(l){return l?"layout: "+l.layoutType:""}; Ht=function(l,n,O){return l?!0:(g.d2(new g.at("Assertion: "+n,O)),!1)}; AV=function(l,n,O,L,X){L=L===void 0?{}:L;if(!X||Math.random()<5E-4){n=n||null;O=O||null;l=l instanceof Error?l:new g.at(l);if(l.args)for(var F=g.P(l.args),x=F.next();!x.done;x=F.next())x=x.value,x instanceof Object&&(L=Object.assign({},x,L));L.category="H5 Ads Control Flow";n&&(L.slot=n?"slot: "+n.slotType:"");O&&(L.layout=wy(O),L.layoutId=O.layoutId);X&&(L.known_error_aggressively_sampled=!0);l.args=[L];g.d2(l)}}; g.br=function(l,n){this.state=l;this.oldState=n}; ry=function(l,n){return g.K(l.state,n)&&!g.K(l.oldState,n)?1:!g.K(l.state,n)&&g.K(l.oldState,n)?-1:0}; g.U2=function(l,n){return ry(l,n)>0}; ur=function(l,n,O,L,X,F){lr.call(this,l,{D:"div",X:"ytp-ad-skip-button-slot"},"skip-button",n,O,L,X);var x=this;this.NQ=null;this.Cf=!1;this.Pm=F;this.V=this.api.j().experiments.MQ("enable_modern_skip_button_on_web");this.nf=!1;this.N=new g.Aj({D:"span",gq:["ytp-ad-skip-button-container"]});this.V&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");this.api.J("enable_ad_pod_index_autohide")&&this.N.element.classList.add("ytp-ad-skip-button-container--clean-player");g.c(this,this.N); this.N.V5(this.element);this.W=this.L=null;this.Of=new g.gy(this.N,500,!1,100,function(){return x.hide()}); g.c(this,this.Of);this.Hm=new hV(this.N.element,15E3,5E3,.5,.5,this.V);g.c(this,this.Hm);this.hide()}; OKv=function(l){l=l.NQ&&l.NQ.adRendererCommands;return(l&&l.clickCommand&&g.z(l.clickCommand,g.Pt)&&g.z(l.clickCommand,g.Pt).commands||[]).some(function(n){return n.adLifecycleCommand?nOf(n.adLifecycleCommand):!1})}; nOf=function(l){return l.action==="END_LINEAR_AD"||l.action==="END_LINEAR_AD_PLACEMENT"}; T7=function(l,n,O,L,X,F){lr.call(this,l,{D:"div",X:"ytp-ad-skip-ad-slot"},"skip-ad",n,O,L,X);this.NQ=F;this.L=!1;this.V=0;this.N=this.W=null;this.hide()}; gO8=function(l,n){l.L||(l.L=!0,l.W&&(n?l.W.Cf.hide():l.W.hide()),n?(l=l.N,l.Of.show(),l.show()):l.N.show())}; Wt=function(l,n,O,L){G5.call(this,l,n,O,L,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; E2=function(l,n,O,L,X,F,x){F=F===void 0?!1:F;x=x===void 0?!1:x;bm.call(this,l,{D:"span",X:"ytp-ad-simple-ad-badge"},"simple-ad-badge",n,O,L);this.N=X;this.S=this.mJ("ytp-ad-simple-ad-badge");(this.W=F)&&this.S.classList.add("ytp-ad-simple-ad-badge--clean-player");x&&this.S.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Ni=function(l,n,O,L,X){X=X===void 0?!1:X;xR.call(this,"player-overlay",l,{},n,L);this.videoAdDurationSeconds=O;this.interactionLoggingClientData=L;this.uL=X}; DD=function(l,n){g.hj.call(this);this.api=l;this.durationMs=n;this.S=null;this.RI=new MV(this);g.c(this,this.RI);this.W=LBq;this.RI.U(this.api,"presentingplayerstatechange",this.Az);this.S=this.RI.U(this.api,"onAdPlaybackProgress",this.tC)}; qi=function(l){g.hj.call(this);this.S=!1;this.Le=0;this.RI=new MV(this);g.c(this,this.RI);this.durationMs=l;this.Yh=new g.DG(100);g.c(this,this.Yh);this.RI.U(this.Yh,"tick",this.tC);this.W={seekableStart:0,seekableEnd:l/1E3,current:0};this.start()}; g.k7=function(l,n){var O=Math.abs(Math.floor(l)),L=Math.floor(O/86400),X=Math.floor(O%86400/3600),F=Math.floor(O%3600/60);O=Math.floor(O%60);if(n){n="";L>0&&(n+=" "+L+" Days");if(L>0||X>0)n+=" "+X+" Hours";n+=" "+F+" Minutes";n+=" "+O+" Seconds";L=n.trim()}else{n="";L>0&&(n+=L+":",X<10&&(n+="0"));if(L>0||X>0)n+=X+":",F<10&&(n+="0");n+=F+":";O<10&&(n+="0");L=n+O}return l>=0?L:"-"+L}; g.yz=function(l){return(!("button"in l)||typeof l.button!=="number"||l.button===0)&&!("shiftKey"in l&&l.shiftKey)&&!("altKey"in l&&l.altKey)&&!("metaKey"in l&&l.metaKey)&&!("ctrlKey"in l&&l.ctrlKey)}; Mi=function(l,n,O,L,X,F,x){lr.call(this,l,{D:"span",X:x?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",n,O,L,X);this.videoAdDurationSeconds=F;this.W=null;this.api.J("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");x&&this.api.j().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.J("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), aZ&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; Qz=function(l,n,O,L){tj.call(this,l,n,O,L,"ytp-video-ad-top-bar-title","ad-title");l.J("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; en=function(l){this.content=l.content;if(l.commandRuns){l=g.P(l.commandRuns);for(var n=l.next();!n.done;n=l.next())n=n.value,this.loggingDirectives=g.z(n,X29),n.onTap&&(this.interaction={onTap:n.onTap})}}; Y7=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ad-simple-attributed-string"},"ad-simple-attributed-string",n,O,L);this.hide()}; jn=function(l,n,O,L,X){bm.call(this,l,{D:"span",X:X?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",n,O,L);this.W=X;this.adBadgeText=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);this.adBadgeText.V5(this.element);g.c(this,this.adBadgeText);X?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.J("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),aZ&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; G7=function(l,n,O,L,X){bm.call(this,l,{D:"span",X:"ytp-ad-pod-index"},"ad-pod-index",n,O,L);this.W=X;this.api.j().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.J("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),aZ&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; m3=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",n,O,L);this.hide()}; IN=function(l,n){this.W=l;this.S=n}; dy=function(l,n,O){if(!l.getLength())return O!=null?O:Infinity;l=(n-l.W)/l.getLength();return g.hR(l,0,1)}; $7=function(l,n,O,L){L=L===void 0?!1:L;g.Aj.call(this,{D:"div",X:"ytp-ad-persistent-progress-bar-container",K:[{D:"div",X:"ytp-ad-persistent-progress-bar"}]});this.api=l;this.W=n;this.N=O;L&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.c(this,this.W);this.progressBar=this.mJ("ytp-ad-persistent-progress-bar");this.S=-1;this.U(l,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Vz=function(l,n,O,L,X,F){bm.call(this,l,{D:"div",X:"ytp-ad-player-overlay",K:[{D:"div",X:"ytp-ad-player-overlay-flyout-cta"},{D:"div",X:"ytp-ad-player-overlay-instream-info"},{D:"div",X:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",X:"ytp-ad-player-overlay-progress-bar"},{D:"div",X:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",X:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",n,O,L);this.NQ=F;this.V=this.mJ("ytp-ad-player-overlay-flyout-cta");this.V.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.S=this.mJ("ytp-ad-player-overlay-instream-info");this.L=null;oO9(this)&&(l=lA("div"),g.FW(l,"ytp-ad-player-overlay-top-bar-gradients"),this.api.J("disable_ad_preview_for_instream_ads")&&g.FW(l,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),n=this.S,n.parentNode&&n.parentNode.insertBefore(l,n),(n=this.api.getVideoData(2))&&n.isListed&&n.title&&(O=new Qz(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),O.V5(l),O.init(F2("ad-title"),{text:n.title},this.macros),g.c(this, O)),this.L=l);this.N=null;this.Y=this.mJ("ytp-ad-player-overlay-skip-or-preview");this.wq=this.mJ("ytp-ad-player-overlay-progress-bar");this.Hm=this.mJ("ytp-ad-player-overlay-instream-user-sentiment");this.Cf=this.mJ("ytp-ad-player-overlay-ad-disclosure-banner");this.W=X;g.c(this,this.W);this.hide()}; oO9=function(l){l=l.api.j();return g.Bt(l)&&l.W}; ct=function(l,n,O){var L={};n&&(L.v=n);O&&(L.list=O);l={name:l,locale:void 0,feature:void 0};for(var X in L)l[X]=L[X];L=g.pr("/sharing_services",l);g.zu(L)}; g.ir=function(l){l&=16777215;var n=[(l&16711680)>>16,(l&65280)>>8,l&255];l=n[0];var O=n[1];n=n[2];l=Number(l);O=Number(O);n=Number(n);if(l!=(l&255)||O!=(O&255)||n!=(n&255))throw Error('"('+l+","+O+","+n+'") is not a valid RGB color');O=l<<16|O<<8|n;return l<16?"#"+(16777216|O).toString(16).slice(1):"#"+O.toString(16)}; z7=function(l){this.S=new Yy(l)}; FBq=function(){var l=!1;try{l=!!window.sessionStorage.getItem("session_logininfo")}catch(n){l=!0}return(g.R3("INNERTUBE_CLIENT_NAME")==="WEB"||g.R3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&l}; Sn=function(l){if(g.R3("LOGGED_IN",!0)&&FBq()){var n=g.R3("VALID_SESSION_TEMPDATA_DOMAINS",[]);var O=g.VM(window.location.href);O&&n.push(O);O=g.VM(l);g.CO(n,O)||!O&&NQ(l,"/")?(n=B$(l),(n=Tek(n))?(n=mV0(n),n=(n=g.VA(n)||null)?Lh(n):{}):n=null):n=null;n==null&&(n={});O=n;var L=void 0;FBq()?(L||(L=g.R3("LOGIN_INFO")),L?(O.session_logininfo=L,O=!0):O=!1):O=!1;O&&QS(l,n)}}; g.xz9=function(l){var n=n===void 0?{}:n;var O=O===void 0?"":O;var L=L===void 0?window:L;l=g.pr(l,n);Sn(l);O=g.j8(l+O);L=L.location;O=Gl(O);O!==void 0&&(L.href=O)}; g.pH=function(l,n,O){n=n===void 0?{}:n;O=O===void 0?!1:O;var L=g.R3("EVENT_ID");L&&(n.ei||(n.ei=L));n&&QS(l,n);O||(Sn(l),g.xz9(l))}; g.s2=function(l,n,O,L,X){X=X===void 0?!1:X;O&&QS(l,O);O=g.j8(l);var F=g.Q6(O);l!=F&&nh(Error("Unsafe window.open URL: "+l));l=F;n=n||lf(l).toString(36);try{if(X){X=l;X=JPf(X);Sn(X);g.V6(window,X,n,"attributionsrc");return}}catch(x){g.vK(x)}Sn(l);g.V6(window,O,n,L)}; hE0=function(l){fH=l}; ZKe=function(l){KH=l}; Jck=function(l){aN=l}; HKg=function(){w2i=aN=KH=fH=null}; bKe=function(){var l=l===void 0?window.location.href:l;if(g.E0("kevlar_disable_theme_param"))return null;var n=Ih(g.$o(5,l));if(g.E0("enable_dark_theme_only_on_shorts")&&n!=null&&n.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var O=g.oT(l).theme;return Ace.get(O)||null}catch(L){}return null}; RN=function(){this.S={};if(this.W=UCv()){var l=g.VA("CONSISTENCY");l&&rci(this,{encryptedTokenJarContents:l})}}; rci=function(l,n){if(n.encryptedTokenJarContents&&(l.S[n.encryptedTokenJarContents]=n,typeof n.expirationSeconds==="string")){var O=Number(n.expirationSeconds);setTimeout(function(){delete l.S[n.encryptedTokenJarContents]},O*1E3); l.W&&g.$p("CONSISTENCY",n.encryptedTokenJarContents,O,void 0,!0)}}; tV=function(){this.W=-1;var l=g.R3("LOCATION_PLAYABILITY_TOKEN");g.R3("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=CH(this))&&(l=this.localStorage.get("yt-location-playability-token"));l&&(this.locationPlayabilityToken=l,this.S=void 0)}; CH=function(l){return l.localStorage===void 0?new Xm("yt-client-location"):l.localStorage}; g.vt=function(l,n,O){n=n===void 0?!1:n;O=O===void 0?!1:O;var L=g.R3("INNERTUBE_CONTEXT");if(!L)return g.Ir(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};L=g.GB(L);g.E0("web_no_tracking_params_in_shell_killswitch")||delete L.clickTracking;L.client||(L.client={});var X=L.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=g.R3("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints= window.innerHeight;X.screenPixelDensity=Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var F=F===void 0?!1:F;g.zK();var x="USER_INTERFACE_THEME_LIGHT";g.SU(0,165)?x="USER_INTERFACE_THEME_DARK":g.SU(0,174)?x="USER_INTERFACE_THEME_LIGHT":!g.E0("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (x="USER_INTERFACE_THEME_DARK");F=F?x:bKe()||x;X.userInterfaceTheme=F;if(!n){if(F=Lti())X.connectionType=F;g.E0("web_log_effective_connection_type")&&(F=oya())&&(L.client.effectiveConnectionType=F)}var Z;if(g.E0("web_log_memory_total_kbytes")&&((Z=g.Be.navigator)==null?0:Z.deviceMemory)){var J;Z=(J=g.Be.navigator)==null?void 0:J.deviceMemory;L.client.memoryTotalKbytes=""+Z*1E6}g.E0("web_gcf_hashes_innertube")&&(F=Hx9())&&(J=F.coldConfigData,Z=F.coldHashData,F=F.hotHashData,L.client.configInfo=L.client.configInfo|| {},J&&(L.client.configInfo.coldConfigData=J),Z&&(L.client.configInfo.coldHashData=Z),F&&(L.client.configInfo.hotHashData=F));J=g.oT(g.Be.location.href);!g.E0("web_populate_internal_geo_killswitch")&&J.internalcountrycode&&(X.internalGeo=J.internalcountrycode);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo={graftUrl:g.Be.location.href},g.E0("kevlar_woffle")&&Ch5.instance&&(J=Ch5.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!J.S&&J.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=Bk(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&(!g.E0("web_lr_app_quality_killswitch")&&(J=g.R3("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:J})),J=g.R3("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:J}));if(!g.E0("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(d){}w=void 0}w&&(X.timeZone=w)}(w=DE())?X.experimentsToken=w:delete X.experimentsToken;w=qY();RN.instance||(RN.instance=new RN);L.request=Object.assign({},L.request,{internalExperimentFlags:w,consistencyTokenJars:g.DF(RN.instance.S)});!g.E0("web_prequest_context_killswitch")&&(w=g.R3("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(L.request.externalPrequestContext=w);X=g.zK();w=g.SU(0,58);X=X.get("gsml","");L.user=Object.assign({}, L.user);w&&(L.user.enableSafetyMode=w);X&&(L.user.lockedSafetyMode=!0);g.E0("warm_op_csn_cleanup")?O&&(n=g.yS())&&(L.clientScreenNonce=n):!n&&(n=g.yS())&&(L.clientScreenNonce=n);l&&(L.clickTracking={clickTrackingParams:l});if(l=g.zk("yt.mdx.remote.remoteClient_"))L.remoteClient=l;tV.getInstance().setLocationOnInnerTubeContext(L);try{var H=AP(),A=H.bid;delete H.bid;L.adSignalsInfo={params:[],bid:A};for(var b=g.P(Object.entries(H)),r=b.next();!r.done;r=b.next()){var U=g.P(r.value),W=U.next().value, N=U.next().value;H=W;A=N;l=void 0;(l=L.adSignalsInfo.params)==null||l.push({key:H,value:""+A})}var q,y;if(((q=L.client)==null?void 0:q.clientName)==="TVHTML5"||((y=L.client)==null?void 0:y.clientName)==="TVHTML5_UNPLUGGED"){var e=g.R3("INNERTUBE_CONTEXT");e.adSignalsInfo&&(L.adSignalsInfo.advertisingId=e.adSignalsInfo.advertisingId,L.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",L.adSignalsInfo.limitAdTracking=e.adSignalsInfo.limitAdTracking)}}catch(d){g.Ir(d)}return L}; PI8=function(l,n){if(!l)return!1;var O,L=(O=g.z(l,Uz9))==null?void 0:O.signal;if(L&&n.r9)return!!n.r9[L];var X;if((O=(X=g.z(l,ul8))==null?void 0:X.request)&&n.tH)return!!n.tH[O];for(var F in l)if(n.zO[F])return!0;return!1}; Txv=function(l){var n={"Content-Type":"application/json"};g.R3("EOM_VISITOR_DATA")?n["X-Goog-EOM-Visitor-Id"]=g.R3("EOM_VISITOR_DATA"):g.R3("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.R3("VISITOR_DATA"));n["X-Youtube-Bootstrap-Logged-In"]=g.R3("LOGGED_IN",!1);g.R3("DEBUG_SETTINGS_METADATA")&&(n["X-Debug-Settings-Metadata"]=g.R3("DEBUG_SETTINGS_METADATA"));l!=="cors"&&((l=g.R3("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(n["X-Youtube-Client-Name"]=l),(l=g.R3("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(n["X-Youtube-Client-Version"]= l),(l=g.R3("CHROME_CONNECTED_HEADER"))&&(n["X-Youtube-Chrome-Connected"]=l),(l=g.R3("DOMAIN_ADMIN_STATE"))&&(n["X-Youtube-Domain-Admin-State"]=l),g.R3("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(l=g.R3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(n["X-YouTube-Lava-Device-Context"]=l));return n}; WB5=function(){this.S={}}; lD=function(){this.mappings=new WB5}; np=function(l){return function(){return new l}}; Nx9=function(l){var n=n===void 0?"UNKNOWN_INTERFACE":n;if(l.length===1)return l[0];var O=EOa[n];if(O){O=new RegExp(O);for(var L=g.P(l),X=L.next();!X.done;X=L.next())if(X=X.value,O.exec(X))return X}var F=[];Object.entries(EOa).forEach(function(x){var Z=g.P(x);x=Z.next().value;Z=Z.next().value;n!==x&&F.push(Z)}); O=new RegExp(F.join("|"));l.sort(function(x,Z){return x.length-Z.length}); L=g.P(l);for(X=L.next();!X.done;X=L.next())if(X=X.value,!O.exec(X))return X;return l[0]}; g.Og=function(l){return"/youtubei/v1/"+Nx9(l)}; g1=function(){}; Lp=function(){}; Xn=function(){}; oM=function(l){return g.zk("ytcsi."+(l||"")+"data_")||Dz5(l)}; qxa=function(){var l=oM();l.info||(l.info={});return l.info}; uD=function(l){l=oM(l);l.metadata||(l.metadata={});return l.metadata}; Pn=function(l){l=oM(l);l.tick||(l.tick={});return l.tick}; Tp=function(l){l=oM(l);if(l.gel){var n=l.gel;n.gelInfos||(n.gelInfos={});n.gelTicks||(n.gelTicks={})}else l.gel={gelTicks:{},gelInfos:{}};return l.gel}; ku9=function(l){l=Tp(l);l.gelInfos||(l.gelInfos={});return l.gelInfos}; Wn=function(l){var n=oM(l).nonce;n||(n=g.D0(16),oM(l).nonce=n);return n}; Dz5=function(l){var n={tick:{},info:{}};g.i9("ytcsi."+(l||"")+"data_",n);return n}; Eg=function(){var l=g.zk("ytcsi.debug");l||(l=[],g.i9("ytcsi.debug",l),g.i9("ytcsi.reference",{}));return l}; Nu=function(l){l=l||"";var n=yci();if(n[l])return n[l];var O=Eg(),L={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};O.push(L);return n[l]=L}; M39=function(l){l=l||"";var n=yci();n[l]&&delete n[l];var O=Eg(),L={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};O.push(L);n[l]=L}; yci=function(){var l=g.zk("ytcsi.reference");if(l)return l;Eg();return g.zk("ytcsi.reference")}; D3=function(l){return QHa[l]||"LATENCY_ACTION_UNKNOWN"}; qu=function(l,n){bI.call(this,1,arguments);this.Yh=n}; k5=function(){this.S=0}; y9=function(){k5.instance||(k5.instance=new k5);return k5.instance}; Q9=function(l,n){Mu[n]=Mu[n]||{count:0};var O=Mu[n];O.count++;O.time=(0,g.Q_)();l.S||(l.S=g.lX(0,function(){var L=(0,g.Q_)(),X;for(X in Mu)Mu[X]&&L-Mu[X].time>6E4&&delete Mu[X];l&&(l.S=0)},5E3)); return O.count>5?(O.count===6&&Math.random()*1E5<1&&(O=new g.at("CSI data exceeded logging limit with key",n.split("_")),n.indexOf("plev")>=0||g.d2(O)),!0):!1}; eE7=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Yx9=function(){var l;if(g.E0("csi_use_performance_navigation_timing")||g.E0("csi_use_performance_navigation_timing_tvhtml5")){var n,O,L,X=e$==null?void 0:(l=e$.getEntriesByType)==null?void 0:(n=l.call(e$,"navigation"))==null?void 0:(O=n[0])==null?void 0:(L=O.toJSON)==null?void 0:L.call(O);X?(X.requestStart=Y5(X.requestStart),X.responseEnd=Y5(X.responseEnd),X.redirectStart=Y5(X.redirectStart),X.redirectEnd=Y5(X.redirectEnd),X.domainLookupEnd=Y5(X.domainLookupEnd),X.connectStart=Y5(X.connectStart), X.connectEnd=Y5(X.connectEnd),X.responseStart=Y5(X.responseStart),X.secureConnectionStart=Y5(X.secureConnectionStart),X.domainLookupStart=Y5(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,l=X):l=e$.timing}else l=g.E0("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(e$.timing)):e$.timing;return l}; Y5=function(l){return Math.round(j$()+l)}; j$=function(){return(g.E0("csi_use_time_origin")||g.E0("csi_use_time_origin_tvhtml5"))&&e$.timeOrigin?Math.floor(e$.timeOrigin):e$.timing.navigationStart}; mk=function(l,n){Gp("_start",l,n)}; IM=function(l,n){if(!g.E0("web_csi_action_sampling_enabled")||!oM(n).actionDisabled){var O=Nu(n||"");As(O.info,l);l.loadType&&(O=l.loadType,uD(n).loadType=O);As(ku9(n),l);O=Wn(n);n=oM(n).cttAuthInfo;y9().info(l,O,n)}}; jHg=function(){var l,n,O,L;return((L=Iu().resolve(new e5(Zg))==null?void 0:(l=Jc())==null?void 0:(n=l.loggingHotConfig)==null?void 0:(O=n.csiConfig)==null?void 0:O.debugTicks)!=null?L:[]).map(function(X){return Object.values(X)[0]})}; Gp=function(l,n,O){if(!g.E0("web_csi_action_sampling_enabled")||!oM(O).actionDisabled){var L=Wn(O),X;if(X=g.E0("web_csi_debug_sample_enabled")&&L){(Iu().resolve(new e5(Zg))==null?0:Jc())&&!Gue&&(Gue=!0,Gp("gcfl",(0,g.Q_)(),O));var F,x,Z;X=(Iu().resolve(new e5(Zg))==null?void 0:(F=Jc())==null?void 0:(x=F.loggingHotConfig)==null?void 0:(Z=x.csiConfig)==null?void 0:Z.debugSampleWeight)||0;if(F=X!==0)b:{F=jHg();if(F.length>0)for(x=0;x<F.length;x++)if(l===F[x]){F=!0;break b}F=!1}F?(X=gt5(L)%X!==0,oM(O).debugTicksExcludedLogged|| (F={},F.debugTicksExcluded=X,IM(F,O)),oM(O).debugTicksExcludedLogged=!0):X=!1}if(!X){if(l[0]!=="_"&&(X=l,F=n,e$.mark))if(X.startsWith("mark_")||(X="mark_"+X),O&&(X+=" ("+O+")"),F===void 0||g.E0("web_csi_disable_alt_time_performance_mark"))e$.mark(X);else{F=g.E0("csi_use_performance_navigation_timing")||g.E0("csi_use_performance_navigation_timing_tvhtml5")?F-e$.timeOrigin:F-(e$.timeOrigin||e$.timing.navigationStart);try{e$.mark(X,{startTime:F})}catch(J){}}X=Nu(O||"");X.tick[l]=n||(0,g.Q_)();if(X.callback&& X.callback[l])for(X=g.P(X.callback[l]),F=X.next();!F.done;F=X.next())F=F.value,F();X=Tp(O);X.gelTicks&&(X.gelTicks[l]=!0);F=Pn(O);X=n||(0,g.Q_)();g.E0("log_repeated_ytcsi_ticks")?l in F||(F[l]=X):F[l]=X;F=oM(O).cttAuthInfo;l==="_start"?(l=y9(),Q9(l,"baseline_"+L)||g.JG("latencyActionBaselined",{clientActionNonce:L},{timestamp:n,cttAuthInfo:F})):y9().tick(l,L,n,F);mzk(O);return X}}}; Ig5=function(){var l,n=(l=e$.getEntriesByType)==null?void 0:l.call(e$,"mark");n&&n.forEach(function(O){if(O.name.startsWith("mark_")){var L;(L=e$.clearMarks)==null||L.call(e$,O.name)}})}; dzg=function(){switch($Cg()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; $zi=function(l){function n(F,x,Z){x=x.match("_rid")?x.split("_rid")[0]:x;typeof Z==="number"&&(Z=JSON.stringify(Z));F.requestIds?F.requestIds.push({endpoint:x,id:Z}):F.requestIds=[{endpoint:x,id:Z}]} var O={};l=g.P(Object.entries(l));for(var L=l.next();!L.done;L=l.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;switch(L){case "GetBrowse_rid":n(O,L,X);break;case "GetGuide_rid":n(O,L,X);break;case "GetHome_rid":n(O,L,X);break;case "GetPlayer_rid":n(O,L,X);break;case "GetSearch_rid":n(O,L,X);break;case "GetSettings_rid":n(O,L,X);break;case "GetTrending_rid":n(O,L,X);break;case "GetWatchNext_rid":n(O,L,X);break;case "yt_red":O.isRedSubscriber=!!X;break;case "yt_ad":O.isMonetized=!!X}}return O}; V35=function(l,n){l=document.querySelector(l);if(!l)return!1;var O="",L=l.nodeName;L==="SCRIPT"?(O=l.src,O||(O=l.getAttribute("data-timing-href"))&&(O=window.location.protocol+O)):L==="LINK"&&(O=l.href);B3(document)&&l.setAttribute("nonce",B3(document));return O?(l=e$.getEntriesByName(O))&&l[0]&&(l=l[0],O=j$(),Gp("rsf_"+n,O+Math.round(l.fetchStart)),Gp("rse_"+n,O+Math.round(l.responseEnd)),l.transferSize!==void 0&&l.transferSize===0)?!0:!1:!1}; Bxq=function(){var l=window.location.protocol,n=e$.getEntriesByType("resource");n=g.Jq(n,function(O){return O.name.indexOf(l+"//fonts.gstatic.com/s/")===0}); (n=ei(n,function(O,L){return L.duration>O.duration?L:O},{duration:0}))&&n.startTime>0&&n.responseEnd>0&&(Gp("wffs",Y5(n.startTime)),Gp("wffe",Y5(n.responseEnd)))}; cce=function(l,n,O){e$&&e$.measure&&(l.startsWith("measure_")||(l="measure_"+l),O?e$.measure(l,n,O):n?e$.measure(l,n):e$.measure(l))}; iKq=function(l){var n=d1("aft",l);if(n)return n;n=g.R3((l||"")+"TIMING_AFT_KEYS",["ol"]);for(var O=n.length,L=0;L<O;L++){var X=d1(n[L],l);if(X)return X}return NaN}; $5=function(l,n){g.i9("ytglobal.timing"+(n||"")+"ready_",l)}; d1=function(l,n){if(l=Pn(n)[l])return typeof l==="number"?l:l[l.length-1]}; mzk=function(l){var n=d1("_start",l),O=iKq(l),L=g.E0("enable_cow_info_csi")||!zEk;n&&O&&L&&(uI(Sx7,new qu(Math.round(O-n),l)),zEk=!0)}; p25=function(){if(e$.getEntriesByType){var l=e$.getEntriesByType("paint");if(l=g.ak(l,function(O){return O.name==="first-paint"}))return Y5(l.startTime)}var n; g.E0("csi_use_performance_navigation_timing")||g.E0("csi_use_performance_navigation_timing_tvhtml5")?n=e$.getEntriesByType("first-paint")[0].startTime:n=e$.timing.avm;return n?Math.max(0,n):0}; V9=function(l){Dz5(l);sHa();Ig5();l||(g.R3("TIMING_ACTION")&&a3("PREVIOUS_ACTION",g.R3("TIMING_ACTION")),a3("TIMING_ACTION",""))}; fge=function(){var l=["pbs","pbu"];g.lk(function(){Nu("").info.actionType="watch";l&&a3("TIMING_AFT_KEYS",l);a3("TIMING_ACTION","watch");var n=$zi(g.R3("TIMING_INFO",{}));Object.keys(n).length>0&&IM(n);n={isNavigation:!0,actionType:D3(g.R3("TIMING_ACTION"))};var O=g.R3("PREVIOUS_ACTION");O&&(n.previousAction=D3(O));if(O=g.R3("CLIENT_PROTOCOL"))n.httpProtocol=O;if(O=g.R3("CLIENT_TRANSPORT"))n.transportProtocol=O;(O=g.yS())&&O!=="UNDEFINED_CSN"&&(n.clientScreenNonce=O);O=dzg();if(O===1||O===-1)n.isVisible= !0;O=uD().loadType==="cold";var L=qxa();O||(O=L.yt_lt==="cold");if(O){n.loadType="cold";O=qxa();L=Yx9();var X=j$(),F=g.R3("CSI_START_TIMESTAMP_MILLIS",0);F>0&&!g.E0("embeds_web_enable_csi_start_override_killswitch")&&(X=F);X&&(Gp("srt",L.responseStart),O.prerender!==1&&mk(X));O=p25();O>0&&Gp("fpt",O);O=Yx9();O.isPerformanceNavigationTiming&&IM({performanceNavigationTiming:!0},void 0);Gp("nreqs",O.requestStart,void 0);Gp("nress",O.responseStart,void 0);Gp("nrese",O.responseEnd,void 0);O.redirectEnd- O.redirectStart>0&&(Gp("nrs",O.redirectStart,void 0),Gp("nre",O.redirectEnd,void 0));O.domainLookupEnd-O.domainLookupStart>0&&(Gp("ndnss",O.domainLookupStart,void 0),Gp("ndnse",O.domainLookupEnd,void 0));O.connectEnd-O.connectStart>0&&(Gp("ntcps",O.connectStart,void 0),Gp("ntcpe",O.connectEnd,void 0));O.secureConnectionStart>=j$()&&O.connectEnd-O.secureConnectionStart>0&&(Gp("nstcps",O.secureConnectionStart,void 0),Gp("ntcpe",O.connectEnd,void 0));e$&&"getEntriesByType"in e$&&Bxq();O=[];if(document.querySelector&& e$&&e$.getEntriesByName)for(var x in Bn)Bn.hasOwnProperty(x)&&(L=Bn[x],V35(x,L)&&O.push(L));if(O.length>0)for(n.resourceInfo=[],x=g.P(O),O=x.next();!O.done;O=x.next())n.resourceInfo.push({resourceCache:O.value})}IM(n);n=Tp();n.preLoggedGelInfos||(n.preLoggedGelInfos=[]);x=n.preLoggedGelInfos;n=ku9();O=void 0;for(L=0;L<x.length;L++)if(X=x[L],X.loadType){O=X.loadType;break}if(uD().loadType==="cold"&&(n.loadType==="cold"||O==="cold")){O=Pn();L=Tp();L=L.gelTicks?L.gelTicks:L.gelTicks={};for(var Z in O)if(!(Z in L))if(typeof O[Z]==="number")Gp(Z,d1(Z));else if(g.E0("log_repeated_ytcsi_ticks"))for(X=g.P(O[Z]),F=X.next();!F.done;F=X.next())Gp(Z.slice(1),F.value);Z={};O=!1;x=g.P(x);for(L=x.next();!L.done;L=x.next())O=L.value,As(n,O),As(Z,O),O=!0;O&&IM(Z)}$5(!0);Z=g.R3("TIMING_ACTION");g.zk("ytglobal.timingready_")&&Z&&cn()&&iKq()&&mzk()})()}; KBf=function(){var l=l===void 0?{}:l;g.lk(function(){cn()&&iD("aa",void 0,void 0);M39();V9();$5(!1);l.cttAuthInfo&&(oM().cttAuthInfo=l.cttAuthInfo);a3("TIMING_AFT_KEYS",[]);l.r5F?g.zp({loadType:"hot"}):g.zp({loadType:"warm"});a3("TIMING_ACTION","");delete g.R3("TIMING_INFO",{}).yt_lt;g.lk(mk)(l.startTime,void 0)})()}; S$=function(l,n){n=n===void 0?{}:n;g.lk(function(){agi(l);var O=n.sampleRate;if(!g.E0("web_csi_action_sampling_enabled")||O===void 0||O<=1)O=!1;else{var L=Wn(l);O=gt5(L)%O!==0}O&&(oM(l).actionDisabled=!0);Nu(l||"").info.actionType=l;n.cttAuthInfo&&(oM(l).cttAuthInfo=n.cttAuthInfo);a3(l+"TIMING_ACTION",l);g.lk(mk)(n.startTime,l);O={actionType:D3(l)};n.Ekf&&(O.previousAction=D3(g.R3("TIMING_ACTION")));(L=g.yS())&&L!=="UNDEFINED_CSN"&&(O.clientScreenNonce=L);g.zp(O,l);$5(!0,l)})()}; agi=function(l){g.lk(function(){cn(l)&&iD("aa",void 0,l);M39(l);V9(l)})()}; cn=function(l){return g.lk(function(){return pp("_start",l)})()}; g.zp=function(l,n,O){g.lk(IM)(l,n,O===void 0?!1:O)}; iD=function(l,n,O){return g.lk(Gp)(l,n,O)}; REg=function(l){g.lk(cce)("action_finished",l,void 0)}; pp=function(l,n){return g.lk(function(){var O=Pn(n);return l in O})()}; t38=function(l){if(!g.E0("universal_csi_network_ticks"))return"";l=Ih(g.$o(5,l))||"";for(var n=Object.keys(CIe),O=0;O<n.length;O++){var L=n[O];if(l.includes(L))return L}return""}; l0a=function(l){if(!g.E0("universal_csi_network_ticks"))return function(){}; var n=CIe[l];return n?(sg(n),function(){var O=g.E0("universal_csi_network_ticks")?(O=vOi[l])?sg(O):!1:!1;return O}):function(){}}; sg=function(l,n){return g.lk(function(){if(pp(l,n))return!1;iD(l,void 0,n);return!0})()}; fp=function(l,n,O){g.lk(function(){if(!cn(O)||pp(l,O))return!1;iD(l,n,O);return!0})()}; nj5=function(){g.lk(function(){var l=Wn();requestAnimationFrame(function(){setTimeout(function(){l===Wn()&&iD("ftl",void 0,void 0)},0)})})()}; g.Kp=function(l,n){var O=g.eq.apply(2,arguments);l=l===void 0?0:l;g.at.call(this,n,O);this.errorType=l;Object.setPrototypeOf(this,this.constructor.prototype)}; aM=function(l,n,O,L){this.SJ=l;this.wZ=n;this.S=O;this.L=L;this.N=void 0;this.W=new Map;l.r9||(l.r9={});l.r9=Object.assign({},OPi,l.r9)}; gj5=function(l,n,O,L){if(aM.instance!==void 0){if(L=aM.instance,l=[l!==L.SJ,n!==L.wZ,O!==L.S,!1,!1,!1,void 0!==L.N],l.some(function(X){return X}))throw new g.at("InnerTubeTransportService is already initialized",l); }else aM.instance=new aM(l,n,O,L)}; RM=function(l,n,O){var L=L===void 0?Ac:L;var X=L_7(l,n);return X?new g.U6(function(F,x){var Z,J,w,H,A;return g.Y(function(b){switch(b.S){case 1:return g.Q(b,X,2);case 2:Z=b.W;J=Z.B(n,O,L);if(!J){x(new g.at("Error: Failed to build request for command.",n));b.D2(0);break}Sn(J.input);H=((w=J.X4)==null?void 0:w.mode)==="cors"?"cors":void 0;if(l.S.qY){A=XV5(l,J.config,H);b.D2(4);break}return g.Q(b,oji(l,J.config,H),5);case 5:A=b.W;case 4:F(F_q(l,J,A)),g.Tk(b)}})}):Te(new g.at("Error: No request builder found for command.", n))}; g.Cp=function(l,n,O,L,X){function F(){} X=X===void 0?{b0:{identity:Ac}}:X;var x=x===void 0?!0:x;F=l0a(t38(O));n.context||(n.context=g.vt(L,x));return new g.U6(function(Z){var J,w,H,A,b;return g.Y(function(r){if(r.S==1)return J=cu(O),w=hP(J)?"same-origin":"cors",l.S.qY?(H=XV5(l,X,w),r.D2(2)):g.Q(r,oji(l,X,w),3);r.S!=2&&(H=r.W);A=uj9(cu(O));b={input:A,X4:ik(A),gr:n,config:X};Z(F_q(l,b,H,F));g.Tk(r)})})}; hyg=function(l,n,O){var L;if(n&&!(n==null?0:(L=n.sequenceMetaData)==null?0:L.skipProcessing)&&l.L){L=g.P(xU5);for(var X=L.next();!X.done;X=L.next())X=X.value,l.L[X]&&l.L[X].handleResponse(n,O)}}; F_q=function(l,n,O,L){L=L===void 0?function(){}:L; var X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv,Fa,l9,S,v,T,p,ce,WR,HR;return g.Y(function(y5){switch(y5.S){case 1:y5.D2(2);break;case 3:if((X=y5.W)&&!X.isExpired())return y5.return(Promise.resolve(X.S()));case 2:if(!((F=n)==null?0:(x=F.gr)==null?0:x.context)){y5.D2(4);break}Z=n.gr.context;y5.D2(5);break;case 5:J=g.P([]),w=J.next();case 8:if(w.done){y5.D2(4);break}H=w.value;return g.Q(y5,H.c5m(Z),9);case 9:w=J.next();y5.D2(8);break;case 4:if((A=l.N)==null||!A.DI2(n.input,n.gr)){y5.D2(12);break}return g.Q(y5, l.N.J53(n.input,n.gr),13);case 13:return b=y5.W,hyg(l,b,n),y5.return(b);case 12:return(W=(U=n.config)==null?void 0:U.LY)&&l.W.has(W)?r=l.W.get(W):(N=JSON.stringify(n.gr),e=(y=(q=n.X4)==null?void 0:q.headers)!=null?y:{},n.X4=Object.assign({},n.X4,{headers:Object.assign({},e,O)}),d=Object.assign({},n.X4),n.X4.method==="POST"&&(d=Object.assign({},d,{body:N})),((B=n.config)==null?0:B.eQ5)&&iD(n.config.eQ5),R=function(){return l.wZ.fetch(n.input,d,n.config)},r=R(),W&&l.W.set(W,r)),g.Q(y5,r,14); case 14:if((a=y5.W)&&"error"in a&&((Lv=a)==null?0:(Fa=Lv.error)==null?0:Fa.details))for(l9=a.error.details,S=g.P(l9),v=S.next();!v.done;v=S.next())T=v.value,(p=T["@type"])&&ZP5.indexOf(p)>-1&&(delete T["@type"],a=T);W&&l.W.has(W)&&l.W.delete(W);((ce=n.config)==null?0:ce.Dn1)&&iD(n.config.Dn1);if(a||(WR=l.N)==null||!WR.L3F(n.input,n.gr)){y5.D2(15);break}return g.Q(y5,l.N.gk1(n.input,n.gr),16);case 16:a=y5.W;case 15:return hyg(l,a,n),((HR=n.config)==null?0:HR.fxi)&&iD(n.config.fxi),L(),y5.return(a|| void 0)}})}; L_7=function(l,n){a:{l=l.SJ;var O,L=(O=g.z(n,Uz9))==null?void 0:O.signal;if(L&&l.r9&&(O=l.r9[L])){var X=O();break a}var F;if((O=(F=g.z(n,ul8))==null?void 0:F.request)&&l.tH&&(F=l.tH[O])){X=F();break a}for(X in n)if(l.zO[X]&&(n=l.zO[X])){X=n();break a}X=void 0}if(X!==void 0)return Promise.resolve(X)}; oji=function(l,n,O){var L,X,F,x,Z,J,w;return g.Y(function(H){if(H.S==1){F=((L=n)==null?void 0:(X=L.b0)==null?void 0:X.identity)||Ac;J=(x=n)==null?void 0:(Z=x.b0)==null?void 0:Z.sessionIndex;var A=g.P$(l.S.pU(F,{sessionIndex:J}));return g.Q(H,A,2)}w=H.W;return H.return(Promise.resolve(Object.assign({},Txv(O),w)))})}; XV5=function(l,n,O){var L,X=(n==null?void 0:(L=n.b0)==null?void 0:L.identity)||Ac,F;n=n==null?void 0:(F=n.b0)==null?void 0:F.sessionIndex;l=l.S.pU(X,{sessionIndex:n});return Object.assign({},Txv(O),l)}; te=function(){}; vn=function(){}; lv=function(l){this.V=l}; nu=function(){}; Of=function(){}; g4=function(){}; Lu=function(){}; Xs=function(l,n,O){this.S=l;this.W=n;this.N=O}; Js5=function(l,n,O){if(l.S){var L=Ih(g.$o(5,Kr(n,"key")))||"/UNKNOWN_PATH";l.S.start(L)}l=O;g.E0("wug_networking_gzip_request")&&(l=Slf(O));return new window.Request(n,l)}; g.Fs=function(l,n){if(!om){var O=Iu();Yj(O,{Y1:wVe,Vc:Xs});var L={zO:{feedbackEndpoint:np(nu),modifyChannelNotificationPreferenceEndpoint:np(Of),playlistEditEndpoint:np(g4),shareEntityEndpoint:np(lv),subscribeEndpoint:np(te),unsubscribeEndpoint:np(vn),webPlayerShareEntityServiceEndpoint:np(Lu)}},X=tV.getInstance(),F={};X&&(F.client_location=X);l===void 0&&(l=tti());n===void 0&&(n=O.resolve(wVe));gj5(L,n,l,F);Yj(O,{Y1:HPk,v3:aM.instance});om=O.resolve(HPk)}return om}; Asq=function(l){var n=new b2;if(l.interpreterJavascript){var O=jJe(l.interpreterJavascript);O=i_(O).toString();var L=new Hq;uV(L,6,O);hX(n,Hq,1,L)}else l.interpreterUrl&&(O=qH(l.interpreterUrl),O=y6(O).toString(),L=new A_,uV(L,4,O),hX(n,A_,2,L));l.interpreterHash&&PO(n,3,l.interpreterHash);l.program&&PO(n,4,l.program);l.globalName&&PO(n,5,l.globalName);l.clientExperimentsStateBlob&&PO(n,7,l.clientExperimentsStateBlob);return n}; xs=function(l){var n={};l=l.split("&");l=g.P(l);for(var O=l.next();!O.done;O=l.next())O=O.value.split("="),O.length===2&&(n[O[0]]=O[1]);return n}; vC0=function(){if(g.E0("bg_st_hr"))return"havuokmhhs-0";var l,n=((l=performance)==null?void 0:l.timeOrigin)||0;return"havuokmhhs-"+Math.floor(n)}; hM=function(l){this.S=l}; bP0=function(){return new Promise(function(l){var n=window.top;n.ntpevasrs!==void 0?l(new hM(n.ntpevasrs)):(n.ntpqfbel===void 0&&(n.ntpqfbel=[]),n.ntpqfbel.push(function(O){l(new hM(O))}))})}; UUk=function(){if(!g.E0("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.E0("disable_biscotti_fetch_entirely_for_all_web_clients")&&gU()){var l=g.R3("PLAYER_VARS",{});if(g.eY(l,"privembed",!1)!="1"&&!DCa(l)){var n=function(){ZP=!0;"google_ad_status"in window?a3("DCLKSTAT",1):a3("DCLKSTAT",2)}; try{g.Z0("//static.doubleclick.net/instream/ad_status.js",n)}catch(O){}rsi.push(g.St.Ou(function(){if(!(ZP||"google_ad_status"in window)){try{if(n){var O=""+g.R8(n),L=DY9[O];L&&g.xj(L)}}catch(X){}ZP=!0;a3("DCLKSTAT",3)}},5E3))}}}; JM=function(){var l=Number(g.R3("DCLKSTAT",0));return isNaN(l)?0:l}; bv=function(l,n,O){var L=this;this.network=l;this.options=n;this.W=O;this.S=null;if(n.yEo){var X=new g.U_;this.S=X.promise;g.Be.ytAtRC&&vk(function(){var F,x;return g.Y(function(Z){if(Z.S==1){if(!g.Be.ytAtRC)return Z.return();F=w4(null);return g.Q(Z,Ha(L,F),2)}x=Z.W;g.Be.ytAtRC&&g.Be.ytAtRC(JSON.stringify(x));g.Tk(Z)})},2); bP0().then(function(F){var x,Z,J,w;return g.Y(function(H){if(H.S==1)return F.bindInnertubeChallengeFetcher(function(A){return Ha(L,w4(A))}),g.Q(H,et(),2); x=H.W;Z=F.getLatestChallengeResponse();J=Z.challenge;if(!J)throw Error("BGE_MACIL");w={challenge:J,HH:xs(J),vl:x,bgChallenge:new b2};X.resolve(w);F.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("BGE_MACR");A={challenge:A,HH:xs(A),vl:x,bgChallenge:new b2};L.S=Promise.resolve(A)}); g.Tk(H)})})}else n.preload&&ux8(this,new Promise(function(F){g.lX(0,function(){F(AM(L))},0)}))}; w4=function(l){var n={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};l&&(n.interpreterHash=l);return n}; AM=function(l,n){n=n===void 0?0:n;var O,L,X,F,x,Z,J,w,H,A,b,r;return g.Y(function(U){switch(U.S){case 1:O=w4(TN().S);if(g.E0("att_fet_ks"))return g.We(U,7),g.Q(U,Ha(l,O),9);g.We(U,4);return g.Q(U,Pu8(l,O),6);case 6:x=U.W;X=x.V7J;F=x.Biq;L=x;g.N7(U,3);break;case 4:return g.D5(U),g.d2(Error("Failed to fetch attestation challenge after "+(n+" attempts; not retrying for 24h."))),r4(l,864E5),U.return({challenge:"",HH:{},vl:void 0,bgChallenge:void 0});case 9:L=U.W;if(!L)throw Error("Fetching Attestation challenge returned falsy"); if(!L.challenge)throw Error("Missing Attestation challenge");X=L.challenge;F=xs(X);if("c1a"in F&&(!L.bgChallenge||!L.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.N7(U,3);break;case 7:Z=g.D5(U);g.d2(Z);n++;if(n>=5)return g.d2(Error("Failed to fetch attestation challenge after "+(n+" attempts; not retrying for 24h."))),r4(l,864E5),U.return({challenge:"",HH:{},vl:void 0,bgChallenge:void 0});J=1E3*Math.pow(2,n-1)+Math.random()*1E3;return U.return(new Promise(function(W){g.lX(0, function(){W(AM(l,n))},J)})); case 3:w=Number(F.t)||7200;r4(l,w*1E3);H=void 0;if(!("c1a"in F&&L.bgChallenge)){U.D2(10);break}A=Asq(L.bgChallenge);g.We(U,11);return g.Q(U,Wq(TN(),A),13);case 13:g.N7(U,12);break;case 11:return b=g.D5(U),g.d2(b),U.return({challenge:X,HH:F,vl:H,bgChallenge:A});case 12:return g.We(U,14),H=new u2({challenge:A,Gk:{IN:"aGIf"}}),g.Q(U,H.l1,16);case 16:g.N7(U,10);break;case 14:r=g.D5(U),g.d2(r),H=void 0;case 10:return U.return({challenge:X,HH:F,vl:H,bgChallenge:A})}})}; Ha=function(l,n){var O;return g.Y(function(L){O=l.W;if(!O||O.EP())return L.return(Ha(l.network,n));fp("att_pna",void 0,"attestation_challenge_fetch");return L.return(new Promise(function(X){O.kq("publicytnetworkstatus-online",function(){Ha(l.network,n).then(X)})}))})}; Tz9=function(l){if(!l)throw Error("Fetching Attestation challenge returned falsy");if(!l.challenge)throw Error("Missing Attestation challenge");var n=l.challenge,O=xs(n);if("c1a"in O&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},l,{V7J:n,Biq:O})}; Pu8=function(l,n){var O,L,X,F,x;return g.Y(function(Z){switch(Z.S){case 1:O=void 0,L=0,X={};case 2:if(!(L<5)){Z.D2(4);break}if(!(L>0)){Z.D2(5);break}X.lC=1E3*Math.pow(2,L-1)+Math.random()*1E3;return g.Q(Z,new Promise(function(J){return function(w){g.lX(0,function(){w(void 0)},J.lC)}}(X)),5); case 5:return g.We(Z,7),g.Q(Z,Ha(l,n),9);case 9:return F=Z.W,Z.return(Tz9(F));case 7:O=x=g.D5(Z),x instanceof Error&&g.d2(x);case 8:L++;X={lC:void 0};Z.D2(2);break;case 4:throw O;}})}; ux8=function(l,n){l.S=n}; W_8=function(l){var n,O,L;return g.Y(function(X){if(X.S==1)return g.Q(X,Promise.race([l.S,null]),2);n=X.W;var F=AM(l);l.S=F;(O=n)==null||(L=O.vl)==null||L.dispose();g.Tk(X)})}; r4=function(l,n){function O(){var X;return g.Y(function(F){X=L-Date.now();return X<1E3?g.Q(F,W_8(l),0):(vk(O,0,Math.min(X,6E4)),F.D2(0))})} var L=Date.now()+n;O()}; Eje=function(l,n){return new Promise(function(O){g.lX(0,function(){O(n())},l)})}; g.Nz9=function(l,n){var O;return g.Y(function(L){var X=g.zk("yt.aba.att");return(O=X?X:bv.instance!==void 0?bv.instance.N.bind(bv.instance):null)?L.return(O("ENGAGEMENT_TYPE_PLAYBACK",l,n)):L.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.DUg=function(){var l;return(l=(l=g.zk("yt.aba.att2"))?l:bv.instance!==void 0?bv.instance.L.bind(bv.instance):null)?l():Promise.resolve(!1)}; kn9=function(l,n){var O=g.zk("ytDebugData.callbacks");O||(O={},g.i9("ytDebugData.callbacks",O));if(g.E0("web_dd_iu")||qGq.includes(l))O[l]=n}; Uf=function(){var l=ys9;var n=n===void 0?[]:n;var O=O===void 0?[]:O;n=kUg.apply(null,[yq5.apply(null,g.E(n))].concat(g.E(O)));this.store=QJi(l,void 0,n)}; g.uv=function(l,n,O){for(var L=Object.assign({},l),X=g.P(Object.keys(n)),F=X.next();!F.done;F=X.next()){F=F.value;var x=l[F],Z=n[F];if(Z===void 0)delete L[F];else if(x===void 0)L[F]=Z;else if(Array.isArray(Z)&&Array.isArray(x))L[F]=O?[].concat(g.E(x),g.E(Z)):Z;else if(!Array.isArray(Z)&&g.Kv(Z)&&!Array.isArray(x)&&g.Kv(x))L[F]=g.uv(x,Z,O);else if(typeof Z===typeof x)L[F]=Z;else return n=new g.at("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:F,pfz:x,updateValue:Z}),g.Ir(n), l}return L}; Pa=function(l){var n=this;l=l===void 0?[]:l;this.V4=[];this.LB=this.JP=0;this.yT=void 0;this.totalLength=0;l.forEach(function(O){n.append(O)})}; M57=function(l,n){return l.V4.length===0?!1:(l=l.V4[l.V4.length-1])&&l.buffer===n.buffer&&l.byteOffset+l.length===n.byteOffset}; TA=function(l,n){n=g.P(n.V4);for(var O=n.next();!O.done;O=n.next())l.append(O.value)}; Wa=function(l,n,O){return l.split(n).WH.split(O).v_}; Ef=function(l){l.yT=void 0;l.JP=0;l.LB=0}; NT=function(l,n,O){l.isFocused(n);return n-l.LB+O<=l.V4[l.JP].length}; Qu5=function(l){if(!l.yT){var n=l.V4[l.JP];l.yT=new DataView(n.buffer,n.byteOffset,n.length)}return l.yT}; DP=function(l,n,O){l=l.q0(n===void 0?0:n,O===void 0?-1:O);n=new Uint8Array(l.length);try{n.set(l)}catch(L){for(O=0;O<l.length;O++)n[O]=l[O]}return n}; ey5=function(l,n){l.focus(n);return NT(l,n,4)?Qu5(l).getUint32(n-l.LB):256*(256*(256*l.getUint8(n)+l.getUint8(n+1))+l.getUint8(n+2))+l.getUint8(n+3)}; YGi=function(l){for(var n=new Uint8Array(l.length),O=0;O<l.length;O++)n[O]=l.charCodeAt(O);return n}; ks=function(l){return l.length?qT?qT.decode(l):String.fromCharCode.apply(null,l):""}; g.MT=function(l){if(!l.length)return"";try{if(qT)return qT.decode(l);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(l)}catch(x){}for(var n=0,O=[],L=l.length;n<L;){for(var X=0;X<1024&&n<L;){var F=l[n++];if(F<128)yN[X++]=F;else{if(F<224)F=(F&31)<<6|l[n++]&63;else if(F<240)F=(F&15)<<12|(l[n++]&63)<<6|l[n++]&63;else{if(X+1===1024){--n;break}F=(F&7)<<18|(l[n++]&63)<<12|(l[n++]&63)<<6|l[n++]&63;F-=65536;yN[X++]=55296|F>>10;F=56320|F&1023}yN[X++]=F}}F=String.fromCharCode.apply(String,yN); X<1024&&(F=F.substring(0,X));O.push(F)}return O.join("")}; e9=function(l,n){var O;if((O=QN)==null?0:O.encodeInto)return n=QN.encodeInto(l,n),n.read<l.length?l.length*4:n.written;for(var L=O=0;L<l.length;L++){var X=l.charCodeAt(L);X<128?n[O++]=X:(X<2048?n[O++]=X>>6|192:((X&64512)===55296&&L+1<l.length&&(l.charCodeAt(L+1)&64512)===56320?(X=65536+((X&1023)<<10)+(l.charCodeAt(++L)&1023),n[O++]=X>>18|240,n[O++]=X>>12&63|128):n[O++]=X>>12|224,n[O++]=X>>6&63|128),n[O++]=X&63|128)}return O}; Ys=function(l){if(QN)return QN.encode(l);var n=new Uint8Array(Math.ceil(l.length*1.2)),O=e9(l,n);n.length<O&&(n=new Uint8Array(O),O=e9(l,n));n.length>O&&(n=n.subarray(0,O));return n}; j9=function(l){this.S=l;this.pos=0;this.W=-1}; GA=function(l){var n=l.S.getUint8(l.pos);++l.pos;if(n<128)return n;for(var O=n&127,L=1;n>=128;)n=l.S.getUint8(l.pos),++l.pos,L*=128,O+=(n&127)*L;return O}; mF=function(l,n){var O=l.W;for(l.W=-1;l.S.aS(l.pos,1);){O<0&&(O=GA(l));var L=O>>3,X=O&7;if(L===n)return!0;if(L>n){l.W=O;break}O=-1;switch(X){case 0:GA(l);break;case 1:l.pos+=8;break;case 2:L=GA(l);l.pos+=L;break;case 5:l.pos+=4}}return!1}; Im=function(l,n){if(mF(l,n))return GA(l)}; d4=function(l,n){if(mF(l,n))return!!GA(l)}; $s=function(l,n){if(mF(l,n)){n=GA(l);var O=l.S.q0(l.pos,n);l.pos+=n;return O}}; VN=function(l,n){if(l=$s(l,n))return g.MT(l)}; Ba=function(l,n,O){if(l=$s(l,n))return O(new j9(new Pa([l])))}; ca=function(l,n){for(var O=[];mF(l,n);)O.push(GA(l));return O.length?O:void 0}; iv=function(l,n,O){for(var L=[],X;X=$s(l,n);)L.push(O(new j9(new Pa([X]))));return L.length?L:void 0}; zA=function(l,n){l=l instanceof Uint8Array?new Pa([l]):l;return n(new j9(l))}; ju0=function(l,n,O){if(n&&O&&O.buffer===n.exports.memory.buffer){var L=n.realloc(O.byteOffset,l);if(L)return new Uint8Array(n.exports.memory.buffer,L,l)}l=n?new Uint8Array(n.exports.memory.buffer,n.malloc(l),l):new Uint8Array(l);O&&l.set(O);return l}; Gni=function(l,n){this.DZ=n;this.pos=0;this.W=[];this.S=ju0(l===void 0?4096:l,n);this.view=new DataView(this.S.buffer,this.S.byteOffset,this.S.byteLength)}; S9=function(l,n){n=l.pos+n;if(!(l.S.length>=n)){for(var O=l.S.length*2;O<n;)O*=2;l.S=ju0(O,l.DZ,l.S.subarray(0,l.pos));l.view=new DataView(l.S.buffer,l.S.byteOffset,l.S.byteLength)}}; pu=function(l,n){if(n>268435455){S9(l,4);for(var O=n&1073741823,L=0;L<4;L++)l.view.setUint8(l.pos,O&127|128),O>>=7,l.pos+=1;n=Math.floor(n/268435456)}for(S9(l,4);n>127;)l.view.setUint8(l.pos,n&127|128),n>>=7,l.pos+=1;l.view.setUint8(l.pos,n);l.pos+=1}; sf=function(l,n,O){O!==void 0&&(pu(l,n*8),pu(l,O))}; fu=function(l,n,O){O!==void 0&&sf(l,n,O?1:0)}; Ku=function(l,n,O){O!==void 0&&(pu(l,n*8+2),n=O.length,pu(l,n),S9(l,n),l.S.set(O,l.pos),l.pos+=n)}; am=function(l,n,O){O!==void 0&&(mUi(l,n,Math.ceil(Math.log2(O.length*4+2)/7)),S9(l,O.length*1.2),n=e9(O,l.S.subarray(l.pos)),l.pos+n>l.S.length&&(S9(l,n),n=e9(O,l.S.subarray(l.pos))),l.pos+=n,I0q(l))}; mUi=function(l,n,O){O=O===void 0?2:O;pu(l,n*8+2);l.W.push(l.pos);l.W.push(O);l.pos+=O}; I0q=function(l){for(var n=l.W.pop(),O=l.W.pop(),L=l.pos-O-n;n--;){var X=n?128:0;l.view.setUint8(O++,L&127|X);L>>=7}}; Rm=function(l,n,O,L,X){O&&(mUi(l,n,X===void 0?3:X),L(l,O),I0q(l))}; g.Cu=function(l,n,O){O=new Gni(4096,O);n(O,l);return new Uint8Array(O.S.buffer,O.S.byteOffset,O.pos)}; g.xg=function(l){var n=new j9(new Pa([Wd(decodeURIComponent(l))]));l=VN(n,2);n=Im(n,4);var O=dU9[n];if(typeof O==="undefined")throw l=new g.at("Failed to recognize field number",{name:"EntityKeyHelperError",MiQ:n}),g.Ir(l),l;return{UY:n,entityType:O,entityId:l}}; g.h9=function(l,n){var O=new Gni;Ku(O,2,Ys(l));l=$Uf[n];if(typeof l==="undefined")throw n=new g.at("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:n}),g.Ir(n),n;sf(O,4,l);sf(O,5,1);n=new Uint8Array(O.S.buffer,O.S.byteOffset,O.pos);return encodeURIComponent(g.Pd(n))}; Z4=function(l,n,O,L){if(L===void 0)return L=Object.assign({},l[n]||{}),O=(delete L[O],L),L={},Object.assign({},l,(L[n]=O,L));var X={},F={};return Object.assign({},l,(F[n]=Object.assign({},l[n],(X[O]=L,X)),F))}; V5a=function(l,n,O,L,X){var F=l[n];if(F==null||!F[O])return l;L=g.uv(F[O],L,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};F={};return Object.assign({},l,(F[n]=Object.assign({},l[n],(X[O]=L,X)),F))}; Bzg=function(l,n){l=l===void 0?{}:l;switch(n.type){case "ENTITY_LOADED":return n.payload.reduce(function(L,X){var F,x=(F=X.options)==null?void 0:F.persistenceOption;if(x&&x!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&x!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return L;if(!X.entityKey)return g.Ir(Error("Missing entity key")),L;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return g.Ir(new g.at("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey})),L;var Z=g.NX(X.payload); return Z4(L,Z,X.entityKey,X.payload[Z])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var J=g.xg(X).entityType;Z=Z4(L,J,X);break a}catch(A){if(A instanceof Error){g.Ir(new g.at("Failed to deserialize entity key",{entityKey:X,n_:A.message}));Z=L;break a}throw A;}Z=void 0}return Z}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return g.Ir(new g.at("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey})),L;Z=g.NX(X.payload);var w,H;return V5a(L,Z,X.entityKey, X.payload[Z],(w=X.fieldMask)==null?void 0:(H=w.mergeOptions)==null?void 0:H.repeatedFieldsMergeOption)}return L},l); case "REPLACE_ENTITY":var O=n.payload;return Z4(l,O.entityType,O.key,O.PL);case "REPLACE_ENTITIES":return Object.keys(n.payload).reduce(function(L,X){var F=n.payload[X];return Object.keys(F).reduce(function(x,Z){return Z4(x,X,Z,F[Z])},L)},l); case "UPDATE_ENTITY":return O=n.payload,V5a(l,O.entityType,O.key,O.PL,O.wfo);default:return l}}; J9=function(l,n,O){return l[n]?l[n][O]||null:null}; w3=function(l){return window.Int32Array?new Int32Array(l):Array(l)}; uB=function(l){g.V.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.S=16;if(!cs9){var n,O=new Uint8Array(256),L=new Uint8Array(256);var X=1;for(n=0;n<256;n++)O[X]=n,L[n]=X,X^=X<<1^(X>>7&&283);HT=new Uint8Array(256);A9=w3(256);bB=w3(256);r3=w3(256);UE=w3(256);for(var F=0;F<256;F++){X=F?L[255^O[F]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;HT[F]=X;n=X<<1^(X>>7&&283);var x=n^X;A9[F]=n<<24|X<<16|X<<8|x;bB[F]=x<<24|A9[F]>>>8;r3[F]=X<<24|bB[F]>>>8;UE[F]=X<<24|r3[F]>>>8}cs9=!0}X=w3(44);for(O= 0;O<4;O++)X[O]=l[4*O]<<24|l[4*O+1]<<16|l[4*O+2]<<8|l[4*O+3];for(L=1;O<44;O++)l=X[O-1],O%4||(l=(HT[l>>16&255]^L)<<24|HT[l>>8&255]<<16|HT[l&255]<<8|HT[l>>>24],L=L<<1^(L>>7&&283)),X[O]=X[O-4]^l;this.key=X}; PT=function(l,n){for(var O=0;O<4;O++)l.counter[O]=n[O*4]<<24|n[O*4+1]<<16|n[O*4+2]<<8|n[O*4+3];l.S=16}; iP0=function(l){for(var n=l.key,O=l.counter[0]^n[0],L=l.counter[1]^n[1],X=l.counter[2]^n[2],F=l.counter[3]^n[3],x=3;x>=0&&!(l.counter[x]=-~l.counter[x]);x--);for(var Z,J,w=4;w<40;)x=A9[O>>>24]^bB[L>>16&255]^r3[X>>8&255]^UE[F&255]^n[w++],Z=A9[L>>>24]^bB[X>>16&255]^r3[F>>8&255]^UE[O&255]^n[w++],J=A9[X>>>24]^bB[F>>16&255]^r3[O>>8&255]^UE[L&255]^n[w++],F=A9[F>>>24]^bB[O>>16&255]^r3[L>>8&255]^UE[X&255]^n[w++],O=x,L=Z,X=J;l=l.W;x=n[40];l[0]=HT[O>>>24]^x>>>24;l[1]=HT[L>>16&255]^x>>16&255;l[2]=HT[X>>8&255]^ x>>8&255;l[3]=HT[F&255]^x&255;x=n[41];l[4]=HT[L>>>24]^x>>>24;l[5]=HT[X>>16&255]^x>>16&255;l[6]=HT[F>>8&255]^x>>8&255;l[7]=HT[O&255]^x&255;x=n[42];l[8]=HT[X>>>24]^x>>>24;l[9]=HT[F>>16&255]^x>>16&255;l[10]=HT[O>>8&255]^x>>8&255;l[11]=HT[L&255]^x&255;x=n[43];l[12]=HT[F>>>24]^x>>>24;l[13]=HT[O>>16&255]^x>>16&255;l[14]=HT[L>>8&255]^x>>8&255;l[15]=HT[X&255]^x&255}; EE=function(){if(!T0&&!g.RZ){if(WT)return WT;var l;WT=(l=window.crypto)==null?void 0:l.subtle;var n,O,L;if(((n=WT)==null?0:n.importKey)&&((O=WT)==null?0:O.sign)&&((L=WT)==null?0:L.encrypt))return WT;WT=void 0}}; g.Nm=function(l){this.L=l}; g.D4=function(l){this.W=l}; qm=function(l){this.B=new Uint8Array(64);this.N=new Uint8Array(64);this.L=0;this.V=new Uint8Array(64);this.W=0;this.B.set(l);this.N.set(l);for(l=0;l<64;l++)this.B[l]^=92,this.N[l]^=54;this.reset()}; zy5=function(l,n,O){for(var L=l.T,X=l.S[0],F=l.S[1],x=l.S[2],Z=l.S[3],J=l.S[4],w=l.S[5],H=l.S[6],A=l.S[7],b,r,U,W=0;W<64;)W<16?(L[W]=U=n[O]<<24|n[O+1]<<16|n[O+2]<<8|n[O+3],O+=4):(b=L[W-2],r=L[W-15],U=L[W-7]+L[W-16]+((b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),L[W]=U),b=A+kg[W]+U+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&w^~J&H),r=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&F^X&x^F&x),A=b+r,Z+=b,W++,W<16?(L[W]=U=n[O]<<24|n[O+1]<<16|n[O+2]<<8|n[O+3],O+=4):(b= L[W-2],r=L[W-15],U=L[W-7]+L[W-16]+((b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),L[W]=U),b=H+kg[W]+U+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&J^~Z&w),r=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&X^A&F^X&F),H=b+r,x+=b,W++,W<16?(L[W]=U=n[O]<<24|n[O+1]<<16|n[O+2]<<8|n[O+3],O+=4):(b=L[W-2],r=L[W-15],U=L[W-7]+L[W-16]+((b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),L[W]=U),b=w+kg[W]+U+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&Z^ ~x&J),r=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&A^H&X^A&X),w=b+r,F+=b,W++,W<16?(L[W]=U=n[O]<<24|n[O+1]<<16|n[O+2]<<8|n[O+3],O+=4):(b=L[W-2],r=L[W-15],U=L[W-7]+L[W-16]+((b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),L[W]=U),b=J+kg[W]+U+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&x^~F&Z),r=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&H^w&A^H&A),U=A,A=Z,Z=U,U=H,H=x,x=U,U=w,w=F,F=U,J=X+b,X=b+r,W++;l.S[0]=X+l.S[0]|0;l.S[1]=F+l.S[1]|0;l.S[2]=x+l.S[2]|0;l.S[3]= Z+l.S[3]|0;l.S[4]=J+l.S[4]|0;l.S[5]=w+l.S[5]|0;l.S[6]=H+l.S[6]|0;l.S[7]=A+l.S[7]|0}; pVf=function(l){var n=new Uint8Array(32),O=64-l.W;l.W>55&&(O+=64);var L=new Uint8Array(O);L[0]=128;for(var X=l.L*8,F=1;F<9;F++){var x=X%256;L[O-F]=x;X=(X-x)/256}l.update(L);for(O=0;O<8;O++)n[O*4]=l.S[O]>>>24,n[O*4+1]=l.S[O]>>>16&255,n[O*4+2]=l.S[O]>>>8&255,n[O*4+3]=l.S[O]&255;SG5(l);return n}; SG5=function(l){l.S=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];l.T=[];l.T.length=64;l.L=0;l.W=0}; su8=function(l){this.S=l}; f0f=function(l,n,O){l=new qm(l.S);l.update(n);l.update(O);n=pVf(l);l.update(l.B);l.update(n);n=pVf(l);l.reset();return n}; K_i=function(l){this.W=l}; a0i=function(l,n,O,L){var X,F,x;return g.Y(function(Z){switch(Z.S){case 1:if(l.S){Z.D2(2);break}return g.Q(Z,L.importKey("raw",l.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:l.S=Z.W;case 2:return X=new Uint8Array(n.length+O.length),X.set(n),X.set(O,n.length),F={name:"HMAC",hash:"SHA-256"},g.Q(Z,L.sign(F,l.S,X),4);case 4:return x=Z.W,Z.return(new Uint8Array(x))}})}; Ryg=function(l,n,O){l.N||(l.N=new su8(l.W));return f0f(l.N,n,O)}; Cui=function(l,n,O){var L,X;return g.Y(function(F){if(F.S==1){L=EE();if(!L)return F.return(Ryg(l,n,O));g.We(F,3);return g.Q(F,a0i(l,n,O,L),5)}if(F.S!=3)return F.return(F.W);X=g.D5(F);g.d2(X);T0=!0;return F.return(Ryg(l,n,O))})}; vji=function(l){for(var n="",O=0;O<l.length;O++){var L=l[O];if(O===0)L="M "+L.x.toFixed(1)+","+L.y.toFixed(1);else{var X=t57(l[O-1],l[O-2],L),F=t57(L,l[O-1],l[O+1],!0);L=" C "+(X.x.toFixed(1)+","+X.y.toFixed(1)+" "+F.x.toFixed(1)+","+F.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))}n+=L}return n}; t57=function(l,n,O,L){L=L===void 0?!1:L;n=new lx5(n||l,O||l);return{x:l.x+((L===void 0?0:L)?n.S*-1:n.S)*.2,y:l.y+((L===void 0?0:L)?n.W*-1:n.W)*.2}}; lx5=function(l,n){this.W=this.S=0;this.S=n.x-l.x;this.W=n.y-l.y}; gmi=function(l,n){var O,L,X;return g.Y(function(F){if(F.S==1)return O={context:g.vt(),settingItemIds:n},L=g.Og(nma),g.Q(F,g.Cp(l,O,L),2);X=F.W;return!X||X.errorMetadata?(OA5("GetSettingValuesRequest",X),F.return(void 0)):F.return(X.settingValues)})}; Xvf=function(l,n,O){var L,X,F;g.Y(function(x){if(x.S==1)return L={context:g.vt(),settingItemId:n,newValue:O},X=g.Og(LG5),g.Q(x,g.Cp(l,L,X),2);F=x.W;if(!F||F.errorMetadata)return OA5("SetSettingRequest",F),x.return(void 0);g.Tk(x)})}; OA5=function(l,n){n?n.errorMetadata&&g.d2(new g.at(l+" failed with status "+n.errorMetadata.status)):g.d2(new g.at(l+" failed with empty response"))}; yU=function(l,n,O){if(!n)return l.length>=1?l[l.length-1]:null;for(var L=g.P(l),X=L.next();!X.done;X=L.next())if(X=X.value,X.width&&X.height&&(O&&X.width>=n||!O&&X.height>=n))return X;for(n=l.length-1;n>=0;n--)if(O&&l[n].width||!O&&l[n].height)return l[n];return l[0]}; Mm=function(){this.state=1;this.vl=null;this.Vf=void 0}; FG9=function(l,n,O,L,X,F){var x=x===void 0?"trayride":x;O?(l.OC(2),g.Z0(O,function(){if(window[x])omf(l,L,x,X);else{l.OC(3);var Z=Ncf(O),J=document.getElementById(Z);J&&(WAk(Z),J.parentNode.removeChild(J));g.d2(new g.at("Unable to load Botguard","from "+O))}},F)):n?(F=g.nf("SCRIPT"),n instanceof c3?(F.textContent=i_(n),zl(F)):F.textContent=n,F.nonce=B3(document),document.head.appendChild(F),document.head.removeChild(F),window[x]?omf(l,L,x,X):(l.OC(4),g.d2(new g.at("Unable to load Botguard from JS")))): g.d2(new g.at("Unable to load VM; no url or JS provided"))}; omf=function(l,n,O,L){l.OC(5);var X=!!l.Vf&&xR0.includes(g.VM(l.Vf)||"");try{var F=new u2({program:n,globalName:O,Gk:{disable:!g.E0("att_web_record_metrics")||!g.E0("att_skip_metrics_for_cookieless_domains_ks")&&X,IN:"aGIf"}});F.l1.then(function(){l.OC(6);L&&L(n)}); l.W4(F)}catch(x){l.OC(7),x instanceof Error&&g.d2(x)}}; QU=function(){var l=g.zk("yt.abuse.playerAttLoader");return l&&["bgvma","bgvmb","bgvmc"].every(function(n){return n in l})?l:null}; eh=function(){Mm.apply(this,arguments)}; Yg=function(){}; hlg=function(l,n,O){for(var L=!1,X=g.P(l.mf.entries()),F=X.next();!F.done;F=X.next())F=g.P(F.value).next().value,F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F.jp==="core"&&(L=!0);if(L){a:if(!O){l=g.P(l.mf.entries());for(O=l.next();!O.done;O=l.next())if(L=g.P(O.value),O=L.next().value,L=L.next().value,O.slotType==="SLOT_TYPE_IN_PLAYER"&&O.jp==="core"){O=L.layoutId;break a}O=void 0}O?n.Rm(O):AV("No triggering layout ID available when attempting to mute.")}}; jh=function(l,n){this.pZ=l;this.SI=n}; G0=function(){}; mZ=function(){}; Jri=function(l){g.V.call(this);var n=this;this.fp=l;this.S=new Map;II(this,"commandExecutorCommand",function(O,L,X){ZAa(n,O.commands,L,X)}); II(this,"clickTrackingParams",function(){})}; wva=function(l,n){II(l,n.jN(),function(O,L,X){n.pP(O,L,X)})}; II=function(l,n,O){l.JG();l.S.get(n)&&g.Ir(Error("Extension name "+n+" already registered"));l.S.set(n,O)}; ZAa=function(l,n,O,L){n=n===void 0?[]:n;l.JG();var X=[],F=[];n=g.P(n);for(var x=n.next();!x.done;x=n.next())x=x.value,g.z(x,HAv)||g.z(x,Ark)?X.push(x):F.push(x);X=g.P(X);for(n=X.next();!n.done;n=X.next())d3(l,n.value,O,L);F=g.P(F);for(X=F.next();!X.done;X=F.next())d3(l,X.value,O,L)}; d3=function(l,n,O,L){l.JG();n.loggingUrls&&bA8(l,"loggingUrls",n.loggingUrls,O,L);n=g.P(Object.entries(n));for(var X=n.next();!X.done;X=n.next()){var F=g.P(X.value);X=F.next().value;F=F.next().value;X==="openPopupAction"?l.fp.get().qs("innertubeCommand",{openPopupAction:F}):X==="confirmDialogEndpoint"?l.fp.get().qs("innertubeCommand",{confirmDialogEndpoint:F}):rre.hasOwnProperty(X)||bA8(l,X,F,O,L)}}; bA8=function(l,n,O,L,X){if((l=l.S.get(n))&&typeof l==="function")try{l(O,L,X)}catch(F){g.Ir(F)}else n=new g.at("Unhandled field",n),g.d2(n)}; $g=function(l,n,O){this.Ds=l;this.S=n;this.qQ=O}; VU=function(l){this.value=l}; BT=function(l){this.value=l}; cT=function(l){this.value=l}; iB=function(l){this.value=l}; z0=function(l){this.value=l}; Sh=function(l){this.value=l}; p0=function(l){this.value=l}; sE=function(){VU.apply(this,arguments)}; f0=function(l){this.value=l}; K0=function(l){this.value=l}; aI=function(l){this.value=l}; RI=function(l){this.value=l}; C0=function(l){this.value=l}; t9=function(l){this.value=l}; vT=function(l){this.value=l}; lJ=function(l){this.value=l}; nb=function(l){this.value=l}; OP=function(l){this.value=l}; g$=function(){VU.apply(this,arguments)}; Lb=function(l){this.value=l}; Xc=function(l){this.value=l}; oz=function(l){this.value=l}; Fc=function(l){this.value=l}; xr=function(l){this.value=l}; h8=function(l){this.value=l}; Za=function(l){this.value=l}; J8=function(l){this.value=l}; w$=function(l){this.value=l}; HC=function(l){this.value=l}; A8=function(l){this.value=l}; bJ=function(l){this.value=l}; r$=function(l){this.value=l}; UP=function(l){this.value=l}; uJ=function(l){this.value=l}; PC=function(l){this.value=l}; TE=function(l){this.value=l}; WC=function(l){this.value=l}; EP=function(l){this.value=l}; N_=function(l){this.value=l}; Da=function(l){this.value=l}; q_=function(l){this.value=l}; kr=function(l){this.value=l}; yi=function(l){this.value=l}; M_=function(l){this.value=l}; Qi=function(l){this.value=l}; eO=function(l){this.value=l}; Yr=function(l){this.value=l}; jO=function(l){this.value=l}; GE=function(l){this.value=l}; mV=function(l){this.value=l}; Iz=function(l){this.value=l}; d$=function(l){this.value=l}; $r=function(l){this.value=l}; Vi=function(l){this.value=l}; BC=function(l){this.value=l}; cC=function(l){this.value=l}; iJ=function(l){this.value=l}; zE=function(){VU.apply(this,arguments)}; SO=function(l){this.value=l}; pb=function(){VU.apply(this,arguments)}; sP=function(){VU.apply(this,arguments)}; fb=function(){VU.apply(this,arguments)}; Kb=function(){VU.apply(this,arguments)}; az=function(){VU.apply(this,arguments)}; Rz=function(l){this.value=l}; Cb=function(l){this.value=l}; t8=function(l){this.value=l}; vC=function(l){this.value=l}; li=function(l){this.value=l}; Ou=function(l,n,O){if(O&&!O.includes(l.layoutType))return!1;n=g.P(n);for(O=n.next();!O.done;O=n.next())if(!nL(l.clientMetadata,O.value))return!1;return!0}; gg=function(){return""}; URe=function(l,n){switch(l){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 n(l),8}}; LL=function(l,n,O,L){L=L===void 0?!1:L;u1.call(this,l);this.Hp=O;this.fg=L;this.args=[];n&&this.args.push(n)}; C=function(l,n,O,L){L=L===void 0?!1:L;u1.call(this,l);this.Hp=O;this.fg=L;this.args=[];n&&this.args.push(n)}; XY=function(l){var n=new Map;l.forEach(function(O){n.set(O.getType(),O)}); this.S=n}; nL=function(l,n){return l.S.has(n)}; on=function(l,n){l=l.S.get(n);if(l!==void 0)return l.get()}; FY=function(l){return Array.from(l.S.keys())}; x_=function(l,n,O){if(O&&O!==l.slotType)return!1;n=g.P(n);for(O=n.next();!O.done;O=n.next())if(!nL(l.clientMetadata,O.value))return!1;return!0}; Plk=function(l){var n;return((n=uvf.get(l))==null?void 0:n.DR)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Z9=function(l,n){var O={type:n.slotType,controlFlowManagerLayer:T29.get(n.jp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n.slotEntryTrigger&&(O.entryTriggerType=n.slotEntryTrigger.triggerType);n.slotPhysicalPosition!==1&&(O.slotPhysicalPosition=n.slotPhysicalPosition);if(l){O.debugData={slotId:n.slotId};if(l=n.slotEntryTrigger)O.debugData.slotEntryTriggerData=hk(l);l=n.slotFulfillmentTriggers;O.debugData.fulfillmentTriggerData=[];l=g.P(l);for(var L=l.next();!L.done;L=l.next())O.debugData.fulfillmentTriggerData.push(hk(L.value)); n=n.slotExpirationTriggers;O.debugData.expirationTriggerData=[];n=g.P(n);for(l=n.next();!l.done;l=n.next())O.debugData.expirationTriggerData.push(hk(l.value))}return O}; WGg=function(l,n){var O={type:n.layoutType,controlFlowManagerLayer:T29.get(n.jp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l&&(O.debugData={layoutId:n.layoutId});return O}; hk=function(l,n){var O={type:l.triggerType};n!=null&&(O.category=n);l.triggeringSlotId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedSlotId=l.triggeringSlotId);l.triggeringLayoutId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedLayoutId=l.triggeringLayoutId);return O}; Em9=function(l,n,O,L){n={opportunityType:n};l&&(L||O)&&(L=g.M9(L||[],function(X){return Z9(l,X)}),n.debugData=Object.assign({},O&&O.length>0?{associatedSlotId:O}:{},L.length>0?{slots:L}:{})); return n}; wg=function(l,n){return function(O){return N20(Jk(l),n.slotId,n.slotType,n.slotPhysicalPosition,n.jp,n.slotEntryTrigger,n.slotFulfillmentTriggers,n.slotExpirationTriggers,O.layoutId,O.layoutType,O.jp)}}; N20=function(l,n,O,L,X,F,x,Z,J,w,H){return{adClientDataEntry:{slotData:Z9(l,{slotId:n,slotType:O,slotPhysicalPosition:L,jp:X,slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:Z,clientMetadata:new XY([])}),layoutData:WGg(l,{layoutId:J,layoutType:w,jp:H,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],vj:new Map,clientMetadata:new XY([]),yp:{}})}}}; Ak=function(l){this.Rz=l;l=Math.random();var n=this.Rz.get();n=g.HQ(n.C.j().experiments,"html5_debug_data_log_probability");n=Number.isFinite(n)&&n>=0&&n<=1?n:0;this.S=l<n}; Jk=function(l){return l.S||l.Rz.get().C.j().J("html5_force_debug_data_for_client_tmp_logs")}; bi=function(l,n,O,L){g.V.call(this);this.W=n;this.Pj=O;this.Rz=L;this.S=l(this,this,this,this,this);g.c(this,this.S);l=g.P(n);for(n=l.next();!n.done;n=l.next())g.c(this,n.value)}; rg=function(l,n){l.W.add(n)}; Uu=function(l,n){l.W.delete(n)}; PQ=function(l,n,O,L){AV(O,n,void 0,void 0,O.fg);O.Hp?l.Pj.rJ(L,O.Hp,n):AV("adsClientErrorMessage is missing.",n);ui(l,n,!0)}; q$i=function(l,n,O){if(Tg(l.S,n))if(WQ(l.S,n).L=O?"filled":"not_filled",O===null){l.Pj.N3("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",n);O=g.P(l.W);for(var L=O.next();!L.done;L=O.next())L.value.iU(n);ui(l,n,!1)}else{l.Pj.N3("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",n,O);l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",n,O);var X,F=(X=O.Wd)!=null?X:on(O.clientMetadata,"metadata_type_sub_layouts");if(F)for(X=g.P(F),F=X.next();!F.done;F=X.next())l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", n,F.value);X=g.P(l.W);for(F=X.next();!F.done;F=X.next())F.value.X7(n);if(Tg(l.S,n))if(WQ(l.S,n).B)ui(l,n,!1);else{l.Pj.N3("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",n,O);try{L=l.S;if(!WQ(L,n))throw new LL("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!L.PG.Ws.get(n.slotType))throw new LL("No LayoutRenderingAdapterFactory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(O.layoutExitNormalTriggers.length==0&&O.layoutExitSkipTriggers.length==0&&O.layoutExitMuteTriggers.length==0&&O.layoutExitUserInputSubmittedTriggers.length==0&&O.Pk.length==0)throw new LL("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Eu(L,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",O.layoutExitNormalTriggers);Eu(L,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",O.layoutExitSkipTriggers);Eu(L,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",O.layoutExitMuteTriggers); Eu(L,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",O.layoutExitUserInputSubmittedTriggers);Eu(L,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",O.Pk)}catch(w){w instanceof LL?l.rB(n,O,w,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):l.rB(n,O,new LL("Unexpected error: "+w,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ui(l,n,!0);return}WQ(l.S,n).V=!0;try{var x=l.S,Z=WQ(x,n),J=x.PG.Ws.get(n.slotType).get().build(x.L,x.W,n,O);J.init();Z.layout= O;if(Z.N)throw new LL("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");Z.N=J;Np(x,Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",O.layoutExitNormalTriggers);Np(x,Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",O.layoutExitSkipTriggers);Np(x,Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",O.layoutExitMuteTriggers);Np(x,Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",O.layoutExitUserInputSubmittedTriggers);Np(x,Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", O.Pk)}catch(w){D9(l,n);w instanceof LL?l.rB(n,O,w,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):l.rB(n,O,new LL("Unexpected error: "+w,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ui(l,n,!0);return}l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",n,O);L=g.P(l.W);for(x=L.next();!x.done;x=L.next())x.value.er(n,O);D9(l,n);DRe(l,n)}else l=l.Rz.get(),g.qp(l.C.j())||k_(l.C.j())||g.yw(l.C.j())?l=!0:(AV("Composite VOD on legacy path."),l=!1),l&&AV("slot is unscheduled after been fulfilled.", n,O)}}; ks7=function(l,n,O){n.jp!=="core"&&l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",n,O,void 0)}; yra=function(l,n,O){l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",n,O,void 0);l=g.P(l.W);for(var L=l.next();!L.done;L=l.next())L.value.er(n,O)}; Mr7=function(l,n,O){l=g.P(l.W);for(var L=l.next();!L.done;L=l.next())L.value.Ec(n,O)}; Mp=function(l,n,O){l.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",n,O,void 0);l=g.P(l.W);for(var L=l.next();!L.done;L=l.next())L.value.YP(n,O)}; Qw=function(l,n,O,L){l.Pj.N3(Plk(L),n,O,void 0);l=g.P(l.W);for(var X=l.next();!X.done;X=l.next())X.value.Hk(n,O,L)}; D9=function(l,n){if(Tg(l.S,n)){WQ(l.S,n).V=!1;var O=eX;n=WQ(l.S,n);var L=[].concat(g.E(n.G));C99(n.G);O(l,L)}}; eX=function(l,n){n.sort(function(F,x){function Z(J){AV("TriggerCategoryOrder enum does not contain trigger category: "+J)} return F.category===x.category?F.trigger.triggerId.localeCompare(x.trigger.triggerId):URe(F.category,Z)-URe(x.category,Z)}); var O=new Map;n=g.P(n);for(var L=n.next();!L.done;L=n.next())if(L=L.value,Tg(l.S,L.slot))if(WQ(l.S,L.slot).V)WQ(l.S,L.slot).G.push(L);else{l.Pj.Qy("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",L.slot,L,L.layout);var X=O.get(L.category);X||(X=[]);X.push(L);O.set(L.category,X)}n=g.P(Qra);for(L=n.next();!L.done;L=n.next())X=g.P(L.value),L=X.next().value,X=X.next().value,(L=O.get(L))&&el5(l,L,X);(n=O.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Y$8(l,n);(n=O.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&jri(l, n);(O=O.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&Gsq(l,O)}; el5=function(l,n,O){n=g.P(n);for(var L=n.next();!L.done;L=n.next())L=L.value,L.layout&&Y_(l.S,L.slot)&&mR9(l,L.slot,L.layout,O)}; Y$8=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next())ui(l,O.value.slot,!1)}; jri=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;a:switch(WQ(l.S,O.slot).L){case "not_filled":var L=!0;break a;default:L=!1}L&&(l.Pj.e5("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",O.slot),l.S.aT(O.slot))}}; Gsq=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;l.Pj.e5("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",O.slot);for(var L=g.P(l.W),X=L.next();!X.done;X=L.next())X.value.t7(O.slot);try{var F=l.S,x=O.slot,Z=WQ(F,x);if(!Z)throw new C("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!Z.W)throw new C("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(Z.S!=="scheduled")throw new C("Tried to enter a slot from stage: "+ Z.S,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(jX(Z))throw new C("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var J=g.P(Gg(F,x.slotType+"_"+x.slotPhysicalPosition).values()),w=J.next();!w.done;w=J.next()){var H=w.value;if(Z!==H&&jX(H))throw new C("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:H.S},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(A){A instanceof C&&A.Hp?(l.Pj.rJ("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED", A.Hp,O.slot),AV(A,O.slot,mo(l.S,O.slot),void 0,A.fg)):(l.Pj.rJ("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",O.slot),AV(A,O.slot));ui(l,O.slot,!0);continue}O=WQ(l.S,O.slot);O.S!=="scheduled"&&In(O.slot,O.S,"enterSlot");O.S="enter_requested";O.W.vc()}}; DRe=function(l,n){if(Tg(l.S,n)&&jX(WQ(l.S,n))&&mo(l.S,n)&&!Y_(l.S,n)){var O;l.Pj.N3("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",n,(O=mo(l.S,n))!=null?O:void 0);l=WQ(l.S,n);l.S!=="entered"&&In(l.slot,l.S,"enterLayoutForSlot");l.S="rendering";l.N.startRendering(l.layout)}}; mR9=function(l,n,O,L){if(Tg(l.S,n)){var X=l.Pj,F=X.N3,x;var Z=((x=uvf.get(L))==null?void 0:x.x_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";F.call(X,Z,n,O);l=WQ(l.S,n);l.S!=="rendering"&&In(l.slot,l.S,"exitLayout");l.S="rendering_stop_requested";l.N.oI(O,L)}}; ui=function(l,n,O){if(Tg(l.S,n)){a:switch(WQ(l.S,n).S){case "exit_requested":var L=!0;break a;default:L=!1}if(!L)a:switch(WQ(l.S,n).S){case "rendering_stop_requested":L=!0;break a;default:L=!1}if(L&&(WQ(l.S,n).B=!0,!O))return;if(jX(WQ(l.S,n)))WQ(l.S,n).B=!0,Ixi(l,n,O);else{a:switch(WQ(l.S,n).L){case "fill_requested":O=!0;break a;default:O=!1}if(O)WQ(l.S,n).B=!0,Tg(l.S,n)&&(l.Pj.e5("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",n),n=WQ(l.S,n),n.L="fill_cancel_requested",n.T.s5());else{O= mo(l.S,n);(L=l.Rz.get().C.j().experiments.MQ("h5_enable_layout_unscheduling_events"))&&(O?l.Ec(n,O):AV(Error("Layout is null for LayoutUnscheduled event."),n,O,void 0,!1));l.Pj.e5("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",n);var X=WQ(l.S,n),F=n.slotEntryTrigger,x=X.Q5.get(F.triggerId);x&&(x.ZN(F),X.Q5.delete(F.triggerId));F=g.P(n.slotFulfillmentTriggers);for(x=F.next();!x.done;x=F.next()){x=x.value;var Z=X.Wm.get(x.triggerId);Z&&(Z.ZN(x),X.Wm.delete(x.triggerId))}F=g.P(n.slotExpirationTriggers); for(x=F.next();!x.done;x=F.next())if(x=x.value,Z=X.Y.get(x.triggerId))Z.ZN(x),X.Y.delete(x.triggerId);X.layout!=null&&(F=X.layout,dg(X,F.layoutExitNormalTriggers),dg(X,F.layoutExitSkipTriggers),dg(X,F.layoutExitMuteTriggers),dg(X,F.layoutExitUserInputSubmittedTriggers),dg(X,F.Pk));X.T=void 0;X.W!=null&&(X.W.release(),X.W=void 0);X.N!=null&&(X.N.release(),X.N=void 0);X=l.S;WQ(X,n)&&(X=Gg(X,n.slotType+"_"+n.slotPhysicalPosition))&&X.delete(n.slotId);l.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", n);l=g.P(l.W);for(X=l.next();!X.done;X=l.next())X=X.value,X.yf(n),O&&!L&&X.Ec(n,O)}}}}; Ixi=function(l,n,O){if(Tg(l.S,n)&&jX(WQ(l.S,n))){var L=mo(l.S,n);if(L&&Y_(l.S,n))mR9(l,n,L,O?"error":"abandoned");else{l.Pj.e5("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",n);try{var X=WQ(l.S,n);if(!X)throw new C("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");X.S!=="enter_requested"&&X.S!=="entered"&&X.S!=="rendering"&&In(X.slot,X.S,"exitSlot");X.S="exit_requested";if(X.W===void 0)throw X.S="scheduled",new C("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");X.W.Ry()}catch(F){F instanceof C&&F.Hp?(l.Pj.rJ("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",F.Hp,n),AV(F,n,void 0,void 0,F.fg)):(l.Pj.rJ("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n),AV(F,n))}}}}; dR5=function(l){this.slot=l;this.Q5=new Map;this.Wm=new Map;this.Y=new Map;this.NQ=new Map;this.N=this.layout=this.W=this.T=void 0;this.V=this.B=!1;this.G=[];this.S="not_scheduled";this.L="not_filled"}; jX=function(l){return l.S==="enter_requested"||l.isActive()}; $_=function(l,n,O,L,X,F){g.V.call(this);this.PG=l;this.N=n;this.B=O;this.L=L;this.W=X;this.Rz=F;this.S=new Map}; Gg=function(l,n){return(l=l.S.get(n))?l:new Map}; WQ=function(l,n){return Gg(l,n.slotType+"_"+n.slotPhysicalPosition).get(n.slotId)}; $Rg=function(l){var n=[];l.S.forEach(function(O){O=g.P(O.values());for(var L=O.next();!L.done;L=O.next())n.push(L.value.slot)}); return n}; Tg=function(l,n){return WQ(l,n)!=null}; Y_=function(l,n){l=WQ(l,n);if(n=l.layout!=null)a:switch(l.S){case "rendering":case "rendering_stop_requested":n=!0;break a;default:n=!1}return n}; mo=function(l,n){(l=WQ(l,n))?l.layout!=null&&!l.layout&&AV("Unexpected empty layout",n):AV("Unexpected undefined slotState",n);return(l==null?void 0:l.layout)||null}; Vw=function(l,n,O){if(O.length==0)throw new C("No "+Vr0.get(n)+" triggers found for slot.",void 0,B25(n));O=g.P(O);for(var L=O.next();!L.done;L=O.next())if(L=L.value,!l.PG.o4.get(L.triggerType))throw new C("No trigger adapter registered for "+n+" trigger of type: "+L.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; B25=function(l){switch(l){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; Eu=function(l,n,O){O=g.P(O);for(var L=O.next();!L.done;L=O.next())if(L=L.value,!l.PG.o4.get(L.triggerType))throw new LL("No trigger adapter registered for "+Vr0.get(n)+" trigger of type: "+L.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; Np=function(l,n,O,L){L=g.P(L);for(var X=L.next();!X.done;X=L.next()){X=X.value;var F=l.PG.o4.get(X.triggerType);F.bV(O,X,n.slot,n.layout?n.layout:null);n.NQ.set(X.triggerId,F)}}; dg=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=l.NQ.get(O.triggerId);L&&(L.ZN(O),l.NQ.delete(O.triggerId))}}; In=function(l,n,O){AV("Slot stage was "+n+" when calling method "+O,l)}; cra=function(l){return BQ(l.hK).concat(BQ(l.o4)).concat(BQ(l.tE)).concat(BQ(l.jb)).concat(BQ(l.Ws))}; BQ=function(l){var n=[];l=g.P(l.values());for(var O=l.next();!O.done;O=l.next())O=O.value,O.dZ&&n.push(O);return n}; cQ=function(l){g.V.call(this);var n=this;this.S=l;this.instance=null;this.addOnDisposeCallback(function(){g.h0(n.instance);n.instance=null})}; ii=function(l){return new cQ(l)}; zg=function(l){g.V.call(this);this.S=l;this.W=iAi(this)}; iAi=function(l){var n=new bi(function(O,L,X,F){return new $_(l.S.PG,O,L,X,F,l.S.Rz)},new Set(cra(l.S.PG).concat(l.S.listeners)),l.S.Pj,l.S.Rz); g.c(l,n);return n}; SX=function(l){this.S=l}; pL=function(l,n,O){ZAa(l.S(),n,O)}; fL=function(l,n,O,L){(l=l.S())||AV("Could not initiate a command router instance.");d3(l,n,O,L)}; KL=function(){this.listeners=new Set}; an=function(l){this.Rz=l}; zl9=function(l,n){var O=n.bgp&&n.bgub,L=!!n.upb;n.siub&&n.scs&&(O||L)&&(L&&Rn(l.Rz.get(),"html5_export_sodar_snapshot")?et().then(function(X){X=X.snapshot.bind(X);g.i9("yt.abuse.playerAttLoaderRun",X);Cze(n.siub,n.scs,n.bgub,n.bgp,n.upb)}):Cze(n.siub,n.scs,n.bgub,n.bgp,n.upb))}; S$a=function(l,n,O,L,X){this.callback=l;this.slot=n;this.W=O;this.m1=L;this.Rz=X;this.S=null}; sri=function(l,n,O,L){l.S&&AV("Currently active request ongoing for slot. This should never happen",l.slot);l.S=n();l.S.then(function(X){l.S=null;L&&L(X);var F=X.sH?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",x=l.W.get(),Z=l.slot.slotId,J=wg(l.m1.get(),{slotId:l.slot.slotId,slotType:l.slot.slotType,slotPhysicalPosition:l.slot.slotPhysicalPosition,jp:l.slot.jp,slotEntryTrigger:l.slot.slotEntryTrigger,slotFulfillmentTriggers:l.slot.slotFulfillmentTriggers,slotExpirationTriggers:l.slot.slotExpirationTriggers}), w=CL(x.W.get(),F,Z),H={layoutId:w,layoutType:F,jp:"core"};X={layoutId:w,layoutType:F,vj:new Map,layoutExitNormalTriggers:[new pv7(x.S,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new Vi(X)]),yp:J(H)};q$i(l.callback,l.slot,X)},function(X){l.S=null; O&&O();X instanceof Nv||PQ(l.callback,l.slot,new C(X,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; fxa=function(l){if(l.S==null)l.callback.Aq(l.slot);else try{l.S.cancel(),l.S=null,l.callback.Aq(l.slot)}catch(n){l.S=null,PQ(l.callback,l.slot,new C(n,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; tk=function(l,n,O,L){!l&&(O===void 0?0:O)&&g.d2(Error("Player URL validator detects invalid url. "+(L===void 0?"":L)+": "+n));return l}; vQ=function(l,n){return n&&n.test(l)?!0:!1}; lN=function(l){return(l=KGv&&KGv.exec(l))?l[0]:""}; n$=function(l){var n=n===void 0?!1:n;return tk(vQ(l,ax5),l,n,"Trusted Stream URL")}; g.OT=function(l){var n=n===void 0?!1:n;return tk(vQ(l,Rlg),l,n,"Trusted Image URL")}; tr8=function(l){var n=n===void 0?!1:n;return tk(vQ(l,Cl5),l,n,"Trusted Promoted Video Domain URL")}; lT5=function(l){var n=n===void 0?!1:n;return tk(vQ(l,vmg),l,n,"Drm Licensor URL")}; OI5=function(l,n){n=n===void 0?!1:n;return tk(vQ(l,nRv),l,n,"Captions URL")}; gRk=function(l){l=new g.wM(l);g.H1(l,document.location.protocol);g.An(l,document.location.hostname);document.location.port&&g.bs(l,document.location.port);return l.toString()}; go=function(l){l=new g.wM(l);g.H1(l,document.location.protocol);return l.toString()}; g.X4=function(l,n,O){O=O===void 0?{}:O;this.start=l;this.end=n;this.active=!0;this.color="";this.KZ=0;this.W=LOq++;this.id=O.id||"";this.priority=O.priority||9;this.visible=O.visible||!1;this.style=O.style||L$.AD_MARKER;this.namespace=O.namespace||"";if(l=O.color)l=l.toString(16),this.color="#"+Array(7-l.length).join("0")+l;this.tooltip=O.tooltip;this.icons=O.icons?O.icons.filter(function(L){return g.Qv(L.thumbnails,function(X){return g.OT(X.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Xr8=function(l){return l===-0x8000000000000?"BEFORE_MEDIA_START":l===0?"MEDIA_START":l===0x7ffffffffffff?"MEDIA_END":l===0x8000000000000?"AFTER_MEDIA_END":l.toString()}; oRv=function(l,n){switch(l.style){case L$.CHAPTER_MARKER:return n?8:5;case L$.AD_MARKER:return 6;case L$.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.o_=function(l,n){return l.start-n.start||l.priority-n.priority||l.W-n.W}; g.F4=function(l){return"crn_"+l}; g.xx=function(l){return"crx_"+l}; hJ=function(l,n,O,L,X,F,x,Z,J){this.slot=n;this.W=O;this.qQ=x;this.Bm=Z;this.Cp=J;this.S=new S$a(l,n,L,X,F)}; FOv=function(l){var n;(n=l.Cp)==null||n.get().Bs(on(l.slot.clientMetadata,"metadata_type_cue_point").identifier)}; Z8=function(l,n,O,L,X,F){this.slot=n;this.S=O;this.W=new S$a(l,n,L,X,F)}; JJ=function(l,n){this.callback=l;this.slot=n}; wo=function(l,n){return x_(l,n.Co,n.slotType)?!0:!1}; HZ=function(){}; AJ=function(l,n,O,L,X,F,x){this.S=l;this.W=n;this.m1=O;this.Rz=L;this.qQ=X;this.Bm=F;this.Cp=x}; bN=function(){}; x6i=function(l,n,O,L,X,F){this.callback=l;this.slot=n;this.layout=O;this.N=L;this.S=X;this.W=F}; ZIe=function(l){if(on(l.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var n=h35(l,l.slot);ro(l.S.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[n]})}}; Jji=function(l){if(on(l.slot.clientMetadata,"metadata_type_prefetch_metadata")){var n=h35(l,l.slot);ro(l.S.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[n]})}}; h35=function(l,n){var O=UT(l.W.get(),l.slot.slotType),L=Object,X=L.assign;l=l.slot;if(n.slotEntryTrigger){var F=n.slotId;var x=n.slotEntryTrigger;F=x.triggeringSlotId!=null&&x.triggeringSlotId===F?x.clone(O):x}else F=void 0;return X.call(L,{},l,{slotId:O,slotEntryTrigger:F,slotFulfillmentTriggers:wr0(n.slotId,O,n.slotFulfillmentTriggers),slotExpirationTriggers:wr0(n.slotId,O,n.slotExpirationTriggers)})}; wr0=function(l,n,O){var L=[];O=g.P(O);for(var X=O.next();!X.done;X=O.next()){var F=L,x=F.push;var Z=l;var J=n;X=X.value;Z=X.triggeringSlotId!=null&&X.triggeringSlotId===Z?X.clone(J):X;x.call(F,Z)}return L}; g.uN=function(l,n){for(var O=g.P(Object.keys(n)),L=O.next(),X={};!L.done;X={placeholder:void 0},L=O.next())L=L.value,X.placeholder=n[L],l=l.replace(new RegExp("\\$"+L,"gi"),function(F){return function(){return F.placeholder}}(X)); return l}; HI0=function(l,n,O){this.S=l;this.slot=n;this.layout=O}; PZ=function(l,n,O){n.layoutId!==l.layout.layoutId?l.S.rB(l.slot,n,new LL("Unknown layout received. Required LayoutId: "+l.layout.layoutId+("and LayoutType: "+l.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):O()}; Tx=function(l,n,O,L){g.hj.call(this);this.callback=l;this.N=L;this.S=[];this.W=new HI0(l,n,O)}; ET=function(l,n,O,L,X,F,x,Z){L=L||on(O.clientMetadata,F);l=WZ(l);var J=bK(function(){X.YP(n,O)}); Z.push(x(L,l,O.layoutId,{adsClientData:O.yp},function(){J()}))}; D8=function(l,n,O,L,X,F,x,Z,J){if(n===l)if(J){if(J===Z.layoutId){a:{l=g.P(O.keys());for(n=l.next();!n.done;n=l.next())if(n=n.value,n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F===O.get(n).layoutId){O=!0;break a}O=!1}O?Nr(L,1):X?X():AV("Tried to call engagePingCallback but it is null",x,Z)}}else AV("Companion AdUxClick received without a layoutId",x,Z)}; qr=function(l){var n,O,L,X,F;return!((n=l.get("active_view_viewable"))==null||!n.length)||!((O=l.get("active_view_measurable"))==null||!O.length)||!((L=l.get("active_view_fully_viewable_audible_half_duration"))==null||!L.length)||!((X=l.get("audio_audible"))==null||!X.length)||!((F=l.get("audio_measurable"))==null||!F.length)}; kx=function(l){var n,O;return(O=l==null?void 0:(n=l.activeViewTracking)==null?void 0:n.trafficType)!=null?O:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; ya=function(l){var n,O;return new Map([["impression",l.impressionPings||[]],["error",l.errorPings||[]],["mute",l.mutePings||[]],["unmute",l.unmutePings||[]],["pause",l.pausePings||[]],["rewind",l.rewindPings||[]],["resume",l.resumePings||[]],["skip",l.skipPings||[]],["swipe",l.swipePings||[]],["close",l.closePings||[]],["progress",l.progressPings||[]],["clickthrough",l.clickthroughPings||[]],["fullscreen",l.fullscreenPings||[]],["active_view_viewable",l.activeViewViewablePings||[]],["active_view_measurable", l.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",l.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((n=l.activeViewTracking)==null?void 0:n.activeViewAudioAudiblePings)||[]],["audio_measurable",((O=l.activeViewTracking)==null?void 0:O.activeViewAudioMeasurablePings)||[]],["end_fullscreen",l.endFullscreenPings||[]],["channel_clickthrough",l.channelClickthroughPings||[]],["abandon",l.abandonPings||[]],["start",l.startPings||[]],["first_quartile", l.firstQuartilePings||[]],["midpoint",l.secondQuartilePings||[]],["third_quartile",l.thirdQuartilePings||[]],["complete",l.completePings||[]],["unmuted_impression",l.unmutedImpressionPings||[]],["unmuted_error",l.unmutedErrorPings||[]],["unmuted_mute",l.unmutedMutePings||[]],["unmuted_unmute",l.unmutedUnmutePings||[]],["unmuted_pause",l.unmutedPausePings||[]],["unmuted_resume",l.unmutedResumePings||[]],["unmuted_close",l.unmutedClosePings||[]],["unmuted_progress",l.unmutedProgressPings||[]],["unmuted_clickthrough", l.unmutedClickthroughPings||[]],["unmuted_fullscreen",l.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",l.unmutedEndFullscreenPings||[]],["unmuted_abandon",l.unmutedAbandonPings||[]],["unmuted_start",l.unmutedStartPings||[]],["unmuted_first_quartile",l.unmutedFirstQuartilePings||[]],["unmuted_midpoint",l.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",l.unmutedThirdQuartilePings||[]],["unmuted_complete",l.unmutedCompletePings||[]],["unmuted_skip",l.unmutedSkipPings||[]]])}; Ajf=function(l){switch(l){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; Mr=function(l,n,O,L,X){X=X===void 0?null:X;this.N=l;this.qQ=n;this.layoutId=L;this.L=0;this.V=null;this.B=void 0;this.S=new Set;this.W=Array.from(this.N.get("progress")||[]);this.W.sort(function(F,x){return(F.offsetMilliseconds||0)-(x.offsetMilliseconds||0)}); this.T={adPlacementConfig:O,Ts:X}}; Qa=function(){return["metadata_type_ad_placement_config"]}; WZ=function(l){var n=l.qQ.get();return ev(n,l.T)}; jv=function(l,n,O){O=O===void 0?!1:O;l.S.has(n)?Yx(l,n,[]):l.bv(n,O)}; Gx=function(l,n,O){for(O=O===void 0?!1:O;l.L<l.W.length;){var L=l.W[l.L];if(L.offsetMilliseconds<=n||O)Yx(l,"progress",[L]),l.L++;else break}}; mE=function(l,n){return l.S.has(n)}; I_=function(l){return l.W.every(function(n){return n.hasOwnProperty("offsetMilliseconds")})}; bIq=function(l,n,O){l.V=n;l.B=O}; Yx=function(l,n,O){var L;rj5(l.qQ.get(),l.layoutId,n,O,(L=l.V)!=null?L:void 0,l.B)}; U68=function(l,n,O,L,X){xR.call(this,"ads-engagement-panel-layout",l,n,O,L,X)}; $x=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; u2e=function(){var l=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_PANEL"]}}; Pmq=function(l,n,O,L,X){xR.call(this,"banner-image",l,n,O,L,X)}; Va=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);this.adPlacementConfig=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,this.adPlacementConfig,O.layoutId)}; TWi=function(){var l=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; BZ=function(l,n,O,L,X){xR.call(this,"action-companion",l,n,O,L,X)}; cZ=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; WOf=function(){var l=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; ER0=function(l,n,O,L,X){xR.call(this,"image-companion",l,n,O,L,X)}; iN=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; NWa=function(){var l=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; D69=function(l,n,O,L,X){xR.call(this,"shopping-companion",l,n,O,L,X)}; zx=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; qwv=function(){var l=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; k5e=function(l){var n;if(((n=l.adVideoOffset)==null?void 0:n.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var O;return((O=l.adVideoOffset)==null?void 0:O.percent)!=null}; yj5=function(l){var n;if(((n=l.adVideoOffset)==null?void 0:n.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var O;return((O=l.adVideoOffset)==null?void 0:O.milliseconds)!=null&&!isNaN(Number(l.adVideoOffset.milliseconds))}; Mf7=function(l,n,O,L){this.E_=l;this.layoutId=O;this.B=L;this.W=[];this.S=[];this.N=this.L=0;l=g.P(n);for(n=l.next();!n.done;n=l.next())switch(n=n.value,O=void 0,(O=n.adVideoOffset)==null?void 0:O.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":k5e(n)?this.W.push(n):AV("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":yj5(n)?this.S.push(n):AV("Invalid AdVideoProgressMillisecondsCommand");break;default:AV("Unknown or invalid AdVideoProgressOffSet kind")}this.W.sort(function(X, F){return X.adVideoOffset.percent-F.adVideoOffset.percent}); this.S.sort(function(X,F){return Number(X.adVideoOffset.milliseconds)-Number(F.adVideoOffset.milliseconds)})}; Sv=function(l,n,O){O=O===void 0?!1:O;var L=l.B();if(L){for(;l.L<l.W.length;){var X=l.W[l.L];if(X.adVideoOffset.percent*L<=n||O)l.E_.get().executeCommand(X.command,l.layoutId),l.L++;else break}for(;l.N<l.S.length;)if(L=l.S[l.N],Number(L.adVideoOffset.milliseconds)<=n||O)l.E_.get().executeCommand(L.command,l.layoutId),l.N++;else break}}; p$=function(l,n,O,L,X,F){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.dZ=!0;rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; QFi=function(){var l=["metadata_type_action_companion_ad_renderer"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; e39=function(l,n,O,L,X,F,x,Z){this.callback=l;this.slot=n;this.layout=O;this.Bm=L;this.qQ=X;this.Rz=x;this.ev=Z;this.S=!1;l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId);var J;l=((J=on(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:J.progressCommands)||[];var w=on(O.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.W=new Mf7(F,l,O.layoutId,function(){return w*1E3})}; sT=function(l,n,O,L,X,F){Tx.call(this,l,n,O,L);this.Bm=X;this.B=F;this.L=!1}; f$=function(l,n,O,L,X){xR.call(this,"top-banner-image-text-icon-buttoned",l,n,O,L,X)}; K$=function(l,n,O,L,X,F){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.dZ=!0;rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; Yw7=function(){var l=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; a_=function(l,n,O){xR.call(this,"display-underlay-text-grid-cards",l,{},n,O);this.interactionLoggingClientData=O}; R_=function(l,n,O,L,X,F){Tx.call(this,l,n,O,L);this.qQ=X;this.L=F;this.B=on(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; C$=function(l,n,O,L,X,F){X=X===void 0?!1:X;F=F===void 0?!1:F;xR.call(this,"ad-action-interstitial",l,n,O,L);this.interactionLoggingClientData=L;this.rd=X;this.uL=F}; tJ=function(l,n,O,L,X){Tx.call(this,l,n,O,L);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,X,l,O.layoutId)}; jFf=function(){var l=["metadata_type_ad_action_interstitial_renderer"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_ENDCAP"]}}; vZ=function(l,n){return Ou(l,n.Co,n.sU)?!0:!1}; lj=function(l,n,O){this.W=l;this.N=n;this.S=O}; G5a=function(l,n,O,L,X){xR.call(this,"ads-engagement-panel",l,n,O,L,X)}; nB=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; m6i=function(){var l=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; Oe=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.qQ=X;this.N5=F;this.V=Z;this.dZ=!0;this.L=null;this.B=on(O.clientMetadata,"metadata_type_linked_player_bytes_layout_id");rg(this.N5(),this);this.adPlacementConfig=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,this.adPlacementConfig,O.layoutId)}; ITv=function(){var l=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; d69=function(l,n,O,L,X){this.Qu=l;this.qQ=n;this.N5=O;this.S=L;this.ev=X}; $6a=function(l,n,O){this.Qu=l;this.qQ=n;this.S=O}; Vfg=function(l,n,O,L,X){this.callback=l;this.slot=n;this.layout=O;this.qQ=L;this.GB=X;l=on(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; BW5=function(){var l=["metadata_type_client_forecasting_ad_renderer"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_FORECASTING"]}}; cj9=function(l,n,O,L,X){this.callback=l;this.slot=n;this.layout=O;this.qQ=L;this.GB=X;l=on(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; g0=function(l,n,O,L){this.Rz=l;this.qQ=n;this.GB=O;this.ev=L}; iIv=function(l,n){return nL(l.clientMetadata,"metadata_type_ad_info_ad_metadata")?on(l.clientMetadata,"metadata_type_ad_info_ad_metadata"):n?{channelId:n.dJ,channelThumbnailUrl:n.profilePicture,channelTitle:n.author,videoTitle:n.title}:(AV("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; z3v=function(l,n){return nL(l.clientMetadata,"metadata_ad_video_is_listed")?on(l.clientMetadata,"metadata_ad_video_is_listed"):n?n.isListed:(AV("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; Swa=function(l,n,O,L){xR.call(this,"player-overlay-layout",l,{},O,L);this.videoAdDurationSeconds=n;this.interactionLoggingClientData=L}; LB=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.Bm=X;this.qQ=F;this.V=x;this.B=Z;this.L=!1;this.T=on(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; prq=function(l){if(l.layout.renderingContent){var n;return(n=on(l.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current}return on(l.layout.clientMetadata,"metadata_type_player_bytes_callback")}; Xr=function(l,n,O,L,X,F,x,Z){Tx.call(this,l,n,O,L);this.Bm=X;this.qQ=F;this.V=x;this.B=Z;this.L=!1;this.T=on(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; sFf=function(){return{Co:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],sU:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; ob=function(l){if(l.layout.renderingContent){var n;return(n=on(l.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current}return on(l.layout.clientMetadata,"metadata_type_player_bytes_callback")}; fTv=function(l,n,O){xR.call(this,"ad-message",l,void 0,n,O)}; Fr=function(l,n,O,L,X,F){Tx.call(this,O,l,n,L);this.Bm=X;this.Rz=F}; KOe=function(){return{Co:["metadata_type_valid_ad_message_renderer"],sU:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; aTi=function(l,n,O,L){xR.call(this,"video-interstitial-buttoned-centered",l,n,O,L);this.interactionLoggingClientData=L}; xB=function(l,n,O,L,X){Tx.call(this,l,n,O,L);l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,X,l,O.layoutId)}; H7=function(l,n,O,L,X,F,x,Z,J){return vZ(O,sFf())||O.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(O.renderingContent,h6)!==void 0?new Xr(l,n,O,L,X,F,x,Z):vZ(O,{Co:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],sU:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||O.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(O.renderingContent,Z_)!==void 0? new LB(l,n,O,L,X,F,x,Z):vZ(O,jFf())||O.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.z(O.renderingContent,J6)!==void 0?new tJ(l,n,O,L,F):vZ(O,KOe())?new Fr(n,O,l,L,X,J):vZ(O,{Co:["metadata_type_instream_ad_player_overlay_renderer"],sU:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new sT(l,n,O,L,X,Z):O.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.z(O.renderingContent,w0)!==void 0?new xB(l,n,O,L,F):null}; R3k=function(l,n,O,L,X,F){this.Qu=l;this.Bm=n;this.qQ=O;this.W=L;this.S=X;this.Rz=F}; A6=function(l){return!l.oldState.isPlaying()&&l.state.isPlaying()}; bj=function(l,n,O){return l<n?!1:O!=null?O<=n:l<=n+1}; r0=function(l,n,O,L,X,F,x,Z){this.callback=l;this.slot=n;this.layout=O;this.Bm=L;this.qQ=X;this.Rz=F;this.ev=x;this.tG=Z;this.S=!1;l=on(O.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId)}; Ue=function(l,n){l.S||(l.Kf.bv(n),l.S=!0)}; Cm7=function(l,n,O,L,X,F){this.Bm=l;this.qQ=n;this.E_=O;this.Rz=L;this.ev=X;this.tG=F}; uj=function(){this.currentState=1;this.S="unknown"}; P7=function(l,n){if(l.currentState>1){g.d2(new g.at("Exit already started",{current:l.currentState}));var O=!1}else O=!0;if(!O)return!1;l.currentState=2;l.S=n;return!0}; T2=function(l){if(l.currentState!==2)return!1;l.currentState=3;return!0}; tf7=function(l,n){var O=new Map;l=g.P(l);for(var L=l.next();!L.done;L=l.next()){L=L.value;if(L.layoutType==="LAYOUT_TYPE_MEDIA")var X="v";else L.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(X=on(L.clientMetadata,"metadata_type_linked_in_player_layout_type"),X=X==="LAYOUT_TYPE_ENDCAP"||X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":X==="LAYOUT_TYPE_SURVEY"?"s":X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):X="u";O.set(L.layoutId,X);if(X==="u"){var F={};X=n;L=(F.c=L.layoutId,F);X.C.Sp("uct",L)}}l= n.qm();W7={contentCpn:l,m4:O};L={};O=(L.ct=O.size,L.c=l,L);n.C.Sp("acc",O)}; vRi=function(){W7={contentCpn:"",m4:new Map}}; Ee=function(l){var n;return(n=W7.m4.get(l))!=null?n:"u"}; Nl=function(l,n,O){l.C.Sp(n,O);lD9(l)}; n70=function(l){var n=l.layoutId,O=l.uy;if(l.kQ){var L={};Nl(l.Ds,"slso",(L.ec=n,L.is=O,L.ctp=Ee(n),L))}}; D_=function(l){var n=l.layoutId,O=l.uy;if(l.kQ){var L={};Nl(l.Ds,"slse",(L.ec=n,L.is=O,L.ctp=Ee(n),L))}}; OHi=function(l){var n=l.layoutId,O=l.uy,L=l.Ds;l.kQ&&(l={},Nl(L,"sleo",(l.xc=n,l.is=O,l.ctp=Ee(n),l)),lD9(L))}; g79=function(l){var n=l.cpn,O=l.Ds;l=l.uy;var L=O.qm(),X={};Nl(O,"ce",(X.ec=n,X.ia=n!==L,X.r=W7.m4.has(n),X.is=l,X.ctp=Ee(n),X))}; lD9=function(l){if(l.qm()!==W7.contentCpn){var n={};n=(n.c=W7.contentCpn,n);l.C.Sp("ccm",n)}}; L39=function(l){var n=l.cpn,O=l.Ds;l=l.uy;var L=O.qm(),X={};Nl(O,"cx",(X.xc=n,X.ia=n!==L,X.r=W7.m4.has(n),X.is=l,X.ctp=Ee(n),X))}; Xtq=function(l){this.params=l;this.S=new Set}; o7a=function(l,n,O){if(!l.S.has(n)){l.S.add(n);var L={};l.params.WQ.Nv(n,Object.assign({},O,(L.p_ac=l.params.adCpn,L.p_isv=l.params.noq&&l.params.RR,L)))}}; kB=function(l,n,O){if(ql(l.params.WQ.Rz.get(),!0)){var L=O.flush,X={};o7a(l,n,(X.cts=O.currentTimeSec,X.f=L,X))}}; F3k=function(l,n){this.Ds=l;this.Rz=n}; yC=function(l){var n=[];if(l){l=g.P(Object.entries(l));for(var O=l.next();!O.done;O=l.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;L!==void 0&&(L=typeof L==="boolean"?""+ +L:(""+L).replace(/[:,=]/g,"_"),n.push(O+"."+L))}}return n.join(";")}; Ml=function(l,n,O){n=n===void 0?{}:n;this.errorCode=l;this.details=n;this.severity=O===void 0?0:O}; QC=function(l){return l===1||l===2}; el=function(l,n){n=n===void 0?0:n;if(l instanceof Ml)return l;l=l&&l instanceof Error?l:Error(""+l);QC(n)?g.Ir(l):g.d2(l);return new Ml(n===1?"player.fatalexception":"player.exception",{name:""+l.name,message:""+l.message},n)}; xif=function(l,n){function O(){var L=g.eq.apply(0,arguments);l.removeEventListener("playing",O);n.apply(null,g.E(L))} l.addEventListener("playing",O)}; YB=function(){var l=g.zk("yt.player.utils.videoElement_");l||(l=g.nf("VIDEO"),g.i9("yt.player.utils.videoElement_",l));return l}; jl=function(l){var n=YB();return!!(n&&n.canPlayType&&n.canPlayType(l))}; m8=function(l){if(/opus/.test(l)&&g.G2&&!y8("38")&&!g.s0())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(l);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(l);if(/webm/.test(l)&&!TOi())return!1;l==='audio/mp4; codecs="mp4a.40.2"'&&(l='video/mp4; codecs="avc1.4d401f"');return!!jl(l)}; hhk=function(l){try{var n=m8('video/mp4; codecs="avc1.42001E"')||m8('video/webm; codecs="vp9"');return(m8('audio/mp4; codecs="mp4a.40.2"')||m8('audio/webm; codecs="opus"'))&&(n||!l)||jl('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(O){return"html5.missingapi"}}; Ib=function(){var l=YB();return!(!l.webkitSupportsPresentationMode||typeof l.webkitSetPresentationMode!=="function")}; d0=function(){var l=YB();try{var n=l.muted;l.muted=!n;return l.muted!==n}catch(O){}return!1}; ZHk=function(){var l;return((l=navigator.connection)==null?void 0:l.type)||""}; g.$B=function(){MV.apply(this,arguments)}; VC=function(l,n,O,L,X,F,x){this.sampleRate=l===void 0?0:l;this.numChannels=n===void 0?0:n;this.spatialAudioType=O===void 0?"SPATIAL_AUDIO_TYPE_NONE":O;this.S=L===void 0?!1:L;this.N=X===void 0?0:X;this.W=F===void 0?0:F;this.audioQuality=x===void 0?"AUDIO_QUALITY_UNKNOWN":x}; ij=function(l,n,O,L,X,F,x,Z,J){this.width=l;this.height=n;this.quality=F||B7(l,n);this.S=g.c7[this.quality];this.fps=O||0;this.stereoLayout=!X||L!=null&&L!=="UNKNOWN"&&L!=="RECTANGULAR"?0:X;this.projectionType=L?L==="EQUIRECTANGULAR"&&X===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":L:"UNKNOWN";(l=x)||(l=g.c7[this.quality],l===0?l="Auto":(n=this.fps,O=this.projectionType,l=l.toString()+(O==="EQUIRECTANGULAR"||O==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||O==="MESH"?"s":"p")+(n>55?"60":n>49?"50":n>39?"48":""))); this.qualityLabel=l;this.W=Z||"";this.primaries=J||""}; B7=function(l,n){var O=Math.max(l,n);l=Math.min(l,n);n=z2[0];for(var L=0;L<z2.length;L++){var X=z2[L],F=g.c7[X];if(O>=Math.floor(F*16/9)*1.3||l>=F*1.3)return n;n=X}return"tiny"}; se=function(l,n,O){O=O===void 0?{}:O;this.id=l;this.mimeType=n;O.Sv>0||(O.Sv=16E3);Object.assign(this,O);l=g.P(this.id.split(";"));this.itag=l.next().value;this.S=l.next().value;this.containerType=Sl(n);this.bF=pB[this.itag]||""}; fB=function(l){return l.bF==="9"||l.bF==="("||l.bF==="9h"||l.bF==="(h"}; JVi=function(l){return l.bF==="H"||l.bF==="h"}; KB=function(l){return l.bF==="9h"||l.bF==="(h"}; wtk=function(l){return!!l.UK&&!!l.UK.fairplay&&(l.bF==="("||l.bF==="(h"||l.bF==="A"||l.bF==="MEAC3")||ab&&!!l.UK&&l.bF==="1e"}; Rb=function(l){return l.bF==="1"||l.bF==="1h"||ab&&l.bF==="1e"}; CB=function(l){return l.bF==="mac3"||l.bF==="meac3"||l.bF==="m"||l.bF==="i"}; t6=function(l){return l.bF==="MAC3"||l.bF==="MEAC3"||l.bF==="M"||l.bF==="I"}; g.v7=function(l){return l.containerType===1}; HHk=function(l){return l.bF==="("||l.bF==="(h"||l.bF==="H"||ab&&l.bF==="1e"}; lt=function(l){return l.mimeType==="application/x-mpegURL"}; g.n5=function(l,n){return{itag:+l.itag,lmt:n?0:l.lastModified,xtags:l.S||""}}; AVk=function(l){var n=navigator.mediaCapabilities;if(n==null||!n.decodingInfo||l.bF==="f")return Promise.resolve();var O={type:l.audio&&l.video?"file":"media-source"};l.video&&(O.video={contentType:l.mimeType,width:l.video.width||640,height:l.video.height||360,bitrate:l.Sv*8||1E6,framerate:l.video.fps||30});l.audio&&(O.audio={contentType:l.mimeType,channels:""+(l.audio.numChannels||2),bitrate:l.Sv*8||128E3,samplerate:l.audio.sampleRate||44100});return n.decodingInfo(O).then(function(L){l.W=L})}; Ov=function(l){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(l)}; gv=function(l){return/(vp9|vp09|vp8|avc1|av01)/.test(l)}; L5=function(l){return l.includes("vtt")||l.includes("text/mp4")}; Sl=function(l){return l.indexOf("/mp4")>=0?1:l.indexOf("/webm")>=0?2:l.indexOf("/x-flv")>=0?3:l.indexOf("/vtt")>=0?4:0}; XO=function(l,n,O,L,X,F){var x=new VC;n in g.c7||(n="small");n==="light"&&(n="tiny");L&&X?(X=Number(X),L=Number(L)):(X=g.c7[n],L=Math.round(X*16/9));F=new ij(L,X,0,null,void 0,n,F);l=unescape(l.replace(/"/g,'"'));return new se(O,l,{audio:x,video:F})}; o1=function(l){var n="id="+l.id;l.video&&(n+=", res="+l.video.qualityLabel);var O,L;return n+", byterate=("+((O=l.l0)==null?void 0:O.toFixed(0))+", "+((L=l.Sv)==null?void 0:L.toFixed(0))+")"}; FO=function(l,n){return{start:function(O){return l[O]}, end:function(O){return n[O]}, length:l.length}}; bHg=function(l,n,O){for(var L=[],X=[],F=0;F<l.length;F++)L.push(l.start(F)),X.push(l.end(F));L.push(n);X.push(O);L.sort(function(x,Z){return x-Z}); X.sort(function(x,Z){return x-Z}); return FO(L,X)}; xG=function(l,n,O){n=n===void 0?",":n;O=O===void 0?l?l.length:0:O;var L=[];if(l)for(O=Math.max(l.length-O,0);O<l.length;O++)L.push(l.start(O).toFixed(3)+"-"+l.end(O).toFixed(3));return L.join(n)}; hY=function(l,n){if(!l)return-1;try{for(var O=0;O<l.length;O++)if(l.start(O)<=n&&l.end(O)>=n)return O}catch(L){}return-1}; ZA=function(l,n){return hY(l,n)>=0}; rVi=function(l,n){if(!l)return NaN;n=hY(l,n);return n>=0?l.start(n):NaN}; JY=function(l,n){if(!l)return NaN;n=hY(l,n);return n>=0?l.end(n):NaN}; wv=function(l){return l&&l.length?l.end(l.length-1):NaN}; H6=function(l,n){l=JY(l,n);return l>=0?l-n:0}; AY=function(l,n,O){for(var L=[],X=[],F=0;F<l.length;F++)l.end(F)<n||l.start(F)>O||(L.push(Math.max(n,l.start(F))-n),X.push(Math.min(O,l.end(F))-n));return FO(L,X)}; bt=function(l,n,O,L){g.hj.call(this);var X=this;this.vS=l;this.start=n;this.end=O;this.isActive=L;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.ZG={error:function(){!X.JG()&&X.isActive&&X.publish("error",X)}, updateend:function(){!X.JG()&&X.isActive&&X.publish("updateend",X)}}; this.vS.DF(this.ZG);this.w5=this.isActive}; Uv=function(l,n,O,L,X,F){g.hj.call(this);var x=this;this.Xp=l;this.F7=n;this.id=O;this.containerType=L;this.bF=X;this.RR=F;this.Sq=this.pj=this.e1=null;this.FQ=!1;this.appendWindowStart=this.timestampOffset=0;this.Sf=FO([],[]);this.Z5=!1;this.AJ=[];this.yU=rv?[]:void 0;this.RI=function(J){return x.publish(J.type,x)}; var Z;if((Z=this.Xp)==null?0:Z.addEventListener)this.Xp.addEventListener("updateend",this.RI),this.Xp.addEventListener("error",this.RI)}; ut=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; P6=function(l,n){this.Vp=l;this.S=n===void 0?!1:n;this.W=!1}; p5=function(l,n,O){O=O===void 0?!1:O;g.V.call(this);this.mediaElement=l;this.Xi=n;this.isView=O;this.V=0;this.L=!1;this.B=!0;this.Y=0;this.callback=null;this.G=!1;this.Xi||(this.F7=this.mediaElement.De());this.events=new g.$B(this);g.c(this,this.events);this.N=new P6(this.Xi?window.URL.createObjectURL(this.Xi):this.F7.webkitMediaSourceURL,!0);l=this.Xi||this.F7;Qd(this.events,l,["sourceopen","webkitsourceopen"],this.lZG);Qd(this.events,l,["sourceclose","webkitsourceclose"],this.boi);this.T={updateend:this.j9}}; Uii=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; u8k=function(l,n){f5(l)?g.Jo(function(){n(l)}):l.callback=n}; Prg=function(l,n,O){if(K5){var L;a1(l.mediaElement,{l:"mswssb",sr:(L=l.mediaElement.uF)==null?void 0:L.xW()},!1);n.DF(l.T,l);O.DF(l.T,l)}l.S=n;l.W=O;g.c(l,n);g.c(l,O)}; Tyi=function(l,n,O,L){L=n.mimeType+(L===void 0?"":L);var X=O.mimeType;n=n.bF;O=O.bF;var F;l.Wm=(F=l.Xi)==null?void 0:F.addSourceBuffer(X);var x;l.NQ=L.split(";")[0]==="fakesb"?void 0:(x=l.Xi)==null?void 0:x.addSourceBuffer(L);l.F7&&(l.F7.webkitSourceAddId("0",X),l.F7.webkitSourceAddId("1",L));F=new Uv(l.Wm,l.F7,"0",Sl(X),O,!1);L=new Uv(l.NQ,l.F7,"1",Sl(L),n,!0);Prg(l,F,L)}; R1=function(l){return!!l.S||!!l.W}; f5=function(l){try{return C5(l)==="open"}catch(n){return!1}}; C5=function(l){if(l.Xi)return l.Xi.readyState;switch(l.F7.webkitSourceState){case l.F7.SOURCE_OPEN:return"open";case l.F7.SOURCE_ENDED:return"ended";default:return"closed"}}; tY=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; W3e=function(l){f5(l)&&(l.Xi?l.Xi.endOfStream():l.F7.webkitSourceEndOfStream(l.F7.EOS_NO_ERROR))}; E78=function(l,n,O,L){if(!l.S||!l.W)return null;var X=l.S.isView()?l.S.vS:l.S,F=l.W.isView()?l.W.vS:l.W,x=new p5(l.mediaElement,l.Xi,!0);x.N=l.N;Prg(x,new bt(X,n,O,L),new bt(F,n,O,L));f5(l)||l.S.W5(l.S.ez());return x}; Ny5=function(l){var n;(n=l.S)==null||n.oE();var O;(O=l.W)==null||O.oE();l.B=!1}; v6=function(){var l=this;this.Cl=this.uO=Yi5;this.promise=new g.U6(function(n,O){l.uO=n;l.Cl=O})}; lL=function(){g.V.call(this);this.e8=!1;this.Vp=null;this.T=this.V=!1;this.L=new g.vE;this.uF=null;g.c(this,this.L)}; nX=function(l){l=l.pO();return l.length<1?NaN:l.end(l.length-1)}; Di9=function(l){!l.W&&Uii()&&(l.N?l.N.then(function(){return Di9(l)}):l.m5()||(l.W=l.wJ()))}; q28=function(l){l.W&&(l.W.dispose(),l.W=void 0)}; a1=function(l,n,O){var L;((L=l.uF)==null?0:L.AA())&&l.uF.Sp("rms",n,O===void 0?!1:O)}; k79=function(l,n,O){l.isPaused()||l.getCurrentTime()>n||O>10||(l.play(),g.U0(function(){k79(l,l.getCurrentTime(),O+1)},500))}; yVv=function(l,n){l.Vp&&l.Vp.XT(n)||(l.Vp&&l.Vp.dispose(),l.Vp=n)}; Oz=function(l){return H6(l.NJ(),l.getCurrentTime())}; Mna=function(l,n){if(l.R_()===0||l.hasError())return!1;var O=l.getCurrentTime()>0;return n>=0&&(l=l.pO(),l.length||!O)?ZA(l,n):O}; gX=function(l){l.m5()&&(l.uF&&l.uF.fK("rs_s"),aZ&&l.getCurrentTime()>0&&l.seekTo(0),l.qe(),l.load(),yVv(l,null));delete l.N}; LX=function(l){switch(l.K2()){case 2:return"progressive.net.retryexhausted";case 3:return l=l.gB(),(l==null?0:l.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||QN8&&(l==null?0:l.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.XI=function(l,n,O){this.WG=n===void 0?null:n;this.seekSource=O===void 0?null:O;this.state=l||64}; ov=function(l,n,O){O=O===void 0?!1:O;return eh7(l,n.getCurrentTime(),(0,g.Q_)(),Oz(n),O)}; FI=function(l,n,O,L){if(!(n===l.state&&O===l.WG&&L===l.seekSource||n!==void 0&&(n&128&&!O||n&2&&n&16))){var X;if(X=n)X=n||l.state,X=!!(X&16||X&32);l=new g.XI(n,O,X?L?L:l.seekSource:null)}return l}; xX=function(l,n,O){return FI(l,l.state|n,null,O===void 0?null:O)}; h1=function(l,n){return FI(l,l.state&~n,null,null)}; Zh=function(l,n,O,L){return FI(l,(l.state|n)&~O,null,L===void 0?null:L)}; g.K=function(l,n){return!!(l.state&n)}; g.J1=function(l,n){return n.state===l.state&&n.WG===l.WG}; wX=function(l){return l.isPlaying()&&!g.K(l,16)&&!g.K(l,32)}; HG=function(l){return g.K(l,128)?-1:g.K(l,2)?0:g.K(l,2048)?3:g.K(l,64)?-1:g.K(l,1)&&!g.K(l,32)?3:g.K(l,8)?1:g.K(l,4)?2:-1}; bL=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N){g.V.call(this);var q=this;this.VS=l;this.slot=n;this.layout=O;this.qQ=L;this.ev=X;this.tG=F;this.Bm=x;this.JC=Z;this.E_=J;this.Zz=w;this.position=A;this.V=b;this.Rz=r;this.x3=U;this.cG=W;this.context=N;this.dZ=!0;this.B=!1;this.u5="not_rendering";this.W=!1;this.N=new uj;l=on(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(O.vj,this.qQ,l,O.layoutId);var y;l=((y=A1(this))==null?void 0:y.progressCommands)||[];this.L=new Mf7(J, l,O.layoutId,function(){return q.Fc()}); this.S=new Xtq({adCpn:this.layout.layoutId,WQ:N.WQ,noq:this.x3,RR:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; rX=function(l){return{layoutId:l.PK(),uy:l.x3,Ds:l.tG.get(),kQ:l.EU()}}; Uz=function(l,n){return n.layoutId!==l.layout.layoutId?(l.VS.rB(l.slot,n,new LL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+l.layout.layoutId+("and LayoutType: "+l.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; uL=function(l){l.u5="rendering_start_requested";l.Zz(-1)}; A1=function(l){return on(l.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Y20=function(l){AV("Received layout exit signal when not in layout exit flow.",l.slot,l.layout)}; jN5=function(l){var n;return((n=PG(l.tG.get(),2))==null?void 0:n.clientPlaybackNonce)||""}; TO=function(l,n){switch(n){case "normal":l.bv("complete");break;case "skipped":l.bv("skip");break;case "abandoned":mE(l.Kf,"impression")&&l.bv("abandon")}}; WG=function(l,n){l.B||(n=new g.br(n.state,new g.XI),l.B=!0);return n}; Ez=function(l,n){A6(n)?l.Zz(1):g.U2(n,4)&&!g.U2(n,2)&&l.cC();ry(n,4)<0&&!(ry(n,2)<0)&&l.Ob()}; G7q=function(l){l.position===0&&(l.JC.get(),l=on(l.layout.clientMetadata,"metadata_type_ad_placement_config").kind,l={adBreakType:NI(l)},iD("ad_bl"),g.zp(l))}; Dh=function(l,n){jv(l.Kf,n,!l.W)}; IDa=function(l){var n;return(((n=A1(l))==null?void 0:n.progressCommands)||[]).findIndex(function(O){return!!g.z(O==null?void 0:O.command,mi5)})!==-1}; qI=function(l,n){var O=on(l.clientMetadata,"metadata_type_eligible_for_ssap");return O===void 0?(AV("Expected SSAP eligibility in PlayerBytes factory",l),!1):n.EU(O)}; kX=function(l,n){if(!Rn(n.get(),"html5_ssap_pass_transition_reason"))return 3;switch(l){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return AV("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return AV("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:l}),3;default:FL(l,"unknown layoutExitReason")}}; diq=function(l){AV("getExitReason: unexpected reason",void 0,void 0,{reason:l})}; yb=function(l,n){if(Rn(n.get(),"html5_ssap_pass_transition_reason"))switch(l){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return diq(l),"abandoned";case 3:case 1:return diq(l),"error";default:FL(l,"unexpected transition reason")}else switch(l){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return AV("getExitReason: unexpected reason",void 0,void 0,{reason:l}),"error";default:FL(l,"unexpected transition reason")}}; MI=function(l,n,O){pp(l,O)||fp(l,n,O);pp(l,"video_to_ad")||fp(l,n,"video_to_ad");pp(l,"ad_to_video")||fp(l,n,"ad_to_video");pp(l,"ad_to_ad")||fp(l,n,"ad_to_ad")}; Qb=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q){bL.call(this,l,n,O,L,X,F,x,Z,w,H,A,b,r,U,W,N,q);var y=this;this.fp=J;this.HO=A;this.H_=!0;this.dX=this.Le=0;this.A$=bK(function(){n70(rX(y));y.VS.YP(y.slot,y.layout)}); this.Wa=bK(function(){OHi(rX(y));y.u5!=="rendering_stop_requested"&&y.HO(y);y.layoutExitReason?y.VS.Hk(y.slot,y.layout,y.layoutExitReason):Y20(y)}); this.Yh=new g.DG(200);this.Yh.listen("tick",function(){y.tC()}); g.c(this,this.Yh)}; YX=function(l){l.dX=Date.now();ec(l,l.Le);l.Yh.start()}; $i9=function(l){l.Le=l.Fc();l.g9(l.Le/1E3,!0);ec(l,l.Le)}; ec=function(l,n){n={current:n/1E3,duration:l.Fc()/1E3};l.fp.get().qs("onAdPlaybackProgress",n)}; jc=function(l){Qb.call(this,l.VS,l.slot,l.PM,l.qQ,l.ev,l.tG,l.Bm,l.JC,l.fp,l.E_,l.Zz,l.HO,l.sS,l.r5,l.Rz,l.x3,l.cG,l.context)}; GO=function(l){Qb.call(this,l.VS,l.slot,l.PM,l.qQ,l.ev,l.tG,l.Bm,l.JC,l.fp,l.E_,l.Zz,l.HO,l.sS,l.r5,l.Rz,l.x3,l.cG,l.context)}; m6=function(){GO.apply(this,arguments)}; Vn7=function(l){return qI(l.slot,l.Rz.get())?new m6(l):new jc(l)}; $X=function(l){bL.call(this,l.callback,l.slot,l.PM,l.qQ,l.ev,l.tG,l.Bm,l.JC,l.E_,l.Zz,l.HO,l.sS,l.r5,l.Rz,l.x3,l.cG,l.context);var n=this;this.adCpn="";this.t9=0;this.Sm=!1;this.k0=0;this.A$=bK(function(){n70(rX(n));n.VS.YP(n.slot,n.layout)}); this.Wa=bK(function(){OHi(rX(n));n.u5!=="rendering_stop_requested"&&n.HO(n);n.layoutExitReason?n.VS.Hk(n.slot,n.layout,n.layoutExitReason):Y20(n)}); this.bf=l.bf;this.uK=l.uK;this.Fg=l.Fg;this.fp=l.fp;this.nN=l.nN;this.HO=l.HO;if(!this.EU()){Rn(this.Rz.get(),"html5_disable_media_load_timeout")||(this.c_=new g.vs(function(){n.mP("load_timeout",new LL("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); l=Iv(this.Rz.get());var O=dX(this.Rz.get());l&&O&&(this.Ib=new g.vs(function(){var L=on(n.layout.clientMetadata,"metadata_type_preload_player_vars");L&&n.uK.get().C.preloadVideoByPlayerVars(L,2,300)}))}}; cV9=function(l,n){var O=on(n.clientMetadata,"metadata_type_ad_video_id"),L=on(n.clientMetadata,"metadata_type_legacy_info_card_vast_extension");O&&L&&l.nN.get().C.j().z3.add(O,{XQ:L});(n=on(n.clientMetadata,"metadata_type_sodar_extension_data"))&&zl9(l.bf.get(),n);Byg(l.Bm.get(),!1)}; iHg=function(l){Byg(l.Bm.get(),!0);var n;((n=l.shrunkenPlayerBytesConfig)==null?0:n.shouldRequestShrunkenPlayerBytes)&&l.Bm.get().ZE(!1)}; zhg=function(l){var n=on(l.f5().clientMetadata,"metadata_type_player_bytes_slot_metadata");n===void 0&&AV("PlayerBytesSlotMetadata is not filled",l.f5(),l.Uf());return(n==null?void 0:n.Om)===!0}; Vb=function(){$X.apply(this,arguments)}; BG=function(){Vb.apply(this,arguments)}; S2k=function(l){return Vn7(Object.assign({},l,{VS:l.callback,Zz:function(){}}))}; pti=function(l){return new $X(Object.assign({},l,{Zz:function(n){l.fp.get().qs("onAdIntroStateChange",n)}}))}; sNe=function(l){function n(O){l.fp.get().uq(O)} return qI(l.slot,l.Rz.get())?new BG(Object.assign({},l,{Zz:n})):new $X(Object.assign({},l,{Zz:n}))}; cG=function(l){for(var n=l.PM,O=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],L=g.P(Qa()),X=L.next();!X.done;X=L.next())O.push(X.value);if(vZ(n,{Co:O,sU:["LAYOUT_TYPE_MEDIA_BREAK"]}))return S2k(l);n=l.PM;O=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];L=g.P(Qa());for(X=L.next();!X.done;X=L.next())O.push(X.value);if(vZ(n,{Co:O,sU:["LAYOUT_TYPE_MEDIA"]}))return nL(l.PM.clientMetadata,"metadata_type_ad_intro")?pti(l):sNe(l)}; K3q=function(l){var n=on(l.clientMetadata,"metadata_type_ad_placement_config").kind,O=on(l.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:l.layoutId,adType:fDi(O),adBreakType:NI(n)}}; NI=function(l){switch(l){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"}}; fDi=function(l){switch(l){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; aDq=function(l){try{return new iL(l.f8,l.slot,l.layout,l.PS,l.z7,l.tG,l.Cp,l.uK,l.N5,l.Bm,l.r7i,l)}catch(n){}}; iL=function(l,n,O,L,X,F,x,Z,J,w,H,A){g.V.call(this);this.f8=l;this.slot=n;this.layout=O;this.PS=L;this.z7=X;this.tG=F;this.Cp=x;this.uK=Z;this.N5=J;this.Bm=w;this.params=A;this.dZ=!0;l=cG(H);if(!l)throw Error("Invalid params for sublayout");this.ZQ=l}; Rhf=function(){this.S=1;this.W=new uj}; zO=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){g.V.call(this);this.callback=l;this.tG=n;this.Cp=O;this.uK=L;this.Bm=X;this.JC=F;this.LI=x;this.slot=Z;this.layout=J;this.PS=w;this.GB=H;this.N5=A;this.Rz=b;this.dZ=!0;this.AF=!1;this.Z9=[];this.jH=-1;this.UO=!1;this.Do=new Rhf}; Crk=function(l){var n;return(n=l.layout.Wd)!=null?n:on(l.layout.clientMetadata,"metadata_type_sub_layouts")}; Sc=function(l){return{Ds:l.tG.get(),uy:!1,kQ:l.EU()}}; tn9=function(l,n,O){if(l.E8()===l.Z9.length-1){var L,X;AV("Unexpected skip requested during the last sublayout",(L=l.S1())==null?void 0:L.f5(),(X=l.S1())==null?void 0:X.Uf(),{requestingSlot:n,requestingLayout:O})}}; v7q=function(l,n,O){return O.layoutId!==pX(l,n,O)?(AV("onSkipRequested for a PlayerBytes layout that is not currently active",l.f5(),l.Uf()),!1):!0}; l3i=function(l){l.E8()===l.Z9.length-1&&AV("Unexpected skip with target requested during the last sublayout")}; n55=function(l,n,O){return O.renderingContent===void 0&&O.layoutId!==pX(l,n,O)?(AV("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",l.f5(),l.Uf(),{requestingSlot:n,requestingLayout:O}),!1):!0}; Op7=function(l,n,O,L){var X=on(n.Uf().clientMetadata,"metadata_type_ad_pod_skip_target");if(X&&X>0&&X<l.Z9.length){a:{for(var F=X;F<l.Z9.length;){if(X===on(l.Z9[F].Uf().clientMetadata,"metadata_type_ad_pod_skip_index")){l=F;break a}F++}l=void 0}if(l===void 0)AV("Skip-to-index was requested but target index was not found",n.f5(),n.Uf(),{requestingSlot:O,requestingLayout:L});else return l}else AV("Invalid ad pod skip target index",n.f5(),n.Uf(),{requestingSlot:O,requestingLayout:L})}; pX=function(l,n,O){var L=on(l.Uf().clientMetadata,"metadata_type_linked_in_player_layout_id");return L?L:(AV("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",l.f5(),l.Uf(),{requestingSlot:n,requestingLayout:O}),null)}; Lk8=function(l,n,O,L){g5a(l,n,O,"skipped",function(){sz(l,L)})}; g5a=function(l,n,O,L,X){if(!l.UO){var F=l.S1();if(F){F.Uf().layoutId!==O.layoutId&&AV("SubLayout mismatch in exitSubLayout",n,O,{exitingSubLayout:O.layoutId,activeSubLayout:F.Uf().layoutId});l.UO=!0;F.oI(F.Uf(),L);F=Object.assign({},Sc(l),{layoutId:O.layoutId,layoutExitReason:L});var x=F.layoutId,Z=F.layoutExitReason;if(F.kQ){var J={};Nl(F.Ds,"wrsx",(J.xc=x,J.ler=Z,J.ctp=Ee(x),J))}l.wv(n,O,L);l.UO=!1;l.Hz?(l.Hz(),l.EU()||fX(l.JC.get())):X()}else AV("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", n,O)}}; sz=function(l,n){if(l.E8()===l.Z9.length-1)l.jH++,KX(l.GB,l.layout,"normal"),l.EU()||fX(l.JC.get());else a:{if(l.E8()===-1&&(l.callback.YP(l.slot,l.layout),n>0)){AV("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",l.slot,l.layout,{indexToPlay:n,layoutId:l.layout.layoutId});break a}l.jH=n;n=l.S1();if(l.E8()>0&&!l.EU()){var O=l.JC.get();O.W=!1;var L={};O.S&&O.videoId&&(L.cttAuthInfo={token:O.S,videoId:O.videoId});S$("ad_to_ad",L)}l.qt(n)}}; av=function(l){zO.call(this,l.f8,l.tG,l.Cp,l.uK,l.Bm,l.JC,l.LI,l.slot,l.layout,l.PS,l.GB,l.N5,l.Rz)}; Xn8=function(l){(l=l.S1())&&l.nO()}; Rv=function(l){zO.call(this,l.f8,l.tG,l.Cp,l.uK,l.Bm,l.JC,l.LI,l.slot,l.layout,l.PS,l.GB,l.N5,l.Rz);this.wi=void 0}; o5i=function(l,n){l.UR()&&!T2(l.Do.W)||l.callback.Hk(l.slot,l.layout,n)}; CX=function(l){return Rn(l.Rz.get(),"html5_ssap_pass_transition_reason")}; Fk5=function(l,n,O){n.AM().currentState<2&&(O=yb(O,l.Rz),n.oI(n.Uf(),O));O=n.AM().S;l.wv(l.slot,n.Uf(),O)}; xu7=function(l,n){if(l.Do.W.currentState<2){var O=yb(n,l.Rz);O==="error"?l.callback.rB(l.slot,l.layout,new LL("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:n},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):KX(l.GB,l.layout,O)}}; t1=function(l,n,O){n.AM().currentState>=2||(n.oI(n.Uf(),O),T2(n.AM())&&(Qw(l.LI,l.slot,n.Uf(),O),l.wi=void 0))}; hd5=function(l,n){l.Do.S===2&&n!==l.qm()&&AV("onClipEntered: unknown cpn",l.slot,l.layout,{cpn:n})}; Zpv=function(l,n){var O=l.S1();if(O){var L=O.Uf().layoutId,X=l.E8()+1;l.UR()?t1(l,O,n):O.oI(O.Uf(),n);X>=0&&X<l.Z9.length?(O=l.Z9[X].Uf().layoutId,CX(l)&&(["normal","skipped"].includes(n)||AV("exitActiveLayoutAndPlayNext: unexpected exit reason",l.slot,l.layout,{exitReason:n})),l.Cp.get().finishSegmentByCpn(L,O,kX(n,l.Rz))):X===l.Z9.length?KX(l.GB,l.layout,"normal"):AV("unexpected index",l.slot,l.layout,{index:X})}else AV("exitActiveLayoutAndPlayNext: no active adapter",l.slot,l.layout)}; Je5=function(l,n){AV(n+": undefined adapter",l.slot,l.layout)}; wni=function(l){return qI(l.slot,l.Rz.get())?new Rv(l):new av(l)}; vG=function(l,n,O,L,X,F,x){g.V.call(this);this.callback=l;this.uK=n;this.Bm=O;this.JC=L;this.ZQ=X;this.N5=F;this.Rz=x;this.dZ=!0;this.AF=!1}; Hpg=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B){function R(){var l9=cG(Object.assign({},Fa,{callback:{YP:l.YP.bind(l),Hk:l.Hk.bind(l),TJ:function(){}, rB:l.rB.bind(l)},slot:O,PM:L,HO:function(){KX(x,L,"normal")}, sS:0,r5:1,x3:!0}));return l9?new vG(l,H,b,U,l9,X,y):l9} function a(){var l9=Object.assign({},Fa,{callback:{YP:function(){}, Hk:function(){}, TJ:function(){return void KX(x,L,"normal")}, rB:function(){}}, slot:O,PM:L,HO:function(){}, sS:0,r5:1,x3:!0});return aDq({f8:l,slot:O,layout:L,PS:F,z7:x,tG:A,Cp:e,uK:H,N5:X,Bm:b,r7i:l9,context:d})} function Lv(){var l9,S=(l9=L.Wd)!=null?l9:on(L.clientMetadata,"metadata_type_sub_layouts");l9=wni({f8:l,tG:A,Cp:e,uK:H,Bm:b,JC:U,LI:n,slot:O,layout:L,PS:F,GB:x,N5:X,Rz:y});for(var v=[],T={Fk:0};T.Fk<S.length;T={Fk:T.Fk},T.Fk++){var p=cG(Object.assign({},Fa,{callback:{YP:l9.aq.bind(l9),Hk:l9.ys.bind(l9),TJ:l9.TJ.bind(l9),rB:l9.XB.bind(l9)},slot:O,PM:S[T.Fk],HO:function(ce){return function(WR){WR.oI(S[ce.Fk],"normal")}}(T), sS:T.Fk,r5:S.length,x3:!1}));if(!p)return;v.push(p)}l9.Z9=v;return l9} var Fa={qQ:Z,ev:J,bf:w,uK:H,tG:A,Bm:b,Fg:r,JC:U,fp:W,E_:N,nN:q,Rz:y,context:d,cG:B};Z=vZ(L,{Co:["metadata_type_sub_layouts"],sU:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||L.Wd!==void 0&&L.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";J=qI(O,y.get())&&vZ(L,{Co:[],sU:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});w=vZ(L,{Co:[],sU:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(Z)return Lv();if(J)return a();if(w)return R()}; l$=function(l,n,O,L,X,F,x,Z,J,w){this.callback=l;this.slot=n;this.layout=O;this.tG=L;this.Cp=X;this.uf=F;this.Bm=x;this.Kf=Z;this.qQ=J;this.B=w;this.driftRecoveryMs=on(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.L=on(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; bpf=function(l){var n=on(l.layout.clientMetadata,"metadata_type_layout_enter_ms"),O=on(l.layout.clientMetadata,"metadata_type_layout_exit_ms");l=l.uf.get();n=Aev(l.N,n,O);return Math.min(O,n!==null?n:Infinity)}; OZ=function(l,n){var O;nS(l.qQ.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(O=l.tG.get().hF)==null?void 0:O.clientPlaybackNonce,adClientData:l.layout.yp.adClientDataEntry},n)})}; gR=function(l,n,O,L,X,F,x,Z,J,w,H){l$.call(this,l,n,O,L,X,F,x,Z,J,w);this.N=H;this.W=this.S=null;l=g.P(this.N);for(n=l.next();!n.done;n=l.next())n=n.value,nL(n.Uf().clientMetadata,"metadata_type_survey_overlay")&&(this.W=n.Uf().layoutId)}; Uua=function(l,n){var O=re0(l,n);O||AV("Expected subLRA found by layout ID",l.slot,l.layout,{layoutId:n});l.S={Dz:O};O?O.startRendering(O.Uf()):n===l.W&&AV("Failed to find rendering adapter for survey media layout",l.slot,l.layout,{surveyMediaLayoutId:n})}; re0=function(l,n){return n==null?null:l.N.find(function(O){return O.Uf().layoutId===n})||null}; unq=function(l,n,O,L,X,F,x,Z,J,w){var H=X-L,A=nL(n.clientMetadata,"metadata_type_survey_overlay"),b,r=((b=l.fulfilledLayout||on(l.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:on(b.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!H)return x.Ht(O,r,2,F,L,X,l.slotId),LS(w,"ads_iraot","sid."+l.slotId+";enterMs."+L+";exitMs."+X+";hso."+A+";vid."+O.video_id),null;H=x.Iw(O,r,2,F,L,X,l.slotId);LS(w,"ads_atct","sid."+l.slotId+";enterMs."+L+";exitMs."+X+";hso."+A+";vid."+O.video_id); if(!H)return AV("Unexpected failure to add to playback timeline",l,n,J()),null;l=l.slotId;n=n.layoutId;H?(Z.S.has(H)&&AV("Unexpected remap of timeline playback"),Z.S.set(H,{slotId:l,layoutId:n})):AV("Invalid timeline playback ID");L+F>X&&x.C9(H,X-L);return H}; PD7=function(l,n,O){var L=on(n.clientMetadata,"metadata_type_sodar_extension_data");if(L)try{zl9(O,L)}catch(X){AV("Unexpected error when loading Sodar",l,n,{error:X})}}; T1e=function(l,n,O,L,X,F,x){X9(l,n,new g.br(O,new g.XI),L,X,x,!1,F)}; X9=function(l,n,O,L,X,F,x,Z){x=x===void 0?!0:x;A6(O)&&bj(X,0,null)&&(!mE(l,"impression")&&Z&&Z(),l.bv("impression"));mE(l,"impression")&&(g.U2(O,4)&&!g.U2(O,2)&&l.xt("pause"),ry(O,4)<0&&!(ry(O,2)<0)&&l.xt("resume"),g.U2(O,16)&&X>=.5&&l.xt("seek"),x&&g.U2(O,2)&&oi(l,O.state,n,L,X,F))}; oi=function(l,n,O,L,X,F,x,Z){mE(l,"impression")&&(F?(F=X-L,F=F>=-1&&F<=2):F=Math.abs(L-X)<=1,F9(l,n,F?L:X,O,L,x,Z&&F),F&&l.bv("complete"))}; F9=function(l,n,O,L,X,F,x){Gx(l,O*1E3,x);X<=0||O<=0||(n==null?0:g.K(n,16))||(n==null?0:g.K(n,32))||(bj(O,X*.25,L)&&(F&&!mE(l,"first_quartile")&&F("first"),l.bv("first_quartile")),bj(O,X*.5,L)&&(F&&!mE(l,"midpoint")&&F("second"),l.bv("midpoint")),bj(O,X*.75,L)&&(F&&!mE(l,"third_quartile")&&F("third"),l.bv("third_quartile")))}; Wkv=function(l,n){mE(l,"impression")&&l.xt(n?"fullscreen":"end_fullscreen")}; E5q=function(l){mE(l,"impression")&&l.xt("clickthrough")}; N1k=function(l){l.xt("active_view_measurable")}; Dua=function(l){mE(l,"impression")&&!mE(l,"seek")&&l.xt("active_view_fully_viewable_audible_half_duration")}; qgi=function(l){mE(l,"impression")&&!mE(l,"seek")&&l.xt("active_view_viewable")}; kp7=function(l){mE(l,"impression")&&!mE(l,"seek")&&l.xt("audio_audible")}; yeg=function(l){mE(l,"impression")&&!mE(l,"seek")&&l.xt("audio_measurable")}; M$e=function(l,n,O,L,X,F,x,Z,J,w,H,A){this.callback=l;this.slot=n;this.layout=O;this.Cp=L;this.Kf=X;this.Bm=F;this.Ms=x;this.ev=Z;this.bf=J;this.Rz=w;this.qQ=H;this.tG=A;this.H_=!0;this.WS=this.u5=null;this.adCpn=void 0;this.S=!1}; QMq=function(l,n,O){var L;LS(l.qQ.get(),"ads_qua","cpn."+on(l.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=PG(l.tG.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+n+";clr."+O)}; ed0=function(l,n){var O,L;LS(l.qQ.get(),"ads_imp","cpn."+on(l.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((O=PG(l.tG.get(),2))==null?void 0:O.clientPlaybackNonce)+";clr."+n+";skp."+!!g.z((L=on(l.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:L.skipOrPreviewRenderer,x4))}; h$=function(l){return{enterMs:on(l.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:on(l.clientMetadata,"metadata_type_layout_exit_ms")}}; Zv=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){l$.call(this,l,n,O,L,X,x,Z,J,w,A);this.Ms=F;this.bf=H;this.ev=b;this.Rz=r;this.WS=this.u5=null}; Yg5=function(l,n){var O;LS(l.qQ.get(),"ads_imp","acpn."+((O=PG(l.tG.get(),2))==null?void 0:O.clientPlaybackNonce)+";clr."+n)}; jMa=function(l,n,O){var L;LS(l.qQ.get(),"ads_qua","cpn."+on(l.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=PG(l.tG.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+n+";clr."+O)}; J$=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d){this.N5=l;this.PS=n;this.GB=O;this.tG=L;this.Cp=X;this.Bm=F;this.qQ=x;this.Ms=Z;this.uf=J;this.ev=w;this.bf=H;this.uK=A;this.Fg=b;this.JC=r;this.fp=U;this.E_=W;this.nN=N;this.Rz=q;this.S=y;this.context=e;this.cG=d}; wR=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q){this.N5=l;this.PS=n;this.GB=O;this.qQ=L;this.ev=X;this.bf=F;this.uK=x;this.tG=Z;this.Bm=J;this.Fg=w;this.JC=H;this.fp=A;this.E_=b;this.nN=r;this.Rz=U;this.Cp=W;this.context=N;this.cG=q}; Gpk=function(l,n,O,L){xR.call(this,"survey-interstitial",l,n,O,L)}; H0=function(l,n,O,L,X){Tx.call(this,O,l,n,L);this.qQ=X;l=on(n.clientMetadata,"metadata_type_ad_placement_config");this.Kf=new Mr(n.vj,X,l,n.layoutId)}; A$=function(l){return Math.round(l.width)+"x"+Math.round(l.height)}; rR=function(l,n,O){O=O===void 0?b$:O;O.width<b$.width&&(O=b$);if(l.width<O.width||l.height<O.height)return{Ie:3,g5:501,errorMessage:"ad("+A$(O)+") larger than container("+A$(l)+")."};if(O.width*O.height>l.width*l.height*.2)return{Ie:3,g5:501,errorMessage:"ad("+A$(O)+") to container("+A$(l)+") ratio exceeds limit."};if(O.height>l.height/3-n)return{Ie:3,g5:501,errorMessage:"ad("+A$(O)+") covers container("+A$(l)+") center."}}; mu8=function(l,n){var O=on(l.clientMetadata,"metadata_type_ad_placement_config");return new Mr(l.vj,n,O,l.layoutId)}; UZ=function(l){return on(l.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; u$=function(l,n,O,L){xR.call(this,"invideo-overlay",l,n,O,L);this.interactionLoggingClientData=L}; P0=function(l,n,O,L,X,F,x,Z,J,w,H,A){Tx.call(this,F,l,n,X);this.qQ=O;this.L=x;this.Bm=Z;this.E_=J;this.Rz=w;this.V=H;this.B=A;this.Kf=mu8(n,O)}; I39=function(){var l=["metadata_type_invideo_overlay_ad_renderer"];Qa().forEach(function(n){l.push(n)}); return{Co:l,sU:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Td=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){Tx.call(this,F,l,n,X);this.qQ=O;this.L=x;this.G=Z;this.Bm=J;this.E_=w;this.Rz=H;this.V=A;this.B=b;this.Kf=mu8(n,O)}; du9=function(){for(var l=["metadata_type_invideo_overlay_ad_renderer"],n=g.P(Qa()),O=n.next();!O.done;O=n.next())l.push(O.value);return{Co:l,sU:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; W0=function(l){this.Bm=l;this.S=!1}; $ua=function(l,n,O){xR.call(this,"survey",l,{},n,O)}; EZ=function(l,n,O,L,X,F,x){Tx.call(this,O,l,n,L);this.L=X;this.Bm=F;this.Rz=x}; V$5=function(l,n,O,L,X,F,x,Z,J,w){this.Qu=l;this.Bm=n;this.qQ=O;this.L=L;this.ev=X;this.W=F;this.N=x;this.E_=Z;this.Rz=J;this.S=w}; B1i=function(l,n,O,L,X,F,x,Z,J,w){this.Qu=l;this.Bm=n;this.qQ=O;this.L=L;this.ev=X;this.W=F;this.N=x;this.E_=Z;this.Rz=J;this.S=w}; Na=function(l,n,O,L,X,F,x,Z,J,w){Xr.call(this,l,n,O,L,X,F,x,J);this.V8=Z;this.tG=w}; cek=function(){var l=sFf();l.Co.push("metadata_type_ad_info_ad_metadata");return l}; ip9=function(l,n,O,L,X,F,x){this.Qu=l;this.Bm=n;this.qQ=O;this.W=L;this.V8=X;this.S=F;this.tG=x}; zdq=function(l,n,O,L,X,F,x,Z){this.Qu=l;this.Bm=n;this.qQ=O;this.W=L;this.V8=X;this.S=F;this.Rz=x;this.tG=Z}; Dv=function(l,n){this.slotId=n;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=l(this.triggerType)}; qa=function(l,n){this.adPodIndex=l;this.S=n.length;this.adBreakLengthSeconds=n.reduce(function(L,X){return L+X},0); var O=0;for(l+=1;l<n.length;l++)O+=n[l];this.adBreakRemainingLengthSeconds=O}; k4=function(l,n,O){this.Zf=n;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=O||l(this.triggerType)}; y1=function(l,n,O){this.S=n;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=O||l(this.triggerType)}; Ma=function(l,n,O,L){this.Zf=n;this.visible=O;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=L||l(this.triggerType)}; Sgi=function(l){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=l(this.triggerType)}; pn9=function(l){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=l(this.triggerType)}; Q1=function(l,n,O){this.triggeringLayoutId=n;this.slotId=O;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=l(this.triggerType)}; eP=function(l,n,O){this.triggeringLayoutId=n;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=O||l(this.triggerType)}; Y4=function(l,n,O,L){this.triggeringLayoutId=n;this.S=O;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=L||l(this.triggerType)}; sMi=function(l){switch(l){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new C("Invalid layout exit reason: "+ l)}}; jP=function(l,n,O){this.triggeringLayoutId=n;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=O||l(this.triggerType)}; Gd=function(l,n){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=n||l(this.triggerType)}; mg=function(l,n){this.breakDurationMs=l;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=n||""}; Ii=function(l,n){this.breakDurationMs=l;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=n||""}; dR=function(l,n){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=n||l(this.triggerType)}; f3i=function(l){this.triggerId=l;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; Kkg=function(l,n,O,L,X){this.Zf=n;this.S=O;this.visible=L;this.layoutId=X;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=l(this.triggerType)}; $4=function(l,n,O,L,X){this.Zf=n;this.S=O;this.visible=L;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=X||l(this.triggerType)}; V1=function(l,n){this.breakDurationMs=l;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=n||""}; a3i=function(l,n,O){this.Zf=n;this.S=O;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=l(this.triggerType)}; B0=function(l,n,O,L,X){this.S=n;this.slotType=O;this.layoutType=L;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=X||l(this.triggerType)}; c0=function(l,n){this.S=n;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=l(this.triggerType)}; i$=function(l,n,O){this.layoutId=n;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=O||l(this.triggerType)}; zd=function(l,n,O){this.S=n;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=O||l(this.triggerType)}; pv7=function(l,n){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=n;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=l(this.triggerType)}; Rdk=function(l,n){this.S=l;this.index=n}; CD9=function(l){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=l(this.triggerType)}; SP=function(l,n){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=n||l(this.triggerType)}; t$k=function(l,n,O){this.layoutId=n;this.offsetMs=O;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=l(this.triggerType)}; v57=function(l,n){this.layoutId=n;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=l(this.triggerType)}; lP8=function(l,n,O){this.layoutId=n;this.offsetMs=O;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=l(this.triggerType)}; pS=function(l,n,O){this.triggeringLayoutId=n;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=O||l(this.triggerType)}; sZ=function(l,n,O){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=O||l(this.triggerType)}; fS=function(l,n,O){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=O||l(this.triggerType)}; KS=function(l,n){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=l(this.triggerType)}; ai=function(l,n){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=l(this.triggerType)}; Ri=function(l,n,O){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=O||l(this.triggerType)}; CS=function(l,n){this.triggeringSlotId=n;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=l(this.triggerType)}; t$=function(l,n,O){this.triggeringLayoutId=n;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=O||l(this.triggerType)}; v0=function(l,n,O,L){this.durationMs=n;this.triggeringLayoutId=O;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=L||l(this.triggerType)}; l6=function(l,n,O,L){this.category=l;this.trigger=n;this.slot=O;this.layout=L}; n6=function(l){return(l==null?void 0:l.layoutId)!=null&&(l==null?void 0:l.layoutType)!=null}; nsk=function(l){if(!n6(l.adLayoutMetadata))return!1;l=l.renderingContent;return g.z(l,Oc)||g.z(l,gm)||g.z(l,L6)||g.z(l,X6)||g.z(l,op)||g.z(l,F6)?!0:!1}; Ou9=function(l){return(l==null?void 0:l.durationMs)!=null&&(l==null?void 0:l.durationMs)>0}; x2=function(l){return!!(l.yGz&&l.slot&&l.layout)}; hl=function(l){var n,O=(n=l.config)==null?void 0:n.adPlacementConfig;l=l.renderer;return!(!O||O.kind==null||!l)}; gs0=function(l){if(!n6(l.adLayoutMetadata))return!1;l=l.renderingContent;return g.z(l,J6)||g.z(l,w0)||g.z(l,h6)||g.z(l,Z_)?!0:!1}; Zc=function(l){return l.playerVars!==void 0&&l.pings!==void 0&&l.externalVideoId!==void 0}; Dc=function(l){if(!n6(l.adLayoutMetadata))return!1;l=l.renderingContent;var n=g.z(l,Jl);return n?wm(n):(n=g.z(l,Hi))?Zc(n):(n=g.z(l,Al))?n.playerVars!==void 0:(n=g.z(l,J6))?n.durationMilliseconds!==void 0:g.z(l,b6)||g.z(l,N0)?!0:!1}; wm=function(l){l=(l.sequentialLayouts||[]).map(function(n){return g.z(n,q0)}); return l.length>0&&l.every(Dc)}; k2=function(l){return n6(l.adLayoutMetadata)?(l=g.z(l.renderingContent,LF7))&&l.pings?!0:!1:!1}; Zuv=function(l){if(!n6(l.adLayoutMetadata))return!1;if(g.z(l.renderingContent,Xa0)||g.z(l.renderingContent,osg))return!0;var n=g.z(l.renderingContent,yq);return g.z(l.renderingContent,M0)||g.z(n==null?void 0:n.sidePanel,FF7)||g.z(n==null?void 0:n.sidePanel,xT9)||g.z(n==null?void 0:n.sidePanel,hok)?!0:!1}; bu5=function(l){var n;(n=!l)||(n=l.adSlotMetadata,n=!((n==null?void 0:n.slotId)!==void 0&&(n==null?void 0:n.slotType)!==void 0));if(n||!(JMi(l)||l.slotEntryTrigger&&l.slotFulfillmentTriggers&&l.slotExpirationTriggers))return!1;var O;l=(O=l.fulfillmentContent)==null?void 0:O.fulfilledLayout;return(O=g.z(l,q0))?Dc(O):(O=g.z(l,Qq))?Zuv(O):(O=g.z(l,wa0))?gs0(O):(O=g.z(l,Huk))?nsk(O):(O=g.z(l,AM9))?n6(O.adLayoutMetadata)?g.z(O.renderingContent,Oc)?!0:!1:!1:(l=g.z(l,eQ))?k2(l):!1}; JMi=function(l){var n;l=g.z((n=l.fulfillmentContent)==null?void 0:n.fulfilledLayout,Qq);var O;return l&&((O=l.adLayoutMetadata)==null?void 0:O.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&l.layoutExitNormalTriggers===void 0}; rM5=function(l){var n;return(l==null?void 0:(n=l.adSlotMetadata)==null?void 0:n.slotType)==="SLOT_TYPE_IN_PLAYER"}; us0=function(l,n){var O;if((O=l.questions)==null||!O.length||!l.playbackCommands||(n===void 0||!n)&&l.questions.length!==1)return!1;l=g.P(l.questions);for(n=l.next();!n.done;n=l.next()){n=n.value;var L=O=void 0,X=((O=g.z(n,Y2))==null?void 0:O.surveyAdQuestionCommon)||((L=g.z(n,jQ))==null?void 0:L.surveyAdQuestionCommon);if(!UTi(X))return!1}return!0}; Pvf=function(l){l=((l==null?void 0:l.playerOverlay)||{}).instreamSurveyAdRenderer;var n;if(l)if(l.playbackCommands&&l.questions&&l.questions.length===1){var O,L=((n=g.z(l.questions[0],Y2))==null?void 0:n.surveyAdQuestionCommon)||((O=g.z(l.questions[0],jQ))==null?void 0:O.surveyAdQuestionCommon);n=UTi(L)}else n=!1;else n=!1;return n}; UTi=function(l){if(!l)return!1;l=g.z(l.instreamAdPlayerOverlay,Gb);var n=g.z(l==null?void 0:l.skipOrPreviewRenderer,x4),O=g.z(l==null?void 0:l.adInfoRenderer,mK);return(g.z(l==null?void 0:l.skipOrPreviewRenderer,Ip)||n)&&O?!0:!1}; T4i=function(l){return l.linearAds!=null&&n6(l.adLayoutMetadata)}; WF0=function(l){return l.linearAd!=null&&l.adVideoStart!=null}; Ese=function(l){if(isNaN(Number(l.timeoutSeconds))||!l.text||!l.ctaButton||!g.z(l.ctaButton,g.dm)||!l.brandImage)return!1;var n;return l.backgroundImage&&g.z(l.backgroundImage,$2)&&((n=g.z(l.backgroundImage,$2))==null?0:n.landscape)?!0:!1}; Vq=function(l,n,O,L,X,F,x){g.V.call(this);this.Rz=l;this.S=n;this.N=L;this.tG=X;this.L=F;this.W=x}; qf0=function(l,n,O){var L,X=((L=O.adSlots)!=null?L:[]).map(function(Z){return g.z(Z,Bi)}); if(O.sH)if(on(n.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ro(l.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},n.slotId); else{if(l.Rz.get().C.j().J("h5_check_forecasting_renderer_for_throttled_midroll")){var F=O.MA.filter(function(Z){var J;return((J=Z.renderer)==null?void 0:J.clientForecastingAdRenderer)!=null}); F.length!==0?N4a(l.W,F,X,n.slotId,O.ssdaiAdsConfig):ro(l.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},n.slotId)}else ro(l.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},n.slotId); DTi(l.L,n)}else{var x;L={Tz:Math.round(((F=on(n.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:F.Tz)||0),wP:(x=on(n.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:x.wP};N4a(l.W,O.MA,X,n.slotId,O.ssdaiAdsConfig,L)}}; yM0=function(l,n,O,L,X,F,x){var Z=PG(l.tG.get(),1);ro(l.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return kA9(l.N.get(),O,L,X,Z.clientPlaybackNonce,Z.Tx,Z.daiEnabled,Z,F,x)},n)}; Qmf=function(l,n,O,L,X,F,x){n=M9k(n,F,Number(L.prefetchMilliseconds)||0,x);l=n instanceof C?n:ci(l,L,X,n,O);return l instanceof C?l:[l]}; eo5=function(l,n,O,L,X){var F=UT(l.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");L=[new $r({getAdBreakUrl:L.getAdBreakUrl,Tz:0,wP:0}),new t8(!0)];l=n.pauseDurationMs?n.lactThresholdMs?{slotId:F,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ri(l.S,F),slotFulfillmentTriggers:[new pn9(l.S)],slotExpirationTriggers:[new zd(l.S,X),new fS(l.S,F)],jp:"core",clientMetadata:new XY(L),adSlotLoggingData:O}:new C("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new C("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return l instanceof C?l:[l]}; Yfg=function(l){var n,O;return((n=l.renderer)==null?void 0:(O=n.adBreakServiceRenderer)==null?void 0:O.getAdBreakUrl)!==void 0}; i6=function(l,n,O){if(l.beforeContentVideoIdStartedTrigger)l=l.beforeContentVideoIdStartedTrigger?new k4(gg,n,l.id):new C("Not able to create BeforeContentVideoIdStartedTrigger");else{if(l.layoutIdExitedTrigger){var L;n=(L=l.layoutIdExitedTrigger)!=null&&L.triggeringLayoutId?new jP(gg,l.layoutIdExitedTrigger.triggeringLayoutId,l.id):new C("Not able to create LayoutIdExitedTrigger")}else{if(l.layoutExitedForReasonTrigger){var X,F;((X=l.layoutExitedForReasonTrigger)==null?0:X.triggeringLayoutId)&&((F= l.layoutExitedForReasonTrigger)==null?0:F.layoutExitReason)?(n=sMi(l.layoutExitedForReasonTrigger.layoutExitReason),l=n instanceof C?n:new Y4(gg,l.layoutExitedForReasonTrigger.triggeringLayoutId,[n],l.id)):l=new C("Not able to create LayoutIdExitedForReasonTrigger")}else{if(l.onLayoutSelfExitRequestedTrigger){var x;n=(x=l.onLayoutSelfExitRequestedTrigger)!=null&&x.triggeringLayoutId?new i$(gg,l.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,l.id):new C("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(l.onNewPlaybackAfterContentVideoIdTrigger)l= l.onNewPlaybackAfterContentVideoIdTrigger?new zd(gg,n,l.id):new C("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(l.skipRequestedTrigger){var Z;n=(Z=l.skipRequestedTrigger)!=null&&Z.triggeringLayoutId?new pS(gg,l.skipRequestedTrigger.triggeringLayoutId,l.id):new C("Not able to create SkipRequestedTrigger")}else if(l.slotIdEnteredTrigger){var J;n=(J=l.slotIdEnteredTrigger)!=null&&J.triggeringSlotId?new sZ(gg,l.slotIdEnteredTrigger.triggeringSlotId,l.id):new C("Not able to create SlotIdEnteredTrigger")}else if(l.slotIdExitedTrigger){var w; n=(w=l.slotIdExitedTrigger)!=null&&w.triggeringSlotId?new fS(gg,l.slotIdExitedTrigger.triggeringSlotId,l.id):new C("Not able to create SkipRequestedTrigger")}else if(l.surveySubmittedTrigger){var H;n=(H=l.surveySubmittedTrigger)!=null&&H.triggeringLayoutId?new t$(gg,l.surveySubmittedTrigger.triggeringLayoutId,l.id):new C("Not able to create SurveySubmittedTrigger")}else{if(l.mediaResumedTrigger)l=l.mediaResumedTrigger&&l.id?new f3i(l.id):new C("Not able to create MediaResumedTrigger");else{if(l.closeRequestedTrigger){var A; n=(A=l.closeRequestedTrigger)!=null&&A.triggeringLayoutId?new y1(gg,l.closeRequestedTrigger.triggeringLayoutId,l.id):new C("Not able to create CloseRequestedTrigger")}else if(l.slotIdScheduledTrigger){var b;n=(b=l.slotIdScheduledTrigger)!=null&&b.triggeringSlotId?new Ri(gg,l.slotIdScheduledTrigger.triggeringSlotId,l.id):new C("Not able to create SlotIdScheduledTrigger")}else{if(l.mediaTimeRangeTrigger){var r;L=Number((r=l.mediaTimeRangeTrigger)==null?void 0:r.offsetStartMilliseconds);var U;x=Number((U= l.mediaTimeRangeTrigger)==null?void 0:U.offsetEndMilliseconds);isFinite(L)&&isFinite(x)?(U=x,U===-1&&(U=O),O=L>U?new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:L,offsetEndMs:U},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",U===O&&L-500<=U):new qo(L,U),l=O instanceof C?O:new $4(gg,n,O,!1,l.id)):l=new C("Not able to create MediaTimeRangeTrigger")}else if(l.contentVideoIdEndedTrigger)l=l.contentVideoIdEndedTrigger?new Ma(gg,n,!1,l.id):new C("Not able to create ContentVideoIdEndedTrigger"); else{if(l.layoutIdEnteredTrigger){var W;n=(W=l.layoutIdEnteredTrigger)!=null&&W.triggeringLayoutId?new eP(gg,l.layoutIdEnteredTrigger.triggeringLayoutId,l.id):new C("Not able to create LayoutIdEnteredTrigger")}else if(l.timeRelativeToLayoutEnterTrigger){var N;n=(N=l.timeRelativeToLayoutEnterTrigger)!=null&&N.triggeringLayoutId?new v0(gg,Number(l.timeRelativeToLayoutEnterTrigger.durationMs),l.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,l.id):new C("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(l.onDifferentLayoutIdEnteredTrigger){var q; n=(q=l.onDifferentLayoutIdEnteredTrigger)!=null&&q.triggeringLayoutId&&l.onDifferentLayoutIdEnteredTrigger.slotType&&l.onDifferentLayoutIdEnteredTrigger.layoutType?new B0(gg,l.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,l.onDifferentLayoutIdEnteredTrigger.slotType,l.onDifferentLayoutIdEnteredTrigger.layoutType,l.id):new C("Not able to create CloseRequestedTrigger")}else{if(l.liveStreamBreakStartedTrigger)l=l.liveStreamBreakStartedTrigger&&l.id?new dR(gg,l.id):new C("Not able to create LiveStreamBreakStartedTrigger"); else if(l.liveStreamBreakEndedTrigger)l=l.liveStreamBreakEndedTrigger&&l.id?new Gd(gg,l.id):new C("Not able to create LiveStreamBreakEndedTrigger");else{if(l.liveStreamBreakScheduledDurationMatchedTrigger){var y;n=(y=l.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&y.breakDurationMs?new mg(Number(l.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,l.id):new C("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(l.liveStreamBreakScheduledDurationNotMatchedTrigger){var e; n=(e=l.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&e.breakDurationMs?new Ii(Number(l.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,l.id):new C("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(l.newSlotScheduledWithBreakDurationTrigger){var d;n=(d=l.newSlotScheduledWithBreakDurationTrigger)!=null&&d.breakDurationMs?new V1(Number(l.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,l.id):new C("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else n= l.prefetchCacheExpiredTrigger?new SP(gg,l.id):new C("Not able to convert an AdsControlflowTrigger.");l=n}n=l}l=n}n=l}l=n}n=l}l=n}n=l}l=n}n=l}l=n}return l}; zb=function(l,n){n.S>=2&&(l.slot_pos=n.adPodIndex);l.autoplay="1"}; GA0=function(l,n,O,L,X,F,x,Z){return n===null?new C("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:n,ActionCompanionAdRenderer:L}):[jma(l,n,x,F,function(J){var w=J.slotId;J=Z(J);var H=L.adLayoutLoggingData,A=new XY([new BT(L),new t9(X)]);w=CL(O.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w);var b={layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",jp:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",vj:new Map, layoutExitNormalTriggers:[new zd(O.S,x)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:A,yp:J(b),adLayoutLoggingData:H}})]}; mT8=function(l,n,O,L,X,F,x,Z){return n===null?new C("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:n,TopBannerImageTextIconButtonedLayoutViewModel:L}):[jma(l,n,x,F,function(J){var w=J.slotId;J=Z(J);var H=L.adLayoutLoggingData,A=new XY([new cT(L),new t9(X)]);w=CL(O.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w);var b={layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",jp:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", vj:new Map,layoutExitNormalTriggers:[new zd(O.S,x)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:A,yp:J(b),adLayoutLoggingData:H}})]}; V9g=function(l,n,O,L,X,F){if(!F)for(n=g.P(n),F=n.next();!F.done;F=n.next())F=F.value,SQ(l,F.renderer,F.config.adPlacementConfig.kind);l=Array.from(l.values()).filter(function(H){return IPi(H)}); n=[];F=g.P(l);for(var x=F.next(),Z={};!x.done;Z={SZ:void 0},x=F.next()){Z.SZ=x.value;x=g.P(Z.SZ.Ff);for(var J=x.next(),w={};!J.done;w={B5:void 0},J=x.next())w.B5=J.value,J=function(H,A){return function(b){return H.B5.U5(b,A.SZ.instreamVideoAdRenderer.elementId,H.B5.yy)}}(w,Z),w.B5.isContentVideoCompanion?n.push(dT9(O,L,X,Z.SZ.instreamVideoAdRenderer.elementId,w.B5.associatedCompositePlayerBytesLayoutId,w.B5.adSlotLoggingData,J)):l.length>1?n.push($Tk(O,L,X,Z.SZ.instreamVideoAdRenderer.elementId,w.B5.adSlotLoggingData, function(H,A){return function(b){return H.B5.U5(b,A.SZ.instreamVideoAdRenderer.elementId,H.B5.yy,H.B5.associatedCompositePlayerBytesLayoutId)}}(w,Z))):n.push($Tk(O,L,X,Z.SZ.instreamVideoAdRenderer.elementId,w.B5.adSlotLoggingData,J))}return n}; SQ=function(l,n,O){if(n=B4q(n)){n=g.P(n);for(var L=n.next();!L.done;L=n.next())if((L=L.value)&&L.externalVideoId){var X=p6(l,L.externalVideoId);X.instreamVideoAdRenderer||(X.instreamVideoAdRenderer=L,X.JJ=O)}else AV("InstreamVideoAdRenderer without externalVideoId")}}; B4q=function(l){var n=[],O=l.sandwichedLinearAdRenderer&&l.sandwichedLinearAdRenderer.linearAd&&g.z(l.sandwichedLinearAdRenderer.linearAd,Hi);if(O)return n.push(O),n;if(l.instreamVideoAdRenderer)return n.push(l.instreamVideoAdRenderer),n;if(l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds){l=g.P(l.linearAdSequenceRenderer.linearAds);for(O=l.next();!O.done;O=l.next())O=O.value,g.z(O,Hi)&&n.push(g.z(O,Hi));return n}return null}; IPi=function(l){if(l.instreamVideoAdRenderer===void 0)return AV("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var n=g.P(l.Ff),O=n.next();!O.done;O=n.next()){O=O.value;if(O.U5===void 0)return!1;if(O.yy===void 0)return AV("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(l.JJ===void 0||O.RD===void 0||l.JJ!==O.RD&&O.RD!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(l.instreamVideoAdRenderer.elementId===void 0)return AV("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:l.JJ,"matching APSR kind":O.RD}),!1}return!0}; p6=function(l,n){l.has(n)||l.set(n,{instreamVideoAdRenderer:void 0,JJ:void 0,adVideoId:n,Ff:[]});return l.get(n)}; sc=function(l,n,O,L,X,F,x,Z,J){X?p6(l,X).Ff.push({vcJ:n,RD:O,isContentVideoCompanion:L,yy:x,associatedCompositePlayerBytesLayoutId:F,adSlotLoggingData:Z,U5:J}):AV("Companion AdPlacementSupportedRenderer without adVideoId")}; f6=function(l){var n=0;l=g.P(l.questions);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O=g.z(O,Y2)||g.z(O,jQ)){var L=void 0;n+=((L=O.surveyAdQuestionCommon)==null?void 0:L.durationMilliseconds)||0}return n}; K6=function(l){var n,O,L,X,F=((O=g.z((n=l.questions)==null?void 0:n[0],Y2))==null?void 0:O.surveyAdQuestionCommon)||((X=g.z((L=l.questions)==null?void 0:L[0],jQ))==null?void 0:X.surveyAdQuestionCommon),x;n=[].concat(g.E(((x=l.playbackCommands)==null?void 0:x.instreamAdCompleteCommands)||[]),g.E((F==null?void 0:F.timeoutCommands)||[]));var Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv,Fa,l9;return{impressionCommands:(Z=l.playbackCommands)==null?void 0:Z.impressionCommands,errorCommands:(J=l.playbackCommands)== null?void 0:J.errorCommands,muteCommands:(w=l.playbackCommands)==null?void 0:w.muteCommands,unmuteCommands:(H=l.playbackCommands)==null?void 0:H.unmuteCommands,pauseCommands:(A=l.playbackCommands)==null?void 0:A.pauseCommands,rewindCommands:(b=l.playbackCommands)==null?void 0:b.rewindCommands,resumeCommands:(r=l.playbackCommands)==null?void 0:r.resumeCommands,skipCommands:(U=l.playbackCommands)==null?void 0:U.skipCommands,progressCommands:(W=l.playbackCommands)==null?void 0:W.progressCommands,Bri:(N= l.playbackCommands)==null?void 0:N.clickthroughCommands,fullscreenCommands:(q=l.playbackCommands)==null?void 0:q.fullscreenCommands,activeViewViewableCommands:(y=l.playbackCommands)==null?void 0:y.activeViewViewableCommands,activeViewMeasurableCommands:(e=l.playbackCommands)==null?void 0:e.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(d=l.playbackCommands)==null?void 0:d.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=l.playbackCommands)== null?void 0:(R=B.activeViewTracking)==null?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(a=l.playbackCommands)==null?void 0:(Lv=a.activeViewTracking)==null?void 0:Lv.activeViewAudioMeasurableCommands,endFullscreenCommands:(Fa=l.playbackCommands)==null?void 0:Fa.endFullscreenCommands,abandonCommands:(l9=l.playbackCommands)==null?void 0:l9.abandonCommands,completeCommands:n}}; iuk=function(l,n,O,L,X,F,x){return function(Z,J){return cM5(l,J.slotId,Z,F,function(w,H){var A=J.layoutId;w=x(w);return ap(n,A,H,X,w,"LAYOUT_TYPE_SURVEY",[new A8(O),L],O.adLayoutLoggingData)})}}; paf=function(l,n,O,L,X,F,x){if(!zoq(l))return new C("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:l});var Z=l.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Sf5(F,n,O,L,function(J){var w=J.slotId;J=x(J);w=CL(X.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",w);var H={layoutId:w,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",jp:"core"},A=new jP(X.S,L);return{layoutId:w,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",vj:new Map,layoutExitNormalTriggers:[A], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new bJ(Z)]),yp:J(H)}})]}; zoq=function(l){l=g.z(l==null?void 0:l.additionalPlayerOverlay,sm9);if(!l)return!1;var n=l.slidingMessages;return l.title&&n&&n.length!==0?!0:!1}; KF9=function(l,n,O,L,X){var F;if((F=l.playerOverlay)==null||!F.instreamSurveyAdRenderer)return function(){return[]}; if(!Pvf(l))return function(){return new C("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:l})}; var x=l.playerOverlay.instreamSurveyAdRenderer,Z=f6(x);return Z<=0?function(){return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:x})}:function(J,w){var H=fPf(J,O,L,function(A){var b=A.slotId; A=w(A);var r=K6(x);b=CL(X.W.get(),"LAYOUT_TYPE_SURVEY",b);var U={layoutId:b,layoutType:"LAYOUT_TYPE_SURVEY",jp:"core"},W=new jP(X.S,L),N=new pS(X.S,b),q=new t$(X.S,b),y=new CD9(X.S);return{layoutId:b,layoutType:"LAYOUT_TYPE_SURVEY",vj:new Map,layoutExitNormalTriggers:[W,y],layoutExitSkipTriggers:[N],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[q],Pk:[],jp:"core",clientMetadata:new XY([new HC(x),new t9(n),new cC(Z/1E3),new pb(r)]),yp:A(U),adLayoutLoggingData:x.adLayoutLoggingData}}); J=paf(l,O,H.slotId,L,X,J,w);return J instanceof C?J:[H].concat(g.E(J))}}; nga=function(l,n,O,L,X,F,x){x=x===void 0?!1:x;var Z=[];try{var J=[];if(O.renderer.linearAdSequenceRenderer)var w=function(W){W=aPg(W.slotId,O,n,X(W),L,F,x);J=W.CUo;return W.hc}; else if(O.renderer.instreamVideoAdRenderer)w=function(W){var N=W.slotId;W=X(W);var q=x,y=O.config.adPlacementConfig,e=Ro0(y),d=e.I2,B=e.bR;e=O.renderer.instreamVideoAdRenderer;var R;if(e==null?0:(R=e.playerOverlay)==null?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var a=Rp(e,q);R=Math.min(d+a.videoLengthSeconds*1E3,B);q=new qa(0,[a.videoLengthSeconds]);B=a.videoLengthSeconds;var Lv=a.playerVars,Fa=a.instreamAdPlayerOverlayRenderer,l9=a.playerOverlayLayoutRenderer, S=a.adVideoId,v=Cv9(O),T=a.vj;a=a.d7;var p=e==null?void 0:e.adLayoutLoggingData;e=e==null?void 0:e.sodarExtensionData;N=CL(n.W.get(),"LAYOUT_TYPE_MEDIA",N);var ce={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",jp:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",vj:T,layoutExitNormalTriggers:[new Gd(n.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new Lb(L),new q_(B),new kr(Lv),new Qi(d),new eO(R),Fa&&new Xc(Fa), l9&&new oz(l9),new t9(y),new g$(S),new vT(q),new Iz(v),e&&new M_(e),new WC({current:null}),new jO({}),new Kb(a)].filter(t9a)),yp:W(ce),adLayoutLoggingData:p}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var H=vs5(l,L,O.adSlotLoggingData,w);Z.push(H);for(var A=g.P(J),b=A.next();!b.done;b=A.next()){var r=b.value,U=r(l,X);if(U instanceof C)return U;Z.push.apply(Z,g.E(U))}}catch(W){return new C(W,{errorMessage:W.message,AdPlacementRenderer:O,numberOfSurveyRenderers:l45(O)})}return Z}; l45=function(l){l=(l.renderer.linearAdSequenceRenderer||{}).linearAds;return l!=null&&l.length?l.filter(function(n){var O,L;return((O=g.z(n,Hi))==null?void 0:(L=O.playerOverlay)==null?void 0:L.instreamSurveyAdRenderer)!=null}).length:0}; aPg=function(l,n,O,L,X,F,x){var Z=n.config.adPlacementConfig,J=Ro0(Z),w=J.I2,H=J.bR;J=(n.renderer.linearAdSequenceRenderer||{}).linearAds;if(J==null||!J.length)throw new TypeError("Expected linear ads");var A=[],b={Sy:w,sS:0,mJ3:A};J=J.map(function(U){return O0g(l,U,b,O,L,Z,X,H,x)}).map(function(U,W){W=new qa(W,A); return U(W)}); var r=J.map(function(U){return U.Rf}); return{hc:gg5(O,l,w,r,Z,Cv9(n),L,H,F),CUo:J.map(function(U){return U.DJf})}}; O0g=function(l,n,O,L,X,F,x,Z,J){var w=Rp(g.z(n,Hi),J),H=O.Sy,A=O.sS,b=Math.min(H+w.videoLengthSeconds*1E3,Z);O.Sy=b;O.sS++;O.mJ3.push(w.videoLengthSeconds);var r,U,W=(r=g.z(n,Hi))==null?void 0:(U=r.playerOverlay)==null?void 0:U.instreamSurveyAdRenderer;if(w.adVideoId==="nPpU29QrbiU"&&W==null)throw new TypeError("Survey slate media has no survey overlay");return function(N){zb(w.playerVars,N);var q,y,e=w.videoLengthSeconds,d=w.playerVars,B=w.vj,R=w.d7,a=w.instreamAdPlayerOverlayRenderer,Lv=w.playerOverlayLayoutRenderer, Fa=w.adVideoId,l9=(q=g.z(n,Hi))==null?void 0:q.adLayoutLoggingData;q=(y=g.z(n,Hi))==null?void 0:y.sodarExtensionData;y=CL(L.W.get(),"LAYOUT_TYPE_MEDIA",l);var S={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",jp:"adapter"};N={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",vj:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"adapter",clientMetadata:new XY([new Lb(x),new q_(e),new kr(d),new Qi(H),new eO(b),new Yr(A),new WC({current:null}), a&&new Xc(a),Lv&&new oz(Lv),new t9(F),new g$(Fa),new vT(N),q&&new M_(q),W&&new fb(W),new jO({}),new Kb(R)].filter(t9a)),yp:X(S),adLayoutLoggingData:l9};e=KF9(g.z(n,Hi),F,x,N.layoutId,L);return{Rf:N,DJf:e}}}; Rp=function(l,n){if(!l)throw new TypeError("Expected instream video ad renderer");if(!l.playerVars)throw new TypeError("Expected player vars in url encoded string");var O=Lh(l.playerVars),L=Number(O.length_seconds);if(isNaN(L))throw new TypeError("Expected valid length seconds in player vars");var X=Number(l.trimmedMaxNonSkippableAdDurationMs);L=isNaN(X)?L:Math.min(L,X/1E3);X=l.playerOverlay||{};X=X.instreamAdPlayerOverlayRenderer===void 0?null:X.instreamAdPlayerOverlayRenderer;var F=l.playerOverlay|| {};F=F.playerOverlayLayoutRenderer===void 0?null:F.playerOverlayLayoutRenderer;var x=O.video_id;x||(x=(x=l.externalVideoId)?x:void 0);if(!x)throw new TypeError("Expected valid video id in IVAR");if(n&&L===0){var Z;n=(Z=LZk[x])!=null?Z:L}else n=L;return{playerVars:O,videoLengthSeconds:n,instreamAdPlayerOverlayRenderer:X,playerOverlayLayoutRenderer:F,adVideoId:x,vj:l.pings?ya(l.pings):new Map,d7:kx(l.pings)}}; Cv9=function(l){l=Number(l.driftRecoveryMs);return isNaN(l)||l<=0?null:l}; Ro0=function(l){var n=l.adTimeOffset||{};l=n.offsetEndMilliseconds;n=Number(n.offsetStartMilliseconds);if(isNaN(n))throw new TypeError("Expected valid start offset");l=Number(l);if(isNaN(l))throw new TypeError("Expected valid end offset");return{I2:n,bR:l}}; XTi=function(l){var n,O=(n=on(l.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current;if(!O)return null;n=on(l.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=l.layoutId,X=on(l.clientMetadata,"metadata_type_content_cpn"),F=on(l.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),x=on(l.clientMetadata,"metadata_type_player_underlay_renderer"),Z=on(l.clientMetadata,"metadata_type_ad_placement_config"),J=on(l.clientMetadata,"metadata_type_video_length_seconds"); var w=nL(l.clientMetadata,"metadata_type_layout_enter_ms")&&nL(l.clientMetadata,"metadata_type_layout_exit_ms")?(on(l.clientMetadata,"metadata_type_layout_exit_ms")-on(l.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{dE:L,contentCpn:X,Nf:O,Px:n,instreamAdPlayerOverlayRenderer:F,instreamAdPlayerUnderlayRenderer:x,adPlacementConfig:Z,videoLengthSeconds:J,l_:w,inPlayerLayoutId:on(l.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:on(l.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; xmi=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U){L=UT(L,"SLOT_TYPE_PLAYER_BYTES");l=ogi(X,l,x,O,L,J,w);if(l instanceof C)return l;var W;w=(W=on(l.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:W.layoutId;if(!w)return new C("Invalid adNotify layout");n=FZ5(w,X,F,O,Z,n,J,H,A,b,r,U,x);return n instanceof C?n:[l].concat(g.E(n))}; FZ5=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){O=hg0(n,O,L,F,x,Z,J,w,H,A,b);if(O instanceof C)return O;l=Z0i(n,l,x,X,O);return l instanceof C?l:[].concat(g.E(l.yE),[l.Fr])}; wT9=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){n=hg0(l,n,O,X,F,Z,J,w,H,A,b,r);if(n instanceof C)return n;l=J9k(l,O,F,x,L,Z.tA,n);return l instanceof C?l:l.yE.concat(l.Fr)}; hg0=function(l,n,O,L,X,F,x,Z,J,w,H,A){var b=C6(L,O,w);return b instanceof LL?new C(b):w.C.j().experiments.MQ("html5_refactor_in_player_slot_generation")?function(r){var U=new qa(0,[b.nI]);r=H0g(n,b.layoutId,b.Ep,O,tl(b.playerVars,b.qk,F,J,U),b.nI,X,U,x(r),Z.get(b.Ep.externalVideoId),A);U=[];if(b.Ep.playerOverlay.instreamAdPlayerOverlayRenderer){var W=XTi(r);if(!W)return AV("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,r),{layout:r,yE:[]}; U=[A90(l,W.contentCpn,W.dE,function(q){return vi(n,q.slotId,"core",W,wg(H,q))},W.inPlayerSlotId)].concat(g.E(U)); if(W.instreamAdPlayerUnderlayRenderer&&lZ(w)){var N=W.instreamAdPlayerUnderlayRenderer;U=[b09(l,W.contentCpn,W.dE,function(q){return r90(n,q.slotId,N,W.adPlacementConfig,W.dE,wg(H,q))})].concat(g.E(U))}}return{layout:r, yE:U}}:function(r){var U=new qa(0,[b.nI]); return{layout:H0g(n,b.layoutId,b.Ep,O,tl(b.playerVars,b.qk,F,J,U),b.nI,X,U,x(r),Z.get(b.Ep.externalVideoId),A),yE:[]}}}; C6=function(l,n,O){if(!l.playerVars)return new LL("No playerVars available in InstreamVideoAdRenderer.");var L,X;if(l.elementId==null||l.playerVars==null||l.playerOverlay==null||((L=l.playerOverlay)==null?void 0:L.instreamAdPlayerOverlayRenderer)==null&&((X=l.playerOverlay)==null?void 0:X.playerOverlayLayoutRenderer)==null||l.pings==null||l.externalVideoId==null)return new LL("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:l});L=Lh(l.playerVars);X=Number(L.length_seconds); isNaN(X)&&(X=0,AV("Expected valid length seconds in player vars but got NaN"));if(O.EU(n.kind==="AD_PLACEMENT_KIND_START")){if(l.layoutId===void 0)return new LL("Expected server generated layout ID in instreamVideoAdRenderer");n=l.layoutId}else n=l.elementId;return{layoutId:n,Ep:l,playerVars:L,qk:l.playerVars,nI:X}}; tl=function(l,n,O,L,X){l.iv_load_policy=L;n=Lh(n);if(n.cta_conversion_urls)try{l.cta_conversion_urls=JSON.parse(n.cta_conversion_urls)}catch(F){AV(F)}O.ra&&(l.ctrl=O.ra);O.OX&&(l.ytr=O.OX);O.vD&&(l.ytrcc=O.vD);O.isMdxPlayback&&(l.mdx="1");l.vvt&&(l.vss_credentials_token=l.vvt,O.dH&&(l.vss_credentials_token_type=O.dH),O.mdxEnvironment&&(l.mdx_environment=O.mdxEnvironment));zb(l,X);return l}; Um9=function(l){var n=new Map;l=g.P(l);for(var O=l.next();!O.done;O=l.next())(O=O.value.renderer.remoteSlotsRenderer)&&O.hostElementId&&n.set(O.hostElementId,O);return n}; nW=function(l){return l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; uV9=function(l){return l!=null}; qE9=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){for(var U=[],W=g.P(l),N=W.next();!N.done;N=W.next())if(N=N.value,!JMi(N)&&!rM5(N)){var q=nW(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger,y=J.EU(q),e=PB0(N,w,L,O.Tx,y);if(e instanceof C)return e;var d=void 0,B={slotId:N.adSlotMetadata.slotId,slotType:N.adSlotMetadata.slotType,slotPhysicalPosition:(d=N.adSlotMetadata.slotPhysicalPosition)!=null?d:1,jp:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers, slotExpirationTriggers:e.slotExpirationTriggers},R=g.z(N.fulfillmentContent.fulfilledLayout,q0);if(R){if(!Dc(R))return new C("Invalid PlayerBytesAdLayoutRenderer");d=A&&!(nW(N)&&N.slotEntryTrigger.beforeContentVideoIdStartedTrigger);e=e.slotFulfillmentTriggers.some(function(a){return a instanceof mg}); y=d?T3a(B,N.adSlotMetadata.triggerEvent,R,O,L,F,w,l,y,b,e,r):WZf(B,N.adSlotMetadata.triggerEvent,R,n,O,L,X,F,x,Z,J,w,l,H,y,N.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof C)return y;e=[];nW(N)&&e.push(new vC({Om:nW(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));d&&e.push(new jO({}));O.tA&&e.push(new sP({}));e.push(new Cb(q));N=Object.assign({},B,{clientMetadata:new XY(e),fulfilledLayout:y.layout,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});U.push.apply(U,g.E(y.yE)); U.push(N)}else if(q=g.z(N.fulfillmentContent.fulfilledLayout,Qq)){if(!Zuv(q))return new C("Invalid PlayerUnderlayAdLayoutRenderer");q=Egk(q,L,O.Tx,F,B,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(q instanceof C)return q;N=Object.assign({},B,{clientMetadata:new XY([]),fulfilledLayout:q,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});U.push(N)}else if(q=g.z(N.fulfillmentContent.fulfilledLayout,Huk)){if(!nsk(q))return new C("Invalid AboveFeedAdLayoutRenderer");q= N38(q,L,O.Tx,F,B,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(q instanceof C)return q;N=Object.assign({},B,{clientMetadata:new XY([]),fulfilledLayout:q,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});U.push(N)}else if(q=g.z(N.fulfillmentContent.fulfilledLayout,AM9)){if(!n6(q.adLayoutMetadata)||!g.z(q.renderingContent,Oc))return new C("Invalid BelowPlayerAdLayoutRenderer");q=N38(q,L,O.Tx,F,B,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId); if(q instanceof C)return q;N=Object.assign({},B,{clientMetadata:new XY([]),fulfilledLayout:q,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});U.push(N)}else if(q=g.z(N.fulfillmentContent.fulfilledLayout,eQ)){if(!k2(q))return new C("Invalid PlayerBytesSequenceItemAdLayoutRenderer");q=Dm8(q,L,O.Tx,F,B,N.adSlotMetadata.triggerEvent);if(q instanceof C)return q;N=Object.assign({},B,{clientMetadata:new XY([]),fulfilledLayout:q,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});U.push(N)}else return new C("Unable to retrieve a client slot ["+ B.slotType+"] from a given AdSlotRenderer")}return U}; Dm8=function(l,n,O,L,X,F){var x={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,jp:"core"};n=O1(l,n,O);return n instanceof C?n:Object.assign({},x,{renderingContent:l.renderingContent,vj:ya(l.renderingContent.pings)},n,{yp:wg(L,X)(x),clientMetadata:new XY([new t9(gf(F))]),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}; N38=function(l,n,O,L,X,F,x){var Z={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,jp:"core"};n=O1(l,n,O);if(n instanceof C)return n;O=[];O.push(new t9(gf(F)));F==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&x!==void 0&&O.push(new r$(x));return Object.assign({},Z,{renderingContent:l.renderingContent,vj:new Map([["impression",k05(l)]])},n,{yp:wg(L,X)(Z),clientMetadata:new XY(O),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}; Egk=function(l,n,O,L,X,F,x){if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(x=g.z(l.renderingContent,yq))if(x=g.z(x.sidePanel,xT9)){var Z={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,jp:"core"};n=O1(l,n,O);l=n instanceof C?n:Object.assign({},Z,{renderingContent:l.renderingContent,vj:new Map([["impression",x.impressionPings||[]],["resume",x.resumePings||[]]])},n,{yp:wg(L,X)(Z),clientMetadata:new XY([new t9(gf(F))]),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}else l= new C("DismissablePanelTextPortraitImageRenderer is missing");else l=new C("SqueezebackPlayerSidePanelRenderer is missing");else l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.z(l.renderingContent,Xa0)?(x={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,jp:"core"},n=O1(l,n,O),l=n instanceof C?n:Object.assign({},x,{renderingContent:l.renderingContent,vj:new Map},n,{yp:wg(L,X)(x),clientMetadata:new XY([new t9(gf(F))]),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})): l=new C("CounterfactualRenderer is missing"):l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?l=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?l=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.z(l.renderingContent,M0)?(F={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType, jp:"core"},n=O1(l,n,O),l=n instanceof C?n:x?Object.assign({},F,{renderingContent:l.renderingContent,vj:new Map},n,{yp:wg(L,X)(F),clientMetadata:new XY([new r$(x)]),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData}):new C("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):l=new C("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.z(l.renderingContent,osg)? (F={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,jp:"core"},n=O1(l,n,O),l=n instanceof C?n:Object.assign({},F,{renderingContent:l.renderingContent,vj:new Map([])},n,{yp:wg(L,X)(F),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new XY([])})):l=new C("AdsEngagementPanelSectionListViewModel is missing"):l=new C("LayoutType ["+l.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return l}; T3a=function(l,n,O,L,X,F,x,Z,J,w,H,A){if((A==null?void 0:A.Tz)===void 0||(A==null?void 0:A.wP)===void 0)return new C("Cached ad break range from cue point is missing");var b=O1(O,X,L.Tx);if(b instanceof C)return b;b={layoutExitMuteTriggers:[],layoutExitNormalTriggers:b.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Pk:[],layoutExitUserInputSubmittedTriggers:[]};if(g.z(O.renderingContent,Hi))return l=y9v(l,n,O,b,X,F,Z,J,L.Tx,x,A.Tz,A.wP),l instanceof C?l:l.lK===void 0?new C("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:l.layout,yE:[l.lK]};var r=g.z(O.renderingContent,Jl);if(r){if(!n6(O.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!wm(r))return new C("Invalid sequential layout");r=r.sequentialLayouts.map(function(U){return U.playerBytesAdLayoutRenderer}); l=Mh8(l,n,O,b,r,X,L,F,x,J,Z,w,A.Tz,A.wP,H);return l instanceof C?l:{layout:l.E5,yE:l.yE}}return new C("Not able to convert a sequential layout")}; Mh8=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U){var W=QI0(X,b,r);if(W instanceof C)return W;var N=[],q=[];W=g.P(W);for(var y=W.next();!y.done;y=W.next()){var e=y.value;y=l;var d=X[e.sS],B=e,R=n;e=F;var a=x,Lv=Z,Fa=J,l9=w,S=H,v=LW(d);if(v instanceof C)y=v;else{var T={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,jp:"adapter"};B=eg5(R,d,B,e);B instanceof C?y=B:(y=Object.assign({},T,XT,{vj:v,renderingContent:d.renderingContent,clientMetadata:new XY(B),yp:wg(Lv,y)(T),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData}), y=(d=o7(S,y,e,a.Tx,Lv,Fa,l9,void 0,!0))?d instanceof C?d:{layout:y,lK:d}:new C("Expecting associatedInPlayerSlot"))}if(y instanceof C)return y;N.push(y.layout);q.push(y.lK)}X={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,jp:"core"};n=[new Iz(Number(O.driftRecoveryMs)),new Qi(b),new eO(r),new t9(gf(n)),new Rz(A),new jO({})];U&&n.push(new li({}));return{E5:Object.assign({},X,L,{Wd:N,vj:new Map,clientMetadata:new XY(n),yp:wg(Z,l)(X)}),yE:q}}; y9v=function(l,n,O,L,X,F,x,Z,J,w,H,A){if(!Dc(O))return new C("Invalid PlayerBytesAdLayoutRenderer");var b=LW(O);if(b instanceof C)return b;var r={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,jp:"core"},U=g.z(O.renderingContent,Hi);if(!U)return new C("Invalid rendering content for DAI media layout");U=Rp(U,!1);H={MZ:U,sS:0,Sy:H,zR:Math.min(H+U.videoLengthSeconds*1E3,A),IP:new qa(0,[U.videoLengthSeconds])};var W;A=(W=Number(O.driftRecoveryMs))!=null?W:void 0;n=eg5(n, O,H,X,A);if(n instanceof C)return n;l=Object.assign({},r,L,{vj:b,renderingContent:O.renderingContent,clientMetadata:new XY(n),yp:wg(F,l)(r),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData});return(X=o7(x,l,X,J,F,w,Z,void 0,!0))?X instanceof C?X:{layout:l,lK:X}:new C("Expecting associatedInPlayerSlot")}; WZf=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W){var N=O1(O,F,X.Tx);if(N instanceof C)return N;if(g.z(O.renderingContent,Hi)){J=YE5([O],X,J);if(J instanceof C)return J;if(J.length!==1)return new C("Only expected one media layout.");l=jI5(l,n,O,N,J[0],void 0,"core",L,F,x,Z,w,b,r,U,X.Tx,A,void 0,W);return l instanceof C?l:{layout:l.layout,yE:l.lK?[l.lK]:[]}}var q=g.z(O.renderingContent,Jl);if(q){if(!n6(O.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!wm(q))return new C("Invalid sequential layout"); q=q.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer}); l=G05(l,n,O.adLayoutMetadata,N,q,L,F,X,J,x,Z,w,H,A,U,b,r,W);return l instanceof C?l:{layout:l.E5,yE:l.yE}}return new C("Not able to convert a sequential layout")}; G05=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q){var y=new OP({current:null}),e=YE5(X,Z,J);if(e instanceof C)return e;J=[];for(var d=[],B=void 0,R=0;R<X.length;R++){var a=X[R];if(g.z(a.renderingContent,Hi)){B=Iv(b)&&dX(b)?e[R+1]:void 0;B=jI5(l,n,a,XT,e[R],B,"adapter",F,x,w,H,A,W,N,U,Z.Tx,r,y,q);if(B instanceof C)return B;J.push(B.layout);B.lK&&d.push(B.lK);B=e[R]}else if(g.z(a.renderingContent,Al)){var Lv=l,Fa=H;if(Dc(a)){var l9=g.z(a.renderingContent,Al);if(l9&&l9.playerVars!==void 0){var S={layoutId:a.adLayoutMetadata.layoutId, layoutType:a.adLayoutMetadata.layoutType,jp:"adapter"};l9=Lh(l9.playerVars);l9.autoplay="1";a=Object.assign({},S,XT,{renderingContent:a.renderingContent,clientMetadata:new XY([new GE({}),new t9({kind:"AD_PLACEMENT_KIND_START"}),new WC({current:null}),new kr(l9)]),vj:new Map,yp:wg(Fa,Lv)(S),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}else a=new C("Invalid ad intro renderer")}else a=new C("Invalid PlayerBytesAdLayoutRenderer");if(a instanceof C)return a;J.push(a)}else if(g.z(a.renderingContent, J6))if(N){a=mmq(l,a,H,gf(n),B);if(a instanceof C)return a;J.push(a);a=o7(W,a,x,Z.Tx,H,r,U,y,!1);if(a instanceof C)return a;if(a)d.push(a);else return new C("Not able to retrieve InPlayer slot for endcap")}else{a:{Lv=a.adLayoutMetadata.layoutId;Fa=g.P(F);for(S=Fa.next();!S.done;S=Fa.next()){S=S.value;var v=l9=void 0,T=((l9=S.renderer)==null?void 0:(v=l9.linearAdSequenceRenderer)==null?void 0:v.linearAds)||[];l9=g.P(T);for(v=l9.next();!v.done;v=l9.next())if((v=g.z(v.value,J6))&&v.inPlayerSlotId!==void 0&& v.inPlayerLayoutId!==void 0&&v.associatedPlayerBytesLayoutId!==void 0&&v.associatedPlayerBytesLayoutId===Lv){Lv={Nb:v,adPlacementConfig:S.config.adPlacementConfig};break a}}Lv=new C("Not able to find associated InPlayer slot for endcap")}if(Lv instanceof C)return Lv;a=mmq(l,a,H,Lv.adPlacementConfig,B);if(a instanceof C)return a;J.push(a);a=I40(a.layoutId,r,x,Lv,y,H);if(a instanceof C)return a;d.push(a)}}n={layoutId:O.layoutId,layoutType:O.layoutType,jp:"core"};return{E5:Object.assign({},n,L,{Wd:J, vj:new Map,clientMetadata:new XY([y]),yp:wg(H,l)(n)}),yE:d}}; jI5=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y){if(!Dc(O))return new C("Invalid PlayerBytesAdLayoutRenderer");var e=LW(O);if(e instanceof C)return e;x={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,jp:x};a:{var d=O.adLayoutMetadata.layoutId,B=g.z(O.renderingContent,Hi);if(B&&Zc(B)){var R=[];if(r)R.push(new t9(gf(n)));else{b:{Z=g.P(Z);for(n=Z.next();!n.done;n=Z.next()){n=n.value;var a=B4q(n.renderer)||[],Lv=g.P(a);for(a=Lv.next();!a.done;a=Lv.next())if(a=a.value, a.associatedPlayerBytesLayoutId===d){a.associatedPlayerBytesLayoutId?(Z=a.playerOverlay,Lv=Z!==void 0&&Z.playerOverlayLayoutRenderer!==void 0&&Z.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&Z.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,Z=Z!==void 0&&Z.instreamAdPlayerOverlayRenderer!==void 0&&Z.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&Z.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||Lv):Z=!1;n=Z?{instreamVideoAdRenderer:a,adPlacementConfig:n.config.adPlacementConfig}: new C("Invalid InPlayer shim");break b}}n=new C("Not able to find associated InPlayer slot")}if(n instanceof C){F=n;break a}Z=n.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;a=n.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var Fa;Lv=(Fa=Z==null?void 0:Z.inPlayerSlotId)!=null?Fa:a==null?void 0:a.inPlayerSlotId;var l9;Fa=(l9=Z==null?void 0:Z.inPlayerLayoutId)!=null?l9:a==null?void 0:a.inPlayerLayoutId;if(Lv===void 0){F=new C("InPlayer shim slot id is undefined"); break a}if(Fa===void 0){F=new C("InPlayer shim layout id is undefined");break a}R.push(new UP(Fa),new PC(Lv),new Yr(X.IP.adPodIndex),new t9(n.adPlacementConfig));Z&&R.push(new Xc(Z));a&&R.push(new oz(a))}R.push(new vT(X.IP),new g$(B.externalVideoId),new Lb(J),new pb({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,progressCommands:B.adVideoProgressCommands}),new kr(X.Mj),new WC({current:null}),new q_(X.ax5.nI),new Kb(kx(B.pings)),new lJ(X.IP.adPodIndex)); y&&R.push(new r$(y));(X=dma(d,b))&&R.push(new xr(X));F&&R.push(new yi(F.Mj));B.adNextParams&&R.push(new Sh(B.adNextParams));B.clickthroughEndpoint&&R.push(new p0(B.clickthroughEndpoint));B.legacyInfoCardVastExtension&&R.push(new zE(B.legacyInfoCardVastExtension));B.sodarExtensionData&&R.push(new M_(B.sodarExtensionData));q&&B.adPodSkipTarget&&B.adPodSkipTarget>0&&(R.push(q),R.push(new nb(B.adPodSkipTarget)));(F=w.get(B.externalVideoId))&&R.push(new BC(F));F=R}else F=new C("Invalid vod media renderer")}if(F instanceof C)return F;l=Object.assign({},x,L,{vj:e,renderingContent:O.renderingContent,clientMetadata:new XY(F),yp:wg(H,l)(x),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData});O=g.z(O.renderingContent,Hi);if(!O||!Zc(O))return new C("Invalid meida renderer");A=p6(A,O.externalVideoId);A.instreamVideoAdRenderer=O;A.JJ="AD_PLACEMENT_KIND_START";return r?(J=o7(b,l,J,W,H,N,U,q,!1),J instanceof C?J:dma(l.layoutId,b)&&J?{layout:Object.assign({},l,{clientMetadata:new XY(F.concat(new h8(J)))})}:{layout:l,lK:J}): {layout:l}}; mmq=function(l,n,O,L,X){if(!Dc(n))return new C("Invalid PlayerBytesAdLayoutRenderer");var F=g.z(n.renderingContent,J6);if(!F||F.durationMilliseconds===void 0)return new C("Invalid endcap renderer");var x={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,jp:"adapter"};L=[new iJ(F.durationMilliseconds),new pb({impressionCommands:void 0,abandonCommands:F.abandonCommands?[{commandExecutorCommand:F.abandonCommands}]:void 0,completeCommands:F.completionCommands}),new t9(L), new uJ("LAYOUT_TYPE_ENDCAP")];if(X){L.push(new lJ(X.IP.adPodIndex-1));L.push(new Yr(X.IP.adPodIndex));var Z;L.push(new nb((Z=X.adPodSkipTarget)!=null?Z:-1))}return Object.assign({},x,XT,{renderingContent:n.renderingContent,clientMetadata:new XY(L),vj:F.skipPings?new Map([["skip",F.skipPings]]):new Map,yp:wg(O,l)(x),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}; o7=function(l,n,O,L,X,F,x,Z,J){l=l.filter(function(H){return H.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&H.adSlotMetadata.triggeringSourceLayoutId===n.layoutId}); if(l.length!==0){if(l.length!==1)return new C("Invalid InPlayer slot association for the given PlayerBytes layout");l=l[0];x=PB0(l,F,O,L,x);if(x instanceof C)return x;var w;F={slotId:l.adSlotMetadata.slotId,slotType:l.adSlotMetadata.slotType,slotPhysicalPosition:(w=l.adSlotMetadata.slotPhysicalPosition)!=null?w:1,jp:"core",slotEntryTrigger:x.slotEntryTrigger,slotFulfillmentTriggers:x.slotFulfillmentTriggers,slotExpirationTriggers:x.slotExpirationTriggers};w=g.z(l.fulfillmentContent.fulfilledLayout, wa0);if(!w||!gs0(w))return new C("Invalid InPlayerAdLayoutRenderer");x={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,jp:"core"};O=O1(w,O,L);if(O instanceof C)return O;L=[];J&&L.push(new jO({}));if(w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")L.push.apply(L,g.E($m5(l.adSlotMetadata.triggerEvent,n)));else if(w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")L.push(new t9(gf(l.adSlotMetadata.triggerEvent))),Z&&L.push(Z);else return new C("Not able to parse an SDF InPlayer layout"); X=Object.assign({},x,O,{renderingContent:w.renderingContent,vj:new Map,yp:wg(X,F)(x),clientMetadata:new XY(L),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},F,{fulfilledLayout:X,clientMetadata:new XY([])})}}; $m5=function(l,n){var O=[];O.push(new t9(gf(l)));O.push(new r$(n.layoutId));(l=on(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&O.push(new WC(l));(l=on(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&O.push(new OP(l));(l=on(n.clientMetadata,"metadata_type_remote_slots_data"))&&O.push(new BC(l));(l=on(n.clientMetadata,"metadata_type_ad_next_params"))&&O.push(new Sh(l));(l=on(n.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&O.push(new p0(l));(l= on(n.clientMetadata,"metadata_type_ad_pod_info"))&&O.push(new vT(l));(n=on(n.clientMetadata,"metadata_type_ad_video_id"))&&O.push(new g$(n));return O}; I40=function(l,n,O,L,X,F){function x(w){return FT(n,w)} var Z=L.Nb.inPlayerSlotId,J={layoutId:L.Nb.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",jp:"core"};O={slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:new eP(x,l),slotFulfillmentTriggers:[new sZ(x,Z)],slotExpirationTriggers:[new fS(x,Z),new zd(x,O)]};l=Object.assign({},J,{layoutExitNormalTriggers:[new jP(x,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],vj:new Map,clientMetadata:new XY([new J8(L.Nb), new t9(L.adPlacementConfig),X]),yp:wg(F,O)(J),adLayoutLoggingData:L.Nb.adLayoutLoggingData});return Object.assign({},O,{clientMetadata:new XY([new d$(l)])})}; dma=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next())if(O=O.value,O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var L=g.z(O.fulfillmentContent.fulfilledLayout,Qq);if(L&&(L=g.z(L.renderingContent,yq))&&L.associatedPlayerBytesLayoutId===l)return O}}; PB0=function(l,n,O,L,X){var F=Vhq(i6(l.slotEntryTrigger,O,L),X,l,n);if(F instanceof C)return F;for(var x=[],Z=g.P(l.slotFulfillmentTriggers),J=Z.next();!J.done;J=Z.next()){J=i6(J.value,O,L);if(J instanceof C)return J;x.push(J)}x=B39(x,X,l,n);n=[];l=g.P(l.slotExpirationTriggers);for(X=l.next();!X.done;X=l.next()){X=i6(X.value,O,L);if(X instanceof C)return X;n.push(X)}return{slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:n}}; Vhq=function(l,n,O,L){return n&&O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l instanceof k4?new Dv(function(X){return FT(L,X)},O.adSlotMetadata.slotId):l}; B39=function(l,n,O,L){return n&&O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?l.map(function(X){return X instanceof sZ?new Ri(function(F){return FT(L,F)},O.adSlotMetadata.slotId):X}):l}; O1=function(l,n,O){for(var L=[],X=g.P(l.layoutExitNormalTriggers||[]),F=X.next();!F.done;F=X.next()){F=i6(F.value,n,O);if(F instanceof C)return F;L.push(F)}X=[];F=g.P(l.layoutExitSkipTriggers||[]);for(var x=F.next();!x.done;x=F.next()){x=i6(x.value,n,O);if(x instanceof C)return x;X.push(x)}F=[];x=g.P(l.layoutExitMuteTriggers||[]);for(var Z=x.next();!Z.done;Z=x.next()){Z=i6(Z.value,n,O);if(Z instanceof C)return Z;F.push(Z)}x=[];l=g.P(l.layoutExitUserInputSubmittedTriggers||[]);for(Z=l.next();!Z.done;Z= l.next()){Z=i6(Z.value,n,O);if(Z instanceof C)return Z;x.push(Z)}return{layoutExitNormalTriggers:L,layoutExitSkipTriggers:X,layoutExitMuteTriggers:F,layoutExitUserInputSubmittedTriggers:x,Pk:[]}}; LW=function(l){var n=g.z(l.renderingContent,Hi);if(n==null?0:n.pings)return ya(n.pings);l=g.z(l.renderingContent,J6);return(l==null?0:l.skipPings)?new Map([["skip",l.skipPings]]):new Map}; eg5=function(l,n,O,L,X){n=g.z(n.renderingContent,Hi);if(!n)return new C("Invalid rendering content for DAI media layout");l=[new Lb(L),new q_(O.MZ.videoLengthSeconds),new kr(O.MZ.playerVars),new Qi(O.Sy),new eO(O.zR),new Yr(O.sS),new t9(gf(l)),new g$(O.MZ.adVideoId),new vT(O.IP),n.sodarExtensionData&&new M_(n.sodarExtensionData),new WC({current:null}),new jO({}),new Kb(kx(n.pings))].filter(uV9);X!==void 0&&l.push(new Iz(X));return l}; QI0=function(l,n,O){l=l.map(function(J){return Rp(g.z(J.renderingContent,Hi),!1)}); var L=l.map(function(J){return J.videoLengthSeconds}),X=L.map(function(J,w){return new qa(w,L)}),F=n,x=O,Z=[]; l.forEach(function(J,w){x=Math.min(F+J.videoLengthSeconds*1E3,O);zb(J.playerVars,X[w]);Z.push({MZ:J,Sy:F,zR:x,sS:w,IP:X[w]});F=x}); return Z}; YE5=function(l,n,O){for(var L=[],X=g.P(l),F=X.next();!F.done;F=X.next())if(F=g.z(F.value.renderingContent,Hi)){if(!Zc(F))return new C("Invalid vod media renderer");L.push(c9f(F))}X=L.map(function(A){return A.nI}); F=[];for(var x=0,Z=0;Z<l.length;Z++){var J=g.z(l[Z].renderingContent,Hi);if(J){var w=new qa(x,X),H=tl(L[x].playerVars,L[x].qk,n,O,w);F[Z]={IP:w,adPodSkipTarget:J.adPodSkipTarget,ax5:L[x],Mj:H};x++}}return F}; c9f=function(l){var n=Lh(l.playerVars),O=Number(n.length_seconds);isNaN(O)&&(O=0,AV("Expected valid length seconds in player vars but got NaN"));return{playerVars:n,qk:l.playerVars,nI:O}}; gf=function(l){switch(l){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; k05=function(l){if(g.z(l.renderingContent,L6)){var n;return((n=g.z(l.renderingContent,L6))==null?void 0:n.impressionPings)||[]}if(g.z(l.renderingContent,Oc)){var O;return((O=g.z(l.renderingContent,Oc))==null?void 0:O.impressionPings)||[]}if(g.z(l.renderingContent,gm)){var L;return((L=g.z(l.renderingContent,gm))==null?void 0:L.impressionPings)||[]}return[]}; zgi=function(l,n,O,L,X,F,x,Z,J){var w=O.pings;return w?[i0k(l,F,Z,X,function(H){var A=H.slotId;H=J(H);var b=O.adLayoutLoggingData,r=O.progressCommands;A=CL(n.W.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",A);var U={layoutId:A,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",jp:"core"},W=ya(w),N=[new zd(n.S,F)],q;var y=w==null?void 0:(q=w.activeViewTracking)==null?void 0:q.identifier;return{layoutId:A,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",vj:W,layoutExitNormalTriggers:N,layoutExitSkipTriggers:[], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new t9(L),new Kb(kx(w)),new az(y),new q_(x/1E3),new pb({progressCommands:r}),new cC(x/1E3)]),yp:H(U),adLayoutLoggingData:b}})]:new C("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:O})}; pTa=function(l,n,O,L,X,F,x,Z){l=SEi(l,O,F,x,L,function(J){var w=J.slotId;J=Z(J);w=CL(n.W.get(),"LAYOUT_TYPE_FORECASTING",w);var H={layoutId:w,layoutType:"LAYOUT_TYPE_FORECASTING",jp:"core"},A=new Map,b=X.impressionUrls;b&&A.set("impression",b);return{layoutId:w,layoutType:"LAYOUT_TYPE_FORECASTING",vj:A,layoutExitNormalTriggers:[new i$(n.S,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new mV(X),new t9(O)]),yp:J(H)}}); return l instanceof C?l:[l]}; f4i=function(l,n,O,L,X,F,x){return[sIf(l,F,L,function(Z){var J=Z.slotId;Z=x(Z);J=CL(n.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);var w={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",jp:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",vj:new Map,layoutExitNormalTriggers:[new zd(n.S,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new Xc(X),new t9(O)]),yp:Z(w), adLayoutLoggingData:X.adLayoutLoggingData}})]}; a45=function(l,n,O,L,X,F,x,Z){l=KZi(l,O,F,x,L,function(J,w){var H=J.slotId;J=Z(J);var A=X.contentSupportedRenderer;A?A.textOverlayAdContentRenderer?(A=CL(n.W.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",H),w=xF(n,A,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",X,O,J,hi(n,w,H))):A.enhancedTextOverlayAdContentRenderer?(A=CL(n.W.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",H),w=xF(n,A,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",X,O,J,hi(n,w,H))):A.imageOverlayAdContentRenderer?(A=CL(n.W.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", H),w=hi(n,w,H),w.push(new v0(n.S,45E3,A)),w=xF(n,A,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",X,O,J,w)):w=new LL("InvideoOverlayAdRenderer without appropriate sub renderer"):w=new LL("InvideoOverlayAdRenderer without contentSupportedRenderer");return w}); return l instanceof C?l:[l]}; thf=function(l,n,O,L,X,F,x,Z,J){var w=Number(L.durationMilliseconds);return isNaN(w)?new C("Expected valid duration for AdActionInterstitialRenderer."):function(H){return Rgq(n,H.slotId,O,L,w,{impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands},L.skipPings?new Map([["skip",L.skipPings]]):new Map,x(H),function(A){return CB0(l,A,X,function(b,r){var U=b.slotId;b=x(b);U=CL(n.W.get(),"LAYOUT_TYPE_ENDCAP", U);return ap(n,U,r,O,b,"LAYOUT_TYPE_ENDCAP",[new J8(L),Z],L.adLayoutLoggingData)})},J,F-1,L.adLayoutLoggingData,F)}}; vgi=function(l,n,O,L){if(!O.playerVars)return new C("No playerVars available in AdIntroRenderer.");var X=Lh(O.playerVars);X.autoplay="1";return function(F){var x=F.slotId;F=L(F);x=CL(l.W.get(),"LAYOUT_TYPE_MEDIA",x);var Z={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",jp:"adapter"};return{PM:{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",vj:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"adapter",clientMetadata:new XY([new GE({}), new t9(n),new WC({current:null}),new kr(X)]),yp:F(Z)},JQ:[new Y4(l.S,x,["error"])],CB:[],rT:[],QH:[]}}}; nr8=function(l,n,O,L,X,F,x,Z,J,w){w=w===void 0?!1:w;var H=f6(X);if(!us0(X,w))return new C("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:X});if(H<=0)return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:X});var A=iuk(l,n,X,F,O,L,x);return A instanceof C?A:function(b){return la0(n,b.slotId,O,H,X,K6(X),x(b),A,Z,J)}}; Ob5=function(l,n,O,L,X,F,x,Z){function J(A){return CB0(l,A,L,w)} function w(A,b){var r=A.slotId;A=x(A);r=CL(n.W.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",r);return ap(n,r,b,O,A,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new w$(X),F],X.adLayoutLoggingData)} if(!Ese(X))return new C("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:X});var H=X.timeoutSeconds*1E3;return function(A){var b=A.slotId,r={impressionCommands:X.impressionCommands,completeCommands:X.timeoutCommands,skipCommands:X.dismissCommands};A=x(A);b=Zj(n,b,O,H,r,new Map,A,J,void 0,Ji(n,O,X.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));r=new UP(b.Mw);A=new lJ(Z);return{PM:{layoutId:b.layoutId,layoutType:b.layoutType,vj:b.vj,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:b.jp,clientMetadata:new XY([].concat(g.E(b.hT),[r,A])),yp:b.yp,adLayoutLoggingData:b.adLayoutLoggingData},JQ:[],CB:b.layoutExitMuteTriggers,rT:b.layoutExitUserInputSubmittedTriggers,QH:b.Pk,lK:b.lK}}}; LVa=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W){l=UT(l,"SLOT_TYPE_PLAYER_BYTES");L=ogi(n,x,L,X,l,w,H);if(L instanceof C)return L;var N;x=(N=on(L.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:N.layoutId;if(!x)return new C("Invalid adNotify layout");n=gr8(x,n,O,X,F,J,Z,w,A,b,r,U,W);return n instanceof C?n:[L].concat(g.E(n))}; gr8=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){O=XC0(n,O,L,F,x,Z,J,w,H,A,b);or9(F)?(L=FVq(n,l),l=UT(n.W.get(),"SLOT_TYPE_IN_PLAYER"),F=CL(n.W.get(),"LAYOUT_TYPE_SURVEY",l),Z=wf(n,L,Z),n=[].concat(g.E(Z.slotExpirationTriggers),[new y1(n.S,F)]),l=O({slotId:Z.slotId,slotType:Z.slotType,slotPhysicalPosition:Z.slotPhysicalPosition,slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:n,jp:Z.jp},{slotId:l,layoutId:F}),X=l instanceof C?l:{Fr:Object.assign({}, Z,{slotExpirationTriggers:n,clientMetadata:new XY([new d$(l.layout)]),adSlotLoggingData:X}),yE:l.yE}):X=Z0i(n,l,Z,X,O);return X instanceof C?X:[].concat(g.E(X.yE),[X.Fr])}; h19=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){n=XC0(l,n,O,X,F,x,J,w,H,A,b,r);or9(X)?(X=x_8(l,O,x,Z),X instanceof C?l=X:(Z=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER"),J=CL(l.W.get(),"LAYOUT_TYPE_SURVEY",Z),x=[].concat(g.E(X.slotExpirationTriggers),[new y1(l.S,J)]),Z=n({slotId:X.slotId,slotType:X.slotType,slotPhysicalPosition:X.slotPhysicalPosition,jp:X.jp,slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:x},{slotId:Z,layoutId:J}),l=Z instanceof C?Z:{Fr:{slotId:X.slotId, slotType:X.slotType,slotPhysicalPosition:X.slotPhysicalPosition,slotEntryTrigger:HP(l,O,X.slotId,X.slotEntryTrigger),slotFulfillmentTriggers:Ai(l,O,X.slotId,X.slotFulfillmentTriggers),slotExpirationTriggers:x,jp:X.jp,clientMetadata:new XY([new Cb(bZ(O)),new d$(Z.layout),new vC({Om:l.Om(O)})]),adSlotLoggingData:L},yE:Z.yE})):l=J9k(l,O,x,Z,L,J.tA,n);return l instanceof C?l:l.yE.concat(l.Fr)}; or9=function(l){l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(g.z(n.value,b6))return!0;return!1}; XC0=function(l,n,O,L,X,F,x,Z,J,w,H,A){return function(b,r){if(Iv(H)&&dX(H))a:{var U=Zba(L,O,H);if(U instanceof C)r=U;else{for(var W=0,N=[],q=[],y=[],e=[],d=[],B=[],R=new EP({current:null}),a=new OP({current:null}),Lv=!1,Fa=[],l9=0,S=[],v=0;v<L.length;v++){var T=L[v],p=g.z(T,Hi);if(p){p=C6(p,O,H);if(p instanceof LL){r=new C(p);break a}var ce=new qa(l9,U),WR=tl(p.playerVars,p.qk,x,w,ce);l9++;S[v]={renderer:T,data:p,IP:ce,Mj:WR}}}l9=-1;for(U=0;U<L.length;U++)if(v=L[U],T=g.z(v,Al)){v=vgi(n,O,T,Z);if(v instanceof C){r=v;break a}v=v(b);N.push(v.PM);q=[].concat(g.E(v.JQ),g.E(q));y=[].concat(g.E(v.CB),g.E(y));v.lK&&(Fa=[v.lK].concat(g.E(Fa)))}else if(g.z(v,Hi))T=S[U],l9=T.data,v=T.IP,T=T.Mj,p=S[U+1],ce=void 0,p&&(ce=p.Mj),v=J85(n,l9.layoutId,l9.Ep,O,T,l9.nI,F,v,Z(b),a,J.get(l9.Ep.externalVideoId),ce,A),W++,N.push(v.PM),q=[].concat(g.E(v.JQ),g.E(q)),y=[].concat(g.E(v.CB),g.E(y)),Lv||(B.push(a),Lv=!0),l9=(l9=l9.Ep.adPodSkipTarget)&&l9>0?l9:-1;else if(T=g.z(v,J6)){v=thf(l,n,O,T,F,W,Z,a,l9);if(v instanceof C){r= v;break a}v=v(b);N.push(v.PM);q=[].concat(g.E(v.JQ),g.E(q));y=[].concat(g.E(v.CB),g.E(y));v.lK&&(Fa=[v.lK].concat(g.E(Fa)))}else if(T=g.z(v,b6)){if(r===void 0){r=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:T});break a}v=nr8(l,n,O,F,T,R,Z,r,W,Rn(H,"supports_multi_step_on_desktop"));if(v instanceof C){r=v;break a}v=v(b);N.push(v.PM);v.lK&&Fa.push(v.lK);q=[].concat(g.E(v.JQ),g.E(q));y=[].concat(g.E(v.CB),g.E(y));e=[].concat(g.E(v.rT),g.E(e)); d=[].concat(g.E(v.QH),g.E(d));B=[R].concat(g.E(B))}else if(v=g.z(v,N0)){v=Ob5(l,n,O,F,v,R,Z,W);if(v instanceof C){r=v;break a}v=v(b);N.push(v.PM);v.lK&&Fa.push(v.lK);y=[].concat(g.E(v.CB),g.E(y))}else{r=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={Wd:N,layoutExitSkipTriggers:q,layoutExitUserInputSubmittedTriggers:e,Pk:d,layoutExitMuteTriggers:y,hT:B,yE:Fa}}}else a:if(W=Zba(L,O,H),W instanceof C)r=W;else{N=0;q=[];y=[];e=[];d=[];B=[];R=[];a=new EP({current:null});Lv=new OP({current:null}); Fa=!1;S=[];l9=-1;U=g.P(L);for(v=U.next();!v.done;v=U.next())if(v=v.value,g.z(v,Al)){v=vgi(n,O,g.z(v,Al),Z);if(v instanceof C){r=v;break a}v=v(b);q.push(v.PM);y=[].concat(g.E(v.JQ),g.E(y));e=[].concat(g.E(v.CB),g.E(e));v.lK&&(S=[v.lK].concat(g.E(S)))}else if(g.z(v,Hi)){l9=C6(g.z(v,Hi),O,H);if(l9 instanceof LL){r=new C(l9);break a}v=new qa(N,W);v=J85(n,l9.layoutId,l9.Ep,O,tl(l9.playerVars,l9.qk,x,w,v),l9.nI,F,v,Z(b),Lv,J.get(l9.Ep.externalVideoId),void 0,A);N++;q.push(v.PM);y=[].concat(g.E(v.JQ),g.E(y)); e=[].concat(g.E(v.CB),g.E(e));Fa||(R.push(Lv),Fa=!0);l9=(l9=l9.Ep.adPodSkipTarget)&&l9>0?l9:-1}else if(g.z(v,J6)){v=thf(l,n,O,g.z(v,J6),F,N,Z,Lv,l9);if(v instanceof C){r=v;break a}v=v(b);q.push(v.PM);y=[].concat(g.E(v.JQ),g.E(y));e=[].concat(g.E(v.CB),g.E(e));v.lK&&(S=[v.lK].concat(g.E(S)))}else if(g.z(v,b6)){if(r===void 0){r=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.z(v,b6)});break a}v=nr8(l,n,O,F,g.z(v,b6),a,Z,r,N,Rn(H,"supports_multi_step_on_desktop")); if(v instanceof C){r=v;break a}v=v(b);q.push(v.PM);v.lK&&S.push(v.lK);y=[].concat(g.E(v.JQ),g.E(y));e=[].concat(g.E(v.CB),g.E(e));d=[].concat(g.E(v.rT),g.E(d));B=[].concat(g.E(v.QH),g.E(B));R=[a].concat(g.E(R))}else if(g.z(v,N0)){v=Ob5(l,n,O,F,g.z(v,N0),a,Z,N);if(v instanceof C){r=v;break a}v=v(b);q.push(v.PM);v.lK&&S.push(v.lK);e=[].concat(g.E(v.CB),g.E(e))}else{r=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={Wd:q,layoutExitSkipTriggers:y,layoutExitUserInputSubmittedTriggers:d, Pk:B,layoutExitMuteTriggers:e,hT:R,yE:S}}r instanceof C?b=r:(B=b.slotId,W=r.Wd,N=r.layoutExitSkipTriggers,q=r.layoutExitMuteTriggers,y=r.layoutExitUserInputSubmittedTriggers,e=r.hT,b=Z(b),d=X?X.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=X?X.layoutId:CL(n.W.get(),d,B),R={layoutId:B,layoutType:d,jp:"core"},b={layout:{layoutId:B,layoutType:d,vj:new Map,layoutExitNormalTriggers:[new i$(n.S,B)],layoutExitSkipTriggers:N,layoutExitMuteTriggers:q,layoutExitUserInputSubmittedTriggers:y,Pk:[],jp:"core", clientMetadata:new XY([new N_(W)].concat(g.E(e))),yp:b(R)},yE:r.yE});return b}}; Zba=function(l,n,O){var L=[];l=g.P(l);for(var X=l.next();!X.done;X=l.next())if(X=X.value,g.z(X,Hi)){X=C6(g.z(X,Hi),n,O);if(X instanceof LL)return new C(X);L.push(X.nI)}return L}; Hb0=function(l,n,O,L,X,F,x,Z){if(!us0(O,Z===void 0?!1:Z))return new C("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:O});var J=f6(O);if(J<=0)return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:O});var w=new EP({current:null}),H=iuk(l,n,O,w,L,F,x);return wCg(l,L,F,J,X,function(A,b){var r=A.slotId,U=K6(O);A=x(A);var W,N=(W=Ji(n,L,O.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?W: CL(n.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",r);r={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",jp:"core"};W=H(N,b);var q=on(W.clientMetadata,"metadata_type_fulfilled_layout");q||AV("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");U=[new t9(L),new iJ(J),new pb(U),w];q&&U.push(new uJ(q.layoutType));return{DvG:{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",vj:new Map,layoutExitNormalTriggers:[new i$(n.S,N)],layoutExitSkipTriggers:[new pS(n.S, b.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new t$(n.S,b.layoutId)],Pk:[],jp:"core",clientMetadata:new XY(U),yp:A(r)},wmq:W}})}; A8q=function(l){if(!WF0(l))return!1;var n=g.z(l.adVideoStart,rf);return n?g.z(l.linearAd,Hi)&&x2(n)?!0:(AV("Invalid Sandwich with notify"),!1):!1}; bbe=function(l){if(l.linearAds==null)return!1;l=g.z(l.adStart,rf);return l?x2(l)?!0:(AV("Invalid LASR with notify"),!1):!1}; r8v=function(l){if(!T4i(l))return!1;l=g.z(l.adStart,rf);return l?x2(l)?!0:(AV("Invalid LASR with notify"),!1):!1}; U1=function(l,n,O,L,X,F,x,Z,J,w){this.L=l;this.W=n;this.S=O;this.Rz=L;this.m1=X;this.N=F;this.Bm=x;this.HR=Z;this.K1=J;this.loadPolicy=w===void 0?1:w}; kA9=function(l,n,O,L,X,F,x,Z,J,w){var H=[];if(n.length===0&&L.length===0&&O.length===0)return H;n=n.filter(hl);var A=O.filter(bu5),b=L.filter(hl),r=new Map,U=Um9(n),W=O.some(function(p){var ce;return(p==null?void 0:(ce=p.adSlotMetadata)==null?void 0:ce.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),N=O.some(function(p){var ce; return(p==null?void 0:(ce=p.adSlotMetadata)==null?void 0:ce.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),q=O.some(function(p){var ce; return(p==null?void 0:(ce=p.adSlotMetadata)==null?void 0:ce.slotType)==="SLOT_TYPE_IN_PLAYER"}),y=O.some(function(p){var ce,WR; return(p==null?void 0:(ce=p.adSlotMetadata)==null?void 0:ce.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(p==null?void 0:(WR=p.adSlotMetadata)==null?void 0:WR.slotType)==="SLOT_TYPE_ABOVE_FEED"}); O=O.some(function(p){var ce;return(p==null?void 0:(ce=p.adSlotMetadata)==null?void 0:ce.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(W||N||q||y||O)w=qE9(A,n,Z,X,U,l.m1.get(),l.loadPolicy,r,l.Rz.get(),l.L.get(),q,x,J,w),w instanceof C?AV(w,void 0,void 0,{contentCpn:X}):H.push.apply(H,g.E(w));w=g.P(n);for(O=w.next();!O.done;O=w.next())O=O.value,N=U_9(l,r,O,X,F,x,W,Z,U,J,A),N instanceof C?AV(N,void 0,void 0,{renderer:O.renderer,config:O.config.adPlacementConfig,kind:O.config.adPlacementConfig.kind,contentCpn:X,daiEnabled:x}):H.push.apply(H,g.E(N));uc8(l.Rz.get())||(F=PJf(l,b,X,Z,U,r),H.push.apply(H,g.E(F)));if(l.N===null||x&&!Z.E4){var e, d,B;l=Z.tA&&n.length===1&&((e=n[0].config)==null?void 0:(d=e.adPlacementConfig)==null?void 0:d.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((B=n[0].renderer)==null?void 0:B.adBreakServiceRenderer);if(!H.length&&!l){var R,a,Lv,Fa;AV("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":n.length,contentCpn:X,"first APR kind":(R=n[0])==null?void 0:(a=R.config)==null?void 0:(Lv=a.adPlacementConfig)==null?void 0:Lv.kind,renderer:(Fa=n[0])==null?void 0: Fa.renderer})}return H}e=L.filter(hl);H.push.apply(H,g.E(V9g(r,e,l.W.get(),l.N,X,W)));if(!H.length){var l9,S,v,T;AV("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":n.length,contentCpn:X,daiEnabled:x.toString(),"first APR kind":(l9=n[0])==null?void 0:(S=l9.config)==null?void 0:(v=S.adPlacementConfig)==null?void 0:v.kind,renderer:(T=n[0])==null?void 0:T.renderer})}return H}; PJf=function(l,n,O,L,X,F){function x(b){return wg(l.m1.get(),b)} var Z=[];n=g.P(n);for(var J=n.next();!J.done;J=n.next()){J=J.value;var w=J.renderer,H=w.sandwichedLinearAdRenderer,A=w.linearAdSequenceRenderer;H&&A8q(H)?(AV("Found AdNotify with SandwichedLinearAdRenderer"),A=g.z(H.adVideoStart,rf),H=g.z(H.linearAd,Hi),SQ(F,w,J.config.adPlacementConfig.kind),w=void 0,A=FZ5((w=A)==null?void 0:w.layout.layoutId,l.W.get(),l.S.get(),J.config.adPlacementConfig,J.adSlotLoggingData,H,O,L,x,X,l.loadPolicy,l.Rz.get(),l.m1.get()),A instanceof C?AV(A):Z.push.apply(Z,g.E(A))): A&&(!A.adLayoutMetadata&&bbe(A)||A.adLayoutMetadata&&r8v(A))&&(AV("Found AdNotify with LinearAdSequenceRenderer"),SQ(F,w,J.config.adPlacementConfig.kind),w=void 0,H=gr8((w=g.z(A.adStart,rf))==null?void 0:w.layout.layoutId,l.W.get(),l.S.get(),J.config.adPlacementConfig,J.adSlotLoggingData,A.linearAds,n6(A.adLayoutMetadata)?A.adLayoutMetadata:void 0,O,L,x,X,l.loadPolicy,l.Rz.get()),H instanceof C?AV(H):Z.push.apply(Z,g.E(H)))}return Z}; U_9=function(l,n,O,L,X,F,x,Z,J,w,H){function A(q){return wg(l.m1.get(),q)} var b=O.renderer,r=O.config.adPlacementConfig,U=r.kind,W=O.adSlotLoggingData,N=Z.E4&&U==="AD_PLACEMENT_KIND_START";N=F&&!N;if(b.adsEngagementPanelRenderer!=null)return sc(n,O.elementId,U,b.adsEngagementPanelRenderer.isContentVideoEngagementPanel,b.adsEngagementPanelRenderer.adVideoId,b.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.adsEngagementPanelRenderer;q=wg(l.m1.get(),q);return uZ(B,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new iB(a),y,e,a.impressionPings,q,b.adsEngagementPanelRenderer.adLayoutLoggingData,d)}),[]; if(b.adsEngagementPanelLayoutViewModel)return sc(n,O.elementId,U,b.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,b.adsEngagementPanelLayoutViewModel.adVideoId,b.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.adsEngagementPanelLayoutViewModel;q=wg(l.m1.get(),q);return PP(B,R,"LAYOUT_TYPE_PANEL",new z0(a),y,e,q,b.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,d)}),[]; if(b.actionCompanionAdRenderer!=null){if(b.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return GA0(l.W.get(),l.N,l.S.get(),b.actionCompanionAdRenderer,r,W,L,A);sc(n,O.elementId,U,b.actionCompanionAdRenderer.isContentVideoCompanion,b.actionCompanionAdRenderer.adVideoId,b.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.actionCompanionAdRenderer;q=wg(l.m1.get(),q);return uZ(B,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new BT(a),y,e,a.impressionPings,q,b.actionCompanionAdRenderer.adLayoutLoggingData,d)})}else if(b.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(b.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return mT8(l.W.get(),l.N,l.S.get(),b.topBannerImageTextIconButtonedLayoutViewModel,r,W,L,A); sc(n,O.elementId,U,b.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,b.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,b.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.topBannerImageTextIconButtonedLayoutViewModel;q=wg(l.m1.get(),q);return PP(B,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new cT(a),y,e,q,b.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,d)})}else if(b.imageCompanionAdRenderer)sc(n, O.elementId,U,b.imageCompanionAdRenderer.isContentVideoCompanion,b.imageCompanionAdRenderer.adVideoId,b.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.imageCompanionAdRenderer; q=wg(l.m1.get(),q);return uZ(B,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new f0(a),y,e,a.impressionPings,q,b.imageCompanionAdRenderer.adLayoutLoggingData,d)}); else if(b.bannerImageLayoutViewModel)sc(n,O.elementId,U,b.bannerImageLayoutViewModel.isContentVideoCompanion,b.bannerImageLayoutViewModel.adVideoId,b.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.bannerImageLayoutViewModel;q=wg(l.m1.get(),q);return PP(B,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new K0(a),y,e,q,b.bannerImageLayoutViewModel.adLayoutLoggingData,d)}); else if(b.shoppingCompanionCarouselRenderer)sc(n,O.elementId,U,b.shoppingCompanionCarouselRenderer.isContentVideoCompanion,b.shoppingCompanionCarouselRenderer.adVideoId,b.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,r,W,function(q,y,e,d){var B=l.S.get(),R=q.slotId,a=b.shoppingCompanionCarouselRenderer;q=wg(l.m1.get(),q);return uZ(B,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new aI(a),y,e,a.impressionPings,q,b.shoppingCompanionCarouselRenderer.adLayoutLoggingData,d)}); else if(b.adBreakServiceRenderer){if(!Yfg(O))return[];if(U==="AD_PLACEMENT_KIND_PAUSE")return eo5(l.W.get(),r,W,O.renderer.adBreakServiceRenderer,L);if(U!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&U!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Qmf(l.W.get(),r,W,O.renderer.adBreakServiceRenderer,L,X,F);Z.tA||AV("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:U,adPlacementConfig:r,daiEnabledForContentVideo:String(F),isServedFromLiveInfra:String(Z.tA),clientPlaybackNonce:Z.clientPlaybackNonce}); if(U==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!l.Bm)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!l.K1)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");l.K1.SG({adPlacementRenderer:O,contentCpn:L,Tx:X});X=l.Bm.get().getCurrentTimeSec(1,!1);return T$k(l.W.get(),O.renderer.adBreakServiceRenderer,r,X,L,W,F)}if(!l.HR)return new C("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); l.HR.SG({adPlacementRenderer:O,contentCpn:L,Tx:X})}else{if(b.clientForecastingAdRenderer)return pTa(l.W.get(),l.S.get(),r,W,b.clientForecastingAdRenderer,L,X,A);if(b.invideoOverlayAdRenderer)return a45(l.W.get(),l.S.get(),r,W,b.invideoOverlayAdRenderer,L,X,A);if(b.instreamAdPlayerOverlayRenderer)return f4i(l.W.get(),l.S.get(),r,W,b.instreamAdPlayerOverlayRenderer,L,A);if((b.linearAdSequenceRenderer||b.instreamVideoAdRenderer)&&N)return nga(l.W.get(),l.S.get(),O,L,A,w,!l.Rz.get().C.j().J("html5_override_ad_video_length_killswitch")); if(b.linearAdSequenceRenderer&&!N){if(x)return[];SQ(n,b,U);if(b.linearAdSequenceRenderer.adLayoutMetadata){if(!T4i(b.linearAdSequenceRenderer))return new C("Received invalid LinearAdSequenceRenderer.")}else if(b.linearAdSequenceRenderer.linearAds==null)return new C("Received invalid LinearAdSequenceRenderer.");if(g.z(b.linearAdSequenceRenderer.adStart,rf)){AV("Found AdNotify in LinearAdSequenceRenderer");O=g.z(b.linearAdSequenceRenderer.adStart,rf);if(!Ou9(O))return new C("Invalid AdMessageRenderer."); F=b.linearAdSequenceRenderer.linearAds;return LVa(l.L.get(),l.W.get(),l.S.get(),l.m1.get(),r,W,O,n6(b.linearAdSequenceRenderer.adLayoutMetadata)?b.linearAdSequenceRenderer.adLayoutMetadata:void 0,F,L,X,Z,A,J,l.loadPolicy,l.Rz.get())}return h19(l.W.get(),l.S.get(),r,W,b.linearAdSequenceRenderer.linearAds,n6(b.linearAdSequenceRenderer.adLayoutMetadata)?b.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,X,Z,A,J,l.loadPolicy,l.Rz.get(),H)}if(!b.remoteSlotsRenderer||F){if(b.instreamVideoAdRenderer&& !N){if(x)return[];SQ(n,b,U);return wT9(l.W.get(),l.S.get(),r,W,b.instreamVideoAdRenderer,L,X,Z,A,J,l.loadPolicy,l.Rz.get(),l.m1.get(),H)}if(b.instreamSurveyAdRenderer)return Hb0(l.W.get(),l.S.get(),b.instreamSurveyAdRenderer,r,W,L,A,Rn(l.Rz.get(),"supports_multi_step_on_desktop"));if(b.sandwichedLinearAdRenderer!=null)return WF0(b.sandwichedLinearAdRenderer)?g.z(b.sandwichedLinearAdRenderer.adVideoStart,rf)?(AV("Found AdNotify in SandwichedLinearAdRenderer"),O=g.z(b.sandwichedLinearAdRenderer.adVideoStart, rf),Ou9(O)?(F=g.z(b.sandwichedLinearAdRenderer.linearAd,Hi))?xmi(O,F,r,l.L.get(),l.W.get(),l.S.get(),l.m1.get(),W,L,X,Z,A,J,l.loadPolicy,l.Rz.get()):new C("Missing IVAR from Sandwich"):new C("Invalid AdMessageRenderer.")):h19(l.W.get(),l.S.get(),r,W,[b.sandwichedLinearAdRenderer.adVideoStart,b.sandwichedLinearAdRenderer.linearAd],void 0,L,X,Z,A,J,l.loadPolicy,l.Rz.get()):new C("Received invalid SandwichedLinearAdRenderer.");if(b.videoAdTrackingRenderer!=null)return Z=Rn(l.Rz.get(),"enable_h5_shorts_ad_terminal_events")&& Z.UX,zgi(l.W.get(),l.S.get(),b.videoAdTrackingRenderer,r,W,L,X,Z,A)}}return[]}; TJ=function(l,n,O,L,X,F,x,Z){g.V.call(this);var J=this;this.W=l;this.N=n;this.uf=L;this.Bm=X;this.Rz=F;this.qQ=x;this.Cp=Z;this.S=null;O.get().addListener(this);this.addOnDisposeCallback(function(){O.JG()||O.get().removeListener(J)}); L.get().addListener(this);this.addOnDisposeCallback(function(){L.JG()||L.get().removeListener(J)})}; Erg=function(l,n,O){var L=l.Bm.get().getCurrentTimeSec(1,!1);l.Rz.get().C.j().AA()&&LS(l.qQ.get(),"sdai","onopp.1;evt."+O.event+";start."+O.startSecs.toFixed(3)+";d."+O.HM.toFixed(3));ro(l.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var X=l.N.get(),F=n.adPlacementRenderer.renderer.adBreakServiceRenderer,x=n.contentCpn,Z=n.adPlacementRenderer.adSlotLoggingData,J=WP(l.Rz.get()),w=l.qQ;if(X.Rz.get().C.j().experiments.MQ("enable_smearing_expansion_dai")){var H=g.HQ(X.Rz.get().C.j().experiments, "max_prefetch_window_sec_for_livestream_optimization");var A=g.HQ(X.Rz.get().C.j().experiments,"min_prefetch_offset_sec_for_livestream_optimization");J={Y6:WV9(O),EA:!1,cueProcessedMs:L*1E3};var b=O.startSecs+O.HM;if(L===0)J.uW=new qo(0,b*1E3);else{A=O.startSecs-A;var r=A-L;J.uW=r<=0?new qo(A*1E3,b*1E3):new qo(Math.floor(L+Math.random()*Math.min(r,H))*1E3,b*1E3)}H=J}else H={Y6:WV9(O),EA:!1},b=O.startSecs+O.HM,O.startSecs<=L?J=new qo((O.startSecs-4)*1E3,b*1E3):(A=Math.max(0,O.startSecs-L-10),J=new qo(Math.floor(L+ Math.random()*(J?L===0?0:Math.min(A,5):A))*1E3,b*1E3)),H.uW=J;X=ci(X,F,x,H,Z,[new Da(O)]);w.get().C.KV(H.uW.start/1E3-L,O.startSecs-L);return[X]})}; E1=function(l){var n,O=(n=on(l.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current;if(!O)return null;n=on(l.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=l.layoutId,X=on(l.clientMetadata,"metadata_type_content_cpn"),F=on(l.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),x=on(l.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Z=on(l.clientMetadata,"metadata_type_player_underlay_renderer"),J=on(l.clientMetadata, "metadata_type_ad_placement_config"),w=on(l.clientMetadata,"metadata_type_video_length_seconds");var H=nL(l.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?on(l.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):nL(l.clientMetadata,"metadata_type_layout_enter_ms")&&nL(l.clientMetadata,"metadata_type_layout_exit_ms")?(on(l.clientMetadata,"metadata_type_layout_exit_ms")-on(l.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{dE:L,contentCpn:X,Nf:O,Px:n,instreamAdPlayerOverlayRenderer:F, playerOverlayLayoutRenderer:x,instreamAdPlayerUnderlayRenderer:Z,adPlacementConfig:J,videoLengthSeconds:w,l_:H,inPlayerLayoutId:on(l.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:on(l.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; D_i=function(l,n){return N$i(l,n)}; qP7=function(l,n){n=N$i(l,n);if(!n)return null;var O;n.l_=(O=on(l.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:O.adBreakRemainingLengthSeconds;return n}; N$i=function(l,n){var O,L=(O=on(l.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current;if(!L)return null;O=z3v(l,n);return{h4:iIv(l,n),adPlacementConfig:on(l.clientMetadata,"metadata_type_ad_placement_config"),eE:O,contentCpn:on(l.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:on(l.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:on(l.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:on(l.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,l_:void 0,Nf:L,dE:l.layoutId,videoLengthSeconds:on(l.clientMetadata,"metadata_type_video_length_seconds")}}; Nd=function(l,n,O,L,X,F,x,Z,J){g.V.call(this);this.L=l;this.V=n;this.B=O;this.N=L;this.S=X;this.W=F;this.m1=x;this.Rz=Z;this.tG=J;this.dZ=!0}; kEg=function(l,n,O){return b09(l.S.get(),n.contentCpn,n.dE,function(L){return r90(l.W.get(),L.slotId,O,n.adPlacementConfig,n.dE,wg(l.m1.get(),L))})}; Dj=function(l,n,O,L,X,F,x,Z){g.V.call(this);this.W=l;this.S=n;this.N=O;this.Rz=L;this.L=X;this.tG=F;this.Bm=x;this.JC=Z}; qd=function(l){g.V.call(this);this.S=l}; ro=function(l,n,O,L){l.S().G1(n,L);O=O();l=l.S();l.Pj.Wr("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",n,L,O);n=g.P(O);for(O=n.next();!O.done;O=n.next())a:{L=l;O=O.value;L.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",O);L.Pj.e5("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",O);try{var X=L.S;if(g.DL(O.slotId))throw new C("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(WQ(X,O))throw new C("Duplicate registration for slot.",{slotId:O.slotId,slotEntryTriggerType:O.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!X.PG.tE.has(O.slotType))throw new C("No fulfillment adapter factory registered for slot of type: "+O.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!X.PG.jb.has(O.slotType))throw new C("No SlotAdapterFactory registered for slot of type: "+O.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Vw(X,"TRIGGER_CATEGORY_SLOT_ENTRY",O.slotEntryTrigger?[O.slotEntryTrigger]:[]);Vw(X,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", O.slotFulfillmentTriggers);Vw(X,"TRIGGER_CATEGORY_SLOT_EXPIRATION",O.slotExpirationTriggers);var F=L.S,x=O.slotType+"_"+O.slotPhysicalPosition,Z=Gg(F,x);if(WQ(F,O))throw new C("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");Z.set(O.slotId,new dR5(O));F.S.set(x,Z)}catch(Lv){Lv instanceof C&&Lv.Hp?(L.Pj.rJ("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Lv.Hp,O),AV(Lv,O,void 0,void 0,Lv.fg)):(L.Pj.rJ("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", O),AV(Lv,O));break a}WQ(L.S,O).V=!0;try{var J=L.S,w=WQ(J,O),H=O.slotEntryTrigger,A=J.PG.o4.get(H.triggerType);A&&(A.bV("TRIGGER_CATEGORY_SLOT_ENTRY",H,O,null),w.Q5.set(H.triggerId,A));for(var b=g.P(O.slotFulfillmentTriggers),r=b.next();!r.done;r=b.next()){var U=r.value,W=J.PG.o4.get(U.triggerType);W&&(W.bV("TRIGGER_CATEGORY_SLOT_FULFILLMENT",U,O,null),w.Wm.set(U.triggerId,W))}for(var N=g.P(O.slotExpirationTriggers),q=N.next();!q.done;q=N.next()){var y=q.value,e=J.PG.o4.get(y.triggerType);e&&(e.bV("TRIGGER_CATEGORY_SLOT_EXPIRATION", y,O,null),w.Y.set(y.triggerId,e))}var d=J.PG.tE.get(O.slotType).get().build(J.N,O);w.T=d;var B=J.PG.jb.get(O.slotType).get().build(J.B,O);B.init();w.W=B}catch(Lv){Lv instanceof C&&Lv.Hp?(L.Pj.rJ("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Lv.Hp,O),AV(Lv,O,void 0,void 0,Lv.fg)):(L.Pj.rJ("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",O),AV(Lv,O));ui(L,O,!0);break a}L.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",O);L.S.fN(O);for(var R=g.P(L.W),a=R.next();!a.done;a= R.next())a.value.fN(O);D9(L,O)}}; kF=function(l,n,O,L,X){g.V.call(this);var F=this;this.W=l;this.N=n;this.Fg=O;this.context=X;this.S=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.JG()||L.get().removeListener(F)})}; DTi=function(l,n){var O=0x8000000000000;var L=0;for(var X=g.P(n.slotFulfillmentTriggers),F=X.next();!F.done;F=X.next())F=F.value,F instanceof $4?(O=Math.min(O,F.S.start),L=Math.max(L,F.S.end)):AV("Found unexpected fulfillment trigger for throttled slot.",n,null,{fulfillmentTrigger:F});L=new qo(O,L);O="throttledadcuerange:"+n.slotId;l.S.set(O,n);l.Fg.get().addCueRange(O,L.start,L.end,!1,l);ql(l.context.Rz.get())&&(n=L.start,L=L.end,X={},l.context.WQ.Nv("tcrr",(X.cid=O,X.sm=n,X.em=L,X)))}; yX=function(){g.V.apply(this,arguments);this.dZ=!0;this.mf=new Map;this.S=new Map}; Md=function(l,n){l=g.P(l.mf.values());for(var O=l.next();!O.done;O=l.next())if(O.value.layoutId===n)return!0;return!1}; QX=function(l,n){l=g.P(l.S.values());for(var O=l.next();!O.done;O=l.next()){O=g.P(O.value);for(var L=O.next();!L.done;L=O.next())if(L=L.value,L.layoutId===n)return L}AV("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.DL(n)),layoutId:n})}; y8i=function(){this.S=new Map}; MO7=function(l,n){this.callback=l;this.slot=n}; e7=function(){}; Qz5=function(l,n,O){this.callback=l;this.slot=n;this.Bm=O}; e18=function(l,n,O){this.callback=l;this.slot=n;this.Bm=O;this.W=!1;this.S=0}; YPf=function(l,n,O){this.callback=l;this.slot=n;this.Bm=O}; YF=function(l){this.Bm=l}; j7=function(l){g.V.call(this);this.e_=l;this.wc=new Map}; GJ=function(l,n){for(var O=[],L=g.P(l.wc.values()),X=L.next();!X.done;X=L.next()){X=X.value;var F=X.trigger;F instanceof t$&&F.triggeringLayoutId===n&&O.push(X)}O.length?eX(l.e_(),O):AV("Survey is submitted but no registered triggers can be activated.")}; mU=function(l,n,O){j7.call(this,l);var L=this;this.Rz=O;n.get().addListener(this);this.addOnDisposeCallback(function(){n.JG()||n.get().removeListener(L)})}; I7=function(l){g.V.call(this);this.S=l;this.dZ=!0;this.wc=new Map;this.B=new Set;this.N=new Set;this.L=new Set;this.V=new Set;this.W=new Set}; df=function(l){g.V.call(this);this.S=l;this.wc=new Map}; $F=function(l,n){for(var O=[],L=g.P(l.wc.values()),X=L.next();!X.done;X=L.next())X=X.value,X.trigger.S===n.layoutId&&O.push(X);O.length&&eX(l.S(),O)}; VX=function(l,n,O){g.V.call(this);var L=this;this.S=l;this.context=O;this.wc=new Map;n.get().addListener(this);this.addOnDisposeCallback(function(){n.JG()||n.get().removeListener(L)})}; BP=function(l,n,O,L,X){g.V.call(this);var F=this;this.W=l;this.Fg=n;this.Bm=O;this.tG=L;this.context=X;this.dZ=!0;this.wc=new Map;this.S=new Set;O.get().addListener(this);this.addOnDisposeCallback(function(){O.JG()||O.get().removeListener(F)})}; jze=function(l,n,O,L,X,F,x,Z,J,w){if(PG(l.tG.get(),1).clientPlaybackNonce!==J)throw new C("Cannot register CueRange-based trigger for different content CPN",{trigger:O});l.wc.set(O.triggerId,{cU:new l6(n,O,L,X),cueRangeId:F});l.Fg.get().addCueRange(F,x,Z,w,l);ql(l.context.Rz.get())&&(J={},l.context.WQ.Nv("crr",(J.ca=n,J.tt=O.triggerType,J.st=L.slotType,J.lt=X==null?void 0:X.layoutType,J.cid=F,J.sm=x,J.em=Z,J)))}; GEi=function(l,n){l=g.P(l.wc.entries());for(var O=l.next();!O.done;O=l.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;if(n===L.cueRangeId)return O}return""}; cP=function(l,n){g.V.call(this);var O=this;this.L=l;this.W=new Map;this.N=new Map;this.S=null;n.get().addListener(this);this.addOnDisposeCallback(function(){n.JG()||n.get().removeListener(O)}); var L;this.S=((L=n.get().hF)==null?void 0:L.slotId)||null}; m_g=function(l,n){var O=[];l=g.P(l.values());for(var L=l.next();!L.done;L=l.next())L=L.value,L.slot.slotId===n&&O.push(L);return O}; iZ=function(l){g.V.call(this);this.S=l;this.dZ=!0;this.wc=new Map}; KX=function(l,n,O){n=n.layoutId;for(var L=[],X=g.P(l.wc.values()),F=X.next();!F.done;F=X.next())if(F=F.value,F.trigger instanceof i$){var x;if(x=F.trigger.layoutId===n){x=O;var Z=Qra.get(F.category);x=Z?Z===x:!1}x&&L.push(F)}L.length&&eX(l.S(),L)}; zJ=function(l){g.V.call(this);this.S=l;this.dZ=!0;this.wc=new Map}; S7=function(l,n,O,L,X){g.V.call(this);var F=this;this.B=l;this.uf=n;this.Bm=O;this.qQ=L;this.S=null;this.dZ=!0;this.wc=new Map;this.N=new Map;n.get().addListener(this);this.addOnDisposeCallback(function(){n.JG()||n.get().removeListener(F)}); X.get().addListener(this);this.addOnDisposeCallback(function(){X.JG()||X.get().removeListener(F)})}; d_f=function(l){l.S&&(l.W&&(l.W.stop(),l.W.start()),Iai(l,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; Iai=function(l,n){for(var O=[],L=g.P(l.wc.values()),X=L.next();!X.done;X=L.next())X=X.value,X.trigger.triggerType===n&&O.push(X);O.length>0&&eX(l.B(),O)}; pW=function(l,n,O,L,X){X=X===void 0?!0:X;for(var F=[],x=g.P(l.wc.values()),Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var J=Z.trigger;if(J.triggerType===n){if(J instanceof mg||J instanceof Ii||J instanceof V1){if(X&&J.breakDurationMs!==O)continue;if(!X&&J.breakDurationMs===O)continue;if(L.has(J.triggerId))continue}F.push(Z)}}F.length>0&&eX(l.B(),F)}; $_f=function(l){l=l.adPlacementRenderer.config.adPlacementConfig;if(!l.prefetchModeConfig||!l.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;l=Number(l.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(l)||l<=0?0:Math.floor(Math.random()*l)}; VO9=function(l){l=l.adPlacementRenderer.config.adPlacementConfig;if(l.prefetchModeConfig&&l.prefetchModeConfig.cacheFetchRefreshDurationMs&&(l=Number(l.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(l)||l<=0)))return l}; s1=function(l){l.S=null;l.wc.clear();l.N.clear();l.W&&l.W.stop();l.L&&l.L.stop()}; fW=function(l){g.V.call(this);this.N=l;this.dZ=!0;this.wc=new Map;this.S=new Map;this.W=new Map}; B$9=function(l,n){var O=[];if(n=l.S.get(n.layoutId)){n=g.P(n);for(var L=n.next();!L.done;L=n.next())(L=l.W.get(L.value.triggerId))&&O.push(L)}return O}; KW=function(l){g.V.call(this);this.S=l;this.wc=new Map}; c80=function(l,n){for(var O=[],L=g.P(l.wc.values()),X=L.next();!X.done;X=L.next())X=X.value,X.trigger instanceof Dv&&X.trigger.slotId===n&&O.push(X);O.length>=1&&eX(l.S(),O)}; ibq=function(l,n){var O={slotId:UT(n,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],jp:"surface",clientMetadata:new XY([])},L=Object,X=L.assign;n=CL(n,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",O.slotId);n={layoutId:n,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",vj:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"surface", clientMetadata:new XY([]),yp:N20(!1,O.slotId,O.slotType,O.slotPhysicalPosition,O.jp,O.slotEntryTrigger,O.slotFulfillmentTriggers,O.slotExpirationTriggers,n,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return X.call(L,{},l,{yGz:!0,slot:O,layout:n})}; M9k=function(l,n,O,L){var X=l.kind;L=L?!1:!l.hideCueRangeMarker;switch(X){case "AD_PLACEMENT_KIND_START":return L={Y6:new qo(-0x8000000000000,-0x8000000000000),EA:L},O!=null&&(L.uW=new qo(-0x8000000000000,-0x8000000000000)),L;case "AD_PLACEMENT_KIND_END":return L={Y6:new qo(0x7ffffffffffff,0x8000000000000),EA:L},O!=null&&(L.uW=new qo(Math.max(0,n-O),0x8000000000000)),L;case "AD_PLACEMENT_KIND_MILLISECONDS":X=l.adTimeOffset;X.offsetStartMilliseconds||AV("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); X.offsetEndMilliseconds||AV("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");l=Number(X.offsetStartMilliseconds);X=Number(X.offsetEndMilliseconds);X===-1&&(X=n);if(Number.isNaN(l)||Number.isNaN(X)||l>X)return new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:l,offsetEndMs:X},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",X===n&&l-500<=X);L={Y6:new qo(l,X),EA:L};if(O!=null){l=Math.max(0,l-O);if(l===X)return L;L.uW=new qo(l,X)}return L; default:return new C("AdPlacementKind not supported in convertToRange.",{kind:X,adPlacementConfig:l})}}; WV9=function(l){var n=l.startSecs*1E3;return new qo(n,n+l.HM*1E3)}; z1v=function(l){if(!l||!l.adPlacements&&!l.adSlots)return!1;for(var n=g.P(l.adPlacements||[]),O=n.next();!O.done;O=n.next())if(O=O.value)if(O=O.adPlacementRenderer,O!=null&&(O.config&&O.config.adPlacementConfig&&O.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;l=g.P(l.adSlots||[]);for(n=l.next();!n.done;n=l.next()){var L=O=void 0;if(((O=g.z(n.value,Bi))==null?void 0:(L=O.adSlotMetadata)==null?void 0:L.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; a7=function(l){this.Rz=l;this.W=new Map;this.S=new Map;this.N=new Map}; UT=function(l,n){if(R7(l.Rz.get())){var O=l.W.get(n)||0;O++;l.W.set(n,O);return n+"_"+O}return g.D0(16)}; CL=function(l,n,O){if(R7(l.Rz.get())){var L=l.S.get(n)||0;L++;l.S.set(n,L);return O+"_"+n+"_"+L}return g.D0(16)}; FT=function(l,n){if(R7(l.Rz.get())){var O=l.N.get(n)||0;O++;l.N.set(n,O);return n+"_"+O}return g.D0(16)}; SPf=function(l){var n=[new r$(l.dE),new TE(l.Nf),new t9(l.adPlacementConfig),new q_(l.videoLengthSeconds),new cC(l.l_)];l.instreamAdPlayerOverlayRenderer&&n.push(new Xc(l.instreamAdPlayerOverlayRenderer));l.playerOverlayLayoutRenderer&&n.push(new oz(l.playerOverlayLayoutRenderer));l.Px&&n.push(new OP(l.Px));return n}; pCk=function(l,n,O,L,X,F){l=O.inPlayerLayoutId?O.inPlayerLayoutId:CL(F,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);var x,Z,J=O.instreamAdPlayerOverlayRenderer?(x=O.instreamAdPlayerOverlayRenderer)==null?void 0:x.adLayoutLoggingData:(Z=O.playerOverlayLayoutRenderer)==null?void 0:Z.adLayoutLoggingData;x={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",jp:n};return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",vj:new Map,layoutExitNormalTriggers:[new jP(function(w){return FT(F, w)},O.dE)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:n,clientMetadata:L,yp:X(x),adLayoutLoggingData:J}}; CW=function(l,n){var O=this;this.W=l;this.Rz=n;this.S=function(L){return FT(O.W.get(),L)}}; r90=function(l,n,O,L,X,F){O=new XY([new Fc(O),new t9(L)]);n=CL(l.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",n);L={layoutId:n,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",jp:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",vj:new Map,layoutExitNormalTriggers:[new jP(function(x){return FT(l.W.get(),x)},X)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:O,yp:F(L),adLayoutLoggingData:void 0}}; vi=function(l,n,O,L,X){var F=SPf(L);return pCk(n,O,L,new XY(F),X,l.W.get())}; sz0=function(l,n,O,L,X){var F=SPf(L);F.push(new RI(L.h4));F.push(new C0(L.eE));return pCk(n,O,L,new XY(F),X,l.W.get())}; uZ=function(l,n,O,L,X,F,x,Z,J,w){n=CL(l.W.get(),O,n);var H={layoutId:n,layoutType:O,jp:"core"},A=new Map;x&&A.set("impression",x);x=[new B0(l.S,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&x.push(new Y4(l.S,w,["normal"]));return{layoutId:n,layoutType:O,vj:A,layoutExitNormalTriggers:x,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([L,new t9(F),new r$(X)]),yp:Z(H),adLayoutLoggingData:J}}; PP=function(l,n,O,L,X,F,x,Z,J){n=CL(l.W.get(),O,n);var w={layoutId:n,layoutType:O,jp:"core"},H=[new B0(l.S,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];J&&H.push(new Y4(l.S,J,["normal"]));return{layoutId:n,layoutType:O,vj:new Map,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([L,new t9(F),new r$(X)]),yp:x(w),adLayoutLoggingData:Z}}; hi=function(l,n,O){var L=[];L.push(new c0(l.S,O));n&&L.push(n);return L}; xF=function(l,n,O,L,X,F,x){var Z={layoutId:n,layoutType:O,jp:"core"};return{layoutId:n,layoutType:O,vj:new Map,layoutExitNormalTriggers:x,layoutExitSkipTriggers:[new y1(l.S,n)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new sE(L),new t9(X)]),yp:F(Z),adLayoutLoggingData:L.adLayoutLoggingData}}; ap=function(l,n,O,L,X,F,x,Z){var J={layoutId:n,layoutType:F,jp:"core"};return{layoutId:n,layoutType:F,vj:new Map,layoutExitNormalTriggers:[new jP(l.S,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new t9(L)].concat(g.E(x))),yp:X(J),adLayoutLoggingData:Z}}; Ji=function(l,n,O,L){if(l.Rz.get().EU(n.kind==="AD_PLACEMENT_KIND_START"))if(O===void 0)AV("Expected SSAP layout ID in renderer",void 0,void 0,{caller:L});else return O}; Rgq=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){l=Zj(l,n,O,X,F,x,Z,J,A,Ji(l,O,L.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),b);n=l.hT;O=new UP(l.Mw);L=l.layoutExitSkipTriggers;w>0&&(n.push(O),n.push(new nb(w)),L=[]);n.push(new lJ(H));return{PM:{layoutId:l.layoutId,layoutType:l.layoutType,vj:l.vj,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:l.jp,clientMetadata:new XY(n),yp:l.yp,adLayoutLoggingData:l.adLayoutLoggingData}, JQ:L,CB:l.layoutExitMuteTriggers,rT:l.layoutExitUserInputSubmittedTriggers,QH:l.Pk,lK:l.lK}}; la0=function(l,n,O,L,X,F,x,Z,J,w){n=Zj(l,n,O,L,F,new Map,x,function(H){return Z(H,J)},void 0,Ji(l,O,X.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); l=new t$(l.S,n.Mw);O=new UP(n.Mw);w=new lJ(w);return{PM:{layoutId:n.layoutId,layoutType:n.layoutType,vj:n.vj,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:n.jp,clientMetadata:new XY([].concat(g.E(n.hT),[O,w])),yp:n.yp,adLayoutLoggingData:n.adLayoutLoggingData},JQ:n.layoutExitSkipTriggers,CB:n.layoutExitMuteTriggers,rT:[].concat(g.E(n.layoutExitUserInputSubmittedTriggers),[l]),QH:n.Pk,lK:n.lK}}; Zj=function(l,n,O,L,X,F,x,Z,J,w,H){n=w!=null?w:CL(l.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",n);w={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",jp:"adapter"};Z=Z(n);var A=on(Z.clientMetadata,"metadata_type_fulfilled_layout");A||AV("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var b=A?A.layoutId:"";O=[new t9(O),new iJ(L),new pb(X)];A&&O.push(new uJ(A.layoutType));H&&O.push(new Yr(H));return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", vj:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new pS(l.S,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"adapter",hT:O,yp:x(w),adLayoutLoggingData:J,lK:Z,Mw:b}}; H0g=function(l,n,O,L,X,F,x,Z,J,w,H){l=fag(l,n,"core",O,L,X,F,x,Z,J,w,void 0,H);return{layoutId:l.layoutId,layoutType:l.layoutType,vj:l.vj,layoutExitNormalTriggers:l.layoutExitNormalTriggers,layoutExitSkipTriggers:l.layoutExitSkipTriggers,layoutExitMuteTriggers:l.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:l.layoutExitUserInputSubmittedTriggers,Pk:l.Pk,jp:l.jp,clientMetadata:new XY(l.R2),yp:l.yp,adLayoutLoggingData:l.adLayoutLoggingData}}; J85=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){n=fag(l,n,"adapter",O,L,X,F,x,Z,J,H,A,b);L=n.layoutExitSkipTriggers;X=n.R2;O.adPodSkipTarget&&O.adPodSkipTarget>0&&(X.push(w),X.push(new nb(O.adPodSkipTarget)),L=[]);X.push(new lJ(Z.adPodIndex));O.isCritical&&(L=[new Y4(l.S,n.layoutId,["error"])].concat(g.E(L)));return{PM:{layoutId:n.layoutId,layoutType:n.layoutType,vj:n.vj,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:n.jp,clientMetadata:new XY(X), yp:n.yp,adLayoutLoggingData:n.adLayoutLoggingData},JQ:L,CB:n.layoutExitMuteTriggers,rT:n.layoutExitUserInputSubmittedTriggers,QH:n.Pk}}; fag=function(l,n,O,L,X,F,x,Z,J,w,H,A,b){var r={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",jp:O};X=[new t9(X),new vT(J),new g$(L.externalVideoId),new Lb(Z),new pb({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,progressCommands:L.adVideoProgressCommands}),new kr(F),new WC({current:null}),new q_(x)];(F=L.playerOverlay.instreamAdPlayerOverlayRenderer)&&X.push(new Xc(F));(x=L.playerOverlay.playerOverlayLayoutRenderer)&&X.push(new oz(x)); A&&X.push(new yi(A));(A=L.playerUnderlay)&&X.push(new Fc(A));Z=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");A=(A=F?F.elementId:x==null?void 0:x.layoutId)?A:CL(l.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Z);X.push(new UP(A));X.push(new PC(Z));X.push(new Yr(J.adPodIndex));L.adNextParams&&X.push(new Sh(L.adNextParams));L.shrunkenPlayerBytesConfig&&X.push(new Za(L.shrunkenPlayerBytesConfig));L.clickthroughEndpoint&&X.push(new p0(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&X.push(new zE(L.legacyInfoCardVastExtension)); L.sodarExtensionData&&X.push(new M_(L.sodarExtensionData));H&&X.push(new BC(H));X.push(new Kb(kx(L.pings)));J=ya(L.pings);if(b){a:{b=g.P(b);for(H=b.next();!H.done;H=b.next())if(H=H.value,H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(F=g.z(H.fulfillmentContent.fulfilledLayout,Qq))&&(F=g.z(F.renderingContent,yq))&&F.associatedPlayerBytesLayoutId===n){b=H;break a}b=void 0}b&&X.push(new xr(b))}return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",vj:J,layoutExitNormalTriggers:[new i$(l.S,n)],layoutExitSkipTriggers:L.skipOffsetMilliseconds? [new pS(l.S,A)]:[],layoutExitMuteTriggers:[new pS(l.S,A)],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:O,R2:X,yp:w(r),adLayoutLoggingData:L.adLayoutLoggingData}}; gg5=function(l,n,O,L,X,F,x,Z,J){L.every(function(H){return Ou(H,[],["LAYOUT_TYPE_MEDIA"])})||AV("Unexpect subLayout type for DAI composite layout"); n=CL(l.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n);var w={layoutId:n,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",jp:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",vj:new Map,layoutExitNormalTriggers:[new Gd(l.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pk:[],jp:"core",clientMetadata:new XY([new Qi(O),new eO(Z),new N_(L),new t9(X),new Iz(F),new jO({}),new Rz(J)]),yp:x(w)}}; t9a=function(l){return l!=null}; ti=function(l,n,O){var L=this;this.W=l;this.N=n;this.Rz=O;this.S=function(X){return FT(L.W.get(),X)}}; T$k=function(l,n,O,L,X,F,x){if(!O.prefetchModeConfig)return new C("AdPlacementConfig for Live Prefetch is missing prefetch_config");O=O.prefetchModeConfig;L*=1E3;var Z=[];if(!O.breakLengthMs)return new C("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var J=g.P(O.breakLengthMs),w=J.next();!w.done;w=J.next())if(w=w.value,Number(w)>0){var H=L+Number(O.startTimeOffsetMs),A=H+Number(O.cacheFetchSmearingDurationMs);w={Y6:new qo(A,A+Number(w)),EA:!1,uW:new qo(Math.floor(H+Math.random()* Number(O.cacheFetchSmearingDurationMs)),A),cueProcessedMs:L?L:H};H=[];H.push(new li({}));A=[];A.push(new SP(l.S));A.push(new Sgi(l.S));x&&H.push(new jO({}));Z.push(ci(l,n,X,w,F,H,A))}return Z}; ci=function(l,n,O,L,X,F,x){F=F===void 0?[]:F;x=x===void 0?[]:x;var Z=UT(l.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),J=[];x=g.P(x);for(var w=x.next();!w.done;w=x.next())J.push(w.value);L.uW&&L.uW.start!==L.Y6.start&&J.push(new $4(l.S,O,new qo(L.uW.start,L.Y6.start),!1));J.push(new $4(l.S,O,new qo(L.Y6.start,L.Y6.end),L.EA));L={getAdBreakUrl:n.getAdBreakUrl,Tz:L.Y6.start,wP:L.Y6.end,cueProcessedMs:L.cueProcessedMs};n=new ai(l.S,Z);F=[new $r(L)].concat(g.E(F));return{slotId:Z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:J,slotExpirationTriggers:[new zd(l.S,O),new fS(l.S,Z),new KS(l.S,Z)],jp:"core",clientMetadata:new XY(F),adSlotLoggingData:X}}; aa9=function(l,n,O){var L=[];O=g.P(O);for(var X=O.next();!X.done;X=O.next())L.push(KV5(l,n,X.value));return L}; KV5=function(l,n,O){return O.triggeringSlotId!=null&&O.triggeringSlotId===l?O.clone(n):O}; cM5=function(l,n,O,L,X){return R1e(l,n,O,L,X)}; CB0=function(l,n,O,L){var X=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");return R1e(l,X,n,O,L)}; R1e=function(l,n,O,L,X){var F=new eP(l.S,O),x=[new sZ(l.S,n)];l=[new fS(l.S,n),new zd(l.S,L)];return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(X({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l},O))]),adSlotLoggingData:void 0}}; wCg=function(l,n,O,L,X,F){var x=UT(l.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER"),J=CL(l.W.get(),"LAYOUT_TYPE_SURVEY",Z);L=vP(l,n,O,L);var w=[new sZ(l.S,x)];O=[new fS(l.S,x),new zd(l.S,O),new y1(l.S,J)];if(L instanceof C)return L;Z=F({slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:L,slotFulfillmentTriggers:w,slotExpirationTriggers:O},{slotId:Z,layoutId:J});F=Z.DvG;Z=Z.wmq;return[{slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:HP(l,n,x,L),slotFulfillmentTriggers:Ai(l,n,x,w),slotExpirationTriggers:O,jp:"core",clientMetadata:new XY([new d$(F),new Cb(bZ(n)),new vC({Om:l.Om(n)})]),adSlotLoggingData:X},Z]}; bZ=function(l){return l.kind==="AD_PLACEMENT_KIND_START"}; A90=function(l,n,O,L,X){X=X?X:UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");O=new eP(l.S,O);var F=[new sZ(l.S,X)];l=[new zd(l.S,n),new fS(l.S,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:F,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(L({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:O,slotFulfillmentTriggers:F,slotExpirationTriggers:l}))])}}; b09=function(l,n,O,L){var X=UT(l.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");O=new eP(l.S,O);var F=[new sZ(l.S,X)];l=[new zd(l.S,n),new fS(l.S,X)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:F,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(L({slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:O,slotFulfillmentTriggers:F,slotExpirationTriggers:l}))])}}; ogi=function(l,n,O,L,X,F,x){var Z=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER"),J=CL(l.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Z);L=CJg(l,L,F,x,J);if(L instanceof C)return L;x=[new sZ(l.S,Z)];X=[new zd(l.S,F),new sZ(l.S,X),new CS(l.S,X)];O=wg(O,{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:L,slotFulfillmentTriggers:x,slotExpirationTriggers:X});l=l.N.get();F={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",jp:"core"};n={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", vj:new Map,layoutExitNormalTriggers:[new t$k(l.S,J,n.durationMs)],layoutExitSkipTriggers:[new lP8(l.S,J,n.durationMs)],Pk:[new v57(l.S,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jp:"core",clientMetadata:new XY([new SO(n)]),yp:O(F)};return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:L,slotFulfillmentTriggers:x,slotExpirationTriggers:X,clientMetadata:new XY([new d$(n)])}}; KZi=function(l,n,O,L,X,F){n=vP(l,n,O,L);if(n instanceof C)return n;var x=n instanceof $4?new a3i(l.S,O,n.S):null;L=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");var Z=[new sZ(l.S,L)];l=[new zd(l.S,O),new fS(l.S,L)];F=F({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:n,slotFulfillmentTriggers:Z,slotExpirationTriggers:l},x);return F instanceof LL?new C(F):{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:Z,slotExpirationTriggers:l, jp:"core",clientMetadata:new XY([new d$(F)]),adSlotLoggingData:X}}; sIf=function(l,n,O,L){var X=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER"),F=new k4(l.S,n),x=[new Ri(l.S,X)];l=[new zd(l.S,n),new fS(l.S,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(L({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l}))]),adSlotLoggingData:O}}; fPf=function(l,n,O,L){var X=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");O=new eP(l.S,O);var F=[new sZ(l.S,X)],x=[new fS(l.S,X),new zd(l.S,n)];F={slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:O,slotFulfillmentTriggers:F,slotExpirationTriggers:x};return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:[new sZ(l.S,X)],slotExpirationTriggers:[new zd(l.S,n),new fS(l.S,X)],jp:"core",clientMetadata:new XY([new d$(L(F))])}}; Sf5=function(l,n,O,L,X){var F=UT(l.W.get(),"SLOT_TYPE_IN_PLAYER");O=new Q1(l.S,L,O);L=[new sZ(l.S,F)];l=[new zd(l.S,n)];return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:L,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(X({slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:O,slotFulfillmentTriggers:L,slotExpirationTriggers:l}))])}}; $Tk=function(l,n,O,L,X,F){var x=UT(l.W.get(),n);return lo(l,x,n,new eP(l.S,L),[new zd(l.S,O),new fS(l.S,x),new Y4(l.S,L,["error"])],X,F)}; dT9=function(l,n,O,L,X,F,x){var Z=UT(l.W.get(),n);return lo(l,Z,n,new Y4(l.S,X,["normal"]),[new zd(l.S,O),new fS(l.S,Z),new Y4(l.S,L,["error"])],F,x)}; jma=function(l,n,O,L,X){var F=UT(l.W.get(),n);return lo(l,F,n,new k4(l.S,O),[new zd(l.S,O),new fS(l.S,F)],L,X)}; i0k=function(l,n,O,L,X){O=O?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var F=UT(l.W.get(),O);n=new k4(l.S,n);var x=[new sZ(l.S,F)];l=[new fS(l.S,F)];return{slotId:F,slotType:O,slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(X({slotId:F,slotType:O,slotPhysicalPosition:1,jp:"core",slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:l}))]),adSlotLoggingData:L}}; vs5=function(l,n,O,L){var X=UT(l.W.get(),"SLOT_TYPE_PLAYER_BYTES"),F=new dR(l.S),x=[new Ri(l.S,X)];l=[new zd(l.S,n)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(L({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:l})),new jO({})]),adSlotLoggingData:O}}; FVq=function(l,n){return uc8(l.Rz.get())?new Y4(l.S,n,["normal","error","skipped"]):new Y4(l.S,n,["normal"])}; Z0i=function(l,n,O,L,X){n=FVq(l,n);l=wf(l,n,O);X=X({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers,jp:l.jp});return X instanceof C?X:{Fr:Object.assign({},l,{clientMetadata:new XY([new d$(X.layout)]),adSlotLoggingData:L}),yE:X.yE}}; J9k=function(l,n,O,L,X,F,x){O=x_8(l,n,O,L);if(O instanceof C)return O;x=x({slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers,jp:O.jp});if(x instanceof C)return x;L=[new Cb(bZ(n)),new d$(x.layout),new vC({Om:l.Om(n)})];F&&L.push(new sP({}));return{Fr:{slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:HP(l, n,O.slotId,O.slotEntryTrigger),slotFulfillmentTriggers:Ai(l,n,O.slotId,O.slotFulfillmentTriggers),slotExpirationTriggers:O.slotExpirationTriggers,jp:O.jp,clientMetadata:new XY(L),adSlotLoggingData:X},yE:x.yE}}; HP=function(l,n,O,L){return l.Rz.get().EU(bZ(n))?new Dv(l.S,O):L}; Ai=function(l,n,O,L){return l.Rz.get().EU(bZ(n))?[new Ri(l.S,O)]:L}; wf=function(l,n,O){var L=UT(l.W.get(),"SLOT_TYPE_PLAYER_BYTES"),X=[new sZ(l.S,L)];l=[new fS(l.S,L),new zd(l.S,O)];return{slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:X,slotExpirationTriggers:l,jp:"core"}}; x_8=function(l,n,O,L){n=vP(l,n,O,L);return n instanceof C?n:wf(l,n,O)}; SEi=function(l,n,O,L,X,F){var x=UT(l.W.get(),"SLOT_TYPE_FORECASTING");n=vP(l,n,O,L);if(n instanceof C)return n;L=[new sZ(l.S,x)];l=[new fS(l.S,x),new zd(l.S,O)];return{slotId:x,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:L,slotExpirationTriggers:l,jp:"core",clientMetadata:new XY([new d$(F({slotId:x,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,jp:"core",slotEntryTrigger:n,slotFulfillmentTriggers:L,slotExpirationTriggers:l}))]),adSlotLoggingData:X}}; tOe=function(l,n,O,L,X){var F=!n.hideCueRangeMarker;switch(n.kind){case "AD_PLACEMENT_KIND_START":return new k4(l.S,O);case "AD_PLACEMENT_KIND_MILLISECONDS":return l=M9k(n,L),l instanceof C?l:X(l.Y6,F);case "AD_PLACEMENT_KIND_END":return new Ma(l.S,O,F);default:return new C("Cannot construct entry trigger",{kind:n.kind})}}; CJg=function(l,n,O,L,X){return tOe(l,n,O,L,function(F,x){return new Kkg(l.S,O,F,x,X)})}; vP=function(l,n,O,L){return tOe(l,n,O,L,function(X,F){return new $4(l.S,O,X,F)})}; lo=function(l,n,O,L,X,F,x){l=[new Ri(l.S,n)];return{slotId:n,slotType:O,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:l,slotExpirationTriggers:X,jp:"core",clientMetadata:new XY([new d$(x({slotId:n,slotType:O,slotPhysicalPosition:1,jp:"core",slotEntryTrigger:L,slotFulfillmentTriggers:l,slotExpirationTriggers:X}))]),adSlotLoggingData:F}}; nD=function(l,n){g.V.call(this);this.Rz=l;this.S=n;this.eventCount=0}; OA=function(l,n,O,L){nD.call(this,l,n);this.Rz=l;this.tG=O;this.context=L}; gB=function(){this.S=new Map}; oR=function(l,n){var O=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=l;this.result=n.result;this.error=n.error;n.promise&&n.promise.then(function(L){LD(O,L)},function(L){XC(O,L)})}; hw=function(l){if(FC(l)){if(l instanceof oR)return l;if(xW(l))return new oR("wait",{promise:l})}return new oR("done",{result:l})}; Zb=function(){return new oR("wait",{})}; Jw=function(l){return new oR("fail",{error:l})}; wB=function(l){try{return hw(l())}catch(n){return Jw(n)}}; Aw=function(l,n){var O=Zb();l.onSuccess.push(function(L){try{var X=n(L);LD(O,X)}catch(F){XC(O,F)}}); l.onFailure.push(function(L){XC(O,L)}); HJ(l);return O}; bo=function(l,n){var O=Zb();l.onSuccess.push(function(L){LD(O,L)}); l.onFailure.push(function(L){try{var X=n(L);LD(O,X)}catch(F){XC(O,F)}}); HJ(l);return O}; vr0=function(l,n){var O=Zb();l.onSuccess.push(function(L){try{n(),LD(O,L)}catch(X){XC(O,X)}}); l.onFailure.push(function(L){try{n(),XC(O,L)}catch(X){XC(O,X)}}); HJ(l)}; LD=function(l,n){if(FC(n)){if(xW(n)){n.then(function(O){LD(l,O)},function(O){XC(l,O)}); return}if(n instanceof oR){Aw(n,function(O){LD(l,O)}); bo(n,function(O){XC(l,O)}); return}}l.currentState="done";l.result=n;HJ(l)}; XC=function(l,n){l.currentState="fail";l.error=n;HJ(l)}; HJ=function(l){if(l.currentState==="done"){var n=l.onSuccess;l.onSuccess=[];l.onFailure=[];n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=O.value,O(l.result)}else if(l.currentState==="fail")for(n=l.onFailure,l.onSuccess=[],l.onFailure=[],n=g.P(n),O=n.next();!O.done;O=n.next())O=O.value,O(l.error)}; n_5=function(l){return function(){return l97(l.apply(this,g.eq.apply(0,arguments)))}}; l97=function(l){return wB(function(){return rB(l,l.next())})}; rB=function(l,n){return n.done?hw(n.value):bo(Aw(n.value.sN,function(O){return rB(l,l.next(O))}),function(O){return rB(l,l.throw(O))})}; OLv=function(l,n){if(l.length===0)return hw(NaN);var O=Zb(),L=l.length;l.forEach(function(X,F){vr0(hw(X),function(){O.currentState==="wait"&&(n!==void 0&&n(F)&&O.currentState==="wait"?O.resolve(F):(--L,L===0&&O.resolve(NaN)))})}); return O}; g_a=function(l){return l.map(function(n){return hw(n)})}; uo=function(l){var n=l.hours||0;var O=l.minutes||0,L=l.seconds||0;n=L+O*60+n*3600+(l.days||0)*86400+(l.weeks||0)*604800+(l.months||0)*2629800+(l.years||0)*31557600;n<=0?n={hours:0,minutes:0,seconds:0}:(l=n,n=Math.floor(l/3600),l%=3600,O=Math.floor(l/60),L=Math.floor(l%60),n={hours:n,minutes:O,seconds:L});var X=n.hours===void 0?0:n.hours;O=n.minutes===void 0?0:n.minutes;l=n.seconds===void 0?0:n.seconds;L=X>0;n=[];if(L){X=(new Intl.NumberFormat("en-u-nu-latn")).format(X);var F=["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(" "); X="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(UA)?X.replace(",","\u00a0"):F.includes(UA)?X.replace(",","\u202f"):x.includes(UA)?X.replace(",","."):X;n.push(X)}L=L===void 0?!1:L;O=(["af","be","lt"].includes(UA)||L)&&O<10?Lo0().format(O):(new Intl.NumberFormat("en-u-nu-latn")).format(O);n.push(O);O=Lo0().format(l);n.push(O);O=":";"da fi id si sr sr-Latn".split(" ").includes(UA)&&(O=".");return n.join(O)}; Lo0=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; XQ9=function(l,n){var O,L;l=((O=l.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(L=O.videoAuthorizationToken)==null?void 0:L.credentialTransferTokens)||[];for(O=0;O<l.length;++O)if(l[O].scope===n)return l[O].token||void 0}; PJ=function(l){if(l&&l.simpleText)return l.simpleText;var n="";if(l&&l.runs)for(var O=0;O<l.runs.length;O++)l.runs[O].text&&(n+=l.runs[O].text);return n}; T$=function(l){return l?function(){try{return l.apply(this,arguments)}catch(n){g.Ir(n)}}:l}; WJ=function(){this.N=new Set;this.W=new Set;this.L=new Map;this.client=void 0;this.csn=null}; EA=function(){WJ.instance||(WJ.instance=new WJ);return WJ.instance}; N8=function(){}; Db=function(){this.T=[];this.G=[];this.S=[];this.NQ=[];this.B=[];this.Y=[];this.N=new Map;this.V=new Map;this.W=new Set;this.Q5=new Map}; q8=function(){Db.instance||(Db.instance=new Db);return Db.instance}; kW=function(l,n,O,L){L=L===void 0?{}:L;g.lk(function(){o_a.includes(n)||(g.d2(new g.at("createClientScreen() called with a non-page VE",n)),n=83769);L.isHistoryNavigation||(l.NQ=[],l.S.push({rootVe:n,key:L.key||""}));l.T=[];l.G=[];L.qa?Fo9(l,n,O,L):xpi(l,n,O,L)})()}; hqa=function(l,n,O){O=O===void 0?0:O;g.lk(function(){n.then(function(L){l.W.has(O)&&l.L&&l.L();var X=g.yS(O),F=g.km(O);if(X&&F){var x;(L==null?0:(x=L.response)==null?0:x.trackingParams)&&g.ar(l.client,X,F,g.Dx(L.response.trackingParams));var Z;(L==null?0:(Z=L.playerResponse)==null?0:Z.trackingParams)&&g.ar(l.client,X,F,g.Dx(L.playerResponse.trackingParams))}})})()}; M8=function(l){var n=q8();g.lk(function(){var O=g.Dx(l);ye(n,O);return O})()}; ye=function(l,n,O,L){L=L===void 0?0:L;g.lk(function(){if(l.W.has(L))return l.T.push([n,O]),!0;var X=g.yS(L),F=O||g.km(L);if(X&&F){if(g.E0("combine_ve_grafts")){var x=l.N.get(F.toString());x?x.push(n):(l.V.set(F.toString(),F),l.N.set(F.toString(),[n]));l.Wm||(l.Wm=g.lX(0,function(){Qe(l,X)},1200))}else g.ar(l.client,X,F,n); return!0}return!1})()}; ZL9=function(l,n,O,L){L=L===void 0?0:L;var X=g.yS(L);n=n||g.km(L);X&&n&&(l=l.client,L=Sr({cttAuthInfo:MR(X)||void 0},X),O={csn:X,ve:n.getAsJson(),clientData:O},X==="UNDEFINED_CSN"?tr("visualElementStateChanged",L,O):l?E$("visualElementStateChanged",O,l,L):g.JG("visualElementStateChanged",O,L))}; Fo9=function(l,n,O,L){L=L===void 0?{}:L;l.W.add(L.layer||0);l.L=function(){xpi(l,n,O,L);var x=g.km(L.layer);if(x){for(var Z=g.P(l.T),J=Z.next();!J.done;J=Z.next())J=J.value,ye(l,J[0],J[1]||x,L.layer);x=g.P(l.G);for(Z=x.next();!Z.done;Z=x.next())Z=Z.value,ZL9(l,Z[0],Z[1])}}; O||g.yS(L.layer)||l.L();if(L.qa)for(var X=g.P(L.qa),F=X.next();!F.done;F=X.next())hqa(l,F.value,L.layer);else g.Ir(Error("Delayed screen needs a data promise."))}; xpi=function(l,n,O,L){L=L===void 0?{}:L;var X=void 0;L.layer||(L.layer=0);X=L.parentLayer!==void 0?L.parentLayer:L.layer;var F=g.yS(X);X=g.km(X);var x=O||X,Z;x&&(L.parentCsn!==void 0?Z={clientScreenNonce:L.parentCsn,visualElement:x}:F&&F!=="UNDEFINED_CSN"&&(Z={clientScreenNonce:F,visualElement:x}));var J,w=g.R3("EVENT_ID");F==="UNDEFINED_CSN"&&w&&(J={servletData:{serializedServletEventId:w}});g.E0("combine_ve_grafts")&&F&&Qe(l,F);g.E0("no_client_ve_attach_unless_shown")&&x&&F&&CA(x,F);try{var H=Xok(l.client, n,Z,L.Jr,L.cttAuthInfo,J,L.implicitGestureType,L.loggingExpectations)}catch(r){tUa(r,{HI:n,rootVe:X,Gzi:O,Ec1:F,nkq:Z,Jr:L.Jr});g.Ir(r);return}jt7(H,n,L.layer,L.cttAuthInfo);F&&F!=="UNDEFINED_CSN"&&X&&!Qtk(F)&&FI5(l.client,F,X,!0);l.S[l.S.length-1]&&!l.S[l.S.length-1].csn&&(l.S[l.S.length-1].csn=H||"");g.zp({clientScreenNonce:H});N8.instance||(N8.instance=new N8);g.lk(EA().S).bind(EA())();var A=g.km(L.layer);F&&F!=="UNDEFINED_CSN"&&A&&(g.E0("web_mark_root_visible")||g.E0("music_web_mark_root_visible"))&& g.gW(H,A);l.W.delete(L.layer||0);l.L=void 0;var b;(b=l.Q5.get(L.layer))==null||b.forEach(function(r,U){r?ye(l,U,r,L.layer):A&&ye(l,U,A,L.layer)}); Jk8(l)}; Jk8=function(l){for(var n=0;n<l.B.length;n++){var O=l.B[n];try{O()}catch(L){g.Ir(L)}}for(n=l.B.length=0;n<l.Y.length;n++){O=l.Y[n];try{O()}catch(L){g.Ir(L)}}}; Qe=function(l,n){if(n===void 0)for(var O=yB5(),L=0;L<O.length;L++)O[L]!==void 0&&Qe(l,O[L]);else l.N.forEach(function(X,F){(F=l.V.get(F))&&g.KA(l.client,n,F,X)}),l.N.clear(),l.V.clear(),l.Wm=void 0}; ek=function(){}; wQ9=function(){ek.instance||(ek.instance=new ek);return ek.instance}; HLi=function(l,n,O){var L=new XMLHttpRequest;if(O==null?0:O.W8)L.onreadystatechange=function(F){O.W8(L,F)}; var X;L.open((X=n.method)!=null?X:"GET",l,!0);L.responseType="text";L.withCredentials=!0;if(n.headers)for(l=g.P(Object.entries(n.headers)),n=l.next();!n.done;n=l.next())X=g.P(n.value),n=X.next().value,X=X.next().value,L.setRequestHeader(n,X);return L}; YW=function(){}; Akf=function(){var l=navigator;return new Promise(function(n,O){var L;(L=l.webkitTemporaryStorage)!=null&&L.queryUsageAndQuota?l.webkitTemporaryStorage.queryUsageAndQuota(function(X,F){n({usage:X,quota:F})},function(X){O(X)}):O(Error("webkitTemporaryStorage is not supported."))})}; hG=function(l,n){var O=this;this.handleError=l;this.S=n;this.W=!1;self.document===void 0||self.addEventListener("beforeunload",function(){O.W=!0}); this.N=Math.random()<=.2}; rk5=function(l,n){YW.getInstance().estimate().then(function(O){O=Object.assign({},n,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:bL0(O==null?void 0:O.usage),deviceStorageQuotaMbytes:bL0(O==null?void 0:O.quota)});l.S("idbQuotaExceeded",O)})}; bL0=function(l){return typeof l==="undefined"?"-1":String(Math.ceil(l/1048576))}; uY9=function(){g.zK();return g.SU(0,192)?g.SU(0,190):!(g.E0("web_watch_cinematics_disabled_by_default")||g.E0("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Upe())}; Tgg=function(l,n){Pi5(l.program,n.YU5)&&(fp("bg_i",void 0,"player_att"),g.jk.initialize(l,function(){fp("bg_l",void 0,"player_att");G$=(0,g.Q_)()},n.cspNonce,n.Vf))}; Woa=function(l){l=l===void 0?{}:l;return g.jk.invoke(l)}; Pi5=function(l,n){if(l){var O;g.jk.isLoading()?O=!1:O=!G$||(0,g.Q_)()-G$>n;l=O}else l=!1;return l}; E_q=function(l){l=l.split("");m$.qv(l,2);m$.fc(l,50);m$.qv(l,1);m$.oC(l,48);m$.oC(l,7);m$.oC(l,44);m$.oC(l,40);return l.join("")}; g.IR=function(l,n){return l.Vf+"timedtext_video?ref=player&v="+n.videoId}; g.Ngi=function(l){var n=this;this.videoData=l;l={};this.S=(l.c1a=function(){var O=[];if(g.jk.isInitialized()){var L="";n.videoData&&n.videoData.q1&&(L=n.videoData.q1+("&r1b="+n.videoData.clientPlaybackNonce));var X={};L=(X.atr_challenge=L,X);fp("bg_v",void 0,"player_att");(L=Woa(L))?(fp("bg_s",void 0,"player_att"),O.push("r1a="+L)):(fp("bg_e",void 0,"player_att"),O.push("r1c=2"))}else fp("bg_e",void 0,"player_att"),window.trayride||window.botguard?O.push("r1c=1"):O.push("r1c=4");O.push("r1d="+g.jk.getState()); return O.join("&")},l.c6a=function(O){return"r6a="+(Number(O.c)^JM())},l.c6b=function(O){return"r6b="+(Number(O.c)^Number(g.R3("CATSTAT",0)))},l); this.videoData&&this.videoData.q1?this.HH=Lh(this.videoData.q1):this.HH={}}; g.Dpk=function(l){if(l.videoData&&l.videoData.q1){for(var n=[l.videoData.q1],O=g.P(Object.keys(l.S)),L=O.next();!L.done;L=O.next())L=L.value,l.HH[L]&&l.S[L]&&(L=l.S[L](l.HH))&&n.push(L);return n.join("&")}return null}; g.dB=function(l,n){Tgg(l,{YU5:g.HQ(n.experiments,"bg_vm_reinit_threshold"),cspNonce:n.cspNonce,Vf:n.Vf||""})}; qu5=function(){var l=XMLHttpRequest.prototype.fetch;return!!l&&l.length===3}; $W=function(l){l=l===void 0?2592E3:l;if(l>0&&!(Rw7()>(0,g.Q_)()-l*1E3))return 0;l=g.dU("yt-player-quality");if(typeof l==="string"){if(l=g.c7[l],l>0)return l}else if(l instanceof Object)return l.quality;return 0}; Ve=function(){var l=g.dU("yt-player-proxima-pref");return l==null?null:l}; kgk=function(){var l=g.dU("yt-player-quality");if(l instanceof Object&&l.quality&&l.previousQuality){if(l.quality>l.previousQuality)return 1;if(l.quality<l.previousQuality)return-1}return 0}; yk9=function(){var l={values:{},fz:{}};try{var n=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);l.values=n.values;l.halfLives=n.halfLives}catch(O){}return l}; BJ=function(){return g.dU("yt-player-performance-cap")||{}}; cJ=function(){var l;return(l=g.dU("yt-player-performance-cap-active-set"))!=null?l:[]}; MX0=function(l){(l===void 0?0:l)?(l=cJ().filter(function(n){return n.startsWith("1")}),g.It("yt-player-performance-cap-active-set",l,2592E3)):g.It("yt-player-performance-cap-active-set",[],2592E3)}; Qna=function(l){g.It("yt-player-watch-later-pending",l)}; eq5=function(){return!!g.dU("yt-player-headers-readable")}; Yua=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(l){return 0}}; g.io=function(){var l=g.dU("yt-player-caption-language-preferences");return l?l:[]}; z$=function(){var l=g.dU("yt-player-user-settings"),n=new Map;if(l){l=g.P(Object.entries(l));for(var O=l.next();!O.done;O=l.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;n.set(O,L)}}return n}; pD=function(){try{var l=window.navigator;if(l.getAutoplayPolicy&&typeof l.getAutoplayPolicy==="function"){var n=document.getElementsByClassName(g.Sk.cdF);var O=n.length>0&&n[0]?l.getAutoplayPolicy(n[0]):l.getAutoplayPolicy("mediaelement");if(jn9[O])return jn9[O]}}catch(L){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; sA=function(l){return l.UU||l.M3||l.mutedAutoplay}; Ggf=function(l,n){return sA(l)?n!==1&&n!==2&&n!==0?"AUTOPLAY_STATUS_UNAVAILABLE":l.Zb?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; mp5=function(l,n,O){var L=n.j();l.thirdParty||(l.thirdParty={});L.ancestorOrigins&&(l.thirdParty.embeddedPlayerContext=Object.assign({},l.thirdParty.embeddedPlayerContext,{ancestorOrigins:L.ancestorOrigins}));L.J("embeds_enable_autoplay_and_visibility_signals")&&(L.Nm!=null&&(l.thirdParty.embeddedPlayerContext=Object.assign({},l.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(L.Nm)})),L.s8&&(l.thirdParty.embeddedPlayerContext=Object.assign({},l.thirdParty.embeddedPlayerContext,{visibilityFractionSource:L.s8})), l.thirdParty.embeddedPlayerContext=Object.assign({},l.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:pD(),autoplayIntended:sA(n),autoplayStatus:Ggf(n,O)}))}; $p9=function(l,n){Rm(l,2,n.iS,fD,3);Rm(l,3,n.yA,I9i,3);Ku(l,4,n.onesieUstreamerConfig);Ku(l,9,n.Th);Rm(l,10,n.W6,KD,3);Rm(l,15,n.reloadPlaybackParams,dp5,3)}; Bg9=function(l,n){Rm(l,1,n.formatId,aR,3);sf(l,2,n.startTimeMs);sf(l,3,n.durationMs);sf(l,4,n.kW);sf(l,5,n.Sr);Rm(l,9,n.hW3,VXi,3);Rm(l,11,n.Kci,RR,1);Rm(l,12,n.Oh,RR,1)}; ck5=function(l,n){am(l,1,n.videoId);sf(l,2,n.lmt)}; VXi=function(l,n){if(n.q8)for(var O=0;O<n.q8.length;O++)Rm(l,1,n.q8[O],ck5,3)}; aR=function(l,n){sf(l,1,n.itag);sf(l,2,n.lmt);am(l,3,n.xtags)}; CD=function(l){return{itag:Im(l,1),lmt:Im(l,2),xtags:VN(l,3)}}; RR=function(l,n){sf(l,1,n.startTicks);sf(l,2,n.CU);sf(l,3,n.timescale)}; iL9=function(l){return{startTicks:Im(l,1),CU:Im(l,2),timescale:Im(l,3)}}; zqi=function(l,n){sf(l,1,n.defaultPolicy);sf(l,2,n.smooth);sf(l,3,n.visibility);sf(l,4,n.Xn);sf(l,5,n.performance);sf(l,6,n.speed)}; fD=function(l,n){sf(l,13,n.timeSinceLastManualFormatSelectionMs);var O=n.lastManualDirection;O!==void 0&&(pu(l,112),pu(l,O<<1^O>>31));sf(l,16,n.f25);sf(l,17,n.detailedNetworkType);sf(l,18,n.A4);sf(l,19,n.UW);sf(l,21,n.HC);sf(l,23,n.g6);sf(l,28,n.vW);sf(l,29,n.qPQ);sf(l,34,n.visibility);O=n.playbackRate;if(O!==void 0){var L=new ArrayBuffer(4);(new Float32Array(L))[0]=O;O=(new Uint32Array(L))[0];if(O!==void 0)for(pu(l,285),S9(l,4),L=0;L<4;)l.view.setUint8(l.pos,O&255),O>>=8,l.pos+=1,L+=1}sf(l,36,n.Jc); Rm(l,38,n.mediaCapabilities,Su9,3);sf(l,39,n.ET5);sf(l,40,n.gS);sf(l,44,n.playerState);fu(l,46,n.BL);sf(l,48,n.Wh);sf(l,50,n.YS);sf(l,51,n.V6);sf(l,54,n.lW);fu(l,56,n.JAf);sf(l,57,n.GG);fu(l,58,n.hL);sf(l,59,n.zx);sf(l,60,n.DW);fu(l,61,n.isPrefetch);sf(l,62,n.eQ);Ku(l,63,n.sabrLicenseConstraint);sf(l,64,n.l25);sf(l,66,n.bfF);sf(l,67,n.TPp);sf(l,68,n.h6F);am(l,69,n.audioTrackId);fu(l,71,n.uT);Rm(l,72,n.ctm,zqi,1);sf(l,74,n.WB);sf(l,75,n.NE)}; Su9=function(l,n){if(n.videoFormatCapabilities)for(var O=0;O<n.videoFormatCapabilities.length;O++)Rm(l,1,n.videoFormatCapabilities[O],pQ5,1);if(n.audioFormatCapabilities)for(O=0;O<n.audioFormatCapabilities.length;O++)Rm(l,2,n.audioFormatCapabilities[O],sn8,1);Rm(l,4,n.perPlaybackAttributes,f9g,3);sf(l,5,n.hdrModeBitmask)}; pQ5=function(l,n){sf(l,1,n.videoCodec);sf(l,3,n.maxHeight);sf(l,4,n.maxWidth);sf(l,11,n.maxFramerate);sf(l,12,n.maxBitrateBps);fu(l,15,n.is10BitSupported)}; sn8=function(l,n){sf(l,1,n.audioCodec);sf(l,2,n.numChannels);sf(l,3,n.maxBitrateBps);sf(l,6,n.spatialCapabilityBitmask)}; f9g=function(l,n){if(n.itagDenylist)for(var O=0;O<n.itagDenylist.length;O++)sf(l,1,n.itagDenylist[O])}; KD=function(l,n){Rm(l,1,n.clientInfo,Koq,3);Ku(l,2,n.ZY);Ku(l,3,n.playbackCookie);Ku(l,4,n.Th);if(n.SW)for(var O=0;O<n.SW.length;O++)Rm(l,5,n.SW[O],a99,3);if(n.RZ)for(O=0;O<n.RZ.length;O++)sf(l,6,n.RZ[O]);am(l,7,n.ONp);Rm(l,8,n.Lc,Rqi,3)}; Cik=function(l,n){sf(l,1,n.H8q);sf(l,2,n.tCi)}; tXq=function(l,n){var O=n.code;O!==void 0&&(pu(l,8),pu(l,O<<1^O>>31));am(l,2,n.message)}; v_5=function(l,n){sf(l,1,n.clientState);Rm(l,2,n.i8p,Cik,1)}; Rqi=function(l,n){Ku(l,1,n.wl1);Rm(l,2,n.qUF,tXq,3);Rm(l,3,n.coldStartInfo,v_5,3)}; a99=function(l,n){sf(l,1,n.type);Ku(l,2,n.value)}; Koq=function(l,n){am(l,1,n.hl);am(l,12,n.deviceMake);am(l,13,n.deviceModel);sf(l,16,n.clientName);am(l,17,n.clientVersion);am(l,18,n.osName);am(l,19,n.osVersion)}; l8v=function(l,n){am(l,1,n.name);am(l,2,n.value)}; nx7=function(l,n){am(l,1,n.url);if(n.zm)for(var O=0;O<n.zm.length;O++)Rm(l,2,n.zm[O],l8v,3);Ku(l,3,n.postBody);fu(l,4,n.b13);fu(l,6,n.ZD)}; I9i=function(l,n){Ku(l,2,n.pG);Ku(l,5,n.encryptedClientKey);Ku(l,6,n.iv);Ku(l,7,n.Dd);fu(l,10,n.G0);fu(l,13,n.Ar);fu(l,14,n.uM);Ku(l,16,n.pG2);fu(l,17,n.BV)}; O$7=function(l){return{jx:Im(l,1),VG:Im(l,2),body:$s(l,4)}}; dp5=function(l,n){am(l,1,n.token)}; gxv=function(l){return{token:VN(l,1)}}; LE9=function(l){return{SN:Im(l,1),xn5:Im(l,2)}}; xrv=function(l,n){Rm(l,1,n.iS,fD,3);if(n.jZ)for(var O=0;O<n.jZ.length;O++)Rm(l,2,n.jZ[O],aR,3);if(n.kP)for(O=0;O<n.kP.length;O++)Rm(l,3,n.kP[O],Bg9,3);Ku(l,5,n.videoPlaybackUstreamerConfig);if(n.Mm)for(O=0;O<n.Mm.length;O++)Rm(l,6,n.Mm[O],XZ9,3);if(n.wl)for(O=0;O<n.wl.length;O++)Rm(l,16,n.wl[O],aR,3);if(n.tb)for(O=0;O<n.tb.length;O++)Rm(l,17,n.tb[O],aR,3);if(n.Tg)for(O=0;O<n.Tg.length;O++)Rm(l,18,n.Tg[O],aR,3);Rm(l,19,n.W6,KD,3);Rm(l,21,n.xQ,oxa,3);sf(l,22,n.yk);sf(l,23,n.TF);if(n.cI)for(O=0;O<n.cI.length;O++)Rm(l, 1E3,n.cI[O],FEe,3)}; XZ9=function(l,n){Rm(l,1,n.formatId,aR,3);sf(l,2,n.YV);sf(l,3,n.sequenceNumber);Rm(l,4,n.LA,RR,1);sf(l,5,n.sL);sf(l,6,n.Ma)}; oxa=function(l,n){if(n.k_)for(var O=0;O<n.k_.length;O++)am(l,1,n.k_[O]);Ku(l,2,n.XO);am(l,3,n.RS);sf(l,4,n.H4);sf(l,5,n.zr);am(l,6,n.Ez)}; FEe=function(l,n){if(n.jZ)for(var O=0;O<n.jZ.length;O++)Rm(l,1,n.jZ[O],aR,3);if(n.kP)for(O=0;O<n.kP.length;O++)Rm(l,2,n.kP[O],Bg9,3);am(l,3,n.clipId)}; g.tw=function(l,n){Rm(l,1,n.iS,fD,3);Ku(l,3,n.videoPlaybackUstreamerConfig);Rm(l,5,n.W6,KD,3);Rm(l,6,n.xQ,oxa,3)}; JJ5=function(l,n){am(l,1,n.cpn);sf(l,2,n.sequenceNumber);am(l,3,n.serializedWatchEndpointLoggingContext);if(n.decoderInfo)for(var O=0;O<n.decoderInfo.length;O++)Rm(l,6,n.decoderInfo[O],hWk,3);am(l,9,n.playerResponseCpn);sf(l,10,n.transitionStitchType);sf(l,12,n.timestampOffsetMsecs);sf(l,15,n.remoteControlMode);if(n.remoteConnectedDevices)for(O=0;O<n.remoteConnectedDevices.length;O++)Rm(l,16,n.remoteConnectedDevices[O],Z$g,3);Ku(l,17,n.serializedHouseBrandPlayerServiceLoggingContext)}; hWk=function(l,n){sf(l,1,n.elapsedTimeMs);am(l,3,n.videoDecoderName)}; Z$g=function(l,n){sf(l,1,n.deviceInterface);am(l,2,n.deviceVersion);fu(l,3,n.isSleeping)}; wZ8=function(l){return{first:Im(l,1),cz:Im(l,2)}}; H$a=function(l){return{bitrate:Im(l,6),width:Im(l,7),height:Im(l,8),fps:Im(l,25),averageBitrate:Im(l,31),audioSampleRate:Im(l,45),audioChannels:Im(l,46)}}; vJ=function(l){return{itagDenylist:ca(l,1)}}; rJk=function(l){return{H1z:Im(l,1),itag:VN(l,3),ZP:Ba(l,4,AJg),lmt:Im(l,5),nc5:Im(l,7),xtags:VN(l,15),CvF:Ba(l,23,b$8),zk:Ba(l,34,vJ)}}; AJg=function(l){return{iv:$s(l,5),UQQ:d4(l,7)}}; Uri=function(l){return{H1:ca(l,2),videoId:VN(l,3),oQ:Im(l,4)}}; b$8=function(l){return{videoId:VN(l,2)}}; u4k=function(l){return{Cj:Im(l,3),NN:Im(l,4),RQ:Im(l,5),Pfo:d4(l,8),suz:Im(l,10),Aa:Im(l,12),jg:Im(l,13),gR:Im(l,14),Ja:Im(l,15),P_:Im(l,16)}}; PNq=function(l){return{targetAudioReadaheadMs:Im(l,1),targetVideoReadaheadMs:Im(l,2),backoffTimeMs:Im(l,4),playbackCookie:$s(l,7),videoId:VN(l,8)}}; Tog=function(l){return{minBandwidthBytesPerSec:Im(l,1),minReadaheadMs:Im(l,2)}}; WE7=function(l){return{startMinReadaheadPolicy:iv(l,1,Tog),resumeMinReadaheadPolicy:iv(l,2,Tog)}}; Exg=function(l){return{label:VN(l,1),text:VN(l,2)}}; No8=function(l){return{videoId:VN(l,1),formatId:Ba(l,2,CD),debugInfo:iv(l,3,Exg)}}; Dre=function(l){return{S$:iv(l,1,No8)}}; qT0=function(l){return{JR:Im(l,1),un:Im(l,2),minReadaheadMs:Im(l,3)}}; kxa=function(l){return{Wg:Im(l,1),items:iv(l,2,qT0),FD:Im(l,3)}}; yJ0=function(l){return{token:VN(l,1),videoId:VN(l,2)}}; Mv0=function(l){return{JE:Im(l,1)}}; Q_5=function(l){return{lx5:VN(l,1),action:Im(l,2),Pg:Ba(l,3,Mv0)}}; ld=function(l){return{U3:Im(l,1),A6:Im(l,2),seekSource:Im(l,3)}}; YTq=function(l){return{FA:iv(l,1,eWi),ZNp:VN(l,2)}}; j_q=function(l){return{Uz:VN(l,1),Yy:Im(l,2),S_m:Im(l,3),rR:Im(l,4),La:Im(l,5),xx:Im(l,6)}}; Gxv=function(l){return{GF:Im(l,1)}}; eWi=function(l){return{clipId:VN(l,1),Yk:Ba(l,2,j_q),Xm:Ba(l,3,Gxv)}}; mr5=function(l){return{type:Im(l,1),scope:Im(l,2),value:$s(l,3),sendByDefault:d4(l,4),writePolicy:Im(l,5)}}; I85=function(l){var n=[];l=g.P(l.split(","));for(var O=l.next();!O.done;O=l.next()){var L=O.value;L&&((O=L.startsWith("!"))&&(L=L.substring(1)),L=L.split("-"),L.length<3||n.push({rh:L[0],platform:L[1],deviceVersion:L[2],JN:O}))}return n}; Vvv=function(l){return I85(l).map(function(n){return{deviceInterface:drf[$rf[n.rh]]||0,deviceVersion:n.deviceVersion||"",isSleeping:n.JN}})}; g.nn=function(l,n){this.id=l;this.O_=n;this.captionTracks=[];this.N=this.L=null;this.xtags="";this.B=!1;this.S=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";l=this.O_.id.split(".");l.length>1&&(this.B=l[1]==="2")}; OH=function(l,n,O,L,X){this.W=l;this.S=n;this.N=O;this.reason=L;this.Sv=X===void 0?0:X}; g.gI=function(l,n,O,L){return new OH(g.c7[l]||0,g.c7[n]||0,O,L)}; XF=function(l){if(Ln&&l.Sv)return!1;var n=g.c7.auto;return l.W===n&&l.S===n}; FF=function(l){return oe[l.S||l.W]||"auto"}; Bov=function(l,n){n=g.c7[n];return l.W<=n&&(!l.S||l.S>=n)}; xc=function(l){return"["+l.W+"-"+l.S+", override: "+(l.N+", reason: "+l.reason+"]")}; hF=function(l,n,O){this.videoInfos=l;this.S=n;this.audioTracks=[];if(this.S){l=new Set;O==null||O({ainfolen:this.S.length});n=g.P(this.S);for(var L=n.next();!L.done;L=n.next())if(L=L.value,!L.O_||l.has(L.O_.id)){var X=void 0,F=void 0,x=void 0;(x=O)==null||x({atkerr:!!L.O_,itag:L.itag,xtag:L.S,lang:((X=L.O_)==null?void 0:X.name)||"",langid:((F=L.O_)==null?void 0:F.id)||""})}else X=new g.nn(L.id,L.O_),l.add(L.O_.id),this.audioTracks.push(X);O==null||O({atklen:this.audioTracks.length})}}; Zu=function(){g.V.apply(this,arguments);this.S=null}; ST9=function(l,n,O,L,X,F,x){if(l.S)return l.S;var Z={},J=new Set,w={};if(JF(L)){for(var H in L.S)L.S.hasOwnProperty(H)&&(l=L.S[H],w[l.info.bF]=[l.info]);return w}H=cJe(n,L,Z);F&&X({aftsrt:wI(H)});for(var A={},b=g.P(Object.keys(H)),r=b.next();!r.done;r=b.next()){r=r.value;for(var U=g.P(H[r]),W=U.next();!W.done;W=U.next()){W=W.value;var N=W.itag,q=void 0,y=r+"_"+(((q=W.video)==null?void 0:q.fps)||0);A.hasOwnProperty(y)?A[y]===!0?w[r].push(W):Z[N]=A[y]:(q=HW(n,W,O,L.isLive,J),q!==!0?(x.add(r),Z[N]=q, q==="disablevp9hfr"&&(A[y]="disablevp9hfr")):(w[r]=w[r]||[],w[r].push(W),A[y]=!0))}}F&&X({bfflt:wI(w)});for(var e in w)w.hasOwnProperty(e)&&(L=e,w[L]&&w[L][0].RR()&&(w[L]=w[L],w[L]=i$0(n,w[L],Z),w[L]=zW5(w[L],Z)));F&&Object.keys(Z).length>0&&X({rjr:yC(Z)});n=g.P(J.values());for(L=n.next();!L.done;L=n.next())(L=O.W.get(L.value))&&--L.ax;F&&X({aftflt:wI(w)});l.S=g.TB(w,function(d){return!!d.length}); return l.S}; s_i=function(l,n,O,L,X,F,x,Z){Z=Z===void 0?!1:Z;if(n.M5&&x&&x.length>1&&!(n.zx>0||n.G)){for(var J=n.W||!!X,w=J&&n.n5?F:void 0,H=cJe(n,L),A=[],b=[],r={},U=0;U<x.length;U++){var W=x[U],N=L.N.get(W);if(N&&N.info){var q=N.info;N=q.bF;if(HW(n,q,O,L.isLive)){W=q.RR()?A:b;q=g.P(H[N]);for(var y=q.next();!y.done;y=q.next()){y=y.value;var e=void 0,d=N+"_"+(((e=y.video)==null?void 0:e.fps)||0);r.hasOwnProperty(d)?r[d]===!0&&W.push(y):HW(n,y,O,L.isLive)&&(W.push(y),r[d]=!0)}}else J&&F({opfu:W})}}if(A.length&& b.length)return J&&F({opfm:A[0].itag+","+b[0].itag}),mA(new hF(A,b,w))}return pZi(l,n,O,L,X,F,Z)}; pZi=function(l,n,O,L,X,F,x){function Z(q){return!!A[q]} var J=n.W||!!X,w=J&&n.n5?F:void 0,H=new Set,A=ST9(l,n,O,L,F,J,H);AF(L)&&(A=f88(O,A,X,J,F,n),J&&F({enflt:wI(A)}));n.Yo=KEa(A,n);if(JF(L))return F=g.ak(Object.values(A),function(q){return!!q.length&&!!q[0].audio}),l=g.ak(Object.values(A),function(q){return!!q.length&&!!q[0].video}),F&&l||Gj(),mA(new hF(l,F,w)); X=a8i(n);J&&F({audioPrefOrder:X.join("_")});l=[];if(n.Wk){X=g.Jq(X,Z);for(var b=new Set,r=g.P(X),U=r.next();!U.done;U=r.next()){U=g.P(A[U.value]);for(var W=U.next();!W.done;W=U.next())W=W.value,W.O_&&!b.has(W.O_.id)&&(b.add(W.O_.id),l.push(W))}if(l.length===0){if(X.length===0)return J&&F({noaudio:1}),Gj();l=A[X[0]]}}else{l=g.ak(X,Z);if(!l)return J&&F({noaudio:1}),Gj();l=A[l]}A["9"]&&A.h&&L.tA&&!n.Fi&&(J&&F({dltvp9:1}),delete A["9"]);if(x){J&&F({bfsflt:wI(A),bfsflta:bd(O)});RW9(O,H);J&&F({bfsfltb:bd(O)}); for(var N in A)if(A.hasOwnProperty(N)&&(x=N,!(x==="f"||n.z3===0&&CN9.has(x))))for(H=g.P(A[x]),X=H.next();!X.done;X=H.next())X=X.value,n.z$?tvg(O,x,X):vx9(O,x,X);J&&F({aftsflt:bd(O)})}x=A["1h"]?"1h":"1";O=A["9h"]?"9h":"9";X=A[x];b=A[O];X&&X.length&&(n.S.highestAv1Resolution=X[X.length-1].video.S);b&&b.length&&(n.S.highestVp9Resolution=b[b.length-1].video.S);N=[];H=[];if(n.oA&&X)N=X,H=[x],F({forceAv1:x});else if(n.G&&!n.hL)for(H=l_e(L)?A["1h"]||A["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],J&&F({newhybpref:H.join(".")}), X=g.P(H),b=X.next();!b.done;b=X.next())N=N.concat(A[b.value]).filter(function(q){return q}); else n.zx>0&&b&&X&&(H=[x,O],N=X.concat(b).filter(function(q){return q})); if(N.length&&!n.hL){rI(N,H);if(J){J=[];n=g.P(N);for(L=n.next();!L.done;L=n.next())J.push(L.value.itag);F({hbdfmt:J.join(".")})}return mA(new hF(N,l,w))}N=nB8(n);N=g.ak(N,Z);if(!N){if(A[x])return F=A[x],rI(F),mA(new hF(F,l,w));J&&F({novideo:1});return Gj()}n.q5&&(N==="1"||N==="1h")&&A[O]&&(x=UH(A[N]),H=UH(A[O]),H>x?N=O:H===x&&OBf(A[O])&&(N=O));N==="9"&&A.h&&UH(A.h)>UH(A["9"])&&(N="h");n.oO&&L.isLive&&N==="("&&A.H&&UH(A["("])<1440&&(N="H");J&&F({vfmly:ud(N)});n=A[N];if(!n.length)return J&&F({novfmly:ud(N)}), Gj();rI(n);return mA(new hF(n,l,w))}; KEa=function(l,n){var O=!(!l.m&&!l.M),L=!(!l.mac3&&!l.MAC3),X=!(!l.meac3&&!l.MEAC3);l=!(!l.i&&!l.I);n.d8=l;return O||L||X||l}; OBf=function(l){l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.itag&&gB9.has(n.itag))return!0;return!1}; ud=function(l){switch(l){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return l}}; wI=function(l){var n=[],O;for(O in l)if(l.hasOwnProperty(O)){var L=O;n.push(ud(L));L=g.P(l[L]);for(var X=L.next();!X.done;X=L.next())n.push(X.value.itag)}return n.join(".")}; f88=function(l,n,O,L,X,F){var x={},Z={};g.PM(n,function(J,w){J=J.filter(function(H){var A=H.itag;if(!H.UK)return Z[A]="noenc",!1;if(F.JA&&H.bF==="(h"&&F.uv)return Z[A]="lichdr",!1;if(!l.N&&H.bF==="1e")return Z[A]="noav1enc",!1;if(H.bF==="("||H.bF==="(h"){if(l.B&&O&&O.flavor==="widevine"){var b=H.mimeType+"; experimental=allowed";(b=!!H.UK[O.flavor]&&!!O.S[b])||(Z[A]=H.UK[O.flavor]?"unspt":"noflv");return b}if(!PW(l,TP.CRYPTOBLOCKFORMAT)&&!l.Hm||l.Lf)return Z[A]=l.Lf?"disvp":"vpsub",!1}return O&&H.UK[O.flavor]&& O.S[H.mimeType]?!0:(Z[A]=O?H.UK[O.flavor]?"unspt":"noflv":"nosys",!1)}); J.length&&(x[w]=J)}); L&&Object.entries(Z).length&&X({rjr:yC(Z)});return x}; zW5=function(l,n){var O=ei(l,function(L,X){return X.video.fps>32?Math.min(L,X.video.width):L},Infinity); O<Infinity&&(l=l.filter(function(L){if(L.video.fps>32||L.video.width<O)return!0;n[L.itag]="hfrfirst";return!1})); Kh()&&(l=l.filter(function(L){if(L.itag!=="299")return!0;n[L.itag]="ps3hfr1080";return!1})); return l}; i$0=function(l,n,O){return n=n.filter(function(L){if(L.video.S<=l.Sz)return!0;O[L.itag]="maxquality";return!1})}; cJe=function(l,n,O){var L={},X;for(X in n.S)if(n.S.hasOwnProperty(X)){var F=n.S[X].info;if(l.T&&F.video&&F.video.S<l.T)O&&(O[F.itag]="min"+l.T);else{var x=F.bF;L[x]=L[x]||[];L[x].push(F)}}l=g.P(Object.keys(L));for(n=l.next();!n.done;n=l.next())rI(L[n.value]);return L}; UH=function(l){return ei(l,function(n,O){return Math.max(n,O.video.S)},0)}; HW=function(l,n,O,L,X){X=X===void 0?new Set:X;if(n.bF==="")return"unkn";if((n.itag==="304"||n.itag==="266")&&l.Q5)return"blk2khfr";if(l.V&&n.video&&n.video.S>l.V)return"max"+l.V;if(l.Of&&n.bF==="h"&&n.video&&n.video.S>1080)return"blkhigh264";if(n.bF==="(h"&&!O.T)return"enchdr";if((L===void 0?0:L)&&t6(n)&&!l.wq)return"blk51live";if((n.bF==="MAC3"||n.bF==="mac3")&&!l.L)return"blkac3";if((n.bF==="MEAC3"||n.bF==="meac3")&&!l.B)return"blkeac3";if(n.bF==="M"||n.bF==="m")return"blkaac51";if((n.bF==="so"|| n.bF==="sa")&&!l.NQ)return"blkamb";if(!l.JA&&wtk(n)&&(!O.N||n.bF!=="1e"))return"cbc";if(!O.N&&wtk(n)&&n.bF==="1e")return"cbcav1";if((n.bF==="i"||n.bF==="I")&&!l.K5)return"blkiamf";if(n.itag==="774"&&!l.Lf)return"blkouh";var F,x;if(l.G3&&(n.bF==="1"||n.bF==="1h"||O.N&&n.bF==="1e")&&((F=n.video)==null?0:F.S)&&((x=n.video)==null?void 0:x.S)>l.G3)return"av1cap";if((L=O.W.get(n.bF))&&L.ax>0)return X.add(n.bF),"byerr";var Z;if((Z=n.video)==null?0:Z.fps>32){if(!O.z3&&!PW(O,TP.FRAMERATE))return"capHfr";if(l.nf&& n.video.S>=4320)return"blk8khfr";if(fB(n)&&l.lf&&n.UK&&n.video.S>=1440)return"disablevp9hfr"}if(l.Sv&&n.Sv>l.Sv)return"ratecap";l=L8i(O,n);return l!==!0?l:!0}; rI=function(l,n){n=n===void 0?[]:n;g.ZI(l,function(O,L){var X=L.Sv-O.Sv;if(!O.RR()||!L.RR())return X;var F=L.video.height*L.video.width-O.video.height*O.video.width;!F&&n&&n.length>0&&(O=n.indexOf(O.bF)+1,L=n.indexOf(L.bF)+1,F=O===0||L===0?L||-1:O-L);F||(F=X);return F})}; g.WW=function(l,n){this.W=l;this.L=n===void 0?!1:n;this.N=this.path=this.scheme="";this.S={};this.url=""}; Ne=function(l){EH(l);return l.N}; Du=function(l){return l.W?l.W.startsWith("local"):l.scheme==="local"}; X70=function(l){EH(l);return g.Ed(l.S,function(n){return n!==null})}; qe=function(l){EH(l);var n=decodeURIComponent(l.get("mn")||"").split(",");return l.path==="/videoplayback"&&n.length>1&&!!n[1]}; kc=function(l,n){n=n===void 0?!1:n;EH(l);if(l.path!=="/videoplayback"){var O=l.clone();O.set("playerfallback","1");return O}var L=l.Ae();O=new g.wM(L);var X=l.get("fvip"),F=decodeURIComponent(l.get("mn")||"").split(",");if(X&&F&&F.length>1&&F[1])return L=O.S,l=L.replace(/^[^.]*/,""),g.An(O,(L.indexOf("rr")===0?"rr":"r")+X+"---"+F[1]+l),O=new g.WW(O.toString()),O.set("fallback_count","1"),O;if(n)return O=l.clone(),O.set("fallback_count","1"),O;X=O.S.match("\\.a1\\.googlevideo\\.com$");O.S.match("\\.googlevideo\\.com$")? (g.An(O,"redirector.googlevideo.com"),L=O.toString()):O.S.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.An(O,"www.youtube.com"),L=O.toString()):(O=gRk(L),n$(O)&&(L=O));O=new g.WW(L);O.set("cmo=pf","1");X&&O.set("cmo=td","a1.googlevideo.com");return O}; EH=function(l){if(l.W){if(!n$(l.W)&&!l.W.startsWith("local"))throw new g.at("Untrusted URL",l.W);var n=g.W1(l.W);l.scheme=n.B;l.N=n.S+(n.N!=null?":"+n.N:"");var O=n.W;if(O.startsWith("/videoplayback"))l.path="/videoplayback",O=O.slice(14);else if(O.startsWith("/initplayback"))l.path="/initplayback",O=O.slice(13);else if(O.startsWith("/api/manifest")){var L=O.indexOf("/",12),X=O.indexOf("/",L+1);L>0&&X>0?(l.path=O.slice(0,X),O=O.slice(X+1)):(l.path=O,O="")}else l.path=O,O="";L=l.S;l.S=oB9(O);Object.assign(l.S, F8q(n.L.toString()));Object.assign(l.S,L);l.S.file==="index.m3u8"&&(delete l.S.file,l.path+="/file/index.m3u8");l.W="";l.url="";l.L&&(n=$Oe(),EH(l),O=l.S[n]||null)&&(O=xlf[0](O),l.set(n,O),l.L||$Oe(""))}}; hU7=function(l){EH(l);var n=l.scheme+(l.scheme?"://":"//")+l.N+l.path;if(X70(l)){var O=[];g.PM(l.S,function(L,X){L!==null&&O.push(X+"="+L)}); n+="?"+O.join("&")}return n}; oB9=function(l){l=l.split("/");var n=0;l[0]||n++;for(var O={};n<l.length;n+=2)l[n]&&ZB5(O,l[n],l[n+1]);return O}; F8q=function(l){l=l.split("&");for(var n={},O=0;O<l.length;O++){var L=l[O],X=L.indexOf("=");X>0?ZB5(n,L.slice(0,X),L.slice(X+1)):L&&(n[L]="")}return n}; ZB5=function(l,n,O){if(n==="cmo"){var L;(L=O.indexOf("="))>=0?(n="cmo="+O.slice(0,L),O=O.slice(L+1)):(L=O.indexOf("%3D"))>=0&&(n="cmo="+O.slice(0,L),O=O.slice(L+3))}l[n]=O}; yT=function(l){var n=g.z(l,J69)||l.signatureCipher;l={x0:!1,x8:"",lq:"",s:""};if(!n)return l;n=Lh(n);l.x0=!0;l.x8=n.url;l.lq=n.sp;l.s=n.s;return l}; Me=function(l,n,O,L,X,F,x,Z,J){this.Ef=l;this.startTime=n;this.duration=O;this.ingestionTime=L;this.sourceURL=X;this.BM=J;this.endTime=n+O;this.S=x||0;this.range=F||null;this.pending=Z||!1;this.BM=J||null}; g.QT=function(){this.segments=[];this.S=null;this.W=!0;this.N=""}; w79=function(l,n){if(n>l.G2())l.segments=[];else{var O=KO(l.segments,function(L){return L.Ef>=n},l); O>0&&l.segments.splice(0,O)}}; e1=function(l,n,O,L,X){X=X===void 0?!1:X;this.data=l;this.offset=n;this.size=O;this.type=L;this.S=(this.W=X)?0:8;this.dataOffset=this.offset+this.S}; Yc=function(l){var n=l.data.getUint8(l.offset+l.S);l.S+=1;return n}; j1=function(l){var n=l.data.getUint16(l.offset+l.S);l.S+=2;return n}; GP=function(l){var n=l.data.getInt32(l.offset+l.S);l.S+=4;return n}; mx=function(l){var n=l.data.getUint32(l.offset+l.S);l.S+=4;return n}; Ie=function(l){var n=l.data;var O=l.offset+l.S;n=n.getUint32(O)*4294967296+n.getUint32(O+4);l.S+=8;return n}; dI=function(l,n){n=n===void 0?NaN:n;if(isNaN(n))var O=l.size;else for(O=l.S;O<l.size&&l.data.getUint8(l.offset+O)!==n;)++O;n=new Uint8Array(l.data.buffer,l.offset+l.S+l.data.byteOffset,O-l.S);l.S=Math.min(O+1,l.size);return ks(n)}; HBi=function(l){return new Uint8Array(l.data.buffer,l.offset+l.data.byteOffset,l.size)}; A65=function(l){this.offset=0;this.data=new DataView(new ArrayBuffer(l))}; $c=function(l,n,O,L){(new Uint8Array(l.data.buffer,l.offset,L)).set(new Uint8Array(n.buffer,O+n.byteOffset,L));l.offset+=L}; VT=function(l,n,O,L,X,F){this.startSecs=l;this.HM=n;this.context=O;this.identifier=L;this.event=X;this.S=F}; cW=function(l,n){this.data=l;this.uri=n||"http://youtube.com/streaming/metadata/segment/102015";this.Eu=BW(this,"Sequence-Number");this.L=BW(this,"Segment-Count");this.B=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=BW(this,"Ingestion-Walltime-Us")/1E6;this.S=(BW(this,"First-Frame-Time-Us")+BW(this,"First-Frame-Uncertainty-Us"))/1E6;this.uV=BW(this,"Target-Duration-Us")/1E6;this.pM=this.data["Stream-Finished"]==="T";this.N=this.data.Streamable==="T";this.cryptoPeriodIndex=BW(this,"Crypto-Period-Index"); this.W=BW(this,"Crypto-Period-Seconds")}; r6i=function(l){return l.data["Cuepoint-Type"]?new VT(-(Number(l.data["Cuepoint-Playhead-Time-Sec"])||0),Number(l.data["Cuepoint-Total-Duration-Sec"])||0,l.data["Cuepoint-Context"],l.data["Cuepoint-Identifier"]||"",bB9[l.data["Cuepoint-Event"]||""]||"unknown",(Number(l.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; Ul8=function(l){return Number(l.data["Start-Media-Time-Us"])/1E6||0}; BW=function(l,n){return Number(l.data[n])||0}; id=function(l){return l.data["Stitched-Video-Cpn"]?l.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; g.ur5=function(l){return l.data["Serialized-State"]?l.data["Serialized-State"]:""}; g.Pjq=function(l){switch(l.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; T0q=function(l,n){this.S=l;this.duration=n}; W89=function(l,n,O,L,X){this.W=X;this.S=l||0;this.pitch=n||0;this.yaw=O||0;this.roll=L||0;this.crc=X.getUint32(4)}; zP=function(l){var n={};l=l.split("\r\n");for(var O=0;O<l.length;O++){if(l[O].length===0)return n;var L=l[O].match(/([^:]+):\s+([\S\s]+)/);L!=null&&(n[L[1]]=L[2])}return null}; EB8=function(l,n){var O=g.S1(l,0,1952868452);l=g.S1(l,0,1953658222);if(O&&l){O.skip(1);var L=Yc(O)<<16|j1(O);O.skip(4);L&1&&O.skip(8);L&2&&O.skip(4);if(L&8){L=O.S;var X=mx(O);O.data.setUint32(O.offset+L,n>1?Math.ceil(X*n):Math.floor(X*n))}l.skip(1);O=Yc(l)<<16|j1(l);if(O&256){L=O&1;X=O&4;var F=O&512,x=O&1024,Z=O&2048;O=mx(l);L&&l.skip(4);X&&l.skip(4);L=(F?4:0)+(x?4:0)+(Z?4:0);for(X=0;X<O;X++)F=l.S,x=mx(l),l.data.setUint32(l.offset+F,n>1?Math.ceil(x*n):Math.floor(x*n)),l.skip(L)}}}; sH=function(l){l=new DataView(l.buffer,l.byteOffset,l.byteLength);return(l=g.S1(l,0,1836476516))?g.pn(l):NaN}; N00=function(l){var n=g.S1(l,0,1937011556);if(!n)return null;n=fn(l,n.dataOffset+8,1635148593)||fn(l,n.dataOffset+8,1635135537);if(!n)return null;var O=fn(l,n.dataOffset+78,1936995172),L=fn(l,n.dataOffset+78,1937126244);if(!L)return null;n=null;if(O)switch(O.skip(4),Yc(O)){default:n=0;break;case 1:n=2;break;case 2:n=1;break;case 3:n=255}var X=O=null,F=null;if(L=fn(l,L.dataOffset,1886547818)){var x=fn(l,L.dataOffset,1886546020),Z=fn(l,L.dataOffset,2037673328);if(!Z&&(Z=fn(l,L.dataOffset,1836279920), !Z))return null;x&&(x.skip(4),O=GP(x)/65536,F=GP(x)/65536,X=GP(x)/65536);l=HBi(Z);l=new DataView(l.buffer,l.byteOffset+8,l.byteLength-8);return new W89(n,O,F,X,l)}return null}; fn=function(l,n,O){for(;Kn(l,n);){var L=ae(l,n);if(L.type===O)return L;n+=L.size}return null}; g.S1=function(l,n,O){for(;Kn(l,n);){var L=ae(l,n);if(L.type===O)return L;n=Re(L.type)?n+8:n+L.size}return null}; g.Cn=function(l){if(l.data.getUint8(l.dataOffset)){var n=l.data;l=l.dataOffset+4;n=n.getUint32(l)*4294967296+n.getUint32(l+4)}else n=l.data.getUint32(l.dataOffset+4);return n}; ae=function(l,n){var O=l.getUint32(n),L=l.getUint32(n+4);return new e1(l,n,O,L)}; g.pn=function(l){var n=l.data.getUint8(l.dataOffset)?20:12;return l.data.getUint32(l.dataOffset+n)}; Dlq=function(l){l=new e1(l.data,l.offset,l.size,l.type,l.W);var n=Yc(l);l.skip(7);var O=mx(l);if(n===0){n=mx(l);var L=mx(l)}else n=Ie(l),L=Ie(l);l.skip(2);for(var X=j1(l),F=[],x=[],Z=0;Z<X;Z++){var J=mx(l);F.push(J);x.push(mx(l));l.skip(4)}return{timescale:O,g0:n,Yl:L,k7q:F,i8:x}}; Kn=function(l,n){if(l.byteLength-n<8)return!1;var O=l.getUint32(n);if(O<8||l.byteLength-n<O)return!1;for(O=4;O<8;O++){var L=l.getInt8(n+O);if(L<48||L>122)return!1}return!0}; Re=function(l){return l===1701082227||l===1836019558||l===1836019574||l===1835297121||l===1835626086||l===1937007212||l===1953653094||l===1953653099||l===1836475768}; qe7=function(l){l.skip(4);return{EY2:dI(l,0),value:dI(l,0),timescale:mx(l),lvf:mx(l),F33:mx(l),id:mx(l),Xq:dI(l),offset:l.offset}}; g.k2i=function(l){var n=fn(l,0,1701671783);if(!n)return null;var O=qe7(n),L=O.EY2;O=zP(O.Xq);if(l=fn(l,n.offset+n.size,1701671783))if(l=qe7(l),l=zP(l.Xq),O&&l){n=g.P(Object.keys(l));for(var X=n.next();!X.done;X=n.next())X=X.value,O[X]=l[X]}return O?new cW(O,L):null}; tF=function(l,n){for(var O=fn(l,0,n);O;){var L=O;L.type=1936419184;L.data.setUint32(L.offset+4,1936419184);O=fn(l,O.offset+O.size,n)}}; g.vW=function(l,n){for(var O=0,L=[];Kn(l,O);){var X=ae(l,O);X.type===n&&L.push(X);O=Re(X.type)?O+8:O+X.size}return L}; y6e=function(l,n){var O=g.S1(l,0,1937011556),L=g.S1(l,0,1953654136);if(!O||!L||l.getUint32(O.offset+12)>=2)return null;var X=new DataView(n.buffer,n.byteOffset,n.length),F=g.S1(X,0,1937011556);if(!F)return null;n=X.getUint32(F.dataOffset+8);L=X.getUint32(F.dataOffset+12);if(L!==1701733217&&L!==1701733238)return null;L=new A65(l.byteLength+n);$c(L,l,0,O.offset+12);L.data.setInt32(L.offset,2);L.offset+=4;$c(L,l,O.offset+16,O.size-16);$c(L,X,X.byteOffset+F.dataOffset+8,n);$c(L,l,O.offset+O.size,l.byteLength- (O.offset+O.size));O=g.P([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(X=O.next();!X.done;X=O.next())X=g.S1(l,0,X.value),L.data.setUint32(X.offset,X.size+n);l=g.S1(L.data,0,1953654136);L.data.setUint32(l.offset+16,2);return L.data}; Mla=function(l){var n=g.S1(l,0,1937011556);if(!n)return null;var O=l.getUint32(n.dataOffset+12);if(O!==1701733217&&O!==1701733238)return null;n=fn(l,n.offset+24+(O===1701733217?28:78),1936289382);if(!n)return null;O=fn(l,n.offset+8,1935894637);if(!O||l.getUint32(O.offset+12)!==1667392371)return null;n=fn(l,n.offset+8,1935894633);if(!n)return null;n=fn(l,n.offset+8,1952804451);if(!n)return null;O=new Uint8Array(16);for(var L=0;L<16;L++)O[L]=l.getInt8(n.offset+16+L);return O}; ln=function(l,n){this.S=l;this.pos=0;this.start=n||0}; nd=function(l){return l.pos>=l.S.byteLength}; of=function(l,n,O){var L=new ln(O);if(!OL(L,l))return!1;L=gK(L);if(!Ld(L,n))return!1;for(l=0;n;)n>>>=8,l++;n=L.start+L.pos;var X=Xy(L,!0);L=l+(L.start+L.pos-n)+X;L=L>9?Qbi(L-9,8):Qbi(L-2,1);l=n-l;O.setUint8(l++,236);for(n=0;n<L.length;n++)O.setUint8(l++,L[n]);return!0}; eUq=function(l){var n=new ln(l);n.c5();if(OL(n,[408125543,374648427,174,224]))n=gK(n);else return null;for(var O=l=null;!nd(n);){var L=Xy(n,!1);if(L===21432)switch(Fy(n)){default:l=0;break;case 1:l=1;break;case 3:l=2;break;case 15:l=255}else L===30320?O=gK(n):xz(n)}if(!O)return null;for(var X,F=L=n=null;!nd(O);)switch(Xy(O,!1)){case 30321:if(Fy(O)!==3)return null;break;case 30324:n=hW(O);break;case 30323:F=hW(O);break;case 30325:L=hW(O);break;case 30322:X=Xy(O,!0);X=Zy(O,X);X=new DataView(X.buffer, X.byteOffset,X.byteLength);break;default:xz(O)}return X?new W89(l,n,F,L,X):null}; gK=function(l){var n=Xy(l,!0),O=l.S.byteOffset+l.pos;O=new DataView(l.S.buffer,O,Math.min(n,l.S.buffer.byteLength-O));O=new ln(O,l.start+l.pos);l.pos+=n;return O}; Fy=function(l){for(var n=Xy(l,!0),O=JW(l),L=1;L<n;L++)O=O*256+JW(l);return O}; hW=function(l){var n=Xy(l,!0),O=0;n===4?O=l.S.getFloat32(l.pos):n===8&&(O=l.S.getFloat64(l.pos));l.pos+=n;return O}; Yeg=function(l){var n=Xy(l,!0);return ks(Zy(l,n))}; JW=function(l){return l.S.getUint8(l.pos++)}; Xy=function(l,n){var O=JW(l);if(O===1){for(n=O=0;n<7;n++)O=O*256+JW(l);return O}for(var L=128,X=0;X<6&&L>O;X++)O=O*256+JW(l),L*=128;return n?O-L:O}; xz=function(l){var n=Xy(l,!0);l.pos+=n}; jbi=function(l){if(!Ld(l,440786851,!0))return null;var n=l.pos;Xy(l,!1);var O=Xy(l,!0)+l.pos-n;l.pos=n+O;if(!Ld(l,408125543,!1))return null;Xy(l,!0);if(!Ld(l,357149030,!0))return null;var L=l.pos;Xy(l,!1);var X=Xy(l,!0)+l.pos-L;l.pos=L+X;if(!Ld(l,374648427,!0))return null;var F=l.pos;Xy(l,!1);var x=Xy(l,!0)+l.pos-F,Z=new Uint8Array(O+12+X+x),J=new DataView(Z.buffer);Z.set(new Uint8Array(l.S.buffer,l.S.byteOffset+n,O));J.setUint32(O,408125543);J.setUint32(O+4,33554431);J.setUint32(O+8,4294967295); Z.set(new Uint8Array(l.S.buffer,l.S.byteOffset+L,X),O+12);Z.set(new Uint8Array(l.S.buffer,l.S.byteOffset+F,x),O+12+X);return Z}; wK=function(l){var n=l.pos;l.pos=0;var O=1E6;OL(l,[408125543,357149030,2807729])&&(O=Fy(l));l.pos=n;return O}; G25=function(l,n){var O=l.pos;l.pos=0;if(l.S.getUint8(l.pos)!==160&&!H_(l)||!Ld(l,160))return l.pos=O,NaN;Xy(l,!0);var L=l.pos;if(!Ld(l,161))return l.pos=O,NaN;Xy(l,!0);JW(l);var X=JW(l)<<8|JW(l);l.pos=L;if(!Ld(l,155))return l.pos=O,NaN;L=Fy(l);l.pos=O;return(X+L)*n/1E9}; H_=function(l){if(!ml7(l)||!Ld(l,524531317))return!1;Xy(l,!0);return!0}; ml7=function(l){if(l.c5()){if(!Ld(l,408125543))return!1;Xy(l,!0)}return!0}; OL=function(l,n){for(var O=0;O<n.length;O++){if(!Ld(l,n[O]))return!1;O!==n.length-1&&Xy(l,!0)}return!0}; Ld=function(l,n,O){O=O===void 0?!1:O;if(nd(l))return!1;for(var L=l.pos;Xy(l,!1)!==n;)if(xz(l),L=l.pos,nd(l))return!1;O&&(l.pos=L);return!0}; Qbi=function(l,n){n||(n=Math.ceil(Math.log(l+2)/Math.log(2)/7));for(var O=1<<8-n,L=[];L.length<n-1;)L.unshift(l%256),l=Math.floor(l/256);L.unshift(l|O);return L}; Zy=function(l,n){var O=new Uint8Array(l.S.buffer,l.S.byteOffset+l.pos,n);l.pos+=n;return O}; AW=function(l){this.Yt=l;this.S={};this.url=""}; I_i=function(l,n){var O=n.indexOf("?");if(O>0){var L=F8q(n.substring(O+1));g.PM(L,function(X,F){this.set(F,X)},l); n=n.substring(0,O)}n=oB9(n);g.PM(n,function(X,F){this.set(F,X)},l)}; dle=function(l){var n=l.Yt.Ae(),O=[];g.PM(l.S,function(X,F){O.push(F+"="+X)}); if(!O.length)return n;var L=O.join("&");l=X70(l.Yt)?"&":"?";return n+l+L}; bn=function(l,n){var O=new g.WW(n);(n=O.get("req_id"))&&l.set("req_id",n);g.PM(l.S,function(L,X){O.set(X,null)}); return O}; $l5=function(){this.L=this.W=this.S=this.timedOut=this.started=this.B=this.N=0}; rK=function(l){l.B=(0,g.Q_)();l.started=0;l.timedOut=0;l.S=0}; UL=function(l,n){var O=l.started+l.S*4;n&&(O+=l.W);O=Math.max(0,O-3);return Math.pow(1.6,O)}; un=function(l,n){l[n]||(l[n]=new $l5);return l[n]}; P_=function(l){this.Y=this.T=this.B=this.W=0;this.G=this.V=!1;this.S=l;this.N=l.clone()}; Vlq=function(l,n,O){if(Du(l.S))return!1;var L=un(O,Ne(l.S));if(L.timedOut<1&&L.S<1)return!1;L=L.timedOut+L.S;l=Tt(l,n);O=un(O,Ne(l));return O.timedOut+O.S+0<L}; W_=function(l,n,O){l=n?Tt(l,O):l.S;return new AW(l)}; Tt=function(l,n){n=n?n.AL:!1;l.L||(l.L=kc(l.N,n));return l.L}; EL=function(l,n,O){return Ne(n?Tt(l,O):l.S)}; NS=function(l,n,O,L){n.mD&&(L===void 0?0:L)>1?n=n.mD:(O=un(O,EL(l,l.N0(n,O),n)),n=Math.max(l.B,O.timedOut)+n.Zb*(l.W-l.B)+.25*l.T,n=n>3?1E3*Math.pow(1.6,n-3):0);return n===0?!0:l.Y+n<(0,g.Q_)()}; B05=function(l,n,O){l.S.set(n,O);l.N.set(n,O);l.L&&l.L.set(n,O)}; c6e=function(l,n,O,L,X){++l.W;n&&++l.B;Ne(O.Yt).startsWith("redirector.")&&(l.S=l.N.clone(),delete l.L,L.Fu&&delete X[Ne(l.S)])}; Dy=function(l){return l?(l.itag||"")+";"+(l.lmt||0)+";"+(l.xtags||""):""}; qS=function(l,n,O,L){this.initRange=O;this.indexRange=L;this.S=null;this.N=!1;this.V=0;this.L=this.xA=this.W=null;this.info=n;this.Vp=new P_(l)}; kz=function(l,n){this.start=l;this.end=n;this.length=n-l+1}; y4=function(l){l=l.split("-");var n=Number(l[0]),O=Number(l[1]);if(!isNaN(n)&&!isNaN(O)&&l.length===2&&(l=new kz(n,O),!isNaN(l.start)&&!isNaN(l.end)&&!isNaN(l.length)&&l.length>0))return l}; MS=function(l,n){return new kz(l,l+n-1)}; iB0=function(l){return l.end==null?{start:String(l.start)}:{start:String(l.start),end:String(l.end)}}; Q4=function(l){if(!l)return new kz(0,0);var n=Number(l.start);l=Number(l.end);if(!isNaN(n)&&!isNaN(l)&&(n=new kz(n,l),n.length>0))return n}; es=function(l,n,O,L,X,F,x,Z,J,w,H,A){L=L===void 0?"":L;this.type=l;this.S=n;this.range=O;this.source=L;this.YV=H;this.clipId=A===void 0?"":A;this.T=[];this.B="";this.Ef=-1;this.G=this.Y=0;this.B=L;this.Ef=X>=0?X:-1;this.startTime=F||0;this.duration=x||0;this.W=Z||0;this.N=J>=0?J:this.range?this.range.length:NaN;this.L=this.range?this.W+this.N===this.range.length:w===void 0?!!this.N:w;this.range?(this.Fo=this.startTime+this.duration*this.W/this.range.length,this.V=this.duration*this.N/this.range.length, this.Pl=this.Fo+this.V):zUa(this)}; zUa=function(l){l.Fo=l.startTime;l.V=l.duration;l.Pl=l.Fo+l.V}; Se5=function(l,n,O){var L=!(!n||n.S!==l.S||n.type!==l.type||n.Ef!==l.Ef);return O?L&&!!n&&(l.range&&n.range?n.range.end===l.range.end:n.range===l.range)&&n.W+n.N===l.W+l.N:L}; Yz=function(l){return l.type===1||l.type===2}; js=function(l){return l.type===3||l.type===6}; Gt=function(l,n){return l.S===n.S?l.range&&n.range?l.range.start+l.W+l.N===n.range.start+n.W:l.Ef===n.Ef?l.W+l.N===n.W:l.Ef+1===n.Ef&&n.W===0&&l.L:!1}; sb9=function(l,n){return l.Ef!==n.Ef&&n.Ef!==l.Ef+1||l.type!==n.type?!1:Gt(l,n)?!0:Math.abs(l.Fo-n.Fo)<=1E-6&&l.Ef===n.Ef?!1:p7i(l,n)}; p7i=function(l,n){return Gt(l,n)||Math.abs(l.Pl-n.Fo)<=1E-6||l.Ef+1===n.Ef&&n.W===0&&l.L?!0:!1}; mp=function(l){return l.Ef+(l.L?1:0)}; f_9=function(l){l.length===1||g.Qv(l,function(O){return!!O.range}); for(var n=1;n<l.length;n++);n=l[l.length-1];return new kz(l[0].range.start+l[0].W,n.range.start+n.W+n.N-1)}; K8i=function(l){for(var n=1;n<l.length;n++)if(!Gt(l[n-1],l[n]))return!1;return!0}; a_5=function(l){var n=0;l=g.P(l);for(var O=l.next();!O.done;O=l.next())n+=O.value.range.length;return n}; If=function(l){var n={};n.itag=l.S.info.itag;n.type=""+l.type;n.src=""+l.source;n.segsrc=l.B;n.seg=String(l.Ef);l.range&&(n.range=l.range.start+l.W+"-"+(l.range.start+l.W+l.N-1));n.time=l.Fo.toFixed(1)+"-"+(l.Fo+l.V).toFixed(1);n.off=String(l.W);n.len=String(l.N);l.L&&(n.end="1");l.pM()&&(n.eos="1");l.clipId&&(n.cid=l.clipId);return n}; RUg=function(l){return new es(l.type,l.S,l.range,"getEmptyStubBefore"+l.B,l.Ef,l.startTime,0,l.W,0)}; Cji=function(l){return new es(l.type,l.S,l.range,"getEmptyStubAfter"+l.B,l.Ef,l.startTime+l.duration,0,l.W+l.N,0)}; tl5=function(l,n,O,L){return new es(l.type,l.S,l.range,"reslice"+l.B,l.Ef,l.startTime,l.duration,n,O,L,l.YV,l.clipId)}; vBi=function(l,n){return l.S!==n.S?!1:l.range&&n.range?l.range.start+l.W>=n.range.start+n.W&&l.range.start+l.W+l.N<=n.range.start+n.W+n.N:l.Ef===n.Ef&&l.W>=n.W&&(l.W+l.N<=n.W+n.N||n.L)}; lAv=function(l,n){return l.S!==n.S?!1:l.type===4&&n.type===3&&l.S.y4()?(l=l.S.tK(l),jz(l,function(O){return lAv(O,n)})):l.Ef===n.Ef&&!!n.N&&n.W+n.N>l.W&&n.W+n.N<=l.W+l.N}; dK=function(l,n){var O=n.Ef;l.B="updateWithSegmentInfo";l.Ef=O;if(l.startTime!==n.startTime||l.duration!==n.duration)l.startTime=n.startTime+l.Y,l.duration=n.duration,zUa(l)}; $z=function(l,n){var O=this;this.Z2=l;this.L=this.S=null;this.B=this.gZ=NaN;this.N0=this.requestId=null;this.DQ={nRf:function(){return O.range}}; this.Vp=l[0].S.Vp;this.W=n||"";this.Z2[0].range&&this.Z2[0].N>0&&(K8i(l)?(this.range=f_9(l),this.N=this.range.length):(this.range=this.Z2[this.Z2.length-1].range,this.N=a_5(l)))}; V4=function(l){return!Yz(l.Z2[l.Z2.length-1])}; B_=function(l){return l.Z2[l.Z2.length-1].type===4}; g.c_=function(l,n,O){O=l.N0===null?l.Vp.N0(n,O,l.Z2[0].type):l.N0;if(l.S){n=O?kc(l.S,n.AL):l.S;var L=new AW(n);L.get("alr")||L.set("alr","yes");l.W&&I_i(L,l.W)}else/http[s]?:\/\//.test(l.W)?L=new AW(new g.WW(l.W)):(L=W_(l.Vp,O,n),l.W&&I_i(L,l.W));(n=l.range)?L.set("range",n.toString()):l.Z2[0].S.Md()&&l.Z2.length===1&&l.Z2[0].W&&L.set("range",l.Z2[0].W+"-");l.requestId&&L.set("req_id",l.requestId);isNaN(l.gZ)||L.set("headm",l.gZ.toString());isNaN(l.B)||L.set("mffa",l.B+"ms");l.urlParams&&g.PM(l.urlParams, function(X,F){L.set(F,X)}); return L}; nG0=function(l){if(l.range)return l.N;l=l.Z2[0];return Math.round(l.V*l.S.info.Sv)}; O5v=function(l,n){return Math.max(0,l.Z2[0].Fo-n)}; zt=function(l,n,O,L,X,F){F=F===void 0?0:F;qS.call(this,l,n,L,void 0);this.B=O;this.uV=F;this.index=X||new g.QT}; gG9=function(l,n,O,L,X){this.Ef=l;this.startSecs=n;this.HM=O;this.S=L||NaN;this.W=X||NaN}; Ss=function(l,n,O){for(;l;l=l.parentNode)if(l.attributes&&(!O||l.nodeName===O)){var L=l.getAttribute(n);if(L)return L}return""}; pd=function(l,n){for(;l;l=l.parentNode){var O=l.getElementsByTagName(n);if(O.length>0)return O[0]}return null}; Lhv=function(l){if(!l)return 0;var n=l.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return n?(Number(n[2])|0)*3600+(Number(n[4])|0)*60+(Number(n[6])|0):Number(l)|0}; X6f=function(l){return l.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?l+"Z":l}; sL=function(){this.S=[];this.W=null;this.V=0;this.N=[];this.B=!1;this.T="";this.L=-1}; oGi=function(l){var n=l.N;l.N=[];return n}; Fh7=function(){this.L=[];this.S=null;this.W={};this.N={}}; JYk=function(l,n){var O=[];n=Array.from(n.getElementsByTagName("SegmentTimeline"));n=g.P(n);for(var L=n.next();!L.done;L=n.next()){L=L.value;var X=L.parentNode.parentNode,F=null;X.nodeName==="Period"?F=xBa(l):X.nodeName==="AdaptationSet"?(X=X.getAttribute("id")||X.getAttribute("mimetype")||"",F=hXi(l,X)):X.nodeName==="Representation"&&(X=X.getAttribute("id")||"",F=Z58(l,X));if(F==null)return;F.update(L);g.Lm(O,oGi(F))}g.Lm(l.L,O);nqf(l.L,function(x){return x.startSecs*1E3+x.S})}; w6v=function(l){l.S&&(l.S.S=[]);g.PM(l.W,function(n){n.S=[]}); g.PM(l.N,function(n){n.S=[]})}; xBa=function(l){l.S||(l.S=new sL);return l.S}; hXi=function(l,n){l.W[n]||(l.W[n]=new sL);return l.W[n]}; Z58=function(l,n){l.N[n]||(l.N[n]=new sL);return l.N[n]}; Kd=function(l){var n=l===void 0?{}:l;l=n.uV===void 0?0:n.uV;var O=n.z6===void 0?!1:n.z6;var L=n.yz===void 0?0:n.yz;var X=n.Jt===void 0?0:n.Jt;var F=n.HT===void 0?Infinity:n.HT;var x=n.Uo===void 0?0:n.Uo;var Z=n.aI===void 0?!1:n.aI;n=n.Bq===void 0?!1:n.Bq;g.QT.call(this);this.jt=this.Vw=-1;this.Uc=l;this.yz=L;this.z6=O;this.Jt=X;this.HT=F;this.Uo=x;((this.aI=Z)||isFinite(F)&&this.HT>0)&&O&&fd&&(this.W=!1,this.N="postLive");this.Bq=n}; af=function(l,n){return hm(l.segments,function(O){return n-O.Ef})}; Rf=function(l,n,O){O=O===void 0?{}:O;zt.call(this,l,n,"",void 0,void 0,O.uV||0);this.index=new Kd(O)}; Cd=function(l,n,O){qS.call(this,l,n);this.B=O;l=this.index=new g.QT;l.W=!1;l.N="d"}; H59=function(l,n,O){var L=l.index.nA(n),X=l.index.getStartTime(n),F=l.index.getDuration(n);O?F=O=0:O=l.info.Sv*F;return new $z([new es(3,l,void 0,"otfCreateRequestInfoForSegment",n,X,F,0,O)],L)}; AY9=function(l,n){if(!l.index.isLoaded()){var O=[],L=n.L;n=n.B.split(",").filter(function(H){return H.length>0}); for(var X=0,F=0,x=0,Z=/^(\d+)/,J=/r=(\d+)/,w=0;w<L;w++){if(x<=0)if(x=n.shift(),F=(F=Z.exec(x))?+F[1]/1E3:0)x=(x=J.exec(x))?+x[1]:0,x+=1;else return;O.push(new Me(w,X,F,NaN,"sq/"+(w+1)));X+=F;x--}l.index.append(O)}}; tW=function(l,n){this.info=l;this.S=n;this.W=null;this.L=this.N=-1;this.timestampOffset=0;this.isLocked=this.V=!1;this.B=this.info.S.Cs()&&!this.info.W}; b5v=function(l,n){l.S.getLength();n=Math.min(n,l.info.N);var O=l.S.split(n),L=O.WH;O=new tW(new es(l.info.type,l.info.S,l.info.range,l.info.B,l.info.Ef,l.info.startTime,l.info.duration,l.info.W,n,!1,l.info.YV,l.info.clipId),O.v_);O.L=l.L;O.N=l.N;n=new tW(new es(l.info.type,l.info.S,l.info.range,l.info.B,l.info.Ef,l.info.startTime,l.info.duration,l.info.W+n,l.info.N-n,l.info.L,l.info.YV,l.info.clipId),L);n.L=l.L;n.N=l.N;return[O,n]}; g.v_=function(l,n,O){var L;if(!(L=l.isLocked||n.isLocked||!Gt(l.info,n.info)||l.info.L)){if(O=O===void 0?!1:O)O=l.S,L=n.S,O=!(L.V4.length?M57(O,L.V4[0]):1);L=O}if(L)return null;O=new es(l.info.type,l.info.S,l.info.range,l.info.B,l.info.Ef,l.info.startTime,l.info.duration,l.info.W,l.info.N,l.info.L,l.info.YV,l.info.clipId);L=n.info;O.N+=L.N;O.range&&(O.V+=L.V);O.Pl=L.Pl;O.L=L.L;L=new Pa;TA(L,l.S);TA(L,n.S);O=new tW(O,L);O.W=n.W||l.W;O.N=l.N!==-1?l.N:n.N;O.L=l.L!==-1?l.L:n.L;return O}; g.lM=function(l){g.v7(l.info.S.info)||l.info.S.info.QE();if(l.N!==-1)return l.N;if(l.W&&Ul8(l.W))return l.N=Ul8(l.W),l.N;if(g.v7(l.info.S.info)){var n=l.VV();for(var O=l.info.S.S,L=NaN,X=NaN,F=0;Kn(n,F);){var x=ae(n,F);x.type===1936286840?X=x.data.getUint32(x.dataOffset+8):x.type===1836476516?X=g.pn(x):x.type===1952867444&&isNaN(L)&&(L=g.Cn(x));F=Re(x.type)?F+8:F+x.size}!X&&O&&(X=sH(O));n=L/X}else n=new ln(l.VV()),O=l.B?n:new ln(new DataView(l.info.S.S.buffer)),L=wK(O),O=n.pos,n.pos=0,H_(n)?Ld(n, 231)?(L=Fy(n)*L/1E9,n.pos=O,n=L):(n.pos=O,n=NaN):(n.pos=O,n=NaN);l.N=n||l.info.Fo;return l.N}; UBk=function(l,n){l.timestampOffset>0&&(n-=l.timestampOffset);var O=g.lM(l)+n;rY9(l,O);l.timestampOffset=n}; rY9=function(l,n){g.v7(l.info.S.info)||l.info.S.info.QE();l.N=n;if(g.v7(l.info.S.info)){var O=l.VV();l=l.info.S.S;for(var L=NaN,X=NaN,F=0;Kn(O,F);){var x=ae(O,F);isNaN(L)&&(x.type===1936286840?L=x.data.getUint32(x.dataOffset+8):x.type===1836476516&&(L=g.pn(x)));if(x.type===1952867444){!L&&l&&(L=sH(l));var Z=g.Cn(x);isNaN(X)&&(X=Math.round(n*L)-Z);var J=x;Z+=X;if(J.data.getUint8(J.dataOffset)){var w=J.data;J=J.dataOffset+4;w.setUint32(J,Math.floor(Z/4294967296));w.setUint32(J+4,Z&4294967295)}else J.data.setUint32(J.dataOffset+ 4,Z)}F=Re(x.type)?F+8:F+x.size}return!0}O=new ln(l.VV());l=l.B?O:new ln(new DataView(l.info.S.S.buffer));L=wK(l);l=O.pos;O.pos=0;if(H_(O)&&Ld(O,231))if(X=Xy(O,!0),n=Math.floor(n*1E9/L),Math.ceil(Math.log(n)/Math.log(2)/8)>X)n=!1;else{for(L=X-1;L>=0;L--)O.S.setUint8(O.pos+L,n&255),n>>>=8;O.pos=l;n=!0}else n=!1;return n}; Ok=function(l,n){n=n===void 0?!1:n;var O=nG(l);l=n?0:l.info.V;return O||l}; nG=function(l){g.v7(l.info.S.info)||l.info.S.info.QE();if(l.W&&l.info.type===6)return l.W.uV;if(g.v7(l.info.S.info)){var n=l.VV();var O=0;n=g.vW(n,1936286840);n=g.P(n);for(var L=n.next();!L.done;L=n.next())L=Dlq(L.value),O+=L.i8[0]/L.timescale;O=O||NaN;if(!(O>=0))a:{O=l.VV();n=l.info.S.S;for(var X=L=0,F=0;Kn(O,L);){var x=ae(O,L);if(x.type===1836476516)X=g.pn(x);else if(x.type===1836019558){!X&&n&&(X=sH(n));if(!X){O=NaN;break a}var Z=fn(x.data,x.dataOffset,1953653094),J=Z;Z=X;var w=fn(J.data,J.dataOffset, 1952868452);J=fn(J.data,J.dataOffset,1953658222);var H=GP(w);GP(w);H&2&&GP(w);w=H&8?GP(w):0;var A=GP(J),b=A&1;H=A&4;var r=A&256,U=A&512,W=A&1024;A&=2048;var N=mx(J);b&&GP(J);H&&GP(J);for(var q=b=0;q<N;q++){var y=r?GP(J):w;U&&GP(J);H&&q===0||!W||GP(J);A&&GP(J);b+=y}F+=b/Z}L=Re(x.type)?L+8:L+x.size}O=F||NaN}O||g.d2(new g.at("Missing duration while parsing bmff",l.info.rK()))}else O=new ln(l.VV()),l=l.B?O:new ln(new DataView(l.info.S.S.buffer)),O=G25(O,wK(l));return O}; g.uOi=function(l){if(l.info.S.I7())return l.info.duration;l.L===-1&&(l.L=nG(l));return l.L||l.info.duration}; Pt0=function(l){var n=l.VV();var O=(O=g.S1(n,0,1936286840))?O.data.getUint32(O.dataOffset+8):NaN;isNaN(O)&&(l=l.info.S.S,O=(n=g.S1(n,0,1836476516))?g.pn(n):l?sH(l):NaN);return O}; Tv9=function(l){return l.info.S.info.QE()&&l.S.getUint8(0)===160}; Whe=function(l){if(!l.W){g.v7(l.info.S.info)||l.info.S.info.QE();if(g.v7(l.info.S.info))var n=g.k2i(l.VV());else{n=new ln(l.VV());var O=n.pos;n.pos=0;var L=null,X=null;if(OL(n,[408125543,307544935]))for(var F=n.pos+Xy(n,!0);n.pos<F;)if(Xy(n,!1)!==29555)xz(n);else for(var x=n.pos+Xy(n,!0);n.pos<x;)if(Xy(n,!1)!==26568)xz(n);else for(var Z=n.pos+Xy(n,!0);n.pos<Z;){var J=Xy(n,!1);if(J===17543){if(J=Yeg(n),J=zP(J))if(X)for(var w=g.P(Object.keys(J)),H=w.next();!H.done;H=w.next())H=H.value,X[H]=J[H];else X= J}else J===17827?(J=Yeg(n),L||(L=J)):xz(n)}n.pos=O;n=X?new cW(X,L):null}l.W=n}}; EG8=function(l){if(g.v7(l.info.S.info))tF(l.VV(),1836019574),tF(l.VV(),1718909296);else{var n=new ln(l.VV());ml7(n);Ld(n,524531317,!0);l.S=l.S.split(n.start+n.pos).WH}l.B=!1}; gC=function(l){if(!l.V){if(g.v7(l.info.S.info)){var n=l.VV();var O=fn(n,0,1836019574);if(O){O=O.offset+O.size;var L=new Uint8Array(O);L.set(new Uint8Array(n.buffer,n.byteOffset,O));n=L}else n=null}else n=jbi(new ln(l.VV()));n&&(l.info.S.S=n,l.V=!0)}}; g.LG=function(){this.count=0;this.S=1;this.W=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; Nv5=function(l,n){return n+1<l.count||l.W?l.offsets[n+1]-l.offsets[n]:-1}; XD=function(l){l.offsets.length<l.count+1&&l.resize(l.offsets.length*2)}; oS=function(l,n,O,L){qS.call(this,l,n,O,L);var X=this;this.B=null;this.DQ={N2:function(F,x,Z,J){return X.N2(F,x,Z,J)}}; this.index=new g.LG}; DB7=function(l,n,O,L,X,F){this.displayName=l;this.vssId=n;this.languageCode=O;this.kind=L===void 0?"":L;this.xtags=X===void 0?"":X;this.id=F===void 0?"":F}; kqf=function(l){if(l=l.colorInfo)if(l=l.transferCharacteristics)return qv8[l];return null}; g.FD=function(l,n,O){this.name=l;this.id=n;this.isDefault=O}; yY5=function(l){return xY(function(n,O){return g.Yp(n,O,4,1E3)},l,{format:"RAW", method:"GET",withCredentials:!0})}; g.MCk=function(l){var n;l.responseType&&l.responseType!=="text"?l.responseType==="arraybuffer"&&(n=ks(new Uint8Array(l.response))):n=l.responseText;return!n||n.length>2048?"":n.indexOf("https://")===0?n:""}; xY=function(l,n,O){n.match(Q1i);return l(n,O).then(function(L){var X=g.MCk(L.xhr);return X?xY(l,X,O):L.xhr})}; wC=function(l,n,O){l=l===void 0?"":l;n=n===void 0?null:n;O=O===void 0?!1:O;g.hj.call(this);var L=this;this.sourceUrl=l;this.isLivePlayback=O;this.G3=this.duration=0;this.isPremiere=this.aI=this.L=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.HT=this.Jt=0;this.isOtf=this.tA=!1;this.Fi=(0,g.Q_)();this.Wm=Infinity;this.S={};this.N=new Map;this.state=this.IR=0;this.timeline=null;this.isManifestless=!1;this.Q5=[];this.V=null;this.Lf=0;this.B="";this.Cf=NaN;this.Hm=this.Sz=this.timestampOffset=this.T= 0;this.vp=this.IU=NaN;this.q5=0;this.Pm=this.Y=!1;this.z3=[];this.wq={};this.NQ=NaN;this.DQ={ocp:function(Z){ha(L,Z)}}; var X;this.nf=(X=n)==null?void 0:X.MQ("html5_use_network_error_code_enums");eXe=!!n&&n.MQ("html5_modern_vp9_mime_type");var F;Z6=!((F=n)==null||!F.MQ("html5_enable_flush_during_seek"))&&g.s0();var x;Ja=!((x=n)==null||!x.MQ("html5_enable_reset_audio_decoder"))&&g.s0()}; Yvv=function(l){return g.Ed(l.S,function(n){return!!n.info.video&&n.info.video.S>=2160})}; l_e=function(l){return g.Ed(l.S,function(n){return!!n.info.video&&n.info.video.isHdr()})}; AF=function(l){return g.Ed(l.S,function(n){return!!n.info.UK})}; g.j1g=function(l){return g.Ed(l.S,function(n){return L5(n.info.mimeType)})}; Gqf=function(l){return g.Ed(l.S,function(n){return n.info.video?n.info.video.projectionType==="EQUIRECTANGULAR":!1})}; mBk=function(l){return g.Ed(l.S,function(n){return n.info.video?n.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; IAa=function(l){return g.Ed(l.S,function(n){return n.info.video?n.info.video.projectionType==="MESH":!1})}; dBa=function(l){return g.Ed(l.S,function(n){return n.info.video?n.info.video.stereoLayout===1:!1})}; $Bg=function(l){return chg(l.S,function(n){return n.info.video?n.u7():!0})}; JF=function(l){return g.Ed(l.S,function(n){return Du(n.Vp.S)})}; ha=function(l,n){l.S[n.info.id]=n;l.N.set(Dy(g.n5(n.info,l.tA)),n)}; VCi=function(l,n){return Dy({itag:n.itag,lmt:l.tA?0:n.lmt||0,xtags:n.xtags})}; bM=function(l,n,O){O=O===void 0?0:O;var L=l.mimeType||"",X=l.itag;var F=l.xtags;X=X?X.toString():"";F&&(X+=";"+F);F=X;if(gv(L)){var x=l.width||640;X=l.height||360;var Z=l.fps,J=l.qualityLabel,w=l.colorInfo,H=l.projectionType,A;l.stereoLayout&&(A=Bvv[l.stereoLayout]);var b=kqf(l)||void 0;if(w==null?0:w.primaries)var r=cY7[w.primaries]||void 0;x=new ij(x,X,Z,H,A,void 0,J,b,r);L=Hz(L,x,pB[l.itag||""]);Z6&&(L+="; enableflushduringseek=true");Ja&&(L+="; enableresetaudiodecoder=true")}var U;if(Ov(L)){var W= l.audioSampleRate;A=l.audioTrack;W=new VC(W?+W:void 0,l.audioChannels,l.spatialAudioType,l.isDrc,l.loudnessDb,l.trackAbsoluteLoudnessLkfs,l.audioQuality||"AUDIO_QUALITY_UNKNOWN");A&&(r=A.displayName,X=A.id,A=A.audioIsDefault,r&&(U=new g.FD(r,X||"",!!A)))}var N;l.captionTrack&&(J=l.captionTrack,A=J.displayName,r=J.vssId,X=J.languageCode,Z=J.kind,J=J.id,A&&r&&X&&(N=new DB7(A,r,X,Z,l.xtags,J)));A=Number(l.bitrate)/8;r=Number(l.contentLength);X=Number(l.lastModified);J=l.drmFamilies;Z=l.type;O=O&&r?r/ O:0;l=Number(l.approxDurationMs);if(n&&J){var q={};J=g.P(J);for(w=J.next();!w.done;w=J.next())(w=Aa[w.value])&&(q[w]=n[w])}return new se(F,L,{audio:W,video:x,O_:U,UK:q,Sv:A,l0:O,contentLength:r,lastModified:X,captionTrack:N,streamType:Z,approxDurationMs:l})}; rC=function(l,n,O){O=O===void 0?0:O;var L=l.type;var X=l.itag;var F=l.xtags;F&&(X=l.itag+";"+F);if(gv(L)){var x=(l.size||"640x360").split("x");x=new ij(+x[0],+x[1],+l.fps,l.projection_type,+l.stereo_layout,void 0,l.quality_label,l.eotf,l.primaries);L=Hz(L,x,pB[l.itag]);Z6&&(L+="; enableflushduringseek=true");Ja&&(L+="; enableresetaudiodecoder=true")}var Z;if(Ov(L)){var J=new VC(+l.audio_sample_rate||void 0,+l.audio_channels||0,l.spatial_audio_type,!!l.drc);l.name&&(Z=new g.FD(l.name,l.audio_track_id, l.isDefault==="1"))}var w;l.caption_display_name&&l.caption_vss_id&&l.caption_language_code&&(w=new DB7(l.caption_display_name,l.caption_vss_id,l.caption_language_code,l.caption_kind,l.xtags,l.caption_id));F=Number(l.bitrate)/8;var H=Number(l.clen),A=Number(l.lmt);O=O&&H?H/O:0;if(n&&l.drm_families){var b={};for(var r=g.P(l.drm_families.split(",")),U=r.next();!U.done;U=r.next())U=U.value,b[U]=n[U]}return new se(X,L,{audio:J,video:x,O_:Z,UK:b,Sv:F,l0:O,contentLength:H,lastModified:A,captionTrack:w, streamType:l.stream_type,approxDurationMs:Number(l.approx_duration_ms)})}; i5a=function(l){return jz(l,function(n){return"FORMAT_STREAM_TYPE_OTF"===n.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; zXa=function(l){return jz(l,function(n){return"FORMAT_STREAM_TYPE_OTF"===n.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Sve=function(l,n){return l.timeline?Xz(l.timeline.L,n):l.Q5.length?Xz(l.Q5,n):[]}; Uk=function(l,n,O){n=n===void 0?"":n;O=O===void 0?"":O;l=new g.WW(l,!0);l.set("alr","yes");O&&(O=E_q(decodeURIComponent(O)),l.set(n,encodeURIComponent(O)));return l}; Khi=function(l,n){var O=Ss(n,"id");O=O.replace(":",";");var L=Ss(n,"mimeType"),X=Ss(n,"codecs");L=X?L+'; codecs="'+X+'"':L;X=Number(Ss(n,"bandwidth"))/8;var F=Number(pd(n,"BaseURL").getAttribute(l.B+":contentLength")),x=l.duration&&F?F/l.duration:0;if(gv(L)){var Z=Number(Ss(n,"width"));var J=Number(Ss(n,"height")),w=Number(Ss(n,"frameRate")),H=p6f(Ss(n,l.B+":projectionType"));a:switch(Ss(n,l.B+":stereoLayout")){case "layout_left_right":var A=1;break a;case "layout_top_bottom":A=2;break a;default:A= 0}Z=new ij(Z,J,w,H,A)}if(Ov(L)){var b=Number(Ss(n,"audioSamplingRate"));var r=Number(Ss(n.getElementsByTagName("AudioChannelConfiguration")[0],"value"));J=s19(Ss(n,l.B+":spatialAudioType"));b=new VC(b,r,J);a:{r=Ss(n,"lang")||"und";if(J=pd(n,"Role"))if(H=Ss(J,"value")||"",g.kw(fAv,H)){J=r+"."+fAv[H];w=H==="main";l=Ss(n,l.B+":langName")||r+" - "+H;r=new g.FD(l,J,w);break a}r=void 0}}if(n=pd(n,"ContentProtection"))if(n.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var U={};for(n= n.firstChild;n!=null;n=n.nextSibling)n instanceof Element&&/SystemURL/.test(n.nodeName)&&(l=n.getAttribute("type"),J=n.textContent,l&&J&&(U[l]=J.trim()))}else U=void 0;return new se(O,L,{audio:b,video:Z,O_:r,UK:U,Sv:X,l0:x,contentLength:F})}; p6f=function(l){switch(l){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"}}; s19=function(l){switch(l){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"}}; RX9=function(l,n){n=n===void 0?"":n;l.state=1;l.Fi=(0,g.Q_)();return yY5(n||l.sourceUrl).then(function(O){if(!l.JG()){l.IR=O.status;O=O.responseText;var L=new DOMParser;O=aW(L,mOv(O),"text/xml").getElementsByTagName("MPD")[0];l.Wm=Lhv(Ss(O,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(O.attributes){L=g.P(O.attributes);for(var X=L.next();!X.done;X=L.next())if(X=X.value,X.value==="http://youtube.com/yt/2012/10/10"){L=X.name.split(":")[1];break b}}L=""}l.B=L;l.isLive=l.Wm<Infinity&&l.isLivePlayback;l.G3= Number(Ss(O,l.B+":earliestMediaSequence"))||0;if(L=Date.parse(X6f(Ss(O,l.B+":mpdResponseTime"))))l.Lf=((0,g.Q_)()-L)/1E3;l.isLive&&O.getElementsByTagName("SegmentTimeline").length<=0||g.Qv(O.getElementsByTagName("Period"),l.Cf2,l);l.state=2;l.publish("loaded");aAi(l)}return l}).O9(function(O){if(O instanceof QA){var L=O.xhr; l.IR=L.status}l.state=3;l.publish("loaderror");return Te(L)})}; Ct5=function(l,n,O){return RX9(new wC(l,n,O),l)}; uM=function(l){return l.isLive&&(0,g.Q_)()-l.Fi>=l.Wm}; tCa=function(l){l.V&&l.V.stop()}; aAi=function(l){var n=l.Wm;isFinite(n)&&(uM(l)?l.refresh():(n=Math.max(0,l.Fi+n-(0,g.Q_)()),l.V||(l.V=new g.vs(l.refresh,n,l),g.c(l,l.V)),l.V.start(n)))}; vGq=function(l){l=l.S;for(var n in l){var O=l[n].index;if(O.isLoaded())return O.G2()+1}return 0}; Pz=function(l){return l.Sz?l.Sz-(l.T||l.timestampOffset):0}; TI=function(l){return l.Hm?l.Hm-(l.T||l.timestampOffset):0}; Wz=function(l){if(!isNaN(l.Cf))return l.Cf;var n=l.S,O;for(O in n){var L=n[O].index;if(L.isLoaded()&&!L5(n[O].info.mimeType)){n=0;for(O=L.jF();O<=L.G2();O++)n+=L.getDuration(O);n/=L.AT();n=Math.round(n/.5)*.5;L.AT()>10&&(l.Cf=n);return n}if(l.isLive&&(L=n[O],L.uV))return L.uV}return NaN}; lh9=function(l,n){l=zQ0(l.S,function(L){return L.index.isLoaded()}); if(!l)return NaN;l=l.index;var O=l.Qb(n);return l.getStartTime(O)===n?n:O<l.G2()?l.getStartTime(O+1):NaN}; nX8=function(l,n){if(!l.S["0"]){var O=new se("0","fakesb",{video:new ij(0,0,0,void 0,void 0,"auto")});l.S["0"]=n?new zt(new g.WW("http://www.youtube.com/videoplayback"),O,"fake"):new oS(new g.WW("http://www.youtube.com/videoplayback"),O,new kz(0,0),new kz(0,0))}}; Ek=function(l){if(l.isManifestless)for(var n in l.S)l.S[n].index.segments=[]}; Nb=function(l,n,O){for(var L in l.S){var X=L5(l.S[L].info.mimeType)||l.S[L].info.RR();if(O===X&&(X=l.S[L].index)!=null){var F=af(X,n);F>=0&&X.segments.splice(F,1)}}}; OXi=function(l){for(var n in l.S)L5(l.S[n].info.mimeType)||w79(l.S[n].index,Infinity)}; D6=function(l,n,O){for(var L in l.S){var X=l.S[L].index,F=n,x=O;X.z6&&(F&&(X.Vw=Math.max(X.Vw,F)),x&&(X.jt=Math.max(X.jt||0,x)))}O&&(l.NQ=O/1E3)}; gXq=function(l){l.Hm=0;l.Sz=0;l.q5=0}; qb=function(l){return l.Pm&&l.isManifestless?l.isLiveHeadPlayable:l.isLive}; Hz=function(l,n,O){kY===null&&(kY=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(eXe&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return kY||O!=="9"&&O!=="("?kY||O!=="9h"&&O!=="(h"||(l='video/webm; codecs="vp9.2"'):l='video/webm; codecs="vp9"',l;if(!kY&&!yY||l!=='video/webm; codecs="vp9"'&&l!=='video/webm; codecs="vp9.2"')return l; O="00";var L="08",X="01",F="01",x="01";l==='video/webm; codecs="vp9.2"'&&(O="02",L="10",n.primaries==="bt2020"&&(x=X="09"),n.W==="smpte2084"&&(F="16"),n.W==="arib-std-b67"&&(F="18"));return'video/webm; codecs="'+["vp09",O,"51",L,"01",X,F,x,"00"].join(".")+'"'}; QY=function(l,n,O){l=""+l+(n>49?"p60":n>32?"p48":"");n=BJ()[l];if(n!=null&&n>0)return n;n=Mb.get(l);if(n!=null&&n>0)return n;O=O==null?void 0:O.get(l);return O!=null&&O>0?O:8192}; L6f=function(l){this.rq=l;this.hC=this.hL=this.Hm=this.B=this.L=this.Fp=this.Pm=this.NQ=!1;this.T=this.V=0;this.Of=!1;this.Q5=!0;this.nf=!1;this.zx=0;this.rU=this.Cf=!1;this.q5=!0;this.Fi=this.wq=!1;this.S={};this.Wk=this.disableAv1=this.uv=this.d8=this.Yo=this.oO=this.W=this.G=!1;this.j3=this.rq.J("html5_disable_aac_preference");this.Sz=Infinity;this.z3=0;this.n5=this.rq.AA();this.JA=this.rq.experiments.MQ("html5_enable_vp9_fairplay");this.oA=this.rq.J("html5_force_av1_for_testing");this.G3=g.HQ(this.rq.experiments, "html5_av1_ordinal_cap");this.lf=this.rq.J("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.M5=this.rq.J("html5_account_onesie_format_selection_during_format_filter");this.Sv=g.HQ(this.rq.experiments,"html5_max_byterate");this.Y=this.rq.J("html5_sunset_aac_high_codec_family");this.Lf=this.rq.J("html5_sunset_aac_high_codec_family");this.K5=this.rq.J("html5_enable_iamf_audio");this.z$=this.rq.experiments.MQ("html5_allow_capability_merge");this.Y4=this.rq.J("html5_prefer_h264_encrypted_appletv"); this.Xg=this.rq.J("html5_enable_encrypted_av1")}; nB8=function(l){if(l.Pm)return["f"];if(l.Y4&&g.S_("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var n=["9h","9","h","8"];l.Xg&&n.push("1e");n=n.concat(["(h","(","H","*"]);l.Cf&&(n.unshift("1"),n.unshift("1h"));l.hL&&n.unshift("h");l.Wm&&(n=(XGq[l.Wm]||[l.Wm]).concat(n));return n}; a8i=function(l){var n=["o","a","A"];l.z3===1&&(l.L&&(n=["mac3","MAC3"].concat(n)),l.B&&(n=["meac3","MEAC3"].concat(n)),l.K5&&(n=["i","I"].concat(n)));l.NQ&&(n=["so","sa"].concat(n));!l.hC||l.Hm||l.N||l.j3||n.unshift("a");l.Fp&&!l.Y&&n.unshift("ah");l.N&&(n=(XGq[l.N]||[l.N]).concat(n));return n}; em=function(l,n,O,L){n=n===void 0?{}:n;if(L===void 0?0:L)return n.disabled=1,0;if(PW(l.B,TP.AV1_CODECS)&&PW(l.B,TP.HEIGHT)&&PW(l.B,TP.BITRATE))return n.isCapabilityUsable=1,8192;try{var X=Yua();if(X)return n.localPref=X}catch(Z){}L=1080;X=navigator.hardwareConcurrency;X<=2&&(L=480);n.coreCount=X;if(X=g.HQ(l.experiments,"html5_default_av1_threshold"))L=n["default"]=X;!l.J("html5_disable_av1_arm_check")&&Ph5()&&(n.isArm=1,L=240);if(l=l.B.Q5)n.mcap=l,L=Math.max(L,l);if(O){var F,x;if(l=(F=O.videoInfos.find(function(Z){return Rb(Z)}))== null?void 0:(x=F.W)==null?void 0:x.powerEfficient)L=8192,n.isEfficient=1; O=O.videoInfos[0].video;F=Math.min(QY("1",O.fps),QY("1",30));n.perfCap=F;L=Math.min(L,F);O.isHdr()&&!l&&(n.hdr=1,L*=.75)}else O=QY("1",30),n.perfCap30=O,L=Math.min(L,O),O=QY("1",60),n.perfCap60=O,L=Math.min(L,O);return n.av1Threshold=L}; YY=function(l,n,O,L){this.flavor=l;this.keySystem=n;this.W=O;this.experiments=L;this.S={};this.nf=this.keySystemAccess=null;this.Kg=this.OE=-1;this.CZ=null;this.N=!!L&&L.MQ("edge_nonprefixed_eme");L&&L.MQ("html5_enable_vp9_fairplay")}; GI=function(l){return l.N?!1:!l.keySystemAccess&&!!jm()&&l.keySystem==="com.microsoft.playready"}; m9=function(l){return l.keySystem==="com.microsoft.playready"}; IS=function(l){return!l.keySystemAccess&&!!jm()&&l.keySystem==="com.apple.fps.1_0"}; dC=function(l){return l.keySystem==="com.youtube.fairplay"}; $Y=function(l){return l.keySystem==="com.youtube.fairplay.sbdl"}; g.VY=function(l){return l.flavor==="fairplay"}; jm=function(){var l=window,n=l.MSMediaKeys;aT()&&!n&&(n=l.WebKitMediaKeys);return n&&n.isTypeSupported?n:null}; cz=function(l){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.G2&&!g.s0())return y8("45");if(g.RZ||g.rP)return l.MQ("edge_nonprefixed_eme");if(g.Bz)return y8("47");if(g.Wo){if(l.MQ("html5_enable_safari_fairplay"))return!1;if(l=g.HQ(l,"html5_safari_desktop_eme_min_version"))return y8(l)}return!0}; oXa=function(l,n,O,L){var X=fh(),F=(O=X||O&&aT())?["com.youtube.fairplay"]:["com.widevine.alpha"];n&&F.unshift("com.youtube.widevine.l3");X&&L&&F.unshift("com.youtube.fairplay.sbdl");return O?F:l?[].concat(g.E(F),g.E(iM.playready)):[].concat(g.E(iM.playready),g.E(F))}; Sm=function(){this.W=this.qR=0;this.S=Array.from({length:zI.length}).fill(0)}; F6a=function(){}; xIe=function(){this.startTimeMs=(0,g.Q_)();this.S=!1}; hS5=function(){this.S=new F6a}; ZXa=function(l,n,O,L){L=L===void 0?1:L;O>=0&&(n in l.S||(l.S[n]=new Sm),l.S[n].O8(O,L))}; J1e=function(l,n,O,L,X){var F=(0,g.Q_)(),x=X?X(n):void 0,Z;X=(Z=x==null?void 0:x.qR)!=null?Z:1;if(X!==0){var J;Z=(J=x==null?void 0:x.profile)!=null?J:O;ZXa(l,Z,F-L,X)}return n}; pG=function(l,n,O,L,X){if(n&&typeof n==="object"){var F=function(x){return J1e(l,x,O,L,X)}; if(xW(n))return n.then(F);if(wG5(n))return Aw(n,F)}return J1e(l,n,O,L,X)}; HXi=function(){}; sk=function(l,n,O,L,X){L=L===void 0?!1:L;g.V.call(this);this.rq=n;this.useCobaltWidevine=L;this.Sp=X;this.W=[];this.N={};this.S={};this.callback=null;this.B=!1;this.L=[];this.initialize(l,!O)}; bXv=function(l,n){l.callback=n;l.L=[];cz(l.rq.experiments)?fG(l):A15(l)}; fG=function(l){if(!l.JG())if(l.W.length===0)l.callback(l.L);else{var n=l.W[0],O=l.N[n],L=r19(l,O);if(KG&&KG.keySystem===n&&KG.QR1===JSON.stringify(L))l.Sp("remksa",{re:!0}),UIe(l,O,KG.keySystemAccess);else{var X,F;l.Sp("remksa",{re:!1,ok:(F=(X=KG)==null?void 0:X.keySystem)!=null?F:""});KG=void 0;(aS.isActive()?aS.bW("emereq",function(){return navigator.requestMediaKeySystemAccess(n,L)}):navigator.requestMediaKeySystemAccess(n,L)).then(T$(function(x){UIe(l,O,x,L)}),T$(function(){l.B=!l.B&&l.N[l.W[0]].flavor=== "widevine"; l.B||l.W.shift();fG(l)}))}}}; UIe=function(l,n,O,L){if(!l.JG()){L&&(KG={keySystem:n.keySystem,keySystemAccess:O,QR1:JSON.stringify(L)});n.keySystemAccess=O;if(m9(n)){O=YB();L=g.P(Object.keys(l.S[n.flavor]));for(var X=L.next();!X.done;X=L.next())X=X.value,n.S[X]=!!O.canPlayType(X)}else{O=n.keySystemAccess.getConfiguration();if(O.audioCapabilities)for(L=g.P(O.audioCapabilities),X=L.next();!X.done;X=L.next())uIa(l,n,X.value);if(O.videoCapabilities)for(O=g.P(O.videoCapabilities),L=O.next();!L.done;L=O.next())uIa(l,n,L.value)}l.L.push(n); l.useCobaltWidevine||l.J("html5_enable_vp9_fairplay")&&$Y(n)?(l.W.shift(),fG(l)):l.callback(l.L)}}; uIa=function(l,n,O){l.J("log_robustness_for_drm")?n.S[O.contentType]=O.robustness||!0:n.S[O.contentType]=!0}; r19=function(l,n){var O={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(l.J("html5_enable_vp9_fairplay")&&dC(n))return O.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),O.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[O];m9(n)&&(O.initDataTypes=["keyids","cenc"]);for(var L=g.P(Object.keys(l.S[n.flavor])),X=L.next();!X.done;X=L.next()){X=X.value;var F=X.indexOf("audio/")===0,x=F?O.audioCapabilities:O.videoCapabilities;n.flavor!== "widevine"||l.B?x.push({contentType:X}):F?x.push({contentType:X,robustness:"SW_SECURE_CRYPTO"}):(g.G2&&g.S_("windows nt")&&!l.J("html5_drm_enable_moho")||x.push({contentType:X,robustness:"HW_SECURE_ALL"}),F=X,l.J("html5_enable_cobalt_experimental_vp9_decoder")&&X.includes("vp09")&&(F=X+"; experimental=allowed"),x.push({contentType:F,robustness:"SW_SECURE_DECODE"}),RS(l.rq)==="MWEB"&&(ni()||ph())&&(l.Sp("swcrypto",{}),x.push({contentType:X,robustness:"SW_SECURE_CRYPTO"})))}return[O]}; A15=function(l){if(jm()&&(g.Wo||Ch&&l.J("html5_drm_support_ios_mweb")))l.L.push(new YY("fairplay","com.apple.fps.1_0","",l.rq.experiments));else{var n=PL9(),O=g.ak(l.W,function(L){var X=l.N[L],F=!1,x=!1,Z;for(Z in l.S[X.flavor])n(Z,L)&&(X.S[Z]=!0,F=F||Z.indexOf("audio/")===0,x=x||Z.indexOf("video/")===0);return F&&x}); O&&l.L.push(l.N[O]);l.W=[]}l.callback(l.L)}; PL9=function(){var l=jm();if(l){var n=l.isTypeSupported;return function(L,X){return n(X,L)}}var O=YB(); return O&&(O.addKey||O.webkitAddKey)?function(L,X){return!!O.canPlayType(L,X)}:function(){return!1}}; TXf=function(l){this.experiments=l;this.S=2048;this.L=0;this.NQ=(this.Y=this.J("html5_streaming_resilience"))?.5:.25;var n=n===void 0?0:n;this.N=g.HQ(this.experiments,"html5_media_time_weight_prop")||n;this.B=this.J("html5_app_limited_aware_bwe");this.Lf=g.HQ(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Q5=(this.V=this.experiments.MQ("html5_consider_end_stall"))&&CG;this.W=this.experiments.MQ("html5_measure_max_progress_handling");this.Wm=this.J("html5_treat_requests_pre_elbow_as_metadata"); this.T=this.J("html5_media_time_weight")||!!this.N;this.G=g.HQ(this.experiments,"html5_streaming_fallback_byterate");this.J("html5_sabr_live_audio_early_return_fix")&&CG&&(this.S=65536)}; W6v=function(l,n){this.S=void 0;this.experimentIds=l?l.split(","):[];this.flags=O0(n||"","&");l={};n=g.P(this.experimentIds);for(var O=n.next();!O.done;O=n.next())l[O.value]=!0;this.experiments=l}; g.HQ=function(l,n){l=l.flags[n];JSON.stringify(l);return Number(l)||0}; ta=function(l,n){return(l=l.flags[n])?l.toString():""}; EXa=function(l){if(l=l.flags.html5_web_po_experiment_ids)if(l=l.replace(/\[ *(.*?) *\]/,"$1"))return l.split(",").map(Number);return[]}; NXa=function(l){if(l.S)return l.S;if(l.experimentIds.length<=1)return l.S=l.experimentIds,l.S;var n=[].concat(g.E(l.experimentIds)).map(function(L){return Number(L)}); n.sort();for(var O=n.length-1;O>0;--O)n[O]-=n[O-1];l.S=n.map(function(L){return L.toString()}); l.S.unshift("v1");return l.S}; qza=function(l){return DI5.then(l)}; vz=function(l,n,O){this.experiments=l;this.z3=n;this.Hm=O===void 0?!1:O;this.NQ=!!g.zk("cast.receiver.platform.canDisplayType");this.Y={};this.G=!1;this.W=new Map;this.T=!0;this.L=this.B=!1;this.S=new Map;this.Q5=0;this.Lf=this.experiments.MQ("html5_disable_vp9_encrypted");this.N=this.experiments.MQ("html5_enable_encrypted_av1");l=g.zk("cast.receiver.platform.getValue");this.Cf=g.HQ(this.experiments,"html5_kaios_max_resolution");this.V=!this.NQ&&l&&l("max-video-resolution-vpx")||null;kO7(this)}; L8i=function(l,n,O){O=O===void 0?1:O;var L=n.itag;if(L==="0")return!0;var X=n.mimeType;if(n.QE()&&fh()&&l.experiments.MQ("html5_appletv_disable_vp9"))return"dwebm";if(n.bF==="1e"&&!l.N)return"dav1enc";if(Rb(n)&&l.G)return"dav1";if(n.video&&(n.video.isHdr()||n.video.primaries==="bt2020")&&!(PW(l,TP.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(L=== "338"&&!(g.G2?y8(53):g.Bz&&y8(64)))return"dopus";var F;if(l.Cf&&lO&&((F=n.video)==null?void 0:F.S)>l.Cf)return"kaios";F=O;F=F===void 0?1:F;O={};n.video&&(n.video.width&&(O[TP.WIDTH.name]=n.video.width),n.video.height&&(O[TP.HEIGHT.name]=n.video.height),n.video.fps&&(O[TP.FRAMERATE.name]=n.video.fps*F),n.video.W&&(O[TP.EOTF.name]=n.video.W),n.Sv&&(O[TP.BITRATE.name]=n.Sv*8*F),n.bF==="("&&(O[TP.CRYPTOBLOCKFORMAT.name]="subsample"),n.video.projectionType==="EQUIRECTANGULAR"||n.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||n.video.projectionType==="MESH")&&(O[TP.DECODETOTEXTURE.name]="true");n.audio&&n.audio.numChannels&&(O[TP.CHANNELS.name]=n.audio.numChannels);l.B&&fB(n)&&(O[TP.EXPERIMENTAL.name]="allowed");F=g.P(Object.keys(TP));for(var x=F.next();!x.done;x=F.next()){x=TP[x.value];var Z;if(Z=O[x.name])if(Z=!(x===TP.EOTF&&n.mimeType.indexOf("vp09.02")>0)){Z=x;var J=n;Z=!(l.experiments.MQ("html5_ignore_h264_framerate_cap")&&Z===TP.FRAMERATE&&JVi(J))}if(Z)if(PW(l,x))if(l.V){if(l.V[x.name]< O[x.name])return x.name}else X=X+"; "+x.name+"="+O[x.name];else if(KB(n)&&x===TP.EOTF)return"dvp92"}l.NQ&&n.video&&n.video.S>1080&&n.UK&&(X+="; hdcp=2.2");return L==="227"?"hqcenc":L!=="585"&&L!=="588"&&L!=="583"&&L!=="586"&&L!=="584"&&L!=="587"&&L!=="591"&&L!=="592"||l.experiments.MQ("html5_enable_new_hvc_enc")?l.isTypeSupported(X)?!0:"tpus":"newhvc"}; nw=function(){var l=ph()&&!y8(29),n=g.S_("google tv")&&g.S_("chrome")&&!y8(30);return l||n?!1:Uii()}; y1a=function(l,n,O){var L=480;n=g.P(n);for(var X=n.next();!X.done;X=n.next()){X=X.value;var F=X.video.S;F<=1080&&F>L&&L8i(l,X,O)===!0&&(L=F)}return L}; g.OI=function(l,n){n=n===void 0?!1:n;return nw()&&l.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!n&&l.canPlayType(YB(),"application/x-mpegURL")?!0:!1}; Qvg=function(l){Mc8(function(){for(var n=g.P(Object.keys(TP)),O=n.next();!O.done;O=n.next())PW(l,TP[O.value])})}; PW=function(l,n){n.name in l.Y||(l.Y[n.name]=eS5(l,n));return l.Y[n.name]}; eS5=function(l,n){if(l.V)return!!l.V[n.name];if(n===TP.BITRATE&&l.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!l.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(n===TP.AV1_CODECS)return l.isTypeSupported("video/mp4; codecs="+n.valid)&&!l.isTypeSupported("video/mp4; codecs="+n.KT);if(n.video){var O='video/webm; codecs="vp9"';l.isTypeSupported(O)||(O='video/mp4; codecs="avc1.4d401e"')}else O='audio/webm; codecs="opus"', l.isTypeSupported(O)||(O='audio/mp4; codecs="mp4a.40.2"');return l.isTypeSupported(O+"; "+n.name+"="+n.valid)&&!l.isTypeSupported(O+"; "+n.name+"="+n.KT)}; Yz7=function(l){l.B||(l.B=!0,gn(l))}; gn=function(l){l.L=!0;l.experiments.MQ("html5_ssap_update_capabilities_on_change")&&jvf(l)}; GOk=function(l,n){var O=0;l.W.has(n)&&(O=l.W.get(n).lj);l.W.set(n,{lj:O+1,ax:Math.pow(2,O+1)});gn(l)}; bd=function(l){for(var n=[],O=g.P(l.S.keys()),L=O.next();!L.done;L=O.next()){L=L.value;var X=l.S.get(L);n.push(L+"_"+X.maxWidth+"_"+X.maxHeight)}return n.join(".")}; jvf=function(l){l.Wm=[];for(var n=g.P(l.S.values()),O=n.next();!O.done;O=n.next()){O=O.value;var L=O.bF;l.experiments.MQ("html5_ssap_force_mp4_aac")&&L!=="a"&&L!=="h"||l.W.has(L)||l.G&&(L==="1"||L==="1h"||l.N&&L==="1e")||l.Wm.push(O)}}; RW9=function(l,n){for(var O=new Map,L=g.P(l.S.keys()),X=L.next();!X.done;X=L.next()){X=X.value;var F=X.split("_")[0];n.has(F)||O.set(X,l.S.get(X))}l.S=O}; tvg=function(l,n,O){var L,X=((L=O.video)==null?void 0:L.fps)||0;L=n+"_"+X;var F=!!O.audio,x={itag:O.itag,bF:n,vM:F};if(F)x.numChannels=O.audio.numChannels;else{var Z=O.video;x.maxWidth=Z==null?void 0:Z.width;x.maxHeight=Z==null?void 0:Z.height;x.maxFramerate=X;PW(l,TP.BITRATE)&&(x.maxBitrateBps=O.Sv*8);x.q2=Z==null?void 0:Z.isHdr()}Z=l.S.get(L);Z?F||(O=Math.max(Z.maxWidth||0,Z.maxHeight||0)>Math.max(x.maxWidth||0,x.maxHeight||0)?Z:x,n={itag:O.itag,bF:n,vM:F,maxWidth:Math.max(Z.maxWidth||0,x.maxWidth|| 0),maxHeight:Math.max(Z.maxHeight||0,x.maxHeight||0),maxFramerate:X,q2:O.q2},PW(l,TP.BITRATE)&&(n.maxBitrateBps=O.maxBitrateBps),l.S.set(L,n)):l.S.set(L,x)}; vx9=function(l,n,O){var L,X=((L=O.video)==null?void 0:L.fps)||0;L=n+"_"+X;var F=!!O.audio,x=l.S.get(L);a:{var Z=l.S.get(L),J=!!O.audio;if(Z){if(J){var w=!1;break a}var H;if(!J&&((w=O.video)==null?0:w.height)&&Z.maxHeight&&Z.maxHeight>=((H=O.video)==null?void 0:H.height)){w=!1;break a}}w=!0}w&&(w=O.itag,n=x?x:{itag:w,bF:n,vM:F},F?n.numChannels=O.audio.numChannels:(F=O.video,n.maxWidth=F==null?void 0:F.width,n.maxHeight=F==null?void 0:F.height,n.maxFramerate=X,PW(l,TP.BITRATE)&&(n.maxBitrateBps=O.Sv* 8),n.q2=F==null?void 0:F.isHdr()),l.S.set(L,n))}; kO7=function(l){var n;(n=navigator.mediaCapabilities)!=null&&n.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(O){O.smooth&&O.powerEfficient&&(l.Q5=2160)})}; Lw=function(){g.hj.call(this);this.items={}}; X$=function(){g.Nm.apply(this,arguments)}; o5=function(){g.D4.apply(this,arguments)}; mIk=function(l,n,O){this.encryptedClientKey=n;this.B=O;this.S=new Uint8Array(l.buffer,0,16);this.N=new Uint8Array(l.buffer,16)}; Ih0=function(l){l.W||(l.W=new X$(l.S));return l.W}; F$=function(l){try{return Wd(l)}catch(n){return null}}; dI9=function(l,n){if(!n&&l)try{n=JSON.parse(l)}catch(X){}if(n){l=n.clientKey?F$(n.clientKey):null;var O=n.encryptedClientKey?F$(n.encryptedClientKey):null,L=n.keyExpiresInSeconds?Number(n.keyExpiresInSeconds)*1E3+(0,g.Q_)():null;l&&O&&L&&(this.S=new mIk(l,O,L));n.onesieUstreamerConfig&&(this.onesieUstreamerConfig=F$(n.onesieUstreamerConfig)||void 0);this.baseUrl=n.baseUrl}}; ht=function(){this.data=new Uint8Array(2048);this.pos=0;xJ||(xJ=Ys("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; ZU=function(l,n){l.add(n==null||isNaN(n)?0:n+1)}; Jt=function(l){this.S=this.W=0;this.alpha=Math.exp(Math.log(.5)/l)}; wn=function(l){this.W=l===void 0?15:l;this.values=new Float64Array(176);this.S=new Float64Array(11);this.N=new Float64Array(16)}; HI=function(l,n,O,L){O=O===void 0?.5:O;L=L===void 0?0:L;this.resolution=n;this.W=0;this.N=!1;this.X6=!0;this.S=Math.round(l*this.resolution);this.values=Array(this.S);for(l=0;l<this.S;l++)this.values[l]=Infinity;this.B=$If(this);this.L=O;this.V=L}; $If=function(l){for(var n=Array(l.S),O=0;O<l.S;O++)n[O]=O;return n}; At=function(l,n,O){g.V.call(this);this.policy=l;this.W=n;this.AC=O;this.Q5=this.Fi=0;this.NQ=-1;this.Lf=this.B=0;this.Wm=!1;this.interruptions=[];this.L=[{stamp:0,net:0,max:0}];this.Hm=this.V=(0,g.Q_)();this.G=new HI(4,1,.6,.4);this.Cf=new HI(4,1,.6,.4);this.T=new HI(20,1,.5,.4);l.NQ?this.N=new wn(l.S):l.W?this.N=new Jt(l.S):this.N=new HI(l.S,20,.5,.4);this.z3=new HI(5,1,.25);this.Y=new HI(30,1,.5);l=g.dU("yt-player-bandwidth")||{};n=this.policy.N;if(l.byterate>0)n=l.byterate,this.Wm=!0;else{var L; O=(((L=navigator.connection)==null?void 0:L.downlink)||0)*64*1024;O>0&&(n=O,this.Wm=!0)}this.N.Zm(this.policy.V,n);l.delay>0&&this.G.Zm(1,Math.min(l.delay,2));l.stall>0&&this.T.Zm(1,l.stall);l.init>0&&(this.Hm=Math.min(l.init,this.Hm));l.interruptions&&(this.L=this.L.concat(l.interruptions),this.L.length>16&&this.L.pop());this.NQ=(0,g.Q_)();this.policy.T>0&&(this.wq=new g.vs(this.Pm,this.policy.T,this),g.c(this,this.wq),this.wq.start())}; bO=function(l,n,O,L){l.N.Zm(L===void 0?n:L,O/n);l.V=(0,g.Q_)()}; Vc5=function(l){l.B||(l.B=(0,g.Q_)());l.policy.Y&&(l.V=(0,g.Q_)())}; BXv=function(l,n){if(l.B){var O=n-l.B;if(O<6E4){if(O>1E3){var L=l.interruptions;L.push(Math.ceil(O));L.sort(function(X,F){return F-X}); L.length>16&&L.pop()}l.Lf+=O}}l.B=n}; rn=function(l,n,O,L,X,F){F=F===void 0?!1:F;l.z3.Zm(n,O/n);l.V=(0,g.Q_)();X||l.Y.Zm(1,n-L);F||(l.B=0);l.NQ>-1&&(0,g.Q_)()-l.NQ>3E4&&c18(l)}; UI=function(l,n,O){n=Math.max(n,l.W.S);l.T.Zm(1,O/n)}; uO=function(l){l=l.G.sP()+l.Cf.sP()||0;l=isNaN(l)?.5:l;return l=Math.min(l,5)}; PI=function(l,n,O){isNaN(O)||(l.Q5+=O);isNaN(n)||(l.Fi+=n)}; TH=function(l){l=l.N.sP();return l>0?l:1}; WI=function(l,n,O){n=n===void 0?!1:n;O=O===void 0?1048576:O;var L=TH(l);L=1/((l.T.sP()||0)*l.policy.Wm+1/L);var X=l.z3.sP();X=X>0?X:1;var F=Math.max(L,X);l.policy.B>0&&X<L&&(F=Math.min(l.policy.B,1),F=(1-F)*L+F*X);if(!n)return F;n=1E-9+uO(l);O=F*Math.min(1,O/(F*n));l.policy.L||(l=((l.Y.percentile(.98)||0)-1)/2,l=Math.max(0,Math.min(1,l)),O*=1-.5*l);return O}; iX0=function(l){var n={delay:uO(l),stall:l.T.sP()||0,byterate:TH(l),init:l.Hm},O=l.L[0];O.stamp=Math.round(l.V/36E5)*36E5;O.net=Math.ceil(l.Lf);O.max=l.interruptions[0]||0;n.interruptions=l.L;return n}; c18=function(l){g.It("yt-player-bandwidth",iX0(l),2592E3);l.NQ=(0,g.Q_)();l.Wm=!0}; EI=function(l){return(0,g.Q_)()-l.V>=4E3}; zSi=function(l){this.experiments=l;this.S=17;this.N=13E4;this.V=.5;this.W=!1;this.NQ=this.J("html5_use_histogram_for_bandwidth");this.L=!1;this.B=g.HQ(this.experiments,"html5_auxiliary_estimate_weight");this.Wm=g.HQ(this.experiments,"html5_stall_factor")||1;this.T=g.HQ(this.experiments,"html5_check_for_idle_network_interval_ms");this.G=this.experiments.MQ("html5_trigger_loader_when_idle_network");this.Y=this.experiments.MQ("html5_sabr_fetch_on_idle_network_preloaded_players")}; pG5=function(l,n){l=l===void 0?{}:l;n=n===void 0?{}:n;g.V.call(this);var O=this;this.values=l;this.fz=n;this.W={};this.N=this.S=0;this.L=new g.vs(function(){Szf(O)},1E4); g.c(this,this.L)}; Nt=function(l,n){svi(l,n);return l.values[n]&&l.fz[n]?l.values[n]/Math.pow(2,l.S/l.fz[n]):0}; svi=function(l,n){l.values[n]||(n=yk9(),l.values=n.values||{},l.fz=n.halfLives||{},l.W=n.values?Object.assign({},n.values):{})}; Szf=function(l){var n=yk9();if(n.values){n=n.values;for(var O={},L=g.P(Object.keys(l.values)),X=L.next();!X.done;X=L.next())X=X.value,n[X]&&l.W[X]&&(l.values[X]+=n[X]-l.W[X]),O[X]=Nt(l,X);l.W=O}n=l.fz;O={};O.values=l.W;O.halfLives=n;g.It("yt-player-memory",O,2592E3)}; iO=function(l,n,O,L,X){g.V.call(this);this.webPlayerContextConfig=n;this.dA=L;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.AP=this.K5=this.G3=this.ea=this.userDisplayName=this.userDisplayImage=this.D9="";this.S={};this.Sz={};this.controlsType="0";this.z$=NaN;this.uv=!1;this.j7=(0,g.Q_)();this.n5=0;this.rA=this.Up=!1;this.rH=!0;this.preferGapless=this.vp=this.At=this.N=this.o_=this.UU=!1;this.RP=[];this.IA=!1;l=l?g.jY(l):{};n&&n.csiPageType&&(this.csiPageType=n.csiPageType);n&&n.csiServiceName&& (this.csiServiceName=n.csiServiceName);n&&n.preferGapless&&(this.preferGapless=n.preferGapless);this.experiments=new W6v(n?n.serializedExperimentIds:l.fexp,n?n.serializedExperimentFlags:l.fflags);this.forcedExperiments=n?n.serializedForcedExperimentIds:F1("",l.forced_experiments)||void 0;this.cspNonce=(n==null?0:n.cspNonce)?n.cspNonce:F1("",l.csp_nonce);this.J("web_player_deprecated_uvr_killswitch");try{var F=document.location.toString()}catch(a){F=""}this.oA=F;this.ancestorOrigins=(L=window.location.ancestorOrigins)? Array.from(L):[];this.L=Li(!1,n?n.isEmbed:l.is_embed);if(n&&n.device){if(L=n.device,L.androidOsExperience&&(this.S.caoe=""+L.androidOsExperience),L.androidPlayServicesVersion&&(this.S.capsv=""+L.androidPlayServicesVersion),L.brand&&(this.S.cbrand=L.brand),L.browser&&(this.S.cbr=L.browser),L.browserVersion&&(this.S.cbrver=L.browserVersion),L.cobaltReleaseVehicle&&(this.S.ccrv=""+L.cobaltReleaseVehicle),this.S.c=L.interfaceName||"WEB",this.S.cver=L.interfaceVersion||"html5",L.interfaceTheme&&(this.S.ctheme= L.interfaceTheme),this.S.cplayer=L.interfacePlayerType||"UNIPLAYER",L.model&&(this.S.cmodel=L.model),L.network&&(this.S.cnetwork=L.network),L.os&&(this.S.cos=L.os),L.osVersion&&(this.S.cosver=L.osVersion),L.platform&&(this.S.cplatform=L.platform),F=ta(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),F==="all"||F==="once")L.chipset&&(this.Sz.cchip=L.chipset),L.cobaltAppVersion&&(this.Sz.ccappver=L.cobaltAppVersion),L.firmwareVersion&&(this.Sz.cfrmver=L.firmwareVersion),L.deviceYear&&(this.Sz.crqyear= L.deviceYear)}else this.S.c=l.c||"web",this.S.cver=l.cver||"html5",this.S.cplayer="UNIPLAYER";this.loaderUrl=n?this.L||fhe(this)&&n.loaderUrl?n.loaderUrl||"":this.oA:this.L||fhe(this)&&l.loaderUrl?F1("",l.loaderUrl):this.oA;this.L&&g.i9("yt.embedded_player.embed_url",this.loaderUrl);this.T=vQ(this.loaderUrl,K6a);L=this.loaderUrl;var x=x===void 0?!1:x;this.fX=tk(vQ(L,ahi),L,x,"Trusted Ad Domain URL");this.q5=Li(!1,l.privembed);this.protocol=this.oA.indexOf("http:")===0?"http":"https";this.Vf=lN((n? n.customBaseYoutubeUrl:l.BASE_YT_URL)||"")||lN(this.oA)||this.protocol+"://www.youtube.com/";x=n?n.eventLabel:l.el;L="detailpage";x==="adunit"?L=this.L?"embedded":"detailpage":x==="embedded"||this.T?L=X1(L,x,RS8):x&&(L="embedded");this.Cf=L;eRe();x=null;L=n?n.playerStyle:l.ps;F=g.CO(CL7,L);!L||F&&!this.T||(x=L);this.playerStyle=x;this.V=g.CO(CL7,this.playerStyle);this.houseBrandUserStatus=n==null?void 0:n.houseBrandUserStatus;this.NQ=this.V&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.IU=!this.NQ;this.Hm=Li(!1,l.disableplaybackui);this.disablePaidContentOverlay=Li(!1,n==null?void 0:n.disablePaidContentOverlay);this.disableSeek=Li(!1,n==null?void 0:n.disableSeek);this.enableSpeedOptions=(n==null?void 0:n.enableSpeedOptions)||(YB().defaultPlaybackRate?DU||g.lG||lO?g.Bz&&y8("20")||g.G2&&y8("4")||g.qt&&y8("11")||RT():!(g.qt&&!g.S_("chrome")||DU||g.S_("android")||g.S_("silk")):!1);this.jI=Li(!1,l.enable_faster_speeds);var Z;this.supportsVarispeedExtendedFeatures=(Z=n==null?void 0: n.supportsVarispeedExtendedFeatures)!=null?Z:!1;this.W=Li(this.playerStyle==="blazer",l.is_html5_mobile_device||n&&n.isMobileDevice);this.Fi=vu()||ni();this.aU=this.J("mweb_allow_background_playback")?!1:this.W&&!this.V;this.wq=d0();this.aP=g.kJ;var J;this.mD=!!(n==null?0:(J=n.embedsHostFlags)==null?0:J.optOutApiDeprecation);var w;this.Op=!!(n==null?0:(w=n.embedsHostFlags)==null?0:w.allowPfpImaIntegration);this.wr=this.J("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var H;n?n.hideInfo!== void 0&&(H=!n.hideInfo):H=l.showinfo;this.eF=g.yG(this)&&!this.mD||Li(!Mt(this)&&!QG(this)&&!this.V,H);this.Vr=n?!!n.mobileIphoneSupportsInlinePlayback:Li(!1,l.playsinline);Z=this.W&&eV&&YJ!=null&&YJ>0&&YJ<=2.3;J=n?n.useNativeControls:l.use_native_controls;this.G=g.yG(this)&&this.W;w=this.W&&!this.G;J=g.jV(this)||!Z&&Li(w,J)?"3":"1";this.disableOrganicUi=!(n==null||!n.disableOrganicUi);w=n?n.controlsType:l.controls;this.controlsType=this.disableOrganicUi?"0":w!=="0"&&w!==0?J:"0";this.Rh=this.W;this.color= X1("red",n?n.progressBarColor:l.color,tcg);this.mS=this.controlsType==="3";this.hC=!this.L;this.Q8=(J=!this.hC&&!QG(this)&&!this.NQ&&!this.V&&!Mt(this))&&!this.mS&&this.controlsType==="1";this.Y4=g.GH(this)&&J&&this.controlsType==="0"&&!this.Q8&&!(n==null?0:n.embedsEnableEmc3ds);this.Fj=this.Vz=Z;this.Xg=(this.controlsType==="3"||this.W||Li(!1,l.use_media_volume))&&!this.G;this.LT=Ch&&!g.ua(601)?!1:!0;this.T9=this.L||!1;this.nf=QG(this)?"":(this.loaderUrl||l.post_message_origin||"").substring(0,128); this.widgetReferrer=F1("",n?n.widgetReferrer:l.widget_referrer);var A;n?n.disableCastApi&&(A=!1):A=l.enablecastapi;A=!this.T||Li(!0,A);Z=!0;n&&n.disableMdxCast&&(Z=!1);this.cQ=this.J("enable_cast_for_web_unplugged")&&g.mX(this)&&Z||g.Bt(this)&&Z||A&&Z&&this.controlsType==="1"&&!this.W&&(QG(this)||g.GH(this)||g.I5(this));this.yS=!!window.document.pictureInPictureEnabled||Ib();A=n?!!n.supportsAutoplayOverride:Li(!1,l.autoplayoverride);this.kY=!(this.W&&!g.yG(this))&&!g.S_("nintendo wiiu")||A;this.Oc= (n?!!n.enableMutedAutoplay:Li(!1,l.mutedautoplay))&&!1;A=(QG(this)||Mt(this))&&this.playerStyle==="blazer";this.Z$=n?!!n.disableFullscreen:!Li(!0,l.fs);Z=g.JB(g.dn(this))&&g.yG(this);this.JA=!this.Z$&&(A||g.uG())&&!Z;this.Cz=this.J("html5_picture_in_picture_logging_onresize");this.LZ=this.J("html5_picture_in_picture_blocking_onresize");this.D0=this.J("html5_picture_in_picture_blocking_ontimeupdate");this.D7=this.J("html5_picture_in_picture_blocking_document_fullscreen");this.CZ=this.J("html5_picture_in_picture_blocking_standard_api"); A=ph()&&y8(58)&&!ni();Z=aZ||typeof MediaSource==="undefined";this.Wp=this.J("uniplayer_block_pip")&&(A||Z)||this.LZ||this.D0||this.CZ;A=g.yG(this)&&!this.mD;var b;n?n.disableRelatedVideos!==void 0&&(b=!n.disableRelatedVideos):b=l.rel;this.M5=A||Li(!this.V,b);this.R4=Li(!1,n?n.enableContentOwnerRelatedVideos:l.co_rel);this.Y=ni()&&YJ>0&&YJ<=4.4?"_top":"_blank";this.Zx=g.I5(this);this.hZ=Li(this.playerStyle==="blazer",n?n.enableCsiLogging:l.enablecsi);switch(this.playerStyle){case "blogger":b="bl"; break;case "gmail":b="gm";break;case "gac":b="ga";break;case "books":b="gb";break;case "docs":case "flix":b="gd";break;case "duo":b="gu";break;case "google-live":b="gl";break;case "google-one":b="go";break;case "play":b="gp";break;case "chat":b="hc";break;case "hangouts-meet":b="hm";break;case "photos-edu":case "picasaweb":b="pw";break;default:b="yt"}this.Wm=b;this.Q5=F1("",n?n.authorizedUserIndex:l.authuser);this.Wk=g.yG(this)&&(this.q5||!UCv()||this.Fi);var r;n?n.disableWatchLater!==void 0&&(r= !n.disableWatchLater):r=l.showwatchlater;this.lf=((b=!this.Wk)||!!this.Q5&&b)&&Li(!this.NQ,this.T?r:void 0);this.j3=n?n.isMobileDevice||!!n.disableKeyboardControls:Li(!1,l.disablekb);this.loop=Li(!1,l.loop);this.pageId=F1("",n?n.initialDelegatedSessionId:l.pageid);this.Xj=Li(!0,l.canplaylive);this.Of=Li(!1,l.livemonitor);this.disableSharing=Li(this.V,n?n.disableSharing:l.ss);(r=n&&this.J("fill_video_container_size_override_from_wpcc")?n.videoContainerOverride:l.video_container_override)?(b=r.split("x"), b.length!==2?r=null:(r=Number(b[0]),b=Number(b[1]),r=isNaN(r)||isNaN(b)||r*b<=0?null:new g.re(r,b))):r=null;this.DJ=r;this.mute=n?!!n.startMuted:Li(!1,l.mute);this.storeUserVolume=!this.mute&&Li(this.controlsType!=="0",n?n.storeUserVolume:l.store_user_volume);r=n?n.annotationsLoadPolicy:l.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:X1(void 0,r,$J);this.captionsLanguagePreference=n?n.captionsLanguagePreference||"":F1("",l.cc_lang_pref);r=X1(2,n?n.captionsLanguageLoadPolicy: l.cc_load_policy,$J);this.controlsType==="3"&&r===2&&(r=3);this.oO=r;this.Fp=n?n.hl||"en_US":F1("en_US",l.hl);this.region=n?n.contentRegion||"US":F1("US",l.cr);this.hostLanguage=n?n.hostLanguage||"en":F1("en",l.host_language);this.AL=!this.q5&&Math.random()<g.HQ(this.experiments,"web_player_api_logging_fraction");this.Pm=!this.q5;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(n==null||!n.deviceIsAudioOnly);this.z$=ot(this.z$,l.ismb);this.IU?(r=l.vss_host||"s.youtube.com",r==="s.youtube.com"&& (r=VG(this.Vf)||"www.youtube.com")):r="video.google.com";this.CT=r;BI(this,l,!0);this.z3=new Lw;g.c(this,this.z3);b=n?n.innertubeApiKey:F1("",l.innertube_api_key);A=n?n.innertubeApiVersion:F1("",l.innertube_api_version);r=n?n.innertubeContextClientVersion:F1("",l.innertube_context_client_version);b=g.R3("INNERTUBE_API_KEY")||b;A=g.R3("INNERTUBE_API_VERSION")||A;Z=g.R3("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");J=RS(this);w=typeof this.S.c==="number"?Number(this.S.c):Object.keys(vX5).indexOf(this.S.c); this.YW={innertubeApiKey:b,innertubeApiVersion:A,L7:Z,Tm:J,yG:w,innertubeContextClientVersion:g.R3("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,XL:this.hostLanguage,t8:this.region,F3:g.R3("INNERTUBE_HOST_OVERRIDE")||"",Pz:!!g.R3("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),tp3:!!g.R3("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.mN=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.B=new vz(this.experiments,this.J("html5_force_hfr_support")?!0:k_(this)||Kh()||TOi()||lvi(this),g.G2&&g.ua(56)|| g.Bz&&g.ua(54)||this.J("html5_force_vp9_subsample_encryption_support")||lvi(this));r=g.yw(this);b=this.z$;A=this.experiments;Z=new zSi(A);r&&(Z.W=!0,Z.V=.1);A.MQ("html5_media_time_weight")&&(Z.W=!1);b&&(Z.N=b/8);Z.L=$W()>=480;this.schedule=new At(Z,new TXf(this.experiments),X);g.c(this,this.schedule);var U;this.enableSafetyMode=(U=n==null?void 0:n.initialEnableSafetyMode)!=null?U:Li(!1,l.enable_safety_mode);X=this.Hm?!1:QG(this)&&this.playerStyle!=="blazer";var W;n?n.disableAutonav!=null&&(W=!n.disableAutonav): W=l.allow_autonav;this.d8=Li(X,!this.NQ&&W);this.sendVisitorIdHeader=n?!!n.sendVisitorIdHeader:Li(!1,l.send_visitor_id_header);var N;this.playerStyle==="docs"&&(n?N=n.disableNativeContextMenu:N=l.disable_native_context_menu);this.disableNativeContextMenu=Li(!1,N);this.CX=k_(this)&&this.J("enable_skip_intro_button");this.embedConfig=F1("",n?n.serializedEmbedConfig:l.embed_config);this.Lf=ZM(l,g.yG(this));this.N=this.Lf==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(n==null||!n.embedsErrorLinks); this.S5=Li(!1,l.full_window);var q;this.Yo=!((q=this.webPlayerContextConfig)==null?0:q.chromeless);var y;this.livingRoomAppMode=X1("LIVING_ROOM_APP_MODE_UNSPECIFIED",l.living_room_app_mode||(n==null?void 0:(y=n.device)==null?void 0:y.livingRoomAppMode),n4v);var e;W=ot(NaN,n==null?void 0:(e=n.device)==null?void 0:e.deviceYear);isNaN(W)||(this.deviceYear=W);this.transparentBackground=n?!!n.transparentBackground:Li(!1,l.transparent_background);this.showMiniplayerButton=n?!!n.showMiniplayerButton:Li(!1, l.show_miniplayer_button);var d;g.yG(this)&&!(n==null?0:(d=n.embedsHostFlags)==null?0:d.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=n?!!n.externalFullscreen:Li(!1,l.external_fullscreen);this.showMiniplayerUiWhenMinimized=n?!!n.showMiniplayerUiWhenMinimized:Li(!1,l.use_miniplayer_ui);var B;this.rH=(B=l.show_loop_video_toggle)!=null?B:!0;this.R6=Math.random()<1E-4;this.uc=l.onesie_hot_config||(n==null?0:n.onesieHotConfig)?new dI9(l.onesie_hot_config,n==null?void 0:n.onesieHotConfig): void 0;this.isTectonic=n?!!n.isTectonic:!!l.isTectonic;this.playerCanaryState=O;this.playerCanaryStage=n==null?void 0:n.canaryStage;this.q_=new pG5;g.c(this,this.q_);this.o_=Li(!1,l.force_gvi);this.datasyncId=(n==null?void 0:n.datasyncId)||g.R3("DATASYNC_ID");this.xa=g.R3("LOGGED_IN",!1);this.X$=(n==null?void 0:n.allowWoffleManagement)||!1;this.S0=Infinity;this.oh=NaN;this.livingRoomPoTokenId=n==null?void 0:n.livingRoomPoTokenId;this.J("html5_high_res_logging_always")?this.At=!0:this.At=Math.random()* 100<g.HQ(this.experiments,"html5_high_res_logging_percent");var R;this.vp=!!(n==null?0:(R=n.embedsHostFlags)==null?0:R.allowRcat);this.pI=!g.mX(this)&&!cI(this)}; g.dn=function(l){var n,O;if(!((n=l.webPlayerContextConfig)==null?0:(O=n.embedsHostFlags)==null?0:O.enableLiteUx)||l.q5||l.V||l.N||l.Lf==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";l=g.HQ(l.experiments,"embeds_web_lite_mode");return l===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":l>=0&&l<OSi.length?OSi[l]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; BI=function(l,n,O){O=O===void 0?!1:O;l.K5=F1(l.K5,n.video_id);l.G3=F1(l.G3,n.eventid);l.G3&&(EG=l.G3);for(var L=[],X=g.P(Object.keys(g45)),F=X.next();!F.done;F=X.next()){F=g45[F.value];var x=n[F];x!=null&&(x!==l.S[F]&&L.push(F),l.S[F]=x)}!O&&L.length>0&&l.R6&&(L.sort(),g.d2(new g.at("Player client parameters changed after startup",L)));l.userAge=ot(l.userAge,n.user_age);l.D9=F1(l.D9,n.user_display_email);l.userDisplayImage=F1(l.userDisplayImage,n.user_display_image);g.OT(l.userDisplayImage)||(l.userDisplayImage= "");l.userDisplayName=F1(l.userDisplayName,n.user_display_name);l.ea=F1(l.ea,n.user_gender);l.csiPageType=F1(l.csiPageType,n.csi_page_type);l.csiServiceName=F1(l.csiServiceName,n.csi_service_name);l.hZ=Li(l.hZ,n.enablecsi);l.pageId=F1(l.pageId,n.pageid);if(O=n.enabled_engage_types)l.enabledEngageTypes=new Set(O.split(","));n.living_room_session_po_token&&(l.OU=n.living_room_session_po_token.toString())}; zH=function(l,n){return!l.V&&ph()&&y8(55)&&l.controlsType==="3"&&!n}; g.SV=function(l){l=VG(l.Vf);return l==="www.youtube-nocookie.com"?"www.youtube.com":l}; pw=function(l,n,O){return l.protocol+"://i1.ytimg.com/vi/"+n+"/"+(O||"hqdefault.jpg")}; sI=function(l){return QG(l)&&!g.mX(l)}; g.jV=function(l){return l.J("html5_local_playsinline")?Ch&&!g.ua(602)&&!("playsInline"in YB()):Ch&&!l.Vr||g.S_("nintendo wiiu")?!0:!1}; RS=function(l){return l.S.c}; g.yw=function(l){return/^TVHTML5/.test(RS(l))}; g.fw=function(l){return RS(l)==="TVHTML5"}; fhe=function(l){return RS(l)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; lvi=function(l){return l.S.cmodel==="CHROMECAST ULTRA/STEAK"||l.S.cmodel==="CHROMECAST/STEAK"}; g.Kw=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; k_=function(l){return/web/i.test(RS(l))}; g.a5=function(l){return RS(l).toUpperCase()==="WEB"}; cI=function(l){return RS(l)==="WEB_KIDS"}; g.mX=function(l){return RS(l)==="WEB_UNPLUGGED"}; R5=function(l){return RS(l)==="TVHTML5_UNPLUGGED"}; g.qp=function(l){return g.mX(l)||RS(l)==="TV_UNPLUGGED_CAST"||R5(l)}; g.Bt=function(l){return RS(l)==="WEB_REMIX"}; g.Cw=function(l){return RS(l)==="WEB_EMBEDDED_PLAYER"}; g.vI=function(l){return(l.deviceIsAudioOnly||!g.G2||aZ||l.controlsType==="3"?!1:g.lG?l.L&&g.ua(51):!0)||(l.deviceIsAudioOnly||!g.Bz||aZ||l.controlsType==="3"?!1:g.lG?l.L&&g.ua(48):g.ua(38))||(l.deviceIsAudioOnly||!g.qt||aZ||l.controlsType==="3"?!1:g.lG?l.L&&g.ua(37):g.ua(27))||!l.deviceIsAudioOnly&&g.tt&&!EK8()&&g.ua(11)||!l.deviceIsAudioOnly&&g.Wo&&g.ua("604.4")}; Lgi=function(l){if(g.GH(l)&&eV)return!1;if(g.Bz){if(!g.ua(47)||!g.ua(52)&&g.ua(51))return!1}else if(g.Wo)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; o40=function(l,n){return l.enabledEngageTypes.has(n.toString())||X0v.includes(n)}; QG=function(l){return l.Cf==="detailpage"}; g.GH=function(l){return l.Cf==="embedded"}; lQ=function(l){return l.Cf==="leanback"}; Mt=function(l){return l.Cf==="adunit"||l.playerStyle==="gvn"}; g.I5=function(l){return l.Cf==="profilepage"}; g.yG=function(l){return l.L&&g.GH(l)&&!Mt(l)&&!l.V}; ny=function(l){if(!l.userDisplayImage)return"";var n=l.userDisplayImage.split("/");if(n.length===5)return l=n[n.length-1].split("="),l[1]="s20-c",n[n.length-1]=l.join("="),n.join("/");if(n.length===8)return n.splice(7,0,"s20-c"),n.join("/");if(n.length===9)return n[7]+="-s20-c",n.join("/");g.d2(new g.at("Profile image not a FIFE URL.",l.userDisplayImage));return l.userDisplayImage}; g.O7=function(l){var n=g.SV(l);Fgk.includes(n)&&(n="www.youtube.com");return l.protocol+"://"+n}; g.g7=function(l,n){n=n===void 0?"":n;if(l.dA){var O=new v6,L,X=l.dA();X.signedOut?L="":X.token?L=X.token:X.pendingResult.then(function(F){X.signedOut?O.resolve(""):O.resolve(F.token)},function(F){g.d2(new g.at("b189348328_oauth_callback_failed",{error:F})); O.resolve(n)}); return L!==void 0?mA(L):new j_(O)}return mA(n)}; Ly=function(l,n){n=n===void 0?"":n;return l.xa?hw(!0):bo(Aw(hw(g.g7(l,n)),function(O){return hw(!!O)}),function(){return hw(!1)})}; VG=function(l){var n=g.VM(l);return(l=Number(g.$o(4,l))||null)?n+":"+l:n}; XE=function(l,n){n=n===void 0?!1:n;var O=pB[l],L=xag[O],X=hui[l];if(!X||!L)return null;n=new ij(n?X.height:X.width,n?X.width:X.height,X.fps);L=Hz(L,n,O);return new se(l,L,{video:n,Sv:X.bitrate/8})}; J$q=function(l){var n=xag[pB[l]],O=ZSk[l];return O&&n?new se(l,n,{audio:new VC(O.audioSampleRate,O.numChannels)}):null}; o4=function(l){this.S=l}; FE=function(l,n,O,L){if(O)return Gj();O={};var X=YB();n=g.P(n);for(var F=n.next();!F.done;F=n.next())if(F=F.value,l.canPlayType(X,F.getInfo().mimeType)||L){var x=F.S.video.quality;if(!O[x]||O[x].getInfo().QE())O[x]=F}l=[];O.auto&&l.push(O.auto);L=g.P(z2);for(X=L.next();!X.done;X=L.next())(X=O[X.value])&&l.push(X);return l.length?mA(l):Gj()}; w0k=function(l){this.itag=l.itag;this.url=l.url;this.codecs=l.codecs;this.width=l.width;this.height=l.height;this.fps=l.fps;this.bitrate=l.bitrate;var n;this.W=((n=l.audioItag)==null?void 0:n.split(","))||[];this.D8=l.D8;this.UK=l.UK||"";this.O_=l.O_;this.audioChannels=l.audioChannels;this.S=""}; HS8=function(l,n,O,L){n=n===void 0?!1:n;O=O===void 0?!0:O;L=L===void 0?{}:L;var X={};l=g.P(l);for(var F=l.next();!F.done;F=l.next()){F=F.value;if(n&&MediaSource&&MediaSource.isTypeSupported){var x=F.type;F.audio_channels&&(x=x+"; channels="+F.audio_channels);if(!MediaSource.isTypeSupported(x)){L[F.itag]="tpus";continue}}if(O||!F.drm_families||F.eotf!=="smpte2084"&&F.eotf!=="arib-std-b67"){x=void 0;var Z={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},J=F.type.match(/codecs="([^"]*)"/); J=J?J[1]:"";F.audio_track_id&&(x=new g.FD(F.name,F.audio_track_id,!!F.is_default));var w=F.eotf;F=new w0k({itag:F.itag,url:F.url,codecs:J,width:Number(F.width),height:Number(F.height),fps:Number(F.fps),bitrate:Number(F.bitrate),audioItag:F.audio_itag,D8:w?Z[w]:void 0,UK:F.drm_families,O_:x,audioChannels:Number(F.audio_channels)});X[F.itag]=X[F.itag]||[];X[F.itag].push(F)}else L[F.itag]="enchdr"}return X}; A$7=function(l,n,O,L,X){this.N=l;this.W=n;this.B=O;this.cpn=L;this.V=X;this.L=0;this.S=""}; bS0=function(l,n){l.N.some(function(O){var L;return((L=O.O_)==null?void 0:L.getId())===n}); l.S=n}; xP=function(l,n,O){l.cpn&&(n=g.pr(n,{cpn:l.cpn}));O&&(n=g.pr(n,{paired:O}));return n}; r$9=function(l,n){l=l.itag.toString();n!==null&&(l+=n.itag.toString());return l}; Uaa=function(l){for(var n=[],O=[],L=g.P(l.W),X=L.next();!X.done;X=L.next())X=X.value,X.bitrate<=l.L?n.push(X):O.push(X);n.sort(function(F,x){return x.bitrate-F.bitrate}); O.sort(function(F,x){return F.bitrate-x.bitrate}); l.W=n.concat(O)}; h2=function(l,n,O){this.S=l;this.W=n;this.expiration=O;this.Vp=null}; u9q=function(l,n){if(!(aZ||aT()||fh()))return null;l=HS8(n,l.J("html5_filter_fmp4_in_hls"));if(!l)return null;n=[];for(var O={},L=g.P(Object.keys(l)),X=L.next();!X.done;X=L.next()){X=g.P(l[X.value]);for(var F=X.next();!F.done;F=X.next()){var x=F.value;x.O_&&(F=x.O_.getId(),O[F]||(x=new g.nn(F,x.O_),O[F]=x,n.push(x)))}}return n.length>0?n:null}; NR5=function(l,n,O,L,X,F,x){if(!(aZ||aT()||fh()))return Gj();var Z={},J=P$8(O),w=HS8(O,l.J("html5_filter_fmp4_in_hls"),l.B.T,Z);if(!w)return x({noplst:1}),Gj();TRv(w);O={};var H=(O.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",O),A;O=[];var b=[],r=[],U=null,W="";L=L&&L.match(/hls_timedtext_playlist/)?new w0k({itag:"0",url:L,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,O_:new g.FD("English","en",!1)}):null;for(var N=g.P(Object.keys(w)),q=N.next();!q.done;q=N.next())if(q=q.value,!l.J("html5_disable_drm_hfr_1080")|| q!=="383"&&q!=="373"){q=g.P(w[q]);for(var y=q.next();!y.done;y=q.next())if(y=y.value,y.width){for(var e=g.P(y.W),d=e.next();!d.done;d=e.next())if(d=d.value,w[d]){y.S=d;break}y.S||(y.S=Wgi(w,y));if(e=w[y.S])if(O.push(y),y.UK==="fairplay"&&(A=H),d="",y.D8==="PQ"?d="smpte2084":y.D8==="HLG"&&(d="arib-std-b67"),d&&(W=d),r.push(E4k(e,[y],L,F,y.itag,y.width,y.height,y.fps,J,void 0,void 0,A,d)),!U||y.width*y.height*y.fps>U.width*U.height*U.fps)U=y}else b.push(y)}else Z[q]="disdrmhfr";r.reduce(function(B, R){return R.getInfo().isEncrypted()&&B},!0)&&(A=H); X=Math.max(X,0);H=U||{};w=H.fps===void 0?0:H.fps;U=H.width===void 0?0:H.width;H=H.height===void 0?0:H.height;N=l.J("html5_native_audio_track_switching");r.push(E4k(b,O,L,F,"93",U,H,w,J,"auto",X,A,W,N));Object.entries(Z).length&&x(Z);return FE(l.B,r,zH(l,n),!1)}; E4k=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){for(var U=0,W="",N=g.P(l),q=N.next();!q.done;q=N.next())q=q.value,W||(W=q.itag),q.audioChannels&&q.audioChannels>U&&(U=q.audioChannels,W=q.itag);X=new se(X,"application/x-mpegURL",{audio:new VC(0,U),video:new ij(F,x,Z,null,void 0,w,void 0,b),UK:A,hq:W});l=new A$7(l,n,O?[O]:[],L,!!r);l.L=H?H:1369843;return new h2(X,l,J)}; P$8=function(l){l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.url&&(n=n.url.split("expire/"),!(n.length<=1)))return+n[1].split("/")[0];return NaN}; Wgi=function(l,n){for(var O=g.P(Object.keys(l)),L=O.next();!L.done;L=O.next()){L=L.value;var X=l[L][0];if(!X.width&&X.UK===n.UK&&!X.audioChannels)return L}return""}; TRv=function(l){for(var n=new Set,O=g.P(Object.values(l)),L=O.next();!L.done;L=O.next())L=L.value,L.length&&(L=L[0],L.height&&L.codecs.startsWith("vp09")&&n.add(L.height));O=[];if(n.size){L=g.P(Object.keys(l));for(var X=L.next();!X.done;X=L.next())if(X=X.value,l[X].length){var F=l[X][0];F.height&&n.has(F.height)&&!F.codecs.startsWith("vp09")&&O.push(X)}}n=g.P(O);for(O=n.next();!O.done;O=n.next())delete l[O.value]}; ZY=function(l,n){this.S=l;this.W=n}; Da9=function(l,n,O,L){var X=[];O=g.P(O);for(var F=O.next();!F.done;F=O.next()){var x=F.value;if(x.url){F=new g.WW(x.url,!0);if(x.s){var Z=F,J=x.sp,w=E_q(decodeURIComponent(x.s));Z.set(J,encodeURIComponent(w))}Z=g.P(Object.keys(L));for(J=Z.next();!J.done;J=Z.next())J=J.value,F.set(J,L[J]);x=XO(x.type,x.quality,x.itag,x.width,x.height);X.push(new ZY(x,F))}}return FE(l.B,X,zH(l,n),!1)}; J2=function(l,n){this.S=l;this.W=n}; qZv=function(l,n,O){var L=[];O=g.P(O);for(var X=O.next();!X.done;X=O.next())if((X=X.value)&&X.url){var F=XO(X.type,"medium","0");L.push(new J2(F,X.url))}return FE(l.B,L,zH(l,n),!1)}; kdq=function(l,n){var O=[],L=XO(n.type,"auto",n.itag);O.push(new J2(L,n.url));return FE(l.B,O,!1,!0)}; MPi=function(l){return l&&y$5[l]?y$5[l]:null}; Qii=function(l){if(l=l.commonConfig)this.url=l.url,this.urlQueryOverride=l.urlQueryOverride,l.ustreamerConfig&&(this.Th=F$(l.ustreamerConfig)||void 0)}; eui=function(l,n){var O;if(n=n==null?void 0:(O=n.watchEndpointSupportedOnesieConfig)==null?void 0:O.html5PlaybackOnesieConfig)l.jG=new Qii(n)}; g.w7=function(l){l=l===void 0?{}:l;this.languageCode=l.languageCode||"";this.languageName=l.languageName||null;this.kind=l.kind||"";this.name=l.name===void 0?null:l.name;this.displayName=l.displayName||null;this.id=l.id||null;this.S=l.is_servable||!1;this.isTranslateable=l.is_translateable||!1;this.url=l.url||null;this.vssId=l.vss_id||"";this.isDefault=l.is_default||!1;this.translationLanguage=l.translationLanguage||null;this.xtags=l.xtags||"";this.captionId=l.captionId||""}; g.A2=function(l){var n={languageCode:l.languageCode,languageName:l.languageName,displayName:g.Hy(l),kind:l.kind,name:l.name,id:l.id,is_servable:l.S,is_default:l.isDefault,is_translateable:l.isTranslateable,vss_id:l.vssId};l.xtags&&(n.xtags=l.xtags);l.captionId&&(n.captionId=l.captionId);l.translationLanguage&&(n.translationLanguage=l.translationLanguage);return n}; g.bQ=function(l){return l.translationLanguage?l.translationLanguage.languageCode:l.languageCode}; g.YZ5=function(l){var n=l.vssId;l.translationLanguage&&n&&(n="t"+n+"."+g.bQ(l));return n}; g.Hy=function(l){var n=[];if(l.displayName)n.push(l.displayName);else{var O=l.languageName||"";n.push(O);l.kind==="asr"&&O.indexOf("(")===-1&&n.push(" (Automatic Captions)");l.name&&n.push(" - "+l.name)}l.translationLanguage&&n.push(" >> "+l.translationLanguage.languageName);return n.join("")}; Iva=function(l,n,O,L){l||(l=n&&jiq.hasOwnProperty(n)&&Gde.hasOwnProperty(n)?Gde[n]+"_"+jiq[n]:void 0);n=l;if(!n)return null;l=n.match(maq);if(!l||l.length!==5)return null;if(l=n.match(maq)){var X=Number(l[3]),F=[7,8,10,5,6];l=!(Number(l[1])===1&&X===8)&&F.indexOf(X)>=0}else l=!1;return O||L||l?n:null}; r7=function(l,n){for(var O={},L=g.P(Object.keys(dav)),X=L.next();!X.done;X=L.next()){X=X.value;var F=n?n+X:X;F=l[F+"_webp"]||l[F];g.OT(F)&&(O[dav[X]]=F)}return O}; U7=function(l){var n={};if(!l||!l.thumbnails)return n;l=l.thumbnails.filter(function(Z){return!!Z.url}); l.sort(function(Z,J){return Z.width-J.width||Z.height-J.height}); for(var O=g.P(Object.keys($a9)),L=O.next();!L.done;L=O.next()){var X=Number(L.value);L=$a9[X];for(var F=g.P(l),x=F.next();!x.done;x=F.next())if(x=x.value,x.width>=X){X=VPq(x.url);g.OT(X)&&(n[L]=X);break}}(l=l.pop())&&l.width>=1280&&(l=VPq(l.url),g.OT(l)&&(n["maxresdefault.jpg"]=l));return n}; VPq=function(l){return l.startsWith("//")?"https:"+l:l}; uQ=function(l){return l&&l.baseUrl||""}; Py=function(l){l=g.oT(l);for(var n=g.P(Object.keys(l)),O=n.next();!O.done;O=n.next()){O=O.value;var L=l[O];l[O]=Array.isArray(L)?L[0]:L}return l}; BR7=function(l,n){l.botguardData=n.playerAttestationRenderer.botguardData;n=n.playerAttestationRenderer.challenge;n!=null&&(l.q1=n)}; zu9=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=O.interstitials.map(function(x){var Z=g.z(x,c$v);if(Z)return{is_yto_interstitial:!0,raw_player_response:Z};if(x=g.z(x,iSg))return Object.assign({is_yto_interstitial:!0},Lh(x))}); L=g.P(L);for(var X=L.next();!X.done;X=L.next())switch(X=X.value,O.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":l.interstitials=l.interstitials.concat({time:0,playerVars:X,qF:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":l.interstitials=l.interstitials.concat({time:0x7ffffffffffff,playerVars:X,qF:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var F=Number(O.podConfig.timeToInsertAtMillis);l.interstitials=l.interstitials.concat({time:F,playerVars:X, qF:F===0?5:7})}}}; SZi=function(l,n){if(n=n.find(function(O){return!(!O||!O.tooltipRenderer)}))l.tooltipRenderer=n.tooltipRenderer}; p0k=function(l,n){n.subscribeCommand&&(l.subscribeCommand=n.subscribeCommand);n.unsubscribeCommand&&(l.unsubscribeCommand=n.unsubscribeCommand);n.addToWatchLaterCommand&&(l.addToWatchLaterCommand=n.addToWatchLaterCommand);n.removeFromWatchLaterCommand&&(l.removeFromWatchLaterCommand=n.removeFromWatchLaterCommand);n.getSharePanelCommand&&(l.getSharePanelCommand=n.getSharePanelCommand)}; si9=function(l,n){n!=null?(l.YG=n,l.hh=!0):(l.YG="",l.hh=!1)}; T8=function(l,n){this.type=l||"";this.id=n||""}; g.Wy=function(l){return new T8(l.substring(0,2),l.substring(2))}; g.E7=function(l,n){this.rq=l;this.author="";this.zV=null;this.playlistLength=0;this.S=this.sessionData=null;this.Y={};this.title="";if(n){this.author=n.author||n.playlist_author||"";this.title=n.playlist_title||"";if(l=n.session_data)this.sessionData=O0(l,"&");var O;this.S=((O=n.thumbnail_ids)==null?void 0:O.split(",")[0])||null;this.Y=r7(n,"playlist_");this.videoId=n.video_id||void 0;if(O=n.list)switch(n.listType){case "user_uploads":this.playlistId=(new T8("UU","PLAYER_"+O)).toString();break;default:if(l= n.playlist_length)this.playlistLength=Number(l)||0;this.playlistId=g.Wy(O).toString();if(n=n.video)this.videoId=(n[0]||null).video_id||void 0}else n.playlist&&(this.playlistLength=n.playlist.toString().split(",").length)}}; g.NW=function(l,n){this.rq=l;this.ek=this.author="";this.zV=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.ub=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(n){this.ariaLabel=n.aria_label||void 0;this.author=n.author||"";this.ek=n.ek||"";if(l=n.endscreen_autoplay_session_data)this.zV=O0(l,"&");this.EF=n.EF;this.isLivePlayback=n.live_playback==="1";this.isUpcoming=!!n.isUpcoming;if(l=n.length_seconds)this.lengthSeconds=typeof l==="string"?Number(l):l;this.lengthText= n.lengthText||"";this.ub=n.ub||"";this.publishedTimeText=n.publishedTimeText||void 0;if(l=n.session_data)this.sessionData=O0(l,"&");this.shortViewCount=n.short_view_count_text||void 0;this.Y=r7(n);this.title=n.title||"";this.videoId=n.docid||n.video_id||n.videoId||n.id||void 0;this.watchUrl=n.watchUrl||void 0}}; fvg=function(l){var n,O,L=(n=l.getWatchNextResponse())==null?void 0:(O=n.contents)==null?void 0:O.twoColumnWatchNextResults,X,F,x,Z,J;l=(X=l.getWatchNextResponse())==null?void 0:(F=X.playerOverlays)==null?void 0:(x=F.playerOverlayRenderer)==null?void 0:(Z=x.endScreen)==null?void 0:(J=Z.watchNextEndScreenRenderer)==null?void 0:J.results;if(!l){var w,H;l=L==null?void 0:(w=L.endScreen)==null?void 0:(H=w.endScreen)==null?void 0:H.results}return l}; g.qW=function(l){var n,O,L;l=g.z((n=l.getWatchNextResponse())==null?void 0:(O=n.playerOverlays)==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,DY);return g.z(l==null?void 0:l.playerBar,Kg9)}; ave=function(l){this.S=l.playback_progress_0s_url;this.N=l.playback_progress_2s_url;this.W=l.playback_progress_10s_url}; Ruv=function(){if(kP===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(n){}a:{try{var l=!!self.localStorage}catch(n){l=!1}if(l&&(l=g.V8(g.Rt()+"::yt-player"))){kP=new z7(l);break a}kP=void 0}}return kP}; g.yJ=function(){var l=Ruv();if(!l)return{};try{var n=l.get("yt-player-lv");return JSON.parse(n||"{}")}catch(O){return{}}}; g.C$i=function(l){var n=Ruv();n&&(l=JSON.stringify(l),n.set("yt-player-lv",l))}; g.MW=function(l){return g.yJ()[l]||0}; g.QJ=function(l,n){var O=g.yJ();n!==O[l]&&(n!==0?O[l]=n:delete O[l],g.C$i(O))}; g.eb=function(l){return g.Y(function(n){return n.return(g.sy(tPq(),l))})}; jb=function(l,n,O,L,X,F,x,Z){var J,w,H,A,b,r;return g.Y(function(U){switch(U.S){case 1:return J=g.MW(l),J===4?U.return(4):g.Q(U,g.lI(),2);case 2:w=U.W;if(!w)throw g.N3("wiac");if(!Z||x===void 0){U.D2(3);break}return g.Q(U,v49(Z,x),4);case 4:x=U.W;case 3:return H=O.lastModified||"0",g.Q(U,g.eb(w),5);case 5:return A=U.W,g.We(U,6),YP++,g.Q(U,g.Gz(A,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",aO:!0},function(W){if(F!==void 0&&x!==void 0){var N=""+l+"|"+n.id+"|"+H+"|"+String(F).padStart(10, "0");N=g.mI(W.objectStore("media"),x,N)}else N=g.q3.resolve(void 0);var q=lc9(l,n.RR()),y=lc9(l,!n.RR()),e={fmts:n2i(L),format:O||{}};q=g.mI(W.objectStore("index"),e,q);var d=L.downloadedEndTime===-1;e=d?W.objectStore("index").get(y):g.q3.resolve(void 0);var B={fmts:"music",format:{}};W=d&&X&&!n.RR()?g.mI(W.objectStore("index"),B,y):g.q3.resolve(void 0);return g.q3.all([W,e,N,q]).then(function(R){R=g.P(R);R.next();R=R.next().value;YP--;var a=g.MW(l);if(a!==4&&d&&X||R!==void 0&&g.O69(R.fmts))a=1,g.QJ(l, a);return a})}),8); case 8:return U.return(U.W);case 6:b=g.D5(U);YP--;r=g.MW(l);if(r===4)return U.return(r);g.QJ(l,4);throw b;}})}; g.g25=function(l){var n,O;return g.Y(function(L){if(L.S==1)return g.Q(L,g.lI(),2);if(L.S!=3){n=L.W;if(!n)throw g.N3("ri");return g.Q(L,g.eb(n),3)}O=L.W;return L.return(g.Gz(O,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(X){var F=IDBKeyRange.bound(l+"|",l+"~");return X.objectStore("index").getAll(F).then(function(x){return x.map(function(Z){return Z?Z.format:{}})})}))})}; Xig=function(l,n,O,L,X){var F,x,Z;return g.Y(function(J){if(J.S==1)return g.Q(J,g.lI(),2);if(J.S!=3){F=J.W;if(!F)throw g.N3("rc");return g.Q(J,g.eb(F),3)}x=J.W;Z=g.Gz(x,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(w){var H=""+l+"|"+n+"|"+O+"|"+String(L).padStart(10,"0");return w.objectStore("media").get(H)}); return X?J.return(Z.then(function(w){if(w===void 0)throw Error("No data from indexDb");return LKq(X,w)}).catch(function(w){throw new g.at("Error while reading chunk: "+w.name+", "+w.message); })):J.return(Z)})}; g.O69=function(l){return l?l==="music"?!0:l.includes("dlt=-1")||!l.includes("dlt="):!1}; lc9=function(l,n){return""+l+"|"+(n?"v":"a")}; n2i=function(l){var n={};return gc((n.dlt=l.downloadedEndTime.toString(),n.mket=l.maxKnownEndTime.toString(),n.avbr=l.averageByteRate.toString(),n))}; FK8=function(l){var n={},O={};l=g.P(l);for(var L=l.next();!L.done;L=l.next()){var X=L.value,F=X.split("|");X.match(g.o25)?(L=Number(F.pop()),isNaN(L)?O[X]="?":(F=F.join("|"),(X=n[F])?(F=X[X.length-1],L===F.end+1?F.end=L:X.push({start:L,end:L})):n[F]=[{start:L,end:L}])):O[X]="?"}l=g.P(Object.keys(n));for(L=l.next();!L.done;L=l.next())L=L.value,O[L]=n[L].map(function(x){return x.start+"-"+x.end}).join(","); return O}; G8=function(l){g.hj.call(this);this.S=null;this.N=new ix;this.S=null;this.V=new Set;this.crossOrigin=l||""}; x08=function(l,n,O){for(O=m7(l,O);O>=0;){var L=l.levels[O];if(L.isLoaded(I4(L,n))&&(L=g.d7(L,n)))return L;O--}return g.d7(l.levels[0],n)}; Z65=function(l,n,O){O=m7(l,O);for(var L,X;O>=0;O--)if(L=l.levels[O],X=I4(L,n),!L.isLoaded(X)){L=l;var F=O,x=F+"-"+X;L.V.has(x)||(L.V.add(x),L.N.enqueue(F,{v9:F,IV:X}))}hB0(l)}; hB0=function(l){if(!l.S&&!l.N.isEmpty()){var n=l.N.remove();l.S=Jl8(l,n)}}; Jl8=function(l,n){var O=document.createElement("img");l.crossOrigin&&(O.crossOrigin=l.crossOrigin);O.src=l.levels[n.v9].Ae(n.IV);O.onload=function(){var L=n.v9,X=n.IV;l.S!==null&&(l.S.onload=null,l.S=null);L=l.levels[L];L.loaded.add(X);hB0(l);var F=L.columns*L.rows;X*=F;L=Math.min(X+F-1,L.EQ()-1);X=[X,L];l.publish("l",X[0],X[1])}; return O}; g.$P=function(l,n,O,L){this.level=l;this.L=n;this.loaded=new Set;this.level=l;this.L=n;l=O.split("#");this.width=Math.floor(Number(l[0]));this.height=Math.floor(Number(l[1]));this.frameCount=Math.floor(Number(l[2]));this.columns=Math.floor(Number(l[3]));this.rows=Math.floor(Number(l[4]));this.S=Math.floor(Number(l[5]));this.N=l[6];this.signature=l[7];this.videoLength=L}; I4=function(l,n){return Math.floor(n/(l.columns*l.rows))}; g.d7=function(l,n){n>=l.rg()&&l.Km();var O=I4(l,n),L=l.columns*l.rows,X=n%L;n=X%l.columns;X=Math.floor(X/l.columns);var F=l.Km()+1-L*O;if(F<l.columns){var x=F;L=1}else x=l.columns,L=F<L?Math.ceil(F/l.columns):l.rows;return{url:l.Ae(O),column:n,columns:x,row:X,rows:L,vB:l.width*x,rN:l.height*L}}; VJ=function(l,n,O,L,X){L=L===void 0?!1:L;X=X===void 0?!1:X;G8.call(this,O);this.isLive=L;this.T=!!X;this.levels=this.W(l,n);this.L=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; wii=function(l,n,O){return(l=l.levels[n])?l.sJ(O):-1}; m7=function(l,n){var O=l.L.get(n);if(O)return O;O=l.levels.length;for(var L=0;L<O;L++)if(l.levels[L].width>=n)return l.L.set(n,L),L;l.L.set(n,O-1);return O-1}; By=function(l,n,O,L){O=O.split("#");O=[O[1],O[2],0,O[3],O[4],-1,O[0],""].join("#");g.$P.call(this,l,n,O,0);this.W=null;this.B=L?2:0}; cy=function(l,n,O,L){VJ.call(this,l,0,void 0,n,!(L===void 0||!L));for(l=0;l<this.levels.length;l++)this.levels[l].El(O)}; H6v=function(l,n,O){n={cpn:n};l.indexOf("/ibw/")===-1&&(n.ibw=O?String(O):"1369843");return{url:g.pr(l,n),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; g.z8=function(l,n){g.hj.call(this);var O=this;this.rq=l;this.adaptiveFormats="";this.o3=this.wp=this.adQueryId=this.qA=null;this.vU={start:NaN,end:NaN};this.cueRanges=this.UK=null;this.hg=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Qh=void 0;this.oh=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.G3="";this.TI=!1;this.Zl=null;this.D9=this.S5=this.Xj=!1;this.L=null;this.Fu=this.uc=!1;this.cQ= NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.n3=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.pI=0;this.s8=!1;this.Ch=this.cycToken=null;this.author="";this.Zb=!1;this.Pm=0;this.Q8=!1;this.Z8=null;this.wY=[];this.fI=this.qj=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.JA=this.At="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds= this.endSeconds=this.K5=0;this.CZ=this.nf=this.W=null;this.Pt="";this.loading=!1;this.z$=this.R4=0;this.zF=this.pipable=this.rk=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.M3=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Of=this.isPrivate=this.isListed=this.mW=this.q_=!1;this.zt="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.im=this.z3=this.aI=!1;this.latencyClass="UNKNOWN";this.XN= this.lk=this.SK=this.Eg=this.Xa=this.enablePreroll=this.g1=this.enableServerStitchedDai=this.dB=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.hC=0;this.reloadReason="";this.g$=this.Ol=this.UU=!1;this.keywords={};this.oO="";this.jI=0;this.iO=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Wp=null;this.mB=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.FN=this.paygated=!1;this.KL= [];this.eF=!1;this.Lf=[];this.iJ=null;this.rG=this.racyCheckOk=!1;this.eB={};this.isProximaLatencyEligible=!1;this.HI=0;this.N=null;this.autonavState=1;this.Gu=null;this.shortDescription="";this.Q5=this.Jj=!1;this.oA=this.n5=this.startSeconds=0;this.sE=this.Pv=this.v0=iQ;this.ai=this.suggestions=null;this.Lg=this.zI=void 0;this.isExternallyHostedPodcast=!1;this.mD=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Al=void 0;this.uv=[];this.YW=[];this.hlsFormats=this.kY= "";this.Ow=this.TW=this.xa=this.d8=this.Yo=this.fX=this.Xk=null;this.dH="vvt";this.Ip=!1;this.iY=null;this.F8="";this.Fj=NaN;this.xb=this.y6=this.aP=this.Xl=this.eS=this.Vr=this.Vz=this.Ph=this.yS=this.Fl="";this.mN=null;this.l6=!1;this.T={};this.clipStart=0;this.clipEnd=Infinity;this.Pq=!1;this.heartbeatToken="";this.jy=this.U$=NaN;this.Y4=this.AL=this.ea=this.H3=this.p9=!1;this.o_=!0;this.Y={};this.captionTracks=[];this.mx=[];this.YD=0;this.D5=[];this.F_=[];this.yh=!1;this.V2={};this.S0=new g.nn("und", new g.FD("Default","und",!0));this.Jo=0;this.B=null;this.wr=[];this.yd=!1;this.oi=this.Wk="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.wq=this.w$=this.GU=this.playerResponse=this.P7=this.jA=this.LT=this.yb=this.Ak=this.dY=this.Nj=null;this.pg=!1;this.Wm=null;this.isInlinePlaybackNoAd=this.hZ=this.T5=this.useCobaltWidevine=this.FF=this.m8=!1;this.AB=!0;this.OU=this.X$=NaN;this.defraggedFromSubfragments=this.DA=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN; this.sabrContextUpdates=new Map;this.w9="";this.jj=!1;this.gatewayExperimentGroup="";this.xg=this.Fp=this.Oc=!1;this.interstitials=[];this.hh=this.tW=!1;this.YG="";this.allowImaMonetization=!1;this.WN="";this.rY=!1;this.RP="";this.T9=[];this.Tt=[];this.WS="";this.E6=this.G=this.B3=!1;this.Cz="";this.CX=this.aZ=this.Up=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.mS=!1;this.rA=this.lf=!0;this.errorDetail=this.userGenderAge=""; this.BU=this.gY=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.y8=this.errorReason=this.errorCode=null;this.UE=this.P0="";this.rH=!1;this.rp=[];this.q5=this.Hm=this.Sz=this.HT=this.Jt=0;this.fetchType=null;this.Q3=!0;this.transitionEndpointAtEndOfStream=void 0;this.Q2=this.eL=-1;this.dA=this.Zx=!1;this.j7=null;this.Fi="";this.DJ=!1;this.watchUrl=null;this.Zy=[];this.visibleOnLoadKeys=[];this.OQ= [];this.inlineMetricEnabled=this.Nm=!1;this.embedsRctn=this.embedsRct="";this.mH=NaN;this.oM=(0,g.Q_)();this.Ri=this.D7=0;this.Th=null;this.j3=0;this.LZ=this.aY=!1;this.Xg=this.rq.experiments.MQ("html5_use_triple_equals");this.OJ=!1;this.bN=g.HQ(this.rq.experiments,"html5_gapless_loop_seek_offset_in_milli");this.eH=0;this.Op={};this.DQ={setData:function(L){O.setData(L)}, Sw:function(){O.Sw()}}; this.Zx=this.J("web_new_autonav_countdown");this.dA=this.J("web_new_big_thumbnail_endscreen");this.setData(n);this.jS=new Zu;g.c(this,this.jS)}; g.s7=function(l,n,O){n&&n.cpn&&g.d2(new g.at("CPN provided in VideoData update",{y5f:n.cpn,uU:l.clientPlaybackNonce,Wcq:O}));O?(hB(n),l.setData(n),Sb(l)&&l.Sw()):(n=n||{},Ale(l,n),py(l,n),b6e(l,n),l.publish("dataupdated"))}; b6e=function(l,n){l.fflags=F1(l.fflags,n.fflags);var O=n.iv_invideo_url;O&&(l.G3=go(O));l.TI=Li(l.TI,n.iv_ads_only);if(O=n.cta_conversion_urls)l.Oz=O;l.isPharma=Li(l.isPharma,n.is_pharma);l.author=F1(l.author,n.author);l.At=rli(n.ttsurl)||l.At;l.Q8=Li(l.Q8,n.cc_asr);l.JA=F1(l.JA,n.channel_path);if(O=n.profile_picture)l.profilePicture=F1(l.profilePicture,O);l.videoCountText=F1(l.videoCountText,n.video_count_text);l.autonavState=X1(l.autonavState,n.autonav_state,U0e);if(l.J("html5_enable_ssap_entity_id")){var L; O=!!n.cotn||!((L=l.playerResponse)==null||!L.cotn);L=g.HQ(l.rq.experiments,"html5_entity_id_simplified_preferred_record_size");l.playerResponse&&!O&&(l.clientPlaybackNonce=u60(l,l.playerResponse,L)||l.clientPlaybackNonce);l.clientPlaybackNonce||(n.cpn&&l.Gp("ssei","uhdc"),l.clientPlaybackNonce=F1(l.clientPlaybackNonce,n.cpn))}else l.clientPlaybackNonce=F1(l.clientPlaybackNonce,n.cpn);l.subscribed=Li(l.subscribed,n.subscribed);l.rawViewCount=ot(l.rawViewCount,n.view_count);l.shortViewCount=F1(l.shortViewCount, n.short_view_count_text);l.publishedTimeText=F1(l.publishedTimeText||"",n.publishedTimeText);l.lengthText=F1(l.lengthText||"",n.lengthText);l.ub=F1(l.ub||"",n.ub);l.ek=F1(l.ek||"",n.ek);l.title=F1(l.title,n.title);l.subtitle=F1(l.subtitle,n.subtitle);l.expandedTitle=F1(l.expandedTitle,n.expanded_title);l.expandedSubtitle=F1(l.expandedSubtitle,n.expanded_subtitle);l.ypcPreview=F1(l.ypcPreview,n.ypc_preview);l.Fa=F1(l.Fa,n.ypc_origin);l.Ip=Li(l.Ip,n.ypc_is_premiere_trailer);l.Cz=F1(l.Cz,n.ypc_clickwrap_message); l.paygated=Li(l.paygated,n.paygated);l.l6=Li(l.l6,n.requires_purchase);l.showShareButton=!Li(!l.showShareButton,n.ss);l.lf=Li(l.lf,n.showwatchlater);l.rA=Li(l.rA,n.shownotifybutton);l.mS=Li(l.mS,n.copy_share);if(L=n.el)l.eventLabel=L;if(L=n.keywords)l.keywords=P60(L.split(","));if(L=n.rvs)l.suggestions=XX(L).map(function(X){return X.playlist||X.list||X.api?new g.E7(l.rq,X):new g.NW(l.rq,X)}); l.contentCheckOk=Li(l.contentCheckOk,n.cco);l.racyCheckOk=Li(l.racyCheckOk,n.rco);l.isLivingRoomDeeplink=Li(l.isLivingRoomDeeplink,n.is_living_room_deeplink);l.oauthToken=F1(l.oauthToken,n.oauth_token);l.oO=F1(l.oO,n.kpt);l.visitorData=F1(l.visitorData,n.visitor_data);if(L=n.session_data)l.sessionData=O0(L,"&");l.GI=F1(l.GI,n.endscreen_ad_tracking_data);l.yc=Li(l.yc,n.wait_for_vast_info_cards_xml);l.Lh=Li(l.Lh,n.suppress_creator_endscreen);l.kB=Li(l.kB,n.is_trueview_action);l.tj=F1(l.tj,n.tracking_list); l.P0=F1(l.P0,n.clip);l.UE=F1(l.UE,n.clipt);Tm9(l,n)}; u60=function(l,n,O){var L,X=(L=n.cpnInfo)==null?void 0:L.cpn;l.playerResponseCpn=X!=null?X:"";g.fy(l)&&!X&&l.Gp("ssei","eim_"+l.clientPlaybackNonce);var F;return((F=n.cacheMetadata)==null?0:F.isCacheHit)||l.fI||!X?"":(Ky.has(X)?O="":(n=WKi.push(X),Ky.add(X),n>(O!=null?O:50)&&(O=WKi.shift())&&Ky.delete(O),O=X),X!==O&&l.Gp("ssei","dcpn_"+X+"_"+O+"_"+l.clientPlaybackNonce),O)}; py=function(l,n){var O=n.raw_watch_next_response;if(!O){var L=n.watch_next_response;L&&(O=JSON.parse(L))}if(O){l.wq=O;var X=l.wq.playerCueRangeSet;X&&g.a4(l,X);var F=l.wq.playerOverlays;if(F){var x=F.playerOverlayRenderer;if(x){var Z=x.autonavToggle;Z&&(l.autoplaySwitchButtonRenderer=g.z(Z,E2q),l.J("web_player_autonav_use_server_provided_state")&&R4(l)&&(l.autonavState=l.autoplaySwitchButtonRenderer.enabled?2:1));var J=x.videoDetails;if(J){var w=J.embeddedPlayerOverlayVideoDetailsRenderer;var H=J.playerOverlayVideoDetailsRenderer; H&&(H.title&&(n.title=g.Uw(H.title)),H.subtitle&&(n.subtitle=g.Uw(H.subtitle)))}g.GH(l.rq)&&(l.lf=!!x.addToMenu);Nmv(l,x.shareButton);x.startPosition&&x.endPosition&&(l.progressBarStartPosition=x.startPosition,l.progressBarEndPosition=x.endPosition);var A=x.gatedActionsOverlayRenderer;A&&(l.MU=g.z(A,D09));var b,r,U,W=g.z((b=l.getWatchNextResponse())==null?void 0:(r=b.playerOverlays)==null?void 0:(U=r.playerOverlayRenderer)==null?void 0:U.infoPanel,qcq);if(W){l.mH=Number(W==null?void 0:W.durationMs)|| NaN;if(W==null?0:W.infoPanelOverviewViewModel)l.IA=W==null?void 0:W.infoPanelOverviewViewModel;if(W==null?0:W.infoPanelDetailsViewModel)l.Rh=W==null?void 0:W.infoPanelDetailsViewModel}l.showSeekingControls=!!x.showSeekingControls}}var N,q,y=(N=l.getWatchNextResponse())==null?void 0:(q=N.contents)==null?void 0:q.twoColumnWatchNextResults;if(y){var e=y.desktopOverlay&&g.z(y.desktopOverlay,kbv);e&&(e.suppressShareButton&&(l.showShareButton=!1),e.suppressWatchLaterButton&&(l.lf=!1))}w&&ylg(l,n,w);var d= ot(0,n.autoplay_count),B=l.getWatchNextResponse(),R,a=(R=B.contents)==null?void 0:R.twoColumnWatchNextResults,Lv,Fa,l9,S=(Lv=B.playerOverlays)==null?void 0:(Fa=Lv.playerOverlayRenderer)==null?void 0:(l9=Fa.autoplay)==null?void 0:l9.playerOverlayAutoplayRenderer,v=fvg(l),T,p=(T=B.contents)==null?void 0:T.singleColumnWatchNextResults;if(p){var ce;if(((ce=p.autoplay)==null?0:ce.autoplay)&&!p.playlist){var WR=p.autoplay.autoplay.sets,HR={},y5=new g.NW(l.j()),Cv=null,gD;if(WR){for(var rD=g.P(WR),D=rD.next();!D.done;D= rD.next()){var k=D.value.autoplayVideoRenderer;if(k&&k.compactVideoRenderer){Cv=k.compactVideoRenderer;break}}if(gD=WR[0].autoplayVideo){var M=gD.clickTrackingParams;M&&(HR.itct=M);HR.autonav="1";HR.playnext=String(d)}}else HR.feature="related-auto";var G=g.z(gD,g.Cy);if(Cv){y5.videoId=Cv.videoId;var I=Cv.shortBylineText;I&&(y5.author=g.Uw(I));var nv=Cv.title;nv&&(y5.title=g.Uw(nv))}else G!=null&&G.videoId&&(y5.videoId=G.videoId);y5.zV=HR;l.suggestions=[];l.ai=y5}}if(v){for(var Xa=[],o8=g.P(v),m= o8.next();!m.done;m=o8.next()){var Jg=m.value,r9=void 0,hg=null;if(Jg.endScreenVideoRenderer){var Yi=Jg.endScreenVideoRenderer,A0=Yi.title;hg=new g.NW(l.j());hg.videoId=Yi.videoId;hg.lengthSeconds=Yi.lengthInSeconds||0;var Vs=Yi.publishedTimeText;Vs&&(hg.publishedTimeText=g.Uw(Vs));var Hd=Yi.shortBylineText;Hd&&(hg.author=g.Uw(Hd));var pv=Yi.shortViewCountText;pv&&(hg.shortViewCount=g.Uw(pv));if(A0){hg.title=g.Uw(A0);var Bd=A0.accessibility;if(Bd){var ZN=Bd.accessibilityData;ZN&&ZN.label&&(hg.ariaLabel= ZN.label)}}var jo=Yi.navigationEndpoint;if(jo){r9=jo.clickTrackingParams;var sd=g.z(jo,g.Cy),JR=g.z(jo,g.$R);sd?hg.EF=sd:JR!=null&&(hg.watchUrl=JR.url)}var Sw=Yi.thumbnailOverlays;if(Sw)for(var cd=g.P(Sw),pf=cd.next();!pf.done;pf=cd.next()){var WE=pf.value.thumbnailOverlayTimeStatusRenderer;if(WE)if(WE.style==="LIVE"){hg.isLivePlayback=!0;break}else if(WE.style==="UPCOMING"){hg.isUpcoming=!0;break}}hg.Y=U7(Yi.thumbnail)}else if(Jg.endScreenPlaylistRenderer){var we=Jg.endScreenPlaylistRenderer,Ge= we.navigationEndpoint;if(!Ge)continue;var Ah=g.z(Ge,g.Cy);if(!Ah)continue;var mY=Ah.videoId;hg=new g.E7(l.j());hg.playlistId=we.playlistId;hg.playlistLength=Number(we.videoCount)||0;hg.S=mY||null;hg.videoId=mY;var IO=we.title;IO&&(hg.title=g.Uw(IO));var dM=we.shortBylineText;dM&&(hg.author=g.Uw(dM));r9=Ge.clickTrackingParams;hg.Y=U7(we.thumbnail)}hg&&(r9&&(hg.sessionData={itct:r9}),Xa.push(hg))}l.suggestions=Xa}if(S){l.Q3=!!S.preferImmediateRedirect;l.Zx=l.Zx||!!S.webShowNewAutonavCountdown;l.dA= l.dA||!!S.webShowBigThumbnailEndscreen;if(l.Zx||l.dA){var yh=a||null,vd=new g.NW(l.j());vd.videoId=S.videoId;var sN=S.videoTitle;if(sN){vd.title=g.Uw(sN);var gQ=sN.accessibility;if(gQ){var qC=gQ.accessibilityData;qC&&qC.label&&(vd.ariaLabel=qC.label)}}var ie=S.byline;ie&&(vd.author=g.Uw(ie));var Am=S.publishedTimeText;Am&&(vd.publishedTimeText=g.Uw(Am));var Tq=S.shortViewCountText;Tq&&(vd.shortViewCount=g.Uw(Tq));var W6=S.thumbnailOverlays;if(W6)for(var Ev=g.P(W6),Fn=Ev.next();!Fn.done;Fn=Ev.next()){var hS= Fn.value.thumbnailOverlayTimeStatusRenderer;if(hS)if(hS.style==="LIVE"){vd.isLivePlayback=!0;break}else if(hS.style==="UPCOMING"){vd.isUpcoming=!0;break}else if(hS.style==="DEFAULT"&&hS.text){vd.lengthText=g.Uw(hS.text);var x5=hS.text.accessibility;if(x5){var he=x5.accessibilityData;he&&he.label&&(vd.ub=he.label||"")}break}}vd.Y=U7(S.background);var NB=S.nextButton;if(NB){var DA=NB.buttonRenderer;if(DA){var qB=DA.navigationEndpoint;if(qB){var kG=g.z(qB,g.Cy);kG&&(vd.EF=kG)}}}if(S.topBadges){var yl= S.topBadges[0];if(yl){var MB=g.z(yl,MQi);MB&&MB.style==="BADGE_STYLE_TYPE_PREMIUM"&&(vd.chG=!0)}}var Gy=S.alternativeTitle;Gy&&(vd.ek=g.Uw(Gy));var kK={autonav:"1",playnext:String(d)};vd.playlistId&&(kK.autoplay="1");if(yh){var mN,fJ,Z3,Ql,Je=(mN=yh.autoplay)==null?void 0:(fJ=mN.autoplay)==null?void 0:(Z3=fJ.sets)==null?void 0:(Ql=Z3[0])==null?void 0:Ql.autoplayVideo;if(Je){var eC=Je.clickTrackingParams;eC&&(kK.itct=eC);var w1=g.z(Je,g.Cy);w1&&(vd.Gu=w1)}}else if(S){var YG,jC,Gq,mh=(YG=S.nextButton)== null?void 0:(jC=YG.buttonRenderer)==null?void 0:(Gq=jC.navigationEndpoint)==null?void 0:Gq.clickTrackingParams;mh&&(kK.itct=mh)}kK.itct||(kK.feature="related-auto");vd.zV=kK;l.suggestions||(l.suggestions=[]);l.ai=vd}S.countDownSecs!=null&&(l.eL=S.countDownSecs*1E3);S.countDownSecsForFullscreen!=null&&(l.Q2=S.countDownSecsForFullscreen>=0?S.countDownSecsForFullscreen*1E3:-1);l.J("web_autonav_color_transition")&&S.watchToWatchTransitionRenderer&&(l.watchToWatchTransitionRenderer=g.z(S.watchToWatchTransitionRenderer, Qpq))}var Hn=fvg(l);if(Hn){var W2,I1,Ae,bD=Hn==null?void 0:(W2=Hn[0])==null?void 0:(I1=W2.endScreenVideoRenderer)==null?void 0:(Ae=I1.navigationEndpoint)==null?void 0:Ae.clickTrackingParams,dv=g.t2(l);bD&&dv&&(dv.sessionData={itct:bD})}l.wq.currentVideoThumbnail&&(l.Y=U7(l.wq.currentVideoThumbnail));var IY,$G,Vl,di,B6,Ex=(IY=l.wq)==null?void 0:($G=IY.contents)==null?void 0:(Vl=$G.twoColumnWatchNextResults)==null?void 0:(di=Vl.results)==null?void 0:(B6=di.results)==null?void 0:B6.contents;if(Ex&&Ex[1]){var c6, it,MC,EK,$U=(c6=Ex[1].videoSecondaryInfoRenderer)==null?void 0:(it=c6.owner)==null?void 0:(MC=it.videoOwnerRenderer)==null?void 0:(EK=MC.thumbnail)==null?void 0:EK.thumbnails;$U&&$U.length&&(l.profilePicture=$U[$U.length-1].url)}var zq=hB(n),r1,Nz=(r1=l.getWatchNextResponse())==null?void 0:r1.onResponseReceivedEndpoints;if(Nz)for(var Dg=g.P(Nz),Ug=Dg.next();!Ug.done;Ug=Dg.next()){var VR=Ug.value;g.z(VR,vy)&&(l.SB=g.z(VR,vy));var qz=g.z(VR,eBv),SC=void 0;if((SC=qz)==null?0:SC.entityKeys)l.Zy=qz.entityKeys|| [],qz.visibleOnLoadKeys&&(l.visibleOnLoadKeys=qz.visibleOnLoadKeys)}if(l.J("web_key_moments_markers")){var VZ=g.lT.getState().entities,JS=g.h9("visibility_override","markersVisibilityOverrideEntity");var z_=J9(VZ,"markersVisibilityOverrideEntity",JS);l.uv=(z_==null?void 0:z_.videoId)===(l.videoId||zq)&&(z_==null?0:z_.visibilityOverrideMarkersKey)?z_.visibilityOverrideMarkersKey:l.visibleOnLoadKeys;l.visibleOnLoadKeys=[].concat(g.E(l.uv))}}}; R4=function(l){var n;return((n=l.autoplaySwitchButtonRenderer)==null?void 0:n.enabled)!==void 0}; nN=function(l){return!!(l.N&&l.N.videoInfos&&l.N.videoInfos.length)}; g.oY=function(l){var n=l.G;l.J("html5_gapless_unlimit_format_selection")&&O9(l)&&(n=!1);var O=!!l.S&&l.S.tA,L=l.rq,X=l.pR(),F=gi(l),x=l.Fp,Z=n,J=l.isOtf();n=l.rU();var w=l.Of,H=l.getUserAudio51Preference(),A=LN(l),b=new L6f(L);if(L.AA()||L.J("html5_logging_format_selection"))b.W=!0;b.Pm=F;b.Fp=x&&L.T;b.z3=H;g.S_("windows nt 5.1")&&!g.Bz&&(b.hL=!0);if(F=X)F=g.vI(L)?Lgi(L):!1;F&&(b.NQ=!0);Z&&(b.hL=!0,b.hC=!0);J&&!L.J("html5_otf_prefer_vp9")&&(b.hL=!0);L.playerStyle==="picasaweb"&&(J&&(b.hL=!1),b.Q5= !1);w&&(b.hL=!0);PW(L.B,TP.CHANNELS)&&(L.J("html5_enable_ac3")&&(b.L=!0),L.J("html5_enable_eac3")&&(b.B=!0),L.J("html5_enable_ac3_gapless")&&(b.Hm=!0));L.J("html5_block_8k_hfr")&&(b.nf=!0);b.V=g.HQ(L.experiments,"html5_max_selectable_quality_ordinal");b.T=g.HQ(L.experiments,"html5_min_selectable_quality_ordinal");lO&&(b.Sz=480);if(O||X)b.Q5=!1;b.Of=!1;b.disableAv1=A;O=em(L,b.S,void 0,b.disableAv1);O>0&&O<2160&&(ut()||L.J("html5_format_hybridization"))&&(b.S.supportsChangeType=+ut(),b.zx=O);O>=2160&& (b.Cf=!0);Yua()&&(b.S.serveVp9OverAv1IfHigherRes=0,b.q5=!1);b.rU=n;b.Fi=g.RZ||Oh()&&!n?!1:!0;b.G=L.J("html5_format_hybridization");b.oO=L.J("html5_disable_encrypted_vp9_live_non_2k_4k");XZ(l)&&(b.Wk=l.J("html5_prefer_language_over_codec"));fh()&&l.playerResponse&&l.playerResponse.playerConfig&&l.playerResponse.playerConfig.webPlayerConfig&&l.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(b.L=!0,b.B=!0);l.G&&l.isAd()&&(l.zI&&(b.Wm=l.zI),l.Lg&&(b.N=l.Lg));b.wq=l.isLivePlayback&& l.Vb()&&l.rq.J("html5_drm_live_audio_51");b.uv=l.T5;return l.j7=b}; LN=function(l){return l.rq.J("html5_disable_av1")||l.J("html5_gapless_shorts_disable_av1")&&O9(l)?!0:!1}; Yc5=function(l){iD("drm_pb_s",void 0,l.Fi);l.nf||l.S&&AF(l.S);var n={};l.S&&(n=ST9(l.jS,g.oY(l),l.rq.B,l.S,function(O){return l.publish("ctmp","fmtflt",O)},!0,new Set)); n=new sk(n,l.rq,l.FF,l.useCobaltWidevine?fh()?FZ(l):!1:!1,function(O,L){l.Sp(O,L)}); g.c(l,n);l.AL=!1;l.loading=!0;bXv(n,function(O){iD("drm_pb_f",void 0,l.Fi);for(var L=g.P(O),X=L.next();!X.done;X=L.next())switch(X=X.value,X.flavor){case "fairplay":X.nf=l.nf;X.OE=l.OE;X.Kg=l.Kg;break;case "widevine":X.CZ=l.CZ}l.wr=O;if(l.wr.length>0&&(l.B=l.wr[0],l.rq.AA())){O={};L=g.P(Object.entries(l.B.S));for(X=L.next();!X.done;X=L.next()){var F=g.P(X.value);X=F.next().value;F=F.next().value;var x="unk";(X=X.match(/(.*)codecs="(.*)"/))&&(x=X[2]);O[x]=F}l.Sp("drmProbe",O)}l.Sw()})}; jpg=function(l,n){if(n.length===0||xZ(l))return null;hZ(l,"html5_enable_cobalt_experimental_vp9_decoder")&&(yY=!0);var O=l.UK;var L=l.lengthSeconds,X=l.isLivePlayback,F=l.aI,x=l.rq,Z=zXa(n);if(X||F){x=x.experiments;L=new wC("",x,!0);L.W=!F;L.tA=!0;L.isManifestless=!0;L.isLive=!F;L.aI=F;n=g.P(n);for(X=n.next();!X.done;X=n.next()){var J=X.value;X=bM(J,O);Z=yT(J);Z=Uk(Z.x8||J.url||"",Z.lq,Z.s);var w=Z.get("id");w&&w.includes("%7E")&&(L.Y=!0);var H=void 0;w=(H=x)==null?void 0:H.MQ("html5_max_known_end_time_rebase"); H=Number(J.targetDurationSec||5);J=Number(J.maxDvrDurationSec||14400);var A=Number(Z.get("mindsq")||Z.get("min_sq")||"0"),b=Number(Z.get("maxdsq")||Z.get("max_sq")||"0")||Infinity;L.Jt=L.Jt||A;L.HT=L.HT||b;var r=!L5(X.mimeType);Z&&ha(L,new Rf(Z,X,{uV:H,z6:r,yz:J,Jt:A,HT:b,Uo:300,aI:F,Bq:w}))}O=L}else if(Z==="FORMAT_STREAM_TYPE_OTF"){L=L===void 0?0:L;F=new wC("",x.experiments,!1);F.duration=L||0;x=g.P(n);for(L=x.next();!L.done;L=x.next())L=L.value,n=bM(L,O,F.duration),X=yT(L),(X=Uk(X.x8||L.url||"", X.lq,X.s))&&(n.streamType==="FORMAT_STREAM_TYPE_OTF"?ha(F,new Cd(X,n,"sq/0")):ha(F,new oS(X,n,Q4(L.initRange),Q4(L.indexRange))));F.isOtf=!0;O=F}else{L=L===void 0?0:L;F=new wC("",x.experiments,!1);F.duration=L||0;x=g.P(n);for(L=x.next();!L.done;L=x.next())Z=L.value,L=bM(Z,O,F.duration),n=Q4(Z.initRange),X=Q4(Z.indexRange),w=yT(Z),(Z=Uk(w.x8||Z.url||"",w.lq,w.s))&&ha(F,new oS(Z,L,n,X));O=F}F=l.isLivePlayback&&!l.aI&&!l.z3&&!l.isPremiere;l.J("html5_live_head_playable")&&(!Zf(l)&&F&&l.Sp("missingLiveHeadPlayable", {}),l.rq.Wm==="yt"&&(O.Pm=!0));return O}; xZ=function(l){return fh()?!FZ(l):aT()?!(!l.nf||!l.J("html5_enable_safari_fairplay")&&nw()):!1}; FZ=function(l){return l.J("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.a4=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next())if(O=O.value,O.cueRangeSetIdentifier){var L=void 0;l.hg.set(O.cueRangeSetIdentifier,(L=O.playerCueRanges)!=null?L:[])}}; JZ=function(l){return!(!l.S||!l.S.isManifestless)}; wi=function(l){return l.Xg?l.isLowLatencyLiveStream&&l.S!=null&&Wz(l.S)>=5:l.isLowLatencyLiveStream&&l.S!=void 0&&Wz(l.S)>=5}; Gbg=function(l){return fh()&&FZ(l)?!1:xZ(l)&&(g.qp(l.rq)?!l.isLivePlayback:l.hlsvp)||!nw()||l.qj?!0:!1}; d0k=function(l){l.loading=!0;l.ea=!1;if(m0f(l))g.g25(l.videoId).then(function(L){Icg(l,L)}).then(function(){l.Sw()}); else{n$(l.M5)||g.d2(new g.at("DASH MPD Origin invalid: ",l.M5));var n=l.M5,O=g.HQ(l.rq.experiments,"dash_manifest_version")||4;n=g.pr(n,{mpd_version:O});l.isLowLatencyLiveStream&&l.latencyClass!=="NORMAL"||(n=g.pr(n,{pacing:0}));Ct5(n,l.rq.experiments,l.isLivePlayback).then(function(L){l.JG()||(Hf(l,L,!0),iD("mrc",void 0,l.Fi),l.Sw())},function(L){l.JG()||(l.loading=!1,l.publish("dataloaderror",new Ml("manifest.net.retryexhausted",{backend:"manifest", rc:L.status},1)))}); iD("mrs",void 0,l.Fi)}}; Icg=function(l,n){var O=n.map(function(J){return J.itag}),L; if((L=l.playerResponse)!=null&&L.streamingData){L=[];if(l.J("html5_offline_always_use_local_formats")){O=0;for(var X=g.P(n),F=X.next();!F.done;F=X.next()){F=F.value;var x=Object.assign({},F);x.signatureCipher="";L.push(x);x=g.P(l.playerResponse.streamingData.adaptiveFormats);for(var Z=x.next();!Z.done;Z=x.next())if(Z=Z.value,F.itag===Z.itag&&F.xtags===Z.xtags){O+=1;break}}O<n.length&&l.Sp("offnpf",{prlen:O,lflen:n.length})}else for(X=g.P(l.playerResponse.streamingData.adaptiveFormats),x=X.next(), F={};!x.done;F={sX:void 0},x=X.next())if(F.sX=x.value,l.J("html5_fix_multi_audio_offline_playback"))for(x=g.P(n),Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.itag===F.sX.itag&&Z.xtags===F.sX.xtags&&(F.sX=Object.assign({},F.sX),F.sX.url=n.find(function(J){return function(w){return w.itag===J.sX.itag}}(F)).url,F.sX.signatureCipher="",L.push(F.sX)); else O.includes(F.sX.itag)&&(F.sX=Object.assign({},F.sX),F.sX.url=n.find(function(J){return function(w){return w.itag===J.sX.itag}}(F)).url,F.sX.signatureCipher="",L.push(F.sX)); L.length<2&&l.Sp("offmlf",{len:L.length});n=jpg(l,L);gi(l)&&nX8(n,!1);Hf(l,n);l.Sp("dlr",{})}else l.Sp("offsdm",{cotn:l.w$?l.w$.cotn:"0",cpn:l.clientPlaybackNonce})}; $0k=function(l){var n;return!((n=l.rq.getWebPlayerContextConfig())==null||!n.enableProximaLowLatency)}; AZ=function(l){if(!l.isProximaLatencyEligible)return 0;var n=Ve();return $0k(l)?2:n===1?1:l.J("html5_enable_proxima")?2:0}; Hf=function(l,n,O){O=O===void 0?!1:O;l.X_=void 0;l.S=n;g.c(l,n);n.Jt=l.Jt;n.HT=l.HT;n.Hm=l.Hm;n.Sz=l.Sz;n.q5=l.q5;l.Z$&&(n.G=new P_(l.Z$));(l.pR()||g.bT(l))&&l.Lf.push("webgl");l.S.isLive||(l.isLivePlayback=!1);var L=n.sourceUrl.split("/");if(l.Xg?L.indexOf("manifest_duration")!==-1:L.indexOf("manifest_duration")!=-1)l.Wp=Number(L[L.indexOf("manifest_duration")+1]);if(n.W||n.isManifestless)n.subscribe("clienttemp",l.Sp,l),O?n.subscribe("refresh",l.du,l):n.subscribe("cuepointsadded",l.vE,l);AF(n)? l.AL=!0:KG=void 0;l.z3&&(n.L=l.z3,n.isLive=!0,l.isLivePlayback=!0);n.isPremiere=l.isPremiere;n.isLiveHeadPlayable=l.isLiveHeadPlayable}; Bm5=function(l,n){var O=n||Gbg(l)||l.isExternallyHostedPodcast;if(!l.S||O)return l.Sp("skipDash",{dm:!!l.S,air:n,dd:l.qj,mss:nw(),"3pp":l.isExternallyHostedPodcast}),Gj();gi(l)&&nX8(l.S,l.isLivePlayback);hZ(l,"html5_enable_cobalt_experimental_vp9_decoder")&&Yz7(l.rq.B);return mA().then(function(){return s_i(l.jS,g.oY(l),l.rq.B,l.S,l.B,function(L){return l.publish("ctmp","fmtflt",L)},l.Tt,XZ(l)&&l.J("html5_enable_server_format_filter")).then(function(L){VQe(l,L); l.jS.S=null;/^av/.test(l.clientPlaybackNonce)&&l.j7&&l.Sp("av1",l.j7.S)})})}; cl5=function(l,n){if(n&&l.hlsvp)return Gj();if(l.hlsFormats){n=ri(l.hlsFormats);var O;if(((O=l.j7)==null?0:O.W)&&n){O=[];for(var L=g.P(n),X=L.next();!X.done;X=L.next())O.push(X.value.itag);l.Sp("hlsfmt",{itags:O.join(".")})}l.Xk=u9q(l.rq,n);O=l.clientPlaybackNonce;var F,x,Z,J;return NR5(l.rq,l.isAd(),n,(J=(F=l.playerResponse)==null?void 0:(x=F.captions)==null?void 0:(Z=x.playerCaptionsRenderer)==null?void 0:Z.baseUrl)!=null?J:null,l.z$,O,function(w){return l.publish("ctmp","hlsflt",w)}).then(function(w){for(var H= 0,A=[],b=g.P(w),r=b.next();!r.done;r=b.next()){r=r.value; var U=void 0;A.push((U=r.getInfo())==null?void 0:U.itag);var W=U=void 0;((U=r.getInfo())==null?void 0:(W=U.audio)==null?void 0:W.numChannels)>H&&(H=r.getInfo().audio.numChannels)}H>2&&l.Sp("hlschl",{mn:H});var N;((N=l.j7)==null?0:N.W)&&l.Sp("hlsfmtaf",{itags:A.join(".")});var q;if(l.J("html5_enable_vp9_fairplay")&&((q=l.B)==null?0:$Y(q)))for(l.Sp("drm",{sbdlfbk:1}),H=g.P(l.wr),A=H.next();!A.done;A=H.next())if(A=A.value,dC(A)){l.B=A;break}U9(l,w)})}return Gj()}; i6a=function(l){if(l.isExternallyHostedPodcast&&l.kY){var n=ri(l.kY);if(!n[0])return Gj();l.Vv=n[0];return kdq(l.rq,n[0]).then(function(O){U9(l,O)})}return l.mD&&l.Ol?qZv(l.rq,l.isAd(),l.mD).then(function(O){U9(l,O)}):Gj()}; Scv=function(l){if(l.isExternallyHostedPodcast)return Gj();var n=ri(l.kY,l.Pt);if(l.hlsvp){var O=H6v(l.hlsvp,l.clientPlaybackNonce,l.z$);n.push(O)}return Da9(l.rq,l.isAd(),n,zBv(l)).then(function(L){U9(l,L)})}; VQe=function(l,n){l.N=n;if(l.N){n=g.P(l.N.videoInfos);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=O.containerType;L!==0&&(l.V2[L]=O.id)}}uT(l);if(l.B&&l.N&&l.N.videoInfos&&!(l.N.videoInfos.length<=0)&&(n=lt(l.N.videoInfos[0]),l.B.flavor==="fairplay"!==n))for(O=g.P(l.wr),L=O.next();!L.done;L=O.next())if(L=L.value,n===(L.flavor==="fairplay")){l.B=L;break}}; U9=function(l,n){l.d8=n;VQe(l,new hF(g.M9(l.d8,function(O){return O.getInfo()})))}; zBv=function(l){var n={cpn:l.clientPlaybackNonce,c:l.rq.S.c,cver:l.rq.S.cver};l.eA&&(n.ptk=l.eA,n.oid=l.sM,n.ptchn=l.N8,n.pltype=l.vN,l.Ii&&(n.m=l.Ii));return n}; g.Pf=function(l){return xZ(l)&&l.nf?(l={},l.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",l):l.W&&l.W.UK||null}; pie=function(l){var n=Ty(l);return n&&n.text?g.Uw(n.text):l.paidContentOverlayText}; spq=function(l){var n=Ty(l);return n&&n.durationMs?nJ(n.durationMs):l.paidContentOverlayDurationMs}; Ty=function(l){var n,O,L;return l.playerResponse&&l.playerResponse.paidContentOverlay&&l.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.z((n=l.wq)==null?void 0:(O=n.playerOverlays)==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.playerDisclosure,fcv)||null}; Wf=function(l){var n="";if(l.zt)return l.zt;l.isLivePlayback&&(n=l.allowLiveDvr?"dvr":l.isPremiere?"lp":l.z3?"window":"live");l.aI&&(n="post");return n}; g.E9=function(l,n){return typeof l.keywords[n]!=="string"?null:l.keywords[n]}; KKv=function(l){return!!l.AP||!!l.yD||!!l.pV||!!l.Cm||l.FN||l.T.focEnabled||l.T.rmktEnabled}; g.Nk=function(l){return!!(l.M5||l.kY||l.mD||l.hlsvp||l.iT())}; Sb=function(l){if(l.J("html5_onesie")&&l.errorCode)return!1;var n=g.CO(l.Lf,"ypc");l.ypcPreview&&(n=!1);return l.MP()&&!l.loading&&(g.Nk(l)||g.CO(l.Lf,"heartbeat")||n)}; ri=function(l,n){l=XX(l);var O={};if(n){n=g.P(n.split(","));for(var L=n.next();!L.done;L=n.next())(L=L.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(O[L[1]]={width:L[2],height:L[3]})}n=g.P(l);for(L=n.next();!L.done;L=n.next()){L=L.value;var X=O[L.itag];X&&(L.width=X.width,L.height=X.height)}return l}; uT=function(l){var n=l.getAvailableAudioTracks();n=n.concat(l.S0);for(var O=0;O<l.mx.length;O++)for(var L=l.mx[O],X=0;X<n.length;X++){var F=n[X],x=F.O_.id===L.audioTrackId;if(F.O_.isDefault&&O===l.YD||x){if(L.captionTrackIndices)for(x=0;x<L.captionTrackIndices.length;x++)F.captionTracks[x]=l.captionTracks[L.captionTrackIndices[x]];L.defaultCaptionTrackIndex!==void 0&&(F.N=l.captionTracks[L.defaultCaptionTrackIndex]);L.forcedCaptionTrackIndex!==void 0&&(F.S=l.captionTracks[L.forcedCaptionTrackIndex]); F.W=L.visibility||"UNKNOWN";F.captionsInitialState=L.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}; Nmv=function(l,n){l.showShareButton=!!n;var O,L,X=((O=g.z(n,g.dm))==null?void 0:O.navigationEndpoint)||((L=g.z(n,g.dm))==null?void 0:L.command);X&&(l.mS=!!g.z(X,ac8))}; Ale=function(l,n){var O=n.raw_embedded_player_response;if(!O){var L=n.embedded_player_response;L&&(O=JSON.parse(L))}O&&(l.yb=O);if(l.yb){l.embeddedPlayerConfig=l.yb.embeddedPlayerConfig||null;if(O=l.yb.videoFlags)O.playableInEmbed&&(l.allowEmbed=!0),O.isPrivate&&(l.isPrivate=!0),O.userDisplayName&&(n.user_display_name=O.userDisplayName),O.userDisplayImage&&(n.user_display_image=O.userDisplayImage);if(O=l.yb.embedPreview){O=O.thumbnailPreviewRenderer;si9(l,O.controlBgHtml);if(L=O.defaultThumbnail)l.Y= U7(L);l.J("embeds_web_enable_search_button")&&O.searchButton&&(L=g.z(O.searchButton,g.dm))&&(l.Ln=g.z(L.navigationEndpoint,g.Df));(L=g.z(O==null?void 0:O.videoDetails,RBk))&&ylg(l,n,L);L=g.z(O==null?void 0:O.videoDetails,C6q);l.lf=!!O.addToWatchLaterButton;Nmv(l,O.shareButton);if(L==null?0:L.musicVideoType)l.musicVideoType=L.musicVideoType;var X,F,x,Z,J;if(L=g.z((X=l.getEmbeddedPlayerResponse())==null?void 0:(F=X.embedPreview)==null?void 0:(x=F.thumbnailPreviewRenderer)==null?void 0:(Z=x.playButton)== null?void 0:(J=Z.buttonRenderer)==null?void 0:J.navigationEndpoint,g.Cy))eui(l,L),l.videoId=L.videoId||l.videoId;O.videoDurationSeconds&&(l.lengthSeconds=nJ(O.videoDurationSeconds));O.webPlayerActionsPorting&&p0k(l,O.webPlayerActionsPorting);if(X=g.z(O==null?void 0:O.playlist,tQg)){l.eF=!0;F=[];x=Number(X.currentIndex);if(X.contents)for(Z=0,J=X.contents.length;Z<J;Z++)if(O=X.contents[Z].playlistPanelVideoRenderer){L=O.shortBylineText?g.Uw(O.shortBylineText):"";var w=O.title?g.Uw(O.title):"";F.push({author:L, encrypted_id:O.videoId,title:w,channel_path:Z===x?n.channel_path:"",profile_picture:Z===x?n.profile_picture:"",is_private:Z===x?l.isPrivate:!0,is_dni:Z===x?l.hh:!1,dni_color:Z===x?l.YG:""})}n={index:X.currentIndex,list:X.playlistId,playlist_length:X.totalVideos,video:F};X.titleText&&(n.title=g.Uw(X.titleText));X.shortBylineText&&(n.author=g.Uw(X.shortBylineText));l.P7=n}var H,A,b;if(n=g.z((H=l.getEmbeddedPlayerResponse())==null?void 0:(A=H.embedPreview)==null?void 0:(b=A.thumbnailPreviewRenderer)== null?void 0:b.infoPanel,qcq)){l.mH=Number(n==null?void 0:n.durationMs)||NaN;if(n==null?0:n.infoPanelOverviewViewModel)l.IA=n==null?void 0:n.infoPanelOverviewViewModel;if(n==null?0:n.infoPanelDetailsViewModel)l.Rh=n==null?void 0:n.infoPanelDetailsViewModel}}if(l.yb.previewPlayabilityStatus){if(l.jA=l.yb.previewPlayabilityStatus,H=l.jA,!["OK","LIVE_STREAM_OFFLINE"].includes(H.status)){l.errorCode=MPi(H.errorCode);A=H.errorScreen;if(b=A==null?void 0:A.playerErrorMessageRenderer){l.PU=b;if(n=b.reason)l.errorReason= g.Uw(n);if(b=b.subreason)l.y8=g.Uw(b)}else l.errorReason=H.reason||null;switch(H.status){case "LOGIN_REQUIRED":l.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":l.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var r;(A==null?0:(r=A.playerKavRenderer)==null?0:r.kavUrl)?l.errorDetail="4":l.errorDetail="3";break;default:l.errorDetail=H.isBlockedInRestrictedMode?"5":"0"}}}else l.yb.playabilityStatus&&(l.LT=l.yb.playabilityStatus,v28(l)&&(l.errorDetail="0",l.LT&&((r=l.LT.embeddedPlayerErrorMessageRenderer)? l.PU=g.z(r,lja):l.errorReason=l.LT.reason||null)));(r=l.yb.attestation)&&BR7(l,r);(r=l.yb.permissions)&&r.allowImaMonetization&&(l.allowImaMonetization=!0)}}; ylg=function(l,n,O){var L=O.channelThumbnail;L&&(L=L.thumbnails)&&(L=L[0])&&(n.profile_picture=L.url);var X;if(L=g.z((X=g.z(O==null?void 0:O.channelThumbnailEndpoint,nF0))==null?void 0:X.urlEndpoint,g.$R))n.channel_path=L.url;if(X=O.collapsedRenderer)if(X=g.z(X,OWv)){if(L=X.title)n.title=g.Uw(L);if(X=X.subtitle)n.subtitle=g.Uw(X)}if(O=O.expandedRenderer)if(O=g.z(O,gF5)){if(X=O.title)n.expanded_title=g.Uw(X);if(X=O.subtitle)n.expanded_subtitle=g.Uw(X);if(O=O.subscribeButton)l.subscribeButtonRenderer= g.z(O,g.qk),l.subscribeButtonRenderer&&(n.ucid=l.subscribeButtonRenderer.channelId,n.subscribed=l.subscribeButtonRenderer.subscribed,l.rA=!!l.subscribeButtonRenderer.notificationPreferenceToggleButton,l.subscribeButtonRenderer.notificationPreferenceToggleButton&&l.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(n=l.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,n.isToggled?(l.gY=n.toggledServiceEndpoint||null,l.BU=n.defaultServiceEndpoint|| null):(l.gY=n.defaultServiceEndpoint||null,l.BU=n.toggledServiceEndpoint||null)))}}; g.kZ=function(l){return Zf(l)&&!l.allowLiveDvr}; yZ=function(l){return Zf(l)&&l.allowLiveDvr}; Zf=function(l){return l.J("html5_live_head_playable")&&JZ(l)&&l.rq.Wm==="yt"?l.isLiveHeadPlayable:l.isLivePlayback}; g.Mk=function(l){return!!l.S&&Gqf(l.S)}; g.QZ=function(l){return!!l.S&&mBk(l.S)}; g.e4=function(l){return!!l.S&&IAa(l.S)}; g.bT=function(l){return!!l.S&&dBa(l.S)}; g.LU9=function(l){if(l.Lh)return null;var n=l.Zl;n||(n=l.playerResponse&&l.playerResponse.endscreen&&l.playerResponse.endscreen.endscreenUrlRenderer&&l.playerResponse.endscreen.endscreenUrlRenderer.url);return n||null}; g.XPg=function(l){return l.Lh?null:l.playerResponse&&l.playerResponse.endscreen&&l.playerResponse.endscreen.endscreenRenderer||null}; g.YZ=function(l){return l.J("enable_wn_infocards")}; g.j4=function(l){var n,O,L,X;return(g.YZ(l)?(n=l.wq)==null?void 0:(O=n.cards)==null?void 0:O.cardCollectionRenderer:(L=l.playerResponse)==null?void 0:(X=L.cards)==null?void 0:X.cardCollectionRenderer)||null}; g.$Z=function(l){if(!l.playerResponse||!l.playerResponse.annotations)return null;l=g.P(l.playerResponse.annotations);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.playerAnnotationsExpandedRenderer&&n.playerAnnotationsExpandedRenderer.featuredChannel)return n.playerAnnotationsExpandedRenderer;return null}; Bf=function(l){return l.adFormat&&(l.Xg?l.adFormat!=="1_5":l.adFormat!="1_5")?"adunit":l.eventLabel||l.rq.Cf}; g.cf=function(l){return Bf(l)==="shortspage"}; O9=function(l){return l.UX()&&l.j().supportsGaplessShorts()}; iT=function(l){if(l.isAd()&&(l.Xg?l.videoId!==l.rq.K5:l.videoId!=l.rq.K5))return l.rq.K5}; zy=function(l){return l.M3||Bf(l)==="detailpage"||Bf(l)==="shortspage"||l.mutedAutoplay}; S4=function(l){var n=(n=l.J("enable_cleanup_masthead_autoplay_hack_fix"))&&Bf(l)==="adunit"?l.rk:zy(l)?Bf(l)==="detailpage"||Bf(l)==="shortspage"?l.isAutonav||l.hC>0:n||l.adFormat!=="17_8"||l.isAutonav||g.Cw(l.rq)||l.rk?l.q_?!1:l.rq.kY||l.rq.Oc||!g.yG(l.rq)?!n&&Bf(l)==="adunit"&&l.AP?!1:!0:!1:!1:(l.q_?0:l.UU)&&g.yG(l.rq)?!0:!1;l.J("html5_log_detailpage_autoplay")&&Bf(l)==="detailpage"&&l.Sp("autoplay_info",{autoplay:l.M3,autonav:l.isAutonav,wasDompaused:l.q_,result:n});return n}; g.pN=function(l){return l.oauthToken||l.rq.AP}; FU5=function(l){if(l.J("html5_stateful_audio_normalization")){var n=1,O=g.HQ(l.rq.experiments,"html5_default_ad_gain");O&&l.isAd()&&(n=O);var L;if(O=((L=l.L)==null?void 0:L.audio.W)||l.n3){L=(0,g.Q_)();l.pI=2;var X=L-l.rq.oh<=l.maxStatefulTimeThresholdSec*1E3;l.applyStatefulNormalization&&X?l.pI=4:X||(l.rq.S0=Infinity,l.rq.oh=NaN);X=(l.pI===4?g.hR(l.rq.S0,l.minimumLoudnessTargetLkfs,l.loudnessTargetLkfs):l.loudnessTargetLkfs)-O;if(l.pI!==4){var F,x,Z,J,w=((F=l.playerResponse)==null?void 0:(x=F.playerConfig)== null?void 0:(Z=x.audioConfig)==null?void 0:(J=Z.loudnessNormalizationConfig)==null?void 0:J.statelessLoudnessAdjustmentGain)||0;X+=w}X=Math.min(X,0);l.preserveStatefulLoudnessTarget&&(l.rq.S0=O+X,l.rq.oh=L);l=Math.min(1,Math.pow(10,X/20))||n}else l=oFe(l)}else l=oFe(l);return l}; oFe=function(l){var n=1,O=g.HQ(l.rq.experiments,"html5_default_ad_gain");O&&l.isAd()&&(n=O);var L;if(O=((L=l.L)==null?void 0:L.audio.N)||l.cQ)l.pI=1;return Math.min(1,Math.pow(10,-O/20))||n}; gi=function(l){var n=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],O=RS(l.rq)==="TVHTML5_SIMPLY"&&l.rq.S.ctheme==="MUSIC";l.Oc||!g.Bt(l.rq)&&!O||!n.includes(l.musicVideoType)&&!l.isExternallyHostedPodcast||(l.Oc=!0);if(n=g.s0())n=/Starboard\/([0-9]+)/.exec(g.e6()),n=(n?parseInt(n[1],10):NaN)<10;O=l.rq;O=(RS(O)==="TVHTML5_CAST"||RS(O)==="TVHTML5"&&(O.S.cver.startsWith("6.20130725")||O.S.cver.startsWith("6.20130726")))&&l.rq.S.ctheme==="MUSIC";var L;if(L=!l.Oc)O||(O=l.rq,O=RS(O)=== "TVHTML5"&&O.S.cver.startsWith("7")),L=O;L&&!n&&(n=l.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",O=(l.J("cast_prefer_audio_only_for_atv_and_uploads")||l.J("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&l.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",n||O||l.isExternallyHostedPodcast)&&(l.Oc=!0);return l.rq.deviceIsAudioOnly||l.Oc&&l.rq.T}; g.xda=function(l){var n;if(!(n=l.J("html5_enable_sabr_live_captions")&&l.tA()&&XZ(l))){var O,L,X;n=((O=l.playerResponse)==null?void 0:(L=O.playerConfig)==null?void 0:(X=L.compositeVideoConfig)==null?void 0:X.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return n}; s9=function(l){var n,O,L;return!!((n=l.playerResponse)==null?0:(O=n.playerConfig)==null?0:(L=O.mediaCommonConfig)==null?0:L.splitScreenEligible)}; fN=function(l){var n;return!((n=l.playerResponse)==null||!n.compositePlayabilityStatus)}; hA7=function(l){return isNaN(l)?0:Math.max((Date.now()-l)/1E3-30,0)}; KN=function(l){return!(!l.rH||!l.rq.T)&&l.iT()}; aY=function(l){return l.enablePreroll&&l.enableServerStitchedDai}; ZW0=function(l){return l.LZ&&!l.Z$}; XZ=function(l){var n=l.J("html5_enable_sabr_on_drive")&&l.rq.Wm==="gd";if(l.XN)return l.LZ&&l.Sp("fds",{fds:!0},!0),!1;if(l.rq.Wm!=="yt"&&!n)return l.LZ&&l.Sp("dsvn",{ns:l.rq.Wm},!0),!1;if(l.cotn||!l.S||l.S.isOtf||l.g1&&!l.J("html5_enable_sabr_csdai"))return!1;if(l.J("html5_use_sabr_requests_for_debugging"))return!0;if(l.LZ&&l.Z$)return l.Sp("esfw",{usbc:l.LZ,hsu:!!l.Z$},!0),!0;if(l.J("html5_remove_client_sabr_determination"))return!1;var O=!l.S.tA&&!l.Vb();n=O&&CG&&l.J("html5_enable_sabr_vod_streaming_xhr"); O=O&&!CG&&l.J("html5_enable_sabr_vod_non_streaming_xhr");var L=RY(l),X=l.J("html5_enable_sabr_drm_vod_streaming_xhr")&&CG&&l.Vb()&&!l.S.tA&&(l.oh==="1"?!1:!0);(n=n||O||L||X)&&!l.Z$&&l.Sp("sabr",{loc:"m"},!0);return n&&!!l.Z$}; RY=function(l){var n;if(!(n=CG&&l.tA()&&l.Vb()&&(l.oh==="1"?!1:!0)&&l.J("html5_sabr_live_drm_streaming_xhr"))){n=l.tA()&&!l.Vb()&&CG;var O=l.tA()&&l.latencyClass!=="ULTRALOW"&&!l.isLowLatencyLiveStream&&l.J("html5_sabr_live_normal_latency_streaming_xhr"),L=l.isLowLatencyLiveStream&&l.J("html5_sabr_live_low_latency_streaming_xhr"),X=l.latencyClass==="ULTRALOW"&&l.J("html5_sabr_live_ultra_low_latency_streaming_xhr");n=n&&(O||L||X)}O=n;n=l.enableServerStitchedDai&&O&&l.J("html5_enable_sabr_ssdai_streaming_xhr"); O=!l.enableServerStitchedDai&&O;L=l.tA()&&!CG&&l.J("html5_enable_sabr_live_non_streaming_xhr");l=CG&&(l.iK()||s9(l)&&l.J("html5_enable_sabr_for_lifa_eligible_streams"));return n||O||L||l}; g.fy=function(l){return l.jj&&XZ(l)}; m0f=function(l){var n;if(n=!!l.cotn)n=l.videoId,n=!!n&&g.MW(n)===1;return n&&!l.rH}; g.CN=function(l){if(!l.S||!l.W||!l.L)return!1;var n=l.S.S,O=!!n[l.W.id]&&Du(n[l.W.id].Vp.S);n=!!n[l.L.id]&&Du(n[l.L.id].Vp.S);return(l.W.itag==="0"||O)&&n}; tZ=function(l){return l.jA?["OK","LIVE_STREAM_OFFLINE"].includes(l.jA.status):!0}; v28=function(l){return(l=l.LT)&&l.showError?l.showError:!1}; hZ=function(l,n){return l.J(n)?!0:(l.fflags||"").includes(n+"=true")}; Jie=function(l){return l.J("html5_heartbeat_iff_heartbeat_params_filled")}; Tm9=function(l,n){n.inlineMetricEnabled&&(l.inlineMetricEnabled=!0);n.playback_progress_0s_url&&(l.Cm=new ave(n));if(n=n.video_masthead_ad_quartile_urls)l.yD=n.quartile_0_url,l.Lt=n.quartile_25_url,l.Ct=n.quartile_50_url,l.V3=n.quartile_75_url,l.rO=n.quartile_100_url,l.pV=n.quartile_0_urls,l.uY=n.quartile_25_urls,l.WU=n.quartile_50_urls,l.s6=n.quartile_75_urls,l.Yp=n.quartile_100_urls}; P60=function(l){var n={};l=g.P(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;var L=O.split("=");L.length===2?n[L[0]]=L[1]:n[O]=!0}return n}; rli=function(l){if(l){if(OI5(l))return l;l=gRk(l);if(OI5(l,!0))return l}return""}; g.wP5=function(l){return l.captionsLanguagePreference||l.rq.captionsLanguagePreference||g.E9(l,"yt:cc_default_lang")||l.rq.Fp}; vf=function(l){return!(!l.isLivePlayback||!l.hasProgressBarBoundaries())}; g.t2=function(l){var n;return l.ai||((n=l.suggestions)==null?void 0:n[0])||null}; g.l4=function(l){return l.hh&&(l.J("embeds_enable_pfp_always_unbranded")||l.rq.Op)}; nF=function(l,n){l.J("html5_log_autoplay_src")&&O9(l)&&l.Sp("apsrc",{src:n})}; g.OY=function(l){var n,O;return!!((n=l.embeddedPlayerConfig)==null?0:(O=n.embeddedPlayerFlags)==null?0:O.enableMusicUx)}; g.LF=function(l){var n=l.j(),O=g.gj(n),L=n.nf;(n.J("embeds_web_enable_iframe_api_send_full_embed_url")||n.J("embeds_web_enable_rcat_validation_in_havs")||n.J("embeds_enable_autoplay_and_visibility_signals"))&&g.GH(n)&&(L&&(O.thirdParty=Object.assign({},O.thirdParty,{embedUrl:L})),mp5(O,l));if(L=l.Cf)O.clickTracking={clickTrackingParams:L};L=O.client||{};var X="EMBED",F=Bf(l);F==="leanback"?X="WATCH":n.J("gvi_channel_client_screen")&&F==="profilepage"?X="CHANNEL":l.Of?X="LIVE_MONITOR":F==="detailpage"? X="WATCH_FULL_SCREEN":F==="adunit"?X="ADUNIT":F==="sponsorshipsoffer"&&(X="UNKNOWN");L.clientScreen=X;if(n=l.kidsAppInfo)L.kidsAppInfo=JSON.parse(n);(X=l.jI)&&!n&&(L.kidsAppInfo={contentSettings:{ageUpMode:HWv[X]}});if(n=l.iO)L.unpluggedAppInfo={enableFilterMode:!0};(X=l.unpluggedFilterModeType)&&!n&&(L.unpluggedAppInfo={filterModeType:Ai9[X]});if(n=l.Wm)L.unpluggedLocationInfo=n;O.client=L;L=O.request||{};l.Y4&&(L.isPrefetch=!0);if(n=l.mdxEnvironment)L.mdxEnvironment=n;if(n=l.mdxControlMode)L.mdxControlMode= bWe[n];O.request=L;L=O.user||{};if(n=l.NQ)L.credentialTransferTokens=[{token:n,scope:"VIDEO"}];if(n=l.oO)L.delegatePurchases={oauthToken:n},L.kidsParent={oauthToken:n};O.user=L;if(L=l.contextParams)O.activePlayers=[{playerContextParams:L}];if(l=l.clientScreenNonce)O.clientScreenNonce=l;return O}; g.gj=function(l){var n=g.vt(),O=n.client||{};if(l.forcedExperiments){var L=l.forcedExperiments.split(","),X=[];L=g.P(L);for(var F=L.next();!F.done;F=L.next())X.push(Number(F.value));O.experimentIds=X}if(X=l.homeGroupInfo)O.homeGroupInfo=JSON.parse(X);if(X=l.getPlayerType())O.playerType=X;if(X=l.S.ctheme)O.theme=X;if(X=l.livingRoomAppMode)O.tvAppInfo=Object.assign({},O.tvAppInfo,{livingRoomAppMode:X});X=l.deviceYear;l.J("html5_propagate_device_year")&&X&&(O.tvAppInfo=Object.assign({},O.tvAppInfo,{deviceYear:X})); if(X=l.livingRoomPoTokenId)O.tvAppInfo=Object.assign({},O.tvAppInfo,{livingRoomPoTokenId:X});n.client=O;O=n.user||{};l.enableSafetyMode&&(O=Object.assign({},O,{enableSafetyMode:!0}));l.pageId&&(O=Object.assign({},O,{onBehalfOfUser:l.pageId}));n.user=O;O=l.nf;l.J("embeds_web_enable_iframe_api_send_full_embed_url")||l.J("embeds_web_enable_rcat_validation_in_havs")||l.J("embeds_enable_autoplay_and_visibility_signals")||!O||(n.thirdParty={embedUrl:O});return n}; WUe=function(l,n,O){var L=l.videoId,X=g.LF(l),F=l.j(),x={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(MU()),referer:document.location.toString(),signatureTimestamp:20143};g.zK();l.isAutonav&&(x.autonav=!0);g.SU(0,141)&&(x.autonavState=g.SU(0,140)?"STATE_OFF":"STATE_ON");x.autoCaptionsDefaultOn=g.SU(0,66);S4(l)&&(x.autoplay=!0);F.T&&l.cycToken&&(x.cycToken=l.cycToken);F.enablePrivacyFilter&&(x.enablePrivacyFilter=!0);l.isFling&&(x.fling=!0);var Z=l.forceAdsUrl;if(Z){var J={},w=[];Z=Z.split(","); Z=g.P(Z);for(var H=Z.next();!H.done;H=Z.next()){H=H.value;var A=H.split("|");A.length!==3||H.includes("=")||(A[0]="breaktype="+A[0],A[1]="offset="+A[1],A[2]="url="+A[2]);H={adtype:"video_ad"};A=g.P(A);for(var b=A.next();!b.done;b=A.next()){var r=g.P(b.value.split("="));b=r.next().value;r=Xe5(r);H[b]=r.join("=")}A=H.url;b=H.presetad;r=H.viralresponseurl;var U=Number(H.campaignid);if(H.adtype==="in_display_ad")A&&(J.url=A),b&&(J.presetAd=b),r&&(J.viralAdResponseUrl=r),U&&(J.viralCampaignId=String(U)); else if(H.adtype==="video_ad"){var W={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(H.offset)||0)}};if(H=rik[H.breaktype])W.breakType=H;A&&(W.url=A);b&&(W.presetAd=b);r&&(W.viralAdResponseUrl=r);U&&(W.viralCampaignId=String(U));w.push(W)}}x.forceAdParameters={videoAds:w,inDisplayAd:J}}l.isInlinePlaybackNoAd&&(x.isInlinePlaybackNoAd=!0);l.isLivingRoomDeeplink&&(x.isLivingRoomDeeplink=!0);J=l.EH;if(J!=null){J={startWalltime:String(J)};if(w=l.Wp)J.manifestDuration=String(w||14400);x.liveContext= J}if(l.mutedAutoplay){x.mutedAutoplay=!0;J=F.getWebPlayerContextConfig();var N,q;(J==null?0:(N=J.embedsHostFlags)==null?0:N.allowMutedAutoplayDurationMode)&&(J==null?0:(q=J.embedsHostFlags)==null?0:q.allowMutedAutoplayDurationMode.includes(Ud8[l.mutedAutoplayDurationMode]))&&(x.mutedAutoplayDurationMode=Ud8[l.mutedAutoplayDurationMode])}if(l.q_?0:l.UU)x.splay=!0;N=l.vnd;N===5&&(x.vnd=N);N={};if(q=l.isMdxPlayback)N.triggeredByMdx=q;if(q=l.vD)N.skippableAdsSupported=q.split(",").includes("ska");if(w= l.OX){q=l.ow;J=[];w=g.P(I85(w));for(Z=w.next();!Z.done;Z=w.next()){Z=Z.value;H=Z.platform;Z={applicationState:Z.JN?"INACTIVE":"ACTIVE",clientFormFactor:uTg[H]||"UNKNOWN_FORM_FACTOR",clientName:$rf[Z.rh]||"UNKNOWN_INTERFACE",clientVersion:Z.deviceVersion||"",platform:PZa[H]||"UNKNOWN_PLATFORM"};H={};if(q){A=void 0;try{A=JSON.parse(q)}catch(y){g.d2(y)}A&&(H={params:[{key:"ms",value:A.ms}]},A.advertising_id&&(H.advertisingId=A.advertising_id),A.limit_ad_tracking!==void 0&&A.limit_ad_tracking!==null&& (H.limitAdTracking=A.limit_ad_tracking),Z.osName=A.os_name,Z.userAgent=A.user_agent,Z.windowHeightPoints=A.window_height_points,Z.windowWidthPoints=A.window_width_points)}J.push({adSignalsInfo:H,remoteClient:Z})}N.remoteContexts=J}q=l.sourceContainerPlaylistId;J=l.serializedMdxMetadata;if(q||J)w={},q&&(w.mdxPlaybackContainerInfo={sourceContainerPlaylistId:q}),J&&(w.serializedMdxMetadata=J),N.mdxPlaybackSourceContext=w;x.mdxContext=N;N=n.width;N>0&&(x.playerWidthPixels=Math.round(N));if(n=n.height)x.playerHeightPixels= Math.round(n);O!==0&&(x.vis=O);if(O=F.widgetReferrer)x.widgetReferrer=O.substring(0,128);g.yG(F)&&x&&(x.ancestorOrigins=F.ancestorOrigins);l.defaultActiveSourceVideoId&&(x.compositeVideoContext={defaultActiveSourceVideoId:l.defaultActiveSourceVideoId});if(F=F.getWebPlayerContextConfig())x.encryptedHostFlags=F.encryptedHostFlags;L={videoId:L,context:X,playbackContext:{contentPlaybackContext:x}};l.reloadPlaybackParams&&(L.playbackContext.reloadPlaybackContext={reloadPlaybackParams:l.reloadPlaybackParams}); l.contentCheckOk&&(L.contentCheckOk=!0);if(X=l.clientPlaybackNonce)L.cpn=X;if(X=l.playerParams)L.params=X;if(X=l.playlistId)L.playlistId=X;l.racyCheckOk&&(L.racyCheckOk=!0);X=l.j();if(x=X.embedConfig)L.serializedThirdPartyEmbedConfig=x;L.captionParams={};x=g.SU(g.zK(),65);l.deviceCaptionsOn!=null?L.captionParams.deviceCaptionsOn=l.deviceCaptionsOn:g.a5(X)&&(L.captionParams.deviceCaptionsOn=x!=null?!x:!1);l.gM&&(L.captionParams.deviceCaptionsLangPref=l.gM);l.wY.length?L.captionParams.viewerSelectedCaptionLangs= l.wY:g.a5(X)&&(x=g.io(),x==null?0:x.length)&&(L.captionParams.viewerSelectedCaptionLangs=x);x=l.fetchType==="onesie"&&l.J("html5_onesie_attach_po_token");F=l.fetchType!=="onesie"&&l.J("html5_non_onesie_attach_po_token");if(x||F)x=l.j(),x.OU&&(L.serviceIntegrityDimensions={},L.serviceIntegrityDimensions.poToken=x.OU);X.J("fetch_att_independently")&&(L.attestationRequest={omitBotguardData:!0});if(X.J("html5_enable_sabr_from_watch_server")||X.J("html5_create_default_device_playback_capabilities")||X.J("html5_report_supports_vp9_encoding"))L.playbackContext|| (L.playbackContext={}),L.playbackContext.devicePlaybackCapabilities=Tf8(l),L.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&l.Sp("noVp9",{});return L}; Tf8=function(l){var n=!(l==null?0:l.rU())&&(l==null?void 0:l.tA())&&Oh(),O;if(O=l==null?0:l.J("html5_report_supports_vp9_encoding")){if(l==null)O=0;else{O=g.oY(l);l=l.j().B;var L=XE("243");O=L?HW(O,L,l,!0)===!0:!1}O=O&&!n}return{supportsVp9Encoding:!!O,supportXhr:CG}}; Nfg=function(l,n){var O,L,X;return g.Y(function(F){if(F.S==1)return O={context:g.gj(l.j()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:l.videoId,cpn:l.clientPlaybackNonce}}]},L=g.Og(EFk),g.Q(F,g.Cp(n,O,L),2);X=F.W;return F.return(X)})}; Dd0=function(l,n,O){var L=g.HQ(n.experiments,"bg_vm_reinit_threshold");(!G$||(0,g.Q_)()-G$>L)&&Nfg(l,O).then(function(X){X&&(X=X.botguardData)&&g.dB(X,n)},function(X){l.JG()||(X=el(X),l.Sp("attf",X.details))})}; XG=function(l,n){g.V.call(this);this.app=l;this.state=n}; FG=function(l,n,O){l.state.S.hasOwnProperty(n)||oc(l,n,O);l.state.T[n]=function(){return O.apply(l,g.eq.apply(0,arguments))}; l.state.V.add(n)}; xA=function(l,n,O){l.state.S.hasOwnProperty(n)||oc(l,n,O);l.app.j().T&&(l.state.G[n]=function(){return O.apply(l,g.eq.apply(0,arguments))},l.state.V.add(n))}; oc=function(l,n,O){l.state.S[n]=function(){return O.apply(l,g.eq.apply(0,arguments))}}; g.hA=function(l,n,O){return l.state.S[n].apply(l.state.S,g.E(O))}; ZQ=function(){g.Mo.call(this);this.B=new Map}; JA=function(){g.V.apply(this,arguments);this.element=null;this.V=new Set;this.T={};this.G={};this.S={};this.Y=new Set;this.N=new ZQ;this.W=new ZQ;this.L=new ZQ;this.B=new ZQ}; q1q=function(l,n,O){typeof l==="string"&&(l={mediaContentUrl:l,startSeconds:n,suggestedQuality:O});a:{if((n=l.mediaContentUrl)&&(n=/\/([ve]|embed)\/([^#?]+)/.exec(n))&&n[2]){n=n[2];break a}n=null}l.videoId=n;return wj(l)}; wj=function(l,n,O){if(typeof l==="string")return{videoId:l,startSeconds:n,suggestedQuality:O};n={};O=g.P(kJ7);for(var L=O.next();!L.done;L=O.next())L=L.value,l[L]&&(n[L]=l[L]);return n}; yiv=function(l,n,O,L){if(g.Kv(l)&&!Array.isArray(l)){n="playlist list listType index startSeconds suggestedQuality".split(" ");O={};for(L=0;L<n.length;L++){var X=n[L];l[X]&&(O[X]=l[X])}return O}n={index:n,startSeconds:O,suggestedQuality:L};typeof l==="string"&&l.length===16?n.list="PL"+l:n.playlist=l;return n}; HD=function(){XG.apply(this,arguments)}; Q7i=function(l){FG(l,"cueVideoById",l.WL);FG(l,"loadVideoById",l.Zff);FG(l,"cueVideoByUrl",l.vL);FG(l,"loadVideoByUrl",l.upo);FG(l,"playVideo",l.t7J);FG(l,"pauseVideo",l.pauseVideo);FG(l,"stopVideo",l.efG);FG(l,"clearVideo",l.clearVideo);FG(l,"getVideoBytesLoaded",l.Py);FG(l,"getVideoBytesTotal",l.UN);FG(l,"getVideoLoadedFraction",l.A3);FG(l,"getVideoStartBytes",l.p6);FG(l,"cuePlaylist",l.cuePlaylist);FG(l,"loadPlaylist",l.k3q);FG(l,"nextVideo",l.TcG);FG(l,"previousVideo",l.nu2);FG(l,"playVideoAt", l.Tio);FG(l,"setShuffle",l.setShuffle);FG(l,"setLoop",l.setLoop);FG(l,"getPlaylist",l.XR);FG(l,"getPlaylistIndex",l.getPlaylistIndex);FG(l,"getPlaylistId",l.getPlaylistId);FG(l,"loadModule",l.dR);FG(l,"unloadModule",l.sz);FG(l,"setOption",l.Zh);FG(l,"getOption",l.EN);FG(l,"getOptions",l.Gv);FG(l,"mute",l.wj1);FG(l,"unMute",l.UJQ);FG(l,"isMuted",l.isMuted);FG(l,"setVolume",l.bNp);FG(l,"getVolume",l.getVolume);FG(l,"seekTo",l.t1p);FG(l,"getPlayerMode",l.getPlayerMode);FG(l,"getPlayerState",l.ix);FG(l, "getAvailablePlaybackRates",l.getAvailablePlaybackRates);FG(l,"getPlaybackQuality",function(){return l.getPlaybackQuality(1)}); FG(l,"setPlaybackQuality",l.Isq);FG(l,"getAvailableQualityLevels",l.eR);FG(l,"getCurrentTime",l.C6);FG(l,"getDuration",l.Hy);FG(l,"addEventListener",l.LH);FG(l,"removeEventListener",l.NBi);FG(l,"getDebugText",l.By);FG(l,"getVideoData",function(){return M7v(l)}); FG(l,"addCueRange",l.r6);FG(l,"removeCueRange",l.removeCueRange);FG(l,"setSize",l.setSize);FG(l,"getApiInterface",l.getApiInterface);FG(l,"destroy",l.destroy);FG(l,"mutedAutoplay",l.mutedAutoplay);var n=l.app.j();n.V||(FG(l,"getVideoEmbedCode",l.getVideoEmbedCode),FG(l,"getVideoUrl",l.n6));FG(l,"getMediaReferenceTime",l.zP);FG(l,"getSize",l.getSize);FG(l,"setFauxFullscreen",l.Uni);n.J("embeds_enable_move_set_center_crop_to_public")&&FG(l,"setCenterCrop",l.setCenterCrop);n.V||FG(l,"logImaAdEvent", l.logImaAdEvent);FG(l,"preloadVideoById",l.At1);FG(l,"wakeUpControls",l.wakeUpControls)}; g.AA=function(l){return(l=eAe(l.app.dc()))?l.Fx():null}; rj=function(l){var n=g.dn(l.app.j()),O,L=(O=l.app.getVideoData())==null?void 0:O.eF;l=b4(l.app);return g.JB(n)&&!L||l?!1:!0}; M7v=function(l,n){var O={};if(n=l.app.Mv(n===void 0?1:n)){n=n.getVideoData();if(n.isPrivate)return{};O.video_id=n.videoId;O.author=n.author;O.title=n.title;O.isPlayable=tZ(n);O.errorCode=n.errorCode;if(n.W&&n.W.video){O.video_quality=n.W.video.quality;n=n.W.video;var L=[];n.fps>32&&L.push("hfr");n.isHdr()&&L.push("hdr");n.primaries==="bt2020"&&L.push("wcg");O.video_quality_features=L}}if(l=l.getPlaylistId())O.list=l;return O}; UY=function(){HD.apply(this,arguments)}; u4=function(l,n){var O={};if(l.app.j().NQ){l=g.P(Y1q);for(var L=l.next();!L.done;L=l.next())L=L.value,n.hasOwnProperty(L)&&(O[L]=n[L]);if(n=O.qoe_cat)l="",typeof n==="string"&&n.length>0&&(l=n.split(",").filter(function(X){return j75.includes(X)}).join(",")),O.qoe_cat=l; GJ7(O)}else for(l=g.P(mdi),L=l.next();!L.done;L=l.next())L=L.value,n.hasOwnProperty(L)&&(O[L]=n[L]);return O}; GJ7=function(l){var n=l.raw_player_response;if(!n){var O=l.player_response;O&&(n=JSON.parse(O))}delete l.player_response;delete l.raw_player_response;if(n){l.raw_player_response={streamingData:n.streamingData};var L;if((L=n.playbackTracking)==null?0:L.qoeUrl)l.raw_player_response=Object.assign({},l.raw_player_response,{playbackTracking:{qoeUrl:n.playbackTracking.qoeUrl}});var X;if((X=n.videoDetails)==null?0:X.videoId)l.raw_player_response=Object.assign({},l.raw_player_response,{videoDetails:{videoId:n.videoDetails.videoId}})}}; PD=function(l,n,O){var L=l.app.Ko(O);if(!L)return 0;l=L-l.app.getCurrentTime(O);return n-l}; dd0=function(l){var n=n===void 0?5:n;return l?Ijg[l]||n:n}; g.TM=function(){UY.apply(this,arguments)}; $di=function(l){oc(l,"getInternalApiInterface",l.getInternalApiInterface);oc(l,"addEventListener",l.m$);oc(l,"removeEventListener",l.WI1);oc(l,"cueVideoByPlayerVars",l.Nz);oc(l,"loadVideoByPlayerVars",l.YfG);oc(l,"preloadVideoByPlayerVars",l.jAJ);oc(l,"getAdState",l.getAdState);oc(l,"sendAbandonmentPing",l.sendAbandonmentPing);oc(l,"setLoopRange",l.setLoopRange);oc(l,"getLoopRange",l.getLoopRange);oc(l,"setAutonavState",l.setAutonavState);oc(l,"seekTo",l.TBF);oc(l,"seekBy",l.qcp);oc(l,"seekToLiveHead", l.seekToLiveHead);oc(l,"requestSeekToWallTimeSeconds",l.requestSeekToWallTimeSeconds);oc(l,"seekToStreamTime",l.seekToStreamTime);oc(l,"startSeekCsiAction",l.startSeekCsiAction);oc(l,"getStreamTimeOffset",l.getStreamTimeOffset);oc(l,"getVideoData",l.Ax);oc(l,"setInlinePreview",l.setInlinePreview);oc(l,"getAppState",l.getAppState);oc(l,"updateLastActiveTime",l.updateLastActiveTime);oc(l,"setBlackout",l.setBlackout);oc(l,"setUserEngagement",l.setUserEngagement);oc(l,"updateSubtitlesUserSettings",l.updateSubtitlesUserSettings); oc(l,"getPresentingPlayerType",l.pA);oc(l,"canPlayType",l.canPlayType);oc(l,"updatePlaylist",l.updatePlaylist);oc(l,"updateVideoData",l.updateVideoData);oc(l,"updateEnvironmentData",l.updateEnvironmentData);oc(l,"sendVideoStatsEngageEvent",l.yhG);oc(l,"productsInVideoVisibilityUpdated",l.productsInVideoVisibilityUpdated);oc(l,"setSafetyMode",l.setSafetyMode);oc(l,"isAtLiveHead",function(n){return l.isAtLiveHead(void 0,n)}); oc(l,"getVideoAspectRatio",l.getVideoAspectRatio);oc(l,"getPreferredQuality",l.getPreferredQuality);oc(l,"getPlaybackQualityLabel",l.getPlaybackQualityLabel);oc(l,"setPlaybackQualityRange",l.nYz);oc(l,"onAdUxClicked",l.onAdUxClicked);oc(l,"getFeedbackProductData",l.getFeedbackProductData);oc(l,"getStoryboardFrame",l.getStoryboardFrame);oc(l,"getStoryboardFrameIndex",l.getStoryboardFrameIndex);oc(l,"getStoryboardLevel",l.getStoryboardLevel);oc(l,"getNumberOfStoryboardLevels",l.getNumberOfStoryboardLevels); oc(l,"getCaptionWindowContainerId",l.getCaptionWindowContainerId);oc(l,"getAvailableQualityLabels",l.getAvailableQualityLabels);oc(l,"addCueRange",l.addCueRange);oc(l,"addUtcCueRange",l.addUtcCueRange);oc(l,"showAirplayPicker",l.showAirplayPicker);oc(l,"dispatchReduxAction",l.dispatchReduxAction);oc(l,"getPlayerResponse",l.ww);oc(l,"getWatchNextResponse",l.GP);oc(l,"getHeartbeatResponse",l.gw);oc(l,"getCurrentTime",l.DU);oc(l,"getDuration",l.e$);oc(l,"getPlayerState",l.getPlayerState);oc(l,"getPlayerStateObject", l.TP);oc(l,"getVideoLoadedFraction",l.getVideoLoadedFraction);oc(l,"getProgressState",l.getProgressState);oc(l,"getVolume",l.getVolume);oc(l,"setVolume",l.ZK);oc(l,"isMuted",l.isMuted);oc(l,"mute",l.oJ);oc(l,"unMute",l.zA);oc(l,"loadModule",l.loadModule);oc(l,"unloadModule",l.unloadModule);oc(l,"getOption",l.qM);oc(l,"getOptions",l.getOptions);oc(l,"setOption",l.setOption);oc(l,"loadVideoById",l.eg);oc(l,"loadVideoByUrl",l.Qt);oc(l,"playVideo",l.SO);oc(l,"loadPlaylist",l.loadPlaylist);oc(l,"nextVideo", l.nextVideo);oc(l,"previousVideo",l.previousVideo);oc(l,"playVideoAt",l.playVideoAt);oc(l,"getDebugText",l.getDebugText);oc(l,"getWebPlayerContextConfig",l.getWebPlayerContextConfig);oc(l,"notifyShortsAdSwipeEvent",l.notifyShortsAdSwipeEvent);oc(l,"getVideoContentRect",l.getVideoContentRect);oc(l,"setSqueezeback",l.setSqueezeback);oc(l,"toggleSubtitlesOn",l.toggleSubtitlesOn);oc(l,"isSubtitlesOn",l.isSubtitlesOn);oc(l,"reportPlaybackIssue",l.reportPlaybackIssue);oc(l,"setAutonav",l.setAutonav);oc(l, "isNotServable",l.isNotServable);oc(l,"channelSubscribed",l.channelSubscribed);oc(l,"channelUnsubscribed",l.channelUnsubscribed);oc(l,"togglePictureInPicture",l.togglePictureInPicture);oc(l,"supportsGaplessAudio",l.supportsGaplessAudio);oc(l,"supportsGaplessShorts",l.supportsGaplessShorts);oc(l,"enqueueVideoByPlayerVars",function(n){return void l.enqueueVideoByPlayerVars(n)}); oc(l,"clearQueue",l.clearQueue);oc(l,"getAudioTrack",l.vy);oc(l,"setAudioTrack",l.FI2);oc(l,"getAvailableAudioTracks",l.hx);oc(l,"getMaxPlaybackQuality",l.getMaxPlaybackQuality);oc(l,"getUserPlaybackQualityPreference",l.getUserPlaybackQualityPreference);oc(l,"getSubtitlesUserSettings",l.getSubtitlesUserSettings);oc(l,"resetSubtitlesUserSettings",l.resetSubtitlesUserSettings);oc(l,"setMinimized",l.setMinimized);oc(l,"setOverlayVisibility",l.setOverlayVisibility);oc(l,"confirmYpcRental",l.confirmYpcRental); oc(l,"queueNextVideo",l.queueNextVideo);oc(l,"handleExternalCall",l.handleExternalCall);oc(l,"logApiCall",l.logApiCall);oc(l,"isExternalMethodAvailable",l.isExternalMethodAvailable);oc(l,"setScreenLayer",l.setScreenLayer);oc(l,"getCurrentPlaylistSequence",l.getCurrentPlaylistSequence);oc(l,"getPlaylistSequenceForTime",l.getPlaylistSequenceForTime);oc(l,"shouldSendVisibilityState",l.shouldSendVisibilityState);oc(l,"syncVolume",l.syncVolume);oc(l,"highlightSettingsMenuItem",l.highlightSettingsMenuItem); oc(l,"openSettingsMenuItem",l.openSettingsMenuItem);oc(l,"getEmbeddedPlayerResponse",l.getEmbeddedPlayerResponse);oc(l,"getVisibilityState",l.getVisibilityState);oc(l,"isMutedByMutedAutoplay",l.isMutedByMutedAutoplay);l.J("embeds_enable_emc3ds_muted_autoplay")&&oc(l,"isMutedByEmbedsMutedAutoplay",l.isMutedByEmbedsMutedAutoplay);oc(l,"setGlobalCrop",l.setGlobalCrop);oc(l,"setInternalSize",l.setInternalSize);oc(l,"setFauxFullscreen",l.setFauxFullscreen);oc(l,"setAppFullscreen",l.setAppFullscreen)}; EY=function(l,n,O){l=g.WD(l.VE(),n);return O?(O.addOnDisposeCallback(l),null):l}; g.Nc=function(l,n,O){return l.app.j().j3?n:g.uN("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:n,SHORTCUT:O})}; V70=function(l){l.VE().element.setAttribute("aria-live","polite")}; g.DQ=function(l,n){g.TM.call(this,l,n);$di(this);xA(this,"addEventListener",this.Dr);xA(this,"removeEventListener",this.sRp);xA(this,"cueVideoByPlayerVars",this.sY);xA(this,"loadVideoByPlayerVars",this.xvp);xA(this,"preloadVideoByPlayerVars",this.plQ);xA(this,"loadVideoById",this.eg);xA(this,"loadVideoByUrl",this.Qt);xA(this,"playVideo",this.SO);xA(this,"loadPlaylist",this.loadPlaylist);xA(this,"nextVideo",this.nextVideo);xA(this,"previousVideo",this.previousVideo);xA(this,"playVideoAt",this.playVideoAt); xA(this,"getVideoData",this.UD);xA(this,"seekBy",this.wMJ);xA(this,"seekTo",this.iNF);xA(this,"showControls",this.showControls);xA(this,"hideControls",this.hideControls);xA(this,"cancelPlayback",this.cancelPlayback);xA(this,"getProgressState",this.getProgressState);xA(this,"isInline",this.isInline);xA(this,"setInline",this.setInline);xA(this,"setLoopVideo",this.setLoopVideo);xA(this,"getLoopVideo",this.getLoopVideo);xA(this,"getVideoContentRect",this.getVideoContentRect);xA(this,"getVideoStats",this.IG); xA(this,"getCurrentTime",this.V7);xA(this,"getDuration",this.e$);xA(this,"getPlayerState",this.aG);xA(this,"getVideoLoadedFraction",this.jR);xA(this,"mute",this.oJ);xA(this,"unMute",this.zA);xA(this,"setVolume",this.ZK);xA(this,"loadModule",this.loadModule);xA(this,"unloadModule",this.unloadModule);xA(this,"getOption",this.qM);xA(this,"getOptions",this.getOptions);xA(this,"setOption",this.setOption);xA(this,"addCueRange",this.addCueRange);xA(this,"getDebugText",this.getDebugText);xA(this,"getStoryboardFormat", this.getStoryboardFormat);xA(this,"toggleFullscreen",this.toggleFullscreen);xA(this,"isFullscreen",this.isFullscreen);xA(this,"getPlayerSize",this.getPlayerSize);xA(this,"toggleSubtitles",this.toggleSubtitles);this.app.j().J("embeds_enable_move_set_center_crop_to_public")||xA(this,"setCenterCrop",this.setCenterCrop);xA(this,"setFauxFullscreen",this.setFauxFullscreen);xA(this,"setSizeStyle",this.setSizeStyle);xA(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);xA(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); Q7i(this)}; g.qc=function(l){l=l.dc();var n=l.ri.get("endscreen");return n&&n.AD()?!0:l.nY()}; g.kA=function(l,n){l.getPresentingPlayerType()===3?l.publish("mdxautoplaycancel"):l.lF("onAutonavCancelled",n)}; g.Mc=function(l){var n=y7(l.dc());return l.app.il&&!l.isFullscreen()||l.getPresentingPlayerType()===3&&n&&n.FK()&&n.DE()||!!l.getPlaylist()}; g.Q7=function(l,n){g.hA(l,"addEmbedsConversionTrackingParams",[n])}; g.YA=function(l){return(l=g.eR(l.dc()))?l.GT():{}}; g.Bfi=function(l){l=(l=l.getVideoData())&&l.W;return!!l&&!(!l.audio||!l.video)&&l.mimeType!=="application/x-mpegURL"}; g.jR=function(l,n,O){l=l.xP().element;var L=hm(l.children,function(X){X=Number(X.getAttribute("data-layer"));return O-X||1}); L<0&&(L=-(L+1));Xg(l,n,L);n.setAttribute("data-layer",String(O))}; g.GM=function(l){var n=l.j();if(!n.d8)return!1;var O=l.getVideoData();if(!O||l.getPresentingPlayerType()===3)return!1;var L=(!O.isLiveDefaultBroadcast||n.J("allow_poltergust_autoplay"))&&!vf(O);L=O.isLivePlayback&&(!n.J("allow_live_autoplay")||!L);var X=O.isLivePlayback&&n.J("allow_live_autoplay_on_mweb");l=l.getPlaylist();l=!!l&&l.FK();var F=O.wq&&O.wq.playerOverlays||null;F=!!(F&&F.playerOverlayRenderer&&F.playerOverlayRenderer.autoplay);F=O.hh&&F;return!O.ypcPreview&&(!L||X)&&!g.CO(O.Lf,"ypc")&& !l&&(!g.yG(n)||F)}; ciq=function(l){l=l.app.AG();if(!l)return!1;var n=l.getVideoData();if(!n.W||!n.W.video||n.W.video.S<1080||n.B3)return!1;var O=/^qsa/.test(n.clientPlaybackNonce),L="r";n.W.id.indexOf(";")>=0&&(O=/^[a-p]/.test(n.clientPlaybackNonce),L="x");return O?(l.Sp("iqss",{trigger:L},!0),!0):!1}; mM=function(){ck.apply(this,arguments);this.requestHeaders={}}; dj=function(){Ic||(Ic=new mM);return Ic}; $A=function(l,n){n?l.requestHeaders.Authorization="Bearer "+n:delete l.requestHeaders.Authorization}; g.V7=function(l,n,O,L){L=L===void 0?!1:L;g.Aj.call(this,n);var X=this;this.C=l;this.Q5=L;this.G=new g.$B(this);this.fade=new g.gy(this,O,!0,void 0,void 0,function(){X.u$()}); g.c(this,this.G);g.c(this,this.fade)}; BD=function(l){var n=l.C.getRootNode();return l.C.J("web_watch_pip")||l.C.J("web_shorts_pip")?BM(n):document}; iW0=function(l){l.W&&(document.activeElement&&g.Fg(l.element,document.activeElement)&&l.W.focus(),l.W.setAttribute("aria-expanded","false"),l.W=void 0);g.eU(l.G);l.Y=void 0}; cD=function(l,n,O){l.iV()?l.Te():l.In(n,O)}; i4=function(l,n,O,L){L=new g.f({D:"div",gq:["ytp-linked-account-popup-button"],hG:L,Z:{role:"button",tabindex:"0"}});n=new g.f({D:"div",X:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{D:"div",X:"ytp-linked-account-popup-title",hG:n},{D:"div",X:"ytp-linked-account-popup-description",hG:O},{D:"div",X:"ytp-linked-account-popup-buttons",K:[L]}]});g.V7.call(this,l,{D:"div",X:"ytp-linked-account-popup-container",K:[n]},100);var X=this;this.dialog=n;g.c(this,this.dialog); L.listen("click",function(){X.Te()}); g.c(this,L);g.jR(this.C,this.element,4);this.hide()}; g.SR=function(l,n,O,L){g.Aj.call(this,l);this.priority=n;O&&g.zM(this,O);L&&this.NP(L)}; g.pF=function(l,n,O,L){l=l===void 0?{}:l;n=n===void 0?[]:n;O=O===void 0?!1:O;L=L===void 0?!1:L;n.push("ytp-menuitem");var X=l;"role"in X||(X.role="menuitem");O||(X=l,"tabindex"in X||(X.tabindex="0"));l={D:O?"a":"div",gq:n,Z:l,K:[{D:"div",X:"ytp-menuitem-icon",hG:"{{icon}}"},{D:"div",X:"ytp-menuitem-label",hG:"{{label}}"},{D:"div",X:"ytp-menuitem-content",hG:"{{content}}"}]};L&&l.K.push({D:"div",X:"ytp-menuitem-secondary-icon",hG:"{{secondaryIcon}}"});return l}; g.zM=function(l,n){l.updateValue("label",n)}; sY=function(l){g.SR.call(this,g.pF({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var n=this;this.C=l;this.W=this.S=!1;this.C5=l.a7();l.createServerVe(this.element,this,!0);this.U(this.C,"settingsMenuVisibilityChanged",function(O){n.Ge(O)}); this.U(this.C,"videodatachange",this.L);this.listen("click",this.onClick);this.L()}; fF=function(l){return l?g.Uw(l):""}; KF=function(l){g.V.call(this);this.api=l}; ac=function(l){KF.call(this,l);var n=this;oc(l,"setAccountLinkState",function(O){n.setAccountLinkState(O)}); oc(l,"updateAccountLinkingConfig",function(O){n.updateAccountLinkingConfig(O)}); l.addEventListener("videodatachange",function(O,L){n.onVideoDataChange(L)}); l.addEventListener("settingsMenuInitialized",function(){n.menuItem=new sY(n.api);g.c(n,n.menuItem)})}; zAi=function(l){this.api=l;this.S={}}; Rc=function(l,n,O,L){n in l.S||(O=new g.X4(O,L,{id:n,priority:2,namespace:"appad"}),l.api.RA([O],1),l.S[n]=O)}; CF=function(l){KF.call(this,l);var n=this;this.events=new g.$B(this);g.c(this,this.events);this.S=new zAi(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){n.S.S={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(O){var L=n.S;Rc(L,"part2viewed",1,0x8000000000000);Rc(L,"engagedview",Math.max(1,O.K5*1E3),0x8000000000000);if(!O.isLivePlayback){var X=O.lengthSeconds*1E3;O9(O)&&L.api.J("html5_shorts_gapless_ads_duration_fix")&&(X=L.api.getProgressState().seekableEnd*1E3-O.bN);Rc(L,"videoplaytime25",X*.25,X);Rc(L,"videoplaytime50",X*.5,X);Rc(L,"videoplaytime75",X*.75,X);Rc(L,"videoplaytime100",X,0x8000000000000);Rc(L,"conversionview",X,0x8000000000000); Rc(L,"videoplaybackstart",1,X);Rc(L,"videoplayback2s",2E3,X);Rc(L,"videoplayback10s",1E4,X)}}); this.events.U(this.api,g.F4("appad"),this.W);this.events.U(this.api,g.xx("appad"),this.W)}; fja=function(l,n,O){if(!(O in n))return!1;n=n[O];Array.isArray(n)||(n=[n]);n=g.P(n);for(O=n.next();!O.done;O=n.next()){O=O.value;var L={CPN:l.api.getVideoData().clientPlaybackNonce};O=g.jt(O,L);L=void 0;L=L===void 0?!1:L;(L=tk(vQ(O,S1f),O,L,"Active View 3rd Party Integration URL"))||(L=void 0,L=L===void 0?!1:L,L=tk(vQ(O,pP5),O,L,"Google/YouTube Brand Lift URL"));L||(L=void 0,L=L===void 0?!1:L,L=tk(vQ(O,s79),O,L,"Nielsen OCR URL"));g.zu(O,void 0,L)}return!0}; tA=function(l,n){KU8(l,n).then(function(O){g.zu(n,void 0,void 0,O)})}; vD=function(l,n){n.forEach(function(O){tA(l,O)})}; KU8=function(l,n){return g.yw(l.api.j())&&JP(n)&&ZE(n)?g.g7(l.api.j(),g.pN(l.api.getVideoData())).then(function(O){var L;O&&(L={Authorization:"Bearer "+O});return L},void 0):mA()}; ajf=function(l){KF.call(this,l);this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"videoready",function(n){if(l.getPresentingPlayerType()===1){var O,L,X={playerDebugData:{pmlSignal:!!((O=n.getPlayerResponse())==null?0:(L=O.adPlacements)==null?0:L.some(function(F){var x;return F==null?void 0:(x=F.adPlacementRenderer)==null?void 0:x.renderer})), contentCpn:n.clientPlaybackNonce}};g.JG("adsClientStateChange",X)}})}; lg=function(l){g.f.call(this,{D:"button",gq:["ytp-button"],Z:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{D:"div",X:"ytp-autonav-toggle-button-container",K:[{D:"div",X:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.C=l;this.W=[];this.S=!1;this.isChecked=!0;l.createClientVe(this.element,this,113681);this.U(l,"presentingplayerstatechange",this.l2);this.listen("click",this.onClick);this.C.j().J("web_player_autonav_toggle_always_listen")&& RA0(this);EY(l,this.element,this);this.l2()}; RA0=function(l){l.W.push(l.U(l.C,"videodatachange",l.l2));l.W.push(l.U(l.C,"videoplayerreset",l.l2));l.W.push(l.U(l.C,"onPlaylistUpdate",l.l2));l.W.push(l.U(l.C,"autonavchange",l.qr))}; CZa=function(l){l.isChecked=l.isChecked;l.mJ("ytp-autonav-toggle-button").setAttribute("aria-checked",String(l.isChecked));var n=l.isChecked?"Autoplay is on":"Autoplay is off";l.updateValue("title",n);l.updateValue("label",n);l.C.h2()}; t70=function(l){return l.C.j().J("web_player_autonav_use_server_provided_state")&&R4(l.b5())}; vFf=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"standardControlsInitialized",function(){var O=new lg(l);g.c(n,O);l.On(O,"RIGHT_CONTROLS_LEFT")})}; ne=function(l,n){g.SR.call(this,g.pF({role:"menuitemcheckbox","aria-checked":"false"}),n,l,{D:"div",X:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; O3=function(l,n){l.checked=n;l.element.setAttribute("aria-checked",String(l.checked))}; lb0=function(l){var n=!l.j().Z$&&l.getPresentingPlayerType()!==3;return l.isFullscreen()||n}; g.gk=function(l,n,O,L){var X=l.currentTarget;if((O===void 0||!O)&&g.yz(l))return l.preventDefault(),!0;n.pauseVideo();l=X.getAttribute("href");g.pH(l,L,!0);return!1}; g.Le=function(l,n,O){if(sI(n.j())&&n.getPresentingPlayerType()!==2){if(g.yz(O))return n.isFullscreen()&&!n.j().externalFullscreen&&n.toggleFullscreen(),O.preventDefault(),!0}else{var L=g.yz(O);L&&n.pauseVideo();g.pH(l,void 0,!0);L&&(g.s2(l),O.preventDefault())}return!1}; OD9=function(){var l=nWi.includes("en")?{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{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"}}]}:{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{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"}}]};l.X="ytp-subtitles-button-icon";return l}; Xo=function(){return{D:"div",X:"ytp-spinner-container",K:[{D:"div",X:"ytp-spinner-rotator",K:[{D:"div",X:"ytp-spinner-left",K:[{D:"div",X:"ytp-spinner-circle"}]},{D:"div",X:"ytp-spinner-right",K:[{D:"div",X:"ytp-spinner-circle"}]}]}]}}; oq=function(l){if(document.createRange){var n=document.createRange();n&&(n.selectNodeContents(l),l=window.getSelection())&&(l.removeAllRanges(),l.addRange(n))}}; h7=function(l){var n=l.J("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";ne.call(this,n,g.Fo.YH);var O=this;this.C=l;this.S=!1;this.W=new g.vs(function(){g.ZW(O.element,"ytp-menuitem-highlighted")},0); this.C5=l.a7();this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.N,this);this.listen(xe,this.L);g.c(this,this.W)}; ZK=function(l){KF.call(this,l);var n=this;this.S=!1;l.addEventListener("settingsMenuInitialized",function(){gWv(n)}); l.addEventListener("highlightSettingsMenu",function(O){gWv(n);var L=n.menuItem;O==="menu_item_cinematic_lighting"&&(g.FW(L.element,"ytp-menuitem-highlighted"),g.FW(L.element,"ytp-menuitem-highlight-transition-enabled"),L.W.start())}); oc(l,"updateCinematicSettings",function(O){n.updateCinematicSettings(O)})}; gWv=function(l){l.menuItem||(l.menuItem=new h7(l.api),g.c(l,l.menuItem),l.menuItem.y5(l.S))}; J7=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"applicationvideodatachange",function(O,L){n.pW(O,L)})}; wk=function(l){KF.call(this,l);this.events=new g.$B(l);g.c(this,this.events);oc(l,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));oc(l,"setCreatorEndscreenHideButton",this.S.bind(this))}; HN=function(l,n,O,L){ne.call(this,"Stable Volume",g.Fo.l4);g.FW(this.element,"ytp-drc-menu-item");this.C5=l.a7();this.L=n;this.S=O;this.hasDrcAudioTrack=L;l.addEventListener("videodatachange",this.W.bind(this));l.J("mta_drc_mutual_exclusion_removal")&&this.U(l,"onPlaybackAudioChange",this.W);l=this.S()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.N,this);O3(this,l);this.C5.yu(this)}; A7=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);l.J("html5_show_drc_toggle")&&l.addEventListener("settingsMenuInitialized",function(){n.menuItem||(n.menuItem=new HN(n.api,n.setDrcUserPreference.bind(n),n.getDrcUserPreference.bind(n),n.W.bind(n)),g.c(n,n.menuItem))}); oc(this.api,"setDrcUserPreference",function(L){n.setDrcUserPreference(L)}); oc(this.api,"getDrcUserPreference",function(){return n.getDrcUserPreference()}); oc(this.api,"hasDrcAudioTrack",function(){return n.W()}); var O;this.S=(O=g.dU("yt-player-drc-pref"))!=null?O:1;this.updateEnvironmentData()}; bg=function(l){KF.call(this,l);var n=this;this.S={};this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"videodatachange",function(){n.onVideoDataChange()}); this.events.U(l,g.F4("embargo"),function(O){n.api.Z0(!0);var L,X=(L=n.S[O.id])!=null?L:[];L=g.P(X);for(X=L.next();!X.done;X=L.next()){var F=X.value;n.api.hideControls();n.api.M_("auth",2,"This video isn't available in your current playback area",yC({embargoed:1,id:O.id,idx:O.W,start:O.start}));X=void 0;(F=(X=F.embargo)==null?void 0:X.onTrigger)&&n.api.lF("innertubeCommand",F)}})}; L$i=function(l,n){var O;return(O=n.onEnter)==null?void 0:O.some(l.W)}; XJg=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=void 0,X=Number((L=O.playbackPosition)==null?void 0:L.utcTimeMillis)/1E3,F=void 0;L=X+Number((F=O.duration)==null?void 0:F.seconds);F="embargo_"+X;l.api.addUtcCueRange(F,X,L,"embargo",!1);O.onEnter&&(l.S[F]=O.onEnter.filter(l.W))}}; rk=function(l){KF.call(this,l);var n=this;this.S=[];this.events=new g.$B(l);g.c(this,this.events);oc(l,"addEmbedsConversionTrackingParams",function(O){n.api.j().wr&&n.addEmbedsConversionTrackingParams(O)}); this.events.U(l,"veClickLogged",function(O){n.api.hasVe(O)&&(O=xq(O.visualElement.getAsJspb(),2),n.S.push(O))})}; oWi=function(l){KF.call(this,l);oc(l,"isEmbedsShortsMode",function(){return l.isEmbedsShortsMode()})}; F$9=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"initialvideodatacreated",function(O){kW(q8(),16623);n.S=g.yS();var L=l.j().kY&&!O.q_;if(zy(O)&&L){kW(q8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(O.getWatchNextResponse()){var X,F=(X=O.getWatchNextResponse())==null?void 0:X.trackingParams;F&&M8(F)}if(O.getPlayerResponse()){var x;(O=(x=O.getPlayerResponse())==null?void 0:x.trackingParams)&&M8(O)}}else kW(q8(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),O.getEmbeddedPlayerResponse()&&(x=(F=O.getEmbeddedPlayerResponse())==null?void 0:F.trackingParams)&&M8(x)}); this.events.U(l,"loadvideo",function(){kW(q8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:n.S})}); this.events.U(l,"cuevideo",function(){kW(q8(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:n.S})}); this.events.U(l,"largeplaybuttonclicked",function(O){kW(q8(),27240,O.visualElement)}); this.events.U(l,"playlistnextbuttonclicked",function(O){kW(q8(),27240,O.visualElement)}); this.events.U(l,"playlistprevbuttonclicked",function(O){kW(q8(),27240,O.visualElement)}); this.events.U(l,"playlistautonextvideo",function(){kW(q8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; U3=function(l,n){g.V.call(this);var O=this;this.S=null;this.N=n;n=[];for(var L=0;L<=100;L++)n.push(L/100);n={threshold:n,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(X){X=X[X.length-1];typeof X.isVisible==="undefined"?document.visibilityState==="visible"&&X.isIntersecting&&X.intersectionRatio>0?O.S=X.intersectionRatio:document.visibilityState==="hidden"?O.S=0:O.S=null:O.S=X.isVisible?X.intersectionRatio:0;typeof O.N==="function"&&O.N(O.S)},n): null)&&this.W.observe(l)}; hGi=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"applicationInitialized",function(){x85(n)})}; x85=function(l){var n=l.api.getRootNode(),O=n;if(!l.api.J("embeds_emc3ds_inview_ks")){var L;O=l.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((L=n.parentElement)==null?void 0:L.parentElement)||n:n}l.S=new U3(O,function(X){X!=null&&(l.api.j().Nm=X,l.api.j().s8="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.c(l,l.S);l.events.U(l.api,"videoStatsPingCreated",function(X){var F=l.S;F=F.S==null?null:Math.round(F.S*100)/100;X.inview=F!=null?F:void 0;F=l.api.getPlayerSize();if(F.height>0&&F.width>0){F=[Math.round(F.width),Math.round(F.height)];var x=g.Kw();x>1&&F.push(x);F=F.join(":")}else F=void 0;X.size=F})}; ZDf=function(l){var n;return((n=((l==null?void 0:l.messageRenderers)||[]).find(function(O){return!!O.timeCounterRenderer}))==null?void 0:n.timeCounterRenderer)||null}; ug=function(l){g.f.call(this,{D:"div",gq:["ytp-player-content","ytp-iv-player-content"],K:[{D:"div",X:"ytp-free-preview-countdown-timer",K:[{D:"span",hG:"{{label}}"},{D:"span",X:"ytp-free-preview-countdown-timer-separator",hG:"\u2022"},{D:"span",hG:"{{duration}}"}]}]});this.api=l;this.S=null;this.N=this.W=0;this.U(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; wJ9=function(l,n){l.S||(l.W=n,l.N=(0,g.Q_)(),l.S=new g.tN(function(){Jw7(l)},null),Jw7(l))}; Jw7=function(l){var n=Math,O=n.round,L=Math.min((0,g.Q_)()-l.N,l.W);n=O.call(n,(l.W-L)/1E3);l.updateValue("duration",uo({seconds:n}));n<=0&&l.S?PN(l):l.S&&l.S.start()}; PN=function(l){l.S&&(l.S.dispose(),l.S=null)}; HDa=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"basechromeinitialized",function(){n.S=new ug(l);g.c(n,n.S);g.jR(l,n.S.element,4);n.S.hide()})}; TT=function(l){g.f.call(this,{D:"button",gq:["ytp-fullerscreen-edu-button","ytp-button"],K:[{D:"div",gq:["ytp-fullerscreen-edu-text"],hG:"Scroll for details"},{D:"div",gq:["ytp-fullerscreen-edu-chevron"],K:[{D:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"1"}});this.iF=l;this.fade=new g.gy(this,250,void 0,100);this.W=this.S=!1;l.createClientVe(this.element,this,61214);g.c(this, this.fade);this.U(l,"fullscreentoggled",this.y5);this.U(l,"presentingplayerstatechange",this.y5);this.listen("click",this.onClick);this.y5()}; WN=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);oc(this.api,"updateFullerscreenEduButtonSubtleModeState",function(L){n.updateFullerscreenEduButtonSubtleModeState(L)}); oc(this.api,"updateFullerscreenEduButtonVisibility",function(L){n.updateFullerscreenEduButtonVisibility(L)}); var O=l.j();l.J("external_fullscreen_with_edu")&&O.externalFullscreen&&sI(O)&&O.controlsType==="1"&&this.events.U(l,"standardControlsInitialized",function(){n.S=new TT(l);g.c(n,n.S);l.On(n.S)})}; Awq=function(l){g.f.call(this,{D:"div",X:"ytp-gated-actions-overlay",K:[{D:"div",X:"ytp-gated-actions-overlay-background",K:[{D:"div",X:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",gq:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Close"},K:[g.Ew()]},{D:"div",X:"ytp-gated-actions-overlay-bar",K:[{D:"div",X:"ytp-gated-actions-overlay-text-container",K:[{D:"div",X:"ytp-gated-actions-overlay-title",hG:"{{title}}"},{D:"div",X:"ytp-gated-actions-overlay-subtitle", hG:"{{subtitle}}"}]},{D:"div",X:"ytp-gated-actions-overlay-button-container"}]}]});var n=this;this.api=l;this.background=this.mJ("ytp-gated-actions-overlay-background");this.W=this.mJ("ytp-gated-actions-overlay-button-container");this.S=[];this.U(this.mJ("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){n.api.lF("onCloseMiniplayer")}); this.hide()}; rw8=function(l,n){var O=0;O=0;for(var L={};O<n.length;L={gU:void 0},O++){var X=l.S[O],F=void 0,x=(F=X)==null?void 0:F.element;x||(x=new g.f({D:"button",X:"ytp-gated-actions-overlay-button",Z:{tabindex:"0"},K:[{D:"div",X:"ytp-gated-actions-overlay-button-title",hG:"{{buttonText}}"}]}),g.c(l,x),x.V5(l.W),X={element:x});L.gU=g.z(n[O],bD8);var Z=F=void 0,J=void 0,w=((F=L.gU)==null?void 0:F.title)||((Z=L.gU)==null?void 0:(J=Z.titleFormatted)==null?void 0:J.content)||"";x.update({buttonText:w});X.listener&& x.EC(X.listener);X.listener=x.listen("click",function(H){return function(){var A,b=g.z((A=H.gU)==null?void 0:A.onTap,VS);b&&l.api.lF("innertubeCommand",b)}}(L)); l.S[O]=X}for(;O<l.S.length;)l.S.pop().element.dispose()}; U8e=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.S=new Awq(this.api);g.c(this,this.S);this.events.U(l,"videodatachange",function(){var O,L=(O=n.api.getVideoData())==null?void 0:O.MU;O=n.S;if(L){var X,F,x=((X=L.title)==null?void 0:X.content)||"";X=((F=L.subtitle)==null?void 0:F.content)||"";O.update({title:x,subtitle:X});x=L.thumbnail;F="none";if(x==null?0:x.sources){X=0;x=g.P(x.sources);for(var Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.width&&Z.url&&Z.width> X&&(X=Z.width,F="url("+Z.url+")")}O.background.style.backgroundImage=F;rw8(O,L.actionButtons||[]);O.show()}else O.hide()}); g.jR(this.api,this.S.element,4)}; E3=function(l){KF.call(this,l);var n=this;xA(this.api,"getSphericalProperties",function(){return n.getSphericalProperties()}); xA(this.api,"setSphericalProperties",function(){n.setSphericalProperties.apply(n,g.E(g.eq.apply(0,arguments)))}); FG(this.api,"getSphericalProperties",function(){return n.api.getPresentingPlayerType()===2?{}:n.getSphericalProperties()}); FG(this.api,"setSphericalProperties",function(){var O=g.eq.apply(0,arguments);n.api.getPresentingPlayerType()!==2&&n.setSphericalProperties.apply(n,g.E(O))})}; N$=function(l){KF.call(this,l);oc(l,"createClientVe",this.createClientVe.bind(this));oc(l,"createServerVe",this.createServerVe.bind(this));oc(l,"destroyVe",this.destroyVe.bind(this));oc(l,"hasVe",this.hasVe.bind(this));oc(l,"logClick",this.logClick.bind(this));oc(l,"logVisibility",this.logVisibility.bind(this));oc(l,"setTrackingParams",this.setTrackingParams.bind(this))}; DK=function(l,n,O,L){function X(x){var Z=!(x.status!==204&&x.status!==200&&!x.response),J;x={succ:""+ +Z,rc:x.status,lb:((J=x.response)==null?void 0:J.byteLength)||0,rt:((0,g.Q_)()-F).toFixed(),shost:g.VM(l),trigger:n};uC0(x,l);O&&O(x);L&&!Z&&L(new Ml("pathprobe.net",x))} var F=(0,g.Q_)();g.yA(l,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:X,onTimeout:X})}; uC0=function(l,n){var O;((O=window.performance)==null?0:O.getEntriesByName)&&(n=performance.getEntriesByName(n))&&n.length&&(n=n[0],l.pedns=(n.domainLookupEnd-n.startTime).toFixed(),l.pecon=(n.connectEnd-n.domainLookupEnd).toFixed(),l.perqs=(n.requestStart-n.connectEnd).toFixed(),Poa&&(l.perqsa=n.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; q$=function(l,n){this.Rn=l;this.policy=n;this.playbackRate=1}; TB9=function(l,n){var O=Math.min(2.5,uO(l.Rn));l=ke(l);return n-O*l}; yr=function(l,n,O,L,X){X=X===void 0?!1:X;if(l.policy.Cz)return Math.ceil(l.policy.Cz*n);l.policy.eF&&(L=Math.abs(L));L/=l.playbackRate;var F=1/WI(l.Rn);O=Math.max(.9*(L-3),uO(l.Rn)+l.Rn.W.S*F)/F*.8/(n+O);O=Math.min(O,L);l.policy.YW>0&&X&&(O=Math.max(O,l.policy.YW));return W$5(l,O,n)}; W$5=function(l,n,O){return Math.ceil(Math.max(Math.max(l.policy.Nm,l.policy.Xk*O),Math.min(Math.min(l.policy.Fi,31*O),Math.ceil(n*O))))||l.policy.Nm}; EWe=function(l,n,O){O=yr(l,n.S.info.Sv,O.S.info.Sv,0);var L=uO(l.Rn)+O/WI(l.Rn);return Math.max(L,L+l.policy.rY-O/n.S.info.Sv)}; ke=function(l){return WI(l.Rn,!l.policy.xa,l.policy.rF)}; M$=function(l){return ke(l)/l.playbackRate}; Qr=function(l,n,O){var L=l.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],X=l.policy.playbackStartPolicy.startMinReadaheadPolicy||[];l=Infinity;n=g.P(n&&L.length>0?L:X);for(L=n.next();!L.done;L=n.next())L=L.value,X=L.minReadaheadMs||0,O<(L.minBandwidthBytesPerSec||0)||l>X&&(l=X);return l<Infinity?l/1E3:l}; ex=function(l,n,O,L){var X=this;this.T=l;this.T3=n;this.policy=O;this.logger=L;this.lh=[];this.kP=[];this.S=-1;this.Xp=null;this.V=this.timestampOffset=0;this.jz=null;this.W=10;this.B=new Set;this.DQ={Y8:function(F){return X.Y8(F)}}; this.L=n.tA?0:1;O.wp>0&&(this.W=O.wp)}; k$k=function(l,n,O,L,X){if(!L.info.L){if(O.length===0)O.push(L);else{var F;(l=(F=O.pop())==null?void 0:g.v_(F,L))?O.push(l):O.push(L)}return X}var x;(O=(x=O.pop())==null?void 0:g.v_(x,L))||(O=L);if(l.policy.z$&&O.info.W)return l.logger&&l.logger({incompleteSegment:O.info.rK()}),X;x=l.Y8(O);L=x.formatId;X=x.Ef;O=x.clipId;F=x.HL;x=x.startTimeMs;if(!l.policy.ea&&l.policy.W&&l.jz){var Z=Ye(l.jz,O);x+=Z}L={clipId:O,formatId:L,startTimeMs:x,durationMs:F,kW:X,Sr:X,ew:x,Rv:F};X=NBa(n,L.startTimeMs);(O=X>= 0?n[X]:null)&&D8i(l,O,L)?L=O:(X+=1,n.splice(X,0,L));O=0;for(F=X+1;F<n.length;F++){x=l;Z=n[F];var J=L,w=Z.startTimeMs+Z.durationMs,H=J.startTimeMs+J.durationMs;H>=w+x.W?x=!0:H+x.W<Z.startTimeMs?x=!1:qAv(x,Z.formatId,J.formatId)?(J.durationMs=w-J.startTimeMs,J.Rv=J.durationMs,J.Sr=Z.Sr,x=!0):(Z.startTimeMs=H,Z.ew=H,Z.kW=J.Sr+1,x=!1);if(!x)break;O++}O&&n.splice(X+1,O);return X}; Mkf=function(l,n,O){l.policy.z$&&O!=null&&O.Wf||(l.lh=[]);l.policy.CZ?(n=g.xd(l.kP,{startTimeMs:n*1E3},function(L,X){return L.startTimeMs-X.startTimeMs}),l.S!==n&&(l.S=-1,l.N=void 0)):(yw0(l,!0),l.S=NBa(l.kP,n*1E3))}; NBa=function(l,n){l=g.xd(l,{startTimeMs:n},function(O,L){return O.startTimeMs-L.startTimeMs}); return l>=0?l:-l-2}; yw0=function(l,n){if(l.Xp){var O=l.Xp.G$();if(O.length!==0){if(l.N&&n){var L=l.N,X=L.info.Fo;!ZA(O,X)&&L.info.V>0&&(0,g.Q_)()-l.V<5E3&&(l.logger&&l.logger({dend:L.info.rK()}),O=bHg(O,X,X+.01))}l.policy.CZ&&l.logger&&l.logger({cbri:""+l.S});L=[];for(var F=X=0;X<O.length&&F<l.kP.length;){var x=O.start(X),Z=O.end(X),J=l.kP[F].startTimeMs/1E3,w=(l.kP[F].startTimeMs+l.kP[F].durationMs)/1E3;if(J<=Z&&w>=x){var H=0;if(l.jz){var A=jx(l.jz,J*1E3);A&&(H=A.KZ/1E3)}A=Object.assign({},l.kP[F]);var b=l.T3.N.get(Dy(l.kP[F].formatId)), r=Math.max(J,x);x=b.index.Qb(r+l.W/1E3-H);J=b.index.getStartTime(x)+H;var U=x+ +(Math.abs(J-r)>l.W/1E3);r=U+l.L;U=(b.index.getStartTime(U)+H)*1E3;F!==l.S||n?(A.kW=r,A.startTimeMs=U):(l.logger&&l.logger({pEvict:"1",og:A.startTimeMs,adj:J*1E3}),A.kW=x+l.L,A.startTimeMs=J*1E3);A.ew=A.startTimeMs;x=void 0;J=((x=l.N)==null?void 0:x.info.duration)||11;F===l.S&&Z<w&&w-Z<=J*1.01&&(Z=w);x=Math.min(w,Z);J=b.index.Qb(x-l.W/1E3-H);r=l.policy;(r.W||r.rq.J("html5_sabr_include_tail_media_chunk"))&&b.index.AQ(J+ 1)&&b.index.Jy(J+1)+H<=x&&(J+=1);r=b.index.Jy(J)+H;J-=+(Math.abs(r-x)>l.W/1E3);x=J+l.L;H=(b.index.Jy(J)+H)*1E3;A.Sr=x;A.durationMs=H-A.startTimeMs;A.Rv=A.durationMs;A.kW<=A.Sr&&L.push(A)}w<Z?F+=1:X+=1}l.kP=L}}}; QRf=function(l){var n=[],O=[].concat(g.E(l.lh));l.kP.forEach(function(x){n.push(Object.assign({},x))}); for(var L=l.S,X=g.P(l.T.t3()),F=X.next();!F.done;F=X.next())L=k$k(l,n,O,F.value,L);n.forEach(function(x){x.startTimeMs&&(x.startTimeMs+=l.timestampOffset*1E3,x.ew&&(x.ew+=l.timestampOffset*1E3))}); return{kP:n,lh:O}}; D8i=function(l,n,O){var L=n.startTimeMs+n.durationMs,X=O.startTimeMs+O.durationMs;if(O.startTimeMs-L>l.W)return!1;if(qAv(l,n.formatId,O.formatId))return n.durationMs=Math.max(L,X)-n.startTimeMs,n.Rv=n.durationMs,n.Sr=Math.max(n.Sr,O.Sr),!0;if(Math.abs(n.startTimeMs-O.startTimeMs)<=l.W){if(n.durationMs>O.durationMs+l.W){l=n.formatId;var F=n.kW,x=n.Sr;n.formatId=O.formatId;n.durationMs=O.durationMs;n.kW=O.kW;n.Rv=O.durationMs;n.Sr=O.Sr;O.formatId=l;O.startTimeMs=X;O.ew=X;O.durationMs=L-X;O.Rv=O.durationMs; O.kW=F;O.Sr=x;return!1}n.formatId=O.formatId;return!0}L>O.startTimeMs&&(n.durationMs=O.startTimeMs-n.startTimeMs,n.Rv=n.durationMs,n.clipId===O.clipId&&(n.Sr=O.kW-1));return!1}; qAv=function(l,n,O){return n.itag!==O.itag||n.xtags!==O.xtags?!1:l.T3.tA||n.lmt===O.lmt}; eG9=function(l,n,O){if(l.logger){for(var L=[],X=0;X<n.length;X++){var F=n[X],x=void 0;if((x=F.Oh)==null?0:x.startTicks){var Z=x=void 0,J=void 0;L.push("i."+((x=F.formatId)==null?void 0:x.itag)+"_st."+(F.startTimeMs+"_psst.")+(((Z=F.Oh)==null?void 0:Z.startTicks)+"_psd.")+((J=F.Oh)==null?void 0:J.CU))}x=void 0;L.push("i."+((x=F.formatId)==null?void 0:x.itag)+"_st."+(F.startTimeMs+"_e."+(F.startTimeMs+F.durationMs)+"_d."+F.durationMs)+("_sn."+F.kW)+("_en."+F.Sr))}l.logger({p:""+O,br:L.join(";")})}}; YA5=function(l){l.kP=[];l.lh=[];l.B.clear();l.S=-1;l.N=void 0}; GT=function(l,n,O,L,X){this.sf=l;this.T3=n;this.videoTrack=O;this.audioTrack=L;this.policy=X;this.seekCount=this.S=0;this.B=!1;this.L=null;this.N=0;this.W=this.T3.isManifestless&&!this.T3.aI}; jRe=function(l,n,O){if(!l.policy.V){l=n.S.index;var L=n.W.Ef;l.AQ(L)||O&&O.Ef===L?(n.B=!l.AQ(L),n.Q5=!l.AQ(L)):(n.B=!0,n.Q5=!0)}}; m8v=function(l){var n=Math.max(l.videoTrack.L.N||0,l.audioTrack.L.N||0);G$5(l.videoTrack);G$5(l.audioTrack);l.policy.V||OXi(l.T3);l.T3.isManifestless&&!l.policy.V&&(l.W=!0,l.N=0);var O=l.sf;O.policy.Cf||(O.currentTime=n);l.B=!0;l.L=new v6;return l.L}; $89=function(l,n,O,L,X){var F=l.policy.z$?X:void 0;if(!n.S.y4()){if(!(F=O===0||!!n.N.length&&n.N[0]instanceof mL))a:{if(n.N.length&&(F=n.N[0],F instanceof Iq&&F.A7&&F.iJ)){F=!0;break a}F=!1}F||l.policy.S||dk(n);return O}var x=$e(n,O);if(!isNaN(x))return x;if(l.sf.KR(O*1E3))return O;X.Wf?l.policy.Ii&&(l=Vr(l.sf,n),Ibv(n.L,O+l,!0)):(n.ul(),l.sf.Xv(!1,"sta_"+ +n.S.info.vM()));return L&&(l=JY(L.G$(),O),!isNaN(l))?(BN(n,l+d8g,F),O):BN(n,O,F)}; BBv=function(l,n,O,L){if(l.policy.V)!L||!l.W&&l.policy.K5||g.Jo(function(){cN(l)}); else{if(l.isSeeking()&&l.S){var X=Vki(l,n,O);if(X!==-1){l.videoTrack.B=!1;l.audioTrack.B=!1;l.W=!0;l.N=0;g.Jo(function(){l.sf.Sp("seekreason",{reason:"behindMinSq",tgt:X});ig(l,X)}); return}}O?l.videoTrack.Q5=!1:l.audioTrack.Q5=!1;var F=l.policy.xg||!l.W;$e(l.videoTrack,l.S)>=0&&$e(l.audioTrack,l.S)>=0&&F?((l.videoTrack.B||l.audioTrack.B)&&l.sf.Sp("iterativeSeeking",{status:"done",count:l.seekCount}),l.videoTrack.B=!1,l.audioTrack.B=!1):L&&g.Jo(function(){if(l.W||!l.policy.K5)cN(l);else{var x=n.startTime,Z=n.duration;if(!l.policy.V){var J=O?l.videoTrack.B:l.audioTrack.B,w=l.videoTrack.V!==-1&&l.audioTrack.V!==-1,H=l.S>=x&&l.S<x+Z+.1,A=!l.videoTrack.Q5&&!l.audioTrack.Q5,b=l.policy.SH&& $e(l.videoTrack,x)&&$e(l.audioTrack,x);J&&w&&A&&(H||b?((O?l.videoTrack:l.audioTrack).B=!1,l.videoTrack.B||l.audioTrack.B||(l.sf.Sp("iterativeSeeking",{status:"done",target:x,originalTime:x+l.sf.ez(),count:l.seekCount}),l.seekCount=0)):l.seekCount<8?(l.seekCount++,l.sf.Sp("iterativeSeeking",{status:"inprogress",count:l.seekCount,target:l.S,actual:x,duration:Z,isVideo:O}),l.seek(l.S,{})):(l.sf.Sp("iterativeSeeking",{status:"incomplete",count:l.seekCount,target:l.S,actual:x}),l.seekCount=0,l.videoTrack.B= !1,l.audioTrack.B=!1,zT(l.sf,x+.1,{Uw:!0,UC:"chunkSelectorSynchronizeMedia",KI:!0})))}}})}}; Vki=function(l,n,O){if(!l.isSeeking())return-1;O=(O?l.videoTrack:l.audioTrack).S.index;var L=O.Qb(l.S);return(O.AQ(l.T3.Jt)||n.Ef===l.T3.Jt)&&L<l.T3.Jt?l.T3.i5():-1}; ig=function(l,n,O){l.W&&l.videoTrack.V!==-1&&l.audioTrack.V!==-1&&(l.W=!1,l.S=n,zT(l.sf,n+.1,{Uw:!0,UC:"chunkSelectorSynchronize",KI:!0,seekSource:O}))}; cN=function(l){var n=l.videoTrack.V!==-1,O=l.audioTrack.V!==-1;if(!n||!O)if(n=!n&&Sx(l.videoTrack),O=!O&&Sx(l.audioTrack),n||O){O=n?l.videoTrack:l.audioTrack;n=n?l.audioTrack:l.videoTrack;O.V=Sx(O).info.Ef;if(l.policy.V){var L;n.V=((L=Sx(n))==null?void 0:L.info.Ef)||n.V}if(n.V!==-1){var X=Math.max(n.S.index.getStartTime(n.V),O.S.index.getStartTime(O.V));TI(l.T3)&&Math.abs(X-TI(l.T3))>432E3&&gXq(l.T3);l.N&&(X=l.N,l.N=0);g.Jo(function(){l.policy.V||ig(l,X,102)}); l.sf.Sp("initManifestlessSync",{st:X,ost:X+l.sf.ez(),a:l.audioTrack.V,v:l.videoTrack.V});l.L&&(l.L.resolve(X+.1),l.L=null);l.policy.V&&ig(l,X,102)}}}; pe=function(l,n){var O=this;this.hA=l;this.requestNumber=++cwe;this.S=this.now();this.Y=this.Wm=NaN;this.T=this.S;this.N=this.n5=this.B=0;this.V=this.S;this.wq=this.G=this.Lf=this.hC=this.Wk=this.Cf=this.W=this.L=0;this.NQ=this.isActive=!1;this.JA=this.Yo=0;this.DQ={Ds5:function(){return O.wH}}; this.Rn=n.Rn;this.snapshot=iX0(this.Rn);this.policy=this.Rn.W;this.a4=!!n.a4;this.iA=n.iA;this.Gn=n.Gn||0;this.Uc=n.Uc||0;n.SX&&(this.z3=new ht);var L;this.wH=(L=n.wH)!=null?L:!1;this.a4||Vc5(this.Rn)}; iD0=function(l){l.Lf=Math.max(l.Lf,l.B-l.Wk);l.G=Math.max(l.G,l.T-l.hC);l.Cf=0}; s3=function(l,n,O){BXv(l.Rn,n);l.z3&&(l.z3.add(Math.ceil(n)-Math.ceil(l.T)),l.z3.add(Math.max(0,Math.ceil(O/1024)-Math.ceil(l.B/1024))));var L=n-l.T,X=O-l.B;l.n5=X;l.wq=Math.max(l.wq,X/(L+.01)*1E3);l.T=n;l.B=O;l.Cf&&O>l.Cf&&iD0(l)}; fe=function(l,n){l.url=n;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ke=function(l,n){pe.call(this,l,n);this.oO=this.K5=!1;this.Fi=this.Q5=Infinity;this.Pm=NaN;this.Fp=!1;this.Of=NaN;this.Sz=this.Hm=this.G3=0;this.EV=n.EV||1;this.GS=n.GS||this.EV;this.nZ=n.nZ;this.Ef=n.Ef;this.gZ=n.gZ;zGe(this);this.HW(this.S);this.uv=(this.Of-this.S)/1E3}; SA5=function(l){var n=l.Hm||l.G3;return n?l.snapshot.delay+Math.min(l.Uc,(l.Y-l.Wm)/1E3)+n:l.uv}; aq=function(l,n,O){if(!l.a4){n=Math.max(n,.01);var L=l.Gn?Math.max(n,O/l.Gn):n,X=l.Rn.W.N;X&&(L=n,l.Gn&&(L=Math.max(n,O/l.Gn*X)));bO(l.Rn,n,O,L)}}; pJk=function(l){return(l.V-l.S)/1E3}; zGe=function(l){l.Pm=l.S+l.snapshot.delay*1E3;l.Fp=!1}; Rq=function(l,n){if(l.nZ&&l.Ef!==void 0&&l.gZ!==void 0){var O=Math,L=O.min,X=l.Q5;var F=l.nZ;var x=l.S;if(sRq(F,l.Ef))F=n;else{var Z=0;F.Ce&&(Z=.2);F=x+(F.Uc+Z)*1E3}l.Q5=L.call(O,X,F);O=Math;L=O.min;X=l.Fi;F=l.nZ;x=l.S;Z=fbi(F,l.Ef,l.gZ);Z!==2&&(n=Z?n:x+F.Uc*1E3,F.Ce&&(n+=F.Uc*1E3));l.Fi=L.call(O,X,n);l.Q5<=l.S?zGe(l):(l.Pm=l.Q5,l.Fp=!0)}}; K$5=function(l,n){if(l.aS(n,1)){var O=l.getUint8(n);O=O<128?1:O<192?2:O<224?3:O<240?4:5}else O=0;if(O<1||!l.aS(n,O))return[-1,n];if(O===1)l=l.getUint8(n++);else if(O===2)O=l.getUint8(n++),l=l.getUint8(n++),l=(O&63)+64*l;else if(O===3){O=l.getUint8(n++);var L=l.getUint8(n++);l=l.getUint8(n++);l=(O&31)+32*(L+256*l)}else if(O===4){O=l.getUint8(n++);L=l.getUint8(n++);var X=l.getUint8(n++);l=l.getUint8(n++);l=(O&15)+16*(L+256*(X+256*l))}else O=n+1,l.focus(O),NT(l,O,4)?l=Qu5(l).getUint32(O-l.LB,!0):(L= l.getUint8(O+2)+256*l.getUint8(O+3),l=l.getUint8(O)+256*(l.getUint8(O+1)+256*L)),n+=5;return[l,n]}; Ce=function(l){this.hA=l;this.S=new Pa}; t7=function(l,n){this.info=l;this.callback=n;this.state=1;this.QU=this.VA=!1;this.qn=null}; ab0=function(l){return g.Qv(l.info.Z2,function(n){return n.type===3})}; vN=function(l,n,O,L){var X=this;L=L===void 0?{}:L;this.policy=n;this.hA=O;this.status=0;this.S=new Pa;this.W=0;this.JG=this.L=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(L.method||"GET",l);if(L.headers)for(l=L.headers,n=g.P(Object.keys(l)),O=n.next();!O.done;O=n.next())O=O.value,this.xhr.setRequestHeader(O,l[O]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return X.W8()}; this.xhr.onload=function(){return X.onDone()}; this.xhr.onerror=function(){return X.onError()}; this.xhr.fetch(function(F){X.S.append(F);X.W+=F.length;F=(0,g.Q_)();X.hA.Hf(F,X.W)},function(){},L.body||null)}; RGq=function(l,n){this.W=(new TextEncoder).encode(l);this.S=(new TextEncoder).encode(n)}; v49=function(l,n){var O,L,X;return g.Y(function(F){if(F.S==1){if(!n)return F.return(n);O=lY.xp();L=new g.Nm(l.W);return g.Q(F,L.encrypt(n,l.S),2)}X=F.W;lY.wT("woe",O,Math.ceil(n.byteLength/16));return F.return(X)})}; LKq=function(l,n){var O,L,X;return g.Y(function(F){if(F.S==1){if(!n)return F.return(n);O=lY.xp();L=new g.Nm(l.W);return g.Q(F,L.decrypt(n,l.S),2)}X=F.W;lY.wT("wod",O,Math.ceil(n.byteLength/16));return F.return(X)})}; tk5=function(l,n){var O=this;this.S=l;this.hA=n;this.loaded=this.status=0;this.error="";l=y4(this.S.get("range")||"");if(!l)throw Error("bad range");this.range=l;this.W=new Pa;Cog(this).then(function(){O.hA.v$()},function(L){O.error=""+L||"unknown_err"; O.hA.v$()})}; Cog=function(l){var n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W;return g.Y(function(N){if(N.S==1){l.status=200;n=l.S.get("docid");O=CC(l.S.get("fmtid")||"");L=l.S.get("lmt")||"0";X=+(l.S.get("csz")||0);if(!n||!O||!X)throw Error("Invalid local URL");l.S.get("ck")&&l.S.get("civ")&&(F=new RGq(l.S.get("ck"),l.S.get("civ")));x=l.range;Z=Math.floor(x.start/X);J=Math.floor(x.end/X);w=Z}if(N.S!=5)return w<=J?g.Q(N,Xig(n,O,L,w,F),5):N.D2(0);H=N.W;if(H===void 0)throw Error("invariant: data is undefined");A=w*X;b=(w+1)*X; r=Math.max(0,x.start-A);U=Math.min(x.end+1,b)-(r+A);W=new Uint8Array(H.buffer,r,U);l.W.append(W);l.loaded+=U;l.loaded<x.length&&l.hA.Hf((0,g.Q_)(),l.loaded);w++;return N.D2(2)})}; lu5=function(l,n,O,L){var X=this;L=L===void 0?{}:L;this.policy=n;this.hA=O;this.T=L;this.status=0;this.response=void 0;this.W=0;this.B=this.V=!1;this.errorMessage="";this.Y=function(F){if(F)if(X.status=F.status,F.ok&&F.body&&X.status!==204)X.status=X.status||242,X.N=F.body.getReader(),X.JG()?X.N.cancel().catch(function(){}):(X.responseHeaders=F.headers,X.hA.qg(),vW5(X)); else X.onDone();else X.onError(Error("null_response"))}; this.G=function(F){var x=(0,g.Q_)();X.JG()||(F.done?(X.N=void 0,X.onDone()):(F=F.value,X.W+=F.length,X.S.append(F),vW5(X),X.hA.Hf(x,X.W)))}; this.onError=function(F){X.errorMessage=String(F);X.V=!0;X.onDone()}; this.S=new Pa;this.L=window.AbortController?new AbortController:void 0;this.start(l)}; vW5=function(l){l.N.read().then(l.G,l.onError).then(void 0,Z7)}; nc5=function(l,n,O){var L=this;O=O===void 0?{}:O;this.hA=n;this.W=this.status=0;this.JG=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(O.method||"GET",l);if(O.headers){l=O.headers;n=g.P(Object.keys(l));for(var X=n.next();!X.done;X=n.next())X=X.value,this.xhr.setRequestHeader(X,l[X])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(F){L.W8(F)}; l=T$(function(F){L.onDone(F)}); this.xhr.addEventListener("load",l,!1);this.xhr.addEventListener("error",l,!1);O.body?this.xhr.send(O.body):this.xhr.send();this.xhr.addEventListener("progress",T$(function(F){L.Mn(F)}),!1)}; na=function(l,n,O,L,X){if(Du(l.Yt))return new tk5(l,O);l=l.Ae();return L?qu5()?new vN(l,n,O,X):new lu5(l,n,O,X):new nc5(l,O,X)}; g.OW=function(l){this.tag=l}; Onv=function(l,n){gH.apply(null,[6,l,n].concat(g.E(g.eq.apply(2,arguments))))}; gcv=function(l,n){gH.apply(null,[5,l,n].concat(g.E(g.eq.apply(2,arguments))))}; gH=function(l,n,O){var L=g.eq.apply(3,arguments),X=l===6?"ERROR":"WARNING",F="b"+O;g.Ir(new (Function.prototype.bind.apply(g.at,[null,F].concat(g.E(L)))),X);L.unshift(F);L=L.join(", ");X=Lx7.get(n);if(!X){X="ytplog."+n;F=5;try{window.localStorage&&!isNaN(+window.localStorage[X])&&(F=+window.localStorage[X]),window.sessionStorage&&!isNaN(+window.sessionStorage[X])&&(F=+window.sessionStorage[X])}catch(J){}Lx7.set(n,F);X=F}if(!(l<X)){X=XW5;F=X.S.get(n);F||(F=new ocq,X.S.set(n,F));X=F;F=Date.now();var x= Math.floor((F-X.W)*.01);x>0&&(X.S=Math.min(X.S+x,10),X.W=F);X.S>0?(X.S--,X=!0):X=!1;if(X)typeof L==="function"&&(L=L()),console.log("plyr."+n,L);else{var Z;L=((Z=Fx5.get(n))!=null?Z:0)+1;Fx5.set(n,L);L%100===1&&console.warn("plyr","plyr."+n+" is chatty, dropping logs.")}}}; ocq=function(){this.S=10;this.W=Date.now()}; La=function(l,n){g.V.call(this);var O=this;this.policy=l;this.Z2=n;this.W=0;this.S=null;this.f1=[];this.N=null;this.DQ={rr:function(){return O.Z2}}; this.Z2.length===1||g.Qv(this.Z2,function(L){return!!L.range})}; Xw=function(l,n,O){l.S&&(TA(l.S,n),n=l.S,l.S=null);for(var L=0,X=0,F=g.P(l.Z2),x=F.next();!x.done;x=F.next())if(x=x.value,x.range&&L+x.N<=l.W)L+=x.N;else{n.getLength();if(Yz(x)&&!O&&l.W+n.getLength()-X<L+x.N){l.S=n.split(X).WH;return}a:{var Z=l;var J=x,w=l.W-L,H=X,A=n,b=!!O,r=A.getLength()-H;J.range&&(r=Math.min(J.N-w,r));J=tl5(J,J.W+w,r,J.range?J.W+w+r===J.range.length:b);H=Wa(A,H,r);H=new tW(J,H);if(Z.policy.useUmp&&Z.f1.length&&(A=g.v_(Z.f1[Z.f1.length-1],H))){Z.f1[Z.f1.length-1]=A;Z=r;break a}Z.f1.push(H); Z=r}l.W+=Z;X+=Z;L+=x.N;if(X===n.getLength())break}n.getLength()}; oQ=function(l,n,O,L,X,F,x,Z,J){J=J===void 0?!1:J;g.V.call(this);this.hA=l;this.policy=n;this.Je=O;this.Vp=L;this.timing=X;this.logger=F;this.N=x;this.Xr=Z;this.B=J;this.lastError=null;this.S=0;this.L=!1;this.W=new g.vs(this.hQF,this.policy.OU,this)}; xe9=function(l){l.Vp.Y=(0,g.Q_)();l=Fw(l);l.N=(0,g.Q_)();l.started+=1}; JFe=function(l,n,O,L){l.timing.yL((0,g.Q_)(),n,O);n=l.Vp;n.W=0;n.B=0;n.T=0;rK(Fw(l));l.policy.sE&&L&&(L=Fw(l),L.W+=1);if((L=l.Xr)!=null&&(l=l.Je.Yt,!((0,g.Q_)()<L.V+3E5||Du(l))&&(n=Ne(l))&&h_9(n)&&L.W===x0(n))){var X;qe(l)&&(X=Ne(kc(l)));g.It("yt-player-bandaid-host",{primary:n,secondary:X},864E3);L.V=(0,g.Q_)();Zn7(L,{primary:n,secondary:X})}}; hT=function(l){if(l.lastError==="ump.spsrejectfailure")l.policy.mD||l.timing.NQ||c6e(l.Vp,!1,l.Je,l.policy,l.N);else{if(l.lastError==="net.timeout")l.timing.CE((0,g.Q_)());else{var n=l.timing;s3(n,(0,g.Q_)(),n.B)}if(l.lastError==="net.nocontent")++l.Vp.T;else{if((n=l.lastError==="net.timeout"||l.lastError==="net.connect"||l.lastError==="net.closed")&&!Du(l.Je.Yt)){var O=Fw(l);O.timedOut+=1}else O=Fw(l),O.S+=1;l.timing.NQ||c6e(l.Vp,n,l.Je,l.policy,l.N)}}l.hA.OC(5)}; Zn=function(l,n,O,L,X){return n>=400?(l.lastError="net.badstatus",!0):(X===void 0?0:X)?(l.lastError="ump.spsrejectfailure",!0):O||L!==void 0&&L?!1:(l.lastError=n===204?"net.nocontent":"net.connect",!0)}; JT=function(l,n){if(l.policy.Q2)return!1;var O=n.getResponseHeader("content-type"),L=n.nU();l=!L||L<=l.policy.mB;return(!n.Ga()||!O||O.indexOf("text/plain")!==-1)&&l}; Hn9=function(l,n){var O="";n=n.u9();n.getLength()<=l.policy.mB&&(O=wW5(l,n.q0()));return O}; wW5=function(l,n){var O=ks(n);return n$(O)?(l.logger.debug(function(){return"Redirecting to "+O}),O):""}; Fw=function(l){return un(l.N,Ne(l.Je.Yt))}; AFe=function(l){var n=l.timing.Ek();n.shost=Ne(l.Je.Yt);return n}; bni=function(l,n){return(l==null?void 0:l.maxWidth)>(n==null?void 0:n.maxWidth)||(l==null?void 0:l.maxHeight)>(n==null?void 0:n.maxHeight)}; rFv=function(l,n){for(var O=g.P(n.keys()),L=O.next();!L.done;L=O.next())if(L=n.get(L.value),L.length!==0){g.ZI(L,function(Z,J){return J.maxFramerate-Z.maxFramerate}); for(var X=[L[0]],F=0,x=1;x<L.length;x++)bni(L[x],X[F])&&(X.push(L[x]),F++);l=l.concat(X)}return l}; uFi=function(l,n){var O=[];n=g.P(n);for(var L=n.next();!L.done;L=n.next()){L=L.value;var X=Ue5[L]||0;l.S&&X>l.S||O.push(L)}return O}; wH=function(l,n,O){var L=Pde[l]||[];O.J("html5_shorts_onesie_mismatched_fix")&&(L=TIa[l]||[]);n.push.apply(n,g.E(L));O.J("html5_early_media_for_drm")&&n.push.apply(n,g.E(Wxa[l]||[]))}; yFe=function(l,n){var O=g.oY(l),L=l.j(),X=L.B;L=L.J("html5_shorts_onesie_mismatched_fix");var F=l.UX();if(L){if(!X.L){if(F&&Hm)return Hm;if(AT)return AT}}else if(AT&&!X.L)return AT;var x=[],Z=[],J={},w=bY.concat(Ecf);L&&(w=bY.concat(NI5));l.J("html5_early_media_for_drm")&&(w=w.concat(Dek),l.J("allow_vp9_1080p_mq_enc")&&w.push(qH5));var H=[].concat(g.E(kP9));if(O.Y)for(var A=0;A<H.length;A++)H[A].length&&pB[H[A][0]]==="a"&&(H[A]=["141"]);if(O.Lf)for(A=0;A<H.length;A++)H[A].length&&pB[H[A][0]]==="o"&& (H[A]=["774"]);l.J("html5_iamf_audio_onesie_fmt")&&H.push(["773"]);w=g.P(w);for(var b=w.next();!b.done;b=w.next()){A=!1;b=g.P(b.value);for(var r=b.next();!r.done;r=b.next()){r=r.value;var U=XE(r,F&&L);if(U&&U.video&&!(Rb(U)&&!O.Cf&&U.video.S>O.zx)){var W=g.HQ(l.j().experiments,"html5_drm_byterate_soft_cap");W>0&&HHk(U)&&U.Sv>W||(A?(x.push(r),wH(r,x,l)):(U=HW(O,U,X),U===!0?(A=!0,x.push(r),wH(r,x,l)):J[r]=U))}}}H=g.P(H);for(w=H.next();!w.done;w=H.next())for(w=g.P(w.value),A=w.next();!A.done;A=w.next())if(A= A.value,(b=J$q(A))&&b.audio&&(l.J("html5_onesie_51_audio")||!CB(b)&&!t6(b)))if(b=HW(O,b,X),b===!0){Z.push(A);wH(A,Z,l);break}else J[A]=b;O.W&&n("orfmts",J);if(L)return X.L&&(X.L=!1,Hm=AT=void 0),F?Hm={video:x,audio:Z}:AT={video:x,audio:Z};AT={video:x,audio:Z};X.L=!1;return AT}; g.e_i=function(l,n,O){var L=O.B,X=[],F=[],x=O.J("html5_shorts_onesie_mismatched_fix");l=l.UX();var Z=bY.concat(Ecf);x&&(Z=bY.concat(NI5));O.J("html5_early_media_for_drm")&&(Z=Z.concat(Dek),O.J("allow_vp9_1080p_mq_enc")&&Z.push(qH5));var J=[].concat(g.E(kP9));if(n.Y)for(var w=0;w<J.length;w++)J[w].length&&pB[J[w][0]]==="a"&&(J[w]=["141"]);if(n.Lf)for(w=0;w<J.length;w++)J[w].length&&pB[J[w][0]]==="o"&&(J[w]=["774"]);O.J("html5_iamf_audio_onesie_fmt")&&J.push(["773"]);Z=g.P(Z);for(w=Z.next();!w.done;w= Z.next()){w=g.P(w.value);for(var H=w.next();!H.done;H=w.next()){H=H.value;var A=XE(H,l&&x);if(A&&A.video){var b=g.HQ(O.experiments,"html5_drm_byterate_soft_cap");if(!(b>0&&HHk(A)&&A.Sv>b)&&HW(n,A,L)===!0){X.push({videoCodec:M1k[pB[H]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}x=g.P(J);for(l=x.next();!l.done;l=x.next())for(l=g.P(l.value),J=l.next();!J.done;J=l.next())if(J=J.value,(Z=J$q(J))&&Z.audio&&(O.J("html5_onesie_51_audio")||!CB(Z)&&!t6(Z))&&HW(n,Z,L)=== !0){F.push({audioCodec:Qe7[pB[J]],numChannels:Z.audio.numChannels});break}return{videoFormatCapabilities:X,audioFormatCapabilities:F}}; rH=function(l){var n={},O=l.uF,L=l.rq,X=O.getVideoData(),F=$W(0),x=O.getPlayerSize(),Z=O.getVisibilityState();F&&(n.f25=F,n.lastManualDirection=kgk(),F=Rw7()||0,F>0&&(F=(L.J("html5_use_date_now_for_local_storage")?Date.now():(0,g.Q_)())-F,L.J("html5_use_date_now_for_local_storage")?F>0&&(n.timeSinceLastManualFormatSelectionMs=F):n.timeSinceLastManualFormatSelectionMs=F));F=L.J("html5_use_streamer_bandwidth_for_low_latency_live")&&X.isLowLatencyLiveStream;if(L.schedule.Wm&&!F){var J;F=L.J("html5_disable_bandwidth_cofactors_for_sabr_live")? !((J=l.e3)==null||!J.xa):!1;n.g6=WI(L.schedule,!F)}J=g.Kw();var w=g.c7.medium,H=Math.floor(w*16/9);F=X.UX()?w:H;w=X.UX()?H:w;n.A4=Math.max(x.width*J,F);n.UW=Math.max(x.height*J,w);n.visibility=Z;n.ET5=MU();n.Jc=O.I6()*1E3;x=l.uF.HF(!0);var A,b,r,U,W,N;n.ctm={defaultPolicy:(x==null?void 0:(A=x.QY)==null?void 0:A.S)||0,smooth:(x==null?void 0:(b=x.xJ3)==null?void 0:b.S)||0,visibility:(x==null?void 0:(r=x.W52)==null?void 0:r.S)||0,Xn:(x==null?void 0:(U=x.yY)==null?void 0:U.S)||0,performance:(x==null? void 0:(W=x.fJ)==null?void 0:W.S)||0,speed:(x==null?void 0:(N=x.NZG)==null?void 0:N.S)||0};if(L.J("html5_sabr_report_sticky_constraints")){var q;n.HC=(x==null?void 0:(q=x.dJp)==null?void 0:q.S)||0}else n.HC=$W();L.J("html5_enable_sabr_drm_hd720p")&&l.sabrLicenseConstraint&&(n.sabrLicenseConstraint=l.sabrLicenseConstraint);if(L.J("html5_onesie_media_capabilities")||L.J("html5_enable_server_format_filter"))n.gS=3;L.J("html5_onesie_audio_only_playback")&&gi(X)&&(n.gS=1);var y;((y=l.e3)==null?0:y.oO)&& l.PFi&&(n.gS=n.gS===void 0?7:n.gS|4);A=X.j7?X.j7:g.oY(X);L.J("html5_onesie_media_capabilities")&&(n.mediaCapabilities=g.e_i(X,A,L));var e;if((e=l.e3)==null?0:e.S&&e.q_){r=L.B;e=[];b=[];U=new Map;L.J("html5_ssap_update_capabilities_on_change")?(r.Wm||jvf(r),W=r.Wm||[]):W=Array.from(r.S.values());W=g.P(W);for(N=W.next();!N.done;N=W.next())q=N.value,q.vM?b.push({audioCodec:Qe7[q.bF],numChannels:q.numChannels,spatialCapabilityBitmask:YH7[q.bF]}):(y=M1k[q.bF],N={videoCodec:y,maxWidth:q.maxWidth||0,maxHeight:q.maxHeight|| 0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.q2||!1},q.maxBitrateBps&&(N.maxBitrateBps=q.maxBitrateBps,x=XE(q.itag),Z=void 0,((Z=x)==null?0:Z.video)&&HW(A,x,r)===!0&&(x=x.Sv*8,x>N.maxBitrateBps&&(N.maxBitrateBps=x))),q=y+"_"+q.q2,y=U.get(q)||[],y.push(N),U.set(q,y));e=rFv(e,U);r={};L.J("html5_ssff_denylist_opus_low")&&(r={itagDenylist:[249,350]});n.mediaCapabilities={videoFormatCapabilities:e,audioFormatCapabilities:b,hdrModeBitmask:3,perPlaybackAttributes:r}}var d;if((d=l.e3)==null?0:d.S){n.hL= A.hL;var B;n.zx=(B=l.e3)==null?void 0:B.zx}L.IA&&(n.BL=L.IA);n.vW=l.eP;n.WB=l.WB;n.NE=l.NE;n.Wh=l.Wh;if(L.J("html5_fix_time_since_last_seek_reporting")?l.tS!==void 0:l.tS)n.qPQ=(0,g.Q_)()-l.tS;l.isPrefetch&&L.J("html5_report_prefetch_requests")&&(n.isPrefetch=!0);CG||(n.JAf=!0);d=uO(L.schedule)*1E3;d>0&&(n.GG=d);var R;((R=l.e3)==null?0:R.OE)&&l.DW&&l.DW<Infinity&&(n.DW=l.DW);O=O.getPlaybackRate();O!==1&&(n.playbackRate=O);var a;((a=l.e3)==null?0:a.M5)&&l.lW&&(n.YS=l.YS,n.V6=l.V6,n.lW=l.lW);L.J("allow_proxima_live_latency")&& (Ve()===1&&(n.l25=1),L.J("html5_sabr_force_proxima")&&(n.bfF=1),a=g.HQ(L.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),n.h6F=a>0?a:L.schedule.interruptions[0]||0);var Lv;if((Lv=l.e3)==null?0:Lv.Sz)n.uT=l.uT;var Fa;((Fa=l.e3)==null?0:Fa.GU)&&X.D0&&(n.audioTrackId=X.D0);var l9;if((l9=l.e3)==null?0:l9.YD)if(l=ZHk())n.detailedNetworkType=je9[l]||je9.other;return n}; UW=function(l,n,O,L,X,F,x){var Z={};n&&(Z.Lc=n);if(!l)return Z;Z.playbackCookie=O==null?void 0:O.playbackCookie;X&&(Z.ZY=X);Z.RZ=[];Z.SW=[];if(x==null?0:x.size)for(n=g.P(x.values()),O=n.next();!O.done;O=n.next())Z.SW.push(O.value);if(l.sabrContextUpdates.size>0)for(n=g.P(l.sabrContextUpdates.values()),O=n.next();!O.done;O=n.next())GPf(Z,O.value,L);XZ(l)&&!g.fy(l)&&l.J("html5_enable_sabr_request_pipelining")&&F&&GPf(Z,F,L);l.w9&&(Z.ONp=l.w9);L=l.j().S;Z.clientInfo={clientName:meq[L.c.toUpperCase()]|| 0};L.cbrand&&(Z.clientInfo.deviceMake=L.cbrand);L.cmodel&&(Z.clientInfo.deviceModel=L.cmodel);L.cver&&(Z.clientInfo.clientVersion=L.cver);L.cos&&(Z.clientInfo.osName=L.cos);L.cosver&&(Z.clientInfo.osVersion=L.cosver);L=l.j();L.J("html5_sabr_enable_server_xtag_selection")&&L.Fp&&(Z.clientInfo.hl=L.Fp);l.Th&&(Z.Th=l.Th);return Z}; GPf=function(l,n,O){var L=n.type||0;(O==null?0:O.has(L))?l.SW.push(n):l.RZ.push(L)}; Iq=function(l,n,O,L,X,F){var x=F===void 0?{}:F;var Z=x.Ki===void 0?[]:x.Ki;var J=x.xI===void 0?!1:x.xI;var w=x.ZB===void 0?0:x.ZB;var H=x.poToken===void 0?"":x.poToken;var A=x.Xr===void 0?void 0:x.Xr;var b=x.WI===void 0?"":x.WI;var r=x.A7===void 0?0:x.A7;var U=x.iJ===void 0?new Uint8Array(0):x.iJ;var W=x.dM===void 0?!1:x.dM;F=x.FD===void 0?0:x.FD;x=x.Lc===void 0?void 0:x.Lc;t7.call(this,n,X);var N=this;this.policy=l;this.logger=new g.OW("dash/request");this.RE=this.IR=0;this.Ky=!1;this.jt=this.Vw= null;this.Rg=!1;this.iJ=this.A7=null;this.JB=this.SY=!1;this.EJ=null;this.FD=this.JE=0;this.cD=!1;this.DQ={OC:function(y){N.OC(y)}, MNQ:function(){return N.qn}, rEJ:function(y){N.qn=y}, QLG:function(y){N.IR=y}, eap:function(y){N.T2.lastError=y}, SM:function(){return N.xhr}}; this.timing=new Ke(this,O);this.xI=J;this.A7=r;this.iJ=U;this.Je=g.c_(this.info,this.policy,L);this.Je.set("rn",this.ih().toString());this.Je.set("rbuf",(w*1E3).toFixed().toString());this.xI&&this.Je.set("smb","1");this.policy.rH&&H&&this.Je.set("pot",H);b&&this.Je.set("bbs",b);this.policy.useUmp&&!Du(this.Je.Yt)&&(this.vH=new Ce(this),this.Je.set("ump","1"),this.Je.set("srfvp","1"));if(l=this.policy.rE?this.policy.Lr&&!isNaN(this.info.gZ)&&this.info.gZ>this.policy.uY?!1:!0:!1)n=null,this.policy.w$&& this.policy.gb?n=[1]:W&&(n=[]),n!=null&&(this.policy.zF&&n.push(2),this.Je.set("defsel",n.join(",")));this.T2=new oQ(this,this.policy,this.Je,this.info.Vp,this.timing,this.logger,L,A);this.Ki=Z||null;this.QU=Iu8(this);xe9(this.T2);L=void 0;if(this.policy.U$||this.vH||this.policy.z3)L={method:"POST"},Z=(0,g.uY)([120,0]),A={},this.policy.PU&&x&&(x=UW(void 0,x),A.W6=x),this.policy.jA&&this.iJ&&(A.videoPlaybackUstreamerConfig=this.iJ),this.policy.z3&&(x=this.info.L)&&Object.assign(A,x),Object.keys(A).length> 0?L.body=g.Cu(A,g.tw):L.body=Z;if(this.A7&&this.iJ){this.Je.set("iwts","1");L={method:"POST"};x={Wh:this.A7*1E3};var q;Z=(q=this.info.L)==null?void 0:q.xQ;q=g.Cu({iS:x,xQ:Z||void 0,videoPlaybackUstreamerConfig:this.iJ},g.tw);L.body=q}try{this.xhr=na(this.Je,this.policy.G,this.timing,l,L),this.T2.W.start(),F&&(this.QC=new g.vs(this.qO,F,this),this.QC.start(F+(this.timing.Rn.G.sP()||0)*1E3)),this.policy.jS&&fe(this.timing,this.Ae()),this.logger.debug(function(){return"Sent, itag="+N.Je.get("itag")+ " seg="+N.info.Z2[0].Ef+" range="+N.Je.get("range")+" time="+Math.round(N.info.Z2[0].Fo)+"-"+Math.round(g.fO(N.info.Z2).Pl)+" rtp="+(N.timing.Iy()-Date.now()).toFixed(0)}),g.Jo(function(){})}catch(y){de9(this,y,!0)}}; Iu8=function(l){if(!(B_(l.info)&&l.info.wH()&&l.policy.IA&&l.Ki)||l.info.Vp.W>=2||$W()>0||!eq5())return!1;var n=l.Je.get("aitags");if(!n)return!1;n=CC(n).split(",");for(var O=[],L=g.P(l.Ki),X=L.next();!X.done;X=L.next())X=X.value,g.CO(n,X)&&O.push(X);if(!O.length)return!1;l.Je.set("altitags",g.RW(O.join(",")));return!0}; de9=function(l,n,O){O=O===void 0?!1:O;g.Ir(n);l.T2.lastError="player.exception";l.errorMessage=n.name+"_"+n.message;O?g.Jo(function(){hT(l.T2)}):hT(l.T2)}; $eq=function(l,n){l.timing.NQ=!0;l.xhr.Ga()&&l.timing.tD();if(l.policy.d8){var O;(O=l.QC)==null||O.stop()}Xw(l.qn,n,!1)}; V1q=function(l,n){l.info=n;if(l.qn){var O=l.qn;n=n.Z2;(n.length!==O.Z2.length||n.length<O.f1.length)&&gcv("dash/request",260511119,""+n.length,""+O.Z2.length,""+O.f1.length);O.Z2=n;for(var L=n[0].range,X=new Pa,F=0;F<O.f1.length;F++)TA(X,O.f1[F].S);for(F=0;F<O.f1.length;F++){O.f1[F].info=n[F];var x=n[F].range;O.f1[F].S=Wa(X,x.start-L.start,x.length)}}l.QU=!1}; BI5=function(l){l.JE&&(l.xhr.status=l.JE,l.IR=l.JE)}; Pm=function(l,n){pe.call(this,l,n);this.Hm=!0;this.Q5=!1;this.Pm=this.Fi=0;this.G3=NaN}; cFe=function(l,n,O){var L=l.Gn?Math.max(n,O/l.Gn):n,X=l.Rn.W.N;X&&(L=n,l.Gn&&(L=Math.max(n,O/l.Gn*X)));bO(l.Rn,n,O,L)}; TQ=function(l){this.W={};this.logger=new g.OW(l)}; Wm=function(l){TQ.call(this,"sabr");this.hA=l}; EW=function(l){g.V.call(this);this.L=l;this.logger=new g.OW("onesie");this.pp=new Map;this.W=this.S=!1;this.e3=this.T3=null;this.N=!1}; ini=function(l,n,O){l.pp.get(n).Mn=O}; qw=function(l,n){l.pp.has(n)&&(Nw?l.pp.get(n).jD.clear():l.pp.get(n).f1=new Pa,Dn(l,n),l.W=!0)}; z_v=function(l){for(var n=g.P(l.pp),O=n.next();!O.done;O=n.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;L.Ag||qw(l,O)}}; SH7=function(l,n){n=l.pp.get(n);if(!n)return 0;l=0;if(n.Z2.length>0){n=g.P(n.Z2);for(var O=n.next();!O.done;O=n.next()){var L=void 0;l+=((L=O.value.range)==null?void 0:L.length)||0}return l}if(n.s1.length>0)for(O=g.P(n.s1),L=O.next();!L.done;L=O.next())l+=L.value.Pf||0;return l+n.i6}; k0=function(l,n){if(Nw){var O=0;l=l.pp.get(n);if(l==null||!l.jD)return 0;l=g.P(l.jD.values());for(n=l.next();!n.done;n=l.next())O+=n.value.data.getLength();return O}return((O=l.pp.get(n))==null?void 0:O.f1.getLength())||0}; yP=function(l,n){l=l.pp.get(n);if(Nw){if(l==null||!l.Ag)return!1;n=l.jD.size>0;return l.QJ.length>0||n}return!(l==null||!l.Ag)&&!(l==null||!l.f1.getLength())}; pWf=function(l,n){var O=l.pp.get(n),L=SH7(l,n),X=!L&&!!O.bytesReceived;if(Nw){var F;if((F=l.T3)==null?0:F.tA){l=g.P(O.jD.values());for(n=l.next();!n.done;n=l.next())if(!n.value.K4)return!1;return X}}else if(F=l.p4(n),X&&l.S&&F!==void 0)return F;return(X||O.bytesReceived===L)&&O.WK+k0(l,n)===O.bytesReceived}; se5=function(l,n,O){l.pp.set(n,{f1:new Pa,WK:0,bytesReceived:0,i6:0,R9:!1,h7:!1,p4:!1,vM:O,I9:[],Z2:[],s1:[],Ag:!1,jD:new Map,fY:new Map,QJ:[]});l.logger.debug(function(){return"[initStream] formatId: "+n})}; fui=function(l,n,O,L){O.Z2.push.apply(O.Z2,g.E(L));if(Nw){O.fY.has(n)||O.fY.set(n,[]);var X;(X=O.fY.get(n)).push.apply(X,g.E(L))}else if(O.qn)for(l=g.P(L),n=l.next();!n.done;n=l.next())O.qn.Z2.push(n.value);else{O.qn=new La(l.e3,[].concat(g.E(O.Z2)));var F;((F=l.e3)==null?0:F.vp)&&g.c(l,O.qn)}}; Kxq=function(l,n,O){var L,X=(L=l.T3)==null?void 0:L.N.get(n);if(!X)return[];if(O.c5){var F;return((F=X.JF(0,O.clipId))==null?void 0:F.Z2)||[]}if(X.I7()){var x=O.startMs,Z=O.durationMs,J=1E3,w;if(((w=l.e3)==null?0:w.S)&&O.timeRange){var H;x=(H=O.timeRange.startTicks)!=null?H:-1;var A;Z=(A=O.timeRange.CU)!=null?A:-1;var b;J=(b=O.timeRange.timescale)!=null?b:-1}if(O.UA<0||O.QS<0||Z<0||x<0||O.Pf<0||J<0)return qw(l,n),[];l=MS(O.UA,O.Pf);n=O.VF||0;return[new es(3,X,l,"makeSliceInfosMediaBytes",O.QS-1,x/ J,Z/J,n,l.length-n,void 0,O.YV,O.clipId)]}if(O.QS<0)return qw(l,n),[];var r;return((r=l.T3)==null?0:r.tA)?(n=X.uV,w=n*X.info.Sv,H=((x=l.e3)==null?0:x.z$)?O.VF:void 0,((J=l.e3)==null?0:J.v0)&&O.timeRange&&!H&&(Z=O.timeRange.startTicks/O.timeRange.timescale),[new es(3,X,void 0,"makeSliceInfosMediaBytes",O.QS,Z,n,H,w,!0,O.YV,O.clipId)]):[]}; auq=function(l,n,O){l.T3=n;l.e3=O;n=g.P(l.pp);for(O=n.next();!O.done;O=n.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;for(var X=g.P(L.I9),F=X.next();!F.done;F=X.next()){F=F.value;var x=Kxq(l,O,F);fui(l,F.BO,L,x)}}}; Mw=function(l,n,O,L){l.logger.debug(function(){return"[addStreamData] formatId: "+O+",headerId: "+n+" bytes: "+L.getLength()}); (l=l.pp.get(O))&&!l.h7&&(Nw?(l.jD.has(n)||l.jD.set(n,{data:new Pa,zc:0,K4:!1}),TA(l.jD.get(n).data,L)):TA(l.f1,L),l.bytesReceived+=L.getLength(),l.R9=!0)}; Dn=function(l,n){l.logger.debug(function(){return"[closeStream] formatId: "+n}); var O=l.pp.get(n);O&&!O.h7&&(O.h7=!0,O.Mn&&O.Mn(),R_f(l)&&l.L.OL())}; R_f=function(l){l=g.P(l.pp.values());for(var n=l.next();!n.done;n=l.next())if(!n.value.h7)return!1;return!0}; QP=function(l,n,O,L,X,F,x,Z){g.V.call(this);this.policy=l;this.info=n;this.T3=O;this.hA=X;this.wR=Z;this.logger=new g.OW("sabr");this.vH=new Ce(this);this.As=new Wm(this);this.Q4=new EW(this);this.state=1;this.Ut=!1;this.J6=0;this.clipId="";this.F4=this.Eu=-1;this.z0=0;this.KC=-1;this.cD=this.PN=!1;this.ex=0;this.jQ=!1;this.policy.yd?this.mG=new Pm(this,F):this.mG=new Ke(this,F);this.Je=this.policy.Sz?n.j6:Cd5(n,this.policy,L);this.Je.set("rn",""+this.ih());this.Je.set("alr","yes");auq(this.Q4,O, l);this.T2=new oQ(this,this.policy,this.Je,n.Vp,this.mG,this.logger,L,x,this.policy.enableServerDrivenRequestCancellation);xe9(this.T2);var J;if((J=this.policy)==null?0:J.vp)g.c(this,this.Q4),g.c(this,this.T2);l=n.W;n={method:"POST",body:l};l&&(this.z0=l.length);try{this.xhr=na(this.Je,this.policy.G,this.mG,CG,n),this.policy.jS&&fe(this.mG,this.Ae()),this.T2.W.start()}catch(w){g.d2(w)}}; t1q=function(l){l.policy.eA&&l.UI&&!l.jQ?l.jQ=!0:l.mG.tD()}; vc0=function(l,n){var O=-1,L=-1,X=-1,F;if((F=l.gW)==null?0:F.items)for(l=g.P(l.gW.items),F=l.next();!F.done;F=l.next())F=F.value,n<F.JR||F.JR<O||(O=F.JR,L=F.un,X=F.minReadaheadMs);return{Mpz:O,un:L,z4:X}}; lyi=function(l){this.S=l;this.Y=this.Hm=this.T=this.Cf=this.L=this.B=this.V=this.Lf=this.G=this.z3=this.NQ=this.Q5=this.Wm=0;this.ticks={}}; eE=function(l){l.Wm||(l.Wm=(0,g.Q_)(),MI("mb_s",l.Wm,l.S))}; nzk=function(l){l.Q5||(l.Q5=(0,g.Q_)(),MI("ovfs_rp",l.Q5,l.S))}; Od5=function(l){l.NQ||(l.NQ=(0,g.Q_)(),MI("oafs_rp",l.NQ,l.S))}; gzf=function(l){l.B||(l.B=(0,g.Q_)(),MI("vda",l.B,l.S),l.L&&L1(g.Oy(),4))}; Lp5=function(l){l.L||(l.L=(0,g.Q_)(),MI("ada",l.L,l.S),l.B&&L1(g.Oy(),4))}; X_0=function(l){l.Cf||(l.Cf=(0,g.Q_)(),MI("vis_a",l.Cf,l.S))}; ozf=function(l){l.T||(l.T=(0,g.Q_)(),MI("ais_a",l.T,l.S))}; Fpa=function(l){l.Hm||(l.Hm=(0,g.Q_)(),MI("vrb_f",l.Hm,l.S))}; xSq=function(l){l.Y||(l.Y=(0,g.Q_)(),MI("arb_f",l.Y,l.S))}; hb5=function(l,n,O){var L=n instanceof QP&&!l.N&&!l.W,X=!l.N&&(O==null?void 0:O.info.video);O=!l.W&&(O==null?void 0:O.info.audio);n.state===3?((X||L)&&l.tick("vrr"),(O||L)&&l.tick("arr")):n.state===4?X?(l.N=n.Ae(),L1(g.Oy(),4)):O&&(l.W=n.Ae()):n instanceof Iq&&n.f4()&&X&&L1(g.Oy(),4)}; Zd9=function(l){return!!l.W&&!!l.N}; Y0=function(l,n,O,L,X,F,x){g.hj.call(this);var Z=this;this.sf=l;this.T3=n;this.policy=O;this.videoTrack=L;this.audioTrack=X;this.iK=x;this.Wm=this.S=null;this.B=this.T=NaN;this.G=0;this.Y=NaN;this.V=null;this.Lf=this.Q5=NaN;this.Cf=new Map;this.NQ=this.N=this.L=NaN;this.DQ={cno:function(){return Z.W}}; this.W=F?1:0}; w_f=function(l,n,O,L){L=L===void 0?!0:L;if(O&&!l.Cf.has(n.Ef)){for(var X=n.startTime,F=[],x=0;x<O.S.length;x++){var Z=O.S[x],J=X;X=J+O.W[x];F.push({startTime:J,endTime:X,adCpn:Z})}l.Cf.set(n.Ef,F)}if(l.policy.Oc)if(X=l.Wm&&n.Ef===l.Wm.Ef+1,l.Wm=n,F=l.S&&n.Ef===l.S.Ef+1,F=l.S&&X&&F&&l.S.BM.event!=="stop"&&l.S.BM.event!=="predictStart",x=n.BM||null,Z=l.videoTrack.S.index.G2(),l.policy.Wp&&(Z=Math.max(l.videoTrack.S.index.G2(),l.audioTrack.S.index.G2())),Z=n.Ef>=Z,J=l.T3.isManifestless&&l.policy.Al, x){var w;if(((w=l.S)==null?void 0:w.BM.event)==="predictStart"&&l.S.Ef<n.Ef&&x.event==="stop"){var H;l.sf.handleError("ssdai.missingstartcueevent",{lastpredict:((H=l.S)==null?void 0:H.Ef)||0,csq:n.Ef},0)}l.S={BM:x,Ef:n.Ef,Lj:!!O,RR:L};Z?jE(l,x,n.Ef):J&&(X?F?jE(l,x,n.Ef):x.event==="continue"||x.event==="stop"?JW7(l,n):jE(l,x,n.Ef):jE(l,x,n.Ef))}else F&&JW7(l,n),l.W===4&&GQ(l,5,"qend")}; jE=function(l,n,O){n.startSecs+=isNaN(l.G)?0:l.G;l=l.T3;l.Q5.push(n);l.publish("cuepointsadded",O)}; Hd9=function(l,n,O){if(l.W!==0&&O&&n.Z2[0].RR()){var L=n.Z2[0].Ef,X=n.Z2[0].Fo;n=n.isDecorated();my(l,L,X,n,O)}}; my=function(l,n,O,L,X){var F;n!==((F=l.S)==null?void 0:F.Ef)||l.W===1||L||l.S.BM.event==="predictStart"||l.Sp("sdai",{undecevt:1,sq:n,mt:O,evt:l.S.BM.event},!0);n>l.B&&(l.B=NaN,l.T=NaN);if(l.S&&l.S.Ef===n)if(L=l.S,X&&L){var x=L.BM;F=X.Df(x);x.event==="predictStart"&&(l.NQ=n);l.Sp("sdai",{onqevt:x.event,sq:n,mt:O,gab:F,cst:x.startSecs,cueid:l.policy.dY&&(F||x.event==="start")?x.identifier:void 0},!0);if(F)if(x.event!=="predictStart")x.event==="start"&&l.NQ===n-1&&l.Sp("sdai",{gabonstart:n}),L.Lj?GQ(l, 4,"cue"):(l.B=n,l.T=O,l.Sp("sdai",{joinad:l.W,sg:l.B,st:l.T.toFixed(3)}),l.Y=Date.now(),GQ(l,2,"join"),X.Zc(L.BM));else{var Z=n+Math.max(Math.ceil(-x.S/5E3),1);F=Math.floor(O-x.S/1E3);l.policy.B?l.N=F:l.L=Z;l.Sp("sdai",{onpred:O,estsq:Z,estmt:F.toFixed(3)});IQ(l.sf,F,F,Z);l.Y=Date.now();GQ(l,3,"predict");X.Zc(L.BM)}else l.W===1?((Z=l.V)==null?0:Z.YE(O))?(IQ(l.sf,O,O,n),GQ(l,4,"sk2had")):GQ(l,5,"nogab"):x.event==="predictStart"&&(l.policy.B&&l.N>0?(O=Math.floor(O-x.S/1E3),l.N!==O&&l.Sp("sdai",{updateSt:O, old:l.N}),l.N=O):l.L>0&&(O=n+Math.max(Math.ceil(-x.S/5E3),1),l.L!==O&&(l.Sp("sdai",{updateSt:O,old:l.L}),l.L=O)));var J,w;if(l.iK&&x.event==="start"&&((J=l.S)==null?void 0:J.BM.event)!=="predictStart"&&((w=l.S)==null?void 0:w.Ef)===n-1){var H;l.Sp("sdai",{ovlpst:(H=l.S)==null?void 0:H.BM.event,sq:n})}}else l.Sp("sdai",{nulldec:1,sq:n,mt:O.toFixed(3),evt:(L==null?void 0:(x=L.BM)==null?void 0:x.event)||"none"});else l.W===1&&GQ(l,5,"noad")}; bd5=function(l,n,O){if(l.W===1||l.W===2)return!1;if(l.W!==0&&n===l.audioTrack){if(l.policy.B)return AWa(l.videoTrack,O)||AWa(l.videoTrack,O+1);l=dH(l.videoTrack);if(O>(l?l.Ef:-1))return!1}return!0}; $0=function(l,n,O){return(O<0||O===l.B)&&!isNaN(l.T)?l.T:n}; JW7=function(l,n){if(l.S){var O=l.S.BM.HM-(n.startTime+l.G-l.S.BM.startSecs);O<=0||(O=new VT(l.S.BM.startSecs-(isNaN(l.G)?0:l.G),O,l.S.BM.context,l.S.BM.identifier,"stop",l.S.BM.S+n.duration*1E3),l.Sp("cuepointdiscontinuity",{segNum:n.Ef}),jE(l,O,n.Ef))}}; GQ=function(l,n,O){l.W!==n&&(l.Sp("sdai",{setsst:n,old:l.W,r:O}),l.W=n)}; VP=function(l,n,O,L){(L===void 0?0:L)?GQ(l,1,"seek"):n>0&&Math.abs(n-O)>=5&&l.W===4&&GQ(l,5,"sk2t."+n.toFixed(2)+";ct."+O.toFixed(2))}; Bm=function(l,n,O){this.audio=l;this.video=n;this.reason=O}; cm=function(l,n,O){this.S=l;this.reason=n;this.token=O;this.videoId=void 0}; iY=function(l,n,O){g.V.call(this);this.policy=l;this.L=n;this.Sp=O;this.N=new Map;this.B=0;this.V=!1;this.S="";this.W=!1}; zQ=function(l,n,O){if(O===void 0?0:O)l.V=!0;++l.B;O=6E4*Math.pow(2,l.B);O=(0,g.Q_)()+O;l.N.set(n.info.id,O)}; SE=function(l){for(var n=g.P(l.N.entries()),O=n.next();!O.done;O=n.next()){var L=g.P(O.value);O=L.next().value;L=L.next().value;L<(0,g.Q_)()&&l.N.delete(O)}return l.N}; rW0=function(l){return l.V&&SE(l).size>0}; pa=function(l,n){l.S!==n&&(l.S=n,l.W=!0)}; USa=function(l,n){var O;n&&(O=g.ak(l.L.S,function(X){return X.id===n})); if(!O&&(O=g.ak(l.L.S,function(X){var F;return!((F=X.O_)==null||!F.isDefault)}),n)){var L; l.Sp("iaf",{id:n,sid:(L=O)==null?void 0:L.id})}return O}; fa=function(l,n,O,L,X,F){var x=this;F=F===void 0?[]:F;this.sf=l;this.Q5=n;this.policy=O;this.T3=L;this.V=X;this.Of=F;this.logger=new g.OW("dash/abr");this.S=iQ;this.N=this.T=null;this.Y=-1;this.Hm=!1;this.nextVideo=this.W=null;this.L=[];this.Fi=new Set;this.z3={};this.nf=new Jt(1);this.G=0;this.Pm=this.NQ=this.Wm=!1;this.Lf=0;this.G3=!1;this.Cf=new Set;this.wq=!1;this.DQ={py:function(){sW(x)}}; this.B=new iY(this.policy,X,function(Z,J){x.sf.Sp(Z,J)})}; Ezg=function(l,n,O){Ka(l,n);n=USa(l.B,O);O||n||(n=uy7(l));n=n||l.V.S[0];l.W=l.T3.S[n.id];sW(l);l.T=l.W;Pn5(l);TKi(l);l.N=l.nextVideo;l.T=l.W;return Wp9(l)}; qLi=function(l,n){if(NK9(l,n))return null;if(n.reason==="m"&&n.isLocked())return l.logger.debug(function(){return"User sets constraint to: "+xc(n)}),Ka(l,n),l.G=l.L.length-1,sW(l),aQ(l),l.NQ=l.NQ||l.N!==l.nextVideo,l.N=l.nextVideo,new Bm(l.W,l.N,n.reason); n.reason==="r"&&(l.Y=-1);Ka(l,n);aQ(l);if(n.reason==="r"&&l.nextVideo===l.N)return new Bm(l.W,l.nextVideo,n.reason);DS7(l);return null}; ktq=function(l,n,O){l.W=l.T3.S[n];l.T=l.W;return new Bm(l.T,l.N,O?"t":"m")}; yWf=function(l,n){if(n.info.video){if(l.N!==n)return l.N=n,Wp9(l)}else l.Pm=l.T!==n,l.T=n;return null}; Ms8=function(l,n){if(n.S.info.video&&n.L){var O=(n.W+n.N)/n.duration,L=n.S.info.Sv;O&&L&&(l.nf.Zm(1,O/L),l.policy.N&&O/L>1.5&&l.sf.Sp("overshoot",{sq:n.Ef,br:O,max:L}))}}; RQ=function(l,n,O){zQ(l.B,n,O===void 0?!1:O);l.Y=-1;Ka(l,l.S)}; Qf5=function(l,n){return new Bm(l.T,l.N,n||l.S.reason)}; DS7=function(l){if(l.N&&l.nextVideo&&Ca(l,l.N.info)<Ca(l,l.nextVideo.info)){var n=l.S.reason;l.Wm=l.Wm||n==="r"||n==="u"||n==="v"}}; Wp9=function(l){l.Hm?l.Hm=!1:l.Y=(0,g.Q_)();l.Wm=!1;l.wq=!1;return new Bm(l.T,l.N,l.S.reason)}; eb9=function(l,n){var O={};n=g.P(n);for(var L=n.next();!L.done;L=n.next())if((L=L.value)&&L.video){var X=L.video.S,F=O[X],x=F&&Rb(F)&&F.video.S>l.policy.zx,Z=X<=l.policy.zx?Rb(L):fB(L);if(!F||x||Z)O[X]=L}return O}; Ka=function(l,n){l.S=n;var O=l.V.videoInfos;if(!l.S.isLocked()){var L=(0,g.Q_)();O=g.Jq(O,function(Z){if(Z.Sv>this.policy.Sv)return!1;var J=this.T3.S[Z.id];return SE(this.B).get(Z.id)>L?!1:J.Vp.W>4||J.V>4?(this.logger.debug(function(){return"Remove "+o1(Z)+"; 4 load failures"}),!1):this.Cf.has(+Z.itag)?!1:!0},l); rW0(l.B)&&(O=g.Jq(O,function(Z){return Z.video.width<=854&&Z.video.height<=480}))}O.length||(O=l.V.videoInfos); var X=O;l.policy.Vz&&(X=YL5(l,X,n));X=g.Jq(X,n.L,n);if(l.S.isLocked()&&l.B.S){var F=g.ak(O,function(Z){return Z.id===l.B.S}); F?X=[F]:pa(l.B,"")}l.policy.Vz||(X=YL5(l,X,n));X.length||(X=[O[0]]);X.sort(function(Z,J){return Ca(l,Z)-Ca(l,J)}); n={};for(O=1;O<X.length;n={Zk:void 0,TD:void 0},O++)n.TD=X[O-1],n.Zk=X[O],n.TD.video.width>n.Zk.video.width?(g.t0(X,O),O--):Ca(l,n.TD)*l.policy.Y>Ca(l,n.Zk)&&(g.t0(X,O-1),O--);var x=X[X.length-1];l.G3=!!l.N&&!!l.N.info&&l.N.info.bF!==x.bF;l.logger.debug(function(){return"Constraint: "+xc(l.S)+", "+X.length+" fmts selectable, max selectable fmt: "+o1(x)}); l.L=X;l.Fi.clear();n=!1;for(O=0;O<X.length;O++)n?l.Fi.add(X[O].itag):X[O].video.S>=1080&&(n=!0);jfi(l.policy,x,l.T3.tA)}; YL5=function(l,n,O){var L=O.reason==="m"||O.reason==="s";l.policy.tW&&tT&&g.Wo&&(!L||O.S<1080)&&(n=n.filter(function(w){return w.video&&(!w.W||w.W.powerEfficient)})); if(n.length>0)if(ut()){var X=eb9(l,n);n=n.filter(function(w){return!!w&&!!w.video&&w.bF===X[w.video.S].bF})}else{var F,x,Z=(F=n[0])==null?void 0:(x=F.video)==null?void 0:x.S; if(Z){O=n.filter(function(w){return!!w&&!!w.video&&w.video.S===Z}); var J=eb9(l,O)[Z].bF;n=n.filter(function(w){return!!w&&!!w.video&&w.bF===J})}}return n}; Gt7=function(l,n){for(var O=0;O+1<l.L.length&&l.L[O].video.quality==="tiny";)O++;var L=M$(l.Q5)/l.policy.Y;return Ca(l,n.info)+Ca(l,l.L[O])>L}; sW=function(l){if(!l.W||!l.policy.L&&!l.W.info.O_){var n=l.V.S;l.W&&(n=n.filter(function(L){return L.audio.S===l.W.info.audio.S}),n.length||(n=l.V.S)); l.W=l.T3.S[n[0].id];if(n.length>1){if(l.policy.R4){if(l.policy.Fp)return;var O=g.ak(n,function(L){return L.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); O&&(l.W=l.T3.S[O.id])}O=!1;if(O=l.policy.j3?!0:l.S.isLocked()?l.S.S<240:Gt7(l,l.W))l.W=l.T3.S[g.fO(n).id]}}}; aQ=function(l){if(!l.nextVideo||!l.policy.L)if(l.S.isLocked())l.nextVideo=l.S.S<=360?l.T3.S[l.L[0].id]:l.T3.S[g.fO(l.L).id],l.logger.debug(function(){return"Select max fmt: "+o1(l.nextVideo.info)}); else{for(var n=Math.min(l.G,l.L.length-1),O=M$(l.Q5),L=Ca(l,l.W.info),X=O/l.policy.Wm-L;n>0&&!(Ca(l,l.L[n])<=X);n--);for(var F=O/l.policy.Y-L;n<l.L.length-1&&!(Ca(l,l.L[n+1])>=F);n++);l.nextVideo=l.T3.S[l.L[n].id];l.G!==n&&l.logger.info(function(){return"Adapt to: "+o1(l.nextVideo.info)+", bandwidth: "+O.toFixed(0)+", bandwidth to downgrade: "+X.toFixed(0)+", bandwidth to upgrade: "+F.toFixed(0)+", constraint: "+xc(l.S)}); l.G=n}}; Pn5=function(l){var n=l.policy.Wm,O=M$(l.Q5),L=O/n-Ca(l,l.W.info);n=g.Rk(l.L,function(X){return Ca(this,X)<L},l); n<0&&(n=0);l.G=n;l.nextVideo=l.T3.S[l.L[n].id];l.logger.info(function(){return"Initial selected fmt: "+o1(l.nextVideo.info)+", bandwidth: "+O.toFixed(0)+", max video byterate: "+L.toFixed(0)})}; TKi=function(l){if(l.Of.length){var n=l.Of,O=function(L,X){if(L.info.bF==="f"||n.includes(Dy(g.n5(L.info,l.T3.tA))))return L;for(var F={},x=0;x<X.length;F={CF:void 0,FM:void 0},x++){var Z=l.T3.S[X[x].id];if(n.includes(Dy(g.n5(Z.info,l.T3.tA)))){var J=L.info.bF,w=Z.info.bF;if(J===w||ut()){if(L.info.S!==Z.info.S)return l.sf.Sp("ombifa",{mismatch:"xtag",f:L.info.id,t:Z.info.id}),L;F.CF=L.info.itag;F.FM=Z.info.itag;l.sf.Sp("ombifa",{f:F.CF,t:F.FM});l.logger.info(function(H){return function(){return"Initial format selection changed from "+ H.CF+" to "+H.FM+" based on prefetched media."}}(F)); l.Hm=!0;return Z}l.sf.Sp("ombifa",{mismatch:"efficient",fc:J,tc:w})}}l.sf.Sp("ombifa",{mismatch:"unselectable",fmts:n.join(".")});return L}; l.nextVideo=O(l.nextVideo,l.V.videoInfos);l.W=O(l.W,l.V.S)}}; Ca=function(l,n){if(!l.z3[n.id]){var O=l.T3.S[n.id].index.HZ(l.Lf,15);O=n.l0&&l.N&&l.N.index.isLoaded()?O||n.l0:O||n.Sv;l.z3[n.id]=O}O=l.z3[n.id];l.Fi.has(n.itag)&&(O*=1.5);return O*=Math.max(1,l.nf.sP()||0)}; mS7=function(l,n){l=zQ0(l.T3.S,function(O){return O.info.itag===n}); if(!l)throw Error("Itag "+n+" from server not known.");return l}; Iyi=function(l){var n=[];if(l.S.reason==="m"||l.S.reason==="s")return n;if($Bg(l.T3)){for(var O=Math.max(0,l.G-2);O<l.G&&O<l.L.length;O++)n.push(l.L[O].itag);n.reverse()}return n}; NK9=function(l,n){var O;return l.S.XT(n)&&(!l.B.S||!l.S.isLocked()||((O=l.nextVideo)==null?void 0:O.info.id)===l.B.S)}; uy7=function(l){var n=g.ak(l.V.S,function(L){return L.audio.S}),O=g.ak(l.V.S,function(L){return!L.audio.S}); return n?l.policy.Cw?n:O:null}; dSv=function(l){var n=l===void 0?{}:l;l=n.Ce===void 0?!1:n.Ce;var O=n.gb===void 0?!1:n.gb;n=n.rE===void 0?!1:n.rE;return l?n?3:2:O?-1:1}; vm=function(l){this.track=l;this.buffered=[];this.N=this.L=0;this.V={};this.B=0;this.S=new ht}; $S8=function(l,n,O){l.flush();l.W=O;lC(l,3,n)}; lC=function(l,n,O){var L=[],X=l.track.Xp;if(X){X=X.G$();for(var F=0;F<X.length;F++)L.push(Math.round(X.start(F)*1E3)),L.push(Math.round(X.end(F)*1E3))}X=1;F=L.length;if(F===l.buffered.length){for(var x=0;x<=F&&L[x]===l.buffered[x];x++);x>F?X=0:L[x]>l.buffered[x]&&(x===F-1?X=2:x===F-2&&L[x+1]>l.buffered[x+1]&&(X=3))}l.S.add(n<<3|(O&&4)|X);n=Math.ceil(l.track.I6()*1E3);l.S.add(n-l.B);l.B=n;if(X===1)for(l.S.add(F),x=n=0;x<F;x++)l.S.add(L[x]-n),n=L[x];X===3&&l.S.add(L[F-2]-l.buffered[F-2]);X>=2&&l.S.add(L[F- 1]-l.buffered[F-1]);O&&l.S.add(O);l.buffered=L}; n4=function(l,n,O){var L=this;this.policy=l;this.S=n;this.Lf=O;this.L=this.W=0;this.e1=null;this.Wm=new Set;this.Y=[];this.indexRange=this.initRange=null;this.G=new v6;this.NQ=this.Q5=!1;this.DQ={j6F:function(){return L.N}, NEq:function(){return L.chunkSize}, OXo:function(){return L.T}, k9G:function(){return L.V}}; (n=Vs8(this))?(this.chunkSize=n.csz,this.N=Math.floor(n.clen/n.csz),this.T=n.ck,this.V=n.civ):(this.chunkSize=l.z5,this.N=0,this.T=g.D0(16),this.V=g.D0(16));this.B=new Uint8Array(this.chunkSize);this.T&&this.V&&(this.crypto=new RGq(this.T,this.V))}; Vs8=function(l){if(l.policy.D9&&l.policy.T5)for(var n=g.P(l.policy.D9),O=n.next(),L={};!O.done;L={Hn:void 0,I1:void 0},O=n.next())if(O=g.oT(O.value),L.Hn=+O.clen,L.I1=+O.csz,L.Hn>0&&L.I1>0&&l.policy.L===O.docid&&l.S.info.id===O.fmtid&&l.S.info.lastModified===+O.lmt)return l={},l.clen=L.Hn,l.csz=L.I1,l.ck=O.ck,l.civ=O.civ,l}; Oj=function(l){return!!l.e1&&l.e1.pM()}; idv=function(l,n){if(!Oj(l)&&!l.JG()){if(!(l.Q5||(l.Q5=!0,l.N>0))){var O=g_(l);O=jb(l.policy.L,l.S.info,L4(l),O,l.policy.Of);X3(l,O)}if(n.info.type===1){if(l.e1){o2(l,Error("Woffle: Expect INIT slices to always start us off"));return}l.initRange=MS(0,n.S.getLength())}else if(n.info.type===2)l.e1&&l.e1.type===1||o2(l,Error("Woffle: Index before init")),l.indexRange=MS(l.initRange.end+1,n.S.getLength());else if(n.info.type===3){if(!l.e1){o2(l,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(l.e1.type===3&&!Gt(l.e1,n.info)&&(l.Y=[],n.info.Ef!==mp(l.e1)||n.info.W!==0))return;if(n.info.L){O=g.P(l.Y);for(var L=O.next();!L.done;L=O.next())BK8(l,L.value);l.Y=[]}else{l.Y.push(n);l.e1=n.info;return}}else{o2(l,Error("Woffle: Unexpected slice type"));return}l.e1=n.info;BK8(l,n);cW5(l)}}; BK8=function(l,n){var O=0,L=n.S.q0();if(l.L<l.N){O=l.N*l.chunkSize;var X,F=(((X=n.info.range)==null?void 0:X.start)||0)+n.info.W;O-=F;if(O>=L.length)return;if(O<0)throw Error("Missing data");l.L=l.N;l.W=0}for(X={};O<L.length;X={Ua:void 0})if(X.Ua=Math.min(L.length-O,l.B.byteLength-l.W),F=new Uint8Array(L.buffer,L.byteOffset+O,X.Ua),l.B.set(F,l.W),l.W+=X.Ua,O+=X.Ua,l.W===l.B.length){if(n.info===l.e1&&Oj(l)&&O===L.length)break;X=g_(l);X=jb(l.policy.L,l.S.info,L4(l),X,l.policy.Of,l.L,l.B,l.crypto);l.Wm.add(X); X3(l,X);l.JG()||(X=g_(l),l.Lf(L4(l),X!==void 0?(X.downloadedEndTime||0)*X.averageByteRate:X.maxKnownEndTime*X.averageByteRate,X.maxKnownEndTime*X.averageByteRate));l.B=new Uint8Array(l.chunkSize);l.W=0;l.L+=1}}; cW5=function(l){if(Oj(l))if(l.e1&&l.indexRange)if(l.W){var n=new Uint8Array(l.B.buffer,0,l.W),O=zb9(l),L=l.policy.L;Promise.all(l.Wm).then(function(){var X=jb(L,l.e1.S.info,L4(l,!0),O,l.policy.Of,l.L,n,l.crypto);X3(l,X,!0)})}else o2(l,new F3("Woffle: Expect always re-mark currentChunkOffset at EOS")); else o2(l,new F3("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; g_=function(l){return{downloadedEndTime:Math.round(l.e1?l.e1.Pl:0),maxKnownEndTime:Math.round(l.S.index.y$()),averageByteRate:Math.round(l.S.info.l0)}}; zb9=function(l){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(l.S.index.y$()),averageByteRate:Math.round(l.S.info.l0)}}; L4=function(l,n){n===void 0||!n||l.indexRange&&l.initRange&&l.e1||o2(l,new F3("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));n={lmt:l.S.info.lastModified,docid:l.policy.L,fmtid:l.S.info.id,type:l.S.info.mimeType.split(";")[0],csz:l.chunkSize,clen:l.L*l.chunkSize+l.W};l.crypto&&(n.ck=l.T,n.civ=l.V);var O="local://localhost/videoplayback?"+gc(n),L,X;n={itag:+l.S.info.itag,mimeType:l.S.info.mimeType,bitrate:l.S.info.Sv*8,lastModified:String(l.S.info.lastModified),initRange:(L= l.initRange)==null?void 0:iB0(L),indexRange:(X=l.indexRange)==null?void 0:iB0(X),url:O};if(L=l.S.info.S)n.xtags=L;if(L=l.S.info.video)if(n.quality=L.quality,n.qualityLabel=L.qualityLabel,n.width=L.width,n.height=L.height,L=L.fps)n.fps=L;if(l=l.S.info.audio){if(L=l.sampleRate)n.audioSampleRate=String(L);if(l=l.numChannels)n.audioChannels=l}return n}; X3=function(l,n,O){O=O===void 0?!1:O;n.then(function(L){l.Wm.delete(n);(O||L===4)&&l.G.resolve(L)},function(L){l.G.reject(L)})}; o2=function(l,n){g.MW(l.policy.L)!==4&&(g.QJ(l.policy.L,4),g.d2(n),l.G.reject(new F3(n.message)))}; F3=function(l,n){l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.S=n===void 0?!1:n}; SL5=function(l){l=g.vW(l,1886614376);for(var n=g.P(l),O=n.next();!O.done;O=n.next());return g.M9(l,function(L){return HBi(L)})}; p_9=function(l){var n=ei(l,function(X,F){return X+F.length},0); n=new Uint8Array(n);var O=0;l=g.P(l);for(var L=l.next();!L.done;L=l.next())L=L.value,n.set(L,O),O+=L.length;return n}; sfi=function(l,n,O,L,X,F){this.ids=l;this.S=n;this.W=O;this.L=L;this.N=X;this.ph=F}; xS=function(l,n,O){this.initData=l;this.contentType=n;this.isPrefetch=O;this.S=this.cryptoPeriodIndex=NaN;this.N=[];this.QE=!1;this.W=null;if((n==null?void 0:n.toLowerCase())==="webm"||l.length===16)this.QE=!0}; Kpg=function(l){a:{var n=l.initData;try{for(var O=0,L=new DataView(n.buffer);O<L.byteLength-8;){var X=L.getUint32(O);if(X<=1)break;if(L.getUint32(O+4)===1886614376){var F=32;if(L.getUint8(O+8)>0){var x=L.getUint32(O+28);F+=x*16+4}var Z=L.getUint32(O+F-4);try{var J=fyq(n.subarray(O+F,O+F+Z));if(J!==null){var w=J;break a}}catch(H){}}O+=X}w=null;break a}catch(H){w=null;break a}w=void 0}if(w!=null)for(n=b3(Bw(w,7)),n==null||l.QE||(l.cryptoPeriodIndex=n),n=b3(Bw(w,10)),n!=null&&n>0&&!l.QE&&(l.S=n),w=Kj(w, 2,UPe,void 0===TQf?2:4),w=g.P(w),n=w.next();!n.done;n=w.next())l.N.push(g.Pd(MP(n.value),4))}; aye=function(l){return isNaN(l.cryptoPeriodIndex)?g.Pd(l.initData):""+l.cryptoPeriodIndex}; h4=function(l,n,O){var L=O===void 0?{}:O;O=L.videoDuration===void 0?0:L.videoDuration;var X=L.cB===void 0?void 0:L.cB;L=L.R3===void 0?!1:L.R3;this.videoId=l;this.status=n;this.videoDuration=O;this.cB=X;this.R3=L}; Rb9=function(l,n,O,L,X){this.videoId=l;this.Dq=n;this.W=O;this.bytesDownloaded=L;this.S=X}; ZR=function(l){this.S=l;this.offset=0}; J4=function(l){if(l.offset>=l.S.getLength())throw Error();return l.S.getUint8(l.offset++)}; Cn7=function(l,n){n=n===void 0?!1:n;var O=J4(l);if(O===1){n=-1;for(O=0;O<7;O++){var L=J4(l);n===-1&&L!==255&&(n=0);n>-1&&(n=n*256+L)}return n}L=128;for(var X=0;X<6&&L>O;X++)O=O*256+J4(l),L*=128;return n?O:O-L}; tsf=function(l){try{var n=Cn7(l,!0),O=Cn7(l,!1);return{id:n,size:O}}catch(L){return{id:-1,size:-1}}}; vz9=function(l){for(var n=new ZR(l),O=-1,L=0,X=0;!L||!X;){var F=tsf(n),x=F.id;F=F.size;if(x<0)return;if(x===176){if(F!==2)return;L=n.tQ()}else if(x===186){if(F!==2)return;X=n.tQ()}x===374648427?O=n.tQ()+F:x!==408125543&&x!==174&&x!==224&&n.skip(F)}n=DP(l,0,O);O=new DataView(n.buffer);O.setUint16(L,3840);O.setUint16(X,2160);L=new Pa([n]);TA(L,l);return L}; l68=function(l,n,O){var L=this;this.sf=l;this.policy=n;this.V=O;this.logger=new g.OW("dash");this.W=[];this.S=null;this.Q5=-1;this.Y=0;this.Cf=NaN;this.Wm=0;this.N=NaN;this.G=this.Hm=0;this.G3=-1;this.z3=this.B=this.L=this.Lf=null;this.nf=this.Pm=NaN;this.T=this.NQ=this.Fi=this.Of=null;this.Yo=!1;this.wq=this.timestampOffset=0;this.DQ={t3:function(){return L.W}}; if(this.policy.L){var X=this.V,F=this.policy.L;this.policy.Of&&l.Sp("atv",{ap:this.policy.Of});this.T=new n4(this.policy,X,function(x,Z,J){w_(l,new h4(L.policy.L,2,{cB:new Rb9(F,x,X.info,Z,J)}))}); this.T.G.promise.then(function(x){L.T=null;x===1?w_(l,new h4(L.policy.L,x)):L.sf.Sp("offlineerr",{status:x.toString()})},function(x){var Z=(x.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); x instanceof F3&&!x.S?(L.logger.info(function(){return"Assertion failed: "+Z}),L.sf.Sp("offlinenwerr",{em:Z}),HY(L),w_(l,new h4(L.policy.L,4))):(L.logger.info(function(){return"Failed to write to disk: "+Z}),L.sf.Sp("dldbwerr",{em:Z}),HY(L),w_(l,new h4(L.policy.L,4,{R3:!0})))})}}; nY8=function(l){return l.W.length?l.W[0]:null}; OG9=function(l,n){return l.W.some(function(O){return O.info.Ef===n})}; F9q=function(l,n,O,L){L=L===void 0?0:L;if(l.B){var X=l.B.W+l.B.N;if(O.info.W>0)if(O.info.Ef===l.B.Ef&&O.info.W<X){if(O.info.W+O.info.N<=X)return;O=b5v(O,X-O.info.W)[1]}else if(O.info.Ef>=0&&l.B.Ef>=0&&!Gt(l.B,O.info))throw new g.at("improper_continuation",l.B.rK(),O.info.rK());sb9(l.B,O.info)||A4(l,"d")}else if(O.info.W>0)throw new g.at("continuation_of_null",O.info.rK());l.B=O.info;l.V=O.info.S;if(O.info.W===0){if(l.S)if(!l.sf.isOffline()||l.policy.hZ)l.sf.Sp("slice_not_fully_processed",{buffered:l.S.info.rK(), push:O.info.rK()});else throw new g.at("slice_not_fully_processed",l.S.info.rK(),O.info.rK());bC(l);l.Hm=L}else{if(l.Hm&&L&&l.Hm!==L)throw l=new g.at("lmt_mismatch",O.info.Ef,l.Hm,L),l.level="WARNING",l;!O.info.S.I7()&&l.L&&(L=O.info,X=l.L.Eu,L.B="updateWithEmsg",L.Ef=X)}if(l.S){L=g.v_(l.S,O);if(!L)throw new g.at("failed_to_merge",l.S.info.rK(),O.info.rK());l.S=L}else l.S=O;a:{O=g.v7(l.S.info.S.info);if(l.S.info.type!==3){if(!l.S.info.L)break a;l.S.info.type===6?gYe(l,n,l.S):L99(l,l.S);l.S=null}for(;l.S;){L= l.S.S.getLength();if(l.Q5<=0&&l.Y===0){var F=l.S.S,x=-1;X=-1;if(O){for(var Z=0;Z+8<F.getLength();){var J=ey5(F,Z),w=ey5(F,Z+4);Z+=J||1;if(w===1836019558)x=Z;else if(w===1835295092){X=Z;break}}X<0&&(x=-1)}else{F=new ZR(F);for(J=Z=!1;;){w=F.tQ();var H=tsf(F),A=H.id;H=H.size;if(!(A>0))break;if(A!==408125543)if(A===524531317)Z=!0,H>=0&&(X=F.tQ()+H,J=!0);else{if(Z&&(A===160||A===163)&&(x<0&&(x=w),J))break;A===163&&(x=Math.max(0,x),X=F.tQ()+H);if(A===160){x<0&&(X=x=F.tQ()+H);break}F.skip(H)}}x<0&&(X=-1)}if(x< 0)break;l.Q5=x;l.Y=X-x}if(l.Q5>L)break;l.Q5?(L=Xza(l,l.Q5),L.B&&oYf(l,L),gYe(l,n,L),r_(l,L),l.Q5=0):l.Y&&(L=Xza(l,l.Y<0?Infinity:l.Y),l.Y-=L.S.getLength(),r_(l,L))}}l.S&&l.S.info.L&&(r_(l,l.S),l.S=null)}; L99=function(l,n){!n.info.S.I7()&&n.info.W===0&&(g.v7(n.info.S.info)||n.info.S.info.QE())&&Whe(n);if(n.info.type===1)try{oYf(l,n),xb5(l,n)}catch(X){g.Ir(X);var O=If(n.info);O.hms="1";l.sf.handleError("fmt.unparseable",O||{},1)}O=n.info.S;O.h8(n);l.T&&idv(l.T,n);if(O.y4()&&l.policy.S)a:{l=l.sf.T3;n=n.info.clipId;O=g.n5(O.info,l.tA);if(n){var L=VCi(l,O);if(l.wq[L])break a;l.wq[L]=n}l.z3.push(O)}}; Ibv=function(l,n,O){if(l.W.length!==0&&(O||l.W.some(function(F){return F.info.Fo<n}))){O=0; for(var L=g.P(l.W),X=L.next();!X.done;X=L.next()){X=X.value;if(X.info.Fo<n)break;l.sf.Sp("cmat",{max:n,s:X.info.rK()});O+=1}l.W.splice(0,O)}}; HY=function(l){var n;(n=l.T)==null||n.dispose();l.T=null}; he8=function(l){var n=l.W.reduce(function(O,L){return O+L.S.getLength()},0); l.S&&(n+=l.S.S.getLength());return n}; ZGe=function(l){if(l.NQ&&!l.policy.EE){var n=l.sf;n.T3.isManifestless&&Nb(n.T3,l.NQ.Ef,!!l.V.info.video)}l.NQ=null;l.L=null;l.B=l.Of;l.N=l.B?l.N-l.Wm:NaN;bC(l)}; Xza=function(l,n){var O=l.S;n=Math.min(n,O.S.getLength());if(n===O.S.getLength())return l.S=null,O;O=b5v(O,n);l.S=O[1];return O[0]}; oYf=function(l,n){n.S.getLength();var O=n.VV();if(KB(n.info.S.info)&&n.info.S.info.video.primaries==="bt2020"){var L=new ln(O);OL(L,[408125543,374648427,174,224,21936,21937])&&(L=L.start+L.pos,O.getUint8(L)===129&&O.getUint8(L+1)===1&&O.setUint8(L+1,9))}L=n.info.S.info;fB(L)&&!KB(L)&&(L=n.VV(),(new ln(L)).c5(),of([408125543,374648427,174,224],21936,L));n.info.S.info.RR()&&(L=n.info.S,L.info&&L.info.video&&L.info.video.projectionType==="MESH"&&!L.W&&(g.v7(L.info)?L.W=N00(O):L.info.QE()&&(L.W=eUq(O)))); n.info.S.info.QE()&&n.info.RR()&&(O=n.VV(),(new ln(O)).c5(),of([408125543,374648427,174,224],30320,O)&&of([408125543,374648427,174,224],21432,O));if(l.policy.Pv&&n.info.S.info.QE()){O=n.VV();var X=new ln(O);if(OL(X,[408125543,374648427,174,29637])){L=Xy(X,!0);X=X.start+X.pos;for(var F=0;F<L-1;F++)O.setUint8(X+F,0);O.setUint8(X+L-1,1)}}if(l.vM()&&g.v7(n.info.S.info)){L=n.VV();O=g.S1(L,0,1701606260);F=g.S1(L,0,1836476516);if(O&&F){O.skip(2);var x=j1(O),Z=mx(O);L=[];X=[];var J=[],w=[];if(x)for(x=0;x< Z;++x)L.push(Ie(O)),X.push(Ie(O)),J.push(j1(O)),w.push(j1(O));else for(x=0;x<Z;++x)L.push(GP(O)),X.push(GP(O)),J.push(j1(O)),w.push(j1(O));O=g.pn(F);O=new T0q(X[0]/O,L[0]/O)}else O=null;if(O){if(g.v7(n.info.S.info))for(L=n.VV(),X=g.S1(L,0,1701082227);X;)F=X,F.type=1936419184,F.data.setUint32(F.offset+4,1936419184),X=g.S1(L,X.offset+X.size,1701082227);l.Yo=!0;n.info.S.L=O}}n.info.S.I7()||n.info.S.S||n.info.S.indexRange||gC(n)}; gYe=function(l,n,O){if(O.info.S.I7()){if(l.Yo&&Jag(O)&&(n=O.VV(),n=g.S1(n,0,1953658222))){n.skip(1);var L=Yc(n)<<16|j1(n),X=L&1,F=L&4;if(L&256){var x=L&512,Z=L&1024;L&=2048;var J=mx(n);J<2||(X&&n.skip(4),F&&n.skip(4),X=mx(n),n.skip((J-1)*(4+(x?4:0)+(Z?4:0)+(L?4:0))-4),n.data.setUint32(n.offset+n.S,X))}}if(n=l.Lf&&!!l.Lf.V.L)if(n=O.info.RR())n=Pt0(O),x=l.Lf,Uj?(Z=1/n,n=uC(l,n)>=uC(x)+Z):n=l.getDuration()>=x.getDuration(),n=!n;n&&Jag(O)&&(n=l.Lf,Uj?(Z=Pt0(O),x=1/Z,Z=uC(l,Z),n=uC(n)+x-Z):n=n.getDuration()- l.getDuration(),n=1+n/O.info.duration,EB8(O.VV(),n))}else{x=!1;l.L||(Whe(O),O.W&&(l.L=O.W,x=!0,F=O.info,L=O.W.Eu,F.B="updateWithEmsg",F.Ef=L,F=O.W,F.pM&&(L=l.V.index,L.W=!F.pM,L.N="emsg"),F=O.info.S.info,L=O.VV(),g.v7(F)?tF(L,1701671783):F.QE()&&of([408125543],307544935,L)));a:if((F=Ok(O,l.policy.hC))&&Tv9(O))Z=wz9(l,O),l.G+=Z,F-=Z,l.Wm+=F,l.N=l.policy.s8?l.N+F:NaN;else{if(l.policy.Cm){if(L=J=l.sf.KI(g.lM(O),1),l.N>=0&&O.info.type!==6){if(l.policy.s8&&isNaN(l.Pm)){g.d2(new g.at("Missing duration while processing previous chunk", O.info.rK()));l.sf.isOffline()&&!l.policy.hZ||HGv(l,O,L);A4(l,"m");break a}var w=J-l.N,H=w-l.G,A=O.info.Ef,b=l.z3?l.z3.Ef:-1,r=l.nf,U=l.Pm,W=l.policy.Qh&&w>l.policy.Qh,N=Math.abs(H)>10,q=Math.abs(l.N-L)<1E-7;if(Math.abs(H)>1E-4){l.wq+=1;var y=(X=l.L)==null?void 0:id(X);X={audio:""+ +l.vM(),sq:A.toFixed(),sliceStart:J,lastSq:b.toFixed(),lastSliceStart:r,lastSliceDuration:U,totalDrift:(w*1E3).toFixed(),segDrift:(H*1E3).toFixed(),skipRewrite:""+ +(W||N)};if(y==null?0:y.length)X.adCpn=y[0];l.sf.handleError("qoe.avsync", X);l.G3=A}W||N||q||(L=l.N);X=wz9(l,O,J);F-=X;l.G=w+X;l.policy.N&&(H&&!q||X)&&(w=(Z=l.L)==null?void 0:id(Z),l.sf.Sp("discontinuityRewrite",{adCpn:(w==null?0:w.length)?w.join("."):"",itag:O.info.S.info.itag,sq:O.info.Ef,originalStartTime:J,rewrittenStartTime:L,startTimeAdjustment:L-J,segDrift:(H*1E3).toFixed(),originalDuration:F+X,rewrittenDuration:F,durationAdjustment:X}))}}else L=isNaN(l.N)?O.info.startTime:l.N;HGv(l,O,L)&&(l.Wm+=F,l.N=L+F,l.policy.xb&&l.wq>=l.policy.xb&&(l.wq=0,l.sf.eI({resetForRewrites:"count"})))}l.z3= O.info;l.Pm=nG(O);O.N>=0&&(l.nf=O.N);if(x&&l.L){x=Aai(l,!0);dK(O.info,x);l.S&&dK(l.S.info,x);n=g.P(n);for(Z=n.next();!Z.done;Z=n.next())Z=Z.value,X=void 0,l.policy.V&&Z.Ef!==((X=l.L)==null?void 0:X.Eu)||dK(Z,x);(O.info.L||l.S&&l.S.info.L)&&O.info.type!==6||(l.NQ=x,l.policy.nf?(n=bG8(l.L),l.sf.aJ(l.V,x,n)):(n=l.sf,n.T3.isManifestless&&raq(n,x,null,!!l.V.info.video)),l.policy.Oc||Ub0(l))}}xb5(l,O);l.timestampOffset&&UBk(O,l.timestampOffset)}; r_=function(l,n){if(n.info.L){l.Of=n.info;if(l.L){var O=l.L,L=Aai(l,!1);O=bG8(O);l.sf.aJ(l.V,L,O);l.NQ||l.policy.Oc||Ub0(l);l.NQ=null}bC(l)}l.T&&idv(l.T,n);if(L=l.dk())if(L=g.v_(L,n,l.policy.DJ)){l.W.pop();l.W.push(L);return}l.W.push(n)}; bG8=function(l){if(l.Lj()){var n=l.data["Stitched-Video-Id"]?l.data["Stitched-Video-Id"].split(",").slice(0,-1):[],O=id(l),L=[];if(l.data["Stitched-Video-Duration-Us"])for(var X=g.P(l.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),F=X.next();!F.done;F=X.next())L.push((Number(F.value)||0)/1E6);X=[];if(l.data["Stitched-Video-Start-Frame-Index"]){F=g.P(l.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var x=F.next();!x.done;x=F.next())X.push(Number(x.value)||0)}X=[]; if(l.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(F=g.P(l.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),x=F.next();!x.done;x=F.next())X.push((Number(x.value)||0)/1E6);l=new sfi(n,O,L,X,g.ur5(l),g.Pjq(l))}else l=null;return l}; bC=function(l){l.S=null;l.Q5=-1;l.Y=0;l.L=null;l.Cf=NaN;l.Wm=0;l.NQ=null}; A4=function(l,n){n={rst4disc:n,cd:l.G.toFixed(3),sq:l.z3?l.z3.Ef:-1};l.N=NaN;l.G=0;l.G3=-1;l.z3=null;l.nf=NaN;l.Pm=NaN;l.Fi=null;l.sf.Sp("mdstm",n)}; xb5=function(l,n){if(l.V.info.UK){if(n.info.S.info.QE()){var O=new ln(n.VV());if(OL(O,[408125543,374648427,174,28032,25152,20533,18402])){var L=Xy(O,!0);O=L!==16?null:Zy(O,L)}else O=null;L="webm"}else n.info.T=SL5(n.VV()),O=p_9(n.info.T),L="cenc";O&&O.length&&(O=new xS(O,L),l.policy.E6&&g.v7(n.info.S.info)&&(L=Mla(n.VV()))&&(O.W=L),O.QE=n.info.S.info.QE(),n.W&&n.W.cryptoPeriodIndex&&(O.cryptoPeriodIndex=n.W.cryptoPeriodIndex),n.W&&n.W.W&&(O.S=n.W.W),l.sf.VC(O))}}; Ub0=function(l){var n=l.L,O=r6i(n);O&&(O.startSecs+=l.Cf,l.sf.Bu(l.V,O,n.Eu,n.Lj()))}; Aai=function(l,n){var O,L=l.L;if(O=r6i(L))O.startSecs+=l.Cf;return new Me(L.Eu,l.Cf,n?L.uV:l.Wm,L.ingestionTime,"sq/"+L.Eu,void 0,void 0,n,O)}; HGv=function(l,n,O){if(!rY9(n,O))return n=If(n.info),n.smst="1",l.sf.handleError("fmt.unparseable",n||{},1),!1;isNaN(l.Cf)&&(l.Cf=O);return!0}; wz9=function(l,n,O){var L=0;if(n.info.S.info.QE()&&!Tv9(n))return 0;if(l.Lf&&!l.vM()){var X=0;O&&g.v7(n.info.S.info)?X=O-l.N:n.info.S.info.QE()&&(X=l.G);var F=n.info.Ef;O=Ok(n,l.policy.hC);var x=l.Lf;var Z=x.G3;x=x.G;var J=Math.abs(x-X)>.02;if((F===Z||F>Z&&F>l.G3)&&J){L=Math.max(.95,Math.min(1.05,(O-(x-X))/O));if(g.v7(n.info.S.info))EB8(n.VV(),L);else if(n.info.S.info.QE()&&(F=X-x,!g.v7(n.info.S.info)&&(n.info.S.info.QE(),L=new ln(n.VV()),Z=n.B?L:new ln(new DataView(n.info.S.S.buffer)),Ok(n,!0)))){var w= F*1E3,H=wK(Z);Z=L.pos;L.pos=0;if(L.S.getUint8(L.pos)===160||H_(L))if(Ld(L,160))if(Xy(L,!0),Ld(L,155)){if(F=L.pos,J=Xy(L,!0),L.pos=F,w=w*1E9/H,H=Fy(L),w=H+Math.max(-H*.7,Math.min(H,w)),w=Math.sign(w)*Math.floor(Math.abs(w)),!(Math.ceil(Math.log(w)/Math.log(2)/8)>J)){L.pos=F+1;for(F=J-1;F>=0;F--)L.S.setUint8(L.pos+F,w&255),w>>>=8;L.pos=Z}}else L.pos=Z;else L.pos=Z;else L.pos=Z}L=Ok(n,l.policy.hC);L=O-L}L&&n.info.S.info.QE()&&l.sf.Sp("webmDurationAdjustment",{durationAdjustment:L,videoDrift:X+L,audioDrift:x})}return L}; Jag=function(l){return l.info.S.I7()&&l.info.Ef===l.info.S.index.G2()}; uC=function(l,n){n=(n=n===void 0?0:n)?Math.round(l.timestampOffset*n)/n:l.timestampOffset;l.V.L&&n&&(n+=l.V.L.S);return n+l.getDuration()}; uD9=function(l,n){n<0||(l.W.forEach(function(O){UBk(O,n)}),l.timestampOffset=n)}; mL=function(l,n,O,L,X){t7.call(this,O,X);var F=this;this.policy=l;this.formatId=n;this.Q4=L;this.lastError=null;this.Mn=function(){F.JG()||(F.Q4.pp.has(F.formatId)?(F.isComplete()||F.S.start(),yP(F.Q4,F.formatId)&&F.ZL(2),F.Q4.h7(F.formatId)&&(pWf(F.Q4,F.formatId)?F.OC(4):(F.lastError="net.closed",F.OC(5)))):(F.lastError="player.exception",F.OC(5)))}; this.S=new g.vs(function(){F.isComplete()||(F.lastError="net.timeout",F.OC(5))},this.policy.BU); this.S.start();ini(this.Q4,this.formatId,this.Mn);g.Jo(this.Mn)}; PY=function(l,n,O,L){g.V.call(this);var X=this;this.sf=l;this.policy=n;this.S=O;this.timing=L;this.logger=new g.OW("dash");this.N=[];this.Lf=[];this.W=this.Xp=null;this.wq=!1;this.Fi=this.Pm=0;this.V=-1;this.Q5=!1;this.z3=-1;this.Cf=this.Hm=null;this.NQ=NaN;this.Wm=[];this.DQ={pF:function(){return X.L}, PSo:function(){return X.N}, u6J:function(){return X.G}}; this.L=new l68(l,n,O);this.policy.S&&(this.G=new ex(this.L,this.sf.getManifest(),this.policy,function(F){X.policy.yS&&X.Sp("buftl",F)})); this.policy.Yo&&(this.Y=new vm(this));this.Sv=O.info.Sv;this.T=this.policy.NQ?!1:O.Rb();this.isManifestless=O.Rb();this.B=this.T;g.c(this,this.Hm)}; Tr=function(l,n,O){O=O===void 0?!1:O;n&&Uj&&uD9(l.L,n.x9());if(!O){var L;(L=l.G)==null||YA5(L)}l.Xp=n;(n=l.G)!=null&&(n.Xp=l.Xp)}; WY=function(l){var n=l.Xp&&l.Xp.OF();if(l.policy.oi){if((l=l.G)==null)l=void 0;else{var O;l=(O=l.N)==null?void 0:O.info}return l||null}return n}; PM5=function(l){for(var n={},O=0;O<l.Lf.length;O++)n["r"+O]=l.Lf[O];return n}; Ej=function(l,n){isNaN(l.NQ)||l.Sp("aswr",{sq:n.info.Z2[0].Ef,id:n.info.Z2[0].S.info.itag,xtag:n.info.Z2[0].S.info.S,ep:Date.now()-l.NQ});l.N.push(n);l.W=g.fO(n.info.Z2);l.Lf.push(n.rK());l.Lf.length>4&&l.Lf.shift()}; TC9=function(l,n){if(n.k6()){var O=n.uh();O=g.P(O);for(var L=O.next();!L.done;L=O.next())L=L.value,l.policy.N&&n instanceof mL&&l.Sp("omblss",{s:L.info.rK()}),NG(l,n.info.Z2,L,n.kN())}}; NG=function(l,n,O,L){L=L===void 0?0:L;isNaN(l.NQ)||(l.Sp("aswm",{sq:n[0].Ef,id:n[0].S.info.itag,xtag:n[0].S.info.S,ep:Date.now()-l.NQ}),l.NQ=NaN);switch(O.info.type){case 1:case 2:W9e(l,O);break;case 4:var X=O.info.S,F=X.zd(O),x;((x=l.W)==null?0:x.type===4)&&vBi(O.info,l.W)&&(l.W=X.tK(l.W).pop());O=g.P(F);for(X=O.next();!X.done;X=O.next())NG(l,n,X.value,L);break;case 3:O.info.S.info.video?(X=l.timing,X.Lf||(X.Lf=(0,g.Q_)(),MI("fvb_r",X.Lf,X.S))):(X=l.timing,X.V||(X.V=(0,g.Q_)(),MI("fab_r",X.V,X.S))); F9q(l.L,n,O,L);l.policy.S&&EY5(l);break;case 6:F9q(l.L,n,O,L),l.W=O.info}}; W9e=function(l,n){if(n.info.type===1)if(n.info.S.info.video){var O=l.timing;O.z3||(O.z3=(0,g.Q_)(),MI("vis_r",O.z3,O.S))}else O=l.timing,O.G||(O.G=(0,g.Q_)(),MI("ais_r",O.G,O.S));L99(l.L,n);l=l.sf;l.videoTrack.S.y4()&&l.audioTrack.S.y4()&&l.policy.S&&!l.T3.tA&&(n=l.audioTrack.getDuration(),O=l.videoTrack.getDuration(),Math.abs(n-O)>1&&l.Sp("trBug",{af:""+g.n5(l.audioTrack.S.info,!1),vf:""+g.n5(l.videoTrack.S.info,!1),a:""+n,v:""+O}))}; Sx=function(l){return nY8(l.L)}; EY5=function(l){l.N.length?l.W=g.fO(g.fO(l.N).info.Z2):l.L.W.length?l.W=l.L.dk().info:l.W=WY(l)}; DR=function(l,n){var O={kP:[],Mm:[]},L;if((l=l.G)==null)l=void 0;else{eG9(l,l.kP,"og");yw0(l,n);eG9(l,l.kP,"trim");var X=QRf(l);n=X.kP;X=X.lh;for(var F=[],x=0;x<X.length;x++){var Z=X[x],J=l.policy.G3&&Z.N!==-1?Z.N:Z.info.startTime,w={startTicks:(J+l.timestampOffset)*1E3,CU:(l.policy.G3&&Z.L!==-1?Z.L:Z.info.duration)*1E3,timescale:1E3},H=void 0,A=(H=l.Xp)==null?void 0:H.G$();H=void 0;if(l.policy.Kg&&A&&A.length>0){var b=hY(A,J);b>=0&&(H=(A.end(b)-J+.1)*1E3)}F.push({formatId:g.n5(Z.info.S.info,l.T3.tA), YV:Z.info.YV,sequenceNumber:Z.info.Ef+l.L,LA:w,sL:Z.info.N,Ma:H})}l={kP:n,Mm:F}}return(L=l)!=null?L:O}; $e=function(l,n,O){O=O===void 0?!1:O;if(l.Xp){var L=l.Xp.G$(),X=JY(L,n),F=NaN,x=WY(l);x&&(F=JY(L,x.S.index.getStartTime(x.Ef)));if(X===F&&l.W&&l.W.N&&NCv(qG(l),0))return n}l=Db5(l,n,O);return l>=0?l:NaN}; BN=function(l,n,O){l.S.y4();var L=Db5(l,n);if(L>=0)return L;var X;(X=l.G)==null||Mkf(X,n,O);O=Math;L=O.min;X=l.L;if(X.T)if(X=X.T,X.e1&&X.e1.type===3)X=X.e1.startTime;else if(X.N>0){var F=X.S.index;F=g.xd(F.offsets.subarray(0,F.count),X.N*X.chunkSize);X=X.S.index.getStartTime(F>=0?F:Math.max(0,-F-2))}else X=0;else X=Infinity;n=L.call(O,n,X);if(l.policy.W){var x,Z;O=(x=l.sf.WM())==null?void 0:(Z=jx(x,n))==null?void 0:Z.clipId;l.W=l.S.Gj(n,void 0,O).Z2[0]}else l.W=l.policy.NQ?null:l.S.Gj(n).Z2[0];kS(l)&& (l.Xp&&l.Xp.abort(),l.policy.Zy&&(x=l.G)!=null&&(x.N=void 0));l.Fi=0;return l.W?l.W.startTime:n}; G$5=function(l){l.T=!0;l.B=!0;l.V=-1;BN(l,Infinity)}; yc=function(l){for(var n=0,O=g.P(l.N),L=O.next();!L.done;L=O.next())n+=nG0(L.value.info);return n+=he8(l.L)}; Qc=function(l,n){n=n===void 0?!1:n;var O=l.sf.getCurrentTime(),L=l.L.dk(),X=(L==null?void 0:L.info.Pl)||0;l.policy.uc&&(L==null?0:L.info.S.Rb())&&!L.info.L&&(X=L.info.Fo);if(l.policy.W&&L&&L.info.clipId){var F,x=(((F=l.sf.WM())==null?void 0:Ye(F,L.info.clipId))||0)/1E3;X+=x}if(!l.Xp)return l.policy.S&&n&&!isNaN(O)&&L?X-O:0;if((F=WY(l))&&MG(l,F))return F.Pl;x=l.Xp.G$(!0);if(n&&L)return F=0,l.policy.S&&(F=H6(x,X+.02)),F+X-O;X=H6(x,O);l.policy.vU&&F&&(n=hY(x,O),x=hY(x,F.Fo-.02),n===x&&(O=F.Pl-O,l.policy.N&& O>X+.02&&l.Sp("abh",{bh:X,bhtls:O}),X=Math.max(X,O)));return X}; qk9=function(l){var n=WY(l);return n?n.Pl-l.sf.getCurrentTime():0}; kIv=function(l,n){if(l.N.length){if(l.N[0].info.Z2[0].startTime<=n)return;dk(l)}for(var O=l.L,L=O.W.length-1;L>=0;L--)O.W[L].info.startTime>n&&O.W.pop();EY5(l);l.W&&n<l.W.startTime&&(l.Fi=0,l.S.y4()?l.W=l.S.Gj(n,!0).Z2[0]:l.W=null)}; eS=function(l,n,O,L){if(!l.S.index.AQ(n,!0))return!1;try{dk(l);for(var X=l.L,F=null,x=X.W.length-1;x>=0;x--){var Z=X.W[x];Z.info.Ef>=n&&(X.W.pop(),X.N-=Ok(Z,X.policy.hC),F=Z.info)}F&&(X.B=X.W.length>0?X.W[X.W.length-1].info:X.Fi,X.W.length!==0||X.B||A4(X,"r"));X.sf.Sp("mdstm",{rollbk:1,itag:F?F.S.info.itag:"",popped:F?F.Ef:-1,sq:n,lastslc:X.B?X.B.Ef:-1,lastfraget:X.N.toFixed(3)});if(l.policy.S)return l.W=null,!0;L>O?BN(l,L):l.W=l.S.vX(n-1,!1).Z2[0]}catch(J){return n=el(J),n.details.reason="rollbkerr", l.sf.handleError(n.errorCode,n.details,n.severity),!1}return!0}; jS=function(l,n){var O;for(O=0;O<l.N.length&&n!==l.N[O];O++);if(O===l.N.length)YS(l,n);else{for(;O<l.N.length;)YS(l,l.N.pop());var L=dH(l);L&&L.S.Md()&&jz(n.info.Z2,function(X){return lAv(X,L)})?(l.W=L,l.policy.N&&l.Sp("cer",{lsr:"lsp", lsp:L.rK()})):(js(n.info.Z2[0])?(l.W=n.qn&&n.qn.N?Cji(n.qn.N):RUg(n.info.Z2[0]),l.policy.N&&l.Sp("cer",{lsr:l.W.rK(),lsp:L==null?void 0:L.rK()})):(l.W=null,l.policy.N&&l.Sp("cer",{lsr:"null",lsp:L==null?void 0:L.rK()})),l.sf.isOffline()&&!l.policy.hZ||YS(l,n,!0))}}; MG=function(l,n){if(!n)return!1;if(l.policy.W){var O;if((l=(O=l.sf.WM())==null?void 0:Gr(O))&&n.clipId!==l)return!1}return n.pM()}; kS=function(l){var n;!(n=l.S.info.bF==="f")&&(n=l.policy.L)&&(n=l.L,n=!!n.T&&Oj(n.T));if(n)return!0;n=WY(l);if(!n)return!1;var O=MG(l,n)&&n.L;return l.isManifestless&&l.z3>0?O||n.Ef>=l.z3:O}; mz=function(l){var n;return kS(l)||MG(l,(n=l.L.dk())==null?void 0:n.info)}; qG=function(l){var n=[],O=WY(l);O&&n.push(O);n=g.nm(n,l.L.rr());O=g.P(l.N);for(var L=O.next();!L.done;L=O.next()){L=L.value;for(var X=g.P(L.info.Z2),F=X.next(),x={};!F.done;x={DS:void 0},F=X.next())x.DS=F.value,L.VA&&(n=g.Jq(n,function(Z){return function(J){return!vBi(J,Z.DS)}}(x))),(js(x.DS)||x.DS.type===4)&&n.push(x.DS)}l.W&&!Se5(l.W,g.fO(n),l.W.S.I7())&&n.push(l.W); return n}; NCv=function(l,n){if(!l.length)return!1;for(n+=1;n<l.length;n++)if(!p7i(l[n-1],l[n]))return!1;return!0}; Db5=function(l,n,O){O=O===void 0?!1:O;if(!l.W||!l.W.N)return NaN;l=qG(l);a:{n+=.02;var L=O;L=L===void 0?!1:L;for(var X=-1,F=0;F<l.length;++F){var x=l[F];if(x.Fo<=n)if(L)X=F;else if(x.startTime+x.duration>=n){n=F;break a}}n=X}return n<0?NaN:NCv(l,O?n:0)?l[n].startTime:NaN}; I2=function(l){return!(!l.W||l.W.S===l.S)}; ya5=function(l){return I2(l)&&l.S.y4()&&l.W.S.info.Sv<l.S.info.Sv}; Mm8=function(l,n,O){if(l.policy.uc)return Qc(l,!0)<O;var L=dH(l);return L&&!MG(l,L)?L.Pl>n&&L.Pl<n+O:!1}; dH=function(l){var n=l.L.dk();return n?n.info:WY(l)}; AWa=function(l,n){var O;return!((O=l.G)==null||!O.B.has(n))||OG9(l.L,n)}; dk=function(l){for(var n=g.P(l.N),O=n.next();!O.done;O=n.next())YS(l,O.value);l.N=[];l.W=null}; d_=function(l){var n;(n=l.G)==null||YA5(n);l.policy.Wk&&(l.Wm=[])}; QS9=function(l,n,O){n.VA&&((O===void 0?0:O)||!n.info.Z2[0].S.Md())&&(l.logger.debug(function(){return"Rolling back request with segNum "+n.info.Z2[0].Ef}),ZGe(l.L))}; YS=function(l,n,O){QS9(l,n,O===void 0?!1:O);n.dispose()}; ee8=function(l){return!!l.W&&l.W.Ef!==-1&&l.W.Ef<l.S.index.jF()}; Yk0=function(l){var n=l.W;n&&n.Ef===-1&&(l=l.L.dk())&&js(l.info)&&(l=l.info.Ef,n.B="updateLastSliceRequested",n.Ef=l)}; jSe=function(l){return jz(l.N,function(n){return n.QU})}; GI8=function(l,n){l.W&&(l.W.S=n)}; $S=function(l,n){return l.Xp?ZA(l.Xp.G$(),n):!0}; Vc=function(l){var n=Sx(l);l=l.sf.WM();return n&&l&&n.info.clipId&&!mbf(l,n.info.clipId)?!0:!1}; BY=function(l){var n;return!((n=Sx(l))==null||!n.isLocked)}; I6e=function(l,n){var O=Sx(l);return O&&O.info.type!==6?!bd5(n,l,O.info.Ef):!1}; db0=function(l){var n=WY(l),O,L=(O=l.Xp)==null?void 0:O.G$();O=NaN;n&&L&&kS(l)&&(O=JY(L,(n.Fo+n.Pl)/2));return!isNaN(O)}; $be=function(l){if((l=l.G)==null)l=void 0;else if(l.kP.length===0||l.policy.CZ&&l.S<0)l=null;else{var n=l.kP[l.S]?l.kP[l.S].formatId:null;l=n?(l=l.T3.N.get(Dy(n)))?l.info:null:null}return l||null}; Vmv=function(l,n){l=g.P(l.Wm);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.Eu===n)return O.hfz?2:1;return 0}; BC5=function(){this.Ce=!1}; cav=function(l){var n=l===void 0?{}:l;l=n.hasSubfragmentedFmp4===void 0?!1:n.hasSubfragmentedFmp4;n=n.DA===void 0?!1:n.DA;var O=new BC5;O.Ce=l||n;return O}; g.iG5=function(l){this.rq=l;this.G=new BC5;this.yh=this.X_=!1;this.rp=2;this.wq=20971520;this.uv=8388608;this.Q5=120;this.Xk=this.LT=this.eS=2;this.dA=this.jI=!1;this.aP=1E3;this.n5=15;this.RP=1;this.Y=1.15;this.Wm=1.05;this.CT=1;this.xa=this.oA=!1;this.S0=6;this.N=!1;this.iO=100;this.S5=10;this.Lh=6;this.Z$=!1;this.Fj=1;this.gb=this.IA=!1;this.Rh=2;this.Cm=this.G6=!1;this.K5=!0;this.Ip=this.JA=this.R4=this.Fp=this.j3=!1;this.fX=!0;this.Ow=!1;this.L="";this.D9=[];this.Up=this.Al=this.Yo=!1;this.zx= 0;this.UU="";this.pI=this.ai=this.TW=this.yS=this.OE=this.X$=this.V=this.CX=this.cQ=this.R6=this.S=this.mS=this.Of=this.Lf=this.Zy=this.oi=this.Hm=this.W=this.Oc=!1;this.j7=!0;this.P0=this.uc=this.wr=this.TI=this.B=this.G3=!1;this.Pm=!0;this.GI=this.Ii=this.At=this.Xg=this.v0=this.pg=this.Kg=this.Ri=this.oO=this.pV=this.NQ=this.Wp=this.nf=this.AP=this.Cf=!1;this.sE=this.rq.J("html5_trigger_fallback_count_from_probe");this.zI=g.HQ(this.rq.experiments,"html5_min_readbehind_secs");this.hg=g.HQ(this.rq.experiments, "html5_min_readbehind_cap_secs");this.hZ=this.rq.J("html5_offline_reset_media_stream_on_unresumable_slices");this.Sv=NaN;this.Nm=cY(this,"html5_request_size_min_kb",64)*1024;this.Fi=2097152;this.Z8=cY(this,"html5_bypass_contention_secs");this.rF=1048576;this.OU=cY(this,"html5_repredict_interval_ms",1800);this.Yp=cY(this,"html5_head_miss_secs",5);this.rY=cY(this,"html5_min_upgrade_health_secs",10);this.eH=cY(this,"html5_min_seconds_between_format_selections",8);this.yD=cY(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.rE=CG;this.oh=g.HQ(this.rq.experiments,"html5_min_startup_buffered_media_duration_secs");this.F_=g.HQ(this.rq.experiments,"html5_post_interrupt_readahead");this.Fl=this.rq.J("html5_allow_onesie_for_ssap");this.Q2=this.rq.J("html5_disable_classic_alr");this.UE=g.HQ(this.rq.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.w9=cY(this,"html5_ssdai_failure_retry_limit",3);this.AL=this.rq.experiments.MQ("html5_clone_original_for_fallback_location");this.Y4=g.HQ(this.rq.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.D0=g.HQ(this.rq.experiments,"html5_subsegment_readahead_timeout_secs");this.jj=g.HQ(this.rq.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.LZ=g.HQ(this.rq.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.n3=g.HQ(this.rq.experiments,"html5_subsegment_readahead_min_load_speed");this.tY=g.HQ(this.rq.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.XN=g.HQ(this.rq.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.YW=cY(this,"html5_hopeless_secs",15);this.Lr=this.rq.J("html5_restrict_streaming_xhr_on_sqless_requests");this.uY=g.HQ(this.rq.experiments,"html5_max_headm_for_streaming_xhr");this.wY=this.rq.J("html5_pipeline_manifestless_allow_nonstreaming");this.OJ=this.rq.J("html5_prefer_server_bwe3");this.EH=this.rq.J("html5_last_slice_transition");this.P7=this.rq.J("html5_store_xhr_headers_readable");this.Qh=g.HQ(this.rq.experiments,"html5_max_drift_per_track_secs");this.EE=this.rq.J("html5_no_placeholder_rollbacks"); this.AB=this.rq.J("html5_subsegment_readahead_enable_mffa");this.lf=this.rq.J("html5_allow_video_keyframe_without_audio");this.E6=this.rq.J("html5_enable_vp9_fairplay");this.z5=1048576;this.T5=this.rq.J("html5_woffle_resume");this.eF=this.rq.J("html5_abs_buffer_health");this.Jo=this.rq.J("html5_interruption_resets_seeked_time");this.WU=g.HQ(this.rq.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Xj=this.rq.J("html5_log_additional_source_buffer_updates");this.aZ=this.rq.J("html5_report_captions_ctmp_qoe"); this.D7=this.rq.J("html5_explicitly_dispose_xhr");this.DJ=!this.rq.J("html5_encourage_array_coalescing");this.eL=this.rq.J("html5_restart_on_unexpected_detach");this.tW=this.rq.J("html5_filter_non_efficient_formats_for_safari");this.rq.J("html5_format_hybridization");this.y6=this.rq.J("html5_abort_before_separate_init");this.Pv=RT();this.ej=this.rq.J("html5_serialize_server_stitched_ad_request");this.xg=this.rq.J("html5_skip_buffer_check_seek_to_head");this.rH=this.rq.J("html5_attach_po_token_to_bandaid"); this.mB=g.HQ(this.rq.experiments,"html5_max_redirect_response_length")||8192;this.s8=this.rq.J("html5_rewrite_timestamps_for_webm");this.hC=this.rq.J("html5_only_media_duration_for_discontinuities");this.Zb=g.HQ(this.rq.experiments,"html5_resource_bad_status_delay_scaling")||1;this.rq.J("html5_onesie_live");this.FN=this.rq.J("html5_onesie_premieres");this.qj=this.rq.J("html5_drop_onesie_for_live_mode_mismatch");this.Ch=g.HQ(this.rq.experiments,"html5_onesie_live_ttl_secs")||8;this.qA=g.HQ(this.rq.experiments, "html5_attach_num_random_bytes_to_bandaid");this.BU=g.HQ(this.rq.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Pq=this.rq.J("html5_update_container_type_on_codec_family_change")||this.rq.J("html5_use_update_container_type_codec_family");this.HU=this.rq.J("html5_dont_call_change_type_on_updating");this.ea=this.rq.J("html5_apply_ssap_slice_info_adjustment");this.Sz=this.rq.J("html5_enable_sabr_host_fallback");this.IU=this.rq.J("html5_ssap_enable_legacy_browser_logic");this.SK=this.rq.J("html5_ssap_enable_delay_init"); this.im=this.rq.J("html5_gapless_fallback_on_append_error");this.gM=this.rq.J("html5_shorts_stop_request_when_buffer_to_end");this.p9=this.rq.J("html5_vod_stop_request_when_buffer_to_end");this.z3=this.rq.J("html5_ssdai_use_post_for_media")&&this.rq.J("gab_return_sabr_ssdai_config");this.U$=this.rq.J("html5_use_post_for_media");this.d8=this.rq.J("html5_use_live_ump_heartbeat");this.useUmp=this.rq.J("html5_use_ump");this.Cw=this.rq.IA;this.Fu=this.rq.J("html5_reset_primary_stats_on_redirector_failure"); this.OQ=this.rq.J("html5_remap_to_original_host_when_redirected");this.Ak=this.rq.J("html5_sabr_support_quality_constraints");this.o3=this.rq.J("html5_sabr_remove_all_quality_constraints");this.SH=this.rq.J("html5_iterative_seeking_buffered_time");this.mN=this.rq.J("html5_use_network_error_code_enums");this.mx=this.rq.J("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.rq.J("html5_enable_server_driven_request_cancellation");this.yd=this.rq.J("html5_enable_sabr_request_timing"); this.q_=this.rq.J("html5_enable_server_format_filter");this.Xa=this.rq.J("html5_enable_lawnmower");this.I0=this.rq.AA()?g.HQ(this.rq.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.zt=g.HQ(this.rq.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Tt=this.rq.J("html5_live_defrag_only_h264_playbacks");this.w$=this.rq.J("html5_live_defrag_only_h264_formats");this.jS=this.rq.J("html5_record_now");this.T9=g.HQ(this.rq.experiments,"html5_drm_byterate_soft_cap");this.aU=g.HQ(this.rq.experiments, "html5_drm_live_byterate_soft_cap");this.T=this.rq.J("html5_sabr_log_request_creation");this.Vr=this.rq.J("html5_use_buffer_timeline_for_sabr_request_creation");this.M5=this.rq.J("html5_sabr_report_request_cancellation_info");this.JY=this.rq.J("html5_spoof_4k");this.Lg=cY(this,"html5_min_media_duration_for_cabr_slice");this.s6=cY(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.ow=this.DJ?0:cY(this,"html5_min_media_duration_for_append_prop");this.zF=this.rq.J("html5_remove_defrag_without_frame_level_streaming"); this.Nj=this.rq.J("html5_consume_all_buffered_bytes_one_poll");this.V2=this.rq.J("html5_disable_urgent_adaptation");this.Ph=this.rq.J("html5_apply_constraints_in_client_for_sabr");this.jA=this.rq.J("html5_send_video_playback_ustreamer_config");this.xb=cY(this,"html5_max_discontinuity_rewrite_count");this.Cz=cY(this,"html5_fixed_media_duration_for_request");this.Q8=this.rq.J("html5_apply_fix_for_missing_seg_info_without_logger");this.Zx=cY(this,"html5_sabr_request_limit_per_period");this.z$=this.rq.J("html5_sabr_live_partial_segment"); this.vp=this.rq.J("html5_sabr_dispose_media_objects");this.hn=this.rq.J("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.PU=this.rq.J("html5_enable_d6de4");this.jy=this.rq.J("html5_ssap_keep_only_ssap_eos_check");this.rq.J("html5_high_res_seek_logging");this.Op=this.rq.J("html5_disable_chunk_synchronization_sabr_seek");this.mW=this.rq.J("html5_enable_ssap_multi_audio_format_filtering");this.wp=g.HQ(this.rq.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Rw=this.rq.J("defer_slice_processing_on_healthy_buffer_sabr"); this.Vz=this.rq.J("html5_byterate_constraints");this.aY=this.rq.J("html5_refactor_sabr_audio_format_selection_logging");this.Pt=this.rq.J("enable_sabr_snackbar_message");this.rq.J("html5_reinit_source_buffer_by_new_element");this.g$=this.rq.J("html5_refactor_sabr_video_format_selection_logging");this.Xh=this.rq.J("html5_log_slice_info_in_sbu");this.q5=cY(this,"html5_paced_poll_ms");this.gY=cY(this,"html5_paced_poll_min_health_ms");this.D5=this.rq.J("html5_disable_sabr_fallback");this.CZ=this.rq.J("html5_track_current_buffered_range_at_sync"); this.mD=g.HQ(this.rq.experiments,"html5_enable_sps_retry_backoff_ms");this.o_=this.rq.J("html5_sabr_live_timing");this.GU=this.rq.J("html5_sabr_enable_server_xtag_selection");this.YD=this.rq.J("html5_send_detailed_network_type");this.rA=this.rq.J("html5_sabr_skip_client_audio_init_selection");this.vU=this.rq.J("html5_count_updating_slice_for_buffer_health");this.Eg=this.rq.J("html5_report_max_buffer_bytes_limit_to_sabr");this.eA=this.rq.J("html5_sabr_live_audio_early_return_fix");this.iY=g.HQ(this.rq.experiments, "html5_platform_max_buffer_health_oversend_duration_secs");this.dY=this.rq.J("html5_cuepoint_identifier_logging");this.kY=this.rq.J("html5_trigger_loader_long_poll_on_sabr_backoff");this.Xl=this.rq.AA();this.Wk=this.rq.J("html5_keep_ssdai_avsync_in_loader_track");this.mH=this.rq.J("html5_enable_sps_retry_backoff_metadata_requests")}; jfi=function(l,n,O){O=O===void 0?!1:O;n.video.S>1080&&!l.X_&&(l.wq=36700160,l.uv=5242880,l.Fi=Math.max(4194304,l.Fi),l.X_=!0);n.video.S>2160&&!l.yh&&(l.wq=104857600,l.Sv=13107200,l.yh=!0);g.HQ(l.rq.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?n.isEncrypted()&&g.s0()&&g.S_("samsung")&&(g.S_("kant")||g.S_("muse"))&&(l.Sv=g.HQ(l.rq.experiments,"html5_samsung_kant_limit_max_bitrate")):n.isEncrypted()&&g.s0()&&g.S_("kant")&&(l.Sv=1310720);l.T9!==0&&n.isEncrypted()&&(l.Sv=l.T9);l.aU!==0&&n.isEncrypted()&& O&&(l.Sv=l.aU);n.Sv&&(l.rF=Math.max(l.Nm,Math.min(l.Fi,5*n.Sv)))}; iC=function(l){return l.S&&l.cQ&&l.playbackStartPolicy}; zr=function(l){return l.W||l.S&&l.q_}; SS=function(l,n,O,L){l.cQ&&(l.playbackStartPolicy=n,l.vr=O,l.Fa=L)}; cY=function(l,n,O){O=O===void 0?0:O;return g.HQ(l.rq.experiments,n)||O}; ze9=function(l){var n=l===void 0?{}:l;l=n.gb;var O=n.Ce;var L=n.Uc;var X=n.G2;n=n.BD;this.gb=l;this.Ce=O;this.Uc=L;this.G2=X;this.BD=n}; sRq=function(l,n){if(n<0)return!0;var O=l.G2();return n<O||n===O&&!l.gb||n===O&&(l=l.BD())&&n===l.Ef?!0:!1}; fbi=function(l,n,O){if(!sRq(l,n))return 0;if(!l.Ce||!isNaN(O)&&O>0)return 2;if(n<0)return 1;O=l.G2();return n<O||n===O&&(l=l.BD())&&n===l.Ef&&!l.pending?2:1}; p4=function(l,n,O){g.V.call(this);this.sf=l;this.policy=n;this.Rn=O;this.W=0;this.S=!1;this.delay=new g.vs(this.N,this.policy.I0,this);g.c(this,this.delay)}; Skv=function(l,n){Du(n.S)||(l.Vp=n,l.W=0,g.lx(l.delay))}; pza=function(l,n,O,L,X){var F=this;this.sf=l;this.policy=n;this.Rn=O;this.Vp=L;this.N0=X;this.done=!1;this.onTimeout=function(){F.done||(F.done=!0,F.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*WI(this.Rn)));this.timing=new Ke(this,{Rn:this.Rn,EV:this.size,a4:!0,iA:function(){}, SX:this.policy.N});l=W_(this.Vp,this.N0,this.policy).Yt.clone();EH(l);l.path!=="/videogoodput"&&(l.path="/videogoodput",l.url="");this.location=new AW(l);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=na(this.location,this.policy.G,this.timing,this.policy.rE,{});setTimeout(this.onTimeout,1E4)}; sSi=function(l,n,O){var L=l.nz();if(l.isComplete()||!L||l.info.Vp.N0(n,O))return 0;var X=n.Rh;if(!X||L<X)return 0;l=un(O,EL(l.info.Vp,!0,n));return l.S||l.timedOut||l.started?0:2}; f6a=function(l,n,O){if(!(n.UE&&l.isComplete()&&l.canRetry()&&l.info.Vp.N0(n,O))||l.info.Vp.G)return 0;l=un(O,EL(l.info.Vp,!1,n));return l.N+n.UE*UL(l,!0)>(0,g.Q_)()?0:1}; sj=function(l,n,O,L,X,F,x,Z,J,w,H,A,b,r){r=r===void 0?null:r;g.V.call(this);var U=this;this.sf=l;this.policy=n;this.videoTrack=O;this.audioTrack=L;this.L=X;this.S=F;this.timing=x;this.B=Z;this.schedule=J;this.T3=w;this.N=H;this.Wm=A;this.dM=b;this.iJ=r;this.NQ=!1;this.WI="";this.nZ=null;this.gZ=NaN;this.Q5=!1;this.W=null;this.A7=this.Y=NaN;this.FD=this.V=0;this.logger=new g.OW("dash");this.DQ={fR:function(W,N){return U.fR(W,N)}}; this.policy.qA>0&&(this.WI=g.D0(this.policy.qA));this.policy.I0&&(this.G=new p4(this.sf,this.policy,this.schedule),g.c(this,this.G))}; K99=function(l,n,O){var L=n.W?n.W.S.Vp:n.S.Vp;var X=l.L,F;(F=!l.policy.OQ)||(F=Ne(L.S)===Ne(L.N));F?L=!1:(X=un(X,Ne(L.N)),F=6E4*Math.pow(X.L,1.6),(0,g.Q_)()<X.N+F?L=!1:(X.N=(0,g.Q_)(),X.L+=1,L.S=L.N.clone(),L=!0));L&&l.sf.Sp("hostch",{},!0);if(f4(l,n,O)){O=l.T(n,O);if(l.W){var x=O.Z2[0].S.info.id;L=l.S;X=O.Z2[0].Ef;L=X<0&&!isNaN(L.B)?L.B:X;X=$0(l.S,O.Z2[0].Fo,L);var Z=n===l.audioTrack?1:2,J=O.Z2[0].S.info.bF;F=x.split(";")[0];a:{var w=l.S;if(w.S){var H=w.S.BM.event;if(w.S.Ef===L){w=H==="predictStart"? void 0:w.S.BM.event;break a}if(w.S.Ef===L-1){w=H==="start"||H==="continue"?H:void 0;break a}}w=void 0}if(l.policy.z3&&l.S.W!==0){var A=l.W.bd(X,L,x,Z,J,w);L<0&&Z===2&&VP(l.S,0,0,!0);if(A){var b;x=((b=A.xQ)==null?void 0:b.RS)||"";var r;b=((r=A.xQ)==null?void 0:r.H4)||-1;l.sf.Sp("sdai",{ssdaiinfo:"1",ds:x,skipsq:b,itag:F,f:J,sg:L,st:X.toFixed(3)});O.L=A}}else if(r=l.W.tT(X,L,x,Z,J,w),L<0&&Z===2&&VP(l.S,0,0,!0),r){b={dec_sq:L,itag:F,st:X.toFixed(3)};if(l.policy.ej&&n.isRequestPending(L-1)){l.sf.Sp("sdai", {wt_daistate_on_sg:L-1});return}l.sf.Sp("sdai",b);r&&(O.S=new g.WW(r));l.policy.N&&(r=O.Vp.Ay("id")||"",b=((A=O.S)==null?void 0:A.get("id"))||"",r!==b&&l.sf.Sp("stmidmismatch",{cid:r,aid:b}))}else l.S.W!==5&&l.sf.Sp("sdai",{nodec_sq:L,itag:F,st:X.toFixed(3)})}l.policy.Up&&O.Z2[0].Ef!==-1&&O.Z2[0].Ef<l.T3.Jt&&(O=n.S.vX(l.T3.Jt,!1));Ej(n,K4(l,O));eE(l.timing);var U;(U=l.G)==null||Skv(U,O.Vp)}}; f4=function(l,n,O){if(l.policy.X$)return!1;var L;var X=l.S,F=((L=n.W)==null?void 0:L.Ef)||-1;X.W===3&&F+1>=X.L?(X.Sp("sdai",{haltrq:F+1,est:X.L}),L=!1):L=X.W!==2;if(!L||!NS(n.W?n.W.S.Vp:n.S.Vp,l.policy,l.L,l.sf.AE())||l.sf.isSuspended&&(!EI(l.schedule)||l.sf.Z_))return!1;if(l.policy.L&&YP>=5)return g.lx(l.sf.yq),!1;if(l.T3.isManifestless){if(n.N.length>0&&n.W&&n.W.Ef===-1||n.N.length>=l.policy.Fj||!l.policy.wY&&n.N.length>0&&!l.policy.G.Ce)return!1;if(n.T)return!l.T3.isLive||!isNaN(l.gZ)}if(jSe(n))return l.logger.debug("Pending request with server-selectable format found"), !1;if(!n.W){if(!n.S.y4())return!1;BN(n,l.sf.getCurrentTime())}if(Sx(n)&&(n.dk()!==Sx(n)||l.sf.isSuspended))return!1;X=(L=l.policy.Z8)&&!n.N.length&&Qc(n,!0)<Math.min(L,Qc(O));L=n.N.length+O.N.length;F=!l.policy.mx&&((n.N.length?n.N[0].f4():!1)||(O.N.length?O.N[0].f4():!1)||l.T3.isLive);(X||F)&&--L;if(L+1>=l.policy.rp)return!1;L=n.W;if(!L)return!0;L.type===4&&L.S.y4()&&(n.W=g.fO(L.S.tK(L)),L=n.W);if(!L.pM()&&!L.S.NI(L))return!1;F=l.T3.aI||l.T3.L;if(l.T3.isManifestless&&F){F=n.S.index.G2();var x=O.S.index.G2(); F=Math.min(F,x);if(n.S.index.qb()>0&&F>0&&L.Ef>=F)return n.z3=F,O.z3=F,!1}if(L.S.info.audio&&L.type===4||L.pM())return!1;F=!n.B&&!O.B;if(X=!X)X=L.Pl,X=!!(O.W&&!MG(O,O.W)&&O.W.Pl<X);x=n===l.videoTrack&&l.policy.Lf;return X&&(!l.T3.isManifestless||O.W&&O.W.Pl&&L.Pl)&&F&&!x||l.policy.K5&&!n.B&&O.B?!1:js(L)&&L.Pl>a6i(l,n)?(a6i(l,n),!1):(l=n.Xp)&&l.isLocked()?!1:!0}; a6i=function(l,n){var O=l.S;O=O.S?O.S.BM:null;if(l.policy.Lf&&O)return O.startSecs+O.HM+15;n=Vr(l.sf,n);l.policy.n5>0&&(O=((0,g.Q_)()-l.sf.tS)/1E3,n=Math.min(n,l.policy.n5+l.policy.RP*O));O=l.sf.getCurrentTime()+n;return l.policy.F_&&(n=Rea(l.sf)+l.policy.F_,n<O)?(l.sf.Sp("mrl",{ori:O,mod:n},!0),l.policy.Jo&&(l=l.sf,O=(0,g.Q_)(),l.tS=O),n):O}; CM9=function(l,n,O){if(O!==0){a:if(n=n.info,O=O===2,n.S)n=null;else{var L=n.Z2[0];if(n.range)var X=MS(n.range.start,Math.min(4096,n.N));else{if(n.W&&n.W.indexOf("/range/")>=0||n.Vp.Ay("defrag")==="1"||n.Vp.Ay("otf")==="1"){n=null;break a}X=MS(0,4096)}X=new $z([new es(5,L.S,X,"createProbeRequestInfo"+L.B,L.Ef)],n.W);X.N0=O;X.S=n.S;n=X}n&&K4(l,n)}}; K4=function(l,n){l.sf.MM(n);var O=nG0(n),L=l.sf.jX();O={Rn:l.schedule,EV:O,GS:TB9(l.B,O),wH:Yz(n.Z2[0]),a4:Du(n.Vp.S),SX:l.policy.N,iA:function(x,Z){l.sf.vI(x,Z)}}; if(l.schedule.W.T){var X,F;O.Gn=(((X=l.videoTrack.S)==null?void 0:X.info.Sv)||0)+(((F=l.audioTrack.S)==null?void 0:F.info.Sv)||0)}l.nZ&&(O.Ef=n.Z2[0].Ef,O.gZ=n.gZ,O.nZ=l.nZ);L={ZB:O5v(n,l.sf.getCurrentTime()),Ki:l.policy.IA&&B_(n)&&n.Z2[0].S.info.video?Iyi(l.N):void 0,xI:l.policy.Lf,poToken:l.sf.Qw(),Xr:l.sf.jd(),WI:l.WI,A7:isNaN(l.A7)?null:l.A7,iJ:l.iJ,dM:l.dM,FD:l.FD,Lc:L};return new Iq(l.policy,n,O,l.L,function(x,Z){try{a:{var J=x.info.Z2[0].S,w=J.info.video?l.videoTrack:l.audioTrack;if(!(x.state>= 2)||x.isComplete()||x.nz()||!(!l.sf.Xi||l.sf.isSuspended||Qc(w)>3)){var H=sSi(x,l.policy,l.L);H===1&&(l.Q5=!0);CM9(l,x,H);if(x.isComplete()||x.JG()&&Z<3){if(l.policy.N){var A=x.timing.Ek();A.rst=x.state;A.strm=x.xhr.Ga();A.cncl=x.xhr&&x.T2.L?1:0;l.sf.Sp("rqs",A)}x.Ky&&l.sf.Sp("sbwe3",{},!0)}if(!l.JG()&&x.state>=2){hb5(l.timing,x,J);var b=l.sf;l.A7&&x.EJ&&b&&(l.A7=NaN,l.sf.u8(x.EJ),l.sf.uH(),l.sf.Sp("cabrUtcSeek",{mediaTimeSeconds:x.EJ}));x.P8&&l.A7&&x.P8&&!x.P8.action&&(l.sf.d_(l.A7),l.A7=NaN,l.sf.Sp("cabrUtcSeekFallback", {targetUtcTimeSeconds:l.A7}));x.SN&&l.sf.JD(x.SN);l.policy.d8&&(l.FD=x.FD);if(x.state===3){jS(w,x);B_(x.info)&&a2(l,w,J,!0);if(l.W){var r=x.info.tT();r&&l.W.wb(x.info.Z2[0].Ef,J.info.id,r)}l.sf.yV()}else if(x.isComplete()&&x.info.Z2[0].type===5){if(x.state!==4)x.Ad()&&l.sf.handleError(x.K2(),x.s7());else{var U=(x.info.Z2[0].S.info.video?l.videoTrack:l.audioTrack).N[0]||null;U&&U instanceof Iq&&U.nz()&&U.OR(!0)}x.dispose()}else{x.Ad()||tmf(l,x);var W;((W=x.zk)==null?0:W.itagDenylist)&&l.sf.wV(x.zk.itagDenylist); if(x.state===4)R2(l,x),l.S&&Hd9(l.S,x.info,l.W);else if(l.policy.rE&&x.k6()&&!x.isComplete()&&!R2(l,x)&&!x.Ad())break a;x.Ad()&&(vY5(l,x),isNaN(l.A7)||(l.sf.d_(l.A7),l.A7=NaN));l.policy.q5&&!x.isComplete()?C4(l.sf):l.sf.yV();var N=f6a(x,l.policy,l.L);CM9(l,x,N)}}}}}catch(q){Z=l.NQ?1:0,l.NQ=!0,x=QC(Z),Z=el(q,Z),l.sf.handleError(Z.errorCode,Z.details,Z.severity),x||l.sf.ul()}},L)}; tmf=function(l,n){if(n.QU&&n.state>=2&&n.state!==3){var O=n.xhr.getResponseHeader("X-Response-Itag");if(O){l.logger.debug(function(){return"Applying streamer-selected format "+O}); var L=mS7(l.N,O),X=n.info.N;X&&(X-=L.Io(),L.N=!0,n.info.Z2[0].S.N=!1,V1q(n,L.JF(X)),t4(l.sf,l.videoTrack,L),GI8(l.videoTrack,L),l.sf.Af(L.info.video.quality),(X=n.kN())&&L.info.lastModified&&L.info.lastModified!==+X&&jS(l.videoTrack,n))}else n.QU=!1}}; vY5=function(l,n){var O=n.info.Z2[0].S,L=n.K2();if(Du(O.Vp.S)){var X=g.TR(n.gB(),3);l.sf.Sp("dldbrerr",{em:X||"none"})}X=n.info.Z2[0].Ef;var F=$0(l.S,n.info.Z2[0].Fo,X);L==="net.badstatus"&&(l.V+=1);if(n.canRetry()&&vY(l.sf)){if(!(n.info.Vp.W>=l.policy.w9&&l.W&&n.info.isDecorated()&&L==="net.badstatus"&&l.W.gT(F,X))){X=(O.info.video&&O.Vp.W>1||n.IR===410||n.IR===500||n.IR===503)&&!(SE(l.N.B).size>0)&&!Du(O.Vp.S);F=n.s7();var x=O.info.video?l.videoTrack:l.audioTrack;X&&(F.stun="1");l.sf.handleError(L, F);l.JG()||(X&&(l.logger.debug(function(){return"Stunning format "+O.info.id}),RQ(l.N,O)),jS(x,n),l.sf.yV())}}else x=1,l.W&&n.info.isDecorated()&&L==="net.badstatus"&&l.W.gT(F,X)&&(x=0),l.T3.isLive&&n.K2()==="net.badstatus"&&l.V<=l.policy.S5*2?(OXi(l.T3),l.T3.aI||l.T3.isPremiere?zT(l.sf,0,{UC:"badStatusWorkaround"}):l.T3.L?zT(l.sf,l.T3.Hm,{UC:"badStatusWorkaround", KI:!0}):UD(l.sf)):l.sf.handleError(L,n.s7(),x)}; R2=function(l,n){if(l.policy.useUmp&&n.JG())return!1;try{var O=n.info.Z2[0].S,L=O.info.video?l.videoTrack:l.audioTrack;if(l.T3.isManifestless&&L){l.V=0;L.T&&(n.JG(),n.isComplete()||n.k6(),L.T=!1);n.qx()&&l.sf.SP.Zm(1,n.qx());var X=n.qb(),F=n.Cq();D6(l.T3,X,F)}if(n.info.wH()&&!V4(n.info))for(var x=g.P(n.uh()),Z=x.next();!Z.done;Z=x.next())W9e(L,Z.value);for(l.sf.getCurrentTime();L.N.length&&L.N[0].state===4;){var J=L.N.shift();TC9(L,J);L.Pm=J.h3()}L.N.length&&TC9(L,L.N[0]);var w=!!Sx(L);w&&n instanceof mL&&(O.info.vM()?Od5(l.timing):nzk(l.timing));return w}catch(H){n=n.s7();n.origin="hrhs";a:{l=l.sf;O=H;if(O instanceof Error){n.msg||(n.msg=""+O.message);n.name||(n.name=""+O.name);if(O instanceof g.at&&O.args)for(L=g.P(Object.entries(O.args)),X=L.next();!X.done;X=L.next())F=g.P(X.value),X=F.next().value,F=F.next().value,n["arg"+X]=""+F;g.d2(O);if(O.level==="WARNING"){l.uF.eI(n);break a}}l.handleError("fmt.unplayable",n,1)}return!1}}; lU9=function(l){var n=l.videoTrack.S.index;l.nZ=new ze9({gb:l.policy.gb,Ce:l.policy.G.Ce,Uc:n.df(),G2:function(){return n.G2()}, BD:function(){return n.BD()}})}; a2=function(l,n,O,L){var X=l.policy.mH?l.sf.AE():0;O.y4()||O.Cs()||O.N||!NS(O.Vp,l.policy,l.L,X)||O.info.bF==="f"||l.policy.S||(L?(L=l.B,X=O.info,L=W$5(L,X.video?L.policy.eS:L.policy.LT,X.Sv)):L=0,L=O.JF(L),l=K4(l,L),V4(L)&&Ej(n,l),O.N=!0)}; u5=function(l,n,O,L,X,F,x,Z){g.V.call(this);var J=this;this.sf=l;this.e3=n;this.videoTrack=O;this.audioTrack=L;this.T3=X;this.Y=F;this.isAudioOnly=x;this.T=Z;this.W=iQ;this.Q5=!1;this.logger=new g.OW("sabr");this.G=this.NQ=this.Wm=!1;this.videoInfos=this.B=this.Y.videoInfos;this.N=this.Lf=this.Y.S;this.S=new iY(n,F,function(w,H){J.sf.Sp(w,H)}); this.e3.rA||nJg(this);this.isAudioOnly&&Ow9(this,this.T3.S["0"])}; gJ5=function(l,n){var O=[];n=g.P(n);for(var L=n.next();!L.done;L=n.next())O.push(g.n5(L.value,l.T3.tA));return O}; Ow9=function(l,n,O){n!==l.L&&(l.L&&(l.Q5=!0),l.L=n,l.qw(n,l.videoTrack,O))}; oJq=function(l,n){l.logger.debug("setConstraint: "+xc(n));zr(l.e3)&&(l.NQ=n.reason==="m"||n.reason==="l"?!0:!1);n.reason==="m"?n.isLocked()&&LX9(l,n.S):XIe(l,n)?Ph(l,n.W,n.S):l.videoInfos=l.B;l.W=n}; XIe=function(l,n){return l.e3.Ak&&n.reason==="b"||l.e3.o3?!1:l.e3.Ph?!0:n.reason==="l"||n.reason==="b"||n.reason==="o"}; FXi=function(l,n){return n.isLocked()&&l.S.W||l.W===void 0?!1:n.XT(l.W)}; xtf=function(l,n){var O,L=(O=l.L)==null?void 0:O.info.video.S;return l.Q5?!0:l.L?n!==L?!0:!l.S.W||l.e3.hn&&l.S.S===l.L.info.itag?!1:!0:!1}; LX9=function(l,n){var O=l.S.S;if(O){l.videoInfos=l.B;var L=g.ak(l.videoInfos,function(X){return X.id===O}); L&&L.video.S===n?l.videoInfos=[L]:(L=l.videoInfos.map(function(X){return X.id}),l.sf.Sp("sabrpf",{pfid:""+O, vfids:""+L.join(".")}),Ph(l,n,n),pa(l.S,""))}else Ph(l,n,n)}; Ph=function(l,n,O){l.videoInfos=l.B;l.videoInfos=g.Jq(l.videoInfos,function(L){return L.video.S>=n&&L.video.S<=O})}; nJg=function(l){var n=USa(l.S,l.T);n&&(l.N=[n])}; htg=function(l,n,O){if(l.e3.rA){if(l.T){var L=g.Jq(l.N,function(X){return X.id===l.T}); return To(L,O).includes(n)}L=g.Jq(l.N,function(X){var F;return!((F=X.O_)==null||!F.isDefault)}); if(L.length>0)return To(L,O).includes(n)}return To(l.N,O).includes(n)}; To=function(l,n){return l.map(function(O){return Dy(g.n5(O,n))})}; Zwk=function(l){var n;if((n=l.W)==null?0:n.isLocked())return l.videoInfos;var O=SE(l.S);n=g.Jq(l.videoInfos,function(L){return L.Sv>l.e3.Sv?!1:!O.has(L.id)}); rW0(l.S)&&(n=g.Jq(n,function(L){return L.video.width<=854&&L.video.height<=480})); return n}; Hwk=function(l,n,O,L){var X=l.T3,F=l.uF.getVideoData(),x=g.fy(F),Z=l.Tg,J=rH({rq:F.j(),uF:l.uF,eP:l.eP,e3:l.e3,tS:l.tS,DW:l.DW,YS:l.YS,V6:l.V6,lW:l.lW,isPrefetch:l.isPrefetch,eQ:l.eQ,sabrLicenseConstraint:F.sabrLicenseConstraint,Wh:l.Wh,uT:l.uT,WB:l.WB,NE:l.NE,PFi:!!Z}),w=UW(F,l.Lc,l.nextRequestPolicy,l.TM,l.ZY,l.RQp,l.Zr);L&&O&&(L=w.SW?w.SW.map(function(W){return W.type}):[],O("sabr",{stmctxt:L.join("_"), unsntctxt:w.RZ?w.RZ.join("_"):""}));L=l.wl;var H=l.tb;if(H===void 0&&L===void 0){var A;H=Jt5(X.tA,(A=l.zG)==null?void 0:A.video);var b;L=Jt5(X.tA,(b=l.zG)==null?void 0:b.audio)}if(F.iJ)var r=F.iJ;F={iS:J,Mm:l.Mm,wl:L,tb:H,Tg:Z,videoPlaybackUstreamerConfig:r,W6:w};l.xQ&&(F.xQ=l.xQ);if(x&&n){x=new Map;var U=g.P(X.z3);for(Z=U.next();!Z.done;Z=U.next())Z=Z.value,(J=X.wq[VCi(X,Z)]||"")?(x.has(J)||x.set(J,[]),x.get(J).push(Z)):O&&O("ssap",{nocid4fmt:(Z.itag||"")+"_"+(Z.lmt||0)+"_"+(Z.xtags||"")});X=new Map; U=g.P(l.kP);for(Z=U.next();!Z.done;Z=U.next())Z=Z.value,J=Z.startTimeMs||0,w=void 0,A=(w=n)==null?void 0:jx(w,J),w=A.clipId,A=A.KZ,w?(X.has(w)||(b=x.get(w)||[],X.set(w,{clipId:w,kP:[],jZ:b})),A!==0&&(Z.startTimeMs=J-A),X.get(w).kP.push(Z)):O&&(w=void 0,O("ssap",{nocid4range:"1",fmt:((w=Z.formatId)==null?void 0:w.itag)||"",st:J.toFixed(3),d:(Z.durationMs||0).toFixed(3),timeline:Wh(n)}));F.cI=[];X=g.P(X.entries());for(x=X.next();!x.done;x=X.next())x=g.P(x.value),x.next(),x=x.next().value,F.cI.push(x); if(l.kP.length&&!F.cI.length){O&&O("ssap",{nobfrange:"1",br:wI5(l.kP),timeline:Wh(n)});return}l.yk&&(F.yk=l.yk);l.TF&&(F.TF=l.TF)}else F.kP=l.kP,F.jZ=X.z3,x&&((U=l.kP)==null?void 0:U.length)>0&&!n&&O&&O("ssap",{bldmistlm:"1"});return F}; Jt5=function(l,n){return n?[g.n5(n.info,l)]:[]}; wI5=function(l){var n="";l=g.P(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;var L=void 0,X=void 0,F=void 0;n+="fmt."+(((L=O.formatId)==null?void 0:L.itag)||"")+"_"+(((X=O.formatId)==null?void 0:X.lmt)||0)+"_"+(((F=O.formatId)==null?void 0:F.xtags)||"")+";st."+(O.startTimeMs||0).toFixed(3)+";d."+(O.durationMs||0).toFixed(3)+";"}return n}; ED=function(l,n,O){var L=this;this.requestType=l;this.Vp=n;this.hA=O;this.W=null;this.DQ={Lcf:function(){var X;return(X=L.data)==null?void 0:X.isPrefetch}, ZY:function(){var X;return(X=L.data)==null?void 0:X.ZY}}}; Cd5=function(l,n,O){n=W_(l.Vp,Atf(l,n,O),n);l.YR()&&n.set("probe","1");return n}; Atf=function(l,n,O){l.N0===void 0&&(l.N0=l.Vp.N0(n,O));return l.N0}; bw8=function(l){var n,O;return((n=l.S)==null?void 0:(O=n.iS)==null?void 0:O.vW)||0}; rtq=function(l){var n,O;return!!((n=l.S)==null?0:(O=n.iS)==null?0:O.Wh)}; Utf=function(l){var n={},O=[],L=[];if(!l.data)return n;for(var X=0;X<l.data.kP.length;X++){var F=l.data.kP[X],x=void 0;O.push("i."+((x=F.formatId)==null?void 0:x.itag)+"_st."+(F.startTimeMs+"_e."+(F.startTimeMs+F.durationMs)+"_d."+F.durationMs)+("_sn."+F.kW)+("_en."+F.Sr))}for(X=0;X<l.data.Mm.length;X++){F=l.data.Mm[X];var Z=x=void 0,J=void 0,w=void 0;L.push("i."+((x=F.formatId)==null?void 0:x.itag)+"_sn."+F.sequenceNumber+"_sl."+(F.YV||NaN)+"_lb."+F.sL+"_tr.s_"+((Z=F.LA)==null?void 0:Z.startTicks)+ "_d_"+((J=F.LA)==null?void 0:J.CU)+"_t_"+((w=F.LA)==null?void 0:w.timescale)+"_ed_"+F.Ma)}n.ptime=bw8(l);n.rtype=l.requestType;n.brl=O.join(";");n.ps=L.join(";");return n}; u$9=function(l){if(l.Ip)return{FV:g.HQ(l.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),Tq:g.HQ(l.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}}; NE=function(l,n){this.DZ=l;this.cipher=this.DZ.exports.AES128CTRCipher_create(n.byteOffset)}; DX=function(l){return function(n){return{profile:l,qR:Math.ceil(n.byteLength/16)}}}; qE=function(l,n){this.key=l;this.subtleCrypto=n;this.S=!1}; POv=function(l){var n=globalThis.crypto.subtle;n=n===void 0?window.crypto.subtle:n;return Aw(wB(function(){return n.importKey("raw",l,"AES-CTR",!1,["encrypt"]).catch(function(O){return Promise.reject(O.name+": "+O.message)})}),function(O){return new qE(O,n)})}; kN=function(l){this.S=!1;this.W=new uB(l)}; yH=function(l,n){this.DZ=l;var O=l.va(n);this.S=new NE(l,O!=null?O:n);O&&l.free(O.byteOffset)}; Tn7=function(l){g.d2("wasm encryptor failed: "+l);throw l;}; ME=function(l,n,O){var L=this;this.key=l;this.L=this.B=!1;this.FV=32768;this.Tq=131072;n==null||Aw(n,function(X){L.S=new yH(X,L.key);L.L=X.z9}); if(O==null?0:O.Tq)this.Tq=O.Tq;if(O==null?0:O.FV)this.FV=O.FV}; WXa=function(l,n,O){l.W||(l.W=new kN(l.key));return bo(l.W.encrypt(n,O),Tn7)}; EJf=function(l,n,O){if(!l.N){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return Jw("native encryptor unavailable");l.N=POv(l.key)}return bo(Aw(l.N,function(L){return L.encrypt(n,O)}),Tn7)}; QH=function(l,n,O){this.S=l;this.DZ=n;this.L=O;this.N=!1;this.iv=(0,g.uY)(NU(16))}; Nng=function(l){l.W||(l.W=new ME(l.S.S,l.DZ,l.L));return l.W}; Dt8=function(l,n){var O;return g.Y(function(L){(0,g.Q_)();O=Ih0(l.S);return L.return(O.encrypt(n,l.iv))})}; qIi=function(l,n){var O;return g.Y(function(L){(0,g.Q_)();var X=l.S;X.L||(X.L=new K_i(X.N));O=X.L;return L.return(Cui(O,n,l.iv))})}; kH9=function(l,n,O){var L;return g.Y(function(X){(0,g.Q_)();L=Ih0(l.S);return X.return(L.decrypt(n,O))})}; ep=function(l){g.V.call(this);var n=this;this.xo=l;this.S=new Map;this.L=[];this.W=!this.xo.experiments.MQ("html5_disable_trusted_hosts")&&!EE();this.Y=g.HQ(this.xo.experiments,"html5_onesie_prewarm_interval_ms");this.G=new g.vs(this.T,this.Y,this);this.V=-1;this.DQ={gR3:function(){return n.S}, TEo:function(){return n.B}, JnJ:function(){return yta}}; g.c(this,this.G);Zn7(this,g.dU("yt-player-bandaid-host"));this.B=this.load();this.Y&&this.B.then(function(){n.T()})}; Zn7=function(l,n){var O=n==null?void 0:n.primary;l.N(0,O);O=O?MVa(O):void 0;l.N(2,O);l.N(1,n==null?void 0:n.secondary)}; YN=function(l,n){return new g.WW("https://"+n+l.xo.uc.baseUrl)}; Q59=function(l,n){l="https://"+Ne(n.location)+"/initplayback?c="+RS(l.xo)+"&owc=1";DK(l,"pw",function(O){O.ht=n.S})}; jp=function(l,n,O,L){DK("https://"+n+"/videoplayback?probe=1",O,function(X){!L.J("html5_onesie_host_racing")||L.videoData.isLivePlayback||L.J("html5_onesie_probe_ec_hosts")||L.B_||L.mq();l.L.push(X)},function(X){l.L.push(X.details)})}; MVa=function(l){return l.replace(/(\d+)---/g,function(n,O){n=Number(O);return(n===1?2:n-1)+"---"})}; Go=function(l,n){var O,L,X,F,x,Z,J,w;return g.Y(function(H){if(H.S==1){O=YN(l,"redirector.googlevideo.com");O.set("alr","yes");O.set("id",""+Math.round(Math.random()*1E5));if(n===1||n===2)O.set("cmo=sensitive_content","yes"),O.set("sc","yes");n===2&&O.set("cmo=td","c.youtube.com");L={format:"RAW",timeout:5E3};return g.Q(H,e_(O.Ae(),L),2)}X=H.W;if(X.xhr.status!==200||!X.xhr.responseText)return H.return(Promise.reject(new g.at("b204258371_no_host",O.Ae(),X.xhr.status)));F=new g.WW(X.xhr.responseText); x=Ne(F);Z=F.get("ms");J=YN(l,x);w=F.get("mm");J.set("ms",Z);J.set("mm",w);return x&&h_9(x)?n!==2||x0(x)?H.return(J):H.return(Promise.reject(new g.at("b204258371_untrusted",x,Z))):H.return(Promise.reject(new g.at("b204258371_invalid",x,Z)))})}; eti=function(l){var n=l.L;l.L=[];return n}; h_9=function(l){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(l)}; x0=function(l){var n=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(l)&&!n.test(l)}; YI5=function(l,n){this.location=l;this.S=n}; mH=function(l){this.fL=l;this.W=!1;this.S=[]}; du=function(l){for(;l.S.length&&!l.S[0].isEncrypted;){var n=l.S.shift(),O=n.videoId,L=n.BO,X=n.formatId,F=n.buffer;n=n.N6;if(F)n=void 0,(n=IG(l.fL.Bk,O))==null||Mw(n,L,X,F);else if(n)l.fL.Bk.AS(O,L,X);else if(L=l.fL,L.S[X].u6=!0,O=IG(L.Bk,O),O==null?0:O.pp.has(X))O==null||Dn(O,X)}}; g.Sp=function(l){this.data=l;this.S=0;this.L=!1;this.N=0;this.error=!1;this.register=this.W=0;if($N.length===0){$N.length=288;$N.fill(8);for(l=144;l<280;l++)$N[l]=l<=255?9:7;VH.length=32;VH.fill(5);Bh.length=286;Bh.fill(0);for(l=261;l<285;l++)Bh[l]=Math.floor((l-261)/4);ch[257]=3;for(l=258;l<285;l++){var n=ch[l-1];n+=1<<Bh[l-1];ch[l]=n}ch[285]=258;for(l=0;l<30;l++)i5[l]=l<=3?0:Math.floor((l-2)/2);for(l=zo[0]=1;l<30;l++)n=zo[l-1],n+=1<<i5[l-1],zo[l]=n}l=100+7*this.data.length;this.data[0]===31&&this.data[1]=== 139&&(l=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(l)}; g.$tf=function(l){for(;!l.L&&!l.error;){var n=l;n.L=!!p3(n,1);switch(p3(n,2)){case 2:var O=[],L=[];L.length=19;L.fill(0);var X=p3(n,5)+257;var F=p3(n,5)+1;for(var x=p3(n,4)+4,Z=0;Z<x;Z++)L[j57[Z]]=p3(n,3);L=GHv(L);for(x=X+F;O.length<x;){Z=mt9(n,L);switch(Z){case 16:Z=O[O.length-1];var J=p3(n,2)+3;break;case 17:Z=0;J=p3(n,3)+3;break;case 18:Z=0;J=p3(n,7)+11;break;default:J=1}for(;J>0;J--)O.push(Z)}O.length!==x?n.error=!0:(F=O.slice(-F),O.length=X,IUi(n,O,F));break;case 1:IUi(n,$N,VH);break;case 0:dt5(n, n.S&7);O=p3(n,16);X=p3(n,16);(O^X)!==65535&&(n.error=!0);n.output.set(n.data.subarray(n.W,n.W+O),n.N);n.W+=O;n.N+=O;break;default:n.error=!0}l.N>l.output.length&&(l.output=new Uint8Array(l.N*2),l.N=0,l.W=0,l.L=!1,l.S=0,l.register=0)}l.output.length!==l.N&&(l.output=l.output.subarray(0,l.N));return l.error?new Uint8Array(0):l.output}; IUi=function(l,n,O){n=GHv(n);O=GHv(O);for(var L=l.data,X=l.output,F=l.N,x=l.register,Z=l.S,J=l.W;;){if(Z<15){if(J>L.length){l.error=!0;break}x|=(L[J+1]<<8)+L[J]<<Z;J+=2;Z+=16}var w=n[x&127];if(w<0)for(x>>=7;w<0;)w=n[(x&1)-w],x>>=1;else x>>=w&15;Z-=w&15;w>>=4;if(w<256)X[F++]=w;else if(l.register=x,l.S=Z,l.W=J,w>256){x=ch[w];x+=p3(l,Bh[w]);J=mt9(l,O);Z=zo[J];Z+=p3(l,i5[J]);if(VVa&&x<Z)Z=F-Z,X.copyWithin(F,Z,Z+x);else for(J=F+x,w=F;w<J;w+=4)X[w]=X[w-Z],X[w+1]=X[w-Z+1],X[w+2]=X[w-Z+2],X[w+3]=X[w-Z+3]; F+=x;x=l.register;Z=l.S;J=l.W}else break}l.N=F}; mt9=function(l,n){if(l.S<7){var O=l.data,L=l.W;L>O.length&&(l.error=!0);l.register|=(O[L+1]<<8)+O[L]<<l.S;l.W+=2;l.S+=16}O=n[l.register&127];if(O>=0)return dt5(l,O&15),O>>4;for(dt5(l,7);O<0;)O=n[p3(l,1)-O];return O>>4}; p3=function(l,n){for(;l.S<n;){if(l.W>=l.data.length)return l.error=!0,0;l.register|=l.data[l.W++]<<l.S;l.S+=8}var O=l.register&(1<<n)-1;l.register>>=n;l.S-=n;return O}; dt5=function(l,n){l.S-=n;l.register>>=n}; GHv=function(l){for(var n=[],O=g.P(l),L=O.next();!L.done;L=O.next())L=L.value,n[L]||(n[L]=0),n[L]++;var X=n[0]=0;O=[];var F=0;L=0;for(var x=1;x<n.length;x++)n[x]?L=x:n[x]=0,X=X+n[x-1]<<1,O[x]=X,x>7&&(F+=n[x]);for(X=1;X<F;)X<<=1;n=128;L=new Int16Array(128+(X+L)*2);for(F=0;F<l.length;F++)if(x=l[F]){for(var Z=O[x]++,J=X=0;J<x;J++)X=X<<1|Z>>J&1;Z=F<<4|x;if(x<=7)for(J=1<<7-x;J--;)L[J<<x|X]=Z;else{J=X&127;x-=7;for(X>>=7;x--;){L[J]||(L[J]=-n,n+=2);var w=X&1;X>>=1;J=w-L[J]}L[J]=Z}}return L}; Bni=function(l){var n,O,L,X,F,x,Z;return g.Y(function(J){switch(J.S){case 1:if(!("DecompressionStream"in window))return J.return(g.$tf(new g.Sp(l)));n=new DecompressionStream("gzip");O=n.writable.getWriter();O.write(l);O.close();L=n.readable.getReader();X=new Pa([]);case 2:return g.Q(J,L.read(),5);case 5:F=J.W;x=F.value;if(Z=F.done){J.D2(4);break}X.append(x);J.D2(2);break;case 4:return J.return(X.q0())}})}; sD=function(l,n){this.S=l;this.DZ=n}; cte=function(l){return bo(bo(wB(function(){return Aw(l.DZ,function(n){return l.tN(l.S,n)})}),function(){return l.Ti(l.S)}),function(){return l.q4(l.S)})}; iw0=function(l,n){return cte(new sD(l,n))}; pIi=function(l){TQ.call(this,"onesie");this.Bk=l;this.S={};this.N=!0;this.L=null;this.queue=new mH(this);this.B={};this.V=n_5(function(n,O){var L=this;return function F(){var x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv,Fa;return weq(F,function(l9){switch(l9.S){case 1:g.Ei(l9,2);L.Bk.XE();x=function(S){return function(v){throw{name:S,message:v};}}; Z=n.q0();g.We(l9,4,5);if(!O){l9.D2(7);break}return x7v(l9,bo(zt9(L.Bk,Z,L.iv),x("DecryptError")).wait(),8);case 8:J=l9.W;case 7:if(!L.Bk.enableCompression){l9.D2(9);break}return x7v(l9,bo(iw0((A=J)!=null?A:Z,L.Bk.j().Ip),x("DecompressError")).wait(),10);case 10:w=l9.W;case 9:H=zA((r=(b=w)!=null?b:J)!=null?r:Z,O$7);case 5:g.q7(l9,0,2);if(W=(U=L.Bk.j())==null?void 0:U.DZ)((N=J)==null?void 0:N.buffer)===W.exports.memory.buffer&&W.free(J.byteOffset),((q=w)==null?void 0:q.buffer)===W.exports.memory.buffer&& W.free(w.byteOffset);g.ki(l9,6);break;case 4:throw e=y=g.D5(l9),new Ml("onesie.response.parse",{name:(a=e.name)!=null?a:"unknown",message:(Lv=e.message)!=null?Lv:"unknown",wasm:((d=L.Bk.j())==null?0:d.DZ)?((B=L.Bk.j())==null?0:(R=B.DZ)==null?0:R.z9)?"1js":"1":"0",enc:L.N,gz:L.Bk.enableCompression,webcrypto:!!EE()});case 6:return SIe(H),Fa=g.MT(H.body),l9.return(Fa);case 2:g.q7(l9),g.ki(l9,0)}})}()})}; s5q=function(l){var n=l.queue;n.S.length&&n.S[0].isEncrypted&&!n.W&&(n.S.length=0);n=g.P(Object.keys(l.S));for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=l.S[O];if(!L.u6){var X=l.queue;X.S.push({videoId:L.videoId,formatId:O,isEncrypted:!1});X.W||du(X)}}}; KXe=function(l,n){var O=n.getLength(),L=!1;switch(l.L){case 0:l.Bk.J("html5_future_onesie_ump_handler_on_player_response")?bo(Aw(l.V(n,l.N),function(X){fUk(l.Bk,X)}),function(X){l.Bk.No(X)}):l.XE(n,l.N).then(function(X){fUk(l.Bk,X)},function(X){l.Bk.No(X)}); break;case 2:l.Lo("ormk");n=n.q0();l.queue.decrypt(n);break;default:L=!0}l.Bk.Us&&l.Bk.Sp("ombup","id.11;pt."+l.L+";len."+O+(L?";ignored.1":""));l.L=null}; SIe=function(l){if(l.jx!==1)throw new Ml("onesie.response.badproxystatus",{st:l.jx,webcrypto:!!EE(),textencoder:!!g.Be.TextEncoder});if(l.VG!==200)throw new Ml("onesie.response.badstatus",{st:l.VG});}; aUf=function(l){return new Promise(function(n){setTimeout(n,l)})}; Rta=function(l,n){var O=l.j();O=l.Y4&&O.J("html5_onesie_preload_use_content_owner");var L=l.jG,X=ta(n.xo.experiments,"debug_bandaid_hostname");if(X)n=YN(n,X);else if((O===void 0?0:O)&&(L==null?0:L.url)&&!n.W){var F=Ne(new g.WW(L.url));n=YN(n,F)}else n=(F=n.S.get(0))==null?void 0:F.location.clone();if(n&&l.videoId){F=F$(l.videoId);l=[];if(F)for(F=g.P(F),O=F.next();!O.done;O=F.next())l.push(O.value.toString(16).padStart(2,"0"));n.set("id",l.join(""));return n}}; CO5=function(l,n,O){O=O===void 0?0:O;var L,X;return g.Y(function(F){if(F.S==1)return L=[],L.push(n.load()),O>0&&L.push(aUf(O)),g.Q(F,Promise.race(L),2);X=Rta(l,n);return F.return(X)})}; tVf=function(l,n,O,L){L=L===void 0?!1:L;l.set("cpn",n.clientPlaybackNonce);l.set("opr","1");var X=n.j();l.set("por","1");EE()||l.set("onem","1");n.startSeconds>0&&l.set("osts",""+n.startSeconds);L||(X.J("html5_onesie_disable_partial_segments")&&l.set("oses","1"),n=X.J("html5_gapless_onesie_no_media_bytes")&&O9(n)&&n.Y4,O&&!n?(n=O.audio,l.set("pvi",O.video.join(",")),X.J("html5_onesie_disable_audio_bytes")||l.set("pai",n.join(",")),CG||l.set("osh","1")):(l.set("oad","0"),l.set("ovd","0"),l.set("oaad", "0"),l.set("oavd","0")))}; vJ8=function(l,n,O,L,X){X=X===void 0?!1:X;var F="https://youtubei.googleapis.com/youtubei/"+n.YW.innertubeApiVersion+"/player",x=[{name:"Content-Type",value:"application/json"}];L&&x.push({name:"Authorization",value:"Bearer "+L});x.push({name:"User-Agent",value:g.e6()});g.R3("EOM_VISITOR_DATA")?x.push({name:"X-Goog-EOM-Visitor-Id",value:g.R3("EOM_VISITOR_DATA")}):(O=O.visitorData||g.R3("VISITOR_DATA"))&&x.push({name:"X-Goog-Visitor-Id",value:O});(O=g.R3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&x.push({name:"X-YouTube-Lava-Device-Context", value:O});(n=ta(n.experiments,"debug_sherlog_username"))&&x.push({name:"X-Youtube-Sherlog-Username",value:n});l=Ys(JSON.stringify(l));return{url:F,zm:x,postBody:l,b13:X,ZD:X}}; nPq=function(l,n,O,L,X,F){var x=g.Cu(l,nx7,l.ZD?void 0:O.DZ),Z={encryptedClientKey:n.S.encryptedClientKey,G0:!0,Ar:!0,uM:lYa(O,!!l.ZD),BV:O.experiments.MQ("html5_use_jsonformatter_to_parse_player_response")};if(l.ZD)Z.pG2=x;else{l=n.encrypt(x);var J;if(((J=O.DZ)==null?void 0:J.exports.memory.buffer)===x.buffer&&l.byteOffset!==x.byteOffset){var w;(w=O.DZ)==null||w.free(x.byteOffset)}var H;l=((H=O.DZ)==null?void 0:H.tR(l))||l;x=Z.pG=l;(0,g.Q_)();x=f0f(new su8(n.S.N),x,n.iv);Z.Dd=x;Z.iv=n.iv}n=L.getVideoData(); O=rH({rq:O,uF:L,eP:n.startSeconds*1E3});X={yA:Z,iS:O,onesieUstreamerConfig:X,Th:F,W6:UW(n)};n.reloadPlaybackParams&&(X.reloadPlaybackParams=n.reloadPlaybackParams);return X}; Oye=function(l,n,O){var L,X,F;return g.Y(function(x){if(x.S==1)return L=g.Cu(n,nx7),g.Q(x,Dt8(O,L),2);if(x.S!=3)return X=x.W,g.Q(x,qIi(O,X),3);F=x.W;return x.return({pG:X,encryptedClientKey:O.S.encryptedClientKey,iv:O.iv,Dd:F,G0:!0,Ar:!0,uM:lYa(l,!!n.ZD),BV:l.experiments.MQ("html5_use_jsonformatter_to_parse_player_response")})})}; gP9=function(l,n,O,L,X,F){var x,Z,J,w;return g.Y(function(H){if(H.S==1)return g.Q(H,Oye(O,l,n),2);x=H.W;Z=L.getVideoData();J=rH({rq:O,uF:L,eP:Z.startSeconds*1E3});w={yA:x,iS:J,onesieUstreamerConfig:X,Th:F,W6:UW(Z)};Z.reloadPlaybackParams&&(w.reloadPlaybackParams=Z.reloadPlaybackParams);return H.return(w)})}; lYa=function(l,n){l=WI(l.schedule,!0);n=n||!!EE()&&l>1572864;return"DecompressionStream"in window||!n}; K3=function(l,n){g.V.call(this);var O=this;this.uF=l;this.playerRequest=n;this.logger=new g.OW("onesie");this.xhr=null;this.state=1;this.N1=new v6;this.hN=!1;this.playerResponse="";this.vH=new Ce(this);this.fL=new pIi(this);this.w_="";this.B_=this.jm=!1;this.p_="";this.enableCompression=this.Dw=this.d2=!1;this.Wq=[];this.F4=this.Eu=-1;this.xo=this.uF.j();this.videoData=this.uF.getVideoData();this.Us=this.xo.AA();this.nC=this.xo.uc;this.dn=new QH(this.nC.S,this.xo.Ip,u$9(this.xo));this.Vo=this.xo.J("html5_onesie_check_timeout"); this.QB=new g.vs(this.aF,500,this);this.PB=new g.vs(this.mq,1E4,this);this.nE=new g.vs(function(){if(!O.isComplete()){var L=f3(O);O.No(new Ml("net.timeout",L))}},g.HQ(this.xo.experiments,"html5_onesie_request_timeout_ms")); this.AX=new g.vs(this.mv5,2E3,this);this.bX=this.uF.jd();this.VZ=this.J("html5_onesie_wait_for_media_availability");g.c(this.videoData,this);g.c(this,this.QB);g.c(this,this.PB);g.c(this,this.AX);g.c(this,this.dn);l=nw();CG&&l&&!this.xo.J("html5_disable_onesie_media_bytes")&&(this.z1=new Map);this.WZ=new Map;this.Ka=new Map;this.Et=new Map;this.LF=new Map}; IG=function(l,n){var O;return(O=l.z1)==null?void 0:O.get(n)}; Xyq=function(l,n,O){var L;return g.Y(function(X){if(X.S==1)return l.Lo("oprd_s"),L7g(l)?g.Q(X,kH9(l.dn,n,O),3):(L=l.dn.decrypt(n,O),X.D2(2));X.S!=2&&(L=X.W);l.Lo("oprd_c");return X.return(L)})}; zt9=function(l,n,O){l.Lo("oprd_s");n=Nng(l.dn).encrypt(n,O);Aw(n,function(){l.Lo("oprd_c")}); return n}; oP5=function(l){return l.J("html5_onesie_host_probing")||l.Us?CG:!1}; fUk=function(l,n){l.Lo("oprr");l.playerResponse=n;l.Dw||(l.VZ=!1);aG(l)}; aG=function(l){if(!l.playerResponse)return!1;if(l.d2)return!0;var n=l.videoData.J("html5_onesie_audio_only_playback")&&gi(l.videoData);if(l.z1&&l.VZ){if(!l.z1.has(l.w_))return!1;var O=l.z1.get(l.w_),L;if(L=O){L=!1;for(var X=g.P(O.pp.keys()),F=X.next();!F.done;F=X.next())if(F=O.pp.get(F.value))for(var x=g.P(F.s1),Z=x.next();!Z.done;Z=x.next())Z.value.Pf>0&&(F.vM?L=!0:n=!0);L=!(n&&L)}if(L)return!1}l.Lo("ofr");l.N1.resolve(l.playerResponse);if(!l.Vo){var J;(J=l.nE)==null||J.start();l.PB.start()}return l.d2= !0}; xW7=function(l){if(l.z1&&!l.J("html5_onesie_media_capabilities")){l.Lo("ogsf_s");var n=yFe(l.uF.getVideoData(),function(L,X){l.Sp(L,X)}),O=F77(l.uF); n.video=uFi(O,n.video);l.Lo("ogsf_c");if(n.video.length)return n;l.Sp("ombspf","l."+O.W+";u."+O.S+";o."+O.N+";r."+O.reason)}}; L7g=function(l,n){return l.J("html5_onesie_sync_request_encryption")||(n==null?0:n.ZD)||g.Cw(l.xo)&&l.J("html5_embed_onesie_use_sync_encryption")?!1:!!EE()}; f3=function(l){if(!l.mG)return{};var n=l.mG.Ek(),O;n.d=(O=l.mG.z3)==null?void 0:O.OP();n.shost=l.j6;n.ty="o";return n}; hki=function(l,n){var O,L;(L=(l=(O=l.z1)==null?void 0:O.get(n))==null)||(n=l.N?!1:l.N=!0,L=!n);return!L}; Zy0=function(l,n,O,L,X,F,x,Z,J,w,H){g.V.call(this);var A=this;this.uF=l;this.sf=n;this.policy=O;this.audioTrack=L;this.videoTrack=X;this.T3=F;this.Rn=x;this.G3=Z;this.N=J;this.timing=w;this.Y=H;this.S=[];this.T={};this.Fi=this.Pm=!1;this.TM=new Set;this.B=this.wq=this.Wm=this.lW=0;this.L=null;this.Q5={kP:[],Mm:[]};this.Lf={kP:[],Mm:[]};this.V=null;this.Hm=[];this.DQ={KS2:function(){return A.S}, hS2:function(){return A.T}, Vi3:function(){A.S.length=0}, ERJ:function(){return A.TM}, HzG:function(){return A.Wm}, haf:function(b){A.Wm=b}, mI3:function(b){A.B=b}, uD:function(b){A.V=b}}; this.videoData=this.uF.getVideoData();this.policy.I0&&(this.z3=new p4(this.sf,this.policy,this.Rn),g.c(this,this.z3))}; Hyq=function(l,n){n=n===void 0?!1:n;if(J2i(l,n)){l.policy.T&&l.sf.Sp("sabrcrq",{create:1});var O=new ED(0,l.T3.G,l);l.policy.Zx>0&&l.B++;n=wya(l,O,n);l.S.push(n);var L;(L=l.z3)==null||Skv(L,l.T3.G)}}; UWa=function(l,n){var O=A29(l);if(l.policy.Vr){var L=l.Q5;var X=l.Lf}else L=RG(l,l.audioTrack),X=RG(l,l.videoTrack);var F=[].concat(g.E(L.kP),g.E(X.kP));l.policy.oO&&l.V&&F.push.apply(F,g.E(l.Hm));var x=[].concat(g.E(L.Mm),g.E(X.Mm)),Z=l.sf.jX(),J,w,H=l.uF,A=l.T3,b=l.W,r=l.TM,U=l.policy,W=l.sf.tS,N=Rea(l.sf)*1E3,q=(J=l.Cf)==null?void 0:J.YS;J=(w=l.Cf)==null?void 0:w.V6;var y;w=Number((y=l.N.L)==null?void 0:y.info.itag)||0;var e;y=Number((e=l.N.V)==null?void 0:e.info.itag)||0;n={uF:H,T3:A,kP:F,Mm:x, eP:O,nextRequestPolicy:b,TM:r,e3:U,tS:W,DW:N,YS:q,V6:J,lW:l.lW,isPrefetch:n||l.sf.isSuspended,yk:w,TF:y,Lc:Z,Zr:l.uF.Tv()};O=l.sf.Qw();F=F$(O);O&&(n.ZY=F);if(O=l.uF.zY())n.Wh=O*1E3;var d;O=l.N;F=O.Wm;if((O.e3.W&&O.e3.mW||((d=O.e3)==null?0:d.S&&d.q_))&&!F)for(d=g.P(O.N),x=d.next();!x.done;x=d.next())if(x.value.O_){F=!0;break}d=zr(O.e3)&&!F?[]:gJ5(O,O.N);n.wl=d;d=l.N;zr(d.e3)&&!d.NQ?d=[]:(O=Zwk(d),O.length===0&&(O=d.B),d=gJ5(d,O));n.tb=d;n.Tg=l.policy.oO&&l.V?[l.V]:void 0;l.policy.Eg&&(n.WB=bye(l.sf, l.audioTrack),n.NE=bye(l.sf,l.videoTrack));if(l.policy.B){L=r29(l,L.kP,X.kP);var B;if(X=(B=l.L)==null?void 0:B.Ox(L))n.xQ=X}l.policy.Hm&&l.S.length>0&&l.S[0].NC()&&(n.RQp=l.S[0].lM());return n}; A29=function(l){var n,O=l.policy.V&&((n=l.sf)==null?void 0:n.a8());n=l.sf.getCurrentTime()||0;n=uEi(l,n);var L=l.sf.ez()||0;n+=L;L=yZ(l.videoData)||g.kZ(l.videoData);var X=0;O?(L&&(X=Number.MAX_SAFE_INTEGER),l.videoData.z3&&(X=Math.ceil(l.videoData.Hm*1E3))):X=Math.ceil(n*1E3);return Math.min(Number.MAX_SAFE_INTEGER,X)}; uEi=function(l,n){if(l.sf.isSeeking())return n;var O=l.uF.T$();if(!O)return n;O=O.NJ();if(O.length===0||ZA(O,n))return n;if(!$S(l.videoTrack,n)&&!$S(l.audioTrack,n))return l.sf.Sp("sundrn",{b:0,lt:n}),n;for(var L=n,X=Infinity,F=0;F<O.length;F++)if(!(O.start(F)>n)){var x=n-O.end(F);x<X&&(X=x,L=O.end(F))}return L!==n&&(l.sf.Sp("sundrn",{bre:L,lt:n}),X>=20)?(l.sf.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),n):L}; r29=function(l,n,O){var L=l.sf.getCurrentTime()||0;n=PQ9(l,n,L);l=PQ9(l,O,L);return Math.min(n,l)}; PQ9=function(l,n,O){l=l.sf.ez()||0;n=g.P(n);for(var L=n.next();!L.done;L=n.next()){var X=L.value;L=X.startTimeMs?X.startTimeMs/1E3-l:0;X=L+(X.durationMs?X.durationMs/1E3:0);if(L<=O&&O<=X)return X}return O}; J2i=function(l,n){if(l.policy.Zx>0){var O=Math.floor((0,g.Q_)()/1E4);if(O===l.wq){if(l.B>=l.policy.Zx){if(l.B===l.policy.Zx){var L={reason:"toomanyrequests"};L.limit=l.B;l.sf.handleError("player.exception",L);l.B+=1}return!1}}else l.wq=O,l.B=0}n=!n&&!EI(l.Rn)&&!l.policy.kY;if(l.sf.isSuspended&&(l.sf.Z_||n))return!1;if(l.NQ&&(0,g.Q_)()<l.NQ)return l.policy.kY&&g.lx(l.sf.yq),!1;if(l.S.length>0&&(!l.policy.Hm||l.S.length!==1||!l.S[0].NC()))return!1;var X;if((X=l.T3.G)==null||!NS(X,l.policy,l.T,l.sf.AE()))return!1; X=l.policy.jy&&l.policy.W&&l.sf.WM();if(mz(l.audioTrack)&&mz(l.videoTrack)&&!X)return!1;if(l.policy.W&&l.G&&!l.sf.WM())return l.Nv("ssap",{pauseontlm:1}),!1;if(C3(l,l.audioTrack)&&C3(l,l.videoTrack))return l.policy.N&&l.sf.Sp("sabrHeap",{a:""+yc(l.audioTrack),v:""+yc(l.videoTrack)}),!1;if(X=l.policy.B)X=!1,l.Y.W===2?X=!0:l.Y.W===3&&(A29(l),l.sf.ez(),n=r29(l,DR(l.audioTrack,l.sf.isSeeking()).kP,DR(l.videoTrack,l.sf.isSeeking()).kP),O=l.Y,n>=O.N?(O.Sp("sdai",{haltrq:n,est:O.N}),n=!0):n=!1,n&&(X=!0)), X&&l.policy.T&&l.sf.Sp("sabrcrq",{waitad:1});if(X)return!1;l.policy.Vr&&(l.Q5=RG(l,l.audioTrack),l.Lf=RG(l,l.videoTrack));if(!l.W)return l.policy.T&&l.sf.Sp("sabrcrq",{nopolicy:1}),!0;if(l.uF.zY())return l.policy.T&&l.sf.Sp("sabrcrq",{utc:1}),!0;if(l.N.G)return l.policy.T&&l.sf.Sp("sabrcrq",{audio:1}),!0;if(!l.W.targetAudioReadaheadMs||!l.W.targetVideoReadaheadMs)return l.policy.T&&l.sf.Sp("sabrcrq",{noreadahead:1}),!0;if(l.policy.V&&l.sf.a8())return l.policy.T&&l.sf.Sp("sabrcrq",{seekToHead:1}), !0;X=Math.min(Vr(l.sf,l.audioTrack)*1E3,l.W.targetAudioReadaheadMs);n=Math.min(Vr(l.sf,l.videoTrack)*1E3,l.W.targetVideoReadaheadMs);var F=Math.min(X,n);O=Qc(l.audioTrack,!0)*1E3;var x=Qc(l.videoTrack,!0)*1E3;if(l.policy.Vr){var Z=l.uF.getCurrentTime()*1E3;var J=T7k(l.Q5.kP,Z);Z=T7k(l.Lf.kP,Z)}else J=O,Z=x;var w=J<F&&!C3(l,l.audioTrack);F=Z<F&&!C3(l,l.videoTrack);!(F=!w&&!F)&&(F=l.policy.W)&&(F=l.sf,!F.s_||qb(F.T3)?F=!1:(w=ty(F.s_),F=W7q(F,w)));if(F||l.policy.gM&&EP8(l.sf)&&l.videoData.UX()||l.policy.p9&& EP8(l.sf))return!1;l.policy.T&&(F=l.sf.sC(),F.car=J,F.vac=Z,F.mar=X,F.mvr=n,F.tar=l.W.targetAudioReadaheadMs,F.tvr=l.W.targetVideoReadaheadMs,F.vbu=xG(((L=l.uF.T$())==null?void 0:L.NJ())||null),F.abh=O,F.vbh=x,l.sf.Sp("sabrcrq",F));return!0}; RG=function(l,n){A29(l);l.sf.ez();return DR(n,l.sf.isSeeking())}; T7k=function(l,n){var O=0,L=-1;l=g.P(l);for(var X=l.next();!X.done;X=l.next())if(X=X.value,!(X.startTimeMs+X.durationMs<n)){if(L<0&&X.startTimeMs>n||L>=0&&X.kW>L+1)break;O=Math.max(O,X.startTimeMs+X.durationMs);L=Math.max(L,X.Sr)}return Math.max(0,O-n)}; wya=function(l,n,O){var L={Rn:l.Rn,iA:function(J,w){l.uF.vI(J,w)}, wH:l.policy.wr,SX:l.policy.N};l.Rn.W.T&&(L.Gn=(l.videoTrack.S.info.Sv||0)+(l.audioTrack.S.info.Sv||0));l.policy.o_&&(L.Uc=l.audioTrack.S.index.df(),L.wH=!1);var X=Atf(n,l.policy,l.T)?2:1;X!==l.Wm&&(l.Wm=X,N70(l));O=UWa(l,O);if((l.policy.W||l.policy.Hm)&&l.policy.N&&O.TM){for(var F=X="",x=g.P(O.TM),Z=x.next();!Z.done;Z=x.next())Z=Z.value,l.videoData.sabrContextUpdates.has(Z)?X+="_"+Z:F+="_"+Z;l.sf.Sp("sabrbldrqs",{ctxts:X,misctxts:F})}n.setData(O,l.sf.WM(),l.policy,l.T)||!l.policy.W&&!l.policy.Hm|| l.sf.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);L=new QP(l.policy,n,l.T3,l.T,l,L,l.sf.jd(),l.policy.ea?l.sf.WM():void 0);eE(l.timing);l.policy.T&&l.sf.Sp("sabrcrq",{rn:L.ih(),probe:n.YR()});return L}; lb=function(l,n){if(n.JG()||l.JG())l.policy.Op||(l.policy.V?vh(l.sf):l.sf.yV());else{if(l.policy.N&&n.isComplete()&&n instanceof QP){var O=l.sf,L=O.Sp,X,F,x=Object.assign(n.mG.Ek(),{rst:n.state,strm:n.xhr.Ga(),d:(X=n.mG.z3)==null?void 0:X.OP(),cncl:n.xhr&&n.T2.L?1:0,rqb:n.z0,cwt:n.ex,swt:(F=n.UI)==null?void 0:F.RQ});X=Object.assign(Utf(n.info),x);L.call(O,"rqs",X)}if(n.isComplete()&&n.YR()&&n instanceof QP)l.policy.Xg?n.f0()?(n.dispose(),l.S.length===0?l.sf.yV():(l=l.S[0],l instanceof QP&&l.nz()&& l.OR(!1))):n.Ad()&&l.sf.handleError(n.K2(),n.s7()):(n.dispose(),l.sf.yV());else{if(n.M4())n instanceof QP&&hb5(l.timing,n),N70(l),DWk(l);else if(n.Ad())O=l.uF.zY(),n instanceof QP&&rtq(n.info)&&O&&l.sf.d_(O),n instanceof K3?l.S.pop():(O=1,n.canRetry()&&vY(l.sf)&&(q7k(l,n),O=0),l.sf.handleError(n.K2(),n.s7(),O));else{if(l.sf.isSuspended&&!n.isComplete())return;DWk(l)}n.JG()||n instanceof K3||(n.isComplete()?O=f6a(n,l.policy,l.T):(O=sSi(n,l.policy,l.T),O===1&&(l.Pm=!0)),O!==0&&(L=new ED(1,n.info.Vp), L.N0=O===2,wya(l,L)));l.policy.q5&&!n.isComplete()?C4(l.sf):l.sf.yV()}}}; DWk=function(l){for(;l.S.length&&l.S[0].CR(l.G7());){var n=l.S.shift();k87(l,n);if(l.policy.B){var O=l;if(!O.policy.nf&&n.CR(O.G7())){var L=n.ih();if(O.nf!==L){var X=n.FJ();n=X.Eu;var F=X.F4;X=X.isDecorated;!O.L||F<0||(O.nf=L,L=$0(O.Y,F/1E3,n),F=O.sf.ez()||0,my(O.Y,n,L-F,X,O.L))}}}}l.S.length&&k87(l,l.S[0])}; k87=function(l,n){var O=new Set(n.aL(l.G7()));O=g.P(O);for(var L=O.next();!L.done;L=O.next()){var X=L.value;if(!(L=!(n instanceof K3))){L=l.N;var F=L.T3.tA,x=To(L.videoInfos,F);L=htg(L,X,F)||x.includes(X)}if(L&&(L=n.rr(X,l.G7()),F=l.policy.oO&&L5(L[0].S.info.mimeType),(!(!F&&l.policy.Rw&&L.length>0&&(L[0].S.info.vM()?Qc(l.audioTrack):Qc(l.videoTrack))>3)||n.isComplete())&&n.k6(X,l.G7()))){X=n.uh(X,l.G7());if(l.policy.W){x=L[0].S.info;var Z=l.sf.WM();if(Z&&x){var J=n.sD();Z.api.J("html5_ssap_set_format_info_on_video_data")&& J===Gr(Z)&&(x.vM()?Z.playback.getVideoData().L=x:Z.playback.getVideoData().W=x);if(Z=nt(Z.timeline,J))if(Z=Z[0].getVideoData())x.vM()?Z.L=x:Z.W=x}}X=g.P(X);for(x=X.next();!x.done;x=X.next())if(x=x.value,l.policy.N&&n instanceof K3&&l.sf.Sp("omblss",{s:x.info.rK()}),F)Z=l,Z.videoData.tA()&&Z.V&&Dy(Z.V)===Dy(g.n5(x.info.S.info,Z.T3.tA))&&Z.uF.publish("sabrCaptionsDataLoaded",x,Z.cg.bind(Z));else{Z=x.info.S.info.vM();var w=x.info.S;if(Z){J=void 0;var H=l.N,A=(J=n.fF(l.G7()))==null?void 0:J.token;H.G= !1;w!==H.V&&(H.V=w,H.qw(w,H.audioTrack,A))}else J=void 0,Ow9(l.N,w,(J=n.fF(l.G7()))==null?void 0:J.token);J=Z?l.audioTrack:l.videoTrack;n instanceof K3&&(J.T=!1,n instanceof K3&&(Z?Od5(l.timing):nzk(l.timing)));try{NG(J,L,x)}catch(b){x=el(b),l.sf.handleError(x.errorCode,x.details,x.severity),J.ul(),l.Xv(!1,"pushSlice"),vh(l.sf)}}}}}; q7k=function(l,n){l.policy.Hm?l.S.splice(l.S.indexOf(n)).forEach(function(O){O.dispose()}):(l.S.pop(),n==null||n.dispose())}; y2k=function(l,n,O){for(var L=[],X=0;X<l.S.length;X++)n&&l.S[X]instanceof K3?L.push(l.S[X]):(l.policy.T&&l.sf.Sp("sabrcrq",{d:l.S[X].ih(),src:O}),l.S[X].dispose());l.S=L}; Mbq=function(l,n){n&&n.type&&(l.videoData.sabrContextUpdates.set(n.type,n),n.sendByDefault&&l.TM.add(n.type))}; Q49=function(l,n,O){n.A1(O.m4,O.version)?l.videoData.w9=O.version||"":l.sf.Sp("ssap",{v:O.version,tlnu:1})}; N70=function(l){l.TM.clear();if(l.videoData.sabrContextUpdates.size>0)for(var n=g.P(l.videoData.sabrContextUpdates.keys()),O=n.next();!O.done;O=n.next()){O=O.value;var L=void 0;((L=l.videoData.sabrContextUpdates.get(O))==null?0:L.sendByDefault)&&l.TM.add(O)}if(l.policy.Hm&&l.S.length)for(n=g.P(l.S),O=n.next();!O.done;O=n.next())(O=O.value.lM())&&O.type&&O.sendByDefault&&l.TM.add(O.type)}; ekv=function(l){l.policy.M5&&(l.Cf=void 0,l.lW=0)}; Y77=function(l,n){if(n.Ad()||n.JG()){var O=l.sf,L=O.Sp,X=n.state;l=l.G7();var F,x;if((n=(F=n.z1)==null?void 0:F.get(l))==null)n=void 0;else{F=0;l=n.aL();for(var Z=0;Z<l.length;Z++){var J=void 0;F+=((J=n.pp.get(l[Z]))==null?void 0:J.bytesReceived)||0}n=F}n=(x=n)!=null?x:-1;L.call(O,"sabromb",{s:X,tbytes:n})}else l.S.push(n),n.Wq.push(l),eE(l.timing),l.policy.AP&&n.pJ&&l.pX(n.pJ)}; C3=function(l,n){return l.policy.ai?!l.sf.Gh&&Sx(n)&&(n.dk()!==Sx(n)||l.sf.isSuspended):!1}; j4e=function(l){var n="";l=g.P(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;n+=".cid."+O.clipId;if(O.Yk){var L=O.Yk;n+=".vid."+L.Uz+(".pst."+L.Yy)+(".ps."+L.xx)+(".lst."+L.S_m)+(".ld."+L.rR)+(".ls."+L.La)}O.Xm&&(n+=".nonv."+O.Xm.GF)}return n}; G8a=function(l,n,O,L,X){this.sf=l;this.policy=n;this.schedule=O;this.RE=L;this.Y=X;this.Wm=NaN;this.W=this.T=this.L=null;this.S=this.B=this.V=this.startTimeSecs=NaN;this.N=!1;this.G=NaN}; mW5=function(l,n,O,L,X,F){return n.Z$&&n.lf&&O===3?new G8a(l,n,L,X,F):null}; IYg=function(l,n){if(l.policy.AB){var O=n.info.Sv,L=WI(l.schedule);n=n.index.df();O=Math.max(1,L/O);l.G=Math.round(Math.max(((O-1)*n+l.policy.Y4)/O,n-l.policy.D0)*1E3)}}; Vba=function(l,n){var O=Date.now()/1E3,L=O-l.startTimeSecs,X=O-l.V,F=X>=l.policy.tY,x=!1;if(F){var Z=0;!isNaN(n)&&n>l.B&&(Z=n-l.B,l.B=n);Z/X<l.policy.n3&&(x=!0);l.V=O}O=L>=l.policy.D0&&!l.N;if(!F&&!O&&dWf(l,n))return NaN;O&&(l.N=!0);a:{L=x;O=(0,g.Q_)()/1E3-(l.RE.sP()||0)-l.T.S-l.policy.Y4;F=l.W.startTime;O=F+O;if(L){if(isNaN(n)){OV(l,NaN,"n",n);F=NaN;break a}L=n-l.policy.LZ;L<O&&(O=L)}else l.N&&(L=O+l.policy.Y4-l.Wm+l.policy.XN,isNaN(n)||(L=Math.max(L,Math.min(O,n-l.policy.LZ))),O=L);F=O=Math.max(O, F)}l.S=F;if(isNaN(l.S))return l.clear(),NaN;if(!x&&dWf(l,n))return $W5(l,n),NaN;if(l.S<=l.W.startTime)return OV(l,NaN,"y",n),l.clear(),NaN;if(!l.Y(l.S,!1))return!$W5(l,n)&&x&&(OV(l,NaN,"t",n),l.clear()),NaN;x=l.S;OV(l,x,"s",n);l.clear();return x}; $W5=function(l,n){return l.Y(l.S,!0)?!1:(OV(l,NaN,"ns",n),l.clear(),!0)}; dWf=function(l,n){return isNaN(n)?!0:isNaN(l.S)?!1:n<l.S+(l.N?l.policy.LZ:l.policy.jj)}; OV=function(l,n,O,L){var X=l.L.s7();X.ssr_sk=(n*1E3).toFixed(0);X.ssr_t=(l.S*1E3).toFixed(0);X.ssr_r=O;X.ssr_st=(l.startTimeSecs*1E3).toFixed(0);X.ssr_n=(0,g.Q_)().toFixed(0);X.ssr_f=(l.T.S*1E3).toFixed(0);X.ssr_fa=l.N?"1":"0";X.ssr_o=(l.RE.sP()*1E3||0).toFixed(0);X.ssr_v=(L*1E3).toFixed(0);n=l.W.S.index;n.AQ(l.W.Ef,!0)&&(X.ssr_ist=(n.getStartTime(l.W.Ef)*1E3).toFixed(0),X.ssr_id=(n.getDuration(l.W.Ef)*1E3).toFixed(0));l.sf.Sp("ssr",X)}; B7k=function(){var l={};if(window.performance){var n=window.performance.memory;n&&(l.jsTotal=n.totalJSHeapSize,l.jsUsed=n.usedJSHeapSize,l.jsLimit=n.jsHeapSizeLimit,l.msTotal=n.totalMediaSourceSize,l.msLimit=n.mediaSourceSizeLimit,l.msUsed=n.usedMediaSourceMemorySize)}var O;if((O=window.h5vcc)==null?0:O.cVal)l.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),l.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),l.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return l}; g.Lt=function(l,n,O,L,X,F,x,Z,J,w){Z=Z===void 0?!1:Z;g.V.call(this);var H=this;this.uF=l;this.schedule=n;this.policy=O;this.T3=L;this.NQ=J;this.q5=w;this.Xi=null;this.z3=this.Hm=this.Cf=this.Gh=0;this.xk=this.Z_=this.isSuspended=!1;this.G3="";this.Xg={};this.JA=!1;this.Yo=0;this.G=null;this.uv=this.wq=!1;this.tS=0;this.nf=!1;this.Lf=this.Of=0;this.K5=null;this.I6=function(){return H.uF.I6()}; this.timing=new lyi(this.q5);this.Y=new q$(this.schedule,this.policy);this.Fp=new g.vs(this.yV,0,this);this.oO=new g.vs(this.yV,this.policy.q5,this);this.yq=new g.vs(this.yV,1E3,this);this.hC=new g.vs(this.yV,void 0,this);this.Pm=new g.vs(function(){H.policy.kY&&H.isSuspended||H.yV()},1E4,this); this.Sz=new g.vs(this.F1f,250,this);this.V=this.currentTime=NaN;this.SP=new Jt(5);this.Q5=this.timestampOffset=NaN;this.logger=new g.OW("dash");this.Wk=Infinity;this.DQ={getAudioTrack:function(){return H.audioTrack}, xsi:function(){return H.videoTrack}, getManifest:function(){return H.T3}, l7q:function(){return H.N}, yV:function(){H.yV()}, VU:function(){H.Gh=0;H.VU()}, b83:function(A){return gA(H,H.videoTrack,H.Xi.W,A)}}; l=J&&J.aL();J&&(auq(J,this.T3,this.policy),this.Q5=Date.now());this.S=new fa(this,this.Y,O,this.T3,X,l);O=Ezg(this.S,F,x&&x.id);this.audioTrack=new PY(this,this.policy,O.audio,this.timing);this.videoTrack=new PY(this,this.policy,O.video,this.timing);this.videoTrack.L.Lf=this.audioTrack.pF();this.Fi={updateend:this.Is,error:this.Ief};g.c(this,this.Fp);g.c(this,this.oO);g.c(this,this.yq);g.c(this,this.hC);g.c(this,this.Pm);O=this.policy.Tt&&this.policy.gb?!JVi(this.videoTrack.S.info):!1;this.n5=dSv({Ce:this.policy.G.Ce|| O,gb:this.policy.gb&&!O,rE:this.policy.rE});this.T=mW5(this,this.policy,this.n5,this.schedule,this.SP,function(A,b){return c2q(H,A,b)}); this.L=new Y0(this,this.T3,this.policy,this.videoTrack,this.audioTrack,Z,this.uF.getVideoData().iK());this.xT=new GT(this,this.T3,this.videoTrack,this.audioTrack,this.policy);Z=this.policy.jA?this.uF.getVideoData().iJ:null;this.B=new sj(this,this.policy,this.videoTrack,this.audioTrack,this.Xg,this.L,this.timing,this.Y,this.schedule,this.T3,this.S,this.T,O,Z);g.c(this,this.B);this.W=new u5(this,this.policy,this.videoTrack,this.audioTrack,this.T3,X,gi(this.uF.getVideoData()),x==null?void 0:x.id);g.c(this, this.W);oJq(this.W,F);this.N=new Zy0(this.uF,this,this.policy,this.audioTrack,this.videoTrack,this.T3,this.schedule,this.S,this.W,this.timing,this.L);g.c(this,this.N);this.Wm=this.uF.AC.RB.qq;this.policy.V||iy7(this);this.logger.debug("Created")}; iy7=function(l){var n,O;if((n=l.Wm)==null?0:(O=n.zk)==null?0:O.itagDenylist){var L;l.wV((L=l.Wm)==null?void 0:L.zk.itagDenylist)}var X;if((X=l.Wm)==null?0:X.playbackStartPolicy){var F,x;SS(l.policy,(F=l.Wm)==null?void 0:F.playbackStartPolicy,3,(x=l.Wm)==null?void 0:x.ih())}if(l.policy.pI){n=l.G7();var Z;(O=n?(Z=l.Wm)==null?void 0:Z.Ka.get(n):void 0)&&l.N.ji(O)}if(!l.T3.Y){var J;Z=(J=l.Wm)==null?void 0:J.oV;(Z==null?0:Z.Cj)&&(Z==null?0:Z.NN)&&l.T3.tA&&D6(l.T3,Z.Cj,Z.NN)}var w;((w=l.Wm)==null?0:w.LF)&& (J=l.Wm.LF.get(l.G7()||""))&&l.T3&&J.formatId&&(l=l.T3.N.get(Dy(J.formatId)))&&(l.info.debugInfo=J.debugInfo)}; zkq=function(l,n){if(l.policy.W&&!l.policy.Fl)return!1;var O=Dy(g.n5(n.S.info,l.T3.tA)),L,X=((L=l.NQ)==null?void 0:L.rr(O))||[];if(X.length===0)return l.Sp("ombmsi",{}),!1;X=new $z(X);if(L=!l.policy.NQ||isFinite(l.getCurrentTime())||l.uF.zY()){a:{L=l.getCurrentTime();X=g.P(X.Z2);for(var F=X.next();!F.done;F=X.next())if(F=F.value,F.type===3&&L>=F.Fo&&L<=F.Pl){L=!0;break a}L=!1}L=!L}if(L)return l.Sp("ostmf",{ct:l.getCurrentTime(),a:n.S.info.vM()}),!1;(l=l.NQ)!=null&&(l.pp.get(O).Ag=!0);return!0}; S75=function(l){if(!l.T3.tA)return!0;var n=l.uF.getVideoData();if(n.J("html5_skip_live_preroll_onesie")&&l.uF.fT()||n.J("html5_skip_live_preroll_onesie_post_live")&&l.uF.fT()&&(n.aI||n.isPremiere))return l.Sp("ombpa",{}),!1;var O,L;if(l.policy.qj&&!!((O=l.Wm)==null?0:(L=O.oV)==null?0:L.Pfo)!==l.T3.aI)return l.Sp("ombplmm",{}),!1;O=n.n5||n.liveUtcStartSeconds||n.oA;if(l.T3.aI&&O)return l.Sp("ombplst",{}),!1;if(l.T3.Y)return l.Sp("ombab",{}),!1;O=Date.now();return qb(l.T3)&&!isNaN(l.Q5)&&O-l.Q5>l.policy.Ch* 1E3?(l.Sp("ombttl",{}),!1):l.T3.Jt&&l.T3.L||!l.policy.FN&&l.T3.isPremiere||!(AZ(n)===0||l.policy.S&&n.J("html5_enable_onesie_media_for_sabr_proxima_optin"))||n.J("html5_disable_onesie_media_for_mosaic")&&fN(n)||n.J("html5_disable_onesie_media_for_ssdai")&&n.isDaiEnabled()&&n.enableServerStitchedDai?!1:!0}; pyv=function(l,n){var O=n.S,L=l.T3.tA;if(S75(l))if(l.NQ&&l.NQ.pp.has(Dy(g.n5(O.info,L)))){if(L=Dy(g.n5(O.info,L)),zkq(l,n)){var X=new $z(l.NQ.rr(L)),F=function(x){try{if(x.Ad())l.handleError(x.K2(),x.s7()),jS(n,x),B_(x.info)&&a2(l.B,n,O,!0),l.yV();else if(R2(l.B,x)){var Z;(Z=l.L)==null||Hd9(Z,x.info,l.G);l.yV()}}catch(J){x=el(J),l.handleError(x.errorCode,x.details,x.severity),l.ul()}}; O.N=!0;V4(X)&&(Ej(n,new mL(l.policy,L,X,l.NQ,F)),eE(l.timing))}}else l.Sp("ombfmt",{})}; XU=function(l,n){n=n||l.videoTrack&&l.videoTrack.W&&l.videoTrack.W.startTime||l.getCurrentTime();var O=t4,L=l.videoTrack,X=l.S;n=X.nextVideo&&X.nextVideo.index.Qb(n)||0;X.Lf!==n&&(X.z3={},X.Lf=n,Ka(X,X.S));n=!X.S.isLocked()&&X.Y>-1&&(0,g.Q_)()-X.Y<X.policy.eH*1E3;var F=X.nextVideo&&Ca(X,X.nextVideo.info)*3<M$(X.Q5);if(!n||F)sW(X),aQ(X),X.NQ=X.NQ||X.nextVideo!==X.N;X.nextVideo&&!X.nextVideo.index.isLoaded()&&(X.Lf=-1);O(l,L,X.nextVideo);t4(l,l.audioTrack,l.S.W)}; oD=function(l,n){l.Z_=n;l.policy.Lf||(l.logger.debug("Suspended."),l.isSuspended=!0,l.policy.TW&&(l.yq.stop(),l.oO.stop(),l.Fp.stop()),l.policy.kY&&l.Pm.stop())}; IQ=function(l,n,O,L){l.policy.B&&l.Xv(!1,"rollback");if(l.T3.isManifestless){var X=eS(l.audioTrack,L,O,n),F=eS(l.videoTrack,L,O,n);l.policy.At||(F&&Nb(l.T3,L,!0),X&&Nb(l.T3,L,!1));l.policy.Wk&&(F&&(l.videoTrack.Wm=[]),X&&(l.audioTrack.Wm=[]));l.Sp("sdai",{rollbk2_seg:L,rbt:O.toFixed(3),lt:n.toFixed(3),a:X,v:F});(X||F)&&l.policy.B&&vh(l)}}; s4v=function(l){l.logger.debug("Rebuffering.");l.xk=!0;if(l.policy.Yo&&l.Xi){var n,O,L,X;l.Sp("lr_rb",{c:l.getCurrentTime(),s:l.isSeeking(),ab:xG(l.Xi.S.G$()),ala:(n=WY(l.audioTrack))==null?void 0:n.rK(),alr:(O=l.audioTrack.W)==null?void 0:O.rK(),vb:xG(l.Xi.W.G$()),vla:(L=WY(l.videoTrack))==null?void 0:L.rK(),vlr:(X=l.videoTrack.W)==null?void 0:X.rK()})}l.uF.AE()!==0&&l.Sp("sps_rebuffer",{c:l.getCurrentTime()})}; fYa=function(l){l.policy.JA=!1;try{l.VU()}catch(n){g.Ir(n)}}; K77=function(l){return l.policy.S&&l.policy.W&&(!ut()&&l.policy.IU||l.policy.SK)}; CQ8=function(l,n,O,L){O=O===void 0?!1:O;L=L===void 0?!1:L;l.policy.Lf&&(l.logger.debug("disable updateMetadataWithoutMediaSource"),l.policy.z3&&l.Sp("loader",{setsmb:0}),l.ul(),l.policy.Lf=!1);l.logger.debug("attaching media source");aY9(l,L);if(K77(l))l.Sp("ssap",{delaysb:1}),l.Xi=n;else{if(!R1(n)){var X=Sx(l.videoTrack);X=X?X.info.S:l.videoTrack.S;var F=Sx(l.audioTrack);F=F?F.info.S:l.audioTrack.S;l.policy.W&&l.Sp("ssap",{initsb:1,v:X.info.id,vf:X.info.bF,a:F.info.id,af:F.info.bF});Tyi(n,X.info, F.info,l.policy.UU)}Rke(l,n,O,L);try{l.yV()}catch(x){g.Ir(x)}}}; Rke=function(l,n,O,L){O=O===void 0?!1:O;L=L===void 0?!1:L;Tr(l.videoTrack,n.W||null,L);Tr(l.audioTrack,n.S||null,L);l.Xi=n;l.Xi.L=!0;O||l.resume();n.S.DF(l.Fi,l);n.W.DF(l.Fi,l)}; aY9=function(l,n){n=n===void 0?!1:n;l.Xi&&l.Xi.S&&l.Xi.W&&(l.Xi.S.zW(l.Fi,l),l.Xi.W.zW(l.Fi,l));Tr(l.audioTrack,null,n);Tr(l.videoTrack,null,n);l.Xi&&(l.Xi.L=!1);l.Xi=null}; tbe=function(l){l.Xi&&l.Xi.h7()&&(l.HK(),l.policy.eL&&l.handleError("fmt.unplayable",{unexpected:1},1))}; lfi=function(l,n){if(!l.JG())if(l.policy.S){if(!FXi(l.W,n)){var O=l.W.W;oJq(l.W,n);var L=!1;L=n.isLocked()&&n.reason==="m"&&xtf(l.W,n.S);var X=l.policy.G6&&n.reason==="l";O=O.S>n.S&&n.reason==="b";L||X||O?(l.uF.eI({reattachOnConstraint:L?"u":X?"drm":"perf",lo:n.W,up:n.S}),l.policy.hn||(l.W.S.W=!1)):(l.policy.hn&&(l.W.S.W=!1),vh(l))}}else if(!NK9(l.S,n)&&l.videoTrack){l.logger.debug(function(){return"Setting constraint: r="+n.reason+" u="+n.S}); O=l.S.S;vP5(l,qLi(l.S,n));XU(l);L=n.isLocked()&&n.reason==="m"&&l.S.NQ;X=l.policy.G6&&n.reason==="l"&&I2(l.videoTrack);O=O.S>n.S&&n.reason==="b";var F=l.S.G3&&!ut();L||X||O||F?l.uF.eI({reattachOnConstraint:L?"u":X?"drm":F?"codec":"perf"}):vh(l)}}; nZa=function(l,n,O){if((!l.Xi||f5(l.Xi)&&!l.policy.jI)&&!l.xT.isSeeking()&&(l.policy.S||I2(n)&&n.S.y4()&&l.S.Wm)){var L=l.getCurrentTime()+EWe(l.Y,n,O);l.logger.debug(function(){return"Clearing back to "+L.toFixed(3)}); kIv(n,L)}}; vP5=function(l,n){n&&(l.logger.debug(function(){return"Logging new format: "+o1(n.video.info)}),ONq(l.uF,new cm(n.video,n.reason))); if(l.S.Pm){var O=Qf5(l.S,"a");l.uF.wN(new cm(O.audio,O.reason))}}; vh=function(l){g.lx(l.Fp)}; C4=function(l){l.policy.q5&&l.policy.rE&&Math.min(qk9(l.videoTrack),qk9(l.audioTrack))*1E3>l.policy.gY?g.lx(l.oO):l.yV()}; gZ9=function(l,n){var O=(0,g.Q_)()-n,L=Qc(l.audioTrack,!0)*1E3,X=Qc(l.videoTrack,!0)*1E3;l.logger.debug(function(){return"Appends paused for "+O}); if(l.policy.N&&(l.Sp("apdpe",{dur:O.toFixed(),abuf:L.toFixed(),vbuf:X.toFixed()}),iC(l.policy))){var F=M$(l.Y);l.Sp("sdps",{ct:n,ah:L.toFixed(),vh:X.toFixed(),mr:Qr(l.Y,l.xk,F),bw:F.toFixed(),js:l.isSeeking(),re:+l.xk,ps:(l.policy.vr||"").toString(),rn:(l.policy.Fa||"").toString()})}}; LN8=function(l){if(l.policy.W&&Vc(l.videoTrack)&&Vc(l.audioTrack))return"ssap";if(jSe(l.videoTrack))return l.logger.debug("Pausing appends for server-selectable format"),"ssf";if(l.policy.Pm&&BY(l.videoTrack)&&BY(l.audioTrack))return"updateEnd";if(mz(l.audioTrack)||mz(l.videoTrack)&&l.videoTrack.S.info.bF!=="f")return"";if(l.xT.isSeeking()){var n=l.Y;var O=l.videoTrack;var L=l.audioTrack;if(n.policy.S){var X=n.policy.oh;iC(n.policy)&&(X=Qr(n,!1,M$(n)));n=X;O=Qc(L,!0)>=n&&Qc(O,!0)>=n}else O.N.length|| L.N.length?(X=O.S.info.Sv+L.S.info.Sv,X=10*(1-M$(n)/X),n=Math.max(X,n.policy.oh),O=Qc(L,!0)>=n&&Qc(O,!0)>=n):O=!0;if(!O)return"abr";O=l.videoTrack;if(O.N.length>0&&O.L.W.length===1&&nY8(O.L).info.V<O.Pm)return"seek"}if(l.policy.B&&I6e(l.videoTrack,l.L)&&I6e(l.audioTrack,l.L))return"ssdai";O=!l.policy.S0||l.getCurrentTime()<10;l.policy.S||(O=O||l.videoTrack.S.info.video.S>360);L=iC(l.policy)&&l.policy.CX;if(!l.xk||!L&&O)return"";O=l.policy.S0;iC(l.policy)&&(O=Qr(l.Y,l.xk,M$(l.Y)));O=Mm8(l.videoTrack, l.getCurrentTime(),O)||Mm8(l.audioTrack,l.getCurrentTime(),O);return iC(l.policy)?O?"mbnm":"":(l.videoTrack.N.length>0||l.audioTrack.N.length>0||f4(l.B,l.videoTrack,l.audioTrack)||f4(l.B,l.audioTrack,l.videoTrack))&&O?"nord":""}; Xf0=function(l){if(l.T){var n=l.T.yV(l.audioTrack,wv(l.Xi.W.G$()));n&&l.uF.seekTo(n,{Uw:!0,UC:"pollSubsegmentReadahead",KI:!0})}}; wfi=function(l,n,O){if(l.policy.Pm&&BY(n))return!1;if(O.A8())return!0;if(!O.ir())return!1;var L=Sx(n);if(!L||L.info.type===6)return!1;var X=l.policy.ow;if(X&&!L.info.L){var F=L.info.Fo-l.getCurrentTime();if(L.info.V<F*X)return!1}var x;if(l.policy.pg||((x=l.L)==null?0:bd5(x,n,L.info.Ef)))l.z3=0;else return l.xT.isSeeking()&&vh(l),l.z3=l.z3||(0,g.Q_)(),!1;if(!gA(l,n,O,L.info))return!1;if(l.T3.W&&L.info.W===0){if(X=oZa(n,O,L))F=WY(n),l.Sp("initchg",{it:L.info.S.info.id,sr:!!F&&F.S===L.info.S,ty:L.info.type, seg:L.info.Ef});F=g.v7(L.info.S.info);l.policy.oA&&F&&!X&&EG8(L)}F=l.T&&!!l.T.L&&n.S.info.audio;X=l.T3.isManifestless||L.B;if(!(l.T3.W&&L.info.W!==0||X&&!F)&&FN9(l,n,O,L))return!0;if(F)return!1;F=Vr(l,n);F=l.getCurrentTime()+F;if(L.info.Fo>F)return l.policy.S&&xkv(l,n),l.policy.GI&&Ibv(n.L,F,!1),!1;h20(l,n);var Z;l.policy.j7&&O===((Z=l.Xi)==null?void 0:Z.S)&&l.nf&&(O.kA()===0?(l.nf=!1,l.policy.j7=!1):l.Of=O.kA());if(!ZNq(l,O,L,n))return!1;l.policy.Pm&&L.info.pM()?(l.uF.j().AA()&&l.Sp("eosl",{ls:L.info.rK()}), L.isLocked=!0):(n.Gz(L),Ms8(l.S,L.info),l.logger.debug(function(){return"Appended "+L.info.rK()+", buffered: "+xG(O.G$())})); X&&JZ9(l,L.info.S.xA);return!0}; xkv=function(l,n){n===l.videoTrack?l.Hm=l.Hm||(0,g.Q_)():l.Cf=l.Cf||(0,g.Q_)()}; h20=function(l,n){n===l.videoTrack?l.Hm=0:l.Cf=0}; ZNq=function(l,n,O,L){var X=l.policy.Yo?(0,g.Q_)():0,F=O.B&&O.info.S.S||void 0,x=O.S;O.B&&(x=HNe(l,O,x)||x);var Z=x.q0();x=l.policy.Yo?(0,g.Q_)():0;n=AZe(l,n,Z,O.info,F);(L=L.Y)!=null&&(F=O.info,X=x-X,x=(0,g.Q_)()-x,!L.W||sb9(L.W,F)&&L.W.Ef===F.Ef||L.flush(),L.L+=X,L.N+=x,X=1,!L.W&&F.W&&(X=2),lC(L,X,n),x=Math.ceil(F.W/1024),X===2&&L.S.add(x),L.S.add(Math.ceil((F.W+F.N)/1024)-x),L.W=F);l.Lf=0;if(n===0)return l.wq&&(l.logger.debug("Retry succeed, back to normal append logic."),l.wq=!1,l.uv=!1),l.Yo= 0,!0;if(n===2||n===5)return bNq(l,"checked",n,O.info),!1;if(n===1){if(!l.wq)return l.logger.debug("QuotaExceeded, retrying."),l.wq=!0,!1;if(!l.uv)return l.uv=!0,l.uF.seekTo(l.getCurrentTime(),{UC:"quotaExceeded",KI:!0}),!1;O.info.RR()?(X=l.policy,X.wq=Math.floor(X.wq*.8),X.Q5=Math.floor(X.Q5*.8)):(X=l.policy,X.uv=Math.floor(X.uv*.8),X.Q5=Math.floor(X.Q5*.8));l.policy.S?zQ(l.W.S,O.info.S,!1):RQ(l.S,O.info.S)}l.uF.eI({reattachOnAppend:n});return!1}; HNe=function(l,n,O){var L;if(L=l.policy.JY&&l.Xi&&!l.Xi.G&&!l.uF.Wc())n=n.info.S.info,L=n.QE()&&fB(n)&&n.video&&n.video.width<3840&&n.video.width>n.video.height;if(L&&(l.Xi.G=!0,m8('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return O=vz9(O),l.policy.N&&l.Sp("sp4k",{s:!!O}),O}; bNq=function(l,n,O,L){var X="fmt.unplayable",F=1;O===5||O===3?(X="fmt.unparseable",l.policy.S?!L.S.info.video||SE(l.W.S).size>0||zQ(l.W.S,L.S,!1):!L.S.info.video||SE(l.S.B).size>0||RQ(l.S,L.S)):O===2&&(l.Yo<15?(l.Yo++,X="html5.invalidstate",F=0):X="fmt.unplayable");L=If(L);var x;L.mrs=(x=l.Xi)==null?void 0:C5(x);L.origin=n;L.reason=O;l.handleError(X,L,F)}; raq=function(l,n,O,L,X){var F=l.T3;var x=l.policy.S,Z=!1,J=-1,w;for(w in F.S){var H=L5(F.S[w].info.mimeType)||F.S[w].info.RR();if(L===H)if(H=F.S[w].index,H.AQ(n.Ef)){Z=H;var A=n,b=Z.P5(A.Ef);b&&b.startTime!==A.startTime?(Z.segments=[],Z.NZ(A),Z=!0):Z=!1;Z?J=n.Ef:!n.pending&&x&&(A=H.getDuration(n.Ef),A!==n.duration&&(F.publish("clienttemp","mfldurUpdate",{itag:F.S[w].info.itag,seg:n.Ef,od:A,nd:n.duration},!1),H.NZ(n),Z=!0))}else H.NZ(n),Z=!0}J>=0&&(x={},F.publish("clienttemp","resetMflIndex",(x[L? "v":"a"]=J,x),!1));F=Z;BBv(l.xT,n,L,F);l.L.aJ(n,O,L,X);n.Ef===l.T3.Jt&&F&&TI(l.T3)&&n.startTime>TI(l.T3)&&(l.T3.Hm=n.startTime+(isNaN(l.timestampOffset)?0:l.timestampOffset),l.xT.isSeeking()&&l.xT.S<l.T3.i5()&&l.xT.seek(l.T3.i5(),{}))}; gA=function(l,n,O,L){var X=WY(n);!X||X.L||Gt(X,L)||(O.abort(),(n=n.Y)!=null&&(lC(n,4),n.flush()));if(!O.yH()||ut())try{if(l.policy.Pq){if(O.CY(L.S.info.containerType,L.S.info.bF)){if(l.policy.HU&&O.y9())return!1;l.Sp("ssap",{chgtp:L.S.info.containerType,cf:L.S.info.bF,oldtp:O.yH(),oldcf:O.wm()});O.Zu(L.S.info.containerType,L.S.info.bF,L.S.info.mimeType)}}else O.OT(L.S.info.containerType,L.S.info.mimeType)}catch(F){return O=F,g.d2(O),l.Sp("ctexp",{name:O.name,msg:O.message}),!1}else L.S.info.containerType!== O.yH()&&l.Sp("ctu",{ct:ut(),prev_c:O.yH(),curr_c:L.S.info.containerType});n=L.S.L;l.policy.fX&&n&&(L=0+n.duration,n=-n.S,0===O.jP()&&L===O.Dc()||O.fl(0,L),n!==O.ez()&&(O.W5(n),Uj&&uD9(l.audioTrack.pF(),O.x9())));return!0}; FN9=function(l,n,O,L){L.info.S.y4();var X=L.info.S.S;if(!X||!O.ir()||O.VR()===X)return!1;var F=X,x=O.wz();if(l.policy.Ow&&x&&O.isView()&&g.v7(L.info.S.info)){var Z=new DataView(X.buffer,X.byteOffset,X.byteLength);(x=y6e(Z,x))?F=new Uint8Array(x.buffer,x.byteOffset,x.byteLength):l.Sp("fenc",{})}l.policy.JY&&(x=HNe(l,L,new Pa([F])))&&(F=x.q0());var J;(x=L.info.S.JF(0,L.info.clipId))&&(J=x.Z2[0]);if(L===l.K5){if(l.Lf+=1,l.uF.getVideoData().J("html5_shorts_gapless_restart_on_init_seg_retries")&&l.Lf> 5)return l.Lf=0,l.uF.eI({initSegStuck:1,as:L.info.rK()}),!0}else l.Lf=0,l.K5=L;l.policy.y6&&(O.abort(),(x=n.Y)!=null&&(lC(x,4),x.flush()));X=AZe(l,O,F,J,X);var w;(w=n.Y)==null||$S8(w,X,J);if(X!==0)return rZa(l,X,L),!0;L.info.RR()?X_0(l.timing):ozf(l.timing);l.logger.debug(function(){return"Appended init for "+L.info.S.info.id}); JZ9(l,L.info.S.xA);return O.y9()}; oZa=function(l,n,O){if(n.VR()==null){l=WY(l);if(!(n=!l||l.S!==O.info.S)){a:if(l=l.T,O=O.info.T,l.length!==O.length)O=!1;else{for(n=0;n<l.length;n++)if(!g.Jm(l[n],O[n])){O=!1;break a}O=!0}n=!O}return n}l=n.VR();O.info.S.Cs()&&gC(O);O=O.info.S.S;return l!==O&&!g.Jm(l,O)}; AZe=function(l,n,O,L,X){var F=0;if(l.policy.W&&L&&L.clipId&&l.s_){var x;F=(((x=l.s_)==null?void 0:Ye(x,L.clipId))||0)/1E3}try{l.policy.W&&n.ez()!==F&&n.W5(F);var Z,J=n===((Z=l.Xi)==null?void 0:Z.S)?l.audioTrack:l.videoTrack;if(l.policy.Pm&&(L==null?0:L.pM())){if((L==null?void 0:L.G)>1)return 6;J.Hm=new g.vs(function(){var H=Sx(J);l.JG()||H==null||!H.isLocked?l.uF.j().AA()&&l.Sp("eosl",{delayA:H==null?void 0:H.info.rK()}):Uk9(J)?(l.uF.j().AA()&&l.Sp("eosl",{dunlock:H==null?void 0:H.info.rK()}),uZk(l, J===l.audioTrack)):(l.Sp("nue",{ls:H.info.rK()}),H.info.G+=1,l.Xi&&l.VU())},1E4,l); l.uF.j().AA()&&l.Sp("eosl",{delayS:L.rK()});J.Hm.start()}if(l.policy.Xj&&(L==null?0:L.pM())){var w;if((w=J.Cf)==null?0:w.isActive())g.nz(J.Cf),l.Sp("sbac",{as:L.rK()});J.Cf=new g.vs(function(){l.Sp("sbum5s",{as:L.rK()})},5E3,l); J.Cf.start()}l.policy.Ri&&(L==null?void 0:L.S)instanceof zt&&L.pM()&&l.Sp("poseos",{itag:L.S.info.itag,seg:L.Ef,lseg:L.S.index.G2(),es:L.S.index.N});n.appendBuffer(O,L,X)}catch(H){if(H instanceof DOMException){if(H.code===11)return 2;if(H.code===12)return 5;if(H.code===22||H.message.indexOf("Not enough storage")===0)return n=Object.assign({name:"QuotaExceededError",buffered:xG(n.G$()).replace(/,/g,"_"),vheap:yc(l.videoTrack),aheap:yc(l.audioTrack),message:g.TR(H.message,3),track:l.Xi?n===l.Xi.W?"v": "a":"u"},B7k()),l.handleError("player.exception",n),1;g.Ir(H)}return 4}return l.Xi.h7()?3:0}; zT=function(l,n,O){l.uF.seekTo(n,O)}; JZ9=function(l,n){n&&l.uF.VC(new xS(n.key,n.type))}; w_=function(l,n){l.uF.tq(n)}; Vr=function(l,n){if(l.wq&&!l.xk)return 3;if(l.isSuspended)return 1;var O;if((O=l.Xi)==null?0:O.Xi&&O.Xi.streaming===!1)return 4;O=(n.S.info.audio?l.policy.uv:l.policy.wq)/(n.Sv*l.policy.CT);if(l.policy.zI>0&&l.Xi&&f5(l.Xi)&&(n=n.S.info.video?l.Xi.W:l.Xi.S)&&!n.y9()){n=n.G$();var L=hY(n,l.getCurrentTime());L>=0&&(n=l.getCurrentTime()-n.start(L),O+=Math.max(0,Math.min(n-l.policy.zI,l.policy.hg)))}l.policy.Q5>0&&(O=Math.min(O,l.policy.Q5));return O}; bye=function(l,n){return(Vr(l,n)+l.policy.iY)*n.Sv}; Tii=function(l){l.G3&&!l.isSuspended&&EI(l.schedule)&&(PT9(l,l.G3),l.G3="")}; PT9=function(l,n){DK(n,"cms",function(O){l.policy.N&&l.Sp("pathprobe",O)},function(O){l.uF.handleError(O)})}; WNq=function(l,n){if(l.Xi&&l.Xi.L&&!l.Xi.h7()&&(n.ZB=Qc(l.videoTrack),n.W=Qc(l.audioTrack),l.policy.N)){var O=yc(l.videoTrack),L=yc(l.audioTrack),X=xG(l.Xi.W.G$(),"_",5),F=xG(l.Xi.S.G$(),"_",5);Object.assign(n.S,{lvq:O,laq:L,lvb:X,lab:F})}n.bandwidthEstimate=ke(l.Y);var x;(x=l.audioTrack.Y)==null||x.flush();var Z;(Z=l.videoTrack.Y)==null||Z.flush();l.logger.debug(function(){return yC(n.S)})}; EZ5=function(l,n){l.G=n;l.L&&(l.L.V=n);l.G.sT(l.videoTrack.S.info.QE());l.B.W=l.G;l.policy.B&&(l.N.L=l.G)}; Ni0=function(l,n){if(l.Xi&&l.Xi.W){if(l.policy.aY){var O=$be(l.audioTrack);if(O&&O.vM()){var L=l.uF;L.G5&&(L.G5.S=O,L.p5(L.G5.videoId).Yf(L.G5))}}l.policy.g$&&(O=$be(l.videoTrack))&&O.RR()&&(L=l.uF,L.JW&&(L.JW.S=O,L.p5(L.JW.videoId).ov(L.JW)));n-=isNaN(l.timestampOffset)?0:l.timestampOffset;l.getCurrentTime()!==n&&l.resume();l.xT.isSeeking()&&l.Xi&&!l.Xi.h7()&&(O=l.getCurrentTime()<=n&&n<l.getCurrentTime()+10,L=ZA(l.Xi.W.G$(),l.getCurrentTime()+FU),O&&L&&(l.xT.B=!1));l.xT.isSeeking()||l.policy.Cf|| (l.currentTime=n);g.lx(l.yq)}}; Dke=function(l,n){var O=qG(l.videoTrack).find(function(L){return L.startTime>=n&&c2q(l,L.startTime,!1)}); return O&&O.startTime<n+O.duration*1.5?O.startTime+.1:0}; c2q=function(l,n,O){if(!(l.videoTrack.S.y4()&&l.audioTrack.S.y4()&&l.Xi&&l.Xi.W&&l.Xi.S))return!1;if(O&&l.T3.isManifestless&&(l.videoTrack.V===-1||l.audioTrack.V===-1))return!0;var L=$e(l.videoTrack,n,O);if(isNaN(L))return!1;l=$e(l.audioTrack,l.policy.lf?n:L,O);return isNaN(l)?!1:!0}; UD=function(l){l.ul();l.xT.isSeeking()&&l.logger.debug("seeking cancelled by seek-to-head");l.T&&IYg(l.T,l.videoTrack.S);vh(l);return m8v(l.xT)}; t4=function(l,n,O,L){(L===void 0?0:L)&&!n.wq&&(ut()||(L=n.Xp,K77(l)||!L||L.ke(O.info)||(l.Sp("ssap",{rstonsrvfmt:O.info.mimeType}),l.uF.vG())),n.wq=!0);n.S!==O&&(l.logger.debug(function(){return"Setting target itag: "+O.info.id+" (was "+n.S.info.id+")"}),n.S=O)}; Uk9=function(l){var n,O=(n=Sx(l))==null?void 0:n.info;return!O||$S(l,Math.min(O.Fo+FU,O.Pl))}; q95=function(l,n){var O;if((O=Sx(n))!=null&&O.isLocked&&Uk9(n)){if(l.uF.j().AA()){var L;l.Sp("eosl",{munlock:(L=Sx(n))==null?void 0:L.info.rK()})}uZk(l,n===l.audioTrack)}}; uZk=function(l,n){if(l.policy.Pm&&l.Xi){var O,L,X=n?(O=l.Xi)==null?void 0:O.S:(L=l.Xi)==null?void 0:L.W;O=n?l.audioTrack:l.videoTrack;n=Sx(O);if(n==null?0:n.isLocked){l.uF.j().AA()&&l.Sp("eosl",{unlock:n.info.rK()});var F;(F=O.Hm)==null||F.stop();n.isLocked=!1;O.Gz(n);Ms8(l.S,n.info);X=X==null?void 0:X.OF();(X==null?void 0:X.rK())!==n.info.rK()&&l.Sp("oue",{bls:X==null?void 0:X.rK(),tls:n.info.rK()})}}}; kyq=function(l,n){l.timestampOffset!==n&&(l.timestampOffset=n,l.policy.At&&Ek(l.T3),l.logger.debug(function(){return"Timestamps will be made relative to "+l.timestampOffset}),l.L.G=l.timestampOffset,l.uF.Uh(l.timestampOffset),l.T3.isManifestless&&(l.T3.timestampOffset=l.timestampOffset),l.videoTrack.W5(l.timestampOffset),l.audioTrack.W5(l.timestampOffset))}; yZa=function(l){l.policy.Wk&&(l.audioTrack.Wm=[],l.videoTrack.Wm=[])}; Rea=function(l){var n=l.PT().filter(function(L){return L.namespace==="ad"}); n=g.P(n);for(var O=n.next();!O.done;O=n.next())if(O=O.value,O.start/1E3>l.getCurrentTime())return O.start/1E3;return Infinity}; M40=function(l){var n=WY(l.videoTrack),O=WY(l.audioTrack);return n&&!db0(l.videoTrack)?n.startTime:O&&!db0(l.audioTrack)?O.startTime:NaN}; EP8=function(l){if(l.uF.getVideoData().isLivePlayback)return!1;var n=l.uF.T$();if(!n)return!1;n=n.getDuration();return W7q(l,n)}; W7q=function(l,n){if(!l.Xi||!l.Xi.S||!l.Xi.W)return!1;var O=l.getCurrentTime(),L=l.Xi.S.G$();l=l.Xi.W.G$();L=L?JY(L,O):O;O=l?JY(l,O):O;O=Math.min(L,O);return isNaN(O)?!1:O>=n-.01}; rZa=function(l,n,O){l.policy.im&&O9(l.uF.getVideoData())?(l.uF.ML()||bNq(l,"sepInit",n,O.info),QYf(l.uF,"sie")):bNq(l,"sepInit",n,O.info)}; vY=function(l){return l.uF.AE()<l.Wk}; g.xb=function(l){this.jz=l}; hO=function(){g.hj.apply(this,arguments)}; Zl=function(l,n,O,L){hO.call(this);var X=this;this.N=-1;this.S={};this.L=new g.vs(this.B,0,this);g.c(this,this.L);this.W=new g.vs(function(){X.JG()||(X.L.start(Math.random()*O),X.W.start(n))},l,this); g.c(this,this.W);L.subscribe("fairplay_next_need_key_info",this.V,this)}; e29=function(l){if(!(l.length<=28))for(var n=(0,g.uY)([60,0,75,0,73,0,68,0,62,0]),O=28;O<l.length;){a:if(l.length-O<n.length)var L=!1;else{for(L=0;L<n.length;++L)if(l[O+L]!==n[L]){L=!1;break a}L=!0}if(L){O+=n.length;if(l.length<=O+48)break;n=new Uint8Array(24);for(L=0;L<24;++L)n[L]=l[O+L*2];l=ks(n);l=Wd(l);if(!l)break;O=l[0];l[0]=l[3];l[3]=O;O=l[1];l[1]=l[2];l[2]=O;O=l[4];l[4]=l[5];l[5]=O;O=l[6];l[6]=l[7];l[7]=O;return l}O++}}; JO=function(l,n,O){hO.call(this);var L=this;this.N=l;this.S=[];this.DQ={Q6J:function(){return L.S.length}}; this.L=O.MQ("html5_ignore_widevine_key_rotation_license_requests");this.W=new g.vs(function(){L.publish("log_qoe",{wvagt:"timer",reqlen:L.S?L.S.length:-1});if(L.S){if(L.S.length>0){var X=L.S.shift();Y90(L,X.info)}L.S.length>0&&(X=L.S[0].time-(0,g.Q_)(),L.W.start(Math.max(0,X)))}},0); g.c(this,this.W);n.subscribe("widevine_set_need_key_info",this.B,this)}; Y90=function(l,n){a:{var O=n.cryptoPeriodIndex;if(isNaN(O)&&l.N.size>0)O=!0;else{for(var L=g.P(l.N.values()),X=L.next();!X.done;X=L.next())if(X.value.cryptoPeriodIndex===O){O=!0;break a}O=!1}}l.publish("log_qoe",{wvagt:"reqnews",canskip:O});O||l.publish("rotated_need_key_info_ready",n)}; jY5=function(){var l={};var n=l.url;var O=l.interval;l=l.retries;this.url=n;this.interval=O;this.retries=l}; Gyv=function(l,n){this.statusCode=l;this.message=n;this.W=this.heartbeatParams=this.errorMessage=null;this.S={};this.nextFairplayKeyId=null}; mka=function(l,n,O){O=O===void 0?"":O;g.V.call(this);this.message=l;this.requestNumber=n;this.Yh=O;this.onError=this.onSuccess=null;this.S=new g.DB(5E3,2E4,.2)}; Ifq=function(l,n,O){l.onSuccess=n;l.onError=O}; $kk=function(l,n,O,L){var X={timeout:3E4,onSuccess:function(F){if(!l.JG()){iD("drm_net_r",void 0,l.Yh);var x=F.status==="LICENSE_STATUS_OK"?0:9999,Z=null;if(F.license)try{Z=Wd(F.license)}catch(U){g.Ir(U)}if(x!==0||Z){Z=new Gyv(x,Z);x!==0&&F.reason&&(Z.errorMessage=F.reason);if(F.authorizedFormats){x={};for(var J=[],w={},H=g.P(F.authorizedFormats),A=H.next();!A.done;A=H.next())if(A=A.value,A.trackType&&A.keyId){var b=dkv[A.trackType];if(b){b==="HD"&&F.isHd720&&(b="HD720");A.isHdr&&(b+="HDR");x[b]|| (J.push(b),x[b]=!0);var r=null;try{r=Wd(A.keyId)}catch(U){g.Ir(U)}r&&(w[g.Pd(r,4)]=b)}}Z.W=J;Z.S=w}F.nextFairplayKeyId&&(Z.nextFairplayKeyId=F.nextFairplayKeyId);F.sabrLicenseConstraint&&(Z.sabrLicenseConstraint=Wd(F.sabrLicenseConstraint));F=Z}else F=null;if(F)l.onSuccess(F,l.requestNumber);else l.onError(l,"drm.net","t.p;p.i")}}, onError:function(F){if(!l.JG())if(F&&F.error)F=F.error,l.onError(l,"drm.net.badstatus","t.r;p.i;c."+F.code+";s."+F.status,F.code);else l.onError(l,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){l.onError(l,"drm.net","rt.req."+l.requestNumber)}}; L&&(X.jB="Bearer "+L);g.OG(O,"player/get_drm_license",n,X)}; V47=function(l,n,O,L){g.hj.call(this);this.videoData=l;this.xo=n;this.G=O;this.sessionId=L;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Wm=this.NQ=!1;this.N=null;this.Q5=[];this.L=[];this.T=!1;this.S={};this.status="";this.V=NaN;this.W=l.B;this.cryptoPeriodIndex=O.cryptoPeriodIndex;l={};Object.assign(l,this.xo.S);l.cpn=this.videoData.clientPlaybackNonce;this.videoData.NQ&&(l.vvt=this.videoData.NQ,this.videoData.mdxEnvironment&&(l.mdx_environment=this.videoData.mdxEnvironment)); this.xo.Q5&&(l.authuser=this.xo.Q5);this.xo.pageId&&(l.pageid=this.xo.pageId);isNaN(this.cryptoPeriodIndex)||(l.cpi=this.cryptoPeriodIndex.toString());var X=(X=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.e6()))?X[1]:"";X==="ATV"&&(l.cdt=X);this.B=l;this.B.session_id=L;this.Y=!0;this.W.flavor==="widevine"&&(this.B.hdr="1");this.W.flavor==="playready"&&(n=Number(ta(n.experiments,"playready_first_play_expiration")),!isNaN(n)&&n>=0&&(this.B.mfpe=""+n),this.Y=!1);n="";g.VY(this.W)?$Y(this.W)?(L=O.W)&&(n="https://www.youtube.com/api/drm/fps?ek="+ $77(L)):(n=O.initData.subarray(4),n=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2),n=String.fromCharCode.apply(null,n).replace("skd://","https://")):n=this.W.W;this.baseUrl=n;this.fairplayKeyId=fr(this.baseUrl,"ek")||"";if(n=fr(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(n);this.Q5=O.QE?[g.Pd(O.initData,4)]:O.N;wA(this,{sessioninit:O.cryptoPeriodIndex});this.status="in"}; z2f=function(l,n){wA(l,{createkeysession:1});l.status="gr";iD("drm_gk_s",void 0,l.videoData.Fi);l.url=Bi9(l);try{l.N=n.createSession(l.G,function(O){wA(l,{m:O})})}catch(O){n="t.g"; O instanceof DOMException&&(n+=";c."+O.code);l.publish("licenseerror","drm.unavailable",1,n,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}l.N&&(cZ0(l.N,function(O,L){iN9(l,O,L)},function(O,L,X){if(!l.JG()){L=void 0; var F=1;g.VY(l.W)&&g.mX(l.xo)&&l.xo.J("html5_enable_safari_fairplay")&&X===1212433232&&(L="ERROR_HDCP",F=l.xo.J("html5_safari_fairplay_ignore_hdcp")?0:F);l.error("drm.keyerror",F,O,L)}},function(){l.JG()||(wA(l,{onkyadd:1}),l.Wm||(l.publish("sessionready"),l.Wm=!0))},function(O){l.U7(O)}),g.c(l,l.N))}; Bi9=function(l){var n=l.baseUrl;lT5(n)||l.error("drm.net",2,"t.x");if(!fr(n,"fexp")){var O=["23898307","23914062","23916106","23883098"].filter(function(X){return l.xo.experiments.experiments[X]}); O.length>0&&(l.B.fexp=O.join())}O=g.P(Object.keys(l.B));for(var L=O.next();!L.done;L=O.next())L=L.value,n=kBa(n,L,l.B[L]);return n}; iN9=function(l,n,O){if(!l.JG())if(n){wA(l,{onkmtyp:O});l.status="km";switch(O){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":S9k(l,n);return;default:l.publish("ctmp","message_type",{t:O,l:n.byteLength})}l.NQ||(iD("drm_gk_f",void 0,l.videoData.Fi),l.NQ=!0,l.publish("newsession",l));if(m9(l.W)&&(n=pf8(n),!n))return;n=new mka(n,++l.requestNumber,l.videoData.Fi);Ifq(n,function(L){sYq(l,L)},function(L,X,F){if(!l.JG()){var x=0; L.S.W>=3&&(x=1,X="drm.net.retryexhausted");wA(l,{onlcsrqerr:X,info:F});l.error(X,x,F);l.shouldRetry(QC(x),L)&&ffq(l,L)}}); g.c(l,n);KNv(l,n)}else l.error("drm.unavailable",1,"km.empty")}; S9k=function(l,n){wA(l,{sdpvrq:1});l.V=Date.now();if(l.W.flavor!=="widevine")l.error("drm.provision",1,"e.flavor;f."+l.W.flavor+";l."+n.byteLength);else{var O={cpn:l.videoData.clientPlaybackNonce};Object.assign(O,l.xo.S);O=g.pr("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",O);n={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, n)}),responseType:"arraybuffer"};g.Yp(O,n,3,500).then(T$(function(L){L=L.xhr;if(!l.JG()){L=new Uint8Array(L.response);var X=String.fromCharCode.apply(null,L);try{var F=JSON.parse(X)}catch(x){}F&&F.signedResponse?(l.publish("ctmp","drminfo",{provisioning:1}),F=(Date.now()-l.V)/1E3,l.V=NaN,l.publish("ctmp","provs",{et:F.toFixed(3)}),l.N&&l.N.update(L)):(F=F&&F.error&&F.error.message,L="e.parse",F&&(L+=";m."+F),l.error("drm.provision",1,L))}}),T$(function(L){l.JG()||l.error("drm.provision",1,"e."+L.errorCode+ ";c."+(L.xhr&&L.xhr.status))}))}}; HF=function(l){var n;if(n=l.Y&&l.N!=null)l=l.N,n=!(!l.S||!l.S.keyStatuses);return n}; KNv=function(l,n){l.status="km";iD("drm_net_s",void 0,l.videoData.Fi);var O=new g.nP(l.xo.YW),L={context:g.H2(O.config_||g.wx())};L.drmSystem=afv[l.W.flavor];L.videoId=l.videoData.videoId;L.cpn=l.videoData.clientPlaybackNonce;L.sessionId=l.sessionId;L.licenseRequest=g.Pd(n.message);L.drmParams=l.videoData.drmParams;isNaN(l.cryptoPeriodIndex)||(L.isKeyRotated=!0,L.cryptoPeriodIndex=l.cryptoPeriodIndex);var X,F,x=!!((X=l.videoData.W)==null?0:(F=X.video)==null?0:F.isHdr());L.drmVideoFeature=x?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(L.context&&L.context.client){if(X=l.xo.S)L.context.client.deviceMake=X.cbrand,L.context.client.deviceModel=X.cmodel,L.context.client.browserName=X.cbr,L.context.client.browserVersion=X.cbrver,L.context.client.osName=X.cos,L.context.client.osVersion=X.cosver;L.context.user=L.context.user||{};L.context.request=L.context.request||{};l.videoData.NQ&&(L.context.user.credentialTransferTokens=[{token:l.videoData.NQ,scope:"VIDEO"}]);L.context.request.mdxEnvironment=l.videoData.mdxEnvironment|| L.context.request.mdxEnvironment;l.videoData.oO&&(L.context.user.kidsParent={oauthToken:l.videoData.oO});g.VY(l.W)&&(L.fairplayKeyId=g.Pd(Vqf(l.fairplayKeyId)));g.g7(l.xo,g.pN(l.videoData)).then(function(Z){$kk(n,L,O,Z);l.status="rs"})}else l.error("drm.net",2,"t.r;ic.0")}; sYq=function(l,n){if(!l.JG())if(wA(l,{onlcsrsp:1}),l.status="rr",n.statusCode!==0)l.error("drm.auth",1,"t.f;c."+n.statusCode,n.errorMessage||void 0);else{iD("drm_kr_s",void 0,l.videoData.Fi);if(n.heartbeatParams&&n.heartbeatParams.url&&l.videoData.J("outertube_streaming_data_always_use_staging_license_service")){var O=l.W.W.match(/(.*)youtube.com/g);O&&(n.heartbeatParams.url=O[0]+n.heartbeatParams.url)}n.heartbeatParams&&l.publish("newlicense",n.heartbeatParams);n.W&&(l.L=n.W,l.videoData.yd||l.publish("newlicense", new jY5),l.videoData.yd=!0,l.T=jz(l.L,function(L){return L.includes("HDR")})); n.S&&(l.xo.J("html5_enable_vp9_fairplay")&&$Y(l.W)?(O=g.Pd(Vqf(l.fairplayKeyId),4),l.S[O]={type:n.S[O],status:"unknown"}):l.S=WM(n.S,function(L){return{type:L,status:"unknown"}})); dC(l.W)&&(n.message=YGi(g.Pd(n.message)));l.N&&(wA(l,{updtks:1}),l.status="ku",l.N.update(n.message).then(function(){iD("drm_kr_f",void 0,l.videoData.Fi);HF(l)||(wA(l,{ksApiUnsup:1}),l.publish("keystatuseschange",l))},function(L){L="msuf.req."+l.requestNumber+";msg."+g.TR(L.message,3); l.error("drm.keyerror",1,L)})); g.VY(l.W)&&l.publish("fairplay_next_need_key_info",l.baseUrl,n.nextFairplayKeyId);l.xo.J("html5_enable_vp9_fairplay")&&$Y(l.W)&&l.publish("qualitychange",R2i(l.L));n.sabrLicenseConstraint&&l.publish("sabrlicenseconstraint",n.sabrLicenseConstraint)}}; ffq=function(l,n){var O=n.S.getValue();O=new g.vs(function(){KNv(l,n)},O); g.c(l,O);O.start();g.qF(n.S);wA(l,{rtyrq:1})}; CTi=function(l,n){for(var O=[],L=g.P(Object.keys(l.S)),X=L.next();!X.done;X=L.next())X=X.value,O.push(X+"_"+l.S[X].type+"_"+l.S[X].status);return O.join(n)}; t4f=function(l){var n={};n[l.status]=HF(l)?CTi(l,"."):l.L.join(".");return n}; vZf=function(l,n){switch(l){case "highres":case "hd2880":l="UHD2";break;case "hd2160":case "hd1440":l="UHD1";break;case "hd1080":case "hd720":l="HD";break;case "large":case "medium":case "small":case "light":case "tiny":l="SD";break;default:return""}n&&(l+="HDR");return l}; lQa=function(l,n){for(var O in l.S)if(l.S[O].status==="usable"&&l.S[O].type===n)return!0;return!1}; nA9=function(l,n){for(var O in l.S)if(l.S[O].type===n)return l.S[O].status}; wA=function(l,n){var O=O===void 0?!1:O;yC(n);(O||l.xo.AA())&&l.publish("ctmp","drmlog",n)}; OF8=function(l){var n=l[0];l[0]=l[3];l[3]=n;n=l[1];l[1]=l[2];l[2]=n;n=l[4];l[4]=l[5];l[5]=n;n=l[6];l[6]=l[7];l[7]=n}; R2i=function(l){return g.CO(l,"UHD2")||g.CO(l,"UHD2HDR")?"highres":g.CO(l,"UHD1")||g.CO(l,"UHD1HDR")?"hd2160":g.CO(l,"HD")||g.CO(l,"HDHDR")?"hd1080":g.CO(l,"HD720")||g.CO(l,"HD720HDR")?"hd720":"large"}; pf8=function(l){for(var n="",O=0;O<l.length;O+=2)n+=String.fromCharCode(l[O]);l=aW(new DOMParser,dY(n),"text/xml");return l?(l=l.querySelector("Challenge"))&&l.childNodes&&l.childNodes.length!==0?new Uint8Array((0,g.uY)(HO9(l.childNodes[0].nodeValue)).buffer):null:null}; AO=function(l,n,O,L,X,F){F=F===void 0?!1:F;g.V.call(this);this.element=l;this.G=n;this.initData=O;this.S=L;this.W=X;this.Y=F;this.sessionId="";this.T=this.V=this.N=this.B=null;this.L=new g.$B(this);g.c(this,this.L);gA7(this)}; gA7=function(l){l.S?(l.L.U(l.S,"message",l.n$),l.L.U(l.S,"keystatuseschange",l.U7),l.S.closed&&l.S.closed.then(T$(function(){l.onClosed()}),null)):l.W&&(Qd(l.L,l.W,["mskeymessage", "webkitkeymessage"],l.HY),Qd(l.L,l.W,["mskeyerror","webkitkeyerror"],l.BY),Qd(l.L,l.W,["mskeyadded","webkitkeyadded"],l.Vs))}; cZ0=function(l,n,O,L,X){l.B=n;l.N=O;l.V=L;l.T=X}; LMi=function(l,n,O){g.Ir(O);l.N&&(O instanceof DOMException&&(n+=";n."+O.name+";m."+O.message),l.N(n))}; bb=function(l,n,O,L){L=L===void 0?!1:L;g.V.call(this);this.element=l;this.S=n;this.Sp=O;this.T=L;this.V={};this.L=null;this.B=new g.$B(this);this.N=this.W=null;g.c(this,this.B)}; oAv=function(l,n){n=XD7(n,l.S.nf);n=l.N.createSession("video/mp4",n);return new AO(null,null,null,null,n,l.T)}; FMi=function(l,n){for(var O=new Uint8Array(270),L=0;L<135;L++)O[L*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(L);l=l.N.createSession("video/mp4",n,O);return new AO(null,null,null,null,l)}; xck=function(l,n){var O=l.V[n.sessionId];!O&&l.L&&(O=l.L,l.L=null,O.sessionId=n.sessionId,l.V[n.sessionId]=O);return O}; XD7=function(l,n){var O=l.subarray(4);O=new Uint16Array(O.buffer,O.byteOffset,O.byteLength/2);O=String.fromCharCode.apply(null,O).match(/ek=([0-9a-f]+)/)[1];for(var L="",X=0;X<O.length;X+=2)L+=String.fromCharCode(parseInt(O.substring(X,X+2),16));O=L;L=new ArrayBuffer(O.length*2);X=new Uint16Array(L);for(var F=0;F<O.length;F++)X[F]=O.charCodeAt(F);O=new Uint8Array(L);L=0;F=new ArrayBuffer(l.byteLength+4+O.byteLength+4+n.byteLength);X=new Uint8Array(F);F=new DataView(F);X.set(l);L+=l.byteLength;F.setUint32(L, O.length,!0);L+=4;X.set(O,L);L+=O.length;F.setUint32(L,n.byteLength,!0);X.set(n,L+4);return X}; rA=function(){this.keys=[];this.values=[]}; JAi=function(l,n,O){g.hj.call(this);this.element=l;this.videoData=n;this.xo=O;this.N=[];this.Hm=2;this.wq=this.Cf=!1;this.heartbeatParams=null;this.Lf=this.Y=!1;this.B=null;this.z3=!1;this.S=this.videoData.B;this.drmSessionId=this.videoData.drmSessionId||g.QTa();this.W=new Map;this.V=new rA;this.T=new rA;this.NQ=new g.$B(this);this.Q5=this.xo.J("html5_eme_ignore_teardown_errors");(l=this.element)&&(l.addKey||l.webkitAddKey)||jm()||cz(O.experiments);this.xo.J("html5_enable_vp9_fairplay")&&$Y(this.S)? O=hH0:(O=this.videoData.hZ,O=this.S.flavor==="fairplay"||O?iQ:hH0);this.G=O;this.L=new bb(this.element,this.S,this.gV.bind(this),this.Q5);g.c(this,this.L);GI(this.S)&&(this.Wm=new bb(this.element,this.S,this.gV.bind(this),this.Q5),g.c(this,this.Wm));g.c(this,this.NQ);O=this.element;this.S.keySystemAccess?this.NQ.U(O,"encrypted",this.m55):Qd(this.NQ,O,GI(this.S)?["msneedkey"]:["needkey","webkitneedkey"],this.IQ2);ZFv(this);a:switch(O=this.S,l=this.xo.experiments,n=this.W,O.flavor){case "fairplay":if(n= /\sCobalt\/(\S+)\s/.exec(g.e6())){l=[];n=g.P(n[1].split("."));for(var L=n.next();!L.done;L=n.next())L=parseInt(L.value,10),L>=0&&l.push(L);l=parseFloat(l.join("."))}else l=NaN;l>19.2999?(l=O.OE,O=O.Kg,O>=l&&(O=l*.75),n=(l-O)*.5,O=new Zl(n,l,l-n-O,this)):O=null;break a;case "widevine":O=new JO(n,this,l);break a;default:O=null}if(this.B=O)g.c(this,this.B),this.B.subscribe("rotated_need_key_info_ready",this.aM,this),this.B.subscribe("log_qoe",this.HQ,this);cz(this.xo.experiments);this.HQ({cks:this.S.getInfo()})}; ZFv=function(l){var n=l.L.MV();n?n.then(T$(function(){UG8(l)}),T$(function(O){if(!l.JG()){g.Ir(O); var L="t.a";O instanceof DOMException&&(L+=";n."+O.name+";m."+O.message);l.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(l.HQ({mdkrdy:1}),l.Y=!0); l.Wm&&(n=l.Wm.MV())}; PCi=function(l,n,O){l.wq=!0;O=new xS(n,O);l.xo.J("html5_eme_loader_sync")&&(l.V.get(n)||l.V.set(n,O));u39(l,O)}; u39=function(l,n){if(!l.JG()){l.HQ({onInitData:1});if(l.xo.J("html5_eme_loader_sync")&&l.videoData.N&&l.videoData.N.S){var O=l.T.get(n.initData);n=l.V.get(n.initData);if(!O||!n)return;n=O;O=n.initData;l.V.remove(O);l.T.remove(O)}l.HQ({initd:n.initData.length,ct:n.contentType});if(l.S.flavor==="widevine")if(l.Cf&&!l.videoData.isLivePlayback)UV(l);else{if(!(l.xo.J("vp9_drm_live")&&l.videoData.isLivePlayback&&n.QE)){l.Cf=!0;O=n.cryptoPeriodIndex;var L=n.S;Kpg(n);n.QE||(L&&n.S!==L?l.publish("ctmp","cpsmm", {emsg:L,pssh:n.S}):O&&n.cryptoPeriodIndex!==O&&l.publish("ctmp","cpimm",{emsg:O,pssh:n.cryptoPeriodIndex}));l.publish("widevine_set_need_key_info",n)}}else l.aM(n)}}; UG8=function(l){if(!l.JG())if(l.xo.J("html5_drm_set_server_cert")||$Y(l.S)){var n=l.L.setServerCertificate();n?n.then(T$(function(O){l.xo.AA()&&l.publish("ctmp","ssc",{success:O})}),T$(function(O){l.publish("ctmp","ssce",{n:O.name, m:O.message})})).then(T$(function(){T_8(l)})):T_8(l)}else T_8(l)}; T_8=function(l){l.JG()||(l.Y=!0,l.HQ({onmdkrdy:1}),UV(l))}; Wzk=function(l){return l.S.flavor==="widevine"&&l.videoData.J("html5_drm_cpi_license_key")}; UV=function(l){if((l.wq||l.xo.J("html5_widevine_use_fake_pssh"))&&l.Y&&!l.Lf){for(;l.N.length;){var n=l.N[0],O=Wzk(l)?aye(n):g.Pd(n.initData);if($Y(l.S)&&!n.W)l.N.shift();else{if(l.W.get(O))if(l.S.flavor!=="fairplay"||$Y(l.S)){l.N.shift();continue}else l.W.delete(O);Kpg(n);break}}l.N.length&&l.createSession(l.N[0])}}; ES5=function(l){var n;if(n=g.s0()){var O;n=!((O=l.L.W)==null||!O.getMetrics)}n&&(n=l.L.getMetrics())&&(n=g.MT(n),l.publish("ctmp","drm",{metrics:n}))}; N_a=function(){var l=$Cg();return!(!l||l==="visible")}; qja=function(l){var n=DG0();n&&document.addEventListener(n,l,!1)}; kre=function(l){var n=DG0();n&&document.removeEventListener(n,l,!1)}; DG0=function(){if(document.visibilityState)var l="visibilitychange";else{if(!document[bG+"VisibilityState"])return"";l=bG+"visibilitychange"}return l}; y4i=function(l){g.V.call(this);var n=this;this.uF=l;this.nj=0;this.V=this.W=this.B=!1;this.L=0;this.rq=this.uF.j();this.videoData=this.uF.getVideoData();this.N=g.HQ(this.rq.experiments,"html5_delayed_retry_count");this.S=new g.vs(function(){n.uF.vG()},g.HQ(this.rq.experiments,"html5_delayed_retry_delay_ms")); g.c(this,this.S)}; j2e=function(l,n,O){var L=l.videoData.W,X=l.videoData.L;O9(l.uF.getVideoData())&&l.rq.J("html5_gapless_fallback_on_qoe_restart")&&QYf(l.uF,"pe");if((n==="progressive.net.retryexhausted"||n==="fmt.unplayable"||n==="fmt.decode")&&!l.uF.GM.B&&L&&L.itag==="22")return l.uF.GM.B=!0,l.l5("qoe.restart",{reason:"fmt.unplayable.22"}),l.uF.u0(),!0;var F=!1;if(l.videoData.isExternallyHostedPodcast){if(F=l.videoData.Vv)O.mimeType=F.type,l.Sp("3pp",{url:F.url});O.ns="3pp";l.uF.M_(n,1,"VIDEO_UNAVAILABLE",yC((new Ml(n, O,1)).details));return!0}var x=l.nj+3E4<(0,g.Q_)()||l.S.isActive();if(l.rq.J("html5_empty_src")&&l.videoData.isAd()&&n==="fmt.unplayable"&&/Empty src/.test(""+O.msg))return O.origin="emptysrc",l.l5("auth",O),!0;x||ub(l.uF.F$())||(O.nonfg="paused",x=!0,l.uF.pauseVideo());(n==="fmt.decode"||n==="fmt.unplayable")&&(X==null?0:CB(X)||t6(X))&&(GOk(l.rq.B,X.bF),O.acfallexp=X.bF,F=x=!0);!x&&l.N>0&&(l.S.start(),x=!0,O.delayed="1",--l.N);X=l.uF.sf;!x&&((L==null?0:Rb(L))||(L==null?0:fB(L)))&&(GOk(l.rq.B,L.bF), F=x=!0,O.cfallexp=L.bF);if(l.rq.J("html5_ssap_ignore_decode_error_for_next_video")&&g.fy(l.videoData)&&n==="fmt.unplayable"&&O.cid&&O.ccid&&ub(l.uF.F$())){if(O.cid!==O.ccid)return O.ignerr="1",l.l5("ssap.transitionfailure",O),!0;l.l5("ssap.transitionfailure",O);if(MSf(l.uF,n))return!0}if(!x)return Q2g(l,O);if(l.rq.J("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.fy(l.videoData)&&n==="fmt.unplayable"&&O.cid&&O.ccid&&O.cid!==O.ccid&&ub(l.uF.F$())&&(l.l5("ssap.transitionfailure",O),MSf(l.uF, n)))return!0;x=!1;l.B?l.nj=(0,g.Q_)():x=l.B=!0;var Z=l.videoData;if(Z.Yo){Z=Z.Yo.Qe();var J=Date.now()/1E3+1800;Z=Z<J}else Z=!1;O.e=n;O.bkg=N_a();Z&&(O.staleprog="1");l.l5("qoe.restart",O);if(Z&&e08(l))return Yje(l),!0;if(!(!g.S_("philips")||n==="fmt.unplayable"&&X&&X.Q5||l.rq.S.cplatform==="GAME_CONSOLE"))try{window.close()}catch(w){}L&&Rb(L)&&!l.rq.J("html5_allow_av1_retry_in_session")?(F=l.rq.B,F.G=!0,gn(F),F=!0):X?x||(n=(n=WY(X.videoTrack)||X.videoTrack.W)?n.S:X.videoTrack.S,n.V+=1,X.policy.S? zQ(X.W.S,n,!0):RQ(X.S,n,!0)):l.videoData.Yo&&l.videoData.Yo.Kl();l.S.isActive()||l.uF.vG(F);return!0}; Q2g=function(l,n){if(l.videoData.Q5)return!1;l.rq.n5+=1;if(l.rq.n5<=10)return!1;n.exiled=""+l.rq.n5;l.l5("qoe.start15s",n);l.uF.publish("playbackstalledatstart");return!0}; e08=function(l){return l.W?!0:l.rq.Wm==="yt"?l.videoData.Q5?l.videoData.hC<25:!l.videoData.hC:!1}; Yje=function(l){if(!l.W){l.W=!0;var n=l.uF.getPlayerState();n=n.isPaused()||n.isSuspended();l.uF.Ya();n&&!KN(l.videoData)||l.uF.publish("signatureexpired")}}; Gr5=function(l,n){if((l=l.uF.T$())&&(n.errorCode==="fmt.unplayable"||n.errorCode==="html5.invalidstate")){var O=l.K2();n.details.merr=O?O.toString():"0";n.details.mmsg=l.gB()}}; mGe=function(l){return l.errorCode==="net.badstatus"&&(l.severity===1||!!l.details.fmt_unav)}; IR5=function(l,n){return l.rq.J("html5_use_network_error_code_enums")&&n.details.rc===403||n.details.rc==="403"?(l=n.errorCode,l==="net.badstatus"||l==="manifest.net.retryexhausted"):!1}; $G5=function(l,n){if(!IR5(l,n)&&!l.W)return!1;n.details.sts="20143";if(e08(l))return QC(n.severity)&&(n=Object.assign({e:n.errorCode},n.details),n=new Ml("qoe.restart",n)),l.l5(n.errorCode,n.details),Yje(l),!0;(0,g.Q_)()-l.rq.j7>6048E5&&dGv(l,"signature");return!1}; dGv=function(l,n){try{window.location.reload(),l.l5("qoe.restart",{detail:"pr."+n})}catch(O){}}; VSa=function(l,n){n=n===void 0?"fmt.noneavailable":n;var O=l.rq.B;O.T=!1;gn(O);l.l5("qoe.restart",{e:n,detail:"hdr"});l.uF.vG(!0)}; B_8=function(l,n,O,L,X,F){this.videoData=l;this.S=n;this.reason=O;this.W=L;this.token=X;this.videoId=F}; c4q=function(l,n,O){this.xo=l;this.OA=n;this.uF=O;this.G=this.V=this.S=this.L=this.T=this.W=0;this.B=!1;this.Y=g.HQ(this.xo.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; z07=function(l,n,O){!l.xo.J("html5_tv_ignore_capable_constraint")&&g.yw(l.xo)&&(O=O.compose(i4q(l,n)));return O}; Sjq=function(l){if(l.uF.F$().isInline())return iQ;var n;l.J("html5_exponential_memory_for_sticky")?n=Nt(l.xo.q_,"sticky-lifetime")<.5?"auto":oe[$W()]:n=oe[$W()];return g.gI("auto",n,!1,"s")}; s2i=function(l,n){var O,L=pYe(l,(O=n.S)==null?void 0:O.videoInfos);O=l.uF.getPlaybackRate();return O>1&&L?(l=y1a(l.xo.B,n.S.videoInfos,O),new OH(0,l,!0,"o")):new OH(0,0,!1,"o")}; pYe=function(l,n){return n&&g.yw(l.xo)?n.some(function(O){return O.video.fps>32}):!1}; fRi=function(l,n){var O=l.uF.zT();l.J("html5_use_video_quality_cap_for_ustreamer_constraint")&&O&&O.oQ>0&&XF(n.videoData.v0)&&(l=O.oQ,n.videoData.v0=new OH(0,l,!1,"u"));return n.videoData.v0}; i4q=function(l,n){if(g.yw(l.xo)&&PW(l.xo.B,TP.HEIGHT))var O=n.S.videoInfos[0].video.S;else{var L=!!n.S.S;var X;g.jV(l.xo)&&(X=window.screen&&window.screen.width?new g.re(window.screen.width,window.screen.height):null);X||(X=l.xo.DJ?l.xo.DJ.clone():l.OA.Dm());(Ch||tT||L)&&X.scale(g.Kw());L=X;gi(n.videoData)||KN(n.videoData);n=n.S.videoInfos;if(n.length){X=g.HQ(l.xo.experiments,"html5_override_oversend_fraction")||.85;var F=n[0].video;F.projectionType!=="MESH"&&F.projectionType!=="EQUIRECTANGULAR"&& F.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||eV||(X=.45);l=g.HQ(l.xo.experiments,"html5_viewport_undersend_maximum");for(F=0;F<n.length;F++){O=n[F];var x=O.video;if(L===null||x.width*X<L.width&&x.height*X<L.height){l&&F&&x.width<L.width*l&&x.height<L.height*l&&(O=n[F-1]);break}}L=O.video;O=new OH(0,O.itag==="93"?g.c7[B7(L.width,L.height)]:L.S,!1,"r")}else O=iQ;O=O.S}O&&(O=Math.max(O,360));return new OH(0,O,!1,"r")}; Kz8=function(l,n){var O;a:if((O=n.S)&&O.videoInfos.length){for(var L=g.P(O.videoInfos),X=L.next();!X.done;X=L.next()){X=X.value;var F=void 0;if((F=X.W)==null?0:F.smooth){O=X.video.S;break a}}O=O.videoInfos[0].video.S}else O=0;Ph5()&&!g.yw(l.xo)&&fB(n.S.videoInfos[0])&&(O=Math.min(O,g.c7.large));L=g.HQ(l.xo.experiments,"html5_chipset_soft_cap");L>0&&(O=Math.min(O,L));if(L=g.HQ(l.xo.experiments,"html5_max_vertical_resolution")){l=4320;for(X=0;X<n.S.videoInfos.length;X++)F=n.S.videoInfos[X],F.video.height> L&&(l=Math.min(l,F.video.S));if(l<4320){for(X=L=0;X<n.S.videoInfos.length;X++)F=n.S.videoInfos[X].video.S,F<l&&(L=Math.max(L,F));L&&(O=Math.min(L,O))}}return new OH(0,O,!1,"o")}; R07=function(l,n){var O=4320;!l.xo.W||g.GH(l.xo)||l.xo.J("hls_for_vod")||l.xo.J("mweb_remove_360p_cap")||(O=g.c7.medium);var L=g.HQ(l.xo.experiments,"html5_default_quality_cap");L&&n.S.S&&(l.xo.J("html5_always_apply_default_quality_cap")||!n.videoData.ra&&!n.videoData.UK)&&(O=Math.min(O,L));L=g.HQ(l.xo.experiments,"html5_random_playback_cap");var X=/[a-h]$/;L&&X.test(n.videoData.clientPlaybackNonce)&&(O=Math.min(O,L));if(X=L=g.HQ(l.xo.experiments,"html5_hfr_quality_cap"))a:{X=n.S;if(X.S){X=g.P(X.videoInfos); for(var F=X.next();!F.done;F=X.next())if(F.value.video.fps>32){X=!0;break a}}X=!1}X&&(O=Math.min(O,L));(L=g.HQ(l.xo.experiments,"html5_live_quality_cap"))&&n.videoData.isLivePlayback&&(O=Math.min(O,L));O=aR0(l,n,O);l=g.HQ(l.xo.experiments,"html5_byterate_soft_cap");return new OH(0,O===4320?0:O,!1,"d",l)}; CCf=function(l){var n,O,L,X;return g.Y(function(F){switch(F.S){case 1:return l.S.S&&typeof((n=navigator.mediaCapabilities)==null?void 0:n.decodingInfo)==="function"?g.Q(F,Promise.resolve(),2):F.return(Promise.resolve());case 2:O=g.P(l.S.videoInfos),L=O.next();case 3:if(L.done){F.D2(0);break}X=L.value;return g.Q(F,AVk(X),4);case 4:L=O.next(),F.D2(3)}})}; vSv=function(l,n){if(!n.videoData.W||l.J("html5_disable_performance_downgrade"))return!1;Date.now()-l.T>6E4&&(l.W=0);l.W++;l.T=Date.now();if(l.W!==4)return!1;tSi(l,n.videoData.W);return!0}; nNi=function(l,n,O,L){if(!n||!O||!n.videoData.W)return!1;var X=g.HQ(l.xo.experiments,"html5_df_downgrade_thresh"),F=l.J("html5_log_media_perf_info");if(!((0,g.Q_)()-l.L<5E3?0:F||X>0))return!1;var x=((0,g.Q_)()-l.L)/1E3;l.L=(0,g.Q_)();O=O.getVideoPlaybackQuality();if(!O)return!1;var Z=O.droppedVideoFrames-l.V,J=O.totalVideoFrames-l.G;l.V=O.droppedVideoFrames;l.G=O.totalVideoFrames;var w=O.displayCompositedVideoFrames===0?0:O.displayCompositedVideoFrames||-1;F&&l.xo.AA()&&l.uF.Sp("ddf",{dr:O.droppedVideoFrames, de:O.totalVideoFrames,comp:w});if(L)return l.S=0,!1;if((J-Z)/x>l.Y||!X||g.yw(l.xo))return!1;l.S=(J>60?Z/J:0)>X?l.S+1:0;if(l.S!==3)return!1;tSi(l,n.videoData.W);l.uF.Sp("dfd",Object.assign({dr:O.droppedVideoFrames,de:O.totalVideoFrames},lX9()));return!0}; tSi=function(l,n){var O=n.bF,L=n.video.fps,X=n.video.S-1,F=l.N;n=""+O+(L>49?"p60":L>32?"p48":"");O=QY(O,L,F);X>0&&(O=Math.min(O,X));if(!PF.has(n)&&cJ().includes(n)){var x=O;O=BJ();+O[n]>0&&(x=Math.min(+O[n],x));O[n]!==x&&(O[n]=x,g.It("yt-player-performance-cap",O,2592E3))}else if(PF.has(n)||F==null){a:{x=x===void 0?!0:x;L=cJ().slice();if(x){if(L.includes(n))break a;L.push(n)}else{if(!L.includes(n))break a;L.splice(L.indexOf(n),1)}g.It("yt-player-performance-cap-active-set",L,2592E3)}Mb.set(n,O)}else PF.add(n), F==null||F.set(n,O);l.uF.gk()}; TW=function(l,n){if(!n.S.S)return l.B?new OH(0,360,!1,"b"):iQ;for(var O=!1,L=!1,X=g.P(n.S.videoInfos),F=X.next();!F.done;F=X.next())Rb(F.value)?O=!0:L=!0;O=O&&L;L=0;X=g.HQ(l.xo.experiments,"html5_performance_cap_floor");X=l.xo.W?240:X;n=g.P(n.S.videoInfos);for(F=n.next();!F.done;F=n.next()){var x=F.value;if(!O||!Rb(x))if(F=QY(x.bF,x.video.fps,l.N),x=x.video.S,Math.max(F,X)>=x){L=x;break}}return new OH(0,L,!1,"b")}; O3f=function(l,n){var O=l.uF.F$();return O.isInline()&&!n.E6?new OH(0,480,!1,"v"):O.isBackground()&&MU()/1E3>60&&!g.yw(l.xo)?new OH(0,360,!1,"v"):iQ}; gN9=function(l,n,O){if(l.xo.experiments.MQ("html5_disable_client_autonav_cap_for_onesie")&&n.fetchType==="onesie"||g.yw(l.xo)&&($W(-1)>=1080||n.osid))return iQ;var L=g.HQ(l.xo.experiments,"html5_autonav_quality_cap"),X=g.HQ(l.xo.experiments,"html5_autonav_cap_idle_secs");return L&&n.isAutonav&&MU()/1E3>X?(O&&(L=aR0(l,O,L)),new OH(0,L,!1,"e")):iQ}; aR0=function(l,n,O){if(l.J("html5_optimality_defaults_chooses_next_higher")&&O)for(l=n.S.videoInfos,n=1;n<l.length;n++)if(l[n].video.S<O)return l[n-1].video.S;return O}; LH9=function(l,n){l.J("html5_log_media_perf_info")&&(l.uF.Sp("perfdb",lX9()),l.uF.Sp("sessionperfdb",Object.fromEntries(Mb.entries())),l.uF.Sp("playbackperfdb",Object.fromEntries(l.N.entries())),l.uF.Sp("hwc",{nch:navigator.hardwareConcurrency},!0),n&&l.uF.Sp("mcdb",{itags:n.S.videoInfos.filter(function(O){var L;return((L=O.W)==null?void 0:L.smooth)===!1}).map(function(O){return O.itag}).join("-")}))}; lX9=function(){return WM(BJ(),function(l){return""+l})}; WF=function(l){g.V.call(this);var n=this;this.provider=l;this.S=-1;this.B=!1;this.W=-1;this.playerState=new g.XI;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.L=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.vs(this.send,6E4,this);this.N=!1;this.jsErrorCount=0;this.DQ={u1:function(){n.u1()}}; this.u1=function(){n.jsErrorCount++}; g.c(this,this.delay);window.addEventListener("error",this.u1);window.addEventListener("unhandledrejection",this.u1)}; Xh0=function(l){l.S>=0||(l.provider.uF.getVisibilityState()===3?l.B=!0:(l.S=g.EV(l.provider),l.delay.start()))}; oN7=function(l){if(!(l.W<0)){var n=g.EV(l.provider),O=n-l.L;l.L=n;l.playerState.state===8?l.playTimeSecs+=O:l.playerState.isBuffering()&&!g.K(l.playerState,16)&&(l.rebufferTimeSecs+=O)}}; FHi=function(l){var n;switch((n=l.xo.playerCanaryStage)==null?void 0:n.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"}}; xEi=function(l){return window.PressureObserver&&new window.PressureObserver(l)}; hD5=function(l){l=l===void 0?xEi:l;g.V.call(this);var n=this;try{this.N=l(function(L){n.W=L.at(-1)}); var O;this.L=(O=this.N)==null?void 0:O.observe("cpu",{sampleInterval:2E3}).catch(function(L){L instanceof DOMException&&(n.S=L)})}catch(L){L instanceof DOMException&&(this.S=L)}}; Z3g=function(l){var n={},O=window.h5vcc;n.hwConcurrency=navigator.hardwareConcurrency;l.S&&(n.cpe=l.S.message);l.W&&(n.cpt=l.W.time,n.cps=l.W.state);if(O==null?0:O.cVal)n.cb2s=O.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),n.cb5s=O.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),n.cb30s=O.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return n}; Jy7=function(l){var n;g.Y(function(O){switch(O.S){case 1:return g.We(O,2),g.Q(O,l.L,4);case 4:g.N7(O,3);break;case 2:g.D5(O);case 3:(n=l.N)==null||n.disconnect(),g.Tk(O)}})}; H38=function(l,n){n?whq.test(l):(l=g.oT(l),Object.keys(l).includes("cpn"))}; b3f=function(l,n,O,L,X,F,x){var Z={format:"RAW"},J={};if(hP(l)&&ZE()){if(x){var w;((w=Aye.uaChPolyfill)==null?void 0:w.state.type)!==2?x=null:(x=Aye.uaChPolyfill.state.data.values,x={"Synth-Sec-CH-UA-Arch":x.architecture,"Synth-Sec-CH-UA-Model":x.model,"Synth-Sec-CH-UA-Platform":x.platform,"Synth-Sec-CH-UA-Platform-Version":x.platformVersion,"Synth-Sec-CH-UA-Full-Version":x.uaFullVersion});J=Object.assign(J,x);Z.withCredentials=!0}(x=g.R3("EOM_VISITOR_DATA"))?J["X-Goog-EOM-Visitor-Id"]=x:L?J["X-Goog-Visitor-Id"]= L:g.R3("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.R3("VISITOR_DATA"));O&&(J["X-Goog-PageId"]=O);(L=n.Q5)&&!R5(n)&&(J["X-Goog-AuthUser"]=L);X&&(J.Authorization="Bearer "+X);n.J("enable_datasync_id_header_in_web_vss_pings")&&n.xa&&n.datasyncId&&(J["X-YouTube-DataSync-Id"]=n.datasyncId);x||J["X-Goog-Visitor-Id"]||X||O||L?Z.withCredentials=!0:n.J("html5_send_cpn_with_options")&&whq.test(l)&&(Z.withCredentials=!0)}Object.keys(J).length>0&&(Z.headers=J);F&&(Z.onFinish=F);return Object.keys(Z).length>1? Z:null}; ry8=function(l,n,O,L,X,F,x,Z){ZE()&&O.token&&(l=FX(l,{ctt:O.token,cttype:O.UT,mdx_environment:O.mdxEnvironment}));L.J("net_pings_low_priority")&&(n||(n={}),n.priority="low");F||Z&&L.J("nwl_skip_retry")?(n==null?n={}:H38(l,L.J("html5_assert_cpn_with_regex")),x?v2().sendAndWrite(l,n):v2().sendThenWrite(l,n,Z)):n?(H38(l,L.J("html5_assert_cpn_with_regex")),L.J("net_pings_use_fetch")?xC9(l,n):g.yA(l,n)):g.zu(l,X)}; UEi=function(l){for(var n=[],O=0;O<l;O++){for(var L={},X=Math.floor(Math.random()*9*1E8)+1E8,F="",x=0;x<9;x++)F+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];L.videoDecoderName=F;L.elapsedTimeMs=X;n.push(L)}return n}; uAv=function(l){return window.Profiler&&new window.Profiler(l)}; P59=function(l){/[^a-zA-Z0-9;.!_-]/.test(l)&&(l=l.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return l}; Ns=function(l,n,O){O=O===void 0?uAv:O;g.V.call(this);this.sampleInterval=l;this.maxBufferSize=n;this.B=O;this.encoder=new ht;this.S=[];this.N=0;Tu5(this)}; Tu5=function(l){var n=l.sampleInterval,O=l.maxBufferSize;if(n>0&&O>0&&!l.W&&l.N<1E7)try{l.L=l.B({sampleInterval:n,maxBufferSize:O});var L;(L=l.L)==null||L.addEventListener("samplebufferfull",function(){return g.Y(function(X){if(X.S==1)return g.Q(X,l.stop(),2);Tu5(l);g.Tk(X)})})}catch(X){l.W=P59(X.message)}}; Dl=function(l,n){var O,L;return!!((O=window.h5vcc)==null?0:(L=O.settings)==null?0:L.set(l,n))}; EN9=function(){var l,n,O,L=(l=window.h5vcc)==null?void 0:(n=l.settings)==null?void 0:(O=n.getPersistentSettingAsString)==null?void 0:O.call(n,"cpu_usage_tracker_intervals");if(L!=null){var X;l=(X=JSON.parse(L))!=null?X:[];X=l.filter(function(w){return w.type==="total"}).map(function(w){return w.seconds}); n=g.P(WH0);for(O=n.next();!O.done;O=n.next())O=O.value,X.indexOf(O)===-1&&l.push({type:"total",seconds:O});var F,x;(F=window.h5vcc)==null||(x=F.settings)==null||x.set("cpu_usage_tracker_intervals_enabled",1);var Z,J;(Z=window.h5vcc)==null||(J=Z.settings)==null||J.set("cpu_usage_tracker_intervals",JSON.stringify(l))}}; Nu8=function(){var l=window.H5vccPlatformService,n="";if(l&&l.has("dev.cobalt.coat.clientloginfo")&&(l=l.open("dev.cobalt.coat.clientloginfo",function(){}))){var O=l.send(new ArrayBuffer(0)); O&&(n=String.fromCharCode.apply(String,g.E(new Uint8Array(O))));l.close()}return n}; g.yn=function(l,n){g.V.call(this);var O=this;this.provider=l;this.logger=new g.OW("qoe");this.S={};this.sequenceNumber=1;this.V=NaN;this.N_="N";this.Y=this.JK=this.H8=this.JA=this.B=0;this.Sz=this.Hm=this.T=this.Fi="";this.hC=this.wq=NaN;this.Wk=0;this.Xg=-1;this.q5=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.uv=this.isEmbargoed=this.Cf=this.isOffline=this.isBuffering=!1;this.z$=[];this.NQ=null;this.Yo=this.N=this.Of=this.G=!1;this.W=-1;this.G3=!1;this.M5=new g.vs(this.vo5,750,this);this.Wm= this.adCpn=this.Q5=this.contentCpn="";this.adFormat=void 0;this.j3=0;this.Y4=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.d8=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.oO=!1;this.n5=NaN;this.z3=0;this.Fp=!1;this.Lf=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.K5=!1;this.DQ={Hv:function(X){O.Hv(X)}, wd2:function(){return O.L}, qm:function(){return O.contentCpn}, oRf:function(){return O.Q5}, reportStats:function(){O.reportStats()}, Skf:function(){return O.S.cat}, Ay:function(X){return O.S[X]}, Svm:function(){return O.Lf}}; var L=g.HQ(this.provider.xo.experiments,"html5_qoe_proto_mock_length");L&&!qs.length&&(qs=UEi(L));g.c(this,this.M5);try{navigator.getBattery().then(function(X){O.NQ=X})}catch(X){}g.kb(this,0,"vps",["N"]); l.xo.AA()&&(this.z3=(0,g.Q_)(),this.n5=g.uk(function(){var X=(0,g.Q_)(),F=X-O.z3;F>500&&O.Sp("vmlock",{diff:F.toFixed()});O.z3=X},250)); l.uF.WM()&&n&&(this.Lf=n-Math.round(g.EV(l)*1E3));this.provider.videoData.ra&&(this.remoteControlMode=DE9[this.provider.videoData.ra]||0);this.provider.videoData.OX&&(n=Vvv(this.provider.videoData.OX),n==null?0:n.length)&&(this.remoteConnectedDevices=n);if(l.xo.AA()||l.J("html5_log_cpu_info"))this.nf=new hD5,g.c(this,this.nf);n=g.HQ(l.xo.experiments,"html5_js_self_profiler_sample_interval_ms");l=g.HQ(l.xo.experiments,"html5_js_self_profiler_max_samples");n>0&&l>0&&(this.Pm=new Ns(n,l),g.c(this,this.Pm))}; g.kb=function(l,n,O,L){var X=l.S[O];X||(X=[],l.S[O]=X);X.push(n.toFixed(3)+":"+L.join(":"))}; qD0=function(l,n){var O=l.adCpn||l.provider.videoData.clientPlaybackNonce,L=l.provider.getCurrentTime(O);g.kb(l,n,"cmt",[L.toFixed(3)]);L=l.provider.n1(O);if(l.L&&L*1E3>l.L.bB+100&&l.L){var X=l.L;O=X.isAd;L=L*1E3-X.bB;l.jV=n*1E3-X.BBf-L-X.uTG;X=(0,g.Q_)()-L;n=l.jV;L=l.provider.videoData;var F=L.isAd();if(O||F){F=(O?"ad":"video")+"_to_"+(F?"ad":"video");var x={};L.V&&(x.cttAuthInfo={token:L.V,videoId:L.videoId});x.startTime=X-n;S$(F,x);g.zp({targetVideoId:L.videoId,targetCpn:L.clientPlaybackNonce}, F);iD("pbs",X,F)}else X=l.provider.uF.GE(),X.V!==L.clientPlaybackNonce?(X.B=L.clientPlaybackNonce,X.W=n):L.UX()||g.d2(new g.at("CSI timing logged before gllat",{cpn:L.clientPlaybackNonce}));l.Sp("gllat",{l:l.jV.toFixed(),prev_ad:+O});delete l.L}}; Ms=function(l,n){n=n===void 0?NaN:n;n=n>=0?n:g.EV(l.provider);var O=l.provider.uF.vt(),L=O.ly-(l.wq||0);L>0&&g.kb(l,n,"bwm",[L,(O.bA-(l.hC||0)).toFixed(3)]);isNaN(l.wq)&&O.ly&&l.isOffline&&l.Hv(!1);l.wq=O.ly;l.hC=O.bA;isNaN(O.bandwidthEstimate)||g.kb(l,n,"bwe",[O.bandwidthEstimate.toFixed(0)]);l.provider.xo.AA()&&Object.keys(O.S).length!==0&&l.Sp("bwinfo",O.S);if(l.provider.xo.AA()||l.provider.xo.J("html5_log_meminfo"))L=B7k(),Object.values(L).some(function(F){return F!==void 0})&&l.Sp("meminfo", L); if(l.provider.xo.AA()||l.provider.xo.J("html5_log_cpu_info")){var X;(L=(X=l.nf)==null?void 0:Z3g(X))&&Object.values(L).some(function(F){return F!=null})&&l.Sp("cpuinfo",L)}l.Pm&&l.Sp("jsprof",l.Pm.flush()); l.NQ&&g.kb(l,n,"bat",[l.NQ.level,l.NQ.charging?"1":"0"]);X=l.provider.uF.getVisibilityState();l.Xg!==X&&(g.kb(l,n,"vis",[X]),l.Xg=X);qD0(l,n);(X=ko9(l.provider))&&X!==l.Wk&&(g.kb(l,n,"conn",[X]),l.Wk=X);yy9(l,n,O)}; yy9=function(l,n,O){if(!isNaN(O.ZB)){var L=O.ZB;O.W<L&&(L=O.W);g.kb(l,n,"bh",[L.toFixed(3)])}}; Mp8=function(l,n,O){g.g7(l.provider.xo,g.pN(l.provider.videoData)).then(function(L){var X=!1;if(n.includes("&dt=")||n.includes("&cotn=")){if(l.provider.xo.J("kevlar_woffle")||l.provider.xo.J("qoe_nwl_downloads"))X=!0}else l.provider.xo.J("qoe_with_networkless")&&(X=!0);var F=l.provider.xo.J("qoe_send_and_write"),x=l.provider.xo;L=b3f(n,x,l.provider.xo.pageId,l.provider.xo.sendVisitorIdHeader?l.provider.videoData.visitorData:void 0,L);x.J("html5_simplify_pings")&&(L=L||{});L?(L.method="POST",L.postBody= O,ry8(n,L,{token:l.provider.videoData.V,UT:l.provider.videoData.dH,mdxEnvironment:l.provider.videoData.mdxEnvironment},x,void 0,X,F&&l.Cf)):X?(X=l.provider.xo.J("networkless_ajax"),x={method:"POST",postBody:O},F&&l.Cf?v2().sendAndWrite(n,x):X?g.yA(n,{method:"POST",postBody:O}):v2().sendThenWrite(n,x)):(F=O,F=F===void 0?"":F,hR5(n,F)||g.zu(n,void 0,void 0,void 0,F))})}; QGe=function(l){for(var n=0,O=g.P(Object.keys(l.S)),L=O.next();!L.done;L=O.next())L=L.value,n+=L.length+Number(ei(l.S[L],function(X,F){return X+F.length},0)); n>96E3&&(new g.vs(l.reportStats,0,l)).start()}; eDk=function(l){l.provider.videoData.Y4&&Qn(l,"prefetch");l.provider.videoData.hC&&l.Sp("reload",{r:l.provider.videoData.reloadReason,ct:l.provider.videoData.hC});l.provider.videoData.Of&&Qn(l,"monitor");l.provider.videoData.isLivePlayback&&Qn(l,"live");CG&&Qn(l,"streaming");l.provider.videoData.ra&&l.Sp("ctrl",{mode:l.provider.videoData.ra},!0);if(l.provider.videoData.OX){var n=l.provider.videoData.OX.replace(/,/g,"_");l.Sp("ytp",{type:n},!0)}l.provider.videoData.L0&&(n=l.provider.videoData.L0.replace(/,/g, "."),l.Sp("ytrexp",{ids:n},!0));var O=l.provider.videoData;n=l.provider.xo.J("enable_white_noise")||l.provider.xo.J("enable_webgl_noop");O=g.bT(O)||g.Mk(O)||g.QZ(O)||g.e4(O);(n||O)&&(n=(0,g.eT)())&&(l.S.gpu=[n]);KN(l.provider.videoData)&&g.kb(l,g.EV(l.provider),"dt",["1"]);l.provider.xo.AA()&&(n=(0,g.Q_)()-l.provider.xo.j7,l.Sp("playerage",{secs:Math.pow(1.6,Math.round(Math.log(n/1E3)/Math.log(1.6))).toFixed()}));l.N=!0;l.V=g.uk(function(){l.reportStats()},1E4)}; jGe=function(l,n,O){var L=g.EV(l.provider);YDe(l,L,n,0,O);Ms(l,L);QGe(l)}; YDe=function(l,n,O,L,X){var F=l.provider.xo.S.cbrver;l.provider.xo.S.cbr==="Chrome"&&/^96[.]/.test(F)&&O==="net.badstatus"&&/rc\.500/.test(X)&&Gof(l,3);l.provider.xo.J("html5_use_ump")&&/b248180278/.test(X)&&Gof(l,4);F=l.provider.getCurrentTime(l.adCpn||l.provider.videoData.clientPlaybackNonce);L=L===1?"fatal":"";O=[O,L,F.toFixed(3)];L&&(X+=";a6s."+JM());X&&O.push(mEi(X));g.kb(l,n,"error",O);l.N=!0}; IX5=function(l){l.W>=0||(l.provider.xo.UU||l.provider.uF.getVisibilityState()!==3?l.W=g.EV(l.provider):l.G3=!0)}; dEi=function(l,n,O,L){if(O!==l.N_){n<l.B||(l.N_==="PL"?l.playTimeSecs+=n-l.B:l.N_==="B"&&l.isBuffering&&(l.isBuffering=!1,l.rebufferTimeSecs+=n-l.JA,!l.uv&&l.rebufferTimeSecs>=10&&l.playTimeSecs<=180&&(l.S.qoealert=["1"],l.uv=!0)),O!=="B"||l.N_!=="PL"&&l.N_!=="PB"||(l.isBuffering=!0),l.B=n);l.N_==="PL"&&(O==="B"||O==="S")||l.provider.xo.AA()?Ms(l,n):(l.oO||O!=="PL"||(l.oO=!0,yy9(l,n,l.provider.uF.vt())),qD0(l,n));O==="PL"&&g.lx(l.M5);var X=[O];O==="S"&&L&&X.push("ss."+L);g.kb(l,n,"vps",X);l.N_=O; l.JA=n;l.B=n;l.N=!0}}; Qn=function(l,n){var O=l.S.cat||[];O.push(n);l.S.cat=O}; Yb=function(l,n,O,L,X,F){var x=g.EV(l.provider);O!==1&&O!==3&&O!==5||g.kb(l,x,"vps",[l.N_]);var Z=l.S.xvt||[];Z.push("t."+x.toFixed(3)+";m."+F.toFixed(3)+";g."+n+";tt."+O+";np.0;c."+L+";d."+X);l.S.xvt=Z}; Gof=function(l,n){if(!l.Yo){var O=l.S.fcnz;O||(O=[],l.S.fcnz=O);O.push(String(n));l.Yo=!0}}; mEi=function(l){/[^a-zA-Z0-9;.!_-]/.test(l)&&(l=l.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return l}; $Ev=function(l){this.provider=l;this.T=!1;this.S=0;this.L=-1;this.iW=NaN;this.N=0;this.segments=[];this.V=this.B=0;this.previouslyEnded=!1;this.Y=this.provider.uF.getVolume();this.G=this.provider.uF.isMuted()?1:0;this.W=jT(this.provider)}; GW=function(l){l.W.startTime=l.N;l.W.endTime=l.S;var n=!1;l.segments.length&&g.fO(l.segments).isEmpty()?(l.segments[l.segments.length-1].previouslyEnded&&(l.W.previouslyEnded=!0),l.segments[l.segments.length-1]=l.W,n=!0):l.segments.length&&l.W.isEmpty()||(l.segments.push(l.W),n=!0);n?l.W.endTime===0&&(l.previouslyEnded=!1):l.W.previouslyEnded&&(l.previouslyEnded=!0);l.B+=l.S-l.N;l.W=jT(l.provider);l.W.previouslyEnded=l.previouslyEnded;l.previouslyEnded=!1;l.N=l.S}; Bu5=function(l){Vp8(l);l.V=g.uk(function(){l.update()},100); l.iW=g.EV(l.provider);l.W=jT(l.provider)}; Vp8=function(l){g.Tj(l.V);l.V=NaN}; cye=function(l,n,O){O-=l.iW;return n===l.S&&O>.5}; i3e=function(l,n,O,L){this.xo=n;this.Sz=O;this.segments=[];this.experimentIds=[];this.Pm=this.JA=this.isFinal=this.delayThresholdMet=this.oO=this.Xg=this.autoplay=this.autonav=!1;this.Wk="yt";this.V=[];this.T=this.Y=null;this.sendVisitorIdHeader=this.G3=!1;this.G=this.pageId="";this.B=O==="watchtime";this.N=O==="playback";this.Q5=O==="atr";this.UU=O==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Q5?"/api/stats/"+O:"//"+n.CT+"/api/stats/"+O;L&&(this.JA=L.fs,L.rtn&&(this.T=L.rtn),this.B?(this.playerState= L.state,L.rti>0&&(this.Y=L.rti)):(this.At=L.mos,this.Zx=L.volume,L.at&&(this.adType=L.at)),L.autonav&&(this.autonav=L.autonav),L.inview!=null&&(this.q5=L.inview),L.size&&(this.hC=L.size),L.playerwidth&&(this.playerWidth=L.playerwidth),L.playerheight&&(this.playerHeight=L.playerheight));this.d8=g.jY(n.S);this.G=ta(n.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.G==="all"||this.G==="once")this.Fp=g.jY(n.Sz);this.q_=n.nf;this.experimentIds=NXa(n.experiments);this.Fi=n.Fp;this.Wk=n.Wm;this.region= n.region;this.userAge=n.userAge;this.Of=n.ea;this.z$=MU();this.sendVisitorIdHeader=n.sendVisitorIdHeader;this.Lf=n.J("vss_pings_using_networkless")||n.J("kevlar_woffle");this.j7=n.J("vss_final_ping_send_and_write");this.Cf=n.J("vss_use_send_and_write");this.pageId=n.pageId;this.IA=n.J("vss_playback_use_send_and_write");n.livingRoomAppMode&&(this.livingRoomAppMode=n.livingRoomAppMode);this.oA=n.L&&n.J("embeds_append_synth_ch_headers");g.yG(n)&&(this.Hm=n.Lf);g.JB(g.dn(n))&&this.V.push(1);this.accessToken= g.pN(l);l.Op[this.Sz]?this.L=l.Op[this.Sz]:l.Op.playback&&(this.L=l.Op.playback);this.adFormat=l.adFormat;this.adQueryId=l.adQueryId;this.autoplay=S4(l);this.N&&(this.Xg=(l.J("html5_enable_log_server_autoplay")||l.J("enable_cleanup_masthead_autoplay_hack_fix"))&&l.rk&&Bf(l)==="adunit"?!0:!1);this.autonav=l.isAutonav||this.autonav;this.contentVideoId=iT(l);this.clientPlaybackNonce=l.clientPlaybackNonce;this.oO=l.hh;l.V&&(this.Wm=l.V,this.uv=l.dH);l.mdxEnvironment&&(this.mdxEnvironment=l.mdxEnvironment); this.S=l.Pm;this.K5=l.K5;l.W&&(this.Y4=l.W.itag,l.L&&l.L.itag!==this.Y4&&(this.Yo=l.L.itag));l.S&&JF(l.S)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Bf(l);this.Pm=l.q_?!1:l.UU;this.j3=l.R4;if(n=Wf(l))this.OU=n;this.lf=l.mB;this.partnerId=l.partnerId;this.eventId=l.eventId;this.playlistId=l.tj||l.playlistId;this.JY=l.JY;this.ra=l.ra;this.OX=l.OX;this.R6=l.R6;this.subscribed=l.subscribed;this.videoId=l.videoId;this.videoMetadata=l.videoMetadata;this.visitorData=l.visitorData;this.osid=l.osid; this.Xh=l.Xh;this.referrer=l.referrer;this.aU=l.IC||l.aU;this.nf=l.SH;this.tY=l.tY;this.userGenderAge=l.userGenderAge;this.EE=l.EE;this.embedsRct=l.embedsRct;this.embedsRctn=l.embedsRctn;g.yG(this.xo)&&l.mutedAutoplay&&(l.mutedAutoplayDurationMode===2&&l.limitedPlaybackDurationInSeconds===0&&l.endSeconds===0?this.V.push(7):this.V.push(2));l.isEmbedsShortsMode(new g.re(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.V.push(3);g.OY(l)&&this.V.push(4);this.wq=l.Cw;l.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=l.compositeLiveIngestionOffsetToken)}; zDe=function(l,n){var O=l.sendVisitorIdHeader?l.visitorData:void 0;return g.g7(l.xo,l.accessToken).then(function(L){return b3f(l.uri,l.xo,l.pageId,O,L,n,l.oA)})}; sGg=function(l,n){return function(){l.xo.J("html5_simplify_pings")?(l.S=l.z3,l.M5=n(),l.z$=0,l.send()):zDe(l).then(function(O){var L=SD0(l);L.cmt=L.len;L.lact="0";var X=n().toFixed(3);L.rt=Number(X).toString();L=g.pr(l.uri,L);l.xo.J("vss_through_gel_double")&&phv(L);l.Lf?(O==null&&(O={}),l.Cf?v2().sendAndWrite(L,O):v2().sendThenWrite(L,O)):O?g.yA(L,O):g.zu(L)})}}; SD0=function(l){var n={ns:l.Wk,el:l.eventLabel,cpn:l.clientPlaybackNonce,ver:2,cmt:l.W(l.S),fmt:l.Y4,fs:l.JA?"1":"0",rt:l.W(l.M5),adformat:l.adFormat,content_v:l.contentVideoId,euri:l.q_,lact:l.z$,live:l.OU,cl:(730264792).toString(),mos:l.At,state:l.playerState,volume:l.Zx};l.subscribed&&(n.subscribed="1");Object.assign(n,l.d8);l.G==="all"?Object.assign(n,l.Fp):l.G==="once"&&l.N&&Object.assign(n,l.Fp);l.autoplay&&(n.autoplay="1");l.Xg&&(n.sautoplay="1");l.oO&&(n.dni="1");!l.B&&l.Hm&&(n.epm=fXi[l.Hm]); l.isFinal&&(n["final"]="1");l.Pm&&(n.splay="1");l.K5&&(n.delay=l.K5);l.Fi&&(n.hl=l.Fi);l.region&&(n.cr=l.region);l.userGenderAge&&(n.uga=l.userGenderAge);l.userAge!==void 0&&l.Of&&(n.uga=l.Of+l.userAge);l.z3!==void 0&&(n.len=l.W(l.z3));!l.B&&l.experimentIds.length>0&&(n.fexp=l.experimentIds.toString());l.T!==null&&(n.rtn=l.W(l.T));l.aU&&(n.feature=l.aU);l.ra&&(n.ctrl=l.ra);l.OX&&(n.ytr=l.OX);l.Yo&&(n.afmt=l.Yo);l.offlineDownloadUserChoice&&(n.ODUC=l.offlineDownloadUserChoice);l.n5&&(n.lio=l.W(l.n5)); l.B?(n.idpj=l.j3,n.ldpj=l.lf,l.delayThresholdMet&&(n.dtm="1"),l.Y!=null&&(n.rti=l.W(l.Y)),l.EE&&(n.ald=l.EE),l.compositeLiveIngestionOffsetToken&&(n.clio=l.compositeLiveIngestionOffsetToken)):l.adType!==void 0&&(n.at=l.adType);l.hC&&(l.N||l.B)&&(n.size=l.hC);l.N&&l.V.length&&(n.pbstyle=l.V.join(","));l.q5!=null&&(l.N||l.B)&&(n.inview=l.W(l.q5));l.B&&(n.volume=mR(l,g.M9(l.segments,function(L){return L.volume})),n.st=mR(l,g.M9(l.segments,function(L){return L.startTime})),n.et=mR(l,g.M9(l.segments,function(L){return L.endTime})), jz(l.segments,function(L){return L.playbackRate!==1})&&(n.rate=mR(l,g.M9(l.segments,function(L){return L.playbackRate}))),jz(l.segments,function(L){return L.S!=="-"})&&(n.als=g.M9(l.segments,function(L){return L.S}).join(",")),jz(l.segments,function(L){return L.previouslyEnded})&&(n.pe=g.M9(l.segments,function(L){return""+ +L.previouslyEnded}).join(","))); n.muted=mR(l,g.M9(l.segments,function(L){return L.muted?1:0})); jz(l.segments,function(L){return L.visibilityState!==0})&&(n.vis=mR(l,g.M9(l.segments,function(L){return L.visibilityState}))); jz(l.segments,function(L){return L.connectionType!==0})&&(n.conn=mR(l,g.M9(l.segments,function(L){return L.connectionType}))); jz(l.segments,function(L){return L.W!==0})&&(n.blo=mR(l,g.M9(l.segments,function(L){return L.W}))); jz(l.segments,function(L){return!!L.N})&&(n.blo=g.M9(l.segments,function(L){return L.N}).join(",")); jz(l.segments,function(L){return!!L.compositeLiveStatusToken})&&(n.cbs=g.M9(l.segments,function(L){return L.compositeLiveStatusToken}).join(",")); jz(l.segments,function(L){return L.L!=="-"})&&(n.cc=g.M9(l.segments,function(L){return L.L}).join(",")); jz(l.segments,function(L){return L.clipId!=="-"})&&(n.clipid=g.M9(l.segments,function(L){return L.clipId}).join(",")); if(jz(l.segments,function(L){return!!L.audioId})){var O="au"; l.N&&(O="au_d");n[O]=g.M9(l.segments,function(L){return L.audioId}).join(",")}ZE()&&l.Wm&&(n.ctt=l.Wm,n.cttype=l.uv,n.mdx_environment=l.mdxEnvironment); l.UU&&(n.etype=l.NQ!==void 0?l.NQ:0);l.nf&&(n.uoo=l.nf);l.livingRoomAppMode&&l.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(n.clram=KH0[l.livingRoomAppMode]||l.livingRoomAppMode);l.L?aX8(l,n):(n.docid=l.videoId,n.referrer=l.referrer,n.ei=l.eventId,n.of=l.Xh,n.osid=l.osid,n.vm=l.videoMetadata,l.adQueryId&&(n.aqi=l.adQueryId),l.autonav&&(n.autonav="1"),l.playlistId&&(n.list=l.playlistId),l.R6&&(n.ssrt="1"),l.tY&&(n.upt=l.tY));l.N&&(l.embedsRct&&(n.rct=l.embedsRct),l.embedsRctn&&(n.rctn= l.embedsRctn),l.compositeLiveIngestionOffsetToken&&(n.clio=l.compositeLiveIngestionOffsetToken));l.wq&&(n.host_cpn=l.wq);return n}; aX8=function(l,n){if(n&&l.L){var O=new Set(["q","feature","mos"]),L=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),X=new Set(["aqi","autonav","list","ssrt","upt"]);l.L.ns==="3pp"&&(n.ns="3pp");for(var F=g.P(Object.keys(l.L)),x=F.next();!x.done;x=F.next())x=x.value,L.has(x)||O.has(x)||X.has(x)&&!l.L[x]||(n[x]=l.L[x])}}; mR=function(l,n){return g.M9(n,l.W).join(",")}; phv=function(l){l.indexOf("watchtime")!==-1&&g.JG("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:l}})}; RD5=function(l,n){l.attestationResponse&&zDe(l).then(function(O){O=O||{};O.method="POST";O.postParams={atr:l.attestationResponse};l.Lf?l.Cf?v2().sendAndWrite(n,O):v2().sendThenWrite(n,O):g.yA(n,O)})}; ID=function(l){g.V.call(this);this.provider=l;this.V="paused";this.B=NaN;this.T=[10,10,10,40];this.Y=this.G=0;this.NQ=this.Lf=this.Q5=this.Wm=this.N=!1;this.W=this.L=NaN;this.S=new $Ev(l)}; ll9=function(l){if(!l.N){l.provider.videoData.HI===16623&&g.d2(Error("Playback for EmbedPage"));var n=dA(l,"playback");a:{if(l.provider.xo.J("web_player_use_server_vss_schedule")){var O,L=(O=l.provider.videoData.getPlayerResponse())==null?void 0:O.playbackTracking,X=L==null?void 0:L.videostatsScheduledFlushWalltimeSeconds;L=L==null?void 0:L.videostatsDefaultFlushIntervalSeconds;if(X&&X.length>0&&L){O=[];var F=l.provider.videoData.R4,x=l.provider.videoData.mB,Z=-F;X=g.P(X);for(var J=X.next();!J.done;J= X.next())J=J.value,O.push(J-Z),Z=J;O.push(L+x-F);O.push(L);l.T=O;break a}}l.T=[10+l.provider.videoData.R4,10,10,40+l.provider.videoData.mB-l.provider.videoData.R4,40]}Bu5(l.S);n.T=$b(l);l.W>0&&(n.S-=l.W);n.send();l.provider.videoData.eA&&(n=l.provider.xo,L=l.provider.videoData,O={html5:"1",video_id:L.videoId,cpn:L.clientPlaybackNonce,ei:L.eventId,ptk:L.eA,oid:L.sM,ptchn:L.N8,pltype:L.vN,content_v:iT(L)},L.Ii&&Object.assign(O,{m:L.Ii}),n=g.pr(n.Vf+"ptracking",O),C59(l,n));l.provider.videoData.K5|| (tpk(l),vNv(l),l.JL());l.N=!0;l=l.S;l.S=l.provider.uF.n1();l.iW=g.EV(l.provider);!(l.N===0&&l.S<5)&&l.S-l.N>2&&(l.N=l.S);l.T=!0}}; $b=function(l,n){n=n===void 0?NaN:n;var O=g.EV(l.provider);n=isNaN(n)?O:n;n=Math.ceil(n);var L=l.T[l.G];l.G+1<l.T.length&&l.G++;var X=n+L;l.B=g.U0(function(){if(!l.JG()){l.B=NaN;var F=nb9(l),x=Ot7(l,F);x.Y=X;var Z=l.Y>1E3;!(F.length>1)&&F[0].isEmpty()||Z||(x.T=$b(l,X));x.send();l.Y++}},(X-O)*1E3); return l.L=X}; Vn=function(l){g.Pu(l.B);l.B=NaN}; nb9=function(l){l.S.update();l=l.S;l.segments.length&&l.S===l.N||GW(l);var n=l.segments;l.segments=[];return n}; dA=function(l,n){var O=gbq(l.provider);Object.assign(O,{state:l.V});n=new i3e(l.provider.videoData,l.provider.xo,n,O);n.S=l.provider.uF.n1();O=l.provider.videoData.clientPlaybackNonce;n.S=l.provider.uF.Vi(O);l.provider.videoData.isLivePlayback||(n.z3=l.provider.uF.getDuration(O));l.provider.videoData.S&&(O=l.provider.videoData.S.Ko(n.S))&&(n.n5=O-n.S);n.M5=g.EV(l.provider);n.segments=[jT(l.provider)];return n}; Ot7=function(l,n){var O=dA(l,"watchtime");LRi(l)&&(O.delayThresholdMet=!0,l.Q5=!0);if(l.W>0){for(var L=g.P(n),X=L.next();!X.done;X=L.next())X=X.value,X.startTime-=l.W,X.endTime-=l.W;O.S-=l.W}else O.S=l.S.jJ();O.segments=n;return O}; BF=function(l,n){var O=XFv(l,!isNaN(l.L));n&&(l.L=NaN);return O}; XFv=function(l,n){var O=Ot7(l,nb9(l));!isNaN(l.L)&&n&&(O.Y=l.L);return O}; LRi=function(l){var n;if(n=l.provider.videoData.isLoaded()&&l.provider.videoData.K5&&l.N&&!l.Q5)n=l.S,n=n.B+n.provider.uF.n1()-n.N>=l.provider.videoData.K5;return!!n}; tpk=function(l){l.provider.videoData.youtubeRemarketingUrl&&!l.Lf&&(C59(l,l.provider.videoData.youtubeRemarketingUrl),l.Lf=!0)}; vNv=function(l){l.provider.videoData.googleRemarketingUrl&&!l.NQ&&(C59(l,l.provider.videoData.googleRemarketingUrl),l.NQ=!0)}; ob9=function(l){if(!l.JG()&&l.N){l.V="paused";var n=BF(l);n.isFinal=!0;n.send();l.dispose()}}; FR7=function(l,n){if(!l.JG())if(g.K(n.state,2)||g.K(n.state,512)){if(l.V="paused",g.U2(n,2)||g.U2(n,512))g.U2(n,2)&&(l.S.previouslyEnded=!0),l.N&&(Vn(l),BF(l).send(),l.L=NaN)}else if(g.K(n.state,8)){l.V="playing";var O=l.N&&isNaN(l.B)?$b(l):NaN;!isNaN(O)&&(ry(n,64)<0||ry(n,512)<0)&&(l=XFv(l,!1),l.T=O,l.send())}else l.V="paused"}; xsa=function(l,n,O){if(!l.Wm){O||(O=dA(l,"atr"));O.attestationResponse=n;try{O.send()}catch(L){if(L.message!=="Unknown Error")throw L;}l.Wm=!0}}; C59=function(l,n){var O=l.provider.xo;g.g7(l.provider.xo,g.pN(l.provider.videoData)).then(function(L){var X=l.provider.xo.pageId,F=l.provider.xo.sendVisitorIdHeader?l.provider.videoData.visitorData:void 0,x=l.provider.xo.J("vss_pings_using_networkless")||l.provider.xo.J("kevlar_woffle"),Z=l.provider.xo.J("allow_skip_networkless");L=b3f(n,O,X,F,L);ry8(n,L,{token:l.provider.videoData.V,UT:l.provider.videoData.dH,mdxEnvironment:l.provider.videoData.mdxEnvironment},O,void 0,x&&!Z,!1,!0)})}; hsi=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.W=0;this.compositeLiveStatusToken=this.N=void 0;this.volume=this.connectionType=0;this.muted=!1;this.S=this.clipId="-";this.previouslyEnded=!1}; cF=function(l,n,O){this.videoData=l;this.xo=n;this.uF=O;this.S=void 0}; g.EV=function(l){return Zte(l)()}; Zte=function(l){if(!l.S){var n=g.ve(function(L){var X=(0,g.Q_)();L&&X<=631152E6&&(l.uF.Sp("ytnerror",{issue:28799967,value:""+X}),X=(new Date).getTime()+2);return X},l.xo.J("html5_validate_yt_now")),O=n(); l.S=function(){return Math.round(n()-O)/1E3}; l.uF.Eh()}return l.S}; gbq=function(l){var n=l.uF.Kz()||{};n.fs=l.uF.JS();n.volume=l.uF.getVolume();n.muted=l.uF.isMuted()?1:0;n.mos=n.muted;n.clipid=l.uF.TC();var O;n.playerheight=((O=l.uF.getPlayerSize())==null?void 0:O.height)||0;var L;n.playerwidth=((L=l.uF.getPlayerSize())==null?void 0:L.width)||0;l=l.videoData;O={};l.W&&(O.fmt=l.W.itag,l.L&&(l.Xg?l.L.itag!==l.W.itag:l.L.itag!=l.W.itag)&&(O.afmt=l.L.itag));O.ei=l.eventId;O.list=l.playlistId;O.cpn=l.clientPlaybackNonce;l.videoId&&(O.v=l.videoId);l.uc&&(O.infringe=1); (l.q_?0:l.UU)&&(O.splay=1);(L=Wf(l))&&(O.live=L);l.rk&&(O.sautoplay=1);l.M3&&(O.autoplay=1);l.JY&&(O.sdetail=l.JY);l.partnerId&&(O.partnerid=l.partnerId);l.osid&&(O.osid=l.osid);l.z5&&(O.cc=g.YZ5(l.z5));return Object.assign(n,O)}; ko9=function(l){var n=ZHk();if(n)return JOi[n]||JOi.other;if(g.yw(l.xo)){l=navigator.userAgent;if(/[Ww]ireless[)]/.test(l))return 3;if(/[Ww]ired[)]/.test(l))return 30}return 0}; jT=function(l){var n=new hsi,O;n.L=((O=gbq(l).cc)==null?void 0:O.toString())||"-";n.playbackRate=l.uF.getPlaybackRate();O=l.uF.getVisibilityState();O!==0&&(n.visibilityState=O);l.xo.uv&&(n.W=1);n.N=l.videoData.Qh;n.compositeLiveStatusToken=l.videoData.compositeLiveStatusToken;O=l.uF.getAudioTrack();O.O_&&O.O_.id&&O.O_.id!=="und"&&(n.audioId=O.O_.id);n.connectionType=ko9(l);n.volume=l.uF.getVolume();n.muted=l.uF.isMuted();n.clipId=l.uF.TC()||"-";n.S=l.videoData.vr||"-";return n}; g.ib=function(l,n){g.V.call(this);var O=this;this.provider=l;this.L=!1;this.N=new Map;this.N_=new g.XI;this.DQ={pdf:function(){return O.qoe}, uv1:function(){return O.S}, BE3:function(){return O.W}}; this.provider.videoData.MP()&&!this.provider.videoData.mD&&(this.S=new ID(this.provider),this.S.W=this.provider.videoData.j3/1E3,g.c(this,this.S),this.qoe=new g.yn(this.provider,n),g.c(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.uU=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.uU,this.S));if(l.xo.playerCanaryState==="canary"||l.xo.playerCanaryState==="holdback")this.W=new WF(this.provider),g.c(this,this.W)}; wFe=function(l){return!!l.S&&!!l.qoe}; zW=function(l){l.W&&Xh0(l.W);l.qoe&&IX5(l.qoe)}; Htq=function(l){if(l.qoe){l=l.qoe;for(var n=l.provider.videoData,O=l.provider.xo,L=g.P(O.RP),X=L.next();!X.done;X=L.next())Qn(l,X.value);if(l.provider.J("html5_enable_qoe_cat_list"))for(L=g.P(n.T9),X=L.next();!X.done;X=L.next())Qn(l,X.value);else n.RP&&Qn(l,l.provider.videoData.RP);n.tA()&&(L=n.S,JZ(n)&&Qn(l,"manifestless"),L&&Wz(L)&&Qn(l,"live-segment-"+Wz(L).toFixed(1)));XZ(n)?Qn(l,"sabr"):l.fV(AZ(n));if(s9(n)||n.iK())n.iK()&&Qn(l,"ssa"),Qn(l,"lifa");n.gatewayExperimentGroup&&(L=n.gatewayExperimentGroup, L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?L="spkadtrt":L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(L="spkadctrl"),Qn(l,L));O.Wm!=="yt"&&(l.S.len=[n.lengthSeconds.toFixed(2)]);n.cotn&&!KN(n)&&l.Hv(!0);O.AA()&&(n=Nu8())&&l.Sp("cblt",{m:n});if(O.J("html5_log_screen_diagonal")){O=l.Sp;var F;n=((F=window.H5vccScreen)==null?0:F.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;O.call(l,"cbltdiag",{v:n})}}}; AOf=function(l){if(l.provider.uF.WM()){if(l.L)return;l.L=!0}l.S&&ll9(l.S);if(l.W){l=l.W;var n=g.EV(l.provider);l.S<0&&(l.S=n,l.delay.start());l.W=n;l.L=n}}; bt0=function(l,n){l.S&&(l=l.S,n===58?l.S.update():l.N&&(Vn(l),BF(l).send(),l.L=NaN))}; rOa=function(l,n){if(g.U2(n,1024)||g.U2(n,512)||g.U2(n,4)){if(l.W){var O=l.W;O.W>=0||(O.S=-1,O.delay.stop())}l.qoe&&(O=l.qoe,O.G||(O.W=-1))}if(l.provider.videoData.enableServerStitchedDai&&l.uU){var L;(L=l.N.get(l.uU))==null||FR7(L,n)}else l.S&&FR7(l.S,n);if(l.qoe){L=l.qoe;O=n.state;var X=g.EV(L.provider),F=L.getPlayerState(O);dEi(L,X,F,O.seekSource||void 0);F=O.WG;g.K(O,128)&&F&&(F.DK=F.DK||"",YDe(L,X,F.errorCode,F.wS,F.DK));(g.K(O,2)||g.K(O,128))&&L.reportStats(X);O.isPlaying()&&!L.G&&(L.W>=0&& (L.S.user_intent=[L.W.toString()]),L.G=!0);QGe(L)}l.W&&(L=l.W,oN7(L),L.playerState=n.state,L.W>=0&&g.U2(n,16)&&L.seekCount++,n.state.isError()&&L.send());l.provider.uF.WM()&&(l.N_=n.state)}; Us0=function(l){if(l.provider.videoData.enableServerStitchedDai&&l.uU){var n;(n=l.N.get(l.uU))!=null&&GW(n.S)}else l.S&&GW(l.S.S)}; uU7=function(l){l.W&&l.W.send();if(l.qoe){var n=l.qoe;if(n.N){n.N_==="PL"&&(n.N_="N");var O=g.EV(n.provider);g.kb(n,O,"vps",[n.N_]);n.G||(n.W>=0&&(n.S.user_intent=[n.W.toString()]),n.G=!0);n.provider.xo.AA()&&n.Sp("finalized",{});n.Cf=!0;n.reportStats(O)}}if(l.provider.videoData.enableServerStitchedDai)for(n=g.P(l.N.values()),O=n.next();!O.done;O=n.next())ob9(O.value);else l.S&&ob9(l.S);l.dispose()}; Pbq=function(l,n){l.S&&xsa(l.S,n)}; TA5=function(l){if(!l.S)return null;var n=dA(l.S,"atr");return function(O){l.S&&xsa(l.S,O,n)}}; WR9=function(l,n,O,L){O.adFormat=O.Wk;var X=n.uF;n=new ID(new cF(O,n.xo,{getDuration:function(){return O.lengthSeconds}, getCurrentTime:function(){return X.getCurrentTime()}, n1:function(){return X.n1()}, Vi:function(){return X.Vi()}, WM:function(){return X.WM()}, vt:function(){return X.vt()}, getPlayerSize:function(){return X.getPlayerSize()}, getAudioTrack:function(){return O.getAudioTrack()}, getPlaybackRate:function(){return X.getPlaybackRate()}, Qd:function(){return X.Qd()}, getVisibilityState:function(){return X.getVisibilityState()}, GE:function(){return X.GE()}, Kz:function(){return X.Kz()}, getVolume:function(){return X.getVolume()}, isMuted:function(){return X.isMuted()}, JS:function(){return X.JS()}, TC:function(){return X.TC()}, getProximaLatencyPreference:function(){return X.getProximaLatencyPreference()}, Eh:function(){X.Eh()}, Sp:function(F,x){X.Sp(F,x)}, JU:function(){return X.JU()}})); n.W=L;g.c(l,n);return n}; Ebi=function(){this.ZB=0;this.N=this.bA=this.ly=this.W=NaN;this.S={};this.bandwidthEstimate=NaN}; ST=function(l,n,O){g.V.call(this);var L=this;this.xo=l;this.uF=n;this.W=O;this.S=new Map;this.uU="";this.DQ={pT:function(){return Array.from(L.S.keys())}}}; NAi=function(l,n){l.S.has(n)&&(uU7(l.S.get(n)),l.S.delete(n))}; Ds5=function(){this.S=g.o_;this.array=[]}; kW5=function(l,n,O){var L=[];for(n=qVe(l,n);n<l.array.length;++n){var X=l.array[n];(X.end<=O||X.contains(O))&&L.push(X);if(X.start>O)break}return L}; yOe=function(l,n){var O=[];l=g.P(l.array);for(var L=l.next();!L.done&&!(L=L.value,L.contains(n)&&O.push(L),L.start>n);L=l.next());return O}; MT9=function(l){return l.array.slice(qVe(l,0x7ffffffffffff),l.array.length)}; qVe=function(l,n){l=hm(l.array,function(O){return n-O.start||1}); return l<0?-(l+1):l}; QD0=function(l,n){var O=NaN;l=g.P(l.array);for(var L=l.next();!L.done;L=l.next())if(L=L.value,L.contains(n)&&(isNaN(O)||L.end<O)&&(O=L.end),L.start>n&&(isNaN(O)||L.start<O)){O=L.start;break}return O}; es5=function(l,n){l.array=l.array.filter(function(O){return!n.has(O)})}; g.pt=function(l,n,O,L,X){g.V.call(this);this.Y=l;this.Q5=n;this.V=O;this.Wm=L;this.L=X;this.N=NaN;this.T=this.G=this.started=!1;this.W=[];this.NQ=new g.vs(this.sync,250,this);g.c(this,this.NQ);this.B=new g.vs(this.sync,0,this);g.c(this,this.B);this.S=new Ds5}; YV0=function(l){l.started=!0;l.sync()}; jDi=function(l,n){l.started&&(l.sync(),g.K(n.oldState,16)&&(n=QD0(l.S,Math.max(l.N-2E3,0)),!isNaN(n)&&n<0x7ffffffffffff&&l.B.start()))}; GWk=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=O[1];O[0]===1?l.Wm(g.F4(L.namespace),L):l.Wm(g.xx(L.namespace),L)}}; g.sV=function(l){var n=this;this.uF=l;this.DQ={YkJ:function(){return n.uF}}}; ft=function(l){l.uF.dispose()}; mse=function(l){this.xo=l;this.N=this.W=this.mediaTime=NaN;this.L=this.S=!1;this.B=.001;g.yw(l)&&(this.B=.01)}; Kt=function(l,n){return n>l.mediaTime+l.B&&n<l.mediaTime+5}; eh7=function(l,n,O,L,X){if(L=L>1)l.L=!0;if((X===void 0?0:X)||isNaN(l.W))l.W=n;if(l.S)n!==l.mediaTime&&(l.S=!1);else if(n>0&&l.mediaTime===n){X=1500;if(l.xo.J("html5_buffer_underrun_transition_fix")){X=g.HQ(l.xo.experiments,"html5_min_playback_advance_for_steady_state_secs");var F=g.HQ(l.xo.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");X=X>0&&F>0&&Math.abs(n-l.W)<X?F:1500}return O-l.N>(L||!l.L?X:400)}l.mediaTime=n;l.N=O;return!1}; Il5=function(l,n){this.videoData=l;this.S=n}; ds5=function(l,n,O){return n.Hr(O).then(function(){return mA(new Il5(n,n.N))},function(L){L instanceof Error&&g.d2(L); var X=jl('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),F=m8('audio/mp4; codecs="mp4a.40.2"'),x=X||F,Z=n.isLivePlayback&&!g.OI(l.B,!0);L="fmt.noneavailable";Z?L="html5.unsupportedlive":x||(L="html5.missingapi");x=Z||!x?2:1;X={buildRej:"1",a:n.iT(),d:!!n.M5,drm:n.Vb(),f18:n.kY.indexOf("itag=18")>=0,c18:X};n.S&&(n.Vb()?(X.f142=!!n.S.S["142"],X.f149=!!n.S.S["149"],X.f279=!!n.S.S["279"]):(X.f133=!!n.S.S["133"],X.f140=!!n.S.S["140"],X.f242=!!n.S.S["242"]),X.cAAC=F,X.cAVC=m8('video/mp4; codecs="avc1.42001E"'), X.cVP9=m8('video/webm; codecs="vp9"'));n.B&&(X.drmsys=n.B.keySystem,F=0,n.B.S&&(F=Object.keys(n.B.S).length),X.drmst=F);return new Ml(L,X,x)})}; aD=function(l){this.data=window.Float32Array?new Float32Array(l):Array(l);this.W=this.S=l-1}; $s8=function(l){return l.data[l.S]||0}; VT8=function(l){this.B=l;this.N=this.W=0;this.L=new aD(50)}; Ct=function(l,n,O){g.hj.call(this);this.videoData=l;this.experiments=n;this.V=O;this.W=[];this.L=0;this.N=!0;this.B=!1;this.T=0;O=new BAq;l.latencyClass==="ULTRALOW"&&(O.L=!1);l.Of?O.W=3:g.kZ(l)&&(O.W=2);l.latencyClass==="NORMAL"&&(O.V=!0);var L=g.HQ(n,"html5_liveness_drift_proxima_override");if(AZ(l)!==0&&L){O.S=L;var X;((X=l.S)==null?0:Yvv(X))&&O.S--}XZ(l)&&n.MQ("html5_sabr_parse_live_metadata_playback_boundaries")&&(O.Y=!0);if(g.S_("trident/")||g.S_("edge/"))X=g.HQ(n,"html5_platform_minimum_readahead_seconds")|| 3,O.N=Math.max(O.N,X);g.HQ(n,"html5_minimum_readahead_seconds")&&(O.N=g.HQ(n,"html5_minimum_readahead_seconds"));g.HQ(n,"html5_maximum_readahead_seconds")&&(O.G=g.HQ(n,"html5_maximum_readahead_seconds"));n.MQ("html5_force_adaptive_readahead")&&(O.L=!0);if(X=g.HQ(n,"html5_liveness_drift_chunk_override"))O.S=X;wi(l)&&(O.S=(O.S+1)/5,l.latencyClass==="LOW"&&(O.S*=2));if(l.latencyClass==="ULTRALOW"||l.latencyClass==="LOW")O.B=g.HQ(n,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,O.T=g.HQ(n, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=O;this.G=this.policy.W!==1;this.S=RD(this,cOi(this,isNaN(l.liveChunkReadahead)?3:l.liveChunkReadahead,l))}; it9=function(l,n){if(n)return n=l.videoData,n=cOi(l,isNaN(n.liveChunkReadahead)?3:n.liveChunkReadahead,n),RD(l,n);if(l.W.length){if(Math.min.apply(null,l.W)>1)return RD(l,l.S-1);if(l.policy.L)return RD(l,l.S+1)}return l.S}; zs5=function(l,n){if(!l.W.length)return!1;var O=l.S;l.S=it9(l,n===void 0?!1:n);if(n=O!==l.S)l.W=[],l.L=0;return n}; tO=function(l,n){return n>=l.Tn()-SV5(l)}; pFg=function(l,n,O){n=tO(l,n);O||n?n&&(l.N=!0):l.N=!1;l.G=l.policy.W===2||l.policy.W===3&&l.N}; sDg=function(l,n){n=tO(l,n);l.B!==n&&l.publish("livestatusshift",n);l.B=n}; SV5=function(l){var n=l.policy.S;l.B||(n=Math.max(n-1,0));return n*vF(l)}; cOi=function(l,n,O){O.Of&&n--;wi(O)&&(n=1);if(AZ(O)!==0&&(l=g.HQ(l.experiments,"html5_live_chunk_readahead_proxima_override"))){n=l;var L;((L=O.S)==null?0:Yvv(L))&&n++}return n}; vF=function(l){return l.videoData.S?Wz(l.videoData.S)||5:5}; RD=function(l,n){n=Math.max(Math.max(1,Math.ceil(l.policy.N/vF(l))),n);return Math.min(Math.min(8,Math.floor(l.policy.G/vF(l))),n)}; BAq=function(){this.N=0;this.G=Infinity;this.L=!0;this.S=2;this.W=1;this.V=!1;this.T=10;this.Y=!1;this.B=1}; Oa=function(l){g.V.call(this);this.uF=l;this.S=0;this.W=null;this.V=this.L=0;this.N={};this.xo=this.uF.j();this.B=new g.vs(this.yV,1E3,this);this.Yo=new lU({delayMs:g.HQ(this.xo.experiments,"html5_seek_timeout_delay_ms")});this.Cf=new lU({delayMs:g.HQ(this.xo.experiments,"html5_long_rebuffer_threshold_ms")});this.uv=no(this,"html5_seek_set_cmt");this.Fi=no(this,"html5_seek_jiggle_cmt");this.G3=no(this,"html5_seek_new_elem");this.n5=no(this,"html5_unreported_seek_reseek");this.Q5=no(this,"html5_long_rebuffer_jiggle_cmt"); this.z3=no(this,"html5_long_rebuffer_ssap_clip_not_match");this.Lf=new lU({delayMs:2E4});this.Pm=no(this,"html5_seek_new_elem_shorts");this.Of=no(this,"html5_seek_new_media_source_shorts_reuse");this.nf=no(this,"html5_seek_new_media_element_shorts_reuse");this.wq=no(this,"html5_reseek_after_time_jump");this.G=no(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Wm=no(this,"html5_gapless_slow_seek");this.Y=no(this,"html5_gapless_slice_append_stuck");this.NQ=no(this,"html5_gapless_slow_start"); this.T=no(this,"html5_ads_preroll_lock_timeout");this.K5=no(this,"html5_ssap_ad_longrebuffer_new_element");this.oO=new lU({delayMs:g.HQ(this.xo.experiments,"html5_skip_slow_ad_delay_ms")||5E3,CO:!this.xo.J("html5_report_slow_ads_as_error")});this.Fp=new lU({delayMs:g.HQ(this.xo.experiments,"html5_skip_slow_ad_delay_ms")||5E3,CO:!this.xo.J("html5_skip_slow_buffering_ad")});this.JA=new lU({delayMs:g.HQ(this.xo.experiments,"html5_slow_start_timeout_delay_ms")});this.Hm=no(this,"html5_slow_start_no_media_source"); g.c(this,this.B)}; no=function(l,n){var O=g.HQ(l.xo.experiments,n+"_delay_ms");l=l.xo.J(n+"_cfl");return new lU({delayMs:O,CO:l})}; fl5=function(l,n){l.S=n}; gr=function(l,n,O,L,X,F,x,Z){n.test(O)?(l.l5(X,n,x),n.CO||F()):(n.T_&&n.W&&!n.L?(O=(0,g.Q_)(),L?n.S||(n.S=O):n.S=0,F=!L&&O-n.W>n.T_,O=n.S&&O-n.S>n.V1||F?n.L=!0:!1):O=!1,O&&(Z=Object.assign({},l.sC(n),Z),Z.wn=x,Z.we=X,Z.wsuc=L,l.uF.Sp("workaroundReport",Z),L&&(n.reset(),l.N[X]=!1)))}; lU=function(l){var n=l===void 0?{}:l;l=n.delayMs===void 0?0:n.delayMs;var O=n.V1===void 0?1E3:n.V1;var L=n.T_===void 0?3E4:n.T_;n=n.CO===void 0?!1:n.CO;this.S=this.W=this.N=this.startTimestamp=0;this.L=!1;this.B=Math.ceil(l/1E3);this.V1=O;this.T_=L;this.CO=n}; Cbv=function(l){g.V.call(this);var n=this;this.uF=l;this.V=this.S=this.sf=this.mediaElement=this.playbackData=null;this.L=0;this.B=this.Wm=this.N=null;this.NQ=!1;this.oO=0;this.G=!1;this.timestampOffset=0;this.T=!0;this.Fi=0;this.G3=this.JA=!1;this.Y=0;this.Of=!1;this.Q5=0;this.xo=this.uF.j();this.videoData=this.uF.getVideoData();this.policy=new KR8;this.Lf=new Oa(this.uF);this.Yo=this.wq=this.Hm=this.W=NaN;this.z3=new g.vs(function(){al9(n,!1)},2E3); this.Fp=new g.vs(function(){Lo(n)}); this.Pm=new g.vs(function(){n.NQ=!0;Rs9(n,{})}); this.uv=NaN;this.Cf=new g.vs(function(){var O=n.xo.q_;O.S+=1E4/36E5;O.S-O.N>1/6&&(Szf(O),O.N=O.S);n.Cf.start()},1E4); g.c(this,this.Lf);g.c(this,this.z3);g.c(this,this.Pm);g.c(this,this.Fp);g.c(this,this.Cf)}; l1i=function(l,n){l.playbackData=n;l.videoData.isLivePlayback&&(l.V=new VT8(function(){a:{if(l.playbackData&&l.playbackData.S.S){if(JZ(l.videoData)&&l.sf){var O=l.sf.SP.sP()||0;break a}if(l.videoData.S){O=l.videoData.S.Lf;break a}}O=0}return O}),l.S=new Ct(l.videoData,l.xo.experiments,function(){return l.w8(!0)})); Xt(l.uF)?(n=tTi(l),n.tB?(l.J("html5_sabr_enable_utc_seek_requests")&&XZ(l.videoData)&&l.aB(n.tB,n.startSeconds),l.L=n.startSeconds):n.startSeconds>0&&l.seekTo(n.startSeconds,{UC:"seektimeline_startPlayback",seekSource:15}),l.T=!1):vbg(l)||(l.L=l.L||(g.fy(l.videoData)?0:l.videoData.startSeconds)||0)}; Oo8=function(l,n){(l.sf=n)?n8i(l,!0):oy(l)}; g8q=function(l,n){g.lx(l.Lf.B);l.J("html5_exponential_memory_for_sticky")&&(n.state.isPlaying()?g.lx(l.Cf):l.Cf.stop());if(l.mediaElement)if(n.oldState.state===8&&wX(n.state)&&n.state.isBuffering()){n=l.mediaElement.getCurrentTime();var O=l.mediaElement.NJ();var L=l.J("manifestless_post_live_ufph")||l.J("manifestless_post_live")?hY(O,Math.max(n-3.5,0)):hY(O,n-3.5);L>=0&&n>O.end(L)-1.1&&L+1<O.length&&O.start(L+1)-O.end(L)<11&&(L=O.start(L+1)+.2,Math.abs(l.uv-L)<.2||(l.uF.Sp("seekover",{b:xG(O,"_"), cmt:n}),l.uv=L,l.seekTo(L,{Uw:!0,UC:"seektimeline_postLiveDisc"})))}else((O=n.state)==null?0:O.state===8)&&!l.G3&&(l.videoData.limitedPlaybackDurationInSeconds>0?(Ft(l.uF,l.getCurrentTime()+l.videoData.limitedPlaybackDurationInSeconds),l.G3=!0):l.videoData.isLivePlayback&&l.videoData.endSeconds>0&&(Ft(l.uF,l.getCurrentTime()+l.videoData.endSeconds),l.G3=!0))}; XL0=function(l,n){var O=l.getCurrentTime(),L=l.isAtLiveHead(O);if(l.V&&L){var X=l.V;if(X.S&&!(O>=X.W&&O<X.N)){var F=X.S.Qb(O);F!==-1&&(X.W=X.S.getStartTime(F),X.N=X.W+X.S.getDuration(F),F=(0,g.Q_)()/1E3-X.S.Ko(F),F-=X.B(),X.L.add(F))}}l.S&&(L&&(X=l.S,F=Lr5(l),X.L++,X.L<3||Date.now()-X.T<3E3||(X.T=Date.now(),X.W.push(F),X.W.length>50&&X.W.shift())),X=l.S,pFg(X,O,n===void 0?!0:n),sDg(X,O),n&&al9(l,!0));L!==l.JA&&(n=l.getCurrentTime()-l.Yo<=500,O=l.oO>=1E3,n||O||(n=l.uF.p5(),n.qoe&&(n=n.qoe,O=g.EV(n.provider), g.kb(n,O,"lh",[L?"1":"0"])),l.JA=L,l.oO++,l.Yo=l.getCurrentTime()))}; al9=function(l,n){if(l.S){var O=l.S;var L=l.getCurrentTime();!tO(O,L)&&O.qH()?(O.policy.V&&(O.policy.S=Math.max(O.policy.S+O.policy.B,O.policy.T)),O=Infinity):O=L<O.videoData.i5()?Math.min(O.videoData.i5()+10,O.Tn()):NaN;if(!isNaN(O)){if(l.sf&&n&&(n=l.z3.isActive(),L=l.S.Tn(),(L=Dke(l.sf,L-l.ez()))&&!n)){l.z3.start();l.uF.Sp("inBufferPtl",{cmt:l.getCurrentTime(),seekTo:L+l.ez()});l.seekTo(L+l.ez(),{UC:"seektimeline_inBufferSeek"});return}l.seekTo(O,{UC:"seektimeline_pegToLive"})}}}; n8i=function(l,n){if(l.S&&l.sf){var O=!1;n?O=!0:l.videoData.isLowLatencyLiveStream||l.videoData.latencyClass==="LOW"||l.videoData.latencyClass==="ULTRALOW"?O=zs5(l.S):l.Of&&(l.Of=!1,O=zs5(l.S,!0));O&&(n=l.uF.p5(),O=l.S,O=vF(O)*O.S,n.qoe&&(n=n.qoe,g.kb(n,g.EV(n.provider),"lra",[O]),n.Sp("live-readahead-seconds",{v:O})));n=l.sf;O=l.S.S;l=l.S;l=(l.S-1+l.policy.S)*vF(l);var L=NaN,X=n.n5;X===2||X===-1?wi(n.uF.getVideoData())&&(L=n.policy.zt):--O;O=Math.max(O,0);X=n.B;X.gZ=O;X.Y=L;n.T&&(n.T.Wm=l)}}; o89=function(l,n){l.L=n}; Rs9=function(l,n){Frf(l,n).then(void 0,function(){oy(l)}); xDe(l).then(function(O){hv9(l,O)},function(){oy(l)}); l.uF.tf(n);l.xo.AA()&&(n=l.sC(),n["native"]=""+ +l.G,n.tgt=""+l.W,n.otgt=""+(l.W+l.timestampOffset),l.S&&l.J("html5_high_res_seek_logging")&&(n.tht=""+l.S.V(),n.ht=""+l.S.Tn(),n.adft=""+SV5(l.S)),l.J("html5_sabr_parse_live_metadata_playback_boundaries")&&l.videoData.S&&XZ(l.videoData)&&(n.minst=""+l.videoData.S.IU,n.cminst=""+(l.videoData.S.i5()+l.timestampOffset),n.maxst=""+l.videoData.S.vp,n.hts=""+l.videoData.S.NQ,n.cmaxst=""+(l.videoData.S.w8()+l.timestampOffset)),l.uF.Sp("startSeek",n))}; Frf=function(l,n){l.Wm||(l.sf?isFinite(l.W)?l.Wm=l.sf.seek(l.W-l.timestampOffset,n):(Zf(l.videoData),l.Wm=UD(l.sf),RY(l.videoData)||(l.W=l.sf.getCurrentTime()+l.timestampOffset)):l.Wm=g.P$(l.W-l.timestampOffset));return l.Wm}; xDe=function(l){var n=l.N;n||(l.N=new v6,n=l.N,Lo(l));return n}; x8=function(l,n,O){return isNaN(n)?NaN:g.hR(n,l.i5(),l.w8(O))}; Lo=function(l){if(l.N)if(l.videoData.isLivePlayback&&l.videoData.N&&!l.videoData.N.S&&l.mediaElement&&l.mediaElement.R_()>0&&nX(l.mediaElement)>0&&(l.W=x8(l,l.W,!1)),!l.mediaElement||!Zoa(l))l.Fp.start(750);else if(!isNaN(l.W)&&isFinite(l.W)){var n=l.wq-(l.W-l.timestampOffset);if(!(n===0||l.J("html5_enable_new_seek_timeline_logic")&&Math.abs(n)<.005))if(n=l.mediaElement.getCurrentTime()-l.W,Math.abs(n)<=l.Fi||l.J("html5_enable_new_seek_timeline_logic")&&Math.abs(n)<.005)l.N&&l.N.resolve(l.mediaElement.getCurrentTime()); else{if(l.videoData.Xa)l.videoData.Xa=!1;else if(!Zf(l.videoData)&&l.W>=l.w8()-.1){l.W=l.w8();l.N.resolve(l.w8());l.uF.ND();return}try{var O=l.W-l.timestampOffset;l.mediaElement.seekTo(O);l.Lf.S=O;l.wq=O;l.L=l.W;l.J("html5_enable_new_seek_timeline_logic")&&(l.G=!1)}catch(L){}}}}; Zoa=function(l){if(!l.mediaElement||l.mediaElement.R_()===0||l.mediaElement.hasError())return!1;var n=l.mediaElement.getCurrentTime()>0;if(!(l.videoData.N&&l.videoData.N.S||l.videoData.isLivePlayback)&&l.videoData.Vb())return n;if(l.W>=0){var O=l.mediaElement.pO();if(O.length||!n)return ZA(O,l.W-l.timestampOffset)}return n}; hv9=function(l,n){l.B&&(l.B.resolve(n),l.uF.wx(),l.xo.AA()&&(n=l.sC(),n["native"]=""+ +l.G,n.otgt=""+(l.W+l.timestampOffset),l.uF.Sp("seekEnd",n)));oy(l)}; oy=function(l){l.W=NaN;l.wq=NaN;l.N=null;l.Wm=null;l.B=null;l.NQ=!1;l.G=!1;l.Fi=0;l.z3.stop();l.Pm.stop()}; Ho0=function(l,n,O){var L=l.mediaElement,X=n.type;switch(X){case "seeking":var F=L.getCurrentTime()+l.timestampOffset;if(!l.N||l.G&&F!==l.W){var x=!!l.N;l.N=new v6;l.J("html5_enable_new_seek_timeline_logic")&&l.N.then(function(J){hv9(l,J)},function(){oy(l)}); if(l.videoData.isAd()){var Z;vt8({adCpn:l.videoData.clientPlaybackNonce,contentCpn:(Z=l.videoData.Cw)!=null?Z:""},n.S)}l.wq=F;fl5(l.Lf,L.getCurrentTime());l.seekTo(F,{seekSource:104,UC:"seektimeline_mediaElementEvent"});O&&JH9(O,F*1E3,!!x);l.G=!0}break;case "seeked":l.N&&l.N.resolve(l.mediaElement.getCurrentTime());break;case "loadedmetadata":Xt(l.uF)||wLq(l);Lo(l);break;case "progress":Lo(l);break;case "pause":l.Y=l.getCurrentTime()}l.Y&&((X==="play"||X==="playing"||X==="timeupdate"||X==="progress")&& l.getCurrentTime()-l.Y>10&&(l.J("html5_enable_new_media_element_puase_jump")?(l.uF.l5(new Ml("qoe.restart",{reason:"pauseJump"})),l.uF.vG()):l.seekTo(l.Y,{UC:"pauseJump"})),X!=="pause"&&X!=="play"&&X!=="playing"&&X!=="progress"&&(l.Y=0))}; AH0=function(l){return(yZ(l.videoData)||!!l.videoData.liveUtcStartSeconds)&&(!!l.videoData.liveUtcStartSeconds||vbg(l))&&!!l.videoData.S}; vbg=function(l){return!!l.videoData.startSeconds&&isFinite(l.videoData.startSeconds)&&l.videoData.startSeconds>1E9}; tTi=function(l){var n=0,O=NaN,L="";if(!l.T)return{startSeconds:n,tB:O,source:L};l.videoData.z3?n=l.videoData.Hm:Zf(l.videoData)&&(n=Infinity);if(g.kZ(l.videoData))return{startSeconds:n,tB:O,source:L};l.videoData.startSeconds?(L="ss",n=l.videoData.startSeconds):l.videoData.oA&&(L="stss",n=l.videoData.oA);l.videoData.liveUtcStartSeconds&&(O=l.videoData.liveUtcStartSeconds);if(isFinite(n)&&(n>l.w8()||n<l.i5())){var X={};X.minSeekableTime=l.i5();X.maxSeekableTime=l.w8();X.cmt=l.getCurrentTime();X.ss= n;X.utc=O;X.src=L;l.uF.Sp("startSecondsOutOfBounds",X);l.videoData.tA()&&(n=x8(l,n,!1))}return{startSeconds:n,tB:O,source:L}}; wLq=function(l){if(l.T)if(g.kZ(l.videoData))l.T=!1;else{var n="ss",O=0,L;((L=l.videoData.S)==null?0:L.isManifestless)&&l.videoData.n5&&!vbg(l)&&(n="mss",O=l.videoData.n5);(l.videoData.z3?l.J("html5_prioritize_windowed_st_start_seconds"):l.J("html5_prioritize_st_start_seconds"))&&!O&&l.videoData.oA&&(n="stss",O=l.videoData.oA);!O&&AH0(l)&&(O=l.videoData.liveUtcStartSeconds||l.videoData.n5,n="utc",O=l.w8()-l.Ko(l.w8())+O);O||l.J("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!l.videoData.tA()|| !l.videoData.oA||(n="stss",O=l.videoData.oA);L={};if(O){if(O>l.w8()||O<l.i5())L.minSeekableTime=l.i5(),L.maxSeekableTime=l.w8(),L.cmt=l.getCurrentTime(),L.it=l.Ko(l.getCurrentTime()),L.ss=O,L.utc=AH0(l)?l.videoData.liveUtcStartSeconds||l.videoData.n5:0,l.uF.Sp("startSecondsOutOfBounds",L),l.videoData.tA()&&(O=x8(l,O,!1));l.seekTo(O,{UC:"seektimeline_startSeconds"});L[n]=O;l.uF.Sp("startSeconds",L);l.T=!1}else l.videoData.n5&&(L[n]=l.videoData.n5+l.ez(),l.uF.Sp("startSeconds",L))}}; boa=function(l,n){l.uF.Sp("sdai",{adj4t:n.toFixed(3)});l.Hm=n;n+=1;l.W=n;l.L=n;xDe(l).then(function(O){hv9(l,O)},function(){oy(l)})}; Lr5=function(l){return l.mediaElement?Oz(l.mediaElement):0}; KR8=function(){}; hH=function(l){g.V.call(this);this.N=l;this.S=new Map;this.W=new g.vs(this.sample,250,this);g.c(this,this.W);this.start()}; Z1=function(l,n){if((l=l.S.get(n))==null)l=void 0;else{l=l.buffer;for(n=[];l.W!==l.S;)l.W=(l.W+1)%l.data.length,n.push(l.data[l.W]);l=n}return l||[]}; JH=function(l,n){var O;return((O=l.S.get(n))==null?void 0:$s8(O.buffer))||0}; rHg=function(l){this.S=l;this.Hi=NaN;this.buffer=new aD(100)}; wr=function(){this.finished=this.started=!1}; E8k=function(l){function n(X){return O.o_&&(!L.rH||!L.rq.T)||O.Wm!=="yt"&&(L.partnerId===38&&O.playerStyle==="books"||L.partnerId===30&&O.playerStyle==="docs"||L.partnerId===33&&O.playerStyle==="google-live")?UDi(l,L,X):uti(l,L).then(function(){HL(l,L)},function(F){HL(l,L,!0); throw F;})} var O=l.j(),L=l.getVideoData();L.JG();L.loading=!0;return PUg(l)?Tri(l,L).then(function(){HL(l,L)},function(X){X=el(X); if(QC(X.severity))return HL(l,L,!0),Promise.reject(X);X.errorCode==="onesie.response.badproxystatus"&&""+X.details.st==="3"&&(Wra=!0);l.handleError(X);return n("onesie")}):n("gvi")}; PUg=function(l){var n=l.j();if(n.J("html5_disable_onesie_when_no_subtlecrypto")&&!EE()||n.J("html5_disable_onesie")||!n.J("html5_onesie")||!n.J("html5_onesie_inline")&&l.getVisibilityState()===5||n.Wm!=="yt")return!1;var O=n.uc;if(!O||!O.S)return l.handleError(new Ml("onesie.unavailable.hotconfig",{key:"0"})),!1;if(O.S.B<(0,g.Q_)()&&(l.Sp("okexp","1"),(O=l.jd())&&n.J("html5_prefer_trusted_host_on_key_expiration"))){O.W=!0;var L;(n=(L=O.S.get(0))==null?void 0:Ne(L.location))&&!x0(n)&&O.S.delete(0)}if(Wra)return l.Sp("ost3", "1"),!1;L={};return Object.keys(L).length>0?(L.onesie="0",l.handleError(new Ml("html5.missingapi",L)),!1):!0}; Nra=function(l){var n=dj();$A(n,l);return g.Fs(n,wQ9())}; Tri=function(l,n){var O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv,Fa,l9,S;return g.Y(function(v){if(v.S==1)return n.fetchType="onesie",O=WUe(n,l.getPlayerSize(),l.getVisibilityState()),L=new K3(l,O),g.Q(v,L.fetch(),2);X=v.W;F={player_response:X};n.loading=!1;x=l.AC.RB;if(L.z1){Z=g.P(L.z1.entries());for(J=Z.next();!J.done;J=Z.next())w=J.value,H=g.P(w),A=H.next().value,b=H.next().value,r=A,U=b,x.S.set(r,U,180),r===n.videoId&&(W=U.aL(),n.Tt=W);x.qq=L}N=g.P(L.WZ.entries());for(q=N.next();!q.done;q= N.next())y=q.value,e=g.P(y),d=e.next().value,B=e.next().value,R=d,a=B,x.W.set(R,a,180);g.s7(n,F,!0);if(n.loading||Sb(n))return v.return(Promise.resolve());x.S.removeAll();x.W.removeAll();n.Tt=[];Lv={};Fa="onesie.response";l9=0;n.errorCode?(Fa="auth",Lv.ec=n.errorCode,Lv.ed=n.errorDetail,Lv.es=n.y8||"",l9=2):(Lv.successButUnplayable="1",Lv.disposed=""+ +n.JG(),Lv.afmts=""+ +/adaptiveFormats/.test(X),Lv.cpn=n.clientPlaybackNonce);S=new Ml(Fa,Lv,l9);return v.return(Promise.reject(S))})}; uti=function(l,n){var O,L,X,F,x,Z,J,w,H,A,b;return g.Y(function(r){switch(r.S){case 1:O=n.isAd(),L=!O,X=O?1:3,F=0;case 2:if(!(F<X)){r.D2(4);break}if(!(F>0)){r.D2(5);break}return g.Q(r,ko(5E3),6);case 6:x=new g.at("Retrying OnePlatform request",{attempt:F}),g.d2(x);case 5:return g.We(r,7),g.Q(r,DDe(l,n),9);case 9:return r.return();case 7:Z=g.D5(r);J=el(Z);w=J.errorCode;H=l.j();A=H.J("html5_use_network_error_code_enums")?401:"401";L&&w==="manifest.net.badstatus"&&J.details.rc===A&&(L=!1,F===X-1&&(X+= 1));if(F===X-1)return b=qaq(O,J.details),b.details.backend="op",b.details.originec=w,r.return(Promise.reject(b));if(w==="auth"||w==="manifest.net.retryexhausted")return r.return(Promise.reject(J));l.handleError(J);if(QC(J.severity)){r.D2(4);break}case 3:F++;r.D2(2);break;case 4:return r.return(Promise.reject(qaq(O,{backend:"op"})))}})}; DDe=function(l,n){function O(Fa){Fa.readyState===2&&l.Lo("ps_c")} var L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv;return g.Y(function(Fa){switch(Fa.S){case 1:n.fetchType="gp";L=l.j();X=g.g7(L,g.pN(n));if(!X.S){F=X.getValue();Fa.D2(2);break}return g.Q(Fa,X.S,3);case 3:F=Fa.W;case 2:return x=F,Z=Nra(x),J=WUe(n,l.getPlayerSize(),l.getVisibilityState()),w=g.Og(kFi),H=g.pN(n),A=(0,g.Q_)(),b=!1,r="empty",U=0,l.Lo("psns"),W={W8:O},g.Q(Fa,g.Cp(Z,J,w,void 0,W),4);case 4:N=Fa.W;l.Lo("psnr");if(n.JG())return Fa.return();N?"error"in N&&N.error?(b=!0,r="esf:"+N.error.message, U=N.error.code):N.errorMetadata&&(b=!0,r="its",U=N.errorMetadata.status):b=!0;if(b)return q=0,y=((0,g.Q_)()-A).toFixed(),e={},e=L.J("html5_use_network_error_code_enums")?{backend:"op",rc:U,rt:y,reason:r,has_kpt:n.oO?"1":"0",has_mdx_env:n.mdxEnvironment?"1":"0",has_omit_key_flag:g.R3("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:H?"1":"0",has_vvt:n.NQ?"1":"0",is_mdx:n.isMdxPlayback?"1":"0",mdx_ctrl:n.ra||"",token_eq:H===g.pN(n)?"1":"0"}:{backend:"op", rc:""+U,rt:y,reason:r,has_kpt:n.oO?"1":"0",has_mdx_env:n.mdxEnvironment?"1":"0",has_omit_key_flag:g.R3("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:H?"1":"0",has_vvt:n.NQ?"1":"0",is_mdx:n.isMdxPlayback?"1":"0",mdx_ctrl:n.ra||"",token_eq:H===g.pN(n)?"1":"0"},d="manifest.net.connect",U===429?(d="auth",q=2):U>200&&(d="manifest.net.badstatus",U===400&&(q=2)),Fa.return(Promise.reject(new Ml(d,e,q)));n.loading=!1;g.s7(n,{raw_player_response:N},!0); B=N;g.GH(n.j())&&B&&B.trackingParams&&M8(B.trackingParams);if(n.errorCode)return R={ec:n.errorCode,ed:n.errorDetail,es:n.y8||""},Fa.return(Promise.reject(new Ml("auth",R,2)));if(!n.loading&&!Sb(n))return a=n.isAd()?"auth":"manifest.net.retryexhausted",Lv=n.isAd()?2:1,Fa.return(Promise.reject(new Ml(a,{successButUnplayable:"1",hasMedia:g.Nk(n)?"1":"0"},Lv)));g.Tk(Fa)}})}; UDi=function(l,n,O){function L(U){U=el(U);if(QC(U.severity))return Promise.reject(U);l.handleError(U);return!1} function X(){return!0} var F,x,Z,J,w,H,A,b,r;return g.Y(function(U){switch(U.S){case 1:var W=l.j(),N=l.getPlayerSize(),q=l.getVisibilityState();l.isFullscreen();var y=window.location.search;if(n.partnerId===38&&W.playerStyle==="books")y=n.videoId.indexOf(":"),y=g.pr("//play.google.com/books/volumes/"+n.videoId.slice(0,y)+"/content/media",{aid:n.videoId.slice(y+1),sig:n.s2});else if(n.partnerId===30&&W.playerStyle==="docs")y=g.pr("https://docs.google.com/get_video_info",{docid:n.videoId,authuser:n.h81,authkey:n.W2,eurl:W.nf}); else if(n.partnerId===33&&W.playerStyle==="google-live")y=g.pr("//google-liveplayer.appspot.com/get_video_info",{key:n.videoId});else{W.Wm!=="yt"&&g.Ir(Error("getVideoInfoUrl for invalid namespace: "+W.Wm));var e={html5:"1",video_id:n.videoId,cpn:n.clientPlaybackNonce,eurl:W.nf,ps:W.playerStyle,el:Bf(n),hl:W.Fp,list:n.playlistId,agcid:n.o3,aqi:n.adQueryId,sts:20143,lact:MU()};Object.assign(e,W.S);W.forcedExperiments&&(e.forced_experiments=W.forcedExperiments);n.NQ?(e.vvt=n.NQ,n.mdxEnvironment&&(e.mdx_environment= n.mdxEnvironment)):g.pN(n)&&(e.access_token=g.pN(n));n.adFormat&&(e.adformat=n.adFormat);n.slotPosition>=0&&(e.slot_pos=n.slotPosition);n.breakType&&(e.break_type=n.breakType);n.Nj!==null&&(e.ad_id=n.Nj);n.dY!==null&&(e.ad_sys=n.dY);n.Ak!==null&&(e.encoded_ad_playback_context=n.Ak);W.captionsLanguagePreference&&(e.cc_lang_pref=W.captionsLanguagePreference);W.oO&&W.oO!==2&&(e.cc_load_policy=W.oO);var d=g.SU(g.zK(),65);g.a5(W)&&d!=null&&!d&&(e.device_captions_on="1");W.mute&&(e.mute=W.mute);n.annotationsLoadPolicy&& W.annotationsLoadPolicy!==2&&(e.iv_load_policy=n.annotationsLoadPolicy);n.GI&&(e.endscreen_ad_tracking=n.GI);(d=W.z3.get(n.videoId))&&d.C3&&(e.ic_track=d.C3);n.Cf&&(e.itct=n.Cf);S4(n)&&(e.autoplay="1");n.mutedAutoplay&&(e.mutedautoplay=n.mutedAutoplay);n.isAutonav&&(e.autonav="1");n.mW&&(e.noiba="1");n.isMdxPlayback&&(e.mdx="1",e.ytr=n.OX);n.mdxControlMode&&(e.mdx_control_mode=n.mdxControlMode);n.vD&&(e.ytrcc=n.vD);n.g$&&(e.utpsa="1");n.isFling&&(e.is_fling="1");n.isInlinePlaybackNoAd&&(e.mute="1"); n.vnd&&(e.vnd=n.vnd);n.forceAdsUrl&&(d=n.forceAdsUrl.split("|").length===3,e.force_ad_params=d?n.forceAdsUrl:"||"+n.forceAdsUrl);n.Y4&&(e.preload=n.Y4);N.width&&(e.width=N.width);N.height&&(e.height=N.height);(n.q_?0:n.UU)&&(e.splay="1");n.ypcPreview&&(e.ypc_preview="1");iT(n)&&(e.content_v=iT(n));n.Of&&(e.livemonitor=1);W.Q5&&(e.authuser=W.Q5);W.pageId&&(e.pageid=W.pageId);W.G3&&(e.ei=W.G3);W.L&&(e.iframe="1");n.contentCheckOk&&(e.cco="1");n.racyCheckOk&&(e.rco="1");W.T&&n.EH&&(e.live_start_walltime= n.EH);W.T&&n.Wp&&(e.live_manifest_duration=n.Wp);W.T&&n.playerParams&&(e.player_params=n.playerParams);W.T&&n.cycToken&&(e.cyc=n.cycToken);W.T&&n.Ch&&(e.tkn=n.Ch);q!==0&&(e.vis=q);W.enableSafetyMode&&(e.enable_safety_mode="1");n.oO&&(e.kpt=n.oO);n.jI&&(e.kids_age_up_mode=n.jI);n.kidsAppInfo&&(e.kids_app_info=n.kidsAppInfo);n.iO&&(e.upg_content_filter_mode="1");W.widgetReferrer&&(e.widget_referrer=W.widgetReferrer.substring(0,128));n.Wm?(N=n.Wm.latitudeE7!=null&&n.Wm.longitudeE7!=null?n.Wm.latitudeE7+ ","+n.Wm.longitudeE7:",",N+=","+(n.Wm.clientPermissionState||0)+","+(n.Wm.locationRadiusMeters||"")+","+(n.Wm.locationOverrideToken||"")):N=null;N&&(e.uloc=N);n.CT&&(e.internalipoverride=n.CT);W.embedConfig&&(e.embed_config=W.embedConfig);W.R4&&(e.co_rel="1");W.ancestorOrigins.length>0&&(e.ancestor_origins=Array.from(W.ancestorOrigins).join(","));W.homeGroupInfo!==void 0&&(e.home_group_info=W.homeGroupInfo);W.livingRoomAppMode!==void 0&&(e.living_room_app_mode=W.livingRoomAppMode);W.enablePrivacyFilter&& (e.enable_privacy_filter="1");n.isLivingRoomDeeplink&&(e.is_living_room_deeplink="1");n.P0&&n.UE&&(e.clip=n.P0,e.clipt=n.UE);n.pg&&(e.disable_watch_next="1");n.DJ&&(e.forced_by_var="1");for(var B in e)!yH9.has(B)&&e[B]&&String(e[B]).length>512&&(g.d2(Error("GVI param too long: "+B)),e[B]="");B=W.Vf;g.mX(W)&&(B=lN(B.replace(/\b(?:www|web)([.-])/,"tv$1"))||W.Vf);W=g.pr(B+"get_video_info",e);y&&(W=Xs7(W,y));y=W}F=y;Z=(x=n.isAd())?1:3;J=0;case 2:if(!(J<Z)){U.D2(4);break}w=F;if(!(J>0)){U.D2(5);break}return g.Q(U, ko(5E3),6);case 6:H={playerretry:J,playerretrysrc:O},x||(H.recover="embedded"),w=xp(F,H);case 5:return g.Q(U,MLk(n,w).then(X,L),7);case 7:if(A=U.W)return U.return();J++;U.D2(2);break;case 4:b=x?"auth":"manifest.net.retryexhausted";r=x?2:1;if(!x&&Math.random()<1E-4)try{g.d2(new g.at("b/152131571",btoa(F)))}catch(R){}return U.return(Promise.reject(new Ml(b,{backend:"gvi"},r)))}})}; MLk=function(l,n){function O(N){return L(N.xhr)} function L(N){if(!l.JG()){N=N?N.status:-1;var q=0,y=((0,g.Q_)()-H).toFixed();y=X.J("html5_use_network_error_code_enums")?{backend:"gvi",rc:N,rt:y}:{backend:"gvi",rc:""+N,rt:y};var e="manifest.net.connect";N===429?(e="auth",q=2):N>200&&(e="manifest.net.badstatus",N===400&&(q=2));return Promise.reject(new Ml(e,y,q))}} var X,F,x,Z,J,w,H,A,b,r,U,W;return g.Y(function(N){if(N.S==1){l.fetchType="gvi";X=l.j();var q={};l.ow&&(q.ytrext=l.ow);(Z=g.Qj(q)?void 0:q)?(F={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:Z},x=xp(n,{action_display_post:1})):(F={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},x=n);J={};X.sendVisitorIdHeader&&l.visitorData&&(J["X-Goog-Visitor-Id"]=l.visitorData);(w=ta(X.experiments,"debug_sherlog_username"))&&(J["X-Youtube-Sherlog-Username"]=w);Object.keys(J).length> 0&&(F.headers=J);H=(0,g.Q_)();return g.Q(N,xY(e_,x,F).then(void 0,O),2)}A=N.W;if(!A||!A.responseText)return N.return(L(A));l.loading=!1;b=Lh(A.responseText);g.s7(l,b,!0);if(l.errorCode)return r={ec:l.errorCode,ed:l.errorDetail,es:l.y8||""},N.return(Promise.reject(new Ml("auth",r,2)));if(!l.loading&&!Sb(l))return U=l.isAd()?"auth":"manifest.net.retryexhausted",W=l.isAd()?2:1,N.return(Promise.reject(new Ml(U,{successButUnplayable:"1"},W)));g.Tk(N)})}; qaq=function(l,n){return new Ml(l?"auth":"manifest.net.retryexhausted",n,l?2:1)}; HL=function(l,n,O){O=O===void 0?!1:O;var L,X,F,x;g.Y(function(Z){if(Z.S==1){L=l.j();if(O&&(!g.Cw(L)||Bf(n)!=="embedded")||n.pg||Bf(n)!=="adunit"&&(g.yw(L)||cI(L)||g.Bt(L)||g.mX(L)||RS(L)==="WEB_CREATOR"))return Z.return();X=g.g7(L,g.pN(n));return X.S?g.Q(Z,X.S,3):(F=X.getValue(),Z.D2(2))}Z.S!=2&&(F=Z.W);x=F;return Z.return(Qyq(l,n,x))})}; Qyq=function(l,n,O){var L,X,F,x,Z;return g.Y(function(J){if(J.S==1){g.We(J,2);L=Nra(O);var w=n.j();g.zK();var H={context:g.LF(n),videoId:n.videoId,racyCheckOk:n.racyCheckOk,contentCheckOk:n.contentCheckOk,autonavState:"STATE_NONE"};Bf(n)==="adunit"&&(H.isAdPlayback=!0);w.embedConfig&&(H.serializedThirdPartyEmbedConfig=w.embedConfig);w.R4&&(H.showContentOwnerOnly=!0);n.rG&&(H.showShortsOnly=!0);g.SU(0,141)&&(H.autonavState=g.SU(0,140)?"STATE_OFF":"STATE_ON");if(g.a5(w)){var A=g.SU(0,65);A=A!=null? !A:!1;var b=!!g.dU("yt-player-sticky-caption");H.captionsRequested=A&&b}var r;if(w=(r=w.getWebPlayerContextConfig())==null?void 0:r.encryptedHostFlags)H.playbackContext={encryptedHostFlags:w};X=H;F=g.Og(evv);l.Lo("wn_s");return g.Q(J,g.Cp(L,X,F),4)}if(J.S!=2)return x=J.W,l.Lo("wn_r"),!x||"error"in x&&x.error||(Z=x,g.GH(n.j())&&Z.trackingParams&&M8(Z.trackingParams),g.s7(n,{raw_watch_next_response:x},!1)),g.N7(J,0);g.D5(J);g.Tk(J)})}; Yaq=function(l){l.Lo("vir");l.Lo("ps_s");fp("vir",void 0,"video_to_ad");var n=E8k(l);n.then(function(){l.Lo("virc");fp("virc",void 0,"video_to_ad");l.Lo("ps_r");fp("ps_r",void 0,"video_to_ad")},function(){l.Lo("virc"); fp("virc",void 0,"video_to_ad")}); return n}; g.rr=function(l,n,O,L,X,F,x,Z,J,w){J=J===void 0?new g.z8(l):J;w=w===void 0?!0:w;g.hj.call(this);var H=this;this.xo=l;this.playerType=n;this.ze=O;this.OA=L;this.getVisibilityState=F;this.visibility=x;this.AC=Z;this.videoData=J;this.qT=w;this.logger=new g.OW("VideoPlayer");this.S7=null;this.mu=new rA;this.F6=null;this.YO=!0;this.Xi=this.sf=null;this.nX=[];this.zz=new wr;this.LN=this.Am=null;this.Ev=new wr;this.S6=null;this.QG=this.cX=!1;this.Wv=NaN;this.cY=!1;this.playerState=new g.XI;this.dI=[];this.LS= new g.$B;this.Jd=new y4i(this);this.mediaElement=null;this.vJ=new g.vs(this.TKf,15E3,this);this.jO=this.rV=!1;this.AV=NaN;this.D_=!1;this.bZ=0;this.Ej=!1;this.wL=NaN;this.TX=new hH(new Map([["bufferhealth",function(){return Lr5(H.wK)}], ["bandwidth",function(){return H.zv()}], ["networkactivity",function(){return H.xo.schedule.Q5}], ["livelatency",function(){return H.isAtLiveHead()&&H.isPlaying()?jyk(H):NaN}], ["rawlivelatency",function(){return jyk(H)}]])); this.nj=0;this.loop=!1;this.playbackRate=1;this.Zd=0;this.wK=new Cbv(this);this.Kt=!1;this.sI=[];this.uu=this.OZ=0;this.Xw=this.eY=!1;this.bA=this.ly=0;this.Gc=-1;this.UM="";this.al=new g.vs(this.bx,0,this);this.VK=!1;this.s_=this.jz=null;this.aei=[this.LS,this.al,this.vJ,this.TX];this.JW=this.G5=null;this.mI=function(){var A=H.p5();A.provider.xo.UU||A.provider.uF.getVisibilityState()===3||(A.provider.xo.UU=!0);Us0(A);if(A.W){var b=A.W;b.B&&b.S<0&&b.provider.uF.getVisibilityState()!==3&&Xh0(b)}A.qoe&& (A=A.qoe,A.G3&&A.W<0&&A.provider.xo.UU&&IX5(A),A.N&&Ms(A));H.sf&&AH(H);H.xo.aU&&!H.videoData.backgroundable&&H.mediaElement&&!H.zE()&&(H.isBackground()&&H.mediaElement.xr()?(H.Sp("bgmobile",{suspend:1}),H.Ya(!0,!0)):H.isBackground()||bU(H)&&H.Sp("bgmobile",{resume:1}))}; this.DQ={U7:function(A){H.U7(A)}, dIF:function(A){H.S7=A}, tN5:function(){return H.Tk}, UV:function(){return H.Xt}, wJ:function(){return H.Xi}, ZXi:function(){return H.lZ}, Y7Q:function(){return H.kL}, Pyz:function(){}, j:function(){return H.xo}, T$:function(){return H.mediaElement}, UsJ:function(A){H.pE(A)}, OzG:function(){return H.OA}}; this.logger.debug(function(){return"creating, type "+n}); this.lY=new mse(this.xo);this.GM=new c4q(this.xo,this.OA,this);this.RN=new g.pt(function(){return H.getCurrentTime()},function(){return H.getPlaybackRate()},function(){return H.getPlayerState()},function(A,b){A!==g.F4("endcr")||g.K(H.playerState,32)||H.ND(); X(A,b,H.playerType)},function(A,b){g.fy(H.videoData)&&H.Sp(A,b)}); g.c(this,this.RN);g.c(this,this.wK);GF8(this,J);this.videoData.subscribe("dataupdated",this.hOf,this);this.videoData.subscribe("dataloaded",this.LC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Sp,this);this.videoData.subscribe("ctmpstr",this.Gp,this);this.pw();qja(this.mI);this.visibility.subscribe("visibilitystatechange",this.mI);this.lZ=new g.vs(this.It,g.HQ(this.xo.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.kL= new g.vs(this.It,g.HQ(this.xo.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.ZF=new g.sV(this)}; GF8=function(l,n){if(l.playerType===2||l.xo.fX)n.Ol=!0;var O=Iva(n.Wk,n.oi,l.xo.L,l.xo.T);O&&(n.adFormat=O);l.playerType===2&&(n.M3=!0);if(l.isFullscreen()||l.xo.L)O=g.dU("yt-player-autonavstate"),n.autonavState=O||(l.xo.L?2:l.videoData.autonavState);n.endSeconds&&n.endSeconds>n.startSeconds&&Ft(l,n.endSeconds)}; mDa=function(l){uU7(l.Tk);g.h0(l.Tk);for(var n=l.Xt,O=g.P(n.S.values()),L=O.next();!L.done;L=O.next())uU7(L.value);n.S.clear();g.h0(l.Xt)}; I1g=function(l){var n=l.videoData;Yaq(l).then(void 0,function(O){l.videoData!==n||n.JG()||(O=el(O),O.errorCode==="auth"&&l.videoData.errorDetail?l.M_(O.errorCode,2,unescape(l.videoData.errorReason),yC(O.details),l.videoData.errorDetail,l.videoData.y8||void 0):l.handleError(O))})}; VLf=function(l){if(!g.K(l.playerState,128))if(l.videoData.isLoaded(),l.logger.debug("finished loading playback data"),l.nX=g.Ot(l.videoData.Lf),g.Nk(l.videoData)){l.ze.tick("bpd_s");Ua(l).then(function(){l.ze.tick("bpd_c");if(!l.JG()){l.cX&&(l.Vu(xX(xX(l.playerState,512),1)),bU(l));var L=l.videoData;L.endSeconds&&L.endSeconds>L.startSeconds&&Ft(l,L.endSeconds);l.zz.finished=!0;uU(l,"dataloaded");l.Ev.Yb()&&dDk(l);LH9(l.GM,l.LN)}}); l.J("html5_log_media_perf_info")&&l.Sp("loudness",{v:l.videoData.cQ.toFixed(3)},!0);var n,O=(n=l.mediaElement)==null?void 0:n.De();if(O&&"disablePictureInPicture"in O&&l.xo.CZ)try{O.disablePictureInPicture=l.xo.Wp&&!l.videoData.backgroundable}catch(L){g.d2(L)}$D5(l)}else uU(l,"dataloaded")}; Ua=function(l){PL(l);l.LN=null;var n=ds5(l.xo,l.videoData,l.zE());l.Am=n;l.Am.then(function(O){Bra(l,O)},function(O){l.JG()||(O=el(O),l.visibility.isBackground()?(TF(l,"vp_none_avail"),l.Am=null,l.zz.reset()):(l.zz.finished=!0,l.M_(O.errorCode,O.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yC(O.details))))}); return n}; Bra=function(l,n){if(!l.JG()&&!n.videoData.JG()){l.logger.debug("finished building playback data");l.LN=n;l1i(l.wK,l.LN);if(l.videoData.isLivePlayback){var O=cH5(l.AC.RB,l.videoData.videoId)||l.sf&&!isNaN(l.sf.Q5);O=l.J("html5_onesie_live")&&O;Xt(l)||l.videoData.n5>0&&!JZ(l.videoData)||O||l.seekTo(l.w8(),{UC:"videoplayer_playbackData",seekSource:18})}if(l.videoData.N.S){if(l.J("html5_sabr_report_missing_url_as_error")&&ZW0(l.videoData)){l.handleError(new Ml("fmt.missing",{missabrurl:"1"},2));return}l.sf? g.d2(Error("Duplicated Loader")):(O=g.HQ(l.xo.experiments,"html5_onesie_defer_content_loader_ms"))&&l.fT()&&cH5(l.AC.RB,l.videoData.h_)?g.U0(function(){l.JG()||l.sf||iof(l)},O):iof(l)}else!l.videoData.N.S&&KN(l.videoData)&&l.tq(new h4(l.videoData.videoId||"",4)); l.Zv();CCf(n).then(function(){var L={};l.gk(L);l.xo.AA()&&l.J("html5_log_media_perf_info")&&l.Sp("av1Info",L);AH(l)})}}; dDk=function(l){l.JG();l.logger.debug("try finish readying playback");if(l.Ev.finished)l.logger.debug("already finished readying");else if(l.zz.finished)if(g.K(l.playerState,128))l.logger.debug("cannot finish readying because of error");else if(l.nX.length)l.logger.debug(function(){return"cannot finish readying because of pending preroll: "+l.nX}); else if(l.RN.started||YV0(l.RN),l.Pp())l.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{l.sf&&(l.QG=Zd9(l.sf.timing));l.Ev.finished||(l.Ev.finished=!0);var n=l.J("html5_onesie_live")&&l.sf&&!isNaN(l.sf.Q5);!l.videoData.isLivePlayback||l.videoData.n5>0&&!JZ(l.videoData)||n||Xt(l)||(l.logger.debug("seek to head for live"),l.seekTo(Infinity,{UC:"videoplayer_readying",seekSource:18}),l.isBackground()&&(l.jO=!0));Htq(l.p5());l.logger.debug("finished readying playback"); l.publish("playbackready",l);pp("pl_c",l.ze.timerName)||(l.ze.tick("pl_c"),fp("pl_c",void 0,"video_to_ad"));pp("pbr",l.ze.timerName)||(l.ze.tick("pbr"),fp("pbr",void 0,"video_to_ad"))}else l.logger.debug("playback data not loaded")}; Ft=function(l,n){l.F6&&zvi(l);l.F6=new g.X4(n*1E3,0x7ffffffffffff);l.F6.namespace="endcr";l.addCueRange(l.F6)}; zvi=function(l){l.removeCueRange(l.F6);l.F6=null}; Saf=function(l,n,O,L,X){var F=l.p5(X),x=g.fy(l.videoData)?F.getVideoData():l.videoData;x.W=O;var Z=g.WL(l);O=new B_8(x,O,n,Z?Z.itag:"",L);l.xo.experiments.MQ("html5_refactor_sabr_video_format_selection_logging")?(O.videoId=X,l.JW=O):F.ov(O);X=l.GM;X.W=0;X.S=0;l.publish("internalvideoformatchange",x,n==="m")}; g.WL=function(l){var n=Ea(l);return XF(n)||!l.LN?null:g.ak(l.LN.S.videoInfos,function(O){return n.L(O)})}; Ea=function(l){if(l.LN){var n=l.GM;var O=l.LN;l=l.HD();var L=Sjq(n);if(XF(L)){if(L=i4q(n,O).compose(Kz8(n,O)).compose(R07(n,O)).compose(O3f(n,O.videoData)).compose(gN9(n,O.videoData,O)).compose(TW(n,O)).compose(s2i(n,O)),XF(l)||n.J("html5_apply_pbr_cap_for_drm"))L=L.compose(fRi(n,O))}else n.J("html5_perf_cap_override_sticky")&&(L=L.compose(TW(n,O))),n.J("html5_ustreamer_cap_override_sticky")&&(L=L.compose(fRi(n,O)));L=L.compose(s2i(n,O));n=O.videoData.sE.compose(L).compose(O.videoData.Pv).compose(l)}else n= iQ;return n}; F77=function(l){var n=l.GM;l=l.videoData;var O=O3f(n,l);n.J("html5_disable_client_autonav_cap_for_onesie")||O.compose(gN9(n,l));return O}; AH=function(l){if(l.videoData.N&&l.videoData.N.S){var n=Ea(l);l.sf&&lfi(l.sf,n)}}; pL5=function(l){var n;return!!(l.J("html5_native_audio_track_switching")&&g.Wo&&((n=l.videoData.W)==null?0:lt(n)))}; sy9=function(l){if(!pL5(l))return!1;var n;l=(n=l.mediaElement)==null?void 0:n.audioTracks();return!!(l&&l.length>1)}; Krk=function(l){var n=f10(l);if(n)return l.videoData.getAvailableAudioTracks().find(function(O){return O.O_.getName()===n})}; f10=function(l){var n;if(l=(n=l.mediaElement)==null?void 0:n.audioTracks())for(n=0;n<l.length;++n){var O=l[n];if(O.enabled)return O.label}}; a1q=function(l){var n,O=l.videoData.getAvailableAudioTracks(),L=l.videoData.D0;L&&(n=O.find(function(F){return F.getLanguageInfo().id===L})); if(l.xo.experiments.MQ("enable_audio_description_setting")&&g.SU(g.zK(),198)){O=g.P(O);for(var X=O.next();!X.done;X=O.next())if(X=X.value,X.B){n=X;break}}n||(l=l.getAudioTrack(),n=l.O_.isDefault?void 0:l);return n}; iof=function(l){for(var n=l.videoData.S,O=g.P(Object.entries({cpn:l.videoData.clientPlaybackNonce,c:l.xo.S.c,cver:l.xo.S.cver})),L=O.next();!L.done;L=O.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;for(var F=g.P(Object.values(n.S)),x=F.next();!x.done;x=F.next())B05(x.value.Vp,L,X);F=void 0;(F=n.G)==null||B05(F,L,X)}O=l.xo;L=l.videoData;n=new g.iG5(O);X=cav({hasSubfragmentedFmp4:L.hasSubfragmentedFmp4,DA:L.DA});n.G=X;n.Q5=L.maxReadAheadMediaTimeMs/1E3||n.Q5;X=O.schedule;X.N.sP()===X.policy.N? n.n5=10:n.n5=L.minReadAheadMediaTimeMs/1E3||n.n5;n.RP=L.readAheadGrowthRateMs/1E3||n.RP;n.jI=!tY();g.yw(O)||!tY()?(X=O.experiments,n.wq=8388608,n.uv=524288,n.LT=5,n.Fi=1048576,n.Xk=1.5,n.Sv=4587520,Kh()&&(n.Sv=786432),n.Y*=1.1,n.Wm*=1.1,n.oA=!0,n.Ip=X.MQ("persist_disable_player_preload_on_tv")||X.MQ("persist_disable_player_preload_on_tv_for_living_room")||!1):O.W&&(n.Y*=1.3,n.Wm*=1.3);g.G2&&g.S_("crkey")&&(X=O.S.cmodel==="CHROMECAST/ANCHOVY",n.wq=20971520,n.uv=1572864,X&&(n.Sv=812500,n.OU=1E3,n.eS= 5,n.Fi=2097152));g.Bz&&(n.oA=!0);O.supportsGaplessAudio()||(n.fX=!1);lO&&(n.j3=!0);n.IA=O.J("html5_peak_shave");L.fetchType==="onesie"&&O.J("html5_disable_peak_shave_for_onesie")&&(n.IA=!1);var Z;X=(Z=L.S)==null?void 0:AF(Z);if(JZ(L)){n.Oc=!0;n.o_||(n.xa=!0);n.hC=!0;n.s8=!0;n.Cm=!0;if(L.latencyClass==="ULTRALOW"||L.latencyClass==="LOW"&&!O.J("html5_disable_low_pipeline"))n.Fj=2,n.rp=4;n.gb=L.defraggedFromSubfragments;if(L.dB||O.J("html5_publish_all_cuepoints"))n.Al=!0;g.kZ(L)&&(n.K5=!1);n.Up=g.qp(O)}L.isAd()&& (n.S0=0,n.YW=0);n.Z$=O.J("html5_enable_subsegment_readahead_v3")||O.J("html5_ultra_low_latency_subsegment_readahead")&&L.latencyClass==="ULTRALOW";n.N=O.AA();Oh()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(O.S.cmodel)&&!O.J("html5_disable_move_pssh_to_moov")&&X&&(n.oA=!1);F=0;O.J("html5_live_use_alternate_bandwidth_window_sizes")&&(F=O.schedule.policy.S,L.isLivePlayback&&(F=g.HQ(O.experiments,L.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":L.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window": "html5_live_normal_latency_bandwidth_window")||F));Z=O.schedule;Z.W.L=JZ(L)?.5:0;if(!Z.policy.W&&F&&(Z=Z.N,F=Math.round(F*Z.resolution),F!==Z.S)){x=Array(F);var J=Math.min(F,Z.N?Z.S:Z.W),w=Z.W-J;w<0&&(w+=Z.S);for(var H=0;H<J;++H)x[H]=Z.values[(w+H)%Z.S];for(;H<F;++H)x[H]=Infinity;Z.S=F;Z.values=x;Z.W=J%F;Z.N=J===F;Z.X6=!0;Z.B=$If(Z)}L.isLivePlayback&&(n.oh=g.HQ(O.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,n.Pm=!1);L.Vb()&&(n.Pm=!1);wi(L)&&(n.Z$=!0,L.latencyClass=== "LOW"?n.Y4=g.HQ(O.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):L.latencyClass==="ULTRALOW"&&(n.Y4=g.HQ(O.experiments,"html5_jumbo_ull_subsegment_readahead_target")),n.EE=!0);L.tA()&&(n.CT=1.3);n.j3=n.j3||L.xg;n.Fp=(n.Fp||L.Fp)&&O.T;n.R4=O.J("html5_sunset_aac_high_codec_family");n.W=g.fy(L);n.JA=L.G||n.W&&!O.J("html5_enable_ssap_seteos");O.AA()&&(n.Yo=!0);L.G&&!X&&(n.Ow=!0);L.G&&L.isAd()&&(n.Y*=1.6,n.Wm*=1.6);KN(L)&&(n.L=L.videoId,n.eF=!0,n.iO=100,L.rp&&L.rp.length>0&&(n.D9=L.rp)); n.G6=L.hZ;n.zx=em(O,{},L.N||void 0,LN(L));n.Of=gi(L)&&g.Bt(O);XZ(L)&&(O.J("html5_sabr_allow_video_keyframe_without_audio")&&(n.lf=!0),O.J("html5_sabr_report_partial_segment_estimated_duration")&&(n.Kg=!0),n.S=!0,n.mS=O.J("html5_sabr_enable_utc_seek_requests"),n.R6=O.J("html5_sabr_enable_live_clock_offset"),n.CX=O.J("html5_disable_client_resume_policy_for_sabr"),n.TW=O.J("html5_trigger_loader_when_idle_network"),n.TI=O.J("html5_sabr_parse_live_metadata_playback_boundaries"),n.ai=O.J("html5_enable_platform_backpressure_with_sabr"), n.pI=O.J("html5_consume_onesie_next_request_policy_for_sabr"),n.OE=O.J("html5_sabr_report_next_ad_break_time"),n.yS=O.J("html5_log_high_res_buffer_timeline")&&O.AA(),n.GI=O.J("html5_remove_stuck_slices_beyond_max_buffer_limits"),n.oi=O.J("html5_gapless_sabr_btl_last_slice")&&O9(L),n.Zy=O.J("html5_reset_last_appended_slice_on_seek")&&O9(L),JZ(L)?(n.Ii=!0,n.wr=O.J("html5_disable_variability_tracker_for_live"),n.G3=O.J("html5_sabr_use_accurate_slice_info_params"),O.J("html5_simplified_backup_timeout_sabr_live")&& (n.dA=!0,n.OU=n.aP)):n.Xg=O.J("html5_probe_request_on_sabr_request_progress"),n.P0=O.J("html5_serve_start_seconds_seek_for_post_live_sabr"),n.At=O.J("html5_flush_index_on_updated_timestamp_offset"),n.Hm=O.J("html5_enable_sabr_request_pipelining")&&!g.fy(L),n.uc=O.J("html5_ignore_partial_segment_from_live_readahead"),n.Ri=O.J("html5_use_non_active_broadcast_for_post_live"),n.Cf=O.J("html5_use_centralized_player_time"),n.AP=O.J("html5_consume_onesie_sabr_seek"),n.NQ=O.J("html5_enable_sabr_seek_loader_refactor"), n.v0=O.J("html5_update_segment_start_time_from_media_header"),L.enableServerStitchedDai&&(n.B=!0,n.pV=O.J("html5_reset_server_stitch_state_for_non_sabr_seek"),n.pg=O.J("html5_remove_ssdai_append_pause"),n.nf=O.J("html5_consume_ssdai_info_with_streaming"),n.Wp=O.J("html5_process_all_cuepoints")));n.V=n.S&&O.J("html5_sabr_live");n.oO=g.xda(L);PW(O.B,TP.BITRATE)&&(n.Sv=NaN);if(Z=g.HQ(O.experiments,"html5_request_size_max_kb"))n.Fi=Z*1024;O.B.B?n.UU="; "+TP.EXPERIMENTAL.name+"=allowed":O.J("html5_enable_cobalt_tunnel_mode")&& (n.UU="; tunnelmode=true");Z=L.serverPlaybackStartConfig;(Z==null?0:Z.enable)&&(Z==null?0:Z.playbackStartPolicy)&&(n.cQ=!0,SS(n,Z.playbackStartPolicy,2));Z=a1q(l);l.mu.removeAll();a:{O=l.AC.RB;if(L=l.videoData.videoId)if(X=O.S.get(L)){O.S.remove(L);O=X;break a}O=void 0}l.sf=new g.Lt(l,l.xo.schedule,n,l.videoData.S,l.videoData.N,Ea(l),Z,l.videoData.enableServerStitchedDai,O,l.videoData.Fi);n=l.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&l.videoData.isLivePlayback&&l.fT()?!0:l.cX&& g.yw(l.xo)&&l.videoData.isLivePlayback;l.sf.initialize(l.getCurrentTime(),Ea(l),n);l.videoData.probeUrl&&(l.sf.G3=l.videoData.probeUrl);if(l.nX.length||l.cX)l.videoData.cotn||ND(l,!1);Oo8(l.wK,l.sf);l.jz&&(EZ5(l.sf,new g.xb(l.jz)),l.Sp("sdai",{sdl:1}));l.s_&&(l.sf.R$(l.s_),l.wK.T=!1);g.CN(l.videoData)&&(l=l.sf,l.policy.S5=l.policy.Lh)}; PL=function(l){l.sf&&(l.sf.dispose(),l.sf=null,Oo8(l.wK,null));l.xW()?Rve(l):l.iy()}; Rve=function(l){if(l.Xi)if(l.logger.debug("release media source"),l.HK(),l.Xi.B)try{l.xo.AA()&&l.Sp("rms",{l:"vprms",sr:l.xW(),rs:C5(l.Xi)});l.Xi.clear();var n;(n=l.mediaElement)!=null&&(n.W=l.Xi);l.Xi=null}catch(O){n=new g.at("Error while clearing Media Source in VideoPlayer: "+O.name+", "+O.message),n=el(n),l.handleError(n),l.iy()}else l.iy()}; CUi=function(l,n){n=n===void 0?!1:n;if(l.Xi)return l.Xi.N;l.logger.debug("update media source");a:{n=n===void 0?!1:n;try{g.s0()&&l.videoData.pR()&&q28(l.mediaElement);var O=l.mediaElement.wJ(l.An(),l.iM())}catch(X){if(j2e(l.Jd,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",X);l.M_("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}l.F9(O,!1,!1,n)}var L;return((L=l.wJ())==null?void 0:L.N)||null}; tL9=function(l,n){n=n===void 0?!1:n;if(l.sf){l.J("html5_keep_ssdai_avsync_in_loader_track")&&yZa(l.sf);var O=l.getCurrentTime()-l.ez();l.sf.seek(O,{Wf:n}).O9(function(){})}else iof(l)}; lqv=function(l,n,O,L){O=O===void 0?!1:O;L=L===void 0?!1:L;if(l.Xi&&(!n||l.Xi===n)){l.logger.debug("media source opened");var X=l.getDuration();!X&&JZ(l.videoData)&&(X=25200);if(l.Xi.isView){var F=X;l.logger.debug(function(){return"Set media source duration to "+F+", video duration "+X}); F>l.Xi.getDuration()&&v8e(l,F)}else v8e(l,X);CQ8(l.sf,l.Xi,O,L);l.publish("mediasourceattached")}}; v8e=function(l,n){if(l.Xi){l.Xi.O7(n);var O;(O=l.sf)!=null&&O.policy.Cf&&(O.V=n)}}; ONq=function(l,n){Saf(l,n.reason,n.S.info,n.token,n.videoId)}; nV9=function(l,n){l.xo.experiments.MQ("enable_adb_handling_in_sabr")&&(l.pauseVideo(!0),l.Ui(),n&&l.M_("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; uU=function(l,n){l.publish("internalvideodatachange",n===void 0?"dataupdated":n,l,l.videoData)}; ORq=function(l){for(var n=g.P("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),O=n.next();!O.done;O=n.next())l.LS.U(l.mediaElement,O.value,l.pE,l);l.xo.mN&&l.mediaElement.gp()&&(l.LS.U(l.mediaElement,"webkitplaybacktargetavailabilitychanged",l.Uvo,l),l.LS.U(l.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",l.AAJ,l))}; Lli=function(l){g.Tj(l.Wv);gVa(l)||(l.Wv=g.uk(function(){return gVa(l)},100))}; gVa=function(l){var n=l.mediaElement;n&&l.rV&&!l.videoData.Q5&&!pp("vfp",l.ze.timerName)&&n.R_()>=2&&!n.isEnded()&&wv(n.NJ())>0&&l.ze.tick("vfp");return(n=l.mediaElement)&&!l.videoData.Q5&&n.getDuration()>0&&(n.isPaused()&&n.R_()>=2&&wv(n.NJ())>0&&(pp("pbp",l.ze.timerName)||l.ze.tick("pbp"),!l.videoData.Nm||l.cY||n.isSeeking()||(l.cY=!0,l.publish("onPlaybackPauseAtStart"))),n=n.getCurrentTime(),Kt(l.lY,n))?(l.DX(),!0):!1}; oVi=function(l){l.p5().Mn();if(Zf(l.videoData)&&Date.now()>l.Zd+6283){if(!(!l.isAtLiveHead()||l.videoData.S&&uM(l.videoData.S))){var n=l.p5();if(n.qoe){n=n.qoe;var O=n.provider.uF.vt(),L=g.EV(n.provider);yy9(n,L,O);O=O.N;isNaN(O)||g.kb(n,L,"e2el",[O.toFixed(3)])}}l.J("html5_alc_live_log_rawlat")?(n=l.videoData,n=g.qp(n.j())?!0:g.fw(n.j())?n.oh==="6":!1):n=g.qp(l.xo);n&&l.Sp("rawlat",{l:JH(l.TX,"rawlivelatency").toFixed(3)});l.Zd=Date.now()}l.videoData.W&<(l.videoData.W)&&(n=l.wF())&&n.videoHeight!== l.uu&&(l.uu=n.videoHeight,Saf(l,"a",X8i(l,l.videoData.Yo)))}; X8i=function(l,n){if(n.S.video.quality==="auto"&<(n.getInfo())&&l.videoData.d8)for(var O=g.P(l.videoData.d8),L=O.next();!L.done;L=O.next())if(L=L.value,L.getHeight()===l.uu&&L.S.video.quality!=="auto")return L.getInfo();return n.getInfo()}; jyk=function(l){if(!Zf(l.videoData))return NaN;var n=0;l.sf&&l.videoData.S&&(n=JZ(l.videoData)?l.sf.SP.sP()||0:l.videoData.S.Lf);return(0,g.Q_)()/1E3-l.Ko()-n}; xqg=function(l){l.mediaElement&&l.mediaElement.zE()&&(l.wL=(0,g.Q_)());l.xo.aP?g.U0(function(){Fl9(l)},0):Fl9(l)}; Fl9=function(l){var n;if((n=l.Xi)==null||!n.pL()){if(l.mediaElement)try{l.S6=l.mediaElement.playVideo()}catch(L){TF(l,"err."+L)}if(l.S6){var O=l.S6;O.then(void 0,function(L){l.logger.debug(function(){return"playMediaElement failed: "+L}); if(!g.K(l.playerState,4)&&!g.K(l.playerState,256)&&l.S6===O)if(L&&L.name==="AbortError"&&L.message&&L.message.includes("load"))l.logger.debug(function(){return"ignore play media element failure: "+L.message}); else{var X="promise";L&&L.name&&(X+=";m."+L.name);TF(l,X);l.Kt=!0;l.videoData.q_=!0}})}}}; TF=function(l,n){g.K(l.playerState,128)||(l.Vu(Zh(l.playerState,1028,9)),l.Sp("dompaused",{r:n}),l.publish("onAutoplayBlocked"))}; bU=function(l,n){n=n===void 0?!1:n;if(!l.mediaElement||!l.videoData.N)return!1;var O=n;O=O===void 0?!1:O;var L=null;var X;if((X=l.videoData.N)==null?0:X.S){L=CUi(l,O);var F;(F=l.sf)==null||F.resume()}else PL(l),l.videoData.Yo&&(L=l.videoData.Yo.b2());X=l.mediaElement.xr();O=!1;X&&X.XT(L)||(h45(l,L),O=!0);g.K(l.playerState,2)||(L=l.wK,n=n===void 0?!1:n,L.B||!(L.L>0)||L.mediaElement&&L.mediaElement.getCurrentTime()>0||(n={UC:"seektimeline_resumeTime",Wf:n},L.videoData.Q5||(n.seekSource=15),L.seekTo(L.L, n)));a:{n=O;if(XZ(l.videoData)){if(!l.videoData.Vb())break a}else if(!g.Pf(l.videoData))break a;if(l.mediaElement)if((L=l.videoData.B)&&l.mediaElement.gp()){X=l.mediaElement.De();if(l.S7)if(X!==l.S7.element)D1(l);else if(n&&L.flavor==="fairplay"&&!fh())D1(l);else break a;if(l.J("html5_report_error_for_unsupported_tvos_widevine")&&fh()&&L.flavor==="widevine")l.M_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{l.S7=new JAi(X,l.videoData,l.xo);l.S7.subscribe("licenseerror", l.TH,l);l.S7.subscribe("qualitychange",l.qCq,l);l.S7.subscribe("heartbeatparams",l.HB,l);l.S7.subscribe("keystatuseschange",l.U7,l);l.S7.subscribe("ctmp",l.Sp,l);l.J("html5_widevine_use_fake_pssh")&&!l.videoData.isLivePlayback&&L.flavor==="widevine"&&l.S7.VC(new xS(ZR9,"cenc",!1));n=g.P(l.mu.keys);for(L=n.next();!L.done;L=n.next())L=l.mu.get(L.value),l.S7.VC(L);l.J("html5_eme_loader_sync")||l.mu.removeAll()}}else l.M_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return O}; h45=function(l,n){l.ze.tick("vta");fp("vta",void 0,"video_to_ad");l.getCurrentTime()>0&&o89(l.wK,l.getCurrentTime());l.mediaElement.activate(n);l.Xi&&L1(0,4);!l.videoData.Q5&&l.playerState.isOrWillBePlaying()&&l.vJ.start();if(pL5(l)){var O;if(n=(O=l.mediaElement)==null?void 0:O.audioTracks())n.onchange=function(){l.publish("internalaudioformatchange",l.videoData,!0)}}}; D1=function(l){l.S7&&(l.S7.dispose(),l.S7=null)}; Jxk=function(l){var n=n===void 0?!1:n;l.logger.debug("reattachVideoSource");l.mediaElement&&(l.Xi?(D1(l),l.iy(),CUi(l,n)):(l.videoData.Yo&&l.videoData.Yo.Kl(),l.mediaElement.stopVideo()),l.playVideo())}; w88=function(l,n){l.xo.J("html5_log_rebuffer_reason")&&(n={r:n,lact:MU()},l.mediaElement&&(n.bh=Oz(l.mediaElement)),l.Sp("bufreason",n))}; HR9=function(l,n){if(l.xo.AA()&&l.mediaElement){var O=l.mediaElement.sC();O.omt=(l.mediaElement.getCurrentTime()+l.ez()).toFixed(3);O.ps=l.playerState.state.toString(16);O.rt=(g.EV(l.p5().provider)*1E3).toFixed();O.e=n;l.sI[l.OZ++%5]=O}try{if(n==="timeupdate"||n==="progress")return}catch(L){}l.logger.debug(function(){return"video element event "+n})}; Axq=function(l){if(l.xo.AA()){l.sI.sort(function(L,X){return+L.rt-+X.rt}); for(var n=g.P(l.sI),O=n.next();!O.done;O=n.next())O=O.value,l.Sp("vpe",Object.assign({t:O.rt},O));l.sI=[];l.OZ=0}}; bRi=function(l){if(g.S_("cobalt")&&g.S_("nintendo switch")){var n=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;l.Sp("nxdock",{d:n})}}; ND=function(l,n){var O;(O=l.sf)==null||oD(O,n)}; MSf=function(l,n){return g.fy(l.videoData)&&l.s_?l.s_.handleError(n,void 0):!1}; $D5=function(l){hZ(l.videoData,"html5_set_debugging_opt_in")&&(l=g.zK(),g.SU(0,183)||(sh(183,!0),l.save()))}; rxi=function(l){return g.fy(l.videoData)&&l.s_?ty(l.s_):l.videoData.w8()}; QYf=function(l,n){l.AC.o0()||(l.Sp("sgap",{f:n}),l.AC.clearQueue(!1,n==="pe"))}; Xt=function(l){return l.J("html5_disable_video_player_initiated_seeks")&&XZ(l.videoData)}; Uqg=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);oc(this.api,"isLifaAdPlaying",function(){return n.api.isLifaAdPlaying()}); this.events.U(l,"serverstitchedvideochange",function(){var O;(O=n.api.getVideoData())!=null&&O.iK()&&(n.api.isLifaAdPlaying()?(n.playbackRate=n.api.getPlaybackRate(),n.api.setPlaybackRate(1)):n.api.setPlaybackRate(n.playbackRate))}); this.playbackRate=1}; uR9=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);oc(this.api,"seekToChapterWithAnimation",function(O){n.seekToChapterWithAnimation(O)}); oc(this.api,"seekToTimeWithAnimation",function(O,L){n.seekToTimeWithAnimation(O,L)}); oc(this.api,"renderChapterSeekingAnimation",function(O,L,X){n.api.renderChapterSeekingAnimation(O,L,X)}); oc(this.api,"setMacroMarkers",function(O){n.setMacroMarkers(l,O)}); oc(this.api,"changeMarkerVisibility",function(O,L,X){n.changeMarkerVisibility(O,L,X)}); oc(this.api,"isSameMarkerTypeVisible",function(O){return n.isSameMarkerTypeVisible(O)})}; P0v=function(l,n,O){var L=l.api.getCurrentTime()*1E3<n?1:-1;l.api.renderChapterSeekingAnimation(L,O);l.api.seekTo(n/1E3,void 0,void 0,void 0,3)}; Ttg=function(l,n){var O,L;return(O=J9(l,"macroMarkersListEntity",n))==null?void 0:(L=O.markersList)==null?void 0:L.markerType}; Wlv=function(l,n){var O=g.lT.getState().entities;l=Ttg(O,l);n=g.P(n.uv);for(var L=n.next();!L.done;L=n.next())if(l===Ttg(O,L.value))return!0;return!1}; qD=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"videodatachange",function(){n.updateMetadata()}); this.events.U(l,"presentingplayerstatechange",function(){EVk(n)})}; k8=function(l,n){try{navigator.mediaSession.setActionHandler(l,n)}catch(O){}}; Ntf=function(l){k8("play",function(){l.api.playVideo()}); k8("pause",function(){l.api.pauseVideo()}); k8("seekbackward",function(){l.api.seekBy(-5*l.api.getPlaybackRate())}); k8("seekforward",function(){l.api.seekBy(5*l.api.getPlaybackRate())}); k8("seekto",function(n){((n=n.seekTime)||l.api.J("web_player_misc_bugfix_a")&&n!=null)&&l.api.seekTo(n)})}; Dq8=function(l){var n,O,L,X;return(n=l.api.getVideoData().getWatchNextResponse())==null?void 0:(O=n.playerOverlays)==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:(X=L.browserMediaSession)==null?void 0:X.browserMediaSessionRenderer}; q88=function(l){var n=[];if(!l||!l.thumbnails)return n;l=g.P(l.thumbnails);for(var O=l.next();!O.done;O=l.next())O=O.value,O.url&&(!O.width||O.width<=0||!O.height||O.height<=0||g.OT(O.url)&&n.push({src:O.url||"",sizes:O.width+"x"+O.height,type:"image/jpeg"}));return n}; EVk=function(l){l=l.api.getPlayerStateObject();l=l.isCued()||l.isError()?"none":l.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=l}; k4i=function(l){var n=l.api.getProgressState().seekableEnd;n&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:n,playbackRate:l.api.getPlaybackRate(),position:l.api.getCurrentTime()})}; yF=function(l){KF.call(this,l);var n=this;this.W=new Map;this.N=this.S=void 0;this.compositeVideoState=null;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"modulecreated",function(O){var L;a:{var X,F,x,Z=(X=n.api.getVideoData())==null?void 0:(F=X.getPlayerResponse())==null?void 0:(x=F.overlay)==null?void 0:x.playerControlsOverlayRenderer;if(Z&&(X=g.z(Z.compositeVideoOverlay,yxa),X==null?0:(L=X.sources)==null?0:L.length))for(L=g.P(X==null?void 0:X.sources),X=L.next();!X.done;X=L.next())if(X= X.value,X.isActive){L=X;break a}L=void 0}O==="captions"&&(L==null?void 0:L.topLeftCornerX)!==void 0&&(L==null?void 0:L.topLeftCornerY)!==void 0&&(L==null?void 0:L.width)!==void 0&&(L==null?void 0:L.height)!==void 0&&n.api.Ea({top:L.topLeftCornerY,right:1-L.topLeftCornerX-L.width,bottom:1-L.topLeftCornerY-L.height,left:L.topLeftCornerX})}); this.events.U(l,"videodatachange",function(O){var L=n.api.getVideoData();n.S=void 0;n.W.clear();n.api.cS("compositeembargo",1);var X=L==null?void 0:L.hg.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(X==null?0:X.length)?MZ5(n,X.filter(function(F){return Q60(n,F)})):(L==null?0:L.cueRanges)&&MZ5(n,L.cueRanges.filter(function(F){return Q60(n,F)})); O==="dataupdated"&&(L==null?void 0:L.compositeLiveStatusToken)!==n.N&&(n.N=L==null?void 0:L.compositeLiveStatusToken,n.api.wk())}); this.events.U(l,g.F4("compositeembargo"),function(O){var L;if(((L=n.S)==null?void 0:L.id)!==O.id&&(n.api.Z0(!0),n.W.has(O.id))){var X=n.W.get(O.id);L=n.api.getVideoData();X=g.P(X);for(var F=X.next();!F.done;F=X.next()){var x=void 0;F=(x=F.value.compositeEmbargo)==null?void 0:x.embargoStatusToken;L.Qh!==F&&(L.Qh=F,n.api.wk());e4i(n,O)}}}); this.events.U(l,g.xx("compositeembargo"),function(O){var L;if(((L=n.S)==null?void 0:L.id)===O.id&&(n.api.Z0(!1),n.W.has(O.id))){if(O=n.api.getVideoData())O.Qh=void 0;n.api.wk();e4i(n)}}); this.events.U(l,"heartbeatRequest",function(O){n.compositeVideoState!==null&&(O.playbackState||(O.playbackState={}),O.playbackState.compositeVideoState=n.compositeVideoState)}); this.events.U(l,"internalaudioformatchange",function(O){if(n.api.J("html5_sabr_enable_server_xtag_selection")){var L=n.api.getVideoData(void 0,!0);if(L&&fN(L)){var X=n.api.getAvailableAudioTracks();X=g.P(X);for(var F=X.next();!F.done;F=X.next())if(F.value.getLanguageInfo().getId()===O){L.D0=O;break}}}}); this.events.U(l,"onPlaybackAudioChange",function(){n.api.wk()}); oc(l,"setCompositeParam",function(O){n.compositeVideoState=O})}; e4i=function(l,n){var O;((O=l.S)==null?void 0:O.id)!==(n==null?void 0:n.id)&&(l.S&&(l.W.delete(l.S.id),l.api.lV([l.S],1)),l.S=n)}; MZ5=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){var L=O.value,X=void 0;O=Number((X=L.playbackRelativePosition)==null?void 0:X.utcTimeMs)/1E3;var F=void 0;X=O+Number((F=L.duration)==null?void 0:F.seconds);F="composite_embargo_"+O;L.onEnter&&(L=L.onEnter.filter(l.L),L.length&&(l.W.set(F,L),l.api.addUtcCueRange(F,O,X,"compositeembargo",!1)))}}; Q60=function(l,n){var O;return(O=n.onEnter)==null?void 0:O.some(l.L)}; Y8i=function(l){KF.call(this,l);oc(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));oc(this.api,"updateDownloadState",this.updateDownloadState.bind(this));oc(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));oc(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));oc(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));oc(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));oc(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; MD=function(l){KF.call(this,l);var n=this;oc(l,"getAvailableQualityData",function(){return n.getAvailableQualityData()}); oc(l,"getAvailableQualityDataAndMessaging",function(){return n.getAvailableQualityDataAndMessaging()})}; j69=function(l,n,O){var L=[],X=n?156595:151874;l=g.P(l);for(var F=l.next();!F.done;F=l.next()){var x=F.value;F=x.video;x={formatId:x.id,qualityLabel:F.qualityLabel,quality:F.quality,isPlayable:n};if(F=O.get(F.qualityLabel))x.paygatedQualityDetails={paygatedIndicatorText:F.paygatedIndicatorText,endpoint:F.endpoint,veType:X,trackingParams:F.trackingParams};L.push(x)}return L}; G40=function(l){for(var n=0,O=0;O<l.length;O++)if(l[O].paygatedQualityDetails){var L=l[O];l.splice(O,1);l.splice(n,0,L);n++}}; mqi=function(l){var n=new Set,O=new Map,L={};l=g.P(l);for(var X=l.next();!X.done;X=l.next()){X=X.value;var F=X.quality,x=X.isPlayable,Z=X.qualityLabel;Z&&F&&(x&&O.has(F)&&O.get(F)!==Z?n.add(F):x&&O.set(F,Z),L[Z]||(L[Z]=X))}O=[];L=g.P(Object.values(L));for(l=L.next();!l.done;l=L.next())X=l.value,(l=X.quality)&&!n.has(l)&&(X.formatId=void 0),O.push(X);return O}; QF=function(l){KF.call(this,l);var n=this;this.N=1;this.ze=null;this.DQ={U1Q:function(){return n.N}}; this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"d6de4videobindingchange",function(O){n.DO(O)}); this.events.U(l,"csiinitialized",function(){Iq5(n)})}; Iq5=function(l){if(dqv()){l.ze=l.api.GE();l.S=new v6;l.N=2;var n=g.HQ(l.api.j().experiments,"html5_d6de4_defer_timeout_ms");l.ze.iQ("pt_pish");n?g.U0(function(){$qq(l)},n):l.api.J("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){$qq(l)}):$qq(l)}}; $qq=function(l){if(dqv()){l.ze=l.api.GE();var n=g.HQ(l.api.j().experiments,"html5_d6de4_cloud_project_number");l.ze.iQ("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:n}).then(function(L){l.W=L;var X;(X=l.S)==null||X.resolve();l.ze.iQ("pt_pif")}).catch(function(L){eL(L,"player_start"); l.ze.iQ("pt_pie");var X;(X=l.S)==null||X.reject(L)})}catch(L){eL(L,"player_start_catch"); l.api.Sp("pfes",{});var O;(O=l.S)==null||O.reject(L)}}}; VZg=function(l,n){if(l.W&&!l.J("html5_disable_d6de4_mint_debug")){var O=n.videoId;l.N=3;l.ze.iQ("pt_ms");try{l.W.requestToken(O).then(function(L){l.ze.iQ("pt_mf");if(L=F$(L))n.HU={wl1:L}}).catch(function(L){l.ze.iQ("pt_me"); eL(L,"player_generate");l.handleError(L,n)})}catch(L){eL(L,"player_generate_catch"),l.handleError(L,n)}}}; Bt7=function(l,n){l.api.J("html5_enable_d6de4_cold_start_and_error")&&(n.HU={coldStartInfo:{clientState:l.N}})}; eL=function(l,n){l.message&&g.d2(Error(n+"_"+l.message))}; dqv=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; Y8=function(l){g.f.call(this,{D:"button",gq:["ytp-pip-button","ytp-button"],Z:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},K:[MHe()]});var n=this;this.api=l;this.listen("click",this.onClick);var O=this.api.F$(),L=O.subscribe("visibilitystatechange",function(){n.y5(O.PQ())}); this.addOnDisposeCallback(function(){O.uJ(L)}); EY(l,this.element,this);this.y5(O.PQ())}; jL=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"standardControlsInitialized",function(){n.createButton()}); g.a5(this.api.j())&&(this.J("web_watch_pip")||this.J("web_shorts_pip"))&&oc(this.api,"setDocumentPictureInPicture",function(O){n.setDocumentPictureInPicture(O)})}; cxf=function(l){var n=l.api.getVideoData();l.button.vk(n.Jj)}; iRe=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);oc(this.api,"musicDisableUi",function(){g.FW(n.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); oc(this.api,"musicEnableUi",function(){g.ZW(n.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; Iy=function(l,n,O){n=n===void 0?!0:n;O=O===void 0?!1:O;g.f.call(this,{D:"div",X:"ytp-suggested-action"});var L=this;this.C=l;this.JA=this.NQ=this.Q5=this.Wm=this.L=this.G=this.expanded=this.enabled=this.G3=!1;this.Yo=new g.vs(function(){L.badge.element.style.width=""},200,this); this.wq=new g.vs(function(){GF(L);mr(L)},200,this); this.Fi=this.C.J("delhi_modern_web_player")?40:34;this.dismissButton=new g.f({D:"button",gq:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.c(this,this.dismissButton);this.N=new g.f({D:"div",X:"ytp-suggested-action-badge-expanded-content-container",K:[{D:"label",X:"ytp-suggested-action-badge-title",hG:"{{badgeLabel}}"},this.dismissButton]});g.c(this,this.N);this.z3=new g.f({D:"div",X:"ytp-suggested-action-badge-icon-container",K:[n?{D:"div",X:"ytp-suggested-action-badge-icon"}: ""]});g.c(this,this.z3);this.badge=new g.f({D:O?"div":"button",gq:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],K:[this.z3,this.N]});g.c(this,this.badge);this.badge.V5(this.element);this.Y=new g.gy(this.badge,250,!1,100);g.c(this,this.Y);this.Of=new g.gy(this.N,250,!1,100);g.c(this,this.Of);this.uv=new g.tN(this.spp,null,this);g.c(this,this.uv);this.nf=new g.tN(this.ij,null,this);g.c(this,this.nf);g.c(this,this.Yo);g.c(this,this.wq);this.C.createServerVe(this.badge.element, this.badge,!0);this.C.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.U(this.C,"onHideControls",function(){L.Jq(!1)}); this.U(this.C,"onShowControls",function(){L.Jq(!0)}); this.U(this.badge.element,"click",this.Li);this.U(this.dismissButton.element,"click",this.LK);this.U(this.C,"pageTransition",this.w4);this.U(this.C,"appresize",this.o7);this.U(this.C,"fullscreentoggled",this.VzJ);this.U(this.C,"cardstatechange",this.keF);this.U(this.C,"annotationvisibility",this.GEo,this);this.U(this.C,"offlineslatestatechange",this.KFq,this)}; GF=function(l){g.wP(l.badge.element,"ytp-suggested-action-badge-with-controls",l.Q5||!l.G)}; mr=function(l,n){var O=l.Sj();l.expanded!==O&&(l.expanded=O,n===void 0||n?(l.uv.stop(),l.nf.stop(),l.Yo.stop(),l.uv.start()):(l.N.vk(l.expanded),g.wP(l.badge.element,"ytp-suggested-action-badge-expanded",l.expanded)),l.f7())}; z4i=function(l){var n=l.text||"",O=g.aC("ytp-suggested-action-badge-title",l.element);O&&g.xQ(O,n);l.badge.element.setAttribute("aria-label",n);l.dismissButton.element.setAttribute("aria-label",l.Pm?l.Pm:"")}; dr=function(l,n,O,L,X,F){var x={D:"div",X:"ytp-panel"};if(O){var Z="ytp-panel-back-button";var J="ytp-panel-title";var w={D:"div",X:"ytp-panel-header",K:[{D:"div",gq:["ytp-panel-back-button-container"],K:[{Z:{"aria-label":"Back to previous menu"},D:"button",gq:["ytp-button",Z]}]},{D:"span",gq:[J],Z:l.J("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,K:[O]}]};if(X){var H="ytp-panel-options";w.K.push({D:"button",gq:["ytp-button",H],K:[L]})}x.K=[w]}L=!1;F&&(F={D:"div", X:"ytp-panel-footer",K:[F]},L=!0,x.K?x.K.push(F):x.K=[F]);g.Aj.call(this,x);this.content=n;L&&x.K?n.V5(this.element,x.K.length-1):n.V5(this.element);this.vz=!1;this.N4=L;O&&(O=this.mJ(J),this.U(this.mJ(Z),"click",this.Yn),this.U(O,"click",this.Yn),this.vz=!0,X&&this.U(this.mJ(H),"click",X));n.subscribe("size-change",this.sZ,this);this.U(l,"fullscreentoggled",this.sZ);this.C=l}; g.$8=function(l,n,O,L,X,F){n=n===void 0?null:n;var x={role:"menu"};n&&(x.id=n);n=new g.Aj({D:"div",X:"ytp-panel-menu",Z:x});dr.call(this,l,n,O,L,X,F);this.menuItems=n;this.items=[];g.c(this,this.menuItems)}; g.VF=function(l){for(var n=g.P(l.items),O=n.next();!O.done;O=n.next())O.value.unsubscribe("size-change",l.Hu,l);l.items=[];try{g.Lf(l.menuItems.element)}catch(F){var L,X;g.d2(new g.at("Failed to remove menu items from panel menu.",{error:F.message,originalStack:F.stack,childToBeRemoved:(X=(L=l.menuItems.element.firstChild)==null?void 0:L.textContent)!=null?X:"child element not found"}))}l.menuItems.publish("size-change")}; S87=function(l,n){return n.priority-l.priority}; g.BL=function(l,n){g.V7.call(this,l,{D:"div",gq:["ytp-popup",n||""]},100,!0);this.S=[];this.T=this.V=null;this.maxHeight=this.maxWidth=0;this.size=new g.re(0,0);this.listen("keydown",this.f$)}; p8i=function(l){var n=l.S[l.S.length-1];if(n){g.N4(l.element,l.maxWidth||"100%",l.maxHeight||"100%");g.HH(n.element,"width","");g.HH(n.element,"height","");g.HH(n.element,"maxWidth","100%");g.HH(n.element,"maxHeight","100%");g.HH(n.content.element,"height","");var O=g.D2(n.element);O.width+=1;O.height+=1;g.HH(n.element,"width",O.width+"px");g.HH(n.element,"height",O.height+"px");g.HH(n.element,"maxWidth","");g.HH(n.element,"maxHeight","");var L=0;n.vz&&(L=g.D2(n.mJ("ytp-panel-header")).height);var X= 0;n.N4&&(X=n.mJ("ytp-panel-footer"),g.HH(X,"width",O.width+"px"),X=g.D2(X).height);g.HH(n.content.element,"height",O.height-L-X+"px");n.element instanceof HTMLElement&&(L=n.element,X=L.scrollWidth-L.clientWidth,L.offsetWidth-L.clientWidth>0&&X>0&&(O.width+=X,g.HH(n.element,"width",O.width+"px")));l.size=O}}; g.cL=function(l,n){var O=l.S[l.S.length-1];O!==n&&(l.S.push(n),s6i(l,O,n))}; g.iU=function(l){if(!(l.S.length<=1)){var n=l.S.pop(),O=l.S[0];l.S=[O];s6i(l,n,O,!0)}}; s6i=function(l,n,O,L){fqi(l);n&&(n.unsubscribe("size-change",l.r$,l),n.unsubscribe("back",l.eD,l));O.subscribe("size-change",l.r$,l);O.subscribe("back",l.eD,l);if(l.Qp){g.FW(O.element,L?"ytp-panel-animate-back":"ytp-panel-animate-forward");O.V5(l.element);O.focus();l.element.scrollLeft=0;l.element.scrollTop=0;var X=l.size;p8i(l);g.N4(l.element,X);l.V=new g.vs(function(){Klg(l,n,O,L)},20,l); l.V.start()}else O.V5(l.element),n&&n.detach()}; Klg=function(l,n,O,L){l.V.dispose();l.V=null;g.FW(l.element,"ytp-popup-animating");L?(g.FW(n.element,"ytp-panel-animate-forward"),g.ZW(O.element,"ytp-panel-animate-back")):(g.FW(n.element,"ytp-panel-animate-back"),g.ZW(O.element,"ytp-panel-animate-forward"));g.N4(l.element,l.size);l.T=new g.vs(function(){g.ZW(l.element,"ytp-popup-animating");n.detach();g.J5(n.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);l.T.dispose();l.T=null},250,l); l.T.start()}; fqi=function(l){l.V&&g.nz(l.V);l.T&&g.nz(l.T)}; zF=function(l){g.BL.call(this,l,"ytp-shopping-product-menu");this.L1=new g.$8(this.C);g.c(this,this.L1);this.hide();g.cL(this,this.L1);g.jR(this.C,this.element,4)}; R47=function(l,n,O){var L,X=n==null?void 0:(L=n.text)==null?void 0:L.simpleText;X&&(O=aqi(l,O,X,n==null?void 0:n.icon,n==null?void 0:n.secondaryIcon),n.navigationEndpoint&&O.listen("click",function(){l.C.lF("innertubeCommand",n.navigationEndpoint);l.hide()},l))}; C09=function(l,n,O){var L,X=n==null?void 0:(L=n.text)==null?void 0:L.simpleText;X&&aqi(l,O,X,n==null?void 0:n.icon).listen("click",function(){var F;(n==null?void 0:(F=n.icon)==null?void 0:F.iconType)==="HIDE"?l.C.publish("featuredproductdismissed"):n.serviceEndpoint&&l.C.lF("innertubeCommand",n.serviceEndpoint);l.hide()},l)}; aqi=function(l,n,O,L,X){n=new g.SR(g.pF({},[],!1,!!X),n,O);X&&n.updateValue("secondaryIcon",tZf(X));n.setIcon(tZf(L));g.c(l,n);l.L1.yu(n,!0);return n}; tZf=function(l){if(!l)return null;switch(l.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{D:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return WIf();case "HIDE":return{D:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"g",K:[{D:"path",Z:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return kR()}}; SL=function(l){Iy.call(this,l,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.G=!0;this.overflowButton=new g.f({D:"button",gq:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.c(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.f({D:"img",X:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.c(this,this.thumbnailImage);this.thumbnailIcon=new g.f({D:"div",X:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.c(this,this.thumbnailIcon);this.banner=new g.f({D:"a",X:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{D:"div",X:"ytp-suggested-action-details",K:[{D:"text",X:"ytp-suggested-action-title",hG:"{{title}}"},{D:"text",X:"ytp-suggested-action-subtitle",hG:"{{subtitle}}"},{D:"text",X:"ytp-suggested-action-metadata-text", hG:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.c(this,this.banner);this.banner.V5(this.N.element);this.U(this.C,"videodatachange",this.onVideoDataChange);this.U(this.C,g.F4("suggested_action_view_model"),this.Lep);this.U(this.C,g.xx("suggested_action_view_model"),this.C5q);this.U(this.overflowButton.element,"click",this.lw);this.U(l,"featuredproductdismissed",this.LK);this.C.createServerVe(this.banner.element,this.banner,!0)}; vVi=function(l){l.isInitialized&&(l.enabled=l.isVisible,l.NQ=l.isVisible,mr(l),l.o7(),l.thumbnailImage.vk(l.isVisible),l.shouldHideDismissButton||l.dismissButton.vk(l.isVisible),l.shouldShowOverflowButton&&l.overflowButton.vk(l.isVisible))}; po=function(){SL.apply(this,arguments)}; lzk=function(l){KF.call(this,l);this.S=new po(this.api);g.c(this,this.S);g.jR(this.api,this.S.element,4)}; sa=function(l){KF.call(this,l);var n=this;this.S="";this.N=!0;this.W=this.api.J("html5_enable_audio_track_stickiness_phase_two");var O=new g.$B(l);g.c(this,O);O.U(l,"internalaudioformatchange",function(L,X){n3i(n,L,X)}); O.U(l,"videoplayerreset",function(){OTk(n)}); O.U(l,"videodatachange",function(L,X){n.onVideoDataChange(L,X)})}; n3i=function(l,n,O){if(O){var L="";g3q(l,n)&&(L=n,l.W||(l.S=n),l.api.J("html5_sabr_enable_server_xtag_selection")&&(O=l.api.getVideoData(void 0,!0)))&&(O.D0=n);if(l.W&&L&&L2f(l,L)){var X;Aw(Ly(l.api.j(),(X=l.api.getVideoData())==null?void 0:g.pN(X)),function(F){XAf(l,L,F)})}}}; OTk=function(l){if(l.S)o3k(l);else{var n;if(l.W&&((n=z$())==null?0:n.size)){var O;Aw(Ly(l.api.j(),(O=l.api.getVideoData())==null?void 0:g.pN(O)),function(L){if((L=F2e(L))&&L2f(l,L)){var X=l.api.getVideoData(void 0,!0);X&&(X.D0=L)}})}}}; o3k=function(l){var n=l.api.getVideoData(void 0,!0);n&&(n.D0=l.S)}; XAf=function(l,n,O){F2e(O)!==n&&(x2i([{settingItemId:fo(O),settingOptionValue:{stringValue:n}}]),Aw(l.A2(),function(L){Xvf(L,fo(O),{stringValue:n})}))}; hI9=function(l,n){bo(Aw(Aw(l.A2(),function(O){return gmi(O,[fo(n)])}),function(O){if(O){O=g.P(O); for(var L=O.next();!L.done;L=O.next()){var X=L.value;L=X.key;X=X.value;L&&X&&x2i([{settingItemId:L,settingOptionValue:X}])}}}),function(){l.N=!0})}; g3q=function(l,n){l=l.api.getAvailableAudioTracks();l=g.P(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.getLanguageInfo().getId()===n)return O;return null}; F2e=function(l){l=fo(l);var n=z$();l=n?n.get(l):void 0;return l&&l.stringValue?l.stringValue:""}; fo=function(l){var n=(484).toString();l&&(n=(483).toString());return n}; L2f=function(l,n){var O;return n.split(".")[0]!==""&&((O=l.api.getVideoData())==null?void 0:!fN(O))}; x2i=function(l){var n=z$();n||(n=new Map);l=g.P(l);for(var O=l.next();!O.done;O=l.next())O=O.value,n.set(O.settingItemId,O.settingOptionValue);n=JSON.stringify(Object.fromEntries(n));g.It("yt-player-user-settings",n,2592E3)}; g.Ko=function(l,n,O,L,X,F,x){g.SR.call(this,g.pF({"aria-haspopup":"true"}),n,l);this.C5=L;this.G=!1;this.N=null;this.options={};this.W=new g.$8(O,void 0,l,X,F,x);g.c(this,this.W);this.listen("keydown",this.Oq);this.listen("click",this.open)}; ZTq=function(l){if(l.N){var n=l.options[l.N];n.element.getAttribute("aria-checked");n.element.setAttribute("aria-checked","false");l.N=null}}; Jb9=function(l,n){g.Ko.call(this,"Sleep timer",g.Fo.SLEEP_TIMER,l,n);this.C=l;this.Y={};this.V=this.Xc("Off");this.T=this.S="";l.J("web_settings_menu_icons")&&this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.L=new g.f({D:"div",gq:["ytp-menuitem-label-wrapper"],K:[{D:"div",hG:"End of video"},{D:"div",gq:["ytp-menuitem-sublabel"],hG:"{{content}}"}]});g.c(this,this.L);this.listen("click",this.onClick);this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"presentingplayerstatechange",this.y5);this.U(l,"settingsMenuVisibilityChanged",this.IZ3);l.createClientVe(this.element,this,218889);this.y5();this.C.lF("onSleepTimerFeatureAvailable")}; wA7=function(l){var n="Off 10 15 20 30 45 60".split(" "),O;((O=l.C.getVideoData())==null?0:O.isLivePlayback)||n.push("End of video");O=l.C.getPlaylist();var L;O&&((L=O.listId)==null?void 0:L.type)!=="RD"&&n.push("End of playlist");l.Qr(g.M9(n,l.Xc));l.Y=g.rQ(n,l.Xc,l);n=l.Xc("End of video");l.options[n]&&g.zM(l.options[n],l.L)}; HTe=function(l,n){var O=l.Y[n],L=O==="End of video"||O==="End of playlist";O==="Off"&&(l.S="");l.C.getPlayerState()!==0&&l.C.getPlayerState()!==5||!L?(l.V=n,g.Ko.prototype.L2.call(l,n),l.aN(n),l.C.lF("onSleepTimerSettingsChanged",O)):l.C.lF("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; ay=function(l){KF.call(this,l);var n=this;l.addEventListener("settingsMenuInitialized",function(){n.menuItem||(n.menuItem=new Jb9(n.api,n.api.a7()),g.c(n,n.menuItem))}); l.addEventListener("openSettingsMenuItem",function(O){if(O==="menu_item_sleep_timer"){if(!n.menuItem){var L;(L=n.api.a7())==null||L.In()}n.menuItem.open()}}); oc(l,"resetSleepTimerMenuSettings",function(){n.resetSleepTimerMenuSettings()}); oc(l,"setSleepTimerTimeLeft",function(O){n.setSleepTimerTimeLeft(O)}); oc(l,"setVideoTimeLeft",function(O){n.setVideoTimeLeft(O)})}; Ab0=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"onSnackbarMessage",function(O){switch(O){case 1:O=n.api.getPlayerStateObject(),O.isBuffering()&&g.K(O,8)&&g.K(O,16)&&n.api.lF("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},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.Co=function(l,n,O,L,X){n=n===void 0?!1:n;L=L===void 0?!1:L;X=X===void 0?!1:X;g.hj.call(this);this.Y=X;this.T=!1;this.L=new MV(this);this.B=this.V=null;this.N=this.W=!1;g.c(this,this.L);this.target=l;this.S=n;this.G=O||l;this.T=L;n&&(g.CJ&&this.target.setAttribute("draggable","true"),X||(this.target.style.touchAction="none"));Ry(this)}; tH=function(l){g.eU(l.L,!l.S)}; Ry=function(l){l.B=null;l.V=null;l.U(vL("over"),l.mU);l.U("touchstart",l.Cx);l.S&&l.U(vL("down"),l.EPz)}; bTi=function(l,n){for(var O=0;O<n.changedTouches.length;O++){var L=n.changedTouches[O];if(L.identifier===l.V)return L}return null}; vL=function(l){return window.navigator.msPointerEnabled?"MSPointer"+l.charAt(0).toUpperCase()+l.substring(1):"mouse"+l}; l0=function(l){return l&&rb7?BM(l)||document:document}; U27=function(l,n){g.f.call(this,{D:"div",gq:["ytp-overlay","ytp-speedmaster-overlay"],K:[{D:"div",X:"ytp-speedmaster-user-edu",K:[{D:"div",X:"ytp-speedmaster-label",hG:n},{D:"div",X:"ytp-speedmaster-icon",hG:"{{icon}}"}]}]});this.C=l;this.S=this.mJ("ytp-speedmaster-user-edu");this.updateValue("icon",TF9());g.FW(this.S,"ytp-speedmaster-has-icon");this.C.createClientVe(this.S,this,173040,!0);this.CM()}; O8=function(l){KF.call(this,l);var n=this;this.L=this.N=!1;this.wq=g.HQ(this.api.j().experiments,"speedmaster_touch_activation_ms")||500;this.Q5=g.HQ(this.api.j().experiments,"speedmaster_cancellation_movement_dp")||10;this.Hm=g.HQ(this.api.j().experiments,"speedmaster_playback_rate")||2;this.W=new g.$B(l);g.c(this,this.W);this.Y="2x";this.speedmasterUserEdu=new U27(l,this.Y);g.c(this,this.speedmasterUserEdu);g.jR(this.api,this.speedmasterUserEdu.element,4);this.S=new g.Co(this.api.xP().LO,!0,null, !1,!0);g.c(this,this.S);this.delay=new g.vs(this.Cf,this.wq,this);g.c(this,this.delay);this.W.U(l,"videodatachange",function(){nR(n)},this); this.W.U(l,"presentingplayerstatechange",function(){nR(n)},this); this.W.U(l,"autonavvisibility",function(){nR(n)},this); this.api.F$().subscribe("visibilitystatechange",function(){nR(n)}); this.W.U(l,"rootnodemousedown",function(O){n.T=O}); this.J("web_speedmaster_spacebar_control")&&(this.W.U(l,"keyboardserviceglobalkeydown",function(O,L){n.Wm=L;ude(n,O,!0)},this),this.W.U(l,"keyboardserviceglobalkeyup",function(O){ude(n,O,!1)},this))}; gt=function(l){l.delay.stop();l.S.unsubscribe("dragmove",l.V,l);l.S.unsubscribe("dragend",l.B,l);l.N&&(l.N=!1,l.speedmasterUserEdu.CM(),l.api.setPlaybackRate(l.Lf),l.api.showControls(),l.z3&&l.api.pauseVideo())}; ude=function(l,n,O){O?n.keyCode!==32||n.repeat||l.N||!l.L||g.lx(l.delay):gt(l)}; nR=function(l){var n,O;var L=!!l.Y&&!((n=l.api.getVideoData())==null?0:n.isLivePlayback)&&!l.api.oR()&&l.api.getPresentingPlayerType()!==2&&!g.K(l.api.getPlayerStateObject(),2)&&!((O=g.AA(l.api))==null?0:O.Rp())&&!l.api.isEmbedsShortsMode()&&ub(l.api.F$());l.L!==L&&(l.L=L,l.L?l.S.subscribe("dragstart",l.NQ,l):(l.S.unsubscribe("dragstart",l.NQ,l),l.S.unsubscribe("dragmove",l.V,l),l.S.unsubscribe("dragend",l.B,l),gt(l)))}; Pqa=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);oc(this.api,"addPlayerResponseForAssociation",function(O){n.api.addPlayerResponseForAssociation(O)}); oc(this.api,"finishSegmentByCpn",function(O,L,X){return n.api.finishSegmentByCpn(O,L,X)}); this.events.U(l,"modulecreated",function(O){if(O==="ad"&&(O=n.api.getVideoData(1))&&(O=O.getPlayerResponse())){var L;O=(L=O.adPlacements)!=null?L:[];L=g.P(O);for(var X=L.next();!X.done;X=L.next()){var F=O=void 0,x=void 0;if(X=(O=X.value.adPlacementRenderer)==null?void 0:(F=O.renderer)==null?void 0:(x=F.instreamVideoAdRenderer)==null?void 0:x.playerVars)O=Lh(X),n.api.addPlayerResponseForAssociation({playerVars:O})}}}); this.events.U(l,"videodatachange",function(O,L){n.onVideoDataChange(O,L)})}; LR=function(l,n,O){g.mi.call(this,n,l);this.S=O}; g.o6=function(l){lL.call(this);var n=this;this.S=l;this.B={};this.listener=function(O){n.dispatchEvent(new LR(n,O.type,O))}}; W2i=function(l){var n=l.getVideoData(),O=l.T$(),L=O.De(),X=l.j(),F=l.sj(),x=F.x33,Z=F.oT5,J=JH(Z,"bandwidth")*8/1024,w=JH(Z,"networkactivity")/1024,H=JH(Z,"bufferhealth"),A=F.xA,b=F.playerState.state.toString(16),r=O.getCurrentTime().toFixed(2),U=xG(O.NJ(),",",3),W="";if(n.isDaiEnabled()){n.enableServerStitchedDai&&(W+=n.SK?"DS":"SS");W=n.iK()?W+"LIFA, ":W+"DAI, ";var N=F.PC;N&&(W+=N)}s9(n)&&!n.iK()&&(W+="LIFAE, ");var q;((q=l.getVideoData(1))==null?0:g.fy(q))?(W+="SSAP, ",(N=F.PC)&&(W+=N)):XZ(n)&& (W+="SABR, ");if(n.fetchType){switch(n.fetchType){case "onesie":N="o";break;case "gp":N="gp";break;default:N="gvi"}W+="vd:"+N+", "}X.DZ&&(W=X.DZ.z9?W+"wa, ":W+"w, ");W+="s:"+b+" t:"+r+" b:"+U+" ";O.isSeeking()&&(W+="S");O.isPaused()&&(W+="P");O.isEnded()&&(W+="E");l.isOrchestrationLeader()&&(W+=" L");(O=F.jV)&&(W+=" l:"+O.toFixed());O=F.currentTime;X=n.vU;O&&O>X.start&&O<X.end&&(W+=" as");O=W;W=g.lk(d1)("_start",void 0);X=[];b=g.P(["pl_i","vir","or_p","orfb","pbs"]);for(r=b.next();!r.done;r=b.next())r= r.value,(U=g.lk(d1)(r,void 0))&&W&&(U-=W,X.push(r+":"+Math.round(U)));W=X.join(" ");X=g.Kw();b=g.YA(l).Tqm;r=n.N&&!n.N.S?"display:none":"";if((U=n.clientPlaybackNonce)&&U.length==16){U+="AAAA";N=0;q="";for(var y=0;y<20;y++)if(N=(N<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(U.charAt(y)),y%5==4){for(var e="",d=0;d<6;d++)e="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(N&31)+e,N>>=5;q+=e}U=q.substr(0,4)+" "+q.substr(4,4)+" "+q.substr(8,4)+" "+(q.substr(12,4)+" "+q.substr(16, 4))}else U="";J={video_id_and_cpn:String(n.videoId)+" / "+U,codecs:"",dims_and_frames:"",bandwidth_kbps:J.toFixed(0)+" Kbps",buffer_health_seconds:H.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:A?"":"display:none",drm:A,debug_info:O,extra_debug_info:"",bandwidth_style:r,network_activity_style:r,network_activity_bytes:w.toFixed(0)+" KB",shader_info:b,shader_info_style:b?"":"display:none",playback_categories:""};w=L.clientWidth+"x"+L.clientHeight+(X>1?"*"+X.toFixed(2):"");H="-";x.totalVideoFrames&& (H=(x.droppedVideoFrames||0)+" dropped of "+x.totalVideoFrames);J.dims_and_frames=w+" / "+H;l=l.getVolume();x=FU5(n);var B;w=((B=n.L)==null?0:B.audio.S)?"DRC":Math.round(l*x)+"%";B=Math.round(l)+"% / "+w;l=n.cQ.toFixed(1);isFinite(Number(l))&&(B+=" (content loudness "+l+"dB)");J.volume=B;J.resolution=L.videoWidth+"x"+L.videoHeight;if(L=n.W){if(B=L.video)l=B.fps,l>1&&(J.resolution+="@"+l),(l=F.D_f)&&l.video&&(J.resolution+=" / "+l.video.width+"x"+l.video.height,l.video.fps>1&&(J.resolution+="@"+l.video.fps)), J.codecs=T55(L),!n.L||L.audio&&L.video?L.hq&&(J.codecs+=" / "+L.hq+"A"):J.codecs+=" / "+T55(n.L),B.W||B.primaries?(l=B.W||"unknown",l==="smpte2084"?l+=" (PQ)":l==="arib-std-b67"&&(l+=" (HLG)"),J.color=l+" / "+(B.primaries||"unknown"),J.color_style=""):J.color_style="display:none";if(L.debugInfo)for(J.fmt_debug_info="",L=g.P(L.debugInfo),B=L.next();!B.done;B=L.next())B=B.value,J.fmt_debug_info+=B.label+":"+B.text+" ";J.fmt_debug_info_style=J.fmt_debug_info&&J.fmt_debug_info.length>0?"":"display:none"}L= n.isLivePlayback;B=n.aI;J.live_mode_style=L||B?"":"display:none";J.live_latency_style=L?"":"display:none";if(B)J.live_mode="Post-Live"+(JZ(n)?" Manifestless":"");else if(L){B=JH(Z,"livelatency");J.live_latency_secs=B.toFixed(2)+"s";L=JZ(n)?"Manifestless, ":"";n.z3&&(L+="Windowed, ");l="Uncertain";if(B>=0&&B<120)if(n.latencyClass&&n.latencyClass!=="UNKNOWN")switch(n.latencyClass){case "NORMAL":l="Optimized for Normal Latency";break;case "LOW":l="Optimized for Low Latency";break;case "ULTRALOW":l="Optimized for Ultra Low Latency"; break;default:l="Unknown Latency Setting"}else l=n.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";L+=l;(B=F.yti)&&(L+=", seq "+B.sequence);J.live_mode=L}!F.isGapless||O9(n)&&F.o0||(J.playback_categories+="Gapless ");J.playback_categories_style=J.playback_categories?"":"display:none";J.bandwidth_samples=Z1(Z,"bandwidth");J.network_activity_samples=Z1(Z,"networkactivity");J.live_latency_samples=Z1(Z,"livelatency");J.buffer_health_samples=Z1(Z,"bufferhealth");F=g.CN(n); if(n.cotn||F)J.cotn_and_local_media=(n.cotn?n.cotn:"null")+" / "+F;J.cotn_and_local_media_style=J.cotn_and_local_media?"":"display:none";hZ(n,"web_player_release_debug")?(J.release_name="youtube.player.web_20250223_00_RC00",J.release_style=""):J.release_style="display:none";J.debug_info&&W.length>0&&J.debug_info.length+W.length<=60?J.debug_info+=" "+W:J.extra_debug_info=W;J.extra_debug_info_style=J.extra_debug_info&&J.extra_debug_info.length>0?"":"display:none";return J}; T55=function(l){var n=/codecs="([^"]*)"/.exec(l.mimeType);return n&&n[1]?n[1]+" ("+l.itag+")":l.itag}; FR=function(l,n,O,L,X){g.f.call(this,{D:"div",X:"ytp-horizonchart"});this.T=n;this.sampleCount=O;this.L=L;this.V=X;this.index=0;this.heightPx=-1;this.N=this.W=null;this.S=Math.round(l/O);this.element.style.width=this.S*this.sampleCount+"px";this.element.style.height=this.T+"em"}; xV=function(l,n){if(l.heightPx===-1){var O=null;try{O=g.nf("CANVAS"),l.W=O.getContext("2d")}catch(Z){}if(l.W){var L=l.S*l.sampleCount;l.N=O;l.N.width=L;l.N.style.width=L+"px";l.element.appendChild(l.N)}else for(l.sampleCount=Math.floor(l.sampleCount/4),l.S*=4,O=0;O<l.sampleCount;O++)L=g.nf("SPAN"),L.style.width=l.S+"px",L.style.left=l.S*O+"px",l.element.appendChild(L)}O=l.element.clientHeight||24;O!==l.heightPx&&(l.heightPx=O,l.W&&(O=(window.devicePixelRatio||1)>1?2:1,l.N.height=l.heightPx*O,l.N.style.height= l.heightPx+"px",l.W.scale(1,O)));n=g.P(n);for(L=n.next();!L.done;L=n.next()){O=l;var X=l.index,F=L.value;for(L=0;L+2<O.L.length&&O.L[L+1]<F;)L++;F=Math.min(1,(F-O.L[L])/(O.L[L+1]-O.L[L]));if(O.W)O.W.fillStyle=O.V[L],O.W.fillRect(X*O.S,0,O.S,O.heightPx),O.W.fillStyle=O.V[L+1],O.W.fillRect(X*O.S,O.heightPx*(1-F),O.S,O.heightPx);else{X=O.element.children[X];var x=window.devicePixelRatio||1;F=Math.min(O.heightPx,Math.round(O.heightPx*F*x)/x)||0;X.style.height=F+"px";X.style.backgroundColor=O.V[L+1];X.style.borderTop= "solid "+(O.heightPx-F)+"px "+O.V[L]}l.index=(l.index+1)%l.sampleCount}n=l.index;l.W?l.W.clearRect(n*l.S,0,l.S,l.heightPx):(l=l.element.children[n],l.style.height="0px",l.style.borderTop="")}; hx=function(l){var n=null;n={D:"button",gq:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Z:{title:"close"},hG:"[X]"};g.f.call(this,{D:"div",gq:["html5-video-info-panel","ytp-sfn"],K:[n,{D:"div",gq:["html5-video-info-panel-content","ytp-sfn-content"],K:[{D:"div",K:[{D:"div",hG:"Video ID / sCPN"},{D:"span",hG:"{{video_id_and_cpn}}",X:"ytp-sfn-cpn"}]},{D:"div",K:[{D:"div",hG:"Viewport / Frames"},{D:"span",hG:"{{dims_and_frames}}"}]},{D:"div",K:[{D:"div",hG:"Current / Optimal Res"},{D:"span", hG:"{{resolution}}"}]},{D:"div",K:[{D:"div",hG:"Volume / Normalized"},{D:"span",hG:"{{volume}}"}]},{D:"div",K:[{D:"div",hG:"Codecs"},{D:"span",hG:"{{codecs}}"}]},{D:"div",Z:{style:"{{shader_info_style}}"},K:[{D:"div",hG:"Shader Info"},{D:"span",hG:"{{shader_info}}"}]},{D:"div",Z:{style:"{{color_style}}"},K:[{D:"div",hG:"Color"},{D:"span",hG:"{{color}}"}]},{D:"div",Z:{style:"{{drm_style}}"},K:[{D:"div",hG:"Protected"},{D:"span",hG:"{{drm}}"}]},{D:"div",Z:{style:"{{bandwidth_style}}"},K:[{D:"div",hG:"Connection Speed"}, {D:"span",K:[{D:"span",hG:"{{bandwidth_chart}}"},{D:"span",hG:"{{bandwidth_kbps}}"}]}]},{D:"div",Z:{style:"{{network_activity_style}}"},K:[{D:"div",hG:"Network Activity"},{D:"span",K:[{D:"span",hG:"{{network_activity_chart}}"},{D:"span",hG:"{{network_activity_bytes}}"}]}]},{D:"div",K:[{D:"div",hG:"Buffer Health"},{D:"span",K:[{D:"span",hG:"{{buffer_health_chart}}"},{D:"span",hG:"{{buffer_health_seconds}}"}]}]},{D:"div",Z:{style:"{{live_latency_style}}"},K:[{D:"div",hG:"Live Latency"},{D:"span",K:[{D:"span", hG:"{{live_latency_chart}}"},{D:"span",hG:"{{live_latency_secs}}"}]}]},{D:"div",Z:{style:"{{live_mode_style}}"},K:[{D:"div",hG:"Live Mode"},{D:"span",hG:"{{live_mode}}"}]},{D:"div",Z:{style:"{{playback_categories_style}}"},K:[{D:"div",hG:"Playback Categories"},{D:"span",hG:"{{playback_categories}}"}]},{D:"div",Z:{style:"{{fmt_debug_info_style}}"},K:[{D:"div",hG:"Format Debug Info"},{D:"span",hG:"{{fmt_debug_info}}"}]},{D:"div",K:[{D:"div",hG:"Mystery Text"},{D:"span",hG:"{{debug_info}}"}]},{D:"div", Z:{style:"{{extra_debug_info_style}}"},K:[{D:"div",hG:""},{D:"span",K:[{D:"span",hG:"{{extra_debug_info}}"}]}]},{D:"div",K:[{D:"div",hG:"Date"},{D:"span",hG:"{{date}}"}]},{D:"div",Z:{style:"{{cotn_and_local_media_style}}"},K:[{D:"div",hG:"COTN / Local Media"},{D:"span",hG:"{{cotn_and_local_media}}"}]},{D:"div",Z:{style:"{{release_style}}"},K:[{D:"div",hG:"Player Release"},{D:"span",hG:"{{release_name}}"}]}]}]});this.iF=l;this.position=0;this.V=!0;n?this.U(this.mJ("ytp-sfn-close"),"click",this.hide): this.U(this.element,"click",this.hide);l=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];n="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var O=l.map(function(L){return L/4}); this.Y={};this.S=new FR(300,1,150,l,n);g.c(this,this.S);this.updateValue("bandwidth_chart",this.S);this.N=new FR(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.c(this,this.N);this.updateValue("live_latency_chart",this.N);this.W=new FR(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.c(this,this.W);this.updateValue("buffer_health_chart",this.W);this.T=new FR(300,1,150,O,n);g.c(this,this.T);this.updateValue("network_activity_chart", this.T);this.delay=new g.vs(this.y5,500,this);g.c(this,this.delay);this.L=new g.vs(this.G,2E4,this);g.c(this,this.L)}; D2e=function(l){KF.call(this,l);var n=this;oc(l,"getStatsForNerds",function(){return W2i(n.api)}); FG(l,"showVideoInfo",function(){E3v(n,!0)}); FG(l,"hideVideoInfo",function(){E3v(n,!1)}); FG(l,"isVideoInfoVisible",function(){return N58(n)})}; E3v=function(l,n){var O=N58(l);l.S||(l.S=new hx(l.api),g.c(l,l.S),g.jR(l.api,l.S.element,4));l.S.vk(n);var L=y7(l.api.dc());L&&L.loaded&&O!==n&&L.P4();n&&l.api.Sp("sfn",{},!0)}; N58=function(l){var n;return!((n=l.S)==null||!n.Qp)}; Zq=function(){g.V.call(this);this.W=null;this.startTime=this.duration=0;this.delay=new g.tN(this.S,null,this);g.c(this,this.delay)}; qX0=function(l,n){if(n.D==="path")return n.Z.d;if(n.K)for(var O=0;O<n.K.length;O++){var L=n.K[O];if(L&&typeof L!=="string"&&(L=qX0(l,L)))return L}}; QX0=function(l,n,O){O=qX0(l,O);var L=n.getElementsByTagName("path")[0],X=L.getAttribute("d");if(L.getAttribute("id")){var F=ZT();n=n.getElementsByTagName("use");for(var x=0;x<n.length;x++)n[x].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+F);L.setAttribute("id",F)}var Z=kii(X),J=kii(O);ybi(l,function(w){L.setAttribute("d",M20(Z,J,w))},200)}; ybi=function(l,n,O){l.W=n;l.startTime=(0,g.Q_)();l.duration=O;l.S()}; kii=function(l){var n=[];l=l.match(eIv);for(var O=0;O<l.length;O++){var L=l[O]===" "?NaN:Number(l[O]);n.push(isNaN(L)?l[O]:L)}return n}; M20=function(l,n,O){for(var L="",X=0;X<l.length;X++){var F=l[X];L=typeof F==="number"?L+(F+(n[X]-F)*O):L+F}return L}; Jx=function(l){g.f.call(this,{D:"button",gq:["ytp-size-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},hG:"{{icon}}"});this.api=l;this.XP=null;this.transition=new Zq;g.c(this,this.transition);this.U(l,"sizestylechange",this.y5);this.U(l,"fullscreentoggled",this.y5);this.U(l,"presentingplayerstatechange",this.y5);l.createClientVe(this.element,this,139116);this.y5();this.listen("click",this.onClick);EY(l,this.element, this)}; YXf=function(l){KF.call(this,l);var n=this;this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"standardControlsInitialized",function(){n.button=new Jx(l);g.c(n,n.button);l.On(n.button,"RIGHT_CONTROLS_RIGHT")})}; m27=function(l){KF.call(this,l);var n=this,O={};this.V=(O.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},O.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(L){return jX8(n,L)},O.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(L){return jX8(n,L)},O); this.L={};this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"videodatachange",function(L,X){if(L!=="dataupdated"||X.videoId!==n.videoId||!Js(n.timelyActions,Gif(X)))n.onVideoDataChange(X)}); this.events.U(l,"presentingplayerstatechange",function(L){n.gt(L)}); this.events.U(l,g.F4("timelyAction"),function(L){n.onCueRangeEnter(L.getId())}); this.events.U(l,g.xx("timelyAction"),function(L){n.onCueRangeExit(L.getId())}); this.N=new g.f({D:"div",gq:["ytp-player-content","ytp-timely-actions-content"]});this.N.hide();oc(l,"insertTimelyActionUi",function(L){n.N.element.children.length>0&&g.Lf(n.N.element);L.classList.add("ytp-timely-actions-overlay");n.N.element.appendChild(L)}); g.c(this,this.N);g.jR(this.api,this.N.element,4)}; Izk=function(l){l.timelyActions&&(l.L=l.timelyActions.reduce(function(n,O){if(O.cueRangeId===void 0)return n;n[O.cueRangeId]=0;return n},{}))}; wt=function(l,n){if(l.timelyActions){l=g.P(l.timelyActions);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.cueRangeId===n)return O}}; d2a=function(l,n){if((l=wt(l,n))&&l.onCueRangeExit)return cv(l.onCueRangeExit)}; $2g=function(l){if(l.S!==void 0){var n=(n=wt(l,l.S))&&n.onCueRangeEnter?cv(n.onCueRangeEnter):void 0;var O=wt(l,l.S);if(O&&O.additionalTrigger){var L=!1;for(var X=g.P(O.additionalTrigger),F=X.next();!F.done;F=X.next())F=F.value,F.type&&F.args&&l.V[F.type]!==void 0&&(L=L||l.V[F.type](F.args))}else L=!0;n&&L&&(l.api.lF("innertubeCommand",n),l.setTimeout(O),l.L[l.S]!==void 0&&l.L[l.S]++)}}; jX8=function(l,n){return l.W===void 0?!1:n.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(n.seekLengthMilliseconds)===5E3?l.W===72:n.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(n.seekLengthMilliseconds)===1E4?l.W===74:n.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(n.seekLengthMilliseconds)===5E3?l.W===71:n.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(n.seekLengthMilliseconds)===1E4?l.W===73:!1}; Gif=function(l){if(l=l.getWatchNextResponse()){var n,O;l=(n=l.playerOverlays)==null?void 0:(O=n.playerOverlayRenderer)==null?void 0:O.timelyActionsOverlayViewModel;n=g.z(l,V29);if(n!=null&&n.timelyActions)return n==null?void 0:n.timelyActions.map(function(L){return g.z(L,B50)}).filter(function(L){return!!L})}}; cbe=function(l){KF.call(this,l);var n=this;FG(this.api,"getPlaybackRate",function(){return n.api.getPlaybackRate()}); FG(this.api,"setPlaybackRate",function(O){typeof O==="number"&&n.api.setPlaybackRate(O)})}; iT9=function(l){l=l.Ae();if(!l)return!1;l=g.oT(l).exp||"";return l.includes("xpv")||l.includes("xpe")}; zI7=function(l){l=g.P(g.H8(l,!0));for(var n=l.next();!n.done;n=l.next())if(iT9(n.value))return!0;return!1}; SXi=function(l,n){l=g.P(g.H8(l,!0));for(var O=l.next();!O.done;O=l.next())if(O=O.value,iT9(O)){var L={potc:"1",pot:n};O.url&&(O.url=FX(O.url,L))}}; pAv=function(l){var n=new LYi,O={},L=(O["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",O);return new Dk(n,l,function(){return L})}; sXi=function(l){return g.Y(function(n){if(n.S==1)return g.We(n,2),g.Q(n,l,4);if(n.S!=2)return g.N7(n,0);g.D5(n);g.Tk(n)})}; b0=function(l){KF.call(this,l);var n=this;this.useLivingRoomPoToken=!1;this.L=new g.U_;this.ze=null;this.T=!1;this.N=null;this.B=!1;var O=l.j().getWebPlayerContextConfig();this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"spsumpreject",function(L,X,F){n.B=X;L&&n.T&&!n.N&&(n.J("html5_generate_content_po_token")&&F?n.QD(F):n.J("html5_generate_session_po_token")&&fz8(n));n.N||n.api.Sp("stp",{s:+n.T,b:+n.B})}); this.events.U(l,"poTokenVideoBindingChange",function(L){n.QD(L)}); this.useLivingRoomPoToken=!(O==null||!O.useLivingRoomPoToken);l.addEventListener("csiinitialized",function(){n.ze=l.GE();var L=(n.J("html5_generate_session_po_token")||n.J("html5_generate_content_po_token"))&&!n.useLivingRoomPoToken;try{if(n.J("html5_use_shared_owl_instance"))K2q(n);else if(L){n.ze.iQ("pot_isc");n.J("html5_new_wpo_client")||az8(n);var X=g.HQ(n.api.j().experiments,"html5_webpo_kaios_defer_timeout_ms");X?(n.J("html5_new_wpo_client")&&(n.W=ao()),g.U0(function(){Ax(n)},X)):n.J("html5_webpo_idle_priority_job")? (n.J("html5_new_wpo_client")&&(n.W=ao()),g.lX(g.Oy(),function(){Ax(n)})):Ax(n)}}catch(F){F instanceof Error&&g.d2(F)}}); l.addEventListener("trackListLoaded",this.KM.bind(this));l.Yz(this)}; RIf=function(l){var n=ta(l.experiments,"html5_web_po_request_key");return n?n:g.yw(l)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; rt=function(l,n){if(l.J("html5_webpo_bge_ctmp")){var O,L={hwpo:!!l.S,hwpor:!((O=l.S)==null||!O.isReady())};l.api.Sp(n,L)}}; K2q=function(l){var n,O;g.Y(function(L){if(L.S==1)return rt(l,"swpo_i"),l.W=ao(),U8(l),g.Q(L,et(),2);if(L.S!=3)return n=L.W,rt(l,"swpo_co"),g.Q(L,Olf(n),3);O=L.W;l.S=Cqa(l,O);rt(l,"swpo_cc");l.S.ready().then(function(){l.L.resolve();rt(l,"swpo_re")}); g.U0(function(){Ax(l);rt(l,"swpo_si")},0); g.Tk(L)})}; az8=function(l){var n=l.api.j(),O=RIf(n),L=pAv(O);n=new lz({LY:O,qq:L,onEvent:function(X){(X=t2a[X])&&l.ze.iQ(X)}, onError:g.d2,qI:EXa(n.experiments),eG:function(){return void l.api.Sp("itr",{})}, Scf:n.experiments.MQ("html5_web_po_disable_remote_logging")||v3g.includes(g.VM(n.Vf)||"")});n.ready().then(function(){return void l.L.resolve()}); g.c(l,n);l.S=n}; lJi=function(l){var n=l.api.j(),O=pAv(RIf(n)),L=O.mM.bind(O);O.mM=function(Z){var J;return g.Y(function(w){if(w.S==1)return g.Q(w,L(Z),2);J=w.W;l.api.Sp("itr",{});return w.return(J)})}; try{var X=new qK({qq:O,ey:{maxAttempts:5},Gk:{disable:n.experiments.MQ("html5_web_po_disable_remote_logging")||v3g.includes(g.VM(n.Vf)||""),Mz:EXa(n.experiments),gPF:l.J("wpo_dis_lfdms")?0:1E3},D5p:g.d2});var F=new KV({vl:X,qq:O,onError:g.d2});sXi(F.eJ()).then(function(){return void l.L.resolve()}); g.c(l,X);g.c(l,F);l.S=Cqa(l,F)}catch(Z){g.d2(Z);var x;(x=X)==null||x.dispose()}}; Ax=function(l){var n=l.api.j();l.ze.iQ("pot_ist");l.S?l.S.start():l.J("html5_new_wpo_client")&&lJi(l);l.J("html5_bandaid_attach_content_po_token")||(l.J("html5_generate_session_po_token")&&(U8(l),fz8(l)),n=g.HQ(n.experiments,"html5_session_po_token_interval_time_ms")||0,n>0&&(l.V=g.uk(function(){U8(l)},n)),l.T=!0)}; U8=function(l){var n,O,L,X;g.Y(function(F){if(!l.J("html5_generate_session_po_token")||l.useLivingRoomPoToken)return F.return();n=l.api.j();O=g.R3("EOM_VISITOR_DATA")||g.R3("VISITOR_DATA");L=n.xa?n.datasyncId:O;X=ta(n.experiments,"html5_mock_content_binding_for_session_token")||n.livingRoomPoTokenId||L;n.OU=u0(l,X);g.Tk(F)})}; u0=function(l,n){if(!l.S)return l.W?l.W(n):"";try{var O=l.S.isReady();l.ze.iQ(O?"pot_cms":"pot_csms");var L="";L=l.J("html5_web_po_token_disable_caching")?l.S.Qg({SD:n}):l.S.Qg({SD:n,vT:{xe:n,dvQ:150,x5:!0,S2:!0}});l.ze.iQ(O?"pot_cmf":"pot_csmf");if(O){var X;(X=l.N)==null||X.resolve();l.N=null;if(l.B){l.B=!1;var F;(F=l.api.app.AG())==null||F.ju(!1)}}return L}catch(x){return g.d2(x),""}}; fz8=function(l){l.S&&(l.N=new v6,l.S.ready().then(function(){l.ze.iQ("pot_if");U8(l)}))}; Cqa=function(l,n){l.J("html5_web_po_token_disable_caching")||n.Pn(150);var O=!1,L=sXi(n.eJ()).then(function(){O=!0}); return{isReady:function(){return O}, ready:function(){return L}, Qg:function(X){return n.Qg({SD:X.SD,Ei:!0,qX:!0,vT:X.vT?{xe:X.vT.xe,x5:X.vT.x5,S2:X.vT.S2}:void 0})}, start:function(){}}}; n1e=function(l){KF.call(this,l);var n=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.$B(l);g.c(this,this.events);this.events.U(l,"heartbeatRequest",function(O){if(n.freePreviewUsageDetails.length||n.freePreviewWatchedDuration!==null)O.heartbeatRequestParams||(O.heartbeatRequestParams={}),O.heartbeatRequestParams.unpluggedParams||(O.heartbeatRequestParams.unpluggedParams={}),n.freePreviewUsageDetails.length>0?O.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= n.freePreviewUsageDetails:O.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+n.freePreviewWatchedDuration}}); oc(l,"setFreePreviewWatchedDuration",function(O){n.freePreviewWatchedDuration=O}); oc(l,"setFreePreviewUsageDetails",function(O){n.freePreviewUsageDetails=O})}; P8=function(l){g.V.call(this);this.features=[];var n=this.S,O=new N$(l),L=new ac(l),X=new MD(l),F=new b0(l);var x=g.qp(l.j())?void 0:new bg(l);var Z=new yF(l),J=new D2e(l),w=new cbe(l),H=new E3(l);var A=g.qp(l.j())?new n1e(l):void 0;var b=l.J("html5_enable_ssap")?new Pqa(l):void 0;var r=l.J("web_cinematic_watch_settings")&&(r=l.j().getWebPlayerContextConfig())!=null&&r.cinematicSettingsAvailable?new ZK(l):void 0;var U=new WN(l);var W=l.J("enable_courses_player_overlay_purchase")?new U8e(l):void 0; var N=g.a5(l.j())?new HDa(l):void 0;var q=new rk(l);var y=l.j().L?new F$9(l):void 0;var e=g.yG(l.j())?new oWi(l):void 0;var d=l.J("web_player_move_autonav_toggle")&&l.j().d8?new vFf(l):void 0;var B=g.a5(l.j())?new uR9(l):void 0;var R=l.J("web_enable_speedmaster")&&g.a5(l.j())?new O8(l):void 0;var a=l.j().S5?void 0:new YXf(l);var Lv=l.J("report_pml_debug_signal")?new ajf(l):void 0;var Fa=new Y8i(l),l9=new jL(l);var S=g.Bt(l.j())?new iRe(l):void 0;var v=navigator.mediaSession&&window.MediaMetadata&& l.j().pI?new qD(l):void 0;var T=l.J("html5_enable_drc")&&!l.j().V?new A7(l):void 0;var p=new CF(l);var ce=g.a5(l.j())?new lzk(l):void 0;var WR=l.J("html5_enable_d6de4")?new QF(l):void 0;var HR=g.a5(l.j())&&l.J("web_sleep_timer")?new ay(l):void 0;var y5=g.yG(l.j())?new hGi(l):void 0;var Cv=new sa(l),gD=new J7(l),rD=new Uqg(l);var D=l.J("enable_sabr_snackbar_message")?new Ab0(l):void 0;var k=l.J("web_enable_timely_actions")?new m27(l):void 0;n.call(this,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B,R,a,Lv, Fa,l9,S,void 0,v,T,p,void 0,ce,WR,HR,y5,void 0,Cv,gD,rD,void 0,D,k,new wk(l))}; T4=function(){this.W=this.S=NaN}; Osg=function(l,n){this.xo=l;this.timerName="";this.N=!1;this.W=NaN;this.L=new T4;this.S=n||null;this.N=!1}; g15=function(l,n,O){var L=g.GH(n.rq)&&!n.rq.V;if(n.rq.hZ&&(QG(n.rq)||n.rq.Cf==="shortspage"||lQ(n.rq)||L)&&!l.N){l.N=!0;l.V=n.clientPlaybackNonce;g.R3("TIMING_ACTION")||a3("TIMING_ACTION",l.xo.csiPageType);l.xo.csiServiceName&&a3("CSI_SERVICE_NAME",l.xo.csiServiceName);if(l.S){L=l.S.GE();for(var X=g.P(Object.keys(L)),F=X.next();!F.done;F=X.next())F=F.value,iD(F,L[F],l.timerName);L=g.lk($zi)(l.S.ID);g.zp(L,l.timerName);L=l.S;L.W={};L.ID={}}g.zp({playerInfo:{visibilityState:g.lk(dzg)()},playerType:"LATENCY_PLAYER_HTML5"}, l.timerName);l.B!==n.clientPlaybackNonce||Number.isNaN(l.W)||(pp("_start",l.timerName)?O=g.lk(d1)("_start",l.timerName)+l.W:g.d2(new g.at("attempted to log gapless pbs before CSI timeline started",{cpn:n.clientPlaybackNonce})));O&&!pp("pbs",l.timerName)&&l.tick("pbs",O)}}; Lmf=function(l,n,O,L,X,F,x){l=(l===O?"video":"ad")+"_to_"+(n===O?"video":"ad");if(l!=="video_to_ad"||F!=null&&F.Q5){F=l==="ad_to_video"?F:L;O=F==null?void 0:F.nw;var Z={};if(L==null?0:L.V)Z.cttAuthInfo={token:L.V,videoId:L.videoId};X&&(Z.startTime=X);S$(l,Z);var J,w,H;L={targetVideoId:(J=L==null?void 0:L.videoId)!=null?J:"empty_video",targetCpn:n,adVideoId:(w=F==null?void 0:F.videoId)!=null?w:"empty_video",adClientPlaybackNonce:(H=O==null?void 0:O.cpn)!=null?H:F==null?void 0:F.clientPlaybackNonce}; O&&(L.adBreakType=O.adBreakType,L.adType=O.adType);g.zp(L,l);iD("pbs",x!=null?x:(0,g.Q_)(),l)}}; W8=function(l){KBf();fge();l.timerName=""}; Xli=function(l){if(l.S){var n=l.S;n.W={};n.ID={}}l.N=!1;l.B=void 0;l.W=NaN}; o15=function(l,n){g.hj.call(this);this.rq=l;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.S=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.W=0;if(l=n.session_data)this.sessionData=O0(l,"&");this.index=Math.max(0,Number(n.index)||0);this.loop=!!n.loop;this.startSeconds=Number(n.startSeconds)||0;this.title=n.playlist_title||"";this.description=n.playlist_description||"";this.author= n.author||n.playlist_author||"";n.video_id&&(this.items[this.index]=n);if(l=n.api)typeof l==="string"&&l.length===16?n.list="PL"+l:n.playlist=l;if(l=n.list)switch(n.listType){case "user_uploads":this.listId=new T8("UU","PLAYER_"+l);break;default:var O=n.playlist_length;O&&(this.length=Number(O)||0);this.listId=g.Wy(l);if(l=n.video)this.items=l.slice(0),this.loaded=!0}else if(n.playlist){l=n.playlist.toString().split(",");this.index>0&&(this.items=[]);l=g.P(l);for(O=l.next();!O.done;O=l.next())(O= O.value)&&this.items.push({video_id:O});this.length=this.items.length;if(l=n.video)this.items=l.slice(0),this.loaded=!0}this.setShuffle(!!n.shuffle);if(l=n.suggestedQuality)this.quality=l;this.Y=r7(n,"playlist_");this.N=(n=n.thumbnail_ids)?n.split(","):[]}; Fm0=function(l){return!!(l.playlist||l.list||l.api)}; xhk=function(l){var n=l.index+1;return n>=l.length?0:n}; hM7=function(l){var n=l.index-1;return n<0?l.length-1:n}; g.E8=function(l,n,O,L){n=n!==void 0?n:l.index;n=l.items&&n in l.items?l.items[l.order[n]]:null;var X=null;n&&(O&&(n.autoplay="1"),L&&(n.autonav="1"),X=new g.z8(l.rq,n),g.c(l,X),X.eF=!0,X.startSeconds=l.startSeconds||X.clipStart||0,l.listId&&(X.playlistId=l.listId.toString()));return X}; Zs9=function(l,n){l.index=g.hR(n,0,l.length-1);l.startSeconds=0}; JEk=function(l,n){if(n.video&&n.video.length){l.title=n.title||"";l.description=n.description;l.views=n.views;l.likes=n.likes;l.dislikes=n.dislikes;l.author=n.author||"";var O=n.loop;O&&(l.loop=O);O=g.E8(l);l.items=[];for(var L=g.P(n.video),X=L.next();!X.done;X=L.next())if(X=X.value)X.video_id=X.encrypted_id,l.items.push(X);l.length=l.items.length;(n=n.index)?l.index=n:l.findIndex(O);l.setShuffle(!1);l.loaded=!0;l.W++;l.S&&l.S()}}; AE7=function(l,n){var O,L,X,F,x,Z,J;return g.Y(function(w){if(w.S==1){O=g.Fs();var H=l.j(),A={context:g.LF(l),playbackContext:{contentPlaybackContext:{ancestorOrigins:H.ancestorOrigins}}},b=H.getWebPlayerContextConfig();if(b==null?0:b.encryptedHostFlags)A.playbackContext.contentPlaybackContext.encryptedHostFlags=b.encryptedHostFlags;if(b==null?0:b.hideInfo)A.playerParams={showinfo:!1};H=H.embedConfig;b=n.docid||n.video_id||n.videoId||n.id;if(!b){b=n.raw_embedded_player_response;if(!b){var r=n.embedded_player_response; r&&(b=JSON.parse(r))}if(b){var U,W,N,q,y,e;b=((e=g.z((U=b)==null?void 0:(W=U.embedPreview)==null?void 0:(N=W.thumbnailPreviewRenderer)==null?void 0:(q=N.playButton)==null?void 0:(y=q.buttonRenderer)==null?void 0:y.navigationEndpoint,g.Cy))==null?void 0:e.videoId)||null}else b=null}U=(U=b)?U:void 0;W=l.playlistId?l.playlistId:n.list;N=n.listType;if(W){var d;N==="user_uploads"?d={username:W}:d={playlistId:W};wlf(H,U,n,d);A.playlistRequest=d}else n.playlist?(d={templistVideoIds:n.playlist.toString().split(",")}, wlf(H,U,n,d),A.playlistRequest=d):U&&(d={videoId:U},H&&(d.serializedThirdPartyEmbedConfig=H),A.singleVideoRequest=d);L=A;X=g.Og(Hsa);g.We(w,2);return g.Q(w,g.Cp(O,L,X),4)}if(w.S!=2)return F=w.W,x=l.j(),n.raw_embedded_player_response=F,x.Lf=ZM(n,g.yG(x)),x.N=x.Lf==="EMBEDDED_PLAYER_MODE_PFL",F&&(Z=F,Z.trackingParams&&M8(Z.trackingParams)),w.return(new g.z8(x,n));J=g.D5(w);J instanceof Error||(J=Error("b259802748"));g.Ir(J);return w.return(l)})}; wlf=function(l,n,O,L){O.index&&(L.playlistIndex=String(Number(O.index)+1));L.videoId=n?n:"";l&&(L.serializedThirdPartyEmbedConfig=l)}; g.Dq=function(l,n){Nq.get(l);Nq.set(l,n)}; g.qq=function(l){g.hj.call(this);this.loaded=!1;this.player=l}; bsv=function(){this.W=[];this.S=[]}; g.H8=function(l,n){return n?l.S.concat(l.W):l.S}; g.kV=function(l,n){switch(n.kind){case "asr":rE0(n,l.W);break;default:rE0(n,l.S)}}; rE0=function(l,n){g.ak(n,function(O){return l.XT(O)})||n.push(l)}; g.yk=function(l){g.V.call(this);this.iF=l;this.W=new bsv;this.L=null;this.B=[];this.G=[]}; g.Mq=function(l,n,O){g.yk.call(this,l);this.videoData=n;this.audioTrack=O;this.S=null;this.N=!1;this.B=n.F_;this.G=n.D5;this.N=g.cf(n)}; g.Qk=function(l,n){return L5(l.info.mimeType)?n?l.info.itag===n:!0:!1}; g.Uh5=function(l,n){if(l.S!=null&&g.qp(n.j())&&!l.S.isManifestless&&l.S.S.rawcc!=null)return!0;if(!l.tA())return!1;n=!!l.S&&l.S.isManifestless&&Object.values(l.S.S).some(function(O){return g.Qk(O,"386")}); l=!!l.S&&!l.S.isManifestless&&g.j1g(l.S);return n||l}; g.eZ=function(l,n,O,L,X,F){g.yk.call(this,l);this.videoId=O;this.zi=X;this.eventId=F;this.V={};this.S=null;l=L||g.oT(n).hl||"";l=l.split("_").join("-");this.N=FX(n,{hl:l})}; u0v=function(l,n){this.W=l;this.S=n;this.onFailure=void 0}; Pw9=function(l,n){return{Y_:l.Y_&&n.Y_,DZ:l.DZ&&n.DZ,sync:l.sync&&n.sync,streaming:l.streaming&&n.streaming}}; jZ=function(l,n){var O=TN8,L=this;this.path=l;this.N=n;this.L=O;this.capabilities={Y_:!!this.N,DZ:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.B=new u0v([{name:"compileStreaming",condition:function(X){return!!L.W&&X.streaming}, L4:YV.VD("wmcx",function(){return WebAssembly.compileStreaming(fetch(L.path))}), onFailure:function(){return L.capabilities.streaming=!1}}, {name:"sync",condition:function(X){return X.sync}, L4:function(){return Aw(Wm0(L),YV.VD("wmcs",function(X){return new WebAssembly.Module(X)}))}, onFailure:function(){return L.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, L4:function(){return Aw(Wm0(L),YV.VD("wmca",function(X){return WebAssembly.compile(X)}))}, onFailure:function(){return L.capabilities.DZ=!1}}]); this.V=new u0v([{name:"instantiateStreaming",condition:function(X){return X.DZ&&X.streaming&&!L.W&&!L.S}, L4:function(X,F){return YV.bW("wmix",function(){return WebAssembly.instantiateStreaming(fetch(L.path),F)}).then(function(x){L.S=hw(x.module); return{instance:x.instance,z9:!1}})}, onFailure:function(){return L.capabilities.streaming=!1}}, {name:"sync",condition:function(X){return X.DZ&&X.sync}, L4:function(X,F){return Aw(E15(L,X),YV.VD("wmis",function(x){return{instance:new WebAssembly.Instance(x,F),z9:!1}}))}, onFailure:function(){return L.capabilities.sync=!1}}, {name:"async",condition:function(X){return X.DZ}, L4:function(X,F){return Aw(Aw(E15(L,X),YV.VD("wmia",function(x){return WebAssembly.instantiate(x,F)})),function(x){return{instance:x, z9:!1}})}, onFailure:function(){return L.capabilities.DZ=!1}}, {name:"asmjs",condition:function(X){return X.Y_}, L4:function(X,F){return hw(YV.bW("wmij",function(){return L.N(F)}).then(function(x){return{instance:{exports:x}, z9:!0}}))}, onFailure:function(){return L.capabilities.Y_=!1}}],function(X,F,x){return L.L(x,X.instance.exports)})}; qm5=function(l){var n=NNi;return n.instantiate(l?Pw9(n.capabilities,l):n.capabilities,new Dh9)}; Wm0=function(l){if(l.W)return l.W;var n=fetch(l.path).then(function(O){return O.arrayBuffer()}).then(function(O){l.W=hw(O); return O}).then(void 0,function(O){g.d2(Error("wasm module fetch failure: "+O.message,{cause:O})); l.W=void 0;throw O;}); l.W=hw(n);return l.W}; E15=function(l,n){if(!n.DZ)return Jw(Error("wasm unavailable"));if(l.S)return l.S;l.S=bo(Aw(l.compile(n),function(O){l.S=hw(O);return O}),function(O){g.d2(Error("wasm module compile failure: "+O.message,{cause:O})); l.S=void 0;throw O;}); return l.S}; kGa=function(){}; yEi=function(){var l=this;this.proc_exit=function(){}; this.fd_write=function(n,O,L){if(!l.exports)return 1;n=new Uint32Array(l.exports.memory.buffer,O,L*2);O=[];for(var X=0;X<L;++X){var F=new Uint8Array(l.exports.memory.buffer,n[X*2],n[X*2+1]);F=g.MT(F);O.push(F)}return O.reduce(function(x,Z){return x+Z.length},0)}}; Dh9=function(){this.env=new kGa;this.wasi_snapshot_preview1=new yEi}; TN8=function(l,n){l.wasi_snapshot_preview1.exports=n;l=Math.floor(Math.random()*256);var O=Math.floor(Math.random()*256),L=0;try{L=n.malloc(16);(new Uint8Array(n.memory.buffer,L,16)).fill(l);if(n.sentinel(L,16,O)!==O*16%256)return!1;for(var X=new Uint8Array(n.memory.buffer,L,16),F=0;F<16;F++)if(X[F]!==(l+O)%256)return!1;return!0}finally{L!==0&&n.free(L)}}; Md5=function(l,n){this.instance=l;this.z9=n;this.exports=this.S=this.instance.exports}; eM9=function(l,n,O){O=O===void 0?!1:O;var L=L===void 0?!0:L;var X=YV.xp();return Aw(Qxf(l,n,{Y_:O,DZ:!0,sync:!0,streaming:!0},L),function(F){YV.wT(F.z9?"winitjs":"winit",X);return F})}; Qxf=function(l,n,O,L){L=L===void 0?!0:L;NNi||(NNi=new jZ(l,n));return Aw(qm5(O),function(X){return new Md5(X.instance,X.z9,L)})}; Ym8=function(l,n){g.V.call(this);var O=this;this.C=l;this.S=n;this.ID={};this.W={};this.N=null;this.L=new Set;this.B=new g.$B(this);this.DQ={bzf:function(){return O.S}, Rj:function(){return O.Rj()}}; this.V=this.C.J("web_player_defer_modules");this.ri=new Map;g.c(this,this.B);this.B.U(l,"videodatachange",this.onVideoDataChange)}; g.G4=function(l){return l.ri.get("captions")}; $ha=function(l,n){switch(n){case "ad":return jx0(l);case "annotations_module":return l.C.isEmbedsShortsMode()?l=!1:(n=l.C,l=n.j(),n=n.getVideoData(),l=l.N||n.kB||l.controlsType==="3"?!1:l.z3.isEmpty()&&l.playerStyle!=="annotation-editor"&&l.playerStyle!=="live-dashboard"?!!n.G3||!!g.j4(n)||!!g.$Z(n):!0),l;case "asmjs":return l.C.j().J("html5_allow_asmjs");case "creatorendscreen":return GG9(l);case "embed":return g.yG(l.C.j());case "endscreen":return g.mhi(l);case "heartbeat":return l.hO();case "kids":return cI(l.C.j()); case "remote":return l.C.j().cQ;case "miniplayer":return l.C.j().showMiniplayerUiWhenMinimized;case "offline":return l.C.j().X$;case "captions":return IJq(l);case "unplugged":return g.mX(l.C.j());case "ux":return l.C.j().Yo;case "webgl":return dhe(l);case "ypc":return l.nY();case "ypc_clickwrap":return l=l.C.getVideoData(),l.D9&&!l.tW;case "yto":return!!l.C.getVideoData().Lf.includes("yto");default:return g.Ir(Error("Module descriptor "+n+" does not match")),!1}}; ml=function(l,n,O,L,X){var F;O=O===void 0?!1:O;L=L===void 0?!1:L;var x=l.ri.get(n);if(!x||L)if(X||(X=function(){ml(l,n,O,L)}),F||(F=function(){l.C.T1(n)}),x=x||Vdv(l,n,$ha(l,n),X,F))l.ri.set(n,x),x.create(),l.C.publish("modulecreated",n),O&&l.C.Fb("onApiChange")}; cE9=function(l){var n=n===void 0?!1:n;var O,L,X,F,x;return g.Y(function(Z){if(Z.S==1)return(O=l.ri.get("asmjs"))&&!n?Z.return(O):(L=Nq.get("asmjs"))!=null?(X=L,Z.D2(2)):g.Q(Z,new Promise(function(J,w){BNk(l,"asmjs",function(){var H=Nq.get("asmjs");H?J(H):w("cannot load module asmjs")},w)}),3); Z.S!=2&&(X=Z.W);F=X;if(!F)return Z.return(Promise.reject("cannot load module asmjs"));x=new F(l.C);l.ri.set("asmjs",x);x.create();return Z.return(x)})}; Smf=function(l){ise(l)&&l.Fe();zMi(l)&&(ml(l,"captions",!0),ml(l,"endscreen"),l.j4(),ml(l,"creatorendscreen",!0))}; zMi=function(l){var n=l.C.getVideoData(),O=l.V&&!n.isInlinePlaybackNoAd;l.C.J("html5_defer_modules_on_ads_only")&&!n.isAd()&&(O=!1);return O}; ise=function(l){l=l.C.getVideoData();var n;if(n=l.J("web_player_defer_ad")){if(g.CO(l.Lf,"ad")||KKv(l)||l.enableServerStitchedDai)l=!1;else{n=l.playerResponse;l=l.startSeconds;var O=n==null?void 0:n.adPlacements;if(n=O){n=Number.MAX_VALUE;O=g.P(O);for(var L=O.next();!L.done;L=O.next())if(L=L.value.adPlacementRenderer){var X=void 0,F=(X=L.config)==null?void 0:X.adPlacementConfig;X=void 0;if(((X=F)==null?void 0:X.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var x=X=void 0;F=Number((X=F)==null?void 0:(x= X.adTimeOffset)==null?void 0:x.offsetStartMilliseconds)||0;x=X=void 0;L=Number(((X=L.renderer)==null?void 0:(x=X.adBreakServiceRenderer)==null?void 0:x.prefetchMilliseconds)||0);L=F-L;L<n&&(n=L)}}n=n-5E3<=l*1E3}l=n?!1:!0}n=l}return n}; IJq=function(l){var n=l.C.getVideoData();return!!n.At||!!n.captionTracks.length||g.Uh5(n,l.C)}; g.mhi=function(l){var n=l.C.j();if(n.N||lQ(n)||n.V||!n.M5&&!n.Zx)return!1;var O=l.C.getPresentingPlayerType();if(O===2)return!1;if(O===3)return n.J("desktop_enable_autoplay");l=l.C.getVideoData();if(!l)return!1;O=!l.isLiveDefaultBroadcast||n.J("allow_poltergust_autoplay");O=l.isLivePlayback&&(!n.J("allow_live_autoplay")||!O);n=l.isLivePlayback&&n.J("allow_live_autoplay_on_mweb");return!O||n}; g.eR=function(l){return l.ri.get("webgl")}; dhe=function(l){var n=l.C.getVideoData();l=l.C.j();var O=g.Wbf(),L=l.J("enable_spherical_kabuki"),X=g.vI(l);if(g.e4(n))return O||L||X;if(g.Mk(n))return X||O||L;if(g.QZ(n))return X||O||!1;if(g.bT(n))return X||!1;O=n.W&&n.W.video&&n.W.video.isHdr();return X&&!g.Pf(n)&&!O&&l.J("enable_webgl_noop")}; jx0=function(l){if(l.C.j().N)return!1;l=l.C.getVideoData(1);var n=l.getPlayerResponse();if(n){var O=n.adPlacements;if(O)for(var L=0;L<O.length;L++)if(O[L].adPlacementRenderer)return!0;if(n.adSlots)return!0}return g.fy(l)?!0:!1}; GG9=function(l){if(l.C.isEmbedsShortsMode())return!1;l=l.C;var n=l.j();if(n.N)return!1;var O;if(((O=n.getWebPlayerContextConfig())==null?0:O.embedsEnableEmc3ds)||n.controlsType==="3")return!1;if(n.playerStyle==="creator-endscreen-editor")return!0;O=l.getVideoData();return!!O&&(!!g.LU9(O)||!!g.XPg(O))}; Vdv=function(l,n,O,L,X){try{if(O){var F=Nq.get(n);if(F)return new F(l.C);BNk(l,n,L,X)}else l.C.T1(n)}catch(x){l.C.T1(n),g.Ir(x)}return null}; I6=function(l,n,O){if(l.C.j().J("html5_dispose_modules_in_order"))for(var L=g.P(pl7),X=L.next();!X.done;X=L.next()){X=X.value;var F=l.ri.get(X);F&&(O||F.NR(n))&&(g.h0(F),l.ri.delete(X))}else for(L=g.P(l.ri),X=L.next();!X.done;X=L.next())F=g.P(X.value),X=F.next().value,(F=F.next().value)&&(O||F.NR(n))&&(g.h0(F),l.ri.delete(X))}; dt=function(l){return l.ri.get("ad")}; sx9=function(l){if(cI(l.C.j()))return l.ri.get("kids")}; y7=function(l){if(l.C.j().cQ)return l.ri.get("remote")}; g.$V=function(l){if(g.mX(l.C.j()))return l.ri.get("unplugged")}; eAe=function(l){if(l.C.j().Yo)return l.ri.get("ux")}; fJq=function(l){if(l.C.j().showMiniplayerUiWhenMinimized)return l.ri.get("miniplayer")}; Vk=function(l){if(l.C.j().X$)return l.ri.get("offline")}; g.B8=function(l){return l.ri.get("annotations_module")}; c8=function(l){return l.ri.get("creatorendscreen")}; aJi=function(l,n){var O=l.S.startsWith("https://")?l.S+"lib.wasm":l.S.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return eM9(O,function(L){var X=l.ri.get("asmjs");return X?Promise.resolve(X.Ud(L)):Km5(l).then(function(F){return F.Ud(L)})},n)}; Km5=function(l){var n,O;return g.Y(function(L){if(L.S==1)return g.Q(L,cE9(l),2);O=n=L.W;return L.return(O)})}; BNk=function(l,n,O,L){if(l.S){var X=RMk[n];Cwq(l,l.S+X,function(){l.L.add(X);O.call(l)},L)}}; Cwq=function(l,n,O,L){function X(){l.JG()||L.call(l)} function F(){l.JG()||O.call(l)} for(var x=g.SY("SCRIPT"),Z=!1,J,w=0;w<x.length;w++){var H=x[w];if(H.src===n||H.getAttribute("data-original-src")===n)J=H}J||(J=g.nf("SCRIPT"),J.setAttribute("data-original-src",n),Z=!0);var A=J.onload;J.onload=function(W){oh(F);A&&A.apply(window,[W])}; var b=J.onerror;J.onerror=function(W){if(Math.random()<.01){var N=new g.at("Unable to load player module",n,document.location&&document.location.origin);g.Ir(N)}oh(X);b&&b(W)}; var r=J,U=r.onreadystatechange;r.onreadystatechange=function(W){switch(r.readyState){case "loaded":case "complete":oh(F)}U&&U(W)}; Z&&((x=l.C.j().cspNonce)&&J.setAttribute("nonce",x),g.S8(J,g.k$(n)),x=g.SY("HEAD")[0]||document.body,x.insertBefore(J,x.firstChild),l.addOnDisposeCallback(function(){J.parentNode&&J.parentNode.removeChild(J)}))}; td5=function(l,n,O,L,X){g.hj.call(this);var F=this;this.target=l;this.aD=n;this.W=0;this.V=!1;this.L=new g.AR(NaN,NaN);this.S=new g.$B(this);this.Q5=this.N=this.T=null;g.c(this,this.S);n=L||X?4E3:3E3;this.Y=new g.vs(function(){i0(F,1,!1)},n,this); g.c(this,this.Y);this.Wm=new g.vs(function(){i0(F,2,!1)},n,this); g.c(this,this.Wm);this.NQ=new g.vs(function(){i0(F,512,!1)},n,this); g.c(this,this.NQ);this.Lf=3E3;L||(this.N=this.S.U(l,"mouseover",this.mU),this.S.U(l,"mousemove",this.Yi),this.S.U(l,"mouseleave",this.q_o));AS?this.S.U(l,"keypress",this.KJF):this.S.U(l,"focusin",this.xZ);this.B=this.S.U(l,"mousedown",this.Xd);this.G=this.S.U(l,"touchstart",this.yj,void 0,!0);i0(this,640,!0)}; v10=function(l){i0(l,4,!1);l.T&&(l.S.EC(l.T),l.T=null,l.N=l.S.U(l.target,"mouseover",l.mU));l.N&&(l.S.EC(l.N),l.N=l.S.U(l.target,"mouseover",l.mU))}; i0=function(l,n,O){l.JG();var L=!l.W;O?(l.W|=n,n&1&&l.Y.start(),n&2&&l.Wm.start()):(l.W&=~n,n&1&&l.Y.stop(),n&2&&l.Wm.stop(),n&512&&l.NQ.stop());l.W&512&&!(l.W&128)&&g.lx(l.NQ,l.Lf);n=!l.W;L!==n&&l.publish("autohideupdate",n)}; g.SZ=function(l){g.f.call(this,{D:"button",gq:["ytp-large-play-button","ytp-button"],Z:{"aria-label":"Play",title:"Play"},K:["{{largePlayButtonChildren}}"]});this.api=l;this.U(l,"videodatachange",this.y5);this.U(l,"basechromeinitialized",this.nTf);l=this.api.j();l.G&&z4&&(this.listen("click",this.lx,this),this.listen("touchstart",this.Ixo,this));g.GH(l)&&g.FW(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.y5()}; g.pR=function(l){var n=l.j(),O=["ytp-cued-thumbnail-overlay"];n.V&&O.push("ytp-exp-contain-thumbnail");n.J("web_player_show_frame_zero_when_cued")&&O.push("ytp-exp-frame0");g.f.call(this,{D:"div",gq:O,K:[{D:"div",X:"ytp-cued-thumbnail-overlay-image"}]});n=this.mJ("ytp-cued-thumbnail-overlay");O=new g.SZ(l);g.c(this,O);O.V5(n);this.N=new g.$B(this);g.c(this,this.N);this.api=l;this.L=this.mJ("ytp-cued-thumbnail-overlay-image");this.W=O;this.fade=new g.gy(this,250);g.c(this,this.fade);this.S=new g.vs(this.y5, 0,this);g.c(this,this.S);this.y5();this.U(l,"appresize",this.x4);this.U(l,"presentingplayerstatechange",this.onStateChange);this.U(l,"ypcStateChanged",this.L13);QG(l.j())&&this.U(l,"videoplayerreset",this.onReset)}; lHa=function(l){if(!l.api.J("web_player_show_frame_zero_when_cued"))return!1;var n=l.api.getCurrentTime();l=l.api.getPlayerStateObject();l=g.K(l,64)&&g.K(l,1);return n===0&&l}; g.s8=function(l){g.f.call(this,{D:"div",gq:["ytp-error"],Z:{role:"alert"},K:[{D:"div",X:"ytp-error-content",K:[{D:"div",X:"ytp-error-icon-container",K:[{D:"svg",Z:{fill:"#fff",viewBox:"0 0 48 48"},K:[{D:"path",Z:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",Z:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{D:"div",X:"ytp-error-content-wrap", K:[{D:"div",X:"ytp-error-content-wrap-reason",hG:"{{content}}"},{D:"div",X:"ytp-error-content-wrap-subreason",hG:"{{subreason}}"}]}]}]});this.api=l;this.keys=[];this.N=!1;l.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Qp)}; g.fR=function(l){l=l.split(nvi);for(var n=[],O=0;O<l.length;O+=3){var L=l[O++].split("\n");n.push(L[0]);for(var X=1;X<L.length;X++)n.push({D:"br"}),n.push(L[X]);O<l.length&&n.push({D:"a",Z:{href:l[O],target:l[O+1]},hG:l[O+2]})}return{D:"span",K:n}}; a6=function(l,n,O,L,X,F,x){L=L===void 0?!1:L;X=X===void 0?!1:X;x=x===void 0?!0:x;X||(X=l.api.j().L);var Z=l.api.getVideoData();n=g.uN(g.KR[n]||"",L?{CPN:Z.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);L=[];F&&L.push({D:"h2",hG:F});L.push(n[0]);x&&L.push({D:"br"});L.push({D:"a",Z:{href:O,target:X?"_blank":null},X:"ytp-error-link",hG:n[2]});l.N=!0;L.push(n[4]);return{D:"span",K:L}}; OM5=function(l,n){for(var O=l.element.getElementsByTagName("a"),L=0;L<O.length;L++){var X=l.U(O[L],"click",n);l.keys.push(X)}}; gvi=function(l){for(var n=0;n<l.keys.length;n++)l.EC(l.keys[n]);l.keys=[]}; LJf=function(l){g.f.call(this,{D:"div",X:"ytp-paid-content-overlay",Z:{"aria-live":"assertive","aria-atomic":"true"}});this.C=l;this.videoId=null;this.N=!1;this.innertubeCommand=this.N_=this.S=null;var n=l.j();l.J("enable_new_paid_product_placement")&&!g.Cw(n)?(this.W=new g.f({D:"a",X:"ytp-paid-content-overlay-link",Z:{href:"{{href}}",target:"_blank"},K:[{D:"div",X:"ytp-paid-content-overlay-icon",hG:"{{icon}}"},{D:"div",X:"ytp-paid-content-overlay-text",hG:"{{text}}"},{D:"div",X:"ytp-paid-content-overlay-chevron", hG:"{{chevron}}"}]}),this.U(this.W.element,"click",this.onClick)):this.W=new g.f({D:"div",gq:["ytp-button","ytp-paid-content-overlay-text"],hG:"{{text}}"});this.fade=new g.gy(this.W,250,!1,100);g.c(this,this.W);this.W.V5(this.element);g.c(this,this.fade);this.C.createServerVe(this.element,this);this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"presentingplayerstatechange",this.ST)}; ovv=function(l,n){var O=pie(n),L=spq(n);if(!n.D9||!l.C.Pp())if(l.S||l.C.J("enable_paid_content_overlay_bugfix")){if(n.videoId&&n.videoId!==l.videoId){var X;(X=l.S)==null||g.OJ(X);!l.C.J("enable_paid_content_overlay_bugfix")||O&&L?(l.videoId=n.videoId,l.N=!!L,l.N&&O&&XBi(l,L,O,n)):l.N=!1}}else O&&L&&!l.C.J("enable_paid_content_overlay_bugfix")&&XBi(l,L,O,n)}; XBi=function(l,n,O,L){l.S&&l.S.dispose();l.S=new g.vs(l.Te,n,l);g.c(l,l.S);L=Ty(L);n=L==null?void 0:L.navigationEndpoint;var X;L=L==null?void 0:(X=L.icon)==null?void 0:X.iconType;var F;X=(F=g.z(n,g.$R))==null?void 0:F.url;l.C.setTrackingParams(l.element,(n==null?void 0:n.clickTrackingParams)||null);n&&!X?(l.innertubeCommand=n,X="#!"):l.innertubeCommand=null;var x;l.W.update({href:(x=X)!=null?x:"#",text:O,icon:L==="MONEY_HAND"?{D:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, K:[{D:"path",Z:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:X||l.innertubeCommand?g.Wr():null})}; FJi=function(l,n){l.S&&(g.K(n,8)&&l.N?(l.N=!1,l.In(),l.S.start()):(g.K(n,2)||g.K(n,64))&&l.videoId&&(l.videoId=null))}; R6=function(l){g.f.call(this,{D:"div",X:"ytp-spinner",K:[Xo(),{D:"div",X:"ytp-spinner-message",hG:"If playback doesn't begin shortly, try restarting your device."}]});this.api=l;this.message=this.mJ("ytp-spinner-message");this.S=new g.vs(this.show,500,this);g.c(this,this.S);this.U(l,"presentingplayerstatechange",this.onStateChange);this.U(l,"playbackstalledatstart",this.W);this.OC(l.getPlayerStateObject())}; CR=function(l){var n=[{D:"div",gq:["ytp-unmute-icon"],K:[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {D:"div",gq:["ytp-unmute-text"],hG:"Tap to unmute"}];n.push({D:"div",gq:["ytp-unmute-box"],K:[]});g.V7.call(this,l,{D:"button",gq:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],K:[{D:"div",X:"ytp-unmute-inner",K:n}]},100);this.S=this.clicked=!1;this.api=l;this.api.createClientVe(this.element,this,51663);this.U(l,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.U(l,"presentingplayerstatechange",this.gt);this.listen("click",this.onClick,this);l=l.isMutedByMutedAutoplay()&& !g.yG(this.api.j());this.vk(l);l&&xn5(this);this.N=l}; xn5=function(l){l.S||(l.S=!0,l.api.logVisibility(l.element,!0))}; g.tx=function(l){g.$B.call(this);var n=this;this.api=l;this.VL=!1;this.MR=null;this.Xe=!1;this.j1=null;this.yB=this.Da=!1;this.GX=this.Kb=null;this.xn=NaN;this.Ij=this.Dj=!1;this.Qm=0;this.iZ=[];this.Mh=!1;this.ma={height:0,width:0};this.QK=480;this.otf=["ytp-player-content","html5-endscreen","ytp-overlay"];this.Nw={xf:!1};var O=l.j(),L=l.xP();this.ma=l.getPlayerSize();this.nt=new g.vs(this.IH,0,this);g.c(this,this.nt);O.disableOrganicUi||(this.tM=new g.pR(l),g.c(this,this.tM),g.jR(l,this.tM.element, 4));if(h$0(this)){var X=new R6(l);g.c(this,X);X=X.element;g.jR(l,X,4)}var F=l.getVideoData();this.Zs=new td5(L,function(Z){return n.aD(Z)},F,O.Rh,!1); g.c(this,this.Zs);this.Zs.subscribe("autohideupdate",this.xK,this);if(!O.disablePaidContentOverlay){var x=new LJf(l);g.c(this,x);g.jR(l,x.element,4)}this.b8=new CR(l);g.c(this,this.b8);g.jR(this.api,this.b8.element,2);this.Ho=this.api.isMutedByMutedAutoplay();this.U(l,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.QQ=new g.vs(this.by,200,this);g.c(this,this.QQ);this.I8=F.videoId;this.wG=new g.vs(function(){n.Qm=0},350); g.c(this,this.wG);this.Yr=new g.vs(function(){n.Ij||ZM5(n)},350,this); g.c(this,this.Yr);F=l.getRootNode();F.setAttribute("aria-label","YouTube Video Player");switch(O.color){case "white":g.FW(F,"ytp-color-white")}this.U(l,"appresize",this.x4);this.U(l,"presentingplayerstatechange",this.gt);this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"videoplayerreset",this.OpQ);this.U(l,"autonavvisibility",function(){n.Qz()}); this.U(l,"sizestylechange",function(){n.Qz()}); this.U(L,"click",this.Je2,this);this.U(L,"dblclick",this.ztF,this);this.U(L,"mousedown",this.wSp,this);O.JA&&(this.U(L,"gesturechange",this.Eh1,this),this.U(L,"gestureend",this.qKf,this));this.Rr=[L.LO];this.tM&&this.Rr.push(this.tM.element);X&&this.Rr.push(X);this.api.J("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(L.element,this,247482),this.api.logVisibility(L.element,!0))}; JLi=function(l,n){if(!n)return!1;var O=l.api.T$();if(O.gp()&&(O=O.De())&&g.Fg(O,n))return O.controls;for(O=0;O<l.Rr.length;O++)if(g.Fg(l.Rr[O],n))return!1;O=g.P(l.otf);for(var L=O.next();!L.done;L=O.next())if(g.oK(n,L.value))return!1;return n===l.api.getRootNode()?!1:!0}; wB9=function(l){var n=l.api.getPresentingPlayerType()===2&&(l.api.xP().dL||l.api.j().disableOrganicUi||!1)&&l.api.j().W&&z4&&v8>=11;l=l.api.j().G&&z4;return!(!n&&!l)}; lq=function(l,n){return!l.api.isInline()&&!JLi(l,kT(n))&&g.yz(n)}; ZM5=function(l){l.Zs.lA();if(l.Da&&l.yB)l.yB=!1;else if(!l.api.j().Hm&&!l.Pd()){var n=l.api.getPlayerStateObject();g.K(n,2)&&g.qc(l.api)||l.Gg(n);!l.api.j().JA||n.isCued()||g.K(n,1024)?l.by():l.QQ.isActive()?(l.g3(),l.QQ.stop()):l.QQ.start()}}; HMv=function(l,n){var O;if((O=l.api.getVideoData())==null?0:O.mutedAutoplay){var L,X;if((L=n.target)==null?0:(X=L.className)==null?0:X.includes("ytp-info-panel"))return!1}return g.yz(n)&&l.api.isMutedByMutedAutoplay()?(l.api.unMute(),l.api.getPresentingPlayerType()===2&&l.api.playVideo(),n=l.api.getPlayerStateObject(),!g.K(n,4)||g.K(n,8)||g.K(n,2)||l.by(),!0):!1}; AL8=function(l,n,O){l.api.isFullscreen()?O<1-n&&l.api.toggleFullscreen():O>1+n&&l.api.toggleFullscreen()}; h$0=function(l){var n=ph()&&zj()>=67&&!l.api.j().G;l=l.api.j().disableOrganicUi;return!g.S_("tizen")&&!lO&&!n&&!l}; nT=function(l,n){n=n===void 0?2:n;g.hj.call(this);this.api=l;this.S=null;this.RI=new MV(this);g.c(this,this.RI);this.W=LBq;this.RI.U(this.api,"presentingplayerstatechange",this.WA);this.S=this.RI.U(this.api,"progresssync",this.tC);this.qF=n;this.qF===1&&this.tC()}; g.OX=function(l){g.f.call(this,{D:"div",K:[{D:"div",X:"ytp-bezel-text-wrapper",K:[{D:"div",X:"ytp-bezel-text",hG:"{{title}}"}]},{D:"div",X:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},K:[{D:"div",X:"ytp-bezel-icon",hG:"{{icon}}"}]}]});this.C=l;this.W=new g.vs(this.show,10,this);l=this.C.J("delhi_modern_web_player")?1E3:500;this.S=new g.vs(this.hide,l,this);g.c(this,this.W);g.c(this,this.S);this.hide()}; LT=function(l,n,O){if(n<=0){O=YR();n="muted";var L=0}else O=O?{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},L=Math.floor(n),n=L+"volume";g5(l,O,n,L+"%")}; bM9=function(l,n){n=n?{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:TF9();var O=l.C.getPlaybackRate(),L=g.uN("Speed is $RATE",{RATE:String(O)});g5(l,n,L,O+"x")}; rLi=function(l,n){n=n?"Subtitles/closed captions on":"Subtitles/closed captions off";g5(l,OD9(),n)}; g5=function(l,n,O,L){L=L===void 0?"":L;l.updateValue("label",O===void 0?"":O);l.updateValue("icon",n);g.OJ(l.S);l.W.start();l.updateValue("title",L);g.wP(l.element,"ytp-bezel-text-hide",!L)}; Una=function(l,n){g.f.call(this,{D:"button",gq:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"span",X:"ytp-cards-button-icon-default",K:[{D:"div",X:"ytp-cards-button-icon",K:[l.j().J("player_new_info_card_format")?NFq():{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {D:"div",X:"ytp-cards-button-title",hG:"Info"}]},{D:"span",X:"ytp-cards-button-icon-shopping",K:[{D:"div",X:"ytp-cards-button-icon",K:[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",X:"ytp-svg-shadow",Z:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{D:"path",X:"ytp-svg-fill",Z:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{D:"path",X:"ytp-svg-shadow-fill",Z:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{D:"div", X:"ytp-cards-button-title",hG:"Shopping"}]}]});this.C=l;this.W=n;this.S=null;this.fade=new g.gy(this,250,!0,100);g.c(this,this.fade);g.wP(this.W,"ytp-show-cards-title",g.yG(l.j()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.zUi);this.jK(!0)}; uNk=function(l,n){g.f.call(this,{D:"div",X:"ytp-cards-teaser",K:[{D:"div",X:"ytp-cards-teaser-box"},{D:"div",X:"ytp-cards-teaser-text",K:l.j().J("player_new_info_card_format")?[{D:"button",X:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Show cards","aria-haspopup":"true"},K:[NFq()]},{D:"span",X:"ytp-cards-teaser-label",hG:"{{text}}"},{D:"button",X:"ytp-cards-teaser-close-button",Z:{"aria-label":"Close"},K:[g.Ew()]}]:[{D:"span",X:"ytp-cards-teaser-label",hG:"{{text}}"}]}]});var O=this;this.C=l;this.BG= n;this.fade=new g.gy(this,250,!1,250);this.S=null;this.T=new g.vs(this.ACp,300,this);this.V=new g.vs(this.U5m,2E3,this);this.L=[];this.W=null;this.G=new g.vs(function(){O.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.c(this,this.fade);g.c(this,this.T);g.c(this,this.V);g.c(this,this.G);l.j().J("player_new_info_card_format")?(g.FW(l.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.mJ("ytp-cards-teaser-close-button"),"click",this.Np),this.U(this.mJ("ytp-cards-teaser-info-icon"),"click",this.aj),this.U(this.mJ("ytp-cards-teaser-label"),"click",this.aj)):this.listen("click",this.aj);this.U(n.element,"mouseover",this.PP);this.U(n.element,"mouseout",this.Fd);this.U(l,"cardsteasershow", this.Zoi);this.U(l,"cardsteaserhide",this.Te);this.U(l,"cardstatechange",this.oW);this.U(l,"presentingplayerstatechange",this.oW);this.U(l,"appresize",this.Vy);this.U(l,"onShowControls",this.Vy);this.U(l,"onHideControls",this.FH);this.listen("mouseenter",this.sB)}; Py8=function(l){g.f.call(this,{D:"button",gq:[Xd.BUTTON,Xd.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{D:"div",X:Xd.TITLE_NOTIFICATIONS_ON,Z:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},K:[g.q6()]},{D:"div",X:Xd.TITLE_NOTIFICATIONS_OFF,Z:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},K:[{D:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{D:"path",Z:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=l;this.S=!1;l.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; Td5=function(l,n){l.S=n;l.element.classList.toggle(Xd.NOTIFICATIONS_ENABLED,l.S);var O=l.api.getVideoData();O?(n=n?O.gY:O.BU)?(l=l.api.A2())?RM(l,n):g.Ir(Error("No innertube service available when updating notification preferences.")):g.Ir(Error("No update preferences command available.")):g.Ir(Error("No video data when updating notification preferences."))}; Ev8=function(l,n,O){var L=L===void 0?800:L;var X=X===void 0?600:X;var F=document.location.protocol;l=Ewk(F+"//"+l+"/signin?context=popup","feature",n,"next",F+"//"+location.hostname+"/post_login");WJ0(l,O,L,X)}; WJ0=function(l,n,O,L){O=O===void 0?800:O;L=L===void 0?600:L;if(l=g.V6(window,l,"loginPopup","width="+O+",height="+L+",resizable=yes,scrollbars=yes"))Pk8(function(){n()}),l.moveTo((screen.width-O)/2,(screen.height-L)/2)}; g.oX=function(l,n,O,L,X,F,x,Z,J,w,H,A){l=l.charAt(0)+l.substring(1).toLowerCase();O=O.charAt(0)+O.substring(1).toLowerCase();if(n==="0"||n==="-1")n=null;if(L==="0"||L==="-1")L=null;var b=H.j(),r=b.userDisplayName&&g.GH(b);g.f.call(this,{D:"div",gq:["ytp-button","ytp-sb"],K:[{D:"div",X:"ytp-sb-subscribe",Z:r?{title:g.uN("Subscribe as $USER_NAME",{USER_NAME:b.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":ny(b),"data-tooltip-opaque":String(g.yG(b)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},K:[{D:"div",X:"ytp-sb-text",K:[{D:"div",X:"ytp-sb-icon"},l]},n?{D:"div",X:"ytp-sb-count",hG:n}:""]},{D:"div",X:"ytp-sb-unsubscribe",Z:r?{title:g.uN("Subscribed as $USER_NAME",{USER_NAME:b.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":ny(b),"data-tooltip-opaque":String(g.yG(b)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},K:[{D:"div",X:"ytp-sb-text",K:[{D:"div",X:"ytp-sb-icon"},O]},L?{D:"div",X:"ytp-sb-count", hG:L}:""]}],Z:{"aria-live":"polite"}});var U=this;this.channelId=x;this.C=H;this.N=A;var W=this.mJ("ytp-sb-subscribe"),N=this.mJ("ytp-sb-unsubscribe");F&&g.FW(this.element,"ytp-sb-classic");if(X){Z?this.S():this.W();var q=function(){if(b.Q5){var e=U.channelId;if(J||w){var d={c:e};var B;g.jk.isInitialized()&&(B=Woa(d));d=B||"";if(B=H.getVideoData())if(B=B.subscribeCommand){var R=H.A2();R?(RM(R,B,{botguardResponse:d,feature:J}),H.lF("SUBSCRIBE",e)):g.Ir(Error("No innertube service available when updating subscriptions."))}else g.Ir(Error("No subscribe command in videoData.")); else g.Ir(Error("No video data available when updating subscription."))}N.focus();N.removeAttribute("aria-hidden");W.setAttribute("aria-hidden","true")}else Ev8(g.SV(U.C.j()),"sb_button",U.L)},y=function(){var e=U.channelId; if(J||w){var d=H.getVideoData();RM(H.A2(),d.unsubscribeCommand,{feature:J});H.lF("UNSUBSCRIBE",e)}W.focus();W.removeAttribute("aria-hidden");N.setAttribute("aria-hidden","true")}; this.U(W,"click",q);this.U(N,"click",y);this.U(W,"keypress",function(e){e.keyCode===13&&q(e)}); this.U(N,"keypress",function(e){e.keyCode===13&&y(e)}); this.U(H,"SUBSCRIBE",this.S);this.U(H,"UNSUBSCRIBE",this.W);this.N&&r&&(V70(H),EY(H,W,this),EY(H,N,this))}else g.FW(W,"ytp-sb-disabled"),g.FW(N,"ytp-sb-disabled")}; q55=function(l){g.f.call(this,{D:"div",X:"ytp-title-channel",K:[{D:"div",X:"ytp-title-beacon"},{D:"a",X:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:l.j().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",X:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{D:"div",X:"ytp-title-expanded-heading",K:[{D:"div",X:"ytp-title-expanded-title",K:[{D:"a",hG:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:l.j().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",X:"ytp-title-expanded-subtitle",hG:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var n=this;this.api=l;this.channel=this.mJ("ytp-title-channel");this.W=this.mJ("ytp-title-channel-logo");this.channelName=this.mJ("ytp-title-expanded-title");this.V=this.mJ("ytp-title-expanded-overlay");this.N=this.S=this.subscribeButton=null;this.L=!1;l.createClientVe(this.W,this,36925);l.createClientVe(this.channelName,this, 37220);g.yG(this.api.j())&&Nd0(this);this.U(l,"videodatachange",this.y5);this.U(l,"videoplayerreset",this.y5);this.U(this.channelName,"click",function(O){n.api.logClick(n.channelName);g.V6(window,Dnf(n));O.preventDefault()}); this.U(this.W,"click",this.Y_q);this.y5()}; kag=function(l){if(!l.api.j().Wk){var n=l.api.getVideoData(),O=new g.oX("Subscribe",null,"Subscribed",null,!0,!1,n.dJ,n.subscribed,"channel_avatar",null,l.api,!0);l.api.createServerVe(O.element,l);var L;l.api.setTrackingParams(O.element,((L=n.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);l.U(O.element,"click",function(){l.api.logClick(O.element)}); l.subscribeButton=O;g.c(l,l.subscribeButton);l.subscribeButton.V5(l.V);l.subscribeButton.hide();var X=new Py8(l.api);l.S=X;g.c(l,X);X.V5(l.V);X.hide();l.U(l.api,"SUBSCRIBE",function(){n.rA&&(X.show(),l.api.logVisibility(X.element,!0))}); l.U(l.api,"UNSUBSCRIBE",function(){n.rA&&(X.hide(),l.api.logVisibility(X.element,!1),Td5(X,!1))})}}; Nd0=function(l){var n=l.api.j();kag(l);l.updateValue("flyoutUnfocusable","true");l.updateValue("channelTitleFocusable","-1");l.updateValue("shouldHideExpandedTitleForA11y","true");l.updateValue("shouldHideExpandedSubtitleForA11y","true");n.W||n.Fi||(l.U(l.channel,"mouseenter",l.vF),l.U(l.channel,"mouseleave",l.JH),l.U(l.channel,"focusin",l.vF),l.U(l.channel,"focusout",function(O){l.channel.contains(O.relatedTarget)||l.JH()})); l.N=new g.vs(function(){l.isExpanded()&&(l.api.logVisibility(l.channelName,!1),l.subscribeButton&&(l.subscribeButton.hide(),l.api.logVisibility(l.subscribeButton.element,!1)),l.S&&(l.S.hide(),l.api.logVisibility(l.S.element,!1)),l.channel.classList.remove("ytp-title-expanded"),l.channel.classList.add("ytp-title-show-collapsed"))},500); g.c(l,l.N);l.U(l.channel,yL5,function(){MK5(l)}); l.U(l.api,"onHideControls",l.qf);l.U(l.api,"appresize",l.qf);l.U(l.api,"fullscreentoggled",l.qf)}; MK5=function(l){l.channel.classList.remove("ytp-title-show-collapsed");l.channel.classList.remove("ytp-title-show-expanded")}; QP0=function(l){var n=l.api.getPlayerSize();return g.yG(l.api.j())&&n.width>=524}; Dnf=function(l){var n=l.api.j(),O=l.api.getVideoData(),L=g.O7(n)+O.JA;g.OY(O)&&(L="https://music.youtube.com"+O.JA);if(!g.yG(n))return L;n={};g.hA(l.api,"addEmbedsConversionTrackingParams",[n]);return g.pr(L,n)}; Fd=function(l){var n=g.pF({"aria-haspopup":"true"});g.SR.call(this,n,l);this.listen("keydown",this.S)}; x3=function(l,n){l.element.setAttribute("aria-haspopup",String(n))}; e$9=function(l,n){g.f.call(this,{D:"div",X:"ytp-user-info-panel",Z:{"aria-label":"User info"},K:l.j().Q5&&!l.J("embeds_web_always_enable_signed_out_state")?[{D:"div",X:"ytp-user-info-panel-icon",hG:"{{icon}}"},{D:"div",X:"ytp-user-info-panel-content",K:[{D:"div",X:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},hG:"{{watchingAsUsername}}"},{D:"div",X:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},hG:"{{watchingAsEmail}}"}]}]:[{D:"div",X:"ytp-user-info-panel-icon", hG:"{{icon}}"},{D:"div",X:"ytp-user-info-panel-content",K:[{D:"div",K:[{D:"text",Z:{tabIndex:"{{userInfoFocusable}}"},hG:"Signed out"}]},{D:"div",X:"ytp-user-info-panel-login",K:[{D:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},hG:l.j().Wk?"":"Sign in on YouTube"}]}]}]});this.iF=l;this.S=n;l.j().Q5||l.j().Wk||this.U(this.mJ("ytp-user-info-panel-login"),"click",this.o5);this.closeButton=new g.f({D:"button",gq:["ytp-collapse","ytp-button"],Z:{title:"Close"},K:[g.ef()]});this.closeButton.V5(this.element); g.c(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.vA);this.y5()}; jP8=function(l,n,O){g.$8.call(this,l);this.C5=n;this.po=O;this.getVideoUrl=new Fd(6);this.I4=new Fd(5);this.US=new Fd(4);this.sC=new Fd(3);this.rl=new g.SR(g.pF({href:"{{href}}",target:this.C.j().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.SR(g.pF(),1,"Stats for nerds");this.D4=new g.Aj({D:"div",gq:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},hG:"{{text}}"});this.V_=new dr(this.C,this.D4);this.Hq=this.MI=null;g.yG(this.C.j())&&(this.closeButton= new g.f({D:"button",gq:["ytp-collapse","ytp-button"],Z:{title:"Close"},K:[g.ef()]}),g.c(this,this.closeButton),this.closeButton.V5(this.element),this.closeButton.listen("click",this.jE,this));g.yG(this.C.j())&&(this.St=new g.SR(g.pF(),8,"Account"),g.c(this,this.St),this.yu(this.St,!0),this.St.listen("click",this.nhp,this),l.createClientVe(this.St.element,this.St,137682));this.C.j().rH&&(this.I_=new ne("Loop",7),g.c(this,this.I_),this.yu(this.I_,!0),this.I_.listen("click",this.ipq,this),l.createClientVe(this.I_.element, this.I_,28661));g.c(this,this.getVideoUrl);this.yu(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.g45,this);l.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.c(this,this.I4);this.yu(this.I4,!0);this.I4.listen("click",this.JCi,this);l.createClientVe(this.I4.element,this.I4,28660);g.c(this,this.US);this.yu(this.US,!0);this.US.listen("click",this.HpG,this);l.createClientVe(this.US.element,this.US,28658);g.c(this,this.sC);this.yu(this.sC,!0);this.sC.listen("click",this.BKz, this);g.c(this,this.rl);this.yu(this.rl,!0);this.rl.listen("click",this.V35,this);g.c(this,this.showVideoInfo);this.yu(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.G$5,this);g.c(this,this.D4);this.D4.listen("click",this.NKF,this);g.c(this,this.V_);n=document.queryCommandSupported&&document.queryCommandSupported("copy");s89("Chromium")>=43&&(n=!0);s89("Firefox")<=40&&(n=!1);n&&(this.MI=new g.f({D:"textarea",X:"ytp-html5-clipboard",Z:{readonly:"",tabindex:"-1"}}),g.c(this,this.MI), this.MI.V5(this.element));var L;(L=this.St)==null||L.setIcon(yG8());var X;(X=this.I_)==null||X.setIcon({D:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.sC.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.rl.setIcon(WIf());this.showVideoInfo.setIcon(Et5());this.U(l,"onLoopChange",this.onLoopChange);this.U(l,"videodatachange",this.onVideoDataChange);Y5e(this);this.OI(this.C.getVideoData())}; Zz=function(l,n){var O=!1;if(l.MI){var L=l.MI.element;L.value=n;L.select();try{O=document.execCommand("copy")}catch(X){}}O?l.C5.Te():(l.D4.NP(n,"text"),g.cL(l.C5,l.V_),oq(l.D4.element),l.MI&&(l.MI=null,Y5e(l)));return O}; Y5e=function(l){var n=!!l.MI;g.zM(l.sC,n?"Copy debug info":"Get debug info");x3(l.sC,!n);g.zM(l.US,n?"Copy embed code":"Get embed code");x3(l.US,!n);g.zM(l.getVideoUrl,n?"Copy video URL":"Get video URL");x3(l.getVideoUrl,!n);g.zM(l.I4,n?"Copy video URL at current time":"Get video URL at current time");x3(l.I4,!n);l.US.setIcon(n?umv():null);l.getVideoUrl.setIcon(n?N6():null);l.I4.setIcon(n?N6():null)}; Gaq=function(l){return g.yG(l.C.j())?l.St:l.I_}; IHg=function(l,n){g.BL.call(this,l);this.po=n;this.L=new g.$B(this);this.Wm=new g.vs(this.NiJ,1E3,this);this.NQ=this.N=null;g.c(this,this.L);g.c(this,this.Wm);n=this.C.j();l.createClientVe(this.element,this,28656);g.FW(this.element,"ytp-contextmenu");this.C.j().experiments.MQ("delhi_modern_web_player")&&g.a5(n)&&g.FW(this.element,"ytp-delhi-modern-contextmenu");mna(this);this.hide()}; mna=function(l){g.eU(l.L);var n=l.C.j();n.playerStyle==="gvn"||n.W||n.Fi||(n=l.C.xP(),l.L.U(n,"contextmenu",l.SCp),l.L.U(n,"touchstart",l.R5,null,!0),l.L.U(n,"touchmove",l.FB,null,!0),l.L.U(n,"touchend",l.FB,null,!0))}; dn0=function(l){l.C.isFullscreen()?g.jR(l.C,l.element,10):l.V5(BD(l).body)}; Jb=function(l,n,O){O=O===void 0?240:O;g.f.call(this,{D:"button",gq:["ytp-button","ytp-copylink-button"],Z:{title:"{{title-attr}}","data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"div",X:"ytp-copylink-icon",hG:"{{icon}}"},{D:"div",X:"ytp-copylink-title",hG:"Copy link",Z:{"aria-hidden":"true"}}]});this.api=l;this.S=n;this.W=O;this.visible=!1;this.tooltip=this.S.VE();n=l.j();this.tooltip.element.setAttribute("aria-live","polite");g.wP(this.element,"ytp-show-copylink-title",g.yG(n));l.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.U(l,"videodatachange",this.y5);this.U(l,"videoplayerreset",this.y5);this.U(l,"appresize",this.y5);this.y5();this.addOnDisposeCallback(g.WD(this.tooltip,this.element))}; $nk=function(l){var n=l.api.j(),O=l.api.getVideoData(),L=l.api.xP().getPlayerSize().width;n=n.N;return!!O.videoId&&L>=l.W&&O.mS&&!g.l4(O)&&!l.api.isEmbedsShortsMode()&&!n}; VK9=function(l){l.updateValue("icon",Pr());if(l.api.j().W)l.tooltip.KY(l.element,"Link copied to clipboard");else{l.updateValue("title-attr","Link copied to clipboard");l.tooltip.h2();l.tooltip.KY(l.element);var n=l.listen("mouseleave",function(){l.EC(n);l.y5();l.tooltip.BH()})}}; Bdv=function(l,n){return g.Y(function(O){if(O.S==1)return g.We(O,2),g.Q(O,navigator.clipboard.writeText(n),4);if(O.S!=2)return O.return(!0);g.D5(O);var L=O.return,X=!1,F=g.nf("TEXTAREA");F.value=n;F.setAttribute("readonly","");var x=l.api.getRootNode();x.appendChild(F);if(aZ){var Z=window.getSelection();Z.removeAllRanges();var J=document.createRange();J.selectNodeContents(F);Z.addRange(J);F.setSelectionRange(0,n.length)}else F.select();try{X=document.execCommand("copy")}catch(w){}x.removeChild(F); return L.call(O,X)})}; w5=function(l){g.f.call(this,{D:"div",X:"ytp-doubletap-ui-legacy",K:[{D:"div",X:"ytp-doubletap-fast-forward-ve"},{D:"div",X:"ytp-doubletap-rewind-ve"},{D:"div",X:"ytp-doubletap-static-circle",K:[{D:"div",X:"ytp-doubletap-ripple"}]},{D:"div",X:"ytp-doubletap-overlay-a11y"},{D:"div",X:"ytp-doubletap-seek-info-container",K:[{D:"div",X:"ytp-doubletap-arrows-container",K:[{D:"span",X:"ytp-doubletap-base-arrow"},{D:"span",X:"ytp-doubletap-base-arrow"},{D:"span",X:"ytp-doubletap-base-arrow"}]},{D:"div", X:"ytp-doubletap-tooltip",K:[{D:"div",X:"ytp-seek-icon-text-container",K:[{D:"div",X:"ytp-seek-icon",hG:"{{seekIcon}}"},{D:"div",X:"ytp-chapter-seek-text-legacy",hG:"{{seekText}}"}]},{D:"div",X:"ytp-doubletap-tooltip-label",hG:"{{seekTime}}"}]}]}]});this.C=l;this.L=new g.vs(this.show,10,this);this.W=new g.vs(this.hide,700,this);this.T=this.N=0;this.Wm=this.V=!1;this.S=this.mJ("ytp-doubletap-static-circle");g.c(this,this.L);g.c(this,this.W);this.hide();this.G=this.mJ("ytp-doubletap-fast-forward-ve"); this.Y=this.mJ("ytp-doubletap-rewind-ve");this.C.createClientVe(this.G,this,28240);this.C.createClientVe(this.Y,this,28239);this.C.logVisibility(this.G,!0);this.C.logVisibility(this.Y,!0);this.V=l.J("web_show_cumulative_seek_time");this.Wm=l.J("web_center_static_circles")}; HA=function(l,n,O,L){if(L=L===void 0?null:L){var X=n===-1?l.Y.visualElement:l.G.visualElement;L={seekData:L};var F=g.yS();F&&g.lk(lm)(void 0,F,X,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",L,void 0)}l.N=n===l.T?l.N+O:O;l.T=n;X=l.C.xP().getPlayerSize();l.V?l.W.stop():g.OJ(l.W);l.L.start();l.element.setAttribute("data-side",n===-1?"back":"forward");g.FW(l.element,"ytp-time-seeking");l.S.style.width="110px";l.S.style.height="110px";L=X.width*.1-15;n===1?l.Wm?(l.S.style.right=L+"px",l.S.style.left=""): (l.S.style.right="",l.S.style.left=X.width*.8-30+"px"):n===-1&&(l.Wm?(l.S.style.right="",l.S.style.left=L+"px"):(l.S.style.right="",l.S.style.left=X.width*.1-15+"px"));l.S.style.top=X.height*.5+15+"px";cL7(l,l.V?l.N:O)}; iM9=function(l,n,O,L){L=L===void 0?null:L;g.OJ(l.W);l.L.start();switch(n){case -1:n="back";break;case 1:n="forward";break;default:n=""}l.element.setAttribute("data-side",n);l.S.style.width="0";l.S.style.height="0";g.FW(l.element,"ytp-chapter-seek");l.updateValue("seekText",O);l.updateValue("seekTime","");O=l.mJ("ytp-seek-icon");if(L){a:if(L){switch(L){case "PREMIUM_STANDALONE":L={D:"svg",Z:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},K:[{D:"path",Z:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{D:"path",Z:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":L={D:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"rect",Z:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{D:"rect",Z:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{D:"path",Z:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{D:"defs",K:[{D:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},K:[{D:"stop",Z:{offset:"0.3","stop-color":"#E1002D"}},{D:"stop",Z:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}L=void 0}else L=null;l.updateValue("seekIcon",L);O.style.display="inline-block"}else O.style.display="none"}; cL7=function(l,n){n=g.uN("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:n.toString()});l.updateValue("seekTime",n)}; z$0=function(l){Iy.call(this,l,!1,!0);this.Lf=[];this.n5=[];this.G=!0;this.badge.element.classList.add("ytp-featured-product");this.Cf=new g.f({D:"div",X:"ytp-featured-product-open-in-new"});g.c(this,this.Cf);this.countdownTimer=new g.f({D:"text",X:"ytp-featured-product-countdown",hG:"{{content}}"});this.countdownTimer.hide();g.c(this,this.countdownTimer);this.W=new g.f({D:"div",X:"ytp-featured-product-trending",K:[{D:"div",X:"ytp-featured-product-trending-icon"},{D:"text",X:"ytp-featured-product-trending-text", hG:"{{trendingOffer}}"}]});this.W.hide();g.c(this,this.W);this.overflowButton=new g.f({D:"button",gq:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.c(this,this.overflowButton);this.T=new g.f({D:"text",X:"ytp-featured-product-exclusive-countdown",hG:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.c(this,this.T);this.V=new g.f({D:"div",X:"ytp-featured-product-exclusive-container",Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, K:[{D:"div",X:"ytp-featured-product-exclusive-badge-container",K:[{D:"div",X:"ytp-featured-product-exclusive-badge",K:[{D:"text",X:"ytp-featured-product-exclusive-badge-text",hG:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.V.hide();g.c(this,this.V);this.banner=new g.f({D:"a",X:"ytp-featured-product-container",K:[{D:"div",X:"ytp-featured-product-thumbnail",K:[{D:"img",Z:{src:"{{thumbnail}}"}},this.Cf]},{D:"div",X:"ytp-featured-product-details",K:[{D:"text",X:"ytp-featured-product-title", hG:"{{title}}"},this.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",X:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},K:[{D:"text",X:"ytp-featured-product-price-when-promotion-text-enabled",hG:"{{price}}",Z:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-promotion-text",hG:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{D:"div",Z:{"aria-label":"{{priceA11yText}}"},K:[{D:"text",X:"ytp-featured-product-price",hG:"{{price}}", Z:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-sales-original-price",hG:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-price-drop-reference-price",hG:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",X:"ytp-featured-product-when-promotion-text-enabled",K:[{D:"text",X:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",hG:"{{affiliateDisclaimer}}"}, this.W,{D:"text",X:"ytp-featured-product-vendor-when-promotion-text-enabled",hG:"{{vendor}}"}]}:{D:"div",K:[{D:"text",X:"ytp-featured-product-affiliate-disclaimer",hG:"{{affiliateDisclaimer}}"},this.C.J("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.V:null,this.W,{D:"text",X:"ytp-featured-product-vendor",hG:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.c(this,this.banner);this.banner.V5(this.N.element);this.U(this.C,g.F4("featured_product"),this.Ah5);this.U(this.C, g.xx("featured_product"),this.eK);this.U(this.C,"videodatachange",this.onVideoDataChange);this.U(this.overflowButton.element,"click",this.eT);this.U(l,"featuredproductdismissed",this.LK)}; S5i=function(l){var n,O;l=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:O.itemData;var L,X,F;return(l==null||!l.affiliateDisclaimer)&&(l==null?0:(L=l.exclusivesData)==null?0:L.exclusiveOfferLabelText)&&(l==null?0:(X=l.exclusivesData)==null?0:X.expirationTimestampMs)&&(l==null?0:(F=l.exclusivesData)==null?0:F.exclusiveOfferCountdownText)?!0:!1}; sPi=function(l){var n,O,L,X,F=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:(L=O.itemData)==null?void 0:(X=L.exclusivesData)==null?void 0:X.expirationTimestampMs;n=(Number(F)-Date.now())/1E3;if(n>0){if(n<604800){var x,Z,J,w;O=(x=l.S)==null?void 0:(Z=x.bannerData)==null?void 0:(J=Z.itemData)==null?void 0:(w=J.exclusivesData)==null?void 0:w.exclusiveOfferCountdownText;if(O!==void 0)for(x=Date.now(),Z=g.P(O),J=Z.next();!J.done;J=Z.next())if(J=J.value,J!==void 0&&J.text!==void 0&&(w=Number(J.textDisplayStartTimestampMs), !isNaN(w)&&x>=w)){J.insertCountdown?(n=J.text.replace(/\$0/,String(uo({seconds:n}))),l.T.NP(n)):l.T.NP(J.text);l.T.show();break}}var H,A,b,r;l.V.update({exclusive:(H=l.S)==null?void 0:(A=H.bannerData)==null?void 0:(b=A.itemData)==null?void 0:(r=b.exclusivesData)==null?void 0:r.exclusiveOfferLabelText});l.V.show();Ab(l);var U;(U=l.Sz)==null||U.start()}else pB9(l)}; pB9=function(l){var n;(n=l.Sz)==null||n.stop();l.T.hide();l.V.hide();bq(l)}; fHk=function(l){var n,O,L=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:O.itemData;return l.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(L==null||!L.priceReplacementText)&&(L==null?0:L.promotionText)?L==null?void 0:L.promotionText.content:null}; KJ9=function(l){var n,O,L=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:O.itemData,X,F;if(!(L!=null&&L.priceReplacementText||l.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(L==null?0:(X=L.dealsData)==null?0:(F=X.sales)==null?0:F.originalPrice)){var x,Z;return L==null?void 0:(x=L.dealsData)==null?void 0:(Z=x.sales)==null?void 0:Z.originalPrice}return null}; aHq=function(l){var n,O,L=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:O.itemData,X,F,x,Z;if(!((L==null?0:L.priceReplacementText)||l.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(L==null?0:(X=L.dealsData)==null?0:(F=X.sales)==null?0:F.originalPrice))&&(L==null?0:(x=L.dealsData)==null?0:(Z=x.priceDrop)==null?0:Z.referencePrice)){var J,w;return L==null?void 0:(J=L.dealsData)==null?void 0:(w=J.priceDrop)==null?void 0:w.referencePrice}return null}; R$8=function(l){var n,O,L=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:O.itemData;if(L==null?0:L.priceReplacementText)return L==null?void 0:L.priceReplacementText;if((L==null?0:L.promotionText)&&l.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var X;return(L==null?void 0:L.price)+" "+(L==null?void 0:(X=L.promotionText)==null?void 0:X.content)}var F,x;if(L==null?0:(F=L.dealsData)==null?0:(x=F.sales)==null?0:x.originalPrice){var Z,J;return L==null?void 0:(Z=L.dealsData)== null?void 0:(J=Z.sales)==null?void 0:J.salesPriceAccessibilityLabel}var w,H;if(L==null?0:(w=L.dealsData)==null?0:(H=w.priceDrop)==null?0:H.referencePrice){var A,b;return(L==null?void 0:L.price)+" "+(L==null?void 0:(A=L.dealsData)==null?void 0:(b=A.priceDrop)==null?void 0:b.referencePrice)}return L==null?void 0:L.price}; Cye=function(l){if(l.C.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var n,O,L;return l.W.Qp?null:(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:(L=O.itemData)==null?void 0:L.vendorName}var X,F,x,Z,J,w;return l.W.Qp||l.V.Qp||((X=l.S)==null?0:(F=X.bannerData)==null?0:(x=F.itemData)==null?0:x.affiliateDisclaimer)?null:(Z=l.S)==null?void 0:(J=Z.bannerData)==null?void 0:(w=J.itemData)==null?void 0:w.vendorName}; vvg=function(l,n){r5(l);if(n){var O=g.lT.getState().entities;O=J9(O,"featuredProductsEntity",n);if(O!=null&&O.productsData){n=[];O=g.P(O.productsData);for(var L=O.next();!L.done;L=O.next()){L=L.value;var X=void 0;if((X=L)!=null&&X.identifier&&L.featuredSegments){l.Lf.push(L);var F=void 0;X=g.P((F=L)==null?void 0:F.featuredSegments);for(F=X.next();!F.done;F=X.next()){var x=F.value;F=tKf(x.startTimeSec);F!==void 0&&(x=tKf(x.endTimeSec),n.push(new g.X4(F*1E3,x===void 0?0x7ffffffffffff:x*1E3,{id:L.identifier, namespace:"featured_product"})))}}}l.C.RA(n)}}}; bq=function(l){if(l.trendingOfferEntityKey){var n=g.lT.getState().entities;if(n=J9(n,"trendingOfferEntity",l.trendingOfferEntityKey)){var O,L,X;n.encodedSkuId!==((O=l.S)==null?void 0:(L=O.bannerData)==null?void 0:(X=L.itemData)==null?void 0:X.encodedOfferSkuId)?Ab(l):(l.W.update({trendingOffer:n.shortLabel+" \u2022 "+n.countLabel}),l.W.show(),l.banner.update({vendor:Cye(l)}))}else Ab(l)}else Ab(l)}; Ab=function(l){l.W.hide();l.banner.update({vendor:Cye(l)})}; r5=function(l){l.Lf=[];l.eK();l.C.cS("featured_product")}; lpi=function(l){var n,O,L,X,F=(n=l.S)==null?void 0:(O=n.bannerData)==null?void 0:(L=O.itemData)==null?void 0:(X=L.hiddenProductOptions)==null?void 0:X.dropTimestampMs;n=(Number(F)-Date.now())/1E3;l.countdownTimer.NP(uo({seconds:n}));if(n>0){var x;(x=l.K5)==null||x.start()}}; nf9=function(l){var n;(n=l.K5)==null||n.stop();l.countdownTimer.hide()}; tKf=function(l){if(l!==void 0&&l.trim()!==""&&(l=Math.trunc(Number(l.trim())),!(isNaN(l)||l<0)))return l}; of0=function(l,n,O){g.f.call(this,{D:"div",gq:["ytp-info-panel-action-item"],K:[{D:"div",X:"ytp-info-panel-action-item-disclaimer",hG:"{{disclaimer}}"},{D:"a",gq:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{D:"div",X:"ytp-info-panel-action-item-icon",hG:"{{icon}}"},{D:"div",X:"ytp-info-panel-action-item-label",hG:"{{label}}"}]}]});this.C=l;this.S=O;this.disclaimer=this.mJ("ytp-info-panel-action-item-disclaimer");this.button= this.mJ("ytp-info-panel-action-item-button");this.MP=!1;this.C.createServerVe(this.element,this,!0);this.listen("click",this.onClick);l="";O=g.z(n==null?void 0:n.onTap,VS);var L=g.z(O,g.$R);this.MP=!1;L?(l=L.url||"",l.startsWith("//")&&(l="https:"+l),this.MP=!0,g.mv(this.button,g.j8(l))):(L=g.z(O,Okq))&&!this.S?((l=L.phoneNumbers)&&l.length>0?(l="sms:"+l[0],L.messageText&&(l+="?&body="+encodeURI(L.messageText))):l="",this.MP=!0,g.mv(this.button,g.j8(l,[gfe]))):(O=g.z(O,LTk))&&!this.S&&(l=O.phoneNumber? "tel:"+O.phoneNumber:"",this.MP=!0,g.mv(this.button,g.j8(l,[Xga])));var X;if(O=(X=n.disclaimerText)==null?void 0:X.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var F;this.update({label:(F=n.bodyText)==null?void 0:F.content,icon:kR(),disclaimer:O})}else{this.disclaimer.style.display="none";var x;this.update({label:(x=n.bodyText)==null?void 0:x.content,icon:kR()})}this.C.setTrackingParams(this.element,n.trackingParams||null);this.MP&&(this.W={externalLinkData:{url:l}})}; FTv=function(l,n){var O=ZT();g.V7.call(this,l,{D:"div",X:"ytp-info-panel-detail-skrim",K:[{D:"div",X:"ytp-info-panel-detail",Z:{role:"dialog",id:O},K:[{D:"div",X:"ytp-info-panel-detail-header",K:[{D:"div",X:"ytp-info-panel-detail-title",hG:"{{title}}"},{D:"button",gq:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Close"},K:[g.Ew()]}]},{D:"div",X:"ytp-info-panel-detail-body",hG:"{{body}}"},{D:"div",X:"ytp-info-panel-detail-items"}]}]},250);this.S=n;this.items=this.mJ("ytp-info-panel-detail-items"); this.N=new g.$B(this);this.itemData=[];this.L=O;this.U(this.mJ("ytp-info-panel-detail-close"),"click",this.Te);this.U(this.mJ("ytp-info-panel-detail-skrim"),"click",this.Te);this.U(this.mJ("ytp-info-panel-detail"),"click",function(L){L.stopPropagation()}); g.c(this,this.N);this.C.createServerVe(this.element,this,!0);this.U(l,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",l.getVideoData());this.hide()}; xNv=function(l,n){l=g.P(l.itemData);for(var O=l.next();!O.done;O=l.next())O=O.value,O.C.logVisibility(O.element,n)}; JQ5=function(l,n){g.f.call(this,{D:"div",X:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":n.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"div",X:"ytp-info-panel-preview-text",hG:"{{text}}"},{D:"div",X:"ytp-info-panel-preview-chevron",hG:"{{chevron}}"}]});var O=this;this.C=l;this.N_=this.S=this.videoId=null;this.N=this.showControls=this.W=!1;this.U(this.element,"click",function(){l.logClick(O.element);l.Pd();cD(n)}); this.fade=new g.gy(this,250,!1,100);g.c(this,this.fade);this.C.createServerVe(this.element,this,!0);this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"presentingplayerstatechange",this.mR);this.U(this.C,"paidcontentoverlayvisibilitychange",this.vY);this.U(this.C,"infopaneldetailvisibilitychange",this.vY);var L=l.getVideoData()||{};hOv(L)&&Zkk(this,L);this.U(l,"onShowControls",this.rC);this.U(l,"onHideControls",this.QM)}; Zkk=function(l,n){if(!n.D9||!l.C.Pp()){var O=n.mH||1E4,L=hOv(n);l.S?n.videoId&&n.videoId!==l.videoId&&(g.OJ(l.S),l.videoId=n.videoId,L?(wgf(l,O,n),l.In()):(l.Te(),l.S.dispose(),l.S=null)):L&&(n.videoId&&(l.videoId=n.videoId),wgf(l,O,n),l.In())}}; hOv=function(l){var n,O,L,X;return!!((n=l.IA)==null?0:(O=n.title)==null?0:O.content)||!!((L=l.IA)==null?0:(X=L.bodyText)==null?0:X.content)}; wgf=function(l,n,O){l.S&&l.S.dispose();l.S=new g.vs(l.KI2,n,l);g.c(l,l.S);var L;n=((L=O.IA)==null?void 0:L.trackingParams)||null;l.C.setTrackingParams(l.element,n);var X;var F,x;if(O==null?0:(F=O.IA)==null?0:(x=F.title)==null?0:x.content){var Z;L=(X=O.IA)==null?void 0:(Z=X.title)==null?void 0:Z.content;var J,w;if((J=O.IA)==null?0:(w=J.bodyText)==null?0:w.content)L+=" \u2022 ";X=L}else X="";var H,A;O=((H=O.IA)==null?void 0:(A=H.bodyText)==null?void 0:A.content)||"";l.update({text:X+O,chevron:g.Wr()})}; Hk8=function(l,n){l.S&&(g.K(n,8)?(l.W=!0,l.In(),l.S.start()):(g.K(n,2)||g.K(n,64))&&l.videoId&&(l.videoId=null))}; UX=function(l){var n=null;try{n=l.toLocaleString("en",{style:"percent"})}catch(O){n=l.toLocaleString(void 0,{style:"percent"})}return n}; uq=function(l,n){var O=0;l=g.P(l);for(var L=l.next();!(L.done||L.value.startTime>n);L=l.next())O++;return O===0?O:O-1}; AQg=function(l,n){for(var O=0,L=g.P(l),X=L.next();!X.done;X=L.next()){X=X.value;if(n<X.timeRangeStartMillis)return null;if(n>=X.timeRangeStartMillis&&n<X.timeRangeStartMillis+X.S)break;O++}O+1<l.length&&l[O+1].timeRangeStartMillis<=n&&O++;return O<l.length?O:null}; bkg=function(l,n){n=uq(l,n)+1;return n<l.length?n:-1}; rQq=function(l,n){return uq(l,n)-1}; UNa=function(l,n){return new g.X4(l,n,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+l})}; PFa=function(l,n,O,L,X,F,x,Z){g.$B.call(this);var J=this;this.api=l;this.contextMenu=O;this.Zs=L;this.po=X;this.S=F;this.V=x;this.progressBar=Z;this.B=new g.vs(function(){uHf(J,!1)},1E3); this.W="";this.N={Qk:!1};this.L=!1;g.c(this,this.B);this.U(n,"mousedown",function(){PA(J,!1)}); this.U(O.element,"mousedown",function(){PA(J,!1)}); this.U(n,"keydown",this.cZ);this.U(O.element,"keydown",this.cZ);this.U(n,"keyup",this.kO);this.U(O.element,"keyup",this.kO)}; Tsv=function(l,n){return n<0?0:Math.floor(Math.min(n,l.api.getDuration())*1E3)}; Ti=function(l,n,O){var L=l.api.getCurrentTime(),X=Tsv(l,L);l=Tsv(l,L+n);return{startMediaTimeMs:X,endMediaTimeMs:l,seekSource:O}}; WTa=function(l){var n,O=(n=l.api.getVideoData())==null?void 0:n.iK();return l.api.getPresentingPlayerType(O)!==2}; PA=function(l,n){l.L=n;g.wP(l.api.getRootNode(),"ytp-probably-keyboard-focus",n);g.wP(l.contextMenu.element,"ytp-probably-keyboard-focus",n)}; EX=function(l,n,O,L){var X=g.G4(l.api.dc());if(X&&X.loaded){var F=l.api.getSubtitlesUserSettings();X=void 0;for(var x=0;x<g.WA.length;x++){var Z=g.WA[x];if(Z.option===n){X=Z.options;break}}x=void 0;for(Z=0;Z<X.length;Z++)X[Z].option===F[n]&&(x=Z);if(L)if(O){if(x===0)return}else if(x===X.length-1)return;L={};L[n]=X[(x+(O?X.length-1:1))%X.length].option;l.api.updateSubtitlesUserSettings(L);uHf(l,!0);l.B.start()}}; uHf=function(l,n){g.G4(l.api.dc())&&l.api.setOption("captions","sampleSubtitles",n)}; g.N2=function(l,n){g.f.call(this,{D:"button",gq:["ytp-button","ytp-overflow-button"],Z:{title:"More","aria-haspopup":"true","aria-owns":n.element.id},K:[{D:"div",X:"ytp-overflow-icon",K:[{D:"svg",Z:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},K:[{D:"path",Z:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var O=this;this.C=l;this.J2=n;this.S=this.visible=!1;l.createClientVe(this.element, this,16499);this.U(l,"videoplayerreset",this.y5);this.U(l,"appresize",this.y5);this.U(l,"fullscreentoggled",this.y5);this.U(l,"presentingplayerstatechange",this.y5);this.y5();EY(l,this.element,this);this.listen("click",function(){l.logClick(O.element);cD(n,O.element,!1)}); this.U(n.closeButton,"click",function(){O.focus()})}; Efi=function(l){g.V7.call(this,l,{D:"div",X:"ytp-overflow-panel",Z:{id:ZT(),role:"dialog"},K:[{D:"div",X:"ytp-overflow-panel-content",K:[{D:"div",X:"ytp-overflow-panel-action-buttons",hG:"{{buttons}}"}]},{D:"button",gq:["ytp-overflow-panel-close","ytp-button"],Z:{title:"Close"},K:[g.Ew()]}]},250);this.actionButtons=[];this.S=this.mJ("ytp-overflow-panel-content");this.closeButton=this.mJ("ytp-overflow-panel-close");this.U(this.closeButton,"click",this.Te);EY(l,this.closeButton,this);this.listen("click", this.Lu);this.U(l,"videoplayerreset",this.hide);this.U(l,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; Nsk=function(l,n){l.actionButtons.includes(n)||(l.actionButtons.push(n),l.updateValue("buttons",l.actionButtons))}; DN5=function(l,n){l=g.P(l.actionButtons);for(var O=l.next();!O.done;O=l.next())O.value.Ge(n)}; qR9=function(l,n,O){var L=g.E8(n,O),X=L.HG("default.jpg");g.f.call(this,{D:"a",gq:["ytp-video-menu-item","ytp-button"],Z:{role:"menuitemradio","aria-label":L.title,href:l.j().getVideoUrl(L.videoId,n.listId?n.listId.toString():null)},K:[{D:"div",X:"ytp-video-menu-item-index",hG:String(O+1)},{D:"div",X:"ytp-video-menu-item-now-playing",hG:"\u25b6"},{D:"div",X:"ytp-video-menu-item-thumbnail",Z:{style:X?"background-image: url("+X+");":void 0}},{D:"div",X:"ytp-video-menu-item-title",hG:L.title},{D:"div", X:"ytp-video-menu-item-author",hG:L.author}]});this.api=l;this.index=O;this.listen("click",this.onClick)}; kL8=function(l){g.V7.call(this,l,{D:"div",X:"ytp-playlist-menu",Z:{role:"dialog",id:ZT()},K:[{D:"div",X:"ytp-playlist-menu-header",K:[{D:"div",X:"ytp-playlist-menu-title",K:[l.j().N?{D:"span",X:"ytp-playlist-menu-title-name",hG:"{{title}}"}:{D:"a",X:"ytp-playlist-menu-title-name",Z:{href:"{{playlisturl}}"},hG:"{{title}}"},{D:"button",gq:["ytp-playlist-menu-close","ytp-button"],Z:{"aria-label":"Close"},K:[g.Ew()]}]},{D:"div",X:"ytp-playlist-menu-subtitle",hG:"{{subtitle}}"}]},{D:"div",X:"ytp-playlist-menu-items", Z:{role:"menu"}}]},250);this.api=l;this.N=this.selected=this.L=this.playlist=null;this.items=this.mJ("ytp-playlist-menu-items");this.S=new g.$B(this);this.playlistData=[];this.U(this.mJ("ytp-playlist-menu-close"),"click",this.Te);var n=this.mJ("ytp-playlist-menu-title-name");l.j().N||(this.N=this.U(n,"click",this.SUz));g.c(this,this.S);this.hide()}; Dz=function(l,n){g.f.call(this,{D:"button",gq:["ytp-playlist-menu-button","ytp-button"],Z:{title:"{{title}}","aria-owns":String(n.element.id),"aria-haspopup":"true","aria-label":"Playlist"},K:[{D:"div",X:"ytp-playlist-menu-button-icon",K:[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z", fill:"#fff"}}]}]},{D:"div",X:"ytp-playlist-menu-button-text",hG:"{{text}}"}]});var O=this;this.api=l;this.playlist=null;this.visible=!1;l.createClientVe(this.element,this,70344);this.U(l,"videodatachange",this.S);this.U(l,"videoplayerreset",this.S);this.U(l,"onPlaylistUpdate",this.S);this.U(l,"presentingplayerstatechange",this.y5);this.U(l,"appresize",this.y5);this.hide();this.S();EY(l,this.element,this);this.listen("click",function(){l.logClick(O.element);cD(n,O.element,!1)})}; yQ5=function(l,n){g.f.call(this,{D:"div",X:"ytp-promotooltip-wrapper",K:[{D:"div",X:"ytp-promotooltip-container",K:[{D:"div",X:"ytp-promotooltip-content",K:[{D:"div",X:"ytp-promotooltip-title",hG:"{{title}}"},{D:"div",X:"ytp-promotooltip-details",hG:"{{details}}"}]},{D:"div",X:"ytp-promotooltip-buttons",K:[{D:"div",X:"ytp-promotooltip-dismiss-button",hG:"{{dismissButtonText}}",Z:{tabindex:"0"}},{D:"div",X:"ytp-promotooltip-accept-button",hG:"{{acceptButtonText}}",Z:{tabindex:"0","aria-haspopup":"true"}}]}]}, {D:"div",X:"ytp-promotooltip-pointer"}]});var O=this;this.tooltipRenderer=l;this.C=n;this.S=this.N=null;this.title=this.mJ("ytp-promotooltip-title");this.details=this.mJ("ytp-promotooltip-details");this.acceptButton=this.mJ("ytp-promotooltip-accept-button");this.dismissButton=this.mJ("ytp-promotooltip-dismiss-button");this.W=this.V=!1;this.L=!0;this.Wm=this.T=this.Y=this.G=!1;this.DQ={iq:function(L){O.iq(L)}}; this.vk(!1);l=this.tooltipRenderer.trackingParams||null;if(this.W=!!l)this.C.createServerVe(this.element,this,!0),this.C.setTrackingParams(this.element,l);this.U(n,"onShowControls",this.Cu);this.U(n,"onHideControls",this.DC);this.U(n,"resize",this.x4);this.U(this.acceptButton,"click",this.XjF);this.U(this.dismissButton,"click",this.hUQ);this.U(document,"click",this.VM)}; MG0=function(l){var n=document.querySelectorAll('[data-tooltip-target-id="'+l.tooltipRenderer.targetId+'"]');n=n.length>0?n[0]:null;var O=g.aC("ytp-chrome-bottom"),L=g.aC("ytp-ad-module");l.L=!(O==null||!O.contains(n));l.G=!(L==null||!L.contains(n));l.Y=!(n==null||!n.hasAttribute("data-tooltip-target-fixed"));return n}; YRi=function(l,n,O){if(!l.V){if(n){l.tooltipRenderer=n;n=l.tooltipRenderer.text;var L=!1,X;(n==null?0:(X=n.runs)==null?0:X.length)&&n.runs[0].text&&(l.update({title:n.runs[0].text.toString()}),L=!0);g.q4(l.title,L);n=l.tooltipRenderer.detailsText;X=!1;var F;if((n==null?0:(F=n.runs)==null?0:F.length)&&n.runs[0].text){L=n.runs[0].text.toString();F=L.indexOf("$TARGET_ICON");if(F>-1)if(l.tooltipRenderer.targetId){n=[];L=L.split("$TARGET_ICON");var x=new g.Jj({D:"span",X:"ytp-promotooltip-details-icon", K:[Qs0[l.tooltipRenderer.targetId]]});g.c(l,x);for(var Z=[],J=g.P(L),w=J.next();!w.done;w=J.next())w=new g.Jj({D:"span",X:"ytp-promotooltip-details-component",hG:w.value}),g.c(l,w),Z.push(w);L.length===2?(n.push(Z[0].element),n.push(x.element),n.push(Z[1].element)):L.length===1&&(F===0?(n.push(x.element),n.push(Z[0].element)):(n.push(Z[0].element),n.push(x.element)));F=n.length?n:null}else F=null;else F=L;if(F){if(typeof F!=="string")for(g.Lf(l.details),X=g.P(F),F=X.next();!F.done;F=X.next())l.details.appendChild(F.value); else l.update({details:F});X=!0}}g.q4(l.details,X);X=l.tooltipRenderer.acceptButton;F=!1;var H,A,b;((H=g.z(X,g.dm))==null?0:(A=H.text)==null?0:(b=A.runs)==null?0:b.length)&&g.z(X,g.dm).text.runs[0].text&&(l.update({acceptButtonText:g.z(X,g.dm).text.runs[0].text.toString()}),F=!0);g.q4(l.acceptButton,F);H=l.tooltipRenderer.dismissButton;A=!1;var r,U,W;((r=g.z(H,g.dm))==null?0:(U=r.text)==null?0:(W=U.runs)==null?0:W.length)&&g.z(H,g.dm).text.runs[0].text&&(l.update({dismissButtonText:g.z(H,g.dm).text.runs[0].text.toString()}), A=!0);g.q4(l.dismissButton,A)}O&&(l.N=O);l.S=MG0(l);l.T=!1;l.C.j().J("web_player_hide_nitrate_promo_tooltip")||l.vk(!0);eO9(l);l.Qp&&!l.Wm&&(l.Wm=!0,l.DQ.iq(0));l.W&&l.C.logVisibility(l.element,l.Qp)}}; q2=function(l){l.vk(!1);l.W&&l.C.logVisibility(l.element,l.Qp)}; jse=function(l){var n,O,L,X=((n=g.z(l.acceptButton,g.dm))==null?void 0:(O=n.text)==null?void 0:(L=O.runs)==null?void 0:L.length)&&!!g.z(l.acceptButton,g.dm).text.runs[0].text,F,x,Z;n=((F=g.z(l.dismissButton,g.dm))==null?void 0:(x=F.text)==null?void 0:(Z=x.runs)==null?void 0:Z.length)&&!!g.z(l.dismissButton,g.dm).text.runs[0].text;return X||n}; eO9=function(l){var n;if(!(n=!l.S)){n=l.S;var O=window.getComputedStyle(n);n=O.display==="none"||O.visibility==="hidden"||n.getAttribute("aria-hidden")==="true"}if(n||l.C.isMinimized())l.vk(!1);else if(n=g.D2(l.S),n.width&&n.height){l.C.PJ(l.element,l.S);var L=l.C.xP().getPlayerSize().height;O=g.D2(l.mJ("ytp-promotooltip-container")).height;l.L?l.element.style.top=L-O-n.height-12+"px":l.Y||(L=l.C.FC().height-O-n.height-12,l.element.style.top=L+"px");L=l.mJ("ytp-promotooltip-pointer");var X=g.Eo(l.S, l.C.getRootNode()),F=Number(l.element.style.left.replace(/[^\d\.]/g,""));l=l.C.isFullscreen()?18:12;L.style.left=X.x-F+n.width/2-l+"px";L.style.top=O+"px"}else l.vk(!1)}; k3=function(l){g.f.call(this,{D:"button",gq:["ytp-replay-button","ytp-button"],Z:{title:"Replay"},K:[g.M6()]});this.C=l;this.U(l,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.OC(l.getPlayerStateObject());EY(this.C,this.element,this)}; y0=function(l,n){n=n===void 0?240:n;g.f.call(this,{D:"button",gq:["ytp-button","ytp-search-button"],Z:{title:"Search","data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"div",X:"ytp-search-icon",hG:"{{icon}}"},{D:"div",X:"ytp-search-title",hG:"Search"}]});this.api=l;this.W=n;this.visible=!1;this.updateValue("icon",{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",X:"ytp-svg-fill",Z:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); l.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.S();this.U(l,"appresize",this.S);this.U(l,"videodatachange",this.S);EY(l,this.element,this)}; g.M2=function(l,n,O,L){L=L===void 0?240:L;g.f.call(this,{D:"button",gq:["ytp-button","ytp-share-button"],Z:{title:"Share","aria-haspopup":"true","aria-owns":O.element.id,"data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"div",X:"ytp-share-icon",hG:"{{icon}}"},{D:"div",X:"ytp-share-title",hG:"Share"}]});this.api=l;this.S=n;this.N=O;this.L=L;this.W=this.visible=!1;this.tooltip=this.S.VE();l.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.U(l,"videodatachange",this.y5); this.U(l,"videoplayerreset",this.y5);this.U(l,"appresize",this.y5);this.U(l,"presentingplayerstatechange",this.y5);this.y5();this.addOnDisposeCallback(g.WD(this.tooltip,this.element))}; GLv=function(l){var n=l.api.j(),O=l.api.getVideoData(),L=g.yG(n)&&g.Mc(l.api)&&g.K(l.api.getPlayerStateObject(),128);n=n.N||n.disableSharing&&l.api.getPresentingPlayerType()!==2||!O.showShareButton||O.mS||L||g.l4(O)||l.W;L=l.api.xP().getPlayerSize().width;return!!O.videoId&&L>=l.L&&!n}; mN9=function(l,n){n.name!=="InvalidStateError"&&n.name!=="AbortError"&&(n.name==="NotAllowedError"?(l.S.Pd(),cD(l.N,l.element,!1)):g.Ir(n))}; dNa=function(l,n){var O=ZT(),L=l.j();O={D:"div",X:"ytp-share-panel",Z:{id:ZT(),role:"dialog","aria-labelledby":O},K:[{D:"div",X:"ytp-share-panel-inner-content",K:[{D:"div",X:"ytp-share-panel-title",Z:{id:O},hG:"Share"},{D:"a",gq:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:L.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},hG:"{{linkText}}"},{D:"label",X:"ytp-share-panel-include-playlist",K:[{D:"input",X:"ytp-share-panel-include-playlist-checkbox",Z:{type:"checkbox", checked:"true"}},"Include playlist"]},{D:"div",X:"ytp-share-panel-loading-spinner",K:[Xo()]},{D:"div",X:"ytp-share-panel-service-buttons",hG:"{{buttons}}"},{D:"div",X:"ytp-share-panel-error",hG:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",gq:["ytp-share-panel-close","ytp-button"],Z:{title:"Close"},K:[g.Ew()]}]};g.V7.call(this,l,O,250);var X=this;this.moreButton=null;this.api=l;this.tooltip=n.VE();this.N=[];this.V=this.mJ("ytp-share-panel-inner-content"); this.closeButton=this.mJ("ytp-share-panel-close");this.U(this.closeButton,"click",this.Te);this.addOnDisposeCallback(g.WD(this.tooltip,this.closeButton));this.L=this.mJ("ytp-share-panel-include-playlist-checkbox");this.U(this.L,"click",this.y5);this.S=this.mJ("ytp-share-panel-link");this.addOnDisposeCallback(g.WD(this.tooltip,this.S));this.api.createClientVe(this.S,this,164503);this.U(this.S,"click",function(F){F.preventDefault();X.api.logClick(X.S);var x=X.api.getVideoUrl(!0,!0,!1,!1);x=Ip8(X,x); g.Le(x,X.api,F)&&X.api.lF("SHARE_CLICKED")}); this.listen("click",this.BA);this.U(l,"videoplayerreset",this.hide);this.U(l,"fullscreentoggled",this.onFullscreenToggled);this.U(l,"onLoopRangeChange",this.vP5);this.hide()}; VGa=function(l,n){$N5(l);for(var O=n.links||n.shareTargets,L=0,X={},F=0;F<O.length&&L<2;X={SA:void 0,SF:void 0},F++){X.SA=O[F];a:switch(X.SA.img||X.SA.iconId){case "facebook":var x={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",Z:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":x={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",Z:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:x=null}if(x){var Z=X.SA.sname||X.SA.serviceName;X.SF=new g.f({D:"a",gq:["ytp-share-panel-service-button","ytp-button"],Z:{href:X.SA.url,target:"_blank",title:Z},K:[x]});X.SF.listen("click",function(H){return function(A){var b=H.SA.url;if(g.yz(A)){var r=r===void 0?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";var U=r;U||(U={});r=window;var W=b instanceof ML?b:g.j8(typeof b.href!="undefined"?b.href:String(b));var N=self.crossOriginIsolated!== void 0,q="strict-origin-when-cross-origin";window.Request&&(q=(new Request("/")).referrerPolicy);var y=q==="unsafe-url";q=U.noreferrer;if(N&&q){if(y)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");q=!1}b=U.target||b.target;N=[];for(var e in U)switch(e){case "width":case "height":case "top":case "left":N.push(e+"="+U[e]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":N.push(e+(U[e]?"="+U[e]: ""));break;default:N.push(e+"="+(U[e]?1:0))}e=N.join(",");pO()&&r.navigator&&r.navigator.standalone&&b&&b!="_self"?(e=g.nf("A"),g.mv(e,W),e.target=b,q&&(e.rel="noreferrer"),((U=U.attributionsrc)||U==="")&&e.setAttribute("attributionsrc",U),U=document.createEvent("MouseEvent"),U.initMouseEvent("click",!0,!0,r,1),e.dispatchEvent(U),r={}):q?(r=g.V6(r,"",b,e),U=g.Q6(W),r&&(r.opener=null,U===""&&(U="javascript:''"),U=dY('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ tp(U)+'">'),(W=r.document)&&W.write&&(W.write($u(U)),W.close()))):((r=g.V6(r,W,b,e))&&U.noopener&&(r.opener=null),r&&U.noreferrer&&(r.opener=null));r&&(r.opener||(r.opener=window),r.focus());A.preventDefault()}}}(X)); X.SF.addOnDisposeCallback(g.WD(l.tooltip,X.SF.element));Z==="Facebook"?l.api.createClientVe(X.SF.element,X.SF,164504):Z==="Twitter"&&l.api.createClientVe(X.SF.element,X.SF,164505);l.U(X.SF.element,"click",function(H){return function(){l.api.logClick(H.SF.element)}}(X)); l.api.logVisibility(X.SF.element,!0);l.N.push(X.SF);L++}}var J=n.more||n.moreLink,w=new g.f({D:"a",gq:["ytp-share-panel-service-button","ytp-button"],K:[{D:"span",X:"ytp-share-panel-service-button-more",K:[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",Z:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],Z:{href:J,target:"_blank",title:"More"}});w.listen("click",function(H){var A=J;l.api.logClick(l.moreButton.element);A=Ip8(l,A);g.Le(A,l.api,H)&&l.api.lF("SHARE_CLICKED")}); w.addOnDisposeCallback(g.WD(l.tooltip,w.element));l.api.createClientVe(w.element,w,164506);l.U(w.element,"click",function(){l.api.logClick(w.element)}); l.api.logVisibility(w.element,!0);l.N.push(w);l.moreButton=w;l.updateValue("buttons",l.N)}; Ip8=function(l,n){var O={};g.yG(l.api.j())&&(g.hA(l.api,"addEmbedsConversionTrackingParams",[O]),n=g.pr(n,O));return n}; $N5=function(l){for(var n=g.P(l.N),O=n.next();!O.done;O=n.next())O=O.value,O.detach(),g.h0(O);l.N=[]}; Q0=function(l){return l===void 0||l.startSec===void 0||l.endSec===void 0?!1:!0}; Bsv=function(l,n){l.startSec+=n;l.endSec+=n}; ike=function(l){Iy.call(this,l);this.W=this.S=this.isContentForward=this.T=!1;cQa(this);this.U(this.C,"changeProductsInVideoVisibility",this.YCf);this.U(this.C,"videodatachange",this.onVideoDataChange)}; zOi=function(l){l.V&&l.z3.element.removeChild(l.V.element);l.V=void 0}; pg8=function(l,n){return n.map(function(O){var L,X;if((O=(L=g.z(O,SRv))==null?void 0:(X=L.thumbnail)==null?void 0:X.thumbnails)&&O.length!==0)return O[0].url}).filter(function(O){return O!==void 0}).map(function(O){O=new g.f({D:"img", X:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:O}});g.c(l,O);return O})}; ss8=function(l,n){l.isContentForward=n;g.wP(l.badge.element,"ytp-suggested-action-badge-content-forward",n)}; e2=function(l){var n=l.isContentForward&&!l.Sj();g.wP(l.badge.element,"ytp-suggested-action-badge-preview-collapsed",n&&l.S);g.wP(l.badge.element,"ytp-suggested-action-badge-preview-expanded",n&&l.W)}; Y3=function(l,n,O){return new g.X4(l*1E3,n*1E3,{priority:9,namespace:O})}; fpg=function(l){l.C.cS("shopping_overlay_visible");l.C.cS("shopping_overlay_preview_collapsed");l.C.cS("shopping_overlay_preview_expanded");l.C.cS("shopping_overlay_expanded")}; cQa=function(l){l.U(l.C,g.F4("shopping_overlay_visible"),function(){l.mI(!0)}); l.U(l.C,g.xx("shopping_overlay_visible"),function(){l.mI(!1)}); l.U(l.C,g.F4("shopping_overlay_expanded"),function(){l.NQ=!0;mr(l)}); l.U(l.C,g.xx("shopping_overlay_expanded"),function(){l.NQ=!1;mr(l)}); l.U(l.C,g.F4("shopping_overlay_preview_collapsed"),function(){l.S=!0;e2(l)}); l.U(l.C,g.xx("shopping_overlay_preview_collapsed"),function(){l.S=!1;e2(l)}); l.U(l.C,g.F4("shopping_overlay_preview_expanded"),function(){l.W=!0;e2(l)}); l.U(l.C,g.xx("shopping_overlay_preview_expanded"),function(){l.W=!1;e2(l)})}; RO5=function(l){g.f.call(this,{D:"div",X:"ytp-shorts-title-channel",K:[{D:"a",X:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:l.j().Y,"aria-label":"{{channelLogoLabel}}"}},{D:"div",X:"ytp-shorts-title-expanded-heading",K:[{D:"div",X:"ytp-shorts-title-expanded-title",K:[{D:"a",hG:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:l.j().Y,tabIndex:"0"}}]}]}]});var n=this;this.api=l;this.S=this.mJ("ytp-shorts-title-channel-logo");this.channelName=this.mJ("ytp-shorts-title-expanded-title"); this.subscribeButton=null;l.createClientVe(this.S,this,36925);this.U(this.S,"click",function(O){n.api.logClick(n.S);g.V6(window,KT7(n));O.preventDefault()}); l.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(O){n.api.logClick(n.channelName);g.V6(window,KT7(n));O.preventDefault()}); ap9(this);this.U(l,"videodatachange",this.y5);this.U(l,"videoplayerreset",this.y5);this.y5()}; ap9=function(l){if(!l.api.j().Wk){var n=l.api.getVideoData(),O=new g.oX("Subscribe",null,"Subscribed",null,!0,!1,n.dJ,n.subscribed,"channel_avatar",null,l.api,!0);l.api.createServerVe(O.element,l);var L;l.api.setTrackingParams(O.element,((L=n.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);l.U(O.element,"click",function(){l.api.logClick(O.element)}); l.subscribeButton=O;g.c(l,l.subscribeButton);l.subscribeButton.V5(l.element)}}; KT7=function(l){var n=l.api.j(),O=l.api.getVideoData();O=g.O7(n)+O.JA;if(!g.yG(n))return O;n={};g.hA(l.api,"addEmbedsConversionTrackingParams",[n]);return g.pr(O,n)}; j2=function(l){g.V7.call(this,l,{D:"button",gq:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{D:"div",X:"ytp-skip-intro-button-text",hG:"Skip Intro"}]},100);var n=this;this.N=!1;this.S=new g.vs(function(){n.hide()},5E3); this.OU=this.X$=NaN;g.c(this,this.S);this.T=function(){n.show()}; this.V=function(){n.hide()}; this.L=function(){var O=n.C.getCurrentTime();O>n.X$/1E3&&O<n.OU/1E3&&n.show()}; this.U(this.C,"videodatachange",function(O,L){n.yr(O,L)}); this.U(this.element,"click",function(){n.C.seekTo(n.OU/1E3)}); this.hide()}; Gi=function(l){g.f.call(this,{D:"button",gq:["ytp-airplay-button","ytp-button"],Z:{title:"AirPlay","data-priority":"10"},hG:"{{icon}}"});this.C=l;this.listen("click",this.onClick);this.U(l,"airplayactivechange",this.y5);this.U(l,"airplayavailabilitychange",this.y5);this.y5();EY(l,this.element,this)}; tGv=function(l){g.f.call(this,{D:"div",X:"ytp-gradient-bottom"});this.W=g.nf("CANVAS");this.S=this.W.getContext("2d",{willReadFrequently:!0});this.N=NaN;this.W.width=1;CFe(this,l.xP().getPlayerSize().height)}; CFe=function(l,n){if(l.S){n=Math.floor(n*.4);n=Math.max(n,47);var O=n+2;if(l.N!==O){l.N=O;l.W.height=O;l.S.clearRect(0,0,1,O);var L=l.S.createLinearGradient(0,2,0,2+n),X=n-42;L.addColorStop(0,"rgba(0, 0, 0, 0)");L.addColorStop(X/n,"rgba(0, 0, 0, 0.3)");L.addColorStop(1,"rgba(0, 0, 0, 0.68)");l.S.fillStyle=L;l.S.fillRect(0,2,1,n);l.element.style.height=O+"px";try{l.element.style.backgroundImage="url("+l.W.toDataURL()+")"}catch(F){}}}}; m2=function(l,n,O,L){g.f.call(this,{D:"div",X:"ytp-chapter-container",K:[{D:"button",gq:["ytp-chapter-title","ytp-button"],K:[{D:"span",Z:{"aria-hidden":"true"},X:"ytp-chapter-title-prefix",hG:"\u2022"},{D:"div",X:"ytp-chapter-title-content",hG:"{{title}}",Z:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:L}},{D:"div",X:"ytp-chapter-title-chevron",K:[{D:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z", fill:"#fff"}}]}]}]}]});this.C=l;this.L=n;this.V="";this.currentIndex=0;this.W=void 0;this.N=!0;this.Wm=this.mJ("ytp-chapter-container");this.S=this.mJ("ytp-chapter-title");this.NQ=this.mJ("ytp-chapter-title-content");this.updateVideoData("newdata",this.C.getVideoData());this.U(l,"videodatachange",this.updateVideoData);this.U(this.Wm,"click",this.onClick);this.U(l,g.F4(O),this.tC);this.U(l,"onLoopRangeChange",this.tC);this.U(l,"innertubeCommand",this.onClickCommand);(l=g.I5(this.C.j()))&&g.wP(this.S, "ytp-profile-page",!0);this.C.J("web_player_updated_entrypoint")&&g.wP(this.element,"ytp-xs-mono-button-style",!0);g.yG(this.C.j())||l||EY(this.C,this.NQ,this)}; IX=function(l,n){m2.call(this,l,n,"chapterCueRange","View chapter");this.T=""}; vfv=function(l,n,O,L,X){var F=n.rN/n.rows,x=Math.min(O/(n.vB/n.columns),L/F),Z=n.vB*x,J=n.rN*x;Z=Math.floor(Z/n.columns)*n.columns;J=Math.floor(J/n.rows)*n.rows;var w=Z/n.columns,H=J/n.rows,A=-n.column*w,b=-n.row*H;X&&F<=45&&(H-=1/x);w-=2/x;l=l.style;l.width=w+"px";l.height=H+"px";X||(L=(L-H)/2,O=(O-w)/2,l.marginTop=Math.floor(L)+"px",l.marginBottom=Math.ceil(L)+"px",l.marginLeft=Math.floor(O)+"px",l.marginRight=Math.ceil(O)+"px");l.background="url("+n.url+") "+A+"px "+b+"px/"+Z+"px "+J+"px"}; d5=function(l,n){g.f.call(this,{D:"div",X:"ytp-storyboard-framepreview",K:[{D:"div",X:"ytp-storyboard-framepreview-timestamp",hG:"{{timestamp}}"},{D:"div",X:"ytp-storyboard-framepreview-img"}]});this.api=l;this.N=this.mJ("ytp-storyboard-framepreview-img");this.S=null;this.W=NaN;this.events=new g.$B(this);this.fade=new g.gy(this,100);g.c(this,this.events);g.c(this,this.fade);this.U(this.api,"presentingplayerstatechange",this.L);n&&this.U(this.element,"click",function(){n.m0()})}; lSg=function(l,n){var O=!!l.S;l.S=n;l.S?(O||(l.events.U(l.api,"videodatachange",function(){lSg(l,l.api.LM())}),l.events.U(l.api,"progresssync",l.Mn),l.events.U(l.api,"appresize",l.V)),l.W=NaN,nl5(l),l.fade.show(200)):(O&&g.eU(l.events),l.fade.hide(),l.fade.stop())}; nl5=function(l){var n=l.S,O=l.api.getCurrentTime(),L=l.api.xP().getPlayerSize(),X=m7(n,L.width);X=wii(n,X,O);l.update({timestamp:g.k7(O)});X!==l.W&&(l.W=X,Z65(n,X,L.width),n=x08(n,X,L.width),vfv(l.N,n,L.width,L.height))}; Ogi=function(l,n){g.f.call(this,{D:"button",gq:["ytp-fullscreen-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},hG:"{{icon}}"});this.C=l;this.W=n;this.message=null;this.S=g.WD(this.W.VE(),this.element);this.N=new g.vs(this.t4,2E3,this);g.c(this,this.N);this.U(l,"fullscreentoggled",this.x6);this.U(l,"presentingplayerstatechange",this.y5);this.U(l,"resize",this.y5);this.listen("click",this.onClick);g.uG()&& (n=this.C.xP(),this.U(n,BO9(),this.hf),this.U(n,Vt7(document),this.qG));l.j().JA||l.j().G||this.disable();l.createClientVe(this.element,this,139117);this.y5();this.x6(l.isFullscreen())}; $3=function(l,n){g.f.call(this,{D:"button",gq:["ytp-button","ytp-jump-button"],Z:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},K:[n>0?{D:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",gq:["ytp-circle-arrow","ytp-svg-fill"],Z:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {D:"text",gq:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{D:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",gq:["ytp-circle-arrow","ytp-svg-fill"],Z:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {D:"text",gq:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var O=this;this.C=l;this.S=n;this.W=new g.vs(function(){O.N?(O.N=!1,O.W.start()):O.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(n=n>0)?this.C.createClientVe(this.element,this,36843):this.C.createClientVe(this.element,this,36844);var L=g.uN(n?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.S).toString()});this.update({title:L,"data-title-no-tooltip":L,"aria-keyshortcuts":n?"\u2192":"\u2190"});this.L=this.element.querySelector(".ytp-jump-button-text");this.L.textContent=Math.abs(this.S).toString();this.listen("click",this.onClick,this);EY(l,this.element, this)}; gla=function(l,n){n?l.element.classList.add("ytp-jump-button-enabled"):l.element.classList.remove("ytp-jump-button-enabled");l.C.logVisibility(l.element,n);l.C.h2()}; V0=function(l,n){m2.call(this,l,n,"timedMarkerCueRange","View key moments");this.U(l,g.xx("timedMarkerCueRange"),this.tC);this.U(l,"updatemarkervisibility",this.updateVideoData)}; LS5=function(l){var n,O=(n=l.C.getVideoData())==null?void 0:n.uv;if(O)for(l=l.L.wq,O=g.P(O),n=O.next();!n.done;n=O.next())if(n=l[n.value]){var L=void 0,X=void 0,F=void 0;if(((L=n.onTap)==null?void 0:(X=L.innertubeCommand)==null?void 0:(F=X.changeEngagementPanelVisibilityAction)==null?void 0:F.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return n}}; BA=function(l){var n=l.J("web_enable_pip_on_miniplayer");g.f.call(this,{D:"button",gq:["ytp-miniplayer-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:[n?{D:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{D:"g",Z:{transform:"translate(96, -96) scale(0.8)"},K:[{D:"path",Lp:!0,Z:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: MHe()]});this.C=l;this.visible=!1;this.listen("click",this.onClick);this.U(l,"fullscreentoggled",this.y5);this.updateValue("title",g.Nc(l,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});EY(l,this.element,this);l.createClientVe(this.element,this,62946);this.y5()}; cA=function(l,n,O){O=O===void 0?!1:O;g.f.call(this,{D:"button",gq:["ytp-mute-button","ytp-button"],Z:l.j().wq?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},hG:"{{icon}}"});this.C=l;this.Cf=O;this.S=null;this.L=this.Y=this.V=this.NQ=NaN;this.Q5=this.T=null;this.N=[];this.W=[];this.visible=!1;this.G=null;l.J("delhi_modern_web_player")&&this.update({"data-priority":3}); O=this.C.j();this.updateValue("icon",YR());this.tooltip=n.VE();this.S=new g.Jj({D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"defs",K:[{D:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},K:[{D:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",X:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"}, K:[{D:"path",X:"ytp-svg-volume-animation-mover",Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Lp:!0,gq:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{D:"path",Lp:!0,gq:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.c(this,this.S);this.T=this.S.mJ("ytp-svg-volume-animation-speaker");this.Q5=this.T.getAttribute("d");this.N=g.pJ("ytp-svg-volume-animation-mover",this.S.element);this.W=g.pJ("ytp-svg-volume-animation-hider",this.S.element);this.Lf=new Zq;g.c(this,this.Lf);this.Wm=new Zq;g.c(this,this.Wm);this.listen("click",this.jnq);this.U(l,"appresize",this.Ul);this.U(l,"onVolumeChange",this.onVolumeChange);var L=null;O.wq?this.addOnDisposeCallback(g.WD(n.VE(), this.element)):(n="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),L=new g.V7(l,{D:"span",gq:["ytp-popup","ytp-generic-popup"],Z:{tabindex:"0"},K:[n[0],{D:"a",Z:{href:"https://support.google.com/youtube/?p=noaudio",target:O.Y},hG:n[2]},n[4]]},100,!0),g.c(this,L),L.hide(),L.subscribe("show",function(X){l.Ha(L,X)}),g.jR(l,L.element,4)); this.message=L;l.createClientVe(this.element,this,28662);this.Ul(l.xP().getPlayerSize());this.setVolume(l.getVolume(),l.isMuted())}; FSi=function(l,n){l.NQ=n;var O=l.Q5;n&&(O+=M20(X9q,oli,n));l.T.setAttribute("d",O)}; xZ5=function(l,n){l.Y=n;for(var O=20*n,L=0;L<l.N.length;L++)l.N[L].setAttribute("transform","translate("+O+", "+O+")");var X;n===1?X=YR():X=l.S;for(O=0;O<l.W.length;O++){L=l.W[O];var F=void 0;if((F=L)==null?0:F.style)L.style.display=n===0?"none":""}X!==l.G&&(l.updateValue("icon",X),l.G=X)}; g.iq=function(l,n){g.f.call(this,{D:"button",gq:["ytp-play-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},hG:"{{icon}}"});this.C=l;this.S=null;this.transition=new Zq;this.tooltip=n.VE();g.c(this,this.transition);l.createClientVe(this.element,this,36842);l.J("embeds_use_parent_visibility_in_ve_logging")?l.logVisibility(this.element,this.B):l.logVisibility(this.element,!0);this.U(l,"fullscreentoggled",this.onVideoDataChange);this.U(l, "presentingplayerstatechange",this.onStateChange);this.U(l,"videodatachange",this.onVideoDataChange);this.OC(l.getPlayerStateObject());this.listen("click",this.by,this);this.addOnDisposeCallback(g.WD(n.VE(),this.element))}; hLe=function(l){switch(l){case 1:return yo();case 2:return kzg();case 3:return g.M6();case 4:return eP7();default:return null}}; g.zi=function(l,n,O){g.f.call(this,{D:"a",gq:[O?"ytp-next-button":"ytp-prev-button","ytp-button"],Z:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},K:[O?DT():QZa()]});var L=this;this.C=l;this.S=O;this.playlist=this.videoData=null;this.T= !1;this.L=this.V=this.W=null;this.N=!1;this.tooltip=n.VE();O?l.createClientVe(this.element,this,6193):l.createClientVe(this.element,this,6194);this.U(l,"fullscreentoggled",this.onVideoDataChange);this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"onPlaylistUpdate",this.onVideoDataChange);this.U(l,"onLoopRangeChange",this.onVideoDataChange);this.S||this.U(l,"appresize",this.Hx);this.U(l,"mdxpreviousnextchange",function(){Zgf(L);L.Hx()}); this.onVideoDataChange()}; Jdk=function(l){l.playlist&&l.playlist.unsubscribe("shuffle",l.onVideoDataChange,l)}; w95=function(l){return!!l.playlist&&!l.S&&!!l.videoData&&!l.videoData.isLivePlayback&&l.C.getCurrentTime()>=3&&l.C.getPresentingPlayerType()!==2}; Hge=function(l){var n=y7(l.C.dc());return n?l.S?n.FK():n.DE():!1}; Zgf=function(l){var n={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},O=l.playlist!=null&&l.playlist.FK();O=g.Mc(l.C)&&(!l.S||O);var L=l.S&&g.GM(l.C),X=Hge(l),F=l.S&&l.C.getPresentingPlayerType()===5,x=g.Nc(l.C,"Next","SHIFT+n"),Z=g.Nc(l.C,"Previous","SHIFT+p");if(F)n.title="Start video";else if(l.N)n.title="Replay";else if(O){var J=null;l.playlist&&(J=g.E8(l.playlist,l.S?xhk(l.playlist):hM7(l.playlist)));if(J){if(J.videoId){var w=l.playlist.listId; n.url=l.C.j().getVideoUrl(J.videoId,w?w.toString():void 0)}n.text=J.title;n.duration=J.lengthText?J.lengthText:J.lengthSeconds?g.k7(J.lengthSeconds):null;n.preview=J.HG("mqdefault.jpg")}l.S?(n.title=x,n["data-title-no-tooltip"]="Next",n["aria-keyshortcuts"]="SHIFT+n"):(n.title=Z,n["data-title-no-tooltip"]="Previous",n["aria-keyshortcuts"]="SHIFT+p")}else if(L){if(Z=(J=l.videoData)==null?void 0:g.t2(J))n.url=Z.XK(),n.text=Z.title,n.duration=Z.lengthText?Z.lengthText:Z.lengthSeconds?g.k7(Z.lengthSeconds): null,n.preview=Z.HG("mqdefault.jpg");n.title=x;n["data-title-no-tooltip"]="Next";n["aria-keyshortcuts"]="SHIFT+n"}n.disabled=!L&&!O&&!X&&!F;l.update(n);l.T=!!n.url;L||O||l.N||X||F?l.W||(l.W=g.WD(l.tooltip,l.element),l.V=l.listen("click",l.onClick,l)):l.W&&(l.W(),l.W=null,l.EC(l.V),l.V=null);l.tooltip.h2();g.wP(l.element,"ytp-playlist-ui",l.S&&O)}; bg7=function(l,n){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing",K:[{D:"div",X:"ytp-fine-scrubbing-draggable",K:[{D:"div",X:"ytp-fine-scrubbing-thumbnails",Z:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{D:"div",Z:{"aria-hidden":"true"},X:"ytp-fine-scrubbing-cursor"},{D:"div",X:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"}, hG:"{{seekTime}}"},{D:"div",X:"ytp-fine-scrubbing-play",K:[yo()],Z:{title:"Play from this position",role:"button"}},{D:"div",X:"ytp-fine-scrubbing-dismiss",K:[g.Ew()],Z:{title:"Exit precise seeking",role:"button"}}]});var O=this;this.api=l;this.V=this.mJ("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.mJ("ytp-fine-scrubbing-dismiss");this.Q5=this.mJ("ytp-fine-scrubbing-draggable");this.playButton=this.mJ("ytp-fine-scrubbing-play");this.thumbnails=[];this.W=[];this.Hm=this.S=0;this.z3=void 0; this.Wm=NaN;this.wq=this.Y=this.N=this.G=0;this.L=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.Fi=0;this.isEnabled=this.Cf=!1;Adq(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.WD(n,this.dismissButton));this.addOnDisposeCallback(g.WD(n,this.playButton));this.Lf=new g.Co(this.Q5,!0);this.Lf.subscribe("dragstart",this.J1,this);this.Lf.subscribe("dragmove",this.gg,this);this.Lf.subscribe("dragend",this.gC,this);this.U(l,"SEEK_COMPLETE",this.sA);l.J("web_fix_fine_scrubbing_false_play")&& this.U(l,"rootnodemousedown",function(L){O.NQ=L}); this.V.addEventListener("keydown",function(){}); g.c(this,this.Lf);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.V,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Adq=function(l,n){var O=g.k7(n),L=g.uN("Seek to $PROGRESS",{PROGRESS:g.k7(n,!0)});l.update({ariamin:0,ariamax:Math.floor(l.api.getDuration()),arianow:Math.floor(n),arianowtext:L,seekTime:O})}; rd9=function(l){l.Wm=NaN;l.Y=0;l.G=l.N}; PRk=function(l){var n=l.api.LM();if(n){var O=90*l.scale,L=m7(n,160*l.scale);if(n=n.levels[L]){l.T=n.width;if(!l.L.length){L=[];for(var X=I4(n,n.Km()),F=n.columns*n.rows,x=n.frameCount,Z=0;Z<=X;Z++)for(var J=x<F?Math.ceil(x/n.columns):n.rows,w=0;w<n.rows;w++){var H=x<n.columns?x:n.columns,A={url:n.Ae(Z),column:0,columns:H,row:w,rows:J,vB:n.width*H,rN:n.height*J};L.push(A);x-=H;if(x<=1)break}l.L=L;l.frameCount=n.EQ();l.interval=n.S/1E3||l.api.getDuration()/l.frameCount}for(;l.thumbnails.length>l.L.length;)L= void 0,(L=l.thumbnails.pop())==null||L.dispose();for(;l.thumbnails.length<l.L.length;)L=new UZ8,l.thumbnails.push(L),L.V5(l.V),g.c(l,L);for(L=0;L<l.L.length;L++)X=l.thumbnails[L].element,F=l.L[L],x=l.T*l.scale,Z=F.rN/F.rows,J=O/Z,X.style.background="url("+F.url+") 0 "+-F.row*F.rN/F.rows*J+"px/"+x*n.columns+"px "+Z*F.rows*J+"px",X.style.width=x*F.columns+"px",X.style.height=O+"px";S2(l,l.api.getCurrentTime());for(O=l.api.getVideoData().YW;l.W.length>O.length;)L=void 0,(L=l.W.pop())==null||L.dispose(); for(;l.W.length<O.length;)L=new uJ9,l.W.push(new uJ9),g.c(l,L);for(L=0;L<O.length;L++)X=O[L],l.W[L].update({chapterTitle:X.title}),X=Math.round(X.startTime/n.S),F=Math.floor(X/n.rows),g.HH(l.W[L].element,"transform","translateX("+X%n.rows*l.T*l.scale+"px)"),F<l.thumbnails.length&&l.thumbnails[F]&&l.W[L].V5(l.thumbnails[F].element);l.Cf=!0}}}; S2=function(l,n){l.NQ&&(l.NQ.xf=!0);l.update({seekTime:g.k7(n)});var O=l.T*l.scale;n=n<l.interval/2?-n*O/l.interval*2+l.S/2:-n*O/l.interval-O/2+l.S/2;n=g.hR(n,Tqe(l),l.S/2);l.G=n;l.N=l.G;g.HH(l.Q5,"transform","translateX("+(l.G-l.S/2)+"px)");g.HH(l.Q5,"padding","0px "+l.S/2+"px");g.HH(l.V,"position","relative")}; WS8=function(l,n){var O=l.T*l.scale;n-=l.S/2;return n>-O?-n/O*l.interval*.5:-(n+O/2)/O*l.interval}; Tqe=function(l){return-((l.V.offsetWidth||(l.frameCount-1)*l.T*l.scale)-l.S/2)}; UZ8=function(){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing-thumbnail"})}; uJ9=function(){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing-chapter-title",K:[{D:"div",X:"ytp-fine-scrubbing-chapter-title-content",hG:"{{chapterTitle}}"}]})}; Elg=function(l){g.f.call(this,{D:"div",X:"ytp-heat-map-chapter",K:[{D:"svg",X:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{D:"defs",K:[{D:"clipPath",Z:{id:"{{id}}"},K:[{D:"path",X:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{D:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{D:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",Z:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",X:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",X:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",X:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",X:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=l;this.G=this.mJ("ytp-heat-map-svg");this.V=this.mJ("ytp-heat-map-path");this.L=this.mJ("ytp-heat-map-graph");this.T=this.mJ("ytp-heat-map-play");this.S=this.mJ("ytp-heat-map-hover");this.N=this.mJ("ytp-modern-heat-map");this.MP=!1;this.W=60;l=""+g.R8(this);this.update({id:l});l="url(#"+l+")";this.L.setAttribute("clip-path",l);this.T.setAttribute("clip-path",l);this.S.setAttribute("clip-path", l)}; Nq8=function(l,n){n>0&&(l.W=n,l.G.style.height=l.W+"px")}; pT=function(){g.f.call(this,{D:"div",X:"ytp-chapter-hover-container",K:[{D:"div",X:"ytp-progress-bar-padding"},{D:"div",X:"ytp-progress-list",K:[{D:"div",gq:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",X:"ytp-progress-linear-live-buffer"},{D:"div",X:"ytp-load-progress"},{D:"div",X:"ytp-hover-progress"},{D:"div",X:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.mJ("ytp-progress-list");this.V=this.mJ("ytp-progress-linear-live-buffer"); this.L=this.mJ("ytp-ad-progress-list");this.T=this.mJ("ytp-load-progress");this.G=this.mJ("ytp-play-progress");this.N=this.mJ("ytp-hover-progress");this.S=this.mJ("ytp-chapter-hover-container")}; sX=function(l,n){g.HH(l.S,"width",n)}; DZ8=function(l,n){g.HH(l.S,"margin-right",n+"px")}; qb8=function(){this.W=this.position=this.N=this.S=this.L=this.width=NaN}; k9g=function(){g.f.call(this,{D:"div",X:"ytp-timed-marker"});this.S=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.KT=function(l,n){g.Aj.call(this,{D:"div",X:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},K:[{D:"div",gq:["ytp-heat-map-container"],K:[{D:"div",X:"ytp-heat-map-edu"}]},{D:"div",gq:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{D:"div",X:"ytp-chapters-container"},{D:"div",X:"ytp-timed-markers-container"},{D:"div",X:"ytp-clip-start-exclude"}, {D:"div",X:"ytp-clip-end-exclude"},{D:"div",X:"ytp-scrubber-container",K:[{D:"div",gq:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{D:"div",X:"ytp-scrubber-pull-indicator"},{D:"img",gq:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",gq:["ytp-fine-scrubbing-container"],K:[{D:"div",X:"ytp-fine-scrubbing-edu"}]},{D:"div",X:"ytp-bound-time-left",hG:"{{boundTimeLeft}}"},{D:"div",X:"ytp-bound-time-right",hG:"{{boundTimeRight}}"},{D:"div",X:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},hG:"{{clipstarticon}}"}, {D:"div",X:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},hG:"{{clipendicon}}"}]});this.api=l;this.IA=!1;this.lf=this.Ip=this.Pm=this.V=this.D9=0;this.oA=null;this.j3=!1;this.Hm={};this.n5={};this.clipEnd=Infinity;this.JA=this.mJ("ytp-clip-end");this.Wk=new g.Co(this.JA,!0);this.Sz=this.mJ("ytp-clip-end-exclude");this.hC=this.mJ("ytp-clip-start-exclude");this.clipStart=0;this.K5=this.mJ("ytp-clip-start");this.q5=new g.Co(this.K5,!0);this.Y=this.Of=0;this.progressBar=this.mJ("ytp-progress-bar");this.uv= {};this.wq={};this.oO=this.mJ("ytp-chapters-container");this.Oc=this.mJ("ytp-timed-markers-container");this.S=[];this.T=[];this.At={};this.OU=null;this.Q5=-1;this.Yo=this.Lf=0;this.Y4=this.G=null;this.q_=this.mJ("ytp-scrubber-button");this.Xg=this.mJ("ytp-decorated-scrubber-button");this.ea=this.mJ("ytp-scrubber-container");this.nf=new g.AR;this.Zx=new qb8;this.N=new IN(0,0);this.Hj=null;this.Wm=this.j7=!1;this.kY=null;this.NQ=this.mJ("ytp-heat-map-container");this.z$=this.mJ("ytp-heat-map-edu"); this.L=[];this.heatMarkersDecorations=[];this.G3=this.mJ("ytp-fine-scrubbing-container");this.M5=this.mJ("ytp-fine-scrubbing-edu");this.W=void 0;this.Cf=this.d8=this.z3=!1;this.tooltip=n.VE();this.addOnDisposeCallback(g.WD(this.tooltip,this.JA));g.c(this,this.Wk);this.Wk.subscribe("hoverstart",this.WY,this);this.Wk.subscribe("hoverend",this.Sx,this);this.U(this.JA,"click",this.z_);this.addOnDisposeCallback(g.WD(this.tooltip,this.K5));g.c(this,this.q5);this.q5.subscribe("hoverstart",this.WY,this); this.q5.subscribe("hoverend",this.Sx,this);this.U(this.K5,"click",this.z_);ydk(this);this.U(l,"resize",this.x4);this.U(l,"presentingplayerstatechange",this.Nqz);this.U(l,"videodatachange",this.yr);this.U(l,"videoplayerreset",this.WJJ);this.U(l,"cuerangesadded",this.f9G);this.U(l,"cuerangesremoved",this.vY5);this.U(l,"onLoopRangeChange",this.A0);this.U(l,"innertubeCommand",this.onClickCommand);this.U(l,g.F4("timedMarkerCueRange"),this.ubG);this.U(l,"updatemarkervisibility",this.RW);this.U(l,"serverstitchedvideochange", this.b2G);this.updateVideoData(l.getVideoData(),!0);this.A0(l.getLoopRange());fT(this)&&!this.W&&(this.W=new bg7(this.api,this.tooltip),l=g.WH(this.element).x||0,this.W.x4(l,this.V),this.W.V5(this.G3),g.c(this,this.W),this.U(this.W.dismissButton,"click",this.m0),this.U(this.W.playButton,"click",this.Ro),this.U(this.W.element,"dblclick",this.Ro));this.api.createClientVe(this.NQ,this,139609,!0);this.api.createClientVe(this.z$,this,140127,!0);this.api.createClientVe(this.M5,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; ydk=function(l){if(l.S.length===0){var n=new pT;l.S.push(n);g.c(l,n);n.V5(l.oO,0)}for(;l.S.length>1;)l.S.pop().dispose();sX(l.S[0],"100%");l.S[0].startTime=0;l.S[0].title=""}; M05=function(l){var n=n===void 0?NaN:n;var O=new Elg(l.api);l.L.push(O);g.c(l,O);O.V5(l.NQ);n>=0&&(O.element.style.width=n+"px")}; Q9k=function(l){for(;l.T.length;)l.T.pop().dispose()}; Ybi=function(l){var n,O,L,X,F;return(F=g.z((X=g.z((n=l.getWatchNextResponse())==null?void 0:(O=n.playerOverlays)==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,DY))==null?void 0:X.playerBar,eLa))==null?void 0:F.chapters}; j98=function(l){for(var n=l.S,O=[],L=0;L<n.length;L++)if(!isNaN(n[L].startTime)){var X=n[L].startTime;X=new g.X4(X,L===n.length-1?Infinity:n[L+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+X});O.push(X)}l.api.cS("chapterCueRange");l.api.RA(O)}; cd9=function(l,n){var O,L=(O=l.uv[n])==null?void 0:O.chapters;L&&(G9i(l,L),l.api.getVideoData().YW=l.S,j98(l));var X;if((O=(X=l.uv[n])==null?void 0:X.markers)&&n!=="HEATSEEKER"){Q9k(l);X=g.P(O);for(O=X.next();!O.done;O=X.next())if(L=O.value,O=new k9g,L=g.z(L,g.mZk)){var F=void 0;O.title=((F=L.title)==null?void 0:F.simpleText)||"";F=void 0;O.timeRangeStartMillis=(F=L.timeRangeStartMillis)!=null?F:NaN;var x=F=void 0;O.onActiveCommand=(x=(F=L)==null?void 0:F.onActiveCommand)!=null?x:void 0;ISi(l,O)}dZ5(l, l.T);X=l.T;O=l.At;L=[];for(F=0;F<X.length;F++)!isNaN(X[F].timeRangeStartMillis)&&X[F].onActiveCommand&&(x=UNa(X[F].timeRangeStartMillis,F===X.length-1?Infinity:X[F+1].timeRangeStartMillis),L.push(x),O[x.id]=X[F].onActiveCommand);l.api.RA(L)}var Z;if(n=g.z((Z=l.uv[n])==null?void 0:Z.heatmap,$Zf)){Z=n.heatMarkers||[];var J;X=(J=n.minHeightDp)!=null?J:0;var w;J=(w=n.maxHeightDp)!=null?w:60;w=l.S.length;O=null;for(L=0;L<w;L++){x=l.S[L].startTime;var H=L===w-1?Infinity:l.S[L+1].startTime;L===l.L.length&& M05(l);F=[];O&&F.push(O);for(var A=g.P(Z),b=A.next();!b.done;b=A.next()){b=b.value;var r=void 0,U=void 0,W=(U=(r=g.z(b,V0q))==null?void 0:r.timeRangeStartMillis)!=null?U:-1;W>=x&&W<=H&&F.push(b)}J>0&&(l.NQ.style.height=J+"px");x=l.L[L];H=F;b=X;U=J;W=L===0;W=W===void 0?!1:W;Nq8(x,U);A=H;r=x.W;W=W===void 0?!1:W;var N=1E3/A.length,q=[];q.push({x:0,y:100});for(var y=0;y<A.length;y++){var e=void 0,d=((e=g.z(A[y],V0q))==null?void 0:e.heatMarkerIntensityScoreNormalized)||0;e=(y+.5)*N;d=100-g.hR(d*100,b/ r*100,U/r*100);y!==0||W||q.push({x:0,y:d});q.push({x:e,y:d});y===A.length-1&&q.push({x:1E3,y:d})}q.push({x:1E3,y:100});A=q;H=H.length===0?"":vji(A);x.api.J("delhi_modern_web_player")?x.N.setAttribute("d",H):x.V.setAttribute("d",H);x.MP=H!=="";g.wP(x.api.getRootNode(),"ytp-heat-map",x.MP);g.wP(x.api.getRootNode(),"ytp-heat-map-played_bar",x.api.J("web_player_heat_map_played_bar")&&H!=="");x.api.J("delhi_modern_web_player")&&(x.N.style.display="block",x.L.style.display="none",x.S.style.display="none"); F.length>0&&(O=F[F.length-1])}g.aX(l);Z=[];n=g.P(n.heatMarkersDecorations||[]);for(X=n.next();!X.done;X=n.next())if(X=g.z(X.value,Bq9))J=X.label,L=O=w=void 0,Z.push({visibleTimeRangeStartMillis:(w=X.visibleTimeRangeStartMillis)!=null?w:-1,visibleTimeRangeEndMillis:(O=X.visibleTimeRangeEndMillis)!=null?O:-1,decorationTimeMillis:(L=X.decorationTimeMillis)!=null?L:NaN,label:J?g.Uw(J):""});l.heatMarkersDecorations=Z}}; ISi=function(l,n){l.T.push(n);g.c(l,n);n.V5(l.Oc,l.Oc.children.length)}; dZ5=function(l,n){n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=O.value;var L=RX(l,O.timeRangeStartMillis/(l.N.S*1E3),CT(l));g.HH(O.element,"transform","translateX("+L+"px) scaleX(0.6)")}}; G9i=function(l,n){var O=0,L=!1;n=g.P(n);for(var X=n.next();!X.done;X=n.next()){X=X.value;if(g.z(X,igv)){X=g.z(X,igv);var F={startTime:NaN,title:null,onActiveCommand:void 0},x=X.title;F.title=x?g.Uw(x):"";x=X.timeRangeStartMillis;x!=null&&(F.startTime=x);F.onActiveCommand=X.onActiveCommand;X=F;O===0&&X.startTime!==0&&(l.S[O].startTime=0,l.S[O].title="",l.S[O].onActiveCommand=X.onActiveCommand,O++,L=!0);l.S.length<=O&&(F=new pT,l.S.push(F),g.c(l,F),F.V5(l.oO,l.oO.children.length));l.S[O].startTime= X.startTime;l.S[O].title=X.title?X.title:"";l.S[O].onActiveCommand=X.onActiveCommand;l.S[O].index=L?O-1:O}O++}for(;O<l.S.length;)l.S.pop().dispose();g.aX(l);tb(l)}; g.aX=function(l){l.Lf=l.S.length-1;l.Yo=0;zLe(l,!0)&&zLe(l,!1);for(var n=0,O=0;O<l.S.length;O++)if(l.S[O].width===0){if(O===l.S.length-1)for(var L=l.S.length-1;L>=0;L--)if(l.S[L].width>0){DZ8(l.S[L],0);var X=Math.floor(l.S[L].width);l.S[L].width=X;sX(l.S[L],X+"px");break}l.S[O].width=0;sX(l.S[O],"0")}else O===l.S.length-1?(L=Math.floor(l.S[O].width+n),l.S[O].width=L,sX(l.S[O],L+"px")):(n=l.S[O].width+n,L=Math.round(n),n-=L,l.S[O].width=L,sX(l.S[O],L+"px"));O=0;if(l.L.length===l.S.length)for(n=0;n< l.L.length;n++)L=l.S[n].width,l.L[n].element.style.width=L+"px",l.L[n].element.style.left=O+"px",O+=L+vA(l);l.api.J("delhi_modern_web_player")&&(l.S.length===1?l.S[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(l.S[0].W.classList.remove("ytp-progress-bar-end"),l.S[0].W.classList.add("ytp-progress-bar-start"),l.S[l.S.length-1].W.classList.add("ytp-progress-bar-end")))}; zLe=function(l,n){var O=0,L=!1,X=l.S.length,F=l.N.S*1E3;F===0&&(F=l.api.getProgressState().seekableEnd*1E3);if(F>0&&l.V>0){for(var x=l.V-vA(l)*l.Lf,Z=l.Yo===0?3:x*l.Yo,J=g.P(l.S),w=J.next();!w.done;w=J.next())w.value.width=0;for(;O<X;){J=F-l.S[O].startTime;O<X-1&&(J=l.S[O+1].startTime-l.S[O].startTime,DZ8(l.S[O],vA(l)));g.wP(l.S[O].S,"ytp-exp-chapter-hover-container",l.S.length>1);w=(F===0?0:J/F*x)+l.S[O].width;if(w>Z)l.S[O].width=w;else{l.S[O].width=0;var H=l,A=O,b=H.S[A-1];b!==void 0&&b.width>0? b.width+=w:A<H.S.length-1&&(H.S[A+1].width+=w);DZ8(H.S[A],0);n&&(l.Lf--,J/F>l.Yo&&(l.Yo=J/F),L=!0)}O++}}return L}; tb=function(l){if(l.V){var n=l.api.getProgressState(),O=l.api.getVideoData();if(!(O&&O.enableServerStitchedDai&&O.enablePreroll)||isFinite(n.current)){var L;if(((L=l.api.getVideoData())==null?0:vf(L))&&n.airingStart&&n.airingEnd)var X=lw(l,n.airingStart,n.airingEnd);else if(l.api.getPresentingPlayerType()===2&&l.api.j().J("show_preskip_progress_bar_for_skippable_ads")){var F,x,Z;X=(O=(X=l.api.getVideoData())==null?void 0:(F=X.getPlayerResponse())==null?void 0:(x=F.playerConfig)==null?void 0:(Z=x.webPlayerConfig)== null?void 0:Z.skippableAdProgressBarDuration)?lw(l,n.seekableStart,O/1E3):lw(l,n.seekableStart,n.seekableEnd)}else X=lw(l,n.seekableStart,n.seekableEnd);F=dy(X,n.loaded,0);n=dy(X,n.current,0);x=l.N.W!==X.W||l.N.S!==X.S;l.N=X;ns(l,n,F);x&&Sb5(l);p99(l)}}}; lw=function(l,n,O){return s98(l)?new IN(Math.max(n,l.Hj.startTimeMs/1E3),Math.min(O,l.Hj.endTimeMs/1E3)):new IN(n,O)}; fS5=function(l,n){var O;if(((O=l.Hj)==null?void 0:O.type)==="repeatChapter"||(n==null?void 0:n.type)==="repeatChapter")n&&(n=l.S[uq(l.S,n.startTimeMs)],g.wP(n.S,"ytp-repeating-chapter",!1)),l.Hj&&(n=l.S[uq(l.S,l.Hj.startTimeMs)],g.wP(n.S,"ytp-repeating-chapter",!0)),l.S.forEach(function(L){g.wP(L.S,"ytp-exp-chapter-hover-container",!l.Hj)})}; gN=function(l,n){var O=l.N;O=O.W+n.W*O.getLength();if(l.S.length>1){O=Om(l,n.N,!0);for(var L=0,X=0;X<O;X++)l.S[X].width>0&&(L+=l.S[X].width,L+=vA(l));O=(l.S[O].startTime+(n.N-L)/l.S[O].width*((O===l.S.length-1?l.N.S*1E3:l.S[O+1].startTime)-l.S[O].startTime))/1E3||0}return O}; Ls=function(l,n,O,L,X){n=n<0?0:Math.floor(Math.min(n,l.api.getDuration())*1E3);O=O<0?0:Math.floor(Math.min(O,l.api.getDuration())*1E3);l=l.progressBar.visualElement;L={seekData:{startMediaTimeMs:n,endMediaTimeMs:O,seekSource:L}};(n=g.yS())&&g.lk(lm)(void 0,n,l,X,L,void 0)}; KS5=function(l,n,O){if(O>=l.S.length)return!1;var L=l.V-vA(l)*l.Lf;return Math.abs(n-l.S[O].startTime/1E3)/l.N.S*L<4}; Sb5=function(l){l.q_.style.removeProperty("height");for(var n=g.P(Object.keys(l.Hm)),O=n.next();!O.done;O=n.next())aSf(l,O.value);X0(l);ns(l,l.Y,l.Of)}; CT=function(l){var n=l.nf.x;n=g.hR(n,0,l.V);l.Zx.update(n,l.V);return l.Zx}; F0=function(l){return(l.Wm?135:90)-ox(l)}; ox=function(l){var n=48,O=l.api.j();l.Wm?n=54:g.yG(O)&&!O.W?n=40:l.api.J("delhi_modern_web_player")&&(n=68);return n}; ns=function(l,n,O){l.Y=n;l.Of=O;var L=CT(l),X=l.N.S;var F=l.N;F=F.W+l.Y*F.getLength();var x=g.uN("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.k7(F,!0),DURATION:g.k7(X,!0)}),Z=uq(l.S,F*1E3);Z=l.S[Z].title;l.update({ariamin:Math.floor(l.N.W),ariamax:Math.floor(X),arianow:Math.floor(F),arianowtext:Z?Z+" "+x:x});X=l.clipStart;F=l.clipEnd;l.Hj&&l.api.getPresentingPlayerType()!==2&&(X=l.Hj.startTimeMs/1E3,F=l.Hj.endTimeMs/1E3);X=dy(l.N,X,0);Z=dy(l.N,F,1);x=l.api.getVideoData();F=g.hR(n,X,Z);O=(x==null? 0:g.CN(x))?1:g.hR(O,X,Z);n=RX(l,n,L);g.HH(l.ea,"transform","translateX("+n+"px)");l.api.J("delhi_modern_web_player")&&RLv(l,n);x1(l,L,X,F,"PLAY_PROGRESS");(x==null?0:vf(x))?(n=l.api.getProgressState().seekableEnd)&&x1(l,L,F,dy(l.N,n),"LIVE_BUFFER"):x1(l,L,X,O,"LOAD_PROGRESS");if(l.api.J("web_player_heat_map_played_bar")){var J;(J=l.L[0])!=null&&J.T.setAttribute("width",(F*100).toFixed(2)+"%")}}; RLv=function(l,n){n||(n=RX(l,l.Y,CT(l)));var O=l.j3?36:28,L=n-O/2;n+=O/2;l.oO.style.clipPath='path("M 0 0 L 0 8 L '+(L+" 8 C "+(L+6+" 8 "+(L+6)+" 0 "+L+" 0 L 0 0 M ")+(n+" 0 L ")+(l.V+" 0 L ")+(l.V+" 8 L ")+(n+" 8 C ")+(n-6+" 8 "+(n-6)+" 0 "+n+' 0")'))}; x1=function(l,n,O,L,X){var F=l.S.length,x=n.S-l.Lf*vA(l),Z=O*x;O=Om(l,Z);var J=L*x;x=Om(l,J);X==="HOVER_PROGRESS"&&(x=Om(l,n.S*L,!0),J=n.S*L-CRg(l,n.S*L)*vA(l));L=Math.max(Z-t00(l,O),0);for(Z=O;Z<F;Z++)l.S[Z].De(X).style.left=O===Z?L+"px":"0";n=RX(l,l.Y,n);for(F=O;F<x;F++){Z=l.S[F].De(X);var w=l.S[F].width,H=F===O?w-L:w;hE(l,Z,H,w);vl9(l,Z,H,w,F,n,X)}F=l.S[x].width;J=g.hR(J-t00(l,x),0,F);O===x&&(J-=L);L=l.S[x].De(X);hE(l,L,J,F);vl9(l,L,J,F,x,n,X);J=l.S.length;for(x+=1;x<J;x++)lri(l,x,X);for(x=0;x< O;x++)lri(l,x,X)}; t00=function(l,n){if(n>=l.S.length)return l.V;for(var O=0,L=0;L<n;)O+=l.S[L].width,L++;return O}; lri=function(l,n,O){O=l.S[n].De(O);hE(l,O,0,l.S[n].width)}; vl9=function(l,n,O,L,X,F,x){x==="PLAY_PROGRESS"&&(O=!L||l.api.j().W?1:O/L,l.hC.clientWidth>0||l.Sz.clientWidth>0?(F=n.clientWidth/O,l=-1*l.hC.clientWidth/O):(F/=O,l=-1*l.S[X].element.offsetLeft/O),g.HH(n,"background-size",F+"px"),g.HH(n,"background-position-x",l+"px"))}; hE=function(l,n,O,L,X){X||l.api.j().W?n.style.width=O+"px":g.HH(n,"transform","scalex("+(L?O/L:0)+")")}; Om=function(l,n,O){var L=0;(O===void 0?0:O)&&(n-=CRg(l,n)*vA(l));O=g.P(l.S);for(var X=O.next();!X.done;X=O.next()){X=X.value;if(n>X.width)n-=X.width;else break;L++}return L===l.S.length?L-1:L}; RX=function(l,n,O){var L=n*l.N.S*1E3;for(var X=-1,F=g.P(l.S),x=F.next();!x.done;x=F.next())x=x.value,L>x.startTime&&x.width>0&&X++;L=X<0?0:X;X=O.S-vA(l)*l.Lf;return n*X+vA(l)*L+O.L}; CRg=function(l,n){for(var O=l.S.length,L=0,X=g.P(l.S),F=X.next();!F.done;F=X.next())if(F=F.value,F.width!==0)if(n>F.width)n-=F.width,n-=vA(l),L++;else break;return L===O?O-1:L}; g.nLg=function(l,n,O,L){var X=l.V!==O,F=l.Wm!==L;l.D9=n;l.V=O;l.Wm=L;fT(l)&&(n=l.W)!=null&&(n.scale=L?1.5:1);Sb5(l);l.S.length===1&&(l.S[0].width=O||0);X&&g.aX(l);l.W&&F&&fT(l)&&(l.W.isEnabled&&(O=l.Wm?135:90,L=O-ox(l),l.G3.style.height=O+"px",g.HH(l.NQ,"transform","translateY("+-L+"px)"),g.HH(l.progressBar,"transform","translateY("+-L+"px)")),PRk(l.W))}; X0=function(l){var n=!!l.Hj&&l.api.getPresentingPlayerType()!==2,O=l.clipStart,L=l.clipEnd,X=!0,F=!0;n&&l.Hj?(O=l.Hj.startTimeMs/1E3,L=l.Hj.endTimeMs/1E3):(X=O>l.N.W,F=l.N.S>0&&L<l.N.S);var x,Z;if(((x=l.Hj)==null?0:x.postId)||((Z=l.Hj)==null?void 0:Z.type)==="repeatChapter")F=X=!1;g.wP(l.element,"ytp-loop-range-enabled",n);g.wP(l.element,"ytp-clip-start-enabled",X);g.wP(l.element,"ytp-clip-end-enabled",F);n=X?dy(l.N,O,0):0;L=F?dy(l.N,L,1):1;l.K5.style.left=Math.round(n*1E3)/10+"%";l.JA.style.left= Math.round(L*1E3)/10+"%";l.hC.style.width=Math.round(n*1E3)/10+"%";l.Sz.style.left=Math.round(L*1E3)/10+"%";l.Sz.style.width=Math.round((1-L)*1E3)/10+"%"}; p99=function(l){var n;if((n=l.api.getVideoData())==null||!vf(n)){n=CT(l);x1(l,n,l.Y,Math.max(n.W,l.Y),"HOVER_PROGRESS");for(var O=Om(l,n.S*l.Y,!0),L=Om(l,n.N,!0),X=O;X<=L;X++)g.wP(l.S[X].N,"ytp-hover-progress-light",n.W>l.Y);g.wP(l.q_,"ytp-scrubber-button-hover",O===L&&l.S.length>1);if(l.api.J("web_player_heat_map_played_bar")){var F;(F=l.L[0])!=null&&F.S.setAttribute("width",(n.W*100).toFixed(2)+"%")}}}; aSf=function(l,n){var O=l.Hm[n];n=l.n5[n];var L=CT(l),X=dy(l.N,O.start/1E3,0),F=oRv(O,l.Wm)/L.width;var x=dy(l.N,O.end/1E3,1);F!==Number.POSITIVE_INFINITY&&(X=g.hR(X,0,x-F));x=Math.min(x,X+F);O.color&&(n.style.background=O.color);O=X;n.style.left=Math.max(O*L.S+L.L,0)+"px";hE(l,n,g.hR((x-O)*L.S+L.L,0,L.width),L.width,!0)}; O95=function(l,n){var O=n.getId();l.Hm[O]===n&&(g.og(l.n5[O]),delete l.Hm[O],delete l.n5[O])}; fT=function(l){var n=g.a5(l.api.j())&&(l.api.J("web_shorts_pip")||l.api.J("web_watch_pip")),O;return!((O=l.api.getVideoData())==null?0:O.isLivePlayback)&&!l.api.isMinimized()&&!l.api.isInline()&&(!l.api.PQ()||!n)}; ZJ=function(l){l.W&&(l.W.disable(),l.Pm=0,l.NQ.style.removeProperty("transform"),l.progressBar.style.removeProperty("transform"),l.G3.style.removeProperty("height"),l.element.parentElement&&l.element.parentElement.style.removeProperty("height"))}; gLe=function(l,n){var O=n/F0(l)*ox(l);g.HH(l.progressBar,"transform","translateY("+-n+"px)");g.HH(l.NQ,"transform","translateY("+-n+"px)");g.HH(l.G3,"transform","translateY("+O+"px)");l.G3.style.height=n+O+"px";l.element.parentElement&&(l.element.parentElement.style.height=ox(l)-O+"px")}; Lwe=function(l,n){n?l.G||(l.element.removeAttribute("aria-disabled"),l.G=new g.Co(l.progressBar,!0),l.G.subscribe("hovermove",l.SKz,l),l.G.subscribe("hoverend",l.uom,l),l.G.subscribe("dragstart",l.xPo,l),l.G.subscribe("dragmove",l.N8m,l),l.G.subscribe("dragend",l.WGG,l),l.api&&l.api.J("delhi_modern_web_player")&&(l.Y4=new g.Co(l.progressBar,!0),l.Y4.subscribe("hoverstart",function(){l.j3=!0;RLv(l)},l),l.Y4.subscribe("hoverend",function(){l.j3=!1; RLv(l)},l)),l.kY=l.listen("keydown",l.zl)):l.G&&(l.element.setAttribute("aria-disabled","true"),l.EC(l.kY),l.G.cancel(),l.G.dispose(),l.G=null)}; vA=function(l){return l.api.J("delhi_modern_web_player")?4:l.Wm?3:2}; s98=function(l){var n;return!((n=l.Hj)==null||!n.postId)&&l.api.getPresentingPlayerType()!==2}; JE=function(l,n){g.f.call(this,{D:"button",gq:["ytp-remote-button","ytp-button"],Z:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},hG:"{{icon}}"});this.C=l;this.C5=n;this.S=null;this.U(l,"onMdxReceiversChange",this.y5);this.U(l,"presentingplayerstatechange",this.y5);this.U(l,"appresize",this.y5);l.createClientVe(this.element,this,139118);this.y5();this.listen("click",this.W,this);EY(l,this.element,this)}; wN=function(l,n){g.f.call(this,{D:"button",gq:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ZT(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},K:[g.Qo()]});this.C=l;this.C5=n;this.W=!0;this.listen("click",this.N);this.U(l,"onPlaybackQualityChange",this.updateBadge);this.U(l,"videodatachange",this.updateBadge);this.U(l,"webglsettingschanged",this.updateBadge);this.U(l,"appresize",this.S);EY(l,this.element,this);this.C.createClientVe(this.element, this,28663);this.updateBadge();this.S(l.xP().getPlayerSize())}; X5a=function(l,n){l.W=!!n;l.S(l.C.xP().getPlayerSize())}; Hl=function(l,n){ne.call(this,"Annotations",g.Fo.jY);this.C=l;this.C5=n;this.S=!1;l.J("web_settings_menu_icons")&&this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]});this.U(l,"videodatachange",this.y5);this.U(l,"onApiChange",this.y5);this.subscribe("select",this.onSelect,this);this.y5()}; AE=function(l,n){g.Ko.call(this,"Audio track",g.Fo.AUDIO,l,n);this.C=l;this.tracks={};g.FW(this.element,"ytp-audio-menu-item");this.countLabel=new g.f({D:"div",K:[{D:"span",hG:"Audio track"},{D:"span",X:"ytp-menuitem-label-count",hG:"{{content}}"}]});l.J("web_settings_menu_icons")&&this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.c(this,this.countLabel);g.zM(this,this.countLabel);this.U(l,"videodatachange",this.y5);this.U(l,"onPlaybackAudioChange",this.y5);this.y5()}; bw=function(l,n){ne.call(this,"Autoplay",g.Fo.Kk);this.C=l;this.C5=n;this.S=!1;this.N=[];this.U(l,"presentingplayerstatechange",this.W);this.subscribe("select",this.onSelect,this);l.createClientVe(this.element,this,113682);this.W()}; oL8=function(l,n){g.SR.call(this,g.pF({"aria-haspopup":"false"}),0,"More options");this.C=l;this.C5=n;this.U(this.element,"click",this.onClick);this.C5.yu(this)}; Fwq=function(l,n){var O;g.a5(l.j())&&(O={D:"div",X:"ytp-panel-footer-content",K:[{D:"span",hG:"Adjust download quality from your "},{D:"a",X:"ytp-panel-footer-content-link",hG:"Settings",Z:{href:"/account_downloads"}}]});g.Ko.call(this,"Quality",g.Fo.Ku,l,n,void 0,void 0,O);this.C=l;this.Q5={};this.Y={};this.L={};this.Lf=new Set;this.S=this.V=!1;this.T="unknown";this.Wm="";this.NQ=new g.RH;g.c(this,this.NQ);this.V=this.C.J("web_player_use_new_api_for_quality_pullback");this.S=this.C.J("web_player_enable_premium_hbr_playback_cap"); l.J("web_settings_menu_icons")&&this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.FW(this.W.element,"ytp-quality-menu");this.U(l,"videodatachange",this.c6);this.U(l,"videoplayerreset",this.c6);this.U(l,"onPlaybackQualityChange",this.jn);this.c6();l.createClientVe(this.element,this,137721)}; hai=function(l,n,O){var L=l.Q5[n],X=g.c7[n];return x59(l,L?L.qualityLabel:X?X+"p":"Auto",n,O)}; Z90=function(l,n,O,L,X){var F=(n=l.S?l.L[n]:l.Y[n])&&n.quality,x=n&&n.qualityLabel;x=x?x:"Auto";L&&(x="("+x);l=x59(l,x,F||"",X);L&&l.K.push(")");(L=(L=n&&n.paygatedQualityDetails)&&L.paygatedIndicatorText)&&O&&l.K.push({D:"div",X:"ytp-premium-label",hG:L});return l}; x59=function(l,n,O,L){n={D:"span",gq:L,K:[n]};var X;L="ytp-swatch-color";if(l.V||l.S)L="ytp-swatch-color-white";O==="highres"?X="8K":O==="hd2880"?X="5K":O==="hd2160"?X="4K":O.indexOf("hd")===0&&O!=="hd720"&&(X="HD");X&&(n.K.push(" "),n.K.push({D:"sup",X:L,hG:X}));return n}; rN=function(l,n,O,L,X){var F={D:"div",X:"ytp-input-slider-section",K:[{D:"input",X:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};X&&F.K.unshift(X);g.f.call(this,F);this.N=l;this.L=n;this.V=O;this.initialValue=L;this.header=X;this.S=this.mJ("ytp-input-slider");this.W=L?L:l;this.init();this.U(this.S,"input",this.T)}; w50=function(l,n){l.W=n;l.updateValue("slidervalue",l.W);l.S.valueAsNumber=l.W;Jve(l,n)}; Jve=function(l,n){l.S.style.setProperty("--yt-slider-shape-gradient-percent",(n-l.N)/(l.L-l.N)*100+"%")}; Um=function(l){rN.call(this,l.getAvailablePlaybackRates()[0],l.getAvailablePlaybackRates()[l.getAvailablePlaybackRates().length-1],.05,l.getPlaybackRate(),{D:"div",X:"ytp-speedslider-indicator-container",K:[{D:"div",X:"ytp-speedslider-badge"},{D:"p",X:"ytp-speedslider-text"}]});this.C=l;this.Y=sLk(this.NQ,this);g.FW(this.S,"ytp-speedslider");this.G=this.mJ("ytp-speedslider-text");this.Lf=this.mJ("ytp-speedslider-badge");H98(this);this.U(this.S,"change",this.Q5);this.U(this.S,"keydown",this.Wm)}; H98=function(l){l.G.textContent=l.W+"x";l.Lf.classList.toggle("ytp-speedslider-premium-badge",l.W>2&&l.C.J("enable_web_premium_varispeed"))}; uw=function(l,n,O,L,X,F,x){g.f.call(this,{D:"div",X:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{D:"div",X:"ytp-slider",K:[{D:"div",X:"ytp-slider-handle"}]}]});this.G=l;this.Y=n;this.W=O;this.N=L;this.Wm=X;this.Cf=F;this.range=this.N-this.W;this.z3=this.mJ("ytp-slider-section");this.L=this.mJ("ytp-slider");this.NQ=this.mJ("ytp-slider-handle");this.T=new g.Co(this.L, !0);this.S=x?x:O;g.c(this,this.T);this.T.subscribe("dragmove",this.qp,this);this.U(this.element,"keydown",this.wC);this.U(this.element,"wheel",this.EB);this.init()}; Pl=function(l){uw.call(this,.05,.05,l.getAvailablePlaybackRates()[0],l.getAvailablePlaybackRates()[l.getAvailablePlaybackRates().length-1],150,20,l.getPlaybackRate());this.C=l;this.V=g.nf("P");this.Lf=sLk(this.Q5,this);g.FW(this.L,"ytp-speedslider");g.FW(this.V,"ytp-speedslider-text");l=this.V;var n=this.L;n.parentNode&&n.parentNode.insertBefore(l,n.nextSibling);Av5(this);this.U(this.C,"onPlaybackRateChange",this.updateValues)}; Av5=function(l){l.V.textContent=b9i(l,l.S)+"x"}; b9i=function(l,n){l=Number(g.hR(n,l.W,l.N).toFixed(2));n=Math.floor((l+.001)*100%5+2E-15);var O=l;n!==0&&(O=l-n*.01);return Number(O.toFixed(2))}; rva=function(l){g.Aj.call(this,{D:"div",X:"ytp-speedslider-component"});l.J("web_settings_use_input_slider")?this.S=new Um(l):this.S=new Pl(l);g.c(this,this.S);this.element.appendChild(this.S.element)}; U5e=function(l){var n=new rva(l);dr.call(this,l,n,"Custom");g.c(this,n)}; uSv=function(l,n){var O=new U5e(l);g.Ko.call(this,"Playback speed",g.Fo.b4,l,n,TG(l)?void 0:"Custom",TG(l)?void 0:function(){g.cL(n,O)}); var L=this;this.V=!1;g.c(this,O);this.T=new Um(l);g.c(this,this.T);l.J("web_settings_menu_icons")&&this.setIcon({D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.C=l;this.V=!1;this.Wm=null;TG(l)?(this.S=g.uN("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.C.getPlaybackRate().toString()}),this.L=this.C.getPlaybackRate()):this.L=this.S=null;this.Y=this.C.getAvailablePlaybackRates();this.U(l,"presentingplayerstatechange",this.y5);var X;((X=this.C.getVideoData())==null?0:X.iK())&&this.U(l,"serverstitchedvideochange",this.y5);this.U(this.T.S,"change",function(){L.V=!0;L.y5()}); this.y5()}; TGa=function(l,n){var O=PP5(n);l.S&&(l.V||n===l.L)?(l.aN(l.S),l.NP(n.toString())):l.aN(O)}; ELa=function(l){l.Qr(l.Y.map(PP5));l.S=null;l.L=null;var n=l.C.getPlaybackRate();if(!l.Y.includes(n)||TG(l.C))Ww5(l,n),l.aN(l.S)}; Ww5=function(l,n){l.L=n;l.S=g.uN("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:n.toString()});n=l.Y.map(PP5);n.unshift(l.S);l.Qr(n)}; PP5=function(l){return l.toString()}; TG=function(l){return l.J("web_settings_menu_surface_custom_playback")}; NGi=function(l){return l.J("web_settings_menu_surface_custom_playback")&&l.J("web_settings_use_input_slider")}; qsq=function(l,n,O,L){var X=new g.$8(n,void 0,"Video Override");g.Ko.call(this,L.text||"",l,n,O,"Video Override",function(){g.cL(O,X)}); var F=this;g.FW(this.element,"ytp-subtitles-options-menu-item");this.setting=L.option.toString();l=L.options;this.settings=g.rQ(l,this.pD,this);this.V=X;g.c(this,this.V);n=new g.SR({D:"div",X:"ytp-menuitemtitle",hG:"Allow for a different caption style if specified by the video."},0);g.c(this,n);this.V.yu(n,!0);this.L=new g.SR({D:"div",X:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",X:"ytp-menuitem-label",hG:"On"}]},-1);g.c(this,this.L);this.V.yu(this.L,!0);this.U(this.L.element, "click",function(){D5q(F,!0)}); this.S=new g.SR({D:"div",X:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",X:"ytp-menuitem-label",hG:"Off"}]},-2);g.c(this,this.S);this.V.yu(this.S,!0);this.U(this.S.element,"click",function(){D5q(F,!1)}); this.Qr(g.M9(l,this.pD))}; D5q=function(l,n){l.publish("settingChange",l.setting+"Override",!n);l.C5.eD()}; Wl=function(l,n){g.$8.call(this,l,void 0,"Options");var O=this;this.eb={};for(var L=0;L<g.WA.length;L++){var X=g.WA[L],F=new qsq(-L,l,n,X);g.c(this,F);F.subscribe("settingChange",this.Ih,this);this.eb[X.option.toString()]=F;this.yu(F,!0)}l=new g.SR(g.pF(),-g.WA.length,"Reset");g.c(this,l);l.listen("click",function(){O.Ih("reset",!0)}); this.yu(l,!0)}; Em=function(l,n){g.Ko.call(this,"Auto-translate",0,l,n);this.C=l;this.languages={};l.createClientVe(this.element,this,127301);l.logVisibility(this.element,!0)}; kvf=function(l,n){l.languages=g.rQ(n,l.S,l);l.Qr(g.M9(n,l.S))}; MD5=function(l,n){var O=new Wl(l,n),L=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],X;g.a5(l.j())&&(X={D:"div",X:"ytp-panel-footer-content",K:[{D:"span",hG:L[0]},{D:"a",X:"ytp-panel-footer-content-link",hG:"Settings",Z:{href:"/account_playback"}},{D:"span",hG:L[1]}]});g.Ko.call(this,"Subtitles/CC",g.Fo.SUBTITLES,l,n,"Options",function(){g.cL(n,O)},X); var F=this;this.C=l;this.C5=n;this.tracks={};this.T=new g.vs(function(){yv0(F,!1)},3E3); g.c(this,this.T);this.countLabel=new g.f({D:"div",K:[{D:"span",hG:"Subtitles/CC"},{D:"span",X:"ytp-menuitem-label-count",hG:"{{content}}"}]});g.c(this,this.countLabel);g.zM(this,this.countLabel);l.J("web_settings_menu_icons")&&this.setIcon(nWi.includes("en")?{D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z", fill:"white"}}]}:{D:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.S=new Em(l,n);g.c(this,this.S);this.S.subscribe("select",this.Tl,this);this.V=O;g.c(this,this.V);this.V.subscribe("settingChange",this.Ih,this);n.subscribe("show",this.pSJ,this);this.U(l,"videodatachange",this.y5);this.U(l,"onApiChange",this.y5);this.U(l,"onCaptionsTrackListChanged", this.y5);this.U(l,"captionschanged",this.y5);l.createClientVe(this.element,this,127300);this.y5()}; Q$i=function(l){return Object.values(l.tracks).find(function(n){return n.languageCode==="en"&&n.kind==="asr"})}; Nh=function(l,n){l.C.setOption("captions","track",n)}; yv0=function(l,n){l.C.setOption("captions","sampleSubtitles",n)}; eaq=function(l){g.BL.call(this,l,"ytp-settings-menu");var n=this;this.L1=new g.$8(this.C);this.Q1=this.settingsButton=null;this.isInitialized=this.cw=!1;g.c(this,this.L1);this.hide();g.cL(this,this.L1);l.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(O){n.mI(O)}); this.U(l,"highlightSettingsMenu",function(){n.cw=!0;n.In()}); this.U(l,"openSettingsMenuItem",function(O){if(O&&(n.cw=!0,n.In(),O==="menu_item_video_quality_advanced")){var L;(L=n.Q1)==null||L.open()}})}; Ysf=function(l,n){l.settingsButton=n;l.element.id=n.element.getAttribute("aria-controls")}; j$9=function(l,n){g.f.call(this,{D:"button",gq:["ytp-subtitles-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},K:[OD9()]});this.C=l;this.tooltip=n.VE();this.U(l,"videodatachange",this.y5);this.U(l,"appresize",this.y5);this.U(l,"promotooltipacceptbuttonclicked",this.W1G);this.U(l,"onApiChange",this.y5);this.U(l,"onCaptionsTrackListChanged",this.y5);this.U(l,"captionschanged",this.y5); this.C.createClientVe(this.element,this,127299);this.y5();this.listen("click",this.onClick);this.addOnDisposeCallback(g.WD(n.VE(),this.element))}; Gvq=function(l){return g.G4(l.C.dc())!=null?g.G4(l.C.dc()).Qa()?!!l.C.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; g.DJ=function(l,n,O){O=O===void 0?350:O;g.f.call(this,{D:"div",gq:["ytp-time-display","notranslate"],K:[{D:"span",X:"ytp-time-wrapper",K:[{D:"span",X:"ytp-time-clip-icon",hG:"{{clipicon}}"},{D:"span",X:"ytp-time-current",hG:"{{currenttime}}"},{D:"span",X:"ytp-time-separator",hG:" / "},{D:"span",X:"ytp-time-duration",hG:"{{duration}}"}]},{D:"span",X:"ytp-clip-watch-full-video-button-separator",hG:"\u2022"},{D:"span",X:"ytp-clip-watch-full-video-button",hG:"{{watchfullvideo}}"}]});var L=this;this.api= l;this.Y=O;this.liveBadge=new g.f({D:"button",gq:["ytp-live-badge","ytp-button"],Z:{disabled:"true"},hG:"{{content}}"});this.S=null;this.wf=this.W=!1;this.G=this.T=null;this.isPremiere=!1;this.V=this.L=null;this.N=!1;this.Hj=null;this.Wm=this.mJ("ytp-clip-watch-full-video-button");this.api.J("web_player_updated_entrypoint")&&g.wP(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.NP("Live");g.c(this,this.liveBadge);this.api.J("web_player_updated_entrypoint")||this.api.J("delhi_modern_web_player")? this.liveBadge.V5(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.V5(this.element);this.tooltip=n.VE();this.liveBadge.listen("click",this.onClick.bind(this));this.api.J("delhi_modern_web_player")&&this.U(this.mJ("ytp-time-current"),"click",this.snz);this.U(this.Wm,"click",this.eOq);this.U(this.api,"serverstitchedvideochange",function(){m55(L,L.api.getProgressState().isAtLiveHead)}); this.U(l,"presentingplayerstatechange",this.tC);this.U(l,"appresize",this.tC);this.U(l,"onLoopRangeChange",this.onLoopRangeChange);this.U(l,"videodatachange",this.onVideoDataChange);(n=l.getVideoData())&&this.updateVideoData(n);this.tC();Irk(this,l.getLoopRange())}; m55=function(l,n){var O=l.liveBadge.element,L=l.api.isLifaAdPlaying();O.disabled=L||n;!qh(l)||l.G===n&&l.T===l.isPremiere||(l.G=n,l.T=l.isPremiere,l.tC(),n?O.classList.add("ytp-live-badge-is-livehead"):O.classList.remove("ytp-live-badge-is-livehead"),l.liveBadge.NP(l.isPremiere?"Premiere":"Live"),n?l.S&&(l.S(),l.S=null,O.removeAttribute("title")):(O.title="Skip ahead to live broadcast.",l.S=g.WD(l.tooltip,l.liveBadge.element)))}; Irk=function(l,n){var O=l.Hj!==n;l.Hj=n;O&&d5i(l)}; d5i=function(l){l.updateValue("clipicon",{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",Z:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); l.wf&&!l.W?l.updateValue("watchfullvideo","Watch live stream"):l.updateValue("watchfullvideo","Watch full video");g.wP(l.element,"ytp-clip",k1(l));g.wP(l.element,"ytp-live",qh(l))}; qh=function(l){var n=l.api.j().J("enable_linear_program_progress"),O=!l.api.J("clean_player_style_fix_on_web")||l.api.getPresentingPlayerType()!==2;return l.wf&&!k1(l)&&(!n||!l.W)&&O}; k1=function(l){return!!l.Hj&&!!l.Hj.postId&&l.api.getPresentingPlayerType()!==2&&(!l.Hj.type||l.Hj.type==="clips")}; VDf=function(l,n){g.f.call(this,{D:"div",X:"ytp-volume-panel",Z:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{D:"div",X:"ytp-volume-slider",K:[{D:"div",X:"ytp-volume-slider-handle"}]}]});var O=this;this.api=l;this.T=n;this.nL=!1;this.Y=this.volume=0;this.V=null;this.W=this.S=this.isDragging=!1;this.T=n;this.N=l.bU();this.G=this.mJ("ytp-volume-slider");this.Wm=this.mJ("ytp-volume-slider-handle"); this.L=new g.Co(this.G,!0);g.c(this,this.L);this.L.subscribe("dragstart",this.fZ3,this);this.L.subscribe("dragmove",this.a5,this);this.L.subscribe("dragend",this.M3F,this);this.U(l,"onVolumeChange",this.onVolumeChange);this.U(l,"appresize",this.Ia);this.U(l,"fullscreentoggled",this.qG);this.U(l,"onShowControls",this.o2);this.U(l,"onHideControls",this.o2);this.U(this.element,"keydown",this.XY);this.U(this.element,"focus",function(){yD(O,O.S,O.isDragging,!0,O.api.nL())}); this.U(this.element,"blur",function(){yD(O,O.S,O.isDragging,!1,O.api.nL())}); this.Ia(l.xP().getPlayerSize());$59(this,l.getVolume(),l.isMuted());EY(l,this.element,this)}; $59=function(l,n,O){var L=Math.floor(n),X=L+"% volume"+(O?" muted":"");O=O?0:n/100;l.updateValue("valuenow",L);l.updateValue("valuetext",X);l.Wm.style.left=(l.N?60:40)*O+"px";l.volume=n}; BGf=function(l,n){g.wP(l.element,"ytp-volume-control-hover",n);yD(l,n,l.isDragging,l.W,l.api.nL())}; yD=function(l,n,O,L,X){var F=l.S||l.isDragging||l.W||l.nL;l.S=n;l.isDragging=O;l.W=L;l.nL=X;n=l.S||l.isDragging||l.W||l.nL;F!==n&&(n?l.V=l.U(l.element,"wheel",l.i4):(l.EC(l.V),l.V=null),g.wP(l.T,"ytp-volume-slider-active",n))}; Mh=function(l,n){var O=l.j(),L=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];O.N&&L.push("no-link");var X={title:"{{title}}",target:O.Y,"data-priority":"5","data-sessionlink":"feature=player-button"};O.N||(X.href="{{url}}");g.f.call(this,{D:"a",gq:L,Z:X,hG:"{{logoSvg}}"});this.S=null;this.api=l;this.visible=!1;O.N||(this.S=this.listen("click",this.onClick));this.U(l,"videodatachange",this.onVideoDataChange);this.U(l,"videoplayerreset",this.onVideoDataChange);this.U(l,"onLoopRangeChange", this.onVideoDataChange);this.U(l,"appresize",this.x4);this.onVideoDataChange();O.N||this.addOnDisposeCallback(g.WD(n.VE(),this.element));this.x4()}; cva=function(l,n,O){g.$B.call(this);var L=this;this.C=l;this.Lf=n;this.Zs=O;this.uv=NaN;this.NQ=this.nf=this.playButton=this.B=this.V=this.Pm=this.wq=this.Wm=this.Y=this.S=this.Of=this.Yo=null;this.N=new eaq(this.C);this.progressBar=new g.KT(this.C,this.Lf);this.Cf=new g.DJ(this.C,this.Lf);this.Q5=new Ogi(this.C,this.Lf);this.G=new g.tN(this.yM,null,this);O=l.j();this.Zs.subscribe("autohideupdate",this.xK,this);var X=!l.getPlayerStateObject().isCued(),F;l.j().J("html5_player_dynamic_bottom_gradient")? this.Of=F=new tGv(l):F=new g.f({D:"div",X:"ytp-gradient-bottom"});g.c(this,F);g.jR(l,F.element,9);this.Hm=new g.gy(F,250,X,100);g.c(this,this.Hm);this.L=new g.f({D:"div",X:"ytp-chrome-bottom",K:[{D:"div",X:"ytp-chrome-controls"}]});g.c(this,this.L);g.jR(l,this.L.element,9);this.z3=new g.gy(this.L,250,X,100);g.c(this,this.z3);this.Fi=this.L.element.children[0];g.c(this,this.N);g.jR(l,this.N.element,6);this.N.subscribe("show",function(Z){L.C.jK(!Z);l.O3(L.N,Z)}); g.c(this,this.progressBar);this.progressBar.V5(this.L.element,0);X=new d5(l,n);g.c(this,X);g.jR(l,X.element,4);X=new g.Jj({D:"div",X:"ytp-left-controls"});g.c(this,X);X.V5(this.Fi);l.J("delhi_modern_web_player")||(F=new g.zi(l,n,!1),g.c(this,F),F.V5(X.element));l.J("web_render_jump_buttons")&&(this.Y=new $3(l,g.HQ(l.j().experiments,"web_jump_button_backward_amount")||-10),g.c(this,this.Y),this.Y.V5(X.element));O.Hm||(this.playButton=new g.iq(l,n),g.c(this,this.playButton),this.playButton.V5(X.element)); l.J("web_render_jump_buttons")&&(this.Wm=new $3(l,g.HQ(l.j().experiments,"web_jump_button_forward_amount")||10),g.c(this,this.Wm),this.Wm.V5(X.element));l.J("delhi_modern_web_player_remove_nav_buttons")||(l.J("delhi_modern_web_player")&&(F=new g.zi(l,n,!1),g.c(this,F),F.V5(X.element)),F=new g.zi(l,n,!0),g.c(this,F),F.V5(X.element));if(!l.J("delhi_modern_web_player")&&(F=new g.f({D:"span",X:"ytp-volume-area"}),g.c(this,F),F.V5(X.element),!O.Xg&&(this.S=new cA(l,n),g.c(this,this.S),this.S.V5(F.element), O.wq&&!O.G))){var x=new VDf(l,this.L.element);this.nf=x;g.c(this,x);x.V5(F.element);F=new g.Co(F.element);g.c(this,F);F.subscribe("hoverstart",function(){var Z;(Z=L.nf)==null||BGf(Z,!0)}); F=new g.Co(X.element);g.c(this,F);F.subscribe("hoverend",function(){var Z;(Z=L.nf)==null||BGf(Z,!1)})}g.c(this,this.Cf); this.Cf.V5(X.element);this.wq=new IX(l,this.progressBar);g.c(this,this.wq);this.wq.V5(X.element);O.J("web_key_moments_markers")&&(this.Pm=new V0(l,this.progressBar),g.c(this,this.Pm),this.Pm.V5(X.element));l.J("delhi_modern_web_player")?(this.W=new g.Jj({D:"div",X:"ytp-right-controls",K:[{D:"div",X:QD.RIGHT_CONTROLS_LEFT},{D:"div",X:QD.RIGHT_CONTROLS_RIGHT}]}),l.J("delhi_modern_web_player_right_controls_separate")&&g.FW(this.W.element,"ytp-right-controls-separate")):this.W=new g.Jj({D:"div",X:"ytp-right-controls"}); g.c(this,this.W);this.W.V5(this.Fi);l.J("delhi_modern_web_player")&&(this.S=new cA(l,n),g.c(this,this.S),this.S.V5(this.W.mJ(QD.RIGHT_CONTROLS_LEFT)));this.G3=new j$9(l,n);g.c(this,this.G3);ed(this,this.G3,"RIGHT_CONTROLS_LEFT");this.settingsButton=new wN(l,this.N);g.c(this,this.settingsButton);Ysf(this.N,this.settingsButton);ed(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");X=l.getVideoData();if(O.Q8||X.hh&&O.controlsType==="1")this.V=new Mh(l,n),g.c(this,this.V),this.V.V5(this.W.element);O.showMiniplayerButton&& (this.B=new BA(l),g.c(this,this.B),ed(this,this.B,"RIGHT_CONTROLS_RIGHT"));O.cQ&&(n=new JE(l,this.N),g.c(this,n),ed(this,n,"RIGHT_CONTROLS_RIGHT"));O.mN&&(n=new Gi(l),g.c(this,n),ed(this,n,"RIGHT_CONTROLS_RIGHT"));g.c(this,this.Q5);ed(this,this.Q5,"RIGHT_CONTROLS_RIGHT");g.c(this,this.G);this.U(l,"appresize",this.x4);this.U(l,"fullscreentoggled",this.x4);this.U(l,"presentingplayerstatechange",this.So);this.U(l,"videodatachange",this.onVideoDataChange);this.x4()}; i99=function(l,n){if(l.C.getPlayerStateObject().isCued()||n){if(n){l.z3.hide();l.Hm.hide();l.S&&l.S.Ge(!1);l.V&&l.V.Ge(!1);l.B&&l.B.Ge(!1);if(l.C.J("embeds_use_parent_visibility_in_ve_logging")){var O;(O=l.Q5)==null||O.Ge(!1);var L;(L=l.settingsButton)==null||L.Ge(!1);var X;(X=l.playButton)==null||X.Ge(!1)}l.C.BH(l.De())}}else if(!n){l.z3.show();l.Hm.show();l.S&&l.S.Ge(!0);l.V&&l.V.Ge(!0);l.B&&l.B.Ge(!0);if(l.C.J("embeds_use_parent_visibility_in_ve_logging")){var F;(F=l.Q5)==null||F.Ge(!0);var x; (x=l.G3)==null||x.Ge(!0);var Z;(Z=l.playButton)==null||Z.Ge(!0)}l.xK()}}; Sse=function(l){var n=l.C.xP().getPlayerSize().width;return Math.max(n-zag(l)*2,100)}; zag=function(l){var n=l.C.bU(),O=l.C.getVideoData().hh,L=0;l.C.bU()&&l.C.isEmbedsShortsMode()&&(L=(l.C.xP().getPlayerSize().width-l.C.getVideoContentRect().width)/2);return 12*(O?0:n?2:1)+L}; p5i=function(l){var n=l.C.bU()?72:50;l=l.C.j();g.a5(l)&&(n=l.J("delhi_modern_web_player")?78:62,g.GH(l)&&(n=54));return n}; ed=function(l,n,O){l.C.J("delhi_modern_web_player")?n.V5(l.W.mJ(QD[O])):n.V5(l.W.element)}; s$i=function(l){Iy.call(this,l,!1);var n=this;this.suggestedActions={};this.U(this.C,"videodatachange",this.onVideoDataChange);this.U(this.C,g.F4("suggested_action_button_visible"),function(O){O=O.id;n.text=O;z4i(n);n.onClickCommand=n.suggestedActions[O];n.enabled=!0;n.mI()}); this.U(this.C,g.xx("suggested_action_button_visible"),function(O){n.enabled=!1;n.mI();n.C.removeCueRange(O.id)})}; fr8=function(l){l.suggestedActions={};l.C.cS("suggested_action_button_visible")}; jd=function(l){g.f.call(this,{D:"div",X:Y1.TITLE,K:[{D:"div",X:Y1.TEXT,K:[{D:"a",gq:[Y1.LINK,Y1.SESSIONLINK],Z:{target:l.j().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},hG:"{{title}}"},{D:"div",X:Y1.SUBTEXT,K:["{{subtextElement}}"]}]}]});this.api=l;this.S=null;this.link=this.mJ(Y1.LINK);l.createClientVe(this.element,this,23851);this.U(l,"videodatachange",this.y5);this.U(l,"videoplayerreset",this.y5);this.y5()}; Kwi=function(l){l.updateValue("channelLink","");l.updateValue("channelName","");g.GH(l.api.j())?l.updateValue("channelTitleFocusable","0"):l.updateValue("channelTitleFocusable","-1")}; g.GG=function(l,n){g.f.call(this,{D:"div",K:[{D:"div",X:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},K:[{D:"div",X:"ytp-tooltip-edu",K:[{D:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Z:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{D:"span",hG:"{{eduText}}"}]},{D:"div",X:"ytp-tooltip-image"},{D:"div",X:"ytp-tooltip-title",K:[{D:"span",hG:"{{title}}"},{D:"div",X:"ytp-tooltip-keyboard-shortcut", hG:"{{keyBoardShortcut}}"}]},{D:"div",X:"ytp-tooltip-bottom-text",K:[{D:"span",X:"ytp-tooltip-text",hG:"{{text}}"},{D:"div",X:"ytp-tooltip-keyboard-shortcut",hG:"{{keyBoardShortcut}}"}]}]},{D:"div",X:"ytp-tooltip-bg",K:[{D:"div",X:"ytp-tooltip-duration",hG:"{{duration}}"}]}]});var O=this;this.api=l;this.z3=n;this.Y=function(L){(L=L.relatedTarget)&&g.Fg(O.S,L)||O.CM()}; this.V=function(L){O.type===3&&O.CM();(L=L.currentTarget)&&L.nodeType===1&&!O.type&&(L.removeEventListener("mouseover",O.V),L.addEventListener("mouseout",O.Y),L.removeEventListener("focus",O.V),L.addEventListener("blur",O.Y),ar9(O,L,2))}; this.Wm=function(){O.CM()}; this.type=this.S=null;this.G=!1;this.W=null;this.N="";this.T=!0;this.scale=1;this.env=this.api.j();this.Lf=this.env.W;this.wrapper=this.mJ("ytp-tooltip-text-wrapper");this.bg=this.mJ("ytp-tooltip-bg");this.Cf=this.mJ("ytp-tooltip-edu");this.image=this.mJ("ytp-tooltip-image");this.text=this.mJ("ytp-tooltip-text");this.bottomText=this.mJ("ytp-tooltip-bottom-text");this.title=this.mJ("ytp-tooltip-title");this.fade=new g.gy(this,100);this.L=NaN;this.nD=this.api.xP().getPlayerSize().width;this.NQ=new g.vs(this.cG1, 250,this);this.Q5=new g.vs(this.CM,5E3,this);g.c(this,this.fade);g.c(this,this.NQ);g.c(this,this.Q5);DU&&(l=this.mJ("ytp-tooltip-text"),l.setAttribute("role","text"),l.setAttribute("aria-live","polite"))}; g.WD=function(l,n){if(l.Lf)return function(){}; n.addEventListener("mouseover",l.V);n.addEventListener("focus",l.V);var O=n.getAttribute("title");O&&!n.hasAttribute("aria-label")&&n.setAttribute("aria-label",O);return function(){l.S===n&&l.CM();n.removeEventListener("mouseover",l.V);n.removeEventListener("focus",l.V)}}; ar9=function(l,n,O,L){if(n&&!n.hasAttribute)l=new g.at("showElementTooltip called with non-element.",n.toString()),g.Ir(l);else{isNaN(l.L)||(l.L=NaN,l.bg.style.background="");l.S=n;l.G=!!L;L?l.N=L:(l.N=n.getAttribute("title"),n.removeAttribute("title"));g.XW(l.element,"ytp-tooltip");var X=n.getAttribute("data-tooltip-image");X&&(l.image.style.backgroundImage="url("+X+")");L?l.update({ariaHidden:"false"}):l.update({ariaHidden:"true"});g.wP(l.element,"ytp-tooltip-image-enabled",!!X);n=n.getAttribute("data-tooltip-opaque"); g.wP(l.element,"ytp-tooltip-opaque",!!n);l.type=O;l.api.addEventListener("appresize",l.Wm);l.T&&(Ra0(l),l.fade.show(0))}}; Ra0=function(l){if(l.S){var n=l.S.getAttribute("data-tooltip-text");if(l.N&&l.S.getAttribute("aria-label")!==l.N)var O=l.N;var L=l.S.getAttribute("aria-keyshortcuts"),X=l.S.getAttribute("data-title-no-tooltip");L&&X&&(O=g.uN("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:X,SHORTCUT_KEY:L}));O&&l.S.setAttribute("aria-label",O);if(n&&!l.G){L=l.S;l.updateValue("text",n);O=L.getAttribute("data-duration");l.update({title:l.N,duration:O});L=L.getAttribute("data-preview");X=243*l.scale;var F= 141*l.scale;l.bg.style.width=X+"px";l.bg.style.height=F+"px";l.bg.style.backgroundImage=L?"url("+L+")":"";l.bg.style.backgroundSize=X+"px "+F+"px";l.wrapper.style.width=X+"px";g.h5(l.element,["ytp-text-detail","ytp-preview"]);g.wP(l.element,"ytp-has-duration",!!O)}else l.updateValue("text",l.N),L&&l.env.J("delhi_modern_web_player")&&(l.updateValue("text",X),l.updateValue("keyBoardShortcut",L.toUpperCase())),g.J5(l.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);CPi(l,!!n)}}; CPi=function(l,n,O,L){var X=Math.min(l.nD,300*l.scale);l.element.style.maxWidth=n?"":X+"px";l.z3.PJ(l.element,l.S,O,l.type===1,L);l.element.style.top?g.FW(l.element,"ytp-bottom"):l.element.style.bottom&&g.FW(l.element,"ytp-top");l.type===3&&l.Q5.start()}; tDf=function(l,n){g.wP(l.element,"ytp-preview",n>=0);if(!(n<0||n===l.L)){l.L=n;n=243*l.scale;var O=141*l.scale,L=x08(l.W,l.L,n);vfv(l.bg,L,n,O,!0);l.NQ.start()}}; vL0=function(l){var n=l.S;l.type===3&&l.Q5.stop();l.api.removeEventListener("appresize",l.Wm);l.G||n.setAttribute("title",l.N);l.N="";l.S=null;l.updateValue("keyBoardShortcut","");l.wrapper.style.width=""}; nD5=function(l){g.f.call(this,{D:"button",gq:["ytp-watch-later-button","ytp-button"],Z:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.yG(l.j()))},K:[{D:"div",X:"ytp-watch-later-icon",hG:"{{icon}}"},{D:"div",X:"ytp-watch-later-title",hG:"Watch later"}]});this.C=l;this.icon=null;this.visible=this.isRequestPending=this.S=!1;V70(l);l.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.U(l,"videoplayerreset",this.onReset);this.U(l,"appresize", this.OH);this.U(l,"videodatachange",this.OH);this.U(l,"presentingplayerstatechange",this.OH);this.OH();l=this.C.j();var n=g.dU("yt-player-watch-later-pending");l.L&&n?(Qna(),ltk(this)):this.y5(2);g.wP(this.element,"ytp-show-watch-later-title",g.yG(l));EY(this.C,this.element,this)}; OY5=function(l){var n=l.C.getPlayerSize(),O=l.C.j(),L=l.C.getVideoData(),X=g.yG(O)&&g.Mc(l.C)&&g.K(l.C.getPlayerStateObject(),128),F=O.N;return O.lf&&n.width>=240&&!L.isAd()&&L.lf&&!X&&!g.l4(L)&&!l.C.isEmbedsShortsMode()&&!F}; gD9=function(l,n){Ev8(g.SV(l.C.j()),"wl_button",function(){Qna({videoId:n});window.location.reload()})}; ltk=function(l){if(!l.isRequestPending){l.isRequestPending=!0;l.y5(3);var n=l.C.getVideoData();n=l.S?n.removeFromWatchLaterCommand:n.addToWatchLaterCommand;var O=l.C.A2(),L=l.S?function(){l.S=!1;l.isRequestPending=!1;l.y5(2);l.C.j().T&&l.C.lF("WATCH_LATER_VIDEO_REMOVED")}:function(){l.S=!0; l.isRequestPending=!1;l.y5(1);l.C.j().W&&l.C.KY(l.element);l.C.j().T&&l.C.lF("WATCH_LATER_VIDEO_ADDED")}; RM(O,n).then(L,function(){l.isRequestPending=!1;l.y5(4,"An error occurred. Please try again later.");l.C.j().T&&l.C.lF("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; Ld9=function(l,n){if(n!==l.icon){switch(n){case 3:var O=Xo();break;case 1:O=Pr();break;case 2:O={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:O={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path", Lp:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}l.updateValue("icon",O);l.icon=n}}; g.mm=function(){g.tx.apply(this,arguments);this.Vk=(this.Z7=g.yG(this.api.j()))&&(this.api.j().W||ni()||vu());this.Di=48;this.CC=69;this.hk=this.yb=null;this.r_=[];this.rM=this.t2=this.L3=this.eZ=this.po=null;this.Qo=[];this.contextMenu=this.bQ=this.overflowButton=this.J2=this.BG=this.searchButton=this.copyLinkButton=this.shareButton=this.tL=this.rZ=this.title=this.channelAvatar=this.Cc=this.tooltip=null;this.Oy=!1;this.O1=this.Ye=this.Pa=this.UF=null;this.K_=this.VL=this.Xe=!1}; Xj9=function(l){var n=l.api.j(),O=g.K(l.api.getPlayerStateObject(),128);return n.L&&O&&!l.api.isFullscreen()}; oDk=function(l){if(l.Rp()&&!l.api.isEmbedsShortsMode()&&l.J2){var n=l.api.J("web_player_hide_overflow_button_if_empty_menu");!l.tL||n&&!OY5(l.tL)||Nsk(l.J2,l.tL);!l.shareButton||n&&!GLv(l.shareButton)||Nsk(l.J2,l.shareButton);!l.copyLinkButton||n&&!$nk(l.copyLinkButton)||Nsk(l.J2,l.copyLinkButton)}else{if(l.J2){n=l.J2;for(var O=g.P(n.actionButtons),L=O.next();!L.done;L=O.next())L.value.detach();n.actionButtons=[]}l.searchButton&&!g.Fg(l.rZ.element,l.searchButton.element)&&l.searchButton.V5(l.rZ.element); l.tL&&!g.Fg(l.rZ.element,l.tL.element)&&l.tL.V5(l.rZ.element);l.shareButton&&!g.Fg(l.rZ.element,l.shareButton.element)&&l.shareButton.V5(l.rZ.element);l.copyLinkButton&&!g.Fg(l.rZ.element,l.copyLinkButton.element)&&l.copyLinkButton.V5(l.rZ.element)}}; Fde=function(l,n,O){n=O?n.lastElementChild:n.firstElementChild;for(var L=null;n;){if(rZ(n,"display")!=="none"&&n.getAttribute("aria-hidden")!=="true"){var X=void 0;n.tabIndex>=0?X=n:X=Fde(l,n,O);X&&(L?O?X.tabIndex>L.tabIndex&&(L=X):X.tabIndex<L.tabIndex&&(L=X):L=X)}n=O?n.previousElementSibling:n.nextElementSibling}return L}; xf0=function(l,n,O){if(l.api.J("web_player_nitrate_promo_tooltip")&&l.api.getPresentingPlayerType(!0)!==2){var L=l.api.getVideoData(1);if(L==null?0:L.tooltipRenderer){L=L.tooltipRenderer;var X;if(X=!l.O1){if(!(n=!n)){var F,x,Z;n=((F=L.tooltipDisplayStrategy)==null?void 0:F.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((x=L.promoConfig)==null?void 0:x.promoId)!=="dtip-edu-player-iseecaptions"&&((Z=L.promoConfig)==null?void 0:Z.promoId)!=="dtip-edu-player-tc-m2"}X=n}X&&(l.O1=new yQ5(L,l.api), g.c(l,l.O1),g.jR(l.api,l.O1.element,9));var J;(J=l.O1)==null||YRi(J,L,O)}}}; g.Ix=function(l){g.qq.call(this,l);this.chrome=null;this.load()}; hV8=function(){for(var l=dN.length;l<4;l++){var n=g.nf("VIDEO");n.load();dN.push(new g.o6(n))}}; ZY8=function(l,n,O,L){var X=O.getVideoData(),F=n.getVideoData();if(O.getPlayerState().isError())return{msg:"player-error"};var x=F.N;if(n.n1()>L/1E3+1)return{msg:"in-the-past"};if(F.isLivePlayback&&!isFinite(L))return{msg:"live-infinite"};(L=n.T$())&&L.isView()&&(L=L.mediaElement);if(L&&L.Ew().length>12&&g.Pf(X))return{msg:"played-ranges"};if(!X.N)return null;if(!x)return{msg:"no-pvd-formats"};if(!X.N.S||!x.S)return{msg:"non-dash"};L=x.videoInfos[0];var Z=X.N.videoInfos[0];l.T&&O9(F)&&(L=n.An(),Z= O.An());if(!L||!Z)return{msg:"no-video-info"};if(l.N&&(Rb(L)||Rb(Z)))return{msg:"av1"};n=l.S&&F.UX()&&ut();if(Z.containerType!==L.containerType)if(n)F.Sp("sgap",{ierr:"container"});else return{msg:"container"};if(l.W&&!n&&(Z.bF!==L.bF||Z.bF===""||L.bF===""))return{msg:"codec"};if(l.L&&Z.video&&L.video&&Math.abs(Z.video.width/Z.video.height-L.video.width/L.video.height)>.01)return{msg:"ratio"};if(g.Pf(F)&&g.Pf(X))return{msg:"content-protection"};x=x.S[0];X=X.N.S[0];O=x.audio;var J=X.audio;if(O.sampleRate!== J.sampleRate&&!g.G2)if(n)F.Sp("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:x.itag,cr:O.sampleRate,ni:X.itag,nr:J.sampleRate};return(O.numChannels||2)!==(J.numChannels||2)?{msg:"channel-count"}:l.B&&F.UX()&&L.video.fps!==Z.video.fps?{msg:"fps"}:null}; JCa=function(l,n,O){var L=l.getVideoData(),X=n.getVideoData();if(!L.j().supportsGaplessShorts())return{nq:"env"};if(O.V){if(L.M3&&!L.isAd()||X.M3&&!X.isAd())return{nq:"autoplay"}}else if(L.M3||X.M3)return{nq:"autoplay"};if(!L.G)return{nq:"client"};if(!l.o0())return{nq:"no-empty"};l=ZY8(O,l,n,Infinity);return l!=null?{nq:l.msg}:null}; $1=function(l){g.V.call(this);this.app=l;this.B=this.L=this.W=this.S=null;this.N=1;this.events=new g.$B(this);this.events.U(this.app.iF,g.xx("gaplessshortslooprange"),this.G);g.c(this,this.events)}; wjf=function(){this.L=this.V=this.N=this.T=this.B=this.W=this.S=!1}; HY9=function(l){var n=new wjf;n.S=l.J("h5_gapless_support_types_diff");n.B=l.J("h5_gapless_error_on_fps_diff");n.T=l.J("html5_gapless_use_format_info_fix");n.N=l.J("html5_gapless_disable_on_av1")&&!l.J("html5_gapless_enable_on_av1");n.W=l.J("html5_gapless_check_codec_diff_strictly");n.V=l.J("html5_gapless_on_ad_autoplay");n.L=l.J("html5_gapless_disable_diff_aspect_radio");return n}; g.VD=function(l,n,O,L){L=L===void 0?!1:L;lL.call(this);this.mediaElement=l;this.start=n;this.end=O;this.S=L}; ACq=function(l,n,O,L,X,F){F=F===void 0?0:F;g.V.call(this);var x=this;this.policy=l;this.S=n;this.W=O;this.AC=X;this.B=F;this.L=this.N=null;this.currentVideoDuration=this.V=-1;this.T=!1;this.N1=new v6;this.v5=L-n.ez()*1E3;this.N1.then(void 0,function(){}); this.timeout=new g.vs(function(){x.Qf("timeout")},1E4); g.c(this,this.timeout);this.G=isFinite(L);this.status={status:0,error:null}}; Ufe=function(l){var n,O,L,X,F,x,Z,J,w,H;return g.Y(function(A){if(A.S==1){if(l.JG())return A.return(Promise.reject(Error(l.status.error||"disposed")));l.timeout.start();n=g.Bl.xp();return g.Q(A,l.N1,2)}g.Bl.wT("gtfta",n);O=l.S.T$();if(O.isEnded())return l.Qf("ended_in_finishTransition"),A.return(Promise.reject(Error(l.status.error||"")));if(!l.L||!f5(l.L))return l.Qf("next_mse_closed"),A.return(Promise.reject(Error(l.status.error||"")));if(l.W.wJ()!==l.L)return l.Qf("next_mse_mismatch"),A.return(Promise.reject(Error(l.status.error|| "")));L=bY9(l);X=L.MO;F=L.zL;x=L.Gs;l.S.bJ(!1,!0);Z=rC0(O,X,x,!l.W.getVideoData().isAd());l.W.setMediaElement(Z);(J=l.S.qd())&&l.W.o$(J.H8,J.JK);l.G&&(l.W.seekTo(l.W.getCurrentTime()+.001,{Uw:!0,AO:3,UC:"gapless_pseudo"}),Z.play(),mA());w=O.sC();w.cpn=l.S.getVideoData().clientPlaybackNonce;w.st=""+X;w.et=""+x;l.W.Sp("gapless",w);l.S.Sp("gaplessTo",{cpn:l.W.getVideoData().clientPlaybackNonce});H=l.S.getPlayerType()===l.W.getPlayerType();l.S.Bv(F,!0,!1,H,l.W.getVideoData().clientPlaybackNonce);l.W.Bv(l.W.getCurrentTime(), !0,!0,H,l.S.getVideoData().clientPlaybackNonce);l.W.yx();g.Jo(function(){!l.W.getVideoData().Q5&&l.W.getPlayerState().isOrWillBePlaying()&&l.W.DX()}); cl(l,6);l.dispose();return A.return(Promise.resolve())})}; Wdg=function(l){if(l.W.getVideoData().N){var n=l.AC.j().J("html5_gapless_suspend_next_loader")&&l.B===1;l.W.F9(l.L,n,uff(l));cl(l,3);P8i(l);var O=TEi(l);n=O.v4;O=O.sb;n.subscribe("updateend",l.fm,l);O.subscribe("updateend",l.fm,l);l.fm(n);l.fm(O)}}; P8i=function(l){l.S.unsubscribe("internalvideodatachange",l.ES,l);l.W.unsubscribe("internalvideodatachange",l.ES,l);l.AC.j().J("html5_gapless_use_format_info_fix")&&(l.S.unsubscribe("internalvideoformatchange",l.ES,l),l.W.unsubscribe("internalvideoformatchange",l.ES,l));l.S.unsubscribe("mediasourceattached",l.ES,l);l.W.unsubscribe("statechange",l.Gd,l)}; rC0=function(l,n,O,L){l=l.isView()?l.mediaElement:l;return new g.VD(l,n,O,L)}; cl=function(l,n){n<=l.status.status||(l.status={status:n,error:null},n===5&&l.N1.resolve())}; uff=function(l){return l.AC.j().J("html5_gapless_no_clear_buffer_timeline")&&l.B===1&&XZ(l.S.getVideoData())}; bY9=function(l){var n=l.S.T$();n=n.isView()?n.start:0;var O=l.S.getVideoData().isLivePlayback?Infinity:l.S.RU(!0);O=Math.min(l.v5/1E3,O)+n;var L=l.G?100:0;l=O-l.W.n1()+L;return{d0:n,MO:l,zL:O,Gs:Infinity}}; TEi=function(l){return{v4:l.N.S.vS,sb:l.N.W.vS}}; iw=function(l){g.V.call(this);var n=this;this.app=l;this.B=this.W=this.S=null;this.G=!1;this.N=this.L=null;this.T=HY9(this.app.j());this.V=function(){g.Jo(function(){ED5(n)})}}; NE9=function(l,n,O,L,X){L=L===void 0?0:L;X=X===void 0?0:X;l.o0()||zG(l);l.L=new v6;l.S=n;var F=O,x=X===0;x=x===void 0?!0:x;var Z=l.app.AG(),J=Z.getVideoData().isLivePlayback?Infinity:Z.RU(!0)*1E3;F>J&&(F=J-200,l.G=!0);x&&Z.getCurrentTime()>=F/1E3?l.V():(l.W=Z,x&&(x=F,F=l.W,l.app.iF.addEventListener(g.F4("vqueued"),l.V),x=isFinite(x)||x/1E3>F.getDuration()?x:0x8000000000000,l.B=new g.X4(x,0x8000000000000,{namespace:"vqueued"}),F.addCueRange(l.B)));x=L/=1E3;F=n.getVideoData().S;L&&F&&l.W&&(Z=L,J=0, n.getVideoData().isLivePlayback&&(x=Math.min(O/1E3,l.W.RU(!0)),J=Math.max(0,x-l.W.getCurrentTime()),Z=Math.min(L,n.RU()+J)),x=lh9(F,Z)||L,x!==L&&l.S.Sp("qvaln",{st:L,at:x,rm:J,ct:Z}));n=x;L=l.S;L.getVideoData().Y4=!0;L.getVideoData().G=!0;L.IB(!0);F={};l.W&&(F=l.W.I6(),x=l.W.getVideoData().clientPlaybackNonce,F={crt:(F*1E3).toFixed(),cpn:x});L.Sp("queued",F);n!==0&&L.seekTo(n+.01,{Uw:!0,AO:3,UC:"videoqueuer_queued"});l.N=new ACq(l.T,l.app.AG(),l.S,O,l.app,X);O=l.N;O.status.status!==Infinity&&(cl(O, 1),O.S.subscribe("internalvideodatachange",O.ES,O),O.W.subscribe("internalvideodatachange",O.ES,O),O.AC.j().J("html5_gapless_use_format_info_fix")&&(O.S.subscribe("internalvideoformatchange",O.ES,O),O.W.subscribe("internalvideoformatchange",O.ES,O)),O.S.subscribe("mediasourceattached",O.ES,O),O.W.subscribe("statechange",O.Gd,O),O.S.subscribe("newelementrequired",O.Qs,O),O.ES());return l.L}; ED5=function(l){var n,O,L,X,F,x,Z,J,w;g.Y(function(H){switch(H.S){case 1:if(l.JG()||!l.L||!l.S)return H.return();l.G&&l.app.AG().ND(!0,!1);O=l.app.j().J("html5_force_csdai_gapful_transition")&&((n=l.app.AG())==null?void 0:n.getVideoData().isDaiEnabled());L=null;if(!l.N||O){H.D2(2);break}g.We(H,3);return g.Q(H,Ufe(l.N),5);case 5:g.N7(H,2);break;case 3:L=X=g.D5(H);case 2:if(!l.S)return H.return();g.Bl.bW("vqsp",function(){l.app.Iu(l.S)}); if(!l.S)return H.return();F=l.S.T$();l.app.j().J("html5_gapless_seek_on_negative_time")&&F&&F.getCurrentTime()<-.01&&l.S.seekTo(0);g.Bl.bW("vqpv",function(){l.app.playVideo()}); if(L||O)l.S?(x=L?L.message:"forced",(Z=l.W)==null||Z.Sp("gapfulfbk",{r:x}),l.S.eM(x)):(J=l.W)==null||J.Sp("gapsp",{});w=l.L;zG(l);w&&w.resolve();return H.return(Promise.resolve())}})}; zG=function(l,n){n=n===void 0?!1:n;if(l.W){if(l.B){var O=l.W;l.app.iF.removeEventListener(g.F4("vqueued"),l.V);O.removeCueRange(l.B)}l.W=null;l.B=null}l.N&&(l.N.status.status!==6&&(O=l.N,O.status.status!==Infinity&&O.B!==1&&O.Qf("Canceled")),l.N=null);l.L=null;l.S&&!n&&l.S!==l.app.Wj()&&l.S!==l.app.AG()&&ft(l.S);l.S&&n&&l.S.iy();l.S=null;l.G=!1}; Df0=function(l){var n;return((n=l.N)==null?void 0:n.currentVideoDuration)||-1}; qC9=function(l,n,O){if(l.o0())return"qie";if(l.S==null||l.S.uF.JG()||l.S.getVideoData()==null)return"qpd";if(n.videoId!==l.S.G7())return"vinm";if(Df0(l)<=0)return"ivd";if(O!==1)return"upt";if((O=l.N)==null)l=void 0;else if(O.getStatus().status!==5)l="niss";else if(ZY8(O.policy,O.S,O.W,O.v5)!=null)l="pge";else{n=TEi(O);l=n.v4;var L=n.sb;n=g.HQ(O.AC.j().experiments,"html5_shorts_gapless_next_buffer_in_seconds");O=O.V+n;L=ZA(L.G$(),O);l=ZA(l.G$(),O);l=!(n>0)||L&&l?null:"neb"}return l!=null?l:null}; k6i=function(){g.hj.call(this);var l=this;this.fullscreen=0;this.L=this.N=this.pictureInPicture=this.S=this.W=this.inline=!1;this.B=function(){l.mI()}; qja(this.B);this.V=this.getVisibilityState(this.zE(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.PQ(),this.hw(),this.Vq(),this.XP())}; ub=function(l){return!(l.isMinimized()||l.isInline()||l.isBackground()||l.PQ()||l.hw()||l.Vq()||l.XP())}; yCa=function(){}; MN7=function(l,n){g.V.call(this);this.S=new yCa;this.L=this.B=null;this.W=l;this.N=n}; G6i=function(l){var n=l.experiments,O=n.MQ.bind(n);Qli=O("html5_use_async_stopVideo");eVq=O("html5_pause_for_async_stopVideo");YCi=O("html5_not_reset_media_source");O("html5_listen_for_audio_output_changed")&&(QN8=!0);K5=O("html5_not_reset_media_source");jlv=O("html5_not_reset_media_source");rv=O("html5_retain_source_buffer_appends_for_debugging");rb7=O("web_watch_pip");O("html5_mediastream_applies_timestamp_offset")&&(Uj=!0);var L=g.HQ(n,"html5_cobalt_override_quic");L&&Dl("QUIC",+(L>0));(L=g.HQ(n, "html5_cobalt_audio_write_ahead_ms"))&&Dl("Media.AudioWriteDurationLocal",L);(L=O("html5_cobalt_enable_decode_to_texture"))&&Dl("Media.PlayerConfiguration.DecodeToTexturePreferred",L?1:0);(l.AA()||O("html5_log_cpu_info"))&&EN9();Error.stackTraceLimit=50;var X=g.HQ(n,"html5_idle_rate_limit_ms");X&&Object.defineProperty(window,"requestIdleCallback",{value:function(F){return window.setTimeout(F,X)}}); Qvg(l.B);Nw=O("html5_use_ump_request_slicer");Poa=O("html5_record_now");O("html5_disable_streaming_xhr")&&(CG=!1);O("html5_byterate_constraints")&&(Ln=!0);O("html5_use_non_active_broadcast_for_post_live")&&(fd=!0);O("html5_sunset_aac_high_codec_family")&&(pB["141"]="a");O("html5_enable_encrypted_av1")&&(ab=!0)}; mf0=function(l){return l.slice(12).replace(/_[a-z]/g,function(n){return n.toUpperCase().replace("_","")}).replace("Dot",".")}; It7=function(l){var n={},O;for(O in l.experiments.flags)if(O.startsWith("cobalt_h5vcc")){var L=mf0(O),X=g.HQ(l.experiments,O);L&&X&&(n[L]=Dl(L,X))}return n}; Sd=function(l,n,O,L,X){X=X===void 0?[]:X;g.V.call(this);this.xo=l;this.U_=n;this.L=O;this.segments=X;this.S=void 0;this.W=new Map;X.length&&(this.S=X[0])}; dfi=function(l){if(!(l.segments.length<2)){var n=l.segments.shift();if(n){var O=n.S,L=[];if(O.size){O=g.P(O.values());for(var X=O.next();!X.done;X=O.next()){X=g.P(X.value);for(var F=X.next();!F.done;F=X.next()){F=F.value;for(var x=g.P(F.segments),Z=x.next();!Z.done;Z=x.next())(Z=ps(Z.value))&&L.push(Z);F.removeAll()}}}(O=ps(n))&&L.push(O);L=g.P(L);for(O=L.next();!O.done;O=L.next())l.W.delete(O.value);n.dispose()}}}; sm=function(l,n,O,L){if(!l.S||n>O)return!1;n=new Sd(l.xo,n,O,l.S,L);L=g.P(L);for(O=L.next();!O.done;O=L.next()){O=O.value;var X=ps(O);X&&X!==ps(l.S)&&l.W.set(X,[O])}l=l.S;l.S.has(n.T7())?l.S.get(n.T7()).push(n):l.S.set(n.T7(),[n]);return!0}; nt=function(l,n){return l.W.get(n)}; $fg=function(l,n,O){l.W.set(n,O)}; fs=function(l,n,O,L,X,F){return new VNe(O,O+(L||0),!L,n,l,X,F)}; VNe=function(l,n,O,L,X,F,x){g.V.call(this);this.U_=l;this.N=n;this.W=O;this.type=L;this.L=X;this.videoData=F;this.GF=x;this.S=new Map;uT(F)}; ps=function(l){return l.videoData.clientPlaybackNonce}; BEk=function(l){if(l.S.size)for(var n=g.P(l.S.values()),O=n.next();!O.done;O=n.next()){O=g.P(O.value);for(var L=O.next();!L.done;L=O.next())L.value.dispose()}l.S.clear()}; cC0=function(l){this.end=this.start=l}; g.Ks=function(){this.S=new Map;this.N=new Map;this.W=new Map}; g.ax=function(l,n,O,L){g.V.call(this);var X=this;this.api=l;this.xo=n;this.playback=O;this.app=L;this.z3=new g.Ks;this.W=new Map;this.V=[];this.B=[];this.N=new Map;this.Sz=new Map;this.T=new Map;this.Pm=null;this.n5=NaN;this.Fp=this.K5=null;this.JA=new g.vs(function(){iYe(X,X.n5,X.K5||void 0)}); this.events=new g.$B(this);this.oO=15E3;this.Q5=new g.vs(function(){X.Cf=!0;X.playback.rW(X.oO);zV7(X);X.TY(!1)},this.oO); this.Cf=!1;this.G=new Map;this.Yo=[];this.NQ=null;this.d8=new Set;this.Hm=[];this.Wk=[];this.M5=[];this.Xg=[];this.S=void 0;this.Lf=0;this.Fi=!0;this.Wm=!1;this.wq=[];this.nf=new Set;this.Y4=new Set;this.z$=new Set;this.tP=0;this.G3=new Set;this.q5=0;this.zo=this.hC=!1;this.L5=this.L="";this.Of=null;this.logger=new g.OW("dai");this.DQ={bXf:function(){return X.W}, vRf:function(){return X.V}, cSo:function(){return X.N}, Fn:function(F){X.onCueRangeEnter(X.W.get(F))}, IE1:function(F){X.onCueRangeExit(X.W.get(F))}, W4p:function(F,x){X.W.set(F,x)}, sL3:function(F){X.L5=F}, NH:function(){return X.NH()}, lE3:function(F){return X.T.get(F)}}; this.playback.getPlayerType();this.playback.Sh(this);this.uv=this.xo.AA();g.c(this,this.JA);g.c(this,this.events);g.c(this,this.Q5);this.events.U(this.api,g.F4("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.xx("serverstitchedcuerange"),this.onCueRangeExit)}; fte=function(l,n,O,L,X,F,x,Z){var J=SCq(l,F,F+X);l.Cf&&l.Nv({adaftto:1});O||l.Nv({missadcon:1,enter:F,len:X,aid:Z});l.Y&&!l.Y.dU&&(l.Y.dU=Z);l.zo&&l.Nv({adfbk:1,enter:F,len:X,aid:Z});var w=l.playback;x=x===void 0?F+X:x;F===x&&!X&&l.xo.J("html5_allow_zero_duration_ads_on_timeline")&&l.Nv({attl0d:1});F>x&&Rx(l,{reason:"enterTime_greater_than_return",U_:F,QV:x});var H=w.i5()*1E3;F<H&&Rx(l,{reason:"enterTime_less_than_minSeekableTime",enterMs:F,minSkMs:H},l.xo.J("html5_report_ssdai_timeline_error_as_fatal")); w=w.getDuration()*1E3;x>w&&Rx(l,{reason:"parent_return_greater_than_content_duration",QV:x,Ivi:w});w=null;H=g.xd(l.B,{QV:F},function(A,b){return A.QV-b.QV}); H>=0&&(w=l.B[H],w.QV>F&&pje(l,n.video_id||"",F,x,w));if(J&&w)for(H=0;H<l.Hm.length;H++){if(l.Hm[H].identifier===J.identifier){l.Hm.splice(H,1);break}}else if(J)return l.Nv({rejectAttl:1}),Z&&!jz(l.Xg,function(A){return A===Z})&&(l.Nv({rejectAdBreakAttl:Z},!0),l.Xg.push(Z)),Cs(l),""; J="ss_childplayback_"+sli++;l.xo.J("html5_enable_ssap_entity_id")?(n=new g.z8(l.xo,n),H=n.clientPlaybackNonce):(n.cpn||(n.cpn=g.D0(16)),H=n.cpn,n=new g.z8(l.xo,n));n.WS=J;O={WS:J,playerType:L,durationMs:X,U_:F,QV:x,cpn:H,videoData:n,errorCount:0,ssdaiAdsConfig:O};g.wQ(l.B,O,function(A,b){return A.U_===b.U_?A.durationMs-b.durationMs:A.U_-b.U_}); l.N.set(H,O);l.Sz.set(J,O);l.Nv({attlDone:x-F,acpn:H,et:F,prt:x});Z?O.Bp=Z:w?O.Bp=w.Bp:O.Bp=O.cpn;if(F=O.Bp)(L=l.T.get(F))?(L.push(O),g.ZI(L,function(A,b){return A.U_-b.U_})):l.T.set(F,[O]); l.Q5.isActive()&&(l.Cf=!1,l.Q5.stop(),zV7(l),l.TY(!0));return J}; tE=function(l,n,O){return{ssvc:n,cpn:(O==null?void 0:O.cpn)||"",vid:(O==null?void 0:O.videoData.videoId)||"",ct:(l.playback.getCurrentTime()||0).toFixed(3),cmt:(l.playback.n1()||0).toFixed(3)}}; vl=function(l,n){var O=l.app;aY(O.b5())&&O.r8.Mv(2)&&l.logger.S(360717806,"SSTM lingering playback");l.api.sV();l.api.publish("serverstitchedvideochange",n.WS,n.H5)}; nM=function(l,n,O){var L=l.Wm,X=l.NH(),F=l.L;l.L="";var x=n.jr-O.jr;Math.abs(x)>.5&&l.Nv({ttdtb:1,delta:x,cpn:X.cpn,enter:n.adCpn,exit:O.adCpn,seek:L,skip:F});l.api.J("html5_ssdai_enable_media_end_cue_range")&&l.api.Ov();if(n.isAd&&O.isAd){X=!!F;if(n.adCpn&&O.adCpn){var Z=l.N.get(n.adCpn);var J=l.N.get(O.adCpn)}X?l.Nv({igtransskip:1,enter:n.adCpn,exit:O.adCpn,seek:L,skip:F}):ly(l,J,Z,O.jr,n.jr,L,X)}else if(!n.isAd&&O.isAd){l.L5=X.cpn;l.api.publish("serverstitchedvideochange");Z=tE(l,"a2c");l.Nv(Z); l.tP=0;if(Z=O.BS)l.Lf=Z.end;var w;O.adCpn&&(w=l.N.get(O.adCpn));w&&l.playback.bb(w,X,O.jr,n.jr,L,!!F)}else if(n.isAd&&!O.isAd){var H;n.adCpn&&(H=l.N.get(n.adCpn));H&&(l.Lf=0,l.L5=H.cpn,vl(l,H),w=tE(l,"c2a",H),l.Nv(w),l.tP=1,l.playback.bb(X,H,O.jr,n.jr,L,!!F))}}; O5=function(l,n,O){O=O===void 0?0:O;var L=g.xd(l.B,{U_:(n+O)*1E3},function(Z,J){return Z.U_-J.U_}); L=L<0?(L+2)*-1:L;if(L>=0)for(var X=n*1E3,F=L;F<=L+1&&F<l.B.length;F++){var x=l.B[F];if(X>=x.U_-O*1E3&&X<=x.QV+O*1E3)return{gJ:x,mp:n}}return{gJ:void 0,mp:n}}; atv=function(l,n){var O="";(n=Kdi(l,n))&&(O=n.getId());return O?l.N.get(O):void 0}; Kdi=function(l,n){if(l.L5){var O=l.W.get(l.L5);if(O&&O.start-200<=n&&O.end+200>=n)return O}l=g.P(l.W.values());for(O=l.next();!O.done;O=l.next())if(O=O.value,O.start<=n&&O.end>=n)return O}; iYe=function(l,n,O){var L=l.Fp||l.app.AG().getPlayerState();gd(l,!0);l.playback.seekTo(n,O);l=l.app.AG();n=l.getPlayerState();L.isOrWillBePlaying()&&!n.isOrWillBePlaying()?l.playVideo():L.isPaused()&&!n.isPaused()&&l.pauseVideo()}; gd=function(l,n){l.n5=NaN;l.K5=null;l.JA.stop();l.Pm&&n&&l.Pm.Xz();l.Fp=null;l.Pm=null}; RV0=function(l){var n=n===void 0?-1:n;var O=O===void 0?Infinity:O;for(var L=[],X=g.P(l.B),F=X.next();!F.done;F=X.next())F=F.value,(F.U_<n||F.QV>O)&&L.push(F);l.B=L;L=g.P(l.W.values());for(X=L.next();!X.done;X=L.next())X=X.value,X.start>=n&&X.end<=O&&(l.playback.removeCueRange(X),l.W.delete(X.getId()),l.Nv({rmAdCR:1}));L=O5(l,n/1E3);n=L.gJ;L=L.mp;if(n&&(L=L*1E3-n.U_,X=n.U_+L,n.durationMs=L,n.QV=X,L=l.W.get(n.cpn))){X=g.P(l.V);for(F=X.next();!F.done;F=X.next())F=F.value,F.start===L.end?F.start=n.U_+ n.durationMs:F.end===L.start&&(F.end=n.U_);L.start=n.U_;L.end=n.U_+n.durationMs}if(n=O5(l,O/1E3).gJ){var x;L="playback_timelinePlaybackId_"+n.WS+"_video_id_"+((x=n.videoData)==null?void 0:x.videoId)+"_durationMs_"+n.durationMs+"_enterTimeMs_"+n.U_+"_parentReturnTimeMs_"+n.QV;l.hP("Invalid_clearEndTimeMs_"+O+"_that_falls_during_"+L+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; C8k=function(l){l.z3.clearAll();l.W.clear();l.V=[];l.B=[];l.N.clear();l.Sz.clear();l.T.clear();l.G.clear();l.Yo=[];l.NQ=null;l.d8.clear();l.Hm=[];l.Wk=[];l.M5=[];l.Xg=[];l.wq=[];l.nf.clear();l.Y4.clear();l.z$.clear();l.G3.clear();l.Cf=!1;l.S=void 0;l.Lf=0;l.Fi=!0;l.Wm=!1;l.tP=0;l.q5=0;l.hC=!1;l.zo=!1;l.L="";l.Q5.isActive()&&Cs(l)}; vD5=function(l,n,O,L,X,F){if(!l.zo)if(g.tN5(l,O))l.Nv({gdu:"undec",seg:O,itag:X});else if(n=LM(l,n,O,L,F),!(l.playback.getVideoData().iK()&&(n==null?0:n.DL)))return n}; LM=function(l,n,O,L,X){var F=l.G.get(O);if(!F){if(F=lmq(l,n))return F;n=l.IE(O-1,L!=null?L:2);if(X)return l.Nv({misscue:X,sq:O,type:L,prevsstate:n==null?void 0:n.ph,prevrecord:l.G.has(O-1)}),l.G.get(O-1);if((n==null?void 0:n.ph)===2)return l.Nv({adnf:1,sq:O,type:L,prevrecord:l.G.has(O-1)}),l.G.get(O-1)}return F}; lmq=function(l,n){n+=l.XC();if(l.playback.getVideoData().iK())a:{var O=1;O=O===void 0?0:O;var L=n*1E3;l=g.P(l.B);for(var X=l.next();!X.done;X=l.next()){X=X.value;var F=X.H5?X.H5*1E3:X.U_;if(L>=X.U_-O*1E3&&L<=F+X.durationMs+O*1E3){L={gJ:X,mp:n};break a}}L={gJ:void 0,mp:n}}else L=O5(l,n),((O=L)==null?0:O.gJ)||(L=O5(l,n,1));var x;return(x=L)==null?void 0:x.gJ}; nhq=function(l,n){n=n===void 0?"":n;var O=F$(n)||void 0;if(!n||!O){var L;l.Nv({adcfg:(L=n)==null?void 0:L.length,dcfg:O==null?void 0:O.length})}return O}; Ock=function(l){if(l.wq.length)for(var n=g.P(l.wq),O=n.next();!O.done;O=n.next())l.onCueRangeExit(O.value);n=g.P(l.W.values());for(O=n.next();!O.done;O=n.next())l.playback.removeCueRange(O.value);n=g.P(l.V);for(O=n.next();!O.done;O=n.next())l.playback.removeCueRange(O.value);l.W.clear();l.V=[];l.z3.clearAll();l.S||(l.Fi=!0)}; ly=function(l,n,O,L,X,F,x){if(n&&O){l.L5=O.cpn;vl(l,O);var Z=tE(l,"a2a",O);l.Nv(Z);l.tP++;l.playback.bb(n,O,L||0,X||0,!!F,!!x)}else l.Nv({misspbkonadtrans:1,enter:(O==null?void 0:O.cpn)||"",exit:(n==null?void 0:n.cpn)||"",seek:F,skip:x})}; Ln7=function(l,n,O,L){if(L)for(L=0;L<l.V.length;){var X=l.V[L];if(X.start<n&&X.end>O){var F=X.end;X.end=n;ghe(l,O,F)}else if(X.start>=n&&X.start<O&&X.end>O)X.start=O;else if(X.end>n&&X.end<=O&&X.start<n)X.end=n;else if(X.start>=n&&X.end<=O){l.playback.removeCueRange(X);if(l.wq.includes(X))l.onCueRangeExit(X);l.V.splice(L,1);continue}L++}else ghe(l,n,O)}; ghe=function(l,n,O){n=l.oT(n,O);O=!0;g.wQ(l.V,n,function(x,Z){return x.start-Z.start}); for(var L=0;L<l.V.length;){if(L>0){var X=l.V[L],F=l.V[L-1];if(Math.round(F.end/1E3)>=Math.round(X.start/1E3)){F.end=X.end;X!==n?l.playback.removeCueRange(X):O=!1;l.V.splice(L,1);continue}}L++}if(O)for(l.playback.addCueRange(n),n=l.playback.Em("serverstitchedcuerange",36E5),n=g.P(n),O=n.next();!O.done;O=n.next())l.W.delete(O.value.getId())}; XN=function(l,n,O){if(O===void 0||!O){O=g.P(l.Yo);for(var L=O.next();!L.done;L=O.next()){L=L.value;if(n>=L.start&&n<=L.end)return;if(n===L.end+1){L.end+=1;return}}l.Yo.push(new cC0(n))}}; g.tN5=function(l,n){l=g.P(l.Yo);for(var O=l.next();!O.done;O=l.next())if(O=O.value,n>=O.start&&n<=O.end)return!0;return!1}; Xcf=function(l,n,O){var L;if(L=l.xo.J("html5_ssdai_extent_last_unfinished_ad_cue_range"))L=(L=l.N.get(n))&&L.Bp?(l=l.T.get(L==null?void 0:L.Bp))&&l.slice(-1)[0].cpn===n:!1;return L&&O===2?1E3:0}; pje=function(l,n,O,L,X){var F;n={reason:"overlapping_playbacks",Fc3:n,U_:O,QV:L,jUp:X.WS,pOQ:((F=X.videoData)==null?void 0:F.videoId)||"",PW2:X.durationMs,UH1:X.U_,ASF:X.QV};Rx(l,n)}; Rx=function(l,n,O){l.playback.mZ(n,O)}; ohk=function(l,n){var O=[];l=l.T.get(n);if(!l)return[];l=g.P(l);for(n=l.next();!n.done;n=l.next())n=n.value,n.cpn&&O.push(n.cpn);return O}; Fne=function(l,n,O){var L=0;l=l.T.get(O);if(!l)return-1;l=g.P(l);for(O=l.next();!O.done;O=l.next()){if(O.value.cpn===n)return L;L++}return-1}; xAg=function(l,n){var O=0;l=l.T.get(n);if(!l)return 0;l=g.P(l);for(n=l.next();!n.done;n=l.next())n=n.value,n.durationMs!==0&&n.QV!==n.U_&&O++;return O}; hT0=function(l,n,O){var L=!1;if(O&&(O=l.T.get(O))){O=g.P(O);for(var X=O.next();!X.done;X=O.next())X=X.value,X.durationMs!==0&&X.QV!==X.U_&&(X=X.cpn,n===X&&(L=!0),L&&!l.Y4.has(X)&&(l.Nv({decoratedAd:X}),l.Y4.add(X)))}}; zV7=function(l){l.uv&&l.Nv({adf:"0_"+((new Date).getTime()/1E3-l.q5)+"_isTimeout_"+l.Cf})}; SCq=function(l,n,O){if(l.Hm.length)for(var L=g.P(l.Hm),X=L.next(),F={};!X.done;F={VH:void 0},X=L.next()){F.VH=X.value;X=F.VH.startSecs*1E3;var x=F.VH.HM*1E3+X;if(n>X&&n<x||O>X&&O<x)return jz(l.M5,function(Z){return function(J){return J.identifier===Z.VH.identifier}}(F))||(l.Nv({adskip:n}),l.M5.push(F.VH)),F.VH}}; Cs=function(l){l.Cf=!1;l.Q5.isActive()&&zV7(l);l.Q5.stop();l.TY(!1)}; Zc9=function(){g.ax.apply(this,arguments)}; AD8=function(l,n,O){g.V.call(this);var L=this;this.api=l;this.timeline=n;this.playback=O;this.T6=new Map;this.V9=new Map;this.oZ=new Map;this.events=new g.$B(this);this.tP=0;this.Xu=this.L5="";this.Ir=[];this.j5=new Set;this.QF=new g.vs(function(){L.api.playVideo(1,L.api.J("html5_ssap_keep_media_on_finish_segment"));L.api.Sp("ssap",{nve:""+L.L5});JDq(L,4)},3E4); this.mC="";this.Mi=new Set;this.dh=!0;this.VQ=new Map;this.Ne=new Set;this.Gm=this.c8=!1;this.Od="";this.yQ=null;this.DQ={d1o:function(){return L.V9}, Fn:function(X){if(X=L.V9.get(X))L.onCueRangeEnter(X)}, onCueRangeEnter:function(X){L.onCueRangeEnter(X)}, kj1:function(){return L.c8}}; this.playback.getPlayerType();wc8(this);n.N=void 0;this.events.U(this.api,g.F4("ssap"),this.onCueRangeEnter);this.events.U(this.api,"internalAbandon",this.gy);this.api.J("html5_ssap_timeline_handle_error_and_abandon")&&this.events.U(this.api,"presentingplayerstatechange",this.gt);g.c(this,this.QF);this.asm=g.HQ(l.j().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.Dg=l.J("html5_disable_ssap_append_pause");this.c8=Hcv(this)}; bc0=function(l,n,O,L){for(var X=g.P(L),F=X.next();!F.done;F=X.next()){var x=F.value;x.W||((F=ps(x),x=x.getVideoData(),F&&x&&l.playback.uF.UV().pw(F,x,2),x)?F||(x=void 0,l.api.Sp("ssap",{macac:F,maccc:(x=l.timeline.S)==null?void 0:ps(x)})):(x=void 0,l.api.Sp("ssap",{mvac:F,mvcc:(x=l.timeline.S)==null?void 0:ps(x)})))}return sm(l.timeline,n,O,L)}; UAa=function(l,n){if(!l.j5.has(l.L5)){var O=0,L=0,X=nt(l.timeline,l.L5);if(X==null?0:X.length)for(X=g.P(X),X=X.next();!X.done;X=X.next()){L=X.value;O=L.T7();L=L.Uu();break}if(!(L>0&&L>n*1E3+l.asm)&&(L=rDe(l,O))){n=!1;O=void 0;L=g.P(L.segments);for(X=L.next();!X.done;X=L.next()){X=X.value;if(n){O=X;break}ps(X)===l.L5&&(n=!0)}L=void 0;if(O)L=ps(O);else if(n){var F;L=(F=l.timeline.S)==null?void 0:ps(F)}if(L)l.finishSegmentByCpn(l.L5,L,2,void 0);else{var x;l.api.Sp("ssap",{mfnc:1,mfncc:(x=l.timeline.S)== null?void 0:ps(x)})}}}}; Hcv=function(l){return l.api.J("html5_force_ssap_gapful_switch")||l.api.J("html5_ssap_enable_legacy_browser_logic")&&!ut()}; Tpk=function(l,n,O,L){l.oZ.set(n,L);uMe(l,n,O);PSi(l,O)}; Ye=function(l,n){l=nt(l.timeline,n);return(l==null?0:l.length)?l[0].T7():0}; jx=function(l,n){var O=O===void 0?!1:O;var L=l.timeline.S;if(!L)return{clipId:"",KZ:0};var X=Wni(l,n,O);if(X)return{clipId:ps(X)||"",KZ:X.T7()};l.api.Sp("mci",{cs:ps(L),mt:n,tl:Wh(l),invt:!!O});return{clipId:"",KZ:0}}; ty=function(l){var n=l.timeline.S;if(!n)return 0;l=0;if(n.S.size===0)return(n.Uu()-n.T7())/1E3;n=n.S.values();n=g.P(n);for(var O=n.next();!O.done;O=n.next()){O=g.P(O.value);for(var L=O.next();!L.done;L=O.next())L=L.value,l+=(L.Uu()-L.T7())/1E3}return l}; Np5=function(l,n){return(l=Ehf(l,n*1E3))?l.T7():0}; DA5=function(l,n){var O=nt(l.timeline,n);n=0;if(O==null?0:O.length)for(l=g.P(O),O=l.next();!O.done;O=l.next())O=O.value,n+=(O.Uu()-O.T7())/1E3;else return ty(l);return n}; Ehf=function(l,n){if(l=nt(l.timeline,l.L5)){l=g.P(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.T7()<=n&&O.Uu()>=n)return O}}; qqe=function(l){var n=l.playback.getVideoData();l.L5&&(l=l.T6.get(l.L5))&&(n=l);return n}; rDe=function(l,n,O){O=O===void 0?!1:O;var L=l.timeline.S;if(L){L=L.S;var X=Array.from(L.keys());g.ZI(X);n=g.xd(X,n);n=L.get(X[n<0?(n+2)*-1:n]);if(!O&&n){O=g.P(n);for(n=O.next();!n.done;n=O.next())if(n=n.value,n.T7()!==n.Uu())return n;return l.timeline}return n&&n.length>0?n[n.length-1]:void 0}}; Wni=function(l,n,O){O=O===void 0?!1:O;var L=rDe(l,n,O);if(L){if(l=L.segments,l.length){for(var X=g.P(l),F=X.next();!F.done;F=X.next())if(F=F.value,F.T7()<=n&&F.Uu()>n)return F;if(O&&L.T7()===L.Uu())return l[0]}}else l.api.Sp("ssap",{ctnf:1})}; JDq=function(l,n){var O;if(l.mC)for(O=l.Ir.shift();O&&O!==l.mC;)O=l.Ir.shift();else O=l.Ir.shift();if(O){if(l.j5.has(O))kD7(l,O);else if(n===3||n===4)l.QF.stop(),l.api.playVideo(1,l.api.J("html5_ssap_keep_media_on_finish_segment"));l.oZ.set(l.L5,n);l.api.Sp("ssap",{onvftn:1});PSi(l,O);return!1}l.api.Sp("ssap",{onvftv:1});l.QF.stop();return!0}; kD7=function(l,n){n=nt(l.timeline,n);if(n==null?0:n.length)l.api.pauseVideo(),l.QF.start(n[0].GF)}; PSi=function(l,n){var O=l.playback.getVideoData(),L=O.clientPlaybackNonce;l.yQ&&(l.events.EC(l.yQ),l.yQ=null,l.playback.wW());var X=l.L5,F=!1;if(X==="")X=L,F=!0;else if(X===void 0){var x=l.playback.uF.UV().uU;x&&l.timeline.W.has(x)&&(X=x);l.api.Sp("ssap",{mcc:X+";"+n});l.playback.l5(new Ml("ssap.timelineerror",{e:"missing_current_cpn",pcpn:X,ccpn:n}))}if(X===n)F&&O&&yDv(l,O,F);else{x=l.oZ.get(X);if(!F&&(!x||x!==3&&x!==5&&x!==6&&x!==7)){var Z=l.api.Ov(l.L5);l.api.Sp("ssap",{nmec:Z,cpc:l.L5,ec:n})}x&& x!==2||l.KK();l.L5=n;l.KK();n=nt(l.timeline,l.L5);if(n==null?0:n.length){n=n[0];Z=n.getType();X!==L&&(l.Xu=X,O=l.T6.get(X));x?l.oZ.delete(X):x=F?1:2;l.api.J("html5_ssap_pacf_qoe_ctmp")&&Z===2&&!n.W&&(l.yQ=l.events.U(l.api,"onVideoProgress",l.RO2));l.api.Sp("ssapt",{ostro:x,pcpn:X,ccpn:l.L5});a:{var J=l.L5;if(!l.V9.has(J))for(var w=g.P(l.V9),H=w.next();!H.done;H=w.next()){var A=g.P(H.value);H=A.next().value;A=A.next().value;if(A.getId().includes(J)){J=H;break a}}}H=J;w=l.api.j().J("html5_ssap_insert_su_before_nonvideo")&& H!==l.L5;A=l.playback.uF.UV();if(A.uU!==H){var b=A.p5(A.uU);J=A.p5(H);A.uU=H;J!==b&&(b.qoe&&(H=b.qoe,H.provider.xo.AA()&&H.Sp("ssap",{qoesus:"1",vid:H.provider.videoData.videoId}),w&&(w=g.EV(H.provider),dEi(H,w,"SU")),isNaN(H.V)||g.Tj(H.V)),J.resume())}w=Math.max(0,oP(l,X));J=l.playback.getCurrentTime();H=Math.max(0,J-Ye(l,l.L5)/1E3);J=n.getVideoData();A=x===3||x===5||x===6||x===7;l.api.J("html5_ssap_skip_illegal_seeking")&&(b=l.playback.getPlayerState(),b=!g.K(b,8)&&g.K(b,16),A=A||b,b&&l.api.Sp("ssap", {iis:1}));b=l.playback;var r=X,U=l.L5,W=l.playback.getPlayerState();b.uF.UV().FE(r,U,w,H,!1,A,W,!0);l.api.Sp("ssapt",{ostri:x,pcpn:X,ccpn:l.L5});var N;w=X;H=l.L5;A=(N=l.VQ.get(X))!=null?N:(0,g.Q_)();Lmf(w,H,L,J,A,O);l.VQ.delete(X);F?O=void 0:O||l.api.Sp("ssap",{pvdm:X+";"+l.L5,pvdmc:l.L5===L?"1":"0"});l.api.Sp("ssap",{tpac:X+";"+l.L5,tpcc:L,tpv:(J==null?0:J.MP())?"1":"0"},!1,1);l.api.j().J("html5_ssap_cleanup_player_switch_ad_player")&&l.api.sV();l.api.publish("videodatachange","newdata",J,Z,O,x); n.W||l.playback.getVideoData().publish("dataupdated");l.j5.delete(X);l.mC="";J&&Z===1?yDv(l,J):l.playback.Sp("ssap",{nis:l.L5});Z===2?l.tP++:l.tP=0}}}; yDv=function(l,n,O){O=O===void 0?!1:O;if(n.startSeconds&&l.dh){var L=n.startSeconds;n=nt(l.timeline,n.clientPlaybackNonce);if(n==null?0:n.length)L+=n[0].T7()/1E3,l.api.J("htm5_ssap_ignore_initial_seek_if_too_big")&&L>=l.jJ()||(l.playback.seekTo(L,{Cb:!0}),l.dh=!1,l.playback.Sp("ssap",{is:l.L5,co:O?"1":"0",tse:L.toFixed()}))}}; uMe=function(l,n,O){n=nt(l.timeline,n);if(n!=null&&n.length&&(n=rDe(l,n[0].T7()))){n=g.P(n.segments);for(var L=n.next();!L.done;L=n.next()){L=L.value;if(ps(L)===O)break;if(L=ps(L)){var X=l.V9.get(L);X&&l.playback.removeCueRange(X);l.V9.delete(L)}}}}; Gr=function(l){return l.playback.getVideoData().clientPlaybackNonce}; mbf=function(l,n){if(l.c8&&l.L5!==n)return!1;if(l.Dg)return!0;if(n=l.V9.get(n))if(n=n.getId().split(","),n.length>1)for(var O=0;O<n.length;O++){var L=O<n.length-1?n[O+1]:"";if(l.j5.has(n[O]))return n[O]===l.L5&&!l.j5.has(L)}return!0}; JH9=function(l,n,O){Wni(l,n)||l.playback.Sp("ssap",{ilgsk:n.toFixed(),mep:O?"1":"0",tl:Wh(l)})}; oP=function(l,n){n=n||l.L5;var O=l.T6.get(n);return O?O.Pm:n!==Gr(l)?0:l.playback.getVideoData().Pm}; Wh=function(l){var n=l.L5;n||(n=l.playback.getVideoData().clientPlaybackNonce);var O,L,X=Array.from((L=(O=l.timeline.S)==null?void 0:O.S.values())!=null?L:[]);O=[];if(X==null?0:X.length)for(L=g.P(X),X=L.next();!X.done;X=L.next())if(X=X.value,X.length&&X[0]&&(X=X[0].segments,X.length)){X=g.P(X);for(var F=X.next();!F.done;F=X.next()){var x=F.value;F="st."+x.T7()+";";F+="et."+x.Uu()+";";var Z=ps(x);Z&&(F+="cpn."+Z+";",F+="a."+(n===Z?1:0)+";");if(x=x.getVideoData())Z=void 0,F+="vid."+((Z=x.videoId)!= null?Z:"nvd");O.push(F)}}return(O.length?O.join(","):"empty."+n)+";cpcpn."+l.wA()}; wc8=function(l){l.playback.ZW(Array.from(l.V9.values()));l.V9.clear()}; Qd0=function(l,n,O,L){g.V.call(this);var X=this;this.api=l;this.xo=n;this.S=O;this.app=L;this.B=new Map;this.W=[];this.N=this.T=null;this.Wm=NaN;this.V=this.L=this.Y=null;this.G=new g.vs(function(){MF9(X,X.Wm,X.Y||void 0)}); this.NQ=[];this.Q5=new g.vs(function(){var F=X.NQ.pop();if(F){var x=F.WS,Z=F.playerVars;F=F.playerType;Z&&(Z.prefer_gapless=!0,X.api.preloadVideoByPlayerVars(Z,F,NaN,"",x),X.NQ.length&&g.lx(X.Q5,4500))}}); this.events=new g.$B(this);this.DQ={WSz:function(){return X.W}}; this.S.getPlayerType();g.c(this,this.G);g.c(this,this.Q5);g.c(this,this.events);this.events.U(this.api,g.F4("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.gt)}; GDk=function(l,n,O,L,X,F){var x=n.cpn,Z=n.docid||n.video_id||n.videoId||n.id,J=l.S;F=F===void 0?X+L:F;if(X>F)return FN(l,"enterAfterReturn enterTimeMs="+X+" is greater than parentReturnTimeMs="+F.toFixed(3),x,Z),"";var w=J.i5()*1E3;if(X<w)return FN(l,"enterBeforeMinSeekable enterTimeMs="+X+" is less than parentMinSeekableTimeMs="+w,x,Z),"";w=J.getDuration()*1E3;if(F>w)return J="returnAfterDuration parentReturnTimeMs="+F.toFixed(3)+" is greater than parentDurationMs="+w+". And timestampOffset in seconds is "+ J.ez(),FN(l,J,x,Z),"";w=null;for(var H=g.P(l.W),A=H.next();!A.done;A=H.next()){A=A.value;if(X>=A.U_&&X<A.QV)return FN(l,"overlappingEnter",x,Z),"";if(F<=A.QV&&F>A.U_)return FN(l,"overlappingReturn",x,Z),"";if(F===A.U_)return FN(l,"outOfOrder",x,Z),"";X===A.QV&&(w=A)}x="cs_childplayback_"+eTa++;Z={BS:xv(L,!0),v5:Infinity,target:null};var b={WS:x,playerVars:n,playerType:O,durationMs:L,U_:X,QV:F,zK:Z};l.W=l.W.concat(b).sort(function(W,N){return W.U_-N.U_}); w?Yq5(l,w,{BS:xv(w.durationMs,!0),v5:w.zK.v5,target:b}):(n={BS:xv(X,!1),v5:X,target:b},l.B.set(n.BS,n),J.addCueRange(n.BS));n=!0;if(l.S===l.app.AG()&&(J=J.getCurrentTime()*1E3,J>=b.U_&&J<b.QV)){var r=l.app.AG().getPlayerState(),U=J-b.U_;oh(function(){jd9(l,b,U/1E3,{},r)}); n=!1}n&&(l.NQ.unshift(b),g.lx(l.Q5,0));return x}; xv=function(l,n){return new g.X4(Math.max(0,l-5E3),n?0x8000000000000:l-1,{namespace:"childplayback",priority:9})}; mA0=function(l,n,O,L){l.N=L;l.api.sQ(l.S,O,n)}; Im7=function(l,n,O,L){l.N=L;L=n.WS;var X=n.playerVars,F=n.playerType;l.T=n;X&&(l.xo.J("html5_enable_ssap_entity_id")&&(X.cached_load=!0),l.api.enqueueVideoByPlayerVars(X,F,O,L))}; Yq5=function(l,n,O){var L=n.zK;n.zK=O;hL(l,n)&&(O=l.app.AG(),L.BS===l.N&&ZH(l),O.removeCueRange(L.BS),O.addCueRange(n.zK.BS))}; ZH=function(l){l.T=null;l.N=null;l.api.o0()||l.api.clearQueue()}; dAa=function(l,n){hL(l,n)||FN(l,"childPlaybackIsNotPresenting");return n.QV===n.U_+n.durationMs?n.U_+l.app.AG().getCurrentTime()*1E3:n.QV}; $Av=function(l,n){var O=0;l=g.P(l.W);for(var L=l.next();!L.done;L=l.next()){L=L.value;var X=L.U_/1E3+O,F=X+L.durationMs/1E3;if(X>n)break;if(F>n)return{gJ:L,mp:n-X};O=F-L.QV/1E3}return{gJ:null,mp:n-O}}; MF9=function(l,n,O){O=O===void 0?{}:O;var L=l.V||l.app.AG().getPlayerState();JL(l,!0);n=isFinite(n)?n:l.S.Tn();var X=$Av(l,n);n=X.mp;var F=(X=X.gJ)&&!hL(l,X)||!X&&l.S!==l.app.AG(),x=n*1E3;x=l.N&&l.N.start<=x&&x<=l.N.end;!F&&x||ZH(l);X?jd9(l,X,n,O,L):VF0(l,n,O,L)}; VF0=function(l,n,O,L){var X=l.S;X!==l.app.AG()&&l.app.kC();X.seekTo(n,Object.assign({},{UC:"application_timelinemanager"},O));Bpv(l,L)}; jd9=function(l,n,O,L,X){var F=hL(l,n);if(!F){n.playerVars.prefer_gapless=!0;l.xo.J("html5_enable_ssap_entity_id")&&(n.playerVars.cached_load=!0);var x=new g.z8(l.xo,n.playerVars);x.WS=n.WS;l.api.sR(x,n.playerType)}x=l.app.AG();F||x.addCueRange(n.zK.BS);x.seekTo(O,Object.assign({},{UC:"application_timelinemanager"},L));Bpv(l,X)}; Bpv=function(l,n){l=l.app.AG();var O=l.getPlayerState();n.isOrWillBePlaying()&&!O.isOrWillBePlaying()?l.playVideo():n.isPaused()&&!O.isPaused()&&l.pauseVideo()}; JL=function(l,n){l.Wm=NaN;l.Y=null;l.G.stop();l.L&&n&&l.L.Xz();l.V=null;l.L=null}; hL=function(l,n){l=l.app.AG();return!!l&&l.getVideoData().WS===n.WS}; cDi=function(l){var n=l.W.find(function(X){return hL(l,X)}); if(n){var O=l.app.AG();ZH(l);var L=new g.XI(8);n=dAa(l,n)/1E3;VF0(l,n,{},L);O.Sp("forceParentTransition",{childPlayback:1});l.S.Sp("forceParentTransition",{parentPlayback:1})}}; zT5=function(l,n,O){n=n===void 0?-1:n;O=O===void 0?Infinity:O;for(var L=n,X=O,F=g.P(l.B),x=F.next();!x.done;x=F.next()){var Z=g.P(x.value);x=Z.next().value;Z=Z.next().value;Z.v5>=L&&Z.target&&Z.target.QV<=X&&(l.S.removeCueRange(x),l.B.delete(x))}L=n;X=O;F=[];x=g.P(l.W);for(Z=x.next();!Z.done;Z=x.next())if(Z=Z.value,Z.U_>=L&&Z.QV<=X){var J=l;J.T===Z&&ZH(J);hL(J,Z)&&J.app.kC()}else F.push(Z);l.W=F;L=$Av(l,n/1E3);n=L.gJ;L=L.mp;n&&(L*=1E3,ic9(l,n,L,n.QV===n.U_+n.durationMs?n.U_+L:n.QV));(n=$Av(l,O/1E3).gJ)&& FN(l,"Invalid clearEndTimeMs="+O+" that falls during playback={timelinePlaybackId="+(n.WS+" video_id="+n.playerVars.video_id+" durationMs="+n.durationMs+" enterTimeMs="+n.U_+" parentReturnTimeMs="+n.QV+"}.Child playbacks can only have duration updated not their start."))}; ic9=function(l,n,O,L){n.durationMs=O;n.QV=L;L={BS:xv(O,!0),v5:O,target:null};Yq5(l,n,L);hL(l,n)&&l.app.AG().getCurrentTime()*1E3>O&&(n=dAa(l,n)/1E3,O=l.app.AG().getPlayerState(),VF0(l,n,{},O))}; FN=function(l,n,O,L){l.S.Sp("timelineerror",{e:n,cpn:O?O:void 0,videoId:L?L:void 0})}; pc9=function(l){l&&l!=="web"&&Sqf.includes(l)}; AL=function(l,n){g.V.call(this);var O=this;this.data=[];this.N=l||NaN;this.W=n||null;this.S=new g.vs(function(){wd(O);HB(O)}); g.c(this,this.S)}; sdg=function(l){wd(l);return l.data.map(function(n){return n.value})}; wd=function(l){var n=(0,g.Q_)();l.data.forEach(function(O){O.expire<n&&by(l,O,!0)}); l.data=g.Jq(l.data,function(O){return!(O.expire<n)})}; by=function(l,n,O){O&&l.W&&l.W(n.value)}; HB=function(l){l.S.stop();var n=Infinity;for(var O=g.P(l.data),L=O.next();!L.done;L=O.next())L=L.value,L.expire<n&&(n=L.expire);n&&isFinite(n)&&(n=Math.max(n-Date.now(),100),l.S.start(n))}; rd=function(){g.V.call(this);this.S=new AL(5,null);g.c(this,this.S);this.W=new AL(15,null);g.c(this,this.W)}; cH5=function(l,n){return n?!!l.S.get(n):!1}; fm9=function(l,n){l.dataset.version=n}; RTa=function(l){g.f.call(this,{D:"div",gq:["html5-video-player"],Z:{tabindex:l.j().disableOrganicUi?"":"-1",id:l.webPlayerContextConfig?l.webPlayerContextConfig.rootElementId:l.config.attrs.id},K:[{D:"div",X:g.Sk.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var n=this;this.app=l;this.LO=this.mJ(g.Sk.VIDEO_CONTAINER);this.B8=new g.xH(0,0,0,0);this.dK=null;this.Ql=new g.xH(0,0,0,0);this.Wo=this.gX=this.Hb=NaN;this.dL=this.hI=this.o9=this.Na=!1;this.TO=NaN;this.OO=!1;this.uE=null;this.Nh=function(){n.element.focus({preventScroll:!0})}; this.jL=function(){n.app.iF.publish("playerUnderlayVisibilityChange","visible");n.dK.classList.remove(g.Sk.VIDEO_CONTAINER_TRANSITIONING);n.dK.removeEventListener(xe,n.jL);n.dK.removeEventListener("transitioncancel",n.jL)}; var O=this.element.addEventListener,L=this.element.removeEventListener;this.addEventListener=function(F,x,Z){O.apply(n.element,[F,x,Z])}; this.removeEventListener=function(F,x,Z){L.apply(n.element,[F,x,Z])}; var X=l.j();X.transparentBackground&&this.hE("ytp-transparent");X.controlsType==="0"&&this.hE("ytp-hide-controls");g.FW(this.element,"ytp-exp-bottom-control-flexbox");g.FW(this.element,"ytp-modern-caption");X.J("enable_new_paid_product_placement")&&!g.Cw(X)&&g.FW(this.element,"ytp-exp-ppp-update");X.J("html5_enable_ssap")&&g.FW(this.element,"ytp-ssap");g.FW(this.element,"ytp-livebadge-color");X.J("delhi_modern_web_player")&&g.FW(this.element,"ytp-delhi-modern");fm9(this.element,Knv(l));this.oX=!1; this.Fz=new g.re(NaN,NaN);am9(this);this.U(l.iF,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; am9=function(l){function n(){l.dK&&U5(l);uy(l)!==l.OO&&l.resize()} function O(x,Z){l.yr(x,Z)} function L(x){x.getVideoData()&&l.updateVideoData(x.getVideoData())} function X(){l.Ql=new g.xH(0,0,0,0);l.B8=new g.xH(0,0,0,0)} var F=l.app.iF;F.addEventListener("initializingmode",X);F.addEventListener("videoplayerreset",L);F.addEventListener("videodatachange",O);F.addEventListener("presentingplayerstatechange",n);l.addOnDisposeCallback(function(){F.removeEventListener("initializingmode",X);F.removeEventListener("videoplayerreset",L);F.removeEventListener("videodatachange",O);F.removeEventListener("presentingplayerstatechange",n)})}; tF9=function(l){var n=l.app.AG(),O=n=n?n.getVideoData():null;if(n==null?0:g.fy(n))O=l.app.iF.getVideoData();if(O){if(g.Mk(O)||g.QZ(O)||g.e4(O))return 16/9;if(nN(O)&&O.N.S)return l=O.N.videoInfos[0].video,CS5(l.width,l.height)}return(l=l.dK)?CS5(l.videoWidth,l.videoHeight):16/9}; vhk=function(l,n,O,L){var X=O,F=CS5(n.width,n.height);l.Na?X=O<F?Infinity:0:isNaN(l.Wo)?isNaN(l.gX)||(X=l.gX):X=l.Wo;isFinite(X)||(X=Math.max(O,F));l=X>F?{width:n.width,height:n.width/X,aspectRatio:X}:X<F?{width:n.height*X,height:n.height,aspectRatio:X}:{width:n.width,height:n.height,aspectRatio:F};L||isNaN(O)||(O>X?l.width=l.height*O:O<X&&(l.height=l.width/O),l.aspectRatio=O);return l}; CS5=function(l,n){return Math.abs(lOf*n-l)<1||Math.abs(lOf/l-n)<1?lOf:l/n}; uy=function(l){if(l.app.getAppState()===1)return!1;if(l.app.getAppState()===6)return!0;var n=l.app.AG();if(!n||n.Pp())return!1;l=l.app.iF.getPlayerStateObject();n=!g.K(l,2)||n&&n.getVideoData().G;var O=g.K(l,1024);return l&&n&&!O&&!l.isCued()}; U5=function(l){var n=l.app.j().controlsType==="3"&&!l.dL&&uy(l)&&!l.app.kf||!1;l.dK.controls=n;l.dK.tabIndex=n?0:-1;l.app.j().L&&(l.dK.ariaHidden=n||l.app.j().J("video_element_aria_hidden_ks")?"false":"true");n?l.dK.removeEventListener("focus",l.Nh):l.dK.addEventListener("focus",l.Nh)}; nEi=function(l){var n=l.Dm(),O=1,L=!1,X=vhk(l,n,l.getVideoAspectRatio()),F=l.app.j(),x=F.J("enable_desktop_player_underlay"),Z=EK8(),J=g.HQ(F.experiments,"player_underlay_min_player_width");J=x&&l.o9&&l.getPlayerSize().width>J;if(uy(l)){var w=tF9(l);var H=isNaN(w)||g.RZ||tT&&g.Wo||J;aZ&&!g.ua(601)?w=X.aspectRatio:H=H||F.controlsType==="3";H?J?(H=F.J("place_shrunken_video_on_left_of_player")?16:l.getPlayerSize().width-n.width-16,w=Math.max((l.getPlayerSize().height-n.height)/2,0),H=new g.xH(H,w,n.width, n.height),l.dK.style.setProperty("border-radius","12px")):H=new g.xH(0,0,n.width,n.height):(O=X.aspectRatio/w,H=new g.xH((n.width-X.width/O)/2,(n.height-X.height)/2,X.width/O,X.height),O===1&&g.Wo&&(w=H.width-n.height*w,w>0&&(H.width+=w,H.height+=w)));g.wP(l.element,"ytp-fit-cover-video",Math.max(H.width-X.width,H.height-X.height)<1);if(Z||l.oX)l.dK.style.display="";l.OO=!0}else{H=-n.height;aZ?H*=window.devicePixelRatio:g.tt&&(H-=window.screen.height);H=new g.xH(0,H,n.width,n.height);if(Z||l.oX)l.dK.style.display= "none";l.OO=!1}Z2(l.Ql,H)||(l.Ql=H,g.mX(F)?(l.dK.style.setProperty("width",H.width+"px","important"),l.dK.style.setProperty("height",H.height+"px","important")):g.N4(l.dK,H.getSize()),L=new g.AR(H.left,H.top),g.PH(l.dK,Math.round(L.x),Math.round(L.y)),L=!0);n=new g.xH((n.width-X.width)/2,(n.height-X.height)/2,X.width,X.height);Z2(l.B8,n)||(l.B8=n,L=!0);g.HH(l.dK,"transform",O===1?"":"scaleX("+O+")");x&&J!==l.hI&&(J&&(l.dK.addEventListener(xe,l.jL),l.dK.addEventListener("transitioncancel",l.jL),l.dK.classList.add(g.Sk.VIDEO_CONTAINER_TRANSITIONING)), l.hI=J,l.app.iF.publish("playerUnderlayVisibilityChange",l.hI?"transitioning":"hidden"));return L}; OZ5=function(){this.csn=g.yS();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.S=new Set;this.W=new Set}; gEi=function(l){if(l.csn!==g.yS())if(l.csn==="UNDEFINED_CSN")l.csn=g.yS();else{var n=g.yS(),O=g.km();if(n&&O){l.csn=n;for(var L=g.P(l.elements),X=L.next();!X.done;X=L.next())(X=X.value.visualElement)&&X.isClientVe()&&n&&O&&(g.E0("combine_ve_grafts")?ye(q8(),X,O):g.lk(g.ar)(void 0,n,O,X))}if(n)for(l=g.P(l.S),O=l.next();!O.done;O=l.next())(O=O.value.visualElement)&&O.isClientVe()&&g.gW(n,O)}}; g.PB=function(l,n,O,L){g.V.call(this);var X=this;this.logger=new g.OW("App");this.kf=this.il=!1;this.m6={};this.FS=[];this.X3=!1;this.FL=null;this.intentionalPlayback=!1;this.lT=!0;this.eh=!1;this.Sg=this.Wb=null;this.D1=!0;this.mediaElement=this.Hj=null;this.dV=NaN;this.U1=!1;this.xu=this.CS=this.s_=this.kh=this.screenLayer=this.playlist=null;this.Mf=[];this.QL=0;this.DQ={An5:function(){return X.r8}, WM:function(){return X.s_}, R$:function(x){X.s_=x}, A1:function(x,Z){X.s_&&X.s_.A1(x,Z)}}; this.logger.debug("constructor begin");this.config=aC5(n||{});this.webPlayerContextConfig=O;xo0();n=this.config.args||{};this.xo=new iO(n,O,O?O.canaryState:this.config.assets.player_canary_state,L,this);g.c(this,this.xo);G6i(this.xo);L=It7(this.xo);this.xo.AA()&&this.Mf.push({key:"h5vcc",value:L});this.xo.experiments.MQ("jspb_serialize_with_worker")&&S0i();this.xo.experiments.MQ("gzip_gel_with_worker")&&mH5();this.xo.W&&!Ljq&&(window.addEventListener(DU?"touchstart":"click",hV8,{capture:!0,passive:!0}), Ljq=!0);this.J("html5_onesie")&&(this.Xr=new ep(this.xo),g.c(this,this.Xr));this.RX=Li(QG(this.xo)&&!0,n.enablesizebutton);this.k9=Li(!1,n.player_wide);this.visibility=new k6i;g.c(this,this.visibility);this.J("web_log_theater_mode_visibility")&&this.b1(Li(!1,n.player_wide));this.il=Li(!1,n.external_list);this.events=new g.$B(this);g.c(this,this.events);this.J("start_client_gcf")&&(Yj(Iu(),{Y1:Zg,v3:Lq8()}),this.nH=Iu().resolve(Zg),Fqf(this.nH));this.M7f=new ZQ;g.c(this,this.M7f);this.Ok=new OZ5;L= new JA;this.iF=new g.DQ(this,L);g.c(this,this.iF);this.template=new RTa(this);g.c(this,this.template);this.appState=1;this.cT=Xpa(this);g.c(this,L);L={};this.Kx=(L.internalvideodatachange=this.pW,L.playbackready=this.nPp,L.playbackstarted=this.Geo,L.statechange=this.Kyq,L);this.cL=new P8(this.iF);this.Xo=oEg(this);L=this.J("html5_load_wasm");n=this.J("html5_allow_asmjs");if(L&&Fj5||n)this.xo.Ip=aJi(this.Xo,n),bo(Aw(this.xo.Ip,function(x){X.xo.DZ=x;var Z;(Z=X.AG())==null||Z.Sp("wasm",{a:x.z9})}),function(x){g.d2(x); x="message"in x&&x.message||x.toString()||"";var Z;(Z=X.AG())==null||Z.Sp("wasm",{e:x})}); else if(L&&!Fj5){var F;(F=this.AG())==null||F.Sp("wasm",{e:"wasm unavailable"})}this.ze=new Osg(this.xo,this.Xo);this.iF.publish("csiinitialized");F=10;g.yw(this.xo)&&(F=3);R5(this.xo)&&(F=g.HQ(this.xo.experiments,"tvhtml5_unplugged_preload_cache_size"));F=new AL(F,function(x){x!==X.Mv(x.getPlayerType())&&ft(x)}); g.c(this,F);this.r8=new MN7(F,{});F=xx5(this);this.r8.Kr(F.ZF);hri(this);F={};this.vg=(F.airplayactivechange=this.onAirPlayActiveChange,F.airplayavailabilitychange=this.onAirPlayAvailabilityChange,F.beginseeking=this.nW,F.sabrCaptionsDataLoaded=this.Hs,F.endseeking=this.Oi,F.internalAbandon=this.gy,F.internalaudioformatchange=this.Yf,F.internalvideodatachange=this.onVideoDataChange,F.internalvideoformatchange=this.ov,F.liveviewshift=this.wkf,F.playbackstalledatstart=this.ce3,F.progresssync=this.vh3, F.onAbnormalityDetected=this.Ui,F.onSnackbarMessage=this.onSnackbarMessage,F.onLoadProgress=this.onLoadProgress,F.SEEK_COMPLETE=this.sA,F.SEEK_TO=this.UPm,F.onVideoProgress=this.onVideoProgress,F.onLoadedMetadata=this.onLoadedMetadata,F.onAutoplayBlocked=this.onAutoplayBlocked,F.onPlaybackPauseAtStart=this.cCJ,F.playbackready=this.k2f,F.statechange=this.UZ,F.newelementrequired=this.mE,F.heartbeatparams=this.HB,F.videoelementevent=this.pE,F.drmoutputrestricted=this.onDrmOutputRestricted,F.signatureexpired= this.KGf,F.nonfatalerror=this.n4f,F.reloadplayer=this.LG2,F);this.hD=new g.$B(this);g.c(this,this.hD);this.RB=new rd;g.c(this,this.RB);this.oo=this.rz=-1;this.yl=new g.vs(this.template.resize,16,this.template);g.c(this,this.yl);this.jz=new Qd0(this.iF,this.xo,this.Wj(),this);this.G9=new Sd(this.xo);this.s9=new iw(this);g.c(this,this.s9);this.FW=new $1(this);g.c(this,this.FW);pc9(this.xo.S.c);this.events.U(this.iF,g.F4("appapi"),this.jOG);this.events.U(this.iF,g.xx("appapi"),this.pjm);this.events.U(this.iF, g.F4("appprogressboundary"),this.sI1);this.events.U(this.iF,g.xx("applooprange"),this.AI);this.events.U(this.iF,"presentingplayerstatechange",this.gt);this.events.U(this.iF,"resize",this.B8Q);this.template.V5(zB(document,l));this.events.U(this.iF,"offlineslatestatechange",this.Kez);this.events.U(this.iF,"sabrCaptionsTrackChanged",this.aZF);this.events.U(this.iF,"sabrCaptionsBufferedRangesUpdated",this.io1);this.Xo.C.j().X$&&ml(this.Xo,"offline");this.xo.Yo&&g.Dq("ux",g.Ix);l=g.HQ(this.xo.experiments, "html5_defer_fetch_att_ms");this.A9=new g.vs(this.O1G,l,this);g.c(this,this.A9);this.b5().MP()&&(g.Vd()&&this.b5().Lf.push("remote"),ZZ9(this));this.ze.tick("fs");JK5(this);this.xo.Yo&&ml(this.Xo,"ux",!0);g.yG(this.Xo.C.j())&&ml(this.Xo,"embed");this.J("web_player_sentinel_is_uniplayer")||g.d2(new g.at("Player experiment flags missing","web_player_sentinel_is_uniplayer"));l=this.J("web_player_sentinel_yt_experiments_sync");F=g.E0("web_player_sentinel_yt_experiments_sync");l!==F&&g.d2(new g.at("b/195699950", {yt:l,player:F}));O||g.d2(new g.at("b/179532961"));this.WV=wp5(this);if(O=g.HQ(this.xo.experiments,"html5_block_pip_safari_delay"))this.Vn=new g.vs(this.x7,O,this),g.c(this,this.Vn);IT=this.xo.q5;O=g.HQ(this.xo.experiments,"html5_performance_impact_profiling_timer_ms");O>0&&(this.KJ=new g.DG(O),g.c(this,this.KJ),this.events.U(this.KJ,"tick",function(){X.M7&&HZa.wT("apit",X.M7);X.M7=HZa.xp()})); this.iF.publish("applicationInitialized");this.logger.debug("constructor end")}; wp5=function(l){function n(O){O.stack&&O.stack.indexOf("player")!==-1&&(l.AG()||l.Wj()).Yw(O)} $m.subscribe("handleError",n);tz.push(n);return function(){$m.unsubscribe("handleError",n);var O=tz.indexOf(n);O!==-1&&tz.splice(O,1)}}; xx5=function(l){var n=new g.z8(l.xo,l.config.args);l.iF.publish("initialvideodatacreated",n);return g.Ta(l,1,n)}; hri=function(l){var n=l.Wj();n.setPlaybackRate(l.xo.L?1:AK9(l,Number(g.dU("yt-player-playback-rate"))||1));n.DF(l.Kx,l);n.pY()}; oEg=function(l){var n="",O=Knv(l);O.indexOf("//")===0&&(O=l.xo.protocol+":"+O);var L=O.lastIndexOf("/base.js");L!==-1&&(n=O.substring(0,L+1));if(O=Error().stack)if(O=O.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))O=O[1],O.includes(n)||g.d2(Error("Player module URL mismatch: "+(O+" vs "+n+".")));n=new Ym8(l.iF,n);bZi(l,n);return n}; bZi=function(l,n){var O={};O=(O.destroyed=function(){l.onApiChange()},O); n.N=O}; Xpa=function(l){if(l.xo.storeUserVolume){l=g.dU("yt-player-volume")||{};var n=l.volume;l={volume:isNaN(n)?100:g.hR(Math.floor(n),0,100),muted:!!l.muted}}else l={volume:100,muted:l.xo.mute};return l}; WB=function(l){l.mediaElement=l.xo.deviceIsAudioOnly?new g.o6(g.nf("AUDIO")):dN.pop()||new g.o6(g.nf("VIDEO"));g.c(l,l.mediaElement);var n=l.AG();n&&n.setMediaElement(l.mediaElement);try{l.xo.Xg?(l.CS&&l.events.EC(l.CS),l.CS=l.events.U(l.mediaElement,"volumechange",l.P5F)):(l.mediaElement.pc(l.cT.muted),l.mediaElement.setVolume(l.cT.volume/100))}catch(X){l.Qf("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g, "_")));return}g.eU(l.hD);rK9(l);n=l.template;var O=l.mediaElement.De();n.dK=O;n.dL=!1;n.dK.parentNode||Xg(n.LO,n.dK,0);n.Ql=new g.xH(0,0,0,0);nEi(n);U5(n);O=n.dK;g.FW(O,"video-stream");g.FW(O,g.Sk.MAIN_VIDEO);var L=n.app.j();L.Z$&&O.setAttribute("data-no-fullscreen","true");L.J("html5_local_playsinline")?"playsInline"in YB()&&(O.playsInline=!0):L.Vr&&(O.setAttribute("webkit-playsinline",""),O.setAttribute("playsinline",""));L.Vz&&n.dK&&n.U(O,"click",O.play,O);try{l.mediaElement.activate()}catch(X){l.Qf("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g,"_")))}}; uQa=function(l){if(!Ux5(l)){var n=l.Wj().T$();n&&(n=n.TV(),n instanceof Promise&&n.catch(function(){})); E5(l,HG(l.getPlayerStateObject()))}}; rK9=function(l){var n=l.mediaElement;Ib()?l.hD.U(n,"webkitpresentationmodechanged",l.yeG):window.document.pictureInPictureEnabled&&(l.hD.U(n,"enterpictureinpicture",function(){l.Ps(!0)}),l.hD.U(n,"leavepictureinpicture",function(){l.Ps(!1)})); Ch&&(l.hD.U(n,"webkitbeginfullscreen",function(){l.x6(3)}),l.hD.U(n,"webkitendfullscreen",function(){l.x6(0)}))}; PW5=function(l,n){var O=n.getPlayerType(),L=l.r8.Mv(O);n!==l.Wj()&&n!==L&&(L==null||ft(L),l.r8.N[O]=n)}; Tlg=function(l,n){n=n===void 0?!0:n;l.logger.debug("start clear presenting player");var O;if(O=l.xu){O=l.xu;var L=l.mediaElement;O=!!L&&L===O.mediaElement}O&&(l.bJ(),WB(l));if(O=l.AG())O.bJ(!n),O.zW(l.vg,l),O.getPlayerType()!==1&&ft(O);l.r8.L=null;l.logger.debug("finish clear presenting player")}; g.Ta=function(l,n,O,L){var X=l.ze;n===2&&(X=new Osg(l.xo));return new g.rr(l.xo,n,X,l.template,function(F,x,Z){l.iF.publish(F,x,Z)},function(){return l.iF.getVisibilityState()},l.visibility,l,O,L)}; Wje=function(l,n,O,L){l=g.Ta(l,n,O,L);l.pY();return l}; Nn=function(l,n){return l.dB(n)?l.Wj():n}; DH=function(l,n){var O=l.AG(),L=l.Wj();return O&&n===L&&l.dB(n)&&l.dB(O)?O:n}; Dx0=function(l){l.logger.debug("start application playback");if(l.Wj().getPlayerState().isError())l.logger.debug("start application playback done, player in error state");else{var n=qn(l);l.b5().isLoaded();n&&l.kc(6);EEe(l);ise(l.Xo)||Nla(l)}}; Nla=function(l){if(!qn(l)){var n=dt(l.Xo);n&&!n.created&&jx0(l.Xo)&&(l.logger.debug("reload ad module"),n.create())}}; EEe=function(l){l.logger.debug("start presenter playback");var n=l.getVideoData(),O=l.Xo;ise(O)||O.Fe();!Fj5&&O.C.J("html5_allow_asmjs")&&Km5(O);ml(O,"embed");ml(O,"kids");ml(O,"remote");ml(O,"miniplayer");ml(O,"offline");ml(O,"unplugged");ml(O,"ypc",!1,!0);ml(O,"ypc_clickwrap",!1,!0);ml(O,"yto",!1,!0);ml(O,"webgl",!1,!0);zMi(O)||(ml(O,"captions",!0),ml(O,"endscreen"),O.Rj()||O.j4(),ml(O,"creatorendscreen",!0));O.BE();l.iF.publish("videoready",n)}; kv=function(l){l=l.b5();l.MP();return zy(l)}; JK5=function(l){l.logger.debug("start prepare initial playback");l.fC();var n=l.config.args;WB(l);var O=l.b5();l.iF.Fb("onVolumeChange",l.cT);if(n&&Fm0(n)){var L=sI(l.xo);L&&!l.il&&(n.fetch=0);var X=g.yG(l.xo);X&&!l.il&&(n.fetch=0);ym(l,n);g.yG(l.xo)&&l.ze.tick("ep_pr_s");if(!L||l.il)if(X&&!l.il)qSi(l);else if(!O.MP())l.playlist.onReady(function(){Mn(l)})}l.Iu(l.Wj()); g.K(l.Wj().getPlayerState(),128)||(n=hhk(!l.xo.deviceIsAudioOnly),n==="fmt.noneavailable"?l.Qf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):n==="html5.missingapi"?l.Qf(n,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):O&&O.MP()&&kv(l)&&(l.xo.kY||l.xo.Oc)?Qm(l):O.rY?l.J("embeds_enable_full_length_inline_muted_autoplay")?l.iF.mutedAutoplay({durationMode:O.mutedAutoplayDurationMode}):l.iF.mutedAutoplay():g.dU("yt-player-playback-on-reload")?(g.JG("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!l.xo.Q5}),g.It("yt-player-playback-on-reload",!1),Qm(l)):lQ(l.xo)||kh0(l),g.a5(l.xo)||RS(l.xo)==="MWEB"?(g.lX(g.Oy(),function(){eK(l)}),g.lX(g.Oy(),function(){UUk()})):(eK(l),UUk()),l.logger.debug("finish prepare initial playback"))}; eK=function(l){if(!l.J("use_rta_for_player"))if(l.J("fetch_att_independently"))g.lx(l.A9);else{var n=l.getVideoData().botguardData;n&&g.dB(n,l.xo,l.getVideoData().q1||"")}}; kh0=function(l){l.logger.debug("start initialize to CUED mode");l.iF.publish("initializingmode");l.kc(2);l.J("embeds_web_enable_defer_loading_remote_js")&&g.Cw(l.xo)?g.lX(g.Oy(),function(){ml(l.Xo,"remote")}):ml(l.Xo,"remote"); ml(l.Xo,"miniplayer");l.logger.debug("initialized to CUED mode")}; Qm=function(l){l.logger.debug("start initialize application playback");var n=l.Wj();if(g.K(n.getPlayerState(),128))return!1;var O=n.getVideoData();kv(l)&&l.xo.Oc&&(dN.length&&l.kf?(Yv(l,{muted:!1,volume:l.cT.volume},!1),jK(l,!1)):dN.length||l.cT.muted||(Yv(l,{muted:!0,volume:l.cT.volume},!1),jK(l,!0)));kv(l)&&g.yG(l.xo)&&O.mutedAutoplay&&(Yv(l,{muted:!0,volume:l.cT.volume},!1),jK(l,!0));O.Fu&&Yv(l,{muted:!0,volume:l.cT.volume},!1);yK8(l,1,O,!1);l.iF.publish("initializingmode");l.Iu(l.Wj());l.kc(3); var L;if(!(L=!l.xo.LT)){if(L=l.xu){L=l.xu;var X=l.mediaElement;L=!!X&&X===L.mediaElement}L=L&&l.X3}L&&(l.bJ(),WB(l),n.setMediaElement(l.mediaElement));n.Or();if(g.K(n.getPlayerState(),128))return!1;O.Nm||E5(l,3);return l.X3=!0}; qn=function(l){l=y7(l.Xo);return!!l&&l.loaded}; MAf=function(l,n){if(!l.Hj)return!1;var O=l.Hj.startTimeMs*.001-1,L=l.Hj.endTimeMs*.001;l.Hj.type==="repeatChapter"&&L--;return Math.abs(n-O)<=1E-6||Math.abs(n-L)<=1E-6||n>=O&&n<=L}; YSk=function(l){var n=l.AG();n&&O9(n.getVideoData())&&!n.ob()&&(n=Q00(l)*1E3-l.getVideoData().bN,l.J("html5_gapless_new_slr")?(l=l.FW,er5(l.app,"gaplessshortslooprange"),n=new g.X4(0,n,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(l=l.app.AG())&&l.addCueRange(n)):l.setLoopRange({startTimeMs:0,endTimeMs:n,type:"shortsLoop"}))}; j09=function(l){var n=l.Wj();if(!(g.K(n.getPlayerState(),64)&&l.b5().isLivePlayback&&l.Hj.startTimeMs<5E3)){if(l.Hj.type==="repeatChapter"){var O,L=(O=eAe(l.dc()))==null?void 0:O.Fx(),X;O=(X=l.getVideoData())==null?void 0:X.YW;L instanceof g.tx&&O&&(X=O[uq(O,l.Hj.startTimeMs)],L.renderChapterSeekingAnimation(0,X.title));isNaN(Number(l.Hj.loopCount))?l.Hj.loopCount=0:l.Hj.loopCount++;l.Hj.loopCount===1&&l.iF.lF("innertubeCommand",l.getVideoData().mV)}L={UC:"application_loopRangeStart"};if(l.Hj.type=== "clips"||l.Hj.type==="shortsLoop")L.seekSource=58;n.seekTo(l.Hj.startTimeMs*.001,L)}}; AK9=function(l,n){var O=l.iF.getAvailablePlaybackRates();n=Number(n.toFixed(2));l=O[0];O=O[O.length-1];n<=l?n=l:n>=O?n=O:(l=Math.floor(n*100+.001)%5,n=l===0?n:Math.floor((n-l*.01)*100+.001)/100);return n}; Q00=function(l,n){n=l.Mv(n);if(!n)return l.r8.S.RU();n=Nn(l,n);return Ga(l,n.RU(),n)}; Ga=function(l,n,O){if(l.dB(O)){O=O.getVideoData();if(mJ(l))O=n;else{l=l.jz;for(var L=g.P(l.W),X=L.next();!X.done;X=L.next())if(X=X.value,O.WS===X.WS){n+=X.U_/1E3;break}L=n;l=g.P(l.W);for(X=l.next();!X.done;X=l.next()){X=X.value;if(O.WS===X.WS)break;var F=X.U_/1E3;if(F<n)L+=X.durationMs/1E3+F-X.QV/1E3;else break}O=L}return O}return n}; Gh7=function(l,n){if(l.getPresentingPlayerType()===3)return HG(y7(l.Xo).N_);if((l.getVideoData().enableServerStitchedDai||g.fy(l.getVideoData()))&&n===2){var O,L;return((O=l.kh)==null?0:O.tZ(l.getCurrentTime()))||((L=l.s_)==null?0:L.tZ())?l.rz:-1}return n!==2||l.dB()?l.rz:l.oo}; ZZ9=function(l){l.logger.debug("reset for new application playback");IP(l);l.setLoopVideo(!1);l.setLoopRange(null);l.iF.publish("legacyadtrackingpingreset");l.m6={};l.FS=[];Xli(l.ze);if(l.kh){var n=l.kh,O=l.Wj();O.getPlayerType();gd(n,!1);RV0(n);C8k(n);n.playback=O}n=l.jz;l=l.Wj();l.getPlayerType()!==1&&FN(n,"invalidParentVideoPlayerType");JL(n,!1);zT5(n);n.S=l}; qSi=function(l,n){var O=(n?n:l.b5()).P7;l.ze.tick("ep_pr_r");if(O!=null&&(JEk(l.playlist,O),l.eh))l.playlist.onReady(function(){Mn(l,n)})}; ym=function(l,n){l.playlist&&(g.h0(l.playlist),l.playlist=null);n&&(l.il&&(n.fetch=0),l.playlist=new o15(l.xo,n))}; mx5=function(l){var n,O=Number((n=l.getVideoData().progressBarEndPosition)==null?void 0:n.utcTimeMillis)/1E3;!isNaN(O)&&(n=l.Ko())&&(n-=l.getCurrentTime(),O=(O-n)*1E3,n=l.m6.progressEndBoundary,(n==null?void 0:n.start)!==O&&(n&&l.ZW([n]),O=new g.X4(O,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),l.Wj().addCueRange(O),l.m6.progressEndBoundary=O))}; E5=function(l,n){l.logger.debug(function(){return"set external state "+n}); var O=l.AG();if(O){var L=O.getPlayerType();if(L===2&&!l.dB()){l.oo!==n&&(l.oo=n,l.iF.Fb("onAdStateChange",n));return}if(L===2&&l.dB()||L===5||L===6||L===7)if(n===-1||n===0||n===5)return}if(n===0){if(l.Hj)return;if((O==null?0:O.hS())&&g.yw(l.xo)){l.playVideo();return}}l.rz!==n&&(l.rz=n,l.iF.Fb("onStateChange",n))}; IOi=function(l,n,O,L,X){L=L===void 0?Infinity:L;X=X===void 0?0:X;l.logger.debug(function(){return"Enqueuing playerType="+O+" at time="+L+"\n videoId="+n.videoId}); var F=l.AG();O=O||F.getPlayerType();(F=yK8(l,O,n,!0))||(F=Wje(l,O,n).ZF);var x=l.Wj();if(O===2&&x){var Z=F.getVideoData();x.t5(Z.clientPlaybackNonce,Z.Wk||"",Z.breakType||0,Z.cQ,Z.videoId||"")}l.sQ(F,L,0,X)}; dx7=function(l,n,O,L,X){var F="";F=l.xo.J("html5_autonav_autoplay_in_preload_key")?dd(l,O,n):$v(l,O,n.videoId,n.WS);l.logger.debug(function(){return"start preload video "+F+", trigger="+X}); var x="",Z=l.AG();if(Z&&(x=l.xo.J("html5_autonav_autoplay_in_preload_key")?dd(l,Z.getPlayerType(),Z.getVideoData()):$v(l,Z.getPlayerType(),Z.getVideoData().videoId,Z.getVideoData().WS),F===x))return Z.IB(!0),n.dispose(),null;n.Y4=!0;n=Wje(l,O,n);O===1&&R5(l.xo)||n.IB(!0);l.r8.W.set(F,n.ZF,L||3600);return n}; $xa=function(l,n,O,L){var X=hB(O);return $v(l,n,X,L,O.autonav==="1"||O.autonav===!0,O.autoplay==="1"||O.autoplay===!0||O.autoplay===1)}; dd=function(l,n,O){return $v(l,n,O.videoId,O.WS,O.isAutonav,O.rk)}; $v=function(l,n,O,L,X,F){X=X===void 0?!1:X;F=F===void 0?!1:F;n=n+"_"+O+"_"+L;l.xo.J("html5_autonav_autoplay_in_preload_key")&&(n+="_"+ +X+ +F);return n}; yK8=function(l,n,O,L){var X=l.xo.J("html5_autonav_autoplay_in_preload_key")?dd(l,n,O):$v(l,n,O.videoId,O.WS);var F=l.r8.W.get(X)||null;if(!F||F.uF.JG())return null;l.r8.W.remove(X);if(g.K(F.getPlayerState(),128))return ft(F),null;if(F===l.Mv(n))return l.ze.infoGel({isCacheHit:!0}),F;if((F.getVideoData().oauthToken||O.oauthToken)&&F.getVideoData().oauthToken!==O.oauthToken)return null;n===1&&IP(l);L||l.Iu(F,!0);l.ze.infoGel({isCacheHit:!0});return F}; VA0=function(l,n){var O;return n&&l.xo.Wp&&!((O=l.getVideoData())==null?0:O.backgroundable)}; Bl5=function(l,n){return VA0(l,n)?(l.Vn?l.Vn.start():l.x7(),!0):!1}; Vm=function(l,n,O){n&&(n=l.Mv(O))&&n===l.Wj()&&(n.getVideoData().UU=!0)}; BB=function(l,n,O){O=O===void 0?1:O;l.logger.debug(function(){return"start cue video, vid "+n.videoId+", type "+O}); if(n.MP()){var L=g.Ta(l,O,n).ZF;l.cancelPlayback(4,O);l.Iu(L);L.pY();if(O===1){l.kc(1);if(g.yG(l.xo)&&!tZ(n)){n.dispose();ft(l.Wj());return}kh0(l)}l.logger.debug("finish cue video")}else l.logger.debug(function(){return"invalid VideoData in cueVideo"}),n.dispose(),(L=l.Mv(O))&&ft(L),aY(l.b5())&&O===2&&l.sV()}; cKf=function(l,n,O,L,X){n=yiv(n,O,L,X);(O=g.yG(l.xo)&&!l.xo.NQ)&&!l.il&&(n.fetch=0);ym(l,n);g.yG(l.xo)&&l.ze.tick("ep_a_pr_s");if(O&&!l.il)O=l.b5(),AE7(O,n).then(function(F){l.eh=!0;qSi(l,F)}); else l.playlist.onReady(function(){Mn(l)}); g.yG(l.xo)&&l.ze.tick("ep_a_pr_r")}; Mn=function(l,n){var O=g.yG(l.xo)&&!l.xo.NQ,L=O&&n?n:g.E8(l.playlist);n=O&&n?n:l.getVideoData();L&&(n.M3&&(l.xo.kY||l.xo.Oc)||!l.lT?(n=n.UU,L=l.sR(L,1),n&&Vm(l,L)):BB(l,L,1));g.yG(l.xo)&&l.ze.tick("ep_p_l");l.eh=!1;l.iF.S3("onPlaylistUpdate")}; Ux5=function(l){if(l.playlist&&g.GH(l.xo)&&l.IT()){var n=l.xo.J("html5_player_autonav_logging");l.nextVideo(!1,n);return!0}return!1}; iZ9=function(l,n,O,L,X,F,x){n={id:n,namespace:x!=null?x:"appapi"};F==="chapter"?(n.style=L$.CHAPTER_MARKER,n.visible=!0):isNaN(X)||(F==="ad"?n.style=L$.AD_MARKER:(n.style=L$.TIME_MARKER,n.color=X),n.visible=!0);l.RL([new g.X4(O*1E3,L*1E3,n)],1);return!0}; zra=function(l,n,O,L,X,F){F=F===void 0?!0:F;var x=l.Ko();if(!x)return F&&l.getVideoData().isLivePlayback&&l.FS.push({id:n,YP1:O,Z2f:L}),!1;F=x-l.getCurrentTime();return iZ9(l,n,O-F,L-F,void 0,void 0,X)}; SSa=function(l,n){l.FS=g.Jq(l.FS,function(x){return x.id!==n}); for(var O=l.Wj(),L=O.PT(),X=0;X<L.length;X++){var F=L[X];if(F.getId()===n)return O.removeCueRange(F),cB(l,"cuerangesremoved",[F]),!0}return!1}; er5=function(l,n,O){var L=l.Mv(O);L&&(n=L.cS(n),O&&l.getPresentingPlayerType()!==O||cB(l,"cuerangesremoved",n))}; pp0=function(l){var n=(0,g.Q_)(),O=l.getCurrentTime();l=l.getVideoData();O=1E3*(O-l.startSeconds);l.isLivePlayback&&(O=0);return n-Math.max(O,0)}; Yv=function(l,n,O){l.xo.wq&&(l.cT=n,n.muted||jK(l,!1),O&&l.xo.storeUserVolume&&!l.xo.Xg&&(O={volume:Math.floor(n.volume),muted:n.muted},O.unstorable||(g.It("yt-player-volume",O),g.It("yt-player-volume",O,2592E3))),s09(l),O=g.G2&&l.mediaElement&&!l.mediaElement.m5(),l.xo.Xg&&!O||l.iF.Fb("onVolumeChange",{muted:n.muted,volume:n.volume,unstorable:!l.xo.storeUserVolume}))}; s09=function(l){var n=l.getVideoData();if(!n.uc){n=l.xo.Xg?1:FU5(n);var O=l.mediaElement;O.pc(l.cT.muted);try{O.setVolume(l.cT.volume*n/100)}catch(L){g.d2(new g.at("b183742307","multiplier: "+n+", volume: "+l.cT.volume))}}}; jK=function(l,n){n!==l.kf&&(l.kf=n,l.iF.S3("onMutedAutoplayChange",n))}; b4=function(l){return l.kf&&l.getVideoData().mutedAutoplay}; fOi=function(l){var n=Pk(!0);return n&&(n===l.template.element||l.mediaElement&&n===l.mediaElement.De())?n:null}; aO5=function(l,n){var O=window.screen&&window.screen.orientation;if((l.xo.J("lock_fullscreen2")||l.xo.G)&&O&&O.lock&&(!g.G2||!Kj7))if(n){n=O.type.indexOf("portrait")===0;var L=l.template.getVideoAspectRatio(),X=n;L<1?X=!0:L>1&&(X=!1);if(!l.U1||X!==n){O=O.lock(X?"portrait":"landscape");if(O!=null)O["catch"](function(){}); l.U1=!0}}else l.U1&&(l.U1=!1,O.unlock())}; cB=function(l,n,O){l.iF.publish(n,O);var L=g.yw(l.xo)||g.mX(l.xo)||g.Bt(l.xo);if(O&&L){switch(n){case "cuerangemarkersupdated":var X="onCueRangeMarkersUpdated";break;case "cuerangesadded":X="onCueRangesAdded";break;case "cuerangesremoved":X="onCueRangesRemoved"}X&&l.iF.lF(X,O.map(function(F){return{getId:function(){return this.id}, end:F.end,id:F.getId(),namespace:F.namespace==="ad"?"ad":"",start:F.start,style:F.style,visible:F.visible}}))}}; iy=function(l,n,O,L,X,F){O=O===void 0?!0:O;var x=l.Mv(X);x&&(x.getPlayerType()===2&&!l.dB(x)||g.kZ(x.getVideoData()))||(l.getPresentingPlayerType()===3?y7(l.Xo).BB("control_seek",n,O):(x&&x===l.Wj()&&l.Hj&&!MAf(l,n)&&l.setLoopRange(null),l.seekTo(n,O,L,X,F)))}; Rrg=function(l,n,O,L){O&&(l.bJ(),WB(l));O=l.AG();O.Ll(n);var X=l.getVideoData(),F={};F.video_id=X.videoId;F.adformat=X.adFormat;X.isLivePlayback||(F.start=O.getCurrentTime(),F.resume="1");X.isLivePlayback&&JZ(X)&&g.qp(l.xo)&&(F.live_utc_start=O.Ko(),F.resume="1");X.NQ&&(F.vvt=X.NQ);X.V&&(F.vss_credentials_token=X.V,F.vss_credentials_token_type=X.dH);X.oauthToken&&(F.oauth_token=X.oauthToken);X.DJ&&(F.force_gvi=X.DJ);F.autoplay=1;F.reload_count=X.hC+1;F.reload_reason=n;X.SH&&(F.unplugged_partner_opt_out= X.SH);X.Ip&&(F.ypc_is_premiere_trailer=X.Ip);X.playerParams&&(F.player_params=X.playerParams);l.loadVideoByPlayerVars(F,void 0,!0,void 0,void 0,L);n==="signature"&&l.kh&&Nla(l)}; CWg=function(l,n){l.b5().autonavState=n;g.It("yt-player-autonavstate",n);l.iF.publish("autonavchange",n)}; tA8=function(l){var n=l.getVideoData().uc,O=l.xo.uv,L=l.isInline()&&!l.getVideoData().AB,X=l.mediaElement;n||O||L?X.cn():(X.xN(),Yv(l,l.cT))}; IP=function(l){var n=dt(l.dc());n&&n.created&&(l.logger.debug("reset ad module"),n.destroy())}; mJ=function(l){return l.getVideoData().enableServerStitchedDai&&!!l.kh}; vEa=function(l,n){n.bounds=l.getBoundingClientRect();for(var O=g.P(["display","opacity","visibility","zIndex"]),L=O.next();!L.done;L=O.next())L=L.value,n[L]=rZ(l,L);n.hidden=!!l.hidden}; Knv=function(l){if(l.webPlayerContextConfig){var n=l.webPlayerContextConfig.trustedJsUrl;return n?qH(n).toString():l.webPlayerContextConfig.jsUrl}return l.config.assets&&l.config.assets.js?l.config.assets.js:""}; lVi=function(l,n){var O=l.Mv(1);if(O){if(O.getVideoData().clientPlaybackNonce===n)return O;if((l=l.s9.S)&&l.getVideoData().clientPlaybackNonce===n)return l}return null}; nIq=function(l){return l.name==="TypeError"&&l.stack.includes("/s/player/")&&zj()<=105}; Oq9=function(l){return l.isTimeout?"NO_BID":"ERR_BID"}; gIi=function(){var l=null;jUq().then(function(n){return l=n},function(n){return l=Oq9(n)}); return l}; Leq=function(){var l=ko(1E3,"NO_BID");return E6(CVe([jUq(),l]).O9(Oq9),function(){l.cancel()})}; za=function(l){return l.d8?g.SU(g.zK(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; SK=function(l){this.player=l;this.N=this.S=1}; Fe9=function(l,n,O,L,X,F){n.client||(n.client={});l.player.j().J("h5_remove_url_for_get_ad_break")||(n.client.originalUrl=O);var x=hP(O),Z=g.VM(O)?!1:!0;(x||Z)&&typeof Intl!=="undefined"&&(n.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);Z=g.VM(O)?!1:!0;if(x||Z||L!==""){var J={};O=gc(AP(L)).split("&");var w=new Map;O.forEach(function(H){H=H.split("=");H.length>1&&w.set(H[0].toString(),decodeURIComponent(H[1].toString()))}); w.has("bid")&&(J.bid=w.get("bid"));J.params=[];XXa.forEach(function(H){w.has(H)&&(H={key:H,value:w.get(H)},J.params.push(H))}); oI9(l,J);n.adSignalsInfo=J}n.client.unpluggedAppInfo||(n.client.unpluggedAppInfo={});n.client.unpluggedAppInfo.enableFilterMode=!1;O=X.S.cosver;O!=null&&O!=="cosver"&&(n.client.osVersion=O);O=X.S.cplatform;O!=null&&O!=="cplatform"&&O!==""&&(n.client.platform=O);O=X.S.cmodel;O!=null&&O!=="cmodel"&&(n.client.deviceModel=O);O=X.S.cplayer;O!=null&&O!=="cplayer"&&(n.client.playerType=O);O=X.S.cbrand;O!=null&&O!=="cbrand"&&(n.client.deviceMake=O);n.user||(n.user={});n.user.lockedSafetyMode=!1;(X.J("embeds_web_enable_iframe_api_send_full_embed_url")|| X.J("embeds_enable_autoplay_and_visibility_signals"))&&g.GH(X)&&mp5(n,F,l.player.getPlayerState(1))}; Zq0=function(l,n){var O=!1;if(n==="")return O;n.split(",").forEach(function(L){var X={},F={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},x="ACTIVE";L[0]==="!"&&(L=L.substring(1),x="INACTIVE");L=L.split("-");L.length<3||(L[0]in xj5&&(F.clientName=xj5[L[0]]),L[1]in hjv&&(F.platform=hjv[L[1]]),F.applicationState=x,F.clientVersion=L.length>2?L[2]:"",X.remoteClient=F,l.remoteContexts?l.remoteContexts.push(X):l.remoteContexts=[X],O=!0)}); return O}; wXf=function(l){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in JUf))return!1;l=l.split(RegExp("[:&]"));var n=JUf.FLAG_AUTO_CAPTIONS_DEFAULT_ON,O="f"+(1+Math.floor(n/31)).toString();n=1<<Math.floor(n%31);for(var L=0,X=l.length;L<X;L++){var F=l[L].split("=");if(F[0]===O&&parseInt("0x"+F[1],16)&n)return!0}return!1}; oI9=function(l,n){l=l.player.j();if(g.fw(l)||R5(l)){l=g.R3("INNERTUBE_CONTEXT");var O,L;(l==null?0:(O=l.adSignalsInfo)==null?0:O.advertisingId)&&typeof(l==null?void 0:(L=l.adSignalsInfo)==null?void 0:L.limitAdTracking)!=="undefined"&&(n.advertisingId=l.adSignalsInfo.advertisingId,n.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",n.limitAdTracking=l.adSignalsInfo.limitAdTracking)}}; T65=function(l,n,O,L,X){var F=O.DRIFT_FROM_HEAD_MS&&!Number.isNaN(O.DRIFT_FROM_HEAD_MS)?Math.trunc(O.DRIFT_FROM_HEAD_MS):0,x=Hqa.exec(n);x=x!=null&&x.length>=2?x[1]:"";var Z=AUi.test(n),J=bqq.exec(n);J=J!=null&&J.length>=2?J[1]:"";var w=rU9.exec(n);w=w!=null&&w.length>=2&&!Number.isNaN(Number(w[1]))?Number(w[1]):1;var H=Uji.exec(n);H=H!=null&&H.length>=2?H[1]:"0";var A=VG(l.player.j().Vf),b=l.player.getVideoData(1),r=g.vt(b.Cf,!0),U="BISCOTTI_ID"in O?O.BISCOTTI_ID:"";Fe9(l,r,n,U.toString(),l.player.j(), b);b={splay:!1,lactMilliseconds:O.LACT.toString(),playerHeightPixels:Math.trunc(O.P_H),playerWidthPixels:Math.trunc(O.P_W),vis:Math.trunc(O.VIS),signatureTimestamp:20143,autonavState:za(l.player.j())};L&&(L={},Zq0(L,O.YT_REMOTE)&&(b.mdxContext=L));if(L=uKg.includes(A)?void 0:g.VA("PREF")){for(var W=L.split(RegExp("[:&]")),N=0,q=W.length;N<q;N++){var y=W[N].split("=");if((y[0].toUpperCase()==="SML"||y[0].toUpperCase()==="GSML")&&y.length>1&&y[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}b.autoCaptionsDefaultOn= wXf(L)}n=PH5.exec(n);(n=n!=null&&n.length>=2?n[1]:"")&&J&&(r.user.credentialTransferTokens=[{token:n,scope:"VIDEO"}]);n={contentPlaybackContext:b};x={adBlock:Math.trunc(O.AD_BLOCK),params:x,breakIndex:w,breakPositionMs:H,clientPlaybackNonce:O.CPN,topLevelDomain:A,isProxyAdTagRequest:Z,context:r,adSignalsInfoString:gc(AP(U.toString())),overridePlaybackContext:n};X!==void 0&&(x.cueProcessedMs=Math.round(X).toString());J&&(x.videoId=J);O.LIVE_TARGETING_CONTEXT&&(x.liveTargetingParams=O.LIVE_TARGETING_CONTEXT); O.AD_BREAK_LENGTH&&(x.breakLengthMs=Math.trunc(O.AD_BREAK_LENGTH*1E3).toString());F&&(x.driftFromHeadMs=F.toString());x.currentMediaTimeMs=Math.round(l.player.getCurrentTime(1)*1E3);(l=l.player.getGetAdBreakContext())&&(x.getAdBreakContext=l);return x}; We5=function(){SK.apply(this,arguments)}; EIi=function(l,n,O,L,X){var F=O.dF;var x=O.BS;var Z=l.player.j().I0,J=0;O.cueProcessedMs&&x&&!F&&(O=x.end-x.start,O>0&&(J=Math.floor(O/1E3)));var w={AD_BLOCK:X,AD_BREAK_LENGTH:F?F.HM:J,AUTONAV_STATE:za(l.player.j()),CA_TYPE:"image",CPN:l.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:l.player.td()*1E3,LACT:MU(),LIVE_INDEX:F?l.N++:1,LIVE_TARGETING_CONTEXT:F&&F.context?F.context:"",MIDROLL_POS:x?Math.round(x.start/1E3):0,MIDROLL_POS_MS:x?Math.round(x.start):0,VIS:l.player.getVisibilityState(), P_H:l.player.xP().Dm().height,P_W:l.player.xP().Dm().width,YT_REMOTE:Z?Z.join(","):""},H=Hu(wc);Object.keys(H).forEach(function(A){H[A]!=null&&(w[A.toUpperCase()]=H[A].toString())}); L!==""&&(w.BISCOTTI_ID=L);L={};JP(n)&&(L.sts="20143",(l=l.player.j().forcedExperiments)&&(L.forced_experiments=l));return xp(g.jt(n,w),L)}; N6i=function(l,n){var O=l.player.j(),L,X=(L=l.player.getVideoData(1))==null?void 0:L.oauthToken;return g.g7(O,X).then(function(F){if(F&&ZE()){var x=dj();$A(x,F)}return g.Cp(l.player.A2(x),n,"/youtubei/v1/player/ad_break").then(function(Z){return Z})})}; Dji=function(l){this.qQ=l}; qQ5=function(l){this.C=l}; kXe=function(l){this.qQ=l}; MBi=function(l){g.V.call(this);this.S=l;this.FY=yUk(this)}; yUk=function(l){var n=new Jri(l.S.fp);g.c(l,n);l=g.P([new Dji(l.S.qQ),new qQ5(l.S.C),new kXe(l.S.qQ),new jh(l.S.pZ,l.S.SI),new mZ,new $g(l.S.Ds,l.S.zn,l.S.qQ),new G0,new Yg]);for(var O=l.next();!O.done;O=l.next())wva(n,O.value);l=g.P(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(O=l.next();!O.done;O=l.next())II(n,O.value,function(){}); return n}; pM=function(l){var n=l.tG,O=l.Rz;l=l.m1;var L=new y8i,X={WQ:new F3k(n.get(),O),Rz:O};return{Pj:new OA(O,l,n,X),context:X,cG:L}}; s5=function(l,n,O,L,X){g.V.call(this);this.W=n;this.Bm=O;this.tG=L;this.uf=X;this.listeners=[];var F=new MV(this);g.c(this,F);F.U(l,"internalAbandon",this.gy);this.addOnDisposeCallback(function(){g.eU(F)})}; fM=function(l){this.C=l;this.adVideoId=this.S=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.W=this.N=!1;this.adFormat=null;this.L="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; QEi=function(l){l.contentCpn=null;l.adCpn=null;l.videoId=null;l.adVideoId=null;l.adFormat=null;l.L="AD_PLACEMENT_KIND_UNKNOWN";l.actionType="unknown_type";l.N=!1;l.W=!1}; eji=function(l,n){l=g.P(n);for(n=l.next();!n.done;n=l.next())if((n=n.value.renderer)&&(n.instreamVideoAdRenderer||n.linearAdSequenceRenderer||n.sandwichedLinearAdRenderer||n.instreamSurveyAdRenderer)){iD("ad_i");g.zp({isMonetized:!0});break}}; YQ5=function(l){var n;(n=l.C.getVideoData(1))!=null&&n.Q5&&(l.W=!1,n={},l.S&&l.videoId&&(n.cttAuthInfo={token:l.S,videoId:l.videoId}),S$("video_to_ad",n))}; fX=function(l){l.W=!1;var n={};l.S&&l.videoId&&(n.cttAuthInfo={token:l.S,videoId:l.videoId});S$("ad_to_video",n);jEv(l)}; jEv=function(l){if(l.N)if(l.L==="AD_PLACEMENT_KIND_START"&&l.actionType==="video_to_ad")V9("video_to_ad");else{var n={adBreakType:NI(l.L),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:l.videoStreamType};l.actionType==="ad_to_video"?(l.contentCpn&&(n.targetCpn=l.contentCpn),l.videoId&&(n.targetVideoId=l.videoId)):(l.adCpn&&(n.targetCpn=l.adCpn),l.adVideoId&&(n.targetVideoId=l.adVideoId));l.adFormat&&(n.adType=l.adFormat);l.contentCpn&& (n.clientPlaybackNonce=l.contentCpn);l.videoId&&(n.videoId=l.videoId);l.adCpn&&(n.adClientPlaybackNonce=l.adCpn);l.adVideoId&&(n.adVideoId=l.adVideoId);g.zp(n,l.actionType)}}; KM=function(l){g.V.call(this);this.C=l;this.S=new Map;this.W=new MV(this);g.c(this,this.W);this.W.U(this.C,g.F4("ad"),this.onCueRangeEnter,this);this.W.U(this.C,g.xx("ad"),this.onCueRangeExit,this)}; GXq=function(l,n,O,L,X){g.X4.call(this,n,O,{id:l,namespace:"ad",priority:X,visible:L})}; aP=function(l){this.C=l}; RP=function(l){this.C=l;g.HQ(this.C.j().experiments,"tv_pacf_logging_sample_rate")}; ql=function(l,n){n=n===void 0?!1:n;return l.C.j().J("html5_ssap_force_ads_ctmp")?!0:(n||l.C.j().AA())&&l.C.j().J("html5_ssap_pacf_qoe_ctmp")}; CM=function(l){var n,O;return(O=(n=l.C.getVideoData(1))==null?void 0:g.fy(n))!=null?O:!1}; Rn=function(l,n){return l.C.j().J(n)}; mjv=function(l){return l.C.j().J("substitute_ad_cpn_macro_in_ssdai")}; WP=function(l){var n,O,L;return((n=l.C.getVideoData(1).getPlayerResponse())==null?void 0:(O=n.playerConfig)==null?void 0:(L=O.daiConfig)==null?void 0:L.enableServerStitchedDai)||!1}; uc8=function(l){return l.C.j().J("html5_enable_vod_slar_with_notify_pacf")}; IVi=function(l){return l.C.j().J("html5_recognize_predict_start_cue_point")}; lZ=function(l){return l.C.j().experiments.MQ("enable_desktop_player_underlay")}; dj9=function(l){return l.C.j().experiments.MQ("html5_load_empty_player_in_media_break_sub_lra")}; Iv=function(l){return l.C.j().experiments.MQ("html5_load_ads_instead_of_cue")}; dX=function(l){return l.C.j().experiments.MQ("html5_preload_ads")}; R7=function(l){return l.C.j().experiments.MQ("enable_ads_control_flow_deterministic_id_generation")}; $je=function(l){return l.C.j().experiments.MQ("enable_desktop_discovery_video_abandon_pings")||g.fw(l.C.j())}; VB5=function(l){return l.C.j().experiments.MQ("enable_progres_commands_lr_feeds")}; B6a=function(l){return l.C.j().experiments.MQ("html5_cuepoint_identifier_logging")}; cUk=function(l){switch(l){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}}; iqv=function(){g.hj.call(this);var l=this;this.S={};this.addOnDisposeCallback(function(){for(var n=g.P(Object.keys(l.S)),O=n.next();!O.done;O=n.next())delete l.S[O.value]})}; tL=function(){if(zj5===null){zj5=new iqv;YC(DC).W="b";var l=YC(DC),n=UU(l)=="h"||UU(l)=="b",O=!(dS(),!1);n&&O&&(l.B=!0,l.V=new jOg)}return zj5}; SQf=function(l,n,O){l.S[n]=O}; pX9=function(l){switch(l){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}}; vB=function(l,n,O){this.Bm=l;this.C=n;this.Rz=O;this.W=new Set;this.S=new Map;tL().subscribe("adactiveviewmeasurable",this.JV,this);tL().subscribe("adfullyviewableaudiblehalfdurationimpression",this.gN,this);tL().subscribe("adviewableimpression",this.zp,this);tL().subscribe("adaudioaudible",this.BJ,this);tL().subscribe("adaudiomeasurable",this.HJ,this)}; nk=function(l,n,O){var L=O.d7,X=O.zq,F=O.listener,x=O.v1;O=O.kQ===void 0?!1:O.kQ;if(l.S.has(n))AV("Unexpected registration of layout in LidarApi");else{if(x){if(l.W.has(x))return;l.W.add(x)}l.S.set(n,F);hf(dS().z2,"fmd",1);zx0(YC(DC),L);var Z=O?n:void 0;SQf(tL(),n,{yn:function(){if(!X)return{};var J=l.C.getPresentingPlayerType(!0),w;return(w=l.C.getVideoData(J))!=null&&w.isAd()?{currentTime:l.Bm.get().getCurrentTimeSec(J,!1,Z),duration:X,isPlaying:lF(l.Bm.get(),J).isPlaying(),isVpaid:!1,isYouTube:!0, volume:l.Bm.get().isMuted()?0:l.Bm.get().getVolume()/100}:{}}})}}; OR=function(l,n){l.S.has(n)?(l.S.delete(n),delete tL().S[n]):AV("Unexpected unregistration of layout in LidarApi")}; sEe=function(l,n){if(l.C.isLifaAdPlaying()){var O=l.C.FC(!0,!0);l.xS(n,O.width*.5*1.1,O.height*.25*1.1,O.width*.5*.9,O.height*.5*.9)}}; aVf=function(l,n,O){var L={};fVf(l,L,n,O);Ke8(L);L.LACT=gs(function(){return MU().toString()}); L.VIS=gs(function(){return l.getVisibilityState().toString()}); L.SDKV="h.3.0";L.VOL=gs(function(){return l.isMuted()?"0":Math.round(l.getVolume()).toString()}); L.VED="";return L}; Rjq=function(l,n){var O={};if(n)return O;if(!l.kind)return g.Ir(Error("AdPlacementConfig without kind")),O;if(l.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||l.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!l.adTimeOffset||!l.adTimeOffset.offsetStartMilliseconds)return g.Ir(Error("malformed AdPlacementConfig")),O;O.MIDROLL_POS=gs(wa(Math.round(nJ(l.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else O.MIDROLL_POS=gs(wa("0"));return O}; gs=function(l){return{toString:function(){return l()}}}; CHa=function(l,n,O){function L(Z,J){(J=O[J])&&(F[Z]=J)} function X(Z,J){(J=O[J])&&(F[Z]=x(J))} if(!O||g.Qj(O))return l;var F=Object.assign({},l),x=n?encodeURIComponent:function(Z){return Z}; X("DV_VIEWABILITY","doubleVerifyViewability");X("IAS_VIEWABILITY","integralAdsViewability");X("MOAT_INIT","moatInit");X("MOAT_VIEWABILITY","moatViewability");L("GOOGLE_VIEWABILITY","googleViewability");L("VIEWABILITY","viewability");return F}; fVf=function(l,n,O,L){n.CPN=gs(function(){var X;(X=l.getVideoData(1))?X=X.clientPlaybackNonce:(g.d2(Error("Video data is null.")),X=null);return X}); n.AD_MT=gs(function(){if(L!=null)var X=L;else{var F=O;l.j().J("html5_ssap_use_cpn_to_get_time")||(F=void 0);if(l.j().J("enable_h5_shorts_ad_fill_ad_mt_macro")||l.j().J("enable_desktop_discovery_pings_ad_mt_macro")||g.fw(l.j())){var x=l.getPresentingPlayerType(!0),Z;X=((Z=l.getVideoData(x))==null?0:Z.isAd())?tB9(l,x,F):0}else X=tB9(l,2,F)}return Math.round(Math.max(0,X*1E3)).toString()}); n.MT=gs(function(){return Math.round(Math.max(0,l.getCurrentTime(1,!1)*1E3)).toString()}); n.P_H=gs(function(){return l.xP().Dm().height.toString()}); n.P_W=gs(function(){return l.xP().Dm().width.toString()}); n.PV_H=gs(function(){return l.xP().getVideoContentRect().height.toString()}); n.PV_W=gs(function(){return l.xP().getVideoContentRect().width.toString()})}; Ke8=function(l){l.CONN=gs(wa("0"));l.WT=gs(function(){return Date.now().toString()})}; tB9=function(l,n,O){return O!==void 0?l.getCurrentTime(n,!1,O):l.getCurrentTime(n,!1)}; vIk=function(){}; lie=function(l,n,O,L,X){var F,x,Z,J,w,H,A,b,r,U,W,N,q;g.Y(function(y){switch(y.S){case 1:F=!!n.scrubReferrer;x=g.jt(n.baseUrl,CHa(O,F,L));Z={};if(!n.headers){y.D2(2);break}J=l.L();if(!J.S){w=J.getValue();y.D2(3);break}return g.Q(y,J.S,4);case 4:w=y.W;case 3:H=w;A=g.P(n.headers);for(b=A.next();!b.done;b=A.next())switch(r=b.value,r.headerType){case "VISITOR_ID":g.R3("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=g.R3("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.R3("EOM_VISITOR_DATA")&&(Z["X-Goog-EOM-Visitor-Id"]= g.R3("EOM_VISITOR_DATA"));break;case "USER_AUTH":H&&(Z.Authorization="Bearer "+H);break;case "PLUS_PAGE_ID":(U=l.B())&&(Z["X-Goog-PageId"]=U);break;case "AUTH_USER":W=l.S();!H&&W&&(Z["X-Goog-AuthUser"]=W);break;case "DATASYNC_ID":if(N=void 0,(N=l.N())==null?0:N.MQ("enable_datasync_id_header_in_web_vss_pings"))q=l.W(),hP(x)&&g.R3("LOGGED_IN")&&q&&(Z["X-YouTube-DataSync-Id"]=q)}"X-Goog-EOM-Visitor-Id"in Z&&"X-Goog-Visitor-Id"in Z&&delete Z["X-Goog-Visitor-Id"];case 2:g.zu(x,void 0,F,Object.keys(Z).length!== 0?Z:void 0,"",!0,X),g.Tk(y)}})}; n9i=function(l,n,O,L,X){this.L=l;this.B=n;this.S=O;this.W=L;this.N=X}; O_9=function(l,n){this.S=l;this.Rz=n}; Lk=function(l,n,O,L,X,F,x){var Z=Z===void 0?new n9i(function(){var J=l.j(),w=l.getVideoData(1);return g.g7(J,w?g.pN(w):"")},function(){return l.j().pageId},function(){return l.j().Q5},function(){var J; return(J=l.j().datasyncId)!=null?J:""},function(){return l.j().experiments}):Z; this.C=l;this.W=n;this.ev=O;this.tG=L;this.Pj=X;this.Rz=F;this.cG=x;this.L=Z;this.oY=null;this.S=new Map;this.N=new O_9(Z,this.Rz)}; Lu5=function(l,n,O,L,X){var F=QX(l.W.get(),O);F?(O=ev(l,g9g(F),F,void 0,void 0,L),n.hasOwnProperty("baseUrl")?l.L.send(n,O):l.N.send(n,O,{},X)):AV("Trying to ping from an unknown layout",void 0,void 0,{layoutId:O})}; rj5=function(l,n,O,L,X,F){L=L===void 0?[]:L;var x=QX(l.W.get(),n);if(x){var Z=l.ev.get().xt(n,O),J=ev(l,g9g(x),x,X,F);L.forEach(function(w,H){w.baseUrl&&(l.N.send(w.baseUrl,J,Z,w.attributionSrcMode),w.serializedAdPingMetadata&&l.Pj.ou("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,x,new Rdk(w,H),void 0,void 0,x.adLayoutLoggingData))})}else AV("Trying to track from an unknown layout.",void 0,void 0,{layoutId:n, trackingType:O})}; Nr=function(l,n){l.C.sendVideoStatsEngageEvent(n,void 0,2)}; nS=function(l,n){g.JG("adsClientStateChange",n)}; Xba=function(l,n){l.S.has(n.PK())?AV("Trying to register an existing AdErrorInfoSupplier."):l.S.set(n.PK(),n)}; o95=function(l,n){l.S.delete(n.PK())||AV("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; LS=function(l,n,O){typeof O==="string"?l.C.getVideoData(1).Gp(n,O):l.C.getVideoData(1).Sp(n,O)}; g9g=function(l){var n=on(l.clientMetadata,"metadata_type_ad_placement_config");l=on(l.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:n,Ts:l}}; ev=function(l,n,O,L,X,F){var x=O?Fuf(l):{},Z=O?xMq(l,O.layoutId):{},J=h55(l),w,H=X!=null?X:(w=PG(l.tG.get(),2))==null?void 0:w.clientPlaybackNonce;l.C.j().J("enable_player_logging_lr_home_infeed_ads")&&!H&&(H=PG(l.tG.get(),1).clientPlaybackNonce);X=void 0;if(O){var A;if((A=l.cG.S.get(O.layoutId))==null?0:A.kQ)X=O.layoutId}A={};l=Object.assign({},aVf(l.C,X,L),Rjq(n.adPlacementConfig,(O==null?void 0:O.renderingContent)!==void 0),Z,x,J,(A.FINAL=gs(function(){return"1"}),A.AD_CPN=gs(function(){return H|| ""}),A)); (O==null?void 0:O.renderingContent)!==void 0||(l.SLOT_POS=gs(function(){return(n.Ts||0).toString()})); O={};F=Object.assign({},l,F);l=g.P(Object.values(Z_8));for(L=l.next();!L.done;L=l.next())L=L.value,x=F[L],x!=null&&x.toString()!=null&&(O[L]=x.toString());return O}; Fuf=function(l){var n={},O,L=(O=l.oY)==null?void 0:O.Le/1E3;L!=null&&(n.SURVEY_ELAPSED_MS=gs(function(){return Math.round(L*1E3).toString()})); n.SURVEY_LOCAL_TIME_EPOCH_S=gs(function(){return Math.round(Date.now()/1E3).toString()}); return n}; xMq=function(l,n){l=l.S.get(n);if(!l)return{};l=l.BF();if(!l)return{};n={};return n.YT_ERROR_CODE=l.Ie.toString(),n.ERRORCODE=l.g5.toString(),n.ERROR_MSG=l.errorMessage,n}; h55=function(l){var n={},O=l.C.getVideoData(1);n.ASR=gs(function(){var L;return(L=O==null?void 0:O.wp)!=null?L:null}); n.EI=gs(function(){var L;return(L=O==null?void 0:O.eventId)!=null?L:null}); return n}; XH=function(l,n,O){g.V.call(this);this.C=l;this.Ms=n;this.Rz=O;this.listeners=[];this.hR=null;this.Uy=new Map;n=new g.$B(this);g.c(this,n);n.U(l,"videodatachange",this.d_1);n.U(l,"serverstitchedvideochange",this.Aef);this.hF=PG(this)}; PG=function(l,n){var O=l.C.getVideoData(n);return O?l.Hr(O,n||l.C.getPresentingPlayerType(!0)):null}; Ju9=function(l,n,O){var L=l.Hr(n,O);l.hF=L;l.listeners.forEach(function(X){X.yF(L)})}; wb0=function(l){switch(l){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}}; os=function(l,n,O){g.V.call(this);this.C=l;this.tG=n;this.Rz=O;this.listeners=[];this.sF=[];this.S=function(){AV("Called 'doUnlockPreroll' before it's initialized.")}; n=new MV(this);O=new g.$B(this);g.c(this,O);g.c(this,n);n.U(l,"progresssync",this.oh3);n.U(l,"presentingplayerstatechange",this.Zpf);n.U(l,"fullscreentoggled",this.onFullscreenToggled);n.U(l,"onVolumeChange",this.onVolumeChange);n.U(l,"minimized",this.TE);n.U(l,"overlayvisibilitychange",this.Mo);n.U(l,"shortsadswipe",this.ll);n.U(l,"resize",this.x4);O.U(l,g.F4("appad"),this.Gx)}; FH=function(l){CM(l.Rz.get())||l.S()}; H_q=function(l,n){l.sF=l.sF.filter(function(O){return O!==n})}; xf=function(l,n,O){return l.getCurrentTimeSec(n,O)}; Au0=function(l,n){var O;n=(O=l.tG.get().Uy.get(n))!=null?O:null;if(n===null)return AV("Expected ad video start time on playback timeline"),0;l=l.C.getCurrentTime(2,!0);return l<n?0:l-n}; lF=function(l,n){return l.C.getPlayerStateObject(n)}; b_8=function(l){var n=l.C.xP().Dm();l=l.C.FC(!0,!0);return n.height-(l.height+l.top)}; ru7=function(l){l.C.cueVideoByPlayerVars({videoId:"empty_video"},2)}; Byg=function(l,n){var O=l.C.j();g.jV(O)||O.controlsType!=="3"||l.C.xP().Me(n)}; hQ=function(l,n){g.FW(l.C.getRootNode(),n)}; Zp=function(l,n){g.ZW(l.C.getRootNode(),n)}; UMi=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);L=ii(function(){return new qd(l)}); g.c(this,L);var w=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,w);var H=ii(function(){return new gB}); g.c(this,H);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var A=ii(function(){return new Ak(F.Rz)}); g.c(this,A);var b=ii(function(){return new U1(x,w,Z,F.Rz,A,null,null,null,null)}); g.c(this,b);this.tG=ii(function(){return new XH(n,H,F.Rz)}); g.c(this,this.tG);var r=pM({tG:this.tG,Rz:this.Rz,m1:A}),U=r.context,W=r.cG;this.Pj=r.Pj;this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,W)}); g.c(this,this.qQ);this.g8=new Dj(L,b,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var N=new s5(n,this.g8,this.Bm,this.tG);this.Ah=ii(function(){return N}); this.Ee=N;this.lQ=new kF(L,w,this.Fg,this.Ah,U);g.c(this,this.lQ);this.EK=new Vq(this.Rz,L,w,b,this.tG,this.lQ,O);g.c(this,this.EK);this.PG={hK:new Map,tE:new Map,o4:new Map,jb:new Map,Ws:new Map};this.listeners=[];this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:null,SI:{Rm:function(){}}, pZ:J.get(),Ds:this.tG.get()}}; JQ=function(l,n){g.V.call(this);this.xG=n;this.xG.get().addListener(this)}; ws=function(l){this.S=l}; uka=function(l,n){if(!l)return{MA:[],adSlots:[],sH:!0,ssdaiAdsConfig:void 0};l.trackingParams&&M8(l.trackingParams);if(l.adThrottled)return{MA:[],adSlots:[],sH:!0,ssdaiAdsConfig:void 0};var O,L=(O=l.adSlots)!=null?O:[],X;O=(X=l.playerAds)!=null?X:[];if(!(O&&O.length||L.length))return{MA:[],adSlots:L,sH:!1,ssdaiAdsConfig:void 0};X=O.map(function(x){return x.adPlacementRenderer}).filter(function(x){return!(!x||!x.renderer)}); if(!X.length&&!L.length)return{MA:[],adSlots:L,sH:!1,ssdaiAdsConfig:void 0};if(n.end>0){var F=n.end.toString();X.forEach(function(x){(x=x.config&&x.config.adPlacementConfig)&&x.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&x.adTimeOffset&&x.adTimeOffset.offsetEndMilliseconds==="-1"&&x.adTimeOffset.offsetEndMilliseconds!==F&&(x.adTimeOffset.offsetEndMilliseconds=F)}); L.map(function(x){return g.z(x,Bi)}).forEach(function(x){var Z; (x=x==null?void 0:(Z=x.slotEntryTrigger)==null?void 0:Z.mediaTimeRangeTrigger)&&x.offsetEndMilliseconds==="-1"&&(x.offsetEndMilliseconds=F)})}return{MA:X, adSlots:L,sH:!1,ssdaiAdsConfig:l.ssdaiAdsConfig}}; Hg=function(l){g.V.call(this);this.C=l;this.listeners=[];this.S=new MV(this);g.c(this,this.S);this.S.U(this.C,"aduxclicked",this.onAdUxClicked);this.S.U(this.C,"aduxmouseover",this.jq);this.S.U(this.C,"aduxmouseout",this.AR);this.S.U(this.C,"muteadaccepted",this.Pv1)}; P7i=function(l,n,O){n=g.M9(n,function(L){return new $39(L,O,L.id)}); l.C.lF("onAdUxUpdate",n)}; AQ=function(l,n){l=g.P(l.listeners);for(var O=l.next();!O.done;O=l.next())n(O.value)}; bF=function(l,n){this.W=l;this.N=n===void 0?!1:n;this.S={}}; TJk=function(l,n){var O=l.startSecs+l.HM;O=O<=0?null:O;if(O===null)return null;switch(l.event){case "start":case "continue":case "stop":break;case "predictStart":if(n)break;return null;default:return null}n=Math.max(l.startSecs,0);return{uj:new qo(n,O),Xmf:new VT(n,O-n,l.context,l.identifier,l.event,l.S)}}; Wue=function(){this.S=[]}; Aev=function(l,n,O){var L=g.xd(l.S,n);if(L>=0)return n;n=-L-1;return n>=l.S.length||l.S[n]>O?null:l.S[n]}; rs=function(l,n,O){g.V.call(this);this.C=l;this.Rz=n;this.qQ=O;this.listeners=[];this.L=!1;this.d$=[];this.S=null;this.B=new bF(this,IVi(n.get()));this.N=new Wue;this.W=null}; E9k=function(l,n){l.d$.push(n);for(var O=!1,L=g.P(l.listeners),X=L.next();!X.done;X=L.next())O=X.value.Jf(n)||O;l.L=O;B6a(l.Rz.get())&&LS(l.qQ.get(),"onci","cpi."+n.identifier+";cpe."+n.event+";cps."+n.startSecs+";cbi."+O)}; DM9=function(l,n){nS(l.qQ.get(),{cuepointTrigger:{event:NJg(n.event),cuepointId:n.identifier,totalCueDurationMs:n.HM*1E3,playheadTimeMs:n.S,cueStartTimeMs:n.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:l.C.getVideoData(1).clientPlaybackNonce}})}; NJg=function(l){switch(l){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 FL(l,"Unexpected cuepoint event")}}; UR=function(l){this.C=l}; qBg=function(l,n){l.C.cueVideoByPlayerVars(n,2)}; uF=function(l){this.C=l}; Pg=function(l){this.C=l}; kY5=function(l){switch(l){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:FL(l,"unknown transitionReason")}}; yug=function(l){this.C=l}; My9=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);var w=ii(function(){return new qd(l)}); g.c(this,w);var H=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,H);var A=ii(function(){return new gB}); g.c(this,A);this.Qu=ii(function(){return new Hg(n)}); g.c(this,this.Qu);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.uK=ii(function(){return new UR(n)}); g.c(this,this.uK);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var b=ii(function(){return new ws(L)}); g.c(this,b);var r=ii(function(){return new Ak(F.Rz)}); g.c(this,r);this.nN=ii(function(){return new uF(n)}); g.c(this,this.nN);this.xG=ii(function(){return new KL}); g.c(this,this.xG);this.tG=ii(function(){return new XH(n,A,F.Rz)}); g.c(this,this.tG);var U=pM({tG:this.tG,Rz:this.Rz,m1:r}),W=U.context,N=U.cG;this.Pj=U.Pj;this.uf=ii(function(){return new rs(n,F.Rz,F.qQ)}); g.c(this,this.uf);this.Cp=ii(function(){return new Pg(n)}); g.c(this,this.Cp);this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);U=ii(function(){return new U1(x,H,Z,F.Rz,r,"SLOT_TYPE_ABOVE_FEED",F.Bm,F.HR,F.K1)}); g.c(this,U);this.bf=ii(function(){return new an(F.Rz)}); this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,N)}); g.c(this,this.qQ);this.M0=new Nd(E1,TL,function(y,e,d,B){return vi(Z.get(),y,e,d,B)},w,H,Z,r,this.Rz,this.tG); g.c(this,this.M0);this.g8=new Dj(w,U,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var q=new s5(n,this.g8,this.Bm,this.tG,this.uf);this.Ah=ii(function(){return q}); this.Ee=q;this.HR=new TJ(w,H,this.Ah,this.uf,this.Bm,this.Rz,this.qQ,this.Cp);g.c(this,this.HR);this.lQ=new kF(w,H,this.Fg,this.Ah,W);g.c(this,this.lQ);this.EK=new Vq(this.Rz,w,H,U,this.tG,this.lQ,O);g.c(this,this.EK);this.rb=ii(function(){return new AJ(b,Z,r,F.Rz,F.qQ,F.Bm,F.Cp)}); g.c(this,this.rb);this.Hl=ii(function(){return new bN}); g.c(this,this.Hl);this.C2=new mU(l,this.Qu,this.Rz);g.c(this,this.C2);this.cj=new I7(l);g.c(this,this.cj);this.Nd=new df(l);g.c(this,this.Nd);this.n2=new VX(l,this.Ah,W);g.c(this,this.n2);this.xY=new BP(l,this.Fg,this.Bm,this.tG,W);g.c(this,this.xY);this.NG=new cP(l,this.tG);g.c(this,this.NG);this.K1=new S7(l,this.uf,this.Bm,this.qQ,this.Ah);g.c(this,this.K1);this.z7=new iZ(l);g.c(this,this.z7);this.PS=new KW(l);g.c(this,this.PS);this.nB=new zJ(l);g.c(this,this.nB);this.Bh=new fW(l);g.c(this,this.Bh); this.PS=new KW(l);g.c(this,this.PS);this.C1=ii(function(){return new e7}); g.c(this,this.C1);this.fB=ii(function(){return new YF(F.Bm)}); g.c(this,this.fB);this.J9=ii(function(){return new d69(F.Qu,F.qQ,l,J,F.ev)}); g.c(this,this.J9);this.Q9=ii(function(){return new lj(F.EK,w,x)}); g.c(this,this.Q9);this.zM=ii(function(){return new g0(F.Rz,F.qQ,F.z7,F.ev)}); g.c(this,this.zM);this.KB=ii(function(){return new J$(l,F.PS,F.z7,F.tG,F.Cp,F.Bm,F.qQ,A,F.uf,F.ev,F.bf,F.uK,F.Fg,F.JC,F.fp,F.E_,F.nN,F.Rz,J,W,N)}); g.c(this,this.KB);this.WW=ii(function(){return new Cm7(F.Bm,F.qQ,F.E_,F.Rz,F.ev,F.tG)}); g.c(this,this.WW);this.fP=ii(function(){return new V$5(F.Qu,F.Bm,F.qQ,J,F.ev,F.Nd,F.Bh,F.E_,F.Rz,O)}); g.c(this,this.fP);this.NU=ii(function(){return new $6a(F.Qu,F.qQ,J)}); g.c(this,this.NU);this.Xf=new JQ(l,this.xG,x);g.c(this,this.Xf);this.PG={hK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.EK],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.HR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.M0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lQ]]),tE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_ABOVE_FEED",this.Hl],["SLOT_TYPE_FORECASTING",this.Hl], ["SLOT_TYPE_IN_PLAYER",this.Hl],["SLOT_TYPE_PLAYER_BYTES",this.Hl],["SLOT_TYPE_PLAYER_UNDERLAY",this.Hl],["SLOT_TYPE_PLAYBACK_TRACKING",this.Hl],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Hl]]),o4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.C2],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.C2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.cj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.cj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.cj],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.cj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Nd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n2],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.xY],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.xY],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.xY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.xY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.NG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.NG],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.z7],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.n2],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Bh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.PS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.K1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.K1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.K1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.K1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.K1]]),jb:new Map([["SLOT_TYPE_ABOVE_FEED",this.C1], ["SLOT_TYPE_AD_BREAK_REQUEST",this.C1],["SLOT_TYPE_FORECASTING",this.C1],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES",this.fB],["SLOT_TYPE_PLAYER_UNDERLAY",this.C1],["SLOT_TYPE_PLAYBACK_TRACKING",this.C1],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.C1]]),Ws:new Map([["SLOT_TYPE_ABOVE_FEED",this.J9],["SLOT_TYPE_AD_BREAK_REQUEST",this.Q9],["SLOT_TYPE_FORECASTING",this.zM],["SLOT_TYPE_PLAYER_BYTES",this.KB],["SLOT_TYPE_PLAYBACK_TRACKING",this.WW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.WW],["SLOT_TYPE_IN_PLAYER",this.fP],["SLOT_TYPE_PLAYER_UNDERLAY",this.NU]])};this.listeners=[J.get()];this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:this.xG.get(),SI:this.C2,pZ:J.get(),Ds:this.tG.get()}}; Qw7=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);var w=ii(function(){return new qd(l)}); g.c(this,w);var H=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,H);var A=ii(function(){return new gB}); g.c(this,A);this.Qu=ii(function(){return new Hg(n)}); g.c(this,this.Qu);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.uK=ii(function(){return new UR(n)}); g.c(this,this.uK);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var b=ii(function(){return new ws(L)}); g.c(this,b);var r=ii(function(){return new Ak(F.Rz)}); g.c(this,r);var U=ii(function(){return new U1(x,H,Z,F.Rz,r,null,null,F.HR,F.K1)}); g.c(this,U);this.nN=ii(function(){return new uF(n)}); g.c(this,this.nN);this.xG=ii(function(){return new KL}); g.c(this,this.xG);this.tG=ii(function(){return new XH(n,A,F.Rz)}); g.c(this,this.tG);var W=pM({tG:this.tG,Rz:this.Rz,m1:r}),N=W.context,q=W.cG;this.Pj=W.Pj;this.uf=ii(function(){return new rs(n,F.Rz,F.qQ)}); this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,q)}); g.c(this,this.qQ);this.bf=ii(function(){return new an(F.Rz)}); g.c(this,this.bf);this.M0=new Nd(E1,TL,function(e,d,B,R){return vi(Z.get(),e,d,B,R)},w,H,Z,r,this.Rz,this.tG); g.c(this,this.M0);this.g8=new Dj(w,U,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var y=new s5(n,this.g8,this.Bm,this.tG,this.uf);this.Ah=ii(function(){return y}); this.Ee=y;this.HR=new TJ(w,H,this.Ah,this.uf,this.Bm,this.Rz,this.qQ);g.c(this,this.HR);this.lQ=new kF(w,H,this.Fg,this.Ah,N);g.c(this,this.lQ);this.EK=new Vq(this.Rz,w,H,U,this.tG,this.lQ,O);g.c(this,this.EK);this.rb=ii(function(){return new AJ(b,Z,r,F.Rz,F.qQ,F.Bm)}); g.c(this,this.rb);this.Hl=ii(function(){return new bN}); g.c(this,this.Hl);this.C2=new mU(l,this.Qu,this.Rz);g.c(this,this.C2);this.cj=new I7(l);g.c(this,this.cj);this.Nd=new df(l);g.c(this,this.Nd);this.n2=new VX(l,this.Ah,N);g.c(this,this.n2);this.xY=new BP(l,this.Fg,this.Bm,this.tG,N);g.c(this,this.xY);this.z7=new iZ(l);g.c(this,this.z7);this.nB=new zJ(l);g.c(this,this.nB);this.Bh=new fW(l);g.c(this,this.Bh);this.Cp=ii(function(){return new Pg(n)}); g.c(this,this.Cp);this.PS=new KW(l);g.c(this,this.PS);this.K1=new S7(l,this.uf,this.Bm,this.qQ,this.Ah);g.c(this,this.K1);this.C1=ii(function(){return new e7}); g.c(this,this.C1);this.fB=ii(function(){return new YF(F.Bm)}); g.c(this,this.fB);this.Q9=ii(function(){return new lj(F.EK,w,x)}); g.c(this,this.Q9);this.zM=ii(function(){return new g0(F.Rz,F.qQ,F.z7,F.ev)}); g.c(this,this.zM);this.fP=ii(function(){return new B1i(F.Qu,F.Bm,F.qQ,J,F.ev,F.Nd,F.Bh,F.E_,F.Rz,O)}); g.c(this,this.fP);this.KB=ii(function(){return new wR(l,F.PS,F.z7,F.qQ,F.ev,F.bf,F.uK,F.tG,F.Bm,F.Fg,F.JC,F.fp,F.E_,F.nN,F.Rz,F.Cp,N,q)}); g.c(this,this.KB);this.Xf=new JQ(l,this.xG,x);g.c(this,this.Xf);this.PG={hK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.EK],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.HR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.M0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lQ]]),tE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.Hl],["SLOT_TYPE_IN_PLAYER",this.Hl], ["SLOT_TYPE_PLAYER_BYTES",this.Hl]]),o4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.C2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.cj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.cj], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.cj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Nd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.z7],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n2],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Bh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.PS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.K1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.K1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.K1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.K1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.K1]]),jb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C1],["SLOT_TYPE_FORECASTING",this.C1],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES",this.fB]]), Ws:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Q9],["SLOT_TYPE_FORECASTING",this.zM],["SLOT_TYPE_IN_PLAYER",this.fP],["SLOT_TYPE_PLAYER_BYTES",this.KB]])};this.listeners=[J.get()];this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:this.xG.get(),SI:this.C2,pZ:J.get(),Ds:this.tG.get()}}; e58=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);var w=ii(function(){return new qd(l)}); g.c(this,w);var H=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,H);var A=ii(function(){return new gB}); g.c(this,A);this.Qu=ii(function(){return new Hg(n)}); g.c(this,this.Qu);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.uK=ii(function(){return new UR(n)}); g.c(this,this.uK);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var b=ii(function(){return new ws(L)}); g.c(this,b);var r=ii(function(){return new Ak(F.Rz)}); g.c(this,r);var U=ii(function(){return new U1(x,H,Z,F.Rz,r,null,null,null,null)}); g.c(this,U);this.nN=ii(function(){return new uF(n)}); g.c(this,this.nN);this.tG=ii(function(){return new XH(n,A,F.Rz)}); g.c(this,this.tG);var W=pM({tG:this.tG,Rz:this.Rz,m1:r}),N=W.context,q=W.cG;this.Pj=W.Pj;this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,q)}); g.c(this,this.qQ);this.bf=ii(function(){return new an(F.Rz)}); g.c(this,this.bf);this.M0=new Nd(E1,TL,function(e,d,B,R){return vi(Z.get(),e,d,B,R)},w,H,Z,r,this.Rz,this.tG); g.c(this,this.M0);this.g8=new Dj(w,U,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var y=new s5(n,this.g8,this.Bm,this.tG);this.Ah=ii(function(){return y}); this.Ee=y;this.lQ=new kF(w,H,this.Fg,this.Ah,N);g.c(this,this.lQ);this.EK=new Vq(this.Rz,w,H,U,this.tG,this.lQ,O);g.c(this,this.EK);this.rb=ii(function(){return new AJ(b,Z,r,F.Rz,F.qQ,F.Bm)}); g.c(this,this.rb);this.Hl=ii(function(){return new bN}); g.c(this,this.Hl);this.C2=new mU(l,this.Qu,this.Rz);g.c(this,this.C2);this.cj=new I7(l);g.c(this,this.cj);this.n2=new VX(l,this.Ah,N);g.c(this,this.n2);this.xY=new BP(l,this.Fg,this.Bm,this.tG,N);g.c(this,this.xY);this.z7=new iZ(l);g.c(this,this.z7);this.nB=new zJ(l);g.c(this,this.nB);this.Cp=ii(function(){return new Pg(n)}); g.c(this,this.Cp);this.PS=new KW(l);g.c(this,this.PS);this.C1=ii(function(){return new e7}); g.c(this,this.C1);this.fB=ii(function(){return new YF(F.Bm)}); g.c(this,this.fB);this.Q9=ii(function(){return new lj(F.EK,w,x)}); g.c(this,this.Q9);this.zM=ii(function(){return new g0(F.Rz,F.qQ,F.z7,F.ev)}); g.c(this,this.zM);this.GQ=ii(function(){return new R3k(F.Qu,F.Bm,F.qQ,J,O,F.Rz)}); g.c(this,this.GQ);this.KB=ii(function(){return new wR(l,F.PS,F.z7,F.qQ,F.ev,F.bf,F.uK,F.tG,F.Bm,F.Fg,F.JC,F.fp,F.E_,F.nN,F.Rz,F.Cp,N,q)}); g.c(this,this.KB);this.PG={hK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.EK],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.M0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lQ]]),tE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.Hl],["SLOT_TYPE_IN_PLAYER",this.Hl],["SLOT_TYPE_PLAYER_BYTES",this.Hl]]),o4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.C2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.cj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.cj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.cj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.xY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.z7],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n2],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.PS]]),jb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C1],["SLOT_TYPE_ABOVE_FEED",this.C1],["SLOT_TYPE_FORECASTING",this.C1],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES",this.fB]]),Ws:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Q9],["SLOT_TYPE_FORECASTING",this.zM],["SLOT_TYPE_IN_PLAYER", this.GQ],["SLOT_TYPE_PLAYER_BYTES",this.KB]])};this.listeners=[J.get()];this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:null,SI:this.C2,pZ:J.get(),Ds:this.tG.get()}}; YB7=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);var w=ii(function(){return new qd(l)}); g.c(this,w);var H=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,H);var A=ii(function(){return new gB}); g.c(this,A);this.V8=ii(function(){return new yug(n)}); g.c(this,this.V8);this.Qu=ii(function(){return new Hg(n)}); g.c(this,this.Qu);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.uK=ii(function(){return new UR(n)}); g.c(this,this.uK);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var b=ii(function(){return new ws(L)}); g.c(this,b);var r=ii(function(){return new Ak(F.Rz)}); g.c(this,r);var U=ii(function(){return new U1(x,H,Z,F.Rz,r,null,null,null,null)}); g.c(this,U);this.nN=ii(function(){return new uF(n)}); g.c(this,this.nN);this.tG=ii(function(){return new XH(n,A,F.Rz)}); g.c(this,this.tG);var W=pM({tG:this.tG,Rz:this.Rz,m1:r}),N=W.context,q=W.cG;this.Pj=W.Pj;this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,q)}); g.c(this,this.qQ);this.bf=ii(function(){return new an(F.Rz)}); g.c(this,this.bf);this.M0=new Nd(D_i,TL,function(e,d,B,R){return sz0(Z.get(),e,d,B,R)},w,H,Z,r,this.Rz,this.tG); g.c(this,this.M0);this.g8=new Dj(w,U,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var y=new s5(n,this.g8,this.Bm,this.tG);this.Ah=ii(function(){return y}); this.Ee=y;this.lQ=new kF(w,H,this.Fg,this.Ah,N);g.c(this,this.lQ);this.EK=new Vq(this.Rz,w,H,U,this.tG,this.lQ,O);g.c(this,this.EK);this.rb=ii(function(){return new AJ(b,Z,r,F.Rz,F.qQ,F.Bm)}); g.c(this,this.rb);this.Hl=ii(function(){return new bN}); g.c(this,this.Hl);this.C2=new mU(l,this.Qu,this.Rz);g.c(this,this.C2);this.cj=new I7(l);g.c(this,this.cj);this.n2=new VX(l,this.Ah,N);g.c(this,this.n2);this.xY=new BP(l,this.Fg,this.Bm,this.tG,N);g.c(this,this.xY);this.z7=new iZ(l);g.c(this,this.z7);this.nB=new zJ(l);g.c(this,this.nB);this.Cp=ii(function(){return new Pg(n)}); g.c(this,this.Cp);this.PS=new KW(l);g.c(this,this.PS);this.C1=ii(function(){return new e7}); g.c(this,this.C1);this.fB=ii(function(){return new YF(F.Bm)}); g.c(this,this.fB);this.Q9=ii(function(){return new lj(F.EK,w,x)}); g.c(this,this.Q9);this.zM=ii(function(){return new g0(F.Rz,F.qQ,F.z7,F.ev)}); g.c(this,this.zM);this.KB=ii(function(){return new wR(l,F.PS,F.z7,F.qQ,F.ev,F.bf,F.uK,F.tG,F.Bm,F.Fg,F.JC,F.fp,F.E_,F.nN,F.Rz,F.Cp,N,q)}); g.c(this,this.KB);this.Tr=ii(function(){return new ip9(F.Qu,F.Bm,F.qQ,J,F.V8,O,F.tG)}); g.c(this,this.Tr);this.PG={hK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.EK],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.M0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lQ]]),tE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.Hl],["SLOT_TYPE_IN_PLAYER",this.Hl],["SLOT_TYPE_PLAYER_BYTES",this.Hl]]),o4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.C2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.cj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.cj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.cj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.xY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.z7],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n2],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.PS]]),jb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C1],["SLOT_TYPE_FORECASTING",this.C1],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES",this.fB]]),Ws:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Q9],["SLOT_TYPE_FORECASTING",this.zM],["SLOT_TYPE_IN_PLAYER",this.Tr],["SLOT_TYPE_PLAYER_BYTES", this.KB]])};this.listeners=[J.get()];this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:null,SI:this.C2,pZ:J.get(),Ds:this.tG.get()}}; jw5=function(l,n,O,L,X){g.V.call(this);var F=this,x=ii(function(){return new a7(F.Rz)}); g.c(this,x);var Z=ii(function(){return new CW(x,F.Rz)}); g.c(this,Z);var J=ii(function(){return new yX}); g.c(this,J);var w=ii(function(){return new qd(l)}); g.c(this,w);var H=ii(function(){return new ti(x,Z,F.Rz)}); g.c(this,H);var A=ii(function(){return new gB}); g.c(this,A);this.V8=ii(function(){return new yug(n)}); g.c(this,this.V8);this.Qu=ii(function(){return new Hg(n)}); g.c(this,this.Qu);this.E_=ii(function(){return new SX(X)}); g.c(this,this.E_);this.JC=ii(function(){return new fM(n)}); g.c(this,this.JC);this.Fg=ii(function(){return new KM(n)}); g.c(this,this.Fg);this.uK=ii(function(){return new UR(n)}); g.c(this,this.uK);this.fp=ii(function(){return new aP(n)}); g.c(this,this.fp);this.Rz=ii(function(){return new RP(n)}); g.c(this,this.Rz);var b=ii(function(){return new ws(L)}); g.c(this,b);var r=ii(function(){return new Ak(F.Rz)}); g.c(this,r);this.nN=ii(function(){return new uF(n)}); g.c(this,this.nN);this.tG=ii(function(){return new XH(n,A,F.Rz)}); g.c(this,this.tG);var U=pM({tG:this.tG,Rz:this.Rz,m1:r}),W=U.context,N=U.cG;this.Pj=U.Pj;this.uf=ii(function(){return new rs(n,F.Rz,F.qQ)}); g.c(this,this.uf);this.Cp=ii(function(){return new Pg(n)}); g.c(this,this.Cp);this.Bm=ii(function(){return new os(n,F.tG,F.Rz)}); g.c(this,this.Bm);U=ii(function(){return new U1(x,H,Z,F.Rz,r,null,F.Bm,F.HR,F.K1,3)}); g.c(this,U);this.bf=ii(function(){return new an(F.Rz)}); this.ev=ii(function(){return new vB(F.Bm,n,F.Rz)}); g.c(this,this.ev);this.qQ=ii(function(){return new Lk(n,J,F.ev,F.tG,F.Pj,F.Rz,N)}); g.c(this,this.qQ);this.g8=new Dj(w,U,O,this.Rz,l,this.tG,this.Bm,this.JC);g.c(this,this.g8);var q=new s5(n,this.g8,this.Bm,this.tG,this.uf);this.Ah=ii(function(){return q}); this.Ee=q;this.M0=new Nd(qP7,TL,function(y,e,d,B){return sz0(Z.get(),y,e,d,B)},w,H,Z,r,this.Rz,this.tG); g.c(this,this.M0);this.HR=new TJ(w,H,this.Ah,this.uf,this.Bm,this.Rz,this.qQ,this.Cp);g.c(this,this.HR);this.lQ=new kF(w,H,this.Fg,this.Ah,W);g.c(this,this.lQ);this.EK=new Vq(this.Rz,w,H,U,this.tG,this.lQ,O);g.c(this,this.EK);this.rb=ii(function(){return new AJ(b,Z,r,F.Rz,F.qQ,F.Bm,F.Cp)}); g.c(this,this.rb);this.Hl=ii(function(){return new bN}); g.c(this,this.Hl);this.C2=new mU(l,this.Qu,this.Rz);g.c(this,this.C2);this.cj=new I7(l);g.c(this,this.cj);this.n2=new VX(l,this.Ah,W);g.c(this,this.n2);this.xY=new BP(l,this.Fg,this.Bm,this.tG,W);g.c(this,this.xY);this.NG=new cP(l,this.tG);g.c(this,this.NG);this.K1=new S7(l,this.uf,this.Bm,this.qQ,this.Ah);g.c(this,this.K1);this.z7=new iZ(l);g.c(this,this.z7);this.nB=new zJ(l);g.c(this,this.nB);this.PS=new KW(l);g.c(this,this.PS);this.C1=ii(function(){return new e7}); g.c(this,this.C1);this.fB=ii(function(){return new YF(F.Bm)}); g.c(this,this.fB);this.Q9=ii(function(){return new lj(F.EK,w,x)}); g.c(this,this.Q9);this.zM=ii(function(){return new g0(F.Rz,F.qQ,F.z7,F.ev)}); g.c(this,this.zM);this.KB=ii(function(){return new J$(l,F.PS,F.z7,F.tG,F.Cp,F.Bm,F.qQ,A,F.uf,F.ev,F.bf,F.uK,F.Fg,F.JC,F.fp,F.E_,F.nN,F.Rz,J,W,N)}); g.c(this,this.KB);this.fP=ii(function(){return new zdq(F.Qu,F.Bm,F.qQ,J,F.V8,O,F.Rz,F.tG)}); g.c(this,this.fP);this.PG={hK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.EK],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.HR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.M0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lQ]]),tE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.Hl],["SLOT_TYPE_IN_PLAYER",this.Hl],["SLOT_TYPE_PLAYER_BYTES",this.Hl]]),o4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.C2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.cj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.cj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.cj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.cj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.cj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.xY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.NG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.NG],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.z7],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n2],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.PS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.K1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.K1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.K1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.K1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.K1]]),jb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C1],["SLOT_TYPE_FORECASTING",this.C1],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES",this.fB]]),Ws:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Q9],["SLOT_TYPE_FORECASTING",this.zM],["SLOT_TYPE_PLAYER_BYTES",this.KB],["SLOT_TYPE_IN_PLAYER",this.fP]])};this.listeners=[J.get()]; this.Eo={EK:this.EK,zn:this.Rz.get(),Iz:this.E_.get(),DD:this.Bm.get(),g8:this.g8,PD:x.get(),Kj:null,SI:this.C2,pZ:J.get(),Ds:this.tG.get()}}; mMg=function(l,n,O,L){function X(){return F.W} g.V.call(this);var F=this;l.j().experiments.MQ("html5_dispose_of_manager_before_dependency")?(this.S=GY5(X,l,n,O,L),this.W=(new zg(this.S)).N(),g.c(this,this.W),g.c(this,this.S)):(this.S=GY5(X,l,n,O,L),g.c(this,this.S),this.W=(new zg(this.S)).N(),g.c(this,this.W))}; Wg=function(l){return l.S.Eo}; GY5=function(l,n,O,L,X){try{var F=n.j();if(g.a5(F))var x=new My9(l,n,O,L,X);else if(g.Cw(F))x=new Qw7(l,n,O,L,X);else if(cI(F))x=new e58(l,n,O,L,X);else if(g.Bt(F))x=new YB7(l,n,O,L,X);else if(g.mX(F))x=new jw5(l,n,O,L,X);else throw new TypeError("Unknown web interface");return x}catch(Z){return x=n.j(),AV("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:x.S.cplatform,interface:x.S.c,eVp:x.S.cver,RVJ:x.S.ctheme,hVz:x.S.cplayer,MC3:x.playerStyle}),new UMi(l,n,O,L,X)}}; Iik=function(l){pI.call(this,l)}; dMv=function(l,n,O,L,X){lr.call(this,l,{D:"div",X:"ytp-ad-timed-pie-countdown-container",K:[{D:"svg",X:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},K:[{D:"circle",X:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{D:"circle",X:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{D:"circle",X:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",n,O,L,X);this.L=this.mJ("ytp-ad-timed-pie-countdown-container");this.N=this.mJ("ytp-ad-timed-pie-countdown-inner"); this.V=this.mJ("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; $Mk=function(l,n,O,L,X,F){bm.call(this,l,{D:"div",X:"ytp-ad-action-interstitial",Z:{tabindex:"0"},K:[{D:"div",X:"ytp-ad-action-interstitial-background-container"},{D:"div",X:"ytp-ad-action-interstitial-slot",K:[{D:"div",X:"ytp-ad-action-interstitial-instream-info"},{D:"div",X:"ytp-ad-action-interstitial-card",K:[{D:"div",X:"ytp-ad-action-interstitial-image-container"},{D:"div",X:"ytp-ad-action-interstitial-headline-container"},{D:"div",X:"ytp-ad-action-interstitial-description-container"},{D:"div", X:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",n,O,L);this.rd=X;this.uL=F;this.navigationEndpoint=this.S=this.skipButton=this.W=this.actionButton=null;this.wq=this.mJ("ytp-ad-action-interstitial-instream-info");this.Hm=this.mJ("ytp-ad-action-interstitial-image-container");this.Y=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-action-interstitial-image");g.c(this,this.Y);this.Y.V5(this.Hm);this.Cf=this.mJ("ytp-ad-action-interstitial-headline-container"); this.V=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-action-interstitial-headline");g.c(this,this.V);this.V.V5(this.Cf);this.NQ=this.mJ("ytp-ad-action-interstitial-description-container");this.N=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-action-interstitial-description");g.c(this,this.N);this.N.V5(this.NQ);this.Of=this.mJ("ytp-ad-action-interstitial-background-container");this.Pm=new cr(this.api,this.layoutId,this.interactionLoggingClientData, this.Iz,"ytp-ad-action-interstitial-background",!0);g.c(this,this.Pm);this.Pm.V5(this.Of);this.nf=this.mJ("ytp-ad-action-interstitial-action-button-container");this.slot=this.mJ("ytp-ad-action-interstitial-slot");this.Yu=this.mJ("ytp-ad-action-interstitial-card");this.L=new MV;g.c(this,this.L);this.hide()}; Vyq=function(l){var n=g.aC("html5-video-player");n&&g.wP(n,"ytp-ad-display-override",l)}; z5i=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-overlay-slot",K:[{D:"div",X:"ytp-ad-overlay-container"}]},"invideo-overlay",n,O,L);this.Y=[];this.Of=this.Cf=this.L=this.nf=this.wq=null;this.Pm=!1;this.V=null;this.NQ=0;l=this.mJ("ytp-ad-overlay-container");this.Hm=new hV(l,45E3,6E3,.3,.4);g.c(this,this.Hm);this.N=BJv(this);g.c(this,this.N);this.N.V5(l);this.W=cu9(this);g.c(this,this.W);this.W.V5(l);this.S=i_k(this);g.c(this,this.S);this.S.V5(l);this.hide()}; BJv=function(l){var n=new g.Aj({D:"div",X:"ytp-ad-text-overlay",K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[jf(SBi)]}]},{D:"div",X:"ytp-ad-overlay-title",hG:"{{title}}"},{D:"div",X:"ytp-ad-overlay-desc",hG:"{{description}}"},{D:"div",gq:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],hG:"{{displayUrl}}"}]});l.U(n.mJ("ytp-ad-overlay-title"),"click",function(O){ER(l,n.element,O)}); l.U(n.mJ("ytp-ad-overlay-link"),"click",function(O){ER(l,n.element,O)}); l.U(n.mJ("ytp-ad-overlay-close-container"),"click",l.zD);n.hide();return n}; cu9=function(l){var n=new g.Aj({D:"div",gq:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[jf(SBi)]}]},{D:"div",X:"ytp-ad-overlay-text-image",K:[{D:"img",Z:{src:"{{imageUrl}}"}}]},{D:"div",X:"ytp-ad-overlay-title",hG:"{{title}}"},{D:"div",X:"ytp-ad-overlay-desc",hG:"{{description}}"},{D:"div",gq:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], hG:"{{displayUrl}}"}]});l.U(n.mJ("ytp-ad-overlay-title"),"click",function(O){ER(l,n.element,O)}); l.U(n.mJ("ytp-ad-overlay-link"),"click",function(O){ER(l,n.element,O)}); l.U(n.mJ("ytp-ad-overlay-close-container"),"click",l.zD);l.U(n.mJ("ytp-ad-overlay-text-image"),"click",l.YK5);n.hide();return n}; i_k=function(l){var n=new g.Aj({D:"div",X:"ytp-ad-image-overlay",K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[jf(SBi)]}]},{D:"div",X:"ytp-ad-overlay-image",K:[{D:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});l.U(n.mJ("ytp-ad-overlay-image"),"click",function(O){ER(l,n.element,O)}); l.U(n.mJ("ytp-ad-overlay-close-container"),"click",l.zD);n.hide();return n}; pbf=function(l,n){if(n){var O=g.z(n,mK)||null;O==null?g.Ir(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(n=g.aC("video-ads ytp-ad-module")||null,n==null?g.Ir(Error("Could not locate the root ads container element to attach the ad info dialog.")):(l.Cf=new g.Aj({D:"div",X:"ytp-ad-overlay-ad-info-dialog-container"}),g.c(l,l.Cf),l.Cf.V5(n),n=new CI(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,l.Cf.element,!1),g.c(l,n),n.init(F2("ad-info-hover-text-button"),O,l.macros), l.V?(n.V5(l.V,0),n.subscribe("f",l.yA2,l),n.subscribe("e",l.gx,l),l.U(l.V,"click",l.Fyi),l.U(g.aC("ytp-ad-button",n.element),"click",function(){var L;if(g.z((L=g.z(O.button,g.dm))==null?void 0:L.serviceEndpoint,KI5))l.Pm=l.api.getPlayerState(1)===2,l.api.pauseVideo();else l.api.onAdUxClicked("ad-info-hover-text-button",l.layoutId)}),l.Of=n):g.Ir(Error("Ad info button container within overlay ad was not present."))))}else g.d2(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; fi9=function(l,n){if(sw7(l,NN)||l.api.isMinimized())return!1;var O=rW(n.title),L=rW(n.description);if(g.DL(O)||g.DL(L))return!1;l.createServerVe(l.N.element,n.trackingParams||null);l.N.updateValue("title",rW(n.title));l.N.updateValue("description",rW(n.description));l.N.updateValue("displayUrl",rW(n.displayUrl));n.navigationEndpoint&&g.Lm(l.Y,n.navigationEndpoint);l.N.show();l.Hm.start();l.logVisibility(l.N.element,!0);l.U(l.N.element,"mouseover",function(){l.NQ++}); return!0}; Ku5=function(l,n){if(sw7(l,NN)||l.api.isMinimized())return!1;var O=rW(n.title),L=rW(n.description);if(g.DL(O)||g.DL(L))return!1;l.createServerVe(l.W.element,n.trackingParams||null);l.W.updateValue("title",rW(n.title));l.W.updateValue("description",rW(n.description));l.W.updateValue("displayUrl",rW(n.displayUrl));l.W.updateValue("imageUrl",wo9(n.image));n.navigationEndpoint&&g.Lm(l.Y,n.navigationEndpoint);l.nf=n.imageNavigationEndpoint||null;l.W.show();l.Hm.start();l.logVisibility(l.W.element,!0); l.U(l.W.element,"mouseover",function(){l.NQ++}); return!0}; aif=function(l,n){if(l.api.isMinimized())return!1;var O=H18(n.image),L=O;O.width<NN.width&&(L=NN);if(O.width===0||O.height===0||sw7(l,L))return!1;l.createServerVe(l.S.element,n.trackingParams||null);l.S.updateValue("imageUrl",wo9(n.image));l.S.updateValue("width",O.width);l.S.updateValue("height",O.height);n.navigationEndpoint&&g.Lm(l.Y,n.navigationEndpoint);g.HH(l.S.mJ("ytp-ad-image-overlay"),"max-width",O.width+"px");l.S.show();l.logVisibility(l.S.element,!0);l.U(l.S.element,"mouseover",function(){l.NQ++; l.api.jq("invideo-overlay",l.layoutId)}); l.U(l.S.element,"mouseout",function(){l.api.AR("invideo-overlay",l.layoutId)}); return!0}; sw7=function(l,n){var O=l.api.xP().Dm(),L=l.api.FC(!0,!1);return(n=rR(O,O.height-(L.height+L.top),n))?(l.wq&&n&&(O=g.jY(l.macros),O.ERRORCODE=n.g5.toString(),O.ERROR_MSG=n.errorMessage,l.layoutId?fL(l.Iz,l.wq,l.layoutId,O):g.Ir(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; ER=function(l,n,O){var L=g.jY(l.macros),X=g.D2(n);L.AW={toString:function(){return X.width.toString()}}; L.AH={toString:function(){return X.height.toString()}}; var F=g.Eo(O,n).floor();L.I_X={toString:function(){return F.x.toString()}}; L.NX={toString:function(){return F.x.toString()}}; L.I_Y={toString:function(){return F.y.toString()}}; L.NY={toString:function(){return F.y.toString()}}; L.NM={toString:function(){return l.NQ.toString()}}; n=g.P(l.Y);for(O=n.next();!O.done;O=n.next())O=O.value,l.layoutId?fL(l.Iz,O,l.layoutId,L):g.Ir(Error("Missing layoutId for invideo_overlay_ad."));l.api.pauseVideo()}; R55=function(l,n){l=l.api.getRootNode();g.wP(l,"ytp-ad-overlay-open",n);g.wP(l,"ytp-ad-overlay-closed",!n)}; C7f=function(l,n,O,L,X){lr.call(this,l,{D:"div",X:"ytp-ad-message-overlay",K:[{D:"div",X:"ytp-ad-message-slot"}]},"ad-message",n,O,L,X);var F=this;this.V=-1;this.N=0;this.NQ=!1;this.Cf=this.mJ("ytp-ad-message-slot");this.W=new g.Aj({D:"span",X:"ytp-ad-message-container"});this.W.V5(this.Cf);g.c(this,this.W);this.messageText=new tj(this.api,this.layoutId,this.interactionLoggingClientData,L,"ytp-ad-message-text");g.c(this,this.messageText);this.messageText.V5(this.W.element);this.L=new g.gy(this.W, 400,!1,100,function(){F.hide()}); g.c(this,this.L);this.hide()}; tyi=function(l,n){l=l.api.getRootNode();g.wP(l,"ytp-ad-overlay-open",n);g.wP(l,"ytp-ad-overlay-closed",!n)}; v9i=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-underlay-companion",K:[{D:"div",X:"ytp-ad-underlay-side-container",K:[{D:"div",X:"ytp-ad-underlay-image-container"},{D:"div",X:"ytp-ad-underlay-description-container"},{D:"div",X:"ytp-ad-underlay-headline-container"},{D:"div",X:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",n,O,L);this.actionButton=null;this.Cf=this.mJ("ytp-ad-underlay-image-container");this.N=new cr(this.api,this.layoutId,this.interactionLoggingClientData, this.Iz,"ytp-ad-underlay-image");g.c(this,this.N);this.N.V5(this.Cf);this.NQ=this.mJ("ytp-ad-underlay-headline-container");this.W=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-underlay-headline");g.c(this,this.W);this.W.V5(this.NQ);this.Y=this.mJ("ytp-ad-underlay-description-container");this.L=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-underlay-description");g.c(this,this.L);this.L.V5(this.Y);this.V=this.mJ("ytp-ad-underlay-action-button-container"); this.S=this.mJ("ytp-ad-underlay-side-container");this.hide()}; ldk=function(l){var n=g.aC("html5-video-player");n&&g.wP(n,"ytp-ad-display-override",l)}; Dp=function(l,n,O,L,X,F){F=F===void 0?function(){}:F; bm.call(this,l,{D:"div",X:"ytp-ad-survey-answer"},"survey-answer",n,O,L);this.index=X;this.onSelected=F;this.S=null;this.toggledLoggingParams="";this.answer=this.mJ("ytp-ad-survey-answer");this.hide()}; nn5=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",n,O,L);this.button=null;this.S=this.mJ("ytp-ad-survey-none-of-the-above");this.hide()}; qN=function(l,n,O,L){var X=["ytp-ad-survey-submit-button"];X.push("ytp-ad-survey-submit-button-rounded");G5.call(this,l,n,O,L,X,"survey-submit")}; kf=function(l,n,O,L,X){bm.call(this,l,{D:"div",X:"ytp-ad-survey-player-overlay",K:[{D:"div",X:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",X:"ytp-ad-survey-player-overlay-skip-preview-submit",K:[{D:"div",X:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",X:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",X:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",n,O,L);this.L=X;this.W=this.S=null;this.N=this.mJ("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.mJ("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.mJ("ytp-ad-survey-player-overlay-submit");g.c(this,this.L);this.hide()}; y2=function(l,n,O,L,X,F){F=F===void 0?function(){}:F; bm.call(this,l,{D:"div",X:"ytp-ad-survey-question",K:[{D:"div",gq:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",gq:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",gq:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",X:"ytp-ad-survey-question-background"}]},X,n,O,L);this.Cf=F;this.L=null;this.W=[];this.S=null;this.Y=this.api.j().experiments.MQ("a11y_h5_associate_survey_question");this.question=this.mJ("ytp-ad-survey-question"); this.Hm=this.mJ("ytp-ad-survey-question-background");this.questionText=this.mJ("ytp-ad-survey-question-text");this.answers=this.mJ("ytp-ad-survey-answers");this.playerOverlay=this.mJ("ytp-ad-survey-question-player-overlay");this.N=Date.now()}; O8f=function(l,n){n=g.Uw(n);g.xQ(l.questionText,n);l.Y&&l.questionText.setAttribute("id",F2("survey-question-text"))}; gne=function(l,n,O,L){L=new Dp(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,L,l.Cf);L.V5(l.answers);L.init(F2("survey-answer"),n,O);l.Y&&(n=l.questionText.getAttribute("id"),n!=null&&(L.S!==null?L.S.W.setAttribute("aria-describedby",n):L.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",n)));l.W.push(L)}; XSa=function(l,n){if(n){var O=n.background;O&&g.z(O,Lsa)&&(O=(O=g.z(O,Lsa).image)&&Br(O)||"",g.DL(O)?g.d2(Error("Found ThumbnailDetails without valid image URL")):g.HH(l.Hm,"backgroundImage","url("+O+")"));if(n.durationMilliseconds==null||n.durationMilliseconds===void 0||n.durationMilliseconds===0)g.Ir(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(n)));else{l.N=g.l1();l.S=new DD(l.api,n.durationMilliseconds);g.c(l,l.S);if(l.S&&n.instreamAdPlayerOverlay&&g.z(n.instreamAdPlayerOverlay, Gb))try{var L=new kf(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,l.S);L.V5(l.playerOverlay);L.init(F2("survey-player-overlay"),g.z(n.instreamAdPlayerOverlay,Gb),l.macros);l.L=L;g.c(l,L);l.Bg()}catch(X){g.Ir(Error("ISAPOR had an error when initializing. Error: "+(X+" SurveyAdQuestionCommon: "+JSON.stringify(n))))}else g.Ir(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(n)));l.S&&n.durationMilliseconds&&n.durationMilliseconds>0?(n=new $7(l.api,l.S),n.V5(l.playerOverlay), g.c(l,n)):g.Ir(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(n)))}}else g.Ir(Error("addCommonComponents() needs to be called before starting countdown."))}; on9=function(l){function n(O){return{toString:function(){return O()}}} l.macros.SURVEY_LOCAL_TIME_EPOCH_S=n(function(){var O=new Date;return(Math.round(O.valueOf()/1E3)+-1*O.getTimezoneOffset()*60).toString()}); l.macros.SURVEY_ELAPSED_MS=n(function(){return(Date.now()-l.N).toString()})}; Fsa=function(l,n,O,L,X){y2.call(this,l,n,O,L,"survey-question-multi-select");this.NQ=X;this.noneOfTheAbove=null;this.submitEndpoints=[];this.V=null;this.hide()}; xy8=function(l,n,O){l.noneOfTheAbove=new nn5(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz);l.noneOfTheAbove.V5(l.answers);l.noneOfTheAbove.init(F2("survey-none-of-the-above"),n,O)}; Z85=function(l){l.W.forEach(function(n){n.S.toggleButton(!1)}); hz5(l,!0)}; hz5=function(l,n){var O=l.L;l=JIk(l);n=n===void 0?!1:n;O.S&&(l?O.S.hide():O.S.show(),n&&O.S instanceof T7&&!O.S.L&&gO8(O.S,!1));O.W&&(l?O.W.show():O.W.hide())}; JIk=function(l){return l.W.some(function(n){return n.S.isToggled()})||l.noneOfTheAbove.button.isToggled()}; MN=function(l,n,O,L,X){y2.call(this,l,n,O,L,"survey-question-single-select",function(x){F.api.j().J("supports_multi_step_on_desktop")&&X([x])}); var F=this;this.hide()}; Q2=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-survey",K:[{D:"div",X:"ytp-ad-survey-questions"}]},"survey",n,O,L);this.questions=[];this.W=[];this.conditioningRules=[];this.S=0;this.V=this.mJ("ytp-ad-survey-questions");this.api.j().J("fix_survey_color_contrast_on_destop")&&this.mJ("ytp-ad-survey").classList.add("color-contrast-fix");this.api.j().J("web_enable_speedmaster")&&this.mJ("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; AIf=function(l,n){var O=l.W[n],L;(L=l.N)==null||L.dispose();g.z(O,jQ)?wSq(l,g.z(O,jQ),l.macros):g.z(O,Y2)&&H89(l,g.z(O,Y2),l.macros);l.S=n}; wSq=function(l,n,O){var L=new MN(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,l.L.bind(l));L.V5(l.V);L.init(F2("survey-question-single-select"),n,O);l.api.j().J("supports_multi_step_on_desktop")?l.N=L:l.questions.push(L);g.c(l,L)}; H89=function(l,n,O){var L=new Fsa(l.api,l.layoutId,l.interactionLoggingClientData,l.Iz,l.L.bind(l));L.V5(l.V);L.init(F2("survey-question-multi-select"),n,O);l.api.j().J("supports_multi_step_on_desktop")?l.N=L:l.questions.push(L);g.c(l,L)}; eG=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-survey-interstitial",K:[{D:"div",X:"ytp-ad-survey-interstitial-contents",K:[{D:"div",X:"ytp-ad-survey-interstitial-logo",K:[{D:"div",X:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",X:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",n,O,L);this.S=this.actionButton=null;this.interstitial=this.mJ("ytp-ad-survey-interstitial");this.W=this.mJ("ytp-ad-survey-interstitial-contents");this.text=this.mJ("ytp-ad-survey-interstitial-text"); this.logoImage=this.mJ("ytp-ad-survey-interstitial-logo-image");this.transition=new g.gy(this,500,!1,300);g.c(this,this.transition)}; b8k=function(l,n){n=n&&Br(n)||"";if(g.DL(n))g.d2(Error("Found ThumbnailDetails without valid image URL"));else{var O=l.style;l=l.style.cssText;var L=document.implementation.createHTMLDocument("").createElement("DIV");L.style.cssText=l;l=ilg(L.style);O.cssText=[l,'background-image:url("'+n+'");'].join("")}}; rI5=function(l){var n=g.aC("html5-video-player");n&&g.wP(n,"ytp-ad-display-override",l)}; Yf=function(l,n,O,L,X,F){F=F===void 0?0:F;lr.call(this,l,{D:"div",X:"ytp-preview-ad",K:[{D:"div",X:"ytp-preview-ad__text"}]},"preview-ad",n,O,L,X);var x=this;this.NQ=F;this.W=0;this.L=-1;this.N=this.mJ("ytp-preview-ad__text");switch(this.NQ){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.gy(this,400,!1,100,function(){x.hide()}); g.c(this,this.transition);this.hide()}; jG=function(l,n,O,L){bm.call(this,l,{D:"img",X:"ytp-ad-avatar"},"ad-avatar",n,O,L);this.hide()}; Uyk=function(l){switch(l.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}}; GL=function(l,n,O,L,X,F){X=X===void 0?!1:X;F=F===void 0?!1:F;bm.call(this,l,{D:"button",X:"ytp-ad-button-vm"},"ad-button",n,O,L);this.buttonText=this.buttonIcon=null;this.hide();this.S=X;this.W=F}; uha=function(l,n,O,L,X){lr.call(this,l,{D:"div",gq:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{D:"div",X:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{D:"div",X:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",n,O,L,X);this.startMilliseconds=0;this.adAvatar=new jG(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.adAvatar);Xg(this.element,this.adAvatar.element,0);this.headline=new Y7(this.api,this.layoutId, this.interactionLoggingClientData,this.Iz);g.c(this,this.headline);this.headline.V5(this.mJ("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.description);this.description.V5(this.mJ("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new GL(this.api, this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.adButton);this.adButton.V5(this.element);this.hide()}; mT=function(l,n,O,L){bm.call(this,l,{D:"button",X:"ytp-skip-ad-button",K:[{D:"div",X:"ytp-skip-ad-button__text"}]},"skip-button",n,O,L);var X=this;this.W=!1;this.L=this.mJ("ytp-skip-ad-button__text");this.transition=new g.gy(this,500,!1,100,function(){X.hide()}); g.c(this,this.transition);this.S=new hV(this.element,15E3,5E3,.5,.5,!0);g.c(this,this.S);this.hide()}; Pp5=function(l,n,O,L,X){lr.call(this,l,{D:"div",X:"ytp-skip-ad"},"skip-ad",n,O,L,X);this.skipOffsetMilliseconds=0;this.L=this.isSkippable=!1;var F;if((F=this.api.getVideoData())==null?0:F.isDaiEnabled())this.L=this.api.j().J("clean_player_style_fix_on_web");if(this.L||!this.api.j().experiments.MQ("disable_ad_preview_for_instream_ads"))this.W=new Yf(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S),g.c(this,this.W),this.W.V5(this.element);this.N=new mT(this.api,this.layoutId, this.interactionLoggingClientData,this.Iz);g.c(this,this.N);this.N.V5(this.element);this.hide()}; Is=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-visit-advertiser-link"},"visit-advertiser-link",n,O,L);this.hide();this.api.J("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.J("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; ds=function(l,n,O,L,X){bm.call(this,l,{D:"div",X:"ytp-ad-player-overlay-layout",K:[{D:"div",X:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",X:"ytp-ad-player-overlay-layout__ad-info-container"},{D:"div",X:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",X:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",n,O,L);this.W=X;this.Cf=this.mJ("ytp-ad-player-overlay-layout__player-card-container");this.S=this.mJ("ytp-ad-player-overlay-layout__ad-info-container"); this.Y=this.mJ("ytp-ad-player-overlay-layout__skip-or-preview-container");this.NQ=this.mJ("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; TVa=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-grid-card-text",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",X:"ytp-ad-grid-card-text__metadata__description",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",X:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",X:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",n,O,L);this.headline=new Y7(this.api,this.layoutId,this.interactionLoggingClientData, this.Iz);g.c(this,this.headline);this.headline.V5(this.mJ("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new GL(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,!0);g.c(this,this.moreInfoButton);this.moreInfoButton.V5(this.mJ("ytp-ad-grid-card-text__button"))}; $f=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",n,O,L);this.S=[]}; V2=function(l,n,O,L,X,F,x){lr.call(this,l,F,x,n,O,L,X);this.playerProgressOffsetMs=0;this.W=!1}; Ws0=function(l){var n=g.aC("html5-video-player");n&&g.wP(n,"ytp-ad-display-override",l)}; Eni=function(l,n,O,L,X){V2.call(this,l,n,O,L,X,{D:"div",X:"ytp-display-underlay-text-grid-cards",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new $f(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.adGridCardCollection);this.adGridCardCollection.V5(this.mJ("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new GL(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.adButton);this.adButton.V5(this.mJ("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.mJ("ytp-display-underlay-text-grid-cards__content_container");this.L=this.mJ("ytp-display-underlay-text-grid-cards__content_container__header")}; Bg=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-ad-details-line"},"ad-details-line",n,O,L);this.S=[];this.hide()}; cg=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-image-background",K:[{D:"img",X:"ytp-image-background-image"}]},"image-background",n,O,L);this.hide()}; NV5=function(l,n,O,L,X){lr.call(this,l,{D:"svg",X:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},K:[{D:"circle",X:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{D:"circle",X:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{D:"circle",X:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",n,O,L,X);this.N=this.mJ("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; iF=function(l,n,O,L){bm.call(this,l,{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",n,O,L);this.W=null;this.L=this.mJ("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new MV;g.c(this,this.N);this.hide()}; Dyg=function(l){var n=g.aC("html5-video-player");n&&g.wP(n,"ytp-ad-display-override",l)}; qng=function(l){if(!l.adAvatar||!g.z(l.adAvatar,zL))return g.Ir(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!l.headline)return g.Ir(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!l.adBadge||!g.z(l.adBadge,SG))return g.Ir(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!l.adButton||!g.z(l.adButton,pk))return g.Ir(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!l.adInfoRenderer|| !g.z(l.adInfoRenderer,mK))return g.Ir(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;l=l.durationMilliseconds||0;return typeof l!=="number"||l<=0?(g.Ir(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+l)),!1):!0}; sR=function(l,n,O){pI.call(this,l);this.api=l;this.Iz=n;this.W={};l=new g.f({D:"div",gq:["video-ads","ytp-ad-module"]});g.c(this,l);lO&&g.FW(l.element,"ytp-ads-tiny-mode");this.B=new WV(l.element);g.c(this,this.B);g.jR(this.api,l.element,4);lZ(O)&&(O=new g.f({D:"div",gq:["ytp-ad-underlay"]}),g.c(this,O),this.N=new WV(O.element),g.c(this,this.N),g.jR(this.api,O.element,0));g.c(this,jZ5())}; km5=function(l,n){l=g.eY(l.W,n.id,null);l==null&&g.d2(Error("Component not found for element id: "+n.id));return l||null}; yI9=function(l){g.qq.call(this,l);var n=this;this.W=null;this.created=!1;this.N=l.j().J("h5_use_refactored_get_ad_break")?new We5(this.player):new SK(this.player);this.L=function(){if(n.W!=null)return n.W;var L=new MBi({SI:Wg(n.S).SI,Ds:Wg(n.S).Ds,C:n.player,zn:Wg(n.S).zn,qQ:n.S.S.qQ,pZ:Wg(n.S).pZ,fp:n.S.S.fp});n.W=L.FY;return n.W}; this.S=new mMg(this.player,this,this.N,this.L);g.c(this,this.S);var O=l.j();!k_(O)||g.mX(O)||cI(O)||(g.c(this,new sR(l,Wg(this.S).Iz,Wg(this.S).zn)),g.c(this,new Iik(l)))}; MM9=function(l){l.created!==l.loaded&&AV("Created and loaded are out of sync")}; Ynf=function(l){g.qq.prototype.load.call(l);var n=Wg(l.S).zn;try{l.player.getRootNode().classList.add("ad-created")}catch(J){AV(J instanceof Error?J:String(J))}var O=l.player.getVideoData(1),L=O&&O.videoId||"",X=O&&O.getPlayerResponse()||{},F=(!l.player.j().experiments.MQ("debug_ignore_ad_placements")&&X&&X.adPlacements||[]).map(function(J){return J.adPlacementRenderer}),x=((X==null?void 0:X.adSlots)||[]).map(function(J){return g.z(J,Bi)}); X=X.playerConfig&&X.playerConfig.daiConfig&&X.playerConfig.daiConfig.enableDai||!1;O&&O.tA();F=QVa(F,x,n,Wg(l.S).PD);x=O&&O.clientPlaybackNonce||"";O=O&&O.fI||!1;if(ql(n,!0)&&O){var Z;n={};(Z=l.player.getVideoData())==null||Z.Sp("p_cpb",(n.cc=x,n))}Z=1E3*l.player.getDuration(1);ezi(l);l.S.S.Ee.Ke(x,Z,O,F.OG,F.iC,F.OG,X,L)}; ezi=function(l){var n,O;if(O=(n=l.player.getVideoData(1))==null||!n.fI)n=l.player.j(),O=k_(n)&&!g.qp(n)&&n.playerStyle==="desktop-polymer";O&&(l=l.player.getInternalApi(),l.addEventListener("updateKevlarOrC3Companion",hE0),l.addEventListener("updateEngagementPanelAction",ZKe),l.addEventListener("changeEngagementPanelVisibility",Jck),window.addEventListener("yt-navigate-start",HKg))}; fk=function(l,n){n===l.oL&&(l.oL=void 0)}; jV5=function(l){var n=Wg(l.S).g8,O=n.L().cF("SLOT_TYPE_PLAYER_BYTES",1);n=PG(n.tG.get(),1).clientPlaybackNonce;var L=!1;O=g.P(O);for(var X=O.next();!X.done;X=O.next()){X=X.value;var F=X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.slotEntryTrigger instanceof k4?X.slotEntryTrigger.Zf:void 0;F&&F===n&&(L&&AV("More than 1 preroll playerBytes slot detected",X),L=!0)}L||FH(Wg(l.S).DD)}; Gm5=function(l){if(CM(Wg(l.S).zn))return!0;var n="";l=g.P(Wg(l.S).pZ.mf.keys());for(var O=l.next();!O.done;O=l.next()){O=O.value;if(O.slotType==="SLOT_TYPE_PLAYER_BYTES"&&O.jp==="core")return!0;n+=O.slotType+" "}Math.random()<.01&&AV("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:n});return!1}; myf=function(l){l=g.P(Wg(l.S).pZ.mf.values());for(var n=l.next();!n.done;n=l.next())if(n.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; N4a=function(l,n,O,L,X,F){O=O===void 0?[]:O;L=L===void 0?"":L;X=X===void 0?"":X;var x=Wg(l.S).zn,Z=l.player.getVideoData(1);Z&&Z.getPlayerResponse();Z&&Z.tA();O=QVa(n,O,x,Wg(l.S).PD);yM0(Wg(l.S).EK,L,O.OG,O.iC,n,X,F)}; QVa=function(l,n,O,L){n={OG:[],iC:n};l=g.P(l);for(var X=l.next();!X.done;X=l.next())if((X=X.value)&&X.renderer!=null){var F=X.renderer;if(!O.C.j().J("html5_enable_vod_lasr_with_notify_pacf")){var x=void 0,Z=void 0,J=void 0,w=void 0,H=L;g.z((w=F.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,rf)?(x=g.z((J=F.sandwichedLinearAdRenderer)==null?void 0:J.adVideoStart,rf),x=ibq(x,H),g.il(F.sandwichedLinearAdRenderer.adVideoStart,rf,x)):g.z((Z=F.linearAdSequenceRenderer)==null?void 0:Z.adStart,rf)&& (J=g.z((x=F.linearAdSequenceRenderer)==null?void 0:x.adStart,rf),x=ibq(J,H),g.il(F.linearAdSequenceRenderer.adStart,rf,x))}n.OG.push(X)}return n}; g.Kk=function(l){if(typeof DOMParser!="undefined")return aW(new DOMParser,mOv(l),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.as=function(l){g.V.call(this);this.callback=l;this.S=new No(0,0,.4,0,.2,1,1,1);this.delay=new g.tN(this.next,window,this);g.c(this,this.delay)}; g.Idi=function(l){var n=l.j();return n.M5&&!n.N&&g.yG(n)?l.isEmbedsShortsMode()?(l=l.FC(),Math.min(l.width,l.height)>=315):!l.Rp():!1}; g.Rs=function(l){g.f.call(this,{D:"div",X:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var n=this;this.api=l;this.W=!0;this.N=new g.$B(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=this.G=this.L=this.scrollPosition=0;this.title=new g.f({D:"h2",X:"ytp-related-title",hG:"{{title}}"});this.previous=new g.f({D:"button",gq:["ytp-button","ytp-previous"],Z:{"aria-label":"Show previous suggested videos"},K:[g.T5()]});this.T=new g.as(function(O){n.suggestions.element.scrollLeft=-O}); this.next=new g.f({D:"button",gq:["ytp-button","ytp-next"],Z:{"aria-label":"Show more suggested videos"},K:[g.Wr()]});g.c(this,this.N);this.V=l.j().L;g.c(this,this.title);this.title.V5(this.element);this.suggestions=new g.f({D:"div",X:"ytp-suggestions"});g.c(this,this.suggestions);this.suggestions.V5(this.element);g.c(this,this.previous);this.previous.V5(this.element);this.previous.listen("click",this.H2,this);g.c(this,this.T);dy7(this);g.c(this,this.next);this.next.V5(this.element);this.next.listen("click", this.B2,this);this.N.U(this.api,"appresize",this.x4);this.N.U(this.api,"fullscreentoggled",this.qG);this.N.U(this.api,"videodatachange",this.onVideoDataChange);this.x4(this.api.xP().getPlayerSize());this.onVideoDataChange()}; dy7=function(l){for(var n={k5:0};n.k5<16;n={k5:n.k5},++n.k5){var O=new g.f({D:"a",X:"ytp-suggestion-link",Z:{href:"{{link}}",target:l.api.j().Y,"aria-label":"{{aria_label}}"},K:[{D:"div",X:"ytp-suggestion-image"},{D:"div",X:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{D:"div",X:"ytp-suggestion-title",hG:"{{title}}"},{D:"div",X:"ytp-suggestion-author",hG:"{{author_and_views}}"},{D:"div",Z:{"data-is-live":"{{is_live}}"},X:"ytp-suggestion-duration", hG:"{{duration}}"}]}]});g.c(l,O);var L=O.mJ("ytp-suggestion-link");g.HH(L,"transitionDelay",n.k5/20+"s");l.N.U(L,"click",function(X){return function(F){var x=X.k5;if(l.W){var Z=l.suggestionData[x],J=Z.sessionData;l.V&&l.api.J("web_player_log_click_before_generating_ve_conversion_params")?(l.api.logClick(l.S[x].element),x=Z.XK(),Z={},g.Q7(l.api,Z),x=g.pr(x,Z),g.Le(x,l.api,F)):g.gk(F,l.api,l.V,J||void 0)&&l.api.iI(Z.videoId,J,Z.playlistId)}else F.preventDefault(),document.activeElement.blur()}}(n)); O.V5(l.suggestions.element);l.S.push(O);l.api.createServerVe(O.element,O)}}; $y0=function(l){if(l.api.j().J("web_player_log_click_before_generating_ve_conversion_params"))for(var n=Math.floor(-l.scrollPosition/(l.L+8)),O=Math.min(n+l.columns,l.suggestionData.length)-1;n<=O;n++)l.api.logVisibility(l.S[n].element,!0)}; g.Ck=function(l){var n=l.api.bU()?32:16;n=l.G/2+n;l.next.element.style.bottom=n+"px";l.previous.element.style.bottom=n+"px";n=l.scrollPosition;var O=l.containerWidth-l.suggestionData.length*(l.L+8);g.wP(l.element,"ytp-scroll-min",n>=0);g.wP(l.element,"ytp-scroll-max",n<=O)}; BVq=function(l){for(var n=l.suggestionData.length,O=0;O<n;++O){var L=void 0,X=void 0,F=void 0;L=l;var x=L.api.j(),Z=L.suggestionData[O],J=L.S[O];F=L.api.isEmbedsShortsMode()?Z.shortViewCount||"":Z.shortViewCount?Z.author+" \u2022 "+Z.shortViewCount:Z.author;J.element.style.display="";g.HH(J.mJ("ytp-suggestion-link"),"display","inline-block");VM9.test(Z.title)&&(J.mJ("ytp-suggestion-title").dir="rtl");VM9.test(F)&&(J.mJ("ytp-suggestion-author").dir="rtl");X=Z.isLivePlayback?"Live":Z.lengthSeconds? g.k7(Z.lengthSeconds):"";var w=Z.XK(L.api.isEmbedsShortsMode());if(g.yG(x)&&!x.J("web_player_log_click_before_generating_ve_conversion_params")){var H={};g.hA(L.api,"addEmbedsConversionTrackingParams",[H]);w=g.pr(w,H)}x.J("web_player_log_click_before_generating_ve_conversion_params")&&(x=(x=Z.sessionData)&&x.itct)&&L.api.setTrackingParams(J.element,x);J.update({author_and_views:F,duration:X,link:w,title:Z.title,aria_label:Z.ariaLabel||Z.title,is_live:Z.isLivePlayback,aria_hidden:!!Z.ariaLabel,blink_rendering_hack:g.G2|| g.qt?"will-change: opacity":void 0});X=J.mJ("ytp-suggestion-image");L=L.api.isEmbedsShortsMode()?Z.HG("hq2.jpg"):Z.HG();X.style.backgroundImage=L?"url("+L+")":""}if(n<16)for(;n<16;++n)g.HH(l.S[n].mJ("ytp-suggestion-link"),"display","none");g.Ck(l)}; l5q=[];Z5=typeof Object.defineProperties=="function"?Object.defineProperty:function(l,n,O){if(l==Array.prototype||l==Object.prototype)return l;l[n]=O.value;return l}; g.xi=Ov5(this);w9("Symbol",function(l){function n(F){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return new O(L+(F||"")+"_"+X++,F)} function O(F,x){this.S=F;Z5(this,"description",{configurable:!0,writable:!0,value:x})} if(l)return l;O.prototype.toString=function(){return this.S}; var L="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",X=0;return n}); w9("Symbol.iterator",function(l){if(l)return l;l=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),O=0;O<n.length;O++){var L=g.xi[n[O]];typeof L==="function"&&typeof L.prototype[l]!="function"&&Z5(L.prototype,l,{configurable:!0,writable:!0,value:function(){return giv(niv(this))}})}return l}); var L0g=typeof Object.create=="function"?Object.create:function(l){function n(){} n.prototype=l;return new n},cI5=function(){function l(){function O(){} new O;Reflect.construct(O,[],function(){}); return new O instanceof O} if(typeof Reflect!="undefined"&&Reflect.construct){if(l())return Reflect.construct;var n=Reflect.construct;return function(O,L,X){O=n(O,L);X&&Reflect.setPrototypeOf(O,X.prototype);return O}}return function(O,L,X){X===void 0&&(X=O); X=L0g(X.prototype||Object.prototype);return Function.prototype.apply.call(O,X,L)||X}}(),i8q; if(typeof Object.setPrototypeOf=="function")i8q=Object.setPrototypeOf;else{var zzg;a:{var Sn5={a:!0},pS0={};try{pS0.__proto__=Sn5;zzg=pS0.a;break a}catch(l){}zzg=!1}i8q=zzg?function(l,n){l.__proto__=n;if(l.__proto__!==n)throw new TypeError(l+" is not extensible");return l}:null}var He=i8q,sVe=typeof Object.assign=="function"?Object.assign:function(l,n){for(var O=1;O<arguments.length;O++){var L=arguments[O]; if(L)for(var X in L)b9(L,X)&&(l[X]=L[X])}return l}; w9("Object.assign",function(l){return l||sVe}); Ui.prototype.G=function(l){this.W=l}; Ui.prototype.return=function(l){this.N={return:l};this.S=this.B}; Ui.prototype.D2=function(l){this.S=l}; w9("globalThis",function(l){return l||g.xi}); w9("Reflect",function(l){return l?l:{}}); w9("Reflect.construct",function(){return cI5}); w9("Reflect.setPrototypeOf",function(l){return l?l:He?function(n,O){try{return He(n,O),!0}catch(L){return!1}}:null}); w9("Promise",function(l){function n(x){this.S=0;this.N=void 0;this.W=[];this.T=!1;var Z=this.L();try{x(Z.resolve,Z.reject)}catch(J){Z.reject(J)}} function O(){this.S=null} function L(x){return x instanceof n?x:new n(function(Z){Z(x)})} if(l)return l;O.prototype.W=function(x){if(this.S==null){this.S=[];var Z=this;this.N(function(){Z.B()})}this.S.push(x)}; var X=g.xi.setTimeout;O.prototype.N=function(x){X(x,0)}; O.prototype.B=function(){for(;this.S&&this.S.length;){var x=this.S;this.S=[];for(var Z=0;Z<x.length;++Z){var J=x[Z];x[Z]=null;try{J()}catch(w){this.L(w)}}}this.S=null}; O.prototype.L=function(x){this.N(function(){throw x;})}; n.prototype.L=function(){function x(w){return function(H){J||(J=!0,w.call(Z,H))}} var Z=this,J=!1;return{resolve:x(this.Q5),reject:x(this.B)}}; n.prototype.Q5=function(x){if(x===this)this.B(new TypeError("A Promise cannot resolve to itself"));else if(x instanceof n)this.Cf(x);else{a:switch(typeof x){case "object":var Z=x!=null;break a;case "function":Z=!0;break a;default:Z=!1}Z?this.NQ(x):this.V(x)}}; n.prototype.NQ=function(x){var Z=void 0;try{Z=x.then}catch(J){this.B(J);return}typeof Z=="function"?this.z3(Z,x):this.V(x)}; n.prototype.B=function(x){this.G(2,x)}; n.prototype.V=function(x){this.G(1,x)}; n.prototype.G=function(x,Z){if(this.S!=0)throw Error("Cannot settle("+x+", "+Z+"): Promise already settled in state"+this.S);this.S=x;this.N=Z;this.S===2&&this.Lf();this.Y()}; n.prototype.Lf=function(){var x=this;X(function(){if(x.Wm()){var Z=g.xi.console;typeof Z!=="undefined"&&Z.error(x.N)}},1)}; n.prototype.Wm=function(){if(this.T)return!1;var x=g.xi.CustomEvent,Z=g.xi.Event,J=g.xi.dispatchEvent;if(typeof J==="undefined")return!0;typeof x==="function"?x=new x("unhandledrejection",{cancelable:!0}):typeof Z==="function"?x=new Z("unhandledrejection",{cancelable:!0}):(x=g.xi.document.createEvent("CustomEvent"),x.initCustomEvent("unhandledrejection",!1,!0,x));x.promise=this;x.reason=this.N;return J(x)}; n.prototype.Y=function(){if(this.W!=null){for(var x=0;x<this.W.length;++x)F.W(this.W[x]);this.W=null}}; var F=new O;n.prototype.Cf=function(x){var Z=this.L();x.t$(Z.resolve,Z.reject)}; n.prototype.z3=function(x,Z){var J=this.L();try{x.call(Z,J.resolve,J.reject)}catch(w){J.reject(w)}}; n.prototype.then=function(x,Z){function J(b,r){return typeof b=="function"?function(U){try{w(b(U))}catch(W){H(W)}}:r} var w,H,A=new n(function(b,r){w=b;H=r}); this.t$(J(x,w),J(Z,H));return A}; n.prototype.catch=function(x){return this.then(void 0,x)}; n.prototype.t$=function(x,Z){function J(){switch(w.S){case 1:x(w.N);break;case 2:Z(w.N);break;default:throw Error("Unexpected state: "+w.S);}} var w=this;this.W==null?F.W(J):this.W.push(J);this.T=!0}; n.resolve=L;n.reject=function(x){return new n(function(Z,J){J(x)})}; n.race=function(x){return new n(function(Z,J){for(var w=g.P(x),H=w.next();!H.done;H=w.next())L(H.value).t$(Z,J)})}; n.all=function(x){var Z=g.P(x),J=Z.next();return J.done?L([]):new n(function(w,H){function A(U){return function(W){b[U]=W;r--;r==0&&w(b)}} var b=[],r=0;do b.push(void 0),r++,L(J.value).t$(A(b.length-1),H),J=Z.next();while(!J.done)})}; return n}); w9("Object.setPrototypeOf",function(l){return l||He}); w9("Symbol.dispose",function(l){return l?l:Symbol("Symbol.dispose")}); w9("SuppressedError",function(l){function n(O,L,X){if(!(this instanceof n))return new n(O,L,X);X=Error(X);"stack"in X&&(this.stack=X.stack);this.message=X.message;this.error=O;this.suppressed=L} if(l)return l;g.u(n,Error);n.prototype.name="SuppressedError";return n}); w9("Array.prototype.find",function(l){return l?l:function(n,O){return Ag8(this,n,O).iL}}); w9("WeakMap",function(l){function n(J){this.S=(Z+=Math.random()+1).toString();if(J){J=g.P(J);for(var w;!(w=J.next()).done;)w=w.value,this.set(w[0],w[1])}} function O(){} function L(J){var w=typeof J;return w==="object"&&J!==null||w==="function"} function X(J){if(!b9(J,x)){var w=new O;Z5(J,x,{value:w})}} function F(J){var w=Object[J];w&&(Object[J]=function(H){if(H instanceof O)return H;Object.isExtensible(H)&&X(H);return w(H)})} if(function(){if(!l||!Object.seal)return!1;try{var J=Object.seal({}),w=Object.seal({}),H=new l([[J,2],[w,3]]);if(H.get(J)!=2||H.get(w)!=3)return!1;H.delete(J);H.set(w,4);return!H.has(J)&&H.get(w)==4}catch(A){return!1}}())return l; var x="$jscomp_hidden_"+Math.random();F("freeze");F("preventExtensions");F("seal");var Z=0;n.prototype.set=function(J,w){if(!L(J))throw Error("Invalid WeakMap key");X(J);if(!b9(J,x))throw Error("WeakMap key fail: "+J);J[x][this.S]=w;return this}; n.prototype.get=function(J){return L(J)&&b9(J,x)?J[x][this.S]:void 0}; n.prototype.has=function(J){return L(J)&&b9(J,x)&&b9(J[x],this.S)}; n.prototype.delete=function(J){return L(J)&&b9(J,x)&&b9(J[x],this.S)?delete J[x][this.S]:!1}; return n}); w9("Map",function(l){function n(){var Z={};return Z.previous=Z.next=Z.head=Z} function O(Z,J){var w=Z[1];return giv(function(){if(w){for(;w.head!=Z[1];)w=w.previous;for(;w.next!=w.head;)return w=w.next,{done:!1,value:J(w)};w=null}return{done:!0,value:void 0}})} function L(Z,J){var w=J&&typeof J;w=="object"||w=="function"?F.has(J)?w=F.get(J):(w=""+ ++x,F.set(J,w)):w="p_"+J;var H=Z[0][w];if(H&&b9(Z[0],w))for(Z=0;Z<H.length;Z++){var A=H[Z];if(J!==J&&A.key!==A.key||J===A.key)return{id:w,list:H,index:Z,entry:A}}return{id:w,list:H,index:-1,entry:void 0}} function X(Z){this[0]={};this[1]=n();this.size=0;if(Z){Z=g.P(Z);for(var J;!(J=Z.next()).done;)J=J.value,this.set(J[0],J[1])}} if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var Z=Object.seal({x:4}),J=new l(g.P([[Z,"s"]]));if(J.get(Z)!="s"||J.size!=1||J.get({x:4})||J.set({x:4},"t")!=J||J.size!=2)return!1;var w=J.entries(),H=w.next();if(H.done||H.value[0]!=Z||H.value[1]!="s")return!1;H=w.next();return H.done||H.value[0].x!=4||H.value[1]!="t"||!w.next().done?!1:!0}catch(A){return!1}}())return l; var F=new WeakMap;X.prototype.set=function(Z,J){Z=Z===0?0:Z;var w=L(this,Z);w.list||(w.list=this[0][w.id]=[]);w.entry?w.entry.value=J:(w.entry={next:this[1],previous:this[1].previous,head:this[1],key:Z,value:J},w.list.push(w.entry),this[1].previous.next=w.entry,this[1].previous=w.entry,this.size++);return this}; X.prototype.delete=function(Z){Z=L(this,Z);return Z.entry&&Z.list?(Z.list.splice(Z.index,1),Z.list.length||delete this[0][Z.id],Z.entry.previous.next=Z.entry.next,Z.entry.next.previous=Z.entry.previous,Z.entry.head=null,this.size--,!0):!1}; X.prototype.clear=function(){this[0]={};this[1]=this[1].previous=n();this.size=0}; X.prototype.has=function(Z){return!!L(this,Z).entry}; X.prototype.get=function(Z){return(Z=L(this,Z).entry)&&Z.value}; X.prototype.entries=function(){return O(this,function(Z){return[Z.key,Z.value]})}; X.prototype.keys=function(){return O(this,function(Z){return Z.key})}; X.prototype.values=function(){return O(this,function(Z){return Z.value})}; X.prototype.forEach=function(Z,J){for(var w=this.entries(),H;!(H=w.next()).done;)H=H.value,Z.call(J,H[1],H[0],this)}; X.prototype[Symbol.iterator]=X.prototype.entries;var x=0;return X}); w9("Set",function(l){function n(O){this.S=new Map;if(O){O=g.P(O);for(var L;!(L=O.next()).done;)this.add(L.value)}this.size=this.S.size} if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),L=new l(g.P([O]));if(!L.has(O)||L.size!=1||L.add(O)!=L||L.size!=1||L.add({x:4})!=L||L.size!=2)return!1;var X=L.entries(),F=X.next();if(F.done||F.value[0]!=O||F.value[1]!=O)return!1;F=X.next();return F.done||F.value[0]==O||F.value[0].x!=4||F.value[1]!=F.value[0]?!1:X.next().done}catch(x){return!1}}())return l; n.prototype.add=function(O){O=O===0?0:O;this.S.set(O,O);this.size=this.S.size;return this}; n.prototype.delete=function(O){O=this.S.delete(O);this.size=this.S.size;return O}; n.prototype.clear=function(){this.S.clear();this.size=0}; n.prototype.has=function(O){return this.S.has(O)}; n.prototype.entries=function(){return this.S.entries()}; n.prototype.values=function(){return this.S.values()}; n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(O,L){var X=this;this.S.forEach(function(F){return O.call(L,F,F,X)})}; return n}); w9("Math.log2",function(l){return l?l:function(n){return Math.log(n)/Math.LN2}}); w9("Object.values",function(l){return l?l:function(n){var O=[],L;for(L in n)b9(n,L)&&O.push(n[L]);return O}}); w9("Object.is",function(l){return l?l:function(n,O){return n===O?n!==0||1/n===1/O:n!==n&&O!==O}}); w9("Array.prototype.includes",function(l){return l?l:function(n,O){var L=this;L instanceof String&&(L=String(L));var X=L.length;O=O||0;for(O<0&&(O=Math.max(O+X,0));O<X;O++){var F=L[O];if(F===n||Object.is(F,n))return!0}return!1}}); w9("String.prototype.includes",function(l){return l?l:function(n,O){return jq(this,n,"includes").indexOf(n,O||0)!==-1}}); w9("Array.from",function(l){return l?l:function(n,O,L){O=O!=null?O:function(Z){return Z}; var X=[],F=typeof Symbol!="undefined"&&Symbol.iterator&&n[Symbol.iterator];if(typeof F=="function"){n=F.call(n);for(var x=0;!(F=n.next()).done;)X.push(O.call(L,F.value,x++))}else for(F=n.length,x=0;x<F;x++)X.push(O.call(L,n[x],x));return X}}); w9("Object.entries",function(l){return l?l:function(n){var O=[],L;for(L in n)b9(n,L)&&O.push([L,n[L]]);return O}}); w9("Number.isFinite",function(l){return l?l:function(n){return typeof n!=="number"?!1:!isNaN(n)&&n!==Infinity&&n!==-Infinity}}); w9("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); w9("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); w9("Number.isInteger",function(l){return l?l:function(n){return Number.isFinite(n)?n===Math.floor(n):!1}}); w9("Number.isSafeInteger",function(l){return l?l:function(n){return Number.isInteger(n)&&Math.abs(n)<=Number.MAX_SAFE_INTEGER}}); w9("String.prototype.startsWith",function(l){return l?l:function(n,O){var L=jq(this,n,"startsWith");n+="";var X=L.length,F=n.length;O=Math.max(0,Math.min(O|0,L.length));for(var x=0;x<F&&O<X;)if(L[O++]!=n[x++])return!1;return x>=F}}); w9("String.prototype.endsWith",function(l){return l?l:function(n,O){var L=jq(this,n,"endsWith");n+="";O===void 0&&(O=L.length);O=Math.max(0,Math.min(O|0,L.length));for(var X=n.length;X>0&&O>0;)if(L[--O]!=n[--X])return!1;return X<=0}}); w9("Array.prototype.entries",function(l){return l?l:function(){return Gk(this,function(n,O){return[n,O]})}}); w9("Math.imul",function(l){return l?l:function(n,O){n=Number(n);O=Number(O);var L=n&65535,X=O&65535;return L*X+((n>>>16&65535)*X+L*(O>>>16&65535)<<16>>>0)|0}}); w9("Math.trunc",function(l){return l?l:function(n){n=Number(n);if(isNaN(n)||n===Infinity||n===-Infinity||n===0)return n;var O=Math.floor(Math.abs(n));return n<0?-O:O}}); w9("Math.clz32",function(l){return l?l:function(n){n=Number(n)>>>0;if(n===0)return 32;var O=0;(n&4294901760)===0&&(n<<=16,O+=16);(n&4278190080)===0&&(n<<=8,O+=8);(n&4026531840)===0&&(n<<=4,O+=4);(n&3221225472)===0&&(n<<=2,O+=2);(n&2147483648)===0&&O++;return O}}); w9("Math.log10",function(l){return l?l:function(n){return Math.log(n)/Math.LN10}}); w9("Number.isNaN",function(l){return l?l:function(n){return typeof n==="number"&&isNaN(n)}}); w9("Array.prototype.keys",function(l){return l?l:function(){return Gk(this,function(n){return n})}}); w9("Array.prototype.values",function(l){return l?l:function(){return Gk(this,function(n,O){return O})}}); w9("Array.prototype.fill",function(l){return l?l:function(n,O,L){var X=this.length||0;O<0&&(O=Math.max(0,X+O));if(L==null||L>X)L=X;L=Number(L);L<0&&(L=Math.max(0,X+L));for(O=Number(O||0);O<L;O++)this[O]=n;return this}}); w9("Int8Array.prototype.fill",m0);w9("Uint8Array.prototype.fill",m0);w9("Uint8ClampedArray.prototype.fill",m0);w9("Int16Array.prototype.fill",m0);w9("Uint16Array.prototype.fill",m0);w9("Int32Array.prototype.fill",m0);w9("Uint32Array.prototype.fill",m0);w9("Float32Array.prototype.fill",m0);w9("Float64Array.prototype.fill",m0); w9("Object.fromEntries",function(l){return l?l:function(n){var O={};if(!(Symbol.iterator in n))throw new TypeError(""+n+" is not iterable");n=n[Symbol.iterator].call(n);for(var L=n.next();!L.done;L=n.next()){L=L.value;if(Object(L)!==L)throw new TypeError("iterable for fromEntries should yield objects");O[L[0]]=L[1]}return O}}); w9("String.prototype.replaceAll",function(l){return l?l:function(n,O){if(n instanceof RegExp&&!n.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return n instanceof RegExp?this.replace(n,O):this.replace(new RegExp(String(n).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}}); w9("String.prototype.repeat",function(l){return l?l:function(n){var O=jq(this,null,"repeat");if(n<0||n>1342177279)throw new RangeError("Invalid count value");n|=0;for(var L="";n;)if(n&1&&(L+=O),n>>>=1)O+=O;return L}}); w9("Promise.prototype.finally",function(l){return l?l:function(n){return this.then(function(O){return Promise.resolve(n()).then(function(){return O})},function(O){return Promise.resolve(n()).then(function(){throw O; })})}}); w9("String.prototype.padStart",function(l){return l?l:function(n,O){var L=jq(this,null,"padStart");n-=L.length;O=O!==void 0?String(O):" ";return(n>0&&O?O.repeat(Math.ceil(n/O.length)).substring(0,n):"")+L}}); w9("Array.prototype.findIndex",function(l){return l?l:function(n,O){return Ag8(this,n,O).lX}}); w9("Math.sign",function(l){return l?l:function(n){n=Number(n);return n===0||isNaN(n)?n:n>0?1:-1}}); w9("WeakSet",function(l){function n(O){this.S=new WeakMap;if(O){O=g.P(O);for(var L;!(L=O.next()).done;)this.add(L.value)}} if(function(){if(!l||!Object.seal)return!1;try{var O=Object.seal({}),L=Object.seal({}),X=new l([O]);if(!X.has(O)||X.has(L))return!1;X.delete(O);X.add(L);return!X.has(O)&&X.has(L)}catch(F){return!1}}())return l; n.prototype.add=function(O){this.S.set(O,!0);return this}; n.prototype.has=function(O){return this.S.has(O)}; n.prototype.delete=function(O){return this.S.delete(O)}; return n}); w9("Array.prototype.copyWithin",function(l){function n(O){O=Number(O);return O===Infinity||O===-Infinity?O:O|0} return l?l:function(O,L,X){var F=this.length;O=n(O);L=n(L);X=X===void 0?F:n(X);O=O<0?Math.max(F+O,0):Math.min(O,F);L=L<0?Math.max(F+L,0):Math.min(L,F);X=X<0?Math.max(F+X,0):Math.min(X,F);if(O<L)for(;L<X;)L in this?this[O++]=this[L++]:(delete this[O++],L++);else for(X=Math.min(X,F+L-O),O+=X-L;X>L;)--X in this?this[--O]=this[X]:delete this[--O];return this}}); w9("Int8Array.prototype.copyWithin",I8);w9("Uint8Array.prototype.copyWithin",I8);w9("Uint8ClampedArray.prototype.copyWithin",I8);w9("Int16Array.prototype.copyWithin",I8);w9("Uint16Array.prototype.copyWithin",I8);w9("Int32Array.prototype.copyWithin",I8);w9("Uint32Array.prototype.copyWithin",I8);w9("Float32Array.prototype.copyWithin",I8);w9("Float64Array.prototype.copyWithin",I8);w9("Array.prototype.at",function(l){return l?l:d9}); w9("Int8Array.prototype.at",$i);w9("Uint8Array.prototype.at",$i);w9("Uint8ClampedArray.prototype.at",$i);w9("Int16Array.prototype.at",$i);w9("Uint16Array.prototype.at",$i);w9("Int32Array.prototype.at",$i);w9("Uint32Array.prototype.at",$i);w9("Float32Array.prototype.at",$i);w9("Float64Array.prototype.at",$i);w9("String.prototype.at",function(l){return l?l:d9}); w9("Array.prototype.findLastIndex",function(l){return l?l:function(n,O){return bv5(this,n,O).lX}}); w9("Int8Array.prototype.findLastIndex",V5);w9("Uint8Array.prototype.findLastIndex",V5);w9("Uint8ClampedArray.prototype.findLastIndex",V5);w9("Int16Array.prototype.findLastIndex",V5);w9("Uint16Array.prototype.findLastIndex",V5);w9("Int32Array.prototype.findLastIndex",V5);w9("Uint32Array.prototype.findLastIndex",V5);w9("Float32Array.prototype.findLastIndex",V5);w9("Float64Array.prototype.findLastIndex",V5);w9("Number.parseInt",function(l){return l||parseInt});var Cr,a8,rgq;Cr=Cr||{};g.Be=this||self;a8="closure_uid_"+(Math.random()*1E9>>>0);rgq=0;g.u(Xu,Error);g.V.prototype.hn=!1;g.V.prototype.JG=function(){return this.hn}; g.V.prototype.dispose=function(){this.hn||(this.hn=!0,this.oz())}; g.V.prototype[Symbol.dispose]=function(){this.dispose()}; g.V.prototype.addOnDisposeCallback=function(l,n){this.hn?n!==void 0?l.call(n):l():(this.G6||(this.G6=[]),n&&(l=l.bind(n)),this.G6.push(l))}; g.V.prototype.oz=function(){if(this.G6)for(;this.G6.length;)this.G6.shift()()};var Eie;g.u(wD,g.V);wD.prototype.share=function(){if(this.JG())throw Error("E:AD");this.L++;return this}; wD.prototype.dispose=function(){--this.L||g.V.prototype.dispose.call(this)}; Eie=Symbol.dispose;N98.prototype.O8=function(l,n){this.S.O8("/client_streamz/bg/frs",l,n)}; D77.prototype.O8=function(l,n,O,L,X,F){this.S.O8("/client_streamz/bg/wrl",l,n,O,L,X,F)}; qi9.prototype.S=function(l,n){this.W.hM("/client_streamz/bg/ec",l,n)}; kki.prototype.O8=function(l,n,O,L){this.S.O8("/client_streamz/bg/el",l,n,O,L)}; ygi.prototype.S=function(l,n,O){this.W.hM("/client_streamz/bg/cec",l,n,O)}; Mqf.prototype.S=function(l,n,O){this.W.hM("/client_streamz/bg/po/csc",l,n,O)}; Q89.prototype.S=function(l,n,O){this.W.hM("/client_streamz/bg/po/ctav",l,n,O)}; efg.prototype.S=function(l,n,O){this.W.hM("/client_streamz/bg/po/cwsc",l,n,O)};g.nO(u1,Error);u1.prototype.name="CustomError";var lN9;var db=void 0,IL,eNv=typeof TextDecoder!=="undefined",I5i,m78=typeof String.prototype.isWellFormed==="function",Gk7=typeof TextEncoder!=="undefined";var ys=String.prototype.trim?function(l){return l.trim()}:function(l){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(l)[1]},yhg=/&/g,Mof=/</g,Qa9=/>/g,eQ5=/"/g,Ypi=/'/g,ja5=/\x00/g,k39=/[\x00&<>"']/;var fdk=Sq(1,!0),Yq=Sq(610401301,!1);Sq(899588437,!1);var Ksk=Sq(725719775,!1);Sq(651175828,!1);Sq(722764542,!1);Sq(2147483644,!1);Sq(2147483645,!1);Sq(2147483646,fdk);Sq(2147483647,!0);var j6=!!g.zk("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Gc,ad5=g.Be.navigator;Gc=ad5?ad5.userAgentData||null:null;var Rf8,ei,jz;Rf8=Array.prototype.indexOf?function(l,n){return Array.prototype.indexOf.call(l,n,void 0)}:function(l,n){if(typeof l==="string")return typeof n!=="string"||n.length!=1?-1:l.indexOf(n,0); for(var O=0;O<l.length;O++)if(O in l&&l[O]===n)return O;return-1}; g.Rzi=Array.prototype.lastIndexOf?function(l,n){return Array.prototype.lastIndexOf.call(l,n,l.length-1)}:function(l,n){var O=l.length-1; O<0&&(O=Math.max(0,l.length+O));if(typeof l==="string")return typeof n!=="string"||n.length!=1?-1:l.lastIndexOf(n,O);for(;O>=0;O--)if(O in l&&l[O]===n)return O;return-1}; g.ba=Array.prototype.forEach?function(l,n,O){Array.prototype.forEach.call(l,n,O)}:function(l,n,O){for(var L=l.length,X=typeof l==="string"?l.split(""):l,F=0;F<L;F++)F in X&&n.call(O,X[F],F,l)}; g.Jq=Array.prototype.filter?function(l,n,O){return Array.prototype.filter.call(l,n,O)}:function(l,n,O){for(var L=l.length,X=[],F=0,x=typeof l==="string"?l.split(""):l,Z=0;Z<L;Z++)if(Z in x){var J=x[Z]; n.call(O,J,Z,l)&&(X[F++]=J)}return X}; g.M9=Array.prototype.map?function(l,n,O){return Array.prototype.map.call(l,n,O)}:function(l,n,O){for(var L=l.length,X=Array(L),F=typeof l==="string"?l.split(""):l,x=0;x<L;x++)x in F&&(X[x]=n.call(O,F[x],x,l)); return X}; ei=Array.prototype.reduce?function(l,n,O){return Array.prototype.reduce.call(l,n,O)}:function(l,n,O){var L=O; (0,g.ba)(l,function(X,F){L=n.call(void 0,L,X,F,l)}); return L}; jz=Array.prototype.some?function(l,n){return Array.prototype.some.call(l,n,void 0)}:function(l,n){for(var O=l.length,L=typeof l==="string"?l.split(""):l,X=0;X<O;X++)if(X in L&&n.call(void 0,L[X],X,l))return!0; return!1}; g.Qv=Array.prototype.every?function(l,n,O){return Array.prototype.every.call(l,n,O)}:function(l,n,O){for(var L=l.length,X=typeof l==="string"?l.split(""):l,F=0;F<L;F++)if(F in X&&!n.call(O,X[F],F,l))return!1; return!0};Ut[" "]=function(){};var AS,tT,Kj7,Cpf,tMa,vnf,DU,lO,l56;g.qt=$q();g.rP=cga();g.RZ=Ik("Edge");g.tt=g.RZ||g.rP;AS=Ik("Gecko")&&!(kq(g.e6(),"WebKit")&&!Ik("Edge"))&&!(Ik("Trident")||Ik("MSIE"))&&!Ik("Edge");g.CJ=kq(g.e6(),"WebKit")&&!Ik("Edge");tT=sF();Kj7=K09();g.lG=f59();Cpf=S6();tMa=Ik("iPad");vnf=Ik("iPod");DU=pO();lO=kq(g.e6(),"KaiOS"); a:{var niO="",Ovs=function(){var l=g.e6();if(AS)return/rv:([^\);]+)(\)|;)/.exec(l);if(g.RZ)return/Edge\/([\d\.]+)/.exec(l);if(g.rP)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(l);if(g.CJ)return/WebKit\/(\S+)/.exec(l);if(g.qt)return/(?:Version)[ \/]?(\S+)/.exec(l)}(); Ovs&&(niO=Ovs?Ovs[1]:"");if(g.rP){var tQ,giO=g.Be.document;tQ=giO?giO.documentMode:void 0;if(tQ!=null&&tQ>parseFloat(niO)){l56=String(tQ);break a}}l56=niO}var xQi=l56,oq5={};var Ch,tP;g.Bz=BR();Ch=S6()||Ik("iPod");tP=Ik("iPad");g.kJ=zfg();g.G2=cR();g.Wo=i1()&&!pO();var ZO5={},Et=null,J08=AS||g.CJ||typeof g.Be.btoa=="function";var TD5=typeof Uint8Array!=="undefined",A05=!g.rP&&typeof btoa==="function",uuk=/[-_.]/g,r0i={"-":"+",_:"/",".":"="},qP={};DI.prototype.isEmpty=function(){return this.S==null}; DI.prototype.sizeBytes=function(){var l=yx(this);return l?l.length:0}; var Eqa;var DQf=void 0;var je=typeof Symbol==="function"&&typeof Symbol()==="symbol",L00=Yd("jas",void 0,!0),Xe=Yd(void 0,"1oa"),pm=Yd(void 0,Symbol()),bma=Yd(void 0,"0actk"),aL0=Yd(void 0,"8utk");Math.max.apply(Math,g.E(Object.values({t0J:1,TA2:2,wp2:4,BJf:8,VtQ:16,Q7o:32,XQF:64,bTf:128,nWo:256,INJ:512,EWm:1024,URm:2048,wR1:4096,Kf1:8192})));var GR=je?L00:"ifz",kca={ifz:{value:0,configurable:!0,writable:!0,enumerable:!1}},qF7=Object.defineProperties;var yO={},aa,Xes=[];IA(Xes,55);aa=Object.freeze(Xes);var TQf=Object.freeze({});var eiv=aA(function(l){return typeof l==="number"}),Qkk=aA(function(l){return typeof l==="string"}),YFq=aA(function(l){return typeof l==="boolean"}),xW=aA(function(l){return l!=null&&typeof l==="object"&&typeof l.then==="function"}),FC=aA(function(l){return!!l&&(typeof l==="object"||typeof l==="function")});var RA=typeof g.Be.BigInt==="function"&&typeof g.Be.BigInt(0)==="bigint";var N1=aA(function(l){return RA?l>=oi1&&l<=F0i:l[0]==="-"?jka(l,x7O):jka(l,hfk)}),x7O=Number.MIN_SAFE_INTEGER.toString(),oi1=RA?BigInt(Number.MIN_SAFE_INTEGER):void 0,hfk=Number.MAX_SAFE_INTEGER.toString(),F0i=RA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var kR0=typeof Uint8Array.prototype.slice==="function",tm=0,l3=0,lZg;var Up=typeof BigInt==="function"?BigInt.asIntN:void 0,fLf=typeof BigInt==="function"?BigInt.asUintN:void 0,T3=Number.isSafeInteger,ZZ=Number.isFinite,Pw=Math.trunc,$Q9=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var eo;var G3,wd5;g.h=DP5.prototype;g.h.init=function(l,n,O,L){L=L===void 0?{}:L;this.Q0=L.Q0===void 0?!1:L.Q0;l&&(l=Ng(l),this.W=l.buffer,this.B=l.n4,this.L=n||0,this.N=O!==void 0?this.L+O:this.W.length,this.S=this.L)}; g.h.free=function(){this.clear();YM.length<100&&YM.push(this)}; g.h.clear=function(){this.W=null;this.B=!1;this.S=this.N=this.L=0;this.Q0=!1}; g.h.reset=function(){this.S=this.L}; g.h.VV=function(){var l=this.V;l||(l=this.W,l=this.V=new DataView(l.buffer,l.byteOffset,l.byteLength));return l}; var YM=[];jI.prototype.free=function(){this.S.clear();this.W=this.L=-1;vg.length<100&&vg.push(this)}; jI.prototype.reset=function(){this.S.reset();this.N=this.S.S;this.W=this.L=-1}; var vg=[];g.h=VK.prototype;g.h.toJSON=function(){return Y6(this)}; g.h.OP=function(l){return JSON.stringify(Y6(this,l))}; g.h.clone=function(){var l=this.RO;return new this.constructor(d8(l,l[GR]|0,!1))}; g.h.n4=function(){return!!((this.RO[GR]|0)&2)}; g.h.Og=yO;g.h.toString=function(){return this.RO.toString()};var GR8,IIk;iV.prototype.length=function(){return this.S.length}; iV.prototype.end=function(){var l=this.S;this.S=[];return l};var RL=aL(),Zvu=aL(),JgF=aL(),we6=aL(),HvL=aL(),Agk=aL(),bvs=aL(),rg6=aL();var pdi=tX(function(l,n,O,L,X){if(l.W!==2)return!1;mP(l,oL(n,L,O),X);return!0},Stf),sA5=tX(function(l,n,O,L,X){if(l.W!==2)return!1; mP(l,oL(n,L,O),X);return!0},Stf),F_=Symbol(),gY=Symbol(),Kca=Symbol(),Caq=Symbol(),vO,l_;var U7D=Ze(function(l,n,O){if(l.W!==1)return!1;wY(n,O,QK(l.S));return!0},H3,bvs),ua6=Ze(function(l,n,O){if(l.W!==1)return!1; l=QK(l.S);wY(n,O,l===0?void 0:l);return!0},H3,bvs),P96=Ze(function(l,n,O,L){if(l.W!==1)return!1; gb(n,O,L,QK(l.S));return!0},H3,bvs),T9F=Ze(function(l,n,O){if(l.W!==0)return!1; wY(n,O,qg(l.S));return!0},Ap,HvL),W0L=Ze(function(l,n,O){if(l.W!==0)return!1; l=qg(l.S);wY(n,O,l===0?void 0:l);return!0},Ap,HvL),EiR=Ze(function(l,n,O,L){if(l.W!==0)return!1; gb(n,O,L,qg(l.S));return!0},Ap,HvL),N9k=Ze(function(l,n,O){if(l.W!==0)return!1; wY(n,O,kM(l.S));return!0},b_,we6),D7Q=Ze(function(l,n,O){if(l.W!==0)return!1; l=kM(l.S);wY(n,O,l===0?void 0:l);return!0},b_,we6),qi1=Ze(function(l,n,O,L){if(l.W!==0)return!1; gb(n,O,L,kM(l.S));return!0},b_,we6),kkF=Ze(function(l,n,O){if(l.W!==1)return!1; wY(n,O,Mg(l.S));return!0},function(l,n,O){im9(l,O,KD5(n))},Agk),ygF=Jp(function(l,n,O){if(l.W!==1&&l.W!==2)return!1; n=th(n,n[GR]|0,O,!1);if(l.W==2)for(O=kM(l.S)>>>0,O=l.S.S+O;l.S.S<O;)n.push(Mg(l.S));else n.push(Mg(l.S));return!0},function(l,n,O){n=hp(KD5,n,!1); if(n!=null)for(var L=0;L<n.length;L++)im9(l,O,n[L])},Agk),Mqi=Ze(function(l,n,O){if(l.W!==0)return!1; wY(n,O,eI(l.S));return!0},n6a,Zvu),Q81=Ze(function(l,n,O,L){if(l.W!==0)return!1; gb(n,O,L,eI(l.S));return!0},n6a,Zvu),lR=Ze(function(l,n,O){if(l.W!==2)return!1; wY(n,O,$M(l));return!0},Ojg,JgF),ef0=Jp(function(l,n,O){if(l.W!==2)return!1; l=$M(l);th(n,n[GR]|0,O,!1).push(l);return!0},function(l,n,O){n=hp(q1,n,!0); if(n!=null)for(var L=0;L<n.length;L++){var X=l,F=O,x=n[L];x!=null&&KU(X,F,d79(x))}},JgF),Yis=Ze(function(l,n,O,L){if(l.W!==2)return!1; gb(n,O,L,$M(l));return!0},Ojg,JgF),ng,Ob=void 0; Ob=Ob===void 0?RL:Ob;ng=new CU(function(l,n,O,L,X){if(l.W!==2)return!1;L=Ia(void 0,L,!0);th(n,n[GR]|0,O,!0).push(L);mP(l,L,X);return!0},function(l,n,O,L,X){if(Array.isArray(n))for(var F=0;F<n.length;F++)g6q(l,n[F],O,L,X)},Ob); var gq=tX(function(l,n,O,L,X,F){if(l.W!==2)return!1;nU(n,n[GR]|0,F,O);n=oL(n,L,O);mP(l,n,X);return!0},g6q),j8q=Ze(function(l,n,O){if(l.W!==2)return!1; wY(n,O,Yt9(l));return!0},function(l,n,O){n=Riq(n); n!=null&&KU(l,O,Ng(n).buffer)},rg6),GkQ=Jp(function(l,n,O){if(l.W!==2)return!1; l=Yt9(l);th(n,n[GR]|0,O,!1).push(l);return!0},function(l,n,O){n=hp(Riq,n,!1); if(n!=null)for(var L=0;L<n.length;L++){var X=l,F=O,x=n[L];x!=null&&KU(X,F,Ng(x).buffer)}},rg6),Lg=Ze(function(l,n,O){if(l.W!==0)return!1; wY(n,O,kM(l.S)>>>0);return!0},function(l,n,O){n=b3(n); n!=null&&n!=null&&(fU(l,O,0),SI(l.S,n))},aL()),m7k=Ze(function(l,n,O){if(l.W!==0)return!1; wY(n,O,kM(l.S));return!0},function(l,n,O){n=Hw(n); n!=null&&(n=parseInt(n,10),fU(l,O,0),$P9(l.S,n))},aL());g.u(Xwq,VK);g.u(UM,VK);var EM=[1,2,3];var I5q=[0,EM,Yis,qi1,Q81];var d71=[0,ng,[0,U7D,T9F]];g.u(u_,VK);var W3=[1,2,3];var $7Q=[0,W3,EiR,P96,gq,d71];g.u(P3,VK);var Vqi=[0,ng,I5q,$7Q];var B9c=[0,[1,2,3],gq,[0,lR,-1,Mqi],gq,[0,lR,-1,N9k,Mqi],gq,[0,lR]];g.u(Tl,VK);Tl.prototype.jN=function(){var l=Kj(this,3,q1,3,!0);Se(l);return l[void 0]};Tl.prototype.S=LWi([0,lR,B9c,ef0,ng,Vqi,kkF,ygF]);g.u(FWe,VK);var rhf=globalThis.trustedTypes,NL;qL.prototype.toString=function(){return this.S+""};ML.prototype.toString=function(){return this.S}; var P35=new ML("about:invalid#zClosurez");var Xga=Yu("tel"),gfe=Yu("sms"),uLi=[Yu("data"),Yu("http"),Yu("https"),Yu("mailto"),Yu("ftp"),new e8(function(l){return/^[^:]*([/?#]|$)/.test(l)})],T8a=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;IW.prototype.toString=function(){return this.S+""};c3.prototype.toString=function(){return this.S+""};pC.prototype.toString=function(){return this.S};var fC={};g.cgu=String.prototype.repeat?function(l,n){return l.repeat(n)}:function(l,n){return Array(n+1).join(l)};g.h=Od.prototype;g.h.isEnabled=function(){if(!g.Be.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Sc:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.h.set=function(l,n,O){var L=!1;if(typeof O==="object"){var X=O.zQJ;L=O.secure||!1;var F=O.domain||void 0;var x=O.path||void 0;var Z=O.Sc}if(/[;=\s]/.test(l))throw Error('Invalid cookie name "'+l+'"');if(/[;\r\n]/.test(n))throw Error('Invalid cookie value "'+n+'"');Z===void 0&&(Z=-1);O=F?";domain="+F:"";x=x?";path="+x:"";L=L?";secure":"";Z=Z<0?"":Z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Z*1E3)).toUTCString();this.S.cookie=l+"="+n+O+x+Z+L+(X!=null?";samesite="+ X:"")}; g.h.get=function(l,n){for(var O=l+"=",L=(this.S.cookie||"").split(";"),X=0,F;X<L.length;X++){F=ys(L[X]);if(F.lastIndexOf(O,0)==0)return F.slice(O.length);if(F==l)return""}return n}; g.h.remove=function(l,n,O){var L=this.get(l)!==void 0;this.set(l,"",{Sc:0,path:n,domain:O});return L}; g.h.pT=function(){return ge(this).keys}; g.h.yW=function(){return ge(this).values}; g.h.isEmpty=function(){return!this.S.cookie}; g.h.clear=function(){for(var l=ge(this).keys,n=l.length-1;n>=0;n--)this.remove(l[n])}; var dc=new Od(typeof document=="undefined"?null:document);LJ.prototype.compress=function(l){var n,O,L,X;return g.Y(function(F){switch(F.S){case 1:return n=new CompressionStream("gzip"),O=(new Response(n.readable)).arrayBuffer(),L=n.writable.getWriter(),g.Q(F,L.write((new TextEncoder).encode(l)),2);case 2:return g.Q(F,L.close(),3);case 3:return X=Uint8Array,g.Q(F,O,4);case 4:return F.return(new X(F.W))}})}; LJ.prototype.isSupported=function(l){return l<1024?!1:typeof CompressionStream!=="undefined"};g.u(Xb,VK);oC.prototype.setInterval=function(l){this.intervalMs=l;this.Yh&&this.enabled?(this.stop(),this.start()):this.Yh&&this.stop()}; oC.prototype.start=function(){var l=this;this.enabled=!0;this.Yh||(this.Yh=setTimeout(function(){l.tick()},this.intervalMs),this.W=this.S())}; oC.prototype.stop=function(){this.enabled=!1;this.Yh&&(clearTimeout(this.Yh),this.Yh=void 0)}; oC.prototype.tick=function(){var l=this;if(this.enabled){var n=Math.max(this.S()-this.W,0);n<this.intervalMs*.8?this.Yh=setTimeout(function(){l.tick()},this.intervalMs-n):(this.Yh&&(clearTimeout(this.Yh),this.Yh=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Yh=void 0};g.u(Fb,VK);g.u(xw,VK);g.h=g.AR.prototype;g.h.clone=function(){return new g.AR(this.x,this.y)}; g.h.XT=function(l){return l instanceof g.AR&&bf(this,l)}; g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.h.scale=function(l,n){this.x*=l;this.y*=typeof n==="number"?n:l;return this};g.h=g.re.prototype;g.h.clone=function(){return new g.re(this.width,this.height)}; g.h.aspectRatio=function(){return this.width/this.height}; g.h.isEmpty=function(){return!uf(this)}; g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.h.scale=function(l,n){this.width*=l;this.height*=typeof n==="number"?n:l;return this};var pw8="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");de.prototype.toString=function(){return this.S}; var IC={};new de(IC,"");var fZk=/^[a-z][a-z\d-]*$/i,KWq="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),RQq="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),toe=["action","formaction","href"];var nMi={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.h=Vj.prototype;g.h.De=function(l){return zB(this.S,l)}; g.h.getElementsByTagName=function(l,n){return(n||this.S).getElementsByTagName(String(l))}; g.h.mJ=function(l){return g.aC(l,this.S)}; g.h.setProperties=RC;g.h.createElement=function(l){return vM(this.S,l)}; g.h.appendChild=g.gT;g.h.append=function(l,n){XOk(BM(l),l,arguments,1)}; g.h.canHaveChildren=function(l){if(l.nodeType!=1)return!1;switch(l.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.h.removeNode=g.og;g.h.getChildren=function(l){return l.children!=void 0?l.children:Array.prototype.filter.call(l.childNodes,function(n){return n.nodeType==1})}; g.h.contains=g.Fg;g.u(J3,VK);J3.prototype.Mb=function(){return rb(this,1)};g.u(wT,VK);g.u(HE,VK);g.u(A3,VK);var hC9=["platform","platformVersion","architecture","model","uaFullVersion"],rT=new HE,bA=null;g.u(UN,VK);g.u(JX0,VK);g.u(uA,VK);g.u(PE,VK);PE.prototype.J=function(){return Fe(this,JX0,7)!==void 0}; PE.prototype.iX=function(){return xM(this,Xb,16)};g.u(T1,VK);T1.prototype.yZ=function(l){return TZ(this,2,l)};EN.prototype.yZ=function(l){this.S.yZ(l);return this}; EN.prototype.build=function(l,n,O,L,X,F){n=n===void 0?0:n;O=O===void 0?0:O;L=L===void 0?null:L;X=X===void 0?0:X;F=F===void 0?0:F;var x=xM(this.S,UN,1);if(Fe(x,A3,11)!==void 0){x=NF(this);var Z=new J3;Z=TZ(Z,1,this.W);Z=i3(Z,2,hh(this.isFinal));O=i3(Z,3,w8(O>0?O:void 0));O=i3(O,4,w8(X>0?X:void 0));O=i3(O,5,w8(F>0?F:void 0));X=O.RO;F=X[GR]|0;O=F&2?O:new O.constructor(d8(X,F,!0));hX(x,J3,10,O)}x=this.S.clone();O=Date.now().toString();x=i3(x,4,Ep(O));l=JX(x,PE,3,l.slice());L&&(x=new Fb,L=i3(x,13,w8(L)), x=new xw,L=hX(x,Fb,2,L),x=new uA,L=hX(x,xw,1,L),L=TZ(L,2,9),hX(l,uA,18,L));n&&UK(l,14,n);return l};var GZ9=function(){if(!g.Be.addEventListener||!Object.defineProperty)return!1;var l=!1,n=Object.defineProperty({},"passive",{get:function(){l=!0}}); try{var O=function(){}; g.Be.addEventListener("test",O,n);g.Be.removeEventListener("test",O,n)}catch(L){}return l}();var yL5=bUq("AnimationEnd"),xe=bUq("TransitionEnd");g.DB.prototype.W=0;g.DB.prototype.reset=function(){this.S=this.N=this.L;this.W=0}; g.DB.prototype.getValue=function(){return this.N};g.u(rX8,VK);var ivL=rY(rX8);g.u(Ugi,VK);var XJ=new function(){this.S=Ugi;this.isRepeated=0;this.W=xM;this.defaultValue=void 0};g.u(y$,g.V);g.h=y$.prototype;g.h.oz=function(){this.hU();this.W.stop();this.Cf.stop();g.V.prototype.oz.call(this)}; g.h.dispatch=function(l){if(l instanceof PE)this.log(l);else try{var n=new PE,O=l.OP();var L=uV(n,8,O);this.log(L)}catch(X){}}; g.h.log=function(l){if(this.z3){l=l.clone();var n=this.Fi++;l=UK(l,21,n);this.componentId&&uV(l,26,this.componentId);n=l;if(Wc9(n)==null){var O=Date.now();O=Number.isFinite(O)?O.toString():"0";i3(n,1,Ep(O))}pRv(Bw(n,15))!=null||UK(n,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(O=this.experimentIds.clone(),hX(n,Xb,16,O));n=this.S.length-1E3+1;n>0&&(this.S.splice(0,n),this.L+=n);this.S.push(l);this.mK||this.W.enabled||this.W.start()}}; g.h.flush=function(l,n){var O=this;if(this.S.length===0)l&&l();else if(this.Lf&&this.Y)this.N.W=3,EMf(this);else{var L=Date.now();if(this.wq>L&&this.Q5<L)n&&n("throttled");else{this.network&&(typeof this.network.Mb==="function"?HUg(this.N,this.network.Mb()):this.N.W=0);var X=this.N.build(this.S,this.L,this.V,this.Ue,this.NQ,this.Wm),F=this.Dy();if(F&&this.Hm===F)n&&n("stale-auth-token");else{this.S=[];this.W.enabled&&this.W.stop();this.L=0;L=X.OP();var x;this.T&&this.T.isSupported(L.length)&&(x=this.T.compress(L)); var Z=Tb7(this,L,F),J=function(A){O.B.reset();O.W.setInterval(O.B.getValue());if(A){var b=null;try{var r=JSON.stringify(JSON.parse(A.replace(")]}'\n","")));b=ivL(r)}catch(N){}if(b){A=Number;var U="-1";U=U===void 0?"0":U;var W;r=(W=Wc9(b))!=null?W:U;W=A(r);W>0&&(O.Q5=Date.now(),O.wq=O.Q5+W);b=XJ.S?XJ.W(b,XJ.S,175237375):XJ.W(b,175237375,null);if(b=b===null?void 0:b)b=xq(b,1,-1),b!==-1&&(O.B=new g.DB(b<1?1:b,3E5,.1),O.W.setInterval(O.B.getValue()))}}l&&l();O.V=0},w=function(A,b){var r=ok(X,PE,3); var U;var W=(U=pRv(Bw(X,14)))!=null?U:void 0;g.qF(O.B);O.W.setInterval(O.B.getValue());A===401&&F&&(O.Hm=F);W&&(O.L+=W);b===void 0&&(b=O.isRetryable(A));b&&(O.S=r.concat(O.S),O.mK||O.W.enabled||O.W.start());n&&n("net-send-failed",A);++O.V},H=function(){O.network&&O.network.send(Z,J,w)}; x?x.then(function(A){Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=A;Z.J4=2;H()},function(){H()}):H()}}}}; g.h.hU=function(){this.N.isFinal=!0;this.flush();this.N.isFinal=!1}; g.h.isRetryable=function(l){return 500<=l&&l<600||l===401||l===0};MF.prototype.send=function(l,n,O){var L=this,X,F,x,Z,J,w,H,A,b,r;return g.Y(function(U){switch(U.S){case 1:return F=(X=L.NT?new AbortController:void 0)?setTimeout(function(){X.abort()},l.timeoutMillis):void 0,g.We(U,2,3),x=Object.assign({},{method:l.requestType, headers:Object.assign({},l.requestHeaders)},l.body&&{body:l.body},l.withCredentials&&{credentials:"include"},{signal:l.timeoutMillis&&X?X.signal:null}),g.Q(U,fetch(l.url,x),5);case 5:Z=U.W;if(Z.status!==200){(J=O)==null||J(Z.status);U.D2(3);break}if((w=n)==null){U.D2(7);break}return g.Q(U,Z.text(),8);case 8:w(U.W);case 7:case 3:g.q7(U);clearTimeout(F);g.ki(U,0);break;case 2:H=g.D5(U);switch((A=H)==null?void 0:A.name){case "AbortError":(b=O)==null||b(408);break;default:(r=O)==null||r(400)}U.D2(3)}})}; MF.prototype.Mb=function(){return 4};g.u(Q$,g.V);Q$.prototype.iR=function(){this.B=!0;return this}; Q$.prototype.build=function(){this.network||(this.network=new MF);var l=new y$({logSource:this.logSource,Dy:this.Dy?this.Dy:B87,sessionIndex:this.sessionIndex,c7q:this.HX,Zo:this.L,mK:!1,iR:this.B,bC:this.bC,network:this.network});g.c(this,l);if(this.W){var n=this.W,O=NF(l.N);uV(O,7,n)}l.T=new LJ;this.componentId&&(l.componentId=this.componentId);this.Ue&&(l.Ue=this.Ue);this.pageId&&(l.pageId=this.pageId);this.S&&((O=this.S)?(l.experimentIds||(l.experimentIds=new Xb),n=l.experimentIds,O=O.OP(),uV(n, 4,O)):l.experimentIds&&i3(l.experimentIds,4));this.N&&(l.Lf=l.Y);AX9(l.N);this.network.yZ&&this.network.yZ(this.logSource);this.network.M13&&this.network.M13(l);return l};g.u(ew,g.V);ew.prototype.flush=function(l){l=l||[];if(l.length){for(var n=new FWe,O=[],L=0;L<l.length;L++){var X=l[L],F=g.Zja(X);O.push(F);X.clear()}JX(n,Tl,1,O);this.S.dispatch(n);this.S.flush()}};g.h=YQ.prototype;g.h.QN=function(l){var n=g.eq.apply(1,arguments),O=this.Ex(n);O?O.push(new yXf(l)):this.kx(l,n)}; g.h.kx=function(l){this.S.set(this.Ra(g.eq.apply(1,arguments)),[new yXf(l)])}; g.h.Ex=function(){var l=this.Ra(g.eq.apply(0,arguments));return this.S.has(l)?this.S.get(l):void 0}; g.h.Q7=function(){var l=this.Ex(g.eq.apply(0,arguments));return l&&l.length?l[0]:void 0}; g.h.clear=function(){this.S.clear()}; g.h.Ra=function(){var l=g.eq.apply(0,arguments);return l?l.join(","):"key"};g.u(jw,YQ);jw.prototype.N=function(l){var n=g.eq.apply(1,arguments),O=0,L=this.Q7(n);L&&(O=L.S);this.kx(O+l,n)};g.u(G1,YQ);G1.prototype.O8=function(l){this.QN(l,g.eq.apply(1,arguments))};g.mi.prototype.stopPropagation=function(){this.W=!0}; g.mi.prototype.preventDefault=function(){this.defaultPrevented=!0};g.nO(Ig,g.mi); Ig.prototype.init=function(l,n){var O=this.type=l.type,L=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;this.target=l.target||l.srcElement;this.currentTarget=n;n=l.relatedTarget;n||(O=="mouseover"?n=l.fromElement:O=="mouseout"&&(n=l.toElement));this.relatedTarget=n;L?(this.clientX=L.clientX!==void 0?L.clientX:L.pageX,this.clientY=L.clientY!==void 0?L.clientY:L.pageY,this.screenX=L.screenX||0,this.screenY=L.screenY||0):(this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY= l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0);this.button=l.button;this.keyCode=l.keyCode||0;this.key=l.key||"";this.charCode=l.charCode||(O=="keypress"?l.keyCode:0);this.ctrlKey=l.ctrlKey;this.altKey=l.altKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.pointerId=l.pointerId||0;this.pointerType=l.pointerType;this.state=l.state;this.S=l;l.defaultPrevented&&Ig.CN.preventDefault.call(this)}; Ig.prototype.stopPropagation=function(){Ig.CN.stopPropagation.call(this);this.S.stopPropagation?this.S.stopPropagation():this.S.cancelBubble=!0}; Ig.prototype.preventDefault=function(){Ig.CN.preventDefault.call(this);var l=this.S;l.preventDefault?l.preventDefault():l.returnValue=!1};var MI9="closure_listenable_"+(Math.random()*1E6|0);var QLg=0;g.h=V$.prototype;g.h.add=function(l,n,O,L,X){var F=l.toString();l=this.listeners[F];l||(l=this.listeners[F]=[],this.S++);var x=cE(l,n,L,X);x>-1?(n=l[x],O||(n.Tc=!1)):(n=new eCq(n,this.src,F,!!L,X),n.Tc=O,l.push(n));return n}; g.h.remove=function(l,n,O,L){l=l.toString();if(!(l in this.listeners))return!1;var X=this.listeners[l];n=cE(X,n,O,L);return n>-1?($Q(X[n]),g.t0(X,n),X.length==0&&(delete this.listeners[l],this.S--),!0):!1}; g.h.removeAll=function(l){l=l&&l.toString();var n=0,O;for(O in this.listeners)if(!l||O==l){for(var L=this.listeners[O],X=0;X<L.length;X++)++n,$Q(L[X]);delete this.listeners[O];this.S--}return n}; g.h.Zj=function(l,n,O,L){l=this.listeners[l.toString()];var X=-1;l&&(X=cE(l,n,O,L));return X>-1?l[X]:null}; g.h.hasListener=function(l,n){var O=l!==void 0,L=O?l.toString():"",X=n!==void 0;return g.Ed(this.listeners,function(F){for(var x=0;x<F.length;++x)if(!(O&&F[x].type!=L||X&&F[x].capture!=n))return!0;return!1})};var ag="closure_lm_"+(Math.random()*1E6|0),Cf={},IN0=0,t3="__closure_events_fn_"+(Math.random()*1E9>>>0);g.nO(g.vE,g.V);g.vE.prototype[MI9]=!0;g.h=g.vE.prototype;g.h.addEventListener=function(l,n,O,L){g.z1(this,l,n,O,L)}; g.h.removeEventListener=function(l,n,O,L){$g8(this,l,n,O,L)}; g.h.dispatchEvent=function(l){var n=this.f_;if(n){var O=[];for(var L=1;n;n=n.f_)O.push(n),++L}n=this.oF;L=l.type||l;if(typeof l==="string")l=new g.mi(l,n);else if(l instanceof g.mi)l.target=l.target||n;else{var X=l;l=new g.mi(L,n);g.mf(l,X)}X=!0;var F;if(O)for(F=O.length-1;!l.W&&F>=0;F--){var x=l.currentTarget=O[F];X=lK(x,L,!0,l)&&X}l.W||(x=l.currentTarget=n,X=lK(x,L,!0,l)&&X,l.W||(X=lK(x,L,!1,l)&&X));if(O)for(F=0;!l.W&&F<O.length;F++)x=l.currentTarget=O[F],X=lK(x,L,!1,l)&&X;return X}; g.h.oz=function(){g.vE.CN.oz.call(this);this.Es&&this.Es.removeAll(void 0);this.f_=null}; g.h.listen=function(l,n,O,L){return this.Es.add(String(l),n,!1,O,L)}; g.h.kq=function(l,n,O,L){return this.Es.add(String(l),n,!0,O,L)}; g.h.EC=function(l,n,O,L){this.Es.remove(String(l),n,O,L)}; g.h.Zj=function(l,n,O,L){return this.Es.Zj(String(l),n,O,L)}; g.h.hasListener=function(l,n){return this.Es.hasListener(l!==void 0?String(l):void 0,n)};var Lr=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(l){return l&&AsyncContext.Snapshot.wrap(l)}:function(l){return l};O6.prototype.get=function(){if(this.W>0){this.W--;var l=this.S;this.S=l.next;l.next=null}else l=this.N();return l};var X7;F7.prototype.add=function(l,n){var O=SK8.get();O.set(l,n);this.W?this.W.next=O:this.S=O;this.W=O}; F7.prototype.remove=function(){var l=null;this.S&&(l=this.S,this.S=this.S.next,this.S||(this.W=null),l.next=null);return l}; var SK8=new O6(function(){return new xo},function(l){return l.reset()}); xo.prototype.set=function(l,n){this.S=l;this.scope=n;this.next=null}; xo.prototype.reset=function(){this.next=this.scope=this.S=null};var ho,ZG=!1,iUv=new F7;fNi.prototype.reset=function(){this.context=this.W=this.N=this.S=null;this.L=!1}; var KPi=new O6(function(){return new fNi},function(l){l.reset()}); g.U6.prototype.then=function(l,n,O){return X30(this,Lr(typeof l==="function"?l:null),Lr(typeof n==="function"?n:null),O)}; g.U6.prototype.$goog_Thenable=!0;g.h=g.U6.prototype;g.h.finally=function(l){var n=this;l=Lr(l);return new Promise(function(O,L){le0(n,function(X){l();O(X)},function(X){l(); L(X)})})}; g.h.O9=function(l,n){return X30(this,null,Lr(l),n)}; g.h.catch=g.U6.prototype.O9;g.h.cancel=function(l){if(this.S==0){var n=new Nv(l);g.Jo(function(){nu5(this,n)},this)}}; g.h.A7F=function(l){this.S=0;ra(this,2,l)}; g.h.jpG=function(l){this.S=0;ra(this,3,l)}; g.h.KQ=function(){for(var l;l=OCf(this);)gu8(this,l,this.S,this.T);this.V=!1}; var hm0=Tc;g.nO(Nv,u1);Nv.prototype.name="cancel";g.nO(g.DG,g.vE);g.h=g.DG.prototype;g.h.enabled=!1;g.h.Kp=null;g.h.setInterval=function(l){this.vQ=l;this.Kp&&this.enabled?(this.stop(),this.start()):this.Kp&&this.stop()}; g.h.zfG=function(){if(this.enabled){var l=g.l1()-this.W9;l>0&&l<this.vQ*.8?this.Kp=this.RY.setTimeout(this.kM,this.vQ-l):(this.Kp&&(this.RY.clearTimeout(this.Kp),this.Kp=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}}; g.h.start=function(){this.enabled=!0;this.Kp||(this.Kp=this.RY.setTimeout(this.kM,this.vQ),this.W9=g.l1())}; g.h.stop=function(){this.enabled=!1;this.Kp&&(this.RY.clearTimeout(this.Kp),this.Kp=null)}; g.h.oz=function(){g.DG.CN.oz.call(this);this.stop();delete this.RY};g.u(g.yM,g.V);g.h=g.yM.prototype;g.h.sendIsolatedPayload=function(l){this.B=l;this.N=1}; g.h.bq=function(){var l=this.W.values();l=[].concat(g.E(l)).filter(function(n){return n.S.size}); l.length&&this.T.flush(l,this.B);w37(l);this.L=0;this.S.enabled&&this.S.stop()}; g.h.gH=function(l){var n=g.eq.apply(1,arguments);this.W.has(l)||this.W.set(l,new jw(l,n))}; g.h.j_=function(l){var n=g.eq.apply(1,arguments);this.W.has(l)||this.W.set(l,new G1(l,n))}; g.h.hM=function(l){this.dg(l,1,g.eq.apply(1,arguments))}; g.h.dg=function(l,n){var O=g.eq.apply(2,arguments),L=Jpq(this,l);L&&L instanceof jw&&(L.N(n,O),ZCi(this))}; g.h.O8=function(l,n){var O=g.eq.apply(2,arguments),L=Jpq(this,l);L&&L instanceof G1&&(L.O8(n,O),ZCi(this))};g.u(Mv,Error);Mv.prototype.toString=function(){var l="RpcError("+(wM0(this.code)||String(this.code))+")";this.message&&(l+=": "+this.message);return l};HJe.prototype.OP=function(l){var n=[];ej(this,l,n);return n.join("")}; var rRg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},bJ5=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var zf0;g.nO(Yo,ubg);Yo.prototype.S=function(){return new XMLHttpRequest}; zf0=new Yo;var da=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),DXi=/#|$/,qd8=/[?&]($|#)/;g.nO(g.ah,g.vE);var jCa=/^https?$/i,Siu=["POST","PUT"],yR5=[];g.h=g.ah.prototype;g.h.yN=function(){this.dispose();g.vR(yR5,this)}; g.h.send=function(l,n,O,L){if(this.S)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+l);n=n?n.toUpperCase():"GET";this.G=l;this.L="";this.W=0;this.NQ=!1;this.N=!0;this.S=this.Cf?this.Cf.S():zf0.S();this.S.onreadystatechange=Lr((0,g.tg)(this.zQ,this));try{this.getStatus(),this.Q5=!0,this.S.open(n,String(l),!0),this.Q5=!1}catch(x){this.getStatus();eKf(this,x);return}l=O||"";O=new Map(this.headers);if(L)if(Object.getPrototypeOf(L)===Object.prototype)for(var X in L)O.set(X, L[X]);else if(typeof L.keys==="function"&&typeof L.get==="function"){X=g.P(L.keys());for(var F=X.next();!F.done;F=X.next())F=F.value,O.set(F,L.get(F))}else throw Error("Unknown input type for opt_headers: "+String(L));L=Array.from(O.keys()).find(function(x){return"content-type"==x.toLowerCase()}); X=g.Be.FormData&&l instanceof g.Be.FormData;!g.CO(Siu,n)||L||X||O.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");n=g.P(O);for(L=n.next();!L.done;L=n.next())O=g.P(L.value),L=O.next().value,O=O.next().value,this.S.setRequestHeader(L,O);this.Lf&&(this.S.responseType=this.Lf);"withCredentials"in this.S&&this.S.withCredentials!==this.T&&(this.S.withCredentials=this.T);try{this.V&&(clearTimeout(this.V),this.V=null),this.Wm>0&&(this.getStatus(),this.V=setTimeout(this.XI.bind(this), this.Wm)),this.getStatus(),this.Y=!0,this.S.send(l),this.Y=!1}catch(x){this.getStatus(),eKf(this,x)}}; g.h.XI=function(){typeof Cr!="undefined"&&this.S&&(this.L="Timed out after "+this.Wm+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.h.abort=function(l){this.S&&this.N&&(this.getStatus(),this.N=!1,this.B=!0,this.S.abort(),this.B=!1,this.W=l||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rh(this))}; g.h.oz=function(){this.S&&(this.N&&(this.N=!1,this.B=!0,this.S.abort(),this.B=!1),Rh(this,!0));g.ah.CN.oz.call(this)}; g.h.zQ=function(){this.JG()||(this.Q5||this.Y||this.B?Ydi(this):this.Rti())}; g.h.Rti=function(){Ydi(this)}; g.h.isActive=function(){return!!this.S}; g.h.isComplete=function(){return g.to(this)==4}; g.h.getStatus=function(){try{return g.to(this)>2?this.S.status:-1}catch(l){return-1}}; g.h.getResponseHeader=function(l){if(this.S&&this.isComplete())return l=this.S.getResponseHeader(l),l===null?void 0:l}; g.h.getLastError=function(){return typeof this.L==="string"?this.L:String(this.L)};gh.prototype.send=function(l,n,O){n=n===void 0?function(){}:n; O=O===void 0?function(){}:O; MYf(l.url,function(L){L=L.target;v$(L)?n(g.l2(L)):O(L.getStatus())},l.requestType,l.body,l.requestHeaders,l.timeoutMillis,l.withCredentials)}; gh.prototype.Mb=function(){return 1};Xp.prototype.done=function(){this.logger.dN(this.event,LV()-this.startTime)}; g.u(oo,wD);g.u(xa,oo);g.h=xa.prototype;g.h.ZA=function(){}; g.h.yw=function(){}; g.h.dN=function(){}; g.h.hP=function(){}; g.h.au=function(){}; g.h.w2=function(l,n,O){return O}; g.h.I3=function(){}; g.h.Ug=function(){}; g.h.p7=function(){}; g.h.q9=function(){}; g.u(h_,oo);g.h=h_.prototype;g.h.update=function(l){this.logger.dispose();this.logger=l}; g.h.yw=function(l){this.logger.yw(l)}; g.h.dN=function(l,n){this.logger.dN(l,n)}; g.h.hP=function(l){this.logger.hP(l)}; g.h.au=function(){this.logger.au()}; g.h.w2=function(l,n,O){return this.logger.w2(l,n,O)}; g.h.I3=function(l){this.logger.I3(l)}; g.h.Ug=function(l){this.logger.Ug(l)}; g.h.p7=function(l){this.logger.p7(l)}; g.h.q9=function(l){this.logger.q9(l)}; g.h.Nt=function(l){this.logger instanceof wh&&this.logger.Nt(l)}; g.h.ZA=function(l){this.logger.ZA(l)}; g.u(Zk,g.V);g.u(J_,oo);g.h=J_.prototype;g.h.Nt=function(l){this.vR=l}; g.h.ZA=function(l){this.metrics.u7f.O8(l,this.IN)}; g.h.yw=function(l){this.metrics.eventCount.S(l,this.IN)}; g.h.dN=function(l,n){this.metrics.Gw.O8(n,l,this.vR,this.IN)}; g.h.hP=function(l){this.metrics.errorCount.S(l,this.vR,this.IN)}; g.h.w2=function(l,n,O){function L(x){if(!X.JG()){var Z=LV()-F;X.metrics.Nt1.O8(Z,l,n,x,X.vR,X.IN)}} var X=this,F=LV();O.then(function(){L(0)},function(x){x instanceof Mv?L(x.code):L(-1)}); return O}; g.h.I3=function(l){this.metrics.vtz.S(l,this.vR,this.IN)}; g.h.Ug=function(l){this.metrics.EW.S(l,this.vR,this.IN)}; g.h.p7=function(l){this.metrics.sNm.S(l,this.vR,this.IN)}; g.u(wh,J_);wh.prototype.q9=function(l){var n=this;this.S.dispose();this.W&&this.service.dispose();this.service=this.options.Ny("46",this.options.qI.concat(l));this.S=new Zk(function(){return void n.service.bq()},this.options.Au); this.metrics=mXk(this.service);this.N=l}; wh.prototype.au=function(){dXf(this.S)};g.u(Hq,VK);g.u(A_,VK);g.u(b2,VK);var pe6=rY(b2),VY9=function(l){return aA(function(n){return n instanceof l&&!((n.RO[GR]|0)&2)})}(b2); b2.messageId="bfkj";g.u(Fu,VK);g.u(rh,VK);var Be0=rY(rh);g.u(u2,g.V);u2.prototype.snapshot=function(l){if(this.JG())throw Error("Already disposed");this.logger.yw("n");var n=this.logger.share();return this.N.then(function(O){var L=O.VN;return new Promise(function(X){var F=new Xp(n,"n");L(function(x){F.done();n.ZA(x.length);n.au();n.dispose();X(x)},[l.SD, l.Lb,l.QX,l.Va])})})}; u2.prototype.JO=function(l){var n=this;if(this.JG())throw Error("Already disposed");this.logger.yw("n");var O=Fp(this.logger,function(){return n.L([l.SD,l.Lb,l.QX,l.Va])},"n"); this.logger.ZA(O.length);this.logger.au();return O}; u2.prototype.ZX=function(l){this.N.then(function(n){var O;(O=n.Jt5)==null||O(l)})}; u2.prototype.xX=function(){return this.logger.share()};g.u(E_,VK);g.u(NK,VK);Dk.prototype.iH=function(l,n){var O=this,L,X,F,x,Z;return g.Y(function(J){if(J.S==1){var w=new E_;L=PO(w,1,O.LY);l&&PO(L,2,l);n&&PO(L,3,n);X=O.S();return g.Q(J,O.client.create(L,X),2)}F=J.W;x=MP(Ra(F,2));if(x.length){w=J.return;var H=new Uint8Array(x.length);for(var A=0;A<x.length;A++)H[A]=x[A]+97;if(g.Be.TextDecoder)H=(new TextDecoder).decode(H);else if(H.length<=8192)H=String.fromCharCode.apply(null,H);else{A="";for(var b=0;b<H.length;b+=8192)A+=String.fromCharCode.apply(null,Array.prototype.slice.call(H, b,b+8192));H=A}H=pe6(H);return w.call(J,H)}Z=xM(F,b2,1);if(!Z)throw Error("Missing field");return J.return(Z)})}; Dk.prototype.mM=function(l){var n=this,O,L;return g.Y(function(X){O=n.S();var F=new NK;F=PO(F,1,n.LY);L=PO(F,2,l);F=X.return;var x=n.client;x=vQ8(x.S,x.W+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",L,O||{},s8D);return F.call(X,x)})};g.u(qK,g.V);qK.prototype.snapshot=function(l){var n=this;return g.Y(function(O){switch(O.S){case 1:if(n.JG())throw Error("Already disposed");if(n.W||n.T){O.D2(2);break}return g.Q(O,n.B.promise,2);case 2:if(!n.W){O.D2(4);break}return g.Q(O,n.W.snapshot(l),5);case 5:return O.return(O.W);case 4:throw n.T;}})}; qK.prototype.ZX=function(l){var n,O;(n=this.W)==null||(O=n.ZX)==null||O.call(n,l)}; qK.prototype.handleError=function(l){if(!this.JG()){this.T=l;this.B.resolve();var n,O;(O=(n=this.options).D5p)==null||O.call(n,l)}}; qK.prototype.xX=function(){return this.logger.share()}; var fF7={Z15:432E5,iD:3E5,Av:10,KH:1E4,OY:3E4,Off:3E4,lsf:6E4,pQ:1E3,jU:6E4,If:6E5,nQ:.25,Ac:2,maxAttempts:10};var f51,Ofv=(f51=Math.imul)!=null?f51:function(l,n){return l*n|0},eJ=[196, 200,224,18];Ya.prototype.OP=function(){return String(this.S)+","+this.W.join()}; Ya.prototype.f2=function(l,n){var O=void 0;if(this.W[this.S]!==l){var L=this.W.indexOf(l);L!==-1?(this.W.splice(L,1),L<this.S&&this.S--,this.W.splice(this.S,0,l)):(O=this.W[this.S],this.W[this.S]=l)}this.S=(this.S+1)%this.maxItems;l=nQi("iU5q-!O9@$",this.OP());O&&l&&n(O);return l};var Hf9={toString:function(l){var n=[],O=0;l-=-2147483648;n[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(l%52);for(l=Math.floor(l/52);l>0;)n[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(l%62),l=Math.floor(l/62);return n.join("")}};var bf9;g.u(GN,g.V);GN.prototype.Qg=function(l,n){var O=this.eC(l);n==null||n(O);return Fp(this.logger,function(){return g.Pd(O,2)},this.N)}; bf9=Symbol.dispose;g.u(dh,GN);dh.prototype.eC=function(l,n){var O=this;this.logger.yw(this.S);++this.B>=this.V&&this.W.resolve();var L=l();l=Fp(this.logger,function(){return O.L(L)},"C"); if(l===void 0)throw new Xu(17,"YNJ:Undefined");if(!(l instanceof Uint8Array))throw new Xu(18,"ODM:Invalid");n==null||n(l);return l}; g.u(Vh,GN);Vh.prototype.eC=function(){return this.L}; g.u(Bq,GN);Bq.prototype.eC=function(){var l=this;return Fp(this.logger,function(){return Wd(l.L)},"d")}; Bq.prototype.Qg=function(){return this.L}; g.u(cq,GN);cq.prototype.eC=function(){if(this.L)return this.L;this.L=r3e(this,function(l){return"_"+A35(l)}); return r3e(this,function(l){return l})}; g.u(zN,GN);zN.prototype.eC=function(l){var n=l();if(n.length>118)throw new Xu(19,"DFO:Invalid");l=Math.floor(Date.now()/1E3);var O=[Math.random()*255,Math.random()*255],L=O.concat([this.L&255,this.clientState],[l>>24&255,l>>16&255,l>>8&255,l&255]);l=new Uint8Array(2+L.length+n.length);l[0]=34;l[1]=L.length+n.length;l.set(L,2);l.set(n,2+L.length);n=l.subarray(2);for(L=O=O.length;L<n.length;++L)n[L]^=n[L%O];this.logger.I3(this.clientState);return l};var EQf={Zg:3E4,SP1:2E4};g.u(SJ,g.V);SJ.prototype.Pn=function(l){if(!(l>150))try{this.cache=new h69(l,this.logger)}catch(n){this.reportError(new Xu(22,"GBJ:init",n))}}; SJ.prototype.reportError=function(l){this.logger.hP(l.code);this.onError(l);return l}; g.u(KV,SJ);KV.prototype.eJ=function(){return this.L.promise}; KV.prototype.eC=function(l){return pV(this,Object.assign({},l),!1)}; KV.prototype.Qg=function(l){return pV(this,Object.assign({},l),!0)}; var NTv=function(l){return aA(function(n){if(!FC(n))return!1;for(var O=g.P(Object.entries(l)),L=O.next();!L.done;L=O.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;if(!(L in n)){if(X.msm===!0)continue;return!1}if(!X(n[L]))return!1}return!0})}({vl:function(l){return aA(function(n){return n instanceof l})}(qK)},"");g.u(Ro,VK);var K0D=rY(Ro);k1g.prototype.getMetadata=function(){return this.metadata};CV.prototype.getMetadata=function(){return this.metadata}; CV.prototype.getStatus=function(){return this.status};t_.prototype.T=function(l,n){n=n===void 0?{}:n;return new k1g(l,this,n)}; t_.prototype.getName=function(){return this.name};var a5D=new t_("/google.internal.waa.v1.Waa/Create",E_,Ro,function(l){return l.OP()},K0D);g.u(vq,VK);var s8D=new t_("/google.internal.waa.v1.Waa/GenerateIT",NK,vq,function(l){return l.OP()},rY(vq));var goa=new Set(["SAPISIDHASH","APISIDHASH"]);var R69=Promise;g.u(ls,VK);ls.prototype.getValue=function(){var l=Bw(this,2);if(Array.isArray(l)||l instanceof VK)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ra(this,2)};g.u(n2,VK);n2.prototype.getMessage=function(){return bV(this,2)}; var jga=rY(n2);Or.prototype.Dv=function(l,n){l=="data"?this.N.push(n):l=="metadata"?this.B.push(n):l=="status"?this.V.push(n):l=="end"?this.L.push(n):l=="error"&&this.W.push(n);return this}; Or.prototype.removeListener=function(l,n){l=="data"?Fq(this.N,n):l=="metadata"?Fq(this.B,n):l=="status"?Fq(this.V,n):l=="end"?Fq(this.L,n):l=="error"&&Fq(this.W,n);return this}; Or.prototype.cancel=function(){this.S.abort()}; Or.prototype.cancel=Or.prototype.cancel;Or.prototype.removeListener=Or.prototype.removeListener;Or.prototype.on=Or.prototype.Dv;g.u(Mwa,Error);g.nO(g.xU,ubg);g.xU.prototype.S=function(){var l=new hn(this.L,this.N);this.W&&l.setCredentialsMode(this.W);return l}; g.xU.prototype.setCredentialsMode=function(l){this.W=l}; g.nO(hn,g.vE);g.h=hn.prototype;g.h.open=function(l,n){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Wm=l;this.Y=n;this.readyState=1;Zo(this)}; g.h.send=function(l){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.S=!0;var n={headers:this.G,method:this.Wm,credentials:this.B,cache:void 0};l&&(n.body=l);(this.NQ||g.Be).fetch(new Request(this.Y,n)).then(this.h1F.bind(this),this.S8.bind(this))}; g.h.abort=function(){this.response=this.responseText="";this.G=new Headers;this.status=0;this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.S&&this.readyState!=4&&(this.S=!1,Jn(this));this.readyState=0}; g.h.h1F=function(l){if(this.S&&(this.L=l,this.W||(this.status=this.L.status,this.statusText=this.L.statusText,this.W=l.headers,this.readyState=2,Zo(this)),this.S&&(this.readyState=3,Zo(this),this.S)))if(this.responseType==="arraybuffer")l.arrayBuffer().then(this.ooF.bind(this),this.S8.bind(this));else if(typeof g.Be.ReadableStream!=="undefined"&&"body"in l){this.N=l.body.getReader();if(this.V){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.T=new TextDecoder;G10(this)}else l.text().then(this.dQm.bind(this),this.S8.bind(this))}; g.h.ZU=function(l){if(this.S){if(this.V&&l.value)this.response.push(l.value);else if(!this.V){var n=l.value?l.value:new Uint8Array(0);if(n=this.T.decode(n,{stream:!l.done}))this.response=this.responseText+=n}l.done?Jn(this):Zo(this);this.readyState==3&&G10(this)}}; g.h.dQm=function(l){this.S&&(this.response=this.responseText=l,Jn(this))}; g.h.ooF=function(l){this.S&&(this.response=l,Jn(this))}; g.h.S8=function(){this.S&&Jn(this)}; g.h.setRequestHeader=function(l,n){this.G.append(l,n)}; g.h.getResponseHeader=function(l){return this.W?this.W.get(l.toLowerCase())||"":""}; g.h.getAllResponseHeaders=function(){if(!this.W)return"";for(var l=[],n=this.W.entries(),O=n.next();!O.done;)O=O.value,l.push(O[0]+": "+O[1]),O=n.next();return l.join("\r\n")}; g.h.setCredentialsMode=function(l){this.B=l}; Object.defineProperty(hn.prototype,"withCredentials",{get:function(){return this.B==="include"}, set:function(l){this.setCredentialsMode(l?"include":"same-origin")}});g.wM.prototype.toString=function(){var l=[],n=this.B;n&&l.push(P1(n,Rfk,!0),":");var O=this.S;if(O||n=="file")l.push("//"),(n=this.G)&&l.push(P1(n,Rfk,!0),"@"),l.push(g.RW(O).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O=this.N,O!=null&&l.push(":",String(O));if(O=this.W)this.S&&O.charAt(0)!="/"&&l.push("/"),l.push(P1(O,O.charAt(0)=="/"?C91:tqO,!0));(O=this.L.toString())&&l.push("?",O);(O=this.V)&&l.push("#",P1(O,viD));return l.join("")}; g.wM.prototype.resolve=function(l){var n=this.clone(),O=!!l.B;O?g.H1(n,l.B):O=!!l.G;O?n.G=l.G:O=!!l.S;O?g.An(n,l.S):O=l.N!=null;var L=l.W;if(O)g.bs(n,l.N);else if(O=!!l.W){if(L.charAt(0)!="/")if(this.S&&!this.W)L="/"+L;else{var X=n.W.lastIndexOf("/");X!=-1&&(L=n.W.slice(0,X+1)+L)}X=L;if(X==".."||X==".")L="";else if(g.qQ(X,"./")||g.qQ(X,"/.")){L=NQ(X,"/");X=X.split("/");for(var F=[],x=0;x<X.length;){var Z=X[x++];Z=="."?L&&x==X.length&&F.push(""):Z==".."?((F.length>1||F.length==1&&F[0]!="")&&F.pop(), L&&x==X.length&&F.push("")):(F.push(Z),L=!0)}L=F.join("/")}else L=X}O?n.W=L:O=l.L.toString()!=="";O?rM(n,l.L.clone()):O=!!l.V;O&&(n.V=l.V);return n}; g.wM.prototype.clone=function(){return new g.wM(this)}; var Rfk=/[#\/\?@]/g,tqO=/[#\?:]/g,C91=/[#\?]/g,IB7=/[#\?@]/g,viD=/#/g;g.h=us.prototype;g.h.add=function(l,n){Er(this);this.N=null;l=NJ(this,l);var O=this.S.get(l);O||this.S.set(l,O=[]);O.push(n);this.W=this.W+1;return this}; g.h.remove=function(l){Er(this);l=NJ(this,l);return this.S.has(l)?(this.N=null,this.W=this.W-this.S.get(l).length,this.S.delete(l)):!1}; g.h.clear=function(){this.S=this.N=null;this.W=0}; g.h.isEmpty=function(){Er(this);return this.W==0}; g.h.forEach=function(l,n){Er(this);this.S.forEach(function(O,L){O.forEach(function(X){l.call(n,X,L,this)},this)},this)}; g.h.pT=function(){Er(this);for(var l=Array.from(this.S.values()),n=Array.from(this.S.keys()),O=[],L=0;L<n.length;L++)for(var X=l[L],F=0;F<X.length;F++)O.push(n[L]);return O}; g.h.yW=function(l){Er(this);var n=[];if(typeof l==="string")$Fi(this,l)&&(n=n.concat(this.S.get(NJ(this,l))));else{l=Array.from(this.S.values());for(var O=0;O<l.length;O++)n=n.concat(l[O])}return n}; g.h.set=function(l,n){Er(this);this.N=null;l=NJ(this,l);$Fi(this,l)&&(this.W=this.W-this.S.get(l).length);this.S.set(l,[n]);this.W=this.W+1;return this}; g.h.get=function(l,n){if(!l)return n;l=this.yW(l);return l.length>0?String(l[0]):n}; g.h.toString=function(){if(this.N)return this.N;if(!this.S)return"";for(var l=[],n=Array.from(this.S.keys()),O=0;O<n.length;O++){var L=n[O],X=g.RW(L);L=this.yW(L);for(var F=0;F<L.length;F++){var x=X;L[F]!==""&&(x+="="+g.RW(L[F]));l.push(x)}}return this.N=l.join("&")}; g.h.clone=function(){var l=new us;l.N=this.N;this.S&&(l.S=new Map(this.S),l.W=this.W);return l};g.nO(g.qJ,g.V);var lLu=[];g.h=g.qJ.prototype;g.h.listen=function(l,n,O,L){Array.isArray(n)||(n&&(lLu[0]=n.toString()),n=lLu);for(var X=0;X<n.length;X++){var F=g.z1(l,n[X],O||this.handleEvent,L||!1,this.W||this);if(!F)break;this.S[F.key]=F}return this}; g.h.kq=function(l,n,O,L){return c3a(this,l,n,O,L)}; g.h.EC=function(l,n,O,L,X){if(Array.isArray(n))for(var F=0;F<n.length;F++)this.EC(l,n[F],O,L,X);else O=O||this.handleEvent,L=g.Kv(L)?!!L.capture:!!L,X=X||this.W||this,O=ff(O),L=!!L,n=dT(l)?l.Zj(n,O,L,X):l?(l=Kf(l))?l.Zj(n,O,L,X):null:null,n&&(Rg(n),delete this.S[n.key])}; g.h.removeAll=function(){g.PM(this.S,function(l,n){this.S.hasOwnProperty(n)&&Rg(l)},this); this.S={}}; g.h.oz=function(){g.qJ.CN.oz.call(this);this.removeAll()}; g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};if8.prototype.isInputValid=function(){return this.N};kU.prototype.isInputValid=function(){return this.S!=3}; kU.prototype.gB=function(){return this.V}; kU.prototype.oD=function(){return!0}; kU.prototype.parse=function(l){function n(J){J&128&&yR(F,x,Z,"invalid tag");(J&7)!=2&&yR(F,x,Z,"invalid wire type");F.N=J>>>3;F.N!=1&&F.N!=2&&F.N!=15&&yR(F,x,Z,"unexpected tag");F.S=1;F.W=0;F.L=0} function O(J){F.L++;F.L==5&&J&240&&yR(F,x,Z,"message length too long");F.W|=(J&127)<<(F.L-1)*7;J&128||(F.S=2,F.G=0,typeof Uint8Array!=="undefined"?F.B=new Uint8Array(F.W):F.B=Array(F.W),F.W==0&&X())} function L(J){F.B[F.G++]=J;F.G==F.W&&X()} function X(){if(F.N<15){var J={};J[F.N]=F.B;F.T.push(J)}F.S=0} for(var F=this,x=l instanceof Array?l:new Uint8Array(l),Z=0;Z<x.length;){switch(F.S){case 3:yR(F,x,Z,"stream already broken");break;case 0:n(x[Z]);break;case 1:O(x[Z]);break;case 2:L(x[Z]);break;default:throw Error("unexpected parser state: "+F.S);}F.Y++;Z++}l=F.T;F.T=[];return l.length>0?l:null};MJ.prototype.isInputValid=function(){return this.S===null}; MJ.prototype.gB=function(){return this.S}; MJ.prototype.oD=function(){return!1}; MJ.prototype.parse=function(l){this.S!==null&&SN9(this,l,"stream already broken");var n=null;try{var O=this.N;O.N||z6i(O,l,"stream already broken");O.S+=l;var L=Math.floor(O.S.length/4);if(L==0)var X=null;else{try{var F=HO9(O.S.slice(0,L*4))}catch(x){z6i(O,O.S,x.message)}O.W+=L*4;O.S=O.S.slice(L*4);X=F}n=X===null?null:this.L.parse(X)}catch(x){SN9(this,l,x.message)}this.W+=l.length;return n};var nqi={INIT:0,Jg:1,wg:2,bO:3,H6:4,B6:5,STRING:6,Ey:7,cP:8,dO:9,h9:10,RM:11,Lv:12,Dt:13,Cv:14,VX:15,YB:16,xM:17,uC:18,Gl:19,qV:20};g.h=ea.prototype;g.h.isInputValid=function(){return this.B!=3}; g.h.gB=function(){return this.Y}; g.h.done=function(){return this.B===2}; g.h.oD=function(){return!1}; g.h.parse=function(l){function n(){for(;b<l.length;)if(QR(l[b]))b++,F.N++;else break;return b<w} function O(){for(var U;;){U=l[b++];if(!U)break;F.N++;switch(F.S){case J.INIT:U==="{"?F.S=J.wg:U==="["?F.S=J.H6:QR(U)||YU(F,l,b);continue;case J.Ey:case J.wg:if(QR(U))continue;if(F.S===J.Ey)x.push(J.cP);else if(U==="}"){X("{}");F.S=L();continue}else x.push(J.bO);U==='"'?F.S=J.STRING:YU(F,l,b);continue;case J.cP:case J.bO:if(QR(U))continue;U===":"?(F.S===J.bO&&(x.push(J.bO),F.W++),F.S=J.Jg):U==="}"?(F.W--,X(),F.S=L()):U===","?(F.S===J.bO&&x.push(J.bO),F.S=J.Ey):YU(F,l,b);continue;case J.H6:case J.Jg:if(QR(U))continue; if(F.S===J.H6)if(F.W++,F.S=J.Jg,U==="]"){F.W--;if(F.W===0){F.S=J.B6;return}X("[]");F.S=L();continue}else x.push(J.B6);U==='"'?F.S=J.STRING:U==="{"?F.S=J.wg:U==="["?F.S=J.H6:U==="t"?F.S=J.dO:U==="f"?F.S=J.Lv:U==="n"?F.S=J.YB:U!=="-"&&("0123456789".indexOf(U)!==-1?F.S=J.qV:YU(F,l,b));continue;case J.B6:if(U===",")x.push(J.B6),F.S=J.Jg,F.W===1&&(A=b);else if(U==="]"){F.W--;if(F.W===0)return;X();F.S=L()}else if(QR(U))continue;else YU(F,l,b);continue;case J.STRING:var W=b;a:for(;;){for(;F.G>0;)if(U=l[b++], F.G===4?F.G=0:F.G++,!U)break a;if(U==='"'&&!F.T){F.S=L();break}if(U==="\\"&&!F.T&&(F.T=!0,U=l[b++],!U))break;if(F.T)if(F.T=!1,U==="u"&&(F.G=1),U=l[b++])continue;else break;Z.lastIndex=b;U=Z.exec(l);if(!U){b=l.length+1;break}b=U.index+1;U=l[U.index];if(!U)break}F.N+=b-W;continue;case J.dO:if(!U)continue;U==="r"?F.S=J.h9:YU(F,l,b);continue;case J.h9:if(!U)continue;U==="u"?F.S=J.RM:YU(F,l,b);continue;case J.RM:if(!U)continue;U==="e"?F.S=L():YU(F,l,b);continue;case J.Lv:if(!U)continue;U==="a"?F.S=J.Dt: YU(F,l,b);continue;case J.Dt:if(!U)continue;U==="l"?F.S=J.Cv:YU(F,l,b);continue;case J.Cv:if(!U)continue;U==="s"?F.S=J.VX:YU(F,l,b);continue;case J.VX:if(!U)continue;U==="e"?F.S=L():YU(F,l,b);continue;case J.YB:if(!U)continue;U==="u"?F.S=J.xM:YU(F,l,b);continue;case J.xM:if(!U)continue;U==="l"?F.S=J.uC:YU(F,l,b);continue;case J.uC:if(!U)continue;U==="l"?F.S=L():YU(F,l,b);continue;case J.Gl:U==="."?F.S=J.qV:YU(F,l,b);continue;case J.qV:if("0123456789.eE+-".indexOf(U)!==-1)continue;else b--,F.N--,F.S= L();continue;default:YU(F,l,b)}}} function L(){var U=x.pop();return U!=null?U:J.Jg} function X(U){F.W>1||(U||(U=A===-1?F.L+l.substring(H,b):l.substring(A,b)),F.Wm?F.V.push(U):F.V.push(JSON.parse(U)),A=b)} for(var F=this,x=F.NQ,Z=F.Q5,J=nqi,w=l.length,H=0,A=-1,b=0;b<w;)switch(F.B){case 3:return YU(F,l,b),null;case 2:return n()&&YU(F,l,b),null;case 0:if(n()){var r=l[b++];F.N++;if(r==="["){F.B=1;H=b;F.S=J.H6;continue}else YU(F,l,b)}return null;case 1:return O(),F.W===0&&F.S==J.B6?(F.B=2,F.L=l.substring(b)):F.L=A===-1?F.L+l.substring(H):l.substring(A),F.V.length>0?(r=F.V,F.V=[],r):null}return null};Gf.prototype.isInputValid=function(){return this.B===null}; Gf.prototype.gB=function(){return this.B}; Gf.prototype.oD=function(){return!1}; Gf.prototype.parse=function(l){function n(J){F.W=6;F.B="The stream is broken @"+F.S+"/"+x+". Error: "+J+". With input:\n";throw Error(F.B);} function O(){F.N=new ea({RWq:!0,r0:!0})} function L(J){if(J)for(var w=0;w<J.length;w++){var H={};H[1]=J[w];F.L.push(H)}} function X(J){if(J){(F.V||J.length>1)&&n("extra status: "+J);F.V=!0;var w={};w[2]=J[0];F.L.push(w)}} for(var F=this,x=0;x<l.length;){var Z;if(Z=F.W!==2){a:{for(;x<l.length;){if(!QR(l[x])){Z=!0;break a}x++;F.S++}Z=!1}Z=!Z}if(Z)return null;switch(F.W){case 6:n("stream already broken");break;case 0:l[x]==="["?(F.W=1,x++,F.S++):n("unexpected input token");break;case 1:l[x]==="["?(F.W=2,O()):l[x]===","||l.slice(x,x+5)=="null,"?F.W=3:l[x]==="]"?(F.W=5,x++,F.S++):n("unexpected input token");break;case 2:Z=F.N.parse(l.substring(x));L(Z);F.N.done()?(F.W=3,Z=F.N.L,F.S+=l.length-x-Z.length,l=Z,x=0):(F.S+=l.length- x,x=l.length);break;case 3:l[x]===","||l.slice(x,x+5)=="null,"?(F.W=4,O(),F.N.parse("["),x+=l[x]===","?1:5,F.S++):l[x]==="]"&&(F.W=5,x++,F.S++);break;case 4:Z=F.N.parse(l.substring(x));X(Z);F.N.done()?(F.W=5,Z=F.N.L,F.S+=l.length-x-Z.length,l=Z,x=0):(F.S+=l.length-x,x=l.length);break;case 5:n("extra input after stream end")}}return F.L.length>0?(l=F.L,F.L=[],l):null};ma.prototype.SM=function(){return this.S}; ma.prototype.getStatus=function(){return this.B}; ma.prototype.Wm=function(l){l=l.target;try{if(l==this.S)a:{var n=g.to(this.S),O=this.S.W,L=this.S.getStatus(),X=g.l2(this.S);l=[];if(g.nV(this.S)instanceof Array){var F=g.nV(this.S);F.length>0&&F[0]instanceof Uint8Array&&(this.Y=!0,l=F)}if(!(n<3||n==3&&!X&&l.length==0))if(L=L==200||L==206,n==4&&(O==8?B1(this,7):O==7?B1(this,8):L||B1(this,3)),this.W||(this.W=pE8(this.S),this.W==null&&B1(this,5)),this.B>2)c1(this);else{if(l.length>this.N){var x=l.length;O=[];try{if(this.W.oD())for(var Z=0;Z<x;Z++){var J= this.W.parse(Array.from(l[Z]));J&&(O=O.concat(J))}else{J="";if(!this.V){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.V=new TextDecoder}for(Z=0;Z<x;Z++)J+=this.V.decode(l[Z],{stream:n==4&&Z==x-1});O=this.W.parse(J)}l.splice(0,x);O&&this.L(O)}catch(H){B1(this,5);c1(this);break a}}else if(X.length>this.N){Z=X.slice(this.N);this.N=X.length;try{var w=this.W.parse(Z);w!=null&&this.L&&this.L(w)}catch(H){B1(this,5);c1(this);break a}}n==4?(X.length!= 0||this.Y?B1(this,2):B1(this,4),c1(this)):B1(this,1)}}}catch(H){B1(this,6),c1(this)}};g.h=sgi.prototype;g.h.Dv=function(l,n){var O=this.W[l];O||(O=[],this.W[l]=O);O.push(n);return this}; g.h.addListener=function(l,n){this.Dv(l,n);return this}; g.h.removeListener=function(l,n){var O=this.W[l];O&&g.vR(O,n);(l=this.S[l])&&g.vR(l,n);return this}; g.h.once=function(l,n){var O=this.S[l];O||(O=[],this.S[l]=O);O.push(n);return this}; g.h.v4F=function(l){var n=this.W.data;n&&fBq(l,n);(n=this.S.data)&&fBq(l,n);this.S.data=[]}; g.h.k$3=function(){switch(this.N.getStatus()){case 1:is(this,"readable");break;case 5:case 6:case 4:case 7:case 3:is(this,"error");break;case 8:is(this,"close");break;case 2:is(this,"end")}};Ki5.prototype.serverStreaming=function(l,n,O,L){var X=this,F=l.substring(0,l.length-L.name.length);return aB0(function(x){var Z=x.P9,J=x.getMetadata(),w=lGi(X,!1);J=no9(X,J,w,F+Z.getName());var H=Or9(w,Z.W,!0);x=Z.S(x.q$);w.send(J,"POST",x);return H},this.L).call(this,L.T(n,O))};LYi.prototype.create=function(l,n){return vQ8(this.S,this.W+"/$rpc/google.internal.waa.v1.Waa/Create",l,n||{},a5D)};var OOO=1,RO=new WeakMap;g.u(zf,g.V);zf.prototype.signal=function(){var l=new p2(!1);this.signals.add(l);g.c(this,l);return l}; zf.prototype.Hi=function(l){return Sa(this,l).Hi()}; g.u(p2,g.V);g.h=p2.prototype;g.h.MV=function(){var l=this,n=OOO++;sr(function(){X$i(l,n)}); return n}; g.h.detach=function(l){var n=this;sr(function(){var O=n.slots.get(l);O&&O.wj()})}; g.h.value=function(l){return this.promise(!0,l)}; g.h.Hi=function(){return this.uB}; g.h.next=function(l){return this.promise(!1,l)}; g.h.promise=function(l,n){var O=this,L=vM0();sr(function(){if(O.JG())L.reject(new Nv("Signal initially disposed"));else if(n&&n.JG())L.reject(new Nv("Owner initially disposed"));else if(l&&O.OM&&O.Wz)L.resolve(O.uB);else if(O.XS.add(L),E6(L.promise,function(){O.XS.delete(L)}),n){var X=function(){L.reject(new Nv("Owner asynchronously disposed"))}; E6(L.promise,function(){var F=RO.get(n);F&&g.vR(F,X)}); xvq(n,X)}}); return L.promise}; g.h.oz=function(){var l=this;g.V.prototype.oz.call(this);sr(function(){for(var n=g.P(l.slots.values()),O=n.next();!O.done;O=n.next())O=O.value.wj,O();l.slots.clear();n=g.P(l.XS);for(O=n.next();!O.done;O=n.next())O.value.reject(new Nv("Signal asynchronously disposed"));l.XS.clear()})}; var K2=[],aO=!1;g.u(C2,g.V);C2.prototype.start=function(){var l=this;if(this.JG())throw new v1("Cannot start a disposed timer.");if(!this.V){this.L=0;if(this.T){var n=Date.now();this.handle=setInterval(function(){l.L=l.milliseconds>0?Math.trunc((Date.now()-n)/l.milliseconds):l.L+1;var O;(O=l.W)==null||O.resolve();l.W=void 0;if(l.N){var L;(L=l.S)!=null&&f2(Sa(L,l.N),l)}l.hA.F0(l)},this.milliseconds)}else this.handle=setTimeout(function(){l.state=3; l.handle=void 0;l.L=1;var O;(O=l.W)==null||O.resolve();l.W=void 0;if(l.N){var L;(L=l.S)!=null&&f2(Sa(L,l.N),l)}l.hA.F0(l)},this.milliseconds); this.state=1}}; C2.prototype.cancel=function(){if(this.V){this.clear();this.state=2;var l;(l=this.W)==null||l.reject(new tn);var n;(n=this.hA.uN)==null||n.call(this);if(this.B){var O;(O=this.S)!=null&&f2(Sa(O,this.B))}}}; C2.prototype.oz=function(){this.clear();var l;(l=this.W)==null||l.reject(new v1);this.state=4;g.V.prototype.oz.call(this)}; C2.prototype.clear=function(){this.T?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.xi.Object.defineProperties(C2.prototype,{V:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.L}}, G:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.W!=null||(this.W=new g.U_),this.W.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new tn("Timer has been cancelled."));case 4:return Promise.reject(new v1("Timer has been disposed."));default:FL(this.state)}}}, F0:{configurable:!0,enumerable:!0,get:function(){if(this.JG())throw new v1("Cannot attach a signal to a disposed timer.");this.N||(this.S!=null||(this.S=new zf(this)),this.N=this.S.signal());return this.N}}, uN:{configurable:!0,enumerable:!0,get:function(){if(this.JG())throw new v1("Cannot attach a signal to a disposed timer.");this.B||(this.S!=null||(this.S=new zf(this)),this.B=this.S.signal());return this.B}}}); g.u(tn,u1);g.u(v1,u1);g.u(lz,SJ);g.h=lz.prototype;g.h.isReady=function(){return!!this.S}; g.h.ready=function(){var l=this;return g.Y(function(n){return g.Q(n,l.N.promise,0)})}; g.h.iH=function(l){return Jo5(this,this.logger.w2("c",l===void 0?1:l,this.qq.iH(TN().S,null)),new Xu(10,"JVZ:Timeout"))}; g.h.prefetch=function(){this.state===1&&(this.Bt=this.iH())}; g.h.start=function(){if(this.state===1){this.state=2;var l=new Xp(this.logger,"r");this.ready().finally(function(){return void l.done()}); Hr5(this)}}; g.h.eC=function(l){Aov(this,l);return pV(this,Zr0(l),!1)}; g.h.Qg=function(l){Aov(this,l);return pV(this,Zr0(l),!0)};var u7v={NONE:0,WdG:1},tjq={NB:0,s4f:1,NHz:2,vQz:3},$C={pk:"a",Zef:"d",VIDEO:"v"};OO.prototype.isVisible=function(){return this.GY?this.II>=.3:this.II>=.5};var wS={Pl3:0,HBf:1},R7q={NONE:0,dmi:1,TbQ:2};gS.prototype.getValue=function(){return this.W}; g.u(LE,gS);LE.prototype.N=function(l){this.W===null&&g.yj(this.L,l)&&(this.W=l)}; g.u(XP,gS);XP.prototype.N=function(l){this.W===null&&typeof l==="number"&&(this.W=l)}; g.u(oB,gS);oB.prototype.N=function(l){this.W===null&&typeof l==="string"&&(this.W=l)};FP.prototype.disable=function(){this.W=!1}; FP.prototype.enable=function(){this.W=!0}; FP.prototype.isEnabled=function(){return this.W}; FP.prototype.reset=function(){this.S={};this.W=!0;this.N={}};var mC=document,rS=window;var lo5=!g.rP&&!i1();H4.prototype.now=function(){return 0}; H4.prototype.W=function(){return 0}; H4.prototype.N=function(){return 0}; H4.prototype.S=function(){return 0};g.u(bz,H4);bz.prototype.now=function(){return Af()&&rS.performance.now?rS.performance.now():H4.prototype.now.call(this)}; bz.prototype.W=function(){return Af()&&rS.performance.memory?rS.performance.memory.totalJSHeapSize||0:H4.prototype.W.call(this)}; bz.prototype.N=function(){return Af()&&rS.performance.memory?rS.performance.memory.usedJSHeapSize||0:H4.prototype.N.call(this)}; bz.prototype.S=function(){return Af()&&rS.performance.memory?rS.performance.memory.jsHeapSizeLimit||0:H4.prototype.S.call(this)};var WYa=Ao(function(){var l=!1;try{var n=Object.defineProperty({},"passive",{get:function(){l=!0}}); g.Be.addEventListener("test",null,n)}catch(O){}return l});Eo7.prototype.isVisible=function(){return P4(mC)===1};var Dvg={gt5:"allow-forms",J2f:"allow-modals",z8o:"allow-orientation-lock",Et5:"allow-pointer-lock",qu5:"allow-popups",wTF:"allow-popups-to-escape-sandbox",TtG:"allow-presentation",taz:"allow-same-origin",iMF:"allow-scripts",amq:"allow-top-navigation",XTo:"allow-top-navigation-by-user-activation"},Mje=Ao(function(){return q69()});var jhf=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ds.prototype.Ae=function(l,n,O){l=l+"//"+n+O;var L=dv7(this)-O.length;if(L<0)return"";this.S.sort(function(w,H){return w-H}); O=null;n="";for(var X=0;X<this.S.length;X++)for(var F=this.S[X],x=this.W[F],Z=0;Z<x.length;Z++){if(!L){O=O==null?F:O;break}var J=IGi(x[Z],this.N,",$");if(J){J=n+J;if(L>=J.length){L-=J.length;l+=J;n=this.N;break}O=O==null?F:O}}L="";O!=null&&(L=""+n+"trn="+O);return l+L};ji.prototype.setInterval=function(l,n){return rS.setInterval(l,n)}; ji.prototype.clearInterval=function(l){rS.clearInterval(l)}; ji.prototype.setTimeout=function(l,n){return rS.setTimeout(l,n)}; ji.prototype.clearTimeout=function(l){rS.clearTimeout(l)};g.u(m1,VK);m1.prototype.S=LWi([0,ua6,W0L,-2,D7Q]);var CKq={Iz3:1,W1:2,s7q:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};vo5.prototype.h6=function(l){if(typeof l==="string"&&l.length!=0){var n=this.z2;if(n.W){l=l.split("&");for(var O=l.length-1;O>=0;O--){var L=l[O].split("="),X=decodeURIComponent(L[0]);L.length>1?(L=decodeURIComponent(L[1]),L=/^[0-9]+$/g.exec(L)?parseInt(L,10):L):L=1;(X=n.S[X])&&X.N(L)}}}};var o9=null;var c4=g.Be.performance,gqR=!!(c4&&c4.mark&&c4.measure&&c4.clearMarks),Vv=Ao(function(){var l;if(l=gqR){var n=n===void 0?window:n;if(o9===null){o9="";try{l="";try{l=n.top.location.hash}catch(L){l=n.location.hash}if(l){var O=l.match(/\bdeid=([\d,]+)/);o9=O?O[1]:""}}catch(L){}}n=o9;l=!!n.indexOf&&n.indexOf("1337")>=0}return l}); B4.prototype.disable=function(){this.S=!1;this.events!==this.W.google_js_reporting_queue&&(Vv()&&g.ba(this.events,Xqi),this.events.length=0)}; B4.prototype.start=function(l,n){if(!this.S)return null;var O=gai()||OV9();l=new L50(l,n,O);n="goog_"+l.label+"_"+l.uniqueId+"_start";c4&&Vv()&&c4.mark(n);return l}; B4.prototype.end=function(l){if(this.S&&typeof l.value==="number"){var n=gai()||OV9();l.duration=n-l.value;n="goog_"+l.label+"_"+l.uniqueId+"_end";c4&&Vv()&&c4.mark(n);!this.S||this.events.length>2048||this.events.push(l)}};oav.prototype.mL=function(l,n,O,L,X){X=X||this.KG;try{var F=new Ds;F.S.push(1);F.W[1]=q9("context",l);n.error&&n.meta&&n.id||(n=new pE(sO(n)));if(n.msg){var x=n.msg.substring(0,512);F.S.push(2);F.W[2]=q9("msg",x)}var Z=n.meta||{};if(this.Il)try{this.Il(Z)}catch(r){}if(L)try{L(Z)}catch(r){}L=[Z];F.S.push(3);F.W[3]=L;var J=mv5();if(J.W){var w=J.W.url||"";F.S.push(4);F.W[4]=q9("top",w)}var H={url:J.S.url||""};if(J.S.url){var A=J.S.url.match(da);var b=jj(A[1],null,A[3],A[4])}else b="";w=[H,{url:b}];F.S.push(5); F.W[5]=w;lki(this.S,X,F,O)}catch(r){try{lki(this.S,X,{context:"ecmserr",rctx:l,msg:sO(r),url:J&&J.S.url},O)}catch(U){}}return this.Du}; g.u(pE,na5);var zS,Si,iz=new B4;zS=new function(){var l="https:";rS&&rS.location&&rS.location.protocol==="http:"&&(l="http:");this.W=l;this.S=.01}; Si=new oav;rS&&rS.document&&(rS.document.readyState=="complete"?xK5():iz.S&&uz(rS,"load",function(){xK5()}));var J_i=Date.now(),v4=-1,CE=-1,Mai,lE=-1,tf=!1;g.h=nl.prototype;g.h.getHeight=function(){return this.bottom-this.top}; g.h.clone=function(){return new nl(this.top,this.right,this.bottom,this.left)}; g.h.contains=function(l){return this&&l?l instanceof nl?l.left>=this.left&&l.right<=this.right&&l.top>=this.top&&l.bottom<=this.bottom:l.x>=this.left&&l.x<=this.right&&l.y>=this.top&&l.y<=this.bottom:!1}; g.h.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.h.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.h.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.h.scale=function(l,n){n=typeof n==="number"?n:l;this.left*=l;this.right*=l;this.top*=n;this.bottom*=n;return this};X5.prototype.XT=function(l,n){return!!l&&(!(n===void 0?0:n)||this.volume==l.volume)&&this.N==l.N&&gZ(this.S,l.S)&&!0};oj.prototype.De=function(){return this.T}; oj.prototype.XT=function(l,n){return this.L.XT(l.L,n===void 0?!1:n)&&this.T==l.T&&gZ(this.N,l.N)&&gZ(this.V,l.V)&&this.S==l.S&&this.B==l.B&&this.W==l.W&&this.G==l.G};var LDR={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},MO={cA:"start",Rk:"firstquartile",pu:"midpoint",OB:"thirdquartile",COMPLETE:"complete",ERROR:"error",jT:"metric",PAUSE:"pause",Mp:"resume",fu:"skip",SE:"viewable_impression",nu:"mute",Ys:"unmute",Qv:"fullscreen",dD:"exitfullscreen",kH:"bufferstart",cV:"bufferfinish",rD:"fully_viewable_audible_half_duration_impression",Ai:"measurable_impression",Aj:"abandon",v2:"engagedview",Cn:"impression",xJ:"creativeview",UB:"loaded", Mt2:"progress",CLOSE:"close",ieQ:"collapse",qsp:"overlay_resize",wHz:"overlay_unmeasurable_impression",TJ3:"overlay_unviewable_impression",iLF:"overlay_viewable_immediate_impression",ttf:"overlay_viewable_end_of_session_impression",Se:"custom_metric_viewable",IW:"audio_audible",Gr:"audio_measurable",nk:"audio_impression"},BS5="start firstquartile midpoint thirdquartile resume loaded".split(" "),cf8=["start","firstquartile","midpoint","thirdquartile"],eZv=["abandon"],aJ={UNKNOWN:-1,cA:0,Rk:1,pu:2, OB:3,COMPLETE:4,jT:5,PAUSE:6,Mp:7,fu:8,SE:9,nu:10,Ys:11,Qv:12,dD:13,rD:14,Ai:15,Aj:16,v2:17,Cn:18,xJ:19,UB:20,Se:21,kH:22,cV:23,nk:27,Gr:28,IW:29};var HV9={QNz:"addEventListener",iBJ:"getMaxSize",aNm:"getScreenSize",XRJ:"getState",yZi:"getVersion",xRJ:"removeEventListener",iZF:"isViewable"};g.h=g.xH.prototype;g.h.clone=function(){return new g.xH(this.left,this.top,this.width,this.height)}; g.h.contains=function(l){return l instanceof g.AR?l.x>=this.left&&l.x<=this.left+this.width&&l.y>=this.top&&l.y<=this.top+this.height:this.left<=l.left&&this.left+this.width>=l.left+l.width&&this.top<=l.top&&this.top+this.height>=l.top+l.height}; g.h.getSize=function(){return new g.re(this.width,this.height)}; g.h.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.h.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.h.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.h.scale=function(l,n){n=typeof n==="number"?n:l;this.left*=l;this.width*=l;this.top*=n;this.height*=n;return this};var UK9={};kN5.prototype.update=function(l){l&&l.document&&(this.T=F5(!1,l,this.isMobileDevice),this.S=F5(!0,l,this.isMobileDevice),MJ7(this,l),y_9(this,l))};dZ.prototype.cancel=function(){GS().clearTimeout(this.S);this.S=null}; dZ.prototype.schedule=function(){var l=this,n=GS(),O=dS().S.S;this.S=n.setTimeout(IB(O,KE(143,function(){l.W++;l.N.sample()})),wq9())};g.h=$H.prototype;g.h.Gt=function(){return!1}; g.h.initialize=function(){return this.isInitialized=!0}; g.h.aE=function(){return this.S.Cf}; g.h.mm=function(){return this.S.Wm}; g.h.No=function(l,n){if(!this.Wm||(n===void 0?0:n))this.Wm=!0,this.Cf=l,this.G=0,this.S!=this||BH(this)}; g.h.getName=function(){return this.S.wq}; g.h.XU=function(){return this.S.Ve()}; g.h.Ve=function(){return{}}; g.h.M1=function(){return this.S.G}; g.h.Qj=function(){var l=Gw();l.S=F5(!0,this.N,l.isMobileDevice)}; g.h.r4=function(){y_9(Gw(),this.N)}; g.h.PZ=function(){return this.L.S}; g.h.sample=function(){}; g.h.isActive=function(){return this.S.V}; g.h.KO=function(l){var n=this.S;this.S=l.M1()>=this.G?l:this;n!==this.S?(this.V=this.S.V,BH(this)):this.V!==this.S.V&&(this.V=this.S.V,BH(this))}; g.h.IL=function(l){if(l.W===this.S){var n=!this.L.XT(l,this.Y);this.L=l;n&&Y_9(this)}}; g.h.cO=function(){return this.Y}; g.h.dispose=function(){this.Lf=!0}; g.h.JG=function(){return this.Lf};g.h=cH.prototype;g.h.observe=function(){return!0}; g.h.unobserve=function(){}; g.h.xS=function(l){this.B=l}; g.h.dispose=function(){if(!this.JG()){var l=this.W;g.vR(l.B,this);l.Y&&this.cO()&&eFq(l);this.unobserve();this.Q5=!0}}; g.h.JG=function(){return this.Q5}; g.h.XU=function(){return this.W.XU()}; g.h.M1=function(){return this.W.M1()}; g.h.aE=function(){return this.W.aE()}; g.h.mm=function(){return this.W.mm()}; g.h.KO=function(){}; g.h.IL=function(){this.r7()}; g.h.cO=function(){return this.Lf};g.h=iE.prototype;g.h.M1=function(){return this.S.M1()}; g.h.aE=function(){return this.S.aE()}; g.h.mm=function(){return this.S.mm()}; g.h.create=function(l,n,O){var L=null;this.S&&(L=this.ZO(l,n,O),Vp(this.S,L));return L}; g.h.m7=function(){return this.KS()}; g.h.KS=function(){return!1}; g.h.init=function(l){return this.S.initialize()?(Vp(this.S,this),this.L=l,!0):!1}; g.h.KO=function(l){l.M1()==0&&this.L(l.aE(),this)}; g.h.IL=function(){}; g.h.cO=function(){return!1}; g.h.dispose=function(){this.B=!0}; g.h.JG=function(){return this.B}; g.h.XU=function(){return{}};zw.prototype.add=function(l,n,O){++this.N;l=new GNa(l,n,O);this.S.push(new GNa(l.W,l.S,l.N+this.N/4096));this.W=!0;return this};VJ7.prototype.toString=function(){var l="//pagead2.googlesyndication.com//pagead/gen_204",n=pl(this.S);n.length>0&&(l+="?"+n);return l};so.prototype.update=function(l,n,O){l&&(this.S+=n,this.W+=n,this.L+=n,this.N=Math.max(this.N,this.L));if(O===void 0?!l:O)this.L=0};var S_e=[1,.75,.5,.3,0];fl.prototype.update=function(l,n,O,L,X,F){F=F===void 0?!0:F;n=X?Math.min(l,n):n;for(X=0;X<this.W.length;X++){var x=this.W[X],Z=n>0&&n>=x;x=!(l>0&&l>=x)||O;this.S[X].update(F&&Z,L,!F||x)}};vH.prototype.update=function(l,n,O,L){this.T=this.T!=-1?Math.min(this.T,n.II):n.II;this.NQ=Math.max(this.NQ,n.II);this.Q5=this.Q5!=-1?Math.min(this.Q5,n.cR):n.cR;this.Cf=Math.max(this.Cf,n.cR);this.Yo.update(n.cR,O.cR,n.S,l,L);this.Hm+=l;n.II===0&&(this.wq+=l);this.W.update(n.II,O.II,n.S,l,L);O=L||O.GY!=n.GY?O.isVisible()&&n.isVisible():O.isVisible();n=!n.isVisible()||n.S;this.Pm.update(O,l,n)}; vH.prototype.SC=function(){return this.Pm.N>=this.Of};if(mC&&mC.URL){var XRD=mC.URL,oqL;if(oqL=!!XRD){var FDc;a:{if(XRD){var xQF=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var FJ=xQF.exec(decodeURIComponent(XRD));if(FJ){FDc=FJ[1]&&FJ[1].length>1?FJ[1].substring(1):"true";break a}}catch(l){}}FDc=""}oqL=FDc.length>0}Si.Du=!oqL};var hiD=new nl(0,0,0,0);var tJ0=new nl(0,0,0,0);g.u(LQ,g.V);g.h=LQ.prototype; g.h.oz=function(){if(this.BR.S){if(this.oS.T4){var l=this.BR.S;l.removeEventListener&&l.removeEventListener("mouseover",this.oS.T4,UO());this.oS.T4=null}this.oS.wX&&(l=this.BR.S,l.removeEventListener&&l.removeEventListener("mouseout",this.oS.wX,UO()),this.oS.wX=null)}this.Y2&&this.Y2.dispose();this.bK&&this.bK.dispose();delete this.b_;delete this.LW;delete this.vV;delete this.BR.oB;delete this.BR.S;delete this.oS;delete this.Y2;delete this.bK;delete this.z2;g.V.prototype.oz.call(this)}; g.h.PX=function(){return this.bK?this.bK.S:this.position}; g.h.h6=function(l){dS().h6(l)}; g.h.cO=function(){return!1}; g.h.UQ=function(){return new vH}; g.h.yO=function(){return this.b_}; g.h.J3=function(l){return O2v(this,l,1E4)}; g.h.y5=function(l,n,O,L,X,F,x){this.bG||(this.VT&&(l=this.ue(l,O,X,x),L=L&&this.BT.II>=(this.GY()?.3:.5),this.x$(F,l,L),this.iW=n,l.II>0&&-1===this.aX&&(this.aX=n),this.IX==-1&&this.SC()&&(this.IX=n),this.RH==-2&&(this.RH=O4(this.PX())?l.II:-1),this.BT=l),this.LW(this))}; g.h.x$=function(l,n,O){this.yO().update(l,n,this.BT,O)}; g.h.nF=function(){return new OO}; g.h.ue=function(l,n,O,L){O=this.nF();O.S=n;n=GS().W;n=P4(mC)===0?-1:n.isVisible()?0:1;O.W=n;O.II=this.qC(l);O.GY=this.GY();O.cR=L;return O}; g.h.qC=function(l){return this.opacity===0&&Zs(this.z2,"opac")===1?0:l}; g.h.GY=function(){return!1}; g.h.W7=function(){return this.AGi||this.I2m}; g.h.mU=function(){RB()}; g.h.Ml=function(){RB()}; g.h.m3=function(){return 0}; g.h.SC=function(){return this.b_.SC()}; g.h.j$=function(){var l=this.VT;l=(this.hasCompleted||this.JG())&&!l;var n=dS().W!==2||this.a9q;return this.bG||n&&l?2:this.SC()?4:3}; g.h.CA=function(){return 0};g.oJ.prototype.next=function(){return g.xl}; g.xl={done:!0,value:void 0};g.oJ.prototype.LL=function(){return this};g.u(xJk,OO);var hd=Z2i([void 0,1,2,3,4,8,16]),ZS=Z2i([void 0,4,8,16]),ZOL={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Z$("p0",ZS),p1:Z$("p1",ZS),p2:Z$("p2",ZS),p3:Z$("p3",ZS),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:hq("mtos1",[0,2,4],!1,ZS),mtos2:hq("mtos2",[0,2,4],!1,ZS),mtos3:hq("mtos3",[0,2,4],!1,ZS),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Z$("a0",ZS),a1:Z$("a1",ZS),a2:Z$("a2",ZS),a3:Z$("a3",ZS),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:Z$("c0",ZS),c1:Z$("c1",ZS),c2:Z$("c2",ZS),c3:Z$("c3",ZS),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Z$("qmtos",hd),qnc:Z$("qnc",hd),qmv:Z$("qmv",hd),qnv:Z$("qnv",hd), 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:Z$("ss0",ZS),ss1:Z$("ss1",ZS),ss2:Z$("ss2",ZS),ss3:Z$("ss3",ZS),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"},J0k=Object.assign({},ZOL,{avid:wa("audio"),avas:"avas",vs:"vs"}),wRi={atos:"atos",avt:hq("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(l,n){return function(O){return O[l]===void 0&&n!==void 0?n:O[l]}}("ss",0), t:"t"};Aq.prototype.getValue=function(){return this.W}; Aq.prototype.update=function(l,n){l>=32||(this.S&1<<l&&!n?this.W&=~(1<<l):this.S&1<<l||!n||(this.W|=1<<l),this.S|=1<<l)};g.u(bc,vH); bc.prototype.update=function(l,n,O,L){if(!n.paused){vH.prototype.update.call(this,l,n,O,L);var X=xk(n)&&xk(O),F=(L?Math.min(n.II,O.II):O.II)>=.5;YH(n.volume)&&(this.L=this.L!=-1?Math.min(this.L,n.volume):n.volume,this.V=Math.max(this.V,n.volume));F&&(this.Lf+=l,this.Y+=X?l:0);this.S.update(n.II,O.II,n.S,l,L,X);this.N.update(!0,l);this.B.update(X,l);this.Wm.update(O.fullscreen,l);this.uv.update(X&&!F,l);l=Math.floor(n.mediaTime/1E3);this.z3.update(l,n.isVisible());this.nf.update(l,n.II>=1);this.G3.update(l, xk(n))}};rni.prototype.W=function(l){this.N||(this.S(l)?(l=yfv(this.Y,this.L,l),this.B|=l,l=l==0):l=!1,this.N=l)};g.u(U4,rni);U4.prototype.S=function(){return!0}; U4.prototype.V=function(){return!1}; U4.prototype.getId=function(){var l=this,n=MX(MO,function(O){return O==l.L}); return aJ[n].toString()}; U4.prototype.toString=function(){var l="";this.V()&&(l+="c");this.N&&(l+="s");this.B>0&&(l+=":"+this.B);return this.getId()+l};g.u(uc,U4);uc.prototype.W=function(l,n){n=n===void 0?null:n;n!=null&&this.T.push(n);U4.prototype.W.call(this,l)};g.u(Px,UJ7);Px.prototype.W=function(){return null}; Px.prototype.N=function(){return[]};g.u(TU,cH);g.h=TU.prototype;g.h.Wn=function(){if(this.element){var l=this.element,n=this.W.S.N;try{try{var O=Nh5(l.getBoundingClientRect())}catch(w){O=new nl(0,0,0,0)}var L=O.right-O.left,X=O.bottom-O.top,F=Thg(l,n),x=F.x,Z=F.y;var J=new nl(Math.round(Z),Math.round(x+L),Math.round(Z+X),Math.round(x))}catch(w){J=hiD.clone()}this.N=J;this.S=jog(this,this.N)}}; g.h.ZV=function(){this.V=this.W.L.S}; g.h.n0=function(l){var n=Zs(this.z2,"od")==1;return C25(l,this.V,this.element,n)}; g.h.YM=function(){this.timestamp=RB()}; g.h.r7=function(){this.YM();this.Wn();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var l=this.element;var n=new g.re(l.videoWidth,l.videoHeight);l=this.S;var O=Oo(l),L=l.getHeight(),X=n.width;n=n.height;X<=0||n<=0||O<=0||L<=0||(X/=n,n=O/L,l=l.clone(),X>n?(O/=X,L=(L-O)/2,L>0&&(L=l.top+L,l.top=Math.round(L),l.bottom=Math.round(L+O))):(L*=X,O=Math.round((O-L)/2),O>0&&(O=l.left+O,l.left=Math.round(O),l.right=Math.round(O+L))));this.S=l}this.ZV(); l=this.S;O=this.V;l=l.left<=O.right&&O.left<=l.right&&l.top<=O.bottom&&O.top<=l.bottom?new nl(Math.max(l.top,O.top),Math.min(l.right,O.right),Math.min(l.bottom,O.bottom),Math.max(l.left,O.left)):new nl(0,0,0,0);O=l.top>=l.bottom||l.left>=l.right?new nl(0,0,0,0):l;l=this.W.L;n=X=L=0;if((this.S.bottom-this.S.top)*(this.S.right-this.S.left)>0)if(this.n0(O))O=new nl(0,0,0,0);else{L=Gw().L;n=new nl(0,L.height,L.width,0);var F;L=gw(O,(F=this.B)!=null?F:this.S);X=gw(O,Gw().S);n=gw(O,n)}F=O.top>=O.bottom|| O.left>=O.right?new nl(0,0,0,0):Ll(O,-this.S.left,-this.S.top);Ij()||(X=L=0);this.Y=new oj(l,this.element,this.S,F,L,X,this.timestamp,n)}; g.h.getName=function(){return this.W.getName()};var HOD=new nl(0,0,0,0);g.u(Wx,TU);g.h=Wx.prototype;g.h.observe=function(){this.L();return!0}; g.h.IL=function(){TU.prototype.r7.call(this)}; g.h.YM=function(){}; g.h.Wn=function(){}; g.h.r7=function(){this.L();TU.prototype.r7.call(this)}; g.h.KO=function(l){l=l.isActive();l!==this.G&&(l?this.L():(Gw().S=new nl(0,0,0,0),this.S=new nl(0,0,0,0),this.V=new nl(0,0,0,0),this.timestamp=-1));this.G=l};var Jd={},yn9=(Jd.firstquartile=0,Jd.midpoint=1,Jd.thirdquartile=2,Jd.complete=3,Jd);g.u(NO,LQ);g.h=NO.prototype;g.h.cO=function(){return!0}; g.h.OS=function(){return this.U9==2}; g.h.J3=function(l){return O2v(this,l,Math.max(1E4,this.N/3))}; g.h.y5=function(l,n,O,L,X,F,x){var Z=this,J=this.T(this)||{};g.mf(J,X);this.N=J.duration||this.N;this.Y=J.isVpaid||this.Y;this.wq=J.isYouTube||this.wq;GS();this.Yo=!1;X=Psf(this,n);uqv(this)===1&&(F=X);LQ.prototype.y5.call(this,l,n,O,L,J,F,x);this.dP&&this.dP.N&&g.ba(this.V,function(w){w.W(Z)})}; g.h.x$=function(l,n,O){LQ.prototype.x$.call(this,l,n,O);kk(this).update(l,n,this.BT,O);this.Of=xk(this.BT)&&xk(n);this.Cf==-1&&this.nf&&(this.Cf=this.yO().N.S);this.YY.N=0;l=this.SC();n.isVisible()&&Hx(this.YY,"vs");l&&Hx(this.YY,"vw");YH(n.volume)&&Hx(this.YY,"am");xk(n)?Hx(this.YY,"a"):Hx(this.YY,"mut");this.us&&Hx(this.YY,"f");n.W!=-1&&(Hx(this.YY,"bm"),n.W==1&&(Hx(this.YY,"b"),xk(n)&&Hx(this.YY,"umutb")));xk(n)&&n.isVisible()&&Hx(this.YY,"avs");this.Of&&l&&Hx(this.YY,"avw");n.II>0&&Hx(this.YY, "pv");yV(this,this.yO().N.S,!0)&&Hx(this.YY,"gdr");Cl(this.yO().W,1)>=2E3&&Hx(this.YY,"pmx");this.Yo&&Hx(this.YY,"tvoff")}; g.h.UQ=function(){return new bc}; g.h.yO=function(){return this.b_}; g.h.nF=function(){return new xJk}; g.h.ue=function(l,n,O,L){l=LQ.prototype.ue.call(this,l,n,O,L===void 0?-1:L);l.fullscreen=this.us;l.paused=this.OS();l.volume=O.volume;YH(l.volume)||(this.oO++,n=this.BT,YH(n.volume)&&(l.volume=n.volume));O=O.currentTime;l.mediaTime=O!==void 0&&O>=0?O:-1;return l}; g.h.qC=function(l){return Gw(),this.us?1:LQ.prototype.qC.call(this,l)}; g.h.m3=function(){return 1}; g.h.getDuration=function(){return this.N}; g.h.j$=function(){return this.bG?2:Wai(this)?5:this.SC()?4:3}; g.h.CA=function(){return this.uv?this.yO().B.N>=2E3?4:3:2}; g.h.xS=function(l){this.bK&&this.bK.xS(l)};var A0s=g.l1();Va9.prototype.reset=function(){this.S=[];this.W=[]}; var GU=YC(Va9);g.u(dw,iE);g.h=dw.prototype;g.h.getName=function(){return(this.W?this.W:this.S).getName()}; g.h.XU=function(){return(this.W?this.W:this.S).XU()}; g.h.M1=function(){return(this.W?this.W:this.S).M1()}; g.h.init=function(l){var n=!1;(0,g.ba)(this.N,function(O){O.initialize()&&(n=!0)}); n&&(this.L=l,Vp(this.S,this));return n}; g.h.dispose=function(){(0,g.ba)(this.N,function(l){l.dispose()}); iE.prototype.dispose.call(this)}; g.h.m7=function(){return jz(this.N,function(l){return l.Gt()})}; g.h.KS=function(){return jz(this.N,function(l){return l.Gt()})}; g.h.ZO=function(l,n,O){return new TU(l,this.S,n,O)}; g.h.IL=function(l){this.W=l.W};var Kai={threshold:[0,.3,.5,.75,1]};g.u($k,TU);g.h=$k.prototype;g.h.observe=function(){var l=this;this.NQ||(this.NQ=RB());if(ZVg(298,function(){return aoq(l)}))return!0; this.W.No("msf");return!1}; g.h.unobserve=function(){if(this.L&&this.element)try{this.L.unobserve(this.element),this.G?(this.G.unobserve(this.element),this.G=null):this.T&&(this.T.disconnect(),this.T=null)}catch(l){}}; g.h.r7=function(){var l=VV(this);l.length>0&&Bx(this,l);TU.prototype.r7.call(this)}; g.h.Wn=function(){}; g.h.n0=function(){return!1}; g.h.ZV=function(){}; g.h.XU=function(){var l={};return Object.assign(this.W.XU(),(l.niot_obs=this.NQ,l.niot_cbk=this.Wm,l))}; g.h.getName=function(){return"nio"};g.u(cx,iE);cx.prototype.getName=function(){return"nio"}; cx.prototype.KS=function(){return!Gw().W&&this.S.S.N.IntersectionObserver!=null}; cx.prototype.ZO=function(l,n,O){return new $k(l,this.S,n,O)};g.u(ic,$H);ic.prototype.PZ=function(){return Gw().S}; ic.prototype.Gt=function(){var l=Cs8();this.G!==l&&(this.S!=this&&l>this.S.G&&(this.S=this,BH(this)),this.G=l);return l==2};zU.prototype.sample=function(){s4(this,m4(),!1)}; zU.prototype.L=function(){var l=Ij(),n=RB();l?(tf||(v4=n,g.ba(GU.S,function(O){var L=O.yO();L.Fi=rw(L,n,O.U9!=1)})),tf=!0):(this.T=OE9(this,n),tf=!1,Mai=n,g.ba(GU.S,function(O){O.VT&&(O.yO().G=n)})); s4(this,m4(),!l)}; var Su=YC(zU);var L1k=null,bh="",AN=!1;var F1i=oCi().c$,KQ=oCi().kG;var ZE5={gWf:"visible",u$q:"audible",p5f:"time",IJp:"timetype"},Jfk={visible:function(l){return/^(100|[0-9]{1,2})$/.test(l)}, audible:function(l){return l=="0"||l=="1"}, timetype:function(l){return l=="mtos"||l=="tos"}, time:function(l){return/^(100|[0-9]{1,2})%$/.test(l)||/^([0-9])+ms$/.test(l)}}; hxi.prototype.setTime=function(l,n,O){n=="ms"?(this.N=l,this.L=-1):(this.N=-1,this.L=l);this.B=O===void 0?"tos":O;return this};g.u(tq,U4);tq.prototype.getId=function(){return this.T}; tq.prototype.V=function(){return!0}; tq.prototype.S=function(l){var n=l.yO(),O=l.getDuration();return jz(this.G,function(L){if(L.S!=void 0)var X=HE5(L,n);else b:{switch(L.B){case "mtos":X=L.W?n.B.N:n.N.S;break b;case "tos":X=L.W?n.B.S:n.N.S;break b}X=0}X==0?L=!1:(L=L.N!=-1?L.N:O!==void 0&&O>0?L.L*O:-1,L=L!=-1&&X>=L);return L})};g.u(vx,w10);vx.prototype.S=function(l){var n=new Jn0;n.S=ww(l,ZOL);n.W=ww(l,wRi);return n};g.u(lh,U4);lh.prototype.S=function(l){return Wai(l)};g.u(n7,UJ7);g.u(OU,U4);OU.prototype.S=function(l){return l.yO().SC()};g.u(gO,uc);gO.prototype.S=function(l){var n=g.CO(this.T,Zs(dS().z2,"ovms"));return!l.bG&&(l.U9!=0||n)};g.u(L7,n7);L7.prototype.W=function(){return new gO(this.S)}; L7.prototype.N=function(){return[new OU("viewable_impression",this.S),new lh(this.S)]};g.u(Xj,Wx);Xj.prototype.L=function(){var l=g.zk("ima.admob.getViewability"),n=Zs(this.z2,"queryid");typeof l==="function"&&n&&l(n)}; Xj.prototype.getName=function(){return"gsv"};g.u(oU,iE);oU.prototype.getName=function(){return"gsv"}; oU.prototype.KS=function(){var l=Gw();dS();return l.W&&!1}; oU.prototype.ZO=function(l,n,O){return new Xj(this.S,n,O)};g.u(Fj,Wx);Fj.prototype.L=function(){var l=this,n=g.zk("ima.bridge.getNativeViewability"),O=Zs(this.z2,"queryid");typeof n==="function"&&O&&n(O,function(L){g.Qj(L)&&l.T++;var X=L.opt_nativeViewVisibleBounds||{},F=L.opt_nativeViewHidden;l.S=DK5(L.opt_nativeViewBounds||{});var x=l.W.L;x.S=F?HOD.clone():DK5(X);l.timestamp=L.opt_nativeTime||-1;Gw().S=x.S;L=L.opt_nativeVolume;L!==void 0&&(x.volume=L)})}; Fj.prototype.getName=function(){return"nis"};g.u(xK,iE);xK.prototype.getName=function(){return"nis"}; xK.prototype.KS=function(){var l=Gw();dS();return l.W&&!1}; xK.prototype.ZO=function(l,n,O){return new Fj(this.S,n,O)};g.u(hN,$H);g.h=hN.prototype;g.h.Gt=function(){return this.W.uI!=null}; g.h.Ve=function(){var l={};this.z3&&(l.mraid=this.z3);this.Q5&&(l.mlc=1);l.mtop=this.W.Yc2;this.T&&(l.mse=this.T);this.Hm&&(l.msc=1);l.mcp=this.W.compatibility;return l}; g.h.yC=function(l){var n=g.eq.apply(1,arguments);try{return this.W.uI[l].apply(this.W.uI,n)}catch(O){aB(538,O,.01,function(L){L.method=l})}}; g.h.initialize=function(){var l=this;if(this.isInitialized)return!this.mm();this.isInitialized=!0;if(this.W.compatibility===2)return this.T="ng",this.No("w"),!1;if(this.W.compatibility===1)return this.T="mm",this.No("w"),!1;Gw().G=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?U90(this):nQ(this.N,"load",function(){GS().setTimeout(KE(292,function(){return U90(l)}),100)},292); return!0}; g.h.Qj=function(){var l=Gw(),n=EC9(this,"getMaxSize");l.S=new nl(0,n.width,n.height,0)}; g.h.r4=function(){Gw().L=EC9(this,"getScreenSize")}; g.h.dispose=function(){Pz0(this);$H.prototype.dispose.call(this)};var KY9=new function(l,n){this.key=l;this.defaultValue=n===void 0?!1:n;this.valueType="boolean"}("45378663");g.h=JN.prototype;g.h.lr=function(l){XB(l,!1);zZ5(l)}; g.h.fA=function(){}; g.h.dl=function(l,n,O,L){var X=this;l=new NO(rS,l,O?n:-1,7,this.jf(),this.HE());l.QO=L;ro9(l.z2);hf(l.z2,"queryid",l.QO);l.h6("");X17(l,function(){return X.l$.apply(X,g.E(g.eq.apply(0,arguments)))},function(){return X.e1z.apply(X,g.E(g.eq.apply(0,arguments)))}); (L=YC(IJ).S)&&nUi(l,L);this.N&&(l.xS(this.N),this.N=null);l.BR.oB&&YC(ta8);return l}; g.h.KO=function(l){switch(l.M1()){case 0:if(l=YC(IJ).S)l=l.S,g.vR(l.B,this),l.Y&&this.cO()&&eFq(l);Hs();break;case 2:pQ()}}; g.h.IL=function(){}; g.h.cO=function(){return!1}; g.h.e1z=function(l,n){l.bG=!0;switch(l.m3()){case 1:Mi7(l,n);break;case 2:this.BW(l)}}; g.h.HfF=function(l){var n=l.T(l);n&&(n=n.volume,l.uv=YH(n)&&n>0);DJi(l,0);return QV(l,"start",Ij())}; g.h.e2=function(l,n,O){s4(Su,[l],!Ij());return this.LX(l,n,O)}; g.h.LX=function(l,n,O){return QV(l,O,Ij())}; g.h.LJ1=function(l){return Ps(l,"firstquartile",1)}; g.h.CFm=function(l){l.nf=!0;return Ps(l,"midpoint",2)}; g.h.goi=function(l){return Ps(l,"thirdquartile",3)}; g.h.Qz2=function(l){var n=Ps(l,"complete",4);D$(l);return n}; g.h.rGo=function(l){l.U9=3;return QV(l,"error",Ij())}; g.h.ip=function(l,n,O){n=Ij();if(l.OS()&&!n){var L=l.yO(),X=RB();L.G=X}s4(Su,[l],!n);l.OS()&&(l.U9=1);return QV(l,O,n)}; g.h.Bqq=function(l,n){n=this.e2(l,n||{},"skip");D$(l);return n}; g.h.DQ1=function(l,n){XB(l,!0);return this.e2(l,n||{},"fullscreen")}; g.h.mQJ=function(l,n){XB(l,!1);return this.e2(l,n||{},"exitfullscreen")}; g.h.Yj=function(l,n,O){n=l.yO();var L=RB();n.Fi=rw(n,L,l.U9!=1);s4(Su,[l],!Ij());l.U9==1&&(l.U9=2);return QV(l,O,Ij())}; g.h.Vpz=function(l){s4(Su,[l],!Ij());return l.W()}; g.h.LR=function(l){s4(Su,[l],!Ij());this.gG(l);D$(l);return l.W()}; g.h.l$=function(){}; g.h.BW=function(){}; g.h.gG=function(){}; g.h.LD=function(){}; g.h.pC=function(){}; g.h.HE=function(){this.S||(this.S=this.pC());return this.S==null?new Px:new L7(this.S)}; g.h.jf=function(){return new vx};g.u(TV,U4);TV.prototype.S=function(l){return l.CA()==4};g.u(Ws,uc);Ws.prototype.S=function(l){l=l.CA();return l==3||l==4};g.u(EU,n7);EU.prototype.W=function(){return new Ws(this.S)}; EU.prototype.N=function(){return[new TV(this.S)]};g.u(NC,w10);NC.prototype.S=function(l){l&&(l.e===28&&(l=Object.assign({},l,{avas:3})),l.vs===4||l.vs===5)&&(l=Object.assign({},l,{vs:3}));var n=new Jn0;n.S=ww(l,J0k);n.W=ww(l,wRi);return n};jBg.prototype.W=function(){return g.zk(this.S)};g.u(DC,JN);g.h=DC.prototype;g.h.fA=function(l,n){var O=this,L=YC(IJ);if(L.S!=null)switch(L.S.getName()){case "nis":var X=d9v(this,l,n);break;case "gsv":X=Is9(this,l,n);break;case "exc":X=$95(this,l)}X||(n.opt_overlayAdElement?X=void 0:n.opt_adElement&&(X=ex9(this,l,n.opt_adElement,n.opt_osdId)));X&&X.m3()==1&&(X.T==g.H$&&(X.T=function(F){return O.LD(F)}),m99(this,X,n)); return X}; g.h.LD=function(l){l.W=0;l.Lf=0;if(l.L=="h"||l.L=="n"){dS();l.G3&&(dS(),UU(this)!="h"&&UU(this));var n=g.zk("ima.common.getVideoMetadata");if(typeof n==="function")try{var O=n(l.QO)}catch(X){l.W|=4}else l.W|=2}else if(l.L=="b")if(n=g.zk("ytads.bulleit.getVideoMetadata"),typeof n==="function")try{O=n(l.QO)}catch(X){l.W|=4}else l.W|=2;else if(l.L=="ml")if(n=g.zk("ima.common.getVideoMetadata"),typeof n==="function")try{O=n(l.QO)}catch(X){l.W|=4}else l.W|=2;else l.W|=1;l.W||(O===void 0?l.W|=8:O===null? l.W|=16:g.Qj(O)?l.W|=32:O.errorCode!=null&&(l.Lf=O.errorCode,l.W|=64));O==null&&(O={});n=O;l.G=0;for(var L in LDR)n[L]==null&&(l.G|=LDR[L]);YO9(n,"currentTime");YO9(n,"duration");YH(O.volume)&&YH()&&(O.volume*=NaN);return O}; g.h.pC=function(){dS();UU(this)!="h"&&UU(this);var l=Vik(this);return l!=null?new jBg(l):null}; g.h.BW=function(l){!l.S&&l.bG&&uh(this,l,"overlay_unmeasurable_impression")&&(l.S=!0)}; g.h.gG=function(l){l.hv&&(l.SC()?uh(this,l,"overlay_viewable_end_of_session_impression"):uh(this,l,"overlay_unviewable_impression"),l.hv=!1)}; g.h.l$=function(){}; g.h.dl=function(l,n,O,L){if(aG5()){var X=Zs(dS().z2,"mm"),F={};(X=(F[$C.pk]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",F[$C.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",F)[X])&&zx0(this,X);this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&aB(1044,Error())}l=JN.prototype.dl.call(this,l,n,O,L);this.B&&(n=this.V,l.B==null&&(l.B=new oU5),n.S[l.QO]=l.B,l.B.B=A0s);return l}; g.h.lr=function(l){l&&l.m3()==1&&this.B&&delete this.V.S[l.QO];return JN.prototype.lr.call(this,l)}; g.h.HE=function(){this.S||(this.S=this.pC());return this.S==null?new Px:this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new EU(this.S):new L7(this.S)}; g.h.jf=function(){return this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new NC:new vx}; g.h.xS=function(l,n,O,L,X){n=new nl(O,n+L,O+X,n);(l=ju(GU,l))?l.xS(n):this.N=n}; var bOk=fE(193,p4g,void 0,QB9);g.i9("Goog_AdSense_Lidar_sendVastEvent",bOk);var r0q=KE(194,function(l,n){n=n===void 0?{}:n;l=iE8(YC(DC),l,n);return SOi(l)}); g.i9("Goog_AdSense_Lidar_getViewability",r0q);var UQQ=fE(195,function(){return z7q()}); g.i9("Goog_AdSense_Lidar_getUrlSignalsArray",UQQ);var uuc=KE(196,function(){return JSON.stringify(z7q())}); g.i9("Goog_AdSense_Lidar_getUrlSignalsList",uuc);var sB9=(new Date("2024-01-01T00:00:00Z")).getTime();var ase=Ag(["//ep2.adtrafficquality.google/sodar/",""]),Rx5=Ag(["//tpc.googlesyndication.com/sodar/",""]);g.u(YK,g.V);YK.prototype.eJ=function(){return this.wpc.f()}; YK.prototype.Pn=function(l){this.wpc.c(l)}; YK.prototype.eC=function(l){return this.wpc.m(l25(l))}; YK.prototype.Qg=function(l){return this.wpc.mws(l25(l))}; g.u(Qu,g.V);Qu.prototype.snapshot=function(l){return this.vl.s(Object.assign({},l.SD&&{c:l.SD},l.Lb&&{s:l.Lb},l.Va!==void 0&&{p:l.Va}))}; Qu.prototype.ZX=function(l){this.vl.e(l)}; Qu.prototype.xX=function(){return this.vl.l()};var tu5=(new Date).getTime();var gHv="://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(" "),LCi=/\bocr\b/;var oHe=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var WC5=0,TZ5=0,EHa=0;var FC7=Object.assign({},{attributes:{},handleError:function(l){throw l;}},{Trf:!0, iXJ:!0,qz:!1,VCo:!1,eWf:!1,zW2:!1,tiJ:Ksk});var IU=null,$K=!1,u5v=1,cs=Symbol("SIGNAL"),wq={version:0,BPJ:0,X6:!1,zB:void 0,lE:void 0,MH:void 0,RJ:0,PR:void 0,WJ:void 0,LG:!1,D6:!1,kind:"unknown",hs:function(){return!1}, Rx:function(){}, CG:function(){}, JSq:function(){}};var H9=Symbol("UNSET"),Ad=Symbol("COMPUTING"),bR=Symbol("ERRORED");Object.assign({},wq,{value:H9,X6:!0,error:null,qW:GV,kind:"computed",hs:function(l){return l.value===H9||l.value===Ad}, Rx:function(l){if(l.value===Ad)throw Error("Detected cycle in computations.");var n=l.value;l.value=Ad;var O=JS9(l),L=!1;try{var X=l.IF();dO(null);L=n!==H9&&n!==bR&&X!==bR&&l.qW(n,X)}catch(F){X=bR,l.error=F}finally{wH8(l,O)}L?l.value=n:(l.value=X,l.version++)}});var rSa=Object.assign({},wq,{qW:GV,value:void 0,kind:"signal"});Object.assign({},wq,{value:H9,X6:!0,error:null,qW:GV,hs:function(l){return l.value===H9||l.value===Ad}, Rx:function(l){if(l.value===Ad)throw Error("Detected cycle in computations.");var n=l.value;l.value=Ad;var O=JS9(l);try{var L=l.source();var X=l.IF(L,n===H9||n===bR?void 0:{source:l.WFJ,value:n});l.WFJ=L}catch(F){X=bR,l.error=F}finally{wH8(l,O)}n!==H9&&X!==bR&&l.qW(n,X)?l.value=n:(l.value=X,l.version++)}});Object.assign({},wq,{D6:!0,LG:!1,CG:function(l){l.schedule!==null&&l.schedule(l.kzG)}, NPo:!1,CWG:function(){}});var NZg=Symbol("updater");g.u(zV,g.vE);zV.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.ZJ.DN(this.B);delete zV.instance}; zV.prototype.EP=function(){return this.S}; zV.prototype.yV=function(){var l=this;this.B=this.ZJ.Ou(function(){var n;return g.Y(function(O){if(O.S==1)return l.S?((n=window.navigator)==null?0:n.onLine)?O.D2(3):g.Q(O,ih(l),3):g.Q(O,ih(l),3);l.yV();g.Tk(O)})},3E4)};p7.prototype.set=function(l,n){n=n===void 0?!0:n;0<=l&&l<52&&Number.isInteger(l)&&this.data[l]!==n&&(this.data[l]=n,this.S=-1)}; p7.prototype.get=function(l){return!!this.data[l]};var f7;g.nO(g.tN,g.V);g.h=g.tN.prototype;g.h.start=function(){this.stop();this.L=!1;var l=ySa(this),n=Mzg(this);l&&!n&&this.W.mozRequestAnimationFrame?(this.S=g.z1(this.W,"MozBeforePaint",this.N),this.W.mozRequestAnimationFrame(null),this.L=!0):this.S=l&&n?l.call(this.W,this.N):this.W.setTimeout(pO7(this.N),20)}; g.h.stop=function(){if(this.isActive()){var l=ySa(this),n=Mzg(this);l&&!n&&this.W.mozRequestAnimationFrame?Rg(this.S):l&&n?n.call(this.W,this.S):this.W.clearTimeout(this.S)}this.S=null}; g.h.isActive=function(){return this.S!=null}; g.h.yP=function(){this.L&&this.S&&Rg(this.S);this.S=null;this.V.call(this.B,g.l1())}; g.h.oz=function(){this.stop();g.tN.CN.oz.call(this)};g.nO(g.vs,g.V);g.h=g.vs.prototype;g.h.My=0;g.h.oz=function(){g.vs.CN.oz.call(this);this.stop();delete this.S;delete this.W}; g.h.start=function(l){this.stop();this.My=g.qv(this.N,l!==void 0?l:this.vQ)}; g.h.stop=function(){this.isActive()&&g.Be.clearTimeout(this.My);this.My=0}; g.h.isActive=function(){return this.My!=0}; g.h.Dl=function(){this.My=0;this.S&&this.S.call(this.W)};g.gP.prototype[Symbol.iterator]=function(){return this}; g.gP.prototype.next=function(){var l=this.S.next();return{value:l.done?void 0:this.W.call(void 0,l.value),done:l.done}};g.nO(g.HU,g.vE);g.h=g.HU.prototype;g.h.isPlaying=function(){return this.S==1}; g.h.isPaused=function(){return this.S==-1}; g.h.Hw=function(){this.X1("begin")}; g.h.C8=function(){this.X1("end")}; g.h.onFinish=function(){this.X1("finish")}; g.h.onStop=function(){this.X1("stop")}; g.h.X1=function(l){this.dispatchEvent(l)};var P11=Ao(function(){var l=g.nf("DIV"),n=g.CJ?"-webkit":AS?"-moz":null,O="transition:opacity 1s linear;";n&&(O+=n+"-transition:opacity 1s linear;");n=C39({style:O});if(l.nodeType===1&&/^(script|style)$/i.test(l.tagName))throw Error("");l.innerHTML=$u(n);return g.bE(l.firstChild,"transition")!=""});g.nO(A5,g.HU);g.h=A5.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.Hw();this.X1("play");this.startTime=g.l1();this.S=1;if(P11())return g.HH(this.W,this.V),this.N=g.qv(this.i1G,void 0,this),!0;this.h1(!1);return!1}; g.h.i1G=function(){g.D2(this.W);Yo8(this.W,this.T);g.HH(this.W,this.L);this.N=g.qv((0,g.tg)(this.h1,this,!1),this.B*1E3)}; g.h.stop=function(){this.isPlaying()&&this.h1(!0)}; g.h.h1=function(l){g.HH(this.W,"transition","");g.Be.clearTimeout(this.N);g.HH(this.W,this.L);this.endTime=g.l1();this.S=0;if(l)this.onStop();else this.onFinish();this.C8()}; g.h.oz=function(){this.stop();A5.CN.oz.call(this)}; g.h.pause=function(){};var Gwq={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};bx("Element","attributes")||bx("Node","attributes");bx("Element","innerHTML")||bx("HTMLElement","innerHTML");bx("Node","nodeName");bx("Node","nodeType");bx("Node","parentNode");bx("Node","childNodes");bx("HTMLElement","style")||bx("Element","style");bx("HTMLStyleElement","sheet");var BZa=I2e("getPropertyValue"),cSi=I2e("setProperty");bx("Element","namespaceURI")||bx("Node","namespaceURI");var Vz0={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var pH9,VM9,So0,z8i,sj0;pH9=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]");VM9=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.TDL=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.UJ=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]");So0=/^http:\/\/.*/;g.WDk=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");z8i=/\s+/;sj0=/[\d\u06f0-\u06f9]/;PU.prototype.LL=function(){return new TC(this.W())}; PU.prototype[Symbol.iterator]=function(){return new WU(this.W())}; PU.prototype.S=function(){return new WU(this.W())}; g.u(TC,g.oJ);TC.prototype.next=function(){return this.W.next()}; TC.prototype[Symbol.iterator]=function(){return new WU(this.W)}; TC.prototype.S=function(){return new WU(this.W)}; g.u(WU,PU);WU.prototype.next=function(){return this.N.next()};No.prototype.clone=function(){return new No(this.S,this.T,this.N,this.B,this.L,this.V,this.W,this.G)}; No.prototype.XT=function(l){return this.S==l.S&&this.T==l.T&&this.N==l.N&&this.B==l.B&&this.L==l.L&&this.V==l.V&&this.W==l.W&&this.G==l.G};qo.prototype.clone=function(){return new qo(this.start,this.end)}; qo.prototype.getLength=function(){return this.end-this.start};(function(){if(Kj7){var l=/Windows NT ([0-9.]+)/;return(l=l.exec(g.e6()))?l[1]:"0"}return tT?(l=/1[0|1][_.][0-9_.]+/,(l=l.exec(g.e6()))?l[0].replace(/_/g,"."):"10"):g.lG?(l=/Android\s+([^\);]+)(\)|;)/,(l=l.exec(g.e6()))?l[1]:""):Cpf||tMa||vnf?(l=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(l=l.exec(g.e6()))?l[1].replace(/_/g,"."):""):""})();var KC5=function(){if(g.Bz)return ky(/Firefox\/([0-9.]+)/);if(g.rP||g.RZ||g.qt)return xQi;if(g.G2){if(pO()||sF()){var l=ky(/CriOS\/([0-9.]+)/);if(l)return l}return ky(/Chrome\/([0-9.]+)/)}if(g.Wo&&!pO())return ky(/Version\/([0-9.]+)/);if(Ch||tP){if(l=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.e6()))return l[1]+"."+l[2]}else if(g.kJ)return(l=ky(/Android\s+([0-9.]+)/))?l:ky(/Version\/([0-9.]+)/);return""}();g.nO(g.Mo,g.V);g.h=g.Mo.prototype;g.h.subscribe=function(l,n,O){var L=this.W[l];L||(L=this.W[l]=[]);var X=this.V;this.S[X]=l;this.S[X+1]=n;this.S[X+2]=O;this.V=X+3;L.push(X);return X}; g.h.unsubscribe=function(l,n,O){if(l=this.W[l]){var L=this.S;if(l=l.find(function(X){return L[X+1]==n&&L[X+2]==O}))return this.uJ(l)}return!1}; g.h.uJ=function(l){var n=this.S[l];if(n){var O=this.W[n];this.L!=0?(this.N.push(l),this.S[l+1]=function(){}):(O&&g.vR(O,l),delete this.S[l],delete this.S[l+1],delete this.S[l+2])}return!!n}; g.h.publish=function(l,n){var O=this.W[l];if(O){var L=Array(arguments.length-1),X=arguments.length,F;for(F=1;F<X;F++)L[F-1]=arguments[F];if(this.T)for(F=0;F<O.length;F++)X=O[F],a2i(this.S[X+1],this.S[X+2],L);else{this.L++;try{for(F=0,X=O.length;F<X&&!this.JG();F++){var x=O[F];this.S[x+1].apply(this.S[x+2],L)}}finally{if(this.L--,this.N.length>0&&this.L==0)for(;O=this.N.pop();)this.uJ(O)}}return F!=0}return!1}; g.h.clear=function(l){if(l){var n=this.W[l];n&&(n.forEach(this.uJ,this),delete this.W[l])}else this.S.length=0,this.W={}}; g.h.oz=function(){g.Mo.CN.oz.call(this);this.clear();this.N.length=0};g.Q8.prototype.set=function(l,n){n===void 0?this.S.remove(l):this.S.set(l,g.QM(n))}; g.Q8.prototype.get=function(l){try{var n=this.S.get(l)}catch(O){return}if(n!==null)try{return JSON.parse(n)}catch(O){throw"Storage: Invalid value was encountered";}}; g.Q8.prototype.remove=function(l){this.S.remove(l)};g.nO(eW,g.Q8);eW.prototype.set=function(l,n){eW.CN.set.call(this,l,CEf(n))}; eW.prototype.W=function(l){l=eW.CN.get.call(this,l);if(l===void 0||l instanceof Object)return l;throw"Storage: Invalid value was encountered";}; eW.prototype.get=function(l){if(l=this.W(l)){if(l=l.data,l===void 0)throw"Storage: Invalid value was encountered";}else l=void 0;return l};g.nO(Yy,eW);Yy.prototype.set=function(l,n,O){if(n=CEf(n)){if(O){if(O<g.l1()){Yy.prototype.remove.call(this,l);return}n.expiration=O}n.creation=g.l1()}Yy.CN.set.call(this,l,n)}; Yy.prototype.W=function(l,n){var O=Yy.CN.W.call(this,l);if(O)if(!n&&g.tzv(O))Yy.prototype.remove.call(this,l);else return O};g.nO(g.jW,Yy);g.nO(GC,vHk);GC.prototype[Symbol.iterator]=function(){return g.EJ(this.LL(!0)).S()}; GC.prototype.clear=function(){var l=Array.from(this);l=g.P(l);for(var n=l.next();!n.done;n=l.next())this.remove(n.value)};g.nO(mt,GC);g.h=mt.prototype;g.h.isAvailable=function(){var l=this.S;if(l)try{l.setItem("__sak","1");l.removeItem("__sak");var n=!0}catch(O){n=O instanceof DOMException&&(O.name==="QuotaExceededError"||O.code===22||O.code===1014||O.name==="NS_ERROR_DOM_QUOTA_REACHED")&&l&&l.length!==0}else n=!1;return this.W=n}; g.h.set=function(l,n){IK(this);try{this.S.setItem(l,n)}catch(O){if(this.S.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.h.get=function(l){IK(this);l=this.S.getItem(l);if(typeof l!=="string"&&l!==null)throw"Storage mechanism: Invalid value was encountered";return l}; g.h.remove=function(l){IK(this);this.S.removeItem(l)}; g.h.LL=function(l){IK(this);var n=0,O=this.S,L=new g.oJ;L.next=function(){if(n>=O.length)return g.xl;var X=O.key(n++);if(l)return g.FB(X);X=O.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return g.FB(X)}; return L}; g.h.clear=function(){IK(this);this.S.clear()}; g.h.key=function(l){IK(this);return this.S.key(l)};g.nO(dP,mt);g.nO(l$q,mt);g.nO($y,GC);$y.prototype.set=function(l,n){this.W.set(this.S+l,n)}; $y.prototype.get=function(l){return this.W.get(this.S+l)}; $y.prototype.remove=function(l){this.W.remove(this.S+l)}; $y.prototype.LL=function(l){var n=this.W[Symbol.iterator](),O=this,L=new g.oJ;L.next=function(){var X=n.next();if(X.done)return X;for(X=X.value;X.slice(0,O.S.length)!=O.S;){X=n.next();if(X.done)return X;X=X.value}return g.FB(l?X.slice(O.S.length):O.W.get(X))}; return L};BU.prototype.getValue=function(){return this.W}; BU.prototype.clone=function(){return new BU(this.S,this.W)};g.h=cU.prototype;g.h.f2=function(l,n){var O=this.S;O.push(new BU(l,n));l=O.length-1;n=this.S;for(O=n[l];l>0;){var L=l-1>>1;if(n[L].S>O.S)n[l]=n[L],l=L;else break}n[l]=O}; g.h.remove=function(){var l=this.S,n=l.length,O=l[0];if(!(n<=0)){if(n==1)l.length=0;else{l[0]=l.pop();l=0;n=this.S;for(var L=n.length,X=n[l];l<L>>1;){var F=l*2+1,x=l*2+2;F=x<L&&n[x].S<n[F].S?x:F;if(n[F].S>X.S)break;n[l]=n[F];l=F}n[l]=X}return O.getValue()}}; g.h.yW=function(){for(var l=this.S,n=[],O=l.length,L=0;L<O;L++)n.push(l[L].getValue());return n}; g.h.pT=function(){for(var l=this.S,n=[],O=l.length,L=0;L<O;L++)n.push(l[L].S);return n}; g.h.clone=function(){return new cU(this)}; g.h.isEmpty=function(){return this.S.length===0}; g.h.clear=function(){this.S.length=0};g.u(ix,cU);ix.prototype.enqueue=function(l,n){this.f2(l,n)};zC.J7=void 0;zC.getInstance=function(){return zC.J7?zC.J7:zC.J7=new zC}; zC.prototype.S=0;var SW={},Equ=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";SW.assign=function(l){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var O=n.shift();if(O){if(typeof O!=="object")throw new TypeError(O+"must be non-object");for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(l[L]=O[L])}}return l}; SW.mw=function(l,n){if(l.length===n)return l;if(l.subarray)return l.subarray(0,n);l.length=n;return l}; var NDD={ZR:function(l,n,O,L,X){if(n.subarray&&l.subarray)l.set(n.subarray(O,O+L),X);else for(var F=0;F<L;F++)l[X+F]=n[O+F]}, Y7:function(l){var n,O;var L=O=0;for(n=l.length;L<n;L++)O+=l[L].length;var X=new Uint8Array(O);L=O=0;for(n=l.length;L<n;L++){var F=l[L];X.set(F,O);O+=F.length}return X}},DQi={ZR:function(l,n,O,L,X){for(var F=0;F<L;F++)l[X+F]=n[O+F]}, Y7:function(l){return[].concat.apply([],l)}}; SW.fsf=function(){Equ?(SW.a$=Uint8Array,SW.Bd=Uint16Array,SW.ZM=Int32Array,SW.assign(SW,NDD)):(SW.a$=Array,SW.Bd=Array,SW.ZM=Array,SW.assign(SW,DQi))}; SW.fsf();var qFQ=!0;try{new Uint8Array(1)}catch(l){qFQ=!1};var be={};be=function(l,n,O,L){var X=l&65535|0;l=l>>>16&65535|0;for(var F;O!==0;){F=O>2E3?2E3:O;O-=F;do X=X+n[L++]|0,l=l+X|0;while(--F);X%=65521;l%=65521}return X|l<<16|0};for(var rL={},rq,kcu=[],Ub=0;Ub<256;Ub++){rq=Ub;for(var y0u=0;y0u<8;y0u++)rq=rq&1?3988292384^rq>>>1:rq>>>1;kcu[Ub]=rq}rL=function(l,n,O,L){O=L+O;for(l^=-1;L<O;L++)l=l>>>8^kcu[(l^n[L])&255];return l^-1};var o3={};o3={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 vU=[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],Ol=[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],Nw5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],wxe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Zw=Array(576);pz(Zw);var Jz=Array(60);pz(Jz);var nx=Array(512);pz(nx);var t5=Array(256);pz(t5);var le=Array(29);pz(le);var gL=Array(30);pz(gL);var Tw7,W4q,Ekv,Pc9=!1;var WK;WK=[new T_(0,0,0,0,function(l,n){var O=65535;for(O>l.cH-5&&(O=l.cH-5);;){if(l.Ze<=1){Ul(l);if(l.Ze===0&&n===0)return 1;if(l.Ze===0)break}l.Bj+=l.Ze;l.Ze=0;var L=l.gA+O;if(l.Bj===0||l.Bj>=L)if(l.Ze=l.Bj-L,l.Bj=L,wL(l,!1),l.ZZ.e7===0)return 1;if(l.Bj-l.gA>=l.VO-262&&(wL(l,!1),l.ZZ.e7===0))return 1}l.f2=0;if(n===4)return wL(l,!0),l.ZZ.e7===0?3:4;l.Bj>l.gA&&wL(l,!1);return 1}), new T_(4,4,8,4,ue),new T_(4,5,16,8,ue),new T_(4,6,32,32,ue),new T_(4,4,16,16,PK),new T_(8,16,32,32,PK),new T_(8,16,128,128,PK),new T_(8,32,128,256,PK),new T_(32,128,258,1024,PK),new T_(32,258,258,4096,PK)];var uBg={};uBg=function(){this.input=null;this.Hh=this.EX=this.CV=0;this.output=null;this.jh=this.e7=this.Oo=0;this.msg="";this.state=null;this.MC=2;this.qP=0};var DO7=Object.prototype.toString; El.prototype.push=function(l,n){var O=this.ZZ,L=this.options.chunkSize;if(this.ended)return!1;var X=n===~~n?n:n===!0?4:0;typeof l==="string"?O.input=nk9(l):DO7.call(l)==="[object ArrayBuffer]"?O.input=new Uint8Array(l):O.input=l;O.CV=0;O.EX=O.input.length;do{O.e7===0&&(O.output=new SW.a$(L),O.Oo=0,O.e7=L);l=UOg(O,X);if(l!==1&&l!==0)return this.C8(l),this.ended=!0,!1;if(O.e7===0||O.EX===0&&(X===4||X===2))if(this.options.o6==="string"){var F=SW.mw(O.output,O.Oo);n=F;F=F.length;if(F<65537&&(n.subarray&& qFQ||!n.subarray))n=String.fromCharCode.apply(null,SW.mw(n,F));else{for(var x="",Z=0;Z<F;Z++)x+=String.fromCharCode(n[Z]);n=x}this.chunks.push(n)}else n=SW.mw(O.output,O.Oo),this.chunks.push(n)}while((O.EX>0||O.e7===0)&&l!==1);if(X===4)return(O=this.ZZ)&&O.state?(L=O.state.status,L!==42&&L!==69&&L!==73&&L!==91&&L!==103&&L!==113&&L!==666?l=Fi(O,-2):(O.state=null,l=L===113?Fi(O,-3):0)):l=-2,this.C8(l),this.ended=!0,l===0;X===2&&(this.C8(0),O.e7=0);return!0}; El.prototype.C8=function(l){l===0&&(this.result=this.options.o6==="string"?this.chunks.join(""):SW.Y7(this.chunks));this.chunks=[];this.err=l;this.msg=this.ZZ.msg};var Dw="@@redux/INIT"+NH(),eY7="@@redux/REPLACE"+NH();var Y48=typeof Symbol==="function"&&Symbol.observable||"@@observable";var M66=[0,j8q,-3,Lg];g.u(yE,VK);yE.prototype.getType=function(){return rb(this,11)};var fyq=function(){var l=[0,m7k,GkQ,lR,j8q,lR,-1,Lg,j8q,Lg,-1,m7k,Lg,GkQ,ng,M66,lR,-1,Lg];return function(n,O){if(vg.length){var L=vg.pop();Meq(L,O);L.S.init(n,void 0,void 0,O);n=L}else n=new jI(n,O);try{var X=new yE,F=X.RO;X_(l)(F,n);var x=X}finally{n.free()}return x}}();var I$i=999377909;var KI5=new g.MH("adInfoDialogEndpoint");var Ark=new g.MH("adPingingEndpoint");var mi5=new g.MH("crossDeviceProgressCommand");var Oc=new g.MH("actionCompanionAdRenderer");var J6=new g.MH("adActionInterstitialRenderer");var Qkc=new g.MH("adDurationRemainingRenderer");var mK=new g.MH("adHoverTextButtonRenderer");var sZ9=new g.MH("adInfoDialogRenderer");var rf=new g.MH("adMessageRenderer");var Ip=new g.MH("adPreviewRenderer");var L6=new g.MH("adsEngagementPanelRenderer");var xT9=new g.MH("dismissablePanelTextPortraitImageRenderer");var osg=new g.MH("adsEngagementPanelSectionListViewModel");var eiO=new g.MH("flyoutCtaRenderer");var gm=new g.MH("imageCompanionAdRenderer");var h6=new g.MH("instreamAdPlayerOverlayRenderer");var Lsa=new g.MH("instreamSurveyAdBackgroundImageRenderer");var Gb=new g.MH("instreamSurveyAdPlayerOverlayRenderer");var b6=new g.MH("instreamSurveyAdRenderer"),jQ=new g.MH("instreamSurveyAdSingleSelectQuestionRenderer"),Y2=new g.MH("instreamSurveyAdMultiSelectQuestionRenderer"),uR=new g.MH("instreamSurveyAdAnswerRenderer"),YF6=new g.MH("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Hi=new g.MH("instreamVideoAdRenderer");var jku=new g.MH("textOverlayAdContentRenderer"),Gck=new g.MH("enhancedTextOverlayAdContentRenderer"),mQD=new g.MH("imageOverlayAdContentRenderer");var Z_=new g.MH("playerOverlayLayoutRenderer");var w0=new g.MH("videoInterstitialButtonedCenteredLayoutRenderer");var Huk=new g.MH("aboveFeedAdLayoutRenderer");var AM9=new g.MH("belowPlayerAdLayoutRenderer");var wa0=new g.MH("inPlayerAdLayoutRenderer");var q0=new g.MH("playerBytesAdLayoutRenderer");var eQ=new g.MH("playerBytesSequenceItemAdLayoutRenderer");var Qq=new g.MH("playerUnderlayAdLayoutRenderer");var Al=new g.MH("adIntroRenderer");var Jl=new g.MH("playerBytesSequentialLayoutRenderer");var sm9=new g.MH("slidingTextPlayerOverlayRenderer");var N0=new g.MH("surveyTextInterstitialRenderer");var LF7=new g.MH("videoAdTrackingRenderer");var ILQ=new g.MH("simpleAdBadgeRenderer");var x4=new g.MH("skipAdRenderer"),dQR=new g.MH("skipButtonRenderer");var Bi=new g.MH("adSlotRenderer");var yq=new g.MH("squeezebackPlayerSidePanelRenderer");var $Q1=new g.MH("timedPieCountdownRenderer");var zL=new g.MH("adAvatarViewModel");var SG=new g.MH("adBadgeViewModel");var pk=new g.MH("adButtonViewModel");var V6D=new g.MH("adDetailsLineViewModel");var BDs=new g.MH("adDisclosureBannerViewModel");var c0c=new g.MH("adPodIndexViewModel");var iOL=new g.MH("imageBackgroundViewModel");var zik=new g.MH("adGridCardCollectionViewModel");var SFL=new g.MH("adGridCardTextViewModel");var pRO=new g.MH("adPreviewViewModel");var skF=new g.MH("playerAdAvatarLockupCardButtonedViewModel");var fLi=new g.MH("skipAdButtonViewModel");var KDL=new g.MH("skipAdViewModel");var aLD=new g.MH("timedPieCountdownViewModel");var Ri6=new g.MH("visitAdvertiserLinkViewModel");var X6=new g.MH("bannerImageLayoutViewModel");var op=new g.MH("topBannerImageTextIconButtonedLayoutViewModel");var F6=new g.MH("adsEngagementPanelLayoutViewModel");var M0=new g.MH("displayUnderlayTextGridCardsLayoutViewModel");g.Df=new g.MH("browseEndpoint");var C1R=new g.MH("confirmDialogEndpoint");var rB9=new g.MH("rawColdConfigGroup");var biq=new g.MH("rawHotConfigGroup");g.Pt=new g.MH("commandExecutorCommand");g.u(Vuk,VK);var vX5={hKq:0,gGq:1,yL2:32,p$p:61,bIp:67,GhQ:103,nGJ:86,X$o:42,FAf:60,zK3:62,jPz:73,UFi:76,KAQ:88,MIF:90,lF5:99,iIf:98,fFQ:100,ALz:102,cLQ:41,khJ:69,OI5:70,ZIm:71,rQp:2,mqo:27,ANDROID:3,PJ1:54,U3f:14,bMq:91,A2q:55,jN5:24,pTi:20,ImQ:18,GB3:21,K5p:104,c2p:30,ZM5:29,Yui:28,DFF:101,xoJ:34,lmp:36,nto:38,IOS:5,Ruf:15,HZi:92,euo:40,rdq:25,mmp:17,LDm:19,Dmz:64,Cci:66,V0p:26,Jd3:22,zuF:33,Eaf:68,q8z:35,BAp:53,gao:37,Q_2:39,k6f:7,OT3:57,ZTp:43,xFF:59,YS3:93,OM5:74,ujF:75,Sp5:85,WA3:65,sPo:80,vGp:8,lJo:10, dF5:58,oGf:63,NkJ:72,kBi:23,uDF:11,S75:13,wQq:12,cM2:16,aF3:56,IFf:31,RXq:77,Fdm:84,PIz:87,U0m:89,PVf:94,OZ5:95};g.u(QE,VK);QE.prototype.L6=function(){return bV(this,3)}; QE.prototype.Jx=function(){return bV(this,5)}; QE.prototype.Uv=function(l){return uV(this,5,l)};g.u(eg,VK);g.u(Bw8,VK);g.u(Y$,VK);g.h=Y$.prototype;g.h.getDeviceId=function(){return bV(this,6)}; g.h.iX=function(l){var n=Kj(this,9,Hw,3,!0);Se(n,l);return n[l]}; g.h.getPlayerType=function(){return rb(this,36)}; g.h.setHomeGroupInfo=function(l){return hX(this,Bw8,81,l)}; g.h.clearLocationPlayabilityToken=function(){return i3(this,89)};g.u(jg,VK);jg.prototype.getValue=function(){return bV(this,LU(this,Hii)===2?2:-1)}; var Hii=[2,3,4,5,6];g.u(G_,VK);G_.prototype.setTrackingParams=function(l){return i3(this,1,M6q(l,!1))};g.u(mq,VK);g.u(I3,VK);I3.prototype.iX=function(l){var n=Kj(this,5,b3,3,!0);Se(n,l);return n[l]};g.u(dL,VK);dL.prototype.getToken=function(){return HO(this,2)}; dL.prototype.setToken=function(l){return uV(this,2,l)};g.u($$,VK);$$.prototype.setSafetyMode=function(l){return TZ(this,5,l)};g.u(VE,VK);VE.prototype.X9=function(l){return hX(this,Y$,1,l)};var $2=new g.MH("thumbnailLandscapePortraitRenderer");g.t6k=new g.MH("changeEngagementPanelVisibilityAction");var ul8=new g.MH("continuationCommand");g.vqO=new g.MH("openPopupAction");g.P9=new g.MH("webCommandMetadata");var MQi=new g.MH("metadataBadgeRenderer");var Uz9=new g.MH("signalServiceEndpoint");var VS=new g.MH("innertubeCommand");var X29=new g.MH("loggingDirectives");var qU9={d03:"EMBEDDED_PLAYER_MODE_UNKNOWN",shm:"EMBEDDED_PLAYER_MODE_DEFAULT",oWo:"EMBEDDED_PLAYER_MODE_PFP",vW2:"EMBEDDED_PLAYER_MODE_PFL"};var nF0=new g.MH("channelThumbnailEndpoint");var lja=new g.MH("embeddedPlayerErrorMessageRenderer");var RBk=new g.MH("embeddedPlayerOverlayVideoDetailsRenderer"),OWv=new g.MH("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),gF5=new g.MH("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var qcq=new g.MH("embedsInfoPanelRenderer");var lIc=new g.MH("feedbackEndpoint");var ndi=new g.MH("callToActionButtonViewModel");var Omq=new g.MH("interactionLoggingCommandMetadata");var Wq9={tIf:"WEB_DISPLAY_MODE_UNKNOWN",EGz:"WEB_DISPLAY_MODE_BROWSER",w$3:"WEB_DISPLAY_MODE_MINIMAL_UI",Tkf:"WEB_DISPLAY_MODE_STANDALONE",qpz:"WEB_DISPLAY_MODE_FULLSCREEN"};g.u(BK,VK);BK.prototype.getPlayerType=function(){return rb(this,7)}; BK.prototype.G7=function(){return bV(this,19)}; BK.prototype.setVideoId=function(l){return uV(this,19,l)};g.u(cK,VK);g.u(Sg,VK);g.u(px,VK); var gdO=[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];var LcO=new g.MH("loggingContext");g.u(sl,VK);g.u(fx,VK);fx.prototype.G7=function(){return HO(this,LU(this,w2)===1?1:-1)}; fx.prototype.setVideoId=function(l){return OK(this,1,w2,DZ(l))}; fx.prototype.getPlaylistId=function(){return HO(this,LU(this,w2)===2?2:-1)}; var w2=[1,2];g.u(cq9,VK);var vy=new g.MH("changeKeyedMarkersVisibilityCommand");var Xdq=new g.MH("changeMarkersVisibilityCommand");var eBv=new g.MH("loadMarkersCommand");var odR=new g.MH("suggestedActionDataViewModel");var B50=new g.MH("timelyActionViewModel");var V29=new g.MH("timelyActionsOverlayViewModel");var SRv=new g.MH("productListItemRenderer");var Fcc=new g.MH("shoppingOverlayRenderer");var C6q=new g.MH("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var xPq=new g.MH("adFeedbackEndpoint");var hNO=new g.MH("menuEndpoint");var LTk=new g.MH("phoneDialerEndpoint");var Okq=new g.MH("sendSmsEndpoint");var ac8=new g.MH("copyTextEndpoint");var Zmu=new g.MH("shareEndpoint"),Jm1=new g.MH("shareEntityEndpoint"),wdL=new g.MH("shareEntityServiceEndpoint"),HmD=new g.MH("webPlayerShareEntityServiceEndpoint");g.$R=new g.MH("urlEndpoint");g.Cy=new g.MH("watchEndpoint");var AmO=new g.MH("watchPlaylistEndpoint");g.bmu=new g.MH("offlineOrchestrationActionCommand");var yxa=new g.MH("compositeVideoOverlayRenderer");var rmi=new g.MH("miniplayerRenderer");var fcv=new g.MH("paidContentOverlayRenderer");var UPR=new g.MH("playerMutedAutoplayOverlayRenderer"),uz1=new g.MH("playerMutedAutoplayEndScreenRenderer");var c$v=new g.MH("unserializedPlayerResponse"),Pa1=new g.MH("unserializedPlayerResponse");var TQi=new g.MH("playlistEditEndpoint");var T9;g.dm=new g.MH("buttonRenderer");T9=new g.MH("toggleButtonRenderer");var Xa0=new g.MH("counterfactualRenderer");var WcD=new g.MH("resolveUrlCommandMetadata");var Ed0=new g.MH("modifyChannelNotificationPreferenceEndpoint");var HAv=new g.MH("pingingEndpoint");var NQ0=new g.MH("unsubscribeEndpoint");g.qk=new g.MH("subscribeButtonRenderer");var DPL=new g.MH("subscribeEndpoint");var bD8=new g.MH("buttonViewModel");var FF7=new g.MH("qrCodeRenderer");var n4v={Gnf:"LIVING_ROOM_APP_MODE_UNSPECIFIED",ppJ:"LIVING_ROOM_APP_MODE_MAIN",j_p:"LIVING_ROOM_APP_MODE_KIDS",I0p:"LIVING_ROOM_APP_MODE_MUSIC",na5:"LIVING_ROOM_APP_MODE_UNPLUGGED",Adp:"LIVING_ROOM_APP_MODE_GAMING"};var E2q=new g.MH("autoplaySwitchButtonRenderer");var DY,eLa,Kg9,igv;DY=new g.MH("decoratedPlayerBarRenderer");eLa=new g.MH("chapteredPlayerBarRenderer");Kg9=new g.MH("multiMarkersPlayerBarRenderer");igv=new g.MH("chapterRenderer");g.mZk=new g.MH("markerRenderer");var qtc=new g.MH("decoratedPlayheadRenderer");var kbv=new g.MH("desktopOverlayConfigRenderer");var hok=new g.MH("engagementPanelSectionListRenderer");var D09=new g.MH("gatedActionsOverlayViewModel");var V0q=new g.MH("heatMarkerRenderer");var $Zf=new g.MH("heatmapRenderer");var Qpq=new g.MH("watchToWatchTransitionRenderer");var tQg=new g.MH("playlistPanelRenderer");var kRD=new g.MH("productUpsellSuggestedActionViewModel");var ymQ=new g.MH("suggestedActionTimeRangeTrigger"),Me6=new g.MH("suggestedActionsRenderer"),QA6=new g.MH("suggestedActionRenderer");var Bq9=new g.MH("timedMarkerDecorationRenderer");var J69=new g.MH("cipher");var iSg=new g.MH("playerVars");var eNO=new g.MH("playerVars");var W9=g.Be.window,YtD,jAD,Kx=(W9==null?void 0:(YtD=W9.yt)==null?void 0:YtD.config_)||(W9==null?void 0:(jAD=W9.ytcfg)==null?void 0:jAD.data_)||{};g.i9("yt.config_",Kx);var tz=[];var Cca=/^[\w.]*$/,f$9={q:!0,search_query:!0},sJa=String(O0);var wc=new function(){var l=window.document;this.S=window;this.W=l}; g.i9("yt.ads_.signals_.getAdSignalsString",function(l){return gc(AP(l))});g.l1();var vki="XMLHttpRequest"in g.Be?function(){return new XMLHttpRequest}:null;var GRk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.E(GRk);var gKv={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"},Lbi="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.E(GRk)),wsg=!1,nK7=Xs7,hwi=kp;g.u(QA,u1);j_.prototype.then=function(l,n,O){return this.S?this.S.then(l,n,O):this.N===1&&l?(l=l.call(O,this.W))&&typeof l.then==="function"?l:mA(l):this.N===2&&n?(l=n.call(O,this.W))&&typeof l.then==="function"?l:Gj(l):this}; j_.prototype.getValue=function(){return this.W}; j_.prototype.$goog_Thenable=!0;var IT=!1;var aZ=Ch||tP;var NOi=/^([0-9\.]+):([0-9\.]+)$/;g.u(Hk,u1);Hk.prototype.name="BiscottiError";g.u(wU,u1);wU.prototype.name="BiscottiMissingError";var yNq={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},AB=null;var N8e=Ag(["data-"]),dC8={};var mPq=0,bG=g.CJ?"webkit":AS?"moz":g.rP?"ms":g.qt?"o":"",IIc=g.zk("ytDomDomGetNextId")||function(){return++mPq}; g.i9("ytDomDomGetNextId",IIc);var cNk={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};Wk.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Wk.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Wk.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Eh=g.Be.ytEventsEventsListeners||{};g.i9("ytEventsEventsListeners",Eh);var SU8=g.Be.ytEventsEventsCounter||{count:0};g.i9("ytEventsEventsCounter",SU8);var Kbi=Ao(function(){var l=!1;try{var n=Object.defineProperty({},"passive",{get:function(){l=!0}}); window.addEventListener("test",null,n)}catch(O){}return l}),ps9=Ao(function(){var l=!1; try{var n=Object.defineProperty({},"capture",{get:function(){l=!0}}); window.addEventListener("test",null,n)}catch(O){}return l});var Eb;Eb=window;g.Q_=Eb.ytcsi&&Eb.ytcsi.now?Eb.ytcsi.now:Eb.performance&&Eb.performance.timing&&Eb.performance.now&&Eb.performance.timing.navigationStart?function(){return Eb.performance.timing.navigationStart+Eb.performance.now()}:function(){return(new Date).getTime()};g.nO(yd,g.V);yd.prototype.Y=function(l){l.S===void 0&&i78(l);var n=l.S;l.W===void 0&&i78(l);this.S=new g.AR(n,l.W)}; yd.prototype.PX=function(){return this.S||new g.AR}; yd.prototype.Wm=function(){if(this.S){var l=(0,g.Q_)();if(this.L!=0){var n=this.V,O=this.S,L=n.x-O.x;n=n.y-O.y;L=Math.sqrt(L*L+n*n)/(l-this.L);this.W[this.N]=Math.abs((L-this.B)/this.B)>.5?1:0;for(O=n=0;O<4;O++)n+=this.W[O]||0;n>=3&&this.T();this.B=L}this.L=l;this.V=this.S;this.N=(this.N+1)%4}}; yd.prototype.oz=function(){g.Tj(this.G);g.DM(this.NQ)};g.u(MV,g.V);MV.prototype.U=function(l,n,O,L,X){O=g.lk((0,g.tg)(O,L||this.oO));O={target:l,name:n,callback:O};var F;X&&Kbi()&&(F={passive:!0});l.addEventListener(n,O.callback,F);this.T.push(O);return O}; MV.prototype.EC=function(l){for(var n=0;n<this.T.length;n++)if(this.T[n]==l){this.T.splice(n,1);l.target.removeEventListener(l.name,l.callback);break}}; MV.prototype.oz=function(){g.eU(this);g.V.prototype.oz.call(this)};jU.prototype.clone=function(){var l=new jU,n;for(n in this)if(this.hasOwnProperty(n)){var O=this[n];l[n]=si(O)=="object"?g.jY(O):O}return l};var EFk=["att/get"],Hsa=["embedded_player"],nma=["account/get_setting_values"],dP1=["share/get_share_panel"],$PD=["share/get_web_player_share_panel"],VeF=["feedback"],BQF=["notification/modify_channel_preference"],kFi=["player"],cmc=["browse/edit_playlist"],LG5=["account/set_setting"],imD=["subscription/subscribe"],zNc=["subscription/unsubscribe"],evv=["next","unplugged/watch_next"];var mQ;g.GK=Ao(function(){try{var l=new dP;var n=l.isAvailable()?l:null}catch(O){return null}return n?new g.jW(n):null}); mQ=Ao(function(){var l=new l$q;return l.isAvailable()?new g.jW(l):null});g.Sti=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.i9("yt.msgs_",g.Sti);ck.prototype.pU=function(l,n){l={};var O=[];"USER_SESSION_ID"in Kx&&O.push({key:"u",value:g.R3("USER_SESSION_ID")});if(O=B87(O))l.Authorization=O,O=n=n==null?void 0:n.sessionIndex,O===void 0&&(O=Number(g.R3("SESSION_INDEX",0)),O=isNaN(O)?0:O),g.E0("voice_search_auth_header_removal")||(l["X-Goog-AuthUser"]=O.toString()),"INNERTUBE_HOST_OVERRIDE"in Kx||(l["X-Origin"]=window.location.origin),n===void 0&&"DELEGATED_SESSION_ID"in Kx&&(l["X-Goog-PageId"]=g.R3("DELEGATED_SESSION_ID"));return l};var Ac={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var pi=g.zk("ytglobal.prefsUserPrefsPrefs_")||{};g.i9("ytglobal.prefsUserPrefsPrefs_",pi);var iG;g.h=lWv.prototype;g.h.get=function(l,n){Ki(l);fi(l);l=pi[l]!==void 0?pi[l].toString():null;return l!=null?l:n?n:""}; g.h.set=function(l,n){Ki(l);fi(l);if(n==null)throw Error("ExpectedNotNull");pi[l]=n.toString()}; g.h.remove=function(l){Ki(l);fi(l);delete pi[l]}; g.h.save=function(){var l=!0;g.E0("web_secure_pref_cookie_killswitch")&&(l=!1);g.$p(this.S,this.dump(),63072E3,this.W,l)}; g.h.clear=function(){g.Sp5(pi)}; g.h.dump=function(){var l=[],n;for(n in pi)pi.hasOwnProperty(n)&&l.push(n+"="+encodeURIComponent(String(pi[n])));return l.join("&")}; g.h.parse=function(l){l=decodeURIComponent(l).split("&");for(var n=0;n<l.length;n++){var O=l[n].split("="),L=O[0];(O=O[1])&&(pi[L]=O.toString())}};var gy5={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},E$f={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11, CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},NLv={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},XU0={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.u(g.at,Error);tB.prototype.Ou=function(l,n){return vk(l,1,n)}; tB.prototype.w6=function(l){(l=this.S.get(l))&&l()};g.zk("yt.scheduler.instance.timerIdMap_");g.u(n1,tB);n1.prototype.DN=function(l){if(l===void 0||!Number.isNaN(Number(l))){var n=g.zk("yt.scheduler.instance.cancelJob");n?n(l):g.Pu(l)}}; n1.prototype.start=function(){var l=g.zk("yt.scheduler.instance.start");l&&l()}; n1.prototype.pause=function(){var l=g.zk("yt.scheduler.instance.pause");l&&l()}; g.St=g.Oy();Xm.prototype.set=function(l,n,O,L){O=O||31104E3;this.remove(l);if(this.S)try{this.S.set(l,n,Date.now()+O*1E3);return}catch(F){}var X="";if(L)try{X=escape(g.QM(n))}catch(F){return}else X=escape(n);g.$p(l,X,O,this.W)}; Xm.prototype.get=function(l,n){var O=void 0,L=!this.S;if(!L)try{O=this.S.get(l)}catch(X){L=!0}if(L&&(O=g.VA(l))&&(O=unescape(O),n))try{O=JSON.parse(O)}catch(X){this.remove(l),O=void 0}return O}; Xm.prototype.remove=function(l){this.S&&this.S.remove(l);g.Bu(l,"/",this.W)}; Xm.prototype.getCreationTime=function(l){return this.S&&(l=(this.S.W(l)||{}).creation,typeof l==="number")?l:null};var oZ=function(){var l;return function(){l||(l=new Xm("ytidb"));return l}}();var wF=[],xt,Ho=!1;var NZ={},hck=(NZ.AUTH_INVALID="No user identifier specified.",NZ.EXPLICIT_ABORT="Transaction was explicitly aborted.",NZ.IDB_NOT_SUPPORTED="IndexedDB is not supported.",NZ.MISSING_INDEX="Index not created.",NZ.MISSING_OBJECT_STORES="Object stores not created.",NZ.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",NZ.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",NZ.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",NZ.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",NZ.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",NZ.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",NZ.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",NZ),DS={},Zz7=(DS.AUTH_INVALID="ERROR",DS.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",DS.EXPLICIT_ABORT="IGNORED", DS.IDB_NOT_SUPPORTED="ERROR",DS.MISSING_INDEX="WARNING",DS.MISSING_OBJECT_STORES="ERROR",DS.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",DS.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",DS.QUOTA_EXCEEDED="WARNING",DS.QUOTA_MAYBE_EXCEEDED="WARNING",DS.UNKNOWN_ABORT="WARNING",DS.INCOMPATIBLE_DB_VERSION="WARNING",DS),qZ={},J5k=(qZ.AUTH_INVALID=!1,qZ.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,qZ.EXPLICIT_ABORT=!1,qZ.IDB_NOT_SUPPORTED=!1,qZ.MISSING_INDEX=!1,qZ.MISSING_OBJECT_STORES=!1,qZ.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,qZ.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,qZ.QUOTA_EXCEEDED=!1,qZ.QUOTA_MAYBE_EXCEEDED=!0,qZ.UNKNOWN_ABORT=!0,qZ.INCOMPATIBLE_DB_VERSION=!1,qZ);g.u(g.uX,g.at);g.u(Po,g.uX);g.u(Tz,Error);var wUf=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.q3.all=function(l){return new g.q3(new D7(function(n,O){var L=[],X=l.length;X===0&&n(L);for(var F={cK:0};F.cK<l.length;F={cK:F.cK},++F.cK)g.q3.resolve(l[F.cK]).then(function(x){return function(Z){L[x.cK]=Z;X--;X===0&&n(L)}}(F)).catch(function(x){O(x)})}))}; g.q3.resolve=function(l){return new g.q3(new D7(function(n,O){l instanceof g.q3?l.then(n,O):n(l)}))}; g.q3.reject=function(l){return new g.q3(new D7(function(n,O){O(l)}))}; g.q3.prototype.then=function(l,n){var O=this,L=l!=null?l:A59,X=n!=null?n:Hzg;return new g.q3(new D7(function(F,x){O.state.status==="PENDING"?(O.S.push(function(){bzv(O,O,L,F,x)}),O.W.push(function(){r59(O,O,X,F,x)})):O.state.status==="FULFILLED"?bzv(O,O,L,F,x):O.state.status==="REJECTED"&&r59(O,O,X,F,x)}))}; g.q3.prototype.catch=function(l){return this.then(void 0,l)};g.h=Eyi.prototype;g.h.add=function(l,n,O){return g.Gz(this,[l],{mode:"readwrite",aO:!0},function(L){return L.objectStore(l).add(n,O)})}; g.h.clear=function(l){return g.Gz(this,[l],{mode:"readwrite",aO:!0},function(n){return n.objectStore(l).clear()})}; g.h.close=function(){this.S.close();var l;((l=this.options)==null?0:l.closed)&&this.options.closed()}; g.h.count=function(l,n){return g.Gz(this,[l],{mode:"readonly",aO:!0},function(O){return O.objectStore(l).count(n)})}; g.h.delete=function(l,n){return g.Gz(this,[l],{mode:"readwrite",aO:!0},function(O){return O.objectStore(l).delete(n)})}; g.h.get=function(l,n){return g.Gz(this,[l],{mode:"readonly",aO:!0},function(O){return O.objectStore(l).get(n)})}; g.h.getAll=function(l,n,O){return g.Gz(this,[l],{mode:"readonly",aO:!0},function(L){return L.objectStore(l).getAll(n,O)})}; g.h.objectStoreNames=function(){return Array.from(this.S.objectStoreNames)}; g.h.getName=function(){return this.S.name}; g.h=eH.prototype;g.h.add=function(l,n){return y_(this.S.add(l,n))}; g.h.autoIncrement=function(){return this.S.autoIncrement}; g.h.clear=function(){return y_(this.S.clear()).then(function(){})}; g.h.count=function(l){return y_(this.S.count(l))}; g.h.delete=function(l){return l instanceof IDBKeyRange?kC9(this,l):y_(this.S.delete(l))}; g.h.get=function(l){return y_(this.S.get(l))}; g.h.getAll=function(l,n){return"getAll"in IDBObjectStore.prototype?y_(this.S.getAll(l,n)):y5v(this,l,n)}; g.h.index=function(l){try{return new YJk(this.S.index(l))}catch(n){if(n instanceof Error&&n.name==="NotFoundError")throw new Tz(l,this.S.name);throw n;}}; g.h.getName=function(){return this.S.name}; g.h.keyPath=function(){return this.S.keyPath}; dF.prototype.abort=function(){this.S.abort();this.W=!0;throw new g.uX("EXPLICIT_ABORT");}; dF.prototype.objectStore=function(l){l=this.S.objectStore(l);var n=this.N.get(l);n||(n=new eH(l),this.N.set(l,n));return n}; g.h=YJk.prototype;g.h.count=function(l){return y_(this.S.count(l))}; g.h.delete=function(l){return g.iX(this,{query:l},function(n){return n.delete().then(function(){return g.Bo(n)})})}; g.h.get=function(l){return y_(this.S.get(l))}; g.h.getAll=function(l,n){return"getAll"in IDBIndex.prototype?y_(this.S.getAll(l,n)):jK5(this,l,n)}; g.h.keyPath=function(){return this.S.keyPath}; g.h.unique=function(){return this.S.unique}; zz.prototype.delete=function(){return y_(this.cursor.delete()).then(function(){})}; zz.prototype.getValue=function(){return this.cursor.value}; zz.prototype.update=function(l){return y_(this.cursor.update(l))};p1.prototype.W=function(l,n,O){O=O===void 0?{}:O;return mo8(l,n,O)}; p1.prototype.delete=function(l){l=l===void 0?{}:l;return SH(this.name,l)}; p1.prototype.open=function(){function l(){var F,x,Z,J,w,H,A,b,r,U;return g.Y(function(W){switch(W.S){case 1:return x=(F=Error().stack)!=null?F:"",g.We(W,2),g.Q(W,O.W(O.name,O.options.version,X),4);case 4:for(var N=Z=W.W,q=O.options,y=[],e=g.P(Object.keys(q.L8)),d=e.next();!d.done;d=e.next()){d=d.value;var B=q.L8[d],R=B.dnJ===void 0?Number.MAX_VALUE:B.dnJ;!(N.S.version>=B.JM)||N.S.version>=R||N.S.objectStoreNames.contains(d)||y.push(d)}J=y;if(J.length===0){W.D2(5);break}w=Object.keys(O.options.L8); H=Z.objectStoreNames();if(O.B<g.NY("ytidb_reopen_db_retries",0))return O.B++,Z.close(),AG(new g.uX("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:w,foundObjectStores:H})),W.return(l());if(!(O.L<g.NY("ytidb_remake_db_retries",1))){W.D2(6);break}O.L++;return g.Q(W,O.delete(),7);case 7:return AG(new g.uX("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:w,foundObjectStores:H})),W.return(l());case 6:throw new Po(H,w);case 5:return W.return(Z);case 2:A= g.D5(W);if(A instanceof DOMException?A.name!=="VersionError":"DOMError"in self&&A instanceof DOMError?A.name!=="VersionError":!(A instanceof Object&&"message"in A)||A.message!=="An attempt was made to open a database using a lower version than the existing version."){W.D2(8);break}return g.Q(W,O.W(O.name,void 0,Object.assign({},X,{upgrade:void 0})),9);case 9:b=W.W;r=b.S.version;if(O.options.version!==void 0&&r>O.options.version+1)throw b.close(),O.N=!1,IW5(O,r);return W.return(b);case 8:throw n(), A instanceof Error&&!g.E0("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+x.substring(x.indexOf("\n")+1)),Ey(A,O.name,"",(U=O.options.version)!=null?U:-1);}})} function n(){O.S===L&&(O.S=void 0)} var O=this;if(!this.N)throw IW5(this);if(this.S)return this.S;var L,X={blocking:function(F){F.close()}, closed:n,H2q:n,upgrade:this.options.upgrade};return this.S=L=l()};var f1=new p1("YtIdbMeta",{L8:{databases:{JM:1}},upgrade:function(l,n){n(1)&&g.Yt(l,"databases",{keyPath:"actualName"})}});var tG,C1=new function(){}(new function(){});new g.U_;g.u(nK,p1);nK.prototype.W=function(l,n,O){O=O===void 0?{}:O;return(this.options.shared?pU5:SJe)(l,n,Object.assign({},O))}; nK.prototype.delete=function(l){l=l===void 0?{}:l;return(this.options.shared?aW9:sKg)(this.name,l)};var pdF={},Cxf=g.Ox("ytGcfConfig",{L8:(pdF.coldConfigStore={JM:1},pdF.hotConfigStore={JM:1},pdF),shared:!1,upgrade:function(l,n){n(1)&&(g.$t(g.Yt(l,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.$t(g.Yt(l,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.u(LK,g.V);LK.prototype.oz=function(){for(var l=g.P(this.W),n=l.next();!n.done;n=l.next()){var O=this.S;n=O.indexOf(n.value);n>=0&&O.splice(n,1)}this.W.length=0;g.V.prototype.oz.call(this)};Zg.prototype.Uv=function(l){this.hotHashData=l;g.i9("yt.gcf.config.hotHashData",this.hotHashData||null)};var sAL=typeof TextEncoder!=="undefined"?new TextEncoder:null,BLe=sAL?function(l){return sAL.encode(l)}:function(l){l=g.EF(l); for(var n=new Uint8Array(l.length),O=0;O<n.length;O++)n[O]=l[O];return n};var CIe={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},vOi={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};bI.prototype.OP=function(){return{version:this.version,args:this.args}};rx.prototype.toString=function(){return this.topic};var fIO=g.zk("ytPubsub2Pubsub2Instance")||new g.Mo;g.Mo.prototype.subscribe=g.Mo.prototype.subscribe;g.Mo.prototype.unsubscribeByKey=g.Mo.prototype.uJ;g.Mo.prototype.publish=g.Mo.prototype.publish;g.Mo.prototype.clear=g.Mo.prototype.clear;g.i9("ytPubsub2Pubsub2Instance",fIO);var P2=g.zk("ytPubsub2Pubsub2SubscribedKeys")||{};g.i9("ytPubsub2Pubsub2SubscribedKeys",P2);var Tu=g.zk("ytPubsub2Pubsub2TopicToKeys")||{};g.i9("ytPubsub2Pubsub2TopicToKeys",Tu);var k_g=g.zk("ytPubsub2Pubsub2IsAsync")||{}; g.i9("ytPubsub2Pubsub2IsAsync",k_g);g.i9("ytPubsub2Pubsub2SkipSubKey",null);var Mz=void 0,yf=void 0;var dH5=g.NY("max_body_size_to_compress",5E5),$Hv=g.NY("min_body_size_to_compress",500),j3=!0,dx=0,IH=0,cz9=g.NY("compression_performance_threshold_lr",250),ix9=g.NY("slow_compressions_before_abandon_count",4),e3=!1,YO=new Map,Gu=1,Vg7=!0;g.h=Vf.prototype;g.h.writeThenSend=function(l,n){var O=this;n=n===void 0?{}:n;if($O(this)&&this.S){var L={url:l,options:n,timestamp:this.now(),status:"NEW",sendCount:0};this.lU.set(L,this.uQ).then(function(X){L.id=X;O.wZ.EP()&&O.Vd(L)}).catch(function(X){O.Vd(L); B2(O,X)})}else this.sendFn(l,n)}; g.h.sendThenWrite=function(l,n,O){var L=this;n=n===void 0?{}:n;if($O(this)&&this.S){var X={url:l,options:n,timestamp:this.now(),status:"NEW",sendCount:0};this.MQ&&this.MQ("nwl_skip_retry")&&(X.skipRetry=O);if(this.wZ.EP()||this.MQ&&this.MQ("nwl_aggressive_send_then_write")&&!X.skipRetry){if(!X.skipRetry){var F=n.onError?n.onError:function(){}; n.onError=function(x,Z){return g.Y(function(J){if(J.S==1)return g.Q(J,L.lU.set(X,L.uQ).catch(function(w){B2(L,w)}),2); F(x,Z);g.Tk(J)})}}this.sendFn(l,n,X.skipRetry)}else this.lU.set(X,this.uQ).catch(function(x){L.sendFn(l,n,X.skipRetry); B2(L,x)})}else O=this.MQ&&this.MQ("nwl_skip_retry")&&O,this.sendFn(l,n,O)}; g.h.sendAndWrite=function(l,n){var O=this;n=n===void 0?{}:n;if($O(this)&&this.S){var L={url:l,options:n,timestamp:this.now(),status:"NEW",sendCount:0},X=!1,F=n.onSuccess?n.onSuccess:function(){}; L.options.onSuccess=function(x,Z){L.id!==void 0?O.lU.BK(L.id,O.uQ):X=!0;O.wZ.LV&&O.MQ&&O.MQ("vss_network_hint")&&O.wZ.LV(!0);F(x,Z)}; this.sendFn(L.url,L.options,void 0,!0);this.lU.set(L,this.uQ).then(function(x){L.id=x;X&&O.lU.BK(L.id,O.uQ)}).catch(function(x){B2(O,x)})}else this.sendFn(l,n,void 0,!0)}; g.h.v6=function(){var l=this;if(!$O(this))throw Error("IndexedDB is not supported: throttleSend");this.W||(this.W=this.ZJ.Ou(function(){var n;return g.Y(function(O){if(O.S==1)return g.Q(O,l.lU.z8("NEW",l.uQ),2);if(O.S!=3)return n=O.W,n?g.Q(O,l.Vd(n),3):(l.vn(),O.return());l.W&&(l.W=0,l.v6());g.Tk(O)})},this.tv))}; g.h.vn=function(){this.ZJ.DN(this.W);this.W=0}; g.h.Vd=function(l){var n=this,O;return g.Y(function(L){switch(L.S){case 1:if(!$O(n))throw Error("IndexedDB is not supported: immediateSend");if(l.id===void 0){L.D2(2);break}return g.Q(L,n.lU.oP5(l.id,n.uQ),3);case 3:(O=L.W)||n.MK(Error("The request cannot be found in the database."));case 2:if(n.i9(l,n.Js)){L.D2(4);break}n.MK(Error("Networkless Logging: Stored logs request expired age limit"));if(l.id===void 0){L.D2(5);break}return g.Q(L,n.lU.BK(l.id,n.uQ),5);case 5:return L.return();case 4:l.skipRetry|| (l=Kq9(n,l));if(!l){L.D2(0);break}if(!l.skipRetry||l.id===void 0){L.D2(8);break}return g.Q(L,n.lU.BK(l.id,n.uQ),8);case 8:n.sendFn(l.url,l.options,!!l.skipRetry),g.Tk(L)}})}; g.h.i9=function(l,n){l=l.timestamp;return this.now()-l>=n?!1:!0}; g.h.Fs=function(){var l=this;if(!$O(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.lU.z8("QUEUED",this.uQ).then(function(n){n&&!l.i9(n,l.Ly)?l.ZJ.Ou(function(){return g.Y(function(O){if(O.S==1)return n.id===void 0?O.D2(2):g.Q(O,l.lU.Tf(n.id,l.uQ),2);l.Fs();g.Tk(O)})}):l.wZ.EP()&&l.v6()})};var c2;var PG9={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,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};var Kcu={},LAe=g.Ox("ServiceWorkerLogsDatabase",{L8:(Kcu.SWHealthLog={JM:1},Kcu),shared:!0,upgrade:function(l,n){n(1)&&g.$t(g.Yt(l,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var S3={},Zhv=0;var pK;fK.prototype.requestComplete=function(l,n){n&&(this.W=!0);l=this.removeParams(l);this.S.get(l)||this.S.set(l,n)}; fK.prototype.isEndpointCFR=function(l){l=this.removeParams(l);return(l=this.S.get(l))?!1:l===!1&&this.W?!0:null}; fK.prototype.removeParams=function(l){return l.split("?")[0]}; fK.prototype.removeParams=fK.prototype.removeParams;fK.prototype.isEndpointCFR=fK.prototype.isEndpointCFR;fK.prototype.requestComplete=fK.prototype.requestComplete;fK.getInstance=KK;g.u(aH,g.vE);g.h=aH.prototype;g.h.EP=function(){return this.S.EP()}; g.h.LV=function(l){this.S.S=l}; g.h.K6=function(){var l=window.navigator.onLine;return l===void 0?!0:l}; g.h.EY=function(){this.W=!0}; g.h.listen=function(l,n){return this.S.listen(l,n)}; g.h.G_=function(l){l=ih(this.S,l);l.then(function(n){g.E0("use_cfr_monitor")&&KK().requestComplete("generate_204",n)}); return l}; aH.prototype.sendNetworkCheckRequest=aH.prototype.G_;aH.prototype.listen=aH.prototype.listen;aH.prototype.enableErrorFlushing=aH.prototype.EY;aH.prototype.getWindowStatus=aH.prototype.K6;aH.prototype.networkStatusHint=aH.prototype.LV;aH.prototype.isNetworkAvailable=aH.prototype.EP;aH.getInstance=Hhi;g.u(g.RH,g.vE);g.RH.prototype.EP=function(){var l=g.zk("yt.networkStatusManager.instance.isNetworkAvailable");return l?l.bind(this.W)():!0}; g.RH.prototype.LV=function(l){var n=g.zk("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);n&&n(l)}; g.RH.prototype.G_=function(l){var n=this,O;return g.Y(function(L){O=g.zk("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(n.W);return g.E0("skip_network_check_if_cfr")&&KK().isEndpointCFR("generate_204")?L.return(new Promise(function(X){var F;n.LV(((F=window.navigator)==null?void 0:F.onLine)||!0);X(n.EP())})):O?L.return(O(l)):L.return(!0)})};var CK;g.u(tc,Vf);tc.prototype.writeThenSend=function(l,n){n||(n={});n=lu(l,n);g.Ci()||(this.S=!1);Vf.prototype.writeThenSend.call(this,l,n)}; tc.prototype.sendThenWrite=function(l,n,O){n||(n={});n=lu(l,n);g.Ci()||(this.S=!1);Vf.prototype.sendThenWrite.call(this,l,n,O)}; tc.prototype.sendAndWrite=function(l,n){n||(n={});n=lu(l,n);g.Ci()||(this.S=!1);Vf.prototype.sendAndWrite.call(this,l,n)}; tc.prototype.awaitInitialization=function(){return this.N.promise};var uXk=g.Be.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.i9("ytNetworklessLoggingInitializationOptions",uXk);g.nP.prototype.isReady=function(){!this.config_&&Az0()&&(this.config_=g.wx());return!!this.config_};var aIR,LP,ou;aIR=g.Be.ytPubsubPubsubInstance||new g.Mo;LP=g.Be.ytPubsubPubsubSubscribedKeys||{};ou=g.Be.ytPubsubPubsubTopicToKeys||{};g.Xx=g.Be.ytPubsubPubsubIsSynchronous||{};g.Mo.prototype.subscribe=g.Mo.prototype.subscribe;g.Mo.prototype.unsubscribeByKey=g.Mo.prototype.uJ;g.Mo.prototype.publish=g.Mo.prototype.publish;g.Mo.prototype.clear=g.Mo.prototype.clear;g.i9("ytPubsubPubsubInstance",aIR);g.i9("ytPubsubPubsubTopicToKeys",ou);g.i9("ytPubsubPubsubIsSynchronous",g.Xx); g.i9("ytPubsubPubsubSubscribedKeys",LP);var DY9={};g.u(Tn,g.V);Tn.prototype.append=function(l){if(!this.W)throw Error("This does not support the append operation");l=l.De();this.De().appendChild(l)}; g.u(WV,Tn);WV.prototype.De=function(){return this.S};g.u(yP5,g.V);var EG=Date.now().toString();var y3={};var j5=Symbol("injectionDeps");Q3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Y0q.prototype.resolve=function(l){return l instanceof e5?Gn(this,l.key,[],!0):Gn(this,l,[])};var m_;var dz=window;var iu=g.E0("web_enable_lifecycle_monitoring")&&V3()!==0,V_i=g.E0("web_enable_lifecycle_monitoring");IEf.prototype.cancel=function(){for(var l=g.P(this.S),n=l.next();!n.done;n=l.next())n=n.value,n.jobId===void 0||n.rI||this.scheduler.DN(n.jobId),n.rI=!0;this.W.resolve()};g.h=zn.prototype;g.h.install=function(l){this.plugins.push(l);return this}; g.h.uninstall=function(){var l=this;g.eq.apply(0,arguments).forEach(function(n){n=l.plugins.indexOf(n);n>-1&&l.plugins.splice(n,1)})}; g.h.transition=function(l,n){var O=this;iu&&Gj5(this.state);var L=this.transitions.find(function(F){return Array.isArray(F.from)?F.from.find(function(x){return x===O.state&&F.o6===l}):F.from===O.state&&F.o6===l}); if(L){this.W&&(dYf(this.W),this.W=void 0);Bc5(this,l,n);this.state=l;iu&&BV(this.state);L=L.action.bind(this);var X=this.plugins.filter(function(F){return F[l]}).map(function(F){return F[l]}); L($Y5(this,X),n)}else throw Error("no transition specified from "+this.state+" to "+l);}; g.h.V1p=function(l){var n=g.eq.apply(1,arguments);g.Oy();for(var O=g.P(l),L=O.next(),X={};!L.done;X={M2:void 0},L=O.next())X.M2=L.value,Fta(function(F){return function(){pP(F.M2.name);fP(function(){return F.M2.callback.apply(F.M2,g.E(n))}); sG(F.M2.name)}}(X))}; g.h.CQz=function(l){var n=g.eq.apply(1,arguments),O,L,X,F;return g.Y(function(x){x.S==1&&(g.Oy(),O=g.P(l),L=O.next(),X={});if(x.S!=3){if(L.done)return x.D2(0);X.Ng=L.value;X.Lw=void 0;F=function(Z){return function(){pP(Z.Ng.name);var J=fP(function(){return Z.Ng.callback.apply(Z.Ng,g.E(n))}); xW(J)?Z.Lw=g.E0("web_lifecycle_error_handling_killswitch")?J.then(function(){sG(Z.Ng.name)}):J.then(function(){sG(Z.Ng.name)},function(w){mYi(w); sG(Z.Ng.name)}):sG(Z.Ng.name)}}(X); Fta(F);return X.Lw?g.Q(x,X.Lw,3):x.D2(3)}X={Ng:void 0,Lw:void 0};L=O.next();return x.D2(2)})}; g.h.xm=function(l){var n=g.eq.apply(1,arguments),O=this,L=l.map(function(X){return{ZH:function(){pP(X.name);fP(function(){return X.callback.apply(X,g.E(n))}); sG(X.name)}, priority:S5(O,X)}}); L.length&&(this.W=new IEf(L))}; g.xi.Object.defineProperties(zn.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var au;g.u(KP,zn);KP.prototype.B=function(l,n){var O=this;this.S=g.lX(0,function(){O.currentState==="application_navigating"&&O.transition("none")},5E3); l(n==null?void 0:n.event)}; KP.prototype.V=function(l,n){this.S&&(g.St.DN(this.S),this.S=null);l(n==null?void 0:n.event)};var Ts=[];g.i9("yt.logging.transport.getScrapedGelPayloads",function(){return Ts});Ru.prototype.storePayload=function(l,n){l=CP(l);this.store[l]?this.store[l].push(n):(this.W={},this.store[l]=[n]);this.S++;g.E0("more_accurate_gel_parser")&&(n=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(n));return l}; Ru.prototype.smartExtractMatchingEntries=function(l){if(!l.keys.length)return[];for(var n=vV(this,l.keys.splice(0,1)[0]),O=[],L=0;L<n.length;L++)this.store[n[L]]&&l.sizeLimit&&(this.store[n[L]].length<=l.sizeLimit?(O.push.apply(O,g.E(this.store[n[L]])),delete this.store[n[L]]):O.push.apply(O,g.E(this.store[n[L]].splice(0,l.sizeLimit))));this.S-=O.length;(l==null?0:l.sizeLimit)&&O.length<(l==null?void 0:l.sizeLimit)&&(l.sizeLimit-=O.length,O.push.apply(O,g.E(this.smartExtractMatchingEntries(l)))); return O}; Ru.prototype.extractMatchingEntries=function(l){l=vV(this,l);for(var n=[],O=0;O<l.length;O++)this.store[l[O]]&&(n.push.apply(n,g.E(this.store[l[O]])),delete this.store[l[O]]);this.S-=n.length;return n}; Ru.prototype.getSequenceCount=function(l){l=vV(this,l);for(var n=0,O=0;O<l.length;O++){var L=void 0;n+=((L=this.store[l[O]])==null?void 0:L.length)||0}return n}; Ru.prototype.getSequenceCount=Ru.prototype.getSequenceCount;Ru.prototype.extractMatchingEntries=Ru.prototype.extractMatchingEntries;Ru.prototype.smartExtractMatchingEntries=Ru.prototype.smartExtractMatchingEntries;Ru.prototype.storePayload=Ru.prototype.storePayload;var oT5=g.NY("initial_gel_batch_timeout",2E3),Xkk=g.NY("gel_queue_timeout_max_ms",6E4),FQk=g.NY("gel_min_batch_size",5),xm=void 0,u19=new ll,UV8=new ll,LQi=new ll,gT8=new ll,Zx,r2=!0,Pv=1,O$=new Map,Ar=g.Be.ytLoggingTransportTokensToCttTargetIds_||{};g.i9("ytLoggingTransportTokensToCttTargetIds_",Ar);var Hv=g.Be.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.i9("ytLoggingTransportTokensToJspbCttTargetIds_",Hv);var Xv={},ih8=!1;var Wv=g.Be.ytLoggingGelSequenceIdObj_||{};g.i9("ytLoggingGelSequenceIdObj_",Wv);var CGk=[];var Yh7,kl=g.Be.ytLoggingDocDocumentNonce_;kl||(kl=g.D0(16),g.i9("ytLoggingDocDocumentNonce_",kl));Yh7=kl;var MU7={NB:0,BaQ:1,UoQ:2,I5:3,beq:4,Bkf:5,eXm:6,SHARE:7,cQi:8,dR5:9,eK1:10,XHf:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var WQ5=1;g.h=NR.prototype;g.h.getAsJson=function(){var l={};this.S.trackingParams!==void 0?l.trackingParams=this.S.trackingParams:(l.veType=this.S.veType,this.S.veCounter!==void 0&&(l.veCounter=this.S.veCounter),this.S.elementIndex!==void 0&&(l.elementIndex=this.S.elementIndex));this.S.dataElement!==void 0&&(l.dataElement=this.S.dataElement.getAsJson());this.S.youtubeData!==void 0&&(l.youtubeData=this.S.youtubeData);this.S.isCounterfactual&&(l.isCounterfactual=!0);return l}; g.h.getAsJspb=function(){var l=new G_;this.S.trackingParams!==void 0?l.setTrackingParams(this.S.trackingParams):(this.S.veType!==void 0&&i3(l,2,w8(this.S.veType)),this.S.veCounter!==void 0&&i3(l,6,w8(this.S.veCounter)),this.S.elementIndex!==void 0&&i3(l,3,w8(this.S.elementIndex)),this.S.isCounterfactual&&i3(l,5,hh(!0)));if(this.S.dataElement!==void 0){var n=this.S.dataElement.getAsJspb();hX(l,G_,7,n)}this.S.youtubeData!==void 0&&hX(l,Vuk,8,this.S.jspbYoutubeData);return l}; g.h.toString=function(){return JSON.stringify(this.getAsJson())}; g.h.isClientVe=function(){return!this.S.trackingParams&&!!this.S.veType}; g.h.getLoggingDirectives=function(){return this.S.loggingDirectives};g.i9("yt_logging_screen.getRootVeType",qh0);g.i9("yt_logging_screen.getCurrentCsn",g.yS);g.i9("yt_logging_screen.getCttAuthInfo",MR);g.i9("yt_logging_screen.setCurrentScreen",jt7);var IMi="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var pka=[{Bb:function(l){return"Cannot read property '"+l.key+"'"}, Yv:{Error:[{kV:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{kV:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{kV:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{kV:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{kV:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{kV:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{kV:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Bb:function(l){return"Cannot call '"+l.key+"'"}, Yv:{TypeError:[{kV:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{kV:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{kV:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{kV:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{kV:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {kV:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Bb:function(l){return l.key+" is not defined"}, Yv:{ReferenceError:[{kV:/(.*) is not defined/,groups:["key"]},{kV:/Can't find variable: (.*)/,groups:["key"]}]}}];var BU9={Ru:[],Tj:[{callback:dV0,weight:500}]};var er;var $m=new g.Mo;var st9=new Set,zpg=0,aMq=0,KQi=0,Shq=[],Rpq=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var vTe=new g.MH("parallelCommand");var O1g=new g.MH("performOnceCommand");var nti=new g.MH("serialCommand");var Bv=void 0;var RNc=g.P(D4g({},"Z39Sdf"));RNc.next();RNc.next();var Ca6=g.P(D4g(null,"qqrkLd"));Ca6.next();Ca6.next();g.u(zs,bI);var qla=new rx("screen-created",zs),nI=[],LI8=hP5,Ow=0,pA=new Map,s$=new Map,fA=new Map;g.nO(g.hj,g.V);g.h=g.hj.prototype;g.h.subscribe=function(l,n,O){return this.JG()?0:this.I0.subscribe(l,n,O)}; g.h.unsubscribe=function(l,n,O){return this.JG()?!1:this.I0.unsubscribe(l,n,O)}; g.h.uJ=function(l){return this.JG()?!1:this.I0.uJ(l)}; g.h.publish=function(l,n){return this.JG()?!1:this.I0.publish.apply(this.I0,arguments)}; g.h.DF=function(l,n){for(var O in l)this.subscribe(O,l[O],n)}; g.h.zW=function(l,n){for(var O in l)this.unsubscribe(O,l[O],n)};var lOf=16/9,yg=[.25,.5,.75,1,1.25,1.5,1.75,2],teR=yg.concat([3,4,5,6,7,8,9,10,15]),vdc=yg.concat([2.5,3,3.5,4]),lZ0=yg.concat([2.5,3]);var Z15=1;g.u(g.Jj,g.V);g.h=g.Jj.prototype; g.h.createElement=function(l,n){n=n||l.D==="svg";var O=l.X,L=l.gq;if(n){var X=document.createElementNS("http://www.w3.org/2000/svg",l.D);g.tt&&(l.Z||(l.Z={}),l.Z.focusable="false")}else X=g.nf(l.D);if(O){if(O=wW(this,X,"class",O))Hr(this,X,"class",O),this.Fp[O]=X}else if(L){O=g.P(L);for(var F=O.next();!F.done;F=O.next())this.Fp[F.value]=X;Hr(this,X,"class",L.join(" "))}L=l.hG;O=l.K;if(L)n=wW(this,X,"child",L),n!==void 0&&X.appendChild(g.ON(n));else if(O)for(L=0,O=g.P(O),F=O.next();!F.done;F=O.next())if(F= F.value)if(typeof F==="string")F=wW(this,X,"child",F),F!=null&&X.appendChild(g.ON(F));else if(F.element)X.appendChild(F.element);else{var x=F;F=this.createElement(x,n);X.appendChild(F);x.Lp&&(x=ZT(),F.id=x,F=document.createElementNS("http://www.w3.org/2000/svg","use"),F.setAttribute("class","ytp-svg-shadow"),F.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+x),Xg(X,F,L++))}if(l=l.Z)for(n=X,L=g.P(Object.keys(l)),O=L.next();!O.done;O=L.next())O=O.value,F=l[O],Hr(this,n,O,typeof F==="string"? wW(this,n,O,F):F);return X}; g.h.mJ=function(l){return this.Fp[l]}; g.h.V5=function(l,n){typeof n==="number"?Xg(l,this.element,n):l.appendChild(this.element)}; g.h.detach=function(){g.og(this.element)}; g.h.update=function(l){for(var n=g.P(Object.keys(l)),O=n.next();!O.done;O=n.next())O=O.value,this.updateValue(O,l[O])}; g.h.updateValue=function(l,n){(l=this.UU["{{"+l+"}}"])&&Hr(this,l[0],l[1],n)}; g.h.oz=function(){this.Fp={};this.UU={};this.detach();g.V.prototype.oz.call(this)};g.u(g.f,g.Jj);g.h=g.f.prototype;g.h.NP=function(l,n){this.updateValue(n||"content",l)}; g.h.show=function(){this.Qp||(g.HH(this.element,"display",""),this.Qp=!0)}; g.h.hide=function(){this.Qp&&(g.HH(this.element,"display","none"),this.Qp=!1)}; g.h.vk=function(l){l?this.show():this.hide()}; g.h.Ge=function(l){this.B=l}; g.h.listen=function(l,n,O){return this.U(this.element,l,n,O)}; g.h.U=function(l,n,O,L){O=(0,g.tg)(O,L||this);L={target:l,type:n,listener:O};this.listeners.push(L);l.addEventListener(n,O);return L}; g.h.EC=function(l){var n=this;this.listeners.forEach(function(O,L){O===l&&(O=n.listeners.splice(L,1)[0],O.target.removeEventListener(O.type,O.listener))})}; g.h.focus=function(){this.element.focus()}; g.h.oz=function(){for(;this.listeners.length;){var l=this.listeners.pop();l&&l.target.removeEventListener(l.type,l.listener)}g.Jj.prototype.oz.call(this)};g.u(g.Aj,g.f);g.Aj.prototype.subscribe=function(l,n,O){return this.Fi.subscribe(l,n,O)}; g.Aj.prototype.unsubscribe=function(l,n,O){return this.Fi.unsubscribe(l,n,O)}; g.Aj.prototype.uJ=function(l){return this.Fi.uJ(l)}; g.Aj.prototype.publish=function(l){return this.Fi.publish.apply(this.Fi,[l].concat(g.E(g.eq.apply(1,arguments))))};var n6u=new WeakSet;g.u(bm,g.Aj);g.h=bm.prototype;g.h.bind=function(l){this.G3||l.renderer&&this.init(l.id,l.renderer,{},l);return Promise.resolve()}; g.h.init=function(l,n,O){this.G3=l;this.element.setAttribute("id",this.G3);this.uv&&g.FW(this.element,this.uv);this.Wm=n&&n.adRendererCommands;this.z3=n.interaction;var L;((L=this.z3)==null?0:L.onTap)&&g.FW(this.element,"ytp-ad-component--clickable");this.macros=O;this.G=n.trackingParams||null;var X,F;this.T=(F=(X=g.z(n.rendererContext,LcO))==null?void 0:X.loggingDirectives)!=null?F:n.loggingDirectives;this.G!=null?this.createServerVe(this.element,this.G):this.T&&(l=this.element,n=this.T,this.api.createServerVe(l, this,!0),this.api.setTrackingParams(l,n.trackingParams||null))}; g.h.clear=function(){}; g.h.hide=function(){g.Aj.prototype.hide.call(this);(this.G!=null||this.T)&&this.logVisibility(this.element,!1)}; g.h.show=function(){g.Aj.prototype.show.call(this);if(!this.oO){this.oO=!0;var l=this.Wm&&this.Wm.impressionCommand,n,O=(n=this.z3)==null?void 0:n.onFirstVisible;l?this.Jb(l):O&&(l=cv(O))&&this.Jb(l)}(this.G!=null||this.T)&&this.logVisibility(this.element,!0)}; g.h.onClick=function(l){if((this.G||this.T)&&!n6u.has(l)){var n=this.element;this.api.hasVe(n)&&this.Qp&&this.api.logClick(n,this.interactionLoggingClientData);n6u.add(l)}var O=this.Wm&&this.Wm.clickCommand,L;n=(L=this.z3)==null?void 0:L.onTap;if(O)n=this.QI(O),this.Jb(n);else{if(L=n)a:{L=this.element;l=l.composedPath();l=g.P(l);for(O=l.next();!O.done;O=l.next()){O=O.value;if(O===L)break;if(O.className.indexOf("ytp-ad-component--clickable")>=0){L=!1;break a}}L=!0}L&&(n=cv(n))&&this.Jb(n)}}; g.h.QI=function(l){return l}; g.h.Uq=function(l){var n=this.Q5;n.T=!0;n.W=l.touches.length;n.S.isActive()&&(n.S.stop(),n.B=!0);l=l.touches;n.V=M_i(n,l)||l.length!=1;var O=l.item(0);n.V||!O?(n.G=Infinity,n.Y=Infinity):(n.G=O.clientX,n.Y=O.clientY);for(O=n.N.length=0;O<l.length;O++){var L=l.item(O);n.N.push(L.identifier)}}; g.h.Pe=function(l){var n=this.Q5;l=l.changedTouches.item(0);var O;if(O=pO()){O=g.e6();var L="";if(K09())L=/Windows (?:NT|Phone) ([0-9.]+)/,L=(O=L.exec(O))?O[1]:"0.0";else if(pO())L=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,L=(O=L.exec(O))&&O[1].replace(/_/g,".");else if(sF())L=/Mac OS X ([0-9_.]+)/,L=(O=L.exec(O))?O[1].replace(/_/g,"."):"10";else if(kq(g.e6(),"KaiOS"))L=/(?:KaiOS)\/(\S+)/i,L=(O=L.exec(O))&&O[1];else if(f59())L=/Android\s+([^\);]+)(\)|;)/,L=(O=L.exec(O))&&O[1];else if(zc()?Gc.platform=== "Chrome OS":Ik("CrOS"))L=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,L=(O=L.exec(O))&&O[1];O=!(g.Qs(L||"",8)>=0)}if(O||l&&Math.pow(l.clientX-n.G,2)+Math.pow(l.clientY-n.Y,2)>25)n.L=!0}; g.h.FI=function(l){if(this.Q5){var n=this.Q5,O=l.changedTouches;O&&n.T&&n.W==1&&!n.L&&!n.B&&!n.V&&M_i(n,O)&&(n.Wm=l,n.S.start());n.W=l.touches.length;n.W===0&&(n.T=!1,n.L=!1,n.N.length=0);n.B=!1}}; g.h.Jb=function(l){this.layoutId?this.Iz.executeCommand(l,this.layoutId):g.Ir(new g.at("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.h.createServerVe=function(l,n){this.api.createServerVe(l,this);this.api.setTrackingParams(l,n)}; g.h.logVisibility=function(l,n){this.api.hasVe(l)&&this.api.logVisibility(l,n,this.interactionLoggingClientData)}; g.h.oz=function(){this.clear(null);this.EC(this.Yo);for(var l=g.P(this.Lf),n=l.next();!n.done;n=l.next())this.EC(n.value);g.Aj.prototype.oz.call(this)};g.u(G5,bm); G5.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.S=n;if(n.text==null&&n.icon==null)g.d2(Error("ButtonRenderer did not have text or an icon set."));else{switch(n.style||null){case "STYLE_UNKNOWN":l="ytp-ad-button-link";break;default:l=null}l!=null&&g.FW(this.element,l);n.text!=null&&(l=g.Uw(n.text),g.DL(l)||(this.element.setAttribute("aria-label",l),this.N=new g.Aj({D:"span",X:"ytp-ad-button-text",hG:l}),g.c(this,this.N),this.N.V5(this.element)));n.accessibilityData&&n.accessibilityData.accessibilityData&& n.accessibilityData.accessibilityData.label&&!g.DL(n.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",n.accessibilityData.accessibilityData.label);n.icon!=null&&(n=jf(n.icon,this.L),n!=null&&(this.W=new g.Aj({D:"span",X:"ytp-ad-button-icon",K:[n]}),g.c(this,this.W)),this.V?Xg(this.element,this.W.element,0):this.W.V5(this.element))}}; G5.prototype.clear=function(){this.hide()}; G5.prototype.onClick=function(l){bm.prototype.onClick.call(this,l);l=g.P(Yy7(this));for(var n=l.next();!n.done;n=l.next())n=n.value,this.layoutId?this.Iz.executeCommand(n,this.layoutId):g.Ir(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.u(mO,g.V);mO.prototype.oz=function(){this.W&&g.DM(this.W);this.S.clear();IF=null;g.V.prototype.oz.call(this)}; mO.prototype.register=function(l,n){n&&this.S.set(l,n)}; var IF=null;g.u(Vo,bm); Vo.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);l=n.hoverText||null;n=n.button&&g.z(n.button,g.dm)||null;n==null?g.Ir(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,void 0,void 0,void 0,void 0,this.N),g.c(this,this.button),this.button.init(F2("button"),n,this.macros),l&&this.button.element.setAttribute("aria-label",g.Uw(l)),this.button.V5(this.element),this.Y&&!g.oK(this.button.element, "ytp-ad-clickable")&&g.FW(this.button.element,"ytp-ad-clickable"),this.N&&(g.FW(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.J("clean_player_style_fix_on_web")&&g.FW(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),l&&(this.W=new g.Aj({D:"div",X:"ytp-ad-hover-text-container"}),this.V&&(n=new g.Aj({D:"div",X:"ytp-ad-hover-text-callout"}),n.V5(this.W.element),g.c(this,n)),g.c(this,this.W),this.W.V5(this.element),n=dW(l),Xg(this.W.element,n,0)), this.show())}; Vo.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();bm.prototype.hide.call(this)}; Vo.prototype.show=function(){this.button&&this.button.show();bm.prototype.show.call(this)};g.u(cr,bm); cr.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);O=(l=n.thumbnail)&&Br(l)||"";g.DL(O)?Math.random()<.01&&g.d2(Error("Found AdImage without valid image URL")):(this.S?g.HH(this.element,"backgroundImage","url("+O+")"):RC(this.element,{src:O}),RC(this.element,{alt:l&&l.accessibility&&l.accessibility.label||""}),n&&n.adRendererCommands&&n.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; cr.prototype.clear=function(){this.hide()};g.u(im,bm);g.h=im.prototype;g.h.hide=function(){bm.prototype.hide.call(this);this.N&&this.N.focus()}; g.h.show=function(){this.N=document.activeElement;bm.prototype.show.call(this);this.L.focus()}; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.W=n;n.dialogMessages||n.title!=null?n.confirmLabel==null?g.Ir(Error("ConfirmDialogRenderer.confirmLabel was not set.")):n.cancelLabel==null?g.Ir(Error("ConfirmDialogRenderer.cancelLabel was not set.")):I7i(this,n):g.Ir(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.eU(this.S);this.hide()}; g.h.G4=function(){this.hide()}; g.h.Rl=function(){var l=this.W.cancelEndpoint;l&&(this.layoutId?this.Iz.executeCommand(l,this.layoutId):g.Ir(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.h.KW=function(){var l=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;l&&(this.layoutId?this.Iz.executeCommand(l,this.layoutId):g.Ir(Error("Missing layoutId for confirm dialog.")));this.hide()};g.u(z5,bm);g.h=z5.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.N=n;if(n.defaultText==null&&n.defaultIcon==null)g.Ir(Error("ToggleButtonRenderer must have either text or icon set."));else if(n.defaultIcon==null&&n.toggledIcon!=null)g.Ir(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(n.style){switch(n.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":l="ytp-ad-toggle-button-default-style";break;default:l=null}l!=null&&g.FW(this.L,l)}l={};n.defaultText? (O=g.Uw(n.defaultText),g.DL(O)||(l.buttonText=O,this.api.j().experiments.MQ("a11y_h5_associate_survey_question")||this.S.setAttribute("aria-label",O),this.api.j().experiments.MQ("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",O))):g.q4(this.Cf,!1);n.defaultTooltip&&(l.tooltipText=n.defaultTooltip,this.S.hasAttribute("aria-label")||this.W.setAttribute("aria-label",n.defaultTooltip));n.defaultIcon?(O=jf(n.defaultIcon),this.updateValue("untoggledIconTemplateSpec",O),n.toggledIcon?(this.NQ= !0,O=jf(n.toggledIcon),this.updateValue("toggledIconTemplateSpec",O)):(g.q4(this.Y,!0),g.q4(this.V,!1)),g.q4(this.S,!1)):g.q4(this.W,!1);g.Qj(l)||this.update(l);n.isToggled&&(g.FW(this.L,"ytp-ad-toggle-button-toggled"),this.toggleButton(n.isToggled));Sf(this);this.U(this.element,"change",this.CD);this.show()}}; g.h.onClick=function(l){this.Lf.length>0&&(this.toggleButton(!this.isToggled()),this.CD());bm.prototype.onClick.call(this,l)}; g.h.CD=function(){g.wP(this.L,"ytp-ad-toggle-button-toggled",this.isToggled());for(var l=g.P(d35(this,this.isToggled())),n=l.next();!n.done;n=l.next())n=n.value,this.layoutId?this.Iz.executeCommand(n,this.layoutId):g.Ir(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Sf(this)}; g.h.clear=function(){this.hide()}; g.h.toggleButton=function(l){g.wP(this.L,"ytp-ad-toggle-button-toggled",l);this.S.checked=l;Sf(this)}; g.h.isToggled=function(){return this.S.checked};g.u(pI,MV);pI.prototype.V=function(l){if(Array.isArray(l)){l=g.P(l);for(var n=l.next();!n.done;n=l.next())n=n.value,n instanceof $39&&this.L(n)}};g.u(fI,bm);g.h=fI.prototype;g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);n.reasons?n.confirmLabel==null?g.Ir(Error("AdFeedbackRenderer.confirmLabel was not set.")):(n.cancelLabel==null&&g.d2(Error("AdFeedbackRenderer.cancelLabel was not set.")),n.title==null&&g.d2(Error("AdFeedbackRenderer.title was not set.")),i1g(this,n)):g.Ir(Error("AdFeedbackRenderer.reasons were not set."))}; g.h.clear=function(){qV(this.V);qV(this.Y);this.L.length=0;this.hide()}; g.h.hide=function(){this.S&&this.S.hide();this.W&&this.W.hide();bm.prototype.hide.call(this);this.N&&this.N.focus()}; g.h.show=function(){this.S&&this.S.show();this.W&&this.W.show();this.N=document.activeElement;bm.prototype.show.call(this);this.V.focus()}; g.h.N7=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.h.ouo=function(){this.hide()}; KI.prototype.De=function(){return this.S.element}; KI.prototype.getCommand=function(){return this.W}; KI.prototype.isChecked=function(){return this.N.checked};g.u(aF,im);aF.prototype.G4=function(l){im.prototype.G4.call(this,l);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; aF.prototype.Rl=function(l){im.prototype.Rl.call(this,l);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; aF.prototype.KW=function(l){im.prototype.KW.call(this,l);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.u(RF,bm);g.h=RF.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.V=n;if(n.dialogMessage==null&&n.title==null)g.Ir(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{n.confirmLabel==null&&g.d2(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(l=n.closeOverlayRenderer&&g.z(n.closeOverlayRenderer,g.dm)||null)this.S=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.c(this,this.S),this.S.init(F2("button"),l,this.macros),this.S.V5(this.element);n.title&&(l=g.Uw(n.title),this.updateValue("title",l));if(n.adReasons)for(l=n.adReasons,O=0;O<l.length;O++){var L=dW(l[O]);if(!g.DL(L.textContent)){var X=lA("LI");X.appendChild(L);this.Hm.appendChild(X)}}else g.q4(this.Hm,!1);n.dialogMessage&&(l=dW(n.dialogMessage,!0),this.Pm.appendChild(l));n.confirmLabel&&(l=g.Uw(n.confirmLabel),this.updateValue("confirmLabel",l));n.muteAdRenderer&&(n=g.z(n.muteAdRenderer,g.dm)||null)&& (l=n.navigationEndpoint&&g.z(n.navigationEndpoint,xPq)||null,O=n.navigationEndpoint&&g.z(n.navigationEndpoint,C1R)||null,l==null&&O==null?g.d2(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(l?zPq(this,l):O&&Sy9(this,O),this.N=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-info-dialog-mute-button"],"button",!0),g.c(this,this.N),this.N.init(F2("button"),n,this.macros),this.N.listen("click", this.pki,this),this.N.V5(this.nf)));po7(this)}}; g.h.clear=function(){qV(this.Y);this.hide()}; g.h.hide=function(){this.W?this.W.hide():this.L&&this.L.hide();this.S&&this.S.hide();this.N&&this.N.hide();bm.prototype.hide.call(this);this.NQ&&this.NQ.focus()}; g.h.show=function(){this.S&&this.S.show();this.N&&this.N.show();if(!this.wq){for(var l=g.P(this.V&&this.V.impressionEndpoints||[]),n=l.next();!n.done;n=l.next())n=n.value,this.layoutId?this.Iz.executeCommand(n,this.layoutId):g.Ir(Error("Missing layoutId for ad info dialog."));this.wq=!0}this.NQ=document.activeElement;bm.prototype.show.call(this);this.Y.focus()}; g.h.Vj=function(){if(this.V&&this.V.confirmServiceEndpoint){var l=this.V.confirmServiceEndpoint;this.layoutId?this.Iz.executeCommand(l,this.layoutId):g.Ir(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()}; g.h.pki=function(){var l=this.W?this.W:this.L;l&&!l.Qp&&(this.hide(),l.show())};g.u(CI,Vo);CI.prototype.init=function(l,n,O){Vo.prototype.init.call(this,l,n,O);l=n.button&&g.z(n.button,g.dm)||null;l!=null&&(RPg(this,l,O),this.api.J("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())}; CI.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();Vo.prototype.hide.call(this)}; CI.prototype.show=function(){this.button&&this.button.show();Vo.prototype.show.call(this)}; CI.prototype.clear=function(){this.hide()};g.u(tj,bm); tj.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.S=n;this.isTemplated()||g.xQ(this.element,rW(this.S));if(n.backgroundImage&&(l=(l=n.backgroundImage.thumbnail)?Br(l):"",O=(O=this.api.getVideoData(1))&&O.o_,l&&O&&(this.element.style.backgroundImage="url("+l+")",this.element.style.backgroundSize="100%"),n.style&&n.style.adTextStyle))switch(n.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(l=g.v3(n.targetId))&&this.element.setAttribute("data-tooltip-target-id",l); n&&n.adRendererCommands&&n.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()}; tj.prototype.isTemplated=function(){return this.S.isTemplated||!1}; tj.prototype.clear=function(){this.hide()};var LBq={seekableStart:0,seekableEnd:1,current:0};g.u(lr,bm);lr.prototype.clear=function(){this.dispose()};g.u(g.gy,g.V);g.h=g.gy.prototype;g.h.show=function(l){this.state!==1&&this.state!==2&&(this.state===4&&this.YI(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.S&&this.S()):this.element.Qp||(LH(this,!0),this.state=1,l?this.delay.start(l):this.YI()))}; g.h.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Qp&&(LH(this,!0),this.state=4,this.delay.start(this.N)))}; g.h.YI=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:LH(this,!1);this.state=3;this.delay.start(this.W);break;case 3:this.state=null;this.S&&this.S();break;case 4:this.element.hide();LH(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; g.h.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.YI()}; g.h.oz=function(){this.element.JG()||this.element.element.removeAttribute("aria-hidden");g.V.prototype.oz.call(this)};g.u(X8,lr);g.h=X8.prototype; g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);l=n.durationMilliseconds;typeof l==="number"&&l<0&&g.Ir(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+l));this.Of&&(this.L?g.FW(this.W.element,"modern-countdown-next-to-thumbnail"):g.FW(this.W.element,"countdown-next-to-thumbnail"));l=n.durationMilliseconds;this.Hm=l==null||l===0?this.S.Bc():l;if(n.templatedCountdown)var L=n.templatedCountdown.templatedAdText;else n.staticPreview&&(L=n.staticPreview); this.N.init(F2("ad-text"),L,O);(L=this.api.getVideoData(1))&&L.o_&&n.thumbnail?this.V.init(F2("ad-image"),n.thumbnail,O):(this.NQ.hide(),this.L&&this.Of&&g.FW(this.N.element,"ytp-ad-preview-text-modern-postroll"))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.W.hide();this.N.hide();this.V.hide();O2(this);lr.prototype.hide.call(this)}; g.h.show=function(){nH(this);this.W.show();this.N.show();this.V.show();lr.prototype.show.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S!=null){var l=this.S.getProgressState();l!=null&&l.current!=null&&(l=1E3*l.current,!this.Pm&&l>=this.Hm?(this.Cf.hide(),this.Pm=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(l=Math.max(0,Math.ceil((this.Hm-l)/1E3)),l!=this.nf&&(vr(this.N,{TIME_REMAINING:String(l)}),this.nf=l)))}};g.u(F8,lr);g.h=F8.prototype; g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);if(n.image&&n.image.thumbnail)if(n.headline)if(n.description)if((l=n.actionButton&&g.z(n.actionButton,g.dm))&&l.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null)if(n.image&&n.image.thumbnail){var X=n.image.thumbnail.thumbnails;X!=null&&X.length>0&&g.DL(g.v3(X[0].url))&&(X[0].url=L.profilePicture)}else g.d2(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(F2("ad-image"),n.image,O);this.V.init(F2("ad-text"), n.headline,O);this.L.init(F2("ad-text"),n.description,O);this.W.init(F2("button"),l,O);O=aU(this.W.element);K7(this.W.element,O+" This link opens in new tab");this.NQ=l.navigationEndpoint;this.api.Ls()||this.show();this.api.j().J("enable_larger_flyout_cta_on_desktop")&&(this.mJ("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.mJ("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.mJ("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.mJ("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.mJ("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.mJ("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.mJ("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.BP.bind(this));this.Cf=n.startMs||0;nH(this)}else g.Ir(Error("FlyoutCtaRenderer has no valid action button."));else g.Ir(Error("FlyoutCtaRenderer has no description AdText."));else g.Ir(Error("FlyoutCtaRenderer has no headline AdText."));else g.d2(Error("FlyoutCtaRenderer has no image."))}; g.h.onClick=function(l){lr.prototype.onClick.call(this,l);this.api.pauseVideo();!g.Fg(this.W.element,l.target)&&this.NQ&&(this.layoutId?this.Iz.executeCommand(this.NQ,this.layoutId):g.Ir(Error("Missing layoutId for flyout cta.")))}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();(l&&l.current||this.Hm)&&1E3*l.current>=this.Cf&&(O2(this),g.ZW(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.h.Os=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.BP.bind(this))}; g.h.show=function(){this.W&&this.W.show();lr.prototype.show.call(this)}; g.h.hide=function(){this.W&&this.W.hide();lr.prototype.hide.call(this)}; g.h.BP=function(l){l=="hidden"?this.show():this.hide()};g.u(x7,bm);g.h=x7.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.S=n;if(this.S.rectangle)for(l=this.S.likeButton&&g.z(this.S.likeButton,T9),n=this.S.dislikeButton&&g.z(this.S.dislikeButton,T9),this.N.init(F2("toggle-button"),l,O),this.W.init(F2("toggle-button"),n,O),this.U(this.element,"change",this.HP),this.L.show(100),this.show(),O=g.P(this.S&&this.S.impressionCommands||[]),l=O.next();!l.done;l=O.next())l=l.value,this.layoutId?this.Iz.executeCommand(l,this.layoutId):g.Ir(Error("Missing layoutId for instream user sentiment."))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.N.hide();this.W.hide();bm.prototype.hide.call(this)}; g.h.show=function(){this.N.show();this.W.show();bm.prototype.show.call(this)}; g.h.HP=function(){e8i(this.element,"ytp-ad-instream-user-sentiment-selected");this.S.postMessageAction&&this.api.lF("onYtShowToast",this.S.postMessageAction);this.L.hide()}; g.h.onClick=function(l){this.Lf.length>0&&this.HP();bm.prototype.onClick.call(this,l)};g.u(hV,g.V);g.h=hV.prototype;g.h.oz=function(){this.reset();g.V.prototype.oz.call(this)}; g.h.reset=function(){g.eU(this.L);this.V=!1;this.S&&this.S.stop();this.B.stop();this.N&&(this.N=!1,this.T.play())}; g.h.start=function(){this.reset();this.L.U(this.W,"mouseover",this.J0,this);this.L.U(this.W,"mouseout",this.g4,this);this.Wm&&(this.L.U(this.W,"focusin",this.J0,this),this.L.U(this.W,"focusout",this.g4,this));this.S?this.S.start():(this.V=this.N=!0,g.HH(this.W,{opacity:this.Y}))}; g.h.J0=function(){this.N&&(this.N=!1,this.T.play());this.B.stop();this.S&&this.S.stop()}; g.h.g4=function(){this.V?this.B.start():this.S&&this.S.start()}; g.h.IM=function(){this.N||(this.N=!0,this.G.play(),this.V=!0)};var lgk=[new ZD("b.f_",!1,0),new ZD("j.s_",!1,2),new ZD("r.s_",!1,4),new ZD("e.h_",!1,6),new ZD("i.s_",!0,8),new ZD("s.t_",!1,10),new ZD("p.h_",!1,12),new ZD("s.i_",!1,14),new ZD("f.i_",!1,16),new ZD("a.b_",!1,18),new ZD("a.o_",!1),new ZD("g.o_",!1,22),new ZD("p.i_",!1,24),new ZD("p.m_",!1),new ZD("i.k_",!0,28),new ZD("n.k_",!0,20),new ZD("i.f_",!1),new ZD("a.s_",!0),new ZD("m.c_",!1),new ZD("n.h_",!1,26),new ZD("o.p_",!1)].reduce(function(l,n){l[n.W]=n;return l},{});g.u(ur,lr);g.h=ur.prototype; g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);this.NQ=n;(this.Cf=OKv(this))&&g.d2(Error("hasAdControlInClickCommands_ is true."));if(!n||g.Qj(n))g.Ir(Error("SkipButtonRenderer was not specified or empty."));else if(!n.message||g.Qj(n.message))g.Ir(Error("SkipButtonRenderer.message was not specified or empty."));else{l=this.V?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};n=jf(l);n==null?g.Ir(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+l.iconType+".")): (this.L=new g.Aj({D:"button",gq:[this.V?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{D:"span",X:this.V?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[n]}]}),g.c(this,this.L),this.L.V5(this.N.element),this.W=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,"ytp-ad-skip-button-text"),this.V&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"),this.W.init(F2("ad-text"),this.NQ.message,O),g.c(this,this.W),Xg(this.L.element,this.W.element, 0));var L=L===void 0?null:L;O=this.api.j();!(this.Lf.length>0)&&O.W&&(lO?0:"ontouchstart"in document.documentElement&&(Nak()||TS()))&&(this.EC(this.Yo),L&&this.EC(L),this.Lf=[this.U(this.element,"touchstart",this.Uq,this),this.U(this.element,"touchmove",this.Pe,this),this.U(this.element,"touchend",this.FI,this)])}}; g.h.clear=function(){this.Hm.reset();this.hide()}; g.h.hide=function(){this.N.hide();this.W&&this.W.hide();O2(this);lr.prototype.hide.call(this)}; g.h.onClick=function(l){if(this.L!=null){if(l){var n=l||window.event;n.returnValue=!1;n.preventDefault&&n.preventDefault()}var O;if(tHa(l,{contentCpn:((O=this.api.getVideoData(1))==null?void 0:O.clientPlaybackNonce)||""})===0)this.api.lF("onAbnormalityDetected");else if(lr.prototype.onClick.call(this,l),this.publish("j"),this.api.lF("onAdSkip"),this.Pm||!this.Cf)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.h.QI=function(l){if(!this.Pm)return this.Cf&&AV("SkipButton click commands not pruned while ALC exist"),l;var n,O=(n=g.z(l,g.Pt))==null?void 0:n.commands;if(!O)return l;l=[];for(n=0;n<O.length;n++){var L=O[n];L.adLifecycleCommand&&nOf(L.adLifecycleCommand)||L.pingingEndpoint||L.adPingingEndpoint||l.push(L)}return{commandExecutorCommand:{commands:l}}}; g.h.show=function(){this.Hm.start();this.N.show();this.W&&this.W.show();nH(this);lr.prototype.show.call(this);this.nf&&this.api.j().J("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}; g.h.Os=function(){this.publish("k")}; g.h.lc=function(){};g.u(T7,lr);g.h=T7.prototype; g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);l=n&&n.preskipRenderer&&g.z(n.preskipRenderer,Ip)||{};(l=g.Qj(l)?null:l)?(this.V=l.durationMilliseconds!=null&&l.durationMilliseconds!==void 0?l.durationMilliseconds:5E3,this.W=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S,ta(this.api.j().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&k_(this.api.j())),this.W.init(F2("preskip-component"),l,O),oN(this.W),g.c(this,this.W),this.W.V5(this.element)): n.skipOffsetMilliseconds&&(this.V=n.skipOffsetMilliseconds);l=n&&n.skippableRenderer&&g.z(n.skippableRenderer,dQR)||{};l=g.Qj(l)?null:l;l==null?g.Ir(Error("SkipButtonRenderer was not set in player response.")):(this.N=new ur(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S,this.NQ),this.N.init(F2("skip-button"),l,O),g.c(this,this.N),this.N.V5(this.element),this.api.j().experiments.MQ("enable_skip_to_next_messaging")&&(n=g.v3(n.targetId))&&(O=this.N,O.L!=null&&(O.nf=!0,O.L.element.setAttribute("data-tooltip-target-id", n),O.L.element.setAttribute("data-tooltip-target-fixed",""))),this.show())}; g.h.show=function(){this.L&&this.N?this.N.show():this.W&&this.W.show();nH(this);lr.prototype.show.call(this)}; g.h.Os=function(){}; g.h.clear=function(){this.W&&this.W.clear();this.N&&this.N.clear();O2(this);lr.prototype.hide.call(this)}; g.h.hide=function(){this.W&&this.W.hide();this.N&&this.N.hide();O2(this);lr.prototype.hide.call(this)}; g.h.lc=function(){1E3*this.S.getProgressState().current>=this.V&&gO8(this,!0)};g.u(Wt,G5);Wt.prototype.init=function(l,n,O){G5.prototype.init.call(this,l,n,O);l=!1;n.text!=null&&(l=g.Uw(n.text),l=!g.DL(l));l?n.navigationEndpoint==null?g.d2(Error("No visit advertiser clickthrough provided in renderer,")):n.style!=="STYLE_UNKNOWN"?g.d2(Error("Button style was not a link-style type in renderer,")):this.show():g.d2(Error("No visit advertiser text was present in the renderer."))};g.u(E2,bm); E2.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);l=n.text;g.DL(rW(l))?g.d2(Error("SimpleAdBadgeRenderer has invalid or empty text")):(l&&l.text&&(n=l.text,this.N&&!this.W&&(n=this.api.j(),n=l.text+" "+(n&&n.W?"\u2022":"\u00b7")),n={text:n,isTemplated:l.isTemplated},l.style&&(n.style=l.style),l.targetId&&(n.targetId=l.targetId),l=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),l.init(F2("simple-ad-badge"),n,O),l.V5(this.element),g.c(this,l)),this.show())}; E2.prototype.clear=function(){this.hide()};g.u(Ni,xR);g.u(DD,g.hj);g.h=DD.prototype;g.h.Bc=function(){return this.durationMs}; g.h.stop=function(){this.S&&this.RI.EC(this.S)}; g.h.tC=function(l){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:l.current};this.publish("h")}; g.h.getProgressState=function(){return this.W}; g.h.Az=function(l){g.U2(l,2)&&this.publish("g")};g.u(qi,g.hj);g.h=qi.prototype;g.h.Bc=function(){return this.durationMs}; g.h.start=function(){this.S||(this.S=!0,this.Yh.start())}; g.h.stop=function(){this.S&&(this.S=!1,this.Yh.stop())}; g.h.tC=function(){this.Le+=100;var l=!1;this.Le>this.durationMs&&(this.Le=this.durationMs,this.Yh.stop(),l=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Le/1E3};this.publish("h");l&&this.publish("g")}; g.h.getProgressState=function(){return this.W};g.u(Mi,lr);g.h=Mi.prototype;g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);var L;if(n==null?0:(L=n.templatedCountdown)==null?0:L.templatedAdText){l=n.templatedCountdown.templatedAdText;if(!l.isTemplated){g.d2(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new tj(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);this.W.init(F2("ad-text"),l,{});this.W.V5(this.element);g.c(this,this.W)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){O2(this);lr.prototype.hide.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S!=null){var l=this.S.getProgressState();if(l!=null&&l.current!=null&&this.W){var n=this.S instanceof DD?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:l.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.S instanceof qi?l.seekableEnd:this.api.getDuration(2,!1);l=l.current;var O,L,X=((O=this.api.getVideoData())==null?0:(L=O.iK)==null?0:L.call(O))?Math.max(n-l,0):n-l;vr(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.k7(X)), TIME_REMAINING:String(Math.ceil(X))})}}}; g.h.show=function(){nH(this);lr.prototype.show.call(this)};g.u(Qz,tj);Qz.prototype.onClick=function(l){tj.prototype.onClick.call(this,l);this.api.onAdUxClicked(this.componentType)};g.u(Y7,bm);Y7.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(l=n.content){g.xQ(this.element,l);var O,L;n=((O=n.interaction)==null?void 0:(L=O.accessibility)==null?void 0:L.label)||l;this.element.setAttribute("aria-label",n)}else g.Ir(Error("AdSimpleAttributedString does not have text content"))}; Y7.prototype.clear=function(){this.hide()}; Y7.prototype.onClick=function(l){bm.prototype.onClick.call(this,l)};g.u(jn,bm); jn.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});(l=n.label)&&l.content&&!g.DL(l.content)?(this.adBadgeText.init(F2("ad-simple-attributed-string"),new en(l)),(n=n.adPodIndex)&&n.content&&!g.DL(n.content)&&(this.S=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),this.S.V5(this.element),g.c(this,this.S),this.S.element.classList.add("ytp-ad-badge__pod-index"),this.S.init(F2("ad-simple-attributed-string"),new en(n))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Ir(Error("No label is returned in AdBadgeViewModel."))}; jn.prototype.show=function(){this.adBadgeText.show();var l;(l=this.S)==null||l.show();bm.prototype.show.call(this)}; jn.prototype.hide=function(){this.adBadgeText.hide();var l;(l=this.S)==null||l.hide();bm.prototype.hide.call(this)};g.u(G7,bm); G7.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});(l=n.adPodIndex)&&l.content&&!g.DL(l.content)&&(this.S=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),this.S.V5(this.element),g.c(this,this.S),this.S.init(F2("ad-simple-attributed-string"),new en(l)),(this.api.j().J("clean_player_style_fix_on_web")?n.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.W||n.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.J("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; G7.prototype.show=function(){var l;(l=this.S)==null||l.show();bm.prototype.show.call(this)}; G7.prototype.hide=function(){var l;(l=this.S)==null||l.hide();bm.prototype.hide.call(this)};g.u(m3,bm); m3.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(n!=null&&n.text){var O;if(((O=n.text)==null?0:O.content)&&!g.DL(n.text.content)){this.S=new g.Aj({D:"div",X:"ytp-ad-disclosure-banner__text",hG:n.text.content});g.c(this,this.S);this.S.V5(this.element);var L,X;l=((L=n.interaction)==null?void 0:(X=L.accessibility)==null?void 0:X.label)||n.text.content;this.element.setAttribute("aria-label",l);var F;if((F=n.interaction)==null?0:F.onTap)this.W=new g.Aj({D:"div",X:"ytp-ad-disclosure-banner__chevron",K:[g.Wr()]}), g.c(this,this.W),this.W.V5(this.element);this.show()}}else g.Ir(Error("No banner text found in AdDisclosureBanner."))}; m3.prototype.clear=function(){this.hide()};IN.prototype.getLength=function(){return this.S-this.W};g.u($7,g.Aj);$7.prototype.tC=function(){var l=this.W.getProgressState(),n=l.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.j().J("show_preskip_progress_bar_for_skippable_ads")&&(n=this.N?this.N/1E3:l.seekableEnd);l=dy(new IN(l.seekableStart,n),l.current,0);this.progressBar.style.width=l*100+"%"}; $7.prototype.onStateChange=function(){g.mX(this.api.j())||(this.api.getPresentingPlayerType()===2?this.S===-1&&(this.show(),this.S=this.W.subscribe("h",this.tC,this),this.tC()):this.S!==-1&&(this.hide(),this.W.uJ(this.S),this.S=-1))};g.u(Vz,bm); Vz.prototype.init=function(l,n,O,L){bm.prototype.init.call(this,l,n,O);O=!0;if(n.skipOrPreviewRenderer){var X=n.skipOrPreviewRenderer;l=g.z(X,x4);X=g.z(X,Ip);l?(X=new T7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,this.NQ),X.V5(this.Y),X.init(F2("skip-button"),l,this.macros),g.c(this,X)):X&&!this.api.j().experiments.MQ("disable_ad_preview_for_instream_ads")&&(l=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,!1),l.V5(this.Y),l.init(F2("ad-preview"),X, this.macros),oN(l),g.c(this,l));if(l=g.z(n.skipOrPreviewRenderer,x4)){O=!1;var F=l.skipOffsetMilliseconds}}n.brandInteractionRenderer&&(l=n.brandInteractionRenderer.brandInteractionRenderer,X=new x7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),X.V5(this.Hm),X.init(F2("instream-user-sentiment"),l,this.macros),g.c(this,X));if(l=g.z(n,eiO))if(l=g.z(l,eiO))X=new F8(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,!!n.showWithoutLinkedMediaLayout),g.c(this,X), X.V5(this.V),X.init(F2("flyout-cta"),l,this.macros);l=(this.api.j().J("disable_ad_duration_remaining_for_instream_video_ads")||n.adPodIndex!==void 0)&&!1;L=L&&L.videoAdDurationSeconds;if(n.adBadgeRenderer){var x=n.adBadgeRenderer;X=g.z(x,SG);X!=null?(x=new jn(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,l),g.c(this,x),x.V5(this.S),x.init(F2("ad-badge"),X,this.macros),this.N=x.element):(X=x.simpleAdBadgeRenderer,X==null&&(X={text:{text:"Ad",isTemplated:!1}}),x=new E2(this.api,this.layoutId, this.interactionLoggingClientData,this.Iz,!0),g.c(this,x),x.V5(this.S),x.init(F2("simple-ad-badge"),X,this.macros))}n.adPodIndex&&(X=g.z(n.adPodIndex,c0c),X!=null&&(O=new G7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,O),g.c(this,O),O.V5(this.S),O.init(F2("ad-pod-index"),X)));n.adDurationRemaining&&!n.showWithoutLinkedMediaLayout&&(O=n.adDurationRemaining.adDurationRemainingRenderer,O==null&&(O={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), L=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,L,l),g.c(this,L),L.V5(this.S),L.init(F2("ad-duration-remaining"),O,this.macros),l&&L.element.classList.add("ytp-ad-duration-remaining-autohide"));n.adInfoRenderer&&(L=g.z(n.adInfoRenderer,mK))&&(O=new CI(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.element,void 0,l),g.c(this,O),this.api.j().J("enable_ad_pod_index_autohide")&&this.N!==null?this.S.insertBefore(O.element,this.N.nextSibling):O.V5(this.S), O.init(F2("ad-info-hover-text-button"),L,this.macros));n.visitAdvertiserRenderer&&(O=g.z(n.visitAdvertiserRenderer,g.dm))&&(X=oO9(this)&&this.L?this.L:this.S)&&(L=new Wt(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,L),L.V5(X),L.init(F2("visit-advertiser"),O,this.macros),sU(L.element),O=aU(L.element),K7(L.element,O+" This link opens in new tab"));!(L=this.api.j())||g.jV(L)||L.controlsType!="3"&&!L.disableOrganicUi||(F=new $7(this.api,this.W,F,l),F.V5(this.wq),g.c(this, F));n.adDisclosureBannerRenderer&&(n=g.z(n.adDisclosureBannerRenderer,BDs))&&(F=new m3(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),F.V5(this.Cf),F.init(F2("ad-disclosure-banner"),n),g.c(this,F));this.api.j().J("enable_updated_html5_player_focus_style")&&g.FW(this.element,"ytp-ad-player-overlay-updated-focus-style");l&&this.api.j().W&&this.S.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; Vz.prototype.clear=function(){this.hide()};z7.prototype.set=function(l,n,O){O=O!==void 0?Date.now()+O:void 0;this.S.set(l,n,O)}; z7.prototype.get=function(l){return this.S.get(l)}; z7.prototype.remove=function(l){this.S.remove(l)};var fH=null,KH=null,aN=null,w2i=null;g.i9("yt.www.ads.eventcache.getLastCompanionData",function(){return fH}); g.i9("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.i9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return KH}); g.i9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return aN}); g.i9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return w2i});var Ace=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);RN.prototype.handleResponse=function(l,n){if(!n)throw Error("request needs to be passed into ConsistencyService");var O,L;n=((O=n.gr.context)==null?void 0:(L=O.request)==null?void 0:L.consistencyTokenJars)||[];var X;(l=(X=l.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(n,l)}; RN.prototype.replace=function(l,n){l=g.P(l);for(var O=l.next();!O.done;O=l.next())delete this.S[O.value.encryptedTokenJarContents];rci(this,n)};var Oj0=window.location.hostname.split(".").slice(-2).join("."),MZ;tV.getInstance=function(){MZ=g.zk("yt.clientLocationService.instance");MZ||(MZ=new tV,g.i9("yt.clientLocationService.instance",MZ));return MZ}; g.h=tV.prototype; g.h.setLocationOnInnerTubeContext=function(l){l.client||(l.client={});if(this.S)l.client.locationInfo||(l.client.locationInfo={}),l.client.locationInfo.latitudeE7=Math.floor(this.S.coords.latitude*1E7),l.client.locationInfo.longitudeE7=Math.floor(this.S.coords.longitude*1E7),l.client.locationInfo.horizontalAccuracyMeters=Math.round(this.S.coords.accuracy),l.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)l.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.h.handleResponse=function(l){var n;l=(n=l.responseContext)==null?void 0:n.locationPlayabilityToken;l!==void 0&&(this.locationPlayabilityToken=l,this.S=void 0,g.R3("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=CH(this))&&this.localStorage.set("yt-location-playability-token",l,15552E3):g.$p("YT_CL",JSON.stringify({loctok:l}),15552E3,Oj0,!0))}; g.h.clearLocationPlayabilityToken=function(l){l==="TVHTML5"?(this.localStorage=CH(this))&&this.localStorage.remove("yt-location-playability-token"):g.Bu("YT_CL");this.N=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.h.getCurrentPositionFromGeolocation=function(){var l=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var n=!1,O=1E4;g.R3("INNERTUBE_CLIENT_NAME")==="MWEB"&&(n=!0,O=15E3);return new Promise(function(L,X){navigator.geolocation.getCurrentPosition(function(F){l.S=F;L(F)},function(F){X(F)},{enableHighAccuracy:n, maximumAge:0,timeout:O})})}; g.h.createUnpluggedLocationInfo=function(l){var n={};l=l.coords;if(l==null?0:l.latitude)n.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)n.longitudeE7=Math.floor(l.longitude*1E7);if(l==null?0:l.accuracy)n.locationRadiusMeters=Math.round(l.accuracy);return n}; g.h.createLocationInfo=function(l){var n={};l=l.coords;if(l==null?0:l.latitude)n.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)n.longitudeE7=Math.floor(l.longitude*1E7);return n};g.h=WB5.prototype;g.h.contains=function(l){return Object.prototype.hasOwnProperty.call(this.S,l)}; g.h.get=function(l){if(this.contains(l))return this.S[l]}; g.h.set=function(l,n){this.S[l]=n}; g.h.pT=function(){return Object.keys(this.S)}; g.h.remove=function(l){delete this.S[l]};lD.prototype.getModuleId=function(l){return l.serviceId.getModuleId()}; lD.prototype.get=function(l){a:{var n=this.mappings.get(l.toString());switch(n.type){case "mapping":l=n.value;break a;case "factory":n=n.value();this.mappings.set(l.toString(),{type:"mapping",value:n});l=n;break a;default:l=FL(n)}}return l}; lD.prototype.registerService=function(l,n){this.mappings.set(l.toString(),{type:"mapping",value:n});return l}; new lD;var Qg={},EOa=(Qg.WEB_UNPLUGGED="^unplugged/",Qg.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Qg.WEB_UNPLUGGED_OPS="^unplugged/",Qg.WEB_UNPLUGGED_PUBLIC="^unplugged/",Qg.WEB_CREATOR="^creator/",Qg.WEB_KIDS="^kids/",Qg.WEB_EXPERIMENTS="^experiments/",Qg.WEB_MUSIC="^music/",Qg.WEB_REMIX="^music/",Qg.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Qg.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Qg);g1.prototype.B=function(l,n,O){n=n===void 0?{}:n;O=O===void 0?Ac:O;var L={context:g.vt(l.clickTrackingParams,!1,this.L)};var X=this.W(l);if(X){this.S(L,X,n);var F;n=g.Og(this.N());(X=(F=g.z(l.commandMetadata,g.P9))==null?void 0:F.apiUrl)&&(n=X);F=uj9(cu(n));l=Object.assign({},{command:l},void 0);L={input:F,X4:ik(F),gr:L,config:l};L.config.b0?L.config.b0.identity=O:L.config.b0={identity:O};return L}g.Ir(new g.at("Error: Failed to create Request from Command.",l))}; g.xi.Object.defineProperties(g1.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.u(Lp,g1);g.u(Xn,Lp);Xn.prototype.B=function(){return{input:"/getDatasyncIdsEndpoint",X4:ik("/getDatasyncIdsEndpoint","GET"),gr:{}}}; Xn.prototype.N=function(){return[]}; Xn.prototype.W=function(){}; Xn.prototype.S=function(){};var g66={},OPi=(g66.GET_DATASYNC_IDS=np(Xn),g66);var e0={},LWq=(e0["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",e0["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",e0["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",e0["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",e0["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",e0["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",e0["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", e0["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",e0["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",e0["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",e0["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",e0["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",e0["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",e0["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",e0["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", e0["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",e0["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",e0["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",e0["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",e0["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",e0["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",e0["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", e0["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",e0.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",e0["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",e0["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",e0["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",e0["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",e0["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",e0["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", e0["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",e0["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",e0["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",e0["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",e0["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",e0["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",e0["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",e0["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",e0["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",e0["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",e0.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",e0["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",e0["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",e0["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",e0["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",e0["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",e0["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",e0["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",e0["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",e0["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",e0["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",e0["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",e0["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",e0["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",e0["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",e0["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",e0["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",e0["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",e0["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",e0["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",e0["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",e0["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", e0["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",e0["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",e0["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",e0["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",e0["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",e0["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",e0["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",e0["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",e0["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", e0["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",e0["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",e0["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",e0["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",e0["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",e0["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",e0["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",e0["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", e0),Yl={},QHa=(Yl.auto_search="LATENCY_ACTION_AUTO_SEARCH",Yl.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Yl.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Yl.app_startup="LATENCY_ACTION_APP_STARTUP",Yl.browse="LATENCY_ACTION_BROWSE",Yl.cast_splash="LATENCY_ACTION_CAST_SPLASH",Yl.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Yl.channels="LATENCY_ACTION_CHANNELS",Yl.chips="LATENCY_ACTION_CHIPS",Yl.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Yl.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Yl.editor="LATENCY_ACTION_EDITOR",Yl.embed="LATENCY_ACTION_EMBED",Yl.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Yl.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Yl.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Yl.explore="LATENCY_ACTION_EXPLORE",Yl.favorites="LATENCY_ACTION_FAVORITES",Yl.home="LATENCY_ACTION_HOME",Yl.inboarding="LATENCY_ACTION_INBOARDING",Yl.library="LATENCY_ACTION_LIBRARY",Yl.live="LATENCY_ACTION_LIVE",Yl.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",Yl.management="LATENCY_ACTION_MANAGEMENT",Yl.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Yl.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Yl.onboarding="LATENCY_ACTION_ONBOARDING",Yl.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Yl.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Yl.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Yl.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Yl.prebuffer="LATENCY_ACTION_PREBUFFER", Yl.prefetch="LATENCY_ACTION_PREFETCH",Yl.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Yl.profile_switcher="LATENCY_ACTION_LOGIN",Yl.projects="LATENCY_ACTION_PROJECTS",Yl.reel_watch="LATENCY_ACTION_REEL_WATCH",Yl.results="LATENCY_ACTION_RESULTS",Yl.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Yl.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Yl.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Yl.review="LATENCY_ACTION_REVIEW",Yl.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", Yl.search_ui="LATENCY_ACTION_SEARCH_UI",Yl.search_suggest="LATENCY_ACTION_SUGGEST",Yl.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Yl.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Yl.seek="LATENCY_ACTION_PLAYER_SEEK",Yl.settings="LATENCY_ACTION_SETTINGS",Yl.store="LATENCY_ACTION_STORE",Yl.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Yl.tenx="LATENCY_ACTION_TENX",Yl.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Yl.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Yl.watch="LATENCY_ACTION_WATCH", Yl.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Yl["watch,watch7"]="LATENCY_ACTION_WATCH",Yl["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Yl["watch,watch7ad"]="LATENCY_ACTION_WATCH",Yl["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Yl.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Yl.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Yl.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Yl.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Yl.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", Yl.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Yl.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Yl.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Yl);Object.assign(QHa,LWq);g.u(qu,bI);var Sx7=new rx("aft-recorded",qu);var Xw6=g.Be.ytLoggingGelSequenceIdObj_||{};g.i9("ytLoggingGelSequenceIdObj_",Xw6);var Mu=g.Be.ytLoggingLatencyUsageStats_||{};g.i9("ytLoggingLatencyUsageStats_",Mu);k5.prototype.tick=function(l,n,O,L){Q9(this,"tick_"+l+"_"+n)||g.JG("latencyActionTicked",{tickName:l,clientActionNonce:n},{timestamp:O,cttAuthInfo:L})}; k5.prototype.info=function(l,n,O){var L=Object.keys(l).join("");Q9(this,"info_"+L+"_"+n)||(l=Object.assign({},l),l.clientActionNonce=n,g.JG("latencyActionInfo",l,{cttAuthInfo:O}))}; k5.prototype.jspbInfo=function(l,n,O){for(var L="",X=0;X<Y6(l).length;X++)Y6(l)[X]!==void 0&&(L=X===0?L.concat(""+X):L.concat("_"+X));if(!Q9(this,"info_"+L+"_"+n)){uV(l,2,n);O={cttAuthInfo:O};n=g.E0("jspb_sparse_encoded_pivot")?new px([{}]):new px;l!=null?k6(l,BK):l=void 0;OK(n,7,gdO,l);O=O===void 0?{}:O;l=!1;g.R3("ytLoggingEventsDefaultDisabled",!1)&&(l=!0);l=l?null:g.nP;O=O===void 0?{}:O;L=Math.round(O.timestamp||(0,g.Q_)());UK(n,1,L<Number.MAX_SAFE_INTEGER?L:0);L=new Sg;O.lact?UK(L,1,isFinite(O.lact)? O.lact:-1):O.timestamp?UK(L,1,-1):(X=MU(),UK(L,1,isFinite(X)?X:-1));if(O.sequenceGroup&&!g.E0("web_gel_sequence_info_killswitch")){X=O.sequenceGroup;var F=TUq(X),x=new cK;UK(x,2,F);uV(x,1,X);hX(L,cK,3,x);O.endOfSequence&&delete Xw6[O.sequenceGroup]}hX(n,Sg,33,L);(O.sendIsolatedPayload?Ck9:t_a)("latencyActionInfo",{endpoint:"log_event",payload:n,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},l)}}; k5.prototype.span=function(l,n,O){var L=Object.keys(l).join("");Q9(this,"span_"+L+"_"+n)||(l.clientActionNonce=n,g.JG("latencyActionSpan",l,{cttAuthInfo:O}))};var j0=window,e$=j0.performance||j0.mozPerformance||j0.msPerformance||j0.webkitPerformance||new eE7;var zEk=!1,Gue=!1,Bn={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},sHa=(0,g.tg)(e$.clearResourceTimings||e$.webkitClearResourceTimings||e$.mozClearResourceTimings||e$.msClearResourceTimings||e$.oClearResourceTimings||g.H$,e$);var o6F=window;o6F.ytcsi&&(o6F.ytcsi.infoGel=g.zp,o6F.ytcsi.tick=iD);g.u(g.Kp,g.at);var xU5="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),ZP5=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var HPk=new Q3("INNERTUBE_TRANSPORT_TOKEN");g.u(te,Lp);te.prototype.N=function(){return imD}; te.prototype.W=function(l){return g.z(l,DPL)||void 0}; te.prototype.S=function(l,n,O){O=O===void 0?{}:O;n.channelIds&&(l.channelIds=n.channelIds);n.siloName&&(l.siloName=n.siloName);n.params&&(l.params=n.params);O.botguardResponse&&(l.botguardResponse=O.botguardResponse);O.feature&&(l.clientFeature=O.feature)}; g.xi.Object.defineProperties(te.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.u(vn,Lp);vn.prototype.N=function(){return zNc}; vn.prototype.W=function(l){return g.z(l,NQ0)||void 0}; vn.prototype.S=function(l,n){n.channelIds&&(l.channelIds=n.channelIds);n.siloName&&(l.siloName=n.siloName);n.params&&(l.params=n.params)}; g.xi.Object.defineProperties(vn.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FWR=new Q3("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.u(lv,Lp);lv.prototype.N=function(){return dP1}; lv.prototype.W=function(l){return g.z(l,Jm1)||g.z(l,wdL)||g.z(l,Zmu)}; lv.prototype.S=function(l,n){n.serializedShareEntity&&(l.serializedSharedEntity=n.serializedShareEntity);if(n.clientParamIdentifier){var O;if((O=this.V)==null?0:O.S(n.clientParamIdentifier))l.clientParams=this.V.W(n.clientParamIdentifier)}}; lv[j5]=[FWR];g.u(nu,Lp);nu.prototype.N=function(){return VeF}; nu.prototype.W=function(l){return g.z(l,lIc)||void 0}; nu.prototype.S=function(l,n,O){l.feedbackTokens=[];n.feedbackToken&&l.feedbackTokens.push(n.feedbackToken);if(n=n.cpn||O.cpn)l.feedbackContext={cpn:n};l.isFeedbackTokenUnencrypted=!!O.is_feedback_token_unencrypted;l.shouldMerge=!1;O.extra_feedback_tokens&&(l.shouldMerge=!0,l.feedbackTokens=l.feedbackTokens.concat(O.extra_feedback_tokens))}; g.xi.Object.defineProperties(nu.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.u(Of,Lp);Of.prototype.N=function(){return BQF}; Of.prototype.W=function(l){return g.z(l,Ed0)||void 0}; Of.prototype.S=function(l,n){n.params&&(l.params=n.params);n.secondaryParams&&(l.secondaryParams=n.secondaryParams)};g.u(g4,Lp);g4.prototype.N=function(){return cmc}; g4.prototype.W=function(l){return g.z(l,TQi)||void 0}; g4.prototype.S=function(l,n){n.actions&&(l.actions=n.actions);n.params&&(l.params=n.params);n.playlistId&&(l.playlistId=n.playlistId)};g.u(Lu,Lp);Lu.prototype.N=function(){return $PD}; Lu.prototype.W=function(l){return g.z(l,HmD)}; Lu.prototype.S=function(l,n,O){O=O===void 0?{}:O;n.serializedShareEntity&&(l.serializedSharedEntity=n.serializedShareEntity);O.includeListId&&(l.includeListId=!0)};var x16=new Q3("FETCH_FN_TOKEN"),hQ1=new Q3("PARSE_FN_TOKEN");var Zju=new Q3("NETWORK_SLI_TOKEN");Xs.prototype.fetch=function(l,n,O){var L=this,X,F,x;return g.Y(function(Z){X=Js5(L,l,n);x=(F=L.W)!=null?F:fetch;return Z.return(x(X).then(function(J){return L.handleResponse(J,O)}).catch(function(J){g.d2(J); if((O==null?0:O.Uk)&&J instanceof g.Kp&&J.errorType===1)return Promise.reject(J)}))})}; Xs.prototype.handleResponse=function(l,n){var O,L=(O=this.N)!=null?O:JSON.parse;O=l.text().then(function(X){if((n==null?0:n.G3z)&&l.ok)return jA0(n.G3z,X);X=X.replace(")]}'","");if((n==null?0:n.Uk)&&X)try{var F=L(X)}catch(Z){throw new g.Kp(1,"JSON parsing failed after fetch");}var x;return(x=F)!=null?x:L(X)}); l.redirected||l.ok?this.S&&this.S.success():(this.S&&this.S.G9f(),O=O.then(function(X){g.d2(new g.at("Error: API fetch failed",l.status,l.url,X));return Object.assign({},X,{errorMetadata:{status:l.status}})})); return O}; Xs[j5]=[new e5(Zju),new e5(x16),new e5(hQ1)];var wVe=new Q3("NETWORK_MANAGER_TOKEN");var om;hM.prototype.bindInnertubeChallengeFetcher=function(l){this.S.bicf(l)}; hM.prototype.registerChallengeFetchedCallback=function(l){this.S.bcr(l)}; hM.prototype.getLatestChallengeResponse=function(){return this.S.blc()};var rsi=[],ZP=!1;bv.prototype.L=function(){var l=this;return g.Y(function(n){return n.S==1?g.Q(n,Promise.race([l.S,null]),2):n.return(!!n.W)})}; bv.prototype.N=function(l,n,O){var L=this,X,F,x;return g.Y(function(Z){L.S===null&&ux8(L,AM(L));X=!1;F={};x=function(){var J,w,H;return g.Y(function(A){switch(A.S){case 1:return g.Q(A,L.S,2);case 2:J=A.W;F.challenge=J.challenge;if(!J.vl){"c1a"in J.HH&&(F.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");A.D2(3);break}w=Object.assign({},{c:J.challenge,e:l},n);g.We(A,4);X=!0;if(g.E0("attbs")&&!g.E0("attmusi")){H=J.vl.JO({SD:w});A.D2(6);break}return g.Q(A,J.vl.snapshot({SD:w}),7);case 7:H=A.W;case 6:H?F.webResponse= H:F.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.N7(A,3);break;case 4:g.D5(A),F.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(l==="ENGAGEMENT_TYPE_PLAYBACK"){var b=J.HH,r={};b.c6a&&(r.reportingStatus=String(Number(b.c)^JM()));b.c6b&&(r.broadSpectrumDetectionResult=String(Number(b.c)^Number(g.R3("CATSTAT",0))));F.adblockReporting=r}return A.return(F)}})}; return Z.return(Promise.race([x(),Eje(O,function(){var J=Object.assign({},F);X&&(J.error="ATTESTATION_ERROR_VM_TIMEOUT");return J})]))})};var qGq=["APP_STATE","PI"];var o_a=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,244189,236208,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628, 205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979, 139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274, 160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972, 133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686, 200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512, 22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397, 150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586, 160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164, 135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985, 213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049, 148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044, 93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];Uf.prototype.getState=function(){return this.store.getState()}; Uf.prototype.dispatch=function(l){return this.store.dispatch(l)}; Uf.prototype.subscribe=function(l){return this.store.subscribe(l)}; Uf.prototype.replaceReducer=function(l){return this.store.replaceReducer(l)}; Uf.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.h=Pa.prototype;g.h.getLength=function(){return this.totalLength}; g.h.append=function(l){if(M57(this,l)){var n=this.V4[this.V4.length-1];this.V4[this.V4.length-1]=new Uint8Array(n.buffer,n.byteOffset,n.length+l.length);Ef(this)}else this.V4.push(l);this.totalLength+=l.length}; g.h.split=function(l){for(var n=new Pa,O=new Pa,L=g.P(this.V4),X=L.next();!X.done;X=L.next())X=X.value,l>=X.length?(n.append(X),l-=X.length):l?(n.append(new Uint8Array(X.buffer,X.byteOffset,l)),O.append(new Uint8Array(X.buffer,X.byteOffset+l,X.length-l)),l=0):O.append(X);return{v_:n,WH:O}}; g.h.isFocused=function(l){return l>=this.LB&&l<this.LB+this.V4[this.JP].length}; g.h.focus=function(l){if(!this.isFocused(l)){for(l<this.LB&&Ef(this);this.LB+this.V4[this.JP].length<=l&&this.JP<this.V4.length;)this.LB+=this.V4[this.JP].length,this.JP+=1;this.yT=void 0}}; g.h.aS=function(l,n){return l+n<=this.totalLength}; g.h.VV=function(l,n){l=l===void 0?0:l;n=n===void 0?-1:n;if(!this.totalLength||!n)return new DataView(new ArrayBuffer(0));n<0&&(n=this.totalLength-l);this.focus(l);if(!NT(this,l,n)){var O=this.JP,L=this.LB;this.focus(l+n-1);L=new Uint8Array(this.LB+this.V4[this.JP].length-L);for(var X=0,F=O;F<=this.JP;F++)L.set(this.V4[F],X),X+=this.V4[F].length;this.V4.splice(O,this.JP-O+1,L);Ef(this);this.focus(l)}O=this.V4[this.JP];return new DataView(O.buffer,O.byteOffset+l-this.LB,n)}; g.h.q0=function(l,n){l=this.VV(l===void 0?0:l,n===void 0?-1:n);return new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}; g.h.getUint8=function(l){this.focus(l);return this.V4[this.JP][l-this.LB]};var yN,qT,QN;g.uY=function(){function l(L){for(var X=new Uint8Array(L.length),F=0;F<L.length;F++)X[F]=L[F];return X} function n(L){return new Uint8Array(L)} var O=new Uint8Array([1]);return O.length===1&&O[0]===1?n:l}(); yN=Array(1024);qT=window.TextDecoder?new TextDecoder:void 0;QN=window.TextEncoder?new TextEncoder:void 0;for(var $Uf={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2, fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261, markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30, offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76, votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},dU9={},JhD=g.P(Object.entries($Uf)),wwD=JhD.next();!wwD.done;wwD=JhD.next()){var Hj0=g.P(wwD.value),Ahs=Hj0.next().value,bjD=Hj0.next().value,rhi=Ahs,U1Q=bjD;U1Q&&(dU9[U1Q]=rhi)};var cs9=!1,HT,A9,bB,r3,UE;g.u(uB,g.V); uB.prototype.encrypt=function(l){var n=l.length;l=new Uint8Array(l.buffer.slice(l.byteOffset,l.byteOffset+n));for(var O=this.W,L=0;L<n&&this.S<16;)l[L++]^=O[this.S++];for(var X=n-(n-L)%16;L<X;)iP0(this),l[L++]^=O[0],l[L++]^=O[1],l[L++]^=O[2],l[L++]^=O[3],l[L++]^=O[4],l[L++]^=O[5],l[L++]^=O[6],l[L++]^=O[7],l[L++]^=O[8],l[L++]^=O[9],l[L++]^=O[10],l[L++]^=O[11],l[L++]^=O[12],l[L++]^=O[13],l[L++]^=O[14],l[L++]^=O[15];if(L<n)for(iP0(this),this.S=0;L<n;)l[L++]^=O[this.S++];return l};var T0=!1;(function(){function l(L){for(var X=new Uint8Array(L.length),F=0;F<L.length;F++)X[F]=L[F];return X} function n(L){return new Uint8Array(L)} var O=new Uint8Array([1]);return O.length===1&&O[0]===1?n:l})(); var WT;g.Nm.prototype.encrypt=function(l,n){var O=this,L,X;return g.Y(function(F){if(F.S==1){L=EE();if(!L)return F.return(O.S(l,n));g.We(F,3);return g.Q(F,O.W(l,n,L),5)}if(F.S!=3)return F.return(F.W);X=g.D5(F);g.d2(X);T0=!0;return F.return(O.S(l,n))})}; g.Nm.prototype.W=function(l,n,O){var L=this,X,F;return g.Y(function(x){switch(x.S){case 1:if(L.B){x.D2(2);break}return g.Q(x,O.importKey("raw",L.L,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:L.B=x.W;case 2:return X={name:"AES-CTR",counter:n,length:128},g.Q(x,O.encrypt(X,L.B,l),4);case 4:return F=x.W,x.return(new Uint8Array(F))}})}; g.Nm.prototype.S=function(l,n){this.N||(this.N=new uB(this.L));PT(this.N,n);return this.N.encrypt(l)}; g.Nm.prototype.decrypt=function(l,n){return this.encrypt(l,n)}; g.D4.prototype.encrypt=function(l,n){this.S||(this.S=new uB(this.W));PT(this.S,n);return this.S.encrypt(l)}; g.D4.prototype.decrypt=function(l,n){return this.encrypt(l,n)};qm.prototype.reset=function(){SG5(this);this.update(this.N)}; qm.prototype.update=function(l){var n=0,O=l.length;this.L+=O;this.W&&this.W+O>=64&&(this.V.set(l.subarray(0,64-this.W),this.W),n=64-this.W,this.W=0,zy5(this,this.V,0));for(;n+64<=O;n+=64)zy5(this,l,n);n<O&&(l=l.subarray(n),this.V.set(l,this.W),this.W+=l.length)}; var kg=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804, 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var uLq;uLq={};g.P3L=g.Ox("yt-idb-pref-storage",{L8:(uLq.prefs={JM:1},uLq),shared:!1,upgrade:function(l,n){n(1)&&g.$t(g.Yt(l,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")}, version:1});var G9;G9={};g.T8u=(G9.INVALID_ENCODER_VERSION="Invalid encoder version",G9.KEY_CREATION_FAILED="Failed to create encoder key",G9.UNKNOWN_DECODE_ERROR="Failed to decode PES data",G9.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",G9.WRONG_DATA_TYPE="Encoder cannot process the data type",G9);g.h9("","downloadsPageViewConfigurationEntity");g.h9("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.mS=g.h9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.h9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.h9("SMART_DOWNLOADS_ENABLED","settingEntity");g.h9("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var xR0=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.h=Mm.prototype;g.h.initialize=function(l,n,O,L){this.Vf=L;if(l.program){var X;L=(X=l.interpreterUrl)!=null?X:null;if(l.interpreterSafeScript)X=jJe(l.interpreterSafeScript);else{var F;X=(F=l.interpreterScript)!=null?F:null}l.interpreterSafeUrl&&(L=qH(l.interpreterSafeUrl).toString());FG9(this,X,L,l.program,n,O)}else g.d2(Error("Cannot initialize botguard without program"))}; g.h.isInitialized=function(){return this.d1()}; g.h.getState=function(){return this.state}; g.h.isLoading=function(){return this.state===2}; g.h.invoke=function(l){l=l===void 0?{}:l;return this.d1()?this.ws({SD:l}):null}; g.h.dispose=function(){this.W4(null);this.OC(8)}; g.h.d1=function(){return!!this.vl}; g.h.ws=function(l){return this.vl.JO(l)}; g.h.W4=function(l){g.h0(this.vl);this.vl=l}; g.h.OC=function(l){this.state=l};g.u(eh,Mm);eh.prototype.W4=function(l){var n;(n=QU())==null||n.bgvma();l?(n={bgvma:l.dispose.bind(l),bgvmb:l.snapshot.bind(l),bgvmc:l.JO.bind(l)},g.i9("yt.abuse.playerAttLoader",n),g.i9("yt.abuse.playerAttLoaderRun",function(O){return l.snapshot(O)})):(g.i9("yt.abuse.playerAttLoader",null),g.i9("yt.abuse.playerAttLoaderRun",null))}; eh.prototype.d1=function(){return!!QU()}; eh.prototype.ws=function(l){return QU().bgvmc(l)};Yg.prototype.jN=function(){return"crossDeviceProgressCommand"}; Yg.prototype.pP=function(l){if(l.crossDevicePings){var n=[];l=g.P(l.crossDevicePings);for(var O=l.next();!O.done;O=l.next())n.push({baseUrl:O.value.baseUrl});g.JG("crossDeviceNotificationTransfer",{crossDevicePings:n})}};jh.prototype.jN=function(){return"muteAdEndpoint"}; jh.prototype.pP=function(l,n){switch(l.type){case "SKIP":hlg(this.pZ,this.SI,n)}};G0.prototype.jN=function(){return"openPopupAction"}; G0.prototype.pP=function(){};mZ.prototype.jN=function(){return"pingingEndpoint"}; mZ.prototype.pP=function(){};var rre={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(Jri,g.V);var Z_8={R8z:"FINAL",m3f:"AD_BREAK_LENGTH",L5J:"AD_CPN",D32:"AH",CJG:"AD_MT",VaF:"ASR",HMf:"AW",zdp:"NM",EV3:"NX",qXJ:"NY",a$Q:"CONN",APo:"CPN",uPq:"DV_VIEWABILITY",Qhf:"ERRORCODE",D0q:"ERROR_MSG",V5i:"EI",AZm:"GOOGLE_VIEWABILITY",Y9J:"IAS_VIEWABILITY",yd3:"LACT",UmF:"LIVE_TARGETING_CONTEXT",bZf:"I_X",l0i:"I_Y",ZZq:"MT",xqG:"MIDROLL_POS",uCJ:"MIDROLL_POS_MS",Ssm:"MOAT_INIT",WNp:"MOAT_VIEWABILITY",FNF:"P_H",Ph5:"PV_H",UqG:"PV_W",AQG:"P_W",pHq:"TRIGGER_TYPE",Q4q:"SDKV",tFF:"SLOT_POS",j4m:"SURVEY_LOCAL_TIME_EPOCH_S", AMF:"SURVEY_ELAPSED_MS",W1:"VIS",LAm:"VIEWABILITY",CIm:"VED",VI5:"VOL",HIJ:"WT",W3m:"YT_ERROR_CODE"};$g.prototype.jN=function(){return"urlEndpoint"}; $g.prototype.pP=function(l,n,O){var L=this.qQ.get(),X=QX(L.W.get(),n);X?n=ev(L,g9g(X),X,void 0,void 0,O):(AV("Trying to ping from an unknown layout",void 0,void 0,{layoutId:n}),n={});n=Object.assign({},n);Rn(this.S,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(O=PG(this.Ds,2))&&(n.AD_CPN=O.clientPlaybackNonce);n=g.jt(l.url,n);g.s2(n,void 0,void 0,void 0,l.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};VU.prototype.get=function(){return this.value}; g.u(BT,VU);BT.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.u(cT,VU);cT.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}; g.u(iB,VU);iB.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.u(z0,VU);z0.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"}; g.u(Sh,VU);Sh.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.u(p0,VU);p0.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.u(sE,VU);sE.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.u(f0,VU);f0.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.u(K0,VU);K0.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"}; g.u(aI,VU);aI.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.u(RI,VU);RI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.u(C0,VU);C0.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.u(t9,VU);t9.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.u(vT,VU);vT.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.u(lJ,VU);lJ.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"}; g.u(nb,VU);nb.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.u(OP,VU);OP.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.u(g$,VU);g$.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.u(Lb,VU);Lb.prototype.getType=function(){return"metadata_type_content_cpn"}; g.u(Xc,VU);Xc.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.u(oz,VU);oz.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"}; g.u(Fc,VU);Fc.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.u(xr,VU);xr.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"}; g.u(h8,VU);h8.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"}; g.u(Za,VU);Za.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.u(J8,VU);J8.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.u(w$,VU);w$.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.u(HC,VU);HC.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.u(A8,VU);A8.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.u(bJ,VU);bJ.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.u(r$,VU);r$.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.u(UP,VU);UP.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.u(uJ,VU);uJ.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.u(PC,VU);PC.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.u(TE,VU);TE.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.u(WC,VU);WC.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.u(EP,VU);EP.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.u(N_,VU);N_.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.u(Da,VU);Da.prototype.getType=function(){return"metadata_type_cue_point"}; g.u(q_,VU);q_.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.u(kr,VU);kr.prototype.getType=function(){return"metadata_type_player_vars"}; g.u(yi,VU);yi.prototype.getType=function(){return"metadata_type_preload_player_vars"}; g.u(M_,VU);M_.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.u(Qi,VU);Qi.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.u(eO,VU);eO.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.u(Yr,VU);Yr.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.u(jO,VU);jO.prototype.getType=function(){return"metadata_type_dai"}; g.u(GE,VU);GE.prototype.getType=function(){return"metadata_type_ad_intro"}; g.u(mV,VU);mV.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.u(Iz,VU);Iz.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.u(d$,VU);d$.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.u($r,VU);$r.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.u(Vi,VU);Vi.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.u(BC,VU);BC.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.u(cC,VU);cC.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.u(iJ,VU);iJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.u(zE,VU);zE.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.u(SO,VU);SO.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.u(pb,VU);pb.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.u(sP,VU);sP.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.u(fb,VU);fb.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.u(Kb,VU);Kb.prototype.getType=function(){return"metadata_type_active_view_traffic_type"}; g.u(az,VU);az.prototype.getType=function(){return"metadata_type_active_view_identifier"}; g.u(Rz,VU);Rz.prototype.getType=function(){return"metadata_type_ssdai_ads_config"}; g.u(Cb,VU);Cb.prototype.getType=function(){return"metadata_type_eligible_for_ssap"}; g.u(t8,VU);t8.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}; g.u(vC,VU);vC.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"}; g.u(li,VU);li.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var Qra=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var Vr0=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.u(LL,u1);g.u(C,u1);new Promise(function(){});var T29=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),uvf=new Map([["normal",{x_:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{x_:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{x_:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{x_:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{x_:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{x_:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{x_:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",DR:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.u(bi,g.V);g.h=bi.prototype;g.h.cF=function(l,n){return this.S.cF(l,n)}; g.h.G1=function(l,n){this.Pj.Wr("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",l,n);for(var O=g.P(this.W),L=O.next();!L.done;L=O.next())L.value.G1(l,n)}; g.h.aA=function(l){if(Tg(this.S,l)){this.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);this.S.aA(l);for(var n=g.P(this.W),O=n.next();!O.done;O=n.next())O.value.aA(l);DRe(this,l)}}; g.h.Xb=function(l){if(Tg(this.S,l)){this.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);this.S.Xb(l);for(var n=g.P(this.W),O=n.next();!O.done;O=n.next())O.value.Xb(l);Tg(this.S,l)&&WQ(this.S,l).B&&ui(this,l,!1)}}; g.h.Aq=function(l){this.Pj.e5("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",l);Tg(this.S,l)&&(this.S.Aq(l),ui(this,l,!1))}; g.h.YP=function(l,n){if(Tg(this.S,l)){this.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,n);for(var O=g.P(this.W),L=O.next();!L.done;L=O.next())L.value.YP(l,n)}}; g.h.Hk=function(l,n,O){if(Tg(this.S,l)){this.Pj.N3(Plk(O),l,n);this.S.Hk(l,n);for(var L=g.P(this.W),X=L.next();!X.done;X=L.next())X.value.Hk(l,n,O);(O=mo(this.S,l))&&n.layoutId===O.layoutId&&Ixi(this,l,!1)}}; g.h.rB=function(l,n,O,L){O.Hp&&L?(AV(O,l,n,void 0,O.fg),this.Pj.rJ(L,O.Hp,l,n)):AV("adsClientErrorMessage is missing.",l,n);ui(this,l,!0)}; g.h.oz=function(){var l=$Rg(this.S);l=g.P(l);for(var n=l.next();!n.done;n=l.next())ui(this,n.value,!1);g.V.prototype.oz.call(this)}; g.h.Ec=function(l,n){this.Pj.N3("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",l,n);this.Pj.N3("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",l,n);for(var O=g.P(this.W),L=O.next();!L.done;L=O.next())L=L.value,n&&L.Ec(l,n)};dR5.prototype.isActive=function(){switch(this.S){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.u($_,g.V);g.h=$_.prototype;g.h.cF=function(l,n){n=Gg(this,l+"_"+n);l=[];n=g.P(n.values());for(var O=n.next();!O.done;O=n.next())l.push(O.value.slot);return l}; g.h.fN=function(l){l=WQ(this,l);l.S!=="not_scheduled"&&In(l.slot,l.S,"onSlotScheduled");l.S="scheduled"}; g.h.aT=function(l){l=WQ(this,l);l.L="fill_requested";l.T.aT()}; g.h.aA=function(l){l=WQ(this,l);l.S!=="enter_requested"&&In(l.slot,l.S,"onSlotEntered");l.S="entered"}; g.h.Aq=function(l){WQ(this,l).L="fill_canceled"}; g.h.Xb=function(l){l=WQ(this,l);l.S!=="exit_requested"&&In(l.slot,l.S,"onSlotExited");l.S="scheduled"}; g.h.Hk=function(l,n){l=WQ(this,l);l.layout!=null&&l.layout.layoutId===n.layoutId&&(l.S!=="rendering_stop_requested"&&In(l.slot,l.S,"onLayoutExited"),l.S="entered")};g.u(cQ,g.V);cQ.prototype.get=function(){Math.random()<.001&&this.JG()&&AV("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.S());return this.instance};g.u(zg,g.V);zg.prototype.N=function(){return this.W};SX.prototype.executeCommand=function(l,n){d3(this.S(),l,n)};KL.prototype.addListener=function(l){this.listeners.add(l)}; KL.prototype.removeListener=function(l){this.listeners.delete(l)};var I9={},L$=(I9.AD_MARKER="ytp-ad-progress",I9.CHAPTER_MARKER="ytp-chapter-marker",I9.TIME_MARKER="ytp-time-marker",I9);var S1f=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),KGv=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), pP5=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),nRv=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), vmg=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Rlg=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), s79=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Cl5=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),ax5=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), ahi=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), K6a=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), WWD=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.X4.prototype.getId=function(){return this.id}; g.X4.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Xr8(this.start)+", "+Xr8(this.end)+"]"}; g.X4.prototype.contains=function(l,n){return l>=this.start&&(l<this.end||l===this.end&&this.start===this.end)&&(n==null||l<n&&n<=this.end)}; var LOq=1;g.X4.prototype.getId=g.X4.prototype.getId;hJ.prototype.aT=function(){var l=this,n=0;sri(this.S,function(){var O=on(l.slot.clientMetadata,"metadata_type_ad_break_request_data");n=Date.now();LS(l.qQ.get(),"abrs","ct."+n+";cmt."+l.Bm.get().getCurrentTimeSec(1,!1)+";sid."+l.slot.slotId+";");return l.W.get().fetch({s0:O.getAdBreakUrl,GO:new g.X4(O.Tz,O.wP),dF:on(l.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:O.cueProcessedMs})},function(){FOv(l)},function(O){var L=Date.now()-n; LS(l.qQ.get(),"abrr","ct."+(new Date).getTime()+";cmt."+l.Bm.get().getCurrentTimeSec(1,!1)+";l."+L.toString()+";sid."+l.slot.slotId+";");L=O.MA;L.length>=2&&O.ssdaiAdsConfig&&AV("Unexpected ad placement renderers length",l.slot,null,{length:L.length});L.some(function(X){var F,x,Z,J;return!!((F=X.renderer)==null?0:(x=F.linearAdSequenceRenderer)==null?0:(Z=x.linearAds)==null?0:Z.length)||!((J=X.renderer)==null||!J.instreamVideoAdRenderer)})||FOv(l)})}; hJ.prototype.s5=function(){fxa(this.S)};Z8.prototype.aT=function(){var l=this;sri(this.W,function(){var n=on(l.slot.clientMetadata,"metadata_type_ad_break_request_data");return n.cueProcessedMs?l.S.get().fetch({s0:n.getAdBreakUrl,GO:new g.X4(n.Tz,n.wP),cueProcessedMs:n.cueProcessedMs}):l.S.get().fetch({s0:n.getAdBreakUrl,GO:new g.X4(n.Tz,n.wP)})})}; Z8.prototype.s5=function(){fxa(this.W)};JJ.prototype.aT=function(){var l=this.slot.clientMetadata,n,O=(n=this.slot.fulfilledLayout)!=null?n:on(l,"metadata_type_fulfilled_layout");q$i(this.callback,this.slot,O)}; JJ.prototype.s5=function(){PQ(this.callback,this.slot,new C("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")};HZ.prototype.build=function(l,n){return n.fulfilledLayout||wo(n,{Co:["metadata_type_fulfilled_layout"]})?new JJ(l,n):this.N(l,n)};g.u(AJ,HZ); AJ.prototype.N=function(l,n){if(wo(n,{Co:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new hJ(l,n,this.S,this.W,this.m1,this.Rz,this.qQ,this.Bm,this.Cp);if(wo(n,{Co:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Z8(l,n,this.S,this.W,this.m1,this.Rz);throw new C("Unsupported slot with type: "+n.slotType+" and client metadata: "+FY(n.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(bN,HZ);bN.prototype.N=function(l,n){throw new C("Unsupported slot with type: "+n.slotType+" and client metadata: "+FY(n.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=x6i.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(l){if(l.layoutId!==this.layout.layoutId)this.callback.rB(this.slot,l,new LL("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 n=on(l.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.YP(this.slot,l),qf0(this.N, this.slot,n)):AV("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,l)}}; g.h.oI=function(l,n){l.layoutId!==this.layout.layoutId?this.callback.rB(this.slot,l,new LL("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.Hk(this.slot,l,n),ZIe(this),Jji(this))};g.u(Tx,g.hj);g.h=Tx.prototype;g.h.f5=function(){return this.W.slot}; g.h.Uf=function(){return this.W.layout}; g.h.init=function(){this.N.get().addListener(this)}; g.h.release=function(){this.N.get().removeListener(this);this.dispose()}; g.h.Rm=function(){}; g.h.d3=function(){}; g.h.sO=function(){}; g.h.YA=function(){}; g.h.startRendering=function(l){var n=this;PZ(this.W,l,function(){return void n.N9()})}; g.h.N9=function(){this.N.get().N9(this.S)}; g.h.oI=function(l,n){var O=this;PZ(this.W,l,function(){var L=O.N.get();P7i(L,O.S,3);O.S=[];O.callback.Hk(O.slot,l,n)})}; g.h.oz=function(){this.N.JG()||this.N.get().removeListener(this);g.hj.prototype.oz.call(this)}; g.xi.Object.defineProperties(Tx.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Mr.prototype.xt=function(l,n){n=n===void 0?!1:n;var O=(this.N.get(l)||[]).concat();if(n=n&&Ajf(l)){var L=this.N.get(n);L&&O.push.apply(O,g.E(L))}Yx(this,l,O);this.S.add(l);n&&this.S.add(n)}; Mr.prototype.bv=function(l,n){n=n===void 0?!1:n;if(!this.S.has(l)){var O=n&&Ajf(l);O&&(n=!this.S.has(O));this.xt(l,n)}};g.u(U68,xR);g.u($x,Tx);g.h=$x.prototype;g.h.Jh=function(l,n){D8("ads-engagement-panel-layout",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,F6),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(n,O,L,X,F){return new U68(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(Pmq,xR);g.u(Va,Tx);g.h=Va.prototype;g.h.Jh=function(l,n){D8("banner-image",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,X6),this.callback,"metadata_type_banner_image_layout_view_model",function(n,O,L,X,F){return new Pmq(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(BZ,xR);g.u(cZ,Tx);g.h=cZ.prototype;g.h.Jh=function(l,n){D8("action-companion",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,Oc),this.callback,"metadata_type_action_companion_ad_renderer",function(n,O,L,X,F){return new BZ(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){n.layoutId===this.layout.layoutId?this.Kf.bv("impression"):this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(ER0,xR);g.u(iN,Tx);g.h=iN.prototype;g.h.Jh=function(l,n){D8("image-companion",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,gm),this.callback,"metadata_type_image_companion_ad_renderer",function(n,O,L,X,F){return new ER0(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){n.layoutId===this.layout.layoutId?this.Kf.bv("impression"):this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(D69,xR);g.u(zx,Tx);g.h=zx.prototype;g.h.Jh=function(l,n){D8("shopping-companion",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(n,O,L,X,F){return new D69(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){n.layoutId===this.layout.layoutId?this.Kf.bv("impression"):this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(p$,Tx);g.h=p$.prototype;g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(n,O,L,X,F){return new BZ(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)}; g.h.Jh=function(){};g.h=e39.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){this.Bm.get().addListener(this);this.Bm.get().sF.push(this);var l=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),n=on(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qr(this.layout.vj)&&nk(this.ev.get(),this.layout.layoutId,{d7:n,zq:l,listener:this})}; g.h.release=function(){this.Bm.get().removeListener(this);H_q(this.Bm.get(),this);qr(this.layout.vj)&&OR(this.ev.get(),this.layout.layoutId)}; g.h.startRendering=function(l){this.callback.YP(this.slot,l)}; g.h.oI=function(l,n){$je(this.Rz.get())&&!this.S&&(this.Kf.bv("abandon"),this.S=!0);this.callback.Hk(this.slot,l,n)}; g.h.Gx=function(l){switch(l.id){case "part2viewed":this.Kf.bv("start");this.Kf.bv("impression");break;case "videoplaytime25":this.Kf.bv("first_quartile");break;case "videoplaytime50":this.Kf.bv("midpoint");break;case "videoplaytime75":this.Kf.bv("third_quartile");break;case "videoplaytime100":$je(this.Rz.get())?this.S||(this.Kf.bv("complete"),this.S=!0):this.Kf.bv("complete");I_(this.Kf)&&Gx(this.Kf,Infinity,!0);VB5(this.Rz.get())&&Sv(this.W,Infinity,!0);break;case "engagedview":I_(this.Kf)||this.Kf.bv("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:AV("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.R0=function(){}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.onFullscreenToggled=function(){}; g.h.KN=function(){}; g.h.nM=function(){}; g.h.MX=function(l){VB5(this.Rz.get())&&Sv(this.W,l*1E3,!1);I_(this.Kf)&&Gx(this.Kf,l*1E3,!1)}; g.h.ll=function(){}; g.h.JV=function(){this.Kf.bv("active_view_measurable")}; g.h.zp=function(){this.Kf.bv("active_view_viewable")}; g.h.gN=function(){this.Kf.bv("active_view_fully_viewable_audible_half_duration")}; g.h.HJ=function(){this.Kf.bv("audio_measurable")}; g.h.BJ=function(){this.Kf.bv("audio_audible")};g.u(sT,Tx);g.h=sT.prototype;g.h.init=function(){Tx.prototype.init.call(this);var l=on(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),n={adsClientData:this.layout.yp};this.S.push(new Ni(l,this.layout.layoutId,on(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),n,!0))}; g.h.PO=function(){this.L||this.Bm.get().resumeVideo(1)}; g.h.startRendering=function(l){Tx.prototype.startRendering.call(this,l);hQ(this.Bm.get(),"ad-showing");this.callback.YP(this.slot,l);this.B.oL=this}; g.h.oI=function(l,n){Tx.prototype.oI.call(this,l,n);Zp(this.Bm.get(),"ad-showing");fk(this.B,this)}; g.h.Jh=function(l){switch(l){case "ad-info-icon-button":(this.L=this.Bm.get().OS(1))||this.Bm.get().pauseVideo();break;case "visit-advertiser":this.Bm.get().pauseVideo()}}; g.h.oz=function(){Tx.prototype.oz.call(this)};g.u(f$,xR);g.u(K$,Tx);g.h=K$.prototype;g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(n,O,L,X,F){return new f$(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)}; g.h.Jh=function(){};g.u(a_,xR);g.u(R_,Tx);R_.prototype.init=function(){Tx.prototype.init.call(this);this.S.push(new a_(g.z(this.layout.renderingContent,M0),this.layout.layoutId,{adsClientData:this.layout.yp}))}; R_.prototype.Jh=function(){Md(this.L.get(),this.B)&&Nr(this.qQ.get(),3)}; R_.prototype.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l)}; R_.prototype.oz=function(){Tx.prototype.oz.call(this)};g.u(C$,xR);g.u(tJ,Tx);tJ.prototype.init=function(){Tx.prototype.init.call(this);var l=g.z(this.layout.renderingContent,J6)||on(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),n=WZ(this.Kf);this.S.push(new C$(l,n,this.layout.layoutId,{adsClientData:this.layout.yp},!0,!0))}; tJ.prototype.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l)}; tJ.prototype.Jh=function(l,n){if(n===this.layout.layoutId)switch(l){case "skip-button":var O;(l=(O=on(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&l.ym(this.f5(),this.layout)}}; tJ.prototype.oz=function(){Tx.prototype.oz.call(this)};lj.prototype.build=function(l,n,O,L){if(vZ(L,{Co:["metadata_type_ad_break_response_data"],sU:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new x6i(l,O,L,this.W,this.N,this.S);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.u(G5a,xR);g.u(nB,Tx);g.h=nB.prototype;g.h.Jh=function(l,n){D8("ads-engagement-panel",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,L6),this.callback,"metadata_type_ads_engagement_panel_renderer",function(n,O,L,X,F){return new G5a(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){n.layoutId===this.layout.layoutId?this.Kf.bv("impression"):this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};g.u(Oe,Tx);g.h=Oe.prototype;g.h.Jh=function(l,n){D8("top-banner-image-text-icon-buttoned",l,this.V.get().mf,this.qQ.get(),this.L,this.B,this.f5(),this.Uf(),n)}; g.h.startRendering=function(l){ET(this.Kf,this.f5(),this.Uf(),g.z(this.Uf().renderingContent,op),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(n,O,L,X,F){return new f$(n,O,L,X,F)},this.S); Tx.prototype.startRendering.call(this,l)}; g.h.YP=function(l,n){this.B===n.layoutId&&(this.L===null?this.L=this.qQ.get().MJ():AV("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.oz=function(){Uu(this.N5(),this);Tx.prototype.oz.call(this)};d69.prototype.build=function(l,n,O,L){if(vZ(L,m6i())||g.z(L.renderingContent,L6)!==void 0)return new nB(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,WOf())||g.z(L.renderingContent,Oc)!==void 0)return new cZ(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,NWa())||g.z(L.renderingContent,gm)!==void 0)return new iN(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,qwv()))return new zx(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,QFi()))return new p$(l,O,L,this.Qu,this.qQ,this.N5, this.ev,this.S);if(vZ(L,TWi())||g.z(L.renderingContent,X6)!==void 0)return new Va(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,ITv())||g.z(L.renderingContent,op)!==void 0)return new Oe(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,Yw7()))return new K$(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);if(vZ(L,u2e())||g.z(L.renderingContent,F6)!==void 0)return new $x(l,O,L,this.Qu,this.qQ,this.N5,this.ev,this.S);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+ FY(L.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};$6a.prototype.build=function(l,n,O,L){if(vZ(L,{Co:["metadata_type_linked_player_bytes_layout_id"],sU:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new R_(l,O,L,this.Qu,this.qQ,this.S);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=Vfg.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(l){l.layoutId!==this.layout.layoutId?this.callback.rB(this.slot,l,new LL("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.YP(this.slot,l),this.Kf.bv("impression"),KX(this.GB,l,"normal"))}; g.h.oI=function(l,n){l.layoutId!==this.layout.layoutId?this.callback.rB(this.slot,l,new LL("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.Hk(this.slot,l,n)};g.h=cj9.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(l){l.layoutId!==this.layout.layoutId?this.callback.rB(this.slot,l,new LL("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.YP(this.slot,l),this.Kf.bv("impression"),KX(this.GB,l,"normal"))}; g.h.oI=function(l,n){l.layoutId!==this.layout.layoutId?this.callback.rB(this.slot,l,new LL("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.Hk(this.slot,l,n)};g0.prototype.build=function(l,n,O,L){if(!this.Rz.get().C.j().J("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(vZ(L,BW5()))return new Vfg(l,O,L,this.qQ,this.GB)}else if(vZ(L,{Co:[],sU:["LAYOUT_TYPE_FORECASTING"]}))return new cj9(l,O,L,this.qQ,this.GB);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(Swa,xR);g.u(LB,Tx);g.h=LB.prototype;g.h.init=function(){Tx.prototype.init.call(this);var l=g.z(this.layout.renderingContent,Z_)||on(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),n={adsClientData:this.layout.yp};this.S.push(new Swa(l,on(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,n))}; g.h.PO=function(){this.L||this.Bm.get().resumeVideo(2)}; g.h.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l);this.B.oL=this}; g.h.oI=function(l,n){Tx.prototype.oI.call(this,l,n);fk(this.B,this)}; g.h.Jh=function(l){if(Md(this.V.get(),this.T))switch(l){case "visit-advertiser-link":Nr(this.qQ.get(),3)}switch(l){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.Bm.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.Bm.get().OS(2))||this.Bm.get().pauseVideo();break;case "visit-advertiser-link":this.Bm.get().pauseVideo();prq(this).wI();break;case "skip-button":if(l=prq(this), this.layout.renderingContent&&!nL(this.layout.clientMetadata,"metadata_type_dai")||!l.H_){var n;(l=(n=on(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&l.ym(this.f5(),this.layout)}else AV("Requesting to skip by LegacyPlayerBytes when components enabled"),l.ib(this.f5(),this.layout)}}; g.h.oz=function(){Tx.prototype.oz.call(this)};g.u(Xr,Tx);g.h=Xr.prototype;g.h.init=function(){Tx.prototype.init.call(this);var l=g.z(this.layout.renderingContent,h6)||on(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),n={adsClientData:this.layout.yp},O;(O=!!this.layout.renderingContent)||(O=!ob(this).H_);this.S.push(new Ni(l,this.layout.layoutId,on(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),n,O))}; g.h.PO=function(){this.L||this.Bm.get().resumeVideo(2)}; g.h.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l);this.B.oL=this}; g.h.oI=function(l,n){Tx.prototype.oI.call(this,l,n);fk(this.B,this)}; g.h.Jh=function(l){if(Md(this.V.get(),this.T))switch(l){case "visit-advertiser":Nr(this.qQ.get(),3)}switch(l){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.Bm.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.Bm.get().OS(2))||this.Bm.get().pauseVideo();break;case "visit-advertiser":this.Bm.get().pauseVideo();ob(this).wI();break;case "skip-button":if(l=ob(this),this.layout.renderingContent&& !nL(this.layout.clientMetadata,"metadata_type_dai")||!l.H_){var n;(l=(n=on(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&l.ym(this.f5(),this.layout)}else AV("Requesting to skip by LegacyPlayerBytes"),l.ib(this.f5(),this.layout)}}; g.h.oz=function(){Tx.prototype.oz.call(this)};g.u(fTv,xR);g.u(Fr,Tx);g.h=Fr.prototype;g.h.startRendering=function(l){var n=this;PZ(this.W,l,function(){n.S.push(new fTv(on(n.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),l.layoutId,l.yp));n.N9();n.callback.YP(n.slot,l);g.K(lF(n.Bm.get(),1),512)&&n.callback.rB(n.f5(),n.Uf(),new LL("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.h.nM=function(){}; g.h.KN=function(l){if(l.state.isError()){var n;this.callback.rB(this.f5(),this.Uf(),new LL("A player error happened during adNotify",{playerErrorCode:(n=l.state.WG)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.h.onFullscreenToggled=function(){}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.R0=function(){}; g.h.onVolumeChange=function(){}; g.h.Gx=function(){}; g.h.ll=function(){}; g.h.Jh=function(){};g.u(aTi,xR);g.u(xB,Tx);xB.prototype.init=function(){Tx.prototype.init.call(this);var l=g.z(this.layout.renderingContent,w0),n=WZ(this.Kf);this.S.push(new aTi(l,n,this.layout.layoutId,{adsClientData:this.layout.yp}))}; xB.prototype.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l)}; xB.prototype.Jh=function(l,n){if(n===this.layout.layoutId)switch(l){case "skip-button":var O;(l=(O=on(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&l.ym(this.f5(),this.layout)}}; xB.prototype.oz=function(){Tx.prototype.oz.call(this)};R3k.prototype.build=function(l,n,O,L){if(l=H7(l,O,L,this.Qu,this.Bm,this.qQ,this.W,this.S,this.Rz))return l;throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=r0.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){this.Bm.get().addListener(this);this.Bm.get().sF.push(this);var l=this.layout.renderingContent?PG(this.tG.get(),1).lN/1E3:on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),n=on(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),O=on(this.layout.clientMetadata,"metadata_type_active_view_identifier");qr(this.layout.vj)&&nk(this.ev.get(),this.layout.layoutId,{d7:n,zq:l,listener:this,v1:O})}; g.h.release=function(){this.Bm.get().removeListener(this);H_q(this.Bm.get(),this);qr(this.layout.vj)&&OR(this.ev.get(),this.layout.layoutId)}; g.h.startRendering=function(l){this.callback.YP(this.slot,l)}; g.h.oI=function(l,n){Ue(this,"abandon");this.callback.Hk(this.slot,l,n)}; g.h.Gx=function(l){switch(l.id){case "part2viewed":this.Kf.bv("start");this.Kf.bv("impression");break;case "videoplaytime25":this.Kf.bv("first_quartile");break;case "videoplaytime50":this.Kf.bv("midpoint");break;case "videoplaytime75":this.Kf.bv("third_quartile");break;case "videoplaytime100":Ue(this,"complete");I_(this.Kf)&&Gx(this.Kf,Infinity,!0);break;case "engagedview":I_(this.Kf)||this.Kf.bv("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:AV("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.R0=function(){}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.onFullscreenToggled=function(){}; g.h.KN=function(l){this.S||(g.U2(l,4)&&!g.U2(l,2)?jv(this.Kf,"pause"):ry(l,4)<0&&!(ry(l,2)<0)&&jv(this.Kf,"resume"))}; g.h.nM=function(){}; g.h.MX=function(l){I_(this.Kf)&&Gx(this.Kf,l*1E3,!1)}; g.h.ll=function(){Ue(this,"swipe")}; g.h.JV=function(){this.Kf.bv("active_view_measurable")}; g.h.zp=function(){this.Kf.bv("active_view_viewable")}; g.h.gN=function(){this.Kf.bv("active_view_fully_viewable_audible_half_duration")}; g.h.HJ=function(){this.Kf.bv("audio_measurable")}; g.h.BJ=function(){this.Kf.bv("audio_audible")};Cm7.prototype.build=function(l,n,O,L){if(O.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.z(L.renderingContent,LF7)!==void 0)return new r0(l,O,L,this.Bm,this.qQ,this.Rz,this.ev,this.tG);n=["metadata_type_ad_placement_config"];for(var X=g.P(Qa()),F=X.next();!F.done;F=X.next())n.push(F.value);if(vZ(L,{Co:n,sU:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return O.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new r0(l,O,L,this.Bm,this.qQ,this.Rz,this.ev,this.tG):new e39(l,O,L,this.Bm,this.qQ, this.E_,this.Rz,this.ev);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var W7={contentCpn:"",m4:new Map};F3k.prototype.Nv=function(l,n){var O={};n=Object.assign({},n,(O.cc=this.Ds.qm(),O));this.Ds.C.Sp(l,n)};var E60,dq; E60={y23:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",SXf:"AUTHENTICATION_MALFORMED",WfJ:"AUTHENTICATION_MISSING",s0q:"BAD_REQUEST",Q0J:"CAST_SESSION_DEVICE_MISMATCHED",rPi:"CAST_SESSION_VIDEO_MISMATCHED",moz:"CAST_TOKEN_EXPIRED",LfF:"CAST_TOKEN_FAILED",Doo:"CAST_TOKEN_MALFORMED",Cl2:"CGI_PARAMS_MALFORMED",VD1:"CGI_PARAMS_MISSING",f$q:"DEVICE_FALLBACK",rZi:"GENERIC_WITH_LINK_AND_CPN",m01:"ERROR_HDCP",LdF:"LICENSE",CVm:"VIDEO_UNAVAILABLE",zDm:"FORMAT_UNAVAILABLE",t5Q:"GEO_FAILURE", bBF:"HTML5_AUDIO_RENDERER_ERROR",lNF:"GENERIC_WITHOUT_LINK",cZJ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",kM1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",OB1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",ZB5:"HTML5_SPS_UMP_STATUS_REJECTED",huf:"INVALID_DRM_MESSAGE",bLJ:"PURCHASE_NOT_FOUND",lz3:"PURCHASE_REFUNDED",u1q:"RENTAL_EXPIRED",oQo:"RETRYABLE_ERROR",Lgf:"SERVER_ERROR",EQ1:"SIGNATURE_EXPIRED",X5i:"STOPPED_BY_ANOTHER_PLAYBACK",yMJ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Fg3:"STREAMING_NOT_ALLOWED", Pi2:"STREAM_LICENSE_NOT_FOUND",G6o:"TOO_MANY_REQUESTS",KgF:"TOO_MANY_REQUESTS_WITH_LINK",MFF:"TOO_MANY_STREAMS_PER_ENTITLEMENT",fJp:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",rLf:"VIDEO_FORBIDDEN",mFq:"VIDEO_NOT_FOUND",do3:"BROWSER_OR_EXTENSION_ERROR"};dq={}; g.KR=(dq.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",dq.DEVICE_FALLBACK="Sorry, this video is not available on this device.",dq.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",dq.LICENSE="Sorry, there was an error licensing this video.",dq.VIDEO_UNAVAILABLE= "Video unavailable",dq.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",dq.GEO_FAILURE="This video isn't available in your country.",dq.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",dq.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",dq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",dq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", dq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",dq.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",dq.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",dq.PURCHASE_NOT_FOUND="This video requires payment.",dq.PURCHASE_REFUNDED="This video's purchase has been refunded.",dq.RENTAL_EXPIRED="This video's rental has expired.",dq.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",dq.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",dq.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",dq.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",dq.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",dq.SERVER_ERROR="There was an internal server error. Please try again later.",dq.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",dq.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",dq.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",dq.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",dq.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",dq.TOO_MANY_REQUESTS="Please log in to watch this video.", dq.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",dq.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",dq.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",dq.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",dq.VIDEO_FORBIDDEN="Access to this video is forbidden.",dq.VIDEO_NOT_FOUND="This video can not be found.",dq.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",dq);var N8R;var D1O=g.e6(),qpk=D1O.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!qpk||qpk.length<2)N8R=void 0;else{var k3D=D1O.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);N8R=k3D&&k3D.length===6?Number(k3D[5].replace("_",".")):0}var v8=N8R,z4=v8>=0;g.u(g.$B,MV);g.$B.prototype.U=function(l,n,O,L,X){return MV.prototype.U.call(this,l,n,O,L,X)};var $l={},Aa=($l.FAIRPLAY="fairplay",$l.PLAYREADY="playready",$l.WIDEVINE="widevine",$l.CLEARKEY=null,$l.FLASHACCESS=null,$l.UNKNOWN=null,$l.WIDEVINE_CLASSIC=null,$l);VC.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Vg={},TP=(Vg.WIDTH={name:"width",video:!0,valid:640,KT:99999},Vg.HEIGHT={name:"height",video:!0,valid:360,KT:99999},Vg.FRAMERATE={name:"framerate",video:!0,valid:30,KT:9999},Vg.BITRATE={name:"bitrate",video:!0,valid:3E5,KT:2E9},Vg.EOTF={name:"eotf",video:!0,valid:"bt709",KT:"catavision"},Vg.CHANNELS={name:"channels",video:!1,valid:2,KT:99},Vg.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",KT:"invalidformat"},Vg.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", KT:"nope"},Vg.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",KT:"av99.0.05M.08"},Vg.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",KT:"invalid"},Vg);var yh0=["h","H"],Moi=["9","("],Qa1=["9h","(h"],eQs=["8","*"],YpF=["a","A"],jaL=["o","O"],G3k=["m","M"],m16=["mac3","MAC3"],IZc=["meac3","MEAC3"],B9={},XGq=(B9.h=yh0,B9.H=yh0,B9["9"]=Moi,B9["("]=Moi,B9["9h"]=Qa1,B9["(h"]=Qa1,B9["8"]=eQs,B9["*"]=eQs,B9.a=YpF,B9.A=YpF,B9.o=jaL,B9.O=jaL,B9.m=G3k,B9.M=G3k,B9.mac3=m16,B9.MAC3=m16,B9.meac3=IZc,B9.MEAC3=IZc,B9),d1q=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),CN9=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var t={},pB=(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"]="ah",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["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["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["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["885"]="(",t["886"]="(",t["887"]="(",t["888"]="(",t);var c9={},Bvv=(c9.STEREO_LAYOUT_UNKNOWN=0,c9.STEREO_LAYOUT_LEFT_RIGHT=1,c9.STEREO_LAYOUT_TOP_BOTTOM=2,c9);var iR,oe;iR={};g.c7=(iR.auto=0,iR.tiny=144,iR.light=144,iR.small=240,iR.medium=360,iR.large=480,iR.hd720=720,iR.hd1080=1080,iR.hd1440=1440,iR.hd2160=2160,iR.hd2880=2880,iR.highres=4320,iR);oe={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var z2="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ij.prototype.isHdr=function(){return this.W==="smpte2084"||this.W==="arib-std-b67"};se.prototype.QE=function(){return this.containerType===2}; se.prototype.isEncrypted=function(){return!!this.UK}; se.prototype.vM=function(){return!!this.audio}; se.prototype.RR=function(){return!!this.video}; var ab=!1;g.u(bt,g.hj);g.h=bt.prototype;g.h.appendBuffer=function(l,n,O){if(this.vS.jP()!==this.appendWindowStart+this.start||this.vS.Dc()!==this.appendWindowEnd+this.start||this.vS.ez()!==this.timestampOffset+this.start)this.vS.supports(1),this.vS.fl(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.vS.W5(this.timestampOffset+this.start);this.vS.appendBuffer(l,n,O)}; g.h.abort=function(){this.vS.abort()}; g.h.remove=function(l,n){this.vS.remove(l+this.start,n+this.start)}; g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.h.clear=function(){this.vS.clear()}; g.h.fl=function(l,n){this.appendWindowStart=l;this.appendWindowEnd=n}; g.h.x9=function(){return this.timestampOffset+this.start}; g.h.jP=function(){return this.appendWindowStart}; g.h.Dc=function(){return this.appendWindowEnd}; g.h.W5=function(l){this.timestampOffset=l}; g.h.ez=function(){return this.timestampOffset}; g.h.G$=function(l){l=this.vS.G$(l===void 0?!1:l);return AY(l,this.start,this.end)}; g.h.y9=function(){return this.vS.y9()}; g.h.kA=function(){return this.vS.kA()}; g.h.pL=function(){return this.vS.pL()}; g.h.A8=function(){return this.vS.A8()}; g.h.oE=function(){this.vS.oE()}; g.h.ke=function(l){return this.vS.ke(l)}; g.h.VR=function(){return this.vS.VR()}; g.h.wz=function(){return this.vS.wz()}; g.h.wm=function(){return this.vS.wm()}; g.h.OT=function(l,n,O){this.vS.OT(l,n,O)}; g.h.Zu=function(l,n,O){this.vS.Zu(l,n,O)}; g.h.CY=function(l,n){return this.vS.CY(l,n)}; g.h.supports=function(l){return this.vS.supports(l)}; g.h.OF=function(){return this.vS.OF()}; g.h.isView=function(){return!0}; g.h.ir=function(){return this.vS.ir()?this.isActive:!1}; g.h.isLocked=function(){return this.w5&&!this.isActive}; g.h.sC=function(l){l=this.vS.sC(l);l.vw=this.start+"-"+this.end;return l}; g.h.TT=function(){return this.vS.TT()}; g.h.yH=function(){return this.vS.yH()}; g.h.bM=function(){return this.vS.bM()}; g.h.oz=function(){this.vS.zW(this.ZG);g.hj.prototype.oz.call(this)};var Uj=!1;g.u(Uv,g.hj);g.h=Uv.prototype;g.h.appendBuffer=function(l,n,O){this.Z5=!1;O&&(this.pj=O);if(l.length){var L;((L=this.Xp)==null?0:L.appendBuffer)?this.Xp.appendBuffer(l):this.Xp?this.Xp.append(l):this.F7&&this.F7.webkitSourceAppend(this.id,l)}n&&(n.isEncrypted()&&(this.Sq=this.pj),n.type===3&&(this.e1=n),this.AJ.push(n.rK()),this.AJ.length>4&&this.AJ.shift());this.yU&&(this.yU.length>=2||l.length>1048576?delete this.yU:this.yU.push(l))}; g.h.abort=function(){try{this.Xp?this.Xp.abort():this.F7&&this.F7.webkitSourceAbort(this.id)}catch(l){jlv&&g.Ir(new g.at("Error while abort the source buffer: "+l.name+", "+l.message))}this.pj=this.e1=null}; g.h.remove=function(l,n,O){this.Z5=!1;var L;if((L=this.Xp)==null?0:L.remove)O&&O({b:xG(this.G$()),s:l,e:n}),this.Xp.remove(l,n)}; g.h.removeAll=function(){this.remove(this.jP(),this.Dc())}; g.h.clear=function(){this.pL()||(this.abort(),this.removeAll(),this.Sq=this.pj=this.e1=null,this.appendWindowStart=this.timestampOffset=0,this.Sf=FO([],[]),this.Z5=!1,this.yU=rv?[]:void 0,this.FQ=!0)}; g.h.jP=function(){if(Uj&&this.RR)return this.appendWindowStart;var l;return((l=this.Xp)==null?void 0:l.appendWindowStart)||0}; g.h.Dc=function(){var l;return((l=this.Xp)==null?void 0:l.appendWindowEnd)||0}; g.h.fl=function(l,n){this.Xp&&(Uj&&this.RR?(this.appendWindowStart=l,this.Xp.appendWindowEnd=n):l>this.jP()?(this.Xp.appendWindowEnd=n,this.Xp.appendWindowStart=l):(this.Xp.appendWindowStart=l,this.Xp.appendWindowEnd=n))}; g.h.x9=function(){return this.timestampOffset}; g.h.W5=function(l){Uj?this.timestampOffset=l:this.supports(1)&&(this.Xp.timestampOffset=l)}; g.h.ez=function(){return Uj?this.timestampOffset:this.supports(1)?this.Xp.timestampOffset:0}; g.h.G$=function(l){if(l===void 0?0:l)return this.Z5||this.y9()||(this.Sf=this.G$(!1),this.Z5=!0),this.Sf;try{return this.Xp?this.Xp.buffered:this.F7?this.F7.webkitSourceBuffered(this.id):FO([0],[Infinity])}catch(n){return FO([],[])}}; g.h.y9=function(){var l;return((l=this.Xp)==null?void 0:l.updating)||!1}; g.h.pL=function(){return this.FQ}; g.h.A8=function(){return!this.FQ&&this.y9()}; g.h.oE=function(){this.FQ=!1}; g.h.ke=function(l){var n=l==null?void 0:l.bF;l=l==null?void 0:l.containerType;return!n&&!l||n===this.bF&&l===this.containerType}; g.h.VR=function(){return this.pj}; g.h.wz=function(){return this.Sq}; g.h.CY=function(l,n){return this.containerType!==l||this.bF!==n}; g.h.OT=function(l,n,O){if(this.containerType!==l||O&&this.CY(l,O))this.supports(4),ut()&&this.Xp.changeType(n),O&&(this.bF=O);this.containerType=l}; g.h.Zu=function(l,n,O){this.containerType&&this.CY(l,n)&&ut()&&this.Xp.changeType(O);this.containerType=l;this.bF=n}; g.h.OF=function(){return this.e1}; g.h.isView=function(){return!1}; g.h.supports=function(l){switch(l){case 1:var n;return((n=this.Xp)==null?void 0:n.timestampOffset)!==void 0;case 0:var O;return!((O=this.Xp)==null||!O.appendBuffer);case 2:var L;return!((L=this.Xp)==null||!L.remove);case 3:var X,F;return!!(((X=this.Xp)==null?0:X.addEventListener)&&((F=this.Xp)==null?0:F.removeEventListener));case 4:return!(!this.Xp||!this.Xp.changeType);default:return!1}}; g.h.ir=function(){return!this.y9()}; g.h.isLocked=function(){return!1}; g.h.sC=function(l){l.to=this.ez();l.up=this.y9();var n,O=((n=this.Xp)==null?void 0:n.appendWindowStart)||0,L;n=((L=this.Xp)==null?void 0:L.appendWindowEnd)||Infinity;l.aw=O.toFixed(3)+"-"+n.toFixed(3);return l}; g.h.kA=function(){var l;return((l=this.Xp)==null?void 0:l.writeHead)||0}; g.h.TT=function(){for(var l={},n=0;n<this.AJ.length;n++)l["s"+n]=this.AJ[n];return l}; g.h.oz=function(){this.supports(3)&&(this.Xp.removeEventListener("updateend",this.RI),this.Xp.removeEventListener("error",this.RI));g.hj.prototype.oz.call(this)}; g.h.yH=function(){return this.containerType}; g.h.wm=function(){return this.bF}; g.h.bM=function(){return this.yU}; var rv=!1,jlv=!1;P6.prototype.dispose=function(){if(!this.JG()){if(this.S)try{URL.revokeObjectURL(this.Vp)}catch(l){}this.W=!0}}; P6.prototype.JG=function(){return this.W}; P6.prototype.XT=function(l){return l!==null&&l.Vp===this.Vp}; P6.prototype.toString=function(){return"MediaResource {"+this.Vp+"}"};g.u(p5,g.V);g.h=p5.prototype;g.h.getDuration=function(){var l;return((l=this.Xi)==null?void 0:l.duration)||this.Y}; g.h.O7=function(l){try{this.Xi?this.Xi.duration=l:(this.Y=l,this.F7.webkitSourceSetDuration(l))}catch(n){}}; g.h.h7=function(){try{return C5(this)==="closed"}catch(l){return!0}}; g.h.y9=function(){return!!(this.S&&this.S.y9()||this.W&&this.W.y9())}; g.h.isAsync=function(){return this.S?!!this.S.supports(0):tY()}; g.h.lZG=function(){!this.JG()&&f5(this)&&this.callback&&(this.callback(this),this.callback=null)}; g.h.boi=function(){this.dispose()}; g.h.j9=function(l){if(K5&&!this.L&&l.pL()&&l.G$().length===0){var n;a1(this.mediaElement,{l:"mswoue",sr:(n=this.mediaElement.uF)==null?void 0:n.xW()},!1);l.oE();this.pL()||(this.mediaElement.e8=!0,this.mediaElement.setCurrentTime(0))}}; g.h.Yg=function(){return!!this.S.supports(2)}; g.h.clear=function(){u8k(this,function(){}); var l;(l=this.S)==null||l.clear();var n;(n=this.W)==null||n.clear()}; g.h.pL=function(){var l,n;return((l=this.W)==null?void 0:l.pL())||((n=this.S)==null?void 0:n.pL())}; g.h.ke=function(l,n){return!!this.S&&!!this.W&&this.S.ke(n)&&this.W.ke(l)}; var K5=!1;v6.prototype.then=function(l,n){return this.promise.then(l,n)}; v6.prototype.resolve=function(l){this.uO(l)}; v6.prototype.reject=function(l){this.Cl(l)};g.u(lL,g.V);g.h=lL.prototype;g.h.xr=function(){return this.Vp}; g.h.activate=function(l){var n="";l&&(yVv(this,l),n=l.Vp);if(!this.m5()||n)n&&this.m5()!==n&&(this.l9(n),delete this.W,this.N&&(this.N.reject(),delete this.N),!window.MediaSource&&window.ManagedMediaSource&&this.l7(!(l==null||!l.S))),l&&l.S||this.load(),this.T||(this.addEventListener("volumechange",this.dj),this.T=!0)}; g.h.wJ=function(l,n){if(this.W)if(YCi&&R1(this.W)&&!this.W.ke(l,n)){var O;a1(this,{l:"megms",sr:(O=this.uF)==null?void 0:O.xW()});q28(this);this.stopVideo()}else return this.Xi=this.W,this.W=void 0,this.Xi;l=window.MediaSource?new p5(this,new window.MediaSource,!1):window.ManagedMediaSource?new p5(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new p5(this,new window.WebKitMediaSource,!1):new p5(this,void 0,!1);this.activate(l.N);this.Xi=l;this.e8=!1;return l}; g.h.playVideo=function(){var l=this;this.isEnded()&&this.seekTo(0);!this.m5()&&this.Vp&&(g.Ir(Error("playVideo without src")),this.l9(this.Vp.Vp),this.Vp.S||this.load());var n=this.play(),O;((O=this.uF)==null?0:O.J("html5_remove_ios_7_hack_force_play"))||!n&&z4&&(v8||0)>=7&&xif(this,function(){g.U0(function(){k79(l,l.getCurrentTime(),0)},500)}); return n}; g.h.seekTo=function(l){this.R_()>0&&(z4&&v8<4&&(l=Math.max(.1,l)),this.setCurrentTime(l))}; g.h.Ya=function(){if(!this.W&&this.Xi)if(this.Xi.B)try{var l;a1(this,{l:"mer",sr:(l=this.uF)==null?void 0:l.xW(),rs:C5(this.Xi)});this.Xi.clear();this.W=this.Xi;this.Xi=void 0}catch(n){l=new g.at("Error while clearing Media Source in MediaElement: "+n.name+", "+n.message),g.Ir(l),this.stopVideo()}else this.stopVideo()}; g.h.stopVideo=function(){var l=this;if(!this.W){var n;(n=this.Xi)==null||Ny5(n);if(Qli){if(!this.N){var O=new v6;O.then(void 0,function(){}); this.N=O;eVq&&this.pause();g.U0(function(){l.N===O&&(gX(l),O.resolve())},200)}}else gX(this)}}; g.h.oU=function(){var l=this.NJ();return wv(l)>0&&this.getDuration()?JY(l,this.getCurrentTime()):0}; g.h.gF=function(){var l=this.getDuration();return l===Infinity?1:l?this.oU()/l:0}; g.h.sC=function(){try{var l=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:xG(this.Ew(),",",3),vbu:xG(this.NJ()),vbs:xG(this.pO()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.R_(),vns:""+this.Pc(),vec:""+this.K2(),vemsg:this.gB(),vvol:""+this.getVolume(),vdom:""+ +this.jM(),vsrc:""+ +!!this.m5(),vw:""+l.width,vh:""+l.height}}catch(n){return{}}}; g.h.hasError=function(){return this.K2()>0}; g.h.addEventListener=function(l,n){this.L.listen(l,n,!1,this);this.WF(l)}; g.h.removeEventListener=function(l,n){this.L.EC(l,n,!1,this)}; g.h.dispatchEvent=function(l){if(this.N&&l.type==="pause")return!1;if(YCi){var n,O=((n=l.S)==null?void 0:n.timeStamp)||Infinity;n=O>performance.now()?O-Date.now()+performance.now():O;O=this.W||this.Xi;if((O==null?0:O.pL())||n<=((O==null?void 0:O.V)||0)){var L;a1(this,{l:"mede",sr:(L=this.uF)==null?void 0:L.xW(),et:l.type});return!1}if(this.e8)return a1(this,{l:"medes",et:l.type}),O&&l.type==="seeking"&&(O.V=performance.now(),this.e8=!1),!1}return this.L.dispatchEvent(l)}; g.h.xN=function(){this.V=!1}; g.h.cn=function(){this.V=!0;this.pc(!0)}; g.h.dj=function(){this.V&&!this.F5()&&this.pc(!0)}; g.h.XT=function(l){return!!l&&l.De()===this.De()}; g.h.oz=function(){this.T&&this.removeEventListener("volumechange",this.dj);Qli&&gX(this);g.V.prototype.oz.call(this)}; var Qli=!1,eVq=!1,YCi=!1,QN8=!1;g.h=g.XI.prototype;g.h.isPaused=function(){return g.K(this,4)}; g.h.isPlaying=function(){return g.K(this,8)&&!g.K(this,512)&&!g.K(this,64)&&!g.K(this,2)}; g.h.isOrWillBePlaying=function(){return g.K(this,8)&&!g.K(this,2)&&!g.K(this,1024)}; g.h.isCued=function(){return g.K(this,64)&&!g.K(this,8)&&!g.K(this,4)}; g.h.isBuffering=function(){return g.K(this,1)&&!g.K(this,2)}; g.h.isError=function(){return g.K(this,128)}; g.h.isSuspended=function(){return g.K(this,512)}; g.h.bT=function(){return g.K(this,64)&&g.K(this,4)}; g.h.toString=function(){return"PSt."+this.state.toString(16)}; var z9={},S0=(z9.BUFFERING="buffering-mode",z9.CUED="cued-mode",z9.ENDED="ended-mode",z9.PAUSED="paused-mode",z9.PLAYING="playing-mode",z9.SEEKING="seeking-mode",z9.UNSTARTED="unstarted-mode",z9);g.u(bL,g.V);g.h=bL.prototype;g.h.AM=function(){return this.N}; g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){var l=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),n=on(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qr(this.layout.vj)&&nk(this.ev.get(),this.layout.layoutId,{d7:n,zq:l,listener:this,kQ:this.EU()});Xba(this.qQ.get(),this);l=this.cG;n=this.layout.layoutId;var O={kQ:this.EU()};l.S.set(n,O);this.rL()}; g.h.Wi=function(){}; g.h.release=function(){qr(this.layout.vj)&&OR(this.ev.get(),this.layout.layoutId);o95(this.qQ.get(),this);this.cG.S.delete(this.layout.layoutId);this.cJ()}; g.h.J5=function(){}; g.h.yg=function(){}; g.h.startRendering=function(l){D_(rX(this));if(Uz(this,l)){var n=this.S;ql(n.params.WQ.Rz.get(),!0)&&o7a(n,"p_sr",{});uL(this);this.Lm(l);this.EU()||this.Br(!1)}}; g.h.YP=function(l,n){if(n.layoutId===this.layout.layoutId){this.u5="rendering";this.W=this.Bm.get().isMuted()||this.Bm.get().getVolume()===0;this.bv("impression");this.bv("start");if(this.Bm.get().isMuted()){Dh(this,"mute");var O;l=((O=A1(this))==null?void 0:O.muteCommands)||[];pL(this.E_.get(),l,this.layout.layoutId)}if(this.Bm.get().isFullscreen()){this.xt("fullscreen");var L;O=((L=A1(this))==null?void 0:L.fullscreenCommands)||[];pL(this.E_.get(),O,this.layout.layoutId)}this.EU()||(L=this.JC.get(), L.N&&!L.W&&(L.B=!1,L.W=!0,L.actionType!=="ad_to_video"&&(fp("pbs",void 0,L.actionType),g.E0("finalize_all_timelines")&&agi(L.actionType))));this.Zz(1);this.mz(n);var X;n=((X=A1(this))==null?void 0:X.impressionCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.mP=function(l,n,O){this.T={Ie:3,g5:l==="load_timeout"?402:400,errorMessage:n.message};this.bv("error");var L;l=((L=A1(this))==null?void 0:L.errorCommands)||[];pL(this.E_.get(),l,this.layout.layoutId);this.EU()||this.VS.rB(this.slot,this.layout,n,O)}; g.h.cC=function(){if(this.u5==="rendering"){Dh(this,"pause");var l,n=((l=A1(this))==null?void 0:l.pauseCommands)||[];pL(this.E_.get(),n,this.layout.layoutId);this.Zz(2)}}; g.h.Ob=function(){if(this.u5==="rendering"){Dh(this,"resume");var l,n=((l=A1(this))==null?void 0:l.resumeCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.g9=function(l,n){n=n===void 0?!1:n;if(this.u5==="rendering"){var O={currentTimeSec:l,flush:n};kB(this.S,"p_ip",O);Gx(this.Kf,l*1E3,n);this.W||Gx(this.Kf,l*1E3,n===void 0?!1:n);var L=this.Fc();if(L){L/=1E3;if(l>=L*.25||n)this.bv("first_quartile"),kB(this.S,"p_fq",O);if(l>=L*.5||n)this.bv("midpoint"),kB(this.S,"p_sq",O);if(l>=L*.75||n)this.bv("third_quartile"),kB(this.S,"p_tq",O);this.Rz.get().C.j().experiments.MQ("enable_progress_command_flush_on_kabuki")?Sv(this.L,l*1E3,n):Sv(this.L,l*1E3,IDa(this)? n:!1)}}}; g.h.qm=function(){var l;return((l=PG(this.tG.get(),1))==null?void 0:l.clientPlaybackNonce)||""}; g.h.En=function(l,n){l.layoutId!==this.layout.layoutId?this.VS.rB(this.slot,l,new LL("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"):n()}; g.h.Hk=function(l,n,O){if(n.layoutId===this.layout.layoutId)switch(this.u5="not_rendering",this.layoutExitReason=void 0,this.EU()||(l=O!=="normal"||this.position+1===this.V)&&this.Br(l),this.lD(O),this.Zz(0),O){case "abandoned":if(mE(this.Kf,"impression")){var L,X=((L=A1(this))==null?void 0:L.abandonCommands)||[];pL(this.E_.get(),X,this.layout.layoutId)}break;case "normal":L=((X=A1(this))==null?void 0:X.completeCommands)||[];pL(this.E_.get(),L,this.layout.layoutId);break;case "skipped":var F;L=((F= A1(this))==null?void 0:F.skipCommands)||[];pL(this.E_.get(),L,this.layout.layoutId)}}; g.h.PK=function(){return this.layout.layoutId}; g.h.BF=function(){return this.T}; g.h.JV=function(){if(this.u5==="rendering"){this.Kf.bv("active_view_measurable");var l,n=((l=A1(this))==null?void 0:l.activeViewMeasurableCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.gN=function(){if(this.u5==="rendering"){this.Kf.bv("active_view_fully_viewable_audible_half_duration");var l,n=((l=A1(this))==null?void 0:l.activeViewFullyViewableAudibleHalfDurationCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.zp=function(){if(this.u5==="rendering"){this.Kf.bv("active_view_viewable");var l,n=((l=A1(this))==null?void 0:l.activeViewViewableCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.BJ=function(){if(this.u5==="rendering"){this.Kf.bv("audio_audible");var l,n=((l=A1(this))==null?void 0:l.activeViewAudioAudibleCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.HJ=function(){if(this.u5==="rendering"){this.Kf.bv("audio_measurable");var l,n=((l=A1(this))==null?void 0:l.activeViewAudioMeasurableCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}}; g.h.Br=function(l){this.JC.get().Br(on(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,l,this.position,this.V,!1)}; g.h.onFullscreenToggled=function(l){if(this.u5==="rendering")if(l){this.xt("fullscreen");var n,O=((n=A1(this))==null?void 0:n.fullscreenCommands)||[];pL(this.E_.get(),O,this.layout.layoutId)}else this.xt("end_fullscreen"),n=((O=A1(this))==null?void 0:O.endFullscreenCommands)||[],pL(this.E_.get(),n,this.layout.layoutId)}; g.h.onVolumeChange=function(){if(this.u5==="rendering")if(this.Bm.get().isMuted()){Dh(this,"mute");var l,n=((l=A1(this))==null?void 0:l.muteCommands)||[];pL(this.E_.get(),n,this.layout.layoutId)}else Dh(this,"unmute"),l=((n=A1(this))==null?void 0:n.unmuteCommands)||[],pL(this.E_.get(),l,this.layout.layoutId)}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.R0=function(){}; g.h.Gx=function(){}; g.h.ll=function(){}; g.h.xt=function(l){this.Kf.xt(l,!this.W)}; g.h.bv=function(l){this.Kf.bv(l,!this.W)}; g.h.EU=function(){var l=on(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return l===void 0?(AV("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Rz.get().EU(l)};g.u(Qb,bL);g.h=Qb.prototype;g.h.rL=function(){}; g.h.cJ=function(){var l=this.qQ.get();l.oY===this&&(l.oY=null);this.Yh.stop()}; g.h.J5=function(){this.Yh.stop();bL.prototype.cC.call(this)}; g.h.yg=function(){YX(this);bL.prototype.Ob.call(this)}; g.h.Fc=function(){return on(this.Uf().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.oI=function(l,n){var O=this;this.En(l,function(){O.u5!=="rendering_stop_requested"&&(O.u5="rendering_stop_requested",O.layoutExitReason=n,TO(O,n),O.Yh.stop())})}; g.h.tC=function(){var l=Date.now(),n=l-this.dX;this.dX=l;this.Le+=n;this.Le>=this.Fc()?this.Kq():(this.g9(this.Le/1E3),ec(this,this.Le))}; g.h.lD=function(){}; g.h.nM=function(){}; g.u(jc,Qb);g.h=jc.prototype;g.h.KN=function(l){if(this.u5!=="not_rendering"){l=WG(this,l);var n=this.Bm.get().getPresentingPlayerType()===2;this.u5==="rendering_start_requested"?n&&A6(l)&&this.A$():n?g.U2(l,2)?AV("Receive player ended event during MediaBreak",this.f5(),this.Uf()):Ez(this,l):this.nO()}}; g.h.Lm=function(){G7q(this);ru7(this.Bm.get());this.qQ.get().oY=this;pp("pbp")||pp("pbs")||fp("pbp");pp("pbp","watch")||pp("pbs","watch")||fp("pbp",void 0,"watch");this.A$()}; g.h.mz=function(l){this.JC.get();var n=on(l.clientMetadata,"metadata_type_ad_placement_config").kind,O=this.position===0;l=on(l.clientMetadata,"metadata_type_linked_in_player_layout_type");l={adBreakType:NI(n),adType:fDi(l)};var L=void 0;O?n!=="AD_PLACEMENT_KIND_START"&&(L="video_to_ad"):L="ad_to_ad";iD("ad_mbs",void 0,L);g.zp(l,L);YX(this)}; g.h.nO=function(){this.Wa()}; g.h.Kq=function(){$i9(this);this.Wa()}; g.u(GO,Qb);g.h=GO.prototype;g.h.KN=function(l){this.u5!=="not_rendering"&&(l=WG(this,l),Ez(this,l))}; g.h.Lm=function(){AV("Not used in SSAP")}; g.h.mz=function(){YX(this)}; g.h.nO=function(){AV("Not used in SSAP")}; g.h.Kq=function(){$i9(this);this.VS.TJ(this.f5(),this.Uf(),"normal")}; g.u(m6,GO);m6.prototype.oI=function(l,n){var O=this;this.En(l,function(){P7(O.N,n)&&(O.u5="rendering_stop_requested",O.layoutExitReason=n,TO(O,n),O.Yh.stop())})}; m6.prototype.startRendering=function(l){D_(rX(this));Uz(this,l)&&(uL(this),this.qQ.get().oY=this)};g.u($X,bL);g.h=$X.prototype;g.h.nO=function(){this.Wa()}; g.h.KN=function(l){if(this.u5!=="not_rendering"){l=WG(this,l);var n=this.Bm.get().getPresentingPlayerType()===2;this.u5==="rendering_start_requested"?n&&A6(l)&&this.A$():!n||g.U2(l,2)?this.Wa():Ez(this,l)}}; g.h.rL=function(){on(this.Uf().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=on(this.Uf().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.h.cJ=function(){on(this.Uf().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.a6){var l=this.context.WQ,n=this.a6,O=this.Uf().layoutId;if(ql(l.Rz.get(),!0)){var L={};l.Nv("mccru",(L.cid=n,L.p_ac=O,L))}this.Fg.get().removeCueRange(this.a6)}this.a6=void 0;var X;(X=this.c_)==null||X.dispose();this.Ib&&this.Ib.dispose()}; g.h.Lm=function(l){var n=Iv(this.Rz.get()),O=dX(this.Rz.get());if(n&&O&&!this.EU()){O=on(l.clientMetadata,"metadata_type_preload_player_vars");var L=g.HQ(this.Rz.get().C.j().experiments,"html5_preload_wait_time_secs");O&&this.Ib&&this.Ib.start(L*1E3)}cV9(this,l);G7q(this);n?(O=this.uK.get(),l=on(l.clientMetadata,"metadata_type_player_vars"),O.C.loadVideoByPlayerVars(l,!1,2)):qBg(this.uK.get(),on(l.clientMetadata,"metadata_type_player_vars"));var X;(X=this.c_)==null||X.start();n||this.uK.get().C.playVideo(2)}; g.h.mz=function(){var l;(l=this.c_)==null||l.stop();this.a6="adcompletioncuerange:"+this.Uf().layoutId;this.Fg.get().addCueRange(this.a6,0x7ffffffffffff,0x8000000000000,!1,this,2,2);l=this.context.WQ;var n=this.a6,O=this.Uf().layoutId;if(ql(l.Rz.get(),!0)){var L={};l.Nv("mccr",(L.cid=n,L.p_ac=O,L))}(this.adCpn=jN5(this))||AV("Media layout confirmed started, but ad CPN not set.");this.fp.get().qs("onAdStart",this.adCpn);this.t9=Date.now()}; g.h.Fc=function(){var l;return(l=PG(this.tG.get(),2))==null?void 0:l.lN}; g.h.wI=function(){this.Kf.xt("clickthrough")}; g.h.oI=function(l,n){var O=this;this.En(l,function(){if(O.u5!=="rendering_stop_requested"){O.u5="rendering_stop_requested";O.layoutExitReason=n;TO(O,n);var L;(L=O.c_)==null||L.stop();O.Ib&&O.Ib.stop();iHg(O)}})}; g.h.onCueRangeEnter=function(l){if(l!==this.a6)AV("Received CueRangeEnter signal for unknown layout.",this.f5(),this.Uf(),{cueRangeId:l});else{var n=this.context.WQ,O=this.Uf().layoutId;if(ql(n.Rz.get(),!0)){var L={};n.Nv("mccre",(L.cid=l,L.p_ac=O,L))}this.Fg.get().removeCueRange(this.a6);this.a6=void 0;Rn(this.context.Rz.get(),"html5_ssap_flush_at_stop_rendering")&&this.EU()||(l=on(this.Uf().clientMetadata,"metadata_type_video_length_seconds"),this.g9(l,!0),this.bv("complete"))}}; g.h.lD=function(l){l!=="abandoned"&&this.fp.get().qs("onAdComplete");this.fp.get().qs("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.nM=function(l){this.u5==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&l>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Bm.get().ZE(!0),this.g9(l))}; g.h.g9=function(l,n){bL.prototype.g9.call(this,l,n===void 0?!1:n);n=Date.now()-this.t9;var O=l*1E3,L={contentCpn:this.qm(),adCpn:jN5(this)};if(l>=5&&!this.Sm){var X=n<1E3?0:1;JV(X,"i.k_",{metadata:L,wO:n,Tu:Math.floor(O/1E3)});a3("IKDSTAT",X);X===0&&zhg(this)&&this.fp.get().qs("onAbnormalityDetected");this.Sm=!0}l-this.k0>=5&&(X=n<O*.4?0:1,JV(X,"n.k_",{metadata:L,wO:n,Tu:Math.floor(O/1E3)}),a3("NKDSTAT",X),X===0&&zhg(this)&&this.fp.get().qs("onAbnormalityDetected"),this.k0=l)};g.u(Vb,$X);Vb.prototype.KN=function(l){this.u5!=="not_rendering"&&(l=WG(this,l),Ez(this,l))}; Vb.prototype.Lm=function(){AV("Not used in SSAP")}; g.u(BG,Vb);BG.prototype.oI=function(l,n){var O=this;this.En(l,function(){if(P7(O.N,n)){O.u5="rendering_stop_requested";O.layoutExitReason=n;TO(O,n);if(Rn(O.context.Rz.get(),"html5_ssap_flush_at_stop_rendering")&&n==="normal"){var L=on(O.Uf().clientMetadata,"metadata_type_video_length_seconds");O.g9(L,!0)}iHg(O)}})}; BG.prototype.startRendering=function(l){D_(rX(this));Uz(this,l)&&(uL(this),cV9(this,l))};g.u(iL,g.V);g.h=iL.prototype;g.h.init=function(){var l=on(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");l&&(l.current=this);this.tG.get().addListener(this);this.ZQ.init();tf7([this.layout],this.tG.get());this.nx()}; g.h.nx=function(){var l=on(this.ZQ.Uf().clientMetadata,"metadata_type_player_vars");l?this.uK.get().addPlayerResponseForAssociation({playerVars:l}):(l=K3q(this.ZQ.Uf()),this.uK.get().addPlayerResponseForAssociation({nw:l}))}; g.h.yF=function(){}; g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.J5=function(){this.ZQ.J5()}; g.h.yg=function(){this.ZQ.yg()}; g.h.ib=function(){AV("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.h.YP=function(l,n){this.ZQ.YP(l,n)}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.nM=function(l){this.ZQ.nM(l)}; g.h.onFullscreenToggled=function(l){this.ZQ.onFullscreenToggled(l)}; g.h.TE=function(l){this.ZQ.TE(l)}; g.h.R0=function(l){this.ZQ.R0(l)}; g.h.onVolumeChange=function(){this.ZQ.onVolumeChange()}; g.h.Gx=function(){}; g.h.ll=function(){}; g.h.Mo=function(){}; g.h.C7=function(){return this.Bm.get().getPresentingPlayerType()===2}; g.h.Ci=function(l){g79({cpn:l,Ds:this.tG.get(),uy:!0});this.layout.layoutId===l&&(c80(this.PS,this.slot.slotId),this.f8.YP(this.slot,this.layout))}; g.h.startRendering=function(l){if(l.layoutId!==this.layout.layoutId)return void AV("wrong layout");this.Bm.get().addListener(this);rg(this.N5(),this);this.ZQ.startRendering(this.layout)}; g.h.KN=function(l){this.ZQ.KN(l)}; g.h.Hk=function(l,n,O){this.ZQ.Hk(l,n,O)}; g.h.release=function(){this.tG.get().removeListener(this);this.ZQ.release();vRi();Uu(this.N5(),this)}; g.h.UR=function(){return Rn(this.params.context.Rz.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.oI=function(l,n){l.layoutId!==this.layout.layoutId?AV("wrong layout"):this.UR()&&this.ZQ.AM().currentState>=2||(this.ZQ.oI(this.layout,n),l=Rn(this.params.context.Rz.get(),"html5_ssap_pass_transition_reason")&&n==="abandoned",this.C7()&&!l&&(Rn(this.params.context.Rz.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(n)||AV("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:n})),this.Cp.get().finishSegmentByCpn(this.layout.layoutId, PG(this.tG.get(),1).clientPlaybackNonce,kX(n,this.params.context.Rz))),this.Bm.get().removeListener(this),this.UR()&&T2(this.ZQ.AM())&&this.f8.Hk(this.slot,this.layout,this.ZQ.AM().S))}; g.h.Vm=function(l,n,O){L39({cpn:l,Ds:this.tG.get(),uy:!0});this.Uf().layoutId!==l||Rn(this.params.context.Rz.get(),"html5_ssap_pass_transition_reason")&&O===5||(this.ZQ.AM().currentState<2&&(l=yb(O,this.params.context.Rz),l==="error"?this.f8.rB(this.slot,this.layout,new LL("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:O},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):KX(this.z7, this.layout,l)),Rn(this.params.context.Rz.get(),"html5_ssap_exit_without_waiting_for_transition")||this.f8.Hk(this.slot,this.layout,this.ZQ.AM().S))};g.u(zO,g.V);g.h=zO.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.yF=function(){}; g.h.S1=function(){return this.Z9[this.jH]}; g.h.E8=function(){return this.jH}; g.h.J5=function(l,n){var O=this.S1();n.layoutId!==pX(O,l,n)?AV("pauseLayout for a PlayerBytes layout that is not currently active",l,n):O.J5()}; g.h.yg=function(l,n){var O=this.S1();n.layoutId!==pX(O,l,n)?AV("resumeLayout for a PlayerBytes layout that is not currently active",l,n):O.yg()}; g.h.ib=function(l,n){var O=this.S1();tn9(this,l,n);v7q(O,l,n)&&this.Qi(O.f5(),O.Uf(),"skipped")}; g.h.ym=function(l,n){var O=this.S1();l3i(this);n55(O,l,n)&&(l=Op7(this,O,l,n),l!==void 0&&(this.EU()?AV("Should not happen. Should delete"):Lk8(this,O.f5(),O.Uf(),l)))}; g.h.aq=function(l,n){var O=Object.assign({},Sc(this),{layoutId:n.layoutId}),L=O.layoutId,X=O.uy;if(O.kQ){var F={};Nl(O.Ds,"wrse",(F.ec=L,F.is=X,F.ctp=Ee(L),F))}Mp(this.LI,l,n)}; g.h.YP=function(l,n){var O;(O=this.S1())==null||O.YP(l,n)}; g.h.Hk=function(l,n,O){n.layoutId===this.Uf().layoutId&&(this.AF=!1,Uu(this.N5(),this));var L;(L=this.S1())==null||L.Hk(l,n,O)}; g.h.nM=function(l){var n;(n=this.S1())==null||n.nM(l)}; g.h.xF=function(l,n,O){this.E8()===-1&&(this.callback.YP(this.slot,this.layout),this.jH++);var L=this.S1();L?(L.mP(l,n,O),this.EU()&&this.callback.rB(this.slot,this.layout,n,O)):AV("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.E8()),layoutId:this.Uf().layoutId})}; g.h.onFullscreenToggled=function(l){var n;(n=this.S1())==null||n.onFullscreenToggled(l)}; g.h.TE=function(l){var n;(n=this.S1())==null||n.TE(l)}; g.h.R0=function(l){var n;(n=this.S1())==null||n.R0(l)}; g.h.onVolumeChange=function(){var l;(l=this.S1())==null||l.onVolumeChange()}; g.h.wv=function(l,n,O){Qw(this.LI,l,n,O)}; g.h.qt=function(l){l.startRendering(l.Uf())}; g.h.init=function(){var l=on(this.Uf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");l&&(l.current=this);if(this.Z9.length<1)throw new C("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Z9.length)});if(l=on(this.Uf().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))l.current=this;l=g.P(this.Z9);for(var n=l.next();!n.done;n=l.next())n=n.value,n.init(),ks7(this.LI,this.slot,n.Uf()),yra(this.LI,this.slot,n.Uf()); if(this.EU())for(this.tG.get().addListener(this),tf7(Crk(this),this.tG.get()),l=Crk(this),l=g.P(l),n=l.next();!n.done;n=l.next())this.nx(n.value)}; g.h.nx=function(l){var n=on(l.clientMetadata,"metadata_type_player_vars");n?(l.layoutType!=="LAYOUT_TYPE_MEDIA"&&AV("Non-video ad contains playerVars",this.slot,l),this.uK.get().addPlayerResponseForAssociation({playerVars:n})):(l=K3q(l),this.uK.get().addPlayerResponseForAssociation({nw:l}))}; g.h.release=function(){var l=on(this.Uf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");l&&(l.current=null);if(l=on(this.Uf().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))l.current=null;l=g.P(this.Z9);for(var n=l.next();!n.done;n=l.next())n=n.value,Mr7(this.LI,this.slot,n.Uf()),n.release();this.EU()&&(this.tG.get().removeListener(this),vRi())}; g.h.En=function(l){return l.layoutId!==this.Uf().layoutId?(this.callback.rB(this.f5(),l,new LL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Uf().layoutId+("and LayoutType: "+this.Uf().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.h.e4=function(){this.Bm.get().addListener(this);rg(this.N5(),this)}; g.h.KN=function(l){if(l.state.isError()){var n,O;this.xF((n=l.state.WG)==null?void 0:n.errorCode,new LL("There was a player error during this media layout.",{playerErrorCode:(O=l.state.WG)==null?void 0:O.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(n=this.S1())&&n.KN(l)}; g.h.EU=function(){var l=on(this.f5().clientMetadata,"metadata_type_eligible_for_ssap");return l===void 0?(AV("Expected SSAP eligibility in PlayerBytes slots",this.f5(),this.Uf()),!1):this.Rz.get().EU(l)}; g.h.Mo=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.Gx=function(){}; g.h.ll=function(){}; g.u(av,zO);g.h=av.prototype;g.h.ys=function(l,n,O){this.Qi(l,n,O)}; g.h.XB=function(l,n){this.Qi(l,n,"error")}; g.h.Qi=function(l,n,O){var L=this;g5a(this,l,n,O,function(){sz(L,L.E8()+1)})}; g.h.startRendering=function(l){this.En(l)&&(this.e4(),YQ5(this.JC.get()),dj9(this.Rz.get())||ru7(this.Bm.get()),this.E8()===-1&&sz(this,this.E8()+1))}; g.h.oI=function(l,n){var O=this;this.AF=!0;this.E8()===this.Z9.length?this.callback.Hk(this.slot,this.layout,n):(l=this.S1(),l.oI(l.Uf(),n),this.Hz=function(){O.callback.Hk(O.slot,O.layout,n)}); this.Bm.get().C.kC();qBg(this.uK.get(),{});l=lF(this.Bm.get(),1);l.isPaused()&&!g.K(l,2)&&this.Bm.get().playVideo();this.Bm.get().removeListener(this);this.AF&&Xn8(this)}; g.h.Vm=function(){}; g.h.Ci=function(){}; g.h.TJ=function(){}; g.u(Rv,zO);g.h=Rv.prototype;g.h.ys=function(l,n,O){l=Object.assign({},Sc(this),{layoutId:n.layoutId,layoutExitReason:O});n=l.layoutId;O=l.layoutExitReason;var L={};Nl(l.Ds,"prse",(L.xc=n,L.ler=O,L.ctp=Ee(n),L))}; g.h.XB=function(){AV("onSubLayoutError in SSAP")}; g.h.Qi=function(){AV("exitSubLayoutAndPlayNext in SSAP")}; g.h.S1=function(){return this.wi}; g.h.E8=function(){var l=this;return this.Z9.findIndex(function(n){var O;return n.Uf().layoutId===((O=l.wi)==null?void 0:O.Uf().layoutId)})}; g.h.qt=function(l){Ht(this.wi===void 0,"replacing another adapter");this.wi=l;l.startRendering(l.Uf())}; g.h.wv=function(l,n,O){Qw(this.LI,l,n,O);var L;Ht(n.layoutId===((L=this.wi)==null?void 0:L.Uf().layoutId),"currentAdapter does not match exiting layout",{slot:l?"slot: "+l.slotType:"",subLayout:wy(n)})&&(this.wi=void 0)}; g.h.release=function(){zO.prototype.release.call(this);Ht(this.wi===void 0,"currentAdapter is still active during release");this.wi=void 0}; g.h.C7=function(){return this.Bm.get().getPresentingPlayerType()===2}; g.h.oI=function(l,n){function O(){CX(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(n)||AV("Composite stopRendering: Unexpected layout exit reason",this.slot,l,{layoutExitReason:n}))} function L(){this.wi&&t1(this,this.wi,n);if(this.C7()&&(!CX(this)||n!=="abandoned")){O.call(this);var F;var x=((F=this.tG.get().C.getVideoData())==null?void 0:F.clientPlaybackNonce)||"";F=PG(this.tG.get(),1).clientPlaybackNonce;this.Cp.get().finishSegmentByCpn(x,F,kX(n,this.Rz))}o5i(this,n)} function X(){if(this.wi){var F=this.wi;F.AM().currentState<2&&F.oI(F.Uf(),n);F=CX(this)&&n==="abandoned";this.C7()&&!F&&(O.call(this),this.Cp.get().finishSegmentByCpn(this.wi.Uf().layoutId,PG(this.tG.get(),1).clientPlaybackNonce,kX(n,this.Rz)))}} Ht(l.layoutId===this.Uf().layoutId,"StopRendering for wrong layout")&&P7(this.Do.W,n)&&(this.UR()?L.call(this):X.call(this))}; g.h.Hk=function(l,n,O){zO.prototype.Hk.call(this,l,n,O);n.layoutId===this.Uf().layoutId&&this.Bm.get().removeListener(this)}; g.h.qm=function(){return PG(this.tG.get(),1).clientPlaybackNonce}; g.h.Vm=function(l,n,O){L39(Object.assign({},Sc(this),{cpn:l}));if(!CX(this)||O!==5)if(this.UR()){if(this.wi&&this.wi.Uf().layoutId!==n){var L=this.wi.Uf().layoutId;L!==l&&AV("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:L,exitingCpn:l,enteringCpn:n});l=yb(O,this.Rz);t1(this,this.wi,l)}else this.wi&&AV("onClipExited: active layout is entering again");n===this.qm()&&xu7(this,O)}else{if(this.wi&&this.wi.Uf().layoutId===l)Fk5(this,this.wi,O);else{var X;AV("Exiting cpn does not match active cpn", this.slot,(L=this.wi)==null?void 0:L.Uf(),{exitingCpn:l,transitionReason:O,activeCpn:(X=this.wi)==null?void 0:X.Uf().layoutId})}n===this.qm()&&(this.wi!==void 0&&(AV("active adapter is not properly exited",this.slot,this.layout,{activeLayout:wy(this.wi.Uf())}),Fk5(this,this.wi,O)),xu7(this,O),o5i(this,this.Do.W.S))}}; g.h.UR=function(){return Rn(this.Rz.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.startRendering=function(l){this.En(l)&&(l=this.Do,Ht(l.S===1,"tickStartRendering: state is not initial"),l.S=2,this.e4())}; g.h.Ci=function(l){g79(Object.assign({},Sc(this),{cpn:l}));var n=this.Z9.find(function(O){return O.Uf().layoutId===l}); n?(this.Do.S!==2&&(c80(this.PS,this.slot.slotId),Ht(this.Do.S===2,"Expect started"),this.callback.YP(this.slot,this.layout)),this.qt(n),Mp(this.LI,this.slot,n.Uf())):hd5(this,l)}; g.h.ib=function(l,n){tn9(this,l,n);var O=this.S1();O?v7q(O,l,n)&&Zpv(this,"skipped"):Je5(this,"onSkipRequested")}; g.h.ym=function(l,n){var O;a:{if(O=this.S1()){if(l3i(this),n55(O,l,n)&&(l=Op7(this,O,l,n),l!==void 0)){O={sW:O,VrJ:this.Z9[l]};break a}}else Je5(this,"SkipWithAdPodSkip");O=void 0}if(l=O)O=l.sW,n=l.VrJ,l=O.Uf().layoutId,this.UR()?t1(this,O,"skipped"):O.oI(O.Uf(),"skipped"),O=n.Uf().layoutId,this.Cp.get().finishSegmentByCpn(l,O,kX("skipped",this.Rz))}; g.h.aq=function(){AV("Not used in html5_ssap_fix_layout_exit")}; g.h.KN=function(l){var n;(n=this.S1())==null||n.KN(l)}; g.h.xF=function(){AV("Not used in html5_ssap_fix_layout_exit")}; g.h.TJ=function(l,n,O){var L;if(((L=this.S1())==null?void 0:L.Uf().layoutId)!==n.layoutId)return void AV("requestToExitSubLayout: wrong layout");Zpv(this,O)};g.u(vG,g.V);g.h=vG.prototype;g.h.f5=function(){return this.ZQ.f5()}; g.h.Uf=function(){return this.ZQ.Uf()}; g.h.init=function(){var l=on(this.Uf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");l&&(l.current=this);this.rL()}; g.h.rL=function(){this.ZQ.init()}; g.h.release=function(){var l=on(this.Uf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");l&&(l.current=null);this.cJ()}; g.h.cJ=function(){this.ZQ.release()}; g.h.J5=function(){this.ZQ.J5()}; g.h.yg=function(){this.ZQ.yg()}; g.h.ib=function(l,n){AV("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.f5(),this.Uf(),{requestingSlot:l,requestingLayout:n})}; g.h.startRendering=function(l){l.layoutId!==this.Uf().layoutId?this.callback.rB(this.f5(),l,new LL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Uf().layoutId+("and LayoutType: "+this.Uf().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Bm.get().addListener(this),rg(this.N5(),this),YQ5(this.JC.get()),dj9(this.Rz.get())||ru7(this.Bm.get()),this.ZQ.startRendering(l))}; g.h.oI=function(l,n){this.AF=!0;this.ZQ.oI(l,n);this.Bm.get().C.kC();qBg(this.uK.get(),{});l=lF(this.Bm.get(),1);l.isPaused()&&!g.K(l,2)&&this.Bm.get().playVideo();this.Bm.get().removeListener(this);this.AF&&this.ZQ.nO()}; g.h.YP=function(l,n){this.ZQ.YP(l,n)}; g.h.Hk=function(l,n,O){n.layoutId===this.Uf().layoutId&&(this.AF=!1,Uu(this.N5(),this));this.ZQ.Hk(l,n,O);n.layoutId===this.Uf().layoutId&&fX(this.JC.get())}; g.h.nM=function(l){this.ZQ.nM(l)}; g.h.KN=function(l){if(l.state.isError()){var n,O;this.xF((n=l.state.WG)==null?void 0:n.errorCode,new LL("There was a player error during this media layout.",{playerErrorCode:(O=l.state.WG)==null?void 0:O.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.ZQ.KN(l)}; g.h.xF=function(l,n,O){this.ZQ.mP(l,n,O)}; g.h.onFullscreenToggled=function(l){this.ZQ.onFullscreenToggled(l)}; g.h.TE=function(l){this.ZQ.TE(l)}; g.h.R0=function(l){this.ZQ.R0(l)}; g.h.onVolumeChange=function(){this.ZQ.onVolumeChange()}; g.h.Mo=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.Gx=function(){}; g.h.ll=function(){};g.h=l$.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.init=function(){this.uf.get().addListener(this);this.Bm.get().addListener(this);var l=on(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var n=on(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.L){var O=this.uf.get().d$.slice(-1)[0];O!==void 0&&(l=O.startSecs*1E3,n=(O.startSecs+O.HM)*1E3)}this.Wi(l,n);var L;O=(L=this.tG.get().hF)==null?void 0:L.clientPlaybackNonce;L=this.layout.yp.adClientDataEntry;nS(this.qQ.get(),{daiStateTrigger:{filledAdsDurationMs:n-l,contentCpn:O, adClientData:L}});var X=this.uf.get();X=Aev(X.N,l,n);X!==null&&(nS(this.qQ.get(),{daiStateTrigger:{filledAdsDurationMs:X-l,contentCpn:O,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:L}}),this.Cp.get().vK(X,n))}; g.h.release=function(){this.cJ();this.uf.get().removeListener(this);this.Bm.get().removeListener(this)}; g.h.startRendering=function(){this.Lm();this.callback.YP(this.slot,this.layout)}; g.h.oI=function(l,n){this.gh(n);this.driftRecoveryMs!==null&&(OZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bpf(this)-on(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Bm.get().C.td()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Hk(this.slot,this.layout,n)}; g.h.Jf=function(){return!1}; g.h.fW=function(l){var n=on(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),O=on(this.layout.clientMetadata,"metadata_type_layout_exit_ms");l*=1E3;if(n<=l&&l<O){var L;nS(this.qQ.get(),{daiStateTrigger:{filledAdsDurationMs:l-n,contentCpn:(L=this.tG.get().hF)==null?void 0:L.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.yp.adClientDataEntry}});this.Cp.get().vK(l,O)}}; g.h.nM=function(l){this.c9(l);l=xf(this.Bm.get(),2,!0);if(Md(this.B.get(),this.layout.layoutId)){var n=on(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),O=this.driftRecoveryMs;if(!(O===null||l*1E3<n+O)){this.driftRecoveryMs=null;var L=bpf(this),X=this.Bm.get().C.td(),F=Math.min(l+X,L/1E3);F<=l?OZ(this,{driftRecoveryMs:O.toString(),breakDurationMs:Math.round(L-n).toString(),driftFromHeadMs:Math.round(X*1E3).toString()}):(OZ(this,{driftRecoveryMs:O.toString(),breakDurationMs:Math.round(L- n).toString(),driftFromHeadMs:Math.round(X*1E3).toString(),appliedDriftRecoveryMs:Math.round(l*1E3-n).toString(),destinationMs:Math.round(F*1E3-n).toString()}),this.Bm.get().C.seekTo(F,void 0,void 0,1))}}}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.R0=function(){}; g.h.onVolumeChange=function(){}; g.h.Gx=function(){}; g.h.ll=function(){};g.u(gR,l$);g.h=gR.prototype;g.h.Wi=function(l,n){this.tG.get().addListener(this);if(this.L){var O=l,L=0,X=[];l=this.N.slice();l.sort(function(F,x){return on(F.Uf().clientMetadata,"metadata_type_media_sub_layout_index")-on(x.Uf().clientMetadata,"metadata_type_media_sub_layout_index")}); l.forEach(function(F){var x=O,Z=on(F.Uf().clientMetadata,"metadata_type_video_length_seconds"),J=Math.min(x+Z*1E3,n);O=J;L++;X.push(Z);F.Wi(x,J)})}else this.N.forEach(function(F){F.init()}); this.W!=null&&LS(this.qQ.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.W)}; g.h.cJ=function(){this.tG.get().removeListener(this);this.S=null;this.N.forEach(function(l){l.release()})}; g.h.Lm=function(){if(this.S)AV("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.W)});else{var l,n=(l=this.tG.get().hF)==null?void 0:l.layoutId;Uua(this,n)}}; g.h.gh=function(l){var n,O,L,X;(L=this.S)==null||(X=L.Dz)==null||X.oI((n=this.S)==null?void 0:(O=n.Dz)==null?void 0:O.Uf(),l);this.S=null}; g.h.yF=function(l){var n=l.videoId;l=l.layoutId;if(n==="nPpU29QrbiU"){var O,L;LS(this.qQ.get(),"ads_ssmplra_opdcs","vid."+n+";lid."+this.layout.layoutId+";smlid."+this.W+";slrs."+!!this.S+";slrslid."+((O=this.S)==null?void 0:(L=O.Dz)==null?void 0:L.Uf().layoutId))}if(this.S){var X;if(((X=this.S.Dz)==null?void 0:X.Uf().layoutId)===l)AV("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:l});else{var F,x;(x=this.S.Dz)==null||x.oI((F=this.S.Dz)==null?void 0:F.Uf(),"normal"); Uua(this,l)}}}; g.h.Vm=function(){}; g.h.Ci=function(){}; g.h.c9=function(){}; g.h.KN=function(){}; g.h.onFullscreenToggled=function(){};g.h=M$e.prototype;g.h.f5=function(){return this.slot}; g.h.Uf=function(){return this.layout}; g.h.AM=function(){AV("Should not get exitStateMachine for DAI");return new uj}; g.h.Wi=function(l,n){var O=this;on(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.WS=unq(this.slot,this.layout,on(this.layout.clientMetadata,"metadata_type_player_vars"),l,n,on(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Cp.get(),this.Ms.get(),function(){var L=Object,X=L.assign,F=h$(O.layout);var x=on(O.slot.clientMetadata,"metadata_type_fulfilled_layout")||O.slot.fulfilledLayout;var Z=on(x.clientMetadata,"metadata_type_sub_layouts")|| x.Wd;x=Object.assign({},h$(x),{adPlacementConfig:on(x.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(Z||[]).map(h$)});return X.call(L,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},F,{compositeLayout:x,hasSurveyOverlay:nL(O.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:on(O.layout.clientMetadata,"metadata_type_survey_overlay")})},this.qQ.get()); this.Bm.get().addListener(this);l=on(this.layout.clientMetadata,"metadata_type_video_length_seconds");n=on(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qr(this.layout.vj)&&nk(this.ev.get(),this.layout.layoutId,{d7:n,zq:l,listener:this});ks7(this.callback,this.slot,this.layout);yra(this.callback,this.slot,this.layout)}; g.h.init=function(){var l=on(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=on(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Wi(l,n)}; g.h.release=function(){this.Bm.get().removeListener(this);qr(this.layout.vj)&&OR(this.ev.get(),this.layout.layoutId);this.Rz.get();Mr7(this.callback,this.slot,this.layout)}; g.h.startRendering=function(){var l=this;nL(this.layout.clientMetadata,"metadata_type_survey_overlay")&&LS(this.qQ.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u5)AV("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:nL(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:on(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.u5={YQ:null,Er:!1};this.S=!1;if(mjv(this.Rz.get())){var n;this.adCpn= (n=PG(this.tG.get(),2))==null?void 0:n.clientPlaybackNonce}this.Rz.get().C.j().experiments.MQ("html5_disable_sodar_for_tvhtml5")||PD7(this.slot,this.layout,this.bf.get());qr(this.layout.vj)&&sEe(this.ev.get(),this.layout.layoutId);this.Kf.bv("start");if(WP(this.Rz.get())){n=lF(this.Bm.get());var O=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=xf(this.Bm.get(),2,!1);T1e(this.Kf,this.u5.YQ,n,O,L,function(){return void ed0(l,"teois")},PG(this.tG.get(),1).iK)}Mp(this.callback, this.slot,this.layout); nL(this.layout.clientMetadata,"metadata_type_survey_overlay")&&LS(this.qQ.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}}; g.h.oI=function(l,n){var O=this;if(this.u5){if(WP(this.Rz.get()))if(this.WS===null)AV("Unexpected media sub layout exited without a timeline playback ID");else{l=on(this.layout.clientMetadata,"metadata_type_video_length_seconds");var L=Au0(this.Bm.get(),this.WS);mjv(this.Rz.get())&&this.adCpn===void 0&&AV("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:on(this.layout.clientMetadata,"metadata_type_content_cpn")});bIq(this.Kf,L,this.adCpn);oi(this.Kf,null,this.u5.YQ,l,L,PG(this.tG.get(), 1).iK,function(X){return void QMq(O,X,"fue")},mjv(this.Rz.get()))}this.u5=null; Qw(this.callback,this.slot,this.layout,this.S&&this.Rz.get().C.j().J("dai_layout_log_skip_exit_reason")?"skipped":n)}else AV("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.h.mP=function(){}; g.h.nO=function(){}; g.h.nM=function(l){var n=this;if(this.u5){if(mE(this.Kf,"impression")){var O=lF(this.Bm.get()),L=on(this.layout.clientMetadata,"metadata_type_video_length_seconds");F9(this.Kf,O,l,this.u5.YQ,L,function(X){return void QMq(n,X,"tpaqe")})}this.u5.YQ=l}}; g.h.KN=function(l){var n=this;if(this.u5){WP(this.Rz.get())||this.u5.Er||(this.u5.Er=!0,l=new g.br(l.state,new g.XI));var O=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=xf(this.Bm.get(),2,!1);X9(this.Kf,this.u5.YQ,l,O,L,PG(this.tG.get(),1).iK,!WP(this.Rz.get()),function(){return void ed0(n,"teosc")})}}; g.h.onFullscreenToggled=function(l){Wkv(this.Kf,l)}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.R0=function(){}; g.h.ib=function(l,n){var O;l=this.qQ.get();var L="ti."+mE(this.Kf,"impression")+";ts."+mE(this.Kf,"skip")+";hp.",X;var F=!((X=this.Kf.N.get("skip"))==null||!X.length);LS(l,"ads_dsr",L+F+";cpn."+on(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((O=PG(this.tG.get(),2))==null?void 0:O.clientPlaybackNonce)+";sl."+(on(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));mE(this.Kf,"impression")&&this.Kf.bv("skip");n=PG(this.tG.get(),1).iK;this.S=!0; this.Cp.get().mA(n)||(this.S=!1,AV("Unexpected failure to skip a server stitched ad",this.slot,this.layout))}; g.h.onVolumeChange=function(){}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.J5=function(){}; g.h.yg=function(){}; g.h.wI=function(){E5q(this.Kf)}; g.h.JV=function(){N1k(this.Kf)}; g.h.gN=function(){Dua(this.Kf)}; g.h.zp=function(){qgi(this.Kf)}; g.h.BJ=function(){kp7(this.Kf)}; g.h.HJ=function(){yeg(this.Kf)}; g.h.Gx=function(){}; g.h.ll=function(){};g.u(Zv,l$);g.h=Zv.prototype; g.h.Wi=function(){var l=this;on(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var n=on(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),O=on(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.WS=unq(this.slot,this.layout,on(this.layout.clientMetadata,"metadata_type_player_vars"),n,O,on(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Cp.get(),this.Ms.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:n, exitMs:O,adPlacementConfig:on(l.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.qQ.get()); var L=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),X=on(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qr(this.layout.vj)&&nk(this.ev.get(),this.layout.layoutId,{d7:X,zq:L,listener:this})}; g.h.cJ=function(){qr(this.layout.vj)&&OR(this.ev.get(),this.layout.layoutId)}; g.h.Lm=function(){var l=this;if(this.u5)AV("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u5={YQ:null,Er:!1},PD7(this.slot,this.layout,this.bf.get()),this.Kf.bv("start"),WP(this.Rz.get())){var n=lF(this.Bm.get()),O=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=xf(this.Bm.get(),2,!1);T1e(this.Kf,this.u5.YQ,n,O,L,function(){return void Yg5(l,"teois")},!1)}}; g.h.gh=function(){var l=this;if(this.u5){if(WP(this.Rz.get()))if(this.WS===null)AV("Unexpected single media layout exited without a timeline playback ID");else{var n=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=Au0(this.Bm.get(),this.WS);bIq(this.Kf,O);oi(this.Kf,null,this.u5.YQ,n,O,!1,function(L){return void jMa(l,L,"fue")})}this.u5=null}else AV("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.h.c9=function(l){var n=this;if(this.u5){if(mE(this.Kf,"impression")){var O=lF(this.Bm.get()),L=on(this.layout.clientMetadata,"metadata_type_video_length_seconds");F9(this.Kf,O,l,this.u5.YQ,L,function(X){return void jMa(n,X,"tpaqe")})}this.u5.YQ=l}}; g.h.KN=function(l){var n=this;if(this.u5){WP(this.Rz.get())||this.u5.Er||(this.u5.Er=!0,l=new g.br(l.state,new g.XI));var O=on(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=xf(this.Bm.get(),2,!1);X9(this.Kf,this.u5.YQ,l,O,L,!1,!WP(this.Rz.get()),function(){return void Yg5(n,"teosc")})}}; g.h.onFullscreenToggled=function(l){Wkv(this.Kf,l)}; g.h.wI=function(){E5q(this.Kf)}; g.h.JV=function(){N1k(this.Kf)}; g.h.gN=function(){Dua(this.Kf)}; g.h.zp=function(){qgi(this.Kf)}; g.h.BJ=function(){kp7(this.Kf)}; g.h.HJ=function(){yeg(this.Kf)};J$.prototype.build=function(l,n,O,L){if(nL(O.clientMetadata,"metadata_type_dai")){var X=on(L.clientMetadata,"metadata_type_ad_placement_config");vZ(L,{Co:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),sU:["LAYOUT_TYPE_MEDIA"]})&&X!==void 0?(X=new Mr(L.vj,this.qQ,X,L.layoutId,null),X=new Zv(l,O,L,this.tG,this.Cp,this.Ms,this.uf,this.Bm,X,this.qQ,this.bf, this.S,this.ev,this.Rz)):X=null;if(X)return X;a:{var F,x=(F=L.Wd)!=null?F:on(L.clientMetadata,"metadata_type_sub_layouts");X=on(L.clientMetadata,"metadata_type_ad_placement_config");if(vZ(L,{Co:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],sU:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&x!==void 0&&X!==void 0){F=[];x=g.P(x);for(var Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var J=on(Z.clientMetadata,"metadata_type_media_sub_layout_index");if(!vZ(Z,{Co:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), sU:["LAYOUT_TYPE_MEDIA"]})||J===void 0){l=null;break a}J=new Mr(Z.vj,this.qQ,X,Z.layoutId,J);F.push(new M$e(n,O,Z,this.Cp,J,this.Bm,this.Ms,this.ev,this.bf,this.Rz,this.qQ,this.tG))}n=new Mr(L.vj,this.qQ,X,L.layoutId);l=new gR(l,O,L,this.tG,this.Cp,this.uf,this.Bm,n,this.qQ,this.S,F)}else l=null}if(l)return l}else if(l=Hpg(l,n,O,L,this.N5,this.PS,this.GB,this.qQ,this.ev,this.bf,this.uK,this.tG,this.Bm,this.Fg,this.JC,this.fp,this.E_,this.nN,this.Rz,this.Cp,this.context,this.cG))return l;throw new LL("Unsupported layout with type: "+ L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};wR.prototype.build=function(l,n,O,L){if(l=Hpg(l,n,O,L,this.N5,this.PS,this.GB,this.qQ,this.ev,this.bf,this.uK,this.tG,this.Bm,this.Fg,this.JC,this.fp,this.E_,this.nN,this.Rz,this.Cp,this.context,this.cG))return l;throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(Gpk,xR);g.u(H0,Tx);H0.prototype.startRendering=function(l){var n=WZ(this.Kf),O={adsClientData:this.layout.yp};this.S.push(new Gpk(on(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),n,this.Uf().layoutId,O));Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l)}; H0.prototype.Jh=function(l,n){n!==this.layout.layoutId||l!=="survey-interstitial"&&l!=="button"||((l=on(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?l.ib(this.slot,this.layout):AV("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; H0.prototype.oz=function(){Tx.prototype.oz.call(this)};var b$=new g.re(320,63);g.u(u$,xR);g.u(P0,Tx);g.h=P0.prototype;g.h.nM=function(){}; g.h.KN=function(){}; g.h.onFullscreenToggled=function(){}; g.h.TE=function(l){l&&$F(this.L,this.layout)}; g.h.Mo=function(){}; g.h.R0=function(l){var n=UZ(this.layout);if(this.T=rR(l,b_8(this.Bm.get())))n.onErrorCommand&&this.E_.get().executeCommand(n.onErrorCommand,this.layout.layoutId),$F(this.L,this.layout)}; g.h.onVolumeChange=function(){}; g.h.PK=function(){return this.Uf().layoutId}; g.h.BF=function(){return this.T}; g.h.Jh=function(l){this.B.Jh(l);l==="in_video_overlay_close_button"&&$F(this.L,this.layout)}; g.h.YA=function(l){l==="invideo-overlay"&&$F(this.L,this.layout)}; g.h.PO=function(){this.B.PO()}; g.h.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l);this.V.oL=this}; g.h.oI=function(l,n){Tx.prototype.oI.call(this,l,n);fk(this.V,this)}; g.h.init=function(){Tx.prototype.init.call(this);Xba(this.qQ.get(),this);this.Bm.get().addListener(this);this.S.push(new u$(UZ(this.layout),WZ(this.Kf),this.layout.layoutId,{adsClientData:this.layout.yp}))}; g.h.release=function(){Tx.prototype.release.call(this);this.Bm.get().removeListener(this);o95(this.qQ.get(),this)}; g.h.Gx=function(){}; g.h.ll=function(){};g.u(Td,Tx);g.h=Td.prototype;g.h.init=function(){Tx.prototype.init.call(this);Xba(this.qQ.get(),this);this.Bm.get().addListener(this);this.S.push(new u$(UZ(this.layout),WZ(this.Kf),this.layout.layoutId,{adsClientData:this.layout.yp}))}; g.h.PO=function(){this.B.PO()}; g.h.startRendering=function(l){Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l);this.V.oL=this}; g.h.oI=function(l,n){Tx.prototype.oI.call(this,l,n);fk(this.V,this)}; g.h.Jh=function(l){this.B.Jh(l);l==="in_video_overlay_close_button"&&$F(this.L,this.layout)}; g.h.d3=function(l){if(l==="invideo-overlay"){l=B$9(this.G,this.layout);l=g.P(l);for(var n=l.next();!n.done;n=l.next())n.value.stop()}}; g.h.YA=function(l){l==="invideo-overlay"&&$F(this.L,this.layout)}; g.h.sO=function(l){if(l==="invideo-overlay"){l=B$9(this.G,this.layout);l=g.P(l);for(var n=l.next();!n.done;n=l.next())n.value.start()}}; g.h.nM=function(){}; g.h.KN=function(){}; g.h.onFullscreenToggled=function(){}; g.h.TE=function(l){l&&$F(this.L,this.layout)}; g.h.Mo=function(){}; g.h.R0=function(l){var n=UZ(this.layout),O=n.contentSupportedRenderer.imageOverlayAdContentRenderer,L=b_8(this.Bm.get());a:{O=O.image;O=O===void 0?null:O;if(O!=null&&(O=O.thumbnail,O!=null&&O.thumbnails!=null&&O.thumbnails.length!=0&&O.thumbnails[0].width!=null&&O.thumbnails[0].height!=null)){O=new g.re(O.thumbnails[0].width||0,O.thumbnails[0].height||0);break a}O=new g.re(0,0)}if(this.T=rR(l,L,O))n.onErrorCommand&&this.E_.get().executeCommand(n.onErrorCommand,this.layout.layoutId),$F(this.L,this.layout)}; g.h.onVolumeChange=function(){}; g.h.PK=function(){return this.Uf().layoutId}; g.h.BF=function(){return this.T}; g.h.release=function(){Tx.prototype.release.call(this);this.Bm.get().removeListener(this);o95(this.qQ.get(),this)}; g.h.Gx=function(){}; g.h.ll=function(){};W0.prototype.Jh=function(l){l==="ad-info-hover-text-button"&&((this.S=this.Bm.get().OS(1))||this.Bm.get().pauseVideo())}; W0.prototype.PO=function(){this.S||this.Bm.get().resumeVideo(1)};g.u($ua,xR);g.u(EZ,Tx);g.h=EZ.prototype;g.h.init=function(){Tx.prototype.init.call(this);this.Bm.get().addListener(this)}; g.h.startRendering=function(l){var n=on(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.S.push(new $ua(n,this.layout.layoutId,{adsClientData:this.layout.yp}));Tx.prototype.startRendering.call(this,l);this.callback.YP(this.slot,l)}; g.h.YP=function(){}; g.h.Jh=function(l,n){n!==this.layout.layoutId||l!=="ad-info-icon-button"&&l!=="ad-info-dialog-close-button"||((n=on(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?l==="ad-info-icon-button"?n.J5(this.slot,this.layout):l==="ad-info-dialog-close-button"&&n.yg(this.slot,this.layout):AV("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:l}))}; g.h.R0=function(l){l.width<450&&$F(this.L,this.layout)}; g.h.onVolumeChange=function(){}; g.h.nM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.KN=function(){}; g.h.Gx=function(){}; g.h.ll=function(){}; g.h.oz=function(){Tx.prototype.oz.call(this)}; g.h.release=function(){Tx.prototype.release.call(this);this.Bm.get().removeListener(this)};V$5.prototype.build=function(l,n,O,L){if(n=H7(l,O,L,this.Qu,this.Bm,this.qQ,this.L,this.S,this.Rz))return n;if(vZ(L,du9()))return new Td(O,L,this.qQ,this.ev,this.Qu,l,this.W,this.N,this.Bm,this.E_,this.Rz,this.S,new W0(this.Bm));if(vZ(L,I39()))return new P0(O,L,this.qQ,this.ev,this.Qu,l,this.W,this.Bm,this.E_,this.Rz,this.S,new W0(this.Bm));if(vZ(L,{Co:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],sU:["LAYOUT_TYPE_SURVEY"]}))return new EZ(O,L,l,this.Qu,this.W,this.Bm,this.Rz);if(vZ(L, {Co:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],sU:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new H0(O,L,l,this.Qu,this.qQ);if(vZ(L,KOe()))return new Fr(O,L,l,this.Qu,this.Bm,this.Rz);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};B1i.prototype.build=function(l,n,O,L){if(n=H7(l,O,L,this.Qu,this.Bm,this.qQ,this.L,this.S,this.Rz))return n;if(vZ(L,du9()))return new Td(O,L,this.qQ,this.ev,this.Qu,l,this.W,this.N,this.Bm,this.E_,this.Rz,this.S,new W0(this.Bm));if(vZ(L,I39()))return new P0(O,L,this.qQ,this.ev,this.Qu,l,this.W,this.Bm,this.E_,this.Rz,this.S,new W0(this.Bm));throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory."); };g.u(Na,Xr);Na.prototype.startRendering=function(l){Xr.prototype.startRendering.call(this,l);if(l.renderingContent?z3v(l,PG(this.tG.get(),2)||void 0):on(this.layout.clientMetadata,"metadata_ad_video_is_listed"))l=l.renderingContent?iIv(l,PG(this.tG.get(),2)||void 0):on(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.V8.get().C.lF("onAdMetadataAvailable",l)};ip9.prototype.build=function(l,n,O,L){if(vZ(L,cek())||L.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(L.renderingContent,h6)!==void 0)return new Na(l,O,L,this.Qu,this.Bm,this.qQ,this.W,this.V8,this.S,this.tG);throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};zdq.prototype.build=function(l,n,O,L){if(vZ(L,cek()))return new Na(l,O,L,this.Qu,this.Bm,this.qQ,this.W,this.V8,this.S,this.tG);if(l=H7(l,O,L,this.Qu,this.Bm,this.qQ,this.W,this.S,this.Rz))return l;throw new LL("Unsupported layout with type: "+L.layoutType+" and client metadata: "+FY(L.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};sZ.prototype.clone=function(l){var n=this;return new sZ(function(){return n.triggerId},l)};fS.prototype.clone=function(l){var n=this;return new fS(function(){return n.triggerId},l)};KS.prototype.clone=function(l){var n=this;return new KS(function(){return n.triggerId},l)};ai.prototype.clone=function(l){var n=this;return new ai(function(){return n.triggerId},l)};Ri.prototype.clone=function(l){var n=this;return new Ri(function(){return n.triggerId},l)};CS.prototype.clone=function(l){var n=this;return new CS(function(){return n.triggerId},l)};g.u(Vq,g.V);var LZk={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var XT={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Pk:[],layoutExitUserInputSubmittedTriggers:[]};var $J={KD2:1,M02:2,f01:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.u(TJ,g.V);g.h=TJ.prototype;g.h.SG=function(l){if(this.S)AV("Unexpected multiple fetch instructions for the current content");else{this.S=l;l=g.P(this.uf.get().d$);for(var n=l.next();!n.done;n=l.next())Erg(this,this.S,n.value)}}; g.h.Jf=function(l){if(!this.S){var n;(n=this.Cp)==null||n.get().Bs(l.identifier);return!1}Erg(this,this.S,l);return!0}; g.h.fW=function(){}; g.h.Ke=function(l){this.S&&this.S.contentCpn!==l&&(AV("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:l,fetchInstructionsCpn:this.S.contentCpn}),this.S=null)}; g.h.Mq=function(l){this.S&&this.S.contentCpn!==l&&AV("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:l,fetchInstructionsCpn:this.S.contentCpn},!0);this.S=null}; g.h.oz=function(){g.V.prototype.oz.call(this);this.S=null};var TL=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],$1k=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.u(Nd,g.V);g.h=Nd.prototype;g.h.YP=function(l,n){var O=this;if(n.layoutType==="LAYOUT_TYPE_MEDIA"&&(Ou(n,this.V)||Ou(n,$1k))){var L=PG(this.tG.get(),2),X=this.L(n,L||void 0);X?ro(this.N.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var F=[A90(O.S.get(),X.contentCpn,X.dE,function(x){return O.B(x.slotId,"core",X,wg(O.m1.get(),x))},X.inPlayerSlotId)]; X.instreamAdPlayerUnderlayRenderer&&lZ(O.Rz.get())&&F.push(kEg(O,X,X.instreamAdPlayerUnderlayRenderer));return F}):AV("Expected MediaLayout to carry valid opportunity on entered",l,n)}}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.aA=function(){}; g.h.t7=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.Hk=function(){};g.u(Dj,g.V);Dj.prototype.Ke=function(l,n,O,L,X,F,x){var Z=this,J=PG(this.tG.get(),1);!Rn(this.Rz.get(),"html5_ssap_play_cached_preroll")&&J.fI?FH(this.Bm.get()):(eji(this.JC.get(),L),ro(this.W.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return kA9(Z.S.get(),L,X,F,l,n,x,J,"")}),jV5(this.N))}; Dj.prototype.Mq=function(){};g.u(qd,g.V);g.u(kF,g.V);kF.prototype.onCueRangeEnter=function(){}; kF.prototype.onCueRangeExit=function(l){var n=this,O=this.S.get(l);O&&(this.S.delete(l),this.Fg.get().removeCueRange(l),ro(this.W.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var L=n.N.get();L=UT(L.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},O,{slotId:L,slotEntryTrigger:O.slotEntryTrigger?KV5(O.slotId,L,O.slotEntryTrigger):void 0,slotFulfillmentTriggers:aa9(O.slotId,L,O.slotFulfillmentTriggers),slotExpirationTriggers:aa9(O.slotId,L,O.slotExpirationTriggers)})]}, O.slotId))}; kF.prototype.Ke=function(){for(var l=g.P(this.S.keys()),n=l.next();!n.done;n=l.next())n=n.value,this.Fg.get().removeCueRange(n);this.S.clear()}; kF.prototype.Mq=function(){};g.u(yX,g.V);g.h=yX.prototype;g.h.fN=function(){}; g.h.yf=function(l){var n=this;g.lX(g.Oy(),function(){var O=n.S.get(l);O&&AV("Expected layouts to be properly unscheduled",l,void 0,{slotType:l.slotType,layoutTypes:[].concat(g.E(O)).map(function(L){return L.layoutType})})},0)}; g.h.aA=function(){}; g.h.t7=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(l,n){this.S.has(l)||this.S.set(l,new Set);this.S.get(l).add(n)}; g.h.Ec=function(l,n){this.mf.has(l)&&this.mf.get(l)===n&&AV("Unscheduled a Layout that is currently entered.",l,n);if(this.S.has(l)){var O=this.S.get(l);O.has(n)?(O.delete(n),O.size===0&&this.S.delete(l)):AV("Trying to unscheduled a Layout that was not scheduled.",l,n)}else AV("Trying to unscheduled a Layout that was not scheduled.",l,n)}; g.h.YP=function(l,n){this.mf.set(l,n)}; g.h.Hk=function(l){this.mf.delete(l)}; g.h.G1=function(){};g.h=MO7.prototype;g.h.init=function(){}; g.h.f5=function(){return this.slot}; g.h.vc=function(){this.callback.aA(this.slot)}; g.h.Ry=function(){this.callback.Xb(this.slot)}; g.h.release=function(){};e7.prototype.build=function(l,n){return new MO7(l,n)};g.h=Qz5.prototype;g.h.init=function(){}; g.h.f5=function(){return this.slot}; g.h.vc=function(){hQ(this.Bm.get(),"ad-showing");this.callback.aA(this.slot)}; g.h.Ry=function(){this.callback.Xb(this.slot);Zp(this.Bm.get(),"ad-showing")}; g.h.release=function(){};g.h=e18.prototype;g.h.init=function(){}; g.h.f5=function(){return this.slot}; g.h.vc=function(){hQ(this.Bm.get(),"ad-showing");hQ(this.Bm.get(),"ad-interrupting");this.W=this.Bm.get().isAtLiveHead();this.S=Math.ceil(Date.now()/1E3);this.callback.aA(this.slot)}; g.h.Ry=function(){Zp(this.Bm.get(),"ad-showing");Zp(this.Bm.get(),"ad-interrupting");var l=this.W?Infinity:xf(this.Bm.get(),1,!0)+Math.floor(Date.now()/1E3)-this.S;this.Bm.get().C.seekTo(l,void 0,void 0,1);this.callback.Xb(this.slot)}; g.h.release=function(){};g.h=YPf.prototype;g.h.init=function(){}; g.h.f5=function(){return this.slot}; g.h.vc=function(){hQ(this.Bm.get(),"ad-showing");hQ(this.Bm.get(),"ad-interrupting");this.callback.aA(this.slot)}; g.h.Ry=function(){FH(this.Bm.get());Zp(this.Bm.get(),"ad-showing");Zp(this.Bm.get(),"ad-interrupting");this.callback.Xb(this.slot)}; g.h.release=function(){FH(this.Bm.get())};YF.prototype.build=function(l,n){if(x_(n,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new Qz5(l,n,this.Bm);if(n.slotEntryTrigger instanceof $4&&x_(n,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new e18(l,n,this.Bm);if(x_(n,[],"SLOT_TYPE_PLAYER_BYTES"))return new YPf(l,n,this.Bm);throw new C("Unsupported slot with type "+n.slotType+" and client metadata: "+(FY(n.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.u(j7,g.V);j7.prototype.S=function(l){for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next()){L=L.value;var X=L.trigger;X instanceof pS&&L.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&X.triggeringLayoutId===l&&n.push(L)}n.length?eX(this.e_(),n):AV("Mute requested but no registered triggers can be activated.")};g.u(mU,j7);g.h=mU.prototype;g.h.Jh=function(l,n){if(n)if(l==="skip-button"){l=[];for(var O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next()){L=L.value;var X=L.trigger;X instanceof pS&&L.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&X.triggeringLayoutId===n&&l.push(L)}l.length&&eX(this.e_(),l)}else Rn(this.Rz.get(),"supports_multi_step_on_desktop")?l==="ad-action-submit-survey"&&GJ(this,n):l==="survey-submit"?GJ(this,n):l==="survey-single-select-answer-button"&&GJ(this,n)}; g.h.Rm=function(l){j7.prototype.S.call(this,l)}; g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof t$||n instanceof pS))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in AdUxUpdateTriggerAdapter.");this.wc.set(n.triggerId,new l6(l,n,O,L))}; g.h.ZN=function(l){this.wc.delete(l.triggerId)}; g.h.d3=function(){}; g.h.sO=function(){}; g.h.YA=function(){};g.u(I7,g.V);g.h=I7.prototype; g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof sZ||n instanceof fS||n instanceof KS||n instanceof ai||n instanceof Ri||n instanceof CS||n instanceof c0||n instanceof eP||n instanceof jP||n instanceof Y4||n instanceof B0||n instanceof Q1))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in AdsControlFlowEventTriggerAdapter");l=new l6(l,n,O,L);this.wc.set(n.triggerId,l);n instanceof Ri&&this.B.has(n.triggeringSlotId)&&eX(this.S(),[l]);n instanceof sZ&&this.N.has(n.triggeringSlotId)&&eX(this.S(),[l]);n instanceof eP&&this.W.has(n.triggeringLayoutId)&&eX(this.S(),[l])}; g.h.ZN=function(l){this.wc.delete(l.triggerId)}; g.h.fN=function(l){this.B.add(l.slotId);for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())L=L.value,L.trigger instanceof Ri&&l.slotId===L.trigger.triggeringSlotId&&n.push(L);n.length>0&&eX(this.S(),n)}; g.h.yf=function(l){this.B.delete(l.slotId);for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next()){L=L.value;var X=L.trigger;X instanceof CS&&X.triggeringSlotId===l.slotId&&n.push(L)}n.length>0&&eX(this.S(),n)}; g.h.t7=function(l){for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next()){L=L.value;var X=L.trigger;X instanceof c0&&X.slotType===l.slotType&&X.S!==l.slotId&&n.push(L)}n.length>0&&eX(this.S(),n)}; g.h.aA=function(l){this.N.add(l.slotId);for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())L=L.value,L.trigger instanceof sZ&&l.slotId===L.trigger.triggeringSlotId&&n.push(L);n.length>0&&eX(this.S(),n)}; g.h.Xb=function(l){this.N.delete(l.slotId);this.L.add(l.slotId);for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())if(L=L.value,L.trigger instanceof fS)l.slotId===L.trigger.triggeringSlotId&&n.push(L);else if(L.trigger instanceof Q1){var X=L.trigger;l.slotId===X.slotId&&this.W.has(X.triggeringLayoutId)&&n.push(L)}n.length>0&&eX(this.S(),n)}; g.h.iU=function(l){for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())L=L.value,L.trigger instanceof KS&&l.slotId===L.trigger.triggeringSlotId&&n.push(L);n.length>0&&eX(this.S(),n)}; g.h.X7=function(l){for(var n=[],O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())L=L.value,L.trigger instanceof ai&&l.slotId===L.trigger.triggeringSlotId&&n.push(L);n.length>0&&eX(this.S(),n)}; g.h.er=function(l,n){this.V.add(n.layoutId)}; g.h.Ec=function(l,n){this.V.delete(n.layoutId)}; g.h.YP=function(l,n){this.W.add(n.layoutId);for(var O=[],L=g.P(this.wc.values()),X=L.next();!X.done;X=L.next())if(X=X.value,X.trigger instanceof eP)n.layoutId===X.trigger.triggeringLayoutId&&O.push(X);else if(X.trigger instanceof B0){var F=X.trigger;l.slotType===F.slotType&&n.layoutType===F.layoutType&&n.layoutId!==F.S&&O.push(X)}else X.trigger instanceof Q1&&(F=X.trigger,n.layoutId===F.triggeringLayoutId&&this.L.has(F.slotId)&&O.push(X));O.length>0&&eX(this.S(),O)}; g.h.Hk=function(l,n,O){this.W.delete(n.layoutId);l=[];for(var L=g.P(this.wc.values()),X=L.next();!X.done;X=L.next())if(X=X.value,X.trigger instanceof jP&&n.layoutId===X.trigger.triggeringLayoutId&&l.push(X),X.trigger instanceof Y4){var F=X.trigger;n.layoutId===F.triggeringLayoutId&&F.S.includes(O)&&l.push(X)}l.length>0&&eX(this.S(),l)}; g.h.G1=function(){}; g.h.Ke=function(){this.L.clear()}; g.h.Mq=function(){};g.u(df,g.V);df.prototype.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof y1))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in CloseRequestedTriggerAdapter");this.wc.set(n.triggerId,new l6(l,n,O,L))}; df.prototype.ZN=function(l){this.wc.delete(l.triggerId)};g.u(VX,g.V);VX.prototype.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof k4||n instanceof zd))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.wc.set(n.triggerId,new l6(l,n,O,L))}; VX.prototype.ZN=function(l){this.wc.delete(l.triggerId)}; VX.prototype.Ke=function(l){for(var n=[],O=n.push,L=O.apply,X=[],F=g.P(this.wc.values()),x=F.next();!x.done;x=F.next())x=x.value,x.trigger instanceof k4&&x.trigger.Zf===l&&X.push(x);L.call(O,n,g.E(X));O=n.push;L=O.apply;X=[];F=g.P(this.wc.values());for(x=F.next();!x.done;x=F.next())x=x.value,x.trigger instanceof zd&&x.trigger.S!==l&&X.push(x);L.call(O,n,g.E(X));n.length&&eX(this.S(),n)}; VX.prototype.Mq=function(l){for(var n=[],O=n.push,L=O.apply,X=[],F=g.P(this.wc.values()),x=F.next();!x.done;x=F.next()){x=x.value;var Z=x.trigger;Z instanceof zd&&Z.S===l&&X.push(x)}L.call(O,n,g.E(X));n.length&&eX(this.S(),n)};g.u(BP,g.V);g.h=BP.prototype;g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");var X="adtriggercuerange:"+n.triggerId;if(n instanceof $4)jze(this,l,n,O,L,X,n.S.start,n.S.end,n.Zf,n.visible);else if(n instanceof Ma)jze(this,l,n,O,L,X,0x7ffffffffffff,0x8000000000000,n.Zf,n.visible);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in CueRangeTriggerAdapter");}; g.h.ZN=function(l){var n=this.wc.get(l.triggerId);n&&this.Fg.get().removeCueRange(n.cueRangeId);this.wc.delete(l.triggerId)}; g.h.onCueRangeEnter=function(l){var n=GEi(this,l);if(n&&(n=this.wc.get(n)))if(g.K(lF(this.Bm.get()),32))this.S.add(n.cueRangeId);else{var O=n==null?void 0:n.cU.trigger;if(O instanceof $4||O instanceof Ma){if(ql(this.context.Rz.get())){var L=n.cU.slot,X=n.cU.layout,F={};this.context.WQ.Nv("cre",(F.ca=n.cU.category,F.tt=O.triggerType,F.st=L.slotType,F.lt=X==null?void 0:X.layoutType,F.cid=l,F))}eX(this.W(),[n.cU])}}}; g.h.onCueRangeExit=function(l){(l=GEi(this,l))&&(l=this.wc.get(l))&&this.S.delete(l.cueRangeId)}; g.h.KN=function(l){if(ry(l,16)<0){l=g.P(this.S);for(var n=l.next();!n.done;n=l.next())this.onCueRangeEnter(n.value,!0);this.S.clear()}}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.G1=function(){}; g.h.nM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.TE=function(){}; g.h.Mo=function(){}; g.h.R0=function(){}; g.h.onVolumeChange=function(){}; g.h.Gx=function(){}; g.h.ll=function(){};g.u(cP,g.V);g.h=cP.prototype; g.h.bV=function(l,n,O,L){if(this.W.has(n.triggerId)||this.N.has(n.triggerId))throw new C("Tried to re-register the trigger.");l=new l6(l,n,O,L);if(l.trigger instanceof dR)this.W.set(l.trigger.triggerId,l);else if(l.trigger instanceof Gd)this.N.set(l.trigger.triggerId,l);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+l.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(l.trigger.triggerId)&&l.slot.slotId===this.S&&eX(this.L(),[l])}; g.h.ZN=function(l){this.W.delete(l.triggerId);this.N.delete(l.triggerId)}; g.h.yF=function(l){l=l.slotId;if(this.S!==l){var n=[];this.S!=null&&n.push.apply(n,g.E(m_g(this.N,this.S)));l!=null&&n.push.apply(n,g.E(m_g(this.W,l)));this.S=l;n.length&&eX(this.L(),n)}}; g.h.Vm=function(){}; g.h.Ci=function(){};g.u(iZ,g.V);g.h=iZ.prototype;g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof i$))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.wc.set(n.triggerId,new l6(l,n,O,L))}; g.h.ZN=function(l){this.wc.delete(l.triggerId)}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){};g.u(zJ,g.V);g.h=zJ.prototype;g.h.G1=function(l,n){for(var O=[],L=g.P(this.wc.values()),X=L.next();!X.done;X=L.next()){X=X.value;var F=X.trigger;F.opportunityType===l&&(F.associatedSlotId&&F.associatedSlotId!==n||O.push(X))}O.length&&eX(this.S(),O)}; g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof pv7))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in OpportunityEventTriggerAdapter");this.wc.set(n.triggerId,new l6(l,n,O,L))}; g.h.ZN=function(l){this.wc.delete(l.triggerId)}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.YP=function(){}; g.h.Hk=function(){};g.u(S7,g.V);g.h=S7.prototype;g.h.bV=function(l,n,O,L){l=new l6(l,n,O,L);if(n instanceof mg||n instanceof V1||n instanceof Ii||n instanceof SP||n instanceof Sgi){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");this.wc.set(n.triggerId,l);O=O.slotId;l=this.N.has(O)?this.N.get(O):new Set;l.add(n);this.N.set(O,l)}else throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in PrefetchTriggerAdapter");}; g.h.ZN=function(l){this.wc.delete(l.triggerId)}; g.h.fN=function(l){var n=l.slotId;if(this.N.has(n)){l=0;var O=new Set;n=g.P(this.N.get(n));for(var L=n.next();!L.done;L=n.next())if(L=L.value,O.add(L.triggerId),L instanceof V1&&L.breakDurationMs){l=L.breakDurationMs;break}pW(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",l,O)}}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.YP=function(){}; g.h.Hk=function(){}; g.h.G1=function(){}; g.h.Jf=function(l){if(this.S){this.W&&this.W.stop();this.L&&g.lx(this.L);l=l.HM*1E3+1E3;for(var n=0,O=g.P(this.wc.values()),L=O.next();!L.done;L=O.next())L=L.value.trigger,L instanceof mg&&L.breakDurationMs<=l&&L.breakDurationMs>n&&(n=L.breakDurationMs);l=n;if(l>0)return pW(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",l,new Set,!0),pW(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",l,new Set,!1),!0}return!1}; g.h.fW=function(){}; g.h.Ke=function(l){this.S&&this.S.contentCpn!==l?(AV("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:l,fetchInstructionsCpn:this.S.contentCpn}),s1(this)):d_f(this)}; g.h.Mq=function(l){this.S&&this.S.contentCpn!==l&&AV("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:l,fetchInstructionsCpn:this.S.contentCpn},!0);s1(this)}; g.h.SG=function(l){var n=this;if(this.S)AV("Unexpected multiple fetch instructions for the current content");else{this.S=l;l=VO9(l);this.W=new g.vs(function(){d_f(n)},l?l:6E5); this.W.start();this.L=new g.vs(function(){n.S&&(n.W&&(n.W.stop(),n.W.start()),Iai(n,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},$_f(this.S)); l=this.Bm.get().getCurrentTimeSec(1,!1);for(var O=g.P(this.uf.get().d$),L=O.next();!L.done;L=O.next())L=L.value,LS(this.qQ.get(),"nocache","ct."+Date.now()+";cmt."+l+";d."+L.HM.toFixed(3)+";tw."+(L.startSecs-l)+";cid."+L.identifier+";")}}; g.h.oz=function(){g.V.prototype.oz.call(this);s1(this)};g.u(fW,g.V);g.h=fW.prototype;g.h.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof v0))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.wc.set(n.triggerId,new l6(l,n,O,L));l=this.S.has(n.triggeringLayoutId)?this.S.get(n.triggeringLayoutId):new Set;l.add(n);this.S.set(n.triggeringLayoutId,l)}; g.h.ZN=function(l){this.wc.delete(l.triggerId);if(!(l instanceof v0))throw new C("Incorrect TriggerType: Tried to unregister trigger of type "+l.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var n=this.W.get(l.triggerId);n&&(n.dispose(),this.W.delete(l.triggerId));if(n=this.S.get(l.triggeringLayoutId))n.delete(l),n.size===0&&this.S.delete(l.triggeringLayoutId)}; g.h.fN=function(){}; g.h.yf=function(){}; g.h.t7=function(){}; g.h.aA=function(){}; g.h.Xb=function(){}; g.h.iU=function(){}; g.h.X7=function(){}; g.h.er=function(){}; g.h.Ec=function(){}; g.h.G1=function(){}; g.h.YP=function(l,n){var O=this;if(this.S.has(n.layoutId)){l=this.S.get(n.layoutId);l=g.P(l);var L=l.next();for(n={};!L.done;n={B7:void 0},L=l.next())n.B7=L.value,L=new g.vs(function(X){return function(){var F=O.wc.get(X.B7.triggerId);eX(O.N(),[F])}}(n),n.B7.durationMs),L.start(),this.W.set(n.B7.triggerId,L)}}; g.h.Hk=function(){};g.u(KW,g.V);KW.prototype.bV=function(l,n,O,L){if(this.wc.has(n.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(n instanceof Dv))throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.triggerType+" in VideoTransitionTriggerAdapter.");this.wc.set(n.triggerId,new l6(l,n,O,L))}; KW.prototype.ZN=function(l){this.wc.delete(l.triggerId)};ti.prototype.Om=function(l){return l.kind==="AD_PLACEMENT_KIND_START"};g.u(nD,g.V);g.h=nD.prototype;g.h.logEvent=function(l){this.ou(l)}; g.h.e5=function(l,n,O){this.ou(l,void 0,void 0,void 0,n,void 0,void 0,void 0,n.adSlotLoggingData,void 0,void 0,O)}; g.h.N3=function(l,n,O,L){this.ou(l,void 0,void 0,void 0,n,O?O:void 0,void 0,void 0,n.adSlotLoggingData,O?O.adLayoutLoggingData:void 0,void 0,L)}; g.h.Qy=function(l,n,O,L){Rn(this.Rz.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+l,"trigger:",O,"slot:",n,"layout:",L);Jk(this.S.get())&&this.ou(l,void 0,void 0,void 0,n,L?L:void 0,void 0,O,n.adSlotLoggingData,L?L.adLayoutLoggingData:void 0)}; g.h.Wr=function(l,n,O,L,X){this.ou(l,n,O,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)}; g.h.rJ=function(l,n,O,L){this.ou("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,O,L,void 0,void 0,O.adSlotLoggingData,L?L.adLayoutLoggingData:void 0,{errorType:l,errorMessage:n})}; g.h.ou=function(l,n,O,L,X,F,x,Z,J,w,H,A){var b=this;A=A===void 0?0:A;Rn(this.Rz.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+l,"slot:",X,"layout:",F,"ping:",x,"Opportunity:",{opportunityType:n,associatedSlotId:O,zaG:L,T73:Z,adSlotLoggingData:J,adLayoutLoggingData:w});try{var r=function(){if(!b.Rz.get().C.j().J("html5_disable_client_tmp_logs")&&l!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){l||AV("Empty PACF event type",X,F);var U=Jk(b.S.get()),W={eventType:l,eventOrder:++b.eventCount},N={}; X&&(N.slotData=Z9(U,X));F&&(N.layoutData=WGg(U,F));x&&(N.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:x.S.serializedAdPingMetadata,pingIndex:x.index});Z&&(N.triggerData=hk(Z.trigger,Z.category));n&&(N.opportunityData=Em9(U,n,O,L));U={organicPlaybackContext:{contentCpn:PG(b.tG.get(),1).clientPlaybackNonce}};U.organicPlaybackContext.isLivePlayback=PG(b.tG.get(),1).tA;var q;U.organicPlaybackContext.isMdxPlayback=(q=PG(b.tG.get(),1))==null?void 0:q.isMdxPlayback; var y;if((y=PG(b.tG.get(),1))==null?0:y.daiEnabled)U.organicPlaybackContext.isDaiContent=!0;var e;if(q=(e=PG(b.tG.get(),2))==null?void 0:e.clientPlaybackNonce)U.adVideoPlaybackContext={adVideoCpn:q};U&&(N.externalContext=U);W.adClientData=N;J&&(W.serializedSlotAdServingData=J.serializedSlotAdServingDataEntry);w&&(W.serializedAdServingData=w.serializedAdServingDataEntry);H&&(W.errorInfo=H);g.JG("adsClientStateChange",{adsClientEvent:W})}}; A&&A>0?g.lX(g.Oy(),function(){return r()},A):r()}catch(U){Rn(this.Rz.get(),"html5_log_pacf_logging_errors")&&g.lX(g.Oy(),function(){AV(U instanceof Error?U:String(U),X,F,{pacf_message:"exception during pacf logging"})})}};var VoD=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.u(OA,nD);g.h=OA.prototype; g.h.e5=function(l,n,O){nD.prototype.e5.call(this,l,n,O);ql(this.Rz.get())&&(O={},this.context.WQ.Nv("pacf",(O.et=l,O.st=n.slotType,O.si=n.slotId,O)))}; g.h.N3=function(l,n,O,L){var X=VoD.has(l);nD.prototype.N3.call(this,l,n,O,L);ql(this.Rz.get(),X)&&(L={},this.context.WQ.Nv("pacf",(L.et=l,L.st=n.slotType,L.si=n.slotId,L.lt=O==null?void 0:O.layoutType,L.li=O==null?void 0:O.layoutId,L.p_ac=O==null?void 0:O.layoutId,L)))}; g.h.Wr=function(l,n,O,L,X){nD.prototype.Wr.call(this,l,n,O,L,X);ql(this.Rz.get())&&(O={},this.context.WQ.Nv("pacf",(O.et=l,O.ot=n,O.ss=L==null?void 0:L.length,O)))}; g.h.Qy=function(l,n,O,L){nD.prototype.Qy.call(this,l,n,O,L);if(ql(this.Rz.get())){var X={};this.context.WQ.Nv("pacf",(X.et=l,X.tt=O.trigger.triggerType,X.tc=O.category,X.st=n.slotType,X.si=n.slotId,X.lt=L==null?void 0:L.layoutType,X.li=L==null?void 0:L.layoutId,X.p_ac=L==null?void 0:L.layoutId,X))}}; g.h.rJ=function(l,n,O,L){nD.prototype.rJ.call(this,l,n,O,L);if(ql(this.Rz.get(),!0)){var X={};this.context.WQ.Nv("perror",(X.ert=l,X.erm=n,X.st=O.slotType,X.si=O.slotId,X.lt=L==null?void 0:L.layoutType,X.li=L==null?void 0:L.layoutId,X.p_ac=L==null?void 0:L.layoutId,X))}}; g.h.ou=function(l,n,O,L,X,F,x,Z,J,w,H){if(g.yw(this.Rz.get().C.j())){var A=this.Rz.get();A=g.HQ(A.C.j().experiments,"H5_async_logging_delay_ms")}else A=void 0;nD.prototype.ou.call(this,l,n,O,L,X,F,x,Z,J,w,H,A)};gB.prototype.clear=function(){this.S.clear()};oR.prototype.resolve=function(l){LD(this,l)}; oR.prototype.reject=function(l){XC(this,l)}; oR.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; oR.prototype.wait=function(){var l=this;return function O(){return weq(O,function(L){if(L.S==1)return g.Ei(L,2),g.Q(L,{sN:l},4);if(L.S!=2)return L.return(L.W);g.q7(L);return g.ki(L,0)})}()}; var wG5=aA(function(l){return FC(l)?l instanceof oR:!1});Object.freeze({UIm:function(l){var n=g_a(l);return Aw(OLv(n,function(O){return n[O].currentState==="fail"}),function(O){return Number.isNaN(O)?n.map(function(L){return L.state().result}):n[O]})}, AEQ:function(l){var n=g_a(l);return Aw(OLv(n),function(){return n.map(function(O){return O.state()})})}});var UA=window.Nri||"en";WJ.prototype.X9=function(l){this.client=l}; WJ.prototype.S=function(){this.clear();this.csn=g.yS()}; WJ.prototype.clear=function(){this.N.clear();this.W.clear();this.L.clear();this.csn=null};N8.prototype.X9=function(l){g.lk(EA().X9).bind(EA())(l)}; N8.prototype.clear=function(){g.lk(EA().clear).bind(EA())()};g.h=Db.prototype;g.h.X9=function(l){this.client=l}; g.h.gj=function(l,n){var O=this;n=n===void 0?{}:n;g.lk(function(){var L,X,F,x=((L=g.z(l==null?void 0:l.commandMetadata,g.P9))==null?void 0:L.rootVe)||((X=g.z(l==null?void 0:l.commandMetadata,Omq))==null?void 0:(F=X.screenVisualElement)==null?void 0:F.uiType);if(x){L=g.z(l==null?void 0:l.commandMetadata,WcD);if(L==null?0:L.parentTrackingParams){var Z=g.Dx(L.parentTrackingParams);if(L.parentCsn)var J=L.parentCsn}else n.clickedVisualElement?Z=n.clickedVisualElement:l.clickTrackingParams&&(Z=g.Dx(l.clickTrackingParams)); a:{L=g.z(l,g.Cy);X=g.z(l,AmO);if(L){if(X=XQ9(L,"VIDEO")){L={token:X,videoId:L.videoId};break a}}else if(X&&(L=XQ9(X,"PLAYLIST"))){L={token:L,playlistId:X.playlistId};break a}L=void 0}n=Object.assign({},{cttAuthInfo:L,parentCsn:J},n);if(g.E0("expectation_logging")){var w;n.loggingExpectations=((w=g.z(l==null?void 0:l.commandMetadata,Omq))==null?void 0:w.loggingExpectations)||void 0}kW(O,x,Z,n)}else g.d2(new g.at("Error: Trying to create a new screen without a rootVeType",l))})()}; g.h.clickCommand=function(l,n,O){l=l.clickTrackingParams;O=O===void 0?0:O;l?(O=g.yS(O===void 0?0:O))?(x3k(this.client,O,g.Dx(l),n),n=!0):n=!1:n=!1;return n}; g.h.stateChanged=function(l,n,O){this.visualElementStateChanged(g.Dx(l),n,O===void 0?0:O)}; g.h.visualElementStateChanged=function(l,n,O){O=O===void 0?0:O;O===0&&this.W.has(O)?this.G.push([l,n]):ZL9(this,l,n,O)};ek.prototype.fetch=function(l,n,O){var L=this,X=HLi(l,n,O);return new Promise(function(F,x){function Z(){if(O==null?0:O.Uk)try{var w=L.handleResponse(l,X.status,X.response,O);F(w)}catch(H){x(H)}else F(L.handleResponse(l,X.status,X.response,O))} X.onerror=Z;X.onload=Z;var J;X.send((J=n.body)!=null?J:null)})}; ek.prototype.handleResponse=function(l,n,O,L){O=O.replace(")]}'","");try{var X=JSON.parse(O)}catch(F){g.d2(new g.at("JSON parsing failed after XHR fetch",l,n,O));if((L==null?0:L.Uk)&&O)throw new g.Kp(1,"JSON parsing failed after XHR fetch");X={}}n!==200&&(g.d2(new g.at("XHR API fetch failed",l,n,O)),X=Object.assign({},X,{errorMetadata:{status:n}}));return X};YW.getInstance=function(){var l=g.zk("ytglobal.storage_");l||(l=new YW,g.i9("ytglobal.storage_",l));return l}; YW.prototype.estimate=function(){var l,n,O;return g.Y(function(L){l=navigator;return((n=l.storage)==null?0:n.estimate)?L.return(l.storage.estimate()):((O=l.webkitTemporaryStorage)==null?0:O.queryUsageAndQuota)?L.return(Akf()):L.return()})}; g.i9("ytglobal.storageClass_",YW);hG.prototype.hP=function(l){this.handleError(l)}; hG.prototype.logEvent=function(l,n){switch(l){case "IDB_DATA_CORRUPTED":g.E0("idb_data_corrupted_killswitch")||this.S("idbDataCorrupted",n);break;case "IDB_UNEXPECTEDLY_CLOSED":this.S("idbUnexpectedlyClosed",n);break;case "IS_SUPPORTED_COMPLETED":g.E0("idb_is_supported_completed_killswitch")||this.S("idbIsSupportedCompleted",n);break;case "QUOTA_EXCEEDED":rk5(this,n);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.S("idbTransactionEnded",n);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":l= Object.assign({},n,{hasWindowUnloaded:this.W}),this.S("idbTransactionAborted",l)}};var pg={},tPq=g.Ox("yt-player-local-media",{L8:(pg.index={JM:2},pg.media={JM:2},pg.captions={JM:5},pg),shared:!1,upgrade:function(l,n){n(2)&&(g.Yt(l,"index"),g.Yt(l,"media"));n(5)&&g.Yt(l,"captions");n(6)&&(jH(l,"metadata"),jH(l,"playerdata"))}, version:5});var B8Q={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},sb;a:{var fg=g.e6();fg=fg.toLowerCase();if(g.qQ(fg,"android")){var ch0=fg.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(ch0){var ijk=parseFloat(ch0[1]);if(ijk<100){sb=ijk;break a}}var zQD=fg.match("("+Object.keys(B8Q).join("|")+")");sb=zQD?B8Q[zQD[0]]:0}else sb=void 0}var YJ=sb,eV=YJ>=0;var Aye=window;var Upe=Ao(function(){var l,n;return(n=(l=window).matchMedia)==null?void 0:n.call(l,"(prefers-reduced-motion: reduce)").matches});var G$;g.jk=new eh;G$=0;var m$={oC:function(l,n){var O=l[0];l[0]=l[n%l.length];l[n%l.length]=O}, qv:function(l,n){l.splice(0,n)}, fc:function(l){l.reverse()}};var yH9=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var CG=qu5()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.RZ?!0:!1;var RS8={BtQ:"adunit",MD5:"detailpage",S93:"editpage",Nb3:"embedded",FD3:"leanback",n6i:"previewpage",KNf:"profilepage",xU:"unplugged",j75:"playlistoverview",aJf:"sponsorshipsoffer",HTm:"shortspage",jh1:"handlesclaiming",xmo:"immersivelivepage",pQ5:"creatormusic",uKG:"immersivelivepreviewpage",r2F:"admintoolyurt",BHi:"shortsaudiopivot",yP5:"consumption"};var Kg,Sps,QD;Kg={};g.Sk=(Kg.STOP_EVENT_PROPAGATION="html5-stop-propagation",Kg.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Kg.IV_DRAWER_OPEN="ytp-iv-drawer-open",Kg.MAIN_VIDEO="html5-main-video",Kg.VIDEO_CONTAINER="html5-video-container",Kg.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Kg.HOUSE_BRAND="house-brand",Kg);Sps={};QD=(Sps.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Sps.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Sps);var jn9={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var drf={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},$rf={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"},DE9={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var U0e={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.nn.prototype.getLanguageInfo=function(){return this.O_}; g.nn.prototype.getXtags=function(){if(!this.xtags){var l=this.id.split(";");l.length>1&&(this.xtags=l[1])}return this.xtags}; g.nn.prototype.toString=function(){return this.O_.name}; g.nn.prototype.getLanguageInfo=g.nn.prototype.getLanguageInfo;OH.prototype.XT=function(l){return this.W===l.W&&this.S===l.S&&this.N===l.N&&this.reason===l.reason&&(!Ln||this.Sv===l.Sv)}; OH.prototype.isLocked=function(){return this.N&&!!this.W&&this.W===this.S}; OH.prototype.compose=function(l){if(l.N&&XF(l))return iQ;if(l.N||XF(this))return l;if(this.N||XF(l))return this;var n=this.W&&l.W?Math.max(this.W,l.W):this.W||l.W,O=this.S&&l.S?Math.min(this.S,l.S):this.S||l.S;n=Math.min(n,O);var L=0;Ln&&(L=this.Sv!==0&&l.Sv!==0?Math.min(this.Sv,l.Sv):this.Sv===0?l.Sv:this.Sv);return Ln&&n===this.W&&O===this.S&&L===this.Sv||!Ln&&n===this.W&&O===this.S?this:Ln?new OH(n,O,!1,O===this.S&&L===this.Sv?this.reason:l.reason,L):new OH(n,O,!1,O===this.S?this.reason:l.reason)}; OH.prototype.L=function(l){return!l.video||Ln&&this.Sv!==0&&this.Sv<l.Sv?!1:Bov(this,l.video.quality)}; var pwk=g.gI("auto","hd1080",!1,"l"),hH0=g.gI("auto","large",!1,"l"),iQ=g.gI("auto","auto",!1,"p"),Ln=!1;hF.prototype.Si=function(l){l=l||iQ;for(var n=g.Jq(this.videoInfos,function(x){return l.L(x)}),O=[],L={},X=0;X<n.length;X++){var F=n[X].video; L[F.quality]||(O.push(F),L[F.quality]=!0)}return O}; hF.prototype.C4=function(l){l=l||iQ;return g.Jq(this.videoInfos,function(n){return l.L(n)})}; hF.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var gB9=new Set(["356"]);g.u(Zu,g.V);Zu.prototype.oz=function(){g.V.prototype.oz.call(this)};g.WW.prototype.set=function(l,n){this.S[l]!==n&&(this.S[l]=n,this.url="")}; g.WW.prototype.get=function(l){EH(this);return this.S[l]||null}; g.WW.prototype.Ae=function(){this.url||(this.url=hU7(this));return this.url}; g.WW.prototype.clone=function(){var l=new g.WW(this.W,this.L);l.scheme=this.scheme;l.path=this.path;l.N=this.N;l.S=g.jY(this.S);l.url=this.url;return l}; var xlf=[dO5];g.h=g.QT.prototype;g.h.NZ=function(l){this.segments.push(l)}; g.h.AQ=function(l){return!!this.P5(l)}; g.h.getDuration=function(l){return(l=this.P5(l))?l.duration:0}; g.h.RC=function(l){return this.getDuration(l)}; g.h.df=function(){return 0}; g.h.jF=function(){return this.segments.length?this.segments[0].Ef:-1}; g.h.Ko=function(l){return(l=this.P5(l))?l.ingestionTime:NaN}; g.h.G2=function(){return this.segments.length?this.segments[this.segments.length-1].Ef:-1}; g.h.XV=function(l){return this.G2()===l&&!this.W&&l>=0}; g.h.y$=function(){var l=this.segments[this.segments.length-1];return l?l.endTime:NaN}; g.h.i5=function(){return this.segments[0].startTime}; g.h.AT=function(){return this.segments.length}; g.h.tQ=function(){return 0}; g.h.Qb=function(l){return(l=this.qK(l))?l.Ef:-1}; g.h.nA=function(l){return(l=this.P5(l))?l.sourceURL:""}; g.h.getStartTime=function(l){return(l=this.P5(l))?l.startTime:0}; g.h.Jy=function(l){return this.getStartTime(l)+this.getDuration(l)}; g.h.KA=Oi(1);g.h.isLoaded=function(){return this.segments.length>0}; g.h.P5=function(l){if(this.S&&this.S.Ef===l)return this.S;l=g.xd(this.segments,new Me(l,0,0,0,""),function(n,O){return n.Ef-O.Ef}); return this.S=l>=0?this.segments[l]:null}; g.h.qK=function(l){if(this.S&&this.S.startTime<=l&&l<this.S.startTime+this.S.duration)return this.S;l=g.xd(this.segments,{startTime:l},function(n,O){return n.startTime-O.startTime}); return this.S=l>=0?this.segments[l]:this.segments[Math.max(0,-l-2)]}; g.h.append=function(l){if(l.length)if(l=g.Ot(l),this.segments.length){var n=this.segments.length?g.fO(this.segments).endTime:0,O=l[0].Ef-this.G2();O>1&&C99(this.segments);for(O=O>0?0:-O+1;O<l.length;O++){var L=l[O];L.startTime=n;L.endTime=L.startTime+L.duration;n+=l[O].duration;this.segments.push(l[O])}}else this.segments=l}; g.h.HZ=function(){return 0};e1.prototype.skip=function(l){this.S+=l};A65.prototype.q0=function(){return new Uint8Array(this.data.buffer)};var a9={},sa0=(a9.predictStart="predictStart",a9.start="start",a9["continue"]="continue",a9.stop="stop",a9),bB9={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};cW.prototype.Lj=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])}; cW.prototype.toString=function(){for(var l="",n=g.P(Object.keys(this.data)),O=n.next();!O.done;O=n.next())O=O.value,l+=O+":"+this.data[O]+";";return l};ln.prototype.c5=function(){var l=this.pos;this.pos=0;var n=!1;try{Ld(this,440786851)&&(this.pos=0,Ld(this,408125543)&&(n=!0))}catch(O){if(O instanceof RangeError)this.pos=0,n=!1,g.d2(O);else throw O;}this.pos=l;return n};AW.prototype.set=function(l,n){this.Yt.get(l);this.S[l]=n;this.url=""}; AW.prototype.get=function(l){return this.S[l]||this.Yt.get(l)}; AW.prototype.Ae=function(){this.url||(this.url=dle(this));return this.url};P_.prototype.N0=function(l,n){return l.Sz?this.G?this.V=!0:this.V=Vlq(this,l,n):Vlq(this,l,n)}; P_.prototype.Ay=function(l){return this.N.get(l)}; P_.prototype.wb=function(l,n){l.Yt===this.S&&(this.S=bn(l,n));l.Yt===this.L&&(this.L=bn(l,n))}; P_.prototype.uT=function(){return this.S!==this.L&&!this.V};qS.prototype.y4=function(){return!!this.S&&this.index.isLoaded()}; qS.prototype.Cs=function(){return!1}; qS.prototype.zd=function(l){return[l]}; qS.prototype.tK=function(l){return[l]};kz.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.h=es.prototype;g.h.pM=function(){return this.L&&this.S.index.XV(this.Ef)}; g.h.isEncrypted=function(){return this.S.info.isEncrypted()}; g.h.XT=function(l){return!(!l||l.S!==this.S||l.type!==this.type||(this.range&&l.range?l.range.start!==this.range.start||l.range.end!==this.range.end:l.range!==this.range)||l.Ef!==this.Ef||l.W!==this.W||l.N!==this.N)}; g.h.RR=function(){return!!this.S.info.video}; g.h.rK=function(){var l=If(this),n="";g.PM(l,function(O,L){n+=L+"_"+O+"_"}); return n.slice(0,-1)};$z.prototype.tT=function(){return this.S?this.S.Ae():""}; $z.prototype.isDecorated=function(){return!!(this.S||this.L&&this.L.xQ)}; $z.prototype.wH=function(){return Yz(this.Z2[0])}; $z.prototype.wb=function(l,n){this.Vp.wb(l,n);if(this.S){this.S=bn(l,n);n=g.P(["acpns","cpn","daistate","skipsq"]);for(var O=n.next();!O.done;O=n.next())this.S.set(O.value,null)}this.requestId=l.get("req_id")};g.u(zt,qS);g.h=zt.prototype;g.h.I7=function(){return!1}; g.h.Md=function(){return!0}; g.h.Rb=function(){return!1}; g.h.Cs=function(){return!this.B}; g.h.JF=function(){return new $z([new es(1,this,this.initRange,"getMetadataRequestInfo")],this.B)}; g.h.GW=function(){return null}; g.h.fS=function(l){this.NI(l);return this.Md()&&l.N&&!l.L?new $z([new es(l.type,l.S,l.range,"liveGetNextRequestInfoBySegment",l.Ef,l.startTime,l.duration,l.W+l.N,NaN,!0)],this.index.nA(l.Ef)):this.vX(mp(l),!1)}; g.h.Gj=function(l,n){n=n===void 0?!1:n;l=this.index.Qb(l);n&&(l=Math.min(this.index.G2(),l+1));return this.vX(l,!0)}; g.h.h8=function(l){gC(l)}; g.h.NI=function(l){return l.N===0?!0:this.index.G2()>l.Ef&&this.index.jF()<=l.Ef+1}; g.h.update=function(l,n,O){this.index.append(l);w79(this.index,O);l=this.index;l.W=n;l.N="update"}; g.h.y4=function(){return this.Cs()?!0:qS.prototype.y4.call(this)}; g.h.vX=function(l,n){var O=this.index.nA(l),L=this.index.getStartTime(l),X=this.index.getDuration(l),F;n?X=F=0:F=this.info.Sv>0?this.info.Sv*X:1E3;return new $z([new es(3,this,void 0,"liveCreateRequestInfoForSegment",l,L,X,0,F,!n)],O)}; g.h.Io=function(){return this.Cs()?0:this.initRange.length}; g.h.u7=function(){return!1};sL.prototype.update=function(l){var n=void 0;this.W&&(n=this.W);var O=new sL,L=Array.from(l.getElementsByTagName("S"));if(L.length){var X=+Ss(l,"timescale")||1,F=(+L[0].getAttribute("t")||0)/X,x=+Ss(l,"startNumber")||0;O.L=F;var Z=n?n.startSecs+n.HM:0,J=Date.parse(X6f(Ss(l,"yt:segmentIngestTime")))/1E3;O.B=l.parentElement.tagName==="SegmentTemplate";O.B&&(O.T=Ss(l,"media"));l=n?x-n.Ef:1;O.V=l>0?0:-l+1;l=g.P(L);for(L=l.next();!L.done;L=l.next()){L=L.value;for(var w=+L.getAttribute("d")/X,H=(+L.getAttribute("yt:sid")|| 0)/X,A=+L.getAttribute("r")||0,b=0;b<=A;b++)if(n&&x<=n.Ef)x++;else{var r=new gG9(x,Z,w,J+H,F);O.S.push(r);var U=L;var W=X,N=r.startSecs;r=U.getAttribute("yt:cuepointTimeOffset");var q=U.getAttribute("yt:cuepointDuration");if(r&&q){r=Number(r);N=-r/W+N;W=Number(q)/W;q=U.getAttribute("yt:cuepointContext")||null;var y=U.getAttribute("yt:cuepointIdentifier")||"";U=U.getAttribute("yt:cuepointEvent")||"";U=new VT(N,W,q,y,sa0[U]||"unknown",r)}else U=null;U&&O.N.push(U);x++;Z+=w;F+=w;J+=w+H}}O.S.length&& (O.W=g.fO(O.S))}this.V=O.V;this.W=O.W||this.W;g.Lm(this.S,O.S);g.Lm(this.N,O.N);this.B=O.B;this.T=O.T;this.L===-1&&(this.L=O.getStreamTimeOffset())}; sL.prototype.getStreamTimeOffset=function(){return this.L===-1?0:this.L};g.u(Kd,g.QT);g.h=Kd.prototype;g.h.df=function(){return this.Uc}; g.h.AQ=function(l,n){l=af(this,l);return l>=0&&(n||!this.segments[l].pending)}; g.h.jF=function(){return this.z6?this.segments.length?this.qK(this.i5()).Ef:-1:g.QT.prototype.jF.call(this)}; g.h.i5=function(){if(this.aI)return 0;if(!this.z6)return g.QT.prototype.i5.call(this);if(!this.segments.length)return 0;var l=Math.max(g.fO(this.segments).endTime-this.yz,0);return this.Jt>0&&this.qK(l).Ef<this.Jt?this.P5(this.Jt).startTime:l}; g.h.y$=function(){if(this.Bq&&this.jt&&this.jt>0)return this.jt/1E3;if(!this.segments.length)return g.QT.prototype.y$.call(this);var l=this.G2();if(!this.z6||l<=this.segments[this.segments.length-1].Ef)l=this.segments[this.segments.length-1];else{var n=this.segments[this.segments.length-1];l=new Me(l,Math.max(0,n.startTime-(n.Ef-l)*this.Uc),this.Uc,0,"sq/"+l,void 0,void 0,!0)}return this.aI?Math.min(this.yz,l.endTime):l.endTime}; g.h.AT=function(){return this.z6?this.segments.length?this.G2()-this.jF()+1:0:g.QT.prototype.AT.call(this)}; g.h.G2=function(){var l=Math.min(this.HT,Math.max(g.QT.prototype.G2.call(this),this.Vw)),n=this.yz*1E3;n=this.jt>0&&this.jt<n;this.aI&&this.yz>0&&this.Vw>0&&!n&&(n=this.qK(this.yz))&&(l=Math.min(n.Ef-1,l));return l}; g.h.BD=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.h.NZ=function(l){var n=af(this,l.Ef);if(n>=0)this.segments[n]=l;else if(this.segments.splice(-(n+1),0,l),this.Uo&&l.Ef%(300/this.Uc)===0){var O=this.segments[0].Ef,L=Math.floor(this.Uo/this.Uc);l=l.Ef-L;n=-(n+1)-L;n>0&&l>O&&(this.segments=this.segments.slice(n))}}; g.h.qb=function(){return this.Vw}; g.h.XV=function(l){return fd?!this.W&&l>=0&&this.G2()<=l:g.QT.prototype.XV.call(this,l)}; g.h.qK=function(l){if(!this.z6)return g.QT.prototype.qK.call(this,l);if(!this.segments.length)return null;var n=this.segments[this.segments.length-1];if(l<this.segments[0].startTime)n=Math.max(0,this.segments[0].Ef-Math.ceil((this.segments[0].startTime-l)/this.Uc));else if(l>=n.endTime)n=n.Ef+Math.floor((l-n.endTime)/this.Uc+1);else{n=hm(this.segments,function(L){return l<L.startTime?-1:l>=L.endTime?1:0}); if(n>=0)return this.segments[n];var O=-(n+1);n=this.segments[O-1];O=this.segments[O];n=Math.floor((l-n.endTime)/((O.startTime-n.endTime)/(O.Ef-n.Ef-1))+1)+n.Ef}return this.P5(n)}; g.h.P5=function(l){if(!this.z6)return g.QT.prototype.P5.call(this,l);if(!this.segments.length)return null;var n=af(this,l);if(n>=0)return this.segments[n];var O=-(n+1);n=this.Uc;if(O===0)var L=Math.max(0,this.segments[0].startTime-(this.segments[0].Ef-l)*n);else O===this.segments.length?(L=this.segments[this.segments.length-1],L=L.endTime+(l-L.Ef-1)*n):(L=this.segments[O-1],n=this.segments[O],n=(n.startTime-L.endTime)/(n.Ef-L.Ef-1),L=L.endTime+(l-L.Ef-1)*n);return new Me(l,L,n,0,"sq/"+l,void 0,void 0, !0)}; var fd=!1;g.u(Rf,zt);g.h=Rf.prototype;g.h.Rb=function(){return!0}; g.h.y4=function(){return!0}; g.h.NI=function(l){return this.Md()&&l.N&&!l.L||!l.S.index.XV(l.Ef)}; g.h.JF=function(){}; g.h.Gj=function(l,n){return typeof l!=="number"||isFinite(l)?zt.prototype.Gj.call(this,l,n===void 0?!1:n):new $z([new es(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.uV,void 0,this.uV*this.info.Sv)],"")}; g.h.vX=function(l,n){var O=O===void 0?!1:O;if(this.index.AQ(l))return zt.prototype.vX.call(this,l,n);var L=this.index.getStartTime(l),X=Math.round(this.uV*this.info.Sv),F=this.uV;n&&(F=X=0);return new $z([new es(O?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",l,L,F,void 0,X,!n)],l>=0?"sq/"+l:"")};g.u(Cd,qS);g.h=Cd.prototype;g.h.I7=function(){return!1}; g.h.Md=function(){return!1}; g.h.Rb=function(){return!1}; g.h.JF=function(){return new $z([new es(1,this,void 0,"otfInit")],this.B)}; g.h.GW=function(){return null}; g.h.fS=function(l){this.NI(l);return H59(this,mp(l),!1)}; g.h.Gj=function(l,n){n=n===void 0?!1:n;l=this.index.Qb(l);n&&(l=Math.min(this.index.G2(),l+1));return H59(this,l,!0)}; g.h.h8=function(l){l.info.type===1&&(this.S||(this.S=DP(l.S)),l.W&&l.W.uri==="http://youtube.com/streaming/otf/durations/112015"&&AY9(this,l.W))}; g.h.NI=function(l){return l.N===0?!0:this.index.G2()>l.Ef&&this.index.jF()<=l.Ef+1}; g.h.Io=function(){return 0}; g.h.u7=function(){return!1};tW.prototype.VV=function(){return this.S.VV()};g.h=g.LG.prototype;g.h.AQ=function(l){return l<=this.G2()}; g.h.tQ=function(l){return this.offsets[l]}; g.h.getStartTime=function(l){return this.startTicks[l]/this.S}; g.h.Jy=function(l){return this.getStartTime(l)+this.getDuration(l)}; g.h.KA=Oi(0);g.h.Ko=function(){return NaN}; g.h.getDuration=function(l){l=this.RC(l);return l>=0?l/this.S:-1}; g.h.RC=function(l){return l+1<this.count||this.W?this.startTicks[l+1]-this.startTicks[l]:-1}; g.h.df=function(){return 0}; g.h.jF=function(){return 0}; g.h.G2=function(){return this.count-1}; g.h.XV=function(l){return this.G2()===l&&l>=0}; g.h.y$=function(){return this.W?this.startTicks[this.count]/this.S:NaN}; g.h.i5=function(){return 0}; g.h.AT=function(){return this.count}; g.h.nA=function(){return""}; g.h.Qb=function(l){l=g.xd(this.startTicks.subarray(0,this.count),l*this.S);return l>=0?l:Math.max(0,-l-2)}; g.h.isLoaded=function(){return this.G2()>=0}; g.h.HZ=function(l,n){if(l>=this.G2())return 0;var O=0;for(n=this.getStartTime(l)+n;l<this.G2()&&n>this.getStartTime(l);l++)O=Math.max(O,Nv5(this,l)/this.getDuration(l));return O}; g.h.resize=function(l){l+=2;var n=this.offsets;this.offsets=new Float64Array(l+1);var O=this.startTicks;this.startTicks=new Float64Array(l+1);for(l=0;l<this.count+1;l++)this.offsets[l]=n[l],this.startTicks[l]=O[l]}; g.h.cap=function(l,n){XD(this);this.W=!0;this.startTicks[this.count]=n;this.offsets[this.count]=l};g.u(oS,qS);g.h=oS.prototype;g.h.JF=function(l,n){var O=new es(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n),L=[new es(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n),O];this.info.contentLength>0&&l&&(O=O.range.end+1,l=Math.min(l,this.info.contentLength-O),l>0&&L.push(new es(4,this,MS(O,l),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n)));return new $z(L)}; g.h.h8=function(l){if(l.info.type===1){if(this.S)return;this.S=DP(l.S)}else if(l.info.type===2){if(this.B||this.index.G2()>=0)return;if(g.v7(this.info)){var n=this.index,O=l.VV();l=l.info.range.start;var L=g.S1(O,0,1936286840);O=Dlq(L);n.S=O.timescale;var X=O.g0;n.offsets[0]=O.Yl+l+L.size;n.startTicks[0]=X;n.W=!0;l=O.i8.length;for(L=0;L<l;L++){X=n;var F=O.k7q[L],x=O.i8[L];X.count++;XD(X);X.offsets[X.count]=X.offsets[X.count-1]+F;X.startTicks[X.count]=X.startTicks[X.count-1]+x}}else this.B=l.VV()}if(this.info.QE()&& this.S&&this.B){O=new DataView(this.S.buffer);n=this.index;L=this.B;l=this.indexRange.end;X=new ln(O);O=X;X=O.pos;F={XA:1E6,yK:1E9,duration:0,jl:0,Gf:0};if(Ld(O,408125543))if(F.jl=Xy(O,!0),F.Gf=O.start+O.pos,Ld(O,357149030)){for(x=gK(O);!nd(x);){var Z=Xy(x,!1);Z===2807729?F.XA=Fy(x):Z===2807730?F.yK=Fy(x):Z===17545?F.duration=hW(x):xz(x)}O.pos=X;O=F}else O.pos=X,O=null;else O.pos=X,O=null;if(O!==null){n.S=O.yK/O.XA;X=new ln(L);L=X;x=O.Gf;X=L.pos;F=[];if(Ld(L,475249515)){for(Z=gK(L);Ld(Z,187);){var J= gK(Z);if(Ld(J,179)){var w=Fy(J);if(Ld(J,183)){J=gK(J);for(var H=x;Ld(J,241);)H=Fy(J)+x;F.push({UJ:H,SU:w})}}}if(F.length>0&&l===F[0].UJ)for(l=0;l<F.length;l++)F[l].UJ+=1;L.pos=X;l=F}else L.pos=X,l=null;if(l!==null){l=g.P(l);for(L=l.next();!L.done;L=l.next())F=L.value,L=n,X=F.UJ,F=F.SU,XD(L),L.offsets[L.count]=X,L.startTicks[L.count]=F,L.count++;n.cap(O.jl+O.Gf,O.duration)}}this.B=null}}; g.h.N2=function(l,n,O,L){for(var X=[],F=l;F<=this.index.G2();F++){var x=MS(this.index.tQ(F),Nv5(this.index,F)),Z=this.index.getStartTime(F),J=this.index.getDuration(F),w=Math.max(0,n-x.start),H=Math.min(x.end+1,n+O)-(x.start+w);X.push(new es(3,this,x,"getRequestInfoForRange",F,Z,J,w,H,void 0,void 0,L));if(x.start+w+H>=n+O)break}X.length||g.Ir(new g.at("b189619593",""+l,""+n,""+O));return new $z(X)}; g.h.zd=function(l){for(var n=this.tK(l.info),O=l.info.range.start+l.info.W,L=[],X=0;X<n.length;X++){var F=Wa(l.S,n[X].range.start+n[X].W-O,n[X].N);L.push(new tW(n[X],F))}return L}; g.h.tK=function(l){for(var n=l.range.start+l.W,O=0;O<this.index.G2()&&n>=this.index.tQ(O+1);)O++;return this.N2(O,n,l.N).Z2}; g.h.NI=function(l){l.pM();return this.y4()?!0:l.range.end+1<this.info.contentLength}; g.h.GW=function(l,n){this.NI(l);if(!this.y4())return n=MS(l.range.end+1,n),n.end+1>this.info.contentLength&&(n=new kz(n.start,this.info.contentLength-1)),new $z([new es(4,l.S,n,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,l.clipId)]);l.type===4&&(l=this.tK(l),l=l[l.length-1]);var O=0,L=l.range.start+l.W+l.N;l.type===3&&(l.pM(),O=l.Ef,L===l.range.end+1&&(O+=1));return this.N2(O,L,n)}; g.h.fS=function(){return null}; g.h.Gj=function(l,n,O){n=n===void 0?!1:n;l=this.index.Qb(l);n&&(l=Math.min(this.index.G2(),l+1));return this.N2(l,this.index.tQ(l),0,O)}; g.h.I7=function(){return!0}; g.h.Md=function(){return!0}; g.h.Rb=function(){return!1}; g.h.Io=function(){return this.indexRange.length+this.initRange.length}; g.h.u7=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var R9={},cY7=(R9.COLOR_PRIMARIES_BT709="bt709",R9.COLOR_PRIMARIES_BT2020="bt2020",R9.COLOR_PRIMARIES_UNKNOWN=null,R9.COLOR_PRIMARIES_UNSPECIFIED=null,R9),Cg={},qv8=(Cg.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Cg.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Cg.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Cg.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Cg.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Cg.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Cg);g.FD.prototype.getName=function(){return this.name}; g.FD.prototype.getId=function(){return this.id}; g.FD.prototype.getIsDefault=function(){return this.isDefault}; g.FD.prototype.toString=function(){return this.name}; g.FD.prototype.getName=g.FD.prototype.getName;g.FD.prototype.getId=g.FD.prototype.getId;g.FD.prototype.getIsDefault=g.FD.prototype.getIsDefault;var Q1i=/action_display_post/;var eXe,Z6,Ja;g.u(wC,g.hj);g.h=wC.prototype;g.h.isLoading=function(){return this.state===1}; g.h.Ad=function(){return this.state===3}; g.h.Cf2=function(l){var n=l.getElementsByTagName("Representation");if(l.getElementsByTagName("SegmentList").length>0||l.getElementsByTagName("SegmentTemplate").length>0){this.tA=this.W=!0;this.timeline||(this.timeline=new Fh7);JYk(this.timeline,l);this.publish("refresh");for(l=0;l<n.length;l++){var O=Khi(this,n[l]);if(!this.S[O.id]){var L=Uk(pd(n[l],"BaseURL").textContent),X=pd(n[l],"Initialization"),F=Ss(X,"sourceURL");X=y4(Ss(X,"range"));this.S[O.id]=new zt(L,O,F,X)}O=this.S[O.id];L=Ss(n[l],"id", "AdaptationSet");L=L!==""?L:Ss(n[l],"mimetype","AdaptationSet");F=this.timeline;F=F.N[O.info.id]||F.W[L]||F.S||null;L=F.S;!this.T&&F.getStreamTimeOffset()&&(this.T=F.getStreamTimeOffset());if(F.B){X=[];L=g.P(L);for(var x=L.next();!x.done;x=L.next()){x=x.value;var Z=O.info.id,J=O.info.Sv*8,w=x.Ef;var H=x.startSecs;var A=F.T.split("$$");for(var b=0;b<A.length;b++)A[b]=A[b].replace("$RepresentationID$",Z),A[b]=A[b].replace("$Number$",w.toString()),A[b]=A[b].replace("$Bandwidth$",J.toString()),A[b]=A[b].replace("$Time$", H.toString());X.push(new Me(x.Ef,x.startSecs,x.HM,x.S,A.join("$"),null,x.W))}L=X}else{F=Xz(pd(n[l],"SegmentList").getElementsByTagName("SegmentURL"),F.V);X=[];for(x=0;x<F.length;x++){Z=X;J=Z.push;w=L[x];H=void 0;b=F[x];A=b.getAttribute("media");if(b=b.getAttribute("mediaRange")){var r=b.split("-");r[1]&&Number(r[1])>=0?H=y4(b):A=A+"?range="+b}J.call(Z,new Me(w.Ef,w.startSecs,w.HM,w.S,A,H,w.W))}L=X}O.update(L,this.isLive,this.G3)}w6v(this.timeline);return!0}this.duration=Lhv(Ss(l,"mediaPresentationDuration")); a:{for(l=0;l<n.length;l++){F=n[l];O=Khi(this,F);L=Uk(pd(F,"BaseURL").textContent);X=pd(F,"SegmentBase");F=y4(X.attributes.getNamedItem("indexRange").value);X=y4(X.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);O=new oS(L,O,X,F);if(!O){n=!1;break a}ha(this,O)}n=!0}return n}; g.h.refresh=function(){if(!this.isLoading()&&!this.JG()){var l=g.pr(this.sourceUrl,{start_seq:vGq(this).toString()});RX9(this,l).O9(function(){})}}; g.h.resume=function(){aAi(this)}; g.h.w8=function(){if(this.isManifestless&&this.L&&Pz(this))return Pz(this);var l=this.S,n=!1,O=NaN,L=NaN,X;for(X in l){var F=l[X],x=F.index;x.isLoaded()&&!L5(F.info.mimeType)&&(F.L&&(n=!0),x=x.y$(),F.info.vM()&&(isNaN(O)||x<O)?O=x:F.info.RR()&&(isNaN(L)||x<L)&&(L=x))}return n||isNaN(L)?O:Math.min(O,L)}; g.h.i5=function(){if(this.isManifestless){if(TI(this))return TI(this);if(this.q5){var l=this.Ko(this.w8());if(l&&(l-=this.q5,l>0))return this.w8()-l}}l=this.S;for(var n in l){var O=l[n].index;if(O.isLoaded()&&!L5(l[n].info.mimeType))return O.i5()}return 0}; g.h.getStreamTimeOffset=function(){return this.T}; g.h.Ko=function(l){for(var n in this.S){var O=this.S[n].index;if(O.isLoaded()){var L=O.Qb(l),X=O.Ko(L);if(X)return X+l-O.getStartTime(L)}}return NaN}; var kY=null,fZc,yY=!((fZc=navigator.mediaCapabilities)==null||!fZc.decodingInfo),fAv={commentary:1,alternate:2,dub:3,main:4};var PF=new Set,Mb=new Map;YY.prototype.clone=function(l){return new YY(this.flavor,l,this.W,this.experiments)}; YY.prototype.sC=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; YY.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 KW6={},iM=(KW6.playready=["com.youtube.playready","com.microsoft.playready"],KW6.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],KW6),td={},afv=(td.widevine="DRM_SYSTEM_WIDEVINE",td.fairplay="DRM_SYSTEM_FAIRPLAY",td.playready="DRM_SYSTEM_PLAYREADY",td),v9={},aZ1=(v9.widevine=1,v9.fairplay=2,v9.playready=3,v9);Sm.prototype.O8=function(l,n){n=n===void 0?1:n;this.qR+=n;this.W+=l;l/=n;for(var O=0;O<zI.length&&!(l<zI[O]);++O)this.S[O]+=n}; Sm.prototype.toString=function(){return""}; var zI=[20,100,500,2E3];g.h=hS5.prototype;g.h.isActive=function(){return!0}; g.h.Db=function(l,n){var O=this;if(n){var L={},X;for(X in n)L={Iq:void 0,VI:void 0},n.hasOwnProperty(X)&&(L.Iq=l.prototype[X],L.VI=n[X],l.prototype[X]=function(F){return function(){var x=g.eq.apply(0,arguments),Z=(0,g.Q_)();x=F.Iq.apply(this,x);return pG(O,x,F.VI,Z)}}(L))}}; g.h.Nl=function(l,n){if(n){var O=this,L={},X;for(X in n)L={rj:void 0,Fq:void 0},n.hasOwnProperty(X)&&(L.Fq=l.prototype[X],L.rj=n[X],l.prototype[X]=function(F){return function(){var x=g.eq.apply(0,arguments),Z=this,J=(0,g.Q_)(),w=F.Fq.apply(Z,x);return pG(O,w,null,J,function(H){return F.rj.apply(Z,[H].concat(x))})}}(L))}}; g.h.VD=function(l,n){var O=this;return function(){var L=g.eq.apply(0,arguments),X=(0,g.Q_)();L=n.apply(null,L);return pG(O,L,l,X)}}; g.h.xp=function(){return new xIe}; g.h.wT=function(l,n,O){O=O===void 0?1:O;n instanceof xIe&&(ZXa(this,l,(0,g.Q_)()-n.startTimeMs,O),n.S=!0)}; g.h.bW=function(l,n){var O=(0,g.Q_)();n=n();return pG(this,n,l,O)}; g.h.xO=function(){var l={},n;for(n in this.S)if(this.S.hasOwnProperty(n)){var O=this.S[n];if(O.qR===0)O=null;else{for(var L=Math.ceil(O.qR).toFixed(0)+"."+O.W.toFixed(0),X=0;X<zI.length;++X)if(O.S[X]>0)L+="."+zI[X].toFixed(0)+"_"+O.S[X].toFixed(0);else break;O=L}O&&(l[n]=O)}this.S=new F6a;return l}; g.h.toString=function(){return""};g.h=HXi.prototype;g.h.isActive=function(){return!1}; g.h.Db=function(){}; g.h.Nl=function(){}; g.h.VD=function(l,n){return n}; g.h.xp=function(){}; g.h.wT=function(){}; g.h.bW=function(l,n){return n()}; g.h.xO=function(){return{}}; g.h.toString=function(){return""};var lP,RQ6,C3D,toR,v6D,lN1,n9,YV,lY,HZa,aS;lP=new HXi;RQ6=!!+Cx("html5_enable_profiler");C3D=!!+Cx("html5_onesie_enable_profiler");toR=!!+Cx("html5_offline_encryption_enable_profiler");v6D=!!+Cx("html5_performance_impact_profiling_timer_ms");lN1=!!+Cx("html5_drm_enable_profiler");n9=RQ6||C3D||toR||v6D||lN1?new hS5:lP;g.Bl=RQ6?n9:lP;YV=C3D?n9:lP;lY=toR?n9:lP;HZa=v6D?n9:lP;aS=lN1?n9:lP;var KG;g.u(sk,g.V); sk.prototype.initialize=function(l,n){for(var O=this,L=g.P(Object.keys(l)),X=L.next();!X.done;X=L.next()){X=g.P(l[X.value]);for(var F=X.next();!F.done;F=X.next())if(F=F.value,F.UK)for(var x=g.P(Object.keys(F.UK)),Z=x.next();!Z.done;Z=x.next()){var J=Z.value;Z=J;J=iM[J];!J&&this.J("html5_enable_vp9_fairplay")&&Z==="fairplay"&&(J=["com.youtube.fairplay.sbdl"]);if(J){J=g.P(J);for(var w=J.next();!w.done;w=J.next())w=w.value,this.N[w]=this.N[w]||new YY(Z,w,F.UK[Z],this.rq.experiments),this.S[Z]=this.S[Z]|| {},this.S[Z][F.mimeType]=!0}}}fh()&&(this.N["com.youtube.fairplay"]=new YY("fairplay","com.youtube.fairplay","",this.rq.experiments),this.J("html5_enable_vp9_fairplay")||(this.S.fairplay=this.S.fairplay||{},this.S.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.S.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=oXa(n,this.useCobaltWidevine,this.J("html5_enable_safari_fairplay"),this.J("html5_enable_vp9_fairplay")).filter(function(H){return!!O.N[H]})}; sk.prototype.J=function(l){return this.rq.experiments.MQ(l)};var nMF={"":"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"};TXf.prototype.J=function(l){return this.experiments.MQ(l)};var tcg={RED:"red",Ypf:"white"};W6v.prototype.MQ=function(l){l=this.flags[l];JSON.stringify(l);return l==="true"};var DI5=Promise.resolve(),Mc8=window.queueMicrotask?window.queueMicrotask.bind(window):qza;vz.prototype.canPlayType=function(l,n){l=l.canPlayType?l.canPlayType(n):!1;aZ?l=l||OUu[n]:YJ===2.2?l=l||gM1[n]:ph()&&(l=l||LPR[n]);return!!l}; vz.prototype.isTypeSupported=function(l){return this.NQ?window.cast.receiver.platform.canDisplayType(l):m8(l)}; var gM1={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},LPR={"application/x-mpegURL":"maybe"},OUu={"application/x-mpegURL":"maybe"};g.u(Lw,g.hj);Lw.prototype.add=function(l,n){if(!this.items[l]&&(n.XQ||n.hH||n.C3)){var O=this.items,L=n;Object.isFrozen&&!Object.isFrozen(n)&&(L=Object.create(n),Object.freeze(L));O[l]=L;this.publish("vast_info_card_add",l)}}; Lw.prototype.remove=function(l){var n=this.get(l);delete this.items[l];return n}; Lw.prototype.get=function(l){return this.items[l]||null}; Lw.prototype.isEmpty=function(){return g.Qj(this.items)};g.u(X$,g.Nm);X$.prototype.S=function(l,n){return g.Nm.prototype.S.call(this,l,n)}; X$.prototype.W=function(l,n,O){var L=this;return g.Y(function(X){return X.S==1?g.Q(X,g.Nm.prototype.W.call(L,l,n,O),2):X.return(X.W)})}; g.u(o5,g.D4);o5.prototype.encrypt=function(l,n){return g.D4.prototype.encrypt.call(this,l,n)};var xJ;ht.prototype.add=function(l){if(this.pos+20>this.data.length){var n=new Uint8Array(this.data.length*2);n.set(this.data);this.data=n}for(;l>31;)this.data[this.pos++]=xJ[(l&31)+32],l>>=5;this.data[this.pos++]=xJ[l|0]}; ht.prototype.OP=function(){return g.MT(this.data.subarray(0,this.pos))}; ht.prototype.reset=function(){this.pos=0};Jt.prototype.Zm=function(l,n){var O=Math.pow(this.alpha,l);this.S=n*(1-O)+O*this.S;this.W+=l}; Jt.prototype.sP=function(){return this.S/(1-Math.pow(this.alpha,this.W))};wn.prototype.Zm=function(l,n){for(var O=0;O<10;O++){var L=this.S[O],X=L+(O===0?l:0),F=1*Math.pow(2,O);if(X<=F)break;L=Math.min(1,(X-F*.5)/L);for(X=0;X<16;X++)F=this.values[O*16+X]*L,this.values[(O+1)*16+X]+=F,this.S[O+1]+=F,this.values[O*16+X]-=F,this.S[O]-=F}L=O=0;X=8192;n>8192&&(O=Math.ceil(Math.log(n/8192)/Math.log(2)),L=8192*Math.pow(2,O-1),X=L*2);O+2>16?this.values[15]+=l:(n=(n-L)/(X-L),this.values[O]+=l*(1-n),this.values[O+1]+=l*n);this.S[0]+=l}; wn.prototype.sP=function(){var l=l===void 0?this.W:l;var n=n===void 0?.02:n;var O=O===void 0?.98:O;for(var L=this.N,X=0;X<16;X++)L[X]=this.values[X];X=this.S[0];for(var F=1;F<11;F++){var x=this.S[F];if(x===0)break;for(var Z=Math.min(1,(l-X)/x),J=0;J<16;J++)L[J]+=this.values[F*16+J]*Z;X+=x*Z;if(Z<1)break}for(F=l=x=0;F<16;F++){Z=x+L[F]/X;l+=Math.max(0,Math.min(Z,O)-Math.max(x,n))*(F>0?8192*Math.pow(2,F-1):0);if(Z>O)break;x=Z}return l/(O-n)};HI.prototype.Zm=function(l,n){l=Math.min(this.S,Math.max(1,Math.round(l*this.resolution)));l+this.W>=this.S&&(this.N=!0);for(;l--;)this.values[this.W]=n,this.W=(this.W+1)%this.S;this.X6=!0}; HI.prototype.percentile=function(l){var n=this;if(!this.N&&this.W===0)return 0;this.X6&&(g.ZI(this.B,function(O,L){return n.values[O]-n.values[L]}),this.X6=!1); return this.values[this.B[Math.round(l*((this.N?this.S:this.W)-1))]]||0}; HI.prototype.sP=function(){return this.V?(this.percentile(this.L-this.V)+this.percentile(this.L)+this.percentile(this.L+this.V))/3:this.percentile(this.L)};g.u(At,g.V);At.prototype.Pm=function(){var l;(l=this.wq)==null||l.start();if(EI(this)&&this.policy.G){var n;(n=this.AC)==null||n.VJ()}};zSi.prototype.J=function(l){return this.experiments.MQ(l)};g.u(pG5,g.V);var CL7="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),g45={Maf:"caoe",fmF:"capsv",vVo:"cbrand",oVo:"cbr",hd2:"cbrver",Hep:"cchip",TaF:"ccappver",tD1:"ccrv",JZq:"cfrmver",NAo:"c",oaf:"cver",vao:"ctheme",s_o:"cplayer",NJG:"cmodel",Dqz:"cnetwork",zXi:"cos",E6G:"cosver",yQ2:"cplatform",Wgo:"crqyear"};g.u(iO,g.V);g.h=iO.prototype;g.h.J=function(l){return this.experiments.MQ(l)}; g.h.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.h.getVideoUrl=function(l,n,O,L,X,F,x){n={list:n};O&&(X?n.time_continue=O:n.t=O);O=x?"music.youtube.com":g.SV(this);X=O==="www.youtube.com";!F&&L&&X?F="https://youtu.be/"+l:g.mX(this)?(F="https://"+O+"/fire",n.v=l):(F&&X?(F=this.protocol+"://"+O+"/shorts/"+l,L&&(n.feature="share")):(F=this.protocol+"://"+O+"/watch",n.v=l),aZ&&(l=iQi())&&(n.ebc=l));return g.pr(F,n)}; g.h.getVideoEmbedCode=function(l,n,O,L){n="https://"+g.SV(this)+"/embed/"+n;L&&(n=g.pr(n,{list:L}));L=O.width;O=O.height;n=tp(n);l=tp(l!=null?l:"YouTube video player");return'<iframe width="'+L+'" height="'+O+'" src="'+n+'" title="'+(l+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')}; g.h.supportsGaplessAudio=function(){return g.G2&&!aZ&&zj()>=74||g.Bz&&g.ua(68)?!0:!1}; g.h.supportsGaplessShorts=function(){return!this.J("html5_enable_short_gapless")||this.Fi||g.Wo?!1:!0}; g.h.getPlayerType=function(){return this.S.cplayer}; g.h.AA=function(){return this.At}; var Fgk=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],OSi=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],X0v=[19];var Os={},ZSk=(Os["140"]={numChannels:2},Os["141"]={numChannels:2},Os["251"]={audioSampleRate:48E3,numChannels:2},Os["774"]={audioSampleRate:48E3,numChannels:2},Os["380"]={numChannels:6},Os["328"]={numChannels:6},Os["773"]={},Os),gG={},xag=(gG["1"]='video/mp4; codecs="av01.0.08M.08"',gG["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',gG["1e"]='video/mp4; codecs="av01.0.08M.08"',gG["9"]='video/webm; codecs="vp9"',gG["("]='video/webm; codecs="vp9"',gG["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', gG.h='video/mp4; codecs="avc1.64001e"',gG.H='video/mp4; codecs="avc1.64001e"',gG.o='audio/webm; codecs="opus"',gG.a='audio/mp4; codecs="mp4a.40.2"',gG.ah='audio/mp4; codecs="mp4a.40.2"',gG.mac3='audio/mp4; codecs="ac-3"; channels=6',gG.meac3='audio/mp4; codecs="ec-3"; channels=6',gG.i='audio/mp4; codecs="iamf.001.001.Opus"',gG),L9={},hui=(L9["337"]={width:3840,height:2160,bitrate:3E7,fps:30},L9["336"]={width:2560,height:1440,bitrate:15E6,fps:30},L9["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, L9["702"]={width:7680,height:4320,bitrate:4E7,fps:60},L9["701"]={width:3840,height:2160,bitrate:2E7,fps:60},L9["700"]={width:2560,height:1440,bitrate:1E7,fps:60},L9["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},L9["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},L9["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},L9["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, L9["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},L9["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},L9["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},L9["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},L9["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},L9["315"]={width:3840,height:2160,bitrate:2E7,fps:60},L9["308"]={width:2560, height:1440,bitrate:1E7,fps:60},L9["303"]={width:1920,height:1080,bitrate:5E6,fps:60},L9["302"]={width:1280,height:720,bitrate:25E5,fps:60},L9["299"]={width:1920,height:1080,bitrate:75E5,fps:60},L9["298"]={width:1280,height:720,bitrate:35E5,fps:60},L9["571"]={width:7680,height:4320,bitrate:3E7,fps:60},L9["401"]={width:3840,height:2160,bitrate:15E6,fps:60},L9["400"]={width:2560,height:1440,bitrate:75E5,fps:60},L9["399"]={width:1920,height:1080,bitrate:2E6,fps:60},L9["398"]={width:1280,height:720,bitrate:1E6, fps:60},L9["397"]={width:854,height:480,bitrate:4E5,fps:30},L9["396"]={width:640,height:360,bitrate:25E4,fps:30},L9["787"]={width:1080,height:608,bitrate:2E5,fps:30},L9["788"]={width:1080,height:608,bitrate:4E5,fps:30},L9["572"]={width:7680,height:4320,bitrate:3E7,fps:60},L9["555"]={width:3840,height:2160,bitrate:15E6,fps:60},L9["554"]={width:2560,height:1440,bitrate:75E5,fps:60},L9["553"]={width:1920,height:1080,bitrate:2E6,fps:60},L9["552"]={width:1280,height:720,bitrate:1E6,fps:60},L9["551"]={width:854, height:480,bitrate:4E5,fps:30},L9["550"]={width:640,height:360,bitrate:25E4,fps:30},L9["313"]={width:3840,height:2160,bitrate:8E6,fps:30},L9["271"]={width:2560,height:1440,bitrate:4E6,fps:30},L9["248"]={width:1920,height:1080,bitrate:2E6,fps:30},L9["247"]={width:1280,height:720,bitrate:15E5,fps:30},L9["244"]={width:854,height:480,bitrate:52E4,fps:30},L9["243"]={width:640,height:360,bitrate:28E4,fps:30},L9["137"]={width:1920,height:1080,bitrate:4E6,fps:30},L9["136"]={width:1280,height:720,bitrate:3E6, fps:30},L9["135"]={width:854,height:480,bitrate:1E6,fps:30},L9["385"]={width:1920,height:1080,bitrate:6503313,fps:60},L9["376"]={width:1280,height:720,bitrate:5706960,fps:60},L9["384"]={width:1280,height:720,bitrate:3660979,fps:60},L9["225"]={width:1280,height:720,bitrate:5805E3,fps:30},L9["224"]={width:1280,height:720,bitrate:453E4,fps:30},L9["145"]={width:1280,height:720,bitrate:2682052,fps:30},L9);g.h=o4.prototype;g.h.getInfo=function(){return this.S}; g.h.b2=function(){return null}; g.h.Qe=function(){var l=this.b2();return l?(l=g.oT(l.Vp),Number(l.expire)):NaN}; g.h.Kl=function(){}; g.h.getHeight=function(){return this.S.video.height};A$7.prototype.build=function(){Uaa(this);var l=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],n={};a:if(this.S)var O=this.S;else{O="";for(var L=g.P(this.N),X=L.next();!X.done;X=L.next())if(X=X.value,X.O_){if(X.O_.getIsDefault()){O=X.O_.getId();break a}O||(O=X.O_.getId())}}L=g.P(this.N);for(X=L.next();!X.done;X=L.next())if(X=X.value,this.V||!X.O_||X.O_.getId()===O)n[X.itag]||(n[X.itag]=[]),n[X.itag].push(X);O=g.P(this.W);for(L=O.next();!L.done;L=O.next())if(L=L.value,X=n[L.S]){X=g.P(X);for(var F=X.next();!F.done;F= X.next()){var x=l,Z=x.push;F=F.value;var J="#EXT-X-MEDIA:TYPE=AUDIO,",w="YES",H="audio";if(F.O_){H=F.O_;var A=H.getId().split(".")[0];A&&(J+='LANGUAGE="'+A+'",');(this.S?this.S===H.getId():H.getIsDefault())||(w="NO");H=H.getName()}A="";L!==null&&(A=L.itag.toString());A=xP(this,F.url,A);J=J+('NAME="'+H+'",DEFAULT='+(w+',AUTOSELECT=YES,GROUP-ID="'))+(r$9(F,L)+'",URI="'+(A+'"'));Z.call(x,J)}}O=g.P(this.B);for(L=O.next();!L.done;L=O.next())L=L.value,X=XOc,L=(x=L.O_)?'#EXT-X-MEDIA:URI="'+xP(this,L.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+X+'",LANGUAGE="'+x.getId()+'",NAME="'+x.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,L&&l.push(L);O=this.B.length>0?XOc:void 0;L=g.P(this.W);for(X=L.next();!X.done;X=L.next())X=X.value,Z=n[X.S],x=void 0,((x=Z)==null?void 0:x.length)>0&&(x=X,Z=Z[0],Z="#EXT-X-STREAM-INF:BANDWIDTH="+(x.bitrate+Z.bitrate)+',CODECS="'+(x.codecs+","+Z.codecs+'",RESOLUTION=')+(x.width+"x"+x.height+',AUDIO="')+(r$9(Z,x)+'",')+(O?'SUBTITLES="'+O+'",':"")+"CLOSED-CAPTIONS=NONE",x.fps>1&&(Z+= ",FRAME-RATE="+x.fps),x.D8&&(Z+=",VIDEO-RANGE="+x.D8),l.push(Z),l.push(xP(this,X.url,"")));return l.join("\n")}; var XOc="text";g.u(h2,o4);h2.prototype.Qe=function(){return this.expiration}; h2.prototype.b2=function(){if(!this.Vp||this.Vp.JG()){var l=this.W.build();l="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(l);this.Vp=new P6(l)}return this.Vp};g.u(ZY,o4);ZY.prototype.b2=function(){return new P6(this.W.Ae())}; ZY.prototype.Kl=function(){this.W=kc(this.W)};g.u(J2,o4);J2.prototype.b2=function(){return new P6(this.W)};var XS={},y$5=(XS.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",XS.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",XS.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",XS);g.h=g.w7.prototype;g.h.getId=function(){return this.id}; g.h.getName=function(){return this.name}; g.h.isServable=function(){return this.S}; g.h.Ae=function(){return this.url}; g.h.getXtags=function(){return this.xtags}; g.h.toString=function(){return this.languageCode+": "+g.Hy(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.h.XT=function(l){return l?this.toString()===l.toString():!1}; g.h.MP=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var jiq={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Gde={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},maq=/^(\d*)_((\d*)_?(\d*))$/;var dav={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},$a9={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var o$={},oMu=(o$.ALWAYS=1,o$.BY_REQUEST=3,o$.UNKNOWN=void 0,o$),FS={},FPR=(FS.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",FS.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",FS.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",FS.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",FS);var ys9; ys9=function(l){for(var n=Object.keys(l),O={},L=0;L<n.length;L++){var X=n[L];typeof l[X]==="function"&&(O[X]=l[X])}var F=Object.keys(O);try{Mu8(O)}catch(Z){var x=Z}return function(Z,J){Z=Z===void 0?{}:Z;if(x)throw x;for(var w=!1,H={},A=0;A<F.length;A++){var b=F[A],r=Z[b],U=(0,O[b])(r,J);if(typeof U==="undefined")throw Z=J&&J.type,Error("When called with an action of type "+(Z?'"'+String(Z)+'"':"(unknown type)")+', the slice reducer for key "'+b+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');H[b]= U;w=w||U!==r}return(w=w||F.length!==Object.keys(Z).length)?H:Z}}({entities:function(l,n){l=l===void 0?{}:l; return Bzg(l,n)}}); g.lT=new Uf;T8.prototype.toString=function(){return this.type+this.id};g.E7.prototype.HG=function(l){l=l||"hqdefault.jpg";var n=this.Y[l];if(n)return n;if(l==="sddefault.jpg"||l==="hq720.jpg"||l==="maxresdefault.jpg")return n;if(this.S)return pw(this.rq,this.S,l)}; g.E7.prototype.XK=function(){return this.rq.getVideoUrl(this.videoId,this.playlistId)};g.NW.prototype.HG=function(l){l||(l="hqdefault.jpg");var n=this.Y[l];return n?n:l==="pop1.jpg"||l==="pop2.jpg"||l==="sddefault.jpg"||l==="hq720.jpg"||l==="maxresdefault.jpg"?n:pw(this.rq,this.videoId,l)}; g.NW.prototype.XK=function(l){return this.watchUrl||this.rq.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,l)};var kP=void 0;kn9("LMS",function(){return g.Y(function(l){return l.return(g.yJ())})});var YP;YP=0;g.o25=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;kn9("LMDB",function(){var l,n;return g.Y(function(O){if(O.S==1)return g.Q(O,g.lI(),2);if(O.S!=3){l=O.W;if(!l)throw g.N3("edd");return g.Q(O,g.eb(l),3)}n=O.W;return O.return(g.Gz(n,["index","media","captions"],{mode:"readonly",aO:!0},function(L){var X={};L=[g.V_(L.objectStore("index"),{},function(F){X[F.cursor.key]=F.getValue();return g.Bo(F)}), QK9(L.objectStore("media")),QK9(L.objectStore("captions"))];return g.q3.all(L).then(function(F){var x=g.P(F);x.next();F=x.next().value;x=x.next().value;return{index:X,media:FK8(F||[]),captions:x}})}))})});g.u(G8,g.hj);G8.prototype.oz=function(){this.S&&(this.S=this.S.onload=null);g.hj.prototype.oz.call(this)};g.h=g.$P.prototype;g.h.getHeight=function(){return this.height}; g.h.BZ=Oi(2);g.h.EQ=function(){return this.frameCount}; g.h.isDefault=function(){return this.N.indexOf("default")!==-1}; g.h.isLoaded=function(l){return this.loaded.has(l)}; g.h.Ae=function(l){var n=this.L;n=n.replace("$N",this.N);n=n.replace("$L",this.level.toString());n=n.replace("$M",l.toString());this.signature&&(n=g.pr(n,{sigh:this.signature}));return go(n)}; g.h.sJ=function(l){var n=this.EQ()-1;return g.hR(this.S===0?Math.round(l*this.frameCount/this.videoLength):Math.round(l*1E3/this.S),0,n)}; g.h.Km=function(){return this.frameCount-1}; g.h.rg=function(){return this.frameCount?0:-1}; g.h.El=function(){};g.u(VJ,G8);VJ.prototype.W=function(l,n){var O=[];l=l.split("|");for(var L=l[0],X=1;X<l.length;X++){var F=this.B(X-1,L,l[X],n);(this.T||F.getHeight()<180)&&O.push(F)}return O}; VJ.prototype.B=function(l,n,O,L){return new g.$P(l,n,O,L)};g.u(By,g.$P);g.h=By.prototype;g.h.EQ=function(){return this.W.AT()}; g.h.sJ=function(l){var n=this.rows*this.columns*this.B,O=this.W,L=O.G2();l=O.Qb(l);return l>L-n?-1:l}; g.h.Km=function(){return this.W.G2()}; g.h.rg=function(){return this.W.jF()}; g.h.El=function(l){this.W=l};g.u(cy,VJ);cy.prototype.W=function(l,n){return VJ.prototype.W.call(this,"$N|"+l,n)}; cy.prototype.B=function(l,n,O){return new By(l,n,O,this.isLive)};var WKi=[],Ky=new Set;g.u(g.z8,g.hj);g.h=g.z8.prototype; g.h.setData=function(l){l=l||{};var n=l.errordetail;n!=null&&(this.errorDetail=n);var O=l.errorcode;O!=null?this.errorCode=O:l.status==="fail"&&(this.errorCode="auth");var L=l.reason;L!=null&&(this.errorReason=L);var X=l.subreason;X!=null&&(this.y8=X);this.J("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=l.cpn||(this.rq.AA()?"r"+g.D0(15):g.D0(16)));this.Of=Li(this.rq.Of,l.livemonitor);Ale(this,l);var F=l.raw_player_response;if(F)this.w$=F;else{var x=l.player_response; x&&(F=JSON.parse(x))}if(this.J("html5_enable_ssap_entity_id")){var Z=l.cached_load;Z&&(this.fI=Li(this.fI,Z));if(!this.clientPlaybackNonce){var J=l.cpn;J?(this.Gp("ssei","shdc"),this.clientPlaybackNonce=J):this.clientPlaybackNonce=this.rq.AA()?"r"+g.D0(15):g.D0(16)}}F&&(this.playerResponse=F);if(this.playerResponse){var w=this.playerResponse.annotations;if(w)for(var H=g.P(w),A=H.next();!A.done;A=H.next()){var b=A.value.playerAnnotationsUrlsRenderer;if(b){b.adsOnly&&(this.TI=!0);var r=b.loadPolicy; r&&(this.annotationsLoadPolicy=oMu[r]);var U=b.invideoUrl;U&&(this.G3=go(U));break}}var W=this.playerResponse.attestation;W&&BR7(this,W);var N=this.playerResponse.cotn;N&&(this.cotn=N);var q=this.playerResponse.heartbeatParams;if(q){Jie(this)&&(this.Pq=!0);var y=q.heartbeatToken;y&&(this.drmSessionId=q.drmSessionId||"",this.heartbeatToken=y,this.U$=Number(q.intervalMilliseconds),this.jy=Number(q.maxRetries),this.p9=!!q.softFailOnError,this.H3=!!q.useInnertubeHeartbeatsForDrm,this.Xj=!0);this.heartbeatServerData= q.heartbeatServerData;var e;this.s8=!((e=q.heartbeatAttestationConfig)==null||!e.requiresAttestation)}var d=this.playerResponse.messages;d&&SZi(this,d);var B=this.playerResponse.overlay;if(B){var R=B.playerControlsOverlayRenderer;if(R)if(si9(this,R.controlBgHtml),R.mutedAutoplay){var a=g.z(R.mutedAutoplay,UPR);if(a&&a.endScreen){var Lv=g.z(a.endScreen,uz1);Lv&&Lv.text&&(this.WN=g.Uw(Lv.text))}}else this.mutedAutoplay=!1}var Fa=this.playerResponse.playabilityStatus;if(Fa){var l9=Fa.backgroundability; l9&&l9.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var S,v;if((S=Fa.offlineability)==null?0:(v=S.offlineabilityRenderer)==null?0:v.offlineable)this.offlineable=!0;var T=Fa.contextParams;T&&(this.contextParams=T);var p=Fa.pictureInPicture;p&&p.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Fa.playableInEmbed&&(this.allowEmbed=!0);var ce=Fa.ypcClickwrap;if(ce){var WR=ce.playerLegacyDesktopYpcClickwrapRenderer,HR=ce.ypcRentalActivationRenderer;if(WR)this.Cz=WR.durationMessage|| "",this.D9=!0;else if(HR){var y5=HR.durationMessage;this.Cz=y5?g.Uw(y5):"";this.D9=!0}}var Cv=Fa.errorScreen;if(Cv){if(Cv.playerLegacyDesktopYpcTrailerRenderer){var gD=Cv.playerLegacyDesktopYpcTrailerRenderer;this.xb=gD.trailerVideoId||"";var rD=Cv.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var D=rD&&rD.ypcTrailerRenderer}else if(Cv.playerLegacyDesktopYpcOfferRenderer)gD=Cv.playerLegacyDesktopYpcOfferRenderer;else if(Cv.ypcTrailerRenderer){D=Cv.ypcTrailerRenderer;var k=D.fullVideoMessage;this.Vz= k?g.Uw(k):"";var M,G;this.xb=((M=g.z(D,Pa1))==null?void 0:(G=M.videoDetails)==null?void 0:G.videoId)||""}gD&&(this.aP=gD.itemTitle||"",gD.itemUrl&&(this.y6=gD.itemUrl),gD.itemBuyUrl&&(this.eS=gD.itemBuyUrl),this.Xl=gD.itemThumbnail||"",this.Ph=gD.offerHeadline||"",this.yS=gD.offerDescription||"",this.Vr=gD.offerId||"",this.Fl=gD.offerButtonText||"",this.iY=gD.offerButtonFormattedText||null,this.Fj=gD.overlayDurationMsec||NaN,this.Vz=gD.fullVideoMessage||"",this.S5=!0);if(D){var I=g.z(D,Pa1);if(I)this.mN= {raw_player_response:I};else{var nv=g.z(D,eNO);this.mN=nv?Lh(nv):null}this.S5=!0}}}var Xa=this.playerResponse.playbackTracking;if(Xa){var o8=l,m=uQ(Xa.googleRemarketingUrl);m&&(this.googleRemarketingUrl=m);var Jg=uQ(Xa.youtubeRemarketingUrl);Jg&&(this.youtubeRemarketingUrl=Jg);var r9={},hg=uQ(Xa.ptrackingUrl);if(hg){var Yi=Py(hg),A0=Yi.oid;A0&&(this.sM=A0);var Vs=Yi.pltype;Vs&&(this.vN=Vs);var Hd=Yi.ptchn;Hd&&(this.N8=Hd);var pv=Yi.ptk;pv&&(this.eA=encodeURIComponent(pv));var Bd=Yi.m;Bd&&(this.Ii= Bd)}var ZN=uQ(Xa.qoeUrl);if(ZN){for(var jo=g.oT(ZN),sd=g.P(Object.keys(jo)),JR=sd.next();!JR.done;JR=sd.next()){var Sw=JR.value,cd=jo[Sw];jo[Sw]=Array.isArray(cd)?cd.join(","):cd}this.Lr=jo;var pf=jo.cat;pf&&(this.J("html5_enable_qoe_cat_list")?this.T9=this.T9.concat(pf.split(",")):this.RP=pf);var WE=jo.live;WE&&(this.zt=WE);var we=jo.drm_product;we&&(this.oh=we)}var Ge=uQ(Xa.videostatsPlaybackUrl);if(Ge){var Ah=Py(Ge),mY=Ah.adformat;if(mY){o8.adformat=mY;var IO=this.j(),dM=Iva(mY,this.oi,IO.L,IO.T); dM&&(this.adFormat=dM)}var yh=Ah.aqi;yh&&(o8.ad_query_id=yh);var vd=Ah.autoplay;vd&&(this.M3=vd=="1",this.rk=vd=="1",nF(this,"vss"));var sN=Ah.autonav;sN&&(this.isAutonav=sN=="1");var gQ=Ah.delay;gQ&&(this.K5=nJ(gQ));var qC=Ah.ei;qC&&(this.eventId=qC);if(Ah.adcontext||mY)this.M3=!0,nF(this,"ad");var ie=Ah.feature;ie&&(this.aU=ie);var Am=Ah.list;Am&&(this.playlistId=Am);var Tq=Ah.of;Tq&&(this.Xh=Tq);var W6=Ah.osid;W6&&(this.osid=W6);var Ev=Ah.referrer;Ev&&(this.referrer=Ev);var Fn=Ah.sdetail;Fn&&(this.JY= Fn);var hS=Ah.ssrt;hS&&(this.R6=hS=="1");var x5=Ah.subscribed;x5&&(this.subscribed=x5=="1",this.T.subscribed=x5);var he=Ah.uga;he&&(this.userGenderAge=he);var NB=Ah.upt;NB&&(this.tY=NB);var DA=Ah.vm;DA&&(this.videoMetadata=DA);r9.playback=Ah}var qB=uQ(Xa.videostatsWatchtimeUrl);if(qB){var kG=Py(qB),yl=kG.ald;yl&&(this.EE=yl);r9.watchtime=kG}var MB=uQ(Xa.atrUrl);if(MB){var Gy=Py(MB);r9.atr=Gy}var kK=uQ(Xa.engageUrl);if(kK){var mN=Py(kK);r9.engage=mN}this.Op=r9;if(Xa.promotedPlaybackTracking){var fJ= Xa.promotedPlaybackTracking;fJ.startUrls&&(this.pV=fJ.startUrls);fJ.firstQuartileUrls&&(this.uY=fJ.firstQuartileUrls);fJ.secondQuartileUrls&&(this.WU=fJ.secondQuartileUrls);fJ.thirdQuartileUrls&&(this.s6=fJ.thirdQuartileUrls);fJ.completeUrls&&(this.Yp=fJ.completeUrls);fJ.engagedViewUrls&&(fJ.engagedViewUrls.length>1&&g.d2(new g.at("There are more than one engaged_view_urls.")),this.AP=fJ.engagedViewUrls[0])}}var Z3=this.playerResponse.playerCueRanges;Z3&&Z3.length>0&&(this.cueRanges=Z3);var Ql=this.playerResponse.playerCueRangeSet; Ql&&g.a4(this,Ql);a:{var Je=this.playerResponse.adPlacements;if(Je)for(var eC=g.P(Je),w1=eC.next();!w1.done;w1=eC.next()){var YG=void 0,jC=void 0,Gq=(YG=w1.value.adPlacementRenderer)==null?void 0:(jC=YG.renderer)==null?void 0:jC.videoAdTrackingRenderer;if(Gq){var mh=Gq;break a}}mh=null}var Hn=mh;Xa&&Xa.promotedPlaybackTracking&&Hn&&g.d2(new g.at("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var W2;if(!(W2=Hn))a:{for(var I1=g.P(this.playerResponse.adSlots||[]), Ae=I1.next();!Ae.done;Ae=I1.next()){var bD=g.z(Ae.value,Bi);if(bD===void 0||!bu5(bD))break;var dv=void 0,IY=(dv=bD.fulfillmentContent)==null?void 0:dv.fulfilledLayout,$G=g.z(IY,eQ);if($G&&k2($G)){W2=!0;break a}}W2=!1}W2&&(this.FN=!0);var Vl=this.playerResponse.playerAds;if(Vl)for(var di=l,B6=g.P(Vl),Ex=B6.next();!Ex.done;Ex=B6.next()){var c6=Ex.value;if(c6){var it=c6.playerLegacyDesktopWatchAdsRenderer;if(it){var MC=it.playerAdParams;if(MC){MC.autoplay=="1"&&(this.rk=this.M3=!0);this.wp=MC.encodedAdSafetyReason|| null;MC.showContentThumbnail!==void 0&&(this.o_=!!MC.showContentThumbnail);di.enabled_engage_types=MC.enabledEngageTypes;break}}}}var EK=this.playerResponse.playerConfig;if(EK){var $U=EK.manifestlessWindowedLiveConfig;if($U){var zq=Number($U.minDvrSequence),r1=Number($U.maxDvrSequence),Nz=Number($U.minDvrMediaTimeMs),Dg=Number($U.maxDvrMediaTimeMs),Ug=Number($U.startWalltimeMs);zq&&(this.Jt=zq);Nz&&(this.Hm=Nz/1E3,this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&XZ(this)&&(this.IU=Nz/ 1E3));r1&&(this.HT=r1);Dg&&(this.Sz=Dg/1E3,this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&XZ(this)&&(this.vp=Dg/1E3));Ug&&(this.q5=Ug/1E3);(zq||Nz)&&(r1||Dg)&&(this.allowLiveDvr=this.isLivePlayback=this.z3=!0,this.aI=!1)}var VR=EK.daiConfig;if(VR){if(VR.enableDai){this.dB=!0;var qz=VR.enableServerStitchedDai;qz&&(this.enableServerStitchedDai=qz);var SC=VR.enablePreroll;SC&&(this.enablePreroll=SC)}var VZ;if(VR.daiType==="DAI_TYPE_SS_DISABLED"||((VZ=VR.debugInfo)==null?0:VZ.isDisabledUnpluggedChannel))this.SK= !0;VR.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.g1=!0)}var JS=EK.audioConfig;if(JS){var z_=JS.loudnessDb;z_!=null&&(this.cQ=z_);var wD7=JS.trackAbsoluteLoudnessLkfs;wD7!=null&&(this.n3=wD7);var HFe=JS.loudnessTargetLkfs;HFe!=null&&(this.loudnessTargetLkfs=HFe);JS.audioMuted&&(this.uc=!0);JS.muteOnStart&&(this.Fu=!0);var rm=JS.loudnessNormalizationConfig;if(rm){rm.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);rm.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var AA0=rm.minimumLoudnessTargetLkfs;AA0!=null&&(this.minimumLoudnessTargetLkfs=AA0);var bF5=rm.maxStatefulTimeThresholdSec;bF5!=null&&(this.maxStatefulTimeThresholdSec=bF5)}this.J("web_player_audio_playback_from_audio_config")&&JS.playAudioOnly&&(this.Oc=!0)}var HCi=EK.playbackEndConfig;if(HCi){var rAk=HCi.endSeconds,Ucg=HCi.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(rAk&&(this.endSeconds=rAk),Ucg&&(this.limitedPlaybackDurationInSeconds=Ucg))}var l5=EK.fairPlayConfig;if(l5){var uGk= l5.certificate;uGk&&(this.nf=F$(uGk));var P4f=Number(l5.keyRotationPeriodMs);P4f>0&&(this.OE=P4f);var Tj8=Number(l5.keyPrefetchMarginMs);Tj8>0&&(this.Kg=Tj8)}var tM=EK.playbackStartConfig;if(tM){this.CX=Number(tM.startSeconds);var WMe=tM.liveUtcStartSeconds,EA8=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;WMe&&!EA8&&(this.liveUtcStartSeconds=Number(WMe));var Ap5=tM.startPosition;if(Ap5){var Njv=Ap5.utcTimeMillis;Njv&&!EA8&&(this.liveUtcStartSeconds=Number(Njv)*.001);var Dc5=Ap5.streamTimeMillis; Dc5&&(this.oA=Number(Dc5)*.001)}this.progressBarStartPosition=tM.progressBarStartPosition;this.progressBarEndPosition=tM.progressBarEndPosition}else{var bC7=EK.skippableSegmentsConfig;if(bC7){var qY0=bC7.introSkipDurationMs;qY0&&(this.Up=Number(qY0)/1E3);var kMf=bC7.outroSkipDurationMs;kMf&&(this.aZ=Number(kMf)/1E3)}}var rpv=EK.skippableIntroConfig;if(rpv){var yA5=Number(rpv.startMs),MRv=Number(rpv.endMs);isNaN(yA5)||isNaN(MRv)||(this.X$=yA5,this.OU=MRv)}var Qck=EK.streamSelectionConfig;Qck&&(this.z$= Number(Qck.maxBitrate));var eHa=EK.vrConfig;eHa&&(this.m8=eHa.partialSpherical=="1");var Uc=EK.webDrmConfig;if(Uc){Uc.skipWidevine&&(this.FF=!0);var YY9=Uc.widevineServiceCert;YY9&&(this.CZ=F$(YY9));Uc.useCobaltWidevine&&(this.useCobaltWidevine=!0);Uc.startWithNoQualityConstraint&&(this.hZ=!0)}var RU=EK.mediaCommonConfig;if(RU){var n3=RU.dynamicReadaheadConfig;if(n3){this.maxReadAheadMediaTimeMs=n3.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=n3.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= n3.readAheadGrowthRateMs||NaN;var jcg,GMv=RU==null?void 0:(jcg=RU.mediaUstreamerRequestConfig)==null?void 0:jcg.videoPlaybackUstreamerConfig;GMv&&(this.iJ=F$(GMv));var ULi=RU==null?void 0:RU.sabrContextUpdates;if(ULi&&ULi.length>0)for(var mc9=g.P(ULi),u_v=mc9.next();!u_v.done;u_v=mc9.next()){var rz=u_v.value;if(rz.type&&rz.value){var UHi={type:rz.type,scope:rz.scope,value:F$(rz.value)||void 0,sendByDefault:rz.sendByDefault};this.sabrContextUpdates.set(rz.type,UHi)}}}var IQ5=RU.serverPlaybackStartConfig; IQ5&&(this.serverPlaybackStartConfig=IQ5);RU.useServerDrivenAbr&&(this.LZ=!0);var dcv=RU.requestPipeliningConfig;dcv&&(this.requestPipeliningConfig=dcv)}var $c9=EK.inlinePlaybackConfig;$c9&&(this.AB=!!$c9.showAudioControls);var OD=EK.embeddedPlayerConfig;if(OD){this.embeddedPlayerConfig=OD;var P_g=OD.embeddedPlayerMode;if(P_g){var VR5=this.j();VR5.Lf=P_g;VR5.N=P_g==="EMBEDDED_PLAYER_MODE_PFL"}var Bjq=OD.permissions;Bjq&&(this.allowImaMonetization=!!Bjq.allowImaMonetization)}var cAq=EK.ssapConfig; cAq&&(this.jj=cAq.ssapPrerollEnabled||!1);var gu=EK.webPlayerConfig;gu&&(gu.gatewayExperimentGroup&&(this.gatewayExperimentGroup=gu.gatewayExperimentGroup),gu.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var C7=this.playerResponse.streamingData;if(C7){var TYg=C7.formats;if(TYg){for(var u6=[],iFq=g.P(TYg),Wv9=iFq.next();!Wv9.done;Wv9=iFq.next()){var Euv=Wv9.value;u6.push(Euv.itag+"/"+Euv.width+"x"+Euv.height)}this.Pt=u6.join(",");u6=[];for(var zHg=g.P(TYg),NYi=zHg.next();!NYi.done;NYi=zHg.next()){var Pi= NYi.value,Tb={itag:Pi.itag,type:Pi.mimeType,quality:Pi.quality},SYi=Pi.url;SYi&&(Tb.url=SYi);var L3=yT(Pi),uis=L3.x8,Pei=L3.lq,TLF=L3.s;L3.x0&&(Tb.url=uis,Tb.sp=Pei,Tb.s=TLF);u6.push(g.Sj(Tb))}this.kY=u6.join(",")}var DLk=C7.hlsFormats;if(DLk){var pD5=EK||null,XA={};if(pD5){var qMf=pD5.audioPairingConfig;if(qMf&&qMf.pairs)for(var sc5=g.P(qMf.pairs),klk=sc5.next();!klk.done;klk=sc5.next()){var fQa=klk.value,ypk=fQa.videoItag;XA[ypk]||(XA[ypk]=[]);XA[ypk].push(fQa.audioItag)}}for(var KMi={},aQ0=g.P(DLk), M8i=aQ0.next();!M8i.done;M8i=aQ0.next()){var RHg=M8i.value;KMi[RHg.itag]=RHg.bitrate}for(var C4i=[],tRk=g.P(DLk),QWf=tRk.next();!QWf.done;QWf=tRk.next()){var nr=QWf.value,yp={itag:nr.itag,type:nr.mimeType,url:nr.url,bitrate:nr.bitrate,width:nr.width,height:nr.height,fps:nr.fps},oG=nr.audioTrack;if(oG){var vA5=oG.displayName;vA5&&(yp.name=vA5,yp.audio_track_id=oG.id,oG.audioIsDefault&&(yp.is_default="1"))}if(nr.drmFamilies){for(var lK9=[],ne0=g.P(nr.drmFamilies),em0=ne0.next();!em0.done;em0=ne0.next())lK9.push(Aa[em0.value]); yp.drm_families=lK9.join(",")}var FA=XA[nr.itag];if(FA&&FA.length){yp.audio_itag=FA.join(",");var Oe7=KMi[FA[0]];Oe7&&(yp.bitrate+=Oe7)}var gea=kqf(nr);gea&&(yp.eotf=gea);nr.audioChannels&&(yp.audio_channels=nr.audioChannels);C4i.push(g.Sj(yp))}this.hlsFormats=C4i.join(",")}var YM9=C7.licenseInfos;if(YM9&&YM9.length>0){for(var LLi={},XNg=g.P(YM9),jW0=XNg.next();!jW0.done;jW0=XNg.next()){var oev=jW0.value,FLq=oev.drmFamily,x$e=oev.url;FLq&&x$e&&(LLi[Aa[FLq]]=x$e)}this.UK=LLi}var hJv=C7.drmParams;hJv&& (this.drmParams=hJv);var Zei=C7.dashManifestUrl;Zei&&(this.M5=g.pr(Zei,{cpn:this.clientPlaybackNonce}));var J77=C7.hlsManifestUrl;J77&&(this.hlsvp=J77);var wNi=C7.probeUrl;wNi&&(this.probeUrl=go(g.pr(wNi,{cpn:this.clientPlaybackNonce})));var Heq=C7.serverAbrStreamingUrl;Heq&&(this.Z$=new g.WW(Heq,!0))}var A79=this.playerResponse.trackingParams;A79&&(this.Cf=A79);var Km=this.playerResponse.videoDetails;if(Km){var M4=l,Glv=Km.videoId;Glv&&(this.videoId=Glv,M4.video_id||(M4.video_id=Glv));var be9=Km.channelId; be9&&(this.T.uid=be9.substring(2));var mLi=Km.title;mLi&&(this.title=mLi,M4.title||(M4.title=mLi));var Iei=Km.lengthSeconds;Iei&&(this.lengthSeconds=Number(Iei),M4.length_seconds||(M4.length_seconds=Iei));var r7a=Km.keywords;r7a&&(this.keywords=P60(r7a));var dLg=Km.channelId;dLg&&(this.dJ=dLg,M4.ucid||(M4.ucid=dLg));var U$q=Km.viewCount;U$q&&(this.rawViewCount=Number(U$q));var $L8=Km.author;$L8&&(this.author=$L8,M4.author||(M4.author=$L8));var uoe=Km.shortDescription;uoe&&(this.shortDescription=uoe); var Pg9=Km.isCrawlable;Pg9&&(this.isListed=Pg9);var Tki=Km.musicVideoType;Tki&&(this.musicVideoType=Tki);var V80=Km.isLive;V80!=null&&(this.isLivePlayback=V80);if(V80||Km.isUpcoming)this.isPremiere=!Km.isLiveContent;var WL9=Km.thumbnail;WL9&&(this.Y=U7(WL9));var Eeg=Km.isExternallyHostedPodcast;Eeg&&(this.isExternallyHostedPodcast=Eeg);var BY7=Km.viewerLivestreamJoinPosition;if(BY7==null?0:BY7.utcTimeMillis)this.Ri=nJ(BY7.utcTimeMillis);var Nk0=EK||null,cpv=l;Km.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= !0);Km.isUpcoming&&(this.isUpcoming=!0);if(Km.isPostLiveDvr){this.aI=!0;var D$9=Km.latencyClass;D$9&&(this.latencyClass=FPR[D$9]||"UNKNOWN");Km.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var iC9=!1;this.Of?(this.allowLiveDvr=nw()?!0:tP&&v8<5?!1:!0,this.isLivePlayback=!0):Km.isLive?(cpv.livestream="1",this.allowLiveDvr=Km.isLiveDvrEnabled?nw()?!0:tP&&v8<5?!1:!0:!1,this.partnerId=27,iC9=!0):Km.isUpcoming&&(iC9=!0);if(Km.isLive||this.Of&&this.J("html5_parse_live_monitor_flags")){Km.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var q3e=Km.latencyClass;q3e&&(this.latencyClass=FPR[q3e]||"UNKNOWN");var kTk=Km.liveChunkReadahead;kTk&&(this.liveChunkReadahead=kTk);var va=Nk0&&Nk0.livePlayerConfig;if(va){va.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);va.hasSubfragmentedWebm&&(this.DA=!0);va.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var y7g=va.liveExperimentalContentId;y7g&&(this.liveExperimentalContentId=Number(y7g));var Mx0=va.isLiveHeadPlayable;this.J("html5_live_head_playable")&& Mx0!=null&&(this.isLiveHeadPlayable=Mx0)}}iC9&&(this.isLivePlayback=!0,cpv.adformat&&cpv.adformat.split("_")[1]!=="8"||this.Lf.push("heartbeat"),this.Xj=!0)}var Qqf=Km.isPrivate;Qqf!==void 0&&(this.isPrivate=Li(this.isPrivate,Qqf))}if(Fa){var eJa=Km||null,Y38=!1,lB=Fa.errorScreen;Y38=lB&&(lB.playerLegacyDesktopYpcOfferRenderer||lB.playerLegacyDesktopYpcTrailerRenderer||lB.ypcTrailerRenderer)?!0:eJa&&eJa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Fa.status);if(!Y38){this.errorCode= MPi(Fa.errorCode)||"auth";var xN=lB&&lB.playerErrorMessageRenderer;if(xN){this.playerErrorMessageRenderer=xN;var jqe=xN.reason;jqe&&(this.errorReason=g.Uw(jqe));var zm9=xN.subreason;zm9&&(this.y8=g.Uw(zm9),this.rF=zm9)}else this.errorReason=Fa.reason||null;var SM0=Fa.status;if(SM0==="LOGIN_REQUIRED")this.errorDetail="1";else if(SM0==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(SM0==="AGE_CHECK_REQUIRED"){var GT0=Fa.errorScreen,m$0=GT0&>0.playerKavRenderer;this.errorDetail=m$0&&m$0.kavUrl? "4":"3"}else this.errorDetail=Fa.isBlockedInRestrictedMode?"5":"0"}}var IKi=this.playerResponse.interstitialPods;IKi&&zu9(this,IKi);this.G3&&this.eventId&&(this.G3=xp(this.G3,{ei:this.eventId}));var p3f=this.playerResponse.captions;if(p3f&&p3f.playerCaptionsTracklistRenderer)a:{var Qp=p3f.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Qp.captionTracks)for(var d$0=g.P(Qp.captionTracks),sWk=d$0.next();!sWk.done;sWk=d$0.next()){var ez=sWk.value,$$i=rli(ez.baseUrl);if(!$$i)break a;var fek={is_translateable:!!ez.isTranslatable, languageCode:ez.languageCode,languageName:ez.name&&g.Uw(ez.name),url:$$i,vss_id:ez.vssId,kind:ez.kind};fek.name=ez.trackName;fek.displayName=ez.name&&g.Uw(ez.name);this.captionTracks.push(new g.w7(fek))}this.mx=Qp.audioTracks||[];this.YD=Qp.defaultAudioTrackIndex||0;this.F_=[];if(Qp.translationLanguages)for(var Vxk=g.P(Qp.translationLanguages),Kv9=Vxk.next();!Kv9.done;Kv9=Vxk.next()){var n0=Kv9.value,UG={};UG.languageCode=n0.languageCode;UG.languageName=g.Uw(n0.languageName);if(n0.translationSourceTrackIndices){UG.translationSourceTrackIndices= [];for(var Bki=g.P(n0.translationSourceTrackIndices),aea=Bki.next();!aea.done;aea=Bki.next())UG.translationSourceTrackIndices.push(aea.value)}if(n0.excludeAudioTrackIndices){UG.excludeAudioTrackIndices=[];for(var c79=g.P(n0.excludeAudioTrackIndices),Rm5=c79.next();!Rm5.done;Rm5=c79.next())UG.excludeAudioTrackIndices.push(Rm5.value)}this.F_.push(UG)}this.D5=[];if(Qp.defaultTranslationSourceTrackIndices)for(var ie7=g.P(Qp.defaultTranslationSourceTrackIndices),C_5=ie7.next();!C_5.done;C_5=ie7.next())this.D5.push(C_5.value); this.yh=!!Qp.contribute&&!!Qp.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.CX=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&p0k(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var zJk;this.compositeLiveIngestionOffsetToken= (zJk=this.playerResponse.playbackTracking)==null?void 0:zJk.compositeLiveIngestionOffsetToken;var S35;this.compositeLiveStatusToken=(S35=this.playerResponse.playbackTracking)==null?void 0:S35.compositeLiveStatusToken}py(this,l);l.queue_info&&(this.queueInfo=l.queue_info);var pNv=l.hlsdvr;pNv!=null&&(this.allowLiveDvr=Number(pNv)===1?nw()?!0:tP&&v8<5?!1:!0:!1);this.adQueryId=l.ad_query_id||null;this.wp||(this.wp=l.encoded_ad_safety_reason||null);this.o3=l.agcid||null;this.Nj=l.ad_id||null;this.dY= l.ad_sys||null;this.Ak=l.encoded_ad_playback_context||null;this.uc=Li(this.uc,l.infringe||l.muted);this.W2=l.authkey;this.h81=l.authuser;this.mutedAutoplay=Li(this.mutedAutoplay,l&&l.playmuted);this.J("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=ot(this.mutedAutoplayDurationMode,l&&l.muted_autoplay_duration_mode));this.rY=Li(this.rY,l&&l.mutedautoplay);var hy=l.length_seconds;hy&&(this.lengthSeconds=typeof hy==="string"?nJ(hy):hy);if(this.isAd()||this.eF||!g.JB(g.dn(this.rq)))this.endSeconds= ot(this.endSeconds,this.aZ||l.end||l.endSeconds);else{var Wq1=g.dn(this.rq),ZX=this.lengthSeconds;switch(Wq1){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ZX>30?this.limitedPlaybackDurationInSeconds=30:ZX<30&&ZX>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ZX*.2}}this.Cf=F1(this.Cf,l.itct);this.mW=Li(this.mW,l.noiba);this.im=Li(this.im,l.is_live_destination);this.isLivePlayback=Li(this.isLivePlayback, l.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.tA();l.isUpcoming&&(this.isUpcoming=Li(this.isUpcoming,l.isUpcoming));this.aI=Li(this.aI,l.post_live_playback);this.z3&&(this.aI=!1);this.isMdxPlayback=Li(this.isMdxPlayback,l.mdx);var Jy=l.mdx_control_mode;Jy&&(this.mdxControlMode=typeof Jy==="number"?Jy:nJ(Jy));this.isInlinePlaybackNoAd=Li(this.isInlinePlaybackNoAd,l.is_inline_playback_no_ad);this.hC=ot(this.hC,l.reload_count);this.reloadReason=F1(this.reloadReason, l.reload_reason);this.o_=Li(this.o_,l.show_content_thumbnail);this.g$=Li(this.g$,l.utpsa);this.cycToken=l.cyc||null;this.Ch=l.tkn||null;var sqq=r7(l);Object.keys(sqq).length>0&&(this.Y=sqq);this.NQ=F1(this.NQ,l.vvt);this.mdxEnvironment=F1(this.mdxEnvironment,l.mdx_environment);l.source_container_playlist_id&&(this.sourceContainerPlaylistId=l.source_container_playlist_id);l.serialized_mdx_metadata&&(this.serializedMdxMetadata=l.serialized_mdx_metadata);this.s2=l.osig;this.eventId||(this.eventId=l.eventid); this.osid||(this.osid=l.osid);this.playlistId=F1(this.playlistId,l.list);l.index&&(this.playlistIndex=this.playlistIndex===void 0?ot(0,l.index):ot(this.playlistIndex,l.index));this.BN=l.pyv_view_beacon_url;this.TL=l.pyv_quartile25_beacon_url;this.U4=l.pyv_quartile50_beacon_url;this.k7=l.pyv_quartile75_beacon_url;this.s4=l.pyv_quartile100_beacon_url;var fK7=l.session_data;!this.IC&&fK7&&(this.IC=O0(fK7,"&").feature);this.isFling=ot(this.isFling?1:0,l.is_fling)===1;this.vnd=ot(this.vnd,l.vnd);this.forceAdsUrl= F1(this.forceAdsUrl,l.force_ads_url);this.ra=F1(this.ra,l.ctrl);this.OX=F1(this.OX,l.ytr);this.vD=l.ytrcc;this.L0=l.ytrexp;this.ow=l.ytrext;this.Wk=F1(this.Wk,l.adformat);this.oi=F1(this.oi,l.attrib);this.slotPosition=ot(this.slotPosition,l.slot_pos);this.breakType=l.break_type;this.R6=Li(this.R6,l.ssrt);this.videoId=hB(l)||this.videoId;this.V=F1(this.V,l.vss_credentials_token);this.dH=F1(this.dH,l.vss_credentials_token_type);this.Oc=Li(this.Oc,l.audio_only);this.Fp=Li(this.Fp,l.aac_high);this.xg= Li(this.xg,l.prefer_low_quality_audio);this.E6=Li(this.E6,l.uncap_inline_quality);this.J("html5_enable_qoe_cat_list")?l.qoe_cat&&(this.T9=this.T9.concat(l.qoe_cat.split(","))):this.RP=F1(this.RP,l.qoe_cat);this.rH=Li(this.rH,l.download_media);var KLe=l.prefer_gapless;this.G=KLe!=null?Li(this.G,KLe):this.G?this.G:this.rq.preferGapless&&this.rq.supportsGaplessShorts();z1v(this.playerResponse)&&this.Lf.push("ad");var aKq=l.adaptive_fmts;aKq&&(this.adaptiveFormats=aKq,this.Sp("adpfmts",{},!0));var RJ8= l.allow_embed;RJ8&&(this.allowEmbed=Number(RJ8)===1);var Cgv=l.backgroundable;Cgv&&(this.backgroundable=Number(Cgv)===1);var tx5=l.autonav;tx5&&(this.isAutonav=Number(tx5)===1);var ve7=l.autoplay;ve7&&(this.M3=this.rk=Number(ve7)===1,nF(this,"c"));var lnv=l.iv_load_policy;lnv&&(this.annotationsLoadPolicy=X1(this.annotationsLoadPolicy,lnv,$J));var n09=l.cc_lang_pref;n09&&(this.captionsLanguagePreference=F1(n09,this.captionsLanguagePreference));var Oav=l.cc_load_policy;Oav&&(this.Z8=X1(this.Z8,Oav, $J));var g0a;this.deviceCaptionsOn=(g0a=l.device_captions_on)!=null?g0a:void 0;var Lyg;this.gM=(Lyg=l.device_captions_lang_pref)!=null?Lyg:"";var Xmv;this.wY=(Xmv=l.viewer_selected_caption_langs)!=null?Xmv:[];if(!this.J("html5_enable_ssap_entity_id")){var o0g=l.cached_load;o0g&&(this.fI=Li(this.fI,o0g))}if(l.dash==="0"||l.dash===0||l.dash===!1)this.qj=!0;var Fya=l.dashmpd;Fya&&(this.M5=g.pr(Fya,{cpn:this.clientPlaybackNonce}));var xwi=l.delay;xwi&&(this.K5=nJ(xwi));var t8a=this.aZ||l.end;if(this.Xg? t8a!=null:t8a!=void 0)this.clipEnd=ot(this.clipEnd,t8a);var hnq=l.fmt_list;hnq&&(this.Pt=hnq);l.heartbeat_preroll&&this.Lf.push("heartbeat");this.R4=-Math.floor(Math.random()*10);this.mB=-Math.floor(Math.random()*40);var Za9=l.is_listed;Za9&&(this.isListed=Li(this.isListed,Za9));var JT9=l.is_private;JT9&&(this.isPrivate=Li(this.isPrivate,JT9));var wm9=l.is_dni;wm9&&(this.hh=Li(this.hh,wm9));var Ha9=l.dni_color;Ha9&&(this.YG=F1(this.YG,Ha9));var ATe=l.pipable;ATe&&(this.pipable=Li(this.pipable,ATe)); this.Jj=(this.zF=this.pipable&&this.rq.yS)&&!this.rq.showMiniplayerButton;var ba0=l.paid_content_overlay_duration_ms;ba0&&(this.paidContentOverlayDurationMs=nJ(ba0));var rT5=l.paid_content_overlay_text;rT5&&(this.paidContentOverlayText=rT5);var Uwk=l.url_encoded_fmt_stream_map;Uwk&&(this.kY=Uwk);var uwf=l.hls_formats;uwf&&(this.hlsFormats=uwf);var PYq=l.hlsvp;PYq&&(this.hlsvp=PYq);var wu=l.live_start_walltime;wu&&(this.EH=typeof wu==="number"?wu:nJ(wu));var Hh=l.live_manifest_duration;Hh&&(this.Wp= typeof Hh==="number"?Hh:nJ(Hh));var TH5=l.player_params;TH5&&(this.playerParams=TH5);var Wy5=l.partnerid;Wy5&&(this.partnerId=ot(this.partnerId,Wy5));var E0a=l.probe_url;E0a&&(this.probeUrl=go(g.pr(E0a,{cpn:this.clientPlaybackNonce})));var vuf=l.pyv_billable_url;vuf&&tr8(vuf)&&(this.AP=vuf);var lF5=l.pyv_conv_url;lF5&&tr8(lF5)&&(this.y3=lF5);Tm9(this,l);this.startSeconds>0?this.J("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.CX||this.Up||l.start||l.startSeconds)&&this.Sp("lss", {css:this.startSeconds,pcss:this.CX,iss:this.Up,ps:l.start||void 0,pss:l.startSeconds||void 0}):this.n5=this.startSeconds=ot(this.startSeconds,this.CX||this.Up||l.start||l.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var NH8=l.live_utc_start;if(NH8!=null)this.liveUtcStartSeconds=Number(NH8);else{var nw9=this.startSeconds;nw9&&isFinite(nw9)&&nw9>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Dwq=l.utc_start_millis; Dwq&&(this.liveUtcStartSeconds=Number(Dwq)*.001)}var qWq=l.stream_time_start_millis;qWq&&(this.oA=Number(qWq)*.001);var OJi=this.Up||l.start;(this.Xg?OJi==null||Number(l.resume)===1:OJi==void 0||l.resume=="1")||this.isLivePlayback||(this.clipStart=ot(this.clipStart,OJi));var kQi=l.url_encoded_third_party_media;kQi&&(this.mD=XX(kQi));var gwq=l.ypc_offer_button_formatted_text;if(gwq){var yTi=JSON.parse(gwq);this.iY=yTi!=null?yTi:null;this.F8=gwq}var MEi=l.ypc_offer_button_text;MEi&&(this.Fl=MEi);var QQg= l.ypc_offer_description;QQg&&(this.yS=QQg);var eng=l.ypc_offer_headline;eng&&(this.Ph=eng);var YW8=l.ypc_full_video_message;YW8&&(this.Vz=YW8);var jQk=l.ypc_offer_id;jQk&&(this.Vr=jQk);var GQk=l.ypc_buy_url;GQk&&(this.eS=GQk);var mw9=l.ypc_item_thumbnail;mw9&&(this.Xl=mw9);var In8=l.ypc_item_title;In8&&(this.aP=In8);var dwv=l.ypc_item_url;dwv&&(this.y6=dwv);var $w5=l.ypc_vid;$w5&&(this.xb=$w5);l.ypc_overlay_timeout&&(this.Fj=Number(l.ypc_overlay_timeout));var VEi=l.ypc_trailer_player_vars;VEi&&(this.mN= Lh(VEi));var BHa=l.ypc_original_itct;BHa&&(this.PA=BHa);this.dJ=F1(this.dJ,l.ucid);l.baseUrl&&(this.T.baseUrl=l.baseUrl);l.uid&&(this.T.uid=l.uid);l.oeid&&(this.T.oeid=l.oeid);l.ieid&&(this.T.ieid=l.ieid);l.ppe&&(this.T.ppe=l.ppe);l.engaged&&(this.T.engaged=l.engaged);l.subscribed&&(this.T.subscribed=l.subscribed);this.T.focEnabled=Li(this.T.focEnabled,l.focEnabled);this.T.rmktEnabled=Li(this.T.rmktEnabled,l.rmktEnabled);this.TW=l.storyboard_spec||null;this.Ow=l.live_storyboard_spec||null;this.Zl= l.iv_endscreen_url||null;this.Xj=Li(this.Xj,l.ypc_license_checker_module);this.S5=Li(this.S5,l.ypc_module);this.D9=Li(this.D9,l.ypc_clickwrap_module);this.S5&&this.Lf.push("ypc");this.D9&&this.Lf.push("ypc_clickwrap");this.eB={video_id:l.video_id,eventid:l.eventid,cbrand:l.cbrand,cbr:l.cbr,cbrver:l.cbrver,c:l.c,cver:l.cver,ctheme:l.ctheme,cplayer:l.cplayer,cmodel:l.cmodel,cnetwork:l.cnetwork,cos:l.cos,cosver:l.cosver,cplatform:l.cplatform,user_age:l.user_age,user_display_image:l.user_display_image, user_display_name:l.user_display_name,user_gender:l.user_gender,csi_page_type:l.csi_page_type,csi_service_name:l.csi_service_name,enablecsi:l.enablecsi,enabled_engage_types:l.enabled_engage_types};b6e(this,l);var cTi=l.cotn;cTi&&(this.cotn=cTi);if(Gbg(this))xZ(this)&&(this.isLivePlayback&&this.M5&&(this.ea=!0),this.nf&&(this.AL=!0));else if(m0f(this))this.ea=!0;else{var ia9,znv,SWa=((ia9=this.playerResponse)==null?void 0:(znv=ia9.streamingData)==null?void 0:znv.adaptiveFormats)||[];if(SWa.length> 0)var Wi=jpg(this,SWa);else{var pma=this.adaptiveFormats;if(pma&&!xZ(this)){hZ(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(yY=!0);var OE=ri(pma),Lf9=this.UK,sQf=this.lengthSeconds,E$i=this.isLivePlayback,Ec=this.aI,g3=this.rq,NLO=i5a(OE);if(E$i||Ec){var fn5=g3==null?void 0:g3.experiments,$a=new wC("",fn5,!0);$a.tA=!0;$a.isManifestless=!0;$a.W=!Ec;$a.isLive=!Ec;$a.aI=Ec;for(var Ky9=g.P(OE),XMg=Ky9.next();!XMg.done;XMg=Ky9.next()){var L0=XMg.value,an7=rC(L0,Lf9),uu=Uk(L0.url,L0.sp,L0.s), Rng=uu.get("id");Rng&&Rng.includes("%7E")&&($a.Y=!0);var CYg=void 0,DHO=(CYg=fn5)==null?void 0:CYg.MQ("html5_max_known_end_time_rebase"),qlu=Number(L0.target_duration_sec)||5,k_0=Number(L0.max_dvr_duration_sec)||14400,tE9=Number(uu.get("mindsq")||uu.get("min_sq")||"0"),v05=Number(uu.get("maxdsq")||uu.get("max_sq")||"0")||Infinity;$a.Jt=$a.Jt||tE9;$a.HT=$a.HT||v05;var yzc=!L5(an7.mimeType);uu&&ha($a,new Rf(uu,an7,{uV:qlu,z6:yzc,yz:k_0,Jt:tE9,HT:v05,Uo:300,aI:Ec,Bq:DHO}))}var lR8=$a}else{if(NLO==="FORMAT_STREAM_TYPE_OTF"){var Ay= sQf;Ay=Ay===void 0?0:Ay;var XV=new wC("",g3==null?void 0:g3.experiments,!1);XV.duration=Ay||0;for(var nS9=g.P(OE),ow5=nS9.next();!ow5.done;ow5=nS9.next()){var oI=ow5.value,Ff8=rC(oI,Lf9,XV.duration),xX8=Uk(oI.url,oI.sp,oI.s);if(xX8)if(Ff8.streamType==="FORMAT_STREAM_TYPE_OTF")ha(XV,new Cd(xX8,Ff8,"sq/0"));else{var Mgi=y4(oI.init),Q3L=y4(oI.index);ha(XV,new oS(xX8,Ff8,Mgi,Q3L))}}XV.isOtf=!0;var O48=XV}else{var b5=sQf;b5=b5===void 0?0:b5;var ru=new wC("",g3==null?void 0:g3.experiments,!1);ru.duration= b5||0;for(var gSi=g.P(OE),hK9=gSi.next();!hK9.done;hK9=gSi.next()){var FV=hK9.value,e9O=rC(FV,Lf9,ru.duration),YlF=y4(FV.init),j3D=y4(FV.index),Lz7=Uk(FV.url,FV.sp,FV.s);Lz7&&ha(ru,new oS(Lz7,e9O,YlF,j3D))}O48=ru}lR8=O48}var XYa=lR8;if(OE.length>0){var oSa=OE[0];if(this.j().playerStyle==="hangouts-meet"&&oSa.url){var G_D=g.oT(oSa.url);this.D7=this.D7||Number(G_D.expire)}}var mHL=this.isLivePlayback&&!this.aI&&!this.z3&&!this.isPremiere;this.J("html5_live_head_playable")&&(!Zf(this)&&mHL&&this.Sp("missingLiveHeadPlayable", {}),this.rq.Wm==="yt"&&(XYa.Pm=!0));Wi=XYa}else Wi=null;this.Sp("pafmts",{isManifestFilled:!!Wi})}if(Wi){Hf(this,Wi);var Fz9=!0}else Fz9=!1;Fz9?this.enableServerStitchedDai=this.enableServerStitchedDai&&JZ(this):this.M5&&(this.rq.Wm==="yt"&&this.tA()&&this.J("drm_manifestless_unplugged")&&this.J("html5_deprecate_manifestful_fallback")?this.Sp("deprecateMflFallback",{}):this.ea=!0)}var ZJ7=l.adpings;ZJ7&&(this.qA=ZJ7?Lh(ZJ7):null);var xG5=l.feature;xG5&&(this.aU=xG5);var h0e=l.referrer;h0e&&(this.referrer= h0e);this.clientScreenNonce=F1(this.clientScreenNonce,l.csn);this.HI=ot(this.HI,l.root_ve_type);this.jI=ot(this.jI,l.kids_age_up_mode);this.Xg||l.kids_app_info==void 0||(this.kidsAppInfo=l.kids_app_info);this.Xg&&l.kids_app_info!=null&&(this.kidsAppInfo=l.kids_app_info);this.iO=Li(this.iO,l.upg_content_filter_mode);this.unpluggedFilterModeType=ot(this.unpluggedFilterModeType,l.unplugged_filter_mode_type);var Z49=l.unplugged_location_info;Z49&&(this.Wm=Z49);var J49=l.unplugged_partner_opt_out;J49&& (this.SH=F1("",J49));this.pg=Li(this.pg,l.disable_watch_next);this.CT=F1(this.CT,l.internal_ip_override);this.tW=!!l.is_yto_interstitial;(this.interstitials.length||this.tW)&&this.Lf.push("yto");var wYe=l.KL;wYe&&(this.KL=wYe);var H4v;this.Fi=(H4v=l.csi_timer)!=null?H4v:"";this.DJ=!!l.force_gvi;l.watchUrl&&(this.watchUrl=l.watchUrl);var PV=l.watch_endpoint;this.J("html5_attach_watch_endpoint_ustreamer_config")&&PV&&eui(this,PV);if(PV==null?0:PV.ustreamerConfig)this.Th=F$(PV.ustreamerConfig);var A49, b4v,r4i=PV==null?void 0:(A49=PV.loggingContext)==null?void 0:(b4v=A49.qoeLoggingContext)==null?void 0:b4v.serializedContextData;r4i&&(this.DI=r4i);g.yG(this.rq)&&this.rq.vp&&(this.embedsRct=F1(this.embedsRct,l.rct),this.embedsRctn=F1(this.embedsRctn,l.rctn));this.Nm=this.Nm||!!l.pause_at_start;l.default_active_source_video_id&&(this.defaultActiveSourceVideoId=l.default_active_source_video_id)}; g.h.j=function(){return this.rq}; g.h.J=function(l){return this.rq.J(l)}; g.h.qJ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var l;return!((l=this.j7)==null||!l.Yo)}; g.h.getUserAudio51Preference=function(){var l=1;R5(this.rq)&&this.J("html5_ytv_surround_toggle_default_off")?l=0:g.fw(this.rq)&&this.isLivePlayback&&this.Vb()&&(l=0);var n;return(n=g.dU("yt-player-audio51"))!=null?n:l}; g.h.du=function(){this.JG()||(this.S.W||this.S.unsubscribe("refresh",this.du,this),this.vE(-1))}; g.h.vE=function(l){if(!this.isLivePlayback||!this.B||this.B.flavor!=="fairplay"){var n=Sve(this.S,this.Jo);if(n.length>0){for(var O=g.P(n),L=O.next();!L.done;L=O.next())L=L.value,L.startSecs=Math.max(L.startSecs,this.i5()),this.J("html5_cuepoint_identifier_logging")&&L.event==="start"&&this.Sp("cuepoint",{pubCue:L.identifier,segNum:l});this.publish("cuepointupdated",n,l);this.Jo+=n.length;if(JZ(this)&&this.rq.AA())for(n=g.P(n),O=n.next();!O.done;O=n.next())O=O.value,this.Sp("cuepoint",{segNum:l,event:O.event, startSecs:O.startSecs,id:O.identifier.slice(-16)}),O.event==="start"&&(O=O.startSecs,this.vU.start=this.Pm,this.vU.end=O+3)}}}; g.h.Sw=function(){this.JG()||(this.loading=!1,this.publish("dataloaded"))}; g.h.Vb=function(){return this.X_!==void 0?this.X_:this.X_=!!this.UK||!!this.S&&AF(this.S)}; g.h.Hr=function(l){var n=this;if(this.JG())return Gj();this.d8=this.Yo=this.N=null;hZ(this,"html5_high_res_logging_always")&&(this.rq.At=!0);return Bm5(this,l).then(void 0,function(){return cl5(n,l)}).then(void 0,function(){return i6a(n)}).then(void 0,function(){return Scv(n)})}; g.h.LM=function(){if(this.cotn)return null;var l=g.qp(this.rq)||this.J("web_l3_storyboard");if(!this.xa)if(this.playerResponse&&this.playerResponse.storyboards){var n=this.playerResponse.storyboards,O=n.playerStoryboardSpecRenderer;O&&O.spec?this.xa=new VJ(O.spec,this.lengthSeconds,void 0,!1,l):(n=n.playerLiveStoryboardSpecRenderer)&&n.spec&&this.S&&(O=ij8(this.S.S).index)&&(this.xa=new cy(n.spec,this.S.isLive,O,l))}else this.TW?this.xa=new VJ(this.TW,this.lengthSeconds,void 0,!1,l):this.Ow&&this.S&& (n=ij8(this.S.S).index)&&(this.xa=new cy(this.Ow,this.S.isLive,n,l));return this.xa}; g.h.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var l=this.playerResponse.storyboards;return(l=l.playerStoryboardSpecRenderer||l.playerLiveStoryboardSpecRenderer)&&l.spec||null}return this.TW||this.Ow}; g.h.w8=function(){return this.S&&!isNaN(this.S.w8())?this.S.w8():JZ(this)?0:this.lengthSeconds}; g.h.i5=function(){return this.S&&!isNaN(this.S.i5())?this.S.i5():0}; g.h.getPlaylistSequenceForTime=function(l){if(this.S&&this.W){var n=this.S.S[this.W.id];if(!n)return null;var O=n.index.Qb(l);n=n.index.getStartTime(O);return{sequence:O,elapsed:Math.floor((l-n)*1E3)}}return null}; g.h.MP=function(){return!this.JG()&&!(!this.videoId&&!this.mD)}; g.h.iT=function(){var l,n,O;return!!this.adaptiveFormats||!!((l=this.playerResponse)==null?0:(n=l.streamingData)==null?0:(O=n.adaptiveFormats)==null?0:O.length)}; g.h.isLoaded=function(){return Sb(this)&&!this.ea&&!this.AL}; g.h.HG=function(l){l||(l="hqdefault.jpg");var n=this.Y[l];return n||this.rq.NQ||l==="pop1.jpg"||l==="pop2.jpg"||l==="sddefault.jpg"||l==="hq720.jpg"||l==="maxresdefault.jpg"?n:pw(this.rq,this.videoId,l)}; g.h.tA=function(){return this.isLivePlayback||this.aI||this.z3||!(!this.liveUtcStartSeconds||!this.Wp)}; g.h.isOtf=function(){return!!this.S&&(this.S.isOtf||!this.aI&&!this.isLivePlayback&&this.S.W)}; g.h.getAvailableAudioTracks=function(){return this.N?this.N.getAvailableAudioTracks().length>0?this.N.getAvailableAudioTracks():this.Xk||[]:[]}; g.h.getAudioTrack=function(){var l=this;if(this.L&&!lt(this.L))return g.ak(this.getAvailableAudioTracks(),function(L){return L.id===l.L.id})||this.S0; if(this.Xk){if(!this.fX)for(var n=g.P(this.Xk),O=n.next();!O.done;O=n.next())if(O=O.value,O.O_.getIsDefault()){this.fX=O;break}return this.fX||this.S0}return this.S0}; g.h.getPlayerResponse=function(){return this.playerResponse}; g.h.getWatchNextResponse=function(){return this.wq}; g.h.getHeartbeatResponse=function(){return this.GU}; g.h.XK=function(){return this.watchUrl?this.watchUrl:this.rq.getVideoUrl(this.videoId)}; g.h.pR=function(){return!!this.S&&(Gqf(this.S)||mBk(this.S)||IAa(this.S))}; g.h.getEmbeddedPlayerResponse=function(){return this.yb}; g.h.UX=function(){return(this.eventLabel||this.rq.Cf)==="shortspage"}; g.h.isAd=function(){return this.aY||!!this.adFormat}; g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.h.iK=function(){var l,n,O;return this.isDaiEnabled()&&!!((l=this.playerResponse)==null?0:(n=l.playerConfig)==null?0:(O=n.daiConfig)==null?0:O.ssaEnabledPlayback)}; g.h.hO=function(){return Jie(this)?this.Pq:this.Xj||this.Ip}; g.h.nY=function(){return this.S5||this.Ip}; g.h.rU=function(){return hZ(this,"html5_samsung_vp9_live")}; g.h.Sp=function(l,n,O){this.publish("ctmp",l,n,O)}; g.h.Gp=function(l,n,O){this.publish("ctmpstr",l,n,O)}; g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.h.getGetAdBreakContext=function(l,n){l=l===void 0?NaN:l;n=n===void 0?NaN:n;var O={isSabr:XZ(this)},L,X=(L=this.getHeartbeatResponse())==null?void 0:L.adBreakHeartbeatParams;X&&(O.adBreakHeartbeatParams=X);if(this.J("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.S&&!isNaN(l)&&!isNaN(n)){n=l-n;for(var F in this.S.S)if(L=this.S.S[F],L.info.RR()||L.info.vM())if(L=L.index,L.isLoaded()){F=L.Qb(n);L=L.Ko(F)+n-L.getStartTime(F);this.Sp("gabc",{t:l.toFixed(3),mt:n.toFixed(3),sg:F,igt:L.toFixed(3)}); O.livePlaybackPosition={utcTimeMillis:""+(L*1E3).toFixed(0)};break}}return O}; g.h.isEmbedsShortsMode=function(l,n){if(!g.yG(this.rq))return!1;var O;if(!this.J("embeds_enable_emc3ds_shorts")&&((O=this.rq.getWebPlayerContextConfig())==null?0:O.embedsEnableEmc3ds)||(this.rq.Lf||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||n)return!1;var L,X;return!!(((L=this.embeddedPlayerConfig)==null?0:(X=L.embeddedPlayerFlags)==null?0:X.isShortsExperienceEligible)&&l.width<=l.height)}; g.h.oz=function(){g.hj.prototype.oz.call(this);this.qA=null;delete this.Oz;delete this.accountLinkingConfig;delete this.S;this.N=this.GU=this.playerResponse=this.wq=null;this.kY=this.adaptiveFormats="";delete this.botguardData;this.uv=this.suggestions=this.ai=null;this.sabrContextUpdates.clear()};var uTg={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},PZa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},rik={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},HWv={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"},bWe={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Ai9={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"},Ud8={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.u(XG,g.V);g.h=XG.prototype;g.h.handleExternalCall=function(l,n,O){var L=this.state.T[l],X=this.state.G[l],F=L;if(X)if(O&&vQ(O,WWD))F=X;else if(!L)throw Error('API call from an untrusted origin: "'+O+'"');this.logApiCall(l,O);if(F){O=!1;L=g.P(n);for(X=L.next();!X.done;X=L.next())if(String(X.value).includes("javascript:")){O=!0;break}O&&g.d2(Error('Dangerous call to "'+l+'" with ['+n+"]."));return F.apply(this,n)}throw Error('Unknown API method: "'+l+'".');}; g.h.logApiCall=function(l,n,O){var L=this.app.j();L.AL&&!this.state.Y.has(l)&&(this.state.Y.add(l),g.JG("webPlayerApiCalled",{callerUrl:L.loaderUrl,methodName:l,origin:n||void 0,playerStyle:L.playerStyle||void 0,embeddedPlayerMode:L.Lf,errorCode:O}))}; g.h.publish=function(l){var n=g.eq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[l].concat(g.E(n)));if(l==="videodatachange"||l==="resize"||l==="cardstatechange")this.state.W.publish.apply(this.state.W,[l].concat(g.E(n))),this.state.L.publish.apply(this.state.L,[l].concat(g.E(n)))}; g.h.lF=function(l){var n=g.eq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[l].concat(g.E(n)));this.state.W.publish.apply(this.state.W,[l].concat(g.E(n)))}; g.h.S3=function(l){var n=g.eq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[l].concat(g.E(n)));this.state.W.publish.apply(this.state.W,[l].concat(g.E(n)));this.state.L.publish.apply(this.state.L,[l].concat(g.E(n)))}; g.h.Fb=function(l){var n=g.eq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[l].concat(g.E(n)));this.state.W.publish.apply(this.state.W,[l].concat(g.E(n)));this.state.L.publish.apply(this.state.L,[l].concat(g.E(n)));this.state.B.publish.apply(this.state.B,[l].concat(g.E(n)))}; g.h.J=function(l){return this.app.j().J(l)}; g.h.oz=function(){if(this.state.element){var l=this.state.element,n;for(n in this.state.S)this.state.S.hasOwnProperty(n)&&(l[n]=null);this.state.element=null}g.V.prototype.oz.call(this)};g.u(ZQ,g.Mo);ZQ.prototype.publish=function(l){var n=g.eq.apply(1,arguments);if(this.B.has(l))return this.B.get(l).push(n),!0;var O=!1;try{for(n=[n],this.B.set(l,n);n.length;)O=g.Mo.prototype.publish.call.apply(g.Mo.prototype.publish,[this,l].concat(g.E(n.shift())))}finally{this.B.delete(l)}return O};g.u(JA,g.V);JA.prototype.oz=function(){this.B.dispose();this.L.dispose();this.W.dispose();this.N.dispose();this.Y=this.S=this.G=this.T=this.V=void 0};var kJ7=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.u(HD,XG);g.h=HD.prototype;g.h.getApiInterface=function(){return Array.from(this.state.V)}; g.h.LH=function(l,n){this.state.B.subscribe(l,n)}; g.h.NBi=function(l,n){this.state.B.unsubscribe(l,n)}; g.h.getPlayerState=function(l){return Gh7(this.app,l)}; g.h.ix=function(){return Gh7(this.app)}; g.h.t1p=function(l,n,O){rj(this)&&(Vm(this.app,!0,1),iy(this.app,l,n,O,1))}; g.h.getCurrentTime=function(l,n,O){var L=this.getPlayerState(l);if(this.app.getAppState()===2&&L===5){var X;return((X=this.app.getVideoData())==null?void 0:X.startSeconds)||0}return this.J("web_player_max_seekable_on_ended")&&L===0?Q00(this.app,l):l?this.app.getCurrentTime(l,n,O):this.app.getCurrentTime(l)}; g.h.C6=function(){return this.app.getCurrentTime(1)}; g.h.zP=function(){var l=this.app.Ko(1);return isNaN(l)?this.getCurrentTime(1):l}; g.h.Hy=function(){return this.app.getDuration(1)}; g.h.ZK=function(l,n){l=g.hR(Math.floor(l),0,100);isFinite(l)&&Yv(this.app,{volume:l,muted:this.isMuted()},n)}; g.h.bNp=function(l){this.ZK(l,!1)}; g.h.oJ=function(l){Yv(this.app,{muted:!0,volume:this.getVolume()},l)}; g.h.wj1=function(){this.oJ(!1)}; g.h.zA=function(l){b4(this.app)&&!this.J("embeds_enable_emc3ds_muted_autoplay")||Yv(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},l)}; g.h.UJQ=function(){b4(this.app)&&this.J("embeds_enable_emc3ds_muted_autoplay")||this.zA(!1)}; g.h.getPlayerMode=function(){var l={};this.app.getVideoData().hh&&(l.pfp={enableIma:g.l4(this.app.getVideoData())&&this.app.b5().allowImaMonetization,autoplay:zy(this.app.b5()),mutedAutoplay:this.app.b5().mutedAutoplay});return l}; g.h.SO=function(){var l=this.app.getPresentingPlayerType();if(l===2&&!this.app.dB()){var n=dt(this.app.dc());if(!Gm5(n)||myf(n))return}l===3?y7(this.app.dc()).BB("control_play"):this.app.j().J("html5_ssap_ignore_play_for_ad")&&g.fy(this.app.b5())&&l===2||this.app.playVideo(l)}; g.h.t7J=function(){Vm(this.app,!0,1);this.SO()}; g.h.pauseVideo=function(l){var n=this.app.getPresentingPlayerType();if(n!==2||this.app.dB()||Gm5(dt(this.app.dc())))n===3?y7(this.app.dc()).BB("control_pause"):this.app.pauseVideo(n,l)}; g.h.efG=function(){var l=this.app,n=!1;l.xo.hC&&(l.iF.publish("pageTransition"),n=!0);l.stopVideo(n)}; g.h.clearVideo=function(){}; g.h.getAvailablePlaybackRates=function(){var l=this.app.j();return l.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(l.L?l.ancestorOrigins[0]:window.location.origin)||l.jI?teR:l.supportsVarispeedExtendedFeatures?vdc:l.J("web_remix_allow_up_to_3x_playback_rate")&&g.Bt(l)?lZ0:yg:[1]}; g.h.getPlaybackQuality=function(l){return(l=this.app.Mv(l))?l.getPlaybackQuality():"unknown"}; g.h.Isq=function(){}; g.h.getAvailableQualityLevels=function(l){return(l=this.app.Mv(l))?(l=g.M9(l.Si(),function(n){return n.quality}),l.length&&(l[0]==="auto"&&l.shift(),l=l.concat(["auto"])),l):[]}; g.h.eR=function(){return this.getAvailableQualityLevels(1)}; g.h.Py=function(){return this.A3()}; g.h.UN=function(){return 1}; g.h.getVideoLoadedFraction=function(l){return this.app.getVideoLoadedFraction(l)}; g.h.A3=function(){return this.getVideoLoadedFraction()}; g.h.p6=function(){return 0}; g.h.getSize=function(){var l=this.app.xP().getPlayerSize();return{width:l.width,height:l.height}}; g.h.setSize=function(){this.app.xP().resize()}; g.h.loadVideoById=function(l,n,O,L){if(!l)return!1;l=wj(l,n,O);return this.app.loadVideoByPlayerVars(l,L)}; g.h.Zff=function(l,n,O){l=this.loadVideoById(l,n,O,1);Vm(this.app,l,1)}; g.h.cueVideoById=function(l,n,O,L){l=wj(l,n,O);this.app.cueVideoByPlayerVars(l,L)}; g.h.WL=function(l,n,O){this.cueVideoById(l,n,O,1)}; g.h.loadVideoByUrl=function(l,n,O,L){l=q1q(l,n,O);return this.app.loadVideoByPlayerVars(l,L)}; g.h.upo=function(l,n,O){l=this.loadVideoByUrl(l,n,O,1);Vm(this.app,l,1)}; g.h.cueVideoByUrl=function(l,n,O,L){l=q1q(l,n,O);this.app.cueVideoByPlayerVars(l,L)}; g.h.vL=function(l,n,O){this.cueVideoByUrl(l,n,O,1)}; g.h.n6=function(){var l=this.app.j();if(l.NQ)return"";var n=this.app.b5(),O=void 0;n.isLivePlayback||(O=Math.floor(this.app.getCurrentTime(1)));return l.getVideoUrl(n.videoId,this.getPlaylistId()||void 0,O)}; g.h.By=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var l=this.app.j();if(l.NQ)return"";var n=this.app.b5();return l.getVideoEmbedCode(n.isPrivate?"":n.title,this.app.b5().videoId,this.app.xP().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.r6=function(l,n,O){return iZ9(this.app,l,n,O)}; g.h.removeCueRange=function(l){return SSa(this.app,l)}; g.h.loadPlaylist=function(l,n,O,L){this.app.loadPlaylist(l,n,O,L)}; g.h.k3q=function(l,n,O,L){this.loadPlaylist(l,n,O,L);Vm(this.app,!0,1)}; g.h.cuePlaylist=function(l,n,O,L){this.app.cuePlaylist(l,n,O,L)}; g.h.nextVideo=function(l,n){this.app.nextVideo(l,n)}; g.h.TcG=function(){this.nextVideo();Vm(this.app,!0,1)}; g.h.previousVideo=function(l){this.app.previousVideo(l)}; g.h.nu2=function(){this.previousVideo();Vm(this.app,!0,1)}; g.h.playVideoAt=function(l){this.app.playVideoAt(l)}; g.h.Tio=function(l){this.playVideoAt(l);Vm(this.app,!0,1)}; g.h.setShuffle=function(l){var n=this.app.getPlaylist();n&&n.setShuffle(l)}; g.h.setLoop=function(l){var n=this.app.getPlaylist();n&&(n.loop=l)}; g.h.XR=function(){var l=this.app.getPlaylist();if(!l)return null;for(var n=[],O=0;O<l.getLength();O++){var L=g.E8(l,O);L&&n.push(L.videoId)}return n}; g.h.getPlaylistIndex=function(){var l=this.app.getPlaylist();return l?l.index:-1}; g.h.getPlaylistId=function(){var l=this.app.getPlaylist();return l&&l.listId?l.listId.toString():null}; g.h.dR=function(l){l==="captions"&&(l=g.G4(this.app.dc()))&&!l.loaded&&l.load()}; g.h.sz=function(l){l==="captions"&&(l=g.G4(this.app.dc()))&&l.loaded&&l.I9o()}; g.h.Zh=function(l,n,O){if(!n)return null;var L=this.app.dc();return l==="captions"?(l=g.G4(L))&&l.oN(n,O):null}; g.h.EN=function(l,n,O){return this.app.Wj().getVideoData().isPrivate&&this.app.j().L?{}:this.Zh(l,n,O)}; g.h.Gv=function(l){var n=this.app.dc();if(l==="captions"){var O;return((O=g.G4(n))==null?void 0:O.getOptions())||null}return l?null:(l=[],g.G4(n)&&l.push("captions"),l)}; g.h.getVolume=function(){return this.app.cT.volume}; g.h.isMuted=function(){return this.app.cT.muted}; g.h.destroy=function(){this.app.dispose()}; g.h.logImaAdEvent=function(l,n){var O=this.app.j();g.l4(this.app.getVideoData())&&this.app.b5().allowImaMonetization&&(l={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:n,embedUrl:g.Pfi(this.app.j().loaderUrl),eventType:l,youtubeHost:g.VM(this.app.j().Vf)||""},l.embeddedPlayerMode=O.Lf,g.JG("embedsAdEvent",l))}; g.h.mutedAutoplay=function(l){var n=this.app.j(),O,L,X;((O=n.getWebPlayerContextConfig())==null?0:(L=O.embedsHostFlags)==null?0:(X=L.allowMutedAutoplayDurationMode)==null?0:X.length)&&!n.N&&this.app.mutedAutoplay(l)}; g.h.preloadVideoById=function(l,n,O,L){var X,F;((X=this.app.j().getWebPlayerContextConfig())==null?0:(F=X.embedsHostFlags)==null?0:F.allowPreloadVideoById)&&l&&(l=wj(l,n,O),this.app.preloadVideoByPlayerVars(l,L))}; g.h.At1=function(l,n,O){this.preloadVideoById(l,n,O,1)}; g.h.setFauxFullscreen=function(l){g.uG();this.app.x6(l?2:0)}; g.h.Uni=function(l){var n,O;((n=this.app.j().getWebPlayerContextConfig())==null?0:(O=n.embedsHostFlags)==null?0:O.allowSetFauxFullscreen)&&this.setFauxFullscreen(l)}; g.h.setCenterCrop=function(l){var n,O;((n=this.app.j().getWebPlayerContextConfig())==null?0:(O=n.embedsHostFlags)==null?0:O.allowSetCenterCrop)&&this.app.xP().setCenterCrop(l)}; g.h.wakeUpControls=function(){var l=g.AA(this);l&&l.lA()};var j75="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.u(UY,HD);g.h=UY.prototype;g.h.Dr=function(l,n){this.state.L.subscribe(l,n)}; g.h.sRp=function(l,n){this.state.L.unsubscribe(l,n)}; g.h.cueVideoByPlayerVars=function(l,n){this.app.cueVideoByPlayerVars(l,n)}; g.h.sY=function(l,n){n=n===void 0?1:n;this.cueVideoByPlayerVars(u4(this,l),n)}; g.h.loadVideoByPlayerVars=function(l,n,O,L,X){this.app.loadVideoByPlayerVars(l,O,n,L,X)}; g.h.xvp=function(l,n,O,L){O=O===void 0?1:O;this.loadVideoByPlayerVars(u4(this,l),n,O,L)}; g.h.preloadVideoByPlayerVars=function(l,n,O,L,X){O=O===void 0?NaN:O;this.app.preloadVideoByPlayerVars(l,n,O,L===void 0?"":L,X===void 0?"":X)}; g.h.plQ=function(l,n,O,L){n=n===void 0?1:n;this.preloadVideoByPlayerVars(u4(this,l),n,O,L)}; g.h.eg=function(l,n,O){this.loadVideoById(l,n,O,1)}; g.h.Qt=function(l,n,O){this.loadVideoByUrl(l,n,O,1)}; g.h.aG=function(l){return this.getPlayerState(l)}; g.h.UD=function(l){l=l===void 0?1:l;var n=M7v(this,l);if(l=this.app.Mv(l)){l=l.getVideoData();n.backgroundable=l.backgroundable;n.eventId=l.eventId;n.cpn=l.clientPlaybackNonce;n.isLive=l.isLivePlayback;n.isWindowedLive=l.z3;n.isManifestless=JZ(l);n.allowLiveDvr=l.allowLiveDvr;n.isListed=l.isListed;l.liveUtcStartSeconds!=null&&(n.liveUtcStartSeconds=l.liveUtcStartSeconds);l.Vb()&&(n.isEncrypted=!0);if(l.N)for(var O=g.P(l.N.videoInfos),L=O.next();!L.done;L=O.next()){var X=void 0;if((X=L.value.video)== null?0:X.isHdr()){n.isHdr=!0;break}}var F,x;n.isMultiChannelAudio=!!((F=l.L)==null?0:(x=F.audio)==null?0:x.isMultiChannelAudio())}return n}; g.h.seekBy=function(l,n,O,L,X){rj(this)&&iy(this.app,this.app.getCurrentTime()+l,n,O,X,L)}; g.h.wMJ=function(l,n,O){this.seekBy(l,n,O,void 0,1)}; g.h.seekTo=function(l,n,O,L,X){rj(this)&&iy(this.app,l,n,O,L,X)}; g.h.iNF=function(l,n,O,L){this.seekTo(l,n,O,L===void 0?1:L)}; g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.h.V7=function(l,n){return this.getCurrentTime(l===void 0?1:l,n)}; g.h.pA=function(){var l=this.app.getPresentingPlayerType(!0);l===2&&this.app.dB()&&(l=1);return l}; g.h.getDuration=function(l,n){if(this.pA()===3){var O;return((O=y7(this.app.dc()).getProgressState())==null?void 0:O.duration)||0}return l?this.app.getDuration(l,n):this.app.getDuration(l)}; g.h.e$=function(l,n){return this.getDuration(l===void 0?1:l,n)}; g.h.jR=function(l){return this.getVideoLoadedFraction(l)}; g.h.loadModule=function(l){if(l==="annotations_module"){var n=g.B8(this.app.dc());n&&!n.loaded&&n.load()}this.dR(l)}; g.h.unloadModule=function(l){if(l==="annotations_module"){var n=g.B8(this.app.dc());n&&n.loaded&&n.unload()}this.sz(l)}; g.h.getOption=function(l,n,O,L){return(L=this.app.Mv(L))&&L.getVideoData().isPrivate&&this.app.j().L?{}:this.setOption(l,n,O)}; g.h.qM=function(l,n,O){return this.getOption(l,n,O,1)}; g.h.getOptions=function(l){var n=this.app.dc();switch(l){case "ad":var O,L;return((O=dt(n))==null?void 0:(L=O.getOptions)==null?void 0:L.call(O))||null;case "remote":var X,F;return((X=y7(n))==null?void 0:(F=X.getOptions)==null?void 0:F.call(X))||null;case "annotations_module":var x,Z;return((x=g.B8(n))==null?void 0:(Z=x.getOptions)==null?void 0:Z.call(x))||null;case "creatorendscreen":var J,w;return((J=c8(n))==null?void 0:(w=J.getOptions)==null?void 0:w.call(J))||null;case "unplugged":var H,A;return((H= g.$V(n))==null?void 0:(A=H.getOptions)==null?void 0:A.call(H))||null;case "kids":var b,r;return((b=sx9(n))==null?void 0:(r=b.getOptions)==null?void 0:r.call(b))||null}if(!l){l=this.Gv();if(!l)return l;dt(n)&&l.push("ad");y7(n)&&l.push("remote");g.B8(n)&&l.push("annotations_module");c8(n)&&l.push("creatorendscreen");g.$V(n)&&l.push("unplugged");sx9(n)&&l.push("kids");return l}return this.Gv(l)}; g.h.setOption=function(l,n,O){if(!n)return null;var L=this.app.dc();switch(l){case "ad":return(l=dt(L))&&l.oN&&l.oN(n,O);case "kids":return(l=sx9(L))&&l.oN(n,O);case "remote":return(l=y7(L))&&l.oN(n,O);case "unplugged":return(l=g.$V(L))&&l.oN(n,O);case "annotations_module":return(l=g.B8(L))&&l.oN(n,O);case "creatorendscreen":return(l=c8(L))&&l.oN(n,O)}return this.Zh(l,n,O)}; g.h.addCueRange=function(l,n,O,L,X){return iZ9(this.app,l,n,O,L,X)}; g.h.getDebugText=function(l){return this.app.getDebugText(l)}; g.h.getCurrentBroadcastId=function(){return null}; g.h.handleGlobalKeyDown=function(l,n,O,L,X,F,x,Z){n=n===void 0?!1:n;O=O===void 0?!1:O;L=L===void 0?!1:L;X=X===void 0?!1:X;var J=g.AA(this);J&&J.handleGlobalKeyDown(l,n,O,L,X,F,x,Z)}; g.h.handleGlobalKeyUp=function(l,n,O,L,X,F,x){n=n===void 0?!1:n;O=O===void 0?!1:O;L=L===void 0?!1:L;X=X===void 0?!1:X;var Z=g.AA(this);Z&&Z.handleGlobalKeyUp(l,n,O,L,X,F,x)}; g.h.setSizeStyle=function(l,n){this.app.setSizeStyle(l,n)}; g.h.showControls=function(){var l=g.AA(this);l&&l.showControls(!0)}; g.h.hideControls=function(){var l=g.AA(this);l&&l.showControls(!1)}; g.h.getVideoContentRect=function(l){l=this.app.xP().getVideoContentRect(l);return{left:l.left,top:l.top,width:l.width,height:l.height}}; g.h.toggleFullscreen=function(){function l(O){g.d2(O)} var n=this.app.j();if(n.externalFullscreen){if(!g.Cw(n))return this.isFullscreen()?TK(window.document.documentElement):Uh(window.document.documentElement).catch(l)}else if(g.uG()||n.G)return this.isFullscreen()?TK(Pk()):n.controlsType!=="3"&&g.uG()?Uh(this.app.xP().element).catch(l):(n=this.app.T$().De())?Uh(n).catch(l):Promise.reject(Error("Media element missing"));this.Fb("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.h.isFullscreen=function(){return this.app.isFullscreen()}; g.h.JS=function(){return this.app.JS()}; g.h.cancelPlayback=function(){var l=dt(this.app.dc());l&&l.created&&l.destroy();(l=this.app.AG())&&l.stopVideo();(l=this.app.dc().ri.get("endscreen"))&&l.FJf()&&g.kA(this.app.iF,!0)}; g.h.getProgressState=function(l){if(this.pA()===3)return y7(this.app.dc()).getProgressState();var n=this.app.getVideoData(),O=this.app.Mv(l)||this.app.AG(),L=O.getPlayerType();a:{var X=this.app.getVideoData();var F;if((F=X.progressBarStartPosition)==null?0:F.utcTimeMillis)if(X=Number(X.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(X)){X=PD(this,X,l);break a}X=0}var x;a:{F=this.app.getVideoData();if((x=F.progressBarEndPosition)==null?0:x.utcTimeMillis)if(x=Number(F.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(x)){x=PD(this,x,l);break a}x=0}F=this.getCurrentTime(l);l=this.getDuration(l);var Z=this.app.Ko(L),J=this.app.isAtLiveHead(L),w=this.app.oU();var H=this.app;var A=H.Mv(L);A?(A=Nn(H,A),H=Ga(H,A.xq(),A)):H=H.r8.S.xq();A=Q00(this.app,L);O=O.ez();var b=this.app.getVideoData().Ri;L=!b||isNaN(b)?0:PD(this,b,L);return{airingStart:X,airingEnd:x,allowSeeking:this.app.qJ(),clipEnd:n.clipEnd,clipStart:n.clipStart,current:F,displayedStart:-1,duration:l,ingestionTime:Z,isAtLiveHead:J,loaded:w,seekableStart:H, seekableEnd:A,offset:O,viewerLivestreamJoinMediaTime:L}}; g.h.isInline=function(){return this.app.isInline()}; g.h.setInline=function(l){this.app.setInline(l)}; g.h.IG=function(){return this.app.Wj().sC(!0)}; g.h.toggleSubtitles=function(){var l=g.G4(this.app.dc());l&&l.wG2()}; g.h.getPlayerSize=function(){var l=this.app.xP().getPlayerSize();return{width:l.width,height:l.height}}; g.h.setCenterCrop=function(l){this.app.xP().setCenterCrop(l)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.setLoopVideo=function(l){this.app.setLoopVideo(l)}; var Y1q="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), mdi="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var xL={},Ijg=(xL["api.invalidparam"]=2,xL.auth=150,xL["drm.auth"]=150,xL["heartbeat.net"]=150,xL["heartbeat.servererror"]=150,xL["heartbeat.stop"]=150,xL["html5.unsupportedads"]=5,xL["fmt.noneavailable"]=5,xL["fmt.decode"]=5,xL["fmt.unplayable"]=5,xL["html5.missingapi"]=5,xL["html5.unsupportedlive"]=5,xL["drm.unavailable"]=5,xL["mrm.blocked"]=151,xL["embedder.identity.denied"]=152,xL);g.u(g.TM,UY);g.h=g.TM.prototype;g.h.isExternalMethodAvailable=function(l,n){return this.state.T[l]?!0:!!(this.state.G[l]&&n&&vQ(n,WWD))}; g.h.getBandwidthEstimate=function(){return WI(this.app.j().schedule)}; g.h.reportPlaybackIssue=function(l){l=l===void 0?"":l;var n=this.app.AG();n&&(l={gpu:(0,g.eT)(),d:l},n.handleError(new Ml("feedback",l)))}; g.h.getInternalApi=function(){return Object.assign({},this.state.S)}; g.h.getInternalApiInterface=function(){return g.qX(this.state.S)}; g.h.queueNextVideo=function(l,n,O,L,X){O=O===void 0?NaN:O;this.app.queueNextVideo(l,n,O,L===void 0?"":L,X===void 0?"":X)}; g.h.TP=function(l){l=this.app.getPlayerStateObject(l);return{isBuffering:g.K(l,1),isCued:l.isCued(),isDomPaused:g.K(l,1024),isEnded:g.K(l,2),isError:g.K(l,128),isOrWillBePlaying:l.isOrWillBePlaying(),isPaused:l.isPaused(),isPlaying:l.isPlaying(),isSeeking:g.K(l,16),isUiSeeking:g.K(l,32),isUnstarted:g.K(l,64)}}; g.h.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.h.startSeekCsiAction=function(){this.app.GE().L.S=(0,g.Q_)()}; g.h.DU=function(l,n,O){return this.getCurrentTime(l===void 0?1:l,n,O)}; g.h.seekToStreamTime=function(l,n,O,L){var X=this.app;n=n===void 0?!0:n;var F=X.Mv(1),x=0;F&&F.getStreamTimeOffset()&&!F.ez()&&(x=F.getStreamTimeOffset());iy(X,l-x,n,O,1,L)}; g.h.getStreamTimeOffset=function(){return this.app.Wj().getStreamTimeOffset()}; g.h.seekToLiveHead=function(l,n){var O=this.app.Wj().getVideoData();O&&O.isLivePlayback&&iy(this.app,Infinity,l,n,1)}; g.h.requestSeekToWallTimeSeconds=function(l,n){this.app.Wj().aB(l,n)}; g.h.TBF=function(l,n,O,L,X){this.seekTo(l,n,O,L===void 0?1:L,X)}; g.h.qcp=function(l,n,O,L){this.seekBy(l,n,O,L,1)}; g.h.setVolume=function(l,n){this.ZK(l,n===void 0?!0:n)}; g.h.mute=function(l){this.oJ(l===void 0?!0:l)}; g.h.unMute=function(l){this.zA(l===void 0?!0:l)}; g.h.syncVolume=function(){var l=Xpa(this.app);Yv(this.app,{volume:l.volume,muted:l.muted},!1)}; g.h.getAvailableQualityLabels=function(){return g.M9(this.app.Wj().Si(),function(l){return l.qualityLabel})}; g.h.channelSubscribed=function(){this.lF("SUBSCRIBE",this.app.b5().dJ)}; g.h.channelUnsubscribed=function(){this.lF("UNSUBSCRIBE",this.app.b5().dJ)}; g.h.setScreenLayer=function(l){this.app.setScreenLayer(l)}; g.h.getCurrentPlaylistSequence=function(){return this.app.AG().getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.h.getPlaylistSequenceForTime=function(l){return this.app.AG().getPlaylistSequenceForTime(l)}; g.h.shouldSendVisibilityState=function(){return!0}; g.h.confirmYpcRental=function(){this.app.Wj().T1("ypc_clickwrap")}; g.h.setHomeGroupInfo=function(l){this.app.j().homeGroupInfo=l}; g.h.setConnectedRemoteApps=function(l){this.app.j().I0=l}; g.h.setLivingRoomAppMode=function(l){this.app.j().livingRoomAppMode=X1("LIVING_ROOM_APP_MODE_UNSPECIFIED",l,n4v)}; g.h.setEnablePrivacyFilter=function(l){this.app.j().enablePrivacyFilter=l===void 0?!1:l}; g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.h.addUtcCueRange=function(l,n,O,L,X){return zra(this.app,l,n,O,L,X)}; g.h.Ax=function(l){l=l===void 0?1:l;var n=this.UD(l);if(l=this.app.Mv(l)){l=l.getVideoData();n.hasProgressBarBoundaries=l.hasProgressBarBoundaries();n.isPremiere=l.isPremiere;n.itct=l.Cf;n.playerResponseCpn=l.playerResponseCpn;var O;var L=l.hasProgressBarBoundaries()&&((O=l.progressBarStartPosition)==null?0:O.utcTimeMillis)?nJ(l.progressBarStartPosition.utcTimeMillis):null;n.progressBarStartPositionUtcTimeMillis=L;var X;O=l.hasProgressBarBoundaries()&&((X=l.progressBarEndPosition)==null?0:X.utcTimeMillis)? nJ(l.progressBarEndPosition.utcTimeMillis):null;n.progressBarEndPositionUtcTimeMillis=O;n.ypcOriginalItct=l.PA;n.ypcPreview=l.ypcPreview;n.paidContentOverlayText=pie(l);n.paidContentOverlayDurationMs=spq(l);l.S&&JF(l.S)&&(n.usingLocalMedia="true");n.transitionEndpointAtEndOfStream=l.transitionEndpointAtEndOfStream}return n}; g.h.getAdState=function(){return this.app.getAdState()}; g.h.isNotServable=function(l){if(l!==this.app.config.args.video_id)return!1;var n=(l=this.app.Wj().getPlayerState())?l.WG:null;return!!(l&&n&&g.K(l,128)&&dd0(n.errorCode)===5)}; g.h.supportsGaplessAudio=function(){return this.app.j().supportsGaplessAudio()}; g.h.supportsGaplessShorts=function(){return this.app.j().supportsGaplessShorts()}; g.h.enqueueVideoByPlayerVars=function(l,n,O,L){O=O===void 0?Infinity:O;this.app.enqueueVideoByPlayerVars(l,n,O,L===void 0?"":L)}; g.h.clearQueue=function(){this.app.clearQueue()}; g.h.Fx=function(){return g.AA(this)}; g.h.sendAbandonmentPing=function(){var l;(l=this.app.AG())==null||l.sendAbandonmentPing()}; g.h.setAutonavState=function(l,n){n=n===void 0?!1:n;if(this.J("web_player_autonav_use_server_provided_state")&&!n&&(n=this.app.b5(),n==null?0:R4(n))){if(this.J("web_player_autonav_server_provided_state_pause_killswitch"))return;if(l===3)n.autonavState!==3&&(n.Rw=n.autonavState);else if(n.Rw!==void 0)l=n.Rw,n.Rw=void 0;else return}CWg(this.app,l)}; g.h.setAutonav=function(l,n){this.setAutonavState(l?2:1,n===void 0?!1:n)}; g.h.setLoopRange=function(l){this.app.setLoopRange(l)}; g.h.getLoopRange=function(){return this.app.getLoopRange()}; g.h.hasSupportedAudio51Tracks=function(){return this.app.Wj().hasSupportedAudio51Tracks()}; g.h.setUserAudio51Preference=function(l,n){this.app.Wj().setUserAudio51Preference(l,n===void 0?!1:n)}; g.h.getUserAudio51Preference=function(){return this.app.Wj().getUserAudio51Preference()}; g.h.setProximaLatencyPreference=function(l){this.app.Wj().setProximaLatencyPreference(l)}; g.h.getProximaLatencyPreference=function(){return this.app.Wj().getProximaLatencyPreference()}; g.h.isProximaLatencyEligible=function(){return this.app.Wj().isProximaLatencyEligible()}; g.h.getAppState=function(){return this.app.getAppState()}; g.h.updateLastActiveTime=function(){qU()}; g.h.setBlackout=function(l){this.app.setBlackout(l)}; g.h.setUserEngagement=function(l){this.app.j().rA!==l&&(this.app.j().rA=l,this.app.Wj().Zv())}; g.h.updateSubtitlesUserSettings=function(l,n){n=n===void 0?!0:n;g.G4(this.app.dc()).Lk(l,n)}; g.h.getCaptionWindowContainerId=function(){var l=g.G4(this.app.dc());return l?l.getCaptionWindowContainerId():""}; g.h.toggleSubtitlesOn=function(){var l=g.G4(this.app.dc());l&&l.GR()}; g.h.isSubtitlesOn=function(){var l=g.G4(this.app.dc());return l?l.isSubtitlesOn():!1}; g.h.getPlayerResponse=function(l){return(l=this.app.Mv(l))?l.getVideoData().getPlayerResponse():null}; g.h.ww=function(){return this.getPlayerResponse(1)}; g.h.getEmbeddedPlayerResponse=function(){return this.app.Wj().getVideoData().getEmbeddedPlayerResponse()}; g.h.getWatchNextResponse=function(l){return(l=this.app.Mv(l))?l.getVideoData().getWatchNextResponse():null}; g.h.GP=function(){return this.getWatchNextResponse(1)}; g.h.getHeartbeatResponse=function(l){return(l=this.app.Mv(l))?l.getVideoData().getHeartbeatResponse():null}; g.h.gw=function(){return this.getHeartbeatResponse(1)}; g.h.getStoryboardFrame=function(l,n){var O=this.app.LM();if(!O)return null;n=O.levels[n];return n?(l=g.d7(n,l))?{column:l.column,columns:l.columns,height:l.rN,row:l.row,rows:l.rows,url:l.url,width:l.vB}:null:null}; g.h.getStoryboardFrameIndex=function(l,n){var O=this.app.LM();if(!O)return-1;n=O.levels[n];if(!n)return-1;l-=this.ez();return n.sJ(l)}; g.h.getStoryboardLevel=function(l){var n=this.app.LM();return n?(n=n.levels[l])?{index:l,intervalMs:n.S,maxFrameIndex:n.Km(),minFrameIndex:n.rg()}:null:null}; g.h.getNumberOfStoryboardLevels=function(){var l=this.app.LM();return l?l.levels.length:0}; g.h.vy=function(){return this.getAudioTrack(1)}; g.h.getAudioTrack=function(l){return(l=this.app.Mv(l))?l.getAudioTrack():this.app.getVideoData().S0}; g.h.setAudioTrack=function(l,n,O){this.pA()===3&&y7(this.app.dc()).BB("control_set_audio_track",l);return(O=this.app.Mv(O))?O.l8(l,n):!1}; g.h.FI2=function(l,n){return this.setAudioTrack(l,n,1)}; g.h.hx=function(){return this.getAvailableAudioTracks(1)}; g.h.getAvailableAudioTracks=function(l){return this.app.Mv(l).getAvailableAudioTracks()}; g.h.getMaxPlaybackQuality=function(){var l=this.app.Wj();return l.getVideoData().W?FF(l.Zq()):"unknown"}; g.h.getUserPlaybackQualityPreference=function(){return this.app.Wj().getUserPlaybackQualityPreference()}; g.h.getSubtitlesUserSettings=function(){var l=g.G4(this.app.dc());return l?l.FR():null}; g.h.resetSubtitlesUserSettings=function(){g.G4(this.app.dc()).rh1()}; g.h.setMinimized=function(l){this.app.setMinimized(l)}; g.h.setOverlayVisibility=function(l){this.publish("overlayvisibilitychange",l)}; g.h.setInlinePreview=function(l){this.app.setInlinePreview(l)}; g.h.setSqueezeback=function(l){this.app.setSqueezeback(l)}; g.h.setGlobalCrop=function(l){this.app.xP().setGlobalCrop(l)}; g.h.setAppFullscreen=function(l){this.app.x6(l?4:0)}; g.h.F$=function(){return this.app.F$()}; g.h.getVisibilityState=function(){return this.F$().getVisibilityState(this.zE(),this.JS()||g.jV(this.app.j()),this.isMinimized(),this.isInline(),this.app.PQ(),this.app.hw(),this.app.Vq(),this.app.XP())}; g.h.isMutedByMutedAutoplay=function(){return this.app.kf}; g.h.isMutedByEmbedsMutedAutoplay=function(){return b4(this.app)}; g.h.setInternalSize=function(l,n){this.app.xP().setInternalSize(new g.re(l,n))}; g.h.ez=function(){var l=this.app.Mv();return l?l.ez():0}; g.h.isMinimized=function(){return this.app.isMinimized()}; g.h.PQ=function(){return this.app.PQ()}; g.h.zE=function(){var l=this.app.AG();return!!l&&l.zE()}; g.h.setSafetyMode=function(l){this.app.j().enableSafetyMode=l}; g.h.canPlayType=function(l){return this.app.canPlayType(l)}; g.h.updatePlaylist=function(l){if(l){var n=this.getPlaylistId(),O=!1;n&&n!==l.list&&(O=!0);l.external_list!==void 0&&(this.app.il=Li(!1,l.external_list));var L=l.video;(n=this.app.getPlaylist())&&!O?this.isFullscreen()&&((O=L[n.index])&&O.encrypted_id!==g.E8(n).videoId||(l.index=n.index)):ym(this.app,{list:l.list,index:l.index,playlist_length:L.length});JEk(this.app.getPlaylist(),l);this.S3("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.h.updateVideoData=function(l,n){g.s7(this.app.Wj().getVideoData(),l,n)}; g.h.updateEnvironmentData=function(l){BI(this.app.j(),l,!1)}; g.h.yhG=function(l){this.app.sendVideoStatsEngageEvent(l,1)}; g.h.productsInVideoVisibilityUpdated=function(l){this.publish("changeProductsInVideoVisibility",l)}; g.h.isAtLiveHead=function(l,n){return this.app.isAtLiveHead(l,n===void 0?!0:n)}; g.h.getVideoAspectRatio=function(){return this.app.xP().getVideoAspectRatio()}; g.h.getPreferredQuality=function(){var l=this.app.AG();return l?l.getPreferredQuality():"unknown"}; g.h.getPlaybackQualityLabel=function(l){if(l=this.app.Mv(l)){var n,O;return((O=(n=l.getVideoData().W)==null?void 0:n.video)==null?void 0:O.qualityLabel)||""}return""}; g.h.setPlaybackQualityRange=function(l,n,O,L){(L=this.app.Mv(L))&&L.kD(g.gI(l,n||l,!0,"m"),!0,O)}; g.h.nYz=function(l,n,O){this.setPlaybackQualityRange(l,n,O,1)}; g.h.onAdUxClicked=function(l,n){this.publish("aduxclicked",l,n)}; g.h.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.h.dispatchReduxAction=function(l){g.lT.dispatch(l)}; g.h.highlightSettingsMenuItem=function(l){this.publish("highlightSettingsMenu",l)}; g.h.openSettingsMenuItem=function(l){this.publish("openSettingsMenuItem",l)}; g.h.m$=function(l,n){this.state.W.subscribe(l,n)}; g.h.WI1=function(l,n){this.state.W.unsubscribe(l,n)}; g.h.Nz=function(l,n){this.cueVideoByPlayerVars(l,n===void 0?1:n)}; g.h.YfG=function(l,n,O,L){this.loadVideoByPlayerVars(l,n,O===void 0?1:O,L)}; g.h.jAJ=function(l,n,O,L){this.preloadVideoByPlayerVars(l,n===void 0?1:n,O,L)}; g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.h.bU=function(){return g.AA(this).bU()}; g.h.Rp=function(){return g.AA(this).Rp()}; g.h.nL=function(){return g.AA(this).nL()}; g.h.VE=function(){return this.Fx().VE()}; g.h.BH=function(){var l=g.eq.apply(0,arguments),n;(n=this.VE()).BH.apply(n,g.E(l))}; g.h.h2=function(){this.VE().h2()}; g.h.J8=function(){this.VE().J8()}; g.h.CM=function(){this.VE().hide()}; g.h.v7=function(l,n,O,L,X,F,x,Z){this.VE().v7(l,n,O,L,X,F,x,Z)}; g.h.KY=function(l,n){this.VE().KY(l,n)}; g.h.PJ=function(l,n,O,L,X){this.Fx().PJ(l,n,O,L,X)}; g.h.jK=function(l){this.VE().setEnabled(l)}; g.h.On=function(l,n){this.Fx().On(l,n)}; g.h.Ha=function(l,n){this.Fx().Ha(l,n)}; g.h.zC=function(l,n){this.Fx().zC(l,n)}; g.h.Pd=function(){this.Fx().Pd()}; g.h.O3=function(l,n){this.Fx().O3(l,n)}; g.h.Iv=Oi(4);g.h.GJ=Oi(6);g.h.p8=Oi(9);g.h.jC=Oi(12);g.h.renderChapterSeekingAnimation=function(l,n,O){this.Fx().renderChapterSeekingAnimation(l,n,O)}; g.h.m0=function(){this.Fx().m0()}; g.h.getWebPlayerContextConfig=function(){return this.app.j().getWebPlayerContextConfig()}; g.h.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")}; g.h.Qw=function(){var l=this.app.AG();return l?l.Qw():""};g.u(g.DQ,g.TM);g.h=g.DQ.prototype;g.h.iI=function(l,n,O,L,X,F,x){return this.app.iI(l,n,O,L,X,F,x)}; g.h.IT=function(){return this.app.IT()}; g.h.iG=Oi(14);g.h.dc=function(){return this.app.dc()}; g.h.oR=function(){var l=this.dc().ri.get("endscreen");return!!l&&l.oR()}; g.h.getRootNode=function(){return this.xP().element}; g.h.j=function(){return this.app.j()}; g.h.pz=Oi(17);g.h.A2=function(l){return this.app.A2(l)}; g.h.a7=function(){var l;return((l=g.AA(this))==null?void 0:l.a7())||null}; g.h.sj=function(){var l;return(l=this.app.AG())==null?void 0:l.sj()}; g.h.getPlayerStateObject=function(l){return this.app.getPlayerStateObject(l)}; g.h.xP=function(){return this.app.xP()}; g.h.getPlaylist=function(){return this.app.getPlaylist()}; g.h.getVideoData=function(l,n){n=n===void 0?!1:n;var O=this.app.Mv(l);if(!O)return null;O=O.getVideoData();if(n)var L=O;else if(O.enableServerStitchedDai&&l===2||g.fy(O)&&l!==1)a:{O=this.app;n=O.getVideoData();if(O.kh){l=O.kh;O=O.getCurrentTime();if(l.zo)var X=void 0;else{var F=void 0;l.L5&&(F=l.N.get(l.L5));if(!F){F=atv(l,O*1E3);var x=(X=F)==null?void 0:X.cpn;l.L5?x&&l.L5!==x&&l.Nv({cpcnm:x+"_"+l.L5,cmt:O.toFixed(3)}):l.Nv({cpcna:x,cmt:O.toFixed(3)})}X=(L=F)==null?void 0:L.videoData}n=X||n}else if(O.s_&& O.AG()){L=O.s_.getVideoData(l);break a}L=n}else L=O;return L}; g.h.wF=function(){var l;return((l=this.app.AG())==null?void 0:l.wF())||null}; g.h.LM=function(l){return this.app.LM(l)}; g.h.XP=function(){return this.app.XP()}; g.h.isHdr=function(){var l=this.app.AG();return l?l.isHdr():!1}; g.h.b3=function(){return this.app.b3()}; g.h.isEmbedsShortsMode=function(){var l=g.AA(this),n=this.getVideoData();l=l?l.ma:this.getPlayerSize();var O=!!this.getPlaylist();return!(!n||!n.isEmbedsShortsMode(new g.re(l.width,l.height),O))}; g.h.Kc=function(l){this.app.Kc(l)}; g.h.M_=function(l,n,O,L,X){this.app.Qf(l,n,O,L,X)}; g.h.n8=function(l,n){this.app.n8(l,n)}; g.h.playVideo=function(l,n){try{if(this.getPresentingPlayerType()===3){y7(this.app.dc()).BB("control_play");return}if(!l&&this.getPresentingPlayerType()===2){var O=dt(this.app.dc());if(O&&myf(O))return}}catch(L){g.Ir(L)}this.app.playVideo(l,n)}; g.h.stopVideo=function(l){this.app.Mv(l).stopVideo()}; g.h.Ya=function(l){this.app.Mv(l).Ya()}; g.h.addEventListener=function(l,n){this.state.N.subscribe(l,n)}; g.h.removeEventListener=function(l,n){this.state.N.unsubscribe(l,n)}; g.h.uq=function(l){this.app.uq(l)}; g.h.setPlaybackQuality=function(l,n){this.setPlaybackQualityRange(l,l,n)}; g.h.Si=function(){var l={},n=this.app.AG().Si();n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=O.value,l[O.quality]=O;return l}; g.h.C4=function(){return this.app.AG().C4()}; g.h.FU=Oi(22);g.h.tI=function(l){this.app.tI(l);l&&CWg(this.app,l)}; g.h.getVideoUrl=function(l,n,O,L){var X=this.getPresentingPlayerType(),F=X===2;if(L&&F||X===3)F=!1,X=1;L=this.getVideoData(X);if(!L)return"";var x;l||L.isLivePlayback||(x=Math.floor(this.getCurrentTime(X)));l=F?void 0:this.getPlaylistId()||void 0;n&&l==="WL"&&(l=void 0);return this.app.getVideoUrl(L.videoId,l,x,n,O)}; g.h.ut=Oi(24);g.h.pB=Oi(29);g.h.Z0=function(l){var n;(n=this.app.AG())==null||n.Z0(l)}; g.h.kT=Oi(34);g.h.fM=Oi(39);g.h.ql=function(l,n){this.dc().ql(l,n)}; g.h.md=function(){var l=g.B8(this.dc());return!!l&&l.md()}; g.h.MF=function(){var l=g.B8(this.dc());return!!l&&l.MF()}; g.h.jw=function(l,n,O){var L=g.B8(this.dc());L&&L.jw(l,n,O)}; g.h.AK=Oi(40);g.h.wk=function(){var l;(l=this.app.AG())!=null&&l.uF.wk()}; g.h.Me=function(l){this.S3("onVideoAreaChange");this.S3(l?"onShowControls":"onHideControls")}; g.h.FC=function(l,n){var O=g.AA(this);if(O)return O.FC(l,n);l=this.app.xP().Dm();return new g.xH(0,0,l.width,l.height)}; g.h.TU=function(){var l=this.dc().ri.get("heartbeat");return!!l&&l.TU()}; g.h.qJ=function(){var l=this.j();if(l.Hm||l.disableSeek)return!1;var n=this.app.AG();if(!n)return!1;var O=n.getVideoData();if(!O.MP()||g.kZ(O)||this.getPresentingPlayerType()===2&&!this.app.dB()||O.iK()&&this.getPresentingPlayerType(!0)===2||n.Pp()&&this.getPresentingPlayerType()!==3)return!1;l=g.dn(l);return g.JB(l)&&!O.eF||b4(this.app)?!1:!0}; g.h.Ej=function(){var l=this.app.AG();return l?l.Ux():!1}; g.h.isLifaAdPlaying=function(){var l,n=(l=this.getVideoData())==null?void 0:l.iK();return n?this.getPresentingPlayerType(n)===2:!1}; g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.h.Yc=function(){var l;(l=this.app.AG())==null||l.Yc()}; g.h.sendVideoStatsEngageEvent=function(l,n,O){this.app.sendVideoStatsEngageEvent(l,O,n)}; g.h.RA=function(l,n,O){this.app.RL(l,n,O)}; g.h.lV=function(l,n){this.app.ZW(l,n)}; g.h.cS=function(l,n){er5(this.app,l,n)}; g.h.nP=Oi(43);g.h.Ov=function(l){return this.app.Ov(l)}; g.h.T1=function(l,n){var O;(O=this.app.Mv(n))==null||O.T1(l)}; g.h.Pp=function(){var l=this.app.Mv();return l?l.Pp():!0}; g.h.iT=function(){var l=this.getVideoData();return!!l&&(l.iT()||!!l.hlsFormats||!!l.M5)}; g.h.getPlaybackRate=function(){return this.app.Wj().getPlaybackRate()}; g.h.setPlaybackRate=function(l,n){this.app.setPlaybackRate(l,n)}; g.h.T$=function(){return this.app.T$()}; g.h.GE=function(){return this.app.GE()}; g.h.MJ=function(l){return this.app.MJ(l)}; g.h.createClientVe=function(l,n,O,L){this.j().Pm&&this.app.Ok.createClientVe(l,n,O,L===void 0?!1:L)}; g.h.createServerVe=function(l,n,O){this.j().Pm&&this.app.Ok.createServerVe(l,n,O===void 0?!1:O)}; g.h.setTrackingParams=function(l,n){this.j().Pm&&this.app.Ok.setTrackingParams(l,n)}; g.h.logClick=function(l,n){this.j().Pm&&(this.app.Ok.click(l,n),this.publish("veClickLogged",l))}; g.h.logVisibility=function(l,n,O){this.j().Pm&&this.app.Ok.vk(l,n,O)}; g.h.hasVe=function(l){return this.j().Pm?this.app.Ok.hasVe(l):!1}; g.h.destroyVe=function(l){this.j().Pm&&this.app.Ok.destroyVe(l)}; g.h.getPresentingPlayerType=function(l){return this.app.getPresentingPlayerType(l)}; g.h.kC=function(){this.app.kC()}; g.h.dS=Oi(45);g.h.kc=function(l){this.app.kc(l)}; g.h.Ft=function(){this.app.Ft()}; g.h.KF=function(){return this.app.KF()}; g.h.addPlayerResponseForAssociation=function(l){this.app.addPlayerResponseForAssociation(l)}; g.h.finishSegmentByCpn=function(l,n,O){return this.app.finishSegmentByCpn(l,n,O)}; g.h.Iw=function(l,n,O,L,X,F,x){return this.app.Iw(l,n,O,L,X,F,x)}; g.h.Ht=function(l,n,O,L,X,F,x){return this.app.Ht(l,n,O,L,X,F,x)}; g.h.Qq=function(){return this.app.Qq()}; g.h.Bs=function(l){this.app.Bs(l)}; g.h.vK=function(l,n){n=n===void 0?Infinity:n;this.app.vK(l===void 0?-1:l,n)}; g.h.Ea=function(l){var n;(n=g.G4(this.dc()))==null||n.Ea(l)}; g.h.C9=function(l,n,O){this.app.C9(l,n,O)}; g.h.td=function(){return this.app.td()}; g.h.sQ=function(l,n,O){this.app.sQ(l,n,O===void 0?0:O)}; g.h.o0=function(){return this.app.o0()}; g.h.dB=function(){return this.app.dB()}; g.h.sR=function(l,n,O){return this.app.sR(l,n,O)}; g.h.Sp=function(l,n,O,L){O=O===void 0?!1:O;var X;(X=this.app.Mv(L))==null||X.Sp(l,n,O)}; g.h.jq=function(l,n){this.publish("aduxmouseover",l,n)}; g.h.AR=function(l,n){this.publish("aduxmouseout",l,n)}; g.h.gx=function(l,n){this.publish("muteadaccepted",l,n)}; g.h.Ls=function(){return this.app.xP().Ls()}; g.h.ZE=function(l){this.app.xP().ZE(l)}; g.h.mA=function(l){return l?this.app.B4():(l=this.app.AG())?l.mA():!1}; g.h.Yz=function(l){this.app.Yz(l)}; g.h.JL=function(){this.app.Wj().JL()}; g.h.u0=function(){var l;(l=this.app.AG())==null||l.u0()}; g.h.sV=function(){this.app.sV()}; g.h.getGetAdBreakContext=function(){var l=this.app.Wj();return l.getVideoData().getGetAdBreakContext(l.getCurrentTime(),l.ez())}; g.h.KV=function(l,n){var O;(O=this.app.AG())==null||O.KV(l,n)}; g.h.tJ=function(){var l;return((l=this.app.AG())==null?void 0:l.tJ())||!1};var Ic;g.u(mM,ck);mM.prototype.pU=function(l,n){l=ck.prototype.pU.call(this,l,n);return Object.assign({},l,this.requestHeaders)};g.u(g.V7,g.Aj);g.h=g.V7.prototype;g.h.show=function(){var l=this.iV();g.Aj.prototype.show.call(this);this.Q5&&(this.G.U(window,"blur",this.Te),this.G.U(BD(this),"click",this.p$));l||this.publish("show",!0)}; g.h.hide=function(){var l=this.iV();g.Aj.prototype.hide.call(this);iW0(this);l&&this.publish("show",!1)}; g.h.In=function(l,n){this.W=l;this.fade.show();n?(this.Y||(this.Y=this.G.U(this.C,"appresize",this.FO)),this.FO()):this.Y&&(this.G.EC(this.Y),this.Y=void 0)}; g.h.u$=function(){this.W&&this.element&&(this.W.getAttribute("aria-haspopup"),this.W.setAttribute("aria-expanded","true"),this.focus())}; g.h.FO=function(){var l=g.AA(this.C);this.W&&l.PJ(this.element,this.W)}; g.h.Te=function(){var l=this.iV();iW0(this);this.fade.hide();l&&this.publish("show",!1)}; g.h.p$=function(l){var n=kT(l);n&&(g.Fg(this.element,n)||this.W&&g.Fg(this.W,n)||!g.yz(l))||this.Te()}; g.h.iV=function(){return this.Qp&&this.fade.state!==4};g.u(i4,g.V7);i4.prototype.In=function(){g.V7.prototype.In.call(this);this.dialog.focus()};g.u(g.SR,g.Aj);g.SR.prototype.setIcon=function(l){this.updateValue("icon",l)}; g.SR.prototype.updateValue=function(l,n){g.Aj.prototype.updateValue.call(this,l,n);this.publish("size-change")};g.Fo={l4:15,Ys1:14,w5J:13,I5:12,ZC:11,Kk:10,YH:9,jY:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,b4:4,Ku:3,Pcq:2,REMOTE:1,Ffz:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.u(sY,g.SR);sY.prototype.Ge=function(l){this.W&&this.C.logVisibility(this.element,this.S&&l)}; sY.prototype.L=function(){var l,n,O=(l=this.C.getVideoData())==null?void 0:(n=l.accountLinkingConfig)==null?void 0:n.linked;if(O&&!this.S){var L;l=(L=this.C.getVideoData())==null?void 0:L.accountLinkingConfig;this.setIcon(N6());var X;g.zM(this,fF(l==null?void 0:(X=l.menuData)==null?void 0:X.connectedMenuLabel));var F,x,Z;this.N=new i4(this.C,fF(l==null?void 0:(F=l.menuData)==null?void 0:F.connectedDialogTitle),fF(l==null?void 0:(x=l.menuData)==null?void 0:x.connectedDialogMessage),fF(l==null?void 0: (Z=l.menuData)==null?void 0:Z.confirmButtonText));g.c(this,this.N);var J;L=(l==null?void 0:(J=l.menuData)==null?void 0:J.trackingParams)||null;(this.W=!!L)&&this.C.setTrackingParams(this.element,L);this.C5.yu(this);this.S=!0}else!O&&this.S&&(this.C5.UP(this),this.S=!1)}; sY.prototype.onClick=function(){this.W&&this.C.logClick(this.element);this.C5.Te();this.N&&this.N.In()};g.u(KF,g.V);KF.prototype.J=function(l){return this.api.J(l)};g.u(ac,KF);ac.prototype.onVideoDataChange=function(l){if(!l.accountLinkingConfig){var n,O=(n=l.getPlayerResponse())==null?void 0:n.accountLinkingConfig;l.accountLinkingConfig=O}var L;if(n=(L=l.accountLinkingConfig)==null?void 0:L.alsParam)l.vr=n}; ac.prototype.setAccountLinkState=function(l){this.api.getVideoData().vr=l;this.api.wk()}; ac.prototype.updateAccountLinkingConfig=function(l){var n=this.api.getVideoData(),O=n.accountLinkingConfig;O&&(O.linked=l);this.api.publish("videodatachange","dataupdated",n,this.api.getPresentingPlayerType())};g.u(CF,KF); CF.prototype.W=function(l){var n=l.getId(),O=this.api.getVideoData(1),L=!this.api.isInline();if(!O.inlineMetricEnabled&&!this.api.J("enable_player_logging_lr_home_infeed_ads")||L){if(n==="part2viewed"){if(O.BN&&g.zu(O.BN),O.yD&&tA(this,O.yD),O.pV)for(var X={CPN:this.api.getVideoData().clientPlaybackNonce},F=g.P(O.pV),x=F.next();!x.done;x=F.next())tA(this,g.jt(x.value,X))}else n==="conversionview"?this.api.JL():n==="engagedview"&&O.AP&&(X={CPN:this.api.getVideoData().clientPlaybackNonce},g.zu(g.jt(O.AP, X)));O.y3&&(X=O.y3,F=l.getId(),X=FX(X,{label:F}),g.zu(X));switch(n){case "videoplaytime25":O.Lt&&tA(this,O.Lt);O.uY&&vD(this,O.uY);O.TL&&g.zu(O.TL);break;case "videoplaytime50":O.Ct&&tA(this,O.Ct);O.WU&&vD(this,O.WU);O.U4&&g.zu(O.U4);break;case "videoplaytime75":O.V3&&tA(this,O.V3);O.s6&&vD(this,O.s6);O.k7&&g.zu(O.k7);break;case "videoplaytime100":O.rO&&tA(this,O.rO),O.Yp&&vD(this,O.Yp),O.s4&&g.zu(O.s4)}(X=this.api.getVideoData().qA)&&fja(this,X,l.getId())&&fja(this,X,l.getId()+"gaia")}if(O.inlineMetricEnabled&& !L)switch(n){case "videoplaybackstart":var Z,J=(Z=O.Cm)==null?void 0:Z.S;J&&tA(this,J);break;case "videoplayback2s":(Z=(J=O.Cm)==null?void 0:J.N)&&tA(this,Z);break;case "videoplayback10s":var w;(Z=(w=O.Cm)==null?void 0:w.W)&&tA(this,Z)}this.api.lV([l],1)};g.u(ajf,KF);g.u(lg,g.f);g.h=lg.prototype; g.h.l2=function(){var l;if(l=this.C.getPresentingPlayerType()!==3&&g.GM(this.C)&&this.C.xP().getPlayerSize().width>=400)if(l=this.b5(),this.C.j().J("client_respect_autoplay_switch_button_renderer"))l=!!l.autoplaySwitchButtonRenderer;else{var n,O,L,X;l=!!((n=l.getWatchNextResponse())==null?0:(O=n.contents)==null?0:(L=O.twoColumnWatchNextResults)==null?0:(X=L.autoplay)==null?0:X.autoplay)!==!1}if(l)this.S||(this.S=!0,this.vk(this.S),this.C.j().J("web_player_autonav_toggle_always_listen")||RA0(this), n=this.b5(),this.qr(n.autonavState),this.C.logVisibility(this.element,this.S));else if(this.S=!1,this.vk(this.S),!this.C.j().J("web_player_autonav_toggle_always_listen"))for(this.C.j().J("web_player_autonav_toggle_always_listen"),n=g.P(this.W),O=n.next();!O.done;O=n.next())this.EC(O.value)}; g.h.qr=function(l){t70(this)?this.isChecked=l!==1:((l=l!==1)||(g.zK(),l=g.E0("web_autonav_allow_off_by_default")&&!g.SU(0,141)&&g.R3("AUTONAV_OFF_BY_DEFAULT")?!1:!g.SU(0,140)),this.isChecked=l);CZa(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.C.tI(this.isChecked?2:1);CZa(this);if(t70(this)){var l=this.b5().autoplaySwitchButtonRenderer;this.isChecked&&(l==null?0:l.onEnabledCommand)?this.C.lF("innertubeCommand",l.onEnabledCommand):!this.isChecked&&(l==null?0:l.onDisabledCommand)&&this.C.lF("innertubeCommand",l.onDisabledCommand)}this.C.logClick(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.b5=function(){return this.C.getVideoData(1)};g.u(vFf,KF);g.u(ne,g.SR);ne.prototype.onClick=function(){this.enabled&&(O3(this,!this.checked),this.publish("select",this.checked))}; ne.prototype.getValue=function(){return this.checked}; ne.prototype.setEnabled=function(l){(this.enabled=l)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var nWi=["en-CA","en","es-MX","fr-CA"];g.u(h7,ne);h7.prototype.y5=function(l){l?this.S||(this.C5.yu(this),this.S=!0):this.S&&(this.C5.UP(this),this.S=!1);this.S&&O3(this,uY9())}; h7.prototype.L=function(){g.ZW(this.element,"ytp-menuitem-highlight-transition-enabled")}; h7.prototype.N=function(l){var n=uY9();l!==n&&(n=g.zK(),sh(190,l),sh(192,!0),n.save(),this.C.lF("cinematicSettingsToggleChange",l))}; h7.prototype.oz=function(){this.S&&this.C5.UP(this);ne.prototype.oz.call(this)};g.u(ZK,KF);ZK.prototype.updateCinematicSettings=function(l){this.S=l;var n;(n=this.menuItem)==null||n.y5(l);this.api.publish("onCinematicSettingsVisibilityChange",l)};g.u(J7,KF);J7.prototype.pW=function(l,n){n=n.clipConfig;l==="dataloaded"&&n&&n.startTimeMs!=null&&n.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(n.startTimeMs)),endTimeMs:Math.floor(Number(n.endTimeMs)),postId:n.postId,type:"clips"})};g.u(wk,KF);wk.prototype.setCreatorEndscreenVisibility=function(l){var n;(n=c8(this.api.dc()))==null||n.vk(l)}; wk.prototype.S=function(l){function n(L){L==="creatorendscreen"&&(L=c8(O.api.dc()))&&L.jRm(O.hideButton)} var O=this;this.hideButton=l;this.events.U(this.api,"modulecreated",n);n("creatorendscreen")};g.u(HN,ne);HN.prototype.N=function(l){this.L(l?1:0)}; HN.prototype.W=function(){var l=this.hasDrcAudioTrack(),n=this.S()===1&&l;O3(this,n);this.setEnabled(l)}; HN.prototype.oz=function(){this.C5.UP(this);ne.prototype.oz.call(this)};g.u(A7,KF);A7.prototype.getDrcUserPreference=function(){return this.S}; A7.prototype.setDrcUserPreference=function(l){g.It("yt-player-drc-pref",l,31536E3);l!==this.S&&(this.S=l,this.updateEnvironmentData(),this.W()&&this.api.u0())}; A7.prototype.updateEnvironmentData=function(){this.api.j().IA=this.S===1}; A7.prototype.W=function(){var l,n,O=(l=this.api.getVideoData())==null?void 0:(n=l.N)==null?void 0:n.S;if(!O)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.J("mta_drc_mutual_exclusion_removal")){var L=this.api.getAudioTrack().O_.id;return jz(O,function(X){var F;return X.audio.S&&((F=X.O_)==null?void 0:F.id)===L})}return jz(O,function(X){var F; return((F=X.audio)==null?void 0:F.S)===!0})};g.u(bg,KF);bg.prototype.onVideoDataChange=function(){var l=this,n=this.api.getVideoData();this.api.cS("embargo",1);var O=n==null?void 0:n.hg.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(O==null?0:O.length)?XJg(this,O.filter(function(L){return L$i(l,L)})):(n==null?0:n.cueRanges)&&XJg(this,n.cueRanges.filter(function(L){return L$i(l,L)}))}; bg.prototype.W=function(l){return l.embargo!==void 0}; bg.prototype.oz=function(){KF.prototype.oz.call(this);this.S={}};g.u(rk,KF); rk.prototype.addEmbedsConversionTrackingParams=function(l){var n=this.api.j(),O=n.widgetReferrer,L=n.nf,X=this.S,F="",x=n.getWebPlayerContextConfig();x&&(F=x.embedsIframeOriginParam||"");O.length>0&&(l.embeds_widget_referrer=O);L.length>0&&(l.embeds_referring_euri=L);n.L&&F.length>0&&(l.embeds_referring_origin=F);x&&x.embedsFeature&&(l.feature=x.embedsFeature);X.length>0&&(n.J("embeds_web_enable_lite_experiment_control_arm_logging")?X.unshift(28572):g.JB(g.dn(n))&&X.unshift(159628),n=X.join(","),n= g.s0()?n:g.TR(n,4),l.source_ve_path=n);this.S.length=0};g.u(oWi,KF);g.u(F$9,KF);g.u(U3,g.V);U3.prototype.oz=function(){g.V.prototype.oz.call(this);this.S=null;this.W&&this.W.disconnect()};g.u(hGi,KF);g.u(ug,g.f);ug.prototype.show=function(){g.f.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; ug.prototype.onVideoDataChange=function(l){var n,O,L=(n=this.api.getVideoData())==null?void 0:(O=n.getPlayerResponse())==null?void 0:O.playabilityStatus;L&&(n=ZDf(L),g.K(this.api.getPlayerStateObject(),128)||l==="dataloaderror"||!n?(this.W=0,PN(this),this.hide()):(l=(n.remainingTimeSecs||0)*1E3,l>0&&(this.show(),this.updateValue("label",PJ(n.label)),wJ9(this,l))))}; ug.prototype.oz=function(){PN(this);g.f.prototype.oz.call(this)};g.u(HDa,KF);g.u(TT,g.f);TT.prototype.onClick=function(){this.iF.logClick(this.element);this.iF.lF("onFullerscreenEduClicked")}; TT.prototype.y5=function(){this.iF.isFullscreen()?this.S?this.fade.hide():this.fade.show():this.hide();this.iF.logVisibility(this.element,this.iF.isFullscreen()&&!this.S)};g.u(WN,KF);WN.prototype.updateFullerscreenEduButtonSubtleModeState=function(l){var n;(n=this.S)!=null&&(g.wP(n.element,"ytp-fullerscreen-edu-button-subtle",l),l&&!n.W&&(n.element.setAttribute("title","Scroll for details"),EY(n.iF,n.element,n),n.W=!0))}; WN.prototype.updateFullerscreenEduButtonVisibility=function(l){var n;(n=this.S)!=null&&(n.S=l,n.y5())};g.u(Awq,g.f);g.u(U8e,KF);g.u(E3,KF);E3.prototype.getSphericalProperties=function(){var l=g.eR(this.api.dc());return l?l.getSphericalProperties():{}}; E3.prototype.setSphericalProperties=function(l){if(l){var n=g.eR(this.api.dc());n&&n.setSphericalProperties(l,!0)}};g.u(N$,KF);g.h=N$.prototype;g.h.createClientVe=function(l,n,O,L){this.api.createClientVe(l,n,O,L===void 0?!1:L)}; g.h.createServerVe=function(l,n,O){this.api.createServerVe(l,n,O===void 0?!1:O)}; g.h.setTrackingParams=function(l,n){this.api.setTrackingParams(l,n)}; g.h.logClick=function(l,n){this.api.logClick(l,n)}; g.h.logVisibility=function(l,n,O){this.api.logVisibility(l,n,O)}; g.h.hasVe=function(l){return this.api.hasVe(l)}; g.h.destroyVe=function(l){this.api.destroyVe(l)};var Poa=!1;q$.prototype.setPlaybackRate=function(l){this.playbackRate=Math.max(1,l)}; q$.prototype.getPlaybackRate=function(){return this.playbackRate};ex.prototype.Y8=function(l){var n=g.n5(l.info.S.info,this.T3.tA),O=l.info.Ef+this.L,L=l.info.startTime*1E3;if(this.policy.G3)try{L=this.policy.G3?g.lM(l)*1E3:l.info.startTime*1E3}catch(x){Math.random()>.99&&this.logger&&(L=DP(l.S).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:l.info.rK(),encodedDataView:g.Pd(L,4)})),L=l.info.startTime*1E3}var X=l.info.clipId,F=this.policy.G3?g.uOi(l)*1E3:l.info.duration*1E3;this.policy.G3&&(L<0||F<0)&&(this.logger&&(this.logger({missingSegInfo:l.info.rK(), startTimeMs:L,durationMs:F}),this.policy.Q8||(L<0&&(L=l.info.startTime*1E3),F<0&&(F=l.info.duration*1E3))),this.policy.Q8&&(L<0&&(L=l.info.startTime*1E3),F<0&&(F=l.info.duration*1E3)));return{formatId:n,Ef:O,startTimeMs:L,clipId:X,HL:F}}; ex.prototype.W5=function(l){this.timestampOffset=l};GT.prototype.seek=function(l,n){l!==this.S&&(this.seekCount=0);this.S=l;var O=this.videoTrack.W,L=this.audioTrack.W,X=this.audioTrack.Xp,F=$89(this,this.videoTrack,l,this.videoTrack.Xp,n);n=$89(this,this.audioTrack,this.policy.lf?l:F,X,n);l=Math.max(l,F,n);this.B=!0;this.T3.isManifestless&&(jRe(this,this.videoTrack,O),jRe(this,this.audioTrack,L));return l}; GT.prototype.isSeeking=function(){return this.B}; GT.prototype.u8=function(l){this.N=l}; var d8g=2/24;var cwe=0;g.h=pe.prototype;g.h.qg=function(){this.Wm=this.now();BXv(this.Rn,this.Wm);this.hA.qg()}; g.h.Hf=function(l,n){var O=this.policy.W?(0,g.Q_)():0;s3(this,l,n);l-this.V<10&&this.W>0||this.Jl(l,n);this.hA.Hf(l,n);this.policy.W&&(l=(0,g.Q_)()-O,this.JA+=l,this.Yo=Math.max(l,this.Yo))}; g.h.Jl=function(l,n){var O=(l-this.V)/1E3,L=n-this.N;this.a4||(PI(this.Rn,O,L),this.iA(O,L));this.V=l;this.N=n}; g.h.v$=function(){this.Cf&&iD0(this);this.hA.v$()}; g.h.Vg=function(l){this.Cf||(this.Cf=this.B-this.n5+l,this.Wk=this.B,this.hC=this.T)}; g.h.tD=function(l,n){l=l===void 0?this.T:l;n=n===void 0?this.B:n;this.W>0||(this.Y=l,this.W=n,this.NQ=this.isActive=!0)}; g.h.X5=function(){return this.Uc||2}; g.h.Cy=function(){}; g.h.Ek=function(){var l,n={rn:this.requestNumber,rt:(this.T-this.S).toFixed(),lb:this.B,stall:(1E3*this.L).toFixed(),ht:(this.Wm-this.S).toFixed(),elt:(this.Y-this.S).toFixed(),elb:this.W,d:(l=this.z3)==null?void 0:l.OP()};this.url&&uC0(n,this.url);this.policy.W&&(n.mph=this.Yo.toFixed(),n.tph=this.JA.toFixed());n.ulb=this.Lf;n.ult=this.G;n.abw=this.wq;return n}; g.h.now=function(){return(0,g.Q_)()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.u(Ke,pe);g.h=Ke.prototype;g.h.Ek=function(){var l=pe.prototype.Ek.call(this);l.pb=this.EV;l.pt=(1E3*this.uv).toFixed();l.se=this.Sz;return l}; g.h.WO=function(){var l=this.hA;this.nf||(this.nf=l.WO?l.WO():1);return this.nf}; g.h.l3=function(){return this.nZ?this.WO()!==1:!1}; g.h.yL=function(l,n,O){if(!this.K5){this.K5=!0;if(!this.a4){s3(this,l,n);this.Jl(l,n);var L=this.WO();this.Sz=O;if(!this.policy.B||!this.a4)if(L===2&&this.policy.B){L=l-this.Y<this.X5()*1E3+50;O=this.G?this.Lf/(this.G/1E3):Math.max(this.policy.G,O||this.wq);var X=this.Gn*1.3;L&&O<X||(this.G?bO(this.Rn,this.G/1E3,this.Lf,this.Hm||this.policy.NQ):bO(this.Rn,n/O,n,.01));UI(this.Rn,n,L?0:this.L)}else L===2?this.a4||(this.G?bO(this.Rn,this.G/1E3,this.Lf,this.Hm||this.policy.NQ):bO(this.Rn,n/Math.max(this.policy.G, O||this.wq),n,.01),UI(this.Rn,n,this.L)):L===1&&(L=(l-this.S)/1E3,!(L<=this.policy.L)&&this.policy.L||this.oO||this.policy.Q5||!(this.W>0)||aq(this,L,n),this.W>0&&UI(this.Rn,n,this.L));l=(l-this.S)/1E3||.01;this.policy.Wm&&!(this.W>0)||rn(this.Rn,l,this.N,SA5(this),this.wH)}this.deactivate()}}; g.h.g_=function(l,n,O){O&&(this.nf=2);l<0&&this.Uc&&(l=this.Uc);n?this.G3+=l:this.Hm+=l}; g.h.X5=function(){return this.Hm||this.G3||pe.prototype.X5.call(this)}; g.h.Jl=function(l,n){var O=(l-this.V)/1E3,L=n-this.N,X=this.WO();this.isActive?X===1&&((L>0||this.policy.V)&&(O>.2||L<1024)?(this.L+=O,L>0&&O>.2&&aq(this,this.Gn?O:.05,L),this.oO=!0):L>0&&(aq(this,O,L),this.oO=!0)):n&&n>=this.policy.S&&this.tD(l,n);pe.prototype.Jl.call(this,l,n)}; g.h.CE=function(l){if(!this.a4){s3(this,l,this.B);var n=(l-this.S)/1E3;this.WO()!==2&&this.W>0&&(this.L+=(l-this.V)/1E3,UI(this.Rn,this.N,this.L));rn(this.Rn,n,this.N,SA5(this),this.wH,!0);l=(l-this.V)/1E3;PI(this.Rn,l,0);this.iA(l,0)}}; g.h.tD=function(l,n){l=l===void 0?this.T:l;n=n===void 0?this.B:n;if(!(this.W>0)&&(pe.prototype.tD.call(this,l,n),this.WO()===1)){n=(this.Wm-this.S)/1E3;var O=(l-this.Wm)/1E3;this.nZ&&Rq(this,this.now());this.Fp||this.a4||(this.Uc&&(O=Math.max(0,O-this.Uc)),l=this.Rn,l.G.Zm(1,n),l.Cf.Zm(1,O))}}; g.h.i$=function(){this.nZ&&Rq(this,this.now());return this.Pm}; g.h.f4=function(){var l;if(l=this.N>this.GS)l=(l=this.N)?l>=this.policy.S:!1;return l}; g.h.Iy=function(){return this.Of}; g.h.HW=function(l){l=l===void 0?this.now():l;if(this.nZ){Rq(this,l);if(this.nf?this.l3():this.Q5!==this.Fi){var n=this.Fi;if(l<n){this.Of=this.Fi;return}}else n=this.Q5;n=Math.max(n,this.Pm)}else n=this.Pm;var O=this.EV-this.N;O<0&&(O=0);O=(O*this.snapshot.stall+O/this.snapshot.byterate)*1E3;this.Of=O=this.W>0?O+l:O+Math.max(l,n)}; g.h.Hc=function(){return this.now()-this.Y}; g.h.Mx=function(){return(this.N-this.W)*1E3/this.Hc()||0}; g.h.aC=function(){return this.Y};Ce.prototype.feed=function(l){TA(this.S,l);this.yV()}; Ce.prototype.yV=function(){if(this.L){if(!this.S.getLength())return;var l=this.S.split(this.N-this.W),n=l.v_;l=l.WH;if(!this.hA.Vg(this.L,n,this.W,this.N))return;this.W+=n.getLength();this.S=l;this.W===this.N&&(this.L=this.N=this.W=void 0)}for(;;){var O=0;l=g.P(K$5(this.S,O));n=l.next().value;O=l.next().value;O=g.P(K$5(this.S,O));l=O.next().value;O=O.next().value;if(n<0||l<0)break;if(!this.S.aS(O,l)){if(!this.hA.Vg||!this.S.aS(O,1))break;O=this.S.split(O).WH;this.hA.Vg(n,O,0,l)&&(this.L=n,this.W= O.getLength(),this.N=l,this.S=new Pa([]));break}l=this.S.split(O).WH.split(l);O=l.WH;this.hA.v8(n,l.v_);this.S=O}}; Ce.prototype.dispose=function(){this.S=new Pa};g.h=t7.prototype;g.h.qx=function(){return 0}; g.h.qb=function(){return null}; g.h.Cq=function(){return null}; g.h.Yb=function(){return this.state>=1}; g.h.isComplete=function(){return this.state>=3}; g.h.Ad=function(){return this.state===5}; g.h.onStateChange=function(){}; g.h.OC=function(l){var n=this.state;this.state=l;this.onStateChange(n);this.callback&&this.callback(this,n)}; g.h.ZL=function(l){l&&this.state<l?this.OC(l):this.callback&&this.callback(this,this.state)}; g.h.JG=function(){return this.state===-1}; g.h.rK=function(){var l="";this.info.Z2.forEach(function(n){l+=n.rK()+"."}); return l.slice(0,-1)}; g.h.dispose=function(){this.JG()||(this.info.Z2[0].S.N=!1,this.OC(-1))}; g.h.kN=function(){return 0};g.h=vN.prototype;g.h.W8=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.hA.qg()}; g.h.onError=function(){this.N=!0;this.onDone()}; g.h.onDone=function(){this.JG||(this.L=!0,this.hA.v$())}; g.h.GK=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(l){try{return this.xhr.getResponseHeader(l)}catch(n){return""}}; g.h.nU=function(){return+this.getResponseHeader("content-length")}; g.h.To=function(){return this.W}; g.h.IK=function(){return this.status>=200&&this.status<300&&!!this.W}; g.h.U8=function(){return this.S.getLength()>0}; g.h.eW=function(){var l=this.S;this.S=new Pa;return l}; g.h.u9=function(){return this.S}; g.h.abort=function(){this.JG=!0;this.xhr.abort()}; g.h.Ga=function(){return!0}; g.h.Cr=function(){return this.N}; g.h.gB=function(){return""};g.h=tk5.prototype;g.h.getResponseHeader=function(l){return l==="content-type"?this.S.get("type"):""}; g.h.abort=function(){}; g.h.GK=function(){return!0}; g.h.nU=function(){return this.range.length}; g.h.To=function(){return this.loaded}; g.h.IK=function(){return!!this.loaded}; g.h.U8=function(){return!!this.W.getLength()}; g.h.eW=function(){var l=this.W;this.W=new Pa;return l}; g.h.u9=function(){return this.W}; g.h.Ga=function(){return!0}; g.h.Cr=function(){return!!this.error}; g.h.gB=function(){return this.error};g.h=lu5.prototype;g.h.start=function(l){var n={credentials:"include",cache:"no-store"};Object.assign(n,this.T);this.L&&(n.signal=this.L.signal);l=new Request(l,n);fetch(l).then(this.Y,this.onError).then(void 0,Z7)}; g.h.onDone=function(){this.JG()||this.hA.v$()}; g.h.getResponseHeader=function(l){return this.responseHeaders?this.responseHeaders.get(l):null}; g.h.GK=function(){return!!this.responseHeaders}; g.h.To=function(){return this.W}; g.h.nU=function(){return+this.getResponseHeader("content-length")}; g.h.IK=function(){return this.status>=200&&this.status<300&&!!this.W}; g.h.U8=function(){return!!this.S.getLength()}; g.h.eW=function(){this.U8();var l=this.S;this.S=new Pa;return l}; g.h.u9=function(){this.U8();return this.S}; g.h.JG=function(){return this.B}; g.h.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.L&&this.L.abort();this.B=!0}; g.h.Ga=function(){return!0}; g.h.Cr=function(){return this.V}; g.h.gB=function(){return this.errorMessage};g.h=nc5.prototype;g.h.onDone=function(){if(!this.JG){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(l){}this.S=!0;this.hA.v$()}}; g.h.W8=function(){this.xhr.readyState===2&&this.hA.qg()}; g.h.Mn=function(l){this.JG||(this.status=this.xhr.status,this.S||(this.W=l.loaded),this.hA.Hf((0,g.Q_)(),l.loaded))}; g.h.GK=function(){return this.xhr.readyState>=2}; g.h.getResponseHeader=function(l){try{return this.xhr.getResponseHeader(l)}catch(n){return g.d2(Error("Could not read XHR header "+l)),""}}; g.h.nU=function(){return+this.getResponseHeader("content-length")}; g.h.To=function(){return this.W}; g.h.IK=function(){return this.status>=200&&this.status<300&&this.S&&!!this.W}; g.h.U8=function(){return this.S&&!!this.response&&!!this.response.byteLength}; g.h.eW=function(){this.U8();var l=this.response;this.response=void 0;return new Pa([new Uint8Array(l)])}; g.h.u9=function(){this.U8();return new Pa([new Uint8Array(this.response)])}; g.h.abort=function(){this.JG=!0;this.xhr.abort()}; g.h.Ga=function(){return!1}; g.h.Cr=function(){return!1}; g.h.gB=function(){return""};g.OW.prototype.info=function(){}; g.OW.prototype.debug=function(){}; g.OW.prototype.S=function(l){gH.apply(null,[5,this.tag,l].concat(g.E(g.eq.apply(1,arguments))))}; var Lx7=new Map,Fx5=new Map,XW5=new function(){var l=this;this.S=new Map;this.DQ={x1p:function(){return l.S}}};g.u(La,g.V);La.prototype.uh=function(){if(!this.f1.length)return[];var l=this.f1;this.f1=[];this.N=g.fO(l).info;return l}; La.prototype.jc=function(){return this.f1}; La.prototype.oz=function(){g.V.prototype.oz.call(this);this.S=null;this.f1.length=0;this.Z2.length=0;this.N=null};g.u(oQ,g.V);g.h=oQ.prototype; g.h.hQF=function(){if(!this.JG()){var l=(0,g.Q_)(),n=!1;if(this.policy.dA){l=l-(this.timing.W>0?this.timing.Y:this.timing.S)-this.timing.X5()*1E3;var O=UL(Fw(this),!1);l>=2E3*O?n=!0:l>=this.policy.aP*O&&(this.S=this.policy.Rh)}else if(this.timing.W>0){if(this.B){this.policy.Xg&&(this.S=0);return}var L=this.timing.Iy();this.timing.HW();var X=this.timing.Iy();X-L>=this.policy.OU*.8?(this.S++,this.logger.debug(function(){return"Mispredicted by "+(X-L).toFixed(0)}),n=this.S>=5):this.S=0}else{var F=l- this.timing.i$(); this.policy.Rh&&F>0&&(this.S+=1);n=UL(Fw(this),!1)*this.policy.Yp;(n=F>n*1E3)&&this.logger.debug(function(){return"Elbow late by "+F.toFixed(3)})}this.S>0&&this.hA.QA(); n?this.OR(!1):this.W.start()}}; g.h.OR=function(l){this.L=!0;l&&!this.policy.sE&&(l=Fw(this),l.W+=1);this.hA.lO();this.lastError="net.timeout";hT(this)}; g.h.canRetry=function(l){var n=Fw(this);l=l?this.policy.w9:this.policy.S5;return n.timedOut<this.policy.iO&&n.S<l}; g.h.K2=function(){return this.lastError}; g.h.nz=function(){return this.S}; g.h.dispose=function(){this.W.dispose();g.V.prototype.dispose.call(this)};var hv={},M1k=(hv["1h"]=8,hv["9h"]=4,hv["1"]=8,hv["9"]=4,hv["("]=4,hv.h=2,hv.H=2,hv),Zr={},Qe7=(Zr.o=3,Zr.O=3,Zr.so=3,Zr.a=1,Zr.ah=1,Zr.A=1,Zr.m=1,Zr.M=1,Zr.sa=1,Zr.mac3=7,Zr.MAC3=7,Zr.meac3=5,Zr.MEAC3=5,Zr),Jv={},YH7=(Jv.o=0,Jv.O=0,Jv.a=0,Jv.ah=0,Jv.A=0,Jv.m=1,Jv.M=1,Jv.mac3=1,Jv.MAC3=1,Jv.meac3=1,Jv.MEAC3=1,Jv.so=4,Jv.sa=4,Jv);var meq={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var AT,Hm,bY=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Ecf=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],NI5=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],Dek=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],qH5=["412","359"],kP9=[["140"],["251"],["380"],["328"]],wG={},Pde=(wG["398"]="397 396 395 394 788 787".split(" "), wG["247"]=["780","779","244","243","242"],wG["136"]=["135","134","133","160"],wG["141"]=["140"],wG["251"]=["250"],wG["774"]=["251","250"],wG),H5={},TIa=(H5["135"]=["134","133","160"],H5["243"]=["242"],H5["781"]=["780","779"],H5["777"]=["776","775"],H5["396"]=["395","394"],H5["141"]=["140"],H5["251"]=["250"],H5),Av={},Wxa=(Av["274"]=["317","273","318","280","279"],Av["145"]=["144","222","223","143","142"],Av["141"]=["149"],Av["140"]=["149"],Av["380"]=["381"],Av["328"]=["329"],Av),bP={},Ue5=(bP["133"]= 240,bP["134"]=360,bP["135"]=480,bP["136"]=720,bP["137"]=1080,bP["242"]=240,bP["243"]=360,bP["244"]=480,bP["247"]=720,bP["248"]=1080,bP["298"]=720,bP["299"]=1080,bP["302"]=720,bP["303"]=1080,bP["395"]=240,bP["396"]=360,bP["397"]=480,bP["398"]=720,bP["399"]=1080,bP);var je9={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.u(Iq,t7);g.h=Iq.prototype;g.h.ih=function(){return this.timing.requestNumber}; g.h.Ae=function(){return this.Je.Ae()}; g.h.s7=function(){var l=AFe(this.T2);if(this.vH){var n=this.vH,O=n.S.getLength();l.ulen=O;O>0&&(n=n.S.getUint8(0),l.ubyte=n,O===1&&n===0&&(l.b248180278=!0))}this.IR&&(l.rc=this.policy.mN?this.IR:this.IR.toString());this.policy.d8&&this.Ub&&(l.tr=this.Ub);l.itag=this.info.Z2[0].S.info.itag;l.ml=""+ +this.info.Z2[0].S.y4();l.sq=""+this.info.Z2[0].Ef;this.Je&&(l.ifi=""+ +qe(this.info.Vp.N));this.IR!==410&&this.IR!==500&&this.IR!==503||(l.fmt_unav="true");var L;(O=this.errorMessage||((L=this.xhr)==null? void 0:L.gB()))&&(l.msg=O);this.xI&&(l.smb="1");this.info.isDecorated()&&(l.sdai="1");return l}; g.h.h3=function(){return pJk(this.timing)}; g.h.gB=function(){return this.xhr.gB()||""}; g.h.f4=function(){return this.isComplete()||this.timing.f4()}; g.h.Hf=function(){!this.JG()&&this.xhr&&(this.IR=this.xhr.status,this.policy.Lg&&this.qn&&this.PH(!1),this.k6()?this.ZL(2):!this.Rg&&this.f4()&&(this.ZL(),this.Rg=!0))}; g.h.qg=function(){if(!this.JG()&&this.xhr){if(!this.RE&&this.xhr.GK()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var l=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.RE=((0,g.Q_)()-l)/1E3}this.xhr.GK()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.P7&&!eq5()&&g.It("yt-player-headers-readable",!0,2592E3);l=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var n=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),O;(O=this.QC)==null||O.stop();this.Vw=l||this.Vw; this.jt=n||this.jt}}; g.h.v$=function(){var l=this.xhr;if(!this.JG()&&l){this.IR=l.status;l=this.DH(l);if(this.policy.d8){var n;(n=this.QC)==null||n.stop()}l===5?hT(this.T2):this.OC(l);this.T2.W.stop()}}; g.h.DH=function(l){var n=this;BI5(this);if(Zn(this.T2,this.xhr.status,this.JE?this.timing.NQ||this.JB:this.xhr.IK(),!1,this.cD))return 5;var O="";JT(this.T2,this.xhr)&&(O=Hn9(this.T2,this.xhr));if(O)return rK(Fw(this.T2)),this.info.wb(this.Je,O),3;O=l.To();if(this.vH){this.PH(!0);BI5(this);if(Zn(this.T2,this.xhr.status,this.timing.NQ||this.JB,!1,this.cD))return 5;if(!this.SY){if(this.JB)return rK(Fw(this.T2)),3;this.T2.lastError="net.closed";return 5}}else{if(Zn(this.T2,this.xhr.status,this.xhr.IK(), !1,this.cD))return 5;var L=this.info.N;if(L&&L!==O||l.Cr())return this.T2.lastError="net.closed",5;this.PH(!0)}L=ab0(this)?l.getResponseHeader("X-Bandwidth-Est"):0;if(l=ab0(this)?l.getResponseHeader("X-Bandwidth-Est3"):0)this.Ky=!0,this.policy.OJ&&(L=l);JFe(this.T2,O,L?Number(L):0,this.info.Z2[0].type===5);this.logger.debug(function(){var X=n.timing;return"Succeeded, rtpd="+(X.uv*1E3+X.S-Date.now()).toFixed(0)}); return 4}; g.h.canRetry=function(){this.JG();var l=this.info.isDecorated();return this.T2.canRetry(l)}; g.h.onStateChange=function(){this.isComplete()&&(this.policy.D7?this.lO():this.timing.deactivate())}; g.h.OR=function(l){this.T2.OR(l)}; g.h.QA=function(){this.callback&&this.callback(this,this.state)}; g.h.nz=function(){return this.T2.nz()}; g.h.dispose=function(){t7.prototype.dispose.call(this);this.T2.dispose();var l;(l=this.QC)==null||l.dispose();this.policy.D7||this.lO()}; g.h.lO=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.h.uh=function(){if(!this.jc().length)return[];this.VA=!0;return this.qn.uh()}; g.h.k6=function(){if(this.state<1)return!1;if(this.qn&&this.qn.f1.length)return!0;var l;return((l=this.xhr)==null?0:l.U8())?!0:!1}; g.h.jc=function(){this.PH(!1);return this.qn?this.qn.jc():[]}; g.h.PH=function(l){try{if(l||this.xhr.GK()&&this.xhr.U8()&&!JT(this.T2,this.xhr)&&!this.QU)this.qn||(this.qn=new La(this.policy,this.info.Z2)),this.xhr.U8()&&(this.vH?this.vH.feed(this.xhr.eW()):Xw(this.qn,this.xhr.eW(),l&&!this.xhr.U8()))}catch(n){this.vH?de9(this,n):g.d2(n)}}; g.h.v8=function(l,n){switch(l){case 21:l=n.split(1).WH;$eq(this,l);break;case 22:this.SY=!0;Xw(this.qn,new Pa([]),!0);break;case 43:if(l=VN(new j9(n),1))this.info.wb(this.Je,l),this.JB=!0;break;case 45:n=ld(new j9(n));l=n.U3;n=n.A6;l&&n&&(this.EJ=l/n);break;case 44:this.P8=Q_5(new j9(n));var O,L,X;!this.timing.NQ&&((O=this.P8)==null?void 0:O.action)===4&&((L=this.P8)==null?0:(X=L.Pg)==null?0:X.JE)&&(this.JE=this.P8.Pg.JE);break;case 53:this.policy.d8&&(l=kxa(new j9(n)).FD)&&(this.QC||(this.FD=l,this.QC= new g.vs(this.qO,l,this)),this.QC.start());break;case 60:this.zk=vJ(new j9(n));break;case 58:if(l=LE9(new j9(n)))this.SN=l,l.SN===3&&(this.cD=!0)}}; g.h.Vg=function(l,n,O,L){O||this.timing.Vg(L);if(l!==21)return!1;if(l=this.policy.Lg)if(L=n.getLength()+O===L,l*=this.info.Z2[0].S.info.Sv,!L&&n.getLength()<l)return!1;if(!O){if(n.getLength()===1)return!0;n=n.split(1).WH}$eq(this,n);return!0}; g.h.To=function(){return this.xhr.To()}; g.h.qx=function(){return this.RE}; g.h.WO=function(){return this.l3()?2:1}; g.h.l3=function(){if(!this.policy.G.Ce||!isNaN(this.info.gZ)&&this.info.gZ>0)return!1;if(!this.xhr.GK())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.vH)var l=!this.info.N;else this.xhr.nU()?l=!1:(l=this.xhr.getResponseHeader("content-type"),l=l==="audio/mp4"||l==="video/mp4"||l==="video/webm");if(!l)return!1;if(isNaN(this.info.gZ)){l=this.xhr.getResponseHeader("x-head-seqnum");var n=this.timing.policy.Y?1:0;if(!l)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(l)>this.info.Z2[0].Ef+n)return!1}return!0}; g.h.kN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.qb=function(){this.xhr&&(this.Vw=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Vw}; g.h.Cq=function(){this.xhr&&(this.jt=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.jt}; g.h.K2=function(){return this.T2.K2()}; g.h.qO=function(){if(!this.JG()&&this.xhr){this.Ub="heartbeat";var l=this.T2;l.S+=2;this.QA()}};g.u(Pm,pe);g.h=Pm.prototype;g.h.Jl=function(l,n){var O=(l-this.V)/1E3,L=n-this.N;this.W>0?L>0&&(this.Q5&&(O>.2||L<1024?(this.L+=O,O>.2&&cFe(this,.05,L)):cFe(this,O,L)),this.Hm&&(this.Fi+=L,this.Pm+=O)):n>this.policy.S&&this.tD(l,n);pe.prototype.Jl.call(this,l,n)}; g.h.yL=function(l,n){s3(this,l,n);this.Jl(l,n);this.Q5&&(n=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.W>0&&UI(this.Rn,this.Fi,this.L),l=(l-this.S)/1E3||.01,this.policy.Wm&&!(this.W>0)||rn(this.Rn,l,this.N,n,!1))}; g.h.CE=function(l){s3(this,l,this.B);var n=(l-this.V)/1E3;PI(this.Rn,n,0);this.iA(n,0);!this.Q5&&this.W>0||(n=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.W>0&&(this.L+=(l-this.V)/1E3,UI(this.Rn,this.Fi,this.L)),rn(this.Rn,((l-this.S)/1E3||.01)*this.policy.Lf,this.N,n,!1,!0))}; g.h.FX=function(l){l=l.YL||2147483647;(l&2)!==2&&(this.Hm=!1);(l&1)===1&&(this.Q5=!0)}; g.h.Jm=function(l){l=l.YL||2147483647;(l&2)===2&&(this.Hm=!1);(l&1)===1&&(this.Q5=!1)}; g.h.aC=function(){return this.Y}; g.h.Hc=function(){var l=this.Hm?this.now()-this.V:0;return Math.max(this.Pm*1E3+l,1)}; g.h.Mx=function(){return this.Fi*1E3/this.Hc()}; g.h.tD=function(l,n){l=l===void 0?this.T:l;n=n===void 0?this.B:n;this.W>0||(pe.prototype.tD.call(this,l,n),n=this.Rn,l=(l-this.Wm)/1E3,n.G.Zm(1,(this.Wm-this.S)/1E3),n.Cf.Zm(1,l))}; g.h.Cy=function(l){this.G3=l}; g.h.Ek=function(){var l=pe.prototype.Ek.call(this);l.rbw=this.Mx();l.rbe=+this.Hm;l.gbe=+this.Q5;l.ackt=(this.G3-this.S).toFixed();return l}; g.h.HW=function(){}; g.h.Iy=function(){return NaN}; g.h.i$=function(){return this.S+this.snapshot.delay*1E3};TQ.prototype.v8=function(l,n){n.getLength();switch(l){case 20:l=new j9(n);l={BO:Im(l,1),videoId:VN(l,2),itag:Im(l,3),lmt:Im(l,4),xtags:VN(l,5),UA:Im(l,6),c5:d4(l,8),QS:Im(l,9),q73:Im(l,10),startMs:Im(l,11),durationMs:Im(l,12),Pf:Im(l,14),timeRange:Ba(l,15,iL9),YV:Im(l,16),VF:Im(l,17),clipId:VN(l,1E3)};this.Vx(l);break;case 21:this.Dp(n,!1);break;case 22:this.AS(n);break;case 31:l=zA(n,u4k);this.CK(l);break;case 52:l=zA(n,yJ0);this.Nk(l);break;default:this.xj(l,n)}}; TQ.prototype.Vx=function(){}; TQ.prototype.xj=function(){};g.u(Wm,TQ);g.h=Wm.prototype; g.h.xj=function(l,n){n.getLength();switch(l){case 35:this.ji(n);break;case 44:this.Ty(n);break;case 43:this.qh(n);break;case 53:this.zS(n);break;case 55:l=new j9(n);(l={timeline:Ba(l,1,YTq),HNm:Ba(l,2,mr5)},l.timeline)&&l.timeline.FA&&this.hA.Pu(l.timeline.FA,l.timeline.ZNp,l.HNm);break;case 56:this.qE();break;case 57:this.Tp(n);break;case 42:this.vu(n);break;case 45:this.pX(n);break;case 59:this.wy(n);break;case 51:this.XX(n);break;case 49:this.FX(n);break;case 50:this.Jm(n);break;case 47:this.iE(n); break;case 58:this.JD(n);break;case 61:this.hA.mG.Cy((0,g.Q_)());break;case 66:this.Bf(n);break;case 46:this.zy(n);break;case 67:this.onSnackbarMessage(n)}}; g.h.XX=function(l){l=new j9(l);l={uUQ:iv(l,1,CD),xIm:iv(l,2,CD)};this.hA.XX(l)}; g.h.wy=function(l){var n=new j9(l);l=ca(n,1);var O=ca(n,2);n=ca(n,3);this.hA.wy(l,O,n)}; g.h.pX=function(l){l=ld(new j9(l));this.hA.pX(l)}; g.h.iE=function(l){l=zA(l,WE7);this.hA.iE(l)}; g.h.vu=function(l){l=new j9(l);l={videoId:VN(l,1),formatId:Ba(l,2,CD),endTimeMs:Im(l,3),ySi:Im(l,4),mimeType:VN(l,5),ag:Ba(l,6,wZ8),indexRange:Ba(l,7,wZ8),Dq:Ba(l,8,H$a)};this.hA.vu(l)}; g.h.Tp=function(l){l=mr5(new j9(l));this.hA.Tp(l)}; g.h.qE=function(){this.hA.qE()}; g.h.ji=function(l){l=PNq(new j9(l));this.hA.ji(l)}; g.h.zS=function(l){l=kxa(new j9(l));this.hA.zS(l)}; g.h.Ty=function(l){l=Q_5(new j9(l));this.hA.Ty(l)}; g.h.qh=function(l){l={redirectUrl:VN(new j9(l),1)};this.hA.qh(l)}; g.h.Dp=function(l){var n=l.getUint8(0);if(l.getLength()!==1){l=l.split(1).WH;var O=this.W[n]||null;O&&Mw(this.hA.Q4,n,O,l)}}; g.h.AS=function(l){l=l.getUint8(0);var n=this.W[l]||null;n&&this.hA.AS(l,n)}; g.h.Nk=function(l){this.hA.Nk(l)}; g.h.Vx=function(l){var n=l.BO,O=l.c5,L=l.UA,X=l.VF,F=l.YV,x=l.QS,Z=l.startMs,J=l.durationMs,w=l.timeRange,H=l.Pf,A=l.clipId,b=Dy(l);l=d1q.has(pB[""+l.itag]);this.W[n]=b;this.hA.g_(b,l,{BO:n,c5:!!O,UA:L!=null?L:-1,QS:x!=null?x:-1,startMs:Z!=null?Z:-1,durationMs:J!=null?J:-1,Pf:H,VF:X,YV:F,clipId:A,timeRange:w})}; g.h.FX=function(l){l={YL:Im(new j9(l),1)};this.hA.FX(l)}; g.h.Jm=function(l){l={YL:Im(new j9(l),1)};this.hA.Jm(l)}; g.h.CK=function(l){this.hA.CK(l)}; g.h.JD=function(l){l=LE9(new j9(l));this.hA.JD(l)}; g.h.Bf=function(l){l={zU:Ba(new j9(l),1,Dre)};this.hA.Bf(l)}; g.h.onSnackbarMessage=function(l){l=Im(new j9(l),1);this.hA.onSnackbarMessage(l)}; g.h.zy=function(l){l={reloadPlaybackParams:Ba(new j9(l),1,gxv)};this.hA.zy(l)};g.u(EW,g.V);g.h=EW.prototype;g.h.aL=function(){return Array.from(this.pp.keys())}; g.h.Gz=function(l){l=this.pp.get(l);var n=l.f1;l.WK+=n.getLength();l.f1=new Pa;return n}; g.h.h7=function(l){return this.pp.get(l).h7}; g.h.p4=function(l){return this.pp.get(l).p4}; g.h.g_=function(l,n,O,L){this.pp.get(l)||se5(this,l,n);n=this.pp.get(l);if(this.T3){l=Kxq(this,l,O);if(L)for(var X=g.P(l),F=X.next();!F.done;F=X.next()){F=F.value;var x=L;F.Y=x;F.startTime+=x;F.Fo+=x;F.Pl+=x}fui(this,O.BO,n,l)}else O.c5?n.i6=O.Pf:n.s1.push(O),n.I9.push(O)}; g.h.rr=function(l){var n;return((n=this.pp.get(l))==null?void 0:n.Z2)||[]}; g.h.ZL=function(){for(var l=g.P(this.pp.values()),n=l.next();!n.done;n=l.next())n=n.value,n.R9&&(n.Mn&&n.Mn(),n.R9=!1)}; g.h.AS=function(l,n){this.logger.debug(function(){return"[onMediaEnd] formatId: "+n}); var O=this.pp.get(n);if(Nw){if(O&&!O.h7){if(O.jD.get(l))O.jD.get(l).K4=!0;else{var L;((L=this.e3)==null?0:L.z$)&&O.jD.set(l,{data:new Pa,zc:0,K4:!0})}O.p4=!0}}else O&&!O.p4&&(O.p4=!0)}; g.h.uh=function(l){if(Nw){var n=this.pp.get(l);if(n)for(var O=g.P(n.jD),L=O.next();!L.done;L=O.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;var F=n.fY.get(L);if(Yz(F[0])){if(!X.K4)continue;var x=F,Z=X.data;Z.getLength();F=0;var J=[];x=g.P(x);for(var w=x.next();!w.done;w=x.next()){w=w.value;var H=w.N,A=Wa(Z,F,H);F+=H;J.push(new tW(w,A))}n.QJ.push.apply(n.QJ,g.E(J))}else if(X.data.getLength()>0||!F[0].range&&X.K4)Z=void 0,F=F[0],J=X.zc,x=X.data,F.range||(Z=X.K4),w=x.getLength(),Z=new tW(tl5(F, F.W+J,w,Z),x),X.zc+=Z.info.N,n.QJ.push(Z);n.jD.get(L).data=new Pa;X.K4&&n.jD.delete(L)}l=this.pp.get(l);if(!l)return[];n=l.QJ;l.QJ=[];O=g.P(n);for(L=O.next();!L.done;L=O.next())l.WK+=L.value.info.N;return n||[]}O=(n=this.pp.get(l))==null?void 0:n.qn;if(!O)return[];this.PH(l,O);return O.uh()}; g.h.k6=function(l){if(Nw)return yP(this,l);var n,O,L;return!!((O=(n=this.pp.get(l))==null?void 0:n.qn)==null?0:(L=O.jc())==null?0:L.length)||yP(this,l)}; g.h.PH=function(l,n){for(;yP(this,l);){var O=this.Gz(l);var L=l;L=this.pp.get(L).h7&&!k0(this,L);Xw(n,O,L&&pWf(this,l))}}; g.h.oz=function(){g.V.prototype.oz.call(this);for(var l=g.P(this.pp.keys()),n=l.next();!n.done;n=l.next())Dn(this,n.value);var O;if((O=this.e3)==null?0:O.vp)for(l=g.P(this.pp.values()),n=l.next();!n.done;n=l.next())n=n.value,n.jD.clear(),n.fY.clear(),n.QJ.length=0,n.Z2.length=0,n.I9.length=0,n.s1.length=0;this.pp.clear()}; var Nw=!1;g.u(QP,g.V);g.h=QP.prototype;g.h.Hf=function(){!this.JG()&&this.xhr&&(this.PH(!1),lb(this.hA,this))}; g.h.qg=function(){}; g.h.v$=function(){if(!this.JG()&&this.xhr){var l=this.DH();l===5?hT(this.T2):this.OC(l);this.T2.W.stop();var n;(n=this.m2)==null||n.stop()}}; g.h.DH=function(){var l="";JT(this.T2,this.xhr)&&(l=Hn9(this.T2,this.xhr));if(l)return this.info.Vp.wb(this.Je,l),3;this.PH(!0);if(Zn(this.T2,this.xhr.status,this.xhr.IK(),this.info.YR(),this.cD))return 5;if(this.Ut)return 3;JFe(this.T2,this.xhr.To(),0,this.YR());this.policy.M5&&ekv(this.hA);return 4}; g.h.PH=function(l){var n=this.xhr;if((l||!JT(this.T2,this.xhr))&&n.U8()){l=n.eW();var O=l.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+O}); this.vH.feed(l)}}; g.h.v8=function(l,n){this.xhr.Ga()&&l===21&&t1q(this);this.As.v8(l,n)}; g.h.Vg=function(l,n,O,L){O||(this.mG.Vg(L),this.policy.eA&&l===21&&t1q(this));if(l!==21)return!1;this.mG.NQ=!0;l=n.getLength();O||(this.KC=n.getUint8(0),n=n.split(1).WH);var X=this.policy.s6,F=this.As.W[this.KC],x=this.T3.N.get(F);if(X&&x&&(X*=x.info.Sv,l+O!==L&&l<X))return!1;Mw(this.Q4,this.KC,F,n);return!0}; g.h.ji=function(l){this.hA.ji(l)}; g.h.zS=function(l){if(this.policy.enableServerDrivenRequestCancellation){var n;(n=this.m2)==null||n.dispose();this.gW=l;l.Wg&&(this.m2=new g.vs(this.EL,l.Wg,this));this.EL()}}; g.h.EL=function(){var l;if((l=this.gW)!=null&&l.items){var n;(n=this.m2)==null||n.start();if(this.mG.W>0){this.policy.dA&&this.T2.W.stop();l=this.mG.Hc();n=this.mG.Mx();var O=vc0(this,l);if(!(n>O.un||O.z4>0&&this.info.ao()>O.z4)){this.J6=(0,g.Q_)();var L;(L=this.m2)==null||L.stop();this.policy.M5&&(L=this.hA,l={YS:Math.round(n*l/1E3),V6:l},L.policy.M5&&(L.Cf=l,L.lW++));this.OR(!1)}}}}; g.h.OR=function(l){this.T2.OR(l)}; g.h.Ty=function(l){this.hA.Ty(l,this.ih())}; g.h.qh=function(l){this.Ut=!0;this.info.Vp.wb(this.Je,l.redirectUrl)}; g.h.FX=function(l){this.mG instanceof Pm&&this.mG.FX(l)}; g.h.Jm=function(l){this.mG instanceof Pm&&this.mG.Jm(l)}; g.h.Pu=function(l,n,O){this.hA.Pu(l,n,O,this.ih())}; g.h.vu=function(l){var n=l.formatId,O=Dy({itag:n.itag,lmt:n.lmt,xtags:n.xtags}),L,X,F=new kz(((L=l.ag)==null?void 0:L.first)||0,((X=l.ag)==null?void 0:X.cz)||0),x,Z;L=new kz(((x=l.indexRange)==null?void 0:x.first)||0,((Z=l.indexRange)==null?void 0:Z.cz)||0);if(!this.T3.N.get(O)){O=l.Dq||{};if(this.policy.IU){var J,w;l=(J=l.mimeType)!=null?J:"";J=(w=n.itag)!=null?w:0;w=pB[""+J];O.mimeType=w!=="9"&&w!=="9h"?l:'video/webm; codecs="'+["vp09",w==="9h"?"02":"00","51",w==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else O.mimeType=l.mimeType;O.itag=n.itag;O.lastModified=""+(n.lmt||0);O.xtags=n.xtags;n=this.T3;w=Uk("");J=bM(O,null);ha(n,new oS(w,J,F,L))}}; g.h.pX=function(l){this.hA.pX(l)}; g.h.onSnackbarMessage=function(l){if(this.policy.Pt)this.hA.onSnackbarMessage(l)}; g.h.CK=function(l){this.UI=l;this.ex=(0,g.Q_)();this.hA.CK(l)}; g.h.wy=function(l,n,O){this.hA.wy(l,n,O)}; g.h.Tp=function(l){l.scope===2&&(this.gYm=l);this.hA.Tp(l)}; g.h.qE=function(){this.PN=!0;this.hA.qE()}; g.h.XX=function(l){this.policy.q_&&this.hA.XX(l)}; g.h.iE=function(l){this.hA.iE(l,this.ih())}; g.h.JD=function(l){l.SN===3&&(this.cD=!0);this.hA.JD(l)}; g.h.Bf=function(l){this.hA.Bf(l)}; g.h.zy=function(l){this.hA.zy(l)}; g.h.canRetry=function(){this.JG();return this.T2.canRetry(!1)}; g.h.dispose=function(){if(!this.JG()){g.V.prototype.dispose.call(this);this.T2.dispose();var l;(l=this.m2)==null||l.dispose();this.OC(-1);this.lO()}}; g.h.OC=function(l){this.state=l;lb(this.hA,this)}; g.h.YR=function(){return this.info.YR()}; g.h.NC=function(){return this.PN}; g.h.lM=function(){return this.gYm}; g.h.g_=function(l,n,O){O.clipId&&(this.clipId=O.clipId);this.policy.B&&!n&&(this.Eu=O.QS,this.F4=O.startMs);var L=0;this.policy.ea&&this.wR&&this.clipId&&(L=Ye(this.wR,this.clipId)/1E3);this.Q4.g_(l,n,O,L);this.policy.o_&&this.UI&&this.mG instanceof Ke&&(L=this.UI.Cj,this.mG.g_(O.durationMs/1E3,n,L>0&&O.QS+1>=L));this.Q4.pp.get(l).Ag=!0}; g.h.AS=function(l,n){this.Q4.AS(l,n)}; g.h.Nk=function(l){this.requestIdentifier=l}; g.h.uh=function(l){return this.Q4.uh(l)}; g.h.rr=function(l){return this.Q4.rr(l)}; g.h.k6=function(l){return this.Q4.k6(l)}; g.h.aL=function(){return this.Q4.aL()}; g.h.WO=function(){return 1}; g.h.ih=function(){return this.mG.requestNumber}; g.h.fF=function(){return this.requestIdentifier}; g.h.sD=function(){return this.clipId}; g.h.Ae=function(){return this.Je.Ae()}; g.h.OL=function(){this.lO()}; g.h.lO=function(){this.mG.deactivate();var l;(l=this.xhr)==null||l.abort()}; g.h.isComplete=function(){return this.state>=3}; g.h.M4=function(){return this.state===3}; g.h.Ad=function(){return this.state===5}; g.h.f0=function(){return this.state===4}; g.h.CR=function(){return this.isComplete()}; g.h.Yb=function(){return this.state>=1}; g.h.nz=function(){return this.policy.Xg?this.T2.nz():0}; g.h.QA=function(){this.policy.Xg&&lb(this.hA,this)}; g.h.XJ=function(){return bw8(this.info)}; g.h.K2=function(){return this.T2.K2()}; g.h.s7=function(){var l=AFe(this.T2);Object.assign(l,Utf(this.info));l.req="sabr";l.rn=this.ih();var n;if((n=this.xhr)==null?0:n.status)l.rc=this.policy.mN?this.xhr.status:this.xhr.status.toString();var O;(n=(O=this.xhr)==null?void 0:O.gB())&&(l.msg=n);this.J6&&(O=vc0(this,this.J6-this.mG.aC()),l.letm=O.Mpz,l.mrbps=O.un,l.mram=O.z4);return l}; g.h.FJ=function(){return{Eu:this.Eu,F4:this.F4,isDecorated:this.info.isDecorated()}};lyi.prototype.tick=function(l,n){this.ticks[l]=n?window.performance.timing.navigationStart+n:(0,g.Q_)()};g.u(Y0,g.hj);g.h=Y0.prototype; g.h.aJ=function(l,n,O,L){var X=!1;this.policy.nf&&(X=O?this.Lf===l.Ef:this.Q5===l.Ef);if(this.V&&L&&!X){L=[];X=[];var F=[],x=void 0,Z=0;n&&(L=n.S,X=n.W,F=n.L,x=n.N,Z=n.ph,this.Sp("sdai",{sq:l.Ef,ssvicpns:L.join("."),ssvid:X.join(".")}));this.policy.nf&&(O?this.Lf=l.Ef:this.Q5=l.Ef);this.V.tV(l.Ef,l.startTime,this.W,L,X,F,O,Z,x)}if(this.policy.nf){if(O||this.policy.Wp){this.W===1&&GQ(this,5,"noad");var J;l.Ef!==((J=this.S)==null?void 0:J.Ef)&&(w_f(this,l,n,O),isNaN(l.startTime)||my(this,l.Ef,$0(this, l.startTime,l.Ef),!!n,this.V))}}else O&&w_f(this,l,n)}; g.h.Bu=function(l,n,O){var L=this.videoTrack.S.index.G2()<=n;this.S={BM:l,Ef:n,Lj:O};L&&jE(this,l,n)}; g.h.tF=function(){this.V&&this.V.tF()}; g.h.Sp=function(l,n,O){(l!=="sdai"||this.policy.Xl||(O===void 0?0:O))&&this.sf.Sp(l,n)}; g.h.mA=function(l,n){var O=this.videoTrack.S.index.Qb(l);if(O>=0){var L;var X=((L=n.jz.IE(O,2))==null?void 0:L.RS)||"";if(this.policy.B||X)return n.K8(l,O),IQ(this.sf,l,l,O),this.Sp("sdai",{cmskpad:1,t:l.toFixed(3),sq:O}),!0}this.Sp("sdai",{cmskpad:0,t:l.toFixed(3),sq:O});return!1};g.u(iY,g.V);iY.prototype.gk=function(l,n,O){O=O===void 0?{}:O;this.policy.zx=em(l,O,this.L,n===void 0?!1:n)};fa.prototype.wV=function(l){var n=this;if(this.policy.Xa){var O=new Set(l);O.size===this.Cf.size&&[].concat(g.E(O)).every(function(L){return n.Cf.has(L)})||(this.sf.Sp("lwnmow",{itagDenylist:[].concat(g.E(l)).join(",")}),this.sf.YC(!!O.size),this.Y=-1,this.Cf=O,Ka(this,this.S),this.wq=!0)}}; fa.prototype.gk=function(l,n,O){O=O===void 0?{}:O;var L=this.policy.zx;this.B.gk(l,n===void 0?!1:n,O);if(L!==this.policy.zx){Ka(this,this.S);aQ(this);var X,F;L>this.policy.zx&&((X=this.N)==null?0:Rb(X.info))&&((F=this.nextVideo)==null||!Rb(F.info))&&(this.Wm=!0)}};vm.prototype.W5=function(l){this.timestampOffset=l;this.flush()}; vm.prototype.flush=function(){if(this.S.pos>0){var l={a:this.track.vM(),u:this.S.OP(),pd:Math.round(this.L),ad:Math.round(this.N)},n=this.W;if(n){var O=n.S.info;l.itag=O.itag;O.S&&(l.xtags=O.S);l.sq=n.Ef;l.st=n.startTime;l.sd=n.duration;this.track.policy.Xh&&(l.si=n.rK());n.L&&(l.esl=n.W+n.N);n.pM()&&(l.eos=1)}isNaN(this.timestampOffset)||(l.to=this.timestampOffset);var L;if(n=(L=this.track.Xp)==null?void 0:L.sC({})){for(var X in n)this.V[X]!==n[X]&&(l["sb_"+X]=n[X]);this.V=n}this.track.Sp("sbu", l);this.S.reset();this.buffered=[];this.B=this.N=this.L=0;this.timestampOffset=this.W=void 0}};n4.prototype.dispose=function(){this.NQ=!0}; n4.prototype.JG=function(){return this.NQ}; g.u(F3,Error);var ZR9=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);ZR.prototype.skip=function(l){this.offset+=l}; ZR.prototype.tQ=function(){return this.offset};g.h=l68.prototype;g.h.t3=function(){return this.W}; g.h.dk=function(){return this.W.length?this.W[this.W.length-1]:null}; g.h.ul=function(){this.W=[];bC(this);HY(this)}; g.h.Gz=function(l){this.Fi=this.W.shift().info;l.info.XT(this.Fi)}; g.h.rr=function(){return g.M9(this.W,function(l){return l.info})}; g.h.vM=function(){return!!this.V.info.audio}; g.h.getDuration=function(){return this.V.index.y$()};g.u(mL,t7);g.h=mL.prototype;g.h.onStateChange=function(){this.JG()&&(qw(this.Q4,this.formatId),this.S.dispose())}; g.h.s7=function(){var l=SH7(this.Q4,this.formatId),n;var O=((n=this.Q4.pp.get(this.formatId))==null?void 0:n.bytesReceived)||0;var L;n=((L=this.Q4.pp.get(this.formatId))==null?void 0:L.WK)||0;return{expected:l,received:O,bytesShifted:n,sliceLength:k0(this.Q4,this.formatId),isAnyMediaEndReceived:this.Q4.p4(this.formatId)}}; g.h.h3=function(){return 0}; g.h.f4=function(){return!0}; g.h.uh=function(){return this.Q4.uh(this.formatId)}; g.h.jc=function(){return[]}; g.h.k6=function(){return this.Q4.k6(this.formatId)}; g.h.K2=function(){return this.lastError}; g.h.nz=function(){return 0};g.u(PY,g.V);g.h=PY.prototype;g.h.vM=function(){return!!this.S.info.audio}; g.h.dk=function(){return this.L.dk()}; g.h.Gz=function(l){this.L.Gz(l);var n;(n=this.G)!=null&&(n.B.add(l.info.Ef),n.S=k$k(n,n.kP,n.lh,l,n.S),n.N=l,n.V=(0,g.Q_)());this.Sv=Math.max(this.Sv,l.info.S.info.Sv||0)}; g.h.getDuration=function(){if(this.policy.W){var l=this.sf.WM();if(l)return ty(l)}return this.S.index.y$()}; g.h.ul=function(){dk(this);this.L.ul()}; g.h.pF=function(){return this.L}; g.h.isRequestPending=function(l){return this.N.length?l===this.N[this.N.length-1].info.Z2[0].Ef:!1}; g.h.W5=function(l){var n;(n=this.G)==null||n.W5(l);var O;(O=this.Y)==null||O.W5(l)}; g.h.Sp=function(l,n){this.sf.Sp(l,n)}; g.h.I6=function(){return this.sf.I6()}; g.h.dispose=function(){var l;(l=this.Y)==null||l.flush();g.V.prototype.dispose.call(this)};g.u(p4,g.V);p4.prototype.N=function(){this.W++>15||(this.S=!this.S,new pza(this.sf,this.policy,this.Rn,this.Vp,this.S),this.delay.start())}; g.h=pza.prototype;g.h.qg=function(){}; g.h.Hf=function(){}; g.h.v$=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.To()===this.size)this.sf.Sp("rqs",this.getInfo());else{var l="net.connect";this.xhr.status>200?l="net.badstatus":this.xhr.GK()&&(l="net.closed");this.onError(l)}}; g.h.onError=function(l){var n=this;this.sf.handleError(l,this.getInfo());DK("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(O){n.sf.Sp("pathprobe",O)},function(O){n.sf.handleError(O.errorCode,O.details)})}; g.h.getInfo=function(){var l=this.timing.Ek();l.shost=Ne(this.location.Yt);l.pb=this.size;return l};g.u(sj,g.V); sj.prototype.T=function(l,n){if(l.T){this.T3.isLive?(l=this.T3.Jt&&this.T3.L?l.S.vX(this.T3.Jt,!1):l.S.Gj(Infinity),l.gZ=this.gZ):l=l.S.vX(0,!1);if(this.Wm){var O=this.Wm;l.gZ===0&&(l.B=O.G)}else l.B=this.Y;return l}O=l.W;if(!O.S.y4())return O.S.I7()?(l=yr(this.B,l.S.info.Sv,n.S.info.Sv,0),l=O.S.GW(O,l)):l=O.S.fS(O),l;var L=O.Pl-this.sf.getCurrentTime(),X=!O.range||O.N===0&&O.W===0?0:O.range.length-(O.W+O.N),F=O.S;this.fR(l,L)&&X===0&&(this.T3.isManifestless?F=l.S:(F=O.startTime+FU,O.N&&(F+=O.duration), BN(l,F),O=l.W,F=O.S));F.I7()?(X=this.N,n=yr(this.B,F.info.Sv,n.S.info.Sv,L,X.L.length>0&&X.G===0&&this.sf.xk),L=I2(l),l=O.S.GW(O,n),(n=l.N)&&l.Z2.length>1&&(L||l.Vp.W||l.Z2[0].S!==O.S?l=O.S.GW(O,l.Z2[0].N):(L=l.Z2[l.Z2.length-1],F=L.N/n,!L.L&&F<.4&&(l=O.S.GW(O,n-L.N))))):(O.Ef<0&&(n=If(O),n.pr=""+l.N.length,this.sf.isSeeking()&&(n.sk="1"),n.snss=O.B,this.sf.Sp("nosq",n)),l=F.fS(O));if(this.policy.Lf)for(O=g.P(l.Z2),n=O.next();!n.done;n=O.next())n.value.type=6;return l}; sj.prototype.fR=function(l,n){if(!I2(l)||!l.S.y4())return!1;var O=this.N.wq||ya5(l)||n<=this.policy.yD||this.N.Wm;this.logger.debug(function(){return"ready to adapt: "+O+", upgrade pending: "+ya5(l)+", health: "+n}); return O}; sj.prototype.oz=function(){g.V.prototype.oz.call(this)}; var FU=2/24;g.u(u5,g.V);u5.prototype.qw=function(l,n,O){var L;var X=((L=this.W)==null?void 0:L.reason)==="m"?"m":this.W&&XIe(this,this.W)?this.W.reason:"a";this.sf.qw(new cm(l,X,O));t4(this.sf,n,l,!0)}; u5.prototype.py=function(l,n){for(var O=g.P(this.Lf),L=O.next();!L.done;L=O.next())if(L=L.value,L.id===l)return this.e3.rA||(this.N=[L]),this.V=this.T3.S[l],zr(this.e3)&&(this.Wm=!0),new cm(this.V,n?"t":"m");this.N=[];return null}; u5.prototype.gk=function(l,n,O){O=O===void 0?{}:O;this.S.gk(l,n===void 0?!1:n,O)};ED.prototype.setData=function(l,n,O,L){var X=this;L=L===void 0?{}:L;if(O==null?0:O.Sz)this.j6=Cd5(this,O,L),l.uT=this.Vp.uT();if(this.YR())return!0;this.data=l;this.S=Hwk(l,n,function(F,x){var Z;(Z=X.hA)==null||Z.Nv(F,x)},O==null?void 0:O.N); if(!this.S)return!1;this.W=g.Cu(this.S,xrv);return!0}; ED.prototype.YR=function(){return this.requestType===1}; ED.prototype.ao=function(){var l;return((l=this.hA)==null?void 0:l.ao())||0}; ED.prototype.isDecorated=function(){var l;return!((l=this.data)==null||!l.xQ)};NE.prototype.encrypt=function(l){this.DZ.exports.AES128CTRCipher_encrypt(this.cipher,l.byteOffset,l.byteLength);return l}; NE.prototype.JG=function(){return this.cipher===0}; NE.prototype.dispose=function(){this.DZ.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};qE.prototype.encrypt=function(l,n){return hw(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:n},this.key,l).catch(function(O){return Promise.reject(O.name+": "+O.message)}).then(function(O){return new Uint8Array(O)}))}; qE.prototype.JG=function(){return this.S}; qE.prototype.dispose=function(){this.S=!0}; YV.Nl(qE,{encrypt:DX("oan2")});kN.prototype.encrypt=function(l,n){PT(this.W,n);return hw(this.W.encrypt(l))}; kN.prototype.JG=function(){return this.S}; kN.prototype.dispose=function(){this.S=!0}; YV.Nl(kN,{encrypt:DX("oap")});yH.prototype.encrypt=function(l,n){var O=this.DZ.va(n),L=this.S;L.DZ.exports.AES128CTRCipher_setCounter(L.cipher,(O!=null?O:n).byteOffset);n=this.DZ.va(l);this.S.encrypt(n!=null?n:l);O&&this.DZ.free(O.byteOffset);return n?hw(this.DZ.tR(n)):hw(l)}; yH.prototype.JG=function(){return this.S.JG()}; yH.prototype.dispose=function(){this.S.dispose()}; YV.Nl(yH,{encrypt:DX("oalw")});ME.prototype.encrypt=function(l,n){var O=this,L=Jw("");l.length<=this.Tq&&this.S&&!this.L&&(L=bo(L,function(){return O.S?O.S.encrypt(l,n):Jw("wasm unavailable")})); l.length<=this.FV&&(this.S&&this.L&&(L=bo(L,function(){return O.S?O.S.encrypt(l,n):Jw("wasm unavailable")})),L=bo(L,function(){return WXa(O,l,n)})); return bo(bo(L,function(){return EJf(O,l,n)}),function(){return WXa(O,l,n)})}; ME.prototype.JG=function(){return this.B}; ME.prototype.dispose=function(){this.B=!0;var l;(l=this.N)==null||Aw(l,g.h0);g.h0(this.S);g.h0(this.W)};QH.prototype.encrypt=function(l){(0,g.Q_)();return(new o5(this.S.S)).encrypt(l,this.iv)}; QH.prototype.decrypt=function(l,n){(0,g.Q_)();return(new o5(this.S.S)).decrypt(l,n)}; QH.prototype.JG=function(){return this.N}; QH.prototype.dispose=function(){this.N=!0;g.h0(this.W)};g.u(ep,g.V);ep.prototype.N=function(l,n){if(n){n=n instanceof g.WW?n:YN(this,n);var O;((O=this.S.get(l))==null?void 0:Ne(O.location))!==Ne(n)&&this.S.set(l,new YI5(n,l))}else this.S.delete(l)}; ep.prototype.load=function(){var l=this,n,O,L,X,F,x,Z,J,w,H;return g.Y(function(A){switch(A.S){case 1:n=l.S.get(0);g.We(A,2);var b;if(b=n&&!l.W)b=Ne(n.location),b=l.W===x0(b);if(b){A.D2(4);break}return g.Q(A,Go(l,l.W?2:0),5);case 5:if(O=A.W)l.N(0,O),qe(O)&&l.N(1,kc(O));case 4:g.N7(A,3);break;case 2:L=g.D5(A);g.d2(L);if(!l.W){A.D2(3);break}l.W=!1;return g.Q(A,l.load(),7);case 7:return A.return();case 3:if(!l.xo.experiments.MQ("html5_onesie_probe_ec_hosts")){A.D2(0);break}g.We(A,9);X=l;F=X.N;x=3;return g.Q(A, Go(l,1),11);case 11:return F.call(X,x,A.W),Z=l,J=Z.N,w=4,g.Q(A,Go(l,2),12);case 12:J.call(Z,w,A.W);g.N7(A,0);break;case 9:H=g.D5(A),g.d2(H),g.Tk(A)}})}; ep.prototype.T=function(){var l=this,n,O;return g.Y(function(L){g.lx(l.G);n=g.HQ(l.xo.experiments,"html5_onesie_prewarm_max_lact_ms");if(MU()>=n)return L.return();(O=l.S.get(0))&&Q59(l,O);g.Tk(L)})}; var yta={Go1:0,rM2:1,OLf:2,mRq:3,Gxf:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};mH.prototype.decrypt=function(l){var n=this,O,L,X,F,x,Z;return g.Y(function(J){switch(J.S){case 1:if(n.S.length&&!n.S[0].isEncrypted)return J.return();n.W=!0;n.fL.Lo("omd_s");O=new Uint8Array(16);EE()?L=new X$(l):X=new o5(l);case 2:if(!n.S.length||!n.S[0].isEncrypted){J.D2(4);break}F=n.S.shift();if(!L){x=X.decrypt(F.buffer.q0(),O);J.D2(5);break}return g.Q(J,L.decrypt(F.buffer.q0(),O),6);case 6:x=J.W;case 5:Z=x;for(var w=0;w<O.length;w++)if(O[w]===255)O[w]=0;else{O[w]+=1;break}w=n.fL;var H=F.videoId, A=F.BO,b=F.formatId,r=new Pa([Z]),U;(U=IG(w.Bk,H))==null||Mw(U,A,b,r);J.D2(2);break;case 4:n.fL.Lo("omd_c"),du(n),n.W=!1,n.fL.C_(),g.Tk(J)}})}; mH.prototype.enqueue=function(l,n,O,L,X){this.S.push({videoId:l,BO:n,formatId:O,buffer:L,isEncrypted:X});this.W||du(this)};var VVa=!!Uint8Array.prototype.copyWithin,$N=[],VH=[],j57=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ch=[],Bh=[],zo=[],i5=[];sD.prototype.q4=function(l){return g.$tf(new g.Sp(l))}; sD.prototype.Ti=function(l){function n(x){if(!x.done)return F.append(x.value),X.read().then(function(Z){return n(Z)})} if(!("DecompressionStream"in window))return Jw("native decompression unavailable");var O=new DecompressionStream("gzip"),L=O.writable.getWriter();L.write(l).then(function(){return L.close()}); var X=O.readable.getReader(),F=new Pa([]);return bo(Aw(Aw(hw(X.read()),n),function(){return F.q0()}),function(x){return Jw(x.message)})}; sD.prototype.tN=function(l,n){var O=void 0,L=n.va(l);L&&(O=L.byteOffset,l=L);L=n.exports.getInflatedSize(l.byteOffset,l.length);if(L===0)return Jw("bad compressed input");var X=n.malloc(L);if(n.exports.inflateGzip(l.byteOffset,l.length,X))return n.free(X),Jw("inflateGzip failed");O&&n.free(O);return hw(new Uint8Array(n.exports.memory.buffer,X,L))}; YV.Nl(sD,{q4:function(l){return{profile:"gzjb",qR:Math.ceil(l.byteLength/16)}}, Ti:function(l){return{profile:"gznb",qR:Math.ceil(l.byteLength/16)}}, tN:function(l){return{profile:"gzwb",qR:Math.ceil(l.byteLength/16)}}});g.u(pIi,TQ);g.h=pIi.prototype;g.h.C_=function(){this.Bk.C_()}; g.h.xj=function(l,n){switch(l){case 10:var O=zA(n,rJk);l=O.H1z;var L=!1;switch(l){case 0:this.N=!O.ZP.UQQ;this.iv=O.ZP.iv;break;case 2:break;case 23:var X=this.Bk;O=O.CvF;X.Lo("omp_r");O.videoId&&(X.w_=O.videoId);X.w_!==X.videoData.videoId&&(X.videoData.h_=X.w_,X.Sp("ompp","vid."+X.w_));X.Dw=!0;break;case 24:O=this.Bk;O.Lo("omp_c");O.Dw=!1;O.VZ=!1;var F=(X=O.z1)==null?void 0:X.get(O.w_);O.notifySubscribers(O.w_);F!=null&&(F.S=!0);aG(O);break;default:L=!0}this.Bk.Us&&this.Bk.Sp("ombup","id.10;pt."+ l+";len."+n.getLength()+(L?";ignored.1":""));this.L=l;break;case 11:KXe(this,n);break;case 12:this.Dp(n,!0);break;case 37:n=zA(n,Uri);(n.H1||n.oQ)&&n.videoId&&this.Bk.WZ.set(n.videoId,n);break;case 60:this.Qx(n);break;case 47:this.J("html5_server_playback_start_policy")&&(n=zA(n,WE7),this.Bk.playbackStartPolicy=n);break;case 35:this.ji(n);break;case 45:this.pX(n);break;case 66:this.Bf(n);break;default:this.Bk.Us&&this.Bk.Sp("ombup","id."+l+";len."+n.getLength()+";ignored.1")}}; g.h.CK=function(l){this.Bk.CK(l)}; g.h.Qx=function(l){l=zA(l,vJ);this.Bk.Qx(l)}; g.h.pX=function(l){l=zA(l,ld);this.Bk.pX(l)}; g.h.Vx=function(l){var n=l.BO,O=l.c5,L=l.UA,X=l.YV,F=l.QS,x=l.startMs,Z=l.durationMs,J=l.timeRange,w=l.Pf,H=Dy(l),A=d1q.has(pB[""+l.itag]);O&&this.Lo(A?"oais_r":"ovis_r");var b=this.S[H]!==void 0;this.Bk.Us&&this.Bk.Sp("ombup","id.20;hid."+n+";fid."+H);var r=l.videoId||"";this.W[n]=H;this.B[n]=r;b||(this.S[H]={videoId:r,u6:!1,vM:A,headers:[]});this.S[H].headers.push(l);this.Bk.g_(r,H,A,{BO:n,c5:!!O,UA:L!=null?L:-1,QS:F!=null?F:-1,startMs:x!=null?x:-1,durationMs:Z!=null?Z:-1,Pf:w!=null?w:0,YV:X,timeRange:J})}; g.h.Dp=function(l,n){var O=l.getUint8(0);this.Bk.Us&&this.Bk.Sp("ombup","id."+(n?12:21)+";len."+l.getLength()+";hid."+O);if(l.getLength()!==1){l=l.split(1).WH;var L=this.W[O]||null,X=this.B[O]||"";L&&(this.iQ(this.S[L].vM?"oafs_r":"ovfs_r"),this.queue.enqueue(X,O,L,l,n))}}; g.h.AS=function(l){var n=l.getUint8(0);this.Bk.Us&&this.Bk.Sp("ombup","id.22;len."+l.getLength()+";hid."+n);l=this.W[n]||null;var O=this.B[n]||"";if(l)if(this.J("html5_use_ump_request_slicer")){var L=this.queue;L.S.push({videoId:O,BO:n,formatId:l,isEncrypted:!1,N6:!0});L.W||du(L)}else this.Bk.AS(O,n,l)}; g.h.Nk=function(l){this.Bk.Nk(l)}; g.h.XE=function(l,n){var O=this,L,X,F,x,Z,J,w,H,A,b;return g.Y(function(r){switch(r.S){case 1:O.Bk.XE();L=l.q0();if(!n){F=L;r.D2(2);break}return g.Q(r,Xyq(O.Bk,L,O.iv),3);case 3:F=r.W;case 2:X=F;if(!O.Bk.enableCompression){r.D2(4);break}Z=(x=performance)==null?void 0:x.now();return g.Q(r,Bni(X),5);case 5:X=r.W,O.Bk.Sp("decompression",{ds:"DecompressionStream"in window,rt:((J=performance)==null?NaN:J.now())-Z});case 4:try{w=zA(X,O$7)}catch(U){return H=U instanceof Error?{name:U.name,message:U.message}: {},H.webcrypto=""+ +!!EE(),H.enc=""+ +O.N,A=new Ml("onesie.response.parse",H),r.return(Promise.reject(A))}SIe(w);b=g.MT(w.body);return r.return(b)}})}; g.h.ji=function(l){this.J("html5_consume_onesie_next_request_policy_for_sabr")&&(l=zA(l,PNq),this.Bk.ji(l))}; g.h.Bf=function(l){l={zU:Ba(new j9(l),1,Dre)};this.Bk.Bf(l)}; g.h.Lo=function(l){this.Bk.Lo(l)}; g.h.iQ=function(l){return this.Bk.iQ(l)}; g.h.J=function(l){return this.Bk.J(l)};g.u(K3,g.V);g.h=K3.prototype;g.h.sD=function(){return""}; g.h.aL=function(l){var n,O;return((O=(n=this.z1)==null?void 0:n.get(l))==null?void 0:O.aL())||[]}; g.h.k6=function(l,n){var O;return!((O=IG(this,n))==null||!O.k6(l))}; g.h.uh=function(l,n){var O;return((O=IG(this,n))==null?void 0:O.uh(l))||[]}; g.h.rr=function(l,n){var O;return((O=IG(this,n))==null?void 0:O.rr(l))||[]}; g.h.OC=function(l){this.state=l;this.notifySubscribers()}; g.h.YR=function(){return!1}; g.h.NC=function(){return!1}; g.h.lM=function(){}; g.h.Lo=function(l){this.uF.Lo(l)}; g.h.iQ=function(l){return this.uF.iQ(l)}; g.h.Vg=function(l,n,O,L){O||this.mG.Vg(L);return!1}; g.h.v8=function(l,n){this.fL.v8(l,n)}; g.h.Wu=function(){this.Lo("orfb");this.B_=!0;if(oP5(this)&&this.xhr){var l={rc:this.xhr.status,lb:this.xhr.To(),rt:(1E3*pJk(this.mG)).toFixed(),shost:g.VM(this.p_),trigger:"o1"};this.Sp("pathprobe",yC(l))}}; g.h.XE=function(){this.Lo("opr_r");this.hN=!0}; g.h.g_=function(l,n,O,L){if(this.z1){if(!this.z1.has(l)){var X=new EW(this);this.z1.set(l,X);g.c(this,X)}var F;(F=this.z1.get(l))==null||F.g_(n,O,L);aG(this);O||(this.Eu=L.QS,this.F4=L.startMs)}else aG(this)}; g.h.CK=function(l){this.oV=l;l.P_!=null&&this.uF.fV(l.P_)}; g.h.Qx=function(l){this.zk=l}; g.h.ji=function(l){l.videoId&&this.Ka.set(l.videoId,l)}; g.h.C_=function(){if(this.z1)for(var l=g.P(this.z1.keys()),n=l.next();!n.done;n=l.next()){var O=void 0;(O=this.z1.get(n.value))==null||O.ZL()}}; g.h.pX=function(l){this.pJ=l}; g.h.Bf=function(l){if(l==null?0:l.zU)if(l=l.zU.S$){l=g.P(l);for(var n=l.next();!n.done;n=l.next())n=n.value,n.videoId&&this.LF.set(n.videoId,n)}}; g.h.Sp=function(l,n,O){this.uF.Sp(l,n,O===void 0?!1:O)}; g.h.AS=function(l,n,O){var L;(L=IG(this,l))==null||L.AS(n,O)}; g.h.Nk=function(l){this.Et.set(l.videoId,l)}; g.h.fetch=function(){var l=this,n,O,L,X,F,x,Z,J,w,H,A,b,r,U,W,N,q,y,e,d,B;return g.Y(function(R){switch(R.S){case 1:l.logger.debug("Onesie fetch started.");l.Vo?l.QB.start():l.PB.start();l.Lo("or_i");n=l.xo.experiments.MQ("html5_onesie_verbose_timing");O={};L=(0,g.Q_)();X=function(a){n&&(O[a]=(0,g.Q_)()-L)}; X("loc_s");if(F=Rta(l.videoData,l.bX)){R.D2(2);break}X("loc_async");x=g.HQ(l.xo.experiments,"html5_onesie_redirector_timeout_ms");return g.Q(R,CO5(l.videoData,l.bX,x),3);case 3:F=R.W;case 2:if(!F)return l.logger.info("Onesie URL creation failed."),Z={url:"0"},J=new Ml("onesie.unavailable.hotconfig",Z),l.No(J),R.return(l.N1);l.j6=Ne(F);X("loc_e");w=g.g7(l.xo,g.pN(l.videoData));H=!!w.S;if(!H){A=w.getValue();R.D2(4);break}return g.Q(R,w.S,5);case 5:A=R.W;case 4:b=A;l.J("html5_log_onesie_empty_oauth")&& !b&&l.Sp("no_token",{async:H});X("oauth");r=vJ8(l.playerRequest,l.xo,l.videoData,b,x0(l.j6));g.We(R,6);if(!L7g(l,r)){X("or_s_sync");l.GH=nPq(r,l.dn,l.xo,l.uF,l.nC.onesieUstreamerConfig,(U=l.videoData.jG)==null?void 0:U.Th);R.D2(8);break}X("or_s_async");return g.Q(R,gP9(r,l.dn,l.xo,l.uF,l.nC.onesieUstreamerConfig,(W=l.videoData.jG)==null?void 0:W.Th),9);case 9:l.GH=R.W;case 8:g.N7(R,7);break;case 6:return N=g.D5(R),l.logger.info("Failed to create OnesieRequestProto."),l.No(N),R.return(l.N1);case 7:return X("or_e"), n&&l.Sp("oreqvt",O),l.enableCompression=l.GH.yA.uM,l.Lo("osor"),q=cav(),y=g.Cu(l.GH,$p9),e={method:"POST",body:y,headers:{"Content-Type":"text/plain",Referer:location.origin}},d=l.J("html5_onesie_media_capabilities"),tVf(F,l.videoData,xW7(l),d),l.logger.debug("Starting Onesie network request."),l.Us&&l.Sp("ombrs","1"),B=l.uF.j().schedule,l.mG=new Ke(l,{Rn:B,SX:l.Us,iA:function(a,Lv){l.uF.vI(a,Lv)}, wH:!0}),F.set("rn",""+l.mG.requestNumber),l.p_=F.Ae(),fe(l.mG,l.p_),l.Lo("or_p"),l.xhr=na(new AW(F),q,l.mG,CG,e),l.AX.start(),R.return(l.N1)}})}; g.h.WO=function(){return 2}; g.h.qg=function(){this.Lo("orh_r")}; g.h.Hf=function(){!this.B_&&this.xhr.To()&&this.Wu();if(this.d2&&!this.Vo){var l;(l=this.nE)==null||l.start()}this.PH()}; g.h.v$=function(l){l=l===void 0?!1:l;this.logger.debug("onXhrDone");this.PH();if(!(this.JG()||this.state>=4)){var n=f3(this),O=this.xhr;n.rc=O.status;l&&(n.ab=!0);if(O.gB()){var L="onesie.net";n.msg=O.gB()}else O.status>=400?L="onesie.net.badstatus":O.IK()?this.hN||(L="onesie.response.noplayerresponse"):L=O.status===204?"onesie.net.nocontent":"onesie.net.connect";L?this.No(new Ml(L,n)):(this.Lo("or_fs"),this.mG.yL((0,g.Q_)(),O.To(),0),this.OC(4),this.Us&&this.Sp("rqs",n));this.Us&&this.Sp("ombre", "ok."+ +!L);this.VZ=!1;aG(this);s5q(this.fL);if(!this.Vo){this.PB.stop();var X;(X=this.nE)==null||X.stop()}var F;if(l=(F=this.bX)==null?void 0:eti(F))for(F=0;F<l.length;F++)this.Sp("pathprobe",l[F])}}; g.h.OL=function(){if(this.playerResponse&&this.xhr&&this.z1)for(var l=g.P(this.z1.entries()),n=l.next();!n.done;n=l.next())if(n=g.P(n.value),n.next(),n.next().value.W){this.xhr.abort();this.v$(!0);break}}; g.h.j=function(){return this.xo}; g.h.J=function(l){return this.xo.J(l)}; g.h.mv5=function(){if(oP5(this)&&this.bX&&(!this.B_||this.J("html5_onesie_probe_ec_hosts"))){var l=this.bX;if(l.xo.experiments.MQ("html5_onesie_probe_ec_hosts")){var n,O=(n=l.S.get(3))==null?void 0:Ne(n.location);O&&jp(l,O,"osc",this);var L;(O=(L=l.S.get(4))==null?void 0:Ne(L.location))&&jp(l,O,"ocy",this)}else{var X;(L=(X=l.S.get(1))==null?void 0:Ne(X.location))&&jp(l,L,"o2",this);(L=(O=l.S.get(2))==null?void 0:Ne(O.location))&&jp(l,L,"o3",this)}}}; g.h.aF=function(){if(!this.JG()&&!this.isComplete()){if(this.d2){if((0,g.Q_)()-this.mG.T>1E3){var l;(l=this.mG)==null||l.CE((0,g.Q_)());l=f3(this);if(this.xo.AA()&&this.xhr instanceof vN){var n=this.xhr;l.xrs=n.xhr.readyState;l.xpb=n.S.getLength();l.xdc=n.L}this.No(new Ml("net.timeout",l))}}else(0,g.Q_)()-this.mG.S>1E4&&((n=this.mG)==null||n.CE((0,g.Q_)()),this.mq());this.isComplete()||this.QB.start()}}; g.h.mq=function(){this.logger.info("Onesie request timed out");this.VZ=!1;if(!aG(this)){var l=f3(this);l.timeout="1";this.No(new Ml("onesie.request",l))}}; g.h.No=function(l){var n=this;l=el(l);this.d2?this.uF.l5(l):(this.N1.reject(l),this.d2=!0);s5q(this.fL);this.Vo||this.PB.stop();this.Lo("or_fe");var O,L;(O=this.bX)==null||(L=eti(O))==null||L.forEach(function(X){n.Sp("pathprobe",X)}); this.OC(5);this.dispose()}; g.h.isComplete=function(){return this.state>=3}; g.h.f0=function(){return this.state===4}; g.h.CR=function(l){var n,O;return this.isComplete()||!!((n=this.z1)==null?0:(O=n.get(l))==null?0:O.S)}; g.h.M4=function(){return!1}; g.h.Ad=function(){return this.state===5}; g.h.notifySubscribers=function(l){for(var n=0;n<this.Wq.length;n++)l&&this.Wq[n].G7()!==l||lb(this.Wq[n],this)}; g.h.XJ=function(){var l,n;return((l=this.GH)==null?void 0:(n=l.iS)==null?void 0:n.vW)||0}; g.h.oz=function(){this.playerResponse="";var l;(l=this.xhr)==null||l.abort();s5q(this.fL);this.vH.dispose();var n;(n=this.nE)==null||n.dispose();this.OC(-1);this.Wq=[];g.V.prototype.oz.call(this)}; g.h.PH=function(){try{var l=this.xhr;l.To()>102400&&!this.jm&&(this.Lo("or100k"),this.jm=!0);if(l.U8()){var n=l.eW(),O=n.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+O}); this.Us&&this.Sp("ombrss","len."+O);this.vH.feed(n)}if(this.z1)for(var L=g.P(this.z1.keys()),X=L.next();!X.done;X=L.next()){var F=X.value;l=void 0;(l=this.z1.get(F))==null||l.ZL();this.notifySubscribers(F)}}catch(x){this.No(x)}}; g.h.ih=function(){return this.mG.requestNumber}; g.h.fF=function(l){return this.Et.get(l)}; g.h.FJ=function(){return{Eu:this.Eu,F4:this.F4,isDecorated:!1}};g.u(Zy0,g.V);g.h=Zy0.prototype;g.h.Xv=function(l,n){this.NQ=void 0;ekv(this);y2k(this,l,n)}; g.h.KR=function(l){if(this.S.length===0)return!1;var n=this.S[0];return n instanceof K3?l===this.sf.getCurrentTime()*1E3:!(n instanceof QP&&rtq(n.info))&&Math.abs(n.XJ()-l)<50}; g.h.ji=function(l){this.W=l;this.NQ=(0,g.Q_)()+(l.backoffTimeMs||0)}; g.h.Ty=function(l,n){if(l.action===void 0){var O=this.uF.zY();O!==void 0&&this.sf.d_(O)}else if(l.action!==0||!this.Fi)switch(l.action===0&&this.policy.D5&&(l.action=2),O={},O.reason=l.lx5,O.action=l.action,O.rn=n,l.action){case 1:this.policy.B&&this.L&&this.L.gT(void 0,void 0,O);break;case 0:this.Fi=!0;this.videoData.iK()&&this.policy.B&&this.L&&this.L.gT(void 0,void 0,O,!1);this.sf.kE(O);break;case 2:this.sf.handleError("sabr.config",O,1);break;case 5:nV9(this.uF,!0);break;case 6:nV9(this.uF,!1); break;case 3:this.policy.Sz&&((l=this.T3.G)!=null&&(l.G=!0),this.sf.handleError("sabr.hostfallback",O))}}; g.h.Pu=function(l,n,O,L){if(this.policy.W){this.sf.Sp("ssap",{rn:L,v:n,tl:j4e(l)});var X=this.sf.WM();l={m4:l,context:O,version:n};Mbq(this,O);X?Q49(this,X,l):(this.sf.Sp("ssap",{cacheclips:1,rn:L,v:n}),this.G=l)}}; g.h.Tp=function(l){this.sf.Sp("ssap",{onsbrctxt:l.type,dflt:l.sendByDefault});Mbq(this,l);this.uF.Tp(l)}; g.h.qE=function(){}; g.h.pX=function(l){if(l.U3!==void 0&&l.A6){var n=l.U3/l.A6;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.NQ||this.policy.AP||this.policy.Op)this.sf.xT.W=!1;this.sf.KI(n,1);if(this.uF.getCurrentTime()!==n){var O={UC:"sabr_seek",Wf:!0,Cb:!0};l.seekSource&&(O.seekSource=l.seekSource);zT(this.sf,n+.1,O)}}}; g.h.onSnackbarMessage=function(l){this.uF.publish("onSnackbarMessage",l)}; g.h.CK=function(l){l.Cj&&l.NN&&D6(this.T3,l.Cj,l.NN);this.policy.TI&&(l.Aa&&l.jg&&(this.T3.IU=l.Aa/l.jg),l.gR&&l.Ja&&(this.T3.vp=l.gR/l.Ja));l.P_!=null&&this.uF.fV(l.P_);this.policy.R6&&l.RQ&&(l=((0,g.Q_)()-l.RQ)/1E3,this.sf.SP.Zm(1,l))}; g.h.JD=function(l){this.sf.JD(l)}; g.h.wy=function(l,n,O){this.policy.N&&this.sf.Sp("sabrctxtplc",{start:l?l.join("_"):"",stop:n?n.join("_"):"",discard:O?O.join("_"):""});if(l){l=g.P(l);for(var L=l.next();!L.done;L=l.next())this.TM.add(L.value)}if(n)for(n=g.P(n),l=n.next();!l.done;l=n.next())l=l.value,this.TM.has(l)&&this.TM.delete(l);if(O)for(O=g.P(O),n=O.next();!n.done;n=O.next())n=n.value,this.videoData.sabrContextUpdates.has(n)&&(this.videoData.sabrContextUpdates.delete(n),n===3&&(this.videoData.w9=""))}; g.h.XX=function(){}; g.h.uD=function(l){this.V=l}; g.h.cg=function(l){this.Hm=l}; g.h.iE=function(l,n){SS(this.policy,l,4,n)}; g.h.Bf=function(l){if(l==null?0:l.zU)if(l=l.zU.S$){l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.formatId){var O=this.T3.N.get(Dy(n.formatId));O&&O.info&&(O.info.debugInfo=n.debugInfo)}}}; g.h.zy=function(l){(l=l==null?void 0:l.reloadPlaybackParams)&&this.uF.publish("reloadplayer",l)}; g.h.G7=function(){return this.uF.G7()||""}; g.h.ao=function(){var l=Qc(this.audioTrack,!0)*1E3,n=Qc(this.videoTrack,!0)*1E3;return Math.min(l,n)}; g.h.Nv=function(l,n){this.sf.Sp(l,n)}; g.h.MM=function(l){vP5(this.sf,yWf(this.G3,l))}; g.h.oz=function(){g.V.prototype.oz.call(this);this.W=void 0;y2k(this,!0,"i");this.S=[]};G8a.prototype.yV=function(l,n){if(this.L)return Vba(this,n);if(n=Sx(l)){var O=n.W;O&&O.N&&O.S&&(l=l.N.length?l.N[0]:null)&&l.state>=2&&!l.Ad()&&l.info.gZ===0&&(this.L=l,this.T=O,this.W=n.info,this.V=this.startTimeSecs=Date.now()/1E3,this.B=this.W.startTime)}return NaN}; G8a.prototype.clear=function(){this.W=this.T=this.L=null;this.S=this.B=this.V=this.startTimeSecs=NaN;this.N=!1};g.u(g.Lt,g.V);g.h=g.Lt.prototype;g.h.initialize=function(l,n,O){this.logger.debug(function(){return"Initialized, t="+l}); l=l||0;this.policy.S||(n=Qf5(this.S),ONq(this.uF,new cm(n.video,n.reason)),this.uF.wN(new cm(n.audio,n.reason)));this.T3.isManifestless&&lU9(this.B);this.T&&IYg(this.T,this.videoTrack.S);n=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var L=!this.T3.isManifestless;this.policy.P0&&(L=L||this.T3.aI);this.policy.Cf||(this.currentTime=L?l:n);this.policy.NQ&&this.seek(this.getCurrentTime(),{}).O9(function(){}); if(this.policy.S){var X;((X=this.Wm)==null?0:hki(X,this.G7()||""))&&S75(this)&&zkq(this,this.videoTrack)&&zkq(this,this.audioTrack)&&(Y77(this.N,this.Wm),this.policy.V&&iy7(this))}else this.NQ&&(pyv(this,this.videoTrack),pyv(this,this.audioTrack),z_v(this.NQ),delete this.NQ);O?(this.policy.Ip?(this.JA=O,oD(this,O)):oD(this,!1),g.lx(this.yq)):(O=this.getCurrentTime()===0,a2(this.B,this.videoTrack,this.videoTrack.S,O),a2(this.B,this.audioTrack,this.audioTrack.S,O),this.policy.S&&Hyq(this.N,!0),this.policy.NQ|| this.seek(this.getCurrentTime(),{}).O9(function(){}),this.timing.tick("gv")); (this.T3.Jt||this.T3.HT||this.T3.Hm||this.T3.Sz||this.T3.q5)&&this.uF.Ni(this.T3)}; g.h.resume=function(){if(this.isSuspended||this.xk){this.logger.debug("Resumed.");this.Z_=this.xk=this.isSuspended=!1;try{this.yV()}catch(l){g.Ir(l)}}}; g.h.ob=function(){return!this.policy.JA}; g.h.HK=function(l,n){l=l===void 0?!1:l;n=n===void 0?!1:n;this.logger.debug("detaching media source");aY9(this);this.uF.xW()&&(this.V=NaN);l?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.z3&&this.Sp("loader",{setsmb:1}),this.policy.Lf=!0,this.ul()):(this.policy.Ip?oD(this,this.JA):oD(this,!1),n||this.ul())}; g.h.setAudioTrack=function(l,n,O){O=O===void 0?!1:O;if(!this.JG()){var L=!isNaN(n);O&&L&&(this.audioTrack.NQ=Date.now(),this.policy.j7&&(this.nf=!0));if(this.policy.S){var X=this.W.py(l.id,L);this.logger.debug(function(){return"Logging new audio format: "+X.S.info.id}); this.uF.wN(X)}else{var F=ktq(this.S,l.id,L);this.logger.debug(function(){return"Logging new audio format: "+F.audio.info.id}); this.uF.wN(new cm(F.audio,F.reason))}if(L&&(O=this.audioTrack.S.index.Qb(n),this.Sp("setAudio",{id:l.id,cmt:n,sq:O}),O>=0)){this.policy.S&&(this.W.G=!0,this.Xv(!0,"mosaic"));eS(this.audioTrack,O,NaN,NaN);!this.policy.At&&this.T3.isLive&&Nb(this.T3,O,!1);return}this.uF.eI()}}; g.h.setPlaybackRate=function(l){l!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(l)}; g.h.Ab=function(l){var n=this.N.V;this.N.uD(l);this.Sp("scfidc",{curr:Dy(n),"new":Dy(l)});l&&Dy(l)!==Dy(n)&&(this.Xv(!1,"caption change"),this.yV())}; g.h.Ur=function(l){this.N.cg(l)}; g.h.qw=function(l){var n=l.S.info.vM();this.logger.debug(function(){return"New "+(n?"audio":"video")+" format from SABR: "+o1(l.S.info)}); n?this.uF.wN(l):ONq(this.uF,l)}; g.h.MM=function(l){js(l.Z2[l.Z2.length-1])&&vP5(this,yWf(this.S,l.Z2[0].S))}; g.h.Qw=function(){return this.uF.Qw()}; g.h.jX=function(){return this.uF.jX()}; g.h.JD=function(l){this.uF.j().AA()&&this.Sp("sps",{status:l.SN||""});if(l.SN===1)this.uF.videoData.eH=0;else if(l.SN===2||l.SN===3){var n=!1;if(l.SN===3){n=this.uF.AE();var O;this.Wk=(O=l.xn5)!=null?O:Infinity;this.uF.videoData.eH=n+1;(n=vY(this))&&this.ju(!0)}this.uF.ac(!0,n)}}; g.h.jd=function(){return this.uF.jd()}; g.h.PT=function(){return this.uF.PT()}; g.h.Af=function(l){this.uF.Af(l)}; g.h.F1f=function(){var l,n=(l=this.uF.T$())==null?void 0:l.getCurrentTime();n?this.uF.Sp("rms",{cta:n}):g.lx(this.Sz)}; g.h.yV=function(){tbe(this);if(this.Xi&&f5(this.Xi)&&!this.Xi.y9()&&(!this.policy.Cf||isFinite(this.getCurrentTime()))){var l=WY(this.videoTrack);l=this.policy.EH&&l&&l.pM();this.T3.isManifestless&&this.T3.L&&Pz(this.T3)?(this.V=Pz(this.T3),this.Xi.O7(this.V)):qb(this.T3)&&!l?isNaN(this.V)?(this.V=this.getCurrentTime()+3600,this.Xi.O7(this.V)):this.V<=this.getCurrentTime()+1800&&(this.V=Math.max(this.V+1800,this.getCurrentTime()+3600),this.Xi.O7(this.V)):this.Xi.isView||(l=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.V)||this.V!==l)&&l>0&&(this.Xi.O7(l),this.V=l))}if(!this.JG())if(uM(this.T3)&&this.T3.Ad()){var n=this.T3;this.handleError("manifest.net.retryexhausted",n.nf?{rc:n.IR}:{rc:n.IR.toString()},1)}else if(this.policy.S)a:{try{DWk(this.N);this.T3.isManifestless&&this.policy.V&&cN(this.xT);if(K77(this)&&this.Xi&&!R1(this.Xi)&&this.videoTrack.wq&&this.audioTrack.wq){this.Sp("ssap",{delaysb:1,v:this.videoTrack.S.info.id,vf:this.videoTrack.S.info.bF,a:this.audioTrack.S.info.id, af:this.audioTrack.S.info.bF});var O=this.Xi,L=this.videoTrack.S,X=this.audioTrack.S;!R1(O)&&X&&L&&(Tyi(O,L.info,X.info,this.policy.UU),Rke(this,O))}var F;((F=this.Xi)==null?0:R1(F))&&this.VU();this.policy.S||XU(this);Hyq(this.N)}catch(Z){g.d2(Z);n=Z;if(n.message.includes("changeType")){this.Sp("ssap",{exp:n.name,msg:n.message,s:n.stack});break a}this.handleError("fmt.unplayable",{exp:n.name,msg:n.message,s:n.stack},1)}Tii(this);g.lx(this.Pm)}else if(!this.T3.W||!ee8(this.videoTrack)&&!ee8(this.audioTrack)|| (this.videoTrack.B||this.audioTrack.B)&&this.policy.K5?O=!1:(this.ul(),this.uF.seekTo(Infinity,{UC:"checkLoaderTracksSync",KI:!0}),O=!0),!O){tbe(this);this.T3.isManifestless&&(Yk0(this.videoTrack),Yk0(this.audioTrack),cN(this.xT),(O=Sx(this.videoTrack))&&O.W&&(O=O.W.N&&!this.policy.gb,this.Sp(O===this.policy.G.Ce?"strm":"strmbug",{strm:O,sfmp4:this.policy.G.Ce,dfs:this.policy.gb},!0)));if(this.Xi)this.VU();else if(this.policy.L){var x;O=!1;if(this.policy.Nj)for(L=g.P([this.videoTrack,this.audioTrack]), X=L.next();!X.done;X=L.next()){F=X.value;for(X=Sx(F);X&&F.dk()!==WY(F);X=Sx(F))F.Gz(X);O=O||!!X}else(n=Sx(this.videoTrack))&&this.videoTrack.Gz(n),(x=Sx(this.audioTrack))&&this.audioTrack.Gz(x);kS(this.videoTrack)&&kS(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(n||x||O)&&vh(this)}XU(this);a2(this.B,this.videoTrack,this.videoTrack.S,!1);a2(this.B,this.audioTrack,this.audioTrack.S,!1);this.policy.V2||nZa(this,this.videoTrack,this.audioTrack);K99(this.B,this.videoTrack, this.audioTrack);K99(this.B,this.audioTrack,this.videoTrack);Tii(this);this.T&&(n=this.T,n.L?(x=n.V+n.policy.tY,n.N||(x=Math.min(x,n.startTimeSecs+n.policy.D0)),n=Math.max(0,x*1E3-Date.now())):n=NaN,isNaN(n)||g.lx(this.hC,n));g.lx(this.Pm)}}; g.h.kE=function(l){this.uF.kE(l)}; g.h.VU=function(){var l=this;if(this.Xi){var n=this.Xi.S,O=this.Xi.W;q95(this,this.audioTrack);q95(this,this.videoTrack);var L=LN8(this);if(L){if(this.policy.rE){if(!n.VR()){var X=Sx(this.audioTrack);if(X){if(!gA(this,this.audioTrack,n,X.info))return;FN9(this,this.audioTrack,n,X)}}if(!O.VR()&&(X=Sx(this.videoTrack))){if(!gA(this,this.videoTrack,O,X.info))return;FN9(this,this.videoTrack,O,X)}}this.Gh||(this.Gh=(0,g.Q_)(),this.logger.debug(function(){return"Appends pause start "+l.Gh+" reason "+L}), this.policy.N&&this.Sp("apdps",{r:L}))}else if(this.Gh&&(gZ9(this,this.Gh),this.Gh=0),Xf0(this),X=!1,this.policy.W&&Vc(this.videoTrack)||!wfi(this,this.videoTrack,O)||(X=!0,gzf(this.timing),Fpa(this.timing)),this.Xi&&!this.Xi.h7()&&(this.policy.W&&Vc(this.audioTrack)||!wfi(this,this.audioTrack,n)||(X=!0,Lp5(this.timing),xSq(this.timing)),!this.JG()&&this.Xi)){if(!this.policy.JA&&kS(this.videoTrack)&&kS(this.audioTrack)&&f5(this.Xi)&&!this.Xi.y9()){O=!1; O=WY(this.audioTrack);if(this.policy.W){var F;n=(F=this.s_)==null?void 0:jx(F,O.Fo*1E3);O=!(!n||n.clipId!==O.clipId);this.Sp("ssap",{eos:O})}else F=O.S,O=F===this.T3.S[F.info.id];O&&(this.logger.debug("Setting EOS"),W3e(this.Xi),c18(this.schedule))}X&&!this.Xi.isAsync()&&vh(this)}}}; g.h.Is=function(l){var n,O=l===((n=this.Xi)==null?void 0:n.S)?this.audioTrack:this.videoTrack,L;(L=O.Cf)==null||L.stop();var X;if((X=Sx(O))==null?0:X.isLocked){if(this.uF.j().AA()){var F;this.Sp("eosl",{ounlock:(F=Sx(O))==null?void 0:F.info.rK()})}var x;uZk(this,l===((x=this.Xi)==null?void 0:x.S))}var Z;if(this.policy.j7&&l===((Z=this.Xi)==null?void 0:Z.S)&&this.Of){n=this.Of-this.getCurrentTime();var J;this.uF.Sp("asl",{l:n,xtag:(J=WY(this.audioTrack))==null?void 0:J.S.info.S});this.nf=!1;this.Of= 0}l.pL()&&l.G$().length===0&&(l.oE(),this.Xi&&!this.Xi.pL()&&(this.uF.j().AA()&&this.uF.Sp("rms",{ld:"seek"}),this.Xi.V=performance.now(),this.uF.Qn(),this.uF.j().AA()&&g.lx(this.Sz)));var w;(w=O.Y)!=null&&lC(w,0);this.policy.Yo&&this.policy.Xj&&this.Xi&&(O=l.OF())&&O.pM()&&!ZA(l.G$(),Math.min(O.Fo+FU,O.Pl))&&this.Sp("sbunb",{st:O.Fo,et:O.Pl});this.policy.q5?C4(this):this.yV()}; g.h.Ief=function(l){if(this.Xi){var n=WY(l===this.Xi.S?this.audioTrack:this.videoTrack);if(l=l.bM())for(var O=0;O<l.length;O++)this.Sp("appendedbuffer",{i:O,b:g.Pd(l[O].subarray(0,4096),3)});l=void 0;n&&(l=If(n),this.policy.W&&this.s_&&this.s_.wA()&&(l.ccid=this.s_.wA()));this.handleError("fmt.unplayable",l,1)}}; g.h.VC=function(l){this.uF.VC(l)}; g.h.aJ=function(l,n,O){if(this.T3.isManifestless&&(l=!!l.info.video,raq(this,n,O,l,!0),this.policy.Wk)){l=l?this.videoTrack:this.audioTrack;l.Wm.push({Eu:n.Ef,hfz:O});l.Wm.length>5&&l.Wm.shift();n=n.Ef;var L;this.policy.Wk&&((L=this.uF.getVideoData())==null?0:L.enableServerStitchedDai)&&(L=Vmv(this.audioTrack,n),O=Vmv(this.videoTrack,n),L!==0&&O!==0&&L!==O&&this.handleError("ssdai.avsync",{sq:n,a:L,v:O},0))}}; g.h.Bu=function(l,n,O,L){l.info.video&&this.L.Bu(n,O,L)}; g.h.wV=function(l){this.S.wV(l)}; g.h.hJ=Oi(19);g.h.R$=function(l){this.s_=l;var n;(n=this.audioTrack.G)!=null&&(n.jz=l);(n=this.videoTrack.G)!=null&&(n.jz=l);n=this.N;n.G&&(n.sf.Sp("ssap",{addcacheclips:1,v:n.G.version,tl:j4e(n.G.m4)}),Q49(n,l,n.G),n.G=void 0)}; g.h.WM=function(){return this.s_}; g.h.a8=function(){return this.videoTrack.T||this.audioTrack.T}; g.h.seek=function(l,n){if(this.JG())return Te();if(this.a8())return Te("seeking to head");if(this.policy.NQ&&!isFinite(l))return m8v(this.xT),g.P$(Infinity);tbe(this);this.tS=(0,g.Q_)();this.policy.S||XU(this,l);this.Xi&&this.Xi.S&&this.Xi.W&&!this.uF.getVideoData().Eg&&(this.Xi.S.isLocked()||this.Xi.W.isLocked())&&this.uF.eI({reattachOnLockedBuffer:1,vsb:""+this.Xi.W.isLocked(),asb:""+this.Xi.S.isLocked()});var O=this.getCurrentTime(),L=this.xT.seek(l,n);this.policy.Cf||(this.currentTime=L);VP(this.L, l,O,this.policy.pV&&!n.Wf);vh(this);return g.P$(L)}; g.h.KR=function(l){return this.policy.S&&this.N.KR(l)}; g.h.Xv=function(l,n){this.N.Xv(l,n)}; g.h.getCurrentTime=function(){if(this.policy.Cf){var l=this.ez()||0;return this.uF.getCurrentTime()-l}return this.currentTime}; g.h.iM=function(){return this.audioTrack.S.info}; g.h.An=function(){return this.videoTrack.S.info}; g.h.GV=function(){return this.audioTrack.S.info.bF}; g.h.KU=function(){return this.videoTrack.S.info.bF}; g.h.oz=function(){try{this.HK(),dk(this.audioTrack),dk(this.videoTrack),d_(this.audioTrack),d_(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.V.prototype.oz.call(this)}catch(l){g.Ir(l)}}; g.h.handleError=function(l,n,O){O=O===void 0?0:O;var L=QC(O);l==="fmt.unplayable"&&this.T3.isLive&&(this.policy.rE=!1,Ek(this.T3));n=new Ml(l,n,O);g.R8(this);yC(n.details);this.uF.handleError(n);l!=="html5.invalidstate"&&n.errorCode!=="fmt.unplayable"&&l!=="fmt.unparseable"&&L&&this.dispose()}; g.h.sC=function(){var l=WY(this.audioTrack),n=WY(this.videoTrack);l={lct:this.getCurrentTime().toFixed(3),lsk:this.xT.isSeeking(),lmf:this.S.S.isLocked(),lbw:TH(this.schedule).toFixed(3),lhd:uO(this.schedule).toFixed(3),lst:((this.schedule.T.sP()||0)*1E9).toFixed(3),laa:l?l.rK():"",lva:n?n.rK():"",lar:this.audioTrack.W?this.audioTrack.W.rK():"",lvr:this.videoTrack.W?this.videoTrack.W.rK():"",laq:""+yc(this.audioTrack),lvq:""+yc(this.videoTrack)};this.Xi&&!this.Xi.h7()&&this.Xi.S&&this.Xi.W&&(l.lab= xG(this.Xi.S.G$()),l.lvb=xG(this.Xi.W.G$()));this.Gh&&(l.lapt=((0,g.Q_)()-this.Gh).toFixed(0),l.lapr=LN8(this));this.Cf&&(l.lapmabht=((0,g.Q_)()-this.Cf).toFixed(0),l.lapmabh=Vr(this,this.audioTrack).toFixed(0));this.Hm&&(l.lapmvbht=((0,g.Q_)()-this.Hm).toFixed(0),l.lapmvbh=Vr(this,this.videoTrack).toFixed(0));this.z3&&(l.lapsdai=((0,g.Q_)()-this.z3).toFixed(0));return l}; g.h.ul=function(){try{this.policy.S&&this.N.Xv(!1,"pending"),this.audioTrack.ul(),this.videoTrack.ul()}catch(l){g.Ir(l)}this.policy.L=""}; g.h.zv=function(){return ke(this.Y)}; g.h.Sp=function(l,n,O){this.uF.Sp(l,n,O===void 0?!1:O)}; g.h.G7=function(){return this.uF.G7()}; g.h.KI=function(l,n){l/=n;isNaN(this.timestampOffset)&&kyq(this,l-Math.min(l,this.policy.WU));return(l-this.timestampOffset)*n}; g.h.ez=function(){return this.timestampOffset}; g.h.isSeeking=function(){return this.xT.isSeeking()}; g.h.tF=function(){this.L.tF()}; g.h.gk=function(l,n,O){n=n===void 0?!1:n;O=O===void 0?{}:O;this.policy.S?this.W.gk(l,n,O):this.S.gk(l,n,O)}; g.h.zg=function(l,n){if(!this.G)return!1;var O=this.videoTrack.S.index.Qb(l);return this.G.zg(l,n,O)}; g.h.mA=function(l,n){if(this.G&&this.L.mA(l,this.G))return kyq(this,this.timestampOffset-n),vh(this),this.policy.B&&(Ek(this.T3),d_(this.audioTrack),d_(this.videoTrack),this.ul()),!0;n=this.videoTrack.S.index.Qb(l);this.handleError("ad.skipfailed",{dec:!!this.G,t:l.toFixed(3),sq:n});return!1}; g.h.getManifest=function(){return this.T3}; g.h.isOffline=function(){return!!this.uF.getVideoData().cotn}; g.h.vI=function(l,n){this.uF.vI(l,n)}; g.h.aB=function(l){if(this.policy.mS)this.policy.S&&this.N.Xv(!0,"utc"),this.yV();else{var n=this.uF.getVideoData().iJ;if(n){var O=this.B;O.A7=l;O.iJ=n;UD(this)}}}; g.h.d_=function(l){this.videoTrack.T=!1;this.audioTrack.T=!1;this.xT.W=!1;this.uF.d_(l)}; g.h.u8=function(l){this.xT.u8(l-this.ez())}; g.h.uH=function(){this.uF.uH()}; g.h.ju=function(l){l!==this.policy.X$&&((this.policy.X$=l)||this.yV())}; g.h.Rd=function(l,n){var O=this.audioTrack.Xp,L=this.videoTrack.Xp;O&&L&&(O.remove(l,n),L.remove(l,n))}; g.h.eI=function(l){this.uF.eI(l)}; g.h.YC=function(l){this.uF.YC(l)}; g.h.AE=function(){return this.uF.AE()};g.h=g.xb.prototype;g.h.tT=function(l,n,O,L,X,F){return this.jz.tT(l,n,O,L,X,F)}; g.h.bd=function(l,n,O,L,X,F){return this.jz.bd(l,n,O,L,X,F)}; g.h.Ox=function(l){return this.jz.Ox(l)}; g.h.Zc=function(l){this.jz.Zc(l)}; g.h.gT=function(l,n,O,L){return this.jz.gT(l,n,O,L)}; g.h.tF=function(){this.jz.tF()}; g.h.zg=function(l,n,O){return this.jz.zg(l,n,O)}; g.h.K8=function(l,n){this.jz.K8(l,n)}; g.h.t6=function(){this.jz.t6()}; g.h.MW=Oi(47);g.h.wb=function(l,n,O){this.jz.wb(l,n,O)}; g.h.Y3=Oi(50);g.h.tV=function(l,n,O,L,X,F,x,Z,J){this.jz.tV(l,n,O,L,X,F,x,Z,J)}; g.h.sT=function(l){this.jz.sT(l)}; g.h.Df=function(l){return this.jz.Df(l)}; g.h.YE=function(l){return this.jz.YE(l)};g.u(hO,g.hj);g.u(Zl,hO);Zl.prototype.V=function(l,n){if(l&&n){var O=Number(fr(l,"cpi"))*1+1;isNaN(O)||O<=0||O<this.N?(this.L.stop(),this.W.stop(),this.N=-1,this.S={}):(O>this.N&&(this.N=O,g.Qj(this.S)||(this.S={},this.L.stop(),this.W.stop())),this.S[n]=l,g.lx(this.W))}}; Zl.prototype.B=function(){for(var l=g.P(Object.keys(this.S)),n=l.next();!n.done;n=l.next()){var O=n.value;n=this.publish;for(var L=this.N,X=this.S[O].match(da),F=[],x=g.P(X[6].split("&")),Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.indexOf("cpi=")===0?F.push("cpi="+L.toString()):Z.indexOf("ek=")===0?F.push("ek="+g.RW(O)):F.push(Z);X[6]="?"+F.join("&");O="skd://"+X.slice(2).join("");X=O.length*2;L=new Uint8Array(X+4);L[0]=X%256;L[1]=(X-L[0])/256;for(X=0;X<O.length;++X)L[X*2+4]=O.charCodeAt(X);n.call(this, "rotated_need_key_info_ready",new xS(L,"fairplay",!0))}this.S={}}; Zl.prototype.oz=function(){this.S={};hO.prototype.oz.call(this)};g.u(JO,hO); JO.prototype.B=function(l){var n;a:{if((n=l.cryptoPeriodIndex)&&this.S.length>0)for(var O=g.P(this.S),L=O.next();!L.done;L=O.next())if(n===L.value.info.cryptoPeriodIndex){n=!0;break a}n=!1}if(!n){n=(0,g.Q_)();a:{O=l.cryptoPeriodIndex;if(!isNaN(O)){L=g.P(this.N.values());for(var X=L.next();!X.done;X=L.next())if(Math.abs(X.value.cryptoPeriodIndex-O)<=1){O=!0;break a}}O=!1}O?(O=l.S,O=Math.max(0,Math.random()*((isNaN(O)?120:O)-30))*1E3):O=0;this.publish("log_qoe",{wvagt:"delay."+O,cpi:l.cryptoPeriodIndex,reqlen:this.S.length, ignore:this.L});O<=0?Y90(this,l):this.L||(this.S.push({time:n+O,info:l}),g.lx(this.W,O))}}; JO.prototype.oz=function(){this.S=[];hO.prototype.oz.call(this)};var rG={},dkv=(rG.DRM_TRACK_TYPE_AUDIO="AUDIO",rG.DRM_TRACK_TYPE_SD="SD",rG.DRM_TRACK_TYPE_HD="HD",rG.DRM_TRACK_TYPE_UHD1="UHD1",rG);g.u(mka,g.V);g.u(V47,g.hj);g.h=V47.prototype;g.h.U7=function(l){var n=this;this.JG()||l.size<=0||(l.forEach(function(O,L){var X=m9(n.W)?L:O;L=new Uint8Array(m9(n.W)?O:L);m9(n.W)&&OF8(L);O=g.Pd(L,4);OF8(L);L=g.Pd(L,4);n.S[O]?n.S[O].status=X:n.S[L]?n.S[L].status=X:n.S[O]={type:"",status:X}}),CTi(this,","),wA(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.h.error=function(l,n,O,L){this.JG()||(this.publish("licenseerror",l,n,O,L),l==="drm.provision"&&(l=(Date.now()-this.V)/1E3,this.V=NaN,this.publish("ctmp","provf",{et:l.toFixed(3)})));QC(n)&&this.dispose()}; g.h.shouldRetry=function(l,n){return!l&&this.requestNumber===n.requestNumber}; g.h.oz=function(){this.S={};g.hj.prototype.oz.call(this)}; g.h.sC=function(){var l={ctype:this.G.contentType||"",length:this.G.initData.length,requestedKeyIds:this.Q5,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(l.keyStatuses=this.S);return l}; g.h.getInfo=function(){var l=this.L.join();if(HF(this)){var n=new Set,O;for(O in this.S)this.S[O].status!=="usable"&&n.add(this.S[O].type);l+="/UKS."+Array.from(n)}return l+="/"+this.cryptoPeriodIndex}; g.h.Ae=function(){return this.url};g.u(AO,g.V);g.h=AO.prototype;g.h.n$=function(l){if(this.B){var n=l.messageType||"license-request";this.B(new Uint8Array(l.message),n)}}; g.h.U7=function(){this.T&&this.T(this.S.keyStatuses)}; g.h.onClosed=function(){this.JG()||g.S_("xboxone")&&this.N&&this.N("closed")}; g.h.HY=function(l){this.B&&this.B(l.message,"license-request")}; g.h.BY=function(l){if(this.N){if(this.W){var n=this.W.error.code;l=this.W.error.systemCode}else n=l.errorCode,l=l.systemCode;this.N("t.prefixedKeyError;c."+n+";sc."+l,n,l)}}; g.h.Vs=function(){this.V&&this.V()}; g.h.update=function(l){var n=this;if(this.S)return(aS.isActive()?aS.bW("emeupd",function(){return n.S.update(l)}):this.S.update(l)).then(null,T$(function(O){LMi(n,"t.update",O)})); this.W?this.W.update(l):this.element.addKey?this.element.addKey(this.G.keySystem,l,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.G.keySystem,l,this.initData,this.sessionId);return mA()}; g.h.oz=function(){this.S&&(this.Y?this.S.close().catch(g.d2):this.S.close());this.element=null;g.V.prototype.oz.call(this)};g.u(bb,g.V);g.h=bb.prototype;g.h.MV=function(){var l=this;if(this.S.keySystemAccess)return(aS.isActive()?aS.bW("emenew",function(){return l.S.keySystemAccess.createMediaKeys()}):this.S.keySystemAccess.createMediaKeys()).then(function(O){if(!l.JG())if(l.W=O,aS.isActive())aS.bW("emeset",function(){return l.element.setMediaKeys(O)}); else{var L;(L=l.element)==null||L.setMediaKeys(O)}}); if(GI(this.S))this.N=new (jm())(this.S.keySystem);else if(IS(this.S)){this.N=new (jm())(this.S.keySystem);var n;(n=this.element)==null||n.webkitSetMediaKeys(this.N)}else aS.isActive()&&this.Sp("emev",{v:"01b"}),Qd(this.B,this.element,["keymessage","webkitkeymessage"],this.MS),Qd(this.B,this.element,["keyerror","webkitkeyerror"],this.K$),Qd(this.B,this.element,["keyadded","webkitkeyadded"],this.Gb);return null}; g.h.setServerCertificate=function(){return this.W.setServerCertificate?this.S.flavor==="widevine"&&this.S.CZ?this.W.setServerCertificate(this.S.CZ):$Y(this.S)&&this.S.nf?this.W.setServerCertificate(this.S.nf):null:null}; g.h.createSession=function(l,n){var O=l.initData;if(this.S.keySystemAccess){n&&n("createsession");var L=this.W.createSession();dC(this.S)?O=XD7(O,this.S.nf):$Y(this.S)&&(O=e29(O)||new Uint8Array(0));n&&n("genreq");var X=aS.isActive()?aS.bW("emegen",function(){return L.generateRequest(l.contentType,O)}):L.generateRequest(l.contentType,O); var F=new AO(null,null,null,L,null,this.T);X.then(function(){n&&n("genreqsuccess")},T$(function(Z){LMi(F,"t.generateRequest",Z)})); return F}if(GI(this.S))return FMi(this,O);if(IS(this.S))return oAv(this,O);if((X=this.element)==null?0:X.generateKeyRequest)this.element.generateKeyRequest(this.S.keySystem,O);else{var x;(x=this.element)==null||x.webkitGenerateKeyRequest(this.S.keySystem,O)}return this.L=new AO(this.element,this.S,O,null,null,this.T)}; g.h.MS=function(l){var n=xck(this,l);n&&n.HY(l)}; g.h.K$=function(l){var n=xck(this,l);n&&n.BY(l)}; g.h.Gb=function(l){var n=xck(this,l);n&&n.Vs(l)}; g.h.getMetrics=function(){if(this.W&&this.W.getMetrics)try{var l=this.W.getMetrics()}catch(n){}return l}; g.h.oz=function(){this.N=this.W=null;var l;(l=this.L)==null||l.dispose();l=g.P(Object.values(this.V));for(var n=l.next();!n.done;n=l.next())n.value.dispose();this.V={};g.V.prototype.oz.call(this);delete this.element};g.h=rA.prototype;g.h.get=function(l){l=this.findIndex(l);return l!==-1?this.values[l]:null}; g.h.remove=function(l){l=this.findIndex(l);l!==-1&&(this.keys.splice(l,1),this.values.splice(l,1))}; g.h.removeAll=function(){this.keys=[];this.values=[]}; g.h.set=function(l,n){var O=this.findIndex(l);O!==-1?this.values[O]=n:(this.keys.push(l),this.values.push(n))}; g.h.findIndex=function(l){return g.Rk(this.keys,function(n){return g.Jm(l,n)})};g.u(JAi,g.hj);g.h=JAi.prototype;g.h.m55=function(l){this.HQ({onecpt:1});l.initData&&PCi(this,new Uint8Array(l.initData),l.initDataType)}; g.h.IQ2=function(l){this.HQ({onndky:1});PCi(this,l.initData,l.contentType)}; g.h.VC=function(l){this.HQ({onneedkeyinfo:1});this.xo.J("html5_eme_loader_sync")&&(this.T.get(l.initData)||this.T.set(l.initData,l));u39(this,l)}; g.h.aM=function(l){this.N.push(l);UV(this)}; g.h.createSession=function(l){var n=Wzk(this)?aye(l):g.Pd(l.initData);this.W.get(n);this.Lf=!0;l=new V47(this.videoData,this.xo,l,this.drmSessionId);this.W.set(n,l);l.subscribe("ctmp",this.gV,this);l.subscribe("keystatuseschange",this.U7,this);l.subscribe("licenseerror",this.TH,this);l.subscribe("newlicense",this.LJ,this);l.subscribe("newsession",this.DP,this);l.subscribe("sessionready",this.tX,this);l.subscribe("fairplay_next_need_key_info",this.hX,this);this.xo.J("html5_enable_vp9_fairplay")&&l.subscribe("qualitychange", this.Nu,this);this.xo.J("html5_enable_sabr_drm_hd720p")&&l.subscribe("sabrlicenseconstraint",this.XSi,this);z2f(l,this.L)}; g.h.LJ=function(l){this.JG()||(this.HQ({onnelcswhb:1}),l&&!this.heartbeatParams&&(this.heartbeatParams=l,this.publish("heartbeatparams",l)))}; g.h.DP=function(){this.JG()||(this.HQ({newlcssn:1}),this.N.shift(),this.Lf=!1,UV(this))}; g.h.tX=function(){if(GI(this.S)&&(this.HQ({onsnrdy:1}),this.Hm--,this.Hm===0)){var l=this.Wm,n,O;(n=l.element)==null||(O=n.msSetMediaKeys)==null||O.call(n,l.N)}}; g.h.U7=function(l){if(!this.JG()){!this.z3&&this.videoData.J("html5_log_drm_metrics_on_key_statuses")&&(ES5(this),this.z3=!0);this.HQ({onksch:1});var n=this.Nu;if(!HF(l)&&g.RZ&&l.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var O="large";else{O=[];var L=!0;if(HF(l))for(var X=g.P(Object.keys(l.S)),F=X.next();!F.done;F=X.next())F=F.value,l.S[F].status==="usable"&&O.push(l.S[F].type),l.S[F].status!=="unknown"&&(L=!1);if(!HF(l)||L)O=l.L;O=R2i(O)}n.call(this,O);this.publish("keystatuseschange", l)}}; g.h.gV=function(l,n){this.JG()||this.publish("ctmp",l,n)}; g.h.hX=function(l,n){this.JG()||this.publish("fairplay_next_need_key_info",l,n)}; g.h.TH=function(l,n,O,L){this.JG()||(this.videoData.J("html5_log_drm_metrics_on_error")&&ES5(this),this.publish("licenseerror",l,n,O,L))}; g.h.HD=function(){return this.G}; g.h.Nu=function(l){var n=g.gI("auto",l,!1,"l");if(this.videoData.hZ){if(this.G.XT(n))return}else if(Bov(this.G,l))return;this.G=n;this.publish("qualitychange");this.HQ({updtlq:l})}; g.h.XSi=function(l){this.videoData.sabrLicenseConstraint=l}; g.h.oz=function(){this.S.keySystemAccess&&this.element&&(this.Q5?this.element.setMediaKeys(null).catch(g.d2):this.element.setMediaKeys(null));this.element=null;this.N=[];for(var l=g.P(this.W.values()),n=l.next();!n.done;n=l.next())n=n.value,n.unsubscribe("ctmp",this.gV,this),n.unsubscribe("keystatuseschange",this.U7,this),n.unsubscribe("licenseerror",this.TH,this),n.unsubscribe("newlicense",this.LJ,this),n.unsubscribe("newsession",this.DP,this),n.unsubscribe("sessionready",this.tX,this),n.unsubscribe("fairplay_next_need_key_info", this.hX,this),this.xo.J("html5_enable_vp9_fairplay")&&n.unsubscribe("qualitychange",this.Nu,this),n.dispose();this.W.clear();this.V.removeAll();this.T.removeAll();this.heartbeatParams=null;g.hj.prototype.oz.call(this)}; g.h.sC=function(){for(var l={systemInfo:this.S.sC(),sessions:[]},n=g.P(this.W.values()),O=n.next();!O.done;O=n.next())l.sessions.push(O.value.sC());return l}; g.h.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.B?"/KR":"")}; g.h.HQ=function(l,n){n=n===void 0?!1:n;this.JG()||(yC(l),(this.xo.AA()||n)&&this.publish("ctmp","drmlog",l))};g.u(y4i,g.V);g.h=y4i.prototype;g.h.Wc=function(){return!!this.nj}; g.h.Bi=function(){return this.W}; g.h.handleError=function(l){var n=this;Gr5(this,l);if((l.errorCode!=="html5.invalidstate"&&l.errorCode!=="fmt.unplayable"&&l.errorCode!=="fmt.unparseable"||!j2e(this,l.errorCode,l.details))&&!$G5(this,l)){if(this.rq.Wm!=="yt"&&IR5(this,l)&&this.videoData.D7&&(0,g.Q_)()/1E3>this.videoData.D7&&this.rq.Wm==="hm"){var O=Object.assign({e:l.errorCode},l.details);O.stalesigexp="1";O.expire=this.videoData.D7;O.init=this.videoData.oM/1E3;O.now=(0,g.Q_)()/1E3;O.systelapsed=((0,g.Q_)()-this.videoData.oM)/1E3; l=new Ml(l.errorCode,O,2);this.uF.M_(l.errorCode,2,"SIGNATURE_EXPIRED",yC(l.details))}if(QC(l.severity)){var L;O=(L=this.uF.sf)==null?void 0:L.S.S;if(this.rq.J("html5_use_network_error_code_enums"))if(mGe(l)&&O&&O.isLocked())var X="FORMAT_UNAVAILABLE";else if(this.rq.V||l.errorCode!=="auth"||l.details.rc!==429)l.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED");else{X="TOO_MANY_REQUESTS";var F="6"}else mGe(l)&&O&&O.isLocked()?X="FORMAT_UNAVAILABLE":this.rq.V||l.errorCode!=="auth"|| l.details.rc!=="429"?l.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED"):(X="TOO_MANY_REQUESTS",F="6");this.uF.M_(l.errorCode,l.severity,X,yC(l.details),F)}else this.uF.publish("nonfatalerror",l),L=/^pp/.test(this.videoData.clientPlaybackNonce),this.l5(l.errorCode,l.details),L&&l.errorCode==="manifest.net.connect"&&(l="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q_)(),DK(l,"manifest",function(x){n.V=!0;n.Sp("pathprobe",x)},function(x){n.l5(x.errorCode, x.details)}))}}; g.h.Sp=function(l,n){this.uF.p5().Sp(l,n)}; g.h.l5=function(l,n){n=yC(n);this.uF.p5().l5(l,n)};c4q.prototype.HF=function(l,n){return(n===void 0?0:n)?{fJ:l?TW(this,l):iQ,QY:l?R07(this,l):iQ,xJ3:l?Kz8(this,l):iQ,W52:l?O3f(this,l.videoData):iQ,yY:l?gN9(this,l.videoData,l):iQ,NZG:l?s2i(this,l):iQ,dJp:Sjq(this)}:{fJ:l?TW(this,l):iQ}}; c4q.prototype.J=function(l){return this.xo.J(l)};g.u(WF,g.V);WF.prototype.onError=function(l){if(l!=="player.fatalexception"||this.provider.J("html5_exception_to_health"))l==="sabr.fallback"&&(this.encounteredSabrFallback=!0),l.match(xgR)?this.networkErrorCount++:this.nonNetworkErrorCount++}; WF.prototype.send=function(){if(!(this.N||this.S<0)){oN7(this);var l=g.EV(this.provider)-this.S,n="PLAYER_PLAYBACK_STATE_UNKNOWN",O=this.playerState.WG;this.playerState.isError()?n=O&&O.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.K(this.playerState,2)?n="PLAYER_PLAYBACK_STATE_ENDED":g.K(this.playerState,64)?n="PLAYER_PLAYBACK_STATE_UNSTARTED":g.K(this.playerState,16)||g.K(this.playerState,32)?n="PLAYER_PLAYBACK_STATE_SEEKING":g.K(this.playerState,1)&&g.K(this.playerState, 4)?n="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.K(this.playerState,1)?n="PLAYER_PLAYBACK_STATE_BUFFERING":g.K(this.playerState,4)?n="PLAYER_PLAYBACK_STATE_PAUSED":g.K(this.playerState,8)&&(n="PLAYER_PLAYBACK_STATE_PLAYING");O=nMF[Wf(this.provider.videoData)];a:switch(this.provider.xo.playerCanaryState){case "canary":var L="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":L="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:L="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var X=FHi(this.provider), F=this.W<0?l:this.W-this.S;l=this.provider.xo.j7+36E5<(0,g.Q_)();n={started:this.W>=0,stateAtSend:n,joinLatencySecs:F,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:L,playerCanaryStage:X,isAd:this.provider.videoData.isAd(),liveMode:O,hasDrm:!!g.Pf(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:XZ(this.provider.videoData)};l||g.JG("html5PlayerHealthEvent",n);this.N=!0;this.dispose()}}; WF.prototype.oz=function(){this.N||this.send();window.removeEventListener("error",this.u1);window.removeEventListener("unhandledrejection",this.u1);g.V.prototype.oz.call(this)}; var xgR=/\bnet\b/;g.u(hD5,g.V);hD5.prototype.oz=function(){Jy7(this);g.V.prototype.oz.call(this)};var whq=/[?&]cpn=/;g.u(Ns,g.V);Ns.prototype.flush=function(){var l={};this.W&&(l.pe=this.W);this.S.length>0&&(l.pt=this.S.join("."));this.S=[];return l}; Ns.prototype.stop=function(){var l=this,n,O,L;return g.Y(function(X){if(X.S==1)return g.We(X,2),g.Q(X,(n=l.L)==null?void 0:n.stop(),4);if(X.S!=2)return(O=X.W)&&l.logTrace(O),g.N7(X,0);L=g.D5(X);l.W=P59(L.message);g.Tk(X)})}; Ns.prototype.logTrace=function(l){this.encoder.reset();this.encoder.add(1);this.encoder.add(l.resources.length);for(var n=g.P(l.resources),O=n.next();!O.done;O=n.next()){O=O.value.replace("https://www.youtube.com/s/","");this.encoder.add(O.length);for(var L=0;L<O.length;L++)this.encoder.add(O.charCodeAt(L))}this.encoder.add(l.frames.length);n=g.P(l.frames);for(O=n.next();!O.done;O=n.next()){O=O.value;this.encoder.add(O.name.length);for(L=0;L<O.name.length;L++)this.encoder.add(O.name.charCodeAt(L)); ZU(this.encoder,O.resourceId);ZU(this.encoder,O.line);ZU(this.encoder,O.column)}this.encoder.add(l.samples.length);n=g.P(l.samples);for(O=n.next();!O.done;O=n.next())O=O.value,this.encoder.add(Math.trunc(O.timestamp)),ZU(this.encoder,O.stackId);this.encoder.add(l.stacks.length);l=g.P(l.stacks);for(n=l.next();!n.done;n=l.next())n=n.value,this.encoder.add(n.frameId),ZU(this.encoder,n.parentId);l=this.encoder.OP();this.N+=l.length;this.N<1E7&&this.S.push(l)}; Ns.prototype.oz=function(){this.stop();g.V.prototype.oz.call(this)};var WH0=[2,5,30];g.eT=Ao(function(){var l="";try{var n=g.nf("CANVAS").getContext("webgl");n&&(n.getExtension("WEBGL_debug_renderer_info"),l=n.getParameter(37446),l=l.replace(/[ :]/g,"_"))}catch(O){}return l});g.u(g.yn,g.V);g.h=g.yn.prototype;g.h.vo5=function(){var l=g.EV(this.provider);qD0(this,l)}; g.h.k8=function(){return this.jV}; g.h.qd=function(){return{H8:this.H8,JK:this.JK}}; g.h.o$=function(l,n){this.H8=l;this.JK=n}; g.h.fV=function(l){if(!this.K5){this.K5=!0;var n="";switch(l){case 1:n="proximaui";break;case 2:n=$0k(this.provider.videoData)?"proximawpcc":this.provider.videoData.J("html5_enable_proxima")||this.provider.videoData.J("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:n="proximaauto"}n!==""&&Qn(this,n)}}; g.h.Ni=function(l){this.S.lwc=[[l.Jt?l.Jt.toFixed():"",l.HT?l.HT.toFixed():"",l.Hm?(l.Hm*1E3).toFixed():"",l.Sz?(l.Sz*1E3).toFixed():"",l.q5?(l.q5*1E3).toFixed():""].join(":")]}; g.h.reportStats=function(l){l=l===void 0?NaN:l;if(!this.JG()&&(l=l>=0?l:g.EV(this.provider),["PL","B","S"].indexOf(this.N_)>-1&&(!g.Qj(this.S)||l>=this.B+30)&&(g.kb(this,l,"vps",[this.N_]),this.B=l),!g.Qj(this.S))){this.sequenceNumber===7E3&&g.d2(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Ms(this,l);var n=this.provider.uF.JU();n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=O.value,this.Sp(O.key,O.value);n=l;O=this.provider.uF.Qd();var L=O.droppedVideoFrames||0,X=O.totalVideoFrames|| 0,F=L-this.H8,x=X&&!this.JK;L>O.totalVideoFrames||F>5E3?jGe(this,"html5.badframedropcount","df."+L+";tf."+O.totalVideoFrames):(F>0||x)&&g.kb(this,n,"df",[F]);this.H8=L;this.JK=X;this.Y>0&&(g.kb(this,l,"glf",[this.Y]),this.Y=0);n9.isActive()&&(l=n9.xO(),Object.keys(l).length>0&&this.Sp("profile",l));this.Fp&&Qn(this,"lwnmow");this.provider.xo.AA()&&this.provider.J("html5_record_now")&&this.Sp("now",{wt:(0,g.Q_)()});l={};this.provider.videoData.W&&(l.fmt=this.provider.videoData.W.itag,(n=this.provider.videoData.L)&& n.itag!==l.fmt&&(l.afmt=n.itag));l.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(l.adcpn=this.adCpn);this.Wm&&(l.addocid=this.Wm);this.contentCpn&&(l.ccpn=this.contentCpn);this.Q5&&(l.cdocid=this.Q5);this.provider.videoData.cotn&&(l.cotn=this.provider.videoData.cotn);l.el=Bf(this.provider.videoData);l.content_v=iT(this.provider.videoData);l.ns=this.provider.xo.Wm;l.fexp=NXa(this.provider.xo.experiments).toString();l.cl=(730264792).toString();(n=this.provider.videoData.adFormat||this.adFormat)&& (l.adformat=n);(n=Wf(this.provider.videoData))&&(l.live=n);this.provider.videoData.Vb()&&(l.drm=1,this.provider.videoData.B&&(l.drm_system=aZ1[this.provider.videoData.B.flavor]||0),this.provider.videoData.oh&&(l.drm_product=this.provider.videoData.oh));ZE()&&this.provider.videoData.V&&(l.ctt=this.provider.videoData.V,l.cttype=this.provider.videoData.dH,this.provider.videoData.mdxEnvironment&&(l.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(l.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.lk&&(l.dai_fallback="1")):this.provider.videoData.WS?l.dai="cs":this.provider.videoData.SK&&(l.dai="disabled");l.seq=this.sequenceNumber++;if(this.provider.videoData.Lr){if(n=this.provider.videoData.Lr,l&&n)for(n.ns==="3pp"&&(l.ns="3pp"),this.d8.has(n.ns)&&Qn(this,"hbps"),n.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=n.shbpslc),O=g.P(Object.keys(n)),L=O.next();!L.done;L=O.next())L=L.value,this.Y4.has(L)|| (l[L]=n[L])}else l.event="streamingstats",l.docid=this.provider.videoData.videoId,l.ei=this.provider.videoData.eventId;this.isEmbargoed&&(l.embargoed="1");Object.assign(l,this.provider.xo.S);if(n=l.seq)n={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+n,serializedWatchEndpointLoggingContext:this.provider.videoData.DI},this.serializedHouseBrandPlayerServiceLoggingContext&&(n.serializedHouseBrandPlayerServiceLoggingContext=Wd(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), this.provider.videoData.playerResponseCpn&&(n.playerResponseCpn=this.provider.videoData.playerResponseCpn),qs.length&&(n.decoderInfo=qs),this.provider.uF.WM()&&(n.transitionStitchType=4,this.Lf&&(n.timestampOffsetMsecs=this.Lf)),this.remoteControlMode&&(n.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(n.remoteConnectedDevices=this.remoteConnectedDevices),n=g.Cu(n,JJ5),n=g.Pd(n,4),this.S.qclc=[n];l=g.pr("//"+this.provider.xo.CT+"/api/stats/qoe",l);O=n="";L=g.P(Object.keys(this.S)); for(X=L.next();!X.done;X=L.next())X=X.value,this.S[X]===null?g.d2(new g.at("Stats report key has invalid value",X)):(X="&"+X+"="+this.S[X].join(","),X.length>100?O+=X:n+=X);Mp8(this,l+n,O.replace(/ /g,"%20"))}this.S={}}}; g.h.YC=function(l){this.Fp=l}; g.h.Zn=function(){if(this.provider.videoData.B){var l=this.provider.videoData.B;Qn(this,"eme-"+(l.keySystemAccess?"final":GI(l)?"ms":dC(l)?"ytfp":IS(l)?"safarifp":"nonfinal"))}}; g.h.ov=function(l){var n=g.EV(this.provider);if(!this.provider.xo.experiments.MQ("html5_refactor_sabr_video_format_selection_logging")||l.S.id!==this.Fi){var O=[l.S.id,l.W,this.Fi,l.reason];l.token&&O.push(l.token);g.kb(this,n,"vfs",O);this.Fi=l.S.id;O=this.provider.uF.getPlayerSize();if(O.width>0&&O.height>0){O=[Math.round(O.width),Math.round(O.height)];var L=g.Kw();L>1&&O.push(L);g.kb(this,n,"view",O)}this.Of||(this.provider.xo.AA()&&Qn(this,"rqs2"),this.provider.videoData.S&&JF(this.provider.videoData.S)&& (this.S.preload=["1"]));this.N=this.Of=!0}l.reason==="m"&&++this.j3===100&&Gof(this,2);g.kb(this,n,"vps",[this.N_]);this.reportStats(n)}; g.h.Yf=function(l){var n=g.EV(this.provider);if(this.provider.xo.experiments.MQ("html5_refactor_sabr_audio_format_selection_logging")){n=l.S;var O=[n.audio&&n.video?n.hq?n.hq:"":n.id];n.O_&&n.O_.id&&O.push(n.O_.id);n=O.join(";");n!==this.T&&(O=[n,this.T,l.reason],l.token&&O.push(l.token),g.kb(this,g.EV(this.provider),"afs",O),this.T=n)}else l.S.id!==this.T&&(O=[l.S.id,this.T,l.reason],l.token&&O.push(l.token),g.kb(this,n,"afs",O),this.T=l.S.id)}; g.h.W$=Oi(54);g.h.Z0=function(l){this.isEmbargoed=l}; g.h.kT=Oi(33);g.h.fM=Oi(38);g.h.onPlaybackRateChange=function(l){var n=g.EV(this.provider);l&&l!==this.q5&&(g.kb(this,n,"rate",[l]),this.q5=l);this.reportStats(n)}; g.h.pB=Oi(28);g.h.getPlayerState=function(l){if(g.K(l,128))return"ER";if(g.K(l,2048))return"B";if(g.K(l,512))return"SU";if(g.K(l,16)||g.K(l,32))return"S";if(l.isOrWillBePlaying()&&g.K(l,64))return"B";var n=hC1[HG(l)];g.yw(this.provider.xo)&&n==="B"&&this.provider.uF.getVisibilityState()===3&&(n="SU");n==="B"&&g.K(l,4)&&(n="PB");return n}; g.h.oz=function(){g.V.prototype.oz.call(this);g.Tj(this.V);g.Tj(this.n5)}; g.h.Hv=function(l){this.isOffline=l;g.kb(this,g.EV(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.h.Sp=function(l,n,O){var L=this.S.ctmp||[],X=this.z$.indexOf(l)!==-1;X||this.z$.push(l);if(!O||!X){var F=typeof n!=="string"?yC(n):n;F=mEi(F);if(!O&&!/^t[.]/.test(F)){var x=g.EV(this.provider)*1E3;F="t."+x.toFixed()+";"+F}L.push(l+":"+F);this.logger.debug(function(){return"ctmp "+l+" "+F}); this.S.ctmp=L;QGe(this);return x}}; g.h.MG=function(l,n,O){this.L={BBf:Number(this.Sp("glrem",{nst:l.toFixed(),rem:n.toFixed(),ca:+O})),bB:l,uTG:n,isAd:O}}; g.h.t5=function(l,n,O){g.kb(this,g.EV(this.provider),"ad_playback",[l,n,O])}; g.h.KV=function(l,n){var O=g.EV(this.provider)*1E3,L=this.S.daism||[];L.push("t."+O.toFixed(0)+";smw."+(l*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0));this.S.daism=L}; g.h.resume=function(){var l=this;this.provider.xo.AA()&&this.Sp("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.V)?eDk(this):this.V=g.uk(function(){l.reportStats()},1E4)}; var Us={},hC1=(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),qs=[];$Ev.prototype.jJ=function(){return this.S}; $Ev.prototype.update=function(){if(this.T){var l=this.provider.uF.Vi(this.provider.videoData.clientPlaybackNonce)||0,n=g.EV(this.provider);l>=this.provider.uF.getDuration()-.1&&(this.previouslyEnded=!0);if(l!==this.S||cye(this,l,n)){var O;if(!(O=l<this.S||l-this.S>n-this.iW+2||cye(this,l,n))){O=this.provider.uF.getVolume();var L=O!==this.Y,X=this.provider.uF.isMuted()?1:0;X!==this.G?(this.G=X,O=!0):(!L||this.L>=0||(this.Y=O,this.L=n),O=n-this.L,this.L>=0&&O>2?(this.L=-1,O=!0):O=!1)}O&&(GW(this),this.N= l);this.iW=n;this.S=l}}};i3e.prototype.send=function(l){var n=this;if(!this.G3){var O=SD0(this),L=g.pr(this.uri,O);this.xo.J("vss_through_gel_double")&&phv(L);this.Q5&&!this.xo.J("html5_simplify_pings")?RD5(this,L):zDe(this,l).then(function(X){n.Q5&&(X=X||{},X.method="POST",X.postParams={atr:n.attestationResponse});ry8(L,X,{token:n.Wm,UT:n.uv,mdxEnvironment:n.mdxEnvironment},n.xo,l,n.Lf,n.isFinal&&n.j7||n.Cf||n.N&&n.IA)}); this.G3=!0}}; i3e.prototype.W=function(l){l===void 0&&(l=NaN);return Number(l.toFixed(3)).toString()}; var uP={},KH0=(uP.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,uP.LIVING_ROOM_APP_MODE_MAIN=1,uP.LIVING_ROOM_APP_MODE_KIDS=2,uP.LIVING_ROOM_APP_MODE_MUSIC=3,uP.LIVING_ROOM_APP_MODE_UNPLUGGED=4,uP.LIVING_ROOM_APP_MODE_GAMING=5,uP),P5={},fXi=(P5.EMBEDDED_PLAYER_MODE_UNKNOWN=0,P5.EMBEDDED_PLAYER_MODE_DEFAULT=1,P5.EMBEDDED_PLAYER_MODE_PFP=2,P5.EMBEDDED_PLAYER_MODE_PFL=3,P5);g.u(ID,g.V);g.h=ID.prototype;g.h.Mn=function(){this.S.update();LRi(this)&&(tpk(this),vNv(this),this.JL())}; g.h.oz=function(){g.V.prototype.oz.call(this);Vn(this);Vp8(this.S)}; g.h.sC=function(){return SD0(dA(this,"playback"))}; g.h.JL=function(){this.provider.videoData.T.eventLabel=Bf(this.provider.videoData);this.provider.videoData.T.playerStyle=this.provider.xo.playerStyle;this.provider.videoData.AP&&(this.provider.videoData.T.feature="pyv");this.provider.videoData.T.vid=this.provider.videoData.videoId;var l=this.provider.videoData.T;var n=this.provider.videoData;n=n.isAd()||!!n.AP;l.isAd=n}; g.h.MJ=function(l){var n=dA(this,"engage");n.NQ=l;return sGg(n,Zte(this.provider))};hsi.prototype.isEmpty=function(){return this.endTime===this.startTime};cF.prototype.J=function(l){return this.xo.J(l)}; cF.prototype.getCurrentTime=function(l){if(this.J("html5_ssap_current_time_for_logging_refactor")){var n=this.uF.WM();if(n&&(l=l||n.wA()))return oP(n,l)}else if(g.fy(this.videoData)){var O=this.uF.WM();if(O)return l=this.uF.getCurrentTime(),O=(((n=jx(O,l*1E3))==null?void 0:n.KZ)||0)/1E3,l-O}return this.uF.getCurrentTime()}; cF.prototype.n1=function(l){if(this.J("html5_ssap_current_time_for_logging_refactor")){var n=this.uF.WM();if(n&&(l=l||n.wA()))return oP(n,l)}else if(g.fy(this.videoData)){var O=this.uF.WM();if(O)return l=this.uF.n1(),O=(((n=jx(O,l*1E3))==null?void 0:n.KZ)||0)/1E3,l-O}return this.uF.n1()}; var JOi={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.u(g.ib,g.V);g.h=g.ib.prototype;g.h.Mn=function(){if(this.provider.videoData.enableServerStitchedDai&&this.uU){var l;(l=this.N.get(this.uU))==null||l.Mn()}else this.S&&this.S.Mn()}; g.h.Z0=function(l){this.qoe&&this.qoe.Z0(l)}; g.h.kT=Oi(32);g.h.fM=Oi(37);g.h.KV=function(l,n){this.qoe&&this.qoe.KV(l,n)}; g.h.l5=function(l,n){this.qoe&&jGe(this.qoe,l,n);if(this.W)this.W.onError(l)}; g.h.ov=function(l){this.qoe&&this.qoe.ov(l)}; g.h.Yf=function(l){this.qoe&&this.qoe.Yf(l)}; g.h.onPlaybackRateChange=function(l){if(this.qoe)this.qoe.onPlaybackRateChange(l);this.S&&GW(this.S.S)}; g.h.W$=Oi(53);g.h.Sp=function(l,n,O){this.qoe&&this.qoe.Sp(l,n,O)}; g.h.MG=function(l,n,O){this.qoe&&this.qoe.MG(l,n,O)}; g.h.fV=function(l){var n;(n=this.qoe)==null||n.fV(l)}; g.h.Ni=function(l){var n;(n=this.qoe)==null||n.Ni(l)}; g.h.YC=function(l){this.qoe&&this.qoe.YC(l)}; g.h.t5=function(l,n,O){this.qoe&&this.qoe.t5(l,n,O)}; g.h.pB=Oi(27);g.h.k8=function(){if(this.qoe)return this.qoe.k8()}; g.h.sC=function(){if(this.provider.videoData.enableServerStitchedDai&&this.uU){var l,n;return(n=(l=this.N.get(this.uU))==null?void 0:l.sC())!=null?n:{}}return this.S?this.S.sC():{}}; g.h.qd=function(){var l;return(l=this.qoe)==null?void 0:l.qd()}; g.h.o$=function(l,n){var O;(O=this.qoe)==null||O.o$(l,n)}; g.h.MJ=function(l){return this.S?this.S.MJ(l):function(){}}; g.h.JL=function(){this.S&&this.S.JL()}; g.h.getVideoData=function(){return this.provider.videoData}; g.h.resume=function(){this.qoe&&this.qoe.resume()};g.u(ST,g.V); ST.prototype.pw=function(l,n,O){if(this.S.has(l)){var L=this.S.get(l);if(n.videoId&&!wFe(L))this.W.Sp("ssap",{rlc:l}),NAi(this,l);else return}if(!this.S.has(l)){L=new cF(n,this.xo,this.uF);var X=Math.round(g.EV(this.W.provider)*1E3);L=new g.ib(L,X);wFe(L)||this.W.Sp("nqv",{vv:n.videoId});X=this.W.getVideoData();this.S.set(l,L);if(L.qoe){var F=L.qoe,x=X.videoId||"";F.contentCpn=X.clientPlaybackNonce;F.Q5=x}Htq(L);O===2&&(this.xo.J("html5_log_ad_playback_docid")?(O=this.W,O.qoe&&(O=O.qoe,L=n.Wk||"", X=n.breakType||0,n=n.videoId||"",F=this.xo.Wm||"yt",g.kb(O,g.EV(O.provider),"ad_playback",[l,L,X,n,F]))):this.W.t5(l,n.Wk||"",n.breakType||0))}}; ST.prototype.FE=function(l,n,O,L,X,F,x,Z){if(l!==n){var J=this.p5(l),w=this.p5(n),H,A=l===((H=J.getVideoData())==null?void 0:H.clientPlaybackNonce),b;H=n===((b=w.getVideoData())==null?void 0:b.clientPlaybackNonce);var r;b=A?((r=J.getVideoData())==null?void 0:r.videoId)||"":"nvd";var U;r=H?((U=w.getVideoData())==null?void 0:U.videoId)||"":"nvd";A&&(J=J.qoe)!=null&&(Yb(J,4,F?4:X?2:0,n,r,O),J.reportStats());H&&(zW(w),(n=w.qoe)!=null&&(Yb(n,4,F?5:X?3:1,l,b,L),n.reportStats()),rOa(w,new g.br(x,w.N_)), AOf(w));Z&&NAi(this,l)}}; ST.prototype.p5=function(l){l=l||this.uU;return this.S.get(l)||this.W};g.u(g.pt,g.V);g.h=g.pt.prototype; g.h.RA=function(l,n){this.sync();n&&this.S.array.length>=2E3&&this.Em("captions",1E4);n=this.S;if(l.length>1&&l.length>n.array.length)n.array=n.array.concat(l),n.array.sort(n.S);else for(var O=g.P(l),L=O.next();!L.done;L=O.next())L=L.value,!n.array.length||n.S(L,n.array[n.array.length-1])>0?n.array.push(L):g.wQ(n.array,L,n.S);l=g.P(l);for(n=l.next();!n.done;n=l.next())n=n.value,n.namespace==="ad"&&this.L("ssap",{acrsid:n.getId(),acrsst:n.start,acrset:n.end,acrscpt:n.playerType});this.N=NaN;this.sync()}; g.h.lV=function(l){l.length>1E4&&g.d2(new g.at("Over 10k cueRanges removal occurs with a sample: ",l[0]));if(!this.JG()){for(var n=g.P(l),O=n.next();!O.done;O=n.next())(O=O.value)&&O.namespace==="ad"&&this.L("ssap",{rcrid:O.getId(),rcst:O.start,rcet:O.end,rcpt:O.playerType});var L=new Set(l);this.W=this.W.filter(function(X){return!L.has(X)}); es5(this.S,L);this.sync()}}; g.h.Em=function(l,n){var O=(isNaN(this.N)?g.K(this.V(),2)?0x8000000000000:this.Y()*1E3:this.N)-n;n=this.PT().filter(function(L){return L.namespace===l&&L.end<O}); this.lV(n);return n}; g.h.PT=function(){return this.JG()?[]:this.S.array}; g.h.reset=function(){this.started=!1;this.B.stop();this.S.array=[];this.W=[];this.sync()}; g.h.cS=function(l){var n=this.PT().filter(function(O){return O.namespace===l}); this.lV(n);return n}; g.h.nP=Oi(42); g.h.Ov=function(l,n){var O=[],L=yOe(this.S,0x7ffffffffffff),X=[];this.L("ssap",{mecrs:L.length,cpn:n});L=g.P(L);for(var F=L.next();!F.done;F=L.next())F=F.value,F.active&&(this.L("ssap",{acre:F.id,st:F.start,et:F.end,cpn:n,cpt:F.playerType,pt:l}),n&&n===F.N?(X.push(F),this.L("ssap",{acrec:F.id,st:F.start,et:F.end,pt:l})):F.playerType===l&&(X.push(F),this.L("ssap",{acret:F.id,st:F.start,et:F.end})));O=O.concat(this.oy(X));GWk(this,O);O=[];n=[];L=g.P(this.W);for(F=L.next();!F.done;F=L.next())F=F.value, F.active&&F.playerType===l&&F.start===0x7ffffffffffff&&n.push(F);O=O.concat(this.eX(n));GWk(this,O);return X.length}; g.h.oy=function(l){var n=[];if(!l.length)return n;for(var O=0;O<l.length;O++){var L=l[O];L.active&&this.W.indexOf(L)===-1&&(this.W.push(L),n.push([1,L]))}return n}; g.h.eX=function(l){var n=[];if(!l.length)return n;l.sort(g.o_);l=g.P(l);for(var O=l.next();!O.done;O=l.next())O=O.value,this.W.splice(this.W.indexOf(O),1),n.push([2,O]);return n}; g.h.sync=function(){this.T=!0;if(!this.G){for(var l=3;this.T&&l;)this.T=!1,this.G=!0,this.AN(),this.G=!1,l--;this.V().isPlaying()&&(l=QD0(this.S,this.N),!isNaN(l)&&l<0x7ffffffffffff&&(l=(l-this.N)/this.Q5(),this.B.start(l)))}}; g.h.AN=function(){if(this.started&&!this.JG()){this.B.stop();var l=this.V();g.K(l,32)&&this.NQ.start();for(var n=g.K(this.V(),2)?0x8000000000000:this.Y()*1E3,O=g.K(l,2),L=[],X=[],F=g.P(this.W),x=F.next();!x.done;x=F.next())x=x.value,x.active&&(O?x.end<0x8000000000000:!x.contains(n))&&X.push(x);L=L.concat(this.eX(X));F=X=null;O?(l=yOe(this.S,0x7ffffffffffff),X=l.filter(function(Z){return Z.end<0x8000000000000}),F=MT9(this.S)):l=this.N<=n&&wX(l)?kW5(this.S,this.N,n):yOe(this.S,n); L=L.concat(this.oy(l));X&&(L=L.concat(this.eX(X)));F&&(L=L.concat(this.oy(F)));this.N=n;GWk(this,L)}}; g.h.oz=function(){this.W=[];this.S.array=[];g.V.prototype.oz.call(this)}; g.Bl.Db(g.pt,{RA:"crmacr",oy:"crmncr",eX:"crmxcr",AN:"crmis",lV:"crmrcr"});g.h=g.sV.prototype;g.h.addCueRange=function(l){this.uF.addCueRange(l)}; g.h.RL=function(l,n){this.uF.RL(l,n)}; g.h.qZ=function(){this.uF.qZ()}; g.h.Yg=function(){return this.uF.Yg()}; g.h.NK=function(){return this.uF.NK()}; g.h.O5=function(l,n){this.uF.O5(l,n)}; g.h.Em=function(l,n){return this.uF.Em(l,n)}; g.h.Xz=function(l){this.uF.Xz(l)}; g.h.gm=function(){return this.uF.gm()}; g.h.getAudioTrack=function(){return this.uF.getAudioTrack()}; g.h.getAvailableAudioTracks=function(){return this.uF.getAvailableAudioTracks()}; g.h.Si=function(){return this.uF.Si()}; g.h.C4=function(){return this.uF.C4()}; g.h.PT=function(){return this.uF.PT()}; g.h.GV=function(){return this.uF.GV()}; g.h.n1=function(){return this.uF.n1()}; g.h.getCurrentTime=function(){return this.uF.getCurrentTime()}; g.h.KU=function(){return this.uF.KU()}; g.h.An=function(){return this.uF.An()}; g.h.sC=function(l){return this.uF.sC(l)}; g.h.getDuration=function(l){return this.uF.getDuration(l)}; g.h.Tn=function(){return this.uF.Tn()}; g.h.Ko=function(){return this.uF.Ko()}; g.h.Ux=function(){return this.uF.Ux()}; g.h.td=function(){return this.uF.td()}; g.h.oU=function(){return this.uF.oU()}; g.h.pz=Oi(16);g.h.I6=function(){return this.uF.I6()}; g.h.hS=function(){return this.uF.hS()}; g.h.RU=function(l){return this.uF.RU(l)}; g.h.T$=function(){return this.uF.T$()}; g.h.wJ=function(){return this.uF.wJ()}; g.h.i5=function(){return this.uF.i5()}; g.h.xq=function(){return this.uF.xq()}; g.h.vG=function(l,n,O){return this.uF.vG(l,n,O)}; g.h.FU=Oi(21);g.h.getPlaybackQuality=function(){return this.uF.getPlaybackQuality()}; g.h.getPlaybackRate=function(){return this.uF.getPlaybackRate()}; g.h.getPlayerState=function(){return this.uF.getPlayerState()}; g.h.getPlayerType=function(){return this.uF.getPlayerType()}; g.h.getPlaylistSequenceForTime=function(l){return this.uF.getPlaylistSequenceForTime(l)}; g.h.MJ=function(l){return this.uF.MJ(l)}; g.h.Qw=function(){return this.uF.Qw()}; g.h.getPreferredQuality=function(){return this.uF.getPreferredQuality()}; g.h.qd=function(){return this.uF.qd()}; g.h.getProximaLatencyPreference=function(){return this.uF.getProximaLatencyPreference()}; g.h.Zq=function(){return this.uF.Zq()}; g.h.LM=function(){return this.getVideoData().LM()}; g.h.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()}; g.h.getStreamTimeOffset=function(){return this.uF.getStreamTimeOffset()}; g.h.XC=function(){return this.uF.XC()}; g.h.ez=function(){return this.uF.ez()}; g.h.sj=function(){return this.uF.sj()}; g.h.getUserAudio51Preference=function(){return this.uF.getUserAudio51Preference()}; g.h.getUserPlaybackQualityPreference=function(){return this.uF.getUserPlaybackQualityPreference()}; g.h.getVideoData=function(){return this.uF.getVideoData()}; g.h.wF=function(){return this.uF.wF()}; g.h.G7=function(){return this.uF.G7()}; g.h.getVideoLoadedFraction=function(){if(g.CN(this.getVideoData()))return 1;var l=this.uF.T$();return l?l.gF():0}; g.h.TY=function(l){this.uF.TY(l)}; g.h.handleError=function(l){this.uF.handleError(l)}; g.h.GC=function(l){this.uF.GC(l)}; g.h.eM=function(l){this.uF.eM(l)}; g.h.nP=Oi(41);g.h.Pp=function(){return this.uF.Pp()}; g.h.hasSupportedAudio51Tracks=function(){return this.uF.hasSupportedAudio51Tracks()}; g.h.fT=function(){return this.uF.fT()}; g.h.zE=function(){return this.uF.zE()}; g.h.isAtLiveHead=function(l,n){return this.uF.isAtLiveHead(l,n)}; g.h.ob=function(){return this.uF.ob()}; g.h.isGapless=function(){return this.uF.isGapless()}; g.h.isHdr=function(){return this.uF.isHdr()}; g.h.bT=function(){return this.uF.bT()}; g.h.gL=function(){return this.uF.gL()}; g.h.tJ=function(){return this.uF.tJ()}; g.h.isProximaLatencyEligible=function(){return this.uF.isProximaLatencyEligible()}; g.h.o0=function(){return this.uF.o0()}; g.h.Bi=function(){return this.uF.Bi()}; g.h.eq=function(){this.uF.eq()}; g.h.ju=function(l){this.uF.ju(l)}; g.h.Ww=function(l){this.uF.Ww(l)}; g.h.Fm=function(){this.uF.Fm()}; g.h.VJ=function(){this.uF.VJ()}; g.h.DX=function(){this.uF.DX()}; g.h.zH=function(){this.uF.zH()}; g.h.Yw=function(l){this.uF.Yw(l)}; g.h.W$=Oi(52);g.h.pB=Oi(26);g.h.yx=function(){this.uF.yx()}; g.h.pauseVideo=function(l){this.uF.pauseVideo(l)}; g.h.Ab=function(l){this.uF.Ab(l)}; g.h.Ur=function(l){this.uF.Ur(l)}; g.h.playVideo=function(l,n){return this.uF.playVideo(l,n)}; g.h.t5=function(l,n,O,L,X){this.uF.t5(l,n,O,L,X)}; g.h.kT=Oi(31);g.h.fM=Oi(36);g.h.Bv=function(l,n,O,L,X){this.uF.Bv(l,n,O,L,X)}; g.h.Sp=function(l,n,O){this.uF.Sp(l,n,O)}; g.h.Z0=function(l){this.uF.Z0(l)}; g.h.KV=function(l,n){this.uF.p5().KV(l,n)}; g.h.MG=function(l,n,O){this.uF.MG(l,n,O)}; g.h.l5=function(l){this.uF.l5(l)}; g.h.gI=function(l,n,O){this.uF.gI(l,n,O)}; g.h.rW=function(l){this.uF.rW(l)}; g.h.mZ=function(l,n){this.uF.mZ(l,n)}; g.h.bb=function(l,n,O,L,X,F,x,Z){this.uF.bb(l,n,O,L,X,F,x,Z)}; g.h.Ll=function(l){this.uF.Ll(l)}; g.h.Ya=function(l,n){this.uF.Ya(l,n)}; g.h.Rd=function(l,n){this.uF.Rd(l,n)}; g.h.removeCueRange=function(l){this.uF.removeCueRange(l)}; g.h.ZW=function(l){this.uF.ZW(l)}; g.h.cS=function(l){return this.uF.RN.cS(l)}; g.h.iy=function(l){this.uF.iy(l)}; g.h.bJ=function(l,n,O){this.uF.bJ(l,n,O)}; g.h.i7=function(){this.uF.i7()}; g.h.aB=function(l,n){this.uF.aB(l,n)}; g.h.wW=function(){this.uF.wW()}; g.h.seekTo=function(l,n){this.uF.seekTo(l,n)}; g.h.sendAbandonmentPing=function(){this.uF.sendAbandonmentPing()}; g.h.sendVideoStatsEngageEvent=function(l,n){this.uF.sendVideoStatsEngageEvent(l,n)}; g.h.ND=function(l,n){this.uF.ND(l,n)}; g.h.setLoop=function(l){this.uF.setLoop(l)}; g.h.kz=function(){this.uF.kz()}; g.h.setMediaElement=function(l){this.uF.setMediaElement(l)}; g.h.F9=function(l,n,O,L){this.uF.F9(l,n,O,L)}; g.h.setPlaybackRate=function(l){this.uF.setPlaybackRate(l)}; g.h.M_=function(l,n,O,L,X,F){this.uF.M_(l,n,O,L,X,F)}; g.h.o$=function(l,n){this.uF.o$(l,n)}; g.h.T1=function(l){this.uF.T1(l)}; g.h.setProximaLatencyPreference=function(l){this.uF.setProximaLatencyPreference(l)}; g.h.R$=function(l){this.uF.R$(l)}; g.h.pY=function(){this.uF.pY()}; g.h.Sh=function(l){this.uF.Sh(l)}; g.h.setUserAudio51Preference=function(l,n){this.uF.setUserAudio51Preference(l,n)}; g.h.kD=function(l,n,O){this.uF.kD(l,n,O)}; g.h.xW=function(){return this.uF.xW()}; g.h.Yc=function(){this.uF.Yc()}; g.h.mA=function(){return this.uF.mA()}; g.h.IB=function(l){this.uF.IB(l)}; g.h.Or=function(){this.uF.Or()}; g.h.ZS=function(l){this.uF.ZS(l)}; g.h.stopVideo=function(){this.uF.stopVideo()}; g.h.subscribe=function(l,n,O){return this.uF.subscribe(l,n,O)}; g.h.DF=function(l,n){this.uF.DF(l,n)}; g.h.togglePictureInPicture=function(){this.uF.togglePictureInPicture()}; g.h.Ov=function(l,n){return this.uF.RN.Ov(l,n)}; g.h.unsubscribe=function(l,n,O){return this.uF.unsubscribe(l,n,O)}; g.h.zW=function(l,n){this.uF.zW(l,n)}; g.h.l8=function(l,n){return this.uF.l8(l,n)}; g.h.JL=function(){this.uF.JL()}; g.h.Zv=function(){this.uF.Zv()}; g.h.W3=function(l){this.uF.W3(l)}; g.h.u0=function(){this.uF.u0()};aD.prototype.add=function(l){this.S=(this.S+1)%this.data.length;this.data[this.S]=l}; aD.prototype.forEach=function(l){for(var n=this.S+1;n<this.data.length;n++)l(this.data[n]||0);for(n=0;n<=this.S;n++)l(this.data[n]||0)}; aD.prototype.clear=function(){for(var l=this.data.length,n=0;n<l;n++)this.data[n]=0;this.W=this.S=this.data.length-1};g.u(Ct,g.hj);Ct.prototype.qH=function(){return this.G}; Ct.prototype.Tn=function(){return this.policy.Y&&this.videoData.S?this.videoData.S.vp:Math.max(this.V()-vF(this)*this.S,this.videoData.i5())};g.u(Oa,g.V);Oa.prototype.yV=function(){var l=this,n=this.uF.T$(),O=this.uF.getPlayerState();if(n&&!O.isError()){var L=n.getCurrentTime(),X=O.state===8&&L>this.S,F=g.K(O,8)&&g.K(O,16),x=this.uF.F$().isBackground()||O.isSuspended();gr(this,this.Yo,F&&!x,X,"qoe.slowseek",function(){},"timeout"); var Z=isFinite(this.S);Z=F&&Z&&Mna(n,this.S);var J=!L||Math.abs(L-this.S)>10,w=this.xo.J("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),H=L===0&&this.W&&[11,10].includes(this.W);gr(this,this.uv,Z&&J&&!x&&(!w||!H),X,"qoe.slowseek",function(){n.seekTo(l.S)},"set_cmt"); J=Z&&ZA(n.NJ(),this.S);var A=this.uF.sf;Z=!A||A.ob();var b=function(){n.seekTo(l.S+.001)}; gr(this,this.Fi,J&&Z&&!x,X,"qoe.slowseek",b,"jiggle_cmt");Z=function(){return l.uF.vG()}; gr(this,this.G3,J&&!x,X,"qoe.slowseek",Z,"new_elem");J=wX(O);w=O.isBuffering();var r=n.NJ(),U=hY(r,L),W=U>=0&&r.end(U)>L+5,N=J&&w&&W;H=this.uF.getVideoData();gr(this,this.Pm,L<.002&&this.S<.002&&F&&g.yw(this.xo)&&g.cf(H)&&!x,X,"qoe.slowseek",Z,"slow_seek_shorts");gr(this,this.Wm,H.UX()&&F&&!x&&!H.Q5,X,"qoe.slowseek",Z,"slow_seek_gapless_shorts");gr(this,this.Q5,N&&!x,J&&!w,"qoe.longrebuffer",b,"jiggle_cmt");gr(this,this.Lf,N&&!x,J&&!w,"qoe.longrebuffer",Z,"new_elem_nnr");if(A){var q=A.getCurrentTime(); F=n.Ew();F=rVi(F,q);F=!A.isSeeking()&&L===F;gr(this,this.n5,J&&w&&F&&!x,J&&!w&&!F,"qoe.longrebuffer",function(){n.seekTo(q)},"seek_to_loader")}F={}; b=hY(r,Math.max(L-3.5,0));N=b>=0&&L>r.end(b)-1.1;var y=b>=0&&b+1<r.length?r.start(b+1)-r.end(b):9999;F.mindex=U;F.disIndex=b;F.isdisc=b>=0&&N&&y<11;F.close2edge=N;F.gapsize=y;F.buflen=r.length;this.W&&(F.seekSour=this.W);if(b=this.uF.WM()){N=b.wA();y=N!==jx(b,L*1E3).clipId;var e=g.HQ(this.xo.experiments,"html5_ssap_skip_seeking_offset_ms"),d=(Ye(b,N)+e)/1E3;gr(this,this.z3,y&&J&&w&&!x,J&&!w,"qoe.longrebuffer",function(){n.seekTo(d)},"ssap_clip_not_match")}gr(this,this.Cf,J&&w&&!x,J&&!w,"qoe.longrebuffer", function(){},"timeout",F); F=O.isSuspended();F=this.uF.fT()&&!F;gr(this,this.T,F,!F,"qoe.start15s",function(){l.uF.T1("ad")},"ads_preroll_timeout"); b=L-this.L<.5;var B;F=!((B=this.uF.WM())==null||!B.tZ());y=(N=H.isAd()||F&&this.xo.experiments.MQ("html5_ssap_skip_slow_ad"))&&J&&!w&&b;B=function(){var R=l.uF,a=g.fy(R.videoData)&&R.s_,Lv=R.AC.getVideoData();(Lv&&R.videoData.isAd()&&Lv.WS===R.getVideoData().WS||!R.videoData.dB)&&!a?R.M_("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId):hZ(R.videoData,"html5_ssap_skip_slow_ad")&&a&&R.s_.tZ()&&(R.l5(new Ml("ssap.transitionfailure",{cpn:jx(R.s_,R.n1()).clipId,pcpn:R.s_.wA(), cmt:R.n1()})),R=R.s_,a=R.playback.n1(),(a=Ehf(R,a))&&UAa(R,a.Uu()/1E3))}; gr(this,this.oO,y,!y,"ad.rebuftimeout",B,"skip_slow_ad");b=N&&w&&ZA(n.NJ(),L+5)&&b;gr(this,this.Fp,b&&!x,!b,"ad.rebuftimeout",B,"skip_slow_ad_buf");B=O.isOrWillBePlaying()&&g.K(O,64)&&!x;gr(this,this.JA,B,X,"qoe.start15s",function(){},"timeout"); B=!!A&&!A.Xi&&O.isOrWillBePlaying();gr(this,this.Hm,B,X,"qoe.start15s",Z,"newElemMse");B=H6(r,0);b=g.K(O,16)||g.K(O,32);b=!x&&O.isOrWillBePlaying()&&w&&!b&&(g.K(O,64)||L===0)&&B>5;gr(this,this.Of,g.cf(H)&&b,J&&!w,"qoe.longrebuffer",function(){l.uF.eI()},"reset_media_source"); gr(this,this.nf,g.cf(H)&&b,J&&!w,"qoe.longrebuffer",Z,"reset_media_element");this.L===0&&(this.V=L);b=w&&this.S===0&&L>1&&L===this.V;gr(this,this.wq,g.cf(H)&&b,J&&!w,"qoe.slowseek",function(){n.seekTo(0)},"reseek_after_time_jump"); x=O.isOrWillBePlaying()&&!x;W=this.uF.RU()-L<6&&!W&&this.uF.lG();gr(this,this.G,H.UX()&&x&&w&&W,J&&!w,"qoe.longrebuffer",function(){l.uF.vG(!1,!0)},"handoff_end_long_buffer_reload"); A=(A==null?void 0:M40(A))||NaN;A=r.length>1||!isNaN(A)&&A-.1<=L;gr(this,this.Y,O9(H)&&x&&w&&A,J&&!w,"qoe.longrebuffer",Z,"gapless_slice_append_stuck");A=U>=0&&r.end(U)>=2;x=O9(H)&&this.uF.VK&&A&&!H.Q5&&x&&(w||g.K(O,8)&&g.K(O,16));gr(this,this.NQ,x,X,"qoe.start15s",Z,"gapless_slow_start");O=!!(F&&B>5&&O.isPlaying()&&L<.1);gr(this,this.K5,O,L>.5&&J,"qoe.longrebuffer",Z,"ssap_stuck_in_ad_beginning");this.L=L;this.B.start()}}; Oa.prototype.l5=function(l,n,O){n=this.sC(n);n.wn=O;n.wdup=this.N[l]?"1":"0";this.uF.l5(new Ml(l,n));this.N[l]=!0}; Oa.prototype.sC=function(l){l=Object.assign(this.uF.sC(!0),l.sC());this.S&&(l.stt=this.S.toFixed(3));this.uF.getVideoData().isLivePlayback&&(l.ct=this.uF.getCurrentTime().toFixed(3),l.to=this.uF.ez().toFixed(3));delete l.uga;delete l.euri;delete l.referrer;delete l.fexp;delete l.vm;return l}; lU.prototype.reset=function(){this.S=this.W=this.N=this.startTimestamp=0;this.L=!1}; lU.prototype.test=function(l){if(!this.B||this.W)return!1;if(!l)return this.reset(),!1;l=(0,g.Q_)();if(!this.startTimestamp)this.startTimestamp=l,this.N=0;else if(this.N>=this.B)return this.W=l,!0;this.N+=1;return!1}; lU.prototype.sC=function(){var l={},n=(0,g.Q_)();this.startTimestamp&&(l.wsd=(n-this.startTimestamp).toFixed());this.W&&(l.wtd=(n-this.W).toFixed());this.S&&(l.wssd=(n-this.S).toFixed());return l};g.u(Cbv,g.V);g.h=Cbv.prototype;g.h.setMediaElement=function(l){(this.mediaElement=l)?(this.mediaElement&&(this.B||this.L||!this.mediaElement.E3()||this.seekTo(.01,{UC:"seektimeline_setupMediaElement"})),Lo(this)):oy(this)}; g.h.getCurrentTime=function(){if(Xt(this.uF)){if(!isNaN(this.W))return this.W}else if(!isNaN(this.W)&&isFinite(this.W))return this.W;return this.mediaElement&&Zoa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.L||0}; g.h.zY=function(){return this.nf}; g.h.n1=function(){return this.getCurrentTime()-this.ez()}; g.h.Tn=function(){return this.S?this.S.Tn():Infinity}; g.h.isAtLiveHead=function(l){if(!this.S)return!1;l===void 0&&(l=this.getCurrentTime());return tO(this.S,l)}; g.h.qH=function(){return!!this.S&&this.S.qH()}; g.h.seekTo=function(l,n){var O=n===void 0?{}:n;n=O.L9===void 0?!1:O.L9;var L=O.fb===void 0?0:O.fb;var X=O.Uw===void 0?!1:O.Uw;var F=O.AO===void 0?0:O.AO;var x=O.UC===void 0?"":O.UC;var Z=O.seekSource===void 0?void 0:O.seekSource;var J=O.KI===void 0?!1:O.KI;var w=O.Wf===void 0?!1:O.Wf;O=O.Cb===void 0?!1:O.Cb;J&&(l+=this.ez());XZ(this.videoData)&&this.J("html5_sabr_enable_utc_seek_requests")&&Z===29&&(this.nf=void 0);J=l<this.Hm&&!!this.sf;var H=XZ(this.videoData)&&w;if(J&&!H&&(this.uF.Sp("sdai",{sk2bk:l.toFixed(3), mt:(l-this.timestampOffset).toFixed(3),lstadj:this.Hm.toFixed(3)}),this.Hm=NaN,this.timestampOffset-=1E3,(H=this.sf)!=null)){kyq(H,H.timestampOffset-1E3);var A=H.T3,b=new Set;for(W in A.S){var r=A.S[W].index,U=r.BD();U&&!b.has(U)&&(U.startTime+=1E3,U.endTime=U.startTime+U.duration,b.add(U));r.segments.length&&(U=r.segments[r.segments.length-1],r.segments=[],r.segments.push(U))}H.G&&H.G.t6();VP(H.L,0,0,!0)}var W=l;(H=XZ(this.videoData))&&w?W=!0:(A=this.J("html5_always_allow_sqless_sync")&&this.videoData.tA(), (H||A)&&x==="chunkSelectorSynchronize"?W=!0:(H=!isFinite(W)||(this.S?tO(this.S,W):W>=this.w8())||!g.kZ(this.videoData),H||(W={st:W,mst:this.w8()},this.S&&this.J("html5_high_res_seek_logging")&&(W.ht=this.S.Tn(),W.adft=SV5(this.S)),this.uF.Sp("seeknotallowed",W)),W=H));if(!W)return this.N&&(this.N=null,xDe(this)),g.P$(this.getCurrentTime());W=.005;w&&this.J("html5_sabr_seek_no_shift_tolerance")&&(W=0);if(Math.abs(l-this.W)<=W&&this.NQ)return this.B;x&&(W=l,(this.xo.AA()||this.J("html5_log_seek_reasons"))&& this.uF.Sp("seekreason",{reason:x,tgt:W}));Z&&(this.Lf.W=Z);this.NQ&&oy(this);this.B||(this.B=new v6);l&&!isFinite(l)&&n8i(this,!1);(x=O||J)||(x=l,x=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.S&&!(this.mediaElement&&this.mediaElement.R_()>0&&nX(this.mediaElement)>0)||JZ(this.videoData)&&this.i5()===this.w8(!1)?0:isFinite(x)||!JZ(this.videoData)));x||(l=x8(this,l,X));l&&!isFinite(l)&&n8i(this,!1);this.L=l;this.Fi=F;this.W=l;this.Y=0;this.S&&(X=this.S,F=l,pFg(X,F,!1),sDg(X, F));X=this.uF;F=l;x={L9:n,seekSource:Z};X.wK.L=F;O=X.lY;O.mediaTime=F;O.S=!0;x.L9&&X.ZS(x);x=F>X.videoData.endSeconds&&F>X.videoData.limitedPlaybackDurationInSeconds;X.F6&&x&&isFinite(F)&&zvi(X);F<X.w8()-.01&&(x=h1(X.playerState,2),g.K(x,8)&&(x=h1(x,4)),X.Vu(x));X.publish("SEEK_TO",X,F);this.B&&(n?L&&this.Pm.start(L):(n={Wf:w,seekSource:Z},this.NQ=!0,Rs9(this,n)));(n=this.uF.F6)&&l>n.start&&zvi(this.uF);return this.B}; g.h.w8=function(l){if(!this.videoData.isLivePlayback)return rxi(this.uF);var n;return vf(this.videoData)&&((n=this.mediaElement)==null?0:n.isPaused())&&this.videoData.S?(l=this.getCurrentTime(),hA7(this.Ko(l)*1E3)+l):this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&XZ(this.videoData)&&this.videoData.S?l?this.videoData.S.NQ||0:this.videoData.S.vp||0:JZ(this.videoData)&&this.videoData.z3&&this.videoData.S?this.videoData.S.w8()+this.timestampOffset:this.videoData.N&&this.videoData.N.S?!l&& this.S?this.S.Tn():rxi(this.uF)+this.timestampOffset:this.mediaElement?fh()?hA7(this.mediaElement.S4().getTime()):nX(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.i5=function(){if(g.fy(this.videoData)){var l=this.uF;g.fy(l.videoData);var n,O;return(O=(n=l.s_)==null?void 0:n.i5())!=null?O:l.videoData.i5()}if(this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&XZ(this.videoData)){var L;return((L=this.videoData.S)==null?void 0:L.IU)||0}n=this.videoData?this.videoData.i5()+this.timestampOffset:this.timestampOffset;return vf(this.videoData)&&this.videoData.S&&(O=Number((l=this.videoData.progressBarStartPosition)==null?void 0:l.utcTimeMillis)/1E3,l= this.getCurrentTime(),l=this.Ko(l)-l,!isNaN(O)&&!isNaN(l))?Math.max(n,O-l):n}; g.h.Qn=function(){this.B||this.seekTo(this.L,{UC:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.h.a8=function(){return this.NQ&&!isFinite(this.W)}; g.h.oz=function(){Oo8(this,null);this.Lf.dispose();g.V.prototype.oz.call(this)}; g.h.sC=function(){var l={};this.sf&&Object.assign(l,this.sf.sC());this.mediaElement&&Object.assign(l,this.mediaElement.sC());return l}; g.h.Uh=function(l){this.timestampOffset=l}; g.h.getStreamTimeOffset=function(){return JZ(this.videoData)?0:this.videoData.S?this.videoData.S.getStreamTimeOffset():0}; g.h.ez=function(){return this.timestampOffset}; g.h.Ko=function(l){return this.videoData&&this.videoData.S?this.videoData.S.Ko(l-this.timestampOffset):NaN}; g.h.gF=function(){if(!this.mediaElement)return 0;if(yZ(this.videoData)){var l=this.mediaElement,n=l.NJ();l=(wv(n)>0&&l.getDuration()?n.end(n.length-1):0)+this.timestampOffset-this.i5();n=this.w8()-this.i5();return Math.max(0,Math.min(1,l/n))}return this.mediaElement.gF()}; g.h.wN=function(l){this.V&&(this.V.S=l)}; g.h.aB=function(l,n){this.uF.Sp("requestUtcSeek",{time:l});XZ(this.videoData)&&this.J("html5_sabr_enable_utc_seek_requests")&&(this.nf=l);var O;(O=this.sf)==null||O.aB(l);n&&(this.Q5=n)}; g.h.d_=function(l){XZ(this.videoData)&&this.J("html5_sabr_enable_utc_seek_requests")&&(this.nf=void 0);if(this.Q5)this.uF.Sp("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Q5}),this.uF.seekTo(this.Q5,{UC:"utcSeekingFallback_streamTime"}),this.Q5=0;else{var n=this.getCurrentTime();isNaN(n)||(l=this.Ko(n)-l,n-=l,this.uF.Sp("utcSeekingFallback",{source:"estimate",timeSeconds:n}),this.uF.seekTo(n,{UC:"utcSeekingFallback_estimate"}))}}; g.h.uH=function(){this.Q5=0}; g.h.J=function(l){return this.xo&&this.xo.J(l)};g.u(hH,g.V);hH.prototype.start=function(){this.W.start()}; hH.prototype.stop=function(){this.W.stop()}; hH.prototype.clear=function(){for(var l=g.P(this.S.values()),n=l.next();!n.done;n=l.next())n.value.clear()}; hH.prototype.sample=function(){for(var l=g.P(this.N),n=l.next();!n.done;n=l.next()){var O=g.P(n.value);n=O.next().value;O=O.next().value;this.S.has(n)||this.S.set(n,new rHg(ZUD.has(n)));this.S.get(n).update(O())}this.W.start()}; var ZUD=new Set(["networkactivity"]);rHg.prototype.update=function(l){this.S?(this.buffer.add(l-this.Hi||0),this.Hi=l):this.buffer.add(l)}; rHg.prototype.clear=function(){this.buffer.clear();this.Hi=0};wr.prototype.Yb=function(){return this.started}; wr.prototype.start=function(){this.started=!0}; wr.prototype.reset=function(){this.finished=this.started=!1};var Wra=!1;g.u(g.rr,g.hj);g.h=g.rr.prototype;g.h.oz=function(){this.logger.debug("dispose");g.Tj(this.Wv);kre(this.mI);this.visibility.unsubscribe("visibilitystatechange",this.mI);mDa(this);PL(this);g.St.DN(this.AV);this.bJ();this.LN=null;g.h0(this.videoData);g.h0(this.Jd);g.h0(this.lZ);g.h0(this.kL);g.ZL(this.aei);this.F6=null;g.hj.prototype.oz.call(this)}; g.h.t5=function(l,n,O,L,X){if(this.xo.J("html5_log_ad_playback_docid")){var F=this.p5();if(F.qoe){F=F.qoe;var x=this.xo.Wm||"yt";g.kb(F,g.EV(F.provider),"ad_playback",[l,n,O,X,x])}}else this.p5().t5(l,n,O);this.J("html5_log_media_perf_info")&&this.Sp("adloudness",{ld:L.toFixed(3),cpn:l})}; g.h.GV=function(){var l;return(l=this.sf)==null?void 0:l.GV()}; g.h.KU=function(){var l;return(l=this.sf)==null?void 0:l.KU()}; g.h.An=function(){var l;return(l=this.sf)==null?void 0:l.An()}; g.h.iM=function(){var l;return(l=this.sf)==null?void 0:l.iM()}; g.h.Vb=function(){return this.videoData.Vb()}; g.h.xW=function(){return this.J("html5_not_reset_media_source")&&!this.Vb()&&!this.videoData.isLivePlayback&&g.cf(this.videoData)&&!this.xo.supportsGaplessShorts()}; g.h.pY=function(){if(this.videoData.G){var l;if(!(l=this.videoData.Lg)){var n;l=(n=this.AC.AG())==null?void 0:n.GV()}this.videoData.Lg=l;if(!(l=this.videoData.zI)){var O;l=(O=this.AC.AG())==null?void 0:O.KU()}this.videoData.zI=l}if(v28(this.videoData)||!tZ(this.videoData))O=this.videoData.errorDetail,this.M_(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),O,O,this.videoData.y8||void 0);this.J("html5_generate_content_po_token")&&this.QD();this.J("html5_enable_d6de4")&&this.DO(); if(this.J("html5_ssap_cleanup_player_switch_ad_player")||this.J("html5_ssap_cleanup_ad_player_on_new_data"))if(O=this.AC.b5())this.UM=O.clientPlaybackNonce}; g.h.UV=function(){return this.Xt}; g.h.pw=function(){!this.Tk||this.Tk.JG();this.Tk=new g.ib(new cF(this.videoData,this.xo,this));this.Xt=new ST(this.xo,this,this.Tk)}; g.h.getVideoData=function(){return this.videoData}; g.h.j=function(){return this.xo}; g.h.HF=function(l){return this.GM.HF(this.LN,l===void 0?!1:l)}; g.h.p5=function(l){if(l)a:{for(var n=this.Xt,O=g.P(n.S.values()),L=O.next();!L.done;L=O.next())if(L=L.value,L.getVideoData().videoId===l){l=L;break a}l=n.W}else l=this.Xt.p5();return l}; g.h.F$=function(){return this.visibility}; g.h.wF=function(){return this.mediaElement&&this.mediaElement.gp()?this.mediaElement.De():null}; g.h.T$=function(){return this.mediaElement}; g.h.NK=function(){if(this.J("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.j().V&&this.j().houseBrandUserStatus&&this.Sp("hbut",{status:this.j().houseBrandUserStatus});if(this.videoData.MP())return!0;this.M_("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.h.IB=function(l){(l=l===void 0?!1:l)||g.fy(this.videoData)||zW(this.p5());this.cX=l;!this.NK()||this.zz.Yb()?g.yw(this.xo)&&this.videoData.isLivePlayback&&this.zz.Yb()&&!this.zz.finished&&!this.cX&&this.LC():(this.zz.start(),l=this.p5(),g.EV(l.provider),l.qoe&&eDk(l.qoe),this.LC())}; g.h.LC=function(){if(this.videoData.isLoaded()){var l=this.Jd;g.HQ(l.rq.experiments,"html5_player_min_build_cl")>0&&g.HQ(l.rq.experiments,"html5_player_min_build_cl")>730264792&&dGv(l,"oldplayer");VLf(this)}else this.videoData.ea||this.videoData.AL?this.cX&&g.yw(this.xo)&&this.videoData.isLivePlayback||(this.videoData.ea?d0k(this.videoData):(l=this.p5(),l.qoe&&(l=l.qoe,Qn(l,"protected"),l.provider.videoData.B?l.Zn():l.provider.videoData.subscribe("dataloaded",l.Zn,l)),Yc5(this.videoData))):!this.videoData.loading&& this.qT&&I1g(this)}; g.h.Sh=function(l){this.jz=l;this.sf&&(EZ5(this.sf,new g.xb(l)),this.Sp("sdai",{sdsstm:1}))}; g.h.R$=function(l){this.s_=l;this.sf&&this.sf.R$(l)}; g.h.pz=Oi(15);g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.isBackground=function(){return this.visibility.isBackground()}; g.h.u0=function(){var l=this;this.logger.debug("Updating for format change");Ua(this).then(function(){return bU(l)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.h.Or=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.IB();this.NK()&&!g.K(this.playerState,128)&&(this.Ev.Yb()||(this.Ev.start(),this.videoData.Nm?this.Vu(xX(this.playerState,4)):this.Vu(xX(xX(this.playerState,8),1))),dDk(this))}; g.h.gL=function(){return this.zz.finished}; g.h.sendAbandonmentPing=function(){g.K(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.It(!0),mDa(this),g.St.DN(this.AV))}; g.h.ND=function(l,n){l=l===void 0?!0:l;(n===void 0||n)&&this.mediaElement&&this.mediaElement.pause();this.Vu(l?new g.XI(14):new g.XI)}; g.h.wk=function(){Us0(this.p5())}; g.h.M_=function(l,n,O,L,X,F){this.logger.debug(function(){return"set player error: ec="+l+", detail="+X}); var x,Z;g.yj(E60,O)?x=O:O?Z=O:x="GENERIC_WITHOUT_LINK";L=(L||"")+(";a6s."+JM());if(l==="auth"||l==="drm.auth"||l==="heartbeat.stop")O&&(L+=";r."+O.replaceAll(" ","_")),F&&(L+="sr."+F.replaceAll(" ","_"));n={errorCode:l,errorDetail:X,errorMessage:Z||g.KR[x]||"",Nx:x,y8:F||"",DK:L,wS:n,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=l;uU(this,"dataloaderror");this.Vu(FI(this.playerState,128,n));g.St.DN(this.AV);PL(this);this.Ya()}; g.h.T1=function(l){this.nX=this.nX.filter(function(n){return l!==n}); this.logger.debug(function(){return"set preroll ready for "+l}); g.fy(this.videoData)&&!this.Pp()&&this.ze.iQ("pl_pr");this.Ev.Yb()&&dDk(this)}; g.h.Pp=function(){var l;(l=!!this.nX.length)||(l=this.RN.S.array[0],l=!!l&&l.start<=-0x8000000000000);return l}; g.h.qH=function(){return this.wK.qH()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.bT=function(){return this.playerState.bT()&&this.videoData.Nm}; g.h.getPlayerState=function(){return this.playerState}; g.h.Ab=function(l){var n;(n=this.sf)==null||n.Ab(l)}; g.h.Ur=function(l){var n;(n=this.sf)==null||n.Ur(l)}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.LN){var l=this.LN;l=l.videoData.sE.compose(l.videoData.Pv);l=FF(l)}else l="auto";return l}; g.h.FU=Oi(20);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(l){this.logger.debug("set media element");if(this.mediaElement&&l.De()===this.mediaElement.De()&&(l.isView()||this.mediaElement.isView())){if(l.isView()||!this.mediaElement.isView())g.eU(this.LS),this.mediaElement=l,this.mediaElement.uF=this,ORq(this),this.wK.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.bJ();if(!this.playerState.isError()){var n=h1(this.playerState,512);g.K(n,8)&&!g.K(n,2)&&(n=xX(n,1));l.isView()&&(n=h1(n,64));this.Vu(n)}this.mediaElement= l;this.mediaElement.uF=this;!g.yw(this.xo)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ORq(this);this.wK.setMediaElement(this.mediaElement);this.J("html5_prewarm_media_source")&&!this.Jd.Wc()&&Di9(this.mediaElement)}}; g.h.bJ=function(l,n,O){l=l===void 0?!1:l;n=n===void 0?!1:n;O=O===void 0?!1:O;this.logger.debug("remove media element");if(this.mediaElement){var L=this.getCurrentTime();L>0&&(this.wK.L=L);this.wK.setMediaElement(null);!l&&this.xW()?Rve(this):this.iy(O);this.sf&&(vh(this.sf),ND(this,n));this.vJ.stop();if(this.mediaElement&&(!this.Ev.Yb()&&!this.fT()||this.playerState.isError()||g.K(this.playerState,2)||this.Vu(xX(this.playerState,512)),this.mediaElement)){g.eU(this.LS);if(l||!this.mediaElement.isView())this.ze.fK("mesv_s"), this.mediaElement.stopVideo(),D1(this);this.mediaElement=this.mediaElement.uF=null}}}; g.h.playVideo=function(l,n){l=l===void 0?!1:l;n=n===void 0?!1:n;var O=this,L,X,F,x,Z,J;return g.Y(function(w){if(w.S==1){O.logger.debug("start play video");var H=window.google_image_requests;H&&H.length>10&&(window.google_image_requests=H.slice(-10));if(g.K(O.playerState,128))return w.return();if(O.Jd.Bi())return O.publish("signatureexpired"),w.return();O.mediaElement&&zW(O.p5());O.Or();(g.K(O.playerState,64)||l)&&O.Vu(xX(O.playerState,8));return O.Ev.finished&&O.mediaElement?O.LN||!O.Am?w.D2(2): g.Q(w,O.Am,3):w.return()}if(w.S!=2&&g.K(O.playerState,128))return w.return();if(!O.videoData.N)return O.videoData.isLivePlayback&&!g.OI(O.xo.B,!0)?(L="html5.unsupportedlive",X=2):(L=O.videoData.Vb()?"fmt.unplayable":"fmt.noneavailable",X=1),g.d2(Error("selectableFormats")),O.M_(L,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),w.return();if(O.zE()&&O.videoData.N.S)return O.logger.debug("rebuild playbackData for airplay"),w.return(Ua(O));if(Xt(O))H=O.wK,Zf(H.videoData)?!H.isAtLiveHead(H.getCurrentTime())&& H.qH()&&H.uF.seekTo(Infinity,{UC:"seektimeline_peggedToLive",seekSource:34}):g.fy(H.videoData)&&H.getCurrentTime()<H.i5()&&H.uF.seekTo(H.i5(),{UC:"seektimeline_outOfWindow"});else if(Zf(O.videoData)){if(F=O.getCurrentTime()<O.i5()-15,x=g.kZ(O.videoData)&&O.playerState.isPaused(),Z=g.K(O.playerState,1024),H=O.wK,H.videoData.tA()&&RY(H.videoData)||Z||!F&&!x||(x?(O.logger.debug("seek to head for live because of live-only"),O.seekTo(Infinity,{UC:"videoplayer_unpauseLiveOnly",seekSource:102})):(O.logger.debug("seek to min seekable for live because of out of window"), O.seekTo(O.i5(),{UC:"videoplayer_outOfWindow",seekSource:102}))),!O.isAtLiveHead(void 0,!0)&&O.qH()&&(O.logger.debug("seek to head for live because pegged to live"),J={UC:"videoplayer_peggedToLive",seekSource:34},O.seekTo(Infinity,J)),g.K(O.playerState,256)&&O.videoData.Q5&&O.wK.a8())return O.Vu(Zh(O.playerState,8,4)),w.return()}else g.fy(O.videoData)&&O.getCurrentTime()<O.i5()-0&&O.seekTo(O.i5(),{UC:"videoplayer_outOfWindow"});g.K(O.playerState,4)&&g.K(O.playerState,16)&&O.Vu(Zh(O.playerState,9, 4));if(bU(O,n))return xqg(O),w.return();Fl9(O);g.Tk(w)})}; g.h.eI=function(l){this.logger.debug("reset media source");l&&this.l5(new Ml("qoe.restart",l));this.Vu(xX(this.playerState,2048));this.iy();l=this.videoData.S&&AF(this.videoData.S);var n=this.mediaElement&&this.mediaElement.isView();l||n?(this.sf&&fYa(this.sf),this.vG()):(bU(this),this.playerState.isOrWillBePlaying()&&this.playVideo())}; g.h.Si=function(){if(!this.LN)return[];var l=z07(this.GM,this.LN,this.HD());return this.LN.S.Si(l)}; g.h.C4=function(){if(!this.LN)return[];var l=z07(this.GM,this.LN,this.HD());return this.LN.S.C4(l)}; g.h.HD=function(){var l=this.S7?this.S7.HD():nN(this.videoData)&&this.videoData.S&&AF(this.videoData.S)?this.videoData.hZ?iQ:hH0:iQ;this.Xw&&(l=l.compose(pwk));return l}; g.h.Zq=function(){return this.LN?z07(this.GM,this.LN,this.HD()):iQ}; g.h.zT=function(){var l=this.G7(),n=this.AC.b5().videoId;return this.AC.RB.zT(l)||this.AC.RB.zT(n)}; g.h.kD=function(l,n,O){var L;if((L=this.p5().qoe)!=null){var X=l.S,F=g.EV(L.provider);g.kb(L,F,"vfi",[X===0?"":""+X,X===0?"A":"M"])}this.videoData.sE=l;if(this.LN&&n&&(n=this.GM,L=this.LN,L.S.S)){var x=L.S.videoInfos[0].video.S;X=x!==0&&l.S===x;F=$W()>x;x=n.J("html5_dont_save_under_1080")&&x<1080;if(!X||!F&&!x){var Z;X=pYe(n,(Z=L.S)==null?void 0:Z.videoInfos);Z=n.uF.getPlaybackRate();Z>1&&X&&(Z=y1a(n.xo.B,L.S.videoInfos,Z),l.S!==0&&Z<l.S&&n.uF.setPlaybackRate(1));var J,w;l=g.c7[FF(l)];Z=((J=L.videoData.W)== null?void 0:(w=J.video)==null?void 0:w.S)||0;g.It("yt-player-quality",{quality:l,previousQuality:Z},31104E3);n.xo.schedule.policy.L=$W()>=480;if(n.J("html5_exponential_memory_for_sticky")){J=n.xo.q_;w=1;var H=H===void 0?!1:H;svi(J,"sticky-lifetime");J.values["sticky-lifetime"]&&J.fz["sticky-lifetime"]||(J.values["sticky-lifetime"]=0,J.fz["sticky-lifetime"]=0);H&&Nt(J,"sticky-lifetime")>.0625&&(w=J.fz["sticky-lifetime"]*2);J.values["sticky-lifetime"]+=1*Math.pow(2,J.S/w);J.fz["sticky-lifetime"]=w; J.L.start()}if(n.J("html5_perf_cap_override_sticky")){H=n.N;J=n.J("html5_perserve_av1_perf_cap");J=J===void 0?!1:J;if(J===void 0?0:J){w=BJ();n=g.P(Object.keys(w));for(l=n.next();!l.done;l=n.next())l=l.value,l.indexOf("1")!==0&&delete w[l];g.It("yt-player-performance-cap",w,2592E3)}else g.$T("yt-player-performance-cap");MX0(J);if(J){J=g.P(Mb.keys());for(w=J.next();!w.done;w=J.next())w=w.value,w.startsWith("1")||Mb.delete(w);J=g.P(PF.values());for(w=J.next();!w.done;w=J.next())w=w.value,w.startsWith("1")|| PF.delete(w);J=g.P(H.keys());for(w=J.next();!w.done;w=J.next())w=w.value,w.startsWith("1")||H.delete(w)}else Mb.clear(),PF.clear(),H.clear()}}}this.sf&&(H=this.sf,O=O||"",H.policy.S?pa(H.W.S,O):pa(H.S.B,O));this.Zv()}; g.h.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.S?FF(this.videoData.sE):oe[$W()]}; g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.h.setUserAudio51Preference=function(l,n){this.getUserAudio51Preference()!==l&&(this.Sp("toggle51",{pref:l}),g.It("yt-player-audio51",l,n?31536E3:2592E3),this.u0())}; g.h.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.h.setProximaLatencyPreference=function(l){var n=this.getProximaLatencyPreference();this.Sp("proxima",{pref:l});g.It("yt-player-proxima-pref",l,31536E3);n!==l&&(l=this.wK,l.Of=!0,l.uF.seekTo(Infinity,{UC:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.h.getProximaLatencyPreference=function(){var l;return(l=Ve())!=null?l:0}; g.h.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.h.QD=function(){this.videoData.videoId?this.AC.QD(this.videoData):this.Sp("povid",{})}; g.h.DO=function(){this.videoData.videoId?this.AC.DO(this.videoData):this.Sp("piavid",{})}; g.h.Zv=function(){if(!this.JG()&&!g.K(this.playerState,128)&&this.videoData.N){if(this.videoData.N.S)AH(this);else{var l=Ea(this),n=this.videoData;a:{var O=this.videoData.d8;if(l.S){for(var L=g.P(O),X=L.next();!X.done;X=L.next()){X=X.value;var F=X.getInfo(),x=g.c7[F.video.quality];if((!l.N||F.video.quality!=="auto")&&x<=l.S){O=X;break a}}O=O[O.length-1]}else O=O[0]}n.Yo=O;Saf(this,l.reason,X8i(this,this.videoData.Yo))}if(this.J("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.wK.T= !1,this.playVideo()}}; g.h.l8=function(l,n){if(this.JG()||g.K(this.playerState,128))return!1;var O,L=!((O=this.videoData.N)==null||!O.S);O=L&&n?this.getCurrentTime()-this.ez():NaN;if(this.xo.experiments.MQ("html5_record_audio_format_intent")){var X=this.p5();if(X.qoe){X=X.qoe;var F=[l.O_.id,isNaN(O)?"m":"t"];g.kb(X,g.EV(X.provider),"afi",F)}}if(L)return n&&(L=Lr5(this.wK),this.Sp("aswh",{id:l.id,xtags:l.xtags,bh:L.toFixed(3)})),this.sf.setAudioTrack(l,O,n),!0;if(sy9(this)){a:{n=this.mediaElement.audioTracks();for(L=0;L< n.length;++L)if(O=n[L],O.label===l.O_.getName()){if(O.enabled){n=!1;break a}n=O.enabled=!0;break a}n=void 0}n&&this.Sp("hlsaudio",{id:l.id})}else{a:if(n=this.videoData,n.L&&!lt(n.L)||l===n.fX||!n.d8||n.d8.length<=0)n=!1;else{L=g.P(n.d8);for(O=L.next();!O.done;O=L.next()){O=O.value;if(!(O instanceof h2)){n=!1;break a}X=l.O_.getId();O.W&&(bS0(O.W,X),O.Vp=null)}n.fX=l;n=!0}n&&bU(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Sp("hlsaudio",{id:l.id}))}return!0}; g.h.getAvailableAudioTracks=function(){return g.fy(this.videoData)&&this.s_?qqe(this.s_).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.h.getAudioTrack=function(){if(sy9(this)){var l=Krk(this);if(l)return l}return this.videoData.getAudioTrack()}; g.h.VJ=function(){if(this.videoData.J("html5_trigger_loader_when_idle_network")&&!this.videoData.tA()&&XZ(this.videoData)){var l;(l=this.sf)!=null&&l.yV()}}; g.h.Fm=function(){if(O9(this.videoData)&&this.videoData.J("html5_gapless_append_early")){var l;(l=this.sf)!=null&&l.yV()}}; g.h.HK=function(l){l=l===void 0?!1:l;if(this.sf){var n=this.sf,O=n.HK;var L=this.videoData;L=L.J("html5_ssdai_use_post_for_media")&&L.enableServerStitchedDai?!1:JZ(L)&&L.dB&&!L.isAd();O.call(n,L,l)}}; g.h.iy=function(l){l=l===void 0?!1:l;this.Xi&&(this.logger.debug("remove media source"),Ny5(this.Xi),this.HK(l),this.Xi.dispose(),this.Xi=null)}; g.h.wJ=function(){return this.Xi}; g.h.F9=function(l,n,O,L){function X(x){try{lqv(F,x,n,O)}catch(Z){g.d2(Z),F.handleError(new Ml("fmt.unplayable",{msi:"1",ename:Z&&typeof Z==="object"&&"name"in Z?String(Z.name):void 0},1))}} var F=this;n=n===void 0?!1:n;O=O===void 0?!1:O;tL9(this,L===void 0?!1:L);this.Xi=l;this.xW()&&C5(this.Xi)==="open"?X(this.Xi):u8k(this.Xi,X)}; g.h.VC=function(l){this.logger.debug("onNeedKeyInfo");this.mu.set(l.initData,l);this.S7&&(this.S7.VC(l),this.J("html5_eme_loader_sync")||this.mu.remove(l.initData))}; g.h.Af=function(l){this.videoData.v0=g.gI("auto",l,!1,"u");AH(this)}; g.h.wN=function(l){var n=l.reason,O=l.S.info,L=l.token,X=l.videoId,F=this.p5(X),x=g.fy(this.videoData)?F.getVideoData():this.videoData;if(O!==x.L){var Z=!x.L;x.L=O;n!=="m"&&n!=="t"&&(n=Z?"i":"a");var J=n==="m"||n==="t";this.xo.experiments.MQ("html5_refactor_sabr_audio_format_selection_logging")?this.G5=new B_8(x,O,n,"",L,X):F.Yf(new B_8(x,O,n,"",L));this.publish("internalaudioformatchange",x,!Z&&J)}this.wK.wN(l.S.index)}; g.h.tq=function(l){this.publish("localmediachange",l)}; g.h.gk=function(l){l=l===void 0?{}:l;var n;(n=this.sf)==null||n.gk(this.xo,LN(this.videoData),l)}; g.h.Bi=function(){return this.Jd.Bi()}; g.h.Ll=function(l){this.l5(new Ml("staleconfig",{reason:l}))}; g.h.handleError=function(l){this.Jd.handleError(l)}; g.h.Wc=function(){return this.Jd.Wc()}; g.h.d_=function(l){this.wK.d_(l)}; g.h.vG=function(l,n,O){l=l===void 0?!1:l;n=n===void 0?!1:n;O=O===void 0?!1:O;var L=this,X,F,x;return g.Y(function(Z){if(Z.S==1){L.sf&&L.sf.tF();L.sf&&L.sf.JG()&&PL(L);if(L.J("html5_enable_vp9_fairplay")&&L.Vb()&&(X=L.videoData.S)!=null)for(var J in X.S)X.S.hasOwnProperty(J)&&(X.S[J].S=null,X.S[J].N=!1);L.Vu(xX(L.playerState,2048));L.J("html5_ssap_keep_media_on_finish_segment")&&g.fy(L.videoData)?L.publish("newelementrequired",O):L.publish("newelementrequired");return l?g.Q(Z,Ua(L),2):Z.D2(2)}L.videoData.tA()&& ((F=L.sf)==null?0:F.Q5)&&!Xt(L)&&((x=L.isAtLiveHead())&&Zf(L.videoData)?L.seekTo(Infinity,{UC:"videoPlayer_getNewElement"}):L.videoData.aI&&L.sf&&(J=L.sf,J.T3.tA&&(J.T3.aI||J.T3.L||J.T3.isPremiere?(J.seek(0,{UC:"loader_resetSqless"}),J.videoTrack.T=!0,J.audioTrack.T=!0,J.videoTrack.B=!0,J.audioTrack.B=!0):qb(J.T3)&&UD(J))));n&&L.seekTo(0,{seekSource:105});g.K(L.playerState,8)&&(L.J("html5_ssap_keep_media_on_finish_segment")&&g.fy(L.videoData)?L.playVideo(!1,O):L.playVideo());g.Tk(Z)})}; g.h.GC=function(l){this.Sp("hgte",{ne:+l});this.videoData.G=!1;l&&this.vG();this.sf&&fYa(this.sf)}; g.h.eM=function(l){this.Sp("newelem",{r:l});this.vG()}; g.h.pauseVideo=function(l){l=l===void 0?!1:l;if((g.K(this.playerState,64)||g.K(this.playerState,2))&&!l)if(g.K(this.playerState,8))this.Vu(Zh(this.playerState,4,8));else if(this.bT())bU(this);else return;g.K(this.playerState,128)||(l?this.Vu(xX(this.playerState,256)):this.Vu(Zh(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.kZ(this.videoData)&&this.sf&&ND(this,!1)}; g.h.stopVideo=function(){this.pauseVideo();this.sf&&(ND(this,!1),this.sf.ul())}; g.h.Ya=function(l,n){l=l===void 0?!1:l;n=n===void 0?!1:n;if(this.xW()&&n){var O;(O=this.mediaElement)==null||O.Ya()}else{var L;(L=this.mediaElement)==null||L.stopVideo()}D1(this);PL(this);g.K(this.playerState,128)||(l?this.Vu(h1(h1(xX(this.playerState,4),8),16)):this.Vu(FI(this.playerState)));this.videoData.videoId&&this.xo.z3.remove(this.videoData.videoId)}; g.h.seekTo=function(l,n){n=n===void 0?{}:n;this.logger.debug(function(){return"SeekTo "+l+", "+JSON.stringify(n)}); g.K(this.playerState,2)&&bU(this);n.qvz&&this.Vu(xX(this.playerState,2048));n.seekSource!==58&&n.seekSource!==60||!this.J("html5_update_vss_during_gapless_seeking")||bt0(this.p5(),n.seekSource);this.wK.seekTo(l,n);this.RN.sync()}; g.h.ZS=function(l){this.ze.L.nW();g.K(this.playerState,32)||(this.Vu(xX(this.playerState,32,l==null?void 0:l.seekSource)),g.K(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.tC()}; g.h.Xz=function(l){l=l==null?void 0:l.seekSource;g.K(this.playerState,32)?(this.Vu(Zh(this.playerState,16,32,l)),this.publish("endseeking",this)):g.K(this.playerState,2)||this.Vu(xX(this.playerState,16,l));this.ze.L.Oi(this.videoData,this.playerState.isPaused())}; g.h.tf=function(l){this.Xz(l)}; g.h.wx=function(){this.publish("SEEK_COMPLETE")}; g.h.Ui=function(){this.publish("onAbnormalityDetected")}; g.h.Tp=function(l){var n=this.AC,O=this.videoData.clientPlaybackNonce,L=this.playerType;if(l.scope===4){var X=l.type;if(X){var F=n.Wj(),x=F.getVideoData().clientPlaybackNonce;L===1&&(x=O);(n=lVi(n,x))?(O=n.getVideoData())&&(l.writePolicy===2&&O.sabrContextUpdates.has(X)||O.sabrContextUpdates.set(X,l)):F.Sp("scuset",{ncpf:"1",ccpn:x,crcpn:O})}else g.d2(Error("b/380308491: contextUpdateType is undefined"))}}; g.h.Tv=function(){if(this.playerType===2)return this.AC.Tv("")}; g.h.getCurrentTime=function(){return this.wK.getCurrentTime()}; g.h.zY=function(){return this.wK.zY()}; g.h.n1=function(){return this.wK.n1()}; g.h.Vi=function(l){return this.s_&&(l=l||this.s_.wA())?oP(this.s_,l):this.n1()}; g.h.Tn=function(){return this.wK.Tn()}; g.h.getPlaylistSequenceForTime=function(l){return this.videoData.getPlaylistSequenceForTime(l-this.ez())}; g.h.oU=function(){var l=NaN;this.mediaElement&&(l=this.mediaElement.oU());return l>=0?l:this.getCurrentTime()}; g.h.Ko=function(){var l;return((l=this.videoData.S)==null?0:l.Ko)?this.videoData.S.Ko(this.getCurrentTime()-this.ez()):this.mediaElement&&(l=this.mediaElement.S4())&&(l=l.getTime(),!isNaN(l))?l/1E3+this.getCurrentTime():NaN}; g.h.getDuration=function(l){return g.fy(this.videoData)&&this.s_?l?DA5(this.s_,l):ty(this.s_):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.ez():this.w8()?this.w8():0}; g.h.vt=function(){var l=new Ebi;if(this.sf){var n=this.xo.schedule,O=this.xo.AA();O=O===void 0?!1:O;l.ly=n.Q5;l.bA=n.Fi;l.bandwidthEstimate=WI(n);if(O){O=(n.G.sP()*1E3).toFixed();var L=(n.Cf.sP()*1E3).toFixed(),X=uO(n).toFixed(2),F=((n.T.sP()||0)*1E9).toFixed(2),x=n.N.sP().toFixed(0),Z=n.z3.sP().toFixed(0),J=n.Y.percentile(.5).toFixed(2),w=n.Y.percentile(.92).toFixed(2),H=n.Y.percentile(.96).toFixed(2),A=n.Y.percentile(.98).toFixed(2);n.S?n.S.reset():n.S=new ht;n.S.add(n.Lf);n.S.add(n.interruptions.length); for(var b=0,r=n.interruptions.length-1;r>=0;r--){var U=n.interruptions[r];n.S.add(U-b);b=U}b=0;for(r=n.L.length-1;r>=0;r--){U=n.L[r];var W=U.stamp/36E5;n.S.add(W-b);b=W;n.S.add(U.net/1E3);n.S.add(U.max)}n=n.S.OP();l.S={ttr:O,ttm:L,d:X,st:F,bw:x,abw:Z,v50:J,v92:w,v96:H,v98:A,"int":n}}WNq(this.sf,l)}else this.mediaElement&&(l.ZB=Oz(this.mediaElement));l.ly=this.ly;l.bA=this.bA;l.N=this.isAtLiveHead()&&this.isPlaying()?jyk(this):NaN;return l}; g.h.vI=function(l,n){this.bA+=l;this.ly+=n}; g.h.gF=function(){return this.mediaElement?g.kZ(this.videoData)?1:yZ(this.videoData)?this.isAtLiveHead()||this.qH()?1:this.wK.gF():this.mediaElement.gF():0}; g.h.sj=function(){var l=this.getCurrentTime();if(this.S7){var n="IT/"+(this.S7.S.getInfo()+"/"+FF(this.HD()));n+="/"+this.S7.getInfo()}else n="";var O=this.isGapless(),L=this.o0(),X=this.k8(),F=g.WL(this),x=this.getPlayerState(),Z=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var J=0;var w="";if(this.jz){if(this.jz.zo){w="D,";break a}J=this.jz.tU();w=this.jz.wA().substring(0,4)}else this.s_&&(J=this.s_.tU(),w=this.s_.wA().substring(0,4));J>0?(J="AD"+J+", ",w&&(J+=w+", "),w=J):w=""}return{currentTime:l, xA:n,isGapless:O,o0:L,jV:X,D_f:F,playerState:x,yti:Z,oT5:this.TX,PC:w,x33:this.Qd()}}; g.h.sC=function(l){var n={};if(l===void 0?0:l){Object.assign(n,this.p5().sC());this.mediaElement&&(Object.assign(n,this.mediaElement.sC()),Object.assign(n,this.Qd()));this.sf&&Object.assign(n,this.sf.sC());this.S7&&(n.drm=JSON.stringify(this.S7.sC()));n.state=this.playerState.state.toString(16);g.K(this.playerState,128)&&(n.debug_error=JSON.stringify(this.playerState.WG));this.Pp()&&(n.prerolls=this.nX.join(","));this.videoData.z$&&(n.ismb=this.videoData.z$);this.videoData.latencyClass!=="UNKNOWN"&& (n.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(n.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)n.is_mosaic=1;this.videoData.cotn&&(n.is_offline=1,n.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(n.playerResponseCpn=this.videoData.playerResponseCpn);this.AC.isOrchestrationLeader()&&(n.leader=1);this.videoData.isLivePlayback&&(this.videoData.S&& Wz(this.videoData.S)&&(n.segduration=Wz(this.videoData.S)),l=this.wK,n.lat=l.V?$s8(l.V.L):0,n.liveutcstart=this.videoData.liveUtcStartSeconds);n.relative_loudness=this.videoData.cQ.toFixed(3);if(l=g.WL(this))n.optimal_format=l.video.qualityLabel;n.user_qual=$W();n.release_version="youtube.player.web_20250223_00_RC00";g.fy(this.videoData)&&this.s_&&(n.ssap=Wh(this.s_))}n.debug_videoId=this.videoData.videoId;return n}; g.h.addCueRange=function(l){this.RL([l])}; g.h.removeCueRange=function(l){this.RN.lV([l])}; g.h.zH=function(){this.RN.sync()}; g.h.Em=function(l,n){return this.RN.Em(l,n)}; g.h.RL=function(l,n){this.RN.RA(l,n)}; g.h.ZW=function(l){this.RN.lV(l)}; g.h.Ww=function(l){var n=this.RN;l.length<=0||n.JG()||(l=n.S,l.array.sort(l.S))}; g.h.PT=function(){return this.RN.PT()||[]}; g.h.Ux=function(){return this.Ej}; g.h.zE=function(){return this.visibility.zE()}; g.h.Yc=function(){this.mediaElement&&this.mediaElement.Yc()}; g.h.hOf=function(){uU(this)}; g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.h.pE=function(l){var n=l.target.m5();if(this.mediaElement&&this.mediaElement.m5()&&this.mediaElement.m5()===n){HR9(this,l.type);switch(l.type){case "error":var O=LX(this.mediaElement)||"",L=this.mediaElement.gB();if(O==="capability.changed"){this.J("html5_restart_on_capability_change")?(this.Sp("capchg",{msg:L}),this.vG(!0)):Ua(this);return}if(this.mediaElement.hasError()&&(j2e(this.Jd,O,{msg:L})||g.fy(this.videoData)&&this.s_&&(L=this.playerState.WG,this.s_.handleError(O,L==null?void 0:L.wS))))return; if(this.isBackground()&&this.mediaElement.K2()===4){this.Ya();TF(this,"unplayable");return}break;case "durationchange":O=this.mediaElement.getDuration();isFinite(O)&&(!this.Xi||O>0)&&O!==1&&this.O7(O);break;case "ratechange":this.sf&&this.sf.setPlaybackRate(this.mediaElement.getPlaybackRate());YV0(this.RN);this.p5().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bRi(this);this.publish("onLoadedMetadata");Lli(this);O=this.Ko();this.videoData.Ri&&(this.videoData.Ri=O);break; case "loadstart":Lli(this);break;case "progress":case "suspend":this.tC();this.publish("onLoadProgress",this,this.gF());break;case "playing":this.ze.fK("plev");this.jO&&!Xt(this)&&(this.jO=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{UC:"videoplayer_onPlaying"})));break;case "timeupdate":O=this.mediaElement&&!this.mediaElement.getCurrentTime();L=this.mediaElement&&this.mediaElement.R_()===0;if(O&&(!this.rV||L))return;this.rV=this.rV||!!this.mediaElement.getCurrentTime(); gVa(this);this.tC();if(!this.mediaElement||this.mediaElement.m5()!==n)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Ew().length>0&&this.mediaElement.NJ().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.sf)return;this.J("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.R_()>2||!this.mediaElement.isSeeking()&&ZA(this.mediaElement.NJ(),this.mediaElement.getCurrentTime()))&& (O=this.mediaElement.sC(),O.bh=Oz(this.mediaElement).toFixed(3),this.Sp("uwe",O));g.fy(this.videoData)&&this.s_&&UAa(this.s_,this.mediaElement.getCurrentTime());break;case "resize":bRi(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Kt&&g.K(this.playerState,8)&&!g.K(this.playerState,1024)&&this.getCurrentTime()===0&&g.Wo){TF(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.m5()=== n){Ho0(this.wK,l,this.s_||void 0);this.publish("videoelementevent",l);n=this.playerState;L=this.lY;var X=this.mediaElement;O=this.videoData.clientPlaybackNonce;var F=g.fy(this.videoData)&&this.s_?ty(this.s_):void 0;if(!g.K(n,128)){var x=n.state;X=X?X:l.target;var Z=X.getCurrentTime();if(!g.K(n,64)||l.type!=="ended"&&l.type!=="pause"){F=F||X.getDuration();F=X.isEnded()||Z>1&&Math.abs(Z-F)<1.1;var J=l.type==="pause"&&X.isEnded();Z=l.type==="ended"||l.type==="waiting"||l.type==="timeupdate"&&!g.K(n, 4)&&!Kt(L,Z);if(J||F&&Z)X.Pc()>0&&X.m5()&&(x=14);else switch(l.type){case "error":LX(X)&&(x|=128);break;case "pause":g.K(n,256)?(x^=256)||(x=64):g.K(n,32)||g.K(n,2)||g.K(n,4)||(x=4,g.K(n,1)&&g.K(n,8)&&(x|=1));break;case "playing":Z=x;x=(x|8)&-1093;Z&4?(x|=1,ov(L,X,!0)):Kt(L,X.getCurrentTime())&&(x&=-2);g.K(n,1)&&ov(L,X)&&(x|=1);break;case "seeking":x|=16;g.K(n,8)&&(x|=1);x&=-3;break;case "seeked":x&=-17;ov(L,X,!0);break;case "waiting":g.K(n,2)||(x|=1);ov(L,X);break;case "timeupdate":Z=g.K(n,16),F= g.K(n,4),(g.K(n,8)||Z)&&!F&&Kt(L,X.getCurrentTime())&&(x=8),ov(L,X)&&(x|=1)}}L=x;x=null;L&128&&(x=l.target,X=LX(x),Z=1,X?(X==="capability.changed"&&(Z=2),F="GENERIC_WITHOUT_LINK",J=x.sC(),J.mediaElem="1",/AUDIO_RENDERER/.test(x.gB())&&(F="HTML5_AUDIO_RENDERER_ERROR"),x={errorCode:X,errorMessage:g.KR[F]||"",Nx:F,DK:yC(J),wS:Z,cpn:n.WG?n.WG.cpn:""}):x=null,x&&(x.cpn=O));n=FI(n,L,x)}!g.K(this.playerState,1)&&g.K(n,1)&&w88(this,"evt"+l.type);this.Vu(n)}}}; g.h.Uvo=function(l){l=l.S.availability==="available";l!==this.Ej&&(this.Ej=l,this.publish("airplayavailabilitychange"))}; g.h.AAJ=function(){var l=(0,g.Q_)(),n=this.mediaElement.zE();this.Sp("airplay",{ia:n});!n&&!isNaN(this.wL)&&l-this.wL<2E3||(this.wL=l,n!==this.zE()&&(l=this.visibility,l.S!==n&&(l.S=n,l.mI()),this.Sp("airplay",{rbld:n}),this.u0()),this.publish("airplayactivechange"))}; g.h.TY=function(l){if(this.sf){var n=this.sf,O=n.L,L=n.getCurrentTime(),X=Date.now()-O.Y;O.Y=NaN;O.Sp("sdai",{adfetchdone:l,d:X});l&&!isNaN(O.T)&&O.W!==3&&IQ(O.sf,L,O.T,O.B);O.policy.B?O.N=NaN:O.L=NaN;GQ(O,4,O.W===3?"adfps":"adf");vh(n)}}; g.h.DX=function(){g.Tj(this.Wv);this.vJ.stop();this.videoData.Q5=!0;this.xo.Up=!0;this.xo.n5=0;var l=this.Jd;if(l.videoData.W){var n=l.rq.B,O=l.videoData.W.bF;n.W.has(O)&&(n.W.delete(O),gn(n))}l.S.stop();this.qZ();g.K(this.playerState,8)&&this.Vu(h1(this.playerState,65));this.cX=!1;AOf(this.p5());g.lx(this.lZ);this.publish("playbackstarted");(l=g.zk("yt.scheduler.instance.clearPriorityThreshold"))?l():L1(0,0)}; g.h.qZ=function(){var l=this.AC.b5(),n={},O={};!pp("pbs",this.ze.timerName)&&e$.measure&&e$.getEntriesByName&&(e$.getEntriesByName("mark_nr")[0]?REg("mark_nr"):REg());l.videoId&&(n.videoId=l.videoId);l.clientPlaybackNonce&&!this.J("web_player_early_cpn")&&(n.clientPlaybackNonce=l.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(O.isPausedOnLoad=!0);O.itag=l.W?Number(l.W.itag):-1;l.Y4&&(O.preloadType=String(this.QG?2:1));n.liveStreamMode=nMF[Wf(l)];n.playerInfo=O;this.ze.infoGel(n); if(this.sf){l=this.sf.timing;window&&window.performance&&window.performance.getEntriesByName&&(l.N&&(n=window.performance.getEntriesByName(l.N),n.length&&(n=n[0],l.tick("vri",n.fetchStart),l.tick("vdns",n.domainLookupEnd),l.tick("vreq",n.requestStart),l.tick("vrc",n.responseEnd))),l.W&&(n=window.performance.getEntriesByName(l.W),n.length&&(n=n[0],l.tick("ari",n.fetchStart),l.tick("adns",n.domainLookupEnd),l.tick("areq",n.requestStart),l.tick("arc",n.responseEnd))));l=l.ticks;for(var L in l)l.hasOwnProperty(L)&& this.ze.tick(L,l[L])}}; g.h.gI=function(l,n,O){l=(l+(this.Gc===3?.3:0))/n;n=Math.floor(l*4);n>this.Gc&&(this.Sp("vpq",{q:n,cpn:O||this.videoData.clientPlaybackNonce,ratio:l.toFixed(3)}),this.Gc=n)}; g.h.wW=function(){this.Gc=-1}; g.h.tC=function(l){var n=this;l=l===void 0?!1:l;if(this.mediaElement&&this.videoData){XL0(this.wK,this.isPlaying());var O=this.getCurrentTime();!this.sf||g.K(this.playerState,4)&&g.kZ(this.videoData)||g.K(this.playerState,32)&&XZ(this.videoData)||Ni0(this.sf,O);this.J("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.gI(O,this.videoData.lengthSeconds);O>5&&(this.wK.L=O);var L=g.gF();L?g.St.DN(this.AV):g.Pu(this.AV);var X=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!X||vf(this.videoData))&& !g.K(this.playerState,128)){var F=function(){if(n.mediaElement&&!g.K(n.playerState,128)){n.xo.AA()&&HR9(n,"pfx");var x=n.getCurrentTime();n.J("html5_buffer_underrun_transition_fix")&&(x-=n.ez());var Z=Oz(n.mediaElement),J=g.K(n.playerState,8),w=Kt(n.lY,x),H=eh7(n.lY,x,(0,g.Q_)(),Z);J&&w?n.Vu(h1(n.playerState,1)):J&&H?(J=n.getDuration(),w=Zf(n.videoData),J&&Math.abs(J-x)<1.1?(n.Sp("setended",{ct:x,bh:Z,dur:J,live:w}),n.mediaElement.hS()?(n.logger.debug("seek to 0 because of looping"),n.seekTo(0,{UC:"videoplayer_loop", seekSource:37})):n.ND()):(n.playerState.isBuffering()||w88(n,"progress_fix"),n.Vu(xX(n.playerState,1)))):(J&&!w&&!H&&x>0&&(J=(Date.now()-n.nj)/1E3,w=n.getDuration(),x>w-1&&n.Sp("misspg",{t:x.toFixed(2),d:w.toFixed(2),r:J.toFixed(2),bh:Z.toFixed(2)})),n.playerState.isPaused()&&n.playerState.isBuffering()&&Oz(n.mediaElement)>5&&n.Vu(h1(n.playerState,1)));n.tC()}}; this.mediaElement.Ew().length===0?this.AV=L?g.St.Ou(F,100):g.U0(F,100):this.AV=L?g.St.Ou(F,500):g.U0(F,500)}this.videoData.Pm=O;this.s_&&this.s_.KK();!l&&this.isPlaying()&&oVi(this);nNi(this.GM,this.LN,this.T$(),this.isBackground())&&AH(this);this.publish("progresssync",this,l);X&&vf(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.h.bx=function(){this.M_("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.h.k8=function(){return this.p5().k8()}; g.h.zv=function(){return this.sf?this.sf.zv():WI(this.xo.schedule,!0)}; g.h.Vu=function(l){if(!g.J1(this.playerState,l)){this.logger.debug(function(){return"Setting state "+l.toString()}); var n=new g.br(l,this.playerState);this.playerState=l;Axq(this);var O=!this.dI.length;this.dI.push(n);var L=this.mediaElement&&this.mediaElement.isSeeking();L=n.oldState.state===8&&!L;g.U2(n,1)&&L&&g.K(this.playerState,8)&&!g.K(this.playerState,64)&&this.sf&&(s4v(this.sf),this.mediaElement&&Oz(this.mediaElement)>=5&&vSv(this.GM,this.LN)&&AH(this));(L=g.HQ(this.xo.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.K(l,1)&&(g.K(l,8)||g.K(l,16))?this.al.start(L):this.al.stop();(ry(n,8)<0|| g.U2(n,1024))&&this.vJ.stop();!g.U2(n,8)||this.videoData.Q5||g.K(n.state,1024)||this.vJ.start();g.K(n.state,8)&&ry(n,16)<0&&!g.K(n.state,32)&&!g.K(n.state,2)&&this.playVideo();g.K(n.state,2)&&yZ(this.videoData)&&(this.O7(this.getCurrentTime()),this.tC(!0));g.U2(n,2)&&(this.It(!0),this.xo.AA()&&this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&XZ(this.videoData)&&this.videoData.S&&(L={minst:""+this.videoData.S.IU,cminst:""+(this.videoData.S.i5()+this.ez()),maxst:""+this.videoData.S.vp, hts:""+this.videoData.S.NQ,cmaxst:""+(this.videoData.S.w8()+this.ez())},this.Sp("sabrSeekableBoundaries",L)));g.U2(n,128)&&this.Ya();this.videoData.S&&this.videoData.isLivePlayback&&!this.eY&&(ry(n,8)<0?tCa(this.videoData.S):g.U2(n,8)&&this.videoData.S.resume());g8q(this.wK,n);rOa(this.p5(),n);if(O&&!this.JG())try{for(var X=g.P(this.dI),F=X.next();!F.done;F=X.next()){var x=F.value;jDi(this.RN,x);this.publish("statechange",x)}}finally{this.dI.length=0}}}; g.h.Eh=function(){this.ze.tick("qoes")}; g.h.Qn=function(){this.wK.Qn()}; g.h.TH=function(l,n,O,L){a:{var X=this.Jd;L=L===void 0?"LICENSE":L;O=O.substring(0,256);var F=QC(n);l==="drm.keyerror"&&this.S7&&this.S7.W.keys.length>1&&X.L<96&&(l="drm.sessionlimitexhausted",F=!1);if(F)if(X.videoData.W&&X.videoData.W.video.isHdr())VSa(X,l);else{if(X.uF.M_(l,n,L,O),Q2g(X,{detail:O}))break a}else X.l5(l,{detail:O});l==="drm.sessionlimitexhausted"&&(X.Sp("retrydrm",{sessionLimitExhausted:1}),X.L++,Jxk(X.uF))}}; g.h.qCq=function(){var l=this,n=g.HQ(this.xo.experiments,"html5_license_constraint_delay"),O=Oh();n&&O?(n=new g.vs(function(){l.Zv();uU(l)},n),g.c(this,n),n.start()):(this.Zv(),uU(this))}; g.h.HB=function(l){this.publish("heartbeatparams",l)}; g.h.U7=function(l){this.Sp("keystatuses",t4f(l));var n="auto",O=!1;this.videoData.W&&(n=this.videoData.W.video.quality,O=this.videoData.W.video.isHdr());if(this.J("html5_drm_check_all_key_error_states")){var L=vZf(n,O);L=HF(l)?lQa(l,L):l.L.includes(L)}else{a:{n=vZf(n,O);for(L in l.S)if(l.S[L].status==="output-restricted"){var X=l.S[L].type;if(n===""||X==="AUDIO"||n===X){L=!0;break a}}L=!1}L=!L}if(this.J("html5_enable_vp9_fairplay")){if(O)if(l.T){var F;if((F=this.S7)==null?0:$Y(F.S))if((O=this.S7)== null)O=0;else{n=F=void 0;X=g.P(O.W.values());for(var x=X.next();!x.done;x=X.next())x=x.value,F||(F=nA9(x,"SD")),n||(n=nA9(x,"AUDIO"));O.HQ({sd:F,audio:n});O=F==="output-restricted"||n==="output-restricted"}else O=!L;if(O){this.Sp("drm",{dshdr:1});VSa(this.Jd);return}}else{this.videoData.T5||(this.videoData.T5=!0,this.Sp("drm",{dphdr:1}),this.vG(!0));return}var Z;if((Z=this.S7)==null?0:$Y(Z.S))return}else if(Z=l.T&&L,O&&!Z){VSa(this.Jd);return}L||lQa(l,"AUDIO")&&lQa(l,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), l=t4f(l),this.Xw?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.J("html5_report_fatal_drm_restricted_error_killswitch")||this.M_("drm.keyerror",2,void 0,"info."+l)):(this.Xw=!0,this.l5(new Ml("qoe.restart",Object.assign({},{retrydrm:1},l))),AH(this),Jxk(this)))}; g.h.TKf=function(){if(!this.videoData.Q5&&this.mediaElement&&!this.isBackground()){var l="0";this.mediaElement.R_()>0&&Oz(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.S&&(this.Vu(xX(this.playerState,1)),w88(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),l="1");Axq(this);var n=this.videoData.N;l={restartmsg:l,mfmt:!nN(this.videoData),mdrm:!(!(n&&n.videoInfos&&n.videoInfos.length&&n.videoInfos[0].UK)||this.S7),mfmtinfo:!this.videoData.W,prerolls:this.Pp()?this.nX.join(","): "0"};if(this.S7){n=this.S7;if(n.W.size<=0){var O="ns;";n.Y||(O+="nr;");n=O+="ql."+n.N.length}else n=t4f(n.W.values().next().value),n=yC(n);l.drmp=n}var L;Object.assign(l,((L=this.sf)==null?void 0:L.sC())||{});var X;Object.assign(l,((X=this.mediaElement)==null?void 0:X.sC())||{});this.p5().l5("qoe.start15s",yC(l));this.publish("loadsofttimeout")}}; g.h.O7=function(l){this.videoData.lengthSeconds!==l&&(this.videoData.lengthSeconds=l,uU(this))}; g.h.It=function(l,n){var O=this;l=l===void 0?!1:l;if(!this.D_)if(pp("att_s","player_att")||fp("att_s",void 0,"player_att"),this.J("use_rta_for_player"))(function(){var X,F,x,Z;return g.Y(function(J){switch(J.S){case 1:if(!(X=l)){J.D2(2);break}return g.Q(J,g.DUg(),3);case 3:X=!J.W;case 2:if(X)return J.return();g.We(J,4);F=TA5(O.p5());if(!F)throw Error();x={};return g.Q(J,g.Nz9((x.cpn=O.videoData.clientPlaybackNonce,x.encryptedVideoId=O.videoData.videoId||"",x),3E4),6);case 6:Z=J.W;if(O.D_)throw Error(); if(!Z.challenge)throw g.d2(Error("Not sending attestation ping; no attestation challenge string")),Error();O.D_=!0;var w=[Z.challenge];Z.error?w.push("r1c="+Z.error):Z.webResponse&&w.push("r1a="+Z.webResponse);var H;((H=Z.adblockReporting)==null?void 0:H.reportingStatus)!==void 0&&w.push("r6a="+Z.adblockReporting.reportingStatus);var A;((A=Z.adblockReporting)==null?void 0:A.broadSpectrumDetectionResult)!==void 0&&w.push("r6b="+Z.adblockReporting.broadSpectrumDetectionResult);F(w.join("&"));fp("att_f", void 0,"player_att");g.N7(J,0);break;case 4:g.D5(J),fp("att_e",void 0,"player_att"),g.Tk(J)}})})().then(function(){n==null||n()}); else{var L=new g.Ngi(this.videoData);if("c1a"in L.HH&&!g.jk.isInitialized()){fp("att_wb",void 0,"player_att");this.bZ===2&&Math.random()<.01&&g.d2(Error("Botguard not available after 2 attempts"));if(l)return;if(this.bZ<5){g.lx(this.kL);this.bZ++;return}}(L=g.Dpk(L))?(fp("att_f",void 0,"player_att"),Pbq(this.p5(),L),this.D_=!0):fp("att_e",void 0,"player_att")}}; g.h.RU=function(l){l=l===void 0?!1:l;if(Zf(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.qH()||g.kZ(this.videoData)))l=this.getCurrentTime();else if(g.fy(this.videoData)&&this.s_){l=this.s_;var n=this.getCurrentTime();l=(l=Wni(l,n*1E3))?(l.Uu()-l.T7())/1E3:0}else l=this.w8(l);return l}; g.h.xq=function(){return g.fy(this.videoData)?this.videoData.i5():this.i5()}; g.h.w8=function(l){return this.wK.w8(l===void 0?!1:l)}; g.h.i5=function(){return this.wK.i5()}; g.h.ez=function(){return this.wK?this.wK.ez():0}; g.h.getStreamTimeOffset=function(){return this.wK?this.wK.getStreamTimeOffset():0}; g.h.XC=function(){var l=0;this.xo.J("web_player_ss_media_time_offset")&&(l=this.getStreamTimeOffset()===0?this.ez():this.getStreamTimeOffset());return l}; g.h.setPlaybackRate=function(l){var n;this.playbackRate!==l&&pYe(this.GM,(n=this.videoData.N)==null?void 0:n.videoInfos)&&(this.playbackRate=l,AH(this));this.playbackRate=l;this.mediaElement&&this.mediaElement.setPlaybackRate(l)}; g.h.getPlaybackRate=function(){return this.playbackRate}; g.h.getPlaybackQuality=function(){var l="unknown";if(this.videoData.W&&(l=this.videoData.W.video.quality,l==="auto"&&this.mediaElement)){var n=this.wF();n&&n.videoHeight>0&&(l=B7(n.videoWidth,n.videoHeight))}return l}; g.h.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.h.JL=function(){this.p5().JL()}; g.h.sendVideoStatsEngageEvent=function(l,n){var O=this.p5();O.S?(O=dA(O.S,"engage"),O.NQ=l,O.send(n)):n&&n()}; g.h.MJ=function(l){return this.p5().MJ(l)}; g.h.isAtLiveHead=function(l,n){n=n===void 0?!1:n;return Zf(this.videoData)&&(this.YO||n)?this.wK.isAtLiveHead(l):!1}; g.h.td=function(){var l=this.w8(),n=this.getCurrentTime(),O;(O=!Zf(this.videoData))||(O=this.wK,O=!(O.S&&O.S.N));return O||this.qH()||isNaN(l)||isNaN(n)?0:Math.max(0,l-n)}; g.h.W3=function(l){(this.YO=l)||this.vJ.stop();this.videoData.S&&(l?this.videoData.S.resume():tCa(this.videoData.S));if(this.sf){var n=this.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&this.fT()&&this.videoData.isLivePlayback;l&&!n?this.sf.resume():ND(this,!0)}g.K(this.playerState,2)||l?g.K(this.playerState,512)&&l&&this.Vu(h1(this.playerState,512)):this.Vu(xX(this.playerState,512));n=this.p5();n.qoe&&(n=n.qoe,g.kb(n,g.EV(n.provider),"stream",[l?"A":"I"]))}; g.h.Yw=function(l){l={n:l.name,m:l.message};this.p5().l5("player.exception",yC(l))}; g.h.pB=Oi(25);g.h.W$=Oi(51);g.h.Z0=function(l){this.p5().Z0(l)}; g.h.fV=function(l){this.p5().fV(l)}; g.h.YC=function(l){this.p5().YC(l)}; g.h.kT=Oi(30);g.h.fM=Oi(35);g.h.Ni=function(l){this.p5().Ni(l)}; g.h.eq=function(){this.Sp("hidden",{},!0)}; g.h.Qd=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.h.ob=function(){return this.sf?this.sf.ob():!0}; g.h.setLoop=function(l){this.loop=l;this.mediaElement&&!g.yw(this.xo)&&this.mediaElement.setLoop(l);this.sf&&this.J("html5_loop_skip_set_end_of_stream")&&(l?this.sf.policy.JA=!0:fYa(this.sf))}; g.h.hS=function(){return this.mediaElement&&!g.yw(this.xo)?this.mediaElement.hS():this.loop}; g.h.Uh=function(l){this.Sp("timestamp",{o:l.toString()});this.wK.Uh(l)}; g.h.Lo=function(l){this.ze.tick(l)}; g.h.iQ=function(l){return this.ze.iQ(l)}; g.h.fK=function(l){this.ze.fK(l)}; g.h.Sp=function(l,n,O){O=O===void 0?!1:O;this.p5().Sp(l,n,O)}; g.h.Gp=function(l,n,O){O=O===void 0?!1:O;this.p5().Sp(l,n,O)}; g.h.l5=function(l){this.p5().l5(l.errorCode,yC(l.details));l=l.errorCode;if(this.videoData.isLivePlayback&&(l==="qoe.longrebuffer"||l==="qoe.slowseek")||l==="qoe.restart"){l=this.sf?PM5(this.sf.videoTrack):{};var n,O;this.Sp("lasoe",Object.assign(this.sf?PM5(this.sf.audioTrack):{},(n=this.Xi)==null?void 0:(O=n.S)==null?void 0:O.TT()));var L,X;this.Sp("lvsoe",Object.assign(l,(L=this.Xi)==null?void 0:(X=L.W)==null?void 0:X.TT()))}}; g.h.MG=function(l,n,O){this.p5().MG(l,n,O)}; g.h.bb=function(l,n,O,L,X,F,x,Z){var J;if((J=this.videoData.S)!=null&&J.isLive){var w=n.playerType===2?n:l,H=l.videoData.videoId,A=n.videoData.videoId;if(H&&A){J=this.p5();if(J.qoe){var b=J.qoe,r=l.cpn,U=n.cpn,W=w.videoData.Wk,N=b.provider.videoData.clientPlaybackNonce,q=b.provider.videoData.videoId,y=U!==N&&A!==q;N=r!==N&&H!==q;b.reportStats();b.adCpn&&b.adCpn!==r||(b.adCpn=N?r:"",b.Wm=N?H:"",b.adFormat=N?W:void 0,Yb(b,2,F?4:X?2:0,U,A,L),b.reportStats(),b.adCpn=y?U:"",b.Wm=y?A:"",b.adFormat=y?W: void 0,Yb(b,2,F?5:X?3:1,r,H,O),b.reportStats())}O=l.cpn;if(J.N.has(O)){if(X=J.N.get(O),BF(X,!0).send(),Vn(X),O!==J.provider.videoData.clientPlaybackNonce){ob9(X);var e;(e=J.S)==null||nb9(e);J.N.delete(O)}}else J.uU=J.provider.videoData.clientPlaybackNonce,J.uU&&J.S&&(J.N.set(J.uU,J.S),BF(J.S).send(),Vn(J.S));e=n.cpn;w=w.videoData;L-=this.XC();if(J.N.has(e)){L=J.N.get(e);var d=L.N&&isNaN(L.B)?$b(L):NaN;L=XFv(L,!1);isNaN(d)||(L.T=d);L.send()}else L=WR9(J,J.provider,w,L),J.N.set(e,L),FR7(L,new g.br(xX(new g.XI, 8),new g.XI)),ll9(L),(d=J.S)==null||Vn(d);J.uU=e;this.J("html5_unify_csi_server_stitched_transition_logging")?Lmf(l.cpn,n.cpn,this.videoData.clientPlaybackNonce,n.videoData,x,void 0,Z):(d=this.videoData.clientPlaybackNonce,J=n.videoData,l=(l.cpn===d?"video":"ad")+"_to_"+(n.cpn===d?"video":"ad"),d={},J.V&&(d.cttAuthInfo={token:J.V,videoId:J.videoId}),x&&(d.startTime=x),S$(l,d),g.zp({targetVideoId:J.videoId,targetCpn:n.cpn,isSsdai:!0},l),iD("pbs",Z!=null?Z:(0,g.Q_)(),l))}}else this.logger.S(360717806, "SSTEvent for nonSS")}; g.h.JU=function(){var l=this.AC,n=l.Mf;l.Mf=[];return n}; g.h.kE=function(l){this.videoData.XN=!0;this.l5(new Ml("sabr.fallback",l));this.vG(!0)}; g.h.O5=function(l,n){this.videoData.lk=!0;if(n===void 0||n)this.l5(new Ml("qoe.restart",l)),this.vG(!0);this.videoData.iK()&&this.J("html5_reload_caption_on_ssdai_fallback")&&this.AC.Oe()}; g.h.rW=function(l){this.Sp("sdai",{aftimeout:l});this.l5(new Ml("ad.fetchtimeout",{timeout:l}))}; g.h.mZ=function(l,n){this.Sp("timelineerror",l);l=new Ml("dai.timelineerror",l);n?this.M_("dai.timelineerror",1,"RETRYABLE_ERROR",yC(l.details)):this.l5(l)}; g.h.I6=function(){return g.EV(this.p5().provider)}; g.h.getPlayerSize=function(){return this.OA.getPlayerSize()}; g.h.Dm=function(){return this.OA.Dm()}; g.h.GE=function(){return this.ze}; g.h.Kz=function(){return this.AC.Kz()}; g.h.getVolume=function(){return this.AC.getVolume()}; g.h.JS=function(){return this.AC.JS()}; g.h.isMuted=function(){return this.AC.isMuted()}; g.h.TC=function(){return this.AC.TC()}; g.h.kz=function(){this.eY=!0}; g.h.J=function(l){return this.xo.J(l)}; g.h.Bv=function(l,n,O,L,X){this.Sp("xvt",{m:l,g:n?1:0,tt:O?1:0,np:L?1:0,c:X})}; g.h.i7=function(){var l;(l=this.sf)==null||l.resume()}; g.h.fT=function(){return g.CO(this.nX,"ad")}; g.h.mA=function(){var l=this.getCurrentTime(),n=l-this.ez();var O=this.mediaElement?wv(this.mediaElement.NJ()):0;O=Math.floor(Math.max(O-n,0))+100;var L;if(!this.J("html5_ssdai_disable_seek_to_skip")&&((L=this.sf)==null?0:L.zg(n,this.w8())))return this.Sp("sdai",{skipad:1,ct:n.toFixed(3),adj:0}),!0;var X;return((X=this.sf)==null?0:X.mA(n,O))?(this.Sp("sdai",{skipad:1,ct:n.toFixed(3),adj:O.toFixed(3)}),XZ(this.videoData)&&this.sf.seek(n+O,{seekSource:89,UC:"videoplayer_skipServerStitchedAd"}),boa(this.wK, l),!0):!1}; g.h.AA=function(){return this.xo.AA()}; g.h.Qw=function(){if(this.J("html5_generate_content_po_token"))return this.videoData.ej||"";this.AC.uP();return this.xo.OU||""}; g.h.jX=function(){if(this.videoData.videoId)return this.videoData.HU}; g.h.G7=function(){return this.videoData.videoId}; g.h.jd=function(){return this.AC.Xr}; g.h.tJ=function(){return this.cX}; g.h.lG=function(){return this.AC.lG()}; g.h.aB=function(l,n){this.wK.aB(l,n)}; g.h.uH=function(){this.wK.uH()}; g.h.ac=function(l,n){var O=this.J("html5_generate_content_po_token")?this.videoData:void 0;this.AC.ac(l,n,O)}; g.h.Rd=function(l,n){var O;(O=this.sf)==null||O.Rd(l,n)}; g.h.Yg=function(){var l=this.wJ();return!!l&&l.Yg()}; g.h.WM=function(){return this.s_}; g.h.o$=function(l,n){this.p5().o$(l,n)}; g.h.qd=function(){return this.p5().qd()}; g.h.AE=function(){return this.videoData.eH}; g.h.o0=function(){return this.AC.o0()}; g.h.ML=function(){return this.AC.ML(this)}; g.h.yx=function(){this.VK=!0}; g.h.gm=function(){return this.UM}; g.h.ju=function(l){var n;(n=this.sf)==null||n.ju(l)};g.u(Uqg,KF);g.u(uR9,KF);g.h=uR9.prototype;g.h.seekToChapterWithAnimation=function(l){var n=this;if(g.AA(this.api)&&!(l<0)){var O=this.api.getVideoData(),L=O.YW;if(L&&l<L.length){L=g.P(L);for(var X=L.next();!X.done;X=L.next())if(X=X.value,X.index===l){P0v(this,X.startTime,X.title);return}}this.J("web_key_moments_markers")&&(O=O.OQ)&&l<O.length&&O.forEach(function(F,x){x===l&&P0v(n,F.timeRangeStartMillis,F.title)})}}; g.h.seekToTimeWithAnimation=function(l,n){g.AA(this.api)&&P0v(this,l,n)}; g.h.setMacroMarkers=function(l,n){n={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:n}}}}}};l=l.getVideoData();l.getWatchNextResponse();l&&l.getWatchNextResponse()==null&&(py(l,{raw_watch_next_response:n}),l.publish("dataupdated"))}; g.h.changeMarkerVisibility=function(l,n,O){var L=this.api.getVideoData();if(L){var X=!1;if(l)for(l=g.P(n),n=l.next();!n.done;n=l.next()){n=n.value;var F=L.uv;if(F&&!F.includes(n))switch(O){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":Wlv(n,L)||(X=!0,F=void 0,(F=L.uv)==null||F.push(n));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":F.length===0&&(X=!0,F=void 0,(F=L.uv)==null||F.push(n));break;default:X=!0,F=void 0,(F=L.uv)==null||F.push(n)}}else for(O= g.P(n),l=O.next();!l.done;l=O.next())l=l.value,L.visibleOnLoadKeys.includes(l)||g.vR(L.uv,l)&&(X=!0);X&&this.api.publish("updatemarkervisibility")}}; g.h.isSameMarkerTypeVisible=function(l){var n=this.api.getVideoData();return n?Wlv(l,n):!1};g.u(qD,KF); qD.prototype.updateMetadata=function(){var l=this,n=this.api.getVideoData();if(n!=null&&n.MP()){var O=this.api.j(),L=[],X="";if(!O.NQ){var F=Dq8(this);g.Bt(O)&&F?(L=q88(F.thumbnailDetails),F.album&&(X=PJ(F.album))):L=[{src:n.HG("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var x;((x=this.api.getVideoData())==null?0:x.G)&&k4i(this);EVk(this);Ntf(this);navigator.mediaSession.metadata=new MediaMetadata({title:n.title,artist:n.author,artwork:L,album:X});O=n=null;g.Mc(this.api)&&(n=function(){l.api.nextVideo()}, O=function(){l.api.previousVideo()}); k8("nexttrack",n);k8("previoustrack",O)}}; qD.prototype.oz=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var l=g.P("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),n=l.next();!n.done;n=l.next())k8(n.value,null);var O;((O=this.api.getVideoData())==null?0:O.G)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});KF.prototype.oz.call(this)};g.u(yF,KF);yF.prototype.L=function(l){return l.compositeEmbargo!==void 0}; yF.prototype.oz=function(){KF.prototype.oz.call(this);this.W.clear()};g.u(Y8i,KF);g.h=Y8i.prototype;g.h.queueOfflineAction=function(l,n,O,L){var X=this,F,x;return g.Y(function(Z){return Z.S==1?(F=Vk(X.api.dc()))?g.Q(Z,F.m_([l],n,O,L),3):Z.D2(2):Z.S!=2&&(x=Z.W,x.length)?Z.return(x[0]):Z.return(Promise.reject())})}; g.h.updateDownloadState=function(l,n){var O=Vk(this.api.dc());return O?O.updateDownloadState(l,n):Promise.reject()}; g.h.pauseVideoDownload=function(l){var n=Vk(this.api.dc());n&&n.Zp(l)}; g.h.resumeVideoDownload=function(l){var n=this,O;return g.Y(function(L){return(O=Vk(n.api.dc()))?L.return(O.BI(l)):L.return(Promise.reject())})}; g.h.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()}; g.h.refreshAllStaleEntities=function(l){l===void 0&&(l=14400);var n=Vk(this.api.dc());return n?n.refreshAllStaleEntities(l):Promise.reject()}; g.h.setUpPositionSyncInterval=function(l){var n=Vk(this.api.dc());n&&n.setUpPositionSyncInterval(l)};g.u(MD,KF);MD.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; MD.prototype.getAvailableQualityData=function(){var l=this.api.getVideoData();if(!l)return[];var n=[],O,L,X=(O=l.getPlayerResponse())==null?void 0:(L=O.playabilityStatus)==null?void 0:L.paygatedQualitiesMetadata;L=(X==null?void 0:X.qualityDetails)||[];O=new Map;O=g.Kv(L)&&!Array.isArray(L)?new Map(Object.entries(L)):new Map(L.map(function(x){return[x.key,x.value]})); if(L=X==null?void 0:X.restrictedAdaptiveFormats){X=[];L=g.P(L);for(var F=L.next();!F.done;F=L.next())F=F.value,F=XO(F.mimeType,F.quality,F.itag.toString(),F.width.toString(),F.height.toString(),F.qualityLabel),X.push(F);l=g.oY(l);rI(X);L=[];X=g.P(X);for(F=X.next();!F.done;F=X.next())F=F.value,HW(l,F,this.api.j().B)===!0&&L.push(F);n=n.concat(j69(L,!1,O))}l=this.api.C4();n=n.concat(j69(l,!0,O));O=[];if(this.api.J("web_player_enable_premium_hbr_in_h5_api"))return n=mqi(n),G40(n),n;l={};n=g.P(n);for(X= n.next();!X.done;X=n.next())X=X.value,L=X.quality,l[L]||(X.formatId=void 0,O.push(X),l[L]=!0);return O};var Tv={},JXD=(Tv["internal-error"]=-1,Tv["non-recoverable-error"]=-2,Tv["api-disabled-by-application"]=-3,Tv["invalid-argument"]=-4,Tv["token-provider-invalid"]=-5,Tv);g.u(QF,KF);QF.prototype.DO=function(l){var n=this;if(dqv())if(!this.W&&this.S){Bt7(this,l);try{this.S.then(function(){VZg(n,l)},function(O){eL(O,"player_update"); n.handleError(O,l)})}catch(O){eL(O,"player_update_catch"),this.handleError(O,l)}}else this.W?VZg(this,l):this.api.Sp("pf",{m:this.W?1:0, p:this.S?1:0})}; QF.prototype.handleError=function(l,n){g.d2(l);if(this.api.J("html5_enable_d6de4_cold_start_and_error")){var O=0;l.mediaIntegrityErrorName?O||(O=JXD[l.mediaIntegrityErrorName]):l.code&&(O=l.code());n.HU={qUF:{code:O}}}};g.u(Y8,g.f);Y8.prototype.y5=function(l){l=l?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":l,title:l});this.api.h2()}; Y8.prototype.onClick=function(){this.api.togglePictureInPicture()};g.u(jL,KF);jL.prototype.createButton=function(){var l=this;this.button=new Y8(this.api);g.c(this,this.button);this.api.On(this.button);this.events.U(this.api,"videodatachange",function(){cxf(l)}); cxf(this)}; jL.prototype.setDocumentPictureInPicture=function(l){this.api.F$().Ps(l);l=this.api.PQ();var n=fJq(this.api.dc());n&&(l?n.load():n.unload());this.api.publish("documentpictureinpicturechange")};g.u(iRe,KF);g.u(Iy,g.f);g.h=Iy.prototype;g.h.Li=function(){}; g.h.LK=function(){}; g.h.Q6=function(){return!0}; g.h.spp=function(){if(this.expanded){this.Of.show();var l=this.N.element.scrollWidth}else l=this.N.element.scrollWidth,this.Of.hide();this.Wk=this.Fi+l;g.wP(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.Fi:this.Wk)+"px";this.nf.start()}; g.h.ij=function(){this.badge.element.style.width=(this.expanded?this.Wk:this.Fi)+"px";this.Yo.start()}; g.h.f7=function(){this.L&&this.C.logVisibility(this.badge.element,this.Q6());this.Wm&&this.C.logVisibility(this.dismissButton.element,this.Q6()&&this.Sj())}; g.h.Jq=function(l){this.Q5=l;mr(this);GF(this);this.o7()}; g.h.KFq=function(){g.wP(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.h.Sj=function(){return this.NQ||this.Q5||!this.G}; g.h.o7=function(){this.Q6()?this.Y.show():this.Y.hide();this.f7()}; g.h.w4=function(){this.enabled=!1;this.o7()}; g.h.RK=function(l){l?this.Wm&&this.C.logClick(this.dismissButton.element):this.L&&this.C.logClick(this.badge.element)}; g.h.GEo=function(){this.o7()}; g.h.keF=function(l){this.JA=l===1;this.o7();g.wP(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.h.VzJ=function(){g.wP(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.C.isFullscreen());this.o7()};g.u(dr,g.Aj);dr.prototype.sZ=function(){this.publish("size-change")}; dr.prototype.focus=function(){this.content.focus()}; dr.prototype.Yn=function(){this.publish("back")};g.u(g.$8,dr);g.h=g.$8.prototype;g.h.yu=function(l,n){if(n===void 0?0:n)this.items.push(l),this.menuItems.element.appendChild(l.element);else{n=g.xd(this.items,l,S87);if(n>=0)return;n=~n;g.oA(this.items,n,0,l);Xg(this.menuItems.element,l.element,n)}l.subscribe("size-change",this.Hu,this);this.menuItems.publish("size-change")}; g.h.UP=function(l){l.unsubscribe("size-change",this.Hu,this);this.JG()||(g.vR(this.items,l),this.menuItems.element.removeChild(l.element),this.menuItems.publish("size-change"))}; g.h.Hu=function(){this.menuItems.publish("size-change")}; g.h.focus=function(){for(var l=0,n=0;n<this.items.length;n++){var O=this.items[n].element;if(O.getAttribute("role")==="menuitemradio"){if(O.getAttribute("aria-checked")==="true"){l=n;break}}else break}this.items[l].focus()}; g.h.vO=function(){return this.items.length};g.u(g.BL,g.V7);g.h=g.BL.prototype;g.h.show=function(){g.V7.prototype.show.call(this);this.r$()}; g.h.hide=function(){g.V7.prototype.hide.call(this);this.S.length>1&&g.iU(this)}; g.h.r$=function(){fqi(this);this.Qp&&(p8i(this),g.N4(this.element,this.size))}; g.h.eD=function(){var l=this.S.pop();s6i(this,l,this.S[this.S.length-1],!0)}; g.h.f$=function(l){if(!l.defaultPrevented)switch(l.keyCode){case 27:this.Te();l.preventDefault();break;case 37:this.S.length>1&&this.eD();l.preventDefault();break;case 39:l.preventDefault()}}; g.h.focus=function(){this.S.length&&this.S[this.S.length-1].focus()}; g.h.oz=function(){g.V7.prototype.oz.call(this);this.V&&this.V.dispose();this.T&&this.T.dispose()};g.u(zF,g.BL);zF.prototype.open=function(l,n){this.initialize(l.items)&&this.In(n,!!n)}; zF.prototype.initialize=function(l){g.VF(this.L1);if(l===void 0||l.length===0)return!1;var n=l.length;l=g.P(l);for(var O=l.next();!O.done;O=l.next())this.yu(O.value,n--);return!0}; zF.prototype.yu=function(l,n){l.menuNavigationItemRenderer?R47(this,l.menuNavigationItemRenderer,n):l.menuServiceItemRenderer&&C09(this,l.menuServiceItemRenderer,n)};g.u(SL,Iy);g.h=SL.prototype;g.h.Li=function(l){l.target!==this.dismissButton.element&&l.target!==this.overflowButton.element&&(this.RK(),this.onClickCommand&&this.C.lF("innertubeCommand",this.onClickCommand))}; g.h.LK=function(){this.enabled=!1;this.Y.hide()}; g.h.Q6=function(){return!!this.S&&this.enabled}; g.h.onVideoDataChange=function(l,n){this.M$(n);if(this.S){this.Ot();a:if(!this.isCounterfactual){var O,L,X;this.banner.update({title:(O=this.S)==null?void 0:O.title,subtitle:(L=this.S)==null?void 0:L.subtitle,metadata:(X=this.S)==null?void 0:X.metadataText});var F;this.onClickCommand=g.z((F=this.S)==null?void 0:F.onTap,VS);var x;if(l=g.z((x=this.S)==null?void 0:x.onOverflow,VS))this.T=g.z(l,hNO);var Z;if((Z=this.S)==null?0:Z.thumbnailImage){var J,w;x=((J=this.S)==null?void 0:(w=J.thumbnailImage)== null?void 0:w.sources)||[];if(x.length===0)break a;this.thumbnailImage.update({url:x[0].url})}else{var H;if((H=this.S)==null?0:H.thumbnailIconName){var A;this.thumbnailIcon.update({icon:(A=this.S)==null?void 0:A.thumbnailIconName})}}var b;this.shouldShowOverflowButton=!((b=this.S)==null||!b.shouldShowOverflowButton);var r;this.shouldHideDismissButton=!((r=this.S)==null||!r.shouldHideDismissButton)}var U;this.banner.element.setAttribute("aria-label",((U=this.S)==null?void 0:U.a11yLabel)||"");var W; this.Pm=(W=this.S)==null?void 0:W.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;vVi(this)}}; g.h.Lep=function(){this.isVisible=!0;vVi(this)}; g.h.C5q=function(){this.isVisible=!1;vVi(this)}; g.h.f7=function(){Iy.prototype.f7.call(this);this.W&&this.C.logVisibility(this.banner.element,this.isVisible)}; g.h.RK=function(){Iy.prototype.RK.call(this,!1);this.W&&this.C.logClick(this.banner.element)}; g.h.lw=function(l){this.V||(this.V=new zF(this.C),g.c(this,this.V));var n,O;if((n=this.T)==null?0:(O=n.menu)==null?0:O.menuRenderer)this.V.open(this.T.menu.menuRenderer,l.target),l.preventDefault()}; g.h.M$=function(){}; g.h.Ot=function(){}; g.h.oz=function(){this.C.cS("suggested_action_view_model");Iy.prototype.oz.call(this)};g.u(po,SL); po.prototype.M$=function(l){var n,O,L;this.productUpsellSuggestedActionViewModel=g.z((n=l.getWatchNextResponse())==null?void 0:(O=n.playerOverlays)==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.suggestedActionViewModel,kRD);var X;if((X=this.productUpsellSuggestedActionViewModel)==null?0:X.content){var F;this.S=g.z((F=this.productUpsellSuggestedActionViewModel)==null?void 0:F.content,odR)}var x,Z;if(this.W=!!((x=this.productUpsellSuggestedActionViewModel)==null?0:(Z=x.loggingDirectives)==null? 0:Z.trackingParams)){var J,w;this.C.setTrackingParams(this.banner.element,((J=this.productUpsellSuggestedActionViewModel)==null?void 0:(w=J.loggingDirectives)==null?void 0:w.trackingParams)||null)}var H;this.isCounterfactual=!((H=this.productUpsellSuggestedActionViewModel)==null||!H.isCounterfactualServing)}; po.prototype.Ot=function(){var l=[],n,O=g.P(((n=this.productUpsellSuggestedActionViewModel)==null?void 0:n.ranges)||[]);for(n=O.next();!n.done;n=O.next()){var L=n.value;L&&(n=Number(L.startTimeMilliseconds),L=Number(L.endTimeMilliseconds),isNaN(n)||isNaN(L)||l.push(new g.X4(n,L,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.C.RA(l)};g.u(lzk,KF);g.u(sa,KF);sa.prototype.onVideoDataChange=function(l,n){var O=this;if(!fN(n)&&(l==="newdata"&&OTk(this),this.W&&l==="dataloaded")){var L;Aw(Ly(this.api.j(),(L=this.api.getVideoData())==null?void 0:g.pN(L)),function(X){var F=F2e(X);F&&(F=g3q(O,O.S||F))&&O.api.setAudioTrack(F,!0);O.N&&(O.N=!1,hI9(O,X))})}}; sa.prototype.A2=function(){var l=this;if(g.yw(this.api.j())){var n,O=g.g7(this.api.j(),(n=this.api.getVideoData())==null?void 0:g.pN(n));return Aw(hw(O),function(L){var X=dj();$A(X,L);return l.api.A2(X)})}return hw(this.api.A2())};g.u(g.Ko,g.SR);g.h=g.Ko.prototype;g.h.open=function(){g.cL(this.C5,this.W)}; g.h.aN=function(l){ZTq(this);var n=this.options[l];n&&(n.element.setAttribute("aria-checked","true"),this.NP(this.e0(l)),this.N=l)}; g.h.Qr=function(l){g.VF(this.W);for(var n={},O=!1,L=0;L<l.length;L++){var X=l[L],F=this.options[X],x=X===this.N;x&&(O=!0);F&&F.priority===-L?(g.zM(this.options[X],this.e0(X,!0)),delete this.options[X]):F=this.Sd(X,-L,x);n[X]=F;this.W.yu(F,!0)}O||(this.N=null);l=g.P(Object.keys(this.options));for(O=l.next();!O.done;O=l.next())this.options[O.value].dispose();this.options=n}; g.h.Sd=function(l,n,O,L){var X=this;O={D:"div",gq:["ytp-menuitem",L?"ytp-menuitem-with-footer":""],Z:{tabindex:"0",role:"menuitemradio","aria-checked":O?"true":"false"},K:[{D:"div",gq:["ytp-menuitem-label"],hG:"{{label}}"}]};L&&(L={D:"div",X:"ytp-menuitem-footer",K:[L]},O.K?O.K.push(L):O.K=[L]);n=new g.SR(O,n,this.e0(l,!0));n.listen("click",function(){X.Lx(l)}); return n}; g.h.enable=function(l){this.G?l||(this.G=!1,this.MD(!1)):l&&(this.G=!0,this.MD(!0))}; g.h.MD=function(l){l?this.C5.yu(this):this.C5.UP(this)}; g.h.L2=function(l){this.publish("select",l)}; g.h.Lx=function(l){this.L2(l)}; g.h.e0=function(l){return l.toString()}; g.h.Oq=function(l){l.defaultPrevented||l.keyCode!==39||(this.open(),l.preventDefault())}; g.h.oz=function(){this.G&&this.C5.UP(this);g.SR.prototype.oz.call(this);for(var l=g.P(Object.keys(this.options)),n=l.next();!n.done;n=l.next())this.options[n.value].dispose()};g.u(Jb9,g.Ko);g.h=Jb9.prototype;g.h.y5=function(){var l=this.Xc("Off");this.C.getPresentingPlayerType()!==2?(wA7(this),this.aN(this.V),this.S&&(this.V===l?this.S="":this.setSleepTimerTimeLeft(this.S)),this.T&&this.setVideoTimeLeft(this.T),this.enable(!0)):(this.Qr([]),this.enable(!1))}; g.h.L2=function(l){HTe(this,l);this.C5.eD()}; g.h.Xc=function(l){switch(l){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(l.toString()+" Minutes").toLowerCase()}}; g.h.onVideoDataChange=function(l){l==="dataloaded"&&wA7(this)}; g.h.IZ3=function(l){this.C.logVisibility(this.element,l)}; g.h.onClick=function(){this.C.logClick(this.element)}; g.h.resetSleepTimerMenuSettings=function(){HTe(this,this.Xc("Off"))}; g.h.setSleepTimerTimeLeft=function(l){this.S=l;this.NP(l)}; g.h.setVideoTimeLeft=function(l){this.T=l;this.L.NP(l)};g.u(ay,KF);ay.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; ay.prototype.setSleepTimerTimeLeft=function(l){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(l)}; ay.prototype.setVideoTimeLeft=function(l){this.menuItem&&this.menuItem.setVideoTimeLeft(l)};g.u(Ab0,KF);g.u(g.Co,g.hj);g.h=g.Co.prototype;g.h.U=function(l,n){this.L.U(this.G,l,n,void 0,!this.S)}; g.h.cancel=function(){this.N&&(this.N=!1,this.publish("dragend",0,0,null));this.W&&(this.W=!1,this.publish("hoverend",0,0,null),tH(this),Ry(this))}; g.h.mU=function(l){tH(this);this.U(vL("move"),this.Td);this.U(vL("out"),this.Ml);this.U("touchstart",this.Cx);this.S&&this.U(vL("down"),this.Dk);var n=l.target;l=new g.AR(l.pageX,l.pageY);this.W=!0;this.publish("hoverstart",l.x,l.y,n);this.publish("hovermove",l.x,l.y,n)}; g.h.Td=function(l){var n=l.target;l=new g.AR(l.pageX,l.pageY);if(this.B){var O=this.B;this.B=null;if(O.relatedTarget===n&&bf(new g.AR(O.pageX,O.pageY),l))return}this.publish("hovermove",l.x,l.y,n)}; g.h.Ml=function(l){var n=new g.AR(l.pageX,l.pageY),O=l.relatedTarget;try{if(O&&g.Fg(this.target,O)){this.B=l;this.publish("hovermove",n.x,n.y,O);return}}catch(L){}tH(this);Ry(this);this.W=!1;this.publish("hoverend",n.x,n.y,O)}; g.h.EPz=function(l){this.mU(l);this.Dk(l)}; g.h.Dk=function(l){if(typeof l.button!=="number"||l.button===0){tH(this);this.L.U(l0(l.target),vL("move"),this.z6f);this.L.U(l0(l.target),vL("up"),this.ZT);var n=l.target;if(g.CJ)this.U("dragstart",this.CQ);else if(l.preventDefault(),(g.tt||AS)&&n)a:{for(var O=n;O;){if(FPe(O)||O.getAttribute("tabindex")==="-1"){O.focus();break a}O=O.parentElement}l0(n).activeElement.blur()}this.N=!0;l=new g.AR(l.pageX,l.pageY);this.publish("dragstart",l.x,l.y,n);this.publish("dragmove",l.x,l.y,n)}}; g.h.CQ=function(l){l.preventDefault()}; g.h.z6f=function(l){var n=l.target;n===l0(l.target)&&(n=null);l=new g.AR(l.pageX,l.pageY);this.publish("hovermove",l.x,l.y,n);this.publish("dragmove",l.x,l.y,n)}; g.h.ZT=function(l){tH(this);this.N=!1;var n=kT(l),O=l.target;l=new g.AR(l.pageX,l.pageY);n&&g.Fg(this.target,n)?(this.U(vL("move"),this.Td),this.U(vL("out"),this.Ml),this.U(vL("down"),this.Dk),this.U("touchstart",this.Cx),this.publish("dragend",l.x,l.y,O)):(Ry(this),this.W=!1,this.publish("dragend",l.x,l.y,O),this.publish("hoverend",l.x,l.y,O))}; g.h.Cx=function(l){var n=l.changedTouches[0];n&&(tH(this),this.Y||(this.U("touchmove",this.TZ5),this.U("touchend",this.t0),this.U("touchcancel",this.t0),this.V=n.identifier,l=l.target,this.W||(this.W=!0,this.publish("hoverstart",n.pageX,n.pageY,l)),this.publish("hovermove",n.pageX,n.pageY,l),this.S&&(this.N=!0,this.publish("dragstart",n.pageX,n.pageY,l),this.publish("dragmove",n.pageX,n.pageY,l))))}; g.h.TZ5=function(l){var n=bTi(this,l);n&&(this.S&&l.preventDefault(),l=l.target,this.publish("hovermove",n.pageX,n.pageY,l),this.S&&this.publish("dragmove",n.pageX,n.pageY,l))}; g.h.t0=function(l){var n=bTi(this,l);if(n){tH(this);Ry(this);this.W=!1;var O=l.target;this.S&&(this.T||l.preventDefault(),this.N=!1,this.publish("dragend",n.pageX,n.pageY,O));this.publish("hoverend",n.pageX,n.pageY,O)}}; g.h.oz=function(){this.S&&(g.CJ&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");tH(this);g.hj.prototype.oz.call(this)}; var rb7=!1;g.u(U27,g.f);U27.prototype.CM=function(){g.HH(this.element,"display","none");this.C.logVisibility(this.S,!1)};g.u(O8,KF);O8.prototype.NQ=function(l,n){this.JG()||(this.G=[l,n],this.S.subscribe("dragmove",this.V,this),this.S.subscribe("dragend",this.B,this),this.N||g.lx(this.delay))}; O8.prototype.Cf=function(){if(this.L){this.N=!0;this.Lf=this.api.getPlaybackRate();this.z3=this.api.getPlayerStateObject().isPaused();var l=this.speedmasterUserEdu;g.HH(l.element,"display","");l.C.logVisibility(l.S,!0);this.api.setPlaybackRate(this.Hm);this.api.hideControls();this.api.playVideo();this.T&&(this.T.xf=!0);this.Wm&&(this.Wm.Qk=!0)}}; O8.prototype.V=function(l,n){if(!this.N){l=[l,n];var O=this.G;O&&l&&O.length===2&&l.length===2?(n=Math.abs(O[0]-l[0]),O=Math.abs(O[1]-l[1]),n=Math.sqrt(n*n+O*O)):n=-1;n<this.Q5?this.G=l:gt(this)}}; O8.prototype.B=function(){gt(this)};g.u(Pqa,KF);Pqa.prototype.onVideoDataChange=function(l){l==="newdata"&&this.api.dc().createSubtitlesModuleIfNeeded()};g.u(LR,g.mi);LR.prototype.preventDefault=function(){g.mi.prototype.preventDefault.call(this);this.S&&this.S.preventDefault()}; LR.prototype.stopPropagation=function(){g.mi.prototype.stopPropagation.call(this);this.S&&this.S.stopPropagation()};g.u(g.o6,lL);g.h=g.o6.prototype;g.h.gp=function(){return!0}; g.h.isView=function(){return!1}; g.h.E3=function(){return!1}; g.h.De=function(){return this.S}; g.h.m5=function(){return this.S.src}; g.h.l9=function(l){var n=this.getPlaybackRate();this.S.src=l;this.setPlaybackRate(n)}; g.h.qe=function(){this.S.removeAttribute("src")}; g.h.getPlaybackRate=function(){try{return this.S.playbackRate>=0?this.S.playbackRate:1}catch(l){return 1}}; g.h.setPlaybackRate=function(l){this.getPlaybackRate()!==l&&(this.S.playbackRate=l);return l}; g.h.hS=function(){return this.S.loop}; g.h.setLoop=function(l){this.S.loop=l}; g.h.canPlayType=function(l,n){return this.S.canPlayType(l,n)}; g.h.isPaused=function(){return this.S.paused}; g.h.isSeeking=function(){return this.S.seeking}; g.h.isEnded=function(){return this.S.ended}; g.h.F5=function(){return this.S.muted}; g.h.pc=function(l){d0();this.S.muted=l}; g.h.Ew=function(){return this.S.played||FO([],[])}; g.h.NJ=function(){try{var l=this.S.buffered}catch(n){}return l||FO([],[])}; g.h.pO=function(){return this.S.seekable||FO([],[])}; g.h.S4=function(){var l=this.S;return l.getStartDate?l.getStartDate():null}; g.h.getCurrentTime=function(){return this.S.currentTime}; g.h.setCurrentTime=function(l){this.S.currentTime=l}; g.h.getDuration=function(){return this.S.duration}; g.h.load=function(){var l=this.S.playbackRate;try{this.S.load()}catch(n){}this.S.playbackRate=l}; g.h.pause=function(){this.S.pause()}; g.h.play=function(){var l=this.S.play();if(!l||!l.then)return null;l.then(void 0,function(){}); return l}; g.h.R_=function(){return this.S.readyState}; g.h.Pc=function(){return this.S.networkState}; g.h.K2=function(){return this.S.error?this.S.error.code:null}; g.h.gB=function(){return this.S.error?this.S.error.message:""}; g.h.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var l=this.S,n=l.webkitDroppedFrameCount;if(l=l.webkitDecodedFrameCount)return{droppedVideoFrames:n||0,totalVideoFrames:l}}return{}}; g.h.zE=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless}; g.h.Yc=function(){return!!this.S.webkitShowPlaybackTargetPicker()}; g.h.togglePictureInPicture=function(){var l=this.S,n=window.document;window.document.pictureInPictureEnabled?this.S!==n.pictureInPictureElement?l.requestPictureInPicture():n.exitPictureInPicture():Ib()&&l.webkitSetPresentationMode(l.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.h.PX=function(){var l=this.S;return new g.AR(l.offsetLeft,l.offsetTop)}; g.h.getSize=function(){return g.D2(this.S)}; g.h.setSize=function(l){g.N4(this.S,l)}; g.h.getVolume=function(){return this.S.volume}; g.h.setVolume=function(l){d0();this.S.volume=l}; g.h.WF=function(l){this.B[l]||(this.S.addEventListener(l,this.listener),this.B[l]=this.listener)}; g.h.setAttribute=function(l,n){this.S.setAttribute(l,n)}; g.h.removeAttribute=function(l){this.S.removeAttribute(l)}; g.h.hasAttribute=function(l){return this.S.hasAttribute(l)}; g.h.nh=Oi(56);g.h.Nc=Oi(58);g.h.s$=Oi(60);g.h.dT=Oi(62);g.h.TV=function(){return TK(this.S)}; g.h.hE=function(l){g.FW(this.S,l)}; g.h.o8=function(l){return g.bE(this.S,l)}; g.h.jM=function(){return g.Fg(document.body,this.S)}; g.h.audioTracks=function(){var l=this.S;if("audioTracks"in l)return l.audioTracks}; g.h.oz=function(){for(var l=g.P(Object.keys(this.B)),n=l.next();!n.done;n=l.next())n=n.value,this.S.removeEventListener(n,this.B[n]);lL.prototype.oz.call(this)}; g.h.l7=function(l){this.S.disableRemotePlayback=l};g.u(FR,g.f);g.u(hx,g.f);hx.prototype.show=function(){g.f.prototype.show.call(this);this.y5();this.iF.J("html5_enable_moving_s4n_window")&&g.yw(this.iF.j())&&this.G()}; hx.prototype.hide=function(){g.f.prototype.hide.call(this);this.delay.stop();this.L.stop()}; hx.prototype.y5=function(){var l=(0,g.Q_)(),n=W2i(this.iF);xV(this.S,n.bandwidth_samples);xV(this.T,n.network_activity_samples);xV(this.N,n.live_latency_samples);xV(this.W,n.buffer_health_samples);var O={};n=g.P(Object.entries(n));for(var L=n.next();!L.done;L=n.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;this.Y[L]!==X&&(O[L]=" "+String(X));this.Y[L]=X}this.update(O);l=(0,g.Q_)()-l>25?5E3:500;this.delay.start(l)}; hx.prototype.G=function(){this.V?(this.position+=1,this.position>15&&(this.V=!1)):(--this.position,this.position<=0&&(this.V=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.L.start(2E4)};g.u(D2e,KF);g.u(Zq,g.V);Zq.prototype.S=function(){var l=(0,g.Q_)()-this.startTime;l=l<this.duration?l/this.duration:1;this.W(DW(wOR,l));l<1&&this.delay.start()}; var wOR=new No(0,0,.4,0,.2,1,1,1),eIv=/[0-9.-]+|[^0-9.-]+/g;g.u(Jx,g.f);Jx.prototype.onClick=function(){var l=this.api.app;var n=l.J("web_log_theater_mode_visibility")?!l.XP():!l.k9;l.iF.lF("SIZE_CLICKED",n);this.api.logClick(this.element)}; Jx.prototype.y5=function(){this.vk(this.api.b3()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Qp){var l=this.api.XP();this.XP!==l&&this.b1(l)}this.api.logVisibility(this.element,this.Qp)}; Jx.prototype.b1=function(l){var n=l?{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.XP==null?this.updateValue("icon",n):QX0(this.transition,this.element, n);this.XP=l;n=g.Nc(this.api,"Default view","t");var O=g.Nc(this.api,"Theater mode","t");this.updateValue("title",l?n:O);this.update({"data-title-no-tooltip":l?"Default view":"Theater mode"});this.api.h2()};g.u(YXf,KF);g.u(m27,KF);g.h=m27.prototype;g.h.onVideoDataChange=function(l){this.lV();this.videoId=l.videoId;this.W=this.S=void 0;this.timelyActions=Gif(l);Izk(this);this.clearTimeout();this.RA()}; g.h.gt=function(l){var n=l.oldState,O=l.state,L=O.seekSource;!g.K(n,16)&&g.K(O,16)?this.tf(L!=null?L:void 0):g.K(n,16)&&!g.K(O,16)&&this.wx();l=l.state;l=!l.isCued()&&!g.K(l,1024);this.N.vk(l)}; g.h.RA=function(){var l=this.PT();l&&this.api.RA(l)}; g.h.lV=function(){this.api.cS("timelyAction",1);if(this.S!==void 0)this.onCueRangeExit(this.S)}; g.h.PT=function(){if(this.timelyActions){for(var l=[],n=g.P(this.timelyActions),O=n.next();!O.done;O=n.next())O=O.value,O=O.startTimeMilliseconds!=null&&O.endTimeMilliseconds!=null&&O.cueRangeId!=null?new g.X4(Number(O.startTimeMilliseconds),Number(O.endTimeMilliseconds),{id:O.cueRangeId,namespace:"timelyAction"}):void 0,O&&l.push(O);return l}}; g.h.onCueRangeEnter=function(l){var n=wt(this,l);n&&this.L[l]!==void 0&&(n.maxShowCount===void 0||(n==null?void 0:n.maxShowCount)>this.L[l])&&(this.S=l,$2g(this))}; g.h.onCueRangeExit=function(l){var n=d2a(this,l);n&&this.S===l&&this.api.lF("innertubeCommand",n);this.clearTimeout();this.S=void 0}; g.h.onTimeout=function(l){this.S!==void 0&&(l==null?void 0:l.cueRangeId)===this.S&&(l=d2a(this,this.S))&&this.api.lF("innertubeCommand",l)}; g.h.tf=function(l){this.W=l}; g.h.wx=function(){$2g(this);this.W=void 0}; g.h.setTimeout=function(l){var n=this,O=Number(l==null?void 0:l.maxVisibleDurationMilliseconds);O&&(this.clearTimeout(),this.B=setTimeout(function(){n.onTimeout(l)},O))}; g.h.clearTimeout=function(){this.B&&clearTimeout(this.B);this.B=void 0}; g.h.oz=function(){this.timelyActions=this.W=this.S=this.videoId=void 0;this.L={};this.lV();this.clearTimeout();KF.prototype.oz.call(this)};g.u(cbe,KF);var W5={},t2a=(W5[1]="pot_ss",W5[2]="pot_sf",W5[3]="pot_se",W5[4]="pot_xs",W5[5]="pot_xf",W5[6]="pot_xe",W5),v3g=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.u(b0,KF);b0.prototype.oz=function(){this.V&&(g.Tj(this.V),this.V=void 0);KF.prototype.oz.call(this)}; b0.prototype.uP=function(){(this.S?!this.S.isReady():this.W)&&U8(this)}; b0.prototype.KM=function(l,n,O){var L=this;if(zI7(l)){var X=O||"",F;if((F=this.S)==null?0:F.isReady())n=u0(this,X),SXi(l,n);else{var x=new g.U_;n.push(x.promise);this.L.promise.then(function(){var Z=u0(L,X);SXi(l,Z);x.resolve()})}}}; b0.prototype.QD=function(l){var n=this;if(this.S||this.W)l.ej=u0(this,l.videoId),this.S&&!this.S.isReady()&&(this.N=new v6,this.L.promise.then(function(){n.ze.iQ("pot_if");l.ej=u0(n,l.videoId)}))};g.u(n1e,KF);g.u(P8,g.V);P8.prototype.S=function(){for(var l=g.P(g.eq.apply(0,arguments)),n=l.next();!n.done;n=l.next())(n=n.value)&&this.features.push(n)}; P8.prototype.oz=function(){for(var l=this.features.length-1;l>=0;l--)this.features[l].dispose();this.features.length=0;g.V.prototype.oz.call(this)};T4.prototype.nW=function(){this.W=(0,g.Q_)()}; T4.prototype.reset=function(){this.S=this.W=NaN}; T4.prototype.Oi=function(l,n){if(l.clientPlaybackNonce&&!isNaN(this.S)){if(Math.random()<.01){n=n?"pbp":"pbs";var O={startTime:this.S};l.V&&(O.cttAuthInfo={token:l.V,videoId:l.videoId});S$("seek",O);g.zp({clientPlaybackNonce:l.clientPlaybackNonce},"seek");isNaN(this.W)||iD("pl_ss",this.W,"seek");iD(n,(0,g.Q_)(),"seek")}this.reset()}};g.h=Osg.prototype;g.h.reset=function(){V9(this.timerName)}; g.h.tick=function(l,n){iD(l,n,this.timerName)}; g.h.iQ=function(l){return sg(l,this.timerName)}; g.h.fK=function(l){MI(l,void 0,this.timerName)}; g.h.infoGel=function(l){g.zp(l,this.timerName)};g.u(o15,g.hj);g.h=o15.prototype;g.h.FK=function(l){return this.loop||!!l||this.index+1<this.length}; g.h.DE=function(l){return this.loop||!!l||this.index-1>=0}; g.h.setShuffle=function(l){this.shuffle=l;l=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var n=0;n<this.items.length;n++)this.order.push(n);this.index=l;this.W++;if(this.shuffle){l=this.order[this.index];for(n=1;n<this.order.length;n++){var O=Math.floor(Math.random()*(n+1)),L=this.order[n];this.order[n]=this.order[O];this.order[O]=L}for(n=0;n<this.order.length;n++)this.order[n]===l&&(this.index=n);this.W++}this.publish("shuffle")}; g.h.HG=function(l){l=l||"hqdefault.jpg";var n=this.Y[l];if(n||this.rq.NQ||l==="sddefault.jpg"||l==="hq720.jpg"||l==="maxresdefault.jpg")return n;if(this.N.length)return pw(this.rq,this.N[0],l)}; g.h.getLength=function(){return this.length}; g.h.findIndex=function(l){if(l&&(l=l.videoId,!this.items[this.index]||this.items[this.index].video_id!==l))for(var n=0;n<this.items.length;n++)if(this.items[n].video_id===l){this.index=n;break}}; g.h.onReady=function(l){this.S=l;this.loaded&&g.U0(this.S,0)}; g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null}; g.h.XK=function(){return this.rq.getVideoUrl(g.E8(this).videoId,this.getPlaylistId())}; g.h.oz=function(){this.S=null;g.ZL(this.items);g.hj.prototype.oz.call(this)};var Nq=new Map;g.u(g.qq,g.hj);g.h=g.qq.prototype;g.h.create=function(){}; g.h.load=function(){this.loaded=!0}; g.h.unload=function(){this.loaded=!1}; g.h.oN=function(){}; g.h.NR=function(){return!0}; g.h.oz=function(){this.loaded&&this.unload();g.hj.prototype.oz.call(this)}; g.h.sC=function(){return{}}; g.h.getOptions=function(){return[]};g.u(g.yk,g.V);g.h=g.yk.prototype;g.h.Ns=Oi(65);g.h.oK=function(){}; g.h.H$=function(){}; g.h.jk=function(){return""}; g.h.dW=Oi(66);g.h.KM=function(l,n){var O=this;if(this.iF.j().J("html5_dispatch_tracklist_loaded_event")){this.L&&(this.L.reject(),this.L=null);var L=[];this.iF.publish("trackListLoaded",this.W,L,n);L.length?(n=new g.U_,n.promise.then(l.KM,function(){}),this.L=n,Promise.all(L).then(n.resolve,n.reject).finally(function(){O.L=null})):l.KM()}else l.KM()}; g.h.Oe=function(){}; g.h.oz=function(){this.L&&(this.L.reject(),this.L=null);this.H$();g.V.prototype.oz.call(this)};g.u(g.Mq,g.yk);g.Mq.prototype.Ns=Oi(64);g.Mq.prototype.oK=function(l){if(this.audioTrack)for(var n=g.P(this.audioTrack.captionTracks),O=n.next();!O.done;O=n.next())g.kV(this.W,O.value);this.KM(l,this.videoData.videoId)}; g.Mq.prototype.jk=function(l,n){var O=l.Ae(),L={fmt:n};if(n==="srv3"||n==="3"||n==="json3")g.s0()?Object.assign(L,{xorb:2,xobt:1,xovt:1}):Object.assign(L,{xorb:2,xobt:3,xovt:3});l.translationLanguage&&(L.tlang=g.bQ(l));this.N&&(L.xosf="1");Object.assign(L,this.iF.j().S);return FX(O,L)}; g.Mq.prototype.H$=function(){this.S&&this.S.abort()};g.HU0=new Map;g.u(g.eZ,g.yk);g.eZ.prototype.Ns=Oi(63); g.eZ.prototype.oK=function(l){var n=this,O=this.N,L={type:"list",tlangs:1,v:this.videoId,vssids:1};this.zi&&(L.asrs=1);O=FX(O,L);this.H$();this.S=g.yA(O,{format:"RAW",onSuccess:function(X){n.S=null;if((X=X.responseXML)&&X.firstChild){for(var F=X.getElementsByTagName("track"),x=0;x<F.length;x++){var Z=F[x],J=Z.getAttribute("lang_code"),w=Z.getAttribute("lang_translated"),H=Z.getAttribute("name"),A=Z.getAttribute("kind"),b=Z.getAttribute("id"),r=Z.getAttribute("lang_default")==="true",U=Z.getAttribute("cantran")=== "true";Z=Z.getAttribute("vss_id");g.kV(n.W,new g.w7({languageCode:J,languageName:w,name:H,kind:A,id:b,is_servable:!0,is_translateable:U,vss_id:Z,is_default:r}))}X=X.getElementsByTagName("target");F=X.length;for(x=0;x<F;x++)J={languageCode:X[x].getAttribute("lang_code"),languageName:X[x].getAttribute("lang_translated"),languageOriginal:X[x].getAttribute("lang_original"),id:X[x].getAttribute("id"),isDefault:X[x].getAttribute("lang_default")==="true"},n.V[J.languageCode]=J.languageName,n.B.push(J)}n.KM(l, n.videoId)}, withCredentials:!0})}; g.eZ.prototype.jk=function(l,n){var O=this.N;n={v:this.videoId,type:"track",lang:l.languageCode,name:l.getName(),kind:l.kind,fmt:n};var L=this.iF.j();L.J("captions_url_add_ei")&&(n.ei=this.eventId);l.translationLanguage&&(n.tlang=g.bQ(l));Object.assign(n,L.S);return O=FX(O,n)}; g.eZ.prototype.H$=function(){this.S&&this.S.abort()};u0v.prototype.N=function(){for(var l=g.eq.apply(0,arguments),n=this,O=Jw("empty"),L=[],X={Y5:0};X.Y5<this.W.length&&O.currentState!=="done";X={F1:void 0,Y5:X.Y5},X.Y5++)X.F1=this.W[X.Y5],X.F1.condition.apply(X.F1,g.E(l))&&(O=bo(bo(O,function(F){return function(){if(!F.F1.condition.apply(F.F1,g.E(l)))throw"condition failed";var x=F.F1.L4.apply(F.F1,g.E(l));return n.S===void 0||n.S===null?x:Aw(hw(x),function(Z){if(!n.S.apply(n,[Z].concat(g.E(l))))throw"verification failed";return Z})}}(X)),function(F){return function(x){x!== "empty"&&x!=="condition failed"&&x!=="verification failed"&&x!=="error"&&(F.F1.onFailure&&F.F1.onFailure.apply(F.F1,[x].concat(g.E(l))),n.onFailure&&n.onFailure.apply(n,[x, F.Y5,F.F1].concat(g.E(l))),L.push(x));throw"error";}}(X))); return bo(O,function(){return Jw(L)})};jZ.prototype.preload=function(l){l=l?Pw9(this.capabilities,l):this.capabilities;return l.DZ?Aw(E15(this,l),function(){}):hw()}; jZ.prototype.compile=function(l){return bo(this.B.N(l),function(n){throw Error("wasm module compile failure: "+n.map(function(O){return O.message}).join(", "),{cause:n}); })}; jZ.prototype.instantiate=function(l,n){return bo(this.V.N(l,n),function(O){throw Error("wasm module instantiation failure: "+O.map(function(L){return L.message}).join(", "),{cause:O}); })};kGa.prototype.emscripten_notify_memory_growth=function(){};var NNi;g.h=Md5.prototype;g.h.malloc=function(l){return this.S.malloc(l)}; g.h.free=function(l){this.S.free(l)}; g.h.realloc=function(l,n){return this.S.realloc(l,n)}; g.h.va=function(l){if(l.buffer!==this.exports.memory.buffer){var n=this.malloc(l.byteLength);n=new Uint8Array(this.exports.memory.buffer,n,l.byteLength);n.set(l);return n}}; g.h.tR=function(l){if(l.buffer===this.exports.memory.buffer){var n=l.slice();this.free(l.byteOffset);return n}}; var Fj5="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);YV.Nl(Md5,{va:function(l){return{profile:"copyj2w",qR:l===void 0?0:Math.ceil(l.byteLength/16)}}, tR:function(l){return{profile:"copyw2j",qR:l===void 0?0:Math.ceil(l.byteLength/16)}}});g.u(Ym8,g.V);g.h=Ym8.prototype;g.h.createSubtitlesModuleIfNeeded=function(){IJq(this)&&ml(this,"captions");return!!g.G4(this)}; g.h.Rj=function(){return g.fy(this.C.getVideoData())&&!this.C.KF().N}; g.h.nY=function(){return this.C.getVideoData().nY()}; g.h.hO=function(){return this.C.getVideoData().hO()}; g.h.BE=function(){var l=this.ri.get("heartbeat");ml(this,"heartbeat",!1,!0,this.BE);!l&&this.ri.has("heartbeat")&&this.C.publish("offlineslatestatechange")}; g.h.j4=function(){ml(this,"annotations_module",!0,void 0,this.j4);var l=this.ri.get("annotations_module");if(l)for(var n in this.N)if(this.N.hasOwnProperty(n)){var O=n;l.subscribe(O,this.N[O])}}; g.h.Fe=function(){if(!this.ri.get("ad"))try{jx0(this)?ml(this,"ad",!1,!0,this.Fe):this.C.T1("ad")}catch(l){this.C.T1("ad"),g.Ir(l)}}; g.h.GE=function(){return this.W}; g.h.Kz=function(){var l={},n=g.G4(this);n&&Object.assign(l,n.Kz());return l}; g.h.ql=function(l,n){Object.assign(this.W,l||null);Object.assign(this.ID,n||null)}; g.h.onVideoDataChange=function(){var l=this.C.getVideoData();this.C.J("enable_wn_infocards")&&g.j4(l)&&!g.B8(this)&&this.j4()}; g.h.oz=function(){g.V.prototype.oz.call(this);I6(this,1,!0);for(var l=g.P(Object.entries(RMk)),n=l.next();!n.done;n=l.next()){var O=g.P(n.value);n=O.next().value;O=O.next().value;this.L.has(O)&&Nq.delete(n)}this.L.clear()}; var Es={},RMk=(Es.ad="ad.js",Es.annotations_module="annotations_module.js",Es.asmjs="asmjs.js",Es.creatorendscreen="annotations_module.js",Es.embed="embed.js",Es.endscreen="endscreen.js",Es.heartbeat="heartbeat.js",Es.kids="kids.js",Es.remote="remote.js",Es.miniplayer="miniplayer.js",Es.offline="offline.js",Es.captions="captions.js",Es.unplugged="unplugged.js",Es.ux="ux.js",Es.webgl="webgl.js",Es.ypc="ypc.js",Es.ypc_clickwrap="ypc_clickwrap.js",Es.yto="yto.js",Es),pl7="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.u(td5,g.hj);g.h=td5.prototype;g.h.Yi=function(l){l=new g.AR(l.pageX,l.pageY);if(!bf(l,this.L)){var n=2;this.V&&(n|=8);this.L=l;i0(this,n,!0)}}; g.h.q_o=function(){this.V&&i0(this,8,!0);i0(this,2,!1)}; g.h.mU=function(l){var n=new g.AR(l.pageX,l.pageY);bf(n,this.L)||(this.L=n,(l=l.target)&&this.aD(l)&&(i0(this,4,!0),this.S.EC(this.N),this.N=this.S.U(this.target,"mouseover",this.Ml),this.T=this.S.U(this.target,"mouseout",this.Ml)))}; g.h.Ml=function(l){l=l.relatedTarget;l&&this.aD(l)||(this.L=new g.AR(NaN,NaN),v10(this))}; g.h.KJF=function(){i0(this,1,!0)}; g.h.xZ=function(l){l=l.target;l instanceof Element&&!(l.tabIndex>0)||i0(this,1,!0)}; g.h.Xd=function(){this.V=!0;this.S.EC(this.B);this.B=this.S.U(document,"mouseup",this.xs)}; g.h.xs=function(){this.V=!1;i0(this,8,!1);this.S.EC(this.B);this.B=this.S.U(this.target,"mousedown",this.Xd)}; g.h.yj=function(l){if(l=(l=l.changedTouches)&&l[0])this.Q5=l.identifier,this.S.EC(this.G),this.G=this.S.U(this.target,"touchend",this.u4,void 0,!0),i0(this,1024,!0)}; g.h.u4=function(l){if(l=l.changedTouches)for(var n=0;n<l.length;n++){var O=l[n];if(O.identifier===this.Q5){var L=O;break}}L&&(this.S.EC(this.G),this.G=this.S.U(this.target,"touchstart",this.yj,void 0,!0),i0(this,1024,!1))}; g.h.lA=function(){i0(this,2,!0)}; g.h.resize=function(){g.G2&&v10(this)}; g.h.toString=function(){return g.hj.prototype.toString.call(this)};g.u(g.SZ,g.f);g.h=g.SZ.prototype;g.h.nTf=function(){this.y5()}; g.h.y5=function(){var l=this.api.getVideoData(),n=this.api.j(),O=!!this.api.isEmbedsShortsMode();g.wP(this.element,"ytp-shorts-mode",O);O?n=[{D:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},K:[{D:"path",Z:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z", fill:"#f00","fill-rule":"evenodd"}},{D:"path",Z:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.l4(l)?n=[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},K:[{D:"path",X:"ytp-dni-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:l.hh&&l.YG?n=[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",X:"ytp-dni-large-play-button-bg", Z:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{D:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:n.V?(g.wP(this.element,"ytp-touch-device",n.W),n=[n.V?{D:"svg",Z:{height:"100%",version:"1.1", viewBox:"0 0 60 60",width:"100%"},K:[{D:"path",X:"ytp-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",X:"ytp-large-play-button-bg",Z:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#212121","fill-opacity":"0.8"}},{D:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):n=[{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",X:"ytp-large-play-button-bg",Z:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#f03"}},{D:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",n);l.hh&&l.YG&&this.mJ("ytp-dni-large-play-button-bg").setAttribute("fill",l.YG?l.YG:"#1f1f1f")}; g.h.show=function(){g.f.prototype.show.call(this);this.api.j().J("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)}; g.h.lx=function(){this.api.getVideoData().mutedAutoplay||(this.api.Ft(),this.api.playVideo())}; g.h.Ixo=function(l){this.api.getVideoData().mutedAutoplay||l.preventDefault()};g.u(g.pR,g.f);g.h=g.pR.prototype;g.h.show=function(){var l=this;this.Qp||(this.N.U(this.api,"videodatachange",function(){g.lx(l.S)}),this.N.U(this.api,"videoplayerreset",function(){g.lx(l.S)})); g.f.prototype.show.call(this)}; g.h.hide=function(){this.N&&g.eU(this.N);g.f.prototype.hide.call(this)}; g.h.x4=function(){g.lx(this.S)}; g.h.onStateChange=function(){g.lx(this.S)}; g.h.L13=function(){g.lx(this.S)}; g.h.onReset=function(){this.fade.stop();this.hide();g.lx(this.S)}; g.h.y5=function(){var l=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(l.isPlaying()||l.isPaused()))var n=!0;else(n=this.api.dc().ri.get("ypc"))&&n.fE?n=!0:(n=this.api.j(),n=g.K(l,2)&&g.qc(this.api)&&n.Zx?!0:!1);n?(n=!0,this.W.hide()):this.api.J("web_player_show_frame_zero_when_cued")&&lHa(this)?(n=!0,this.W.hide()):(this.W.show(),n=l.isCued()&&this.api.getPresentingPlayerType()!==2||g.K(l,2)&&!g.qc(this.api)&&!this.api.IT()||g.K(l,1024)?!0:!1);var O=this.api.getVideoData(); n&&!O.OJ?(this.fade.show(),this.l9Q(this.api.getPlaylist(),O)):(this.fade.hide(),g.K(l,1)||this.fade.stop())}; g.h.l9Q=function(){var l=g.eq.apply(0,arguments),n=this.api.j(),O,L=(O=this.api.getVideoData())==null?void 0:O.videoId;if(n.J("web_player_show_frame_zero_when_cued")&&L&&lHa(this))var X="https://i.ytimg.com/vi/"+L+"/frame0.jpg";else for(l=g.P(l),O=l.next();!O.done;O=l.next())if(O=O.value,!(!O||O instanceof g.z8&&!O.videoId)){X=this.api.xP().getPlayerSize();var F=g.Kw();L=X.width*F;F*=X.height;if(L>1280||F>720)if(X=O.HG("maxresdefault.jpg"))break;if(L>640||F>480)if(X=O.HG("maxresdefault.jpg"))break; if(L>320||F>180)if(X=O.HG("sddefault.jpg")||O.HG("hqdefault.jpg")||O.HG("mqdefault.jpg"))break;if(X=O.HG("default.jpg"))break}g.Cw(n)&&(n=new Image,n.addEventListener("load",function(){nj5()}),n.src=X?X:"",this.api.GE().tick("ftr")); this.L.style.backgroundImage=X?"url("+X+")":""};g.u(g.s8,g.f);g.s8.prototype.resize=function(){}; g.s8.prototype.W=function(l){var n=this;this.N=!1;gvi(this);var O=l.Nx,L=this.api.j();O!=="GENERIC_WITHOUT_LINK"||L.V?O==="TOO_MANY_REQUESTS"?(L=this.api.getVideoData(),this.NP(a6(this,"TOO_MANY_REQUESTS_WITH_LINK",L.XK(),void 0,void 0,void 0,!1))):O!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||L.V?this.api.j().J("html5_enable_bandaid_error_screen")&&O==="HTML5_SPS_UMP_STATUS_REJECTED"&&!L.V?(L=L.hostLanguage,l="//support.google.com/youtube?p=videoError",L&&(l=g.pr(l,{hl:L})),this.NP(a6(this,"HTML5_SPS_UMP_STATUS_REJECTED", l))):this.api.j().J("enable_adb_handling_in_sabr")&&O==="BROWSER_OR_EXTENSION_ERROR"&&!L.V?(L=L.hostLanguage,l="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",L&&(l=g.pr(l,{hl:L})),this.NP(a6(this,"BROWSER_OR_EXTENSION_ERROR",l))):this.NP(g.fR(l.errorMessage)):this.NP(a6(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(l=L.hostLanguage,O="//support.google.com/youtube/?p=player_error1",l&&(O=g.pr(O, {hl:l})),this.NP(a6(this,"GENERIC_WITH_LINK_AND_CPN",O,!0)),L.hC&&!L.L&&OM5(this,function(F){if(g.gk(F,n.api,!sI(n.api.j()))){F={as3:!1,html5:!0,player:!0,cpn:n.api.getVideoData().clientPlaybackNonce};var x=n.api;x.S3("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:F});x.isFullscreen()&&x.toggleFullscreen()}})); if(this.N){var X=this.mJ("ytp-error-link");X&&(this.api.createClientVe(X,this,216104),this.api.logVisibility(X,!0),OM5(this,function(){n.api.logClick(X)}))}}; var nvi=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(LJf,g.f);g.h=LJf.prototype;g.h.onClick=function(l){this.innertubeCommand?(this.C.lF("innertubeCommand",this.innertubeCommand),l.preventDefault()):g.gk(l,this.C,!0);this.C.logClick(this.element)}; g.h.onVideoDataChange=function(l,n){ovv(this,n);this.N_&&FJi(this,this.N_)}; g.h.ST=function(l){var n=this.C.getVideoData();this.videoId!==n.videoId&&ovv(this,n);this.S&&FJi(this,l.state);this.N_=l.state}; g.h.In=function(){this.fade.show();this.C.publish("paidcontentoverlayvisibilitychange",!0);this.C.logVisibility(this.element,!0)}; g.h.Te=function(){this.fade.hide();this.C.publish("paidcontentoverlayvisibilitychange",!1);this.C.logVisibility(this.element,!1)};g.u(R6,g.f);R6.prototype.hide=function(){this.S.stop();this.message.style.display="none";g.f.prototype.hide.call(this)}; R6.prototype.onStateChange=function(l){this.OC(l.state)}; R6.prototype.OC=function(l){(g.K(l,128)||this.api.tJ()?0:g.K(l,16)||g.K(l,1))?this.S.start():this.hide()}; R6.prototype.W=function(){this.message.style.display="block"};g.u(CR,g.V7);CR.prototype.onMutedAutoplayChange=function(l){this.N&&(l?(xn5(this),this.In()):(this.S&&this.logClick(),this.Te()))}; CR.prototype.gt=function(l){this.api.isMutedByMutedAutoplay()&&g.U2(l,2)&&this.Te()}; CR.prototype.onClick=function(){this.api.unMute();this.logClick()}; CR.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.u(g.tx,g.$B);g.h=g.tx.prototype;g.h.init=function(){var l=this.api,n=l.getPlayerStateObject();this.ma=l.getPlayerSize();this.Vu(n);this.Qz();this.x4();this.api.publish("basechromeinitialized",this);this.YN()&&this.api.publish("standardControlsInitialized")}; g.h.onVideoDataChange=function(l,n){var O=this.I8!==n.videoId;if(O||l==="newdata"){l=this.api;l.isFullscreen()||(this.ma=l.getPlayerSize());var L;((L=this.api.getVideoData(1))==null?0:g.fy(L))&&this.eN()}O&&(this.I8=n.videoId,O=this.Zs,O.Lf=3E3,i0(O,512,!0),this.Qz());this.api.J("web_render_jump_buttons")&&n.showSeekingControls&&(this.QK=572)}; g.h.OpQ=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.h.kK=function(){var l=this.api.md()&&this.api.MF(),n=this.api.Qq();return this.Xe||l||this.Ho||n}; g.h.eN=function(){var l=!this.kK();g.wP(this.api.getRootNode(),"ytp-menu-shown",!l);var n;((n=this.api.getVideoData(1))==null?0:g.fy(n))&&g.wP(this.api.getRootNode(),"ytp-hide-controls",!l)}; g.h.aD=function(l){try{if(!g.Fg(this.api.getRootNode(),l))return!1}catch(n){return!1}for(;l&&!FPe(l);)l=l===this.api.getRootNode()?null:l.parentElement||null;return!!l}; g.h.xK=function(l){var n=this.api.getRootNode();g.wP(n,"ytp-autohide",l);g.wP(n,"ytp-autohide-active",!0);this.nt.start(l?250:100);l&&(this.Da=!1,g.ZW(n,"ytp-touch-mode"));this.yB=!l;this.api.Me(!l)}; g.h.IH=function(){var l=this.api.getRootNode();g.wP(l,"ytp-autohide-active",!1)}; g.h.t3z=function(){this.Ij=!0}; g.h.T8i=function(l){if(this.api.j().J("player_doubletap_to_seek")||this.api.j().G)this.Ij=!1,this.GX&&this.EC(this.GX),this.Qm===0&&lq(this,l)?(this.g3(),this.Yr.start(),this.GX=this.U(this.api.xP(),"touchmove",this.t3z,void 0,!0)):this.Yr.stop();wB9(this)&&lq(this,l)&&!this.api.j().G&&ZM5(this);var n=this.b8.iV();if(!g.yG(this.api.j())&&DU&&HMv(this,l))n&&l.preventDefault();else if(this.Da=!0,g.FW(this.api.getRootNode(),"ytp-touch-mode"),this.Zs.lA(),this.api.j().J("player_doubletap_to_seek")||this.api.j().G)if(n= this.api.getPlayerStateObject(),!(!this.api.qJ()||g.K(n,2)&&g.qc(this.api)||g.K(n,64))){n=Date.now()-this.xn;this.Qm+=1;if(n<=350){this.Dj=!0;n=this.api.getPlayerSize().width/3;var O=this.api.getRootNode().getBoundingClientRect(),L=l.targetTouches[0].clientX-O.left;O=l.targetTouches[0].clientY-O.top;var X=(this.Qm-1)*10;L>0&&L<n?(this.QZ(-1,L,O,X),this.api.seekBy(-10*this.api.getPlaybackRate())):L>n*2&&L<n*3&&(this.QZ(1,L,O,X),this.api.seekBy(10*this.api.getPlaybackRate()));l.preventDefault()}else z4&& this.api.j().G&&lq(this,l)&&l.preventDefault();this.xn=Date.now();this.wG.start()}}; g.h.wSp=function(){this.Nw.xf=!1;this.api.publish("rootnodemousedown",this.Nw)}; g.h.Je2=function(l){if(this.api.j().J("web_fix_fine_scrubbing_false_play")){if(HMv(this,l)||this.Nw.xf)return}else if(this.Nw.xf||HMv(this,l))return;wB9(this)||!lq(this,l)||this.Yr.isActive()||(ZM5(this),l.preventDefault());this.Dj&&(this.Dj=!1)}; g.h.g3=function(){}; g.h.Gg=function(){}; g.h.QZ=function(){}; g.h.renderChapterSeekingAnimation=function(){}; g.h.by=function(){var l=this.api.getPlayerStateObject();g.K(l,2)&&g.qc(this.api)||(l.isOrWillBePlaying()?this.api.pauseVideo():(this.tM&&(l.isCued()||g.K(l,1024))&&!this.api.j().J("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.tM.W.element),this.api.Ft(),this.api.playVideo(),this.tM&&document.activeElement===this.tM.W.element&&((l=this.YN())==null?l=0:l.playButton?(l.playButton.focus(),l=!0):l=!1,l||this.api.getRootNode().focus())))}; g.h.ztF=function(l){var n=this,O=this.api.getPresentingPlayerType();if(!JLi(this,kT(l)))if(l=this.api.j(),(this.api.j().J("player_doubletap_to_seek")||this.api.j().G)&&this.Dj)this.Dj=!1;else if(l.JA&&O!==3)try{this.api.toggleFullscreen().catch(function(L){n.rf(L)}),this.api.J("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.xP().element)}catch(L){this.rf(L)}}; g.h.rf=function(l){String(l).includes("fullscreen error")?g.d2(l):g.Ir(l)}; g.h.Eh1=function(l){AL8(this,.3,l.scale);l.preventDefault()}; g.h.qKf=function(l){AL8(this,.1,l.scale)}; g.h.x4=function(){var l=this.api.xP().getPlayerSize(),n=this.api.getRootNode(),O=l.width>=650;this.Zs.resize();g.wP(n,"ytp-fullscreen",this.api.isFullscreen());g.wP(n,"ytp-large-width-mode",O);g.wP(n,"ytp-small-mode",this.Rp());g.wP(n,"ytp-tiny-mode",this.Ju());g.wP(n,"ytp-big-mode",this.bU());this.j1&&this.j1.resize(l)}; g.h.gt=function(l){this.Vu(l.state);this.Qz()}; g.h.GJ=Oi(5);g.h.PF=function(){var l=!!this.I8&&!this.api.oR()&&!this.Mh,n=this.api.getPresentingPlayerType()===2,O=this.api.j();if(n){if(tMa&&O.J("enable_visit_advertiser_support_on_ipad_mweb"))return!1;n=dt(this.api.dc());l&&(n&&n.player?l=(l=n.player.getVideoData(2))?l.isListed&&!g.qp(n.player.j()):!1:(AV("showInfoBarDuringAd: this is null"),l=!1));return l}return l&&(O.eF||this.api.isFullscreen()||O.S5)}; g.h.Qz=function(){var l=this.PF();this.MR!==l&&(this.MR=l,g.wP(this.api.getRootNode(),"ytp-hide-info-bar",!l))}; g.h.Vu=function(l){var n=l.isCued()||this.api.Pp()&&this.api.getPresentingPlayerType()!==3;n!==this.isCued&&(this.isCued=n,this.Kb&&this.EC(this.Kb),this.Kb=this.U(this.api.xP(),"touchstart",this.T8i,void 0,n));var O=this.Zs,L=l.isPlaying()&&!g.K(l,32)||this.api.TU();i0(O,128,!L);O=this.Zs;L=this.api.getPresentingPlayerType()===3;i0(O,256,L);O=this.api.getRootNode();g.K(l,2)?L=[S0.ENDED]:(L=[],g.K(l,8)?L.push(S0.PLAYING):g.K(l,4)&&L.push(S0.PAUSED),g.K(l,1)&&!g.K(l,32)&&L.push(S0.BUFFERING),g.K(l, 32)&&L.push(S0.SEEKING),g.K(l,64)&&L.push(S0.UNSTARTED));g.Jm(this.iZ,L)||(g.J5(O,this.iZ),this.iZ=L,g.h5(O,L));L=this.api.j();var X=g.K(l,2);a:{var F=this.api.j();var x=F.controlsType;switch(x){case "2":case "0":F=!1;break a}F=x==="3"&&!g.K(l,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:myf(dt(this.api.dc())))||this.api.Qq()||g.yG(F)&&this.api.getPresentingPlayerType()===2?!1:!0}g.wP(O,"ytp-hide-controls",!F);g.wP(O,"ytp-native-controls",L.controlsType==="3"&&!n&&!X&&!this.Ho);g.K(l, 128)&&!g.yG(L)?(this.j1||(this.j1=new g.s8(this.api),g.c(this,this.j1),g.jR(this.api,this.j1.element,4)),this.j1.W(l.WG),this.j1.show()):this.j1&&(this.j1.dispose(),this.j1=null)}; g.h.Pd=function(){return this.api.md()&&this.api.MF()?(this.api.jw(!1,!1),!0):this.api.oR()?(g.kA(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(l){this.Ho=l;this.eN()}; g.h.bU=function(){return!1}; g.h.Rp=function(){return!this.bU()&&(this.api.getPlayerSize().width<this.QK||this.api.getPlayerSize().height<290)}; g.h.Ju=function(){return this.Rp()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}; g.h.nL=function(){return this.Da}; g.h.a7=function(){return null}; g.h.vZ=function(){return null}; g.h.FC=function(){var l=this.api.xP().getPlayerSize();return new g.xH(0,0,l.width,l.height)}; g.h.handleGlobalKeyDown=function(){return!1}; g.h.handleGlobalKeyUp=function(){return!1}; g.h.PJ=function(){}; g.h.showControls=function(l){l!==void 0&&this.api.xP().Me(l)}; g.h.lA=function(){}; g.h.YN=function(){return null};g.u(nT,g.hj);g.h=nT.prototype;g.h.Bc=function(){return 1E3*this.api.getDuration(this.qF,!1)}; g.h.stop=function(){this.S&&this.RI.EC(this.S)}; g.h.tC=function(){var l=this.api.getProgressState(this.qF);this.W={seekableStart:l.seekableStart,seekableEnd:l.seekableEnd,current:this.api.getCurrentTime(this.qF,!1)};this.publish("h")}; g.h.getProgressState=function(){return this.W}; g.h.WA=function(l){g.U2(l,2)&&this.publish("g")};g.u(g.OX,g.f);g.OX.prototype.show=function(){g.f.prototype.show.call(this);g.lx(this.S)}; g.OX.prototype.hide=function(){this.W.stop();g.f.prototype.hide.call(this)}; g.OX.prototype.Gg=function(l){l?g.K(this.C.getPlayerStateObject(),64)||g5(this,yo(),"Play"):(l=this.C.getVideoData(),l.isLivePlayback&&!l.allowLiveDvr?g5(this,eP7(),"Stop live playback"):g5(this,kzg(),"Pause"))};g.u(Una,g.f);g.h=Una.prototype;g.h.jK=function(l){l?this.S=EY(this.C,this.element,null):(this.S=this.S,this.S(),this.S=null)}; g.h.In=function(){this.C.j().J("player_new_info_card_format")&&g.oK(this.C.getRootNode(),"ytp-cards-teaser-shown")&&!g.yG(this.C.j())||(this.fade.show(),g.hs("iv-button-shown"))}; g.h.Te=function(){g.hs("iv-button-hidden");this.fade.hide()}; g.h.iV=function(){return this.Qp&&this.fade.state!==4}; g.h.oz=function(){this.S&&this.S();g.f.prototype.oz.call(this)}; g.h.zUi=function(){g.hs("iv-button-mouseover")}; g.h.onClicked=function(l){this.C.md();var n=g.oK(this.C.getRootNode(),"ytp-cards-teaser-shown");g.hs("iv-teaser-clicked",n);var O;if((O=this.C.getVideoData())==null?0:g.YZ(O)){var L;l=(L=this.C.getVideoData())==null?void 0:g.j4(L);(l==null?0:l.onIconTapCommand)&&this.C.lF("innertubeCommand",l.onIconTapCommand)}else L=l.screenX===0&&l.screenY===0,this.C.jw(!this.C.MF(),L,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.u(uNk,g.f);g.h=uNk.prototype;g.h.oW=function(){this.C.md()&&this.C.MF()&&this.iV()&&this.Te()}; g.h.aj=function(){this.Te();!this.C.md()&&this.C.j().J("enable_error_corrections_infocards_icon_web")&&this.BG.Te();g.hs("iv-teaser-clicked",this.S!=null);if(this.onClickCommand)this.C.lF("innertubeCommand",this.onClickCommand);else{var l;((l=this.C.getVideoData())==null?0:g.YZ(l))||this.C.jw(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.h.sB=function(){g.hs("iv-teaser-mouseover");this.S&&this.S.stop()}; g.h.Zoi=function(l){this.C.j().J("player_new_info_card_format")&&!g.yG(this.C.j())?this.BG.Te():this.C.j().J("enable_error_corrections_infocards_icon_web")&&this.BG.In();this.S||!l||this.C.MF()||this.W&&this.W.isActive()||(this.In(l),g.hs("iv-teaser-shown"))}; g.h.In=function(l){this.onClickCommand=l.onClickCommand;this.updateValue("text",l.teaserText);this.element.setAttribute("dir",g.ux(l.teaserText));this.fade.show();this.W=new g.vs(function(){g.FW(this.C.getRootNode(),"ytp-cards-teaser-shown");this.C.J("player_new_info_card_format")&&!g.yG(this.C.j())&&this.BG.Te();this.Vy()},0,this); this.W.start();this.BG.jK(!1);this.S=new g.vs(this.Te,580+l.durationMs,this);this.S.start();this.L.push(this.listen("mouseover",this.PP,this));this.L.push(this.listen("mouseout",this.Fd,this))}; g.h.Vy=function(){if(!this.C.j().J("player_new_info_card_format")&&g.yG(this.C.j())&&this.Qp){var l=this.BG.element.offsetLeft,n=g.aC("ytp-cards-button-icon"),O=this.C.isFullscreen()?54:36;if(n){var L=l+n.offsetLeft;this.element.style.marginRight=this.BG.element.offsetParent.offsetWidth-l-n.offsetLeft-O+"px";this.element.style.marginLeft=L+"px"}}}; g.h.FH=function(){g.yG(this.C.j())&&this.C.Rp()&&this.Qp&&this.G.start()}; g.h.PP=function(){this.V.stop();this.S&&this.S.isActive()&&this.T.start()}; g.h.Fd=function(){this.T.stop();this.S&&!this.S.isActive()&&this.V.start()}; g.h.ACp=function(){this.S&&this.S.stop()}; g.h.U5m=function(){this.Te()}; g.h.Np=function(){this.Te()}; g.h.Te=function(){!this.S||this.N&&this.N.isActive()||(g.hs("iv-teaser-hidden"),this.fade.hide(),g.ZW(this.C.getRootNode(),"ytp-cards-teaser-shown"),this.N=new g.vs(function(){for(var l=g.P(this.L),n=l.next();!n.done;n=l.next())this.EC(n.value);this.L=[];this.S&&(this.S.dispose(),this.S=null);this.BG.jK(!0);!this.C.md()&&this.C.j().J("enable_error_corrections_infocards_icon_web")&&this.BG.Te()},330,this),this.N.start())}; g.h.iV=function(){return this.Qp&&this.fade.state!==4}; g.h.oz=function(){var l=this.C.getRootNode();l&&g.ZW(l,"ytp-cards-teaser-shown");g.ZL(this.W,this.N,this.S);g.f.prototype.oz.call(this)};var N5={},Xd=(N5.BUTTON="ytp-button",N5.TITLE_NOTIFICATIONS="ytp-title-notifications",N5.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",N5.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",N5.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",N5);g.u(Py8,g.f);Py8.prototype.onClick=function(){this.api.logClick(this.element);var l=!this.S;this.updateValue("label",l?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",l);Td5(this,l)};g.i9("yt.pubsub.publish",g.hs);g.u(g.oX,g.f);g.oX.prototype.L=function(){window.location.reload()}; g.oX.prototype.S=function(){g.FW(this.element,"ytp-sb-subscribed")}; g.oX.prototype.W=function(){g.ZW(this.element,"ytp-sb-subscribed")};g.u(q55,g.f);g.h=q55.prototype;g.h.Y_q=function(l){this.api.logClick(this.W);var n=this.api.j();n.W||n.Fi?QP0(this)&&(this.isExpanded()?this.JH():this.vF()):g.V6(window,Dnf(this));l.preventDefault()}; g.h.qf=function(){MK5(this);this.channel.classList.remove("ytp-title-expanded")}; g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.h.vF=function(){if(QP0(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.N&&this.N.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var l=this.api.getVideoData();this.S&&l.rA&&l.subscribed&&(this.S.show(), this.api.logVisibility(this.S.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.h.JH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.N&&this.N.start()}; g.h.y5=function(){var l=this.api.j();this.vk(!this.api.isEmbedsShortsMode());var n=this.api.getVideoData(),O=this.api.j(),L=this.api.getVideoData();this.L=!1;var X=!!L.videoId&&!!L.JA&&!!L.profilePicture;this.api.getPresentingPlayerType()===2?this.L=X&&!!L.isListed&&!!L.author:g.yG(O)&&(this.L=X&&!g.l4(L)&&!O.N&&!(O.G&&this.api.getPlayerSize().width<200));O=n.profilePicture;l=g.yG(l)?n.expandedTitle:n.author;O=O===void 0?"":O;l=l===void 0?"":l;this.L?(this.T!==O&&(this.W.style.backgroundImage="url("+ O+")",this.T=O),this.updateValue("channelLogoLabel",g.uN("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:l})),g.FW(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ZW(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.W,this.L&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=n.dJ);this.updateValue("expandedTitle",n.expandedTitle);this.updateValue("expandedSubtitle",n.expandedSubtitle)}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.W,this.L&&l)};g.u(Fd,g.SR);Fd.prototype.S=function(l){l.defaultPrevented||l.keyCode!==39||(this.element.click(),l.preventDefault())};g.u(e$9,g.f);g.h=e$9.prototype;g.h.show=function(){g.f.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.h.hide=function(){g.f.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.h.vA=function(l){var n=kT(l),O=g.Fg(this.closeButton.element,n),L=g.Fg(this.element,n);l=this.S&&g.Fg(this.S,n)&&g.yz(l);n&&(L||l)&&!O||this.hide()}; g.h.o5=function(){Ev8(g.SV(this.iF.j()),"user_info_panel",function(){window.location.reload()})}; g.h.y5=function(){var l=this.iF.j(),n={USER_NAME:l.userDisplayName,USER_EMAIL:l.D9};this.updateValue("icon",yG8());this.updateValue("watchingAsUsername",g.uN("Watching as $USER_NAME",n));l.D9?this.updateValue("watchingAsEmail",g.uN("($USER_EMAIL)",n)):this.updateValue("watchingAsEmail","")};g.u(jP8,g.$8);g.h=jP8.prototype;g.h.jE=function(){this.C5.Te()}; g.h.NKF=function(){oq(this.D4.element)}; g.h.BKz=function(){Zz(this,this.C.getDebugText(!0))&&g5(this.po,Pr())}; g.h.HpG=function(){Zz(this,this.C.getVideoEmbedCode())&&g5(this.po,umv());this.C.logClick(this.US.element);ct("EMBED",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")}; g.h.g45=function(){Zz(this,this.C.getVideoUrl(!0,!0))&&g5(this.po,N6());this.C.logClick(this.getVideoUrl.element);ct("COPY_PASTE",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")}; g.h.JCi=function(){Zz(this,this.C.getVideoUrl(!1,!0))&&g5(this.po,N6());this.C.logClick(this.I4.element);ct("COPY_PASTE",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")}; g.h.onLoopChange=function(l){var n;(n=this.I_)==null||O3(n,l)}; g.h.ipq=function(){this.C.setLoopVideo(this.I_.getValue());this.C5.Te();this.C.logClick(this.I_.element)}; g.h.V35=function(l){this.C.reportPlaybackIssue();if(g.gk(l,this.C,!sI(this.C.j()))){l=this.C;var n=l.app.getFeedbackProductData();l.S3("onFeedbackStartRequest",n);l.isFullscreen()&&l.toggleFullscreen()}this.C5.Te()}; g.h.G$5=function(){g.hA(this.C,"isVideoInfoVisible",[])?g.hA(this.C,"hideVideoInfo",[]):g.hA(this.C,"showVideoInfo",[]);this.C5.Te()}; g.h.nhp=function(){this.St&&(this.Hq||(this.Hq=new e$9(this.C,this.St.element),g.c(this,this.Hq),g.jR(this.C,this.Hq.element,4)),this.Hq.show(),this.C5.Te(),this.C.logClick(this.St.element))}; g.h.onVideoDataChange=function(l,n){this.OI(n)}; g.h.OI=function(l){var n=this.C.j(),O=this.C.getPresentingPlayerType()===2,L=!O||l.isListed;L=!n.NQ&&!!l.videoId&&L;n.playerStyle!=="play"?n="https://support.google.com/youtube/?p=report_playback":(n={contact_type:"playbackissue",html5:1,ei:l.eventId,v:l.videoId,p:"movies_playback"},l.W&&(n.fmt=l.W.itag),l.clientPlaybackNonce&&(n.cpn=l.clientPlaybackNonce),l.partnerId&&(n.partnerid=l.partnerId),n=g.pr("//support.google.com/googleplay/",n));this.US.vk(L&&l.allowEmbed);this.getVideoUrl.vk(L);this.I4.vk(L&& !l.isLivePlayback);this.rl.NP(n,"href");var X;(X=this.I_)==null||X.vk(!l.isLivePlayback&&!O);var F;(F=this.St)==null||F.vk(!O)}; g.h.Ge=function(l){g.$8.prototype.Ge.call(this,l);this.C.logVisibility(this.US.element,l);this.C.logVisibility(this.getVideoUrl.element,l);this.C.logVisibility(this.I4.element,l);this.I_&&this.C.logVisibility(this.I_.element,l);this.St&&this.C.logVisibility(this.St.element,l)};g.u(IHg,g.BL);g.h=IHg.prototype;g.h.R5=function(l){var n=kT(l);if(!(n&&(ZB(n,"a")||ZB(n,null,"ytp-no-contextmenu"))||this.Qp)){var O;this.NQ=(l=(O=l.touches)==null?void 0:O.item(0))?new g.AR(l.clientX,l.clientY):new g.AR(0,0);this.Wm.start()}}; g.h.FB=function(){this.Wm.stop()}; g.h.NiJ=function(){this.open(this.NQ)}; g.h.u$=function(){if(this.N&&Gaq(this.N)){var l=Gaq(this.N).element;l.tabIndex=-1;l.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.h.show=function(){this.N||(this.N=new jP8(this.C,this,this.po),g.c(this,this.N),g.cL(this,this.N));this.N.onLoopChange(this.C.getLoopVideo());g.BL.prototype.show.call(this);this.C.logVisibility(this.element,!0);this.N.Ge(!0)}; g.h.hide=function(){mna(this);g.BL.prototype.hide.call(this);this.C.logVisibility(this.element,!1);this.N&&this.N.Ge(!1)}; g.h.SCp=function(l){var n=kT(l);this.Qp||n&&(ZB(n,"a")||ZB(n,null,"ytp-no-contextmenu"))||(l.preventDefault(),this.open(new g.AR(l.pageX,l.pageY)))}; g.h.In=function(l){if(l){var n=l.getBoundingClientRect();this.open(new g.AR(n.x,n.y))}g.BL.prototype.In.call(this,l)}; g.h.open=function(l){dn0(this);var n=this.C.getVideoData();g.wP(this.element,"ytp-dni",n.hh);this.element.style.left="";this.element.style.top="";l.x++;l.y++;g.BL.prototype.In.call(this);var O=BD(this).body;n=new nl(0,Infinity,Infinity,0);var L=cM(O);for(var X=L.S.body,F=L.S.documentElement,x=gM9(L.S);O=upi(O);)if((!g.CJ||O.clientHeight!=0||O!=X)&&O!=X&&O!=F&&Uo(O,"overflow")!="visible"){var Z=g.WH(O),J=new g.AR(O.clientLeft,O.clientTop);Z.x+=J.x;Z.y+=J.y;n.top=Math.max(n.top,Z.y);n.right=Math.min(n.right, Z.x+O.clientWidth);n.bottom=Math.min(n.bottom,Z.y+O.clientHeight);n.left=Math.max(n.left,Z.x)}X=x.scrollLeft;x=x.scrollTop;n.left=Math.max(n.left,X);n.top=Math.max(n.top,x);L=OUa(L.S.defaultView||window);n.right=Math.min(n.right,X+L.width);n.bottom=Math.min(n.bottom,x+L.height);L=n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null;n=this.size;l=l.clone();n=n.clone();L&&(x=n,X=5,(X&65)==65&&(l.x<L.left||l.x>=L.right)&&(X&=-2),(X&132)==132&&(l.y<L.top||l.y>=L.bottom)&&(X&=-5),l.x<L.left&&X&1&& (l.x=L.left),X&16&&(F=l.x,l.x<L.left&&(l.x=L.left),l.x+x.width>L.right&&(x.width=Math.min(L.right-l.x,F+x.width-L.left),x.width=Math.max(x.width,0))),l.x+x.width>L.right&&X&1&&(l.x=Math.max(L.right-x.width,L.left)),l.y<L.top&&X&4&&(l.y=L.top),X&32&&(F=l.y,l.y<L.top&&(l.y=L.top),l.y+x.height>L.bottom&&(x.height=Math.min(L.bottom-l.y,F+x.height-L.top),x.height=Math.max(x.height,0))),l.y+x.height>L.bottom&&X&4&&(l.y=Math.max(L.bottom-x.height,L.top)));L=new g.xH(0,0,0,0);L.left=l.x;L.top=l.y;L.width= n.width;L.height=n.height;g.PH(this.element,new g.AR(L.left,L.top));g.eU(this.L);this.L.U(BD(this),"contextmenu",this.RUG);this.L.U(this.C,"fullscreentoggled",this.onFullscreenToggled);this.L.U(this.C,"pageTransition",this.dC)}; g.h.RUG=function(l){if(!l.defaultPrevented){var n=kT(l);g.Fg(this.element,n)||this.Te();this.C.j().disableNativeContextMenu&&l.preventDefault()}}; g.h.onFullscreenToggled=function(){this.Te();dn0(this)}; g.h.dC=function(){this.Te()};g.u(Jb,g.f);Jb.prototype.onClick=function(){var l=this,n,O,L,X;return g.Y(function(F){if(F.S==1)return n=l.api.j(),O=l.api.getVideoData(),L=l.api.getPlaylistId(),X=n.getVideoUrl(O.videoId,L,void 0,!0),g.Q(F,Bdv(l,X),2);F.W&&VK9(l);l.api.logClick(l.element);g.Tk(F)})}; Jb.prototype.y5=function(){this.updateValue("icon",{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=$nk(this);g.wP(this.element,"ytp-copylink-button-visible",this.visible); this.vk(this.visible);this.tooltip.h2();this.api.logVisibility(this.element,this.visible&&this.B)}; Jb.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.element,this.visible&&l)}; Jb.prototype.oz=function(){g.f.prototype.oz.call(this);g.ZW(this.element,"ytp-copylink-button-visible")};g.u(w5,g.f);w5.prototype.show=function(){g.f.prototype.show.call(this);g.lx(this.W)}; w5.prototype.hide=function(){this.L.stop();this.N=0;this.mJ("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.ZW(this.element,"ytp-chapter-seek");g.ZW(this.element,"ytp-time-seeking");g.f.prototype.hide.call(this)}; w5.prototype.QZ=function(l,n,O,L){this.N=l===this.T?this.N+L:L;this.T=l;var X=l===-1?this.Y:this.G;X&&this.C.logClick(X);this.V?this.W.stop():g.OJ(this.W);this.L.start();this.element.setAttribute("data-side",l===-1?"back":"forward");var F=3*this.C.xP().getPlayerSize().height;X=this.C.xP().getPlayerSize();X=X.width/3-3*X.height;this.S.style.width=F+"px";this.S.style.height=F+"px";l===1?(this.S.style.left="",this.S.style.right=X+"px"):l===-1&&(this.S.style.right="",this.S.style.left=X+"px");var x=F* 2.5;F=x/2;var Z=this.mJ("ytp-doubletap-ripple");Z.style.width=x+"px";Z.style.height=x+"px";l===1?(l=this.C.xP().getPlayerSize().width-n+Math.abs(X),Z.style.left="",Z.style.right=l-F+"px"):l===-1&&(l=Math.abs(X)+n,Z.style.right="",Z.style.left=l-F+"px");Z.style.top="calc((33% + "+Math.round(O)+"px) - "+F+"px)";if(O=this.mJ("ytp-doubletap-ripple"))O.classList.remove("ytp-doubletap-ripple"),O.classList.add("ytp-doubletap-ripple");cL7(this,this.V?this.N:L)};g.u(z$0,Iy);g.h=z$0.prototype;g.h.eT=function(l){this.Hm||(this.Hm=new zF(this.C),g.c(this,this.Hm));var n,O;if((n=this.oO)==null?0:(O=n.menu)==null?0:O.menuRenderer)this.Hm.open(this.oO.menu.menuRenderer,l.target),l.preventDefault()}; g.h.Q6=function(){return!!this.S}; g.h.Sj=function(){return!!this.S}; g.h.Li=function(l){l.target===this.overflowButton.element?l.preventDefault():(this.hC&&this.C.lF("innertubeCommand",this.hC),this.RK(!1))}; g.h.LK=function(){this.RK(!0);var l,n;((l=this.S)==null?0:(n=l.bannerData)==null?0:n.dismissedStatusKey)&&this.n5.push(this.S.bannerData.dismissedStatusKey);this.eK()}; g.h.w4=function(){this.eK();r5(this)}; g.h.Ah5=function(l){var n=this,O;if(l.id!==((O=this.S)==null?void 0:O.identifier)){this.eK();O=g.P(this.Lf);for(var L=O.next();!L.done;L=O.next()){var X=L.value,F=void 0,x=void 0;if((L=(F=X)==null?void 0:(x=F.bannerData)==null?void 0:x.itemData)&&X.identifier===l.id){x=F=void 0;var Z=((F=X)==null?void 0:(x=F.bannerData)==null?void 0:x.dismissedStatusKey)||"";if(this.n5.includes(Z))break;this.S=X;this.banner.element.setAttribute("aria-label",L.accessibilityLabel||"");L.trackingParams&&(this.L=!0,this.C.setTrackingParams(this.badge.element, L.trackingParams));this.Y.show();mr(this);this.Cf.vk(!L.stayInApp);nf9(this);pB9(this);bq(this);this.hC=g.z(L.onTapCommand,VS);if(X=g.z(L.menuOnTap,VS))this.oO=g.z(X,hNO);X=void 0;this.banner.update({thumbnail:(X=(L.thumbnailSources||[])[0])==null?void 0:X.url,title:L.productTitle,price:L.priceReplacementText?L.priceReplacementText:L.price,salesOriginalPrice:KJ9(this),priceDropReferencePrice:aHq(this),promotionText:fHk(this),priceA11yText:R$8(this),affiliateDisclaimer:L.affiliateDisclaimer,vendor:Cye(this)}); Z=x=F=X=void 0;((X=L)==null?0:(F=X.hiddenProductOptions)==null?0:F.showDropCountdown)&&((x=L)==null?0:(Z=x.hiddenProductOptions)==null?0:Z.dropTimestampMs)&&(this.K5=new g.vs(function(){lpi(n)},1E3),this.Cf.hide(),this.countdownTimer.show(),lpi(this)); this.C.J("web_player_enable_featured_product_banner_exclusives_on_desktop")&&S5i(this)&&(this.Sz=new g.vs(function(){sPi(n)},1E3),sPi(this))}}}}; g.h.eK=function(){this.S&&(this.S=void 0,this.o7())}; g.h.onVideoDataChange=function(l,n){var O=this;l==="dataloaded"&&r5(this);var L,X,F;l=g.z((L=n.getWatchNextResponse())==null?void 0:(X=L.playerOverlays)==null?void 0:(F=X.playerOverlayRenderer)==null?void 0:F.productsInVideoOverlayRenderer,Fcc);this.overflowButton.show();this.dismissButton.hide();var x=l==null?void 0:l.featuredProductsEntityKey;this.trendingOfferEntityKey=l==null?void 0:l.trendingOfferEntityKey;this.Lf.length||(vvg(this,x),bq(this));var Z;(Z=this.q5)==null||Z.call(this);this.q5=g.lT.subscribe(function(){vvg(O, x);bq(O)})}; g.h.oz=function(){r5(this);nf9(this);pB9(this);Iy.prototype.oz.call(this)};g.u(of0,g.f);of0.prototype.onClick=function(){this.C.logClick(this.element,this.W)};g.u(FTv,g.V7);g.h=FTv.prototype;g.h.show=function(){g.V7.prototype.show.call(this);this.C.publish("infopaneldetailvisibilitychange",!0);this.C.logVisibility(this.element,!0);xNv(this,!0)}; g.h.hide=function(){g.V7.prototype.hide.call(this);this.C.publish("infopaneldetailvisibilitychange",!1);this.C.logVisibility(this.element,!1);xNv(this,!1)}; g.h.getId=function(){return this.L}; g.h.vO=function(){return this.itemData.length}; g.h.onVideoDataChange=function(l,n){if(n){var O,L,X,F;this.update({title:((O=n.Rh)==null?void 0:(L=O.title)==null?void 0:L.content)||"",body:((X=n.Rh)==null?void 0:(F=X.bodyText)==null?void 0:F.content)||""});var x;l=((x=n.Rh)==null?void 0:x.trackingParams)||null;this.C.setTrackingParams(this.element,l);x=g.P(this.itemData);for(l=x.next();!l.done;l=x.next())l.value.dispose();this.itemData=[];var Z;if((Z=n.Rh)==null?0:Z.ctaButtons)for(n=g.P(n.Rh.ctaButtons),Z=n.next();!Z.done;Z=n.next())if(Z=g.z(Z.value, ndi))Z=new of0(this.C,Z,this.S),Z.MP&&(this.itemData.push(Z),Z.V5(this.items))}}; g.h.oz=function(){this.hide();g.V7.prototype.oz.call(this)};g.u(JQ5,g.f);g.h=JQ5.prototype;g.h.onVideoDataChange=function(l,n){Zkk(this,n);this.N_&&Hk8(this,this.N_)}; g.h.mR=function(l){var n=this.C.getVideoData();this.videoId!==n.videoId&&Zkk(this,n);Hk8(this,l.state);this.N_=l.state}; g.h.vY=function(l){(this.N=l)?this.hide():this.S&&this.show()}; g.h.rC=function(){this.W||this.In();this.showControls=!0}; g.h.QM=function(){this.W||this.Te();this.showControls=!1}; g.h.In=function(){var l;if((l=this.C)==null?0:l.J("embeds_web_enable_info_panel_sizing_fix")){var n;l=(n=this.C)==null?void 0:n.getPlayerSize();n=l.width<380;var O;l=l.height<(((O=this.C)==null?0:O.isEmbedsShortsMode())?400:280);var L,X;if((((L=this.C)==null?0:L.getPlayerStateObject().isCued())||((X=this.C)==null?0:g.K(X.getPlayerStateObject(),1024)))&&n&&l)return}this.S&&!this.N&&(this.fade.show(),this.C.publish("infopanelpreviewvisibilitychange",!0),this.C.logVisibility(this.element,!0))}; g.h.Te=function(){this.S&&!this.N&&(this.fade.hide(),this.C.publish("infopanelpreviewvisibilitychange",!1),this.C.logVisibility(this.element,!1))}; g.h.KI2=function(){this.W=!1;this.showControls||this.Te()};var AX1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(AX1).reduce(function(l,n){l[AX1[n]]=n;return l},{}); var bU6={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(bU6).reduce(function(l,n){l[bU6[n]]=n;return l},{}); var rXk={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(rXk).reduce(function(l,n){l[rXk[n]]=n;return l},{});var Ugq,uek;Ugq=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];uek=[{option:0,text:UX(0)},{option:.25,text:UX(.25)},{option:.5,text:UX(.5)},{option:.75,text:UX(.75)},{option:1,text:UX(1)}]; g.WA=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Ugq},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:UX(.5)},{option:-1,text:UX(.75)},{option:0,text:UX(1)},{option:1,text:UX(1.5)},{option:2, text:UX(2)},{option:3,text:UX(3)},{option:4,text:UX(4)}]},{option:"background",text:"Background color",options:Ugq},{option:"backgroundOpacity",text:"Background opacity",options:uek},{option:"windowColor",text:"Window color",options:Ugq},{option:"windowOpacity",text:"Window opacity",options:uek},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:UX(.25)},{option:.5,text:UX(.5)},{option:.75,text:UX(.75)},{option:1,text:UX(1)}]}];var PVF=[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.u(PFa,g.$B);g.h=PFa.prototype; g.h.cZ=function(l){l.repeat||(this.N.Qk=!1);var n=!1,O=l.keyCode,L=kT(l),X=!l.altKey&&!l.ctrlKey&&!l.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||PVF.includes(O)),F=!1,x=!1,Z=this.api.j();l.defaultPrevented?(X=!1,x=!0):Z.j3&&!this.api.isMutedByEmbedsMutedAutoplay()&&(X=!1);if(O===9)n=!0;else{if(L)switch(O){case 32:case 13:if(L.tagName==="BUTTON"||L.tagName==="A"||L.tagName==="INPUT")n=!0,X=!1;else if(X){var J=L.getAttribute("role");!J||J!=="option"&&J!=="button"&&J.indexOf("menuitem")!==0|| (n=!0,L.click(),F=!0)}break;case 37:case 39:case 36:case 35:n=L.getAttribute("role")==="slider";break;case 38:case 40:J=L.getAttribute("role"),L=O===38?L.previousSibling:L.nextSibling,J==="slider"?n=!0:X&&(J==="option"?(L&&L.getAttribute("role")==="option"&&L.focus(),F=n=!0):J&&J.indexOf("menuitem")===0&&(L&&L.hasAttribute("role")&&L.getAttribute("role").indexOf("menuitem")===0&&L.focus(),F=n=!0))}if(X&&!F)switch(O){case 38:F=Math.min(this.api.getVolume()+5,100);LT(this.po,F,!1);this.api.setVolume(F); x=F=!0;break;case 40:F=Math.max(this.api.getVolume()-5,0);LT(this.po,F,!0);this.api.setVolume(F);x=F=!0;break;case 36:this.api.qJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),x=F=!0);break;case 35:this.api.qJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),x=F=!0)}}n&&PA(this,!0);(n||x)&&this.Zs.lA();(F||X&&this.handleGlobalKeyDown(O,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code,l.repeat))&&l.preventDefault();Z.T&&(l={keyCode:l.keyCode, altKey:l.altKey,ctrlKey:l.ctrlKey,metaKey:l.metaKey,shiftKey:l.shiftKey,handled:l.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Fb("onKeyPress",l))}; g.h.kO=function(l){var n=l.keyCode;(!this.api.J("web_player_spacebar_control_bugfix")||this.api.J("web_player_spacebar_control_bugfix")&&!this.L)&&this.handleGlobalKeyUp(n,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code)&&l.preventDefault()}; g.h.handleGlobalKeyUp=function(l,n,O,L,X,F,x){this.api.publish("keyboardserviceglobalkeyup",{keyCode:l,shiftKey:n,ctrlKey:O,altKey:L,metaKey:X,key:F,code:x});n=!1;if(this.N.Qk)return n;(O=g.eR(this.api.dc()))&&(O=O.pK)&&O.Qp&&(O.b$(l),n=!0);switch(l){case 9:PA(this,!0);n=!0;break;case 32:if(this.api.J("web_speedmaster_spacebar_control")&&(!this.api.J("web_player_spacebar_control_bugfix")&&!this.L||this.api.J("web_player_spacebar_control_bugfix"))&&!this.api.j().j3){var Z,J;l=(Z=this.progressBar)== null?void 0:(J=Z.W)==null?void 0:J.isEnabled;n=this.by(l)}}return n}; g.h.handleGlobalKeyDown=function(l,n,O,L,X,F,x,Z){Z||(this.N.Qk=!1);var J=!1,w=this.api.j();if(w.j3&&!this.api.isMutedByEmbedsMutedAutoplay())return J;var H=g.eR(this.api.dc());if(H&&(H=H.pK)&&H.Qp)switch(l){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:J=H.fq(l)}w.V||J||(J=F||String.fromCharCode(l).toLowerCase(),this.W+=J,"awesome".indexOf(this.W)===0?(J=!0,7===this.W.length&&e8i(this.api.getRootNode(),"ytp-color-party")):(this.W=J,J="awesome".indexOf(this.W)===0));if(!J&&(!this.api.isMutedByEmbedsMutedAutoplay()|| PVF.includes(l))){var A=this.api.getVideoData(),b,r;H=(b=this.progressBar)==null?void 0:(r=b.W)==null?void 0:r.isEnabled;b=A?A.YW:[];r=tT?L:O;switch(l){case 80:n&&!w.Hm&&(g5(this.po,QZa(),"Previous"),this.api.previousVideo(),J=!0);break;case 78:n&&!w.Hm&&(g5(this.po,DT(),"Next"),this.api.nextVideo(),J=!0);break;case 74:this.api.qJ()&&(this.api.startSeekCsiAction(),this.S?this.api.J("enable_key_press_seek_logging")?(J=Ti(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),HA(this.S, -1,10,J)):HA(this.S,-1,10):g5(this.po,{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),J=!0);break;case 76:this.api.qJ()&&(this.api.startSeekCsiAction(),this.S?this.api.J("enable_key_press_seek_logging")?(J=Ti(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),HA(this.S,1,10,J)):HA(this.S,1,10):g5(this.po,{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),J=!0);break;case 37:this.api.qJ()&&(this.api.startSeekCsiAction(),r?(r=rQq(b,this.api.getCurrentTime()*1E3),r!==-1&&this.S!=null&&(iM9(this.S,-1,b[r].title),this.api.seekTo(b[r].startTime/1E3,void 0,void 0,void 0,53),J=!0)):(this.S?this.api.J("enable_key_press_seek_logging")?(J=Ti(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),HA(this.S,-1,5,J)):HA(this.S,-1,5):g5(this.po,{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),J=!0));break;case 39:this.api.qJ()&&(this.api.startSeekCsiAction(),r?(r=bkg(b,this.api.getCurrentTime()*1E3),r!==-1&&this.S!=null&&(iM9(this.S,1,b[r].title),this.api.seekTo(b[r].startTime/1E3,void 0,void 0,void 0,52),J=!0)):(this.S!=null?this.api.J("enable_key_press_seek_logging")?(J=Ti(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),HA(this.S,1,5,J)):HA(this.S,1,5):g5(this.po,{D:"svg",Z:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),J=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),LT(this.po,this.api.getVolume(),!1)):(this.api.mute(),LT(this.po,0,!0));J=!0;break;case 32:J=this.api.J("web_speedmaster_spacebar_control")?!this.api.j().Hm:this.by(H);break;case 75:J=this.by(H);break;case 190:n?w.enableSpeedOptions&&WTa(this)&&(J=this.api.getPlaybackRate(),this.api.setPlaybackRate(J+.25,!0),bM9(this.po,!1),J=!0):this.api.qJ()&&(this.step(1),J=!0);break;case 188:n? w.enableSpeedOptions&&WTa(this)&&(J=this.api.getPlaybackRate(),this.api.setPlaybackRate(J-.25,!0),bM9(this.po,!0),J=!0):this.api.qJ()&&(this.step(-1),J=!0);break;case 70:lb0(this.api)&&(this.api.toggleFullscreen().catch(function(){}),J=!0); break;case 27:H?(this.progressBar.m0(),J=!0):this.V()&&(J=!0)}if(w.controlsType!=="3")switch(l){case 67:g.G4(this.api.dc())&&(w=this.api.getOption("captions","track"),this.api.toggleSubtitles(),rLi(this.po,!w||w&&!w.displayName),J=!0);break;case 79:EX(this,"textOpacity");break;case 87:EX(this,"windowOpacity");break;case 187:case 61:EX(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:EX(this,"fontSizeIncrement",!0,!0)}var U;n||O||L||(l>=48&&l<=57?U=l-48:l>=96&&l<=105&&(U=l-96));U!=null&&this.api.qJ()&& (this.api.startSeekCsiAction(),w=this.api.getProgressState(),this.api.seekTo(U/10*(w.seekableEnd-w.seekableStart)+w.seekableStart,void 0,void 0,void 0,81),J=!0);J&&this.Zs.lA()}this.L||this.api.publish("keyboardserviceglobalkeydown",{keyCode:l,shiftKey:n,ctrlKey:O,altKey:L,metaKey:X,key:F,code:x,repeat:Z},this.N);return J}; g.h.step=function(l){this.api.qJ();if(this.api.getPlayerStateObject().isPaused()){var n=this.api.getVideoData().W;n&&(n=n.video)&&this.api.seekBy(l/(n.fps||30),void 0,void 0,l>0?77:78)}}; g.h.by=function(l){if(!this.api.j().Hm){var n;var O,L=(n=this.api.getVideoData())==null?void 0:(O=n.getPlayerResponse())==null?void 0:O.playabilityStatus;if(L){var X;n=((X=g.z(L.miniplayer,rmi))==null?void 0:X.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else n=!1;n&&this.api.lF("onExpandMiniplayer");l?this.progressBar.Ro():(l=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.po.Gg(l),l?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.h.oz=function(){g.OJ(this.B);g.$B.prototype.oz.call(this)};g.u(g.N2,g.f);g.N2.prototype.jC=Oi(11); g.N2.prototype.y5=function(){var l=this.C.j(),n=l.N||this.C.J("web_player_hide_overflow_button_if_empty_menu")&&this.J2.isEmpty();l=g.yG(l)&&g.Mc(this.C)&&g.K(this.C.getPlayerStateObject(),128);var O=this.C.getPlayerSize();this.visible=this.C.Rp()&&!l&&O.width>=240&&!g.l4(this.C.getVideoData())&&!n&&!this.S&&!this.C.isEmbedsShortsMode();g.wP(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.C.h2();this.C.logVisibility(this.element,this.visible&&this.B)}; g.N2.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.C.logVisibility(this.element,this.visible&&l)}; g.N2.prototype.oz=function(){g.f.prototype.oz.call(this);g.ZW(this.element,"ytp-overflow-button-visible")};g.u(Efi,g.V7);g.h=Efi.prototype;g.h.Lu=function(l){l=kT(l);g.Fg(this.element,l)&&(g.Fg(this.S,l)||g.Fg(this.closeButton,l)||cD(this))}; g.h.Te=function(){g.V7.prototype.Te.call(this);this.C.BH(this.element)}; g.h.show=function(){this.Qp&&this.C.publish("OVERFLOW_PANEL_OPENED");g.V7.prototype.show.call(this);this.element.setAttribute("aria-modal","true");DN5(this,!0)}; g.h.hide=function(){g.V7.prototype.hide.call(this);this.element.removeAttribute("aria-modal");DN5(this,!1)}; g.h.onFullscreenToggled=function(l){!l&&this.iV()&&cD(this)}; g.h.isEmpty=function(){return this.actionButtons.length===0}; g.h.focus=function(){for(var l=g.P(this.actionButtons),n=l.next();!n.done;n=l.next())if(n=n.value,n.Qp){n.focus();break}};g.u(qR9,g.f);qR9.prototype.onClick=function(l){g.gk(l,this.api)&&this.api.playVideoAt(this.index)};g.u(kL8,g.V7);g.h=kL8.prototype;g.h.show=function(){g.V7.prototype.show.call(this);this.S.U(this.api,"videodatachange",this.Bx);this.S.U(this.api,"onPlaylistUpdate",this.Bx);this.Bx()}; g.h.hide=function(){g.V7.prototype.hide.call(this);g.eU(this.S);this.updatePlaylist(null)}; g.h.Bx=function(){this.updatePlaylist(this.api.getPlaylist());this.api.j().N&&(this.mJ("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.EC(this.N),this.N=null))}; g.h.Xs=function(){var l=this.playlist,n=l.author,O=n?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",L={CURRENT_POSITION:String(l.index+1),PLAYLIST_LENGTH:String(l.getLength())};n&&(L.AUTHOR=n);this.update({title:l.title,subtitle:g.uN(O,L),playlisturl:this.api.getVideoUrl(!0)});n=l.W;if(n===this.L)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[l.index];else{O=g.P(this.playlistData);for(L=O.next();!L.done;L=O.next())L.value.dispose(); O=l.getLength();this.playlistData=[];for(L=0;L<O;L++){var X=new qR9(this.api,l,L);this.playlistData.push(X);X.V5(this.items)}this.selected=this.playlistData[l.index];this.L=n}this.selected&&this.selected.element.setAttribute("aria-checked","true")}; g.h.SUz=function(l){var n=this.api.getVideoUrl(!0);g.Le(n,this.api,l)}; g.h.updatePlaylist=function(l){this.playlist!==l?(this.playlist&&this.playlist.unsubscribe("shuffle",this.Xs,this),this.playlist=l,this.L=null,l?(l.subscribe("shuffle",this.Xs,this),this.Xs()):this.Qp&&this.hide()):this.playlist&&this.Xs()}; g.h.focus=function(){this.selected.focus()}; g.h.oz=function(){this.hide();g.V7.prototype.oz.call(this)};g.u(Dz,g.f);Dz.prototype.hide=function(){g.f.prototype.hide.call(this);this.Ge(!1);this.api.h2()}; Dz.prototype.y5=function(){var l=g.yG(this.api.j());g.wP(this.element,"ytp-playlist-menu-button-tiny",this.api.xP().getPlayerSize().width<400&&!l);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.uN("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.uN("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Qp||(this.show(), this.api.h2()),this.visible=!0,this.Ge(!0)):this.Qp&&this.hide()}; Dz.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.element,this.visible&&l)}; Dz.prototype.S=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.y5,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.y5,this);this.y5()};g.u(yQ5,g.f);g.h=yQ5.prototype;g.h.Cu=function(){this.L?YRi(this):eO9(this)}; g.h.DC=function(){this.L?(q2(this),this.T=!0):eO9(this)}; g.h.XjF=function(){this.V=!0;this.iq(1);this.C.publish("promotooltipacceptbuttonclicked",this.acceptButton);q2(this);this.W&&this.C.logClick(this.acceptButton)}; g.h.hUQ=function(){this.V=!0;this.iq(2);q2(this);this.W&&this.C.logClick(this.dismissButton)}; g.h.VM=function(l){if(this.C.getPresentingPlayerType()===1||this.C.getPresentingPlayerType()===2&&this.G){var n=!0,O=g.aC("ytp-ad-overlay-ad-info-dialog-container"),L=g.aC("ytp-ad-player-overlay-layout"),X=kT(l);if(this.N&&X&&g.Fg(this.N,X))this.N=null;else{this.C.getPresentingPlayerType()===1&&X&&Array.from(X.classList).forEach(function(J){if(J.startsWith("ytp-ad")||J.startsWith("ytp-skip-ad"))n=!1}); var F=jse(this.tooltipRenderer),x;if(((x=this.tooltipRenderer.dismissStrategy)==null?void 0:x.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")F&&(n=n&&!g.Fg(this.element,X));else{var Z;((Z=this.tooltipRenderer.dismissStrategy)==null?void 0:Z.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(n=F?!1:n&&g.Fg(this.element,X))}this.S&&this.Qp&&!O&&!L&&(!X||n&&g.yz(l))&&(this.V=!0,q2(this))}}}; g.h.iq=function(l){var n=this.tooltipRenderer.promoConfig;if(n){switch(l){case 0:var O;if((O=n.impressionEndpoints)==null?0:O.length)var L=n.impressionEndpoints[0];break;case 1:L=n.acceptCommand;break;case 2:L=n.dismissCommand}var X;l=(X=g.z(L,lIc))==null?void 0:X.feedbackToken;L&&l&&(X={feedbackTokens:[l]},l=this.C.A2(),(l==null?0:PI8(L,l.SJ))&&RM(l,L,X))}}; g.h.x4=function(){this.T||(this.S||(this.S=MG0(this)),YRi(this))}; var Qs0={"ytp-settings-button":g.Qo()};g.u(k3,g.f);k3.prototype.onStateChange=function(l){this.OC(l.state)}; k3.prototype.OC=function(l){this.vk(g.K(l,2))}; k3.prototype.onClick=function(){this.C.getPlayerStateObject().isOrWillBePlaying();this.C.playVideo()};g.u(y0,g.f);y0.prototype.onClick=function(l){this.api.logClick(this.element);var n=g.pr(this.api.j().Vf,{focusSearch:"true"}),O={};g.hA(this.api,"addEmbedsConversionTrackingParams",[O]);n=g.pr(n,O);var L;(O=(L=this.api.getVideoData().Ln)==null?void 0:L.params)&&(n=g.pr(n,{bp:O}));g.V6(window,n);l.preventDefault()}; y0.prototype.S=function(){if(this.api.J("embeds_web_enable_search_button")){var l=this.api.j();var n=this.api.getVideoData(),O=this.api.xP().getPlayerSize().width;l=g.yG(l)&&O>=this.W&&!l.N&&!n.isAd()&&!this.api.isEmbedsShortsMode()}else l=!1;this.visible=l;this.vk(this.visible);g.wP(this.element,"ytp-search-button-visible",this.visible);g.wP(this.element,"ytp-show-search-title",!this.api.Rp());this.api.logVisibility(this.element,this.visible&&this.B)}; y0.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.element,this.visible&&l)};g.u(g.M2,g.f);g.h=g.M2.prototype;g.h.p8=Oi(8);g.h.onClick=function(){var l=this,n=this.api.j(),O=this.api.getVideoData(this.api.getPresentingPlayerType()),L=this.api.getPlaylistId();n=this.api.J("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):n.getVideoUrl(O.videoId,L,void 0,!0);if(navigator.share)try{var X=navigator.share({title:O.title,url:n});X instanceof Promise&&X.catch(function(F){mN9(l,F)})}catch(F){F instanceof Error&&mN9(this,F)}else this.S.Pd(),cD(this.N,this.element,!1); this.api.logClick(this.element)}; g.h.y5=function(){var l=this.api.j(),n=this.api.isEmbedsShortsMode();g.wP(this.element,"ytp-show-share-title",g.yG(l)&&!n);this.S.bU()&&n?(l=(this.api.xP().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.HH(this.element,"right",l+"px")):n&&g.HH(this.element,"right","0px");this.updateValue("icon",{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=GLv(this);g.wP(this.element,"ytp-share-button-visible",this.visible);this.vk(this.visible);this.tooltip.h2();this.api.logVisibility(this.element,GLv(this)&&this.B)}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.element,this.visible&&l)}; g.h.oz=function(){g.f.prototype.oz.call(this);g.ZW(this.element,"ytp-share-button-visible")};g.u(dNa,g.V7);g.h=dNa.prototype;g.h.BA=function(l){l=kT(l);g.Fg(this.V,l)||g.Fg(this.closeButton,l)||cD(this)}; g.h.Te=function(){g.V7.prototype.Te.call(this);this.tooltip.BH(this.element);this.api.logVisibility(this.S,!1);for(var l=g.P(this.N),n=l.next();!n.done;n=l.next())n=n.value,this.api.hasVe(n.element)&&this.api.logVisibility(n.element,!1)}; g.h.show=function(){var l=this.Qp;g.V7.prototype.show.call(this);this.y5();l||this.api.lF("onSharePanelOpened")}; g.h.vP5=function(){this.Qp&&this.y5()}; g.h.y5=function(){var l=this;g.FW(this.element,"ytp-share-panel-loading");g.ZW(this.element,"ytp-share-panel-fail");var n=this.api.getVideoData(),O=this.api.getPlaylistId()&&this.L.checked;n.getSharePanelCommand&&RM(this.api.A2(),n.getSharePanelCommand,{includeListId:O}).then(function(L){l.JG()||(g.ZW(l.element,"ytp-share-panel-loading"),VGa(l,L))}); n=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",n);this.updateValue("linkText",n);this.updateValue("shareLinkWithUrl",g.uN("Share link $URL",{URL:n}));oq(this.S);this.api.logVisibility(this.S,!0)}; g.h.onFullscreenToggled=function(l){!l&&this.iV()&&cD(this)}; g.h.focus=function(){this.S.focus()}; g.h.oz=function(){g.V7.prototype.oz.call(this);$N5(this)};g.u(ike,Iy);g.h=ike.prototype;g.h.oz=function(){fpg(this);Iy.prototype.oz.call(this)}; g.h.Li=function(l){l.target!==this.dismissButton.element&&(this.RK(!1),this.C.lF("innertubeCommand",this.onClickCommand))}; g.h.LK=function(){this.G3=!0;this.RK(!0);this.o7()}; g.h.YCf=function(l){this.T=l;this.o7()}; g.h.onVideoDataChange=function(l,n){if(l=!!n.videoId&&this.videoId!==n.videoId)this.videoId=n.videoId,this.G3=!1,this.Q5=!0,this.G=this.NQ=!1,fpg(this),ss8(this,!1),this.W=this.S=!1,e2(this),zOi(this);if(l||!n.videoId)this.Wm=this.L=!1;var O,L;if(n==null?0:(O=n.getPlayerResponse())==null?0:(L=O.videoDetails)==null?0:L.isLiveContent)this.mI(!1);else{var X,F,x;n=g.z((X=n.getWatchNextResponse())==null?void 0:(F=X.playerOverlays)==null?void 0:(x=F.playerOverlayRenderer)==null?void 0:x.productsInVideoOverlayRenderer, Fcc);this.T=this.enabled=!1;if(n){if(X=n==null?void 0:n.featuredProductsEntityKey){F=g.lT.getState().entities;var Z;if((Z=J9(F,"featuredProductsEntity",X))==null?0:Z.productsData){this.mI(!1);return}}this.enabled=!0;if(!this.L){var J;Z=(J=n.badgeInteractionLogging)==null?void 0:J.trackingParams;(this.L=!!Z)&&this.C.setTrackingParams(this.badge.element,Z||null)}if(!this.Wm){var w;if(this.Wm=!((w=n.dismissButton)==null||!w.trackingParams)){var H;this.C.setTrackingParams(this.dismissButton.element,((H= n.dismissButton)==null?void 0:H.trackingParams)||null)}}n.isContentForward&&(J=n.productsData,ss8(this,!0),zOi(this),J=pg8(this,J),w=[],J.length>0&&w.push(J[0]),J.length>1&&(H=new g.f({D:"div",X:"ytp-suggested-action-more-products-icon"}),g.c(this,H),w.push(H),w.push.apply(w,g.E(J.slice(1)))),this.V=new g.f({D:"div",K:w,X:"ytp-suggested-action-content-forward-container"}),g.c(this,this.V),this.z3.element.append(this.V.element));this.text=g.Uw(n.text);var A;if(J=(A=n.dismissButton)==null?void 0:A.a11yLabel)this.Pm= g.Uw(J);this.onClickCommand=n.onClickCommand;this.timing=n.timing;this.RA()}z4i(this);mr(this);this.o7()}}; g.h.Q6=function(){return!this.T&&this.enabled&&!this.G3&&!this.C.Rp()&&!this.JA&&(this.G||this.Q5)}; g.h.Jq=function(l){Iy.prototype.Jq.call(this,l);if(this.S||this.W)this.timing&&Q0(this.timing.preview)&&(this.S=!1,e2(this),this.W=!1,e2(this),this.C.cS("shopping_overlay_preview_collapsed"),this.C.cS("shopping_overlay_preview_expanded"),l=Y3(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Q0(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.C.cS("shopping_overlay_expanded"),l.end=this.timing.expanded.endSec*1E3),this.C.RA([l])), this.NQ=!0,mr(this);e2(this)}; g.h.mI=function(l){(this.G=l)?(GF(this),mr(this,!1)):(fpg(this),this.wq.start());this.o7()}; g.h.RA=function(l){var n=this.timing;l=(l===void 0?0:l)+this.C.getCurrentTime();var O=[],L=n.visible,X=n.preview;n=n.expanded;Q0(L)&&(Bsv(L,l),O.push(Y3(L.startSec,L.endSec,"shopping_overlay_visible")));Q0(X)&&(Bsv(X,l),L=X.startSec+1,O.push(Y3(X.startSec,L,"shopping_overlay_preview_collapsed")),O.push(Y3(L,X.endSec,"shopping_overlay_preview_expanded")));Q0(n)&&(Bsv(n,l),O.push(Y3(n.startSec,n.endSec,"shopping_overlay_expanded")));this.C.RA(O)};g.u(RO5,g.f); RO5.prototype.y5=function(){var l=this.api.j();this.vk(g.yG(l)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Qp);var n=this.api.getVideoData(),O=!1;this.api.getPresentingPlayerType()===2?O=!!n.videoId&&!!n.isListed&&!!n.author&&!!n.JA&&!!n.profilePicture:g.yG(l)&&(O=!!n.videoId&&!!n.JA&&!!n.profilePicture&&!g.l4(n)&&!l.N&&!(l.G&&this.api.getPlayerSize().width<200));var L=n.profilePicture;l=g.yG(l)?n.expandedTitle:n.author;L=L===void 0? "":L;l=l===void 0?"":l;O?(this.W!==L&&(this.S.style.backgroundImage="url("+L+")",this.W=L),this.updateValue("channelLogoLabel",g.uN("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:l})),g.FW(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ZW(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,O&&this.B);this.api.logVisibility(this.channelName,O&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=n.dJ);this.updateValue("expandedTitle",n.expandedTitle)};g.u(j2,g.V7);j2.prototype.show=function(){g.V7.prototype.show.call(this);this.S.start()}; j2.prototype.hide=function(){g.V7.prototype.hide.call(this);this.S.stop()}; j2.prototype.yr=function(l,n){l==="dataloaded"&&((this.X$=n.X$,this.OU=n.OU,isNaN(this.X$)||isNaN(this.OU))?this.N&&(this.C.cS("intro"),this.C.removeEventListener(g.F4("intro"),this.T),this.C.removeEventListener(g.xx("intro"),this.V),this.C.removeEventListener("onShowControls",this.L),this.hide(),this.N=!1):(this.C.addEventListener(g.F4("intro"),this.T),this.C.addEventListener(g.xx("intro"),this.V),this.C.addEventListener("onShowControls",this.L),l=new g.X4(this.X$,this.OU,{priority:9,namespace:"intro"}), this.C.RA([l]),this.N=!0))};g.u(Gi,g.f);Gi.prototype.onClick=function(){this.C.Yc()}; Gi.prototype.y5=function(){var l=!0;g.yG(this.C.j())&&(l=l&&this.C.xP().getPlayerSize().width>=480);this.vk(l);this.updateValue("icon",this.C.zE()?{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.u(tGv,g.f);tGv.prototype.oz=function(){this.S=null;g.f.prototype.oz.call(this)};g.u(m2,g.f);m2.prototype.onClick=function(){this.C.lF("innertubeCommand",this.W)}; m2.prototype.Y=function(l){l!==this.V&&(this.update({title:l,ariaLabel:l}),this.V=l);l?this.show():this.hide()}; m2.prototype.G=function(){this.S.disabled=this.W==null;g.wP(this.S,"ytp-chapter-container-disabled",this.S.disabled);this.tC()};g.u(IX,m2);IX.prototype.onClickCommand=function(l){g.z(l,vy)&&this.tC()}; IX.prototype.updateVideoData=function(l,n){var O,L,X;l=g.z((O=n.getWatchNextResponse())==null?void 0:(L=O.playerOverlays)==null?void 0:(X=L.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,DY);O=g.z(l==null?void 0:l.playerBarActionButton,g.dm);this.C.J("web_player_updated_entrypoint")&&(this.T=PJ(O==null?void 0:O.text));this.W=O==null?void 0:O.command;m2.prototype.G.call(this)}; IX.prototype.tC=function(){var l=this.C.J("web_player_updated_entrypoint")?this.T:"",n=this.L.S,O,L=((O=this.C.getLoopRange())==null?void 0:O.type)==="clips";if(n.length>1&&!L){l=this.C.getProgressState().current*1E3;O=uq(n,l);l=n[O].title||"Chapters";if(O!==this.currentIndex||this.N)this.C.lF("innertubeCommand",n[O].onActiveCommand),this.currentIndex=O;this.N=!1}else this.N=!0;m2.prototype.Y.call(this,l)};g.u(d5,g.f);d5.prototype.L=function(l){g.K(l.state,32)?lSg(this,this.api.LM()):this.Qp&&(g.K(l.state,16)||g.K(l.state,1))||this.fade.hide()}; d5.prototype.Mn=function(){var l=this.api.getPlayerStateObject();(g.K(l,32)||g.K(l,16))&&nl5(this)}; d5.prototype.V=function(){this.W=NaN;nl5(this)}; d5.prototype.hide=function(){this.S&&lSg(this,null);g.f.prototype.hide.call(this)};g.u(Ogi,g.f);g.h=Ogi.prototype;g.h.onClick=function(){var l=this;if(this.C.j().JA||this.C.j().G){this.C.logClick(this.element);try{this.C.toggleFullscreen().catch(function(n){l.rf(n)})}catch(n){this.rf(n)}}else cD(this.message,this.element,!0)}; g.h.rf=function(l){String(l).includes("fullscreen error")?g.d2(l):g.Ir(l);this.hf()}; g.h.hf=function(){this.disable();this.message.In(this.element,!0)}; g.h.qG=function(){Pk()===this.C.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.h.t4=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var l=window.screen.width*.9,n=window.screen.height*.9,O=Math.max(window.outerWidth,window.innerWidth),L=Math.max(window.outerHeight,window.innerHeight);if(O>L!==l>n){var X=O;O=L;L=X}l>O&&n>L&&this.hf()}}; g.h.disable=function(){var l=this;if(!this.message){var n=(rU(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.V7(this.C,{D:"div",gq:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",tabindex:"0"},K:[n[0],{D:"a",Z:{href:"https://support.google.com/youtube/answer/6276924", target:this.C.j().Y},hG:n[2]},n[4]]},100,!0);this.message.hide();g.c(this,this.message);this.message.subscribe("show",function(O){l.W.Ha(l.message,O)}); g.jR(this.C,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.S)();this.S=null}}; g.h.y5=function(){var l=lb0(this.C),n=this.C.j().G&&this.C.getPlayerSize().width<250;this.vk(l&&!n);var O;((O=this.C.j())==null?0:O.J("embeds_use_parent_visibility_in_ve_logging"))?this.C.logVisibility(this.element,this.Qp&&this.B):this.C.logVisibility(this.element,this.Qp)}; g.h.x6=function(l){if(l){var n={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"g",X:"ytp-fullscreen-button-corner-2",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",X:"ytp-fullscreen-button-corner-3",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",X:"ytp-fullscreen-button-corner-0",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g", X:"ytp-fullscreen-button-corner-1",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};l=g.Nc(this.C,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.C.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(O){g.d2(O)})}else n={D:"svg", Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"g",X:"ytp-fullscreen-button-corner-0",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",X:"ytp-fullscreen-button-corner-1",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",X:"ytp-fullscreen-button-corner-2",K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",X:"ytp-fullscreen-button-corner-3", K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},l=g.Nc(this.C,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});l=this.message?null:l;this.update({title:l,icon:n});this.W.VE().h2()}; g.h.oz=function(){this.message||((0,this.S)(),this.S=null);g.f.prototype.oz.call(this)}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);var n;((n=this.C.j())==null?0:n.J("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Qp&&l)};g.u($3,g.f);$3.prototype.onClick=function(){this.C.logClick(this.element);this.C.seekBy(this.S,!0);var l=this.S>0?1:-1,n=Math.abs(this.S),O=this.C.Fx().eZ;O&&HA(O,l,n);this.W.isActive()?this.N=!0:(l=["ytp-jump-spin"],this.S<0&&l.push("backwards"),this.element.classList.add.apply(this.element.classList,g.E(l)),g.lx(this.W))};g.u(V0,m2);V0.prototype.onClickCommand=function(l){g.z(l,Xdq)&&this.tC()}; V0.prototype.updateVideoData=function(){var l,n;this.W=(l=LS5(this))==null?void 0:(n=l.onTap)==null?void 0:n.innertubeCommand;m2.prototype.G.call(this)}; V0.prototype.tC=function(){var l="",n=this.L.T,O,L=(O=LS5(this))==null?void 0:O.headerTitle;O=L?g.Uw(L):"";var X;L=((X=this.C.getLoopRange())==null?void 0:X.type)==="clips";n.length>1&&!L&&(l=this.C.getProgressState().current*1E3,X=AQg(n,l),l=X!=null?n[X].title:O,X!=null&&X!==this.currentIndex&&(this.C.lF("innertubeCommand",n[X].onActiveCommand),this.currentIndex=X));m2.prototype.Y.call(this,l)};g.u(BA,g.f);BA.prototype.onClick=function(){this.C.lF("onCollapseMiniplayer");this.C.logClick(this.element)}; BA.prototype.y5=function(){this.visible=!this.C.isFullscreen();this.vk(this.visible);this.C.logVisibility(this.element,this.visible&&this.B)}; BA.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.C.logVisibility(this.element,this.visible&&l)};g.u(cA,g.f);g.h=cA.prototype;g.h.Ul=function(l){this.visible=l.width>=300||this.Cf;this.vk(this.visible);this.C.logVisibility(this.element,this.visible&&this.B)}; g.h.jnq=function(){this.C.j().wq?this.C.isMuted()?this.C.unMute():this.C.mute():cD(this.message,this.element,!0);this.C.logClick(this.element)}; g.h.onVolumeChange=function(l){this.setVolume(l.volume,l.muted)}; g.h.setVolume=function(l,n){var O=this,L=n?0:l/100,X=this.C.j();l=L===0?1:l>50?1:0;if(this.V!==l){var F=this.NQ;isNaN(F)?FSi(this,l):ybi(this.Lf,function(Z){FSi(O,F+(O.V-F)*Z)},250); this.V=l}L=L===0?1:0;if(this.L!==L){var x=this.Y;isNaN(x)?xZ5(this,L):ybi(this.Wm,function(Z){xZ5(O,x+(O.L-x)*Z)},250); this.L=L}X.wq&&(X=g.Nc(this.C,"Mute","m"),L=g.Nc(this.C,"Unmute","m"),this.updateValue("title",n?L:X),this.update({"data-title-no-tooltip":n?"Unmute":"Mute"}),this.tooltip.h2())}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);this.C.logVisibility(this.element,this.visible&&l)}; var X9q=["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"],oli=["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.u(g.iq,g.f);g.h=g.iq.prototype;g.h.onStateChange=function(l){this.OC(l.state);var n;((n=this.C.j())==null?0:n.J("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Qp&&this.B)}; g.h.OC=function(l){var n=g.kZ(this.C.getVideoData()),O=!1;l.isOrWillBePlaying()?l=n?4:2:g.K(l,2)?(l=3,O=n):l=1;this.element.disabled=O;if(this.S!==l){n=null;switch(l){case 2:n=g.Nc(this.C,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:n="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:n=g.Nc(this.C,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:n="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}l=== 3?this.update({title:n,icon:hLe(l)}):(this.update({title:n}),(n=hLe(l))&&this.S&&this.S!==3?QX0(this.transition,this.element,n):this.updateValue("icon",n));this.tooltip.h2();this.S=l}}; g.h.onVideoDataChange=function(){g.wP(this.element,"ytp-play-button-playlist",g.Mc(this.C))}; g.h.by=function(l){this.C.logClick(this.element);if(this.C.getPlayerStateObject().isOrWillBePlaying())this.C.pauseVideo();else{if(this.C.isMinimized()&&this.C.getPlayerStateObject().isCued()){var n={},O;if((O=this.C.getVideoData())==null?0:O.V)n.cttAuthInfo={token:this.C.getVideoData().V,videoId:this.C.getVideoData().videoId};S$("direct_playback",n);this.C.GE().timerName="direct_playback"}else this.S!==3||this.C.j().J("html5_no_csi_on_replay")||W8(this.C.GE());this.C.playVideo()}this.C.isMinimized()&& (l==null?void 0:l.type)==="click"&&this.element.blur()}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);var n;((n=this.C.j())==null?0:n.J("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Qp&&l)};g.u(g.zi,g.f);g.h=g.zi.prototype;g.h.onVideoDataChange=function(){Jdk(this);this.L&&(this.EC(this.L),this.L=null);this.videoData=this.C.getVideoData(1);if(this.playlist=this.C.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.L=this.U(this.C,"progresssync",this.HA);this.N=w95(this);Zgf(this);this.Hx(this.C.xP().getPlayerSize())}; g.h.Hx=function(l){l=l===void 0?this.C.xP().getPlayerSize():l;var n,O=((n=this.C.getLoopRange())==null?void 0:n.type)==="clips";l=(g.Mc(this.C)||this.S&&g.GM(this.C)&&!this.C.J("web_hide_next_button")||Hge(this))&&!O&&(this.S||l.width>=400);this.vk(l);this.C.logVisibility(this.element,l)}; g.h.onClick=function(l){this.C.logClick(this.element);var n=!0;this.T?n=g.gk(l,this.C):l.preventDefault();n&&(this.S&&this.C.getPresentingPlayerType()===5?this.C.publish("ytoprerollinternstitialnext"):this.S?(W8(this.C.GE()),this.C.publish("playlistnextbuttonclicked",this.element),this.C.nextVideo(!0)):this.N?this.C.seekTo(0):(W8(this.C.GE()),this.C.publish("playlistprevbuttonclicked",this.element),this.C.previousVideo(!0)))}; g.h.HA=function(){var l=w95(this);l!==this.N&&(this.N=l,Zgf(this))}; g.h.oz=function(){this.W&&(this.W(),this.W=null);Jdk(this);g.f.prototype.oz.call(this)};g.u(bg7,g.f);g.h=bg7.prototype;g.h.Ji=function(l){this.J1(l.pageX);this.gg(l.pageX+l.deltaX);rd9(this)}; g.h.J1=function(l){this.Wm=l-this.Hm}; g.h.gg=function(l){l-=this.Hm;!isNaN(this.Wm)&&this.thumbnails.length>0&&(this.Y=l-this.Wm,this.thumbnails.length>0&&this.Y!==0&&(this.N=this.G+this.Y,l=WS8(this,this.N),this.N<=this.S/2&&this.N>=Tqe(this)?(this.api.seekTo(l,!1,void 0,void 0,25),g.HH(this.Q5,"transform","translateX("+(this.N-this.S/2)+"px)"),Adq(this,l)):this.N=this.G))}; g.h.gC=function(){this.NQ&&(this.NQ.xf=!0);var l=(0,g.Q_)()-this.Fi<300;if(Math.abs(this.Y)<5&&!l){this.Fi=(0,g.Q_)();l=this.Wm+this.Y;var n=this.S/2-l;this.J1(l);this.gg(l+n);rd9(this);this.api.logClick(this.V)}rd9(this)}; g.h.sA=function(){S2(this,this.api.getCurrentTime())}; g.h.play=function(l){this.api.seekTo(WS8(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();l&&this.api.logClick(this.playButton)}; g.h.onExit=function(l){this.api.seekTo(this.wq,void 0,void 0,void 0,63);this.api.playVideo();l&&this.api.logClick(this.dismissButton)}; g.h.x4=function(l,n){this.Hm=l;this.S=n;S2(this,this.api.getCurrentTime())}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.wq=this.api.getCurrentTime(),Adq(this,this.wq),g.wP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.z3=this.U(this.element,"wheel",this.Ji),this.logVisibility(this.isEnabled))}; g.h.disable=function(){this.isEnabled=!1;this.hide();g.wP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.z3&&this.EC(this.z3);this.logVisibility(this.isEnabled)}; g.h.reset=function(){this.disable();this.L=[];this.Cf=!1}; g.h.logVisibility=function(l){this.api.logVisibility(this.element,l);this.api.logVisibility(this.V,l);this.api.logVisibility(this.dismissButton,l);this.api.logVisibility(this.playButton,l)}; g.h.oz=function(){for(;this.W.length;){var l=void 0;(l=this.W.pop())==null||l.dispose()}g.f.prototype.oz.call(this)}; g.u(UZ8,g.f);g.u(uJ9,g.f);g.u(Elg,g.f);g.u(pT,g.f);pT.prototype.De=function(l){return l==="PLAY_PROGRESS"?this.G:l==="LOAD_PROGRESS"?this.T:l==="LIVE_BUFFER"?this.V:this.N};qb8.prototype.update=function(l,n,O,L){O=O===void 0?0:O;this.width=n;this.L=O;this.S=n-O-(L===void 0?0:L);this.position=g.hR(l,O,O+this.S);this.N=this.position-O;this.W=this.N/this.S};g.u(k9g,g.f);g.u(g.KT,g.Aj);g.h=g.KT.prototype; g.h.RW=function(){var l=!1,n=this.api.getVideoData();if(!n)return l;this.api.cS("timedMarkerCueRange");Q9k(this);for(var O=g.P(n.uv),L=O.next();!L.done;L=O.next()){L=L.value;var X=void 0,F=(X=this.wq[L])==null?void 0:X.markerType;X=void 0;var x=(X=this.wq[L])==null?void 0:X.markers;if(!x)break;if(F==="MARKER_TYPE_TIMESTAMPS"){l=g.P(x);for(F=l.next();!F.done;F=l.next()){X=F.value;F=new k9g;x=void 0;F.title=((x=X.title)==null?void 0:x.simpleText)||"";F.timeRangeStartMillis=Number(X.startMillis);F.S= Number(X.durationMillis);var Z=x=void 0;F.onActiveCommand=(Z=(x=X.onActive)==null?void 0:x.innertubeCommand)!=null?Z:void 0;ISi(this,F)}dZ5(this,this.T);l=this.T;F=this.At;X=[];x=null;for(Z=0;Z<l.length;Z++){var J=l[Z].timeRangeStartMillis;if(!isNaN(J)&&l[Z].onActiveCommand){var w=void 0,H=(w=l[Z].S)!=null?w:1E4;x&&x.end>J&&(x.end=J);J=UNa(J,J+H);X.push(J);x=J;F[J.id]=l[Z].onActiveCommand}}this.api.RA(X);this.OU=this.wq[L];l=!0}else if(F==="MARKER_TYPE_HEATMAP"){L=this.wq[L];H=w=X=J=Z=x=void 0;if(L&& L.markers){F=(X=(H=L.markersMetadata)==null?void 0:(w=H.heatmapMetadata)==null?void 0:w.minHeightDp)!=null?X:0;X=(x=(J=L.markersMetadata)==null?void 0:(Z=J.heatmapMetadata)==null?void 0:Z.maxHeightDp)!=null?x:60;x=this.S.length;Z=null;for(J=0;J<x;J++){H=this.S[J].startTime;var A=J===x-1?Infinity:this.S[J+1].startTime;J===this.L.length&&M05(this);w=[];Z&&w.push(Z);for(var b=g.P(L.markers),r=b.next();!r.done;r=b.next()){r=r.value;var U=Number(r.startMillis);U>=H&&U<=A&&w.push(r)}X>0&&(this.NQ.style.height= X+"px");H=this.L[J];A=w;r=F;var W=X,N=J===0;N=N===void 0?!1:N;Nq8(H,W);b=A;U=H.W;N=N===void 0?!1:N;var q=1E3/b.length,y=[];y.push({x:0,y:100});for(var e=0;e<b.length;e++){var d=(e+.5)*q,B=100-g.hR((b[e].intensityScoreNormalized||0)*100,r/U*100,W/U*100);e!==0||N||y.push({x:0,y:B});y.push({x:d,y:B});e===b.length-1&&y.push({x:1E3,y:B})}y.push({x:1E3,y:100});b=y;A=A.length===0?"":vji(b);H.api.J("delhi_modern_web_player")?H.N.setAttribute("d",A):H.V.setAttribute("d",A);H.MP=A!=="";g.wP(H.api.getRootNode(), "ytp-heat-map",H.MP);H.api.J("delhi_modern_web_player")&&(H.N.style.display="block",H.L.style.display="none",H.S.style.display="none");w.length>0&&(Z=w[w.length-1])}g.aX(this)}X=void 0;F=[];if(L=(X=L.markersDecoration)==null?void 0:X.timedMarkerDecorations)for(L=g.P(L),X=L.next();!X.done;X=L.next())X=X.value,J=Z=x=void 0,F.push({visibleTimeRangeStartMillis:(x=X.visibleTimeRangeStartMillis)!=null?x:-1,visibleTimeRangeEndMillis:(Z=X.visibleTimeRangeEndMillis)!=null?Z:-1,decorationTimeMillis:(J=X.decorationTimeMillis)!= null?J:NaN,label:X.label?g.Uw(X.label):""});L=F;this.heatMarkersDecorations=L}}n.OQ=this.T;g.wP(this.element,"ytp-timed-markers-enabled",l);return l}; g.h.x4=function(){g.aX(this);tb(this);dZ5(this,this.T);if(this.W){var l=g.WH(this.element).x||0;this.W.x4(l,this.V)}}; g.h.onClickCommand=function(l){if(l=g.z(l,vy)){var n=l.key;l.isVisible&&n&&cd9(this,n)}}; g.h.ubG=function(l){this.api.lF("innertubeCommand",this.At[l.id])}; g.h.tC=function(){tb(this);var l=this.api.getCurrentTime();(l<this.clipStart||l>this.clipEnd)&&this.z_()}; g.h.zl=function(l){if(!l.defaultPrevented){var n=!1;switch(l.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);n=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);n=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);n=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);n=!0;break;case 38:this.api.J("enable_key_press_seek_logging")&&Ls(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);n=!0;break;case 40:this.api.J("enable_key_press_seek_logging")&&Ls(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),n=!0}n&&l.preventDefault()}}; g.h.yr=function(l,n){this.updateVideoData(n,l==="newdata")}; g.h.WJJ=function(){this.yr("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(l,n){n=n===void 0?!1:n;var O=!!l&&l.MP();if(O&&(vf(l)||s98(this)?this.j7=!1:this.j7=l.allowLiveDvr,g.wP(this.api.getRootNode(),"ytp-enable-live-buffer",!(l==null||!vf(l))),this.api.J("enable_custom_playhead_parsing"))){var L,X,F,x=g.z((L=l.getWatchNextResponse())==null?void 0:(X=L.playerOverlays)==null?void 0:(F=X.playerOverlayRenderer)==null?void 0:F.decoratedPlayerBarRenderer,DY);if(x==null?0:x.progressColor)for(L=0;L<this.S.length;L++)this.S[L].De("PLAY_PROGRESS").style.background= g.ir(x.progressColor);x=g.z(x==null?void 0:x.playhead,qtc);var Z,J;L=(x==null?void 0:(Z=x.playheadImage)==null?void 0:Z.thumbnails)&&(x==null?void 0:(J=x.playheadImage)==null?void 0:J.thumbnails[0].url);g.wP(this.ea,"ytp-decorated-scrubber-container",!!L);var w;if(x==null?0:(w=x.loggingDirectives)==null?0:w.trackingParams){var H;this.api.setTrackingParams(this.Xg,x==null?void 0:(H=x.loggingDirectives)==null?void 0:H.trackingParams);this.api.createServerVe(this.Xg,this)}L&&(this.Xg.src=L)}Lwe(this, this.api.qJ());if(n){if(O){n=l.clipEnd;this.clipStart=l.clipStart;this.clipEnd=n;X0(this);for(ns(this,this.Y,this.Of);this.L.length>0;)this.L.pop().dispose();this.heatMarkersDecorations=[];this.uv={};var A;(A=this.W)==null||A.reset();ZJ(this);g.wP(this.api.getRootNode(),"ytp-fine-scrubbing-exp",fT(this))}else this.z_();this.CM()}if(l){var b;A=((b=this.Hj)==null?void 0:b.type)==="clips";if(b=!l.isLivePlayback){b=this.api.getVideoData();n=g.qW(b);O=Ybi(b);var r;b=n!=null||O!=null&&O.length>0||((r=b.Zy)== null?void 0:r.length)>0}if(b&&!A){r=this.api.getVideoData();A=g.qW(r);b=!1;if(A==null?0:A.markersMap){b=this.api.getVideoData();var U;b.Al=((U=A.visibleOnLoad)==null?void 0:U.key)||b.Al;U=g.P(A.markersMap);for(A=U.next();!A.done;A=U.next())A=A.value,A.key&&A.value&&(this.uv[A.key]=A.value,A.value.onChapterRepeat&&(b.mV=A.value.onChapterRepeat));b.Al!=null&&cd9(this,b.Al);b=!0}var W;if(((W=r.Zy)==null?void 0:W.length)>0){W=g.lT.getState().entities;U=g.P(r.Zy);for(A=U.next();!A.done;A=U.next())if(A= A.value,O=void 0,n=(O=J9(W,"macroMarkersListEntity",A))==null?void 0:O.markersList,Z=O=void 0,((O=n)==null?void 0:O.markerType)==="MARKER_TYPE_TIMESTAMPS"||((Z=n)==null?void 0:Z.markerType)==="MARKER_TYPE_HEATMAP")this.wq[A]=n;b=this.RW()||b}!b&&(W=Ybi(r))&&(G9i(this,W),r.YW=this.S,j98(this));fS5(this,null);l.SB&&this.L.length===0&&(l=l.SB,W=l.key,l.isVisible&&W&&cd9(this,W))}else ydk(this),Q9k(this)}tb(this)}; g.h.Nqz=function(l){this.G&&!g.K(l.state,32)&&this.api.getPresentingPlayerType()!==3&&this.G.cancel();var n;((n=this.W)==null?0:n.isEnabled)&&g.K(l.state,8)&&this.api.pauseVideo();l=this.api.getPresentingPlayerType()===2||!this.api.qJ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.wP(this.q_,"ytp-hide-scrubber-button",l)}; g.h.A0=function(l){var n=!!this.Hj!==!!l,O=this.Hj;this.Hj=l;fS5(this,O);(l==null?void 0:l.type)!=="clips"&&l||(l?(this.updateValue("clipstarticon",qy5()),this.updateValue("clipendicon",qy5()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",U3v()),this.updateValue("clipendicon",rGi()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),n&&(this.updateVideoData(this.api.getVideoData(), !0),g.aX(this)),X0(this));ns(this,this.Y,this.Of)}; g.h.SKz=function(l,n,O){var L=g.WH(this.element),X=CT(this).S,F=O?O.getAttribute("data-tooltip"):void 0,x=O?O.getAttribute("data-position"):void 0,Z=O?O.getAttribute("data-offset-y"):void 0;Z=Z?Number(Z):0;x&&(l=dy(this.N,Number(O.getAttribute("data-position")),0)*X+g.WH(this.progressBar).x);this.nf.x=l-L.x;this.nf.y=n-L.y;l=CT(this);O=gN(this,l);n=0;var J;if((J=this.api.getVideoData())==null?0:vf(J))(J=this.api.getProgressState().seekableEnd)&&O>J&&(O=J,l.position=dy(this.N,J)*CT(this).S),n=this.N.W; s98(this)&&(n=this.N.W);J=F||g.k7(this.j7?O-this.N.S:O-n);n=l.position+this.D9;O-=this.api.ez();var w;if((w=this.W)==null||!w.isEnabled)if(this.api.LM()){if(this.S.length>1){w=Om(this,this.nf.x,!0);if(!this.Hj)for(L=0;L<this.S.length;)g.wP(this.S[L].S,"ytp-exp-chapter-hover-effect",L===w),L++;if(this.L.length>1)for(L=0;L<this.S.length;L++)g.wP(this.L[L].element,"ytp-heatmap-hover",L===w)}if(this.T.length>0)for(w=this.nf.x,L=g.P(this.T),X=L.next();!X.done;X=L.next())X=X.value,x=RX(this,X.timeRangeStartMillis/ (this.N.S*1E3),CT(this)),g.wP(X.element,"ytp-timed-marker-hover",x<=w&&x+6>=w);L=this.tooltip.scale;Z=(isNaN(Z)?0:Z)-45*L;this.api.J("web_key_moments_markers")?this.OU?(w=AQg(this.T,O*1E3),w=w!=null?this.T[w].title:""):(w=uq(this.S,O*1E3),w=this.S[w].title):(w=uq(this.S,O*1E3),w=this.S[w].title);w||(Z+=16*L);this.tooltip.scale===.6&&(g.a5(this.api.j())?(Z=this.api.xP().getPlayerSize().height-225,Z=w?Z+110:Z+110+16):Z=w?110:126);L=uq(this.S,O*1E3);this.Q5=KS5(this,O,L)?L:KS5(this,O,L+1)?L+1:-1;g.wP(this.api.getRootNode(), "ytp-progress-bar-snap",this.Q5!==-1&&this.S.length>1);L=!1;X=g.P(this.heatMarkersDecorations);for(x=X.next();!x.done;x=X.next()){x=x.value;var H=O*1E3;H>=x.visibleTimeRangeStartMillis&&H<=x.visibleTimeRangeEndMillis&&(w=x.label,J=g.k7(x.decorationTimeMillis/1E3),L=!0)}this.d8!==L&&(this.d8=L,this.api.logVisibility(this.z$,this.d8));g.wP(this.api.getRootNode(),"ytp-progress-bar-decoration",L);L=160*this.tooltip.scale*2;X=w.length*(this.Wm?8.55:5.7);X=X<=L?X:L;x=X<160*this.tooltip.scale;L=3;!x&&X/ 2>l.position&&(L=1);!x&&X/2>this.V-l.position&&(L=2);this.api.j().G&&(Z-=10);this.L.length&&this.L[0].MP&&(Z-=14*(this.Wm?2:1),this.z3||(this.z3=!0,this.api.logVisibility(this.NQ,this.z3)));var A;if(fT(this)&&(((A=this.W)==null?0:A.isEnabled)||this.Pm>0)){var b;Z-=((b=this.W)==null?0:b.isEnabled)?F0(this):this.Pm}A=void 0;fT(this)&&!this.api.J("web_player_hide_fine_scrubbing_edu")&&(A="Pull up for precise seeking",this.Cf||(this.Cf=!0,this.api.logVisibility(this.M5,this.Cf)));this.tooltip.v7(n,O, J,!!F,Z,w,L,A)}else this.tooltip.v7(n,O,J,!!F,Z);g.FW(this.api.getRootNode(),"ytp-progress-bar-hover");p99(this)}; g.h.uom=function(){this.CM();g.ZW(this.api.getRootNode(),"ytp-progress-bar-hover");this.z3&&(this.z3=!1,this.api.logVisibility(this.NQ,this.z3));this.Cf&&(this.Cf=!1,this.api.logVisibility(this.M5,this.Cf))}; g.h.xPo=function(l,n){fT(this)&&this.W&&(this.W.Cf?S2(this.W,this.api.getCurrentTime()):PRk(this.W),this.W.show(),g.wP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.oA&&(this.oA.dispose(),this.oA=null);this.Ip=n;this.lf=this.api.getCurrentTime();this.S.length>1&&this.Q5!==-1?this.api.seekTo(this.S[this.Q5].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(gN(this,CT(this)),!1,void 0,void 0,7);g.FW(this.element,"ytp-drag");(this.IA=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.h.WGG=function(){if(fT(this)&&this.W){var l=F0(this);this.Pm>=l*.5?(this.W.enable(),S2(this.W,this.api.getCurrentTime()),gLe(this,l)):ZJ(this)}if(g.K(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var n;if((n=this.W)==null?0:n.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.S.length>1&&this.Q5!==-1)this.api.J("html5_enable_progress_bar_slide_seek_logging")&&Ls(this,this.lf,this.S[this.Q5].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.S[this.Q5].startTime/1E3,void 0,void 0,void 0,7);else{l=gN(this,CT(this));this.api.J("html5_enable_progress_bar_slide_seek_logging")&&Ls(this,this.lf,l,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(l,void 0,void 0,void 0,7);n=g.P(this.heatMarkersDecorations);for(var O=n.next();!O.done;O=n.next())O=O.value,l*1E3>=O.visibleTimeRangeStartMillis&&l*1E3<=O.visibleTimeRangeEndMillis&& this.api.logClick(this.z$)}g.ZW(this.element,"ytp-drag");this.IA&&!g.K(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.h.N8m=function(l,n){l=CT(this);l=gN(this,l);this.api.seekTo(l,!1,void 0,void 0,7);var O;fT(this)&&((O=this.W)==null?0:O.Cf)&&(S2(this.W,l),this.W.isEnabled||(O=F0(this),this.Pm=g.hR(this.Ip-n-10,0,O),gLe(this,this.Pm)))}; g.h.CM=function(){this.tooltip.J8()}; g.h.WY=function(){this.Hj||(this.updateValue("clipstarticon",b1k()),this.updateValue("clipendicon",b1k()),g.FW(this.element,"ytp-clip-hover"))}; g.h.Sx=function(){this.Hj||(this.updateValue("clipstarticon",U3v()),this.updateValue("clipendicon",rGi()),g.ZW(this.element,"ytp-clip-hover"))}; g.h.z_=function(){this.clipStart=0;this.clipEnd=Infinity;X0(this);ns(this,this.Y,this.Of)}; g.h.f9G=function(l){l=g.P(l);for(var n=l.next();!n.done;n=l.next())if(n=n.value,n.visible){var O=n.getId();if(!this.Hm[O]){var L=g.nf("DIV");n.tooltip&&L.setAttribute("data-tooltip",n.tooltip);this.Hm[O]=n;this.n5[O]=L;g.XW(L,n.style);aSf(this,O);this.api.j().J("disable_ad_markers_on_content_progress_bar")||this.S[0].L.appendChild(L)}}else O95(this,n)}; g.h.vY5=function(l){l=g.P(l);for(var n=l.next();!n.done;n=l.next())O95(this,n.value)}; g.h.m0=function(l){this.W&&(this.W.onExit(l!=null),ZJ(this))}; g.h.Ro=function(l){this.W&&(this.W.play(l!=null),ZJ(this))}; g.h.b2G=function(){Lwe(this,this.api.qJ())}; g.h.oz=function(){Lwe(this,!1);g.Aj.prototype.oz.call(this)};g.u(JE,g.f);JE.prototype.isActive=function(){return!!this.C.getOption("remote","casting")}; JE.prototype.y5=function(){var l=!1;this.C.getOptions().includes("remote")&&(l=this.C.getOption("remote","receivers").length>1);this.vk(l&&this.C.xP().getPlayerSize().width>=400);this.C.logVisibility(this.element,this.Qp);var n=1;l&&this.isActive()&&(n=2);if(this.S!==n){this.S=n;switch(n){case 1:this.updateValue("icon",{D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Lp:!0,Z:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.AGa())}g.wP(this.element,"ytp-remote-button-active",this.isActive())}}; JE.prototype.W=function(){if(this.C.getOption("remote","quickCast"))this.C.setOption("remote","quickCast",!0);else{var l=this.C5,n=this.element;if(l.iV())l.Te();else{l.initialize();a:{var O=g.P(l.L1.items);for(var L=O.next();!L.done;L=O.next())if(L=L.value,L.priority===1){O=L;break a}O=null}O&&(O.open(),l.In(n));l.In(n)}}this.C.logClick(this.element)};g.u(wN,g.f);wN.prototype.S=function(l){var n=this.C.j(),O=400;this.C.J("web_player_small_hbp_settings_menu")&&n.V?O=300:n.G&&(O=200);l=this.W&&l.width>=O;this.vk(l);this.C.J("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,l&&this.B):this.C.logVisibility(this.element,l)}; wN.prototype.N=function(){if(this.C5.Qp)this.C5.Te();else{var l=g.G4(this.C.dc());l&&!l.loaded&&(l.oN("tracklist",{includeAsr:!0}).length||l.load());this.C.logClick(this.element);this.C5.In(this.element)}}; wN.prototype.updateBadge=function(){var l=this.C.isHdr(),n=this.C.getPresentingPlayerType(),O=n!==2&&n!==3,L=g.YA(this.C),X=O&&!!g.eR(this.C.dc());n=X&&L.displayMode===1;L=X&&L.displayMode===2;O=(X=n||L)||!O?null:this.C.getPlaybackQuality();g.wP(this.element,"ytp-hdr-quality-badge",l);g.wP(this.element,"ytp-hd-quality-badge",!l&&(O==="hd1080"||O==="hd1440"));g.wP(this.element,"ytp-4k-quality-badge",!l&&O==="hd2160");g.wP(this.element,"ytp-5k-quality-badge",!l&&O==="hd2880");g.wP(this.element,"ytp-8k-quality-badge", !l&&O==="highres");g.wP(this.element,"ytp-3d-badge-grey",!l&&X&&n);g.wP(this.element,"ytp-3d-badge",!l&&X&&L)};g.u(Hl,ne);Hl.prototype.isLoaded=function(){var l=g.B8(this.C.dc());return l!==void 0&&l.loaded}; Hl.prototype.y5=function(){g.B8(this.C.dc())!==void 0&&this.C.getPresentingPlayerType()!==3?this.S||(this.C5.yu(this),this.S=!0):this.S&&(this.C5.UP(this),this.S=!1);O3(this,this.isLoaded())}; Hl.prototype.onSelect=function(l){this.isLoaded();l?this.C.loadModule("annotations_module"):this.C.unloadModule("annotations_module");this.C.publish("annotationvisibility",l)}; Hl.prototype.oz=function(){this.S&&this.C5.UP(this);ne.prototype.oz.call(this)};g.u(AE,g.Ko);AE.prototype.y5=function(){var l=this.C.getAvailableAudioTracks();l.length>1?(this.Qr(g.M9(l,this.S)),this.tracks=g.rQ(l,this.S,this),this.countLabel.NP(l.length?" ("+l.length+")":""),this.publish("size-change"),this.aN(this.S(this.C.getAudioTrack())),this.enable(!0)):this.enable(!1)}; AE.prototype.L2=function(l){g.Ko.prototype.L2.call(this,l);this.C.setAudioTrack(this.tracks[l]);this.C5.eD()}; AE.prototype.S=function(l){return l.toString()};g.u(bw,ne); bw.prototype.W=function(){var l=this.C.getPresentingPlayerType();if(l!==2&&l!==3&&g.GM(this.C))this.S||(this.C5.yu(this),this.S=!0,this.N.push(this.U(this.C,"videodatachange",this.W)),this.N.push(this.U(this.C,"videoplayerreset",this.W)),this.N.push(this.U(this.C,"onPlaylistUpdate",this.W)),this.N.push(this.U(this.C,"autonavchange",this.L)),l=this.C.getVideoData(),this.L(l.autonavState),this.C.logVisibility(this.element,this.S));else if(this.S){this.C5.UP(this);this.S=!1;l=g.P(this.N);for(var n=l.next();!n.done;n= l.next())this.EC(n.value)}}; bw.prototype.L=function(l){O3(this,l!==1)}; bw.prototype.onSelect=function(l){this.C.tI(l?2:1);this.S&&(this.C.logVisibility(this.element,this.S),this.C.logClick(this.element))}; bw.prototype.oz=function(){this.S&&this.C5.UP(this);ne.prototype.oz.call(this)};g.u(oL8,g.SR);oL8.prototype.onClick=function(l){l.preventDefault();var n,O;(n=g.AA(this.C))==null||(O=n.a7())==null||O.Te();var L,X;(L=g.AA(this.C))==null||(X=L.vZ())==null||X.In(l.target)};g.u(Fwq,g.Ko);g.h=Fwq.prototype; g.h.c6=function(){var l=this.C.getPresentingPlayerType();if(l!==2&&l!==3){this.Q5=this.C.Si();l=this.C.getAvailableQualityLevels();if(this.S){this.L={};var n=g.hA(this.C,"getAvailableQualityData",[]);n=g.P(n);for(var O=n.next();!O.done;O=n.next())O=O.value,this.L[O.qualityLabel]=O;n=Object.keys(this.L);l[l.length-1]==="auto"&&n.push("auto");this.Lf=new Set(l)}else if(this.V){O=g.hA(this.C,"getAvailableQualityData",[]);n=[];O=g.P(O);for(var L=O.next();!L.done;L=O.next())L=L.value,this.Y[L.quality]= L,L.quality&&n.push(L.quality);l[l.length-1]==="auto"&&n.push("auto")}else n=l;g.Bfi(this.C)&&this.C.iT()&&n.unshift("missing-qualities");ciq(this.C)&&n.unshift("inline-survey");this.Qr(n);l=this.C.getVideoData().cotn?!0:!1;O=this.NQ.EP();O=!g.a5(this.C.j())||!(l===void 0?0:l)||!(O===void 0||O);l=this.W;O=O===void 0?!1:O;l.N4&&g.wP(l.mJ("ytp-panel-footer"),"ytp-panel-hide-footer",O===void 0?!1:O);if(n.length){this.jn();this.enable(!0);return}}this.enable(!1)}; g.h.jn=function(){if(this.S){var l=this.C.getPreferredQuality();this.Lf.has(l)&&(this.T=this.C.getPlaybackQuality(),this.Wm=this.C.getPlaybackQualityLabel(),l==="auto"?(this.aN(l),this.NP(this.e0(l))):this.aN(this.Wm))}else l=this.C.getPreferredQuality(),this.options[l]&&(this.T=this.C.getPlaybackQuality(),this.aN(l),l==="auto"&&this.NP(this.e0(l)))}; g.h.L2=function(l){if(l!=="missing-qualities"){g.Ko.prototype.L2.call(this,l);var n=this.S?this.L[l]:this.Y[l];var O=n==null?void 0:n.quality,L=n==null?void 0:n.formatId,X=n==null?void 0:n.paygatedQualityDetails;n=X==null?void 0:X.endpoint;if(X){var F;X=(F=this.options[l])==null?void 0:F.element;this.C.logClick(X)}if(this.S){var x,Z;if((x=g.z(n,g.vqO))==null?0:(Z=x.popup)==null?0:Z.notificationActionRenderer)this.C.lF("innertubeCommand",n);else if(n){this.C.lF("innertubeCommand",n);return}L?this.C.setPlaybackQuality(O, L):this.C.setPlaybackQuality(O)}else{if(this.V){var J,w;if((J=g.z(n,g.vqO))==null?0:(w=J.popup)==null?0:w.notificationActionRenderer)this.C.lF("innertubeCommand",n);else if(n){this.C.lF("innertubeCommand",n);return}}this.C.setPlaybackQuality(l)}this.C5.Te();this.c6()}}; g.h.open=function(){for(var l=g.P(Object.values(this.options)),n=l.next();!n.done;n=l.next()){n=n.value;var O=void 0;this.C.hasVe((O=n)==null?void 0:O.element)&&(O=void 0,this.C.logVisibility((O=n)==null?void 0:O.element,!0))}g.Ko.prototype.open.call(this);this.C.logClick(this.element)}; g.h.Sd=function(l,n,O){var L=this;if(l==="missing-qualities")return new g.SR({D:"a",gq:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.C.j().Y,tabindex:"0",role:"menuitemradio"},K:[{D:"div",gq:["ytp-menuitem-label"],hG:"{{label}}"}]},n,this.e0(l));if(l!=="inline-survey"){var X,F=(X=this.S?this.L[l]:this.Y[l])==null?void 0:X.paygatedQualityDetails;X=F==null?void 0:F.veType;F=F==null?void 0:F.trackingParams;n=g.Ko.prototype.Sd.call(this,l,n,O);F?(this.C.createServerVe(n.element, this,!0),this.C.setTrackingParams(n.element,F)):X&&this.C.createClientVe(n.element,this,X,!0);return n}l=[{D:"span",hG:"Looks good?"}];O=g.P([!0,!1]);F=O.next();for(X={};!F.done;X={EO:void 0},F=O.next())X.EO=F.value,F=new g.f({D:"span",X:"ytp-menuitem-inline-survey-response",K:[X.EO?D35():PXi()],Z:{tabindex:"0",role:"button"}}),F.listen("click",function(x){return function(){var Z=L.C.app.AG();Z&&(Z.Sp("iqsr",{tu:x.EO}),Z.getVideoData().B3=!0);L.C5.Te();L.c6()}}(X)),l.push(F); return new g.SR({D:"div",X:"ytp-menuitem",Z:{"aria-disabled":"true"},K:[{D:"div",gq:["ytp-menuitem-label"],K:l}]},n)}; g.h.e0=function(l,n){n=n===void 0?!1:n;if(l==="missing-qualities")return{D:"div",hG:"Missing options?"};if(l==="inline-survey")return"";var O=this.V||this.S?[Z90(this,l,n,!1)]:[hai(this,l)];var L=this.C.getPreferredQuality();n||L!=="auto"||l!=="auto"||(O.push(" "),this.S?O.push(Z90(this,this.Wm,n,!0,["ytp-menu-label-secondary"])):this.V?O.push(Z90(this,this.T,n,!0,["ytp-menu-label-secondary"])):O.push(hai(this,this.T,["ytp-menu-label-secondary"])));return{D:"div",K:O}};g.u(rN,g.f);rN.prototype.init=function(){this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.V);this.updateValue("slidervalue",this.W);Jve(this,this.W)}; rN.prototype.T=function(){w50(this,Number(this.S.value));this.S.focus()};g.u(Um,rN);Um.prototype.T=function(){rN.prototype.T.call(this);this.G&&H98(this)}; Um.prototype.Q5=function(){this.Y()}; Um.prototype.NQ=function(){this.C.setPlaybackRate(this.W,!0)}; Um.prototype.Wm=function(l){if(!l.defaultPrevented){switch(l.code){case "ArrowDown":var n=-this.V;break;case "ArrowUp":n=this.V;break;default:return}w50(this,Math.min(this.L,Math.max(Number((this.W+n).toFixed(2)),this.N)));this.Y();H98(this);l.preventDefault()}};g.u(uw,g.f);g.h=uw.prototype;g.h.init=function(){this.hY(this.S);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.N)}; g.h.wC=function(l){if(!l.defaultPrevented){switch(l.keyCode){case 37:case 40:var n=-this.G;break;case 39:case 38:n=this.G;break;default:return}this.hY(this.S+n);l.preventDefault()}}; g.h.EB=function(l){var n=this.S;n+=(l.deltaX||-l.deltaY)<0?-this.Y:this.Y;this.hY(n);l.preventDefault()}; g.h.qp=function(l){l=(l-g.WH(this.L).x)/this.Wm*this.range+this.W;this.hY(l)}; g.h.hY=function(l,n){n=n===void 0?"":n;l=g.hR(l,this.W,this.N);n===""&&(n=l.toString());this.updateValue("valuenow",l);this.updateValue("valuetext",n);this.NQ.style.left=(l-this.W)/this.range*(this.Wm-this.Cf)+"px";this.S=l}; g.h.focus=function(){this.z3.focus()};g.u(Pl,uw);Pl.prototype.Q5=function(){this.C.setPlaybackRate(this.S,!0)}; Pl.prototype.hY=function(l){uw.prototype.hY.call(this,l,b9i(this,l).toString());this.V&&(Av5(this),this.Lf())}; Pl.prototype.updateValues=function(){var l=this.C.getPlaybackRate();b9i(this,this.S)!==l&&(this.hY(l),Av5(this))};g.u(rva,g.Aj);rva.prototype.focus=function(){this.S.focus()};g.u(U5e,dr);g.u(uSv,g.Ko);g.h=uSv.prototype;g.h.e0=function(l){return l==="1"?"Normal":l.toLocaleString()}; g.h.y5=function(){var l,n=(l=this.C.getVideoData())==null?void 0:l.iK();l=this.C.getPresentingPlayerType(n);this.enable(l!==2&&l!==3);ELa(this)}; g.h.Qr=function(l){g.Ko.prototype.Qr.call(this,l);this.T&&this.T.S.focus()}; g.h.MD=function(l){g.Ko.prototype.MD.call(this,l);l?(this.Wm=this.U(this.C,"onPlaybackRateChange",this.onPlaybackRateChange),ELa(this),TGa(this,this.C.getPlaybackRate())):(this.EC(this.Wm),this.Wm=null)}; g.h.onPlaybackRateChange=function(l){var n=this.C.getPlaybackRate();!this.V&&this.Y.includes(n)||Ww5(this,n);TGa(this,l)}; g.h.Sd=function(l,n,O){return l===this.S&&NGi(this.C)?g.Ko.prototype.Sd.call(this,l,n,O,{D:"div",X:"ytp-speed-slider-menu-footer",K:[this.T]}):g.Ko.prototype.Sd.call(this,l,n,O)}; g.h.L2=function(l){g.Ko.prototype.L2.call(this,l);l===this.S?this.C.setPlaybackRate(this.L,!0):this.C.setPlaybackRate(Number(l),!0);NGi(this.C)&&l===this.S||this.C5.eD()}; g.h.Lx=function(l){var n=l===this.S;this.V=!1;n&&TG(this.C)&&!NGi(this.C)?(l=new U5e(this.C),g.cL(this.C5,l)):g.Ko.prototype.Lx.call(this,l)};g.u(qsq,g.Ko);g.h=qsq.prototype;g.h.aN=function(l){g.Ko.prototype.aN.call(this,l)}; g.h.pD=function(l){return l.option.toString()}; g.h.getOption=function(l){return this.settings[l]}; g.h.e0=function(l){return this.getOption(l).text||""}; g.h.L2=function(l){g.Ko.prototype.L2.call(this,l);this.publish("settingChange",this.setting,this.settings[l].option)};g.u(Wl,g.$8);Wl.prototype.TB=function(l){for(var n=g.P(Object.keys(l)),O=n.next();!O.done;O=n.next()){var L=O.value;if(O=this.eb[L]){var X=l[L].toString();L=!!l[L+"Override"];O.options[X]&&(O.aN(X),O.L.element.setAttribute("aria-checked",String(!L)),O.S.element.setAttribute("aria-checked",String(L)))}}}; Wl.prototype.Ih=function(l,n){this.publish("settingChange",l,n)};g.u(Em,g.Ko);Em.prototype.S=function(l){return l.languageCode}; Em.prototype.e0=function(l){return this.languages[l].languageName||""}; Em.prototype.L2=function(l){this.publish("select",l);this.C.logClick(this.element);g.iU(this.C5)};g.u(MD5,g.Ko);g.h=MD5.prototype;g.h.kp=function(l){return g.Qj(l)?"__off__":l.displayName}; g.h.e0=function(l){return l==="__off__"?"Off":l==="__translate__"?"Auto-translate":l==="__contribute__"?"Add subtitles/CC":l==="__correction__"?"Suggest caption corrections":(l==="__off__"?{}:this.tracks[l]).displayName}; g.h.L2=function(l){if(l==="__translate__")this.S.open();else if(l==="__contribute__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var n=g.IR(this.C.j(),this.C.getVideoData());g.s2(n)}else if(l==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var O=Q$i(this);Nh(this,O);g.Ko.prototype.L2.call(this,this.kp(O));var L,X;O=(n=this.C.getVideoData().getPlayerResponse())==null?void 0:(L=n.captions)==null?void 0:(X=L.playerCaptionsTracklistRenderer)== null?void 0:X.openTranscriptCommand;this.C.lF("innertubeCommand",O);this.C5.eD();this.L&&this.C.logClick(this.L)}else{if(l==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();n=Q$i(this);Nh(this,n);g.Ko.prototype.L2.call(this,this.kp(n));var F,x;n=(O=this.C.getVideoData().getPlayerResponse())==null?void 0:(F=O.captions)==null?void 0:(x=F.playerCaptionsTracklistRenderer)==null?void 0:x.openTranscriptCommand;this.C.lF("innertubeCommand",n)}else this.C.logClick(this.element), Nh(this,l==="__off__"?{}:this.tracks[l]),g.Ko.prototype.L2.call(this,l);this.C5.eD()}}; g.h.y5=function(){var l=this.C.getOptions();l=l&&l.indexOf("captions")!==-1;var n=this.C.getVideoData(),O=n&&n.yh,L,X=!((L=this.C.getVideoData())==null||!g.CN(L));L={};if(l||O){var F;if(l){var x=this.C.getOption("captions","track");L=this.C.getOption("captions","tracklist",{includeAsr:!0});var Z=X?[]:this.C.getOption("captions","translationLanguages");this.tracks=g.rQ(L,this.kp,this);X=g.M9(L,this.kp);var J,w;Q$i(this)&&((F=n.getPlayerResponse())==null?0:(J=F.captions)==null?0:(w=J.playerCaptionsTracklistRenderer)== null?0:w.openTranscriptCommand)&&X.push("__correction__");if(Z.length&&!g.Qj(x)){if((F=x.translationLanguage)&&F.languageName){var H=F.languageName;F=Z.findIndex(function(A){return A.languageName===H}); LDe(Z,F)}kvf(this.S,Z);X.push("__translate__")}F=this.kp(x)}else this.tracks={},X=[],F="__off__";X.unshift("__off__");this.tracks.__off__={};O&&X.unshift("__contribute__");this.tracks[F]||(this.tracks[F]=x,X.push(F));this.Qr(X);this.aN(F);x&&x.translationLanguage?this.S.aN(this.S.S(x.translationLanguage)):ZTq(this.S);l&&this.V.TB(this.C.getSubtitlesUserSettings());this.countLabel.NP(L&&L.length?" ("+L.length+")":"");this.publish("size-change");this.C.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.Tl=function(l){var n=this.C.getOption("captions","track");n=g.jY(n);n.translationLanguage=this.S.languages[l];Nh(this,n)}; g.h.Ih=function(l,n){if(l==="reset")this.C.resetSubtitlesUserSettings();else{var O={};O[l]=n;this.C.updateSubtitlesUserSettings(O)}yv0(this,!0);this.T.start();this.V.TB(this.C.getSubtitlesUserSettings())}; g.h.pSJ=function(l){l||g.OJ(this.T)}; g.h.oz=function(){g.OJ(this.T);g.Ko.prototype.oz.call(this)}; g.h.open=function(){g.Ko.prototype.open.call(this);this.options.__correction__&&!this.L&&(this.L=this.options.__correction__.element,this.C.createClientVe(this.L,this,167341),this.C.logVisibility(this.L,!0))};g.u(eaq,g.BL);g.h=eaq.prototype; g.h.initialize=function(){if(!this.isInitialized){var l=this.C.j();this.isInitialized=!0;try{this.Q1=new Fwq(this.C,this)}catch(O){g.d2(Error("QualityMenuItem creation failed"))}g.c(this,this.Q1);var n=new MD5(this.C,this);g.c(this,n);l.N||(n=new Hl(this.C,this),g.c(this,n));l.enableSpeedOptions&&(n=new uSv(this.C,this),g.c(this,n));(g.yG(l)||l.V)&&(l.W||l.Fi)&&(n=new oL8(this.C,this),g.c(this,n));l.d8&&!l.J("web_player_move_autonav_toggle")&&(l=new bw(this.C,this),g.c(this,l));l=new AE(this.C,this); g.c(this,l);this.C.publish("settingsMenuInitialized");X5a(this.settingsButton,this.L1.vO())}}; g.h.yu=function(l){this.initialize();this.L1.yu(l);X5a(this.settingsButton,this.L1.vO())}; g.h.UP=function(l){this.Qp&&this.L1.vO()<=1&&this.hide();this.L1.UP(l);X5a(this.settingsButton,this.L1.vO())}; g.h.In=function(l){this.initialize();this.L1.vO()>0&&g.BL.prototype.In.call(this,l)}; g.h.Te=function(){this.cw?this.cw=!1:g.BL.prototype.Te.call(this)}; g.h.show=function(){g.BL.prototype.show.call(this);g.FW(this.C.getRootNode(),"ytp-settings-shown")}; g.h.hide=function(){g.BL.prototype.hide.call(this);g.ZW(this.C.getRootNode(),"ytp-settings-shown")}; g.h.mI=function(l){this.C.logVisibility(this.element,l);this.C.publish("settingsMenuVisibilityChanged",l)};g.u(j$9,g.f);g.h=j$9.prototype;g.h.onClick=function(){if(Gvq(this)&&(this.C.toggleSubtitles(),this.C.logClick(this.element),!this.isEnabled())){var l=!1,n=g.SU(g.zK(),65);g.a5(this.C.j())&&n!=null&&(l=!n);l&&this.C.j().J("web_player_nitrate_promo_tooltip")&&this.C.publish("showpromotooltip",this.element)}}; g.h.W1G=function(l){var n,O;(n=g.AA(this.C))==null||(O=n.a7())==null||O.In(l)}; g.h.isEnabled=function(){return!!this.C.getOption("captions","track").displayName}; g.h.y5=function(){var l=Gvq(this),n=300;this.C.j().G&&(n=480);if(this.C.j().V){this.updateValue("title",g.Nc(this.C,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var O=l}else{if(l)(O=this.mJ("ytp-subtitles-button-icon"))==null||O.setAttribute("fill-opacity","1"),this.updateValue("title",g.Nc(this.C,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var L;(L=this.mJ("ytp-subtitles-button-icon"))== null||L.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}O=!0}this.tooltip.h2();O=O&&this.C.xP().getPlayerSize().width>=n;this.vk(O);this.C.J("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,O&&this.B):this.C.logVisibility(this.element,O);l?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);this.C.j().J("embeds_use_parent_visibility_in_ve_logging")&&this.C.logVisibility(this.element,this.Qp&&l)};g.u(g.DJ,g.f);g.h=g.DJ.prototype; g.h.tC=function(){var l=this.api.xP().getPlayerSize().width,n=this.Y;this.api.j().G&&(n=400);n=l>=n&&(!qh(this)||!g.K(this.api.getPlayerStateObject(),64));this.vk(n);g.wP(this.element,"ytp-time-display-allow-autohide",n&&l<400);l=this.api.getProgressState();if(n){n=this.api.getPresentingPlayerType();var O=this.api.getCurrentTime(n,!1);this.W&&(O-=l.airingStart);k1(this)&&(O-=this.Hj.startTimeMs/1E3);k1(this)||qh(this)||!this.N||(O=this.api.getDuration(n,!1)-O);O=g.k7(O);this.L!==O&&(this.updateValue("currenttime", O),this.L=O);n=k1(this)?g.k7((this.Hj.endTimeMs-this.Hj.startTimeMs)/1E3):g.k7(this.api.getDuration(n,!1));this.V!==n&&(this.updateValue("duration",n),this.V=n)}m55(this,l.isAtLiveHead);Irk(this,this.api.getLoopRange())}; g.h.onLoopRangeChange=function(l){var n=this.Hj!==l;this.Hj=l;n&&(this.tC(),d5i(this))}; g.h.eOq=function(){this.api.setLoopRange(null)}; g.h.snz=function(){this.N=!this.N;this.tC()}; g.h.onVideoDataChange=function(l,n,O){this.updateVideoData((this.api.j().J("enable_topsoil_wta_for_halftime")||this.api.j().J("enable_topsoil_wta_for_halftime_live_infra"))&&O===2?this.api.getVideoData(1):n);this.tC();d5i(this)}; g.h.updateVideoData=function(l){this.wf=l.isLivePlayback&&!l.Of;this.W=vf(l);this.isPremiere=l.isPremiere;g.wP(this.element,"ytp-live",qh(this))}; g.h.onClick=function(l){l.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.h.oz=function(){this.S&&this.S();g.f.prototype.oz.call(this)};g.u(VDf,g.f);g.h=VDf.prototype;g.h.qG=function(){var l=this.api.bU();this.N!==l&&(this.N=l,$59(this,this.api.getVolume(),this.api.isMuted()))}; g.h.Ia=function(l){this.vk(l.width>=350)}; g.h.XY=function(l){if(!l.defaultPrevented){var n=l.keyCode,O=null;n===37?O=this.volume-5:n===39?O=this.volume+5:n===36?O=0:n===35&&(O=100);O!==null&&(O=g.hR(O,0,100),O===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(O)),l.preventDefault())}}; g.h.i4=function(l){var n=l.deltaX||-l.deltaY;l.deltaMode?this.api.setVolume(this.volume+(n<0?-10:10)):this.api.setVolume(this.volume+g.hR(n/10,-10,10));l.preventDefault()}; g.h.fZ3=function(){yD(this,this.S,!0,this.W,this.api.nL());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.a5=function(l){var n=this.N?78:52,O=this.N?18:12;l-=g.WH(this.G).x;this.api.setVolume(g.hR((l-O/2)/(n-O),0,1)*100)}; g.h.M3F=function(){yD(this,this.S,!1,this.W,this.api.nL());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; g.h.onVolumeChange=function(l){$59(this,l.volume,l.muted)}; g.h.o2=function(){yD(this,this.S,this.isDragging,this.W,this.api.nL())}; g.h.oz=function(){g.f.prototype.oz.call(this);g.ZW(this.T,"ytp-volume-slider-active")};g.u(Mh,g.f); Mh.prototype.onVideoDataChange=function(){var l=this.api.j();this.x4();this.visible=!!this.api.getVideoData().videoId&&!g.l4(this.api.getVideoData(1));this.vk(this.visible);this.api.logVisibility(this.element,this.visible&&this.B);if(this.visible){var n=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",n)}l.N&&(this.S&&(this.EC(this.S),this.S=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.FW(this.element,"no-link")); n=this.api.j();l=this.api.getVideoData();var O="";n.N||(n=g.SV(n),n.indexOf("www.")===0&&(n=n.substring(4)),O=g.OY(l)?"Watch on YouTube Music":n==="youtube.com"?"Watch on YouTube":g.uN("Watch on $WEBSITE",{WEBSITE:n}));this.updateValue("title",O)}; Mh.prototype.onClick=function(l){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var n=this.api.j(),O=this.api.getVideoUrl(!g.yz(l),!1,!0,!0);if(g.yG(n)){var L={};g.yG(n)&&g.hA(this.api,"addEmbedsConversionTrackingParams",[L]);O=g.pr(O,L)}g.Le(O,this.api,l);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Mh.prototype.x4=function(){var l={D:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{D:"path",Lp:!0,X:"ytp-svg-fill",Z:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, n=28666,O=this.api.getVideoData();this.api.isEmbedsShortsMode()?l={D:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{D:"path",Z:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.OY(O)&&(l={D:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{D:"path",Z:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{D:"path",Z:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{D:"path",Z:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{D:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",Z:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{D:"path",Z:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{D:"path",Z:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{D:"path",Z:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{D:"path",Z:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{D:"path",Z:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{D:"path",Z:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{D:"path",Z:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},n=216163);g.OY(O)?g.FW(this.element,"ytp-youtube-music-button"):g.ZW(this.element,"ytp-youtube-music-button");l.Z=Object.assign({},l.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",l);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,n,!0)}; Mh.prototype.Ge=function(l){g.f.prototype.Ge.call(this,l);this.api.logVisibility(this.element,this.visible&&l)};g.u(cva,g.$B);g.h=cva.prototype;g.h.Mn=function(){if(this.C.J("web_player_max_seekable_on_ended")||!g.K(this.C.getPlayerStateObject(),2))this.progressBar.tC(),this.Cf.tC()}; g.h.xK=function(){this.So();this.Zs.W?this.Mn():this.progressBar.CM()}; g.h.yM=function(){this.Mn();this.G.start()}; g.h.So=function(){var l;if(l=!this.C.j().W){l=this.progressBar;var n=2*g.Kw()*l.V;l=l.N.getLength()*1E3/l.api.getPlaybackRate()/n<300}l=l&&this.C.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;n=!l;this.Zs.W||(l=n=!1);n?this.NQ||(this.NQ=this.U(this.C,"progresssync",this.Mn)):this.NQ&&(this.EC(this.NQ),this.NQ=null);l?this.G.isActive()||this.G.start():this.G.stop()}; g.h.x4=function(){var l=this.C.bU(),n=this.C.xP().getPlayerSize(),O=zag(this),L=Math.max(n.width-O*2,100);if(this.uv!==n.width||this.Yo!==l){this.uv=n.width;this.Yo=l;var X=Sse(this);this.L.element.style.width=X+"px";this.L.element.style.left=O+"px";g.nLg(this.progressBar,O,X,l);this.C.VE().nD=X}O=this.N;L=Math.min(570*(l?1.5:1),L);l=Math.min(413*(l?1.5:1),Math.round((n.height-p5i(this))*.82));O.maxWidth=L;O.maxHeight=l;O.r$();this.So();this.C.j().J("html5_player_dynamic_bottom_gradient")&&CFe(this.Of, n.height)}; g.h.onVideoDataChange=function(){var l=this.C.getVideoData();this.Fi.style.background=l.hh?l.YG:"";this.Wm&&gla(this.Wm,l.showSeekingControls);this.Y&&gla(this.Y,l.showSeekingControls)}; g.h.De=function(){return this.L.element};g.u(s$i,Iy);g.h=s$i.prototype;g.h.Li=function(l){l.target!==this.dismissButton.element&&(this.onClickCommand&&this.C.lF("innertubeCommand",this.onClickCommand),this.LK())}; g.h.LK=function(){this.enabled=!1;this.Y.hide()}; g.h.onVideoDataChange=function(l,n){l==="dataloaded"&&fr8(this);l=[];var O,L,X,F;if(n=(F=g.z((O=n.getWatchNextResponse())==null?void 0:(L=O.playerOverlays)==null?void 0:(X=L.playerOverlayRenderer)==null?void 0:X.suggestedActionsRenderer,Me6))==null?void 0:F.suggestedActions)for(O=g.P(n),L=O.next();!L.done;L=O.next())(L=g.z(L.value,QA6))&&g.z(L.trigger,ymQ)&&l.push(L);if(l.length!==0){O=[];l=g.P(l);for(L=l.next();!L.done;L=l.next())if(L=L.value,X=g.z(L.trigger,ymQ))F=(F=L.title)?g.Uw(F):"View Chapters", n=X.timeRangeStartMillis,X=X.timeRangeEndMillis,n!=null&&X!=null&&L.tapCommand&&(O.push(new g.X4(n,X,{priority:9,namespace:"suggested_action_button_visible",id:F})),this.suggestedActions[F]=L.tapCommand);this.C.RA(O)}}; g.h.Q6=function(){return this.enabled}; g.h.mI=function(){this.enabled?this.wq.start():GF(this);this.o7()}; g.h.oz=function(){fr8(this);Iy.prototype.oz.call(this)};var Dr={},Y1=(Dr.CHANNEL_NAME="ytp-title-channel-name",Dr.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Dr.LINK="ytp-title-link",Dr.SESSIONLINK="yt-uix-sessionlink",Dr.SUBTEXT="ytp-title-subtext",Dr.TEXT="ytp-title-text",Dr.TITLE="ytp-title",Dr);g.u(jd,g.f);jd.prototype.onClick=function(l){this.api.logClick(this.element);var n=this.api.j(),O=this.api.getVideoUrl(!g.yz(l),!1,!0);g.yG(n)&&(n={},g.hA(this.api,"addEmbedsConversionTrackingParams",[n]),O=g.pr(O,n));g.Le(O,this.api,l)}; jd.prototype.y5=function(){var l=this.api.getVideoData(),n=this.api.j();this.updateValue("title",l.title);var O={D:"a",X:Y1.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},hG:"{{channelName}}"};this.api.j().N&&(O={D:"span",X:Y1.CHANNEL_NAME,hG:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",O);Kwi(this);this.api.getPresentingPlayerType()===2&&(O=this.api.getVideoData(),O.videoId&&O.isListed&&O.author&&O.JA&&O.profilePicture?(this.updateValue("channelLink", O.JA),this.updateValue("channelName",O.author),this.updateValue("channelTitleFocusable","0")):Kwi(this));O=n.externalFullscreen||!this.api.isFullscreen()&&n.S5;g.wP(this.link,Y1.FULLERSCREEN_LINK,O);n.NQ||!l.videoId||O||g.l4(l)||n.N?this.S&&(this.updateValue("url",null),this.EC(this.S),this.S=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.S||(this.S=this.U(this.link,"click",this.onClick)));n.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.yG(n)?l.expandedTitle: l.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.u(g.GG,g.f);g.h=g.GG.prototype;g.h.setEnabled=function(l){if(this.type!=null)if(l)switch(this.type){case 3:case 2:Ra0(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.T=l}; g.h.v7=function(l,n,O,L,X,F,x,Z){if(!this.Lf||this.env.G){this.type===3&&this.CM();this.type!==1&&(g.XW(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.T&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.LM())&&this.W.subscribe("l",this.Rq,this));if(Z){var J=g.D2(this.bg).height||141;this.Cf.style.bottom=J+2+"px"}this.update({text:O,title:F!=null?F:"",eduText:Z!=null?Z:""});g.wP(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!F);this.api.isInline()&&g.FW(this.bottomText, "ytp-modern-tooltip-text");g.wP(this.element,"ytp-text-detail",!!L);O=-1;this.W&&(O=m7(this.W,243*this.scale),this.env.J("web_l3_storyboard")&&this.W.levels.length===4&&(O=this.W.levels.length-1),O=wii(this.W,O,n));tDf(this,O);if(x)switch(n=g.D2(this.element).width,x){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=n+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=n/2+"px",this.title.style.textAlign="center"}CPi(this, !!L,l,X)}}; g.h.J8=function(){this.type===1&&this.CM()}; g.h.KY=function(l,n){if(this.type)if(this.type===3)this.CM();else return;ar9(this,l,3,n)}; g.h.h2=function(){this.S&&!this.G&&this.S.hasAttribute("title")&&(this.N=this.S.getAttribute("title")||"",this.S.removeAttribute("title"),this.T&&Ra0(this))}; g.h.Rq=function(l,n){l<=this.L&&this.L<=n&&(l=this.L,this.L=NaN,tDf(this,l))}; g.h.cG1=function(){Z65(this.W,this.L,243*this.scale)}; g.h.CM=function(){switch(this.type){case 2:var l=this.S;l.removeEventListener("mouseout",this.Y);l.addEventListener("mouseover",this.V);l.removeEventListener("blur",this.Y);l.addEventListener("focus",this.V);vL0(this);break;case 3:vL0(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.Rq,this),this.W=null),this.api.removeEventListener("videoready",this.Wm),this.NQ.stop()}this.type=null;this.T&&this.fade.hide()}; g.h.BH=function(){if(this.S)for(var l=0;l<arguments.length;l++)g.Fg(arguments[l],this.S)&&this.CM()}; g.h.oz=function(){this.type!=null&&this.CM();this.W&&this.W.dispose();g.f.prototype.oz.call(this)};g.u(nD5,g.f);g.h=nD5.prototype;g.h.OH=function(){this.visible=OY5(this);this.vk(this.visible);this.icon&&Ld9(this,this.icon);this.C.logVisibility(this.element,this.visible&&this.B)}; g.h.G7=function(){return this.C.getVideoData().videoId}; g.h.onClick=function(){this.C.logClick(this.element);var l=this.C.j(),n=this.G7();l.Q5?ltk(this):gD9(this,n)}; g.h.onReset=function(){this.isRequestPending=this.S=!1;this.y5(2);this.OH()}; g.h.y5=function(l,n){var O=this.C.j();Ld9(this,l);n?this.update({title:n,image:null}):O.userDisplayName?(l={USER_NAME:O.userDisplayName},this.update({title:this.S?g.uN("Added as $USER_NAME",l):g.uN("Watch later as $USER_NAME",l),image:ny(O)})):this.update({title:"Watch later",image:null});this.C.h2()}; g.h.Ge=function(l){g.f.prototype.Ge.call(this,l);this.C.logVisibility(this.element,this.visible&&l)};g.u(g.mm,g.tx);g.h=g.mm.prototype; g.h.init=function(){var l=this;this.po=new g.OX(this.api);this.eZ=new w5(this.api);this.t2=new g.f({D:"div",X:"ytp-chrome-top"});this.tooltip=new g.GG(this.api,this);this.channelAvatar=new q55(this.api);this.title=new jd(this.api);this.rZ=new g.Jj({D:"div",X:"ytp-chrome-top-buttons"});this.BG=new Una(this.api,this.t2.element);this.bQ=this.api.j().controlsType==="1"?new cva(this.api,this,this.Zs):null;this.contextMenu=new IHg(this.api,this.po);this.UF=new g.f({D:"div",Z:{tabindex:"0"}});this.Pa=new g.f({D:"div", Z:{tabindex:"0"}});var n=this.api.xP(),O=this.api.j(),L=this.api.getVideoData();this.Z7&&(g.FW(this.api.getRootNode(),"ytp-embed"),g.FW(this.api.getRootNode(),"ytp-embed-playlist"),this.Vk&&(g.FW(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.FW(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Di=60,this.CC=89);this.api.j().N&&g.FW(this.api.getRootNode(),"ytp-embed-pfl");this.api.j().W&&(g.FW(this.api.getRootNode(),"ytp-mobile"),this.api.j().G&&g.FW(this.api.getRootNode(),"ytp-embed-mobile")); L&&L.videoId&&(this.yb=L&&L.getEmbeddedPlayerResponse());g.c(this,this.po);g.jR(this.api,this.po.element,4);g.c(this,this.eZ);g.jR(this.api,this.eZ.element,4);L=new g.f({D:"div",X:"ytp-gradient-top"});g.c(this,L);g.jR(this.api,L.element,1);this.L3=new g.gy(L,250,!0,100);g.c(this,this.L3);g.c(this,this.t2);g.jR(this.api,this.t2.element,1);this.rM=new g.gy(this.t2,250,!0,100);g.c(this,this.rM);g.c(this,this.tooltip);g.jR(this.api,this.tooltip.element,4);var X=new kL8(this.api);g.c(this,X);g.jR(this.api, X.element,5);X.subscribe("show",function(J){l.zC(X,J)}); this.Qo.push(X);this.Cc=new Dz(this.api,X);g.c(this,this.Cc);!this.Z7&&this.Cc.V5(this.t2.element);g.c(this,this.channelAvatar);this.channelAvatar.V5(this.t2.element);g.c(this,this.title);this.title.V5(this.t2.element);this.Z7&&(L=new RO5(this.api),g.c(this,L),L.V5(this.t2.element));g.c(this,this.rZ);this.rZ.V5(this.t2.element);var F=new dNa(this.api,this);g.c(this,F);g.jR(this.api,F.element,5);F.subscribe("show",function(J){l.zC(F,J)}); this.Qo.push(F);this.searchButton=new y0(this.api);g.c(this,this.searchButton);this.searchButton.V5(this.rZ.element);this.tL=new nD5(this.api);g.c(this,this.tL);this.tL.V5(this.rZ.element);this.shareButton=new g.M2(this.api,this,F);g.c(this,this.shareButton);this.shareButton.V5(this.rZ.element);this.copyLinkButton=new Jb(this.api,this);g.c(this,this.copyLinkButton);this.copyLinkButton.V5(this.rZ.element);this.Z7&&this.Cc.V5(this.rZ.element);g.c(this,this.BG);this.BG.V5(this.rZ.element);O.CX&&(L=new j2(this.api), g.c(this,L),g.jR(this.api,L.element,4));O.N||(L=new uNk(this.api,this.BG),g.c(this,L),L.V5(this.rZ.element));this.J2=new Efi(this.api);g.c(this,this.J2);g.jR(this.api,this.J2.element,5);this.J2.subscribe("show",function(){l.zC(l.J2,l.J2.iV())}); this.Qo.push(this.J2);this.overflowButton=new g.N2(this.api,this.J2);g.c(this,this.overflowButton);this.overflowButton.V5(this.rZ.element);this.bQ&&g.c(this,this.bQ);O.controlsType==="3"&&(L=new k3(this.api),g.c(this,L),g.jR(this.api,L.element,9));g.c(this,this.contextMenu);this.contextMenu.subscribe("show",this.Ck,this);this.api.J("show_preskip_progress_bar_for_skippable_ads")||(L=new $7(this.api,new nT(this.api)),g.c(this,L),g.jR(this.api,L.element,4));this.UF.listen("focus",this.SR,this);g.c(this, this.UF);this.Pa.listen("focus",this.Wy,this);g.c(this,this.Pa);var x;(this.Ye=O.Rh?null:new PFa(this.api,n,this.contextMenu,this.Zs,this.po,this.eZ,function(){return l.Pd()},(x=this.bQ)==null?void 0:x.progressBar))&&g.c(this,this.Ye); this.Z7||(this.cE=new z$0(this.api),g.c(this,this.cE),g.jR(this.api,this.cE.element,4),this.vC=new ike(this.api),g.c(this,this.vC),g.jR(this.api,this.vC.element,4));this.Eb=new s$i(this.api);g.c(this,this.Eb);g.jR(this.api,this.Eb.element,4);if(this.Z7){var Z=new FTv(this.api,this.api.j().Fi);g.c(this,Z);g.jR(this.api,Z.element,5);Z.subscribe("show",function(J){l.zC(Z,J)}); n=new JQ5(this.api,Z);g.c(this,n);g.jR(this.api,n.element,4)}this.Rr.push(this.po.element);this.U(this.api,"fullscreentoggled",this.qG);this.U(this.api,"offlineslatestatechange",function(){l.api.TU()&&i0(l.Zs,128,!1)}); this.U(this.api,"cardstatechange",function(){l.eN()}); this.U(this.api,"resize",this.We2);this.U(this.api,"videoplayerreset",this.onReset);this.U(this.api,"showpromotooltip",this.Xk3);g.tx.prototype.init.call(this)}; g.h.VE=function(){return this.tooltip}; g.h.YN=function(){return this.bQ}; g.h.zC=function(l,n){n?this.hk=l:this.hk=null;this.eN()}; g.h.Ha=function(l,n){if(n)this.r_.push(l);else for(n=this.r_.length;n>=0;n--)if(this.r_[n]===l){this.r_.splice(n,1);break}i0(this.Zs,64,this.r_.length>0)}; g.h.kK=function(){this.api.md()&&this.api.MF();return!!this.hk||Xj9(this)||g.tx.prototype.kK.call(this)}; g.h.Iv=Oi(3);g.h.p8=Oi(7);g.h.jC=Oi(10); g.h.eN=function(){var l=!this.kK(),n=l&&this.api.md()&&!g.K(this.api.getPlayerStateObject(),2)&&!g.l4(this.api.getVideoData())&&!this.api.j().N&&!this.api.isEmbedsShortsMode(),O=this.Z7&&g.Mc(this.api)&&g.K(this.api.getPlayerStateObject(),128);l||O?(this.rM.show(),this.L3.show()):(this.rM.hide(),this.L3.hide(),this.api.BH(this.t2.element));n?this.BG.In():this.BG.Te();this.bQ&&i99(this.bQ,this.K_||!l);this.api.J("web_player_hide_overflow_button_if_empty_menu")&&oDk(this);g.tx.prototype.eN.call(this)}; g.h.PJ=function(l,n,O,L,X){l.style.left="";l.style.top="";l.style.bottom="";var F=g.D2(l),x=L||this.bQ&&g.Fg(this.bQ.De(),n),Z=L=null;O!=null&&x||(L=g.D2(n),Z=g.Eo(n,this.api.getRootNode()),O==null&&(O=Z.x+L.width/2));O-=F.width/2;x?(n=this.bQ,L=zag(n),Z=Sse(n),x=this.api.xP().getPlayerSize().height,O=g.hR(O,L,L+Z-F.width),F=x-p5i(n)-F.height):g.Fg(this.t2.element,n)?(n=this.api.xP().getPlayerSize().width,O=g.hR(O,12,n-F.width-12),F=this.bU()?this.CC:this.Di,this.api.j().playerStyle==="gvn"&&(F+= 20),this.Z7&&(F-=this.bU()?26:18)):(n=this.api.xP().getPlayerSize(),O=g.hR(O,12,n.width-F.width-12),F=Z.y>(n.height-L.height)/2?Z.y-F.height-12:Z.y+L.height+12);l.style.top=F+(X||0)+"px";l.style.left=O+"px"}; g.h.xK=function(l){l&&(this.api.BH(this.t2.element),this.bQ&&this.api.BH(this.bQ.De()));this.Vk&&(g.wP(this.contextMenu.element,"ytp-autohide",l),g.wP(this.contextMenu.element,"ytp-autohide-active",!0));g.tx.prototype.xK.call(this,l)}; g.h.IH=function(){g.tx.prototype.IH.call(this);this.Vk&&(g.wP(this.contextMenu.element,"ytp-autohide-active",!1),this.Vk&&(this.contextMenu.hide(),this.J2&&this.J2.hide()))}; g.h.FC=function(l,n){var O=this.api.xP().getPlayerSize();O=new g.xH(0,0,O.width,O.height);if(l||this.Zs.W&&!this.kK()){if(this.api.j().eF||n)l=this.bU()?this.CC:this.Di,O.top+=l,O.height-=l;this.bQ&&(O.height-=p5i(this.bQ))}return O}; g.h.qG=function(l){var n=this.api.getRootNode();l?n.parentElement?(n.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.j().externalFullscreen||(n.parentElement.insertBefore(this.UF.element,n),n.parentElement.insertBefore(this.Pa.element,n.nextSibling))):g.Ir(Error("Player not in DOM.")):(n.setAttribute("aria-label","YouTube Video Player"),this.UF.detach(),this.Pa.detach());this.x4();this.Qz()}; g.h.bU=function(){var l=this.api.j();return this.api.isFullscreen()&&!l.G||!1}; g.h.showControls=function(l){this.Xe=!l;this.eN()}; g.h.x4=function(){var l=this.bU();this.tooltip.scale=l?1.5:1;this.contextMenu&&g.wP(this.contextMenu.element,"ytp-big-mode",l);this.eN();this.api.J("web_player_hide_overflow_button_if_empty_menu")||oDk(this);this.Qz();var n=this.api.isEmbedsShortsMode();n&&l?(l=(this.api.xP().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.HH(this.t2.element,"padding-left",l+"px"),g.HH(this.t2.element,"padding-right",l+"px")):n&&(g.HH(this.t2.element,"padding-left",""),g.HH(this.t2.element,"padding-right", ""));g.tx.prototype.x4.call(this)}; g.h.PF=function(){if(Xj9(this)&&!g.Mc(this.api))return!1;var l=this.api.getVideoData();return!g.yG(this.api.j())||this.api.getPresentingPlayerType()===2||!this.yb||((l=this.yb||l.yb)?(l=l.embedPreview)?(l=l.thumbnailPreviewRenderer,l=l.videoDetails&&g.z(l.videoDetails,RBk)||null):l=null:l=null,l&&l.collapsedRenderer&&l.expandedRenderer)?g.tx.prototype.PF.call(this):!1}; g.h.Qz=function(){g.tx.prototype.Qz.call(this);this.api.logVisibility(this.title.element,!!this.MR);this.Cc&&this.Cc.Ge(!!this.MR);this.channelAvatar.Ge(!!this.MR);this.overflowButton&&this.overflowButton.Ge(this.Rp()&&!!this.MR);this.shareButton&&this.shareButton.Ge(!this.Rp()&&!!this.MR);this.tL&&this.tL.Ge(!this.Rp()&&!!this.MR);this.searchButton&&this.searchButton.Ge(!this.Rp()&&!!this.MR);this.copyLinkButton&&this.copyLinkButton.Ge(!this.Rp()&&!!this.MR);if(!this.MR){this.api.BH(this.t2.element); for(var l=0;l<this.Qo.length;l++){var n=this.Qo[l];n.iV()&&n.Te()}}}; g.h.Vu=function(l){this.bQ&&i99(this.bQ,this.kK());this.eN();g.tx.prototype.Vu.call(this,l)}; g.h.handleGlobalKeyDown=function(l,n,O,L,X,F,x,Z){return this.Ye?this.Ye.handleGlobalKeyDown(l,n,O,L,X,F,x,Z):!1}; g.h.handleGlobalKeyUp=function(l,n,O,L,X,F,x){return this.Ye?this.Ye.handleGlobalKeyUp(l,n,O,L,X,F,x):!1}; g.h.Pd=function(){if(this.contextMenu.Qp)return this.contextMenu.Te(),!0;if(this.r_.length)return this.r_[this.r_.length-1].Te(),!0;if(this.hk)return this.hk.Te(),!0;this.bQ&&this.api.BH(this.bQ.De());this.rZ&&this.api.BH(this.rZ.element);return g.tx.prototype.Pd.call(this)}; g.h.O3=function(l,n){this.VL=n;this.Ha(l,n);this.Ck()}; g.h.Ck=function(){var l=this.VL||this.contextMenu.iV();this.Oy!==l&&(this.Oy=l,this.api.lF("onAutonavPauseRequest",this.Oy))}; g.h.SR=function(){Fde(this,this.api.getRootNode(),!0).focus()}; g.h.Wy=function(){Fde(this,this.api.getRootNode(),!1).focus()}; g.h.a7=function(){return this.bQ&&this.bQ.N}; g.h.lA=function(){this.Zs.lA()}; g.h.g3=function(){this.po.hide()}; g.h.Gg=function(l){this.po.Gg(!l.isOrWillBePlaying())}; g.h.QZ=function(l,n,O,L){this.eZ.QZ(l,n,O,L)}; g.h.renderChapterSeekingAnimation=function(l,n,O){iM9(this.eZ,l,n,O)}; g.h.We2=function(){xf0(this,!0)}; g.h.onReset=function(){oDk(this)}; g.h.Xk3=function(l){xf0(this,!1,l)}; g.h.vZ=function(){return this.contextMenu}; g.h.On=function(l,n){var O;if((O=this.bQ)!=null){var L=Number(l.element.getAttribute("data-priority"))||0,X=0,F=O.W.element;n&&O.C.J("delhi_modern_web_player")&&(F=O.W.mJ(QD[n]));n=g.P(F.children);for(O=n.next();!(O.done||L<(Number(O.value.getAttribute("data-priority"))||0));O=n.next())X++;l.V5(F,X)}}; g.h.m0=function(){var l,n=(l=this.bQ)==null?void 0:l.progressBar;if(n){var O;((O=n.W)==null?0:O.isEnabled)&&n.m0()}};g.u(g.Ix,g.qq);g.Ix.prototype.NR=function(){return!1}; g.Ix.prototype.create=function(){var l=this.player.j();g.Bt(l)&&l.W||l.disableOrganicUi?this.chrome=new g.tx(this.player):this.chrome=new g.mm(this.player);g.c(this,this.chrome);this.chrome.init();this.player.T1("ux")}; g.Ix.prototype.Fx=function(){return this.chrome};var dN=[],Ljq=!1;g.u($1,g.V);$1.prototype.T=function(){this.S!=null&&this.app.getVideoData()!==this.S&&Sb(this.S)&&IOi(this.app,this.S,void 0,void 0,this.N)}; $1.prototype.V=function(){if(this.S!=null&&this.app.getVideoData()!==this.S&&this.W!=null&&this.L!=null&&this.B!=null&&Sb(this.S)){var l=JCa(this.W,this.L,this.B);l==null?IOi(this.app,this.S,void 0,void 0,this.N):(this.W.Sp("sgap",l),this.W.getVideoData().G&&this.W.GC(!1))}}; $1.prototype.G=function(l){var n=this.app.AG();if(n){var O=this.app.getCurrentTime();Math.abs(O-l.end/1E3)>5&&n.Sp("glrs",{cmt:O});n.seekTo(0,{seekSource:58});n.Sp("glrre",{cmt:O})}}; $1.prototype.oz=function(){this.S=null;g.V.prototype.oz.call(this)};g.u(g.VD,lL);g.h=g.VD.prototype;g.h.isView=function(){return!0}; g.h.E3=function(){var l=this.mediaElement.getCurrentTime();if(l<this.start)try{var n=this.mediaElement.NJ(),O=JY(n,l);return!(this.start<O)}catch(L){}return!1}; g.h.Ew=function(){return AY(this.mediaElement.Ew(),this.start,this.end)}; g.h.NJ=function(){return AY(this.mediaElement.NJ(),this.start,this.end)}; g.h.pO=function(){return AY(this.mediaElement.pO(),this.start,this.end)}; g.h.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start}; g.h.setCurrentTime=function(l){this.mediaElement.setCurrentTime(l+this.start)}; g.h.getDuration=function(){return isFinite(this.end)&&!this.S?this.end-this.start:this.mediaElement.getDuration()-this.start}; g.h.play=function(){if(this.E3()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(l){}}return this.mediaElement.play()}; g.h.sC=function(){var l=lL.prototype.sC.call(this);l.view=this.start+"-"+this.end;return l}; g.h.addEventListener=function(l,n){this.mediaElement.addEventListener(l,n)}; g.h.removeEventListener=function(l,n){this.mediaElement.removeEventListener(l,n)}; g.h.xr=function(){return this.mediaElement.xr()}; g.h.activate=function(l){this.mediaElement.activate(l)}; g.h.wJ=function(){return this.mediaElement.wJ()}; g.h.playVideo=function(){return this.mediaElement.playVideo()}; g.h.xN=function(){this.mediaElement.xN()}; g.h.cn=function(){this.mediaElement.cn()}; g.h.gp=function(){return this.mediaElement.gp()}; g.h.De=function(){return this.mediaElement.De()}; g.h.m5=function(){return this.mediaElement.m5()}; g.h.l9=function(l){this.mediaElement.l9(l)}; g.h.qe=function(){this.mediaElement.qe()}; g.h.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()}; g.h.setPlaybackRate=function(l){return this.mediaElement.setPlaybackRate(l)}; g.h.hS=function(){return this.mediaElement.hS()}; g.h.setLoop=function(l){this.mediaElement.setLoop(l)}; g.h.canPlayType=function(l,n){return this.mediaElement.canPlayType(l,n)}; g.h.isPaused=function(){return this.mediaElement.isPaused()}; g.h.isSeeking=function(){return this.mediaElement.isSeeking()}; g.h.isEnded=function(){return this.mediaElement.isEnded()}; g.h.F5=function(){return this.mediaElement.F5()}; g.h.pc=function(l){this.mediaElement.pc(l)}; g.h.S4=function(){return this.mediaElement.S4()}; g.h.load=function(){this.mediaElement.load()}; g.h.pause=function(){this.mediaElement.pause()}; g.h.R_=function(){return this.mediaElement.R_()}; g.h.Pc=function(){return this.mediaElement.Pc()}; g.h.K2=function(){return this.mediaElement.K2()}; g.h.gB=function(){return this.mediaElement.gB()}; g.h.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()}; g.h.zE=function(){return this.mediaElement.zE()}; g.h.Yc=function(){return this.mediaElement.Yc()}; g.h.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()}; g.h.PX=function(){return this.mediaElement.PX()}; g.h.getSize=function(){return this.mediaElement.getSize()}; g.h.setSize=function(l){this.mediaElement.setSize(l)}; g.h.getVolume=function(){return this.mediaElement.getVolume()}; g.h.setVolume=function(l){this.mediaElement.setVolume(l)}; g.h.setAttribute=function(l,n){this.mediaElement.setAttribute(l,n)}; g.h.removeAttribute=function(l){this.mediaElement.removeAttribute(l)}; g.h.hasAttribute=function(l){return this.mediaElement.hasAttribute(l)}; g.h.nh=Oi(55);g.h.Nc=Oi(57);g.h.s$=Oi(59);g.h.dT=Oi(61);g.h.TV=function(){return this.mediaElement.TV()}; g.h.hE=function(l){this.mediaElement.hE(l)}; g.h.o8=function(l){return this.mediaElement.o8(l)}; g.h.jM=function(){return this.mediaElement.jM()}; g.h.stopVideo=function(){this.mediaElement.stopVideo()}; g.h.WF=function(l){this.mediaElement.WF(l)}; g.h.audioTracks=function(){return this.mediaElement.audioTracks()}; g.h.l7=function(l){this.mediaElement.l7(l)};g.u(ACq,g.V);g.h=ACq.prototype;g.h.getStatus=function(){return this.status}; g.h.ES=function(){var l=this.S.getVideoData(),n=this.W.getVideoData(),O;if((O=l.N)&&!(O=!l.S)){O=l.S;for(var L=!1,X=!1,F=g.P(Object.values(O.S)),x=F.next();!x.done;x=F.next())x=x.value,x.info.audio&&x.index.isLoaded()&&(L=!0),x.info.video&&x.index.isLoaded()&&(X=!0);O.S["0"]&&(X=!0);O=L&&X}if(O)if(this.S.T$()){F=ZY8(this.policy,this.S,this.W,this.v5);x=bY9(this);O=x.d0;X=x.MO;L=x.zL;x=x.Gs;if(!this.T){var Z=this.W.n1()*1E3,J=this.S.n1();J=(L-O-J)*1E3;F&&F.msg==="in-the-past"&&(J=0);l=l.isAd();this.W.MG(Z, J,l);this.T=!0}F?(n="cannot_apply"+F.msg,delete F.msg,this.Qf(n,F)):this.status.status===2?Wdg(this):(l=this.S.wJ())&&R1(l)&&(!f5(l)&&g.s0()?this.Qf("mse_closed"):n.S&&AF(n.S)&&l.W&&!l.W.wz()?this.Qf("encr_upgrade"):(n=this.S.T$(),n.isEnded()?this.Qf("elem_ended"):X<0?this.Qf("next_player_future"):(this.V=L,this.currentVideoDuration=L-O,this.N=E78(l,O,L,!0),this.L=E78(l,X,x,!1),l=this.W.getVideoData().clientPlaybackNonce,this.S.Sp("gaplessPrep",{cpn:l}),this.S.F9(this.N,!1,uff(this),this.AC.j().J("html5_shorts_gapless_keep_pending_requests")&& O9(this.S.getVideoData())),this.S.setMediaElement(rC0(n,O,L,!this.S.getVideoData().isAd())),cl(this,2),Wdg(this))))}else this.Qf("no-elem")}; g.h.fm=function(l){var n=l===TEi(this).v4,O=n?this.N.S:this.N.W;n=n?this.L.S:this.L.W;if(O.isActive&&!n.isActive){var L=this.V,X=this.AC.j().J("html5_gapless_disable_on_discontinuous_buffer")&&this.B!==0&&O.G$().length>1;ZA(l.G$(),L-.01)&&!X&&(cl(this,4),O.isActive=!1,O.w5=O.w5||O.isActive,(this.B===1?this.S:this.W).Sp("sbh",{}),n.isActive=!0,n.w5=n.w5||n.isActive,this.B!==0&&(this.S.getVideoData().Eg=!0));l=this.L.W;if(this.L.S.isActive&&l.isActive&&(cl(this,5),this.B!==0)){l=this.W.An();O=this.S.An(); this.S.Sp("sbs",{citag:O==null?void 0:O.itag,nitag:l==null?void 0:l.itag});this.W.Sp("gitags",{pitag:O==null?void 0:O.itag,citag:l==null?void 0:l.itag});var F;(F=this.W)==null||F.Fm()}}}; g.h.Qs=function(){this.lG()&&this.Qf("player-reload-after-handoff")}; g.h.Qf=function(l,n){n=n===void 0?{}:n;if(!this.JG()&&this.status.status!==6){var O=this.status.status>=4&&l!=="player-reload-after-handoff";this.status={status:Infinity,error:l};if(this.S&&this.W){var L=this.W.getVideoData().clientPlaybackNonce;this.S.l5(new Ml("dai.transitionfailure",Object.assign(n,{cpn:L,transitionTimeMs:this.v5,msg:l})));this.S.GC(O)}this.N1.reject(l);this.dispose()}}; g.h.lG=function(){return this.status.status>=4&&this.status.status<6}; g.h.oz=function(){P8i(this);this.S.unsubscribe("newelementrequired",this.Qs,this);if(this.N){var l=this.N.W;this.N.S.vS.unsubscribe("updateend",this.fm,this);l.vS.unsubscribe("updateend",this.fm,this)}g.V.prototype.oz.call(this)}; g.h.Gd=function(l){g.U2(l,128)&&this.Qf("player-error-event")};g.u(iw,g.V);iw.prototype.clearQueue=function(l,n){l=l===void 0?!1:l;n=n===void 0?!1:n;this.L&&this.L.reject("Queue cleared");this.app.j().J("html5_gapless_fallback_on_qoe_restart_v2")||n&&this.W&&this.W.GC(!1);zG(this,l)}; iw.prototype.o0=function(){return!this.S}; iw.prototype.lG=function(){var l;return((l=this.N)==null?void 0:l.lG())||!1}; iw.prototype.oz=function(){zG(this);g.V.prototype.oz.call(this)};g.u(k6i,g.hj);g.h=k6i.prototype;g.h.getVisibilityState=function(l,n,O,L,X,F,x,Z){return l?4:N_a()?3:n?2:O?1:L?5:X?7:F?8:x?9:Z?10:0}; g.h.x6=function(l){this.fullscreen!==l&&(this.fullscreen=l,this.mI())}; g.h.setMinimized=function(l){this.W!==l&&(this.W=l,this.mI())}; g.h.setInline=function(l){this.inline!==l&&(this.inline=l,this.mI())}; g.h.Ps=function(l){this.pictureInPicture!==l&&(this.pictureInPicture=l,this.mI())}; g.h.setSqueezeback=function(l){this.N!==l&&(this.N=l,this.mI())}; g.h.b1=function(l){this.L!==l&&(this.L=l,this.mI())}; g.h.zE=function(){return this.S}; g.h.JS=function(){return this.fullscreen!==0}; g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.h.lH=function(){return this.fullscreen}; g.h.isMinimized=function(){return this.W}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return N_a()}; g.h.PQ=function(){return this.pictureInPicture}; g.h.hw=function(){return!1}; g.h.Vq=function(){return this.N}; g.h.XP=function(){return this.L}; g.h.mI=function(){this.publish("visibilitychange");var l=this.getVisibilityState(this.zE(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.PQ(),this.hw(),this.Vq(),this.XP());l!==this.V&&this.publish("visibilitystatechange");this.V=l}; g.h.oz=function(){kre(this.B);g.hj.prototype.oz.call(this)};g.h=yCa.prototype;g.h.getCurrentTime=function(){return 0}; g.h.getDuration=function(){return 0}; g.h.Ko=function(){return 0}; g.h.td=function(){return 0}; g.h.oU=function(){return 0}; g.h.RU=function(){return 0}; g.h.xq=function(){return 0}; g.h.LM=function(){return null}; g.h.getStoryboardFormat=function(){return null}; g.h.getVideoLoadedFraction=function(){return 0}; g.h.isAtLiveHead=function(){return!1}; g.h.pauseVideo=function(){}; g.h.playVideo=function(){return g.Y(function(l){return l.return()})};g.u(MN7,g.V);g.h=MN7.prototype;g.h.Wj=function(){return this.B}; g.h.Kr=function(l){this.B=l}; g.h.AG=function(){return this.L}; g.h.Iu=function(l){this.L=l}; g.h.Mv=function(l){return this.N[l]||null}; g.h.oz=function(){for(var l=g.P(Object.values(this.N)),n=l.next();!n.done;n=l.next())ft(n.value);g.V.prototype.oz.call(this)};g.u(Sd,g.V);g.h=Sd.prototype;g.h.enqueue=function(l,n){if(l.L!==this)return!1;if(this.segments.length===0||(n===void 0?0:n))this.S=l;this.segments.push(l);return!0}; g.h.T7=function(){return this.U_||0}; g.h.Uu=function(){return this.L||0}; g.h.removeAll=function(){for(;this.segments.length;){var l=void 0;(l=this.segments.pop())==null||l.dispose()}this.W.clear();this.N=void 0}; g.h.oz=function(){this.removeAll();g.V.prototype.oz.call(this)}; g.u(VNe,g.V);g.h=VNe.prototype;g.h.T7=function(){return this.U_}; g.h.Uu=function(){return this.N}; g.h.getType=function(){return this.type}; g.h.getVideoData=function(){return this.videoData}; g.h.OI=function(l){uT(l);this.videoData=l}; g.h.oz=function(){BEk(this);g.V.prototype.oz.call(this)};g.Ks.prototype.IE=function(l,n){if(n===1)return this.S.get(l);if(n===2)return this.N.get(l);if(n===3)return this.W.get(l)}; g.Ks.prototype.Y3=Oi(49);g.Ks.prototype.tV=function(l,n,O,L){O={RS:L,ph:O};n?this.N.set(l,O):this.S.set(l,O)}; g.Ks.prototype.clearAll=function(){this.S.clear();this.N.clear();this.W.clear()}; g.u(g.ax,g.V);g.h=g.ax.prototype;g.h.oT=function(l,n,O){return new g.X4(l,n,{id:O,namespace:"serverstitchedcuerange",priority:9})}; g.h.Hg=function(l){var n=l.H5?l.H5*1E3:l.U_,O=this.W.get(l.cpn);O&&this.playback.removeCueRange(O);this.W.delete(l.cpn);this.N.delete(l.cpn);O=this.B.indexOf(l);O>=0&&this.B.splice(O,1);O=[];for(var L=g.P(this.V),X=L.next();!X.done;X=L.next())X=X.value,X.end<=n?this.playback.removeCueRange(X):O.push(X);this.V=O;ghe(this,0,n+l.durationMs)}; g.h.onCueRangeEnter=function(l){this.wq.push(l);var n=l.getId();this.Nv({oncueEnter:1,cpn:n,start:l.start,end:l.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.n1()||0).toFixed(3)});var O=n==="";this.G3.add(l.W);var L=this.N.get(n);if(O){var X;if(this.playback.getVideoData().iK()&&((X=this.S)==null?0:X.RF)&&this.L){this.tP=0;this.S=void 0;this.Of&&(this.events.EC(this.Of),this.Of=null);this.L="";this.Fi=!0;return}}else if(this.Nv({enterAdCueRange:1}),this.playback.getVideoData().iK()&& (L==null?0:L.DL))return;if(this.Fi&&!this.S)this.Fi=!1,!O&&L&&(O=this.playback.getCurrentTime(),nM(this,{BS:l,isAd:!0,E7:!0,jr:O,adCpn:n},{isAd:!1,E7:!1,jr:O}),this.L5=L.cpn,vl(this,L),l=tE(this,"midab",L),this.Nv(l),this.tP=1),this.Wm=!1;else if(this.S){if(this.S.E7)this.Nv({a_pair_of_same_transition_occurs_enter:1,acpn:this.S.adCpn,transitionTime:this.S.jr,cpn:n,currentTime:this.playback.getCurrentTime()}),L=this.playback.getCurrentTime(),l={BS:l,isAd:!O,E7:!0,jr:L,adCpn:n},n={BS:this.S.BS,isAd:this.S.isAd, E7:!1,jr:L,adCpn:this.S.adCpn},this.S.BS&&this.G3.delete(this.S.BS.W),nM(this,l,n);else{if(this.S.BS===l){this.Nv({same_cue_range_pair_enter:1,acpn:this.S.adCpn,transitionTime:this.S.jr,cpn:n,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:l.start,cueRangeEndTime:l.end});this.S=void 0;return}if(this.S.adCpn===n){n&&this.Nv({dchtsc:n});this.S=void 0;return}l={BS:l,isAd:!O,E7:!0,jr:this.playback.getCurrentTime(),adCpn:n};nM(this,l,this.S)}this.S=void 0;this.Wm=!1}else this.S={BS:l,isAd:!O, E7:!0,jr:this.playback.getCurrentTime(),adCpn:n}}; g.h.onCueRangeExit=function(l){var n=l.getId();this.Nv({oncueExit:1,cpn:n,start:l.start,end:l.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.n1()||0).toFixed(3)});var O=n==="",L=this.N.get(n);if(this.playback.getVideoData().iK()&&!O&&L){if(L.DL)return;L.DL=!0;this.G.clear();if(this.xo.J("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Yg()){var X=L.U_;this.playback.Rd(X/1E3,(X+L.durationMs)/1E3)}else this.playback.Sp("lifa",{remove:0})}if(this.G3.has(l.W))if(this.G3.delete(l.W), this.wq=this.wq.filter(function(F){return F!==l}),this.Fi&&(this.Wm=this.Fi=!1,this.Nv({cref:1})),this.S){if(this.S.E7){if(this.S.BS===l){this.Nv({same_cue_range_pair_exit:1, acpn:this.S.adCpn,transitionTime:this.S.jr,cpn:n,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:l.start,cueRangeEndTime:l.end});this.S=void 0;return}if(this.S.adCpn===n){n&&this.Nv({dchtsc:n});this.S=void 0;return}n={BS:l,isAd:!O,E7:!1,jr:this.playback.getCurrentTime(),adCpn:n};nM(this,this.S,n)}else if(this.Nv({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.S.adCpn,transitionTime:this.S.jr,upcomingCpn:n,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.S.adCpn===n)return;this.S=void 0;this.Wm=!1}else this.S={BS:l,isAd:!O,E7:!1,jr:this.playback.getCurrentTime(),adCpn:n};else this.Nv({ignore_single_exit:1})}; g.h.NH=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,U_:0,playerType:1,QV:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.h.tZ=function(){if(this.zo)return!1;var l=void 0;this.L5&&(l=this.N.get(this.L5));return this.playback.getVideoData().iK()?!!l&&!l.DL:!!l}; g.h.seekTo=function(l,n,O,L){l=l===void 0?0:l;n=n===void 0?{}:n;O=O===void 0?!1:O;L=L===void 0?null:L;if(this.playback.getVideoData().iK()&&l<=this.Lf/1E3)this.playback.pauseVideo(),this.Lf=0,this.Wm=!0,this.playback.vG(),this.playback.seekTo(l),this.playback.playVideo();else if(this.Wm=!0,O)iYe(this,l,n);else{O=this.app.AG();var X=O===this.Pm?this.Fp:null;gd(this,!1);this.n5=l;this.K5=n;L!=null&&this.JA.start(L);O&&(this.Fp=X||O.getPlayerState(),O.ZS(),this.Pm=O)}}; g.h.oz=function(){gd(this,!1);RV0(this);C8k(this);g.V.prototype.oz.call(this)}; g.h.sT=function(l){this.hC=l;this.Nv({swebm:l})}; g.h.wb=function(l,n,O){if(O&&n){var L=this.G.get(l);if(L){L.locations||(L.locations=new Map);var X=Number(n.split(";")[0]);O=new g.WW(O);this.Nv({hdlredir:1,itag:n,seg:l,hostport:Ne(O)});L.locations.set(X,O)}}}; g.h.bd=function(l,n,O,L,X,F){var x=L===3,Z=vD5(this,l,n,L,O,F);if(!Z){XN(this,n,x);var J=g.tN5(this,n)?"undec":"ncp";this.Nv({gvprp:J,mt:l,seg:n,tt:L,itag:O,ce:F});return null}x||this.G.set(n,Z);F=Z.Bp;var w;L=((w=this.IE(n-1,L,X))==null?void 0:w.RS)||"";L===""&&this.Nv({eds:1});w=nhq(this,Z.ssdaiAdsConfig);X=this.playback.getVideoData();var H;x=((H=X.W)==null?void 0:H.containerType)||0;H=X.V2[x];Z=Z.xR&&n>=Z.xR?Z.xR:void 0;H={k_:F?ohk(this,F):[],XO:w,RS:L,H4:Z,zr:nJ(H.split(";")[0]),Ez:H.split(";")[1]|| ""};Z={xQ:H};this.uv&&(l={gvprpro:"v",sq:n,mt:l.toFixed(3),itag:O,acpns:((J=H.k_)==null?void 0:J.join("_"))||"none",abid:F},this.Nv(l));return Z}; g.h.Ox=function(l){a:{if(!this.zo){var n=lmq(this,l);if(!(this.playback.getVideoData().iK()&&(n==null?0:n.DL)))break a}n=void 0}var O=n;if(!O)return this.Nv({gvprp:"ncp",mt:l}),null;n=O.Bp;var L=nhq(this,O.ssdaiAdsConfig);O=O.xR&&O.oe&&l>=O.oe?O.xR:void 0;var X=this.playback.getVideoData(),F,x=((F=X.W)==null?void 0:F.containerType)||0;F=X.V2[x];F={k_:n?ohk(this,n):[],XO:L,H4:O,zr:nJ(F.split(";")[0]),Ez:F.split(";")[1]||""};var Z;l={gvprpro:"v",mt:l.toFixed(3),acpns:((Z=F.k_)==null?void 0:Z.join("_"))|| "none",abid:n};this.Nv(l);return F}; g.h.tT=function(l,n,O,L,X,F){var x=Number(O.split(";")[0]),Z=L===3;l=vD5(this,l,n,L,O,F);this.Nv({gdu:1,seg:n,itag:x,pb:""+!!l});if(!l)return XN(this,n,Z),null;l.locations||(l.locations=new Map);if(!l.locations.has(x)){var J,w;F=(J=l.videoData.getPlayerResponse())==null?void 0:(w=J.streamingData)==null?void 0:w.adaptiveFormats;if(!F)return this.Nv({gdu:"noadpfmts",seg:n,itag:x}),XN(this,n,Z),null;J=F.find(function(b){return b.itag===x}); if(!J||!J.url){var H=l.videoData.videoId;l=[];var A=g.P(F);for(L=A.next();!L.done;L=A.next())l.push(L.value.itag);this.Nv({gdu:"nofmt",seg:n,vid:H,itag:x,fullitag:O,itags:l.join(",")});XN(this,n,Z);return null}l.locations.set(x,new g.WW(J.url,!0))}F=l.locations.get(x);if(!F)return this.Nv({gdu:"nourl",seg:n,itag:x}),XN(this,n,Z),null;F=new AW(F);this.hC&&(F.get("dvc")?this.Nv({dvc:F.get("dvc")||""}):F.set("dvc","webm"));(L=(A=this.IE(n-1,L,X))==null?void 0:A.RS)&&F.set("daistate",L);l.xR&&n>=l.xR&& F.set("skipsq",""+l.xR);(A=this.playback.getVideoData().clientPlaybackNonce)&&F.set("cpn",A);A=[];l.Bp&&(A=ohk(this,l.Bp),A.length>0&&F.set("acpns",A.join(",")));Z||this.G.set(n,l);Z=null;Z=F.get("aids");L=F.Ae();(L==null?void 0:L.length)>2048&&this.Nv({urltoolong:1,sq:n,itag:x,len:L.length});this.uv&&(L&&(F=l.cpn,X=l.Bp,hT0(this,F,X),X&&!this.z$.has(X)&&(F=Fne(this,F,X),J=xAg(this,X),this.Nv({iofa:F}),this.Nv({noawnzd:J-F}),this.Nv({acpns:A.join("."),aids:(H=Z)==null?void 0:H.replace(/,/g,".")}), this.z$.add(X))),this.Nv({gdu:"v",seg:n,itag:O,ast:l.U_.toFixed(3),alen:l.durationMs.toFixed(3),acpn:l.cpn,avid:l.videoData.videoId}));return L}; g.h.zg=function(l,n,O){var L=LM(this,l,O);return(L=L?(L.U_+L.durationMs)/1E3:0)&&n>L?(this.K8(l,O,!0),this.playback.seekTo(L),!0):!1}; g.h.K8=function(l,n,O){O=O===void 0?!1:O;var L=LM(this,l,n);if(L){var X=void 0,F=L.Bp;if(F){this.Nv({skipadonsq:n,sts:O,abid:F,acpn:L.cpn,avid:L.videoData.videoId});O=this.T.get(F);if(!O)return;O=g.P(O);for(F=O.next();!F.done;F=O.next())F=F.value,F.xR=n,F.oe=l,F.U_>L.U_&&(X=F)}this.L=L.cpn;Ock(this);l=this.playback.getCurrentTime();ly(this,L,X,l,l,!1,!0)}}; g.h.t6=function(){for(var l=g.P(this.B),n=l.next();!n.done;n=l.next())n=n.value,n.xR=NaN,n.oe=NaN;Ock(this);this.Nv({rsac:"resetSkipAd",sac:this.L});this.L=""}; g.h.IE=function(l,n,O){return this.z3.IE(l,n,O)}; g.h.Y3=Oi(48); g.h.tV=function(l,n,O,L,X,F,x,Z,J){L.length>0&&this.Nv({onssinfo:1,sq:l,start:n.toFixed(3),cpns:L.join(","),ds:X.join(","),isVideo:x?1:0});J&&this.z3.tV(l,x,Z,J);J=XZ(this.playback.getVideoData())&&this.xo.J("html5_process_all_cuepoints");if(x||J){if(L.length&&X.length)for(this.L&&this.L===L[0]&&this.Nv({skipfail:1,sq:l,acpn:this.L}),l=n+this.XC(),x=0;x<L.length;x++){var w=L[x];J=l;l=J+X[x];if(w=this.N.get(w))J-=F[x],w.H5=w.H5!=null?Math.min(w.H5,J):J}if(L.length&&X.length)for(n=(n+this.XC())*1E3, O=0;O<L.length;O++)if(l=L[O],x=X[O]*1E3,l===this.playback.getVideoData().clientPlaybackNonce)Ln7(this,n,n+x,!1),n+=x;else{this.nf.has(l)||(this.Nv({adCpnFromEmsg:1}),this.nf.add(l));J=0;O<F.length&&(J=F[O]*1E3);w=this.W.get(l);var H=!1;w?(w.start=n-J,w.end=n+x,O===L.length-1&&(w.end+=Xcf(this,l,Z)),this.playback.zH()):(w=this.oT(n-J,n+x,l),this.W.set(l,w),this.Nv({newAdCR:1,cpn:l,startTime:w.start,endTime:w.end}),H=!0,O===L.length-1&&(w.end+=Xcf(this,l,Z)));n=w.end;Ln7(this,w.start,w.end,!0);if(H)for(this.playback.addCueRange(w), l=this.playback.Em("serverstitchedcuerange",36E5),l=g.P(l),x=l.next();!x.done;x=l.next())this.W.delete(x.value.getId())}else O!==5&&O!==4||Ln7(this,(n+this.XC())*1E3,(n+this.XC())*1E3+5E3,!1)}}; g.h.MW=Oi(46);g.h.XC=function(){return this.playback.XC()}; g.h.hP=function(l){this.playback.Sp("timelineerror",{e:l})}; g.h.TY=function(l){this.Cf&&this.NQ&&this.Hm.push(this.NQ);l&&this.NQ&&this.Wk.push(this.NQ);this.NQ=null;this.playback.TY(l)}; g.h.Zc=function(l){if(this.zo||l.identifier&&this.d8.has(l.identifier))this.Nv({startnoad:l.identifier}),Cs(this);else if(jz(this.Hm,function(O){return O.identifier===l.identifier}))this.Nv({timedoutcp:1}),this.Q5.start(0); else if(jz(this.Wk,function(O){return O.identifier===l.identifier}))this.Nv({fetchedcp:1}),Cs(this); else if(this.Q5.isActive()){var n;this.Nv({racingcp:((n=this.NQ)==null?void 0:n.identifier)+"_"+l.identifier})}else this.q5=(new Date).getTime()/1E3,this.Nv({adf:1}),(n=5E3,l.event==="predictStart")&&(n-=l.S),this.oO=Math.max(n,15E3),this.Cf=!1,this.Q5.start(this.oO),this.NQ=l,this.z3.clearAll(),this.Yo=[]}; g.h.gT=function(l,n,O,L){O=O||{reason:"disablessdai"};if(l&&n){if(!LM(this,l,n))return!1;O.sq=n}if(this.zo)return!1;this.zo=!0;this.tP>0&&(this.tP=0,this.L5="",this.api.publish("serverstitchedvideochange"));this.playback.O5(O,L);return!0}; g.h.tF=function(){this.Nv({rstdaist:1});this.z3.clearAll()}; g.h.Bs=function(l){var n;if(l!==((n=this.NQ)==null?void 0:n.identifier))this.Nv({ignorenoad:l});else{this.d8.add(l);var O;((O=this.NQ)==null?void 0:O.identifier)===l&&Cs(this)}}; g.h.tU=function(){return this.tP}; g.h.wA=function(){return this.L5}; g.h.Df=function(l){if(this.zo)return this.Nv({dai_disabled:l.event}),!1;if(this.playback.getVideoData().iK()&&(this.xo.J("html5_lifa_no_gab_on_predict_start")&&l.event==="predictStart"||l.event==="continue"||l.event==="stop"))return this.Nv({cuepoint_skipped:l.event}),!1;var n=dt(this.api.dc());if(n=n?n.Df(l):!1)this.Y={xl:l.identifier,h$:l.startSecs};else if(this.Y&&this.Y.xl===l.identifier&&l.startSecs>this.Y.h$+1){this.Nv({cueStChg:l.identifier,oldSt:this.Y.h$.toFixed(3),newSt:l.startSecs.toFixed(3), abid:this.Y.dU});if(this.Y.dU){var O=l.startSecs-this.Y.h$,L=this.T.get(this.Y.dU);if(L){L=g.P(L);for(var X=L.next();!X.done;X=L.next())X=X.value,X.U_>=0&&(X.U_+=O*1E3,this.xo.J("html5_ssdai_update_timeline_on_start_time_change")&&(X.QV+=O*1E3),this.Nv({newApEt:X.U_,newApPrt:X.QV,acpn:X.cpn}))}}this.Y.h$=l.startSecs}return n}; g.h.YE=function(l){return this.zo?!1:!!lmq(this,l)}; g.h.B4=function(l){var n=this;this.playback.pauseVideo();var O=this.playback.getCurrentTime(),L=this.N.get(this.L5),X=this.W.get(this.L5);if(L){this.L=this.L5;this.Wm=!1;L.DL=!0;var F=this.playback.getCurrentTime();this.S={BS:X,isAd:!0,E7:!1,jr:F,adCpn:this.L5,RF:L,JE3:l};this.playback.getVideoData().iK()&&this.playback.bb(L,this.NH(),F,this.playback.getCurrentTime(),!1,!0,l,(0,g.Q_)());if(X==null?0:X.start)this.Lf=F*1E3-X.start;this.G.clear();this.playback.vG();this.L5=this.NH().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(O,{seekSource:89,UC:"lifa_skip"});this.playback.playVideo();this.Of||(this.Of=this.events.U(this.api,"progresssync",function(){n.Hg(L)})); return!0}this.Nv({skipFail:O},!0);return!1}; g.h.Nv=function(l,n){((n===void 0?0:n)||this.uv||this.playback.getVideoData().iK())&&this.playback.Sp("sdai",l)}; var sli=0;g.u(Zc9,g.ax);g.h=Zc9.prototype;g.h.Hg=function(l){var n=this.W.get(l.cpn);n&&this.playback.removeCueRange(n);this.W.delete(l.cpn);this.N.delete(l.cpn);l=this.B.indexOf(l);l>=0&&this.B.splice(l,1)}; g.h.onCueRangeEnter=function(l){var n=l.getId();this.playback.Sp("sdai",{oncueEnter:1,cpn:n,start:l.start,end:l.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.n1()||0).toFixed(3)});n=this.N.get(n);this.playback.Sp("sdai",{enterAdCueRange:1});var O=this.L5||this.NH().cpn,L;O=(L=this.N.get(O))!=null?L:this.NH();n&&(l={BS:l,lR:O,nG:n,GL:this.playback.getCurrentTime()},this.FE(l))}; g.h.onCueRangeExit=function(l){for(var n=this.playback.getCurrentTime()*1E3,O=l.getId(),L=g.P(this.W.values()),X=L.next();!X.done;X=L.next())if(X=X.value,X.getId()!==O&&n>=X.start&&n<=X.end)return;if(n=this.N.get(O))l={BS:l,lR:n,nG:this.NH(),GL:this.playback.getCurrentTime()},this.FE(l)}; g.h.FE=function(l){this.L||this.Wm||this.KK(this.L5);var n=l.lR,O=l.nG;if(O.cpn===this.L5)this.playback.Sp("sdai",{igtranssame:1,enter:O.cpn,exit:n.cpn});else{var L=this.Wm,X=!!this.L;this.L="";l=l.GL;var F=n.playerType===2?n.U_/1E3+n.videoData.Pm:this.NH().videoData.Pm;if(n.playerType===2&&O.playerType===2)X?this.playback.Sp("sdai",{igtransskip:1,enter:O.cpn,exit:n.cpn,seek:L,skip:this.L}):ly(this,n,O,F,l,L,X);else{this.L5=O.cpn;if(n.playerType===1&&O.playerType===2){this.Lf=0;vl(this,O);var x=tE(this, "c2a",O);this.playback.Sp("sdai",x);this.tP++}else if(n.playerType===2&&O.playerType===1){x=n.videoData.Pm;this.api.publish("serverstitchedvideochange");var Z=tE(this,"a2c");this.playback.Sp("sdai",Z);this.tP=0;this.Lf=x}this.playback.bb(n,O,F,l,L,X)}this.L="";this.Wm=!1}}; g.h.seekTo=function(l,n,O,L){l=l===void 0?0:l;n=n===void 0?{}:n;O=O===void 0?!1:O;L=L===void 0?null:L;this.KK(this.L5);g.ax.prototype.seekTo.call(this,l,n,O,L)}; g.h.K8=function(l,n,O){O=O===void 0?!1:O;var L=LM(this,l,n);if(L){var X=void 0,F=L.Bp;if(F){this.playback.Sp("sdai",{skipadonsq:n,sts:O,abid:F,acpn:L.cpn,avid:L.videoData.videoId});O=this.T.get(F);if(!O)return;O=g.P(O);for(F=O.next();!F.done;F=O.next())F=F.value,F.xR=n,F.oe=l,F.U_>L.U_&&(X=F)}this.KK(this.L5);this.L=L.cpn;Ock(this);l=this.playback.getCurrentTime();ly(this,L,X,l,l,!1,!0)}}; g.h.tV=function(l,n,O,L,X,F,x,Z,J){L.length>0&&this.playback.Sp("sdai",{onssinfo:1,sq:l,start:n.toFixed(3),cpns:L.join(","),ds:X.join(","),isVideo:x?1:0});J&&this.z3.tV(l,x,Z,J);O=XZ(this.playback.getVideoData())&&this.xo.J("html5_process_all_cuepoints");if(x||O){if(L.length&&X.length)for(this.L&&this.L===L[0]&&this.playback.Sp("sdai",{skipfail:1,sq:l,acpn:this.L}),l=n+this.XC(),x=0;x<L.length;x++)if(Z=L[x],O=l,l=O+X[x],Z=this.N.get(Z))O-=F[x],Z.H5=Z.H5!=null?Math.min(Z.H5,O):O;if(L.length&&X.length)for(x= (n+this.XC())*1E3,n=0;n<L.length;n++)if(O=L[n],Z=X[n]*1E3,O!==this.playback.getVideoData().clientPlaybackNonce){this.nf.has(O)||(this.playback.Sp("sdai",{adCpnFromEmsg:1}),this.nf.add(O));J=0;n<F.length&&(J=F[n]*1E3);if(l=this.W.get(O))l.start=x-J,l.end=x+Z,this.playback.zH();else for(l=this.oT(x-J,x+Z,O),this.W.set(O,l),this.playback.Sp("sdai",{newAdCR:1,cpn:O,startTime:l.start,endTime:l.end}),this.playback.addCueRange(l),x=this.playback.Em("serverstitchedcuerange",36E5),x=g.P(x),O=x.next();!O.done;O= x.next())this.W.delete(O.value.getId());x=l.end}}}; g.h.KK=function(l){var n=l||this.L5,O=this.N.get(n);if(O){l=O.videoData;var L,X;n=O.H5||((X=(L=this.W.get(n))==null?void 0:L.start)!=null?X:0)/1E3;L=this.playback.getCurrentTime()-n;l.Pm=L>0?L:0}else this.NH().videoData.Pm=this.playback.getCurrentTime()};g.u(AD8,g.V);g.h=AD8.prototype; g.h.A1=function(l,n){n=n===void 0?"":n;if(this.timeline.N===n)return!0;var O=this.timeline.S,L=O==null?void 0:O.getVideoData();if(!O||!L)return this.api.Sp("ssap",{htsm:O?0:1}),!1;if(this.api.J("html5_ssap_clear_timeline_before_update")){var X=this.timeline,F;(F=X.S)==null||BEk(F);X.W.clear()}X=ps(O);var x=!1;F=[];var Z=new Map;O=[];var J=[],w=0,H=0,A=0,b=[];l=g.P(l);for(var r=l.next();!r.done;r=l.next())a:{var U=void 0,W=void 0,N=r.value,q=N.clipId;if(q){if(N.Yk){A=N.Yk.rR||0;r=N.Yk.La||1;var y= Number(((N.Yk.Yy||0)/(N.Yk.xx||1)*1E3).toFixed(0));A=r=y+Number((A/r*1E3).toFixed(0))}else r=y=A,this.Mi.has(q)||this.j5.add(q);var e=(W=Z.get(q))!=null?W:0,d=this.timeline.N;W=!1;if(d&&this.api.J("html5_ssap_clear_timeline_before_update")){if(d=this.V9.get(q))d.start=y,d.end=r,W=!0}else{if(d){var B=q;d=y;var R=r,a=e,Lv=nt(this.timeline,B);if(Lv!=null&&Lv.length){a<Lv.length&&(Lv[a].U_=d,Lv[a].N=R);if(B=this.V9.get(B))B.start=d,B.end=R;d=!0}else d=!1}if(d){Z.set(q,e+1);x=!0;break a}}b.push(q);!W&& N.Yk&&(b=this.oT(y,r,b.join(",")),this.V9.set(q,b),O.push(b),b=[]);if(((U=N.Yk)==null?void 0:U.Uz)===L.videoId){W=U=void 0;N=q;q=L;N!==q.clientPlaybackNonce&&this.api.Sp("ssap",{cnm:1,cid:N,cpn:q.clientPlaybackNonce});if(this.api.J("html5_ssap_clear_timeline_before_update"))q.j3=y,N=fs(this.timeline,1,y,r-y,q),F.push(N),y=sm(this.timeline,y,r,[N]),x=x||y;else if(d=[],q&&(q.j3=y,d=(W=nt(this.timeline,N))!=null?W:[]),!this.timeline.N&&d.length&&e===0){x=d[0];x.U_=y;x.N=r;q=(U=this.timeline.S)==null? void 0:U.S;if((U=q==null?void 0:q.get(0))&&q)for(W=0;W<U.length;W++)if(d=U[W],d.T7()!==d.Uu()){d.U_=y;d.L=r;U.splice(W,1);q.has(y)?q.get(y).push(d):q.set(y,[d]);break}F.push(x);Z.set(N,e+1);x=!0}else N=fs(this.timeline,1,y,r-y,q),F.push(N),y=sm(this.timeline,y,r,[N]),x=x||y;J.length&&(J=bc0(this,w||0,H,J),x=x||J);H=w=r;J=[]}else e=void 0,U=this.T6.get(q),W=U!=null?U:new g.z8(this.api.j(),{cpn:q}),W.aY=!0,this.j5.has(q)&&this.T6.set(q,W),w=Math.min(y,w),H=Math.max(r,H),this.api.Sp("ssap",{e:y,d:r- y,c:q,p:U?1:0}),W.j3=y,r=fs(this.timeline,2,y,r-y,W,(e=N.Xm)==null?void 0:e.GF),J.push(r)}else this.api.Sp("ssap",{cm:1})}J.length&&(L=bc0(this,w||0,H,J),x=x||L);X&&F.length&&($fg(this.timeline,X,F),this.api.J("html5_ssap_clear_timeline_before_update")&&(L=F[F.length-1].Uu(),(X=this.timeline.S)!=null&&(X.N=L)));O.length&&this.playback.RL(O);if(x){this.timeline.N=n;L=this.playback.PT();n=[];L=g.P(L);for(O=L.next();!O.done;O=L.next()){O=O.value;if(O.N){if(this.api.J("html5_ssap_fix_ad_completion_cue_range")&& O.start===0x7ffffffffffff)continue;X=Ye(this,O.N);if(X===O.KZ)continue;O.start=O.start-O.KZ+X;O.end=O.end-O.KZ+X;O.KZ=X;n.push(O)}this.api.J("html5_ssap_fix_cue_range_updates")||this.playback.Ww(n)}this.api.J("html5_ssap_fix_cue_range_updates")&&this.playback.Ww(n);this.api.Sp("ssap",{tu:Wh(this)});n=dt(this.api.dc());this.api.Sp("ssap",{am:n?1:0})}else this.api.Sp("ssap",{tnu:1});return!0}; g.h.addPlayerResponseForAssociation=function(l){var n=new g.z8(this.api.j(),l.playerVars);n.playerResponseCpn?n.clientPlaybackNonce=n.playerResponseCpn:this.api.Sp("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});n.aY=!0;if(l=l.nw)n.nw=l,n.clientPlaybackNonce=l.cpn;l=n.clientPlaybackNonce;this.api.Sp("ssap",{aprfa:l+"_"+n.videoId});if(l){this.T6.set(l,n);var O=nt(this.timeline,l),L=!1;if(O==null?0:O.length){O=g.P(O);for(var X=O.next();!X.done;X=O.next())X=X.value,n.j3=X.T7(),X.OI(n), X.W&&(L=!0)}else L=!n.videoId;if(!L){if(!wFe(this.playback.uF.p5(n.videoId))){var F;this.api.Sp("ssap",{nlc:l,nlcc:(F=this.timeline.S)==null?void 0:ps(F)})}this.playback.uF.UV().pw(l,n,2)}}}; g.h.gy=function(){this.Gm=!0;this.api.J("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.L5,Gr(this),5)}; g.h.gt=function(l){if(g.U2(l,128)){var n;l=(n=l.state.WG)==null?void 0:n.errorCode;this.finishSegmentByCpn(this.L5,Gr(this),7,l)}}; g.h.finishSegmentByCpn=function(l,n,O,L){if(this.L5===n)return[];this.Gm&&(O=5,this.Gm=!1);this.api.Sp("ssap",{fsbc:l+";"+n,fsbcr:O,fsbct:this.api.getCurrentTime().toFixed(),fsbce:L!=null?L:""});if(this.api.J("html5_ssap_timeline_handle_error_and_abandon")&&(O===5||O===7))return Tpk(this,l,n,O),[];this.mC=n;var X=!1;if(this.j5.has(l)&&(X=JDq(this,O),!X))return[l];var F=nt(this.timeline,n);if(F){F.sort(function(J,w){return J.T7()-w.T7()}); var x=g.P(F);for(F=x.next();!F.done;F=x.next()){F=F.value;var Z=this.playback.getCurrentTime()*1E3;if(F.T7()>=Z){this.oZ.set(l,O);uMe(this,l,n);this.VQ.set(l,(0,g.Q_)());if(O=this.V9.get(n))for(O=O.getId().split(","),O=g.P(O),x=O.next();!x.done;x=O.next())x=x.value,x!==n&&this.j5.has(x)&&(this.j5.delete(x),this.Mi.add(x));this.KK();n=F.T7()/1E3;F=void 0;O=(F=g.HQ(this.api.j().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?F:0;this.api.J("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(n+ O/1E3,{Wf:!0}):this.playback.seekTo(n+O/1E3);this.c8?(this.api.Sp("ssap",{gpfreload:this.L5}),Hcv(this)||(this.c8=!1),this.playback.vG(!1,!1,this.api.J("html5_ssap_keep_media_on_finish_segment"))):L&&this.playback.vG(!1,!1,this.api.J("html5_ssap_keep_media_on_finish_segment"));X&&this.api.playVideo(1,this.api.J("html5_ssap_keep_media_on_finish_segment"));return[l]}}}return[]}; g.h.jJ=function(){var l=this.timeline.S;if(!l)return 0;var n=l.Uu();l=g.P(l.S.values());for(var O=l.next();!O.done;O=l.next()){O=g.P(O.value);for(var L=O.next();!L.done;L=O.next())L=L.value,L.Uu()>n&&(n=L.Uu())}return n/1E3}; g.h.i5=function(){var l=this.playback.getCurrentTime()*1E3;var n=Ehf(this,l);if(!n){var O=nt(this.timeline,this.L5);if(O){O=g.P(O);for(var L=O.next();!L.done;L=O.next())L=L.value,L.T7()>l&&(n=L)}}return n&&n.getType()===1?n.T7()/1E3:0}; g.h.getVideoData=function(l){if(l===2&&!this.tZ()){if(this.Xu&&this.T6.has(this.Xu))return this.T6.get(this.Xu);this.api.Sp("ssap",{lpanf:""+Gr(this)});return null}return qqe(this)}; g.h.tZ=function(){var l=nt(this.timeline,this.L5);return(l==null?0:l.length)?l[0].getType()===2:!1}; g.h.Qq=function(){var l=nt(this.timeline,this.L5);return(l==null?0:l.length)?l[0].W:!1}; g.h.seekTo=function(l,n){n=n===void 0?{}:n;var O=Np5(this,this.playback.getCurrentTime());this.playback.seekTo(l+O/1E3,n)}; g.h.oT=function(l,n,O){return new g.X4(l,n,{id:O,namespace:"ssap",priority:9})}; g.h.onCueRangeEnter=function(l){if(!this.Ne.has(l.getId())){this.api.Sp("ssap",{oce:1,cpn:l.getId(),st:l.start,et:l.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.n1()||0).toFixed(3)});for(var n=l.getId().split(","),O=0;O<n.length&&this.mC&&n[O]!==this.mC;){var L=n[O];this.j5.has(L)&&(this.j5.delete(L),this.Mi.add(L));O++}if(n.length>O+1)for(L=O+1;L<n.length;L++)this.Ir.push(n[L]);n=n[O];this.j5.has(n)&&kD7(this,n);this.Mi.has(n)||PSi(this,n);n=g.P(this.V9.values());for(O= n.next();!O.done;O=n.next())O=O.value,O.start<=l.start&&!this.Ne.has(l.getId())&&this.Ne.add(O.getId())}}; g.h.tU=function(){return this.tP}; g.h.wA=function(){return this.L5}; g.h.handleError=function(l,n){n=n===void 0?0:n;if(l!=="fmt.decode"&&l!=="fmt.unplayable"||!this.tZ()||this.Od===this.L5)return!1;this.Od=this.L5;if(this.api.J("html5_enable_ssap_gapful_switch"))this.c8=!0,this.api.Sp("ssap",{gpfonerr:l}),this.playback.vG();else{this.playback.Sp("ssap",{skiperr:l,acpn:this.L5});var O=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.L5,O,n===1||n===2?7:6,l)}return!0}; g.h.KK=function(l){var n=l||this.L5;if(l=this.T6.get(n)||this.playback.getVideoData())n=this.playback.getCurrentTime()-Ye(this,n)/1E3,l.Pm=n>0?n:0}; g.h.RO2=function(l){var n=this.T6.get(this.L5);n&&this.playback.gI(l-n.j3/1E3,n.lengthSeconds,this.L5)}; g.h.oz=function(){this.api.j().AA()&&this.api.Sp("ssap",{di:""+this.L5,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.T6.clear();this.j5.clear();this.Ne.clear();this.oZ.clear();this.VQ.clear();this.Mi.clear();this.Ir=[];wc8(this);this.mC="";g.eU(this.events);g.V.prototype.oz.call(this)};g.u(Qd0,g.V);g.h=Qd0.prototype;g.h.onCueRangeEnter=function(l){if(this.S===this.app.AG()){var n=this.B.get(l);n?Im7(this,n.target,n.v5,l):this.l5("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:l.toString()})}else if(n=this.W.find(function(X){return X.zK.BS===l})){var O=n.zK,L=O.target; O=O.v5;L?Im7(this,L,O,l):mA0(this,n.QV,O,l)}}; g.h.onQueuedVideoLoaded=function(){var l=this.T;ZH(this);if(l){if(!hL(this,l)){var n=this.app.AG();this.l5("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:n==null?void 0:n.getVideoData().clientPlaybackNonce,ccpn:""+l.playerVars.cpn})}this.app.AG().addCueRange(l.zK.BS)}}; g.h.seekTo=function(l,n,O,L){l=l===void 0?0:l;n=n===void 0?{}:n;L=L===void 0?null:L;if(O===void 0?0:O)MF9(this,l,n);else{O=this.app.AG()||null;var X=O===this.L?this.V:null;JL(this,!1);this.Wm=l;this.Y=n;L!=null&&this.G.start(L);O&&(this.V=X||O.getPlayerState(),O.ZS(),this.L=O)}}; g.h.gt=function(l){g.U2(l,128)&&cDi(this)}; g.h.isManifestless=function(){return JZ(this.S.getVideoData())}; g.h.oz=function(){JL(this,!1);zT5(this);g.V.prototype.oz.call(this)}; g.h.l5=function(l,n){this.S.l5(new Ml(l,n))}; var eTa=0;var Sqf="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.u(AL,g.V);g.h=AL.prototype;g.h.get=function(l){wd(this);var n=this.data.find(function(O){return O.key===l}); return n?n.value:null}; g.h.set=function(l,n,O){this.remove(l,!0);wd(this);l={key:l,value:n,expire:Infinity};O&&isFinite(O)&&(O*=1E3,l.expire=(0,g.Q_)()+O);for(this.data.push(l);this.data.length>this.N;)(O=this.data.shift())&&by(this,O,!0);HB(this)}; g.h.remove=function(l,n){n=n===void 0?!1:n;var O=this.data.find(function(L){return L.key===l}); O&&(by(this,O,n),g.la(this.data,function(L){return L.key===l}),HB(this))}; g.h.removeAll=function(l){if(l=l===void 0?!1:l)for(var n=g.P(this.data),O=n.next();!O.done;O=n.next())by(this,O.value,l);this.data=[];HB(this)}; g.h.oz=function(){var l=this;g.V.prototype.oz.call(this);this.data.forEach(function(n){by(l,n,!0)}); this.data=[]};g.u(rd,g.V);rd.prototype.zT=function(l){if(l)return this.W.get(l)}; rd.prototype.oz=function(){this.S.removeAll();this.W.removeAll();g.V.prototype.oz.call(this)};g.TbQ=Ao(function(){var l=window.AudioContext||window.webkitAudioContext;try{return new l}catch(n){return n.name}});g.u(RTa,g.f);g.h=RTa.prototype;g.h.hE=function(){g.h5(this.element,g.eq.apply(0,arguments))}; g.h.bJ=function(){this.dK&&(this.dK.removeEventListener("focus",this.Nh),g.og(this.dK),this.dK=null)}; g.h.fC=function(){this.JG();var l=this.app.j();l.LT||this.hE("tag-pool-enabled");l.V&&this.hE(g.Sk.HOUSE_BRAND);l.playerStyle==="gvn"&&(this.hE("ytp-gvn"),this.element.style.backgroundColor="transparent");l.hC&&(this.TO=g.Fx("yt-dom-content-change",this.resize,this));this.U(window,"orientationchange",this.resize,this);this.U(window,"resize",this.resize,this)}; g.h.Me=function(l){g.jV(this.app.j());this.dL=!l;U5(this)}; g.h.resize=function(){if(this.dK){var l=this.Dm();if(!l.isEmpty()){var n=!g.Ud(l,this.B8.getSize()),O=nEi(this);n&&(this.B8.width=l.width,this.B8.height=l.height);l=this.app.j();(O||n||l.hC)&&this.app.iF.publish("resize",this.getPlayerSize())}}}; g.h.yr=function(l,n){this.updateVideoData(n)}; g.h.updateVideoData=function(l){if(this.dK){var n=this.app.j();aZ&&(this.dK.setAttribute("x-webkit-airplay","allow"),l.title?this.dK.setAttribute("title",l.title):this.dK.removeAttribute("title"));this.dK.setAttribute("controlslist","nodownload");n.Fj&&l.videoId&&(this.dK.poster=l.HG("default.jpg"))}n=g.E9(l,"yt:bgcolor");this.LO.style.backgroundColor=n?n:"";this.Hb=xT(g.E9(l,"yt:stretch"));this.gX=xT(g.E9(l,"yt:crop"),!0);g.wP(this.element,"ytp-dni",l.hh);this.resize()}; g.h.setGlobalCrop=function(l){this.Wo=xT(l,!0);this.resize()}; g.h.setCenterCrop=function(l){this.Na=l;this.resize()}; g.h.x6=function(){}; g.h.getPlayerSize=function(){var l=this.app.j(),n=this.app.iF.isFullscreen(),O=l.externalFullscreen&&g.yG(l);if(n&&ph()&&!O)return new g.re(window.outerWidth,window.outerHeight);O=!isNaN(this.Fz.width)&&!isNaN(this.Fz.height);var L=this.app.j().J("kevlar_player_enable_squeezeback_fullscreen_sizing");if(n&&!O&&L)return new g.re(this.element.clientWidth,this.element.clientHeight);if(n||l.T9){if(window.matchMedia){l="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.uE&&this.uE.media=== l||(this.uE=window.matchMedia(l));var X=this.uE&&this.uE.matches}if(X)return new g.re(window.innerWidth,window.innerHeight)}else if(O)return this.Fz.clone();return new g.re(this.element.clientWidth,this.element.clientHeight)}; g.h.Dm=function(){var l=this.app.j().J("enable_desktop_player_underlay"),n=this.getPlayerSize(),O=g.HQ(this.app.j().experiments,"player_underlay_min_player_width");return l&&this.o9&&n.width>O?(l=g.HQ(this.app.j().experiments,"player_underlay_video_width_fraction"),new g.re(Math.min(n.height*this.getVideoAspectRatio(),n.width*l),Math.min(n.height,n.width*l/this.getVideoAspectRatio()))):n}; g.h.getVideoAspectRatio=function(){return isNaN(this.Hb)?tF9(this):this.Hb}; g.h.getVideoContentRect=function(l){var n=this.Dm();l=vhk(this,n,this.getVideoAspectRatio(),l);return new g.xH((n.width-l.width)/2,(n.height-l.height)/2,l.width,l.height)}; g.h.ZE=function(l){this.o9=l;this.resize()}; g.h.Ls=function(){return this.hI}; g.h.onMutedAutoplayChange=function(){U5(this)}; g.h.setInternalSize=function(l){g.Ud(this.Fz,l)||(this.Fz=l,this.resize())}; g.h.oz=function(){this.TO&&g.xj(this.TO);this.bJ();g.f.prototype.oz.call(this)};g.h=OZ5.prototype;g.h.click=function(l,n){this.elements.has(l);this.S.has(l);var O=g.yS();O&&l.visualElement&&g.oF(O,l.visualElement,n)}; g.h.createClientVe=function(l,n,O,L){var X=this;L=L===void 0?!1:L;this.elements.has(l);this.elements.add(l);O=ET5(O);l.visualElement=O;var F=g.yS(),x=g.km();F&&x&&(g.E0("combine_ve_grafts")?ye(q8(),O,x):g.lk(g.ar)(void 0,F,x,O));n.addOnDisposeCallback(function(){X.elements.has(l)&&X.destroyVe(l)}); L&&this.W.add(l)}; g.h.createServerVe=function(l,n,O){var L=this;O=O===void 0?!1:O;this.elements.has(l);this.elements.add(l);n.addOnDisposeCallback(function(){L.destroyVe(l)}); O&&this.W.add(l)}; g.h.destroyVe=function(l){this.elements.has(l);this.elements.delete(l);this.N.delete(l);this.S.delete(l);this.W.delete(l)}; g.h.gj=function(l,n){this.clientPlaybackNonce!==n&&(this.clientPlaybackNonce=n,kW(q8(),l),gEi(this))}; g.h.setTrackingParams=function(l,n){this.elements.has(l);n&&(l.visualElement=g.Dx(n))}; g.h.vk=function(l,n,O){this.elements.has(l);n?this.S.add(l):this.S.delete(l);var L=g.yS(),X=l.visualElement;this.W.has(l)?L&&X&&(n?g.LI(L,[X]):g.X2(L,[X])):n&&!this.N.has(l)&&(L&&X&&g.gW(L,X,void 0,O),this.N.add(l))}; g.h.hasVe=function(l){return this.elements.has(l)};g.u(g.PB,g.V);g.PB.create=function(l,n,O,L){try{var X=typeof l==="string"?l:"player"+g.R8(l),F=q5[X];if(F){try{F.dispose()}catch(Z){g.Ir(Z)}q5[X]=null}var x=new g.PB(l,n,O,L);x.addOnDisposeCallback(function(){q5[X]=null;x.WV&&x.WV()}); return q5[X]=x}catch(Z){throw g.Ir(Z),(Z&&Z instanceof Error?Z:Error(String(Z))).stack;}}; g.h=g.PB.prototype;g.h.F$=function(){return this.visibility}; g.h.Kr=function(l){var n=this.Wj();if(l!==n){l.getVideoData().autonavState=n.getVideoData().autonavState;n.zW(this.Kx,this);var O=n.getPlaybackRate();ft(n);this.r8.Kr(l);l.setPlaybackRate(O);l.DF(this.Kx,this);ZZ9(this)}}; g.h.A2=function(){this.FL||(this.FL=g.Fs(dj(),wQ9()));return this.FL}; g.h.bJ=function(l){if(this.mediaElement){this.CS&&(this.events.EC(this.CS),this.CS=null);g.eU(this.hD);var n=this.AG();n&&n.bJ(!0,!1,l);this.template.bJ();try{this.J("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qe()}catch(O){g.d2(O)}this.mediaElement=null}}; g.h.Iu=function(l,n){if(l!==this.AG()){this.logger.debug(function(){return"start set presenting player, type "+l.getPlayerType()+", vid "+l.getVideoData().videoId}); var O=null,L=this.AG();L&&(O=L.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),I6(this.Xo,3),cB(this,"cuerangesremoved",L.PT()),this.s9&&!l.isGapless()&&L.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),L=l.xW()&&L.xW(),this.ze.fK("iv_s"),Tlg(this,L));l.getPlayerType()===1&&this.Kr(l);PW5(this,l);this.r8.Iu(l);this.mediaElement&&l.setMediaElement(this.mediaElement);l.DF(this.vg,this);l.Bi()?Rrg(this,"setPresenting",!1):(this.yr("newdata",l,l.getVideoData()), O&&!g.J1(O,l.getPlayerState())&&this.UZ(new g.br(l.getPlayerState(),O)),n=n&&this.J("html5_player_preload_ad_fix")&&l.getPlayerType()===1,l.gL()&&!n&&this.yr("dataloaded",l,l.getVideoData()),(n=(n=l.getVideoData().W)&&n.video)&&this.iF.Fb("onPlaybackQualityChange",n.quality),cB(this,"cuerangesadded",l.PT()),n=l.getPlayerState(),g.K(n,2)?uQa(this):g.K(n,8)?l.playVideo():l.bT()&&l.pauseVideo(),n=this.Wj(),l.getPlayerType()===2&&(l.getVideoData().Cw=n.getVideoData().clientPlaybackNonce),l.getPlayerType()!== 2||this.dB()||(O=l.getVideoData(),n.t5(O.clientPlaybackNonce,O.Wk||"",O.breakType||0,O.cQ,O.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.h.kC=function(){if(this.Wj()!==this.AG()){var l=this.AG();this.logger.debug(function(){return"release presenting player, type "+(l==null?void 0:l.getPlayerType())+", vid "+(l==null?void 0:l.getVideoData().videoId)}); this.Iu(this.Wj())}}; g.h.Mv=function(l){if(l)if(l===1)l=this.Wj();else if(this.getVideoData().enableServerStitchedDai&&l===2)l=this.getVideoData().enablePreroll?this.r8.Mv(2)||this.AG():this.AG();else if(g.fy(this.getVideoData())&&l===2){if(l=this.J("html5_ssap_return_content_player_during_preroll"))if(l=this.s_)l=this.s_,l=l.L5===""?!0:l.tZ();l=l?this.AG():this.r8.Mv(2)||this.AG()}else l=this.r8.Mv(l)||null;else l=this.AG();return l}; g.h.Wj=function(){return this.r8.Wj()}; g.h.AG=function(){return this.r8.AG()}; g.h.dS=Oi(44);g.h.nPp=function(){qn(this)||(this.logger.debug("application playback ready"),this.kc(5))}; g.h.k2f=function(l){if(!qn(this)){this.logger.debug("playback ready");s09(this);var n=l.getPlayerState();l.bT()?this.pauseVideo():n.isOrWillBePlaying()&&this.playVideo()}}; g.h.canPlayType=function(l){return jl(l)}; g.h.j=function(){return this.xo}; g.h.getVideoData=function(){return this.AG().getVideoData()}; g.h.hJ=Oi(18);g.h.b5=function(){return this.Wj().getVideoData()}; g.h.getVideoLoadedFraction=function(l){return(l=this.Mv(l))?l.getVideoLoadedFraction():this.r8.S.getVideoLoadedFraction()}; g.h.xP=function(){return this.template}; g.h.dc=function(){return this.Xo}; g.h.GE=function(){return this.ze}; g.h.Kc=function(l){var n=this.Mv(1);n&&n.ND(l)}; g.h.Kz=function(){var l=this.Xo.Kz();this.iF.publish("videoStatsPingCreated",l);return l}; g.h.getVolume=function(){return Math.round(this.iF.getVolume())}; g.h.isMuted=function(){return this.iF.isMuted()}; g.h.TC=function(){if(this.Wj()===this.AG()&&this.Hj)return this.Hj.postId}; g.h.O1G=function(){var l=this;this.J("use_rta_for_player")||(g.yw(this.xo)?g.g7(this.xo,g.pN(this.getVideoData())).then(function(n){$A(dj(),n);Dd0(l.getVideoData(),l.xo,l.A2())}):Dd0(this.getVideoData(),this.xo,this.A2()))}; g.h.QD=function(l){this.iF.publish("poTokenVideoBindingChange",l)}; g.h.DO=function(l){this.iF.publish("d6de4videobindingchange",l)}; g.h.uP=function(){this.Sl&&this.Sl.uP()}; g.h.Yz=function(l){this.Sl=l}; g.h.uq=function(l){if(l===1){this.ze.tick("vr");var n=this.AG();n.qZ();g15(this.ze,n.getVideoData(),pp0(this));Smf(this.Xo)}n=this.xo;(lQ(n)&&n.T||g.mX(n))&&(this.dB()||this.iF.Fb("onAdStateChange",l))}; g.h.setLoopVideo=function(l){var n=this.AG();n===this.Wj()&&n.hS()!==l&&(n.setLoop(l),this.iF.lF("onLoopChange",l))}; g.h.getLoopVideo=function(){return this.AG().hS()}; g.h.setLoopRange=function(l){var n=!1;!!this.Hj!==!!l?n=!0:this.Hj&&l&&(n=this.Hj.startTimeMs!==l.startTimeMs||this.Hj.endTimeMs!==l.endTimeMs||this.Hj.postId!==l.postId||this.Hj.type!==l.type);if(n){(n=this.AG())&&O9(n.getVideoData())&&n.Sp("slr",{et:(l==null?void 0:l.endTimeMs)||-1});n=this.Wj();n.cS("applooprange");if(l){var O=new g.X4(l.startTimeMs,l.endTimeMs,{id:"looprange",namespace:"applooprange"});n.addCueRange(O)}else{this.b5().clipConfig=void 0;var L;((O=this.Hj)==null?void 0:O.type)!== "repeatChapter"||isNaN(Number((L=this.Hj)==null?void 0:L.loopCount))||(O={loopCount:String(this.Hj.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.JG("repeatChapterLoopEvent",O))}this.Hj=l;this.iF.lF("onLoopRangeChange",l||void 0);this.Wj()===this.AG()&&(this.AI(),n.uF.wk())}}; g.h.getLoopRange=function(){return this.Hj}; g.h.AI=function(){var l="",n=this.Wj();this.Hj?n!==this.AG()?l="pnea":MAf(this,n.getCurrentTime())&&(this.Hj.loopCount=0,l="ilr"):l="nlr";var O=this.AG();if(O&&O9(O.getVideoData()))if(this.J("html5_gapless_log_loop_range_info")){var L,X;O.Sp("slrre",{rej:l,ct:n.getCurrentTime(),lst:(L=this.Hj)==null?void 0:L.startTimeMs,let:(X=this.Hj)==null?void 0:X.endTimeMs})}else O.Sp("slrre",{});l||j09(this)}; g.h.setPlaybackRate=function(l,n){if(!isNaN(l)){l=AK9(this,l);var O=this.Wj();O.getPlaybackRate()!==l&&(O.setPlaybackRate(l),n&&!this.xo.L&&g.It("yt-player-playback-rate",l),this.iF.Fb("onPlaybackRateChange",l))}}; g.h.getCurrentTime=function(l,n,O){n=n===void 0?!0:n;if(this.getPresentingPlayerType()===3)return y7(this.Xo).getCurrentTime();var L=l===2&&this.getVideoData().enableServerStitchedDai,X=g.fy(this.getVideoData());l=L||X?this.AG():this.Mv(l);if(!l)return this.r8.S.getCurrentTime();if(X&&this.s_)return n=this.s_,l=l.getCurrentTime(),O?O=oP(n,O):(O=Np5(n,l),O=l-O/1E3),O;if(n){if(L&&this.kh&&(O=this.kh.Lf/1E3,O!==0))return O;O=DH(this,l);return Ga(this,O.getCurrentTime(),O)}L&&this.kh?(O=this.kh,l=l.getCurrentTime(), O=(O=Kdi(O,l*1E3))?l-O.start/1E3:l):O=l.getCurrentTime();return O}; g.h.oU=function(){var l=this.Mv();if(!l)return this.r8.S.oU();l=DH(this,l);return Ga(this,l.oU(),l)}; g.h.getDuration=function(l,n){n=n===void 0?!0:n;var O=this.getVideoData(),L=l===2&&O.enableServerStitchedDai,X=g.fy(O);var F=L||X?this.AG():this.Mv(l);if(!F)return this.r8.S.getDuration();if(O.hasProgressBarBoundaries()&&!L&&!X){var x,Z=Number((x=O.progressBarStartPosition)==null?void 0:x.utcTimeMillis),J;O=Number((J=O.progressBarEndPosition)==null?void 0:J.utcTimeMillis);if(!isNaN(Z)&&!isNaN(O))return(O-Z)/1E3}if(X&&this.s_)return n=DA5(this.s_,this.s_.wA()),l===1&&n===0?F.getDuration():n;if(n)return F= Nn(this,F),Ga(this,F.getDuration(),F);L&&this.kh?(l=this.kh,F=F.getCurrentTime(),F=(F=atv(l,F*1E3))?F.durationMs/1E3:0):F=F.getDuration();return F}; g.h.Ko=function(l){var n=this.Mv(l);return n?this.dB(n)?(n=Nn(this,n),n.Ko()-n.getCurrentTime()+this.getCurrentTime(l)):n.Ko():this.r8.S.Ko()}; g.h.KF=function(){return this.G9}; g.h.addPlayerResponseForAssociation=function(l){this.s_&&this.s_.addPlayerResponseForAssociation(l)}; g.h.finishSegmentByCpn=function(l,n,O){return this.s_?this.s_.finishSegmentByCpn(l,n,O):[]}; g.h.fC=function(){this.template.fC();var l=this.iF;l.state.element=this.template.element;var n=l.state.element,O;for(O in l.state.S)l.state.S.hasOwnProperty(O)&&(n[O]=l.state.S[O]);(l=Vt7(this.template.element))&&this.events.U(this.template,l,this.onFullscreenChange);this.events.U(window,"resize",this.HoJ)}; g.h.getDebugText=function(l){var n=this.Wj().sC(l),O=this.AG(),L=this.Wj();if(O&&O!==L){O=O.sC(l);L=g.P(Object.keys(O));for(var X=L.next();!X.done;X=L.next())X=X.value,n["ad"+X]=O[X];if(l){O=n;L={};if(X=zB(document,"movie_player"))L.bounds=X.getBoundingClientRect(),L["class"]=X.className;X={};var F=g.aC("video-ads");F?(vEa(F,X),X.html=F.outerHTML):X.missing=1;F={};var x=g.aC("videoAdUiSkipContainer"),Z=g.aC("ytp-ad-skip-button-container"),J=g.aC("ytp-skip-ad-button"),w=x||Z||J;w?(vEa(w,F),F.ima=x? 1:0,F.bulleit=Z?1:0,F.component=J?1:0):F.missing=1;L=JSON.stringify({player:L,videoAds:X,skipButton:F});O.ad_skipBtnDbgInfo=L}}l&&this.mediaElement&&(n["0sz"]=""+(+uf(this.mediaElement.getSize())===0),n.op=this.mediaElement.o8("opacity"),O=this.mediaElement.PX().y+this.mediaElement.getSize().height,n.yof=""+(+O<=0),n.dis=this.mediaElement.o8("display"));l&&((l=(0,g.eT)())&&(n.gpu=l),(l=this.xo.playerStyle)&&(n.ps=l),this.xo.Fi&&(n.webview=1));n.debug_playbackQuality=this.iF.getPlaybackQuality(1); n.debug_date=(new Date).toString();n.origin=window.origin;n.timestamp=Date.now();delete n.uga;delete n.q;return JSON.stringify(n,null,2)}; g.h.getFeedbackProductData=function(){var l={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.j().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250223_00_RC00"},n=this.getPlayerStateObject().WG;n&&(l.player_error_code=n.errorCode,l.player_error_details=JSON.stringify(n.errorDetail));return l}; g.h.getPresentingPlayerType=function(l){if(this.appState===1)return 1;if(qn(this))return 3;var n;if(l&&((n=this.kh)==null?0:n.tZ(this.getCurrentTime())))return 2;var O;return g.fy(this.getVideoData())&&((O=this.s_)==null?0:O.tZ())?2:this.AG().getPlayerType()}; g.h.Qq=function(){return g.fy(this.getVideoData())&&this.s_?this.s_.Qq():!1}; g.h.getPlayerStateObject=function(l){return this.getPresentingPlayerType()===3?y7(this.Xo).N_:this.Mv(l).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.pE=function(l){switch(l.type){case "loadedmetadata":this.yl.start();l=g.P(this.FS);for(var n=l.next();!n.done;n=l.next())n=n.value,zra(this,n.id,n.YP1,n.Z2f,void 0,!1);this.FS=[];break;case "loadstart":this.ze.fK("gv");break;case "progress":case "timeupdate":wv(l.target.NJ())>=2&&this.ze.fK("l2s");break;case "playing":g.tt&&this.yl.start();if(g.yw(this.xo))l=!1;else{var O=this.AG();n=g.eR(this.dc());l=this.mediaElement.o8("display")==="none"||uf(this.mediaElement.getSize())===0;var L=uy(this.template), X=O.getVideoData();O=g.Bt(this.xo);X=gi(X);n=!L||n||O||X||this.xo.uv;l=l&&!n}l&&(l=this.AG(),l.eq(),this.getVideoData().hC||(this.getVideoData().hC=1,this.mE(),l.playVideo()))}}; g.h.onLoadProgress=function(l,n){this.iF.S3("onLoadProgress",n)}; g.h.ce3=function(){this.iF.publish("playbackstalledatstart")}; g.h.Hs=function(l,n){this.iF.publish("sabrCaptionsDataLoaded",l,n)}; g.h.aZF=function(l){var n;(n=this.AG())==null||n.Ab(l)}; g.h.io1=function(l){var n;(n=this.AG())==null||n.Ur(l)}; g.h.onVideoProgress=function(l,n){l=DH(this,l.ZF);n=Ga(this,l.getCurrentTime(),l);this.iF.Fb("onVideoProgress",n);this.xo.D0&&VA0(this,this.visibility.PQ())&&this.pauseVideo()}; g.h.onAutoplayBlocked=function(){this.iF.Fb("onAutoplayBlocked");var l,n=(l=this.AG())==null?void 0:l.getVideoData();n&&(n.Zb=!0);this.J("embeds_enable_autoplay_and_visibility_signals")&&g.yG(this.xo)&&(l={autoplayBrowserPolicy:pD(),autoplayIntended:sA(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.JG("embedsAutoplayStatusChanged",l))}; g.h.vh3=function(){this.iF.publish("progresssync")}; g.h.cCJ=function(){this.iF.S3("onPlaybackPauseAtStart")}; g.h.Kyq=function(l){if(this.getPresentingPlayerType()===1){g.U2(l,1)&&!g.K(l.state,64)&&this.b5().isLivePlayback&&this.Wj().isAtLiveHead()&&this.iF.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.U2(l,2)){if(this.Hj&&this.Hj.endTimeMs>=(this.getDuration()-1)*1E3){j09(this);return}uQa(this)}if(g.K(l.state,128)){var n=l.state;this.cancelPlayback(5);n=n.WG;JSON.stringify({errorData:n,debugInfo:this.getDebugText(!0)});this.iF.Fb("onError",dd0(n.errorCode));this.iF.S3("onDetailedError",{errorCode:n.errorCode, errorDetail:n.errorDetail,message:n.errorMessage,messageKey:n.Nx,cpn:n.cpn});(0,g.Q_)()-this.xo.j7>6048E5&&this.iF.S3("onReloadRequired")}n={};if(l.state.isPlaying()&&!l.state.isBuffering()&&!pp("pbresume","ad_to_video")&&pp("_start","ad_to_video")){var O=this.getVideoData();n.clientPlaybackNonce=O.clientPlaybackNonce;O.videoId&&(n.videoId=O.videoId);g.zp(n,"ad_to_video");iD("pbresume",void 0,"ad_to_video");Smf(this.Xo)}this.iF.publish("applicationplayerstatechange",l)}}; g.h.UZ=function(l){this.getPresentingPlayerType()!==3&&this.iF.publish("presentingplayerstatechange",l)}; g.h.gt=function(l){E5(this,HG(l.state));g.K(l.state,1024)&&this.iF.isMutedByMutedAutoplay()&&(Yv(this,{muted:!1,volume:this.cT.volume},!1),jK(this,!1))}; g.h.pW=function(l,n,O){l==="newdata"&&ZZ9(this);this.iF.publish("applicationvideodatachange",l,O)}; g.h.Yf=function(l,n){this.iF.S3("onPlaybackAudioChange",this.iF.getAudioTrack().O_.name);this.iF.publish("internalaudioformatchange",this.iF.getAudioTrack().O_.id,n)}; g.h.ov=function(l){var n=this.AG().getVideoData();l===n&&this.iF.Fb("onPlaybackQualityChange",l.W.video.quality)}; g.h.sV=function(){var l=this.r8.Mv(2);if(l){var n=l.getVideoData();l=l.gm();var O;(O=this.AG())==null||O.Sp("ssdai",{cleanaply:1,acpn:n==null?void 0:n.clientPlaybackNonce,avid:n.videoId,ccpn:l,sccpn:this.b5().clientPlaybackNonce===l?1:0,isDai:this.b5().enableServerStitchedDai?1:0});delete this.r8.N[2]}}; g.h.onVideoDataChange=function(l,n,O){this.yr(l,n.ZF,O)}; g.h.yr=function(l,n,O){this.logger.debug(function(){return"on video data change "+l+", player type "+n.getPlayerType()+", vid "+O.videoId}); this.xo.AA()&&n.Sp("vdc",{type:l,vid:O.videoId||"",cpn:O.clientPlaybackNonce||""});n===this.Wj()&&(this.xo.AP=O.oauthToken);if(n===this.Wj()){this.getVideoData().enableServerStitchedDai&&!this.kh?(this.Wj().Sp("sdai",{initSstm:1}),this.kh=this.J("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Zc9(this.iF,this.xo,this.Wj(),this):new g.ax(this.iF,this.xo,this.Wj(),this)):!this.getVideoData().enableServerStitchedDai&&this.kh&&(this.kh.dispose(),this.kh=null);var L,X;!g.fy(this.getVideoData())|| l!=="newdata"&&l!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((L=this.G9.S)==null?void 0:(X=L.getVideoData())==null?void 0:X.clientPlaybackNonce)?!g.fy(this.getVideoData())&&this.s_&&(this.s_.dispose(),this.s_=null):(dfi(this.G9),this.J("html5_ssap_cleanup_ad_player_on_new_data")&&this.sV(),L=fs(this.G9,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.G9.enqueue(L,!0),sm(this.G9,0,this.getDuration(1)*1E3,[L]),$fg(this.G9,this.getVideoData().clientPlaybackNonce,[L]),this.s_&&(this.s_.dispose(), this.s_=null),this.s_=new AD8(this.iF,this.G9,this.Wj()),this.r8.Wj().R$(this.s_))}if(l==="newdata")this.logger.debug("new video data, destroy modules"),I6(this.Xo,2),this.iF.publish("videoplayerreset",n);else{if(!this.mediaElement)return;l==="dataloaded"&&(this.Wj()===this.AG()?(BI(O.rq,O.eB),Dx0(this)):EEe(this));n.getPlayerType()===1&&(this.xo.wq&&tA8(this),this.getVideoData().isLivePlayback&&!this.xo.Xj&&this.Qf("html5.unsupportedlive",2,"DEVICE_FALLBACK"),O.isLoaded()&&((KKv(O)||this.getVideoData().qA)&& this.iF.publish("legacyadtrackingpingchange",this.getVideoData()),O.hasProgressBarBoundaries()&&mx5(this)));this.iF.publish("videodatachange",l,O,n.getPlayerType())}this.iF.Fb("onVideoDataChange",{type:l,playertype:n.getPlayerType()});this.AI();(L=O.HI)?this.Ok.gj(L,O.clientPlaybackNonce):gEi(this.Ok)}; g.h.Bn=function(){ym(this,null);this.iF.S3("onPlaylistUpdate")}; g.h.sI1=function(l){delete this.m6[l.getId()];this.Wj().removeCueRange(l);a:{l=this.getVideoData();var n,O,L,X,F,x,Z,J,w,H,A=((n=l.wq)==null?void 0:(O=n.contents)==null?void 0:(L=O.singleColumnWatchNextResults)==null?void 0:(X=L.autoplay)==null?void 0:(F=X.autoplay)==null?void 0:F.sets)||((x=l.wq)==null?void 0:(Z=x.contents)==null?void 0:(J=Z.twoColumnWatchNextResults)==null?void 0:(w=J.autoplay)==null?void 0:(H=w.autoplay)==null?void 0:H.sets);if(A)for(n=g.P(A),O=n.next();!O.done;O=n.next())if(O= O.value,X=L=void 0,O=O.autoplayVideo||((L=O.autoplayVideoRenderer)==null?void 0:(X=L.autoplayEndpointRenderer)==null?void 0:X.endpoint),L=g.z(O,g.Cy),F=X=void 0,O!=null&&((X=L)==null?void 0:X.videoId)===l.videoId&&((F=L)==null?0:F.continuePlayback)){l=O;break a}l=null}(n=g.z(l,g.Cy))&&this.iF.lF("onPlayVideo",{sessionData:{autonav:"1",itct:l==null?void 0:l.clickTrackingParams},videoId:n.videoId,watchEndpoint:n})}; g.h.kc=function(l){var n=this;l!==this.appState&&(this.logger.debug(function(){return"app state change "+n.appState+" -> "+l}),l===2&&this.getPresentingPlayerType()===1&&(E5(this,-1),E5(this,5)),this.appState=l,this.iF.publish("appstatechange",l))}; g.h.Qf=function(l,n,O,L,X){this.Wj().M_(l,n,O,L,X)}; g.h.n8=function(l,n){this.Wj().handleError(new Ml(l,n))}; g.h.isAtLiveHead=function(l,n){n=n===void 0?!1:n;var O=this.Mv(l);if(!O)return this.r8.S.isAtLiveHead();l=Nn(this,O);O=DH(this,O);return l!==O?l.isAtLiveHead(Ga(this,O.getCurrentTime(),O),!0):l.isAtLiveHead(void 0,n)}; g.h.td=function(){var l=this.Mv();return l?Nn(this,l).td():this.r8.S.td()}; g.h.seekTo=function(l,n,O,L,X){n=n!==!1;if(L=this.Mv(L))this.appState===2&&Qm(this),this.dB(L)?mJ(this)?this.kh.seekTo(l,{seekSource:X},n,O):this.jz.seekTo(l,{seekSource:X},n,O):g.fy(this.getVideoData())&&this.s_?this.s_.seekTo(l,{L9:!n,fb:O,UC:"application",seekSource:X}):L.seekTo(l,{L9:!n,fb:O,UC:"application",seekSource:X})}; g.h.seekBy=function(l,n,O,L){this.seekTo(this.getCurrentTime()+l,n,O,L)}; g.h.sA=function(){this.iF.Fb("SEEK_COMPLETE")}; g.h.Ui=function(){this.iF.lF("onAbnormalityDetected")}; g.h.onSnackbarMessage=function(l){this.iF.lF("onSnackbarMessage",l)}; g.h.UPm=function(l,n){l=l.ZF;var O=l.getVideoData();if(this.appState===1||this.appState===2)O.startSeconds=n;this.appState===2?g.K(l.getPlayerState(),512)||Qm(this):this.iF.Fb("SEEK_TO",n)}; g.h.onAirPlayActiveChange=function(){this.iF.publish("airplayactivechange");this.xo.J("html5_external_airplay_events")&&this.iF.S3("onAirPlayActiveChange",this.iF.zE())}; g.h.onAirPlayAvailabilityChange=function(){this.iF.publish("airplayavailabilitychange");this.xo.J("html5_external_airplay_events")&&this.iF.S3("onAirPlayAvailabilityChange",this.iF.Ej())}; g.h.showAirplayPicker=function(){var l;(l=this.AG())==null||l.Yc()}; g.h.nW=function(){this.iF.publish("beginseeking")}; g.h.Oi=function(){this.iF.publish("endseeking")}; g.h.getStoryboardFormat=function(l){return(l=this.Mv(l))?Nn(this,l).getStoryboardFormat():this.r8.S.getStoryboardFormat()}; g.h.LM=function(l){return(l=this.Mv(l))?Nn(this,l).getVideoData().LM():this.r8.S.LM()}; g.h.dB=function(l){l=l||this.AG();var n=!1;if(l){l=l.getVideoData();if(mJ(this))l=l===this.kh.playback.getVideoData();else a:if(n=this.jz,l===n.S.getVideoData()&&n.W.length)l=!0;else{n=g.P(n.W);for(var O=n.next();!O.done;O=n.next())if(l.WS===O.value.WS){l=!0;break a}l=!1}n=l}return n}; g.h.Iw=function(l,n,O,L,X,F,x){this.logger.debug(function(){return"Adding video to timeline id="+l.video_id+"\n lengthMs="+L+" enterTimeMs="+X}); var Z="",J=mJ(this),w;(w=this.AG())==null||w.Sp("appattl",{sstm:this.kh?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:J});Z=J?fte(this.kh,l,n,O,L,X,F,x):GDk(this.jz,l,O,L,X,F);this.logger.debug(function(){return"Video added to timeline id="+l.video_id+" timelinePlaybackId="+Z}); return Z}; g.h.Ht=function(l,n,O,L,X,F,x){if(mJ(this)){var Z=fte(this.kh,l,n,O,L,X,F,x);this.logger.debug(function(){return"Remaining video added to timeline id="+l.video_id+" timelinePlaybackId="+Z})}return""}; g.h.Bs=function(l){var n;(n=this.kh)==null||n.Bs(l)}; g.h.vK=function(l,n){l=l===void 0?-1:l;n=n===void 0?Infinity:n;mJ(this)||zT5(this.jz,l,n)}; g.h.C9=function(l,n,O){if(mJ(this)){var L=this.kh,X=L.Sz.get(l);X?(O===void 0&&(O=X.QV),X.durationMs=n,X.QV=O):L.hP("Invalid_timelinePlaybackId_"+l+"_specified")}else{L=this.jz;X=null;for(var F=g.P(L.W),x=F.next();!x.done;x=F.next())if(x=x.value,x.WS===l){X=x;break}X?(O===void 0&&(O=X.QV),ic9(L,X,n,O)):FN(L,"InvalidTimelinePlaybackId timelinePlaybackId="+l)}}; g.h.enqueueVideoByPlayerVars=function(l,n,O,L){O=O===void 0?Infinity:O;L=L===void 0?"":L;this.dB();l=new g.z8(this.xo,l);L&&(l.WS=L);IOi(this,l,n,O)}; g.h.queueNextVideo=function(l,n,O,L,X){O=O===void 0?NaN:O;O=this.preloadVideoByPlayerVars(l,n===void 0?1:n,O,L===void 0?"":L,X===void 0?"":X);l=this.AG();O&&l&&(n=O.ZF,this.J("html5_check_queue_on_data_loaded")?this.j().supportsGaplessShorts()&&l.getVideoData().G&&(O=this.FW,L=this.s9.T,O.L!==n&&(O.W=l,O.L=n,O.N=1,O.S=n.getVideoData(),O.B=L,O.S.isLoaded()?O.V():O.S.subscribe("dataloaded",O.V,O))):(n=JCa(l,n,this.s9.T),n!=null?(l.Sp("sgap",n),l.getVideoData().G&&l.GC(!1)):(l=O.getVideoData(),n=this.FW, n.S!==l&&(n.S=l,n.N=1,l.isLoaded()?n.T():n.S.subscribe("dataloaded",n.T,n)))))}; g.h.sQ=function(l,n,O,L){var X=this;O=O===void 0?0:O;L=L===void 0?0:L;var F=this.AG();F&&Nn(this,F).kz();NE9(this.s9,l,n,O,L).then(function(){X.iF.S3("onQueuedVideoLoaded")},function(){})}; g.h.o0=function(){return this.s9.o0()}; g.h.ML=function(l){return this.s9.S===l.ZF}; g.h.clearQueue=function(l,n){l=l===void 0?!1:l;n=n===void 0?!1:n;this.logger.debug("Clearing queue");this.s9.clearQueue(l,n)}; g.h.loadVideoByPlayerVars=function(l,n,O,L,X,F){n=n===void 0?1:n;var x=this.Wj();if(n===2&&this.b5().enableServerStitchedDai&&x&&!x.fT())return x.Sp("lvonss",{vid:(l==null?void 0:l.videoId)||"",ptype:n}),!1;var Z=!1;x=new g.z8(this.xo,l);x.reloadPlaybackParams=F;g.Cw(this.xo)&&!x.M3&&W8(this.ze);var J;F=this.ze;var w=(J=x.Fi)!=null?J:"";F.timerName=w;this.ze.iQ("pl_i");this.J("web_player_early_cpn")&&x.clientPlaybackNonce&&this.ze.infoGel({clientPlaybackNonce:x.clientPlaybackNonce});if(Tf8(x).supportsVp9Encoding=== !1){var H;(H=this.AG())==null||H.Sp("noVp9",{})}if(this.j().supportsGaplessShorts()){J=qC9(this.s9,x,n);if(J==null){E5(this,-1);l=this.s9;l.app.j().J("html5_gapless_new_slr")?er5(l.app,"gaplessshortslooprange"):l.app.setLoopRange(null);l.app.getVideoData().Xa=!0;var A;(A=l.S)==null||A.i7();var b;(b=l.S)!=null&&zW(b.uF.p5());O={UC:"gapless_to_next_video",seekSource:60};var r;(r=l.app.AG())==null||r.seekTo(Df0(l),O);if(!l.app.getPlayerStateObject(n).isPlaying()){var U;(U=l.app.AG())==null||U.playVideo(!0)}l.V(); return!0}r=this.J("html5_shorts_gapless_preload_fallback");U=this.s9.S;r&&U&&!U.uF.JG()&&(A=U.getVideoData(),A=this.xo.J("html5_autonav_autoplay_in_preload_key")?dd(this,n,A):$v(this,n,A.videoId,A.WS),this.r8.W.set(A,U,3600));this.s9.clearQueue(r);var W;(W=this.AG())==null||W.Sp("sgap",{f:J})}if(X){for(;x.KL.length&&x.KL[0].isExpired();)x.KL.shift();Z=x.KL.length-1;Z=Z>0&&X.W(x.KL[Z])&&X.W(x.KL[Z-1]);x.KL.push(X)}O||(l&&Fm0(l)?(sI(this.xo)&&!this.il&&(l.fetch=0),ym(this,l)):this.playlist&&ym(this, null),l&&(this.il=Li(!1,l.external_list)));this.iF.publish("loadvideo");n=this.sR(x,n,L);Z&&this.Qf("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+x.KL.join()).replace(/[;:,]/g,"_"));return n}; g.h.preloadVideoByPlayerVars=function(l,n,O,L,X){n=n===void 0?1:n;O=O===void 0?NaN:O;L=L===void 0?"":L;X=X===void 0?"":X;var F="";if(this.xo.J("html5_autonav_autoplay_in_preload_key"))F=$xa(this,n,l,X);else{var x=hB(l);F=$v(this,n,x,X)}if(this.r8.W.get(F))return this.logger.debug(function(){return"already preloaded "+F}),null; l=new g.z8(this.xo,l);X&&(l.WS=X);return dx7(this,l,n,O,L)}; g.h.setMinimized=function(l){this.visibility.setMinimized(l);(l=fJq(this.Xo))&&(this.isMinimized()?l.load():l.unload());this.iF.publish("minimized")}; g.h.setInline=function(l){this.visibility.setInline(l)}; g.h.setInlinePreview=function(l){this.visibility.setInline(l)}; g.h.Ps=function(l){Bl5(this,l)||this.visibility.Ps(l)}; g.h.setSqueezeback=function(l){this.visibility.setSqueezeback(l)}; g.h.x7=function(){var l,n=(l=this.mediaElement)==null?void 0:l.De();n&&(this.xo.D7&&document.exitFullscreen().catch(function(){}),TK(n).catch(function(O){g.d2(O)}))}; g.h.yeG=function(){this.mediaElement.De();this.mediaElement.De().webkitPresentationMode==="picture-in-picture"?this.Ps(!0):this.Ps(!1)}; g.h.togglePictureInPicture=function(){var l=this.AG();l&&l.togglePictureInPicture()}; g.h.sR=function(l,n,O){n=n===void 0?1:n;this.logger.debug(function(){return"start load video, id "+l.videoId+", type "+n}); pp("_start",this.ze.timerName)||g.lk(mk)(void 0,this.ze.timerName);var L=!1,X=yK8(this,n,l,!1);X?(L=!0,l.dispose()):(X=Wje(this,n,l,O).ZF,(this.J("html5_onesie")||this.J("html5_load_before_stop"))&&X.NK()&&X.IB(),this.yl.stop(),n===1&&n!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,n),this.Iu(X));X===this.Wj()&&(this.xo.AP=l.oauthToken);if(!X.NK())return!1;if(X===this.Wj())return this.kc(1),O=Qm(this),L&&this.J("html5_player_preload_ad_fix")&&X.getPlayerType()===1&& X.gL()&&this.yr("dataloaded",X,X.getVideoData()),O;X.Or();return!0}; g.h.cueVideoByPlayerVars=function(l,n){var O=this;n=n===void 0?1:n;var L=this.Wj();if(this.b5().enableServerStitchedDai&&L&&!L.fT()&&l&&Object.keys(l).length>0)L.Sp("qvonss",{vid:(l==null?void 0:l.videoId)||"",ptype:n});else if(l&&Fm0(l))if(this.lT=!0,ym(this,l),(l=g.E8(this.playlist))&&l.MP())BB(this,l,n);else this.playlist.onReady(function(){Mn(O)}); else{n||(n=this.getPresentingPlayerType());n===1&&this.Bn();L=new g.z8(this.xo,l);var X=g.yG(this.xo)&&!this.xo.NQ&&n===1&&!L.isAd()&&!L.Wk;this.iF.publish("cuevideo");X?(this.AG().getVideoData().loading=!0,AE7(L,l?l:{}).then(function(F){BB(O,F,n)}),L.dispose()):BB(this,L,n)}}; g.h.iI=function(l,n,O,L,X,F,x){if(!l&&!O)throw Error("Playback source is invalid");if(QG(this.xo)||g.qp(this.xo))return n=n||{},n.lact=MU(),n.vis=this.iF.getVisibilityState(),this.iF.lF("onPlayVideo",{videoId:l,watchEndpoint:F,sessionData:n,listId:O}),!1;Xli(this.ze);this.ze.reset();l={video_id:l};L&&(l.autoplay="1");L&&(l.autonav="1");F&&(l.player_params=F.playerParams);x&&(l.oauth_token=x);O?(l.list=O,this.loadPlaylist(l)):this.loadVideoByPlayerVars(l,1);return!0}; g.h.cuePlaylist=function(l,n,O,L){this.lT=!0;cKf(this,l,n,O,L)}; g.h.loadPlaylist=function(l,n,O,L){this.lT=!1;cKf(this,l,n,O,L)}; g.h.IT=function(){return this.iF.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.FK())}; g.h.iG=Oi(13); g.h.nextVideo=function(l,n){var O=g.t2(this.Wj().getVideoData());g.GM(this.iF)&&O?this.iI(O.videoId,n?O.zV:O.sessionData,O.playlistId,n,void 0,O.Gu||void 0):this.il?this.iF.S3("onPlaylistNext"):this.getPresentingPlayerType()===3?y7(this.Xo).nextVideo():!this.playlist||sI(this.xo)&&!this.iF.isFullscreen()||(this.playlist.FK(l)&&Zs9(this.playlist,xhk(this.playlist)),this.playlist.loaded?(l=n&&this.xo.J("html5_player_autonav_logging"),n&&this.iF.publish("playlistautonextvideo"),this.sR(g.E8(this.playlist,void 0, n,l),1)):this.lT=!1)}; g.h.previousVideo=function(l){this.il?this.iF.S3("onPlaylistPrevious"):this.getPresentingPlayerType()===3?y7(this.Xo).e6():!this.playlist||sI(this.xo)&&!this.iF.isFullscreen()||(this.playlist.DE(l)&&Zs9(this.playlist,hM7(this.playlist)),this.playlist.loaded?this.sR(g.E8(this.playlist),1):this.lT=!1)}; g.h.playVideoAt=function(l){this.il?this.iF.S3("onPlaylistIndex",l):this.playlist&&(this.playlist.loaded?this.sR(g.E8(this.playlist,l),1):this.lT=!1,Zs9(this.playlist,l))}; g.h.getPlaylist=function(){return this.playlist}; g.h.ut=Oi(23);g.h.jOG=function(l){this.iF.Fb("onCueRangeEnter",l.getId())}; g.h.pjm=function(l){this.iF.Fb("onCueRangeExit",l.getId())}; g.h.Oe=function(){var l=g.G4(this.dc());l&&l.Oe()}; g.h.RL=function(l,n,O){var L=this.Mv(n);if(L){var X=this.b5();if(g.fy(X)){if(this.s_)if(this.J("html5_ssap_enable_cpn_triggered_media_end")&&L.getPlayerType()===2&&this.s_.tZ()&&(L=this.Wj()),n===1)for(var F=Ye(this.s_,X.clientPlaybackNonce),x=g.P(l),Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.start+=F,Z.end+=F,Z.KZ=F,Z.N=X.clientPlaybackNonce;else if(this.J("html5_ssap_enable_cpn_triggered_media_end")&&n===2)for(this.getPresentingPlayerType(),X=g.P(l),F=X.next();!F.done;F=X.next())F.value.N=this.s_.wA(); X=g.P(l);for(F=X.next();!F.done;F=X.next())x=void 0,F.value.playerType=(x=n)!=null?x:1}L.RL(l,O);n&&this.getPresentingPlayerType()!==n||cB(this,"cuerangesadded",l)}}; g.h.ZW=function(l,n){var O=this.Mv(n);O&&(O.ZW(l),n&&this.getPresentingPlayerType()!==n||cB(this,"cuerangesremoved",l))}; g.h.Ov=function(l){var n=this.AG()||this.Wj(),O=this.getPresentingPlayerType();return this.J("html5_ssap_enable_cpn_triggered_media_end")?n.Ov(O,l):n.Ov(O)}; g.h.Geo=function(){function l(){var L=n.screenLayer||(n.isMinimized()?3:0),X=g.yS(L);if(X&&X!=="UNDEFINED_CSN"){var F=n.xo.J("web_player_attach_player_response_ve"),x=n.xo.J("web_playback_associated_ve");L={cpn:n.getVideoData().clientPlaybackNonce,csn:X};n.getVideoData().Cf&&(F||x)&&(F=g.Dx(n.getVideoData().Cf),g.gW(X,F),x&&(L.playbackVe=F.getAsJson()));n.getVideoData().queueInfo&&(L.queueInfo=n.getVideoData().queueInfo);X={};n.J("web_playback_associated_log_ctt")&&n.getVideoData().V&&(X.cttAuthInfo= {token:n.getVideoData().V,videoId:n.getVideoData().videoId});g.JG("playbackAssociated",L,X)}else g.d2(new g.at("CSN Missing or undefined during playback association"))} var n=this,O=this.AG();this.getPresentingPlayerType();g15(this.ze,O.getVideoData(),pp0(this));kv(this)&&this.xo.L&&Bf(this.b5())==="embedded"&&this.D1&&Math.random()<.01&&g.JG("autoplayTriggered",{intentional:this.intentionalPlayback});this.D1=!1;Smf(this.Xo);this.J("web_player_defer_ad")&&Nla(this);this.iF.S3("onPlaybackStartExternal");(this.xo.J("mweb_client_log_screen_associated"),cI(this.xo))||l();O={};this.getVideoData().V&&(O.cttAuthInfo={token:this.getVideoData().V,videoId:this.getVideoData().videoId}); O.sampleRate=20;S$("player_att",O);if(this.getVideoData().botguardData||this.J("fetch_att_independently"))g.a5(this.xo)||RS(this.xo)==="MWEB"?g.lX(g.Oy(),function(){eK(n)}):eK(this); this.AI();YSk(this);this.J("embeds_enable_autoplay_and_visibility_signals")&&g.yG(this.xo)&&(O={autoplayBrowserPolicy:pD(),autoplayIntended:sA(this.getVideoData()),autoplayStatus:Ggf(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.JG("embedsAutoplayStatusChanged",O))}; g.h.gy=function(){this.iF.publish("internalAbandon");IP(this)}; g.h.onApiChange=function(){var l=this.AG();this.xo.T&&l?this.iF.Fb("onApiChange",l.getPlayerType()):this.iF.Fb("onApiChange")}; g.h.P5F=function(){var l=this.mediaElement;l={volume:g.hR(Math.floor(l.getVolume()*100),0,100),muted:l.F5()};l.muted||jK(this,!1);this.cT=g.jY(l);this.iF.Fb("onVolumeChange",l)}; g.h.mutedAutoplay=function(l){var n=this.getVideoData().videoId;isNaN(this.dV)&&(this.dV=this.getVideoData().startSeconds);if(!this.J("embeds_enable_full_length_inline_muted_autoplay"))n&&(this.loadVideoByPlayerVars({video_id:n,playmuted:!0,start:this.dV}),this.iF.S3("onMutedAutoplayStarts"));else if((l==null?0:l.videoId)||n)this.loadVideoByPlayerVars({video_id:(l==null?0:l.videoId)?l==null?void 0:l.videoId:n,playmuted:!0,start:this.dV,muted_autoplay_duration_mode:l==null?void 0:l.durationMode}), this.iF.S3("onMutedAutoplayStarts")}; g.h.onFullscreenChange=function(){var l=fOi(this);this.x6(l?1:0);aO5(this,!!l)}; g.h.x6=function(l){var n=!!l,O=!!this.lH()!==n;this.visibility.x6(l);this.template.x6(n);this.J("html5_media_fullscreen")&&!n&&this.mediaElement&&fOi(this)===this.mediaElement.De()&&this.mediaElement.TV();this.template.resize();O&&this.ze.tick("fsc");O&&(this.iF.publish("fullscreentoggled",n),l=this.b5(),n={fullscreen:n,videoId:l.Fa||l.videoId,time:this.getCurrentTime()},this.iF.getPlaylistId()&&(n.listId=this.iF.getPlaylistId()),this.iF.Fb("onFullscreenChange",n))}; g.h.JS=function(){return this.visibility.JS()}; g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.lH=function(){return this.visibility.lH()}; g.h.HoJ=function(){if(this.AG()){var l=this.lH();l!==0&&l!==1||this.x6(fOi(this)?1:0);l=window.screen.width*window.screen.height;var n=window.outerHeight*window.outerWidth;this.xo.Cz?(this.QL=Math.max(this.QL,l,n),l=n/this.QL<.33,this.visibility.Ps(l),this.xo.LZ&&Bl5(this,l)):this.mediaElement&&VA0(this,n/l<.33)&&this.mediaElement.TV()}}; g.h.wkf=function(l){this.getPresentingPlayerType()!==3&&this.iF.publish("liveviewshift",l)}; g.h.playVideo=function(l,n){this.logger.debug(function(){return"play video, player type "+l}); var O=this.Mv(l);O?this.appState===2?(g.Cw(this.xo)&&W8(this.ze),Qm(this)):g.K(O.getPlayerState(),2)?(n=36,this.getVideoData().UX()&&(n=37),this.seekTo(0,void 0,void 0,void 0,n)):O.playVideo(!1,n):this.r8.S.playVideo(!1,n)}; g.h.pauseVideo=function(l,n){(l=this.Mv(l))?l.pauseVideo(n):this.r8.S.pauseVideo(n)}; g.h.stopVideo=function(l){l=l===void 0?!1:l;this.logger.debug(function(){return"stop video"}); var n=this.Wj().getVideoData(),O=new g.z8(this.xo,{video_id:n.Fa||n.videoId,oauth_token:n.oauthToken});O.Y=g.jY(n.Y);var L;!l||(L=this.webPlayerContextConfig)!=null&&L.disableStaleness||(O.OJ=!0);this.cancelPlayback(6);BB(this,O,1)}; g.h.cancelPlayback=function(l,n){var O=this;this.logger.debug(function(){return"start cancel playback, type "+n}); var L=this.Mv(n);L?n===2&&L.getPlayerType()===1&&(aY(this.b5())||g.fy(this.getVideoData()))?L.Sp("canclpb",{r:"no_adpb_ssdai"}):(this.xo.AA()&&L.Sp("canclpb",{r:l}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+O.appState}):(L===this.AG()&&(this.logger.debug("cancel playback, destroy modules"),I6(this.Xo,l)),n===1&&(L.stopVideo(),IP(this)),L.Ya(void 0,l!==6),cB(this,"cuerangesremoved",L.PT()),L.uF.RN.reset(),this.s9&&L.isGapless()&& (L.bJ(!0),L.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.h.sendVideoStatsEngageEvent=function(l,n,O){(n=this.Mv(n))&&o40(this.xo,l)?n.sendVideoStatsEngageEvent(l,O):O&&O()}; g.h.MJ=function(l){var n=this.Mv();return n&&o40(this.xo,l)?n.MJ(l):null}; g.h.updatePlaylist=function(){!sI(this.xo)&&g.yG(this.xo)&&qSi(this);this.iF.S3("onPlaylistUpdate")}; g.h.setSizeStyle=function(l,n){this.RX=l;this.J("web_log_theater_mode_visibility")?this.b1(n):this.k9=n;this.iF.publish("sizestylechange",l,n);this.template.resize()}; g.h.b1=function(l){this.visibility.b1(l)}; g.h.XP=function(){return this.J("web_log_theater_mode_visibility")?this.visibility.XP():this.k9}; g.h.isMinimized=function(){return this.visibility.isMinimized()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.PQ=function(){return this.visibility.PQ()}; g.h.hw=function(){return this.visibility.hw()}; g.h.Vq=function(){return this.visibility.Vq()}; g.h.b3=function(){return this.RX}; g.h.getAdState=function(){if(this.getPresentingPlayerType()===3)return y7(this.Xo).getAdState();if(!this.dB()){var l=dt(this.dc());if(l)return l.getAdState()}return-1}; g.h.B8Q=function(l){var n=this.template.getVideoContentRect();Z2(this.Sg,n)||(this.Sg=n,(n=this.AG())&&n.Zv(),(n=this.Wj())&&n===this.AG()&&n.Zv(),this.lH()===1&&this.U1&&aO5(this,!0));this.Wb&&g.Ud(this.Wb,l)||(this.iF.publish("appresize",l),this.Wb=l)}; g.h.qJ=function(){return this.iF.qJ()}; g.h.KGf=function(){this.getPresentingPlayerType()===2&&this.jz.isManifestless()?cDi(this.jz):(this.kh&&(RV0(this.kh),IP(this)),Rrg(this,"signature"))}; g.h.LG2=function(l){l&&Rrg(this,"reloadPlayerEvent",void 0,l)}; g.h.mE=function(l){this.bJ(l);WB(this)}; g.h.n4f=function(l){if(l.errorCode==="manifest.net.badstatus"){var n=this.xo.experiments.MQ("html5_use_network_error_code_enums")?401:"401";l.details.rc===n&&this.iF.lF("onPlayerRequestAuthFailed")}}; g.h.HB=function(l){this.iF.publish("heartbeatparams",l)}; g.h.tI=function(l){this.iF.lF("onAutonavChangeRequest",l!==1)}; g.h.T$=function(){return this.mediaElement}; g.h.setBlackout=function(l){if(this.xo.uv!==l){this.xo.uv=l;var n=this.AG();n&&(n.uF.wk(),this.xo.wq&&tA8(this),n.Z0(l))}}; g.h.Kez=function(){var l=this.AG();if(l){var n=!this.iF.TU();l.W3(n)}}; g.h.onLoadedMetadata=function(){this.iF.S3("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.iF.S3("onDrmOutputRestricted")}; g.h.Ft=function(){this.intentionalPlayback=!0}; g.h.oz=function(){this.Xo.dispose();this.cL.dispose();this.jz.dispose();this.kh&&this.kh.dispose();this.G9.removeAll();this.G9.dispose();this.s_&&this.s_.dispose();ft(this.Wj());this.bJ();this.r8.dispose();g.ZL(this.playlist);g.V.prototype.oz.call(this)}; g.h.J=function(l){return this.xo.J(l)}; g.h.setScreenLayer=function(l){this.screenLayer=l}; g.h.getInternalApi=function(){return this.iF.getInternalApi()}; g.h.createSubtitlesModuleIfNeeded=function(){return this.Xo.createSubtitlesModuleIfNeeded()}; g.h.isOrchestrationLeader=function(){var l=Vk(this.Xo);return l?l.isOrchestrationLeader():!1}; g.h.getVideoUrl=function(l,n,O,L,X){if(this.Hj&&this.Hj.postId)return l=this.xo.getVideoUrl(l),l=Kr(l,"v"),l.replace("/watch","/clip/"+this.Hj.postId);var F=this.iF.isEmbedsShortsMode()||this.xo.Cf==="shortspage",x=g.OY(this.getVideoData());return this.xo.getVideoUrl(l,n,O,L,X,F,x)}; g.h.lG=function(){return this.s9.lG()}; g.h.ac=function(l,n,O){this.iF.publish("spsumpreject",l,n,O)}; g.h.VJ=function(){try{for(var l=g.P(Object.values(this.r8.N)),n=l.next();!n.done;n=l.next()){var O=n.value;O.uF.JG()||O.VJ()}if(this.J("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var L=g.P(sdg(this.r8.W)),X=L.next();!X.done;X=L.next()){var F=X.value;F.uF.JG()||F.VJ()}this.Wj().VJ()}catch(x){g.d2(x)}}; g.h.B4=function(){if(this.kh){var l=(0,g.Q_)();return this.kh.B4(l)}return!1}; g.h.Tv=function(l){var n=this.Wj();l&&(n=lVi(this,l));if(n){var O=n.getVideoData();l=new Map;O=g.P(O.sabrContextUpdates);for(var L=O.next();!L.done;L=O.next()){var X=g.P(L.value);L=X.next().value;X=X.next().value;var F,x;if(x=X.scope===4)(F=n)==null?F=0:(x=void 0,F=!((x=F.uF.sf)==null||!x.N.TM.has(L))),x=F;x&&l.set(L,X)}return l}this.Wj().Sp("scuget",{ncpf:"1",ccpn:l})}; var q5={};var WPk={Ru:[{h5:/Unable to load player module/,weight:20},{h5:/Failed to fetch/,weight:500},{h5:/XHR API fetch failed/,weight:10},{h5:/JSON parsing failed after XHR fetch/,weight:10},{h5:/Retrying OnePlatform request/,weight:10},{h5:/CSN Missing or undefined during playback association/,weight:100},{h5:/Non-recoverable error. Do not retry./,weight:0},{h5:/Internal Error. Retry with an exponential backoff./,weight:0},{h5:/API disabled by application./,weight:0}],Tj:[{callback:nIq,weight:500}]};var AUi=/[&\?]action_proxy=1/,Hqa=/[&\?]token=([\w-]*)/,bqq=/[&\?]video_id=([\w-]*)/,rU9=/[&\?]index=([\d-]*)/,Uji=/[&\?]m_pos_ms=([\d-]*)/,PH5=/[&\?]vvt=([\w-]*)/,XXa="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),uKg="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),xj5={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"},hjv={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},JUf={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};SK.prototype.ql=function(l){this.player.GE().tick(l)}; SK.prototype.fetch=function(l,n){var O=this;if(!l.match(/\[BISCOTTI_ID\]/g))return this.W(l,n);var L=this.S===1;L&&this.ql("a_bid_s");var X=gIi();if(X!==null)return L&&this.ql("a_bid_f"),this.W(l,n,X);X=Leq();L&&E6(X,function(){O.ql("a_bid_f")}); return X.then(function(F){return O.W(l,n,F)})}; SK.prototype.W=function(l,n,O){var L=this,X=n===void 0?{}:n;n=X.dF;var F=X.BS;var x=X.cueProcessedMs;O=O===void 0?"":O;var Z=this.player.getVideoData(1);X=this.player.j().I0;var J=0;if(x&&F&&!n){var w=F.end-F.start;w>0&&(J=Math.floor(w/1E3))}J=n?n.HM:J;var H={AD_BLOCK:this.S++,AD_BREAK_LENGTH:J,AUTONAV_STATE:za(this.player.j()),CA_TYPE:"image",CPN:Z.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.td()*1E3,LACT:MU(),LIVE_INDEX:n?this.N++:1,LIVE_TARGETING_CONTEXT:n&&n.context?n.context:"",MIDROLL_POS:F? Math.round(F.start/1E3):0,MIDROLL_POS_MS:F?Math.round(F.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.xP().Dm().height,P_W:this.player.xP().Dm().width,YT_REMOTE:X?X.join(","):""},A=Hu(wc);Object.keys(A).forEach(function(r){A[r]!=null&&(H[r.toUpperCase()]=A[r].toString())}); O!==""&&(H.BISCOTTI_ID=O);O={};JP(l)&&(O.sts="20143",(n=this.player.j().forcedExperiments)&&(O.forced_experiments=n));var b=xp(g.jt(l,H),O);return b.split("?").length!==2?Te(Error("Invalid AdBreakInfo URL")):g.g7(this.player.j(),Z==null?void 0:Z.oauthToken).then(function(r){if(r&&ZE()){var U=dj();$A(U,r)}r=L.player.A2(U);U=T65(L,b,H,Z.isMdxPlayback,x);return g.Cp(r,U,"/youtubei/v1/player/ad_break").then(function(W){return W})})}; SK.prototype.reset=function(){this.N=this.S=1};g.u(We5,SK); We5.prototype.W=function(l,n,O){n=n===void 0?{}:n;var L=n.dF;var X=n.BS;var F=n.cueProcessedMs;O=O===void 0?"":O;n=this.S;this.S++;var x=this.player.j().J("h5_disable_macro_substitution_in_get_ad_break")?l:EIi(this,l,{dF:L,BS:X,cueProcessedMs:F},O,n);if(x.split("?").length!==2)return Math.random()<.1&&g.d2(Error("Invalid AdBreakInfo URL")),Te(Error("Invalid AdBreakInfo URL"));var Z=this.player.getVideoData(1).isMdxPlayback,J=O;O=Hqa.exec(x);O=O!=null&&O.length>=2?O[1]:"";l=AUi.test(x);var w=bqq.exec(x); w=w!=null&&w.length>=2?w[1]:"";var H=rU9.exec(x);H=H!=null&&H.length>=2&&!Number.isNaN(Number(H[1]))?Number(H[1]):1;var A=Uji.exec(x);A=A!=null&&A.length>=2?A[1]:"0";var b=VG(this.player.j().Vf),r=g.vt(this.player.getVideoData(1).Cf,!0);Fe9(this,r,x,J===""?"":J,this.player.j(),this.player.getVideoData(1));J={splay:!1,lactMilliseconds:String(MU()),playerHeightPixels:Math.trunc(this.player.xP().Dm().height),playerWidthPixels:Math.trunc(this.player.xP().Dm().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20143,autonavState:za(this.player.j())};if(Z){Z={};var U=this.player.j().I0;Zq0(Z,U?U.join(","):"")&&(J.mdxContext=Z)}if(Z=uKg.includes(b)?void 0:g.VA("PREF")){U=Z.split(RegExp("[:&]"));for(var W=0,N=U.length;W<N;W++){var q=U[W].split("=");if((q[0].toUpperCase()==="SML"||q[0].toUpperCase()==="GSML")&&q.length>1&&q[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}J.autoCaptionsDefaultOn=wXf(Z)}x=PH5.exec(x);(x=x!=null&&x.length>=2?x[1]:"")&&w&&(r.user.credentialTransferTokens= [{token:x,scope:"VIDEO"}]);x={contentPlaybackContext:J};J=this.player.getVideoData(1).getGetAdBreakContext();Z=this.player.getVideoData(1).clientPlaybackNonce;U=F!==void 0?Math.round(F).toString():void 0;W=(L==null?0:L.context)?L.context:void 0;N=0;F&&X&&!L&&(X=X.end-X.start,X>0&&(N=Math.floor(X/1E3)));L=(L=Math.trunc((L?L.HM:N)*1E3))?String(L):void 0;X=this.player.td()*1E3;X=Number.isNaN(X)?0:Math.trunc(X);n={adBlock:n,params:O,breakIndex:H,breakPositionMs:A,clientPlaybackNonce:Z,topLevelDomain:b, isProxyAdTagRequest:l,context:r,overridePlaybackContext:x,cueProcessedMs:U,videoId:w?w:void 0,liveTargetingParams:W,breakLengthMs:L,driftFromHeadMs:X?String(X):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:J?J:void 0};return N6i(this,n)};var EMi={SSi:"replaceUrlMacros",g6p:"onAboutThisAdPopupClosed",Bbi:"executeCommand"};Dji.prototype.jN=function(){return"adPingingEndpoint"}; Dji.prototype.pP=function(l,n,O){Lu5(this.qQ.get(),l,n,O)};qQ5.prototype.jN=function(){return"changeEngagementPanelVisibilityAction"}; qQ5.prototype.pP=function(l){this.C.lF("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:l})};kXe.prototype.jN=function(){return"loggingUrls"}; kXe.prototype.pP=function(l,n,O){l=g.P(l);for(var L=l.next();!L.done;L=l.next())L=L.value,Lu5(this.qQ.get(),L.baseUrl,n,O,L.attributionSrcMode)};g.u(MBi,g.V);g.u(s5,g.V);g.h=s5.prototype;g.h.addListener=function(l){this.listeners.push(l)}; g.h.removeListener=function(l){this.listeners=this.listeners.filter(function(n){return n!==l})}; g.h.Ke=function(l,n,O,L,X,F,x,Z){if(l==="")AV("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(l!==this.S||O){this.S=l;this.Bm.get().Ke(l,n,O,L,X,F,x,Z);this.tG.get().Ke(l,n,O,L,X,F,x,Z);var J;(J=this.uf)==null||J.get().Ke(l,n,O,L,X,F,x,Z);this.W.Ke(l,n,O,L,X,F,x,Z);J=g.P(this.listeners);for(var w=J.next();!w.done;w=J.next())w.value.Ke(l,n,O,L,X,F,x,Z)}else AV("Duplicate content video loaded signal")}; g.h.gy=function(){this.S&&this.Mq(this.S)}; g.h.Mq=function(l){this.S=void 0;for(var n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.Mq(l)};fM.prototype.Br=function(l,n,O,L,X){QEi(this);this.B=!n&&O===0;var F=this.C.getVideoData(1),x=this.C.getVideoData(2);F&&(this.contentCpn=F.clientPlaybackNonce,this.videoId=F.videoId,this.S=F.V);x&&(this.adCpn=x.clientPlaybackNonce,this.adVideoId=x.videoId,this.adFormat=x.adFormat);this.L=l;L<=0?(QEi(this),this.B=!n&&O===0):(this.actionType=this.B?n?"unknown_type":"video_to_ad":n?"ad_to_video":"ad_to_ad",this.videoStreamType=X?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,pp("_start",this.actionType)&&jEv(this)))}; fM.prototype.reset=function(){return new fM(this.C)};g.u(KM,g.V);KM.prototype.addCueRange=function(l,n,O,L,X,F,x){F=F===void 0?3:F;x=x===void 0?1:x;this.S.has(l)?AV("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:l}):(l=new GXq(l,n,O,L,F),this.S.set(l.id,{BS:l,listener:X,qF:x}),this.C.RA([l],x))}; KM.prototype.removeCueRange=function(l){var n=this.S.get(l);n?(this.C.lV([n.BS],n.qF),this.S.delete(n.BS.id)):AV("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:l})}; KM.prototype.onCueRangeEnter=function(l){if(this.S.has(l.id))this.S.get(l.id).listener.onCueRangeEnter(l.id)}; KM.prototype.onCueRangeExit=function(l){if(this.S.has(l.id))this.S.get(l.id).listener.onCueRangeExit(l.id)}; g.u(GXq,g.X4);aP.prototype.uq=function(l){this.C.uq(l)}; aP.prototype.qs=function(l){var n=g.eq.apply(1,arguments);l==="onAdStart"||l==="onAdEnd"?this.C.Fb.apply(this.C,[l].concat(g.E(n))):this.C.lF.apply(this.C,[l].concat(g.E(n)))};RP.prototype.EU=function(l){return l&&CM(this)};var zj5=null;g.u(iqv,g.hj);iqv.prototype.yn=function(l){return this.S.hasOwnProperty(l)?this.S[l].yn():{}}; g.i9("ytads.bulleit.getVideoMetadata",function(l){return tL().yn(l)}); g.i9("ytads.bulleit.triggerExternalActivityEvent",function(l,n,O){var L=tL();O=cUk(O);O!==null&&L.publish(O,{queryId:l,viewabilityString:n})});g.h=vB.prototype;g.h.xt=function(l,n){if(!this.S.has(l))return{};if(n==="seek"){n=this.C.j().J("html5_dai_enable_active_view_creating_completed_adblock");n=n===void 0?!1:n;var O=YC(DC).fA(l,{});O?D$(O):n&&(l=YC(DC).dl(null,RB(),!1,l),l.U9=3,p17([l]));return{}}n=pX9(n);if(n===null)return{};var L=this.C.wF();if(!L)return{};var X=this.C.getPresentingPlayerType(!0);if((O=this.C.getVideoData(X))==null||!O.isAd())return{};O={opt_adElement:L,opt_fullscreen:this.Bm.get().isFullscreen()};return p4g(n,l,O)}; g.h.xS=function(l,n,O,L,X){this.S.has(l)&&(L<=0||X<=0||YC(DC).xS(l,n,O,L,X))}; g.h.JV=function(l){var n;(n=this.S.get(l.queryId))==null||n.JV()}; g.h.gN=function(l){var n;(n=this.S.get(l.queryId))==null||n.gN()}; g.h.zp=function(l){var n;(n=this.S.get(l.queryId))==null||n.zp()}; g.h.BJ=function(l){var n;(n=this.S.get(l.queryId))==null||n.BJ()}; g.h.HJ=function(l){var n;(n=this.S.get(l.queryId))==null||n.HJ()};vIk.prototype.send=function(l,n,O,L){try{lie(this,l,n,O,L===void 0?!1:L)}catch(X){}};g.u(n9i,vIk);O_9.prototype.send=function(l,n,O,L){var X=!1;try{if(L==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||L==="ATTRIBUTION_SRC_MODE_XHR_OPTION")X=!0,l=JPf(l);L=X;var F=l.match(da);if(F[1]==="https")var x=l;else F[1]="https",x=jj("https",F[2],F[3],F[4],F[5],F[6],F[7]);var Z=XHi(x);F=[];var J=RYi(x)&&this.Rz.get().C.j().experiments.MQ("add_auth_headers_to_remarketing_google_dot_com_ping");if(JP(x)||J)F.push({headerType:"USER_AUTH"}),F.push({headerType:"PLUS_PAGE_ID"}),F.push({headerType:"VISITOR_ID"}),F.push({headerType:"EOM_VISITOR_ID"}), F.push({headerType:"AUTH_USER"}),F.push({headerType:"DATASYNC_ID"});this.S.send({baseUrl:x,scrubReferrer:Z,headers:F},n,O,L)}catch(w){}};Lk.prototype.MJ=function(){return this.C.MJ(1)};g.u(XH,g.V);g.h=XH.prototype;g.h.qm=function(){return this.C.getVideoData(1).clientPlaybackNonce}; g.h.addListener=function(l){this.listeners.push(l)}; g.h.removeListener=function(l){this.listeners=this.listeners.filter(function(n){return n!==l})}; g.h.Ke=function(){this.Uy.clear();this.hR=null;this.Ms.get().clear()}; g.h.Mq=function(){}; g.h.d_1=function(l,n,O,L,X){n.videoId==="nPpU29QrbiU"&&this.C.Sp("ads_ssm_vdc_s",{pt:O,dvt:l});WP(this.Rz.get())&&l!=="dataloaded"||Ju9(this,n,O);if(CM(this.Rz.get())&&l==="newdata"&&X!==void 0){l=this.qm();var F=n.clientPlaybackNonce,x={};Nl(this,"rte",(x.ec=F,x.xc=L==null?void 0:L.clientPlaybackNonce,x.tr=X,x.pt=O,x.ia=F!==l,x.ctp=Ee(F),x));n=n.clientPlaybackNonce;L=L==null?void 0:L.clientPlaybackNonce;X=wb0(X);if(X!==1)if(L!==void 0)for(O=g.P(this.listeners),l=O.next();!l.done;l=O.next())l.value.Vm(L, n,X);else AV("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:n,transitionReason:String(X)});X=g.P(this.listeners);for(L=X.next();!L.done;L=X.next())L.value.Ci(n)}}; g.h.Aef=function(l,n){l!==void 0&&(this.hR=l,n===void 0?AV("Expected ad video start time on SS video changed"):this.Uy.set(l,n));var O=this.C.getPresentingPlayerType(!0),L=this.C.getVideoData(O);this.C.getVideoData(1).Sp("ads_ssvc",{pt:O,cpn:L==null?void 0:L.clientPlaybackNonce,crtt:this.C.getCurrentTime(1,!1),atlh:this.C.isAtLiveHead(),adstt:n});L?Ju9(this,L,O):AV("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.C.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:l})}; g.h.Hr=function(l,n){var O=l.author,L=l.clientPlaybackNonce,X=l.isListed,F=l.WS,x=l.title,Z=l.ra,J=l.OX,w=l.isMdxPlayback,H=l.dH,A=l.mdxEnvironment,b=l.isAutonav,r=l.rk,U=l.M3,W=l.fI,N=l.videoId||"",q=l.profilePicture||"",y=l.dJ||"",e=l.UX()||!1,d=l.iK()||!1;l=l.vD||void 0;F=this.Ms.get().S.get(F)||{layoutId:null,slotId:null};var B=this.C.getVideoData(1),R=B.tA();B=B.getPlayerResponse();n=1E3*this.C.getDuration(n);var a=1E3*this.C.getDuration(1),Lv,Fa,l9=(B==null?void 0:(Lv=B.playerConfig)==null? void 0:(Fa=Lv.daiConfig)==null?void 0:Fa.enableDai)||!1,S,v;Lv=(B==null?void 0:(S=B.playerConfig)==null?void 0:(v=S.daiConfig)==null?void 0:v.enablePreroll)||!1;return Object.assign({},F,{videoId:N,author:O,clientPlaybackNonce:L,lN:n,Tx:a,daiEnabled:l9,E4:Lv,isListed:X,tA:R,profilePicture:q,title:x,dJ:y,ra:Z,OX:J,vD:l,isMdxPlayback:w,dH:H,mdxEnvironment:A,isAutonav:b,rk:r,M3:U,fI:W,UX:e,iK:d})}; g.h.oz=function(){this.listeners.length=0;this.hF=null;g.V.prototype.oz.call(this)};g.u(os,g.V);g.h=os.prototype;g.h.Ke=function(){var l=this;CM(this.Rz.get())||(this.S=bK(function(){l.C.JG()||l.C.T1("ad",1)}))}; g.h.Mq=function(){}; g.h.addListener=function(l){this.listeners.push(l)}; g.h.removeListener=function(l){this.listeners=this.listeners.filter(function(n){return n!==l})}; g.h.MX=function(){}; g.h.playVideo=function(){this.C.playVideo()}; g.h.pauseVideo=function(){this.C.pauseVideo()}; g.h.resumeVideo=function(l){this.OS(l)&&this.C.playVideo()}; g.h.OS=function(l){return this.C.getPlayerState(l)===2}; g.h.getCurrentTimeSec=function(l,n,O){var L=this.tG.get().hR;if(l===2&&!n&&L!==null)return Au0(this,L);Rn(this.Rz.get(),"html5_ssap_use_cpn_to_get_time")||(O=void 0);return O!==void 0?this.C.getCurrentTime(l,n,O):this.C.getCurrentTime(l,n)}; g.h.getVolume=function(){return this.C.getVolume()}; g.h.isMuted=function(){return this.C.isMuted()}; g.h.getPresentingPlayerType=function(){return this.C.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(l){return this.C.getPlayerState(l)}; g.h.isFullscreen=function(){return this.C.isFullscreen()}; g.h.isAtLiveHead=function(){return this.C.isAtLiveHead()}; g.h.ZE=function(l){this.C.ZE(l)}; g.h.oh3=function(){var l=this.C.getPresentingPlayerType(!0),n=this.getCurrentTimeSec(l,!1);if(l===2){l=g.P(this.listeners);for(var O=l.next();!O.done;O=l.next())O.value.nM(n)}else if(l===1)for(l=g.P(this.sF),O=l.next();!O.done;O=l.next())O.value.MX(n)}; g.h.Zpf=function(l){for(var n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.KN(l,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(l){for(var n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.onFullscreenToggled(l)}; g.h.onVolumeChange=function(){for(var l=g.P(this.listeners),n=l.next();!n.done;n=l.next())n.value.onVolumeChange()}; g.h.TE=function(){for(var l=this.C.isMinimized(),n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.TE(l)}; g.h.Mo=function(l){for(var n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.Mo(l)}; g.h.x4=function(){for(var l=this.C.xP().Dm(),n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.R0(l)}; g.h.Gx=function(l){for(var n=g.P(this.listeners),O=n.next();!O.done;O=n.next())O.value.Gx(l)}; g.h.ll=function(){for(var l=g.P(this.listeners),n=l.next();!n.done;n=l.next())n.value.ll()};g.u(UMi,g.V);g.u(JQ,g.V);JQ.prototype.oz=function(){this.xG.JG()||this.xG.get().removeListener(this);g.V.prototype.oz.call(this)};ws.prototype.fetch=function(l){var n=l.GO;return this.S.fetch(l.s0,{dF:l.dF===void 0?void 0:l.dF,BS:n,cueProcessedMs:l.cueProcessedMs===void 0?0:l.cueProcessedMs}).then(function(O){return uka(O,n)})};g.u(Hg,g.V);g.h=Hg.prototype;g.h.addListener=function(l){this.listeners.push(l)}; g.h.removeListener=function(l){this.listeners=this.listeners.filter(function(n){return n!==l})}; g.h.N9=function(l){P7i(this,l,1)}; g.h.onAdUxClicked=function(l,n){AQ(this,function(O){O.Jh(l,n)})}; g.h.jq=function(l){AQ(this,function(n){n.d3(l)})}; g.h.AR=function(l){AQ(this,function(n){n.sO(l)})}; g.h.Pv1=function(l){AQ(this,function(n){n.YA(l)})};bF.prototype.reduce=function(l){switch(l.event){case "unknown":return}var n=l.identifier;var O=this.S[n];O?n=O:(O={RT:null,NO:-Infinity},n=this.S[n]=O);O=l.startSecs+l.S/1E3;if(!(O<n.NO))if(n.NO=O,n.RT){if(O<n.RT.end){a:{O=n.RT;switch(l.event){case "start":case "continue":case "stop":break;default:l=null;break a}l=O.start+l.HM;l=O.end<=l?null:l}if(l!==null)for(n.RT.end=l,n=this.W,g.wQ(n.N.S,l*1E3),n=g.P(n.listeners),O=n.next();!O.done;O=n.next())O.value.fW(l)}}else if(l=TJk(l,this.N))O=l.Xmf,n.RT= l.uj,E9k(this.W,O)}; bF.prototype.updateTime=function(){};g.u(rs,g.V);g.h=rs.prototype; g.h.Ke=function(){this.B=new bF(this,IVi(this.Rz.get()));this.N=new Wue;var l=this.C.getVideoData(1);if(!l.enableServerStitchedDai){var n=this.C.getVideoData(1),O;((O=this.W)==null?void 0:O.clientPlaybackNonce)!==n.clientPlaybackNonce&&(this.W!=null&&this.W.unsubscribe("cuepointupdated",this.bu,this),n.subscribe("cuepointupdated",this.bu,this),this.W=n)}this.d$.length=0;var L;n=((L=l.S)==null?void 0:Sve(L,0))||[];L=g.P(n);for(n=L.next();!n.done;n=L.next())n=n.value,this.Df(n)&&(B6a(this.Rz.get())&& LS(this.qQ.get(),"ocvl","cpi."+n.identifier+";cpe."+n.event+";cps."+n.startSecs),AV("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:n.identifier,cuePointEvent:n.event,contentCpn:l.clientPlaybackNonce}))}; g.h.Mq=function(){}; g.h.addListener=function(l){this.listeners.push(l)}; g.h.removeListener=function(l){this.listeners=this.listeners.filter(function(n){return n!==l})}; g.h.Df=function(l){DM9(this,l);this.B.reduce(l);l=this.L;this.L=!1;return l}; g.h.bu=function(l){var n=this.C.getVideoData(1).isDaiEnabled();if(n||!g.qp(this.C.j())){l=g.P(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,DM9(this,O),n)this.B.reduce(O);else if(this.C.getCurrentTime(1)!==0&&O.event==="start")if(this.Rz.get().C.j().experiments.MQ("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.S==null||this.Rz.get().C.j().experiments.MQ("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.S.identifier!==O.identifier?0:O.startSecs+O.HM>=this.S.startSecs&& O.startSecs<=this.S.startSecs+this.S.HM)){var L=void 0;if(B6a(this.Rz.get())&&O.identifier!==((L=this.S)==null?void 0:L.identifier)){var X=L=void 0,F=void 0,x=void 0;LS(this.qQ.get(),"ocud","ccpi."+O.identifier+";ccpe."+O.event+";ccps."+O.startSecs+";\n ccpd."+O.HM+";pcpi."+((L=this.S)==null?void 0:L.identifier)+";pcpe."+((X=this.S)==null?void 0:X.event)+";\n pcps."+((F=this.S)==null?void 0:F.startSecs)+";pcpd."+((x=this.S)==null?void 0:x.HM)+";")}L=void 0;O.identifier!== ((L=this.S)==null?void 0:L.identifier)&&AV("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.S=O,E9k(this,O)}}; g.h.oz=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.bu,this),this.W=null);this.listeners.length=0;this.d$.length=0;g.V.prototype.oz.call(this)};UR.prototype.addPlayerResponseForAssociation=function(l){this.C.addPlayerResponseForAssociation(l)};g.h=Pg.prototype;g.h.Iw=function(l,n,O,L,X,F,x){return this.C.Iw(l,n,O,L,X,F,x)}; g.h.vK=function(l,n){this.C.vK(l,n)}; g.h.C9=function(l,n,O){this.C.C9(l,n,O)}; g.h.Bs=function(l){this.C.Bs(l)}; g.h.Ht=function(l,n,O,L,X,F,x){this.C.Ht(l,n,O,L,X,F,x)}; g.h.mA=function(l){return this.C.mA(l)}; g.h.finishSegmentByCpn=function(l,n,O){O=kY5(O);this.C.finishSegmentByCpn(l,n,O)};g.u(My9,g.V);g.u(Qw7,g.V);g.u(e58,g.V);g.u(YB7,g.V);g.u(jw5,g.V);g.u(mMg,g.V);mMg.prototype.N=function(){return this.W};g.u(Iik,pI); Iik.prototype.L=function(l){var n=l.content;if(n.componentType==="shopping-companion")switch(l.actionType){case 1:case 2:l=this.S.getVideoData(1);this.S.lF("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId,shoppingCompanionCarouselRenderer:n.renderer,layoutId:n.layoutId,macros:n.macros,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});break;case 3:this.S.lF("updateKevlarOrC3Companion",{})}else if(n.componentType==="action-companion")switch(l.actionType){case 1:case 2:l=this.S.getVideoData(1); this.S.lF("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId,actionCompanionAdRenderer:n.renderer,layoutId:n.layoutId,macros:n.macros,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});break;case 3:n.renderer&&(n=this.S.getVideoData(1),this.S.lF("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId})),this.S.lF("updateKevlarOrC3Companion",{})}else if(n.componentType==="image-companion")switch(l.actionType){case 1:case 2:l=this.S.getVideoData(1);this.S.lF("updateKevlarOrC3Companion", {contentVideoId:l&&l.videoId,imageCompanionAdRenderer:n.renderer,layoutId:n.layoutId,macros:n.macros,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});break;case 3:n=this.S.getVideoData(1),this.S.lF("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId}),this.S.lF("updateKevlarOrC3Companion",{})}else if(n.componentType==="top-banner-image-text-icon-buttoned")switch(l.actionType){case 1:case 2:l=this.S.getVideoData(1);this.S.lF("updateKevlarOrC3Companion", {contentVideoId:l&&l.videoId,topBannerImageTextIconButtonedLayoutViewModel:n.renderer,layoutId:n.layoutId,macros:n.macros,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});break;case 3:n.renderer&&(n=this.S.getVideoData(1),this.S.lF("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId})),this.S.lF("updateKevlarOrC3Companion",{})}else if(n.componentType==="banner-image")switch(l.actionType){case 1:case 2:l=this.S.getVideoData(1);this.S.lF("updateKevlarOrC3Companion", {contentVideoId:l&&l.videoId,bannerImageLayoutViewModel:n.renderer,layoutId:n.layoutId,macros:n.macros,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});break;case 3:n=this.S.getVideoData(1),this.S.lF("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId}),this.S.lF("updateKevlarOrC3Companion",{})}else if(n.componentType==="ads-engagement-panel")switch(n=n.renderer,l.actionType){case 1:case 2:this.S.lF("updateEngagementPanelAction",n.addAction);this.S.lF("changeEngagementPanelVisibility", n.expandAction);break;case 3:this.S.lF("changeEngagementPanelVisibility",n.hideAction),this.S.lF("updateEngagementPanelAction",n.removeAction)}else if(n.componentType==="ads-engagement-panel-layout"){var O=n.renderer;switch(l.actionType){case 1:case 2:this.S.lF("updateEngagementPanelAction",{action:cv(O.addAction),layoutId:n.layoutId,onLayoutVisibleCallback:n.S,interactionLoggingClientData:n.interactionLoggingClientData});this.S.lF("changeEngagementPanelVisibility",cv(O.expandAction));break;case 3:this.S.lF("changeEngagementPanelVisibility", cv(O.hideAction)),this.S.lF("updateEngagementPanelAction",{action:cv(O.removeAction)})}}};g.u(dMv,lr);g.h=dMv.prototype;g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);g.HH(this.N,"stroke-dasharray","0 "+this.W);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.V.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.L.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){O2(this);lr.prototype.hide.call(this)}; g.h.show=function(){nH(this);lr.prototype.show.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();l!=null&&l.current!=null&&g.HH(this.N,"stroke-dasharray",l.current/l.seekableEnd*this.W+" "+this.W)}};g.u($Mk,bm);g.h=$Mk.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);if(n.image&&n.image.thumbnail)if(n.headline)if(n.description)if(n.backgroundImage&&n.backgroundImage.thumbnail)if(n.actionButton&&g.z(n.actionButton,g.dm))if(l=n.durationMilliseconds||0,typeof l!=="number"||l<=0)g.Ir(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+l));else if(n.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null){var X=n.image.thumbnail.thumbnails;X!=null&& X.length>0&&g.DL(g.v3(X[0].url))&&(X[0].url=L.profilePicture,g.DL(g.v3(L.profilePicture))&&Onv("VideoPlayer",239976093,"Expected non-empty profile picture."));X=n.backgroundImage.thumbnail.thumbnails;X!=null&&X.length>0&&g.DL(g.v3(X[0].url))&&(X[0].url=L.HG());X=n.headline;X!=null&&g.DL(g.v3(X.text))&&(X.text=L.author)}this.Y.init(F2("ad-image"),n.image,O);this.V.init(F2("ad-text"),n.headline,O);this.N.init(F2("ad-text"),n.description,O);this.Pm.init(F2("ad-image"),n.backgroundImage,O);L=["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.V.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");L.push("ytp-ad-action-interstitial-action-button-dark");this.api.j().W&&(L.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),L.push("ytp-ad-action-interstitial-action-button-dark"));this.api.j().J("enable_unified_action_endcap_on_web")&& !this.api.j().W&&(L.push("ytp-ad-action-interstitial-action-button-unified"),this.nf.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Of.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Yu.classList.add("ytp-ad-action-interstitial-card-unified"),this.NQ.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Cf.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Hm.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.wq.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,L);g.c(this,this.actionButton);this.actionButton.V5(this.nf); this.actionButton.init(F2("button"),g.z(n.actionButton,g.dm),O);sU(this.actionButton.element);L=aU(this.actionButton.element);K7(this.actionButton.element,L+" This link opens in new tab");this.navigationEndpoint=n.navigationEndpoint;this.L.U(this.Hm,"click",this.sx,this);this.L.U(this.NQ,"click",this.sx,this);!this.api.j().J("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.j().W||this.L.U(this.Cf,"click",this.sx,this);this.S=this.rd?new DD(this.api,l):new qi(l);g.c(this,this.S);if(n.skipButton){(l= g.z(n.skipButton,dQR))&&this.S&&(this.skipButton=new ur(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S,this.uL),g.c(this,this.skipButton),this.skipButton.V5(this.element),this.skipButton.init(F2("skip-button"),l,O));O=this.api.J("disable_ad_preview_for_instream_ads");if(l=n.adBadgeRenderer)if(l=g.z(l,ILQ))L=new E2(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,!0,O),L.V5(this.wq),L.init(F2("simple-ad-badge"),l,this.macros),g.c(this,L);if(l=n.adInfoRenderer)if(l= g.z(l,mK))O=new CI(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.element,void 0,O),O.V5(this.wq),O.init(F2("ad-info-hover-text-button"),l,this.macros),g.c(this,O)}else n.nonskippableOverlayRenderer&&(l=g.z(n.nonskippableOverlayRenderer,Ip))&&this.S&&(this.W=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S,!1),g.c(this,this.W),this.W.V5(this.element),this.W.init(F2("ad-preview"),l,O));n.countdownRenderer&&(n=n.countdownRenderer,g.z(n,$Q1)&&this.S&& (O=new dMv(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.S),g.c(this,O),O.V5(this.element),O.init(F2("timed-pie-countdown"),g.z(n,$Q1),this.macros)));this.show();this.element.focus()}else g.Ir(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ir(Error("AdActionInterstitialRenderer has no button."));else g.Ir(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ir(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ir(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.Ir(Error("AdActionInterstitialRenderer has no image."))}; g.h.clear=function(){g.eU(this.L);this.hide()}; g.h.show=function(){Vyq(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();bm.prototype.show.call(this)}; g.h.hide=function(){Vyq(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();bm.prototype.hide.call(this)}; g.h.sx=function(){this.navigationEndpoint&&(this.layoutId?this.Iz.executeCommand(this.navigationEndpoint,this.layoutId):g.Ir(Error("Missing layoutId for ad action interstitial.")))};var SBi={iconType:"CLOSE"},NN=new g.re(320,63);g.u(z5i,bm);g.h=z5i.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);this.L=n;this.Y=g.Ot(this.L.onClickCommands||[]);this.wq=this.L.onErrorCommand||null;if(l=this.L.contentSupportedRenderer)l=this.L.contentSupportedRenderer,n=this.L.adInfoRenderer||null,g.z(l,jku)?(this.V=g.aC("ytp-ad-overlay-ad-info-button-container",this.N.element),pbf(this,n),l=fi9(this,g.z(l,jku))):g.z(l,Gck)?(this.V=g.aC("ytp-ad-overlay-ad-info-button-container",this.W.element),pbf(this,n),l=Ku5(this,g.z(l,Gck))):g.z(l,mQD)?(this.V= g.aC("ytp-ad-overlay-ad-info-button-container",this.S.element),pbf(this,n),l=aif(this,g.z(l,mQD))):(g.Ir(Error("InvideoOverlayAdRenderer content could not be initialized.")),l=!1);l&&(this.show(),R55(this,!0))}; g.h.clear=function(){R55(this,!1);this.Hm.reset();this.NQ=0;this.N.hide();this.logVisibility(this.N.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.hide();this.dispose()}; g.h.YK5=function(){this.nf&&(this.layoutId?this.Iz.executeCommand(this.nf,this.layoutId):g.Ir(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.h.zD=function(){a:{if(this.L&&this.L.closeButton&&this.L.closeButton.buttonRenderer){var l=this.L.closeButton.buttonRenderer;if(l.serviceEndpoint){l=[l.serviceEndpoint];break a}}l=[]}l=g.P(l);for(var n=l.next();!n.done;n=l.next())n=n.value,this.layoutId?this.Iz.executeCommand(n,this.layoutId):g.Ir(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.h.yA2=function(){this.Pm||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.h.gx=function(){this.Pm||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.gx("invideo-overlay")}; g.h.Fyi=function(l){l.target===this.V&&g.aC("ytp-ad-button",this.Of.element).click()};g.u(C7f,lr);g.h=C7f.prototype;g.h.init=function(l,n,O){lr.prototype.init.call(this,l,n,O);l=n.durationMs;this.N=l==null||l===0?0:l+this.S.getProgressState().current*1E3;if(n.text)var L=n.text.templatedAdText;else n.staticMessage&&(L=n.staticMessage);this.messageText.init(F2("ad-text"),L,O);this.messageText.V5(this.W.element);this.L.show(100);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){tyi(this,!1);lr.prototype.hide.call(this);this.W.hide();this.messageText.hide();O2(this)}; g.h.show=function(){tyi(this,!0);lr.prototype.show.call(this);nH(this);this.W.show();this.messageText.show()}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S!=null){var l=this.S.getProgressState();l!=null&&l.current!=null&&(l=1E3*l.current,!this.NQ&&l>=this.N?(this.L.hide(),this.NQ=!0):this.messageText&&this.messageText.isTemplated()&&(l=Math.max(0,Math.ceil((this.N-l)/1E3)),l!==this.V&&(vr(this.messageText,{TIME_REMAINING:String(l)}),this.V=l)))}};g.u(v9i,bm);g.h=v9i.prototype; g.h.init=function(l,n,O){bm.prototype.init.call(this,l,n,{});n.image&&n.image.thumbnail?n.headline?n.description?n.actionButton&&g.z(n.actionButton,g.dm)?(this.N.init(F2("ad-image"),n.image,O),this.W.init(F2("ad-text"),n.headline,O),this.L.init(F2("ad-text"),n.description,O),l=["ytp-ad-underlay-action-button"],this.api.j().J("use_blue_buttons_for_desktop_player_underlay")&&l.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz, l),n.backgroundColor&&g.HH(this.element,"background-color",g.ir(n.backgroundColor)),g.c(this,this.actionButton),this.actionButton.V5(this.V),this.actionButton.init(F2("button"),g.z(n.actionButton,g.dm),O),n=g.HQ(this.api.j().experiments,"player_underlay_video_width_fraction"),this.api.j().J("place_shrunken_video_on_left_of_player")?(O=this.S,g.ZW(O,"ytp-ad-underlay-left-container"),g.FW(O,"ytp-ad-underlay-right-container"),g.HH(this.S,"margin-left",Math.round((n+.02)*100)+"%")):(O=this.S,g.ZW(O,"ytp-ad-underlay-right-container"), g.FW(O,"ytp-ad-underlay-left-container")),g.HH(this.S,"width",Math.round((1-n-.04)*100)+"%"),this.api.Ls()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Mr.bind(this)),this.api.addEventListener("resize",this.KD.bind(this))):g.Ir(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ir(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ir(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ir(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){ldk(!0);this.actionButton&&this.actionButton.show();bm.prototype.show.call(this)}; g.h.hide=function(){ldk(!1);this.actionButton&&this.actionButton.hide();bm.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mr.bind(this));this.api.removeEventListener("resize",this.KD.bind(this));this.hide()}; g.h.onClick=function(l){bm.prototype.onClick.call(this,l);this.actionButton&&g.Fg(this.actionButton.element,l.target)&&this.api.pauseVideo()}; g.h.Mr=function(l){l==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):l==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):l==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))}; g.h.KD=function(l){l.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):l.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.HH(this.W.element,"font-size",l.width/40+"px")};g.u(Dp,bm); Dp.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);n.toggledLoggingParams&&(this.toggledLoggingParams=n.toggledLoggingParams);n.answer&&g.z(n.answer,g.dm)?(l=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),l.V5(this.answer),l.init(F2("ytp-ad-survey-answer-button"),g.z(n.answer,g.dm),O),l.show()):n.answer&&g.z(n.answer,T9)&&(this.S=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz, ["ytp-ad-survey-answer-toggle-button"]),this.S.V5(this.answer),g.c(this,this.S),this.S.init(F2("survey-answer-button"),g.z(n.answer,T9),O));this.show()}; Dp.prototype.Jb=function(l){this.layoutId?fL(this.Iz,l,this.layoutId,this.macros):g.Ir(new g.at("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Dp.prototype.onClick=function(l){bm.prototype.onClick.call(this,l);if(this.api.j().J("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Dp.prototype.clear=function(){this.hide()};g.u(nn5,bm);nn5.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);n.answer&&g.z(n.answer,T9)&&(this.button=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.V5(this.S),this.button.init(F2("survey-none-of-the-above-button"),g.z(n.answer,T9),O));this.show()};g.u(qN,G5);qN.prototype.init=function(l,n,O){G5.prototype.init.call(this,l,n,O);l=!1;n.text&&(n=g.Uw(n.text),l=!g.DL(n));l||g.d2(Error("No submit text was present in the renderer."))}; qN.prototype.onClick=function(l){this.publish("l");G5.prototype.onClick.call(this,l)};g.u(kf,bm); kf.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);if(l=n.skipOrPreviewRenderer)g.z(l,x4)?(l=g.z(l,x4),O=new T7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.L,!0),O.V5(this.skipOrPreview),O.init(F2("skip-button"),l,this.macros),g.c(this,O),this.S=O):g.z(l,Ip)&&(l=g.z(l,Ip),O=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.L,!1),O.V5(this.skipOrPreview),O.init(F2("ad-preview"),l,this.macros),oN(O),g.c(this,O),this.S=O);this.S== null&&g.Ir(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(n)));n.submitButton&&(l=n.submitButton,g.z(l,g.dm)&&(l=g.z(l,g.dm),O=new qN(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),O.V5(this.submitButton),O.init(F2("survey-submit"),l,this.macros),g.c(this,O),this.W=O));l=this.api.J("disable_ad_preview_for_instream_ads");if(O=n.adBadgeRenderer){O=g.z(O,ILQ);var L=new E2(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,!0, l,!0);L.V5(this.N);L.init(F2("simple-ad-badge"),O,this.macros);this.adBadge=L.element;g.c(this,L)}if(O=n.adDurationRemaining)O=g.z(O,Qkc),L=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.L,void 0,l),L.V5(this.N),L.init(F2("ad-duration-remaining"),O,this.macros),g.c(this,L);(n=n.adInfoRenderer)&&g.z(n,mK)&&(O=new CI(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.element,void 0,l),g.c(this,O),l&&this.adBadge!==void 0?this.N.insertBefore(O.element, this.adBadge.nextSibling):O.V5(this.N),O.init(F2("ad-info-hover-text-button"),g.z(n,mK),this.macros));this.show()}; kf.prototype.clear=function(){this.hide()};g.u(y2,bm);y2.prototype.init=function(l,n,O){bm.prototype.init.call(this,l,n,O);on9(this)}; y2.prototype.show=function(){this.N=Date.now();bm.prototype.show.call(this)}; y2.prototype.Bg=function(){};g.u(Fsa,y2);g.h=Fsa.prototype;g.h.init=function(l,n,O){var L=this;y2.prototype.init.call(this,l,n,O);n.questionText&&O8f(this,n.questionText);n.answers&&n.answers.forEach(function(X,F){g.z(X,uR)&&gne(L,g.z(X,uR),O,F)}); this.V=new Set(this.W.map(function(X){return X.S.S})); (l=n.noneOfTheAbove)&&(l=g.z(l,YF6))&&xy8(this,l,O);n.surveyAdQuestionCommon&&XSa(this,n.surveyAdQuestionCommon);n.submitEndpoints&&(this.submitEndpoints=n.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.h.Bg=function(){hz5(this,!1);this.L.W.subscribe("l",this.Ooz,this)}; g.h.onChange=function(l){l.target===this.noneOfTheAbove.button.S?Z85(this):this.V.has(l.target)&&(this.noneOfTheAbove.button.toggleButton(!1),hz5(this,!0))}; g.h.Ooz=function(){var l=[],n=this.W.reduce(function(X,F,x){var Z=F.toggledLoggingParams;F.S&&F.S.isToggled()&&Z&&(X.push(Z),l.push(x));return X},[]).join("&"),O=this.submitEndpoints.map(function(X){if(!X.loggingUrls)return X; X=g.GB(X);X.loggingUrls=X.loggingUrls.map(function(F){F.baseUrl&&(F.baseUrl=s6(F.baseUrl,n));return F}); return X}); if(O){O=g.P(O);for(var L=O.next();!L.done;L=O.next())L=L.value,this.layoutId?fL(this.Iz,L,this.layoutId,this.macros):g.Ir(Error("Missing layoutId for multi_select_question."))}this.api.j().J("supports_multi_step_on_desktop")&&this.NQ(l)}; g.h.clear=function(){this.api.j().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(MN,y2);MN.prototype.init=function(l,n,O){var L=this;y2.prototype.init.call(this,l,n,O);n.questionText&&O8f(this,n.questionText);n.answers&&n.answers.forEach(function(X,F){g.z(X,uR)&&gne(L,g.z(X,uR),O,F)}); n.surveyAdQuestionCommon?XSa(this,n.surveyAdQuestionCommon):g.Ir(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(n)));this.show()}; MN.prototype.clear=function(){this.api.j().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(Q2,bm);Q2.prototype.init=function(l,n,O){var L=this;bm.prototype.init.call(this,l,n,O);if(this.api.j().J("supports_multi_step_on_desktop")){var X;this.conditioningRules=(X=n.conditioningRules)!=null?X:[];var F;this.W=(F=n.questions)!=null?F:[];var x;((x=n.questions)==null?0:x.length)&&AIf(this,0)}else(n.questions||[]).forEach(function(Z){g.z(Z,jQ)?wSq(L,g.z(Z,jQ),O):g.z(Z,Y2)&&H89(L,g.z(Z,Y2),O)}); this.show()}; Q2.prototype.clear=function(){this.api.j().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Q2.prototype.L=function(l){var n=this;if(this.api.j().J("supports_multi_step_on_desktop")){var O;if((O=this.conditioningRules)==null?0:O.length){var L;if(l.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(X){return X.questionIndex===n.S})==null)g.Ir(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(X){if(X.questionIndex===n.S)switch(X.condition){case "CONDITION_ALL_OF":var F;if((F=X.answerIndices)==null?0:F.every(function(Z){return l.includes(Z)}))L=X.nextQuestionIndex; break;case "CONDITION_ANY_OF":var x;if((x=X.answerIndices)==null?0:x.some(function(Z){return l.includes(Z)}))L=X.nextQuestionIndex; break;default:g.Ir(Error("Expected specified condition in survey conditioning rules."))}}),L!=null)AIf(this,L); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Ir(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.u(eG,bm); eG.prototype.init=function(l,n,O){var L=this;bm.prototype.init.call(this,l,n,O);l=n.timeoutSeconds||0;if(typeof l!=="number"||l<0)g.Ir(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+l));else if(n.timeoutCommands)if(n.text)if(n.ctaButton&&g.z(n.ctaButton,g.dm))if(n.brandImage)if(n.backgroundImage&&g.z(n.backgroundImage,$2)&&g.z(n.backgroundImage,$2).landscape){this.layoutId||g.Ir(Error("Missing layoutId for survey interstitial."));b8k(this.interstitial,g.z(n.backgroundImage, $2).landscape);b8k(this.logoImage,n.brandImage);g.xQ(this.text,g.Uw(n.text));var X=["ytp-ad-survey-interstitial-action-button"];X.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,X);g.c(this,this.actionButton);this.actionButton.V5(this.W);this.actionButton.init(F2("button"),g.z(n.ctaButton,g.dm),O);this.actionButton.show();this.S=new DD(this.api,l*1E3);this.S.subscribe("g",function(){L.transition.hide()}); g.c(this,this.S);this.U(this.element,"click",function(F){var x=F.target===L.interstitial;F=L.actionButton.element.contains(F.target);if(x||F)if(L.transition.hide(),x)L.api.onAdUxClicked(L.componentType,L.layoutId)}); this.transition.show(100)}else g.Ir(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ir(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ir(Error("SurveyTextInterstitialRenderer has no button."));else g.Ir(Error("SurveyTextInterstitialRenderer has no text."));else g.Ir(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; eG.prototype.clear=function(){this.hide()}; eG.prototype.show=function(){rI5(!0);bm.prototype.show.call(this)}; eG.prototype.hide=function(){rI5(!1);bm.prototype.hide.call(this)};g.u(Yf,lr);g.h=Yf.prototype; g.h.init=function(l,n){lr.prototype.init.call(this,l,n,{});if(n.durationMilliseconds){if(n.durationMilliseconds<0){g.Ir(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+n.durationMilliseconds));return}this.W=n.durationMilliseconds}else this.W=this.S.Bc();var O;if((O=n.previewText)==null||!O.text||g.DL(n.previewText.text))g.Ir(Error("No text is returned for AdPreview."));else{this.V=n.previewText;n.previewText.isTemplated||g.xQ(this.N,n.previewText.text);var L; if(((L=this.api.getVideoData(1))==null?0:L.o_)&&n.previewImage){var X,F;(l=((F=yU(((X=n.previewImage)==null?void 0:X.sources)||[],52,!1))==null?void 0:F.url)||"")&&l.length?(this.previewImage=new g.Aj({D:"img",X:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",l),g.c(this,this.previewImage),this.previewImage.V5(this.element)):g.Ir(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.h.clear=function(){this.hide()}; g.h.hide=function(){O2(this);lr.prototype.hide.call(this)}; g.h.show=function(){nH(this);lr.prototype.show.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();if(l!=null&&l.current)if(l=1E3*l.current,l>=this.W)this.transition.hide();else{var n;if((n=this.V)==null?0:n.isTemplated)if(n=Math.max(0,Math.ceil((this.W-l)/1E3)),n!==this.L){var O,L;(l=(O=this.V)==null?void 0:(L=O.text)==null?void 0:L.replace("{TIME_REMAINING}",String(n)))&&g.xQ(this.N,l);this.L=n}}}};g.u(jG,bm); jG.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});var O,L;if((l=((L=yU(((O=n.image)==null?void 0:O.sources)||[],Uyk(n),!0))==null?void 0:L.url)||"")&&l.length){O=this.mJ("ytp-ad-avatar");O.src=l;var X,F;if(L=(X=n.interaction)==null?void 0:(F=X.accessibility)==null?void 0:F.label)O.alt=L;switch(n.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(n.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.Ir(Error("Failed to get imageUrl in AdAvatar."))}; jG.prototype.clear=function(){this.hide()}; jG.prototype.onClick=function(l){bm.prototype.onClick.call(this,l)};g.u(GL,bm); GL.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});var O;l=(O=n.label)==null?void 0:O.content;if((O=l!=null&&!g.DL(l))||n.iconImage){O&&(this.buttonText=new g.Aj({D:"span",X:"ytp-ad-button-vm__text",hG:l}),g.c(this,this.buttonText),this.buttonText.V5(this.element));var L,X,F=((L=n.interaction)==null?0:(X=L.accessibility)==null?0:X.label)||O?l:"";F&&K7(this.element,F+" This link opens in new tab");sU(this.element);if(n.iconImage){L=void 0;if(n.iconImage){a:{X=n.iconImage;if(X.sources)for(X= g.P(X.sources),l=X.next();!l.done;l=X.next())if(l=l.value,F=void 0,(F=l.clientResource)==null?0:F.imageName){X=l;break a}X=void 0}if(X){var x;L={iconType:(x=X.clientResource)==null?void 0:x.imageName}}}x=jf(L,!1,this.W);x!=null&&(this.buttonIcon=new g.Aj({D:"span",X:"ytp-ad-button-vm__icon",K:[x]}),g.c(this,this.buttonIcon),n.iconLeading?(Xg(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):O?(this.buttonIcon.V5(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.V5(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(n.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.element.classList.add(this.S?"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(n.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.d2(Error("AdButton does not have label or an icon."))}; GL.prototype.clear=function(){this.hide()}; GL.prototype.onClick=function(l){bm.prototype.onClick.call(this,l)};g.u(uha,lr);g.h=uha.prototype; g.h.init=function(l,n){lr.prototype.init.call(this,l,n,{});this.api.j().J("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.mJ("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"),Xg(this.mJ("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(l=g.z(n.avatar,zL)){var O=n.headline;if(O){var L=n.description;if(L){var X=g.z(n.button,pk);X?(this.adAvatar.init(F2("ad-avatar"),l),this.headline.init(F2("ad-simple-attributed-string"),new en(O)),this.description.init(F2("ad-simple-attributed-string"),new en(L)),O.content&&O.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(F2("ad-button"),X),this.startMilliseconds=n.startMs||0,this.api.Ls()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.fD.bind(this)),nH(this)):g.Ir(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ir(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ir(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ir(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();l&&l.current&&1E3*l.current>=this.startMilliseconds&&(O2(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.h.Os=function(){this.clear()}; g.h.onClick=function(l){this.api.pauseVideo();lr.prototype.onClick.call(this,l)}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fD.bind(this))}; g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();lr.prototype.show.call(this)}; g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();lr.prototype.hide.call(this)}; g.h.fD=function(l){l==="hidden"?this.show():this.hide()};g.u(mT,bm);g.h=mT.prototype; g.h.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(!n.label||g.DL(n.label))g.Ir(Error("No label is returned for SkipAdButton."));else if(g.xQ(this.L,n.label),l=jf({iconType:"SKIP_NEXT_NEW"}),l==null)g.Ir(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.Aj({D:"span",X:"ytp-skip-ad-button__icon",K:[l]}),g.c(this,this.N),this.N.V5(this.element),this.api.j().experiments.MQ("enable_skip_to_next_messaging")&&(n=g.v3(n.targetId)))this.W=!0,this.element.setAttribute("data-tooltip-target-id",n), this.element.setAttribute("data-tooltip-target-fixed","")}; g.h.onClick=function(l){l&&l.preventDefault();var n,O;tHa(l,{contentCpn:(O=(n=this.api.getVideoData(1))==null?void 0:n.clientPlaybackNonce)!=null?O:""})===0?this.api.lF("onAbnormalityDetected"):(bm.prototype.onClick.call(this,l),this.api.lF("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.h.clear=function(){this.S.reset();this.hide()}; g.h.hide=function(){bm.prototype.hide.call(this)}; g.h.show=function(){this.S.start();bm.prototype.show.call(this);this.W&&this.api.j().experiments.MQ("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.u(Pp5,lr);g.h=Pp5.prototype; g.h.init=function(l,n){lr.prototype.init.call(this,l,n,{});l=g.z(n.preskipState,pRO);if(this.L||!this.api.j().experiments.MQ("disable_ad_preview_for_instream_ads")){if(!l){g.Ir(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var O;(O=this.W)==null||O.init(F2("preview-ad"),l);(O=this.W)!=null&&(O.transition.show(100),O.show())}(O=g.z(n.skippableState,fLi))?(n.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=n.skipOffsetMilliseconds:(g.d2(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.N.init(F2("skip-button"),O),this.show()):g.Ir(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.h.show=function(){nH(this);lr.prototype.show.call(this)}; g.h.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.N&&this.N.hide();O2(this);lr.prototype.hide.call(this)}; g.h.clear=function(){var l;(l=this.W)==null||l.clear();this.N&&this.N.clear();O2(this);lr.prototype.hide.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(1E3*this.S.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var l;(l=this.W)!=null&&l.transition.hide();(l=this.N)!=null&&(l.transition.show(),l.show())}};g.u(Is,bm); Is.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(n.label){var O;((O=n.label)==null?0:O.content)&&!g.DL(n.label.content)&&(this.linkText=new g.Aj({D:"span",X:"ytp-visit-advertiser-link__text",hG:n.label.content}),g.c(this,this.linkText),this.linkText.V5(this.element));var L,X;if((L=n.interaction)==null?0:(X=L.accessibility)==null?0:X.label)K7(this.element,n.interaction.accessibility.label+" This link opens in new tab");else{var F;((F=n.label)==null?0:F.content)&&!g.DL(n.label.content)&&K7(this.element, n.label.content+" This link opens in new tab")}sU(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Ir(Error("No label found in VisitAdvertiserLink."))}; Is.prototype.onClick=function(l){bm.prototype.onClick.call(this,l);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Is.prototype.clear=function(){this.hide()};g.u(ds,bm); ds.prototype.init=function(l,n,O,L){bm.prototype.init.call(this,l,n,{});if(n.skipOrPreview){O=n.skipOrPreview;l=g.z(O,KDL);O=g.z(O,pRO);var X,F=this.api.j().J("clean_player_style_fix_on_web")&&((X=this.api.getVideoData())==null?void 0:X.isDaiEnabled());l?(this.K8=new Pp5(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W),g.c(this,this.K8),this.K8.V5(this.Y),this.K8.init(F2("skip-ad"),l)):!O||this.api.j().experiments.MQ("disable_ad_preview_for_instream_ads")&&!F||(this.L=new Yf(this.api, this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,1),g.c(this,this.L),this.L.V5(this.Y),this.L.init(F2("ad-preview"),O),X=this.L,X.transition.show(100),X.show());if(X=g.z(n.skipOrPreview,KDL))var x=X.skipOffsetMilliseconds}n.playerAdCard&&(X=g.z(n.playerAdCard,skF))&&(this.playerAdCard=new uha(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W),g.c(this,this.playerAdCard),this.playerAdCard.V5(this.Cf),this.playerAdCard.init(F2("ad-avatar-lockup-card"),X));X=this.api.j().J("disable_ad_duration_remaining_for_instream_video_ads")|| n.adPodIndex!==void 0;n.adBadgeRenderer&&((l=g.z(n.adBadgeRenderer,SG))?(this.N=new jn(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,X),g.c(this,this.N),this.N.V5(this.S),this.N.init(F2("ad-badge"),l)):g.Ir(Error("AdBadgeViewModel is not found in player overlay layout.")));n.adPodIndex&&(l=g.z(n.adPodIndex,c0c))&&(this.adPodIndex=new G7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,g.z(n.skipOrPreview,KDL)===void 0),g.c(this,this.adPodIndex),this.adPodIndex.V5(this.S), this.adPodIndex.init(F2("ad-pod-index"),l));n.adInfoRenderer&&(l=g.z(n.adInfoRenderer,mK))&&(this.adInfoButton=new CI(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.element,void 0,X),g.c(this,this.adInfoButton),this.api.j().J("enable_ad_pod_index_autohide")&&this.N!==void 0?this.S.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.V5(this.S),this.adInfoButton.init(F2("ad-info-hover-text-button"),l,this.macros));var Z;l=this.api.j().J("clean_player_style_fix_on_web")&& ((Z=this.api.getVideoData())==null?void 0:Z.isDaiEnabled());n.adDurationRemaining&&(!X||l)&&(Z=g.z(n.adDurationRemaining,Qkc))&&(this.adDurationRemaining=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.W,L.videoAdDurationSeconds,X),g.c(this,this.adDurationRemaining),X&&this.adPodIndex!==void 0?this.S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?X?this.S.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.S.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.V5(this.S),this.adDurationRemaining.init(F2("ad-duration-remaining"),Z,this.macros),X&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));n.visitAdvertiserLink&&(L=g.z(n.visitAdvertiserLink,Ri6))&&(this.visitAdvertiserLink=new Is(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.visitAdvertiserLink),this.visitAdvertiserLink.V5(this.S), this.visitAdvertiserLink.init(F2("visit-advertiser-link"),L));n.adDisclosureBanner&&(n=g.z(n.adDisclosureBanner,BDs))&&(this.adDisclosureBanner=new m3(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.adDisclosureBanner),this.adDisclosureBanner.V5(this.NQ),this.adDisclosureBanner.init(F2("ad-disclosure-banner"),n));this.api.j().J("show_preskip_progress_bar_for_skippable_ads")&&(this.V=new $7(this.api,this.W,x,X),g.c(this,this.V),g.jR(this.api,this.V.element,4));this.show()}; ds.prototype.clear=function(){this.hide()};g.u(TVa,bm);g.h=TVa.prototype; g.h.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(n!=null&&n.title)if(l=n.title)if(this.headline.init(F2("ad-simple-attributed-string"),new en(l)),l=g.z(n.moreInfoButton,pk)){if(this.moreInfoButton.init(F2("ad-button"),l),n.descriptions)n.descriptions.length>0&&(l=n.descriptions[0])&&(this.S=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.S),this.S.V5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.S.init(F2("ad-simple-attributed-string"), new en(l))),n.descriptions.length>1&&(n=n.descriptions[1])&&(this.W=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.W),this.W.V5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(F2("ad-simple-attributed-string"),new en(n)))}else g.Ir(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Ir(Error("No headline found in AdGridCardText."));else g.Ir(Error("No headline found in AdGridCardText."))}; g.h.onClick=function(l){bm.prototype.onClick.call(this,l);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var l;(l=this.S)==null||l.clear();var n;(n=this.W)==null||n.clear()}; g.h.hide=function(){this.headline.hide();this.moreInfoButton.hide();var l;(l=this.S)==null||l.hide();var n;(n=this.W)==null||n.hide();bm.prototype.hide.call(this)}; g.h.show=function(){bm.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var l;(l=this.S)==null||l.show();var n;(n=this.W)==null||n.show()};g.u($f,bm);$f.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(n!=null&&n.gridCards)if(n.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Ir(Error("Only single column style is currently supported in AdGridCardCollection."));else for(l=g.P(n.gridCards),n=l.next();!n.done;n=l.next()){if(n=g.z(n.value,SFL)){var O=new TVa(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,O);O.V5(this.element);O.init(F2("ad-grid-card-text"),n);this.S.push(O)}}else g.Ir(Error("No grid cards found in AdGridCardCollection."))}; $f.prototype.show=function(){for(var l=g.P(this.S),n=l.next();!n.done;n=l.next())n.value.show();bm.prototype.show.call(this)}; $f.prototype.clear=function(){this.hide();for(var l=g.P(this.S),n=l.next();!n.done;n=l.next())n.value.clear()}; $f.prototype.hide=function(){for(var l=g.P(this.S),n=l.next();!n.done;n=l.next())n.value.hide();bm.prototype.hide.call(this)};g.u(V2,lr);g.h=V2.prototype;g.h.init=function(l,n,O,L,X){X=X===void 0?0:X;lr.prototype.init.call(this,l,n,O,L);this.playerProgressOffsetMs=X;nH(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.OD.bind(this));this.api.addEventListener("resize",this.bk.bind(this));this.api.Ls()?(this.W=!0,this.api.ZE(!0),this.show()):this.hide()}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();l&&l.current&&!this.W&&1E3*l.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.ZE(!0),this.show())}}; g.h.Os=function(){this.W&&this.api.ZE(!1);this.hide()}; g.h.clear=function(){this.api.ZE(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.OD.bind(this));this.api.removeEventListener("resize",this.bk.bind(this));O2(this);this.hide()}; g.h.hide=function(){Ws0(!1);lr.prototype.hide.call(this)}; g.h.show=function(){Ws0(!0);lr.prototype.show.call(this)};g.u(Eni,V2);g.h=Eni.prototype; g.h.init=function(l,n,O,L){if(n!=null&&n.adGridCardCollection)if(n!=null&&n.adButton){var X=Number(n.playerProgressOffsetMs||"0");isNaN(X)?V2.prototype.init.call(this,l,n,O,L):V2.prototype.init.call(this,l,n,O,L,X);l=n.headline;O=g.z(n.adAvatar,zL);l&&O?(this.headline=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.headline),this.headline.V5(this.mJ("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(F2("ad-simple-attributed-string"),new en(l)), this.adAvatar=new jG(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.adAvatar),this.adAvatar.V5(this.mJ("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(F2("ad-avatar"),O)):this.L.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");l=g.z(n.adGridCardCollection,zik);this.adGridCardCollection.init(F2("ad-grid-card-collection"),l);n=g.z(n.adButton,pk);this.adButton.init(F2("ad-button"),n); this.hide()}else g.Ir(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Ir(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.h.onClick=function(l){(this.adButton&&g.Fg(this.adButton.element,l.target)||this.adAvatar&&g.Fg(this.adAvatar.element,l.target))&&this.api.pauseVideo();V2.prototype.onClick.call(this,l);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.bk=function(){}; g.h.clear=function(){this.hide();var l;(l=this.headline)==null||l.clear();var n;(n=this.adAvatar)==null||n.clear();this.adGridCardCollection.clear();this.adButton.clear();V2.prototype.clear.call(this)}; g.h.show=function(){var l;(l=this.headline)==null||l.show();var n;(n=this.adAvatar)==null||n.show();this.adGridCardCollection.show();this.adButton.show();V2.prototype.show.call(this)}; g.h.hide=function(){var l;(l=this.headline)==null||l.hide();var n;(n=this.adAvatar)==null||n.hide();this.adGridCardCollection.hide();this.adButton.hide();V2.prototype.hide.call(this)}; g.h.OD=function(l){l==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):l==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):l==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.u(Bg,bm); Bg.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(n.attributes===void 0)g.Ir(Error("No attributes found in AdDetailsLineViewModel."));else if(n.style===void 0)g.Ir(Error("No style found in AdDetailsLineViewModel."));else{l=g.P(n.attributes);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.text!==void 0){O=O.text;var L=n.style,X=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,X);X.V5(this.element);a:switch(L){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":L="ytp-ad-details-line__text--style-responsive"; break a;default:L="ytp-ad-details-line__text--style-standard"}X.element.classList.add(L);X.init(F2("ad-simple-attributed-string"),new en(O));this.S.push(X)}this.show()}}; Bg.prototype.show=function(){this.S.forEach(function(l){l.show()}); bm.prototype.show.call(this)}; Bg.prototype.clear=function(){this.hide()}; Bg.prototype.hide=function(){this.S.forEach(function(l){l.hide()}); bm.prototype.hide.call(this)};g.u(cg,bm);cg.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});var O,L;(l=((L=yU(((O=n.image)==null?void 0:O.sources)||[]))==null?void 0:L.url)||"")&&l.length?(O=this.mJ("ytp-image-background-image"),g.HH(O,"backgroundImage","url("+l+")"),n.blurLevel!==void 0&&g.HH(O,"filter","blur("+n.blurLevel+"px)"),n.gradient!==void 0&&(n=new g.f({D:"div",gq:["ytp-image-background--gradient-vertical"]}),g.c(this,n),n.V5(this.element)),this.show()):g.Ir(Error("Failed to get imageUrl in ImageBackground."))}; cg.prototype.clear=function(){this.hide()};g.u(NV5,lr);g.h=NV5.prototype;g.h.init=function(l,n){lr.prototype.init.call(this,l,n,{});g.HH(this.N,"stroke-dasharray","0 "+this.W);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){O2(this);lr.prototype.hide.call(this)}; g.h.show=function(){nH(this);lr.prototype.show.call(this)}; g.h.Os=function(){this.hide()}; g.h.lc=function(){if(this.S){var l=this.S.getProgressState();l!=null&&l.current!=null&&g.HH(this.N,"stroke-dasharray",l.current/l.seekableEnd*this.W+" "+this.W)}};g.u(iF,bm); iF.prototype.init=function(l,n){bm.prototype.init.call(this,l,n,{});if(qng(n)){this.adAvatar=new jG(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.adAvatar);this.adAvatar.V5(this.mJ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(F2("ad-avatar"),g.z(n.adAvatar,zL));this.headline=new Y7(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz);g.c(this,this.headline);this.headline.V5(this.mJ("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(F2("ad-simple-attributed-string"),new en(n.headline));if(l=g.z(n.adDetailsLine,V6D))this.detailsLine=new Bg(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.detailsLine),this.detailsLine.V5(this.mJ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(F2("ad-details-line"),l);this.adButton=new GL(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,!0);g.c(this,this.adButton); this.adButton.V5(this.mJ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(F2("ad-button"),g.z(n.adButton,pk));l=this.api.J("disable_ad_preview_for_instream_ads");this.adBadge=new jn(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,l);g.c(this,this.adBadge);this.adBadge.V5(this.L);this.adBadge.init(F2("ad-badge"),g.z(n.adBadge,SG));this.adInfoButton=new CI(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz,this.element, void 0,l);g.c(this,this.adInfoButton);this.adInfoButton.V5(this.L);this.adInfoButton.init(F2("ad-info-hover-text-button"),g.z(n.adInfoRenderer,mK),this.macros);if(l=g.z(n.skipAdButton,fLi))this.skipAdButton=new mT(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.skipAdButton),this.skipAdButton.V5(this.element),this.skipAdButton.init(F2("skip-button"),l);this.W=new qi(n.durationMilliseconds);g.c(this,this.W);if(l=g.z(n.countdownViewModel,aLD))this.S=new NV5(this.api, this.layoutId,this.interactionLoggingClientData,this.Iz,this.W),g.c(this,this.S),this.S.V5(this.mJ("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.S.init(F2("timed-pie-countdown"),l);if(n=g.z(n.imageBackground,iOL))this.imageBackground=new cg(this.api,this.layoutId,this.interactionLoggingClientData,this.Iz),g.c(this,this.imageBackground),this.imageBackground.V5(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(F2("image-background"),n);this.show();this.element.focus()}}; iF.prototype.clear=function(){g.eU(this.N);this.hide()}; iF.prototype.show=function(){Dyg(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();bm.prototype.show.call(this)}; iF.prototype.hide=function(){Dyg(!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.S&&this.S.hide();this.imageBackground&&this.imageBackground.hide();bm.prototype.hide.call(this)};var Nbc="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.u(sR,pI); sR.prototype.L=function(l){var n=l.id,O=l.content,L=O.componentType;if(!Nbc.includes(L))switch(l.actionType){case 1:l=this.api;var X=this.Iz,F=O.layoutId,x=O.interactionLoggingClientData,Z=O instanceof C$?O.rd:!1,J=O instanceof C$||O instanceof Ni?O.uL:!1;x=x===void 0?{}:x;Z=Z===void 0?!1:Z;J=J===void 0?!1:J;switch(L){case "invideo-overlay":l=new z5i(l,F,x,X);break;case "player-overlay":l=new Vz(l,F,x,X,new nT(l),J);break;case "player-overlay-layout":l=new ds(l,F,x,X,new nT(l));break;case "survey":l= new Q2(l,F,x,X);break;case "ad-action-interstitial":l=new $Mk(l,F,x,X,Z,J);break;case "video-interstitial-buttoned-centered":l=new iF(l,F,x,X);break;case "survey-interstitial":l=new eG(l,F,x,X);break;case "ad-message":l=new C7f(l,F,x,X,new nT(l,1));break;case "player-underlay":l=new v9i(l,F,x,X);break;case "display-underlay-text-grid-cards":l=new Eni(l,F,x,X,new nT(l));break;default:l=null}if(!l){g.d2(Error("No UI component returned from ComponentFactory for type: "+L));break}g.kw(this.W,n)?g.d2(Error("Ad UI component already registered: "+ n)):this.W[n]=l;l.bind(O);O instanceof a_?this.N?this.N.append(l.Fw):g.d2(Error("Underlay view was not created but UnderlayRenderer was created")):this.B.append(l.Fw);break;case 2:n=km5(this,l);if(n==null)break;n.bind(O);break;case 3:O=km5(this,l),O!=null&&(g.h0(O),g.kw(this.W,n)?(O=this.W,n in O&&delete O[n]):g.d2(Error("Ad UI component does not exist: "+n)))}}; sR.prototype.oz=function(){g.ZL(Object.values(this.W));this.W={};pI.prototype.oz.call(this)};g.u(yI9,g.qq);g.h=yI9.prototype;g.h.create=function(){try{MM9(this),this.load(),this.created=!0,MM9(this)}catch(l){AV(l instanceof Error?l:String(l))}}; g.h.load=function(){try{Ynf(this)}finally{CM(Wg(this.S).zn)&&this.player.T1("ad",1)}}; g.h.destroy=function(){var l=this.player.getVideoData(1);this.S.S.Ee.Mq(l&&l.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.qq.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(n){AV(n instanceof Error?n:String(n))}if(this.W!=null){var l=this.W;this.W=null;l.dispose()}this.N.reset()}; g.h.NR=function(){return!1}; g.h.getAdState=function(){return-1}; g.h.getOptions=function(){return Object.values(EMi)}; g.h.oN=function(l,n){n=n===void 0?{}:n;switch(l){case "replaceUrlMacros":return l=n,l.url?(n=aVf(this.player),Object.assign(n,l.dH5),l=g.jt(l.url,n)):l=null,l;case "onAboutThisAdPopupClosed":this.PO(n);break;case "executeCommand":l=n;l.command&&l.layoutId&&this.executeCommand(l);break;default:return null}}; g.h.Df=function(l){var n;return!((n=this.S.S.uf)==null||!n.get().Df(l))}; g.h.PO=function(l){l.isMuted&&hlg(Wg(this.S).pZ,Wg(this.S).SI,l.layoutId);this.oL&&this.oL.PO()}; g.h.executeCommand=function(l){Wg(this.S).Iz.executeCommand(l.command,l.layoutId)};g.i9("yt.player.Application.create",g.PB.create);g.i9("yt.player.Application.createAlternate",g.PB.create);VU0(Ym(),WPk);var Dgk=g.zk("ytcsi.tick");Dgk&&Dgk("pe");g.Dq("ad",yI9);g.u(g.as,g.V);g.as.prototype.start=function(l,n,O){this.config={from:l,o6:n,duration:O,startTime:(0,g.Q_)()};this.next()}; g.as.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.as.prototype.next=function(){if(this.config){var l=this.config,n=l.from,O=l.o6,L=l.duration;l=l.startTime;var X=(0,g.Q_)()-l;l=this.S;L=f25(l,X/L);if(L==0)l=l.T;else if(L==1)l=l.G;else{X=HM(l.T,l.B,L);var F=HM(l.B,l.V,L);l=HM(l.V,l.G,L);X=HM(X,F,L);F=HM(F,l,L);l=HM(X,F,L)}l=g.hR(l,0,1);this.callback(n+(O-n)*l);l<1&&this.delay.start()}};g.u(g.Rs,g.f);g.h=g.Rs.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0}; g.h.B2=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.h.show=function(){g.f.prototype.show.call(this);$y0(this)}; g.h.H2=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.h.qG=function(){this.x4(this.api.xP().getPlayerSize())}; g.h.x4=function(l){var n=this.api.isEmbedsShortsMode()?.5625:16/9,O=this.api.bU();l=l.width-(O?112:58);O=Math.ceil(l/(O?320:192));var L=(l-O*8)/O;n=Math.floor(L/n);for(var X=g.P(this.S),F=X.next();!F.done;F=X.next())F=F.value.mJ("ytp-suggestion-image"),F.style.width=L+"px",F.style.height=n+"px";this.suggestions.element.style.height=n+"px";this.L=L;this.G=n;this.containerWidth=l;this.columns=O;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Ck(this)}; g.h.onVideoDataChange=function(){var l=this.api.j(),n=this.api.getVideoData();this.V=n.hh?!1:l.L;this.suggestionData=n.suggestions?g.Jq(n.suggestions,function(O){return O&&!O.playlistId}):[]; BVq(this);n.hh?this.title.update({title:g.uN("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:n.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.h.scrollTo=function(l){l=g.hR(l,this.containerWidth-this.suggestionData.length*(this.L+8),0);this.T.start(this.scrollPosition,l,1E3);this.scrollPosition=l;g.Ck(this);$y0(this)};})(_yt_player); ";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"