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 d="slice{/{s{push{1{reverse{1969-12-31T12:39:07.000-11:30{={S{indexOf{path{{1970-01-01T08:00:42.000+08:00{fromCharCode{length{split{kj{C{mn{set{unshift{prototype{url{join{AD{HX{\\.a1\\.googlevideo\\.com${index.m3u8{&{,{startsWith{toString{splice{n{/api/manifest{/videoplayback{B{T{cmo{clone{ROh8K{r{O6f9PwPaiGw154BqOH-_w8_{scheme{local{playerfallback{pop{:{forEach{undefined{tz{get{Untrusted URL{fvip{file{signatureCipher{TW{rr{cmo={4{redirector.googlevideo.com{assign{rr?[1-9].*\\.c\\.youtube\\.com${\\.googlevideo\\.com${www.youtube.com{fallback_count{cmo=pf{http://local{https://local{://{?{1970-01-01T05:15:10.000+05:15{5_BI3{a1.googlevideo.com{youtube.player.web_20250810_21_RC01{1969-12-31T19:30:16.000-04:30{NaN{//{replace{,;,({sp{---{%3D{match{/initplayback{hw{UL{/file/index.m3u8{cmo=td".split("{"),
Dk,Qnw,mun,z7,P6j,i96,snn,Vm,Lj$,Nu,ym,Zk,Fw,uwr,du6,K9,j$,t$7,$P,zrw,vh,O_,b9P,an,A4,p9,Xw,r7,q_P,G7,PP,C6$,fk_,V$m,qQ,N7j,y4P,o4,Z9j,Fjm,NQ,hrP,nP$,HP,EPn,Yk,gP6,B77,vP,wh$,k77,J47,lkP,GT,Dz,IkP,Rr4,WK,zr,Uuw,ND,yP,Zz,Fu,Tr,h6,jn7,ng,Eq,BK,$uw,vPm,k1,O9m,I2,Uq,vK,a2,A6,pg,Y_7,ak7,x1,Sx,Xu,A46,ph9,xuu,Xhj,r4P,Gr,MD,cK,D_,mm,Wb,ip,DQr,up,ty,z4,bp,qt,oG,f6,Q47,Vf,Nt,F4,Pvr,Whh,iVP,T4,n6,Ec,wh,kq,lp,IG,qU6,Cv6,okP,fNP,RG,V26,Uc,Hb,K6,N$_,jZ,yMj,Fhu,Oc,aG,xq,SZ,rh,nk7,hVn,kT7,B$6,mO,Pu,uX,RVj,HV6,UQu,
tt,bX,KhP,zH,V0,cb,$Q6,j4h,Ex,na,Mt,eV$,g9,w9,Bu,vk_,Jt,OV6,I$,R$,Ux,Hu,Ka,je,$Z,vu,Ox,pa,xZ,r9,aNh,pPm,AM6,xQ_,XP4,m$,Pz,Wz,rMk,iF,GTj,sG,M2j,Lk,ti,DDh,Q24,Wxw,mDw,uu7,zQ,Lxu,ig9,bF,q5,dD7,Ck,txm,or,bgu,zu6,qqh,C7r,yT,Zr,o1m,fzn,Vx7,FF,TQ,NC9,TC7,hi,hu_,n1h,krh,Bz,wKm,E1m,lz7,UDP,kz,lF,Rr,Ir,Hgh,UG,Hz,Kk,eU,vz,OG,ar,OgP,Ai,Yqm,xz,M5,pK7,Qt,Pp,i2,xDh,Wp,XKP,Sqr,sN,mz,LI,u2,r6_,de,zg,Mxj,b2,qI,CI,QGh,Tg,mt6,Ppk,Wmj,i6w,Fr,Z0,Vt,c6h,Dtn,sG4,u47,dtk,tZr,EN,ge,Bp,zsk,JW,I7,R7,UN,b6h,Cpr,$2,oqk,ON,vp,
Z6m,a7,Y2,Th4,nqr,x2,AW,Eqw,Xr,Sd,re,pI,MI,Gg,DF,cp,iZ,gqh,QM,Ps,sb,Bhw,LB,wbj,uZ,dx,qX,CB,ot,tu,bZ,zE,FC,k4P,TE,Jyu,hu,I__,nB,Rs6,Eb,Ws,gx,Bs,wx,H69,kp,Ju,It,Rt,Ub,Hs,KB,j3,$p,e3,Ob,vs,Yp,at,Au,pB,xp,Kmk,$tr,S3,esm,vq9,O66,GE,MX,tr,a_m,ze,pbr,bx,Xbw,qU,Cm,oR,Sc9,fm,ryn,VK,G4j,MZk,NU,cyh,yK,Z$,FJ,Di6,hr,nm,mik,Bc,ia7,Q$P,wS,Jr,lx,uyu,s$P,RR,Hc,di$,zMP,baj,$m,aR,Ar,pm,XJ,St,rS,oZw,fq_,Ve_,ytw,Za7,FO9,MU,cc,T9_,Db,hMu,nZw,gZ7,Jtm,Qv,lq9,Iqm,RM7,Ui_,Ha6,W9,KOh,s3,$i6,dz,to,vZr,z2,bY,qc,Oa9,Yx7,fG,Vv,
Zb,FA,Atr,pum,xir,B9,gz,E3,Xum,Sxu,rt$,wz,kN,Jo,Me$,H9,KG,D5$,Qrw,m5m,jO,$N,PFw,W$m,eO,ikh,srP,L$P,uFP,az,O3,Ao,pG,xN,d5_,tUw,z$j,XA,SO,bk4,rz,qG$,CFh,ozr,G2,frn,Mc,c9,VUj,NPP,yi9,Zk7,F$6,TP$,mG,P3,W3,LO,Ez4,uk,d0,gzr,nz7,ik,BPj,t0,z9,bk,CO,qd,wz7,kQ_,Jih,oM,Ir7,fO,I0$,Rtw,UIh,HIj,Kzn,j7m,$Ir,etP,h0,nO,Ew,OIm,v2n,YNh,a0_,B3,AWw,w0,ppj,xIh,kc,J0,lk,Xpw,IM,RM,SN6,Uw,KO,jN,$c,eN,v3,Ow,Yc,rWj,Ggr,Mdm,cWm,aM,DXP,mX7,Qt7,pO,xc,WMh,PZw,LM_,t3n,dXr,XQ,zxj,bB6,qbn,op$,CZw,fFu,SN,V3m,Nx6,G9,yu4,ZBm,FM_,Tx9,
Md,hx_,c3,npP,D3,QO,gp_,mJ,Bx$,Pm,Wm,ws4,kE4,id,LM,lFm,ud,Ju6,IF_,Rxm,UXh,KM_,df,jtu,bd,q8,ex6,vpm,aF7,Auj,CM,oT,fM,VO,N8,yO,Z3,F3,Tw,hz,nM,EF,gf,Sbk,Xsu,ruu,M36,GEP,DU4,xXn,cu6,ps7,Bm,wf,mU_,Pxj,W_n,IT,RT,$i,ki,sR$,ef,QRr,uJ7,dU7,L_u,vm,OF,Yi,aT,tt_,im7,z7$,Az,bmw,q8n,Cxr,omr,f$7,yrw,Zmw,F_$,TS_,pM,xi,h7P,nmw,BSk,wcn,X3,rf,Jr_,Gw,Sf,I$_,l$$,R7$,UU7,Hmj,cm,DE,K_P,jRh,$Ur,e77,vm4,OmP,Y8P,a$u,Ar7,pc7,mo,PT,WT,iK,L1,uK,xUm,rrh,GeP,Mtk,Dck,crw,Qzk,z8,bK,mc7,PY$,WK_,q3,C1,o3,f1,Vy,N3,yy,ZE,iGm,T8,LK$,
Eu,uA9,dc9,gI,BT,wI,Jb,ks,tOh,bGn,lK,Ge,N9n,K1,q3h,CY4,jT,oNu,HT,VO7,fb_,Uu,$s,eT,Nz7,yo9,ZGh,FKn,vT,Tz7,Ou,S8u,Xcr,Ys,a3,p1,xs,EN6,XH,ST,G8,gN7,Bz4,M3,Ib9,PN,k2_,lbj,QV,DV,bQ,qK,R_r,fo,Uc4,VV,NK,HG9,jzh,e__,wW,J9,abj,Ao9,p96,lQ,ro7,Tt,OG6,MOu,S3k,xc7,X9$,coh,G2k,Rs,Ko,QM$,md_,Pkn,WG4,iOk,$7,sMP,vN,LGk,tNm,z5P,Or,qw9,oc$,Ck6,fp4,as,x7,Gt,cN,Da,Q1,m2,P$,y0w,ZOk,FG6,W$,s7,MK,LC,uf,dm,M8,tU,T0$,bf,Ecr,qf,CC,B0m,gc9,w3u,k94,J0n,oX,lpP,Ipn,R5m,fC,V1,HO7,$dP,e5n,Nf,ap6,Ywu,A0m,p3r,xdw,y1,X3j,vcj,Za,Sww,
r0P,Fp,MNu,c07,D8P,QTw,m89,hU,Pdh,WJj,iM6,sT7,d84,LJr,nC,E7,gm,B$,wm,k5,JU,lf,tfu,RX,IX,zQj,H$,Cdm,U7,oi6,f3_,FJ_,Vf4,Nf4,yz7,ZMm,KC,jR,$5,Tfn,eR,v$,O7,Y5,aX,AU,BfP,hQ6,SR,gi9,rm,Eih,Xp,pC,ni9,x5,Mf,kw_,DI,c$,Jzn,l3P,I37,iD,LJ,dt,HM9,uD,bD,KJ6,qp,RQ$,eQm,vi7,OMm,fJ,Vc,Np,YF$,yc,ZI,FY,Tp,a3_,hN,nJ,Ev,Azj,pmw,gt,x8m,jMw,SFk,rz_,Gw$,Mfu,D3k,Xm9,Q3k,Wow,wt,JN,s39,Loj,uHr,tT_,zB9,d3m,IO,os4,CK$,RO,HV,VTn,Uv,NIm,jH,yb_,$G,vV,Ov,Z1m,Fo6,Gp,TIw,cV,hBj,ns7,uT,Esh,BIm,d2,wT6,k8u,U39,Jb6,qP,Cn,og,V9,NP,eB9,
y9,Zx,FI,O14,nn,Yuw,aE_,Eh,pTw,Bo,w2,kR,Jv,x37,lT,Rg,Uh,Ho,Kn,XTP,Su6,rbu,$R,ew,vo,Oh,YR,ag,G8w,MT6,cbh,DKm,Qsj,mKr,Av,PQ7,MP,WHj,ior,ssn,co,QC,md,P0,sj,L4,uh,udh,zG,bh,qe,dK7,t6n,C4,zo$,bow,f4,Zow,FH_,TWP,VC,ho7,n7j,BWm,yC,kt$,wNP,J97,IV_,Roj,TG,hR,UK6,n4,Ej,gl,B0,wl,kK,JR,lh,Iw,Rw,Uj,H0,K4,jE,Hoj,KHj,jsh,Oj,aw,$KP,Xn,SE,rl,GG,Me,DG,Qk,Yr7,m6,Pd,Wd,A9j,aVr,eok,Lp,s2,Srj,uS,Vk,Cp,Nv,yk,Gtu,FN,QXj,c9r,Dfj,PfP,upP,W2_,sX_,L2r,r9j,hl,TX,tR7,E2,gj,Bd,z0u,Ri,bCu,U2,Hd,Kp,$y,q77,vd,O2,Cfk,Yy,ai,fa4,XN,
rj,GX,Mv,cd,D5,Qx,m9,P5,W5,Nm9,iz,uz,LU,ZC_,n5m,Tm7,h0h,E5$,g5w,w$7,kz4,Bmm,laj,zP,bz,oS,IaP,R0u,CU,fU,HCP,K2$,v5u,e0n,Z5,F7,TP,hJ,nU,Y7u,aa6,IS,RS,AUP,p$$,xfj,$t,e0,v5,X$P,S7m,Gzw,cU7,AJ,Dp7,X7,pU,GP,MZ,DH,QO6,Lr,u8,dV,tk,b8,qT,oW,sOr,Lqn,Ve,uY6,dpm,ye,tHw,z19,ZH,Fq,bJm,qvn,oG_,hk,gV,VH6,Ntr,nr,yN$,ZJu,Tt4,Fqr,Jk,fI9,nGj,EGn,Kr,U4,gG7,Btu,$D,ea,wVh,kpu,YD,JN6,lI7,II7,R1h,Xq,Uph,HJh,Kq7,jO4,$p6,e1n,vG$,OJP,rV,Yv9,MT,ANn,pVr,xp_,XVk,Svh,cD,iI,Gp7,DPk,LR,Qgu,PT6,rN6,WQk,in_,sg_,MHh,cN7,Dh,Q_,Wf,mPP,
Pf,mV,LQP,uIw,dP6,twr,zXw,bnP,Vwr,qhj,z0,bI,CR,Znu,hX_,T27,qR,V_,nR9,Zh,ERj,B2m,Ei,gR7,KQP,wo7,Hn7,kT,jgw,vR_,JE,wk,$P7,eXh,On9,Io,axm,Avm,pou,xPP,Xo7,Sh$,rvw,Yhu,Mww,cvw,De7,me$,Qwu,Wd4,KR,i4$,jI,$T,eI,swu,Ld6,ao,AE,de6,un$,pR,tE6,b49,Chk,qjw,oKu,Nlw,fU7,Pq,tj,dA,yRk,uE,zc,bE,qF,CP,Z46,fP,Tl4,y$,NF,FE,Tc,hj,nP,hLh,Ek,Bq,nKu,kj,gK9,lE,Il,Blk,w07,kGw,JRk,Rl,Hq,lU7,KP,jF,eF,RL9,vq,Ok,Uem,al,xj,pP,Aj,XE,SF,jwm,aUr,p07,Yjh,O4n,ARr,MF,Qi,rR4,xe7,X09,Sj$,KdP,ip7,b4,W69,uN7,PSP,Gc,qJ,i4,tG,si7,Pi,eLw,$e$,
vK7,Dl,mvm,Vi,CSm,NJ,fGj,V8j,Nj9,Zl,yl4,Zp9,F6w,hEj,ny_,hG,gyk,nb,Bj$,wdk,Jln,lG_,IG_,go,RE4,Hp4,Bi,K6w,wo,kO,PD,Y2j,XdP,Hi,rlP,clm,jX,QS6,mZ7,Pzj,SX,W9h,iU9,xO,FQ7,AG,Xz,pb,$O,mr,WR,PR,sX,uR,L96,di,z1,bR,u79,dZk,oq,zWk,bU$,qI_,yq,Czh,ot9,f56,V0$,Nb7,yJj,ZU7,ZM,F9$,FR,h1,Tbu,hW7,ntP,Etm,nX,EX,gi,gtm,Bbw,w5j,kP7,JJk,l5$,I5P,RW7,J1,lR,Iq,UZn,Rq,HU4,HR,jSh,K97,j1,$b,e1,vR,$Zr,OX,Yb,eW_,vtn,aq,A1,AJ4,OUw,a57,YIk,pX,xb,S1,p5_,xZm,X5w,ri,rJ7,cJh,M0k,G1,MC,cR,Dc,QQ,P_,W_,iu,s9,Ls,uu,DTP,QWr,mTn,dE,tF,zO,
bu,Cs,fs,ir$,WDn,NW,sW7,yQ,Zc,Fo,TO,hF,gE,B_,wE,kB,JF,lu,ID,RD,dT6,U9,H_,Ks,tan,brr,v_,q47,O9,YB,fH7,Va6,NVk,Zrj,TVw,SY,hdk,GO,rE,gD6,BV$,wDu,c_,Di,Jkn,m4,PI,WI,ic,IH4,sl,Lc,uc,Rd7,d6,lHw,td,zb,Hrm,UT_,bc,qz,Cc,oH,Vd,jWj,$T7,yd,Zi,Tb,hd,edj,Ff,Y4n,aH$,Akr,pDm,xT7,XDu,S4n,El,nc,Or6,Ma_,g6,DRh,Qor,lc,mR7,w6,kY,PIn,IH,iRh,LVw,RH,Ul,uMh,HI,tI9,Kc,fhh,CIh,zm7,qi6,bR_,$Y,ez,vI,Ol,YY,aH,Ad,xY,Nkj,FV$,r6,ke6,Gb,Tk_,ETm,cI,Pg,Dw,mI,QD,wfP,Bk_,gTn,k0m,Wg,JE7,URh,io,Lh,KVm,uo,d3,tP,zW,jo4,$R4,bo,qy,Ch,emj,vTh,
fh,Zw,Fa,TW,hP,nh,E$,OR$,g3,Bg,w3,k4,JP,lo,I9,Yim,ahP,R9,U$,Hg,x4,Xa,Si,AEu,pfn,r3,DA,Siw,rEj,Qu,mP,um,MI6,zJ,bm,cE7,o1,DF6,mF7,Ql_,PE9,WN$,iPj,slP,LNn,uE_,tF6,dFm,zO_,CEr,fy$,qk7,VFj,NAP,ZPm,Vu,Nl,TAk,FN6,yu,ZA,FZ,njk,TJ,hC,nL,gjk,BA$,E0,Ejh,gd,JjP,Bt,wd,kL,JC,lm,I1,R1,U0,Ht,KL,jb,$L,eb,vt,O0,YL,a1,AC,pL,xL,XZ,Sb,rd,GJ,Ml,ct,DR,Qg,mt,Pe,We,iq,sf,LY,uq,du,t8,z_,bq,qa,CY,oI,fY,Vg,Na,yg,ZR,F9,T_,h8,nY,Ef,gu,Be,wu,kh,J8,lq,II,RI,Uf,He,KY,jB,$h,eB,ve,Of,Yh,aI,A8,xh,X9,Iy_,SB,r,ru,pY,G_,Ma,ce,UFw,Qs,KN9,
D1,jl9,PF,$FP,iJ,mA,sg,L8,uJ,tV,vj_,OPP,Ykj,ayh,ys,Z1,oA,FB,pq9,xF6,XqP,Sk9,eO7,rjm,d5,Gcn,MF6,hV,w5,n8,bJ,cj6,zR,TR,Eg,k8,QCu,qw,C8,BF,g5,mJ7,JV,lJ,IA,RA,P4r,Ug,HF,K8,jq,$8,W0k,ib$,L04,uz6,Og,Y8,tX$,aA,C4_,flm,Non,yGn,p8,F0r,To4,Mw,hzm,cF,Dd,QB,mZ,PX,WX,nOr,gOn,Bo9,EOw,wiP,kqr,ua,dB,zV,q0,CZ,oL,JG6,fZ,ll7,VB,N0,ta,Fj,TV,ha,nZ,Ilm,Zd,UJu,Eo,Hbj,K07,gB,jCw,BX,wB,$J4,ez_,k3,vOP,Obk,Ja,Yzu,al6,AGw,pih,la,IL,xJ7,Xi4,RL,Uo,HX,Szr,KZ,jL,$3,eL,rGP,vX,Oo,Gqr,Y3,MXj,aL,cGr,DCw,Qqr,mCu,PR7,Wrw,Aa,iXj,sq$,Lrk,
pZ,uR7,x3,dCn,Xj,t1$,SL,zgP,bX9,rB,QJ,qXj,ms,P6,W6,s5,CR4,Lt,un,dO,ob6,fMk,za,bn,Nij,qh,y1w,ZXw,V1$,Frr,TiP,hgj,oN,nb6,ft,Nh,yJ,EbP,ZO,FO,hL,gb$,nt,E5,Bi7,B6,J1h,IMP,Rg$,lM$,JL,IN,ln,UC9,HXP,jqh,Kr7,wO,$C4,egk,vb4,OXP,kV,pR9,xC6,XRj,A1k,aM$,YXr,SX_,RN,wRr,r17,k14,G1j,M17,QDj,c1n,U5,DW7,WFj,mWm,Pun,sD4,ish,LFu,uoh,Kt,zk$,dWr,bs9,tY4,q9k,Cu_,oB7,fc9,VY6,NE7,yFh,Zs7,FFu,TEP,hkP,nBn,jk,v6,$V,AL,pt,EBn,xV,gB7,Sk,rO,Ga,BE7,c6,w_r,mL,PE,WE,YV,is,L2,us,kOu,dM,t$,z5,JFh,bs,qG,C2,oQ,f2,Vh,yh,Zj,Fb,T5,lc7,Ic4,
Rkh,gM,h$,BE,wM,UWw,Hsw,KF7,kS,J$,ls,jDP,$Wk,Es,ek9,vBP,IQ,Os4,RQ,Us,K2,jm,$S,em,vE,YS,aQ,p2,xS,Xb,Sm,A$,AFh,p_7,G5,MG,cE,xWu,QN,S97,mS,PB,rF9,WB,sJ,u1,GO7,LN,dD,tm,zA,MYr,CN,Dzk,QHw,mz7,fN,oj,Pc7,W4$,ic7,VN,L4h,DQ,sHw,ufr,Ng,dz4,yN,tz9,ZQ,zn9,bcj,qlw,Ccw,oYr,Fg,Vzj,fi6,TA,EJ,N6_,gD,yd7,BB,Zc7,F47,wD,T6k,hn$,nYn,EYk,kw,gYh,Jm,wIk,Ij,Rj,Jd7,kb9,lih,Ii7,Rn4,HB,KN,jG,Uz6,Hc9,K44,jH4,$zP,en4,vYm,Oc7,Yl_,air,eG,vB,Ad$,pIP,OJ,Yw,xz7,aj,Am,xw,XIh,Xg,SG,rD,Slr,GA,rd7,Mg,Gb4,cB,Mz4,cd6,DK,Dy4,Q97,myr,Q6,m3,
PQ,WQ,ij,Pow,WIr,sY,Lj,uj,ihn,dq,t5,zK,bj,qq,s9n,LIn,Cj,oZ,ua$,fj,V6,Nq,y6,sCw,dyu,tij,ZK,z2r,bhk,q$P,FP,TK,h5,nj,EY,RZ,UY,HQ,Kj,jD,$r,Co4,o4j,pj,xr,Vi7,XP,Q2,rq,WL,h2j,wgr,n49,kWk,lwh,Iw6,JPr,R2_,Uy7,Hh_,fE,$yj,Oh7,v46,awj,APP,pgn,Ze,F0,Xgw,S$w,cP7,TB,Dl$,rPw,hw,nE,ER,gs,mlu,iL6,Pm$,uZ7,oLn,Cmu,dlh,fA9,ws,zRP,tbh,yCw,Tdm,FPh,gLh,hRm,ko,Jw,lA9,Ru,IAw,eRh,$lm,j14,KP_,Uln,Y0$,OL9,HL_,Xt$,xlr,S0_,$o,Mb$,rCj,GJu,RR7,cCj,Da7,UR,KE,AC$,aA_,ptP,QIj,HL,vLj,Pqw,iYh,Lt_,da9,bY7,qfj,oh7,fRP,Nun,VBm,h3m,ZYn,
y8_,nh$,Bum,we$,k_4,J8m,rs,Nr,R37,lRn,cL,PS,WS,Kt6,jIm,HY6,ir,$a7,sE,Li,ia,ur,j9n,dn,tK,zN,e37,vh7,br,OYm,Yf4,aRj,q9,Ci,o6,fi,V5,N9,y5,Z4,Fc,A8$,pe$,TN,xa4,hK,nN,ni,EE,r89,Xem,gn,G_7,MB_,c8j,BS,Sfm,wn,Dw$,ke,QA$,mw7,Y$n,PJr,JK,so,vF,e5,WA7,i8$,I6,JCw,lP,sAk,GB,Mr,OR,vL,BL,au,tB7,Cqw,Yo,Bd9,Ehr,LAh,Vbw,bLj,R6,Uaw,y2,dw9,uB4,Q1_,z39,tq9,ghh,X0,wt7,kJu,ZL7,u9$,sIr,LPh,WPn,Miu,GW7,xyn,ma$,q07,Ftw,nL4,ELw,pE,xo,Aw,Tuk,Wt7,b87,zAP,UE,HS,EKn,Ki,qg_,j4,$e,e4,CJ4,Ye,a6,AK,xe,Xc,o86,pi,S4,rn,f1j,GN,M9,cS,QE,
N5n,yV9,m1,P4,W4,se,Lx,ut,d_,t3,hAu,bt,n8P,zn,E87,FA_,T5m,g8$,qj,Cx,B5j,wFh,oP,kRj,mD,l1P,JV_,RAj,H87,KAu,Uw7,eAh,v8h,Ygm,F2,Tn,a1$,AV7,h3,nx,pF4,xwP,XF9,SgP,g_,rV_,GRn,w_,kf,cV7,D07,QL4,WZr,lt,Ue,Kx,iZ6,jc,$f,ec,d07,ze6,tL6,qoP,TB6,o37,X2,Oe,bZ_,uj6,LZ7,sL7,xf,Yf,px,c4,D2,E39,QI,mu,Mj,kVw,g3$,BB9,Ja4,PW,WW,IdP,sm,Ld,u5,dy,tg,zo,b5,Rew,U0h,qk,Cd,fd,KZ_,jLm,o5,$07,OZm,Yon,VI,adk,Z2,AaP,FV,hg,pX7,To,nd,x0n,gy,Soj,ra$,wy,kg,Um,ML7,l5,HW,jJ,ca9,eJ,R5,Kd,Dh6,vW,QNn,Om,mh_,Jg,I5,GVu,$g,Yg,Pnk,Wsj,a5,it6,
Ag,pd,xg,XV,sNh,ry,SJ,Go,Mk,Lsw,uOP,cW,DB,Qa,mw,Pl,dhh,Wl,i3,tkk,zP$,sW,Lf,u3,q5k,btj,dL,Cnu,oVP,fOP,t7,Vk_,NOP,yLk,Zth,Fsw,zf,b3,qA,Cf,TO_,hPm,ff,nV7,Va,NA,EV7,gVw,ya,BO7,w69,IO_,RP4,ka4,JL_,lOr,F_,Tf,h7,nf,Uhm,Ht$,Ks7,jNm,gL,vVP,Bl,Y5h,ALn,aOk,Id,l3,xh7,X6r,S5P,rL_,Rd,Ga$,Hl,Kf,Mkr,DGj,QQ4,$F,YF,i2w,ZZ7,aP,LLP,ub4,dG9,tmr,zTm,v4,es,pf,xF,oSw,fjw,Vm9,X_,FL$,NM$,y$m,hTj,nS7,Ss,ESm,TMn,gS_,rL,Gf,MA,BMh,wEr,cl,D9,k5h,Qr,J$$,mB,ad,sS,ljw,FZk,Ca$,LD,uC,tY,zZ,bC,qB,CD,dJ,Vr,RTw,yr,H27,Z9,jQ7,KLh,UGn,$Gk,
eTw,vS9,nD,O29,Ysr,A$u,ES,n3P,gJ,xGm,Ssh,Sc,r$6,G5w,A3,fd7,NBw,yam,pEn,wJ,ku,lC,Mmn,c$9,Dgn,Qjh,mgw,P16,WSn,LSk,ugr,sjj,dg_,tG9,z8P,bN$,Ip,qJP,HA,C1h,owm,fQw,KD,VGw,$u,eC,vA,OS,Yu,NDj,ap,AY,ymu,ZN$,pD,xu,X$,SC,rJ,GZ,TDk,FSP,MB,h8r,Ew7,cA,gw$,nw7,NS,fe,yS,FG,Ts,TZ,BDm,HNh,Vs,VS,gv,e8_,ON$,sO,lL,iL,I8,H8,aQj,o8,Ke,XB_,jP,$v,SJh,rmr,GAj,MGj,eP,cm7,Dqn,v8,QZw,sZ6,ijn,mqP,W3h,Pj$,OO,L36,Yv,uP7,dq9,zin,bj7,qYj,CjP,y59,XG,SP,Tqh,rv,Gs,hi7,grn,Bq7,wQ7,kK6,MS,c8,DY,Q7,J57,IKP,Ri$,tc,YY7,jZm,$q$,A56,zM,pQm,
XQ6,xq4,SY_,q4,fz,r56,bH,V7,N4,GK9,c5h,TM,E1,Jc,Rb,CP_,oo6,$A,jj,v1,O1,fe7,Ns7,ywj,ab,YA,ZEk,Ts9,hv7,Eou,xA,no7,gow,Bs9,Sj,rw,kBw,Fi,pz,iEn,MDm,t5u,m5,ej,Fe6,dr,lH,zv,bN,OE7,aew,YR_,Ib,U1,Aw$,Cy,ov,xr9,XLj,fy,NO,SR9,H1,yw,V5w,Fh,Ur_,Tv,PPk,mrm,Drh,h2,GB7,E6,s6P,ii6,ucn,d99,wr,J2,lN,kl,Rv,U6,t4r,HU,bi$,Ky,Cr7,eh,qE6,vU,O6,Nn4,Fb7,Tnu,A2,hFm,gew,Pj,ii,sD,dg,BnP,th,z$,oa,f5,V3,N$,y3,wS$,kNm,ZZ,F6,RFr,T$,hh,U9j,Hi_,n5,Kb_,ED,j66,$9m,eF$,veu,gg,Bj,Oi6,YEm,a4m,li,Ia,Hj,K5,AK7,pSj,j9,$_,e9,vj,XSw,SE_,OD,
rK7,GNw,Y_,cKr,M4j,DjP,aa,mj9,QPj,Ptj,Ah,p5,W14,sPP,L17,x_,X6,G$,u2h,tc4,bxj,Ctm,zb7,dj7,ofj,qeu,M$,fo4,N_w,cj,y37,QG,Zxm,F1_,DJ,mX,PO,WO,nf6,gfh,T_n,Ef_,B_n,hbm,w47,kn7,iO,J34,Io7,Hx7,jPn,K1$,qV,bO,fF,eb7,VG,NV,yG,Ox7,ZJ,Ye4,vf9,Fl,p44,TD,hp,xjm,nF,X4h,K3$,Oj4,r3h,Sek,Mcn,Gn_,c3w,En,gY,BO,wY,Dkh,P56,lO,IV,RV,id9,Wuh,kx,s5$,Luk,uV7,tJj,Un,yg_,Eg7,eu,ggk,LF,wWm,ko7,Jg_,l2m,I2h,On,Rfn,Yx,aV,Ap,Uk7,Xl,Hd6,Kum,Su,rY,j5u,$k7,ef4,vg_,Odk,GD,xx,Ymn,a2P,MV,pWr,xk9,XWm,cO,Smr,rg$,Gor,MJu,cgw,DAk,Qdj,mAj,P3k,
Wwk,D7,sd4,QL,u_9,Lwh,tsr,dAw,bf6,i9,ifn,mc,sT,qW$,C37,oFh,fB$,Vsn,L3,u9,dF,tX,zy,NL9,b9,y74,C3,nFj,BLh,wlr,kf_,J7u,VL,lB7,gFk,hUu,IBu,oe,RU4,Hf6,qb,f3,Fw$,TL_,Nb,Kw_,jd6,EF7,Zf_,$A9,Z7,eU$,FW,Ty,vFr,hX,aBj,Of9,YWn,n3,A76,ET,gF,BM,wF,plu,xA4,Xl_,kQ,r7w,Gf$,JX,Msn,l9,Ie,c77,DBu,Qp$,mB7,PCP,WBm,dBw,sp$,Rb6,UT,zl7,bDn,LB$,u$7,iDj,jv,VCP,K3,HM,tCw,yYk,f94,ouP,CCr,qS_,ev,ZDr,sn,vM,OT,YQ,FB$,ae,TJ7,AX,hl4,oV,nuk,p3,dY,zD,lom,Sv,Gy,BJ9,wAu,Mb,DL,rF,XW,QX,xQ,Eu9,gun,mR,kZm,JY7,WM,zUw,uO,P7,l9u,cM,I9P,Rl4,
UB7,HDw,KBr,jp4,$B4,elm,vur,OD6,YS7,UAw,$x,iB,AY6,W7,pA9,ao$,A3m,sd,xBw,XAr,SSw,rY7,LS,cYu,GZ6,DSu,PL7,MC7,W87,s87,ieu,dS9,uB,zL,za4,tP$,ov9,qOu,fWr,VP$,be7,CLu,Nvk,bB,yf9,F8$,Ze_,qN,Agn,Tv6,ha_,nvP,Evn,gv_,w8n,ksu,Jf7,lW9,IWk,Bv9,CS,mkw,ox,He$,fS,USw,K8_,j8P,Q57,Jp,$Sn,ea$,NN,xS$,p8_,hB,X8P,Afj,MP_,cfn,D44,Qb_,m4h,PHm,Wp6,izj,sb7,Lpm,uim,d4w,tj$,zq_,gG,VX,q1$,CHw,nS,fYw,bz9,Ed,Vj9,Nwm,Fpw,nA6,Twu,wG,EAn,kU,ycP,B7,XU,Zzu,rG,w1j,Jc7,kMr,lYw,Bwn,IY4,RqP,U46,Hz4,Kp4,$4u,eqk,vAm,jbP,Y1$,Ach,aY6,S1r,x4m,
Oz4,p1u,rcP,X1u,GM9,Mjh,cch,mO9,Qv4,DOu,GL,PN$,W5k,iyu,svP,L5j,dOm,zK7,byh,q66,CN6,ol_,MN,fnm,Vh$,y27,Zyj,mE,Tr_,WZ,El4,nlk,glw,Brw,wUr,J2_,kvr,RK_,UO4,Hy$,K5$,ib,jvr,ln9,Inn,eKr,vl7,Oyh,Y6P,anu,A27,PM,pUm,xO4,XUj,r26,S6$,Gv$,c2$,D$7,Mhn,SW,L8P,m$j,Pik,WW7,zH4,LWP,u6j,d$j,b59,Ci7,NJ4,L7,sa4,i5w,qDj,CF,t9w,Re,tp,hqw,yh4,Ng_,Z5n,FWh,hHj,ILu,$Oh,tB,dG,fZ7,RIr,V94,UNw,mSu,HSn,Q86,gAu,o_w,uG7,ts,zi,jxj,bb,$Nm,eI9,vUk,OS_,Yd_,AB7,p7P,rB7,xN9,Sd7,GL9,C7,QJ_,cBu,D7u,WEu,i7n,sJw,oJ,LE7,q7,u17,Pb$,MW_,f7,d76,
X7j,tlk,VU,b7u,z6_,Cb9,oa9,fuP,qym,N7,ys6,NT9,TT7,FEh,Z7$,h66,nam,yU,Ea9,gaP,wZn,ki_,BT9,Jsm,H7m,Iun,R66,U7j,KEw,jJh,$7u,vaP,e6u,O7k,Yyu,Zu,au$,As$,x79,pZ_,XZ6,Sy7,Gir,Mlw,D66,m6_,cs7,P_4,WUh,iA_,rs_,sy7,Qy$,Ti,LU7,uLP,d67,tKr,n7,bAn,zY4,qB4,C_k,o$$,NQ4,fXP,FUm,Ey,VK7,TQr,gT,BQ_,hYh,wT,ka,wJ6,BZ,kk_,Js,IXk,lX7,E$r,g$j,RY_,U6n,HA9,n$r,KUn,lb,jy7,JA_,hK7,hs,eYu,v$w,OAm,YBu,aXn,AAj,pJ7,x6_,XJ4,SBP,rA7,MKm,RJ,cA$,Gku,DH9,QYr,mHk,PV_,Wn_,iWj,uen,Lnu,sY$,dHm,HZ,acn,tMw,zGh,K7,bWh,qMr,$a,fT9,VM6,vZ,NHn,
yD9,el,o04,Oy,jl,CVh,As,Ya,ZWj,p7,aJ,n06,BHw,kI9,JD$,IT9,THk,wC4,RG$,hG_,UHr,HW9,Kn9,Gi,xa,eG6,v0k,jYk,Sl,YM6,aTP,g0w,E0w,OW9,ADn,lTm,$H9,Fnh,M7,cZ,DX,pC7,Qz,MM7,SMj,cD_,rDh,XCj,DL7,xHr,PMm,QF_,mU,Wl9,sFr,u87,dL4,b$n,sB,qHk,trn,rT,f8n,Vrj,zk,oA9,PJ,N8h,y_7,Fl6,Z$4,T8w,on7,u_,hh7,nnk,EnP,B8u,gnh,Qa6,LA,wxh,J_P,k6_,I8m,l89,LlP,ULP,Rhr,dQ,WJ,H$w,q6,Kl4,jFr,$Ln,ehu,vnr,b_,zh4,KRn,X1,O$u,CA,YHu,a8P,A_7,pxu,xL9,oy,fA,r_m,G6P,Mru,Xx9,SHu,Vz,mY_,DY7,Q_k,PAr,Wk9,N6,iu7,s_P,Lkn,yz,utP,tVr,zcr,bum,ZX,dYr,FL,
Tk,qPu,CA7,o6_,fs_,VVw,Na7,yOh,EB,hA,nA,Zu9,gQ,Fkm,Ta6,hc7,n6w,g6$,E64,Iy,waj,kC6,Bau,JO_,Ry,ls9,UB,Is7,HJ,Rc4,UYw,j_$,v6j,Hu7,$Ym,KA,Kk4,ecm,Ou7,YPr,ash,AOr,$$,par,OB,eK,xY7,Y$,ay,SPr,rOw,pA,x$,GCP,AA,XL,cO_,MVw,rQ,Gk,M6,mM4,DM7,Qc7,cJ,PU4,La6,i_7,Wa_,scm,DT,dM9,qZ9,CUP,Qp,oI6,t7j,fgh,mn,zyk,yH7,PC,Far,Z_n,TXr,hy4,nI$,EI_,sM,w2P,kd$,JH7,LW,BX9,Ry4,iV,uV,dH,gIP,KaP,H_$,CW,jc4,eym,O_7,$M7,oY,bV,Vp,qH,vI7,fW,YZk,NH,agP,AHj,p2m,yp,ZT,xM$,X27,SZ_,rH4,Gdh,M79,cHm,mon,DoP,PG6,W7$,L74,uX7,oE4,lV,NU$,F7u,
Zw7,yxw,qL_,CG7,do7,zjk,fv4,IY,RY,hj9,rr,oe9,nE_,HC,jM,EEh,gE_,toh,Voj,wHn,ku6,Jx7,eM,$0,x0,Ivw,Rj$,Uou,Xe,Hw7,jf_,K7u,$o9,SM,rH,ej_,YLm,avh,cC,Ow7,Ax$,pH7,vEw,ml,xoj,XH_,Q8,SLm,rxP,Guh,Mor,Dxj,cxr,Pl7,WgP,Qh_,shh,Lg_,mxm,iM,sH,uT4,qa$,L$,dxu,tSP,bq$,zN7,Clk,fth,oHh,VSw,uM,N17,ySw,Zqj,Fg7,T1h,hN9,nH6,gH9,EHw,B1P,wwj,kF_,JS7,lt7,RN7,t_,d8,z6,Uxm,Hqw,Itu,vH7,Oq6,Ya$,pwn,AS6,at9,xxm,Xw$,bM,qL,Sar,rSw,GFn,MSr,Dnr,QE_,oF,mnw,C$,V8,cSP,NL,P09,Wv7,il4,sEh,Lvr,y8,uD6,dnj,blh,Z8,qK_,zJ7,F8,T6,h_,oWP,fD_,VAj,
C06,yQk,NRk,Zl4,n$,Fv6,TR9,nWP,BRu,hJ9,EWh,EH,wvw,JQk,lD6,RJn,Unw,g8,Bx,Hln,kSm,$n7,jE9,Kv6,w8,kn,vWk,eJw,J_,lM,IF,Olr,RF,YKm,aD$,AQ4,pvu,UH,xnm,Hx,Xvr,K$,SKn,jr,$n,rQ$,er,GS_,vx,OH,cQw,mm$,Pw6,MAr,Wih,Li$,uvr,dmw,sUj,iK$,zwr,tQ4,bKh,oJ$,A_,VQh,ff$,qt7,Cw$,NK6,yn7,p$,xn,ZKh,Fim,TK_,hw_,nJ4,EJr,BKn,wyw,Kim,lfP,If$,kxw,$mk,cx,QW,af9,Anm,Wa,py9,iA,xmP,ew9,ML,uA,Lu,mk,Str,rn_,da,MQ_,D2h,cnP,tO,Pa,G6,Gx9,sP,vJn,Xy$,m2u,X8,zC,Per,WYw,Ds,OK9,bA,qY,ivk,Cu,o_,s07,fu,LYP,usj,tgw,zC_,d2w,VW,bvm,NY,yW,qA9,Ce$,
oXw,fC_,NN_,yI7,FYn,Zvw,TNn,Ft,Zs,Vgu,hC6,EXw,nXn,TC,hO,gX$,wk9,kjr,nu,BN7,JI7,lC$,RC$,EP,ICw,U2u,Hvk,KY6,wa,k6,$24,j06,eC$,JO,lA,Ovm,vXm,YAk,AIr,aCm,pkw,R_,x2_,Xk7,Ha,SAk,Gjk,rIk,jV,Mgr,cIm,D__,m_4,Pg6,Wym,QK6,iH4,sK4,Ly4,uxn,d_r,tp7,zZm,bH4,qC7,va,Cg9,oCP,fPr,N4w,T4P,ZH7,Vpn,a_,yZw,Y6,Fyw,AO,nC_,hZ7,pu,gC4,B4$,wGk,luk,ra,Ee4,Xt,GC,SV,ca,kl7,Dg,U_6,HH7,Ky7,$_r,jKk,eZ9,vCj,OH_,YC_,AZh,pGk,x_n,XG$,aP4,QB7,msh,Dsm,Pyn,i07,LT7,ukw,dsm,iU,sB6,WTw,SC$,sZ,b06,qQm,z4_,t_w,fm6,o9m,V_P,Npm,yTP,Z0_,L_,FT9,
Mpn,P2,Tp7,h4m,n9_,E97,rZw,Gl9,W2,dX,wrj,khj,JT6,g94,uU,Bp9,Imu,KTu,zd,jB4,$sn,Usj,qM,e4_,v9P,lm$,O04,H04,YQm,C_,bU,am7,pr$,ATh,tH,Xrn,oc,CM6,SQr,M__,Ghu,DE6,Qmr,cTP,Vb,f_,PWk,WCk,iQP,sm6,oMw,zSP,bQu,dEP,um9,Zg,ye4,Vnu,ZQ9,FCu,yb,Td,hH,EMr,nM_,hSk,EZ,CW4,kI,BZw,wX,n_,kmm,Jek,lS4,fSk,Ic,UZ,ISP,qpn,gM6,gX,RSn,F5,UE_,HQ_,KCk,j7,wYh,jmw,$E9,$I,e7,eSm,B2,NZ4,vMj,OQn,Rc,Yp_,JH,aSr,lU,$l,Ae9,xE_,v2,OZ,XYw,Spm,rej,K_,H2,Gmm,rTm,Mnw,tn7,ce7,D19,Qk7,m1$,YI,ac,iT6,uS9,tyP,Wfj,Ncr,yqk,ZT$,Ffn,Tc4,hpj,ndr,gd9,
Ed4,AH,p_,xI,Bck,wnP,kU4,hm,Jqh,X5,l6n,S7,I6h,rX,Gd,Rp$,Ct,MM,eq,U1u,D4,IRk,HTh,Iu,Kfr,b1,qg,jkw,lr,$1n,eph,Q5,e26,vd7,OT7,YVj,c2,Aqk,pn6,Dv,m7,PH,x1$,rqh,GUk,WH,My6,Xnn,DuK,SVk,cq6,QnK,mu4,P6h,WjP,iG,sn4,Rz_,ba,l1,Lj2,uwV,UJ,i9v,yB,duv,t$T,zrK,sL,rM,q_k,C62,Lw,uG,oP4,dU,tx,Ql,fkU,V$4,cFh,zu,bG,N7h,qo,Cw,y4k,of,Z9h,fw,Vl,Fj4,T7T,B6w,No,hrk,EP4,nP2,yl,Zv,gPv,FX,B7T,wh2,k7$,J4$,lkk,Ikk,UuK,hx,RrM,H94,KjQ,jn$,$uK,Y_$,erN,vP4,O94,A4v,xuQ,Xhh,S_P,phV,nw,r4k,G72,M$P,c42,DQV,gU,Q4$,BH,wU,kE,mQh,PvV,iVk,
s4V,LhV,uKM,t2K,dQP,zVQ,Jx,lG,Cvv,bVQ,qUv,If,okk,fNk,Rf,UL,V2v,HH,N$U,Kw,yMh,jo,$E,ZVM,eo,vH,FhQ,T$T,OL,YE,hV4,af,nk$,EkV,XX,So,gkV,B$v,wPN,lNv,JMk,rU,INh,RVh,UQQ,KIk,kTT,Khk,j4P,eV2,Duw,t4;Dk=function(D){return function(){return Duw[D].apply(this,arguments)}};
g.Wh=function(D,Q){return Duw[D]=Q};
Qnw=function(D){var Q=0;return function(){return Q<D.length?{done:!1,value:D[Q++]}:{done:!0}}};
mun=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Q=0;Q<D.length;++Q){var m=D[Q];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};
z7=function(D,Q){if(Q)a:{var m=g.i6;D=D.split(".");for(var P=0;P<D.length-1;P++){var W=D[P];if(!(W in m))break a;m=m[W]}D=D[D.length-1];P=m[D];Q=Q(P);Q!=P&&Q!=null&&t4(m,D,{configurable:!0,writable:!0,value:Q})}};
P6j=function(D){D={next:D};D[Symbol.iterator]=function(){return this};
return D};
g.Z=function(D,Q){D.prototype=Wjh(Q.prototype);D.prototype.constructor=D;if(C9)C9(D,Q);else for(var m in Q)if(m!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(Q,m);P&&Object.defineProperty(D,m,P)}else D[m]=Q[m];D.Rl=Q.prototype};
g.T=function(D){var Q=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(Q)return Q.call(D);if(typeof D.length=="number")return{next:Qnw(D)};throw Error(String(D)+" is not an iterable or ArrayLike");};
i96=function(D){for(var Q,m=[];!(Q=D.next()).done;)m.push(Q.value);return m};
g.on=function(D){return D instanceof Array?D:i96(g.T(D))};
g.f9=function(D){return snn(D,D)};
snn=function(D,Q){D.raw=Q;Object.freeze&&(Object.freeze(D),Object.freeze(Q));return D};
Vm=function(D,Q){return Object.prototype.hasOwnProperty.call(D,Q)};
Lj$=function(D){if(!(D instanceof Object))throw new TypeError("Iterator result "+D+" is not an object");};
Nu=function(){this.U=!1;this.B=null;this.S=void 0;this.C=1;this.J=this.N=0;this.j=this.T=null};
ym=function(D){if(D.U)throw new TypeError("Generator is already running");D.U=!0};
Zk=function(D,Q){D.T={DW:Q,XJ:!0};D.C=D.N||D.J};
g.I=function(D,Q,m){D.C=m;return{value:Q}};
Fw=function(D,Q,m){Q=g.T(Q);var P=Q.next();Lj$(P);if(P.done)D.S=P.value,D.C=m;else return D.B=Q,g.I(D,P.value,m)};
g.T7=function(D){D.C=0};
g.h4=function(D,Q,m){D.N=Q;m!=void 0&&(D.J=m)};
g.n9=function(D,Q){D.N=0;D.J=Q||0};
g.g7=function(D,Q,m){D.C=Q;D.N=m||0};
g.w7=function(D,Q){D.N=Q||0;Q=D.T.DW;D.T=null;return Q};
g.Rn=function(D,Q,m,P){P?D.j[P]=D.T:D.j=[D.T];D.N=Q||0;D.J=m||0};
g.Hh=function(D,Q,m){m=D.j.splice(m||0)[0];(m=D.T=D.T||m)?m.XJ?D.C=D.N||D.J:m.Nv!=void 0&&D.J<m.Nv?(D.C=m.Nv,D.T=null):D.C=D.J:D.C=Q};
uwr=function(D){this.S=new Nu;this.C=D};
du6=function(D,Q){ym(D.S);var m=D.S.B;if(m)return K9(D,"return"in m?m["return"]:function(P){return{value:P,done:!0}},Q,D.S.return);
D.S.return(Q);return j$(D)};
K9=function(D,Q,m,P){try{var W=Q.call(D.S.B,m);Lj$(W);if(!W.done)return D.S.U=!1,W;var L=W.value}catch(u){return D.S.B=null,Zk(D.S,u),j$(D)}D.S.B=null;P.call(D.S,L);return j$(D)};
j$=function(D){for(;D.S.C;)try{var Q=D.C(D.S);if(Q)return D.S.U=!1,{value:Q.value,done:!1}}catch(m){D.S.S=void 0,Zk(D.S,m)}D.S.U=!1;if(D.S.T){Q=D.S.T;D.S.T=null;if(Q.XJ)throw Q.DW;return{value:Q.return,done:!0}}return{value:void 0,done:!0}};
t$7=function(D){this.next=function(Q){ym(D.S);D.S.B?Q=K9(D,D.S.B.next,Q,D.S.Z):(D.S.Z(Q),Q=j$(D));return Q};
this.throw=function(Q){ym(D.S);D.S.B?Q=K9(D,D.S.B["throw"],Q,D.S.Z):(Zk(D.S,Q),Q=j$(D));return Q};
this.return=function(Q){return du6(D,Q)};
this[Symbol.iterator]=function(){return this}};
$P=function(D,Q){Q=new t$7(new uwr(Q));C9&&D.prototype&&C9(Q,D.prototype);return Q};
zrw=function(D){function Q(P){return D.next(P)}
function m(P){return D.throw(P)}
return new Promise(function(P,W){function L(u){u.done?P(u.value):Promise.resolve(u.value).then(Q,m).then(L,W)}
L(D.next())})};
g.U=function(D){return zrw(new t$7(new uwr(D)))};
g.e$=function(){for(var D=Number(this),Q=[],m=D;m<arguments.length;m++)Q[m-D]=arguments[m];return Q};
vh=function(D){return D};
O_=function(D,Q,m){if(D==null)throw new TypeError("The 'this' value for String.prototype."+m+" must not be null or undefined");if(Q instanceof RegExp)throw new TypeError("First argument to String.prototype."+m+" must not be a regular expression");return D+""};
b9P=function(D,Q,m){D instanceof String&&(D=String(D));for(var P=D.length,W=0;W<P;W++){var L=D[W];if(Q.call(m,L,W,D))return{jI:W,SG:L}}return{jI:-1,SG:void 0}};
an=function(D,Q){D instanceof String&&(D+="");var m=0,P=!1,W={next:function(){if(!P&&m<D.length){var L=m++;return{value:Q(L,D[L]),done:!1}}P=!0;return{done:!0,value:void 0}}};
W[Symbol.iterator]=function(){return W};
return W};
A4=function(D){return D?D:Array.prototype.fill};
p9=function(D){return D?D:Array.prototype.copyWithin};
Xw=function(D){D=Math.trunc(D)||0;D<0&&(D+=this.length);if(!(D<0||D>=this.length))return this[D]};
r7=function(D){return D?D:Xw};
q_P=function(D,Q,m){D instanceof String&&(D=String(D));for(var P=D.length-1;P>=0;P--){var W=D[P];if(Q.call(m,W,P,D))return{jI:P,SG:W}}return{jI:-1,SG:void 0}};
G7=function(D){return D?D:function(Q,m){return q_P(this,Q,m).jI}};
g.ch=function(D,Q,m){D=D.split(".");m=m||g.Mu;for(var P;D.length&&(P=D.shift());)D.length||Q===void 0?m[P]&&m[P]!==Object.prototype[P]?m=m[P]:m=m[P]={}:m[P]=Q};
PP=function(D,Q){var m=g.Q4("CLOSURE_FLAGS");D=m&&m[D];return D!=null?D:Q};
g.Q4=function(D,Q){D=D.split(".");Q=Q||g.Mu;for(var m=0;m<D.length;m++)if(Q=Q[D[m]],Q==null)return null;return Q};
C6$=function(D){var Q=typeof D;return Q!="object"?Q:D?Array.isArray(D)?"array":Q:"null"};
g.WP=function(D){var Q=C6$(D);return Q=="array"||Q=="object"&&typeof D.length=="number"};
g.iv=function(D){var Q=typeof D;return Q=="object"&&D!=null||Q=="function"};
g.LV=function(D){return Object.prototype.hasOwnProperty.call(D,sU)&&D[sU]||(D[sU]=++oPm)};
fk_=function(D,Q,m){return D.call.apply(D.bind,arguments)};
V$m=function(D,Q,m){if(!D)throw Error();if(arguments.length>2){var P=Array.prototype.slice.call(arguments,2);return function(){var W=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(W,P);return D.apply(Q,W)}}return function(){return D.apply(Q,arguments)}};
g.d$=function(D,Q,m){g.d$=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?fk_:V$m;return g.d$.apply(null,arguments)};
g.zT=function(D,Q){var m=Array.prototype.slice.call(arguments,1);return function(){var P=m.slice();P.push.apply(P,arguments);return D.apply(this,P)}};
g.bv=function(){return Date.now()};
qQ=function(D){return D};
g.CV=function(D,Q){function m(){}
m.prototype=Q.prototype;D.Rl=Q.prototype;D.prototype=new m;D.prototype.constructor=D;D.Mb=function(P,W,L){for(var u=Array(arguments.length-2),t=2;t<arguments.length;t++)u[t-2]=arguments[t];return Q.prototype[W].apply(P,u)}};
N7j=function(D,Q){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw new TypeError("Object expected.");if(m===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var m=Q[Symbol.dispose]}if(typeof m!=="function")throw new TypeError("Object not disposable.");D.stack.push({value:Q,dispose:m,async:!1})}return Q};
y4P=function(D){function Q(L){D.error=D.hasError?new SuppressedError(L,D.error,"An error was suppressed during disposal."):L;D.hasError=!0}
function m(){for(;P=D.stack.pop();)try{if(!P.async&&W===1)return W=0,D.stack.push(P),Promise.resolve().then(m);if(P.dispose){var L=P.dispose.call(P.value);if(P.async)return W|=2,Promise.resolve(L).then(m,function(u){Q(u);return m()})}else W|=1}catch(u){Q(u)}if(W===1)return D.hasError?Promise.reject(D.error):Promise.resolve();
if(D.hasError)throw D.error;}
var P,W=0;m()};
o4=function(D,Q){if(Error.captureStackTrace)Error.captureStackTrace(this,o4);else{var m=Error().stack;m&&(this.stack=m)}D&&(this.message=String(D));Q!==void 0&&(this.cause=Q)};
Z9j=function(){};
g.fV=function(D){return D[D.length-1]};
Fjm=function(D,Q){var m=D.length,P=typeof D==="string"?D.split(""):D;for(--m;m>=0;--m)m in P&&Q.call(void 0,P[m],m,D)};
g.y4=function(D,Q,m){Q=NQ(D,Q,m);return Q<0?null:typeof D==="string"?D.charAt(Q):D[Q]};
NQ=function(D,Q,m){for(var P=D.length,W=typeof D==="string"?D.split(""):D,L=0;L<P;L++)if(L in W&&Q.call(m,W[L],L,D))return L;return-1};
g.ZN=function(D,Q,m){var P=D.length,W=typeof D==="string"?D.split(""):D;for(--P;P>=0;P--)if(P in W&&Q.call(m,W[P],P,D))return P;return-1};
g.FK=function(D,Q){return T77(D,Q)>=0};
hrP=function(D){if(!Array.isArray(D))for(var Q=D.length-1;Q>=0;Q--)delete D[Q];D.length=0};
g.hM=function(D,Q){Q=T77(D,Q);var m;(m=Q>=0)&&g.TT(D,Q);return m};
g.TT=function(D,Q){return Array.prototype.splice.call(D,Q,1).length==1};
g.w$=function(D,Q){Q=NQ(D,Q);Q>=0&&g.TT(D,Q)};
nP$=function(D,Q){var m=0;Fjm(D,function(P,W){Q.call(void 0,P,W,D)&&g.TT(D,W)&&m++})};
g.kk=function(D){return Array.prototype.concat.apply([],arguments)};
g.JM=function(D){var Q=D.length;if(Q>0){for(var m=Array(Q),P=0;P<Q;P++)m[P]=D[P];return m}return[]};
g.lv=function(D,Q){for(var m=1;m<arguments.length;m++){var P=arguments[m];if(g.WP(P)){var W=D.length||0,L=P.length||0;D.length=W+L;for(var u=0;u<L;u++)D[W+u]=P[u]}else D.push(P)}};
g.$k=function(D,Q,m,P){Array.prototype.splice.apply(D,HP(arguments,1))};
HP=function(D,Q,m){return arguments.length<=2?Array.prototype.slice.call(D,Q):Array.prototype.slice.call(D,Q,m)};
EPn=function(D){for(var Q=0,m=0,P={};m<D.length;){var W=D[m++],L=g.iv(W)?"o"+g.LV(W):(typeof W).charAt(0)+W;Object.prototype.hasOwnProperty.call(P,L)||(P[L]=!0,D[Q++]=W)}D.length=Q};
g.OU=function(D,Q,m){return gP6(D,m||vP,!1,Q)};
Yk=function(D,Q){return gP6(D,Q,!0)};
gP6=function(D,Q,m,P){for(var W=0,L=D.length,u;W<L;){var t=W+(L-W>>>1),z=void 0;m?z=Q.call(void 0,D[t],t,D):z=Q(P,D[t]);z>0?W=t+1:(L=t,u=!z)}return u?W:-W-1};
g.pV=function(D,Q){D.sort(Q||vP)};
B77=function(D,Q){var m=vP;g.pV(D,function(P,W){return m(Q(P),Q(W))})};
g.xk=function(D,Q,m){if(!g.WP(D)||!g.WP(Q)||D.length!=Q.length)return!1;var P=D.length;m=m||wh$;for(var W=0;W<P;W++)if(!m(D[W],Q[W]))return!1;return!0};
vP=function(D,Q){return D>Q?1:D<Q?-1:0};
wh$=function(D,Q){return D===Q};
g.XK=function(D,Q,m){m=g.OU(D,Q,m);m<0&&g.$k(D,-(m+1),0,Q)};
g.r$=function(D,Q,m){var P={};(0,g.S2)(D,function(W,L){P[Q.call(m,W,L,D)]=W});
return P};
k77=function(D){for(var Q=[],m=0;m<D;m++)Q[m]="";return Q};
J47=function(D,Q){Q=Array.prototype.splice.call(D,Q,1);Array.prototype.splice.call(D,0,0,Q[0])};
lkP=function(D){var Q={};g.S2(D,function(m){var P=m.event,W=Q[P];Q.hasOwnProperty(P)?W!==null&&(m.equals(W)||(Q[P]=null)):Q[P]=m});
nP$(D,function(m){return Q[m.event]===null})};
GT=function(){this.i7=0;this.S=!1;this.C=-1;this.XX=!1;this.Xt=0};
g.MQ=function(D,Q,m){for(var P in D)Q.call(m,D[P],P,D)};
g.cP=function(D,Q,m){var P={},W;for(W in D)Q.call(m,D[W],W,D)&&(P[W]=D[W]);return P};
Dz=function(D,Q){var m={},P;for(P in D)m[P]=Q.call(void 0,D[P],P,D);return m};
g.QP=function(D,Q,m){for(var P in D)if(Q.call(m,D[P],P,D))return!0;return!1};
IkP=function(D,Q){for(var m in D)if(!Q.call(void 0,D[m],m,D))return!1;return!0};
g.mx=function(D){for(var Q in D)return Q};
Rr4=function(D){for(var Q in D)return D[Q]};
WK=function(D){var Q=[],m=0,P;for(P in D)Q[m++]=D[P];return Q};
g.i7=function(D){var Q=[],m=0,P;for(P in D)Q[m++]=P;return Q};
g.dC=function(D,Q){return D!==null&&Q in D};
g.t6=function(D,Q){for(var m in D)if(D[m]==Q)return!0;return!1};
zr=function(D,Q){for(var m in D)if(Q.call(void 0,D[m],m,D))return m};
Uuw=function(D,Q){return(Q=zr(D,Q))&&D[Q]};
g.b7=function(D){for(var Q in D)return!1;return!0};
g.H9n=function(D){for(var Q in D)delete D[Q]};
g.qD=function(D,Q,m){return D!==null&&Q in D?D[Q]:m};
g.Cg=function(D,Q){for(var m in D)if(!(m in Q)||D[m]!==Q[m])return!1;for(var P in Q)if(!(P in D))return!1;return!0};
g.o2=function(D){var Q={},m;for(m in D)Q[m]=D[m];return Q};
g.fg=function(D){if(!D||typeof D!=="object")return D;if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);if(D instanceof Date)return new Date(D.getTime());var Q=Array.isArray(D)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(D)||D instanceof DataView?{}:new D.constructor(D.length),m;for(m in D)Q[m]=g.fg(D[m]);return Q};
g.VP=function(D,Q){for(var m,P,W=1;W<arguments.length;W++){P=arguments[W];for(m in P)D[m]=P[m];for(var L=0;L<Kju.length;L++)m=Kju[L],Object.prototype.hasOwnProperty.call(P,m)&&(D[m]=P[m])}};
ND=function(){this.C=null;this.S=!1};
yP=function(D){ND.call(this);this.B=D};
Zz=function(){ND.call(this)};
Fu=function(){ND.call(this)};
Tr=function(){this.S={};this.C=!0;this.T={}};
h6=function(D,Q,m){D.S[Q]||(D.S[Q]=new yP(m));return D.S[Q]};
jn7=function(D){D.S.queryid||(D.S.queryid=new Fu)};
ng=function(D,Q,m){(D=D.S[Q])&&D.T(m)};
Eq=function(D,Q){if(g.dC(D.T,Q))return D.T[Q];if(D=D.S[Q])return D.getValue()};
BK=function(D){var Q={},m=g.cP(D.S,function(P){return P.S});
g.MQ(m,function(P,W){P=D.T[W]!==void 0?String(D.T[W]):P.S&&P.C!==null?String(P.C):"";P.length>0&&(Q[W]=P)},D);
return Q};
$uw=function(D){D=BK(D);var Q=[];g.MQ(D,function(m,P){P in Object.prototype||typeof m!="undefined"&&Q.push([P,":",m].join(""))});
return Q};
vPm=function(D){h6(D,"od",erk);h6(D,"opac",wC).S=!0;h6(D,"sbeos",wC).S=!0;h6(D,"prf",wC).S=!0;h6(D,"mwt",wC).S=!0;h6(D,"iogeo",wC)};
k1=function(D,Q){return D.lastIndexOf(Q,0)==0};
O9m=function(D,Q){var m=D.length-Q.length;return m>=0&&D.indexOf(Q,m)==m};
g.J6=function(D){return/^[\s\xa0]*$/.test(D)};
g.l7=function(D,Q){return D.indexOf(Q)!=-1};
I2=function(D,Q){return g.l7(D.toLowerCase(),Q.toLowerCase())};
g.HK=function(D,Q){var m=0;D=R2(String(D)).split(".");Q=R2(String(Q)).split(".");for(var P=Math.max(D.length,Q.length),W=0;m==0&&W<P;W++){var L=D[W]||"",u=Q[W]||"";do{L=/(\d*)(\D*)(.*)/.exec(L)||["","","",""];u=/(\d*)(\D*)(.*)/.exec(u)||["","","",""];if(L[0].length==0&&u[0].length==0)break;m=Uq(L[1].length==0?0:parseInt(L[1],10),u[1].length==0?0:parseInt(u[1],10))||Uq(L[2].length==0,u[2].length==0)||Uq(L[2],u[2]);L=L[3];u=u[3]}while(m==0)}return m};
Uq=function(D,Q){return D<Q?-1:D>Q?1:0};
g.Kg=function(){var D=g.Mu.navigator;return D&&(D=D.userAgent)?D:""};
vK=function(D){if(!jx&&!$1||!ex)return!1;for(var Q=0;Q<ex.brands.length;Q++){var m=ex.brands[Q].brand;if(m&&g.l7(m,D))return!0}return!1};
a2=function(D){return g.l7(g.Kg(),D)};
A6=function(){return jx||$1?!!ex&&ex.brands.length>0:!1};
pg=function(){return A6()?!1:a2("Opera")};
Y_7=function(){return A6()?!1:a2("Trident")||a2("MSIE")};
ak7=function(){return A6()?vK("Microsoft Edge"):a2("Edg/")};
x1=function(){return a2("Firefox")||a2("FxiOS")};
Sx=function(){return a2("Safari")&&!(Xu()||(A6()?0:a2("Coast"))||pg()||(A6()?0:a2("Edge"))||ak7()||(A6()?vK("Opera"):a2("OPR"))||x1()||a2("Silk")||a2("Android"))};
Xu=function(){return A6()?vK("Chromium"):(a2("Chrome")||a2("CriOS"))&&!(A6()?0:a2("Edge"))||a2("Silk")};
A46=function(){return a2("Android")&&!(Xu()||x1()||pg()||a2("Silk"))};
ph9=function(D){var Q={};D.forEach(function(m){Q[m[0]]=m[1]});
return function(m){return Q[m.find(function(P){return P in Q})]||""}};
xuu=function(D){var Q=g.Kg();if(D==="Internet Explorer"){if(Y_7())if((D=/rv: *([\d\.]*)/.exec(Q))&&D[1])Q=D[1];else{D="";var m=/MSIE +([\d\.]+)/.exec(Q);if(m&&m[1])if(Q=/Trident\/(\d.\d)/.exec(Q),m[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=m[1];Q=D}else Q="";return Q}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");m=[];for(var W;W=P.exec(Q);)m.push([W[1],W[2],W[3]||void 0]);
Q=ph9(m);switch(D){case "Opera":if(pg())return Q(["Version","Opera"]);if(A6()?vK("Opera"):a2("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if(A6()?0:a2("Edge"))return Q(["Edge"]);if(ak7())return Q(["Edg"]);break;case "Chromium":if(Xu())return Q(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&x1()||D==="Safari"&&Sx()||D==="Android Browser"&&A46()||D==="Silk"&&a2("Silk")?(Q=m[2])&&Q[1]||"":""};
Xhj=function(D){if(A6()&&D!=="Silk"){var Q=ex.brands.find(function(m){return m.brand===D});
if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=xuu(D);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])};
r4P=function(){var D=null;if(!S_h)return D;try{var Q=function(m){return m};
D=S_h.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(m){}return D};
Gr=function(){rC===void 0&&(rC=r4P());return rC};
MD=function(D){this.S=D};
cK=function(D){var Q=Gr();D=Q?Q.createScriptURL(D):D;return new MD(D)};
D_=function(D){if(D instanceof MD)return D.S;throw Error("");};
mm=function(D){this.S=D};
g.Pb=function(D){if(D instanceof mm)return D.S;throw Error("");};
Wb=function(D){this.EC=D};
ip=function(D){return new Wb(function(Q){return Q.substr(0,D.length+1).toLowerCase()===D+":"})};
g.sc=function(D,Q){Q=Q===void 0?G7$:Q;a:if(Q=Q===void 0?G7$:Q,!(D instanceof mm)){for(var m=0;m<Q.length;++m){var P=Q[m];if(P instanceof Wb&&P.EC(D)){D=new mm(D);break a}}D=void 0}return D||M$h};
DQr=function(D){if(c4$.test(D))return D};
up=function(D){return D instanceof mm?g.Pb(D):DQr(D)};
g.dh=function(D,Q){Q=up(Q);Q!==void 0&&(D.href=Q)};
ty=function(D,Q){throw Error(Q===void 0?"unexpected value "+D+"!":Q);};
z4=function(D){this.S=D};
bp=function(D){var Q=Gr();D=Q?Q.createHTML(D):D;return new z4(D)};
qt=function(D){if(D instanceof z4)return D.S;throw Error("");};
g.C6=function(D,Q,m,P){Q=up(Q);return Q!==void 0?D.open(Q,m,P):null};
oG=function(D){D=D===void 0?document:D;var Q,m;D=(m=(Q=D).querySelector)==null?void 0:m.call(Q,"script[nonce]");return D==null?"":D.nonce||D.getAttribute("nonce")||""};
f6=function(D){this.S=D};
Q47=function(D){var Q=Gr();D=Q?Q.createScript(D):D;return new f6(D)};
Vf=function(D){if(D instanceof f6)return D.S;throw Error("");};
Nt=function(D){var Q=oG(D.ownerDocument);Q&&D.setAttribute("nonce",Q)};
g.yf=function(D,Q){D.src=D_(Q);Nt(D)};
F4=function(){this.S=mQj[0].toLowerCase()};
Pvr=function(D){var Q="true".toString(),m=[new F4];if(m.length===0)throw Error("");if(m.map(function(P){if(P instanceof F4)P=P.S;else throw Error("");return P}).every(function(P){return"data-loaded".indexOf(P)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
D.setAttribute("data-loaded",Q)};
Whh=function(D,Q){D.__closure__error__context__984382||(D.__closure__error__context__984382={});D.__closure__error__context__984382.severity=Q};
iVP=function(D){var Q=g.Q4("window.location.href");D==null&&(D='Unknown Error of type "null/undefined"');if(typeof D==="string")return{message:D,name:"Unknown error",lineNumber:"Not available",fileName:Q,stack:"Not available"};var m=!1;try{var P=D.lineNumber||D.line||"Not available"}catch(u){P="Not available",m=!0}try{var W=D.fileName||D.filename||D.sourceURL||g.Mu.$googDebugFname||Q}catch(u){W="Not available",m=!0}Q=T4(D);if(!(!m&&D.lineNumber&&D.fileName&&D.stack&&D.message&&D.name)){m=D.message;
if(m==null){if(D.constructor&&D.constructor instanceof Function){if(D.constructor.name)m=D.constructor.name;else if(m=D.constructor,hy[m])m=hy[m];else{m=String(m);if(!hy[m]){var L=/function\s+([^\(]+)/m.exec(m);hy[m]=L?L[1]:"[Anonymous]"}m=hy[m]}m='Unknown Error of type "'+m+'"'}else m="Unknown Error of unknown type";typeof D.toString==="function"&&Object.prototype.toString!==D.toString&&(m+=": "+D.toString())}return{message:m,name:D.name||"UnknownError",lineNumber:P,fileName:W,stack:Q||"Not available"}}return{message:D.message,
name:D.name,lineNumber:D.lineNumber,fileName:D.fileName,stack:Q}};
T4=function(D,Q){Q||(Q={});Q[n6(D)]=!0;var m=D.stack||"",P=D.cause;P&&!Q[n6(P)]&&(m+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(m+=typeof P==="string"?P:P.message+"\n"),m+=T4(P,Q));D=D.errors;if(Array.isArray(D)){P=1;var W;for(W=0;W<D.length&&!(P>4);W++)Q[n6(D[W])]||(m+="\nInner error "+P++ +": ",D[W].stack&&D[W].stack.indexOf(D[W].toString())==0||(m+=typeof D[W]==="string"?D[W]:D[W].message+"\n"),m+=T4(D[W],Q));W<D.length&&(m+="\n... "+(D.length-W)+" more inner errors")}return m};
n6=function(D){var Q="";typeof D.toString==="function"&&(Q=""+D);return Q+D.stack};
Ec=function(D,Q,m){return D.parseFromString(qt(Q),m)};
g.gh=function(D){return encodeURIComponent(String(D))};
wh=function(D){return decodeURIComponent(D.replace(/\+/g," "))};
kq=function(D){s49.test(D)&&(D.indexOf("&")!=-1&&(D=D.replace(Lh9,"&amp;")),D.indexOf("<")!=-1&&(D=D.replace(uK4,"&lt;")),D.indexOf(">")!=-1&&(D=D.replace(dQh,"&gt;")),D.indexOf('"')!=-1&&(D=D.replace(t2w,"&quot;")),D.indexOf("'")!=-1&&(D=D.replace(zVu,"&#39;")),D.indexOf("\x00")!=-1&&(D=D.replace(bVu,"&#0;")));return D};
g.Jy=function(D){return D==null?"":String(D)};
lp=function(D){for(var Q=0,m=0;m<D.length;++m)Q=31*Q+D.charCodeAt(m)>>>0;return Q};
IG=function(D){var Q=Number(D);return Q==0&&g.J6(D)?NaN:Q};
qU6=function(D){return String(D).replace(/\-([a-z])/g,function(Q,m){return m.toUpperCase()})};
Cv6=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
okP=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,m,P){return m+P.toUpperCase()})};
fNP=function(D){var Q=1;D=D.split(":");for(var m=[];Q>0&&D.length;)m.push(D.shift()),Q--;D.length&&m.push(D.join(":"));return m};
RG=function(){return jx||$1?!!ex&&!!ex.platform:!1};
V26=function(){return RG()?ex.platform==="Android":a2("Android")};
Uc=function(){return a2("iPhone")&&!a2("iPod")&&!a2("iPad")};
Hb=function(){return Uc()||a2("iPad")||a2("iPod")};
K6=function(){return RG()?ex.platform==="macOS":a2("Macintosh")};
N$_=function(){return RG()?ex.platform==="Windows":a2("Windows")};
jZ=function(D){jZ[" "](D);return D};
yMj=function(D,Q){try{return jZ(D[Q]),!0}catch(m){}return!1};
Fhu=function(D,Q){var m=ZV4;return Object.prototype.hasOwnProperty.call(m,D)?m[D]:m[D]=Q(D)};
g.$q=function(D){return Fhu(D,function(){return g.HK(T$7,D)>=0})};
g.eZ=function(D,Q,m){return Math.min(Math.max(D,Q),m)};
g.vb=function(D,Q){D%=Q;return D*Q<0?D+Q:D};
Oc=function(D,Q,m){return D+m*(Q-D)};
g.Yq=function(D,Q){this.x=D!==void 0?D:0;this.y=Q!==void 0?Q:0};
aG=function(D,Q){return D==Q?!0:D&&Q?D.x==Q.x&&D.y==Q.y:!1};
g.Ay=function(D,Q){this.width=D;this.height=Q};
g.p6=function(D,Q){return D==Q?!0:D&&Q?D.width==Q.width&&D.height==Q.height:!1};
xq=function(D){return D.width*D.height};
SZ=function(D,Q){this.S=D===X4&&Q||""};
rh=function(D){if(D instanceof z4)return D;D=String(D).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return bp(D)};
nk7=function(D){return hVn(D)};
hVn=function(D){var Q=rh("");return bp(D.map(function(m){return qt(rh(m))}).join(qt(Q).toString()))};
kT7=function(D){var Q;if(!Ek9.test("div"))throw Error("");if(gkr.indexOf("DIV")!==-1)throw Error("");var m="<div";D&&(m+=B$6(D));Array.isArray(Q)||(Q=Q===void 0?[]:[Q]);wPk.indexOf("DIV")!==-1?m+=">":(D=nk7(Q.map(function(P){return P instanceof z4?P:rh(String(P))})),m+=">"+D.toString()+"</div>");
return bp(m)};
B$6=function(D){for(var Q="",m=Object.keys(D),P=0;P<m.length;P++){var W=m[P],L=D[W];if(!Ek9.test(W))throw Error("");if(L!==void 0&&L!==null){if(/^on./i.test(W))throw Error("");JMP.indexOf(W.toLowerCase())!==-1&&(L=L instanceof mm?L.toString():DQr(String(L))||"about:invalid#zClosurez");L=W+'="'+rh(String(L))+'"';Q+=" "+L}}return Q};
g.G4=function(D){var Q=g.e$.apply(1,arguments);if(Q.length===0)return cK(D[0]);for(var m=D[0],P=0;P<Q.length;P++)m+=encodeURIComponent(Q[P])+D[P+1];return cK(m)};
mO=function(D){return D?new Mt(cb(D)):lN6||(lN6=new Mt)};
Pu=function(D,Q){return typeof Q==="string"?D.getElementById(Q):Q};
g.Wu=function(D,Q){return(Q||document).getElementsByTagName(String(D))};
g.iX=function(D,Q){return(Q||document).querySelectorAll("."+D)};
g.La=function(D,Q){var m=Q||document;m.getElementsByClassName?D=m.getElementsByClassName(D)[0]:(m=document,D=D?(Q||m).querySelector(D?"."+D:""):g.sx(m,"*",D,Q)[0]||null);return D||null};
g.sx=function(D,Q,m,P){D=P||D;return(Q=Q&&Q!="*"?String(Q).toUpperCase():"")||m?D.querySelectorAll(Q+(m?"."+m:"")):D.getElementsByTagName("*")};
uX=function(D,Q){g.MQ(Q,function(m,P){P=="style"?D.style.cssText=m:P=="class"?D.className=m:P=="for"?D.htmlFor=m:INj.hasOwnProperty(P)?D.setAttribute(INj[P],m):k1(P,"aria-")||k1(P,"data-")?D.setAttribute(P,m):D[P]=m})};
RVj=function(D){D=D.document;D=D.compatMode=="CSS1Compat"?D.documentElement:D.body;return new g.Ay(D.clientWidth,D.clientHeight)};
HV6=function(D){var Q=UQu(D);D=D.defaultView;return new g.Yq(D.pageXOffset||Q.scrollLeft,D.pageYOffset||Q.scrollTop)};
UQu=function(D){return D.scrollingElement?D.scrollingElement:g.d9||D.compatMode!="CSS1Compat"?D.body||D.documentElement:D.documentElement};
tt=function(D){return D?D.defaultView:window};
bX=function(D,Q,m){var P=arguments,W=document,L=P[1],u=zH(W,String(P[0]));L&&(typeof L==="string"?u.className=L:Array.isArray(L)?u.className=L.join(" "):uX(u,L));P.length>2&&KhP(W,u,P,2);return u};
KhP=function(D,Q,m,P){function W(t){t&&Q.appendChild(typeof t==="string"?D.createTextNode(t):t)}
for(;P<m.length;P++){var L=m[P];if(!g.WP(L)||g.iv(L)&&L.nodeType>0)W(L);else{a:{if(L&&typeof L.length=="number"){if(g.iv(L)){var u=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){u=typeof L.item=="function";break a}}u=!1}g.S2(u?g.JM(L):L,W)}}};
g.qi=function(D){return zH(document,D)};
zH=function(D,Q){Q=String(Q);D.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return D.createElement(Q)};
g.Ca=function(D){return document.createTextNode(String(D))};
g.o$=function(D,Q){D.appendChild(Q)};
g.fa=function(D){for(var Q;Q=D.firstChild;)D.removeChild(Q)};
V0=function(D,Q,m){D.insertBefore(Q,D.childNodes[m]||null)};
g.Ni=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null};
g.y0=function(D,Q){if(!D||!Q)return!1;if(D.contains&&Q.nodeType==1)return D==Q||D.contains(Q);if(typeof D.compareDocumentPosition!="undefined")return D==Q||!!(D.compareDocumentPosition(Q)&16);for(;Q&&D!=Q;)Q=Q.parentNode;return Q==D};
cb=function(D){return D.nodeType==9?D:D.ownerDocument||D.document};
g.Zq=function(D,Q){if("textContent"in D)D.textContent=Q;else if(D.nodeType==3)D.data=String(Q);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(Q)}else g.fa(D),D.appendChild(cb(D).createTextNode(String(Q)))};
$Q6=function(D){return D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?!D.disabled&&(!D.hasAttribute("tabindex")||j4h(D)):D.hasAttribute("tabindex")&&j4h(D)};
j4h=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768};
Ex=function(D,Q,m){if(!Q&&!m)return null;var P=Q?String(Q).toUpperCase():null;return na(D,function(W){return(!P||W.nodeName==P)&&(!m||typeof W.className==="string"&&g.FK(W.className.split(/\s+/),m))},!0)};
na=function(D,Q,m){D&&!m&&(D=D.parentNode);for(m=0;D;){if(Q(D))return D;D=D.parentNode;m++}return null};
Mt=function(D){this.S=D||g.Mu.document||document};
eV$=function(){this.S=this.Tj=null};
g9=function(){};
w9=function(){if(!Bu())throw Error();};
Bu=function(){return!(!kZ||!kZ.performance)};
vk_=function(D){return g.d9?"webkit"+D:D.toLowerCase()};
Jt=function(D){return function(){return D}};
g.lX=function(){};
OV6=function(D){var Q=Q||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,Q))}};
I$=function(D){var Q=!1,m;return function(){Q||(m=D(),Q=!0);return m}};
R$=function(D){var Q=D;return function(){if(Q){var m=Q;Q=null;m()}}};
Ux=function(D,Q,m){var P=0;return function(W){g.Mu.clearTimeout(P);var L=arguments;P=g.Mu.setTimeout(function(){D.apply(m,L)},Q)}};
Hu=function(D,Q,m,P){this.top=D;this.right=Q;this.bottom=m;this.left=P};
Ka=function(D){return D.right-D.left};
je=function(D,Q){return D==Q?!0:D&&Q?D.top==Q.top&&D.right==Q.right&&D.bottom==Q.bottom&&D.left==Q.left:!1};
$Z=function(D,Q,m){Q instanceof g.Yq?(D.left+=Q.x,D.right+=Q.x,D.top+=Q.y,D.bottom+=Q.y):(D.left+=Q,D.right+=Q,typeof m==="number"&&(D.top+=m,D.bottom+=m));return D};
g.ee=function(D,Q,m,P){this.left=D;this.top=Q;this.width=m;this.height=P};
vu=function(D,Q){return D==Q?!0:D&&Q?D.left==Q.left&&D.width==Q.width&&D.top==Q.top&&D.height==Q.height:!1};
g.YZ=function(D,Q,m){if(typeof Q==="string")(Q=Ox(D,Q))&&(D.style[Q]=m);else for(var P in Q){m=D;var W=Q[P],L=Ox(m,P);L&&(m.style[L]=W)}};
Ox=function(D,Q){var m=YUm[Q];if(!m){var P=qU6(Q);m=P;D.style[P]===void 0&&(P=(g.d9?"Webkit":a$?"Moz":null)+okP(P),D.style[P]!==void 0&&(m=P));YUm[Q]=m}return m};
g.At=function(D,Q){var m=D.style[qU6(Q)];return typeof m!=="undefined"?m:D.style[Ox(D,Q)]||""};
pa=function(D,Q){var m=cb(D);return m.defaultView&&m.defaultView.getComputedStyle&&(D=m.defaultView.getComputedStyle(D,null))?D[Q]||D.getPropertyValue(Q)||"":""};
xZ=function(D,Q){return pa(D,Q)||(D.currentStyle?D.currentStyle[Q]:null)||D.style&&D.style[Q]};
g.Se=function(D,Q,m){if(Q instanceof g.Yq){var P=Q.x;Q=Q.y}else P=Q,Q=m;D.style.left=g.Xy(P,!1);D.style.top=g.Xy(Q,!1)};
r9=function(D){try{return D.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}};
aNh=function(D){var Q=cb(D),m=xZ(D,"position"),P=m=="fixed"||m=="absolute";for(D=D.parentNode;D&&D!=Q;D=D.parentNode)if(D.nodeType==11&&D.host&&(D=D.host),m=xZ(D,"position"),P=P&&m=="static"&&D!=Q.documentElement&&D!=Q.body,!P&&(D.scrollWidth>D.clientWidth||D.scrollHeight>D.clientHeight||m=="fixed"||m=="absolute"||m=="relative"))return D;return null};
g.GH=function(D){var Q=cb(D),m=new g.Yq(0,0);if(D==(Q?cb(Q):document).documentElement)return m;D=r9(D);Q=mO(Q);Q=HV6(Q.S);m.x=D.left+Q.x;m.y=D.top+Q.y;return m};
pPm=function(D,Q){var m=new g.Yq(0,0),P=tt(cb(D));if(!yMj(P,"parent"))return m;do{var W=P==Q?g.GH(D):AM6(D);m.x+=W.x;m.y+=W.y}while(P&&P!=Q&&P!=P.parent&&(D=P.frameElement)&&(P=P.parent));return m};
g.Mi=function(D,Q){D=xQ_(D);Q=xQ_(Q);return new g.Yq(D.x-Q.x,D.y-Q.y)};
AM6=function(D){D=r9(D);return new g.Yq(D.left,D.top)};
xQ_=function(D){if(D.nodeType==1)return AM6(D);D=D.changedTouches?D.changedTouches[0]:D;return new g.Yq(D.clientX,D.clientY)};
g.cu=function(D,Q,m){if(Q instanceof g.Ay)m=Q.height,Q=Q.width;else if(m==void 0)throw Error("missing height argument");D.style.width=g.Xy(Q,!0);D.style.height=g.Xy(m,!0)};
g.Xy=function(D,Q){typeof D=="number"&&(D=(Q?Math.round(D):D)+"px");return D};
g.Dr=function(D){var Q=XP4;if(xZ(D,"display")!="none")return Q(D);var m=D.style,P=m.display,W=m.visibility,L=m.position;m.visibility="hidden";m.position="absolute";m.display="inline";D=Q(D);m.display=P;m.position=L;m.visibility=W;return D};
XP4=function(D){var Q=D.offsetWidth,m=D.offsetHeight,P=g.d9&&!Q&&!m;return(Q===void 0||P)&&D.getBoundingClientRect?(D=r9(D),new g.Ay(D.right-D.left,D.bottom-D.top)):new g.Ay(Q,m)};
g.QT=function(D,Q){D.style.display=Q?"":"none"};
m$=function(D){return D?D.passive&&SUn()?D:D.capture||!1:!1};
Pz=function(D,Q,m,P){return typeof D.addEventListener==="function"?(D.addEventListener(Q,m,m$(P)),!0):!1};
Wz=function(D){if(D.prerendering)return 3;var Q;return(Q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?Q:0};
rMk=function(){};
iF=function(D){try{return!!D&&D.location.href!=null&&yMj(D,"foo")}catch(Q){return!1}};
GTj=function(D){for(var Q=D;D&&D!=D.parent;)D=D.parent,iF(D)&&(Q=D);return Q};
sG=function(D){D.RJy=!0;return D};
M2j=function(){return(jx||$1)&&ex?ex.mobile:!Lk()&&(a2("iPod")||a2("iPhone")||a2("Android")||a2("IEMobile"))};
Lk=function(){return(jx||$1)&&ex?!ex.mobile&&(a2("iPad")||a2("Android")||a2("Silk")):a2("iPad")||a2("Android")&&!a2("Mobile")||a2("Silk")};
ti=function(D,Q){if(D)for(var m in D)Object.prototype.hasOwnProperty.call(D,m)&&Q(D[m],m,D)};
DDh=function(){var D=[];ti(cMk,function(Q){D.push(Q)});
return D};
Q24=function(D){var Q,m;return(m=(Q=/https?:\/\/[^\/]+/.exec(D))==null?void 0:Q[0])!=null?m:""};
Wxw=function(){var D=mDw("IFRAME"),Q={};g.S2(P7_(),function(m){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(m)&&(Q[m]=!0)});
return Q};
mDw=function(D,Q){Q=Q===void 0?document:Q;return Q.createElement(String(D).toLowerCase())};
uu7=function(D){D=D||zQ();for(var Q=new ig9(g.Mu.location.href,!1),m=null,P=D.length-1,W=P;W>=0;--W){var L=D[W];!m&&s2_.test(L.url)&&(m=L);if(L.url&&!L.S){Q=L;break}}W=null;L=D.length&&D[P].url;Q.depth!==0&&L&&(W=D[P]);return new Lxu(Q,W,m)};
zQ=function(){var D=g.Mu,Q=[],m=null;do{var P=D;if(iF(P)){var W=P.location.href;m=P.document&&P.document.referrer||null}else W=m,m=null;Q.push(new ig9(W||""));try{D=P.parent}catch(L){D=null}}while(D&&P!==D);P=0;for(D=Q.length-1;P<=D;++P)Q[P].depth=D-P;P=g.Mu;if(P.location&&P.location.ancestorOrigins&&P.location.ancestorOrigins.length===Q.length-1)for(D=1;D<Q.length;++D)W=Q[D],W.url||(W.url=P.location.ancestorOrigins[D-1]||"",W.S=!0);return Q};
Lxu=function(D,Q,m){this.S=D;this.C=Q;this.T=m};
ig9=function(D,Q){this.url=D;this.S=!!Q;this.depth=null};
bF=function(){this.T="&";this.C={};this.B=0;this.S=[]};
q5=function(D,Q){var m={};m[D]=Q;return[m]};
dD7=function(D,Q,m,P,W){var L=[];ti(D,function(u,t){(u=Ck(u,Q,m,P,W))&&L.push(t+"="+u)});
return L.join(Q)};
Ck=function(D,Q,m,P,W){if(D==null)return"";Q=Q||"&";m=m||",$";typeof m==="string"&&(m=m.split(""));if(D instanceof Array){if(P||(P=0),P<m.length){for(var L=[],u=0;u<D.length;u++)L.push(Ck(D[u],Q,m,P+1,W));return L.join(m[P])}}else if(typeof D==="object")return W||(W=0),W<2?encodeURIComponent(dD7(D,Q,m,P,W+1)):"...";return encodeURIComponent(String(D))};
txm=function(D){var Q=1,m;for(m in D.C)m.length>Q&&(Q=m.length);return 3997-Q-D.T.length-1};
or=function(D,Q){this.S=D;this.depth=Q};
bgu=function(){function D(t,z){return t==null?z:t}
var Q=zQ(),m=Math.max(Q.length-1,0),P=uu7(Q);Q=P.S;var W=P.C,L=P.T,u=[];L&&u.push(new or([L.url,L.S?2:0],D(L.depth,1)));W&&W!=L&&u.push(new or([W.url,2],0));Q.url&&Q!=L&&u.push(new or([Q.url,0],D(Q.depth,m)));P=g.fk(u,function(t,z){return u.slice(0,u.length-z)});
!Q.url||(L||W)&&Q!=L||(W=Q24(Q.url))&&P.push([new or([W,1],D(Q.depth,m))]);P.push([]);return g.fk(P,function(t){return zu6(m,t)})};
zu6=function(D,Q){g.VT(Q,function(W){return W.depth>=0});
var m=N5(Q,function(W,L){return Math.max(W,L.depth)},-1),P=k77(m+2);
P[0]=D;g.S2(Q,function(W){return P[W.depth+1]=W.S});
return P};
qqh=function(){var D=D===void 0?bgu():D;return D.map(function(Q){return Ck(Q)})};
C7r=function(D){var Q=!1;Q=Q===void 0?!1:Q;kZ.google_image_requests||(kZ.google_image_requests=[]);var m=mDw("IMG",kZ.document);Q&&(m.attributionSrc="");m.src=D;kZ.google_image_requests.push(m)};
yT=function(D){var Q="VP";if(D.VP&&D.hasOwnProperty(Q))return D.VP;var m=new D;D.VP=m;D.hasOwnProperty(Q);return m};
Zr=function(){this.C=new rMk;this.S=Bu()?new w9:new g9};
o1m=function(){FF();var D=kZ.document;return!!(D&&D.body&&D.body.getBoundingClientRect&&typeof kZ.setInterval==="function"&&typeof kZ.clearInterval==="function"&&typeof kZ.setTimeout==="function"&&typeof kZ.clearTimeout==="function")};
fzn=function(){FF();return qqh()};
Vx7=function(){};
FF=function(){var D=yT(Vx7);if(!D.S){if(!kZ)throw Error("Context has not been set and window is undefined.");D.S=yT(Zr)}return D.S};
TQ=function(){throw Error("Invalid UTF8");};
NC9=function(D,Q){Q=String.fromCharCode.apply(null,Q);return D==null?Q:D+Q};
TC7=function(D){var Q=!1;Q=Q===void 0?!1:Q;if(y6h){if(Q&&(Zgr?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("Found an unpaired surrogate");D=(Fxk||(Fxk=new TextEncoder)).encode(D)}else{for(var m=0,P=new Uint8Array(3*D.length),W=0;W<D.length;W++){var L=D.charCodeAt(W);if(L<128)P[m++]=L;else{if(L<2048)P[m++]=L>>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&W<D.length){var u=D.charCodeAt(++W);if(u>=56320&&u<=57343){L=(L-55296)*1024+
u-56320+65536;P[m++]=L>>18|240;P[m++]=L>>12&63|128;P[m++]=L>>6&63|128;P[m++]=L&63|128;continue}else W--}if(Q)throw Error("Found an unpaired surrogate");L=65533}P[m++]=L>>12|224;P[m++]=L>>6&63|128}P[m++]=L&63|128}}D=m===P.length?P:P.subarray(0,m)}return D};
hi=function(D){g.Mu.setTimeout(function(){throw D;},0)};
hu_=function(D){return Array.prototype.map.call(D,function(Q){Q=Q.toString(16);return Q.length>1?Q:"0"+Q}).join("")};
n1h=function(D){for(var Q=[],m=0;m<D.length;m+=2)Q.push(parseInt(D.substring(m,m+2),16));return Q};
g.nk=function(D){for(var Q=[],m=0,P=0;P<D.length;P++){var W=D.charCodeAt(P);W<128?Q[m++]=W:(W<2048?Q[m++]=W>>6|192:((W&64512)==55296&&P+1<D.length&&(D.charCodeAt(P+1)&64512)==56320?(W=65536+((W&1023)<<10)+(D.charCodeAt(++P)&1023),Q[m++]=W>>18|240,Q[m++]=W>>12&63|128):Q[m++]=W>>12|224,Q[m++]=W>>6&63|128),Q[m++]=W&63|128)}return Q};
g.EG=function(D,Q){Q===void 0&&(Q=0);E1m();Q=g1k[Q];for(var m=Array(Math.floor(D.length/3)),P=Q[64]||"",W=0,L=0;W<D.length-2;W+=3){var u=D[W],t=D[W+1],z=D[W+2],b=Q[u>>2];u=Q[(u&3)<<4|t>>4];t=Q[(t&15)<<2|z>>6];z=Q[z&63];m[L++]=""+b+u+t+z}b=0;z=P;switch(D.length-W){case 2:b=D[W+1],z=Q[(b&15)<<2]||P;case 1:D=D[W],m[L]=""+Q[D>>2]+Q[(D&3)<<4|b>>4]+z+P}return m.join("")};
g.gP=function(D,Q,m){if(BCk&&!Q)D=g.Mu.btoa(D);else{for(var P=[],W=0,L=0;L<D.length;L++){var u=D.charCodeAt(L);if(u>255){var t=Error("go/unicode-to-byte-error");if(m)throw t;P[W++]=u&255;u>>=8}P[W++]=u}D=g.EG(P,Q)}return D};
krh=function(D){var Q=[];wKm(D,function(m){Q.push(m)});
return Q};
Bz=function(D){var Q=D.length,m=Q*3/4;m%3?m=Math.floor(m):g.l7("=.",D[Q-1])&&(m=g.l7("=.",D[Q-2])?m-2:m-1);var P=new Uint8Array(m),W=0;wKm(D,function(L){P[W++]=L});
return W!==m?P.subarray(0,W):P};
wKm=function(D,Q){function m(z){for(;P<D.length;){var b=D.charAt(P++),q=wP[b];if(q!=null)return q;if(!g.J6(b))throw Error("Unknown base64 encoding at char: "+b);}return z}
E1m();for(var P=0;;){var W=m(-1),L=m(0),u=m(64),t=m(64);if(t===64&&W===-1)break;Q(W<<2|L>>4);u!=64&&(Q(L<<4&240|u>>2),t!=64&&Q(u<<6&192|t))}};
E1m=function(){if(!wP){wP={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var P=D.concat(Q[m].split(""));g1k[m]=P;for(var W=0;W<P.length;W++){var L=P[W];wP[L]===void 0&&(wP[L]=W)}}}};
lz7=function(D){return J67[D]||""};
UDP=function(D){if(!Iz7)return Bz(D);D=Ru9.test(D)?D.replace(Ru9,lz7):D;D=atob(D);for(var Q=new Uint8Array(D.length),m=0;m<D.length;m++)Q[m]=D.charCodeAt(m);return Q};
kz=function(D,Q){Hgh(Q);this.S=D;if(D!=null&&D.length===0)throw Error("ByteString should be constructed with non-empty values");};
lF=function(){return Kx$||(Kx$=new kz(null,Ji))};
Rr=function(D){return new Uint8Array(Ir(D)||0)};
Ir=function(D){Hgh(Ji);var Q=D.S;Q=Q==null||j2h&&Q!=null&&Q instanceof Uint8Array?Q:typeof Q==="string"?UDP(Q):null;return Q==null?Q:D.S=Q};
Hgh=function(D){if(D!==Ji)throw Error("illegal external caller");};
UG=function(D){D=Error(D);Whh(D,"warning");return D};
Hz=function(D,Q){if(D!=null){var m;var P=(m=$Dk)!=null?m:$Dk={};m=P[D]||0;m>=Q||(P[D]=m+1,D=Error(),Whh(D,"incident"),hi(D))}};
Kk=function(D,Q,m){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(m===void 0?0:m)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():Q};
eU=function(D,Q){jU||$z in D||euP(D,v1j);D[$z]|=Q};
vz=function(D,Q){jU||$z in D||euP(D,v1j);D[$z]=Q};
OG=function(){return typeof BigInt==="function"};
ar=function(D,Q){return Q===void 0?D.S!==Yz&&!!(2&(D.SJ[$z]|0)):!!(2&Q)&&D.S!==Yz};
OgP=function(D,Q){if(D!=null)if(typeof D==="string")D=D?new kz(D,Ji):lF();else if(D.constructor!==kz)if(j2h&&D!=null&&D instanceof Uint8Array)D=D.length?new kz(new Uint8Array(D),Ji):lF();else{if(!Q)throw Error();D=void 0}return D};
Ai=function(D,Q){if(typeof Q!=="number"||Q<0||Q>=D.length)throw Error();};
Yqm=function(D,Q,m){var P=Q&128?0:-1,W=D.length,L;if(L=!!W)L=D[W-1],L=L!=null&&typeof L==="object"&&L.constructor===Object;var u=W+(L?-1:0);for(Q=Q&128?1:0;Q<u;Q++)m(Q-P,D[Q]);if(L){D=D[W-1];for(var t in D)!isNaN(t)&&m(+t,D[t])}};
xz=function(D){return D&128?pk:void 0};
M5=function(D){var Q=D;if(rP(Q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Q))throw Error(String(Q));}else if(azn(Q)&&!Number.isSafeInteger(Q))throw Error(String(Q));return GQ?BigInt(D):D=A6m(D)?D?"1":"0":rP(D)?D.trim()||"0":String(D)};
pK7=function(D,Q){if(D.length>Q.length)return!1;if(D.length<Q.length||D===Q)return!0;for(var m=0;m<D.length;m++){var P=D[m],W=Q[m];if(P>W)return!1;if(P<W)return!0}};
Qt=function(D){var Q=D>>>0;cz=Q;D0=(D-Q)/4294967296>>>0};
Pp=function(D){if(D<0){Qt(0-D);var Q=g.T(mz(cz,D0));D=Q.next().value;Q=Q.next().value;cz=D>>>0;D0=Q>>>0}else Qt(D)};
i2=function(D,Q){var m=Q*4294967296+(D>>>0);return Number.isSafeInteger(m)?m:Wp(D,Q)};
xDh=function(D,Q){var m=Q&2147483648;m&&(D=~D+1>>>0,Q=~Q>>>0,D==0&&(Q=Q+1>>>0));D=i2(D,Q);return typeof D==="number"?m?-D:D:m?"-"+D:D};
Wp=function(D,Q){Q>>>=0;D>>>=0;if(Q<=2097151)var m=""+(4294967296*Q+D);else OG()?m=""+(BigInt(Q)<<BigInt(32)|BigInt(D)):(m=(D>>>24|Q<<8)&16777215,Q=Q>>16&65535,D=(D&16777215)+m*6777216+Q*6710656,m+=Q*8147497,Q*=2,D>=1E7&&(m+=D/1E7>>>0,D%=1E7),m>=1E7&&(Q+=m/1E7>>>0,m%=1E7),m=Q+XKP(m)+XKP(D));return m};
XKP=function(D){D=String(D);return"0000000".slice(D.length)+D};
Sqr=function(){var D=cz,Q=D0;Q&2147483648?OG()?D=""+(BigInt(Q|0)<<BigInt(32)|BigInt(D>>>0)):(Q=g.T(mz(D,Q)),D=Q.next().value,Q=Q.next().value,D="-"+Wp(D,Q)):D=Wp(D,Q);return D};
sN=function(D){if(D.length<16)Pp(Number(D));else if(OG())D=BigInt(D),cz=Number(D&BigInt(4294967295))>>>0,D0=Number(D>>BigInt(32)&BigInt(4294967295));else{var Q=+(D[0]==="-");D0=cz=0;for(var m=D.length,P=0+Q,W=(m-Q)%6+Q;W<=m;P=W,W+=6)P=Number(D.slice(P,W)),D0*=1E6,cz=cz*1E6+P,cz>=4294967296&&(D0+=Math.trunc(cz/4294967296),D0>>>=0,cz>>>=0);Q&&(Q=g.T(mz(cz,D0)),D=Q.next().value,Q=Q.next().value,cz=D,D0=Q)}};
mz=function(D,Q){Q=~Q;D?D=~D+1:Q+=1;return[D,Q]};
LI=function(D){return Array.prototype.slice.call(D)};
u2=function(D){if(D!=null&&typeof D!=="number")throw Error("Value of float/double field must be a number, found "+typeof D+": "+D);return D};
r6_=function(D){return D.displayName||D.name||"unknown type name"};
de=function(D){if(D!=null&&typeof D!=="boolean")throw Error("Expected boolean but got "+C6$(D)+": "+D);return D};
zg=function(D){switch(typeof D){case "bigint":return!0;case "number":return tW(D);case "string":return Grk.test(D);default:return!1}};
Mxj=function(D){if(typeof D!=="number")throw UG("int32");if(!tW(D))throw UG("int32");return D|0};
b2=function(D){return D==null?D:Mxj(D)};
qI=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return tW(D)?D|0:void 0};
CI=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return tW(D)?D>>>0:void 0};
QGh=function(D){var Q=0;Q=Q===void 0?0:Q;if(!zg(D))throw UG("int64");var m=typeof D;switch(Q){case 512:switch(m){case "string":return Vt(D);case "bigint":return String(NI(64,D));default:return Z0(D)}case 1024:switch(m){case "string":return c6h(D);case "bigint":return M5(NI(64,D));default:return Dtn(D)}case 0:switch(m){case "string":return Vt(D);case "bigint":return M5(NI(64,D));default:return Fr(D)}default:return ty(Q,"Unknown format requested type for int64")}};
Tg=function(D){return D==null?D:QGh(D)};
mt6=function(D){if(D[0]==="-")return!1;var Q=D.length;return Q<20?!0:Q===20&&Number(D.substring(0,6))<184467};
Ppk=function(D){var Q=D.length;return D[0]==="-"?Q<20?!0:Q===20&&Number(D.substring(0,7))>-922337:Q<19?!0:Q===19&&Number(D.substring(0,6))<922337};
Wmj=function(D){if(D<0){Pp(D);var Q=Wp(cz,D0);D=Number(Q);return hW(D)?D:Q}Q=String(D);if(mt6(Q))return Q;Pp(D);return i2(cz,D0)};
i6w=function(D){if(Ppk(D))return D;sN(D);return Sqr()};
Fr=function(D){zg(D);D=nI(D);hW(D)||(Pp(D),D=xDh(cz,D0));return D};
Z0=function(D){zg(D);D=nI(D);if(hW(D))D=String(D);else{var Q=String(D);Ppk(Q)?D=Q:(Pp(D),D=Sqr())}return D};
Vt=function(D){zg(D);var Q=nI(Number(D));if(hW(Q))return String(Q);Q=D.indexOf(".");Q!==-1&&(D=D.substring(0,Q));return i6w(D)};
c6h=function(D){var Q=nI(Number(D));if(hW(Q))return M5(Q);Q=D.indexOf(".");Q!==-1&&(D=D.substring(0,Q));return OG()?M5(NI(64,BigInt(D))):M5(i6w(D))};
Dtn=function(D){return hW(D)?M5(Fr(D)):M5(Z0(D))};
sG4=function(D){if(D==null)return D;var Q=typeof D;if(Q==="bigint")return String(NI(64,D));if(zg(D)){if(Q==="string")return Vt(D);if(Q==="number")return Fr(D)}};
u47=function(D){if(D==null)return D;var Q=typeof D;if(Q==="bigint")return String(Lmr(64,D));if(zg(D)){if(Q==="string")return zg(D),Q=nI(Number(D)),hW(Q)&&Q>=0?D=String(Q):(Q=D.indexOf("."),Q!==-1&&(D=D.substring(0,Q)),mt6(D)||(sN(D),D=Wp(cz,D0))),D;if(Q==="number")return zg(D),D=nI(D),D>=0&&hW(D)?D:Wmj(D)}};
dtk=function(D){if(D==null||typeof D=="string"||D instanceof kz)return D};
tZr=function(D){if(typeof D!=="string")throw Error();return D};
EN=function(D){if(D!=null&&typeof D!=="string")throw Error();return D};
ge=function(D){return D==null||typeof D==="string"?D:void 0};
Bp=function(D,Q){if(!(D instanceof Q))throw Error("Expected instanceof "+r6_(Q)+" but got "+(D&&r6_(D.constructor)));return D};
zsk=function(D,Q,m){if(D!=null&&D[we]===k2)return D;if(Array.isArray(D)){var P=D[$z]|0;m=P|m&32|m&2;m!==P&&vz(D,m);return new Q(D)}};
JW=function(D){return D};
I7=function(D){var Q=qQ(l2);return Q?D[Q]:void 0};
R7=function(){};
UN=function(D,Q){for(var m in D)!isNaN(m)&&Q(D,+m,D[m])};
b6h=function(D){var Q=new R7;UN(D,function(m,P,W){Q[P]=LI(W)});
Q.e8=D.e8;return Q};
Cpr=function(D,Q){Q<100||Hz(qc$,1)};
$2=function(D,Q,m,P){var W=P!==void 0;P=!!P;var L=qQ(l2),u;!W&&jU&&L&&(u=D[L])&&UN(u,Cpr);L=[];var t=D.length;u=4294967295;var z=!1,b=!!(Q&64),q=b?Q&128?0:-1:void 0;if(!(Q&1)){var C=t&&D[t-1];C!=null&&typeof C==="object"&&C.constructor===Object?(t--,u=t):C=void 0;if(b&&!(Q&128)&&!W){z=!0;var f;u=((f=Hp)!=null?f:JW)(u-q,q,D,C,void 0)+q}}Q=void 0;for(f=0;f<t;f++){var V=D[f];if(V!=null&&(V=m(V,P))!=null)if(b&&f>=u){var N=f-q,h=void 0;((h=Q)!=null?h:Q={})[N]=V}else L[f]=V}if(C)for(var B in C)t=C[B],t!=
null&&(t=m(t,P))!=null&&(f=+B,V=void 0,b&&!Number.isNaN(f)&&(V=f+q)<u?L[V]=t:(f=void 0,((f=Q)!=null?f:Q={})[B]=t));Q&&(z?L.push(Q):L[u]=Q);W&&qQ(l2)&&(D=I7(D))&&D instanceof R7&&(L[l2]=b6h(D));return L};
oqk=function(D){switch(typeof D){case "number":return Number.isFinite(D)?D:""+D;case "bigint":return ed(D)?Number(D):""+D;case "boolean":return D?1:0;case "object":if(Array.isArray(D)){var Q=D[$z]|0;return D.length===0&&Q&1?void 0:$2(D,Q,oqk)}if(D!=null&&D[we]===k2)return vp(D);if(D instanceof kz){Q=D.S;if(Q==null)D="";else if(typeof Q==="string")D=Q;else{if(Iz7){for(var m="",P=0,W=Q.length-10240;P<W;)m+=String.fromCharCode.apply(null,Q.subarray(P,P+=10240));m+=String.fromCharCode.apply(null,P?Q.subarray(P):
Q);Q=btoa(m)}else Q=g.EG(Q);D=D.S=Q}return D}return}return D};
ON=function(D,Q){if(Q){Hp=Q==null||Q===JW||Q[f_6]!==VZ4?JW:Q;try{return vp(D)}finally{Hp=void 0}}return vp(D)};
vp=function(D){D=D.SJ;return $2(D,D[$z]|0,oqk)};
Z6m=function(D){switch(typeof D){case "boolean":return Nhk||(Nhk=[0,void 0,!0]);case "number":return D>0?void 0:D===0?yy6||(yy6=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}};
a7=function(D,Q,m){return D=Y2(D,Q[0],Q[1],m?1:2)};
Y2=function(D,Q,m,P){P=P===void 0?0:P;if(D==null){var W=32;m?(D=[m],W|=128):D=[];Q&&(W=W&-8380417|(Q&1023)<<13)}else{if(!Array.isArray(D))throw Error("narr");W=D[$z]|0;if(Fmj&&1&W)throw Error("rfarr");2048&W&&!(2&W)&&Th4();if(W&256)throw Error("farr");if(W&64)return P!==0||W&2048||vz(D,W|2048),D;if(m&&(W|=128,m!==D[0]))throw Error("mid");a:{m=D;W|=64;var L=m.length;if(L){var u=L-1,t=m[u];if(t!=null&&typeof t==="object"&&t.constructor===Object){Q=W&128?0:-1;u-=Q;if(u>=1024)throw Error("pvtlmt");for(var z in t)L=
+z,L<u&&(m[L+Q]=t[z],delete t[z]);W=W&-8380417|(u&1023)<<13;break a}}if(Q){z=Math.max(Q,L-(W&128?0:-1));if(z>1024)throw Error("spvt");W=W&-8380417|(z&1023)<<13}}}W|=64;P===0&&(W|=2048);vz(D,W);return D};
Th4=function(){if(Fmj)throw Error("carr");Hz(hs_,5)};
nqr=function(D,Q){if(typeof D!=="object")return D;if(Array.isArray(D)){var m=D[$z]|0;D.length===0&&m&1?D=void 0:m&2||(!Q||4096&m||16&m?D=AW(D,m,!1,Q&&!(m&16)):(eU(D,34),m&4&&Object.freeze(D)));return D}if(D!=null&&D[we]===k2)return Q=D.SJ,m=Q[$z]|0,ar(D,m)?D:pI(D,Q,m)?x2(D,Q):AW(Q,m);if(D instanceof kz)return D};
x2=function(D,Q,m){D=new D.constructor(Q);m&&(D.S=Yz);D.C=Yz;return D};
AW=function(D,Q,m,P){P!=null||(P=!!(34&Q));D=$2(D,Q,nqr,P);P=32;m&&(P|=2);Q=Q&8380609|P;vz(D,Q);return D};
Eqw=function(D){var Q=D.SJ,m=Q[$z]|0;return ar(D,m)?pI(D,Q,m)?x2(D,Q,!0):new D.constructor(AW(Q,m,!1)):D};
Xr=function(D){if(D.S!==Yz)return!1;var Q=D.SJ;Q=AW(Q,Q[$z]|0);eU(Q,2048);D.SJ=Q;D.S=void 0;D.C=void 0;return!0};
Sd=function(D){if(!Xr(D)&&ar(D,D.SJ[$z]|0))throw Error();};
re=function(D,Q){Q===void 0&&(Q=D[$z]|0);Q&32&&!(Q&4096)&&vz(D,Q|4096)};
pI=function(D,Q,m){return m&2?!0:m&32&&!(m&4096)?(vz(Q,m|2),D.S=Yz,!0):!1};
MI=function(D,Q,m,P,W){Object.isExtensible(D);Q=Gg(D.SJ,Q,m,W);if(Q!==null||P&&D.C!==Yz)return Q};
Gg=function(D,Q,m,P){if(Q===-1)return null;var W=Q+(m?0:-1),L=D.length-1;if(!(L<1+(m?0:-1))){if(W>=L){var u=D[L];if(u!=null&&typeof u==="object"&&u.constructor===Object){m=u[Q];var t=!0}else if(W===L)m=u;else return}else m=D[W];if(P&&m!=null){P=P(m);if(P==null)return P;if(!Object.is(P,m))return t?u[Q]=P:D[W]=P,P}return m}};
DF=function(D,Q,m,P){Sd(D);var W=D.SJ;cp(W,W[$z]|0,Q,m,P);return D};
cp=function(D,Q,m,P,W){var L=m+(W?0:-1),u=D.length-1;if(u>=1+(W?0:-1)&&L>=u){var t=D[u];if(t!=null&&typeof t==="object"&&t.constructor===Object)return t[m]=P,Q}if(L<=u)return D[L]=P,Q;if(P!==void 0){var z;u=((z=Q)!=null?z:Q=D[$z]|0)>>13&1023||536870912;m>=u?P!=null&&(L={},D[u+(W?0:-1)]=(L[m]=P,L)):D[L]=P}return Q};
iZ=function(D,Q,m,P,W){var L=D.SJ,u=L[$z]|0;P=ar(D,u)?1:P;W=!!W||P===3;P===2&&Xr(D)&&(L=D.SJ,u=L[$z]|0);D=QM(L,Q);var t=D===mM?7:D[$z]|0,z=Ps(t,u);var b=4&z?!1:!0;if(b){4&z&&(D=LI(D),t=0,z=Ws(z,u),u=cp(L,u,Q,D));for(var q=0,C=0;q<D.length;q++){var f=m(D[q]);f!=null&&(D[C++]=f)}C<q&&(D.length=C);m=(z|4)&-513;z=m&=-1025;z&=-4097}z!==t&&(vz(D,z),2&z&&Object.freeze(D));return D=gqh(D,z,L,u,Q,P,b,W)};
gqh=function(D,Q,m,P,W,L,u,t){var z=Q;L===1||(L!==4?0:2&Q||!(16&Q)&&32&P)?sb(Q)||(Q|=!D.length||u&&!(4096&Q)||32&P&&!(4096&Q||16&Q)?2:256,Q!==z&&vz(D,Q),Object.freeze(D)):(L===2&&sb(Q)&&(D=LI(D),z=0,Q=Ws(Q,P),P=cp(m,P,W,D)),sb(Q)||(t||(Q|=16),Q!==z&&vz(D,Q)));2&Q||!(4096&Q||16&Q)||re(m,P);return D};
QM=function(D,Q,m){D=Gg(D,Q,m);return Array.isArray(D)?D:mM};
Ps=function(D,Q){2&Q&&(D|=2);return D|1};
sb=function(D){return!!(2&D)&&!!(4&D)||!!(256&D)};
Bhw=function(D){return OgP(D,!0)};
LB=function(D,Q){D=MI(D,Q,void 0,void 0,Bhw);return D==null?lF():D};
wbj=function(D,Q,m){Sd(D);var P=D.SJ,W=P[$z]|0;if(Q==null)return cp(P,W,3),D;if(!Array.isArray(Q))throw UG();var L=Q===mM?7:Q[$z]|0,u=L,t=sb(L),z=t||Object.isFrozen(Q);t||(L=0);z||(Q=LI(Q),u=0,L=Ws(L,W),z=!1);L|=5;t=4&L?512&L?512:1024&L?1024:0:void 0;t=t!=null?t:0;for(var b=0;b<Q.length;b++){var q=Q[b],C=m(q,t);Object.is(q,C)||(z&&(Q=LI(Q),u=0,L=Ws(L,W),z=!1),Q[b]=C)}L!==u&&(z&&(Q=LI(Q),L=Ws(L,W)),vz(Q,L));cp(P,W,3,Q);return D};
uZ=function(D,Q,m,P,W){Sd(D);var L=D.SJ;cp(L,L[$z]|0,Q,(P==="0"?Number(m)===0:m===P)?void 0:m,W);return D};
dx=function(D,Q,m){if(Q&2)throw Error();var P=xz(Q),W=QM(D,m,P),L=W===mM?7:W[$z]|0,u=Ps(L,Q);if(2&u||sb(u)||16&u)W=LI(W),L=0,u=Ws(u,Q),cp(D,Q,m,W,P);u&=-13;u!==L&&vz(W,u);return W};
qX=function(D,Q,m,P){Sd(D);var W=D.SJ,L=W[$z]|0;if(P==null){var u=tu(W);if(zE(u,W,L,m)===Q)u.set(m,0);else return D}else L=bZ(W,L,m,Q);cp(W,L,Q,P);return D};
CB=function(D,Q,m,P){var W=D[$z]|0,L=xz(W);W=bZ(D,W,m,Q,L);cp(D,W,Q,P,L)};
ot=function(D,Q,m){D=D.SJ;return zE(tu(D),D,void 0,Q)===m?m:-1};
tu=function(D){if(jU){var Q;return(Q=D[fB])!=null?Q:D[fB]=new Map}if(fB in D)return D[fB];Q=new Map;Object.defineProperty(D,fB,{value:Q});return Q};
bZ=function(D,Q,m,P,W){P===0||m.includes(P);var L=tu(D),u=zE(L,D,Q,m,W);u!==P&&(u&&(Q=cp(D,Q,u,void 0,W)),L.set(m,P));return Q};
zE=function(D,Q,m,P,W){var L=D.get(P);if(L!=null)return L;for(var u=L=0;u<P.length;u++){var t=P[u];Gg(Q,t,W)!=null&&(L!==0&&(m=cp(Q,m,L,void 0,W)),L=t)}D.set(P,L);return L};
FC=function(D,Q,m){var P=D[$z]|0,W=xz(P),L=Gg(D,m,W);if(L!=null&&L[we]===k2){if(!ar(L))return Xr(L),L.SJ;var u=L.SJ}else Array.isArray(L)&&(u=L);if(u){var t=u[$z]|0;t&2&&(u=AW(u,t))}u=a7(u,Q,!0);u!==L&&cp(D,P,m,u,W);return u};
k4P=function(D,Q,m,P,W){var L=!1;P=Gg(D,P,W,function(u){var t=zsk(u,m,Q);L=t!==u&&t!=null;return t});
if(P!=null)return L&&!ar(P)&&re(D,Q),P};
TE=function(D,Q,m,P){var W=D.SJ,L=W[$z]|0;Q=k4P(W,L,Q,m,P);if(Q==null)return Q;L=W[$z]|0;if(!ar(D,L)){var u=Eqw(Q);u!==Q&&(Xr(D)&&(W=D.SJ,L=W[$z]|0),Q=u,L=cp(W,L,m,Q,P),re(W,L))}return Q};
Jyu=function(D,Q,m,P,W,L,u,t){var z=ar(D,m);L=z?1:L;u=!!u||L===3;z=t&&!z;(L===2||z)&&Xr(D)&&(Q=D.SJ,m=Q[$z]|0);D=QM(Q,W);var b=D===mM?7:D[$z]|0,q=Ps(b,m);if(t=!(4&q)){var C=D,f=m,V=!!(2&q);V&&(f|=2);for(var N=!V,h=!0,B=0,J=0;B<C.length;B++){var k=zsk(C[B],P,f);if(k instanceof P){if(!V){var R=ar(k);N&&(N=!R);h&&(h=R)}C[J++]=k}}J<B&&(C.length=J);q|=4;q=h?q&-4097:q|4096;q=N?q|8:q&-9}q!==b&&(vz(D,q),2&q&&Object.freeze(D));if(z&&!(8&q||!D.length&&(L===1||(L!==4?0:2&q||!(16&q)&&32&m)))){sb(q)&&(D=LI(D),
q=Ws(q,m),m=cp(Q,m,W,D));P=D;z=q;for(b=0;b<P.length;b++)C=P[b],q=Eqw(C),C!==q&&(P[b]=q);z|=8;q=z=P.length?z|4096:z&-4097;vz(D,q)}return D=gqh(D,q,Q,m,W,L,t,u)};
hu=function(D,Q,m){var P=D.SJ;return Jyu(D,P,P[$z]|0,Q,m,void 0===l_h?2:4,!1,!0)};
I__=function(D,Q){D!=null?Bp(D,Q):D=void 0;return D};
nB=function(D,Q,m,P,W){P=I__(P,Q);DF(D,m,P,W);P&&!ar(P)&&re(D.SJ);return D};
Rs6=function(D,Q,m,P,W){W=I__(W,Q);qX(D,m,P,W);W&&!ar(W)&&re(D.SJ);return D};
Eb=function(D,Q,m,P){Sd(D);var W=D.SJ,L=W[$z]|0;if(P==null)return cp(W,L,m),D;if(!Array.isArray(P))throw UG();for(var u=P===mM?7:P[$z]|0,t=u,z=sb(u),b=z||Object.isFrozen(P),q=!0,C=!0,f=0;f<P.length;f++){var V=P[f];Bp(V,Q);z||(V=ar(V),q&&(q=!V),C&&(C=V))}z||(u=q?13:5,u=C?u&-4097:u|4096);b&&u===t||(P=LI(P),t=0,u=Ws(u,L));u!==t&&vz(P,u);L=cp(W,L,m,P);2&u||!(4096&u||16&u)||re(W,L);return D};
Ws=function(D,Q){return D=(2&Q?D|2:D&-3)&-273};
gx=function(D,Q,m,P){var W=P;Sd(D);P=D.SJ;D=Jyu(D,P,P[$z]|0,m,Q,2,!0);W=W!=null?Bp(W,m):new m;D.push(W);Q=m=D===mM?7:D[$z]|0;(W=ar(W))?(m&=-9,D.length===1&&(m&=-4097)):m|=4096;m!==Q&&vz(D,m);W||re(P)};
Bs=function(D,Q,m){m=m===void 0?0:m;D=qI(MI(D,Q));return D!=null?D:m};
wx=function(D,Q){var m=m===void 0?0:m;var P;return(P=CI(MI(D,Q)))!=null?P:m};
H69=function(D,Q,m){m=m===void 0?Utr:m;D=MI(D,Q);Q=typeof D;D=D==null?D:Q==="bigint"?M5(NI(64,D)):zg(D)?Q==="string"?c6h(D):Dtn(D):void 0;return D!=null?D:m};
kp=function(D,Q,m,P){m=m===void 0?"":m;var W;return(W=ge(MI(D,Q,P)))!=null?W:m};
Ju=function(D,Q){var m=m===void 0?0:m;D=MI(D,Q);D=D==null?D:tW(D)?D|0:void 0;return D!=null?D:m};
It=function(D,Q){return ge(MI(D,Q,void 0,lZ))};
Rt=function(D,Q,m){return DF(D,Q,Tg(m))};
Ub=function(D,Q,m){return DF(D,Q,EN(m))};
Hs=function(D,Q,m,P){return uZ(D,Q,EN(m),"",P)};
KB=function(D,Q,m){if(m!=null){if(!tW(m))throw UG("enum");m|=0}return DF(D,Q,m)};
j3=function(D,Q,m){this.buffer=D;if(m&&!Q)throw Error();this.S=Q};
$p=function(D,Q){if(typeof D==="string")return new j3(UDP(D),Q);if(Array.isArray(D))return new j3(new Uint8Array(D),Q);if(D.constructor===Uint8Array)return new j3(D,!1);if(D.constructor===ArrayBuffer)return D=new Uint8Array(D),new j3(D,!1);if(D.constructor===kz)return Q=Ir(D)||new Uint8Array(0),new j3(Q,!0,D);if(D instanceof Uint8Array)return D=D.constructor===Uint8Array?D:new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new j3(D,!1);throw Error();};
e3=function(D,Q,m,P){this.C=null;this.J=!1;this.S=this.T=this.B=0;this.init(D,Q,m,P)};
Ob=function(D){var Q=0,m=0,P=0,W=D.C,L=D.S;do{var u=W[L++];Q|=(u&127)<<P;P+=7}while(P<32&&u&128);if(P>32)for(m|=(u&127)>>4,P=3;P<32&&u&128;P+=7)u=W[L++],m|=(u&127)<<P;vs(D,L);if(!(u&128))return xDh(Q>>>0,m>>>0);throw Error();};
vs=function(D,Q){D.S=Q;if(Q>D.T)throw Error();};
Yp=function(D){var Q=D.C,m=D.S,P=Q[m++],W=P&127;if(P&128&&(P=Q[m++],W|=(P&127)<<7,P&128&&(P=Q[m++],W|=(P&127)<<14,P&128&&(P=Q[m++],W|=(P&127)<<21,P&128&&(P=Q[m++],W|=P<<28,P&128&&Q[m++]&128&&Q[m++]&128&&Q[m++]&128&&Q[m++]&128&&Q[m++]&128)))))throw Error();vs(D,m);return W};
at=function(D){var Q=D.C,m=D.S,P=Q[m+0],W=Q[m+1],L=Q[m+2];Q=Q[m+3];vs(D,D.S+4);return(P<<0|W<<8|L<<16|Q<<24)>>>0};
Au=function(D){var Q=at(D);D=at(D);return i2(Q,D)};
pB=function(D){var Q=at(D),m=at(D);D=(m>>31)*2+1;var P=m>>>20&2047;Q=4294967296*(m&1048575)+Q;return P==2047?Q?NaN:D*Infinity:P==0?D*4.9E-324*Q:D*Math.pow(2,P-1075)*(Q+4503599627370496)};
xp=function(D){for(var Q=0,m=D.S,P=m+10,W=D.C;m<P;){var L=W[m++];Q|=L;if((L&128)===0)return vs(D,m),!!(Q&127)}throw Error();};
Kmk=function(D,Q){if(Q<0)throw Error();var m=D.S;Q=m+Q;if(Q>D.T)throw Error();D.S=Q;return m};
$tr=function(D,Q){if(Q==0)return lF();var m=Kmk(D,Q);D.cT&&D.J?m=D.C.subarray(m,m+Q):(D=D.C,Q=m+Q,m=m===Q?new Uint8Array(0):jGh?D.slice(m,Q):new Uint8Array(D.subarray(m,Q)));return m.length==0?lF():new kz(m,Ji)};
S3=function(D,Q,m,P){if(XC.length){var W=XC.pop();W.init(D,Q,m,P);D=W}else D=new e3(D,Q,m,P);this.S=D;this.B=this.S.S;this.C=this.T=-1;esm(this,P)};
esm=function(D,Q){Q=Q===void 0?{}:Q;D.nY=Q.nY===void 0?!1:Q.nY};
vq9=function(D,Q,m,P){if(rx.length){var W=rx.pop();esm(W,P);W.S.init(D,Q,m,P);return W}return new S3(D,Q,m,P)};
O66=function(D){var Q=D.S;if(Q.S==Q.T)return!1;D.B=D.S.S;var m=Yp(D.S)>>>0;Q=m>>>3;m&=7;if(!(m>=0&&m<=5))throw Error();if(Q<1)throw Error();D.T=Q;D.C=m;return!0};
GE=function(D){switch(D.C){case 0:D.C!=0?GE(D):xp(D.S);break;case 1:D=D.S;vs(D,D.S+8);break;case 2:if(D.C!=2)GE(D);else{var Q=Yp(D.S)>>>0;D=D.S;vs(D,D.S+Q)}break;case 5:D=D.S;vs(D,D.S+4);break;case 3:Q=D.T;do{if(!O66(D))throw Error();if(D.C==4){if(D.T!=Q)throw Error();break}GE(D)}while(1);break;default:throw Error();}};
MX=function(D,Q,m){var P=D.S.T,W=Yp(D.S)>>>0;W=D.S.S+W;var L=W-P;L<=0&&(D.S.T=W,m(Q,D,void 0,void 0,void 0),L=W-D.S.S);if(L)throw Error();D.S.S=W;D.S.T=P};
tr=function(D){var Q=Yp(D.S)>>>0;D=D.S;var m=Kmk(D,Q);D=D.C;if(Yck){var P=D,W;(W=cs)||(W=cs=new TextDecoder("utf-8",{fatal:!0}));Q=m+Q;P=m===0&&Q===P.length?P:P.subarray(m,Q);try{var L=W.decode(P)}catch(b){if(dS===void 0){try{W.decode(new Uint8Array([128]))}catch(q){}try{W.decode(new Uint8Array([97])),dS=!0}catch(q){dS=!1}}!dS&&(cs=void 0);throw b;}}else{L=m;Q=L+Q;m=[];for(var u=null,t,z;L<Q;)t=D[L++],t<128?m.push(t):t<224?L>=Q?TQ():(z=D[L++],t<194||(z&192)!==128?(L--,TQ()):m.push((t&31)<<6|z&63)):
t<240?L>=Q-1?TQ():(z=D[L++],(z&192)!==128||t===224&&z<160||t===237&&z>=160||((W=D[L++])&192)!==128?(L--,TQ()):m.push((t&15)<<12|(z&63)<<6|W&63)):t<=244?L>=Q-2?TQ():(z=D[L++],(z&192)!==128||(t<<28)+(z-144)>>30!==0||((W=D[L++])&192)!==128||((P=D[L++])&192)!==128?(L--,TQ()):(t=(t&7)<<18|(z&63)<<12|(W&63)<<6|P&63,t-=65536,m.push((t>>10&1023)+55296,(t&1023)+56320))):TQ(),m.length>=8192&&(u=NC9(u,m),m.length=0);L=NC9(u,m)}return L};
a_m=function(D){var Q=Yp(D.S)>>>0;return $tr(D.S,Q)};
ze=function(D,Q){this.C=D>>>0;this.S=Q>>>0};
pbr=function(D){if(!D)return Ayh||(Ayh=new ze(0,0));if(!/^\d+$/.test(D))return null;sN(D);return new ze(cz,D0)};
bx=function(D,Q){this.C=D>>>0;this.S=Q>>>0};
Xbw=function(D){if(!D)return xtr||(xtr=new bx(0,0));if(!/^-?\d+$/.test(D))return null;sN(D);return new bx(cz,D0)};
qU=function(){this.S=[]};
Cm=function(D,Q,m){for(;m>0||Q>127;)D.S.push(Q&127|128),Q=(Q>>>7|m<<25)>>>0,m>>>=7;D.S.push(Q)};
oR=function(D,Q){for(;Q>127;)D.S.push(Q&127|128),Q>>>=7;D.S.push(Q)};
Sc9=function(D,Q){if(Q>=0)oR(D,Q);else{for(var m=0;m<9;m++)D.S.push(Q&127|128),Q>>=7;D.S.push(1)}};
fm=function(D,Q){D.S.push(Q>>>0&255);D.S.push(Q>>>8&255);D.S.push(Q>>>16&255);D.S.push(Q>>>24&255)};
ryn=function(){this.T=[];this.C=0;this.S=new qU};
VK=function(D,Q){Q.length!==0&&(D.T.push(Q),D.C+=Q.length)};
G4j=function(D,Q){NU(D,Q,2);Q=D.S.end();VK(D,Q);Q.push(D.C);return Q};
MZk=function(D,Q){var m=Q.pop();for(m=D.C+D.S.length()-m;m>127;)Q.push(m&127|128),m>>>=7,D.C++;Q.push(m);D.C++};
NU=function(D,Q,m){oR(D.S,Q*8+m)};
cyh=function(D,Q,m){if(m!=null){switch(typeof m){case "string":pbr(m)}NU(D,Q,1);switch(typeof m){case "number":D=D.S;Qt(m);fm(D,cz);fm(D,D0);break;case "bigint":m=BigInt.asUintN(64,m);m=new ze(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));D=D.S;Q=m.S;fm(D,m.C);fm(D,Q);break;default:m=pbr(m),D=D.S,Q=m.S,fm(D,m.C),fm(D,Q)}}};
yK=function(D,Q,m){NU(D,Q,2);oR(D.S,m.length);VK(D,D.S.end());VK(D,m)};
Z$=function(){function D(){throw Error();}
Object.setPrototypeOf(D,D.prototype);return D};
FJ=function(D,Q,m){this.SJ=Y2(D,Q,m)};
Di6=function(D,Q){if(Q==null||Q=="")return new D;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("dnarr");eU(Q,32);return new D(Q)};
hr=function(D,Q,m){this.hV=D;this.BM=Q;D=qQ(Te);this.S=!!D&&m===D||!1};
nm=function(D,Q){var m=m===void 0?Te:m;return new hr(D,Q,m)};
mik=function(D,Q,m,P,W){Q=Q$P(Q,P);Q!=null&&(m=G4j(D,m),W(Q,D),MZk(D,m))};
Bc=function(D,Q,m,P){var W=P[D];if(W)return W;W={};W.N$=P;W.rq=Z6m(P[0]);var L=P[1],u=1;L&&L.constructor===Object&&(W.extensions=L,L=P[++u],typeof L==="function"&&(W.MQ=!0,E8!=null||(E8=L),gS!=null||(gS=P[u+1]),L=P[u+=2]));for(var t={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var z=0;z<L.length;z++)t[L[z]]=L;L=P[++u]}for(z=1;L!==void 0;){typeof L==="number"&&(z+=L,L=P[++u]);var b=void 0;if(L instanceof hr)var q=L;else q=PX_,u--;L=void 0;if((L=q)==null?0:L.S){L=P[++u];b=
P;var C=u;typeof L==="function"&&(L=L(),b[C]=L);b=L}L=P[++u];C=z+1;typeof L==="number"&&L<0&&(C-=L,L=P[++u]);for(;z<C;z++){var f=t[z];b?m(W,z,q,b,f):Q(W,z,q,f)}}return P[D]=W};
ia7=function(D){return Array.isArray(D)?D[0]instanceof hr?D:[WOr,D]:[D,void 0]};
Q$P=function(D,Q){if(D instanceof FJ)return D.SJ;if(Array.isArray(D))return a7(D,Q,!1)};
wS=function(D,Q,m,P){var W=m.hV;D[Q]=P?function(L,u,t){return W(L,u,t,P)}:W};
Jr=function(D,Q,m,P,W){var L=m.hV,u,t;D[Q]=function(z,b,q){return L(z,b,q,t||(t=Bc(km,wS,Jr,P).rq),u||(u=lx(P)),W)}};
lx=function(D){var Q=D[IR];if(Q!=null)return Q;var m=Bc(km,wS,Jr,D);Q=m.MQ?function(P,W){return E8(P,W,m)}:function(P,W){for(;O66(W)&&W.C!=4;){var L=W.T,u=m[L];
if(u==null){var t=m.extensions;t&&(t=t[L])&&(t=s$P(t),t!=null&&(u=m[L]=t))}if(u==null||!u(W,P,L)){t=W;u=t.B;GE(t);if(t.nY)var z=void 0;else{var b=t.S.S-u;t.S.S=u;z=$tr(t.S,b)}b=t=u=void 0;var q=P;z&&((u=(t=(b=q[l2])!=null?b:q[l2]=new R7)[L])!=null?u:t[L]=[]).push(z)}}if(P=I7(P))P.e8=m.N$[LO$];return!0};
D[IR]=Q;D[LO$]=uyu.bind(D);return Q};
uyu=function(D,Q,m,P){var W=this[km],L=this[IR],u=a7(void 0,W.rq,!1),t=I7(D);if(t){var z=!1,b=W.extensions;if(b){W=function(N,h,B){if(B.length!==0)if(b[h])for(N=g.T(B),h=N.next();!h.done;h=N.next()){h=vq9(h.value);try{z=!0,L(u,h)}finally{h.free()}}else P==null||P(D,h,B)};
if(Q==null)UN(t,W);else if(t!=null){var q=t[Q];q&&W(t,Q,q)}if(z){var C=D[$z]|0;if(C&2&&C&2048&&(m==null||!m.WOz))throw Error();var f=xz(C),V=function(N,h){if(Gg(D,N,f)!=null)switch(m==null?void 0:m.FBD){case 1:return;default:throw Error();}h!=null&&(C=cp(D,C,N,h,f));delete t[N]};
Q==null?Yqm(u,u[$z]|0,function(N,h){V(N,h)}):V(Q,Gg(u,Q,f))}}}};
s$P=function(D){D=ia7(D);var Q=D[0].hV;if(D=D[1]){var m=lx(D),P=Bc(km,wS,Jr,D).rq;return function(W,L,u){return Q(W,L,u,P,m)}}return Q};
RR=function(D,Q,m){D[Q]=m.BM};
Hc=function(D,Q,m,P){var W,L,u=m.BM;D[Q]=function(t,z,b){return u(t,z,b,L||(L=Bc(U8,RR,Hc,P).rq),W||(W=di$(P)))}};
di$=function(D){var Q=D[teh];if(!Q){var m=Bc(U8,RR,Hc,D);Q=function(P,W){return zMP(P,W,m)};
D[teh]=Q}return Q};
zMP=function(D,Q,m){Yqm(D,D[$z]|0,function(P,W){if(W!=null){var L=baj(m,P);L?L(Q,W,P):P<500||Hz(qxw,3)}});
(D=I7(D))&&UN(D,function(P,W,L){VK(Q,Q.S.end());for(P=0;P<L.length;P++)VK(Q,Ir(L[P])||new Uint8Array(0))})};
baj=function(D,Q){var m=D[Q];if(m)return m;if(m=D.extensions)if(m=m[Q]){m=ia7(m);var P=m[0].BM;if(m=m[1]){var W=di$(m),L=Bc(U8,RR,Hc,m).rq;m=D.MQ?gS(L,W):function(u,t,z){return P(u,t,z,L,W)}}else m=P;
return D[Q]=m}};
$m=function(D,Q,m){if(Array.isArray(Q)){var P=Q[$z]|0;if(P&4)return Q;for(var W=0,L=0;W<Q.length;W++){var u=D(Q[W]);u!=null&&(Q[L++]=u)}L<W&&(Q.length=L);m&&(vz(Q,(P|5)&-1537),P&2&&Object.freeze(Q));return Q}};
aR=function(D,Q,m){return new hr(D,Q,m)};
Ar=function(D,Q,m){return new hr(D,Q,m)};
pm=function(D,Q,m){cp(D,D[$z]|0,Q,m,xz(D[$z]|0))};
XJ=function(D,Q,m){Q=Q==null||typeof Q==="number"?Q:Q==="NaN"||Q==="Infinity"||Q==="-Infinity"?Number(Q):void 0;Q!=null&&(NU(D,m,1),D=D.S,m=CXw||(CXw=new DataView(new ArrayBuffer(8))),m.setFloat64(0,+Q,!0),cz=m.getUint32(0,!0),D0=m.getUint32(4,!0),fm(D,cz),fm(D,D0))};
St=function(D,Q,m){Q=sG4(Q);if(Q!=null){switch(typeof Q){case "string":Xbw(Q)}if(Q!=null)switch(NU(D,m,0),typeof Q){case "number":D=D.S;Pp(Q);Cm(D,cz,D0);break;case "bigint":m=BigInt.asUintN(64,Q);m=new bx(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));Cm(D.S,m.C,m.S);break;default:m=Xbw(Q),Cm(D.S,m.C,m.S)}}};
rS=function(D,Q,m){Q=qI(Q);Q!=null&&Q!=null&&(NU(D,m,0),Sc9(D.S,Q))};
oZw=function(D,Q,m){Q=Q==null||typeof Q==="boolean"?Q:typeof Q==="number"?!!Q:void 0;Q!=null&&(NU(D,m,0),D.S.S.push(Q?1:0))};
fq_=function(D,Q,m){Q=ge(Q);Q!=null&&yK(D,m,TC7(Q))};
Ve_=function(D,Q,m,P,W){Q=Q$P(Q,P);Q!=null&&(m=G4j(D,m),W(Q,D),MZk(D,m))};
ytw=function(){var D=Ge;this.S=N9n;this.isRepeated=0;this.C=TE;this.defaultValue=void 0;this.T=D.messageId!=null?pk:void 0};
Za7=function(D,Q){return function(m,P){var W={Yh:!0};P&&Object.assign(W,P);m=vq9(m,void 0,void 0,W);try{var L=new D,u=L.SJ;lx(Q)(u,m);var t=L}finally{m.free()}return t}};
FO9=function(D){return function(){var Q=new ryn;zMP(this.SJ,Q,Bc(U8,RR,Hc,D));VK(Q,Q.S.end());for(var m=new Uint8Array(Q.C),P=Q.T,W=P.length,L=0,u=0;u<W;u++){var t=P[u];m.set(t,L);L+=t.length}Q.T=[m];return m}};
MU=function(D){return function(Q){return Di6(D,Q)}};
cc=function(D){this.SJ=Y2(D)};
T9_=function(D){this.T=D;this.S=-1;this.C=this.B=0};
Db=function(D,Q){return function(){var m=g.e$.apply(0,arguments);if(D.S>-1)return Q.apply(null,g.on(m));try{return D.S=D.T.S.now(),Q.apply(null,g.on(m))}finally{D.B+=D.T.S.now()-D.S,D.S=-1,D.C+=1}}};
hMu=function(D,Q){this.C=D;this.T=Q;this.S=new T9_(D)};
nZw=function(){this.S={}};
gZ7=function(){var D=Qv().flags,Q=EZm;D=D.S[Q.key];if(Q.valueType==="proto"){try{var m=JSON.parse(D);if(Array.isArray(m))return m}catch(P){}return Q.defaultValue}return typeof D===typeof Q.defaultValue?D:Q.defaultValue};
Jtm=function(){this.T=void 0;this.C=this.N=0;this.J=-1;this.vn=new Tr;h6(this.vn,"mv",B97).S=!0;h6(this.vn,"omid",wC);h6(this.vn,"epoh",wC).S=!0;h6(this.vn,"epph",wC).S=!0;h6(this.vn,"umt",wC).S=!0;h6(this.vn,"phel",wC).S=!0;h6(this.vn,"phell",wC).S=!0;h6(this.vn,"oseid",wu6).S=!0;var D=this.vn;D.S.sloi||(D.S.sloi=new Zz);D.S.sloi.S=!0;h6(this.vn,"mm",mK);h6(this.vn,"ovms",kH7).S=!0;h6(this.vn,"xdi",wC).S=!0;h6(this.vn,"amp",wC).S=!0;h6(this.vn,"prf",wC).S=!0;h6(this.vn,"gtx",wC).S=!0;h6(this.vn,
"mvp_lv",wC).S=!0;h6(this.vn,"ssmol",wC).S=!0;h6(this.vn,"fmd",wC).S=!0;h6(this.vn,"gen204simple",wC);this.S=new hMu(FF(),this.vn);this.B=!1;this.flags=new nZw};
Qv=function(){return yT(Jtm)};
lq9=function(D,Q,m,P){if(Math.random()<(P||D.S))try{if(m instanceof bF)var W=m;else W=new bF,ti(m,function(u,t){var z=W,b=z.B++;u=q5(t,u);z.S.push(b);z.C[b]=u});
var L=W.AD(D.C,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Q+"&");L&&(FF(),C7r(L))}catch(u){}};
Iqm=function(D,Q,m){m=m===void 0?{}:m;this.error=D;this.meta=m;this.context=Q.context;this.msg=Q.message||"";this.id=Q.id||"jserror"};
RM7=function(){var D=D===void 0?g.Mu:D;return(D=D.performance)&&D.now&&D.timing?Math.floor(D.now()+D.timing.navigationStart):g.bv()};
Ui_=function(){var D=D===void 0?g.Mu:D;return(D=D.performance)&&D.now?D.now():null};
Ha6=function(D,Q,m){this.label=D;this.type=Q;this.value=m;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
W9=function(){var D=window;this.events=[];this.C=D||g.Mu;var Q=null;D&&(D.google_js_reporting_queue=D.google_js_reporting_queue||[],this.events=D.google_js_reporting_queue,Q=D.google_measure_js_timing);this.S=P9()||(Q!=null?Q:Math.random()<1)};
KOh=function(D){D&&iY&&P9()&&(iY.clearMarks("goog_"+D.label+"_"+D.uniqueId+"_start"),iY.clearMarks("goog_"+D.label+"_"+D.uniqueId+"_end"))};
s3=function(D,Q,m,P,W,L,u){var t="";D&&(t+=D+":");m&&(t+="//",Q&&(t+=Q+"@"),t+=m,P&&(t+=":"+P));W&&(t+=W);L&&(t+="?"+L);u&&(t+="#"+u);return t};
g.LG=function(D){return D.match(j$6)};
$i6=function(D){return D?decodeURI(D):D};
g.uY=function(D){return $i6(g.LG(D)[3]||null)};
dz=function(D){return $i6(g.LG(D)[5]||null)};
g.eM7=function(D){D=g.LG(D);return s3(D[1],D[2],D[3],D[4])};
to=function(D){D=g.LG(D);return s3(null,null,null,null,D[5],D[6],D[7])};
vZr=function(D){var Q=D.indexOf("#");return Q<0?D:D.slice(0,Q)};
z2=function(D,Q){if(D){D=D.split("&");for(var m=0;m<D.length;m++){var P=D[m].indexOf("="),W=null;if(P>=0){var L=D[m].substring(0,P);W=D[m].substring(P+1)}else L=D[m];Q(L,W?wh(W):"")}}};
bY=function(D,Q){if(!Q)return D;var m=D.indexOf("#");m<0&&(m=D.length);var P=D.indexOf("?");if(P<0||P>m){P=m;var W=""}else W=D.substring(P+1,m);D=[D.slice(0,P),W,D.slice(m)];m=D[1];D[1]=Q?m?m+"&"+Q:Q:m;return D[0]+(D[1]?"?"+D[1]:"")+D[2]};
qc=function(D,Q,m){if(Array.isArray(Q))for(var P=0;P<Q.length;P++)qc(D,String(Q[P]),m);else Q!=null&&m.push(D+(Q===""?"":"="+g.gh(Q)))};
Oa9=function(D,Q){var m=[];for(Q=Q||0;Q<D.length;Q+=2)qc(D[Q],D[Q+1],m);return m.join("&")};
g.CG=function(D){var Q=[],m;for(m in D)qc(m,D[m],Q);return Q.join("&")};
Yx7=function(D,Q){var m=arguments.length==2?Oa9(arguments[1],0):Oa9(arguments,1);return bY(D,m)};
g.oz=function(D,Q){Q=g.CG(Q);return bY(D,Q)};
fG=function(D,Q,m){m=m!=null?"="+g.gh(m):"";return bY(D,Q+m)};
Vv=function(D,Q,m,P){for(var W=m.length;(Q=D.indexOf(m,Q))>=0&&Q<P;){var L=D.charCodeAt(Q-1);if(L==38||L==63)if(L=D.charCodeAt(Q+W),!L||L==61||L==38||L==35)return Q;Q+=W+1}return-1};
Zb=function(D,Q){var m=D.search(Nc),P=Vv(D,0,Q,m);if(P<0)return null;var W=D.indexOf("&",P);if(W<0||W>m)W=m;P+=Q.length+1;return wh(D.slice(P,W!==-1?W:0))};
FA=function(D,Q){for(var m=D.search(Nc),P=0,W,L=[];(W=Vv(D,P,Q,m))>=0;)L.push(D.substring(P,W)),P=Math.min(D.indexOf("&",W)+1||m,m);L.push(D.slice(P));return L.join("").replace(aqP,"$1")};
Atr=function(D,Q,m){return fG(FA(D,Q),Q,m)};
pum=function(){var D=T2;this.S=ho;this.RS="jserror";this.dW=!0;this.KW=null;this.C=this.w7;this.Gc=D===void 0?null:D};
xir=function(D,Q,m){var P=nG;return Db(Qv().S.S,function(){try{if(P.Gc&&P.Gc.S){var W=P.Gc.start(D.toString(),3);var L=Q();P.Gc.end(W)}else L=Q()}catch(t){var u=P.dW;try{KOh(W),u=P.C(D,new E3(gz(t)),void 0,m)}catch(z){P.w7(217,z)}if(!u)throw t;}return L})()};
B9=function(D,Q,m,P){return Db(Qv().S.S,function(){var W=g.e$.apply(0,arguments);return xir(D,function(){return Q.apply(m,W)},P)})};
gz=function(D){var Q=D.toString();D.name&&Q.indexOf(D.name)==-1&&(Q+=": "+D.name);D.message&&Q.indexOf(D.message)==-1&&(Q+=": "+D.message);if(D.stack)a:{D=D.stack;var m=Q;try{D.indexOf(m)==-1&&(D=m+"\n"+D);for(var P;D!=P;)P=D,D=D.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Q=D.replace(/\n */g,"\n");break a}catch(W){Q=m;break a}Q=void 0}return Q};
E3=function(D){Iqm.call(this,Error(D),{message:D})};
Xum=function(){kZ&&typeof kZ.google_measure_js_timing!="undefined"&&(kZ.google_measure_js_timing||T2.disable())};
Sxu=function(D){nG.KW=function(Q){g.S2(D,function(m){m(Q)})}};
rt$=function(D,Q){return xir(D,Q)};
wz=function(D,Q){return B9(D,Q)};
kN=function(D,Q,m,P){nG.w7(D,Q,m,P)};
Jo=function(){return Date.now()-GH9};
Me$=function(){var D=Qv().T,Q=lY>=0?Jo()-lY:-1,m=Iz?Jo()-Rz:-1,P=U3>=0?Jo()-U3:-1;if(D==947190542)return 100;if(D==79463069)return 200;D=[2E3,4E3];var W=[250,500,1E3];kN(637,Error(),.001);var L=Q;m!=-1&&m<Q&&(L=m);for(Q=0;Q<D.length;++Q)if(L<D[Q]){var u=W[Q];break}u===void 0&&(u=W[D.length]);return P!=-1&&P>1500&&P<4E3?500:u};
H9=function(D,Q,m){var P=new Hu(0,0,0,0);this.time=D;this.volume=null;this.T=Q;this.S=P;this.C=m};
KG=function(D,Q,m,P,W,L,u,t){this.B=D;this.U=Q;this.T=m;this.N=P;this.S=W;this.J=L;this.C=u;this.Z=t};
D5$=function(D){var Q=D!==D.top,m=D.top===GTj(D),P=-1,W=0;if(Q&&m&&D.top.mraid){P=3;var L=D.top.mraid}else P=(L=D.mraid)?Q?m?2:1:0:-1;L&&(L.IS_GMA_SDK||(W=2),IkP(cth,function(u){return typeof L[u]==="function"})||(W=1));
return{Fv:L,compatibility:W,bdF:P}};
Qrw=function(){var D=window.document;return D&&typeof D.elementFromPoint==="function"};
m5m=function(D,Q,m){if(D&&Q!==null&&Q!=Q.top){if(!Q.top)return new g.Ay(-12245933,-12245933);Q=Q.top}try{return(m===void 0?0:m)?(new g.Ay(Q.innerWidth,Q.innerHeight)).round():RVj(Q||window).round()}catch(P){return new g.Ay(-12245933,-12245933)}};
jO=function(D,Q,m){try{if(D){if(!Q.top)return new Hu(-12245933,-12245933,-12245933,-12245933);Q=Q.top}var P=m5m(D,Q,m),W=P.height,L=P.width;if(L===-12245933)return new Hu(L,L,L,L);var u=mO(Q.document);var t=HV6(u.S);var z=t.x,b=t.y;return new Hu(b,z+L,b+W,z)}catch(q){return new Hu(-12245933,-12245933,-12245933,-12245933)}};
$N=function(D,Q){Q=Math.pow(10,Q);return Math.floor(D*Q)/Q};
PFw=function(D){return new Hu(D.top,D.right,D.bottom,D.left)};
W$m=function(D){var Q=D.top||0,m=D.left||0;return new Hu(Q,m+(D.width||0),Q+(D.height||0),m)};
eO=function(D){return D!=null&&D>=0&&D<=1};
ikh=function(){var D=g.Kg();return D?v9("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(Q){return I2(D,Q)})||I2(D,"OMI/")&&!I2(D,"XiaoMi/")?!0:I2(D,"Presto")&&I2(D,"Linux")&&!I2(D,"X11")&&!I2(D,"Android")&&!I2(D,"Mobi"):!1};
srP=function(){this.T=!iF(kZ.top);this.isMobileDevice=Lk()||M2j();var D=zQ();this.domain=D.length>0&&D[D.length-1]!=null&&D[D.length-1].url!=null?g.uY(D[D.length-1].url)||"":"";this.S=new Hu(0,0,0,0);this.B=new g.Ay(0,0);this.J=new g.Ay(0,0);this.U=new Hu(0,0,0,0);this.frameOffset=new g.Yq(0,0);this.N=0;this.Z=!1;this.C=!(!kZ||!D5$(kZ).Fv);this.update(kZ)};
L$P=function(D,Q){Q&&Q.screen&&(D.B=new g.Ay(Q.screen.width,Q.screen.height))};
uFP=function(D,Q){a:{var m=D.S?new g.Ay(Ka(D.S),D.S.getHeight()):new g.Ay(0,0);Q=Q===void 0?kZ:Q;Q!==null&&Q!=Q.top&&(Q=Q.top);var P=0,W=0;try{var L=Q.document,u=L.body,t=L.documentElement;if(L.compatMode=="CSS1Compat"&&t.scrollHeight)P=t.scrollHeight!=m.height?t.scrollHeight:t.offsetHeight,W=t.scrollWidth!=m.width?t.scrollWidth:t.offsetWidth;else{var z=t.scrollHeight,b=t.scrollWidth,q=t.offsetHeight,C=t.offsetWidth;t.clientHeight!=q&&(z=u.scrollHeight,b=u.scrollWidth,q=u.offsetHeight,C=u.offsetWidth);
z>m.height?z>q?(P=z,W=b):(P=q,W=C):z<q?(P=z,W=b):(P=q,W=C)}var f=new g.Ay(W,P);break a}catch(V){f=new g.Ay(-12245933,-12245933);break a}f=void 0}D.J=f};
az=function(){var D=O3();if(D.N>0||D.Z)return!0;D=FF().C.isVisible();var Q=Wz(YN)===0;return D||Q};
O3=function(){return yT(srP)};
Ao=function(D){this.T=D;this.C=0;this.S=null};
pG=function(D,Q,m){this.T=D;this.x9=m===void 0?"na":m;this.J=[];this.isInitialized=!1;this.B=new H9(-1,!0,this);this.S=this;this.Z=Q;this.TO=this.j=!1;this.t0="uk";this.QF=!1;this.N=!0};
xN=function(D,Q){g.FK(D.J,Q)||(D.J.push(Q),Q.EF(D.S),Q.Au(D.B),Q.mE()&&(D.j=!0))};
d5_=function(D){D=D.S;D.wA();D.Vm();var Q=O3();Q.U=jO(!1,D.T,Q.isMobileDevice);uFP(O3(),D.T);D.B.S=D.jA()};
tUw=function(D){D.j=D.J.length?v9(D.J,function(Q){return Q.mE()}):!1};
z$j=function(D){var Q=g.JM(D.J);g.S2(Q,function(m){m.Au(D.B)})};
XA=function(D){var Q=g.JM(D.J);g.S2(Q,function(m){m.EF(D.S)});
D.S!=D||z$j(D)};
SO=function(D,Q,m,P){this.element=D;this.S=new Hu(0,0,0,0);this.T=null;this.N=new Hu(0,0,0,0);this.C=Q;this.vn=m;this.QF=P;this.Kh=!1;this.timestamp=-1;this.j=new KG(Q.B,this.element,this.S,new Hu(0,0,0,0),0,0,Jo(),0);this.J=void 0};
bk4=function(D,Q){return D.J?new Hu(Math.max(Q.top+D.J.top,Q.top),Math.min(Q.left+D.J.right,Q.right),Math.min(Q.top+D.J.bottom,Q.bottom),Math.max(Q.left+D.J.left,Q.left)):Q.clone()};
rz=function(D){this.J=!1;this.S=D;this.B=function(){}};
qG$=function(D,Q,m){this.T=m===void 0?0:m;this.C=D;this.S=Q==null?"":Q};
CFh=function(D){switch(Math.trunc(D.T)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
ozr=function(D,Q){return D.T<Q.T?!0:D.T>Q.T?!1:D.C<Q.C?!0:D.C>Q.C?!1:typeof D.S<typeof Q.S?!0:typeof D.S>typeof Q.S?!1:D.S<Q.S};
G2=function(){this.T=0;this.S=[];this.C=!1};
frn=function(D,Q){(0,g.S2)(Q.S,function(m){D.add(m.C,m.S,CFh(m))})};
Mc=function(D,Q){var m=m===void 0?0:m;var P=P===void 0?!0:P;ti(Q,function(W,L){P&&W===void 0||D.add(L,W,m)});
return D};
c9=function(D){var Q=VUj;D.C&&(g.pV(D.S,function(m,P){return ozr(P,m)?1:ozr(m,P)?-1:0}),D.C=!1);
return N5(D.S,function(m,P){P=Q(P);return""+m+(m!=""&&P!=""?"&":"")+P},"")};
VUj=function(D){var Q=D.C;D=D.S;return D===""?Q:typeof D==="boolean"?D?Q:"":Array.isArray(D)?D.length===0?Q:Q+"="+D.join():Q+"="+(g.FK(["mtos","tos","p"],Q)?D:encodeURIComponent(D))};
NPP=function(D){var Q=Q===void 0?!0:Q;this.S=new G2;D!==void 0&&frn(this.S,D);Q&&this.S.add("v","unreleased",-16)};
yi9=function(D){var Q=[],m=[];g.MQ(D,function(P,W){if(!(W in Object.prototype)&&typeof P!="undefined")switch(Array.isArray(P)&&(P=P.join(",")),P=[W,"=",P].join(""),W){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":Q.unshift(P);break;case "req":case "url":case "referrer":case "iframe_loc":m.push(P);break;default:Q.push(P)}});
return Q.concat(m)};
Zk7=function(D){D=D.toString();FF();C7r(D)};
F$6=function(){this.S=0};
g.Dp=function(D){D&&typeof D.dispose=="function"&&D.dispose()};
g.Qj=function(D){for(var Q=0,m=arguments.length;Q<m;++Q){var P=arguments[Q];g.WP(P)?g.Qj.apply(null,P):g.Dp(P)}};
g.v=function(){this.Pj=this.Pj;this.VR=this.VR};
g.O=function(D,Q){D.addOnDisposeCallback(g.zT(g.Dp,Q))};
TP$=function(D,Q,m){(0,g.S2)(D.T,function(P){var W=D.S;if(!P.S&&(P.T(Q,m),P.B())){P.S=!0;var L=P.C(),u=new G2;u.add("id","av-js");u.add("type","verif");u.add("vtype",P.J);P=yT(F$6);u.add("i",P.S++);u.add("adk",W);Mc(u,L);W=new NPP(u);Zk7(W)}})};
mG=function(){this.C=this.T=this.B=this.S=0};
P3=function(D){this.C=D=D===void 0?h$j:D;this.S=g.fk(this.C,function(){return new mG})};
W3=function(D,Q){return nz7(D,function(m){return m.S},Q===void 0?!0:Q)};
LO=function(D,Q){return ik(D,Q,function(m){return m.S})};
Ez4=function(D,Q){return nz7(D,function(m){return m.T},Q===void 0?!0:Q)};
uk=function(D,Q){return ik(D,Q,function(m){return m.T})};
d0=function(D,Q){return ik(D,Q,function(m){return m.C})};
gzr=function(D){g.S2(D.S,function(Q){Q.C=0})};
nz7=function(D,Q,m){D=g.fk(D.S,function(P){return Q(P)});
return m?D:BPj(D)};
ik=function(D,Q,m){var P=g.ZN(D.C,function(W){return Q<=W});
return P==-1?0:m(D.S[P])};
BPj=function(D){return g.fk(D,function(Q,m,P){return m>0?P[m]-P[m-1]:P[m]})};
t0=function(){this.C=new P3;this.x9=this.u0=0;this.Y9=new mG;this.Iy=this.U=-1;this.XT=1E3;this.oy=new P3([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.t0=this.Kh=-1};
z9=function(D,Q){return Ez4(D.C,Q===void 0?!0:Q)};
bk=function(D,Q,m,P){var W=W===void 0?!1:W;m=B9(P,m);Pz(D,Q,m,{capture:W})};
CO=function(D,Q){Q=qd(Q);return Q===0?0:qd(D)/Q};
qd=function(D){return Math.max(D.bottom-D.top,0)*Math.max(D.right-D.left,0)};
wz7=function(D,Q){if(!D||!Q)return!1;for(var m=0;D!==null&&m++<100;){if(D===Q)return!0;try{if(D=D.parentElement||D){var P=cb(D),W=P&&tt(P),L=W&&W.frameElement;L&&(D=L)}}catch(u){break}}return!1};
kQ_=function(D,Q,m){if(!D||!Q)return!1;Q=$Z(D.clone(),-Q.left,-Q.top);D=(Q.left+Q.right)/2;Q=(Q.top+Q.bottom)/2;iF(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Qrw())return!1;D=window.document.elementFromPoint(D,Q);if(!D)return!1;Q=(Q=(Q=cb(m))&&Q.defaultView&&Q.defaultView.frameElement)&&wz7(Q,D);var P=D===m;D=!P&&D&&na(D,function(W){return W===m});
return!(Q||P||D)};
Jih=function(D,Q,m,P){return O3().T?!1:Ka(D)<=0||D.getHeight()<=0?!0:m&&P?rt$(208,function(){return kQ_(D,Q,m)}):!1};
oM=function(D,Q,m){g.v.call(this);this.position=lrP.clone();this.tb=this.gK();this.J1=-2;this.timeCreated=Date.now();this.Y3=-1;this.n0=Q;this.oK=null;this.Mx=!1;this.PG=null;this.opacity=-1;this.requestSource=m;this.Xxh=!1;this.xj=function(){};
this.Kt=function(){};
this.bW=new eV$;this.bW.Tj=D;this.bW.S=D;this.Gu=!1;this.B0={lf:null,W8:null};this.Ba=!0;this.RX=null;this.g5=this.Li=!1;Qv().N++;this.Jf=this.yS();this.ly=-1;this.Z$=null;this.hasCompleted=this.kT=!1;this.vn=new Tr;vPm(this.vn);Ir7(this);this.requestSource==1?ng(this.vn,"od",1):ng(this.vn,"od",0)};
Ir7=function(D){D=D.bW.Tj;var Q;if(Q=D&&D.getAttribute)Q=/-[a-z]/.test("googleAvInapp")?!1:R$n&&D.dataset?"googleAvInapp"in D.dataset:D.hasAttribute?D.hasAttribute("data-"+Cv6()):!!D.getAttribute("data-"+Cv6());Q&&(O3().C=!0)};
fO=function(D,Q){Q!=D.g5&&(D.g5=Q,D=O3(),Q?D.N++:D.N>0&&D.N--)};
I0$=function(D,Q){if(D.Z$){if(Q.getName()===D.Z$.getName())return;D.Z$.dispose();D.Z$=null}Q=Q.create(D.bW.S,D.vn,D.mE());if(Q=Q!=null&&Q.observe()?Q:null)D.Z$=Q};
Rtw=function(D,Q,m){if(!D.oK||D.n0==-1||Q.C===-1||D.oK.C===-1)return 0;D=Q.C-D.oK.C;return D>m?0:D};
UIh=function(D,Q,m){if(D.Z$){D.Z$.ju();var P=D.Z$.j,W=P.B,L=W.S;if(P.N!=null){var u=P.T;D.PG=new g.Yq(u.left-L.left,u.top-L.top)}L=D.UA()?Math.max(P.S,P.J):P.S;u={};W.volume!==null&&(u.volume=W.volume);W=D.PU(P);D.oK=P;D.Lh(L,Q,m,!1,u,W,P.Z)}};
HIj=function(D){if(D.Mx&&D.RX){var Q=Eq(D.vn,"od")==1,m=O3().S,P=D.RX,W=D.Z$?D.Z$.getName():"ns",L=D.PG,u=new g.Ay(Ka(m),m.getHeight());m=D.UA();D={Upq:W,PG:L,u6c:u,UA:m,i7:D.Jf.i7,t1D:Q};if(Q=P.C){Q.ju();W=Q.j;L=W.B.S;var t=u=null;W.N!=null&&L&&(u=W.T,u=new g.Yq(u.left-L.left,u.top-L.top),t=new g.Ay(L.right-L.left,L.bottom-L.top));W=m?Math.max(W.S,W.J):W.S;m={Upq:Q.getName(),PG:u,u6c:t,UA:m,t1D:!1,i7:W}}else m=null;m&&TP$(P,D,m)}};
Kzn=function(D,Q,m){Q&&(D.xj=Q);m&&(D.Kt=m)};
g.Vj=function(){};
g.Nd=function(D){return{value:D,done:!1}};
j7m=function(){this.B=this.S=this.T=this.C=this.J=0};
$Ir=function(D){var Q={};var m=g.bv()-D.J;Q=(Q.ptlt=m,Q);(m=D.C)&&(Q.pnk=m);(m=D.T)&&(Q.pnc=m);(m=D.B)&&(Q.pnmm=m);(D=D.S)&&(Q.pns=D);return Q};
etP=function(){GT.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
h0=function(D){return eO(D.volume)&&D.volume>0};
nO=function(D,Q,m,P){m=m===void 0?!0:m;P=P===void 0?function(){return!0}:P;
return function(W){var L=W[D];if(Array.isArray(L)&&P(W))return v2n(L,Q,m)}};
Ew=function(D,Q){return function(m){return Q(m)?m[D]:void 0}};
OIm=function(D){return function(Q){for(var m=0;m<D.length;m++)if(D[m]===Q.e||D[m]===void 0&&!Q.hasOwnProperty("e"))return!0;return!1}};
v2n=function(D,Q,m){return m===void 0||m?g.g0(D,function(P,W){return g.FK(Q,W)}):g.fk(Q,function(P,W,L){return D.slice(W>0?L[W-1]+1:0,P+1).reduce(function(u,t){return u+t},0)})};
YNh=function(){this.C=this.S=""};
a0_=function(){};
B3=function(D,Q){var m={};if(D!==void 0)if(Q!=null)for(var P in Q){var W=Q[P];P in Object.prototype||W!=null&&(m[P]=typeof W==="function"?W(D):D[W])}else g.VP(m,D);return c9(Mc(new G2,m))};
AWw=function(){var D={};this.C=(D.vs=[1,0],D.vw=[0,1],D.am=[2,2],D.a=[4,4],D.f=[8,8],D.bm=[16,16],D.b=[32,32],D.avw=[0,64],D.avs=[64,0],D.pv=[256,256],D.gdr=[0,512],D.p=[0,1024],D.r=[0,2048],D.m=[0,4096],D.um=[0,8192],D.ef=[0,16384],D.s=[0,32768],D.pmx=[0,16777216],D.mut=[33554432,33554432],D.umutb=[67108864,67108864],D.tvoff=[134217728,134217728],D);this.S={};for(var Q in this.C)this.C[Q][1]>0&&(this.S[Q]=0);this.T=0};
w0=function(D,Q){var m=D.C[Q],P=m[1];D.T+=m[0];P>0&&D.S[Q]==0&&(D.S[Q]=1)};
ppj=function(D){var Q=g.i7(D.C),m=0,P;for(P in D.S)g.FK(Q,P)&&D.S[P]==1&&(m+=D.C[P][1],D.S[P]=2);return m};
xIh=function(D){var Q=0,m;for(m in D.S){var P=D.S[m];if(P==1||P==2)Q+=D.C[m][1]}return Q};
kc=function(){this.S=this.C=0};
J0=function(){t0.call(this);this.T=new mG;this.k9=this.j=this.QF=0;this.Z=-1;this.jD=new mG;this.J=new mG;this.S=new P3;this.N=this.B=-1;this.TO=new mG;this.XT=2E3;this.wc=new kc;this.l0=new kc;this.GO=new kc};
lk=function(D,Q,m){var P=D.k9;Iz||m||D.Z==-1||(P+=Q-D.Z);return P};
Xpw=function(){this.T=!1};
IM=function(D,Q){this.T=!1;this.B=D;this.j=Q;this.J=0};
RM=function(D,Q){IM.call(this,D,Q);this.U=[]};
SN6=function(){};
Uw=function(){};
KO=function(D,Q,m,P){SO.call(this,D,Q,m,P)};
jN=function(D,Q,m){SO.call(this,null,D,Q,m);this.Z=D.isActive();this.U=0};
$c=function(D){return[D.top,D.left,D.bottom,D.right]};
eN=function(D,Q,m,P,W,L){L=L===void 0?new Uw:L;oM.call(this,Q,m,P);this.pQ=W;this.BS=0;this.qb={};this.ol=new AWw;this.w6={};this.Bc="";this.GO=null;this.hU=!1;this.S=[];this.Mr=L.C();this.N=L.T();this.B=null;this.T=-1;this.x9=this.j=void 0;this.Iy=this.TO=0;this.t0=-1;this.XT=this.l0=!1;this.QF=this.Z=this.C=this.yp=this.gB=0;new P3;this.wc=this.k9=0;this.Y9=-1;this.mK=0;this.U=g.lX;this.Kh=[this.gK()];this.cY=2;this.wz={};this.wz.pause="p";this.wz.resume="r";this.wz.skip="s";this.wz.mute="m";this.wz.unmute=
"um";this.wz.exitfullscreen="ef";this.J=null;this.oy=this.jD=!1;this.Kj=Math.floor(Date.now()/1E3-1704067200);this.u0=0};
v3=function(D){D.hasCompleted=!0;D.mK!=0&&(D.mK=3)};
Ow=function(D){return D===void 0?D:Number(D)?$N(D,3):0};
Yc=function(D,Q){return D.Kh[Q!=null&&Q<D.Kh.length?Q:D.Kh.length-1]};
rWj=function(D){var Q=!!Eq(Qv().vn,"umt");return D.j||!Q&&!D.x9?0:1};
Ggr=function(D,Q){D.Xv()?Q=0:D.n0==-1?Q=0:(Q-=D.n0,Q=Q>Math.max(1E4,D.T/3)?0:Q);var m=D.U(D)||{};m=m.currentTime!==void 0?m.currentTime:D.TO;var P=m-D.TO,W=0;P>=0?(D.Iy+=Q,D.wc+=Math.max(Q-P,0),W=Math.min(P,D.Iy)):D.k9+=Math.abs(P);P!=0&&(D.Iy=0);D.Y9==-1&&P>0&&(D.Y9=U3>=0?Jo()-U3:-1);D.TO=m;return W};
Mdm=function(D,Q){v9(D.N,function(m){return m.B==Q.B})||D.N.push(Q)};
cWm=function(D){var Q=LO(D.kF().S,1);return aM(D,Q)};
aM=function(D,Q,m){return Q>=15E3?!0:D.l0?(m===void 0?0:m)?!0:D.T>0?Q>=D.T/2:D.t0>0?Q>=D.t0:!1:!1};
DXP=function(D){var Q=$N(D.Jf.i7,2),m=D.ol.T,P=D.Jf,W=Yc(D),L=Ow(W.B),u=Ow(W.N),t=Ow(P.volume),z=$N(W.U,2),b=$N(W.Iy,2),q=$N(P.i7,2),C=$N(W.Kh,2),f=$N(W.t0,2);P=$N(P.Xt,2);var V=D.wh().clone().round();D=D.Z$&&D.Z$.T?(D.Z$?D.Z$.T:null).clone().round():null;W=z9(W,!1);return{O60:Q,Ex:m,Jb:L,BG:u,Hm:t,vG:z,R$:b,i7:q,Va:C,Kv:f,Xt:P,position:V,AL:D,xk:W}};
mX7=function(D,Q){Qt7(D.S,Q,function(){return{O60:0,Ex:void 0,Jb:-1,BG:-1,Hm:-1,vG:-1,R$:-1,i7:-1,Va:-1,Kv:-1,Xt:-1,position:void 0,AL:void 0,xk:[]}});
D.S[Q]=DXP(D)};
Qt7=function(D,Q,m){for(var P=D.length;P<Q+1;)D.push(m()),P++};
pO=function(D,Q,m){var P=D.w6[Q];if(P!=null)return P;P=PZw(D,Q);var W=zr(A0,function(L){return L==Q});
D=WMh(D,P,P,m,iBj[A0[W]]);Q=="fully_viewable_audible_half_duration_impression"&&(D.std="csm");return D};
xc=function(D,Q,m){var P=[Q];if(D!=Q||m!=Q)P.unshift(D),P.push(m);return P};
WMh=function(D,Q,m,P,W){if(D.Gu)return{"if":0,vs:0};var L=D.wh().clone().round(),u=D.Z$?D.Z$.T:null,t=O3(),z=Qv(),b=D.kF(),q=D.Z$?D.Z$.getName():"ns",C={};C["if"]=t.T?1:void 0;C.sdk=D.B?D.B:void 0;C.t=D.timeCreated;C.p=[L.top,L.left,L.bottom,L.right];L&&u&&!je(u,L)&&(L=u.round(),C.cp=[L.top,L.left,L.bottom,L.right]);C.tos=W3(b.C,!1);C.mtos=z9(b);C.mcvt=b.Y9.T;C.ps=void 0;L=lk(b,Jo(),D.Xv());C.vht=L;C.mut=b.jD.T;C.a=Ow(D.Jf.volume);C.mv=Ow(b.N);C.fs=D.g5?1:0;C.ft=b.TO.S;C.at=b.J.S;C.as=b.B>0?1:0;C.atos=
W3(b.S);C.ssb=W3(b.oy,!1);C.amtos=Ez4(b.S,!1);C.uac=D.gB;C.vpt=b.T.S;q=="nio"&&(C.nio=1,C.avms="nio");C.gmm="4";C.gdr=aM(D,b.T.S,!0)?1:0;C.efpf=D.cY;if(q=="gsv"||q=="nis")q=D.Z$,q.U>0&&(C.nnut=q.U);C.tcm=rWj(D);C.nmt=D.k9;C.bt=D.wc;C.pst=D.Y9;C.vpaid=D.j;C.dur=D.T;C.vmtime=D.TO;C.is=D.ol.T;D.S.length>=1&&(C.i0=D.S[0].Ex,C.a0=[D.S[0].Hm],C.c0=[D.S[0].i7],C.ss0=[D.S[0].Xt],q=D.S[0].position,L=D.S[0].AL,C.p0=q?$c(q):void 0,q&&L&&!je(L,q)&&(C.cp0=$c(L)));D.S.length>=2&&(C.i1=D.S[1].Ex,C.a1=xc(D.S[1].Jb,
D.S[1].Hm,D.S[1].BG),C.c1=xc(D.S[1].vG,D.S[1].i7,D.S[1].R$),C.ss1=xc(D.S[1].Va,D.S[1].Xt,D.S[1].Kv),q=D.S[1].position,L=D.S[1].AL,C.p1=q?$c(q):void 0,q&&L&&!je(L,q)&&(C.cp1=$c(L)),C.mtos1=D.S[1].xk);D.S.length>=3&&(C.i2=D.S[2].Ex,C.a2=xc(D.S[2].Jb,D.S[2].Hm,D.S[2].BG),C.c2=xc(D.S[2].vG,D.S[2].i7,D.S[2].R$),C.ss2=xc(D.S[2].Va,D.S[2].Xt,D.S[2].Kv),q=D.S[2].position,L=D.S[2].AL,C.p2=q?$c(q):void 0,q&&L&&!je(L,q)&&(C.cp2=$c(L)),C.mtos2=D.S[2].xk);D.S.length>=4&&(C.i3=D.S[3].Ex,C.a3=xc(D.S[3].Jb,D.S[3].Hm,
D.S[3].BG),C.c3=xc(D.S[3].vG,D.S[3].i7,D.S[3].R$),C.ss3=xc(D.S[3].Va,D.S[3].Xt,D.S[3].Kv),q=D.S[3].position,L=D.S[3].AL,C.p3=q?$c(q):void 0,q&&L&&!je(L,q)&&(C.cp3=$c(L)),C.mtos3=D.S[3].xk);C.cs=xIh(D.ol);Q&&(C.ic=ppj(D.ol),C.dvpt=b.T.C,C.dvs=d0(b.C,.5),C.dfvs=d0(b.C,1),C.davs=d0(b.S,.5),C.dafvs=d0(b.S,1),m&&(b.T.C=0,gzr(b.C),gzr(b.S)),D.Y$()&&(C.dtos=b.QF,C.dav=b.j,C.dtoss=D.BS+1,m&&(b.QF=0,b.j=0,D.BS++)),C.dat=b.J.C,C.dft=b.TO.C,m&&(b.J.C=0,b.TO.C=0));C.ps=[t.J.width,t.J.height];C.bs=[Ka(t.S),t.S.getHeight()];
C.scs=[t.B.width,t.B.height];C.dom=t.domain;D.yp&&(C.vds=D.yp);if(D.N.length>0||D.Mr)Q=g.JM(D.N),D.Mr&&Q.push(D.Mr),C.pings=g.fk(Q,function(f){return f.toString()});
Q=g.fk(g.g0(D.N,function(f){return f.N()}),function(f){return f.getId()});
EPn(Q);C.ces=Q;D.C&&(C.vmer=D.C);D.Z&&(C.vmmk=D.Z);D.QF&&(C.vmiec=D.QF);C.avms=D.Z$?D.Z$.getName():"ns";D.Z$&&g.VP(C,D.Z$.e0());P?(C.c=$N(D.Jf.i7,2),C.ss=$N(D.Jf.Xt,2)):C.tth=Jo()-st6;C.mc=$N(b.Iy,2);C.nc=$N(b.U,2);C.mv=Ow(b.N);C.nv=Ow(b.B);C.lte=$N(D.J1,2);P=Yc(D,W);z9(b);C.qmtos=z9(P);C.qnc=$N(P.U,2);C.qmv=Ow(P.N);C.qnv=Ow(P.B);C.qas=P.B>0?1:0;C.qi=D.Bc;C.avms||(C.avms="geo");C.psm=b.wc.S;C.psv=b.wc.getValue();C.psfv=b.l0.getValue();C.psa=b.GO.getValue();z=$uw(z.vn);z.length&&(C.veid=z);D.J&&g.VP(C,
$Ir(D.J));C.avas=D.Xb();C.vs=D.T_();C.co=LM_(D);C.tm=b.u0;C.tu=b.x9;return C};
PZw=function(D,Q){if(g.FK(uCj,Q))return!0;var m=D.qb[Q];return m!==void 0?(D.qb[Q]=!0,!m):!1};
LM_=function(D){var Q=D.u0.toString(10).padStart(2,"0");Q=""+D.Kj+Q;D.u0<99&&D.u0++;return Q};
t3n=function(){this.S={};var D=tt();XQ(this,D,document);var Q=dXr();try{if("1"==Q){for(var m=D.parent;m!=D.top;m=m.parent)XQ(this,m,m.document);XQ(this,D.top,D.top.document)}}catch(P){}};
dXr=function(){var D=document.documentElement;try{if(!iF(tt().top))return"2";var Q=[],m=tt(D.ownerDocument);for(D=m;D!=m.top;D=D.parent)if(D.frameElement)Q.push(D.frameElement);else break;return Q&&Q.length!=0?"1":"0"}catch(P){return"2"}};
XQ=function(D,Q,m){bk(m,"mousedown",function(){return zxj(D)},301);
bk(Q,"scroll",function(){return bB6(D)},302);
bk(m,"touchmove",function(){return qbn(D)},303);
bk(m,"mousemove",function(){return CZw(D)},304);
bk(m,"keydown",function(){return op$(D)},305)};
zxj=function(D){g.MQ(D.S,function(Q){Q.T>1E5||++Q.T})};
bB6=function(D){g.MQ(D.S,function(Q){Q.S>1E5||++Q.S})};
qbn=function(D){g.MQ(D.S,function(Q){Q.S>1E5||++Q.S})};
op$=function(D){g.MQ(D.S,function(Q){Q.C>1E5||++Q.C})};
CZw=function(D){g.MQ(D.S,function(Q){Q.B>1E5||++Q.B})};
fFu=function(){this.S=[];this.C=[]};
SN=function(D,Q){return g.y4(D.S,function(m){return m.Bc==Q})};
V3m=function(D,Q){return Q?g.y4(D.S,function(m){return m.bW.Tj==Q}):null};
Nx6=function(D,Q){return g.y4(D.C,function(m){return m.Ej()==2&&m.Bc==Q})};
G9=function(){var D=r0;return D.S.length==0?D.C:D.C.length==0?D.S:g.kk(D.C,D.S)};
yu4=function(D,Q){D=Q.Ej()==1?D.S:D.C;var m=NQ(D,function(P){return P==Q});
return m!=-1?(D.splice(m,1),Q.Z$&&Q.Z$.unobserve(),Q.dispose(),!0):!1};
ZBm=function(D){var Q=r0;if(yu4(Q,D)){switch(D.Ej()){case 0:var m=function(){return null};
case 2:m=function(){return Nx6(Q,D.Bc)};
break;case 1:m=function(){return SN(Q,D.Bc)}}for(var P=m();P;P=m())yu4(Q,P)}};
FM_=function(D){var Q=r0;D=g.g0(D,function(m){return!V3m(Q,m.bW.Tj)});
Q.S.push.apply(Q.S,g.on(D))};
Tx9=function(D){var Q=[];g.S2(D,function(m){v9(r0.S,function(P){return P.bW.Tj===m.bW.Tj&&P.Bc===m.Bc})||(r0.S.push(m),Q.push(m))})};
Md=function(){this.S=this.C=null};
hx_=function(D,Q){function m(P,W){Q(P,W)}
if(D.C==null)return!1;D.S=g.y4(D.C,function(P){return P!=null&&P.xK()});
D.S&&(D.S.init(m)?d5_(D.S.S):Q(D.S.S.W3(),D.S));return D.S!=null};
c3=function(D){D=npP(D);rz.call(this,D.length?D[D.length-1]:new pG(kZ,0));this.T=D;this.C=null};
npP=function(D){if(!D.length)return[];D=(0,g.g0)(D,function(m){return m!=null&&m.cN()});
for(var Q=1;Q<D.length;Q++)xN(D[Q-1],D[Q]);return D};
D3=function(D,Q,m,P){SO.call(this,D,Q,m,P);this.Iy=this.TO=this.U=this.Z=this.B=null};
QO=function(D){return D.B&&D.B.takeRecords?D.B.takeRecords():[]};
gp_=function(D){if(!D.element)return!1;var Q=D.element,m=D.C.S.T,P=Qv().S.S;D.B=new m.IntersectionObserver(Db(P,function(W){return mJ(D,W)}),Epr);
P=Db(P,function(){D.B.unobserve(Q);D.B.observe(Q);mJ(D,QO(D))});
m.ResizeObserver?(D.Z=new m.ResizeObserver(P),D.Z.observe(Q)):m.MutationObserver&&(D.U=new g.Mu.MutationObserver(P),D.U.observe(Q,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));D.B.observe(Q);mJ(D,QO(D));return!0};
mJ=function(D,Q){try{if(Q.length){D.TO||(D.TO=Jo());var m=Bx$(Q),P=pPm(D.element,D.C.S.T),W=P.x,L=P.y;D.T=new Hu(Math.round(L),Math.round(W)+m.boundingClientRect.width,Math.round(L)+m.boundingClientRect.height,Math.round(W));D.S=bk4(D,D.T);var u=PFw(m.intersectionRect);D.N=$Z(u,D.T.left-u.left,D.T.top-u.top)}}catch(t){D.unobserve(),kN(299,t)}};
Bx$=function(D){return N5(D,function(Q,m){return Q.time>m.time?Q:m},D[0])};
Pm=function(D){D=D===void 0?kZ:D;rz.call(this,new pG(D,2))};
Wm=function(){var D=ws4();pG.call(this,kZ.top,D,"geo")};
ws4=function(){Qv();var D=O3();return D.T||D.C?0:2};
kE4=function(){};
id=function(){this.done=!1;this.S={Ed:0,zf:0,yE9:0,SA:0,aR:-1,AK:0,mG:0,W2:0,wxq:0};this.J=null;this.N=!1;this.T=null;this.U=0;this.C=new Ao(this)};
LM=function(){var D=sF;D.N||(D.N=!0,Ju6(D,function(){return D.B.apply(D,g.on(g.e$.apply(0,arguments)))}),D.B())};
lFm=function(){yT(kE4);var D=yT(Md);D.S!=null&&D.S.S?d5_(D.S.S):O3().update(kZ)};
ud=function(D,Q,m){if(!D.done&&(D.C.cancel(),Q.length!=0)){D.T=null;try{lFm();var P=Jo();Qv().J=P;if(yT(Md).S!=null)for(var W=0;W<Q.length;W++)UIh(Q[W],P,m);for(P=0;P<Q.length;P++)HIj(Q[P]);++D.S.SA}finally{m?g.S2(Q,function(L){L.Jf.i7=0}):D.C.schedule()}}};
Ju6=function(D,Q){if(!D.J){Q=B9(142,Q);FF();var m;YN.visibilityState?m="visibilitychange":YN.mozVisibilityState?m="mozvisibilitychange":YN.webkitVisibilityState&&(m="webkitvisibilitychange");m&&Pz(YN,m,Q,{capture:!1})&&(D.J=Q)}};
IF_=function(){var D=yT(Md);if(D.S!=null){var Q=D.S;g.S2(G9(),function(m){return I0$(m,Q)})}};
Rxm=function(D,Q){D=D.U;Iz&&(D+=Q-Rz);return D};
UXh=function(D){D=D===void 0?function(){return{}}:D;
nG.RS="av-js";ho.S=.01;Sxu([function(Q){var m=Qv(),P={};P=(P.bin=m.C,P.type="error",P);m=BK(m.vn);if(!sF.T){var W=sF,L=kZ.document,u=lY>=0?Jo()-lY:-1,t=Jo();W.S.aR==-1&&(u=t);var z=O3(),b=Qv(),q=BK(b.vn),C=G9();try{if(C.length>0){var f=z.S;f&&(q.bs=[Ka(f),f.getHeight()]);var V=z.J;V&&(q.ps=[V.width,V.height]);kZ.screen&&(q.scs=[kZ.screen.width,kZ.screen.height])}else q.url=encodeURIComponent(kZ.location.href.substring(0,512)),L.referrer&&(q.referrer=encodeURIComponent(L.referrer.substring(0,512)));
q.tt=u;q.pt=lY;q.bin=b.C;kZ.google_osd_load_pub_page_exp!==void 0&&(q.olpp=kZ.google_osd_load_pub_page_exp);q.deb=[1,W.S.Ed,W.S.zf,W.S.SA,W.S.aR,0,W.C.C,W.S.AK,W.S.mG,W.S.W2,W.S.wxq,-1].join(";");q.tvt=Rxm(W,t);z.C&&(q.inapp=1);if(kZ!==null&&kZ!=kZ.top){C.length>0&&(q.iframe_loc=encodeURIComponent(kZ.location.href.substring(0,512)));var N=z.U;q.is=[Ka(N),N.getHeight()]}}catch(h){q.error=1}sF.T=q}f=g.o2(sF.T);V=Qv().S;Eq(V.T,"prf")==1?(N=new cc,W=V.S,L=0,W.S>-1&&(L=W.T.S.now()-W.S),N=uZ(N,1,u2(W.B+
L),0),W=V.S,N=uZ(N,5,b2(W.S>-1?W.C+1:W.C),0),N=uZ(N,2,Tg(V.C.S.T()),"0"),N=uZ(N,3,Tg(V.C.S.C()),"0"),V=uZ(N,4,Tg(V.C.S.S()),"0"),N={},V=(N.pf=g.EG(V.T()),N)):V={};g.VP(f,V);g.VP(Q,P,m,f,D())}])};
KM_=function(){var D=HB_||kZ;if(!D)return"";var Q=[];if(!D.location||!D.location.href)return"";Q.push("url="+encodeURIComponent(D.location.href.substring(0,512)));D.document&&D.document.referrer&&Q.push("referrer="+encodeURIComponent(D.document.referrer.substring(0,512)));return Q.join("&")};
df=function(){var D="youtube.player.web_20250810_21_RC01".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250810_21_RC01".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250810_21_RC01".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250810_21_RC01".match(/_(\d{8})_\d+_RC\d+$/),Q;if(((Q=D)==null?void 0:Q.length)==2)return D[1];D="youtube.player.web_20250810_21_RC01".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var m;return((m=D)==null?void 0:m.length)==3?"20"+D[1]+D[2]:null};
jtu=function(){return"av.default_js".includes("ima_html5_sdk")?{rY:"ima",Lc:null}:"av.default_js".includes("ima_native_sdk")?{rY:"nima",Lc:null}:"av.default_js".includes("admob-native-video-javascript")?{rY:"an",Lc:null}:"youtube.player.web_20250810_21_RC01".includes("cast_js_sdk")?{rY:"cast",Lc:df()}:"youtube.player.web_20250810_21_RC01".includes("youtube.player.web")?{rY:"yw",Lc:df()}:"youtube.player.web_20250810_21_RC01".includes("outstream_web_client")?{rY:"out",Lc:df()}:"youtube.player.web_20250810_21_RC01".includes("drx_rewarded_web")?
{rY:"r",Lc:df()}:"youtube.player.web_20250810_21_RC01".includes("gam_native_web_video")?{rY:"n",Lc:df()}:"youtube.player.web_20250810_21_RC01".includes("admob_interstitial_video")?{rY:"int",Lc:df()}:{rY:"j",Lc:null}};
bd=function(D,Q){var m={sv:"968"};tz!==null&&(m.v=tz);m.cb=$Xk;m.nas=r0.S.length;m.msg=D;Q!==void 0&&(D=ex6(Q))&&(m.e=zw[D]);return m};
q8=function(D){return k1(D,"custom_metric_viewable")};
ex6=function(D){var Q=q8(D)?"custom_metric_viewable":D.toLowerCase();return zr(A0,function(m){return m==Q})};
vpm=function(){this.S=void 0;this.C=!1;this.T=0;this.B=-1;this.J="tos"};
aF7=function(D){try{var Q=D.split(",");return Q.length>g.i7(OBr).length?null:N5(Q,function(m,P){P=P.toLowerCase().split("=");if(P.length!=2||YbP[P[0]]===void 0||!YbP[P[0]](P[1]))throw Error("Entry ("+P[0]+", "+P[1]+") is invalid.");m[P[0]]=P[1];return m},{})}catch(m){return null}};
Auj=function(D,Q){if(D.S==void 0)return 0;switch(D.J){case "mtos":return D.C?uk(Q.S,D.S):uk(Q.C,D.S);case "tos":return D.C?LO(Q.S,D.S):LO(Q.C,D.S)}return 0};
CM=function(D,Q,m,P){IM.call(this,Q,P);this.U=D;this.Z=m};
oT=function(){};
fM=function(D){IM.call(this,"fully_viewable_audible_half_duration_impression",D)};
VO=function(D){this.S=D};
N8=function(D,Q){IM.call(this,D,Q)};
yO=function(D){RM.call(this,"measurable_impression",D)};
Z3=function(){VO.apply(this,arguments)};
F3=function(D,Q,m){jN.call(this,D,Q,m)};
Tw=function(D){D=D===void 0?kZ:D;rz.call(this,new pG(D,2))};
hz=function(D,Q,m){jN.call(this,D,Q,m)};
nM=function(D){D=D===void 0?kZ:D;rz.call(this,new pG(D,2))};
EF=function(){pG.call(this,kZ,2,"mraid");this.wc=0;this.Iy=this.Kh=!1;this.U=null;this.C=D5$(this.T);this.B.S=new Hu(0,0,0,0);this.u0=!1};
gf=function(D,Q,m){D.cL("addEventListener",Q,m)};
Sbk=function(D){Qv().B=!!D.cL("isViewable");gf(D,"viewableChange",ps7);D.cL("getState")==="loading"?gf(D,"ready",xXn):Xsu(D)};
Xsu=function(D){typeof D.C.Fv.AFMA_LIDAR==="string"?(D.Kh=!0,ruu(D)):(D.C.compatibility=3,D.U="nc",D.fail("w"))};
ruu=function(D){D.Iy=!1;var Q=Eq(Qv().vn,"rmmt")==1,m=!!D.cL("isViewable");(Q?!m:1)&&FF().setTimeout(wz(524,function(){D.Iy||(GEP(D),kN(540,Error()),D.U="mt",D.fail("w"))}),500);
M36(D);gf(D,D.C.Fv.AFMA_LIDAR,cu6)};
M36=function(D){var Q=Eq(Qv().vn,"sneio")==1,m=D.C.Fv.AFMA_LIDAR_EXP_1!==void 0,P=D.C.Fv.AFMA_LIDAR_EXP_2!==void 0;(Q=Q&&P)&&(D.C.Fv.AFMA_LIDAR_EXP_2=!0);m&&(D.C.Fv.AFMA_LIDAR_EXP_1=!Q)};
GEP=function(D){D.cL("removeEventListener",D.C.Fv.AFMA_LIDAR,cu6);D.Kh=!1};
DU4=function(D,Q){if(D.cL("getState")==="loading")return new g.Ay(-1,-1);Q=D.cL(Q);if(!Q)return new g.Ay(-1,-1);D=parseInt(Q.width,10);Q=parseInt(Q.height,10);return isNaN(D)||isNaN(Q)?new g.Ay(-1,-1):new g.Ay(D,Q)};
xXn=function(){try{var D=yT(EF);D.cL("removeEventListener","ready",xXn);Xsu(D)}catch(Q){kN(541,Q)}};
cu6=function(D,Q){try{var m=yT(EF);m.Iy=!0;var P=D?new Hu(D.y,D.x+D.width,D.y+D.height,D.x):new Hu(0,0,0,0);var W=Jo(),L=az();var u=new H9(W,L,m);u.S=P;u.volume=Q;m.Au(u)}catch(t){kN(542,t)}};
ps7=function(D){var Q=Qv(),m=yT(EF);D&&!Q.B&&(Q.B=!0,m.u0=!0,m.U&&m.fail("w",!0))};
Bm=function(){this.isInitialized=!1;this.S=this.C=null;var D={};this.U=(D.start=this.BA,D.firstquartile=this.TC,D.midpoint=this.Iu,D.thirdquartile=this.Ru,D.complete=this.ji,D.error=this.SO,D.pause=this.a5,D.resume=this.Lw,D.skip=this.hQ,D.viewable_impression=this.FI,D.mute=this.Fg,D.unmute=this.Fg,D.fullscreen=this.d4,D.exitfullscreen=this.Ci,D.fully_viewable_audible_half_duration_impression=this.FI,D.measurable_impression=this.FI,D.abandon=this.a5,D.engagedview=this.FI,D.impression=this.FI,D.creativeview=
this.FI,D.progress=this.Fg,D.custom_metric_viewable=this.FI,D.bufferstart=this.a5,D.bufferfinish=this.Lw,D.audio_measurable=this.FI,D.audio_audible=this.FI,D);D={};this.Z=(D.overlay_resize=this.g4,D.abandon=this.xi,D.close=this.xi,D.collapse=this.xi,D.overlay_unmeasurable_impression=function(Q){return pO(Q,"overlay_unmeasurable_impression",az())},D.overlay_viewable_immediate_impression=function(Q){return pO(Q,"overlay_viewable_immediate_impression",az())},D.overlay_unviewable_impression=function(Q){return pO(Q,
"overlay_unviewable_impression",az())},D.overlay_viewable_end_of_session_impression=function(Q){return pO(Q,"overlay_viewable_end_of_session_impression",az())},D);
Qv().C=3;QRr(this);this.T=null};
wf=function(D,Q,m,P){D=D.UU(null,P,!0,Q);D.B=m;FM_([D]);return D};
mU_=function(D,Q,m){lkP(Q);var P=D.S;g.S2(Q,function(W){var L=g.fk(W.criteria,function(u){var t=aF7(u);if(t==null)u=null;else if(u=new vpm,t.visible!=null&&(u.S=t.visible/100),t.audible!=null&&(u.C=t.audible==1),t.time!=null){var z=t.timetype=="mtos"?"mtos":"tos",b=O9m(t.time,"%")?"%":"ms";t=parseInt(t.time,10);b=="%"&&(t/=100);u.setTime(t,b,z)}return u});
v9(L,function(u){return u==null})||Mdm(m,new CM(W.id,W.event,L,P))})};
Pxj=function(){var D=[],Q=Qv();D.push(yT(Wm));Eq(Q.vn,"mvp_lv")&&D.push(yT(EF));Q=[new Tw,new nM];Q.push(new c3(D));Q.push(new Pm(kZ));return Q};
W_n=function(D){if(!D.isInitialized){D.isInitialized=!0;try{var Q=Jo(),m=Qv(),P=O3();lY=Q;m.T=79463069;D.C!=="o"&&(HB_=GTj(kZ));if(o1m()){sF.S.zf=0;sF.S.aR=Jo()-Q;var W=Pxj(),L=yT(Md);L.C=W;hx_(L,function(){ki()})?sF.done||(IF_(),xN(L.S.S,D),LM()):P.T?ki():LM()}else Jz=!0}catch(u){throw r0.reset(),u;
}}};
IT=function(D){sF.C.cancel();ld=D;sF.done=!0};
RT=function(D){if(D.C)return D.C;var Q=yT(Md).S;if(Q)switch(Q.getName()){case "nis":D.C="n";break;case "gsv":D.C="m"}D.C||(D.C="h");return D.C};
$i=function(D,Q,m){if(D.S==null)return Q.yp|=4,!1;D=im7(D.S,m,Q);Q.yp|=D;return D==0};
ki=function(){var D=[new Pm(kZ)],Q=yT(Md);Q.C=D;hx_(Q,function(){IT("i")})?sF.done||(IF_(),LM()):IT("i")};
sR$=function(D,Q){if(!D.hU){var m=pO(D,"start",az());m=D.pQ.S(m).S;var P={id:"lidarv"};P.r=Q;P.sv="968";tz!==null&&(P.v=tz);z2(m,function(W,L){return P[W]=W=="mtos"||W=="tos"?L:encodeURIComponent(L)});
Q=KM_();z2(Q,function(W,L){return P[W]=encodeURIComponent(L)});
Q="//pagead2.googlesyndication.com/pagead/gen_204?"+c9(Mc(new G2,P));Zk7(Q);D.hU=!0}};
ef=function(D,Q,m){ud(sF,[D],!az());mX7(D,m);m!=4&&Qt7(D.Kh,m,D.gK);return pO(D,Q,az())};
QRr=function(D){UXh(function(){var Q=L_u();D.C!=null&&(Q.sdk=D.C);var m=yT(Md);m.S!=null&&(Q.avms=m.S.getName());return Q})};
uJ7=function(D,Q,m,P){var W=V3m(r0,m);W!==null&&W.Bc!==Q&&(D.vl(W),W=null);W||(Q=D.UU(m,Jo(),!1,Q),r0.C.length==0&&(Qv().T=79463069),Tx9([Q]),W=Q,W.B=RT(D),P&&(W.GO=P));return W};
dU7=function(D,Q){var m=D[Q];m!==void 0&&m>0&&(D[Q]=Math.floor(m*1E3))};
L_u=function(){var D=O3(),Q={},m={},P={};return Object.assign({},(Q.sv="968",Q),tz!==null&&(m.v=tz,m),(P["if"]=D.T?"1":"0",P.nas=String(r0.S.length),P))};
vm=function(D){IM.call(this,"audio_audible",D)};
OF=function(D){RM.call(this,"audio_measurable",D)};
Yi=function(){VO.apply(this,arguments)};
aT=function(){};
tt_=function(D){this.S=D};
im7=function(D,Q,m){D=D.C();if(typeof D==="function"){var P={};var W={};P=Object.assign({},tz!==null&&(P.v=tz,P),(W.sv="968",W.cb=$Xk,W.e=z7$(Q),W));W=pO(m,Q,az());g.VP(P,W);m.w6[Q]=W;P=m.Ej()==2?yi9(P).join("&"):m.pQ.S(P).S;try{return D(m.Bc,P,Q),0}catch(L){return 2}}else return 1};
z7$=function(D){var Q=q8(D)?"custom_metric_viewable":D;D=zr(A0,function(m){return m==Q});
return zw[D]};
Az=function(){Bm.call(this);this.N=null;this.J=!1;this.B="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
bmw=function(D,Q,m){m=m.opt_configurable_tracking_events;D.S!=null&&Array.isArray(m)&&mU_(D,m,Q)};
q8n=function(D,Q,m){var P=SN(r0,Q);P||(P=m.opt_nativeTime||-1,P=wf(D,Q,RT(D),P),m.opt_osdId&&(P.GO=m.opt_osdId));return P};
Cxr=function(D,Q,m){var P=SN(r0,Q);P||(P=wf(D,Q,"n",m.opt_nativeTime||-1));return P};
omr=function(D,Q){var m=SN(r0,Q);m||(m=wf(D,Q,"h",-1));return m};
f$7=function(D){Qv();switch(RT(D)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
yrw=function(D,Q,m,P){m=m===void 0?{}:m;var W={};g.VP(W,{opt_adElement:void 0,opt_fullscreen:void 0},m);var L=D.QO(Q,m);m=L?L.pQ:D.yK();if(W.opt_bounds)return m.S(bd("ol",P));if(P!==void 0)if(ex6(P)!==void 0)if(Jz)D=bd("ue",P);else if(W_n(D),ld=="i")D=bd("i",P),D["if"]=0;else if(Q=D.QO(Q,W)){b:{ld=="i"&&(Q.Gu=!0);L=W.opt_fullscreen;L!==void 0&&fO(Q,!!L);var u;if(L=!O3().C)(L=I2(g.Kg(),"CrKey")&&!(I2(g.Kg(),"CrKey")&&I2(g.Kg(),"SmartSpeaker"))||I2(g.Kg(),"PlayStation")||I2(g.Kg(),"Roku")||ikh()||I2(g.Kg(),
"Xbox"))||(L=g.Kg(),L=I2(L,"AppleTV")||I2(L,"Apple TV")||I2(L,"CFNetwork")||I2(L,"tvOS")),L||(L=g.Kg(),L=I2(L,"sdk_google_atv_x86")||I2(L,"Android TV")),L=!L;L&&(FF(),L=Wz(YN)===0);if(u=L){switch(Q.Ej()){case 1:sR$(Q,"pv");break;case 2:D.Ra(Q)}IT("pv")}L=P.toLowerCase();if(u=!u)u=Eq(Qv().vn,"ssmol")&&L==="loaded"?!1:g.FK(Vtu,L);if(u&&Q.mK==0){ld!="i"&&(sF.done=!1);u=W!==void 0?W.opt_nativeTime:void 0;U3=u=typeof u==="number"?u:Jo();Q.Mx=!0;var t=az();Q.mK=1;Q.qb={};Q.qb.start=!1;Q.qb.firstquartile=
!1;Q.qb.midpoint=!1;Q.qb.thirdquartile=!1;Q.qb.complete=!1;Q.qb.resume=!1;Q.qb.pause=!1;Q.qb.skip=!1;Q.qb.mute=!1;Q.qb.unmute=!1;Q.qb.viewable_impression=!1;Q.qb.measurable_impression=!1;Q.qb.fully_viewable_audible_half_duration_impression=!1;Q.qb.fullscreen=!1;Q.qb.exitfullscreen=!1;Q.BS=0;t||(Q.kF().Z=u);ud(sF,[Q],!t)}(u=Q.wz[L])&&w0(Q.ol,u);Eq(Qv().vn,"fmd")||g.FK(NSr,L)&&Q.Mr&&Q.Mr.C(Q,null);switch(Q.Ej()){case 1:var z=q8(L)?D.U.custom_metric_viewable:D.U[L];break;case 2:z=D.Z[L]}if(z&&(P=z.call(D,
Q,W,P),Eq(Qv().vn,"fmd")&&g.FK(NSr,L)&&Q.Mr&&Q.Mr.C(Q,null),P!==void 0)){W=bd(void 0,L);g.VP(W,P);P=W;break b}P=void 0}Q.mK==3&&D.vl(Q);D=P}else D=bd("nf",P);else D=void 0;else Jz?D=bd("ue"):L?(D=bd(),g.VP(D,WMh(L,!0,!1,!1))):D=bd("nf");return typeof D==="string"?m.S():m.S(D)};
Zmw=function(D,Q){Q&&(D.B=Q)};
F_$=function(D){var Q={};return Q.viewability=D.S,Q.googleViewability=D.C,Q};
TS_=function(D,Q,m){m=m===void 0?{}:m;D=yrw(yT(Az),Q,m,D);return F_$(D)};
pM=function(D){var Q=g.e$.apply(1,arguments).filter(Boolean).join("&");if(!Q)return D;var m=D.match(/[?&]adurl=/);return m?D.slice(0,m.index+1)+Q+"&"+D.slice(m.index+1):D+(D.indexOf("?")<0?"?":"&")+Q};
xi=function(D,Q){return Q?"&"+D+"="+encodeURIComponent(Q):""};
h7P=function(D){var Q=D.url;D=D.ruv;this.C=Q;this.B=D;this.T=(new Date).getTime()-17040672E5;this.S={};for(var m=/[?&]([^&=]+)=([^&]*)/g;D=m.exec(Q);)this.S[D[1]]=D[2]};
nmw=function(D){D=D.B;if(!D)return"";var Q=xi("uap",D.platform)+xi("uapv",D.platformVersion)+xi("uafv",D.uaFullVersion)+xi("uaa",D.architecture)+xi("uam",D.model)+xi("uab",D.bitness);D.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(m){return encodeURIComponent(m.brand)+";"+encodeURIComponent(m.version)}).join("|")));
D.wow64!=null&&(Q+="&uaw="+Number(D.wow64));return Q.slice(1)};
BSk=function(D,Q,m,P,W){var L=window;var u=u===void 0?!1:u;var t;m?t=(u===void 0?0:u)?"//ep1.adtrafficquality.google/bg/"+kq(m)+".js":"//pagead2.googlesyndication.com/bg/"+kq(m)+".js":t="";u=u===void 0?!1:u;m=L.document;var z={};Q&&(z._scs_=Q);z._bgu_=t;z._bgp_=P;z._li_="v_h.3.0.0.0";W&&(z._upb_=W);(Q=L.GoogleTyFxhY)&&typeof Q.push=="function"||(Q=L.GoogleTyFxhY=[]);Q.push(z);Q=mO(m).createElement("SCRIPT");Q.type="text/javascript";Q.async=!0;D=(u===void 0?0:u)?g.G4(Em6,kq(D)+".js"):g.G4(gmP,kq(D)+
".js");g.yf(Q,D);(L=(L.GoogleTyFxhYEET||{})[Q.src])?L():m.getElementsByTagName("head")[0].appendChild(Q)};
wcn=function(){try{var D,Q;return!!((D=window)==null?0:(Q=D.top)==null?0:Q.location.href)&&!1}catch(m){return!0}};
X3=function(D,Q,m){m=m===void 0?Error():m;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=D;Q+=":";m instanceof Error?(this.message=Q+m.message,this.stack=m.stack||""):(this.message=Q+String(m),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
rf=function(){var D=ke6();D=D===void 0?"bevasrsg":D;return new Promise(function(Q){var m=window===window.top?window:wcn()?window:window.top,P=m[D],W;((W=P)==null?0:W.bevasrs)?Q(new Sf(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),m[D]=P),P.nqfbel.push(function(L){Q(new Sf(L))}))})};
Jr_=function(D){var Q={c:D.z8,e:D.bJ,mc:D.fC,me:D.FW};D.yd&&(Q.co={c:D.yd.VK,a:D.yd.Yn,s:D.yd.wH});return Q};
Gw=function(D){g.v.call(this);this.wpc=D};
Sf=function(D){g.v.call(this);var Q=this;this.IF=D;this.T="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.C=void 0;this.j_=this.IF.p;this.B=this.HW.bind(this);this.addOnDisposeCallback(function(){return void l$$(Q)})};
I$_=function(D){var Q;return g.U(function(m){if(m.C==1){if(!D.IF.wpc)throw new X3(30,"NWA");return D.S?m.return(D.S):g.I(m,D.IF.wpc(),2)}Q=m.S;D.S=new Gw(Q);return m.return(D.S)})};
l$$=function(D){D.C!==void 0&&(D.T.forEach(function(Q){var m;(m=D.C)==null||m.removeEventListener(Q,D.B)}),D.C=void 0)};
R7$=function(D){var Q=Q===void 0?51:Q;var m=[];hu(D,M8,6).forEach(function(P){Bs(P,2)<=Q&&m.push(Bs(P,1))});
return m};
UU7=function(D){var Q=Q===void 0?51:Q;var m=[];hu(D,M8,6).forEach(function(P){Bs(P,2)>Q&&m.push(Bs(P,1))});
return m};
Hmj=function(D){D.then(function(){},function(){})};
cm=function(){g.v.apply(this,arguments);this.C=1};
DE=function(D){return{fieldType:2,fieldName:D}};
g.Qy=function(D){return{fieldType:3,fieldName:D}};
K_P=function(D){this.S=D;D.RE("/client_streamz/bg/frs",g.Qy("mk"))};
jRh=function(D){this.S=D;D.RE("/client_streamz/bg/wrl",g.Qy("mn"),DE("ac"),DE("sc"),g.Qy("rk"),g.Qy("mk"))};
$Ur=function(D){this.S=D;D.hp("/client_streamz/bg/ec",g.Qy("en"),g.Qy("mk"))};
e77=function(D){this.S=D;D.RE("/client_streamz/bg/el",g.Qy("en"),g.Qy("mk"))};
vm4=function(D){this.S=D;D.hp("/client_streamz/bg/cec",DE("ec"),g.Qy("mk"))};
OmP=function(D){this.S=D;D.hp("/client_streamz/bg/po/csc",DE("cs"),g.Qy("mk"))};
Y8P=function(D){this.S=D;D.hp("/client_streamz/bg/po/ctav",g.Qy("av"),g.Qy("mk"))};
a$u=function(D){this.S=D;D.hp("/client_streamz/bg/po/cwsc",g.Qy("su"),g.Qy("mk"))};
Ar7=function(D){this.SJ=Y2(D)};
pc7=function(D,Q){return wbj(D,Q,Mxj)};
mo=function(D){this.SJ=Y2(D)};
PT=function(D){this.SJ=Y2(D)};
WT=function(D){this.SJ=Y2(D)};
iK=function(D){this.SJ=Y2(D)};
L1=function(D){this.SJ=Y2(D)};
uK=function(D){this.SJ=Y2(D)};
xUm=function(D){this.SJ=Y2(D)};
rrh=function(D){var Q=new uK;Q=Ub(Q,1,D.C);var m=Xcr(D);Q=wbj(Q,m,tZr);m=[];for(var P=[],W=g.T(D.S.keys()),L=W.next();!L.done;L=W.next())P.push(L.value.split(","));for(W=0;W<P.length;W++){L=P[W];for(var u=D.B,t=D.lJ(L)||[],z=[],b=0;b<t.length;b++){var q=t[b],C=q&&q.S;q=new PT;switch(u){case 3:C=Number(C);Number.isFinite(C)&&qX(q,1,dI,Tg(C));break;case 2:qX(q,2,dI,u2(Number(C)))}z.push(q)}u=z;for(t=0;t<u.length;t++){z=u[t];b=new WT;z=nB(b,PT,2,z);b=[];q=S8u(D);for(C=0;C<q.length;C++){var f=q[C],V=
L[C],N=new mo;switch(f){case 3:qX(N,1,tb,EN(String(V)));break;case 2:f=Number(V);Number.isFinite(f)&&qX(N,2,tb,b2(f));break;case 1:qX(N,3,tb,de(V==="true"))}b.push(N)}Eb(z,mo,1,b);m.push(z)}}Eb(Q,WT,4,m);return Q};
GeP=function(D){if(!D)return"";if(/^about:(?:blank|srcdoc)$/.test(D))return window.origin||"";D.indexOf("blob:")===0&&(D=D.substring(5));D=D.split("#")[0].split("?")[0];D=D.toLowerCase();D.indexOf("//")==0&&(D=window.location.protocol+D);/^[\w\-]*:\/\//.test(D)||(D=window.location.href);var Q=D.substring(D.indexOf("://")+3),m=Q.indexOf("/");m!=-1&&(Q=Q.substring(0,m));m=D.substring(0,D.indexOf("://"));if(!m)throw Error("URI is missing protocol: "+D);if(m!=="http"&&m!=="https"&&m!=="chrome-extension"&&
m!=="moz-extension"&&m!=="file"&&m!=="android-app"&&m!=="chrome-search"&&m!=="chrome-untrusted"&&m!=="chrome"&&m!=="app"&&m!=="devtools")throw Error("Invalid URI scheme in origin: "+m);D="";var P=Q.indexOf(":");if(P!=-1){var W=Q.substring(P+1);Q=Q.substring(0,P);if(m==="http"&&W!=="80"||m==="https"&&W!=="443")D=":"+W}return m+"://"+Q+D};
Mtk=function(){function D(){W[0]=1732584193;W[1]=4023233417;W[2]=2562383102;W[3]=271733878;W[4]=3285377520;q=b=0}
function Q(C){for(var f=u,V=0;V<64;V+=4)f[V/4]=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3];for(V=16;V<80;V++)C=f[V-3]^f[V-8]^f[V-14]^f[V-16],f[V]=(C<<1|C>>>31)&4294967295;C=W[0];var N=W[1],h=W[2],B=W[3],J=W[4];for(V=0;V<80;V++){if(V<40)if(V<20){var k=B^N&(h^B);var R=1518500249}else k=N^h^B,R=1859775393;else V<60?(k=N&h|B&(N|h),R=2400959708):(k=N^h^B,R=3395469782);k=((C<<5|C>>>27)&4294967295)+k+J+R+f[V]&4294967295;J=B;B=h;h=(N<<30|N>>>2)&4294967295;N=C;C=k}W[0]=W[0]+C&4294967295;W[1]=W[1]+N&4294967295;W[2]=
W[2]+h&4294967295;W[3]=W[3]+B&4294967295;W[4]=W[4]+J&4294967295}
function m(C,f){if(typeof C==="string"){C=unescape(encodeURIComponent(C));for(var V=[],N=0,h=C.length;N<h;++N)V.push(C.charCodeAt(N));C=V}f||(f=C.length);V=0;if(b==0)for(;V+64<f;)Q(C.slice(V,V+64)),V+=64,q+=64;for(;V<f;)if(L[b++]=C[V++],q++,b==64)for(b=0,Q(L);V+64<f;)Q(C.slice(V,V+64)),V+=64,q+=64}
function P(){var C=[],f=q*8;b<56?m(t,56-b):m(t,64-(b-56));for(var V=63;V>=56;V--)L[V]=f&255,f>>>=8;Q(L);for(V=f=0;V<5;V++)for(var N=24;N>=0;N-=8)C[f++]=W[V]>>N&255;return C}
for(var W=[],L=[],u=[],t=[128],z=1;z<64;++z)t[z]=0;var b,q;D();return{reset:D,update:m,digest:P,oP:function(){for(var C=P(),f="",V=0;V<C.length;V++)f+="0123456789ABCDEF".charAt(Math.floor(C[V]/16))+"0123456789ABCDEF".charAt(C[V]%16);return f}}};
Dck=function(D,Q,m){var P=String(g.Mu.location.href);return P&&D&&Q?[Q,crw(GeP(P),D,m||null)].join(" "):null};
crw=function(D,Q,m){var P=[],W=[];if((Array.isArray(m)?2:1)==1)return W=[Q,D],g.S2(P,function(t){W.push(t)}),Qzk(W.join(" "));
var L=[],u=[];g.S2(m,function(t){u.push(t.key);L.push(t.value)});
m=Math.floor((new Date).getTime()/1E3);W=L.length==0?[m,Q,D]:[L.join(":"),m,Q,D];g.S2(P,function(t){W.push(t)});
D=Qzk(W.join(" "));D=[m,D];u.length==0||D.push(u.join(""));return D.join("_")};
Qzk=function(D){var Q=Mtk();Q.update(D);return Q.oP().toLowerCase()};
z8=function(D){this.S=D||{cookie:""}};
bK=function(D){D=(D.S.cookie||"").split(";");for(var Q=[],m=[],P,W,L=0;L<D.length;L++)W=R2(D[L]),P=W.indexOf("="),P==-1?(Q.push(""),m.push(W)):(Q.push(W.substring(0,P)),m.push(W.substring(P+1)));return{keys:Q,values:m}};
mc7=function(){var D=g.Mu.__SAPISID||g.Mu.__APISID||g.Mu.__3PSAPISID||g.Mu.__1PSAPISID||g.Mu.__OVERRIDE_SID;if(D)return!0;typeof document!=="undefined"&&(D=new z8(document),D=D.get("SAPISID")||D.get("APISID")||D.get("__Secure-3PAPISID")||D.get("__Secure-1PAPISID"));return!!D};
PY$=function(D,Q,m,P){(D=g.Mu[D])||typeof document==="undefined"||(D=(new z8(document)).get(Q));return D?Dck(D,m,P):null};
WK_=function(D){var Q=GeP(g.Mu==null?void 0:g.Mu.location.href),m=[];if(mc7()){Q=Q.indexOf("https:")==0||Q.indexOf("chrome-extension:")==0||Q.indexOf("chrome-untrusted://new-tab-page")==0||Q.indexOf("moz-extension:")==0;var P=Q?g.Mu.__SAPISID:g.Mu.__APISID;P||typeof document==="undefined"||(P=new z8(document),P=P.get(Q?"SAPISID":"APISID")||P.get("__Secure-3PAPISID"));(P=P?Dck(P,Q?"SAPISIDHASH":"APISIDHASH",D):null)&&m.push(P);Q&&((Q=PY$("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",D))&&m.push(Q),
(D=PY$("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",D))&&m.push(D))}return m.length==0?null:m.join(" ")};
q3=function(){};
C1=function(D){this.SJ=Y2(D)};
o3=function(D,Q){this.intervalMs=D;this.callback=Q;this.enabled=!1;this.S=function(){return g.bv()};
this.C=this.S()};
f1=function(D){this.SJ=Y2(D)};
Vy=function(D){this.SJ=Y2(D)};
N3=function(D){this.SJ=Y2(D)};
yy=function(D){this.SJ=Y2(D)};
ZE=function(D){this.SJ=Y2(D)};
iGm=function(D){Eb(FH,yy,1,D)};
T8=function(D){this.SJ=Y2(D)};
LK$=function(D,Q){Q=Q===void 0?szj:Q;if(!n1){var m;D=(m=D.navigator)==null?void 0:m.userAgentData;if(!D||typeof D.getHighEntropyValues!=="function"||D.brands&&typeof D.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));iGm((D.brands||[]).map(function(W){var L=new yy;L=Ub(L,1,W.brand);return Ub(L,2,W.version)}));
typeof D.mobile==="boolean"&&DF(FH,2,de(D.mobile));n1=D.getHighEntropyValues(Q)}var P=new Set(Q);return n1.then(function(W){var L=FH.clone();P.has("platform")&&Ub(L,3,W.platform);P.has("platformVersion")&&Ub(L,4,W.platformVersion);P.has("architecture")&&Ub(L,5,W.architecture);P.has("model")&&Ub(L,6,W.model);P.has("uaFullVersion")&&Ub(L,7,W.uaFullVersion);return L.R_()}).catch(function(){return FH.R_()})};
Eu=function(D){this.SJ=Y2(D)};
uA9=function(D){return KB(D,1,1)};
dc9=function(D){this.SJ=Y2(D)};
gI=function(D){this.SJ=Y2(D,4)};
BT=function(D){this.SJ=Y2(D,36)};
wI=function(D){this.SJ=Y2(D,19)};
Jb=function(D,Q){this.iO=Q=Q===void 0?!1:Q;this.uach=this.locale=null;this.C=0;this.isFinal=!1;this.S=new wI;Number.isInteger(D)&&this.S.fT(D);Q||(this.locale=document.documentElement.getAttribute("lang"));ks(this,new Eu)};
ks=function(D,Q){nB(D.S,Eu,1,Q);Ju(Q,1)||uA9(Q);D.iO||(Q=lK(D),kp(Q,5)||Ub(Q,5,D.locale));D.uach&&(Q=lK(D),TE(Q,ZE,9)||nB(Q,ZE,9,D.uach))};
tOh=function(D,Q){D.C=Q};
bGn=function(D){var Q=Q===void 0?szj:Q;var m=D.iO?void 0:tt();m?LK$(m,Q).then(function(P){D.uach=z_9(P!=null?P:"[]");P=lK(D);nB(P,ZE,9,D.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
lK=function(D){var Q=TE(D.S,Eu,1);Q||(Q=new Eu,ks(D,Q));D=Q;Q=TE(D,T8,11);Q||(Q=new T8,nB(D,T8,11,Q));return Q};
g.I3=function(D,Q,m,P){this.B=D;this.J=Q;this.S=this.T=D;this.N=m||0;this.U=P||2};
g.R3=function(D){D.S=Math.min(D.J,D.S*D.U);D.T=Math.min(D.J,D.S+(D.N?Math.round(D.N*(Math.random()-.5)*2*D.S):0));D.C++};
Ge=function(D){this.SJ=Y2(D,8)};
N9n=function(D){this.SJ=Y2(D)};
K1=function(D){g.v.call(this);var Q=this;this.componentId="";this.S=[];this.x9="";this.pageId=null;this.k9=this.QF=-1;this.U=this.experimentIds=null;this.N=this.B=0;this.j=null;this.Iy=this.Kh=0;this.Y9=1;this.timeoutMillis=0;this.t0=!1;this.logSource=D.logSource;this.xr=D.xr||function(){};
this.T=new Jb(D.logSource,D.iO);this.network=D.network||null;this.sG=D.sG||null;this.Z=D.DJW||null;this.sessionIndex=D.sessionIndex||null;this.pu=D.pu||!1;this.logger=null;this.withCredentials=!D.D9;this.iO=D.iO||!1;this.TO=!this.iO&&!!tt()&&!!tt().navigator&&tt().navigator.sendBeacon!==void 0;this.u0=typeof URLSearchParams!=="undefined"&&!!(new URL(Uu())).searchParams&&!!(new URL(Uu())).searchParams.set;var m=uA9(new Eu);ks(this.T,m);this.J=new g.I3(1E4,3E5,.1);D=q3h(this,D.S4);this.C=new o3(this.J.getValue(),
D);this.wc=new o3(6E5,D);this.pu||this.wc.start();this.iO||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){HT(Q);var P;(P=Q.j)==null||P.flush()}}),document.addEventListener("pagehide",function(){HT(Q);
var P;(P=Q.j)==null||P.flush()}))};
q3h=function(D,Q){return D.u0?Q?function(){Q().then(function(){D.flush()})}:function(){D.flush()}:function(){}};
CY4=function(D){D.Z||(D.Z=Uu());try{return(new URL(D.Z)).toString()}catch(Q){return(new URL(D.Z,tt().location.origin)).toString()}};
jT=function(D,Q,m){D.j&&D.j.Gi(Q,m)};
oNu=function(D,Q,m){m=m===void 0?null:m;var P=P===void 0?D.withCredentials:P;var W={},L=new URL(CY4(D));m&&(W.Authorization=m);D.sessionIndex&&(W["X-Goog-AuthUser"]=D.sessionIndex,L.searchParams.set("authuser",D.sessionIndex));D.pageId&&(Object.defineProperty(W,"X-Goog-PageId",{value:D.pageId}),L.searchParams.set("pageId",D.pageId));return{url:L.toString(),body:Q,tK:1,requestHeaders:W,requestType:"POST",withCredentials:P,timeoutMillis:D.timeoutMillis}};
HT=function(D){D.T.isFinal=!0;D.flush();D.T.isFinal=!1};
VO7=function(D){fb_(D,function(Q,m){Q=new URL(Q);Q.searchParams.set("format","json");var P=!1;try{P=tt().navigator.sendBeacon(Q.toString(),m.R_())}catch(W){}P||(D.TO=!1);return P})};
fb_=function(D,Q){if(D.S.length!==0){var m=new URL(CY4(D));m.searchParams.delete("format");var P=D.xr();P&&m.searchParams.set("auth",P);m.searchParams.set("authuser",D.sessionIndex||"0");for(P=0;P<10&&D.S.length;++P){var W=D.S.slice(0,32),L=D.T.build(W,D.B,D.N,D.sG,D.Kh,D.Iy);if(!Q(m.toString(),L)){++D.N;break}D.B=0;D.N=0;D.Kh=0;D.Iy=0;D.S=D.S.slice(W.length)}D.C.enabled&&D.C.stop()}};
Uu=function(){return"https://play.google.com/log?format=json&hasfast=true"};
$s=function(){this.YA=typeof AbortController!=="undefined"};
eT=function(D,Q){Q=Q===void 0?"0":Q;g.v.call(this);this.logSource=D;this.sessionIndex=Q;this.BZ="https://play.google.com/log?format=json&hasfast=true";this.C=null;this.B=!1;this.network=null;this.componentId="";this.S=this.sG=null;this.T=!1;this.pageId=null};
Nz7=function(D,Q){D.C=Q;return D};
yo9=function(D,Q){D.network=Q;return D};
ZGh=function(D,Q){D.S=Q};
FKn=function(D){D.T=!0;return D};
vT=function(D,Q,m,P,W,L,u){D=D===void 0?-1:D;Q=Q===void 0?"":Q;m=m===void 0?"":m;P=P===void 0?!1:P;W=W===void 0?"":W;g.v.call(this);this.logSource=D;this.componentId=Q;L?Q=L:(D=new eT(D,"0"),D.componentId=Q,g.O(this,D),m!==""&&(D.BZ=m),P&&(D.B=!0),W&&Nz7(D,W),u&&yo9(D,u),Q=D.build());this.S=Q};
Tz7=function(D){this.S=D};
Ou=function(D,Q,m){this.C=D;this.B=Q;this.fields=m||[];this.S=new Map};
S8u=function(D){return D.fields.map(function(Q){return Q.fieldType})};
Xcr=function(D){return D.fields.map(function(Q){return Q.fieldName})};
Ys=function(D,Q){Ou.call(this,D,3,Q)};
a3=function(D,Q){Ou.call(this,D,2,Q)};
g.Ab=function(D,Q){this.type=D;this.currentTarget=this.target=Q;this.defaultPrevented=this.C=!1};
p1=function(D,Q){g.Ab.call(this,D?D.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;D&&this.init(D,Q)};
xs=function(D){return!(!D||!D[h_6])};
EN6=function(D,Q,m,P,W){this.listener=D;this.proxy=null;this.src=Q;this.type=m;this.capture=!!P;this.handler=W;this.key=++nNP;this.removed=this.SN=!1};
XH=function(D){D.removed=!0;D.listener=null;D.proxy=null;D.src=null;D.handler=null};
ST=function(D){this.src=D;this.listeners={};this.S=0};
g.rI=function(D,Q){var m=Q.type;m in D.listeners&&g.hM(D.listeners[m],Q)&&(XH(Q),D.listeners[m].length==0&&(delete D.listeners[m],D.S--))};
G8=function(D,Q,m,P){for(var W=0;W<D.length;++W){var L=D[W];if(!L.removed&&L.listener==Q&&L.capture==!!m&&L.handler==P)return W}return-1};
g.cT=function(D,Q,m,P,W){if(P&&P.once)return M3(D,Q,m,P,W);if(Array.isArray(Q)){for(var L=0;L<Q.length;L++)g.cT(D,Q[L],m,P,W);return null}m=DV(m);return xs(D)?D.listen(Q,m,g.iv(P)?!!P.capture:!!P,W):gN7(D,Q,m,!1,P,W)};
gN7=function(D,Q,m,P,W,L){if(!Q)throw Error("Invalid event type");var u=g.iv(W)?!!W.capture:!!W,t=QV(D);t||(D[mH]=t=new ST(D));m=t.add(Q,m,P,u,L);if(m.proxy)return m;P=Bz4();m.proxy=P;P.src=D;P.listener=m;if(D.addEventListener)w9m||(W=u),W===void 0&&(W=!1),D.addEventListener(Q.toString(),P,W);else if(D.attachEvent)D.attachEvent(k2_(Q.toString()),P);else if(D.addListener&&D.removeListener)D.addListener(P);else throw Error("addEventListener and attachEvent are unavailable.");Jok++;return m};
Bz4=function(){function D(m){return Q.call(D.src,D.listener,m)}
var Q=lbj;return D};
M3=function(D,Q,m,P,W){if(Array.isArray(Q)){for(var L=0;L<Q.length;L++)M3(D,Q[L],m,P,W);return null}m=DV(m);return xs(D)?D.Hh(Q,m,g.iv(P)?!!P.capture:!!P,W):gN7(D,Q,m,!0,P,W)};
Ib9=function(D,Q,m,P,W){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)Ib9(D,Q[L],m,P,W);else P=g.iv(P)?!!P.capture:!!P,m=DV(m),xs(D)?D.qY(Q,m,P,W):D&&(D=QV(D))&&(Q=D.ej(Q,m,P,W))&&PN(Q)};
PN=function(D){if(typeof D!=="number"&&D&&!D.removed){var Q=D.src;if(xs(Q))g.rI(Q.bG,D);else{var m=D.type,P=D.proxy;Q.removeEventListener?Q.removeEventListener(m,P,D.capture):Q.detachEvent?Q.detachEvent(k2_(m),P):Q.addListener&&Q.removeListener&&Q.removeListener(P);Jok--;(m=QV(Q))?(g.rI(m,D),m.S==0&&(m.src=null,Q[mH]=null)):XH(D)}}};
k2_=function(D){return D in WN?WN[D]:WN[D]="on"+D};
lbj=function(D,Q){if(D.removed)D=!0;else{Q=new p1(Q,this);var m=D.listener,P=D.handler||D.src;D.SN&&PN(D);D=m.call(P,Q)}return D};
QV=function(D){D=D[mH];return D instanceof ST?D:null};
DV=function(D){if(typeof D==="function")return D;D[dW]||(D[dW]=function(Q){return D.handleEvent(Q)});
return D[dW]};
g.zt=function(){g.v.call(this);this.bG=new ST(this);this.Mn=this;this.il=null};
bQ=function(D,Q,m,P){Q=D.bG.listeners[String(Q)];if(!Q)return!0;Q=Q.concat();for(var W=!0,L=0;L<Q.length;++L){var u=Q[L];if(u&&!u.removed&&u.capture==m){var t=u.listener,z=u.handler||u.src;u.SN&&g.rI(D.bG,u);W=t.call(z,P)!==!1&&W}}return W&&!P.defaultPrevented};
qK=function(D,Q){this.T=D;this.B=Q;this.C=0;this.S=null};
R_r=function(D,Q){D.B(Q);D.C<100&&(D.C++,Q.next=D.S,D.S=Q)};
fo=function(D){D=Co(D);os||(os=Uc4());os(D)};
Uc4=function(){if(typeof MessageChannel!=="undefined"){var D=new MessageChannel,Q={},m=Q;D.port1.onmessage=function(){if(Q.next!==void 0){Q=Q.next;var P=Q.Rq;Q.Rq=null;P()}};
return function(P){m.next={Rq:P};m=m.next;D.port2.postMessage(0)}}return function(P){g.Mu.setTimeout(P,0)}};
VV=function(){this.C=this.S=null};
NK=function(){this.next=this.scope=this.S=null};
g.Fd=function(D,Q){yV||HG9();ZV||(yV(),ZV=!0);KK9.add(D,Q)};
HG9=function(){var D=Promise.resolve(void 0);yV=function(){D.then(jzh)}};
jzh=function(){for(var D;D=KK9.remove();){try{D.S.call(D.scope)}catch(Q){hi(Q)}R_r($c6,D)}ZV=!1};
g.BN=function(D){this.S=0;this.U=void 0;this.B=this.C=this.T=null;this.J=this.N=!1;if(D!=g.lX)try{var Q=this;D.call(void 0,function(m){Tt(Q,2,m)},function(m){Tt(Q,3,m)})}catch(m){Tt(this,3,m)}};
e__=function(){this.next=this.context=this.C=this.T=this.S=null;this.B=!1};
wW=function(D,Q,m){var P=vN9.get();P.T=D;P.C=Q;P.context=m;return P};
g.k7=function(D){if(D instanceof g.BN)return D;var Q=new g.BN(g.lX);Tt(Q,2,D);return Q};
J9=function(D){return new g.BN(function(Q,m){m(D)})};
g.Y3n=function(D,Q,m){OG6(D,Q,m,null)||g.Fd(g.zT(Q,D))};
abj=function(D){return new g.BN(function(Q,m){D.length||Q(void 0);for(var P,W=0;W<D.length;W++)P=D[W],g.Y3n(P,Q,m)})};
Ao9=function(D,Q,m,P){lQ(D,wW(Q||g.lX,m||null,P))};
g.Is=function(D,Q){Q=Co(Q);Q=wW(Q,Q);Q.B=!0;lQ(D,Q);return D};
p96=function(D,Q){if(D.S==0)if(D.T){var m=D.T;if(m.C){for(var P=0,W=null,L=null,u=m.C;u&&(u.B||(P++,u.S==D&&(W=u),!(W&&P>1)));u=u.next)W||(L=u);W&&(m.S==0&&P==1?p96(m,Q):(L?(P=L,P.next==m.B&&(m.B=P),P.next=P.next.next):xc7(m),X9$(m,W,3,Q)))}D.T=null}else Tt(D,3,Q)};
lQ=function(D,Q){D.C||D.S!=2&&D.S!=3||S3k(D);D.B?D.B.next=Q:D.C=Q;D.B=Q};
ro7=function(D,Q,m,P){var W=wW(null,null,null);W.S=new g.BN(function(L,u){W.T=Q?function(t){try{var z=Q.call(P,t);L(z)}catch(b){u(b)}}:L;
W.C=m?function(t){try{var z=m.call(P,t);z===void 0&&t instanceof Rs?u(t):L(z)}catch(b){u(b)}}:u});
W.S.T=D;lQ(D,W);return W.S};
Tt=function(D,Q,m){D.S==0&&(D===m&&(Q=3,m=new TypeError("Promise cannot resolve to itself")),D.S=1,OG6(m,D.yND,D.jlh,D)||(D.U=m,D.S=Q,D.T=null,S3k(D),Q!=3||m instanceof Rs||G2k(D,m)))};
OG6=function(D,Q,m,P){if(D instanceof g.BN)return Ao9(D,Q,m,P),!0;if(D)try{var W=!!D.$goog_Thenable}catch(u){W=!1}else W=!1;if(W)return D.then(Q,m,P),!0;if(g.iv(D))try{var L=D.then;if(typeof L==="function")return MOu(D,L,Q,m,P),!0}catch(u){return m.call(P,u),!0}return!1};
MOu=function(D,Q,m,P,W){function L(z){t||(t=!0,P.call(W,z))}
function u(z){t||(t=!0,m.call(W,z))}
var t=!1;try{Q.call(D,u,L)}catch(z){L(z)}};
S3k=function(D){D.N||(D.N=!0,g.Fd(D.x7,D))};
xc7=function(D){var Q=null;D.C&&(Q=D.C,D.C=Q.next,Q.next=null);D.C||(D.B=null);return Q};
X9$=function(D,Q,m,P){if(m==3&&Q.C&&!Q.B)for(;D&&D.J;D=D.T)D.J=!1;if(Q.S)Q.S.T=null,coh(Q,m,P);else try{Q.B?Q.T.call(Q.context):coh(Q,m,P)}catch(W){Ddj.call(null,W)}R_r(vN9,Q)};
coh=function(D,Q,m){Q==2?D.T.call(D.context,m):D.C&&D.C.call(D.context,m)};
G2k=function(D,Q){D.J=!0;g.Fd(function(){D.J&&Ddj.call(null,Q)})};
Rs=function(D){o4.call(this,D)};
g.Ur=function(D,Q){g.zt.call(this);this.S6=D||1;this.eQ=Q||g.Mu;this.Iq=(0,g.d$)(this.idh,this);this.IN=g.bv()};
g.HN=function(D,Q,m){if(typeof D==="function")m&&(D=(0,g.d$)(D,m));else if(D&&typeof D.handleEvent=="function")D=(0,g.d$)(D.handleEvent,D);else throw Error("Invalid listener argument");return Number(Q)>2147483647?-1:g.Mu.setTimeout(D,Q||0)};
Ko=function(D,Q){var m=null;return(new g.BN(function(P,W){m=g.HN(function(){P(Q)},D);
m==-1&&W(Error("Failed to schedule timer."))})).Fn(function(P){g.Mu.clearTimeout(m);
throw P;})};
g.j6=function(D){g.v.call(this);this.U=D;this.B=0;this.T=100;this.J=!1;this.C=new Map;this.N=new Set;this.flushInterval=3E4;this.S=new g.Ur(this.flushInterval);this.S.listen("tick",this.zN,!1,this);g.O(this,this.S)};
QM$=function(D){D.S.enabled||D.S.start();D.B++;D.B>=D.T&&D.zN()};
md_=function(D,Q){return D.N.has(Q)?void 0:D.C.get(Q)};
Pkn=function(D){for(var Q=0;Q<D.length;Q++)D[Q].clear()};
WG4=function(D){switch(D){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}};
iOk=function(D){switch(D){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""}};
$7=function(D,Q,m){m=m===void 0?{}:m;Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=D;this.metadata=m;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.e6=function(D){return(new sMP).R_(D)};
sMP=function(){};
vN=function(D,Q,m){if(Q==null)m.push("null");else{if(typeof Q=="object"){if(Array.isArray(Q)){var P=Q;Q=P.length;m.push("[");for(var W="",L=0;L<Q;L++)m.push(W),vN(D,P[L],m),W=",";m.push("]");return}if(Q instanceof String||Q instanceof Number||Q instanceof Boolean)Q=Q.valueOf();else{m.push("{");W="";for(P in Q)Object.prototype.hasOwnProperty.call(Q,P)&&(L=Q[P],typeof L!="function"&&(m.push(W),LGk(P,m),m.push(":"),vN(D,L,m),W=","));m.push("}");return}}switch(typeof Q){case "string":LGk(Q,m);break;case "number":m.push(isFinite(Q)&&
!isNaN(Q)?String(Q):"null");break;case "boolean":m.push(String(Q));break;case "function":m.push("null");break;default:throw Error("Unknown type: "+typeof Q);}}};
LGk=function(D,Q){Q.push('"',D.replace(uQw,function(m){var P=ddj[m];P||(P="\\u"+(m.charCodeAt(0)|65536).toString(16).slice(1),ddj[m]=P);return P}),'"')};
tNm=function(D){switch(D){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"}};
z5P=function(){};
Or=function(){};
g.Y7=function(D){g.zt.call(this);this.headers=new Map;this.t0=D||null;this.T=!1;this.S=null;this.Z="";this.C=0;this.B="";this.J=this.Kh=this.j=this.Iy=!1;this.TO=0;this.N=null;this.QF="";this.U=!1};
qw9=function(D,Q,m,P,W,L,u){var t=new g.Y7;bOn.push(t);Q&&t.listen("complete",Q);t.Hh("ready",t.wd);L&&(t.TO=Math.max(0,L));u&&(t.U=u);t.send(D,m,P,W)};
oc$=function(D,Q){D.T=!1;D.S&&(D.J=!0,D.S.abort(),D.J=!1);D.B=Q;D.C=5;Ck6(D);as(D)};
Ck6=function(D){D.Iy||(D.Iy=!0,D.dispatchEvent("complete"),D.dispatchEvent("error"))};
fp4=function(D){if(D.T&&typeof A9!="undefined")if(D.j&&g.po(D)==4)setTimeout(D.zg.bind(D),0);else if(D.dispatchEvent("readystatechange"),D.isComplete()){D.getStatus();D.T=!1;try{if(x7(D))D.dispatchEvent("complete"),D.dispatchEvent("success");else{D.C=6;try{var Q=g.po(D)>2?D.S.statusText:""}catch(m){Q=""}D.B=Q+" ["+D.getStatus()+"]";Ck6(D)}}finally{as(D)}}};
as=function(D,Q){if(D.S){D.N&&(clearTimeout(D.N),D.N=null);var m=D.S;D.S=null;Q||D.dispatchEvent("ready");try{m.onreadystatechange=null}catch(P){}}};
x7=function(D){var Q=D.getStatus();a:switch(Q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var m=!0;break a;default:m=!1}if(!m){if(Q=Q===0)D=g.LG(String(D.Z))[1]||null,!D&&g.Mu.self&&g.Mu.self.location&&(D=g.Mu.self.location.protocol.slice(0,-1)),Q=!VNh.test(D?D.toLowerCase():"");m=Q}return m};
g.po=function(D){return D.S?D.S.readyState:0};
g.Xd=function(D){try{return D.S?D.S.responseText:""}catch(Q){return""}};
g.S6=function(D){try{if(!D.S)return null;if("response"in D.S)return D.S.response;switch(D.QF){case "":case "text":return D.S.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in D.S)return D.S.mozResponseArrayBuffer}return null}catch(Q){return null}};
g.N0j=function(D){var Q={};D=(D.S&&g.po(D)>=2?D.S.getAllResponseHeaders()||"":"").split("\r\n");for(var m=0;m<D.length;m++)if(!g.J6(D[m])){var P=fNP(D[m]),W=P[0];P=P[1];if(typeof P==="string"){P=P.trim();var L=Q[W]||[];Q[W]=L;L.push(P)}}return Dz(Q,function(u){return u.join(", ")})};
g.rW=function(D,Q){return D.S?D.S.getResponseHeader(Q):null};
Gt=function(){};
cN=function(D,Q){this.logger=D;this.event=Q;this.startTime=MK()};
Da=function(){cm.apply(this,arguments);this.It={AA:function(){return[]}}};
Q1=function(D,Q,m){var P=MK();Q=Q();D.KD(m,MK()-P);return Q};
m2=function(){Da.apply(this,arguments)};
P$=function(D){Da.call(this);var Q=this;this.logger=D;this.It={g$c:function(){return Q.logger},
AA:function(){return Q.logger.It.AA()}};
this.addOnDisposeCallback(function(){return void Q.logger.dispose()})};
y0w=function(D,Q,m,P){D=FKn(yo9(Nz7(new eT(1828,"0"),D),new Gt));Q.length&&ZGh(D,pc7(new Ar7,Q));P!==void 0&&(D.BZ=P);D.D9();var W=new vT(1828,"","",!1,"",D.build());g.O(W,D);var L=new g.j6({flush:function(u){try{W.flush(u)}catch(t){m(t)}}});
L.addOnDisposeCallback(function(){setTimeout(function(){try{L.zN()}finally{W.dispose()}})});
L.T=1E5;L.flushInterval=3E4;L.S.setInterval(3E4);return L};
ZOk=function(D,Q){g.v.call(this);var m=this;this.callback=D;this.C=Q;this.S=-Q;this.addOnDisposeCallback(function(){return void clearTimeout(m.timer)})};
FG6=function(D){if(D.timer===void 0){var Q=Math.max(0,D.S+D.C-MK());D.timer=setTimeout(function(){try{D.callback()}finally{D.S=MK(),D.timer=void 0}},Q)}};
W$=function(D,Q){Da.call(this);this.metrics=D;this.TM=Q};
s7=function(D,Q){Q=Q===void 0?[]:Q;var m={TM:D.TM||"_",Pl:D.Pl||[],v8:D.v8|0,BZ:D.BZ,MG:D.MG||function(){},
Gs:D.Gs||function(L,u){return y0w(L,u,m.MG,m.BZ)}},P=m.Gs("51",m.Pl.concat(Q));
W$.call(this,{Hd0:new K_P(P),errorCount:new vm4(P),eventCount:new $Ur(P),w$:new e77(P),vPF:new jRh(P),V1D:new OmP(P),Q_:new Y8P(P),e$0:new a$u(P)},m.TM);var W=this;this.It={AA:function(){return W.options.Pl.concat(W.B).sort(function(L,u){return L-u})}};
this.options=m;this.service=P;this.T=!D.Gs;this.S=new ZOk(function(){return void W.service.zN()},m.v8);
this.addOnDisposeCallback(function(){W.S.dispose();W.T&&W.service.dispose()});
g.pV(this.B=Q.slice())};
MK=function(){var D,Q,m;return(m=(D=globalThis.performance)==null?void 0:(Q=D.now)==null?void 0:Q.call(D))!=null?m:Date.now()};
LC=function(D){this.SJ=Y2(D)};
uf=function(D){this.SJ=Y2(D)};
dm=function(D){this.SJ=Y2(D,0,dm.messageId)};
M8=function(D){this.SJ=Y2(D)};
tU=function(D){this.SJ=Y2(D)};
g.zz=function(){var D=this;this.promise=new Promise(function(Q,m){D.resolve=Q;D.reject=m})};
T0$=function(D,Q){if(D.disable)return new m2;Q=Q?R7$(Q):[];D={TM:D.TM,Pl:D.Uo,v8:D.v99,BZ:D.BZ,MG:D.MG,Gs:D.Gs};Q=Q===void 0?[]:Q;return new s7(D,Q)};
bf=function(D){function Q(N,h,B,J){Promise.resolve().then(function(){z.done();t.tE();t.dispose();u.resolve({B2:N,tbq:h,psc:B,CM0:J})})}
function m(N,h,B,J){if(!P.logger.VF()){var k="k";h?k="h":B&&(k="u");k!=="k"?J!==0&&(P.logger.QN(k),P.logger.KD(k,N)):P.C<=0?(P.logger.QN(k),P.logger.KD(k,N),P.C=Math.floor(Math.random()*200)):P.C--}}
g.v.call(this);var P=this;this.C=Math.floor(Math.random()*200);this.S=new tU;if("challenge"in D&&h5m(D.challenge)){var W=kp(D.challenge,4,void 0,pk);var L=kp(D.challenge,5,void 0,pk);kp(D.challenge,7,void 0,pk)&&(this.S=ncm(kp(D.challenge,7,void 0,pk)))}else W=D.program,L=D.globalName;this.addOnDisposeCallback(function(){var N,h,B;return g.U(function(J){if(J.C==1)return g.I(J,P.T,2);N=J.S;h=N.tbq;(B=h)==null||B();g.T7(J)})});
this.logger=T0$(D.l9||{},this.S);g.O(this,this.logger);var u=new g.zz;this.T=u.promise;this.logger.QN("t");var t=this.logger.share(),z=new cN(t,"t");if(!g.Mu[L])throw this.logger.LF(25),Error("EGOU");if(!g.Mu[L].a)throw this.logger.LF(26),Error("ELIU");try{var b=g.Mu[L].a;L=[];for(var q=[],C=R7$(this.S),f=0;f<C.length;f++)L.push(C[f]),q.push(1);var V=UU7(this.S);for(C=0;C<V.length;C++)L.push(V[C]),q.push(2);this.B=g.T(b(W,Q,!0,D.vt,m,[L,q],kp(this.S,5))).next().value;this.j_=u.promise.then(function(){})}catch(N){throw this.logger.LF(28),
N;
}};
Ecr=function(D){if(!D)return null;D=It(D,4);return D===null||D===void 0?null:cK(D)};
qf=function(){this.C={};this.S=null};
CC=function(){qf.instance||(qf.instance=new qf);return qf.instance};
B0m=function(D,Q){return gc9(D,TE(Q,LC,1,pk),TE(Q,uf,2,pk),kp(Q,3,void 0,pk))};
gc9=function(D,Q,m,P){if(!Q&&!m)return Promise.resolve();if(!P)return w3u(Q,m);var W;(W=D.C)[P]||(W[P]=new Promise(function(L,u){w3u(Q,m).then(function(){D.S=P;L()},function(t){delete D.C[P];
u(t)})}));
return D.C[P]};
w3u=function(D,Q){return Q?k94(Q):D?J0n(D):Promise.resolve()};
k94=function(D){return new Promise(function(Q,m){var P=g.qi("SCRIPT"),W=Ecr(D);g.yf(P,W);P.onload=function(){g.Ni(P);Q()};
P.onerror=function(){g.Ni(P);m(Error("EWLS"))};
(g.Wu("HEAD")[0]||document.documentElement).appendChild(P)})};
J0n=function(D){return new Promise(function(Q){var m=g.qi("SCRIPT");if(D){var P=It(D,6);P=P===null||P===void 0?null:Q47(P)}else P=null;m.textContent=Vf(P);Nt(m);(g.Wu("HEAD")[0]||document.documentElement).appendChild(m);g.Ni(m);Q()})};
oX=function(D){this.SJ=Y2(D)};
lpP=function(D,Q){return Hs(D,1,Q)};
Ipn=function(D,Q){return Hs(D,2,Q)};
R5m=function(D,Q){return Hs(D,3,Q)};
fC=function(D){this.SJ=Y2(D)};
V1=function(D,Q,m){this.client=D;this.AX=Q;this.S=m};
HO7=function(D,Q,m,P,W){var L,u,t,z,b;return g.U(function(q){if(q.C==1)return L=R5m(Ipn(lpP(new oX,D.AX),Q),m),u=D.S(),g.I(q,P.JM("c",D.AX,W,D.client.create(L,u)),2);t=q.S;z=Rr(LB(t,2));if(z.length)return q.return(Q1(P,function(){for(var C=new Uint8Array(z.length),f=0;f<z.length;f++)C[f]=z[f]+97;if(g.Mu.TextDecoder)C=(new TextDecoder).decode(C);else if(C.length<=8192)C=String.fromCharCode.apply(null,C);else{f="";for(var V=0;V<C.length;V+=8192)f+=String.fromCharCode.apply(null,Array.prototype.slice.call(C,
V,V+8192));C=f}return Udn(C)},"U"));
b=TE(t,dm,1);if(!b)throw Error("Missing field");return q.return(b)})};
$dP=function(D,Q,m,P){var W,L;return g.U(function(u){W=D.S();var t=new fC;t=Hs(t,1,D.AX);L=Hs(t,2,Q);t=u.return;var z=m.JM,b=D.AX,q=D.client;var C=q.S;q=q.C+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var f=L,V=W||{},N=KG9,h=void 0;h=h===void 0?{}:h;C=jMw(C,q,f,V,N,h);return t.call(u,z.call(m,"g",b,P,C))})};
e5n=function(D,Q,m,P,W){return D instanceof V1?HO7(D,P,W,Q,m):HO7(D,P,W,new m2,0)};
Nf=function(D){g.v.call(this);var Q=this;this.options=D;this.N=new g.zz;this.j_=this.N.promise;this.J=new g.zz;this.Z=1;this.T=new g.zz;this.B=[];this.Sr=D.Sr||function(){};
this.logger=new P$(T0$(D.l9||{}));vcj(this,D.O_,D.df9,D.ozz,D.bqD,Object.assign({},OO9,D.Vc||{}));this.addOnDisposeCallback(function(){return void Ywu(Q)})};
ap6=function(D){var Q;return g.U(function(m){if(D.VF())throw Error("Already disposed");(Q=D.S)!=null&&(Q.endTimeMs=0,Q.IC(1));return g.I(m,D.T.promise,0)})};
Ywu=function(D){D.U=Error("Cancelled by dispose");D.J.resolve();Hmj(D.N.promise);D.N.reject(Error("Cancelled by dispose"));D.logger.dispose();Promise.all(D.B).then(function(){var m;return g.U(function(P){(m=D.C)==null||m.dispose();D.C=void 0;g.T7(P)})});
D.B=[];var Q;(Q=D.S)!=null&&(Q.endTimeMs=0,Q.IC(1));Hmj(D.T.promise);D.T.reject(Error("Cancelled by dispose"))};
A0m=function(D,Q){var m=D.Sr;D.Sr=function(){m();Q()}};
p3r=function(D,Q){D.VF()||(D.C=Q,D.logger.update(Q.e7()),D.J.resolve(),D.N.resolve(void 0),D.Sr())};
xdw=function(D,Q){Q&&(Promise.all(D.B).then(function(){return void Q.dispose()}),D.B=[])};
y1=function(D,Q){D.Z=Q;var m,P;(P=(m=D.options).WBF)==null||P.call(m,Q)};
X3j=function(D){D.VF()||(D.T.resolve(),D.T=new g.zz)};
vcj=function(D,Q,m,P,W,L){P=P===void 0?CC():P;W=W===void 0?Promise.resolve(void 0):W;var u,t,z,b,q,C,f,V,N,h,B,J;g.U(function(k){switch(k.C){case 1:return g.I(k,0,3);case 3:t=null;if(!u){k.Nv(6);break}y1(D,7);g.h4(k,7);return g.I(k,Za(u.snapshot({}),L.LK,function(){return Promise.resolve("E:CTO")}),9);
case 9:t=k.S;g.g7(k,6);break;case 7:g.w7(k),t="E:UCE";case 6:z=void 0,b=u?L.Oo:L.Js,q=new g.I3(b,L.eW,L.VQ,L.Hw),C=1;case 10:if(!(C<=L.maxAttempts)){k.Nv(12);break}if(C===1){k.Nv(13);break}y1(D,0);D.S=new Sww(q.getValue(),L.Wa,L.pS);return g.I(k,D.S.promise,14);case 14:f=k.S,D.S=void 0,f===1?(C=1,q.reset()):g.R3(q);case 13:g.h4(k,15);V=void 0;if(m){V=m;k.Nv(17);break}y1(D,5);N=P.S;return g.I(k,Za(e5n(Q,D.logger,C,N,t),L.LR,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:V=k.S;case 17:return y1(D,3),g.I(k,Za(B0m(P,V),L.yU,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return y1(D,8),g.I(k,W,20);case 20:return h=new bf({challenge:V,l9:D.options.l9,vt:D.options.vt}),g.I(k,Za(h.j_,L.naF,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:z=h;k.Nv(12);break;case 15:B=g.w7(k),D.handleError(B),X3j(D);case 11:C++;k.Nv(10);break;case 12:if(D.VF()){k.Nv(5);break}z&&(m=void 0,xdw(D,u),u=z,p3r(D,z),X3j(D));y1(D,2);D.S=new Sww(L.OOh,L.Wa,L.pS);return g.I(k,D.S.promise,22);case 22:D.S=void 0;if(D.VF()){k.Nv(5);break}k.Nv(3);break;case 5:(J=u)==null||J.dispose(),g.T7(k)}})};
Za=function(D,Q,m){var P,W=new Promise(function(L){P=setTimeout(L,Q)});
return Promise.race([D.finally(function(){return void clearTimeout(P)}),
W.then(m)])};
Sww=function(D,Q,m){function P(){var L=W.endTimeMs-Date.now();L<=m?W.IC(0):setTimeout(P,Math.min(L,Q))}
var W=this;this.endTimeMs=Date.now()+D;this.promise=new Promise(function(L){W.IC=L});
P()};
r0P=function(D,Q){try{return globalThis.sessionStorage.setItem(D,Q),!0}catch(m){return!1}};
Fp=function(D,Q,m,P){Q=Q===void 0?0:Q;m=m===void 0?D.length:m;var W=0;for(P&&(W=Fp(P));Q<m;Q++)P=typeof D==="string"?D.charCodeAt(Q):D[Q],W=G9_(31,W)+P|0;return W};
MNu=function(D,Q){return[Fp(D,0,D.length>>1,Q),Fp(D,D.length>>1)]};
c07=function(D){var Q=g.T(MNu(D,Tz));D=Q.next().value;Q=Q.next().value;return D.toString(16)+Q.toString(16)};
D8P=function(D,Q){var m=MNu(Q);D=new Uint32Array(D.buffer);Q=D[0];var P=g.T(m);m=P.next().value;P=P.next().value;for(var W=1;W<D.length;W+=2){for(var L=Q,u=W,t=m,z=P,b=0;b<22;b++)u=u>>>8|u<<24,u+=L|0,u^=t+38293,L=L<<3|L>>>29,L^=u,z=z>>>8|z<<24,z+=t|0,z^=b+38293,t=t<<3|t>>>29,t^=z;L=[L,u];D[W]^=L[0];W+1<D.length&&(D[W+1]^=L[1])}};
QTw=function(D,Q,m,P,W){var L=(4-(Tz.length+m.length)%4)%4,u=new Uint8Array(4+L+Tz.length+4+m.length),t=new DataView(u.buffer),z=0;t.setUint32(z,Math.random()*4294967295);z=z+4+L;u.set(Tz,z);z+=Tz.length;t.setUint32(z,W);u.set(m,z+4);D8P(u,P);return D.MJ(Q,function(b){return void globalThis.sessionStorage.removeItem(b)})?r0P(Q,g.EG(u))?"s":"t":"i"};
m89=function(D,Q){var m=globalThis.sessionStorage.getItem(D);if(!m)return["m"];try{var P=Bz(m);D8P(P,Q)}catch(W){return globalThis.sessionStorage.removeItem(D),["c"]}for(Q=4;Q<7&&P[Q]===0;)Q++;for(m=0;m<Tz.length;m++)if(P[Q++]!==Tz[m])return globalThis.sessionStorage.removeItem(D),["d"];m=(new DataView(P.buffer)).getUint32(Q);return Math.floor(Date.now()/1E3)>=m?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(P.buffer,Q+4)]};
hU=function(D,Q,m){m=m===void 0?[]:m;this.maxItems=D;this.S=Q===void 0?0:Q;this.C=m};
Pdh=function(D){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Q)return new hU(D);var m=Q.split(",");if(m.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hU(D);Q=m.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);m=Number(m[0]);return isNaN(m)||m<0||m>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hU(D)):new hU(D,m,Q)};
WJj=function(D,Q){this.logger=Q;try{var m=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){m=!1}m&&(this.index=Pdh(D))};
iM6=function(D,Q,m,P,W){var L=D.index?Q1(D.logger,function(){return QTw(D.index,c07(Q),m,P,W)},"W"):"u";
D.logger.dw(L)};
sT7=function(D,Q,m){var P=g.T(D.index?Q1(D.logger,function(){return m89(c07(Q),m)},"R"):["u"]),W=P.next().value;
P=P.next().value;D.logger.Cv(W);return P};
d84=function(D){function Q(){m-=P;m-=W;m^=W>>>13;P-=W;P-=m;P^=m<<8;W-=m;W-=P;W^=P>>>13;m-=P;m-=W;m^=W>>>12;P-=W;P-=m;P^=m<<16;W-=m;W-=P;W^=P>>>5;m-=P;m-=W;m^=W>>>3;P-=W;P-=m;P^=m<<10;W-=m;W-=P;W^=P>>>15}
D=LJr(D);for(var m=2654435769,P=2654435769,W=314159265,L=D.length,u=L,t=0;u>=12;u-=12,t+=12)m+=nC(D,t),P+=nC(D,t+4),W+=nC(D,t+8),Q();W+=L;switch(u){case 11:W+=D[t+10]<<24;case 10:W+=D[t+9]<<16;case 9:W+=D[t+8]<<8;case 8:P+=D[t+7]<<24;case 7:P+=D[t+6]<<16;case 6:P+=D[t+5]<<8;case 5:P+=D[t+4];case 4:m+=D[t+3]<<24;case 3:m+=D[t+2]<<16;case 2:m+=D[t+1]<<8;case 1:m+=D[t+0]}Q();return u36.toString(W)};
LJr=function(D){for(var Q=[],m=0;m<D.length;m++)Q.push(D.charCodeAt(m));return Q};
nC=function(D,Q){return D[Q+0]+(D[Q+1]<<8)+(D[Q+2]<<16)+(D[Q+3]<<24)};
E7=function(D){g.v.call(this);this.logger=D;this.T=new g.zz};
gm=function(D,Q){var m=setTimeout(function(){D.T.resolve()},Q);
D.addOnDisposeCallback(function(){return void clearTimeout(m)})};
B$=function(D,Q,m,P){return Q1(D.logger,function(){return m?D.zU(Q,P):D.Rv(Q,P)},D.S)};
wm=function(D,Q,m,P){E7.call(this,D);this.B=Q;this.N=m;this.S="m";this.C="x";this.J=0;gm(this,P)};
k5=function(D,Q,m){E7.call(this,D);this.B=Q;this.S="f";this.C="z";gm(this,m)};
JU=function(D,Q,m){E7.call(this,D);this.B=Q;this.S="w";this.C="z";gm(this,m)};
lf=function(D,Q){E7.call(this,D);this.error=Q;this.S="e";this.C="y"};
tfu=function(D,Q){var m=(Q(D.error.message)+":"+Q(D.error.stack)).substring(0,2048);Q=m.length+1;m=IX(m);var P=new Uint8Array(4+m.length);P.set([42,Q&127|128,Q>>7,D.error.code]);P.set(m,4);return P};
RX=function(D,Q,m){E7.call(this,D);this.B=Q;this.clientState=m;this.S="S";this.C="q"};
IX=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):g.nk(D)};
zQj=function(D,Q,m){return D instanceof V1?$dP(D,m,Q,1):D.wG(m)};
H$=function(D){g.v.call(this);var Q=this;this.T=new g.zz;this.B=0;this.C=void 0;this.state=2;this.IF=D.IF;this.O_=D.O_;this.Vc=Object.assign({},bM7,D.Vc||{});this.logger=D.IF.e7();var m;this.onError=(m=D.onError)!=null?m:function(){};
this.lX=D.lX||!1;if(qFu(D)){var P=this.IF;this.J=function(){return ap6(P).catch(function(u){u=Q.reportError(new X3(Q.S?20:32,"TRG:Disposed",u));Q.C=u;var t;(t=Q.S)==null||t.dispose();Q.S=void 0;Q.T.reject(u)})};
A0m(P,function(){return void U7(Q)});
P.Z===2&&U7(this)}else this.J=D.AEv,U7(this);var W=this.logger.share();W.QN("o");var L=new cN(W,"o");this.T.promise.then(function(){L.done();W.tE();W.dispose()},function(){return void W.dispose()});
this.addOnDisposeCallback(function(){Q.S?(Q.S.dispose(),Q.S=void 0):Q.C?Q.logger.tE():(Q.C=Q.reportError(new X3(32,"TNP:Disposed")),Q.logger.tE(),Q.T.reject(Q.C))});
g.O(this,this.logger)};
Cdm=function(D,Q){if(!(Q instanceof X3))if(Q instanceof $7){var m=Error(Q.toString());m.stack=Q.stack;Q=new X3(11,"EBH:Error",m)}else Q=new X3(12,"BSO:Unknown",Q);return D.reportError(Q)};
U7=function(D){var Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h;return g.U(function(B){switch(B.C){case 1:Q=void 0;D.B++;m=new g.zz;D.IF instanceof Nf&&D.IF.B.push(m.promise);if(!D.lX){B.Nv(2);break}P=new g.zz;setTimeout(function(){return void P.resolve()});
return g.I(B,P.promise,2);case 2:return W=D.logger.share(),g.h4(B,4,5),D.state=5,L={},u=[],g.I(B,Za(D.IF.snapshot({z8:L,qN:u}),D.Vc.Odx,function(){return Promise.reject(new X3(15,"MDA:Timeout"))}),7);
case 7:t=B.S;if(D.VF())throw new X3(D.S?20:32,"MDA:Disposed");z=u[0];D.state=6;return g.I(B,Za(zQj(D.O_,W,t),D.Vc.mH,function(){return Promise.reject(new X3(10,"BWB:Timeout"))}),8);
case 8:b=B.S;if(D.VF())throw new X3(D.S?20:32,"BWB:Disposed");D.state=7;Q=Q1(W,function(){var k=oi6(D,b,m,z);k.T.promise.then(function(){return void D.J()});
return k},"i");
case 5:g.Rn(B);W.dispose();g.Hh(B,6);break;case 4:q=g.w7(B);(C=Q)==null||C.dispose();if(!D.C){f=Cdm(D,q);m.resolve();var J;if(J=D.IF instanceof Nf&&D.B<2)a:if(q instanceof X3)J=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof $7)switch(q.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return V=(1+Math.random()*.25)*(D.S?6E4:1E3),N=setTimeout(function(){return void D.J()},V),D.addOnDisposeCallback(function(){return void clearTimeout(N)}),B.return();
D.C=f}W.LF(D.S?13:14);D.T.reject(D.C);return B.return();case 6:D.state=8,D.B=0,(h=D.S)==null||h.dispose(),D.S=Q,D.T.resolve(),g.T7(B)}})};
oi6=function(D,Q,m,P){var W=wx(Q,2)*1E3;if(W<=0)throw new X3(31,"TTM:Invalid");if(kp(Q,4))return new JU(D.logger,kp(Q,4),W);if(!wx(Q,3))return new k5(D.logger,Rr(LB(Q,1)),W);if(!P)throw new X3(4,"PMD:Undefined");P=P(Rr(LB(Q,1)));if(!(P instanceof Function))throw new X3(16,"APF:Failed");D.N=Math.floor((Date.now()+W)/1E3);D=new wm(D.logger,P,wx(Q,3),W);D.addOnDisposeCallback(function(){return void m.resolve()});
return D};
f3_=function(D,Q){Q=Q instanceof X3?Q:new X3(5,"TVD:error",Q);return D.reportError(Q)};
FJ_=function(D,Q,m){try{if(D.VF())throw new X3(21,"BNT:disposed");if(!D.S&&D.C)throw D.C;var P,W;return(W=(P=Vf4(D,Q,m))!=null?P:Nf4(D,Q,m))!=null?W:yz7(D,Q,m)}catch(L){if(!Q.FW)throw f3_(D,L);return ZMm(D,m,L)}};
Vf4=function(D,Q,m){var P;return(P=D.S)==null?void 0:B$(P,function(){return KC(D,Q)},m,function(W){var L;
if(D.S instanceof wm&&((L=Q.yd)==null?0:L.wH))try{var u;(u=D.cache)==null||iM6(u,KC(D,Q),W,Q.yd.VK,D.N-120)}catch(t){D.reportError(new X3(24,"ELX:write",t))}})};
Nf4=function(D,Q,m){var P;if((P=Q.yd)!=null&&P.Yn)try{var W,L=(W=D.cache)==null?void 0:sT7(W,KC(D,Q),Q.yd.VK);return L?m?Q1(D.logger,function(){return g.EG(L,2)},"a"):L:void 0}catch(u){D.reportError(new X3(23,"RXO:read",u))}};
yz7=function(D,Q,m){var P={stack:[],error:void 0,hasError:!1};try{if(!Q.fC)throw new X3(29,"SDF:notready");return B$(N7j(P,new RX(D.logger,0,D.state)),function(){return KC(D,Q)},m)}catch(W){P.error=W,P.hasError=!0}finally{y4P(P)}};
ZMm=function(D,Q,m){var P={stack:[],error:void 0,hasError:!1};try{var W=f3_(D,m);return B$(N7j(P,new lf(D.logger,W)),function(){return[]},Q)}catch(L){P.error=L,P.hasError=!0}finally{y4P(P)}};
KC=function(D,Q){return Q.bJ?Q.bJ:Q.z8?Q1(D.logger,function(){return Q.bJ=IX(Q.z8)},"c"):[]};
jR=function(){var D=0,Q;return function(m){Q||(Q=new m2);var P=new RX(Q,D,1),W=B$(P,function(){return IX(m)},!0);
P.dispose();D++;return W}};
$5=function(D){this.SJ=Y2(D)};
Tfn=function(D,Q,m){this.UE=D;this.G0=Q;this.metadata=m};
eR=function(D,Q){Q=Q===void 0?{}:Q;this.c8c=D;this.metadata=Q;this.status=null};
v$=function(D,Q,m,P,W){this.name=D;this.methodType="unary";this.requestType=Q;this.responseType=m;this.S=P;this.C=W};
O7=function(D){this.SJ=Y2(D)};
Y5=function(D){this.SJ=Y2(D)};
aX=function(D){this.SJ=Y2(D)};
AU=function(D,Q){this.U=D.r09;this.Z=Q;this.S=D.xhr;this.T=[];this.J=[];this.N=[];this.B=[];this.C=[];this.U&&hQ6(this)};
BfP=function(D,Q){var m=new ni9;g.cT(D.S,"complete",function(){if(x7(D.S)){var P=g.Xd(D.S);if(Q&&D.S.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");P=atob(P)}try{var W=D.Z(P)}catch(t){pC(D,x5(new $7(13,"Error when deserializing response data; error: "+t+(", response: "+P)),m));return}P=WG4(D.S.getStatus());Xp(D,SR(D));P==0?Eih(D,W):pC(D,x5(new $7(P,"Xhr succeeded but the status code is not 200"),m))}else{P=g.Xd(D.S);W=SR(D);if(P){var L=gi9(D,
P);P=L.code;var u=L.details;L=L.metadata}else P=2,u="Rpc failed due to xhr error. uri: "+String(D.S.Z)+", error code: "+D.S.C+", error: "+D.S.getLastError(),L=W;Xp(D,W);pC(D,x5(new $7(P,u,L),m))}})};
hQ6=function(D){D.U.jh("data",function(Q){if("1"in Q){var m=Q["1"];try{var P=D.Z(m)}catch(W){pC(D,new $7(13,"Error when deserializing response data; error: "+W+(", response: "+m)))}P&&Eih(D,P)}if("2"in Q)for(Q=gi9(D,Q["2"]),m=0;m<D.N.length;m++)D.N[m](Q)});
D.U.jh("end",function(){Xp(D,SR(D));for(var Q=0;Q<D.B.length;Q++)D.B[Q]()});
D.U.jh("error",function(){if(D.C.length!=0){var Q=D.S.C;Q!==0||x7(D.S)||(Q=6);var m=-1;switch(Q){case 0:var P=2;break;case 7:P=10;break;case 8:P=4;break;case 6:m=D.S.getStatus();P=WG4(m);break;default:P=14}Xp(D,SR(D));Q=tNm(Q)+", error: "+D.S.getLastError();m!=-1&&(Q+=", http status code: "+m);pC(D,new $7(P,Q))}})};
SR=function(D){var Q={},m=g.N0j(D.S);Object.keys(m).forEach(function(P){Q[P]=m[P]});
return Q};
gi9=function(D,Q){var m=2,P={};try{var W=wm7(Q);m=Bs(W,1);var L=W.getMessage();hu(W,Y5,3).length&&(P["grpc-web-status-details-bin"]=Q)}catch(u){D.S&&D.S.getStatus()===404?(m=5,L="Not Found: "+String(D.S.Z)):(m=14,L="Unable to parse RpcStatus: "+u)}return{code:m,details:L,metadata:P}};
rm=function(D,Q){Q=D.indexOf(Q);Q>-1&&D.splice(Q,1)};
Eih=function(D,Q){for(var m=0;m<D.T.length;m++)D.T[m](Q)};
Xp=function(D,Q){for(var m=0;m<D.J.length;m++)D.J[m](Q)};
pC=function(D,Q){for(var m=0;m<D.C.length;m++)D.C[m](Q)};
ni9=function(){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
x5=function(D,Q){Q.stack&&(D.stack+="\n"+Q.stack);return D};
g.Gz=function(D){this.B=D.qNq||null;this.T=D.x3||!1;this.C=void 0};
Mf=function(D,Q){g.zt.call(this);this.Kh=D;this.N=Q;this.J=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.j=new Headers;this.C=null;this.Iy="GET";this.TO="";this.S=!1;this.U=this.T=this.B=null;this.Z=new AbortController};
kw_=function(D){D.T.read().then(D.lj.bind(D)).catch(D.wK.bind(D))};
DI=function(D){D.readyState=4;D.B=null;D.T=null;D.U=null;c$(D)};
c$=function(D){D.onreadystatechange&&D.onreadystatechange.call(D)};
Jzn=function(D){if(D.Jp&&typeof D.Jp=="function")return D.Jp();if(typeof Map!=="undefined"&&D instanceof Map||typeof Set!=="undefined"&&D instanceof Set)return Array.from(D.values());if(typeof D==="string")return D.split("");if(g.WP(D)){for(var Q=[],m=D.length,P=0;P<m;P++)Q.push(D[P]);return Q}return WK(D)};
l3P=function(D){if(D.G8&&typeof D.G8=="function")return D.G8();if(!D.Jp||typeof D.Jp!="function"){if(typeof Map!=="undefined"&&D instanceof Map)return Array.from(D.keys());if(!(typeof Set!=="undefined"&&D instanceof Set)){if(g.WP(D)||typeof D==="string"){var Q=[];D=D.length;for(var m=0;m<D;m++)Q.push(m);return Q}return g.i7(D)}}};
I37=function(D,Q,m){if(D.forEach&&typeof D.forEach=="function")D.forEach(Q,m);else if(g.WP(D)||typeof D==="string")Array.prototype.forEach.call(D,Q,m);else for(var P=l3P(D),W=Jzn(D),L=W.length,u=0;u<L;u++)Q.call(m,W[u],P&&P[u],D)};
g.Qc=function(D){this.S=this.Z=this.J="";this.T=null;this.N=this.C="";this.U=!1;var Q;D instanceof g.Qc?(this.U=D.U,g.mq(this,D.J),this.Z=D.Z,g.PV(this,D.S),g.WV(this,D.T),this.C=D.C,iD(this,D.B.clone()),this.N=D.N):D&&(Q=g.LG(String(D)))?(this.U=!1,g.mq(this,Q[1]||"",!0),this.Z=LJ(Q[2]||""),g.PV(this,Q[3]||"",!0),g.WV(this,Q[4]),this.C=LJ(Q[5]||"",!0),iD(this,Q[6]||"",!0),this.N=LJ(Q[7]||"")):(this.U=!1,this.B=new uD(null,this.U))};
g.mq=function(D,Q,m){D.J=m?LJ(Q,!0):Q;D.J&&(D.J=D.J.replace(/:$/,""))};
g.PV=function(D,Q,m){D.S=m?LJ(Q,!0):Q};
g.WV=function(D,Q){if(Q){Q=Number(Q);if(isNaN(Q)||Q<0)throw Error("Bad port number "+Q);D.T=Q}else D.T=null};
iD=function(D,Q,m){Q instanceof uD?(D.B=Q,RQ$(D.B,D.U)):(m||(Q=dt(Q,U8h)),D.B=new uD(Q,D.U))};
g.tN=function(D,Q,m){D.B.set(Q,m)};
g.zp=function(D){return D instanceof g.Qc?D.clone():new g.Qc(D)};
LJ=function(D,Q){return D?Q?decodeURI(D.replace(/%25/g,"%2525")):decodeURIComponent(D):""};
dt=function(D,Q,m){return typeof D==="string"?(D=encodeURI(D).replace(Q,HM9),m&&(D=D.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D):null};
HM9=function(D){D=D.charCodeAt(0);return"%"+(D>>4&15).toString(16)+(D&15).toString(16)};
uD=function(D,Q){this.C=this.S=null;this.T=D||null;this.B=!!Q};
bD=function(D){D.S||(D.S=new Map,D.C=0,D.T&&z2(D.T,function(Q,m){D.add(wh(Q),m)}))};
KJ6=function(D,Q){bD(D);Q=qp(D,Q);return D.S.has(Q)};
g.jTj=function(D,Q,m){D.remove(Q);m.length>0&&(D.T=null,D.S.set(qp(D,Q),g.JM(m)),D.C=D.C+m.length)};
qp=function(D,Q){Q=String(Q);D.B&&(Q=Q.toLowerCase());return Q};
RQ$=function(D,Q){Q&&!D.B&&(bD(D),D.T=null,D.S.forEach(function(m,P){var W=P.toLowerCase();P!=W&&(this.remove(P),g.jTj(this,W,m))},D));
D.B=Q};
g.$86=function(D){var Q="";g.MQ(D,function(m,P){Q+=P;Q+=":";Q+=m;Q+="\r\n"});
return Q};
g.CJ=function(D,Q,m){if(g.b7(m))return D;m=g.$86(m);if(typeof D==="string")return fG(D,g.gh(Q),m);g.tN(D,Q,m);return D};
g.oO=function(D){g.v.call(this);this.C=D;this.S={}};
eQm=function(D,Q,m,P,W,L){if(Array.isArray(m))for(var u=0;u<m.length;u++)eQm(D,Q,m[u],P,W,L);else{Q=M3(Q,m,P||D.handleEvent,W,L||D.C||D);if(!Q)return D;D.S[Q.key]=Q}return D};
vi7=function(){this.T=!0;this.C=0;this.S=""};
OMm=function(D,Q,m){D.T=!1;throw Error("The stream is broken @"+D.C+". Error: "+m+". With input:\n"+Q);};
fJ=function(){this.N=null;this.U=[];this.B=this.C=this.T=this.S=this.j=0;this.J=null;this.Z=0};
Vc=function(D,Q,m,P){D.S=3;D.N="The stream is broken @"+D.j+"/"+m+". Error: "+P+". With input:\n"+Q;throw Error(D.N);};
Np=function(){this.S=null;this.C=0;this.T=new vi7;this.B=new fJ};
YF$=function(D,Q,m){D.S="The stream is broken @"+D.C+". Error: "+m+". With input:\n"+Q;throw Error(D.S);};
yc=function(D){return D=="\r"||D=="\n"||D==" "||D=="\t"};
ZI=function(D){this.j=null;this.N=[];this.B="";this.Iy=[];this.T=this.C=0;this.U=!1;this.Z=0;this.Kh=/[\\"]/g;this.S=this.J=0;this.TO=!(!D||!D.F0)};
FY=function(D,Q,m){D.J=3;D.j="The stream is broken @"+D.T+"/"+m+". With input:\n"+Q;throw Error(D.j);};
Tp=function(){this.J=this.T=null;this.C=this.S=0;this.B=[];this.N=!1};
a3_=function(D){var Q=g.rW(D,"Content-Type");if(!Q)return null;Q=Q.toLowerCase();return Q.startsWith("application/json")?Q.startsWith("application/json+protobuf")?new Tp:new ZI:Q.startsWith("application/x-protobuf")?(D=g.rW(D,"Content-Transfer-Encoding"))?D.toLowerCase()=="base64"?new Np:null:new fJ:null};
hN=function(D){this.S=D;this.C=null;this.J=this.T=0;this.j=!1;this.B=this.U=this.N=null;this.Z=new g.oO(this);this.Z.listen(this.S,"readystatechange",this.TO)};
nJ=function(D,Q){D.J!=Q&&(D.J=Q,D.U&&D.U())};
Ev=function(D){D.Z.removeAll();if(D.S){var Q=D.S;D.S=null;Q.abort();Q.dispose()}};
Azj=function(D){D=this.T=D;var Q=(0,g.d$)(this.hC0,this);D.B=Q;D=this.T;Q=(0,g.d$)(this.Hnc,this);D.U=Q;this.C={};this.S={}};
pmw=function(D,Q){for(var m={},P=0;P<D.length;m={P7:void 0},P++)m.P7=D[P],Q.forEach(function(W){return function(L){try{L(W.P7)}catch(u){}}}(m))};
gt=function(D,Q){var m=D.C[Q];m&&m.forEach(function(P){try{P()}catch(W){}});
(m=D.S[Q])&&m.forEach(function(P){P()});
D.S[Q]=[]};
x8m=function(){var D={format:"jspb"};D=D===void 0?{}:D;this.rH=D.rH||g.Q4("suppressCorsPreflight",D)||!1;this.withCredentials=D.withCredentials||g.Q4("withCredentials",D)||!1;this.U7=D.U7||[];this.g6=D.g6||[];this.ge=D.ge;this.S=D.L30||!1};
jMw=function(D,Q,m,P,W,L){L=L===void 0?{}:L;var u=Q.substring(0,Q.length-W.name.length),t,z=(t=L)==null?void 0:t.signal;return Xm9(function(b){return new Promise(function(q,C){if(z==null?0:z.aborted){var f=new $7(1,"Aborted");f.cause=z.reason;C(f)}else{var V={},N=SFk(D,b,u);N.jh("error",function(h){return void C(h)});
N.jh("metadata",function(h){V=h});
N.jh("data",function(h){var B=V;B=B===void 0?{}:B;q(new eR(h,B))});
z&&z.addEventListener("abort",function(){N.cancel();var h=new $7(1,"Aborted");h.cause=z.reason;C(h)})}})},D.g6).call(D,W.U(m,P)).then(function(b){return b.c8c})};
SFk=function(D,Q,m){var P=Q.G0,W=Q.getMetadata(),L=rz_(D,!0);D=Gw$(D,W,L,m+P.getName());m=Mfu(L,P.C,!1);BfP(m,W["X-Goog-Encode-Response-If-Executable"]==="base64");Q=P.S(Q.UE);L.send(D,"POST",Q);return m};
rz_=function(D,Q){Q=D.S&&!Q;return D.ge||Q?new g.Y7(new g.Gz({qNq:D.ge,x3:Q})):new g.Y7};
Gw$=function(D,Q,m,P){Q["Content-Type"]="application/json+protobuf";Q["X-User-Agent"]="grpc-web-javascript/0.1";var W=Q.Authorization;if(W&&cz6.has(W.split(" ")[0])||D.withCredentials)m.U=!0;if(D.rH)P=g.CJ(P,"$httpHeaders",Q);else for(D=g.T(Object.keys(Q)),W=D.next();!W.done;W=D.next())W=W.value,m.headers.set(W,Q[W]);return P};
Mfu=function(D,Q,m){if(m){D.isActive();m=new hN(D);var P=new Azj(m)}return new AU({xhr:D,r09:P},Q)};
D3k=function(D,Q){return Q.reduce(function(m,P){return function(W){return P.intercept(W,m)}},D)};
Xm9=function(D,Q){return Q.reduce(function(m,P){return function(W){return P.intercept(W,m)}},D)};
Q3k=function(){this.S=new x8m;this.C="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Wow=function(D){if(g.J6(g.Jy(D)))return!1;if(D.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var Q=new g.Qc(D)}catch(m){return g.y4(m3_,function(P){return D.search(P)>0})!=null}return Q.N.match(PKP)?!0:g.y4(m3_,function(m){return D.match(m)!=null})!=null};
g.BV=function(D,Q){return D.replace(i14,function(m,P){try{var W=g.qD(Q,P);if(W==null||W.toString()==null)return m;W=W.toString();if(W==""||!g.J6(g.Jy(W)))return encodeURIComponent(W).replace(/%2C/g,",")}catch(L){}return m})};
wt=function(D,Q){return Object.is(D,Q)};
JN=function(D){var Q=kG;kG=D;return Q};
s39=function(D){if(D.mJ!==void 0){var Q=lD;lD=!0;try{for(var m=D.mJ;m!==void 0;m=m.Kk){var P=m.q3;P.tZ||(D=void 0,P.tZ=!0,s39(P),(D=P.Ly)==null||D.call(P,P))}}finally{lD=Q}}};
Loj=function(){var D;return((D=kG)==null?void 0:D.rP)!==!1};
uHr=function(D){D&&(D.Nc=void 0,D.TX=!0);return JN(D)};
tT_=function(D,Q){JN(Q);if(D){D.TX=!1;Q=D.Nc;var m=Q!==void 0?Q.Vj:D.producers;if(m!==void 0){if(IO(D)){do m=d3m(m);while(m!==void 0)}Q!==void 0?Q.Vj=void 0:D.producers=void 0}}};
zB9=function(D,Q){var m=D.t$,P=IO(D);m!==void 0?(Q.Kk=m.Kk,m.Kk=Q):(Q.Kk=void 0,D.mJ=Q);Q.qe=m;D.t$=Q;if(!P)for(D=D.producers;D!==void 0;D=D.Vj)zB9(D.cW,D)};
d3m=function(D){var Q=D.cW,m=D.Vj,P=D.Kk,W=D.qe;D.Kk=void 0;D.qe=void 0;P!==void 0?P.qe=W:Q.t$=W;if(W!==void 0)W.Kk=P;else if(Q.mJ=P,!IO(Q))for(D=Q.producers;D!==void 0;)D=d3m(D);return m};
IO=function(D){return D.zP||D.mJ!==void 0};
os4=function(D){function Q(){a:{if(lD)throw Error("");if(kG!==null){var P=kG.Nc;if(P===void 0||P.cW!==m){var W=void 0,L=kG.TX;if(L&&(W=P!==void 0?P.Vj:kG.producers,W!==void 0&&W.cW===m)){kG.Nc=W;W.GC=m.version;break a}var u=m.t$,t;if(!(t=u===void 0||u.q3!==kG)){if(L){b:{t=kG;L=t.Nc;if(L!==void 0){t=t.producers;do{if(t===u){L=!0;break b}if(t===L)break;t=t.Vj}while(t!==void 0)}L=!1}L=!L}t=L}t&&(L=IO(kG),W={cW:m,q3:kG,Vj:W,qe:u,GC:m.version,Kk:void 0},kG.Nc=W,P!==void 0?P.Vj=W:kG.producers=W,L&&zB9(m,
W))}}}return m.value}
var m=Object.create(b17);m.value=D;Q[qum]=m;return[Q,function(P){return CK$(m,P)},
function(P){if(!Loj())throw Error();CK$(m,P(m.value))}]};
CK$=function(D,Q){if(!Loj())throw Error();D.ye(D.value,Q)||(D.value=Q,D.version++,fEj++,s39(D))};
RO=function(D,Q){Q=Q===void 0?"":Q;D=os4(D)[0][qum];var m;Q=(m=Q)!=null?m:"[signal]";D.debugName=Q};
HV=function(D){g.zt.call(this);var Q=this;this.J=this.C=0;this.MO=D!=null?D:{Gm:function(W,L){return setTimeout(W,L)},
N5:function(W){clearTimeout(W)}};
var m,P;this.S=(P=(m=window.navigator)==null?void 0:m.onLine)!=null?P:!0;this.T=function(){return g.U(function(W){return g.I(W,Uv(Q),0)})};
window.addEventListener("offline",this.T);window.addEventListener("online",this.T);this.J||this.UC()};
VTn=function(){var D=g.KJ;HV.instance||(HV.instance=new HV(D));return HV.instance};
Uv=function(D,Q){return D.B?D.B:D.B=new Promise(function(m){var P,W,L,u;return g.U(function(t){switch(t.C){case 1:return P=window.AbortController?new window.AbortController:void 0,L=(W=P)==null?void 0:W.signal,u=!1,g.h4(t,2,3),P&&(D.C=D.MO.Gm(function(){P.abort()},Q||2E4)),g.I(t,fetch("/generate_204",{method:"HEAD",
signal:L}),5);case 5:u=!0;case 3:g.Rn(t);D.B=void 0;D.C&&(D.MO.N5(D.C),D.C=0);u!==D.S&&(D.S=u,D.S?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));m(u);g.Hh(t,0);break;case 2:g.w7(t),u=!1,t.Nv(3)}})})};
NIm=function(D){this.SJ=Y2(D)};
jH=function(){this.data=[];this.S=-1};
yb_=function(D){D.S===-1&&(D.S=D.data.reduce(function(Q,m,P){return Q+(m?Math.pow(2,P):0)},0));
return D.S};
$G=function(D){D.setAttribute("role","link")};
vV=function(D,Q){Array.isArray(Q)&&(Q=Q.join(" "));Q===""||Q==void 0?(eH||(Q={},eH=(Q.atomic=!1,Q.autocomplete="none",Q.dropeffect="none",Q.haspopup=!1,Q.live="off",Q.multiline=!1,Q.multiselectable=!1,Q.orientation="vertical",Q.readonly=!1,Q.relevant="additions text",Q.required=!1,Q.sort="none",Q.busy=!1,Q.disabled=!1,Q.hidden=!1,Q.invalid="false",Q)),Q=eH,"label"in Q?D.setAttribute("aria-label",Q.label):D.removeAttribute("aria-label")):D.setAttribute("aria-label",Q)};
Ov=function(D){D=D.getAttribute("aria-label");return D==null||D==void 0?"":String(D)};
g.AN=function(D,Q,m){g.v.call(this);this.S=null;this.B=!1;this.N=D;this.J=m;this.C=Q||window;this.T=(0,g.d$)(this.L5,this)};
Z1m=function(D){D=D.C;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null};
Fo6=function(D){D=D.C;return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null};
g.pJ=function(D,Q,m){g.v.call(this);this.S=D;this.S6=Q||0;this.C=m;this.T=(0,g.d$)(this.kK,this)};
g.xG=function(D,Q){D.isActive()||D.start(Q)};
g.XY=function(D){D.stop();D.kK()};
g.SH=function(D){D.isActive()&&g.XY(D)};
g.rt=function(D,Q,m){g.v.call(this);this.B=m!=null?D.bind(m):D;this.S6=Q;this.T=null;this.S=!1;this.C=0;this.Gc=null};
Gp=function(D){D.Gc=g.HN(function(){D.Gc=null;D.S&&!D.C&&(D.S=!1,Gp(D))},D.S6);
var Q=D.T;D.T=null;D.B.apply(null,Q)};
g.Mp=function(D,Q){this.S=D[g.Mu.Symbol.iterator]();this.C=Q};
TIw=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""};
cV=function(D){return D.classList?D.classList:TIw(D).match(/\S+/g)||[]};
g.Dx=function(D,Q){typeof D.className=="string"?D.className=Q:D.setAttribute&&D.setAttribute("class",Q)};
g.Q9=function(D,Q){return D.classList?D.classList.contains(Q):g.FK(cV(D),Q)};
g.mQ=function(D,Q){if(D.classList)D.classList.add(Q);else if(!g.Q9(D,Q)){var m=TIw(D);g.Dx(D,m+(m.length>0?" "+Q:Q))}};
g.Po=function(D,Q){if(D.classList)Array.prototype.forEach.call(Q,function(W){g.mQ(D,W)});
else{var m={};Array.prototype.forEach.call(cV(D),function(W){m[W]=!0});
Array.prototype.forEach.call(Q,function(W){m[W]=!0});
Q="";for(var P in m)Q+=Q.length>0?" "+P:P;g.Dx(D,Q)}};
g.Wo=function(D,Q){D.classList?D.classList.remove(Q):g.Q9(D,Q)&&g.Dx(D,Array.prototype.filter.call(cV(D),function(m){return m!=Q}).join(" "))};
g.iT=function(D,Q){D.classList?Array.prototype.forEach.call(Q,function(m){g.Wo(D,m)}):g.Dx(D,Array.prototype.filter.call(cV(D),function(m){return!g.FK(Q,m)}).join(" "))};
g.sh=function(D,Q,m){m?g.mQ(D,Q):g.Wo(D,Q)};
hBj=function(D,Q){var m=!g.Q9(D,Q);g.sh(D,Q,m)};
g.Ln=function(){g.zt.call(this);this.S=0;this.endTime=this.startTime=null};
ns7=function(D,Q){Array.isArray(Q)||(Q=[Q]);Q=Q.map(function(m){return typeof m==="string"?m:m.property+" "+m.duration+"s "+m.timing+" "+m.delay+"s"});
g.YZ(D,"transition",Q.join(","))};
uT=function(D,Q,m,P,W){g.Ln.call(this);this.C=D;this.J=Q;this.N=m;this.B=P;this.U=Array.isArray(W)?W:[W]};
Esh=function(D,Q,m,P){return new uT(D,Q,{opacity:m},{opacity:P},{property:"opacity",duration:Q,timing:"ease-in",delay:0})};
BIm=function(D){D=R2(D);if(D=="")return null;var Q=String(D.slice(0,4)).toLowerCase();if(("url("<Q?-1:"url("==Q?0:1)==0)return!D.endsWith(")")||(D?D.split("(").length-1:0)>1||D&&D.split(")"),null;if(D.indexOf("(")>0){if(/"|'/.test(D))return null;Q=/([\-\w]+)\(/g;for(var m;m=Q.exec(D);)if(!(m[1].toLowerCase()in gsj))return null}return D};
d2=function(D,Q){D=g.Mu[D];return D&&D.prototype?(Q=Object.getOwnPropertyDescriptor(D.prototype,Q))&&Q.get||null:null};
wT6=function(D){var Q=g.Mu.CSSStyleDeclaration;return Q&&Q.prototype&&Q.prototype[D]||null};
k8u=function(D,Q,m,P){if(D)return D.apply(Q,P);if(g.tv&&document.documentMode<10){if(!Q[m].call)throw Error("IE Clobbering detected");}else if(typeof Q[m]!="function")throw Error("Clobbering detected");return Q[m].apply(Q,P)};
U39=function(D){if(!D)return"";var Q=document.createElement("div").style;Jb6(D).forEach(function(m){var P=g.d9&&m in lE7?m:m.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");k1(P,"--")||k1(P,"var")||(m=k8u(IEr,D,D.getPropertyValue?"getPropertyValue":"getAttribute",[m])||"",m=BIm(m),m!=null&&k8u(RB7,Q,Q.setProperty?"setProperty":"setAttribute",[P,m]))});
return Q.cssText||""};
Jb6=function(D){g.WP(D)?D=g.JM(D):(D=g.i7(D),g.hM(D,"cssText"));return D};
g.bT=function(D){var Q,m=Q=0,P=!1;D=D.split(H1n);for(var W=0;W<D.length;W++){var L=D[W];g.zY.test(L)?(Q++,m++):Ko$.test(L)?P=!0:j37.test(L)?m++:$36.test(L)&&(P=!0)}Q=m==0?P?1:0:Q/m>.4?-1:1;return(Q==0?null:Q)==-1?"rtl":"ltr"};
g.fn=function(D){if(D instanceof qP||D instanceof Cn||D instanceof og)return D;if(typeof D.next=="function")return new qP(function(){return D});
if(typeof D[Symbol.iterator]=="function")return new qP(function(){return D[Symbol.iterator]()});
if(typeof D.d3=="function")return new qP(function(){return D.d3()});
throw Error("Not an iterator or iterable.");};
qP=function(D){this.C=D};
Cn=function(D){this.C=D};
og=function(D){qP.call(this,function(){return D});
this.T=D};
V9=function(D,Q,m,P,W,L,u,t){this.S=D;this.U=Q;this.T=m;this.J=P;this.B=W;this.N=L;this.C=u;this.Z=t};
NP=function(D,Q){if(Q==0)return D.S;if(Q==1)return D.C;var m=Oc(D.S,D.T,Q),P=Oc(D.T,D.B,Q);D=Oc(D.B,D.C,Q);m=Oc(m,P,Q);P=Oc(P,D,Q);return Oc(m,P,Q)};
eB9=function(D,Q){var m=(Q-D.S)/(D.C-D.S);if(m<=0)return 0;if(m>=1)return 1;for(var P=0,W=1,L=0,u=0;u<8;u++){L=NP(D,m);var t=(NP(D,m+1E-6)-L)/1E-6;if(Math.abs(L-Q)<1E-6)return m;if(Math.abs(t)<1E-6)break;else L<Q?P=m:W=m,m-=(L-Q)/t}for(u=0;Math.abs(L-Q)>1E-6&&u<8;u++)L<Q?(P=m,m=(m+W)/2):(W=m,m=(m+P)/2),L=NP(D,m);return m};
y9=function(D,Q){this.start=D<Q?D:Q;this.end=D<Q?Q:D};
Zx=function(D){return(D=D.exec(g.Kg()))?D[1]:""};
FI=function(D){return g.HK(vsm,D)>=0};
g.TY=function(D){g.v.call(this);this.N=1;this.T=[];this.B=0;this.S=[];this.C={};this.U=!!D};
O14=function(D,Q,m){g.Fd(function(){D.apply(Q,m)})};
g.hv=function(D){this.S=D};
nn=function(D){this.S=D};
Yuw=function(D){this.data=D};
aE_=function(D){return D===void 0||D instanceof Yuw?D:new Yuw(D)};
Eh=function(D){this.S=D};
g.Abj=function(D){var Q=D.creation;D=D.expiration;return!!D&&D<g.bv()||!!Q&&Q>g.bv()};
g.g2=function(D){this.S=D};
pTw=function(){};
Bo=function(){};
w2=function(D){this.S=D;this.C=null};
kR=function(D){if(D.S==null)throw Error("Storage mechanism: Storage unavailable");D.isAvailable()||hi(Error("Storage mechanism: Storage unavailable"))};
Jv=function(){var D=null;try{D=g.Mu.localStorage||null}catch(Q){}w2.call(this,D)};
x37=function(){var D=null;try{D=g.Mu.sessionStorage||null}catch(Q){}w2.call(this,D)};
lT=function(D,Q){this.C=D;this.S=Q+"::"};
g.Ig=function(D){var Q=new Jv;return Q.isAvailable()?D?new lT(Q,D):Q:null};
Rg=function(D,Q){this.S=D;this.C=Q};
Uh=function(D){this.S=[];if(D)a:{if(D instanceof Uh){var Q=D.G8();D=D.Jp();if(this.S.length<=0){for(var m=this.S,P=0;P<Q.length;P++)m.push(new Rg(Q[P],D[P]));break a}}else Q=g.i7(D),D=WK(D);for(m=0;m<Q.length;m++)this.MJ(Q[m],D[m])}};
Ho=function(){Uh.apply(this,arguments)};
Kn=function(){};
XTP=function(){var D=Error();D.name="SecurityError";throw D;};
Su6=function(){return{get opener(){return null},get closed(){return!0},get location(){XTP()},get document(){XTP()},postMessage:function(){},
close:function(){},
focus:function(){}}};
rbu=function(D){var Q,m,P=D.length,W=0;for(Q=0;Q<P;Q++){var L=D.charCodeAt(Q);if((L&64512)===55296&&Q+1<P){var u=D.charCodeAt(Q+1);(u&64512)===56320&&(L=65536+(L-55296<<10)+(u-56320),Q++)}W+=L<128?1:L<2048?2:L<65536?3:4}var t=new jw.LJ(W);for(Q=m=0;m<W;Q++)L=D.charCodeAt(Q),(L&64512)===55296&&Q+1<P&&(u=D.charCodeAt(Q+1),(u&64512)===56320&&(L=65536+(L-55296<<10)+(u-56320),Q++)),L<128?t[m++]=L:(L<2048?t[m++]=192|L>>>6:(L<65536?t[m++]=224|L>>>12:(t[m++]=240|L>>>18,t[m++]=128|L>>>12&63),t[m++]=128|L>>>
6&63),t[m++]=128|L&63);return t};
$R=function(D){for(var Q=D.length;--Q>=0;)D[Q]=0};
ew=function(D,Q,m,P,W){this.J3=D;this.k7=Q;this.qC=m;this.g$=P;this.Ncz=W;this.UO=D&&D.length};
vo=function(D,Q){this.T5=D;this.AJ=0;this.YX=Q};
Oh=function(D,Q){D.UH[D.pending++]=Q&255;D.UH[D.pending++]=Q>>>8&255};
YR=function(D,Q,m){D.Af>16-m?(D.Vo|=Q<<D.Af&65535,Oh(D,D.Vo),D.Vo=Q>>16-D.Af,D.Af+=m-16):(D.Vo|=Q<<D.Af&65535,D.Af+=m)};
ag=function(D,Q,m){YR(D,m[Q*2],m[Q*2+1])};
G8w=function(D,Q){var m=0;do m|=D&1,D>>>=1,m<<=1;while(--Q>0);return m>>>1};
MT6=function(D,Q,m){var P=Array(16),W=0,L;for(L=1;L<=15;L++)P[L]=W=W+m[L-1]<<1;for(m=0;m<=Q;m++)W=D[m*2+1],W!==0&&(D[m*2]=G8w(P[W]++,W))};
cbh=function(D){var Q;for(Q=0;Q<286;Q++)D.HF[Q*2]=0;for(Q=0;Q<30;Q++)D.bv[Q*2]=0;for(Q=0;Q<19;Q++)D.E3[Q*2]=0;D.HF[512]=1;D.gM=D.Yc=0;D.qK=D.matches=0};
DKm=function(D){D.Af>8?Oh(D,D.Vo):D.Af>0&&(D.UH[D.pending++]=D.Vo);D.Vo=0;D.Af=0};
Qsj=function(D,Q,m){DKm(D);Oh(D,m);Oh(D,~m);jw.oC(D.UH,D.window,Q,m,D.pending);D.pending+=m};
mKr=function(D,Q,m,P){var W=Q*2,L=m*2;return D[W]<D[L]||D[W]===D[L]&&P[Q]<=P[m]};
Av=function(D,Q,m){for(var P=D.iQ[m],W=m<<1;W<=D.L1;){W<D.L1&&mKr(Q,D.iQ[W+1],D.iQ[W],D.depth)&&W++;if(mKr(Q,P,D.iQ[W],D.depth))break;D.iQ[m]=D.iQ[W];m=W;W<<=1}D.iQ[m]=P};
PQ7=function(D,Q,m){var P=0;if(D.qK!==0){do{var W=D.UH[D.Pm+P*2]<<8|D.UH[D.Pm+P*2+1];var L=D.UH[D.B8+P];P++;if(W===0)ag(D,L,Q);else{var u=pn[L];ag(D,u+256+1,Q);var t=xR[u];t!==0&&(L-=XI[u],YR(D,L,t));W--;u=W<256?Sw[W]:Sw[256+(W>>>7)];ag(D,u,m);t=r2[u];t!==0&&(W-=GY[u],YR(D,W,t))}}while(P<D.qK)}ag(D,256,Q)};
MP=function(D,Q){var m=Q.T5,P=Q.YX.J3,W=Q.YX.UO,L=Q.YX.g$,u,t=-1;D.L1=0;D.oT=573;for(u=0;u<L;u++)m[u*2]!==0?(D.iQ[++D.L1]=t=u,D.depth[u]=0):m[u*2+1]=0;for(;D.L1<2;){var z=D.iQ[++D.L1]=t<2?++t:0;m[z*2]=1;D.depth[z]=0;D.gM--;W&&(D.Yc-=P[z*2+1])}Q.AJ=t;for(u=D.L1>>1;u>=1;u--)Av(D,m,u);z=L;do u=D.iQ[1],D.iQ[1]=D.iQ[D.L1--],Av(D,m,1),P=D.iQ[1],D.iQ[--D.oT]=u,D.iQ[--D.oT]=P,m[z*2]=m[u*2]+m[P*2],D.depth[z]=(D.depth[u]>=D.depth[P]?D.depth[u]:D.depth[P])+1,m[u*2+1]=m[P*2+1]=z,D.iQ[1]=z++,Av(D,m,1);while(D.L1>=
2);D.iQ[--D.oT]=D.iQ[1];u=Q.T5;z=Q.AJ;P=Q.YX.J3;W=Q.YX.UO;L=Q.YX.k7;var b=Q.YX.qC,q=Q.YX.Ncz,C,f=0;for(C=0;C<=15;C++)D.n1[C]=0;u[D.iQ[D.oT]*2+1]=0;for(Q=D.oT+1;Q<573;Q++){var V=D.iQ[Q];C=u[u[V*2+1]*2+1]+1;C>q&&(C=q,f++);u[V*2+1]=C;if(!(V>z)){D.n1[C]++;var N=0;V>=b&&(N=L[V-b]);var h=u[V*2];D.gM+=h*(C+N);W&&(D.Yc+=h*(P[V*2+1]+N))}}if(f!==0){do{for(C=q-1;D.n1[C]===0;)C--;D.n1[C]--;D.n1[C+1]+=2;D.n1[q]--;f-=2}while(f>0);for(C=q;C!==0;C--)for(V=D.n1[C];V!==0;)P=D.iQ[--Q],P>z||(u[P*2+1]!==C&&(D.gM+=(C-
u[P*2+1])*u[P*2],u[P*2+1]=C),V--)}MT6(m,t,D.n1)};
WHj=function(D,Q,m){var P,W=-1,L=Q[1],u=0,t=7,z=4;L===0&&(t=138,z=3);Q[(m+1)*2+1]=65535;for(P=0;P<=m;P++){var b=L;L=Q[(P+1)*2+1];++u<t&&b===L||(u<z?D.E3[b*2]+=u:b!==0?(b!==W&&D.E3[b*2]++,D.E3[32]++):u<=10?D.E3[34]++:D.E3[36]++,u=0,W=b,L===0?(t=138,z=3):b===L?(t=6,z=3):(t=7,z=4))}};
ior=function(D,Q,m){var P,W=-1,L=Q[1],u=0,t=7,z=4;L===0&&(t=138,z=3);for(P=0;P<=m;P++){var b=L;L=Q[(P+1)*2+1];if(!(++u<t&&b===L)){if(u<z){do ag(D,b,D.E3);while(--u!==0)}else b!==0?(b!==W&&(ag(D,b,D.E3),u--),ag(D,16,D.E3),YR(D,u-3,2)):u<=10?(ag(D,17,D.E3),YR(D,u-3,3)):(ag(D,18,D.E3),YR(D,u-11,7));u=0;W=b;L===0?(t=138,z=3):b===L?(t=6,z=3):(t=7,z=4)}}};
ssn=function(D){var Q=4093624447,m;for(m=0;m<=31;m++,Q>>>=1)if(Q&1&&D.HF[m*2]!==0)return 0;if(D.HF[18]!==0||D.HF[20]!==0||D.HF[26]!==0)return 1;for(m=32;m<256;m++)if(D.HF[m*2]!==0)return 1;return 0};
co=function(D,Q,m){D.UH[D.Pm+D.qK*2]=Q>>>8&255;D.UH[D.Pm+D.qK*2+1]=Q&255;D.UH[D.B8+D.qK]=m&255;D.qK++;Q===0?D.HF[m*2]++:(D.matches++,Q--,D.HF[(pn[m]+256+1)*2]++,D.bv[(Q<256?Sw[Q]:Sw[256+(Q>>>7)])*2]++);return D.qK===D.On-1};
QC=function(D,Q){D.msg=DU[Q];return Q};
md=function(D){for(var Q=D.length;--Q>=0;)D[Q]=0};
P0=function(D){var Q=D.state,m=Q.pending;m>D.Sv&&(m=D.Sv);m!==0&&(jw.oC(D.output,Q.UH,Q.BR,m,D.Y2),D.Y2+=m,Q.BR+=m,D.Lp+=m,D.Sv-=m,Q.pending-=m,Q.pending===0&&(Q.BR=0))};
sj=function(D,Q){var m=D.tT>=0?D.tT:-1,P=D.tU-D.tT,W=0;if(D.level>0){D.pn.gG===2&&(D.pn.gG=ssn(D));MP(D,D.fP);MP(D,D.u$);WHj(D,D.HF,D.fP.AJ);WHj(D,D.bv,D.u$.AJ);MP(D,D.dP);for(W=18;W>=3&&D.E3[LH7[W]*2+1]===0;W--);D.gM+=3*(W+1)+5+5+4;var L=D.gM+3+7>>>3;var u=D.Yc+3+7>>>3;u<=L&&(L=u)}else L=u=P+5;if(P+4<=L&&m!==-1)YR(D,Q?1:0,3),Qsj(D,m,P);else if(D.strategy===4||u===L)YR(D,2+(Q?1:0),3),PQ7(D,W0,ih);else{YR(D,4+(Q?1:0),3);m=D.fP.AJ+1;P=D.u$.AJ+1;W+=1;YR(D,m-257,5);YR(D,P-1,5);YR(D,W-4,4);for(L=0;L<W;L++)YR(D,
D.E3[LH7[L]*2+1],3);ior(D,D.HF,m-1);ior(D,D.bv,P-1);PQ7(D,D.HF,D.bv)}cbh(D);Q&&DKm(D);D.tT=D.tU;P0(D.pn)};
L4=function(D,Q){D.UH[D.pending++]=Q};
uh=function(D,Q){D.UH[D.pending++]=Q>>>8&255;D.UH[D.pending++]=Q&255};
udh=function(D,Q){var m=D.c7,P=D.tU,W=D.Wi,L=D.Tg,u=D.tU>D.OY-262?D.tU-(D.OY-262):0,t=D.window,z=D.T7,b=D.qz,q=D.tU+258,C=t[P+W-1],f=t[P+W];D.Wi>=D.d8&&(m>>=2);L>D.Go&&(L=D.Go);do{var V=Q;if(t[V+W]===f&&t[V+W-1]===C&&t[V]===t[P]&&t[++V]===t[P+1]){P+=2;for(V++;t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&t[++P]===t[++V]&&P<q;);V=258-(q-P);P=q-258;if(V>W){D.La=Q;W=V;if(V>=L)break;C=t[P+W-1];f=t[P+W]}}}while((Q=b[Q&z])>u&&--m!==
0);return W<=D.Go?W:D.Go};
zG=function(D){var Q=D.OY,m;do{var P=D.Lt-D.Go-D.tU;if(D.tU>=Q+(Q-262)){jw.oC(D.window,D.window,Q,Q,0);D.La-=Q;D.tU-=Q;D.tT-=Q;var W=m=D.xC;do{var L=D.head[--W];D.head[W]=L>=Q?L-Q:0}while(--m);W=m=Q;do L=D.qz[--W],D.qz[W]=L>=Q?L-Q:0;while(--m);P+=Q}if(D.pn.e6===0)break;W=D.pn;m=D.window;L=D.tU+D.Go;var u=W.e6;u>P&&(u=P);u===0?m=0:(W.e6-=u,jw.oC(m,W.input,W.w1,u,L),W.state.wrap===1?W.w2=dl(W.w2,m,u,L):W.state.wrap===2&&(W.w2=tR(W.w2,m,u,L)),W.w1+=u,W.Os+=u,m=u);D.Go+=m;if(D.Go+D.MJ>=3)for(P=D.tU-D.MJ,
D.Mj=D.window[P],D.Mj=(D.Mj<<D.zv^D.window[P+1])&D.k$;D.MJ&&!(D.Mj=(D.Mj<<D.zv^D.window[P+3-1])&D.k$,D.qz[P&D.T7]=D.head[D.Mj],D.head[D.Mj]=P,P++,D.MJ--,D.Go+D.MJ<3););}while(D.Go<262&&D.pn.e6!==0)};
bh=function(D,Q){for(var m;;){if(D.Go<262){zG(D);if(D.Go<262&&Q===0)return 1;if(D.Go===0)break}m=0;D.Go>=3&&(D.Mj=(D.Mj<<D.zv^D.window[D.tU+3-1])&D.k$,m=D.qz[D.tU&D.T7]=D.head[D.Mj],D.head[D.Mj]=D.tU);m!==0&&D.tU-m<=D.OY-262&&(D.Nm=udh(D,m));if(D.Nm>=3)if(m=co(D,D.tU-D.La,D.Nm-3),D.Go-=D.Nm,D.Nm<=D.V6&&D.Go>=3){D.Nm--;do D.tU++,D.Mj=(D.Mj<<D.zv^D.window[D.tU+3-1])&D.k$,D.qz[D.tU&D.T7]=D.head[D.Mj],D.head[D.Mj]=D.tU;while(--D.Nm!==0);D.tU++}else D.tU+=D.Nm,D.Nm=0,D.Mj=D.window[D.tU],D.Mj=(D.Mj<<D.zv^
D.window[D.tU+1])&D.k$;else m=co(D,0,D.window[D.tU]),D.Go--,D.tU++;if(m&&(sj(D,!1),D.pn.Sv===0))return 1}D.MJ=D.tU<2?D.tU:2;return Q===4?(sj(D,!0),D.pn.Sv===0?3:4):D.qK&&(sj(D,!1),D.pn.Sv===0)?1:2};
qe=function(D,Q){for(var m,P;;){if(D.Go<262){zG(D);if(D.Go<262&&Q===0)return 1;if(D.Go===0)break}m=0;D.Go>=3&&(D.Mj=(D.Mj<<D.zv^D.window[D.tU+3-1])&D.k$,m=D.qz[D.tU&D.T7]=D.head[D.Mj],D.head[D.Mj]=D.tU);D.Wi=D.Nm;D.Dz=D.La;D.Nm=2;m!==0&&D.Wi<D.V6&&D.tU-m<=D.OY-262&&(D.Nm=udh(D,m),D.Nm<=5&&(D.strategy===1||D.Nm===3&&D.tU-D.La>4096)&&(D.Nm=2));if(D.Wi>=3&&D.Nm<=D.Wi){P=D.tU+D.Go-3;m=co(D,D.tU-1-D.Dz,D.Wi-3);D.Go-=D.Wi-1;D.Wi-=2;do++D.tU<=P&&(D.Mj=(D.Mj<<D.zv^D.window[D.tU+3-1])&D.k$,D.qz[D.tU&D.T7]=
D.head[D.Mj],D.head[D.Mj]=D.tU);while(--D.Wi!==0);D.Dk=0;D.Nm=2;D.tU++;if(m&&(sj(D,!1),D.pn.Sv===0))return 1}else if(D.Dk){if((m=co(D,0,D.window[D.tU-1]))&&sj(D,!1),D.tU++,D.Go--,D.pn.Sv===0)return 1}else D.Dk=1,D.tU++,D.Go--}D.Dk&&(co(D,0,D.window[D.tU-1]),D.Dk=0);D.MJ=D.tU<2?D.tU:2;return Q===4?(sj(D,!0),D.pn.Sv===0?3:4):D.qK&&(sj(D,!1),D.pn.Sv===0)?1:2};
dK7=function(D,Q){for(var m,P,W,L=D.window;;){if(D.Go<=258){zG(D);if(D.Go<=258&&Q===0)return 1;if(D.Go===0)break}D.Nm=0;if(D.Go>=3&&D.tU>0&&(P=D.tU-1,m=L[P],m===L[++P]&&m===L[++P]&&m===L[++P])){for(W=D.tU+258;m===L[++P]&&m===L[++P]&&m===L[++P]&&m===L[++P]&&m===L[++P]&&m===L[++P]&&m===L[++P]&&m===L[++P]&&P<W;);D.Nm=258-(W-P);D.Nm>D.Go&&(D.Nm=D.Go)}D.Nm>=3?(m=co(D,1,D.Nm-3),D.Go-=D.Nm,D.tU+=D.Nm,D.Nm=0):(m=co(D,0,D.window[D.tU]),D.Go--,D.tU++);if(m&&(sj(D,!1),D.pn.Sv===0))return 1}D.MJ=0;return Q===
4?(sj(D,!0),D.pn.Sv===0?3:4):D.qK&&(sj(D,!1),D.pn.Sv===0)?1:2};
t6n=function(D,Q){for(var m;;){if(D.Go===0&&(zG(D),D.Go===0)){if(Q===0)return 1;break}D.Nm=0;m=co(D,0,D.window[D.tU]);D.Go--;D.tU++;if(m&&(sj(D,!1),D.pn.Sv===0))return 1}D.MJ=0;return Q===4?(sj(D,!0),D.pn.Sv===0?3:4):D.qK&&(sj(D,!1),D.pn.Sv===0)?1:2};
C4=function(D,Q,m,P,W){this.zW=D;this.n9W=Q;this.kOv=m;this.Dv0=P;this.func=W};
zo$=function(){this.pn=null;this.status=0;this.UH=null;this.wrap=this.pending=this.BR=this.mZ=0;this.u7=null;this.ZR=0;this.method=8;this.vg=-1;this.T7=this.TD=this.OY=0;this.window=null;this.Lt=0;this.head=this.qz=null;this.Tg=this.d8=this.strategy=this.level=this.V6=this.c7=this.Wi=this.Go=this.La=this.tU=this.Dk=this.Dz=this.Nm=this.tT=this.zv=this.k$=this.zS=this.xC=this.Mj=0;this.HF=new jw.jM(1146);this.bv=new jw.jM(122);this.E3=new jw.jM(78);md(this.HF);md(this.bv);md(this.E3);this.dP=this.u$=
this.fP=null;this.n1=new jw.jM(16);this.iQ=new jw.jM(573);md(this.iQ);this.oT=this.L1=0;this.depth=new jw.jM(573);md(this.depth);this.Af=this.Vo=this.MJ=this.matches=this.Yc=this.gM=this.Pm=this.qK=this.On=this.B8=0};
bow=function(D,Q){if(!D||!D.state||Q>5||Q<0)return D?QC(D,-2):-2;var m=D.state;if(!D.output||!D.input&&D.e6!==0||m.status===666&&Q!==4)return QC(D,D.Sv===0?-5:-2);m.pn=D;var P=m.vg;m.vg=Q;if(m.status===42)if(m.wrap===2)D.w2=0,L4(m,31),L4(m,139),L4(m,8),m.u7?(L4(m,(m.u7.text?1:0)+(m.u7.PZ?2:0)+(m.u7.extra?4:0)+(m.u7.name?8:0)+(m.u7.comment?16:0)),L4(m,m.u7.time&255),L4(m,m.u7.time>>8&255),L4(m,m.u7.time>>16&255),L4(m,m.u7.time>>24&255),L4(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),L4(m,m.u7.os&
255),m.u7.extra&&m.u7.extra.length&&(L4(m,m.u7.extra.length&255),L4(m,m.u7.extra.length>>8&255)),m.u7.PZ&&(D.w2=tR(D.w2,m.UH,m.pending,0)),m.ZR=0,m.status=69):(L4(m,0),L4(m,0),L4(m,0),L4(m,0),L4(m,0),L4(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),L4(m,3),m.status=113);else{var W=8+(m.TD-8<<4)<<8;W|=(m.strategy>=2||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6;m.tU!==0&&(W|=32);m.status=113;uh(m,W+(31-W%31));m.tU!==0&&(uh(m,D.w2>>>16),uh(m,D.w2&65535));D.w2=1}if(m.status===69)if(m.u7.extra){for(W=
m.pending;m.ZR<(m.u7.extra.length&65535)&&(m.pending!==m.mZ||(m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W)),P0(D),W=m.pending,m.pending!==m.mZ));)L4(m,m.u7.extra[m.ZR]&255),m.ZR++;m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W));m.ZR===m.u7.extra.length&&(m.ZR=0,m.status=73)}else m.status=73;if(m.status===73)if(m.u7.name){W=m.pending;do{if(m.pending===m.mZ&&(m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W)),P0(D),W=m.pending,m.pending===m.mZ)){var L=1;break}L=m.ZR<m.u7.name.length?
m.u7.name.charCodeAt(m.ZR++)&255:0;L4(m,L)}while(L!==0);m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W));L===0&&(m.ZR=0,m.status=91)}else m.status=91;if(m.status===91)if(m.u7.comment){W=m.pending;do{if(m.pending===m.mZ&&(m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W)),P0(D),W=m.pending,m.pending===m.mZ)){L=1;break}L=m.ZR<m.u7.comment.length?m.u7.comment.charCodeAt(m.ZR++)&255:0;L4(m,L)}while(L!==0);m.u7.PZ&&m.pending>W&&(D.w2=tR(D.w2,m.UH,m.pending-W,W));L===0&&(m.status=103)}else m.status=
103;m.status===103&&(m.u7.PZ?(m.pending+2>m.mZ&&P0(D),m.pending+2<=m.mZ&&(L4(m,D.w2&255),L4(m,D.w2>>8&255),D.w2=0,m.status=113)):m.status=113);if(m.pending!==0){if(P0(D),D.Sv===0)return m.vg=-1,0}else if(D.e6===0&&(Q<<1)-(Q>4?9:0)<=(P<<1)-(P>4?9:0)&&Q!==4)return QC(D,-5);if(m.status===666&&D.e6!==0)return QC(D,-5);if(D.e6!==0||m.Go!==0||Q!==0&&m.status!==666){P=m.strategy===2?t6n(m,Q):m.strategy===3?dK7(m,Q):ow[m.level].func(m,Q);if(P===3||P===4)m.status=666;if(P===1||P===3)return D.Sv===0&&(m.vg=
-1),0;if(P===2&&(Q===1?(YR(m,2,3),ag(m,256,W0),m.Af===16?(Oh(m,m.Vo),m.Vo=0,m.Af=0):m.Af>=8&&(m.UH[m.pending++]=m.Vo&255,m.Vo>>=8,m.Af-=8)):Q!==5&&(YR(m,0,3),Qsj(m,0,0),Q===3&&(md(m.head),m.Go===0&&(m.tU=0,m.tT=0,m.MJ=0))),P0(D),D.Sv===0))return m.vg=-1,0}if(Q!==4)return 0;if(m.wrap<=0)return 1;m.wrap===2?(L4(m,D.w2&255),L4(m,D.w2>>8&255),L4(m,D.w2>>16&255),L4(m,D.w2>>24&255),L4(m,D.Os&255),L4(m,D.Os>>8&255),L4(m,D.Os>>16&255),L4(m,D.Os>>24&255)):(uh(m,D.w2>>>16),uh(m,D.w2&65535));P0(D);m.wrap>0&&
(m.wrap=-m.wrap);return m.pending!==0?0:1};
f4=function(D){if(!(this instanceof f4))return new f4(D);D=this.options=jw.assign({level:-1,method:8,chunkSize:16384,dQ:15,Ohc:8,strategy:0,to:""},D||{});D.raw&&D.dQ>0?D.dQ=-D.dQ:D.Lf&&D.dQ>0&&D.dQ<16&&(D.dQ+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.pn=new qr_;this.pn.Sv=0;var Q=this.pn;var m=D.level,P=D.method,W=D.dQ,L=D.Ohc,u=D.strategy;if(Q){var t=1;m===-1&&(m=6);W<0?(t=0,W=-W):W>15&&(t=2,W-=16);if(L<1||L>9||P!==8||W<8||W>15||m<0||m>9||u<0||u>4)Q=QC(Q,-2);else{W===8&&(W=9);
var z=new zo$;Q.state=z;z.pn=Q;z.wrap=t;z.u7=null;z.TD=W;z.OY=1<<z.TD;z.T7=z.OY-1;z.zS=L+7;z.xC=1<<z.zS;z.k$=z.xC-1;z.zv=~~((z.zS+3-1)/3);z.window=new jw.LJ(z.OY*2);z.head=new jw.jM(z.xC);z.qz=new jw.jM(z.OY);z.On=1<<L+6;z.mZ=z.On*4;z.UH=new jw.LJ(z.mZ);z.Pm=1*z.On;z.B8=3*z.On;z.level=m;z.strategy=u;z.method=P;if(Q&&Q.state){Q.Os=Q.Lp=0;Q.gG=2;m=Q.state;m.pending=0;m.BR=0;m.wrap<0&&(m.wrap=-m.wrap);m.status=m.wrap?42:113;Q.w2=m.wrap===2?0:1;m.vg=0;if(!CQn){P=Array(16);for(L=u=0;L<28;L++)for(XI[L]=
u,W=0;W<1<<xR[L];W++)pn[u++]=L;pn[u-1]=L;for(L=u=0;L<16;L++)for(GY[L]=u,W=0;W<1<<r2[L];W++)Sw[u++]=L;for(u>>=7;L<30;L++)for(GY[L]=u<<7,W=0;W<1<<r2[L]-7;W++)Sw[256+u++]=L;for(W=0;W<=15;W++)P[W]=0;for(W=0;W<=143;)W0[W*2+1]=8,W++,P[8]++;for(;W<=255;)W0[W*2+1]=9,W++,P[9]++;for(;W<=279;)W0[W*2+1]=7,W++,P[7]++;for(;W<=287;)W0[W*2+1]=8,W++,P[8]++;MT6(W0,287,P);for(W=0;W<30;W++)ih[W*2+1]=5,ih[W*2]=G8w(W,5);o7w=new ew(W0,xR,257,286,15);fVr=new ew(ih,r2,0,30,15);V67=new ew([],NWw,0,19,7);CQn=!0}m.fP=new vo(m.HF,
o7w);m.u$=new vo(m.bv,fVr);m.dP=new vo(m.E3,V67);m.Vo=0;m.Af=0;cbh(m);m=0}else m=QC(Q,-2);m===0&&(Q=Q.state,Q.Lt=2*Q.OY,md(Q.head),Q.V6=ow[Q.level].n9W,Q.d8=ow[Q.level].zW,Q.Tg=ow[Q.level].kOv,Q.c7=ow[Q.level].Dv0,Q.tU=0,Q.tT=0,Q.Go=0,Q.MJ=0,Q.Nm=Q.Wi=2,Q.Dk=0,Q.Mj=0);Q=m}}else Q=-2;if(Q!==0)throw Error(DU[Q]);D.header&&(Q=this.pn)&&Q.state&&Q.state.wrap===2&&(Q.state.u7=D.header);if(D.aD){var b;typeof D.aD==="string"?b=rbu(D.aD):y99.call(D.aD)==="[object ArrayBuffer]"?b=new Uint8Array(D.aD):b=D.aD;
D=this.pn;L=b;u=L.length;if(D&&D.state)if(b=D.state,Q=b.wrap,Q===2||Q===1&&b.status!==42||b.Go)Q=-2;else{Q===1&&(D.w2=dl(D.w2,L,u,0));b.wrap=0;u>=b.OY&&(Q===0&&(md(b.head),b.tU=0,b.tT=0,b.MJ=0),m=new jw.LJ(b.OY),jw.oC(m,L,u-b.OY,b.OY,0),L=m,u=b.OY);m=D.e6;P=D.w1;W=D.input;D.e6=u;D.w1=0;D.input=L;for(zG(b);b.Go>=3;){L=b.tU;u=b.Go-2;do b.Mj=(b.Mj<<b.zv^b.window[L+3-1])&b.k$,b.qz[L&b.T7]=b.head[b.Mj],b.head[b.Mj]=L,L++;while(--u);b.tU=L;b.Go=2;zG(b)}b.tU+=b.Go;b.tT=b.tU;b.MJ=b.Go;b.Go=0;b.Nm=b.Wi=2;
b.Dk=0;D.w1=P;D.input=W;D.e6=m;b.wrap=Q;Q=0}else Q=-2;if(Q!==0)throw Error(DU[Q]);this.sny=!0}};
Zow=function(D,Q){Q=Q||{};Q.Lf=!0;Q=new f4(Q);Q.push(D,!0);if(Q.err)throw Q.msg||DU[Q.err];return Q.result};
FH_=function(){var D=g.e$.apply(0,arguments);return D.length===0?function(Q){return Q}:D.length===1?D[0]:D.reduce(function(Q,m){return function(){return Q(m.apply(null,g.on(g.e$.apply(0,arguments))))}})};
TWP=function(){var D=g.e$.apply(0,arguments);return function(Q){return function(m,P){function W(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
m=Q(m,P);var L={getState:m.getState,dispatch:function(u){return W.apply(null,[u].concat(g.on(g.e$.apply(1,arguments))))}};
P=D.map(function(u){return u(L)});
W=FH_.apply(null,g.on(P))(m.dispatch);return Object.assign({},m,{dispatch:W})}}};
VC=function(){return Math.random().toString(36).substring(7).split("").join(".")};
ho7=function(D){Object.keys(D).forEach(function(Q){var m=D[Q];if(typeof m(void 0,{type:Ne})==="undefined")throw Error('The slice reducer for key "'+Q+"\" 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 m(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+VC()})==="undefined")throw Error('The slice reducer for key "'+
Q+"\" returned undefined when probed with a random type. Don't try to handle '"+(Ne+'\' 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.'));})};
n7j=function(D,Q,m){function P(){if(q)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 t}
function W(V){if(typeof V!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof V+"'");if(q)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 N=!0;b===z&&(b=z.slice());b.push(V);return function(){if(N){if(q)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.");
N=!1;b===z&&(b=z.slice());b.splice(b.indexOf(V),1);z=null}}}
function L(V){if(typeof V!=="object"||V===null)var N=!1;else{for(N=V;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(V)===N}if(!N)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof V+"'. 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 V.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,t=u(t,V)}finally{q=!1}N=z=b;for(var h=0;h<N.length;h++)(0,N[h])();return V}
if(typeof Q==="function"&&typeof m==="function"||typeof m==="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 Q==="function"&&typeof m==="undefined"&&(m=Q,Q=void 0);if(typeof m!=="undefined"){if(typeof m!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof m+"'");return m(n7j)(D,Q)}if(typeof D!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof D+"'");var u=D,t=Q,z=[],b=z,q=!1;L({type:Ne});var C={},f=(C.dispatch=L,C.subscribe=W,C.getState=P,C.replaceReducer=function(V){if(typeof V!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof V);u=V;L({type:E7n});return f},C[g76]=function(){var V={};
return V.subscribe=function(N){function h(){N.next&&N.next(P())}
if(typeof N!=="object"||N===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof N+"'");h();return{unsubscribe:W(h)}},V[g76]=function(){return this},V},C);
return f};
BWm=function(D){return D?(D=D.privateDoNotAccessOrElseSafeScriptWrappedValue)?Q47(D):null:null};
yC=function(D){return D?(D=D.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?cK(D):null:null};
kt$=function(D){D=wNP(D);return bp(D)};
g.ZU=function(D){D=wNP(D);return cK(D)};
wNP=function(D){return D===null?"null":D===void 0?"undefined":D};
J97=function(D){this.SJ=Y2(D)};
IV_=function(D){var Q=D[d[15]](d[11]),m=[-1434380296,-864950816,-1632303841,function(P,W){P=(P%W[d[14]]+W[d[14]])%W[d[14]];W[d[32]](P,1)},
1538008686,-554918238,463731780,1421667475,183188486,d[79],1814322672,321226933,593087916,1949731851,551017517,173045485,function(P,W){W=(W%P[d[14]]+P[d[14]])%P[d[14]];P[d[32]](-W)[d[5]]()[d[48]](function(L){P[d[20]](L)})},
-2123118582,-1457390295,-1083470402,null,1800451375,1704483059,1901827005,function(P,W,L,u,t,z,b){return P(t,z,b)},
-1918584284,function(P,W,L,u,t){return W(L,u,t)},
1178130511,function(P,W,L,u,t,z){return W(u,t,z)},
463443478,function(){for(var P=64,W=[];++P-W[d[14]]-32;)switch(P){case 46:P=95;default:W[d[3]](String[d[13]](P));case 94:case 95:case 96:break;case 123:P-=76;case 92:case 93:continue;case 58:P=44;case 91:}return W},
2061002333,-1413025509,-183830362,-1531515794,2079186170,1588949791,1441264949,-1880391240,function(P,W){W[d[14]]!=0&&(P=(P%W[d[14]]+W[d[14]])%W[d[14]],W[d[32]](0,1,W[d[32]](P,1,W[0])[0]))},
d[40],-1554396616,function(P){throw P;},
400496209,function(P,W){P[d[3]](W)},
1349212855,null,-1417082949,-1727176799,function(P){P[d[5]]()},
631953197,1788112773,1800451375,-2116137766,708181743,-1450438140,Q,function(P,W,L,u,t,z,b,q){return W(L,u,t,z,b,q)},
Q,-1632303841,948910694,-118422903,678517609,-64083757,-458434343,Q,-567563735,1387192096,27977240,function(P,W,L){var u=P[d[14]];L[d[48]](function(t,z,b){this[d[3]](b[z]=P[(P[d[9]](t)-P[d[9]](this[z])+z+u--)%P[d[14]]])},W[d[15]](d[11]))},
function(){for(var P=64,W=[];++P-W[d[14]]-32;){switch(P){case 91:P=44;continue;case 123:P=65;break;case 65:P-=18;continue;case 58:P=96;continue;case 46:P=95}W[d[3]](String[d[13]](P))}return W},
null,function(P,W){if(W[d[14]]!=0){P=(P%W[d[14]]+W[d[14]])%W[d[14]];var L=W[0];W[0]=W[P];W[P]=L}},
1728347102,506884014,function(P){for(var W=P[d[14]];W;)P[d[3]](P[d[32]](--W,1)[0])},
-1434380296,-842120148,-1727176799,-444102719,-447397564,-729525062,889743494,d[72],function(P,W){for(P=(P%W[d[14]]+W[d[14]])%W[d[14]];P--;)W[d[20]](W[d[46]]())},
1538008686,-204306726,-1108041707];m[20]=m;m[46]=m;m[71]=m;if(typeof lV_===d[49])return D;try{try{m[64]==1&&((0,m[28])((0,m[26])((0,m[3])(m[22],m[71]),m[3],m[6],m[20]),m[3],(0,m[75])(m[71]),m[34],m[71]),d[76])||(((0,m[16])(m[56],m[76]),m[84])(m[51],m[20])^(0,m[78])(m[75]))/(0,m[74])(m[15],m[0]),(0,m[32])((0,m[new Date(d[75])/1E3])(),m[19],m[45],m[81])}catch(P){m[29]>=-5&&(0,m[74])(m[40],m[0])}try{m[8]!==3&&(0,m[19])(m[73],m[12]),m[8]!=-2&&(m[43]>4?(0,m[19])(m[60],m[12]):(0,m[19])(m[80],m[12])),m[43]!==
4&&((0,m[19])(m[44],m[12]),(0,m[55])(m[25],m[2]),m[55])(m[23],m[81]),(m[33]<=5||((((0,m[55])(m[20],m[2]),m[71])(m[12]),m[55])(m[29],m[81]),d[11]))&&(0,m[1])((0,m[62])(m[26],m[38]),m[27],(0,m[69])(m[82],m[76]),m[69],m[77],m[33]),m[42]>-6&&(0,m[84])((((0,m[27])((0,m[66])(m[70]),m[30],m[9],m[80]),m[28])(m[30],m[35]),(0,m[28])(m[76],m[9]),(0,m[28])(m[14],m[54])),m[15],((((0,m[73])(m[68],m[54]),m[28])(m[78],m[9]),m[61])(m[26],m[54]),m[5])(m[49],m[20]),m[28],m[43],m[9])}catch(P){(0,m[17])((0,m[28])(m[12],
m[35]),m[80],(0,m[15])((0,m[64])(m[49]),m[58],(0,m[59])(),m[72],m[45]),m[51],m[54]),(0,m[73])(m[82],m[54])}finally{m[21]>=5&&((0,m[58])((0,m[59])(),m[72],m[45]),1)||(0,m[38])(m[35]),m[2]<=6?(((((0,m[14])(m[77],m[new Date(d[12])/1E3]),(0,m[14])(m[87],m[27]),m[17])(m[5],m[79]),m[28])((0,m[72])(m[3],m[73]),m[72],(0,m[72])(m[70],m[73]),m[56],m[84]),m[12])(m[10],m[11])^(0,m[53])(m[9],m[79]))>>>(0,m[60])(m[67],m[new Date(d[71])/1E3]):(((0,m[18])((0,m[41])(m[27],m[67]),m[41],m[64],m[67]),m[48])(m[17],m[67]),
(0,m[41])(m[71],m[72]),m[-527+new Date(d[6])/1E3])(m[48],(0,m[41])(m[88],m[61]),((0,m[41])(m[8],m[4]),m[57])(m[67]),(0,m[41])(m[83],m[67]),m[51],m[24]),m[53]>10&&((0,m[18])((0,m[41])(m[54],m[61]),m[28],m[87],m[29]),d[59])||(0,m[18])((0,m[28])(m[67],m[52]),m[63],(0,m[62])(),m[42],m[72]),m[22]>-9&&(m[23]!=-8&&((0,m[84])(m[72]),1)||(0,m[41])(m[36],m[72]))}try{m[56]<=10&&(m[1]<1&&((0,m[18])((0,m[18])((0,m[18])((0,m[41])(m[78],m[67]),m[41],m[25],m[24]),m[63],(0,m[62])(),m[49],m[4]),m[41],m[74],m[4]),1)||
((((0,m[60])(m[32],m[67]),m[28])(m[4],m[37]),m[60])(m[65],m[4]),m[63])((0,m[14])(),m[49],m[67]))}catch(P){(0,m[41])(m[34],m[87])}}catch(P){return d[42]+D}return Q[d[23]](d[11])};
g.Fn=function(D){this.name=D};
Roj=function(D){this.SJ=Y2(D)};
TG=function(D){this.SJ=Y2(D)};
hR=function(D){this.SJ=Y2(D)};
UK6=function(D){this.SJ=Y2(D)};
n4=function(D){this.SJ=Y2(D)};
Ej=function(D){this.SJ=Y2(D)};
gl=function(D){this.SJ=Y2(D)};
B0=function(D){this.SJ=Y2(D)};
wl=function(D){this.SJ=Y2(D)};
kK=function(D){this.SJ=Y2(D)};
JR=function(D){this.SJ=Y2(D)};
lh=function(D){this.SJ=Y2(D)};
Iw=function(D){this.SJ=Y2(D)};
Rw=function(D){this.SJ=Y2(D)};
Uj=function(D){this.SJ=Y2(D)};
H0=function(D){this.SJ=Y2(D,500)};
K4=function(D){this.SJ=Y2(D)};
jE=function(D){this.SJ=Y2(D)};
Hoj=function(D){this.SJ=Y2(D)};
KHj=function(){return g.Q4("yt.ads.biscotti.lastId_")||""};
jsh=function(D){g.ch("yt.ads.biscotti.lastId_",D)};
Oj=function(){var D=arguments,Q=$K;D.length>1?Q[D[0]]=D[1]:D.length===1&&Object.assign(Q,D[0])};
g.YK=function(D,Q){return D in $K?$K[D]:Q};
aw=function(D){var Q=$K.EXPERIMENT_FLAGS;return Q?Q[D]:void 0};
$KP=function(D){AR.forEach(function(Q){return Q(D)})};
g.xK=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(Q){g.p4(Q)}}:D};
g.p4=function(D){var Q=g.Q4("yt.logging.errors.log");Q?Q(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=g.YK("ERRORS",[]),Q.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),Oj("ERRORS",Q));$KP(D)};
Xn=function(D,Q,m,P,W){var L=g.Q4("yt.logging.errors.log");L?L(D,"WARNING",Q,m,P,void 0,W):(L=g.YK("ERRORS",[]),L.push([D,"WARNING",Q,m,P,void 0,W]),Oj("ERRORS",L))};
SE=function(D,Q){Q=D.split(Q);for(var m={},P=0,W=Q.length;P<W;P++){var L=Q[P].split("=");if(L.length===1&&L[0]||L.length===2)try{var u=eok(L[0]||""),t=eok(L[1]||"");if(u in m){var z=m[u];Array.isArray(z)?g.lv(z,t):m[u]=[z,t]}else m[u]=t}catch(f){var b=f,q=L[0],C=String(SE);b.args=[{key:q,value:L[1],query:D,method:v7$===C?"unchanged":C}];Oon.hasOwnProperty(q)||Xn(b)}}return m};
rl=function(D){var Q=[];g.MQ(D,function(m,P){var W=g.gh(P);g.S2(Array.isArray(m)?m:[m],function(L){L==""?Q.push(W):Q.push(W+"="+g.gh(L))})});
return Q.join("&")};
GG=function(D){D.charAt(0)==="?"&&(D=D.substring(1));return SE(D,"&")};
Me=function(D){return D.split(",").map(function(Q){return GG(Q)})};
g.c0=function(D){return D.indexOf("?")!==-1?(D=(D||"").split("#")[0],D=D.split("?",2),GG(D.length>1?D[1]:D[0])):{}};
DG=function(D,Q){return Yr7(D,Q||{},!0)};
Qk=function(D,Q){return Yr7(D,Q||{},!1)};
Yr7=function(D,Q,m){var P=D.split("#",2);D=P[0];P=P.length>1?"#"+P[1]:"";var W=D.split("?",2);D=W[0];W=GG(W[1]||"");for(var L in Q)if(m||!g.dC(W,L))W[L]=Q[L];return g.oz(D,W)+P};
m6=function(D){if(!Q)var Q=window.location.href;var m=g.LG(D)[1]||null,P=g.uY(D);m&&P?(D=g.LG(D),Q=g.LG(Q),D=D[3]==Q[3]&&D[1]==Q[1]&&D[4]==Q[4]):D=P?g.uY(Q)===P&&(Number(g.LG(Q)[4]||null)||null)===(Number(g.LG(D)[4]||null)||null):!0;return D};
Pd=function(D){D||(D=document.location.href);D=g.LG(D)[1]||null;return D!==null&&D==="https"};
Wd=function(D){D=aVr(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
A9j=function(D){D=aVr(D);return D===null?!1:D[1]==="google"?!0:D[2]==="google"?D[0]==="au"&&D[1]==="com"?!0:D[0]==="uk"&&D[1]==="co"?!0:!1:!1};
aVr=function(D){D=g.uY(D);return D!==null?D.split(".").reverse():null};
eok=function(D){return D&&D.match(pN9)?D:wh(D)};
Lp=function(D){var Q=iS;D=D===void 0?KHj():D;var m=Object,P=m.assign,W=s2(Q);var L=Q.S;try{var u=L.screenX;var t=L.screenY}catch(J){}try{var z=L.outerWidth;var b=L.outerHeight}catch(J){}try{var q=L.innerWidth;var C=L.innerHeight}catch(J){}try{var f=L.screenLeft;var V=L.screenTop}catch(J){}try{q=L.innerWidth,C=L.innerHeight}catch(J){}try{var N=L.screen.availWidth;var h=L.screen.availTop}catch(J){}L=[f,V,u,t,N,h,z,b,q,C];u=m5m(!1,Q.S.top);t={};var B=B===void 0?g.Mu:B;z=new jH;"SVGElement"in B&&"createElementNS"in
B.document&&z.set(0);b=Wxw();b["allow-top-navigation-by-user-activation"]&&z.set(1);b["allow-popups-to-escape-sandbox"]&&z.set(2);B.crypto&&B.crypto.subtle&&z.set(3);"TextDecoder"in B&&"TextEncoder"in B&&z.set(4);B=yb_(z);Q=(t.bc=B,t.bih=u.height,t.biw=u.width,t.brdim=L.join(),t.vis=Wz(Q.C),t.wgl=!!kZ.WebGLRenderingContext,t);m=P.call(m,W,Q);m.ca_type="image";D&&(m.bid=D);return m};
s2=function(D){var Q={};Q.dt=xKk;Q.flash="0";a:{try{var m=D.S.top.location.href}catch(b){D=2;break a}D=m?m===D.C.location.href?0:1:2}Q=(Q.frm=D,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var P=kZ.history.length}catch(b){P=0}Q.u_his=P;var W;Q.u_h=(W=kZ.screen)==null?void 0:W.height;var L;Q.u_w=(L=kZ.screen)==null?void 0:L.width;var u;Q.u_ah=(u=kZ.screen)==null?void 0:u.availHeight;var t;Q.u_aw=(t=kZ.screen)==null?void 0:t.availWidth;var z;Q.u_cd=(z=kZ.screen)==null?void 0:z.colorDepth}catch(b){}return Q};
Srj=function(){if(!XN4)return null;var D=XN4();return"open"in D?D:null};
g.dj=function(D){switch(uS(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
uS=function(D){return D&&"status"in D?D.status:-1};
g.tl=function(D,Q){typeof D==="function"&&(D=g.xK(D));return window.setTimeout(D,Q)};
g.zX=function(D,Q){typeof D==="function"&&(D=g.xK(D));return window.setInterval(D,Q)};
g.bS=function(D){window.clearTimeout(D)};
g.qv=function(D){window.clearInterval(D)};
g.oi=function(D){D=Cp(D);return typeof D==="string"&&D==="false"?!1:!!D};
g.fp=function(D,Q){D=Cp(D);return D===void 0&&Q!==void 0?Q:Number(D||0)};
Vk=function(){return g.YK("EXPERIMENTS_TOKEN","")};
Cp=function(D){return g.YK("EXPERIMENT_FLAGS",{})[D]};
Nv=function(){for(var D=[],Q=g.YK("EXPERIMENTS_FORCED_FLAGS",{}),m=g.T(Object.keys(Q)),P=m.next();!P.done;P=m.next())P=P.value,D.push({key:P,value:String(Q[P])});m=g.YK("EXPERIMENT_FLAGS",{});P=g.T(Object.keys(m));for(var W=P.next();!W.done;W=P.next())W=W.value,W.startsWith("force_")&&Q[W]===void 0&&D.push({key:W,value:String(m[W])});return D};
yk=function(D,Q,m,P,W,L,u,t,z){function b(){(q&&"readyState"in q?q.readyState:0)===4&&Q&&g.xK(Q)(q)}
m=m===void 0?"GET":m;P=P===void 0?"":P;t=t===void 0?!1:t;var q=Srj();if(!q)return null;"onloadend"in q?q.addEventListener("loadend",b,!1):q.onreadystatechange=b;g.oi("debug_forward_web_query_parameters")&&(D=r9j(D));q.open(m,D,!0);L&&(q.responseType=L);u&&(q.withCredentials=!0);m=m==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(W=Gtu(D,W))for(var C in W)q.setRequestHeader(C,W[C]),"content-type"===C.toLowerCase()&&(m=!1);m&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
z&&"onprogress"in q&&(q.onprogress=function(){z(q.responseText)});
if(t&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(D)}catch(f){Xn(f)}}q.send(P);return q};
Gtu=function(D,Q){Q=Q===void 0?{}:Q;var m=m6(D),P=g.YK("INNERTUBE_CLIENT_NAME"),W=g.oi("web_ajax_ignore_global_headers_if_set"),L;for(L in M6$){var u=g.YK(M6$[L]),t=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||u||(u=g.YK("VISITOR_DATA"));var z;if(!(z=!u)){if(!(z=m||(g.uY(D)?!1:!0))){z=D;var b;if(b=g.oi("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY")&&A9j(z))z=dz(z)||"",z=z.split("/"),
z="/"+(z.length>1?z[1]:""),b=z==="/pagead";z=b?!0:!1}z=!z}z||W&&Q[L]!==void 0||P==="TVHTML5_UNPLUGGED"&&t||(Q[L]=u)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(m||!g.uY(D))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(m||!g.uY(D)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(C){}q&&(Q["X-YouTube-Time-Zone"]=q)}document.location.hostname.endsWith("youtubeeducation.com")||!m&&g.uY(D)||(Q["X-YouTube-Ad-Signals"]=
rl(Lp()));return Q};
FN=function(D,Q){Q.method="POST";Q.postParams||(Q.postParams={});return g.ZG(D,Q)};
QXj=function(D,Q){if(window.fetch&&Q.format!=="XML"){var m={method:Q.method||"GET",credentials:"same-origin"};Q.headers&&(m.headers=Q.headers);Q.priority&&(m.priority=Q.priority);D=c9r(D,Q);var P=Dfj(D,Q);P&&(m.body=P);Q.withCredentials&&(m.credentials="include");var W=Q.context||g.Mu,L=!1,u;fetch(D,m).then(function(t){if(!L){L=!0;u&&g.bS(u);var z=t.ok,b=function(q){q=q||{};z?Q.onSuccess&&Q.onSuccess.call(W,q,t):Q.onError&&Q.onError.call(W,q,t);Q.onFinish&&Q.onFinish.call(W,q,t)};
(Q.format||"JSON")==="JSON"&&(z||t.status>=400&&t.status<500)?t.json().then(b,function(){b(null)}):b(null)}}).catch(function(){Q.onError&&Q.onError.call(W,{},{})});
D=Q.timeout||0;Q.onFetchTimeout&&D>0&&(u=g.tl(function(){L||(L=!0,g.bS(u),Q.onFetchTimeout.call(Q.context||g.Mu))},D))}else g.ZG(D,Q)};
g.ZG=function(D,Q){var m=Q.format||"JSON";D=c9r(D,Q);var P=Dfj(D,Q),W=!1,L=mfj(D,function(z){if(!W){W=!0;t&&g.bS(t);var b=g.dj(z),q=null,C=400<=z.status&&z.status<500,f=500<=z.status&&z.status<600;if(b||C||f)q=PfP(D,m,z,Q.convertToSafeHtml);b&&(b=W2_(m,z,q));q=q||{};C=Q.context||g.Mu;b?Q.onSuccess&&Q.onSuccess.call(C,z,q):Q.onError&&Q.onError.call(C,z,q);Q.onFinish&&Q.onFinish.call(C,z,q)}},Q.method,P,Q.headers,Q.responseType,Q.withCredentials,!1,Q.onProgress);
P=Q.timeout||0;if(Q.onTimeout&&P>0){var u=Q.onTimeout;var t=g.tl(function(){W||(W=!0,L.abort(),g.bS(t),u.call(Q.context||g.Mu,L))},P)}return L};
c9r=function(D,Q){Q.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var m=g.YK("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[m]&&delete Q[m],D=DG(D,Q);return D};
Dfj=function(D,Q){var m=g.YK("XSRF_FIELD_NAME"),P=g.YK("XSRF_TOKEN"),W=Q.postBody||"",L=Q.postParams,u=g.YK("XSRF_FIELD_NAME"),t;Q.headers&&(t=Q.headers["Content-Type"]);Q.excludeXsrf||g.uY(D)&&!Q.withCredentials&&g.uY(D)!==document.location.hostname||Q.method!=="POST"||t&&t!=="application/x-www-form-urlencoded"||Q.postParams&&Q.postParams[u]||(L||(L={}),L[m]=P);(g.oi("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof W==="string"&&(W=GG(W),g.VP(W,L),W=Q.postBodyFormat&&
Q.postBodyFormat==="JSON"?JSON.stringify(W):g.CG(W));L=W||L&&!g.b7(L);!iC7&&L&&Q.method!=="POST"&&(iC7=!0,g.p4(Error("AJAX request with postData should use POST")));return W};
PfP=function(D,Q,m,P){var W=null;switch(Q){case "JSON":try{var L=m.responseText}catch(u){throw P=Error("Error reading responseText"),P.params=D,Xn(P),u;}D=m.getResponseHeader("Content-Type")||"";L&&D.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),W=JSON.parse(L));break;case "XML":if(D=(D=m.responseXML)?sX_(D):null)W={},g.S2(D.getElementsByTagName("*"),function(u){W[u.tagName]=L2r(u)})}P&&upP(W);
return W};
upP=function(D){if(g.iv(D))for(var Q in D)Q==="html_content"||O9m(Q,"_html")?D[Q]=bp(D[Q]):upP(D[Q])};
W2_=function(D,Q,m){if(Q&&Q.status===204)return!0;switch(D){case "JSON":return!!m;case "XML":return Number(m&&m.return_code)===0;case "RAW":return!0;default:return!!m}};
sX_=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null};
L2r=function(D){var Q="";g.S2(D.childNodes,function(m){Q+=m.nodeValue});
return Q};
r9j=function(D){var Q=window.location.search,m=g.uY(D);g.oi("debug_handle_relative_url_for_query_forward_killswitch")||!m&&m6(D)&&(m=document.location.hostname);var P=dz(D);P=(m=m&&(m.endsWith("youtube.com")||m.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!m||P)return D;var W=GG(Q),L={};g.S2(dfP,function(u){W[u]&&(L[u]=W[u])});
return Qk(D,L)};
hl=function(D,Q){var m=g.o2(Q),P;return(new g.BN(function(W,L){m.onSuccess=function(u){g.dj(u)?W(new tR7(u)):L(new TX("Request failed, status="+uS(u),"net.badstatus",u))};
m.onError=function(u){L(new TX("Unknown request error","net.unknown",u))};
m.onTimeout=function(u){L(new TX("Request timed out","net.timeout",u))};
P=g.ZG(D,m)})).Fn(function(W){if(W instanceof Rs){var L;
(L=P)==null||L.abort()}return J9(W)})};
g.np=function(D,Q,m,P,W,L){function u(z,b,q){return z.Fn(function(C){if(b<=0||uS(C.xhr)===403)return J9(new TX("Request retried too many times","net.retryexhausted",C.xhr,C));var f=Math.pow(2,m-b+1)*q,V=W>0?Math.min(W,f):f;return t(q).then(function(){L&&L(C,b-1);return u(hl(D,Q),b-1,V)})})}
function t(z){return new g.BN(function(b){setTimeout(b,z)})}
W=W===void 0?-1:W;return u(hl(D,Q),m-1,P)};
TX=function(D,Q,m){o4.call(this,D+", errorCode="+Q);this.errorCode=Q;this.xhr=m;this.name="PromiseAjaxError"};
tR7=function(D){this.xhr=D};
E2=function(D){this.S=D===void 0?null:D;this.T=0;this.C=null};
gj=function(D){var Q=new E2;D=D===void 0?null:D;Q.T=2;Q.C=D===void 0?null:D;return Q};
Bd=function(D){var Q=new E2;D=D===void 0?null:D;Q.T=1;Q.C=D===void 0?null:D;return Q};
g.Jl=function(D,Q,m,P,W){wj||ky.set(""+D,Q,{xE:m,path:"/",domain:P===void 0?"youtube.com":P,secure:W===void 0?!1:W})};
g.lS=function(D,Q){if(!wj)return ky.get(""+D,Q)};
g.Ii=function(D,Q,m){wj||ky.remove(""+D,Q===void 0?"/":Q,m===void 0?"youtube.com":m)};
z0u=function(){if(g.oi("embeds_web_enable_cookie_detection_fix")){if(!g.Mu.navigator.cookieEnabled)return!1}else if(!ky.isEnabled())return!1;if(!ky.isEmpty())return!0;g.oi("embeds_web_enable_cookie_detection_fix")?ky.set("TESTCOOKIESENABLED","1",{xE:60,pOv:"none",secure:!0}):ky.set("TESTCOOKIESENABLED","1",{xE:60});if(ky.get("TESTCOOKIESENABLED")!=="1")return!1;ky.remove("TESTCOOKIESENABLED");return!0};
g.A=function(D,Q){if(D)return D[Q.name]};
Ri=function(D){var Q=g.YK("INNERTUBE_HOST_OVERRIDE");Q&&(D=String(Q)+String(to(D)));return D};
bCu=function(D){var Q={};g.oi("json_condensed_response")&&(Q.prettyPrint="false");return D=Qk(D,Q)};
U2=function(D,Q){var m=m===void 0?{}:m;D={method:Q===void 0?"POST":Q,mode:m6(D)?"same-origin":"cors",credentials:m6(D)?"same-origin":"include"};Q={};for(var P=g.T(Object.keys(m)),W=P.next();!W.done;W=P.next())W=W.value,m[W]&&(Q[W]=m[W]);Object.keys(Q).length>0&&(D.headers=Q);return D};
Hd=function(){var D=/Chrome\/(\d+)/.exec(g.Kg());return D?parseFloat(D[1]):NaN};
Kp=function(){var D=/\sCobalt\/(\S+)\s/.exec(g.Kg());if(!D)return NaN;var Q=[];D=g.T(D[1].split("."));for(var m=D.next();!m.done;m=D.next())m=parseInt(m.value,10),m>=0&&Q.push(m);return parseFloat(Q.join("."))};
$y=function(){return g.j8("android")&&g.j8("chrome")&&!(g.j8("trident/")||g.j8("edge/"))&&!g.j8("cobalt")};
q77=function(){return g.j8("armv7")||g.j8("aarch64")||g.j8("android")};
g.e8=function(){return g.j8("cobalt")};
vd=function(){return g.j8("cobalt")&&g.j8("appletv")};
O2=function(){return g.j8("(ps3; leanback shell)")||g.j8("ps3")&&g.e8()};
Cfk=function(){return g.j8("(ps4; leanback shell)")||g.j8("ps4")&&g.e8()};
g.o5_=function(){return g.e8()&&(g.j8("ps4 vr")||g.j8("ps4 pro vr"))};
Yy=function(){var D=/WebKit\/([0-9]+)/.exec(g.Kg());return!!(D&&parseInt(D[1],10)>=600)};
ai=function(){var D=/WebKit\/([0-9]+)/.exec(g.Kg());return!!(D&&parseInt(D[1],10)>=602)};
fa4=function(){return g.j8("iemobile")||g.j8("windows phone")&&g.j8("edge")};
XN=function(){return(Al||pp)&&g.j8("applewebkit")&&!g.j8("version")&&(!g.j8("safari")||g.j8("gsa/"))};
rj=function(){return g.S8&&g.j8("version/")};
GX=function(){return g.j8("smart-tv")&&g.j8("samsung")};
g.j8=function(D){var Q=g.Kg();return Q?Q.toLowerCase().indexOf(D)>=0:!1};
Mv=function(){return mc7()||XN()||rj()?!0:g.YK("EOM_VISITOR_DATA")?!1:!0};
cd=function(D,Q){return Q===void 0||Q===null?D:Q==="1"||Q===!0||Q===1||Q==="True"?!0:!1};
D5=function(D,Q,m){for(var P in m)if(m[P]==Q)return m[P];return D};
Qx=function(D,Q){return Q===void 0||Q===null?D:Number(Q)};
m9=function(D,Q){return Q===void 0||Q===null?D:Q.toString()};
P5=function(D,Q){if(Q){if(D==="fullwidth")return Infinity;if(D==="fullheight")return 0}return D&&(Q=D.match(VRm))&&(D=Number(Q[2]),Q=Number(Q[1]),!isNaN(D)&&!isNaN(Q)&&D>0)?Q/D:NaN};
W5=function(D){var Q=D.docid||D.video_id||D.videoId||D.id;if(Q)return Q;Q=D.raw_player_response;Q||(D=D.player_response)&&(Q=JSON.parse(D));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null};
Nm9=function(D){return iz(D,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.sI=function(D){return D==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||D==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
iz=function(D,Q){Q=(Q===void 0?0:Q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var m=D.raw_embedded_player_response;if(!m&&(D=D.embedded_player_response))try{m=JSON.parse(D)}catch(P){return Q}return m?D5(Q,m.embeddedPlayerMode,yU7):Q};
uz=function(D){o4.call(this,D.message||D.description||D.name);this.isMissing=D instanceof LU;this.isTimeout=D instanceof TX&&D.errorCode=="net.timeout";this.isCanceled=D instanceof Rs};
LU=function(){o4.call(this,"Biscotti ID is missing from server")};
ZC_=function(){if(g.oi("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Mv())return Error("User has not consented - not fetching biscotti id.");var D=g.YK("PLAYER_VARS",{});if(g.qD(D,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Nm9(D))return Error("Biscotti id fetching has been disabled for pfl.")};
n5m=function(){var D=ZC_();if(D!==void 0)return J9(D);db||(db=hl("//googleads.g.doubleclick.net/pagead/id",F2h).then(Tm7).Fn(function(Q){return h0h(2,Q)}));
return db};
Tm7=function(D){D=D.xhr.responseText;if(!k1(D,")]}'"))throw new LU;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new LU;D=D.id;jsh(D);db=Bd(D);E5$(18E5,2);return D};
h0h=function(D,Q){Q=new uz(Q);jsh("");db=gj(Q);D>0&&E5$(12E4,D-1);throw Q;};
E5$=function(D,Q){g.tl(function(){hl("//googleads.g.doubleclick.net/pagead/id",F2h).then(Tm7,function(m){return h0h(Q,m)}).Fn(g.lX)},D)};
g5w=function(){try{var D=g.Q4("yt.ads.biscotti.getId_");return D?D():n5m()}catch(Q){return J9(Q)}};
w$7=function(D){D&&(D.dataset?D.dataset[Bmm()]="true":Pvr(D))};
kz4=function(D){return D?D.dataset?D.dataset[Bmm()]:D.getAttribute("data-loaded"):null};
Bmm=function(){return JUr.loaded||(JUr.loaded="loaded".replace(/\-([a-z])/g,function(D,Q){return Q.toUpperCase()}))};
laj=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var Q=tJ+"VisibilityState";if(Q in D)return D[Q]};
zP=function(D,Q){var m;v9(D,function(P){m=Q[P];return!!m});
return m};
bz=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return D instanceof Promise?D:Promise.resolve()};
oS=function(D){var Q;g.qZ()?CU()==D&&(Q=document):Q=D;return Q&&(D=zP(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))?(Q=D.call(Q),Q instanceof Promise?Q:Promise.resolve()):Promise.resolve()};
IaP=function(D){return g.y4(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in D})};
R0u=function(){var D=document;return g.y4(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Q){return"on"+Q.toLowerCase()in D})};
g.qZ=function(){return!!zP(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
CU=function(D){D=D===void 0?!1:D;var Q=zP(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null};
fU=function(D){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(D=D||window.event){this.event=D;for(var Q in D)Q in Ufh||(this[Q]=D[Q]);this.scale=D.scale;this.rotation=D.rotation;var m=D.target||D.srcElement;m&&m.nodeType==3&&(m=m.parentNode);this.target=m;var P=D.relatedTarget;
if(P)try{P=P.nodeName?P:null}catch(W){P=null}else this.type=="mouseover"?P=D.fromElement:this.type=="mouseout"&&(P=D.toElement);this.relatedTarget=P;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.S=D.pageX;this.C=D.pageY}}catch(W){}};
HCP=function(D){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;D.S=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.C=D.clientY+Q}};
K2$=function(D,Q,m,P){P=P===void 0?{}:P;D.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return zr(Vx,function(W){var L=typeof W[4]==="boolean"&&W[4]==!!P,u=g.iv(W[4])&&g.iv(P)&&g.Cg(W[4],P);return!!W.length&&W[0]==D&&W[1]==Q&&W[2]==m&&(L||u)})};
g.NZ=function(D,Q,m,P){P=P===void 0?{}:P;if(!D||!D.addEventListener&&!D.attachEvent)return"";var W=K2$(D,Q,m,P);if(W)return W;W=++jXn.count+"";var L=!(Q!="mouseenter"&&Q!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var u=L?function(t){t=new fU(t);if(!na(t.relatedTarget,function(z){return z==D},!0))return t.currentTarget=D,t.type=Q,m.call(D,t)}:function(t){t=new fU(t);
t.currentTarget=D;return m.call(D,t)};
u=g.xK(u);D.addEventListener?(Q=="mouseenter"&&L?Q="mouseover":Q=="mouseleave"&&L?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),$f4()||typeof P==="boolean"?D.addEventListener(Q,u,P):D.addEventListener(Q,u,!!P.capture)):D.attachEvent("on"+Q,u);Vx[W]=[D,Q,m,u,P];return W};
v5u=function(D){return e0n(D,function(Q){return g.Q9(Q,"ytp-ad-has-logging-urls")})};
e0n=function(D,Q){var m=document.body||document;return g.NZ(m,"click",function(P){var W=na(P.target,function(L){return L===m||Q(L)},!0);
W&&W!==m&&!W.disabled&&(P.currentTarget=W,D.call(W,P))})};
g.yx=function(D){D&&(typeof D=="string"&&(D=[D]),g.S2(D,function(Q){if(Q in Vx){var m=Vx[Q],P=m[0],W=m[1],L=m[3];m=m[4];P.removeEventListener?$f4()||typeof m==="boolean"?P.removeEventListener(W,L,m):P.removeEventListener(W,L,!!m.capture):P.detachEvent&&P.detachEvent("on"+W,L);delete Vx[Q]}}))};
Z5=function(D){for(var Q in Vx)Vx[Q][0]==D&&g.yx(Q)};
F7=function(D){D=D||window.event;var Q;D.composedPath&&typeof D.composedPath==="function"?Q=D.composedPath():Q=D.path;Q&&Q.length?D=Q[0]:(D=D||window.event,D=D.target||D.srcElement,D.nodeType==3&&(D=D.parentNode));return D};
TP=function(D){this.U=D;this.S=null;this.B=0;this.N=null;this.J=0;this.C=[];for(D=0;D<4;D++)this.C.push(0);this.T=0;this.Iy=g.NZ(window,"mousemove",(0,g.d$)(this.j,this));this.Z=g.zX((0,g.d$)(this.TO,this),25)};
hJ=function(D){g.v.call(this);this.U=[];this.Kj=D||this};
nU=function(D,Q,m,P){for(var W=0;W<m.length;W++)D.W(Q,m[W],P)};
g.EI=function(D,Q){for(;D.U.length;){var m=D.U.pop(),P=void 0;Q&&OCr()&&(P={passive:!0});m.target.removeEventListener(m.name,m.callback,P)}};
g.wb=function(D,Q,m){var P=m&&m>0?m:0;m=P?Date.now()+P*1E3:0;if((P=P?(0,g.gb)():B5())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{P.set(D,Q,m)}catch(W){P.remove(D)}}};
g.kt=function(D){var Q=B5(),m=(0,g.gb)();if(!Q&&!m||!window.JSON)return null;try{var P=Q.get(D)}catch(W){}if(typeof P!=="string")try{P=m.get(D)}catch(W){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(W){}return P};
Y7u=function(){var D=(0,g.gb)();if(D&&(D=D.C("yt-player-quality")))return D.creation};
g.JJ=function(D){try{var Q=B5(),m=(0,g.gb)();Q&&Q.remove(D);m&&m.remove(D)}catch(P){}};
g.lz=function(){return g.kt("yt-remote-session-screen-id")};
aa6=function(D){var Q=this;this.C=void 0;this.S=!1;D.addEventListener("beforeinstallprompt",function(m){m.preventDefault();Q.C=m});
D.addEventListener("appinstalled",function(){Q.S=!0},{once:!0})};
IS=function(){if(!g.Mu.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Mu.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Mu.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Mu.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Mu.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(D){return"WEB_DISPLAY_MODE_UNKNOWN"}};
RS=function(){this.zr=!0};
AUP=function(){RS.instance||(RS.instance=new RS);return RS.instance};
p$$=function(D){switch(D){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}};
xfj=function(){this.S=g.YK("ALT_PREF_COOKIE_NAME","PREF");this.C=g.YK("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=g.lS(this.S);D&&this.parse(D)};
g.H5=function(){UI||(UI=new xfj);return UI};
g.KU=function(D,Q){return!!((X$P("f"+(Math.floor(Q/31)+1))||0)&1<<Q%31)};
$t=function(D,Q){var m="f"+(Math.floor(D/31)+1);D=1<<D%31;var P=X$P(m)||0;P=Q?P|D:P&~D;P===0?delete j0[m]:(Q=P.toString(16),j0[m]=Q.toString())};
e0=function(D){if(/^f([1-9][0-9]*)$/.test(D))throw Error("ExpectedRegexMatch: "+D);};
v5=function(D){if(!/^\w+$/.test(D))throw Error("ExpectedRegexMismatch: "+D);};
X$P=function(D){D=j0[D]!==void 0?j0[D].toString():null;return D!=null&&/^[A-Fa-f0-9]+$/.test(D)?parseInt(D,16):null};
S7m=function(){var D=g.Mu.navigator;return D?D.connection:void 0};
Gzw=function(){var D=S7m();if(D){var Q=rU6[D.type||"unknown"]||"CONN_UNKNOWN";D=rU6[D.effectiveType||"unknown"]||"CONN_UNKNOWN";Q==="CONN_CELLULAR_UNKNOWN"&&D!=="CONN_UNKNOWN"&&(Q=D);if(Q!=="CONN_UNKNOWN")return Q;if(D!=="CONN_UNKNOWN")return D}};
cU7=function(){var D=S7m();if(D!=null&&D.effectiveType)return MR9.hasOwnProperty(D.effectiveType)?MR9[D.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.OI=function(D){var Q=g.e$.apply(1,arguments);var m=Error.call(this,D);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.args=[].concat(g.on(Q));Object.setPrototypeOf(this,this.constructor.prototype)};
g.aS=function(){try{return g.Yt(),!0}catch(D){return!1}};
g.Yt=function(D){if(g.YK("DATASYNC_ID")!==void 0)return g.YK("DATASYNC_ID");throw new g.OI("Datasync ID not set",D===void 0?"unknown":D);};
AJ=function(){this.S=new WeakMap};
g.xt=function(D,Q,m){return pU(Q,0,m)};
Dp7=function(D){var Q=g.Q4("yt.scheduler.instance.addImmediateJob");Q?Q(D):D()};
X7=function(){AJ.apply(this,arguments)};
g.S0=function(){X7.instance||(X7.instance=new X7);return X7.instance};
g.rb=function(){return!!g.Q4("yt.scheduler.instance")};
pU=function(D,Q,m){m!==void 0&&Number.isNaN(Number(m))&&(m=void 0);var P=g.Q4("yt.scheduler.instance.addJob");return P?P(D,Q,m):m===void 0?(D(),NaN):g.tl(D,m||0)};
GP=function(D){var Q=g.Q4("yt.scheduler.instance.setPriorityThreshold");Q&&Q(D)};
MZ=function(D){this.S=(D=g.Ig(D))?new Eh(D):null;this.C=document.domain||window.location.hostname};
DH=function(){var D;return(D=c5())==null?void 0:D.get("LAST_RESULT_ENTRY_KEY",!0)};
QO6=function(){var D={};for(Qe=new mD(D.handleError===void 0?PD:D.handleError,D.logEvent===void 0?g.WD:D.logEvent);i8.length>0;)switch(D=i8.shift(),D.type){case "ERROR":Qe.LF(D.payload);break;case "EVENT":Qe.logEvent(D.eventType,D.payload)}};
Lr=function(D){s4||(Qe?Qe.LF(D):(i8.push({type:"ERROR",payload:D}),i8.length>10&&i8.shift()))};
u8=function(D,Q){s4||(Qe?Qe.logEvent(D,Q):(i8.push({type:"EVENT",eventType:D,payload:Q}),i8.length>10&&i8.shift()))};
dV=function(D){if(D.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
tk=function(D){return D.substr(0,D.indexOf(":"))||D};
g.z3=function(D,Q,m,P,W){Q=Q===void 0?{}:Q;m=m===void 0?mpm[D]:m;P=P===void 0?PDu[D]:P;W=W===void 0?Wq6[D]:W;g.OI.call(this,m,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},Q));this.type=D;this.message=m;this.level=P;this.S=W;Object.setPrototypeOf(this,g.z3.prototype)};
b8=function(D,Q){g.z3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:D},mpm.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,b8.prototype)};
qT=function(D,Q){var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.index=D;this.objectStore=Q;Object.setPrototypeOf(this,qT.prototype)};
oW=function(D,Q,m,P){Q=tk(Q);var W=D instanceof Error?D:Error("Unexpected error: "+D);if(W instanceof g.z3)return W;D={objectStoreNames:m,dbName:Q,dbVersion:P};if(W.name==="QuotaExceededError")return new g.z3("QUOTA_EXCEEDED",D);if(g.Cr&&W.name==="UnknownError")return new g.z3("QUOTA_MAYBE_EXCEEDED",D);if(W instanceof qT)return new g.z3("MISSING_INDEX",Object.assign({},D,{objectStore:W.objectStore,index:W.index}));if(W.name==="InvalidStateError"&&iJn.some(function(L){return W.message.includes(L)}))return new g.z3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
D);
if(W.name==="AbortError")return new g.z3("UNKNOWN_ABORT",D,W.message);W.args=[Object.assign({},D,{name:"IdbError",Kx:W.name})];W.level="WARNING";return W};
g.fr=function(D,Q,m){var P=DH();return new g.z3("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:Q,version:m,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})};
sOr=function(D){if(!D)throw Error();throw D;};
Lqn=function(D){return D};
Ve=function(D){this.S=D};
g.NT=function(D){function Q(W){if(P.state.status==="PENDING"){P.state={status:"REJECTED",reason:W};W=g.T(P.C);for(var L=W.next();!L.done;L=W.next())L=L.value,L()}}
function m(W){if(P.state.status==="PENDING"){P.state={status:"FULFILLED",value:W};W=g.T(P.S);for(var L=W.next();!L.done;L=W.next())L=L.value,L()}}
var P=this;this.state={status:"PENDING"};this.S=[];this.C=[];D=D.S;try{D(m,Q)}catch(W){Q(W)}};
uY6=function(D,Q,m,P,W){try{if(D.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=m(D.state.value);L instanceof g.NT?ye(D,Q,L,P,W):P(L)}catch(u){W(u)}};
dpm=function(D,Q,m,P,W){try{if(D.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=m(D.state.reason);L instanceof g.NT?ye(D,Q,L,P,W):P(L)}catch(u){W(u)}};
ye=function(D,Q,m,P,W){Q===m?W(new TypeError("Circular promise chain detected.")):m.then(function(L){L instanceof g.NT?ye(D,Q,L,P,W):P(L)},function(L){W(L)})};
tHw=function(D,Q,m){function P(){m(D.error);L()}
function W(){Q(D.result);L()}
function L(){try{D.removeEventListener("success",W),D.removeEventListener("error",P)}catch(u){}}
D.addEventListener("success",W);D.addEventListener("error",P)};
z19=function(D){return new Promise(function(Q,m){tHw(D,Q,m)})};
ZH=function(D){return new g.NT(new Ve(function(Q,m){tHw(D,Q,m)}))};
Fq=function(D,Q){return new g.NT(new Ve(function(m,P){function W(){var L=D?Q(D):null;L?L.then(function(u){D=u;W()},P):m()}
W()}))};
bJm=function(D,Q){this.request=D;this.cursor=Q};
qvn=function(D){return ZH(D).then(function(Q){return Q?new bJm(D,Q):null})};
g.CD7=function(D){D.cursor.continue(void 0);return qvn(D.request)};
oG_=function(D,Q){this.S=D;this.options=Q;this.transactionCount=0;this.T=Math.round((0,g.T3)());this.C=!1};
hk=function(){return g.oi("idb_immediate_commit")};
g.E4=function(D,Q,m){D=D.S.createObjectStore(Q,m);return new nr(D)};
gV=function(D,Q){D.S.objectStoreNames.contains(Q)&&D.S.deleteObjectStore(Q)};
g.kD=function(D,Q,m){return g.BD(D,[Q],{mode:"readwrite",wB:!0,commit:hk()},function(P){return g.wV(P.objectStore(Q),m)})};
g.BD=function(D,Q,m,P){var W,L,u,t,z,b,q,C,f,V,N,h;return g.U(function(B){switch(B.C){case 1:var J={mode:"readonly",wB:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof m==="string"?J.mode=m:Object.assign(J,m);W=J;D.transactionCount++;L=W.wB?3:1;u=0;case 2:if(t){B.Nv(4);break}u++;z=Math.round((0,g.T3)());g.h4(B,5);b=D.S.transaction(Q,W.mode);J=!!W.commit;var k=new Jk(b);J=fI9(k,P,J);return g.I(B,J,7);case 7:return q=B.S,C=Math.round((0,g.T3)()),VH6(D,z,C,u,void 0,Q.join(),W),B.return(q);case 5:f=g.w7(B);
V=Math.round((0,g.T3)());N=oW(f,D.S.name,Q.join(),D.S.version);if((h=N instanceof g.z3&&!N.S)||u>=L)VH6(D,z,V,u,N,Q.join(),W),t=N;B.Nv(2);break;case 4:return B.return(Promise.reject(t))}})};
VH6=function(D,Q,m,P,W,L,u){Q=m-Q;W?(W instanceof g.z3&&(W.type==="QUOTA_EXCEEDED"||W.type==="QUOTA_MAYBE_EXCEEDED")&&u8("QUOTA_EXCEEDED",{dbName:tk(D.S.name),objectStoreNames:L,transactionCount:D.transactionCount,transactionMode:u.mode}),W instanceof g.z3&&W.type==="UNKNOWN_ABORT"&&(m-=D.T,m<0&&m>=2147483648&&(m=0),u8("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:Q,transactionCount:D.transactionCount,dbDuration:m}),D.C=!0),Ntr(D,!1,P,L,Q,u.tag),Lr(W)):Ntr(D,!0,P,L,Q,
u.tag)};
Ntr=function(D,Q,m,P,W,L){u8("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:D.C,duration:W,isSuccessful:Q,tryCount:m,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})};
nr=function(D){this.S=D};
g.l8=function(D,Q,m){D.S.createIndex(Q,m,{unique:!1})};
yN$=function(D,Q){return g.IW(D,{query:Q},function(m){return m.delete().then(function(){return g.RW(m)})}).then(function(){})};
ZJu=function(D,Q,m){var P=[];return g.IW(D,{query:Q},function(W){if(!(m!==void 0&&P.length>=m))return P.push(W.getValue()),g.RW(W)}).then(function(){return P})};
Tt4=function(D){return"getAllKeys"in IDBObjectStore.prototype?ZH(D.S.getAllKeys(void 0,void 0)):Fqr(D)};
Fqr=function(D){var Q=[];return g.h16(D,{query:void 0},function(m){Q.push(m.cursor.primaryKey);return g.CD7(m)}).then(function(){return Q})};
g.wV=function(D,Q,m){return ZH(D.S.put(Q,m))};
g.IW=function(D,Q,m){D=D.S.openCursor(Q.query,Q.direction);return U4(D).then(function(P){return Fq(P,m)})};
g.h16=function(D,Q,m){var P=Q.query;Q=Q.direction;D="openKeyCursor"in IDBObjectStore.prototype?D.S.openKeyCursor(P,Q):D.S.openCursor(P,Q);return qvn(D).then(function(W){return Fq(W,m)})};
Jk=function(D){var Q=this;this.S=D;this.T=new Map;this.C=!1;this.done=new Promise(function(m,P){Q.S.addEventListener("complete",function(){m()});
Q.S.addEventListener("error",function(W){W.currentTarget===W.target&&P(Q.S.error)});
Q.S.addEventListener("abort",function(){var W=Q.S.error;if(W)P(W);else if(!Q.C){W=g.z3;for(var L=Q.S.objectStoreNames,u=[],t=0;t<L.length;t++){var z=L.item(t);if(z===null)throw Error("Invariant: item in DOMStringList is null");u.push(z)}W=new W("UNKNOWN_ABORT",{objectStoreNames:u.join(),dbName:Q.S.db.name,mode:Q.S.mode});P(W)}})})};
fI9=function(D,Q,m){var P=new Promise(function(W,L){try{var u=Q(D);m&&D.commit();u.then(function(t){W(t)}).catch(L)}catch(t){L(t),D.abort()}});
return Promise.all([P,D.done]).then(function(W){return g.T(W).next().value})};
nGj=function(D){this.S=D};
EGn=function(D,Q,m){var P=[];return g.HD(D,{query:Q},function(W){if(!(m!==void 0&&P.length>=m))return P.push(W.getValue()),g.RW(W)}).then(function(){return P})};
g.HD=function(D,Q,m){D=D.S.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return U4(D).then(function(P){return Fq(P,m)})};
Kr=function(D,Q){this.request=D;this.cursor=Q};
U4=function(D){return ZH(D).then(function(Q){return Q?new Kr(D,Q):null})};
g.RW=function(D){D.cursor.continue(void 0);return U4(D.request)};
gG7=function(D,Q,m){return new Promise(function(P,W){function L(){f||(f=new oG_(u.result,{closed:C}));return f}
var u=Q!==void 0?self.indexedDB.open(D,Q):self.indexedDB.open(D);var t=m.blocked,z=m.blocking,b=m.ANy,q=m.upgrade,C=m.closed,f;u.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(u.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");V.dataLoss&&V.dataLoss!=="none"&&u8("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:tk(D)});var N=L(),h=new Jk(u.transaction);
q&&q(N,function(B){return V.oldVersion<B&&V.newVersion>=B},h);
h.done.catch(function(B){W(B)})}catch(B){W(B)}});
u.addEventListener("success",function(){var V=u.result;z&&V.addEventListener("versionchange",function(){z(L())});
V.addEventListener("close",function(){u8("IDB_UNEXPECTEDLY_CLOSED",{dbName:tk(D),dbVersion:V.version});b&&b()});
P(L())});
u.addEventListener("error",function(){W(u.error)});
t&&u.addEventListener("blocked",function(){t()})})};
Btu=function(D,Q,m){m=m===void 0?{}:m;return gG7(D,Q,m)};
$D=function(D,Q){Q=Q===void 0?{}:Q;var m,P,W,L;return g.U(function(u){if(u.C==1)return g.h4(u,2),m=self.indexedDB.deleteDatabase(D),P=Q,(W=P.blocked)&&m.addEventListener("blocked",function(){W()}),g.I(u,z19(m),4);
if(u.C!=2)return g.g7(u,0);L=g.w7(u);throw oW(L,D,"",-1);})};
ea=function(D,Q){this.name=D;this.options=Q;this.T=!0;this.J=this.B=0};
wVh=function(D,Q){return new g.z3("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:Q})};
g.vD=function(D,Q){if(!Q)throw g.fr("openWithToken",tk(D.name));return D.open()};
kpu=function(D,Q){var m;return g.U(function(P){if(P.C==1)return g.I(P,g.vD(O4,Q),2);m=P.S;return P.return(g.BD(m,["databases"],{wB:!0,mode:"readwrite"},function(W){var L=W.objectStore("databases");return L.get(D.actualName).then(function(u){if(u?D.actualName!==u.actualName||D.publicName!==u.publicName||D.userIdentifier!==u.userIdentifier:1)return g.wV(L,D).then(function(){})})}))})};
YD=function(D,Q){var m;return g.U(function(P){if(P.C==1)return D?g.I(P,g.vD(O4,Q),2):P.return();m=P.S;return P.return(m.delete("databases",D))})};
JN6=function(D,Q){var m,P;return g.U(function(W){return W.C==1?(m=[],g.I(W,g.vD(O4,Q),2)):W.C!=3?(P=W.S,g.I(W,g.BD(P,["databases"],{wB:!0,mode:"readonly"},function(L){m.length=0;return g.IW(L.objectStore("databases"),{},function(u){D(u.getValue())&&m.push(u.getValue());return g.RW(u)})}),3)):W.return(m)})};
lI7=function(D,Q){return JN6(function(m){return m.publicName===D&&m.userIdentifier!==void 0},Q)};
II7=function(){var D,Q,m,P;return g.U(function(W){switch(W.C){case 1:D=DH();if((Q=D)==null?0:Q.hasSucceededOnce)return W.return(!0);if(aW&&Yy()&&!ai()||g.Ak)return W.return(!1);try{if(m=self,!(m.indexedDB&&m.IDBIndex&&m.IDBKeyRange&&m.IDBObjectStore))return W.return(!1)}catch(L){return W.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return W.return(!1);g.h4(W,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.I(W,kpu(P,pr),4);case 4:return g.I(W,YD("yt-idb-test-do-not-use",pr),5);case 5:return W.return(!0);case 2:return g.w7(W),W.return(!1)}})};
R1h=function(){if(xD!==void 0)return xD;s4=!0;return xD=II7().then(function(D){s4=!1;var Q;if((Q=c5())!=null&&Q.S){var m;Q={hasSucceededOnce:((m=DH())==null?void 0:m.hasSucceededOnce)||D};var P;(P=c5())==null||P.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return D})};
Xq=function(){return g.Q4("ytglobal.idbToken_")||void 0};
g.Sa=function(){var D=Xq();return D?Promise.resolve(D):R1h().then(function(Q){(Q=Q?pr:void 0)&&g.ch("ytglobal.idbToken_",Q);return Q})};
Uph=function(D){if(!g.aS())throw D=new g.z3("AUTH_INVALID",{dbName:D}),Lr(D),D;var Q=g.Yt();return{actualName:D+":"+Q,publicName:D,userIdentifier:Q}};
HJh=function(D,Q,m,P){var W,L,u,t,z,b;return g.U(function(q){switch(q.C){case 1:return L=(W=Error().stack)!=null?W:"",g.I(q,g.Sa(),2);case 2:u=q.S;if(!u)throw t=g.fr("openDbImpl",D,Q),g.oi("ytidb_async_stack_killswitch")||(t.stack=t.stack+"\n"+L.substring(L.indexOf("\n")+1)),Lr(t),t;dV(D);z=m?{actualName:D,publicName:D,userIdentifier:void 0}:Uph(D);g.h4(q,3);return g.I(q,kpu(z,u),5);case 5:return g.I(q,Btu(z.actualName,Q,P),6);case 6:return q.return(q.S);case 3:return b=g.w7(q),g.h4(q,7),g.I(q,YD(z.actualName,
u),9);case 9:g.g7(q,8);break;case 7:g.w7(q);case 8:throw b;}})};
Kq7=function(D,Q,m){m=m===void 0?{}:m;return HJh(D,Q,!1,m)};
jO4=function(D,Q,m){m=m===void 0?{}:m;return HJh(D,Q,!0,m)};
$p6=function(D,Q){Q=Q===void 0?{}:Q;var m,P;return g.U(function(W){if(W.C==1)return g.I(W,g.Sa(),2);if(W.C!=3){m=W.S;if(!m)return W.return();dV(D);P=Uph(D);return g.I(W,$D(P.actualName,Q),3)}return g.I(W,YD(P.actualName,m),0)})};
e1n=function(D,Q,m){D=D.map(function(P){return g.U(function(W){return W.C==1?g.I(W,$D(P.actualName,Q),2):g.I(W,YD(P.actualName,m),0)})});
return Promise.all(D).then(function(){})};
vG$=function(D){var Q=Q===void 0?{}:Q;var m,P;return g.U(function(W){if(W.C==1)return g.I(W,g.Sa(),2);if(W.C!=3){m=W.S;if(!m)return W.return();dV(D);return g.I(W,lI7(D,m),3)}P=W.S;return g.I(W,e1n(P,Q,m),0)})};
OJP=function(D,Q){Q=Q===void 0?{}:Q;var m;return g.U(function(P){if(P.C==1)return g.I(P,g.Sa(),2);if(P.C!=3){m=P.S;if(!m)return P.return();dV(D);return g.I(P,$D(D,Q),3)}return g.I(P,YD(D,m),0)})};
rV=function(D,Q){ea.call(this,D,Q);this.options=Q;dV(D)};
Yv9=function(D,Q){var m;return function(){m||(m=new rV(D,Q));return m}};
g.G3=function(D,Q){return Yv9(D,Q)};
MT=function(D){return g.vD(aIh(),D)};
ANn=function(D,Q,m,P){var W,L,u;return g.U(function(t){switch(t.C){case 1:return W={config:D,hashData:Q,timestamp:P!==void 0?P:(0,g.T3)()},g.I(t,MT(m),2);case 2:return L=t.S,g.I(t,L.clear("hotConfigStore"),3);case 3:return g.I(t,g.kD(L,"hotConfigStore",W),4);case 4:return u=t.S,t.return(u)}})};
pVr=function(D,Q,m,P,W){var L,u,t;return g.U(function(z){switch(z.C){case 1:return L={config:D,hashData:Q,configData:m,timestamp:W!==void 0?W:(0,g.T3)()},g.I(z,MT(P),2);case 2:return u=z.S,g.I(z,u.clear("coldConfigStore"),3);case 3:return g.I(z,g.kD(u,"coldConfigStore",L),4);case 4:return t=z.S,z.return(t)}})};
xp_=function(D){var Q,m;return g.U(function(P){return P.C==1?g.I(P,MT(D),2):P.C!=3?(Q=P.S,m=void 0,g.I(P,g.BD(Q,["coldConfigStore"],{mode:"readwrite",wB:!0},function(W){return g.HD(W.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){m=L.getValue()})}),3)):P.return(m)})};
XVk=function(D){var Q,m;return g.U(function(P){return P.C==1?g.I(P,MT(D),2):P.C!=3?(Q=P.S,m=void 0,g.I(P,g.BD(Q,["hotConfigStore"],{mode:"readwrite",wB:!0},function(W){return g.HD(W.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){m=L.getValue()})}),3)):P.return(m)})};
Svh=function(){return g.U(function(D){return g.I(D,vG$("ytGcfConfig"),0)})};
cD=function(){g.v.call(this);this.C=[];this.S=[];var D=g.Q4("yt.gcf.config.hotUpdateCallbacks");D?(this.C=[].concat(g.on(D)),this.S=D):(this.S=[],g.ch("yt.gcf.config.hotUpdateCallbacks",this.S))};
iI=function(){var D=this;this.J=!1;this.T=this.B=0;this.N=new cD;this.It={IK9:function(){D.J=!0},
COF:function(){return D.S},
K3D:function(Q){Dh(D,Q)},
JE:function(Q){D.JE(Q)},
doO:function(Q){Q_(D,Q)},
Eo:function(){return D.coldHashData},
Cf:function(){return D.hotHashData},
O10:function(){return D.C},
KWD:function(){return mV()},
n$z:function(){return Pf()},
Drq:function(){return g.Q4("yt.gcf.config.coldHashData")},
Nmh:function(){return g.Q4("yt.gcf.config.hotHashData")},
qDc:function(){rN6(D)},
fKv:function(){D.JE(void 0);Wf(D);delete iI.instance},
hr9:function(Q){D.T=Q},
hl0:function(){return D.T}}};
Gp7=function(){if(!iI.instance){var D=new iI;iI.instance=D}return iI.instance};
DPk=function(D){var Q;g.U(function(m){if(m.C==1)return g.oi("start_client_gcf")||g.oi("delete_gcf_config_db")?g.oi("start_client_gcf")?g.I(m,g.Sa(),3):m.Nv(2):m.return();m.C!=2&&((Q=m.S)&&g.aS()&&!g.oi("delete_gcf_config_db")?(D.J=!0,rN6(D)):(MHh(D),cN7(D)));return g.oi("delete_gcf_config_db")?g.I(m,Svh(),0):m.Nv(0)})};
LR=function(){var D;return(D=Pf())!=null?D:g.YK("RAW_HOT_CONFIG_GROUP")};
Qgu=function(D){var Q,m,P,W,L,u;return g.U(function(t){switch(t.C){case 1:if(D.C)return t.return(Pf());if(!D.J)return Q=g.fr("getHotConfig IDB not initialized"),Xn(Q),t.return(Promise.reject(Q));m=Xq();P=g.YK("TIME_CREATED_MS");if(!m){W=g.fr("getHotConfig token error");Xn(W);t.Nv(2);break}return g.I(t,XVk(m),3);case 3:if((L=t.S)&&L.timestamp>P)return Dh(D,L.config),D.JE(L.hashData),t.return(Pf());case 2:cN7(D);if(!(m&&D.C&&D.hotHashData)){t.Nv(4);break}return g.I(t,ANn(D.C,D.hotHashData,m,P),4);case 4:return D.C?
t.return(Pf()):(u=new g.OI("Config not available in ytConfig"),Xn(u),t.return(Promise.reject(u)))}})};
PT6=function(D){var Q,m,P,W,L,u;return g.U(function(t){switch(t.C){case 1:if(D.S)return t.return(mV());if(!D.J)return Q=g.fr("getColdConfig IDB not initialized"),Xn(Q),t.return(Promise.reject(Q));m=Xq();P=g.YK("TIME_CREATED_MS");if(!m){W=g.fr("getColdConfig");Xn(W);t.Nv(2);break}return g.I(t,xp_(m),3);case 3:if((L=t.S)&&L.timestamp>P)return Q_(D,L.config),mPP(D,L.configData),Wf(D,L.hashData),t.return(mV());case 2:MHh(D);if(!(m&&D.S&&D.coldHashData&&D.configData)){t.Nv(4);break}return g.I(t,pVr(D.S,
D.coldHashData,D.configData,m,P),4);case 4:return D.S?t.return(mV()):(u=new g.OI("Config not available in ytConfig"),Xn(u),t.return(Promise.reject(u)))}})};
rN6=function(D){if(!D.C||!D.S){if(!Xq()){var Q=g.fr("scheduleGetConfigs");Xn(Q)}D.B||(D.B=g.KJ.Gm(function(){return g.U(function(m){switch(m.C){case 1:return g.h4(m,2),g.I(m,Qgu(D),4);case 4:g.g7(m,3);break;case 2:g.w7(m);case 3:return g.h4(m,5),g.I(m,PT6(D),7);case 7:g.g7(m,6);break;case 5:g.w7(m);case 6:D.B&&(D.B=0),g.T7(m)}})},100))}};
WQk=function(D,Q,m){var P,W,L;return g.U(function(u){switch(u.C){case 1:if(!g.oi("start_client_gcf")){u.Nv(0);break}m&&Dh(D,m);D.JE(Q);P=Xq();if(!P){u.Nv(3);break}if(m){u.Nv(4);break}return g.I(u,XVk(P),5);case 5:W=u.S,m=(L=W)==null?void 0:L.config;case 4:return g.I(u,ANn(m,Q,P),3);case 3:if(m)for(var t=m,z=g.T(D.N.S),b=z.next();!b.done;b=z.next())b=b.value,b(t);g.T7(u)}})};
in_=function(D,Q,m){var P,W,L,u;return g.U(function(t){if(t.C==1){if(!g.oi("start_client_gcf"))return t.Nv(0);Wf(D,Q);return(P=Xq())?m?t.Nv(4):g.I(t,xp_(P),5):t.Nv(0)}t.C!=4&&(W=t.S,m=(L=W)==null?void 0:L.config);if(!m)return t.Nv(0);u=m.configData;return g.I(t,pVr(m,Q,u,P),0)})};
sg_=function(){var D=Gp7(),Q=(0,g.T3)()-D.T;if(!(D.T!==0&&Q<g.fp("send_config_hash_timer"))){Q=g.Q4("yt.gcf.config.coldConfigData");var m=g.Q4("yt.gcf.config.hotHashData"),P=g.Q4("yt.gcf.config.coldHashData");Q&&m&&P&&(D.T=(0,g.T3)());return{coldConfigData:Q,hotHashData:m,coldHashData:P}}};
MHh=function(D){Q_(D,g.YK("RAW_COLD_CONFIG_GROUP"));Wf(D,g.YK("SERIALIZED_COLD_HASH_DATA"));var Q;mPP(D,(Q=D.S)==null?void 0:Q.configData)};
cN7=function(D){Dh(D,g.YK("RAW_HOT_CONFIG_GROUP"));D.JE(g.YK("SERIALIZED_HOT_HASH_DATA"))};
Dh=function(D,Q){D.C=Q;g.ch("yt.gcf.config.hotConfigGroup",D.C||null)};
Q_=function(D,Q){D.S=Q;g.ch("yt.gcf.config.coldConfigGroup",D.S||null)};
Wf=function(D,Q){D.coldHashData=Q;g.ch("yt.gcf.config.coldHashData",D.coldHashData||null)};
mPP=function(D,Q){D.configData=Q;g.ch("yt.gcf.config.coldConfigData",D.configData||null)};
Pf=function(){return g.Q4("yt.gcf.config.hotConfigGroup")};
mV=function(){return g.Q4("yt.gcf.config.coldConfigGroup")};
LQP=function(){return"INNERTUBE_API_KEY"in $K&&"INNERTUBE_API_VERSION"in $K};
g.uI=function(){return{innertubeApiKey:g.YK("INNERTUBE_API_KEY"),innertubeApiVersion:g.YK("INNERTUBE_API_VERSION"),Aq:g.YK("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),pN:g.YK("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),iZ:g.YK("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.YK("INNERTUBE_CONTEXT_CLIENT_VERSION"),GS:g.YK("INNERTUBE_CONTEXT_HL"),Yi:g.YK("INNERTUBE_CONTEXT_GL"),Z1:g.YK("INNERTUBE_HOST_OVERRIDE")||"",PX:!!g.YK("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),un:!!g.YK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.YK("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.dk=function(D){var Q={client:{hl:D.GS,gl:D.Yi,clientName:D.pN,clientVersion:D.innertubeContextClientVersion,configInfo:D.Aq}};navigator.userAgent&&(Q.client.userAgent=String(navigator.userAgent));var m=g.Mu.devicePixelRatio;m&&m!=1&&(Q.client.screenDensityFloat=String(m));m=Vk();m!==""&&(Q.client.experimentsToken=m);m=Nv();m.length>0&&(Q.request={internalExperimentFlags:m});uIw(D,void 0,Q);dP6(void 0,Q);twr(void 0,Q);zXw(D,void 0,Q);bnP(void 0,Q);g.oi("start_client_gcf")&&qhj(void 0,Q);g.YK("DELEGATED_SESSION_ID")&&
!g.oi("pageid_as_header_web")&&(Q.user={onBehalfOfUser:g.YK("DELEGATED_SESSION_ID")});!g.oi("fill_delegate_context_in_gel_killswitch")&&(D=g.YK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:D}));D=g.YK("INNERTUBE_CONTEXT");var P;if(g.oi("enable_persistent_device_token")&&(D==null?0:(P=D.client)==null?0:P.rolloutToken)){var W;Q.client.rolloutToken=D==null?void 0:(W=D.client)==null?void 0:W.rolloutToken}P=Object;W=P.assign;D=Q.client;
m={};for(var L=g.T(Object.entries(GG(g.YK("DEVICE","")))),u=L.next();!u.done;u=L.next()){var t=g.T(u.value);u=t.next().value;t=t.next().value;u==="cbrand"?m.deviceMake=t:u==="cmodel"?m.deviceModel=t:u==="cbr"?m.browserName=t:u==="cbrver"?m.browserVersion=t:u==="cos"?m.osName=t:u==="cosver"?m.osVersion=t:u==="cplatform"&&(m.platform=t)}Q.client=W.call(P,D,m);return Q};
uIw=function(D,Q,m){D=D.pN;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(Q){m=TE(Q,hR,96)||new hR;var P=IS();P=Object.keys(CT_).indexOf(P);P=P===-1?null:P;P!==null&&KB(m,3,P);nB(Q,hR,96,m)}else m&&(m.client.mainAppWebInfo=(P=m.client.mainAppWebInfo)!=null?P:{},m.client.mainAppWebInfo.webDisplayMode=IS())};
dP6=function(D,Q){var m=g.Q4("yt.embedded_player.embed_url");m&&(D?(Q=TE(D,wl,7)||new wl,Ub(Q,4,m),nB(D,wl,7,Q)):Q&&(Q.thirdParty={embedUrl:m}))};
twr=function(D,Q){var m;if(g.oi("web_log_memory_total_kbytes")&&((m=g.Mu.navigator)==null?0:m.deviceMemory)){var P;m=(P=g.Mu.navigator)==null?void 0:P.deviceMemory;D?DF(D,95,Tg(m*1E6)):Q&&(Q.client.memoryTotalKbytes=""+m*1E6)}};
zXw=function(D,Q,m){if(D.appInstallData)if(Q){var P;m=(P=TE(Q,TG,62))!=null?P:new TG;Ub(m,6,D.appInstallData);nB(Q,TG,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},m.client.configInfo.appInstallData=D.appInstallData)};
bnP=function(D,Q){var m=Gzw();m&&(D?KB(D,61,oR9[m]):Q&&(Q.client.connectionType=m));g.oi("web_log_effective_connection_type")&&(m=cU7())&&(D?KB(D,94,fxw[m]):Q&&(Q.client.effectiveConnectionType=m))};
Vwr=function(D,Q,m){m=m===void 0?{}:m;var P={};g.YK("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":g.YK("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":m.visitorData||g.YK("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return P;Q=m.s2||g.YK("AUTHORIZATION");Q||(D?Q="Bearer "+g.Q4("gapi.auth.getToken")().access_token:(D=AUP().Rh(tE),g.oi("pageid_as_header_web")||delete D["X-Goog-PageId"],P=Object.assign({},P,D)));Q&&(P.Authorization=Q);return P};
qhj=function(D,Q){var m=sg_();if(m){var P=m.coldConfigData,W=m.coldHashData;m=m.hotHashData;if(D){var L;Q=(L=TE(D,TG,62))!=null?L:new TG;P=Ub(Q,1,P);Ub(P,3,W).JE(m);nB(D,TG,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},P&&(Q.client.configInfo.coldConfigData=P),W&&(Q.client.configInfo.coldHashData=W),m&&(Q.client.configInfo.hotHashData=m))}};
z0=function(D,Q){this.version=D;this.args=Q};
bI=function(D,Q){this.topic=D;this.S=Q};
CR=function(D,Q){var m=qR();m&&m.publish.call(m,D.toString(),D,Q)};
Znu=function(D){var Q=N2j,m=qR();if(!m)return 0;var P=m.subscribe(Q.toString(),function(W,L){var u=g.Q4("ytPubsub2Pubsub2SkipSubKey");u&&u==P||(u=function(){if(oo[P])try{if(L&&Q instanceof bI&&Q!=W)try{var t=Q.S,z=L;if(!z.args||!z.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!t.Cb){var b=new t;t.Cb=b.version}var q=t.Cb}catch(C){}if(!q||z.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(t,
g.JM(z.args))}catch(C){throw C.message="yt.pubsub2.Data.deserialize(): "+C.message,C;}}catch(C){throw C.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Q.toString()+": "+C.message,C;}D.call(window,L)}catch(C){g.p4(C)}},yvj[Q.toString()]?g.rb()?g.KJ.Gm(u):g.tl(u,0):u())});
oo[P]=!0;fR[Q.toString()]||(fR[Q.toString()]=[]);fR[Q.toString()].push(P);return P};
hX_=function(){var D=FQ7,Q=Znu(function(m){D.apply(void 0,arguments);T27(Q)});
return Q};
T27=function(D){var Q=qR();Q&&(typeof D==="number"&&(D=[D]),g.S2(D,function(m){Q.unsubscribeByKey(m);delete oo[m]}))};
qR=function(){return g.Q4("ytPubsub2Pubsub2Instance")};
V_=function(D,Q,m){m=m===void 0?{sampleRate:.1}:m;Math.random()<Math.min(.02,m.sampleRate/100)&&CR("meta_logging_csi_event",{timerName:D,xoc:Q})};
nR9=function(){NR||(NR=yC(g.YK("WORKER_SERIALIZATION_URL")));return NR||void 0};
Zh=function(){var D=nR9();y_||D===void 0||(y_=new Worker(D_(D),void 0));return y_};
ERj=function(){return typeof Worker==="function"&&nR9()?!0:!1};
B2m=function(){if(ERj()&&!FM){var D=function(m){m=m.data;if(m.op==="gzippedGelBatch"){var P=T0.get(m.key);P&&(gR7(m.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),T0.delete(m.key))}},Q=Zh();
Q&&(Q.addEventListener("message",D),Q.onerror=function(){T0.clear()},FM=!0)}};
Ei=function(D,Q,m,P,W){W=W===void 0?!1:W;var L={startTime:(0,g.T3)(),ticks:{},infos:{}};if(hE)try{var u=wo7(Q);if(u!=null&&(u>kYm||u<Jvh))P(D,m);else{if(g.oi("gzip_gel_with_worker")&&(g.oi("initial_gzip_use_main_thread")&&!lxm||!g.oi("initial_gzip_use_main_thread"))){FM||B2m();var t=Zh();if(t&&!W){T0.set(nR,{latencyPayload:L,url:D,options:m,sendFn:P});t.postMessage({op:"gelBatchToGzip",serializedBatch:Q,key:nR});nR++;return}}var z=Zow(IxP(Q));gR7(z,L,D,m,P)}}catch(b){Xn(b),P(D,m)}else P(D,m)};
gR7=function(D,Q,m,P,W){lxm=!1;var L=(0,g.T3)();Q.ticks.gelc=L;gk++;g.oi("disable_compression_due_to_performance_degredation")&&L-Q.startTime>=RX7&&(Bf++,g.oi("abandon_compression_after_N_slow_zips")?gk===g.fp("compression_disable_point")&&Bf>UPh&&(hE=!1):hE=!1);Hn7(Q);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=D;P.postParams=void 0;W(m,P)};
KQP=function(D){var Q=Q===void 0?!1:Q;var m=m===void 0?!1:m;var P=(0,g.T3)(),W={startTime:P,ticks:{},infos:{}},L=Q?g.Q4("yt.logging.gzipForFetch",!1):!0;if(hE&&L){if(!D.body)return D;try{var u=m?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);L=u;if(!m&&typeof u==="string"){var t=wo7(u);if(t!=null&&(t>kYm||t<Jvh))return D;m=Q?{level:1}:void 0;L=Zow(IxP(u),m);var z=(0,g.T3)();W.ticks.gelc=z;if(Q){gk++;if((g.oi("disable_compression_due_to_performance_degredation")||g.oi("disable_compression_due_to_performance_degradation_lr"))&&
z-P>=RX7)if(Bf++,g.oi("abandon_compression_after_N_slow_zips")||g.oi("abandon_compression_after_N_slow_zips_lr")){Q=Bf/gk;var b=UPh/g.fp("compression_disable_point");gk>0&&gk%g.fp("compression_disable_point")===0&&Q>=b&&(hE=!1)}else hE=!1;Hn7(W)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=L;return D}catch(q){return Xn(q),D}}else return D};
wo7=function(D){try{return(new Blob(D.split(""))).size}catch(Q){return Xn(Q),null}};
Hn7=function(D){g.oi("gel_compression_csi_killswitch")||!g.oi("log_gel_compression_latency")&&!g.oi("log_gel_compression_latency_lr")||V_("gel_compression",D,{sampleRate:.1})};
kT=function(D){var Q=this;this.E4=this.S=!1;this.potentialEsfErrorCounter=this.C=0;this.handleError=function(){};
this.fE=function(){};
this.now=Date.now;this.YY=!1;this.It={gZc:function(q){Q.Sb=q},
ku0:function(){Q.Xg()},
Oq:function(){Q.kO()},
XB:function(q){return g.U(function(C){return g.I(C,Q.XB(q),0)})},
jr:function(q,C){return Q.jr(q,C)},
dI:function(){Q.dI()}};
var m;this.A3=(m=D.A3)!=null?m:100;var P;this.ib=(P=D.ib)!=null?P:1;var W;this.V1=(W=D.V1)!=null?W:2592E6;var L;this.Q1=(L=D.Q1)!=null?L:12E4;var u;this.Wu=(u=D.Wu)!=null?u:5E3;var t;this.Sb=(t=D.Sb)!=null?t:void 0;this.UB=!!D.UB;var z;this.h$=(z=D.h$)!=null?z:.1;var b;this.Uz=(b=D.Uz)!=null?b:10;D.handleError&&(this.handleError=D.handleError);D.fE&&(this.fE=D.fE);D.YY&&(this.YY=D.YY);D.E4&&(this.E4=D.E4);this.Mv=D.Mv;this.MO=D.MO;this.EN=D.EN;this.ra=D.ra;this.sendFn=D.sendFn;this.AO=D.AO;this.pH=
D.pH;wk(this)&&(!this.Mv||this.Mv("networkless_logging"))&&jgw(this)};
jgw=function(D){wk(D)&&!D.YY&&(D.S=!0,D.UB&&Math.random()<=D.h$&&D.EN.V_(D.Sb),D.dI(),D.ra.kP()&&D.Xg(),D.ra.listen(D.AO,D.Xg.bind(D)),D.ra.listen(D.pH,D.kO.bind(D)))};
vR_=function(D,Q){if(!wk(D))throw Error("IndexedDB is not supported: updateRequestHandlers");var m=Q.options.onError?Q.options.onError:function(){};
Q.options.onError=function(W,L){var u,t,z,b;return g.U(function(q){switch(q.C){case 1:u=$P7(L);(t=eXh(L))&&D.Mv&&D.Mv("web_enable_error_204")&&D.handleError(Error("Request failed due to compression"),Q.url,L);if(!(D.Mv&&D.Mv("nwl_consider_error_code")&&u||D.Mv&&!D.Mv("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.Uz)){q.Nv(2);break}if(!D.ra.KL){q.Nv(3);break}return g.I(q,D.ra.KL(),3);case 3:if(D.ra.kP()){q.Nv(2);break}m(W,L);if(!D.Mv||!D.Mv("nwl_consider_error_code")||((z=Q)==null?void 0:
z.id)===void 0){q.Nv(6);break}return g.I(q,D.EN.O8(Q.id,D.Sb,!1),6);case 6:return q.return();case 2:if(D.Mv&&D.Mv("nwl_consider_error_code")&&!u&&D.potentialEsfErrorCounter>D.Uz)return q.return();D.potentialEsfErrorCounter++;if(((b=Q)==null?void 0:b.id)===void 0){q.Nv(8);break}return Q.sendCount<D.ib?g.I(q,D.EN.O8(Q.id,D.Sb,!0,t?!1:void 0),12):g.I(q,D.EN.N1(Q.id,D.Sb),8);case 12:D.MO.Gm(function(){D.ra.kP()&&D.Xg()},D.Wu);
case 8:m(W,L),g.T7(q)}})};
var P=Q.options.onSuccess?Q.options.onSuccess:function(){};
Q.options.onSuccess=function(W,L){var u;return g.U(function(t){if(t.C==1)return((u=Q)==null?void 0:u.id)===void 0?t.Nv(2):g.I(t,D.EN.N1(Q.id,D.Sb),2);D.ra.Jk&&D.Mv&&D.Mv("vss_network_hint")&&D.ra.Jk(!0);P(W,L);g.T7(t)})};
return Q};
JE=function(D,Q){D.m1&&!D.ra.kP()?D.m1(Q):D.handleError(Q)};
wk=function(D){return!!D.Sb||D.E4};
$P7=function(D){var Q;return(D=D==null?void 0:(Q=D.error)==null?void 0:Q.code)&&D>=400&&D<=599?!1:!0};
eXh=function(D){var Q;D=D==null?void 0:(Q=D.error)==null?void 0:Q.code;return!(D!==400&&D!==415)};
On9=function(){if(lI)return lI();var D={};lI=g.G3("LogsDatabaseV2",{yq:(D.LogsRequestsStore={NO:2},D),shared:!1,upgrade:function(Q,m,P){m(2)&&g.E4(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});m(3);m(5)&&(P=P.objectStore("LogsRequestsStore"),P.S.indexNames.contains("newRequest")&&P.S.deleteIndex("newRequest"),g.l8(P,"newRequestV2",["status","interface","timestamp"]));m(7)&&gV(Q,"sapisid");m(9)&&gV(Q,"SWHealthLog")},
version:9});return lI()};
Io=function(D){return g.vD(On9(),D)};
axm=function(D,Q){var m,P,W,L;return g.U(function(u){if(u.C==1)return m={startTime:(0,g.T3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.I(u,Io(Q),2);if(u.C!=3)return P=u.S,W=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:g.YK("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.I(u,g.kD(P,"LogsRequestsStore",W),3);L=u.S;m.ticks.tc=(0,g.T3)();Yhu(m);return u.return(L)})};
Avm=function(D,Q){var m,P,W,L,u,t,z,b,q;return g.U(function(C){if(C.C==1)return m={startTime:(0,g.T3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.I(C,Io(Q),2);if(C.C!=3)return P=C.S,W=g.YK("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[D,W,0],u=[D,W,(0,g.T3)()],t=IDBKeyRange.bound(L,u),z="prev",g.oi("use_fifo_for_networkless")&&(z="next"),b=void 0,q=D==="NEW"?"readwrite":"readonly",g.oi("use_readonly_for_get_most_recent_by_status_killswitch")&&(q="readwrite"),g.I(C,g.BD(P,["LogsRequestsStore"],
{mode:q,wB:!0},function(f){return g.HD(f.objectStore("LogsRequestsStore").index("newRequestV2"),{query:t,direction:z},function(V){V.getValue()&&(b=V.getValue(),D==="NEW"&&(b.status="QUEUED",V.update(b)))})}),3);
m.ticks.tc=(0,g.T3)();Yhu(m);return C.return(b)})};
pou=function(D,Q){var m;return g.U(function(P){if(P.C==1)return g.I(P,Io(Q),2);m=P.S;return P.return(g.BD(m,["LogsRequestsStore"],{mode:"readwrite",wB:!0},function(W){var L=W.objectStore("LogsRequestsStore");return L.get(D).then(function(u){if(u)return u.status="QUEUED",g.wV(L,u).then(function(){return u})})}))})};
xPP=function(D,Q,m,P){m=m===void 0?!0:m;var W;return g.U(function(L){if(L.C==1)return g.I(L,Io(Q),2);W=L.S;return L.return(g.BD(W,["LogsRequestsStore"],{mode:"readwrite",wB:!0},function(u){var t=u.objectStore("LogsRequestsStore");return t.get(D).then(function(z){return z?(z.status="NEW",m&&(z.sendCount+=1),P!==void 0&&(z.options.compress=P),g.wV(t,z).then(function(){return z})):g.NT.resolve(void 0)})}))})};
Xo7=function(D,Q){var m;return g.U(function(P){if(P.C==1)return g.I(P,Io(Q),2);m=P.S;return P.return(m.delete("LogsRequestsStore",D))})};
Sh$=function(D){var Q,m;return g.U(function(P){if(P.C==1)return g.I(P,Io(D),2);Q=P.S;m=(0,g.T3)()-2592E6;return g.I(P,g.BD(Q,["LogsRequestsStore"],{mode:"readwrite",wB:!0},function(W){return g.IW(W.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=m)return L.delete().then(function(){return g.RW(L)})})}),0)})};
rvw=function(){g.U(function(D){return g.I(D,vG$("LogsDatabaseV2"),0)})};
Yhu=function(D){g.oi("nwl_csi_killswitch")||V_("networkless_performance",D,{sampleRate:1})};
Mww=function(D){return g.vD(GYk(),D)};
cvw=function(D){var Q,m;g.U(function(P){if(P.C==1)return g.I(P,Mww(D),2);Q=P.S;m=(0,g.T3)()-2592E6;return g.I(P,g.BD(Q,["SWHealthLog"],{mode:"readwrite",wB:!0},function(W){return g.IW(W.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=m)return L.delete().then(function(){return g.RW(L)})})}),0)})};
De7=function(D){var Q;return g.U(function(m){if(m.C==1)return g.I(m,Mww(D),2);Q=m.S;return g.I(m,Q.clear("SWHealthLog"),0)})};
g.Ro=function(D,Q,m,P,W,L,u){W=W===void 0?"":W;L=L===void 0?!1:L;u=u===void 0?!1:u;if(D)if(m&&!g.e8())Xn(new g.OI("Legacy referrer-scrubbed ping detected")),D&&Qwu(D,void 0,{scrubReferrer:!0});else if(W)yk(D,Q,"POST",W,P);else if(g.YK("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||u)yk(D,Q,"GET","",P,void 0,L,u);else{b:{try{c:{var t=new h7P({url:D});if(t.S.dsh==="1")var z=null;else{var b=t.S.ae;if(b==="1"){var q=t.S.adurl;if(q)try{z={version:3,y_:decodeURIComponent(q),RP:pM(t.C,"act=1","ri=1",nmw(t))};
break c}catch(V){}}z=b==="2"?{version:4,y_:pM(t.C,"dct=1","suid="+t.T,""),RP:pM(t.C,"act=1","ri=1","suid="+t.T)}:null}}if(z){var C=dz(D);var f=!(!C||!C.endsWith("/aclk")||Zb(D,"ri")!=="1");break b}}catch(V){}f=!1}f?me$(D)?(Q&&Q(),m=!0):m=!1:m=!1;m||Qwu(D,Q)}};
me$=function(D,Q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,Q===void 0?"":Q))return!0}catch(m){}return!1};
Qwu=function(D,Q,m){m=m===void 0?{}:m;var P=new Image,W=""+Phm++;Ui[W]=P;P.onload=P.onerror=function(){Q&&Ui[W]&&Q();delete Ui[W]};
m.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=D};
Wd4=function(D){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"};
KR=function(){Hf||(Hf=new MZ("yt.offline"));return Hf};
i4$=function(D){if(g.oi("offline_error_handling")){var Q=KR().get("errors",!0)||{};Q[D.message]={name:D.name,stack:D.stack};D.level&&(Q[D.message].level=D.level);KR().set("errors",Q,2592E3,!0)}};
jI=function(){this.S=new Map;this.C=!1};
$T=function(){if(!jI.instance){var D=g.Q4("yt.networkRequestMonitor.instance")||new jI;g.ch("yt.networkRequestMonitor.instance",D);jI.instance=D}return jI.instance};
eI=function(){g.zt.call(this);var D=this;this.C=!1;this.S=VTn();this.S.listen("networkstatus-online",function(){if(D.C&&g.oi("offline_error_handling")){var Q=KR().get("errors",!0);if(Q){for(var m in Q)if(Q[m]){var P=new g.OI(m,"sent via offline_errors");P.name=Q[m].name;P.stack=Q[m].stack;P.level=Q[m].level;g.p4(P)}KR().set("errors",{},2592E3,!0)}}})};
swu=function(){if(!eI.instance){var D=g.Q4("yt.networkStatusManager.instance")||new eI;g.ch("yt.networkStatusManager.instance",D);eI.instance=D}return eI.instance};
g.vf=function(D){D=D===void 0?{}:D;g.zt.call(this);var Q=this;this.S=this.B=0;this.C=swu();var m=g.Q4("yt.networkStatusManager.instance.listen").bind(this.C);m&&(D.rateLimit?(this.rateLimit=D.rateLimit,m("networkstatus-online",function(){Ld6(Q,"publicytnetworkstatus-online")}),m("networkstatus-offline",function(){Ld6(Q,"publicytnetworkstatus-offline")})):(m("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),m("networkstatus-offline",function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))};
Ld6=function(D,Q){D.rateLimit?D.S?(g.KJ.N5(D.B),D.B=g.KJ.Gm(function(){D.T!==Q&&(D.dispatchEvent(Q),D.T=Q,D.S=(0,g.T3)())},D.rateLimit-((0,g.T3)()-D.S))):(D.dispatchEvent(Q),D.T=Q,D.S=(0,g.T3)()):D.dispatchEvent(Q)};
ao=function(){var D=kT.call;Oi||(Oi=new g.vf({JEO:!0,eDO:!0}));D.call(kT,this,{EN:{V_:Sh$,N1:Xo7,aS:Avm,Bcx:pou,O8:xPP,set:axm},ra:Oi,handleError:function(Q,m,P){var W,L=P==null?void 0:(W=P.error)==null?void 0:W.code;if(L===400||L===415){var u;Q=new g.OI(Q.message,m,P==null?void 0:(u=P.error)==null?void 0:u.code);Xn(Q,void 0,void 0,void 0,!0)}else g.p4(Q)},
fE:Xn,sendFn:un$,now:g.T3,m1:i4$,MO:g.S0(),AO:"publicytnetworkstatus-online",pH:"publicytnetworkstatus-offline",UB:!0,h$:.1,Uz:g.fp("potential_esf_error_limit",10),Mv:g.oi,YY:!(g.aS()&&g.uY(document.location.toString())!=="www.youtube-nocookie.com")});this.T=new g.zz;g.oi("networkless_immediately_drop_all_requests")&&rvw();OJP("LogsDatabaseV2")};
AE=function(){var D=g.Q4("yt.networklessRequestController.instance");D||(D=new ao,g.ch("yt.networklessRequestController.instance",D),g.oi("networkless_logging")&&g.Sa().then(function(Q){D.Sb=Q;jgw(D);D.T.resolve();D.UB&&Math.random()<=D.h$&&D.Sb&&cvw(D.Sb);g.oi("networkless_immediately_drop_sw_health_store")&&de6(D)}));
return D};
de6=function(D){var Q;g.U(function(m){if(!D.Sb)throw Q=g.fr("clearSWHealthLogsDb"),Q;return m.return(De7(D.Sb).catch(function(P){D.handleError(P)}))})};
un$=function(D,Q,m,P){P=P===void 0?!1:P;Q=g.oi("web_fp_via_jspb")?Object.assign({},Q):Q;g.oi("use_cfr_monitor")&&tE6(D,Q);if(g.oi("use_request_time_ms_header"))Q.headers&&m6(D)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T3)())));else{var W;if((W=Q.postParams)==null?0:W.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,g.T3)())}m&&Object.keys(Q).length===0?g.Ro(D):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),Ei(D,Q.postBody,
Q,g.ZG,P)):Ei(D,JSON.stringify(Q.postParams),Q,FN,P):g.ZG(D,Q)};
pR=function(D,Q){g.oi("use_event_time_ms_header")&&m6(D)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.T3)())));return Q};
tE6=function(D,Q){var m=Q.onError?Q.onError:function(){};
Q.onError=function(W,L){$T().requestComplete(D,!1);m(W,L)};
var P=Q.onSuccess?Q.onSuccess:function(){};
Q.onSuccess=function(W,L){$T().requestComplete(D,!0);P(W,L)}};
g.xT=function(D){this.config_=null;D?this.config_=D:LQP()&&(this.config_=g.uI())};
g.XM=function(D,Q,m,P){function W(b){try{if((b===void 0?0:b)&&P.retry&&!P.networklessOptions.bypassNetworkless)L.method="POST",P.networklessOptions.writeThenSend?AE().writeThenSend(z,L):AE().sendAndWrite(z,L);else if(P.compress){var q=!P.networklessOptions.writeThenSend;if(L.postBody){var C=L.postBody;typeof C!=="string"&&(C=JSON.stringify(L.postBody));Ei(z,C,L,g.ZG,q)}else Ei(z,JSON.stringify(L.postParams),L,FN,q)}else g.oi("web_all_payloads_via_jspb")?g.ZG(z,L):FN(z,L)}catch(f){if(f.name==="InvalidAccessError")Xn(Error("An extension is blocking network request."));
else throw f;}}
!g.YK("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&Xn(new g.OI("Missing VISITOR_DATA when sending innertube request.",Q,m,P));if(!D.isReady())throw D=new g.OI("innertube xhrclient not ready",Q,m,P),g.p4(D),D;var L={headers:P.headers||{},method:"POST",postParams:m,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()},
onFetchTimeout:P.onTimeout,onSuccess:function(b,q){if(P.onSuccess)P.onSuccess(q)},
onFetchSuccess:function(b){if(P.onSuccess)P.onSuccess(b)},
onProgress:function(b){if(P.onProgress)P.onProgress(b)},
onError:function(b,q){if(P.onError)P.onError(q)},
onFetchError:function(b){if(P.onError)P.onError(b)},
timeout:P.timeout,withCredentials:!0,compress:P.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");m="";var u=D.config_.Z1;u&&(m=u);u=D.config_.PX||!1;var t=Vwr(u,m,P);Object.assign(L.headers,t);L.headers.Authorization&&!m&&u&&(L.headers["x-origin"]=window.location.origin);var z=DG(""+m+("/youtubei/"+D.config_.innertubeApiVersion+"/"+Q),{alt:"json"});g.Q4("ytNetworklessLoggingInitializationOptions")&&zLh.isNwlInitialized?R1h().then(function(b){W(b)}):W(!1)};
g.cf=function(D,Q,m){var P=g.SI();if(P&&Q){var W=P.subscribe(D,function(){function L(){rk[W]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(m||window,u)}
var u=arguments;try{g.G0[D]?L():g.tl(L,0)}catch(t){g.p4(t)}},m);
rk[W]=!0;MR[D]||(MR[D]=[]);MR[D].push(W);return W}return 0};
b49=function(D){var Q=g.cf("LOGGED_IN",function(m){D.apply(void 0,arguments);g.Dy(Q)})};
g.Dy=function(D){var Q=g.SI();Q&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),g.S2(D,function(m){Q.unsubscribeByKey(m);delete rk[m]}))};
g.Q$=function(D,Q){var m=g.SI();return m?m.publish.apply(m,arguments):!1};
Chk=function(D){var Q=g.SI();if(Q)if(Q.clear(D),D)qjw(D);else for(var m in MR)qjw(m)};
g.SI=function(){return g.Mu.ytPubsubPubsubInstance};
qjw=function(D){MR[D]&&(D=MR[D],g.S2(D,function(Q){rk[Q]&&delete rk[Q]}),D.length=0)};
g.mN=function(D,Q,m){oKu(D,Q,m===void 0?null:m)};
oKu=function(D,Q,m){m=m===void 0?null:m;var P=fU7(typeof D==="string"?D:D.toString()),W=document.getElementById(P),L=W&&kz4(W),u=W&&!L;L?Q&&Q():(Q&&(L=g.cf(P,Q),Q=""+g.LV(Q),VEP[Q]=L),u||(W=Nlw(D,P,function(){kz4(W)||(w$7(W),g.Q$(P),g.tl(function(){Chk(P)},0))},m)))};
Nlw=function(D,Q,m,P){P=P===void 0?null:P;var W=g.qi("SCRIPT");W.id=Q;W.onload=function(){m&&setTimeout(m,0)};
W.onreadystatechange=function(){switch(W.readyState){case "loaded":case "complete":W.onload()}};
P&&W.setAttribute("nonce",P);g.yf(W,typeof D==="string"?g.ZU(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(W,D.firstChild);return W};
fU7=function(D){var Q=document.createElement("a");g.dh(Q,D);D=Q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+lp(D)};
Pq=function(D,Q){if(D===Q)D=!0;else if(Array.isArray(D)&&Array.isArray(Q))D=g.xk(D,Q,Pq);else if(g.iv(D)&&g.iv(Q))a:if(g.i7(D).length!=g.i7(Q).length)D=!1;else{for(var m in D)if(!Pq(D[m],Q[m])){D=!1;break a}D=!0}else D=!1;return D};
tj=function(D){var Q=g.e$.apply(1,arguments);if(!uE(D)||Q.some(function(P){return!uE(P)}))throw Error("Only objects may be merged.");
Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())dA(D,m.value)};
dA=function(D,Q){for(var m in Q)if(uE(Q[m])){if(m in D&&!uE(D[m]))throw Error("Cannot merge an object into a non-object.");m in D||(D[m]={});dA(D[m],Q[m])}else if(zc(Q[m])){if(m in D&&!zc(D[m]))throw Error("Cannot merge an array into a non-array.");m in D||(D[m]=[]);yRk(D[m],Q[m])}else D[m]=Q[m];return D};
yRk=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())m=m.value,uE(m)?D.push(dA({},m)):zc(m)?D.push(yRk([],m)):D.push(m);return D};
uE=function(D){return typeof D==="object"&&!Array.isArray(D)};
zc=function(D){return typeof D==="object"&&Array.isArray(D)};
bE=function(D){g.v.call(this);this.C=D};
qF=function(D){bE.call(this,!0);this.S=D};
CP=function(D,Q){g.v.call(this);var m=this;this.T=[];this.U=!1;this.C=0;this.J=this.N=this.B=!1;this.TO=null;var P=(0,g.d$)(D,Q);this.S=new g.pJ(function(){return P(m.TO)},300);
g.O(this,this.S);this.j=this.Z=Infinity};
Z46=function(D,Q){if(!Q)return!1;for(var m=0;m<Q.length;m++){var P=Q.item(m);if(P&&D.T.includes(P.identifier))return!0}return!1};
fP=function(D){if(window.crypto&&window.crypto.getRandomValues)try{var Q=Array(D),m=new Uint8Array(D);window.crypto.getRandomValues(m);for(var P=0;P<Q.length;P++)Q[P]=m[P];return Q}catch(L){}Q=Array(D);for(m=0;m<D;m++){P=Date.now();for(var W=0;W<P%23;W++)Q[m]=Math.random();Q[m]=Math.floor(Math.random()*256)}if(ol)for(m=1,P=0;P<ol.length;P++)Q[m%D]^=Q[(m-1)%D]/4^ol.charCodeAt(P),m++;return Q};
g.V$=function(D){D=fP(D);for(var Q=[],m=0;m<D.length;m++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[m]&63));return Q.join("")};
g.Fdh=function(){return g.fk(fP(16),function(D){return(D&15).toString(16)}).join("")};
Tl4=function(){var D={};var Q=D.Ti9===void 0?!1:D.Ti9;D=D.R0===void 0?!0:D.R0;if(g.Q4("_lact",window)==null){var m=parseInt(g.YK("LACT"),10);m=isFinite(m)?Date.now()-Math.max(m,0):-1;g.ch("_lact",m,window);g.ch("_fact",m,window);m==-1&&NF();g.NZ(document,"keydown",NF);g.NZ(document,"keyup",NF);g.NZ(document,"mousedown",NF);g.NZ(document,"mouseup",NF);Q?g.NZ(window,"touchmove",function(){y$("touchmove",200)},{passive:!0}):(g.NZ(window,"resize",function(){y$("resize",200)}),D&&g.NZ(window,"scroll",
function(){y$("scroll",200)}));
new TP(function(){y$("mouse",100)});
g.NZ(document,"touchstart",NF,{passive:!0});g.NZ(document,"touchend",NF,{passive:!0})}};
y$=function(D,Q){Zy[D]||(Zy[D]=!0,g.KJ.Gm(function(){NF();Zy[D]=!1},Q))};
NF=function(){g.Q4("_lact",window)==null&&(Tl4(),g.Q4("_lact",window));var D=Date.now();g.ch("_lact",D,window);g.Q4("_fact",window)==-1&&g.ch("_fact",D,window);(D=g.Q4("ytglobal.ytUtilActivityCallback_"))&&D()};
FE=function(){var D=g.Q4("_lact",window);return D==null?-1:Math.max(Date.now()-D,0)};
Tc=function(D){this.name=D};
hj=function(D){this.key=D};
nP=function(D){return new hj(D)};
hLh=function(){var D=this;this.S=new Map;this.T=new Map;this.C=new Map;this.It={JZc:function(){return new Map(D.S)}}};
Ek=function(D,Q){D.S.set(Q.MH,Q);var m=D.T.get(Q.MH);if(m)try{m.IC(D.resolve(Q.MH))}catch(P){m.B_(P)}};
Bq=function(D,Q,m,P){P=P===void 0?!1:P;if(m.indexOf(Q)>-1)throw Error("Deps cycle for: "+Q);if(D.C.has(Q))return D.C.get(Q);if(!D.S.has(Q)){if(P)return;throw Error("No provider for: "+Q);}P=D.S.get(Q);m.push(Q);if(P.oO!==void 0)var W=P.oO;else if(P.nPD)W=P[gA]?nKu(D,P[gA],m):[],W=P.nPD.apply(P,g.on(W));else if(P.yM){W=P.yM;var L=W[gA]?nKu(D,W[gA],m):[];W=new (Function.prototype.bind.apply(W,[null].concat(g.on(L))))}else throw Error("Could not resolve providers for: "+Q);m.pop();P.V0D||D.C.set(Q,W);
return W};
nKu=function(D,Q,m){return Q?Q.map(function(P){return P instanceof hj?Bq(D,P.key,m,!0):Bq(D,P,m)}):[]};
kj=function(){wA||(wA=new hLh);return wA};
gK9=function(){var D=EKn;return function(){var Q=kj();Q.resolve(nP(D))||Ek(Q,{MH:D,yM:D});return Q.resolve(D)}};
lE=function(){var D,Q;return"h5vcc"in Jj&&((D=Jj.h5vcc.traceEvent)==null?0:D.traceBegin)&&((Q=Jj.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in Jj&&Jj.performance.mark&&Jj.performance.measure?2:0};
Il=function(D){var Q=lE();switch(Q){case 1:Jj.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:Jj.performance.mark(D+"-start");break;case 0:break;default:ty(Q,"unknown trace type")}};
Blk=function(D){var Q=lE();switch(Q){case 1:Jj.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:Q=D+"-start";var m=D+"-end";Jj.performance.mark(m);Jj.performance.measure(D,Q,m);break;case 0:break;default:ty(Q,"unknown trace type")}};
w07=function(D){var Q,m;(m=(Q=window).onerror)==null||m.call(Q,D.message,"",0,0,D)};
kGw=function(D){var Q=this;var m=m===void 0?0:m;var P=P===void 0?g.S0():P;this.T=m;this.scheduler=P;this.C=new g.zz;this.S=D;for(D={L2:0};D.L2<this.S.length;D={uo:void 0,L2:D.L2},D.L2++)D.uo=this.S[D.L2],m=function(W){return function(){W.uo.h1();Q.S[W.L2].Lx=!0;Q.S.every(function(L){return L.Lx===!0})&&Q.C.resolve()}}(D),P=pU(m,Rl(this,D.uo)),this.S[D.L2]=Object.assign({},D.uo,{h1:m,
jobId:P})};
JRk=function(D){var Q=Array.from(D.S.keys()).sort(function(P,W){return Rl(D,D.S[W])-Rl(D,D.S[P])});
Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())m=D.S[m.value],m.jobId===void 0||m.Lx||(D.scheduler.N5(m.jobId),pU(m.h1,10))};
Rl=function(D,Q){var m;return(m=Q.priority)!=null?m:D.T};
Hq=function(D){this.state=D;this.plugins=[];this.T=void 0;this.B={};Uk&&Il(this.state)};
lU7=function(D,Q){var m=Q.filter(function(W){return KP(D,W)===10}),P=Q.filter(function(W){return KP(D,W)!==10});
return D.B.HqT?function(){var W=g.e$.apply(0,arguments);return g.U(function(L){if(L.C==1)return g.I(L,D.iOx.apply(D,[m].concat(g.on(W))),2);D.CS.apply(D,[P].concat(g.on(W)));g.T7(L)})}:function(){var W=g.e$.apply(0,arguments);
D.ZOx.apply(D,[m].concat(g.on(W)));D.CS.apply(D,[P].concat(g.on(W)))}};
KP=function(D,Q){var m,P;return(P=(m=D.T)!=null?m:Q.priority)!=null?P:0};
jF=function(D){Uk&&D&&Il(D)};
eF=function(D){Uk&&D&&Blk(D)};
RL9=function(D,Q,m){IU_&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+D.constructor.name+"] '"+D.state+"' to '"+Q+"'"),console.log("with message: ",m),console.groupEnd())};
vq=function(D){if(g.oi("web_lifecycle_error_handling_killswitch"))return D();try{return D()}catch(Q){w07(Q)}};
Ok=function(D){Hq.call(this,D===void 0?"none":D);this.S=null;this.T=10;this.transitions=[{from:"none",to:"application_navigating",action:this.J},{from:"application_navigating",to:"none",action:this.N},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
Uem=function(){Yj||(Yj=new Ok);return Yj};
al=function(){var D=this;this.store={};this.S=0;this.C={};this.It={BmF:function(){return D.S}}};
xj=function(D,Q){var m=Aj(Q);if(D.C[m])return D.C[m];var P=Object.keys(D.store)||[];if(P.length<=1&&Aj(Q)===P[0])return P;for(var W=[],L=0;L<P.length;L++){var u=P[L].split("/");if(pP(Q.auth,u[0])){var t=Q.isJspb;pP(t===void 0?"undefined":t?"true":"false",u[1])&&pP(Q.cttAuthInfo,u[2])&&(t=Q.tier,t=t===void 0?"undefined":JSON.stringify(t),pP(t,u[3])&&W.push(P[L]))}}return D.C[m]=W};
pP=function(D,Q){return D===void 0||D==="undefined"?!0:D===Q};
Aj=function(D){return[D.auth===void 0?"undefined":D.auth,D.isJspb===void 0?"undefined":D.isJspb,D.cttAuthInfo===void 0?"undefined":D.cttAuthInfo,D.tier===void 0?"undefined":D.tier].join("/")};
XE=function(){this.B=this.S=this.C=0;this.T=!1};
SF=function(){var D=g.Q4("yt.logging.ims");D||(D=new al,g.ch("yt.logging.ims",D));return D};
jwm=function(){if(ERj()&&!H49){var D=function(m){m=m.data;if(m.op==="serializedGelBatch"){var P=rA.get(m.key);P&&(KdP(m.serializedBatch,P.client,P.resolve,P.networklessOptions,P.isIsolated,P.useVSSEndpoint,P.dangerousLogToVisitorSession,P.requestsOutstanding),rA.delete(m.key))}},Q=Zh();
Q&&(Q.addEventListener("message",D),Q.onerror=function(){rA.clear()});
H49=!0}};
aUr=function(D,Q){if(D.endpoint==="log_event"){Gc(D);var m=MF(D),P=$e$(D.payload)||"",W=eLw(P),L=200;if(W){if(W.enabled===!1&&!g.oi("web_payload_policy_disabled_killswitch"))return;L=vK7(W.tier);if(L===400){O4n(D,Q);return}}cq[m]=!0;m={cttAuthInfo:m,isJspb:!1,tier:L};SF().storePayload(m,D.payload);Yjh(Q,!1,m,Dl(P))}};
p07=function(D,Q,m){if(Q.endpoint==="log_event"){Gc(void 0,Q);var P=MF(Q,!0),W=eLw(D),L=200;if(W){if(W.enabled===!1&&!g.oi("web_payload_policy_disabled_killswitch"))return;L=vK7(W.tier);if(L===400){ARr(D,Q,m);return}}cq[P]=!0;P={cttAuthInfo:P,isJspb:!0,tier:L};SF().storePayload(P,ON(Q.payload));Yjh(m,!0,P,Dl(D))}};
Yjh=function(D,Q,m,P){function W(){Qi({writeThenSend:!0},Q,m.tier)}
Q=Q===void 0?!1:Q;P=P===void 0?!1:P;D&&(m0=new D);D=g.fp("tvhtml5_logging_max_batch_ads_fork")||g.fp("tvhtml5_logging_max_batch")||g.fp("web_logging_max_batch")||100;var L=(0,g.T3)(),u=Pi(Q,m.tier),t=u.B;P&&(u.T=!0);P=0;m&&(P=SF().getSequenceCount(m));P>=1E3?W():P>=D?Wi||(Wi=i4(function(){W();Wi=void 0},0)):L-t>=10&&(xe7(Q,m.tier),u.B=L)};
O4n=function(D,Q){if(D.endpoint==="log_event"){g.oi("more_accurate_gel_parser")&&SF().storePayload({isJspb:!1},D.payload);Gc(D);var m=MF(D),P=new Map;P.set(m,[D.payload]);var W=$e$(D.payload)||"";Q&&(m0=new Q);return new g.BN(function(L,u){m0&&m0.isReady()?X09(P,m0,L,u,{bypassNetworkless:!0},!0,Dl(W)):L()})}};
ARr=function(D,Q,m){if(Q.endpoint==="log_event"){Gc(void 0,Q);var P=MF(Q,!0),W=new Map;W.set(P,[ON(Q.payload)]);m&&(m0=new m);return new g.BN(function(L){m0&&m0.isReady()?Sj$(W,m0,L,{bypassNetworkless:!0},!0,Dl(D)):L()})}};
MF=function(D,Q){var m="";if(D.dangerousLogToVisitorSession)m="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(Q===void 0?0:Q){Q=D.cttAuthInfo.token;m=D.cttAuthInfo;var P=new jE;m.videoId?P.setVideoId(m.videoId):m.playlistId&&qX(P,2,sz,EN(m.playlistId));Lb[Q]=P}else Q=D.cttAuthInfo,m={},Q.videoId?m.videoId=Q.videoId:Q.playlistId&&(m.playlistId=Q.playlistId),u4[D.cttAuthInfo.token]=m;m=D.cttAuthInfo.token}return m};
Qi=function(D,Q,m){D=D===void 0?{}:D;Q=Q===void 0?!1:Q;new g.BN(function(P,W){var L=Pi(Q,m),u=L.T;L.T=!1;tG(L.C);tG(L.S);L.S=0;m0&&m0.isReady()?m===void 0&&g.oi("enable_web_tiered_gel")?rR4(P,W,D,Q,300,u):rR4(P,W,D,Q,m,u):(xe7(Q,m),P())})};
rR4=function(D,Q,m,P,W,L){var u=m0;m=m===void 0?{}:m;P=P===void 0?!1:P;W=W===void 0?200:W;L=L===void 0?!1:L;var t=new Map,z=new Map,b={isJspb:P,cttAuthInfo:void 0,tier:W},q={isJspb:P,cttAuthInfo:void 0};if(P){Q=g.T(Object.keys(cq));for(W=Q.next();!W.done;W=Q.next())W=W.value,z=g.oi("enable_web_tiered_gel")?SF().smartExtractMatchingEntries({keys:[b,q],sizeLimit:1E3}):SF().extractMatchingEntries({isJspb:!0,cttAuthInfo:W}),z.length>0&&t.set(W,z),(g.oi("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.oi("web_fp_via_jspb_and_json"))&&
delete cq[W];Sj$(t,u,D,m,!1,L)}else{t=g.T(Object.keys(cq));for(b=t.next();!b.done;b=t.next())b=b.value,q=g.oi("enable_web_tiered_gel")?SF().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:b,tier:W},{isJspb:!1,cttAuthInfo:b}],sizeLimit:1E3}):SF().extractMatchingEntries({isJspb:!1,cttAuthInfo:b}),q.length>0&&z.set(b,q),(g.oi("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.oi("web_fp_via_jspb_and_json"))&&delete cq[b];X09(z,u,D,Q,m,!1,L)}};
xe7=function(D,Q){function m(){Qi({writeThenSend:!0},D,Q)}
D=D===void 0?!1:D;Q=Q===void 0?200:Q;var P=Pi(D,Q),W=P===GG6||P===ME_?5E3:cR7;g.oi("web_gel_timeout_cap")&&!P.S&&(W=i4(function(){m()},W),P.S=W);
tG(P.C);W=g.YK("LOGGING_BATCH_TIMEOUT",g.fp("web_gel_debounce_ms",1E4));g.oi("shorten_initial_gel_batch_timeout")&&zq&&(W=Dv4);W=i4(function(){g.fp("gel_min_batch_size")>0?SF().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:Q})>=QiP&&m():m()},W);
P.C=W};
X09=function(D,Q,m,P,W,L,u){W=W===void 0?{}:W;var t=Math.round((0,g.T3)()),z=D.size,b=mvm(u);D=g.T(D);var q=D.next();for(u={};!q.done;u={P8:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,q8:void 0,y6:void 0},q=D.next()){var C=g.T(q.value);q=C.next().value;C=C.next().value;u.batchRequest=g.fg({context:g.dk(Q.config_||g.uI())});if(!g.WP(C)&&!g.oi("throw_err_when_logevent_malformed_killswitch")){P();break}u.batchRequest.events=C;(C=u4[q])&&PSP(u.batchRequest,q,C);delete u4[q];u.dangerousLogToVisitorSession=
q==="visitorOnlyApprovedKey";W69(u.batchRequest,t,u.dangerousLogToVisitorSession);ip7(W);u.q8=function(f){g.oi("start_client_gcf")&&g.KJ.Gm(function(){return g.U(function(V){return g.I(V,si7(f),0)})});
z--;z||m()};
u.P8=0;u.y6=function(f){return function(){f.P8++;if(W.bypassNetworkless&&f.P8===1)try{g.XM(Q,b,f.batchRequest,b4({writeThenSend:!0},f.dangerousLogToVisitorSession,f.q8,f.y6,L)),zq=!1}catch(V){g.p4(V),P()}z--;z||m()}}(u);
try{g.XM(Q,b,u.batchRequest,b4(W,u.dangerousLogToVisitorSession,u.q8,u.y6,L)),zq=!1}catch(f){g.p4(f),P()}}};
Sj$=function(D,Q,m,P,W,L){P=P===void 0?{}:P;var u=Math.round((0,g.T3)()),t={value:D.size},z=new Map([].concat(g.on(D)));z=g.T(z);for(var b=z.next();!b.done;b=z.next()){var q=g.T(b.value).next().value,C=D.get(q);b=new Hoj;var f=Q.config_||g.uI(),V=new lh,N=new n4;Ub(N,1,f.GS);Ub(N,2,f.Yi);KB(N,16,f.iZ);Ub(N,17,f.innertubeContextClientVersion);if(f.Aq){var h=f.Aq,B=new TG;h.coldConfigData&&Ub(B,1,h.coldConfigData);h.appInstallData&&Ub(B,6,h.appInstallData);h.coldHashData&&Ub(B,3,h.coldHashData);h.hotHashData&&
B.JE(h.hotHashData);nB(N,TG,62,B)}(h=g.Mu.devicePixelRatio)&&h!=1&&DF(N,65,u2(h));h=Vk();h!==""&&Ub(N,54,h);h=Nv();if(h.length>0){B=new B0;for(var J=0;J<h.length;J++){var k=new Ej;Ub(k,1,h[J].key);qX(k,2,L6r,EN(h[J].value));gx(B,15,Ej,k)}nB(V,B0,5,B)}uIw(f,N);dP6(V);twr(N);zXw(f,N);bnP(N);g.oi("start_client_gcf")&&qhj(N);g.YK("DELEGATED_SESSION_ID")&&!g.oi("pageid_as_header_web")&&(f=new JR,Ub(f,3,g.YK("DELEGATED_SESSION_ID")));!g.oi("fill_delegate_context_in_gel_killswitch")&&(h=g.YK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(B=TE(V,JR,3)||new JR,f=V,h=Ub(B,18,h),nB(f,JR,3,h));f=N;h=g.T(Object.entries(GG(g.YK("DEVICE",""))));for(B=h.next();!B.done;B=h.next())J=g.T(B.value),B=J.next().value,J=J.next().value,B==="cbrand"?Ub(f,12,J):B==="cmodel"?Ub(f,13,J):B==="cbr"?Ub(f,87,J):B==="cbrver"?Ub(f,88,J):B==="cos"?Ub(f,18,J):B==="cosver"?Ub(f,19,J):B==="cplatform"&&KB(f,42,p$$(J));V.EU(N);nB(b,lh,1,V);if(N=Lb[q])a:{if(N.YV())V=1;else if(N.getPlaylistId())V=2;else break a;nB(b,jE,4,N);N=TE(b,lh,1)||new lh;f=TE(N,JR,3)||new JR;
h=new kK;h.setToken(q);KB(h,1,V);gx(f,12,kK,h);nB(N,JR,3,f)}delete Lb[q];q=q==="visitorOnlyApprovedKey";qJ()||Rt(b,2,u);!q&&(V=g.YK("EVENT_ID"))&&(N=uN7(),f=new K4,Ub(f,1,V),Rt(f,2,N),nB(b,K4,5,f));ip7(P);if(g.oi("jspb_serialize_with_worker")&&(V=Zh())&&P.writeThenSend){rA.set(Cb,{client:Q,resolve:m,networklessOptions:P,isIsolated:W,useVSSEndpoint:L,dangerousLogToVisitorSession:q,requestsOutstanding:t});V.postMessage({op:"gelBatchToSerialize",batchRequest:ON(b),clientEvents:C,key:Cb});Cb++;break}if(C){V=
[];for(N=0;N<C.length;N++)try{V.push(new H0(C[N]))}catch(R){g.p4(new g.OI("Transport failed to deserialize "+String(C[N])))}C=V}else C=[];C=g.T(C);for(V=C.next();!V.done;V=C.next())gx(b,3,H0,V.value);C={startTime:(0,g.T3)(),ticks:{},infos:{}};b=b.R_();C.ticks.geljspc=(0,g.T3)();g.oi("log_jspb_serialize_latency")&&V_("gel_jspb_serialize",C,{sampleRate:.1});KdP(b,Q,m,P,W,L,q,t)}};
KdP=function(D,Q,m,P,W,L,u,t){P=P===void 0?{}:P;t=t===void 0?{value:0}:t;L=mvm(L);P=b4(P,u,function(z){g.oi("start_client_gcf")&&g.KJ.Gm(function(){return g.U(function(b){return g.I(b,si7(z),0)})});
t.value--;t.value||m()},function(){t.value--;
t.value||m()},W);
P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=D;g.XM(Q,L,"",P);zq=!1};
ip7=function(D){g.oi("always_send_and_write")&&(D.writeThenSend=!1)};
b4=function(D,Q,m,P,W){D={retry:!0,onSuccess:m,onError:P,networklessOptions:D,dangerousLogToVisitorSession:Q,jnc:!!W,headers:{},postBodyFormat:"",postBody:"",compress:g.oi("compress_gel")||g.oi("compress_gel_lr")};qJ()&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T3)())));return D};
W69=function(D,Q,m){qJ()||(D.requestTimeMs=String(Q));g.oi("unsplit_gel_payloads_in_logs")&&(D.unsplitGelPayloadsInLogs=!0);!m&&(Q=g.YK("EVENT_ID"))&&(m=uN7(),D.serializedClientEventId={serializedEventId:Q,clientCounter:String(m)})};
uN7=function(){var D=g.YK("BATCH_CLIENT_COUNTER")||0;D||(D=Math.floor(Math.random()*65535/2));D++;D>65535&&(D=1);Oj("BATCH_CLIENT_COUNTER",D);return D};
PSP=function(D,Q,m){if(m.videoId)var P="VIDEO";else if(m.playlistId)P="PLAYLIST";else return;D.credentialTransferTokenTargetId=m;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:Q,scope:P}]};
Gc=function(D,Q){var m=g.Q4("yt.logging.transport.enableScrapingForTest"),P=Cp("il_payload_scraping");P=(P!==void 0?String(P):"")==="enable_il_payload_scraping";if(!m)if(P)oC=[],g.ch("yt.logging.transport.enableScrapingForTest",!0),g.ch("yt.logging.transport.scrapedPayloadsForTesting",oC),g.ch("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.ch("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.ch("yt.logging.transport.scrapeClientEvent",!0);else return;m=g.Q4("yt.logging.transport.scrapedPayloadsForTesting");P=g.Q4("yt.logging.transport.payloadToScrape");Q&&(Q=Q.payload,(Q=g.Q4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q)())&&m.push(Q));Q=g.Q4("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var W=0;W<P.length;W++)if(D&&D.payload[P[W]])if(Q)m.push(D.payload);else{var L=void 0;m.push(((L=D)==null?void 0:L.payload)[P[W]])}g.ch("yt.logging.transport.scrapedPayloadsForTesting",
m)};
qJ=function(){return g.oi("use_request_time_ms_header")||g.oi("lr_use_request_time_ms_header")};
i4=function(D,Q){return g.oi("transport_use_scheduler")===!1?g.tl(D,Q):g.oi("logging_avoid_blocking_during_navigation")||g.oi("lr_logging_avoid_blocking_during_navigation")?g.xt(0,function(){if(Uem().currentState==="none")D();else{var m={};Uem().install((m.none={callback:D},m))}},Q):pU(D,0,Q)};
tG=function(D){g.oi("transport_use_scheduler")?g.KJ.N5(D):g.bS(D)};
si7=function(D){var Q,m,P,W,L,u,t,z,b,q;return g.U(function(C){return C.C==1?(P=(Q=D)==null?void 0:(m=Q.responseContext)==null?void 0:m.globalConfigGroup,W=g.A(P,dvu),u=(L=P)==null?void 0:L.hotHashData,t=g.A(P,t8w),b=(z=P)==null?void 0:z.coldHashData,(q=kj().resolve(nP(iI)))?u?W?g.I(C,WQk(q,u,W),2):g.I(C,WQk(q,u),2):C.Nv(2):C.return()):b?t?g.I(C,in_(q,b,t),0):g.I(C,in_(q,b),0):C.Nv(0)})};
Pi=function(D,Q){Q=Q===void 0?200:Q;return D?Q===300?GG6:zE7:Q===300?ME_:bpr};
eLw=function(D){if(g.oi("enable_web_tiered_gel")){D=q2n[D||""];var Q,m,P,W=kj().resolve(nP(iI))==null?void 0:(Q=LR())==null?void 0:(m=Q.loggingHotConfig)==null?void 0:(P=m.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(W)for(Q=0;Q<W.length;Q++)if(W[Q].payloadNumber===D)return W[Q]}};
$e$=function(D){D=Object.keys(D);D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,q2n[Q])return Q};
vK7=function(D){switch(D){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}};
Dl=function(D){return D==="gelDebuggingEvent"};
mvm=function(D){return(D===void 0?0:D)&&g.oi("vss_through_gel_video_stats")?"video_stats":"log_event"};
Vi=function(D,Q,m,P){P=P===void 0?{}:P;var W={},L=Math.round(P.timestamp||(0,g.T3)());W.eventTimeMs=L<Number.MAX_SAFE_INTEGER?L:0;W[D]=Q;D=FE();W.context={lastActivityMs:String(P.timestamp||!isFinite(D)?-1:D)};P.sequenceGroup&&!g.oi("web_gel_sequence_info_killswitch")&&(D=W.context,Q=P.sequenceGroup,Q={index:CSm(Q),groupKey:Q},D.sequence=Q,P.endOfSequence&&delete fb[P.sequenceGroup]);g.oi("web_tag_automated_log_events")&&(W.context.automatedLogEventSource=P.automatedLogEventSource);(P.sendIsolatedPayload?
O4n:aUr)({endpoint:"log_event",payload:W,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},m)};
CSm=function(D){fb[D]=D in fb?fb[D]+1:0;return fb[D]};
g.WD=function(D,Q,m){m=m===void 0?{}:m;var P=g.xT;g.YK("ytLoggingEventsDefaultDisabled",!1)&&g.xT===g.xT&&(P=null);Vi(D,Q,P,m)};
NJ=function(D){this.S=D};
g.yi=function(D){return new NJ({trackingParams:D})};
fGj=function(D,Q,m,P,W,L){var u=oyw++;return new NJ({veType:D,veCounter:u,elementIndex:m,dataElement:Q,youtubeData:P,jspbYoutubeData:W,loggingDirectives:L})};
V8j=function(D){return g.YK("client-screen-nonce-store",{})[D===void 0?0:D]};
Nj9=function(D,Q){Q=Q===void 0?0:Q;var m=g.YK("client-screen-nonce-store");m||(m={},Oj("client-screen-nonce-store",m));m[Q]=D};
Zl=function(D){D=D===void 0?0:D;return D===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+D};
yl4=function(D){return g.YK(Zl(D===void 0?0:D))};
g.Fz=function(D){return(D=yl4(D===void 0?0:D))?new NJ({veType:D,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Zp9=function(){var D=g.YK("csn-to-ctt-auth-info");D||(D={},Oj("csn-to-ctt-auth-info",D));return D};
F6w=function(){return Object.values(g.YK("client-screen-nonce-store",{})).filter(function(D){return D!==void 0})};
g.Tq=function(D){D=V8j(D===void 0?0:D);if(!D&&!g.YK("USE_CSN_FALLBACK",!0))return null;D||(D="UNDEFINED_CSN");return D?D:null};
hEj=function(D){for(var Q=g.T(Object.values(Tjn)),m=Q.next();!m.done;m=Q.next())if(g.Tq(m.value)===D)return!0;return!1};
ny_=function(D,Q,m){var P=Zp9();(m=g.Tq(m))&&delete P[m];Q&&(P[D]=Q)};
hG=function(D){return Zp9()[D]};
gyk=function(D,Q,m,P){m=m===void 0?0:m;if(D!==V8j(m)||Q!==g.YK(Zl(m)))if(ny_(D,P,m),Nj9(D,m),Oj(Zl(m),Q),Q=function(){setTimeout(function(){D&&g.WD("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:EyP,clientScreenNonce:D})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Q)}catch(W){Q()}else Q()};
nb=function(D,Q){var m=m===void 0?!0:m;var P=g.YK("VALID_SESSION_TEMPDATA_DOMAINS",[]),W=g.uY(window.location.href);W&&P.push(W);W=g.uY(D);if(g.FK(P,W)||!W&&k1(D,"/"))if(P=document.createElement("a"),g.dh(P,D),D=P.href)if(D=to(D),D=vZr(D))if(m&&!Q.csn&&(Q.itct||Q.ved)&&(Q=Object.assign({csn:g.Tq()},Q)),L){var L=parseInt(L,10);isFinite(L)&&L>0&&Bj$(D,Q,L)}else Bj$(D,Q)};
Bj$=function(D,Q,m){D=wdk(D);Q=Q?g.CG(Q):"";m=m||5;Mv()&&g.Jl(D,Q,m)};
wdk=function(D){for(var Q=g.T(kXh),m=Q.next();!m.done;m=Q.next())D=FA(D,m.value);return"ST-"+lp(D).toString(36)};
Jln=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")};
lG_=function(D){if(!D.stack)return!0;var Q=!D.stack.includes("\n");return Q&&D.stack.includes("ErrorType: ")||Q&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1};
IG_=function(){this.Nr=[];this.f1=[]};
go=function(){if(!Ez){var D=Ez=new IG_;D.f1.length=0;D.Nr.length=0;RE4(D,UvP)}return Ez};
RE4=function(D,Q){Q.f1&&D.f1.push.apply(D.f1,Q.f1);Q.Nr&&D.Nr.push.apply(D.Nr,Q.Nr)};
Hp4=function(D){function Q(){return D.charCodeAt(P++)}
var m=D.length,P=0;do{var W=Bi(Q);if(W===Infinity)break;var L=W>>3;switch(W&7){case 0:W=Bi(Q);if(L===2)return W;break;case 1:if(L===2)return;P+=8;break;case 2:W=Bi(Q);if(L===2)return D.substr(P,W);P+=W;break;case 5:if(L===2)return;P+=4;break;default:return}}while(P<m)};
Bi=function(D){var Q=D(),m=Q&127;if(Q<128)return m;Q=D();m|=(Q&127)<<7;if(Q<128)return m;Q=D();m|=(Q&127)<<14;if(Q<128)return m;Q=D();return Q<128?m|(Q&127)<<21:Infinity};
K6w=function(D,Q,m,P){if(D)if(Array.isArray(D)){var W=P;for(P=0;P<D.length&&!(D[P]&&(W+=wo(P,D[P],Q,m),W>500));P++);P=W}else if(typeof D==="object")for(W in D){if(D[W]){var L=W;var u=D[W],t=Q,z=m;L=typeof u!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(u=Hp4(atob(u.replace(/-/g,"+").replace(/_/g,"/"))))?wo(L+".ve",u,t,z):0;P+=L;P+=wo(W,D[W],Q,m);if(P>500)break}}else m[Q]=kO(D),P+=m[Q].length;else m[Q]=kO(D),P+=m[Q].length;return P};
wo=function(D,Q,m,P){m+="."+D;D=kO(Q);P[m]=D;return m.length+D.length};
kO=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(Q){return"unable to serialize "+typeof D+" ("+Q.message+")"}};
PD=function(D){g.JG(D)};
g.l4=function(D){g.JG(D,"WARNING")};
g.JG=function(D,Q){var m=m===void 0?{}:m;m.name=g.YK("INNERTUBE_CONTEXT_CLIENT_NAME",1);m.version=g.YK("INNERTUBE_CONTEXT_CLIENT_VERSION");Q=Q===void 0?"ERROR":Q;var P=!1;Q=Q===void 0?"ERROR":Q;P=P===void 0?!1:P;if(D){D.hasOwnProperty("level")&&D.level&&(Q=D.level);if(g.oi("console_log_js_exceptions")){var W=[];W.push("Name: "+D.name);W.push("Message: "+D.message);D.hasOwnProperty("params")&&W.push("Error Params: "+JSON.stringify(D.params));D.hasOwnProperty("args")&&W.push("Error args: "+JSON.stringify(D.args));
W.push("File name: "+D.fileName);W.push("Stacktrace: "+D.stack);window.console.log(W.join("\n"),D)}if(!(ji$>=5)){W=[];for(var L=g.T($vk),u=L.next();!u.done;u=L.next()){u=u.value;try{u()&&W.push(u())}catch(h){}}W=[].concat(g.on(eEu),g.on(W));var t=iVP(D);L=t.message||"Unknown Error";u=t.name||"UnknownError";var z=t.stack||D.C||"Not available";if(z.startsWith(u+": "+L)){var b=z.split("\n");b.shift();z=b.join("\n")}b=t.lineNumber||"Not available";t=t.fileName||"Not available";var q=0;if(D.hasOwnProperty("args")&&
D.args&&D.args.length)for(var C=0;C<D.args.length&&!(q=K6w(D.args[C],"params."+C,m,q),q>=500);C++);else if(D.hasOwnProperty("params")&&D.params){var f=D.params;if(typeof D.params==="object")for(C in f){if(f[C]){var V="params."+C,N=kO(f[C]);m[V]=N;q+=V.length+N.length;if(q>500)break}}else m.params=kO(f)}if(W.length)for(C=0;C<W.length&&!(q=K6w(W[C],"params.context."+C,m,q),q>=500);C++);navigator.vendor&&!m.hasOwnProperty("vendor")&&(m["device.vendor"]=navigator.vendor);m={message:L,name:u,lineNumber:b,
fileName:t,stack:z,params:m,sampleWeight:1};C=Number(D.columnNumber);isNaN(C)||(m.lineNumber=m.lineNumber+":"+C);if(D.level==="IGNORED")D=0;else a:{D=go();C=g.T(D.f1);for(W=C.next();!W.done;W=C.next())if(W=W.value,m.message&&m.message.match(W.Ek)){D=W.weight;break a}D=g.T(D.Nr);for(C=D.next();!C.done;C=D.next())if(C=C.value,C.callback(m)){D=C.weight;break a}D=1}m.sampleWeight=D;D=g.T(vyr);for(C=D.next();!C.done;C=D.next())if(C=C.value,C.Oz[m.name])for(L=g.T(C.Oz[m.name]),W=L.next();!W.done;W=L.next())if(u=
W.value,W=m.message.match(u.GM)){m.params["params.error.original"]=W[0];L=u.groups;u={};for(b=0;b<L.length;b++)u[L[b]]=W[b+1],m.params["params.error."+L[b]]=W[b+1];m.message=C.r7(u);break}m.params||(m.params={});D=go();m.params["params.errorServiceSignature"]="msg="+D.f1.length+"&cb="+D.Nr.length;m.params["params.serviceWorker"]="false";g.Mu.document&&g.Mu.document.querySelectorAll&&(m.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new SZ(X4,"sample")).constructor!==
SZ&&(m.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(m);if(m.sampleWeight!==0&&!Opu.has(m.message)){if(P&&g.oi("web_enable_error_204"))Y2j(Q===void 0?"ERROR":Q,m);else{Q=Q===void 0?"ERROR":Q;Q==="ERROR"?(IC.publish("handleError",m),g.oi("record_app_crashed_web")&&aGk===0&&m.sampleWeight===1&&(aGk++,P={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.oi("report_client_error_with_app_crash_ks")||(P.systemHealth={crashData:{clientError:{logMessage:{message:m.message}}}}),
g.WD("appCrashed",P)),Alh++):Q==="WARNING"&&IC.publish("handleWarning",m);if(g.oi("kevlar_gel_error_routing")){P=Q;D=void 0;D=D===void 0?{}:D;b:{C=g.T(pd_);for(W=C.next();!W.done;W=C.next())if(g.j8(W.value.toLowerCase())){C=!0;break b}C=!1}if(C)D=void 0;else{W={stackTrace:m.stack};m.fileName&&(W.filename=m.fileName);C=m.lineNumber&&m.lineNumber.split?m.lineNumber.split(":"):[];C.length!==0&&(C.length!==1||isNaN(Number(C[0]))?C.length!==2||isNaN(Number(C[0]))||isNaN(Number(C[1]))||(W.lineNumber=Number(C[0]),
W.columnNumber=Number(C[1])):W.lineNumber=Number(C[0]));C={level:"ERROR_LEVEL_UNKNOWN",message:m.message,errorClassName:m.name,sampleWeight:m.sampleWeight};P==="ERROR"?C.level="ERROR_LEVEL_ERROR":P==="WARNING"&&(C.level="ERROR_LEVEL_WARNNING");W={isObfuscated:!0,browserStackInfo:W};D.pageUrl=window.location.href;D.kvPairs=[];g.YK("FEXP_EXPERIMENTS")&&(D.experimentIds=g.YK("FEXP_EXPERIMENTS"));L=g.YK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!aw("web_disable_gel_stp_ecatcher_killswitch")&&L)for(u=
g.T(Object.keys(L)),b=u.next();!b.done;b=u.next())b=b.value,D.kvPairs.push({key:b,value:String(L[b])});if(L=m.params)for(u=g.T(Object.keys(L)),b=u.next();!b.done;b=u.next())b=b.value,D.kvPairs.push({key:"client."+b,value:String(L[b])});L=g.YK("SERVER_NAME");u=g.YK("SERVER_VERSION");L&&u&&(D.kvPairs.push({key:"server.name",value:L}),D.kvPairs.push({key:"server.version",value:u}));D={errorMetadata:D,stackTrace:W,logMessage:C}}if(D&&(g.WD("clientError",D),P==="ERROR"||g.oi("errors_flush_gel_always_killswitch")))a:{if(g.oi("web_fp_via_jspb")){P=
!0;P=P===void 0?!1:P;D=xv$;xv$=[];if(D)for(D=g.T(D),C=D.next();!C.done;C=D.next())C=C.value,P?Vi(C.payloadName,C.payload,g.xT,C.options):g.WD(C.payloadName,C.payload,C.options);Qi(void 0,!0);if(!g.oi("web_fp_via_jspb_and_json"))break a}Qi(void 0,!1)}}g.oi("suppress_error_204_logging")||Y2j(Q,m)}try{Opu.add(m.message)}catch(h){}ji$++}}}};
Y2j=function(D,Q){var m=Q.params||{};D={urlParams:{a:"logerror",t:"jserror",type:Q.name,msg:Q.message.substr(0,250),line:Q.lineNumber,level:D,"client.name":m.name},postParams:{url:g.YK("PAGE_NAME",window.location.href),file:Q.fileName},method:"POST"};m.version&&(D["client.version"]=m.version);if(D.postParams){Q.stack&&(D.postParams.stack=Q.stack);Q=g.T(Object.keys(m));for(var P=Q.next();!P.done;P=Q.next())P=P.value,D.postParams["client."+P]=m[P];if(m=g.YK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Q=
g.T(Object.keys(m)),P=Q.next();!P.done;P=Q.next())P=P.value,D.postParams[P]=m[P];(m=g.YK("LAVA_VERSION"))&&(D.postParams["lava.version"]=m);m=g.YK("SERVER_NAME");Q=g.YK("SERVER_VERSION");m&&Q&&(D.postParams["server.name"]=m,D.postParams["server.version"]=Q)}g.ZG(g.YK("ECATCHER_REPORT_HOST","")+"/error_204",D)};
XdP=function(D){var Q=g.e$.apply(1,arguments);D.args||(D.args=[]);Array.isArray(D.args)&&D.args.push.apply(D.args,g.on(Q))};
Hi=function(D){var Q=g.A(D,RC);if(Q)return Q;if((Q=g.A(D,S27))&&Q.commands)return rlP(Q.commands);if((Q=g.A(D,GX$))&&Q.commands)return rlP(Q.commands);if((D=g.A(D,M8_))&&D.identifier&&D.command&&(Uz||(Uz=[]),!Uz.includes(D.identifier)))return Uz.push(D.identifier),g.A(D.command,RC)};
rlP=function(D){if(D.length!==0){var Q=[];D=g.T(D);for(var m=D.next();!m.done;m=D.next())(m=Hi(m.value))&&Q.push(m);return{commandExecutorCommand:{commands:Q}}}};
g.Kb=function(D,Q,m){m===void 0?delete D[Q.name]:D[Q.name]=m};
clm=function(D){for(var Q=0,m=0;m<D.length;m++)Q=Q*31+D.charCodeAt(m),m<D.length-1&&(Q%=0x800000000000);return Q%1E5};
jX=function(D){z0.call(this,1,arguments);this.csn=D};
QS6=function(D,Q,m,P,W,L,u,t){var z=DZn(),b=new NJ({veType:Q,youtubeData:L,jspbYoutubeData:void 0});L=$O({},z);W&&(L.cttAuthInfo=W);W={csn:z,pageVe:b.getAsJson()};g.oi("expectation_logging")&&t&&t.screenCreatedLoggingExpectations&&(W.screenCreatedLoggingExpectations=t.screenCreatedLoggingExpectations);m&&m.visualElement?(W.implicitGesture={parentCsn:m.clientScreenNonce,gesturedVe:m.visualElement.getAsJson()},u&&(W.implicitGesture.gestureType=u)):m&&g.l4(new g.OI("newScreen() parent element does not have a VE - rootVe",
Q));P&&(W.cloneCsn=P);D?Vi("screenCreated",W,D,L):g.WD("screenCreated",W,L);CR(N2j,new jX(z));eX.clear();vi.clear();Oz.clear();return z};
g.aC=function(D,Q,m,P,W,L){L=L===void 0?{}:L;g.YO(D,Q,m,[P],W===void 0?!1:W,L)};
g.YO=function(D,Q,m,P,W,L){W=W===void 0?!1:W;L=L===void 0?{}:L;Object.assign(L,$O({cttAuthInfo:hG(Q)||void 0},Q));for(var u=g.T(P),t=u.next();!t.done;t=u.next()){t=t.value;var z=t.getAsJson();(g.b7(z)||!z.trackingParams&&!z.veType)&&g.l4(Error("Child VE logged with no data"));if(g.oi("no_client_ve_attach_unless_shown")){var b=AG(t,Q);if(z.veType&&!vi.has(b)&&!Oz.has(b)&&!W){if(!g.oi("il_attach_cache_limit")||eX.size<1E3){eX.set(b,[D,Q,m,t]);return}g.oi("il_attach_cache_limit")&&eX.size>1E3&&g.l4(new g.OI("IL Attach cache exceeded limit"))}t=
AG(m,Q);eX.has(t)?pb(m,Q):Oz.set(t,!0)}}P=P.filter(function(q){q.csn!==Q?(q.csn=Q,q=!0):q=!1;return q});
m={csn:Q,parentVe:m.getAsJson(),childVes:g.fk(P,function(q){return q.getAsJson()})};
Q==="UNDEFINED_CSN"?xO("visualElementAttached",L,m):D?Vi("visualElementAttached",m,D,L):g.WD("visualElementAttached",m,L)};
mZ7=function(D,Q,m,P,W){Xz(m,Q);P=$O({cttAuthInfo:hG(Q)||void 0},Q);m={csn:Q,ve:m.getAsJson(),eventType:1};W&&(m.clientData=W);Q==="UNDEFINED_CSN"?xO("visualElementShown",P,m):D?Vi("visualElementShown",m,D,P):g.WD("visualElementShown",m,P)};
Pzj=function(D,Q,m,P){var W=(P=P===void 0?!1:P)?16:8;P=$O({cttAuthInfo:hG(Q)||void 0,endOfSequence:P},Q);m={csn:Q,ve:m.getAsJson(),eventType:W};Q==="UNDEFINED_CSN"?xO("visualElementHidden",P,m):D?Vi("visualElementHidden",m,D,P):g.WD("visualElementHidden",m,P)};
SX=function(D,Q,m,P,W){W9h(D,Q,m,void 0,P,W)};
W9h=function(D,Q,m,P,W){Xz(m,Q);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=$O({cttAuthInfo:hG(Q)||void 0},Q);m={csn:Q,ve:m.getAsJson(),gestureType:P};W&&(m.clientData=W);Q==="UNDEFINED_CSN"?xO("visualElementGestured",L,m):D?Vi("visualElementGestured",m,D,L):g.WD("visualElementGestured",m,L)};
iU9=function(){var D=fP(16);for(var Q=[],m=0;m<D.length;m++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[m]&63));return Q.join("")};
xO=function(D,Q,m){ro.push({payloadName:D,payload:m,tux:void 0,options:Q});Gq||(Gq=hX_())};
FQ7=function(D){if(ro){for(var Q=g.T(ro),m=Q.next();!m.done;m=Q.next())m=m.value,m.payload&&(m.payload.csn=D.csn,g.WD(m.payloadName,m.payload,m.options));ro.length=0}Gq=0};
AG=function(D,Q){return""+D.getAsJson().veType+D.getAsJson().veCounter+Q};
Xz=function(D,Q){if(g.oi("no_client_ve_attach_unless_shown")){var m=AG(D,Q);vi.set(m,!0);pb(D,Q)}};
pb=function(D,Q){D=AG(D,Q);eX.has(D)&&(Q=eX.get(D)||[],g.aC(Q[0],Q[1],Q[2],Q[3],!0),eX.delete(D))};
$O=function(D,Q){g.oi("log_sequence_info_on_gel_web")&&(D.sequenceGroup=Q);return D};
g.MJ=function(D,Q,m,P){g.xK(mZ7)(void 0,D,Q,m,P,void 0)};
g.ci=function(D,Q){g.xK(function(){g.S2(Q,function(m){Xz(m,D);var P=$O({cttAuthInfo:hG(D)||void 0},D);m={csn:D,ve:m.getAsJson(),eventType:4};D==="UNDEFINED_CSN"?xO("visualElementShown",P,m):g.WD("visualElementShown",m,P)})})()};
g.DM=function(D,Q){g.xK(function(){g.S2(Q,function(m){Pzj(void 0,D,m)})})()};
g.Qq=function(D,Q,m){g.xK(SX)(void 0,D,Q,m,void 0)};
mr=function(D,Q,m,P){g.xK(W9h)(void 0,D,Q,m,P,void 0)};
WR=function(D,Q,m,P,W,L){m=m===void 0?{}:m;this.componentType=D;this.renderer=Q===void 0?null:Q;this.macros=m;this.layoutId=P;this.interactionLoggingClientData=W;this.S=L;this.id=PR(D)};
PR=function(D){var Q=":"+(Kn.getInstance().S++).toString(36);return D+Q};
g.iR=function(D){D=D===void 0?!1:D;g.v.call(this);this.uS=new g.TY(D);g.O(this,this.uS)};
sX=function(){var D="ytp-id-"+sS_.toString();sS_++;return D};
g.LX=function(D){g.v.call(this);this.cY={};this.PO={};this.element=this.createElement(D)};
uR=function(D,Q,m,P){if(P.substring(0,2)==="{{")D.PO[P]=[Q,m];else return P};
L96=function(D,Q){var m=[];if(!Q)return m;Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())if(P=P.value,P!=null){var W=P.nodeType;W===1||W===3?m.push(P):P&&typeof P.K==="string"?m.push(D.createElement(P)):P.element?m.push(P.element):typeof P==="string"&&P.indexOf("\n")!==-1?P.split("\n").forEach(function(L,u){u>0&&m.push(g.qi("BR"));m.push(g.Ca(L))}):m.push(g.Ca(P))}return m};
di=function(D,Q,m,P){if(m==="child"){g.fa(Q);var W;P===void 0?W=void 0:W=!Array.isArray(P)||P&&typeof P.K==="string"?[P]:P;m=L96(D,W);m=g.T(m);for(D=m.next();!D.done;D=m.next())Q.appendChild(D.value)}else m==="style"?g.YZ(Q,"cssText",P?P:""):P===null||P===void 0?Q.removeAttribute(m):(D=P.toString(),m==="href"&&(D=g.Pb(g.sc(D))),Q.setAttribute(m,D))};
g.p=function(D){g.LX.call(this,D);this.To=!0;this.J=!1;this.listeners=[]};
g.t1=function(D){g.p.call(this,D);this.GO=new g.iR;g.O(this,this.GO)};
z1=function(D,Q,m,P,W,L,u){u=u===void 0?null:u;g.t1.call(this,Q);this.api=D;this.macros={};this.componentType=m;this.U=this.Z=null;this.jD=u;this.layoutId=P;this.interactionLoggingClientData=W;this.Pq=L;this.Y9=null;this.Vz=new qF(this.element);g.O(this,this.Vz);this.oy=this.W(this.element,"click",this.onClick);this.QF=[];this.Kh=new CP(this.onClick,this);g.O(this,this.Kh);this.gB=!1;this.wc=this.TO=null};
bR=function(D,Q){D=D===void 0?null:D;Q=Q===void 0?null:Q;if(D==null)return g.l4(Error("Got null or undefined adText object")),"";var m=g.Jy(D.text);if(!D.isTemplated)return m;if(Q==null)return g.l4(Error("Missing required parameters for a templated message")),m;D=g.T(Object.entries(Q));for(Q=D.next();!Q.done;Q=D.next()){var P=g.T(Q.value);Q=P.next().value;P=P.next().value;m=m.replace("{"+Q+"}",P)}return m};
u79=function(D){D=D===void 0?null:D;return D!=null&&(D=D.thumbnail,D!=null&&D.thumbnails!=null&&D.thumbnails.length!=0&&D.thumbnails[0].url!=null)?g.Jy(D.thumbnails[0].url):""};
dZk=function(D){D=D===void 0?null:D;return D!=null&&(D=D.thumbnail,D!=null&&D.thumbnails!=null&&D.thumbnails.length!=0&&D.thumbnails[0].width!=null&&D.thumbnails[0].height!=null)?new g.Ay(D.thumbnails[0].width||0,D.thumbnails[0].height||0):new g.Ay(0,0)};
g.qC=function(D){if(D.simpleText)return D.simpleText;if(D.runs){var Q=[];D=g.T(D.runs);for(var m=D.next();!m.done;m=D.next())m=m.value,m.text&&Q.push(m.text);return Q.join("")}return""};
g.CX=function(D){if(D.simpleText)return D=document.createTextNode(D.simpleText),D;var Q=[];if(D.runs)for(var m=0;m<D.runs.length;m++){var P=D.runs[m];if(P.text){var W=Q,L=W.push,u=null;var t=P.text;P.bold&&(u=bX("B",null,u||t));P.italics&&(u=bX("I",null,u||t));P.strikethrough&&(u=bX("STRIKE",null,u||t));P.navigationEndpoint&&P.navigationEndpoint.urlEndpoint&&(P=P.navigationEndpoint.urlEndpoint,u=bX("A",null,u||t),g.dh(u,P.url),P.target=="TARGET_NEW_WINDOW"&&(u.target="_blank"));t=u||bX("SPAN",null,
t);L.call(W,t)}}return Q.length==1?Q[0]:bX("SPAN",null,Q)};
g.t0j=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]}};
oq=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Y:{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.fX=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{K:"path",Y:{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.Vq=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{K:"path",Y:{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"}}]}};
zWk=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{K:"path",Y:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{K:"path",Y:{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"}}]}};
bU$=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{K:"path",Rt:!0,Y:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
qI_=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{K:"path",Rt:!0,Y:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.NC=function(){return{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{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"}}]}};
yq=function(){return{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z",
fill:"white"}}]}};
Czh=function(){return{K:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Y:{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"}}]}};
ot9=function(){return{K:"svg",Y:{viewBox:"0 0 24 24"},X:[{K:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Y:{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"}}]}};
f56=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
V0$=function(){return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{"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"}}]}};
Nb7=function(){return{K:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{K:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",Y:{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"}}]}};
yJj=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}};
ZU7=function(){return{K:"svg",Y:{viewBox:"0 0 24 24"},X:[{K:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Y:{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"}}]}};
ZM=function(){return{K:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Y:{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"}}]}};
F9$=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{K:"path",Rt:!0,Y:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
FR=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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.T1=function(){return{K:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{K:"path",Y:{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"}}]}};
h1=function(){return{K:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{K:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",Y:{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"}}]}};
Tbu=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
hW7=function(){return{K:"svg",Y:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},X:[{K:"path",Y:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z",
fill:"white"}}]}};
ntP=function(){return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",L:"ytp-svg-fill",Y:{"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"}}]}};
Etm=function(){return{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{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"}}]}};
nX=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]}};
EX=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}};
gi=function(){return{K:"svg",Y:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},X:[{K:"path",Y:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z",
fill:"white"}}]}};
gtm=function(){return{K:"svg",Y:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},X:[{K:"path",Y:{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"}},{K:"path",Y:{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"}}]}};
Bbw=function(){return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"rect",Y:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",Y:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",Y:{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"}},{K:"defs",X:[{K:"linearGradient",Y:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},X:[{K:"stop",Y:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",Y:{offset:"0.9","stop-color":"#E01378"}}]}]}]}};
w5j=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
kP7=function(){return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}};
g.BR=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}};
JJk=function(){return{K:"svg",Y:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},X:[{K:"path",Y:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z",
fill:"white"}}]}};
g.wi=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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.kb=function(){return{K:"svg",Y:{height:"100%",viewBox:"0 0 16 16",width:"100%"},X:[{K:"path",Y:{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"}}]}};
l5$=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
I5P=function(){return{K:"svg",Y:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},X:[{K:"path",Y:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z",
fill:"white"}}]}};
RW7=function(){return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
fill:"white"}}]}};
J1=function(){return{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}};
lR=function(D,Q,m){Q=Q===void 0?!1:Q;m=m===void 0?!1:m;if(!D)return null;switch(D.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return m?{K:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:h1();case "CHECK_BOX":return{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Y:{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{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{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"}},{K:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.NC();case "INFO_OUTLINE":return Q?{K:"svg",Y:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},X:[{K:"path",Y:{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"}}]}:
Nb7();case "REMOVE_CIRCLE":return{K:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Y:{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 FR();case "SKIP_NEXT_NEW":return{K:"svg",Y:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},X:[{K:"path",Y:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return ZU7();
case "DISLIKE":return ot9();default:return g.l4(new g.OI("Unexpected icon:",D)),null}};
Iq=function(D,Q,m,P,W,L,u,t,z){W=W===void 0?[]:W;u=u===void 0?!1:u;z=z===void 0?!1:z;W={K:"button",OW:["ytp-ad-button"].concat(W)};t!=null&&(W.Y={tabindex:t});z1.call(this,D,W,L===void 0?"button":L,Q,m,P);this.S=this.C=this.T=null;this.N=u;this.B=z;this.hide()};
UZn=function(D){var Q=null;D.S!=null&&(Q=[D.S.serviceEndpoint,D.S.navigationEndpoint].filter(function(m){return m!=null}),D.S.command&&(Q=Q.concat(D.S.command)));
return Q||[]};
Rq=function(){g.v.call(this);var D=this;this.S=new Map;this.C=v5u(function(Q){if(Q.target&&(Q=D.S.get(Q.target))&&Q)for(var m=0;m<Q.length;m++)g.Ro(Q[m])})};
HU4=function(){UX==null&&(UX=new Rq);return UX};
HR=function(D,Q){if(D.simpleText){a:{D=D.simpleText;if(Q&&(Q=K97(D))){Q=bX("SPAN",null,Q);break a}Q=g.Ca(D)}return Q}var m=[];if(D.runs)for(var P=0;P<D.runs.length;P++){var W=D.runs[P];W.text&&m.push(jSh(W,Q))}return m.length==1?m[0]:bX("SPAN",null,m)};
jSh=function(D,Q){var m=null,P=D.text;Q&&(P=K97(P)||P);D.bold&&(m=bX("B",null,m||P));D.italics&&(m=bX("I",null,m||P));D.strikethrough&&(m=bX("STRIKE",null,m||P));D.navigationEndpoint&&g.A(D.navigationEndpoint,g.KX)&&(Q=g.A(D.navigationEndpoint,g.KX),m=bX("A",null,m||P),g.dh(m,Q.url),Q.target=="TARGET_NEW_WINDOW"&&(m.target="_blank"),D=D.navigationEndpoint.loggingUrls)&&(D=D.map(function(W){return W.baseUrl}),HU4().register(m,D),g.mQ(m,"ytp-ad-has-logging-urls"));
return m||bX("SPAN",null,P)};
K97=function(D){D=D.split(/(?:\r\n|\r|\n)/g);if(D.length>1){for(var Q=[D[0]],m=1;m<D.length;m++)Q.push(bX("BR")),Q.push(D[m]);return Q}return null};
j1=function(D,Q,m,P,W,L,u,t,z){L=L===void 0?!1:L;u=u===void 0?[]:u;z=z===void 0?!1:z;z1.call(this,D,{K:"span",OW:["ytp-ad-hover-text-button"].concat(u)},t===void 0?"ad-hover-text-button":t,Q,m,P);this.button=this.C=null;this.j=L;this.N=W;this.T=z;this.hide()};
$b=function(D){return D&&D.thumbnails&&(D.thumbnails||null).length!=0&&D.thumbnails[0].url?g.Jy(D.thumbnails[0].url):""};
e1=function(D,Q,m,P,W,L){L=L===void 0?!1:L;z1.call(this,D,{K:"img",L:"ytp-ad-image"},"ad-image",Q,m,P,W===void 0?null:W);this.S=L;this.hide()};
vR=function(D,Q,m,P,W,L){W=W===void 0?[]:W;z1.call(this,D,{K:"div",OW:["ytp-ad-confirm-dialog-background"],X:[{K:"div",L:"ytp-ad-confirm-dialog-container",X:[{K:"div",OW:["ytp-ad-confirm-dialog"].concat(W),Y:{role:"dialog",tabindex:"-1"},X:[{K:"div",L:"ytp-ad-confirm-dialog-title",h0:"{{title}}"},{K:"div",L:"ytp-ad-confirm-dialog-messages"},{K:"div",L:"ytp-ad-confirm-dialog-confirm-container",X:[{K:"button",L:"ytp-ad-confirm-dialog-cancel-button",h0:"{{cancelLabel}}"},{K:"button",L:"ytp-ad-confirm-dialog-confirm-button",
h0:"{{confirmLabel}}"}]}]}]},{K:"button",OW:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],X:[{K:"span",L:"ytp-ad-button-icon",X:[g.NC()]}]}]},L===void 0?"confirm-dialog":L,Q,m,P);this.j=this.Dx("ytp-ad-confirm-dialog-close-overlay-button");this.B=this.Dx("ytp-ad-confirm-dialog-cancel-button");this.N=this.Dx("ytp-ad-confirm-dialog-confirm-button");this.Iy=this.Dx("ytp-ad-confirm-dialog-messages");this.T=null;this.S=new hJ;g.O(this,this.S);this.C=null;this.hide()};
$Zr=function(D,Q){if(Q.title){var m=g.qC(Q.title);D.updateValue("title",m)}if(Q.dialogMessages){m=g.T(Q.dialogMessages);for(var P=m.next();!P.done;P=m.next())P=HR(P.value),D.Iy.appendChild(P)}Q.cancelLabel&&(m=g.qC(Q.cancelLabel),D.updateValue("cancelLabel",m),D.S.W(D.B,"click",function(W){return D.LA(W)}));
Q.confirmLabel&&(Q=g.qC(Q.confirmLabel),D.updateValue("confirmLabel",Q),D.S.W(D.N,"click",function(W){return D.E5(W)}));
D.S.W(D.j,"click",function(W){return D.MM(W)})};
OX=function(D,Q,m,P,W,L){W=W===void 0?[]:W;L=L===void 0?"toggle-button":L;var u=PR("ytp-ad-toggle-button-input"),t={role:"button","aria-label":"{{tooltipText}}"};D.G().experiments.Mv("fix_h5_toggle_button_a11y")&&(t.tabindex="0");t.role="checkbox";z1.call(this,D,{K:"div",OW:["ytp-ad-toggle-button"].concat(W),X:[{K:"label",L:"ytp-ad-toggle-button-label",Y:{"for":u},X:[{K:"span",L:"ytp-ad-toggle-button-icon",Y:t,X:[{K:"span",L:"ytp-ad-toggle-button-untoggled-icon",h0:"{{untoggledIconTemplateSpec}}"},
{K:"span",L:"ytp-ad-toggle-button-toggled-icon",h0:"{{toggledIconTemplateSpec}}"}]},{K:"input",L:"ytp-ad-toggle-button-input",Y:{id:u,type:"checkbox"}},{K:"span",L:"ytp-ad-toggle-button-text",h0:"{{buttonText}}"},{K:"span",L:"ytp-ad-toggle-button-tooltip",h0:"{{tooltipText}}"}]}]},L,Q,m,P);this.B=this.Dx("ytp-ad-toggle-button");this.S=this.Dx("ytp-ad-toggle-button-input");this.C=this.Dx("ytp-ad-toggle-button-icon");this.j=this.Dx("ytp-ad-toggle-button-untoggled-icon");this.N=this.Dx("ytp-ad-toggle-button-toggled-icon");
this.t0=this.Dx("ytp-ad-toggle-button-text");this.T=null;this.Iy=!1;this.hide()};
Yb=function(D){D.Iy&&(D.isToggled()?(g.QT(D.j,!1),g.QT(D.N,!0),D.C.setAttribute("aria-checked",!0)):(g.QT(D.j,!0),g.QT(D.N,!1),D.C.setAttribute("aria-checked",!1)))};
eW_=function(D,Q){var m=null;D.T&&(m=(Q?[D.T.defaultServiceEndpoint,D.T.defaultNavigationEndpoint]:[D.T.toggledServiceEndpoint]).filter(function(P){return P!=null}));
return m||[]};
vtn=function(D,Q,m){this.actionType=Q;this.id=m;this.content=D};
aq=function(D){hJ.call(this);this.S=D;this.W(this.S,"onAdUxUpdate",this.J)};
A1=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-feedback-dialog-background",X:[{K:"div",L:"ytp-ad-feedback-dialog-container",X:[{K:"div",L:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{K:"div",L:"ytp-ad-feedback-dialog-title",X:[{K:"span",h0:"{{title}}"}]},{K:"span",L:"ytp-ad-info-dialog-feedback-options-title",h0:"{{reasonsTitle}}"},{K:"div",L:"ytp-ad-info-dialog-feedback-options"},{K:"div",L:"ytp-ad-feedback-dialog-confirm-container",X:[{K:"button",L:"ytp-ad-feedback-dialog-cancel-button",
h0:"{{cancelLabel}}"},{K:"button",L:"ytp-ad-feedback-dialog-confirm-button",h0:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",Q,m,P);this.B=[];this.S=null;this.N=this.Dx("ytp-ad-feedback-dialog-cancel-button");this.j=this.Dx("ytp-ad-feedback-dialog-confirm-button");this.Iy=this.Dx("ytp-ad-info-dialog-feedback-options");this.t0=this.Dx("ytp-ad-feedback-dialog-title");this.T=this.C=null;this.hide()};
AJ4=function(D,Q){var m=Q.cancelRenderer&&Q.cancelRenderer.buttonRenderer||null;m&&(D.S=new Iq(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,["ytp-ad-feedback-dialog-close-button"],"button"),g.O(D,D.S),D.S.init(PR("button"),m,D.macros),D.S.listen("click",D.DI,D),D.S.b0(D.element));Q.title&&(m=g.qC(Q.title),D.updateValue("title",m));Q.reasonsTitle&&(m=g.qC(Q.reasonsTitle),D.updateValue("reasonsTitle",m));Q.reasons&&OUw(D,Q.reasons);Q.cancelLabel&&(m=g.qC(Q.cancelLabel),D.updateValue("cancelLabel",
m),g.NZ(D.N,"click",function(){return D.DI()}));
Q.confirmLabel&&(m=g.qC(Q.confirmLabel),D.updateValue("confirmLabel",m),g.NZ(D.j,"click",function(){return YIk(D)}));
Q.undoRenderer&&a57(D,Q.undoRenderer)};
OUw=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){var P=m.value;m=P.reason;if(m==null)g.l4(Error("AdFeedbackReason.reason was not set."));else if(P=P.endpoint,P==null)g.l4(Error("AdFeedbackReason.endpoint was not set."));else{m=new pX(m,P);g.O(D,m);P=D.Iy;var W=m.nj();P.appendChild(W);D.B.push(m)}}};
a57=function(D,Q){if(Q=Q&&Q.buttonRenderer||null)Q.serviceEndpoint?(D.C=new Iq(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.O(D,D.C),D.C.init(PR("ad-feedback-undo-mute-button"),Q,D.macros),D.C.listen("click",D.qCc,D),D.C.b0(D.t0)):g.l4(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
YIk=function(D){var Q=D.B.filter(function(m){return m.isChecked()});
Q.length!==0&&(Q=Q[0].getCommand(),D.layoutId?D.Pq.executeCommand(Q,D.layoutId):g.JG(Error("Missing layoutId for ad feedback dialog.")),D.api.onAdUxClicked("ad-feedback-dialog-confirm-button",D.layoutId),D.publish("a"),D.hide())};
pX=function(D,Q){this.C=Q;this.S=new g.t1({K:"label",L:"ytp-ad-feedback-dialog-reason-label",X:[{K:"input",L:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{K:"span",L:"ytp-ad-feedback-dialog-reason-text",h0:g.qC(D)}]});this.T=this.S.Dx("ytp-ad-feedback-dialog-reason-input")};
xb=function(D,Q,m,P){vR.call(this,D,Q,m,P,[],"ad-mute-confirm-dialog")};
S1=function(D,Q,m,P,W){z1.call(this,D,{K:"div",L:"ytp-ad-info-dialog-background",X:[{K:"div",L:"ytp-ad-info-dialog-container",X:[{K:"div",L:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{K:"div",L:"ytp-ad-info-dialog-title",h0:"{{title}}"},{K:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{K:"div",L:"ytp-ad-info-dialog-message"},{K:"div",L:"ytp-ad-info-dialog-mute-container"},{K:"div",L:"ytp-ad-info-dialog-confirm-container",X:[{K:"button",L:"ytp-ad-info-dialog-confirm-button",h0:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",Q,m,P);this.S=this.C=null;this.j=this.Dx("ytp-ad-info-dialog-confirm-button");this.l0=this.Dx("ytp-ad-info-dialog-mute-container");this.k9=this.Dx("ytp-ad-info-dialog-message");this.u0=this.Dx("ytp-ad-info-dialog-ad-reasons");this.B=this.T=null;this.t0=W;this.N=null;this.x9=!1;this.Iy=null;this.hide()};
p5_=function(D,Q){if(Q=Q.content&&Q.content.adFeedbackRenderer||null)D.C=new A1(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq),g.O(D,D.C),D.C.init(PR("ad-feedback-dialog"),Q,D.macros),D.C.b0(D.t0),D.C.subscribe("a",function(){return D.publish("c")})};
xZm=function(D,Q){if(Q=Q.content&&Q.content.confirmDialogRenderer||null)D.B=new xb(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq),g.O(D,D.B),D.B.init(PR("ad-mute-confirm-dialog"),Q,D.macros),D.B.b0(D.t0),D.B.subscribe("b",function(){return D.publish("c")})};
X5w=function(D){D.S&&D.S.listen("click",D.zL,D);g.NZ(D.j,"click",function(){return D.zL()})};
ri=function(D,Q,m,P,W,L,u){j1.call(this,D,Q,m,P,L===void 0?!0:L,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",u===void 0?!1:u);this.S=null;this.B=W;this.hide()};
rJ7=function(D,Q,m){Q=Q.dialog&&g.A(Q.dialog,SIh)||null;Q==null?g.JG(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(D.S=new S1(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,D.B),g.O(D,D.S),D.S.init(PR("ad-info-dialog"),Q,m),D.S.b0(D.B),D.S.subscribe("d",function(){return D.publish("f")}),D.S.subscribe("c",function(){return D.publish("e")}))};
cJh=function(D,Q,m){D.button==null?g.JG(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(D.C&&g.mQ(D.C.element,"ytp-ad-info-hover-text-short"),(Q=Q&&Q.serviceEndpoint&&g.A(Q.serviceEndpoint,GPr)||null)?(rJ7(D,Q,m),D.button.listen("click",function(){D.S&&!D.S.To&&(D.S.show(),M0k(D))})):D.button.listen("click",function(){return M0k(D)}))};
M0k=function(D){D.api.onAdUxClicked("ad-info-icon-button",D.layoutId)};
G1=function(D,Q,m,P,W,L){z1.call(this,D,{K:"div",L:"ytp-ad-text"},L===void 0?"ad-text":L,Q,m,P,W===void 0?null:W);this.S=null;this.hide()};
MC=function(D,Q){Q&&g.Zq(D.element,bR(D.S,Q))};
cR=function(D,Q,m,P,W,L,u){z1.call(this,D,Q,m,P,W,L);this.S=u;g.O(this,this.S);this.x9=this.j=-1};
Dc=function(D){D.S&&D.j===-1&&(D.j=D.S.subscribe("h",D.l6,D),D.x9=D.S.subscribe("g",D.Wk,D),D.l6())};
QQ=function(D){D.S!=null&&D.j!==-1&&(D.S.Sc(D.j),D.S.Sc(D.x9),D.x9=-1,D.j=-1)};
g.mF=function(D,Q,m,P,W,L){g.v.call(this);this.element=D;this.state=null;m||D.hide();this.C=Q;this.T=P===void 0?Q:P;this.S=L;this.onHidden=W;this.delay=new g.pJ(this.du,0,this);g.O(this,this.delay)};
P_=function(D,Q){D=D.element.element;Q?D.setAttribute("aria-hidden","true"):D.removeAttribute("aria-hidden")};
W_=function(D,Q,m,P,W,L){cR.call(this,D,{K:"div",L:"ytp-ad-preview-slot"},"ad-preview",Q,m,P,W);var u=this;this.l0=-1;this.B=this.api.G().experiments.Mv("enable_modern_skip_button_on_web");this.C=new g.t1({K:"span",L:"ytp-ad-preview-container"});this.B&&this.C.element.classList.add("ytp-ad-preview-container-detached");g.O(this,this.C);this.T=this.B?new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-preview-text-modern"):new G1(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq,"ytp-ad-preview-text");g.O(this,this.T);this.T.b0(this.C.element);this.t0=this.B?new g.t1({K:"span",L:"ytp-ad-preview-image-modern"}):new g.t1({K:"span",L:"ytp-ad-preview-image"});g.O(this,this.t0);this.N=new e1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.N);this.N.b0(this.t0.element);this.t0.b0(this.C.element);this.C.b0(this.element);this.Iy=new g.mF(this.C,400,!1,100,function(){return u.hide()});
g.O(this,this.Iy);this.u0=0;this.k9=!1;this.XT=L;this.hide()};
iu=function(D,Q,m,P,W,L){cR.call(this,D,{K:"div",OW:["ytp-flyout-cta","ytp-flyout-cta-inactive"],X:[{K:"div",L:"ytp-flyout-cta-icon-container"},{K:"div",L:"ytp-flyout-cta-body",X:[{K:"div",L:"ytp-flyout-cta-text-container",X:[{K:"div",L:"ytp-flyout-cta-headline-container"},{K:"div",L:"ytp-flyout-cta-description-container"}]},{K:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",Q,m,P,W);this.T=new e1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-flyout-cta-icon");
g.O(this,this.T);this.T.b0(this.Dx("ytp-flyout-cta-icon-container"));this.T.element.classList.add("ytp-flyout-cta-icon-rounded");this.N=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-flyout-cta-headline");g.O(this,this.N);this.N.b0(this.Dx("ytp-flyout-cta-headline-container"));this.B=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-flyout-cta-description");g.O(this,this.B);this.B.b0(this.Dx("ytp-flyout-cta-description-container"));D=["ytp-flyout-cta-action-button"];
this.api.G().V("web_modern_buttons")&&D.push("ytp-flyout-cta-action-button-rounded");this.C=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,D);g.O(this,this.C);this.C.b0(this.Dx("ytp-flyout-cta-action-button-container"));this.C.element.setAttribute("tabIndex","-1");$G(this.C.element);this.Iy=null;this.t0=0;this.u0=L;this.hide()};
s9=function(D,Q,m,P,W){z1.call(this,D,{K:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",Q,m,P,W===void 0?null:W);var L=this;this.S=null;this.T=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-instream-user-sentiment-like-button"]);g.O(this,this.T);this.T.b0(this.element);this.C=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-instream-user-sentiment-dislike-button"]);g.O(this,this.C);this.C.b0(this.element);
this.B=new g.mF(this,400,!1,500,function(){return L.hide()});
g.O(this,this.B);this.hide()};
Ls=function(D,Q,m,P,W,L){W=W===void 0?0:W;L=L===void 0?!1:L;g.v.call(this);this.C=D;this.T=!1;this.j=P;this.TO=L;this.N=!1;this.S=null;Q>0&&(this.S=new g.pJ(this.MU,Q,this),g.O(this,this.S));this.J=new g.pJ(this.MU,m,this);g.O(this,this.J);this.Z=Esh(this.C,W,1,P);g.O(this,this.Z);this.U=Esh(this.C,0,P,1);g.O(this,this.U);this.B=new hJ;g.O(this,this.B)};
uu=function(D,Q,m){this.C=D;this.isAsync=Q;this.S=m};
DTP=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:ty(D,"unknown result type")}};
QWr=function(D,Q){var m=1;D.isTrusted===!1&&(m=0);Oj("ISDSTAT",m);dE(m,"i.s_",{triggerContext:"sk",metadata:Q});return m};
mTn=function(D,Q){var m=[];Q?Q.isTrusted===!0?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Q.isTrusted===!1?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");dE(0,"a.s_",{metadata:D,states:m});Oj("ASDSTAT",0)};
dE=function(D,Q,m){Q=P8_[Q];var P,W,L={detected:D===0,source:""+Q.C+((P=m.triggerContext)!=null?P:"")+((W=m.o3)!=null?W:""),detectionStates:m.states,durationMs:m.Fi};m.metadata&&(L.contentCpn=m.metadata.contentCpn,L.adCpn=m.metadata.adCpn);g.WD("biscottiBasedDetection",L);Q.S!==void 0&&(m=Number(g.YK("CATSTAT",0)),Q.S!==void 0?(Q=Q.S,D=DTP(D),D=m&~(3<<Q)|D<<Q):D=m,Oj("CATSTAT",D))};
tF=function(D){return D?"layout:  "+D.layoutType:""};
zO=function(D,Q,m){return D?!0:(g.l4(new g.OI("Assertion: "+Q,m)),!1)};
bu=function(D,Q,m,P,W){P=P===void 0?{}:P;if(!W||Math.random()<5E-4){Q=Q||null;m=m||null;D=D instanceof Error?D:new g.OI(D);if(D.args)for(var L=g.T(D.args),u=L.next();!u.done;u=L.next())u=u.value,u instanceof Object&&(P=Object.assign({},u,P));P.category="H5 Ads Control Flow";Q&&(P.slot=Q?"slot:  "+Q.slotType:"");m&&(P.layout=tF(m),P.layoutId=m.layoutId);W&&(P.known_error_aggressively_sampled=!0);D.args=[P];g.l4(D)}};
g.qW=function(D,Q){this.state=D;this.oldState=Q};
Cs=function(D,Q){return g.X(D.state,Q)&&!g.X(D.oldState,Q)?1:!g.X(D.state,Q)&&g.X(D.oldState,Q)?-1:0};
g.oD=function(D,Q){return Cs(D,Q)>0};
fs=function(D,Q,m,P,W,L){cR.call(this,D,{K:"div",L:"ytp-ad-skip-button-slot"},"skip-button",Q,m,P,W);var u=this;this.Iy=null;this.t0=!1;this.k9=L;this.N=this.api.G().experiments.Mv("enable_modern_skip_button_on_web");this.l0=!1;this.B=new g.t1({K:"span",OW:["ytp-ad-skip-button-container"]});this.N&&this.B.element.classList.add("ytp-ad-skip-button-container-detached");g.O(this,this.B);this.B.b0(this.element);this.C=this.T=null;this.XT=new g.mF(this.B,500,!1,100,function(){return u.hide()});
g.O(this,this.XT);this.u0=new Ls(this.B.element,15E3,5E3,.5,.5,this.N);g.O(this,this.u0);this.hide()};
ir$=function(D){D=D.Iy&&D.Iy.adRendererCommands;return(D&&D.clickCommand&&g.A(D.clickCommand,g.VQ)&&g.A(D.clickCommand,g.VQ).commands||[]).some(function(Q){return Q.adLifecycleCommand?WDn(Q.adLifecycleCommand):!1})};
WDn=function(D){return D.action==="END_LINEAR_AD"||D.action==="END_LINEAR_AD_PLACEMENT"};
NW=function(D,Q,m,P,W,L){cR.call(this,D,{K:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",Q,m,P,W);this.Iy=L;this.B=!1;this.N=0;this.T=this.C=null;this.hide()};
sW7=function(D,Q){D.B||(D.B=!0,D.C&&(Q?D.C.Iy.hide():D.C.hide()),Q?(D=D.T,D.XT.show(),D.show()):D.T.show())};
yQ=function(D,Q,m,P){Iq.call(this,D,Q,m,P,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
Zc=function(D,Q,m,P,W,L,u){L=L===void 0?!1:L;u=u===void 0?!1:u;z1.call(this,D,{K:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Q,m,P);this.T=W;this.S=this.Dx("ytp-ad-simple-ad-badge");(this.C=L)&&this.S.classList.add("ytp-ad-simple-ad-badge--clean-player");u&&this.S.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
Fo=function(D,Q,m,P,W){W=W===void 0?!1:W;WR.call(this,"player-overlay",D,{},Q,P);this.videoAdDurationSeconds=m;this.interactionLoggingClientData=P;this.VM=W};
TO=function(D,Q){g.iR.call(this);this.api=D;this.durationMs=Q;this.S=null;this.handler=new hJ(this);g.O(this,this.handler);this.C=LDh;this.handler.W(this.api,"presentingplayerstatechange",this.m4);this.S=this.handler.W(this.api,"onAdPlaybackProgress",this.mu)};
hF=function(D){g.iR.call(this);this.S=!1;this.NL=0;this.handler=new hJ(this);g.O(this,this.handler);this.durationMs=D;this.timer=new g.Ur(100);g.O(this,this.timer);this.handler.W(this.timer,"tick",this.mu);this.C={seekableStart:0,seekableEnd:D/1E3,current:0};this.start()};
g.ns=function(D,Q){var m=Math.abs(Math.floor(D)),P=Math.floor(m/86400),W=Math.floor(m%86400/3600),L=Math.floor(m%3600/60);m=Math.floor(m%60);if(Q){Q="";P>0&&(Q+=" "+P+" Days");if(P>0||W>0)Q+=" "+W+" Hours";Q+=" "+L+" Minutes";Q+=" "+m+" Seconds";P=Q.trim()}else{Q="";P>0&&(Q+=P+":",W<10&&(Q+="0"));if(P>0||W>0)Q+=W+":",L<10&&(Q+="0");Q+=L+":";m<10&&(Q+="0");P=Q+m}return D>=0?P:"-"+P};
g.E9=function(D){return(!("button"in D)||typeof D.button!=="number"||D.button===0)&&!("shiftKey"in D&&D.shiftKey)&&!("altKey"in D&&D.altKey)&&!("metaKey"in D&&D.metaKey)&&!("ctrlKey"in D&&D.ctrlKey)};
gE=function(D,Q,m,P,W,L,u){cR.call(this,D,{K:"span",L:u?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Q,m,P,W);this.videoAdDurationSeconds=L;this.C=null;u&&this.api.G().C&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),aW&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
B_=function(D,Q,m,P){G1.call(this,D,Q,m,P,"ytp-video-ad-top-bar-title","ad-title")};
wE=function(D){this.content=D.content;if(D.commandRuns){D=g.T(D.commandRuns);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.loggingDirectives=g.A(Q,uq9),Q.onTap&&(this.interaction={onTap:Q.onTap})}};
kB=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ad-simple-attributed-string"},"ad-simple-attributed-string",Q,m,P);this.hide()};
JF=function(D,Q,m,P,W){z1.call(this,D,{K:"span",L:W?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Q,m,P);this.C=W;this.adBadgeText=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);this.adBadgeText.b0(this.element);g.O(this,this.adBadgeText);W?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),aW&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
lu=function(D,Q,m,P){z1.call(this,D,{K:"span",L:"ytp-ad-pod-index"},"ad-pod-index",Q,m,P);this.api.G().C&&(this.element.classList.add("ytp-ad-pod-index--mweb"),aW&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
ID=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Q,m,P);this.hide()};
RD=function(D,Q){this.C=D;this.S=Q};
dT6=function(D,Q){return D.C+Q*(D.S-D.C)};
U9=function(D,Q,m){return D.S-D.C?g.eZ((Q-D.C)/(D.S-D.C),0,1):m!=null?m:Infinity};
H_=function(D,Q,m,P){P=P===void 0?!1:P;g.t1.call(this,{K:"div",L:"ytp-ad-persistent-progress-bar-container",X:[{K:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=D;this.C=Q;this.T=m;P&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.O(this,this.C);this.progressBar=this.Dx("ytp-ad-persistent-progress-bar");this.S=-1;this.W(D,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
Ks=function(D,Q,m,P,W,L){z1.call(this,D,{K:"div",L:"ytp-ad-player-overlay",X:[{K:"div",L:"ytp-ad-player-overlay-flyout-cta"},{K:"div",L:"ytp-ad-player-overlay-instream-info"},{K:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",L:"ytp-ad-player-overlay-progress-bar"},{K:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",L:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Q,m,P);this.j=L;this.N=this.Dx("ytp-ad-player-overlay-flyout-cta");this.N.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.S=this.Dx("ytp-ad-player-overlay-instream-info");this.B=null;tan(this)&&(D=bX("div"),g.mQ(D,"ytp-ad-player-overlay-top-bar-gradients"),Q=this.S,Q.parentNode&&Q.parentNode.insertBefore(D,Q),(Q=this.api.getVideoData(2))&&Q.isListed&&Q.title&&(m=new B_(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),m.b0(D),m.init(PR("ad-title"),{text:Q.title},this.macros),g.O(this,m)),this.B=D);this.T=null;this.x9=this.Dx("ytp-ad-player-overlay-skip-or-preview");this.u0=this.Dx("ytp-ad-player-overlay-progress-bar");
this.t0=this.Dx("ytp-ad-player-overlay-instream-user-sentiment");this.Iy=this.Dx("ytp-ad-player-overlay-ad-disclosure-banner");this.C=W;g.O(this,this.C);this.hide()};
tan=function(D){D=D.api.G();return g.jY(D)&&D.C};
g.$B=function(D){D&=16777215;var Q=[(D&16711680)>>16,(D&65280)>>8,D&255];D=Q[0];var m=Q[1];Q=Q[2];D=Number(D);m=Number(m);Q=Number(Q);if(D!=(D&255)||m!=(m&255)||Q!=(Q&255))throw Error('"('+D+","+m+","+Q+'") is not a valid RGB color');m=D<<16|m<<8|Q;return D<16?"#"+(16777216|m).toString(16).slice(1):"#"+m.toString(16)};
g.eY=function(){};
brr=function(D){var Q=new L1;var m=new iK;m=Ub(m,1,"botguard");D=Ub(m,2,D);this.S=Rs6(Q,iK,1,zd$,D)};
v_=function(D){this.S=new Eh(D)};
q47=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){D=!0}return(g.YK("INNERTUBE_CLIENT_NAME")==="WEB"||g.YK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D};
O9=function(){var D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Oj("LOGIN_INFO","");D&&window.sessionStorage.setItem("from_switch_account","1");D=!0;D=D===void 0?!1:D;var Q,m=C87;m||(m=document.querySelector("#persist_identity"));if(Q=m){var P=Q.src?(new URL(Q.src)).origin:"*";if(D){var W;(W=Q.contentWindow)==null||W.postMessage({action:"clear"},P)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)){var L=window.sessionStorage.getItem("session_logininfo");if(L){var u;(u=Q.contentWindow)==null||u.postMessage({loginInfo:L},P)}}}}catch(t){}};
YB=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?O9():D.startsWith("https://accounts.google.com/ServiceLogin")?O9():D.startsWith("https://myaccount.google.com")&&g.zp(D).C.endsWith("/youtubeoptions")&&O9());if(g.YK("LOGGED_IN",!0)&&q47()){var Q=g.YK("VALID_SESSION_TEMPDATA_DOMAINS",[]);var m=g.uY(window.location.href);m&&Q.push(m);m=g.uY(D);g.FK(Q,m)||!m&&k1(D,"/")?(Q=to(D),(Q=vZr(Q))?(Q=wdk(Q),Q=(Q=g.lS(Q)||null)?GG(Q):{}):Q=null):Q=null;Q==null&&(Q={});m=Q;var P=void 0;
q47()?(P||(P=g.YK("LOGIN_INFO")),P?(m.session_logininfo=P,m=!0):m=!1):m=!1;m&&nb(D,Q)}};
g.oD7=function(D){var Q=Q===void 0?{}:Q;var m=m===void 0?"":m;var P=P===void 0?window:P;D=g.oz(D,Q);YB(D);m=g.sc(D+m);P=P.location;m=up(m);m!==void 0&&(P.href=m)};
g.aD=function(D,Q,m){Q=Q===void 0?{}:Q;m=m===void 0?!1:m;var P=g.YK("EVENT_ID");P&&(Q.ei||(Q.ei=P));Q&&nb(D,Q);m||(YB(D),g.oD7(D))};
g.AF=function(D,Q,m,P,W){W=W===void 0?!1:W;m&&nb(D,m);m=g.sc(D);var L=g.Pb(m);D!=L&&Xn(Error("Unsafe window.open URL: "+D));D=L;Q=Q||lp(D).toString(36);try{if(W)return W=D,W=Wd4(W),YB(W),g.C6(window,W,Q,"attributionsrc")}catch(u){g.p4(u)}YB(D);return g.C6(window,m,Q,P)};
fH7=function(D){ps=D};
Va6=function(D){xB=D};
NVk=function(D){Xo=D};
Zrj=function(){yk7=Xo=xB=ps=null};
TVw=function(){var D=D===void 0?window.location.href:D;if(g.oi("kevlar_disable_theme_param"))return null;var Q=dz(D);if(g.oi("enable_dark_theme_only_on_shorts")&&Q!=null&&Q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var m=g.c0(D).theme;return FD7.get(m)||null}catch(P){}return null};
SY=function(){this.S={};if(this.C=z0u()){var D=g.lS("CONSISTENCY");D&&hdk(this,{encryptedTokenJarContents:D})}};
hdk=function(D,Q){if(Q.encryptedTokenJarContents&&(D.S[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var m=Number(Q.expirationSeconds);setTimeout(function(){delete D.S[Q.encryptedTokenJarContents]},m*1E3);
D.C&&g.Jl("CONSISTENCY",Q.encryptedTokenJarContents,m,void 0,!0)}};
GO=function(){this.C=-1;var D=g.YK("LOCATION_PLAYABILITY_TOKEN");g.YK("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=rE(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.S=void 0)};
rE=function(D){return D.localStorage===void 0?new MZ("yt-client-location"):D.localStorage};
g.MW=function(D,Q,m){Q=Q===void 0?!1:Q;m=m===void 0?!1:m;var P=g.YK("INNERTUBE_CONTEXT");if(!P)return g.JG(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};P=g.fg(P);g.oi("web_no_tracking_params_in_shell_killswitch")||delete P.clickTracking;P.client||(P.client={});var W=P.client;W.clientName==="MWEB"&&W.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(W.clientFormFactor=g.YK("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");W.screenWidthPoints=window.innerWidth;W.screenHeightPoints=
window.innerHeight;W.screenPixelDensity=Math.round(window.devicePixelRatio||1);W.screenDensityFloat=window.devicePixelRatio||1;W.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.H5();var u="USER_INTERFACE_THEME_LIGHT";g.KU(0,165)?u="USER_INTERFACE_THEME_DARK":g.KU(0,174)?u="USER_INTERFACE_THEME_LIGHT":!g.oi("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(u="USER_INTERFACE_THEME_DARK");L=L?u:TVw()||u;W.userInterfaceTheme=L;if(!Q){if(L=Gzw())W.connectionType=L;g.oi("web_log_effective_connection_type")&&(L=cU7())&&(P.client.effectiveConnectionType=L)}var t;if(g.oi("web_log_memory_total_kbytes")&&((t=g.Mu.navigator)==null?0:t.deviceMemory)){var z;t=(z=g.Mu.navigator)==null?void 0:z.deviceMemory;P.client.memoryTotalKbytes=""+t*1E6}g.oi("web_gcf_hashes_innertube")&&(L=sg_())&&(z=L.coldConfigData,t=L.coldHashData,L=L.hotHashData,P.client.configInfo=P.client.configInfo||
{},z&&(P.client.configInfo.coldConfigData=z),t&&(P.client.configInfo.coldHashData=t),L&&(P.client.configInfo.hotHashData=L));z=g.c0(g.Mu.location.href);!g.oi("web_populate_internal_geo_killswitch")&&z.internalcountrycode&&(W.internalGeo=z.internalcountrycode);W.clientName==="MWEB"||W.clientName==="WEB"?(W.mainAppWebInfo||(W.mainAppWebInfo={}),W.mainAppWebInfo.graftUrl=g.Mu.location.href,g.oi("kevlar_woffle")&&aa6.instance&&(z=aa6.instance,W.mainAppWebInfo.pwaInstallabilityStatus=!z.S&&z.C?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),W.mainAppWebInfo.webDisplayMode=IS(),W.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):W.clientName==="TVHTML5"&&(!g.oi("web_lr_app_quality_killswitch")&&(z=g.YK("LIVING_ROOM_APP_QUALITY"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{appQuality:z})),z=g.YK("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{certificationScope:z}));if(!g.oi("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(e){}b=void 0}b&&(W.timeZone=b)}(b=Vk())?W.experimentsToken=b:delete W.experimentsToken;b=Nv();SY.instance||(SY.instance=new SY);P.request=Object.assign({},P.request,{internalExperimentFlags:b,consistencyTokenJars:WK(SY.instance.S)});!g.oi("web_prequest_context_killswitch")&&(b=g.YK("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(P.request.externalPrequestContext=b);W=g.H5();b=g.KU(0,58);W=W.get("gsml","");P.user=Object.assign({},
P.user);b&&(P.user.enableSafetyMode=b);W&&(P.user.lockedSafetyMode=!0);g.oi("warm_op_csn_cleanup")?m&&(Q=g.Tq())&&(P.clientScreenNonce=Q):!Q&&(Q=g.Tq())&&(P.clientScreenNonce=Q);D&&(P.clickTracking={clickTrackingParams:D});if(D=g.Q4("yt.mdx.remote.remoteClient_"))P.remoteClient=D;GO.getInstance().setLocationOnInnerTubeContext(P);try{var q=Lp(),C=q.bid;delete q.bid;P.adSignalsInfo={params:[],bid:C};for(var f=g.T(Object.entries(q)),V=f.next();!V.done;V=f.next()){var N=g.T(V.value),h=N.next().value,
B=N.next().value;q=h;C=B;D=void 0;(D=P.adSignalsInfo.params)==null||D.push({key:q,value:""+C})}var J,k;if(((J=P.client)==null?void 0:J.clientName)==="TVHTML5"||((k=P.client)==null?void 0:k.clientName)==="TVHTML5_UNPLUGGED"){var R=g.YK("INNERTUBE_CONTEXT");R.adSignalsInfo&&(P.adSignalsInfo.advertisingId=R.adSignalsInfo.advertisingId,P.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",P.adSignalsInfo.limitAdTracking=R.adSignalsInfo.limitAdTracking)}}catch(e){g.JG(e)}return P};
gD6=function(D,Q){if(!D)return!1;var m,P=(m=g.A(D,nDm))==null?void 0:m.signal;if(P&&Q.DP)return!!Q.DP[P];var W;if((m=(W=g.A(D,EDm))==null?void 0:W.request)&&Q.X4)return!!Q.X4[m];for(var L in D)if(Q.aE[L])return!0;return!1};
BV$=function(D){var Q={"Content-Type":"application/json"};g.YK("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=g.YK("EOM_VISITOR_DATA"):g.YK("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.YK("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=g.YK("LOGGED_IN",!1);g.YK("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=g.YK("DEBUG_SETTINGS_METADATA"));D!=="cors"&&((D=g.YK("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Q["X-Youtube-Client-Name"]=D),(D=g.YK("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]=
D),(D=g.YK("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=D),(D=g.YK("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=D),g.YK("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(D=g.YK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=D));return Q};
wDu=function(){this.S={}};
c_=function(){this.mappings=new wDu};
Di=function(D){return function(){return new D}};
Jkn=function(D){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(D.length===1)return D[0];var m=k37[Q];if(m){m=new RegExp(m);for(var P=g.T(D),W=P.next();!W.done;W=P.next())if(W=W.value,m.exec(W))return W}var L=[];Object.entries(k37).forEach(function(u){var t=g.T(u);u=t.next().value;t=t.next().value;Q!==u&&L.push(t)});
m=new RegExp(L.join("|"));D.sort(function(u,t){return u.length-t.length});
P=g.T(D);for(W=P.next();!W.done;W=P.next())if(W=W.value,!m.exec(W))return W;return D[0]};
g.Qd=function(D){return"/youtubei/v1/"+Jkn(D)};
m4=function(){};
PI=function(){};
WI=function(){};
ic=function(D){return g.Q4("ytcsi."+(D||"")+"data_")||lHw(D)};
IH4=function(){var D=ic();D.info||(D.info={});return D.info};
sl=function(D){D=ic(D);D.metadata||(D.metadata={});return D.metadata};
Lc=function(D){D=ic(D);D.tick||(D.tick={});return D.tick};
uc=function(D){D=ic(D);if(D.gel){var Q=D.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel};
Rd7=function(D){D=uc(D);D.gelInfos||(D.gelInfos={});return D.gelInfos};
d6=function(D){var Q=ic(D).nonce;Q||(Q=g.V$(16),ic(D).nonce=Q);return Q};
lHw=function(D){var Q={tick:{},info:{}};g.ch("ytcsi."+(D||"")+"data_",Q);return Q};
td=function(){var D=g.Q4("ytcsi.debug");D||(D=[],g.ch("ytcsi.debug",D),g.ch("ytcsi.reference",{}));return D};
zb=function(D){D=D||"";var Q=UT_();if(Q[D])return Q[D];var m=td(),P={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};m.push(P);return Q[D]=P};
Hrm=function(D){D=D||"";var Q=UT_();Q[D]&&delete Q[D];var m=td(),P={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};m.push(P);Q[D]=P};
UT_=function(){var D=g.Q4("ytcsi.reference");if(D)return D;td();return g.Q4("ytcsi.reference")};
bc=function(D){return KDk[D]||"LATENCY_ACTION_UNKNOWN"};
qz=function(D,Q){z0.call(this,1,arguments);this.timer=Q};
Cc=function(){this.S=0};
oH=function(){Cc.instance||(Cc.instance=new Cc);return Cc.instance};
Vd=function(D,Q){fc[Q]=fc[Q]||{count:0};var m=fc[Q];m.count++;m.time=(0,g.T3)();D.S||(D.S=g.xt(0,function(){var P=(0,g.T3)(),W;for(W in fc)fc[W]&&P-fc[W].time>6E4&&delete fc[W];D&&(D.S=0)},5E3));
return m.count>5?(m.count===6&&Math.random()*1E5<1&&(m=new g.OI("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||g.l4(m)),!0):!1};
jWj=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
$T7=function(){var D;if(g.oi("csi_use_performance_navigation_timing")){var Q,m,P,W=Nz==null?void 0:(D=Nz.getEntriesByType)==null?void 0:(Q=D.call(Nz,"navigation"))==null?void 0:(m=Q[0])==null?void 0:(P=m.toJSON)==null?void 0:P.call(m);W?(W.requestStart=yd(W.requestStart),W.responseEnd=yd(W.responseEnd),W.redirectStart=yd(W.redirectStart),W.redirectEnd=yd(W.redirectEnd),W.domainLookupEnd=yd(W.domainLookupEnd),W.connectStart=yd(W.connectStart),W.connectEnd=yd(W.connectEnd),W.responseStart=yd(W.responseStart),
W.secureConnectionStart=yd(W.secureConnectionStart),W.domainLookupStart=yd(W.domainLookupStart),W.isPerformanceNavigationTiming=!0,D=W):D=Nz.timing}else D=g.oi("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Nz.timing)):Nz.timing;return D};
yd=function(D){return Math.round(Zi()+D)};
Zi=function(){return(g.oi("csi_use_time_origin")||g.oi("csi_use_time_origin_tvhtml5"))&&Nz.timeOrigin?Math.floor(Nz.timeOrigin):Nz.timing.navigationStart};
Tb=function(D,Q){Ff("_start",D,Q)};
hd=function(D,Q){if(!g.oi("web_csi_action_sampling_enabled")||!ic(Q).actionDisabled){var m=zb(Q||"");tj(m.info,D);D.loadType&&(m=D.loadType,sl(Q).loadType=m);tj(Rd7(Q),D);m=d6(Q);Q=ic(Q).cttAuthInfo;oH().info(D,m,Q)}};
edj=function(){var D,Q,m,P;return((P=kj().resolve(nP(iI))==null?void 0:(D=LR())==null?void 0:(Q=D.loggingHotConfig)==null?void 0:(m=Q.csiConfig)==null?void 0:m.debugTicks)!=null?P:[]).map(function(W){return Object.values(W)[0]})};
Ff=function(D,Q,m){if(!g.oi("web_csi_action_sampling_enabled")||!ic(m).actionDisabled){var P=d6(m),W;if(W=g.oi("web_csi_debug_sample_enabled")&&P){(kj().resolve(nP(iI))==null?0:LR())&&!vDk&&(vDk=!0,Ff("gcfl",(0,g.T3)(),m));var L,u,t;W=(kj().resolve(nP(iI))==null?void 0:(L=LR())==null?void 0:(u=L.loggingHotConfig)==null?void 0:(t=u.csiConfig)==null?void 0:t.debugSampleWeight)||0;if(L=W!==0)b:{L=edj();if(L.length>0)for(u=0;u<L.length;u++)if(D===L[u]){L=!0;break b}L=!1}L?(W=clm(P)%W!==0,ic(m).debugTicksExcludedLogged||
(L={},L.debugTicksExcluded=W,hd(L,m)),ic(m).debugTicksExcludedLogged=!0):W=!1}if(!W){if(D[0]!=="_"&&(W=D,L=Q,Nz.mark))if(W.startsWith("mark_")||(W="mark_"+W),m&&(W+=" ("+m+")"),L===void 0||g.oi("web_csi_disable_alt_time_performance_mark"))Nz.mark(W);else{L=g.oi("csi_use_performance_navigation_timing")?L-Nz.timeOrigin:L-(Nz.timeOrigin||Nz.timing.navigationStart);try{Nz.mark(W,{startTime:L})}catch(z){}}W=zb(m||"");W.tick[D]=Q||(0,g.T3)();if(W.callback&&W.callback[D])for(W=g.T(W.callback[D]),L=W.next();!L.done;L=
W.next())L=L.value,L();W=uc(m);W.gelTicks&&(W.gelTicks[D]=!0);L=Lc(m);W=Q||(0,g.T3)();g.oi("log_repeated_ytcsi_ticks")?D in L||(L[D]=W):L[D]=W;L=ic(m).cttAuthInfo;D==="_start"?(D=oH(),Vd(D,"baseline_"+P)||g.WD("latencyActionBaselined",{clientActionNonce:P},{timestamp:Q,cttAuthInfo:L})):oH().tick(D,P,Q,L);Or6(m);return W}}};
Y4n=function(){var D,Q=(D=Nz.getEntriesByType)==null?void 0:D.call(Nz,"mark");Q&&Q.forEach(function(m){if(m.name.startsWith("mark_")){var P;(P=Nz.clearMarks)==null||P.call(Nz,m.name)}})};
aH$=function(){switch(laj()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Akr=function(D){function Q(L,u,t){u=u.match("_rid")?u.split("_rid")[0]:u;typeof t==="number"&&(t=JSON.stringify(t));L.requestIds?L.requestIds.push({endpoint:u,id:t}):L.requestIds=[{endpoint:u,id:t}]}
var m={};D=g.T(Object.entries(D));for(var P=D.next();!P.done;P=D.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;switch(P){case "GetBrowse_rid":Q(m,P,W);break;case "GetGuide_rid":Q(m,P,W);break;case "GetHome_rid":Q(m,P,W);break;case "GetPlayer_rid":Q(m,P,W);break;case "GetSearch_rid":Q(m,P,W);break;case "GetSettings_rid":Q(m,P,W);break;case "GetTrending_rid":Q(m,P,W);break;case "GetWatchNext_rid":Q(m,P,W);break;case "yt_red":m.isRedSubscriber=!!W;break;case "yt_ad":m.isMonetized=!!W}}return m};
pDm=function(D,Q){D=document.querySelector(D);if(!D)return!1;var m="",P=D.nodeName;P==="SCRIPT"?(m=D.src,m||(m=D.getAttribute("data-timing-href"))&&(m=window.location.protocol+m)):P==="LINK"&&(m=D.href);oG(document)&&D.setAttribute("nonce",oG(document));return m?(D=Nz.getEntriesByName(m))&&D[0]&&(D=D[0],m=Zi(),Ff("rsf_"+Q,m+Math.round(D.fetchStart)),Ff("rse_"+Q,m+Math.round(D.responseEnd)),D.transferSize!==void 0&&D.transferSize===0)?!0:!1:!1};
xT7=function(){var D=window.location.protocol,Q=Nz.getEntriesByType("resource");Q=g.g0(Q,function(m){return m.name.indexOf(D+"//fonts.gstatic.com/s/")===0});
(Q=N5(Q,function(m,P){return P.duration>m.duration?P:m},{duration:0}))&&Q.startTime>0&&Q.responseEnd>0&&(Ff("wffs",yd(Q.startTime)),Ff("wffe",yd(Q.responseEnd)))};
XDu=function(D,Q,m){Nz&&Nz.measure&&(D.startsWith("measure_")||(D="measure_"+D),m?Nz.measure(D,Q,m):Q?Nz.measure(D,Q):Nz.measure(D))};
S4n=function(D){var Q=nc("aft",D);if(Q)return Q;Q=g.YK((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var m=Q.length,P=0;P<m;P++){var W=nc(Q[P],D);if(W)return W}return NaN};
El=function(D,Q){g.ch("ytglobal.timing"+(Q||"")+"ready_",D)};
nc=function(D,Q){if(D=Lc(Q)[D])return typeof D==="number"?D:D[D.length-1]};
Or6=function(D){var Q=nc("_start",D),m=S4n(D),P=!rkm;Q&&m&&P&&(CR(G3n,new qz(Math.round(m-Q),D)),rkm=!0)};
Ma_=function(){if(Nz.getEntriesByType){var D=Nz.getEntriesByType("paint");if(D=g.y4(D,function(m){return m.name==="first-paint"}))return yd(D.startTime)}var Q;
g.oi("csi_use_performance_navigation_timing")?Q=Nz.getEntriesByType("first-paint")[0].startTime:Q=Nz.timing.kAc;return Q?Math.max(0,Q):0};
g6=function(D){lHw(D);ckm();Y4n();D||(g.YK("TIMING_ACTION")&&Oj("PREVIOUS_ACTION",g.YK("TIMING_ACTION")),Oj("TIMING_ACTION",""))};
DRh=function(){var D=["pbs","pbu"];g.xK(function(){zb("").info.actionType="watch";D&&Oj("TIMING_AFT_KEYS",D);Oj("TIMING_ACTION","watch");var Q=Akr(g.YK("TIMING_INFO",{}));Object.keys(Q).length>0&&hd(Q);Q={isNavigation:!0,actionType:bc(g.YK("TIMING_ACTION"))};var m=g.YK("PREVIOUS_ACTION");m&&(Q.previousAction=bc(m));if(m=g.YK("CLIENT_PROTOCOL"))Q.httpProtocol=m;if(m=g.YK("CLIENT_TRANSPORT"))Q.transportProtocol=m;(m=g.Tq())&&m!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=m);m=aH$();if(m===1||m===-1)Q.isVisible=
!0;m=sl().loadType==="cold";var P=IH4();m||(m=P.yt_lt==="cold");if(m){Q.loadType="cold";m=IH4();P=$T7();var W=Zi(),L=g.YK("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.oi("embeds_web_enable_csi_start_override_killswitch")&&(W=L);W&&(Ff("srt",P.responseStart),m.prerender!==1&&Tb(W));m=Ma_();m>0&&Ff("fpt",m);m=$T7();m.isPerformanceNavigationTiming&&hd({performanceNavigationTiming:!0},void 0);Ff("nreqs",m.requestStart,void 0);Ff("nress",m.responseStart,void 0);Ff("nrese",m.responseEnd,void 0);m.redirectEnd-
m.redirectStart>0&&(Ff("nrs",m.redirectStart,void 0),Ff("nre",m.redirectEnd,void 0));m.domainLookupEnd-m.domainLookupStart>0&&(Ff("ndnss",m.domainLookupStart,void 0),Ff("ndnse",m.domainLookupEnd,void 0));m.connectEnd-m.connectStart>0&&(Ff("ntcps",m.connectStart,void 0),Ff("ntcpe",m.connectEnd,void 0));m.secureConnectionStart>=Zi()&&m.connectEnd-m.secureConnectionStart>0&&(Ff("nstcps",m.secureConnectionStart,void 0),Ff("ntcpe",m.connectEnd,void 0));Nz&&"getEntriesByType"in Nz&&xT7();m=[];if(document.querySelector&&
Nz&&Nz.getEntriesByName)for(var u in BI)BI.hasOwnProperty(u)&&(P=BI[u],pDm(u,P)&&m.push(P));if(m.length>0)for(Q.resourceInfo=[],u=g.T(m),m=u.next();!m.done;m=u.next())Q.resourceInfo.push({resourceCache:m.value})}hd(Q);Q=uc();Q.preLoggedGelInfos||(Q.preLoggedGelInfos=[]);u=Q.preLoggedGelInfos;Q=Rd7();m=void 0;for(P=0;P<u.length;P++)if(W=u[P],W.loadType){m=W.loadType;break}if(sl().loadType==="cold"&&(Q.loadType==="cold"||m==="cold")){m=Lc();P=uc();P=P.gelTicks?P.gelTicks:P.gelTicks={};for(var t in m)if(!(t in
P))if(typeof m[t]==="number")Ff(t,nc(t));else if(g.oi("log_repeated_ytcsi_ticks"))for(W=g.T(m[t]),L=W.next();!L.done;L=W.next())Ff(t.slice(1),L.value);t={};m=!1;u=g.T(u);for(P=u.next();!P.done;P=u.next())m=P.value,tj(Q,m),tj(t,m),m=!0;m&&hd(t)}El(!0);t=g.YK("TIMING_ACTION");g.Q4("ytglobal.timingready_")&&t&&w6()&&S4n()&&Or6()})()};
Qor=function(){var D=D===void 0?{}:D;g.xK(function(){w6()&&kY("aa",void 0,void 0);Hrm();g6();El(!1);D.cttAuthInfo&&(ic().cttAuthInfo=D.cttAuthInfo);Oj("TIMING_AFT_KEYS",[]);D.KBz?g.Jd({loadType:"hot"}):g.Jd({loadType:"warm"});Oj("TIMING_ACTION","");delete g.YK("TIMING_INFO",{}).yt_lt;g.xK(Tb)(D.startTime,void 0)})()};
lc=function(D,Q){Q=Q===void 0?{}:Q;g.xK(function(){mR7(D);var m=Q.sampleRate;if(!g.oi("web_csi_action_sampling_enabled")||m===void 0||m<=1)m=!1;else{var P=d6(D);m=clm(P)%m!==0}m&&(ic(D).actionDisabled=!0);zb(D||"").info.actionType=D;Q.cttAuthInfo&&(ic(D).cttAuthInfo=Q.cttAuthInfo);Oj(D+"TIMING_ACTION",D);g.xK(Tb)(Q.startTime,D);m={actionType:bc(D)};Q.vz0&&(m.previousAction=bc(g.YK("TIMING_ACTION")));(P=g.Tq())&&P!=="UNDEFINED_CSN"&&(m.clientScreenNonce=P);g.Jd(m,D);El(!0,D)})()};
mR7=function(D){g.xK(function(){w6(D)&&kY("aa",void 0,D);Hrm(D);g6(D)})()};
w6=function(D){return g.xK(function(){return IH("_start",D)})()};
g.Jd=function(D,Q,m){g.xK(hd)(D,Q,m===void 0?!1:m)};
kY=function(D,Q,m){return g.xK(Ff)(D,Q,m)};
PIn=function(D){g.xK(XDu)("action_finished",D,void 0)};
IH=function(D,Q){return g.xK(function(){var m=Lc(Q);return D in m})()};
iRh=function(D){if(!g.oi("universal_csi_network_ticks"))return"";D=dz(D)||"";for(var Q=Object.keys(WV7),m=0;m<Q.length;m++){var P=Q[m];if(D.includes(P))return P}return""};
LVw=function(D){if(!g.oi("universal_csi_network_ticks"))return function(){};
var Q=WV7[D];return Q?(RH(Q),function(){var m=g.oi("universal_csi_network_ticks")?(m=so7[D])?RH(m):!1:!1;return m}):function(){}};
RH=function(D,Q,m){return g.xK(function(){if(IH(D,m))return!1;kY(D,Q,m);return!0})()};
Ul=function(D,Q,m){g.xK(function(){if(!w6(m)||IH(D,m))return!1;kY(D,Q,m);return!0})()};
uMh=function(){g.xK(function(){var D=d6();requestAnimationFrame(function(){setTimeout(function(){D===d6()&&kY("ftl",void 0,void 0)},0)})})()};
HI=function(D,Q,m,P){this.HS=D;this.ra=Q;this.S=m;this.B=P;this.T=void 0;this.C=new Map;D.DP||(D.DP={});D.DP=Object.assign({},dRm,D.DP)};
tI9=function(D,Q,m,P){if(HI.instance!==void 0){if(P=HI.instance,D=[D!==P.HS,Q!==P.ra,m!==P.S,!1,!1,!1,void 0!==P.T],D.some(function(W){return W}))throw new g.OI("InnerTubeTransportService is already initialized",D);
}else HI.instance=new HI(D,Q,m,P)};
Kc=function(D,Q,m){var P=P===void 0?tE:P;var W=zm7(D,Q);return W?new g.BN(function(L,u){var t,z,b,q,C;return g.U(function(f){switch(f.C){case 1:return g.I(f,W,2);case 2:t=f.S;z=t.J(Q,m,P);if(!z){u(new g.OI("Error: Failed to build request for command.",Q));f.Nv(0);break}YB(z.input);q=((b=z.mw)==null?void 0:b.mode)==="cors"?"cors":void 0;if(D.S.zr){C=bR_(D,z.config,q);f.Nv(4);break}return g.I(f,qi6(D,z.config,q),5);case 5:C=f.S;case 4:L(CIh(D,z,C)),g.T7(f)}})}):J9(new g.OI("Error: No request builder found for command.",
Q))};
g.jz=function(D,Q,m,P,W){function L(){}
W=W===void 0?{sI:{identity:tE}}:W;var u=u===void 0?!0:u;L=LVw(iRh(m));Q.context||(Q.context=g.MW(P,u));return new g.BN(function(t){var z,b,q,C,f;return g.U(function(V){if(V.C==1)return z=Ri(m),b=m6(z)?"same-origin":"cors",D.S.zr?(q=bR_(D,W,b),V.Nv(2)):g.I(V,qi6(D,W,b),3);V.C!=2&&(q=V.S);C=bCu(Ri(m));f={input:C,mw:U2(C),IZ:Q,config:W};t(CIh(D,f,q,L));g.T7(V)})})};
fhh=function(D,Q,m){var P;if(Q&&!(Q==null?0:(P=Q.sequenceMetaData)==null?0:P.skipProcessing)&&D.B){P=g.T(oTm);for(var W=P.next();!W.done;W=P.next())W=W.value,D.B[W]&&D.B[W].handleResponse(Q,m)}};
CIh=function(D,Q,m,P){P=P===void 0?function(){}:P;
var W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6,L9,d7,b6,mj,kP,S$,DN,V4,uv;return g.U(function(l6){switch(l6.C){case 1:l6.Nv(2);break;case 3:if((W=l6.S)&&!W.isExpired())return l6.return(Promise.resolve(W.S()));case 2:if(!((L=Q)==null?0:(u=L.IZ)==null?0:u.context)){l6.Nv(4);break}t=Q.IZ.context;l6.Nv(5);break;case 5:z=g.T([]),b=z.next();case 8:if(b.done){l6.Nv(4);break}q=b.value;return g.I(l6,q.Muy(t),9);case 9:b=z.next();l6.Nv(8);break;case 4:if((C=D.T)==null||!C.QAD(Q.input,Q.IZ)){l6.Nv(12);break}return g.I(l6,
D.T.uCc(Q.input,Q.IZ),13);case 13:return f=l6.S,fhh(D,f,Q),l6.return(f);case 12:return(h=(N=Q.config)==null?void 0:N.AX)&&D.C.has(h)?V=D.C.get(h):(B=JSON.stringify(Q.IZ),R=(k=(J=Q.mw)==null?void 0:J.headers)!=null?k:{},Q.mw=Object.assign({},Q.mw,{headers:Object.assign({},R,m)}),e=Object.assign({},Q.mw),Q.mw.method==="POST"&&(e=Object.assign({},e,{body:B})),((a=Q.config)==null?0:a.zmc)&&kY(Q.config.zmc),G=function(){return D.ra.fetch(Q.input,e,Q.config)},V=G(),h&&D.C.set(h,V)),g.I(l6,V,14);
case 14:(S=l6.S)&&g.oi("web_streaming_player")&&Array.isArray(S)&&(S=S[0].playerResponse);if(S&&"error"in S&&((u6=S)==null?0:(L9=u6.error)==null?0:L9.details))for(d7=S.error.details,b6=g.T(d7),mj=b6.next();!mj.done;mj=b6.next())kP=mj.value,(S$=kP["@type"])&&VIm.indexOf(S$)>-1&&(delete kP["@type"],S=kP);h&&D.C.has(h)&&D.C.delete(h);((DN=Q.config)==null?0:DN.A8D)&&kY(Q.config.A8D);if(S||(V4=D.T)==null||!V4.SMc(Q.input,Q.IZ)){l6.Nv(15);break}return g.I(l6,D.T.OG0(Q.input,Q.IZ),16);case 16:S=l6.S;case 15:return fhh(D,
S,Q),((uv=Q.config)==null?0:uv.nVc)&&kY(Q.config.nVc),P(),l6.return(S||void 0)}})};
zm7=function(D,Q){a:{D=D.HS;var m,P=(m=g.A(Q,nDm))==null?void 0:m.signal;if(P&&D.DP&&(m=D.DP[P])){var W=m();break a}var L;if((m=(L=g.A(Q,EDm))==null?void 0:L.request)&&D.X4&&(L=D.X4[m])){W=L();break a}for(W in Q)if(D.aE[W]&&(Q=D.aE[W])){W=Q();break a}W=void 0}if(W!==void 0)return Promise.resolve(W)};
qi6=function(D,Q,m){var P,W,L,u,t,z,b;return g.U(function(q){if(q.C==1){L=((P=Q)==null?void 0:(W=P.sI)==null?void 0:W.identity)||tE;z=(u=Q)==null?void 0:(t=u.sI)==null?void 0:t.sessionIndex;var C=g.k7(D.S.Rh(L,{sessionIndex:z}));return g.I(q,C,2)}b=q.S;return q.return(Promise.resolve(Object.assign({},BV$(m),b)))})};
bR_=function(D,Q,m){var P,W=(Q==null?void 0:(P=Q.sI)==null?void 0:P.identity)||tE,L;Q=Q==null?void 0:(L=Q.sI)==null?void 0:L.sessionIndex;D=D.S.Rh(W,{sessionIndex:Q});return Object.assign({},BV$(m),D)};
$Y=function(){};
ez=function(){};
vI=function(D){this.N=D};
Ol=function(){};
YY=function(){};
aH=function(){};
Ad=function(){};
g.pc=function(D,Q){var m=g.e$.apply(2,arguments);D=D===void 0?0:D;g.OI.call(this,Q,m);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)};
xY=function(D,Q,m,P){this.S=D;this.C=Q;this.T=m;this.B=P};
Nkj=function(D,Q,m){if(D.S){var P=dz(FA(Q,"key"))||"/UNKNOWN_PATH";D.S.start(P)}P=m;g.oi("wug_networking_gzip_request")&&(P=KQP(m));var W;return new ((W=D.B)!=null?W:window.Request)(Q,P)};
g.Sz=function(D,Q){if(!Xf){var m=kj();Ek(m,{MH:yEP,yM:xY});var P={aE:{feedbackEndpoint:Di(Ol),modifyChannelNotificationPreferenceEndpoint:Di(YY),playlistEditEndpoint:Di(aH),shareEntityEndpoint:Di(vI),subscribeEndpoint:Di($Y),unsubscribeEndpoint:Di(ez),webPlayerShareEntityServiceEndpoint:Di(Ad)}},W=GO.getInstance(),L={};W&&(L.client_location=W);D===void 0&&(D=AUP());Q===void 0&&(Q=m.resolve(yEP));tI9(P,Q,D,L);Ek(m,{MH:ZR6,oO:HI.instance});Xf=m.resolve(ZR6)}return Xf};
FV$=function(D){var Q=new dm;if(D.interpreterJavascript){var m=BWm(D.interpreterJavascript);m=Vf(m).toString();var P=new LC;Ub(P,6,m);nB(Q,LC,1,P,pk)}else D.interpreterUrl&&(m=yC(D.interpreterUrl),m=D_(m).toString(),P=new uf,Ub(P,4,m),nB(Q,uf,2,P,pk));D.interpreterHash&&Hs(Q,3,D.interpreterHash,pk);D.program&&Hs(Q,4,D.program,pk);D.globalName&&Hs(Q,5,D.globalName,pk);D.clientExperimentsStateBlob&&Hs(Q,7,D.clientExperimentsStateBlob,pk);return Q};
r6=function(D){var Q={};D=D.split("&");D=g.T(D);for(var m=D.next();!m.done;m=D.next())m=m.value.split("="),m.length===2&&(Q[m[0]]=m[1]);return Q};
ke6=function(){if(g.oi("bg_st_hr"))return"havuokmhhs-0";var D,Q=((D=performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)};
Gb=function(D){this.S=D};
Tk_=function(){return new Promise(function(D){var Q=window;Q.ntpevasrs!==void 0?D(new Gb(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(m){D(new Gb(m))}))})};
ETm=function(){if(Mv()){var D=g.YK("PLAYER_VARS",{});if(g.qD(D,"privembed",!1)!="1"&&!Nm9(D)){var Q=function(){Mz=!0;"google_ad_status"in window?Oj("DCLKSTAT",1):Oj("DCLKSTAT",2)};
try{g.mN(hmj,Q)}catch(m){}nT_.push(g.KJ.Gm(function(){if(!(Mz||"google_ad_status"in window)){try{if(hmj.toString()&&Q){var m=""+g.LV(Q),P=VEP[m];P&&g.Dy(P)}}catch(W){}Mz=!0;Oj("DCLKSTAT",3)}},5E3))}}};
cI=function(){var D=Number(g.YK("DCLKSTAT",0));return isNaN(D)?0:D};
Pg=function(D,Q,m){var P=this;this.network=D;this.options=Q;this.C=m;this.S=null;if(Q.zrT){var W=new g.zz;this.S=W.promise;g.Mu.ytAtRC&&pU(function(){var L,u;return g.U(function(t){if(t.C==1){if(!g.Mu.ytAtRC)return t.return();L=Dw(null);return g.I(t,QD(P,L),2)}u=t.S;g.Mu.ytAtRC&&g.Mu.ytAtRC(JSON.stringify(u));g.T7(t)})},2);
Tk_().then(function(L){var u,t,z,b;return g.U(function(q){if(q.C==1)return L.bindInnertubeChallengeFetcher(function(C){return QD(P,Dw(C))}),g.I(q,rf(),2);
u=q.S;t=L.getLatestChallengeResponse();z=t.challenge;if(!z)throw Error("BGE_MACIL");b={challenge:z,D7:r6(z),IF:u,bgChallenge:new dm};W.resolve(b);L.registerChallengeFetchedCallback(function(C){C=C.challenge;if(!C)throw Error("BGE_MACR");C={challenge:C,D7:r6(C),IF:u,bgChallenge:new dm};P.S=Promise.resolve(C)});
g.T7(q)})})}else Q.preload&&gTn(this,new Promise(function(L){g.xt(0,function(){L(mI(P))},0)}))};
Dw=function(D){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(Q.interpreterHash=D);return Q};
mI=function(D,Q){Q=Q===void 0?0:Q;var m,P,W,L,u,t,z,b,q,C,f,V;return g.U(function(N){switch(N.C){case 1:m=Dw(CC().S);if(g.oi("att_fet_ks"))return g.h4(N,7),g.I(N,QD(D,m),9);g.h4(N,4);return g.I(N,Bk_(D,m),6);case 6:u=N.S;W=u.Znv;L=u.P7W;P=u;g.g7(N,3);break;case 4:return g.w7(N),g.l4(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),Wg(D,864E5),N.return({challenge:"",D7:{},IF:void 0,bgChallenge:void 0});case 9:P=N.S;if(!P)throw Error("Fetching Attestation challenge returned falsy");
if(!P.challenge)throw Error("Missing Attestation challenge");W=P.challenge;L=r6(W);if("c1a"in L&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.g7(N,3);break;case 7:t=g.w7(N);g.l4(t);Q++;if(Q>=5)return g.l4(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),Wg(D,864E5),N.return({challenge:"",D7:{},IF:void 0,bgChallenge:void 0});z=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return N.return(new Promise(function(h){g.xt(0,
function(){h(mI(D,Q))},z)}));
case 3:b=Number(L.t)||7200;Wg(D,b*1E3);q=void 0;if(!("c1a"in L&&P.bgChallenge)){N.Nv(10);break}C=FV$(P.bgChallenge);g.h4(N,11);return g.I(N,B0m(CC(),C),13);case 13:g.g7(N,12);break;case 11:return f=g.w7(N),g.l4(f),N.return({challenge:W,D7:L,IF:q,bgChallenge:C});case 12:return g.h4(N,14),q=new bf({challenge:C,l9:{TM:"aGIf"}}),g.I(N,q.j_,16);case 16:g.g7(N,10);break;case 14:V=g.w7(N),g.l4(V),q=void 0;case 10:return N.return({challenge:W,D7:L,IF:q,bgChallenge:C})}})};
QD=function(D,Q){var m;return g.U(function(P){m=D.C;if(!m||m.kP())return P.return(QD(D.network,Q));Ul("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(W){m.Hh("publicytnetworkstatus-online",function(){QD(D.network,Q).then(W)})}))})};
wfP=function(D){if(!D)throw Error("Fetching Attestation challenge returned falsy");if(!D.challenge)throw Error("Missing Attestation challenge");var Q=D.challenge,m=r6(Q);if("c1a"in m&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},D,{Znv:Q,P7W:m})};
Bk_=function(D,Q){var m,P,W,L,u;return g.U(function(t){switch(t.C){case 1:m=void 0,P=0,W={};case 2:if(!(P<5)){t.Nv(4);break}if(!(P>0)){t.Nv(5);break}W.Cy=1E3*Math.pow(2,P-1)+Math.random()*1E3;return g.I(t,new Promise(function(z){return function(b){g.xt(0,function(){b(void 0)},z.Cy)}}(W)),5);
case 5:return g.h4(t,7),g.I(t,QD(D,Q),9);case 9:return L=t.S,t.return(wfP(L));case 7:m=u=g.w7(t),u instanceof Error&&g.l4(u);case 8:P++;W={Cy:void 0};t.Nv(2);break;case 4:throw m;}})};
gTn=function(D,Q){D.S=Q};
k0m=function(D){var Q,m,P;return g.U(function(W){if(W.C==1)return g.I(W,Promise.race([D.S,null]),2);Q=W.S;var L=mI(D);D.S=L;(m=Q)==null||(P=m.IF)==null||P.dispose();g.T7(W)})};
Wg=function(D,Q){function m(){var W;return g.U(function(L){W=P-Date.now();return W<1E3?g.I(L,k0m(D),0):(pU(m,0,Math.min(W,6E4)),L.Nv(0))})}
var P=Date.now()+Q;m()};
JE7=function(D,Q){return new Promise(function(m){g.xt(0,function(){m(Q())},D)})};
g.lh7=function(D,Q){var m;return g.U(function(P){var W=g.Q4("yt.aba.att");return(m=W?W:Pg.instance!==void 0?Pg.instance.T.bind(Pg.instance):null)?P.return(m("ENGAGEMENT_TYPE_PLAYBACK",D,Q)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.Ihj=function(){var D;return(D=(D=g.Q4("yt.aba.att2"))?D:Pg.instance!==void 0?Pg.instance.B.bind(Pg.instance):null)?D():Promise.resolve(!1)};
URh=function(D,Q){var m=g.Q4("ytDebugData.callbacks");m||(m={},g.ch("ytDebugData.callbacks",m));if(g.oi("web_dd_iu")||Rmm.includes(D))m[D]=Q};
io=function(){var D=HR7;var Q=Q===void 0?[]:Q;var m=m===void 0?[]:m;Q=FH_.apply(null,[TWP.apply(null,g.on(Q))].concat(g.on(m)));this.store=n7j(D,void 0,Q)};
g.s$=function(D,Q,m){for(var P=Object.assign({},D),W=g.T(Object.keys(Q)),L=W.next();!L.done;L=W.next()){L=L.value;var u=D[L],t=Q[L];if(t===void 0)delete P[L];else if(u===void 0)P[L]=t;else if(Array.isArray(t)&&Array.isArray(u))P[L]=m?[].concat(g.on(u),g.on(t)):t;else if(!Array.isArray(t)&&g.iv(t)&&!Array.isArray(u)&&g.iv(u))P[L]=g.s$(u,t,m);else if(typeof t===typeof u)P[L]=t;else return Q=new g.OI("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,lKc:u,updateValue:t}),g.JG(Q),
D}return P};
Lh=function(D){var Q=this;D=D===void 0?[]:D;this.S=[];this.T=this.C=0;this.B=void 0;this.totalLength=0;D.forEach(function(m){Q.append(m)})};
KVm=function(D,Q){return D.S.length===0?!1:(D=D.S[D.S.length-1])&&D.buffer===Q.buffer&&D.byteOffset+D.length===Q.byteOffset};
uo=function(D,Q){Q=g.T(Q.S);for(var m=Q.next();!m.done;m=Q.next())D.append(m.value)};
d3=function(D,Q,m){return D.split(Q).Gx.split(m).Ul};
tP=function(D){D.B=void 0;D.C=0;D.T=0};
zW=function(D,Q,m){D.isFocused(Q);return Q-D.T+m<=D.S[D.C].length};
jo4=function(D){if(!D.B){var Q=D.S[D.C];D.B=new DataView(Q.buffer,Q.byteOffset,Q.length)}return D.B};
$R4=function(D,Q,m){Q=Q===void 0?0:Q;m=m===void 0?-1:m;if(!D.totalLength||!m)return new DataView(new ArrayBuffer(0));m<0&&(m=D.totalLength-Q);D.focus(Q);if(!zW(D,Q,m)){var P=D.C,W=D.T;D.focus(Q+m-1);W=new Uint8Array(D.T+D.S[D.C].length-W);for(var L=0,u=P;u<=D.C;u++)W.set(D.S[u],L),L+=D.S[u].length;D.S.splice(P,D.C-P+1,W);tP(D);D.focus(Q)}P=D.S[D.C];return new DataView(P.buffer,P.byteOffset+Q-D.T,m)};
bo=function(D,Q,m){D=$R4(D,Q===void 0?0:Q,m===void 0?-1:m);return new Uint8Array(D.buffer,D.byteOffset,D.byteLength)};
qy=function(D,Q,m){D=bo(D,Q===void 0?0:Q,m===void 0?-1:m);Q=new Uint8Array(D.length);try{Q.set(D)}catch(P){for(m=0;m<D.length;m++)Q[m]=D[m]}return Q};
Ch=function(D,Q){D.focus(Q);return D.S[D.C][Q-D.T]};
emj=function(D,Q){D.focus(Q);return zW(D,Q,4)?jo4(D).getUint32(Q-D.T):256*(256*(256*Ch(D,Q)+Ch(D,Q+1))+Ch(D,Q+2))+Ch(D,Q+3)};
vTh=function(D){for(var Q=new Uint8Array(D.length),m=0;m<D.length;m++)Q[m]=D.charCodeAt(m);return Q};
fh=function(D){return D.length?o9?o9.decode(D):String.fromCharCode.apply(null,D):""};
g.Ny=function(D){if(!D.length)return"";try{if(o9)return o9.decode(D);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(D)}catch(u){}for(var Q=0,m=[],P=D.length;Q<P;){for(var W=0;W<1024&&Q<P;){var L=D[Q++];if(L<128)VD[W++]=L;else{if(L<224)L=(L&31)<<6|D[Q++]&63;else if(L<240)L=(L&15)<<12|(D[Q++]&63)<<6|D[Q++]&63;else{if(W+1===1024){--Q;break}L=(L&7)<<18|(D[Q++]&63)<<12|(D[Q++]&63)<<6|D[Q++]&63;L-=65536;VD[W++]=55296|L>>10;L=56320|L&1023}VD[W++]=L}}L=String.fromCharCode.apply(String,VD);
W<1024&&(L=L.substring(0,W));m.push(L)}return m.join("")};
Zw=function(D,Q){var m;if((m=yD)==null?0:m.encodeInto)return Q=yD.encodeInto(D,Q),Q.read<D.length?D.length*4:Q.written;for(var P=m=0;P<D.length;P++){var W=D.charCodeAt(P);W<128?Q[m++]=W:(W<2048?Q[m++]=W>>6|192:((W&64512)===55296&&P+1<D.length&&(D.charCodeAt(P+1)&64512)===56320?(W=65536+((W&1023)<<10)+(D.charCodeAt(++P)&1023),Q[m++]=W>>18|240,Q[m++]=W>>12&63|128):Q[m++]=W>>12|224,Q[m++]=W>>6&63|128),Q[m++]=W&63|128)}return m};
Fa=function(D){if(yD)return yD.encode(D);var Q=new Uint8Array(Math.ceil(D.length*1.2)),m=Zw(D,Q);Q.length<m&&(Q=new Uint8Array(m),m=Zw(D,Q));Q.length>m&&(Q=Q.subarray(0,m));return Q};
TW=function(D){this.S=D;this.pos=0;this.C=-1};
hP=function(D){var Q=Ch(D.S,D.pos);++D.pos;if(Q<128)return Q;for(var m=Q&127,P=1;Q>=128;)Q=Ch(D.S,D.pos),++D.pos,P*=128,m+=(Q&127)*P;return m};
nh=function(D,Q){var m=D.C;for(D.C=-1;D.pos+1<=D.S.totalLength;){m<0&&(m=hP(D));var P=m>>3,W=m&7;if(P===Q)return!0;if(P>Q){D.C=m;break}m=-1;switch(W){case 0:hP(D);break;case 1:D.pos+=8;break;case 2:P=hP(D);D.pos+=P;break;case 5:D.pos+=4}}return!1};
E$=function(D,Q){if(nh(D,Q))return hP(D)};
OR$=function(D,Q){if(nh(D,Q))return Q=bo(D.S,D.pos,8),D.pos+=8,(new DataView(Q.buffer,Q.byteOffset,Q.byteLength)).getFloat64(0,!0)};
g3=function(D,Q){if(nh(D,Q))return!!hP(D)};
Bg=function(D,Q){if(nh(D,Q)){Q=hP(D);var m=bo(D.S,D.pos,Q);D.pos+=Q;return m}};
w3=function(D,Q){if(D=Bg(D,Q))return g.Ny(D)};
k4=function(D,Q,m){if(D=Bg(D,Q))return m(new TW(new Lh([D])))};
JP=function(D,Q){for(var m=[];nh(D,Q);)m.push(hP(D));return m.length?m:void 0};
lo=function(D,Q,m){for(var P=[],W;W=Bg(D,Q);)P.push(m(new TW(new Lh([W]))));return P.length?P:void 0};
I9=function(D,Q){D=D instanceof Uint8Array?new Lh([D]):D;return Q(new TW(D))};
Yim=function(D,Q){D=new Uint8Array(D);Q&&D.set(Q);return D};
ahP=function(D){this.pos=0;this.C=[];this.S=Yim(D===void 0?4096:D);this.view=new DataView(this.S.buffer,this.S.byteOffset,this.S.byteLength)};
R9=function(D,Q){Q=D.pos+Q;if(!(D.S.length>=Q)){for(var m=D.S.length*2;m<Q;)m*=2;D.S=Yim(m,D.S.subarray(0,D.pos));D.view=new DataView(D.S.buffer,D.S.byteOffset,D.S.byteLength)}};
U$=function(D,Q){if(Q>268435455){R9(D,4);for(var m=Q&1073741823,P=0;P<4;P++)D.view.setUint8(D.pos,m&127|128),m>>=7,D.pos+=1;Q=Math.floor(Q/268435456)}for(R9(D,4);Q>127;)D.view.setUint8(D.pos,Q&127|128),Q>>=7,D.pos+=1;D.view.setUint8(D.pos,Q);D.pos+=1};
Hg=function(D,Q,m){m!==void 0&&(U$(D,Q*8),U$(D,m))};
x4=function(D,Q,m){m!==void 0&&Hg(D,Q,m?1:0)};
Xa=function(D,Q,m){m!==void 0&&(U$(D,Q*8+2),Q=m.length,U$(D,Q),R9(D,Q),D.S.set(m,D.pos),D.pos+=Q)};
Si=function(D,Q,m){m!==void 0&&(AEu(D,Q,Math.ceil(Math.log2(m.length*4+2)/7)),R9(D,m.length*1.2),Q=Zw(m,D.S.subarray(D.pos)),D.pos+Q>D.S.length&&(R9(D,Q),Q=Zw(m,D.S.subarray(D.pos))),D.pos+=Q,pfn(D))};
AEu=function(D,Q,m){m=m===void 0?2:m;U$(D,Q*8+2);D.C.push(D.pos);D.C.push(m);D.pos+=m};
pfn=function(D){for(var Q=D.C.pop(),m=D.C.pop(),P=D.pos-m-Q;Q--;){var W=Q?128:0;D.view.setUint8(m++,P&127|W);P>>=7}};
r3=function(D,Q,m,P,W){m&&(AEu(D,Q,W===void 0?3:W),P(D,m),pfn(D))};
g.GW=function(D,Q){var m=new ahP(4096);Q(m,D);return new Uint8Array(m.S.buffer,m.S.byteOffset,m.pos)};
g.My=function(D){var Q=new TW(new Lh([Bz(decodeURIComponent(D))]));D=w3(Q,2);Q=E$(Q,4);var m=xRj[Q];if(typeof m==="undefined")throw D=new g.OI("Failed to recognize field number",{name:"EntityKeyHelperError",lBc:Q}),g.JG(D),D;return{QQ:Q,entityType:m,entityId:D}};
g.cg=function(D,Q){var m=m===void 0?0:m;var P=new ahP;Xa(P,2,Fa(D));D=Xfj[Q];if(typeof D==="undefined")throw m=new g.OI("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),g.JG(m),m;Hg(P,4,D);Hg(P,5,1);Q=new Uint8Array(P.S.buffer,P.S.byteOffset,P.pos);return encodeURIComponent(g.EG(Q,m))};
DA=function(D,Q,m,P){if(P===void 0)return P=Object.assign({},D[Q]||{}),m=(delete P[m],P),P={},Object.assign({},D,(P[Q]=m,P));var W={},L={};return Object.assign({},D,(L[Q]=Object.assign({},D[Q],(W[m]=P,W)),L))};
Siw=function(D,Q,m,P,W){var L=D[Q];if(L==null||!L[m])return D;P=g.s$(L[m],P,W==="REPEATED_FIELDS_MERGE_OPTION_APPEND");W={};L={};return Object.assign({},D,(L[Q]=Object.assign({},D[Q],(W[m]=P,W)),L))};
rEj=function(D,Q){D=D===void 0?{}:D;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(P,W){var L,u=(L=W.options)==null?void 0:L.persistenceOption;if(u&&u!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&u!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!W.entityKey)return g.JG(Error("Missing entity key")),P;if(W.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!W.payload)return W=new g.OI("REPLACE entity mutation is missing a payload",{entityKey:W.entityKey}),g.JG(W),P;var t=g.mx(W.payload);
return DA(P,t,W.entityKey,W.payload[t])}if(W.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{W=W.entityKey;try{var z=g.My(W).entityType;t=DA(P,z,W);break a}catch(C){if(C instanceof Error){W=new g.OI("Failed to deserialize entity key",{entityKey:W,originalMessage:C.message});g.JG(W);t=P;break a}throw C;}t=void 0}return t}if(W.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!W.payload)return W=new g.OI("UPDATE entity mutation is missing a payload",{entityKey:W.entityKey}),g.JG(W),P;t=g.mx(W.payload);var b,q;return Siw(P,
t,W.entityKey,W.payload[t],(b=W.fieldMask)==null?void 0:(q=b.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return P},D);
case "REPLACE_ENTITY":var m=Q.payload;return DA(D,m.entityType,m.key,m.bz);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(P,W){var L=Q.payload[W];return Object.keys(L).reduce(function(u,t){return DA(u,W,t,L[t])},P)},D);
case "UPDATE_ENTITY":return m=Q.payload,Siw(D,m.entityType,m.key,m.bz,m.VuO);default:return D}};
Qu=function(D,Q,m){return D[Q]?D[Q][m]||null:null};
mP=function(D){return window.Int32Array?new Int32Array(D):Array(D)};
um=function(D){g.v.call(this);this.counter=[0,0,0,0];this.C=new Uint8Array(16);this.S=16;if(!G0m){var Q,m=new Uint8Array(256),P=new Uint8Array(256);var W=1;for(Q=0;Q<256;Q++)m[W]=Q,P[Q]=W,W^=W<<1^(W>>7&&283);Pt=new Uint8Array(256);Wt=mP(256);im=mP(256);s0=mP(256);LL=mP(256);for(var L=0;L<256;L++){W=L?P[255^m[L]]:0;W^=W<<1^W<<2^W<<3^W<<4;W=W&255^W>>>8^99;Pt[L]=W;Q=W<<1^(W>>7&&283);var u=Q^W;Wt[L]=Q<<24|W<<16|W<<8|u;im[L]=u<<24|Wt[L]>>>8;s0[L]=W<<24|im[L]>>>8;LL[L]=W<<24|s0[L]>>>8}G0m=!0}W=mP(44);for(m=
0;m<4;m++)W[m]=D[4*m]<<24|D[4*m+1]<<16|D[4*m+2]<<8|D[4*m+3];for(P=1;m<44;m++)D=W[m-1],m%4||(D=(Pt[D>>16&255]^P)<<24|Pt[D>>8&255]<<16|Pt[D&255]<<8|Pt[D>>>24],P=P<<1^(P>>7&&283)),W[m]=W[m-4]^D;this.key=W};
MI6=function(D){for(var Q=D.key,m=D.counter[0]^Q[0],P=D.counter[1]^Q[1],W=D.counter[2]^Q[2],L=D.counter[3]^Q[3],u=3;u>=0&&!(D.counter[u]=-~D.counter[u]);u--);for(var t,z,b=4;b<40;)u=Wt[m>>>24]^im[P>>16&255]^s0[W>>8&255]^LL[L&255]^Q[b++],t=Wt[P>>>24]^im[W>>16&255]^s0[L>>8&255]^LL[m&255]^Q[b++],z=Wt[W>>>24]^im[L>>16&255]^s0[m>>8&255]^LL[P&255]^Q[b++],L=Wt[L>>>24]^im[m>>16&255]^s0[P>>8&255]^LL[W&255]^Q[b++],m=u,P=t,W=z;D=D.C;u=Q[40];D[0]=Pt[m>>>24]^u>>>24;D[1]=Pt[P>>16&255]^u>>16&255;D[2]=Pt[W>>8&255]^
u>>8&255;D[3]=Pt[L&255]^u&255;u=Q[41];D[4]=Pt[P>>>24]^u>>>24;D[5]=Pt[W>>16&255]^u>>16&255;D[6]=Pt[L>>8&255]^u>>8&255;D[7]=Pt[m&255]^u&255;u=Q[42];D[8]=Pt[W>>>24]^u>>>24;D[9]=Pt[L>>16&255]^u>>16&255;D[10]=Pt[m>>8&255]^u>>8&255;D[11]=Pt[P&255]^u&255;u=Q[43];D[12]=Pt[L>>>24]^u>>>24;D[13]=Pt[m>>16&255]^u>>16&255;D[14]=Pt[P>>8&255]^u>>8&255;D[15]=Pt[W&255]^u&255};
zJ=function(){if(!dd&&!g.Ak){if(tC)return tC;var D;tC=(D=window.crypto)==null?void 0:D.subtle;var Q,m,P;if(((Q=tC)==null?0:Q.importKey)&&((m=tC)==null?0:m.sign)&&((P=tC)==null?0:P.encrypt))return tC;tC=void 0}};
g.CL=function(D){var Q=zJ();Q&&(this.S=new bm(D,Q));this.C=new g.ql(D)};
bm=function(D,Q){this.C=D;this.subtleCrypto=Q};
cE7=function(D,Q,m){var P,W;return g.U(function(L){switch(L.C){case 1:if(D.S){L.Nv(2);break}return g.I(L,D.subtleCrypto.importKey("raw",D.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.S=L.S;case 2:return P={name:"AES-CTR",counter:m,length:128},g.I(L,D.subtleCrypto.encrypt(P,D.S,Q),4);case 4:return W=L.S,L.return(new Uint8Array(W))}})};
g.ql=function(D){this.C=D};
o1=function(D){this.J=new Uint8Array(64);this.T=new Uint8Array(64);this.B=0;this.N=new Uint8Array(64);this.C=0;this.J.set(D);this.T.set(D);for(D=0;D<64;D++)this.J[D]^=92,this.T[D]^=54;this.reset()};
DF6=function(D,Q,m){for(var P=D.U,W=D.S[0],L=D.S[1],u=D.S[2],t=D.S[3],z=D.S[4],b=D.S[5],q=D.S[6],C=D.S[7],f,V,N,h=0;h<64;)h<16?(P[h]=N=Q[m]<<24|Q[m+1]<<16|Q[m+2]<<8|Q[m+3],m+=4):(f=P[h-2],V=P[h-15],N=P[h-7]+P[h-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),P[h]=N),f=C+fL[h]+N+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&b^~z&q),V=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&L^W&u^L&u),C=f+V,t+=f,h++,h<16?(P[h]=N=Q[m]<<24|Q[m+1]<<16|Q[m+2]<<8|Q[m+3],m+=4):(f=
P[h-2],V=P[h-15],N=P[h-7]+P[h-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),P[h]=N),f=q+fL[h]+N+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&z^~t&b),V=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&W^C&L^W&L),q=f+V,u+=f,h++,h<16?(P[h]=N=Q[m]<<24|Q[m+1]<<16|Q[m+2]<<8|Q[m+3],m+=4):(f=P[h-2],V=P[h-15],N=P[h-7]+P[h-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),P[h]=N),f=b+fL[h]+N+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&t^
~u&z),V=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&C^q&W^C&W),b=f+V,L+=f,h++,h<16?(P[h]=N=Q[m]<<24|Q[m+1]<<16|Q[m+2]<<8|Q[m+3],m+=4):(f=P[h-2],V=P[h-15],N=P[h-7]+P[h-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),P[h]=N),f=z+fL[h]+N+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&u^~L&t),V=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&q^b&C^q&C),N=C,C=t,t=N,N=q,q=u,u=N,N=b,b=L,L=N,z=W+f,W=f+V,h++;D.S[0]=W+D.S[0]|0;D.S[1]=L+D.S[1]|0;D.S[2]=u+D.S[2]|0;D.S[3]=
t+D.S[3]|0;D.S[4]=z+D.S[4]|0;D.S[5]=b+D.S[5]|0;D.S[6]=q+D.S[6]|0;D.S[7]=C+D.S[7]|0};
mF7=function(D){var Q=new Uint8Array(32),m=64-D.C;D.C>55&&(m+=64);var P=new Uint8Array(m);P[0]=128;for(var W=D.B*8,L=1;L<9;L++){var u=W%256;P[m-L]=u;W=(W-u)/256}D.update(P);for(m=0;m<8;m++)Q[m*4]=D.S[m]>>>24,Q[m*4+1]=D.S[m]>>>16&255,Q[m*4+2]=D.S[m]>>>8&255,Q[m*4+3]=D.S[m]&255;Ql_(D);return Q};
Ql_=function(D){D.S=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];D.U=[];D.U.length=64;D.B=0;D.C=0};
PE9=function(D){this.S=D};
WN$=function(D,Q,m){D=new o1(D.S);D.update(Q);D.update(m);Q=mF7(D);D.update(D.J);D.update(Q);Q=mF7(D);D.reset();return Q};
iPj=function(D){this.C=D};
slP=function(D,Q,m,P){var W,L,u;return g.U(function(t){switch(t.C){case 1:if(D.S){t.Nv(2);break}return g.I(t,P.importKey("raw",D.C,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:D.S=t.S;case 2:return W=new Uint8Array(Q.length+m.length),W.set(Q),W.set(m,Q.length),L={name:"HMAC",hash:"SHA-256"},g.I(t,P.sign(L,D.S,W),4);case 4:return u=t.S,t.return(new Uint8Array(u))}})};
LNn=function(D,Q,m){D.T||(D.T=new PE9(D.C));return WN$(D.T,Q,m)};
uE_=function(D,Q,m){var P,W;return g.U(function(L){if(L.C==1){P=zJ();if(!P)return L.return(LNn(D,Q,m));g.h4(L,3);return g.I(L,slP(D,Q,m,P),5)}if(L.C!=3)return L.return(L.S);W=g.w7(L);g.l4(W);dd=!0;return L.return(LNn(D,Q,m))})};
tF6=function(D){for(var Q="",m=0;m<D.length;m++){var P=D[m];if(m===0)P="M "+P.x.toFixed(1)+","+P.y.toFixed(1);else{var W=dFm(D[m-1],D[m-2],P),L=dFm(P,D[m-1],D[m+1],!0);P=" C "+(W.x.toFixed(1)+","+W.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1)+" "+P.x.toFixed(1)+","+P.y.toFixed(1))}Q+=P}return Q};
dFm=function(D,Q,m,P){P=P===void 0?!1:P;Q=new zO_(Q||D,m||D);return{x:D.x+((P===void 0?0:P)?Q.S*-1:Q.S)*.2,y:D.y+((P===void 0?0:P)?Q.C*-1:Q.C)*.2}};
zO_=function(D,Q){this.C=this.S=0;this.S=Q.x-D.x;this.C=Q.y-D.y};
CEr=function(D,Q){var m,P,W;return g.U(function(L){if(L.C==1)return m={context:g.MW(),settingItemIds:Q},P=g.Qd(bPj),g.I(L,g.jz(D,m,P),2);W=L.S;return!W||W.errorMetadata?(qk7("GetSettingValuesRequest",W),L.return(void 0)):L.return(W.settingValues)})};
fy$=function(D,Q,m){var P,W,L;g.U(function(u){if(u.C==1)return P={context:g.MW(),settingItemId:Q,newValue:m},W=g.Qd(oj_),g.I(u,g.jz(D,P,W),2);L=u.S;if(!L||L.errorMetadata)return qk7("SetSettingRequest",L),u.return(void 0);g.T7(u)})};
qk7=function(D,Q){Q?Q.errorMetadata&&g.l4(new g.OI(D+" failed with status "+Q.errorMetadata.status)):g.l4(new g.OI(D+" failed with empty response"))};
VFj=function(D){return Vv(D,0,"gclid",D.search(Nc))>=0||Vv(D,0,"gad_source",D.search(Nc))>=0};
NAP=function(){this.S=new Map};
ZPm=function(D,Q){var m=kj().resolve(yjm);if(VFj(Q)){var P=Zb(Q,"gclid");Q={handleEvent:function(t){D&&!D.closed&&typeof D.postMessage==="function"&&t&&t.origin&&t.source===D&&t.data&&t.data.action==="gcl_setup"&&D.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),t.origin)}};
for(var W=g.T(m.S),L=W.next();!L.done;L=W.next()){var u=g.T(L.value);L=u.next().value;u=u.next().value;if(L.closed)try{window.removeEventListener("message",u),m.S.delete(L)}catch(t){g.JG(t)}}D&&m.S.size<15&&(m.S.set(D,Q),window.addEventListener("message",Q))}};
Vu=function(D,Q,m){if(!Q)return D.length>=1?D[D.length-1]:null;for(var P=g.T(D),W=P.next();!W.done;W=P.next())if(W=W.value,W.width&&W.height&&(m&&W.width>=Q||!m&&W.height>=Q))return W;for(Q=D.length-1;Q>=0;Q--)if(m&&D[Q].width||!m&&D[Q].height)return D[Q];return D[0]};
Nl=function(){this.state=1;this.IF=null;this.LI=void 0};
TAk=function(D,Q,m,P,W,L){var u=u===void 0?"trayride":u;m?(D.pM(2),g.mN(g.ZU(m),function(){if(window[u])FN6(D,P,u,W);else{D.pM(3);var t=fU7(m),z=document.getElementById(t);z&&(Chk(t),z.parentNode.removeChild(z));g.l4(new g.OI("BL:ULB",""+m))}},L)):Q?(L=g.qi("SCRIPT"),Q instanceof f6?(L.textContent=Vf(Q),Nt(L)):L.textContent=Q,L.nonce=oG(document),document.head.appendChild(L),document.head.removeChild(L),window[u]?FN6(D,P,u,W):(D.pM(4),g.l4(new g.OI("BL:ULBJ")))):g.l4(new g.OI("BL:ULV"))};
FN6=function(D,Q,m,P){D.pM(5);var W=!!D.LI&&hO9.includes(g.uY(D.LI)||"");try{var L=new bf({program:Q,globalName:m,l9:{disable:!g.oi("att_web_record_metrics")||!g.oi("att_skip_metrics_for_cookieless_domains_ks")&&W,TM:"aGIf"}});L.j_.then(function(){D.pM(6);P&&P(Q)});
D.Md(L)}catch(u){D.pM(7),u instanceof Error&&g.l4(u)}};
yu=function(){var D=g.Q4("yt.abuse.playerAttLoader");return D&&["bgvma","bgvmb","bgvmc"].every(function(Q){return Q in D})?D:null};
ZA=function(){Nl.apply(this,arguments)};
FZ=function(){};
njk=function(D,Q,m){for(var P=!1,W=g.T(D.D_.entries()),L=W.next();!L.done;L=W.next())L=g.T(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.Wq==="core"&&(P=!0);if(P){a:if(!m){D=g.T(D.D_.entries());for(m=D.next();!m.done;m=D.next())if(P=g.T(m.value),m=P.next().value,P=P.next().value,m.slotType==="SLOT_TYPE_IN_PLAYER"&&m.Wq==="core"){m=P.layoutId;break a}m=void 0}m?Q.JS(m):bu("No triggering layout ID available when attempting to mute.")}};
TJ=function(D,Q){this.kS=D;this.oH=Q};
hC=function(){};
nL=function(){};
gjk=function(D){g.v.call(this);var Q=this;this.jt=D;this.S=new Map;E0(this,"commandExecutorCommand",function(m,P,W){Ejh(Q,m.commands,P,W)});
E0(this,"clickTrackingParams",function(){})};
BA$=function(D,Q){E0(D,Q.JZ(),function(m,P,W){Q.cZ(m,P,W)})};
E0=function(D,Q,m){D.VF();D.S.get(Q)&&g.JG(Error("Extension name "+Q+" already registered"));D.S.set(Q,m)};
Ejh=function(D,Q,m,P){Q=Q===void 0?[]:Q;D.VF();var W=[],L=[];Q=g.T(Q);for(var u=Q.next();!u.done;u=Q.next())u=u.value,g.A(u,wq6)||g.A(u,kcw)?W.push(u):L.push(u);W=g.T(W);for(Q=W.next();!Q.done;Q=W.next())gd(D,Q.value,m,P);L=g.T(L);for(W=L.next();!W.done;W=L.next())gd(D,W.value,m,P)};
gd=function(D,Q,m,P){D.VF();Q.loggingUrls&&JjP(D,"loggingUrls",Q.loggingUrls,m,P);Q=g.T(Object.entries(Q));for(var W=Q.next();!W.done;W=Q.next()){var L=g.T(W.value);W=L.next().value;L=L.next().value;W==="openPopupAction"?D.jt.get().wg("innertubeCommand",{openPopupAction:L}):W==="confirmDialogEndpoint"?D.jt.get().wg("innertubeCommand",{confirmDialogEndpoint:L}):lyP.hasOwnProperty(W)||JjP(D,W,L,m,P)}};
JjP=function(D,Q,m,P,W){if((D=D.S.get(Q))&&typeof D==="function")try{D(m,P,W)}catch(L){g.JG(L)}else Q=new g.OI("Unhandled field",Q),g.l4(Q)};
Bt=function(D,Q,m){this.Bx=D;this.S=Q;this.eD=m;Ek(kj(),{MH:yjm,yM:NAP})};
wd=function(D){this.value=D};
kL=function(D){this.value=D};
JC=function(D){this.value=D};
lm=function(D){this.value=D};
I1=function(D){this.value=D};
R1=function(D){this.value=D};
U0=function(D){this.value=D};
Ht=function(){wd.apply(this,arguments)};
KL=function(D){this.value=D};
jb=function(D){this.value=D};
$L=function(D){this.value=D};
eb=function(D){this.value=D};
vt=function(D){this.value=D};
O0=function(D){this.value=D};
YL=function(D){this.value=D};
a1=function(D){this.value=D};
AC=function(D){this.value=D};
pL=function(D){this.value=D};
xL=function(){wd.apply(this,arguments)};
XZ=function(D){this.value=D};
Sb=function(D){this.value=D};
rd=function(D){this.value=D};
GJ=function(D){this.value=D};
Ml=function(D){this.value=D};
ct=function(D){this.value=D};
DR=function(D){this.value=D};
Qg=function(D){this.value=D};
mt=function(D){this.value=D};
Pe=function(D){this.value=D};
We=function(D){this.value=D};
iq=function(D){this.value=D};
sf=function(D){this.value=D};
LY=function(D){this.value=D};
uq=function(D){this.value=D};
du=function(D){this.value=D};
t8=function(D){this.value=D};
z_=function(D){this.value=D};
bq=function(D){this.value=D};
qa=function(D){this.value=D};
CY=function(D){this.value=D};
oI=function(D){this.value=D};
fY=function(D){this.value=D};
Vg=function(D){this.value=D};
Na=function(D){this.value=D};
yg=function(D){this.value=D};
ZR=function(D){this.value=D};
F9=function(D){this.value=D};
T_=function(D){this.value=D};
h8=function(D){this.value=D};
nY=function(D){this.value=D};
Ef=function(D){this.value=D};
gu=function(D){this.value=D};
Be=function(D){this.value=D};
wu=function(D){this.value=D};
kh=function(D){this.value=D};
J8=function(D){this.value=D};
lq=function(D){this.value=D};
II=function(D){this.value=D};
RI=function(){wd.apply(this,arguments)};
Uf=function(D){this.value=D};
He=function(){wd.apply(this,arguments)};
KY=function(){wd.apply(this,arguments)};
jB=function(){wd.apply(this,arguments)};
$h=function(){wd.apply(this,arguments)};
eB=function(){wd.apply(this,arguments)};
ve=function(D){this.value=D};
Of=function(D){this.value=D};
Yh=function(D){this.value=D};
aI=function(D){this.value=D};
A8=function(D){this.value=D};
xh=function(D,Q,m){if(m&&!m.includes(D.layoutType))return!1;Q=g.T(Q);for(m=Q.next();!m.done;m=Q.next())if(!pY(D.clientMetadata,m.value))return!1;return!0};
X9=function(){return""};
Iy_=function(D,Q){switch(D){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 Q(D),8}};
SB=function(D,Q,m,P){P=P===void 0?!1:P;o4.call(this,D);this.N4=m;this.G7=P;this.args=[];Q&&this.args.push(Q)};
r=function(D,Q,m,P){P=P===void 0?!1:P;o4.call(this,D);this.N4=m;this.G7=P;this.args=[];Q&&this.args.push(Q)};
ru=function(D){var Q=new Map;D.forEach(function(m){Q.set(m.S(),m)});
this.S=Q};
pY=function(D,Q){return D.S.has(Q)};
G_=function(D,Q){D=D.S.get(Q);if(D!==void 0)return D.get()};
Ma=function(D){return Array.from(D.S.keys())};
ce=function(D,Q,m){if(m&&m!==D.slotType)return!1;Q=g.T(Q);for(m=Q.next();!m.done;m=Q.next())if(!pY(D.clientMetadata,m.value))return!1;return!0};
UFw=function(D){var Q;return((Q=ROk.get(D))==null?void 0:Q.tG)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Qs=function(D,Q){var m={type:Q.slotType,controlFlowManagerLayer:HP7.get(Q.Wq)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(m.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(m.slotPhysicalPosition=Q.slotPhysicalPosition);if(D){m.debugData={slotId:Q.slotId};if(D=Q.slotEntryTrigger)m.debugData.slotEntryTriggerData=D1(D);D=Q.slotFulfillmentTriggers;m.debugData.fulfillmentTriggerData=[];D=g.T(D);for(var P=D.next();!P.done;P=D.next())m.debugData.fulfillmentTriggerData.push(D1(P.value));
Q=Q.slotExpirationTriggers;m.debugData.expirationTriggerData=[];Q=g.T(Q);for(D=Q.next();!D.done;D=Q.next())m.debugData.expirationTriggerData.push(D1(D.value))}return m};
KN9=function(D,Q){var m={type:Q.layoutType,controlFlowManagerLayer:HP7.get(Q.Wq)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D&&(m.debugData={layoutId:Q.layoutId});return m};
D1=function(D,Q){var m={type:D.triggerType};Q!=null&&(m.category=Q);D.triggeringSlotId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return m};
jl9=function(D,Q,m,P){Q={opportunityType:Q};D&&(P||m)&&(P=g.fk(P||[],function(W){return Qs(D,W)}),Q.debugData=Object.assign({},m&&m.length>0?{associatedSlotId:m}:{},P.length>0?{slots:P}:{}));
return Q};
PF=function(D,Q){return function(m){return $FP(mA(D),Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.Wq,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,m.layoutId,m.layoutType,m.Wq)}};
$FP=function(D,Q,m,P,W,L,u,t,z,b,q){return{adClientDataEntry:{slotData:Qs(D,{slotId:Q,slotType:m,slotPhysicalPosition:P,Wq:W,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:t,clientMetadata:new ru([])}),layoutData:KN9(D,{layoutId:z,layoutType:b,Wq:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Ij:new Map,clientMetadata:new ru([]),Ur:{}})}}};
iJ=function(D){this.Ry=D;D=Math.random();var Q=this.Ry.get();Q=g.WF(Q.D.G().experiments,"html5_debug_data_log_probability");Q=Number.isFinite(Q)&&Q>=0&&Q<=1?Q:0;this.S=D<Q};
mA=function(D){return D.S||D.Ry.get().D.G().V("html5_force_debug_data_for_client_tmp_logs")};
sg=function(D,Q,m,P){g.v.call(this);this.C=Q;this.rB=m;this.Ry=P;this.S=D(this,this,this,this,this);g.O(this,this.S);D=g.T(Q);for(Q=D.next();!Q.done;Q=D.next())g.O(this,Q.value)};
L8=function(D,Q){D.C.add(Q)};
uJ=function(D,Q){D.C.delete(Q)};
tV=function(D,Q,m,P){bu(m,Q,void 0,void 0,m.G7);m.N4?D.rB.SH(P,m.N4,Q):bu("adsClientErrorMessage is missing.",Q);d5(D,Q,!0)};
vj_=function(D,Q,m){if(zR(D.S,Q))if(bJ(D.S,Q).B=m?"filled":"not_filled",m===null){D.rB.dl("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",Q);m=g.T(D.C);for(var P=m.next();!P.done;P=m.next())P.value.mD(Q);d5(D,Q,!1)}else{D.rB.dl("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",Q,m);D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,m);var W,L=(W=m.Xl)!=null?W:G_(m.clientMetadata,"metadata_type_sub_layouts");if(L)for(W=g.T(L),L=W.next();!L.done;L=W.next())D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
Q,L.value);W=g.T(D.C);for(L=W.next();!L.done;L=W.next())L.value.cB(Q);if(zR(D.S,Q))if(bJ(D.S,Q).J)d5(D,Q,!1);else{D.rB.dl("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",Q,m);try{P=D.S;if(!bJ(P,Q))throw new SB("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!P.lH.j0.get(Q.slotType))throw new SB("No LayoutRenderingAdapterFactory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(m.layoutExitNormalTriggers.length==0&&m.layoutExitSkipTriggers.length==0&&m.layoutExitMuteTriggers.length==0&&m.layoutExitUserInputSubmittedTriggers.length==0&&m.iE.length==0)throw new SB("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");qw(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",m.layoutExitNormalTriggers);qw(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",m.layoutExitSkipTriggers);qw(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",m.layoutExitMuteTriggers);
qw(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",m.layoutExitUserInputSubmittedTriggers);qw(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",m.iE)}catch(b){b instanceof SB?D.hN(Q,m,b,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):D.hN(Q,m,new SB("Unexpected error: "+b,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");d5(D,Q,!0);return}bJ(D.S,Q).N=!0;try{var u=D.S,t=bJ(u,Q),z=u.lH.j0.get(Q.slotType).get().build(u.B,u.C,Q,m);z.init();t.layout=
m;if(t.T)throw new SB("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");t.T=z;C8(u,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",m.layoutExitNormalTriggers);C8(u,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",m.layoutExitSkipTriggers);C8(u,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",m.layoutExitMuteTriggers);C8(u,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",m.layoutExitUserInputSubmittedTriggers);C8(u,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
m.iE)}catch(b){oA(D,Q);b instanceof SB?D.hN(Q,m,b,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):D.hN(Q,m,new SB("Unexpected error: "+b,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");d5(D,Q,!0);return}D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,m);P=g.T(D.C);for(u=P.next();!u.done;u=P.next())u.value.hY(Q,m);oA(D,Q);eO7(D,Q)}else D=D.Ry.get(),g.f8(D.D.G())||Vs(D.D.G())||g.Nw(D.D.G())?D=!0:(bu("Composite VOD on legacy path."),D=!1),D&&bu("slot is unscheduled after been fulfilled.",
Q,m)}};
OPP=function(D,Q,m){Q.Wq!=="core"&&D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,m,void 0)};
Ykj=function(D,Q,m){D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,m,void 0);D=g.T(D.C);for(var P=D.next();!P.done;P=D.next())P.value.hY(Q,m)};
ayh=function(D,Q,m){D=g.T(D.C);for(var P=D.next();!P.done;P=D.next())P.value.OH(Q,m)};
ys=function(D,Q,m){D.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,m,void 0);D=g.T(D.C);for(var P=D.next();!P.done;P=D.next())P.value.XA(Q,m)};
Z1=function(D,Q,m,P){D.rB.dl(UFw(P),Q,m,void 0);D=g.T(D.C);for(var W=D.next();!W.done;W=D.next())W.value.Om(Q,m,P)};
oA=function(D,Q){if(zR(D.S,Q)){bJ(D.S,Q).N=!1;var m=FB;Q=bJ(D.S,Q);var P=[].concat(g.on(Q.Z));hrP(Q.Z);m(D,P)}};
FB=function(D,Q){Q.sort(function(L,u){function t(z){bu("TriggerCategoryOrder enum does not contain trigger category: "+z)}
return L.category===u.category?L.trigger.triggerId.localeCompare(u.trigger.triggerId):Iy_(L.category,t)-Iy_(u.category,t)});
var m=new Map;Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())if(P=P.value,zR(D.S,P.slot))if(bJ(D.S,P.slot).N)bJ(D.S,P.slot).Z.push(P);else{D.rB.AV("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",P.slot,P,P.layout);var W=m.get(P.category);W||(W=[]);W.push(P);m.set(P.category,W)}Q=g.T(Ajr);for(P=Q.next();!P.done;P=Q.next())W=g.T(P.value),P=W.next().value,W=W.next().value,(P=m.get(P))&&pq9(D,P,W);(Q=m.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&xF6(D,Q);(Q=m.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&XqP(D,
Q);(m=m.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&Sk9(D,m)};
pq9=function(D,Q,m){Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())P=P.value,P.layout&&TR(D.S,P.slot)&&rjm(D,P.slot,P.layout,m)};
xF6=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())d5(D,m.value.slot,!1)};
XqP=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;a:switch(bJ(D.S,m.slot).B){case "not_filled":var P=!0;break a;default:P=!1}P&&(D.rB.hd("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",m.slot),D.S.Sj(m.slot))}};
Sk9=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;D.rB.hd("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",m.slot);for(var P=g.T(D.C),W=P.next();!W.done;W=P.next())W.value.L6(m.slot);try{var L=D.S,u=m.slot,t=bJ(L,u);if(!t)throw new r("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!t.C)throw new r("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(t.S!=="scheduled")throw new r("Tried to enter a slot from stage: "+
t.S,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(hV(t))throw new r("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var z=g.T(n8(L,u.slotType+"_"+u.slotPhysicalPosition).values()),b=z.next();!b.done;b=z.next()){var q=b.value;if(t!==q&&hV(q))throw new r("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:q.S},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(C){C instanceof r&&C.N4?(D.rB.SH("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
C.N4,m.slot),bu(C,m.slot,Eg(D.S,m.slot),void 0,C.G7)):(D.rB.SH("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m.slot),bu(C,m.slot));d5(D,m.slot,!0);continue}m=bJ(D.S,m.slot);m.S!=="scheduled"&&g5(m.slot,m.S,"enterSlot");m.S="enter_requested";m.C.LX()}};
eO7=function(D,Q){if(zR(D.S,Q)&&hV(bJ(D.S,Q))&&Eg(D.S,Q)&&!TR(D.S,Q)){var m;D.rB.dl("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Q,(m=Eg(D.S,Q))!=null?m:void 0);D=bJ(D.S,Q);D.S!=="entered"&&g5(D.slot,D.S,"enterLayoutForSlot");D.S="rendering";D.T.startRendering(D.layout)}};
rjm=function(D,Q,m,P){if(zR(D.S,Q)){var W=D.rB,L=W.dl,u;var t=((u=ROk.get(P))==null?void 0:u.TB)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";L.call(W,t,Q,m);D=bJ(D.S,Q);D.S!=="rendering"&&g5(D.slot,D.S,"exitLayout");D.S="rendering_stop_requested";D.T.II(m,P)}};
d5=function(D,Q,m){if(zR(D.S,Q)){a:switch(bJ(D.S,Q).S){case "exit_requested":var P=!0;break a;default:P=!1}if(!P)a:switch(bJ(D.S,Q).S){case "rendering_stop_requested":P=!0;break a;default:P=!1}if(P&&(bJ(D.S,Q).J=!0,!m))return;if(hV(bJ(D.S,Q)))bJ(D.S,Q).J=!0,Gcn(D,Q,m);else{a:switch(bJ(D.S,Q).B){case "fill_requested":m=!0;break a;default:m=!1}if(m)bJ(D.S,Q).J=!0,zR(D.S,Q)&&(D.rB.hd("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Q),Q=bJ(D.S,Q),Q.B="fill_cancel_requested",Q.U.qP());else{m=
Eg(D.S,Q);(P=D.Ry.get().D.G().experiments.Mv("h5_enable_layout_unscheduling_events"))&&(m?D.OH(Q,m):bu(Error("Layout is null for LayoutUnscheduled event."),Q,m,void 0,!1));D.rB.hd("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Q);var W=bJ(D.S,Q),L=Q.slotEntryTrigger,u=W.Kh.get(L.triggerId);u&&(u.EZ(L),W.Kh.delete(L.triggerId));L=g.T(Q.slotFulfillmentTriggers);for(u=L.next();!u.done;u=L.next()){u=u.value;var t=W.TO.get(u.triggerId);t&&(t.EZ(u),W.TO.delete(u.triggerId))}L=g.T(Q.slotExpirationTriggers);
for(u=L.next();!u.done;u=L.next())if(u=u.value,t=W.j.get(u.triggerId))t.EZ(u),W.j.delete(u.triggerId);W.layout!=null&&(L=W.layout,BF(W,L.layoutExitNormalTriggers),BF(W,L.layoutExitSkipTriggers),BF(W,L.layoutExitMuteTriggers),BF(W,L.layoutExitUserInputSubmittedTriggers),BF(W,L.iE));W.U=void 0;W.C!=null&&(W.C.release(),W.C=void 0);W.T!=null&&(W.T.release(),W.T=void 0);W=D.S;bJ(W,Q)&&(W=n8(W,Q.slotType+"_"+Q.slotPhysicalPosition))&&W.delete(Q.slotId);D.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
Q);D=g.T(D.C);for(W=D.next();!W.done;W=D.next())W=W.value,W.AY(Q),m&&!P&&W.OH(Q,m)}}}};
Gcn=function(D,Q,m){if(zR(D.S,Q)&&hV(bJ(D.S,Q))){var P=Eg(D.S,Q);if(P&&TR(D.S,Q))rjm(D,Q,P,m?"error":"abandoned");else{D.rB.hd("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",Q);try{var W=bJ(D.S,Q);if(!W)throw new r("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");W.S!=="enter_requested"&&W.S!=="entered"&&W.S!=="rendering"&&g5(W.slot,W.S,"exitSlot");W.S="exit_requested";if(W.C===void 0)throw W.S="scheduled",new r("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");W.C.l$()}catch(L){L instanceof r&&L.N4?(D.rB.SH("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",L.N4,Q),bu(L,Q,void 0,void 0,L.G7)):(D.rB.SH("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),bu(L,Q))}}}};
MF6=function(D){this.slot=D;this.Kh=new Map;this.TO=new Map;this.j=new Map;this.Iy=new Map;this.T=this.layout=this.C=this.U=void 0;this.N=this.J=!1;this.Z=[];this.S="not_scheduled";this.B="not_filled"};
hV=function(D){return D.S==="enter_requested"||D.isActive()};
w5=function(D,Q,m,P,W,L){g.v.call(this);this.lH=D;this.T=Q;this.J=m;this.B=P;this.C=W;this.Ry=L;this.S=new Map};
n8=function(D,Q){return(D=D.S.get(Q))?D:new Map};
bJ=function(D,Q){return n8(D,Q.slotType+"_"+Q.slotPhysicalPosition).get(Q.slotId)};
cj6=function(D){var Q=[];D.S.forEach(function(m){m=g.T(m.values());for(var P=m.next();!P.done;P=m.next())Q.push(P.value.slot)});
return Q};
zR=function(D,Q){return bJ(D,Q)!=null};
TR=function(D,Q){D=bJ(D,Q);if(Q=D.layout!=null)a:switch(D.S){case "rendering":case "rendering_stop_requested":Q=!0;break a;default:Q=!1}return Q};
Eg=function(D,Q){(D=bJ(D,Q))?D.layout!=null&&!D.layout&&bu("Unexpected empty layout",Q):bu("Unexpected undefined slotState",Q);return(D==null?void 0:D.layout)||null};
k8=function(D,Q,m){if(m.length==0)throw new r("No "+DJ_.get(Q)+" triggers found for slot.",void 0,QCu(Q));m=g.T(m);for(var P=m.next();!P.done;P=m.next())if(P=P.value,!D.lH.Fl.get(P.triggerType))throw new r("No trigger adapter registered for "+Q+" trigger of type: "+P.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
QCu=function(D){switch(D){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"}};
qw=function(D,Q,m){m=g.T(m);for(var P=m.next();!P.done;P=m.next())if(P=P.value,!D.lH.Fl.get(P.triggerType))throw new SB("No trigger adapter registered for "+DJ_.get(Q)+" trigger of type: "+P.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
C8=function(D,Q,m,P){P=g.T(P);for(var W=P.next();!W.done;W=P.next()){W=W.value;var L=D.lH.Fl.get(W.triggerType);L.YN(m,W,Q.slot,Q.layout?Q.layout:null);Q.Iy.set(W.triggerId,L)}};
BF=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=D.Iy.get(m.triggerId);P&&(P.EZ(m),D.Iy.delete(m.triggerId))}};
g5=function(D,Q,m){bu("Slot stage was "+Q+" when calling method "+m,D)};
mJ7=function(D){return JV(D.Ts).concat(JV(D.Fl)).concat(JV(D.OD)).concat(JV(D.PL)).concat(JV(D.j0))};
JV=function(D){var Q=[];D=g.T(D.values());for(var m=D.next();!m.done;m=D.next())m=m.value,m.C6&&Q.push(m);return Q};
lJ=function(D){g.v.call(this);var Q=this;this.S=D;this.instance=null;this.addOnDisposeCallback(function(){g.Dp(Q.instance);Q.instance=null})};
IA=function(D){return new lJ(D)};
RA=function(D){g.v.call(this);this.S=D;this.C=P4r(this)};
P4r=function(D){var Q=new sg(function(m,P,W,L){return new w5(D.S.lH,m,P,W,L,D.S.Ry)},new Set(mJ7(D.S.lH).concat(D.S.listeners)),D.S.rB,D.S.Ry);
g.O(D,Q);return Q};
Ug=function(D){this.S=D};
HF=function(D,Q,m){Ejh(D.S(),Q,m)};
K8=function(D,Q,m,P){(D=D.S())||bu("Could not initiate a command router instance.");gd(D,Q,m,P)};
jq=function(){this.listeners=new Set};
$8=function(D){this.Ry=D};
W0k=function(D,Q){var m=Q.bgp&&Q.bgub,P=!!Q.upb;Q.siub&&Q.scs&&(m||P)&&(P&&eq(D.Ry.get(),"html5_export_sodar_snapshot")?rf().then(function(W){W=W.snapshot.bind(W);g.ch("yt.abuse.playerAttLoaderRun",W);BSk(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb)}):BSk(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb))};
ib$=function(D,Q,m,P,W){this.callback=D;this.slot=Q;this.C=m;this.BO=P;this.Ry=W;this.S=null};
L04=function(D,Q,m,P){D.S&&bu("Currently active request ongoing for slot. This should never happen",D.slot);D.S=Q();D.S.then(function(W){D.S=null;P&&P(W);var L=W.sP?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",u=D.C.get(),t=D.slot.slotId,z=PF(D.BO.get(),{slotId:D.slot.slotId,slotType:D.slot.slotType,slotPhysicalPosition:D.slot.slotPhysicalPosition,Wq:D.slot.Wq,slotEntryTrigger:D.slot.slotEntryTrigger,slotFulfillmentTriggers:D.slot.slotFulfillmentTriggers,slotExpirationTriggers:D.slot.slotExpirationTriggers}),
b=vF(u.C.get(),L,t),q={layoutId:b,layoutType:L,Wq:"core"};W={layoutId:b,layoutType:L,Ij:new Map,layoutExitNormalTriggers:[new sCw(u.S,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new kh(W)]),Ur:z(q)};vj_(D.callback,D.slot,W)},function(W){D.S=null;
m&&m();W instanceof Rs||tV(D.callback,D.slot,new r(W,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
uz6=function(D){if(D.S==null)D.callback.TF(D.slot);else try{D.S.cancel(),D.S=null,D.callback.TF(D.slot)}catch(Q){D.S=null,tV(D.callback,D.slot,new r(Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
Og=function(D,Q,m,P){!D&&(m===void 0?0:m)&&g.l4(Error("Player URL validator detects invalid url. "+(P===void 0?"":P)+": "+Q));return D};
Y8=function(D,Q){return Q&&Q.test(D)?!0:!1};
tX$=function(D){return(D=dJ$&&dJ$.exec(D))?D[0]:""};
aA=function(D){var Q=Q===void 0?!1:Q;return Og(Y8(D,zz4),D,Q,"Trusted Stream URL")};
g.AV=function(D){var Q=Q===void 0?!1:Q;return Og(Y8(D,bbh),D,Q,"Trusted Image URL")};
C4_=function(D){var Q=Q===void 0?!1:Q;return Og(Y8(D,qzw),D,Q,"Trusted Promoted Video Domain URL")};
flm=function(D){var Q=Q===void 0?!1:Q;return Og(Y8(D,oO6),D,Q,"Drm Licensor URL")};
Non=function(D,Q){Q=Q===void 0?!1:Q;return Og(Y8(D,VXP),D,Q,"Captions URL")};
yGn=function(D){D=new g.Qc(D);g.mq(D,document.location.protocol);g.PV(D,document.location.hostname);document.location.port&&g.WV(D,document.location.port);return D.toString()};
p8=function(D){D=new g.Qc(D);g.mq(D,document.location.protocol);return D.toString()};
g.XB=function(D,Q,m){m=m===void 0?{}:m;this.start=D;this.end=Q;this.active=!0;this.color="";this.C=Zbw++;this.id=m.id||"";this.priority=m.priority||9;this.visible=m.visible||!1;this.style=m.style||x8.AD_MARKER;this.namespace=m.namespace||"";if(D=m.color)D=D.toString(16),this.color="#"+Array(7-D.length).join("0")+D;this.tooltip=m.tooltip;this.icons=m.icons?m.icons.filter(function(P){return g.VT(P.thumbnails,function(W){return g.AV(W.url)})}):null;
this.associatedClipId=m.associatedClipId;this.markerPositionMs=m.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start};
F0r=function(D){return D===-0x8000000000000?"BEFORE_MEDIA_START":D===0?"MEDIA_START":D===0x7ffffffffffff?"MEDIA_END":D===0x8000000000000?"AFTER_MEDIA_END":D.toString()};
To4=function(D,Q){switch(D.style){case x8.CHAPTER_MARKER:return Q?8:5;case x8.AD_MARKER:return 6;case x8.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Sq=function(D,Q){return D.start-Q.start||D.priority-Q.priority||D.C-Q.C};
g.r5=function(D){return"crn_"+D};
g.GR=function(D){return"crx_"+D};
Mw=function(D,Q,m,P,W,L,u,t,z){this.slot=Q;this.C=m;this.eD=u;this.Hq=t;this.De=z;this.S=new ib$(D,Q,P,W,L)};
hzm=function(D){var Q;(Q=D.De)==null||Q.get().HL(G_(D.slot.clientMetadata,"metadata_type_cue_point").identifier)};
cF=function(D,Q,m,P,W,L){this.slot=Q;this.S=m;this.C=new ib$(D,Q,P,W,L)};
Dd=function(D,Q){this.callback=D;this.slot=Q};
QB=function(D,Q){return ce(D,Q.Nj,Q.slotType)?!0:!1};
mZ=function(){};
PX=function(D,Q,m,P,W,L,u){this.S=D;this.C=Q;this.BO=m;this.Ry=P;this.eD=W;this.Hq=L;this.De=u};
WX=function(){};
nOr=function(D,Q,m,P,W,L){this.callback=D;this.slot=Q;this.layout=m;this.T=P;this.S=W;this.C=L};
gOn=function(D){if(G_(D.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var Q=EOw(D,D.slot);ia(D.S.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[Q]})}};
Bo9=function(D){if(G_(D.slot.clientMetadata,"metadata_type_prefetch_metadata")){var Q=EOw(D,D.slot);ia(D.S.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[Q]})}};
EOw=function(D,Q){var m=so(D.C.get(),D.slot.slotType),P=Object,W=P.assign;D=D.slot;if(Q.slotEntryTrigger){var L=Q.slotId;var u=Q.slotEntryTrigger;L=u.triggeringSlotId!=null&&u.triggeringSlotId===L?u.clone(m):u}else L=void 0;return W.call(P,{},D,{slotId:m,slotEntryTrigger:L,slotFulfillmentTriggers:wiP(Q.slotId,m,Q.slotFulfillmentTriggers),slotExpirationTriggers:wiP(Q.slotId,m,Q.slotExpirationTriggers)})};
wiP=function(D,Q,m){var P=[];m=g.T(m);for(var W=m.next();!W.done;W=m.next()){var L=P,u=L.push;var t=D;var z=Q;W=W.value;t=W.triggeringSlotId!=null&&W.triggeringSlotId===t?W.clone(z):W;u.call(L,t)}return P};
g.LZ=function(D,Q){for(var m=g.T(Object.keys(Q)),P=m.next(),W={};!P.done;W={placeholder:void 0},P=m.next())P=P.value,W.placeholder=Q[P],D=D.replace(new RegExp("\\$"+P,"gi"),function(L){return function(){return L.placeholder}}(W));
return D};
kqr=function(D,Q,m){this.S=D;this.slot=Q;this.layout=m};
ua=function(D,Q,m){Q.layoutId!==D.layout.layoutId?D.S.hN(D.slot,Q,new SB("Unknown layout received. Required LayoutId: "+D.layout.layoutId+("and LayoutType: "+D.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):m()};
dB=function(D,Q,m,P){g.iR.call(this);this.callback=D;this.T=P;this.S=[];this.C=new kqr(D,Q,m)};
zV=function(D,Q,m,P,W,L,u,t){P=P||G_(m.clientMetadata,L);D=ta(D);var z=R$(function(){W.XA(Q,m)});
t.push(u(P,D,m.layoutId,{adsClientData:m.Ur},function(){z()}))};
q0=function(D,Q,m,P,W,L,u,t,z){if(Q===D)if(z){if(z===t.layoutId){a:{D=g.T(m.keys());for(Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L===m.get(Q).layoutId){m=!0;break a}m=!1}m?ba(P,1):W?W():bu("Tried to call engagePingCallback but it is null",u,t)}}else bu("Companion AdUxClick received without a layoutId",u,t)};
CZ=function(D){var Q,m,P,W,L;return!((Q=D.get("active_view_viewable"))==null||!Q.length)||!((m=D.get("active_view_measurable"))==null||!m.length)||!((P=D.get("active_view_fully_viewable_audible_half_duration"))==null||!P.length)||!((W=D.get("audio_audible"))==null||!W.length)||!((L=D.get("audio_measurable"))==null||!L.length)};
oL=function(D){var Q,m;return(m=D==null?void 0:(Q=D.activeViewTracking)==null?void 0:Q.trafficType)!=null?m:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
JG6=function(D){var Q;return D==null?void 0:(Q=D.activeViewTracking)==null?void 0:Q.identifier};
fZ=function(D){var Q,m;return new Map([["impression",D.impressionPings||[]],["error",D.errorPings||[]],["mute",D.mutePings||[]],["unmute",D.unmutePings||[]],["pause",D.pausePings||[]],["rewind",D.rewindPings||[]],["resume",D.resumePings||[]],["skip",D.skipPings||[]],["swipe",D.swipePings||[]],["close",D.closePings||[]],["progress",D.progressPings||[]],["clickthrough",D.clickthroughPings||[]],["fullscreen",D.fullscreenPings||[]],["active_view_viewable",D.activeViewViewablePings||[]],["active_view_measurable",
D.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",D.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((Q=D.activeViewTracking)==null?void 0:Q.activeViewAudioAudiblePings)||[]],["audio_measurable",((m=D.activeViewTracking)==null?void 0:m.activeViewAudioMeasurablePings)||[]],["end_fullscreen",D.endFullscreenPings||[]],["channel_clickthrough",D.channelClickthroughPings||[]],["abandon",D.abandonPings||[]],["start",D.startPings||[]],["first_quartile",
D.firstQuartilePings||[]],["midpoint",D.secondQuartilePings||[]],["third_quartile",D.thirdQuartilePings||[]],["complete",D.completePings||[]],["unmuted_impression",D.unmutedImpressionPings||[]],["unmuted_error",D.unmutedErrorPings||[]],["unmuted_mute",D.unmutedMutePings||[]],["unmuted_unmute",D.unmutedUnmutePings||[]],["unmuted_pause",D.unmutedPausePings||[]],["unmuted_resume",D.unmutedResumePings||[]],["unmuted_close",D.unmutedClosePings||[]],["unmuted_progress",D.unmutedProgressPings||[]],["unmuted_clickthrough",
D.unmutedClickthroughPings||[]],["unmuted_fullscreen",D.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",D.unmutedEndFullscreenPings||[]],["unmuted_abandon",D.unmutedAbandonPings||[]],["unmuted_start",D.unmutedStartPings||[]],["unmuted_first_quartile",D.unmutedFirstQuartilePings||[]],["unmuted_midpoint",D.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",D.unmutedThirdQuartilePings||[]],["unmuted_complete",D.unmutedCompletePings||[]],["unmuted_skip",D.unmutedSkipPings||[]]])};
ll7=function(D){switch(D){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}};
VB=function(D,Q,m,P,W){W=W===void 0?null:W;this.T=D;this.eD=Q;this.layoutId=P;this.B=0;this.N=null;this.J=void 0;this.S=new Set;this.C=Array.from(this.T.get("progress")||[]);this.C.sort(function(L,u){return(L.offsetMilliseconds||0)-(u.offsetMilliseconds||0)});
this.U={adPlacementConfig:m,Za:W}};
N0=function(){return["metadata_type_ad_placement_config"]};
ta=function(D){var Q=D.eD.get();return yB(Q,D.U)};
Fj=function(D,Q,m){m=m===void 0?!1:m;D.S.has(Q)?Zd(D,Q,[]):D.ZG(Q,m)};
TV=function(D,Q,m){for(m=m===void 0?!1:m;D.B<D.C.length;){var P=D.C[D.B];if(P.offsetMilliseconds<=Q||m)Zd(D,"progress",[P]),D.B++;else break}};
ha=function(D,Q){return D.S.has(Q)};
nZ=function(D){return D.C.every(function(Q){return Q.hasOwnProperty("offsetMilliseconds")})};
Ilm=function(D,Q,m){D.N=Q;D.J=m};
Zd=function(D,Q,m){var P;Rz_(D.eD.get(),D.layoutId,Q,m,(P=D.N)!=null?P:void 0,D.J)};
UJu=function(D,Q,m,P,W){WR.call(this,"ads-engagement-panel-layout",D,Q,m,P,W)};
Eo=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
Hbj=function(){var D=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_PANEL"]}};
K07=function(D,Q,m,P,W){WR.call(this,"banner-image",D,Q,m,P,W)};
gB=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);this.adPlacementConfig=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,this.adPlacementConfig,m.layoutId)};
jCw=function(){var D=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
BX=function(D,Q,m,P,W){WR.call(this,"action-companion",D,Q,m,P,W)};
wB=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
$J4=function(){var D=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
ez_=function(D,Q,m,P,W){WR.call(this,"image-companion",D,Q,m,P,W)};
k3=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
vOP=function(){var D=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
Obk=function(D,Q,m,P,W){WR.call(this,"shopping-companion",D,Q,m,P,W)};
Ja=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
Yzu=function(){var D=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
al6=function(D){var Q;if(((Q=D.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var m;return((m=D.adVideoOffset)==null?void 0:m.percent)!=null};
AGw=function(D){var Q;if(((Q=D.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var m;return((m=D.adVideoOffset)==null?void 0:m.milliseconds)!=null&&!isNaN(Number(D.adVideoOffset.milliseconds))};
pih=function(D,Q,m,P){this.vY=D;this.layoutId=m;this.J=P;this.C=[];this.S=[];this.T=this.B=0;D=g.T(Q);for(Q=D.next();!Q.done;Q=D.next())switch(Q=Q.value,m=void 0,(m=Q.adVideoOffset)==null?void 0:m.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":al6(Q)?this.C.push(Q):bu("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":AGw(Q)?this.S.push(Q):bu("Invalid AdVideoProgressMillisecondsCommand");break;default:bu("Unknown or invalid AdVideoProgressOffSet kind")}this.C.sort(function(W,
L){return W.adVideoOffset.percent-L.adVideoOffset.percent});
this.S.sort(function(W,L){return Number(W.adVideoOffset.milliseconds)-Number(L.adVideoOffset.milliseconds)})};
la=function(D,Q,m){m=m===void 0?!1:m;var P=D.J();if(P){for(;D.B<D.C.length;){var W=D.C[D.B];if(W.adVideoOffset.percent*P<=Q||m)D.vY.get().executeCommand(W.command,D.layoutId),D.B++;else break}for(;D.T<D.S.length;)if(P=D.S[D.T],Number(P.adVideoOffset.milliseconds)<=Q||m)D.vY.get().executeCommand(P.command,D.layoutId),D.T++;else break}};
IL=function(D,Q,m,P,W,L){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.C6=!0;L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
xJ7=function(){var D=["metadata_type_action_companion_ad_renderer"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Xi4=function(D,Q,m,P,W,L,u,t){this.callback=D;this.slot=Q;this.layout=m;this.Hq=P;this.eD=W;this.Ry=u;this.BY=t;this.S=!1;D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId);var z;D=((z=G_(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:z.progressCommands)||[];var b=G_(m.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.C=new pih(L,D,m.layoutId,function(){return b*1E3})};
RL=function(D,Q,m,P,W,L){dB.call(this,D,Q,m,P);this.Hq=W;this.J=L;this.B=!1};
Uo=function(D,Q,m,P,W){WR.call(this,"top-banner-image-text-icon-buttoned",D,Q,m,P,W)};
HX=function(D,Q,m,P,W,L){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.C6=!0;L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
Szr=function(){var D=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
KZ=function(D,Q,m){WR.call(this,"display-underlay-text-grid-cards",D,{},Q,m);this.interactionLoggingClientData=m};
jL=function(D,Q,m,P,W,L){dB.call(this,D,Q,m,P);this.eD=W;this.B=L;this.J=G_(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
$3=function(D,Q,m,P,W,L){W=W===void 0?!1:W;L=L===void 0?!1:L;WR.call(this,"ad-action-interstitial",D,Q,m,P);this.interactionLoggingClientData=P;this.Se=W;this.VM=L};
eL=function(D,Q,m,P,W){dB.call(this,D,Q,m,P);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,W,D,m.layoutId)};
rGP=function(){var D=["metadata_type_ad_action_interstitial_renderer"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_ENDCAP"]}};
vX=function(D,Q){return xh(D,Q.Nj,Q.FZ)?!0:!1};
Oo=function(D,Q,m){this.C=D;this.T=Q;this.S=m};
Gqr=function(D,Q,m,P,W){WR.call(this,"ads-engagement-panel",D,Q,m,P,W)};
Y3=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
MXj=function(){var D=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
aL=function(D,Q,m,P,W,L,u,t){dB.call(this,D,Q,m,P);this.eD=W;this.St=L;this.N=t;this.C6=!0;this.B=null;this.J=G_(m.clientMetadata,"metadata_type_linked_player_bytes_layout_id");L8(this.St(),this);this.adPlacementConfig=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,this.adPlacementConfig,m.layoutId)};
cGr=function(){var D=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
DCw=function(D,Q,m,P,W){this.hx=D;this.eD=Q;this.St=m;this.S=P;this.BY=W};
Qqr=function(D,Q,m){this.hx=D;this.eD=Q;this.S=m};
mCu=function(D,Q,m,P,W){this.callback=D;this.slot=Q;this.layout=m;this.eD=P;this.P1=W;D=G_(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
PR7=function(){var D=["metadata_type_client_forecasting_ad_renderer"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_FORECASTING"]}};
Wrw=function(D,Q,m,P,W){this.callback=D;this.slot=Q;this.layout=m;this.eD=P;this.P1=W;D=G_(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
Aa=function(D,Q,m,P){this.Ry=D;this.eD=Q;this.P1=m;this.BY=P};
iXj=function(D,Q){return pY(D.clientMetadata,"metadata_type_ad_info_ad_metadata")?G_(D.clientMetadata,"metadata_type_ad_info_ad_metadata"):Q?{channelId:Q.M4,channelThumbnailUrl:Q.profilePicture,channelTitle:Q.author,videoTitle:Q.title}:(bu("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
sq$=function(D,Q){return pY(D.clientMetadata,"metadata_ad_video_is_listed")?G_(D.clientMetadata,"metadata_ad_video_is_listed"):Q?Q.isListed:(bu("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
Lrk=function(D,Q,m,P){WR.call(this,"player-overlay-layout",D,{},m,P);this.videoAdDurationSeconds=Q;this.interactionLoggingClientData=P};
pZ=function(D,Q,m,P,W,L,u,t,z){dB.call(this,D,Q,m,P);this.Hq=W;this.eD=L;this.N=u;this.J=t;this.Ry=z;this.B=!1;this.U=G_(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
uR7=function(D){if(D.layout.renderingContent){var Q;return(Q=G_(D.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return G_(D.layout.clientMetadata,"metadata_type_player_bytes_callback")};
x3=function(D,Q,m,P,W,L,u,t,z){dB.call(this,D,Q,m,P);this.Hq=W;this.eD=L;this.N=u;this.J=t;this.Ry=z;this.B=!1;this.U=G_(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
dCn=function(){return{Nj:["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"],FZ:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
Xj=function(D){if(D.layout.renderingContent){var Q;return(Q=G_(D.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return G_(D.layout.clientMetadata,"metadata_type_player_bytes_callback")};
t1$=function(D,Q,m){WR.call(this,"ad-message",D,void 0,Q,m)};
SL=function(D,Q,m,P,W,L){dB.call(this,m,D,Q,P);this.Hq=W;this.Ry=L};
zgP=function(){return{Nj:["metadata_type_valid_ad_message_renderer"],FZ:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
bX9=function(D,Q,m,P){WR.call(this,"video-interstitial-buttoned-centered",D,Q,m,P);this.interactionLoggingClientData=P};
rB=function(D,Q,m,P,W){dB.call(this,D,Q,m,P);D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,W,D,m.layoutId)};
QJ=function(D,Q,m,P,W,L,u,t,z){return vX(m,dCn())||m.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(m.renderingContent,GV)!==void 0?new x3(D,Q,m,P,W,L,u,t,z):vX(m,{Nj:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],FZ:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||m.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(m.renderingContent,M0)!==void 0?
new pZ(D,Q,m,P,W,L,u,t,z):vX(m,rGP())||m.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.A(m.renderingContent,cX)!==void 0?new eL(D,Q,m,P,L):vX(m,zgP())?new SL(Q,m,D,P,W,z):vX(m,{Nj:["metadata_type_instream_ad_player_overlay_renderer"],FZ:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new RL(D,Q,m,P,W,t):m.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.A(m.renderingContent,DO)!==void 0?new rB(D,Q,m,P,L):null};
qXj=function(D,Q,m,P,W,L){this.hx=D;this.Hq=Q;this.eD=m;this.C=P;this.S=W;this.Ry=L};
ms=function(D){return!D.oldState.isPlaying()&&D.state.isPlaying()};
P6=function(D,Q,m){return D<Q?!1:m!=null?m<=Q:D<=Q+1};
W6=function(D,Q,m,P,W,L,u,t){this.callback=D;this.slot=Q;this.layout=m;this.Hq=P;this.eD=W;this.Ry=L;this.BY=u;this.qv=t;this.S=!1;D=G_(m.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId)};
s5=function(D,Q){D.S||(D.ph.ZG(Q),D.S=!0)};
CR4=function(D,Q,m,P,W,L){this.Hq=D;this.eD=Q;this.vY=m;this.Ry=P;this.BY=W;this.qv=L};
Lt=function(){this.currentState=1;this.S="unknown"};
un=function(D,Q){if(D.currentState>1){g.l4(new g.OI("Exit already started",{current:D.currentState}));var m=!1}else m=!0;if(!m)return!1;D.currentState=2;D.S=Q;return!0};
dO=function(D){if(D.currentState!==2)return!1;D.currentState=3;return!0};
ob6=function(D,Q){var m=new Map;D=g.T(D);for(var P=D.next();!P.done;P=D.next()){P=P.value;if(P.layoutType==="LAYOUT_TYPE_MEDIA")var W="v";else P.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(W=G_(P.clientMetadata,"metadata_type_linked_in_player_layout_type"),W=W==="LAYOUT_TYPE_ENDCAP"||W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":W==="LAYOUT_TYPE_SURVEY"?"s":W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):W="u";m.set(P.layoutId,W);if(W==="u"){var L={};W=Q;P=(L.c=P.layoutId,L);W.D.dc("uct",P)}}D=
Q.Hi();tL={contentCpn:D,kY:m};P={};m=(P.ct=m.size,P.c=D,P);Q.D.dc("acc",m)};
fMk=function(){tL={contentCpn:"",kY:new Map}};
za=function(D){var Q;return(Q=tL.kY.get(D))!=null?Q:"u"};
bn=function(D,Q,m){D.D.dc(Q,m);V1$(D)};
Nij=function(D){var Q=D.layoutId,m=D.Zc;if(D.Gq){var P={};bn(D.Bx,"slso",(P.ec=Q,P.is=m,P.ctp=za(Q),P))}};
qh=function(D){var Q=D.layoutId,m=D.Zc;if(D.Gq){var P={};bn(D.Bx,"slse",(P.ec=Q,P.is=m,P.ctp=za(Q),P))}};
y1w=function(D){var Q=D.layoutId,m=D.Zc,P=D.Bx;D.Gq&&(D={},bn(P,"sleo",(D.xc=Q,D.is=m,D.ctp=za(Q),D)),V1$(P))};
ZXw=function(D){var Q=D.cpn,m=D.Bx;D=D.Zc;var P=m.Hi(),W={};bn(m,"ce",(W.ec=Q,W.ia=Q!==P,W.r=tL.kY.has(Q),W.is=D,W.ctp=za(Q),W))};
V1$=function(D){if(D.Hi()!==tL.contentCpn){var Q={};Q=(Q.c=tL.contentCpn,Q);D.D.dc("ccm",Q)}};
Frr=function(D){var Q=D.cpn,m=D.Bx;D=D.Zc;var P=m.Hi(),W={};bn(m,"cx",(W.xc=Q,W.ia=Q!==P,W.r=tL.kY.has(Q),W.is=D,W.ctp=za(Q),W))};
TiP=function(D){this.params=D;this.S=new Set};
hgj=function(D,Q,m){if(!D.S.has(Q)){D.S.add(Q);var P={};D.params.o4.Rj(Q,Object.assign({},m,(P.p_ac=D.params.adCpn,P.p_isv=D.params.mq&&D.params.ri,P)))}};
oN=function(D,Q,m){if(Ct(D.params.o4.Ry.get(),!0)){var P=m.flush,W={};hgj(D,Q,(W.cts=m.currentTimeSec,W.f=P,W))}};
nb6=function(D,Q){this.Bx=D;this.Ry=Q};
ft=function(D){var Q=[];if(D){D=g.T(Object.entries(D));for(var m=D.next();!m.done;m=D.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;P!==void 0&&(P=typeof P==="boolean"?""+ +P:(""+P).replace(/[:,=]/g,"_"),Q.push(m+"."+P))}}return Q.join(";")};
g.VJ=function(D,Q,m){Q=Q===void 0?{}:Q;this.errorCode=D;this.details=Q;this.severity=m===void 0?0:m};
Nh=function(D){return D===1||D===2};
yJ=function(D,Q){Q=Q===void 0?0:Q;if(D instanceof g.VJ)return D;D=D&&D instanceof Error?D:Error(""+D);Nh(Q)?g.JG(D):g.l4(D);return new g.VJ(Q===1?"player.fatalexception":"player.exception",{name:""+D.name,message:""+D.message},Q)};
EbP=function(D,Q){function m(){var P=g.e$.apply(0,arguments);D.removeEventListener("playing",m);Q.apply(null,g.on(P))}
D.addEventListener("playing",m)};
ZO=function(){var D=g.Q4("yt.player.utils.videoElement_");D||(D=g.qi("VIDEO"),g.ch("yt.player.utils.videoElement_",D));return D};
FO=function(D){var Q=ZO();return!!(Q&&Q.canPlayType&&Q.canPlayType(D))};
hL=function(D){if(/opus/.test(D)&&g.Ta&&!FI("38")&&!g.e8())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(D);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(D);if(/webm/.test(D)&&!Cfk())return!1;D==='audio/mp4; codecs="mp4a.40.2"'&&(D='video/mp4; codecs="avc1.4d401f"');return!!FO(D)};
gb$=function(D){try{var Q=hL('video/mp4; codecs="avc1.42001E"')||hL('video/webm; codecs="vp9"');return(hL('audio/mp4; codecs="mp4a.40.2"')||hL('audio/webm; codecs="opus"'))&&(Q||!D)||FO('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(m){return"html5.missingapi"}};
nt=function(){var D=ZO();return!(!D.webkitSupportsPresentationMode||typeof D.webkitSetPresentationMode!=="function")};
E5=function(){var D=ZO();try{var Q=D.muted;D.muted=!Q;return D.muted!==Q}catch(m){}return!1};
Bi7=function(){var D;return((D=navigator.connection)==null?void 0:D.type)||""};
g.gO=function(){hJ.apply(this,arguments)};
B6=function(D,Q,m,P,W,L,u,t){this.sampleRate=D===void 0?0:D;this.numChannels=Q===void 0?0:Q;this.spatialAudioType=m===void 0?"SPATIAL_AUDIO_TYPE_NONE":m;this.S=P===void 0?!1:P;this.T=W;this.B=L;this.audioQuality=u===void 0?"AUDIO_QUALITY_UNKNOWN":u;this.C=t===void 0?!1:t};
J1h=function(D,Q){r3(D,2,Q.S0,wO,3);r3(D,3,Q.innertubeRequest,wRr,3);Xa(D,4,Q.onesieUstreamerConfig);Xa(D,9,Q.bx);r3(D,10,Q.Kg,kV,3);r3(D,15,Q.reloadPlaybackParams,k14,3)};
IMP=function(D,Q){r3(D,1,Q.formatId,JL,3);Hg(D,2,Q.startTimeMs);Hg(D,3,Q.durationMs);Hg(D,4,Q.nU);Hg(D,5,Q.Np);r3(D,9,Q.fm0,lM$,3);r3(D,11,Q.aKD,ln,1);r3(D,12,Q.ZF,ln,1)};
Rg$=function(D,Q){Si(D,1,Q.videoId);Hg(D,2,Q.lmt)};
lM$=function(D,Q){if(Q.L3)for(var m=0;m<Q.L3.length;m++)r3(D,1,Q.L3[m],Rg$,3)};
JL=function(D,Q){Hg(D,1,Q.itag);Hg(D,2,Q.lmt);Si(D,3,Q.xtags)};
IN=function(D){return{itag:E$(D,1),lmt:E$(D,2),xtags:w3(D,3)}};
ln=function(D,Q){Hg(D,1,Q.startTicks);Hg(D,2,Q.XP);Hg(D,3,Q.timescale)};
UC9=function(D){return{startTicks:E$(D,1),XP:E$(D,2),timescale:E$(D,3)}};
HXP=function(D,Q){Hg(D,1,Q.defaultPolicy);Hg(D,2,Q.smooth);Hg(D,3,Q.visibility);Hg(D,4,Q.NC);Hg(D,5,Q.performance);Hg(D,6,Q.speed)};
jqh=function(D,Q){if(Q.authorizedFormats)for(var m=0;m<Q.authorizedFormats.length;m++)r3(D,1,Q.authorizedFormats[m],Kr7,1);Xa(D,2,Q.sabrLicenseConstraint)};
Kr7=function(D,Q){Hg(D,1,Q.trackType);x4(D,2,Q.isHdr)};
wO=function(D,Q){Hg(D,13,Q.timeSinceLastManualFormatSelectionMs);var m=Q.lastManualDirection;m!==void 0&&(U$(D,112),U$(D,m<<1^m>>31));Hg(D,16,Q.au);Hg(D,17,Q.detailedNetworkType);Hg(D,18,Q.wP);Hg(D,19,Q.VD);Hg(D,21,Q.e6v);Hg(D,23,Q.nK);Hg(D,28,Q.fQ);Hg(D,29,Q.PQc);Hg(D,34,Q.visibility);m=Q.playbackRate;if(m!==void 0){var P=new ArrayBuffer(4);(new Float32Array(P))[0]=m;m=(new Uint32Array(P))[0];if(m!==void 0)for(U$(D,285),R9(D,4),P=0;P<4;)D.view.setUint8(D.pos,m&255),m>>=8,D.pos+=1,P+=1}Hg(D,36,Q.I0);
r3(D,38,Q.mediaCapabilities,$C4,3);Hg(D,39,Q.Zdc);Hg(D,40,Q.FP);Hg(D,44,Q.playerState);x4(D,46,Q.CR);Hg(D,48,Q.hG);Hg(D,50,Q.yg);Hg(D,51,Q.Qf);Hg(D,54,Q.L0);if(Q.Xc)for(m=0;m<Q.Xc.length;m++)Hg(D,55,Q.Xc[m]);x4(D,56,Q.ezW);Hg(D,57,Q.zk);x4(D,58,Q.S9);Hg(D,59,Q.vc);Hg(D,60,Q.e2);x4(D,61,Q.isPrefetch);Hg(D,62,Q.J9);Xa(D,63,Q.sabrLicenseConstraint);Hg(D,64,Q.Ec);Hg(D,66,Q.Mt);Hg(D,67,Q.xfc);Hg(D,68,Q.RzW);Si(D,69,Q.audioTrackId);x4(D,71,Q.C2);r3(D,72,Q.bOy,HXP,1);Hg(D,73,Q.Dc);Hg(D,74,Q.Un);Hg(D,75,
Q.qw);Hg(D,76,Q.JYO);r3(D,79,Q.bu,jqh,3)};
$C4=function(D,Q){if(Q.videoFormatCapabilities)for(var m=0;m<Q.videoFormatCapabilities.length;m++)r3(D,1,Q.videoFormatCapabilities[m],egk,1);if(Q.audioFormatCapabilities)for(m=0;m<Q.audioFormatCapabilities.length;m++)r3(D,2,Q.audioFormatCapabilities[m],vb4,1);r3(D,4,Q.perPlaybackAttributes,OXP,3);Hg(D,5,Q.hdrModeBitmask)};
egk=function(D,Q){Hg(D,1,Q.videoCodec);Hg(D,3,Q.maxHeight);Hg(D,4,Q.maxWidth);Hg(D,11,Q.maxFramerate);Hg(D,12,Q.maxBitrateBps);x4(D,15,Q.is10BitSupported)};
vb4=function(D,Q){Hg(D,1,Q.audioCodec);Hg(D,2,Q.numChannels);Hg(D,3,Q.maxBitrateBps);Hg(D,6,Q.spatialCapabilityBitmask)};
OXP=function(D,Q){if(Q.itagDenylist)for(var m=0;m<Q.itagDenylist.length;m++)Hg(D,1,Q.itagDenylist[m])};
kV=function(D,Q){r3(D,1,Q.clientInfo,YXr,3);Xa(D,2,Q.tX);Xa(D,3,Q.playbackCookie);Xa(D,4,Q.bx);if(Q.gz)for(var m=0;m<Q.gz.length;m++)r3(D,5,Q.gz[m],aM$,3);if(Q.f$)for(m=0;m<Q.f$.length;m++)Hg(D,6,Q.f$[m]);Si(D,7,Q.erx);r3(D,8,Q.gU,A1k,3)};
pR9=function(D,Q){Hg(D,1,Q.QGq);Hg(D,2,Q.Ufq)};
xC6=function(D,Q){var m=Q.code;m!==void 0&&(U$(D,8),U$(D,m<<1^m>>31));Si(D,2,Q.message)};
XRj=function(D,Q){Hg(D,1,Q.clientState);r3(D,2,Q.qJ9,pR9,1)};
A1k=function(D,Q){Xa(D,1,Q.Mkz);r3(D,2,Q.Xsv,xC6,3);r3(D,3,Q.coldStartInfo,XRj,3)};
aM$=function(D,Q){Hg(D,1,Q.type);Xa(D,2,Q.value)};
YXr=function(D,Q){Si(D,1,Q.hl);Si(D,12,Q.deviceMake);Si(D,13,Q.deviceModel);Hg(D,16,Q.clientName);Si(D,17,Q.clientVersion);Si(D,18,Q.osName);Si(D,19,Q.osVersion)};
SX_=function(D,Q){Si(D,1,Q.name);Si(D,2,Q.value)};
RN=function(D,Q){Si(D,1,Q.url);if(Q.WJ)for(var m=0;m<Q.WJ.length;m++)r3(D,2,Q.WJ[m],SX_,3);Xa(D,3,Q.postBody);x4(D,4,Q.Nic);x4(D,6,Q.nJ)};
wRr=function(D,Q){Xa(D,2,Q.Du);Xa(D,5,Q.encryptedClientKey);Xa(D,6,Q.iv);Xa(D,7,Q.GZ);x4(D,10,Q.oV9);x4(D,13,Q.hs);x4(D,14,Q.IS);Xa(D,16,Q.SN0);x4(D,17,Q.NaO)};
r17=function(D){return{MV:E$(D,1),httpStatus:E$(D,2),body:Bg(D,4)}};
k14=function(D,Q){Si(D,1,Q.token)};
G1j=function(D){return{token:w3(D,1)}};
M17=function(D){return{iM:E$(D,1),J8F:E$(D,2)}};
QDj=function(D,Q){r3(D,1,Q.S0,wO,3);if(Q.Rf)for(var m=0;m<Q.Rf.length;m++)r3(D,2,Q.Rf[m],JL,3);if(Q.KM)for(m=0;m<Q.KM.length;m++)r3(D,3,Q.KM[m],IMP,3);Xa(D,5,Q.videoPlaybackUstreamerConfig);if(Q.AT)for(m=0;m<Q.AT.length;m++)r3(D,6,Q.AT[m],c1n,3);if(Q.GG)for(m=0;m<Q.GG.length;m++)r3(D,16,Q.GG[m],JL,3);if(Q.XF)for(m=0;m<Q.XF.length;m++)r3(D,17,Q.XF[m],JL,3);if(Q.sU)for(m=0;m<Q.sU.length;m++)r3(D,18,Q.sU[m],JL,3);r3(D,19,Q.Kg,kV,3);r3(D,21,Q.iG,U5,3);Hg(D,22,Q.XG);Hg(D,23,Q.PA);if(Q.M0)for(m=0;m<Q.M0.length;m++)r3(D,
24,Q.M0[m],U5,3);if(Q.Qu)for(m=0;m<Q.Qu.length;m++)r3(D,1E3,Q.Qu[m],DW7,3)};
c1n=function(D,Q){r3(D,1,Q.formatId,JL,3);Hg(D,2,Q.ML);Hg(D,3,Q.sequenceNumber);r3(D,4,Q.YD,ln,1);Hg(D,5,Q.nC);Hg(D,6,Q.Kz)};
U5=function(D,Q){if(Q.PE)for(var m=0;m<Q.PE.length;m++)Si(D,1,Q.PE[m]);Xa(D,2,Q.adsConfig);Si(D,3,Q.tj);Hg(D,4,Q.rI);Hg(D,5,Q.y3);Si(D,6,Q.je);Si(D,7,Q.cuepointId);Hg(D,8,Q.Iz)};
DW7=function(D,Q){if(Q.Rf)for(var m=0;m<Q.Rf.length;m++)r3(D,1,Q.Rf[m],JL,3);if(Q.KM)for(m=0;m<Q.KM.length;m++)r3(D,2,Q.KM[m],IMP,3);Si(D,3,Q.clipId)};
g.H6=function(D,Q){r3(D,1,Q.S0,wO,3);Xa(D,3,Q.videoPlaybackUstreamerConfig);r3(D,5,Q.Kg,kV,3);r3(D,6,Q.iG,U5,3)};
WFj=function(D,Q){Si(D,1,Q.cpn);Hg(D,2,Q.sequenceNumber);Si(D,3,Q.serializedWatchEndpointLoggingContext);if(Q.decoderInfo)for(var m=0;m<Q.decoderInfo.length;m++)r3(D,6,Q.decoderInfo[m],mWm,3);Si(D,9,Q.playerResponseCpn);Hg(D,10,Q.transitionStitchType);Hg(D,12,Q.timestampOffsetMsecs);Hg(D,15,Q.remoteControlMode);if(Q.remoteConnectedDevices)for(m=0;m<Q.remoteConnectedDevices.length;m++)r3(D,16,Q.remoteConnectedDevices[m],Pun,3);Xa(D,17,Q.serializedHouseBrandPlayerServiceLoggingContext)};
mWm=function(D,Q){Hg(D,1,Q.elapsedTimeMs);Si(D,3,Q.videoDecoderName)};
Pun=function(D,Q){Hg(D,1,Q.deviceInterface);Si(D,2,Q.deviceVersion);x4(D,3,Q.isSleeping)};
sD4=function(D){return{OC:k4(D,1,ish),trackType:E$(D,2),Zj:E$(D,3),timeRange:k4(D,4,UC9)}};
ish=function(D){return{type:E$(D,1),event:E$(D,2),pxv:OR$(D,3),dV:OR$(D,4),M$:w3(D,5),identifier:w3(D,6),nU:E$(D,9)}};
LFu=function(D){return{first:E$(D,1),yh:E$(D,2)}};
uoh=function(D){return{bitrate:E$(D,6),width:E$(D,7),height:E$(D,8),fps:E$(D,25),averageBitrate:E$(D,31),audioSampleRate:E$(D,45),audioChannels:E$(D,46),qualityOrdinal:E$(D,56)}};
Kt=function(D){return{itagDenylist:JP(D,1)}};
zk$=function(D){return{a$v:E$(D,1),itag:w3(D,3),TI:k4(D,4,dWr),lmt:E$(D,5),crT:E$(D,7),xtags:w3(D,15),HhW:k4(D,23,tY4),V8:k4(D,34,Kt)}};
dWr=function(D){return{iv:Bg(D,5),qt:g3(D,7)}};
bs9=function(D){return{Dp:JP(D,2),videoId:w3(D,3),Sa:E$(D,4)}};
tY4=function(D){return{videoId:w3(D,2)}};
q9k=function(D){return{Y1:E$(D,3),FE:E$(D,4),Ix:E$(D,5),CtF:g3(D,8),SJq:E$(D,10),M7:E$(D,12),Eu:E$(D,13),LC:E$(D,14),mj:E$(D,15),SS:E$(D,16)}};
Cu_=function(D){return{targetAudioReadaheadMs:E$(D,1),targetVideoReadaheadMs:E$(D,2),backoffTimeMs:E$(D,4),playbackCookie:Bg(D,7),videoId:w3(D,8)}};
oB7=function(D){return{minBandwidthBytesPerSec:E$(D,1),minReadaheadMs:E$(D,2)}};
fc9=function(D){return{startMinReadaheadPolicy:lo(D,1,oB7),resumeMinReadaheadPolicy:lo(D,2,oB7)}};
VY6=function(D){return{label:w3(D,1),text:w3(D,2)}};
NE7=function(D){return{videoId:w3(D,1),formatId:k4(D,2,IN),debugInfo:lo(D,3,VY6)}};
yFh=function(D){return{eA:lo(D,1,NE7)}};
Zs7=function(D){return{c8:E$(D,1),eS:E$(D,2),minReadaheadMs:E$(D,3)}};
FFu=function(D){return{hW:E$(D,1),items:lo(D,2,Zs7),Hj:E$(D,3)}};
TEP=function(D){return{token:w3(D,1),videoId:w3(D,2)}};
hkP=function(D){return{Dg:E$(D,1)}};
nBn=function(D){return{HR:w3(D,1),action:E$(D,2),Zz:k4(D,3,hkP)}};
jk=function(D){return{U8:E$(D,1),qd:E$(D,2),seekSource:E$(D,3)}};
v6=function(D,Q,m,P,W,L,u,t,z,b){this.width=D;this.height=Q;this.C=t;this.quality=L||$V(D,Q);this.qualityOrdinal=g.ek[this.quality];this.fps=m||0;this.stereoLayout=!W||P!=null&&P!=="UNKNOWN"&&P!=="RECTANGULAR"?0:W;this.projectionType=P?P==="EQUIRECTANGULAR"&&W===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":P:"UNKNOWN";(D=u)||(D=g.ek[this.quality],D===0?D="Auto":(Q=this.fps,m=this.projectionType,D=D.toString()+(m==="EQUIRECTANGULAR"||m==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||m==="MESH"?"s":"p")+(Q>55?"60":
Q>49?"50":Q>39?"48":"")));this.qualityLabel=D;this.S=z||"";this.primaries=b||""};
$V=function(D,Q){var m=Math.max(D,Q);D=Math.min(D,Q);Q=O5[0];for(var P=0;P<O5.length;P++){var W=O5[P],L=g.ek[W];if(m>=Math.floor(L*16/9)*1.3||D>=L*1.3)return Q;Q=W}return"tiny"};
AL=function(D,Q,m){m=m===void 0?{}:m;this.id=D;this.mimeType=Q;m.yF>0||(m.yF=16E3);Object.assign(this,m);D=g.T(this.id.split(";"));this.itag=D.next().value;this.S=D.next().value;this.containerType=YV(Q);this.FT=aN[this.itag]||""};
pt=function(D){return D.FT==="9"||D.FT==="("||D.FT==="9h"||D.FT==="(h"};
EBn=function(D){return D.FT==="H"||D.FT==="h"};
xV=function(D){return D.FT==="9h"||D.FT==="(h"};
gB7=function(D){return!!D.Ln&&!!D.Ln.fairplay&&(D.FT==="("||D.FT==="(h"||D.FT==="A"||D.FT==="MEAC3")||XO&&!!D.Ln&&D.FT==="1e"};
Sk=function(D){return D.FT==="1"||D.FT==="1h"||XO&&D.FT==="1e"};
rO=function(D){return D.FT==="mac3"||D.FT==="meac3"||D.FT==="m"||D.FT==="i"};
Ga=function(D){return D.FT==="MAC3"||D.FT==="MEAC3"||D.FT==="M"||D.FT==="I"};
g.Mh=function(D){return D.containerType===1};
BE7=function(D){return D.FT==="("||D.FT==="(h"||D.FT==="H"||XO&&D.FT==="1e"};
c6=function(D){return D.mimeType==="application/x-mpegURL"};
g.Qh=function(D,Q){return{itag:+D.itag,lmt:Q?0:D.lastModified,xtags:D.S||""}};
w_r=function(D){var Q=navigator.mediaCapabilities;if(Q==null||!Q.decodingInfo||D.FT==="f")return Promise.resolve();var m={type:D.audio&&D.video?"file":"media-source"};D.video&&(m.video={contentType:D.mimeType,width:D.video.width||640,height:D.video.height||360,bitrate:D.yF*8||1E6,framerate:D.video.fps||30});D.audio&&(m.audio={contentType:D.mimeType,channels:""+(D.audio.numChannels||2),bitrate:D.yF*8||128E3,samplerate:D.audio.sampleRate||44100});return Q.decodingInfo(m).then(function(P){D.C=P})};
mL=function(D){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(D)};
PE=function(D){return/(vp9|vp09|vp8|avc1|av01)/.test(D)};
WE=function(D){return D.includes("vtt")||D.includes("text/mp4")};
YV=function(D){return D.indexOf("/mp4")>=0?1:D.indexOf("/webm")>=0?2:D.indexOf("/x-flv")>=0?3:D.indexOf("/vtt")>=0?4:0};
is=function(D,Q,m,P,W,L,u){var t=new B6;Q in g.ek||(Q="small");Q==="light"&&(Q="tiny");P&&W?(W=Number(W),P=Number(P)):(W=g.ek[Q],P=Math.round(W*16/9));L=new v6(P,W,0,null,void 0,Q,L,u);D=unescape(D.replace(/&quot;/g,'"'));return new AL(m,D,{audio:t,video:L})};
L2=function(D){var Q="id="+D.id;D.video&&(Q+=", res="+D.video.qualityLabel);var m,P;return Q+", byterate=("+((m=D.Mh)==null?void 0:m.toFixed(0))+", "+((P=D.yF)==null?void 0:P.toFixed(0))+")"};
us=function(D,Q){return{start:function(m){return D[m]},
end:function(m){return Q[m]},
length:D.length}};
kOu=function(D,Q,m){for(var P=[],W=[],L=0;L<D.length;L++)P.push(D.start(L)),W.push(D.end(L));P.push(Q);W.push(m);P.sort(function(u,t){return u-t});
W.sort(function(u,t){return u-t});
return us(P,W)};
dM=function(D,Q,m){Q=Q===void 0?",":Q;m=m===void 0?D?D.length:0:m;var P=[];if(D)for(m=Math.max(D.length-m,0);m<D.length;m++)P.push(D.start(m).toFixed(3)+"-"+D.end(m).toFixed(3));return P.join(Q)};
t$=function(D,Q){if(!D)return-1;try{for(var m=0;m<D.length;m++)if(D.start(m)<=Q&&D.end(m)>=Q)return m}catch(P){}return-1};
z5=function(D,Q){return t$(D,Q)>=0};
JFh=function(D,Q){if(!D)return NaN;Q=t$(D,Q);return Q>=0?D.start(Q):NaN};
bs=function(D,Q){if(!D)return NaN;Q=t$(D,Q);return Q>=0?D.end(Q):NaN};
qG=function(D){return D&&D.length?D.end(D.length-1):NaN};
C2=function(D){return qG(D)>0};
oQ=function(D,Q){D=bs(D,Q);return D>=0?D-Q:0};
f2=function(D,Q,m){for(var P=[],W=[],L=0;L<D.length;L++)D.end(L)<Q||D.start(L)>m||(P.push(Math.max(Q,D.start(L))-Q),W.push(Math.min(m,D.end(L))-Q));return us(P,W)};
Vh=function(D,Q,m,P){g.iR.call(this);var W=this;this.D$=D;this.start=Q;this.end=m;this.isActive=P;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.bZ={error:function(){!W.VF()&&W.isActive&&W.publish("error",W)},
updateend:function(){!W.VF()&&W.isActive&&W.publish("updateend",W)}};
this.D$.MK(this.bZ);this.pg=this.isActive};
yh=function(D,Q,m,P,W,L){g.iR.call(this);var u=this;this.zo=D;this.WB=Q;this.id=m;this.containerType=P;this.FT=W;this.ri=L;this.D6=this.RQ=this.Il=null;this.RY=!1;this.appendWindowStart=this.timestampOffset=0;this.wZ=us([],[]);this.wj=!1;this.Bh=[];this.uP=NG?[]:void 0;this.handler=function(z){return u.publish(z.type,u)};
var t;if((t=this.zo)==null?0:t.addEventListener)this.zo.addEventListener("updateend",this.handler),this.zo.addEventListener("error",this.handler)};
Zj=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
Fb=function(D,Q){this.NB=D;this.S=Q===void 0?!1:Q;this.C=!1};
T5=function(D,Q,m){m=m===void 0?!1:m;g.v.call(this);this.mediaElement=D;this.cq=Q;this.isView=m;this.N=0;this.B=!1;this.J=!0;this.j=0;this.callback=null;this.Z=!1;this.cq||(this.WB=this.mediaElement.nj());this.events=new g.gO(this);g.O(this,this.events);this.T=new Fb(this.cq?window.URL.createObjectURL(this.cq):this.WB.webkitMediaSourceURL,!0);D=this.cq||this.WB;nU(this.events,D,["sourceopen","webkitsourceopen"],this.QIc);nU(this.events,D,["sourceclose","webkitsourceclose"],this.bn9);this.U={updateend:this.cK}};
lc7=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Ic4=function(D,Q){h$(D)?g.Fd(function(){Q(D)}):D.callback=Q};
Rkh=function(D,Q,m){if(n2){var P;Es(D.mediaElement,{l:"mswssb",sr:(P=D.mediaElement.Ch)==null?void 0:P.KU()},!1);Q.MK(D.U,D);m.MK(D.U,D)}D.S=Q;D.C=m;g.O(D,Q);g.O(D,m)};
gM=function(D){return!!D.S||!!D.C};
h$=function(D){try{return BE(D)==="open"}catch(Q){return!1}};
BE=function(D){if(D.cq)return D.cq.readyState;switch(D.WB.webkitSourceState){case D.WB.SOURCE_OPEN:return"open";case D.WB.SOURCE_ENDED:return"ended";default:return"closed"}};
wM=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
UWw=function(D){h$(D)&&(D.cq?D.cq.endOfStream():D.WB.webkitSourceEndOfStream(D.WB.EOS_NO_ERROR))};
Hsw=function(D,Q,m,P){if(!D.S||!D.C)return null;var W=D.S.isView()?D.S.D$:D.S,L=D.C.isView()?D.C.D$:D.C,u=new T5(D.mediaElement,D.cq,!0);u.T=D.T;Rkh(u,new Vh(W,Q,m,P),new Vh(L,Q,m,P));h$(D)||D.S.In(D.S.m2());return u};
KF7=function(D){var Q;(Q=D.S)==null||Q.dS();var m;(m=D.C)==null||m.dS();D.J=!1};
kS=function(){var D=this;this.B_=this.IC=Z9j;this.promise=new g.BN(function(Q,m){D.IC=Q;D.B_=m})};
J$=function(){g.v.call(this);this.z6=!1;this.NB=null;this.U=this.N=!1;this.B=new g.zt;this.Ch=null;g.O(this,this.B)};
ls=function(D){D=D.Yr();return D.length<1?NaN:D.end(D.length-1)};
jDP=function(D){!D.C&&lc7()&&(D.T?D.T.then(function(){return jDP(D)}):D.Nb()||(D.C=D.Hk()))};
$Wk=function(D){D.C&&(D.C.dispose(),D.C=void 0)};
Es=function(D,Q,m){var P;((P=D.Ch)==null?0:P.xl())&&D.Ch.dc("rms",Q,m===void 0?!1:m)};
ek9=function(D,Q,m){D.isPaused()||D.getCurrentTime()>Q||m>10||(D.play(),g.tl(function(){ek9(D,D.getCurrentTime(),m+1)},500))};
vBP=function(D,Q){D.NB&&D.NB.equals(Q)||(D.NB&&D.NB.dispose(),D.NB=Q)};
IQ=function(D){return oQ(D.jb(),D.getCurrentTime())};
Os4=function(D,Q){if(D.Bi()===0||D.hasError())return!1;var m=D.getCurrentTime()>0;return Q>=0&&(D=D.Yr(),D.length||!m)?z5(D,Q):m};
RQ=function(D){D.Nb()&&(D.Ch&&D.Ch.XN("rs_s"),aW&&D.getCurrentTime()>0&&D.seekTo(0),D.F1(),D.load(),vBP(D,null));delete D.T};
Us=function(D){switch(D.X6()){case 2:return"progressive.net.retryexhausted";case 3:return D=D.tN(),(D==null?0:D.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Y9j&&(D==null?0:D.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.HE=function(D,Q,m){this.YP=Q===void 0?null:Q;this.seekSource=m===void 0?null:m;this.state=D||64};
K2=function(D,Q,m){m=m===void 0?!1:m;return acn(D,Q.getCurrentTime(),(0,g.T3)(),IQ(Q),m)};
jm=function(D,Q,m,P){if(!(Q===D.state&&m===D.YP&&P===D.seekSource||Q!==void 0&&(Q&128&&!m||Q&2&&Q&16))){var W;if(W=Q)W=Q||D.state,W=!!(W&16||W&32);D=new g.HE(Q,m,W?P?P:D.seekSource:null)}return D};
$S=function(D,Q,m){return jm(D,D.state|Q,null,m===void 0?null:m)};
em=function(D,Q){return jm(D,D.state&~Q,null,null)};
vE=function(D,Q,m,P){return jm(D,(D.state|Q)&~m,null,P===void 0?null:P)};
g.X=function(D,Q){return!!(D.state&Q)};
g.Os=function(D,Q){return Q.state===D.state&&Q.YP===D.YP};
YS=function(D){return D.isPlaying()&&!g.X(D,16)&&!g.X(D,32)};
aQ=function(D){return g.X(D,128)?-1:g.X(D,2)?0:g.X(D,2048)?3:g.X(D,64)?-1:g.X(D,1)&&!g.X(D,32)?3:g.X(D,8)?1:g.X(D,4)?2:-1};
p2=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B){g.v.call(this);var J=this;this.Rn=D;this.slot=Q;this.layout=m;this.eD=P;this.BY=W;this.qv=L;this.Hq=u;this.Jx=t;this.vY=z;this.lG=b;this.position=C;this.N=f;this.Ry=V;this.fq=N;this.f6=h;this.context=B;this.C6=!0;this.J=!1;this.Er="not_rendering";this.C=!1;this.T=new Lt;D=G_(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(m.Ij,this.eD,D,m.layoutId);var k;D=((k=A$(this))==null?void 0:k.progressCommands)||[];this.B=new pih(z,
D,m.layoutId,function(){return J.Zy()});
this.S=new TiP({adCpn:this.layout.layoutId,o4:B.o4,mq:this.fq,ri:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
xS=function(D){return{layoutId:D.P3(),Zc:D.fq,Bx:D.qv.get(),Gq:D.xV()}};
Xb=function(D,Q){return Q.layoutId!==D.layout.layoutId?(D.Rn.hN(D.slot,Q,new SB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+D.layout.layoutId+("and LayoutType: "+D.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
Sm=function(D){D.Er="rendering_start_requested";D.lG(-1)};
A$=function(D){return G_(D.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
AFh=function(D){bu("Received layout exit signal when not in layout exit flow.",D.slot,D.layout)};
p_7=function(D){var Q;return((Q=rM(D.qv.get(),2))==null?void 0:Q.clientPlaybackNonce)||""};
G5=function(D,Q){switch(Q){case "normal":D.ZG("complete");break;case "skipped":D.ZG("skip");break;case "abandoned":ha(D.ph,"impression")&&D.ZG("abandon")}};
MG=function(D,Q){D.J||(Q=new g.qW(Q.state,new g.HE),D.J=!0);return Q};
cE=function(D,Q){ms(Q)?D.lG(1):g.oD(Q,4)&&!g.oD(Q,2)&&D.oM();Cs(Q,4)<0&&!(Cs(Q,2)<0)&&D.yu()};
xWu=function(D){D.position===0&&(D.Jx.get(),D=G_(D.layout.clientMetadata,"metadata_type_ad_placement_config").kind,D={adBreakType:DQ(D)},kY("ad_bl"),g.Jd(D))};
QN=function(D,Q){Fj(D.ph,Q,!D.C)};
S97=function(D){var Q;return(((Q=A$(D))==null?void 0:Q.progressCommands)||[]).findIndex(function(m){return!!g.A(m==null?void 0:m.command,X_j)})!==-1};
mS=function(D,Q){var m=G_(D.clientMetadata,"metadata_type_eligible_for_ssap");return m===void 0?(bu("Expected SSAP eligibility in PlayerBytes factory",D),!1):Q.xV(m)};
PB=function(D,Q){if(!eq(Q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(D){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return bu("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return bu("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:D}),3;default:ty(D,"unknown layoutExitReason")}};
rF9=function(D){bu("getExitReason: unexpected reason",void 0,void 0,{reason:D})};
WB=function(D,Q){if(eq(Q.get(),"html5_ssap_pass_transition_reason"))switch(D){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return rF9(D),"abandoned";case 3:case 1:return rF9(D),"error";default:ty(D,"unexpected transition reason")}else switch(D){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return bu("getExitReason: unexpected reason",void 0,void 0,{reason:D}),"error";default:ty(D,"unexpected transition reason")}};
g.i1=function(D,Q,m){IH(D,m)||Ul(D,Q,m);IH(D,"video_to_ad")||Ul(D,Q,"video_to_ad");IH(D,"ad_to_video")||Ul(D,Q,"ad_to_video");IH(D,"ad_to_ad")||Ul(D,Q,"ad_to_ad")};
sJ=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J){p2.call(this,D,Q,m,P,W,L,u,t,b,q,C,f,V,N,h,B,J);var k=this;this.jt=z;this.dX=C;this.pP=!0;this.H8=this.NL=0;this.Ng=R$(function(){Nij(xS(k));k.Rn.XA(k.slot,k.layout)});
this.Lu=R$(function(){y1w(xS(k));k.Er!=="rendering_stop_requested"&&k.dX(k);k.layoutExitReason?k.Rn.Om(k.slot,k.layout,k.layoutExitReason):AFh(k)});
this.timer=new g.Ur(200);this.timer.listen("tick",function(){k.mu()});
g.O(this,this.timer)};
u1=function(D){D.H8=Date.now();LN(D,D.NL);D.timer.start()};
GO7=function(D){D.NL=D.Zy();D.u8(D.NL/1E3,!0);LN(D,D.NL)};
LN=function(D,Q){Q={current:Q/1E3,duration:D.Zy()/1E3};D.jt.get().wg("onAdPlaybackProgress",Q)};
dD=function(D){sJ.call(this,D.Rn,D.slot,D.qp,D.eD,D.BY,D.qv,D.Hq,D.Jx,D.jt,D.vY,D.lG,D.dX,D.sT,D.xG,D.Ry,D.fq,D.f6,D.context)};
tm=function(D){sJ.call(this,D.Rn,D.slot,D.qp,D.eD,D.BY,D.qv,D.Hq,D.Jx,D.jt,D.vY,D.lG,D.dX,D.sT,D.xG,D.Ry,D.fq,D.f6,D.context)};
zA=function(){tm.apply(this,arguments)};
MYr=function(D){return mS(D.slot,D.Ry.get())?new zA(D):new dD(D)};
CN=function(D){p2.call(this,D.callback,D.slot,D.qp,D.eD,D.BY,D.qv,D.Hq,D.Jx,D.vY,D.lG,D.dX,D.sT,D.xG,D.Ry,D.fq,D.f6,D.context);var Q=this;this.adCpn="";this.jd=this.m5=0;this.Ng=R$(function(){Nij(xS(Q));Q.Rn.XA(Q.slot,Q.layout)});
this.Lu=R$(function(){y1w(xS(Q));Q.Er!=="rendering_stop_requested"&&Q.dX(Q);Q.layoutExitReason?Q.Rn.Om(Q.slot,Q.layout,Q.layoutExitReason):AFh(Q)});
this.ES=D.ES;this.bE=D.bE;this.nM=D.nM;this.jt=D.jt;this.Ya=D.Ya;this.dX=D.dX;if(!this.xV()){eq(this.Ry.get(),"html5_disable_media_load_timeout")||(this.HG=new g.pJ(function(){Q.Ab("load_timeout",new SB("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
D=b1(this.Ry.get());var m=qg(this.Ry.get());D&&m&&(this.Wg=new g.pJ(function(){var P=G_(Q.layout.clientMetadata,"metadata_type_preload_player_vars");P&&Q.bE.get().D.preloadVideoByPlayerVars(P,2,300)}))}};
Dzk=function(D,Q){var m=G_(Q.clientMetadata,"metadata_type_ad_video_id"),P=G_(Q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");m&&P&&D.Ya.get().D.G().u0.add(m,{IY:P});(Q=G_(Q.clientMetadata,"metadata_type_sodar_extension_data"))&&W0k(D.ES.get(),Q);cFh(D.Hq.get(),!1)};
QHw=function(D){cFh(D.Hq.get(),!0);var Q;((Q=D.shrunkenPlayerBytesConfig)==null?0:Q.shouldRequestShrunkenPlayerBytes)&&D.Hq.get().Wj(!1)};
mz7=function(D){return new oj(D)};
fN=function(){CN.apply(this,arguments)};
oj=function(){fN.apply(this,arguments)};
Pc7=function(D){return MYr(Object.assign({},D,{Rn:D.callback,lG:function(){}}))};
W4$=function(D){return new CN(Object.assign({},D,{lG:function(Q){D.jt.get().wg("onAdIntroStateChange",Q)}}))};
ic7=function(D){function Q(m){D.jt.get().bL(m)}
return mS(D.slot,D.Ry.get())?mz7(Object.assign({},D,{lG:Q})):new CN(Object.assign({},D,{lG:Q}))};
VN=function(D){for(var Q=D.qp,m=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],P=g.T(N0()),W=P.next();!W.done;W=P.next())m.push(W.value);if(vX(Q,{Nj:m,FZ:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Pc7(D);Q=D.qp;m=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];P=g.T(N0());for(W=P.next();!W.done;W=P.next())m.push(W.value);if(vX(Q,{Nj:m,FZ:["LAYOUT_TYPE_MEDIA"]}))return pY(D.qp.clientMetadata,"metadata_type_ad_intro")?W4$(D):ic7(D)};
L4h=function(D){var Q=G_(D.clientMetadata,"metadata_type_ad_placement_config").kind,m=G_(D.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:D.layoutId,adType:sHw(m),adBreakType:DQ(Q)}};
DQ=function(D){switch(D){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"}};
sHw=function(D){switch(D){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
ufr=function(D){try{return new Ng(D.zA,D.slot,D.layout,D.qj,D.ev,D.qv,D.De,D.bE,D.St,D.Hq,D.qHx,D)}catch(Q){}};
Ng=function(D,Q,m,P,W,L,u,t,z,b,q,C){g.v.call(this);this.zA=D;this.slot=Q;this.layout=m;this.qj=P;this.ev=W;this.qv=L;this.De=u;this.bE=t;this.St=z;this.Hq=b;this.params=C;this.C6=!0;D=VN(q);if(!D)throw Error("Invalid params for sublayout");this.fM=D};
dz4=function(){this.S=1;this.C=new Lt};
yN=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){g.v.call(this);this.callback=D;this.qv=Q;this.De=m;this.bE=P;this.Hq=W;this.uQ=L;this.Jx=u;this.By=t;this.slot=z;this.layout=b;this.qj=q;this.P1=C;this.St=f;this.Ry=V;this.C6=!0;this.P0=!1;this.yP=[];this.Nx=-1;this.M6=!1;this.Tu=new dz4};
tz9=function(D){var Q;return(Q=D.layout.Xl)!=null?Q:G_(D.layout.clientMetadata,"metadata_type_sub_layouts")};
ZQ=function(D){return{Bx:D.qv.get(),Zc:!1,Gq:D.xV()}};
zn9=function(D,Q,m){if(D.Jd()===D.yP.length-1){var P,W;bu("Unexpected skip requested during the last sublayout",(P=D.Cd())==null?void 0:P.AU(),(W=D.Cd())==null?void 0:W.A0(),{requestingSlot:Q,requestingLayout:m})}};
bcj=function(D,Q,m){return m.layoutId!==Fg(D,Q,m)?(bu("onSkipRequested for a PlayerBytes layout that is not currently active",D.AU(),D.A0()),!1):!0};
qlw=function(D){D.Jd()===D.yP.length-1&&bu("Unexpected skip with target requested during the last sublayout")};
Ccw=function(D,Q,m){return m.renderingContent===void 0&&m.layoutId!==Fg(D,Q,m)?(bu("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",D.AU(),D.A0(),{requestingSlot:Q,requestingLayout:m}),!1):!0};
oYr=function(D,Q,m,P){var W=G_(Q.A0().clientMetadata,"metadata_type_ad_pod_skip_target");if(W&&W>0&&W<D.yP.length){a:{for(var L=W;L<D.yP.length;){if(W===G_(D.yP[L].A0().clientMetadata,"metadata_type_ad_pod_skip_index")){D=L;break a}L++}D=void 0}if(D===void 0)bu("Skip-to-index was requested but target index was not found",Q.AU(),Q.A0(),{requestingSlot:m,requestingLayout:P});else return D}else bu("Invalid ad pod skip target index",Q.AU(),Q.A0(),{requestingSlot:m,requestingLayout:P})};
Fg=function(D,Q,m){var P=G_(D.A0().clientMetadata,"metadata_type_linked_in_player_layout_id");return P?P:(bu("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",D.AU(),D.A0(),{requestingSlot:Q,requestingLayout:m}),null)};
Vzj=function(D,Q,m,P){fi6(D,Q,m,"skipped",function(){TA(D,P)})};
fi6=function(D,Q,m,P,W){if(!D.M6){var L=D.Cd();if(L){L.A0().layoutId!==m.layoutId&&bu("SubLayout mismatch in exitSubLayout",Q,m,{exitingSubLayout:m.layoutId,activeSubLayout:L.A0().layoutId});D.M6=!0;L.II(L.A0(),P);L=Object.assign({},ZQ(D),{layoutId:m.layoutId,layoutExitReason:P});var u=L.layoutId,t=L.layoutExitReason;if(L.Gq){var z={};bn(L.Bx,"wrsx",(z.xc=u,z.ler=t,z.ctp=za(u),z))}D.G2(Q,m,P);D.M6=!1;D.z_?(D.z_(),D.xV()||hm(D.Jx.get())):W()}else bu("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
Q,m)}};
TA=function(D,Q){if(D.Jd()===D.yP.length-1)D.Nx++,nN(D.P1,D.layout,"normal"),D.xV()||hm(D.Jx.get());else a:{if(D.Jd()===-1&&(D.callback.XA(D.slot,D.layout),Q>0)){bu("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",D.slot,D.layout,{indexToPlay:Q,layoutId:D.layout.layoutId});break a}D.Nx=Q;Q=D.Cd();if(D.Jd()>0&&!D.xV()){var m=D.Jx.get();m.C=!1;var P={};m.S&&m.videoId&&(P.cttAuthInfo={token:m.S,videoId:m.videoId});lc("ad_to_ad",P)}m=g.A(Q.A0().renderingContent,cX);if(m==null?0:
m.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var W;m=!((W=D.uQ.get().oBc.get(m.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&W)}else m=!1;m?TA(D,D.Jd()+1):D.t7(Q)}};
EJ=function(D){yN.call(this,D.zA,D.qv,D.De,D.bE,D.Hq,D.uQ,D.Jx,D.By,D.slot,D.layout,D.qj,D.P1,D.St,D.Ry)};
N6_=function(D){(D=D.Cd())&&D.XE()};
gD=function(D){yN.call(this,D.zA,D.qv,D.De,D.bE,D.Hq,D.uQ,D.Jx,D.By,D.slot,D.layout,D.qj,D.P1,D.St,D.Ry);this.qm=void 0};
yd7=function(D,Q){D.iY()&&!dO(D.Tu.C)||D.callback.Om(D.slot,D.layout,Q)};
BB=function(D){return eq(D.Ry.get(),"html5_ssap_pass_transition_reason")};
Zc7=function(D,Q,m){Q.qO().currentState<2&&(m=WB(m,D.Ry),Q.II(Q.A0(),m));m=Q.qO().S;D.G2(D.slot,Q.A0(),m)};
F47=function(D,Q){if(D.Tu.C.currentState<2){var m=WB(Q,D.Ry);m==="error"?D.callback.hN(D.slot,D.layout,new SB("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):nN(D.P1,D.layout,m)}};
wD=function(D,Q,m){Q.qO().currentState>=2||(Q.II(Q.A0(),m),dO(Q.qO())&&(Z1(D.By,D.slot,Q.A0(),m),D.qm=void 0))};
T6k=function(D,Q){D.Tu.S===2&&Q!==D.Hi()&&bu("onClipEntered: unknown cpn",D.slot,D.layout,{cpn:Q})};
hn$=function(D,Q){var m=D.Cd();if(m){var P=m.A0().layoutId,W=D.Jd()+1;D.iY()?wD(D,m,Q):m.II(m.A0(),Q);W>=0&&W<D.yP.length?(m=D.yP[W].A0().layoutId,BB(D)&&(["normal","skipped"].includes(Q)||bu("exitActiveLayoutAndPlayNext: unexpected exit reason",D.slot,D.layout,{exitReason:Q})),D.De.get().finishSegmentByCpn(P,m,PB(Q,D.Ry))):W===D.yP.length?nN(D.P1,D.layout,"normal"):bu("unexpected index",D.slot,D.layout,{index:W})}else bu("exitActiveLayoutAndPlayNext: no active adapter",D.slot,D.layout)};
nYn=function(D,Q){bu(Q+": undefined adapter",D.slot,D.layout)};
EYk=function(D){return mS(D.slot,D.Ry.get())?new gD(D):new EJ(D)};
kw=function(D,Q,m,P,W,L,u){g.v.call(this);this.callback=D;this.bE=Q;this.Hq=m;this.Jx=P;this.fM=W;this.St=L;this.Ry=u;this.C6=!0;this.P0=!1};
gYh=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G){function S(){var b6=VN(Object.assign({},d7,{callback:{XA:D.XA.bind(D),Om:D.Om.bind(D),He:function(){},
hN:D.hN.bind(D)},slot:m,qp:P,dX:function(){nN(u,P,"normal")},
sT:0,xG:1,fq:!0}));return b6?new kw(D,q,f,h,b6,W,R):b6}
function u6(){var b6=Object.assign({},d7,{callback:{XA:function(){},
Om:function(){},
He:function(){return void nN(u,P,"normal")},
hN:function(){}},
slot:m,qp:P,dX:function(){},
sT:0,xG:1,fq:!0});return ufr({zA:D,slot:m,layout:P,qj:L,ev:u,qv:C,De:e,bE:q,St:W,Hq:f,qHx:b6,context:a})}
function L9(){var b6,mj=(b6=P.Xl)!=null?b6:G_(P.clientMetadata,"metadata_type_sub_layouts");b6=EYk({zA:D,qv:C,De:e,bE:q,Hq:f,uQ:V,Jx:h,By:Q,slot:m,layout:P,qj:L,P1:u,St:W,Ry:R});for(var kP=[],S$={Aj:0};S$.Aj<mj.length;S$={Aj:S$.Aj},S$.Aj++){var DN=VN(Object.assign({},d7,{callback:{XA:b6.iC.bind(b6),Om:b6.PQ.bind(b6),He:b6.He.bind(b6),hN:b6.ZI.bind(b6)},slot:m,qp:mj[S$.Aj],dX:function(V4){return function(uv){uv.II(mj[V4.Aj],"normal")}}(S$),
sT:S$.Aj,xG:mj.length,fq:!1}));if(!DN)return;kP.push(DN)}b6.yP=kP;return b6}
var d7={eD:t,BY:z,ES:b,bE:q,qv:C,Hq:f,uQ:V,nM:N,Jx:h,jt:B,vY:J,Ya:k,Ry:R,context:a,f6:G};t=vX(P,{Nj:["metadata_type_sub_layouts"],FZ:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||P.Xl!==void 0&&P.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";z=mS(m,R.get())&&vX(P,{Nj:[],FZ:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});b=vX(P,{Nj:[],FZ:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(t)return L9();if(z)return u6();if(b)return S()};
Jm=function(D,Q,m,P,W,L,u,t,z,b){this.callback=D;this.slot=Q;this.layout=m;this.qv=P;this.De=W;this.sC=L;this.Hq=u;this.ph=t;this.eD=z;this.J=b;this.driftRecoveryMs=G_(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.B=G_(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
wIk=function(D){var Q=G_(D.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=G_(D.layout.clientMetadata,"metadata_type_layout_exit_ms");D=D.sC.get();Q=B6w(D.T,Q,m);return Math.min(m,Q!==null?Q:Infinity)};
Ij=function(D,Q){var m;l1(D.eD.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(m=D.qv.get().n2)==null?void 0:m.clientPlaybackNonce,adClientData:D.layout.Ur.adClientDataEntry},Q)})};
Rj=function(D,Q,m,P,W,L,u,t,z,b,q){Jm.call(this,D,Q,m,P,W,L,u,t,z,b);this.T=q;this.C=this.S=null;D=g.T(this.T);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,pY(Q.A0().clientMetadata,"metadata_type_survey_overlay")&&(this.C=Q.A0().layoutId)};
Jd7=function(D,Q){var m=kb9(D,Q);m||bu("Expected subLRA found by layout ID",D.slot,D.layout,{layoutId:Q});D.S={g3:m};m?m.startRendering(m.A0()):Q===D.C&&bu("Failed to find rendering adapter for survey media layout",D.slot,D.layout,{surveyMediaLayoutId:Q})};
kb9=function(D,Q){return Q==null?null:D.T.find(function(m){return m.A0().layoutId===Q})||null};
lih=function(D,Q,m,P,W,L,u,t,z,b){var q=W-P,C,f=((C=D.fulfilledLayout||G_(D.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:G_(C.clientMetadata,"metadata_type_ssdai_ads_config"))||"",V,N;(C=(V=G_(D.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(N=V.current)==null?void 0:N.identifier)||bu("Cue point identifier is undefined",D,Q,z());if(!q)return u.Ma(m,f,2,L,P,W,D.slotId,C),UJ(b,"ads_iraot","slid."+Q.layoutId+";enterMs."+P+";exitMs."+W+";vid."+m.video_id),null;q=
u.tL(m,f,2,L,P,W,D.slotId,C);UJ(b,"ads_atct","slid."+Q.layoutId+";enterMs."+P+";exitMs."+W+";vid."+m.video_id+";pid."+q);if(!q)return bu("Unexpected failure to add to playback timeline",D,Q,z()),null;D=D.slotId;Q=Q.layoutId;q?(t.S.has(q)&&bu("Unexpected remap of timeline playback"),t.S.set(q,{slotId:D,layoutId:Q})):bu("Invalid timeline playback ID");P+L>W&&u.rr(q,W-P);return q};
Ii7=function(D,Q,m){var P=G_(Q.clientMetadata,"metadata_type_sodar_extension_data");if(P)try{W0k(m,P)}catch(W){bu("Unexpected error when loading Sodar",D,Q,{error:W})}};
Rn4=function(D,Q,m,P,W,L,u){HB(D,Q,new g.qW(m,new g.HE),P,W,u,!1,L)};
HB=function(D,Q,m,P,W,L,u,t){u=u===void 0?!0:u;ms(m)&&P6(W,0,null)&&(!ha(D,"impression")&&t&&t(),D.ZG("impression"));ha(D,"impression")&&(g.oD(m,4)&&!g.oD(m,2)&&D.j1("pause"),Cs(m,4)<0&&!(Cs(m,2)<0)&&D.j1("resume"),g.oD(m,16)&&W>=.5&&D.j1("seek"),u&&g.oD(m,2)&&KN(D,m.state,Q,P,W,L))};
KN=function(D,Q,m,P,W,L,u,t,z){ha(D,"impression")&&(L?(L=W-P,L=L>=-1&&L<=2):L=Math.abs(P-W)<=1,jG(D,Q,L?P:W,m,P,u,t&&L),L&&!z&&D.ZG("complete"))};
jG=function(D,Q,m,P,W,L,u){TV(D,m*1E3,u);W<=0||m<=0||(Q==null?0:g.X(Q,16))||(Q==null?0:g.X(Q,32))||(P6(m,W*.25,P)&&(L&&!ha(D,"first_quartile")&&L("first"),D.ZG("first_quartile")),P6(m,W*.5,P)&&(L&&!ha(D,"midpoint")&&L("second"),D.ZG("midpoint")),P6(m,W*.75,P)&&(L&&!ha(D,"third_quartile")&&L("third"),D.ZG("third_quartile")))};
Uz6=function(D,Q){ha(D,"impression")&&D.j1(Q?"fullscreen":"end_fullscreen")};
Hc9=function(D){ha(D,"impression")&&D.j1("clickthrough")};
K44=function(D){D.j1("active_view_measurable")};
jH4=function(D){ha(D,"impression")&&!ha(D,"seek")&&D.j1("active_view_fully_viewable_audible_half_duration")};
$zP=function(D){ha(D,"impression")&&!ha(D,"seek")&&D.j1("active_view_viewable")};
en4=function(D){ha(D,"impression")&&!ha(D,"seek")&&D.j1("audio_audible")};
vYm=function(D){ha(D,"impression")&&!ha(D,"seek")&&D.j1("audio_measurable")};
Oc7=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){this.callback=D;this.slot=Q;this.layout=m;this.De=P;this.ph=W;this.Hq=L;this.aZ=u;this.BY=t;this.ES=z;this.Ry=b;this.eD=q;this.qv=C;this.nM=f;this.pP=!0;this.Um=this.Er=null;this.adCpn=void 0;this.S=!1};
Yl_=function(D,Q,m){var P;UJ(D.eD.get(),"ads_qua","cpn."+G_(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=rM(D.qv.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+Q+";clr."+m)};
air=function(D,Q){var m,P;UJ(D.eD.get(),"ads_imp","cpn."+G_(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=rM(D.qv.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+Q+";skp."+!!g.A((P=G_(D.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:P.skipOrPreviewRenderer,$w))};
eG=function(D){return{enterMs:G_(D.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:G_(D.clientMetadata,"metadata_type_layout_exit_ms")}};
vB=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){Jm.call(this,D,Q,m,P,W,u,t,z,b,C);this.aZ=L;this.ES=q;this.BY=f;this.Ry=V;this.Um=this.Er=null};
Ad$=function(D,Q){var m;UJ(D.eD.get(),"ads_imp","acpn."+((m=rM(D.qv.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+Q)};
pIP=function(D,Q,m){var P;UJ(D.eD.get(),"ads_qua","cpn."+G_(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=rM(D.qv.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+Q+";clr."+m)};
OJ=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a){this.St=D;this.qj=Q;this.P1=m;this.qv=P;this.De=W;this.Hq=L;this.uQ=u;this.eD=t;this.aZ=z;this.sC=b;this.BY=q;this.ES=C;this.bE=f;this.nM=V;this.Jx=N;this.jt=h;this.vY=B;this.Ya=J;this.Ry=k;this.S=R;this.context=e;this.f6=a};
Yw=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k){this.St=D;this.qj=Q;this.P1=m;this.eD=P;this.BY=W;this.ES=L;this.bE=u;this.qv=t;this.Hq=z;this.uQ=b;this.nM=q;this.Jx=C;this.jt=f;this.vY=V;this.Ya=N;this.Ry=h;this.De=B;this.context=J;this.f6=k};
xz7=function(D,Q,m,P){WR.call(this,"survey-interstitial",D,Q,m,P)};
aj=function(D,Q,m,P,W){dB.call(this,m,D,Q,P);this.eD=W;D=G_(Q.clientMetadata,"metadata_type_ad_placement_config");this.ph=new VB(Q.Ij,W,D,Q.layoutId)};
Am=function(D){return Math.round(D.width)+"x"+Math.round(D.height)};
xw=function(D,Q,m){m=m===void 0?pN:m;m.width<pN.width&&(m=pN);if(D.width<m.width||D.height<m.height)return{gE:3,l5:501,errorMessage:"ad("+Am(m)+") larger than container("+Am(D)+")."};if(m.width*m.height>D.width*D.height*.2)return{gE:3,l5:501,errorMessage:"ad("+Am(m)+") to container("+Am(D)+") ratio exceeds limit."};if(m.height>D.height/3-Q)return{gE:3,l5:501,errorMessage:"ad("+Am(m)+") covers container("+Am(D)+") center."}};
XIh=function(D,Q){var m=G_(D.clientMetadata,"metadata_type_ad_placement_config");return new VB(D.Ij,Q,m,D.layoutId)};
Xg=function(D){return G_(D.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
SG=function(D,Q,m,P){WR.call(this,"invideo-overlay",D,Q,m,P);this.interactionLoggingClientData=P};
rD=function(D,Q,m,P,W,L,u,t,z,b,q,C){dB.call(this,L,D,Q,W);this.eD=m;this.B=u;this.Hq=t;this.vY=z;this.Ry=b;this.N=q;this.J=C;this.ph=XIh(Q,m)};
Slr=function(){var D=["metadata_type_invideo_overlay_ad_renderer"];N0().forEach(function(Q){D.push(Q)});
return{Nj:D,FZ:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
GA=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){dB.call(this,L,D,Q,W);this.eD=m;this.B=u;this.Z=t;this.Hq=z;this.vY=b;this.Ry=q;this.N=C;this.J=f;this.ph=XIh(Q,m)};
rd7=function(){for(var D=["metadata_type_invideo_overlay_ad_renderer"],Q=g.T(N0()),m=Q.next();!m.done;m=Q.next())D.push(m.value);return{Nj:D,FZ:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
Mg=function(D){this.Hq=D;this.S=!1};
Gb4=function(D,Q,m){WR.call(this,"survey",D,{},Q,m)};
cB=function(D,Q,m,P,W,L,u){dB.call(this,m,D,Q,P);this.B=W;this.Hq=L;this.Ry=u};
Mz4=function(D,Q,m,P,W,L,u,t,z,b){this.hx=D;this.Hq=Q;this.eD=m;this.B=P;this.BY=W;this.C=L;this.T=u;this.vY=t;this.Ry=z;this.S=b};
cd6=function(D,Q,m,P,W,L,u,t,z,b){this.hx=D;this.Hq=Q;this.eD=m;this.B=P;this.BY=W;this.C=L;this.T=u;this.vY=t;this.Ry=z;this.S=b};
DK=function(D,Q,m,P,W,L,u,t,z,b){x3.call(this,D,Q,m,P,W,L,u,z);this.DR=t;this.qv=b};
Dy4=function(){var D=dCn();D.Nj.push("metadata_type_ad_info_ad_metadata");return D};
Q97=function(D,Q,m,P,W,L,u){this.hx=D;this.Hq=Q;this.eD=m;this.C=P;this.DR=W;this.S=L;this.qv=u};
myr=function(D,Q,m,P,W,L,u,t){this.hx=D;this.Hq=Q;this.eD=m;this.C=P;this.DR=W;this.S=L;this.Ry=u;this.qv=t};
Q6=function(D,Q){this.slotId=Q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=D(this.triggerType)};
m3=function(D,Q){this.adPodIndex=D;this.S=Q.length;this.adBreakLengthSeconds=Q.reduce(function(P,W){return P+W},0);
var m=0;for(D+=1;D<Q.length;D++)m+=Q[D];this.adBreakRemainingLengthSeconds=m};
PQ=function(D,Q,m){this.FN=Q;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=m||D(this.triggerType)};
WQ=function(D,Q,m){this.S=Q;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=m||D(this.triggerType)};
ij=function(D,Q,m,P){this.FN=Q;this.visible=m;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=P||D(this.triggerType)};
Pow=function(D){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=D(this.triggerType)};
WIr=function(D){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=D(this.triggerType)};
sY=function(D,Q,m){this.triggeringLayoutId=Q;this.slotId=m;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=D(this.triggerType)};
Lj=function(D,Q,m){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=m||D(this.triggerType)};
uj=function(D,Q,m,P){this.triggeringLayoutId=Q;this.S=m;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=P||D(this.triggerType)};
ihn=function(D){switch(D){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 r("Invalid layout exit reason: "+
D)}};
dq=function(D,Q,m){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=m||D(this.triggerType)};
t5=function(D,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=Q||D(this.triggerType)};
zK=function(D,Q){this.breakDurationMs=D;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=Q||""};
bj=function(D,Q){this.breakDurationMs=D;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=Q||""};
qq=function(D,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=Q||D(this.triggerType)};
s9n=function(D){this.triggerId=D;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
LIn=function(D,Q,m,P,W){this.FN=Q;this.S=m;this.visible=P;this.layoutId=W;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=D(this.triggerType)};
Cj=function(D,Q,m,P,W){this.FN=Q;this.S=m;this.visible=P;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=W||D(this.triggerType)};
oZ=function(D,Q){this.breakDurationMs=D;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=Q||""};
ua$=function(D,Q,m){this.FN=Q;this.S=m;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=D(this.triggerType)};
fj=function(D,Q,m,P,W){this.S=Q;this.slotType=m;this.layoutType=P;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=W||D(this.triggerType)};
V6=function(D,Q){this.S=Q;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=D(this.triggerType)};
Nq=function(D,Q,m){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=m||D(this.triggerType)};
y6=function(D,Q,m){this.S=Q;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=m||D(this.triggerType)};
sCw=function(D,Q){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=Q;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=D(this.triggerType)};
dyu=function(D,Q){this.S=D;this.index=Q};
tij=function(D){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=D(this.triggerType)};
ZK=function(D,Q){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=Q||D(this.triggerType)};
z2r=function(D,Q,m){this.layoutId=Q;this.offsetMs=m;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=D(this.triggerType)};
bhk=function(D,Q){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=D(this.triggerType)};
q$P=function(D,Q,m){this.layoutId=Q;this.offsetMs=m;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=D(this.triggerType)};
FP=function(D,Q,m){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=m||D(this.triggerType)};
TK=function(D,Q,m){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=m||D(this.triggerType)};
h5=function(D,Q,m){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=m||D(this.triggerType)};
nj=function(D,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=D(this.triggerType)};
EY=function(D,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=D(this.triggerType)};
RZ=function(D,Q,m){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=m||D(this.triggerType)};
UY=function(D,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=D(this.triggerType)};
HQ=function(D,Q,m){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=m||D(this.triggerType)};
Kj=function(D,Q,m,P){this.durationMs=Q;this.triggeringLayoutId=m;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=P||D(this.triggerType)};
jD=function(D,Q,m,P){this.category=D;this.trigger=Q;this.slot=m;this.layout=P};
$r=function(D){return(D==null?void 0:D.layoutId)!=null&&(D==null?void 0:D.layoutType)!=null};
Co4=function(D){if(!$r(D.adLayoutMetadata))return!1;D=D.renderingContent;return g.A(D,eD)||g.A(D,vQ)||g.A(D,OY)||g.A(D,Yr)||g.A(D,aZ)||g.A(D,A5)?!0:!1};
o4j=function(D){return(D==null?void 0:D.durationMs)!=null&&(D==null?void 0:D.durationMs)>0};
pj=function(D){return!!(D.w4&&D.slot&&D.layout)};
xr=function(D){var Q,m=(Q=D.config)==null?void 0:Q.adPlacementConfig;D=D.renderer;return!(!m||m.kind==null||!D)};
Vi7=function(D){if(!$r(D.adLayoutMetadata))return!1;D=D.renderingContent;return g.A(D,cX)||g.A(D,DO)||g.A(D,fwm)||g.A(D,GV)||g.A(D,M0)?!0:!1};
XP=function(D){return D.playerVars!==void 0&&D.pings!==void 0&&D.externalVideoId!==void 0};
Q2=function(D){if(!$r(D.adLayoutMetadata))return!1;D=D.renderingContent;var Q=g.A(D,SD);return Q?rq(Q):(Q=g.A(D,GK))?XP(Q):(Q=g.A(D,Mq))?Q.playerVars!==void 0:(Q=g.A(D,cX))?Q.durationMilliseconds!==void 0:g.A(D,cQ)||g.A(D,De)?!0:!1};
rq=function(D){D=(D.sequentialLayouts||[]).map(function(Q){return g.A(Q,me)});
return D.length>0&&D.every(Q2)};
WL=function(D){return $r(D.adLayoutMetadata)?(D=g.A(D.renderingContent,PL))&&D.pings?!0:!1:!1};
h2j=function(D){if(!$r(D.adLayoutMetadata))return!1;if(g.A(D.renderingContent,N3n)||g.A(D.renderingContent,yPm))return!0;var Q=g.A(D.renderingContent,iP);return g.A(D.renderingContent,sR)||g.A(Q==null?void 0:Q.sidePanel,Zh9)||g.A(Q==null?void 0:Q.sidePanel,FIk)||g.A(Q==null?void 0:Q.sidePanel,T3w)?!0:!1};
wgr=function(D){var Q;(Q=!D)||(Q=D.adSlotMetadata,Q=!((Q==null?void 0:Q.slotId)!==void 0&&(Q==null?void 0:Q.slotType)!==void 0));if(Q||!(n49(D)||D.slotEntryTrigger&&D.slotFulfillmentTriggers&&D.slotExpirationTriggers))return!1;var m;D=(m=D.fulfillmentContent)==null?void 0:m.fulfilledLayout;return(m=g.A(D,me))?Q2(m):(m=g.A(D,LE))?h2j(m):(m=g.A(D,E47))?Vi7(m):(m=g.A(D,g4m))?Co4(m):(m=g.A(D,B36))?$r(m.adLayoutMetadata)?g.A(m.renderingContent,eD)?!0:!1:!1:(D=g.A(D,uP))?WL(D):!1};
n49=function(D){var Q;D=g.A((Q=D.fulfillmentContent)==null?void 0:Q.fulfilledLayout,LE);var m;return D&&((m=D.adLayoutMetadata)==null?void 0:m.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&D.layoutExitNormalTriggers===void 0};
kWk=function(D){var Q;return(D==null?void 0:(Q=D.adSlotMetadata)==null?void 0:Q.slotType)==="SLOT_TYPE_IN_PLAYER"};
lwh=function(D,Q){var m;if((m=D.questions)==null||!m.length||!D.playbackCommands||(Q===void 0||!Q)&&D.questions.length!==1)return!1;D=g.T(D.questions);for(Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var P=m=void 0,W=((m=g.A(Q,ds))==null?void 0:m.surveyAdQuestionCommon)||((P=g.A(Q,tw))==null?void 0:P.surveyAdQuestionCommon);if(!JPr(W))return!1}return!0};
Iw6=function(D){D=((D==null?void 0:D.playerOverlay)||{}).instreamSurveyAdRenderer;var Q;if(D)if(D.playbackCommands&&D.questions&&D.questions.length===1){var m,P=((Q=g.A(D.questions[0],ds))==null?void 0:Q.surveyAdQuestionCommon)||((m=g.A(D.questions[0],tw))==null?void 0:m.surveyAdQuestionCommon);Q=JPr(P)}else Q=!1;else Q=!1;return Q};
JPr=function(D){if(!D)return!1;D=g.A(D.instreamAdPlayerOverlay,zB);var Q=g.A(D==null?void 0:D.skipOrPreviewRenderer,$w),m=g.A(D==null?void 0:D.adInfoRenderer,bP);return(g.A(D==null?void 0:D.skipOrPreviewRenderer,qr)||Q)&&m?!0:!1};
R2_=function(D){return D.linearAds!=null&&$r(D.adLayoutMetadata)};
Uy7=function(D){return D.linearAd!=null&&D.adVideoStart!=null};
Hh_=function(D){if(isNaN(Number(D.timeoutSeconds))||!D.text||!D.ctaButton||!g.A(D.ctaButton,g.CE)||!D.brandImage)return!1;var Q;return D.backgroundImage&&g.A(D.backgroundImage,ou)&&((Q=g.A(D.backgroundImage,ou))==null?0:Q.landscape)?!0:!1};
fE=function(D,Q,m,P,W,L,u,t){g.v.call(this);this.Ry=D;this.S=Q;this.C=P;this.qv=W;this.B=L;this.T=u;this.bE=t};
$yj=function(D,Q,m){var P,W=((P=m.adSlots)!=null?P:[]).map(function(t){return g.A(t,V2)});
if(m.sP)if(G_(Q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ia(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId);
else{if(D.Ry.get().D.G().V("h5_check_forecasting_renderer_for_throttled_midroll")){var L=m.Yb.filter(function(t){var z;return((z=t.renderer)==null?void 0:z.clientForecastingAdRenderer)!=null});
L.length!==0?KIk(D.T,L,W,Q.slotId,m.ssdaiAdsConfig):ia(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId)}else ia(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId);
j9n(D.B,Q)}else{var u;P={nG:Math.round(((L=G_(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.nG)||0),DK:(u=G_(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:u.DK};L=G_(Q.clientMetadata,"metadata_type_cue_point");KIk(D.T,m.Yb,W,Q.slotId,m.ssdaiAdsConfig,P,L)}};
Oh7=function(D,Q,m,P,W,L,u,t){var z=rM(D.qv.get(),1);if(e26(D.Ry.get())){var b=Nr(D.C.get(),m,P,W,z.clientPlaybackNonce,z.F9,z.daiEnabled,z,L,u);v46(D,b);ia(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return b},Q)}else ia(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Nr(D.C.get(),m,P,W,z.clientPlaybackNonce,z.F9,z.daiEnabled,z,L,u,t)},Q)};
v46=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){var P=m.value;if(P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.fulfilledLayout)if(m=void 0,P.fulfilledLayout.renderingContent)m=G_(P.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(P.fulfilledLayout.Xl){P=g.T(P.fulfilledLayout.Xl);for(var W=P.next();!W.done&&(W=W.value,!W.renderingContent||!(m=G_(W.clientMetadata,"metadata_type_player_vars")));W=P.next());}}else m=void 0;if(m){D.bE.get().D.preloadVideoByPlayerVars(m,
2,300);break}}};
awj=function(D,Q,m,P,W,L,u){Q=Y$n(Q,L,Number(P.prefetchMilliseconds)||0,u);D=Q instanceof r?Q:y2(D,P,W,Q,m);return D instanceof r?D:[D]};
APP=function(D,Q,m,P,W){var L=so(D.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");P=[new wu({getAdBreakUrl:P.getAdBreakUrl,nG:0,DK:0}),new Yh(!0)];D=Q.pauseDurationMs?Q.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new RZ(D.S,L),slotFulfillmentTriggers:[new WIr(D.S)],slotExpirationTriggers:[new y6(D.S,W),new h5(D.S,L)],Wq:"core",clientMetadata:new ru(P),adSlotLoggingData:m}:new r("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new r("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return D instanceof r?D:[D]};
pgn=function(D){var Q,m;return((Q=D.renderer)==null?void 0:(m=Q.adBreakServiceRenderer)==null?void 0:m.getAdBreakUrl)!==void 0};
Ze=function(D,Q,m){if(D.beforeContentVideoIdStartedTrigger)D=D.beforeContentVideoIdStartedTrigger?new PQ(X9,Q,D.id):new r("Not able to create BeforeContentVideoIdStartedTrigger");else{if(D.layoutIdExitedTrigger){var P;Q=(P=D.layoutIdExitedTrigger)!=null&&P.triggeringLayoutId?new dq(X9,D.layoutIdExitedTrigger.triggeringLayoutId,D.id):new r("Not able to create LayoutIdExitedTrigger")}else{if(D.layoutExitedForReasonTrigger){var W,L;((W=D.layoutExitedForReasonTrigger)==null?0:W.triggeringLayoutId)&&((L=
D.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(Q=ihn(D.layoutExitedForReasonTrigger.layoutExitReason),D=Q instanceof r?Q:new uj(X9,D.layoutExitedForReasonTrigger.triggeringLayoutId,[Q],D.id)):D=new r("Not able to create LayoutIdExitedForReasonTrigger")}else{if(D.onLayoutSelfExitRequestedTrigger){var u;Q=(u=D.onLayoutSelfExitRequestedTrigger)!=null&&u.triggeringLayoutId?new Nq(X9,D.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,D.id):new r("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(D.onNewPlaybackAfterContentVideoIdTrigger)D=
D.onNewPlaybackAfterContentVideoIdTrigger?new y6(X9,Q,D.id):new r("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(D.skipRequestedTrigger){var t;Q=(t=D.skipRequestedTrigger)!=null&&t.triggeringLayoutId?new FP(X9,D.skipRequestedTrigger.triggeringLayoutId,D.id):new r("Not able to create SkipRequestedTrigger")}else if(D.slotIdEnteredTrigger){var z;Q=(z=D.slotIdEnteredTrigger)!=null&&z.triggeringSlotId?new TK(X9,D.slotIdEnteredTrigger.triggeringSlotId,D.id):new r("Not able to create SlotIdEnteredTrigger")}else if(D.slotIdExitedTrigger){var b;
Q=(b=D.slotIdExitedTrigger)!=null&&b.triggeringSlotId?new h5(X9,D.slotIdExitedTrigger.triggeringSlotId,D.id):new r("Not able to create SkipRequestedTrigger")}else if(D.surveySubmittedTrigger){var q;Q=(q=D.surveySubmittedTrigger)!=null&&q.triggeringLayoutId?new HQ(X9,D.surveySubmittedTrigger.triggeringLayoutId,D.id):new r("Not able to create SurveySubmittedTrigger")}else{if(D.mediaResumedTrigger)D=D.mediaResumedTrigger&&D.id?new s9n(D.id):new r("Not able to create MediaResumedTrigger");else{if(D.closeRequestedTrigger){var C;
Q=(C=D.closeRequestedTrigger)!=null&&C.triggeringLayoutId?new WQ(X9,D.closeRequestedTrigger.triggeringLayoutId,D.id):new r("Not able to create CloseRequestedTrigger")}else if(D.slotIdScheduledTrigger){var f;Q=(f=D.slotIdScheduledTrigger)!=null&&f.triggeringSlotId?new RZ(X9,D.slotIdScheduledTrigger.triggeringSlotId,D.id):new r("Not able to create SlotIdScheduledTrigger")}else{if(D.mediaTimeRangeTrigger){var V;P=Number((V=D.mediaTimeRangeTrigger)==null?void 0:V.offsetStartMilliseconds);var N;u=Number((N=
D.mediaTimeRangeTrigger)==null?void 0:N.offsetEndMilliseconds);isFinite(P)&&isFinite(u)?(N=u,N===-1&&(N=m),m=P>N?new r("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:P,offsetEndMs:N},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",N===m&&P-500<=N):new y9(P,N),D=m instanceof r?m:new Cj(X9,Q,m,!1,D.id)):D=new r("Not able to create MediaTimeRangeTrigger")}else if(D.contentVideoIdEndedTrigger)D=D.contentVideoIdEndedTrigger?new ij(X9,Q,!1,D.id):new r("Not able to create ContentVideoIdEndedTrigger");
else{if(D.layoutIdEnteredTrigger){var h;Q=(h=D.layoutIdEnteredTrigger)!=null&&h.triggeringLayoutId?new Lj(X9,D.layoutIdEnteredTrigger.triggeringLayoutId,D.id):new r("Not able to create LayoutIdEnteredTrigger")}else if(D.timeRelativeToLayoutEnterTrigger){var B;Q=(B=D.timeRelativeToLayoutEnterTrigger)!=null&&B.triggeringLayoutId?new Kj(X9,Number(D.timeRelativeToLayoutEnterTrigger.durationMs),D.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,D.id):new r("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(D.onDifferentLayoutIdEnteredTrigger){var J;
Q=(J=D.onDifferentLayoutIdEnteredTrigger)!=null&&J.triggeringLayoutId&&D.onDifferentLayoutIdEnteredTrigger.slotType&&D.onDifferentLayoutIdEnteredTrigger.layoutType?new fj(X9,D.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,D.onDifferentLayoutIdEnteredTrigger.slotType,D.onDifferentLayoutIdEnteredTrigger.layoutType,D.id):new r("Not able to create CloseRequestedTrigger")}else{if(D.liveStreamBreakStartedTrigger)D=D.liveStreamBreakStartedTrigger&&D.id?new qq(X9,D.id):new r("Not able to create LiveStreamBreakStartedTrigger");
else if(D.liveStreamBreakEndedTrigger)D=D.liveStreamBreakEndedTrigger&&D.id?new t5(X9,D.id):new r("Not able to create LiveStreamBreakEndedTrigger");else{if(D.liveStreamBreakScheduledDurationMatchedTrigger){var k;Q=(k=D.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&k.breakDurationMs?new zK(Number(D.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,D.id):new r("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(D.liveStreamBreakScheduledDurationNotMatchedTrigger){var R;
Q=(R=D.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&R.breakDurationMs?new bj(Number(D.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,D.id):new r("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(D.newSlotScheduledWithBreakDurationTrigger){var e;Q=(e=D.newSlotScheduledWithBreakDurationTrigger)!=null&&e.breakDurationMs?new oZ(Number(D.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,D.id):new r("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Q=
D.prefetchCacheExpiredTrigger?new ZK(X9,D.id):new r("Not able to convert an AdsControlflowTrigger.");D=Q}Q=D}D=Q}Q=D}D=Q}Q=D}D=Q}Q=D}D=Q}Q=D}D=Q}return D};
F0=function(D,Q){Q.S>=2&&(D.slot_pos=Q.adPodIndex);D.autoplay="1"};
Xgw=function(D,Q,m,P,W,L,u,t){return Q===null?new r("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Q,ActionCompanionAdRenderer:P}):[xyn(D,Q,u,L,function(z){var b=z.slotId;z=t(z);var q=P.adLayoutLoggingData,C=new ru([new kL(P),new O0(W)]);b=vF(m.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var f={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Wq:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ij:new Map,
layoutExitNormalTriggers:[new y6(m.S,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:C,Ur:z(f),adLayoutLoggingData:q}})]};
S$w=function(D,Q,m,P,W,L,u,t){return Q===null?new r("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Q,TopBannerImageTextIconButtonedLayoutViewModel:P}):[xyn(D,Q,u,L,function(z){var b=z.slotId;z=t(z);var q=P.adLayoutLoggingData,C=new ru([new JC(P),new O0(W)]);b=vF(m.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var f={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Wq:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Ij:new Map,layoutExitNormalTriggers:[new y6(m.S,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:C,Ur:z(f),adLayoutLoggingData:q}})]};
cP7=function(D,Q,m,P,W,L){if(!L)for(Q=g.T(Q),L=Q.next();!L.done;L=Q.next())L=L.value,TB(D,L.renderer,L.config.adPlacementConfig.kind);D=Array.from(D.values()).filter(function(q){return rPw(q)});
Q=[];L=g.T(D);for(var u=L.next(),t={};!u.done;t={TH:void 0},u=L.next()){t.TH=u.value;u=g.T(t.TH.IE);for(var z=u.next(),b={};!z.done;b={nm:void 0},z=u.next())b.nm=z.value,z=function(q,C){return function(f){return q.nm.oE(f,C.TH.instreamVideoAdRenderer.elementId,q.nm.dZ)}}(b,t),b.nm.isContentVideoCompanion?Q.push(GW7(m,P,W,t.TH.instreamVideoAdRenderer.elementId,b.nm.associatedCompositePlayerBytesLayoutId,b.nm.adSlotLoggingData,z)):D.length>1?Q.push(Miu(m,P,W,t.TH.instreamVideoAdRenderer.elementId,b.nm.adSlotLoggingData,
function(q,C){return function(f){return q.nm.oE(f,C.TH.instreamVideoAdRenderer.elementId,q.nm.dZ,q.nm.associatedCompositePlayerBytesLayoutId)}}(b,t))):Q.push(Miu(m,P,W,t.TH.instreamVideoAdRenderer.elementId,b.nm.adSlotLoggingData,z))}return Q};
TB=function(D,Q,m){if(Q=Dl$(Q)){Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())if((P=P.value)&&P.externalVideoId){var W=hw(D,P.externalVideoId);W.instreamVideoAdRenderer||(W.instreamVideoAdRenderer=P,W.fB=m)}else bu("InstreamVideoAdRenderer without externalVideoId")}};
Dl$=function(D){var Q=[],m=D.sandwichedLinearAdRenderer&&D.sandwichedLinearAdRenderer.linearAd&&g.A(D.sandwichedLinearAdRenderer.linearAd,GK);if(m)return Q.push(m),Q;if(D.instreamVideoAdRenderer)return Q.push(D.instreamVideoAdRenderer),Q;if(D.linearAdSequenceRenderer&&D.linearAdSequenceRenderer.linearAds){D=g.T(D.linearAdSequenceRenderer.linearAds);for(m=D.next();!m.done;m=D.next())m=m.value,g.A(m,GK)&&Q.push(g.A(m,GK));return Q}return null};
rPw=function(D){if(D.instreamVideoAdRenderer===void 0)return bu("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Q=g.T(D.IE),m=Q.next();!m.done;m=Q.next()){m=m.value;if(m.oE===void 0)return!1;if(m.dZ===void 0)return bu("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(D.fB===void 0||m.Lr===void 0||D.fB!==m.Lr&&m.Lr!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(D.instreamVideoAdRenderer.elementId===void 0)return bu("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:D.fB,"matching APSR kind":m.Lr}),!1}return!0};
hw=function(D,Q){D.has(Q)||D.set(Q,{instreamVideoAdRenderer:void 0,fB:void 0,adVideoId:Q,IE:[]});return D.get(Q)};
nE=function(D,Q,m,P,W,L,u,t,z){W?hw(D,W).IE.push({XyD:Q,Lr:m,isContentVideoCompanion:P,dZ:u,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:t,oE:z}):bu("Companion AdPlacementSupportedRenderer without adVideoId")};
ER=function(D){var Q=0;D=g.T(D.questions);for(var m=D.next();!m.done;m=D.next())if(m=m.value,m=g.A(m,ds)||g.A(m,tw)){var P=void 0;Q+=((P=m.surveyAdQuestionCommon)==null?void 0:P.durationMilliseconds)||0}return Q};
gs=function(D){var Q,m,P,W,L=((m=g.A((Q=D.questions)==null?void 0:Q[0],ds))==null?void 0:m.surveyAdQuestionCommon)||((W=g.A((P=D.questions)==null?void 0:P[0],tw))==null?void 0:W.surveyAdQuestionCommon),u;Q=[].concat(g.on(((u=D.playbackCommands)==null?void 0:u.instreamAdCompleteCommands)||[]),g.on((L==null?void 0:L.timeoutCommands)||[]));var t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6,L9,d7;return{impressionCommands:(t=D.playbackCommands)==null?void 0:t.impressionCommands,errorCommands:(z=D.playbackCommands)==
null?void 0:z.errorCommands,muteCommands:(b=D.playbackCommands)==null?void 0:b.muteCommands,unmuteCommands:(q=D.playbackCommands)==null?void 0:q.unmuteCommands,pauseCommands:(C=D.playbackCommands)==null?void 0:C.pauseCommands,rewindCommands:(f=D.playbackCommands)==null?void 0:f.rewindCommands,resumeCommands:(V=D.playbackCommands)==null?void 0:V.resumeCommands,skipCommands:(N=D.playbackCommands)==null?void 0:N.skipCommands,progressCommands:(h=D.playbackCommands)==null?void 0:h.progressCommands,IBv:(B=
D.playbackCommands)==null?void 0:B.clickthroughCommands,fullscreenCommands:(J=D.playbackCommands)==null?void 0:J.fullscreenCommands,activeViewViewableCommands:(k=D.playbackCommands)==null?void 0:k.activeViewViewableCommands,activeViewMeasurableCommands:(R=D.playbackCommands)==null?void 0:R.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(e=D.playbackCommands)==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(a=D.playbackCommands)==
null?void 0:(G=a.activeViewTracking)==null?void 0:G.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(S=D.playbackCommands)==null?void 0:(u6=S.activeViewTracking)==null?void 0:u6.activeViewAudioMeasurableCommands,endFullscreenCommands:(L9=D.playbackCommands)==null?void 0:L9.endFullscreenCommands,abandonCommands:(d7=D.playbackCommands)==null?void 0:d7.abandonCommands,completeCommands:Q}};
mlu=function(D,Q,m,P,W,L,u){return function(t,z){return Q1_(D,z.slotId,t,L,function(b,q){var C=z.layoutId;b=u(b);return BL(Q,C,q,W,b,"LAYOUT_TYPE_SURVEY",[new We(m),P],m.adLayoutLoggingData)})}};
iL6=function(D,Q,m,P,W,L,u){if(!Pm$(D))return new r("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:D});var t=D.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[WPn(L,Q,m,P,function(z){var b=z.slotId;z=u(z);b=vF(W.C.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",b);var q={layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Wq:"core"},C=new dq(W.S,P);return{layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ij:new Map,layoutExitNormalTriggers:[C],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new iq(t)]),Ur:z(q)}})]};
Pm$=function(D){D=g.A(D==null?void 0:D.additionalPlayerOverlay,s17);if(!D)return!1;var Q=D.slidingMessages;return D.title&&Q&&Q.length!==0?!0:!1};
uZ7=function(D,Q,m,P,W){var L;if((L=D.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]};
if(!Iw6(D))return function(){return new r("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:D})};
var u=D.playerOverlay.instreamSurveyAdRenderer,t=ER(u);return t<=0?function(){return new r("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:u})}:function(z,b){var q=LPh(z,m,P,function(C){var f=C.slotId;
C=b(C);var V=gs(u);f=vF(W.C.get(),"LAYOUT_TYPE_SURVEY",f);var N={layoutId:f,layoutType:"LAYOUT_TYPE_SURVEY",Wq:"core"},h=new dq(W.S,P),B=new FP(W.S,f),J=new HQ(W.S,f),k=new tij(W.S);return{layoutId:f,layoutType:"LAYOUT_TYPE_SURVEY",Ij:new Map,layoutExitNormalTriggers:[h,k],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],iE:[],Wq:"core",clientMetadata:new ru([new Pe(u),new O0(Q),new lq(t/1E3),new He(V)]),Ur:C(N),adLayoutLoggingData:u.adLayoutLoggingData}});
z=iL6(D,m,q.slotId,P,W,z,b);return z instanceof r?z:[q].concat(g.on(z))}};
oLn=function(D,Q,m,P,W,L,u){u=u===void 0?!1:u;var t=[];try{var z=[];if(m.renderer.linearAdSequenceRenderer)var b=function(h){h=dlh(h.slotId,m,Q,W(h),P,L,u);z=h.Loc;return h.Eq};
else if(m.renderer.instreamVideoAdRenderer)b=function(h){var B=h.slotId;h=W(h);var J=u,k=m.config.adPlacementConfig,R=tbh(k),e=R.BU,a=R.nz;R=m.renderer.instreamVideoAdRenderer;var G;if(R==null?0:(G=R.playerOverlay)==null?0:G.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var S=ws(R,J);G=Math.min(e+S.videoLengthSeconds*1E3,a);J=new m3(0,[S.videoLengthSeconds]);a=S.videoLengthSeconds;var u6=S.playerVars,L9=S.instreamAdPlayerOverlayRenderer,d7=S.playerOverlayLayoutRenderer,
b6=S.adVideoId,mj=zRP(m),kP=S.Ij;S=S.Mf;var S$=R==null?void 0:R.adLayoutLoggingData;R=R==null?void 0:R.sodarExtensionData;B=vF(Q.C.get(),"LAYOUT_TYPE_MEDIA",B);var DN={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Wq:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Ij:kP,layoutExitNormalTriggers:[new t5(Q.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new XZ(P),new fY(a),new Vg(u6),new ZR(e),new F9(G),L9&&
new Sb(L9),d7&&new rd(d7),new O0(k),new xL(b6),new YL(J),new gu(mj),R&&new yg(R),new z_({current:null}),new h8({}),new $h(S)].filter(bLj)),Ur:h(DN),adLayoutLoggingData:S$}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var q=q07(D,P,m.adSlotLoggingData,b);t.push(q);for(var C=g.T(z),f=C.next();!f.done;f=C.next()){var V=f.value,N=V(D,W);if(N instanceof r)return N;t.push.apply(t,g.on(N))}}catch(h){return new r(h,{errorMessage:h.message,AdPlacementRenderer:m,numberOfSurveyRenderers:Cmu(m)})}return t};
Cmu=function(D){D=(D.renderer.linearAdSequenceRenderer||{}).linearAds;return D!=null&&D.length?D.filter(function(Q){var m,P;return((m=g.A(Q,GK))==null?void 0:(P=m.playerOverlay)==null?void 0:P.instreamSurveyAdRenderer)!=null}).length:0};
dlh=function(D,Q,m,P,W,L,u){var t=Q.config.adPlacementConfig,z=tbh(t),b=z.BU,q=z.nz;z=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;if(z==null||!z.length)throw new TypeError("Expected linear ads");var C=[],f={Ni:b,sT:0,ke0:C};z=z.map(function(N){return fA9(D,N,f,m,P,t,W,q,u)}).map(function(N,h){h=new m3(h,C);
return N(h)});
var V=z.map(function(N){return N.fK});
return{Eq:Vbw(m,D,b,V,t,zRP(Q),P,q,L),Loc:z.map(function(N){return N.z6W})}};
fA9=function(D,Q,m,P,W,L,u,t,z){var b=ws(g.A(Q,GK),z),q=m.Ni,C=m.sT,f=Math.min(q+b.videoLengthSeconds*1E3,t);m.Ni=f;m.sT++;m.ke0.push(b.videoLengthSeconds);var V,N,h=(V=g.A(Q,GK))==null?void 0:(N=V.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer;if(b.adVideoId==="nPpU29QrbiU"&&h==null)throw new TypeError("Survey slate media has no survey overlay");return function(B){F0(b.playerVars,B);var J,k,R=b.videoLengthSeconds,e=b.playerVars,a=b.Ij,G=b.Mf,S=b.instreamAdPlayerOverlayRenderer,u6=b.playerOverlayLayoutRenderer,
L9=b.adVideoId,d7=(J=g.A(Q,GK))==null?void 0:J.adLayoutLoggingData;J=(k=g.A(Q,GK))==null?void 0:k.sodarExtensionData;k=vF(P.C.get(),"LAYOUT_TYPE_MEDIA",D);var b6={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",Wq:"adapter"};B={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",Ij:a,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"adapter",clientMetadata:new ru([new XZ(u),new fY(R),new Vg(e),new ZR(q),new F9(f),new T_(C),new z_({current:null}),
S&&new Sb(S),u6&&new rd(u6),new O0(L),new xL(L9),new YL(B),J&&new yg(J),h&&new jB(h),new h8({}),new $h(G)].filter(bLj)),Ur:W(b6),adLayoutLoggingData:d7};R=uZ7(g.A(Q,GK),L,u,B.layoutId,P);return{fK:B,z6W:R}}};
ws=function(D,Q){if(!D)throw new TypeError("Expected instream video ad renderer");if(!D.playerVars)throw new TypeError("Expected player vars in url encoded string");var m=GG(D.playerVars),P=Number(m.length_seconds);if(isNaN(P))throw new TypeError("Expected valid length seconds in player vars");var W=Number(D.trimmedMaxNonSkippableAdDurationMs);P=isNaN(W)?P:Math.min(P,W/1E3);W=D.playerOverlay||{};W=W.instreamAdPlayerOverlayRenderer===void 0?null:W.instreamAdPlayerOverlayRenderer;var L=D.playerOverlay||
{};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var u=m.video_id;u||(u=(u=D.externalVideoId)?u:void 0);if(!u)throw new TypeError("Expected valid video id in IVAR");if(Q&&P===0){var t;Q=(t=Ndj[u])!=null?t:P}else Q=P;return{playerVars:m,videoLengthSeconds:Q,instreamAdPlayerOverlayRenderer:W,playerOverlayLayoutRenderer:L,adVideoId:u,Ij:D.pings?fZ(D.pings):new Map,Mf:oL(D.pings)}};
zRP=function(D){D=Number(D.driftRecoveryMs);return isNaN(D)||D<=0?null:D};
tbh=function(D){var Q=D.adTimeOffset||{};D=Q.offsetEndMilliseconds;Q=Number(Q.offsetStartMilliseconds);if(isNaN(Q))throw new TypeError("Expected valid start offset");D=Number(D);if(isNaN(D))throw new TypeError("Expected valid end offset");return{BU:Q,nz:D}};
yCw=function(D){var Q,m=(Q=G_(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!m)return null;Q=G_(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=D.layoutId,W=G_(D.clientMetadata,"metadata_type_content_cpn"),L=G_(D.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=G_(D.clientMetadata,"metadata_type_player_underlay_renderer"),t=G_(D.clientMetadata,"metadata_type_ad_placement_config"),z=G_(D.clientMetadata,"metadata_type_video_length_seconds");
var b=pY(D.clientMetadata,"metadata_type_layout_enter_ms")&&pY(D.clientMetadata,"metadata_type_layout_exit_ms")?(G_(D.clientMetadata,"metadata_type_layout_exit_ms")-G_(D.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{G9:P,contentCpn:W,M8:m,gZ:Q,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:u,adPlacementConfig:t,videoLengthSeconds:z,Qa:b,inPlayerLayoutId:G_(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(D.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Tdm=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N){P=so(P,"SLOT_TYPE_PLAYER_BYTES");D=ZL7(W,D,u,m,P,z,b);if(D instanceof r)return D;var h;b=(h=G_(D.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:h.layoutId;if(!b)return new r("Invalid adNotify layout");Q=FPh(b,W,L,m,t,Q,z,q,C,f,V,N,u);return Q instanceof r?Q:[D].concat(g.on(Q))};
FPh=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){m=hRm(Q,m,P,L,u,t,z,b,q,C,f);if(m instanceof r)return m;D=nL4(Q,D,u,W,m);return D instanceof r?D:[].concat(g.on(D.mO),[D.pD])};
gLh=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){Q=hRm(D,Q,m,W,L,t,z,b,q,C,f,V);if(Q instanceof r)return Q;D=ELw(D,m,L,u,P,t.VX,Q);return D instanceof r?D:D.mO.concat(D.pD)};
hRm=function(D,Q,m,P,W,L,u,t,z,b,q,C){var f=ko(P,m,b);return f instanceof SB?new r(f):b.D.G().experiments.Mv("html5_refactor_in_player_slot_generation")?function(V){var N=new m3(0,[f.wY]);V=Bd9(Q,f.layoutId,f.tP,m,Jw(f.playerVars,f.tF,L,z,N),f.wY,W,N,u(V),t.get(f.tP.externalVideoId),C);N=[];if(f.tP.playerOverlay.instreamAdPlayerOverlayRenderer){var h=yCw(V);if(!h)return bu("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,V),{layout:V,mO:[]};
N=[wt7(D,h.contentCpn,h.G9,function(J){return lP(Q,J.slotId,"core",h,PF(q,J))},h.inPlayerSlotId)].concat(g.on(N));
if(h.instreamAdPlayerUnderlayRenderer&&Iu(b)){var B=h.instreamAdPlayerUnderlayRenderer;N=[kJu(D,h.contentCpn,h.G9,function(J){return JCw(Q,J.slotId,B,h.adPlacementConfig,h.G9,PF(q,J))})].concat(g.on(N))}}return{layout:V,
mO:N}}:function(V){var N=new m3(0,[f.wY]);
return{layout:Bd9(Q,f.layoutId,f.tP,m,Jw(f.playerVars,f.tF,L,z,N),f.wY,W,N,u(V),t.get(f.tP.externalVideoId),C),mO:[]}}};
ko=function(D,Q,m){if(!D.playerVars)return new SB("No playerVars available in InstreamVideoAdRenderer.");var P,W;if(D.elementId==null||D.playerVars==null||D.playerOverlay==null||((P=D.playerOverlay)==null?void 0:P.instreamAdPlayerOverlayRenderer)==null&&((W=D.playerOverlay)==null?void 0:W.playerOverlayLayoutRenderer)==null||D.pings==null||D.externalVideoId==null)return new SB("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:D});P=GG(D.playerVars);W=Number(P.length_seconds);
isNaN(W)&&(W=0,bu("Expected valid length seconds in player vars but got NaN"));if(m.xV(Q.kind==="AD_PLACEMENT_KIND_START")){if(D.layoutId===void 0)return new SB("Expected server generated layout ID in instreamVideoAdRenderer");Q=D.layoutId}else Q=D.elementId;return{layoutId:Q,tP:D,playerVars:P,tF:D.playerVars,wY:W}};
Jw=function(D,Q,m,P,W){D.iv_load_policy=P;Q=GG(Q);if(Q.cta_conversion_urls)try{D.cta_conversion_urls=JSON.parse(Q.cta_conversion_urls)}catch(L){bu(L)}m.Rc&&(D.ctrl=m.Rc);m.sZ&&(D.ytr=m.sZ);m.zQ&&(D.ytrcc=m.zQ);m.isMdxPlayback&&(D.mdx="1");D.vvt&&(D.vss_credentials_token=D.vvt,m.oz&&(D.vss_credentials_token_type=m.oz),m.mdxEnvironment&&(D.mdx_environment=m.mdxEnvironment));F0(D,W);return D};
lA9=function(D){var Q=new Map;D=g.T(D);for(var m=D.next();!m.done;m=D.next())(m=m.value.renderer.remoteSlotsRenderer)&&m.hostElementId&&Q.set(m.hostElementId,m);return Q};
Ru=function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
IAw=function(D){return D!=null};
eRh=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N){for(var h=[],B=g.T(D),J=B.next();!J.done;J=B.next())if(J=J.value,!n49(J)&&!kWk(J)){var k=Ru(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger,R=z.xV(k),e=RR7(J,b,P,m.F9,R);if(e instanceof r)return e;var a=void 0,G={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(a=J.adSlotMetadata.slotPhysicalPosition)!=null?a:1,Wq:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,
slotExpirationTriggers:e.slotExpirationTriggers},S=g.A(J.fulfillmentContent.fulfilledLayout,me);if(S){if(!Q2(S))return new r("Invalid PlayerBytesAdLayoutRenderer");a=C&&!(Ru(J)&&J.slotEntryTrigger.beforeContentVideoIdStartedTrigger);e=e.slotFulfillmentTriggers.some(function(u6){return u6 instanceof zK});
R=a?Uln(G,J.adSlotMetadata.triggerEvent,S,m,P,L,b,D,R,f,e,V):HL_(G,J.adSlotMetadata.triggerEvent,S,Q,m,P,W,L,u,t,z,b,D,q,R,J.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof r)return R;e=[];N?e.push(new oI({current:N})):e.push(new oI({current:null}));Ru(J)&&e.push(new aI({Mo:Ru(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));a&&e.push(new h8({}));m.VX&&e.push(new KY({}));e.push(new Of(k));J=Object.assign({},G,{clientMetadata:new ru(e),fulfilledLayout:R.layout,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});
h.push.apply(h,g.on(R.mO));h.push(J)}else if(k=g.A(J.fulfillmentContent.fulfilledLayout,LE)){if(!h2j(k))return new r("Invalid PlayerUnderlayAdLayoutRenderer");k=KP_(k,P,m.F9,L,G,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(k instanceof r)return k;J=Object.assign({},G,{clientMetadata:new ru([]),fulfilledLayout:k,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(k=g.A(J.fulfillmentContent.fulfilledLayout,g4m)){if(!Co4(k))return new r("Invalid AboveFeedAdLayoutRenderer");
k=j14(k,P,m.F9,L,G,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(k instanceof r)return k;J=Object.assign({},G,{clientMetadata:new ru([]),fulfilledLayout:k,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(k=g.A(J.fulfillmentContent.fulfilledLayout,B36)){if(!$r(k.adLayoutMetadata)||!g.A(k.renderingContent,eD))return new r("Invalid BelowPlayerAdLayoutRenderer");k=j14(k,P,m.F9,L,G,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);
if(k instanceof r)return k;J=Object.assign({},G,{clientMetadata:new ru([]),fulfilledLayout:k,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(k=g.A(J.fulfillmentContent.fulfilledLayout,uP)){if(!WL(k))return new r("Invalid PlayerBytesSequenceItemAdLayoutRenderer");k=$lm(k,P,m.F9,L,G,J.adSlotMetadata.triggerEvent);if(k instanceof r)return k;J=Object.assign({},G,{clientMetadata:new ru([]),fulfilledLayout:k,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else return new r("Unable to retrieve a client slot ["+
G.slotType+"] from a given AdSlotRenderer")}return h};
$lm=function(D,Q,m,P,W,L){var u={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,Wq:"core"};Q=UR(D,Q,m);return Q instanceof r?Q:(m=g.A(D.renderingContent,PL))&&m.pings?Object.assign({},u,{renderingContent:D.renderingContent,Ij:fZ(m.pings)},Q,{Ur:PF(P,W)(u),clientMetadata:new ru([new O0(HL(L))]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData}):new r("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")};
j14=function(D,Q,m,P,W,L,u){var t={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,Wq:"core"};Q=UR(D,Q,m);if(Q instanceof r)return Q;m=[];m.push(new O0(HL(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&u!==void 0&&m.push(new sf(u));return Object.assign({},t,{renderingContent:D.renderingContent,Ij:new Map([["impression",vLj(D)]])},Q,{Ur:PF(P,W)(t),clientMetadata:new ru(m),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})};
KP_=function(D,Q,m,P,W,L,u){if(D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(u=g.A(D.renderingContent,iP))if(u=g.A(u.sidePanel,FIk)){var t={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,Wq:"core"};Q=UR(D,Q,m);D=Q instanceof r?Q:Object.assign({},t,{renderingContent:D.renderingContent,Ij:new Map([["impression",u.impressionPings||[]],["resume",u.resumePings||[]]])},Q,{Ur:PF(P,W)(t),clientMetadata:new ru([new O0(HL(L))]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})}else D=
new r("DismissablePanelTextPortraitImageRenderer is missing");else D=new r("SqueezebackPlayerSidePanelRenderer is missing");else D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.A(D.renderingContent,N3n)?(u={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,Wq:"core"},Q=UR(D,Q,m),D=Q instanceof r?Q:Object.assign({},u,{renderingContent:D.renderingContent,Ij:new Map},Q,{Ur:PF(P,W)(u),clientMetadata:new ru([new O0(HL(L))]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})):
D=new r("CounterfactualRenderer is missing"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?D=new r("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?D=new r("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.A(D.renderingContent,sR)?(L={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,
Wq:"core"},Q=UR(D,Q,m),D=Q instanceof r?Q:u?Object.assign({},L,{renderingContent:D.renderingContent,Ij:new Map},Q,{Ur:PF(P,W)(L),clientMetadata:new ru([new sf(u)]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData}):new r("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):D=new r("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.A(D.renderingContent,yPm)?
(L={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,Wq:"core"},Q=UR(D,Q,m),D=Q instanceof r?Q:Object.assign({},L,{renderingContent:D.renderingContent,Ij:new Map([])},Q,{Ur:PF(P,W)(L),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new ru([])})):D=new r("AdsEngagementPanelSectionListViewModel is missing"):D=new r("LayoutType ["+D.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return D};
Uln=function(D,Q,m,P,W,L,u,t,z,b,q,C){if((C==null?void 0:C.nG)===void 0||(C==null?void 0:C.DK)===void 0)return new r("Cached ad break range from cue point is missing");var f=UR(m,W,P.F9);if(f instanceof r)return f;f={layoutExitMuteTriggers:[],layoutExitNormalTriggers:f.layoutExitNormalTriggers,layoutExitSkipTriggers:[],iE:[],layoutExitUserInputSubmittedTriggers:[]};if(g.A(m.renderingContent,GK))return D=OL9(D,Q,m,f,W,L,t,z,P.F9,u,C.nG,C.DK),D instanceof r?D:D.Ps===void 0?new r("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:D.layout,mO:[D.Ps]};var V=g.A(m.renderingContent,SD);if(V){if(!$r(m.adLayoutMetadata))return new r("Invalid ad layout metadata");if(!rq(V))return new r("Invalid sequential layout");V=V.sequentialLayouts.map(function(N){return N.playerBytesAdLayoutRenderer});
D=Y0$(D,Q,m,f,V,W,P,L,u,z,t,b,C.nG,C.DK,q);return D instanceof r?D:{layout:D.pW,mO:D.mO}}return new r("Not able to convert a sequential layout")};
Y0$=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N){var h=aA_(W,f,V);if(h instanceof r)return h;var B=[],J=[];h=g.T(h);for(var k=h.next();!k.done;k=h.next()){var R=k.value;k=D;var e=W[R.sT],a=R,G=Q;R=L;var S=u,u6=t,L9=z,d7=b,b6=q,mj=KE(e);if(mj instanceof r)k=mj;else{var kP={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Wq:"adapter"};a=AC$(G,e,a,R);a instanceof r?k=a:(k=Object.assign({},kP,j5,{Ij:mj,renderingContent:e.renderingContent,clientMetadata:new ru(a),Ur:PF(u6,k)(kP),
adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}),k=(e=$o(b6,k,R,S.F9,u6,L9,d7,void 0,!0))?e instanceof r?e:{layout:k,Ps:e}:new r("Expecting associatedInPlayerSlot"))}if(k instanceof r)return k;B.push(k.layout);J.push(k.Ps)}W={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Wq:"core"};Q=[new gu(Number(m.driftRecoveryMs)),new ZR(f),new F9(V),new O0(HL(Q)),new ve(C),new h8({})];N&&Q.push(new A8({}));return{pW:Object.assign({},W,P,{Xl:B,Ij:new Map,clientMetadata:new ru(Q),
Ur:PF(t,D)(W)}),mO:J}};
OL9=function(D,Q,m,P,W,L,u,t,z,b,q,C){if(!Q2(m))return new r("Invalid PlayerBytesAdLayoutRenderer");var f=KE(m);if(f instanceof r)return f;var V={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Wq:"core"},N=g.A(m.renderingContent,GK);if(!N)return new r("Invalid rendering content for DAI media layout");N=ws(N,!1);q={J$:N,sT:0,Ni:q,ql:Math.min(q+N.videoLengthSeconds*1E3,C),Vr:new m3(0,[N.videoLengthSeconds])};var h;C=(h=Number(m.driftRecoveryMs))!=null?h:void 0;Q=AC$(Q,
m,q,W,C);if(Q instanceof r)return Q;D=Object.assign({},V,P,{Ij:f,renderingContent:m.renderingContent,clientMetadata:new ru(Q),Ur:PF(L,D)(V),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return(W=$o(u,D,W,z,L,b,t,void 0,!0))?W instanceof r?W:{layout:D,Ps:W}:new r("Expecting associatedInPlayerSlot")};
HL_=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h){var B=UR(m,L,W.F9);if(B instanceof r)return B;if(g.A(m.renderingContent,GK)){z=ptP([m],W,z);if(z instanceof r)return z;if(z.length!==1)return new r("Only expected one media layout.");D=xlr(D,Q,m,B,z[0],void 0,"core",P,L,u,t,b,f,V,N,W.F9,C,void 0,h);return D instanceof r?D:{layout:D.layout,mO:D.Ps?[D.Ps]:[]}}var J=g.A(m.renderingContent,SD);if(J){if(!$r(m.adLayoutMetadata))return new r("Invalid ad layout metadata");if(!rq(J))return new r("Invalid sequential layout");
J=J.sequentialLayouts.map(function(k){return k.playerBytesAdLayoutRenderer});
D=Xt$(D,Q,m.adLayoutMetadata,B,J,P,L,W,z,u,t,b,q,C,N,f,V,h);return D instanceof r?D:{layout:D.pW,mO:D.mO}}return new r("Not able to convert a sequential layout")};
Xt$=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J){var k=new pL({current:null}),R=ptP(W,t,z);if(R instanceof r)return R;z=[];for(var e=[],a=void 0,G=0;G<W.length;G++){var S=W[G];if(g.A(S.renderingContent,GK)){a=b1(f)&&qg(f)?R[G+1]:void 0;a=xlr(D,Q,S,j5,R[G],a,"adapter",L,u,b,q,C,h,B,N,t.F9,V,k,J);if(a instanceof r)return a;z.push(a.layout);a.Ps&&e.push(a.Ps);a=R[G]}else if(g.A(S.renderingContent,Mq)){var u6=D,L9=q;if(Q2(S)){var d7=g.A(S.renderingContent,Mq);if(d7&&d7.playerVars!==void 0){var b6={layoutId:S.adLayoutMetadata.layoutId,
layoutType:S.adLayoutMetadata.layoutType,Wq:"adapter"};d7=GG(d7.playerVars);d7.autoplay="1";S=Object.assign({},b6,j5,{renderingContent:S.renderingContent,clientMetadata:new ru([new nY({}),new O0({kind:"AD_PLACEMENT_KIND_START"}),new z_({current:null}),new Vg(d7)]),Ij:new Map,Ur:PF(L9,u6)(b6),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData})}else S=new r("Invalid ad intro renderer")}else S=new r("Invalid PlayerBytesAdLayoutRenderer");if(S instanceof r)return S;z.push(S)}else if(g.A(S.renderingContent,
cX))if(B){S=S0_(D,S,q,HL(Q),a);if(S instanceof r)return S;z.push(S);S=$o(h,S,u,t.F9,q,V,N,k,!1);if(S instanceof r)return S;if(S)e.push(S);else return new r("Not able to retrieve InPlayer slot for endcap")}else{a:{u6=S.adLayoutMetadata.layoutId;L9=g.T(L);for(b6=L9.next();!b6.done;b6=L9.next()){b6=b6.value;var mj=d7=void 0,kP=((d7=b6.renderer)==null?void 0:(mj=d7.linearAdSequenceRenderer)==null?void 0:mj.linearAds)||[];d7=g.T(kP);for(mj=d7.next();!mj.done;mj=d7.next())if((mj=g.A(mj.value,cX))&&mj.inPlayerSlotId!==
void 0&&mj.inPlayerLayoutId!==void 0&&mj.associatedPlayerBytesLayoutId!==void 0&&mj.associatedPlayerBytesLayoutId===u6){u6={rN:mj,adPlacementConfig:b6.config.adPlacementConfig};break a}}u6=new r("Not able to find associated InPlayer slot for endcap")}if(u6 instanceof r)return u6;S=S0_(D,S,q,u6.adPlacementConfig,a);if(S instanceof r)return S;z.push(S);S=rCj(S.layoutId,V,u,u6,k,q);if(S instanceof r)return S;e.push(S)}}Q={layoutId:m.layoutId,layoutType:m.layoutType,Wq:"core"};return{pW:Object.assign({},
Q,P,{Xl:z,Ij:new Map,clientMetadata:new ru([k]),Ur:PF(q,D)(Q)}),mO:e}};
xlr=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k){if(!Q2(m))return new r("Invalid PlayerBytesAdLayoutRenderer");var R=KE(m);if(R instanceof r)return R;u={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Wq:u};a:{var e=m.adLayoutMetadata.layoutId,a=g.A(m.renderingContent,GK);if(a&&XP(a)){var G=[];if(V)G.push(new O0(HL(Q)));else{b:{t=g.T(t);for(Q=t.next();!Q.done;Q=t.next()){Q=Q.value;var S=Dl$(Q.renderer)||[],u6=g.T(S);for(S=u6.next();!S.done;S=u6.next())if(S=S.value,
S.associatedPlayerBytesLayoutId===e){S.associatedPlayerBytesLayoutId?(t=S.playerOverlay,u6=t!==void 0&&t.playerOverlayLayoutRenderer!==void 0&&t.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&t.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,t=t!==void 0&&t.instreamAdPlayerOverlayRenderer!==void 0&&t.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&t.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||u6):t=!1;Q=t?{instreamVideoAdRenderer:S,adPlacementConfig:Q.config.adPlacementConfig}:
new r("Invalid InPlayer shim");break b}}Q=new r("Not able to find associated InPlayer slot")}if(Q instanceof r){L=Q;break a}t=Q.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;S=Q.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var L9;u6=(L9=t==null?void 0:t.inPlayerSlotId)!=null?L9:S==null?void 0:S.inPlayerSlotId;var d7;L9=(d7=t==null?void 0:t.inPlayerLayoutId)!=null?d7:S==null?void 0:S.inPlayerLayoutId;if(u6===void 0){L=new r("InPlayer shim slot id is undefined");
break a}if(L9===void 0){L=new r("InPlayer shim layout id is undefined");break a}G.push(new LY(L9),new du(u6),new T_(W.Vr.adPodIndex),new O0(Q.adPlacementConfig));t&&G.push(new Sb(t));S&&G.push(new rd(S))}G.push(new YL(W.Vr),new xL(a.externalVideoId),new XZ(z),new He({impressionCommands:a.impressionCommands,abandonCommands:a.onAbandonCommands,completeCommands:a.completeCommands,progressCommands:a.adVideoProgressCommands}),new Vg(W.OL),new z_({current:null}),new fY(W.yDh.wY),new $h(oL(a.pings)),new a1(W.Vr.adPodIndex));
k&&G.push(new sf(k));(W=GJu(e,f))&&G.push(new Ml(W));L&&G.push(new Na(L.OL));a.adNextParams&&G.push(new R1(a.adNextParams));a.clickthroughEndpoint&&G.push(new U0(a.clickthroughEndpoint));a.legacyInfoCardVastExtension&&G.push(new RI(a.legacyInfoCardVastExtension));a.sodarExtensionData&&G.push(new yg(a.sodarExtensionData));J&&a.adPodSkipTarget&&a.adPodSkipTarget>0&&(G.push(J),G.push(new AC(a.adPodSkipTarget)));(L=b.get(a.externalVideoId))&&G.push(new J8(L));L=G}else L=new r("Invalid vod media renderer")}if(L instanceof
r)return L;D=Object.assign({},u,P,{Ij:R,renderingContent:m.renderingContent,clientMetadata:new ru(L),Ur:PF(q,D)(u),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});m=g.A(m.renderingContent,GK);if(!m||!XP(m))return new r("Invalid meida renderer");C=hw(C,m.externalVideoId);C.instreamVideoAdRenderer=m;C.fB="AD_PLACEMENT_KIND_START";return V?(z=$o(f,D,z,h,q,B,N,J,!1),z instanceof r?z:GJu(D.layoutId,f)&&z?{layout:Object.assign({},D,{clientMetadata:new ru(L.concat(new ct(z)))})}:{layout:D,Ps:z}):
{layout:D}};
S0_=function(D,Q,m,P,W){if(!Q2(Q))return new r("Invalid PlayerBytesAdLayoutRenderer");var L=g.A(Q.renderingContent,cX);if(!L||L.durationMilliseconds===void 0)return new r("Invalid endcap renderer");var u={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Wq:"adapter"};P=[new II(L.durationMilliseconds),new He({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new O0(P),
new uq("LAYOUT_TYPE_ENDCAP")];if(W){P.push(new a1(W.Vr.adPodIndex-1));P.push(new T_(W.Vr.adPodIndex));var t;P.push(new AC((t=W.adPodSkipTarget)!=null?t:-1))}return Object.assign({},u,j5,{renderingContent:Q.renderingContent,clientMetadata:new ru(P),Ij:L.skipPings?new Map([["skip",L.skipPings]]):new Map,Ur:PF(m,D)(u),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})};
$o=function(D,Q,m,P,W,L,u,t,z){D=D.filter(function(C){return C.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&C.adSlotMetadata.triggeringSourceLayoutId===Q.layoutId});
if(D.length!==0){if(D.length!==1)return new r("Invalid InPlayer slot association for the given PlayerBytes layout");D=D[0];u=RR7(D,L,m,P,u);if(u instanceof r)return u;var b;L={slotId:D.adSlotMetadata.slotId,slotType:D.adSlotMetadata.slotType,slotPhysicalPosition:(b=D.adSlotMetadata.slotPhysicalPosition)!=null?b:1,Wq:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers,slotExpirationTriggers:u.slotExpirationTriggers};b=g.A(D.fulfillmentContent.fulfilledLayout,
E47);if(!b||!Vi7(b))return new r("Invalid InPlayerAdLayoutRenderer");u={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Wq:"core"};m=UR(b,m,P);if(m instanceof r)return m;P=[];var q=b.adLayoutMetadata.layoutType;z&&P.push(new h8({}));if(q==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")P.push.apply(P,g.on(Mb$(D.adSlotMetadata.triggerEvent,Q)));else if(q==="LAYOUT_TYPE_ENDCAP"||q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){P.push(new O0(HL(D.adSlotMetadata.triggerEvent)));
if(q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new r("Cannot parse endcap layout since AdUxReadyApi is not provided");t&&P.push(t)}else return new r("Not able to parse an SDF InPlayer layout");W=Object.assign({},u,m,{renderingContent:b.renderingContent,Ij:new Map,Ur:PF(W,L)(u),clientMetadata:new ru(P),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:W,clientMetadata:new ru([])})}};
Mb$=function(D,Q){var m=[];m.push(new O0(HL(D)));m.push(new sf(Q.layoutId));(D=G_(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&m.push(new z_(D));(D=G_(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&m.push(new pL(D));(D=G_(Q.clientMetadata,"metadata_type_remote_slots_data"))&&m.push(new J8(D));(D=G_(Q.clientMetadata,"metadata_type_ad_next_params"))&&m.push(new R1(D));(D=G_(Q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&m.push(new U0(D));(D=
G_(Q.clientMetadata,"metadata_type_ad_pod_info"))&&m.push(new YL(D));(Q=G_(Q.clientMetadata,"metadata_type_ad_video_id"))&&m.push(new xL(Q));return m};
rCj=function(D,Q,m,P,W,L){function u(b){return e5(Q,b)}
var t=P.rN.inPlayerSlotId,z={layoutId:P.rN.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Wq:"core"};m={slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:new Lj(u,D),slotFulfillmentTriggers:[new TK(u,t)],slotExpirationTriggers:[new h5(u,t),new y6(u,m)]};D=Object.assign({},z,{layoutExitNormalTriggers:[new dq(u,D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Ij:new Map,clientMetadata:new ru([new Qg(P.rN),
new O0(P.adPlacementConfig),W]),Ur:PF(L,m)(z),adLayoutLoggingData:P.rN.adLayoutLoggingData});return Object.assign({},m,{clientMetadata:new ru([new Be(D)])})};
GJu=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())if(m=m.value,m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var P=g.A(m.fulfillmentContent.fulfilledLayout,LE);if(P&&(P=g.A(P.renderingContent,iP))&&P.associatedPlayerBytesLayoutId===D)return m}};
RR7=function(D,Q,m,P,W){var L=cCj(Ze(D.slotEntryTrigger,m,P),W,D,Q);if(L instanceof r)return L;for(var u=[],t=g.T(D.slotFulfillmentTriggers),z=t.next();!z.done;z=t.next()){z=Ze(z.value,m,P);if(z instanceof r)return z;u.push(z)}u=Da7(u,W,D,Q);Q=[];D=g.T(D.slotExpirationTriggers);for(W=D.next();!W.done;W=D.next()){W=Ze(W.value,m,P);if(W instanceof r)return W;Q.push(W)}return{slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q}};
cCj=function(D,Q,m,P){return Q&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&D instanceof PQ?new Q6(function(W){return e5(P,W)},m.adSlotMetadata.slotId):D};
Da7=function(D,Q,m,P){return Q&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?D.map(function(W){return W instanceof TK?new RZ(function(L){return e5(P,L)},m.adSlotMetadata.slotId):W}):D};
UR=function(D,Q,m){for(var P=[],W=g.T(D.layoutExitNormalTriggers||[]),L=W.next();!L.done;L=W.next()){L=Ze(L.value,Q,m);if(L instanceof r)return L;P.push(L)}W=[];L=g.T(D.layoutExitSkipTriggers||[]);for(var u=L.next();!u.done;u=L.next()){u=Ze(u.value,Q,m);if(u instanceof r)return u;W.push(u)}L=[];u=g.T(D.layoutExitMuteTriggers||[]);for(var t=u.next();!t.done;t=u.next()){t=Ze(t.value,Q,m);if(t instanceof r)return t;L.push(t)}u=[];D=g.T(D.layoutExitUserInputSubmittedTriggers||[]);for(t=D.next();!t.done;t=
D.next()){t=Ze(t.value,Q,m);if(t instanceof r)return t;u.push(t)}return{layoutExitNormalTriggers:P,layoutExitSkipTriggers:W,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:u,iE:[]}};
KE=function(D){var Q=g.A(D.renderingContent,GK);if(Q==null?0:Q.pings)return fZ(Q.pings);D=g.A(D.renderingContent,cX);return(D==null?0:D.skipPings)?new Map([["skip",D.skipPings]]):new Map};
AC$=function(D,Q,m,P,W){Q=g.A(Q.renderingContent,GK);if(!Q)return new r("Invalid rendering content for DAI media layout");D=[new XZ(P),new fY(m.J$.videoLengthSeconds),new Vg(m.J$.playerVars),new ZR(m.Ni),new F9(m.ql),new T_(m.sT),new O0(HL(D)),new xL(m.J$.adVideoId),new YL(m.Vr),Q.sodarExtensionData&&new yg(Q.sodarExtensionData),new z_({current:null}),new h8({}),new $h(oL(Q.pings))].filter(IAw);W!==void 0&&D.push(new gu(W));return D};
aA_=function(D,Q,m){D=D.map(function(z){return ws(g.A(z.renderingContent,GK),!1)});
var P=D.map(function(z){return z.videoLengthSeconds}),W=P.map(function(z,b){return new m3(b,P)}),L=Q,u=m,t=[];
D.forEach(function(z,b){u=Math.min(L+z.videoLengthSeconds*1E3,m);F0(z.playerVars,W[b]);t.push({J$:z,Ni:L,ql:u,sT:b,Vr:W[b]});L=u});
return t};
ptP=function(D,Q,m){for(var P=[],W=g.T(D),L=W.next();!L.done;L=W.next())if(L=g.A(L.value.renderingContent,GK)){if(!XP(L))return new r("Invalid vod media renderer");P.push(QIj(L))}W=P.map(function(C){return C.wY});
L=[];for(var u=0,t=0;t<D.length;t++){var z=g.A(D[t].renderingContent,GK);if(z){var b=new m3(u,W),q=Jw(P[u].playerVars,P[u].tF,Q,m,b);L[t]={Vr:b,adPodSkipTarget:z.adPodSkipTarget,yDh:P[u],OL:q};u++}}return L};
QIj=function(D){var Q=GG(D.playerVars),m=Number(Q.length_seconds);isNaN(m)&&(m=0,bu("Expected valid length seconds in player vars but got NaN"));return{playerVars:Q,tF:D.playerVars,wY:m}};
HL=function(D){switch(D){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"}}};
vLj=function(D){if(g.A(D.renderingContent,OY)){var Q;return((Q=g.A(D.renderingContent,OY))==null?void 0:Q.impressionPings)||[]}if(g.A(D.renderingContent,eD)){var m;return((m=g.A(D.renderingContent,eD))==null?void 0:m.impressionPings)||[]}if(g.A(D.renderingContent,vQ)){var P;return((P=g.A(D.renderingContent,vQ))==null?void 0:P.impressionPings)||[]}return[]};
Pqw=function(D,Q,m,P,W,L,u,t,z){var b=m.pings;return b?[ma$(D,L,t,W,function(q){var C=q.slotId;q=z(q);var f=m.adLayoutLoggingData,V=m.progressCommands;C=vF(Q.C.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",C);var N={layoutId:C,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Wq:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ij:fZ(b),layoutExitNormalTriggers:[new y6(Q.S,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
iE:[],Wq:"core",clientMetadata:new ru([new O0(P),new $h(oL(b)),new eB(JG6(b)),new fY(u/1E3),new He({progressCommands:V}),new lq(u/1E3)]),Ur:q(N),adLayoutLoggingData:f}})]:new r("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:m})};
iYh=function(D,Q,m,P,W,L,u,t){D=Wt7(D,m,L,u,P,function(z){var b=z.slotId;z=t(z);b=vF(Q.C.get(),"LAYOUT_TYPE_FORECASTING",b);var q={layoutId:b,layoutType:"LAYOUT_TYPE_FORECASTING",Wq:"core"},C=new Map,f=W.impressionUrls;f&&C.set("impression",f);return{layoutId:b,layoutType:"LAYOUT_TYPE_FORECASTING",Ij:C,layoutExitNormalTriggers:[new Nq(Q.S,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new Ef(W),new O0(m)]),Ur:z(q)}});
return D instanceof r?D:[D]};
Lt_=function(D,Q,m,P,W,L,u){return[sIr(D,L,P,function(t){var z=t.slotId;t=u(t);z=vF(Q.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);var b={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Wq:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ij:new Map,layoutExitNormalTriggers:[new y6(Q.S,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new Sb(W),new O0(m)]),Ur:t(b),
adLayoutLoggingData:W.adLayoutLoggingData}})]};
da9=function(D,Q,m,P,W,L,u,t){D=u9$(D,m,L,u,P,function(z,b){var q=z.slotId;z=t(z);var C=W.contentSupportedRenderer;C?C.textOverlayAdContentRenderer?(C=vF(Q.C.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",q),b=vL(Q,C,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",W,m,z,OR(Q,b,q))):C.enhancedTextOverlayAdContentRenderer?(C=vF(Q.C.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",q),b=vL(Q,C,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",W,m,z,OR(Q,b,q))):C.imageOverlayAdContentRenderer?(C=vF(Q.C.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
q),b=OR(Q,b,q),b.push(new Kj(Q.S,45E3,C)),b=vL(Q,C,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",W,m,z,b)):b=new SB("InvideoOverlayAdRenderer without appropriate sub renderer"):b=new SB("InvideoOverlayAdRenderer without contentSupportedRenderer");return b});
return D instanceof r?D:[D]};
bY7=function(D,Q,m,P,W,L,u,t,z){var b=Number(P.durationMilliseconds);return isNaN(b)?new r("Expected valid duration for AdActionInterstitialRenderer."):function(q){return tB7(Q,q.slotId,m,P,b,{impressionCommands:void 0,abandonCommands:P.abandonCommands?[{commandExecutorCommand:P.abandonCommands}]:void 0,completeCommands:P.completionCommands},P.skipPings?new Map([["skip",P.skipPings]]):new Map,u(q),function(C){return z39(D,C,W,function(f,V){var N=f.slotId;f=u(f);N=vF(Q.C.get(),"LAYOUT_TYPE_ENDCAP",
N);return BL(Q,N,V,m,f,"LAYOUT_TYPE_ENDCAP",[new Qg(P),t],P.adLayoutLoggingData)})},z,L-1,P.adLayoutLoggingData,L)}};
qfj=function(D,Q,m,P){if(!m.playerVars)return new r("No playerVars available in AdIntroRenderer.");var W=GG(m.playerVars);W.autoplay="1";return function(L){var u=L.slotId;L=P(L);u=vF(D.C.get(),"LAYOUT_TYPE_MEDIA",u);var t={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",Wq:"adapter"};return{qp:{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",Ij:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"adapter",clientMetadata:new ru([new nY({}),
new O0(Q),new z_({current:null}),new Vg(W)]),Ur:L(t)},NK:[new uj(D.S,u,["error"])],td:[],RT:[],B3:[]}}};
oh7=function(D,Q,m,P,W,L,u,t,z,b){b=b===void 0?!1:b;var q=ER(W);if(!lwh(W,b))return new r("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:W});if(q<=0)return new r("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:W});var C=mlu(D,Q,W,L,m,P,u);return C instanceof r?C:function(f){return Cqw(Q,f.slotId,m,q,W,gs(W),u(f),C,t,z)}};
fRP=function(D,Q,m,P,W,L,u,t){function z(C){return z39(D,C,P,b)}
function b(C,f){var V=C.slotId;C=u(C);V=vF(Q.C.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",V);return BL(Q,V,f,m,C,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new mt(W),L],W.adLayoutLoggingData)}
if(!Hh_(W))return new r("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:W});var q=W.timeoutSeconds*1E3;return function(C){var f=C.slotId,V={impressionCommands:W.impressionCommands,completeCommands:W.timeoutCommands,skipCommands:W.dismissCommands};C=u(C);f=Yo(Q,f,m,q,V,new Map,C,z,void 0,au(Q,m,W.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));V=new LY(f.Ds);C=new a1(t);return{qp:{layoutId:f.layoutId,layoutType:f.layoutType,Ij:f.Ij,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:f.Wq,clientMetadata:new ru([].concat(g.on(f.gS),[V,C])),Ur:f.Ur,adLayoutLoggingData:f.adLayoutLoggingData},NK:[],td:f.layoutExitMuteTriggers,RT:f.layoutExitUserInputSubmittedTriggers,B3:f.iE,Ps:f.Ps}}};
Nun=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h){D=so(D,"SLOT_TYPE_PLAYER_BYTES");P=ZL7(Q,u,P,W,D,b,q);if(P instanceof r)return P;var B;u=(B=G_(P.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:B.layoutId;if(!u)return new r("Invalid adNotify layout");Q=VBm(u,Q,m,W,L,z,t,b,C,f,V,N,h);return Q instanceof r?Q:[P].concat(g.on(Q))};
VBm=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){m=y8_(Q,m,P,L,u,t,z,b,q,C,f);ZYn(L)?(P=Ftw(Q,D),D=so(Q.C.get(),"SLOT_TYPE_IN_PLAYER"),L=vF(Q.C.get(),"LAYOUT_TYPE_SURVEY",D),t=Aw(Q,P,t),Q=[].concat(g.on(t.slotExpirationTriggers),[new WQ(Q.S,L)]),D=m({slotId:t.slotId,slotType:t.slotType,slotPhysicalPosition:t.slotPhysicalPosition,slotEntryTrigger:t.slotEntryTrigger,slotFulfillmentTriggers:t.slotFulfillmentTriggers,slotExpirationTriggers:Q,Wq:t.Wq},{slotId:D,layoutId:L}),W=D instanceof r?D:{pD:Object.assign({},
t,{slotExpirationTriggers:Q,clientMetadata:new ru([new Be(D.layout)]),adSlotLoggingData:W}),mO:D.mO}):W=nL4(Q,D,t,W,m);return W instanceof r?W:[].concat(g.on(W.mO),[W.pD])};
h3m=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){Q=y8_(D,Q,m,W,L,u,z,b,q,C,f,V);ZYn(W)?(W=Tuk(D,m,u,t),W instanceof r?D=W:(t=so(D.C.get(),"SLOT_TYPE_IN_PLAYER"),z=vF(D.C.get(),"LAYOUT_TYPE_SURVEY",t),u=[].concat(g.on(W.slotExpirationTriggers),[new WQ(D.S,z)]),t=Q({slotId:W.slotId,slotType:W.slotType,slotPhysicalPosition:W.slotPhysicalPosition,Wq:W.Wq,slotEntryTrigger:W.slotEntryTrigger,slotFulfillmentTriggers:W.slotFulfillmentTriggers,slotExpirationTriggers:u},{slotId:t,layoutId:z}),D=t instanceof r?t:{pD:{slotId:W.slotId,
slotType:W.slotType,slotPhysicalPosition:W.slotPhysicalPosition,slotEntryTrigger:pE(D,m,W.slotId,W.slotEntryTrigger),slotFulfillmentTriggers:xo(D,m,W.slotId,W.slotFulfillmentTriggers),slotExpirationTriggers:u,Wq:W.Wq,clientMetadata:new ru([new Of(X0(m)),new Be(t.layout),new aI({Mo:D.Mo(m)})]),adSlotLoggingData:P},mO:t.mO})):D=ELw(D,m,u,t,P,z.VX,Q);return D instanceof r?D:D.mO.concat(D.pD)};
ZYn=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(g.A(Q.value,cQ))return!0;return!1};
y8_=function(D,Q,m,P,W,L,u,t,z,b,q,C){return function(f,V){if(b1(q)&&qg(q))a:{var N=nh$(P,m,q);if(N instanceof r)V=N;else{for(var h=0,B=[],J=[],k=[],R=[],e=[],a=[],G=new bq({current:null}),S=new pL({current:null}),u6=!1,L9=[],d7=0,b6=[],mj=0;mj<P.length;mj++){var kP=P[mj],S$=g.A(kP,GK);if(S$){S$=ko(S$,m,q);if(S$ instanceof SB){V=new r(S$);break a}var DN=new m3(d7,N),V4=Jw(S$.playerVars,S$.tF,u,b,DN);d7++;b6[mj]={renderer:kP,data:S$,Vr:DN,OL:V4}}}d7=-1;for(N=0;N<P.length;N++)if(mj=P[N],kP=g.A(mj,Mq)){mj=
qfj(Q,m,kP,t);if(mj instanceof r){V=mj;break a}mj=mj(f);B.push(mj.qp);J=[].concat(g.on(mj.NK),g.on(J));k=[].concat(g.on(mj.td),g.on(k));mj.Ps&&(L9=[mj.Ps].concat(g.on(L9)))}else if(g.A(mj,GK))kP=b6[N],d7=kP.data,mj=kP.Vr,kP=kP.OL,S$=b6[N+1],DN=void 0,S$&&(DN=S$.OL),mj=Ehr(Q,d7.layoutId,d7.tP,m,kP,d7.wY,L,mj,t(f),S,z.get(d7.tP.externalVideoId),DN,C),h++,B.push(mj.qp),J=[].concat(g.on(mj.NK),g.on(J)),k=[].concat(g.on(mj.td),g.on(k)),u6||(a.push(S),u6=!0),d7=(d7=d7.tP.adPodSkipTarget)&&d7>0?d7:-1;else if(kP=
g.A(mj,cX)){mj=bY7(D,Q,m,kP,L,h,t,S,d7);if(mj instanceof r){V=mj;break a}mj=mj(f);B.push(mj.qp);J=[].concat(g.on(mj.NK),g.on(J));k=[].concat(g.on(mj.td),g.on(k));mj.Ps&&(L9=[mj.Ps].concat(g.on(L9)))}else if(kP=g.A(mj,cQ)){if(V===void 0){V=new r("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:kP});break a}mj=oh7(D,Q,m,L,kP,G,t,V,h,eq(q,"supports_multi_step_on_desktop"));if(mj instanceof r){V=mj;break a}mj=mj(f);B.push(mj.qp);mj.Ps&&L9.push(mj.Ps);
J=[].concat(g.on(mj.NK),g.on(J));k=[].concat(g.on(mj.td),g.on(k));R=[].concat(g.on(mj.RT),g.on(R));e=[].concat(g.on(mj.B3),g.on(e));a=[G].concat(g.on(a))}else if(mj=g.A(mj,De)){mj=fRP(D,Q,m,L,mj,G,t,h);if(mj instanceof r){V=mj;break a}mj=mj(f);B.push(mj.qp);mj.Ps&&L9.push(mj.Ps);k=[].concat(g.on(mj.td),g.on(k))}else{V=new r("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={Xl:B,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:R,iE:e,layoutExitMuteTriggers:k,gS:a,mO:L9}}}else a:if(h=
nh$(P,m,q),h instanceof r)V=h;else{B=0;J=[];k=[];R=[];e=[];a=[];G=[];S=new bq({current:null});u6=new pL({current:null});L9=!1;b6=[];d7=-1;N=g.T(P);for(mj=N.next();!mj.done;mj=N.next())if(mj=mj.value,g.A(mj,Mq)){mj=qfj(Q,m,g.A(mj,Mq),t);if(mj instanceof r){V=mj;break a}mj=mj(f);J.push(mj.qp);k=[].concat(g.on(mj.NK),g.on(k));R=[].concat(g.on(mj.td),g.on(R));mj.Ps&&(b6=[mj.Ps].concat(g.on(b6)))}else if(g.A(mj,GK)){d7=ko(g.A(mj,GK),m,q);if(d7 instanceof SB){V=new r(d7);break a}mj=new m3(B,h);mj=Ehr(Q,
d7.layoutId,d7.tP,m,Jw(d7.playerVars,d7.tF,u,b,mj),d7.wY,L,mj,t(f),u6,z.get(d7.tP.externalVideoId),void 0,C);B++;J.push(mj.qp);k=[].concat(g.on(mj.NK),g.on(k));R=[].concat(g.on(mj.td),g.on(R));L9||(G.push(u6),L9=!0);d7=(d7=d7.tP.adPodSkipTarget)&&d7>0?d7:-1}else if(g.A(mj,cX)){mj=bY7(D,Q,m,g.A(mj,cX),L,B,t,u6,d7);if(mj instanceof r){V=mj;break a}mj=mj(f);J.push(mj.qp);k=[].concat(g.on(mj.NK),g.on(k));R=[].concat(g.on(mj.td),g.on(R));mj.Ps&&(b6=[mj.Ps].concat(g.on(b6)))}else if(g.A(mj,cQ)){if(V===
void 0){V=new r("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.A(mj,cQ)});break a}mj=oh7(D,Q,m,L,g.A(mj,cQ),S,t,V,B,eq(q,"supports_multi_step_on_desktop"));if(mj instanceof r){V=mj;break a}mj=mj(f);J.push(mj.qp);mj.Ps&&b6.push(mj.Ps);k=[].concat(g.on(mj.NK),g.on(k));R=[].concat(g.on(mj.td),g.on(R));e=[].concat(g.on(mj.RT),g.on(e));a=[].concat(g.on(mj.B3),g.on(a));G=[S].concat(g.on(G))}else if(g.A(mj,De)){mj=fRP(D,Q,m,L,g.A(mj,De),S,t,B);if(mj instanceof
r){V=mj;break a}mj=mj(f);J.push(mj.qp);mj.Ps&&b6.push(mj.Ps);R=[].concat(g.on(mj.td),g.on(R))}else{V=new r("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={Xl:J,layoutExitSkipTriggers:k,layoutExitUserInputSubmittedTriggers:e,iE:a,layoutExitMuteTriggers:R,gS:G,mO:b6}}V instanceof r?f=V:(a=f.slotId,h=V.Xl,B=V.layoutExitSkipTriggers,J=V.layoutExitMuteTriggers,k=V.layoutExitUserInputSubmittedTriggers,R=V.gS,f=t(f),e=W?W.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",a=W?W.layoutId:
vF(Q.C.get(),e,a),G={layoutId:a,layoutType:e,Wq:"core"},f={layout:{layoutId:a,layoutType:e,Ij:new Map,layoutExitNormalTriggers:[new Nq(Q.S,a)],layoutExitSkipTriggers:B,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:k,iE:[],Wq:"core",clientMetadata:new ru([new qa(h)].concat(g.on(R))),Ur:f(G)},mO:V.mO});return f}};
nh$=function(D,Q,m){var P=[];D=g.T(D);for(var W=D.next();!W.done;W=D.next())if(W=W.value,g.A(W,GK)){W=ko(g.A(W,GK),Q,m);if(W instanceof SB)return new r(W);P.push(W.wY)}return P};
Bum=function(D,Q,m,P,W,L,u,t){if(!lwh(m,t===void 0?!1:t))return new r("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:m});var z=ER(m);if(z<=0)return new r("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:m});var b=new bq({current:null}),q=mlu(D,Q,m,b,P,L,u);return ghh(D,P,L,z,W,function(C,f){var V=C.slotId,N=gs(m);C=u(C);var h,B=(h=au(Q,P,m.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?h:
vF(Q.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);V={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Wq:"core"};h=q(B,f);var J=G_(h.clientMetadata,"metadata_type_fulfilled_layout");J||bu("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");N=[new O0(P),new II(z),new He(N),b];J&&N.push(new uq(J.layoutType));return{QyD:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ij:new Map,layoutExitNormalTriggers:[new Nq(Q.S,B)],layoutExitSkipTriggers:[new FP(Q.S,
f.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new HQ(Q.S,f.layoutId)],iE:[],Wq:"core",clientMetadata:new ru(N),Ur:C(V)},HA:h}})};
we$=function(D){if(!Uy7(D))return!1;var Q=g.A(D.adVideoStart,S5);return Q?g.A(D.linearAd,GK)&&pj(Q)?!0:(bu("Invalid Sandwich with notify"),!1):!1};
k_4=function(D){if(D.linearAds==null)return!1;D=g.A(D.adStart,S5);return D?pj(D)?!0:(bu("Invalid LASR with notify"),!1):!1};
J8m=function(D){if(!R2_(D))return!1;D=g.A(D.adStart,S5);return D?pj(D)?!0:(bu("Invalid LASR with notify"),!1):!1};
rs=function(D,Q,m,P,W,L,u,t,z,b){this.B=D;this.C=Q;this.S=m;this.Ry=P;this.BO=W;this.T=L;this.Hq=u;this.a_=t;this.Xs=z;this.loadPolicy=b===void 0?1:b};
Nr=function(D,Q,m,P,W,L,u,t,z,b,q){var C=[];if(Q.length===0&&P.length===0&&m.length===0)return C;Q=Q.filter(xr);var f=m.filter(wgr),V=P.filter(xr),N=new Map,h=lA9(Q),B=m.some(function(DN){var V4;return(DN==null?void 0:(V4=DN.adSlotMetadata)==null?void 0:V4.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),J=m.some(function(DN){var V4;
return(DN==null?void 0:(V4=DN.adSlotMetadata)==null?void 0:V4.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),k=m.some(function(DN){var V4;
return(DN==null?void 0:(V4=DN.adSlotMetadata)==null?void 0:V4.slotType)==="SLOT_TYPE_IN_PLAYER"}),R=m.some(function(DN){var V4,uv;
return(DN==null?void 0:(V4=DN.adSlotMetadata)==null?void 0:V4.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(DN==null?void 0:(uv=DN.adSlotMetadata)==null?void 0:uv.slotType)==="SLOT_TYPE_ABOVE_FEED"});
m=m.some(function(DN){var V4;return(DN==null?void 0:(V4=DN.adSlotMetadata)==null?void 0:V4.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
if(B||J||k||R||m)b=eRh(f,Q,t,W,h,D.BO.get(),D.loadPolicy,N,D.Ry.get(),D.B.get(),k,u,z,b,q),b instanceof r?bu(b,void 0,void 0,{contentCpn:W}):C.push.apply(C,g.on(b));b=g.T(Q);for(q=b.next();!q.done;q=b.next())q=q.value,m=lRn(D,N,q,W,L,u,B,t,h,z,f),m instanceof r?bu(m,void 0,void 0,{renderer:q.renderer,config:q.config.adPlacementConfig,kind:q.config.adPlacementConfig.kind,contentCpn:W,daiEnabled:u}):C.push.apply(C,g.on(m));IRk(D.Ry.get())||(L=R37(D,V,W,t,h,N),C.push.apply(C,g.on(L)));if(D.T===null||
u&&!t.XD){var e,a,G;D=t.VX&&Q.length===1&&((e=Q[0].config)==null?void 0:(a=e.adPlacementConfig)==null?void 0:a.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((G=Q[0].renderer)==null?void 0:G.adBreakServiceRenderer);if(!C.length&&!D){var S,u6,L9,d7;bu("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:W,"first APR kind":(S=Q[0])==null?void 0:(u6=S.config)==null?void 0:(L9=u6.adPlacementConfig)==null?void 0:L9.kind,renderer:(d7=
Q[0])==null?void 0:d7.renderer})}return C}e=P.filter(xr);C.push.apply(C,g.on(cP7(N,e,D.C.get(),D.T,W,B)));if(!C.length){var b6,mj,kP,S$;bu("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:W,daiEnabled:u.toString(),"first APR kind":(b6=Q[0])==null?void 0:(mj=b6.config)==null?void 0:(kP=mj.adPlacementConfig)==null?void 0:kP.kind,renderer:(S$=Q[0])==null?void 0:S$.renderer})}return C};
R37=function(D,Q,m,P,W,L){function u(f){return PF(D.BO.get(),f)}
var t=[];Q=g.T(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var b=z.renderer,q=b.sandwichedLinearAdRenderer,C=b.linearAdSequenceRenderer;q&&we$(q)?(bu("Found AdNotify with SandwichedLinearAdRenderer"),C=g.A(q.adVideoStart,S5),q=g.A(q.linearAd,GK),TB(L,b,z.config.adPlacementConfig.kind),b=void 0,C=FPh((b=C)==null?void 0:b.layout.layoutId,D.C.get(),D.S.get(),z.config.adPlacementConfig,z.adSlotLoggingData,q,m,P,u,W,D.loadPolicy,D.Ry.get(),D.BO.get()),C instanceof r?bu(C):t.push.apply(t,g.on(C))):
C&&(!C.adLayoutMetadata&&k_4(C)||C.adLayoutMetadata&&J8m(C))&&(bu("Found AdNotify with LinearAdSequenceRenderer"),TB(L,b,z.config.adPlacementConfig.kind),b=void 0,q=VBm((b=g.A(C.adStart,S5))==null?void 0:b.layout.layoutId,D.C.get(),D.S.get(),z.config.adPlacementConfig,z.adSlotLoggingData,C.linearAds,$r(C.adLayoutMetadata)?C.adLayoutMetadata:void 0,m,P,u,W,D.loadPolicy,D.Ry.get()),q instanceof r?bu(q):t.push.apply(t,g.on(q)))}return t};
lRn=function(D,Q,m,P,W,L,u,t,z,b,q){function C(J){return PF(D.BO.get(),J)}
var f=m.renderer,V=m.config.adPlacementConfig,N=V.kind,h=m.adSlotLoggingData,B=t.XD&&N==="AD_PLACEMENT_KIND_START";B=L&&!B;if(f.adsEngagementPanelRenderer!=null)return nE(Q,m.elementId,N,f.adsEngagementPanelRenderer.isContentVideoEngagementPanel,f.adsEngagementPanelRenderer.adVideoId,f.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.adsEngagementPanelRenderer;J=PF(D.BO.get(),J);return GB(a,G,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new lm(S),k,R,S.impressionPings,J,f.adsEngagementPanelRenderer.adLayoutLoggingData,e)}),[];
if(f.adsEngagementPanelLayoutViewModel)return nE(Q,m.elementId,N,f.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,f.adsEngagementPanelLayoutViewModel.adVideoId,f.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.adsEngagementPanelLayoutViewModel;J=PF(D.BO.get(),J);return Mr(a,G,"LAYOUT_TYPE_PANEL",new I1(S),k,R,J,f.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,e)}),[];
if(f.actionCompanionAdRenderer!=null){if(f.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Xgw(D.C.get(),D.T,D.S.get(),f.actionCompanionAdRenderer,V,h,P,C);nE(Q,m.elementId,N,f.actionCompanionAdRenderer.isContentVideoCompanion,f.actionCompanionAdRenderer.adVideoId,f.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.actionCompanionAdRenderer;J=PF(D.BO.get(),J);return GB(a,G,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new kL(S),k,R,S.impressionPings,J,f.actionCompanionAdRenderer.adLayoutLoggingData,e)})}else if(f.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(f.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return S$w(D.C.get(),D.T,D.S.get(),f.topBannerImageTextIconButtonedLayoutViewModel,V,h,P,C);
nE(Q,m.elementId,N,f.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,f.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,f.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.topBannerImageTextIconButtonedLayoutViewModel;J=PF(D.BO.get(),J);return Mr(a,G,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new JC(S),k,R,J,f.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,e)})}else if(f.imageCompanionAdRenderer)nE(Q,
m.elementId,N,f.imageCompanionAdRenderer.isContentVideoCompanion,f.imageCompanionAdRenderer.adVideoId,f.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.imageCompanionAdRenderer;
J=PF(D.BO.get(),J);return GB(a,G,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new KL(S),k,R,S.impressionPings,J,f.imageCompanionAdRenderer.adLayoutLoggingData,e)});
else if(f.bannerImageLayoutViewModel)nE(Q,m.elementId,N,f.bannerImageLayoutViewModel.isContentVideoCompanion,f.bannerImageLayoutViewModel.adVideoId,f.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.bannerImageLayoutViewModel;J=PF(D.BO.get(),J);return Mr(a,G,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new jb(S),k,R,J,f.bannerImageLayoutViewModel.adLayoutLoggingData,e)});
else if(f.shoppingCompanionCarouselRenderer)nE(Q,m.elementId,N,f.shoppingCompanionCarouselRenderer.isContentVideoCompanion,f.shoppingCompanionCarouselRenderer.adVideoId,f.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,V,h,function(J,k,R,e){var a=D.S.get(),G=J.slotId,S=f.shoppingCompanionCarouselRenderer;J=PF(D.BO.get(),J);return GB(a,G,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new $L(S),k,R,S.impressionPings,J,f.shoppingCompanionCarouselRenderer.adLayoutLoggingData,e)});
else if(f.adBreakServiceRenderer){if(!pgn(m))return[];if(N==="AD_PLACEMENT_KIND_PAUSE")return APP(D.C.get(),V,h,m.renderer.adBreakServiceRenderer,P);if(N!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&N!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return awj(D.C.get(),V,h,m.renderer.adBreakServiceRenderer,P,W,L);t.VX||bu("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:N,adPlacementConfig:V,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(t.VX),clientPlaybackNonce:t.clientPlaybackNonce});
if(N==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!D.Hq)return new r("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!D.Xs)return new r("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");D.Xs.Sy({adPlacementRenderer:m,contentCpn:P,F9:W});W=D.Hq.get().getCurrentTimeSec(1,!1);return Uaw(D.C.get(),m.renderer.adBreakServiceRenderer,V,W,P,h,L)}if(!D.a_)return new r("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
D.a_.Sy({adPlacementRenderer:m,contentCpn:P,F9:W})}else{if(f.clientForecastingAdRenderer)return iYh(D.C.get(),D.S.get(),V,h,f.clientForecastingAdRenderer,P,W,C);if(f.invideoOverlayAdRenderer)return da9(D.C.get(),D.S.get(),V,h,f.invideoOverlayAdRenderer,P,W,C);if(f.instreamAdPlayerOverlayRenderer)return Lt_(D.C.get(),D.S.get(),V,h,f.instreamAdPlayerOverlayRenderer,P,C);if((f.linearAdSequenceRenderer||f.instreamVideoAdRenderer)&&B)return oLn(D.C.get(),D.S.get(),m,P,C,b,!D.Ry.get().D.G().V("html5_override_ad_video_length_killswitch"));
if(f.linearAdSequenceRenderer&&!B){if(u)return[];TB(Q,f,N);if(f.linearAdSequenceRenderer.adLayoutMetadata){if(!R2_(f.linearAdSequenceRenderer))return new r("Received invalid LinearAdSequenceRenderer.")}else if(f.linearAdSequenceRenderer.linearAds==null)return new r("Received invalid LinearAdSequenceRenderer.");if(g.A(f.linearAdSequenceRenderer.adStart,S5)){bu("Found AdNotify in LinearAdSequenceRenderer");m=g.A(f.linearAdSequenceRenderer.adStart,S5);if(!o4j(m))return new r("Invalid AdMessageRenderer.");
L=f.linearAdSequenceRenderer.linearAds;return Nun(D.B.get(),D.C.get(),D.S.get(),D.BO.get(),V,h,m,$r(f.linearAdSequenceRenderer.adLayoutMetadata)?f.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,P,W,t,C,z,D.loadPolicy,D.Ry.get())}return h3m(D.C.get(),D.S.get(),V,h,f.linearAdSequenceRenderer.linearAds,$r(f.linearAdSequenceRenderer.adLayoutMetadata)?f.linearAdSequenceRenderer.adLayoutMetadata:void 0,P,W,t,C,z,D.loadPolicy,D.Ry.get(),q)}if(!f.remoteSlotsRenderer||L){if(f.instreamVideoAdRenderer&&
!B){if(u)return[];TB(Q,f,N);return gLh(D.C.get(),D.S.get(),V,h,f.instreamVideoAdRenderer,P,W,t,C,z,D.loadPolicy,D.Ry.get(),D.BO.get(),q)}if(f.instreamSurveyAdRenderer)return Bum(D.C.get(),D.S.get(),f.instreamSurveyAdRenderer,V,h,P,C,eq(D.Ry.get(),"supports_multi_step_on_desktop"));if(f.sandwichedLinearAdRenderer!=null)return Uy7(f.sandwichedLinearAdRenderer)?g.A(f.sandwichedLinearAdRenderer.adVideoStart,S5)?(bu("Found AdNotify in SandwichedLinearAdRenderer"),m=g.A(f.sandwichedLinearAdRenderer.adVideoStart,
S5),o4j(m)?(L=g.A(f.sandwichedLinearAdRenderer.linearAd,GK))?Tdm(m,L,V,D.B.get(),D.C.get(),D.S.get(),D.BO.get(),h,P,W,t,C,z,D.loadPolicy,D.Ry.get()):new r("Missing IVAR from Sandwich"):new r("Invalid AdMessageRenderer.")):h3m(D.C.get(),D.S.get(),V,h,[f.sandwichedLinearAdRenderer.adVideoStart,f.sandwichedLinearAdRenderer.linearAd],void 0,P,W,t,C,z,D.loadPolicy,D.Ry.get()):new r("Received invalid SandwichedLinearAdRenderer.");if(f.videoAdTrackingRenderer!=null)return Pqw(D.C.get(),D.S.get(),f.videoAdTrackingRenderer,
V,h,P,W,t.LU,C)}}return[]};
cL=function(D,Q,m,P,W,L,u,t){g.v.call(this);var z=this;this.C=D;this.T=Q;this.sC=P;this.Hq=W;this.Ry=L;this.eD=u;this.De=t;this.S=null;m.get().addListener(this);this.addOnDisposeCallback(function(){m.VF()||m.get().removeListener(z)});
P.get().addListener(this);this.addOnDisposeCallback(function(){P.VF()||P.get().removeListener(z)})};
PS=function(D,Q,m){var P=D.Hq.get().getCurrentTimeSec(1,!1);D.Ry.get().D.G().xl()&&UJ(D.eD.get(),"sdai","onopp.1;evt."+m.event+";start."+m.startSecs.toFixed(3)+";d."+m.m$.toFixed(3));ia(D.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var W=D.T.get(),L=Q.adPlacementRenderer.renderer.adBreakServiceRenderer,u=Q.contentCpn,t=Q.adPlacementRenderer.adSlotLoggingData;D4(D.Ry.get());var z=D.eD;var b=W.Ry.get();b=g.WF(b.D.G().experiments,"max_prefetch_window_sec_for_livestream_optimization");
var q=W.Ry.get();var C=g.WF(q.D.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");q=m.startSecs*1E3;q={Cc:new y9(q,q+m.m$*1E3),uL:!1,cueProcessedMs:P*1E3};var f=m.startSecs+m.m$;if(P===0)q.lx=new y9(0,f*1E3);else{C=m.startSecs-C;var V=C-P;q.lx=V<=0?new y9(C*1E3,f*1E3):new y9(Math.floor(P+Math.random()*Math.min(V,b))*1E3,f*1E3)}L=y2(W,L,u,q,t,[new CY(m)]);Q5(W.Ry.get())&&UJ(z.get(),"abrsm","cpi."+m.identifier+";cps."+m.startSecs+";cpd."+m.m$+";cts."+P+";rbf."+q.lx.start);z.get().D.qW(m.startSecs-
P,q.lx.start/1E3-P);return[L]})};
WS=function(D){var Q,m=(Q=G_(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!m)return null;Q=G_(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=D.layoutId,W=G_(D.clientMetadata,"metadata_type_content_cpn"),L=G_(D.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=G_(D.clientMetadata,"metadata_type_player_overlay_layout_renderer"),t=G_(D.clientMetadata,"metadata_type_player_underlay_renderer"),z=G_(D.clientMetadata,
"metadata_type_ad_placement_config"),b=G_(D.clientMetadata,"metadata_type_video_length_seconds");var q=pY(D.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?G_(D.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):pY(D.clientMetadata,"metadata_type_layout_enter_ms")&&pY(D.clientMetadata,"metadata_type_layout_exit_ms")?(G_(D.clientMetadata,"metadata_type_layout_exit_ms")-G_(D.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{G9:P,contentCpn:W,M8:m,gZ:Q,instreamAdPlayerOverlayRenderer:L,
playerOverlayLayoutRenderer:u,instreamAdPlayerUnderlayRenderer:t,adPlacementConfig:z,videoLengthSeconds:b,Qa:q,inPlayerLayoutId:G_(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(D.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Kt6=function(D,Q){return HY6(D,Q)};
jIm=function(D,Q){Q=HY6(D,Q);if(!Q)return null;var m;Q.Qa=(m=G_(D.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:m.adBreakRemainingLengthSeconds;return Q};
HY6=function(D,Q){var m,P=(m=G_(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:m.current;if(!P)return null;m=sq$(D,Q);return{fV:iXj(D,Q),adPlacementConfig:G_(D.clientMetadata,"metadata_type_ad_placement_config"),yC:m,contentCpn:G_(D.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:G_(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:G_(D.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:G_(D.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Qa:void 0,M8:P,G9:D.layoutId,videoLengthSeconds:G_(D.clientMetadata,"metadata_type_video_length_seconds")}};
ir=function(D,Q,m,P,W,L,u,t,z){g.v.call(this);this.B=D;this.N=Q;this.J=m;this.T=P;this.S=W;this.C=L;this.BO=u;this.Ry=t;this.qv=z;this.C6=!0};
$a7=function(D,Q,m){return kJu(D.S.get(),Q.contentCpn,Q.G9,function(P){return JCw(D.C.get(),P.slotId,m,Q.adPlacementConfig,Q.G9,PF(D.BO.get(),P))})};
sE=function(D,Q,m,P,W,L,u,t){g.v.call(this);this.C=D;this.S=Q;this.T=m;this.Ry=P;this.B=W;this.qv=L;this.Hq=u;this.Jx=t};
Li=function(D){g.v.call(this);this.S=D};
ia=function(D,Q,m,P){D.S().Ge(Q,P);m=m();D=D.S();D.rB.BT("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Q,P,m);Q=g.T(m);for(m=Q.next();!m.done;m=Q.next())a:{P=D;m=m.value;P.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",m);P.rB.hd("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",m);try{var W=P.S;if(g.J6(m.slotId))throw new r("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(bJ(W,m))throw new r("Duplicate registration for slot.",{slotId:m.slotId,slotEntryTriggerType:m.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!W.lH.OD.has(m.slotType))throw new r("No fulfillment adapter factory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!W.lH.PL.has(m.slotType))throw new r("No SlotAdapterFactory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");k8(W,"TRIGGER_CATEGORY_SLOT_ENTRY",m.slotEntryTrigger?[m.slotEntryTrigger]:[]);k8(W,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
m.slotFulfillmentTriggers);k8(W,"TRIGGER_CATEGORY_SLOT_EXPIRATION",m.slotExpirationTriggers);var L=P.S,u=m.slotType+"_"+m.slotPhysicalPosition,t=n8(L,u);if(bJ(L,m))throw new r("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");t.set(m.slotId,new MF6(m));L.S.set(u,t)}catch(u6){u6 instanceof r&&u6.N4?(P.rB.SH("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",u6.N4,m),bu(u6,m,void 0,void 0,u6.G7)):(P.rB.SH("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
m),bu(u6,m));break a}bJ(P.S,m).N=!0;try{var z=P.S,b=bJ(z,m),q=m.slotEntryTrigger,C=z.lH.Fl.get(q.triggerType);C&&(C.YN("TRIGGER_CATEGORY_SLOT_ENTRY",q,m,null),b.Kh.set(q.triggerId,C));for(var f=g.T(m.slotFulfillmentTriggers),V=f.next();!V.done;V=f.next()){var N=V.value,h=z.lH.Fl.get(N.triggerType);h&&(h.YN("TRIGGER_CATEGORY_SLOT_FULFILLMENT",N,m,null),b.TO.set(N.triggerId,h))}for(var B=g.T(m.slotExpirationTriggers),J=B.next();!J.done;J=B.next()){var k=J.value,R=z.lH.Fl.get(k.triggerType);R&&(R.YN("TRIGGER_CATEGORY_SLOT_EXPIRATION",
k,m,null),b.j.set(k.triggerId,R))}var e=z.lH.OD.get(m.slotType).get().build(z.T,m);b.U=e;var a=z.lH.PL.get(m.slotType).get().build(z.J,m);a.init();b.C=a}catch(u6){u6 instanceof r&&u6.N4?(P.rB.SH("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",u6.N4,m),bu(u6,m,void 0,void 0,u6.G7)):(P.rB.SH("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m),bu(u6,m));d5(P,m,!0);break a}P.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",m);P.S.X2(m);for(var G=g.T(P.C),S=G.next();!S.done;S=
G.next())S.value.X2(m);oA(P,m)}};
ur=function(D,Q,m,P,W){g.v.call(this);var L=this;this.C=D;this.T=Q;this.nM=m;this.context=W;this.S=new Map;P.get().addListener(this);this.addOnDisposeCallback(function(){P.VF()||P.get().removeListener(L)})};
j9n=function(D,Q){var m=0x8000000000000,P=0,W=0x8000000000000;var L=g.T(Q.slotFulfillmentTriggers);for(var u=L.next();!u.done;u=L.next())if(u=u.value,u instanceof Cj){var t=u.S.start;m=Math.min(m,t);P=Math.max(P,u.S.end);u.visible&&(W=Math.min(W,t))}else bu("Found unexpected fulfillment trigger for throttled slot.",Q,null,{fulfillmentTrigger:u});L=m;W=W<0x8000000000000&&m<W?W:void 0;m="throttledadcuerange:"+Q.slotId;D.S.set(m,Q);Q=eq(D.context.Ry.get(),"use_cue_range_marker_position")?W:void 0;D.nM.get().addCueRange(m,
L,P,!1,D,void 0,void 0,void 0,Q);Ct(D.context.Ry.get())&&(Q={},D.context.o4.Rj("tcrr",(Q.cid=m,Q.sm=L,Q.em=P,Q)))};
dn=function(){g.v.apply(this,arguments);this.C6=!0;this.D_=new Map;this.S=new Map};
tK=function(D,Q){D=g.T(D.D_.values());for(var m=D.next();!m.done;m=D.next())if(m.value.layoutId===Q)return!0;return!1};
zN=function(D,Q){D=g.T(D.S.values());for(var m=D.next();!m.done;m=D.next()){m=g.T(m.value);for(var P=m.next();!P.done;P=m.next())if(P=P.value,P.layoutId===Q)return P}bu("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.J6(Q)),layoutId:Q})};
e37=function(){this.S=new Map};
vh7=function(D,Q){this.callback=D;this.slot=Q};
br=function(){};
OYm=function(D,Q,m){this.callback=D;this.slot=Q;this.Hq=m};
Yf4=function(D,Q,m){this.callback=D;this.slot=Q;this.Hq=m;this.C=!1;this.S=0};
aRj=function(D,Q,m){this.callback=D;this.slot=Q;this.Hq=m};
q9=function(D){this.Hq=D};
Ci=function(D){g.v.call(this);this.cM=D;this.JU=new Map};
o6=function(D,Q){for(var m=[],P=g.T(D.JU.values()),W=P.next();!W.done;W=P.next()){W=W.value;var L=W.trigger;L instanceof HQ&&L.triggeringLayoutId===Q&&m.push(W)}m.length?FB(D.cM(),m):bu("Survey is submitted but no registered triggers can be activated.")};
fi=function(D,Q,m){Ci.call(this,D);var P=this;this.Ry=m;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.VF()||Q.get().removeListener(P)})};
V5=function(D){g.v.call(this);this.S=D;this.C6=!0;this.JU=new Map;this.J=new Set;this.T=new Set;this.B=new Set;this.N=new Set;this.C=new Set};
N9=function(D){g.v.call(this);this.S=D;this.JU=new Map};
y5=function(D,Q){for(var m=[],P=g.T(D.JU.values()),W=P.next();!W.done;W=P.next())W=W.value,W.trigger.S===Q.layoutId&&m.push(W);m.length&&FB(D.S(),m)};
Z4=function(D,Q,m){g.v.call(this);var P=this;this.S=D;this.context=m;this.JU=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.VF()||Q.get().removeListener(P)})};
Fc=function(D,Q,m,P,W){g.v.call(this);var L=this;this.C=D;this.nM=Q;this.Hq=m;this.qv=P;this.context=W;this.C6=!0;this.JU=new Map;this.S=new Set;m.get().addListener(this);this.addOnDisposeCallback(function(){m.VF()||m.get().removeListener(L)})};
A8$=function(D,Q,m,P,W,L,u,t,z,b){if(rM(D.qv.get(),1).clientPlaybackNonce!==z)throw new r("Cannot register CueRange-based trigger for different content CPN",{trigger:m});D.JU.set(m.triggerId,{e3:new jD(Q,m,P,W),cueRangeId:L});D.nM.get().addCueRange(L,u,t,b,D);Ct(D.context.Ry.get())&&(z={},D.context.o4.Rj("crr",(z.ca=Q,z.tt=m.triggerType,z.st=P.slotType,z.lt=W==null?void 0:W.layoutType,z.cid=L,z.sm=u,z.em=t,z)))};
pe$=function(D,Q){D=g.T(D.JU.entries());for(var m=D.next();!m.done;m=D.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;if(Q===P.cueRangeId)return m}return""};
TN=function(D,Q){g.v.call(this);var m=this;this.B=D;this.C=new Map;this.T=new Map;this.S=null;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.VF()||Q.get().removeListener(m)});
var P;this.S=((P=Q.get().n2)==null?void 0:P.slotId)||null};
xa4=function(D,Q){var m=[];D=g.T(D.values());for(var P=D.next();!P.done;P=D.next())P=P.value,P.slot.slotId===Q&&m.push(P);return m};
hK=function(D){g.v.call(this);this.S=D;this.C6=!0;this.JU=new Map};
nN=function(D,Q,m){Q=Q.layoutId;for(var P=[],W=g.T(D.JU.values()),L=W.next();!L.done;L=W.next())if(L=L.value,L.trigger instanceof Nq){var u;if(u=L.trigger.layoutId===Q){u=m;var t=Ajr.get(L.category);u=t?t===u:!1}u&&P.push(L)}P.length&&FB(D.S(),P)};
ni=function(D){g.v.call(this);this.S=D;this.C6=!0;this.JU=new Map};
EE=function(D,Q,m,P,W,L){g.v.call(this);var u=this;this.N=D;this.sC=Q;this.Hq=m;this.eD=P;this.a_=L;this.S=null;this.B=!1;this.C6=!0;this.JU=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.VF()||Q.get().removeListener(u)});
W.get().addListener(this);this.addOnDisposeCallback(function(){W.VF()||W.get().removeListener(u)})};
r89=function(D){D.S&&(D.B=!0,D.C&&(D.C.stop(),D.C.start()),Xem(D,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),UJ(D.eD.get(),"ads_ce","bdc."+Sfm(D).length))};
Xem=function(D,Q){for(var m=[],P=g.T(D.JU.values()),W=P.next();!W.done;W=P.next())W=W.value,W.trigger.triggerType===Q&&m.push(W);m.length>0&&FB(D.N(),m)};
gn=function(D,Q,m,P,W){for(var L=[],u=g.T(D.JU.values()),t=u.next();!t.done;t=u.next()){var z=t=t.value,b=z.trigger;z=z.slot;if(b.triggerType===Q){if(b instanceof zK||b instanceof bj||b instanceof oZ){if(W&&b.breakDurationMs!==m)continue;if(!W&&b.breakDurationMs===m)continue;if(P.has(z.slotId))continue}L.push(t)}}L.length>0&&FB(D.N(),L)};
G_7=function(D,Q){Q=(Q.m$+1)*1E3;var m=void 0;D=g.T(D.JU.values());for(var P=D.next();!P.done;P=D.next()){var W=P.value;P=W.trigger;W=W.slot;P instanceof zK&&P.breakDurationMs<=Q&&(!m||P.breakDurationMs>m.trigger.breakDurationMs)&&(m={slot:W,trigger:P})}return m};
MB_=function(D){D=D.adPlacementRenderer.config.adPlacementConfig;if(!D.prefetchModeConfig||!D.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;D=Number(D.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(D)||D<=0?0:Math.floor(Math.random()*D)};
c8j=function(D){D=D.adPlacementRenderer.config.adPlacementConfig;if(D.prefetchModeConfig&&D.prefetchModeConfig.cacheFetchRefreshDurationMs&&(D=Number(D.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(D)||D<=0)))return D};
BS=function(D){D.S=null;D.JU.clear();D.C&&D.C.stop();D.J&&D.J.stop();var Q;(Q=D.T)==null||Q.stop();delete D.T};
Sfm=function(D){var Q=[];D=g.T(D.JU.values());for(var m=D.next();!m.done;m=D.next())m=m.value.trigger,m instanceof zK&&Q.push(m.breakDurationMs);return Q};
wn=function(D){g.v.call(this);this.T=D;this.C6=!0;this.JU=new Map;this.S=new Map;this.C=new Map};
Dw$=function(D,Q){var m=[];if(Q=D.S.get(Q.layoutId)){Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())(P=D.C.get(P.value.triggerId))&&m.push(P)}return m};
ke=function(D){g.v.call(this);this.S=D;this.JU=new Map};
QA$=function(D,Q){for(var m=[],P=g.T(D.JU.values()),W=P.next();!W.done;W=P.next())W=W.value,W.trigger instanceof Q6&&W.trigger.slotId===Q&&m.push(W);m.length>=1&&FB(D.S(),m)};
mw7=function(D,Q){var m={slotId:so(Q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Wq:"surface",clientMetadata:new ru([])},P=Object,W=P.assign;Q=vF(Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",m.slotId);Q={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ij:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"surface",
clientMetadata:new ru([]),Ur:$FP(!1,m.slotId,m.slotType,m.slotPhysicalPosition,m.Wq,m.slotEntryTrigger,m.slotFulfillmentTriggers,m.slotExpirationTriggers,Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return W.call(P,{},D,{w4:!0,slot:m,layout:Q})};
Y$n=function(D,Q,m,P){var W=D.kind;P=P?!1:!D.hideCueRangeMarker;switch(W){case "AD_PLACEMENT_KIND_START":return P={Cc:new y9(-0x8000000000000,-0x8000000000000),uL:P},m!=null&&(P.lx=new y9(-0x8000000000000,-0x8000000000000)),P;case "AD_PLACEMENT_KIND_END":return P={Cc:new y9(0x7ffffffffffff,0x8000000000000),uL:P},m!=null&&(P.lx=new y9(Math.max(0,Q-m),0x8000000000000)),P;case "AD_PLACEMENT_KIND_MILLISECONDS":W=D.adTimeOffset;W.offsetStartMilliseconds||bu("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
W.offsetEndMilliseconds||bu("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");D=Number(W.offsetStartMilliseconds);W=Number(W.offsetEndMilliseconds);W===-1&&(W=Q);if(Number.isNaN(D)||Number.isNaN(W)||D>W)return new r("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:D,offsetEndMs:W},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",W===Q&&D-500<=W);P={Cc:new y9(D,W),uL:P};if(m!=null){D=Math.max(0,D-m);if(D===W)return P;P.lx=new y9(D,W)}return P;
default:return new r("AdPlacementKind not supported in convertToRange.",{kind:W,adPlacementConfig:D})}};
PJr=function(D){if(!D||!D.adPlacements&&!D.adSlots)return!1;for(var Q=g.T(D.adPlacements||[]),m=Q.next();!m.done;m=Q.next())if(m=m.value)if(m=m.adPlacementRenderer,m!=null&&(m.config&&m.config.adPlacementConfig&&m.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;D=g.T(D.adSlots||[]);for(Q=D.next();!Q.done;Q=D.next()){var P=m=void 0;if(((m=g.A(Q.value,V2))==null?void 0:(P=m.adSlotMetadata)==null?void 0:P.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
JK=function(D){this.Ry=D;this.C=new Map;this.S=new Map;this.T=new Map};
so=function(D,Q){if(lr(D.Ry.get())){var m=D.C.get(Q)||0;m++;D.C.set(Q,m);return Q+"_"+m}return g.V$(16)};
vF=function(D,Q,m){if(lr(D.Ry.get())){var P=D.S.get(Q)||0;P++;D.S.set(Q,P);return m+"_"+Q+"_"+P}return g.V$(16)};
e5=function(D,Q){if(lr(D.Ry.get())){var m=D.T.get(Q)||0;m++;D.T.set(Q,m);return Q+"_"+m}return g.V$(16)};
WA7=function(D){var Q=[new sf(D.G9),new t8(D.M8),new O0(D.adPlacementConfig),new fY(D.videoLengthSeconds),new lq(D.Qa)];D.instreamAdPlayerOverlayRenderer&&Q.push(new Sb(D.instreamAdPlayerOverlayRenderer));D.playerOverlayLayoutRenderer&&Q.push(new rd(D.playerOverlayLayoutRenderer));D.gZ&&Q.push(new pL(D.gZ));return Q};
i8$=function(D,Q,m,P,W,L){D=m.inPlayerLayoutId?m.inPlayerLayoutId:vF(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);var u,t,z=m.instreamAdPlayerOverlayRenderer?(u=m.instreamAdPlayerOverlayRenderer)==null?void 0:u.adLayoutLoggingData:(t=m.playerOverlayLayoutRenderer)==null?void 0:t.adLayoutLoggingData;u={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Wq:Q};return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ij:new Map,layoutExitNormalTriggers:[new dq(function(b){return e5(L,
b)},m.G9)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:Q,clientMetadata:P,Ur:W(u),adLayoutLoggingData:z}};
I6=function(D,Q){var m=this;this.C=D;this.Ry=Q;this.S=function(P){return e5(m.C.get(),P)}};
JCw=function(D,Q,m,P,W,L){m=new ru([new GJ(m),new O0(P)]);Q=vF(D.C.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Q);P={layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Wq:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ij:new Map,layoutExitNormalTriggers:[new dq(function(u){return e5(D.C.get(),u)},W)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:m,Ur:L(P),adLayoutLoggingData:void 0}};
lP=function(D,Q,m,P,W){var L=WA7(P);return i8$(Q,m,P,new ru(L),W,D.C.get())};
sAk=function(D,Q,m,P,W){var L=WA7(P);L.push(new eb(P.fV));L.push(new vt(P.yC));return i8$(Q,m,P,new ru(L),W,D.C.get())};
GB=function(D,Q,m,P,W,L,u,t,z,b){Q=vF(D.C.get(),m,Q);var q={layoutId:Q,layoutType:m,Wq:"core"},C=new Map;u&&C.set("impression",u);u=[new fj(D.S,W,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&u.push(new uj(D.S,b,["normal"]));return{layoutId:Q,layoutType:m,Ij:C,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([P,new O0(L),new sf(W)]),Ur:t(q),adLayoutLoggingData:z}};
Mr=function(D,Q,m,P,W,L,u,t,z){Q=vF(D.C.get(),m,Q);var b={layoutId:Q,layoutType:m,Wq:"core"},q=[new fj(D.S,W,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];z&&q.push(new uj(D.S,z,["normal"]));return{layoutId:Q,layoutType:m,Ij:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([P,new O0(L),new sf(W)]),Ur:u(b),adLayoutLoggingData:t}};
OR=function(D,Q,m){var P=[];P.push(new V6(D.S,m));Q&&P.push(Q);return P};
vL=function(D,Q,m,P,W,L,u){var t={layoutId:Q,layoutType:m,Wq:"core"};return{layoutId:Q,layoutType:m,Ij:new Map,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[new WQ(D.S,Q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new Ht(P),new O0(W)]),Ur:L(t),adLayoutLoggingData:P.adLayoutLoggingData}};
BL=function(D,Q,m,P,W,L,u,t){var z={layoutId:Q,layoutType:L,Wq:"core"};return{layoutId:Q,layoutType:L,Ij:new Map,layoutExitNormalTriggers:[new dq(D.S,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new O0(P)].concat(g.on(u))),Ur:W(z),adLayoutLoggingData:t}};
au=function(D,Q,m,P){if(D.Ry.get().xV(Q.kind==="AD_PLACEMENT_KIND_START"))if(m===void 0)bu("Expected SSAP layout ID in renderer",void 0,void 0,{caller:P});else return m};
tB7=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){D=Yo(D,Q,m,W,L,u,t,z,C,au(D,m,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),f);Q=D.gS;m=new LY(D.Ds);P=D.layoutExitSkipTriggers;b>0&&(Q.push(m),Q.push(new AC(b)),P=[]);Q.push(new a1(q));return{qp:{layoutId:D.layoutId,layoutType:D.layoutType,Ij:D.Ij,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:D.Wq,clientMetadata:new ru(Q),Ur:D.Ur,adLayoutLoggingData:D.adLayoutLoggingData},
NK:P,td:D.layoutExitMuteTriggers,RT:D.layoutExitUserInputSubmittedTriggers,B3:D.iE,Ps:D.Ps}};
Cqw=function(D,Q,m,P,W,L,u,t,z,b){Q=Yo(D,Q,m,P,L,new Map,u,function(q){return t(q,z)},void 0,au(D,m,W.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
D=new HQ(D.S,Q.Ds);m=new LY(Q.Ds);b=new a1(b);return{qp:{layoutId:Q.layoutId,layoutType:Q.layoutType,Ij:Q.Ij,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:Q.Wq,clientMetadata:new ru([].concat(g.on(Q.gS),[m,b])),Ur:Q.Ur,adLayoutLoggingData:Q.adLayoutLoggingData},NK:Q.layoutExitSkipTriggers,td:Q.layoutExitMuteTriggers,RT:[].concat(g.on(Q.layoutExitUserInputSubmittedTriggers),[D]),B3:Q.iE,Ps:Q.Ps}};
Yo=function(D,Q,m,P,W,L,u,t,z,b,q){Q=b!=null?b:vF(D.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",Q);b={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Wq:"adapter"};t=t(Q);var C=G_(t.clientMetadata,"metadata_type_fulfilled_layout");C||bu("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var f=C?C.layoutId:"";m=[new O0(m),new II(P),new He(W)];C&&m.push(new uq(C.layoutType));q&&m.push(new T_(q));return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
Ij:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new FP(D.S,f)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"adapter",gS:m,Ur:u(b),adLayoutLoggingData:z,Ps:t,Ds:f}};
Bd9=function(D,Q,m,P,W,L,u,t,z,b,q){D=LAh(D,Q,"core",m,P,W,L,u,t,z,b,void 0,q);return{layoutId:D.layoutId,layoutType:D.layoutType,Ij:D.Ij,layoutExitNormalTriggers:D.layoutExitNormalTriggers,layoutExitSkipTriggers:D.layoutExitSkipTriggers,layoutExitMuteTriggers:D.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:D.layoutExitUserInputSubmittedTriggers,iE:D.iE,Wq:D.Wq,clientMetadata:new ru(D.ud),Ur:D.Ur,adLayoutLoggingData:D.adLayoutLoggingData}};
Ehr=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){Q=LAh(D,Q,"adapter",m,P,W,L,u,t,z,q,C,f);P=Q.layoutExitSkipTriggers;W=Q.ud;m.adPodSkipTarget&&m.adPodSkipTarget>0&&(W.push(b),W.push(new AC(m.adPodSkipTarget)),P=[]);W.push(new a1(t.adPodIndex));m.isCritical&&(P=[new uj(D.S,Q.layoutId,["error"])].concat(g.on(P)));return{qp:{layoutId:Q.layoutId,layoutType:Q.layoutType,Ij:Q.Ij,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:Q.Wq,
clientMetadata:new ru(W),Ur:Q.Ur,adLayoutLoggingData:Q.adLayoutLoggingData},NK:P,td:Q.layoutExitMuteTriggers,RT:Q.layoutExitUserInputSubmittedTriggers,B3:Q.iE}};
LAh=function(D,Q,m,P,W,L,u,t,z,b,q,C,f){var V={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Wq:m};W=[new O0(W),new YL(z),new xL(P.externalVideoId),new XZ(t),new He({impressionCommands:P.impressionCommands,abandonCommands:P.onAbandonCommands,completeCommands:P.completeCommands,progressCommands:P.adVideoProgressCommands}),new Vg(L),new z_({current:null}),new fY(u)];(L=P.playerOverlay.instreamAdPlayerOverlayRenderer)&&W.push(new Sb(L));(u=P.playerOverlay.playerOverlayLayoutRenderer)&&W.push(new rd(u));
C&&W.push(new Na(C));(C=P.playerUnderlay)&&W.push(new GJ(C));t=so(D.C.get(),"SLOT_TYPE_IN_PLAYER");C=(C=L?L.elementId:u==null?void 0:u.layoutId)?C:vF(D.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",t);W.push(new LY(C));W.push(new du(t));W.push(new T_(z.adPodIndex));P.adNextParams&&W.push(new R1(P.adNextParams));P.shrunkenPlayerBytesConfig&&W.push(new DR(P.shrunkenPlayerBytesConfig));P.clickthroughEndpoint&&W.push(new U0(P.clickthroughEndpoint));P.legacyInfoCardVastExtension&&W.push(new RI(P.legacyInfoCardVastExtension));
P.sodarExtensionData&&W.push(new yg(P.sodarExtensionData));q&&W.push(new J8(q));W.push(new $h(oL(P.pings)));z=fZ(P.pings);if(f){a:{f=g.T(f);for(q=f.next();!q.done;q=f.next())if(q=q.value,q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.A(q.fulfillmentContent.fulfilledLayout,LE))&&(L=g.A(L.renderingContent,iP))&&L.associatedPlayerBytesLayoutId===Q){f=q;break a}f=void 0}f&&W.push(new Ml(f))}return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Ij:z,layoutExitNormalTriggers:[new Nq(D.S,Q)],layoutExitSkipTriggers:P.skipOffsetMilliseconds?
[new FP(D.S,C)]:[],layoutExitMuteTriggers:[new FP(D.S,C)],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:m,ud:W,Ur:b(V),adLayoutLoggingData:P.adLayoutLoggingData}};
Vbw=function(D,Q,m,P,W,L,u,t,z){P.every(function(q){return xh(q,[],["LAYOUT_TYPE_MEDIA"])})||bu("Unexpect subLayout type for DAI composite layout");
Q=vF(D.C.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Q);var b={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Wq:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ij:new Map,layoutExitNormalTriggers:[new t5(D.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iE:[],Wq:"core",clientMetadata:new ru([new ZR(m),new F9(t),new qa(P),new O0(W),new gu(L),new h8({}),new ve(z)]),Ur:u(b)}};
bLj=function(D){return D!=null};
R6=function(D,Q,m){var P=this;this.C=D;this.T=Q;this.Ry=m;this.S=function(W){return e5(P.C.get(),W)}};
Uaw=function(D,Q,m,P,W,L,u){if(!m.prefetchModeConfig)return new r("AdPlacementConfig for Live Prefetch is missing prefetch_config");m=m.prefetchModeConfig;P*=1E3;var t=[];if(!m.breakLengthMs)return new r("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var z=g.T(m.breakLengthMs),b=z.next();!b.done;b=z.next())if(b=b.value,Number(b)>0){var q=P+Number(m.startTimeOffsetMs),C=q+Number(m.cacheFetchSmearingDurationMs);b={Cc:new y9(C,C+Number(b)),uL:!1,lx:new y9(Math.floor(q+Math.random()*
Number(m.cacheFetchSmearingDurationMs)),C),cueProcessedMs:P?P:q};q=[];q.push(new A8({}));C=[];C.push(new ZK(D.S));C.push(new Pow(D.S));u&&q.push(new h8({}));t.push(y2(D,Q,W,b,L,q,C))}return t};
y2=function(D,Q,m,P,W,L,u){L=L===void 0?[]:L;var t=so(D.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");u||(u=[],P.lx&&P.lx.start!==P.Cc.start&&u.push(new Cj(D.S,m,new y9(P.lx.start,P.Cc.start),!1)),u.push(new Cj(D.S,m,new y9(P.Cc.start,P.Cc.end),P.uL)));P={getAdBreakUrl:Q.getAdBreakUrl,nG:P.Cc.start,DK:P.Cc.end,cueProcessedMs:P.cueProcessedMs};Q=new EY(D.S,t);L=[new wu(P)].concat(g.on(L));return{slotId:t,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:u,
slotExpirationTriggers:[new y6(D.S,m),new h5(D.S,t),new nj(D.S,t)],Wq:"core",clientMetadata:new ru(L),adSlotLoggingData:W}};
dw9=function(D,Q,m){var P=[];m=g.T(m);for(var W=m.next();!W.done;W=m.next())P.push(uB4(D,Q,W.value));return P};
uB4=function(D,Q,m){return m.triggeringSlotId!=null&&m.triggeringSlotId===D?m.clone(Q):m};
Q1_=function(D,Q,m,P,W){return tq9(D,Q,m,P,W)};
z39=function(D,Q,m,P){var W=so(D.C.get(),"SLOT_TYPE_IN_PLAYER");return tq9(D,W,Q,m,P)};
tq9=function(D,Q,m,P,W){var L=new Lj(D.S,m),u=[new TK(D.S,Q)];D=[new h5(D.S,Q),new y6(D.S,P)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(W({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D},m))]),adSlotLoggingData:void 0}};
ghh=function(D,Q,m,P,W,L){var u=so(D.C.get(),"SLOT_TYPE_PLAYER_BYTES"),t=so(D.C.get(),"SLOT_TYPE_IN_PLAYER"),z=vF(D.C.get(),"LAYOUT_TYPE_SURVEY",t);P=UE(D,Q,m,P);var b=[new TK(D.S,u)];m=[new h5(D.S,u),new y6(D.S,m),new WQ(D.S,z)];if(P instanceof r)return P;t=L({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:P,slotFulfillmentTriggers:b,slotExpirationTriggers:m},{slotId:t,layoutId:z});L=t.QyD;t=t.HA;return[{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:pE(D,Q,u,P),slotFulfillmentTriggers:xo(D,Q,u,b),slotExpirationTriggers:m,Wq:"core",clientMetadata:new ru([new Be(L),new Of(X0(Q)),new aI({Mo:D.Mo(Q)})]),adSlotLoggingData:W},t]};
X0=function(D){return D.kind==="AD_PLACEMENT_KIND_START"};
wt7=function(D,Q,m,P,W){W=W?W:so(D.C.get(),"SLOT_TYPE_IN_PLAYER");m=new Lj(D.S,m);var L=[new TK(D.S,W)];D=[new y6(D.S,Q),new h5(D.S,W)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:L,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(P({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:m,slotFulfillmentTriggers:L,slotExpirationTriggers:D}))])}};
kJu=function(D,Q,m,P){var W=so(D.C.get(),"SLOT_TYPE_PLAYER_UNDERLAY");m=new Lj(D.S,m);var L=[new TK(D.S,W)];D=[new y6(D.S,Q),new h5(D.S,W)];return{slotId:W,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:L,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(P({slotId:W,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:m,slotFulfillmentTriggers:L,slotExpirationTriggers:D}))])}};
ZL7=function(D,Q,m,P,W,L,u){var t=so(D.C.get(),"SLOT_TYPE_IN_PLAYER"),z=vF(D.C.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",t);P=zAP(D,P,L,u,z);if(P instanceof r)return P;u=[new TK(D.S,t)];W=[new y6(D.S,L),new TK(D.S,W),new UY(D.S,W)];m=PF(m,{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:P,slotFulfillmentTriggers:u,slotExpirationTriggers:W});D=D.T.get();L={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Wq:"core"};Q={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Ij:new Map,layoutExitNormalTriggers:[new z2r(D.S,z,Q.durationMs)],layoutExitSkipTriggers:[new q$P(D.S,z,Q.durationMs)],iE:[new bhk(D.S,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wq:"core",clientMetadata:new ru([new Uf(Q)]),Ur:m(L)};return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:P,slotFulfillmentTriggers:u,slotExpirationTriggers:W,clientMetadata:new ru([new Be(Q)])}};
u9$=function(D,Q,m,P,W,L){Q=UE(D,Q,m,P);if(Q instanceof r)return Q;var u=Q instanceof Cj?new ua$(D.S,m,Q.S):null;P=so(D.C.get(),"SLOT_TYPE_IN_PLAYER");var t=[new TK(D.S,P)];D=[new y6(D.S,m),new h5(D.S,P)];L=L({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:t,slotExpirationTriggers:D},u);return L instanceof SB?new r(L):{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:t,slotExpirationTriggers:D,
Wq:"core",clientMetadata:new ru([new Be(L)]),adSlotLoggingData:W}};
sIr=function(D,Q,m,P){var W=so(D.C.get(),"SLOT_TYPE_IN_PLAYER"),L=new PQ(D.S,Q),u=[new RZ(D.S,W)];D=[new y6(D.S,Q),new h5(D.S,W)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(P({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D}))]),adSlotLoggingData:m}};
LPh=function(D,Q,m,P){var W=so(D.C.get(),"SLOT_TYPE_IN_PLAYER");m=new Lj(D.S,m);var L=[new TK(D.S,W)],u=[new h5(D.S,W),new y6(D.S,Q)];L={slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:m,slotFulfillmentTriggers:L,slotExpirationTriggers:u};return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:[new TK(D.S,W)],slotExpirationTriggers:[new y6(D.S,Q),new h5(D.S,W)],Wq:"core",clientMetadata:new ru([new Be(P(L))])}};
WPn=function(D,Q,m,P,W){var L=so(D.C.get(),"SLOT_TYPE_IN_PLAYER");m=new sY(D.S,P,m);P=[new TK(D.S,L)];D=[new y6(D.S,Q)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:P,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(W({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:m,slotFulfillmentTriggers:P,slotExpirationTriggers:D}))])}};
Miu=function(D,Q,m,P,W,L){var u=so(D.C.get(),Q);return HS(D,u,Q,new Lj(D.S,P),[new y6(D.S,m),new h5(D.S,u),new uj(D.S,P,["error"])],W,L)};
GW7=function(D,Q,m,P,W,L,u){var t=so(D.C.get(),Q);return HS(D,t,Q,new uj(D.S,W,["normal"]),[new y6(D.S,m),new h5(D.S,t),new uj(D.S,P,["error"])],L,u)};
xyn=function(D,Q,m,P,W){var L=so(D.C.get(),Q);return HS(D,L,Q,new PQ(D.S,m),[new y6(D.S,m),new h5(D.S,L)],P,W)};
ma$=function(D,Q,m,P,W){m=m?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=so(D.C.get(),m);Q=new PQ(D.S,Q);var u=[new TK(D.S,L)];D=[new h5(D.S,L)];return{slotId:L,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:u,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(W({slotId:L,slotType:m,slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:u,slotExpirationTriggers:D}))]),adSlotLoggingData:P}};
q07=function(D,Q,m,P){var W=so(D.C.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new qq(D.S),u=[new RZ(D.S,W)];D=[new y6(D.S,Q)];return{slotId:W,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(P({slotId:W,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:D})),new h8({})]),adSlotLoggingData:m}};
Ftw=function(D,Q){return IRk(D.Ry.get())?new uj(D.S,Q,["normal","error","skipped"]):new uj(D.S,Q,["normal"])};
nL4=function(D,Q,m,P,W){Q=Ftw(D,Q);D=Aw(D,Q,m);W=W({slotId:D.slotId,slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers,Wq:D.Wq});return W instanceof r?W:{pD:Object.assign({},D,{clientMetadata:new ru([new Be(W.layout)]),adSlotLoggingData:P}),mO:W.mO}};
ELw=function(D,Q,m,P,W,L,u){m=Tuk(D,Q,m,P);if(m instanceof r)return m;u=u({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,Wq:m.Wq});if(u instanceof r)return u;P=[new Of(X0(Q)),new Be(u.layout),new aI({Mo:D.Mo(Q)})];L&&P.push(new KY({}));return{pD:{slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:pE(D,
Q,m.slotId,m.slotEntryTrigger),slotFulfillmentTriggers:xo(D,Q,m.slotId,m.slotFulfillmentTriggers),slotExpirationTriggers:m.slotExpirationTriggers,Wq:m.Wq,clientMetadata:new ru(P),adSlotLoggingData:W},mO:u.mO}};
pE=function(D,Q,m,P){return D.Ry.get().xV(X0(Q))?new Q6(D.S,m):P};
xo=function(D,Q,m,P){return D.Ry.get().xV(X0(Q))?[new RZ(D.S,m)]:P};
Aw=function(D,Q,m){var P=so(D.C.get(),"SLOT_TYPE_PLAYER_BYTES"),W=[new TK(D.S,P)];D=[new h5(D.S,P),new y6(D.S,m)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:W,slotExpirationTriggers:D,Wq:"core"}};
Tuk=function(D,Q,m,P){Q=UE(D,Q,m,P);return Q instanceof r?Q:Aw(D,Q,m)};
Wt7=function(D,Q,m,P,W,L){var u=so(D.C.get(),"SLOT_TYPE_FORECASTING");Q=UE(D,Q,m,P);if(Q instanceof r)return Q;P=[new TK(D.S,u)];D=[new h5(D.S,u),new y6(D.S,m)];return{slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:P,slotExpirationTriggers:D,Wq:"core",clientMetadata:new ru([new Be(L({slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:P,slotExpirationTriggers:D}))]),adSlotLoggingData:W}};
b87=function(D,Q,m,P,W){var L=!Q.hideCueRangeMarker;switch(Q.kind){case "AD_PLACEMENT_KIND_START":return new PQ(D.S,m);case "AD_PLACEMENT_KIND_MILLISECONDS":return D=Y$n(Q,P),D instanceof r?D:W(D.Cc,L);case "AD_PLACEMENT_KIND_END":return new ij(D.S,m,L);default:return new r("Cannot construct entry trigger",{kind:Q.kind})}};
zAP=function(D,Q,m,P,W){return b87(D,Q,m,P,function(L,u){return new LIn(D.S,m,L,u,W)})};
UE=function(D,Q,m,P){return b87(D,Q,m,P,function(W,L){return new Cj(D.S,m,W,L)})};
HS=function(D,Q,m,P,W,L,u){D=[new RZ(D.S,Q)];return{slotId:Q,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:D,slotExpirationTriggers:W,Wq:"core",clientMetadata:new ru([new Be(u({slotId:Q,slotType:m,slotPhysicalPosition:1,Wq:"core",slotEntryTrigger:P,slotFulfillmentTriggers:D,slotExpirationTriggers:W}))]),adSlotLoggingData:L}};
EKn=function(){};
Ki=function(D,Q){g.v.call(this);this.Ry=D;this.S=Q;this.eventCount=0;this.C=gK9()()};
qg_=function(D,Q,m){if(Q){var P=Q.adLayoutLoggingData;g.xt(g.S0(),function(){D.C!=null&&P&&g.WD("adsSeenClientLogging",{serializedAdServingDataEntry:P.serializedAdServingDataEntry})},m!=null?m:0)}};
j4=function(D,Q,m,P){Ki.call(this,D,Q);this.Ry=D;this.qv=m;this.context=P};
$e=function(){this.S=new Map};
e4=function(D){this.S="pending";this.C=[];this.T=[];try{D(this.B.bind(this),this.reject.bind(this))}catch(Q){this.reject(Q)}};
CJ4=function(){var D,Q;return{G$:new e4(function(m,P){D=m;Q=P}),
resolve:D,reject:Q}};
Ye=function(D){return vS(D)?D:OE(D)?new e4(function(Q,m){D.then(Q,m)}):new e4(function(Q){Q(D)})};
a6=function(D){return new e4(function(Q,m){m(D)})};
AK=function(D){try{return Ye(D())}catch(Q){return a6(Q)}};
xe=function(D,Q,m){var P=CJ4(),W=P.G$,L=P.resolve,u=P.reject;D.C.push(function(t){if(Q)try{var z=Q(t);L(z)}catch(b){u(b)}else L(t)});
D.T.push(function(t){if(m)try{var z=m(t);L(z)}catch(b){u(b)}else u(t)});
pi(D);return W};
Xc=function(D,Q){return xe(D,void 0,Q)};
o86=function(D,Q){xe(D,function(m){return xe(Ye(Q()),function(){return m})},function(m){return xe(Ye(Q()),function(){return a6(m)})})};
pi=function(D){if(D.S==="fulfilled"){var Q=D.C;D.C=[];D.T=[];Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())m=m.value,m(D.result)}else if(D.S==="rejected")for(Q=D.T,D.C=[],D.T=[],Q=g.T(Q),m=Q.next();!m.done;m=Q.next())m=m.value,m(D.error)};
S4=function(D,Q){return f1j(Q.call(D))};
rn=function(D){return function m(){return $P(m,function(P){if(P.C==1)return g.n9(P,2),g.I(P,{G$:Ye(D)},4);if(P.C!=2)return P.return(P.S);g.Rn(P);return g.Hh(P,0)})}()};
f1j=function(D){return AK(function(){return GN(D,D.next())})};
GN=function(D,Q){return Q.done?Ye(Q.value):Xc(xe(Q.value.G$,function(m){return GN(D,D.next(m))}),function(m){return GN(D,D.throw(m))})};
M9=function(D,Q){if(D.length===0)return Ye(NaN);var m=CJ4(),P=m.G$,W=m.resolve,L=D.length;D=g.T(D.entries());var u=D.next();for(m={};!u.done;m={iB:void 0},u=D.next()){var t=g.T(u.value);u=t.next().value;t=t.next().value;m.iB=u;o86(t,function(z){return function(){P.S==="pending"&&(Vqr(Q)&&Q(z.iB)&&P.S==="pending"?W(z.iB):(--L,L===0&&W(NaN)))}}(m))}return P};
cS=function(D){return D.map(function(Q){return Ye(Q)})};
QE=function(D){var Q=D.hours||0;var m=D.minutes||0,P=D.seconds||0;Q=P+m*60+Q*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;Q<=0?Q={hours:0,minutes:0,seconds:0}:(D=Q,Q=Math.floor(D/3600),D%=3600,m=Math.floor(D/60),P=Math.floor(D%60),Q={hours:Q,minutes:m,seconds:P});var W=Q.hours===void 0?0:Q.hours;m=Q.minutes===void 0?0:Q.minutes;D=Q.seconds===void 0?0:Q.seconds;P=W>0;Q=[];if(P){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var L=["fr"],u="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(" ");
W="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(Do)?W.replace(",","\u00a0"):L.includes(Do)?W.replace(",","\u202f"):u.includes(Do)?W.replace(",","."):W;Q.push(W)}P=P===void 0?!1:P;m=(["af","be","lt"].includes(Do)||P)&&m<10?N5n().format(m):(new Intl.NumberFormat("en-u-nu-latn")).format(m);Q.push(m);m=N5n().format(D);Q.push(m);m=":";"da fi id si sr sr-Latn".split(" ").includes(Do)&&(m=".");return Q.join(m)};
N5n=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
yV9=function(D,Q){var m,P;D=((m=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=m.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(m=0;m<D.length;++m)if(D[m].scope===Q)return D[m].token||void 0};
m1=function(D){if(D&&D.simpleText)return D.simpleText;var Q="";if(D&&D.runs)for(var m=0;m<D.runs.length;m++)D.runs[m].text&&(Q+=D.runs[m].text);return Q};
P4=function(D){return D?function(){try{return D.apply(this,arguments)}catch(Q){g.JG(Q)}}:D};
W4=function(){this.T=new Set;this.C=new Set;this.B=new Map;this.client=void 0;this.csn=null};
se=function(){W4.instance||(W4.instance=new W4);return W4.instance};
Lx=function(){};
ut=function(){this.U=[];this.Z=[];this.S=[];this.Iy=[];this.J=[];this.j=[];this.T=new Map;this.N=new Map;this.C=new Set;this.Kh=new Map};
d_=function(){ut.instance||(ut.instance=new ut);return ut.instance};
t3=function(D,Q,m,P){P=P===void 0?{}:P;g.xK(function(){Z8k.includes(Q)||(g.l4(new g.OI("createClientScreen() called with a non-page VE",Q)),Q=83769);P.isHistoryNavigation||(D.Iy=[],D.S.push({rootVe:Q,key:P.key||""}));D.U=[];D.Z=[];P.M3?FA_(D,Q,m,P):T5m(D,Q,m,P)})()};
hAu=function(D,Q,m){m=m===void 0?0:m;g.xK(function(){Q.then(function(P){D.C.has(m)&&D.B&&D.B();var W=g.Tq(m),L=g.Fz(m);if(W&&L){var u={automatedLogEventSource:3},t;(P==null?0:(t=P.response)==null?0:t.trackingParams)&&g.aC(D.client,W,L,g.yi(P.response.trackingParams),!1,u);var z;(P==null?0:(z=P.playerResponse)==null?0:z.trackingParams)&&g.aC(D.client,W,L,g.yi(P.playerResponse.trackingParams),!1,u)}})})()};
bt=function(D){var Q=d_();g.xK(function(){var m=g.yi(D);zn(Q,m);return m})()};
n8P=function(D){var Q={veType:253246};return g.xK(function(){if(!Q.veType)return PD(new g.OI("Error: Trying to graft a client VE without a veType.")),null;if(Q.visibilityTypes){var m=Q.visibilityTypes.reduce(function(P,W){return P|W});
m={visibility:{types:String(m)}}}m=fGj(Q.veType,Q.visualElement,Q.elementIndex,Q.clientYouTubeData,void 0,m);return zn(D,m)?m:null})()};
zn=function(D,Q,m,P){P=P===void 0?0:P;return g.xK(function(){if(D.C.has(P))return D.U.push([Q,m]),!0;var W=g.Tq(P),L=m||g.Fz(P);if(W&&L){if(g.oi("combine_ve_grafts")){var u=D.T.get(L.toString());u?u.push(Q):(D.N.set(L.toString(),L),D.T.set(L.toString(),[Q]));D.TO||(D.TO=g.xt(0,function(){qj(D,W)},1200))}else g.aC(D.client,W,L,Q);
return!0}return!1})()};
E87=function(D,Q,m,P){P=P===void 0?0:P;var W=g.Tq(P);Q=Q||g.Fz(P);W&&Q&&(D=D.client,P=$O({cttAuthInfo:hG(W)||void 0},W),m={csn:W,ve:Q.getAsJson(),clientData:m},W==="UNDEFINED_CSN"?xO("visualElementStateChanged",P,m):D?Vi("visualElementStateChanged",m,D,P):g.WD("visualElementStateChanged",m,P))};
FA_=function(D,Q,m,P){P=P===void 0?{}:P;D.C.add(P.layer||0);D.B=function(){T5m(D,Q,m,P);var u=g.Fz(P.layer);if(u){for(var t=g.T(D.U),z=t.next();!z.done;z=t.next())z=z.value,zn(D,z[0],z[1]||u,P.layer);u=g.T(D.Z);for(t=u.next();!t.done;t=u.next())t=t.value,E87(D,t[0],t[1])}};
m||g.Tq(P.layer)||D.B();if(P.M3)for(var W=g.T(P.M3),L=W.next();!L.done;L=W.next())hAu(D,L.value,P.layer);else g.JG(Error("Delayed screen needs a data promise."))};
T5m=function(D,Q,m,P){P=P===void 0?{}:P;var W=void 0;P.layer||(P.layer=0);W=P.parentLayer!==void 0?P.parentLayer:P.layer;var L=g.Tq(W);W=g.Fz(W);var u=m||W,t;u&&(P.parentCsn!==void 0?t={clientScreenNonce:P.parentCsn,visualElement:u}:L&&L!=="UNDEFINED_CSN"&&(t={clientScreenNonce:L,visualElement:u}));var z,b=g.YK("EVENT_ID");L==="UNDEFINED_CSN"&&b&&(z={servletData:{serializedServletEventId:b}});g.oi("combine_ve_grafts")&&L&&qj(D,L);g.oi("no_client_ve_attach_unless_shown")&&u&&L&&pb(u,L);try{var q=QS6(D.client,
Q,t,P.py,P.cttAuthInfo,z,P.implicitGestureType,P.loggingExpectations)}catch(V){XdP(V,{ao:Q,rootVe:W,PRO:m,KET:L,ZGq:t,py:P.py});g.JG(V);return}gyk(q,Q,P.layer,P.cttAuthInfo);L&&L!=="UNDEFINED_CSN"&&W&&!hEj(L)&&Pzj(D.client,L,W,!0);D.S[D.S.length-1]&&!D.S[D.S.length-1].csn&&(D.S[D.S.length-1].csn=q||"");g.Jd({clientScreenNonce:q});Lx.instance||(Lx.instance=new Lx);g.xK(se().S).bind(se())();var C=g.Fz(P.layer);L&&L!=="UNDEFINED_CSN"&&C&&(g.oi("web_mark_root_visible")||g.oi("music_web_mark_root_visible"))&&
g.MJ(q,C);D.C.delete(P.layer||0);D.B=void 0;var f;(f=D.Kh.get(P.layer))==null||f.forEach(function(V,N){V?zn(D,N,V,P.layer):C&&zn(D,N,C,P.layer)});
g8$(D)};
g8$=function(D){for(var Q=0;Q<D.J.length;Q++){var m=D.J[Q];try{m()}catch(P){g.JG(P)}}for(Q=D.J.length=0;Q<D.j.length;Q++){m=D.j[Q];try{m()}catch(P){g.JG(P)}}};
qj=function(D,Q){if(Q===void 0)for(var m=F6w(),P=0;P<m.length;P++)m[P]!==void 0&&qj(D,m[P]);else D.T.forEach(function(W,L){(L=D.N.get(L))&&g.YO(D.client,Q,L,W)}),D.T.clear(),D.N.clear(),D.TO=void 0};
Cx=function(){};
B5j=function(){Cx.instance||(Cx.instance=new Cx);return Cx.instance};
wFh=function(D,Q,m){var P=new XMLHttpRequest;if(m==null?0:m.y8)P.onreadystatechange=function(L){m.y8(P,L)};
var W;P.open((W=Q.method)!=null?W:"GET",D,!0);P.responseType="text";P.withCredentials=!0;if(Q.headers)for(D=g.T(Object.entries(Q.headers)),Q=D.next();!Q.done;Q=D.next())W=g.T(Q.value),Q=W.next().value,W=W.next().value,P.setRequestHeader(Q,W);return P};
oP=function(){};
kRj=function(){var D=navigator;return new Promise(function(Q,m){var P;(P=D.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?D.webkitTemporaryStorage.queryUsageAndQuota(function(W,L){Q({usage:W,quota:L})},function(W){m(W)}):m(Error("webkitTemporaryStorage is not supported."))})};
mD=function(D,Q){var m=this;this.handleError=D;this.S=Q;this.C=!1;self.document===void 0||self.addEventListener("beforeunload",function(){m.C=!0});
this.T=Math.random()<=.2};
l1P=function(D,Q){oP.getInstance().estimate().then(function(m){m=Object.assign({},Q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:JV_(m==null?void 0:m.usage),deviceStorageQuotaMbytes:JV_(m==null?void 0:m.quota)});D.S("idbQuotaExceeded",m)})};
JV_=function(D){return typeof D==="undefined"?"-1":String(Math.ceil(D/1048576))};
RAj=function(){g.H5();return g.KU(0,192)?g.KU(0,190):!(g.oi("web_watch_cinematics_disabled_by_default")||g.oi("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&I14())};
H87=function(D,Q){Uw7(D.program,Q.usc)&&(Ul("bg_i",void 0,"player_att"),g.fx.initialize(D,function(){Ul("bg_l",void 0,"player_att");VE=(0,g.T3)()},Q.cspNonce,Q.LI))};
KAu=function(D){D=D===void 0?{}:D;return g.fx.invoke(D)};
Uw7=function(D,Q){if(D){var m;g.fx.isLoading()?m=!1:m=!VE||(0,g.T3)()-VE>Q;D=m}else D=!1;return D};
g.Nj=function(D,Q){return D.LI+"timedtext_video?ref=player&v="+Q.videoId};
g.jAj=function(D){var Q=this;this.videoData=D;D={};this.S=(D.c1a=function(){var m=[];if(g.fx.isInitialized()){var P="";Q.videoData&&Q.videoData.K1&&(P=Q.videoData.K1+("&r1b="+Q.videoData.clientPlaybackNonce));var W={};P=(W.atr_challenge=P,W);Ul("bg_v",void 0,"player_att");(P=KAu(P))?(Ul("bg_s",void 0,"player_att"),m.push("r1a="+P)):(Ul("bg_e",void 0,"player_att"),m.push("r1c=2"))}else Ul("bg_e",void 0,"player_att"),window.trayride||window.botguard?m.push("r1c=1"):m.push("r1c=4");m.push("r1d="+g.fx.getState());
return m.join("&")},D.c6a=function(m){return"r6a="+(Number(m.c)^cI())},D.c6b=function(m){return"r6b="+(Number(m.c)^Number(g.YK("CATSTAT",0)))},D);
this.videoData&&this.videoData.K1?this.D7=GG(this.videoData.K1):this.D7={}};
g.$wm=function(D){if(D.videoData&&D.videoData.K1){for(var Q=[D.videoData.K1],m=g.T(Object.keys(D.S)),P=m.next();!P.done;P=m.next())P=P.value,D.D7[P]&&D.S[P]&&(P=D.S[P](D.D7))&&Q.push(P);return Q.join("&")}return null};
g.yE=function(D,Q){H87(D,{usc:g.WF(Q.experiments,"bg_vm_reinit_threshold"),cspNonce:Q.cspNonce,LI:Q.LI||""})};
eAh=function(){var D=XMLHttpRequest.prototype.fetch;return!!D&&D.length===3};
v8h=function(D){D=D[d[15]](d[11]);Zo[d[50]](D,28);Zo[d[16]](D,2);Zo[d[50]](D,74);Zo[d[16]](D,3);Zo[d[56]](D,51);return D[d[23]](d[11])};
Ygm=function(D){O8r=2592E3*(D||1)};
F2=function(D){D=D===void 0?O8r:D;if(D>0&&!(Y7u()>(0,g.T3)()-D*1E3))return 0;D=g.kt("yt-player-quality");if(typeof D==="string"){if(D=g.ek[D],D>0)return D}else if(D instanceof Object)return D.quality;return 0};
Tn=function(){var D=g.kt("yt-player-proxima-pref");return D==null?null:D};
a1$=function(){var D=g.kt("yt-player-quality");if(D instanceof Object&&D.quality&&D.previousQuality){if(D.quality>D.previousQuality)return 1;if(D.quality<D.previousQuality)return-1}return 0};
AV7=function(){var D={values:{},Uk:{}};try{var Q=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);D.values=Q.values;D.halfLives=Q.halfLives}catch(m){}return D};
h3=function(){return g.kt("yt-player-performance-cap")||{}};
nx=function(){var D;return(D=g.kt("yt-player-performance-cap-active-set"))!=null?D:[]};
pF4=function(D){(D===void 0?0:D)?(D=nx().filter(function(Q){return Q.startsWith("1")}),g.wb("yt-player-performance-cap-active-set",D,2592E3)):g.wb("yt-player-performance-cap-active-set",[],2592E3)};
xwP=function(D){g.wb("yt-player-watch-later-pending",D)};
XF9=function(){return!!g.kt("yt-player-headers-readable")};
SgP=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(D){return 0}};
g.Ee=function(){var D=g.kt("yt-player-caption-language-preferences");return D?D:[]};
g_=function(){var D=g.kt("yt-player-user-settings"),Q=new Map;if(D){D=g.T(Object.entries(D));for(var m=D.next();!m.done;m=D.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;Q.set(m,P)}}return Q};
rV_=function(){var D;return(D=g.kt("yt-player-voice-boost"))!=null?D:void 0};
GRn=function(){var D;return(D=g.kt("yt-player-audio-quality-setting"))!=null?D:2};
w_=function(){try{var D=window.navigator;if(D.getAutoplayPolicy&&typeof D.getAutoplayPolicy==="function"){var Q=document.getElementsByClassName(g.B4.kxT);var m=Q.length>0&&Q[0]?D.getAutoplayPolicy(Q[0]):D.getAutoplayPolicy("mediaelement");if(Mqr[m])return Mqr[m]}}catch(P){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
kf=function(D){return D.VA||D.BB||D.mutedAutoplay};
cV7=function(D,Q){return kf(D)?Q!==1&&Q!==2&&Q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":D.vT?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
D07=function(D,Q,m){var P=Q.G();D.thirdParty||(D.thirdParty={});P.ancestorOrigins&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{ancestorOrigins:P.ancestorOrigins}));P.V("embeds_enable_autoplay_and_visibility_signals")&&(P.dF!=null&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(P.dF)})),P.Ig&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{visibilityFractionSource:P.Ig})),
D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:w_(),autoplayIntended:kf(Q),autoplayStatus:cV7(Q,m)}))};
QL4=function(D){var Q=[];D=g.T(D.split(","));for(var m=D.next();!m.done;m=D.next()){var P=m.value;P&&((m=P.startsWith("!"))&&(P=P.substring(1)),P=P.split("-"),P.length<3||Q.push({Nl:P[0],platform:P[1],deviceVersion:P[2],Ls:m}))}return Q};
WZr=function(D){return QL4(D).map(function(Q){return{deviceInterface:m0r[Pa6[Q.Nl]]||0,deviceVersion:Q.deviceVersion||"",isSleeping:Q.Ls}})};
g.J3=function(D,Q){this.id=D;this.WY=Q;this.captionTracks=[];this.T=this.B=null;this.xtags="";this.J=!1;this.S=null;this.C="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";D=this.WY.id.split(".");D.length>1&&(this.J=D[1]==="2")};
lt=function(D,Q,m,P,W){this.C=D;this.S=Q;this.T=m;this.reason=P;this.yF=W===void 0?0:W};
g.IP=function(D,Q,m,P){return new lt(g.ek[D]||0,g.ek[Q]||0,m,P)};
Ue=function(D){if(RP&&D.yF)return!1;var Q=g.ek.auto;return D.C===Q&&D.S===Q};
Kx=function(D){return H4[D.S||D.C]||"auto"};
iZ6=function(D,Q){Q=g.ek[Q];return D.C<=Q&&(!D.S||D.S>=Q)};
jc=function(D){return"["+D.C+"-"+D.S+", override: "+(D.T+", reason: "+D.reason+"]")};
$f=function(D,Q,m,P){this.videoInfos=D;this.S=Q;this.audioTracks=[];this.C=P||[];if(this.S){D=new Set;m==null||m({ainfolen:this.S.length});Q=g.T(this.S);for(P=Q.next();!P.done;P=Q.next())if(P=P.value,!P.WY||D.has(P.WY.id)){var W=void 0,L=void 0,u=void 0;(u=m)==null||u({atkerr:!!P.WY,itag:P.itag,xtag:P.S,lang:((W=P.WY)==null?void 0:W.name)||"",langid:((L=P.WY)==null?void 0:L.id)||""})}else W=new g.J3(P.id,P.WY),D.add(P.WY.id),this.audioTracks.push(W);m==null||m({atklen:this.audioTracks.length})}};
ec=function(){g.v.apply(this,arguments);this.S=null};
d07=function(D,Q,m,P,W,L,u){if(D.S)return D.S;var t={},z=new Set,b={};if(v4(P)){for(var q in P.S)P.S.hasOwnProperty(q)&&(D=P.S[q],b[D.info.FT]=[D.info]);return b}q=sL7(Q,P,t);L&&W({aftsrt:Oe(q)});for(var C={},f=g.T(Object.keys(q)),V=f.next();!V.done;V=f.next()){V=V.value;for(var N=g.T(q[V]),h=N.next();!h.done;h=N.next()){h=h.value;var B=h.itag,J=void 0,k=V+"_"+(((J=h.video)==null?void 0:J.fps)||0);C.hasOwnProperty(k)?C[k]===!0?b[V].push(h):t[B]=C[k]:(J=Yf(Q,h,m,P.isLive,z),J!==!0?(u.add(V),t[B]=J,
J==="disablevp9hfr"&&(C[k]="disablevp9hfr")):(b[V]=b[V]||[],b[V].push(h),C[k]=!0))}}L&&W({bfflt:Oe(b)});for(var R in b)b.hasOwnProperty(R)&&(P=R,b[P]&&b[P][0].ri()&&(b[P]=b[P],b[P]=LZ7(Q,b[P],t),b[P]=uj6(b[P],t)));L&&Object.keys(t).length>0&&W({rjr:ft(t)});Q=g.T(z.values());for(P=Q.next();!P.done;P=Q.next())(P=m.B.get(P.value))&&--P.mU;L&&W({aftflt:Oe(b)});D.S=g.cP(b,function(e){return!!e.length});
return D.S};
ze6=function(D,Q,m,P,W,L,u,t){t=t===void 0?!1:t;if(Q.g2&&u&&u.length>1&&!(Q.vc>0||Q.Z)){for(var z=Q.C||!!W,b=z&&Q.pj?L:void 0,q=sL7(Q,P),C=[],f=[],V={},N=0;N<u.length;N++){var h=u[N],B=P.T.get(h);if(B&&B.info){var J=B.info;B=J.FT;if(Yf(Q,J,m,P.isLive)){h=J.ri()?C:f;J=g.T(q[B]);for(var k=J.next();!k.done;k=J.next()){k=k.value;var R=void 0,e=B+"_"+(((R=k.video)==null?void 0:R.fps)||0);V.hasOwnProperty(e)?V[e]===!0&&h.push(k):Yf(Q,k,m,P.isLive)&&(h.push(k),V[e]=!0)}}else z&&L({opfu:h})}}if(C.length&&
f.length)return z&&L({opfm:C[0].itag+","+f[0].itag}),Bd(new $f(C,f,b))}return tL6(D,Q,m,P,W,L,t)};
tL6=function(D,Q,m,P,W,L,u){function t(a){return!!C[a]}
var z=Q.C||!!W,b=z&&Q.pj?L:void 0,q=new Set,C=d07(D,Q,m,P,L,z,q);aP(P)&&(C=bZ_(m,C,W,z,L,Q),z&&L({enflt:Oe(C)}));Q.jD=qoP(C,Q);var f=Ca$(Q);W=g.g0(f,t);D=[];if(Q.oy){W=g.T(W);for(var V=W.next();!V.done;V=W.next())D.push.apply(D,g.on(C[V.value]))}if(v4(P))return L=g.y4(Object.values(C),function(a){return!!a.length&&!!a[0].audio}),z=g.y4(Object.values(C),function(a){return!!a.length&&!!a[0].video}),L&&z||gj(),Bd(new $f(z,L,b,D));
W=C.a;V=!1;Q.Y9&&f[0]!=="a"&&o37(W)&&(f.unshift("a"),V=!0);z&&(L({audioPrefOrder:f.join("_")}),L({preferHighQualityAudio:Q.Y9}),L({forcedAacForHqa:V}));W=[];if(Q.kJ){f=g.g0(f,t);V=new Set;for(var N=g.T(f),h=N.next();!h.done;h=N.next()){var B=new Set;h=g.T(C[h.value]);for(var J=h.next();!J.done;J=h.next()){J=J.value;var k=void 0,R=(k=J.WY)==null?void 0:k.id;R&&(V.has(R)?B.has(R)&&W.push(J):(B.add(R),V.add(R),W.push(J)))}}if(W.length===0){if(f.length===0)return z&&L({noaudio:1}),gj();W=C[f[0]]}}else{W=
g.y4(f,t);if(!W)return z&&L({noaudio:1}),gj();W=C[W]}C["9"]&&C.h&&P.VX&&!Q.x9&&(z&&L({dltvp9:1}),delete C["9"]);if(u){z&&L({bfsflt:Oe(C),bfsflta:A3(m)});fd7(m,q);z&&L({bfsfltb:A3(m)});for(var e in C)if(C.hasOwnProperty(e)&&(u=e,!(u==="f"||Q.t0===0&&VLr.has(u))))for(q=g.T(C[u]),f=q.next();!f.done;f=q.next())f=f.value,Q.kB?NBw(m,u,f):yam(m,u,f);z&&L({aftsflt:A3(m)})}u=C["1h"]?"1h":"1";m=C["9h"]?"9h":"9";f=C[u];V=C[m];f&&f.length&&(Q.S.highestAv1Resolution=f[f.length-1].video.qualityOrdinal);V&&V.length&&
(Q.S.highestVp9Resolution=V[V.length-1].video.qualityOrdinal);e=[];q=[];if(Q.HO&&f)e=f,q=[u],L({forceAv1:u});else if(Q.Z&&!Q.S9)for(q=ZZ7(P)?C["1h"]||C["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],z&&L({newhybpref:q.join(".")}),f=g.T(q),V=f.next();!V.done;V=f.next())e=e.concat(C[V.value]).filter(function(a){return a});
else Q.vc>0&&V&&f&&(q=[u,m],e=f.concat(V).filter(function(a){return a}));
if(e.length&&!Q.S9){px(e,q);if(z){z=[];Q=g.T(e);for(P=Q.next();!P.done;P=Q.next())z.push(P.value.itag);L({hbdfmt:z.join(".")})}return Bd(new $f(e,W,b,D))}e=FZk(Q);e=g.y4(e,t);if(!e){if(C[u])return L=C[u],px(L),Bd(new $f(L,W,b,D));z&&L({novideo:1});return gj()}Q.Xw&&(e==="1"||e==="1h")&&C[m]&&(u=xf(C[e]),q=xf(C[m]),q>u?e=m:q===u&&TB6(C[m])&&(e=m));e==="9"&&C.h&&xf(C.h)>xf(C["9"])&&(e="h");Q.hU&&P.isLive&&e==="("&&C.H&&xf(C["("])<1440&&(e="H");z&&L({vfmly:X2(e)});Q=C[e];if(!Q.length)return z&&L({novfmly:X2(e)}),
gj();px(Q);return Bd(new $f(Q,W,b,D))};
qoP=function(D,Q){var m=!(!D.m&&!D.M),P=!(!D.mac3&&!D.MAC3),W=!(!D.meac3&&!D.MEAC3);D=!(!D.i&&!D.I);Q.zY=D;return m||P||W||D};
TB6=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.itag&&hen.has(Q.itag))return!0;return!1};
o37=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
X2=function(D){switch(D){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return D}};
Oe=function(D){var Q=[],m;for(m in D)if(D.hasOwnProperty(m)){var P=m;Q.push(X2(P));P=g.T(D[P]);for(var W=P.next();!W.done;W=P.next())Q.push(W.value.itag)}return Q.join(".")};
bZ_=function(D,Q,m,P,W,L){var u={},t={};g.MQ(Q,function(z,b){z=z.filter(function(q){var C=q.itag;if(!q.Ln)return t[C]="noenc",!1;if(L.Lj&&q.FT==="(h"&&L.gB)return t[C]="lichdr",!1;if(!D.J&&q.FT==="1e")return t[C]="noav1enc",!1;if(q.FT==="("||q.FT==="(h"){if(D.T&&m&&m.flavor==="widevine"){var f=q.mimeType+"; experimental=allowed";(f=!!q.Ln[m.flavor]&&!!m.S[f])||(t[C]=q.Ln[m.flavor]?"unspt":"noflv");return f}if(!Sc(D,r_.CRYPTOBLOCKFORMAT)&&!D.t0||D.Kh)return t[C]=D.Kh?"disvp":"vpsub",!1}return m&&q.Ln[m.flavor]&&
m.S[q.mimeType]?!0:(t[C]=m?q.Ln[m.flavor]?"unspt":"noflv":"nosys",!1)});
z.length&&(u[b]=z)});
P&&Object.entries(t).length&&W({rjr:ft(t)});return u};
uj6=function(D,Q){var m=N5(D,function(P,W){return W.video.fps>32?Math.min(P,W.video.width):P},Infinity);
m<Infinity&&(D=D.filter(function(P){if(P.video.fps>32||P.video.width<m)return!0;Q[P.itag]="hfrfirst";return!1}));
O2()&&(D=D.filter(function(P){if(P.itag!=="299")return!0;Q[P.itag]="ps3hfr1080";return!1}));
return D};
LZ7=function(D,Q,m){return Q=Q.filter(function(P){if(P.video.qualityOrdinal<=D.dn)return!0;m[P.itag]="maxquality";return!1})};
sL7=function(D,Q,m){var P={},W;for(W in Q.S)if(Q.S.hasOwnProperty(W)){var L=Q.S[W].info;if(D.U&&L.video&&L.video.qualityOrdinal<D.U)m&&(m[L.itag]="min"+D.U);else{var u=L.FT;P[u]=P[u]||[];P[u].push(L)}}D=g.T(Object.keys(P));for(Q=D.next();!Q.done;Q=D.next())px(P[Q.value]);return P};
xf=function(D){return N5(D,function(Q,m){return Math.max(Q,m.video.qualityOrdinal)},0)};
Yf=function(D,Q,m,P,W){W=W===void 0?new Set:W;if(Q.FT==="")return"unkn";if((Q.itag==="304"||Q.itag==="266")&&D.Iy)return"blk2khfr";if(D.N&&Q.video&&Q.video.qualityOrdinal>D.N)return"max"+D.N;if(D.XT&&Q.FT==="h"&&Q.video&&Q.video.qualityOrdinal>1080)return"blkhigh264";if(Q.FT==="(h"&&!m.U)return"enchdr";if((P===void 0?0:P)&&Ga(Q)&&!D.u0)return"blk51live";if((Q.FT==="MAC3"||Q.FT==="mac3")&&!D.B)return"blkac3";if((Q.FT==="MEAC3"||Q.FT==="meac3")&&!D.J)return"blkeac3";if(Q.FT==="M"||Q.FT==="m")return"blkaac51";
if((Q.FT==="so"||Q.FT==="sa")&&!D.TO)return"blkamb";if(!D.Lj&&gB7(Q)&&(!m.J||Q.FT!=="1e"))return"cbc";if(!m.J&&gB7(Q)&&Q.FT==="1e")return"cbcav1";if((Q.FT==="i"||Q.FT==="I")&&!D.PY)return"blkiamf";var L;if(D.cY&&((L=Q.audio)==null?void 0:L.C)===!0)return"blkvbcabr";var u,t;if(D.GO&&(Q.FT==="1"||Q.FT==="1h"||m.J&&Q.FT==="1e")&&((u=Q.video)==null?0:u.qualityOrdinal)&&((t=Q.video)==null?void 0:t.qualityOrdinal)>D.GO)return"av1cap";P=m.B.get(Q.FT);if(!D.Kj&&P&&P.mU>0)return W.add(Q.FT),"byerr";var z;
if((z=Q.video)==null?0:z.fps>32){if(!m.QF&&!Sc(m,r_.FRAMERATE))return"capHfr";if(D.l0&&Q.video.qualityOrdinal>=4320)return"blk8khfr";if(pt(Q)&&D.h8&&Q.Ln&&Q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(D.yF&&Q.yF>D.yF)return"ratecap";if(D.Kh>0&&Q.ri()&&Q.video.height>D.Kh)return"mvhcap";D=n3P(m,Q);return D!==!0?D:!0};
px=function(D,Q){Q=Q===void 0?[]:Q;g.pV(D,function(m,P){var W=P.yF-m.yF;if(!m.ri()||!P.ri())return W;var L=P.video.height*P.video.width-m.video.height*m.video.width;!L&&Q&&Q.length>0&&(m=Q.indexOf(m.FT)+1,P=Q.indexOf(P.FT)+1,L=m===0||P===0?P||-1:m-P);L||(L=W);return L})};
g.Gn=function(D,Q){this[d[17]]=D;this[d[36]]=Q===void 0?!1:Q;this[d[37]]=this[d[10]]=this[d[43]]=d[11];this[d[8]]={};this[d[22]]=d[11]};
c4=function(D){Mj(D);return D[d[37]]};
D2=function(D){return D[d[17]]?D[d[17]][d[30]](d[44]):D[d[43]]===d[44]};
E39=function(D){Mj(D);return g.QP(D[d[8]],function(Q){return Q!==null})};
QI=function(D){Mj(D);var Q=decodeURIComponent(D[d[51]](d[18])||d[11])[d[15]](d[29]);return D[d[10]]===d[35]&&Q[d[14]]>1&&!!Q[1]};
mu=function(D,Q){Q=Q===void 0?!1:Q;Mj(D);if(D[d[10]]!==d[35]){var m=D[d[39]]();m[d[19]](d[45],d[4]);return m}var P=D[d[24]]();m=new g.Qc(P);var W=D[d[51]](d[53]),L=decodeURIComponent(D[d[51]](d[18])||d[11])[d[15]](d[29]);if(W&&L&&L[d[14]]>1&&L[1])return P=m.S,D=P[d[78]](/^[^.]*/,d[11]),g.PV(m,(P[d[9]](d[57])===0?d[57]:d[41])+W+d[81]+L[1]+D),m=new g.Gn(m[d[31]]()),m[d[19]](d[65],d[4]),m;if(Q)return m=D[d[39]](),m[d[19]](d[65],d[4]),m;W=m.S[d[83]](d[26]);m.S[d[83]](d[63])?(g.PV(m,d[60]),P=m[d[31]]()):
m.S[d[83]](d[62])?(g.PV(m,d[64]),P=m[d[31]]()):(m=yGn(P),aA(m)&&(P=m));m=new g.Gn(P);m[d[19]](d[66],d[4]);W&&m[d[19]](d[88],d[73]);return m};
Mj=function(D){if(D[d[17]]){if(!(aA(D[d[17]])||D[d[17]][d[30]](d[44])||D[d[17]][d[30]](d[68])||D[d[17]][d[30]](d[67])))throw new g.OI(d[52],D[d[17]]);var Q=g.zp(D[d[17]]);D[d[43]]=Q.J;D[d[37]]=Q.S+(Q.T!=null?d[47]+Q.T:d[11]);var m=Q.C;if(m[d[30]](d[35]))D[d[10]]=d[35],m=m[d[0]](14);else if(m[d[30]](d[84]))D[d[10]]=d[84],m=m[d[0]](13);else if(m[d[30]](d[34])){var P=m[d[9]](d[1],12),W=m[d[9]](d[1],P+1);P>0&&W>0?(D[d[10]]=m[d[0]](0,W),m=m[d[0]](W+1)):(D[d[10]]=m,m=d[11])}else D[d[10]]=m,m=d[11];P=D[d[8]];
D[d[8]]=g3$(m);Object[d[61]](D[d[8]],BB9(Q.B.toString()));Object[d[61]](D[d[8]],P);D[d[8]][d[54]]===d[27]&&(delete D[d[8]][d[54]],D[d[10]]+=d[87]);D[d[17]]=d[11];D[d[22]]=d[11];D[d[36]]&&(Mj(D),Q=D[d[8]][d[33]]||null)&&(Q=wXr[0](Q),D[d[19]](d[33],Q))}};
kVw=function(D){Mj(D);var Q=D[d[43]]+(D[d[43]]?d[69]:d[77])+D[d[37]]+D[d[10]];if(E39(D)){var m=[];g.MQ(D[d[8]],function(P,W){P!==null&&m[d[3]](W+d[7]+P)});
Q+=d[70]+m[d[23]](d[28])}return Q};
g3$=function(D){D=D[d[15]](d[1]);var Q=0;D[0]||Q++;for(var m={};Q<D[d[14]];Q+=2)D[Q]&&Ja4(m,D[Q],D[Q+1]);return m};
BB9=function(D){D=D[d[15]](d[28]);for(var Q={},m=0;m<D[d[14]];m++){var P=D[m],W=P[d[9]](d[7]);W>0?Ja4(Q,P[d[0]](0,W),P[d[0]](W+1)):P&&(Q[P]=d[11])}return Q};
Ja4=function(D,Q,m){if(Q===d[38]){var P;(P=m[d[9]](d[7]))>=0?(Q=d[58]+m[d[0]](0,P),m=m[d[0]](P+1)):(P=m[d[9]](d[82]))>=0&&(Q=d[58]+m[d[0]](0,P),m=m[d[0]](P+3))}D[Q]=m};
PW=function(D){var Q=g.A(D,ld7)||D[d[55]];D={HX:!1,UL:d[11],hw:d[11],s:d[11]};if(!Q)return D;Q=GG(Q);D[d[25]]=!0;D[d[86]]=Q[d[22]];D[d[85]]=Q[d[80]];D[d[2]]=Q[d[2]];return D};
WW=function(D,Q,m,P,W,L,u,t,z){this.J0=D;this.startTime=Q;this.duration=m;this.ingestionTime=P;this.sourceURL=W;this.OC=z;this.endTime=Q+m;this.S=u||0;this.range=L||null;this.pending=t||!1;this.OC=z||null};
g.i5=function(){this.segments=[];this.S=null;this.C=!0;this.T=""};
IdP=function(D,Q){if(Q>D.MY())D.segments=[];else{var m=NQ(D.segments,function(P){return P.J0>=Q},D);
m>0&&D.segments.splice(0,m)}};
sm=function(D,Q,m,P,W){W=W===void 0?!1:W;this.data=D;this.offset=Q;this.size=m;this.type=P;this.S=(this.C=W)?0:8;this.dataOffset=this.offset+this.S};
Ld=function(D){var Q=D.data.getUint8(D.offset+D.S);D.S+=1;return Q};
u5=function(D){var Q=D.data.getUint16(D.offset+D.S);D.S+=2;return Q};
dy=function(D){var Q=D.data.getInt32(D.offset+D.S);D.S+=4;return Q};
tg=function(D){var Q=D.data.getUint32(D.offset+D.S);D.S+=4;return Q};
zo=function(D){var Q=D.data;var m=D.offset+D.S;Q=Q.getUint32(m)*4294967296+Q.getUint32(m+4);D.S+=8;return Q};
b5=function(D,Q){Q=Q===void 0?NaN:Q;if(isNaN(Q))var m=D.size;else for(m=D.S;m<D.size&&D.data.getUint8(D.offset+m)!==Q;)++m;Q=new Uint8Array(D.data.buffer,D.offset+D.S+D.data.byteOffset,m-D.S);D.S=Math.min(m+1,D.size);return fh(Q)};
Rew=function(D){return new Uint8Array(D.data.buffer,D.offset+D.data.byteOffset,D.size)};
U0h=function(D){this.offset=0;this.data=new DataView(new ArrayBuffer(D))};
qk=function(D,Q,m,P){(new Uint8Array(D.data.buffer,D.offset,P)).set(new Uint8Array(Q.buffer,m+Q.byteOffset,P));D.offset+=P};
Cd=function(D,Q,m,P,W,L){this.startSecs=D;this.m$=Q;this.context=m;this.identifier=P;this.event=W;this.S=L};
fd=function(D,Q){this.data=D;this.uri=Q||"http://youtube.com/streaming/metadata/segment/102015";this.Pi=o5(this,"Sequence-Number");this.B=o5(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=o5(this,"Ingestion-Walltime-Us")/1E6;this.S=(o5(this,"First-Frame-Time-Us")+o5(this,"First-Frame-Uncertainty-Us"))/1E6;this.EY=o5(this,"Target-Duration-Us")/1E6;this.zM=this.data["Stream-Finished"]==="T";this.T=this.data.Streamable==="T";this.cryptoPeriodIndex=o5(this,"Crypto-Period-Index");
this.C=o5(this,"Crypto-Period-Seconds")};
KZ_=function(D){return D.data["Cuepoint-Type"]?new Cd(-(Number(D.data["Cuepoint-Playhead-Time-Sec"])||0),Number(D.data["Cuepoint-Total-Duration-Sec"])||0,D.data["Cuepoint-Context"],D.data["Cuepoint-Identifier"]||"",HZw[D.data["Cuepoint-Event"]||""]||"unknown",(Number(D.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
jLm=function(D){return Number(D.data["Start-Media-Time-Us"])/1E6||0};
o5=function(D,Q){return Number(D.data[Q])||0};
$07=function(D){return D.data["Stitched-Video-Cpn"]?D.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.een=function(D){return D.data["Serialized-State"]?D.data["Serialized-State"]:""};
g.v34=function(D){switch(D.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
OZm=function(D,Q){this.S=D;this.duration=Q};
Yon=function(D,Q,m,P,W){this.C=W;this.S=D||0;this.pitch=Q||0;this.yaw=m||0;this.roll=P||0;this.crc=W.getUint32(4)};
VI=function(D){var Q={};D=D.split("\r\n");for(var m=0;m<D.length;m++){if(D[m].length===0)return Q;var P=D[m].match(/([^:]+):\s+([\S\s]+)/);P!=null&&(Q[P[1]]=P[2])}return null};
adk=function(D,Q){var m=g.Nk(D,0,1952868452);D=g.Nk(D,0,1953658222);if(m&&D){m.skip(1);var P=Ld(m)<<16|u5(m);m.skip(4);P&1&&m.skip(8);P&2&&m.skip(4);if(P&8){P=m.S;var W=tg(m);m.data.setUint32(m.offset+P,Q>1?Math.ceil(W*Q):Math.floor(W*Q))}D.skip(1);m=Ld(D)<<16|u5(D);if(m&256){P=m&1;W=m&4;var L=m&512,u=m&1024,t=m&2048;m=tg(D);P&&D.skip(4);W&&D.skip(4);P=(L?4:0)+(u?4:0)+(t?4:0);for(W=0;W<m;W++)L=D.S,u=tg(D),D.data.setUint32(D.offset+L,Q>1?Math.ceil(u*Q):Math.floor(u*Q)),D.skip(P)}}};
Z2=function(D){D=new DataView(D.buffer,D.byteOffset,D.byteLength);return(D=g.Nk(D,0,1836476516))?g.yI(D):NaN};
AaP=function(D){var Q=g.Nk(D,0,1937011556);if(!Q)return null;Q=FV(D,Q.dataOffset+8,1635148593)||FV(D,Q.dataOffset+8,1635135537);if(!Q)return null;var m=FV(D,Q.dataOffset+78,1936995172),P=FV(D,Q.dataOffset+78,1937126244);if(!P)return null;Q=null;if(m)switch(m.skip(4),Ld(m)){default:Q=0;break;case 1:Q=2;break;case 2:Q=1;break;case 3:Q=255}var W=m=null,L=null;if(P=FV(D,P.dataOffset,1886547818)){var u=FV(D,P.dataOffset,1886546020),t=FV(D,P.dataOffset,2037673328);if(!t&&(t=FV(D,P.dataOffset,1836279920),
!t))return null;u&&(u.skip(4),m=dy(u)/65536,L=dy(u)/65536,W=dy(u)/65536);D=Rew(t);D=new DataView(D.buffer,D.byteOffset+8,D.byteLength-8);return new Yon(Q,m,L,W,D)}return null};
FV=function(D,Q,m){for(;To(D,Q);){var P=hg(D,Q);if(P.type===m)return P;Q+=P.size}return null};
g.Nk=function(D,Q,m){for(;To(D,Q);){var P=hg(D,Q);if(P.type===m)return P;Q=nd(P.type)?Q+8:Q+P.size}return null};
g.Em=function(D){if(D.data.getUint8(D.dataOffset)){var Q=D.data;D=D.dataOffset+4;Q=Q.getUint32(D)*4294967296+Q.getUint32(D+4)}else Q=D.data.getUint32(D.dataOffset+4);return Q};
hg=function(D,Q){var m=D.getUint32(Q),P=D.getUint32(Q+4);return new sm(D,Q,m,P)};
g.yI=function(D){var Q=D.data.getUint8(D.dataOffset)?20:12;return D.data.getUint32(D.dataOffset+Q)};
pX7=function(D){D=new sm(D.data,D.offset,D.size,D.type,D.C);var Q=Ld(D);D.skip(7);var m=tg(D);if(Q===0){Q=tg(D);var P=tg(D)}else Q=zo(D),P=zo(D);D.skip(2);for(var W=u5(D),L=[],u=[],t=0;t<W;t++){var z=tg(D);L.push(z);u.push(tg(D));D.skip(4)}return{timescale:m,d$:Q,As:P,QFW:L,OV:u}};
To=function(D,Q){if(D.byteLength-Q<8)return!1;var m=D.getUint32(Q);if(m<8||D.byteLength-Q<m)return!1;for(m=4;m<8;m++){var P=D.getInt8(Q+m);if(P<48||P>122)return!1}return!0};
nd=function(D){return D===1701082227||D===1836019558||D===1836019574||D===1835297121||D===1835626086||D===1937007212||D===1953653094||D===1953653099||D===1836475768};
x0n=function(D){D.skip(4);return{YSO:b5(D,0),value:b5(D,0),timescale:tg(D),XpT:tg(D),eventDuration:tg(D),id:tg(D),pC:b5(D),offset:D.offset}};
g.XXw=function(D){var Q=FV(D,0,1701671783);if(!Q)return null;var m=x0n(Q),P=m.YSO;m=VI(m.pC);if(D=FV(D,Q.offset+Q.size,1701671783))if(D=x0n(D),D=VI(D.pC),m&&D){Q=g.T(Object.keys(D));for(var W=Q.next();!W.done;W=Q.next())W=W.value,m[W]=D[W]}return m?new fd(m,P):null};
gy=function(D,Q){for(var m=FV(D,0,Q);m;){var P=m;P.type=1936419184;P.data.setUint32(P.offset+4,1936419184);m=FV(D,m.offset+m.size,Q)}};
g.BW=function(D,Q){for(var m=0,P=[];To(D,m);){var W=hg(D,m);W.type===Q&&P.push(W);m=nd(W.type)?m+8:m+W.size}return P};
Soj=function(D,Q){var m=g.Nk(D,0,1937011556),P=g.Nk(D,0,1953654136);if(!m||!P||D.getUint32(m.offset+12)>=2)return null;var W=new DataView(Q.buffer,Q.byteOffset,Q.length),L=g.Nk(W,0,1937011556);if(!L)return null;Q=W.getUint32(L.dataOffset+8);P=W.getUint32(L.dataOffset+12);if(P!==1701733217&&P!==1701733238)return null;P=new U0h(D.byteLength+Q);qk(P,D,0,m.offset+12);P.data.setInt32(P.offset,2);P.offset+=4;qk(P,D,m.offset+16,m.size-16);qk(P,W,W.byteOffset+L.dataOffset+8,Q);qk(P,D,m.offset+m.size,D.byteLength-
(m.offset+m.size));m=g.T([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(W=m.next();!W.done;W=m.next())W=g.Nk(D,0,W.value),P.data.setUint32(W.offset,W.size+Q);D=g.Nk(P.data,0,1953654136);P.data.setUint32(D.offset+16,2);return P.data};
ra$=function(D){var Q=g.Nk(D,0,1937011556);if(!Q)return null;var m=D.getUint32(Q.dataOffset+12);if(m!==1701733217&&m!==1701733238)return null;Q=FV(D,Q.offset+24+(m===1701733217?28:78),1936289382);if(!Q)return null;m=FV(D,Q.offset+8,1935894637);if(!m||D.getUint32(m.offset+12)!==1667392371)return null;Q=FV(D,Q.offset+8,1935894633);if(!Q)return null;Q=FV(D,Q.offset+8,1952804451);if(!Q)return null;m=new Uint8Array(16);for(var P=0;P<16;P++)m[P]=D.getInt8(Q.offset+16+P);return m};
wy=function(D,Q){this.S=D;this.pos=0;this.start=Q||0};
kg=function(D){return D.pos>=D.S.byteLength};
Um=function(D,Q,m){var P=new wy(m);if(!Jg(P,D))return!1;P=l5(P);if(!I5(P,Q))return!1;for(D=0;Q;)Q>>>=8,D++;Q=P.start+P.pos;var W=R5(P,!0);P=D+(P.start+P.pos-Q)+W;P=P>9?GVu(P-9,8):GVu(P-2,1);D=Q-D;m.setUint8(D++,236);for(Q=0;Q<P.length;Q++)m.setUint8(D++,P[Q]);return!0};
ML7=function(D){var Q=new wy(D);Q.Yu();if(Jg(Q,[408125543,374648427,174,224]))Q=l5(Q);else return null;for(var m=D=null;!kg(Q);){var P=R5(Q,!1);if(P===21432)switch(HW(Q)){default:D=0;break;case 1:D=1;break;case 3:D=2;break;case 15:D=255}else P===30320?m=l5(Q):Kd(Q)}if(!m)return null;for(var W,L=P=Q=null;!kg(m);)switch(R5(m,!1)){case 30321:if(HW(m)!==3)return null;break;case 30324:Q=jJ(m);break;case 30323:L=jJ(m);break;case 30325:P=jJ(m);break;case 30322:W=R5(m,!0);W=$g(m,W);W=new DataView(W.buffer,
W.byteOffset,W.byteLength);break;default:Kd(m)}return W?new Yon(D,Q,L,P,W):null};
l5=function(D){var Q=R5(D,!0),m=D.S.byteOffset+D.pos;m=new DataView(D.S.buffer,m,Math.min(Q,D.S.buffer.byteLength-m));m=new wy(m,D.start+D.pos);D.pos+=Q;return m};
HW=function(D){for(var Q=R5(D,!0),m=eJ(D),P=1;P<Q;P++)m=m*256+eJ(D);return m};
jJ=function(D){var Q=R5(D,!0),m=0;Q===4?m=D.S.getFloat32(D.pos):Q===8&&(m=D.S.getFloat64(D.pos));D.pos+=Q;return m};
ca9=function(D){var Q=R5(D,!0);return fh($g(D,Q))};
eJ=function(D){return D.S.getUint8(D.pos++)};
R5=function(D,Q){var m=eJ(D);if(m===1){for(Q=m=0;Q<7;Q++)m=m*256+eJ(D);return m}for(var P=128,W=0;W<6&&P>m;W++)m=m*256+eJ(D),P*=128;return Q?m-P:m};
Kd=function(D){var Q=R5(D,!0);D.pos+=Q};
Dh6=function(D){if(!I5(D,440786851,!0))return null;var Q=D.pos;R5(D,!1);var m=R5(D,!0)+D.pos-Q;D.pos=Q+m;if(!I5(D,408125543,!1))return null;R5(D,!0);if(!I5(D,357149030,!0))return null;var P=D.pos;R5(D,!1);var W=R5(D,!0)+D.pos-P;D.pos=P+W;if(!I5(D,374648427,!0))return null;var L=D.pos;R5(D,!1);var u=R5(D,!0)+D.pos-L,t=new Uint8Array(m+12+W+u),z=new DataView(t.buffer);t.set(new Uint8Array(D.S.buffer,D.S.byteOffset+Q,m));z.setUint32(m,408125543);z.setUint32(m+4,33554431);z.setUint32(m+8,4294967295);
t.set(new Uint8Array(D.S.buffer,D.S.byteOffset+P,W),m+12);t.set(new Uint8Array(D.S.buffer,D.S.byteOffset+L,u),m+12+W);return t};
vW=function(D){var Q=D.pos;D.pos=0;var m=1E6;Jg(D,[408125543,357149030,2807729])&&(m=HW(D));D.pos=Q;return m};
QNn=function(D,Q){var m=D.pos;D.pos=0;if(D.S.getUint8(D.pos)!==160&&!Om(D)||!I5(D,160))return D.pos=m,NaN;R5(D,!0);var P=D.pos;if(!I5(D,161))return D.pos=m,NaN;R5(D,!0);eJ(D);var W=eJ(D)<<8|eJ(D);D.pos=P;if(!I5(D,155))return D.pos=m,NaN;P=HW(D);D.pos=m;return(W+P)*Q/1E9};
Om=function(D){if(!mh_(D)||!I5(D,524531317))return!1;R5(D,!0);return!0};
mh_=function(D){if(D.Yu()){if(!I5(D,408125543))return!1;R5(D,!0)}return!0};
Jg=function(D,Q){for(var m=0;m<Q.length;m++){if(!I5(D,Q[m]))return!1;m!==Q.length-1&&R5(D,!0)}return!0};
I5=function(D,Q,m){m=m===void 0?!1:m;if(kg(D))return!1;for(var P=D.pos;R5(D,!1)!==Q;)if(Kd(D),P=D.pos,kg(D))return!1;m&&(D.pos=P);return!0};
GVu=function(D,Q){Q||(Q=Math.ceil(Math.log(D+2)/Math.log(2)/7));for(var m=1<<8-Q,P=[];P.length<Q-1;)P.unshift(D%256),D=Math.floor(D/256);P.unshift(D|m);return P};
$g=function(D,Q){var m=new Uint8Array(D.S.buffer,D.S.byteOffset+D.pos,Q);D.pos+=Q;return m};
Yg=function(D){this.Mb=D;this.S={};this.url=""};
Pnk=function(D,Q){var m=Q.indexOf("?");if(m>0){var P=BB9(Q.substring(m+1));g.MQ(P,function(W,L){this.set(L,W)},D);
Q=Q.substring(0,m)}Q=g3$(Q);g.MQ(Q,function(W,L){this.set(L,W)},D)};
Wsj=function(D){var Q=D.Mb.AD(),m=[];g.MQ(D.S,function(W,L){m.push(L+"="+W)});
if(!m.length)return Q;var P=m.join("&");D=E39(D.Mb)?"&":"?";return Q+D+P};
a5=function(D,Q){var m=new g.Gn(Q);(Q=m.get("req_id"))&&D.set("req_id",Q);g.MQ(D.S,function(P,W){m["set"](W,null)});
return m};
it6=function(){this.B=this.T=this.S=this.timedOut=this.started=this.J=this.C=0};
Ag=function(D){D.J=(0,g.T3)();D.started=0;D.timedOut=0;D.S=0};
pd=function(D,Q){var m=D.started+D.S*4;Q&&(m+=D.T);m=Math.max(0,m-3);return Math.pow(1.6,m)};
xg=function(D,Q){D[Q]||(D[Q]=new it6);return D[Q]};
XV=function(D){this.j=this.U=this.J=this.T=0;this.Z=this.N=!1;this.S=D;this.C=D.clone()};
sNh=function(D,Q,m){if(D2(D.S))return!1;var P=xg(m,c4(D.S));if(P.timedOut<1&&P.S<1)return!1;P=P.timedOut+P.S;D=SJ(D,Q);m=xg(m,c4(D));return m.timedOut+m.S+0<P};
ry=function(D,Q,m){D=Q?SJ(D,m):D.S;return new Yg(D)};
SJ=function(D,Q){Q=Q?Q.RH:!1;D.B||(D.B=mu(D.C,Q));return D.B};
Go=function(D,Q,m){return c4(Q?SJ(D,m):D.S)};
Mk=function(D,Q,m,P){(P===void 0?0:P)>1?Q=Q.qs:(m=xg(m,Go(D,D.SP(Q,m),Q)),Q=Math.max(D.J,m.timedOut)+Q.wu*(D.T-D.J)+.25*D.U,Q=Q>3?1E3*Math.pow(1.6,Q-3):0);return Q===0?!0:D.j+Q<(0,g.T3)()};
Lsw=function(D,Q,m){D.S.set(Q,m);D.C.set(Q,m);D.B&&D.B.set(Q,m)};
uOP=function(D,Q,m,P,W){++D.T;Q&&++D.J;c4(m.Mb).startsWith("redirector.")&&(D.S=D.C.clone(),delete D.B,P.VJ&&delete W[c4(D.S)])};
cW=function(D){return D?(D.itag||"")+";"+(D.lmt||0)+";"+(D.xtags||""):""};
DB=function(D,Q,m,P){this.initRange=m;this.indexRange=P;this.S=null;this.T=!1;this.N=0;this.B=this.sL=this.C=null;this.info=Q;this.NB=new XV(D)};
Qa=function(D,Q){this.start=D;this.end=Q;this.length=Q-D+1};
mw=function(D){D=D.split("-");var Q=Number(D[0]),m=Number(D[1]);if(!isNaN(Q)&&!isNaN(m)&&D.length===2&&(D=new Qa(Q,m),!isNaN(D.start)&&!isNaN(D.end)&&!isNaN(D.length)&&D.length>0))return D};
Pl=function(D,Q){return new Qa(D,D+Q-1)};
dhh=function(D){return D.end==null?{start:String(D.start)}:{start:String(D.start),end:String(D.end)}};
Wl=function(D){if(!D)return new Qa(0,0);var Q=Number(D.start);D=Number(D.end);if(!isNaN(Q)&&!isNaN(D)&&(Q=new Qa(Q,D),Q.length>0))return Q};
i3=function(D,Q,m,P,W,L,u,t,z,b,q,C){P=P===void 0?"":P;this.type=D;this.S=Q;this.range=m;this.source=P;this.ML=q;this.clipId=C===void 0?"":C;this.j=[];this.U="";this.J0=-1;this.TO=0;this.U=P;this.J0=W>=0?W:-1;this.startTime=L||0;this.duration=u||0;this.C=t||0;this.T=z>=0?z:this.range?this.range.length:NaN;this.B=this.range?this.C+this.T===this.range.length:b===void 0?!!this.T:b;this.range?(this.J=this.startTime+this.duration*this.C/this.range.length,this.Z=this.duration*this.T/this.range.length,this.N=
this.J+this.Z):tkk(this)};
tkk=function(D){D.J=D.startTime;D.Z=D.duration;D.N=D.J+D.Z};
zP$=function(D,Q,m){var P=!(!Q||Q.S!==D.S||Q.type!==D.type||Q.J0!==D.J0);return m?P&&!!Q&&(D.range&&Q.range?Q.range.end===D.range.end:Q.range===D.range)&&Q.C+Q.T===D.C+D.T:P};
sW=function(D){return D.type===1||D.type===2};
Lf=function(D){return D.type===3||D.type===6};
u3=function(D,Q){return D.S===Q.S?D.range&&Q.range?D.range.start+D.C+D.T===Q.range.start+Q.C:D.J0===Q.J0?D.C+D.T===Q.C:D.J0+1===Q.J0&&Q.C===0&&D.B:!1};
q5k=function(D,Q){return D.J0!==Q.J0&&Q.J0!==D.J0+1||D.type!==Q.type?!1:u3(D,Q)?!0:Math.abs(D.J-Q.J)<=1E-6&&D.J0===Q.J0?!1:btj(D,Q)};
btj=function(D,Q){return u3(D,Q)||Math.abs(D.N-Q.J)<=1E-6||D.J0+1===Q.J0&&Q.C===0&&D.B?!0:!1};
dL=function(D){return D.J0+(D.B?1:0)};
Cnu=function(D){D.length===1||g.VT(D,function(m){return!!m.range});
for(var Q=1;Q<D.length;Q++);Q=D[D.length-1];return new Qa(D[0].range.start+D[0].C,Q.range.start+Q.C+Q.T-1)};
oVP=function(D){for(var Q=1;Q<D.length;Q++)if(!u3(D[Q-1],D[Q]))return!1;return!0};
fOP=function(D){var Q=0;D=g.T(D);for(var m=D.next();!m.done;m=D.next())Q+=m.value.range.length;return Q};
t7=function(D){var Q={};Q.itag=D.S.info.itag;Q.type=""+D.type;Q.src=""+D.source;Q.segsrc=D.U;Q.seg=String(D.J0);D.range&&(Q.range=D.range.start+D.C+"-"+(D.range.start+D.C+D.T-1));Q.time=D.J.toFixed(1)+"-"+(D.J+D.Z).toFixed(1);Q.off=String(D.C);Q.len=String(D.T);D.B&&(Q.end="1");D.zM()&&(Q.eos="1");D.clipId&&(Q.cid=D.clipId);return Q};
Vk_=function(D){return new i3(D.type,D.S,D.range,"getEmptyStubBefore"+D.U,D.J0,D.startTime,0,D.C,0)};
NOP=function(D){return new i3(D.type,D.S,D.range,"getEmptyStubAfter"+D.U,D.J0,D.startTime+D.duration,0,D.C+D.T,0)};
yLk=function(D,Q,m,P){return new i3(D.type,D.S,D.range,"reslice"+D.U,D.J0,D.startTime,D.duration,Q,m,P,D.ML,D.clipId)};
Zth=function(D,Q){return D.S!==Q.S?!1:D.range&&Q.range?D.range.start+D.C>=Q.range.start+Q.C&&D.range.start+D.C+D.T<=Q.range.start+Q.C+Q.T:D.J0===Q.J0&&D.C>=Q.C&&(D.C+D.T<=Q.C+Q.T||Q.B)};
Fsw=function(D,Q){return D.S!==Q.S?!1:D.type===4&&Q.type===3&&D.S.xa()?(D=D.S.OP(D),v9(D,function(m){return Fsw(m,Q)})):D.J0===Q.J0&&!!Q.T&&Q.C+Q.T>D.C&&Q.C+Q.T<=D.C+D.T};
zf=function(D,Q){var m=Q.J0;D.U="updateWithSegmentInfo";D.J0=m;if(D.startTime!==Q.startTime||D.duration!==Q.duration)D.startTime=Q.startTime+0,D.duration=Q.duration,tkk(D)};
b3=function(D,Q){var m=this;this.EW=D;this.B=this.S=null;this.J=this.e1=NaN;this.SP=this.requestId=null;this.It={AZq:function(){return m.range}};
this.NB=D[0].S.NB;this.C=Q||"";this.EW[0].range&&this.EW[0].T>0&&(oVP(D)?(this.range=Cnu(D),this.T=this.range.length):(this.range=this.EW[this.EW.length-1].range,this.T=fOP(D)))};
qA=function(D){return!sW(D.EW[D.EW.length-1])};
Cf=function(D){return D.EW[D.EW.length-1].type===4};
g.od=function(D,Q,m){m=D.SP===null?D.NB.SP(Q,m,D.EW[0].type):D.SP;if(D.S){Q=m?mu(D.S,Q.RH):D.S;var P=new Yg(Q);P.get("alr")||P.set("alr","yes");D.C&&Pnk(P,D.C)}else/http[s]?:\/\//.test(D.C)?P=new Yg(new g.Gn(D.C)):(P=ry(D.NB,m,Q),D.C&&Pnk(P,D.C));(Q=D.range)?P.set("range",Q.toString()):D.EW[0].S.E_()&&D.EW.length===1&&D.EW[0].C&&P.set("range",D.EW[0].C+"-");D.requestId&&P.set("req_id",D.requestId);isNaN(D.e1)||P.set("headm",D.e1.toString());isNaN(D.J)||P.set("mffa",D.J+"ms");D.urlParams&&g.MQ(D.urlParams,
function(W,L){P.set(L,W)});
return P};
TO_=function(D){if(D.range)return D.T;D=D.EW[0];return Math.round(D.Z*D.S.info.yF)};
hPm=function(D,Q){return Math.max(0,D.EW[0].J-Q)};
ff=function(D,Q,m,P,W,L){L=L===void 0?0:L;DB.call(this,D,Q,P,void 0);this.J=m;this.EY=L;this.index=W||new g.i5};
nV7=function(D,Q,m,P,W){this.J0=D;this.startSecs=Q;this.m$=m;this.S=P||NaN;this.C=W||NaN};
Va=function(D,Q,m){for(;D;D=D.parentNode)if(D.attributes&&(!m||D.nodeName===m)){var P=D.getAttribute(Q);if(P)return P}return""};
NA=function(D,Q){for(;D;D=D.parentNode){var m=D.getElementsByTagName(Q);if(m.length>0)return m[0]}return null};
EV7=function(D){if(!D)return 0;var Q=D.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Q?(Number(Q[2])|0)*3600+(Number(Q[4])|0)*60+(Number(Q[6])|0):Number(D)|0};
gVw=function(D){return D.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?D+"Z":D};
ya=function(){this.S=[];this.C=null;this.N=0;this.T=[];this.J=!1;this.U="";this.B=-1};
BO7=function(D){var Q=D.T;D.T=[];return Q};
w69=function(){this.B=[];this.S=null;this.C={};this.T={}};
IO_=function(D,Q){var m=[];Q=Array.from(Q.getElementsByTagName("SegmentTimeline"));Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next()){P=P.value;var W=P.parentNode.parentNode,L=null;W.nodeName==="Period"?L=ka4(D):W.nodeName==="AdaptationSet"?(W=W.getAttribute("id")||W.getAttribute("mimetype")||"",L=JL_(D,W)):W.nodeName==="Representation"&&(W=W.getAttribute("id")||"",L=lOr(D,W));if(L==null)return;L.update(P);g.lv(m,BO7(L))}g.lv(D.B,m);B77(D.B,function(u){return u.startSecs*1E3+u.S})};
RP4=function(D){D.S&&(D.S.S=[]);g.MQ(D.C,function(Q){Q.S=[]});
g.MQ(D.T,function(Q){Q.S=[]})};
ka4=function(D){D.S||(D.S=new ya);return D.S};
JL_=function(D,Q){D.C[Q]||(D.C[Q]=new ya);return D.C[Q]};
lOr=function(D,Q){D.T[Q]||(D.T[Q]=new ya);return D.T[Q]};
F_=function(D){var Q=D===void 0?{}:D;D=Q.EY===void 0?0:Q.EY;var m=Q.bU===void 0?!1:Q.bU;var P=Q.bO===void 0?0:Q.bO;var W=Q.vO===void 0?0:Q.vO;var L=Q.v1===void 0?Infinity:Q.v1;var u=Q.cg===void 0?0:Q.cg;var t=Q.Ws===void 0?!1:Q.Ws;Q=Q.mV===void 0?!1:Q.mV;g.i5.call(this);this.VW=this.C0=-1;this.ze=D;this.bO=P;this.bU=m;this.vO=W;this.v1=L;this.cg=u;((this.Ws=t)||isFinite(L)&&this.v1>0)&&m&&ZB&&(this.C=!1,this.T="postLive");this.mV=Q};
Tf=function(D,Q){return Yk(D.segments,function(m){return Q-m.J0})};
h7=function(D,Q,m){m=m===void 0?{}:m;ff.call(this,D,Q,"",void 0,void 0,m.EY||0);this.index=new F_(m)};
nf=function(D,Q,m){DB.call(this,D,Q);this.J=m;D=this.index=new g.i5;D.C=!1;D.T="d"};
Uhm=function(D,Q,m){var P=D.index.KP(Q),W=D.index.getStartTime(Q),L=D.index.getDuration(Q);m?L=m=0:m=D.info.yF*L;return new b3([new i3(3,D,void 0,"otfCreateRequestInfoForSegment",Q,W,L,0,m)],P)};
Ht$=function(D,Q){if(!D.index.isLoaded()){var m=[],P=Q.B;Q=Q.J.split(",").filter(function(q){return q.length>0});
for(var W=0,L=0,u=0,t=/^(\d+)/,z=/r=(\d+)/,b=0;b<P;b++){if(u<=0)if(u=Q.shift(),L=(L=t.exec(u))?+L[1]/1E3:0)u=(u=z.exec(u))?+u[1]:0,u+=1;else return;m.push(new WW(b,W,L,NaN,"sq/"+(b+1)));W+=L;u--}D.index.append(m)}};
g.EW=function(D){this.tag=D};
Ks7=function(D,Q){gL.apply(null,[6,D,Q].concat(g.on(g.e$.apply(2,arguments))))};
jNm=function(D,Q){gL.apply(null,[5,D,Q].concat(g.on(g.e$.apply(2,arguments))))};
gL=function(D,Q,m){var P=g.e$.apply(3,arguments),W=D===6?"ERROR":"WARNING",L="b"+m;g.JG(new (Function.prototype.bind.apply(g.OI,[null,L].concat(g.on(P)))),W);P.unshift(L);P=P.join(", ");W=$hw.get(Q);if(!W){W="ytplog."+Q;L=5;try{window.localStorage&&!isNaN(+window.localStorage[W])&&(L=+window.localStorage[W]),window.sessionStorage&&!isNaN(+window.sessionStorage[W])&&(L=+window.sessionStorage[W])}catch(z){}$hw.set(Q,L);W=L}if(!(D<W)){W=ePu;L=W.S.get(Q);L||(L=new vVP,W.S.set(Q,L));W=L;L=Date.now();var u=
Math.floor((L-W.C)*.01);u>0&&(W.S=Math.min(W.S+u,10),W.C=L);W.S>0?(W.S--,W=!0):W=!1;if(W)typeof P==="function"&&(P=P()),console.log("plyr."+Q,P);else{var t;P=((t=Otu.get(Q))!=null?t:0)+1;Otu.set(Q,P);P%100===1&&console.warn("plyr","plyr."+Q+" is chatty, dropping logs.")}}};
vVP=function(){this.S=10;this.C=Date.now()};
Bl=function(D,Q){this.info=D;this.C=Q;this.S=null;this.B=this.T=-1;this.timestampOffset=0;this.isLocked=this.N=!1;this.J=this.info.S.Oe()&&!this.info.C};
g.wL=function(D){return $R4(D.C)};
Y5h=function(D,Q){Q=Math.min(Q,D.info.T);var m=D.C.split(Q),P=m.Gx;m=new Bl(new i3(D.info.type,D.info.S,D.info.range,D.info.U,D.info.J0,D.info.startTime,D.info.duration,D.info.C,Q,!1,D.info.ML,D.info.clipId),m.Ul);m.B=D.B;m.T=D.T;Q=new Bl(new i3(D.info.type,D.info.S,D.info.range,D.info.U,D.info.J0,D.info.startTime,D.info.duration,D.info.C+Q,D.info.T-Q,D.info.B,D.info.ML,D.info.clipId),P);Q.B=D.B;Q.T=D.T;return[m,Q]};
g.kF=function(D,Q,m,P){m=m===void 0?!1:m;P=P===void 0?0:P;if(D.isLocked||Q.isLocked||!u3(D.info,Q.info)||D.info.B)return null;if(P){if(D.C.totalLength+Q.C.totalLength>P)return null}else if(m&&(m=D.C,P=Q.C,m=!(P.S.length?KVm(m,P.S[0]):1)),m)return null;m=new i3(D.info.type,D.info.S,D.info.range,D.info.U,D.info.J0,D.info.startTime,D.info.duration,D.info.C,D.info.T,D.info.B,D.info.ML,D.info.clipId);P=Q.info;m.T+=P.T;m.range&&(m.Z+=P.Z);m.N=P.N;m.B=P.B;P=new Lh;uo(P,D.C);uo(P,Q.C);m=new Bl(m,P);m.S!=
null&&Q.S!=null&&(new g.EW("dash")).S(414627957,"merged slice emsg overridden; prev: "+m.S.Zg()+" next: "+Q.S.Zg());m.S=Q.S||D.S;m.T=D.T!==-1?D.T:Q.T;m.B=D.B!==-1?D.B:Q.B;return m};
g.J7=function(D){g.Mh(D.info.S.info)||D.info.S.info.nO();if(D.T!==-1)return D.T;if(D.S&&jLm(D.S))return D.T=jLm(D.S),D.T;if(g.Mh(D.info.S.info)){var Q=g.wL(D);for(var m=D.info.S.S,P=NaN,W=NaN,L=0;To(Q,L);){var u=hg(Q,L);u.type===1936286840?W=u.data.getUint32(u.dataOffset+8):u.type===1836476516?W=g.yI(u):u.type===1952867444&&isNaN(P)&&(P=g.Em(u));L=nd(u.type)?L+8:L+u.size}!W&&m&&(W=Z2(m));Q=P/W}else Q=new wy(g.wL(D)),m=D.J?Q:new wy(new DataView(D.info.S.S.buffer)),P=vW(m),m=Q.pos,Q.pos=0,Om(Q)?I5(Q,
231)?(P=HW(Q)*P/1E9,Q.pos=m,Q=P):(Q.pos=m,Q=NaN):(Q.pos=m,Q=NaN);D.T=Q||D.info.J;return D.T};
ALn=function(D,Q){D.timestampOffset>0&&(Q-=D.timestampOffset);var m=g.J7(D)+Q;aOk(D,m);D.timestampOffset=Q};
aOk=function(D,Q){g.Mh(D.info.S.info)||D.info.S.info.nO();D.T=Q;if(g.Mh(D.info.S.info)){var m=g.wL(D);D=D.info.S.S;for(var P=NaN,W=NaN,L=0;To(m,L);){var u=hg(m,L);isNaN(P)&&(u.type===1936286840?P=u.data.getUint32(u.dataOffset+8):u.type===1836476516&&(P=g.yI(u)));if(u.type===1952867444){!P&&D&&(P=Z2(D));var t=g.Em(u);isNaN(W)&&(W=Math.round(Q*P)-t);var z=u;t+=W;if(z.data.getUint8(z.dataOffset)){var b=z.data;z=z.dataOffset+4;b.setUint32(z,Math.floor(t/4294967296));b.setUint32(z+4,t&4294967295)}else z.data.setUint32(z.dataOffset+
4,t)}L=nd(u.type)?L+8:L+u.size}return!0}m=new wy(g.wL(D));D=D.J?m:new wy(new DataView(D.info.S.S.buffer));P=vW(D);D=m.pos;m.pos=0;if(Om(m)&&I5(m,231))if(W=R5(m,!0),Q=Math.floor(Q*1E9/P),Math.ceil(Math.log(Q)/Math.log(2)/8)>W)Q=!1;else{for(P=W-1;P>=0;P--)m.S.setUint8(m.pos+P,Q&255),Q>>>=8;m.pos=D;Q=!0}else Q=!1;return Q};
Id=function(D,Q){Q=Q===void 0?!1:Q;var m=l3(D);D=Q?0:D.info.Z;return m||D};
l3=function(D){g.Mh(D.info.S.info)||D.info.S.info.nO();if(D.S&&D.info.type===6)return D.S.EY;if(g.Mh(D.info.S.info)){var Q=g.wL(D);var m=0;Q=g.BW(Q,1936286840);Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())P=pX7(P.value),m+=P.OV[0]/P.timescale;m=m||NaN;if(!(m>=0))a:{m=g.wL(D);Q=D.info.S.S;for(var W=P=0,L=0;To(m,P);){var u=hg(m,P);if(u.type===1836476516)W=g.yI(u);else if(u.type===1836019558){!W&&Q&&(W=Z2(Q));if(!W){m=NaN;break a}var t=FV(u.data,u.dataOffset,1953653094),z=t;t=W;var b=FV(z.data,z.dataOffset,
1952868452);z=FV(z.data,z.dataOffset,1953658222);var q=dy(b);dy(b);q&2&&dy(b);b=q&8?dy(b):0;var C=dy(z),f=C&1;q=C&4;var V=C&256,N=C&512,h=C&1024;C&=2048;var B=tg(z);f&&dy(z);q&&dy(z);for(var J=f=0;J<B;J++){var k=V?dy(z):b;N&&dy(z);q&&J===0||!h||dy(z);C&&dy(z);f+=k}L+=f/t}P=nd(u.type)?P+8:P+u.size}m=L||NaN}m||g.l4(new g.OI("Missing duration while parsing bmff",D.info.Hn()))}else m=new wy(g.wL(D)),D=D.J?m:new wy(new DataView(D.info.S.S.buffer)),m=QNn(m,vW(D));return m};
g.p6r=function(D){if(D.info.S.UT())return D.info.duration;D.B===-1&&(D.B=l3(D));return D.B||D.info.duration};
xh7=function(D){var Q=g.wL(D);var m=(m=g.Nk(Q,0,1936286840))?m.data.getUint32(m.dataOffset+8):NaN;isNaN(m)&&(D=D.info.S.S,m=(Q=g.Nk(Q,0,1836476516))?g.yI(Q):D?Z2(D):NaN);return m};
X6r=function(D){return D.info.S.info.nO()&&Ch(D.C,0)===160};
S5P=function(D){if(!D.S){g.Mh(D.info.S.info)||D.info.S.info.nO();if(g.Mh(D.info.S.info))var Q=g.XXw(g.wL(D));else{Q=new wy(g.wL(D));var m=Q.pos;Q.pos=0;var P=null,W=null;if(Jg(Q,[408125543,307544935]))for(var L=Q.pos+R5(Q,!0);Q.pos<L;)if(R5(Q,!1)!==29555)Kd(Q);else for(var u=Q.pos+R5(Q,!0);Q.pos<u;)if(R5(Q,!1)!==26568)Kd(Q);else for(var t=Q.pos+R5(Q,!0);Q.pos<t;){var z=R5(Q,!1);if(z===17543){if(z=ca9(Q),z=VI(z))if(W)for(var b=g.T(Object.keys(z)),q=b.next();!q.done;q=b.next())q=q.value,W[q]=z[q];else W=
z}else z===17827?(z=ca9(Q),P||(P=z)):Kd(Q)}Q.pos=m;Q=W?new fd(W,P):null}D.S=Q}};
rL_=function(D){if(g.Mh(D.info.S.info))gy(g.wL(D),1836019574),gy(g.wL(D),1718909296);else{var Q=new wy(g.wL(D));mh_(Q);I5(Q,524531317,!0);D.C=D.C.split(Q.start+Q.pos).Gx}D.J=!1};
Rd=function(D){if(!D.N){if(g.Mh(D.info.S.info)){var Q=g.wL(D);var m=FV(Q,0,1836019574);if(m){m=m.offset+m.size;var P=new Uint8Array(m);P.set(new Uint8Array(Q.buffer,Q.byteOffset,m));Q=P}else Q=null}else Q=Dh6(new wy(g.wL(D)));Q&&(D.info.S.S=Q,D.N=!0)}};
g.UW=function(){this.count=0;this.S=1;this.C=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
Ga$=function(D,Q){return Q+1<D.count||D.C?D.offsets[Q+1]-D.offsets[Q]:-1};
Hl=function(D){D.offsets.length<D.count+1&&D.resize(D.offsets.length*2)};
Kf=function(D,Q,m,P){DB.call(this,D,Q,m,P);var W=this;this.J=null;this.It={rb:function(L,u,t,z){return W.rb(L,u,t,z)}};
this.index=new g.UW};
Mkr=function(D,Q,m,P,W,L){this.displayName=D;this.vssId=Q;this.languageCode=m;this.kind=P===void 0?"":P;this.xtags=W===void 0?"":W;this.id=L===void 0?"":L};
DGj=function(D){if(D=D.colorInfo)if(D=D.transferCharacteristics)return cLu[D];return null};
g.js=function(D,Q,m){this.name=D;this.id=Q;this.isDefault=m};
QQ4=function(D){return $F(function(Q,m){return g.np(Q,m,4,1E3)},D,{format:"RAW",
method:"GET",withCredentials:!0})};
g.mGh=function(D){var Q;D.responseType&&D.responseType!=="text"?D.responseType==="arraybuffer"&&(Q=fh(new Uint8Array(D.response))):Q=D.responseText;return!Q||Q.length>2048?"":Q.indexOf("https://")===0?Q:""};
$F=function(D,Q,m){Q.match(Psr);return D(Q,m).then(function(P){var W=g.mGh(P.xhr);return W?$F(D,W,m):P.xhr})};
YF=function(D,Q,m){D=D===void 0?"":D;Q=Q===void 0?null:Q;m=m===void 0?!1:m;g.iR.call(this);var P=this;this.sourceUrl=D;this.isLivePlayback=m;this.Y9=this.duration=0;this.isPremiere=this.Ws=this.B=this.isLiveHeadPlayable=this.isLive=this.C=!1;this.v1=this.vO=0;this.isOtf=this.VX=!1;this.x9=(0,g.T3)();this.Iy=Infinity;this.S={};this.T=new Map;this.state=this.al=0;this.N=null;this.isManifestless=!1;this.t0=[];this.U=null;this.wc=0;this.J="";this.u0=NaN;this.QF=this.Kj=this.timestampOffset=this.Z=0;this.Sg=
this.JP=NaN;this.Lj=0;this.k9=this.TO=!1;this.GO=[];this.l0={};this.Kh=NaN;this.It={M9O:function(t){es(P,t)}};
var W;this.XT=(W=Q)==null?void 0:W.Mv("html5_use_network_error_code_enums");WL7=!!Q&&Q.Mv("html5_modern_vp9_mime_type");var L;vl=!((L=Q)==null||!L.Mv("html5_enable_flush_during_seek"))&&g.e8();var u;OW=!((u=Q)==null||!u.Mv("html5_enable_reset_audio_decoder"))&&g.e8()};
i2w=function(D){return g.QP(D.S,function(Q){return!!Q.info.video&&Q.info.video.qualityOrdinal>=2160})};
ZZ7=function(D){return g.QP(D.S,function(Q){return!!Q.info.video&&Q.info.video.isHdr()})};
aP=function(D){return g.QP(D.S,function(Q){return!!Q.info.Ln})};
g.sQr=function(D){return g.QP(D.S,function(Q){return WE(Q.info.mimeType)})};
LLP=function(D){return g.QP(D.S,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR":!1})};
ub4=function(D){return g.QP(D.S,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
dG9=function(D){return g.QP(D.S,function(Q){return Q.info.video?Q.info.video.projectionType==="MESH":!1})};
tmr=function(D){return g.QP(D.S,function(Q){return Q.info.video?Q.info.video.stereoLayout===1:!1})};
zTm=function(D){return IkP(D.S,function(Q){return Q.info.video?Q.Yg():!0})};
v4=function(D){return g.QP(D.S,function(Q){return D2(Q.NB.S)})};
es=function(D,Q){D.S[Q.info.id]=Q;D.T.set(cW(g.Qh(Q.info,D.VX)),Q)};
pf=function(D,Q,m){m=m===void 0?0:m;var P=D.mimeType||"",W=D.itag;var L=D.xtags;W=W?W.toString():"";L&&(W+=";"+L);L=W;if(PE(P)){var u=D.width||640;W=D.height||360;var t=D.fps,z=D.qualityLabel,b=D.qualityOrdinal,q=D.colorInfo,C=D.projectionType,f;D.stereoLayout&&(f=b24[D.stereoLayout]);var V=DGj(D)||void 0;if(q==null?0:q.primaries)var N=qs$[q.primaries]||void 0;u=new v6(u,W,t,C,f,void 0,z,b&&Csn[b],V,N);P=ad(P,u,aN[D.itag||""]);vl&&(P+="; enableflushduringseek=true");OW&&(P+="; enableresetaudiodecoder=true")}var h;
if(mL(P)){var B=D.audioSampleRate;f=D.audioTrack;B=new B6(B?+B:void 0,D.audioChannels,D.spatialAudioType,D.isDrc,D.loudnessDb,D.trackAbsoluteLoudnessLkfs,D.audioQuality||"AUDIO_QUALITY_UNKNOWN",D.isVb);f&&(N=f.displayName,W=f.id,f=f.audioIsDefault,N&&(h=new g.js(N,W||"",!!f)))}var J;D.captionTrack&&(z=D.captionTrack,f=z.displayName,N=z.vssId,W=z.languageCode,t=z.kind,z=z.id,f&&N&&W&&(J=new Mkr(f,N,W,t,D.xtags,z)));f=Number(D.bitrate)/8;N=Number(D.contentLength);W=Number(D.lastModified);z=D.drmFamilies;
t=D.type;m=m&&N?N/m:0;D=Number(D.approxDurationMs);if(Q&&z){var k={};z=g.T(z);for(b=z.next();!b.done;b=z.next())(b=A7[b.value])&&(k[b]=Q[b])}return new AL(L,P,{audio:B,video:u,WY:h,Ln:k,yF:f,Mh:m,contentLength:N,lastModified:W,captionTrack:J,streamType:t,approxDurationMs:D})};
xF=function(D,Q,m){m=m===void 0?0:m;var P=D.type;var W=D.itag;var L=D.xtags;L&&(W=D.itag+";"+L);if(PE(P)){var u=(D.size||"640x360").split("x");u=new v6(+u[0],+u[1],+D.fps,D.projection_type,+D.stereo_layout,void 0,D.quality_label,+D.quality_ordinal,D.eotf,D.primaries);P=ad(P,u,aN[D.itag]);vl&&(P+="; enableflushduringseek=true");OW&&(P+="; enableresetaudiodecoder=true")}var t;if(mL(P)){var z=new B6(+D.audio_sample_rate||void 0,+D.audio_channels||0,D.spatial_audio_type,!!D.drc);D.name&&(t=new g.js(D.name,
D.audio_track_id,D.isDefault==="1"))}var b;D.caption_display_name&&D.caption_vss_id&&D.caption_language_code&&(b=new Mkr(D.caption_display_name,D.caption_vss_id,D.caption_language_code,D.caption_kind,D.xtags,D.caption_id));L=Number(D.bitrate)/8;var q=Number(D.clen),C=Number(D.lmt);m=m&&q?q/m:0;if(Q&&D.drm_families){var f={};for(var V=g.T(D.drm_families.split(",")),N=V.next();!N.done;N=V.next())N=N.value,f[N]=Q[N]}return new AL(W,P,{audio:z,video:u,WY:t,Ln:f,yF:L,Mh:m,contentLength:q,lastModified:C,
captionTrack:b,streamType:D.stream_type,approxDurationMs:Number(D.approx_duration_ms)})};
oSw=function(D){return v9(D,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
fjw=function(D){return v9(D,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Vm9=function(D,Q){return D.N?HP(D.N.B,Q):D.t0.length?HP(D.t0,Q):[]};
X_=function(D,Q,m){Q=Q===void 0?"":Q;m=m===void 0?"":m;D=new g.Gn(D,!0);D.set("alr","yes");m&&(m=v8h(decodeURIComponent(m)),D[d[19]](Q,encodeURIComponent(m)));return D};
FL$=function(D,Q){var m=Va(Q,"id");m=m.replace(":",";");var P=Va(Q,"mimeType"),W=Va(Q,"codecs");P=W?P+'; codecs="'+W+'"':P;W=Number(Va(Q,"bandwidth"))/8;var L=Number(NA(Q,"BaseURL").getAttribute(D.J+":contentLength")),u=D.duration&&L?L/D.duration:0;if(PE(P)){var t=Number(Va(Q,"width"));var z=Number(Va(Q,"height")),b=Number(Va(Q,"frameRate")),q=NM$(Va(Q,D.J+":projectionType"));a:switch(Va(Q,D.J+":stereoLayout")){case "layout_left_right":var C=1;break a;case "layout_top_bottom":C=2;break a;default:C=
0}t=new v6(t,z,b,q,C)}if(mL(P)){var f=Number(Va(Q,"audioSamplingRate"));var V=Number(Va(Q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));z=y$m(Va(Q,D.J+":spatialAudioType"));f=new B6(f,V,z);a:{V=Va(Q,"lang")||"und";if(z=NA(Q,"Role"))if(q=Va(z,"value")||"",g.dC(Z2_,q)){z=V+"."+Z2_[q];b=q==="main";D=Va(Q,D.J+":langName")||V+" - "+q;V=new g.js(D,z,b);break a}V=void 0}}if(Q=NA(Q,"ContentProtection"))if(Q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var N={};for(Q=
Q.firstChild;Q!=null;Q=Q.nextSibling)Q instanceof Element&&/SystemURL/.test(Q.nodeName)&&(D=Q.getAttribute("type"),z=Q.textContent,D&&z&&(N[D]=z.trim()))}else N=void 0;return new AL(m,P,{audio:f,video:t,WY:V,Ln:N,yF:W,Mh:u,contentLength:L})};
NM$=function(D){switch(D){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"}};
y$m=function(D){switch(D){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"}};
hTj=function(D,Q){Q=Q===void 0?"":Q;D.state=1;D.x9=(0,g.T3)();return QQ4(Q||D.sourceUrl).then(function(m){if(!D.VF()){D.al=m.status;m=m.responseText;var P=new DOMParser;m=Ec(P,kt$(m),"text/xml").getElementsByTagName("MPD")[0];D.Iy=EV7(Va(m,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(m.attributes){P=g.T(m.attributes);for(var W=P.next();!W.done;W=P.next())if(W=W.value,W.value==="http://youtube.com/yt/2012/10/10"){P=W.name.split(":")[1];break b}}P=""}D.J=P;D.isLive=D.Iy<Infinity&&D.isLivePlayback;D.Y9=
Number(Va(m,D.J+":earliestMediaSequence"))||0;if(P=Date.parse(gVw(Va(m,D.J+":mpdResponseTime"))))D.wc=((0,g.T3)()-P)/1E3;D.isLive&&m.getElementsByTagName("SegmentTimeline").length<=0||g.VT(m.getElementsByTagName("Period"),D.inW,D);D.state=2;D.publish("loaded");TMn(D)}return D}).Fn(function(m){if(m instanceof TX){var P=m.xhr;
D.al=P.status}D.state=3;D.publish("loaderror");return J9(P)})};
nS7=function(D,Q,m){return hTj(new YF(D,Q,m),D)};
Ss=function(D){return D.isLive&&(0,g.T3)()-D.x9>=D.Iy};
ESm=function(D){D.U&&D.U.stop()};
TMn=function(D){var Q=D.Iy;isFinite(Q)&&(Ss(D)?D.refresh():(Q=Math.max(0,D.x9+Q-(0,g.T3)()),D.U||(D.U=new g.pJ(D.refresh,Q,D),g.O(D,D.U)),D.U.start(Q)))};
gS_=function(D){D=D.S;for(var Q in D){var m=D[Q].index;if(m.isLoaded())return m.MY()+1}return 0};
rL=function(D){return D.Kj?D.Kj-(D.Z||D.timestampOffset):0};
Gf=function(D){return D.QF?D.QF-(D.Z||D.timestampOffset):0};
MA=function(D){if(!isNaN(D.u0))return D.u0;var Q=D.S,m;for(m in Q){var P=Q[m].index;if(P.isLoaded()&&!WE(Q[m].info.mimeType)){Q=0;for(m=P.zq();m<=P.MY();m++)Q+=P.getDuration(m);Q/=P.aT();Q=Math.round(Q/.5)*.5;P.aT()>10&&(D.u0=Q);return Q}if(D.isLive&&(P=Q[m],P.EY))return P.EY}return NaN};
BMh=function(D,Q){D=Uuw(D.S,function(P){return P.index.isLoaded()});
if(!D)return NaN;D=D.index;var m=D.JY(Q);return D.getStartTime(m)===Q?Q:m<D.MY()?D.getStartTime(m+1):NaN};
wEr=function(D,Q){if(!D.S["0"]){var m=new AL("0","fakesb",{video:new v6(0,0,0,void 0,void 0,"auto")});D.S["0"]=Q?new ff(new g.Gn("http://www.youtube.com/videoplayback"),m,"fake"):new Kf(new g.Gn("http://www.youtube.com/videoplayback"),m,new Qa(0,0),new Qa(0,0))}};
cl=function(D){if(D.isManifestless)for(var Q in D.S)D.S[Q].index.segments=[]};
D9=function(D,Q,m){for(var P in D.S){var W=WE(D.S[P].info.mimeType)||D.S[P].info.ri();if(m===W&&(W=D.S[P].index)!=null){var L=Tf(W,Q);L>=0&&W.segments.splice(L,1)}}};
k5h=function(D){for(var Q in D.S)WE(D.S[Q].info.mimeType)||IdP(D.S[Q].index,Infinity)};
Qr=function(D,Q,m){for(var P in D.S){var W=D.S[P].index,L=Q,u=m;W.bU&&(L&&(W.C0=Math.max(W.C0,L)),u&&(W.VW=Math.max(W.VW||0,u)))}m&&(D.Kh=m/1E3)};
J$$=function(D){D.QF=0;D.Kj=0;D.Lj=0};
mB=function(D){return D.k9&&D.isManifestless?D.isLiveHeadPlayable:D.isLive};
ad=function(D,Q,m){PA===null&&(PA=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(WL7&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return PA||m!=="9"&&m!=="("?PA||m!=="9h"&&m!=="(h"||(D='video/webm; codecs="vp9.2"'):D='video/webm; codecs="vp9"',D;if(!PA&&!WA||D!=='video/webm; codecs="vp9"'&&D!=='video/webm; codecs="vp9.2"')return D;
m="00";var P="08",W="01",L="01",u="01";D==='video/webm; codecs="vp9.2"'&&(m="02",P="10",Q.primaries==="bt2020"&&(u=W="09"),Q.S==="smpte2084"&&(L="16"),Q.S==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",m,"51",P,"01",W,L,u,"00"].join(".")+'"'};
sS=function(D,Q,m){D=""+D+(Q>49?"p60":Q>32?"p48":"");Q=h3()[D];if(Q!=null&&Q>0)return Q;Q=iC.get(D);if(Q!=null&&Q>0)return Q;m=m==null?void 0:m.get(D);return m!=null&&m>0?m:8192};
ljw=function(D){this.nh=D;this.Ze=this.S9=this.wc=this.J=this.B=this.Y9=this.k9=this.TO=!1;this.U=this.N=0;this.XT=!1;this.Iy=!0;this.l0=!1;this.vc=0;this.AI=this.QF=!1;this.Xw=!0;this.x9=this.u0=!1;this.S={};this.Kj=this.cY=this.kJ=this.disableAv1=this.gB=this.zY=this.jD=this.hU=this.C=this.Z=!1;this.Kh=0;this.oy=!1;this.gi=this.nh.V("html5_disable_aac_preference");this.dn=Infinity;this.t0=0;this.pj=this.nh.xl();this.Lj=this.nh.experiments.Mv("html5_enable_vp9_fairplay");this.HO=this.nh.V("html5_force_av1_for_testing");
this.GO=g.WF(this.nh.experiments,"html5_av1_ordinal_cap");this.h8=this.nh.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.g2=this.nh.V("html5_account_onesie_format_selection_during_format_filter");this.yF=g.WF(this.nh.experiments,"html5_max_byterate");this.PY=this.nh.V("html5_enable_iamf_audio");this.kB=this.nh.experiments.Mv("html5_allow_capability_merge");this.yn=this.nh.V("html5_enable_encrypted_av1");this.Kh=g.WF(this.nh.experiments,"html5_hard_cap_max_vertical_resolution");this.oy=
this.nh.V("html5_enable_new_audio_settings_menu")};
FZk=function(D){if(D.k9)return["f"];if(g.j8("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var Q=["9h","9","h","8"];D.yn&&Q.push("1e");Q=Q.concat(["(h","(","H","*"]);D.QF&&(Q.unshift("1"),Q.unshift("1h"));D.S9&&Q.unshift("h");D.j&&(Q=(Ij4[D.j]||[D.j]).concat(Q));return Q};
Ca$=function(D){var Q=["o","a","A"];D.t0===1&&(D.B&&(Q=["mac3","MAC3"].concat(Q)),D.J&&(Q=["meac3","MEAC3"].concat(Q)),D.PY&&(Q=["i","I"].concat(Q)));D.TO&&(Q=["so","sa"].concat(Q));!D.Ze||D.wc||D.T||D.gi||Q.unshift("a");D.T&&(Q=(Ij4[D.T]||[D.T]).concat(Q));return Q};
LD=function(D,Q,m,P){Q=Q===void 0?{}:Q;if(P===void 0?0:P)return Q.disabled=1,0;if(Sc(D.J,r_.AV1_CODECS)&&Sc(D.J,r_.HEIGHT)&&Sc(D.J,r_.BITRATE))return Q.isCapabilityUsable=1,8192;try{var W=SgP();if(W&&!D.V("disable_av1_setting"))return Q.localPref=W}catch(t){}P=1080;W=navigator.hardwareConcurrency;W<=2&&(P=480);Q.coreCount=W;if(W=g.WF(D.experiments,"html5_default_av1_threshold"))P=Q["default"]=W;!D.V("html5_disable_av1_arm_check")&&q77()&&(Q.isArm=1,P=240);if(D=D.J.Iy)Q.mcap=D,P=Math.max(P,D);if(m){var L,
u;if(D=(L=m.videoInfos.find(function(t){return Sk(t)}))==null?void 0:(u=L.C)==null?void 0:u.powerEfficient)P=8192,Q.isEfficient=1;
m=m.videoInfos[0].video;L=Math.min(sS("1",m.fps),sS("1",30));Q.perfCap=L;P=Math.min(P,L);m.isHdr()&&!D&&(Q.hdr=1,P*=.75)}else m=sS("1",30),Q.perfCap30=m,P=Math.min(P,m),m=sS("1",60),Q.perfCap60=m,P=Math.min(P,m);return Q.av1Threshold=P};
uC=function(D,Q,m,P){this.flavor=D;this.keySystem=Q;this.C=m;this.experiments=P;this.S={};this.k9=this.keySystemAccess=null;this.xb=this.UI=-1;this.gF=null;this.T=!!P&&P.Mv("edge_nonprefixed_eme");P&&P.Mv("html5_enable_vp9_fairplay")};
tY=function(D){return D.T?!1:!D.keySystemAccess&&!!dJ()&&D.keySystem==="com.microsoft.playready"};
zZ=function(D){return D.keySystem==="com.microsoft.playready"};
bC=function(D){return!D.keySystemAccess&&!!dJ()&&D.keySystem==="com.apple.fps.1_0"};
qB=function(D){return D.keySystem==="com.youtube.fairplay"};
CD=function(D){return D.keySystem==="com.youtube.fairplay.sbdl"};
g.op=function(D){return D.flavor==="fairplay"};
dJ=function(){var D=window,Q=D.MSMediaKeys;Yy()&&!Q&&(Q=D.WebKitMediaKeys);return Q&&Q.isTypeSupported?Q:null};
Vr=function(D){return navigator.requestMediaKeySystemAccess?g.Ta&&!g.e8()?FI("45"):g.Ak||g.tv?D.Mv("edge_nonprefixed_eme"):g.fD?FI("47"):g.Cr&&D.Mv("html5_enable_safari_fairplay")?!1:!0:!1};
RTw=function(D,Q,m,P){var W=vd(),L=(m=W||m&&Yy())?["com.youtube.fairplay"]:["com.widevine.alpha"];Q&&L.unshift("com.youtube.widevine.l3");W&&P&&L.unshift("com.youtube.fairplay.sbdl");return m?L:D?[].concat(g.on(L),g.on(NB.playready)):[].concat(g.on(NB.playready),g.on(L))};
yr=function(D,Q,m,P,W){P=P===void 0?!1:P;g.v.call(this);this.nh=Q;this.useCobaltWidevine=P;this.dc=W;this.C=[];this.T={};this.S={};this.callback=null;this.J=!1;this.B=[];this.initialize(D,!m)};
H27=function(D,Q){D.callback=Q;D.B=[];Vr(D.nh.experiments)?Z9(D):UGn(D)};
Z9=function(D){if(!D.VF())if(D.C.length===0)D.callback(D.B);else{var Q=D.C[0],m=D.T[Q],P=KLh(D,m);if(F$&&F$.keySystem===Q&&F$.LOD===JSON.stringify(P))D.dc("remksa",{re:!0}),jQ7(D,m,F$.keySystemAccess);else{var W,L;D.dc("remksa",{re:!1,ok:(L=(W=F$)==null?void 0:W.keySystem)!=null?L:""});F$=void 0;navigator.requestMediaKeySystemAccess(Q,P).then(P4(function(u){jQ7(D,m,u,P)}),P4(function(){D.J=!D.J&&D.T[D.C[0]].flavor==="widevine";
D.J||D.C.shift();Z9(D)}))}}};
jQ7=function(D,Q,m,P){if(!D.VF()){P&&(F$={keySystem:Q.keySystem,keySystemAccess:m,LOD:JSON.stringify(P)});Q.keySystemAccess=m;if(zZ(Q)){m=ZO();P=g.T(Object.keys(D.S[Q.flavor]));for(var W=P.next();!W.done;W=P.next())W=W.value,Q.S[W]=!!m.canPlayType(W)}else{m=Q.keySystemAccess.getConfiguration();if(m.audioCapabilities)for(P=g.T(m.audioCapabilities),W=P.next();!W.done;W=P.next())Q.S[W.value.contentType]=!0;if(m.videoCapabilities)for(m=g.T(m.videoCapabilities),P=m.next();!P.done;P=m.next())Q.S[P.value.contentType]=
!0}D.B.push(Q);D.useCobaltWidevine||D.V("html5_enable_vp9_fairplay")&&CD(Q)?(D.C.shift(),Z9(D)):D.callback(D.B)}};
KLh=function(D,Q){var m={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(D.V("html5_enable_vp9_fairplay")&&qB(Q))return m.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),m.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[m];zZ(Q)&&(m.initDataTypes=["keyids","cenc"]);for(var P=g.T(Object.keys(D.S[Q.flavor])),W=P.next();!W.done;W=P.next()){W=W.value;var L=W.indexOf("audio/")===0,u=L?m.audioCapabilities:m.videoCapabilities;Q.flavor!==
"widevine"||D.J?u.push({contentType:W}):L?u.push({contentType:W,robustness:"SW_SECURE_CRYPTO"}):(g.Ta&&g.j8("windows nt")&&!D.V("html5_drm_enable_moho")||u.push({contentType:W,robustness:"HW_SECURE_ALL"}),L=W,D.nh.J.T&&W.includes("vp09")&&(L=W+"; experimental=allowed"),u.push({contentType:L,robustness:"SW_SECURE_DECODE"}),TZ(D.nh)==="MWEB"&&(rj()||$y())&&(D.dc("swcrypto",{}),u.push({contentType:W,robustness:"SW_SECURE_CRYPTO"})))}return[m]};
UGn=function(D){if(dJ()&&(g.Cr||Al))D.B.push(new uC("fairplay","com.apple.fps.1_0","",D.nh.experiments));else{var Q=$Gk(),m=g.y4(D.C,function(P){var W=D.T[P],L=!1,u=!1,t;for(t in D.S[W.flavor])Q(t,P)&&(W.S[t]=!0,L=L||t.indexOf("audio/")===0,u=u||t.indexOf("video/")===0);return L&&u});
m&&D.B.push(D.T[m]);D.C=[]}D.callback(D.B)};
$Gk=function(){var D=dJ();if(D){var Q=D.isTypeSupported;return function(P,W){return Q(W,P)}}var m=ZO();
return m&&(m.addKey||m.webkitAddKey)?function(P,W){return!!m.canPlayType(P,W)}:function(){return!1}};
eTw=function(D){this.experiments=D;this.S=2048;this.B=0;this.TO=(this.U=this.V("html5_streaming_resilience"))?.5:.25;var Q=Q===void 0?0:Q;this.T=g.WF(this.experiments,"html5_media_time_weight_prop")||Q;this.j=(this.J=this.experiments.Mv("html5_consider_end_stall"))&&hY;this.C=this.experiments.Mv("html5_measure_max_progress_handling");this.Z=this.V("html5_treat_requests_pre_elbow_as_metadata");this.N=this.V("html5_media_time_weight")||!!this.T;this.V("html5_sabr_live_audio_early_return_fix")&&hY&&
(this.S=65536)};
vS9=function(D,Q){this.S=void 0;this.experimentIds=D?D.split(","):[];this.flags=SE(Q||"","&");D={};Q=g.T(this.experimentIds);for(var m=Q.next();!m.done;m=Q.next())D[m.value]=!0;this.experiments=D};
g.WF=function(D,Q){D=D.flags[Q];JSON.stringify(D);return Number(D)||0};
nD=function(D,Q){return(D=D.flags[Q])?D.toString():""};
O29=function(D){if(D=D.flags.html5_web_po_experiment_ids)if(D=D.replace(/\[ *(.*?) *\]/,"$1"))return D.split(",").map(Number);return[]};
Ysr=function(D){if(D.S)return D.S;if(D.experimentIds.length<=1)return D.S=D.experimentIds,D.S;var Q=[].concat(g.on(D.experimentIds)).map(function(P){return Number(P)});
Q.sort();for(var m=Q.length-1;m>0;--m)Q[m]-=Q[m-1];D.S=Q.map(function(P){return P.toString()});
D.S.unshift("v1");return D.S};
A$u=function(D){return ajr.then(D)};
ES=function(D,Q,m){this.experiments=D;this.QF=Q;this.t0=m===void 0?!1:m;this.j=!!g.Q4("cast.receiver.platform.canDisplayType");this.Z={};this.TO=!1;this.B=new Map;this.U=!0;this.C=this.T=!1;this.S=new Map;this.Iy=0;this.Kh=this.experiments.Mv("html5_disable_vp9_encrypted");this.J=this.experiments.Mv("html5_enable_encrypted_av1");D=g.Q4("cast.receiver.platform.getValue");this.N=!this.j&&D&&D("max-video-resolution-vpx")||null;pEn(this);this.T=!!(vd()&&Kp()>=21)};
n3P=function(D,Q,m){m=m===void 0?1:m;var P=Q.itag;if(P==="0")return!0;var W=Q.mimeType;if(Q.FT==="1e"&&!D.J)return"dav1enc";if(Sk(Q)&&D.TO)return"dav1";if(Q.video&&(Q.video.isHdr()||Q.video.primaries==="bt2020")&&!(Sc(D,r_.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(P==="338"&&!(g.Ta?FI(53):g.fD&&FI(64)))return"dopus";var L=m;L=L===void 0?1:
L;m={};Q.video&&(Q.video.width&&(m[r_.WIDTH.name]=Q.video.width),Q.video.height&&(m[r_.HEIGHT.name]=Q.video.height),Q.video.fps&&(m[r_.FRAMERATE.name]=Q.video.fps*L),Q.video.S&&(m[r_.EOTF.name]=Q.video.S),Q.yF&&(m[r_.BITRATE.name]=Q.yF*8*L),Q.FT==="("&&(m[r_.CRYPTOBLOCKFORMAT.name]="subsample"),Q.video.projectionType==="EQUIRECTANGULAR"||Q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Q.video.projectionType==="MESH")&&(m[r_.DECODETOTEXTURE.name]="true");Q.audio&&Q.audio.numChannels&&
(m[r_.CHANNELS.name]=Q.audio.numChannels);D.T&&pt(Q)&&(m[r_.EXPERIMENTAL.name]="allowed");L=g.T(Object.keys(r_));for(var u=L.next();!u.done;u=L.next()){u=r_[u.value];var t;if(t=m[u.name])if(t=!(u===r_.EOTF&&Q.mimeType.indexOf("vp09.02")>0)){t=u;var z=Q;t=!(D.experiments.Mv("html5_ignore_h264_framerate_cap")&&t===r_.FRAMERATE&&EBn(z))}if(t)if(Sc(D,u))if(D.N){if(D.N[u.name]<m[u.name])return u.name}else W=W+"; "+u.name+"="+m[u.name];else if(xV(Q)&&u===r_.EOTF)return"dvp92"}D.j&&Q.video&&Q.video.qualityOrdinal>
1080&&Q.Ln&&(W+="; hdcp=2.2");return P==="227"?"hqcenc":P!=="585"&&P!=="588"&&P!=="583"&&P!=="586"&&P!=="584"&&P!=="587"&&P!=="591"&&P!=="592"||D.experiments.Mv("html5_enable_new_hvc_enc")?vd()&&Kp()>=21&&g.j8("appletv5")&&(P==="410"||P==="845")?!0:D.isTypeSupported(W)?!0:"tpus":"newhvc"};
gJ=function(){var D=$y()&&!FI(29),Q=g.j8("google tv")&&g.j8("chrome")&&!FI(30);return D||Q?!1:lc7()};
xGm=function(D,Q,m){var P=480;Q=g.T(Q);for(var W=Q.next();!W.done;W=Q.next()){W=W.value;var L=W.video.qualityOrdinal;L<=1080&&L>P&&n3P(D,W,m)===!0&&(P=L)}return P};
g.BA=function(D,Q){Q=Q===void 0?!1:Q;return gJ()&&D.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Q&&D.canPlayType(ZO(),"application/x-mpegURL")?!0:!1};
Ssh=function(D){XE7(function(){for(var Q=g.T(Object.keys(r_)),m=Q.next();!m.done;m=Q.next())Sc(D,r_[m.value])})};
Sc=function(D,Q){Q.name in D.Z||(D.Z[Q.name]=r$6(D,Q));return D.Z[Q.name]};
r$6=function(D,Q){if(D.N)return!!D.N[Q.name];if(Q===r_.BITRATE&&D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Q===r_.AV1_CODECS)return D.isTypeSupported("video/mp4; codecs="+Q.valid)&&!D.isTypeSupported("video/mp4; codecs="+Q.w3);if(Q.video){var m='video/webm; codecs="vp9"';D.isTypeSupported(m)||(m='video/mp4; codecs="avc1.4d401e"')}else m='audio/webm; codecs="opus"',
D.isTypeSupported(m)||(m='audio/mp4; codecs="mp4a.40.2"');return D.isTypeSupported(m+"; "+Q.name+"="+Q.valid)&&!D.isTypeSupported(m+"; "+Q.name+"="+Q.w3)};
G5w=function(D,Q){var m=0;D.B.has(Q)&&(m=D.B.get(Q).r$);D.B.set(Q,{r$:m+1,mU:Math.pow(2,m+1)});D.C=!0};
A3=function(D){for(var Q=[],m=g.T(D.S.keys()),P=m.next();!P.done;P=m.next()){P=P.value;var W=D.S.get(P);Q.push(P+"_"+W.maxWidth+"_"+W.maxHeight)}return Q.join(".")};
fd7=function(D,Q){for(var m=new Map,P=g.T(D.S.keys()),W=P.next();!W.done;W=P.next()){W=W.value;var L=W.split("_")[0];Q.has(L)||m.set(W,D.S.get(W))}D.S=m};
NBw=function(D,Q,m){var P,W=((P=m.video)==null?void 0:P.fps)||0;P=Q+"_"+W;var L=!!m.audio,u={itag:m.itag,FT:Q,ZQ:L};if(L)u.numChannels=m.audio.numChannels;else{var t=m.video;u.maxWidth=t==null?void 0:t.width;u.maxHeight=t==null?void 0:t.height;u.maxFramerate=W;Sc(D,r_.BITRATE)&&(u.maxBitrateBps=m.yF*8);u.oh=t==null?void 0:t.isHdr()}t=D.S.get(P);t?L||(m=Math.max(t.maxWidth||0,t.maxHeight||0)>Math.max(u.maxWidth||0,u.maxHeight||0)?t:u,Q={itag:m.itag,FT:Q,ZQ:L,maxWidth:Math.max(t.maxWidth||0,u.maxWidth||
0),maxHeight:Math.max(t.maxHeight||0,u.maxHeight||0),maxFramerate:W,oh:m.oh},Sc(D,r_.BITRATE)&&(Q.maxBitrateBps=m.maxBitrateBps),D.S.set(P,Q)):D.S.set(P,u)};
yam=function(D,Q,m){var P,W=((P=m.video)==null?void 0:P.fps)||0;P=Q+"_"+W;var L=!!m.audio,u=D.S.get(P);a:{var t=D.S.get(P),z=!!m.audio;if(t){if(z){var b=!1;break a}var q;if(!z&&((b=m.video)==null?0:b.height)&&t.maxHeight&&t.maxHeight>=((q=m.video)==null?void 0:q.height)){b=!1;break a}}b=!0}b&&(b=m.itag,Q=u?u:{itag:b,FT:Q,ZQ:L},L?Q.numChannels=m.audio.numChannels:(L=m.video,Q.maxWidth=L==null?void 0:L.width,Q.maxHeight=L==null?void 0:L.height,Q.maxFramerate=W,Sc(D,r_.BITRATE)&&(Q.maxBitrateBps=m.yF*
8),Q.oh=L==null?void 0:L.isHdr()),D.S.set(P,Q))};
pEn=function(D){var Q;(Q=navigator.mediaCapabilities)!=null&&Q.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(m){m.smooth&&m.powerEfficient&&(D.Iy=2160)})};
wJ=function(){g.iR.call(this);this.items={}};
ku=function(D,Q){this.S=D;this.cipher=this.S.exports.AES128CTRCipher_create(Q.byteOffset)};
lC=function(){this.C=this.ST=0;this.S=Array.from({length:JY.length}).fill(0)};
Mmn=function(){};
c$9=function(){this.startTimeMs=(0,g.T3)();this.S=!1};
Dgn=function(){this.S=new Mmn};
Qjh=function(D,Q,m,P){P=P===void 0?1:P;m>=0&&(Q in D.S||(D.S[Q]=new lC),D.S[Q].i6(m,P))};
mgw=function(D,Q,m,P,W){var L=(0,g.T3)(),u=W?W(Q):void 0,t;W=(t=u==null?void 0:u.ST)!=null?t:1;if(W!==0){var z;t=(z=u==null?void 0:u.profile)!=null?z:m;Qjh(D,t,L-P,W)}return Q};
P16=function(D,Q,m,P,W){if(Q&&typeof Q==="object"){var L=function(u){return mgw(D,u,m,P,W)};
if(OE(Q))return Q.then(L);if(vS(Q))return xe(Q,L)}return mgw(D,Q,m,P,W)};
WSn=function(){};
LSk=function(D,Q){return S4(iN6,function(){var m=this;return function W(){var L,u,t;return $P(W,function(z){switch(z.C){case 1:g.n9(z,2);if(!m.B)throw"wasm.ps.ns";L=D;u=vh;return Fw(z,rn(sjj(m,Q)),4);case 4:t=u(z.S);if(!t)throw"wasm.ps.um";try{return z.return(new WebAssembly.Instance(t,L))}catch(b){}return Fw(z,rn(WebAssembly.instantiate(t,L)),5);case 5:return z.return(z.S);case 2:g.Rn(z),g.Hh(z,0)}})}()})};
ugr=function(D,Q){D.S||(D.S=xe(AK(function(){return fetch(Q)}),function(m){return m.arrayBuffer()}),Xc(D.S,function(m){D.S=void 0;
throw"wasm.ps.f: "+m;}))};
sjj=function(D,Q){if(D.C)return D.C;D.C=dg_(D,Q);Xc(D.C,function(m){D.C=void 0;throw"wasm.ps.c: "+m;});
return D.C};
dg_=function(D,Q){return S4(D,function(){var m=this;return function W(){var L,u,t,z,b,q,C,f,V,N,h,B,J,k;return $P(W,function(R){switch(R.C){case 1:g.n9(R,2);L=[];u=window.ywc;if(!u){R.Nv(4);break}t=u[Q];if(!t){R.Nv(4);break}if(t.mod)return R.return(t.mod);if(!t.modP){R.Nv(6);break}g.h4(R,7);z=vh;return Fw(R,rn(t.modP),9);case 9:return R.return(z(R.S));case 7:g.w7(R),L.unshift("pcm");case 6:if(t.bin){m.S=Ye(t.bin);R.Nv(4);break}if(!t.binP){R.Nv(4);break}g.h4(R,12);b=e4;q=Ye;C=vh;return Fw(R,rn(t.binP),
14);case 14:m.S=q.call(b,C(R.S));g.g7(R,4);break;case 12:g.w7(R),m.S=void 0,L.unshift("pfb");case 4:if(!m.S){R.Nv(15);break}g.h4(R,16);f=vh;return Fw(R,rn(m.S),18);case 18:V=f(R.S);if(m.T)try{return R.return(new WebAssembly.Module(V))}catch(e){m.T=!1,L.unshift("f0cs")}N=vh;return Fw(R,rn(WebAssembly.compile(V)),19);case 19:return R.return(N(R.S));case 16:g.w7(R),m.S=void 0,L.unshift("f0ca");case 15:return g.h4(R,20),ugr(m,Q),h=vh,Fw(R,rn(m.S),22);case 22:B=h(R.S);if(m.T)try{return R.return(new WebAssembly.Module(B))}catch(e){m.T=
!1,L.unshift("f1cs")}J=vh;return Fw(R,rn(WebAssembly.compile(B)),23);case 23:return R.return(J(R.S));case 20:k=g.w7(R),m.S=void 0,m.B=!1,L.unshift("f1ca: "+k);case 21:throw"["+L.map(function(e){return'"'+e+'"'}).join(", ")+"]";
case 2:g.Rn(R),g.Hh(R,0)}})}()})};
tG9=function(){};
z8P=function(){var D=this;this.proc_exit=function(){};
this.fd_write=function(Q,m,P){if(!D.exports)return 1;Q=new Uint32Array(D.exports.memory.buffer,m,P*2);m=[];for(var W=0;W<P;++W){var L=new Uint8Array(D.exports.memory.buffer,Q[W*2],Q[W*2+1]);L=g.Ny(L);m.push(L)}return m.reduce(function(u,t){return u+t.length},0)}};
bN$=function(){this.env=new tG9;this.wasi_snapshot_preview1=new z8P};
Ip=function(D,Q,m){this.instance=D;this.S=m;this.exports=this.instance.exports;Q.wasi_snapshot_preview1.exports=this.exports;D=Math.floor(Math.random()*256);Q=Math.floor(Math.random()*256);m=0;try{m=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,m,16)).fill(D);if(this.exports.sentinel(m,16,Q)!==Q*16%256)throw"wasm.wm.vi";for(var P=new Uint8Array(this.exports.memory.buffer,m,16),W=0;W<16;W++)if(P[W]!==(D+Q)%256)throw"wasm.wm.vi"+W;}finally{m!==0&&this.exports.free(m)}};
qJP=function(D,Q,m){var P=P===void 0?!0:P;return S4(void 0,function(){return function L(){var u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6;return $P(L,function(L9){switch(L9.C){case 1:g.n9(L9,2);u=Rp.Bv();t=D&&US;if(!t&&!Q)return b={},(z=m)==null||z("wasmns",(b.p=D?"1":"0",b.a=Q?"1":"0",b.s=US?"1":"0",b)),L9.return(a6(Error("wasm.wm.ns")));q=new bN$;if(!t){L9.Nv(4);break}g.h4(L9,5);C=vh;return Fw(L9,rn(LSk(q,D)),7);case 7:return f=C(L9.S),V=new Ip(f,q,!1,P),Rp.eI("winit",u),(N=m)==null||N("wasmsw",{}),
L9.return(V);case 5:if(h=g.w7(L9),J={},(B=m)==null||B("wasmerrw",(J.e=""+h,J)),!Q)throw Error("wasm.wm.iw: "+h);case 4:if(!Q)throw Error("wasm.wm.xx");g.h4(L9,8);k=vh;return Fw(L9,rn(Q(q)),10);case 10:return R=k(L9.S),e=new Ip({exports:R},q,!0,P),Rp.eI("winitjs",u),(a=m)==null||a("wasmsa",{}),L9.return(e);case 8:throw G=g.w7(L9),u6={},(S=m)==null||S("wasmerra",(u6.e=""+G,u6)),Error("wasm.wm.ia: "+G);case 2:g.Rn(L9),g.Hh(L9,0)}})}()})};
HA=function(D,Q,m){this.S=D;this.T=!1;Q=this.S.Rw(Q);this.C=new ku(D,Q);this.S.free(Q.byteOffset);this.B=this.S.Rw(m)};
C1h=function(D,Q,m){m=D.S.Rw(m);var P=D.C;P.S.exports.AES128CTRCipher_setCounter(P.cipher,m.byteOffset);D.S.free(m.byteOffset);Q=D.S.Rw(Q);D.C.encrypt(Q);return Q};
owm=function(D,Q,m){g.v.call(this);this.encryptedClientKey=Q;this.N=m;this.C=new Uint8Array(D.buffer,0,16);this.T=new Uint8Array(D.buffer,16)};
fQw=function(D){D.B||(D.B=new g.CL(D.C));return D.B};
KD=function(D){try{return Bz(D)}catch(Q){return null}};
VGw=function(D,Q){g.v.call(this);if(!Q&&D)try{Q=JSON.parse(D)}catch(W){}if(Q){D=Q.clientKey?KD(Q.clientKey):null;var m=Q.encryptedClientKey?KD(Q.encryptedClientKey):null,P=Q.keyExpiresInSeconds?Number(Q.keyExpiresInSeconds)*1E3+(0,g.T3)():null;D&&m&&P&&(this.S=new owm(D,m,P),g.O(this,this.S));Q.onesieUstreamerConfig&&(this.onesieUstreamerConfig=KD(Q.onesieUstreamerConfig)||void 0);this.baseUrl=Q.baseUrl}};
$u=function(){this.data=new Uint8Array(2048);this.pos=0;jC||(jC=Fa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
eC=function(D,Q){D.add(Q==null||isNaN(Q)?0:Q+1)};
vA=function(D){this.S=this.C=0;this.alpha=Math.exp(Math.log(.5)/D)};
OS=function(D){this.C=D===void 0?15:D;this.values=new Float64Array(176);this.S=new Float64Array(11);this.T=new Float64Array(16)};
Yu=function(D,Q,m,P){m=m===void 0?.5:m;P=P===void 0?0:P;this.resolution=Q;this.C=0;this.T=!1;this.tZ=!0;this.S=Math.round(D*this.resolution);this.values=Array(this.S);for(D=0;D<this.S;D++)this.values[D]=Infinity;this.J=NDj(this);this.B=m;this.N=P};
NDj=function(D){for(var Q=Array(D.S),m=0;m<D.S;m++)Q[m]=m;return Q};
ap=function(D,Q,m){g.v.call(this);this.policy=D;this.C=Q;this.lE=m;this.Kh=this.k9=0;this.Iy=-1;this.QF=this.J=0;this.TO=!1;this.interruptions=[];this.B=[{stamp:0,net:0,max:0}];this.u0=this.N=(0,g.T3)();this.Z=new Yu(4,1,.6,.4);this.t0=new Yu(4,1,.6,.4);this.U=new Yu(20,1,.5,.4);D.Iy?this.T=new OS(D.S):D.C?this.T=new vA(D.S):this.T=new Yu(D.S,20,.5,.4);this.wc=new Yu(5,1,.25);this.j=new Yu(30,1,.5);D=g.kt("yt-player-bandwidth")||{};Q=this.policy.T;if(D.byterate>0)Q=D.byterate,this.TO=!0;else{var P;
m=(((P=navigator.connection)==null?void 0:P.downlink)||0)*64*1024;m>0&&(Q=m,this.TO=!0)}this.T.X9(this.policy.N,Q);D.delay>0&&this.Z.X9(1,Math.min(D.delay,2));D.stall>0&&this.U.X9(1,D.stall);D.init>0&&(this.u0=Math.min(D.init,this.u0));D.interruptions&&(this.B=this.B.concat(D.interruptions),this.B.length>16&&this.B.pop());this.Iy=(0,g.T3)();this.policy.U>0&&(this.x9=new g.pJ(this.Y9,this.policy.U,this),g.O(this,this.x9),this.x9.start())};
AY=function(D,Q,m,P){D.T.X9(P===void 0?Q:P,m/Q);D.N=(0,g.T3)()};
ymu=function(D){D.J||(D.J=(0,g.T3)());D.policy.j&&(D.N=(0,g.T3)())};
ZN$=function(D,Q){if(D.J){var m=Q-D.J;if(m<6E4){if(m>1E3){var P=D.interruptions;P.push(Math.ceil(m));P.sort(function(W,L){return L-W});
P.length>16&&P.pop()}D.QF+=m}}D.J=Q};
pD=function(D,Q,m,P,W,L){L=L===void 0?!1:L;D.wc.X9(Q,m/Q);D.N=(0,g.T3)();W||D.j.X9(1,Q-P);L||(D.J=0);D.Iy>-1&&(0,g.T3)()-D.Iy>3E4&&FSP(D)};
xu=function(D,Q,m){Q=Math.max(Q,D.C.S);D.U.X9(1,m/Q)};
X$=function(D){D=D.Z.S1()+D.t0.S1()||0;D=isNaN(D)?.5:D;return D=Math.min(D,5)};
SC=function(D,Q,m){isNaN(m)||(D.Kh+=m);isNaN(Q)||(D.k9+=Q)};
rJ=function(D){D=D.T.S1();return D>0?D:1};
GZ=function(D,Q,m){Q=Q===void 0?!1:Q;m=m===void 0?1048576:m;var P=rJ(D);P=1/((D.U.S1()||0)*D.policy.TO+1/P);var W=D.wc.S1();W=W>0?W:1;var L=Math.max(P,W);D.policy.J>0&&W<P&&(L=Math.min(D.policy.J,1),L=(1-L)*P+L*W);if(!Q)return L;Q=1E-9+X$(D);m=L*Math.min(1,m/(L*Q));D.policy.B||(D=((D.j.percentile(.98)||0)-1)/2,D=Math.max(0,Math.min(1,D)),m*=1-.5*D);return m};
TDk=function(D){var Q={delay:X$(D),stall:D.U.S1()||0,byterate:rJ(D),init:D.u0},m=D.B[0];m.stamp=Math.round(D.N/36E5)*36E5;m.net=Math.ceil(D.QF);m.max=D.interruptions[0]||0;Q.interruptions=D.B;return Q};
FSP=function(D){var Q=TDk(D);g.wb("yt-player-bandwidth",Q,2592E3);D.Iy=(0,g.T3)();D.TO=!0};
MB=function(D){return(0,g.T3)()-D.N>=4E3};
h8r=function(D){this.experiments=D;this.S=17;this.T=13E4;this.N=.5;this.B=this.C=!1;this.Iy=this.V("html5_use_histogram_for_bandwidth");this.J=g.WF(this.experiments,"html5_auxiliary_estimate_weight");this.TO=g.WF(this.experiments,"html5_stall_factor")||1;this.U=g.WF(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.Mv("html5_trigger_loader_when_idle_network");this.j=this.experiments.Mv("html5_sabr_fetch_on_idle_network_preloaded_players")};
Ew7=function(D,Q){D=D===void 0?{}:D;Q=Q===void 0?{}:Q;g.v.call(this);var m=this;this.values=D;this.Uk=Q;this.C={};this.T=this.S=0;this.B=new g.pJ(function(){nw7(m)},1E4);
g.O(this,this.B)};
cA=function(D,Q){gw$(D,Q);return D.values[Q]&&D.Uk[Q]?D.values[Q]/Math.pow(2,D.S/D.Uk[Q]):0};
gw$=function(D,Q){D.values[Q]||(Q=AV7(),D.values=Q.values||{},D.Uk=Q.halfLives||{},D.C=Q.values?Object.assign({},Q.values):{})};
nw7=function(D){var Q=AV7();if(Q.values){Q=Q.values;for(var m={},P=g.T(Object.keys(D.values)),W=P.next();!W.done;W=P.next())W=W.value,Q[W]&&D.C[W]&&(D.values[W]+=Q[W]-D.C[W]),m[W]=cA(D,W);D.C=m}Q=D.Uk;m={};m.values=D.C;m.halfLives=Q;g.wb("yt-player-memory",m,2592E3)};
NS=function(D,Q,m,P,W){g.v.call(this);this.webPlayerContextConfig=Q;this.KZ=P;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.uS=this.gB=this.zY=this.R4=this.userDisplayName=this.userDisplayImage=this.Zw="";this.S={};this.Kj={};this.controlsType="0";this.dn=NaN;this.XT=!1;this.ZD=(0,g.T3)();this.hU=0;this.Dj=this.Oj=!1;this.Tb=!0;this.preferGapless=this.gF=this.WO=this.T=this.A8=!1;this.Ad=[];this.PO=!1;this.Km=0;D=D?g.o2(D):{};Q&&Q.csiPageType&&(this.csiPageType=Q.csiPageType);Q&&Q.csiServiceName&&
(this.csiServiceName=Q.csiServiceName);Q&&Q.preferGapless&&(this.preferGapless=Q.preferGapless);this.experiments=new vS9(Q?Q.serializedExperimentIds:D.fexp,Q?Q.serializedExperimentFlags:D.fflags);this.forcedExperiments=Q?Q.serializedForcedExperimentIds:m9("",D.forced_experiments)||void 0;this.cspNonce=(Q==null?0:Q.cspNonce)?Q.cspNonce:m9("",D.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(u6){L=""}this.h8=L;this.ancestorOrigins=(P=window.location.ancestorOrigins)?
Array.from(P):[];this.B=cd(!1,Q?Q.isEmbed:D.is_embed);if(Q&&Q.device){if(P=Q.device,P.androidOsExperience&&(this.S.caoe=""+P.androidOsExperience),P.androidPlayServicesVersion&&(this.S.capsv=""+P.androidPlayServicesVersion),P.brand&&(this.S.cbrand=P.brand),P.browser&&(this.S.cbr=P.browser),P.browserVersion&&(this.S.cbrver=P.browserVersion),P.cobaltReleaseVehicle&&(this.S.ccrv=""+P.cobaltReleaseVehicle),this.S.c=P.interfaceName||"WEB",this.S.cver=P.interfaceVersion||"html5",P.interfaceTheme&&(this.S.ctheme=
P.interfaceTheme),this.S.cplayer=P.interfacePlayerType||"UNIPLAYER",P.model&&(this.S.cmodel=P.model),P.network&&(this.S.cnetwork=P.network),P.os&&(this.S.cos=P.os),P.osVersion&&(this.S.cosver=P.osVersion),P.platform&&(this.S.cplatform=P.platform),L=nD(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")P.chipset&&(this.Kj.cchip=P.chipset),P.cobaltAppVersion&&(this.Kj.ccappver=P.cobaltAppVersion),P.firmwareVersion&&(this.Kj.cfrmver=P.firmwareVersion),P.deviceYear&&(this.Kj.crqyear=
P.deviceYear)}else this.S.c=D.c||"web",this.S.cver=D.cver||"html5",this.S.cplayer="UNIPLAYER";this.loaderUrl=Q?this.B||BDm(this)&&Q.loaderUrl?Q.loaderUrl||"":this.h8:this.B||BDm(this)&&D.loaderUrl?m9("",D.loaderUrl):this.h8;this.B&&g.ch("yt.embedded_player.embed_url",this.loaderUrl);this.Z=Y8(this.loaderUrl,wB6);P=this.loaderUrl;var u=u===void 0?!1:u;this.Nz=Og(Y8(P,kA7),P,u,"Trusted Ad Domain URL");this.PY=cd(!1,D.privembed);this.protocol=this.h8.indexOf("http:")===0?"http":"https";this.LI=tX$((Q?
Q.customBaseYoutubeUrl:D.BASE_YT_URL)||"")||tX$(this.h8)||this.protocol+"://www.youtube.com/";u=Q?Q.eventLabel:D.el;P="detailpage";u==="adunit"?P=this.B?"embedded":"detailpage":u==="embedded"||this.Z?P=D5(P,u,Jm6):u&&(P="embedded");this.t0=P;Tl4();u=null;P=Q?Q.playerStyle:D.ps;L=g.FK(lQw,P);!P||L&&!this.Z||(u=P);this.playerStyle=u;this.N=g.FK(lQw,this.playerStyle);this.houseBrandUserStatus=Q==null?void 0:Q.houseBrandUserStatus;this.Iy=this.N&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
this.DB=!this.Iy;this.x9=cd(!1,D.disableplaybackui);this.disablePaidContentOverlay=cd(!1,Q==null?void 0:Q.disablePaidContentOverlay);this.disableSeek=cd(!1,Q==null?void 0:Q.disableSeek);this.enableSpeedOptions=(Q==null?void 0:Q.enableSpeedOptions)||(ZO().defaultPlaybackRate?DW||g.S8||QS?g.fD&&FI("20")||g.Ta&&FI("4")||g.m8&&FI("11")||ai():!(g.m8&&!g.j8("chrome")||DW||g.j8("android")||g.j8("silk")):!1);this.vy=cd(!1,D.enable_faster_speeds);var t;this.supportsVarispeedExtendedFeatures=(t=Q==null?void 0:
Q.supportsVarispeedExtendedFeatures)!=null?t:!1;this.C=cd(this.playerStyle==="blazer",D.is_html5_mobile_device||Q&&Q.isMobileDevice);this.k9=XN()||rj();this.K0=this.V("mweb_allow_background_playback")?!1:this.C&&!this.N;this.wc=E5();this.oZ=g.P8;var z;this.nZ=!!(Q==null?0:(z=Q.embedsHostFlags)==null?0:z.optOutApiDeprecation);var b;Q?Q.hideInfo!==void 0&&(b=!Q.hideInfo):b=D.showinfo;this.Tq=g.W8(this)&&!this.nZ||cd(!iL(this)&&!sO(this)&&!this.N,b);this.SR=Q?!!Q.mobileIphoneSupportsInlinePlayback:cd(!1,
D.playsinline);t=this.C&&Le&&uL!=null&&uL>0&&uL<=2.3;z=Q?Q.useNativeControls:D.use_native_controls;this.U=g.W8(this)&&this.C;b=this.C&&!this.U;z=g.dv(this)||!t&&cd(b,z)?"3":"1";this.disableOrganicUi=!(Q==null||!Q.disableOrganicUi);b=Q?Q.controlsType:D.controls;this.controlsType=this.disableOrganicUi||b==="0"||b===0?"0":z;this.Ik=this.C;this.color=D5("red",Q?Q.progressBarColor:D.color,IQk);this.sM=this.controlsType==="3";this.Lj=!this.B;this.IH=(z=!this.Lj&&!sO(this)&&!this.Iy&&!this.N&&!iL(this))&&
!this.sM&&this.controlsType==="1";this.yn=g.tf(this)&&z&&this.controlsType==="0"&&!this.IH&&!(Q==null?0:Q.embedsEnableEmc3ds);this.Tv=this.ZK=t;this.Ze=(this.controlsType==="3"||this.C||cd(!1,D.use_media_volume))&&!this.U;this.gx=Al&&!g.$q(601)?!1:!0;this.SM=this.B||!1;this.pj=sO(this)?"":(this.loaderUrl||D.post_message_origin||"").substring(0,128);this.widgetReferrer=m9("",Q?Q.widgetReferrer:D.widget_referrer);var q;Q?Q.disableCastApi&&(q=!1):q=D.enablecastapi;q=!this.Z||cd(!0,q);t=!0;Q&&Q.disableMdxCast&&
(t=!1);this.YF=this.V("enable_cast_for_web_unplugged")&&g.zs(this)&&t||g.jY(this)&&t||q&&t&&this.controlsType==="1"&&!this.C&&(sO(this)||g.tf(this)||g.bL(this));this.C1=!!window.document.pictureInPictureEnabled||nt();q=Q?!!Q.supportsAutoplayOverride:cd(!1,D.autoplayoverride);this.VA=!(this.C&&!g.W8(this))&&!g.j8("nintendo wiiu")||q;this.tY=(Q?!!Q.enableMutedAutoplay:cd(!1,D.mutedautoplay))&&!1;q=(sO(this)||iL(this))&&this.playerStyle==="blazer";this.Xn=Q?!!Q.disableFullscreen:!cd(!0,D.fs);t=g.sI(g.qS(this))&&
g.W8(this);this.jD=!this.Xn&&(q||g.qZ())&&!t;this.lR=this.V("html5_picture_in_picture_logging_onresize");var C;this.iR=(C=g.WF(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?C:.33;this.Co=this.V("html5_picture_in_picture_blocking_onresize");this.TV=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.AE=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.jH=this.V("html5_picture_in_picture_blocking_standard_api");C=$y()&&FI(58)&&!rj();q=aW||typeof MediaSource===
"undefined";this.CZ=this.V("uniplayer_block_pip")&&(C||q)||this.Co||this.TV||this.jH;C=g.W8(this)&&!this.nZ;var f;Q?Q.disableRelatedVideos!==void 0&&(f=!Q.disableRelatedVideos):f=D.rel;this.Xw=C||cd(!this.N,f);this.Sh=cd(!1,Q?Q.enableContentOwnerRelatedVideos:D.co_rel);this.j=rj()&&uL>0&&uL<=4.4?"_top":"_blank";this.Kd=g.bL(this);this.CF=cd(this.playerStyle==="blazer",Q?Q.enableCsiLogging:D.enablecsi);switch(this.playerStyle){case "blogger":f="bl";break;case "gmail":f="gm";break;case "gac":f="ga";
break;case "ads-preview":f="ap";break;case "books":f="gb";break;case "docs":case "flix":f="gd";break;case "duo":f="gu";break;case "google-live":f="gl";break;case "google-one":f="go";break;case "play":case "play-ads":f="gp";break;case "chat":f="hc";break;case "hangouts-meet":f="hm";break;case "photos-edu":case "picasaweb":f="pw";break;default:f="yt"}this.TO=f;this.Kh=m9("",Q?Q.authorizedUserIndex:D.authuser);this.cY=g.W8(this)&&(this.PY||!z0u()||this.k9);var V;Q?Q.disableWatchLater!==void 0&&(V=!Q.disableWatchLater):
V=D.showwatchlater;this.F2=((f=!this.cY)||!!this.Kh&&f)&&cd(!this.Iy,this.Z?V:void 0);this.gi=Q?Q.isMobileDevice||!!Q.disableKeyboardControls:cd(!1,D.disablekb);this.loop=cd(!1,D.loop);this.pageId=m9("",Q?Q.initialDelegatedSessionId:D.pageid);this.yN=cd(!0,D.canplaylive);V=g.WF(this.experiments,"html5_default_audio_quality_setting_lr");var N;this.Dc=(N=R8n[R8n[V]])!=null?N:0;this.oy=cd(!1,D.livemonitor);this.disableSharing=cd(this.N,Q?Q.disableSharing:D.ss);(N=Q&&this.V("fill_video_container_size_override_from_wpcc")?
Q.videoContainerOverride:D.video_container_override)?(V=N.split("x"),V.length!==2?N=null:(N=Number(V[0]),V=Number(V[1]),N=isNaN(N)||isNaN(V)||N*V<=0?null:new g.Ay(N,V))):N=null;this.Br=N;this.mute=Q?!!Q.startMuted:cd(!1,D.mute);this.storeUserVolume=!this.mute&&cd(this.controlsType!=="0",Q?Q.storeUserVolume:D.store_user_volume);N=Q?Q.annotationsLoadPolicy:D.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:D5(void 0,N,Ce);this.captionsLanguagePreference=Q?Q.captionsLanguagePreference||
"":m9("",D.cc_lang_pref);N=D5(2,Q?Q.captionsLanguageLoadPolicy:D.cc_load_policy,Ce);this.controlsType==="3"&&N===2&&(N=3);this.Sg=N;this.g2=Q?Q.hl||"en_US":m9("en_US",D.hl);this.region=Q?Q.contentRegion||"US":m9("US",D.cr);this.hostLanguage=Q?Q.hostLanguage||"en":m9("en",D.host_language);this.JP=!this.PY&&Math.random()<g.WF(this.experiments,"web_player_api_logging_fraction");this.Y9=!this.PY;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(Q==null||!Q.deviceIsAudioOnly);this.dn=Qx(this.dn,
D.ismb);this.DB?(N=D.vss_host||"s.youtube.com",N==="s.youtube.com"&&(N=o8(this.LI)||"www.youtube.com")):N="video.google.com";this.RH=N;fe(this,D,!0);this.u0=new wJ;g.O(this,this.u0);V=Q?Q.innertubeApiKey:m9("",D.innertube_api_key);f=Q?Q.innertubeApiVersion:m9("",D.innertube_api_version);N=Q?Q.innertubeContextClientVersion:m9("",D.innertube_context_client_version);V=g.YK("INNERTUBE_API_KEY")||V;f=g.YK("INNERTUBE_API_VERSION")||f;C=g.YK("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");q=TZ(this);t=typeof this.S.c===
"number"?Number(this.S.c):Object.keys(UgP).indexOf(this.S.c);this.fF={innertubeApiKey:V,innertubeApiVersion:f,Aq:C,pN:q,iZ:t,innertubeContextClientVersion:g.YK("INNERTUBE_CONTEXT_CLIENT_VERSION")||N,GS:this.hostLanguage,Yi:this.region,Z1:g.YK("INNERTUBE_HOST_OVERRIDE")||"",PX:!!g.YK("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),un:!!g.YK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Cm=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.J=new ES(this.experiments,this.V("html5_force_hfr_support")?
!0:Vs(this)||O2()||Cfk()||HNh(this),g.Ta&&g.$q(56)||g.fD&&g.$q(54)||this.V("html5_force_vp9_subsample_encryption_support")||HNh(this));N=g.Nw(this);V=this.dn;f=this.experiments;C=new h8r(f);N&&(C.C=!0,C.N=.1);f.Mv("html5_media_time_weight")&&(C.C=!1);V&&(C.T=V/8);C.B=F2()>=480;this.schedule=new ap(C,new eTw(this.experiments),W);g.O(this,this.schedule);var h;this.enableSafetyMode=(h=Q==null?void 0:Q.initialEnableSafetyMode)!=null?h:cd(!1,D.enable_safety_mode);W=this.x9?!1:sO(this)&&this.playerStyle!==
"blazer";var B;Q?Q.disableAutonav!=null&&(B=!Q.disableAutonav):B=D.allow_autonav;this.kB=cd(W,!this.Iy&&B);this.sendVisitorIdHeader=Q?!!Q.sendVisitorIdHeader:cd(!1,D.send_visitor_id_header);var J;this.playerStyle==="docs"&&(Q?J=Q.disableNativeContextMenu:J=D.disable_native_context_menu);this.disableNativeContextMenu=cd(!1,J);this.m_=Vs(this)&&this.V("enable_skip_intro_button");this.embedConfig=m9("",Q?Q.serializedEmbedConfig:D.embed_config);this.QF=iz(D,g.W8(this));this.T=this.QF==="EMBEDDED_PLAYER_MODE_PFL";
this.embedsErrorLinks=!(Q==null||!Q.embedsErrorLinks);this.M5=cd(!1,D.full_window);var k;this.GO=!((k=this.webPlayerContextConfig)==null?0:k.chromeless);var R;this.livingRoomAppMode=D5("LIVING_ROOM_APP_MODE_UNSPECIFIED",D.living_room_app_mode||(Q==null?void 0:(R=Q.device)==null?void 0:R.livingRoomAppMode),KSk);var e;B=Qx(NaN,Q==null?void 0:(e=Q.device)==null?void 0:e.deviceYear);isNaN(B)||(this.deviceYear=B);this.transparentBackground=Q?!!Q.transparentBackground:cd(!1,D.transparent_background);this.showMiniplayerButton=
Q?!!Q.showMiniplayerButton:cd(!1,D.show_miniplayer_button);var a;g.W8(this)&&!(Q==null?0:(a=Q.embedsHostFlags)==null?0:a.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Q?!!Q.externalFullscreen:cd(!1,D.external_fullscreen);this.showMiniplayerUiWhenMinimized=Q?!!Q.showMiniplayerUiWhenMinimized:cd(!1,D.use_miniplayer_ui);var G;this.Tb=(G=D.show_loop_video_toggle)!=null?G:!0;this.kI=Math.random()<1E-4;if(D.onesie_hot_config||(Q==null?0:Q.onesieHotConfig))this.kJ=new VGw(D.onesie_hot_config,
Q==null?void 0:Q.onesieHotConfig),g.O(this,this.kJ);this.isTectonic=Q?!!Q.isTectonic:!!D.isTectonic;this.playerCanaryState=m;this.playerCanaryStage=Q==null?void 0:Q.canaryStage;this.HO=new Ew7;g.O(this,this.HO);this.datasyncId=(Q==null?void 0:Q.datasyncId)||g.YK("DATASYNC_ID");this.Ft=g.YK("LOGGED_IN",!1);this.H1=(Q==null?void 0:Q.allowWoffleManagement)||!1;this.yL=Infinity;this.jP=NaN;this.livingRoomPoTokenId=Q==null?void 0:Q.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.WO=!0:
this.WO=Math.random()*100<g.WF(this.experiments,"html5_high_res_logging_percent");var S;this.gF=!!(Q==null?0:(S=Q.embedsHostFlags)==null?0:S.allowRcat);this.e9=!g.zs(this)&&!VS(this);D=D.embedded_player_response?JSON.parse(D.embedded_player_response).trackingParams:void 0;D&&(this.Tx=D)};
g.qS=function(D){var Q,m;if(!((Q=D.webPlayerContextConfig)==null?0:(m=Q.embedsHostFlags)==null?0:m.enableLiteUx)||D.PY||D.N||D.T||D.QF==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";D=g.WF(D.experiments,"embeds_web_lite_mode");return D===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":D>=0&&D<jj6.length?jj6[D]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
fe=function(D,Q,m){m=m===void 0?!1:m;D.gB=m9(D.gB,Q.video_id);D.zY=m9(D.zY,Q.eventid);D.zY&&(ol=D.zY);for(var P=[],W=g.T(Object.keys($gn)),L=W.next();!L.done;L=W.next()){L=$gn[L.value];var u=Q[L];u!=null&&(u!==D.S[L]&&P.push(L),D.S[L]=u)}!m&&P.length>0&&D.kI&&(P.sort(),g.l4(new g.OI("Player client parameters changed after startup",P)));D.userAge=Qx(D.userAge,Q.user_age);D.Zw=m9(D.Zw,Q.user_display_email);D.userDisplayImage=m9(D.userDisplayImage,Q.user_display_image);g.AV(D.userDisplayImage)||(D.userDisplayImage=
"");D.userDisplayName=m9(D.userDisplayName,Q.user_display_name);D.R4=m9(D.R4,Q.user_gender);D.csiPageType=m9(D.csiPageType,Q.csi_page_type);D.csiServiceName=m9(D.csiServiceName,Q.csi_service_name);D.CF=cd(D.CF,Q.enablecsi);D.pageId=m9(D.pageId,Q.pageid);if(m=Q.enabled_engage_types)D.enabledEngageTypes=new Set(m.split(","));Q.living_room_session_po_token&&(D.aF=Q.living_room_session_po_token.toString())};
yS=function(D,Q){return!D.N&&$y()&&FI(55)&&D.controlsType==="3"&&!Q};
g.ZW=function(D){D=o8(D.LI);return D==="www.youtube-nocookie.com"?"www.youtube.com":D};
FG=function(D,Q,m){return D.protocol+"://i1.ytimg.com/vi/"+Q+"/"+(m||"hqdefault.jpg")};
Ts=function(D){return sO(D)&&!g.zs(D)};
g.dv=function(D){return D.V("html5_local_playsinline")?Al&&!g.$q(602)&&!("playsInline"in ZO()):Al&&!D.SR||g.j8("nintendo wiiu")?!0:!1};
TZ=function(D){return D.S.c};
g.Nw=function(D){return/^TVHTML5/.test(TZ(D))};
g.hf=function(D){return TZ(D)==="TVHTML5"};
BDm=function(D){return TZ(D)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
HNh=function(D){return D.S.cmodel==="CHROMECAST ULTRA/STEAK"||D.S.cmodel==="CHROMECAST/STEAK"};
g.ne=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
Vs=function(D){return/web/i.test(TZ(D))};
g.EO=function(D){return TZ(D).toUpperCase()==="WEB"};
VS=function(D){return TZ(D)==="WEB_KIDS"};
g.zs=function(D){return TZ(D)==="WEB_UNPLUGGED"};
gv=function(D){return TZ(D)==="TVHTML5_UNPLUGGED"};
g.f8=function(D){return g.zs(D)||TZ(D)==="TV_UNPLUGGED_CAST"||gv(D)};
g.jY=function(D){return TZ(D)==="WEB_REMIX"};
g.B8=function(D){return TZ(D)==="WEB_MUSIC_INTEGRATIONS"};
g.wv=function(D){return TZ(D)==="WEB_EMBEDDED_PLAYER"};
g.Jf=function(D){return(D.deviceIsAudioOnly||!g.Ta||aW||D.controlsType==="3"?!1:g.S8?D.B&&g.$q(51):!0)||(D.deviceIsAudioOnly||!g.fD||aW||D.controlsType==="3"?!1:g.S8?D.B&&g.$q(48):g.$q(38))||(D.deviceIsAudioOnly||!g.m8||aW||D.controlsType==="3"?!1:g.S8?D.B&&g.$q(37):g.$q(27))||!D.deviceIsAudioOnly&&g.kv&&!fa4()&&g.$q(11)||!D.deviceIsAudioOnly&&g.Cr&&g.$q("604.4")};
e8_=function(D){if(g.tf(D)&&Le)return!1;if(g.fD){if(!g.$q(47)||!g.$q(52)&&g.$q(51))return!1}else if(g.Cr)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
ON$=function(D,Q){return D.enabledEngageTypes.has(Q.toString())||vwr.includes(Q)};
sO=function(D){return D.t0==="detailpage"};
g.tf=function(D){return D.t0==="embedded"};
lL=function(D){return D.t0==="leanback"};
iL=function(D){return D.t0==="adunit"||D.playerStyle==="gvn"};
g.bL=function(D){return D.t0==="profilepage"};
g.W8=function(D){return D.B&&g.tf(D)&&!iL(D)&&!D.N};
I8=function(D){if(!D.userDisplayImage)return"";var Q=D.userDisplayImage.split("/");if(Q.length===5)return D=Q[Q.length-1].split("="),D[1]="s20-c",Q[Q.length-1]=D.join("="),Q.join("/");if(Q.length===8)return Q.splice(7,0,"s20-c"),Q.join("/");if(Q.length===9)return Q[7]+="-s20-c",Q.join("/");g.l4(new g.OI("Profile image not a FIFE URL.",D.userDisplayImage));return D.userDisplayImage};
g.R8=function(D){var Q=g.ZW(D);YJ7.includes(Q)&&(Q="www.youtube.com");return D.protocol+"://"+Q};
g.UO=function(D,Q){Q=Q===void 0?"":Q;if(D.KZ){var m=new kS,P,W=D.KZ();W.signedOut?P="":W.token?P=W.token:W.pendingResult.then(function(L){W.signedOut?m.resolve(""):m.resolve(L.token)},function(L){g.l4(new g.OI("b189348328_oauth_callback_failed",{error:L}));
m.resolve(Q)});
return P!==void 0?Bd(P):new E2(m)}return Bd(Q)};
H8=function(D,Q){Q=Q===void 0?"":Q;return D.Ft?Ye(!0):Xc(xe(Ye(g.UO(D,Q)),function(m){return Ye(!!m)}),function(){return Ye(!1)})};
aQj=function(D,Q){Q==null||xe(Q,function(m){D.KI=m;var P,W;(P=D.kJ)!=null&&(W=P.S)!=null&&(W.S=new HA(m,W.C,W.T),g.O(W,W.S))})};
o8=function(D){var Q=g.uY(D);return(D=Number(g.LG(D)[4]||null)||null)?Q+":"+D:Q};
Ke=function(D,Q){Q=Q===void 0?!1:Q;var m=aN[D],P=Am9[m],W=pB6[D];if(!W||!P)return null;Q=new v6(Q?W.height:W.width,Q?W.width:W.height,W.fps);P=ad(P,Q,m);return new AL(D,P,{video:Q,yF:W.bitrate/8})};
XB_=function(D){var Q=Am9[aN[D]],m=xgh[D];return m&&Q?new AL(D,Q,{audio:new B6(m.audioSampleRate,m.numChannels)}):null};
jP=function(D){this.S=D};
$v=function(D,Q,m,P){if(m)return gj();m={};var W=ZO();Q=g.T(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=L.value,D.canPlayType(W,L.getInfo().mimeType)||P){var u=L.S.video.quality;if(!m[u]||m[u].getInfo().nO())m[u]=L}D=[];m.auto&&D.push(m.auto);P=g.T(O5);for(W=P.next();!W.done;W=P.next())(W=m[W.value])&&D.push(W);return D.length?Bd(D):gj()};
SJh=function(D){this.itag=D.itag;this.url=D.url;this.codecs=D.codecs;this.width=D.width;this.height=D.height;this.fps=D.fps;this.bitrate=D.bitrate;var Q;this.C=((Q=D.audioItag)==null?void 0:Q.split(","))||[];this.jx=D.jx;this.Ln=D.Ln||"";this.WY=D.WY;this.audioChannels=D.audioChannels;this.S=""};
rmr=function(D,Q,m,P){Q=Q===void 0?!1:Q;m=m===void 0?!0:m;P=P===void 0?{}:P;var W={};D=g.T(D);for(var L=D.next();!L.done;L=D.next()){L=L.value;if(Q&&MediaSource&&MediaSource.isTypeSupported){var u=L.type;L.audio_channels&&(u=u+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(u)){P[L.itag]="tpus";continue}}if(m||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){u=void 0;var t={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},z=L.type.match(/codecs="([^"]*)"/);
z=z?z[1]:"";L.audio_track_id&&(u=new g.js(L.name,L.audio_track_id,!!L.is_default));var b=L.eotf;L=new SJh({itag:L.itag,url:L.url,codecs:z,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,jx:b?t[b]:void 0,Ln:L.drm_families,WY:u,audioChannels:Number(L.audio_channels)});W[L.itag]=W[L.itag]||[];W[L.itag].push(L)}else P[L.itag]="enchdr"}return W};
GAj=function(D,Q,m,P,W){this.T=D;this.C=Q;this.J=m;this.cpn=P;this.N=W;this.B=0;this.S=""};
MGj=function(D,Q){D.T.some(function(m){var P;return((P=m.WY)==null?void 0:P.getId())===Q});
D.S=Q};
eP=function(D,Q,m){D.cpn&&(Q=g.oz(Q,{cpn:D.cpn}));m&&(Q=g.oz(Q,{paired:m}));return Q};
cm7=function(D,Q){D=D.itag.toString();Q!==null&&(D+=Q.itag.toString());return D};
Dqn=function(D){for(var Q=[],m=[],P=g.T(D.C),W=P.next();!W.done;W=P.next())W=W.value,W.bitrate<=D.B?Q.push(W):m.push(W);Q.sort(function(L,u){return u.bitrate-L.bitrate});
m.sort(function(L,u){return L.bitrate-u.bitrate});
D.C=Q.concat(m)};
v8=function(D,Q,m){this.S=D;this.C=Q;this.expiration=m;this.NB=null};
QZw=function(D,Q){if(!(aW||Yy()||vd()))return null;D=rmr(Q,D.V("html5_filter_fmp4_in_hls"));if(!D)return null;Q=[];for(var m={},P=g.T(Object.keys(D)),W=P.next();!W.done;W=P.next()){W=g.T(D[W.value]);for(var L=W.next();!L.done;L=W.next()){var u=L.value;u.WY&&(L=u.WY.getId(),m[L]||(u=new g.J3(L,u.WY),m[L]=u,Q.push(u)))}}return Q.length>0?Q:null};
sZ6=function(D,Q,m,P,W,L,u){if(!(aW||Yy()||vd()))return gj();var t={},z=mqP(m),b=rmr(m,D.V("html5_filter_fmp4_in_hls"),D.J.U,t);if(!b)return u({noplst:1}),gj();Pj$(b);m={};var q=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),C;m=[];var f=[],V=[],N=null,h="";P=P&&P.match(/hls_timedtext_playlist/)?new SJh({itag:"0",url:P,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,WY:new g.js("English","en",!1)}):null;for(var B=g.T(Object.keys(b)),J=B.next();!J.done;J=B.next())if(J=J.value,!D.V("html5_disable_drm_hfr_1080")||
J!=="383"&&J!=="373"){J=g.T(b[J]);for(var k=J.next();!k.done;k=J.next())if(k=k.value,k.width){for(var R=g.T(k.C),e=R.next();!e.done;e=R.next())if(e=e.value,b[e]){k.S=e;break}k.S||(k.S=W3h(b,k));if(R=b[k.S])if(m.push(k),k.Ln==="fairplay"&&(C=q),e="",k.jx==="PQ"?e="smpte2084":k.jx==="HLG"&&(e="arib-std-b67"),e&&(h=e),V.push(ijn(R,[k],P,L,k.itag,k.width,k.height,k.fps,z,void 0,void 0,C,e)),!N||k.width*k.height*k.fps>N.width*N.height*N.fps)N=k}else f.push(k)}else t[J]="disdrmhfr";V.reduce(function(a,
G){return G.getInfo().isEncrypted()&&a},!0)&&(C=q);
W=Math.max(W,0);q=N||{};b=q.fps===void 0?0:q.fps;N=q.width===void 0?0:q.width;q=q.height===void 0?0:q.height;B=D.V("html5_native_audio_track_switching");V.push(ijn(f,m,P,L,"93",N,q,b,z,"auto",W,C,h,B));Object.entries(t).length&&u(t);return $v(D.J,V,yS(D,Q),!1)};
ijn=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){for(var N=0,h="",B=g.T(D),J=B.next();!J.done;J=B.next())J=J.value,h||(h=J.itag),J.audioChannels&&J.audioChannels>N&&(N=J.audioChannels,h=J.itag);W=new AL(W,"application/x-mpegURL",{audio:new B6(0,N),video:new v6(L,u,t,null,void 0,b,void 0,void 0,f),Ln:C,qG:h});D=new GAj(D,Q,m?[m]:[],P,!!V);D.B=q?q:1369843;return new v8(W,D,z)};
mqP=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.url&&(Q=Q.url.split("expire/"),!(Q.length<=1)))return+Q[1].split("/")[0];return NaN};
W3h=function(D,Q){for(var m=g.T(Object.keys(D)),P=m.next();!P.done;P=m.next()){P=P.value;var W=D[P][0];if(!W.width&&W.Ln===Q.Ln&&!W.audioChannels)return P}return""};
Pj$=function(D){for(var Q=new Set,m=g.T(Object.values(D)),P=m.next();!P.done;P=m.next())P=P.value,P.length&&(P=P[0],P.height&&P.codecs.startsWith("vp09")&&Q.add(P.height));m=[];if(Q.size){P=g.T(Object.keys(D));for(var W=P.next();!W.done;W=P.next())if(W=W.value,D[W].length){var L=D[W][0];L.height&&Q.has(L.height)&&!L.codecs.startsWith("vp09")&&m.push(W)}}Q=g.T(m);for(m=Q.next();!m.done;m=Q.next())delete D[m.value]};
OO=function(D,Q){this.S=D;this.C=Q};
L36=function(D,Q,m,P){var W=[];m=g.T(m);for(var L=m.next();!L.done;L=m.next()){var u=L.value;if(u.url){L=new g.Gn(u.url,!0);if(u.s){var t=L,z=u.sp,b=v8h(decodeURIComponent(u.s));t[d[19]](z,encodeURIComponent(b))}t=g.T(Object.keys(P));for(z=t.next();!z.done;z=t.next())z=z.value,L.set(z,P[z]);u=is(u.type,u.quality,u.itag,u.width,u.height);W.push(new OO(u,L))}}return $v(D.J,W,yS(D,Q),!1)};
Yv=function(D,Q){this.S=D;this.C=Q};
uP7=function(D,Q,m){var P=[];m=g.T(m);for(var W=m.next();!W.done;W=m.next())if((W=W.value)&&W.url){var L=is(W.type,"medium","0");P.push(new Yv(L,W.url))}return $v(D.J,P,yS(D,Q),!1)};
dq9=function(D,Q){var m=[],P=is(Q.type,"auto",Q.itag);m.push(new Yv(P,Q.url));return $v(D.J,m,!1,!0)};
zin=function(D){return D&&tDr[D]?tDr[D]:null};
bj7=function(D){switch(D){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return D;default:return"sabr.config"}};
qYj=function(D){if(D=D.commonConfig)this.url=D.url,this.urlQueryOverride=D.urlQueryOverride,D.ustreamerConfig&&(this.bx=KD(D.ustreamerConfig)||void 0)};
CjP=function(D,Q){var m;if(Q=Q==null?void 0:(m=Q.watchEndpointSupportedOnesieConfig)==null?void 0:m.html5PlaybackOnesieConfig)D.R9=new qYj(Q)};
g.a8=function(D){D=D===void 0?{}:D;this.languageCode=D.languageCode||"";this.languageName=D.languageName||null;this.kind=D.kind||"";this.name=D.name===void 0?null:D.name;this.displayName=D.displayName||null;this.id=D.id||null;this.S=D.is_servable||!1;this.isTranslateable=D.is_translateable||!1;this.url=D.url||null;this.vssId=D.vss_id||"";this.isDefault=D.is_default||!1;this.translationLanguage=D.translationLanguage||null;this.xtags=D.xtags||"";this.captionId=D.captionId||""};
g.pe=function(D){var Q={languageCode:D.languageCode,languageName:D.languageName,displayName:g.Af(D),kind:D.kind,name:D.name,id:D.id,is_servable:D.S,is_default:D.isDefault,is_translateable:D.isTranslateable,vss_id:D.vssId};D.xtags&&(Q.xtags=D.xtags);D.captionId&&(Q.captionId=D.captionId);D.translationLanguage&&(Q.translationLanguage=D.translationLanguage);return Q};
g.xv=function(D){return D.translationLanguage?D.translationLanguage.languageCode:D.languageCode};
g.or7=function(D){var Q=D.vssId;D.translationLanguage&&Q&&(Q="t"+Q+"."+g.xv(D));return Q};
g.Af=function(D){var Q=[];if(D.displayName)Q.push(D.displayName);else{var m=D.languageName||"";Q.push(m);D.kind==="asr"&&m.indexOf("(")===-1&&Q.push(" (Automatic Captions)");D.name&&Q.push(" - "+D.name)}D.translationLanguage&&Q.push(" >> "+D.translationLanguage.languageName);return Q.join("")};
y59=function(D,Q,m,P){D||(D=Q&&fKu.hasOwnProperty(Q)&&VDr.hasOwnProperty(Q)?VDr[Q]+"_"+fKu[Q]:void 0);Q=D;if(!Q)return null;D=Q.match(Nqn);if(!D||D.length!==5)return null;if(D=Q.match(Nqn)){var W=Number(D[3]),L=[7,8,10,5,6];D=!(Number(D[1])===1&&W===8)&&L.indexOf(W)>=0}else D=!1;return m||P||D?Q:null};
XG=function(D,Q){for(var m={},P=g.T(Object.keys(Zjw)),W=P.next();!W.done;W=P.next()){W=W.value;var L=Q?Q+W:W;L=D[L+"_webp"]||D[L];g.AV(L)&&(m[Zjw[W]]=L)}return m};
SP=function(D){var Q={};if(!D||!D.thumbnails)return Q;D=D.thumbnails.filter(function(t){return!!t.url});
D.sort(function(t,z){return t.width-z.width||t.height-z.height});
for(var m=g.T(Object.keys(F37)),P=m.next();!P.done;P=m.next()){var W=Number(P.value);P=F37[W];for(var L=g.T(D),u=L.next();!u.done;u=L.next())if(u=u.value,u.width>=W){W=Tqh(u.url);g.AV(W)&&(Q[P]=W);break}}(D=D.pop())&&D.width>=1280&&(D=Tqh(D.url),g.AV(D)&&(Q["maxresdefault.jpg"]=D));return Q};
Tqh=function(D){return D.startsWith("//")?"https:"+D:D};
rv=function(D){return D&&D.baseUrl||""};
Gs=function(D){D=g.c0(D);for(var Q=g.T(Object.keys(D)),m=Q.next();!m.done;m=Q.next()){m=m.value;var P=D[m];D[m]=Array.isArray(P)?P[0]:P}return D};
hi7=function(D,Q){D.botguardData=Q.playerAttestationRenderer.botguardData;Q=Q.playerAttestationRenderer.challenge;Q!=null&&(D.K1=Q)};
grn=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=m.interstitials.map(function(u){var t=g.A(u,nrn);if(t)return{is_yto_interstitial:!0,raw_player_response:t};if(u=g.A(u,Er4))return Object.assign({is_yto_interstitial:!0},GG(u))});
P=g.T(P);for(var W=P.next();!W.done;W=P.next())switch(W=W.value,m.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":D.interstitials=D.interstitials.concat({time:0,playerVars:W,E1:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":D.interstitials=D.interstitials.concat({time:0x7ffffffffffff,playerVars:W,E1:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(m.podConfig.timeToInsertAtMillis);D.interstitials=D.interstitials.concat({time:L,playerVars:W,
E1:L===0?5:7})}}};
Bq7=function(D,Q){if(Q=Q.find(function(m){return!(!m||!m.tooltipRenderer)}))D.tooltipRenderer=Q.tooltipRenderer};
wQ7=function(D,Q){Q.subscribeCommand&&(D.subscribeCommand=Q.subscribeCommand);Q.unsubscribeCommand&&(D.unsubscribeCommand=Q.unsubscribeCommand);Q.addToWatchLaterCommand&&(D.addToWatchLaterCommand=Q.addToWatchLaterCommand);Q.removeFromWatchLaterCommand&&(D.removeFromWatchLaterCommand=Q.removeFromWatchLaterCommand);Q.getSharePanelCommand&&(D.getSharePanelCommand=Q.getSharePanelCommand)};
kK6=function(D,Q){Q!=null?(D.Wy=Q,D.RI=!0):(D.Wy="",D.RI=!1)};
MS=function(D,Q){this.type=D||"";this.id=Q||""};
c8=function(D){return new MS(D.substring(0,2),D.substring(2))};
DY=function(D,Q){this.nh=D;this.author="";this.oD=null;this.playlistLength=0;this.S=this.sessionData=null;this.Z={};this.title="";if(Q){this.author=Q.author||Q.playlist_author||"";this.title=Q.playlist_title||"";if(D=Q.session_data)this.sessionData=SE(D,"&");var m;this.S=((m=Q.thumbnail_ids)==null?void 0:m.split(",")[0])||null;this.Z=XG(Q,"playlist_");this.videoId=Q.video_id||void 0;if(m=Q.list)switch(Q.listType){case "user_uploads":this.playlistId=(new MS("UU","PLAYER_"+m)).toString();break;default:if(D=
Q.playlist_length)this.playlistLength=Number(D)||0;this.playlistId=c8(m).toString();if(Q=Q.video)this.videoId=(Q[0]||null).video_id||void 0}else Q.playlist&&(this.playlistLength=Q.playlist.toString().split(",").length)}};
Q7=function(D,Q){this.nh=D;this.FC=this.author="";this.oD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.I1=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(Q){this.ariaLabel=Q.aria_label||void 0;this.author=Q.author||"";this.FC=Q.FC||"";if(D=Q.endscreen_autoplay_session_data)this.oD=SE(D,"&");this.uw=Q.uw;this.isLivePlayback=Q.live_playback==="1";this.isUpcoming=!!Q.isUpcoming;if(D=Q.length_seconds)this.lengthSeconds=typeof D==="string"?Number(D):D;this.lengthText=
Q.lengthText||"";this.I1=Q.I1||"";this.publishedTimeText=Q.publishedTimeText||void 0;if(D=Q.session_data)this.sessionData=SE(D,"&");this.shortViewCount=Q.short_view_count_text||void 0;this.Z=XG(Q);this.title=Q.title||"";this.videoId=Q.docid||Q.video_id||Q.videoId||Q.id||void 0;this.watchUrl=Q.watchUrl||void 0}};
J57=function(D){var Q,m,P=(Q=D.getWatchNextResponse())==null?void 0:(m=Q.contents)==null?void 0:m.twoColumnWatchNextResults,W,L,u,t,z;D=(W=D.getWatchNextResponse())==null?void 0:(L=W.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:(t=u.endScreen)==null?void 0:(z=t.watchNextEndScreenRenderer)==null?void 0:z.results;if(!D){var b,q;D=P==null?void 0:(b=P.endScreen)==null?void 0:(q=b.endScreen)==null?void 0:q.results}return D};
g.P1=function(D){var Q,m,P;D=g.A((Q=D.getWatchNextResponse())==null?void 0:(m=Q.playerOverlays)==null?void 0:(P=m.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,mp);return g.A(D==null?void 0:D.playerBar,lK7)};
IKP=function(D){this.S=D.playback_progress_0s_url;this.T=D.playback_progress_2s_url;this.C=D.playback_progress_10s_url};
Ri$=function(){if(W1===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Q){}a:{try{var D=!!self.localStorage}catch(Q){D=!1}if(D&&(D=g.Ig(g.Yt()+"::yt-player"))){W1=new v_(D);break a}W1=void 0}}return W1};
g.iH=function(){var D=Ri$();if(!D)return{};try{var Q=D.get("yt-player-lv");return JSON.parse(Q||"{}")}catch(m){return{}}};
g.Uq4=function(D){var Q=Ri$();Q&&(D=JSON.stringify(D),Q.set("yt-player-lv",D))};
g.s1=function(D){return g.iH()[D]||0};
g.Lz=function(D,Q){var m=g.iH();Q!==m[D]&&(Q!==0?m[D]=Q:delete m[D],g.Uq4(m))};
g.uH=function(D){return g.U(function(Q){return Q.return(g.vD(Hj4(),D))})};
tc=function(D,Q,m,P,W,L,u,t){var z,b,q,C,f,V;return g.U(function(N){switch(N.C){case 1:return z=g.s1(D),z===4?N.return(4):g.I(N,g.Sa(),2);case 2:b=N.S;if(!b)throw g.fr("wiac");if(!t||u===void 0){N.Nv(3);break}return g.I(N,K3$(t,u),4);case 4:u=N.S;case 3:return q=m.lastModified||"0",g.I(N,g.uH(b),5);case 5:return C=N.S,g.h4(N,6),dw++,g.I(N,g.BD(C,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",wB:!0},function(h){if(L!==void 0&&u!==void 0){var B=""+D+"|"+Q.id+"|"+q+"|"+String(L).padStart(10,
"0");B=g.wV(h.objectStore("media"),u,B)}else B=g.NT.resolve(void 0);var J=jZm(D,Q.ri()),k=jZm(D,!Q.ri()),R={fmts:$q$(P),format:m||{}};J=g.wV(h.objectStore("index"),R,J);var e=P.downloadedEndTime===-1;R=e?h.objectStore("index").get(k):g.NT.resolve(void 0);var a={fmts:"music",format:{}};h=e&&W&&!Q.ri()?g.wV(h.objectStore("index"),a,k):g.NT.resolve(void 0);return g.NT.all([h,R,B,J]).then(function(G){G=g.T(G);G.next();G=G.next().value;dw--;var S=g.s1(D);if(S!==4&&e&&W||G!==void 0&&g.ei9(G.fmts))S=1,g.Lz(D,
S);return S})}),8);
case 8:return N.return(N.S);case 6:f=g.w7(N);dw--;V=g.s1(D);if(V===4)return N.return(V);g.Lz(D,4);throw f;}})};
g.vrj=function(D){var Q,m;return g.U(function(P){if(P.C==1)return g.I(P,g.Sa(),2);if(P.C!=3){Q=P.S;if(!Q)throw g.fr("ri");return g.I(P,g.uH(Q),3)}m=P.S;return P.return(g.BD(m,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(W){var L=IDBKeyRange.bound(D+"|",D+"~");return W.objectStore("index").getAll(L).then(function(u){return u.map(function(t){return t?t.format:{}})})}))})};
YY7=function(D,Q,m,P,W){var L,u,t;return g.U(function(z){if(z.C==1)return g.I(z,g.Sa(),2);if(z.C!=3){L=z.S;if(!L)throw g.fr("rc");return g.I(z,g.uH(L),3)}u=z.S;t=g.BD(u,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(b){var q=""+D+"|"+Q+"|"+m+"|"+String(P).padStart(10,"0");return b.objectStore("media").get(q)});
return W?z.return(t.then(function(b){if(b===void 0)throw Error("No data from indexDb");return Oj4(W,b)}).catch(function(b){throw new g.OI("Error while reading chunk: "+b.name+", "+b.message);
})):z.return(t)})};
g.ei9=function(D){return D?D==="music"?!0:D.includes("dlt=-1")||!D.includes("dlt="):!1};
jZm=function(D,Q){return""+D+"|"+(Q?"v":"a")};
$q$=function(D){var Q={};return rl((Q.dlt=D.downloadedEndTime.toString(),Q.mket=D.maxKnownEndTime.toString(),Q.avbr=D.averageByteRate.toString(),Q))};
A56=function(D){var Q={},m={};D=g.T(D);for(var P=D.next();!P.done;P=D.next()){var W=P.value,L=W.split("|");W.match(g.aK$)?(P=Number(L.pop()),isNaN(P)?m[W]="?":(L=L.join("|"),(W=Q[L])?(L=W[W.length-1],P===L.end+1?L.end=P:W.push({start:P,end:P})):Q[L]=[{start:P,end:P}])):m[W]="?"}D=g.T(Object.keys(Q));for(P=D.next();!P.done;P=D.next())P=P.value,m[P]=Q[P].map(function(u){return u.start+"-"+u.end}).join(",");
return m};
zM=function(D){g.iR.call(this);this.S=null;this.T=new Ho;this.S=null;this.N=new Set;this.crossOrigin=D||""};
pQm=function(D,Q,m){for(m=bH(D,m);m>=0;){var P=D.levels[m];if(P.isLoaded(q4(P,Q))&&(P=g.Cz(P,Q)))return P;m--}return g.Cz(D.levels[0],Q)};
XQ6=function(D,Q,m){m=bH(D,m);for(var P,W;m>=0;m--)if(P=D.levels[m],W=q4(P,Q),!P.isLoaded(W)){P=D;var L=m,u=L+"-"+W;P.N.has(u)||(P.N.add(u),P.T.enqueue(L,{N7:L,oN:W}))}xq4(D)};
xq4=function(D){if(!D.S&&!D.T.isEmpty()){var Q=D.T.remove();D.S=SY_(D,Q)}};
SY_=function(D,Q){var m=document.createElement("img");D.crossOrigin&&(m.crossOrigin=D.crossOrigin);m.src=D.levels[Q.N7].AD(Q.oN);m.onload=function(){var P=Q.N7,W=Q.oN;D.S!==null&&(D.S.onload=null,D.S=null);P=D.levels[P];P.loaded.add(W);xq4(D);var L=P.columns*P.rows;W*=L;P=Math.min(W+L-1,P.oY()-1);W=[W,P];D.publish("l",W[0],W[1])};
return m};
g.ob=function(D,Q,m,P){this.level=D;this.B=Q;this.loaded=new Set;this.level=D;this.B=Q;D=m.split("#");this.width=Math.floor(Number(D[0]));this.height=Math.floor(Number(D[1]));this.frameCount=Math.floor(Number(D[2]));this.columns=Math.floor(Number(D[3]));this.rows=Math.floor(Number(D[4]));this.S=Math.floor(Number(D[5]));this.T=D[6];this.signature=D[7];this.videoLength=P};
q4=function(D,Q){return Math.floor(Q/(D.columns*D.rows))};
g.Cz=function(D,Q){Q>=D.WM()&&D.YU();var m=q4(D,Q),P=D.columns*D.rows,W=Q%P;Q=W%D.columns;W=Math.floor(W/D.columns);var L=D.YU()+1-P*m;if(L<D.columns){var u=L;P=1}else u=D.columns,P=L<P?Math.ceil(L/D.columns):D.rows;return{url:D.AD(m),column:Q,columns:u,row:W,rows:P,L8:D.width*u,OG:D.height*P}};
fz=function(D,Q,m,P,W){P=P===void 0?!1:P;W=W===void 0?!1:W;zM.call(this,m);this.isLive=P;this.U=!!W;this.levels=this.C(D,Q);this.B=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
r56=function(D,Q,m){return(D=D.levels[Q])?D.Kr(m):-1};
bH=function(D,Q){var m=D.B.get(Q);if(m)return m;m=D.levels.length;for(var P=0;P<m;P++)if(D.levels[P].width>=Q)return D.B.set(Q,P),P;D.B.set(Q,m-1);return m-1};
V7=function(D,Q,m,P){m=m.split("#");m=[m[1],m[2],0,m[3],m[4],-1,m[0],""].join("#");g.ob.call(this,D,Q,m,0);this.C=null;this.J=P?2:0};
N4=function(D,Q,m,P){fz.call(this,D,0,void 0,Q,!(P===void 0||!P));for(D=0;D<this.levels.length;D++)this.levels[D].lN(m)};
GK9=function(D,Q,m){Q={cpn:Q};D.indexOf("/ibw/")===-1&&(Q.ibw=m?String(m):"1369843");return{url:g.oz(D,Q),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.ZY=function(D,Q){g.iR.call(this);var m=this;this.nh=D;this.adaptiveFormats="";this.Sh=this.adQueryId=this.yN=null;this.n4={start:NaN,end:NaN};this.cueRanges=this.Ln=null;this.h2=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.AE=void 0;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.x9="";this.C1=!1;this.Wt=null;this.Kd=this.Xn=!1;this.B=null;this.JI=this.Ft=!1;this.WO=NaN;
this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.XK=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Tq=0;this.Ik=!1;this.cycToken=null;this.author="";this.vT=!1;this.kB=0;this.TV=!1;this.rz=null;this.s0=[];this.jZ=this.E0=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.jD=this.zY="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=
this.gB=0;this.gF=this.k9=this.C=null;this.Cu="";this.loading=!1;this.dn=this.zB=0;this.O4=this.pipable=this.cj=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.BB=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.oy=this.isPrivate=this.isListed=this.aF=!1;this.IQ="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.RD=this.Kh=this.Ws=!1;this.latencyClass="UNKNOWN";this.El=this.d6=this.hL=this.u_=
this.oU=this.Vg=this.l1=this.zH=this.enableServerStitchedDai=this.QA=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.cY=0;this.reloadReason="";this.AC=this.VA=!1;this.keywords={};this.kJ="";this.Ku=0;this.Yx=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.z7=null;this.m7=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.jC=this.paygated=!1;this.k5=[];this.Co=!1;this.j=[];this.zm=null;
this.wL=this.racyCheckOk=!1;this.vC={};this.isProximaLatencyEligible=!1;this.ao=0;this.T=null;this.autonavState=1;this.f3=null;this.shortDescription="";this.Iy=this.W9=!1;this.yn=this.hU=this.startSeconds=0;this.Qj=this.wu=this.EG=y7;this.Tv=this.suggestions=null;this.iR=this.ZK=void 0;this.isExternallyHostedPodcast=!1;this.Ig=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.OI=void 0;this.l0=[];this.tY=[];this.hlsFormats=this.ZD="";this.Lb=this.S2=this.fF=this.Ze=this.GO=
this.vy=this.jP=null;this.oz="vvt";this.M5=!1;this.M9=null;this.d_="";this.kI=NaN;this.sM=this.Us=this.DB=this.xU=this.JG=this.Dj=this.K0=this.kU=this.Nz=this.qE="";this.nZ=null;this.v9=!1;this.clipStart=0;this.clipEnd=Infinity;this.O$=!1;this.heartbeatToken="";this.Lv=this.rQ=NaN;this.H1=this.Cm=this.Zw=this.Jg=this.WW=!1;this.CZ=!0;this.Z={};this.captionTracks=[];this.uh=[];this.xR=0;this.aU=[];this.hH=[];this.gQ=!1;this.BE={};this.yL=new g.J3("und",new g.js("Default","und",!0));this.gb=0;this.J=
null;this.Br=[];this.S3=!1;this.fD=this.A8="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.wc=this.gq=this.TQ=this.playerResponse=this.eN=this.WE=this.jH=this.W1=null;this.yx=!1;this.g2=null;this.isInlinePlaybackNoAd=this.R4=this.Fo=this.useCobaltWidevine=this.xn=this.tJ=!1;this.uc=!0;this.HO=this.KI=NaN;this.defraggedFromSubfragments=this.pB=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.XT=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup=
"";this.c5=this.Y9=this.PO=!1;this.interstitials=[];this.RI=this.Bm=!1;this.Wy="";this.allowImaMonetization=!1;this.K9="";this.D8=!1;this.Ad="";this.RH=[];this.tM=[];this.Um="";this.J2=this.U=this.I6=!1;this.KZ="";this.gx=this.ZX=this.SR=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.m_=!1;this.dF=this.F2=!0;this.errorDetail=this.userGenderAge="";this.Qx=this.O0=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=
this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.vr=this.errorReason=this.errorCode=null;this.vE=!1;this.lR=[];this.Lj=this.QF=this.Kj=this.v1=this.vO=0;this.fetchType=null;this.jf=!0;this.transitionEndpointAtEndOfStream=void 0;this.HN=this.eF=-1;this.Tx=this.Xw=!1;this.gi=null;this.TO="";this.watchUrl=null;this.md=[];this.visibleOnLoadKeys=[];this.QJ=[];this.inlineMetricEnabled=this.Tb=!1;this.eZ=this.embedsRctn=this.embedsRct="";this.dj=NaN;this.authorizedFormats=[];this.Jt=
(0,g.T3)();this.b8=this.SM=0;this.bx=null;this.b_=this.YF=!1;this.BN=0;this.IH={};this.Dq=!1;this.Rx=.25;this.BC=2;this.PY=this.nh.experiments.Mv("html5_use_triple_equals");this.V4=g.WF(this.nh.experiments,"html5_gapless_loop_seek_offset_in_milli");this.It={setData:function(P){m.setData(P)},
Fq:function(){m.Fq()},
b1:function(P){m.b1(P)}};
this.Xw=this.V("web_new_autonav_countdown");this.Tx=this.V("web_new_big_thumbnail_endscreen");this.Dq=this.nh.experiments.Mv("html5_audio_gain_null_coalescing");this.nh.Tx&&(this.u0=this.nh.Tx);this.setData(Q);this.JH=new ec;g.O(this,this.JH)};
g.hc=function(D,Q,m){Q&&Q.cpn&&g.l4(new g.OI("CPN provided in VideoData update",{zJO:Q.cpn,B1:D.clientPlaybackNonce,yZT:m}));m?(W5(Q),D.setData(Q),Fi(D)&&D.Fq()):(Q=Q||{},MDm(D,Q),TM(D,Q),c5h(D,Q),D.publish("dataupdated"))};
c5h=function(D,Q){D.fflags=m9(D.fflags,Q.fflags);var m=Q.iv_invideo_url;m&&(D.x9=p8(m));D.C1=cd(D.C1,Q.iv_ads_only);if(m=Q.cta_conversion_urls)D.Ki=m;D.isPharma=cd(D.isPharma,Q.is_pharma);D.author=m9(D.author,Q.author);D.zY=Drh(Q.ttsurl)||D.zY;D.TV=cd(D.TV,Q.cc_asr);D.jD=m9(D.jD,Q.channel_path);if(m=Q.profile_picture)D.profilePicture=m9(D.profilePicture,m);D.videoCountText=m9(D.videoCountText,Q.video_count_text);D.autonavState=D5(D.autonavState,Q.autonav_state,Qum);D.clientPlaybackNonce=m9(D.clientPlaybackNonce,
Q.cpn);D.subscribed=cd(D.subscribed,Q.subscribed);D.rawViewCount=Qx(D.rawViewCount,Q.view_count);D.shortViewCount=m9(D.shortViewCount,Q.short_view_count_text);D.publishedTimeText=m9(D.publishedTimeText||"",Q.publishedTimeText);D.lengthText=m9(D.lengthText||"",Q.lengthText);D.I1=m9(D.I1||"",Q.I1);D.FC=m9(D.FC||"",Q.FC);D.title=m9(D.title,Q.title);D.subtitle=m9(D.subtitle,Q.subtitle);D.expandedTitle=m9(D.expandedTitle,Q.expanded_title);D.expandedSubtitle=m9(D.expandedSubtitle,Q.expanded_subtitle);D.ypcPreview=
m9(D.ypcPreview,Q.ypc_preview);D.f4=m9(D.f4,Q.ypc_origin);D.M5=cd(D.M5,Q.ypc_is_premiere_trailer);D.KZ=m9(D.KZ,Q.ypc_clickwrap_message);D.paygated=cd(D.paygated,Q.paygated);D.v9=cd(D.v9,Q.requires_purchase);D.showShareButton=!cd(!D.showShareButton,Q.ss);D.F2=cd(D.F2,Q.showwatchlater);D.dF=cd(D.dF,Q.shownotifybutton);D.m_=cd(D.m_,Q.copy_share);if(m=Q.el)D.eventLabel=m;if(m=Q.keywords)D.keywords=mrm(m.split(","));if(m=Q.rvs)D.suggestions=Me(m).map(function(P){return P.playlist||P.list||P.api?new DY(D.nh,
P):new Q7(D.nh,P)});
D.contentCheckOk=cd(D.contentCheckOk,Q.cco);D.racyCheckOk=cd(D.racyCheckOk,Q.rco);D.isLivingRoomDeeplink=cd(D.isLivingRoomDeeplink,Q.is_living_room_deeplink);D.oauthToken=m9(D.oauthToken,Q.oauth_token);D.kJ=m9(D.kJ,Q.kpt);D.visitorData=m9(D.visitorData,Q.visitor_data);if(m=Q.session_data)D.sessionData=SE(m,"&");D.qs=m9(D.qs,Q.endscreen_ad_tracking_data);D.FD=cd(D.FD,Q.wait_for_vast_info_cards_xml);D.N9=cd(D.N9,Q.suppress_creator_endscreen);D.r6=cd(D.r6,Q.is_trueview_action);D.t9=m9(D.t9,Q.tracking_list);
PPk(D,Q)};
TM=function(D,Q){var m=Q.raw_watch_next_response;if(!m){var P=Q.watch_next_response;P&&(m=JSON.parse(P))}if(m){D.wc=m;var W=D.wc.playerCueRangeSet;W&&g.nz(D,W);var L=D.wc.playerOverlays;if(L){var u=L.playerOverlayRenderer;if(u){var t=u.autonavToggle;t&&(D.autoplaySwitchButtonRenderer=g.A(t,Wek),D.V("web_player_autonav_use_server_provided_state")&&E1(D)&&(D.autonavState=D.autoplaySwitchButtonRenderer.enabled?2:1));var z=u.videoDetails;if(z){var b=z.embeddedPlayerOverlayVideoDetailsRenderer;var q=z.playerOverlayVideoDetailsRenderer;
q&&(q.title&&(Q.title=g.qC(q.title)),q.subtitle&&(Q.subtitle=g.qC(q.subtitle)))}g.tf(D.nh)&&(D.F2=!!u.addToMenu);iEn(D,u.shareButton);u.startPosition&&u.endPosition&&(D.progressBarStartPosition=u.startPosition,D.progressBarEndPosition=u.endPosition);var C=u.gatedActionsOverlayRenderer;C&&(D.qk=g.A(C,Le$));var f,V,N,h=g.A((f=D.getWatchNextResponse())==null?void 0:(V=f.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.infoPanel,u09);if(h){D.dj=Number(h==null?void 0:h.durationMs)||
NaN;if(h==null?0:h.infoPanelOverviewViewModel)D.h8=h==null?void 0:h.infoPanelOverviewViewModel;if(h==null?0:h.infoPanelDetailsViewModel)D.CF=h==null?void 0:h.infoPanelDetailsViewModel}D.showSeekingControls=!!u.showSeekingControls}}var B,J,k=(B=D.getWatchNextResponse())==null?void 0:(J=B.contents)==null?void 0:J.twoColumnWatchNextResults;if(k){var R=k.desktopOverlay&&g.A(k.desktopOverlay,drr);R&&(R.suppressShareButton&&(D.showShareButton=!1),R.suppressWatchLaterButton&&(D.F2=!1))}b&&t5u(D,Q,b);var e=
Qx(0,Q.autoplay_count),a=D.getWatchNextResponse(),G,S=(G=a.contents)==null?void 0:G.twoColumnWatchNextResults,u6,L9,d7,b6=(u6=a.playerOverlays)==null?void 0:(L9=u6.playerOverlayRenderer)==null?void 0:(d7=L9.autoplay)==null?void 0:d7.playerOverlayAutoplayRenderer,mj=J57(D),kP,S$=(kP=a.contents)==null?void 0:kP.singleColumnWatchNextResults;if(S$){var DN;if(((DN=S$.autoplay)==null?0:DN.autoplay)&&!S$.playlist){var V4=S$.autoplay.autoplay.sets,uv={},l6=new Q7(D.G()),sq=null,KV;if(V4){for(var a4=g.T(V4),
Lg=a4.next();!Lg.done;Lg=a4.next()){var l=Lg.value.autoplayVideoRenderer;if(l&&l.compactVideoRenderer){sq=l.compactVideoRenderer;break}}if(KV=V4[0].autoplayVideo){var Oq=KV.clickTrackingParams;Oq&&(uv.itct=Oq);uv.autonav="1";uv.playnext=String(e)}}else uv.feature="related-auto";var I4=g.A(KV,g.gw);if(sq){l6.videoId=sq.videoId;var Ph=sq.shortBylineText;Ph&&(l6.author=g.qC(Ph));var EU=sq.title;EU&&(l6.title=g.qC(EU))}else I4!=null&&I4.videoId&&(l6.videoId=I4.videoId);l6.oD=uv;D.suggestions=[];D.Tv=
l6}}if(mj){for(var n=[],Qm=g.T(mj),gC=Qm.next();!gC.done;gC=Qm.next()){var L6=gC.value,e2=void 0,xP=null;if(L6.endScreenVideoRenderer){var mh=L6.endScreenVideoRenderer,Qf=mh.title;xP=new Q7(D.G());xP.videoId=mh.videoId;xP.lengthSeconds=mh.lengthInSeconds||0;var Y1=mh.publishedTimeText;Y1&&(xP.publishedTimeText=g.qC(Y1));var E=mh.shortBylineText;E&&(xP.author=g.qC(E));var F=mh.shortViewCountText;F&&(xP.shortViewCount=g.qC(F));if(Qf){xP.title=g.qC(Qf);var w=Qf.accessibility;if(w){var H=w.accessibilityData;
H&&H.label&&(xP.ariaLabel=H.label)}}var Y=mh.navigationEndpoint;if(Y){e2=Y.clickTrackingParams;var qu=g.A(Y,g.gw),x=g.A(Y,g.KX);qu?xP.uw=qu:x!=null&&(xP.watchUrl=x.url)}var c=mh.thumbnailOverlays;if(c)for(var K=g.T(c),U_=K.next();!U_.done;U_=K.next()){var YP=U_.value.thumbnailOverlayTimeStatusRenderer;if(YP)if(YP.style==="LIVE"){xP.isLivePlayback=!0;break}else if(YP.style==="UPCOMING"){xP.isUpcoming=!0;break}}xP.Z=SP(mh.thumbnail)}else if(L6.endScreenPlaylistRenderer){var s_=L6.endScreenPlaylistRenderer,
tM=s_.navigationEndpoint;if(!tM)continue;var In=g.A(tM,g.gw);if(!In)continue;var E_=In.videoId;xP=new DY(D.G());xP.playlistId=s_.playlistId;xP.playlistLength=Number(s_.videoCount)||0;xP.S=E_||null;xP.videoId=E_;var Dq=s_.title;Dq&&(xP.title=g.qC(Dq));var nV=s_.shortBylineText;nV&&(xP.author=g.qC(nV));e2=tM.clickTrackingParams;xP.Z=SP(s_.thumbnail)}xP&&(e2&&(xP.sessionData={itct:e2}),n.push(xP))}D.suggestions=n}if(b6){D.jf=!!b6.preferImmediateRedirect;D.Xw=D.Xw||!!b6.webShowNewAutonavCountdown;D.Tx=
D.Tx||!!b6.webShowBigThumbnailEndscreen;if(D.Xw||D.Tx){var j2=S||null,Bh=new Q7(D.G());Bh.videoId=b6.videoId;var Fy=b6.videoTitle;if(Fy){Bh.title=g.qC(Fy);var J4=Fy.accessibility;if(J4){var R4=J4.accessibilityData;R4&&R4.label&&(Bh.ariaLabel=R4.label)}}var g$$=b6.byline;g$$&&(Bh.author=g.qC(g$$));var u7=b6.publishedTimeText;u7&&(Bh.publishedTimeText=g.qC(u7));var BP=b6.shortViewCountText;BP&&(Bh.shortViewCount=g.qC(BP));var D$=b6.thumbnailOverlays;if(D$)for(var PK=g.T(D$),AM=PK.next();!AM.done;AM=
PK.next()){var UU=AM.value.thumbnailOverlayTimeStatusRenderer;if(UU)if(UU.style==="LIVE"){Bh.isLivePlayback=!0;break}else if(UU.style==="UPCOMING"){Bh.isUpcoming=!0;break}else if(UU.style==="DEFAULT"&&UU.text){Bh.lengthText=g.qC(UU.text);var Bb=UU.text.accessibility;if(Bb){var XF=Bb.accessibilityData;XF&&XF.label&&(Bh.I1=XF.label||"")}break}}Bh.Z=SP(b6.background);var o7=b6.nextButton;if(o7){var KI=o7.buttonRenderer;if(KI){var QK=KI.navigationEndpoint;if(QK){var m_=g.A(QK,g.gw);m_&&(Bh.uw=m_)}}}if(b6.topBadges){var uF=
b6.topBadges[0];if(uF){var TH=g.A(uF,zvP);TH&&TH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Bh.NsO=!0)}}var Km=b6.alternativeTitle;Km&&(Bh.FC=g.qC(Km));var SU={autonav:"1",playnext:String(e)};Bh.playlistId&&(SU.autoplay="1");if(j2){var jt,Q0,fI,jd,VM=(jt=j2.autoplay)==null?void 0:(Q0=jt.autoplay)==null?void 0:(fI=Q0.sets)==null?void 0:(jd=fI[0])==null?void 0:jd.autoplayVideo;if(VM){var Pc=VM.clickTrackingParams;Pc&&(SU.itct=Pc);var NX=g.A(VM,g.gw);NX&&(Bh.f3=NX)}}else if(b6){var Wc,ix,s8,Lm=(Wc=b6.nextButton)==
null?void 0:(ix=Wc.buttonRenderer)==null?void 0:(s8=ix.navigationEndpoint)==null?void 0:s8.clickTrackingParams;Lm&&(SU.itct=Lm)}SU.itct||(SU.feature="related-auto");Bh.oD=SU;D.suggestions||(D.suggestions=[]);D.Tv=Bh}b6.countDownSecs!=null&&(D.eF=b6.countDownSecs*1E3);b6.countDownSecsForFullscreen!=null&&(D.HN=b6.countDownSecsForFullscreen>=0?b6.countDownSecsForFullscreen*1E3:-1);D.V("web_autonav_color_transition")&&b6.watchToWatchTransitionRenderer&&(D.watchToWatchTransitionRenderer=g.A(b6.watchToWatchTransitionRenderer,
bEk))}var yM=J57(D);if(yM){var dP,ux,yj,Zp=yM==null?void 0:(dP=yM[0])==null?void 0:(ux=dP.endScreenVideoRenderer)==null?void 0:(yj=ux.navigationEndpoint)==null?void 0:yj.clickTrackingParams,UF=g.B1(D);Zp&&UF&&(UF.sessionData={itct:Zp})}D.wc.currentVideoThumbnail&&(D.Z=SP(D.wc.currentVideoThumbnail));var et,vc,O8,iQ,Hm,yv=(et=D.wc)==null?void 0:(vc=et.contents)==null?void 0:(O8=vc.twoColumnWatchNextResults)==null?void 0:(iQ=O8.results)==null?void 0:(Hm=iQ.results)==null?void 0:Hm.contents;if(yv&&yv[1]){var KM,
sr,Ym,ht,ZF=(KM=yv[1].videoSecondaryInfoRenderer)==null?void 0:(sr=KM.owner)==null?void 0:(Ym=sr.videoOwnerRenderer)==null?void 0:(ht=Ym.thumbnail)==null?void 0:ht.thumbnails;ZF&&ZF.length&&(D.profilePicture=ZF[ZF.length-1].url)}var eE=W5(Q),Lo,FQ=(Lo=D.getWatchNextResponse())==null?void 0:Lo.onResponseReceivedEndpoints;if(FQ)for(var uQ=g.T(FQ),jf=uQ.next();!jf.done;jf=uQ.next()){var T9=jf.value;g.A(T9,ww)&&(D.iX=g.A(T9,ww));var si=g.A(T9,qR7),Dj=void 0;if((Dj=si)==null?0:Dj.entityKeys)D.md=si.entityKeys||
[],si.visibleOnLoadKeys&&(D.visibleOnLoadKeys=si.visibleOnLoadKeys)}if(D.V("web_key_moments_markers")){var Vw=g.kA.getState().entities,t9=g.cg("visibility_override","markersVisibilityOverrideEntity");var v0=Qu(Vw,"markersVisibilityOverrideEntity",t9);D.l0=(v0==null?void 0:v0.videoId)===(D.videoId||eE)&&(v0==null?0:v0.visibilityOverrideMarkersKey)?v0.visibilityOverrideMarkersKey:D.visibleOnLoadKeys;D.visibleOnLoadKeys=[].concat(g.on(D.l0))}}};
E1=function(D){var Q;return((Q=D.autoplaySwitchButtonRenderer)==null?void 0:Q.enabled)!==void 0};
Jc=function(D){return!!(D.T&&D.T.videoInfos&&D.T.videoInfos.length)};
g.Kz=function(D){var Q=D.U;D.V("html5_gapless_unlimit_format_selection")&&lH(D)&&(Q=!1);var m=!!D.S&&D.S.VX,P=D.nh,W=D.F3(),L=Ib(D),u=D.Y9,t=Q,z=D.isOtf();Q=D.AI();var b=D.oy,q=D.getUserAudio51Preference(),C=Rb(D),f=U1(D),V=new ljw(P);if(P.xl()||P.V("html5_logging_format_selection"))V.C=!0;V.k9=L;V.Y9=u&&P.Z;V.t0=q;g.j8("windows nt 5.1")&&!g.fD&&(V.S9=!0);if(L=W)L=g.Jf(P)?e8_(P):!1;L&&(V.TO=!0);t&&(V.S9=!0,V.Ze=!0);z&&!P.V("html5_otf_prefer_vp9")&&(V.S9=!0);P.playerStyle==="picasaweb"&&(z&&(V.S9=
!1),V.Iy=!1);b&&(V.S9=!0);Sc(P.J,r_.CHANNELS)&&(P.V("html5_enable_ac3")&&(V.B=!0),P.V("html5_enable_eac3")&&(V.J=!0),P.V("html5_enable_ac3_gapless")&&(V.wc=!0));P.V("html5_block_8k_hfr")&&(V.l0=!0);V.N=g.WF(P.experiments,"html5_max_selectable_quality_ordinal");V.U=g.WF(P.experiments,"html5_min_selectable_quality_ordinal");QS&&(V.dn=480);if(m||W)V.Iy=!1;V.XT=!1;V.disableAv1=C;m=LD(P,V.S,void 0,V.disableAv1);m>0&&m<2160&&(Zj()||P.V("html5_format_hybridization"))&&(V.S.supportsChangeType=+Zj(),V.vc=
m);m>=2160&&(V.QF=!0);SgP()&&!P.V("disable_av1_setting")&&(V.S.serveVp9OverAv1IfHigherRes=0,V.Xw=!1);V.AI=Q;V.x9=g.Ak||GX()&&!Q?!1:!0;V.Z=P.V("html5_format_hybridization");V.hU=P.V("html5_disable_encrypted_vp9_live_non_2k_4k");V.Kj=f;H1(D)&&(V.kJ=D.V("html5_prefer_language_over_codec"));vd()&&D.playerResponse&&D.playerResponse.playerConfig&&D.playerResponse.playerConfig.webPlayerConfig&&D.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(V.B=!0,V.J=!0);D.U&&D.isAd()&&(D.ZK&&
(V.j=D.ZK),D.iR&&(V.T=D.iR));V.u0=D.isLivePlayback&&D.qJ()&&D.nh.V("html5_drm_live_audio_51");V.gB=D.Fo;V.cY=!H1(D);return D.gi=V};
Rb=function(D){return D.nh.V("html5_disable_av1")||D.V("html5_gapless_shorts_disable_av1")&&lH(D)?!0:!1};
CP_=function(D){kY("drm_pb_s",void 0,D.TO);D.k9||D.S&&aP(D.S);var Q={};D.S&&(Q=d07(D.JH,g.Kz(D),D.nh.J,D.S,function(m){return D.publish("ctmp","fmtflt",m)},!0,new Set));
Q=new yr(Q,D.nh,D.xn,D.useCobaltWidevine?vd()?jj(D):!1:!1,function(m,P){D.dc(m,P)});
g.O(D,Q);D.Cm=!1;D.loading=!0;H27(Q,function(m){kY("drm_pb_f",void 0,D.TO);for(var P=g.T(m),W=P.next();!W.done;W=P.next())switch(W=W.value,W.flavor){case "fairplay":W.k9=D.k9;W.UI=D.UI;W.xb=D.xb;break;case "widevine":W.gF=D.gF}D.Br=m;if(D.Br.length>0&&(D.J=D.Br[0],D.nh.xl())){m={};P=g.T(Object.entries(D.J.S));for(W=P.next();!W.done;W=P.next()){var L=g.T(W.value);W=L.next().value;L=L.next().value;var u="unk";(W=W.match(/(.*)codecs="(.*)"/))&&(u=W[2]);m[u]=L}D.dc("drmProbe",m)}D.Fq()})};
oo6=function(D,Q){if(Q.length===0||$A(D))return null;D.nh.J.T&&(WA=!0);var m=D.Ln;var P=D.lengthSeconds,W=D.isLivePlayback,L=D.Ws,u=D.nh,t=fjw(Q);if(W||L){u=u.experiments;P=new YF("",u,!0);P.C=!L;P.VX=!0;P.isManifestless=!0;P.isLive=!L;P.Ws=L;Q=g.T(Q);for(W=Q.next();!W.done;W=Q.next()){var z=W.value;W=pf(z,m);t=PW(z);t=X_(t.UL||z.url||"",t.hw,t.s);var b=t.get("id");b&&b.includes("%7E")&&(P.TO=!0);var q=void 0;b=(q=u)==null?void 0:q.Mv("html5_max_known_end_time_rebase");q=Number(z.targetDurationSec||
5);z=Number(z.maxDvrDurationSec||14400);var C=Number(t.get("mindsq")||t.get("min_sq")||"0"),f=Number(t.get("maxdsq")||t.get("max_sq")||"0")||Infinity;P.vO=P.vO||C;P.v1=P.v1||f;var V=!WE(W.mimeType);t&&es(P,new h7(t,W,{EY:q,bU:V,bO:z,vO:C,v1:f,cg:300,Ws:L,mV:b}))}m=P}else if(t==="FORMAT_STREAM_TYPE_OTF"){P=P===void 0?0:P;L=new YF("",u.experiments,!1);L.duration=P||0;u=g.T(Q);for(P=u.next();!P.done;P=u.next())P=P.value,Q=pf(P,m,L.duration),W=PW(P),(W=X_(W.UL||P.url||"",W.hw,W.s))&&(Q.streamType==="FORMAT_STREAM_TYPE_OTF"?
es(L,new nf(W,Q,"sq/0")):es(L,new Kf(W,Q,Wl(P.initRange),Wl(P.indexRange))));L.isOtf=!0;m=L}else{P=P===void 0?0:P;L=new YF("",u.experiments,!1);L.duration=P||0;u=g.T(Q);for(P=u.next();!P.done;P=u.next())t=P.value,P=pf(t,m,L.duration),Q=Wl(t.initRange),W=Wl(t.indexRange),b=PW(t),(t=X_(b.UL||t.url||"",b.hw,b.s))&&es(L,new Kf(t,P,Q,W));m=L}L=D.isLivePlayback&&!D.Ws&&!D.Kh&&!D.isPremiere;D.V("html5_live_head_playable")&&(!ej(D)&&L&&D.dc("missingLiveHeadPlayable",{}),D.nh.TO==="yt"&&(m.k9=!0));return m};
$A=function(D){return vd()?!jj(D):Yy()?!(!D.k9||!D.V("html5_enable_safari_fairplay")&&gJ()):!1};
jj=function(D){return D.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.nz=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())if(m=m.value,m.cueRangeSetIdentifier){var P=void 0;D.h2.set(m.cueRangeSetIdentifier,(P=m.playerCueRanges)!=null?P:[])}};
v1=function(D){return!(!D.S||!D.S.isManifestless)};
O1=function(D){return D.PY?D.isLowLatencyLiveStream&&D.S!=null&&MA(D.S)>=5:D.isLowLatencyLiveStream&&D.S!=void 0&&MA(D.S)>=5};
fe7=function(D){return vd()&&jj(D)?!1:$A(D)&&(g.f8(D.nh)?!D.isLivePlayback:D.hlsvp)||!gJ()||D.E0?!0:!1};
Ns7=function(D){D.loading=!0;D.Zw=!1;if(V5w(D))g.vrj(D.videoId).then(function(P){var W;if((W=D.playerResponse)!=null&&W.streamingData){W=[];P=g.T(P);for(var L=P.next();!L.done;L=P.next())L=Object.assign({},L.value),L.signatureCipher="",W.push(L);W.length<2&&D.dc("offmlf",{len:W.length});W=oo6(D,W);Ib(D)&&wEr(W,!1);YA(D,W);D.dc("dlr",{})}else D.dc("offsdm",{cotn:D.gq?D.gq.cotn:"0",cpn:D.clientPlaybackNonce})}).then(function(){D.Fq()});
else{aA(D.pj)||g.l4(new g.OI("DASH MPD Origin invalid: ",D.pj));var Q=D.pj,m=g.WF(D.nh.experiments,"dash_manifest_version")||4;Q=g.oz(Q,{mpd_version:m});D.isLowLatencyLiveStream&&D.latencyClass!=="NORMAL"||(Q=g.oz(Q,{pacing:0}));nS7(Q,D.nh.experiments,D.isLivePlayback).then(function(P){D.VF()||(YA(D,P,!0),kY("mrc",void 0,D.TO),D.Fq())},function(P){D.VF()||(D.loading=!1,D.publish("dataloaderror",new g.VJ("manifest.net.retryexhausted",{backend:"manifest",
rc:P.status},1)))});
kY("mrs",void 0,D.TO)}};
ywj=function(D){var Q;return!((Q=D.nh.getWebPlayerContextConfig())==null||!Q.enableProximaLowLatency)};
ab=function(D){if(!D.isProximaLatencyEligible)return 0;var Q=Tn();return ywj(D)?2:Q===1?1:D.V("html5_enable_proxima")?2:0};
YA=function(D,Q,m){m=m===void 0?!1:m;D.I2=void 0;D.S=Q;g.O(D,Q);Q.vO=D.vO;Q.v1=D.v1;Q.QF=D.QF;Q.Kj=D.Kj;Q.Lj=D.Lj;D.pU&&(Q.j=new XV(D.pU));(D.F3()||g.Ac(D))&&D.j.push("webgl");D.S.isLive||(D.isLivePlayback=!1);var P=Q.sourceUrl.split("/");if(D.PY?P.indexOf("manifest_duration")!==-1:P.indexOf("manifest_duration")!=-1)D.z7=Number(P[P.indexOf("manifest_duration")+1]);if(Q.C||Q.isManifestless)Q.subscribe("clienttemp",D.dc,D),m?Q.subscribe("refresh",D.QI,D):Q.subscribe("cuepointsadded",D.bd,D);aP(Q)?D.Cm=
!0:F$=void 0;D.Kh&&(Q.B=D.Kh,Q.isLive=!0,D.isLivePlayback=!0);Q.isPremiere=D.isPremiere;Q.isLiveHeadPlayable=D.isLiveHeadPlayable};
ZEk=function(D,Q){var m=Q||fe7(D)||D.isExternallyHostedPodcast;if(!D.S||m)return D.dc("skipDash",{dm:!!D.S,air:Q,dd:D.E0,mss:gJ(),"3pp":D.isExternallyHostedPodcast}),gj();Ib(D)&&wEr(D.S,D.isLivePlayback);return Bd().then(function(){return ze6(D.JH,g.Kz(D),D.nh.J,D.S,D.J,function(P){return D.publish("ctmp","fmtflt",P)},D.tM,H1(D)&&D.V("html5_enable_server_format_filter")).then(function(P){D.b1(P);
D.JH.S=null;/^av/.test(D.clientPlaybackNonce)&&D.gi&&D.dc("av1",D.gi.S)})})};
Ts9=function(D,Q){if(Q&&D.hlsvp)return gj();if(D.hlsFormats){Q=pz(D.hlsFormats);var m;if(((m=D.gi)==null?0:m.C)&&Q){m=[];for(var P=g.T(Q),W=P.next();!W.done;W=P.next())m.push(W.value.itag);D.dc("hlsfmt",{itags:m.join(".")})}D.jP=QZw(D.nh,Q);D.jP&&Fe6(D,D.jP);m=D.clientPlaybackNonce;var L,u,t,z;return sZ6(D.nh,D.isAd(),Q,(z=(L=D.playerResponse)==null?void 0:(u=L.captions)==null?void 0:(t=u.playerCaptionsRenderer)==null?void 0:t.baseUrl)!=null?z:null,D.dn,m,function(b){return D.publish("ctmp","hlsflt",
b)}).then(function(b){for(var q=0,C=[],f=g.T(b),V=f.next();!V.done;V=f.next()){V=V.value;
var N=void 0;C.push((N=V.getInfo())==null?void 0:N.itag);var h=N=void 0;((N=V.getInfo())==null?void 0:(h=N.audio)==null?void 0:h.numChannels)>q&&(q=V.getInfo().audio.numChannels)}q>2&&D.dc("hlschl",{mn:q});var B;((B=D.gi)==null?0:B.C)&&D.dc("hlsfmtaf",{itags:C.join(".")});var J;if(D.V("html5_enable_vp9_fairplay")&&((J=D.J)==null?0:CD(J)))for(D.dc("drm",{sbdlfbk:1}),q=g.T(D.Br),C=q.next();!C.done;C=q.next())if(C=C.value,qB(C)){D.J=C;break}xA(D,b)})}return gj()};
hv7=function(D){if(D.isExternallyHostedPodcast&&D.ZD){var Q=pz(D.ZD);if(!Q[0])return gj();D.rYc=Q[0];return dq9(D.nh,Q[0]).then(function(m){xA(D,m)})}return D.Ig&&D.AC?uP7(D.nh,D.isAd(),D.Ig).then(function(m){xA(D,m)}):gj()};
Eou=function(D){if(D.isExternallyHostedPodcast)return gj();var Q=pz(D.ZD,D.Cu);if(D.hlsvp){var m=GK9(D.hlsvp,D.clientPlaybackNonce,D.dn);Q.push(m)}return L36(D.nh,D.isAd(),Q,no7(D)).then(function(P){xA(D,P)})};
xA=function(D,Q){D.Ze=Q;D.b1(new $f(g.fk(D.Ze,function(m){return m.getInfo()})))};
no7=function(D){var Q={cpn:D.clientPlaybackNonce,c:D.nh.S.c,cver:D.nh.S.cver};D.cE&&(Q.ptk=D.cE,Q.oid=D.Op,Q.ptchn=D.n9,Q.pltype=D.uV,D.wQ&&(Q.m=D.wQ));return Q};
g.Xi=function(D){return $A(D)&&D.k9?(D={},D.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",D):D.C&&D.C.Ln||null};
gow=function(D){var Q=Sj(D);return Q&&Q.text?g.qC(Q.text):D.paidContentOverlayText};
Bs9=function(D){var Q=Sj(D);return Q&&Q.durationMs?IG(Q.durationMs):D.paidContentOverlayDurationMs};
Sj=function(D){var Q,m,P;return D.playerResponse&&D.playerResponse.paidContentOverlay&&D.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.A((Q=D.wc)==null?void 0:(m=Q.playerOverlays)==null?void 0:(P=m.playerOverlayRenderer)==null?void 0:P.playerDisclosure,wL$)||null};
rw=function(D){var Q="";if(D.IQ)return D.IQ;D.isLivePlayback&&(Q=D.allowLiveDvr?"dvr":D.isPremiere?"lp":D.Kh?"window":"live");D.Ws&&(Q="post");return Q};
g.GM=function(D,Q){return typeof D.keywords[Q]!=="string"?null:D.keywords[Q]};
kBw=function(D){return!!D.FH||!!D.Ub||!!D.lk||!!D.Zd||D.jC};
g.M4=function(D){return!!(D.pj||D.ZD||D.Ig||D.hlsvp||D.rC())};
Fi=function(D){if(D.V("html5_onesie")&&D.errorCode)return!1;var Q=g.FK(D.j,"ypc");D.ypcPreview&&(Q=!1);return D.EC()&&!D.loading&&(g.M4(D)||g.FK(D.j,"heartbeat")||Q)};
pz=function(D,Q){D=Me(D);var m={};if(Q){Q=g.T(Q.split(","));for(var P=Q.next();!P.done;P=Q.next())(P=P.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(m[P[1]]={width:P[2],height:P[3]})}Q=g.T(D);for(P=Q.next();!P.done;P=Q.next()){P=P.value;var W=m[P.itag];W&&(P.width=W.width,P.height=W.height)}return D};
iEn=function(D,Q){D.showShareButton=!!Q;var m,P,W=((m=g.A(Q,g.CE))==null?void 0:m.navigationEndpoint)||((P=g.A(Q,g.CE))==null?void 0:P.command);W&&(D.m_=!!g.A(W,Jwu))};
MDm=function(D,Q){var m=Q.raw_embedded_player_response;if(!m){var P=Q.embedded_player_response;P&&(m=JSON.parse(P))}m&&(D.W1=m);if(D.W1){D.embeddedPlayerConfig=D.W1.embeddedPlayerConfig||null;if(m=D.W1.videoFlags)m.playableInEmbed&&(D.allowEmbed=!0),m.isPrivate&&(D.isPrivate=!0),m.userDisplayName&&(Q.user_display_name=m.userDisplayName),m.userDisplayImage&&(Q.user_display_image=m.userDisplayImage);if(m=D.W1.embedPreview){m=m.thumbnailPreviewRenderer;kK6(D,m.controlBgHtml);if(P=m.defaultThumbnail)D.Z=
SP(P);D.V("embeds_web_enable_search_button")&&m.searchButton&&(P=g.A(m.searchButton,g.CE))&&(D.wB0=g.A(P.navigationEndpoint,g.c1));(P=g.A(m==null?void 0:m.videoDetails,lej))&&t5u(D,Q,P);P=g.A(m==null?void 0:m.videoDetails,Ie_);D.F2=!!m.addToWatchLaterButton;iEn(D,m.shareButton);if(P==null?0:P.musicVideoType)D.musicVideoType=P.musicVideoType;var W,L,u,t,z;if(P=g.A((W=D.getEmbeddedPlayerResponse())==null?void 0:(L=W.embedPreview)==null?void 0:(u=L.thumbnailPreviewRenderer)==null?void 0:(t=u.playButton)==
null?void 0:(z=t.buttonRenderer)==null?void 0:z.navigationEndpoint,g.gw))CjP(D,P),D.videoId=P.videoId||D.videoId;m.videoDurationSeconds&&(D.lengthSeconds=IG(m.videoDurationSeconds));m.webPlayerActionsPorting&&wQ7(D,m.webPlayerActionsPorting);if(W=g.A(m==null?void 0:m.playlist,Rvh)){D.Co=!0;L=[];u=Number(W.currentIndex);if(W.contents)for(t=0,z=W.contents.length;t<z;t++)if(m=W.contents[t].playlistPanelVideoRenderer){P=m.shortBylineText?g.qC(m.shortBylineText):"";var b=m.title?g.qC(m.title):"";L.push({author:P,
encrypted_id:m.videoId,title:b,channel_path:t===u?Q.channel_path:"",profile_picture:t===u?Q.profile_picture:"",is_private:t===u?D.isPrivate:!0,is_dni:t===u?D.RI:!1,dni_color:t===u?D.Wy:""})}Q={index:W.currentIndex,list:W.playlistId,playlist_length:W.totalVideos,video:L};W.titleText&&(Q.title=g.qC(W.titleText));W.shortBylineText&&(Q.author=g.qC(W.shortBylineText));D.eN=Q}var q,C,f;if(Q=g.A((q=D.getEmbeddedPlayerResponse())==null?void 0:(C=q.embedPreview)==null?void 0:(f=C.thumbnailPreviewRenderer)==
null?void 0:f.infoPanel,u09)){D.dj=Number(Q==null?void 0:Q.durationMs)||NaN;if(Q==null?0:Q.infoPanelOverviewViewModel)D.h8=Q==null?void 0:Q.infoPanelOverviewViewModel;if(Q==null?0:Q.infoPanelDetailsViewModel)D.CF=Q==null?void 0:Q.infoPanelDetailsViewModel}}if(D.W1.previewPlayabilityStatus){if(D.WE=D.W1.previewPlayabilityStatus,q=D.WE,!["OK","LIVE_STREAM_OFFLINE"].includes(q.status)){D.errorCode=zin(q.errorCode);C=q.errorScreen;if(f=C==null?void 0:C.playerErrorMessageRenderer){D.jp=f;if(Q=f.reason)D.errorReason=
g.qC(Q);if(f=f.subreason)D.vr=g.qC(f)}else D.errorReason=q.reason||null;switch(q.status){case "LOGIN_REQUIRED":D.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":D.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var V;(C==null?0:(V=C.playerKavRenderer)==null?0:V.kavUrl)?D.errorDetail="4":D.errorDetail="3";break;default:D.errorDetail=q.isBlockedInRestrictedMode?"5":"0"}}}else D.W1.playabilityStatus&&(D.jH=D.W1.playabilityStatus,Ur_(D)&&(D.errorDetail="0",D.jH&&((V=D.jH.embeddedPlayerErrorMessageRenderer)?
D.jp=g.A(V,HEm):D.errorReason=D.jH.reason||null)));(V=D.W1.attestation)&&hi7(D,V);(V=D.W1.permissions)&&V.allowImaMonetization&&(D.allowImaMonetization=!0)}};
t5u=function(D,Q,m){var P=m.channelThumbnail;P&&(P=P.thumbnails)&&(P=P[0])&&(Q.profile_picture=P.url);var W;if(P=g.A((W=g.A(m==null?void 0:m.channelThumbnailEndpoint,Ken))==null?void 0:W.urlEndpoint,g.KX))Q.channel_path=P.url;if(W=m.collapsedRenderer)if(W=g.A(W,juj)){if(P=W.title)Q.title=g.qC(P);if(W=W.subtitle)Q.subtitle=g.qC(W)}if(m=m.expandedRenderer)if(m=g.A(m,$rr)){if(W=m.title)Q.expanded_title=g.qC(W);if(W=m.subtitle)Q.expanded_subtitle=g.qC(W);if(m=m.subscribeButton)D.subscribeButtonRenderer=
g.A(m,g.Dn),D.subscribeButtonRenderer&&(Q.ucid=D.subscribeButtonRenderer.channelId,Q.subscribed=D.subscribeButtonRenderer.subscribed,D.dF=!!D.subscribeButtonRenderer.notificationPreferenceToggleButton,D.subscribeButtonRenderer.notificationPreferenceToggleButton&&D.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(Q=D.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,Q.isToggled?(D.O0=Q.toggledServiceEndpoint||null,D.Qx=Q.defaultServiceEndpoint||
null):(D.O0=Q.defaultServiceEndpoint||null,D.Qx=Q.toggledServiceEndpoint||null)))}};
g.Qw=function(D){return ej(D)&&!D.allowLiveDvr};
m5=function(D){return ej(D)&&D.allowLiveDvr};
ej=function(D){return D.V("html5_live_head_playable")&&v1(D)&&D.nh.TO==="yt"?D.isLiveHeadPlayable:D.isLivePlayback};
Fe6=function(D,Q){Q.sort(function(m,P){return m.toString().localeCompare(P.toString(),D.nh.hostLanguage)})};
g.PU=function(D){return!!D.S&&LLP(D.S)};
g.WU=function(D){return!!D.S&&ub4(D.S)};
g.iN=function(D){return!!D.S&&dG9(D.S)};
g.Ac=function(D){return!!D.S&&tmr(D.S)};
g.ev9=function(D){if(D.N9)return null;var Q=D.Wt;Q||(Q=D.playerResponse&&D.playerResponse.endscreen&&D.playerResponse.endscreen.endscreenUrlRenderer&&D.playerResponse.endscreen.endscreenUrlRenderer.url);return Q||null};
g.vom=function(D){return D.N9?null:D.playerResponse&&D.playerResponse.endscreen&&D.playerResponse.endscreen.endscreenRenderer||null};
g.s6=function(D){return D.V("enable_wn_infocards")};
g.Ly=function(D){var Q,m,P,W;return(g.s6(D)?(Q=D.wc)==null?void 0:(m=Q.cards)==null?void 0:m.cardCollectionRenderer:(P=D.playerResponse)==null?void 0:(W=P.cards)==null?void 0:W.cardCollectionRenderer)||null};
g.uN=function(D){if(!D.playerResponse||!D.playerResponse.annotations)return null;D=g.T(D.playerResponse.annotations);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.playerAnnotationsExpandedRenderer&&Q.playerAnnotationsExpandedRenderer.featuredChannel)return Q.playerAnnotationsExpandedRenderer;return null};
dr=function(D){return D.adFormat&&(D.PY?D.adFormat!=="1_5":D.adFormat!="1_5")?"adunit":D.eventLabel||D.nh.t0};
g.t2=function(D){return dr(D)==="shortspage"};
lH=function(D){return D.LU()&&D.G().supportsGaplessShorts()};
zv=function(D){if(D.isAd()&&(D.PY?D.videoId!==D.nh.gB:D.videoId!=D.nh.gB))return D.nh.gB};
bN=function(D){return D.BB||dr(D)==="detailpage"||dr(D)==="shortspage"||D.mutedAutoplay};
OE7=function(D){var Q=dr(D)==="adunit"?D.cj:bN(D)?dr(D)==="detailpage"||dr(D)==="shortspage"?D.isAutonav||D.cY>0:D.aF?!1:D.nh.VA||D.nh.tY||!g.W8(D.nh)?!0:!1:(D.aF?0:D.VA)&&g.W8(D.nh)?!0:!1;D.V("html5_log_detailpage_autoplay")&&dr(D)==="detailpage"&&D.dc("autoplay_info",{autoplay:D.BB,autonav:D.isAutonav,wasDompaused:D.aF,result:Q});return Q};
g.qO=function(D){return D.oauthToken||D.nh.uS};
aew=function(D){if(D.V("html5_stateful_audio_normalization")){var Q=1,m=g.WF(D.nh.experiments,"html5_default_ad_gain");m&&D.isAd()&&(Q=m);var P,W;m=(W=(P=D.B)==null?void 0:P.audio.B)!=null?W:D.XK;if(m==null||isNaN(m))D=YR_(D);else{P=(0,g.T3)();D.Tq=2;W=P-D.nh.jP<=D.maxStatefulTimeThresholdSec*1E3;D.applyStatefulNormalization&&W?D.Tq=4:W||(D.nh.yL=Infinity,D.nh.jP=NaN);W=(D.Tq===4?g.eZ(D.nh.yL,D.minimumLoudnessTargetLkfs,D.loudnessTargetLkfs):D.loudnessTargetLkfs)-m;if(D.Tq!==4){var L,u,t,z,b=((L=
D.playerResponse)==null?void 0:(u=L.playerConfig)==null?void 0:(t=u.audioConfig)==null?void 0:(z=t.loudnessNormalizationConfig)==null?void 0:z.statelessLoudnessAdjustmentGain)||0;W+=b}W=Math.min(W,0);D.preserveStatefulLoudnessTarget&&(D.nh.yL=m+W,D.nh.jP=P);D=Math.min(1,Math.pow(10,W/20))||Q}}else D=YR_(D);return D};
YR_=function(D){var Q=1,m=g.WF(D.nh.experiments,"html5_default_ad_gain");m&&D.isAd()&&(Q=m);if(D.Dq){var P,W;m=((P=D.B)==null?void 0:P.audio.T)!=null?(W=D.B)==null?void 0:W.audio.T:D.WO}else{var L;m=((L=D.B)==null?void 0:L.audio.T)||D.WO}isNaN(m)||(D.Tq=1);return Math.min(1,Math.pow(10,-m/20))||Q};
Ib=function(D){var Q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],m=TZ(D.nh)==="TVHTML5_SIMPLY"&&D.nh.S.ctheme==="MUSIC";!D.PO&&(g.jY(D.nh)||g.B8(D.nh)||m)&&(Q.includes(D.musicVideoType)||D.isExternallyHostedPodcast)&&(D.PO=!0);if(Q=g.e8())Q=/Starboard\/([0-9]+)/.exec(g.Kg()),Q=(Q?parseInt(Q[1],10):NaN)<10;m=D.nh;m=(TZ(m)==="TVHTML5_CAST"||TZ(m)==="TVHTML5"&&(m.S.cver.startsWith("6.20130725")||m.S.cver.startsWith("6.20130726")))&&D.nh.S.ctheme==="MUSIC";var P;if(P=!D.PO)m||(m=
D.nh,m=TZ(m)==="TVHTML5"&&m.S.cver.startsWith("7")),P=m;P&&!Q&&(Q=D.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",m=(D.V("cast_prefer_audio_only_for_atv_and_uploads")||D.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&D.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Q||m||D.isExternallyHostedPodcast)&&(D.PO=!0);return D.nh.deviceIsAudioOnly||D.PO&&D.nh.Z};
U1=function(D){var Q,m,P;return((Q=D.playerResponse)==null?void 0:(m=Q.playerConfig)==null?void 0:(P=m.compositeVideoConfig)==null?void 0:P.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
Aw$=function(D){var Q,m,P,W=(Q=D.playerResponse)==null?void 0:(m=Q.playerConfig)==null?void 0:(P=m.compositeVideoConfig)==null?void 0:P.sourceConfigs,L,u,t;D=(L=D.playerResponse)==null?void 0:(u=L.playerConfig)==null?void 0:(t=u.compositeVideoConfig)==null?void 0:t.defaultActiveSourceVideoId;if(!W||!D)return"";W=g.T(W);for(L=W.next();!L.done;L=W.next())if(L=L.value,L.videoId===D&&L.audioTracks)for(L=g.T(L.audioTracks),u=L.next();!u.done;u=L.next())if(u=u.value,u.isDefaultForSource)return u.id||"";
return""};
g.pLm=function(D){return D.VX()&&H1(D)};
Cy=function(D){var Q,m,P;return!!((Q=D.playerResponse)==null?0:(m=Q.playerConfig)==null?0:(P=m.mediaCommonConfig)==null?0:P.splitScreenEligible)};
ov=function(D){var Q;return!((Q=D.playerResponse)==null||!Q.compositePlayabilityStatus)};
xr9=function(D){return isNaN(D)?0:Math.max((Date.now()-D)/1E3-30,0)};
XLj=function(D){return D.Kd&&!D.Bm};
fy=function(D){return!(!D.vE||!D.nh.Z)&&D.rC()};
NO=function(D){return D.Vg&&D.enableServerStitchedDai};
SR9=function(D){return D.YF&&!D.pU};
H1=function(D){var Q=D.V("html5_enable_sabr_on_drive")&&D.nh.TO==="gd";if(D.El)return D.YF&&D.dc("fds",{fds:!0},!0),!1;if(D.nh.TO!=="yt"&&!Q)return D.YF&&D.dc("dsvn",{ns:D.nh.TO},!0),!1;if(D.cotn||!D.S||D.S.isOtf&&!D.V("html5_enable_sabr_otf_in_client")||D.T&&!D.T.S||D.l1&&!D.V("html5_enable_sabr_csdai"))return!1;if(D.V("html5_use_sabr_requests_for_debugging"))return!0;D.YF&&D.dc("esfw",{usbc:D.YF,hsu:!!D.pU},!0);if(D.YF&&D.pU)return!0;if(D.V("html5_remove_client_sabr_determination"))return!1;var m=
!D.S.VX&&!D.qJ();Q=m&&hY&&D.V("html5_enable_sabr_vod_streaming_xhr");m=m&&!hY&&D.V("html5_enable_sabr_vod_non_streaming_xhr");var P=yw(D),W=D.V("html5_enable_sabr_drm_vod_streaming_xhr")&&hY&&D.qJ()&&!D.S.VX&&(D.drmProduct==="1"?!1:!0);(Q=Q||m||P||W)&&!D.pU&&D.dc("sabr",{loc:"m"},!0);return Q&&!!D.pU};
yw=function(D){var Q;if(!(Q=hY&&D.VX()&&D.qJ()&&(D.drmProduct==="1"?!1:!0)&&D.V("html5_sabr_live_drm_streaming_xhr"))){Q=D.VX()&&!D.qJ()&&hY;var m=D.VX()&&D.latencyClass!=="ULTRALOW"&&!D.isLowLatencyLiveStream&&D.V("html5_sabr_live_normal_latency_streaming_xhr"),P=D.isLowLatencyLiveStream&&D.V("html5_sabr_live_low_latency_streaming_xhr"),W=D.latencyClass==="ULTRALOW"&&D.V("html5_sabr_live_ultra_low_latency_streaming_xhr");Q=Q&&(m||P||W)}m=Q;Q=D.enableServerStitchedDai&&m&&D.V("html5_enable_sabr_ssdai_streaming_xhr");
m=!D.enableServerStitchedDai&&m;P=D.VX()&&!hY&&D.V("html5_enable_sabr_live_non_streaming_xhr");D=hY&&(D.xB()||Cy(D)&&D.V("html5_enable_sabr_for_lifa_eligible_streams"));return Q||m||P||D};
V5w=function(D){var Q;if(Q=!!D.cotn)Q=D.videoId,Q=!!Q&&g.s1(Q)===1;return Q&&!D.vE};
g.Zn=function(D){if(!D.S||!D.C||!D.B)return!1;var Q=D.S.S,m=!!Q[D.C.id]&&D2(Q[D.C.id].NB.S);Q=!!Q[D.B.id]&&D2(Q[D.B.id].NB.S);return(D.C.itag==="0"||m)&&Q};
Fh=function(D){return D.WE?["OK","LIVE_STREAM_OFFLINE"].includes(D.WE.status):!0};
Ur_=function(D){return(D=D.jH)&&D.showError?D.showError:!1};
Tv=function(D,Q){return D.V(Q)?!0:(D.fflags||"").includes(Q+"=true")};
PPk=function(D,Q){Q.inlineMetricEnabled&&(D.inlineMetricEnabled=!0);Q.playback_progress_0s_url&&(D.Zd=new IKP(Q));if(Q=Q.video_masthead_ad_quartile_urls)D.Ub=Q.quartile_0_url,D.Tf=Q.quartile_25_url,D.dL=Q.quartile_50_url,D.B9=Q.quartile_75_url,D.C3=Q.quartile_100_url,D.lk=Q.quartile_0_urls,D.G4=Q.quartile_25_urls,D.sb=Q.quartile_50_urls,D.IU=Q.quartile_75_urls,D.YG=Q.quartile_100_urls};
mrm=function(D){var Q={};D=g.T(D);for(var m=D.next();!m.done;m=D.next()){m=m.value;var P=m.split("=");P.length===2?Q[P[0]]=P[1]:Q[m]=!0}return Q};
Drh=function(D){if(D){if(Non(D))return D;D=yGn(D);if(Non(D,!0))return D}return""};
g.rwn=function(D){return D.captionsLanguagePreference||D.nh.captionsLanguagePreference||g.GM(D,"yt:cc_default_lang")||D.nh.g2};
h2=function(D){return!(!D.isLivePlayback||!D.hasProgressBarBoundaries())};
g.B1=function(D){var Q;return D.Tv||((Q=D.suggestions)==null?void 0:Q[0])||null};
g.ny=function(D){var Q,m;return!!((Q=D.embeddedPlayerConfig)==null?0:(m=Q.embeddedPlayerFlags)==null?0:m.enableMusicUx)};
GB7=function(D){return D.U||D.V("web_player_media_session_infinity")&&D.isLivePlayback};
E6=function(D){return D.nh.B&&D.isPrivate};
g.BU=function(D){var Q=D.G(),m=g.gr(Q),P=Q.pj;(Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals"))&&g.tf(Q)&&(P&&(m.thirdParty=Object.assign({},m.thirdParty,{embedUrl:P})),D07(m,D));if(P=D.u0)m.clickTracking={clickTrackingParams:P};else if(g.tf(D.G())&&g.YK("EVENT_ID"))m.clickTracking={clickTrackingParams:g.YK("EVENT_ID")};else if(Q.V("html5_log_missing_itct")){var W;P=new g.OI("Missing ITCT in InnerTubeContext",
{isAd:D.isAd(),RDF:(W=Q.getWebPlayerContextConfig())==null?void 0:W.contextId});g.JG(P)}W=m.client||{};P="EMBED";var L=dr(D);L==="leanback"?P="WATCH":Q.V("gvi_channel_client_screen")&&L==="profilepage"?P="CHANNEL":D.oy?P="LIVE_MONITOR":L==="detailpage"?P="WATCH_FULL_SCREEN":L==="adunit"?P="ADUNIT":L==="sponsorshipsoffer"&&(P="UNKNOWN");W.clientScreen=P;if(Q=D.kidsAppInfo)W.kidsAppInfo=JSON.parse(Q);(P=D.Ku)&&!Q&&(W.kidsAppInfo={contentSettings:{ageUpMode:M5u[P]}});if(Q=D.Yx)W.unpluggedAppInfo={enableFilterMode:!0};
(P=D.unpluggedFilterModeType)&&!Q&&(W.unpluggedAppInfo={filterModeType:cwh[P]});if(Q=D.g2)W.unpluggedLocationInfo=Q;m.client=W;W=m.request||{};D.H1&&(W.isPrefetch=!0);if(Q=D.mdxEnvironment)W.mdxEnvironment=Q;if(Q=D.mdxControlMode)W.mdxControlMode=D9_[Q];m.request=W;W=m.user||{};if(Q=D.t0)W.credentialTransferTokens=[{token:Q,scope:"VIDEO"}];if(Q=D.kJ)W.delegatePurchases={oauthToken:Q},W.kidsParent={oauthToken:Q};m.user=W;if(W=D.contextParams)m.activePlayers=[{playerContextParams:W}];if(D=D.clientScreenNonce)m.clientScreenNonce=
D;return m};
g.gr=function(D){var Q=g.MW(),m=Q.client||{};if(D.forcedExperiments){var P=D.forcedExperiments.split(","),W=[];P=g.T(P);for(var L=P.next();!L.done;L=P.next())W.push(Number(L.value));m.experimentIds=W}if(W=D.homeGroupInfo)m.homeGroupInfo=JSON.parse(W);if(W=D.getPlayerType())m.playerType=W;if(W=D.S.ctheme)m.theme=W;if(W=D.livingRoomAppMode)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomAppMode:W});W=D.deviceYear;D.V("html5_propagate_device_year")&&W&&(m.tvAppInfo=Object.assign({},m.tvAppInfo,{deviceYear:W}));
if(W=D.livingRoomPoTokenId)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomPoTokenId:W});Q.client=m;m=Q.user||{};D.enableSafetyMode&&(m=Object.assign({},m,{enableSafetyMode:!0}));D.pageId&&(m=Object.assign({},m,{onBehalfOfUser:D.pageId}));Q.user=m;m=D.pj;D.V("embeds_web_enable_iframe_api_send_full_embed_url")||D.V("embeds_web_enable_rcat_validation_in_havs")||D.V("embeds_enable_autoplay_and_visibility_signals")||!m||(Q.thirdParty={embedUrl:m});return Q};
s6P=function(D,Q,m){var P=D.videoId,W=g.BU(D),L=D.G(),u={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(FE()),referer:document.location.toString(),signatureTimestamp:20311};g.H5();D.isAutonav&&(u.autonav=!0);g.KU(0,141)&&(u.autonavState=g.KU(0,140)?"STATE_OFF":"STATE_ON");u.autoCaptionsDefaultOn=g.KU(0,66);OE7(D)&&(u.autoplay=!0);L.Z&&D.cycToken&&(u.cycToken=D.cycToken);L.enablePrivacyFilter&&(u.enablePrivacyFilter=!0);D.isFling&&(u.fling=!0);var t=D.forceAdsUrl;if(t){var z={},b=[];t=
t.split(",");t=g.T(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;var C=q.split("|");C.length!==3||q.includes("=")||(C[0]="breaktype="+C[0],C[1]="offset="+C[1],C[2]="url="+C[2]);q={adtype:"video_ad"};C=g.T(C);for(var f=C.next();!f.done;f=C.next()){var V=g.T(f.value.split("="));f=V.next().value;V=i96(V);q[f]=V.join("=")}C=q.url;f=q.presetad;V=q.viralresponseurl;var N=Number(q.campaignid);if(q.adtype==="in_display_ad")C&&(z.url=C),f&&(z.presetAd=f),V&&(z.viralAdResponseUrl=V),N&&(z.viralCampaignId=
String(N));else if(q.adtype==="video_ad"){var h={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(q.offset)||0)}};if(q=Q6j[q.breaktype])h.breakType=q;C&&(h.url=C);f&&(h.presetAd=f);V&&(h.viralAdResponseUrl=V);N&&(h.viralCampaignId=String(N));b.push(h)}}u.forceAdParameters={videoAds:b,inDisplayAd:z}}D.isInlinePlaybackNoAd&&(u.isInlinePlaybackNoAd=!0);D.isLivingRoomDeeplink&&(u.isLivingRoomDeeplink=!0);z=D.sIz;if(z!=null){z={startWalltime:String(z)};if(b=D.z7)z.manifestDuration=String(b||14400);
u.liveContext=z}if(D.mutedAutoplay){u.mutedAutoplay=!0;z=L.getWebPlayerContextConfig();var B,J;(z==null?0:(B=z.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode)&&(z==null?0:(J=z.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode.includes(m96[D.mutedAutoplayDurationMode]))&&(u.mutedAutoplayDurationMode=m96[D.mutedAutoplayDurationMode])}if(D.aF?0:D.VA)u.splay=!0;B=D.vnd;B===5&&(u.vnd=B);B={};if(J=D.isMdxPlayback)B.triggeredByMdx=J;if(J=D.zQ)B.skippableAdsSupported=J.split(",").includes("ska");
if(b=D.sZ){J=D.gp;z=[];b=g.T(QL4(b));for(t=b.next();!t.done;t=b.next()){t=t.value;q=t.platform;t={applicationState:t.Ls?"INACTIVE":"ACTIVE",clientFormFactor:Pr4[q]||"UNKNOWN_FORM_FACTOR",clientName:Pa6[t.Nl]||"UNKNOWN_INTERFACE",clientVersion:t.deviceVersion||"",platform:Wbr[q]||"UNKNOWN_PLATFORM"};q={};if(J){C=void 0;try{C=JSON.parse(J)}catch(R){g.l4(R)}C&&(q={params:[{key:"ms",value:C.ms}]},C.advertising_id&&(q.advertisingId=C.advertising_id),C.limit_ad_tracking!==void 0&&C.limit_ad_tracking!==
null&&(q.limitAdTracking=C.limit_ad_tracking),t.osName=C.os_name,t.userAgent=C.user_agent,t.windowHeightPoints=C.window_height_points,t.windowWidthPoints=C.window_width_points)}z.push({adSignalsInfo:q,remoteClient:t})}B.remoteContexts=z}J=D.sourceContainerPlaylistId;z=D.serializedMdxMetadata;if(J||z)b={},J&&(b.mdxPlaybackContainerInfo={sourceContainerPlaylistId:J}),z&&(b.serializedMdxMetadata=z),B.mdxPlaybackSourceContext=b;u.mdxContext=B;B=Q.width;B>0&&(u.playerWidthPixels=Math.round(B));if(Q=Q.height)u.playerHeightPixels=
Math.round(Q);m!==0&&(u.vis=m);if(m=L.widgetReferrer)u.widgetReferrer=m.substring(0,128);g.W8(L)&&u&&(u.ancestorOrigins=L.ancestorOrigins);D.defaultActiveSourceVideoId&&(u.compositeVideoContext={defaultActiveSourceVideoId:D.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())u.encryptedHostFlags=L.encryptedHostFlags;P={videoId:P,context:W,playbackContext:{contentPlaybackContext:u}};if(D.Oj){var k;P.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(k=D.Oj)==null?void 0:k.reloadPlaybackParams}}D.contentCheckOk&&
(P.contentCheckOk=!0);if(k=D.clientPlaybackNonce)P.cpn=k;if(k=D.playerParams)P.params=k;if(k=D.playlistId)P.playlistId=k;D.racyCheckOk&&(P.racyCheckOk=!0);k=D.G();W=k.embedConfig;D.eZ&&k.V("embeds_enable_per_video_embed_config")?P.serializedThirdPartyEmbedConfig=D.eZ:W&&(P.serializedThirdPartyEmbedConfig=W);P.captionParams={};W=g.KU(g.H5(),65);D.deviceCaptionsOn!=null?P.captionParams.deviceCaptionsOn=D.deviceCaptionsOn:g.EO(k)&&(P.captionParams.deviceCaptionsOn=W!=null?!W:!1);D.gN&&(P.captionParams.deviceCaptionsLangPref=
D.gN);D.s0.length?P.captionParams.viewerSelectedCaptionLangs=D.s0:g.EO(k)&&(W=g.Ee(),W==null?0:W.length)&&(P.captionParams.viewerSelectedCaptionLangs=W);W=D.fetchType==="onesie"&&D.V("html5_onesie_attach_po_token");u=D.fetchType!=="onesie"&&D.V("html5_non_onesie_attach_po_token");if(W||u)W=D.G(),W.aF&&(P.serviceIntegrityDimensions={},P.serviceIntegrityDimensions.poToken=W.aF);k.V("fetch_att_independently")&&(P.attestationRequest={omitBotguardData:!0});P.playbackContext||(P.playbackContext={});P.playbackContext.devicePlaybackCapabilities=
ii6(D);P.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&D.dc("noVp9",{});return P};
ii6=function(D){var Q=!(D==null?0:D.AI())&&(D==null?void 0:D.VX())&&GX(),m;if(!(m=D==null)){m=g.Kz(D);D=D.G().J;var P=Ke("243");m=!(P&&Yf(m,P,D,!0)===!0)}return{supportsVp9Encoding:!(m||Q),supportXhr:hY}};
ucn=function(D,Q){var m,P,W;return g.U(function(L){if(L.C==1)return m={context:g.gr(D.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:D.videoId,cpn:D.clientPlaybackNonce}}]},P=g.Qd(Lb_),g.I(L,g.jz(Q,m,P),2);W=L.S;return L.return(W)})};
d99=function(D,Q,m){var P=g.WF(Q.experiments,"bg_vm_reinit_threshold");(!VE||(0,g.T3)()-VE>P)&&ucn(D,m).then(function(W){W&&(W=W.botguardData)&&g.yE(W,Q)},function(W){D.VF()||(W=yJ(W),D.dc("attf",W.details))})};
wr=function(D,Q){g.v.call(this);this.app=D;this.state=Q};
J2=function(D,Q,m){D.state.S.hasOwnProperty(Q)||kl(D,Q,m);D.state.U[Q]=function(){return m.apply(D,g.e$.apply(0,arguments))};
D.state.N.add(Q)};
lN=function(D,Q,m){D.state.S.hasOwnProperty(Q)||kl(D,Q,m);D.app.G().Z&&(D.state.Z[Q]=function(){return m.apply(D,g.e$.apply(0,arguments))},D.state.N.add(Q))};
kl=function(D,Q,m){D.state.S[Q]=function(){return m.apply(D,g.e$.apply(0,arguments))}};
g.Iv=function(D,Q,m){return D.state.S[Q].apply(D.state.S,g.on(m))};
Rv=function(){g.TY.call(this);this.J=new Map};
U6=function(){g.v.apply(this,arguments);this.element=null;this.N=new Set;this.U={};this.Z={};this.S={};this.j=new Set;this.T=new Rv;this.C=new Rv;this.B=new Rv;this.J=new Rv};
t4r=function(D,Q,m){typeof D==="string"&&(D={mediaContentUrl:D,startSeconds:Q,suggestedQuality:m});a:{if((Q=D.mediaContentUrl)&&(Q=/\/([ve]|embed)\/([^#?]+)/.exec(Q))&&Q[2]){Q=Q[2];break a}Q=null}D.videoId=Q;return HU(D)};
HU=function(D,Q,m){if(typeof D==="string")return{videoId:D,startSeconds:Q,suggestedQuality:m};Q={};m=g.T(zF4);for(var P=m.next();!P.done;P=m.next())P=P.value,D[P]&&(Q[P]=D[P]);if(D=D.embedConfig||D.embed_config)if(typeof D==="string")Q.embed_config=D;else if(g.iv(D))try{var W=JSON.stringify(D);Q.embed_config=W}catch(L){console.error("Invalid embedConfig JSON",L)}return Q};
bi$=function(D,Q,m,P){if(g.iv(D)&&!Array.isArray(D)){Q="playlist list listType index startSeconds suggestedQuality".split(" ");m={};for(P=0;P<Q.length;P++){var W=Q[P];D[W]&&(m[W]=D[W])}return m}Q={index:Q,startSeconds:m,suggestedQuality:P};typeof D==="string"&&D.length===16?Q.list="PL"+D:Q.playlist=D;return Q};
Ky=function(){wr.apply(this,arguments)};
Cr7=function(D){J2(D,"cueVideoById",D.pK);J2(D,"loadVideoById",D.jO);J2(D,"cueVideoByUrl",D.X0);J2(D,"loadVideoByUrl",D.Tc0);J2(D,"playVideo",D.f$c);J2(D,"pauseVideo",D.pauseVideo);J2(D,"stopVideo",D.xpW);J2(D,"clearVideo",D.clearVideo);J2(D,"getVideoBytesLoaded",D.QG);J2(D,"getVideoBytesTotal",D.Oy);J2(D,"getVideoLoadedFraction",D.Cs);J2(D,"getVideoStartBytes",D.vz);J2(D,"cuePlaylist",D.cuePlaylist);J2(D,"loadPlaylist",D.ou);J2(D,"nextVideo",D.qWD);J2(D,"previousVideo",D.Bic);J2(D,"playVideoAt",
D.EBy);J2(D,"setShuffle",D.setShuffle);J2(D,"setLoop",D.setLoop);J2(D,"getPlaylist",D.Nk);J2(D,"getPlaylistIndex",D.getPlaylistIndex);J2(D,"getPlaylistId",D.getPlaylistId);J2(D,"loadModule",D.Ou);J2(D,"unloadModule",D.RJ);J2(D,"setOption",D.Yw);J2(D,"getOption",D.hR);J2(D,"getOptions",D.jz);J2(D,"mute",D.Uv9);J2(D,"unMute",D.oah);J2(D,"isMuted",D.isMuted);J2(D,"setVolume",D.DpO);J2(D,"getVolume",D.getVolume);J2(D,"seekTo",D.Mvc);J2(D,"getPlayerMode",D.getPlayerMode);J2(D,"getPlayerState",D.D4);J2(D,
"getAvailablePlaybackRates",D.getAvailablePlaybackRates);J2(D,"getPlaybackQuality",function(){return D.getPlaybackQuality(1)});
J2(D,"setPlaybackQuality",D.IQx);J2(D,"getAvailableQualityLevels",D.XY);J2(D,"getCurrentTime",D.FY);J2(D,"getDuration",D.jW);J2(D,"addEventListener",D.Tk);J2(D,"removeEventListener",D.wOq);J2(D,"getDebugText",D.yQ);J2(D,"getVideoData",function(){return qE6(D)});
J2(D,"addCueRange",D.S5);J2(D,"removeCueRange",D.removeCueRange);J2(D,"setSize",D.setSize);J2(D,"getApiInterface",D.getApiInterface);J2(D,"destroy",D.destroy);J2(D,"mutedAutoplay",D.mutedAutoplay);var Q=D.app.G();Q.N||(J2(D,"getVideoEmbedCode",D.getVideoEmbedCode),J2(D,"getVideoUrl",D.wv));J2(D,"getMediaReferenceTime",D.IB);J2(D,"getSize",D.getSize);J2(D,"setFauxFullscreen",D.SHv);Q.V("embeds_enable_move_set_center_crop_to_public")&&J2(D,"setCenterCrop",D.setCenterCrop);Q.N||J2(D,"logImaAdEvent",
D.logImaAdEvent);J2(D,"preloadVideoById",D.dmT);J2(D,"wakeUpControls",D.wakeUpControls)};
g.jh=function(D){return(D=oe9(D.app.HY()))?D.xF():null};
eh=function(D){var Q=g.qS(D.app.G()),m,P=(m=D.app.getVideoData())==null?void 0:m.Co;D=$l(D.app);return g.sI(Q)&&!P||D?!1:!0};
qE6=function(D,Q){var m={};if(Q=D.app.kV(Q===void 0?1:Q)){Q=Q.getVideoData();if(E6(Q))return{};m.video_id=Q.videoId;m.author=Q.author;m.title=Q.title;m.isPlayable=Fh(Q);m.errorCode=Q.errorCode;if(Q.C&&Q.C.video){m.video_quality=Q.C.video.quality;Q=Q.C.video;var P=[];Q.fps>32&&P.push("hfr");Q.isHdr()&&P.push("hdr");Q.primaries==="bt2020"&&P.push("wcg");m.video_quality_features=P}}if(D=D.getPlaylistId())m.list=D;return m};
vU=function(){Ky.apply(this,arguments)};
O6=function(D,Q){var m={};if(D.app.G().Iy){D=g.T(f4P);for(var P=D.next();!P.done;P=D.next())P=P.value,Q.hasOwnProperty(P)&&(m[P]=Q[P]);if(Q=m.qoe_cat)D="",typeof Q==="string"&&Q.length>0&&(D=Q.split(",").filter(function(W){return V4u.includes(W)}).join(",")),m.qoe_cat=D;
Nn4(m)}else for(D=g.T(yKn),P=D.next();!P.done;P=D.next())P=P.value,Q.hasOwnProperty(P)&&(m[P]=Q[P]);return m};
Nn4=function(D){var Q=D.raw_player_response;if(!Q){var m=D.player_response;m&&(Q=JSON.parse(m))}delete D.player_response;delete D.raw_player_response;if(Q){D.raw_player_response={streamingData:Q.streamingData,playerConfig:Q.playerConfig};var P;if((P=Q.playbackTracking)==null?0:P.qoeUrl)D.raw_player_response=Object.assign({},D.raw_player_response,{playbackTracking:{qoeUrl:Q.playbackTracking.qoeUrl}});Q.videoDetails&&(Q.videoDetails.videoId||Q.videoDetails.lengthSeconds)&&(m={},Q.videoDetails.videoId&&
(m.videoId=Q.videoDetails.videoId),Q.videoDetails.lengthSeconds&&(m.lengthSeconds=Q.videoDetails.lengthSeconds),D.raw_player_response=Object.assign({},D.raw_player_response,{videoDetails:m}))}};
Fb7=function(D){var Q=Q===void 0?5:Q;return D?Zi6[D]||Q:Q};
g.Yl=function(){vU.apply(this,arguments)};
Tnu=function(D){kl(D,"getInternalApiInterface",D.getInternalApiInterface);kl(D,"addEventListener",D.CK);kl(D,"removeEventListener",D.Vvh);kl(D,"cueVideoByPlayerVars",D.Y_);kl(D,"loadVideoByPlayerVars",D.SWT);kl(D,"preloadVideoByPlayerVars",D.IDT);kl(D,"getAdState",D.getAdState);kl(D,"sendAbandonmentPing",D.sendAbandonmentPing);kl(D,"setLoopRange",D.setLoopRange);kl(D,"getLoopRange",D.getLoopRange);kl(D,"setAutonavState",D.setAutonavState);kl(D,"seekTo",D.XOO);kl(D,"seekBy",D.Giz);kl(D,"seekToLiveHead",
D.seekToLiveHead);kl(D,"requestSeekToWallTimeSeconds",D.requestSeekToWallTimeSeconds);kl(D,"seekToStreamTime",D.seekToStreamTime);kl(D,"prefetchKeyPlay",D.prefetchKeyPlay);kl(D,"startSeekCsiAction",D.startSeekCsiAction);kl(D,"getStreamTimeOffset",D.getStreamTimeOffset);kl(D,"getVideoData",D.uj);kl(D,"setInlinePreview",D.setInlinePreview);kl(D,"getAppState",D.getAppState);kl(D,"updateLastActiveTime",D.updateLastActiveTime);kl(D,"setBlackout",D.setBlackout);kl(D,"setUserEngagement",D.setUserEngagement);
kl(D,"updateSubtitlesUserSettings",D.updateSubtitlesUserSettings);kl(D,"getPresentingPlayerType",D.fz);kl(D,"canPlayType",D.canPlayType);kl(D,"updatePlaylist",D.updatePlaylist);kl(D,"updateVideoData",D.updateVideoData);kl(D,"updateEnvironmentData",D.updateEnvironmentData);kl(D,"sendVideoStatsEngageEvent",D.FOh);kl(D,"productsInVideoVisibilityUpdated",D.productsInVideoVisibilityUpdated);kl(D,"setSafetyMode",D.setSafetyMode);kl(D,"isAtLiveHead",function(Q){return D.isAtLiveHead(void 0,Q)});
kl(D,"getVideoAspectRatio",D.getVideoAspectRatio);kl(D,"getPreferredQuality",D.getPreferredQuality);kl(D,"getPlaybackQualityLabel",D.getPlaybackQualityLabel);kl(D,"setPlaybackQualityRange",D.ga9);kl(D,"onAdUxClicked",D.onAdUxClicked);kl(D,"getFeedbackProductData",D.getFeedbackProductData);kl(D,"getStoryboardFrame",D.getStoryboardFrame);kl(D,"getStoryboardFrameIndex",D.getStoryboardFrameIndex);kl(D,"getStoryboardLevel",D.getStoryboardLevel);kl(D,"getNumberOfStoryboardLevels",D.getNumberOfStoryboardLevels);
kl(D,"getCaptionWindowContainerId",D.getCaptionWindowContainerId);kl(D,"getAvailableQualityLabels",D.getAvailableQualityLabels);kl(D,"addCueRange",D.addCueRange);kl(D,"addUtcCueRange",D.addUtcCueRange);kl(D,"showAirplayPicker",D.showAirplayPicker);kl(D,"dispatchReduxAction",D.dispatchReduxAction);kl(D,"getPlayerResponse",D.RB);kl(D,"getWatchNextResponse",D.xo);kl(D,"getHeartbeatResponse",D.Si);kl(D,"getCurrentTime",D.fR);kl(D,"getDuration",D.r_);kl(D,"getPlayerState",D.getPlayerState);kl(D,"getPlayerStateObject",
D.Kf);kl(D,"getVideoLoadedFraction",D.getVideoLoadedFraction);kl(D,"getProgressState",D.getProgressState);kl(D,"getVolume",D.getVolume);kl(D,"setVolume",D.u1);kl(D,"isMuted",D.isMuted);kl(D,"mute",D.U$);kl(D,"unMute",D.MS);kl(D,"loadModule",D.loadModule);kl(D,"unloadModule",D.unloadModule);kl(D,"getOption",D.Yp);kl(D,"getOptions",D.getOptions);kl(D,"setOption",D.setOption);kl(D,"loadVideoById",D.Ja);kl(D,"loadVideoByUrl",D.v7);kl(D,"playVideo",D.Gt);kl(D,"loadPlaylist",D.loadPlaylist);kl(D,"nextVideo",
D.nextVideo);kl(D,"previousVideo",D.previousVideo);kl(D,"playVideoAt",D.playVideoAt);kl(D,"getDebugText",D.getDebugText);kl(D,"getWebPlayerContextConfig",D.getWebPlayerContextConfig);kl(D,"notifyShortsAdSwipeEvent",D.notifyShortsAdSwipeEvent);kl(D,"getVideoContentRect",D.getVideoContentRect);kl(D,"setSqueezeback",D.setSqueezeback);kl(D,"toggleSubtitlesOn",D.toggleSubtitlesOn);kl(D,"isSubtitlesOn",D.isSubtitlesOn);kl(D,"reportPlaybackIssue",D.reportPlaybackIssue);kl(D,"setAutonav",D.setAutonav);kl(D,
"isNotServable",D.isNotServable);kl(D,"channelSubscribed",D.channelSubscribed);kl(D,"channelUnsubscribed",D.channelUnsubscribed);kl(D,"togglePictureInPicture",D.togglePictureInPicture);kl(D,"supportsGaplessAudio",D.supportsGaplessAudio);kl(D,"supportsGaplessShorts",D.supportsGaplessShorts);kl(D,"enqueueVideoByPlayerVars",function(Q){return void D.enqueueVideoByPlayerVars(Q)});
kl(D,"clearQueue",D.clearQueue);kl(D,"getAudioTrack",D.Pw);kl(D,"setAudioTrack",D.y8W);kl(D,"getAvailableAudioTracks",D.GR);kl(D,"getMaxPlaybackQuality",D.getMaxPlaybackQuality);kl(D,"getUserPlaybackQualityPreference",D.getUserPlaybackQualityPreference);kl(D,"getSubtitlesUserSettings",D.getSubtitlesUserSettings);kl(D,"resetSubtitlesUserSettings",D.resetSubtitlesUserSettings);kl(D,"setMinimized",D.setMinimized);kl(D,"setOverlayVisibility",D.setOverlayVisibility);kl(D,"confirmYpcRental",D.confirmYpcRental);
kl(D,"queueNextVideo",D.queueNextVideo);kl(D,"handleExternalCall",D.handleExternalCall);kl(D,"logApiCall",D.logApiCall);kl(D,"isExternalMethodAvailable",D.isExternalMethodAvailable);kl(D,"setScreenLayer",D.setScreenLayer);kl(D,"getCurrentPlaylistSequence",D.getCurrentPlaylistSequence);kl(D,"getPlaylistSequenceForTime",D.getPlaylistSequenceForTime);kl(D,"shouldSendVisibilityState",D.shouldSendVisibilityState);kl(D,"syncVolume",D.syncVolume);kl(D,"highlightSettingsMenuItem",D.highlightSettingsMenuItem);
kl(D,"openSettingsMenuItem",D.openSettingsMenuItem);kl(D,"getEmbeddedPlayerResponse",D.getEmbeddedPlayerResponse);kl(D,"getVisibilityState",D.getVisibilityState);kl(D,"isMutedByMutedAutoplay",D.isMutedByMutedAutoplay);kl(D,"isMutedByEmbedsMutedAutoplay",D.isMutedByEmbedsMutedAutoplay);kl(D,"setGlobalCrop",D.setGlobalCrop);kl(D,"setInternalSize",D.setInternalSize);kl(D,"setFauxFullscreen",D.setFauxFullscreen);kl(D,"setAppFullscreen",D.setAppFullscreen)};
A2=function(D,Q,m){D=g.av(D.XZ(),Q);return m?(m.addOnDisposeCallback(D),null):D};
g.py=function(D,Q,m){return D.app.G().gi?Q:g.LZ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Q,SHORTCUT:m})};
hFm=function(D){D.XZ().element.setAttribute("aria-live","polite")};
g.xl=function(D,Q){g.Yl.call(this,D,Q);Tnu(this);lN(this,"addEventListener",this.IP);lN(this,"removeEventListener",this.xm9);lN(this,"cueVideoByPlayerVars",this.Gk);lN(this,"loadVideoByPlayerVars",this.C00);lN(this,"preloadVideoByPlayerVars",this.gVT);lN(this,"loadVideoById",this.Ja);lN(this,"loadVideoByUrl",this.v7);lN(this,"playVideo",this.Gt);lN(this,"loadPlaylist",this.loadPlaylist);lN(this,"nextVideo",this.nextVideo);lN(this,"previousVideo",this.previousVideo);lN(this,"playVideoAt",this.playVideoAt);
lN(this,"getVideoData",this.Sd);lN(this,"seekBy",this.sFz);lN(this,"seekTo",this.EVO);lN(this,"showControls",this.showControls);lN(this,"hideControls",this.hideControls);lN(this,"cancelPlayback",this.cancelPlayback);lN(this,"getProgressState",this.getProgressState);lN(this,"isInline",this.isInline);lN(this,"setInline",this.setInline);lN(this,"setLoopVideo",this.setLoopVideo);lN(this,"getLoopVideo",this.getLoopVideo);lN(this,"getVideoContentRect",this.getVideoContentRect);lN(this,"getVideoStats",this.VG);
lN(this,"getCurrentTime",this.o0);lN(this,"getDuration",this.r_);lN(this,"getPlayerState",this.nf);lN(this,"getVideoLoadedFraction",this.JR);lN(this,"mute",this.U$);lN(this,"unMute",this.MS);lN(this,"setVolume",this.u1);lN(this,"loadModule",this.loadModule);lN(this,"unloadModule",this.unloadModule);lN(this,"getOption",this.Yp);lN(this,"getOptions",this.getOptions);lN(this,"setOption",this.setOption);lN(this,"addCueRange",this.addCueRange);lN(this,"getDebugText",this.getDebugText);lN(this,"getStoryboardFormat",
this.getStoryboardFormat);lN(this,"toggleFullscreen",this.toggleFullscreen);lN(this,"isFullscreen",this.isFullscreen);lN(this,"getPlayerSize",this.getPlayerSize);lN(this,"toggleSubtitles",this.toggleSubtitles);lN(this,"setCenterCrop",this.setCenterCrop);lN(this,"setFauxFullscreen",this.setFauxFullscreen);lN(this,"setSizeStyle",this.setSizeStyle);lN(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);lN(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Cr7(this)};
g.Xh=function(D){D=D.HY();var Q=D.di.get("endscreen");return Q&&Q.Y5()?!0:D.Cg()};
g.Sh=function(D,Q){D.getPresentingPlayerType()===3?D.publish("mdxautoplaycancel"):D.sW("onAutonavCancelled",Q)};
g.Gv=function(D){var Q=rr(D.HY());return D.app.wT&&!D.isFullscreen()||D.getPresentingPlayerType()===3&&Q&&Q.wF()&&Q.j9()||!!D.getPlaylist()};
g.MO=function(D,Q){g.Iv(D,"addEmbedsConversionTrackingParams",[Q])};
g.DZ=function(D){return(D=g.cU(D.HY()))?D.DM():{}};
g.nej=function(D){D=(D=D.getVideoData())&&D.C;return!!D&&!(!D.audio||!D.video)&&D.mimeType!=="application/x-mpegURL"};
g.Q3=function(D,Q,m){D=D.fh().element;var P=Yk(D.children,function(W){W=Number(W.getAttribute("data-layer"));return m-W||1});
P<0&&(P=-(P+1));V0(D,Q,P);Q.setAttribute("data-layer",String(m))};
g.mW=function(D){var Q=D.G();if(!Q.kB)return!1;var m=D.getVideoData();if(!m||D.getPresentingPlayerType()===3)return!1;var P=(!m.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay"))&&!h2(m);P=m.isLivePlayback&&(!Q.V("allow_live_autoplay")||!P);var W=m.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");D=D.getPlaylist();D=!!D&&D.wF();var L=m.wc&&m.wc.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=m.RI&&L;return!m.ypcPreview&&(!P||W)&&!g.FK(m.j,"ypc")&&
!D&&(!g.W8(Q)||L)};
gew=function(D,Q){D=Ee4(D.app.yy().J);D=g.T(D);for(var m=D.next();!m.done;m=D.next()){m=m.value;var P=m.getAvailableAudioTracks(),W=null;P=g.T(P);for(var L=P.next();!L.done;L=P.next())if(L=L.value,L.getLanguageInfo().getId()===Q){W=L;break}W&&m.v5(W,!0)}};
Pj=function(){RS.apply(this,arguments);this.requestHeaders={}};
ii=function(){Wj||(Wj=new Pj);return Wj};
sD=function(D,Q){Q?D.requestHeaders.Authorization="Bearer "+Q:delete D.requestHeaders.Authorization};
g.L5=function(D){g.v.call(this);var Q=this;this.Ch=D;this.It={N6:function(){return Q.Ch}}};
g.ui=function(D,Q,m,P){P=P===void 0?!1:P;g.t1.call(this,Q);var W=this;this.D=D;this.Iy=P;this.U=new g.gO(this);this.fade=new g.mF(this,m,!0,void 0,void 0,function(){W.vU()});
g.O(this,this.U);g.O(this,this.fade)};
dg=function(D){var Q=D.D.getRootNode();return D.D.V("web_watch_pip")||D.D.V("web_shorts_pip")?cb(Q):document};
BnP=function(D){D.C&&(document.activeElement&&g.y0(D.element,document.activeElement)&&D.C.focus(),D.C.setAttribute("aria-expanded","false"),D.C=void 0);g.EI(D.U);D.Z=void 0};
th=function(D,Q,m){D.UZ()?D.eJ():D.YJ(Q,m)};
z$=function(D,Q,m,P){P=new g.p({K:"div",OW:["ytp-linked-account-popup-button"],h0:P,Y:{role:"button",tabindex:"0"}});Q=new g.p({K:"div",L:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{K:"div",L:"ytp-linked-account-popup-title",h0:Q},{K:"div",L:"ytp-linked-account-popup-description",h0:m},{K:"div",L:"ytp-linked-account-popup-buttons",X:[P]}]});g.ui.call(this,D,{K:"div",L:"ytp-linked-account-popup-container",X:[Q]},100);var W=this;this.dialog=Q;g.O(this,this.dialog);
P.listen("click",function(){W.eJ()});
g.O(this,P);g.Q3(this.D,this.element,4);this.hide()};
g.q$=function(D,Q,m,P){g.t1.call(this,D);this.priority=Q;m&&g.bi(this,m);P&&this.Sk(P)};
g.C5=function(D,Q,m,P){D=D===void 0?{}:D;Q=Q===void 0?[]:Q;m=m===void 0?!1:m;P=P===void 0?!1:P;Q.push("ytp-menuitem");var W=D;"role"in W||(W.role="menuitem");m||(W=D,"tabindex"in W||(W.tabindex="0"));D={K:m?"a":"div",OW:Q,Y:D,X:[{K:"div",L:"ytp-menuitem-icon",h0:"{{icon}}"},{K:"div",L:"ytp-menuitem-label",h0:"{{label}}"},{K:"div",L:"ytp-menuitem-content",h0:"{{content}}"}]};P&&D.X.push({K:"div",L:"ytp-menuitem-secondary-icon",h0:"{{secondaryIcon}}"});return D};
g.bi=function(D,Q){D.updateValue("label",Q)};
oa=function(D){g.q$.call(this,g.C5({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Q=this;this.D=D;this.C=this.S=!1;this.Cj=D.jc();D.createServerVe(this.element,this,!0);this.W(this.D,"settingsMenuVisibilityChanged",function(m){Q.aj(m)});
this.W(this.D,"videodatachange",this.B);this.listen("click",this.onClick);this.B()};
f5=function(D){return D?g.qC(D):""};
V3=function(D){g.v.call(this);this.api=D};
N$=function(D){V3.call(this,D);var Q=this;kl(D,"setAccountLinkState",function(m){Q.setAccountLinkState(m)});
kl(D,"updateAccountLinkingConfig",function(m){Q.updateAccountLinkingConfig(m)});
D.addEventListener("videodatachange",function(m,P){Q.onVideoDataChange(P)});
D.addEventListener("settingsMenuInitialized",function(){Q.menuItem=new oa(Q.api);g.O(Q,Q.menuItem)})};
y3=function(D){V3.call(this,D);var Q=this;this.S=null;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"applicationvideodatachange",function(){Q.s5()})};
wS$=function(D){D=D.api.getVideoData();if(!D)return!1;var Q=D.adFormat==="17_8",m,P=((m=D.HT)==null?void 0:Ju(m,5))===8;return D.isAd()&&(Q||P)};
kNm=function(D){this.api=D;this.S={}};
ZZ=function(D,Q,m,P){Q in D.S||(m=new g.XB(m,P,{id:Q,priority:2,namespace:"appad"}),D.api.GY([m],1),D.S[Q]=m)};
F6=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(this);g.O(this,this.events);this.S=new kNm(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){Q.S.S={}});
this.events.W(this.api,"legacyadtrackingpingchange",function(m){var P=Q.S;ZZ(P,"part2viewed",1,0x8000000000000);ZZ(P,"engagedview",Math.max(1,m.gB*1E3),0x8000000000000);if(!m.isLivePlayback){var W=m.lengthSeconds*1E3;lH(m)&&P.api.V("html5_shorts_gapless_ads_duration_fix")&&(W=P.api.getProgressState().seekableEnd*1E3-m.V4);ZZ(P,"videoplaytime25",W*.25,W);ZZ(P,"videoplaytime50",W*.5,W);ZZ(P,"videoplaytime75",W*.75,W);ZZ(P,"videoplaytime100",W,0x8000000000000);ZZ(P,"conversionview",W,0x8000000000000);
ZZ(P,"videoplaybackstart",1,W);ZZ(P,"videoplayback2s",2E3,W);ZZ(P,"videoplayback10s",1E4,W)}});
this.events.W(this.api,g.r5("appad"),this.C);this.events.W(this.api,g.GR("appad"),this.C)};
RFr=function(D,Q,m){if(!(m in Q))return!1;Q=Q[m];Array.isArray(Q)||(Q=[Q]);Q=g.T(Q);for(m=Q.next();!m.done;m=Q.next()){m=m.value;var P={CPN:D.api.getVideoData().clientPlaybackNonce};m=g.BV(m,P);P=void 0;P=P===void 0?!1:P;(P=Og(Y8(m,JKm),m,P,"Active View 3rd Party Integration URL"))||(P=void 0,P=P===void 0?!1:P,P=Og(Y8(m,l4m),m,P,"Google/YouTube Brand Lift URL"));P||(P=void 0,P=P===void 0?!1:P,P=Og(Y8(m,I4j),m,P,"Nielsen OCR URL"));g.Ro(m,void 0,P)}return!0};
T$=function(D,Q){U9j(D,Q).then(function(m){g.Ro(Q,void 0,void 0,m)})};
hh=function(D,Q){Q.forEach(function(m){T$(D,m)})};
U9j=function(D,Q){return g.Nw(D.api.G())&&Wd(Q)&&Pd(Q)?g.UO(D.api.G(),g.qO(D.api.getVideoData())).then(function(m){var P;m&&(P={Authorization:"Bearer "+m});return P},void 0):Bd()};
Hi_=function(D){V3.call(this,D);this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"videoready",function(Q){if(D.getPresentingPlayerType()===1){var m,P,W={playerDebugData:{pmlSignal:!!((m=Q.getPlayerResponse())==null?0:(P=m.adPlacements)==null?0:P.some(function(L){var u;return L==null?void 0:(u=L.adPlacementRenderer)==null?void 0:u.renderer})),
contentCpn:Q.clientPlaybackNonce}};g.WD("adsClientStateChange",W)}})};
n5=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);kl(this.api,"getUserAudioQualitySetting",function(){return Q.getUserAudioQualitySetting()});
kl(this.api,"setUserAudioQualitySetting",function(m){Q.setUserAudioQualitySetting(m)});
kl(this.api,"hasHqaAudioTrack",function(){return Q.hasHqaAudioTrack()});
this.Dc=GRn();this.updateEnvironmentData()};
Kb_=function(D){V3.call(this,D);var Q=this;kl(this.api,"getAudioTrackState",function(){return Q.api.ix(0)})};
ED=function(D){g.p.call(this,{K:"button",OW:["ytp-button","ytp-autonav-toggle"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{K:"div",L:"ytp-autonav-toggle-button-container",X:[{K:"div",L:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.D=D;this.C=[];this.S=!1;this.isChecked=!0;D.createClientVe(this.element,this,
113681);this.W(D,"presentingplayerstatechange",this.PN);this.listen("click",this.onClick);this.D.G().V("web_player_autonav_toggle_always_listen")&&j66(this);A2(D,this.element,this);this.PN()};
j66=function(D){D.C.push(D.W(D.D,"videodatachange",D.PN));D.C.push(D.W(D.D,"videoplayerreset",D.PN));D.C.push(D.W(D.D,"onPlaylistUpdate",D.PN));D.C.push(D.W(D.D,"autonavchange",D.iN))};
$9m=function(D){D.isChecked=D.isChecked;D.Dx("ytp-autonav-toggle-button").setAttribute("aria-checked",String(D.isChecked));var Q=D.isChecked?"Autoplay is on":"Autoplay is off";D.D.G().V("player_tooltip_data_title_killswitch")?D.update({title:Q,label:Q}):D.update({"data-tooltip-title":Q,label:Q});D.D.QP()};
eF$=function(D){return D.D.G().V("web_player_autonav_use_server_provided_state")&&E1(D.tD())};
veu=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"standardControlsInitialized",function(){var m=new ED(D);g.O(Q,m);D.Fj(m,"RIGHT_CONTROLS_LEFT")})};
gg=function(D,Q){g.q$.call(this,g.C5({role:"menuitemcheckbox","aria-checked":"false"}),Q,D,{K:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
Bj=function(D,Q){D.checked=Q;D.element.setAttribute("aria-checked",String(D.checked))};
Oi6=function(D){var Q=!D.G().Xn&&D.getPresentingPlayerType()!==3;return D.isFullscreen()||Q};
g.wg=function(D,Q,m,P){var W=D.currentTarget;if((m===void 0||!m)&&g.E9(D))return D.preventDefault(),!0;Q.pauseVideo();D=W.getAttribute("href");g.aD(D,P,!0);return!1};
g.k_=function(D,Q,m){if(Ts(Q.G())&&Q.getPresentingPlayerType()!==2){if(g.E9(m))return Q.isFullscreen()&&!Q.G().externalFullscreen&&Q.toggleFullscreen(),m.preventDefault(),!0}else{var P=g.E9(m);P&&Q.pauseVideo();g.aD(D,void 0,!0);P&&(g.AF(D),m.preventDefault())}return!1};
YEm=function(D){D=Jh.includes("en")?D.V("delhi_modern_web_player_icons")?yq():{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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.V("delhi_modern_web_player_icons")?RW7():{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]};D.L="ytp-subtitles-button-icon";
return D};
a4m=function(D){return Jh.includes("en")?D?yq():{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{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?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}};
li=function(){return{K:"div",L:"ytp-spinner-container",X:[{K:"div",L:"ytp-spinner-rotator",X:[{K:"div",L:"ytp-spinner-left",X:[{K:"div",L:"ytp-spinner-circle"}]},{K:"div",L:"ytp-spinner-right",X:[{K:"div",L:"ytp-spinner-circle"}]}]}]}};
Ia=function(D){if(document.createRange){var Q=document.createRange();Q&&(Q.selectNodeContents(D),D=window.getSelection())&&(D.removeAllRanges(),D.addRange(Q))}};
Hj=function(D){var Q=D.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";gg.call(this,Q,g.Ra.C7);var m=this;this.D=D;this.S=!1;this.C=new g.pJ(function(){g.Wo(m.element,"ytp-menuitem-highlighted")},0);
this.Cj=D.jc();D=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(D);this.subscribe("select",this.T,this);this.listen(UD,this.B);g.O(this,this.C)};
K5=function(D){V3.call(this,D);var Q=this;this.S=!1;D.addEventListener("settingsMenuInitialized",function(){AK7(Q)});
D.addEventListener("highlightSettingsMenu",function(m){AK7(Q);var P=Q.menuItem;m==="menu_item_cinematic_lighting"&&(g.mQ(P.element,"ytp-menuitem-highlighted"),g.mQ(P.element,"ytp-menuitem-highlight-transition-enabled"),P.C.start())});
kl(D,"updateCinematicSettings",function(m){Q.updateCinematicSettings(m)})};
AK7=function(D){D.menuItem||(D.menuItem=new Hj(D.api),g.O(D,D.menuItem),D.menuItem.Lh(D.S))};
pSj=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"applicationvideodatachange",function(m,P){P=P.clipConfig;m==="dataloaded"&&P&&P.startTimeMs!=null&&P.endTimeMs!=null&&Q.api.setLoopRange({startTimeMs:Math.floor(Number(P.startTimeMs)),endTimeMs:Math.floor(Number(P.endTimeMs)),postId:P.postId,type:"clips"})})};
j9=function(D){V3.call(this,D);this.events=new g.gO(D);g.O(this,this.events);kl(D,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));kl(D,"setCreatorEndscreenHideButton",this.S.bind(this))};
$_=function(D,Q,m,P,W){var L=D.V("html5_enable_new_audio_settings_menu");gg.call(this,"Stable Volume",L?x9m.fA:g.Ra.fA);this.D=D;this.T=Q;this.C=m;this.hasDrcAudioTrack=P;this.getDrcState=W;this.enableNewAudioSettingsMenu=this.S=!1;g.mQ(this.element,"ytp-drc-menu-item");this.Cj=(this.enableNewAudioSettingsMenu=L)?D.jc().YR:D.jc();D.addEventListener("videodatachange",this.US.bind(this));D.V("mta_drc_mutual_exclusion_removal")&&this.W(D,"onPlaybackAudioChange",this.US);this.enableNewAudioSettingsMenu&&
this.W(D,"audiopreferencechange",this.US);Q=this.C()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(D=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(D));this.subscribe("select",this.B,this);this.enableNewAudioSettingsMenu?this.US():(this.setEnabled(this.hasDrcAudioTrack()),Bj(this,Q),this.Cj.CM(this))};
e9=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);D.V("html5_show_drc_toggle")&&D.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new $_(Q.api,Q.setDrcUserPreference.bind(Q),Q.getDrcUserPreference.bind(Q),Q.q6.bind(Q),Q.getDrcState.bind(Q)),g.O(Q,Q.menuItem))});
kl(this.api,"setDrcUserPreference",function(P){Q.setDrcUserPreference(P)});
kl(this.api,"getDrcUserPreference",function(){return Q.getDrcUserPreference()});
kl(this.api,"hasDrcAudioTrack",function(){return Q.q6()});
kl(this.api,"getDrcState",function(){return Q.getDrcState()});
var m;this.S=(m=g.kt("yt-player-drc-pref"))!=null?m:1;this.updateEnvironmentData()};
vj=function(D){V3.call(this,D);var Q=this;this.S={};this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"videodatachange",function(){Q.onVideoDataChange()});
this.events.W(D,g.r5("embargo"),function(m){Q.api.pF(!0);var P,W=(P=Q.S[m.id])!=null?P:[];P=g.T(W);for(W=P.next();!W.done;W=P.next()){var L=W.value;Q.api.hideControls();Q.api.Qi("auth",2,"This video isn't available in your current playback area",ft({embargoed:1,id:m.id,idx:m.C,start:m.start}));W=void 0;(L=(W=L.embargo)==null?void 0:W.onTrigger)&&Q.api.sW("innertubeCommand",L)}})};
XSw=function(D,Q){var m;return(m=Q.onEnter)==null?void 0:m.some(D.C)};
SE_=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=void 0,W=Number((P=m.playbackPosition)==null?void 0:P.utcTimeMillis)/1E3,L=void 0;P=W+Number((L=m.duration)==null?void 0:L.seconds);L="embargo_"+W;D.api.addUtcCueRange(L,W,P,"embargo",!1);m.onEnter&&(D.S[L]=m.onEnter.filter(D.C))}};
OD=function(D){V3.call(this,D);var Q=this;this.S=[];this.events=new g.gO(D);g.O(this,this.events);kl(D,"addEmbedsConversionTrackingParams",function(m){Q.addEmbedsConversionTrackingParams(m)});
this.events.W(D,"veClickLogged",function(m){Q.api.hasVe(m)&&(m=m.visualElement.getAsJspb(),m=Bs(m,2),Q.S.push(m))})};
rK7=function(D){V3.call(this,D);kl(D,"isEmbedsShortsMode",function(){return D.isEmbedsShortsMode()})};
GNw=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"initialvideodatacreated",function(m){t3(d_(),16623);Q.S=g.Tq();var P=D.G().VA&&!m.aF;if(bN(m)&&P){t3(d_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(m.getWatchNextResponse()){var W,L=(W=m.getWatchNextResponse())==null?void 0:W.trackingParams;L&&bt(L)}if(m.getPlayerResponse()){var u;(m=(u=m.getPlayerResponse())==null?void 0:u.trackingParams)&&bt(m)}}else t3(d_(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),m.getEmbeddedPlayerResponse()&&(u=(L=m.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&bt(u)});
this.events.W(D,"loadvideo",function(){t3(d_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.S})});
this.events.W(D,"cuevideo",function(){t3(d_(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.S})});
this.events.W(D,"largeplaybuttonclicked",function(m){t3(d_(),27240,m.visualElement)});
this.events.W(D,"playlistnextbuttonclicked",function(m){t3(d_(),27240,m.visualElement)});
this.events.W(D,"playlistprevbuttonclicked",function(m){t3(d_(),27240,m.visualElement)});
this.events.W(D,"playlistautonextvideo",function(){t3(d_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
Y_=function(D,Q){g.v.call(this);var m=this;this.S=null;this.T=Q;Q=[];for(var P=0;P<=100;P++)Q.push(P/100);Q={threshold:Q,trackVisibility:!0,delay:1E3};(this.C=window.IntersectionObserver?new IntersectionObserver(function(W){W=W[W.length-1];var L=null;typeof W.isVisible==="undefined"?document.visibilityState==="visible"&&W.isIntersecting&&W.intersectionRatio>0?L=W.intersectionRatio:document.visibilityState==="hidden"?L=0:L=null:L=W.isVisible?W.intersectionRatio:0;L!=null&&(L=Math.max(L,0),L=Math.min(L,
1));m.S=L;typeof m.T==="function"&&m.T(m.S)},Q):null)&&this.C.observe(D)};
cKr=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"applicationInitialized",function(){M4j(Q)})};
M4j=function(D){var Q=D.api.getRootNode(),m,P=D.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((m=Q.parentElement)==null?void 0:m.parentElement)||Q:Q;D.S=new Y_(P,function(W){W!=null&&(D.api.G().dF=W,D.api.G().Ig="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.O(D,D.S);D.events.W(D.api,"videoStatsPingCreated",function(W){var L=D.S;L=L.S==null?null:Math.round(L.S*100)/100;W.inview=L!=null?L:void 0;L=D.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var u=g.ne();u>1&&L.push(u);L=L.join(":")}else L=void 0;W.size=L})};
DjP=function(D){var Q;return((Q=((D==null?void 0:D.messageRenderers)||[]).find(function(m){return!!m.timeCounterRenderer}))==null?void 0:Q.timeCounterRenderer)||null};
aa=function(D){g.p.call(this,{K:"div",OW:["ytp-player-content","ytp-iv-player-content"],X:[{K:"div",L:"ytp-free-preview-countdown-timer",X:[{K:"span",h0:"{{label}}"},{K:"span",L:"ytp-free-preview-countdown-timer-separator",h0:"\u2022"},{K:"span",h0:"{{duration}}"}]}]});this.api=D;this.S=null;this.T=this.C=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
mj9=function(D,Q){D.S||(D.C=Q,D.T=(0,g.T3)(),D.S=new g.AN(function(){QPj(D)},null),QPj(D))};
QPj=function(D){var Q=Math,m=Q.round,P=Math.min((0,g.T3)()-D.T,D.C);Q=m.call(Q,(D.C-P)/1E3);D.updateValue("duration",QE({seconds:Q}));Q<=0&&D.S?D.stopTimer():D.S&&D.S.start()};
Ptj=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"basechromeinitialized",function(){Q.S=new aa(D);g.O(Q,Q.S);g.Q3(D,Q.S.element,4);Q.S.hide()})};
Ah=function(D){g.p.call(this,{K:"button",OW:["ytp-fullerscreen-edu-button","ytp-button"],X:[{K:"div",OW:["ytp-fullerscreen-edu-text"],h0:"Scroll for details"},{K:"div",OW:["ytp-fullerscreen-edu-chevron"],X:[{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Y:{"data-priority":"2"}});this.zO=D;this.fade=new g.mF(this,250,void 0,100);this.C=this.S=!1;D.createClientVe(this.element,this,61214);g.O(this,
this.fade);this.W(D,"fullscreentoggled",this.Lh);this.W(D,"presentingplayerstatechange",this.Lh);this.listen("click",this.onClick);this.Lh()};
p5=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);kl(this.api,"updateFullerscreenEduButtonSubtleModeState",function(P){Q.updateFullerscreenEduButtonSubtleModeState(P)});
kl(this.api,"updateFullerscreenEduButtonVisibility",function(P){Q.updateFullerscreenEduButtonVisibility(P)});
var m=D.G();D.V("external_fullscreen_with_edu")&&m.externalFullscreen&&Ts(m)&&m.controlsType==="1"&&this.events.W(D,"standardControlsInitialized",function(){Q.S=new Ah(D);g.O(Q,Q.S);D.Fj(Q.S)})};
W14=function(D){g.p.call(this,{K:"div",L:"ytp-gated-actions-overlay",X:[{K:"div",L:"ytp-gated-actions-overlay-background",X:[{K:"div",L:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",OW:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Close"},X:[g.NC()]},{K:"div",L:"ytp-gated-actions-overlay-bar",X:[{K:"div",L:"ytp-gated-actions-overlay-text-container",X:[{K:"div",L:"ytp-gated-actions-overlay-title",h0:"{{title}}"},{K:"div",L:"ytp-gated-actions-overlay-subtitle",
h0:"{{subtitle}}"}]},{K:"div",L:"ytp-gated-actions-overlay-button-container"}]}]});var Q=this;this.api=D;this.background=this.Dx("ytp-gated-actions-overlay-background");this.C=this.Dx("ytp-gated-actions-overlay-button-container");this.S=[];this.W(this.Dx("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Q.api.sW("onCloseMiniplayer")});
this.hide()};
sPP=function(D,Q){var m=0;m=0;for(var P={};m<Q.length;P={MI:void 0},m++){var W=D.S[m],L=void 0,u=(L=W)==null?void 0:L.element;u||(u=new g.p({K:"button",L:"ytp-gated-actions-overlay-button",Y:{tabindex:"0"},X:[{K:"div",L:"ytp-gated-actions-overlay-button-title",h0:"{{buttonText}}"}]}),g.O(D,u),u.b0(D.C),W={element:u});P.MI=g.A(Q[m],ix7);var t=L=void 0,z=void 0,b=((L=P.MI)==null?void 0:L.title)||((t=P.MI)==null?void 0:(z=t.titleFormatted)==null?void 0:z.content)||"";u.update({buttonText:b});W.listener&&
u.qY(W.listener);W.listener=u.listen("click",function(q){return function(){var C,f=g.A((C=q.MI)==null?void 0:C.onTap,RC);f&&D.api.sW("innertubeCommand",f)}}(P));
D.S[m]=W}for(;m<D.S.length;)D.S.pop().element.dispose()};
L17=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.S=new W14(this.api);g.O(this,this.S);this.events.W(D,"videodatachange",function(){var m,P=(m=Q.api.getVideoData())==null?void 0:m.qk;m=Q.S;if(P){var W,L,u=((W=P.title)==null?void 0:W.content)||"";W=((L=P.subtitle)==null?void 0:L.content)||"";m.update({title:u,subtitle:W});u=P.thumbnail;L="none";if(u==null?0:u.sources){W=0;u=g.T(u.sources);for(var t=u.next();!t.done;t=u.next())t=t.value,t.width&&t.url&&t.width>
W&&(W=t.width,L="url("+t.url+")")}m.background.style.backgroundImage=L;sPP(m,P.actionButtons||[]);m.show()}else m.hide()});
g.Q3(this.api,this.S.element,4)};
x_=function(D){V3.call(this,D);var Q=this;lN(this.api,"getSphericalProperties",function(){return Q.getSphericalProperties()});
lN(this.api,"setSphericalProperties",function(){Q.setSphericalProperties.apply(Q,g.on(g.e$.apply(0,arguments)))});
J2(this.api,"getSphericalProperties",function(){return Q.api.getPresentingPlayerType()===2?{}:Q.getSphericalProperties()});
J2(this.api,"setSphericalProperties",function(){var m=g.e$.apply(0,arguments);Q.api.getPresentingPlayerType()!==2&&Q.setSphericalProperties.apply(Q,g.on(m))})};
X6=function(D){V3.call(this,D);kl(D,"createClientVe",this.createClientVe.bind(this));kl(D,"createServerVe",this.createServerVe.bind(this));kl(D,"destroyVe",this.destroyVe.bind(this));kl(D,"hasVe",this.hasVe.bind(this));kl(D,"logClick",this.logClick.bind(this));kl(D,"logVisibility",this.logVisibility.bind(this));kl(D,"setTrackingParams",this.setTrackingParams.bind(this))};
G$=function(D){this.C={};this.S={};this.videoData=D;var Q;this.T=((Q=D.T)==null?void 0:Q.C)||[];D=g.T(S9);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.C[Q]=v9(this.T,rg[Q].Wv);this.QW()};
u2h=function(D,Q){var m=Q.getAudioTrack();return m.id!=="und"?g.g0(D,function(P){var W;return((W=P.WY)==null?void 0:W.name)===m.getLanguageInfo().name}):D};
tc4=function(D,Q){return Q.getUserAudio51Preference()?g.g0(D,dj7):D};
bxj=function(D){return g.kt("yt-player-drc-pref")?g.g0(D,zb7):D};
Ctm=function(D){return rV_()===2?g.g0(D,qeu):D};
zb7=function(D){var Q;return((Q=D.audio)==null?void 0:Q.S)===!0};
dj7=function(D){return rO(D)||Ga(D)};
ofj=function(D){return D.WY!==void 0};
qeu=function(D){var Q;return((Q=D.audio)==null?void 0:Q.C)===!0};
M$=function(D,Q,m,P){function W(u){var t=!(u.status!==204&&u.status!==200&&!u.response),z;u={succ:""+ +t,rc:u.status,lb:((z=u.response)==null?void 0:z.byteLength)||0,rt:((0,g.T3)()-L).toFixed(),shost:g.uY(D),trigger:Q};fo4(u,D);m&&m(u);P&&!t&&P(new g.VJ("pathprobe.net",u))}
var L=(0,g.T3)();g.ZG(D,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:W,onTimeout:W})};
fo4=function(D,Q){var m;((m=window.performance)==null?0:m.getEntriesByName)&&(Q=performance.getEntriesByName(Q))&&Q.length&&(Q=Q[0],D.pedns=(Q.domainLookupEnd-Q.startTime).toFixed(),D.pecon=(Q.connectEnd-Q.domainLookupEnd).toFixed(),D.perqs=(Q.requestStart-Q.connectEnd).toFixed(),Vck&&(D.perqsa=Q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
N_w=function(D){Vck=D};
cj=function(D,Q){this.uE=D;this.policy=Q;this.playbackRate=1};
y37=function(D,Q){var m=Math.min(2.5,X$(D.uE));D=DJ(D);return Q-m*D};
QG=function(D,Q,m,P,W){W=W===void 0?!1:W;if(D.policy.ZK)return Math.ceil(D.policy.ZK*Q);D.policy.SR&&(P=Math.abs(P));P/=D.playbackRate;var L=1/GZ(D.uE);m=Math.max(.9*(P-3),X$(D.uE)+D.uE.C.S*L)/L*.8/(Q+m);m=Math.min(m,P);D.policy.fF>0&&W&&(m=Math.max(m,D.policy.fF));return Zxm(D,m,Q)};
Zxm=function(D,Q,m){return Math.ceil(Math.max(Math.max(D.policy.Sg,D.policy.H0*m),Math.min(Math.min(D.policy.k9,31*m),Math.ceil(Q*m))))||D.policy.Sg};
F1_=function(D,Q,m){m=QG(D,Q.S.info.yF,m.S.info.yF,0);var P=X$(D.uE)+m/GZ(D.uE);return Math.max(P,P+D.policy.J2-m/Q.S.info.yF)};
DJ=function(D){return GZ(D.uE,!D.policy.Ft,D.policy.FH)};
mX=function(D){return DJ(D)/D.playbackRate};
PO=function(D,Q,m){var P=D.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],W=D.policy.playbackStartPolicy.startMinReadaheadPolicy||[];D=Infinity;Q=g.T(Q&&P.length>0?P:W);for(P=Q.next();!P.done;P=Q.next())P=P.value,W=P.minReadaheadMs||0,m<(P.minBandwidthBytesPerSec||0)||D>W&&(D=W);return D<Infinity?D/1E3:D};
WO=function(D,Q,m,P){var W=this;this.U=D;this.UW=Q;this.policy=m;this.logger=P;this.Lo=[];this.KM=[];this.S=-1;this.zo=null;this.N=this.timestampOffset=0;this.C=10;this.J=new Set;this.It={V9:function(L){return W.V9(L)}};
this.B=Q.VX?0:1;m.Vg>0&&(this.C=m.Vg)};
nf6=function(D,Q,m,P,W){if(!P.info.B){if(m.length===0)m.push(P);else{var L;(D=(L=m.pop())==null?void 0:g.kF(L,P))?m.push(D):m.push(P)}return W}var u;(m=(u=m.pop())==null?void 0:g.kF(u,P))||(m=P);if(m.info.C)return D.logger&&D.logger({incompleteSegment:m.info.Hn()}),W;P=D.V9(m);W=P.J0;P={clipId:P.clipId,formatId:P.formatId,startTimeMs:P.startTimeMs,durationMs:P.TR,nU:W,Np:W};W=T_n(Q,P.startTimeMs);if(L=m=W>=0?Q[W]:null){L=P;var t=W;u=m.startTimeMs+m.durationMs;var z=L.startTimeMs+L.durationMs;if(L.startTimeMs-
u>D.C)L=!1;else if(hbm(D,m.formatId,L.formatId))m.durationMs=Math.max(u,z)-m.startTimeMs,m.Np=Math.max(m.Np,L.Np),L=!0;else if(Math.abs(m.startTimeMs-L.startTimeMs)<=D.C)if(m.durationMs>L.durationMs+D.C){var b=m.formatId,q=m.nU;t=m.Np;m.formatId=L.formatId;m.durationMs=L.durationMs;m.nU=L.nU;m.Np=L.Np;L.formatId=b;L.startTimeMs=z;L.durationMs=u-z;L.nU=q;L.Np=t;L=!1}else m.formatId=L.formatId,L=!0;else u>L.startTimeMs&&(u>z&&(Q.splice(t+1,0,{formatId:m.formatId,startTimeMs:z,durationMs:u-z,nU:L.Np+
1,Np:m.Np}),D.logger&&D.logger({splitOldStart:(b=m.startTimeMs)==null?void 0:b.toFixed(3),splitOldEnd:u==null?void 0:u.toFixed(3),splitNewStart:(q=L.startTimeMs)==null?void 0:q.toFixed(3),splitNewEnd:z==null?void 0:z.toFixed(3)})),m.durationMs=L.startTimeMs-m.startTimeMs,m.Np=L.nU-1),L=!1}L?P=m:(W+=1,Q.splice(W,0,P));b=0;for(q=W+1;q<Q.length;q++){m=D;L=Q[q];u=P;z=L.startTimeMs+L.durationMs;t=u.startTimeMs+u.durationMs;t>=z+m.C?m=!0:t+m.C<L.startTimeMs?m=!1:hbm(m,L.formatId,u.formatId)?(u.durationMs=
z-u.startTimeMs,u.Np=L.Np,m=!0):(L.startTimeMs=t,L.nU=u.Np+1,m=!1);if(!m)break;b++}b&&Q.splice(W+1,b);return W};
gfh=function(D,Q,m){m!=null&&m.F_||(D.Lo=[]);D.policy.Co?(Q=g.OU(D.KM,{startTimeMs:Q*1E3},function(P,W){return P.startTimeMs-W.startTimeMs}),D.S!==Q&&(D.S=-1,D.T=void 0)):(Ef_(D,!0),D.S=T_n(D.KM,Q*1E3))};
T_n=function(D,Q){D=g.OU(D,{startTimeMs:Q},function(m,P){return m.startTimeMs-P.startTimeMs});
return D>=0?D:-D-2};
Ef_=function(D,Q){if(D.zo){var m=D.zo.Ti();if(m.length!==0){if(D.T&&Q){var P=D.T,W=P.info.J;!z5(m,W)&&P.info.Z>0&&(0,g.T3)()-D.N<5E3&&(D.logger&&D.logger({dend:P.info.Hn()}),m=kOu(m,W,W+.01))}D.policy.Co&&D.logger&&D.logger({cbri:""+D.S});P=[];for(var L=W=0;W<m.length&&L<D.KM.length;){var u=m.start(W),t=m.end(W),z=D.KM[L].startTimeMs/1E3,b=(D.KM[L].startTimeMs+D.KM[L].durationMs)/1E3;if(z<=t&&b>=u){var q=Object.assign({},D.KM[L]),C=D.UW.T.get(cW(D.KM[L].formatId)),f=Math.max(z,u);u=C.index.JY(f+D.C/
1E3);z=C.index.getStartTime(u);var V=u+ +(Math.abs(z-f)>D.C/1E3);f=V+D.B;V=C.index.getStartTime(V)*1E3;L!==D.S||Q?(q.nU=f,q.startTimeMs=V):(D.logger&&D.logger({pEvict:"1",og:q.startTimeMs,adj:z*1E3}),q.nU=u+D.B,q.startTimeMs=z*1E3);u=void 0;z=((u=D.T)==null?void 0:u.info.duration)||11;L===D.S&&t<b&&b-t<=z*1.01&&(t=b);u=Math.min(b,t);z=C.index.JY(u-D.C/1E3);f=C.index.Gz(z);z-=+(Math.abs(f-u)>D.C/1E3);u=z+D.B;C=C.index.Gz(z)*1E3;q.Np=u;q.durationMs=C-q.startTimeMs;q.nU<=q.Np&&P.push(q)}b<t?L+=1:W+=
1}D.KM=P}}};
B_n=function(D){var Q=[],m=[].concat(g.on(D.Lo));D.KM.forEach(function(u){Q.push(Object.assign({},u))});
for(var P=D.S,W=g.T(D.U.Xy()),L=W.next();!L.done;L=W.next())P=nf6(D,Q,m,L.value,P);Q.forEach(function(u){u.startTimeMs&&(u.startTimeMs+=D.timestampOffset*1E3)});
return{KM:Q,Lo:m}};
hbm=function(D,Q,m){return Q.itag!==m.itag||Q.xtags!==m.xtags?!1:D.UW.VX||Q.lmt===m.lmt};
w47=function(D,Q,m){if(D.logger){for(var P=[],W=0;W<Q.length;W++){var L=Q[W],u=void 0;if((u=L.ZF)==null?0:u.startTicks){var t=u=void 0,z=void 0;P.push("i."+((u=L.formatId)==null?void 0:u.itag)+"_st."+(L.startTimeMs+"_psst.")+(((t=L.ZF)==null?void 0:t.startTicks)+"_psd.")+((z=L.ZF)==null?void 0:z.XP))}u=void 0;P.push("i."+((u=L.formatId)==null?void 0:u.itag)+"_st."+(L.startTimeMs+"_e."+(L.startTimeMs+L.durationMs)+"_d."+L.durationMs)+("_sn."+L.nU)+("_en."+L.Np))}D.logger({p:""+m,br:P.join(";")})}};
kn7=function(D){D.KM=[];D.Lo=[];D.J.clear();D.S=-1;D.T=void 0};
iO=function(D,Q,m,P,W){this.loader=D;this.UW=Q;this.videoTrack=m;this.audioTrack=P;this.policy=W;this.seekCount=this.targetTime=0;this.B=!1;this.T=null;this.C=0;this.S=this.UW.isManifestless&&!this.UW.Ws};
J34=function(D,Q,m){if(!D.policy.J){D=Q.S.index;var P=Q.C.J0;D.Pr(P)||m&&m.J0===P?(Q.J=!D.Pr(P),Q.Kh=!D.Pr(P)):(Q.J=!0,Q.Kh=!0)}};
Io7=function(D){var Q=Math.max(D.videoTrack.B.T||0,D.audioTrack.B.T||0);lom(D.videoTrack);lom(D.audioTrack);D.policy.J||k5h(D.UW);D.UW.isManifestless&&!D.policy.J&&(D.S=!0,D.C=0);var m=D.loader;if(!m.policy.t0||m.policy.Lj)m.currentTime=Q;D.B=!0;D.T=new kS;return D.T};
Hx7=function(D,Q,m,P,W){if(!Q.S.xa()){if(!(W=m===0||!!Q.T.length&&Q.T[0]instanceof sn))a:{if(Q.T.length&&(W=Q.T[0],W instanceof LF&&W.iH&&W.zm)){W=!0;break a}W=!1}W||D.policy.S||uO(Q);return m}var L=dY(Q,m);if(!isNaN(L))return L;if(D.loader.yV(m*1E3))return m;W.F_?D.policy.cE&&(D=tp(D.loader,Q),Rb6(Q.B,m+D,!0)):(Q.fI(),D.loader.Qd(!1,"sta_"+ +Q.S.info.ZQ()));return P&&(D=bs(P.Ti(),m),!isNaN(D))?(zD(Q,D+Uj_,W),m):zD(Q,m,W)};
jPn=function(D,Q,m,P){if(D.policy.J)!P||!D.S&&D.policy.hU||g.Fd(function(){bO(D)});
else{if(D.isSeeking()&&D.targetTime){var W=K1$(D,Q,m);if(W!==-1){D.videoTrack.J=!1;D.audioTrack.J=!1;D.S=!0;D.C=0;g.Fd(function(){D.loader.dc("seekreason",{reason:"behindMinSq",tgt:W});qV(D,W)});
return}}m?D.videoTrack.Kh=!1:D.audioTrack.Kh=!1;var L=!D.S;dY(D.videoTrack,D.targetTime)>=0&&dY(D.audioTrack,D.targetTime)>=0&&L?((D.videoTrack.J||D.audioTrack.J)&&D.loader.dc("iterativeSeeking",{status:"done",count:D.seekCount}),D.videoTrack.J=!1,D.audioTrack.J=!1):P&&g.Fd(function(){if(D.S||!D.policy.hU)bO(D);else{var u=Q.startTime,t=Q.duration;if(!D.policy.J){var z=m?D.videoTrack.J:D.audioTrack.J,b=D.videoTrack.N!==-1&&D.audioTrack.N!==-1,q=D.targetTime>=u&&D.targetTime<u+t+.1,C=!D.videoTrack.Kh&&
!D.audioTrack.Kh,f=D.policy.uh&&dY(D.videoTrack,u)&&dY(D.audioTrack,u);z&&b&&C&&(q||f?((m?D.videoTrack:D.audioTrack).J=!1,D.videoTrack.J||D.audioTrack.J||(D.loader.dc("iterativeSeeking",{status:"done",target:u,originalTime:u+D.loader.m2(),count:D.seekCount}),D.seekCount=0)):D.seekCount<8?(D.seekCount++,D.loader.dc("iterativeSeeking",{status:"inprogress",count:D.seekCount,target:D.targetTime,actual:u,duration:t,isVideo:m}),D.seek(D.targetTime,{})):(D.loader.dc("iterativeSeeking",{status:"incomplete",
count:D.seekCount,target:D.targetTime,actual:u}),D.seekCount=0,D.videoTrack.J=!1,D.audioTrack.J=!1,CF(D.loader,u+.1,{ZA:!0,cn:"chunkSelectorSynchronizeMedia",Hr:!0})))}}})}};
K1$=function(D,Q,m){if(!D.isSeeking())return-1;m=(m?D.videoTrack:D.audioTrack).S.index;var P=m.JY(D.targetTime);return(m.Pr(D.UW.vO)||Q.J0===D.UW.vO)&&P<D.UW.vO?D.UW.TY():-1};
qV=function(D,Q,m){D.S&&D.videoTrack.N!==-1&&D.audioTrack.N!==-1&&(D.S=!1,D.targetTime=Q,CF(D.loader,Q+.1,{ZA:!0,cn:"chunkSelectorSynchronize",Hr:!0,seekSource:m}))};
bO=function(D){var Q=D.videoTrack.N!==-1,m=D.audioTrack.N!==-1;if(!Q||!m)if(Q=!Q&&oV(D.videoTrack),m=!m&&oV(D.audioTrack),Q||m){m=Q?D.videoTrack:D.audioTrack;Q=Q?D.audioTrack:D.videoTrack;m.N=oV(m).info.J0;if(D.policy.J){var P;Q.N=((P=oV(Q))==null?void 0:P.info.J0)||Q.N}if(Q.N!==-1){var W=Math.max(Q.S.index.getStartTime(Q.N),m.S.index.getStartTime(m.N));Gf(D.UW)&&Math.abs(W-Gf(D.UW))>432E3&&J$$(D.UW);D.C&&(W=D.C,D.C=0);g.Fd(function(){D.policy.J||qV(D,W,102)});
D.loader.dc("initManifestlessSync",{st:W,ost:W+D.loader.m2(),a:D.audioTrack.N,v:D.videoTrack.N});D.T&&(D.T.resolve(W+.1),D.T=null);D.policy.J&&qV(D,W,102)}}};
fF=function(D,Q){var m=this;this.DG=D;this.requestNumber=++$jh;this.S=this.now();this.Z=this.j=NaN;this.U=this.S;this.T=this.Lj=this.J=0;this.N=this.S;this.XT=this.Iy=this.wc=this.dn=this.pj=this.QF=this.C=this.B=0;this.TO=this.isActive=!1;this.Kj=this.oy=0;this.It={NMD:function(){return m.Ov}};
this.uE=Q.uE;this.snapshot=TDk(this.uE);this.policy=this.uE.C;this.AP=!!Q.AP;this.zj=Q.zj;this.LZ=Q.LZ||0;this.ze=Q.ze||0;Q.qg&&(this.t0=new $u);var P;this.Ov=(P=Q.Ov)!=null?P:!1;this.AP||ymu(this.uE)};
eb7=function(D){D.wc=Math.max(D.wc,D.J-D.pj);D.Iy=Math.max(D.Iy,D.U-D.dn);D.QF=0};
VG=function(D,Q,m){ZN$(D.uE,Q);D.t0&&(D.t0.add(Math.ceil(Q)-Math.ceil(D.U)),D.t0.add(Math.max(0,Math.ceil(m/1024)-Math.ceil(D.J/1024))));var P=Q-D.U,W=m-D.J;D.Lj=W;D.XT=Math.max(D.XT,W/(P+.01)*1E3);D.U=Q;D.J=m;D.QF&&m>D.QF&&eb7(D)};
NV=function(D,Q){D.url=Q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
yG=function(D,Q){fF.call(this,D,Q);this.gB=this.cY=!1;this.u0=this.Kh=Infinity;this.x9=NaN;this.hU=!1;this.l0=NaN;this.PY=this.k9=this.Y9=0;this.JA=Q.JA||1;this.W4=Q.W4||this.JA;this.zx=Q.zx;this.J0=Q.J0;this.e1=Q.e1;vf9(this);this.K_(this.S);this.jD=(this.l0-this.S)/1E3};
Ox7=function(D){var Q=D.k9||D.Y9;return Q?D.snapshot.delay+Math.min(D.ze,(D.Z-D.j)/1E3)+Q:D.jD};
ZJ=function(D,Q,m){if(!D.AP){Q=Math.max(Q,.01);var P=D.LZ?Math.max(Q,m/D.LZ):Q,W=D.uE.C.T;W&&(P=Q,D.LZ&&(P=Math.max(Q,m/D.LZ*W)));AY(D.uE,Q,m,P)}};
Ye4=function(D){return(D.N-D.S)/1E3};
vf9=function(D){D.x9=D.S+D.snapshot.delay*1E3;D.hU=!1};
Fl=function(D,Q){if(D.zx&&D.J0!==void 0&&D.e1!==void 0){var m=Math,P=m.min,W=D.Kh;var L=D.zx;var u=D.S;if(ao$(L,D.J0))L=Q;else{var t=0;L.Qo&&(t=.2);L=u+(L.ze+t)*1E3}D.Kh=P.call(m,W,L);m=Math;P=m.min;W=D.u0;L=D.zx;u=D.S;t=A3m(L,D.J0,D.e1);t!==2&&(Q=t?Q:u+L.ze*1E3,L.Qo&&(Q+=L.ze*1E3));D.u0=P.call(m,W,Q);D.Kh<=D.S?vf9(D):(D.x9=D.Kh,D.hU=!0)}};
p44=function(D,Q){if(Q+1<=D.totalLength){var m=Ch(D,Q);m=m<128?1:m<192?2:m<224?3:m<240?4:5}else m=0;if(m<1||!(Q+m<=D.totalLength))return[-1,Q];if(m===1)D=Ch(D,Q++);else if(m===2)m=Ch(D,Q++),D=Ch(D,Q++),D=(m&63)+64*D;else if(m===3){m=Ch(D,Q++);var P=Ch(D,Q++);D=Ch(D,Q++);D=(m&31)+32*(P+256*D)}else if(m===4){m=Ch(D,Q++);P=Ch(D,Q++);var W=Ch(D,Q++);D=Ch(D,Q++);D=(m&15)+16*(P+256*(W+256*D))}else m=Q+1,D.focus(m),zW(D,m,4)?D=jo4(D).getUint32(m-D.T,!0):(P=Ch(D,m+2)+256*Ch(D,m+3),D=Ch(D,m)+256*(Ch(D,m+1)+
256*P)),Q+=5;return[D,Q]};
TD=function(D){this.DG=D;this.S=new Lh};
hp=function(D,Q){this.info=D;this.callback=Q;this.state=1;this.dU=this.r0=!1;this.JN=null};
xjm=function(D){return g.VT(D.info.EW,function(Q){return Q.type===3})};
nF=function(D,Q,m,P){var W=this;P=P===void 0?{}:P;this.policy=Q;this.DG=m;this.status=0;this.S=new Lh;this.C=0;this.VF=this.B=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(P.method||"GET",D);if(P.headers)for(D=P.headers,Q=g.T(Object.keys(D)),m=Q.next();!m.done;m=Q.next())m=m.value,this.xhr.setRequestHeader(m,D[m]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return W.y8()};
this.xhr.onload=function(){return W.onDone()};
this.xhr.onerror=function(){return W.onError()};
this.xhr.fetch(function(L){W.S.append(L);W.C+=L.length;L=(0,g.T3)();W.DG.IG(L,W.C)},function(){},P.body||null)};
X4h=function(D,Q){this.C=(new TextEncoder).encode(D);this.S=(new TextEncoder).encode(Q)};
K3$=function(D,Q){var m;return g.U(function(P){if(!Q)return P.return(Q);m=new g.CL(D.C);return P.return(m.encrypt(Q,D.S))})};
Oj4=function(D,Q){var m;return g.U(function(P){if(P.C==1){if(!Q)return P.return(Q);m=new g.CL(D.C);return g.I(P,m.decrypt(Q,D.S),2)}return P.return(P.S)})};
r3h=function(D,Q){var m=this;this.S=D;this.DG=Q;this.loaded=this.status=0;this.error="";D=mw(this.S.get("range")||"");if(!D)throw Error("bad range");this.range=D;this.C=new Lh;Sek(this).then(function(){m.DG.jR()},function(P){m.error=""+P||"unknown_err";
m.DG.jR()})};
Sek=function(D){var Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h;return g.U(function(B){if(B.C==1){D.status=200;Q=D.S.get("docid");m=wh(D.S.get("fmtid")||"");P=D.S.get("lmt")||"0";W=+(D.S.get("csz")||0);if(!Q||!m||!W)throw Error("Invalid local URL");D.S.get("ck")&&D.S.get("civ")&&(L=new X4h(D.S.get("ck"),D.S.get("civ")));u=D.range;t=Math.floor(u.start/W);z=Math.floor(u.end/W);b=t}if(B.C!=5)return b<=z?g.I(B,YY7(Q,m,P,b,L),5):B.Nv(0);q=B.S;if(q===void 0)throw Error("invariant: data is undefined");C=b*W;f=(b+1)*W;
V=Math.max(0,u.start-C);N=Math.min(u.end+1,f)-(V+C);h=new Uint8Array(q.buffer,V,N);D.C.append(h);D.loaded+=N;D.loaded<u.length&&D.DG.IG((0,g.T3)(),D.loaded);b++;return B.Nv(2)})};
Mcn=function(D,Q,m,P){var W=this;P=P===void 0?{}:P;this.policy=Q;this.DG=m;this.U=P;this.status=0;this.response=void 0;this.C=0;this.J=this.N=!1;this.errorMessage="";this.j=function(L){if(L)if(W.status=L.status,L.ok&&L.body&&W.status!==204)W.status=W.status||242,W.T=L.body.getReader(),W.VF()?W.T.cancel().catch(function(){}):(W.responseHeaders=L.headers,W.DG.vL(),Gn_(W));
else W.onDone();else W.onError(Error("null_response"))};
this.Z=function(L){var u=(0,g.T3)();W.VF()||(L.done?(W.T=void 0,W.onDone()):(L=L.value,W.C+=L.length,W.S.append(L),Gn_(W),W.DG.IG(u,W.C)))};
this.onError=function(L){W.errorMessage=String(L);W.N=!0;W.onDone()};
this.S=new Lh;this.B=window.AbortController?new AbortController:void 0;this.start(D)};
Gn_=function(D){D.T.read().then(D.Z,D.onError).then(void 0,PD)};
c3w=function(D,Q,m){var P=this;m=m===void 0?{}:m;this.DG=Q;this.C=this.status=0;this.VF=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(m.method||"GET",D);if(m.headers){D=m.headers;Q=g.T(Object.keys(D));for(var W=Q.next();!W.done;W=Q.next())W=W.value,this.xhr.setRequestHeader(W,D[W])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(L){P.y8(L)};
D=P4(function(L){P.onDone(L)});
this.xhr.addEventListener("load",D,!1);this.xhr.addEventListener("error",D,!1);m.body?this.xhr.send(m.body):this.xhr.send();this.xhr.addEventListener("progress",P4(function(L){P.onProgress(L)}),!1)};
En=function(D,Q,m,P,W){if(D2(D.Mb))return new r3h(D,m);D=D.AD();return P?eAh()?new nF(D,Q,m,W):new Mcn(D,Q,m,W):new c3w(D,m,W)};
gY=function(D,Q){g.v.call(this);var m=this;this.policy=D;this.EW=Q;this.C=0;this.S=null;this.Mm=[];this.T=null;this.It={XI:function(){return m.EW}};
this.EW.length===1||g.VT(this.EW,function(P){return!!P.range})};
BO=function(D,Q,m){D.S&&(uo(D.S,Q),Q=D.S,D.S=null);for(var P=0,W=0,L=g.T(D.EW),u=L.next();!u.done;u=L.next())if(u=u.value,u.range&&P+u.T<=D.C)P+=u.T;else{if(sW(u)&&!m&&D.C+Q.totalLength-W<P+u.T){D.S=Q.split(W).Gx;break}a:{var t=D;var z=u,b=D.C-P,q=Q.totalLength-W;z.range&&(q=Math.min(z.T-b,q));z=yLk(z,z.C+b,q,z.range?z.C+b+q===z.range.length:!!m);b=d3(Q,W,q);z=new Bl(z,b);if(t.policy.useUmp&&t.Mm.length&&(b=g.kF(t.Mm[t.Mm.length-1],z))){t.Mm[t.Mm.length-1]=b;t=q;break a}t.Mm.push(z);t=q}D.C+=t;W+=
t;P+=u.T;if(W===Q.totalLength)break}};
wY=function(D,Q,m,P,W,L,u,t,z){z=z===void 0?!1:z;g.v.call(this);this.DG=D;this.policy=Q;this.ek=m;this.NB=P;this.timing=W;this.logger=L;this.B=u;this.Pd=t;this.N=z;this.lastError=null;this.S=0;this.J=!1;this.T=0;this.C=new g.pJ(this.r8h,this.policy.PO,this)};
Dkh=function(D){D.NB.j=(0,g.T3)();D=kx(D);D.C=(0,g.T3)();D.started+=1};
P56=function(D,Q,m,P){D.timing.aL((0,g.T3)(),Q,m);Q=D.NB;Q.T=0;Q.J=0;Q.U=0;Ag(kx(D));P&&(P=kx(D),P.T+=1);if((P=D.Pd)!=null&&(D=D.ek.Mb,!((0,g.T3)()<P.N+3E5||D2(D))&&(Q=c4(D))&&Q57(Q)&&P.C===Jp(Q))){var W;QI(D)&&(W=c4(mu(D)));g.wb("yt-player-bandaid-host",{primary:Q,secondary:W},864E3);P.N=(0,g.T3)();mkw(P,{primary:Q,secondary:W})}};
lO=function(D){if(D.lastError==="ump.spsrejectfailure")D.timing.TO||uOP(D.NB,!1,D.ek,D.policy,D.B);else{if(D.lastError==="net.timeout")D.timing.WG((0,g.T3)());else{var Q=D.timing;VG(Q,(0,g.T3)(),Q.J)}if(D.lastError==="net.nocontent")++D.NB.U;else{if((Q=D.lastError==="net.timeout"||D.lastError==="net.connect"||D.lastError==="net.closed")&&!D2(D.ek.Mb)){var m=kx(D);m.timedOut+=1}else m=kx(D),m.S+=1;D.timing.TO||uOP(D.NB,Q,D.ek,D.policy,D.B)}}D.DG.pM(5)};
IV=function(D,Q,m,P,W){return Q>=400?(D.lastError="net.badstatus",!0):(W===void 0?0:W)?(D.lastError="ump.spsrejectfailure",!0):m||P!==void 0&&P?!1:(D.lastError=Q===204?"net.nocontent":"net.connect",!0)};
RV=function(D,Q){if(D.policy.E0)return!1;var m=Q.getResponseHeader("content-type"),P=Q.DC();D=!P||P<=D.policy.BE;return(!Q.Gj()||!m||m.indexOf("text/plain")!==-1)&&D};
id9=function(D,Q){var m="";Q=Q.Je();Q.totalLength<=D.policy.BE&&(m=Wuh(D,bo(Q)));return m};
Wuh=function(D,Q){var m=fh(Q);return aA(m)?(D.logger.debug(function(){return"Redirecting to "+m}),m):""};
kx=function(D){return xg(D.B,c4(D.ek.Mb))};
s5$=function(D){var Q=D.timing.Rb();Q.shost=c4(D.ek.Mb);return Q};
Luk=function(D,Q){return(D==null?void 0:D.maxWidth)>(Q==null?void 0:Q.maxWidth)||(D==null?void 0:D.maxHeight)>(Q==null?void 0:Q.maxHeight)};
uV7=function(D,Q){for(var m=g.T(Q.keys()),P=m.next();!P.done;P=m.next())if(P=Q.get(P.value),P.length!==0){g.pV(P,function(t,z){return z.maxFramerate-t.maxFramerate});
for(var W=[P[0]],L=0,u=1;u<P.length;u++)Luk(P[u],W[L])&&(W.push(P[u]),L++);D=D.concat(W)}return D};
tJj=function(D,Q){var m=[];Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next()){P=P.value;var W=dk9[P]||0;D.S&&W>D.S||m.push(P)}return m};
Un=function(D,Q,m){var P=zf4[D]||[];m.V("html5_shorts_onesie_mismatched_fix")&&(P=bdm[D]||[]);Q.push.apply(Q,g.on(P));m.V("html5_early_media_for_drm")&&Q.push.apply(Q,g.on(qmm[D]||[]))};
yg_=function(D,Q){var m=g.Kz(D),P=D.G(),W=P.J;P=P.V("html5_shorts_onesie_mismatched_fix");var L=D.LU();if(P){if(!W.C){if(L&&HO)return HO;if(KF)return KF}}else if(KF&&!W.C)return KF;var u=[],t=[],z={},b=ju.concat(C57);P&&(b=ju.concat(ogP));D.V("html5_early_media_for_drm")&&(b=b.concat(f2m),D.V("allow_vp9_1080p_mq_enc")&&b.push(VJu));var q=[].concat(g.on(Nyk));D.V("html5_iamf_audio_onesie_fmt")&&q.push(["773"]);b=g.T(b);for(var C=b.next();!C.done;C=b.next()){var f=!1;C=g.T(C.value);for(var V=C.next();!V.done;V=
C.next()){V=V.value;var N=Ke(V,L&&P);if(N&&N.video&&!(Sk(N)&&!m.QF&&N.video.qualityOrdinal>m.vc)){var h=g.WF(D.G().experiments,"html5_drm_byterate_soft_cap");h>0&&BE7(N)&&N.yF>h||(f?(u.push(V),Un(V,u,D)):(N=Yf(m,N,W),N===!0?(f=!0,u.push(V),Un(V,u,D)):z[V]=N))}}}q=g.T(q);for(b=q.next();!b.done;b=q.next())for(b=g.T(b.value),f=b.next();!f.done;f=b.next())if(f=f.value,(C=XB_(f))&&C.audio&&(D.V("html5_onesie_51_audio")||!rO(C)&&!Ga(C)))if(C=Yf(m,C,W),C===!0){t.push(f);Un(f,t,D);break}else z[f]=C;if(!D.V("html5_enable_audio_quality_setting"))for(D=
g.T(["141","774"]),q=D.next();!q.done;q=D.next())q=q.value,t.includes(q)&&(g.hM(t,q),z[q]="blkhqa");m.C&&Q("orfmts",z);if(P)return W.C&&(W.C=!1,HO=KF=void 0),L?HO={video:u,audio:t}:KF={video:u,audio:t};KF={video:u,audio:t};W.C=!1;return KF};
g.Ty_=function(D,Q,m){var P=m.J,W=[],L=[],u=m.V("html5_shorts_onesie_mismatched_fix");D=D.LU();var t=ju.concat(C57);u&&(t=ju.concat(ogP));m.V("html5_early_media_for_drm")&&(t=t.concat(f2m),m.V("allow_vp9_1080p_mq_enc")&&t.push(VJu));var z=[].concat(g.on(Nyk));m.V("html5_iamf_audio_onesie_fmt")&&z.push(["773"]);t=g.T(t);for(var b=t.next();!b.done;b=t.next()){b=g.T(b.value);for(var q=b.next();!q.done;q=b.next()){q=q.value;var C=Ke(q,D&&u);if(C&&C.video){var f=g.WF(m.experiments,"html5_drm_byterate_soft_cap");
if(!(f>0&&BE7(C)&&C.yF>f)&&Yf(Q,C,P)===!0){W.push({videoCodec:Zd7[aN[q]],maxWidth:C.video.width,maxHeight:C.video.height,maxFramerate:C.video.fps});break}}}}u=g.T(z);for(D=u.next();!D.done;D=u.next())for(D=g.T(D.value),z=D.next();!z.done;z=D.next())if(z=z.value,(t=XB_(z))&&t.audio&&(m.V("html5_onesie_51_audio")||!rO(t)&&!Ga(t))&&Yf(Q,t,P)===!0){L.push({audioCodec:Fur[aN[z]],numChannels:t.audio.numChannels});break}return{videoFormatCapabilities:W,audioFormatCapabilities:L}};
Eg7=function(D){var Q,m={},P=D.Ch,W=D.nh,L=P.getVideoData(),u=F2(0),t=P.getVisibilityState(),z;if((z=D.oI)==null?0:z.Ad)m.Dc=W.Dc;u&&(m.au=u,m.lastManualDirection=a1$(),u=Y7u()||0,u>0&&(u=(W.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.T3)())-u,W.V("html5_use_date_now_for_local_storage")?u>0&&(m.timeSinceLastManualFormatSelectionMs=u):m.timeSinceLastManualFormatSelectionMs=u));u=W.V("html5_use_streamer_bandwidth_for_low_latency_live")&&L.isLowLatencyLiveStream;if(W.schedule.TO&&!u){var b;
u=W.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((b=D.oI)==null||!b.Ft):!1;m.nK=GZ(W.schedule,!u)}u=g.ek.medium;z=Math.floor(u*16/9);(b=L.LU())||(L.S&&L.T&&L.T.videoInfos.length!==0?(b=L.T.videoInfos[0],b=!!b.video&&b.video.width<b.video.height):b=!1);var q=b;b=q?u:z;z=q?z:u;q=P.Mg();u=q.width;q=q.height;m.wP=Math.max(u,b);m.VD=Math.max(q,z);W.V("html5_enable_client_viewport_size_logging")&&W.xl()&&(b=P.ip(),P.dc("cvw",{w:u,h:q,cvw:m.wP,cvh:m.VD,cvu:b.S}));m.visibility=t;m.Zdc=FE();m.I0=
P.u6()*1E3;t=D.Ch.cS();var C,f,V,N,h;m.bOy={defaultPolicy:(t==null?void 0:(Q=t.E9)==null?void 0:Q.S)||0,smooth:(t==null?void 0:(C=t.Di)==null?void 0:C.S)||0,visibility:(t==null?void 0:(f=t.x8)==null?void 0:f.S)||0,NC:(t==null?void 0:(V=t.h_)==null?void 0:V.S)||0,performance:(t==null?void 0:(N=t.yI)==null?void 0:N.S)||0,speed:(t==null?void 0:(h=t.t3)==null?void 0:h.S)||0};var B;m.e6v=(t==null?void 0:(B=t.va)==null?void 0:B.S)||0;Q=L.fetchType==="onesie"||L.R4?[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},
{trackType:2,isHdr:!0},{trackType:3,isHdr:!1},{trackType:3,isHdr:!0},{trackType:4,isHdr:!1},{trackType:4,isHdr:!0},{trackType:5,isHdr:!1},{trackType:5,isHdr:!0}]:[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0}];m.bu=D.authorizedFormats&&D.authorizedFormats.length>0?{authorizedFormats:D.authorizedFormats}:{authorizedFormats:Q};D.sabrLicenseConstraint&&(m.bu.sabrLicenseConstraint=D.sabrLicenseConstraint);if(W.V("html5_onesie_media_capabilities")||W.V("html5_enable_server_format_filter"))m.FP=
3;W.V("html5_onesie_audio_only_playback")&&Ib(L)&&(m.FP=1);var J;((J=D.oI)==null?0:J.kB)&&D.Uc&&(m.FP=m.FP===void 0?7:m.FP|4);J=L.gi?L.gi:g.Kz(L);W.V("html5_onesie_media_capabilities")&&(m.mediaCapabilities=g.Ty_(L,J,W));var k;if((k=D.oI)==null?0:$x(k)){C=W.J;k=[];Q=[];f=new Map;V=Array.from(C.S.values());V=g.T(V);for(N=V.next();!N.done;N=V.next())h=N.value,h.ZQ?Q.push({audioCodec:Fur[h.FT],numChannels:h.numChannels,spatialCapabilityBitmask:hfn[h.FT]}):(B=Zd7[h.FT],N={videoCodec:B,maxWidth:h.maxWidth||
0,maxHeight:h.maxHeight||0,maxFramerate:h.maxFramerate||0,is10BitSupported:h.oh||!1},h.maxBitrateBps&&(N.maxBitrateBps=h.maxBitrateBps,t=Ke(h.itag),b=void 0,((b=t)==null?0:b.video)&&Yf(J,t,C)===!0&&(t=t.yF*8,t>N.maxBitrateBps&&(N.maxBitrateBps=t))),h=B+"_"+h.oh,B=f.get(h)||[],B.push(N),f.set(h,B));k=uV7(k,f);C={};W.V("html5_ssff_denylist_opus_low")&&(C={itagDenylist:[249,350]});m.mediaCapabilities={videoFormatCapabilities:k,audioFormatCapabilities:Q,hdrModeBitmask:3,perPlaybackAttributes:C}}var R;
if((R=D.oI)==null?0:R.S){m.S9=J.S9;var e;m.vc=(e=D.oI)==null?void 0:e.vc}W.PO&&(m.CR=W.PO);m.fQ=D.OB;m.Un=D.Un;m.qw=D.qw;m.hG=D.hG;D.yO&&(m.PQc=(0,g.T3)()-D.yO);D.isPrefetch&&W.V("html5_report_prefetch_requests")&&(m.isPrefetch=!0);hY||(m.ezW=!0);R=X$(W.schedule)*1E3;R>0&&(m.zk=R);var a;((a=D.oI)==null?0:a.Zd)&&D.e2&&D.e2<Infinity&&(m.e2=D.e2);P=P.getPlaybackRate();P!==1&&(m.playbackRate=P);var G;((G=D.oI)==null?0:G.Ze)&&D.L0&&(m.yg=D.yg,m.Qf=D.Qf,m.L0=D.L0);Tn()===1&&(m.Ec=1);W.V("html5_sabr_force_proxima")&&
(m.Mt=1);G=g.WF(W.experiments,"html5_sabr_force_max_network_interruption_duration_ms");m.RzW=G>0?G:W.schedule.interruptions[0]||0;var S;if((S=D.oI)==null?0:S.cY)m.C2=D.C2;W.l0&&(m.audioTrackId=W.l0);ov(L)&&!m.audioTrackId&&(W.V("html5_fill_default_mosaic_audio_track_id")||(D=Aw$(L),m.audioTrackId=D),L==null||L.dc("misstrkchg",{"default":m.audioTrackId}));if(L=Bi7())m.detailedNetworkType=ngw[L]||ngw.other;W.V("html5_enable_voice_boost")&&(m.JYO=W.Km);return m};
eu=function(D,Q,m,P,W,L,u){var t={};Q&&(t.gU=Q);if(!D)return t;t.playbackCookie=m==null?void 0:m.playbackCookie;W&&(t.tX=W);t.f$=[];t.gz=[];if(u==null?0:u.size)for(Q=g.T(u.values()),m=Q.next();!m.done;m=Q.next())t.gz.push(m.value);if(D.sabrContextUpdates.size>0)for(Q=g.T(D.sabrContextUpdates.values()),m=Q.next();!m.done;m=Q.next())ggk(t,m.value,P);H1(D)&&L&&ggk(t,L,P);P=D.G().S;t.clientInfo={clientName:By4[P.c.toUpperCase()]||0};P.cbrand&&(t.clientInfo.deviceMake=P.cbrand);P.cmodel&&(t.clientInfo.deviceModel=
P.cmodel);P.cver&&(t.clientInfo.clientVersion=P.cver);P.cos&&(t.clientInfo.osName=P.cos);P.cosver&&(t.clientInfo.osVersion=P.cosver);P=D.G();P.V("html5_sabr_enable_server_xtag_selection")&&P.g2&&(t.clientInfo.hl=P.g2);D.bx&&(t.bx=D.bx);return t};
ggk=function(D,Q,m){var P=Q.type||0;(m==null?0:m.has(P))?D.gz.push(Q):D.f$.push(P)};
LF=function(D,Q,m,P,W,L){var u=L===void 0?{}:L;var t=u.Ro===void 0?[]:u.Ro;var z=u.Do===void 0?!1:u.Do;var b=u.o2===void 0?0:u.o2;var q=u.poToken===void 0?"":u.poToken;var C=u.Pd===void 0?void 0:u.Pd;var f=u.OU===void 0?"":u.OU;var V=u.iH===void 0?0:u.iH;var N=u.zm===void 0?new Uint8Array(0):u.zm;var h=u.mA===void 0?!1:u.mA;L=u.Hj===void 0?0:u.Hj;u=u.gU===void 0?void 0:u.gU;hp.call(this,Q,W);var B=this;this.policy=D;this.logger=new g.EW("dash/request");this.hA=this.al=0;this.Xr=!1;this.VW=this.C0=
null;this.Vh=!1;this.zm=this.iH=null;this.XO=this.IJ=!1;this.yJ=null;this.Hj=this.Dg=0;this.ow=!1;this.It={pM:function(k){B.pM(k)},
i10:function(){return B.JN},
Nhx:function(k){B.JN=k},
nZT:function(k){B.al=k},
Do9:function(k){B.xJ.lastError=k},
tS:function(){return B.xhr}};
this.timing=new yG(this,m);this.Do=z;this.iH=V;this.zm=N;this.ek=g.od(this.info,this.policy,P);this.ek.set("rn",this.eP().toString());this.ek.set("rbuf",(b*1E3).toFixed().toString());this.Do&&this.ek.set("smb","1");this.policy.Tq&&q&&this.ek.set("pot",q);f&&this.ek.set("bbs",f);this.policy.useUmp&&!D2(this.ek.Mb)&&(this.Xf=new TD(this),this.ek.set("ump","1"),this.ek.set("srfvp","1"));if(D=this.policy.f0?this.policy.xR&&!isNaN(this.info.e1)&&this.info.e1>this.policy.BN?!1:!0:!1)Q=null,this.policy.QT&&
this.policy.QL?Q=[1]:h&&(Q=[]),Q!=null&&(this.policy.vT&&Q.push(2),this.ek.set("defsel",Q.join(",")));this.xJ=new wY(this,this.policy,this.ek,this.info.NB,this.timing,this.logger,P,C);this.Ro=t||null;this.dU=wWm(this);Dkh(this.xJ);P=void 0;if(this.policy.Jg||this.Xf||this.policy.wc)P={method:"POST"},t=(0,g.vO)([120,0]),C={},this.policy.TQ&&u&&(u=eu(void 0,u),C.Kg=u),this.policy.EG&&this.zm&&(C.videoPlaybackUstreamerConfig=this.zm),this.policy.wc&&(u=this.info.B)&&Object.assign(C,u),Object.keys(C).length>
0?P.body=g.GW(C,g.H6):P.body=t;if(this.iH&&this.zm){this.ek.set("iwts","1");P={method:"POST"};u={hG:this.iH*1E3};var J;t=(J=this.info.B)==null?void 0:J.iG;J=g.GW({S0:u,iG:t||void 0,videoPlaybackUstreamerConfig:this.zm},g.H6);P.body=J}try{this.xhr=En(this.ek,this.policy.U,this.timing,D,P),this.xJ.C.start(),L&&(this.DL=new g.pJ(this.W7,L,this),this.DL.start(L+(this.timing.uE.Z.S1()||0)*1E3)),this.policy.Lb&&NV(this.timing,this.AD()),this.logger.debug(function(){return"Sent, itag="+B.ek.get("itag")+
" seg="+B.info.EW[0].J0+" range="+B.ek.get("range")+" time="+Math.round(B.info.EW[0].J)+"-"+Math.round(g.fV(B.info.EW).N)+" rtp="+(B.timing.RK()-Date.now()).toFixed(0)}),g.Fd(function(){})}catch(k){ko7(this,k,!0)}};
wWm=function(D){if(!(Cf(D.info)&&D.info.Ov()&&D.policy.ZD&&D.Ro)||D.info.NB.T>=2||F2()>0||!XF9())return!1;var Q=D.ek.get("aitags");if(!Q)return!1;Q=wh(Q).split(",");for(var m=[],P=g.T(D.Ro),W=P.next();!W.done;W=P.next())W=W.value,g.FK(Q,W)&&m.push(W);if(!m.length)return!1;D.ek.set("altitags",g.gh(m.join(",")));return!0};
ko7=function(D,Q,m){m=m===void 0?!1:m;g.JG(Q);D.xJ.lastError="player.exception";D.errorMessage=Q.name+"_"+Q.message;m?g.Fd(function(){lO(D.xJ)}):lO(D.xJ)};
Jg_=function(D,Q){D.timing.TO=!0;D.xhr.Gj()&&D.timing.Uf();if(D.policy.yn){var m;(m=D.DL)==null||m.stop()}BO(D.JN,Q,!1)};
l2m=function(D,Q){D.info=Q;if(D.JN){var m=D.JN;Q=Q.EW;(Q.length!==m.EW.length||Q.length<m.Mm.length)&&jNm("dash/request",260511119,""+Q.length,""+m.EW.length,""+m.Mm.length);m.EW=Q;for(var P=Q[0].range,W=new Lh,L=0;L<m.Mm.length;L++)uo(W,m.Mm[L].C);for(L=0;L<m.Mm.length;L++){m.Mm[L].info=Q[L];var u=Q[L].range;m.Mm[L].C=d3(W,u.start-P.start,u.length)}}D.dU=!1};
I2h=function(D){D.Dg&&(D.xhr.status=D.Dg,D.al=D.Dg)};
On=function(D,Q){fF.call(this,D,Q);this.u0=!0;this.Kh=!1;this.k9=this.x9=0;this.Y9=NaN};
Rfn=function(D,Q,m){var P=D.LZ?Math.max(Q,m/D.LZ):Q,W=D.uE.C.T;W&&(P=Q,D.LZ&&(P=Math.max(Q,m/D.LZ*W)));AY(D.uE,Q,m,P)};
Yx=function(D){this.C={};this.logger=new g.EW(D)};
aV=function(D){Yx.call(this,"sabr");this.DG=D};
Ap=function(D){g.v.call(this);this.B=D;this.logger=new g.EW("onesie");this.Pn=new Map;this.C=this.S=!1;this.oI=this.UW=null;this.T=!1};
Uk7=function(D,Q,m){D.Pn.get(Q).onProgress=m};
Xl=function(D,Q){D.Pn.has(Q)&&(pF?D.Pn.get(Q).m8.clear():D.Pn.get(Q).Mm=new Lh,xx(D,Q),D.C=!0)};
Hd6=function(D){for(var Q=g.T(D.Pn),m=Q.next();!m.done;m=Q.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;P.nu||Xl(D,m)}};
Kum=function(D,Q){Q=D.Pn.get(Q);if(!Q)return 0;D=0;if(Q.EW.length>0){Q=g.T(Q.EW);for(var m=Q.next();!m.done;m=Q.next()){var P=void 0;D+=((P=m.value.range)==null?void 0:P.length)||0}return D}if(Q.kE.length>0)for(m=g.T(Q.kE),P=m.next();!P.done;P=m.next())D+=P.value.uR||0;return D+Q.Av};
Su=function(D,Q){if(pF){var m=0;D=D.Pn.get(Q);if(D==null||!D.m8)return 0;D=g.T(D.m8.values());for(Q=D.next();!Q.done;Q=D.next())m+=Q.value.data.totalLength;return m}return((m=D.Pn.get(Q))==null?void 0:m.Mm.totalLength)||0};
rY=function(D,Q){D=D.Pn.get(Q);if(pF){if(D==null||!D.nu)return!1;Q=D.m8.size>0;return D.Hd.length>0||Q}return!(D==null||!D.nu)&&!(D==null||!D.Mm.totalLength)};
j5u=function(D,Q){var m=D.Pn.get(Q),P=Kum(D,Q),W=!P&&!!m.bytesReceived;if(pF){var L;if((L=D.UW)==null?0:L.VX){D=g.T(m.m8.values());for(Q=D.next();!Q.done;Q=D.next())if(!Q.value.MR)return!1;return W}}else if(L=D.YQ(Q),W&&D.S&&L!==void 0)return L;return(W||m.bytesReceived===P)&&m.CE+Su(D,Q)===m.bytesReceived};
$k7=function(D,Q,m){D.Pn.set(Q,{Mm:new Lh,CE:0,bytesReceived:0,Av:0,jy:!1,TE:!1,YQ:!1,ZQ:m,zX:[],EW:[],kE:[],nu:!1,m8:new Map,gr:new Map,Hd:[]});D.logger.debug(function(){return"[initStream] formatId: "+Q})};
ef4=function(D,Q,m,P){m.EW.push.apply(m.EW,g.on(P));if(pF){m.gr.has(Q)||m.gr.set(Q,[]);var W;(W=m.gr.get(Q)).push.apply(W,g.on(P))}else if(m.JN)for(D=g.T(P),Q=D.next();!Q.done;Q=D.next())m.JN.EW.push(Q.value);else{m.JN=new gY(D.oI,[].concat(g.on(m.EW)));var L;((L=D.oI)==null?0:L.Tx)&&g.O(D,m.JN)}};
vg_=function(D,Q,m){var P,W=(P=D.UW)==null?void 0:P.T.get(Q);if(!W)return[];if(m.Yu){var L;return((L=W.wC(0,m.clipId))==null?void 0:L.EW)||[]}if(W.UT()){var u=m.startMs,t=m.durationMs;P=1E3;var z;if(((z=D.oI)==null?0:z.S)&&m.timeRange){var b;u=(b=m.timeRange.startTicks)!=null?b:-1;var q;t=(q=m.timeRange.XP)!=null?q:-1;var C;P=(C=m.timeRange.timescale)!=null?C:-1}if(m.wU<0||m.Zj<0||t<0||u<0||m.uR<0||P<0)return Xl(D,Q),[];D=Pl(m.wU,m.uR);Q=m.ZV||0;return[new i3(3,W,D,"makeSliceInfosMediaBytes",m.Zj-
1,u/P,t/P,Q,D.length-Q,void 0,m.ML,m.clipId)]}if(m.Zj<0)return Xl(D,Q),[];var f;return((f=D.UW)==null?0:f.VX)?(Q=W.EY,z=Q*W.info.yF,b=m.ZV,((t=D.oI)==null?0:t.zB)&&m.timeRange&&!b&&(u=m.timeRange.startTicks/m.timeRange.timescale),[new i3(3,W,void 0,"makeSliceInfosMediaBytes",m.Zj,u,Q,b,z,!0,m.ML,m.clipId)]):[]};
Odk=function(D,Q,m){D.UW=Q;D.oI=m;Q=g.T(D.Pn);for(m=Q.next();!m.done;m=Q.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;for(var W=g.T(P.zX),L=W.next();!L.done;L=W.next()){L=L.value;var u=vg_(D,m,L);ef4(D,L.T9,P,u)}}};
GD=function(D,Q,m,P){D.logger.debug(function(){return"[addStreamData] formatId: "+m+",headerId: "+Q+" bytes: "+P.totalLength});
(D=D.Pn.get(m))&&!D.TE&&(pF?(D.m8.has(Q)||D.m8.set(Q,{data:new Lh,F8:0,MR:!1}),uo(D.m8.get(Q).data,P)):uo(D.Mm,P),D.bytesReceived+=P.totalLength,D.jy=!0)};
xx=function(D,Q){D.logger.debug(function(){return"[closeStream] formatId: "+Q});
var m=D.Pn.get(Q);if(m&&!m.TE){m.TE=!0;if(m.onProgress)m.onProgress();Ymn(D)&&D.B.Ie()}};
Ymn=function(D){D=g.T(D.Pn.values());for(var Q=D.next();!Q.done;Q=D.next())if(!Q.value.TE)return!1;return!0};
a2P=function(D){pF=D};
MV=function(D,Q,m,P,W,L,u){g.v.call(this);this.policy=D;this.info=Q;this.UW=m;this.DG=W;this.logger=new g.EW("sabr");this.Xf=new TD(this);this.pw=new aV(this);this.gs=new Ap(this);this.state=1;this.Pu=!1;this.n_=0;this.clipId="";this.Pi=-1;this.wV=0;this.Ii=-1;this.g_=this.ow=this.Zl=!1;this.policy.gj?this.Kn=new On(this,L):this.Kn=new yG(this,L);this.ek=this.policy.cY?Q.Bo:Agn(Q,this.policy,P);this.ek.set("rn",""+this.eP());this.ek.set("alr","yes");Odk(this.gs,m,D);this.xJ=new wY(this,this.policy,
this.ek,Q.NB,this.Kn,this.logger,P,u,this.policy.enableServerDrivenRequestCancellation);Dkh(this.xJ);var t;if((t=this.policy)==null?0:t.Tx)g.O(this,this.gs),g.O(this,this.xJ);D=Q.C;Q={method:"POST",body:D};D&&(this.wV=D.length);try{this.xhr=En(this.ek,this.policy.U,this.Kn,hY,Q),this.policy.Lb&&NV(this.Kn,this.AD()),this.xJ.C.start()}catch(z){g.l4(z)}};
pWr=function(D){D.policy.CD&&D.gI&&!D.g_?D.g_=!0:D.Kn.Uf()};
xk9=function(D,Q){var m=-1,P=-1,W=-1,L;if((L=D.D0)==null?0:L.items)for(D=g.T(D.D0.items),L=D.next();!L.done;L=D.next())L=L.value,Q<L.c8||L.c8<m||(m=L.c8,P=L.eS,W=L.minReadaheadMs);return{Zf:m,eS:P,A1:W}};
XWm=function(D){this.S=D;this.j=this.x9=this.U=this.wc=this.B=this.J=this.TO=this.N=this.t0=this.Z=this.u0=this.Kh=this.QF=this.Iy=0;this.ticks={}};
cO=function(D){D.Iy||(D.Iy=(0,g.T3)(),g.i1("mb_s",D.Iy,D.S))};
Smr=function(D){D.QF||(D.QF=(0,g.T3)(),g.i1("ovfs_rp",D.QF,D.S))};
rg$=function(D){D.Kh||(D.Kh=(0,g.T3)(),g.i1("oafs_rp",D.Kh,D.S))};
Gor=function(D){D.J||(D.J=(0,g.T3)(),g.i1("vda",D.J,D.S),D.B&&(g.S0(),GP(4)))};
MJu=function(D){D.B||(D.B=(0,g.T3)(),g.i1("ada",D.B,D.S),D.J&&(g.S0(),GP(4)))};
cgw=function(D){D.wc||(D.wc=(0,g.T3)(),g.i1("vis_a",D.wc,D.S))};
DAk=function(D){D.U||(D.U=(0,g.T3)(),g.i1("ais_a",D.U,D.S))};
Qdj=function(D){D.x9||(D.x9=(0,g.T3)(),g.i1("vrb_f",D.x9,D.S))};
mAj=function(D){D.j||(D.j=(0,g.T3)(),g.i1("arb_f",D.j,D.S))};
P3k=function(D,Q,m){var P=Q instanceof MV&&!D.T&&!D.C,W=!D.T&&(m==null?void 0:m.info.video);m=!D.C&&(m==null?void 0:m.info.audio);Q.state===3?((W||P)&&D.tick("vrr"),(m||P)&&D.tick("arr")):Q.state===4?W?(D.T=Q.AD(),g.S0(),GP(4)):m&&(D.C=Q.AD()):Q instanceof LF&&Q.f2()&&W&&(g.S0(),GP(4))};
Wwk=function(D){return!!D.C&&!!D.T};
D7=function(D,Q,m,P,W,L){g.iR.call(this);var u=this;this.loader=D;this.UW=Q;this.policy=m;this.videoTrack=P;this.audioTrack=W;this.TO=this.S=null;this.N=this.U=NaN;this.Z=0;this.j=NaN;this.T=null;this.QF=this.Kh=NaN;this.t0=new Map;this.Iy=this.J=this.B=NaN;this.It={pI9:function(){return u.C}};
this.C=L?1:0};
sd4=function(D,Q,m,P){P=P===void 0?!0:P;if(m&&!D.t0.has(Q.J0)){for(var W=Q.startTime,L=[],u=0;u<m.S.length;u++){var t=m.S[u],z=W;W=z+m.C[u];L.push({startTime:z,endTime:W,adCpn:t})}D.t0.set(Q.J0,L)}if(D.policy.tY)if(W=D.TO&&Q.J0===D.TO.J0+1,D.TO=Q,L=D.S&&Q.J0===D.S.J0+1,L=D.S&&W&&L&&D.S.OC.event!=="stop"&&D.S.OC.event!=="predictStart",u=Q.OC||null,t=D.videoTrack.S.index.MY(),t=Q.J0>=t,z=D.UW.isManifestless,u){var b;if(((b=D.S)==null?void 0:b.OC.event)==="predictStart"&&D.S.J0<Q.J0&&u.event==="stop"){var q;
D.loader.handleError("ssdai.missingstartcueevent",{lastpredict:((q=D.S)==null?void 0:q.J0)||0,csq:Q.J0},0)}D.S={OC:u,J0:Q.J0,Zg:!!m,ri:P};t?QL(D,u,Q.J0):z&&(W?L?QL(D,u,Q.J0):u.event==="continue"||u.event==="stop"?ifn(D,Q):QL(D,u,Q.J0):QL(D,u,Q.J0))}else L&&ifn(D,Q),D.C===4&&mc(D,5,"qend")};
QL=function(D,Q,m){Q.startSecs+=isNaN(D.Z)?0:D.Z;D=D.UW;D.t0.push(Q);D.publish("cuepointsadded",m)};
u_9=function(D,Q,m){if(D.C!==0&&m&&Q.EW[0].ri()){var P=Q.EW[0].J0,W=Q.EW[0].J;Q=Q.isDecorated();Lwh(D,P,W,Q,m)}};
Lwh=function(D,Q,m,P,W){var L;Q!==((L=D.S)==null?void 0:L.J0)||D.C===1||P||D.S.OC.event==="predictStart"||D.dc("sdai",{undecevt:1,sq:Q,mt:m,evt:D.S.OC.event},!0);Q>D.N&&(D.N=NaN,D.U=NaN);D.S&&D.S.J0===Q?dAw(D,Q,m,D.S,W):D.C===1&&mc(D,5,"noad")};
tsr=function(D,Q,m,P,W){P.Zg?mc(D,4,"cue"):(D.N=Q,D.U=m,D.dc("sdai",{joinad:D.C,sg:D.N,st:D.U.toFixed(3)}),D.j=Date.now(),mc(D,2,D.C===3?"staftpred":"join"),W.Jq(P.OC))};
dAw=function(D,Q,m,P,W){if(W&&P){var L=P.OC,u=W.uM(L);L.event==="predictStart"&&(D.Iy=Q);D.dc("sdai",{onqevt:L.event,sq:Q,mt:m,gab:u,cst:L.startSecs,cueid:D.policy.Xo&&(u||L.event==="start")?L.identifier:void 0},!0);if(u)L.event!=="predictStart"?(L.event==="start"&&D.Iy===Q-1&&D.dc("sdai",{gabonstart:Q}),tsr(D,Q,m,P,W)):D.policy.Kd?mc(D,3,"predict"):(Q+=Math.max(Math.ceil(-L.S/5E3),1),L=Math.floor(m-L.S/1E3),D.policy.C?D.J=L:D.B=Q,D.dc("sdai",{onpred:m,estsq:Q,estmt:L.toFixed(3)}),PM(D.loader,L,L,
Q),D.j=Date.now(),mc(D,3,"predict"),W.Jq(P.OC));else if(D.C===1){var t;((t=D.T)==null?0:t.Ny(m))?(PM(D.loader,m,m,Q),mc(D,4,"sk2head")):mc(D,5,"nogab")}else L.event==="predictStart"?D.policy.C&&D.J>0?(m=Math.floor(m-L.S/1E3),D.J!==m&&D.dc("sdai",{updateSt:m,old:D.J}),D.J=m):D.B>0&&(m=Q+Math.max(Math.ceil(-L.S/5E3),1),D.B!==m&&(D.dc("sdai",{updateSt:m,old:D.B}),D.B=m)):D.policy.Kd&&D.C===3&&tsr(D,Q,m,P,W)}else D.dc("sdai",{nulldec:1,sq:Q,mt:m.toFixed(3),evt:(P==null?void 0:(L=P.OC)==null?void 0:L.event)||
"none"})};
bf6=function(D,Q,m){if(D.policy.DB&&D.policy.C)return!(D.C===1||D.C===2||!D.policy.Kd&&D.C===3&&m>=D.B);if(D.C===1||D.C===2)return!1;if(D.C!==0&&Q===D.audioTrack){if(D.policy.C)return zUw(D.videoTrack,m)||zUw(D.videoTrack,m+1);D=WM(D.videoTrack);if(m>(D?D.J0:-1))return!1}return!0};
i9=function(D,Q,m){return(m<0||m===D.N)&&!isNaN(D.U)?D.U:Q};
ifn=function(D,Q){if(D.S){var m=D.S.OC.m$-(Q.startTime+D.Z-D.S.OC.startSecs);m<=0||(m=new Cd(D.S.OC.startSecs-(isNaN(D.Z)?0:D.Z),m,D.S.OC.context,D.S.OC.identifier,"stop",D.S.OC.S+Q.duration*1E3),D.dc("cuepointdiscontinuity",{segNum:Q.J0}),QL(D,m,Q.J0))}};
mc=function(D,Q,m){D.C!==Q&&(D.dc("sdai",{setsst:Q,old:D.C,r:m}),D.C=Q)};
sT=function(D,Q,m,P){(P===void 0?0:P)?mc(D,1,"seek"):Q>0&&Math.abs(Q-m)>=5&&D.C===4&&mc(D,5,"sk2t")};
qW$=function(D,Q){this.T=D;this.dc=Q;this.S="";this.C=new Map};
C37=function(D,Q,m,P,W){if(D.C.has(Q.identifier)){var L=D.C.get(Q.identifier);P>L.Nw&&(L.startTimeSecs=Q.startSecs,L.m$=Q.m$,L.event==="predictStart"&&L.Iz===5&&Q.event!=="predictStart"&&(L.nX=Date.now()),L.event=Q.event)}else L={event:Q.event,startTimeSecs:Q.startSecs,m$:Q.m$,nW:[],Nw:P,Iz:0},D.C.set(Q.identifier,L);W&&L.Iz===0&&(W.uM(Q)?L.Iz=5:(L.Iz=2,L.z1=""),L.nX=Date.now(),L.Nw=P);P>L.Nw&&(W==null||W.uM(Q),L.Nw=P);D.B&&m>-1&&m<D.B||(D.S=Q.identifier,D.T||Q.event!=="stop"||(D.S=""))};
oFh=function(D,Q){D=g.T(D.C.entries());for(var m=D.next();!m.done;m=D.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;var W=void 0,L=void 0,u=void 0;if(((W=P)==null?void 0:W.startTimeSecs)<=Q&&Q<=((L=P)==null?void 0:L.startTimeSecs)+((u=P)==null?void 0:u.m$))return m}return""};
fB$=function(D){if(!D.S)return!1;D=D.C.get(D.S);return D&&D.event!=="predictStart"&&D.Iz===5?(D==null?0:D.nX)&&Date.now()-(D==null?NaN:D.nX)>1E4?(D.Iz=1,!1):!0:!1};
Vsn=function(D){switch(D){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}};
L3=function(D,Q,m){this.audio=D;this.video=Q;this.reason=m};
u9=function(D,Q,m){this.S=D;this.reason=Q;this.token=m;this.videoId=void 0};
dF=function(D,Q,m){g.v.call(this);this.policy=D;this.B=Q;this.dc=m;this.T=new Map;this.J=0;this.N=!1;this.S="";this.C=!1};
tX=function(D,Q,m){if(m===void 0?0:m)D.N=!0;++D.J;m=6E4*Math.pow(2,D.J);m=(0,g.T3)()+m;D.T.set(Q.info.id,m)};
zy=function(D){for(var Q=g.T(D.T.entries()),m=Q.next();!m.done;m=Q.next()){var P=g.T(m.value);m=P.next().value;P=P.next().value;P<(0,g.T3)()&&D.T.delete(m)}return D.T};
NL9=function(D){return D.N&&zy(D).size>0};
b9=function(D,Q){D.S!==Q&&(D.S=Q,D.C=!0)};
y74=function(D,Q){var m;Q&&(m=g.y4(D.B.S,function(W){return W.id===Q}));
if(!m&&(m=g.y4(D.B.S,function(W){var L;return!((L=W.WY)==null||!L.isDefault)}),Q)){var P;
D.dc("iaf",{id:Q,sid:(P=m)==null?void 0:P.id})}return m};
C3=function(D,Q,m,P,W,L){var u=this;L=L===void 0?[]:L;this.loader=D;this.Kh=Q;this.policy=m;this.UW=P;this.N=W;this.XT=L;this.logger=new g.EW("dash/abr");this.S=y7;this.T=this.U=null;this.j=-1;this.u0=!1;this.nextVideo=this.C=null;this.B=[];this.k9=new Set;this.wc={};this.l0=new vA(1);this.Z=0;this.Y9=this.Iy=this.TO=!1;this.QF=0;this.GO=!1;this.t0=new Set;this.x9=!1;this.It={GI:function(){qb(u)}};
this.J=new dF(this.policy,W,function(t,z){u.loader.dc(t,z)})};
nFj=function(D,Q,m){oe(D,Q);Q=y74(D.J,m);m||Q||(Q=Zf_(D));Q=Q||D.N.S[0];D.C=D.UW.S[Q.id];qb(D);D.U=D.C;Fw$(D);TL_(D);D.T=D.nextVideo;D.U=D.C;return hUu(D)};
BLh=function(D,Q){if(EF7(D,Q))return null;if(Q.reason==="m"&&Q.isLocked())return D.logger.debug(function(){return"User sets constraint to: "+jc(Q)}),oe(D,Q),D.Z=D.B.length-1,qb(D),f3(D),D.Iy=D.Iy||D.T!==D.nextVideo,D.T=D.nextVideo,new L3(D.C,D.T,Q.reason);
Q.reason==="r"&&(D.j=-1);oe(D,Q);f3(D);if(Q.reason==="r"&&D.nextVideo===D.T)return new L3(D.C,D.nextVideo,Q.reason);gFk(D);return null};
wlr=function(D,Q,m){D.C=D.UW.S[Q];D.U=D.C;return new L3(D.U,D.T,m?"t":"m")};
kf_=function(D,Q){if(Q.info.video){if(D.T!==Q)return D.T=Q,hUu(D)}else D.Y9=D.U!==Q,D.U=Q;return null};
J7u=function(D,Q){if(Q.S.info.video&&Q.B){var m=(Q.C+Q.T)/Q.duration,P=Q.S.info.yF;m&&P&&(D.l0.X9(1,m/P),D.policy.T&&m/P>1.5&&D.loader.dc("overshoot",{sq:Q.J0,br:m,max:P}))}};
VL=function(D,Q,m){tX(D.J,Q,m===void 0?!1:m);D.j=-1;oe(D,D.S)};
lB7=function(D,Q){return new L3(D.U,D.T,Q||D.S.reason)};
gFk=function(D){if(D.T&&D.nextVideo&&Nb(D,D.T.info)<Nb(D,D.nextVideo.info)){var Q=D.S.reason;D.TO=D.TO||Q==="r"||Q==="u"||Q==="v"}};
hUu=function(D){D.u0?D.u0=!1:D.j=(0,g.T3)();D.TO=!1;D.x9=!1;return new L3(D.U,D.T,D.S.reason)};
IBu=function(D,Q){var m={};Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())if((P=P.value)&&P.video){var W=P.video.qualityOrdinal,L=m[W],u=L&&Sk(L)&&L.video.qualityOrdinal>D.policy.vc,t=W<=D.policy.vc?Sk(P):pt(P);if(!L||u||t)m[W]=P}return m};
oe=function(D,Q){D.S=Q;var m=D.N.videoInfos;if(!D.S.isLocked()){var P=(0,g.T3)();m=g.g0(m,function(t){if(t.yF>this.policy.yF)return!1;var z=this.UW.S[t.id];return zy(this.J).get(t.id)>P?!1:z.NB.T>4||z.N>4?(this.logger.debug(function(){return"Remove "+L2(t)+"; 4 load failures"}),!1):this.t0.has(+t.itag)?!1:!0},D);
NL9(D.J)&&(m=g.g0(m,function(t){return t.video.width<=854&&t.video.height<=480}))}m.length||(m=D.N.videoInfos);
var W=m;D.policy.oZ&&(W=RU4(D,W,Q));W=g.g0(W,Q.B,Q);if(D.S.isLocked()&&D.J.S){var L=g.y4(m,function(t){return t.id===D.J.S});
L?W=[L]:b9(D.J,"")}D.policy.oZ||(W=RU4(D,W,Q));W.length||(W=[m[0]]);W.sort(function(t,z){return Nb(D,t)-Nb(D,z)});
Q={};for(m=1;m<W.length;Q={Jy:void 0,Fa:void 0},m++)Q.Fa=W[m-1],Q.Jy=W[m],Q.Fa.video.width>Q.Jy.video.width?(g.TT(W,m),m--):Nb(D,Q.Fa)*D.policy.Z>Nb(D,Q.Jy)&&(g.TT(W,m-1),m--);var u=W[W.length-1];D.GO=!!D.T&&!!D.T.info&&D.T.info.FT!==u.FT;D.logger.debug(function(){return"Constraint: "+jc(D.S)+", "+W.length+" fmts selectable, max selectable fmt: "+L2(u)});
D.B=W;D.k9.clear();Q=!1;for(m=0;m<W.length;m++)Q?D.k9.add(W[m].itag):W[m].video.qualityOrdinal>=1080&&(Q=!0);UAw(D.policy,u,D.UW.VX)};
RU4=function(D,Q,m){var P=m.reason==="m"||m.reason==="s";D.policy.RD&&yL&&g.Cr&&(!P||m.S<1080)&&(Q=Q.filter(function(b){return b.video&&(!b.C||b.C.powerEfficient)}));
if(Q.length>0)if(Zj()){var W=IBu(D,Q);Q=Q.filter(function(b){return!!b&&!!b.video&&b.FT===W[b.video.qualityOrdinal].FT})}else{var L,u,t=(L=Q[0])==null?void 0:(u=L.video)==null?void 0:u.qualityOrdinal;
if(t){m=Q.filter(function(b){return!!b&&!!b.video&&b.video.qualityOrdinal===t});
var z=IBu(D,m)[t].FT;Q=Q.filter(function(b){return!!b&&!!b.video&&b.FT===z})}}return Q};
Hf6=function(D,Q){for(var m=0;m+1<D.B.length&&D.B[m].video.quality==="tiny";)m++;var P=mX(D.Kh)/D.policy.Z;return Nb(D,Q.info)+Nb(D,D.B[m])>P};
qb=function(D){if(!D.C||!D.policy.B&&!D.C.info.WY){var Q=D.N.S;D.C&&(Q=Q.filter(function(P){return P.audio.S===D.C.info.audio.S}),Q.length||(Q=D.N.S));
D.C=D.UW.S[Q[0].id];if(Q.length>1&&!D.policy.Y9){if(!D.policy.Ad){var m=g.y4(Q,function(P){return P.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
m&&(D.C=D.UW.S[m.id])}m=!1;if(m=D.policy.g2?!0:D.S.isLocked()?D.S.S<240:Hf6(D,D.C))D.C=D.UW.S[g.fV(Q).id]}}};
f3=function(D){if(!D.nextVideo||!D.policy.B)if(D.S.isLocked())D.nextVideo=D.S.S<=360?D.UW.S[D.B[0].id]:D.UW.S[g.fV(D.B).id],D.logger.debug(function(){return"Select max fmt: "+L2(D.nextVideo.info)});
else{for(var Q=Math.min(D.Z,D.B.length-1),m=mX(D.Kh),P=Nb(D,D.C.info),W=m/D.policy.Iy-P;Q>0&&!(Nb(D,D.B[Q])<=W);Q--);for(var L=m/D.policy.Z-P;Q<D.B.length-1&&!(Nb(D,D.B[Q+1])>=L);Q++);D.nextVideo=D.UW.S[D.B[Q].id];D.Z!==Q&&D.logger.info(function(){return"Adapt to: "+L2(D.nextVideo.info)+", bandwidth: "+m.toFixed(0)+", bandwidth to downgrade: "+W.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+jc(D.S)});
D.Z=Q}};
Fw$=function(D){var Q=D.policy.Iy,m=mX(D.Kh),P=m/Q-Nb(D,D.C.info);Q=g.ZN(D.B,function(W){return Nb(this,W)<P},D);
Q<0&&(Q=0);D.Z=Q;D.nextVideo=D.UW.S[D.B[Q].id];D.logger.info(function(){return"Initial selected fmt: "+L2(D.nextVideo.info)+", bandwidth: "+m.toFixed(0)+", max video byterate: "+P.toFixed(0)})};
TL_=function(D){if(D.XT.length){var Q=D.XT,m=function(P,W){if(P.info.FT==="f"||Q.includes(cW(g.Qh(P.info,D.UW.VX))))return P;for(var L={},u=0;u<W.length;L={zz:void 0,wW:void 0},u++){var t=D.UW.S[W[u].id];if(Q.includes(cW(g.Qh(t.info,D.UW.VX)))){var z=P.info.FT,b=t.info.FT;if(z===b||Zj()){if(P.info.S!==t.info.S)return D.loader.dc("ombifa",{mismatch:"xtag",f:P.info.id,t:t.info.id}),P;L.zz=P.info.itag;L.wW=t.info.itag;D.loader.dc("ombifa",{f:L.zz,t:L.wW});D.logger.info(function(q){return function(){return"Initial format selection changed from "+
q.zz+" to "+q.wW+" based on prefetched media."}}(L));
D.u0=!0;return t}D.loader.dc("ombifa",{mismatch:"efficient",fc:z,tc:b})}}D.loader.dc("ombifa",{mismatch:"unselectable",fmts:Q.join(".")});return P};
D.nextVideo=m(D.nextVideo,D.N.videoInfos);D.C=m(D.C,D.N.S)}};
Nb=function(D,Q){if(!D.wc[Q.id]){var m=D.UW.S[Q.id].index.ir(D.QF,15);m=Q.Mh&&D.T&&D.T.index.isLoaded()?m||Q.Mh:m||Q.yF;D.wc[Q.id]=m}m=D.wc[Q.id];D.k9.has(Q.itag)&&(m*=1.5);return m*=Math.max(1,D.l0.S1()||0)};
Kw_=function(D,Q){D=Uuw(D.UW.S,function(m){return m.info.itag===Q});
if(!D)throw Error("Itag "+Q+" from server not known.");return D};
jd6=function(D){var Q=[];if(D.S.reason==="m"||D.S.reason==="s")return Q;if(zTm(D.UW)){for(var m=Math.max(0,D.Z-2);m<D.Z&&m<D.B.length;m++)Q.push(D.B[m].itag);Q.reverse()}return Q};
EF7=function(D,Q){var m;return D.S.equals(Q)&&(!D.J.S||!D.S.isLocked()||((m=D.nextVideo)==null?void 0:m.info.id)===D.J.S)};
Zf_=function(D){var Q=g.y4(D.N.S,function(P){return P.audio.S}),m=g.y4(D.N.S,function(P){return!P.audio.S});
return Q?D.policy.HT?Q:m:null};
$A9=function(D){var Q=D===void 0?{}:D;D=Q.Qo===void 0?!1:Q.Qo;var m=Q.QL===void 0?!1:Q.QL;Q=Q.f0===void 0?!1:Q.f0;return D?Q?3:2:m?-1:1};
Z7=function(D){this.track=D;this.buffered=[];this.T=this.B=0;this.N={};this.J=0;this.S=new $u};
eU$=function(D,Q,m){D.flush();D.C=m;FW(D,3,Q)};
FW=function(D,Q,m){var P=[],W=D.track.zo;if(W){W=W.Ti();for(var L=0;L<W.length;L++)P.push(Math.round(W.start(L)*1E3)),P.push(Math.round(W.end(L)*1E3))}W=1;L=P.length;if(L===D.buffered.length){for(var u=0;u<=L&&P[u]===D.buffered[u];u++);u>L?W=0:P[u]>D.buffered[u]&&(u===L-1?W=2:u===L-2&&P[u+1]>D.buffered[u+1]&&(W=3))}D.S.add(Q<<3|(m&&4)|W);Q=Math.ceil(D.track.u6()*1E3);D.S.add(Q-D.J);D.J=Q;if(W===1)for(D.S.add(L),u=Q=0;u<L;u++)D.S.add(P[u]-Q),Q=P[u];W===3&&D.S.add(P[L-2]-D.buffered[L-2]);W>=2&&D.S.add(P[L-
1]-D.buffered[L-1]);m&&D.S.add(m);D.buffered=P};
Ty=function(D,Q,m){var P=this;this.policy=D;this.S=Q;this.QF=m;this.B=this.C=0;this.Il=null;this.TO=new Set;this.j=[];this.indexRange=this.initRange=null;this.Z=new kS;this.Iy=this.Kh=!1;this.It={LW9:function(){return P.T},
Skh:function(){return P.chunkSize},
Xj0:function(){return P.U},
sZ0:function(){return P.N}};
(Q=vFr(this))?(this.chunkSize=Q.csz,this.T=Math.floor(Q.clen/Q.csz),this.U=Q.ck,this.N=Q.civ):(this.chunkSize=D.jp,this.T=0,this.U=g.V$(16),this.N=g.V$(16));this.J=new Uint8Array(this.chunkSize);this.U&&this.N&&(this.crypto=new X4h(this.U,this.N))};
vFr=function(D){if(D.policy.Zw&&D.policy.S3)for(var Q=g.T(D.policy.Zw),m=Q.next(),P={};!m.done;P={ZY:void 0,Sz:void 0},m=Q.next())if(m=g.c0(m.value),P.ZY=+m.clen,P.Sz=+m.csz,P.ZY>0&&P.Sz>0&&D.policy.B===m.docid&&D.S.info.id===m.fmtid&&D.S.info.lastModified===+m.lmt)return D={},D.clen=P.ZY,D.csz=P.Sz,D.ck=m.ck,D.civ=m.civ,D};
hX=function(D){return!!D.Il&&D.Il.zM()};
aBj=function(D,Q){if(!hX(D)&&!D.VF()){if(!(D.Kh||(D.Kh=!0,D.T>0))){var m=n3(D);m=tc(D.policy.B,D.S.info,ET(D),m,D.policy.oy);gF(D,m)}if(Q.info.type===1){if(D.Il){BM(D,Error("Woffle: Expect INIT slices to always start us off"));return}D.initRange=Pl(0,Q.C.totalLength)}else if(Q.info.type===2)D.Il&&D.Il.type===1||BM(D,Error("Woffle: Index before init")),D.indexRange=Pl(D.initRange.end+1,Q.C.totalLength);else if(Q.info.type===3){if(!D.Il){BM(D,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(D.Il.type===3&&!u3(D.Il,Q.info)&&(D.j=[],Q.info.J0!==dL(D.Il)||Q.info.C!==0))return;if(Q.info.B){m=g.T(D.j);for(var P=m.next();!P.done;P=m.next())Of9(D,P.value);D.j=[]}else{D.j.push(Q);D.Il=Q.info;return}}else{BM(D,Error("Woffle: Unexpected slice type"));return}D.Il=Q.info;Of9(D,Q);YWn(D)}};
Of9=function(D,Q){var m=0,P=bo(Q.C);if(D.B<D.T){m=D.T*D.chunkSize;var W,L=(((W=Q.info.range)==null?void 0:W.start)||0)+Q.info.C;m-=L;if(m>=P.length)return;if(m<0)throw Error("Missing data");D.B=D.T;D.C=0}for(W={};m<P.length;W={Ir:void 0})if(W.Ir=Math.min(P.length-m,D.J.byteLength-D.C),L=new Uint8Array(P.buffer,P.byteOffset+m,W.Ir),D.J.set(L,D.C),D.C+=W.Ir,m+=W.Ir,D.C===D.J.length){if(Q.info===D.Il&&hX(D)&&m===P.length)break;W=n3(D);W=tc(D.policy.B,D.S.info,ET(D),W,D.policy.oy,D.B,D.J,D.crypto);D.TO.add(W);
gF(D,W);D.VF()||(W=n3(D),D.QF(ET(D),W!==void 0?(W.downloadedEndTime||0)*W.averageByteRate:W.maxKnownEndTime*W.averageByteRate,W.maxKnownEndTime*W.averageByteRate));D.J=new Uint8Array(D.chunkSize);D.C=0;D.B+=1}};
YWn=function(D){if(hX(D))if(D.Il&&D.indexRange)if(D.C){var Q=new Uint8Array(D.J.buffer,0,D.C),m=A76(D),P=D.policy.B;Promise.all(D.TO).then(function(){var W=tc(P,D.Il.S.info,ET(D,!0),m,D.policy.oy,D.B,Q,D.crypto);gF(D,W,!0)})}else BM(D,new wF("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else BM(D,new wF("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
n3=function(D){return{downloadedEndTime:Math.round(D.Il?D.Il.N:0),maxKnownEndTime:Math.round(D.S.index.vI()),averageByteRate:Math.round(D.S.info.Mh)}};
A76=function(D){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(D.S.index.vI()),averageByteRate:Math.round(D.S.info.Mh)}};
ET=function(D,Q){Q===void 0||!Q||D.indexRange&&D.initRange&&D.Il||BM(D,new wF("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));Q={lmt:D.S.info.lastModified,docid:D.policy.B,fmtid:D.S.info.id,type:D.S.info.mimeType.split(";")[0],csz:D.chunkSize,clen:D.B*D.chunkSize+D.C};D.crypto&&(Q.ck=D.U,Q.civ=D.N);var m="local://localhost/videoplayback?"+rl(Q),P,W;Q={itag:+D.S.info.itag,mimeType:D.S.info.mimeType,bitrate:D.S.info.yF*8,lastModified:String(D.S.info.lastModified),initRange:(P=
D.initRange)==null?void 0:dhh(P),indexRange:(W=D.indexRange)==null?void 0:dhh(W),url:m};if(P=D.S.info.S)Q.xtags=P;if(P=D.S.info.video)if(Q.quality=P.quality,Q.qualityLabel=P.qualityLabel,Q.width=P.width,Q.height=P.height,P=P.fps)Q.fps=P;if(D=D.S.info.audio){if(P=D.sampleRate)Q.audioSampleRate=String(P);if(D=D.numChannels)Q.audioChannels=D}return Q};
gF=function(D,Q,m){m=m===void 0?!1:m;Q.then(function(P){D.TO.delete(Q);(m||P===4)&&D.Z.resolve(P)},function(P){D.Z.reject(P)})};
BM=function(D,Q){g.s1(D.policy.B)!==4&&(g.Lz(D.policy.B,4),g.l4(Q),D.Z.reject(new wF(Q.message)))};
wF=function(D,Q){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.S=Q===void 0?!1:Q};
plu=function(D){D=g.BW(D,1886614376);for(var Q=g.T(D),m=Q.next();!m.done;m=Q.next());return g.fk(D,function(P){return Rew(P)})};
xA4=function(D){var Q=N5(D,function(W,L){return W+L.length},0);
Q=new Uint8Array(Q);var m=0;D=g.T(D);for(var P=D.next();!P.done;P=D.next())P=P.value,Q.set(P,m),m+=P.length;return Q};
Xl_=function(D,Q,m,P,W,L){this.ids=D;this.S=Q;this.C=m;this.B=P;this.T=W;this.ME=L};
kQ=function(D,Q,m){this.initData=D;this.contentType=Q;this.isPrefetch=m;this.S=this.cryptoPeriodIndex=NaN;this.T=[];this.nO=!1;this.C=null;if((Q==null?void 0:Q.toLowerCase())==="webm"||D.length===16)this.nO=!0};
r7w=function(D){a:{var Q=D.initData;try{for(var m=0,P=new DataView(Q.buffer);m<P.byteLength-8;){var W=P.getUint32(m);if(W<=1)break;if(P.getUint32(m+4)===1886614376){var L=32;if(P.getUint8(m+8)>0){var u=P.getUint32(m+28);L+=u*16+4}var t=P.getUint32(m+L-4);try{var z=SWw(Q.subarray(m+L,m+L+t));if(z!==null){var b=z;break a}}catch(q){}}m+=W}b=null;break a}catch(q){b=null;break a}b=void 0}if(b!=null)for(Q=CI(MI(b,7,void 0,lZ)),Q==null||D.nO||(D.cryptoPeriodIndex=Q),Q=CI(MI(b,10,void 0,lZ)),Q!=null&&Q>0&&
!D.nO&&(D.S=Q),b=iZ(b,2,Bhw,void 0===l_h?2:4),b=g.T(b),P=b.next();!P.done;P=b.next())Q=D.T,m=Q.push,P=Rr(P.value),P=g.EG(P,4),m.call(Q,P)};
Gf$=function(D){return isNaN(D.cryptoPeriodIndex)?g.EG(D.initData):""+D.cryptoPeriodIndex};
JX=function(D,Q,m){var P=m===void 0?{}:m;m=P.videoDuration===void 0?0:P.videoDuration;var W=P.nT===void 0?void 0:P.nT;P=P.rK===void 0?!1:P.rK;this.videoId=D;this.status=Q;this.videoDuration=m;this.nT=W;this.rK=P};
Msn=function(D,Q,m,P,W){this.videoId=D;this.rG=Q;this.C=m;this.bytesDownloaded=P;this.S=W};
l9=function(D){this.S=D;this.offset=0};
Ie=function(D){if(D.offset>=D.S.totalLength)throw Error();return Ch(D.S,D.offset++)};
c77=function(D,Q){Q=Q===void 0?!1:Q;var m=Ie(D);if(m===1){Q=-1;for(m=0;m<7;m++){var P=Ie(D);Q===-1&&P!==255&&(Q=0);Q>-1&&(Q=Q*256+P)}return Q}P=128;for(var W=0;W<6&&P>m;W++)m=m*256+Ie(D),P*=128;return Q?m:m-P};
DBu=function(D){try{var Q=c77(D,!0),m=c77(D,!1);return{id:Q,size:m}}catch(P){return{id:-1,size:-1}}};
Qp$=function(D){for(var Q=new l9(D),m=-1,P=0,W=0;!P||!W;){var L=DBu(Q),u=L.id;L=L.size;if(u<0)return;if(u===176){if(L!==2)return;P=Q.uG()}else if(u===186){if(L!==2)return;W=Q.uG()}u===374648427?m=Q.uG()+L:u!==408125543&&u!==174&&u!==224&&Q.skip(L)}Q=qy(D,0,m);m=new DataView(Q.buffer);m.setUint16(P,3840);m.setUint16(W,2160);P=new Lh([Q]);uo(P,D);return P};
mB7=function(D,Q,m){var P=this;this.loader=D;this.policy=Q;this.J=m;this.logger=new g.EW("dash");this.C=[];this.S=null;this.Kh=-1;this.j=0;this.t0=NaN;this.TO=0;this.T=NaN;this.Z=this.u0=0;this.GO=-1;this.wc=this.B=this.N=this.QF=null;this.l0=this.Y9=NaN;this.U=this.Iy=this.k9=this.XT=null;this.oy=!1;this.x9=this.timestampOffset=0;this.It={Xy:function(){return P.C}};
if(this.policy.B){var W=this.J,L=this.policy.B;this.policy.oy&&D.dc("atv",{ap:this.policy.oy});this.U=new Ty(this.policy,W,function(u,t,z){Re(D,new JX(P.policy.B,2,{nT:new Msn(L,u,W.info,t,z)}))});
this.U.Z.promise.then(function(u){P.U=null;u===1?Re(D,new JX(P.policy.B,u)):P.loader.dc("offlineerr",{status:u.toString()})},function(u){var t=(u.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
u instanceof wF&&!u.S?(P.logger.info(function(){return"Assertion failed: "+t}),P.loader.dc("offlinenwerr",{em:t}),UT(P),Re(D,new JX(P.policy.B,4))):(P.logger.info(function(){return"Failed to write to disk: "+t}),P.loader.dc("dldbwerr",{em:t}),UT(P),Re(D,new JX(P.policy.B,4,{rK:!0})))})}};
PCP=function(D){return D.C.length?D.C[0]:null};
WBm=function(D,Q){return D.C.some(function(m){return m.info.J0===Q})};
dBw=function(D,Q,m,P){P=P===void 0?0:P;if(D.B){var W=D.B.C+D.B.T;if(m.info.C>0)if(m.info.J0===D.B.J0&&m.info.C<W){if(m.info.C+m.info.T<=W)return;m=Y5h(m,W-m.info.C)[1]}else if(m.info.J0>=0&&D.B.J0>=0&&!u3(D.B,m.info))throw new g.OI("improper_continuation",D.B.Hn(),m.info.Hn());q5k(D.B,m.info)||HM(D,"d")}else if(m.info.C>0)throw new g.OI("continuation_of_null",m.info.Hn());D.B=m.info;D.J=m.info.S;if(m.info.C===0){if(D.S)if(!D.loader.isOffline()||D.policy.Tb)D.loader.dc("slice_not_fully_processed",
{buffered:D.S.info.Hn(),push:m.info.Hn()});else throw new g.OI("slice_not_fully_processed",D.S.info.Hn(),m.info.Hn());K3(D);D.u0=P}else{if(D.u0&&P&&D.u0!==P)throw D=new g.OI("lmt_mismatch",m.info.J0,D.u0,P),D.level="WARNING",D;!m.info.S.UT()&&D.N&&(P=m.info,W=D.N.Pi,P.U="updateWithEmsg",P.J0=W)}if(D.S){P=g.kF(D.S,m);if(!P)throw new g.OI("failed_to_merge",D.S.info.Hn(),m.info.Hn());D.S=P}else D.S=m;a:{m=g.Mh(D.S.info.S.info);if(D.S.info.type!==3){if(!D.S.info.B)break a;D.S.info.type===6?iDj(D,Q,D.S):
sp$(D,D.S);D.S=null}for(;D.S;){P=D.S.C.totalLength;if(D.Kh<=0&&D.j===0){var L=D.S.C,u=-1;W=-1;if(m){for(var t=0;t+8<L.totalLength;){var z=emj(L,t),b=emj(L,t+4);t+=z||1;if(b===1836019558)u=t;else if(b===1835295092){W=t;break}}W<0&&(u=-1)}else{L=new l9(L);for(z=t=!1;;){b=L.uG();var q=DBu(L),C=q.id;q=q.size;if(!(C>0))break;if(C!==408125543)if(C===524531317)t=!0,q>=0&&(W=L.uG()+q,z=!0);else{if(t&&(C===160||C===163)&&(u<0&&(u=b),z))break;C===163&&(u=Math.max(0,u),W=L.uG()+q);if(C===160){u<0&&(W=u=L.uG()+
q);break}L.skip(q)}}u<0&&(W=-1)}if(u<0)break;D.Kh=u;D.j=W-u}if(D.Kh>P)break;D.Kh?(P=LB$(D,D.Kh),P.J&&u$7(D,P),iDj(D,Q,P),jv(D,P),D.Kh=0):D.j&&(P=LB$(D,D.j<0?Infinity:D.j),D.j-=P.C.totalLength,jv(D,P))}}D.S&&D.S.info.B&&(jv(D,D.S),D.S=null)};
sp$=function(D,Q){!Q.info.S.UT()&&Q.info.C===0&&(g.Mh(Q.info.S.info)||Q.info.S.info.nO())&&S5P(Q);if(Q.info.type===1)try{u$7(D,Q),tCw(D,Q)}catch(W){g.JG(W);var m=t7(Q.info);m.hms="1";D.loader.handleError("fmt.unparseable",m||{},1)}m=Q.info.S;m.uB(Q);D.U&&aBj(D.U,Q);if(m.xa()&&D.policy.S)a:{D=D.loader.UW;Q=Q.info.clipId;m=g.Qh(m.info,D.VX);if(Q){var P=cW({itag:m.itag,lmt:D.VX?0:m.lmt||0,xtags:m.xtags});if(D.l0[P])break a;D.l0[P]=Q}D.GO.push(m)}};
Rb6=function(D,Q,m){if(D.C.length!==0&&(m||D.C.some(function(L){return L.info.J<Q}))){m=0;
for(var P=g.T(D.C),W=P.next();!W.done;W=P.next()){W=W.value;if(W.info.J<Q)break;D.loader.dc("cmat",{max:Q,s:W.info.Hn()});m+=1}D.C.splice(0,m)}};
UT=function(D){var Q;(Q=D.U)==null||Q.dispose();D.U=null};
zl7=function(D){var Q=D.C.reduce(function(m,P){return m+P.C.totalLength},0);
D.S&&(Q+=D.S.C.totalLength);return Q};
bDn=function(D){if(D.Iy&&!D.policy.vE){var Q=D.loader;Q.UW.isManifestless&&D9(Q.UW,D.Iy.J0,!!D.J.info.video)}D.Iy=null;D.N=null;D.B=D.XT;D.T=D.B?D.T-D.TO:NaN;K3(D)};
LB$=function(D,Q){var m=D.S;Q=Math.min(Q,m.C.totalLength);if(Q===m.C.totalLength)return D.S=null,m;m=Y5h(m,Q);D.S=m[1];return m[0]};
u$7=function(D,Q){var m=g.wL(Q);if(xV(Q.info.S.info)&&Q.info.S.info.video.primaries==="bt2020"){var P=new wy(m);Jg(P,[408125543,374648427,174,224,21936,21937])&&(P=P.start+P.pos,m.getUint8(P)===129&&m.getUint8(P+1)===1&&m.setUint8(P+1,9))}P=Q.info.S.info;pt(P)&&!xV(P)&&(P=g.wL(Q),(new wy(P)).Yu(),Um([408125543,374648427,174,224],21936,P));Q.info.S.info.ri()&&(P=Q.info.S,P.info&&P.info.video&&P.info.video.projectionType==="MESH"&&!P.C&&(g.Mh(P.info)?P.C=AaP(m):P.info.nO()&&(P.C=ML7(m))));Q.info.S.info.nO()&&
Q.info.ri()&&(m=g.wL(Q),(new wy(m)).Yu(),Um([408125543,374648427,174,224],30320,m)&&Um([408125543,374648427,174,224],21432,m));if(D.policy.G1&&Q.info.S.info.nO()){m=g.wL(Q);var W=new wy(m);if(Jg(W,[408125543,374648427,174,29637])){P=R5(W,!0);W=W.start+W.pos;for(var L=0;L<P-1;L++)m.setUint8(W+L,0);m.setUint8(W+P-1,1)}}if(D.ZQ()&&g.Mh(Q.info.S.info)){P=g.wL(Q);m=g.Nk(P,0,1701606260);L=g.Nk(P,0,1836476516);if(m&&L){m.skip(2);var u=u5(m),t=tg(m);P=[];W=[];var z=[],b=[];if(u)for(u=0;u<t;++u)P.push(zo(m)),
W.push(zo(m)),z.push(u5(m)),b.push(u5(m));else for(u=0;u<t;++u)P.push(dy(m)),W.push(dy(m)),z.push(u5(m)),b.push(u5(m));m=g.yI(L);m=new OZm(W[0]/m,P[0]/m)}else m=null;if(m){if(g.Mh(Q.info.S.info))for(P=g.wL(Q),W=g.Nk(P,0,1701082227);W;)L=W,L.type=1936419184,L.data.setUint32(L.offset+4,1936419184),W=g.Nk(P,W.offset+W.size,1701082227);D.oy=!0;Q.info.S.B=m}}Q.info.S.UT()||Q.info.S.S||Q.info.S.indexRange||Rd(Q)};
iDj=function(D,Q,m){if(m.info.S.UT()){if(D.oy&&qS_(m)&&(Q=g.wL(m),Q=g.Nk(Q,0,1953658222))){Q.skip(1);var P=Ld(Q)<<16|u5(Q),W=P&1,L=P&4;if(P&256){var u=P&512,t=P&1024;P&=2048;var z=tg(Q);z<2||(W&&Q.skip(4),L&&Q.skip(4),W=tg(Q),Q.skip((z-1)*(4+(u?4:0)+(t?4:0)+(P?4:0))-4),Q.data.setUint32(Q.offset+Q.S,W))}}if(Q=D.QF&&!!D.QF.J.B)if(Q=m.info.ri())Q=xh7(m),u=D.QF,$Q?(t=1/Q,Q=ev(D,Q)>=ev(u)+t):Q=D.getDuration()>=u.getDuration(),Q=!Q;Q&&qS_(m)&&(Q=D.QF,$Q?(t=xh7(m),u=1/t,t=ev(D,t),Q=ev(Q)+u-t):Q=Q.getDuration()-
D.getDuration(),Q=1+Q/m.info.duration,adk(g.wL(m),Q))}else{u=!1;D.N||(S5P(m),m.S&&(D.N=m.S,u=!0,W=m.info,L=m.S.Pi,W.U="updateWithEmsg",W.J0=L,W=m.S,W.zM&&(L=D.J.index,L.C=!W.zM,L.T="emsg"),W=m.info.S.info,L=g.wL(m),g.Mh(W)?gy(L,1701671783):W.nO()&&Um([408125543],307544935,L)));a:if((W=Id(m,D.policy.pj))&&X6r(m))t=CCr(D,m),D.Z+=t,W-=t,D.TO+=W,D.T=D.policy.CZ?D.T+W:NaN;else{if(D.policy.b8){if(L=z=D.loader.Hr(g.J7(m),1),D.T>=0&&m.info.type!==6){if(D.policy.CZ&&isNaN(D.Y9)){g.l4(new g.OI("Missing duration while processing previous chunk",
m.info.Hn()));D.loader.isOffline()&&!D.policy.Tb||ouP(D,m,L);HM(D,"m");break a}P=z-D.T;var b=P-D.Z,q=m.info.J0,C=D.wc?D.wc.J0:-1,f=D.l0,V=D.Y9,N=D.policy.gQ&&P>D.policy.gQ,h=Math.abs(b)>10,B=Math.abs(D.T-L)<1E-7;if(Math.abs(b)>1E-4){D.x9+=1;var J=(t=D.N)==null?void 0:$07(t);t={audio:""+ +D.ZQ(),sq:q.toFixed(),sliceStart:z,lastSq:C.toFixed(),lastSliceStart:f,lastSliceDuration:V,totalDrift:(P*1E3).toFixed(),segDrift:(b*1E3).toFixed(),skipRewrite:""+ +(N||h)};if(J==null?0:J.length)t.adCpn=J[0];D.loader.handleError("qoe.avsync",
t);D.GO=q}N||h||B||(L=D.T);t=CCr(D,m,z);W-=t;D.Z=P+t}}else L=isNaN(D.T)?m.info.startTime:D.T;ouP(D,m,L)&&(D.TO+=W,D.T=L+W,D.policy.I2&&D.x9>=D.policy.I2&&(D.x9=0,D.loader.T8({resetForRewrites:"count"})))}D.wc=m.info;D.Y9=l3(m);m.T>=0&&(D.l0=m.T);if(u&&D.N){u=f94(D,!0);zf(m.info,u);D.S&&zf(D.S.info,u);Q=g.T(Q);for(t=Q.next();!t.done;t=Q.next())t=t.value,W=void 0,D.policy.J&&t.J0!==((W=D.N)==null?void 0:W.Pi)||zf(t,u);(m.info.B||D.S&&D.S.info.B)&&m.info.type!==6||(D.Iy=u,D.policy.C?(Q=VCP(D.N),D.loader.ya(D.J,
u,Q)):(Q=D.loader,Q.UW.isManifestless&&NJ4(Q,u,null,!!D.J.info.video)),D.policy.tY||yYk(D))}}tCw(D,m);D.timestampOffset&&ALn(m,D.timestampOffset)};
jv=function(D,Q){if(Q.info.B){D.XT=Q.info;if(D.N){var m=D.N,P=f94(D,!1);m=VCP(m);D.loader.ya(D.J,P,m);D.Iy||D.policy.tY||yYk(D);D.Iy=null}K3(D)}D.U&&aBj(D.U,Q);if(P=D.xI())if(P=g.kF(P,Q,D.policy.t2,D.policy.F2)){D.C.pop();D.C.push(P);return}D.C.push(Q)};
VCP=function(D){if(D.Zg()){var Q=D.data["Stitched-Video-Id"]?D.data["Stitched-Video-Id"].split(",").slice(0,-1):[],m=$07(D),P=[];if(D.data["Stitched-Video-Duration-Us"])for(var W=g.T(D.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=W.next();!L.done;L=W.next())P.push((Number(L.value)||0)/1E6);W=[];if(D.data["Stitched-Video-Start-Frame-Index"]){L=g.T(D.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var u=L.next();!u.done;u=L.next())W.push(Number(u.value)||0)}W=[];
if(D.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.T(D.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),u=L.next();!u.done;u=L.next())W.push((Number(u.value)||0)/1E6);D=new Xl_(Q,m,P,W,g.een(D),g.v34(D))}else D=null;return D};
K3=function(D){D.S=null;D.Kh=-1;D.j=0;D.N=null;D.t0=NaN;D.TO=0;D.Iy=null};
HM=function(D,Q){Q={rst4disc:Q,cd:D.Z.toFixed(3),sq:D.wc?D.wc.J0:-1};D.T=NaN;D.Z=0;D.GO=-1;D.wc=null;D.l0=NaN;D.Y9=NaN;D.k9=null;D.loader.dc("mdstm",Q)};
tCw=function(D,Q){if(D.isDrm()){if(Q.info.S.info.nO()){var m=new wy(g.wL(Q));if(Jg(m,[408125543,374648427,174,28032,25152,20533,18402])){var P=R5(m,!0);m=P!==16?null:$g(m,P)}else m=null;P="webm"}else Q.info.j=plu(g.wL(Q)),m=xA4(Q.info.j),P="cenc";m&&m.length&&(m=new kQ(m,P),D.policy.f4&&g.Mh(Q.info.S.info)&&(P=ra$(g.wL(Q)))&&(m.C=P),m.nO=Q.info.S.info.nO(),Q.S&&Q.S.cryptoPeriodIndex&&(m.cryptoPeriodIndex=Q.S.cryptoPeriodIndex),Q.S&&Q.S.C&&(m.S=Q.S.C),D.loader.Wd(m))}};
yYk=function(D){var Q=D.N,m=KZ_(Q);m&&(m.startSecs+=D.t0,D.loader.bl(D.J,m,Q.Pi,Q.Zg()))};
f94=function(D,Q){var m,P=D.N;if(m=KZ_(P))m.startSecs+=D.t0;return new WW(P.Pi,D.t0,Q?P.EY:D.TO,P.ingestionTime,"sq/"+P.Pi,void 0,void 0,Q,m)};
ouP=function(D,Q,m){if(!aOk(Q,m))return Q=t7(Q.info),Q.smst="1",D.loader.handleError("fmt.unparseable",Q||{},1),!1;isNaN(D.t0)&&(D.t0=m);return!0};
CCr=function(D,Q,m){var P=0;if(Q.info.S.info.nO()&&!X6r(Q))return 0;if(D.QF&&!D.ZQ()){var W=0;m&&g.Mh(Q.info.S.info)?W=m-D.T:Q.info.S.info.nO()&&(W=D.Z);var L=Q.info.J0;m=Id(Q,D.policy.pj);var u=D.QF;var t=u.GO;u=u.Z;var z=Math.abs(u-W)>.02;if((L===t||L>t&&L>D.GO)&&z){P=Math.max(.95,Math.min(1.05,(m-(u-W))/m));if(g.Mh(Q.info.S.info))adk(g.wL(Q),P);else if(Q.info.S.info.nO()&&(L=W-u,!g.Mh(Q.info.S.info)&&(Q.info.S.info.nO(),P=new wy(g.wL(Q)),t=Q.J?P:new wy(new DataView(Q.info.S.S.buffer)),Id(Q,!0)))){var b=
L*1E3,q=vW(t);t=P.pos;P.pos=0;if(P.S.getUint8(P.pos)===160||Om(P))if(I5(P,160))if(R5(P,!0),I5(P,155)){if(L=P.pos,z=R5(P,!0),P.pos=L,b=b*1E9/q,q=HW(P),b=q+Math.max(-q*.7,Math.min(q,b)),b=Math.sign(b)*Math.floor(Math.abs(b)),!(Math.ceil(Math.log(b)/Math.log(2)/8)>z)){P.pos=L+1;for(L=z-1;L>=0;L--)P.S.setUint8(P.pos+L,b&255),b>>>=8;P.pos=t}}else P.pos=t;else P.pos=t;else P.pos=t}P=Id(Q,D.policy.pj);P=m-P}P&&Q.info.S.info.nO()&&D.loader.dc("webmDurationAdjustment",{durationAdjustment:P,videoDrift:W+P,
audioDrift:u})}return P};
qS_=function(D){return D.info.S.UT()&&D.info.J0===D.info.S.index.MY()};
ev=function(D,Q){Q=(Q=Q===void 0?0:Q)?Math.round(D.timestampOffset*Q)/Q:D.timestampOffset;D.J.B&&Q&&(Q+=D.J.B.S);return Q+D.getDuration()};
ZDr=function(D,Q){Q<0||(D.C.forEach(function(m){ALn(m,Q)}),D.timestampOffset=Q)};
sn=function(D,Q,m,P,W){hp.call(this,m,W);var L=this;this.policy=D;this.formatId=Q;this.gs=P;this.lastError=null;this.onProgress=function(){L.VF()||(L.gs.Pn.has(L.formatId)?(L.isComplete()||L.S.start(),rY(L.gs,L.formatId)&&L.Gh(2),L.gs.TE(L.formatId)&&(j5u(L.gs,L.formatId)?L.pM(4):(L.lastError="net.closed",L.pM(5)))):(L.lastError="player.exception",L.pM(5)))};
this.S=new g.pJ(function(){L.isComplete()||(L.lastError="net.timeout",L.pM(5))},1E3);
this.S.start();Uk7(this.gs,this.formatId,this.onProgress);g.Fd(this.onProgress)};
vM=function(D,Q,m,P){g.v.call(this);var W=this;this.loader=D;this.policy=Q;this.S=m;this.timing=P;this.logger=new g.EW("dash");this.T=[];this.QF=[];this.C=this.zo=null;this.k9=!1;this.u0=this.x9=0;this.N=-1;this.Kh=!1;this.t0=-1;this.wc=null;this.Iy=NaN;this.TO=[];this.It={Fe:function(){return W.B},
rZT:function(){return W.T},
FEq:function(){return W.Z}};
this.B=new mB7(D,Q,m);this.policy.S&&(this.Z=new WO(this.B,this.loader.getManifest(),this.policy,function(L){W.policy.Sh&&W.dc("buftl",L)}));
this.policy.PY&&(this.j=new Z7(this));this.yF=m.info.yF;this.U=this.policy.TO?!1:m.N_();this.isManifestless=m.N_();this.J=this.U;g.O(this,this.wc)};
OT=function(D,Q,m){m=m===void 0?!1:m;Q&&$Q&&ZDr(D.B,Q.KN());if(!m){var P;(P=D.Z)==null||kn7(P)}D.zo=Q;(Q=D.Z)!=null&&(Q.zo=D.zo)};
YQ=function(D){var Q=D.zo&&D.zo.CP();if(D.policy.TV){if((D=D.Z)==null)D=void 0;else{var m;D=(m=D.T)==null?void 0:m.info}return D||null}return Q};
FB$=function(D){for(var Q={},m=0;m<D.QF.length;m++)Q["r"+m]=D.QF[m];return Q};
ae=function(D,Q){isNaN(D.Iy)||D.dc("aswr",{sq:Q.info.EW[0].J0,id:Q.info.EW[0].S.info.itag,xtag:Q.info.EW[0].S.info.S,ep:Date.now()-D.Iy});D.T.push(Q);D.C=g.fV(Q.info.EW);D.QF.push(Q.Hn());D.QF.length>4&&D.QF.shift()};
TJ7=function(D,Q){if(Q.Ap()){var m=Q.pZ();m=g.T(m);for(var P=m.next();!P.done;P=m.next())P=P.value,D.policy.T&&Q instanceof sn&&D.dc("omblss",{s:P.info.Hn()}),AX(D,Q.info.EW,P,Q.hS())}};
AX=function(D,Q,m,P){P=P===void 0?0:P;isNaN(D.Iy)||(D.dc("aswm",{sq:Q[0].J0,id:Q[0].S.info.itag,xtag:Q[0].S.info.S,ep:Date.now()-D.Iy}),D.Iy=NaN);switch(m.info.type){case 1:case 2:hl4(D,m);break;case 4:var W=m.info.S,L=W.WP(m),u;((u=D.C)==null?0:u.type===4)&&Zth(m.info,D.C)&&(D.C=W.OP(D.C).pop());m=g.T(L);for(W=m.next();!W.done;W=m.next())AX(D,Q,W.value,P);break;case 3:m.info.S.info.video?(W=D.timing,W.t0||(W.t0=(0,g.T3)(),g.i1("fvb_r",W.t0,W.S))):(W=D.timing,W.N||(W.N=(0,g.T3)(),g.i1("fab_r",W.N,
W.S)));dBw(D.B,Q,m,P);D.policy.S&&nuk(D);break;case 6:dBw(D.B,Q,m,P),D.C=m.info}};
hl4=function(D,Q){if(Q.info.type===1)if(Q.info.S.info.video){var m=D.timing;m.u0||(m.u0=(0,g.T3)(),g.i1("vis_r",m.u0,m.S))}else m=D.timing,m.Z||(m.Z=(0,g.T3)(),g.i1("ais_r",m.Z,m.S));sp$(D.B,Q);D=D.loader;D.videoTrack.S.xa()&&D.audioTrack.S.xa()&&D.policy.S&&!D.UW.VX&&(Q=D.audioTrack.getDuration(),m=D.videoTrack.getDuration(),Math.abs(Q-m)>1&&D.dc("trBug",{af:""+g.Qh(D.audioTrack.S.info,!1),vf:""+g.Qh(D.videoTrack.S.info,!1),a:""+Q,v:""+m}))};
oV=function(D){return PCP(D.B)};
nuk=function(D){D.T.length?D.C=g.fV(g.fV(D.T).info.EW):D.B.C.length?D.C=D.B.xI().info:D.C=YQ(D)};
p3=function(D,Q){var m={KM:[],AT:[]},P;if((D=D.Z)==null)D=void 0;else{w47(D,D.KM,"og");Ef_(D,Q);w47(D,D.KM,"trim");var W=B_n(D);Q=W.KM;W=W.Lo;for(var L=[],u=0;u<W.length;u++){var t=W[u],z=D.policy.l0&&t.T!==-1?t.T:t.info.startTime,b={startTicks:(z+D.timestampOffset)*1E3,XP:(D.policy.l0&&t.B!==-1?t.B:t.info.duration)*1E3,timescale:1E3},q=void 0,C=(q=D.zo)==null?void 0:q.Ti();q=void 0;if(D.policy.lk&&C&&C.length>0){var f=t$(C,z);f>=0&&(q=(C.end(f)-z+.1)*1E3)}L.push({formatId:g.Qh(t.info.S.info,D.UW.VX),
ML:t.info.ML,sequenceNumber:t.info.J0+D.B,YD:b,nC:t.info.T,Kz:q})}D={KM:Q,AT:L}}return(P=D)!=null?P:m};
dY=function(D,Q,m){m=m===void 0?!1:m;if(D.zo){var P=D.zo.Ti(),W=bs(P,Q),L=NaN,u=YQ(D);u&&(L=bs(P,u.S.index.getStartTime(u.J0)));if(W===L&&D.C&&D.C.T&&Eu9(xQ(D),0))return Q}D=gun(D,Q,m);return D>=0?D:NaN};
zD=function(D,Q,m){D.S.xa();var P=gun(D,Q);if(P>=0)return P;var W;(W=D.Z)==null||gfh(W,Q,m);P=Math;W=P.min;var L=D.B;if(L.U)if(L=L.U,L.Il&&L.Il.type===3)L=L.Il.startTime;else if(L.T>0){var u=L.S.index;u=g.OU(u.offsets.subarray(0,u.count),L.T*L.chunkSize);L=L.S.index.getStartTime(u>=0?u:Math.max(0,-u-2))}else L=0;else L=Infinity;Q=W.call(P,Q,L);D.C=D.policy.TO?null:D.S.qo(Q).EW[0];XW(D)&&(D.policy.JG&&(m==null?void 0:m.seekSource)===60||D.zo&&D.zo.abort(),D.policy.S2&&(m=D.Z)!=null&&(m.T=void 0));
D.u0=0;return D.C?D.C.startTime:Q};
lom=function(D){D.U=!0;D.J=!0;D.N=-1;zD(D,Infinity)};
Sv=function(D){for(var Q=0,m=g.T(D.T),P=m.next();!P.done;P=m.next())Q+=TO_(P.value.info);return Q+=zl7(D.B)};
Gy=function(D,Q){Q=Q===void 0?!1:Q;var m=D.loader.getCurrentTime(),P=D.B.xI(),W=(P==null?void 0:P.info.N)||0;if((P==null?0:P.info.S.N_())&&!P.info.B)if(D.policy.yL)W=P.info.J;else if(D.policy.lR){var L=P.info;W=L.range?L.N:Math.min(L.startTime+Math.min(L.duration*L.C/L.S.info.yF,L.duration)+(L.range?L.Z:Math.min(L.duration,L.duration*L.T/L.S.info.yF)),L.startTime+L.duration)}if(!D.zo)return D.policy.S&&Q&&!isNaN(m)&&P?W-m:0;if((L=YQ(D))&&rF(L))return L.N;var u=D.zo.Ti(!0);if(Q&&P)return L=0,D.policy.S&&
(L=oQ(u,W+.02)),L+W-m;Q=oQ(u,m);D.policy.Gp&&L&&(P=t$(u,m),u=t$(u,L.J-.02),P===u&&(m=L.N-m,D.policy.T&&m>Q+.02&&D.dc("abh",{bh:Q,bhtls:m}),Q=Math.max(Q,m)));return Q};
BJ9=function(D){var Q=YQ(D);return Q?Q.N-D.loader.getCurrentTime():0};
wAu=function(D,Q){if(D.T.length){if(D.T[0].info.EW[0].startTime<=Q)return;uO(D)}for(var m=D.B,P=m.C.length-1;P>=0;P--)m.C[P].info.startTime>Q&&m.C.pop();nuk(D);D.C&&Q<D.C.startTime&&(D.u0=0,D.S.xa()?D.C=D.S.qo(Q,!0).EW[0]:D.C=null)};
Mb=function(D,Q,m,P){if(!D.S.index.Pr(Q,!0))return!1;try{uO(D);for(var W=D.B,L=null,u=W.C.length-1;u>=0;u--){var t=W.C[u];t.info.J0>=Q&&(W.C.pop(),W.T-=Id(t,W.policy.pj),L=t.info)}L&&(W.B=W.C.length>0?W.C[W.C.length-1].info:W.k9,W.C.length!==0||W.B||HM(W,"r"));W.loader.dc("mdstm",{rollbk:1,itag:L?L.S.info.itag:"",popped:L?L.J0:-1,sq:Q,lastslc:W.B?W.B.J0:-1,lastfraget:W.T.toFixed(3)});if(D.policy.S)return D.C=null,!0;P>m?zD(D,P):D.C=D.S.GA(Q-1,!1).EW[0]}catch(z){return Q=yJ(z),Q.details.reason="rollbkerr",
D.loader.handleError(Q.errorCode,Q.details,Q.severity),!1}return!0};
DL=function(D,Q){var m;for(m=0;m<D.T.length&&Q!==D.T[m];m++);if(m===D.T.length)cM(D,Q);else{for(;m<D.T.length;)cM(D,D.T.pop());var P=WM(D);P&&P.S.E_()&&v9(Q.info.EW,function(W){return Fsw(W,P)})?(D.C=P,D.policy.T&&D.dc("cer",{lsr:"lsp",
lsp:P.Hn()})):(Lf(Q.info.EW[0])?(D.C=Q.JN&&Q.JN.T?NOP(Q.JN.T):Vk_(Q.info.EW[0]),D.policy.T&&D.dc("cer",{lsr:D.C.Hn(),lsp:P==null?void 0:P.Hn()})):(D.C=null,D.policy.T&&D.dc("cer",{lsr:"null",lsp:P==null?void 0:P.Hn()})),D.loader.isOffline()&&!D.policy.Tb||cM(D,Q,!0))}};
rF=function(D){return D?D.zM():!1};
XW=function(D){var Q;!(Q=D.S.info.FT==="f")&&(Q=D.policy.B)&&(Q=D.B,Q=!!Q.U&&hX(Q.U));if(Q)return!0;Q=YQ(D);if(!Q)return!1;var m=rF(Q)&&Q.B;return D.isManifestless&&D.t0>0?m||Q.J0>=D.t0:m};
QX=function(D){var Q;return XW(D)||rF((Q=D.B.xI())==null?void 0:Q.info)};
xQ=function(D){var Q=[],m=YQ(D);m&&Q.push(m);Q=g.kk(Q,D.B.XI());m=g.T(D.T);for(var P=m.next();!P.done;P=m.next()){P=P.value;for(var W=g.T(P.info.EW),L=W.next(),u={};!L.done;u={WR:void 0},L=W.next())u.WR=L.value,P.r0&&(Q=g.g0(Q,function(t){return function(z){return!Zth(z,t.WR)}}(u))),(Lf(u.WR)||u.WR.type===4)&&Q.push(u.WR)}D.C&&!zP$(D.C,g.fV(Q),D.C.S.UT())&&Q.push(D.C);
return Q};
Eu9=function(D,Q){if(!D.length)return!1;for(Q+=1;Q<D.length;Q++)if(!btj(D[Q-1],D[Q]))return!1;return!0};
gun=function(D,Q,m){m=m===void 0?!1:m;if(!D.C||!D.C.T)return NaN;D=xQ(D);a:{Q+=.02;var P=m;P=P===void 0?!1:P;for(var W=-1,L=0;L<D.length;++L){var u=D[L];if(u.J<=Q)if(P)W=L;else if(u.startTime+u.duration>=Q){Q=L;break a}}Q=W}return Q<0?NaN:Eu9(D,m?Q:0)?D[Q].startTime:NaN};
mR=function(D){return!(!D.C||D.C.S===D.S)};
kZm=function(D){return mR(D)&&D.S.xa()&&D.C.S.info.yF<D.S.info.yF};
JY7=function(D,Q,m){return D.policy.S?Gy(D,!0)<m:(D=WM(D))&&!rF(D)?D.N>Q&&D.N<Q+m:!1};
WM=function(D){var Q=D.B.xI();return Q?Q.info:YQ(D)};
zUw=function(D,Q){var m;return!((m=D.Z)==null||!m.J.has(Q))||WBm(D.B,Q)};
uO=function(D){for(var Q=g.T(D.T),m=Q.next();!m.done;m=Q.next())cM(D,m.value);D.T=[];D.C=null};
P7=function(D){var Q;(Q=D.Z)==null||kn7(Q);D.TO=[]};
l9u=function(D,Q,m){Q.r0&&((m===void 0?0:m)||!Q.info.EW[0].S.E_())&&(D.logger.debug(function(){return"Rolling back request with segNum "+Q.info.EW[0].J0}),bDn(D.B))};
cM=function(D,Q,m){l9u(D,Q,m===void 0?!1:m);Q.dispose()};
I9P=function(D){return!!D.C&&D.C.J0!==-1&&D.C.J0<D.S.index.zq()};
Rl4=function(D){var Q=D.C;Q&&Q.J0===-1&&(D=D.B.xI())&&Lf(D.info)&&(D=D.info.J0,Q.U="updateLastSliceRequested",Q.J0=D)};
UB7=function(D){return v9(D.T,function(Q){return Q.dU})};
HDw=function(D,Q){D.C&&(D.C.S=Q)};
KBr=function(D,Q){return D.zo?z5(D.zo.Ti(),Q):!0};
jp4=function(D){var Q;return!((Q=oV(D))==null||!Q.isLocked)};
$B4=function(D,Q){var m=oV(D);return m&&m.info.type!==6?!bf6(Q,D,m.info.J0):!1};
elm=function(D){if((D=D.Z)==null)D=void 0;else if(D.KM.length===0||D.policy.Co&&D.S<0)D=null;else{var Q=D.KM[D.S]?D.KM[D.S].formatId:null;D=Q?(D=D.UW.T.get(cW(Q)))?D.info:null:null}return D||null};
vur=function(D,Q){D=g.T(D.TO);for(var m=D.next();!m.done;m=D.next())if(m=m.value,m.Pi===Q)return m.VbT?2:1;return 0};
OD6=function(){this.Qo=!1};
YS7=function(D){var Q=D===void 0?{}:D;D=Q.hasSubfragmentedFmp4===void 0?!1:Q.hasSubfragmentedFmp4;Q=Q.pB===void 0?!1:Q.pB;var m=new OD6;m.Qo=D||Q;return m};
g.a97=function(D){this.nh=D;this.U=new OD6;this.UI=this.xb=!1;this.hH=2;this.x9=20971520;this.jD=8388608;this.Kh=120;this.H0=this.IH=this.c5=2;this.KZ=this.Km=!1;this.yN=1E3;this.Kj=15;this.uS=1;this.Z=1.15;this.Iy=1.05;this.gx=1;this.Ft=this.h8=!1;this.jP=6;this.T=!1;this.rz=100;this.Pj=10;this.Yx=6;this.YF=!1;this.Tv=1;this.QL=this.ZD=!1;this.Ik=2;this.b8=this.KI=!1;this.hU=!0;this.zY=this.Ad=this.Y9=this.g2=!1;this.K0=!0;this.zH=!1;this.B="";this.Zw=[];this.Br=this.PY=!1;this.vc=0;this.Xn="";this.Oj=
this.qE=this.Sh=this.Zd=this.R4=this.J=this.vy=this.pU=this.Nz=this.S=this.oy=this.QF=this.S2=this.TV=this.j=this.tY=this.JG=!1;this.A8=!0;this.rQ=this.lR=this.yL=this.e9=this.wQ=this.C=this.l0=!1;this.GO=!0;this.kB=this.fD=this.TO=this.VR=this.Lj=this.t0=!1;this.Qj=3;this.WO=this.AE=this.WE=this.cE=this.HO=this.kJ=this.zB=this.md=this.lk=this.m7=!1;this.gB=2;this.C1=this.u0=this.kI=!1;this.JH=g.WF(this.nh.experiments,"html5_min_readbehind_secs");this.Qx=g.WF(this.nh.experiments,"html5_min_readbehind_cap_secs");
this.Tb=this.nh.V("html5_offline_reset_media_stream_on_unresumable_slices");this.yF=NaN;this.Sg=W7(this,"html5_request_size_min_kb",64)*1024;this.k9=2097152;this.HN=W7(this,"html5_bypass_contention_secs");this.FH=1048576;this.PO=W7(this,"html5_repredict_interval_ms",1800);this.h2=W7(this,"html5_head_miss_secs",5);this.J2=W7(this,"html5_min_upgrade_health_secs",10);this.O0=W7(this,"html5_min_seconds_between_format_selections",8);this.gp=W7(this,"html5_max_buffer_health_for_downgrade_secs",15);this.f0=
hY;this.CF=g.WF(this.nh.experiments,"html5_min_startup_buffered_media_duration_secs");this.qh=g.WF(this.nh.experiments,"html5_post_interrupt_readahead");this.E0=this.nh.V("html5_disable_classic_alr");this.z7=g.WF(this.nh.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Us=W7(this,"html5_ssdai_failure_retry_limit",3);this.RH=this.nh.experiments.Mv("html5_clone_original_for_fallback_location");this.Xw=g.WF(this.nh.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.nZ=
g.WF(this.nh.experiments,"html5_subsegment_readahead_timeout_secs");this.jC=g.WF(this.nh.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Dj=g.WF(this.nh.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.O$=g.WF(this.nh.experiments,"html5_subsegment_readahead_min_load_speed");this.kU=g.WF(this.nh.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Lv=g.WF(this.nh.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.fF=
W7(this,"html5_hopeless_secs",15);this.xR=this.nh.V("html5_restrict_streaming_xhr_on_sqless_requests");this.BN=g.WF(this.nh.experiments,"html5_max_headm_for_streaming_xhr");this.NI=this.nh.V("html5_pipeline_manifestless_allow_nonstreaming");this.O4=this.nh.V("html5_prefer_server_bwe3");this.ZX=this.nh.V("html5_last_slice_transition");this.XK=this.nh.V("html5_store_xhr_headers_readable");this.gQ=g.WF(this.nh.experiments,"html5_max_drift_per_track_secs");this.vE=this.nh.V("html5_no_placeholder_rollbacks");
this.El=this.nh.V("html5_subsegment_readahead_enable_mffa");this.gi=this.nh.V("html5_allow_video_keyframe_without_audio");this.f4=this.nh.V("html5_enable_vp9_fairplay");this.jp=1048576;this.S3=this.nh.V("html5_woffle_resume");this.SR=this.nh.V("html5_abs_buffer_health");this.gq=this.nh.V("html5_interruption_resets_seeked_time");this.D8=g.WF(this.nh.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.G4=this.nh.V("html5_report_captions_ctmp_qoe");this.iR=this.nh.V("html5_explicitly_dispose_xhr");
this.t2=!this.nh.V("html5_encourage_array_coalescing");this.nh.V("html5_limit_media_merge_size")?hY?Kp()<21?this.F2=786432:this.F2=8388608:this.F2=262144:this.F2=0;this.RD=this.nh.V("html5_filter_non_efficient_formats_for_safari");this.nh.V("html5_format_hybridization");this.K4=this.nh.V("html5_abort_before_separate_init");this.G1=ai();this.gN=this.nh.V("html5_serialize_server_stitched_ad_request");this.Tq=this.nh.V("html5_attach_po_token_to_bandaid");this.BE=g.WF(this.nh.experiments,"html5_max_redirect_response_length")||
8192;this.CZ=this.nh.V("html5_rewrite_timestamps_for_webm");this.pj=this.nh.V("html5_only_media_duration_for_discontinuities");this.wu=g.WF(this.nh.experiments,"html5_resource_bad_status_delay_scaling")||1;this.gF=g.WF(this.nh.experiments,"html5_sabr_malformed_config_retry_limit");this.nh.V("html5_onesie_live");this.WW=this.nh.V("html5_onesie_premieres");this.s0=g.WF(this.nh.experiments,"html5_onesie_live_ttl_secs")||8;this.eZ=g.WF(this.nh.experiments,"html5_attach_num_random_bytes_to_bandaid");this.I6=
this.nh.V("html5_update_container_type_on_codec_family_change");this.nh.V("html5_apply_ssap_slice_info_adjustment");this.cY=this.nh.V("html5_enable_sabr_host_fallback");this.Ku=this.nh.V("html5_gapless_fallback_on_append_error");this.eN=this.nh.V("html5_shorts_stop_request_when_buffer_to_end");this.l1=this.nh.V("html5_vod_stop_request_when_buffer_to_end");this.wc=this.nh.V("html5_ssdai_use_post_for_media")&&this.nh.V("gab_return_sabr_ssdai_config");this.Jg=this.nh.V("html5_use_post_for_media");this.yn=
this.nh.V("html5_use_live_ump_heartbeat");this.useUmp=this.nh.V("html5_use_ump");this.HT=this.nh.PO;this.VJ=this.nh.V("html5_reset_primary_stats_on_redirector_failure");this.u_=this.nh.V("html5_remap_to_original_host_when_redirected");this.dj=this.nh.V("html5_sabr_support_quality_constraints");this.JI=this.nh.V("html5_sabr_remove_all_quality_constraints");this.uh=this.nh.V("html5_iterative_seeking_buffered_time");this.jH=this.nh.V("html5_use_network_error_code_enums");this.Fo=this.nh.V("html5_disable_overlapping_requests");
this.enableServerDrivenRequestCancellation=this.nh.V("html5_enable_server_driven_request_cancellation");this.gj=this.nh.V("html5_enable_sabr_request_timing");this.sM=this.nh.V("html5_enable_server_format_filter");this.Cu=this.nh.V("html5_enable_lawnmower");this.H1=this.nh.xl()?g.WF(this.nh.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.tM=g.WF(this.nh.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Ub=this.nh.V("html5_live_defrag_only_h264_playbacks");this.QT=this.nh.V("html5_live_defrag_only_h264_formats");
this.Lb=this.nh.V("html5_record_now");this.m_=g.WF(this.nh.experiments,"html5_drm_byterate_soft_cap");this.SM=g.WF(this.nh.experiments,"html5_drm_live_byterate_soft_cap");this.N=this.nh.V("html5_sabr_log_request_creation");this.VA=this.nh.V("html5_use_buffer_timeline_for_sabr_request_creation");this.Ze=this.nh.V("html5_sabr_report_request_cancellation_info");this.xU=this.nh.V("html5_spoof_4k");this.OI=W7(this,"html5_min_media_duration_for_cabr_slice");this.N9=W7(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||
.01;this.vT=this.nh.V("html5_remove_defrag_without_frame_level_streaming");this.aU=this.nh.V("html5_consume_all_buffered_bytes_one_poll");this.yx=this.nh.V("html5_disable_urgent_adaptation");this.n4=this.nh.V("html5_apply_constraints_in_client_for_sabr");this.EG=this.nh.V("html5_send_video_playback_ustreamer_config");this.I2=W7(this,"html5_max_discontinuity_rewrite_count");this.ZK=W7(this,"html5_fixed_media_duration_for_request");this.Cm=this.nh.V("html5_apply_fix_for_missing_seg_info_without_logger");
this.Ad=this.nh.V("html5_enable_audio_quality_setting");this.nh.V("html5_enable_audio_quality_setting_feature");this.aF=W7(this,"html5_sabr_request_limit_per_period");this.Tx=this.nh.V("html5_sabr_dispose_media_objects");this.M5=this.nh.V("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.TQ=this.nh.V("html5_enable_d6de4");this.nh.V("html5_high_res_seek_logging");this.JP=this.nh.V("html5_disable_chunk_synchronization_sabr_seek");this.nh.V("html5_enable_ssap_multi_audio_format_filtering");this.Vg=
g.WF(this.nh.experiments,"html5_override_micro_discontinuities_threshold_ms");this.oZ=this.nh.V("html5_byterate_constraints");this.gb=this.nh.V("html5_refactor_sabr_audio_format_selection_logging");this.hL=this.nh.V("enable_sabr_snackbar_message");this.nh.V("html5_reinit_source_buffer_by_new_element");this.IQ=this.nh.V("html5_refactor_sabr_video_format_selection_logging");this.IU=this.nh.V("html5_log_slice_info_in_sbu");this.dn=W7(this,"html5_paced_poll_ms");this.M9=W7(this,"html5_paced_poll_min_health_ms");
this.oU=this.nh.V("html5_disable_sabr_fallback");this.Co=this.nh.V("html5_track_current_buffered_range_at_sync");this.qs=g.Nw(this.nh)?500:2E3;this.Ig=this.nh.V("html5_sabr_live_timing");this.Gp=this.nh.V("html5_count_updating_slice_for_buffer_health");this.eF=this.nh.V("html5_report_max_buffer_bytes_limit_to_sabr");this.CD=this.nh.V("html5_sabr_live_audio_early_return_fix");this.tI=g.WF(this.nh.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.Xo=this.nh.V("html5_cuepoint_identifier_logging");
this.DB=this.nh.V("html5_new_sabr_ssdai_cuepoint_logic");this.sb=this.nh.V("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.uc=this.nh.V("html5_skip_client_drm_license_constraint");this.Kd=this.nh.V("html5_ssdai_not_block_on_predict_start");this.JG=this.nh.V("html5_pseudogapless_shorts_skip_abort_on_transition");this.YG=this.nh.V("html5_live_metadata_resets_timeout");this.kI=this.nh.V("html5_sabr_log_invalid_sabr_current_time");this.XT=this.nh.V("html5_ssdai_new_decoration_logic");this.Bm=
this.nh.V("html5_enable_smooth_audio_offset");this.C1=this.nh.V("html5_ssdai_log_missing_ad_config_reason");this.dF=this.nh.V("html5_sabr_ignore_skipad_before_completion")};
UAw=function(D,Q,m){m=m===void 0?!1:m;Q.video.qualityOrdinal>1080&&!D.xb&&(D.x9=36700160,D.jD=5242880,D.k9=Math.max(4194304,D.k9),D.xb=!0);Q.video.qualityOrdinal>2160&&!D.UI&&(D.x9=104857600,D.yF=13107200,D.UI=!0);g.WF(D.nh.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Q.isEncrypted()&&g.e8()&&g.j8("samsung")&&(g.j8("kant")||g.j8("muse"))&&(D.yF=g.WF(D.nh.experiments,"html5_samsung_kant_limit_max_bitrate")):Q.isEncrypted()&&g.e8()&&g.j8("kant")&&(D.yF=1310720);D.m_!==0&&Q.isEncrypted()&&
(D.yF=D.m_);D.SM!==0&&Q.isEncrypted()&&m&&(D.yF=D.SM);Q.yF&&(D.FH=Math.max(D.Sg,Math.min(D.k9,5*Q.yF)))};
$x=function(D){return D.S&&D.sM};
iB=function(D){return D.S&&D.pU&&D.playbackStartPolicy};
AY6=function(D,Q,m,P){D.pU&&(D.playbackStartPolicy=Q,D.QJ=m,D.b_=P)};
W7=function(D,Q,m){m=m===void 0?0:m;return g.WF(D.nh.experiments,Q)||m};
pA9=function(D){var Q=D===void 0?{}:D;D=Q.QL;var m=Q.Qo;var P=Q.ze;var W=Q.MY;Q=Q.v0;this.QL=D;this.Qo=m;this.ze=P;this.MY=W;this.v0=Q};
ao$=function(D,Q){if(Q<0)return!0;var m=D.MY();return Q<m||Q===m&&!D.QL||Q===m&&(D=D.v0())&&Q===D.J0?!0:!1};
A3m=function(D,Q,m){if(!ao$(D,Q))return 0;if(!D.Qo||!isNaN(m)&&m>0)return 2;if(Q<0)return 1;m=D.MY();return Q<m||Q===m&&(D=D.v0())&&Q===D.J0&&!D.pending?2:1};
sd=function(D,Q,m){g.v.call(this);this.loader=D;this.policy=Q;this.uE=m;this.C=0;this.S=!1;this.delay=new g.pJ(this.T,this.policy.H1,this);g.O(this,this.delay)};
xBw=function(D,Q){D2(Q.S)||(D.NB=Q,D.C=0,g.xG(D.delay))};
XAr=function(D,Q,m,P,W){var L=this;this.loader=D;this.policy=Q;this.uE=m;this.NB=P;this.SP=W;this.done=!1;this.onTimeout=function(){L.done||(L.done=!0,L.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*GZ(this.uE)));this.timing=new yG(this,{uE:this.uE,JA:this.size,AP:!0,zj:function(){},
qg:this.policy.T});D=ry(this.NB,this.SP,this.policy).Mb.clone();Mj(D);D[d[10]]!=="/videogoodput"&&(D[d[10]]="/videogoodput",D[d[22]]=d[11]);this.location=new Yg(D);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=En(this.location,this.policy.U,this.timing,this.policy.f0,{});setTimeout(this.onTimeout,1E4)};
SSw=function(D,Q,m){var P=D.Vq();if(D.isComplete()||!P||D.info.NB.SP(Q,m))return 0;var W=Q.Ik;if(!W||P<W)return 0;D=xg(m,Go(D.info.NB,!0,Q));return D.S||D.timedOut||D.started?0:2};
rY7=function(D,Q,m){if(!(Q.z7&&D.isComplete()&&D.canRetry()&&D.info.NB.SP(Q,m))||D.info.NB.Z)return 0;D=xg(m,Go(D.info.NB,!1,Q));return D.C+Q.z7*pd(D,!0)>(0,g.T3)()?0:1};
LS=function(D,Q,m,P,W,L,u,t,z,b,q,C,f,V){V=V===void 0?null:V;g.v.call(this);var N=this;this.loader=D;this.policy=Q;this.videoTrack=m;this.audioTrack=P;this.B=W;this.S=L;this.timing=u;this.J=t;this.schedule=z;this.UW=b;this.T=q;this.TO=C;this.mA=f;this.zm=V;this.Iy=!1;this.OU="";this.zx=null;this.e1=NaN;this.Kh=!1;this.C=null;this.iH=this.j=NaN;this.Hj=this.N=0;this.logger=new g.EW("dash");this.It={SE:function(h,B){return N.SE(h,B)}};
this.policy.eZ>0&&(this.OU=g.V$(this.policy.eZ));this.policy.H1&&(this.Z=new sd(this.loader,this.policy,this.schedule),g.O(this,this.Z))};
cYu=function(D,Q,m){var P=Q.C?Q.C.S.NB:Q.S.NB;var W=D.B,L;(L=!D.policy.u_)||(L=c4(P.S)===c4(P.C));L?P=!1:(W=xg(W,c4(P.C)),L=6E4*Math.pow(W.B,1.6),(0,g.T3)()<W.C+L?P=!1:(W.C=(0,g.T3)(),W.B+=1,P.S=P.C.clone(),P=!0));P&&D.loader.dc("hostch",{},!0);if(GZ6(D,Q,m)){m=D.U(Q,m);if(D.C){var u=m.EW[0].S.info.id;P=D.S;W=m.EW[0].J0;P=W<0&&!isNaN(P.N)?P.N:W;W=i9(D.S,m.EW[0].J,P);var t=Q===D.audioTrack?1:2,z=m.EW[0].S.info.FT;L=u.split(";")[0];a:{var b=D.S;if(b.S){var q=b.S.OC.event;if(b.S.J0===P){b=q==="predictStart"?
void 0:b.S.OC.event;break a}if(b.S.J0===P-1){b=q==="start"||q==="continue"?q:void 0;break a}}b=void 0}if(D.policy.wc&&D.S.C!==0){var C=D.C.H$(W,P,u,t,z,b);P<0&&t===2&&sT(D.S,0,0,!0);if(C){var f;u=((f=C.iG)==null?void 0:f.tj)||"";var V;f=((V=C.iG)==null?void 0:V.rI)||-1;D.loader.dc("sdai",{ssdaiinfo:"1",ds:u,skipsq:f,itag:L,f:z,sg:P,st:W.toFixed(3)});m.B=C}}else if(V=D.C.zT(W,P,u,t,z,b),P<0&&t===2&&sT(D.S,0,0,!0),V){f={dec_sq:P,itag:L,st:W.toFixed(3)};if(D.policy.gN&&Q.isRequestPending(P-1)){D.loader.dc("sdai",
{wt_daistate_on_sg:P-1});return}D.loader.dc("sdai",f);V&&(m.S=new g.Gn(V));D.policy.T&&(V=m.NB.hq("id")||"",f=((C=m.S)==null?void 0:C.get("id"))||"",V!==f&&D.loader.dc("stmidmismatch",{cid:V,aid:f}))}else D.S.C!==5&&D.loader.dc("sdai",{nodec_sq:P,itag:L,st:W.toFixed(3)})}D.policy.Br&&m.EW[0].J0!==-1&&m.EW[0].J0<D.UW.vO&&(m=Q.S.GA(D.UW.vO,!1));ae(Q,MC7(D,m));cO(D.timing);var N;(N=D.Z)==null||xBw(N,m.NB)}};
GZ6=function(D,Q,m){if(D.policy.R4)return!1;var P;var W=D.S,L=((P=Q.C)==null?void 0:P.J0)||-1;!W.policy.Kd&&W.C===3&&L+1>=W.B?(W.dc("sdai",{haltrq:L+1,est:W.B}),P=!1):P=W.C!==2;if(!P||!Mk(Q.C?Q.C.S.NB:Q.S.NB,D.policy,D.B,D.loader.kZ())||D.loader.isSuspended&&(!MB(D.schedule)||D.loader.Vw))return!1;if(D.policy.B&&dw>=5)return g.xG(D.loader.q_),!1;if(D.UW.isManifestless){if(Q.T.length>0&&Q.C&&Q.C.J0===-1||Q.T.length>=D.policy.Tv||!D.policy.NI&&Q.T.length>0&&!D.policy.U.Qo)return!1;if(Q.U)return!D.UW.isLive||
!isNaN(D.e1)}if(UB7(Q))return D.logger.debug("Pending request with server-selectable format found"),!1;if(!Q.C){if(!Q.S.xa())return!1;zD(Q,D.loader.getCurrentTime())}if(oV(Q)&&(Q.xI()!==oV(Q)||D.loader.isSuspended))return!1;W=(P=D.policy.HN)&&!Q.T.length&&Gy(Q,!0)<Math.min(P,Gy(m));P=Q.T.length+m.T.length;L=!D.policy.Fo&&((Q.T.length?Q.T[0].f2():!1)||(m.T.length?m.T[0].f2():!1)||D.UW.isLive);(W||L)&&--P;if(P+1>=D.policy.hH)return!1;P=Q.C;if(!P)return!0;P.type===4&&P.S.xa()&&(Q.C=g.fV(P.S.OP(P)),P=
Q.C);if(!P.zM()&&!P.S.Yz(P))return!1;L=D.UW.Ws||D.UW.B;if(D.UW.isManifestless&&L){L=Q.S.index.MY();var u=m.S.index.MY();L=Math.min(L,u);if(Q.S.index.Ox()>0&&L>0&&P.J0>=L)return Q.t0=L,m.t0=L,!1}if(P.S.info.audio&&P.type===4||P.zM())return!1;L=!Q.J&&!m.J;if(W=!W)W=P.N,W=!!(m.C&&!rF(m.C)&&m.C.N<W);u=Q===D.videoTrack&&D.policy.QF;return W&&(!D.UW.isManifestless||m.C&&m.C.N&&P.N)&&L&&!u||D.policy.hU&&!Q.J&&m.J?!1:Lf(P)&&P.N>DSu(D,Q)?(DSu(D,Q),!1):(D=Q.zo)&&D.isLocked()?!1:!0};
DSu=function(D,Q){var m=D.S;m=m.S?m.S.OC:null;if(D.policy.QF&&m)return m.startSecs+m.m$+15;Q=tp(D.loader,Q);D.policy.Kj>0&&(m=((0,g.T3)()-D.loader.bf)/1E3,Q=Math.min(Q,D.policy.Kj+D.policy.uS*m));Q=D.loader.getCurrentTime()+Q;return D.policy.qh&&(m=Q86(D.loader)+D.policy.qh,m<Q)?(D.loader.dc("mrl",{ori:Q,mod:m},!0),D.policy.gq&&mSu(D.loader),m):Q};
PL7=function(D,Q,m){if(m!==0){a:if(Q=Q.info,m=m===2,Q.S)Q=null;else{var P=Q.EW[0];if(Q.range)var W=Pl(Q.range.start,Math.min(4096,Q.T));else{if(Q.C&&Q.C.indexOf("/range/")>=0||Q.NB.hq("defrag")==="1"||Q.NB.hq("otf")==="1"){Q=null;break a}W=Pl(0,4096)}W=new b3([new i3(5,P.S,W,"createProbeRequestInfo"+P.U,P.J0)],Q.C);W.SP=m;W.S=Q.S;Q=W}Q&&MC7(D,Q)}};
MC7=function(D,Q){D.loader.g8(Q);var m=TO_(Q),P=D.loader.B$();m={uE:D.schedule,JA:m,W4:y37(D.J,m),Ov:sW(Q.EW[0]),AP:D2(Q.NB.S),qg:D.policy.T,zj:function(u,t){D.loader.VT(u,t)}};
if(D.schedule.C.N){var W,L;m.LZ=(((W=D.videoTrack.S)==null?void 0:W.info.yF)||0)+(((L=D.audioTrack.S)==null?void 0:L.info.yF)||0)}D.zx&&(m.J0=Q.EW[0].J0,m.e1=Q.e1,m.zx=D.zx);P={o2:hPm(Q,D.loader.getCurrentTime()),Ro:D.policy.ZD&&Cf(Q)&&Q.EW[0].S.info.video?jd6(D.T):void 0,Do:D.policy.QF,poToken:D.loader.lU(),Pd:D.loader.pE(),OU:D.OU,iH:isNaN(D.iH)?null:D.iH,zm:D.zm,mA:D.mA,Hj:D.Hj,gU:P};return new LF(D.policy,Q,m,D.B,function(u,t){try{a:{var z=u.info.EW[0].S,b=z.info.video?D.videoTrack:D.audioTrack;
if(!(u.state>=2)||u.isComplete()||u.Vq()||!(!D.loader.cq||D.loader.isSuspended||Gy(b)>3)){var q=SSw(u,D.policy,D.B);q===1&&(D.Kh=!0);PL7(D,u,q);if(u.isComplete()||u.VF()&&t<3){if(D.policy.T){var C=u.timing.Rb();C.rst=u.state;C.strm=u.xhr.Gj();C.cncl=u.xhr&&u.xJ.J?1:0;D.loader.dc("rqs",C)}u.Xr&&D.loader.dc("sbwe3",{},!0)}if(!D.VF()&&u.state>=2){P3k(D.timing,u,z);var f=D.loader;D.iH&&u.yJ&&f&&(D.iH=NaN,D.loader.Xh(u.yJ),D.loader.qx(),D.loader.dc("cabrUtcSeek",{mediaTimeSeconds:u.yJ}));u.Vp&&D.iH&&u.Vp&&
!u.Vp.action&&(D.loader.dg(D.iH),D.iH=NaN,D.loader.dc("cabrUtcSeekFallback",{targetUtcTimeSeconds:D.iH}));u.iM&&D.loader.uY(u.iM);D.policy.yn&&(D.Hj=u.Hj);if(u.state===3){DL(b,u);Cf(u.info)&&uB(D,b,z,!0);if(D.C){var V=u.info.zT();V&&D.C.xN(u.info.EW[0].J0,z.info.id,V)}D.loader.UC()}else if(u.isComplete()&&u.info.EW[0].type===5){if(u.state!==4)u.U1()&&D.loader.handleError(u.X6(),u.Y0());else{var N=(u.info.EW[0].S.info.video?D.videoTrack:D.audioTrack).T[0]||null;N&&N instanceof LF&&N.Vq()&&N.fk()}u.dispose()}else{u.U1()||
W87(D,u);var h;((h=u.V8)==null?0:h.itagDenylist)&&D.loader.fv(u.V8.itagDenylist);if(u.state===4)ieu(D,u),D.S&&u_9(D.S,u.info,D.C);else if(D.policy.f0&&u.Ap()&&!u.isComplete()&&!ieu(D,u)&&!u.U1())break a;u.U1()&&(s87(D,u),isNaN(D.iH)||(D.loader.dg(D.iH),D.iH=NaN));D.policy.dn&&!u.isComplete()?L8P(D.loader):D.loader.UC();var B=rY7(u,D.policy,D.B);PL7(D,u,B)}}}}}catch(J){t=D.Iy?1:0,D.Iy=!0,u=Nh(t),t=yJ(J,t),D.loader.handleError(t.errorCode,t.details,t.severity),u||D.loader.fI()}},P)};
W87=function(D,Q){if(Q.dU&&Q.state>=2&&Q.state!==3){var m=Q.xhr.getResponseHeader("X-Response-Itag");if(m){D.logger.debug(function(){return"Applying streamer-selected format "+m});
var P=Kw_(D.T,m),W=Q.info.T;W&&(W-=P.oi(),P.T=!0,Q.info.EW[0].S.T=!1,l2m(Q,P.wC(W)),dG(D.loader,D.videoTrack,P),HDw(D.videoTrack,P),D.loader.LQ(P.info.video.quality),(W=Q.hS())&&P.info.lastModified&&P.info.lastModified!==+W&&DL(D.videoTrack,Q))}else Q.dU=!1}};
s87=function(D,Q){var m=Q.info.EW[0].S,P=Q.X6();if(D2(m.NB.S)){var W=g.gP(Q.tN(),3);D.loader.dc("dldbrerr",{em:W||"none"})}W=Q.info.EW[0].J0;var L=i9(D.S,Q.info.EW[0].J,W);P==="net.badstatus"&&(D.N+=1);if(Q.canRetry()&&uG7(D.loader)){if(!(Q.info.NB.T>=D.policy.Us&&D.C&&Q.info.isDecorated()&&P==="net.badstatus"&&D.C.QB(L,W))){W=(m.info.video&&m.NB.T>1||Q.al===410||Q.al===500||Q.al===503)&&!(zy(D.T.J).size>0)&&!D2(m.NB.S);L=Q.Y0();var u=m.info.video?D.videoTrack:D.audioTrack;W&&(L.stun="1");D.loader.handleError(P,
L);D.VF()||(W&&(D.logger.debug(function(){return"Stunning format "+m.info.id}),VL(D.T,m)),DL(u,Q),D.loader.UC())}}else u=1,D.C&&Q.info.isDecorated()&&P==="net.badstatus"&&D.C.QB(L,W)&&(u=0),D.UW.isLive&&Q.X6()==="net.badstatus"&&D.N<=D.policy.Pj*2?(k5h(D.UW),D.UW.Ws||D.UW.isPremiere?CF(D.loader,0,{cn:"badStatusWorkaround"}):D.UW.B?CF(D.loader,D.UW.QF,{cn:"badStatusWorkaround",
Hr:!0}):tB(D.loader)):D.loader.handleError(P,Q.Y0(),u)};
ieu=function(D,Q){if(D.policy.useUmp&&Q.VF())return!1;try{var m=Q.info.EW[0].S,P=m.info.video?D.videoTrack:D.audioTrack;if(D.UW.isManifestless&&P){D.N=0;P.U&&(Q.VF(),Q.isComplete()||Q.Ap(),P.U=!1);Q.iJ()&&D.loader.rj.X9(1,Q.iJ());var W=Q.Ox(),L=Q.A_();Qr(D.UW,W,L)}if(Q.info.Ov()&&!qA(Q.info))for(var u=g.T(Q.pZ()),t=u.next();!t.done;t=u.next())hl4(P,t.value);for(D.loader.getCurrentTime();P.T.length&&P.T[0].state===4;){var z=P.T.shift();TJ7(P,z);P.x9=z.qT()}P.T.length&&TJ7(P,P.T[0]);var b=!!oV(P);b&&
Q instanceof sn&&(m.info.ZQ()?rg$(D.timing):Smr(D.timing));return b}catch(q){Q=Q.Y0();Q.origin="hrhs";a:{D=D.loader;m=q;if(m instanceof Error){Q.msg||(Q.msg=""+m.message);Q.name||(Q.name=""+m.name);if(m instanceof g.OI&&m.args)for(P=g.T(Object.entries(m.args)),W=P.next();!W.done;W=P.next())L=g.T(W.value),W=L.next().value,L=L.next().value,Q["arg"+W]=""+L;g.l4(m);if(m.level==="WARNING"){D.Ch.T8(Q);break a}}D.handleError("fmt.unplayable",Q,1)}return!1}};
dS9=function(D){var Q=D.videoTrack.S.index;D.zx=new pA9({QL:D.policy.QL,Qo:D.policy.U.Qo,ze:Q.mT(),MY:function(){return Q.MY()},
v0:function(){return Q.v0()}})};
uB=function(D,Q,m,P){if(!(m.xa()||m.Oe()||m.T||!Mk(m.NB,D.policy,D.B,D.loader.kZ())||m.info.FT==="f"||D.policy.S)){if(P){P=D.J;var W=m.info;P=Zxm(P,W.video?P.policy.c5:P.policy.IH,W.yF)}else P=0;P=m.wC(P);D=MC7(D,P);qA(P)&&ae(Q,D);m.T=!0}};
zL=function(D,Q,m,P,W,L,u,t){g.v.call(this);var z=this;this.loader=D;this.oI=Q;this.videoTrack=m;this.audioTrack=P;this.UW=W;this.j=L;this.isAudioOnly=u;this.Z=t;this.C=y7;this.Kh=!1;this.logger=new g.EW("sabr");this.U=this.Iy=this.TO=!1;this.videoInfos=this.N=this.j.videoInfos;this.T=this.QF=this.j.S;this.S=new dF(Q,L,function(b,q){z.loader.dc(b,q)});
this.isAudioOnly&&tP$(this,this.UW.S["0"])};
za4=function(D,Q){var m=[];Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())m.push(g.Qh(P.value,D.UW.VX));return m};
tP$=function(D,Q,m){Q!==D.B&&(D.B&&(D.Kh=!0),D.B=Q,D.E$(Q,D.videoTrack,m))};
ov9=function(D,Q){D.logger.debug("setConstraint: "+jc(Q));$x(D.oI)&&(D.Iy=Q.reason==="m"||Q.reason==="l"?!0:!1);Q.reason==="m"?Q.isLocked()&&be7(D,Q.S):qOu(D,Q)?CLu(D,Q.C,Q.S):D.videoInfos=D.N;D.C=Q};
qOu=function(D,Q){return D.oI.dj&&Q.reason==="b"||D.oI.uc&&Q.reason==="l"||D.oI.JI?!1:D.oI.n4?!0:Q.reason==="l"||Q.reason==="b"||Q.reason==="o"};
fWr=function(D,Q){return Q.isLocked()&&D.S.C||D.C===void 0?!1:Q.equals(D.C)};
VP$=function(D,Q){var m,P=(m=D.B)==null?void 0:m.info.video.qualityOrdinal;return D.Kh?!0:D.B?Q!==P?!0:!D.S.C||D.oI.M5&&D.S.S===D.B.info.itag?!1:!0:!1};
be7=function(D,Q){var m=D.S.S;if(m){D.videoInfos=D.N;var P=g.y4(D.videoInfos,function(W){return W.id===m});
P&&P.video.qualityOrdinal===Q?D.videoInfos=[P]:(P=D.videoInfos.map(function(W){return W.id}),D.loader.dc("sabrpf",{pfid:""+m,
vfids:""+P.join(".")}),CLu(D,Q,Q),b9(D.S,""))}else CLu(D,Q,Q)};
CLu=function(D,Q,m){D.videoInfos=D.N;D.videoInfos=g.g0(D.videoInfos,function(P){return P.video.qualityOrdinal>=Q&&P.video.qualityOrdinal<=m})};
Nvk=function(D,Q,m){if(D.Z){var P=g.g0(D.T,function(W){return W.id===D.Z});
return bB(P,m).includes(Q)}P=g.g0(D.T,function(W){var L;return!((L=W.WY)==null||!L.isDefault)});
return P.length>0?bB(P,m).includes(Q):bB(D.T,m).includes(Q)};
bB=function(D,Q){return D.map(function(m){return cW(g.Qh(m,Q))})};
yf9=function(D){var Q;if((Q=D.C)==null?0:Q.isLocked())return D.videoInfos;var m=zy(D.S);Q=g.g0(D.videoInfos,function(P){return P.yF>D.oI.yF?!1:!m.has(P.id)});
NL9(D.S)&&(Q=g.g0(Q,function(P){return P.video.width<=854&&P.video.height<=480}));
return Q};
F8$=function(D,Q,m){var P=D.UW,W=D.Ch.getVideoData(),L=D.sU,u=Eg7({nh:W.G(),Ch:D.Ch,OB:D.OB,oI:D.oI,yO:D.yO,e2:D.e2,yg:D.yg,Qf:D.Qf,L0:D.L0,isPrefetch:D.isPrefetch,J9:D.J9,sabrLicenseConstraint:W.sabrLicenseConstraint,hG:D.hG,C2:D.C2,Un:D.Un,qw:D.qw,Uc:!!L,authorizedFormats:W.authorizedFormats}),t=eu(W,D.gU,D.nextRequestPolicy,D.ZE,D.tX,D.Nd,D.l3);m&&Q&&(m=t.gz?t.gz.map(function(C){return C.type}):[],Q("sabr",{stmctxt:m.join("_"),
unsntctxt:t.f$?t.f$.join("_"):""}));Q=D.GG;m=D.XF;if(m===void 0&&Q===void 0){var z;m=Ze_(P.VX,(z=D.b3)==null?void 0:z.video);var b;Q=Ze_(P.VX,(b=D.b3)==null?void 0:b.audio)}if(W.zm)var q=W.zm;W={S0:u,AT:D.AT,GG:Q,XF:m,sU:L,videoPlaybackUstreamerConfig:q,Kg:t};D.iG&&(W.iG=D.iG);W.KM=D.KM;W.Rf=P.GO;return W};
Ze_=function(D,Q){return Q?[g.Qh(Q.info,D)]:[]};
qN=function(D,Q,m){var P=this;this.requestType=D;this.NB=Q;this.DG=m;this.C=null;this.It={nzO:function(){var W;return(W=P.data)==null?void 0:W.isPrefetch},
tX:function(){var W;return(W=P.data)==null?void 0:W.tX}}};
Agn=function(D,Q,m){Q=ry(D.NB,Tv6(D,Q,m),Q);D.lO()&&Q.set("probe","1");return Q};
Tv6=function(D,Q,m){D.SP===void 0&&(D.SP=D.NB.SP(Q,m));return D.SP};
ha_=function(D){var Q,m;return((Q=D.S)==null?void 0:(m=Q.S0)==null?void 0:m.fQ)||0};
nvP=function(D){var Q,m;return!!((Q=D.S)==null?0:(m=Q.S0)==null?0:m.hG)};
Evn=function(D){var Q={},m=[],P=[];if(!D.data)return Q;for(var W=0;W<D.data.KM.length;W++){var L=D.data.KM[W],u=void 0;m.push("i."+((u=L.formatId)==null?void 0:u.itag)+"_st."+(L.startTimeMs+"_e."+(L.startTimeMs+L.durationMs)+"_d."+L.durationMs)+("_sn."+L.nU)+("_en."+L.Np))}for(W=0;W<D.data.AT.length;W++){L=D.data.AT[W];var t=u=void 0,z=void 0,b=void 0;P.push("i."+((u=L.formatId)==null?void 0:u.itag)+"_sn."+L.sequenceNumber+"_sl."+(L.ML||NaN)+"_lb."+L.nC+"_tr.s_"+((t=L.YD)==null?void 0:t.startTicks)+
"_d_"+((z=L.YD)==null?void 0:z.XP)+"_t_"+((b=L.YD)==null?void 0:b.timescale)+"_ed_"+L.Kz)}Q.ptime=ha_(D);Q.rtype=D.requestType;Q.brl=m.join(";");Q.ps=P.join(";");return Q};
gv_=function(D){this.S=D;this.iv=(0,g.vO)(fP(16))};
w8n=function(D,Q){var m;return g.U(function(P){(0,g.T3)();if(D.S.S)return P.return(Bv9(D,Q,D.iv));m=fQw(D.S);return P.return(m.encrypt(Q,D.iv))})};
ksu=function(D,Q){(0,g.T3)();var m;if((m=D.S.S)==null)var P=void 0;else a:{D=D.iv;try{var W=C1h(m,Q,D),L=m.S.Rw(D),u=m.S,t=m.B,z=new Uint8Array(u.exports.memory.buffer,u.malloc(32),32);u.exports.Sha256Hmac(t.byteOffset,t.byteLength,L.byteOffset,L.byteLength,W.byteOffset,W.byteLength,z.byteOffset);m.S.free(L.byteOffset);P={O9:m.S.mX(W),signature:m.S.mX(z)};break a}catch(b){g.l4(Error("ocwceas: wasm encryptAndSign failed: "+b))}P=void 0}return P};
Jf7=function(D,Q){var m;return g.U(function(P){(0,g.T3)();var W=D.S;W.J||(W.J=new iPj(W.T));m=W.J;return P.return(uE_(m,Q,D.iv))})};
lW9=function(D,Q,m){var P;return g.U(function(W){(0,g.T3)();if(D.S.S)return W.return(Bv9(D,Q,m));P=fQw(D.S);return W.return(P.decrypt(Q,m))})};
IWk=function(D,Q,m){var P,W=(P=D.S.S)==null?void 0:P.encrypt(Q,m);return W?W:(new g.ql(D.S.C)).encrypt(Q,m)};
Bv9=function(D,Q,m){var P;return g.U(function(W){switch(W.C){case 1:var L=D.S;var u=zJ();L=u?new bm(L.C,u):void 0;P=L;if(!P){W.Nv(2);break}g.h4(W,3);return g.I(W,P.encrypt(Q,m),5);case 5:return W.return(W.S);case 3:g.w7(W);case 2:return W.return(IWk(D,Q,m))}})};
CS=function(D){g.v.call(this);var Q=this;this.SD=D;this.S=new Map;this.B=[];this.C=!zJ();this.j=g.WF(this.SD.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.pJ(this.U,this.j,this);this.N=-1;this.It={QbW:function(){return Q.S},
elF:function(){return Q.J},
H1y:function(){return Raj}};
g.O(this,this.Z);mkw(this,g.kt("yt-player-bandaid-host"));this.J=this.load();this.j&&this.J.then(function(){Q.U()})};
mkw=function(D,Q){var m=Q==null?void 0:Q.primary;D.T(0,m);m=m?USw(m):void 0;D.T(2,m);D.T(1,Q==null?void 0:Q.secondary)};
ox=function(D,Q){return new g.Gn("https://"+Q+D.SD.kJ.baseUrl)};
He$=function(D,Q){D="https://"+c4(Q.location)+"/initplayback?c="+TZ(D.SD)+"&owc=1";M$(D,"pw",function(m){m.ht=Q.S})};
fS=function(D,Q,m,P){M$("https://"+Q+"/videoplayback?probe=1",m,function(W){!P.V("html5_onesie_host_racing")||P.videoData.isLivePlayback||P.V("html5_onesie_probe_ec_hosts")||P.aK||P.w0();D.B.push(W)},function(W){D.B.push(W.details)})};
USw=function(D){return D.replace(/(\d+)---/g,function(Q,m){Q=Number(m);return(Q===1?2:Q-1)+"---"})};
K8_=function(D,Q){var m,P,W,L,u,t,z,b;return g.U(function(q){if(q.C==1){m=ox(D,"redirector.googlevideo.com");m.set("alr","yes");m.set("id",""+Math.round(Math.random()*1E5));if(Q===1||Q===2)m.set("cmo=sensitive_content","yes"),m.set("sc","yes");Q===2&&m.set("cmo=td","c.youtube.com");P={format:"RAW",timeout:5E3};return g.I(q,hl(m.AD(),P),2)}W=q.S;if(W.xhr.status!==200||!W.xhr.responseText)return q.return(Promise.reject(new g.OI("b204258371_no_host",m.AD(),W.xhr.status)));L=new g.Gn(W.xhr.responseText);
u=c4(L);t=L.get("ms");z=ox(D,u);b=L.get("mm");z.set("ms",t);z.set("mm",b);return u&&Q57(u)?Q!==2||Jp(u)?q.return(z):q.return(Promise.reject(new g.OI("b204258371_untrusted",u,t))):q.return(Promise.reject(new g.OI("b204258371_invalid",u,t)))})};
j8P=function(D){var Q=D.B;D.B=[];return Q};
Q57=function(D){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(D)};
Jp=function(D){var Q=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(D)&&!Q.test(D)};
$Sn=function(D,Q){this.location=D;this.S=Q};
ea$=function(D){this.zV=D;this.C=!1;this.S=[]};
NN=function(D){for(;D.S.length&&!D.S[0].isEncrypted;){var Q=D.S.shift(),m=Q.videoId,P=Q.T9,W=Q.formatId,L=Q.buffer;Q=Q.Zu;if(L)Q=void 0,(Q=VX(D.zV.Wn,m))==null||GD(Q,P,W,L);else if(Q)D.zV.Wn.vj(m,P,W);else if(P=D.zV,P.S[W].OO=!0,m=VX(P.Wn,m),m==null?0:m.Pn.has(W))m==null||xx(m,W)}};
g.YO6=function(D){this.data=D;this.S=0;this.B=!1;this.T=0;this.error=!1;this.register=this.C=0;if(yX.length===0){yX.length=288;yX.fill(8);for(D=144;D<280;D++)yX[D]=D<=255?9:7;vv4.length=32;vv4.fill(5);ZL.length=286;ZL.fill(0);for(D=261;D<285;D++)ZL[D]=Math.floor((D-261)/4);FU[257]=3;for(D=258;D<285;D++){var Q=FU[D-1];Q+=1<<ZL[D-1];FU[D]=Q}FU[285]=258;for(D=0;D<30;D++)Oeu[D]=D<=3?0:Math.floor((D-2)/2);for(D=TL[0]=1;D<30;D++)Q=TL[D-1],Q+=1<<Oeu[D-1],TL[D]=Q}D=100+7*this.data.length;this.data[0]===31&&
this.data[1]===139&&(D=(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(D)};
g.SOP=function(D){for(;!D.B&&!D.error;){var Q=D;Q.B=!!hB(Q,1);switch(hB(Q,2)){case 2:var m=[],P=[];P.length=19;P.fill(0);var W=hB(Q,5)+257;var L=hB(Q,5)+1;for(var u=hB(Q,4)+4,t=0;t<u;t++)P[aW7[t]]=hB(Q,3);P=Afj(P);for(u=W+L;m.length<u;){t=p8_(Q,P);switch(t){case 16:t=m[m.length-1];var z=hB(Q,2)+3;break;case 17:t=0;z=hB(Q,3)+3;break;case 18:t=0;z=hB(Q,7)+11;break;default:z=1}for(;z>0;z--)m.push(t)}m.length!==u?Q.error=!0:(L=m.slice(-L),m.length=W,xS$(Q,m,L));break;case 1:xS$(Q,yX,vv4);break;case 0:X8P(Q,
Q.S&7);m=hB(Q,16);W=hB(Q,16);(m^W)!==65535&&(Q.error=!0);Q.output.set(Q.data.subarray(Q.C,Q.C+m),Q.T);Q.C+=m;Q.T+=m;break;default:Q.error=!0}D.T>D.output.length&&(D.output=new Uint8Array(D.T*2),D.T=0,D.C=0,D.B=!1,D.S=0,D.register=0)}D.output.length!==D.T&&(D.output=D.output.subarray(0,D.T));return D.error?new Uint8Array(0):D.output};
xS$=function(D,Q,m){Q=Afj(Q);m=Afj(m);for(var P=D.data,W=D.output,L=D.T,u=D.register,t=D.S,z=D.C;;){if(t<15){if(z>P.length){D.error=!0;break}u|=(P[z+1]<<8)+P[z]<<t;z+=2;t+=16}var b=Q[u&127];if(b<0)for(u>>=7;b<0;)b=Q[(u&1)-b],u>>=1;else u>>=b&15;t-=b&15;b>>=4;if(b<256)W[L++]=b;else if(D.register=u,D.S=t,D.C=z,b>256){u=FU[b];u+=hB(D,ZL[b]);z=p8_(D,m);t=TL[z];t+=hB(D,Oeu[z]);if(rf6&&u<t)t=L-t,W.copyWithin(L,t,t+u);else for(z=L+u,b=L;b<z;b+=4)W[b]=W[b-t],W[b+1]=W[b-t+1],W[b+2]=W[b-t+2],W[b+3]=W[b-t+3];
L+=u;u=D.register;t=D.S;z=D.C}else break}D.T=L};
p8_=function(D,Q){if(D.S<7){var m=D.data,P=D.C;P>m.length&&(D.error=!0);D.register|=(m[P+1]<<8)+m[P]<<D.S;D.C+=2;D.S+=16}m=Q[D.register&127];if(m>=0)return X8P(D,m&15),m>>4;for(X8P(D,7);m<0;)m=Q[hB(D,1)-m];return m>>4};
hB=function(D,Q){for(;D.S<Q;){if(D.C>=D.data.length)return D.error=!0,0;D.register|=D.data[D.C++]<<D.S;D.S+=8}var m=D.register&(1<<Q)-1;D.register>>=Q;D.S-=Q;return m};
X8P=function(D,Q){D.S-=Q;D.register>>=Q};
Afj=function(D){for(var Q=[],m=g.T(D),P=m.next();!P.done;P=m.next())P=P.value,Q[P]||(Q[P]=0),Q[P]++;var W=Q[0]=0;m=[];var L=0;P=0;for(var u=1;u<Q.length;u++)Q[u]?P=u:Q[u]=0,W=W+Q[u-1]<<1,m[u]=W,u>7&&(L+=Q[u]);for(W=1;W<L;)W<<=1;Q=128;P=new Int16Array(128+(W+P)*2);for(L=0;L<D.length;L++)if(u=D[L]){for(var t=m[u]++,z=W=0;z<u;z++)W=W<<1|t>>z&1;t=L<<4|u;if(u<=7)for(z=1<<7-u;z--;)P[z<<u|W]=t;else{z=W&127;u-=7;for(W>>=7;u--;){P[z]||(P[z]=-Q,Q+=2);var b=W&1;W>>=1;z=b-P[z]}P[z]=t}}return P};
MP_=function(D){var Q,m,P,W,L,u,t,z,b;return g.U(function(q){switch(q.C){case 1:if(!Gs$)throw Error("DecompressionStream is not supported");Q=Rp.Bv();m=new DecompressionStream("gzip");P=m.writable.getWriter();P.write(D);P.close();W=m.readable.getReader();L=new Lh([]);case 2:return g.I(q,W.read(),5);case 5:u=q.S;t=u.value;if(z=u.done){q.Nv(4);break}L.append(t);q.Nv(2);break;case 4:return b=bo(L),Rp.eI("gznb",Q,Math.ceil(b.byteLength/16)),q.return(b)}})};
cfn=function(D){Yx.call(this,"onesie");this.Wn=D;this.S={};this.B=!0;this.T=null;this.queue=new ea$(this);this.J={}};
D44=function(D){var Q=D.queue;Q.S.length&&Q.S[0].isEncrypted&&!Q.C&&(Q.S.length=0);Q=g.T(Object.keys(D.S));for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=D.S[m];if(!P.OO){var W=D.queue;W.S.push({videoId:P.videoId,formatId:m,isEncrypted:!1});W.C||NN(W)}}};
Qb_=function(D,Q){var m=Q.totalLength,P=!1;switch(D.T){case 0:D.JO(Q,D.B).then(function(W){var L=D.Wn;L.Fw("oprr");L.playerResponse=W;L.U5||(L.iL=!1);nS(L)},function(W){D.Wn.fail(W)});
break;case 2:D.Fw("ormk");Q=bo(Q);D.queue.decrypt(Q);break;default:P=!0}D.Wn.eH&&D.Wn.dc("ombup","id.11;pt."+D.T+";len."+m+(P?";ignored.1":""));D.T=null};
m4h=function(D,Q){var m,P,W,L,u;return g.U(function(t){switch(t.C){case 1:D.Wn.Fw("oprgz_s");if(!Gs$){t.Nv(2);break}g.h4(t,3);return g.I(t,MP_(Q),5);case 5:return m=t.S,D.Wn.Fw("oprgz_n"),t.return(m);case 3:P=g.w7(t),D.Wn.dc("gzerr",{impl:"native",err:""+P});case 2:if(W=D.Wn.G().KI)try{var z=Rp.Bv(),b=W.Rw(Q),q=W,C=b!=null?b:Q,f=C.byteOffset,V=C.byteLength,N=q.exports.getInflatedSize(f,V);if(N===0)throw Error("wasm_gz: bad input");var h=q.malloc(N),B=q.exports.inflateGzip(f,V,h);if(B)throw q.free(h),
Error("wasm_gz: fail"+B);var J=new Uint8Array(q.exports.memory.buffer,h,N);b&&W.free(b.byteOffset);var k=W.mX(J);Rp.eI("gzwb",z,Math.ceil(k.byteLength/16));L=k;D.Wn.Fw("oprgz_w");return t.return(L)}catch(R){D.Wn.dc("gzerr",{impl:"wasm",err:""+R})}z=Rp.Bv();b=g.SOP(new g.YO6(Q));Rp.eI("gzjb",z,Math.ceil(b.byteLength/16));u=b;D.Wn.Fw("oprgz_p");return t.return(u)}})};
PHm=function(D){return new Promise(function(Q){setTimeout(Q,D)})};
Wp6=function(D,Q){var m=D.G();m=D.H1&&m.V("html5_onesie_preload_use_content_owner");var P=D.R9,W=nD(Q.SD.experiments,"debug_bandaid_hostname");if(W)Q=ox(Q,W);else if((m===void 0?0:m)&&(P==null?0:P.url)&&!Q.C){var L=c4(new g.Gn(P.url));Q=ox(Q,L)}else Q=(L=Q.S.get(0))==null?void 0:L.location.clone();if(Q&&D.videoId){L=KD(D.videoId);D=[];if(L)for(L=g.T(L),m=L.next();!m.done;m=L.next())D.push(m.value.toString(16).padStart(2,"0"));Q.set("id",D.join(""));return Q}};
izj=function(D,Q,m){m=m===void 0?0:m;var P,W;return g.U(function(L){if(L.C==1)return P=[],P.push(Q.load()),m>0&&P.push(PHm(m)),g.I(L,Promise.race(P),2);W=Wp6(D,Q);return L.return(W)})};
sb7=function(D,Q,m,P){P=P===void 0?!1:P;D.set("cpn",Q.clientPlaybackNonce);D.set("opr","1");var W=Q.G();D.set("por","1");zJ()||D.set("onem","1");Q.startSeconds>0&&D.set("osts",""+Q.startSeconds);P||(W.V("html5_onesie_disable_partial_segments")&&D.set("oses","1"),Q=W.V("html5_gapless_onesie_no_media_bytes")&&lH(Q)&&Q.H1,m&&!Q?(Q=m.audio,D.set("pvi",m.video.join(",")),W.V("html5_onesie_disable_audio_bytes")||D.set("pai",Q.join(",")),hY||D.set("osh","1")):(D.set("oad","0"),D.set("ovd","0"),D.set("oaad",
"0"),D.set("oavd","0")))};
Lpm=function(D,Q,m,P,W){W=W===void 0?!1:W;var L="https://youtubei.googleapis.com/youtubei/"+Q.fF.innertubeApiVersion+"/player",u=[{name:"Content-Type",value:"application/json"}];P&&u.push({name:"Authorization",value:"Bearer "+P});u.push({name:"User-Agent",value:g.Kg()});g.YK("EOM_VISITOR_DATA")?u.push({name:"X-Goog-EOM-Visitor-Id",value:g.YK("EOM_VISITOR_DATA")}):(m=m.visitorData||g.YK("VISITOR_DATA"))&&u.push({name:"X-Goog-Visitor-Id",value:m});(m=g.YK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&u.push({name:"X-YouTube-Lava-Device-Context",
value:m});(Q=nD(Q.experiments,"debug_sherlog_username"))&&u.push({name:"X-Youtube-Sherlog-Username",value:Q});D=Fa(JSON.stringify(D));return{url:L,WJ:u,postBody:D,Nic:W,nJ:W}};
uim=function(D,Q,m,P,W,L,u){var t=D.QS,z=D.GZ;D=D.CHT;var b=t!==void 0&&z!==void 0,q=P.getVideoData(),C,f=Q.S.encryptedClientKey;Q=b?Q.iv:void 0;b=GZ(m.schedule,!0);W=W||!!zJ()&&b>1572864;return{innertubeRequest:{SN0:D,Du:t,GZ:z,encryptedClientKey:f,iv:Q,oV9:!0,hs:!0,IS:"DecompressionStream"in window||!W,NaO:m.experiments.Mv("html5_use_jsonformatter_to_parse_player_response")},S0:Eg7({nh:m,Ch:P,OB:q.startSeconds*1E3}),onesieUstreamerConfig:L,bx:u,Kg:eu(q),reloadPlaybackParams:(C=q.Oj)==null?void 0:
C.reloadPlaybackParams}};
d4w=function(D,Q,m,P,W,L){var u=g.GW(D,RN),t;if(!D.nJ)if(t=ksu(Q,u)){var z=t.O9;t=t.signature}else t=z=Q.encrypt(u),(0,g.T3)(),t=WN$(new PE9(Q.S.T),t,Q.iv);return uim(z&&t?{QS:z,GZ:t}:{CHT:u},Q,m,P,!!D.nJ,W,L)};
tj$=function(D,Q,m,P,W,L){var u,t,z;return g.U(function(b){if(b.C==1)return u=g.GW(D,RN),g.I(b,w8n(Q,u),2);if(b.C!=3)return t=b.S,g.I(b,Jf7(Q,t),3);z=b.S;return b.return(uim({QS:t,GZ:z},Q,m,P,!!D.nJ,W,L))})};
zq_=function(D,Q,m,P,W,L){var u=g.GW(D,RN);if(u=ksu(Q,u))return uim({QS:u.O9,GZ:u.signature},Q,m,P,!!D.nJ,W,L)};
gG=function(D,Q){g.v.call(this);var m=this;this.Ch=D;this.playerRequest=Q;this.logger=new g.EW("onesie");this.xhr=null;this.state=1;this.ZB=new kS;this.vX=!1;this.playerResponse="";this.Xf=new TD(this);this.zV=new cfn(this);this.V7="";this.aK=this.Yd=!1;this.mz="";this.enableCompression=this.U5=this.Ka=!1;this.b5=[];this.Pi=-1;this.q0=0;this.SD=this.Ch.G();this.videoData=this.Ch.getVideoData();this.eH=this.SD.xl();this.Hl=this.SD.kJ;this.TG=new gv_(this.Hl.S);this.Lg=this.SD.V("html5_onesie_check_timeout");
this.mL=new g.pJ(this.e5,500,this);this.df=new g.pJ(this.w0,1E4,this);this.BW=new g.pJ(function(){if(!m.isComplete()){var P=Ed(m);m.fail(new g.VJ("net.timeout",P))}},1E3);
this.Xp=new g.pJ(this.tDz,2E3,this);this.yB=this.Ch.pE();this.iL=this.V("html5_onesie_wait_for_media_availability");g.O(this.videoData,this);g.O(this,this.mL);g.O(this,this.df);g.O(this,this.Xp);D=gJ();hY&&D&&(this.Hx=new Map);this.Vl=new Map;this.SL=new Map;this.xH=new Map;this.kM=new Map};
VX=function(D,Q){var m;return(m=D.Hx)==null?void 0:m.get(Q)};
q1$=function(D,Q,m){var P;return g.U(function(W){if(W.C==1)return D.Fw("oprd_s"),bz9(D)?g.I(W,lW9(D.TG,Q,m),3):(P=D.TG.decrypt(Q,m),W.Nv(2));W.C!=2&&(P=W.S);D.Fw("oprd_c");return W.return(P)})};
CHw=function(D){return D.V("html5_onesie_host_probing")||D.eH?hY:!1};
nS=function(D){if(!D.playerResponse)return!1;if(D.Ka)return!0;var Q=D.videoData.V("html5_onesie_audio_only_playback")&&Ib(D.videoData);if(D.Hx&&D.iL){if(!D.Hx.has(D.V7))return!1;var m=D.Hx.get(D.V7),P;if(P=m){P=!1;for(var W=g.T(m.Pn.keys()),L=W.next();!L.done;L=W.next())if(L=m.Pn.get(L.value))for(var u=g.T(L.kE),t=u.next();!t.done;t=u.next())t.value.uR>0&&(L.ZQ?P=!0:Q=!0);P=!(Q&&P)}if(P)return!1}D.Fw("ofr");D.ZB.resolve(D.playerResponse);if(!D.Lg){var z;(z=D.BW)==null||z.start();D.df.start()}return D.Ka=
!0};
fYw=function(D){if(D.Hx&&!D.V("html5_onesie_media_capabilities")){D.Fw("ogsf_s");var Q=yg_(D.Ch.getVideoData(),function(P,W){D.dc(P,W)}),m=oA9(D.Ch);
Q.video=tJj(m,Q.video);D.Fw("ogsf_c");if(Q.video.length)return Q;D.dc("ombspf","l."+m.C+";u."+m.S+";o."+m.T+";r."+m.reason)}};
bz9=function(D,Q){return D.V("html5_onesie_sync_request_encryption")||(Q==null?0:Q.nJ)||g.wv(D.SD)&&D.V("html5_embed_onesie_use_sync_encryption")?!1:!!zJ()};
Ed=function(D){if(!D.Kn)return{};var Q=D.Kn.Rb(),m;Q.d=(m=D.Kn.t0)==null?void 0:m.R_();Q.shost=D.Bo;Q.ty="o";return Q};
Vj9=function(D,Q){var m,P;(P=(D=(m=D.Hx)==null?void 0:m.get(Q))==null)||(Q=D.T?!1:D.T=!0,P=!Q);return!P};
Nwm=function(D,Q,m,P,W,L,u,t,z,b,q,C){g.v.call(this);var f=this;this.Ch=D;this.loader=Q;this.policy=m;this.audioTrack=P;this.videoTrack=W;this.UW=L;this.uE=u;this.XT=t;this.T=z;this.timing=b;this.j=q;this.wc=C;this.S=[];this.J={};this.Y9=this.l0=!1;this.B=this.k9=this.TO=this.GO=this.L0=0;this.Z=null;this.Kh={KM:[],AT:[]};this.QF={KM:[],AT:[]};this.U=null;this.N=[];this.It={lcc:function(){return f.S},
Ic0:function(){return f.J},
dz0:function(){f.S.length=0},
u5h:function(){return f.videoData.XT},
b1O:function(){return f.TO},
Rr0:function(V){f.TO=V},
t0c:function(V){f.B=V},
Tr:function(V){f.U=V},
lI:function(V){f.N=V}};
this.videoData=this.Ch.getVideoData();this.policy.H1&&(this.u0=new sd(this.loader,this.policy,this.uE),g.O(this,this.u0))};
Fpw=function(D,Q){Q=Q===void 0?!1:Q;if(ycP(D)){D.policy.N&&D.loader.dc("sabrcrq",{create:1});var m=new qN(0,D.UW.j,D);D.policy.aF>0&&D.B++;Q=Zzu(D,m,Q);D.S.push(Q);var P;(P=D.u0)==null||xBw(P,D.UW.j)}};
nA6=function(D,Q){var m=Twu(D);if(D.policy.VA){var P=D.Kh;var W=D.QF}else P=B7(D,D.audioTrack),W=B7(D,D.videoTrack);var L=[].concat(g.on(P.KM),g.on(W.KM));wG(D)&&L.push.apply(L,g.on(D.N));var u=[].concat(g.on(P.AT),g.on(W.AT)),t=D.loader.B$();if(D.policy.kI&&!D.videoData.isLivePlayback){var z=D.videoData.lengthSeconds*1E3;m>=z&&D.loader.dc("invalidSabrCmt",{cmt:m,vd:z})}var b,q;z=D.Ch;var C=D.UW,f=D.C,V=D.videoData.XT,N=D.policy,h=D.loader.bf,B=Q86(D.loader)*1E3,J=(b=D.t0)==null?void 0:b.yg;b=(q=
D.t0)==null?void 0:q.Qf;var k;q=Number((k=D.T.B)==null?void 0:k.info.itag)||0;var R;k=Number((R=D.T.J)==null?void 0:R.info.itag)||0;Q={Ch:z,UW:C,KM:L,AT:u,OB:m,nextRequestPolicy:f,ZE:V,oI:N,yO:h,e2:B,yg:J,Qf:b,L0:D.L0,isPrefetch:Q||D.loader.isSuspended,XG:q,PA:k,gU:t,l3:D.Ch.Z9()};m=D.loader.lU();L=KD(m);m&&(Q.tX=L);if(m=D.Ch.xQ())Q.hG=m*1E3;var e;m=D.T;L=m.TO;if(((e=m.oI)==null?0:$x(e))&&!L)for(e=g.T(m.T),u=e.next();!u.done;u=e.next())if(u.value.WY){L=!0;break}e=$x(m.oI)&&!L?[]:za4(m,m.T);Q.GG=e;
e=D.T;$x(e.oI)&&!e.Iy?e=[]:(m=yf9(e),m.length===0&&(m=e.N),e=za4(e,m));Q.XF=e;Q.sU=wG(D)?[D.U]:void 0;D.policy.eF&&(Q.Un=hqw(D.loader,D.audioTrack),Q.qw=hqw(D.loader,D.videoTrack));if(D.policy.C){e=D.loader.getCurrentTime();P=kU(D,P.KM,e);W=kU(D,W.KM,e);W=Math.min(P,W);wG(D)&&(P=kU(D,D.N,e),D.Ch.xl()&&P<W&&D.loader.dc("sabrcfb",{met:W,cet:P,cbrl:D.N.length}),W=Math.min(W,P));var a;if(D.policy.XT){var G=((a=D.videoData.C)==null?void 0:a.containerType)||0;a=D.videoData.BE[G];if((G=D.wc)==null)a=void 0;
else a:{P=D.policy.u0?W:void 0;W="";G.T?G.S?W=G.S:P!==void 0&&(W=oFh(G,P)):(P!==void 0&&G.z4(P),W=G.S);if(W&&(P=G.C.get(W),G.T||P!=null&&P.z1)){W={cuepointId:W};P&&(W.PE=P.nW,P.z1&&(W.adsConfig=KD(P.z1)||void 0),P.BD&&(W.rI=P.BD));G.T&&(W.Iz=(P==null?void 0:P.Iz)||0);a&&(W.y3=IG(a.split(";")[0]),W.je=a.split(";")[1]||"");a=W;break a}a=void 0}}else a=(G=D.Z)==null?void 0:G.BJ(W);a&&(Q.iG=a)}D.policy.j&&D.S.length>0&&D.S[0].UR()&&(Q.Nd=D.S[0].IR());return Q};
Twu=function(D){var Q,m=D.policy.J&&((Q=D.loader)==null?void 0:Q.C8());Q=D.loader.getCurrentTime()||0;Q=EAn(D,Q);var P=D.loader.m2()||0;Q+=P;P=m5(D.videoData)||g.Qw(D.videoData);var W=0;m?(P&&(W=Number.MAX_SAFE_INTEGER),D.videoData.Kh&&(W=Math.ceil(D.videoData.QF*1E3))):W=Math.ceil(Q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,W)};
wG=function(D){return D.policy.kB&&!!D.U};
EAn=function(D,Q){if(D.loader.isSeeking())return Q;var m=D.Ch.Cn();if(!m)return Q;m=m.jb();if(m.length===0||z5(m,Q))return Q;if(!KBr(D.videoTrack,Q)&&!KBr(D.audioTrack,Q))return D.loader.dc("sundrn",{b:0,lt:Q}),Q;for(var P=Q,W=Infinity,L=0;L<m.length;L++)if(!(m.start(L)>Q)){var u=Q-m.end(L);u<W&&(W=u,P=m.end(L))}return P!==Q&&(D.loader.dc("sundrn",{bre:P,lt:Q}),W>=20)?(D.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Q):P};
kU=function(D,Q,m){D=D.loader.m2()||0;return XU(Q,(m+D)*1E3)/1E3+m};
ycP=function(D){if(D.policy.aF>0){var Q=Math.floor((0,g.T3)()/1E4);if(Q===D.k9){if(D.B>=D.policy.aF){if(D.B===D.policy.aF){var m={reason:"toomanyrequests"};m.limit=D.B;D.loader.handleError("player.exception",m);D.B+=1}return!1}}else D.k9=Q,D.B=0}if(D.loader.isSuspended&&D.loader.Vw)return!1;if(D.Iy&&(0,g.T3)()<D.Iy)return g.xG(D.loader.q_),!1;if(D.S.length>0&&(!D.policy.j||D.S.length!==1||!D.S[0].UR()))return!1;var P;if((P=D.UW.j)==null||!Mk(P,D.policy,D.J,D.loader.kZ())||QX(D.audioTrack)&&QX(D.videoTrack))return!1;
if(D.policy.C)if(D.policy.u0){var W;if((W=D.wc)==null?0:fB$(W))return!1}else{Q=!1;if(D.j.C===2)Q=!0;else if(D.j.C===3){Twu(D);D.loader.m2();var L=p3(D.audioTrack,D.loader.isSeeking()).KM;P=p3(D.videoTrack,D.loader.isSeeking()).KM;W=D.loader.getCurrentTime()||0;L=kU(D,L,W);P=kU(D,P,W);P=Math.min(L,P);W=D.j;P>=W.J?(W.dc("sdai",{haltrq:P,est:W.J}),P=!0):P=!1;P&&(Q=!0)}Q&&D.policy.N&&D.loader.dc("sabrcrq",{waitad:1});if(Q)return!1}D.policy.VA&&(D.Kh=B7(D,D.audioTrack),D.QF=B7(D,D.videoTrack));if(!D.C)return D.policy.N&&
D.loader.dc("sabrcrq",{nopolicy:1}),!0;if(D.Ch.xQ())return D.policy.N&&D.loader.dc("sabrcrq",{utc:1}),!0;if(D.T.U)return D.policy.N&&D.loader.dc("sabrcrq",{audio:1}),!0;if(!D.C.targetAudioReadaheadMs||!D.C.targetVideoReadaheadMs)return D.policy.N&&D.loader.dc("sabrcrq",{noreadahead:1}),!0;if(D.policy.J&&D.loader.C8())return D.policy.N&&D.loader.dc("sabrcrq",{seekToHead:1}),!0;Q=Math.min(tp(D.loader,D.audioTrack)*1E3,D.C.targetAudioReadaheadMs);P=Math.min(tp(D.loader,D.videoTrack)*1E3,D.C.targetVideoReadaheadMs);
var u=Math.min(Q,P);W=Gy(D.audioTrack,!0)*1E3;L=Gy(D.videoTrack,!0)*1E3;var t=D.Ch.getCurrentTime()*1E3;if(D.policy.VA){var z=XU(D.Kh.KM,t);var b=XU(D.QF.KM,t)}else z=W,b=L;var q=z<u;var C=b<u;if(wG(D)){t=XU(D.N,t);var f=t<u;D.Ch.xl()&&f&&!q&&!C&&D.loader.dc("sabrcrnm",{cra:t,mpra:u,cbrl:D.N.length})}if(!(q||C||wG(D)&&f))return D.policy.VA&&D.Ch.xl()&&(W<u||L<u)&&D.loader.dc("sabrncrq",{car:z,vac:b,abh:W,vbh:L,mar:Q,mvr:P}),!1;if(D.policy.eN&&gAu(D.loader)&&D.videoData.LU()||D.policy.l1&&gAu(D.loader))return!1;
D.policy.N&&(f=D.loader.yX(),f.car=z,f.vac=b,f.mar=Q,f.mvr=P,f.tar=D.C.targetAudioReadaheadMs,f.tvr=D.C.targetVideoReadaheadMs,f.vbu=dM(((m=D.Ch.Cn())==null?void 0:m.jb())||null),f.abh=W,f.vbh=L,D.loader.dc("sabrcrq",f));return!0};
B7=function(D,Q){Twu(D);D.loader.m2();return p3(Q,D.loader.isSeeking())};
XU=function(D,Q){var m=0,P=-1;D=g.T(D);for(var W=D.next();!W.done;W=D.next())if(W=W.value,!(W.startTimeMs+W.durationMs<Q)){if(P<0&&W.startTimeMs>Q||P>=0&&W.nU>P+1)break;m=Math.max(m,W.startTimeMs+W.durationMs);P=Math.max(P,W.Np)}return Math.max(0,m-Q)};
Zzu=function(D,Q,m){var P={uE:D.uE,zj:function(z,b){D.Ch.VT(z,b)},
Ov:D.policy.e9,qg:D.policy.T};D.uE.C.N&&(P.LZ=(D.videoTrack.S.info.yF||0)+(D.audioTrack.S.info.yF||0));D.policy.Ig&&(P.ze=D.audioTrack.S.index.mT(),P.Ov=!1);var W=Tv6(Q,D.policy,D.J)?2:1;W!==D.TO&&(D.TO=W,Bwn(D));m=nA6(D,m);if(D.policy.j&&D.policy.T&&m.ZE){for(var L=W="",u=g.T(m.ZE),t=u.next();!t.done;t=u.next())t=t.value,D.videoData.sabrContextUpdates.has(t)||D.policy.j&&m.Nd&&m.Nd.type===t?W+="_"+t:L+="_"+t;D.loader.dc("sabrbldrqs",{ctxts:W,misctxts:L})}!Q.setData(m,D.policy,D.J)&&D.policy.j&&D.loader.handleError("player.exception",
{reason:"buildsabrrequestdatafailed"},1);P=new MV(D.policy,Q,D.UW,D.J,D,P,D.loader.pE());cO(D.timing);D.policy.N&&D.loader.dc("sabrcrq",{rn:P.eP(),probe:Q.lO()});return P};
rG=function(D,Q){if(Q.VF()||D.VF())D.policy.JP||(D.policy.J?SW(D.loader):D.loader.UC());else{if(D.policy.T&&Q.isComplete()&&Q instanceof MV){var m=D.loader,P=m.dc,W,L,u=Object.assign(Q.Kn.Rb(),{rst:Q.state,strm:Q.xhr.Gj(),d:(W=Q.Kn.t0)==null?void 0:W.R_(),cncl:Q.xhr&&Q.xJ.J?1:0,rqb:Q.wV,cwt:Q.xJ.T,swt:(L=Q.gI)==null?void 0:L.Ix});W=Object.assign(Evn(Q.info),u);P.call(m,"rqs",W)}if(Q.isComplete()&&Q.lO()&&Q instanceof MV)D.policy.kJ?Q.o8()?(Q.dispose(),D.S.length===0?D.loader.UC():(D=D.S[0],D instanceof
MV&&D.Vq()&&D.fk())):Q.U1()&&D.loader.handleError(Q.X6(),Q.Y0()):(Q.dispose(),D.loader.UC());else{if(Q.EO())Q instanceof MV&&P3k(D.timing,Q),Bwn(D),w1j(D);else if(Q.U1())m=D.Ch.xQ(),Q instanceof MV&&nvP(Q.info)&&m&&D.loader.dg(m),Q instanceof gG?D.S.pop():(m=1,Q.canRetry()&&uG7(D.loader)&&(kMr(D,Q),m=0),D.loader.handleError(Q.X6(),Q.Y0(),m));else{if(D.loader.isSuspended&&!Q.isComplete())return;w1j(D)}Q.VF()||Q instanceof gG||(Q.isComplete()?m=rY7(Q,D.policy,D.J):(m=SSw(Q,D.policy,D.J),m===1&&(D.l0=
!0)),m!==0&&(P=new qN(1,Q.info.NB),P.SP=m===2,Zzu(D,P)));D.policy.dn&&!Q.isComplete()?L8P(D.loader):D.loader.UC()}}};
w1j=function(D){for(;D.S.length&&D.S[0].xd(D.YV());){var Q=D.S.shift();Jc7(D,Q)}D.S.length&&Jc7(D,D.S[0])};
Jc7=function(D,Q){Q instanceof MV&&(D.x9=Q);var m=new Set(Q.vZ(D.YV()));m=g.T(m);for(var P=m.next();!P.done;P=m.next()){var W=P.value;if(!(P=!(Q instanceof gG))){P=D.T;var L=P.UW.VX,u=bB(P.videoInfos,L);L=Nvk(P,W,L);var t=u.includes(W);!P.oI.sb||L||t||P.loader.dc("sabrcpf",{fid:""+W,vfids:""+u.join("."),said:P.Z||""});P=L||u.includes(W)}if(P&&(P=Q.XI(W,D.YV()),u=D.policy.kB&&WE(P[0].S.info.mimeType),Q.Ap(W,D.YV())))for(W=Q.pZ(W,D.YV()),W=g.T(W),L=W.next();!L.done;L=W.next())if(L=L.value,D.policy.T&&
Q instanceof gG&&D.loader.dc("omblss",{s:L.info.Hn()}),u)t=D.timing,t.TO||(t.TO=(0,g.T3)(),g.i1("fcb_r",t.TO,t.S)),t=D,t.videoData.VX()&&t.U&&cW(t.U)===cW(g.Qh(L.info.S.info,t.UW.VX))&&t.Ch.publish("sabrCaptionsDataLoaded",L,t.lI.bind(t));else{t=L.info.S.info.ZQ();var z=L.info.S;if(t){var b=void 0;var q=D.T,C=(b=Q.CN(D.YV()))==null?void 0:b.token;q.U&&z!==q.J?b=!0:(q.U=!1,z!==q.J&&(q.J=z,q.E$(z,q.audioTrack,C)),b=!1);if(b)continue}else b=void 0,tP$(D.T,z,(b=Q.CN(D.YV()))==null?void 0:b.token);b=t?
D.audioTrack:D.videoTrack;Q instanceof gG&&(b.U=!1,Q instanceof gG&&(t?rg$(D.timing):Smr(D.timing)));try{AX(b,P,L)}catch(f){L=yJ(f),D.loader.handleError(L.errorCode,L.details,L.severity),b.fI(),D.Qd(!1,"pushSlice"),SW(D.loader)}}}};
kMr=function(D,Q){D.policy.j?D.S.splice(D.S.indexOf(Q)).forEach(function(m){m.dispose()}):(D.S.pop(),Q==null||Q.dispose())};
lYw=function(D,Q,m){for(var P=[],W=0;W<D.S.length;W++)Q&&D.S[W]instanceof gG?P.push(D.S[W]):(D.policy.N&&D.loader.dc("sabrcrq",{d:D.S[W].eP(),src:m}),D.S[W].dispose());D.S=P};
Bwn=function(D){D.videoData.XT.clear();if(D.videoData.sabrContextUpdates.size>0)for(var Q=g.T(D.videoData.sabrContextUpdates.keys()),m=Q.next();!m.done;m=Q.next()){m=m.value;var P=void 0;((P=D.videoData.sabrContextUpdates.get(m))==null?0:P.sendByDefault)&&D.videoData.XT.add(m)}if(D.policy.j&&D.S.length)for(Q=g.T(D.S),m=Q.next();!m.done;m=Q.next())(m=m.value.IR())&&m.type&&m.sendByDefault&&D.videoData.XT.add(m.type)};
IY4=function(D){D.policy.Ze&&(D.t0=void 0,D.L0=0)};
RqP=function(D,Q){if(Q.U1()||Q.VF()){var m=D.loader,P=m.dc,W=Q.state;D=D.YV();var L,u;if((Q=(L=Q.Hx)==null?void 0:L.get(D))==null)Q=void 0;else{L=0;D=Q.vZ();for(var t=0;t<D.length;t++){var z=void 0;L+=((z=Q.Pn.get(D[t]))==null?void 0:z.bytesReceived)||0}Q=L}Q=(u=Q)!=null?u:-1;P.call(m,"sabromb",{s:W,tbytes:Q})}else D.S.push(Q),Q.b5.push(D),cO(D.timing),D.policy.VR&&Q.EX&&D.VN(Q.EX,Q.eP())};
U46=function(D){var Q,m;return{requestNumber:((Q=D.x9)==null?void 0:Q.eP())||-1,isDecorated:(m=D.x9)==null?void 0:m.info.isDecorated()}};
Hz4=function(D){this.Ch=D;this.S=new Map};
Kp4=function(D){var Q,m;return(m=(Q=D.Ch.Cn())==null?void 0:Q.getCurrentTime())!=null?m:D.Ch.getCurrentTime()};
$4u=function(D){D.S.forEach(function(Q){jbP(D,Q)})};
eqk=function(D,Q,m){var P;(P=D.S.get(m))==null||P.delay.dispose();D.S.delete(m);return new Promise(function(W){W={id:m,mediaTime:Q,delay:new g.pJ(function(){}),
resolve:W};D.S.set(m,W);jbP(D,W)})};
vAm=function(D){D.S.forEach(function(Q){Q.delay.dispose()});
D.S.clear()};
jbP=function(D,Q){var m=Kp4(D);YS(D.Ch.getPlayerState())&&(m>=Q.mediaTime?(Q.resolve([Q.mediaTime,Q.id]),D.S.delete(Q.id)):(Q.delay.dispose(),m=(Q.mediaTime-m)*1E3/D.Ch.getPlaybackRate(),Q.delay=new g.pJ(function(){jbP(D,Q)},m/2),Q.delay.start()))};
Y1$=function(D,Q,m,P){var W=this;this.T=D;this.cpn=Q;this.Ch=m;this.S=P;this.C=new Map;this.J=new Map;this.U=this.Z=NaN;this.N=!1;this.B1="";this.isSeeking=!1;this.j=0;this.B=new Hz4(m);this.DQ=m.DQ;this.Ch.subscribe("statechange",this.TO,this);this.Ch.subscribe("SEEK_TO",function(){W.yY()});
this.Ch.subscribe("SEEK_COMPLETE",function(){Oz4(W)})};
Ach=function(D,Q){if(!D.isSeeking&&D.j!==Q&&!isNaN(D.Z)){D.j=Q;var m=D.N?D.U:D.T.JY(Q);(m!==D.U||D.N)&&aY6(D,m,Q)}};
aY6=function(D,Q,m){var P=D.C.get(Q),W=D.T.getStartTime(Q),L=D.T.getDuration(Q);D.N=!1;D.U=Q;var u=W,t;((t=P==null?void 0:P.S)!=null?t:[D.cpn]).forEach(function(z,b){var q,C=(q=P==null?void 0:P.C[b])!=null?q:L;if(m>=u&&m<u+C){var f;b=(f=P==null?void 0:P.B[b])!=null?f:0;p1u(D,z,u-b,m)}else m<u&&(D.N=!0);u+=C})};
S1r=function(D,Q,m,P){P=P===void 0?0:P;var W;if(Q!==D.Z||((W=D.C.get(Q))==null?void 0:W.T)!==(m==null?void 0:m.T))if(m?D.C.set(Q,m):D.C.delete(Q),!D.isSeeking){var L=D.T.getStartTime(Q);D.Z=Q;x4m(D,Q);var u,t;W=(t=(u=D.C.get(Q-1))==null?void 0:u.S)!=null?t:[D.cpn];var z=W[W.length-1];if(m){var b=L;m.S.forEach(function(q,C){b<L+P||(q!==z&&X1u(D,Q,q,b-m.B[C]),b+=m.C[C],z=q)})}else z!==D.cpn&&X1u(D,Q,D.cpn,L+P)}};
x4m=function(D,Q){var m;((m=D.J.get(Q))!=null?m:[]).forEach(function(P){D.S===0&&D.DQ.Ez("transitiondetector",P);if(D.S===1){var W=D.B,L;(L=W.S.get(P))==null||L.delay.dispose();W.S.delete(P)}});
D.J.delete(Q)};
Oz4=function(D){var Q,m,P=(m=(Q=D.Ch.Cn())==null?void 0:Q.getCurrentTime())!=null?m:D.Ch.getCurrentTime(),W=D.T.JY(P);aY6(D,W,P);D.isSeeking=!1;Array.from(D.C.keys()).sort(function(L,u){return L-u}).forEach(function(L){L>W?S1r(D,L,D.C.get(L)):L===W&&S1r(D,L,D.C.get(L),P-D.T.getStartTime(L))})};
p1u=function(D,Q,m,P){Q!==D.B1&&(D.Ch.dc("ssevt",{tag:D.S===0?"sstd-cr":D.S===1?"sstd-tm":D.S===2?"sstd-poll":D.S===3?"sstd-poll100":"sstd-unknown",ad:D.cpn!==Q,cpn:Q,st:m.toFixed(3),late:Math.round(D.isSeeking?0:(P-m)*1E3)}),D.B1=Q,D.Ch.publish("playbackstarted",Q,m+D.Ch.m2()))};
rcP=function(D){var Q=g.T(D.split("."));D=Q.next().value;Q=Q.next().value;return[Number(D),Q]};
X1u=function(D,Q,m,P){m=Q+"."+m;D.J.has(Q)?D.J.get(Q).push(m):D.J.set(Q,[m]);D.S===1&&eqk(D.B,P,m).then(function(W){var L=g.T(W);W=L.next().value;L=L.next().value;L=g.T(rcP(L));L.next();L=L.next().value;p1u(D,L,W,Kp4(D.B))});
D.S===0&&(D.DQ.Ez("transitiondetector",m),Q=(P+D.Ch.m2())*1E3,D.DQ.GY([new g.XB(Q,Q+5E3,{id:m,namespace:"transitiondetector",priority:9})]))};
GM9=function(D,Q,m,P,W){this.loader=D;this.policy=Q;this.schedule=m;this.hA=P;this.j=W;this.TO=NaN;this.C=this.U=this.B=null;this.S=this.J=this.N=this.startTimeSecs=NaN;this.T=!1;this.Z=NaN};
Mjh=function(D,Q,m,P,W,L){return Q.YF&&Q.gi&&m===3?new GM9(D,Q,P,W,L):null};
cch=function(D,Q){if(D.policy.El){var m=Q.info.yF,P=GZ(D.schedule);Q=Q.index.mT();m=Math.max(1,P/m);D.Z=Math.round(Math.max(((m-1)*Q+D.policy.Xw)/m,Q-D.policy.nZ)*1E3)}};
mO9=function(D,Q){var m=Date.now()/1E3,P=m-D.startTimeSecs,W=m-D.N,L=W>=D.policy.kU,u=!1;if(L){var t=0;!isNaN(Q)&&Q>D.J&&(t=Q-D.J,D.J=Q);t/W<D.policy.O$&&(u=!0);D.N=m}m=P>=D.policy.nZ&&!D.T;if(!L&&!m&&DOu(D,Q))return NaN;m&&(D.T=!0);a:{P=u;m=(0,g.T3)()/1E3-(D.hA.S1()||0)-D.U.S-D.policy.Xw;L=D.C.startTime;m=L+m;if(P){if(isNaN(Q)){GL(D,NaN,"n",Q);L=NaN;break a}P=Q-D.policy.Dj;P<m&&(m=P)}else D.T&&(P=m+D.policy.Xw-D.TO+D.policy.Lv,isNaN(Q)||(P=Math.max(P,Math.min(m,Q-D.policy.Dj))),m=P);L=m=Math.max(m,
L)}D.S=L;if(isNaN(D.S))return D.clear(),NaN;if(!u&&DOu(D,Q))return Qv4(D,Q),NaN;if(D.S<=D.C.startTime)return GL(D,NaN,"y",Q),D.clear(),NaN;if(!D.j(D.S,!1))return!Qv4(D,Q)&&u&&(GL(D,NaN,"t",Q),D.clear()),NaN;u=D.S;GL(D,u,"s",Q);D.clear();return u};
Qv4=function(D,Q){return D.j(D.S,!0)?!1:(GL(D,NaN,"ns",Q),D.clear(),!0)};
DOu=function(D,Q){return isNaN(Q)?!0:isNaN(D.S)?!1:Q<D.S+(D.T?D.policy.Dj:D.policy.jC)};
GL=function(D,Q,m,P){var W=D.B.Y0();W.ssr_sk=(Q*1E3).toFixed(0);W.ssr_t=(D.S*1E3).toFixed(0);W.ssr_r=m;W.ssr_st=(D.startTimeSecs*1E3).toFixed(0);W.ssr_n=(0,g.T3)().toFixed(0);W.ssr_f=(D.U.S*1E3).toFixed(0);W.ssr_fa=D.T?"1":"0";W.ssr_o=(D.hA.S1()*1E3||0).toFixed(0);W.ssr_v=(P*1E3).toFixed(0);Q=D.C.S.index;Q.Pr(D.C.J0,!0)&&(W.ssr_ist=(Q.getStartTime(D.C.J0)*1E3).toFixed(0),W.ssr_id=(Q.getDuration(D.C.J0)*1E3).toFixed(0));D.loader.dc("ssr",W)};
PN$=function(){var D={},Q=window.performance;if(Q){var m=Q.memory;if(m){D.jsTotal=m.totalJSHeapSize;D.jsUsed=m.usedJSHeapSize;D.jsLimit=m.jsHeapSizeLimit;var P,W;D.msTotal=(W=(P=m.getMediaSourceTotalAllocatedMemory)==null?void 0:P.call(m))!=null?W:m.totalMediaSourceSize;var L,u;D.msLimit=(u=(L=m.getMediaSourceMaximumMemoryCapacity)==null?void 0:L.call(m))!=null?u:m.mediaSourceSizeLimit;var t,z;D.msUsed=(z=(t=m.getMediaSourceCurrentMemoryCapacity)==null?void 0:t.call(m))!=null?z:m.usedMediaSourceMemorySize}Q.measureAvailableCpuMemory&&
(D.cbFree=Q.measureAvailableCpuMemory());Q.measureUsedCpuMemory&&(D.cbUsed=Q.measureUsedCpuMemory())}var b;if((b=window.h5vcc)==null?0:b.cVal)D.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),D.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),D.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return D};
W5k=function(D){return window.PressureObserver&&new window.PressureObserver(D)};
iyu=function(D){D=D===void 0?W5k:D;g.v.call(this);var Q=this;try{this.T=D(function(P){Q.C=P.at(-1)});
var m;this.B=(m=this.T)==null?void 0:m.observe("cpu",{sampleInterval:2E3}).catch(function(P){P instanceof DOMException&&(Q.S=P)})}catch(P){P instanceof DOMException&&(this.S=P)}};
svP=function(D){var Q={},m=window.h5vcc;Q.hwConcurrency=navigator.hardwareConcurrency;D.S&&(Q.cpe=D.S.message);D.C&&(Q.cpt=D.C.time,Q.cps=D.C.state);if(m==null?0:m.cVal)Q.cb2s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Q.cb5s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Q.cb30s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Q};
L5j=function(D){var Q;g.U(function(m){switch(m.C){case 1:return g.h4(m,2),g.I(m,D.B,4);case 4:g.g7(m,3);break;case 2:g.w7(m);case 3:(Q=D.T)==null||Q.disconnect(),g.T7(m)}})};
dOm=function(D,Q){Q?uhw.test(D):(D=g.c0(D),Object.keys(D).includes("cpn"))};
zK7=function(D,Q,m,P,W,L,u){var t={format:"RAW"},z={};if(m6(D)&&Pd()){if(u){var b;((b=thr.uaChPolyfill)==null?void 0:b.state.type)!==2?u=null:(u=thr.uaChPolyfill.state.data.values,u={"Synth-Sec-CH-UA-Arch":u.architecture,"Synth-Sec-CH-UA-Model":u.model,"Synth-Sec-CH-UA-Platform":u.platform,"Synth-Sec-CH-UA-Platform-Version":u.platformVersion,"Synth-Sec-CH-UA-Full-Version":u.uaFullVersion});z=Object.assign(z,u);t.withCredentials=!0}(u=g.YK("EOM_VISITOR_DATA"))?z["X-Goog-EOM-Visitor-Id"]=u:P?z["X-Goog-Visitor-Id"]=
P:g.YK("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.YK("VISITOR_DATA"));m&&(z["X-Goog-PageId"]=m);(P=Q.Kh)&&!gv(Q)&&(z["X-Goog-AuthUser"]=P);W&&(z.Authorization="Bearer "+W);Q.V("enable_datasync_id_header_in_web_vss_pings")&&Q.Ft&&Q.datasyncId&&(z["X-YouTube-DataSync-Id"]=Q.datasyncId);u||z["X-Goog-Visitor-Id"]||W||m||P?t.withCredentials=!0:Q.V("html5_send_cpn_with_options")&&uhw.test(D)&&(t.withCredentials=!0)}Object.keys(z).length>0&&(t.headers=z);L&&(t.onFinish=L);return Object.keys(t).length>1?
t:null};
byh=function(D,Q,m,P,W,L,u,t){Pd()&&m.token&&(D=DG(D,{ctt:m.token,cttype:m.UV,mdx_environment:m.mdxEnvironment}));P.V("net_pings_low_priority")&&(Q||(Q={}),Q.priority="low");L||t&&P.V("nwl_skip_retry")?(Q==null?Q={}:dOm(D,P.V("html5_assert_cpn_with_regex")),u?AE().sendAndWrite(D,Q):AE().sendThenWrite(D,Q,t)):Q?(dOm(D,P.V("html5_assert_cpn_with_regex")),QXj(D,Q)):g.Ro(D,W)};
q66=function(D){for(var Q=[],m=0;m<D;m++){for(var P={},W=Math.floor(Math.random()*9*1E8)+1E8,L="",u=0;u<9;u++)L+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];P.videoDecoderName=L;P.elapsedTimeMs=W;Q.push(P)}return Q};
CN6=function(D){return window.Profiler&&new window.Profiler(D)};
ol_=function(D){/[^a-zA-Z0-9;.!_-]/.test(D)&&(D=D.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return D};
MN=function(D,Q,m){m=m===void 0?CN6:m;g.v.call(this);this.sampleInterval=D;this.maxBufferSize=Q;this.J=m;this.encoder=new $u;this.S=[];this.T=0;fnm(this)};
fnm=function(D){var Q=D.sampleInterval,m=D.maxBufferSize;if(Q>0&&m>0&&!D.C&&D.T<1E7)try{D.B=D.J({sampleInterval:Q,maxBufferSize:m});var P;(P=D.B)==null||P.addEventListener("samplebufferfull",function(){return g.U(function(W){if(W.C==1)return g.I(W,D.stop(),2);fnm(D);g.T7(W)})})}catch(W){D.C=ol_(W.message)}};
Vh$=function(D,Q){var m,P;return!!((m=window.h5vcc)==null?0:(P=m.settings)==null?0:P.set(D,Q))};
y27=function(){var D,Q,m,P=(D=window.h5vcc)==null?void 0:(Q=D.settings)==null?void 0:(m=Q.getPersistentSettingAsString)==null?void 0:m.call(Q,"cpu_usage_tracker_intervals");if(P!=null){var W;D=(W=JSON.parse(P))!=null?W:[];W=D.filter(function(b){return b.type==="total"}).map(function(b){return b.seconds});
Q=g.T(Nrw);for(m=Q.next();!m.done;m=Q.next())m=m.value,W.indexOf(m)===-1&&D.push({type:"total",seconds:m});var L,u;(L=window.h5vcc)==null||(u=L.settings)==null||u.set("cpu_usage_tracker_intervals_enabled",1);var t,z;(t=window.h5vcc)==null||(z=t.settings)==null||z.set("cpu_usage_tracker_intervals",JSON.stringify(D))}};
Zyj=function(){var D=window.H5vccPlatformService,Q="";if(D&&D.has("dev.cobalt.coat.clientloginfo")&&(D=D.open("dev.cobalt.coat.clientloginfo",function(){}))){var m=D.send(new ArrayBuffer(0));
m&&(Q=String.fromCharCode.apply(String,g.on(new Uint8Array(m))));D.close()}return Q};
g.QU=function(D){g.v.call(this);var Q=this;this.provider=D;this.logger=new g.EW("qoe");this.S=new Map;this.sequenceNumber=1;this.Iy=NaN;this.fn="N";this.Z=this.Dv=this.K$=this.TO=this.C=0;this.PY=this.u0=this.N=this.k9="";this.dn=this.x9=NaN;this.pj=0;this.Ze=-1;this.kJ=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.gB=this.isEmbargoed=this.t0=this.isOffline=this.isBuffering=!1;this.yn=[];this.j=null;this.jD=this.B=this.oy=this.U=!1;this.T=-1;this.GO=!1;this.Xw=new g.pJ(this.XS,750,this);this.Es=
this.adCpn=this.QF=this.contentCpn="";this.adFormat=void 0;this.zY=0;this.XT=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.kB=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.hU=!1;this.Lj=NaN;this.wc=0;this.Kj=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.cY=!1;this.g2=new Set;this.It={vR:function(L){Q.vR(L)},
v$T:function(){return Q.J},
Hi:function(){return Q.contentCpn},
Tmc:function(){return Q.QF},
reportStats:function(){Q.reportStats()},
oI0:function(){return Q.S.get("cat")||[]},
hq:function(L){return Q.S.get(L)||[]},
Mhy:function(){return Q.S},
o$D:function(){return 0},
pjq:function(){return{adCpn:Q.adCpn,Es:Q.Es,adFormat:Q.adFormat}}};
this.Kh=this.provider.SD.V("html5_qoe_relaxed_reporting");var m=g.WF(this.provider.SD.experiments,"html5_qoe_proto_mock_length");m&&!c7.length&&(c7=q66(m));g.O(this,this.Xw);try{var P,W;(W=(P=navigator).getBattery)==null||W.call(P).then(function(L){Q.j=L})}catch(L){}g.Du(this,0,"vps",["N"]);
D.SD.xl()&&(this.wc=(0,g.T3)(),this.Lj=g.zX(function(){var L=(0,g.T3)(),u=L-Q.wc;u>500&&Q.dc("vmlock",{diff:u.toFixed()});Q.wc=L},250));
this.provider.videoData.Rc&&(this.remoteControlMode=F54[this.provider.videoData.Rc]||0);this.provider.videoData.sZ&&(m=WZr(this.provider.videoData.sZ),m==null?0:m.length)&&(this.remoteConnectedDevices=m);D.SD.xl()&&(this.l0=new iyu,g.O(this,this.l0));m=g.WF(D.SD.experiments,"html5_js_self_profiler_sample_interval_ms");D=g.WF(D.SD.experiments,"html5_js_self_profiler_max_samples");m>0&&D>0&&(this.Y9=new MN(m,D),g.O(this,this.Y9))};
mE=function(D,Q,m){var P=D.S.get(Q);P?P.push(m):D.S.set(Q,[m])};
g.Du=function(D,Q,m,P){mE(D,m,Q.toFixed(3)+":"+P.join(":"))};
Tr_=function(D,Q){var m=D.adCpn||D.provider.videoData.clientPlaybackNonce,P=D.provider.getCurrentTime(m);g.Du(D,Q,"cmt",[P.toFixed(3)]);m=P=D.provider.ws(m);if((!D.J||D.provider.SD.V("html5_shorts_gapless_no_gllat")&&lH(D.provider.videoData)?0:m*1E3>D.J.Cl+100)&&D.J){var W=D.J;m=W.isAd;P=P*1E3-W.Cl;D.JJ=Q*1E3-W.Ptc-P-W.vV9;W=(0,g.T3)()-P;Q=D.JJ;P=D.provider.videoData;var L=P.isAd();if(m||L){L=(m?"ad":"video")+"_to_"+(L?"ad":"video");var u={};P.N&&(u.cttAuthInfo={token:P.N,videoId:P.videoId});u.startTime=
W-Q;lc(L,u);g.Jd({targetVideoId:P.videoId,targetCpn:P.clientPlaybackNonce},L);kY("pbs",W,L)}else W=D.provider.Ch.Dr(),W.N!==P.clientPlaybackNonce?(W.J=P.clientPlaybackNonce,W.C=Q):P.LU()||g.l4(new g.OI("CSI timing logged before gllat",{cpn:P.clientPlaybackNonce}));D.dc("gllat",{l:D.JJ.toFixed(),prev_ad:+m});delete D.J}};
WZ=function(D,Q){Q=Q===void 0?NaN:Q;Q=Q>=0?Q:g.PZ(D.provider);var m=D.provider.Ch.zZ(),P=m.mB-(D.x9||0);P>0&&g.Du(D,Q,"bwm",[P,(m.MW-(D.dn||0)).toFixed(3)]);isNaN(D.x9)&&m.mB&&D.isOffline&&D.vR(!1);D.x9=m.mB;D.dn=m.MW;isNaN(m.bandwidthEstimate)||g.Du(D,Q,"bwe",[m.bandwidthEstimate.toFixed(0)]);D.provider.SD.xl()&&Object.keys(m.S).length!==0&&D.dc("bwinfo",m.S);if(D.provider.SD.xl()||D.provider.SD.V("html5_log_meminfo"))P=PN$(),Object.values(P).some(function(L){return L!==void 0})&&D.dc("meminfo",
P);
if(D.provider.SD.xl()){var W;(P=(W=D.l0)==null?void 0:svP(W))&&Object.values(P).some(function(L){return L!=null})&&D.dc("cpuinfo",P)}D.Y9&&D.dc("jsprof",D.Y9.flush());
D.j&&g.Du(D,Q,"bat",[D.j.level,D.j.charging?"1":"0"]);W=D.provider.Ch.getVisibilityState();D.Ze!==W&&(g.Du(D,Q,"vis",[W]),D.Ze=W);Tr_(D,Q);(W=hK7(D.provider))&&W!==D.pj&&(g.Du(D,Q,"conn",[W]),D.pj=W);nlk(D,Q,m)};
El4=function(D){var Q=D.provider.Ch.zZ(),m=g.PZ(D.provider);nlk(D,m,Q);var P=Q.T;Q=Q.B;isNaN(P)||(D.provider.SD.V("html5_unified_live_latency_reporting")&&!isNaN(Q)&&Q?g.Du(D,m,"e2el",[P.toFixed(3),Q.toFixed(3)]):g.Du(D,m,"e2el",[P.toFixed(3)]))};
nlk=function(D,Q,m){if(!isNaN(m.o2)){var P=m.o2;m.C<P&&(P=m.C);g.Du(D,Q,"bh",[P.toFixed(3)])}};
glw=function(D,Q,m){g.UO(D.provider.SD,g.qO(D.provider.videoData)).then(function(P){var W=!1;Q.includes("&dt=")||Q.includes("&cotn=")?W=!0:D.provider.SD.V("qoe_with_networkless")&&(W=!0);var L=D.provider.SD.V("qoe_send_and_write"),u=D.provider.SD;P=zK7(Q,u,D.provider.SD.pageId,D.provider.SD.sendVisitorIdHeader?D.provider.videoData.visitorData:void 0,P);u.V("html5_simplify_pings")&&(P=P||{});P?(P.method="POST",P.postBody=m,byh(Q,P,{token:D.provider.videoData.N,UV:D.provider.videoData.oz,mdxEnvironment:D.provider.videoData.mdxEnvironment},
u,void 0,W,L&&D.t0)):W?(W=D.provider.SD.V("networkless_ajax"),u={method:"POST",postBody:m},L&&D.t0?AE().sendAndWrite(Q,u):W?g.ZG(Q,{method:"POST",postBody:m}):AE().sendThenWrite(Q,u)):(L=m,L=L===void 0?"":L,me$(Q,L)||g.Ro(Q,void 0,void 0,void 0,L))})};
Brw=function(D){if(!D.provider.SD.V("html5_qoe_no_len_check")){for(var Q=0,m=g.T(D.S.entries()),P=m.next();!P.done;P=m.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;Q+=P.length+Number(N5(W,function(L,u){return L+u.length},0))}Q>96E3&&(new g.pJ(D.reportStats,0,D)).start()}};
wUr=function(D){D.provider.videoData.H1&&ib(D,"prefetch");D.provider.videoData.cY&&D.dc("reload",{r:D.provider.videoData.reloadReason,ct:D.provider.videoData.cY});D.provider.videoData.oy&&ib(D,"monitor");D.provider.videoData.isLivePlayback&&ib(D,"live");hY&&ib(D,"streaming");D.provider.videoData.Rc&&D.dc("ctrl",{mode:D.provider.videoData.Rc},!0);if(D.provider.videoData.sZ){var Q=D.provider.videoData.sZ.replace(/,/g,"_");D.dc("ytp",{type:Q},!0)}D.provider.videoData.J5&&(Q=D.provider.videoData.J5.replace(/,/g,
"."),D.dc("ytrexp",{ids:Q},!0));Q=D.provider.videoData;var m=D.provider.SD.V("enable_white_noise")||D.provider.SD.V("enable_webgl_noop"),P=g.Ac(Q)||g.PU(Q)||g.WU(Q)||g.iN(Q);(m||P)&&(m=(0,g.sy)())&&D.S.set("gpu",[m]);fy(D.provider.videoData)&&g.Du(D,g.PZ(D.provider),"dt",["1"]);Q.cotn&&!fy(Q)&&D.vR(!0);D.provider.SD.xl()&&(Q=(0,g.T3)()-D.provider.SD.ZD,D.dc("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Q/1E3)/Math.log(1.6))).toFixed()}));D.B=!0;D.Iy=g.zX(function(){D.reportStats()},1E4)};
J2_=function(D,Q,m){var P=g.PZ(D.provider);kvr(D,P,Q,0,m);WZ(D,P);Brw(D)};
kvr=function(D,Q,m,P,W){var L=D.provider.SD.S.cbrver;D.provider.SD.S.cbr==="Chrome"&&/^96[.]/.test(L)&&m==="net.badstatus"&&/rc\.500/.test(W)&&ln9(D,3);D.provider.SD.V("html5_use_ump")&&/b248180278/.test(W)&&ln9(D,4);L=D.provider.getCurrentTime(D.adCpn||D.provider.videoData.clientPlaybackNonce);P=P===1?"fatal":"";m=[m,P,L.toFixed(3)];P&&(W+=";a6s."+cI());W&&m.push(Inn(W));g.Du(D,Q,"error",m);D.B=!0};
RK_=function(D,Q){var m=g.PZ(D.provider);if(!D.provider.SD.experiments.Mv("html5_refactor_sabr_video_format_selection_logging")||Q.S.id!==D.k9){var P=[Q.S.id,Q.C,D.k9,Q.reason];Q.token&&P.push(Q.token);g.Du(D,m,"vfs",P);D.k9=Q.S.id;P=D.provider.Ch.getPlayerSize();if(P.width>0&&P.height>0){P=[Math.round(P.width),Math.round(P.height)];var W=g.ne();W>1&&P.push(W);g.Du(D,m,"view",P)}D.oy||(D.provider.SD.xl()&&ib(D,"rqs2"),D.provider.videoData.S&&v4(D.provider.videoData.S)&&D.S.set("preload",["1"]));D.oy=
!0;D.B=!0}Q.reason==="m"&&++D.zY===100&&ln9(D,2);g.Du(D,m,"vps",[D.fn]);D.Kh||D.reportStats(m)};
UO4=function(D){D.T>=0||(D.provider.SD.A8||D.provider.Ch.getVisibilityState()!==3?D.T=g.PZ(D.provider):D.GO=!0)};
Hy$=function(D,Q,m){var P=g.PZ(D.provider);g.Du(D,P,"vfi",[Q==="A"?"":""+(m!=null?m:0),Q])};
K5$=function(D,Q,m){if(D.provider.SD.experiments.Mv("html5_refactor_sabr_audio_format_selection_logging")){Q=m.S;var P=[Q.audio&&Q.video?Q.qG?Q.qG:"":Q.id];Q.WY&&Q.WY.id&&P.push(Q.WY.id);Q=P.join(";");Q!==D.N&&(P=[Q,D.N,m.reason],m.token&&P.push(m.token),g.Du(D,g.PZ(D.provider),"afs",P),D.N=Q)}else m.S.id!==D.N&&(P=[m.S.id,D.N,m.reason],m.token&&P.push(m.token),g.Du(D,Q,"afs",P),D.N=m.S.id)};
ib=function(D,Q){mE(D,"cat",Q)};
jvr=function(D,Q,m,P,W){var L=g.PZ(D.provider);Q!==1&&Q!==3&&Q!==5||g.Du(D,L,"vps",[D.fn]);mE(D,"xvt","t."+L.toFixed(3)+";m."+W.toFixed(3)+";g.2;tt."+Q+";np.0;c."+m+";d."+P)};
ln9=function(D,Q){D.jD||(mE(D,"fcnz",""+Q),D.jD=!0)};
Inn=function(D){/[^a-zA-Z0-9;.!_-]/.test(D)&&(D=D.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return D};
g.ub=function(D,Q,m,P,W,L,u,t,z,b){t=t===void 0?!1:t;g.v.call(this);var q=this;this.Ch=D;this.schedule=Q;this.policy=m;this.UW=P;this.Kh=z;this.kB=b;this.cq=null;this.Y9=this.GO=this.k9=this.Iy=0;this.RZ=this.Vw=this.isSuspended=!1;this.oy="";this.zY={};this.cY=NaN;this.Kj=0;this.Z=null;this.PY=this.x9=!1;this.bf=0;this.jD=!1;this.wc=this.gB=0;this.kJ=null;this.u0=!1;this.u6=function(){return q.Ch.u6()};
this.timing=new XWm(this.kB);this.j=new cj(this.schedule,this.policy);this.dn=new g.pJ(this.UC,0,this);this.pj=new g.pJ(this.UC,this.policy.dn,this);this.q_=new g.pJ(this.UC,1E3,this);this.g2=new g.pJ(this.UC,void 0,this);this.XT=new g.pJ(function(){q.isSuspended||q.UC()},1E4,this);
this.Xw=new g.pJ(this.SST,250,this);this.N=this.currentTime=NaN;this.rj=new vA(5);this.t0=this.timestampOffset=NaN;this.logger=new g.EW("dash");this.yn=Infinity;this.It={jZF:function(){return q.AN},
drz:function(){return q.T},
getAudioTrack:function(){return q.audioTrack},
fch:function(){return q.videoTrack},
getManifest:function(){return q.UW},
acy:function(){return q.C},
UC:function(){q.UC()},
Be:function(){q.Iy=0;q.Be()},
sG0:function(f){return L7(q,q.videoTrack,q.cq.C,f)}};
D=z&&z.vZ();z&&(Odk(z,this.UW,this.policy),this.t0=Date.now());this.S=new C3(this,this.j,m,this.UW,W,D);m=nFj(this.S,L,u&&u.id);this.audioTrack=new vM(this,this.policy,m.audio,this.timing);this.videoTrack=new vM(this,this.policy,m.video,this.timing);this.videoTrack.B.QF=this.audioTrack.Fe();this.l0={updateend:this.WK,error:this.P0h};g.O(this,this.dn);g.O(this,this.pj);g.O(this,this.q_);g.O(this,this.g2);g.O(this,this.XT);m=this.policy.Ub&&this.policy.QL?!EBn(this.videoTrack.S.info):!1;this.Ze=$A9({Qo:this.policy.U.Qo||
m,QL:this.policy.QL&&!m,f0:this.policy.f0});this.U=Mjh(this,this.policy,this.Ze,this.schedule,this.rj,function(f,V){return $Oh(q,f,V)});
this.T=new D7(this,this.UW,this.policy,this.videoTrack,this.audioTrack,t);this.policy.XT&&this.policy.C&&(this.QF=new qW$(this.policy.u0,function(f,V){q.dc(f,V)}));
this.AN=new iO(this,this.UW,this.videoTrack,this.audioTrack,this.policy);t=this.policy.EG?this.Ch.getVideoData().zm:null;this.J=new LS(this,this.policy,this.videoTrack,this.audioTrack,this.zY,this.T,this.timing,this.j,this.schedule,this.UW,this.S,this.U,m,t);g.O(this,this.J);this.B=new zL(this,this.policy,this.videoTrack,this.audioTrack,this.UW,W,Ib(this.Ch.getVideoData()),u==null?void 0:u.id);g.O(this,this.B);ov9(this.B,L);this.C=new Nwm(this.Ch,this,this.policy,this.audioTrack,this.videoTrack,this.UW,
this.schedule,this.S,this.B,this.timing,this.T,this.QF);g.O(this,this.C);this.TO=this.Ch.lE.gg.O_;this.policy.J||eKr(this);if(this.policy.WO){var C;this.hU=new Y1$(this.videoTrack.S.index,(C=this.Ch.getVideoData().clientPlaybackNonce)!=null?C:"",this.Ch,this.policy.gB);this.policy.gB===3&&(this.Lj=new g.pJ(this.JK,200,this),this.Lj.start(),g.O(this,this.Lj))}this.logger.debug("Created")};
eKr=function(D){var Q,m;if((Q=D.TO)==null?0:(m=Q.V8)==null?0:m.itagDenylist){var P;D.fv((P=D.TO)==null?void 0:P.V8.itagDenylist)}var W;if((W=D.TO)==null?0:W.playbackStartPolicy){var L,u;AY6(D.policy,(L=D.TO)==null?void 0:L.playbackStartPolicy,3,(u=D.TO)==null?void 0:u.eP())}if(D.policy.Oj){Q=D.YV();var t;(m=Q?(t=D.TO)==null?void 0:t.SL.get(Q):void 0)&&D.C.eM(m)}if(!D.UW.TO){var z;t=(z=D.TO)==null?void 0:z.H7;(t==null?0:t.Y1)&&(t==null?0:t.FE)&&D.UW.VX&&Qr(D.UW,t.Y1,t.FE)}var b;((b=D.TO)==null?0:b.kM)&&
(z=D.TO.kM.get(D.YV()||""))&&D.UW&&z.formatId&&(D=D.UW.T.get(cW(z.formatId)))&&(D.info.debugInfo=z.debugInfo)};
vl7=function(D,Q){var m=cW(g.Qh(Q.S.info,D.UW.VX)),P,W=((P=D.Kh)==null?void 0:P.XI(m))||[];if(W.length===0)return D.dc("ombmsi",{}),!1;W=new b3(W);if(P=!D.policy.TO||isFinite(D.getCurrentTime())||D.Ch.xQ()){a:{P=D.getCurrentTime();W=g.T(W.EW);for(var L=W.next();!L.done;L=W.next())if(L=L.value,L.type===3&&P>=L.J&&P<=L.N){P=!0;break a}P=!1}P=!P}if(P)return D.dc("ostmf",{ct:D.getCurrentTime(),a:Q.S.info.ZQ()}),!1;(D=D.Kh)!=null&&(D.Pn.get(m).nu=!0);return!0};
Oyh=function(D){if(!D.UW.VX)return!0;var Q=D.Ch.getVideoData();if(D.Ch.pm())return D.dc("ombpa",{}),!1;var m,P;if(!!((m=D.TO)==null?0:(P=m.H7)==null?0:P.CtF)!==D.UW.Ws)return D.dc("ombplmm",{}),!1;m=Q.hU||Q.liveUtcStartSeconds||Q.yn;if(D.UW.Ws&&m)return D.dc("ombplst",{}),!1;if(D.UW.TO)return D.dc("ombab",{}),!1;m=Date.now();return mB(D.UW)&&!isNaN(D.t0)&&m-D.t0>D.policy.s0*1E3?(D.dc("ombttl",{}),!1):D.UW.vO&&D.UW.B||!D.policy.WW&&D.UW.isPremiere||ab(Q)!==0&&!D.policy.S||Q.V("html5_disable_onesie_media_for_mosaic")&&
ov(Q)||Q.xB()&&!Q.V("html5_enable_onesie_media_for_lifa")&&Q.isDaiEnabled()&&Q.enableServerStitchedDai||Q.V("html5_disable_onesie_media_for_lifa_eligible")&&Cy(Q)?!1:!0};
Y6P=function(D,Q){var m=Q.S,P=D.UW.VX;if(Oyh(D))if(D.Kh&&D.Kh.Pn.has(cW(g.Qh(m.info,P)))){if(P=cW(g.Qh(m.info,P)),vl7(D,Q)){var W=new b3(D.Kh.XI(P)),L=function(u){try{if(u.U1())D.handleError(u.X6(),u.Y0()),DL(Q,u),Cf(u.info)&&uB(D.J,Q,m,!0),D.UC();else if(ieu(D.J,u)){var t;(t=D.T)==null||u_9(t,u.info,D.Z);D.UC()}}catch(z){u=yJ(z),D.handleError(u.errorCode,u.details,u.severity),D.fI()}};
m.T=!0;qA(W)&&(ae(Q,new sn(D.policy,P,W,D.Kh,L)),cO(D.timing))}}else D.dc("ombfmt",{})};
anu=function(D,Q){Q=Q||D.videoTrack&&D.videoTrack.C&&D.videoTrack.C.startTime||D.getCurrentTime();var m=dG,P=D.videoTrack,W=D.S;Q=W.nextVideo&&W.nextVideo.index.JY(Q)||0;W.QF!==Q&&(W.wc={},W.QF=Q,oe(W,W.S));Q=!W.S.isLocked()&&W.j>-1&&(0,g.T3)()-W.j<W.policy.O0*1E3;var L=W.nextVideo&&Nb(W,W.nextVideo.info)*3<mX(W.Kh);if(!Q||L)qb(W),f3(W),W.Iy=W.Iy||W.nextVideo!==W.T;W.nextVideo&&!W.nextVideo.index.isLoaded()&&(W.QF=-1);m(D,P,W.nextVideo);dG(D,D.audioTrack,D.S.C)};
A27=function(D,Q){D.Vw=Q;D.policy.QF||(D.logger.debug("Suspended."),D.isSuspended=!0,D.policy.qE&&(D.q_.stop(),D.pj.stop(),D.dn.stop()),D.XT.stop())};
PM=function(D,Q,m,P){D.policy.C&&D.Qd(!1,"rollback");if(D.UW.isManifestless){var W=Mb(D.audioTrack,P,m,Q),L=Mb(D.videoTrack,P,m,Q);D.policy.HO||(L&&D9(D.UW,P,!0),W&&D9(D.UW,P,!1));L&&(D.videoTrack.TO=[]);W&&(D.audioTrack.TO=[]);D.dc("sdai",{rollbk2_seg:P,rbt:m.toFixed(3),lt:Q.toFixed(3),a:W,v:L});(W||L)&&D.policy.C&&SW(D)}};
pUm=function(D,Q){if(!isNaN(D.cY)){var m=Date.now()-D.cY;m<1E4&&D.dc("bfaswtch",{ep:m,sk:Q!==void 0?"1":"0",sr:Q||""})}};
xO4=function(D){D.logger.debug("Rebuffering.");D.RZ=!0;if(D.policy.PY&&D.cq){var Q,m,P,W;D.dc("lr_rb",{c:D.getCurrentTime(),s:D.isSeeking(),ab:dM(D.cq.S.Ti()),ala:(Q=YQ(D.audioTrack))==null?void 0:Q.Hn(),alr:(m=D.audioTrack.C)==null?void 0:m.Hn(),vb:dM(D.cq.C.Ti()),vla:(P=YQ(D.videoTrack))==null?void 0:P.Hn(),vlr:(W=D.videoTrack.C)==null?void 0:W.Hn()})}D.Ch.kZ()!==0&&D.dc("sps_rebuffer",{c:D.getCurrentTime()})};
XUj=function(D){D.policy.zY=!1;try{D.Be()}catch(Q){g.JG(Q)}};
r26=function(D,Q,m,P){m=m===void 0?!1:m;P=P===void 0?!1:P;D.policy.QF&&(D.logger.debug("disable updateMetadataWithoutMediaSource"),D.policy.wc&&D.dc("loader",{setsmb:0}),D.fI(),D.policy.QF=!1);D.logger.debug("attaching media source");S6$(D,P);if(!gM(Q)){var W=oV(D.videoTrack),L=oV(D.audioTrack);W=(W?W.info.S:D.videoTrack.S).info;var u=(L?L.info.S:D.audioTrack.S).info;L=D.policy.Xn;L=W.mimeType+(L===void 0?"":L);var t=u.mimeType;W=W.FT;u=u.FT;var z;Q.TO=(z=Q.cq)==null?void 0:z.addSourceBuffer(t);var b;
Q.Iy=L.split(";")[0]==="fakesb"?void 0:(b=Q.cq)==null?void 0:b.addSourceBuffer(L);Q.WB&&(Q.WB.webkitSourceAddId("0",t),Q.WB.webkitSourceAddId("1",L));z=new yh(Q.TO,Q.WB,"0",YV(t),u,!1);b=new yh(Q.Iy,Q.WB,"1",YV(L),W,!0);Rkh(Q,z,b)}m=m===void 0?!1:m;P=P===void 0?!1:P;OT(D.videoTrack,Q.C||null,P);OT(D.audioTrack,Q.S||null,P);D.cq=Q;D.cq.B=!0;m||D.resume();Q.S.MK(D.l0,D);Q.C.MK(D.l0,D);try{D.UC()}catch(q){g.JG(q)}};
S6$=function(D,Q){Q=Q===void 0?!1:Q;D.cq&&D.cq.S&&D.cq.C&&(D.cq.S.ov(D.l0,D),D.cq.C.ov(D.l0,D));OT(D.audioTrack,null,Q);OT(D.videoTrack,null,Q);D.cq&&(D.cq.B=!1);D.cq=null};
Gv$=function(D){D.cq&&D.cq.TE()&&D.tA()};
c2$=function(D,Q){if(!D.VF())if(D.policy.S){if(!fWr(D.B,Q)){var m=D.B.C;ov9(D.B,Q);var P=!1;P=Q.isLocked()&&Q.reason==="m"&&VP$(D.B,Q.S);var W=D.policy.KI&&Q.reason==="l";m=m.S>Q.S&&Q.reason==="b";P||W||m?(D.Ch.T8({reattachOnConstraint:P?"u":W?"drm":"perf",lo:Q.C,up:Q.S}),D.policy.M5||(D.B.S.C=!1)):(D.policy.M5&&(D.B.S.C=!1),SW(D))}}else if(!EF7(D.S,Q)&&D.videoTrack){D.logger.debug(function(){return"Setting constraint: r="+Q.reason+" u="+Q.S});
m=D.S.S;Mhn(D,BLh(D.S,Q));anu(D);P=Q.isLocked()&&Q.reason==="m"&&D.S.Iy;W=D.policy.KI&&Q.reason==="l"&&mR(D.videoTrack);m=m.S>Q.S&&Q.reason==="b";var L=D.S.GO&&!Zj();P||W||m||L?D.Ch.T8({reattachOnConstraint:P?"u":W?"drm":L?"codec":"perf"}):SW(D)}};
D$7=function(D,Q,m){if((!D.cq||h$(D.cq)&&!D.policy.Km)&&!D.AN.isSeeking()&&(D.policy.S||mR(Q)&&Q.S.xa()&&D.S.TO)){var P=D.getCurrentTime()+F1_(D.j,Q,m);D.logger.debug(function(){return"Clearing back to "+P.toFixed(3)});
wAu(Q,P)}};
Mhn=function(D,Q){Q&&(D.logger.debug(function(){return"Logging new format: "+L2(Q.video.info)}),Qa6(D.Ch,new u9(Q.video,Q.reason)));
if(D.S.Y9){var m=lB7(D.S,"a");D.Ch.Ak(new u9(m.audio,m.reason))}};
SW=function(D){g.xG(D.dn)};
L8P=function(D){D.policy.dn&&D.policy.f0&&Math.min(BJ9(D.videoTrack),BJ9(D.audioTrack))*1E3>D.policy.M9?g.xG(D.pj):D.UC()};
m$j=function(D,Q){var m=(0,g.T3)()-Q,P=Gy(D.audioTrack,!0)*1E3,W=Gy(D.videoTrack,!0)*1E3;D.logger.debug(function(){return"Appends paused for "+m});
if(D.policy.T&&(D.dc("apdpe",{dur:m.toFixed(),abuf:P.toFixed(),vbuf:W.toFixed()}),iB(D.policy))){var L=mX(D.j);D.dc("sdps",{ct:Q,ah:P.toFixed(),vh:W.toFixed(),mr:PO(D.j,D.RZ,L),bw:L.toFixed(),js:D.isSeeking(),re:+D.RZ,ps:(D.policy.QJ||"").toString(),rn:(D.policy.b_||"").toString()})}};
Pik=function(D){if(UB7(D.videoTrack))return D.logger.debug("Pausing appends for server-selectable format"),"ssf";if(D.policy.GO&&jp4(D.videoTrack)&&jp4(D.audioTrack))return"updateEnd";if(QX(D.audioTrack)||QX(D.videoTrack)&&D.videoTrack.S.info.FT!=="f")return"";if(D.AN.isSeeking()){var Q=D.j;var m=D.videoTrack;var P=D.audioTrack;if(Q.policy.S){var W=Q.policy.CF;iB(Q.policy)&&(W=PO(Q,!1,mX(Q)));Q=W;m=Gy(P,!0)>=Q&&Gy(m,!0)>=Q}else m.T.length||P.T.length?(W=m.S.info.yF+P.S.info.yF,W=10*(1-mX(Q)/W),Q=
Math.max(W,Q.policy.CF),m=Gy(P,!0)>=Q&&Gy(m,!0)>=Q):m=!0;if(!m)return"abr";m=D.videoTrack;if(m.T.length>0&&m.B.C.length===1&&PCP(m.B).info.Z<m.x9)return"seek"}if(D.policy.C&&$B4(D.videoTrack,D.T)&&$B4(D.audioTrack,D.T))return"ssdai";m=!D.policy.jP||D.getCurrentTime()<10;D.policy.S||(m=m||D.videoTrack.S.info.video.qualityOrdinal>360);P=iB(D.policy)&&D.policy.vy;if(!D.RZ||!P&&m)return"";m=D.policy.jP;iB(D.policy)&&(m=PO(D.j,D.RZ,mX(D.j)));m=JY7(D.videoTrack,D.getCurrentTime(),m)||JY7(D.audioTrack,D.getCurrentTime(),
m);return iB(D.policy)?m?"mbnm":"":(D.videoTrack.T.length>0||D.audioTrack.T.length>0||GZ6(D.J,D.videoTrack,D.audioTrack)||GZ6(D.J,D.audioTrack,D.videoTrack))&&m?"nord":""};
WW7=function(D){if(D.U){var Q=D.U.UC(D.audioTrack,qG(D.cq.C.Ti()));Q&&D.Ch.seekTo(Q,{ZA:!0,cn:"pollSubsegmentReadahead",Hr:!0})}};
zH4=function(D,Q,m){if(D.policy.GO&&jp4(Q))return!1;if(m.Eh())return!0;if(!m.T$())return!1;var P=oV(Q);if(!P||P.info.type===6)return!1;var W;if(D.policy.md||((W=D.T)==null?0:bf6(W,Q,P.info.J0)))D.Y9=0;else return D.AN.isSeeking()&&SW(D),D.Y9=D.Y9||(0,g.T3)(),!1;if(!L7(D,Q,m,P.info))return!1;if(D.UW.C&&P.info.C===0){if(W=i5w(Q,m,P)){var L=YQ(Q);D.dc("initchg",{it:P.info.S.info.id,sr:!!L&&L.S===P.info.S,ty:P.info.type,seg:P.info.J0})}L=g.Mh(P.info.S.info);D.policy.h8&&L&&!W&&rL_(P)}L=D.U&&!!D.U.B&&
Q.S.info.audio;W=D.UW.isManifestless||P.J;if(!(D.UW.C&&P.info.C!==0||W&&!L)&&sa4(D,Q,m,P))return!0;if(L)return!1;L=tp(D,Q);L=D.getCurrentTime()+L;if(P.info.J>L)return D.policy.S&&LWP(D,Q),D.policy.WE&&Rb6(Q.B,L,!1),!1;u6j(D,Q);var u;D.policy.A8&&m===((u=D.cq)==null?void 0:u.S)&&D.jD&&(m.Ol()===0?(D.jD=!1,D.policy.A8=!1):D.gB=m.Ol());if(!d$j(D,m,P,Q))return!1;D.policy.GO&&P.info.zM()?(D.Ch.G().xl()&&D.dc("eosl",{ls:P.info.Hn()}),P.isLocked=!0):(Q.xz(P),J7u(D.S,P.info),D.logger.debug(function(){return"Appended "+
P.info.Hn()+", buffered: "+dM(m.Ti())}));
W&&t9w(D,P.info.S.sL);return!0};
LWP=function(D,Q){Q===D.videoTrack?D.GO=D.GO||(0,g.T3)():D.k9=D.k9||(0,g.T3)()};
u6j=function(D,Q){Q===D.videoTrack?D.GO=0:D.k9=0};
d$j=function(D,Q,m,P){var W=D.policy.PY?(0,g.T3)():0,L=m.J&&m.info.S.S||void 0,u=m.C;m.J&&(u=b59(D,m,u)||u);var t=bo(u);u=D.policy.PY?(0,g.T3)():0;Q=qDj(D,Q,t,m.info,L);(P=P.j)!=null&&(L=m.info,W=u-W,u=(0,g.T3)()-u,!P.C||q5k(P.C,L)&&P.C.J0===L.J0||P.flush(),P.B+=W,P.T+=u,W=1,!P.C&&L.C&&(W=2),FW(P,W,Q),u=Math.ceil(L.C/1024),W===2&&P.S.add(u),P.S.add(Math.ceil((L.C+L.T)/1024)-u),P.C=L);D.wc=0;if(Q===0)return D.x9&&(D.logger.debug("Retry succeed, back to normal append logic."),D.x9=!1,D.PY=!1),D.Kj=
0,!0;if(Q===2||Q===5)return Ci7(D,"checked",Q,m.info),!1;if(Q===1){if(!D.x9)return D.logger.debug("QuotaExceeded, retrying."),D.x9=!0,!1;if(!D.PY)return D.PY=!0,D.Ch.seekTo(D.getCurrentTime(),{cn:"quotaExceeded",Hr:!0}),!1;m.info.ri()?(W=D.policy,W.x9=Math.floor(W.x9*.8),W.Kh=Math.floor(W.Kh*.8)):(W=D.policy,W.jD=Math.floor(W.jD*.8),W.Kh=Math.floor(W.Kh*.8));D.policy.S?tX(D.B.S,m.info.S,!1):VL(D.S,m.info.S)}D.Ch.T8({reattachOnAppend:Q});return!1};
b59=function(D,Q,m){var P;if(P=D.policy.xU&&D.cq&&!D.cq.Z&&!D.Ch.kD())Q=Q.info.S.info,P=Q.nO()&&pt(Q)&&Q.video&&Q.video.width<3840&&Q.video.width>Q.video.height;if(P&&(D.cq.Z=!0,hL('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return m=Qp$(m),D.policy.T&&D.dc("sp4k",{s:!!m}),m};
Ci7=function(D,Q,m,P){var W="fmt.unplayable",L=1;m===5||m===3?(W="fmt.unparseable",D.policy.S?!P.S.info.video||zy(D.B.S).size>0||tX(D.B.S,P.S,!1):!P.S.info.video||zy(D.S.J).size>0||VL(D.S,P.S)):m===2&&(D.Kj<15?(D.Kj++,W="html5.invalidstate",L=0):W="fmt.unplayable");P=t7(P);var u;P.mrs=(u=D.cq)==null?void 0:BE(u);P.origin=Q;P.reason=m;P.trg="appenderr";D.handleError(W,P,L)};
NJ4=function(D,Q,m,P,W){var L=D.UW;var u=D.policy.S,t=!1,z=-1,b;for(b in L.S){var q=WE(L.S[b].info.mimeType)||L.S[b].info.ri();if(P===q)if(q=L.S[b].index,q.Pr(Q.J0)){t=q;var C=Q,f=t.eR(C.J0);f&&f.startTime!==C.startTime?(t.segments=[],t.Rm(C),t=!0):t=!1;t?z=Q.J0:!Q.pending&&u&&(C=q.getDuration(Q.J0),C!==Q.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.S[b].info.itag,seg:Q.J0,od:C,nd:Q.duration},!1),q.Rm(Q),t=!0))}else q.Rm(Q),t=!0}z>=0&&(u={},L.publish("clienttemp","resetMflIndex",(u[P?
"v":"a"]=z,u),!1));L=t;jPn(D.AN,Q,P,L);if(D.policy.XT&&D.policy.C&&(z=Q.OC||null)){var V;u=(V=D.C)==null?void 0:U46(V).requestNumber;var N;(N=D.QF)==null||C37(N,z,u,Q.J0)}D.T.ya(Q,m,P,W);Q.J0===D.UW.vO&&L&&Gf(D.UW)&&Q.startTime>Gf(D.UW)&&(D.UW.QF=Q.startTime+(isNaN(D.timestampOffset)?0:D.timestampOffset),D.AN.isSeeking()&&D.AN.targetTime<D.UW.TY()&&D.AN.seek(D.UW.TY(),{}))};
L7=function(D,Q,m,P){var W=YQ(Q);!W||W.B||u3(W,P)||(m.abort(),D.policy.TV&&(W=Q.Z)!=null&&(W.T=void 0),(Q=Q.j)!=null&&(FW(Q,4),Q.flush()));if(!m.Jz()||Zj())try{D.policy.I6?m.lL(P.S.info.containerType,P.S.info.FT)&&m.Gy(P.S.info.containerType,P.S.info.FT,P.S.info.mimeType):m.Y4(P.S.info.containerType,P.S.info.mimeType)}catch(L){return m=L,g.l4(m),D.dc("ctexp",{name:m.name,msg:m.message}),!1}else P.S.info.containerType!==m.Jz()&&D.dc("ctu",{ct:Zj(),prev_c:m.Jz(),curr_c:P.S.info.containerType});Q=P.S.B;
D.policy.K0&&Q&&(P=0+Q.duration,Q=-Q.S,0===m.B6()&&P===m.sB()||m.W_(0,P),Q!==m.m2()&&(m.In(Q),$Q&&ZDr(D.audioTrack.Fe(),m.KN())));return!0};
sa4=function(D,Q,m,P){P.info.S.xa();var W=P.info.S.S;if(!W||!m.T$()||m.Jj()===W)return!1;var L=W,u=m.jN();if(D.policy.zH&&u&&m.isView()&&g.Mh(P.info.S.info)){var t=new DataView(W.buffer,W.byteOffset,W.byteLength);(u=Soj(t,u))?L=new Uint8Array(u.buffer,u.byteOffset,u.byteLength):D.dc("fenc",{})}D.policy.xU&&(u=b59(D,P,new Lh([L])))&&(L=bo(u));var z;(u=P.info.S.wC(0,P.info.clipId))&&(z=u.EW[0]);if(P===D.kJ){if(D.wc+=1,D.Ch.getVideoData().V("html5_shorts_gapless_restart_on_init_seg_retries")&&D.wc>5)return D.wc=
0,D.Ch.T8({initSegStuck:1,as:P.info.Hn()}),!0}else D.wc=0,D.kJ=P;D.policy.K4&&(m.abort(),(u=Q.j)!=null&&(FW(u,4),u.flush()));W=qDj(D,m,L,z,W);var b;(b=Q.j)==null||eU$(b,W,z);if(W!==0)return o_w(D,W,P),!0;P.info.ri()?cgw(D.timing):DAk(D.timing);D.logger.debug(function(){return"Appended init for "+P.info.S.info.id});
t9w(D,P.info.S.sL);return m.q4()};
i5w=function(D,Q,m){if(Q.Jj()==null){D=YQ(D);if(!(Q=!D||D.S!==m.info.S)){a:if(D=D.j,m=m.info.j,D.length!==m.length)m=!1;else{for(Q=0;Q<D.length;Q++)if(!g.xk(D[Q],m[Q])){m=!1;break a}m=!0}Q=!m}return Q}D=Q.Jj();m.info.S.Oe()&&Rd(m);m=m.info.S.S;return D!==m&&!g.xk(D,m)};
qDj=function(D,Q,m,P,W){try{var L,u=Q===((L=D.cq)==null?void 0:L.S)?D.audioTrack:D.videoTrack;if(D.policy.GO&&(P==null?0:P.zM())){if((P==null?void 0:P.TO)>1)return 6;u.wc=new g.pJ(function(){var t=oV(u);D.VF()||t==null||!t.isLocked?D.Ch.G().xl()&&D.dc("eosl",{delayA:t==null?void 0:t.info.Hn()}):fZ7(u)?(D.Ch.G().xl()&&D.dc("eosl",{dunlock:t==null?void 0:t.info.Hn()}),V94(D,u===D.audioTrack)):(D.dc("nue",{ls:t.info.Hn()}),t.info.TO+=1,D.cq&&D.Be())},1E4,D);
D.Ch.G().xl()&&D.dc("eosl",{delayS:P.Hn()});u.wc.start()}D.policy.m7&&(P==null?void 0:P.S)instanceof ff&&P.zM()&&D.dc("poseos",{itag:P.S.info.itag,seg:P.J0,lseg:P.S.index.MY(),es:P.S.index.T});Q.appendBuffer(m,P,W)}catch(t){if(t instanceof DOMException){if(t.code===11)return 2;if(t.code===12)return 5;if(t.code===22||t.message.indexOf("Not enough storage")===0)return Q=Object.assign({name:"QuotaExceededError",buffered:dM(Q.Ti()).replace(/,/g,"_"),vheap:Sv(D.videoTrack),aheap:Sv(D.audioTrack),message:g.gP(t.message,
3),track:D.cq?Q===D.cq.C?"v":"a":"u"},PN$()),D.handleError("player.exception",Q),1;g.JG(t)}return 4}return D.cq.TE()?3:0};
CF=function(D,Q,m){pUm(D,m.cn||"unknown");D.Ch.seekTo(Q,m)};
t9w=function(D,Q){Q&&D.Ch.Wd(new kQ(Q.key,Q.type))};
Re=function(D,Q){D.Ch.o$(Q)};
tp=function(D,Q){if(D.policy.TO&&D.x9&&!D.RZ)return D.policy.Qj;if(D.x9&&!D.RZ)return 3;if(D.isSuspended)return 1;var m;if((m=D.cq)==null?0:m.cq&&m.cq.streaming===!1)return 4;m=(Q.S.info.audio?D.policy.jD:D.policy.x9)/(Q.yF*D.policy.gx);if(D.policy.JH>0&&D.cq&&h$(D.cq)&&(Q=Q.S.info.video?D.cq.C:D.cq.S)&&!Q.q4()){Q=Q.Ti();var P=t$(Q,D.getCurrentTime());P>=0&&(Q=D.getCurrentTime()-Q.start(P),m+=Math.max(0,Math.min(Q-D.policy.JH,D.policy.Qx)))}D.policy.Kh>0&&(m=Math.min(m,D.policy.Kh));return m};
hqw=function(D,Q){return(tp(D,Q)+D.policy.tI)*Q.yF};
yh4=function(D){D.oy&&!D.isSuspended&&MB(D.schedule)&&(Ng_(D,D.oy),D.oy="")};
Ng_=function(D,Q){M$(Q,"cms",function(m){D.policy.T&&D.dc("pathprobe",m)},function(m){D.Ch.handleError(m)})};
Z5n=function(D,Q){if(D.cq&&D.cq.B&&!D.cq.TE()&&(Q.o2=Gy(D.videoTrack),Q.C=Gy(D.audioTrack),D.policy.T)){var m=Sv(D.videoTrack),P=Sv(D.audioTrack),W=dM(D.cq.C.Ti(),"_",5),L=dM(D.cq.S.Ti(),"_",5);Object.assign(Q.S,{lvq:m,laq:P,lvb:W,lab:L})}Q.bandwidthEstimate=DJ(D.j);var u;(u=D.audioTrack.j)==null||u.flush();var t;(t=D.videoTrack.j)==null||t.flush();D.logger.debug(function(){return ft(Q.S)})};
FWh=function(D,Q){D.Z=Q;D.T&&(D.T.T=Q);D.Z.E8(D.videoTrack.S.info.nO());D.J.C=D.Z;D.policy.C&&(D.C.Z=D.Z)};
hHj=function(D,Q){if(D.cq&&D.cq.C){if(D.policy.gb){var m=elm(D.audioTrack);if(m&&m.ZQ()){var P=D.Ch;if(P.PT&&(P.PT.S=m,m=P.qB,m.qoe)){m=m.qoe;P=P.PT;var W=g.PZ(m.provider);K5$(m,W,P)}}}D.policy.IQ&&(m=elm(D.videoTrack))&&m.ri()&&(P=D.Ch,P.Td&&(P.Td.S=m,m=P.qB,m.qoe&&RK_(m.qoe,P.Td)));Q-=isNaN(D.timestampOffset)?0:D.timestampOffset;D.getCurrentTime()!==Q&&D.resume();D.AN.isSeeking()&&D.cq&&!D.cq.TE()&&(P=D.getCurrentTime()<=Q&&Q<D.getCurrentTime()+10,m=z5(D.cq.C.Ti(),D.getCurrentTime()+Tg4),P&&m&&
(D.AN.B=!1));D.AN.isSeeking()||D.policy.t0&&!D.policy.Lj||(D.currentTime=Q);if(D.policy.WO&&D.policy.gB===2&&g.X(D.Ch.getPlayerState(),8)){var L;(L=D.hU)==null||Ach(L,Q)}g.xG(D.q_)}};
ILu=function(D,Q){var m=xQ(D.videoTrack).find(function(P){return P.startTime>=Q&&$Oh(D,P.startTime,!1)});
return m&&m.startTime<Q+m.duration*1.5?m.startTime+.1:0};
$Oh=function(D,Q,m){if(!(D.videoTrack.S.xa()&&D.audioTrack.S.xa()&&D.cq&&D.cq.C&&D.cq.S))return!1;if(m&&D.UW.isManifestless&&(D.videoTrack.N===-1||D.audioTrack.N===-1))return!0;var P=dY(D.videoTrack,Q,m);if(isNaN(P))return!1;D=dY(D.audioTrack,D.policy.gi?Q:P,m);return isNaN(D)?!1:!0};
tB=function(D){D.fI();D.AN.isSeeking()&&D.logger.debug("seeking cancelled by seek-to-head");D.U&&cch(D.U,D.videoTrack.S);SW(D);return Io7(D.AN)};
dG=function(D,Q,m,P){(P===void 0?0:P)&&!Q.k9&&(Zj()||(P=Q.zo)&&!P.y5(m.info)&&D.Ch.nI(),Q.k9=!0);Q.S!==m&&(D.logger.debug(function(){return"Setting target itag: "+m.info.id+" (was "+Q.S.info.id+")"}),Q.S=m)};
fZ7=function(D){var Q,m=(Q=oV(D))==null?void 0:Q.info;return!m||KBr(D,Math.min(m.J+Tg4,m.N))};
RIr=function(D,Q){var m;if((m=oV(Q))!=null&&m.isLocked&&fZ7(Q)){if(D.Ch.G().xl()){var P;D.dc("eosl",{munlock:(P=oV(Q))==null?void 0:P.info.Hn()})}V94(D,Q===D.audioTrack)}};
V94=function(D,Q){if(D.policy.GO&&D.cq){var m,P,W=Q?(m=D.cq)==null?void 0:m.S:(P=D.cq)==null?void 0:P.C;m=Q?D.audioTrack:D.videoTrack;Q=oV(m);if(Q==null?0:Q.isLocked){D.Ch.G().xl()&&D.dc("eosl",{unlock:Q.info.Hn()});var L;(L=m.wc)==null||L.stop();Q.isLocked=!1;m.xz(Q);J7u(D.S,Q.info);W=W==null?void 0:W.CP();(W==null?void 0:W.Hn())!==Q.info.Hn()&&D.dc("oue",{bls:W==null?void 0:W.Hn(),tls:Q.info.Hn()})}}};
UNw=function(D,Q){D.timestampOffset!==Q&&(D.timestampOffset=Q,D.policy.HO&&cl(D.UW),D.logger.debug(function(){return"Timestamps will be made relative to "+D.timestampOffset}),D.T.Z=D.timestampOffset,D.Ch.zt(D.timestampOffset),D.UW.isManifestless&&(D.UW.timestampOffset=D.timestampOffset),D.videoTrack.In(D.timestampOffset),D.audioTrack.In(D.timestampOffset))};
mSu=function(D){var Q=(0,g.T3)();D.bf=Q};
HSn=function(D){D.audioTrack.TO=[];D.videoTrack.TO=[]};
Q86=function(D){var Q=D.sN().filter(function(P){return P.namespace==="ad"});
Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())if(m=m.value,m.start/1E3>D.getCurrentTime())return m.start/1E3;return Infinity};
gAu=function(D){if(D.Ch.getVideoData().isLivePlayback)return!1;var Q=D.Ch.Cn();if(!Q)return!1;Q=Q.getDuration();if(D.cq&&D.cq.S&&D.cq.C){var m=D.getCurrentTime(),P=D.cq.S.Ti();D=D.cq.C.Ti();P=P?bs(P,m):m;m=D?bs(D,m):m;m=Math.min(P,m);Q=isNaN(m)?!1:m>=Q-.01}else Q=!1;return Q};
o_w=function(D,Q,m){D.policy.Ku&&lH(D.Ch.getVideoData())?(D.Ch.jm()||Ci7(D,"sepInit",Q,m.info),KRn(D.Ch,"sie")):Ci7(D,"sepInit",Q,m.info)};
uG7=function(D){return D.Ch.kZ()<D.yn};
g.dT=function(D){this.Ax=D};
ts=function(){g.iR.apply(this,arguments)};
zi=function(D,Q,m,P){ts.call(this);var W=this;this.T=-1;this.S={};this.B=new g.pJ(this.J,0,this);g.O(this,this.B);this.C=new g.pJ(function(){W.VF()||(W.B.start(Math.random()*m),W.C.start(Q))},D,this);
g.O(this,this.C);P.subscribe("fairplay_next_need_key_info",this.N,this)};
jxj=function(D){if(!(D.length<=28))for(var Q=(0,g.vO)([60,0,75,0,73,0,68,0,62,0]),m=28;m<D.length;){a:if(D.length-m<Q.length)var P=!1;else{for(P=0;P<Q.length;++P)if(D[m+P]!==Q[P]){P=!1;break a}P=!0}if(P){m+=Q.length;if(D.length<=m+48)break;Q=new Uint8Array(24);for(P=0;P<24;++P)Q[P]=D[m+P*2];D=fh(Q);D=Bz(D);if(!D)break;m=D[0];D[0]=D[3];D[3]=m;m=D[1];D[1]=D[2];D[2]=m;m=D[4];D[4]=D[5];D[5]=m;m=D[6];D[6]=D[7];D[7]=m;return D}m++}};
bb=function(D,Q){ts.call(this);var m=this;this.T=D;this.S=[];this.C=new g.pJ(function(){m.publish("log_qoe",{wvagt:"timer",reqlen:m.S?m.S.length:-1});if(m.S){if(m.S.length>0){var P=m.S.shift();$Nm(m,P.info)}m.S.length>0&&(P=m.S[0].time-(0,g.T3)(),m.C.start(Math.max(0,P)))}},0);
g.O(this,this.C);Q.subscribe("widevine_set_need_key_info",this.B,this)};
$Nm=function(D,Q){a:{var m=Q.cryptoPeriodIndex;if(isNaN(m)&&D.T.size>0)m=!0;else{for(var P=g.T(D.T.values()),W=P.next();!W.done;W=P.next())if(W.value.cryptoPeriodIndex===m){m=!0;break a}m=!1}}D.publish("log_qoe",{wvagt:"reqnews",canskip:m});m||D.publish("rotated_need_key_info_ready",Q)};
eI9=function(){var D={};var Q=D.url;var m=D.interval;D=D.retries;this.url=Q;this.interval=m;this.retries=D};
vUk=function(D,Q){this.statusCode=D;this.message=Q;this.C=this.heartbeatParams=this.errorMessage=null;this.S={};this.nextFairplayKeyId=null};
OS_=function(D,Q,m){m=m===void 0?"":m;g.v.call(this);this.message=D;this.requestNumber=Q;this.timer=m;this.onError=this.onSuccess=null;this.S=new g.I3(5E3,2E4,.2)};
Yd_=function(D,Q,m){D.onSuccess=Q;D.onError=m};
AB7=function(D,Q,m,P){var W={timeout:3E4,onSuccess:function(L){if(!D.VF()){kY("drm_net_r",void 0,D.timer);var u=L.status==="LICENSE_STATUS_OK"?0:9999,t=null;if(L.license)try{t=Bz(L.license)}catch(N){g.JG(N)}if(u!==0||t){t=new vUk(u,t);u!==0&&L.reason&&(t.errorMessage=L.reason);if(L.authorizedFormats){u={};for(var z=[],b={},q=g.T(L.authorizedFormats),C=q.next();!C.done;C=q.next())if(C=C.value,C.trackType&&C.keyId){var f=aLj[C.trackType];if(f){f==="HD"&&L.isHd720&&(f="HD720");C.isHdr&&(f+="HDR");u[f]||
(z.push(f),u[f]=!0);var V=null;try{V=Bz(C.keyId)}catch(N){g.JG(N)}V&&(b[g.EG(V,4)]=f)}}t.C=z;t.S=b}L.nextFairplayKeyId&&(t.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(t.sabrLicenseConstraint=Bz(L.sabrLicenseConstraint));L=t}else L=null;if(L)D.onSuccess(L,D.requestNumber);else D.onError(D,"drm.net","t.p;p.i")}},
onError:function(L){if(!D.VF())if(L&&L.error)L=L.error,D.onError(D,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else D.onError(D,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){D.onError(D,"drm.net","rt.req."+D.requestNumber)}};
P&&(W.s2="Bearer "+P);g.XM(m,"player/get_drm_license",Q,W)};
p7P=function(D,Q,m,P){g.iR.call(this);this.videoData=D;this.SD=Q;this.Z=m;this.sessionId=P;this.J={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.TO=this.Iy=!1;this.T=null;this.Kh=[];this.B=[];this.authorizedFormats=[];this.U=!1;this.S={};this.status="";this.N=NaN;this.C=D.J;this.cryptoPeriodIndex=m.cryptoPeriodIndex;D={};Object.assign(D,this.SD.S);D.cpn=this.videoData.clientPlaybackNonce;this.videoData.t0&&(D.vvt=this.videoData.t0,this.videoData.mdxEnvironment&&(D.mdx_environment=
this.videoData.mdxEnvironment));this.SD.Kh&&(D.authuser=this.SD.Kh);this.SD.pageId&&(D.pageid=this.SD.pageId);isNaN(this.cryptoPeriodIndex)||(D.cpi=this.cryptoPeriodIndex.toString());var W=(W=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Kg()))?W[1]:"";W==="ATV"&&(D.cdt=W);this.J=D;this.J.session_id=P;this.j=!0;this.C.flavor==="widevine"&&(this.J.hdr="1");this.C.flavor==="playready"&&(Q=Number(nD(Q.experiments,"playready_first_play_expiration")),!isNaN(Q)&&Q>=0&&(this.J.mfpe=""+Q),this.j=!1);Q="";g.op(this.C)?
CD(this.C)?(P=m.C)&&(Q="https://www.youtube.com/api/drm/fps?ek="+hu_(P)):(Q=m.initData.subarray(4),Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2),Q=String.fromCharCode.apply(null,Q).replace("skd://","https://")):Q=this.C.C;this.baseUrl=Q;this.fairplayKeyId=Zb(this.baseUrl,"ek")||"";if(Q=Zb(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Q);this.Kh=m.nO?[g.EG(m.initData,4)]:m.T;q7(this,{sessioninit:m.cryptoPeriodIndex});this.status="in"};
rB7=function(D,Q){q7(D,{createkeysession:1});D.status="gr";kY("drm_gk_s",void 0,D.videoData.TO);D.url=xN9(D);try{D.T=Q.createSession(D.Z,function(m){q7(D,{m:m})})}catch(m){Q="t.g";
m instanceof DOMException&&(Q+=";c."+m.code);D.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}D.T&&(X7j(D.T,function(m,P){Sd7(D,m,P)},function(m,P,W){if(!D.VF()){P=void 0;
var L=1;g.op(D.C)&&g.zs(D.SD)&&D.SD.V("html5_enable_safari_fairplay")&&W===1212433232&&(P="ERROR_HDCP",L=D.SD.V("html5_safari_fairplay_ignore_hdcp")?0:L);D.error("drm.keyerror",L,m,P)}},function(){D.VF()||(q7(D,{onkyadd:1}),D.TO||(D.publish("sessionready"),D.TO=!0))},function(m){D.Jr(m)}),g.O(D,D.T))};
xN9=function(D){var Q=D.baseUrl;flm(Q)||D.error("drm.net",2,"t.x");if(!Zb(Q,"fexp")){var m=["23898307","23914062","23916106","23883098"].filter(function(W){return D.SD.experiments.experiments[W]});
m.length>0&&(D.J.fexp=m.join())}m=g.T(Object.keys(D.J));for(var P=m.next();!P.done;P=m.next())P=P.value,Q=Atr(Q,P,D.J[P]);return Q};
Sd7=function(D,Q,m){if(!D.VF())if(Q){q7(D,{onkmtyp:m});D.status="km";switch(m){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":GL9(D,Q);return;default:D.publish("ctmp","message_type",{t:m,l:Q.byteLength})}D.Iy||(kY("drm_gk_f",void 0,D.videoData.TO),D.Iy=!0,D.publish("newsession",D));if(zZ(D.C)&&(Q=MW_(Q),!Q))return;Q=new OS_(Q,++D.requestNumber,D.videoData.TO);Yd_(Q,function(P){cBu(D,P)},function(P,W,L){if(!D.VF()){var u=0;
P.S.C>=3&&(u=1,W="drm.net.retryexhausted");q7(D,{onlcsrqerr:W,info:L});D.error(W,u,L);D.shouldRetry(Nh(u),P)&&D7u(D,P)}});
g.O(D,Q);QJ_(D,Q)}else D.error("drm.unavailable",1,"km.empty")};
GL9=function(D,Q){q7(D,{sdpvrq:1});D.N=Date.now();if(D.C.flavor!=="widevine")D.error("drm.provision",1,"e.flavor;f."+D.C.flavor+";l."+Q.byteLength);else{var m={cpn:D.videoData.clientPlaybackNonce};Object.assign(m,D.SD.S);m=g.oz("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",m);Q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
Q)}),responseType:"arraybuffer"};g.np(m,Q,3,500).then(P4(function(P){P=P.xhr;if(!D.VF()){P=new Uint8Array(P.response);var W=String.fromCharCode.apply(null,P);try{var L=JSON.parse(W)}catch(u){}L&&L.signedResponse?(D.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-D.N)/1E3,D.N=NaN,D.publish("ctmp","provs",{et:L.toFixed(3)}),D.T&&D.T.update(P)):(L=L&&L.error&&L.error.message,P="e.parse",L&&(P+=";m."+L),D.error("drm.provision",1,P))}}),P4(function(P){D.VF()||D.error("drm.provision",1,"e."+P.errorCode+
";c."+(P.xhr&&P.xhr.status))}))}};
C7=function(D){var Q;if(Q=D.j&&D.T!=null)D=D.T,Q=!(!D.S||!D.S.keyStatuses);return Q};
QJ_=function(D,Q){D.status="km";kY("drm_net_s",void 0,D.videoData.TO);var m=new g.xT(D.SD.fF),P={context:g.dk(m.config_||g.uI())};P.drmSystem=m7n[D.C.flavor];P.videoId=D.videoData.videoId;P.cpn=D.videoData.clientPlaybackNonce;P.sessionId=D.sessionId;P.licenseRequest=g.EG(Q.message);P.drmParams=D.videoData.drmParams;isNaN(D.cryptoPeriodIndex)||(P.isKeyRotated=!0,P.cryptoPeriodIndex=D.cryptoPeriodIndex);var W,L,u=!!((W=D.videoData.C)==null?0:(L=W.video)==null?0:L.isHdr());P.drmVideoFeature=u?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";if(P.context&&P.context.client){if(W=D.SD.S)P.context.client.deviceMake=W.cbrand,P.context.client.deviceModel=W.cmodel,P.context.client.browserName=W.cbr,P.context.client.browserVersion=W.cbrver,P.context.client.osName=W.cos,P.context.client.osVersion=W.cosver;P.context.user=P.context.user||{};P.context.request=P.context.request||{};D.videoData.t0&&(P.context.user.credentialTransferTokens=[{token:D.videoData.t0,scope:"VIDEO"}]);P.context.request.mdxEnvironment=D.videoData.mdxEnvironment||
P.context.request.mdxEnvironment;D.videoData.kJ&&(P.context.user.kidsParent={oauthToken:D.videoData.kJ});g.op(D.C)&&(P.fairplayKeyId=g.EG(n1h(D.fairplayKeyId)));g.UO(D.SD,g.qO(D.videoData)).then(function(t){AB7(Q,P,m,t);D.status="rs"})}else D.error("drm.net",2,"t.r;ic.0")};
cBu=function(D,Q){if(!D.VF())if(q7(D,{onlcsrsp:1}),D.status="rr",Q.statusCode!==0)D.error("drm.auth",1,"t.f;c."+Q.statusCode,Q.errorMessage||void 0);else{kY("drm_kr_s",void 0,D.videoData.TO);if(Q.heartbeatParams&&Q.heartbeatParams.url&&D.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var m=D.C.C.match(/(.*)youtube.com/g);m&&(Q.heartbeatParams.url=m[0]+Q.heartbeatParams.url)}Q.heartbeatParams&&D.publish("newlicense",Q.heartbeatParams);Q.C&&(D.B=Q.C,D.videoData.S3||D.publish("newlicense",
new eI9),D.videoData.S3=!0,D.U=v9(D.B,function(P){return P.includes("HDR")}));
Q.S&&(D.SD.V("html5_enable_vp9_fairplay")&&CD(D.C)?(m=g.EG(n1h(D.fairplayKeyId),4),D.S[m]={type:Q.S[m],status:"unknown"}):D.S=Dz(Q.S,function(P){return{type:P,status:"unknown"}}));
qB(D.C)&&(Q.message=vTh(g.EG(Q.message)));D.T&&(q7(D,{updtks:1}),D.status="ku",D.T.update(Q.message).then(function(){kY("drm_kr_f",void 0,D.videoData.TO);C7(D)||(q7(D,{ksApiUnsup:1}),D.publish("keystatuseschange",D))},function(P){P="msuf.req."+D.requestNumber+";msg."+g.gP(P.message,3);
D.error("drm.keyerror",1,P)}));
g.op(D.C)&&D.publish("fairplay_next_need_key_info",D.baseUrl,Q.nextFairplayKeyId);D.SD.V("html5_enable_vp9_fairplay")&&CD(D.C)&&D.publish("qualitychange",Pb$(D.B));Q.sabrLicenseConstraint&&D.publish("sabrlicenseconstraint",Q.sabrLicenseConstraint)}};
D7u=function(D,Q){var m=Q.S.getValue();m=new g.pJ(function(){QJ_(D,Q)},m);
g.O(D,m);m.start();g.R3(Q.S);q7(D,{rtyrq:1})};
WEu=function(D,Q){for(var m=[],P=g.T(Object.keys(D.S)),W=P.next();!W.done;W=P.next())W=W.value,m.push(W+"_"+D.S[W].type+"_"+D.S[W].status);return m.join(Q)};
i7n=function(D){var Q={};Q[D.status]=C7(D)?WEu(D,"."):D.B.join(".");return Q};
sJw=function(D,Q,m){var P={};P.isHdr=Q.includes("HDR");switch(Q.replace("HDR","").replace("720","")){case "AUDIO":P.trackType=1;break;case "SD":P.trackType=2;break;case "HD":P.trackType=3;break;case "UHD1":P.trackType=4;break;case "UHD2":P.trackType=5;break;default:P.trackType=0}!P.trackType||m[Q]||C7(D)&&!oJ(D,Q)||(D.authorizedFormats.push(P),m[Q]=!0)};
oJ=function(D,Q){for(var m in D.S)if(D.S[m].status==="usable"&&D.S[m].type===Q)return!0;return!1};
LE7=function(D,Q){for(var m in D.S)if(D.S[m].type===Q)return D.S[m].status};
q7=function(D,Q){var m=m===void 0?!1:m;ft(Q);(m||D.SD.xl())&&D.publish("ctmp","drmlog",Q)};
u17=function(D){var Q=D[0];D[0]=D[3];D[3]=Q;Q=D[1];D[1]=D[2];D[2]=Q;Q=D[4];D[4]=D[5];D[5]=Q;Q=D[6];D[6]=D[7];D[7]=Q};
Pb$=function(D){return g.FK(D,"UHD2")||g.FK(D,"UHD2HDR")?"highres":g.FK(D,"UHD1")||g.FK(D,"UHD1HDR")?"hd2160":g.FK(D,"HD")||g.FK(D,"HDHDR")?"hd1080":g.FK(D,"HD720")||g.FK(D,"HD720HDR")?"hd720":"large"};
MW_=function(D){for(var Q="",m=0;m<D.length;m+=2)Q+=String.fromCharCode(D[m]);D=Ec(new DOMParser,bp(Q),"text/xml");if(!D)return null;(Q=D.querySelector("Challenge"))&&Q.childNodes&&Q.childNodes.length!==0?(D=Uint8Array,Q=krh(Q.childNodes[0].nodeValue),Q=(0,g.vO)(Q).buffer,D=new D(Q)):D=null;return D};
f7=function(D,Q,m,P,W,L){L=L===void 0?!1:L;g.v.call(this);this.element=D;this.Z=Q;this.initData=m;this.S=P;this.C=W;this.j=L;this.sessionId="";this.U=this.N=this.T=this.J=null;this.B=new g.gO(this);g.O(this,this.B);d76(this)};
d76=function(D){D.S?(D.B.W(D.S,"message",D.le),D.B.W(D.S,"keystatuseschange",D.Jr),D.S.closed&&D.S.closed.then(P4(function(){D.onClosed()}),null)):D.C&&(nU(D.B,D.C,["mskeymessage",
"webkitkeymessage"],D.xq),nU(D.B,D.C,["mskeyerror","webkitkeyerror"],D.wJ),nU(D.B,D.C,["mskeyadded","webkitkeyadded"],D.VI))};
X7j=function(D,Q,m,P,W){D.J=Q;D.T=m;D.N=P;D.U=W};
tlk=function(D,Q,m){g.JG(m);D.T&&(m instanceof DOMException&&(Q+=";n."+m.name+";m."+m.message),D.T(Q))};
VU=function(D,Q,m){m=m===void 0?!1:m;g.v.call(this);this.element=D;this.S=Q;this.U=m;this.N={};this.B=null;this.J=new g.gO(this);this.T=this.C=null;g.O(this,this.J)};
b7u=function(D){if(D.S.keySystemAccess)return D.S.keySystemAccess.createMediaKeys().then(function(m){if(!D.VF()){D.C=m;var P;(P=D.element)==null||P.setMediaKeys(m)}});
if(tY(D.S))D.T=new (dJ())(D.S.keySystem);else if(bC(D.S)){D.T=new (dJ())(D.S.keySystem);var Q;(Q=D.element)==null||Q.webkitSetMediaKeys(D.T)}else z6_(D);return null};
z6_=function(D){nU(D.J,D.element,["keymessage","webkitkeymessage"],D.p5);nU(D.J,D.element,["keyerror","webkitkeyerror"],D.PK);nU(D.J,D.element,["keyadded","webkitkeyadded"],D.ZJ)};
Cb9=function(D,Q){Q=qym(Q,D.S.k9);Q=D.T.createSession("video/mp4",Q);return new f7(null,null,null,null,Q,D.U)};
oa9=function(D,Q){for(var m=new Uint8Array(270),P=0;P<135;P++)m[P*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(P);D=D.T.createSession("video/mp4",Q,m);return new f7(null,null,null,null,D)};
fuP=function(D,Q){var m=D.N[Q.sessionId];!m&&D.B&&(m=D.B,D.B=null,m.sessionId=Q.sessionId,D.N[Q.sessionId]=m);return m};
qym=function(D,Q){var m=D.subarray(4);m=new Uint16Array(m.buffer,m.byteOffset,m.byteLength/2);m=String.fromCharCode.apply(null,m).match(/ek=([0-9a-f]+)/)[1];for(var P="",W=0;W<m.length;W+=2)P+=String.fromCharCode(parseInt(m.substring(W,W+2),16));m=P;P=new ArrayBuffer(m.length*2);W=new Uint16Array(P);for(var L=0;L<m.length;L++)W[L]=m.charCodeAt(L);m=new Uint8Array(P);P=0;L=new ArrayBuffer(D.byteLength+4+m.byteLength+4+Q.byteLength);W=new Uint8Array(L);L=new DataView(L);W.set(D);P+=D.byteLength;L.setUint32(P,
m.length,!0);P+=4;W.set(m,P);P+=m.length;L.setUint32(P,Q.byteLength,!0);W.set(Q,P+4);return W};
N7=function(){this.keys=[];this.values=[]};
ys6=function(D,Q,m){g.iR.call(this);this.element=D;this.videoData=Q;this.SD=m;this.T=[];this.u0=2;this.x9=this.t0=!1;this.heartbeatParams=null;this.QF=this.j=!1;this.J=null;this.wc=!1;this.S=this.videoData.J;this.drmSessionId=this.videoData.drmSessionId||g.Fdh();this.C=new Map;this.N=new N7;this.U=new N7;this.Iy=new g.gO(this);this.Kh=this.SD.V("html5_eme_ignore_teardown_errors");(D=this.element)&&(D.addKey||D.webkitAddKey)||dJ()||Vr(m.experiments);this.SD.V("html5_enable_vp9_fairplay")&&CD(this.S)?
m=Vl$:(m=this.videoData.R4,m=this.S.flavor==="fairplay"||m?y7:Vl$);this.Z=m;this.B=new VU(this.element,this.S,this.Kh);g.O(this,this.B);tY(this.S)&&(this.TO=new VU(this.element,this.S,this.Kh),g.O(this,this.TO));g.O(this,this.Iy);m=this.element;this.S.keySystemAccess?this.Iy.W(m,"encrypted",this.bjc):nU(this.Iy,m,tY(this.S)?["msneedkey"]:["needkey","webkitneedkey"],this.Pg0);NT9(this);a:switch(m=this.S,D=this.SD.experiments,Q=this.C,m.flavor){case "fairplay":Kp()>19.2999?(D=m.UI,m=m.xb,m>=D&&(m=D*
.75),Q=(D-m)*.5,m=new zi(Q,D,D-Q-m,this)):m=null;break a;case "widevine":m=new bb(Q,this,D);break a;default:m=null}if(this.J=m)g.O(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.A5,this),this.J.subscribe("log_qoe",this.Jn,this);Vr(this.SD.experiments);this.Jn({cks:this.S.getInfo()})};
NT9=function(D){var Q=b7u(D.B);Q?Q.then(P4(function(){Z7$(D)}),P4(function(m){if(!D.VF()){g.JG(m);
var P="t.a";m instanceof DOMException&&(P+=";n."+m.name+";m."+m.message);D.publish("licenseerror","drm.unavailable",1,P,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(D.Jn({mdkrdy:1}),D.j=!0);
D.TO&&(Q=b7u(D.TO))};
TT7=function(D,Q,m){D.x9=!0;m=new kQ(Q,m);D.SD.V("html5_eme_loader_sync")&&(D.N.get(Q)||D.N.set(Q,m));FEh(D,m)};
FEh=function(D,Q){if(!D.VF()){D.Jn({onInitData:1});if(D.SD.V("html5_eme_loader_sync")&&D.videoData.T&&D.videoData.T.S){var m=D.U.get(Q.initData);Q=D.N.get(Q.initData);if(!m||!Q)return;Q=m;m=Q.initData;D.N.remove(m);D.U.remove(m)}D.Jn({initd:Q.initData.length,ct:Q.contentType});if(D.S.flavor==="widevine")if(D.t0&&!D.videoData.isLivePlayback)yU(D);else{if(!(D.SD.V("vp9_drm_live")&&D.videoData.isLivePlayback&&Q.nO)){D.t0=!0;m=Q.cryptoPeriodIndex;var P=Q.S;r7w(Q);Q.nO||(P&&Q.S!==P?D.publish("ctmp","cpsmm",
{emsg:P,pssh:Q.S}):m&&Q.cryptoPeriodIndex!==m&&D.publish("ctmp","cpimm",{emsg:m,pssh:Q.cryptoPeriodIndex}));D.publish("widevine_set_need_key_info",Q)}}else D.A5(Q)}};
Z7$=function(D){if(!D.VF())if(D.SD.V("html5_drm_set_server_cert")||CD(D.S)){var Q=D.B.setServerCertificate();Q?Q.then(P4(function(m){D.SD.xl()&&D.publish("ctmp","ssc",{success:m})}),P4(function(m){D.publish("ctmp","ssce",{n:m.name,
m:m.message})})).then(P4(function(){h66(D)})):h66(D)}else h66(D)};
h66=function(D){D.VF()||(D.j=!0,D.Jn({onmdkrdy:1}),yU(D))};
nam=function(D){return D.S.flavor==="widevine"&&D.videoData.V("html5_drm_cpi_license_key")};
yU=function(D){if(D.x9&&D.j&&!D.QF){for(;D.T.length;){var Q=D.T[0],m=nam(D)?Gf$(Q):g.EG(Q.initData);if(CD(D.S)&&!Q.C)D.T.shift();else{if(D.C.get(m))if(D.S.flavor!=="fairplay"||CD(D.S)){D.T.shift();continue}else D.C.delete(m);r7w(Q);break}}D.T.length&&D.createSession(D.T[0])}};
Ea9=function(D){var Q,m;g.U(function(P){if(P.C==1){var W;if(W=g.e8()){var L;W=!((L=D.B.C)==null||!L.getMetrics)}return W?g.I(P,D.B.getMetrics(),2):P.return()}Q=P.S;if(!Q)return P.return();rP(Q)||(Q=g.Ny(Q));m=/^[A-Za-z0-9_-]+={0,3}$/;m.test(Q)||(Q=g.gP(Q,void 0,!0));D.publish("ctmp","drm",{metrics:Q});g.T7(P)})};
gaP=function(){var D=laj();return!(!D||D==="visible")};
wZn=function(D){var Q=BT9();Q&&document.addEventListener(Q,D,!1)};
ki_=function(D){var Q=BT9();Q&&document.removeEventListener(Q,D,!1)};
BT9=function(){if(document.visibilityState)var D="visibilitychange";else{if(!document[tJ+"VisibilityState"])return"";D=tJ+"visibilitychange"}return D};
Jsm=function(D){g.v.call(this);var Q=this;this.Ch=D;this.DX=0;this.N=this.C=this.J=!1;this.B=0;this.nh=this.Ch.G();this.videoData=this.Ch.getVideoData();this.T=g.WF(this.nh.experiments,"html5_delayed_retry_count");this.S=new g.pJ(function(){Q.Ch.nI()},g.WF(this.nh.experiments,"html5_delayed_retry_delay_ms"));
g.O(this,this.S)};
H7m=function(D,Q,m){var P=D.videoData.C,W=D.videoData.B,L=D.nh.V("html5_disable_codec_fallback_for_drm")&&D.videoData.qJ();lH(D.Ch.getVideoData())&&D.nh.V("html5_gapless_fallback_on_qoe_restart")&&KRn(D.Ch,"pe");if((Q==="progressive.net.retryexhausted"||Q==="fmt.unplayable"||Q==="fmt.decode")&&!D.Ch.gT.J&&P&&P.itag==="22")return D.Ch.gT.J=!0,D.Hs("qoe.restart",{reason:"fmt.unplayable.22"}),D.Ch.XQ(),!0;var u=!1;if(D.videoData.isExternallyHostedPodcast){if(u=D.videoData.rYc)m.mimeType=u.type,D.dc("3pp",
{url:u.url});m.ns="3pp";D.Ch.Qi(Q,1,"VIDEO_UNAVAILABLE",ft((new g.VJ(Q,m,1)).details));return!0}var t=D.DX+3E4<(0,g.T3)()||D.S.isActive();if(D.nh.V("html5_empty_src")&&D.videoData.isAd()&&Q==="fmt.unplayable"&&/Empty src/.test(""+m.msg))return m.origin="emptysrc",D.Hs("auth",m),!0;t||luk(D.Ch.VL())||(m.nonfg="paused",t=!0,D.Ch.pauseVideo());(Q==="fmt.decode"||Q==="fmt.unplayable")&&(W==null?0:rO(W)||Ga(W))&&(G5w(D.nh.J,W.FT),m.acfallexp=W.FT,u=t=!0);!t&&D.T>0&&(D.S.start(),t=!0,m.delayed="1",--D.T);
W=D.Ch.loader;t||!((P==null?0:Sk(P))||(P==null?0:pt(P)))||L||(G5w(D.nh.J,P.FT),u=t=!0,m.cfallexp=P.FT);if(!t)return Iun(D,m);L=!1;D.J?D.DX=(0,g.T3)():L=D.J=!0;t=D.videoData;if(t.GO){t=t.GO.z5();var z=Date.now()/1E3+1800;t=t<z}else t=!1;m.e=Q;m.bkg=gaP();t&&(m.staleprog="1");D.Hs("qoe.restart",m);if(t&&R66(D))return U7j(D),!0;if(!(!g.j8("philips")||Q==="fmt.unplayable"&&W&&W.t0||D.nh.S.cplatform==="GAME_CONSOLE"))try{window.close()}catch(b){}P&&Sk(P)&&!D.nh.V("html5_allow_av1_retry_in_session")?(u=
D.nh.J,u.TO=!0,u=u.C=!0):W?L||(Q=(Q=YQ(W.videoTrack)||W.videoTrack.C)?Q.S:W.videoTrack.S,Q.N+=1,W.policy.S?tX(W.B.S,Q,!0):VL(W.S,Q,!0)):D.videoData.GO&&D.videoData.GO.c_();D.S.isActive()||D.Ch.nI(u);return!0};
Iun=function(D,Q){if(D.videoData.Iy)return!1;D.nh.hU+=1;if(D.nh.hU<=10)return!1;Q.exiled=""+D.nh.hU;D.Hs("qoe.start15s",Q);D.Ch.publish("playbackstalledatstart");return!0};
R66=function(D){return D.C?!0:D.nh.TO==="yt"?D.videoData.Iy?D.videoData.cY<25:!D.videoData.cY:!1};
U7j=function(D){if(!D.C){D.C=!0;var Q=D.Ch.getPlayerState();Q=Q.isPaused()||Q.isSuspended();D.Ch.Gb();Q&&!fy(D.videoData)||D.Ch.publish("signatureexpired")}};
KEw=function(D,Q){if((D=D.Ch.Cn())&&(Q.errorCode==="fmt.unplayable"||Q.errorCode==="html5.invalidstate")){var m=D.X6();Q.details.merr=m?m.toString():"0";Q.details.mmsg=D.tN()}};
jJh=function(D){return D.errorCode==="net.badstatus"&&(D.severity===1||!!D.details.fmt_unav)};
$7u=function(D,Q){return D.nh.V("html5_use_network_error_code_enums")&&Q.details.rc===403||Q.details.rc==="403"?(D=Q.errorCode,D==="net.badstatus"||D==="manifest.net.retryexhausted"):!1};
vaP=function(D,Q){if(!$7u(D,Q)&&!D.C)return!1;Q.details.sts="20311";if(R66(D))return Nh(Q.severity)&&(Q=Object.assign({e:Q.errorCode},Q.details),Q=new g.VJ("qoe.restart",Q)),D.Hs(Q.errorCode,Q.details),U7j(D),!0;(0,g.T3)()-D.nh.ZD>6048E5&&e6u(D,"signature");return!1};
e6u=function(D,Q){try{Q={detail:"pr."+Q},g.hf(D.nh)&&D.nh.V("html5_reload_by_kabuki_app")?D.Ch.Qi("qoe.restart",1,void 0,ft(Q),"7"):(D.Hs("qoe.restart",Q),window.location.reload())}catch(m){}};
O7k=function(D,Q){var m=D.nh.J;m.U=!1;m.C=!0;D.Hs("qoe.restart",{e:Q===void 0?"fmt.noneavailable":Q,detail:"hdr"});D.Ch.nI(!0)};
Yyu=function(D,Q,m,P,W,L){this.videoData=D;this.S=Q;this.reason=m;this.C=P;this.token=W;this.videoId=L};
Zu=function(D,Q,m){this.SD=D;this.Pe=Q;this.Ch=m;this.Z=this.N=this.S=this.B=this.U=this.C=0;this.J=!1;this.j=g.WF(this.SD.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.T=new Map};
au$=function(D,Q,m){!D.SD.V("html5_tv_ignore_capable_constraint")&&g.Nw(D.SD)&&(m=m.compose(D.ip(Q)));return m};
As$=function(D){if(D.Ch.VL().isInline())return y7;var Q;D.V("html5_exponential_memory_for_sticky")?Q=cA(D.SD.HO,"sticky-lifetime")<.5?"auto":H4[F2()]:Q=H4[F2()];return g.IP("auto",Q,!1,"s")};
x79=function(D,Q){var m,P=pZ_(D,(m=Q.S)==null?void 0:m.videoInfos);m=D.Ch.getPlaybackRate();return m>1&&P?(D=xGm(D.SD.J,Q.S.videoInfos,m),new lt(0,D,!0,"o")):new lt(0,0,!1,"o")};
pZ_=function(D,Q){return Q&&g.Nw(D.SD)?Q.some(function(m){return m.video.fps>32}):!1};
XZ6=function(D,Q){if(D.V("html5_disable_ustreamer_constraint_for_sabr")&&H1(Q.videoData))return y7;var m=D.Ch.Fb();D.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&m&&m.Sa>0&&Ue(Q.videoData.EG)&&(D=m.Sa,Q.videoData.EG=new lt(0,D,!1,"u"));return Q.videoData.EG};
Sy7=function(D,Q){var m;a:if((m=Q.S)&&m.videoInfos.length){for(var P=g.T(m.videoInfos),W=P.next();!W.done;W=P.next()){W=W.value;var L=void 0;if((L=W.C)==null?0:L.smooth){m=W.video.qualityOrdinal;break a}}m=m.videoInfos[0].video.qualityOrdinal}else m=0;q77()&&!g.Nw(D.SD)&&pt(Q.S.videoInfos[0])&&(m=Math.min(m,g.ek.large));P=g.WF(D.SD.experiments,"html5_chipset_soft_cap");P>0&&(m=Math.min(m,P));if(P=g.WF(D.SD.experiments,"html5_max_vertical_resolution")){W=4320;for(L=0;L<Q.S.videoInfos.length;L++){var u=
Q.S.videoInfos[L];u.video.height>P&&(W=Math.min(W,u.video.qualityOrdinal))}if(W<4320){for(u=L=0;u<Q.S.videoInfos.length;u++){var t=Q.S.videoInfos[u].video.qualityOrdinal;t<W&&(L=Math.max(L,t))}L&&(m=Math.min(L,m))}D.Ch.dc("mvr",{h:P,cp:m})}return new lt(0,m,!1,"o")};
Gir=function(D,Q){var m=4320;!D.SD.C||g.tf(D.SD)||D.SD.V("hls_for_vod")||D.SD.V("mweb_remove_360p_cap")||(m=g.ek.medium);var P=g.WF(D.SD.experiments,"html5_default_quality_cap");P&&Q.S.S&&(D.SD.V("html5_always_apply_default_quality_cap")||!Q.videoData.Rc&&!Q.videoData.Ln)&&(m=Math.min(m,P));P=g.WF(D.SD.experiments,"html5_random_playback_cap");var W=/[a-h]$/;P&&W.test(Q.videoData.clientPlaybackNonce)&&(m=Math.min(m,P));if(W=P=g.WF(D.SD.experiments,"html5_hfr_quality_cap"))a:{W=Q.S;if(W.S){W=g.T(W.videoInfos);
for(var L=W.next();!L.done;L=W.next())if(L.value.video.fps>32){W=!0;break a}}W=!1}W&&(m=Math.min(m,P));(P=g.WF(D.SD.experiments,"html5_live_quality_cap"))&&Q.videoData.isLivePlayback&&(m=Math.min(m,P));m=rs_(D,Q,m);D=g.WF(D.SD.experiments,"html5_byterate_soft_cap");return new lt(0,m===4320?0:m,!1,"d",D)};
Mlw=function(D){var Q,m,P,W;return g.U(function(L){switch(L.C){case 1:return D.S.S&&typeof((Q=navigator.mediaCapabilities)==null?void 0:Q.decodingInfo)==="function"?g.I(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:m=g.T(D.S.videoInfos),P=m.next();case 3:if(P.done){L.Nv(0);break}W=P.value;return g.I(L,w_r(W),4);case 4:P=m.next(),L.Nv(3)}})};
D66=function(D,Q){if(!Q.videoData.C||D.V("html5_disable_performance_downgrade"))return!1;Date.now()-D.U>6E4&&(D.C=0);D.C++;D.U=Date.now();if(D.C!==4)return!1;cs7(D,Q.videoData.C);return!0};
m6_=function(D,Q,m,P){if(!Q||!m||!Q.videoData.C)return!1;var W=g.WF(D.SD.experiments,"html5_df_downgrade_thresh"),L=D.V("html5_log_media_perf_info");if(!((0,g.T3)()-D.B<5E3?0:L||W>0))return!1;var u=((0,g.T3)()-D.B)/1E3;D.B=(0,g.T3)();m=m.getVideoPlaybackQuality();if(!m)return!1;var t=m.droppedVideoFrames-D.N,z=m.totalVideoFrames-D.Z;D.N=m.droppedVideoFrames;D.Z=m.totalVideoFrames;var b=m.displayCompositedVideoFrames===0?0:m.displayCompositedVideoFrames||-1;L&&D.SD.xl()&&D.Ch.dc("ddf",{dr:m.droppedVideoFrames,
de:m.totalVideoFrames,comp:b});if(P)return D.S=0,!1;if((z-t)/u>D.j||!W||g.Nw(D.SD))return!1;D.S=(z>60?t/z:0)>W?D.S+1:0;if(D.S!==3)return!1;cs7(D,Q.videoData.C);D.Ch.dc("dfd",Object.assign({dr:m.droppedVideoFrames,de:m.totalVideoFrames},Qy$()));return!0};
cs7=function(D,Q){var m=Q.FT,P=Q.video.fps,W=Q.video.qualityOrdinal-1,L=D.T;Q=""+m+(P>49?"p60":P>32?"p48":"");m=sS(m,P,L);W>0&&(m=Math.min(m,W));if(!F1.has(Q)&&nx().includes(Q)){var u=m;m=h3();+m[Q]>0&&(u=Math.min(+m[Q],u));m[Q]!==u&&(m[Q]=u,g.wb("yt-player-performance-cap",m,2592E3))}else if(F1.has(Q)||L==null){a:{u=u===void 0?!0:u;P=nx().slice();if(u){if(P.includes(Q))break a;P.push(Q)}else{if(!P.includes(Q))break a;P.splice(P.indexOf(Q),1)}g.wb("yt-player-performance-cap-active-set",P,2592E3)}iC.set(Q,
m)}else F1.add(Q),L==null||L.set(Q,m);D.Ch.NA()};
P_4=function(D,Q){if(!Q.S.S)return D.J?new lt(0,360,!1,"b"):y7;for(var m=!1,P=!1,W=g.T(Q.S.videoInfos),L=W.next();!L.done;L=W.next())Sk(L.value)?m=!0:P=!0;m=m&&P;P=0;W=g.WF(D.SD.experiments,"html5_performance_cap_floor");W=D.SD.C?240:W;Q=g.T(Q.S.videoInfos);for(L=Q.next();!L.done;L=Q.next()){var u=L.value;if(!m||!Sk(u))if(L=sS(u.FT,u.video.fps,D.T),u=u.video.qualityOrdinal,Math.max(L,W)>=u){P=u;break}}return new lt(0,P,!1,"b")};
WUh=function(D,Q){var m=D.Ch.VL();return m.isInline()&&!Q.J2?new lt(0,480,!1,"v"):H1(Q)?y7:m.isBackground()&&FE()/1E3>60&&!g.Nw(D.SD)?new lt(0,360,!1,"v"):y7};
iA_=function(D,Q,m){if(D.SD.experiments.Mv("html5_disable_client_autonav_cap_for_onesie")&&Q.fetchType==="onesie"||g.Nw(D.SD)&&(F2(-1)>=1080||Q.osid))return y7;var P=g.WF(D.SD.experiments,"html5_autonav_quality_cap"),W=g.WF(D.SD.experiments,"html5_autonav_cap_idle_secs");return P&&Q.isAutonav&&FE()/1E3>W?(m&&(P=rs_(D,m,P)),new lt(0,P,!1,"e")):y7};
rs_=function(D,Q,m){if(D.V("html5_optimality_defaults_chooses_next_higher")&&m)for(D=Q.S.videoInfos,Q=1;Q<D.length;Q++)if(D[Q].video.qualityOrdinal<m)return D[Q-1].video.qualityOrdinal;return m};
sy7=function(D,Q){D.V("html5_log_media_perf_info")&&(D.Ch.dc("perfdb",Qy$()),D.Ch.dc("sessionperfdb",Object.fromEntries(iC.entries())),D.Ch.dc("playbackperfdb",Object.fromEntries(D.T.entries())),D.Ch.dc("hwc",{nch:navigator.hardwareConcurrency},!0),Q&&D.Ch.dc("mcdb",{itags:Q.S.videoInfos.filter(function(m){var P;return((P=m.C)==null?void 0:P.smooth)===!1}).map(function(m){return m.itag}).join("-")}))};
Qy$=function(){return Dz(h3(),function(D){return""+D})};
Ti=function(D){g.v.call(this);var Q=this;this.provider=D;this.S=-1;this.J=!1;this.C=-1;this.playerState=new g.HE;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.B=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.pJ(this.send,6E4,this);this.T=!1;this.jsErrorCount=0;this.It={Ee:function(){Q.Ee()}};
this.Ee=function(){Q.jsErrorCount++};
g.O(this,this.delay);window.addEventListener("error",this.Ee);window.addEventListener("unhandledrejection",this.Ee)};
LU7=function(D){D.S>=0||(D.provider.Ch.getVisibilityState()===3?D.J=!0:(D.S=g.PZ(D.provider),D.delay.start()))};
uLP=function(D){if(!(D.C<0)){var Q=g.PZ(D.provider),m=Q-D.B;D.B=Q;D.playerState.state===8?D.playTimeSecs+=m:D.playerState.isBuffering()&&!g.X(D.playerState,16)&&(D.rebufferTimeSecs+=m)}};
d67=function(D){var Q;switch((Q=D.SD.playerCanaryStage)==null?void 0:Q.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"}};
tKr=function(D){this.provider=D;this.U=!1;this.S=0;this.B=-1;this.n0=NaN;this.T=0;this.segments=[];this.N=this.J=0;this.previouslyEnded=!1;this.j=this.provider.Ch.getVolume();this.Z=this.provider.Ch.isMuted()?1:0;this.C=hs(this.provider)};
n7=function(D){D.C.startTime=D.T;D.C.endTime=D.S;var Q=!1;D.segments.length&&g.fV(D.segments).isEmpty()?(D.segments[D.segments.length-1].previouslyEnded&&(D.C.previouslyEnded=!0),D.segments[D.segments.length-1]=D.C,Q=!0):D.segments.length&&D.C.isEmpty()||(D.segments.push(D.C),Q=!0);Q?D.C.endTime===0&&(D.previouslyEnded=!1):D.C.previouslyEnded&&(D.previouslyEnded=!0);D.J+=D.S-D.T;D.C=hs(D.provider);D.C.previouslyEnded=D.previouslyEnded;D.previouslyEnded=!1;D.T=D.S};
bAn=function(D){zY4(D);D.N=g.zX(function(){D.update()},100);
D.n0=g.PZ(D.provider);D.C=hs(D.provider)};
zY4=function(D){g.qv(D.N);D.N=NaN};
qB4=function(D,Q,m){m-=D.n0;return Q===D.S&&m>.5};
C_k=function(D,Q,m,P){this.SD=Q;this.PY=m;this.segments=[];this.experimentIds=[];this.GO=this.Lj=this.isFinal=this.delayThresholdMet=this.Kj=this.Ze=this.autoplay=this.autonav=!1;this.pj="yt";this.N=[];this.U=this.j=null;this.sendVisitorIdHeader=this.l0=!1;this.Z=this.pageId="";this.J=m==="watchtime";this.T=m==="playback";this.QF=m==="atr";this.F2=m==="engage";this.sendVisitorIdHeader=!1;this.uri=this.QF?"/api/stats/"+m:"//"+Q.RH+"/api/stats/"+m;P&&(this.Lj=P.fs,P.rtn&&(this.U=P.rtn),this.J?(this.playerState=
P.state,P.rti>0&&(this.j=P.rti)):(this.ZD=P.mos,this.VA=P.volume,P.at&&(this.adType=P.at)),P.autonav&&(this.autonav=P.autonav),P.inview!=null&&(this.kJ=P.inview),P.size&&(this.dn=P.size),P.playerwidth&&(this.HO=P.playerwidth),P.playerheight&&(this.h8=P.playerheight));this.kB=g.o2(Q.S);this.Z=nD(Q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.cY=g.o2(Q.Kj);this.WO=Q.pj;this.experimentIds=Ysr(Q.experiments);this.Y9=Q.g2;this.pj=Q.TO;this.region=Q.region;
this.userAge=Q.userAge;this.oy=Q.R4;this.yn=FE();this.sendVisitorIdHeader=Q.sendVisitorIdHeader;this.t0=Q.V("vss_pings_using_networkless")||Q.V("kevlar_woffle");this.PO=Q.V("vss_final_ping_send_and_write");this.wc=Q.V("vss_use_send_and_write");this.pageId=Q.pageId;this.aF=Q.V("vss_playback_use_send_and_write");Q.livingRoomAppMode&&(this.livingRoomAppMode=Q.livingRoomAppMode);this.A8=Q.B&&Q.V("embeds_append_synth_ch_headers");g.W8(Q)&&(this.x9=Q.QF);g.sI(g.qS(Q))&&this.N.push(1);this.accessToken=g.qO(D);
D.IH[this.PY]?this.B=D.IH[this.PY]:D.IH.playback&&(this.B=D.IH.playback);this.adFormat=D.adFormat;this.adQueryId=D.adQueryId;this.autoplay=OE7(D);this.T&&(this.Ze=D.cj&&dr(D)==="adunit"?!0:!1);this.autonav=D.isAutonav||this.autonav;this.contentVideoId=zv(D);this.clientPlaybackNonce=D.clientPlaybackNonce;this.Kj=D.RI;D.N&&(this.Iy=D.N,this.hU=D.oz);D.mdxEnvironment&&(this.mdxEnvironment=D.mdxEnvironment);this.S=D.kB;this.gB=D.gB;D.C&&(this.g2=D.C.itag,D.B&&D.B.itag!==this.g2&&(this.jD=D.B.itag));D.S&&
v4(D.S)&&(this.offlineDownloadUserChoice="1");this.eventLabel=dr(D);this.GO=D.aF?!1:D.VA;this.zY=D.zB;if(Q=rw(D))this.Kd=Q;this.gi=D.m7;this.partnerId=D.partnerId;this.eventId=D.eventId;this.playlistId=D.t9||D.playlistId;this.H0=D.H0;this.Rc=D.Rc;this.sZ=D.sZ;this.e9=D.e9;this.subscribed=D.subscribed;this.videoId=D.videoId;this.videoMetadata=D.videoMetadata;this.visitorData=D.visitorData;this.osid=D.osid;this.QT=D.QT;this.referrer=D.referrer;this.Km=D.O2||D.Km;this.XT=D.K4;this.CD=D.CD;this.userGenderAge=
D.userGenderAge;this.oZ=D.oZ;this.embedsRct=D.embedsRct;this.embedsRctn=D.embedsRctn;g.W8(this.SD)&&D.mutedAutoplay&&(D.mutedAutoplayDurationMode===2&&D.limitedPlaybackDurationInSeconds===0&&D.endSeconds===0?this.N.push(7):this.N.push(2));D.isEmbedsShortsMode(new g.Ay(this.HO,this.h8),!!this.playlistId)&&this.N.push(3);g.ny(D)&&this.N.push(4);this.k9=D.tI;D.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=D.compositeLiveIngestionOffsetToken)};
o$$=function(D,Q){var m=D.sendVisitorIdHeader?D.visitorData:void 0;return g.UO(D.SD,D.accessToken).then(function(P){return zK7(D.uri,D.SD,D.pageId,m,P,Q,D.A8)})};
NQ4=function(D,Q){return function(){D.SD.V("html5_simplify_pings")?(D.S=D.u0,D.Xw=Q(),D.yn=0,D.send()):o$$(D).then(function(m){var P=fXP(D);P.cmt=P.len;P.lact="0";var W=Q().toFixed(3);P.rt=Number(W).toString();P=g.oz(D.uri,P);D.SD.V("vss_through_gel_double")&&VK7(P);D.t0?(m==null&&(m={}),D.wc?AE().sendAndWrite(P,m):AE().sendThenWrite(P,m)):m?g.ZG(P,m):g.Ro(P)})}};
fXP=function(D){var Q={ns:D.pj,el:D.eventLabel,cpn:D.clientPlaybackNonce,ver:2,cmt:D.C(D.S),fmt:D.g2,fs:D.Lj?"1":"0",rt:D.C(D.Xw),adformat:D.adFormat,content_v:D.contentVideoId,euri:D.WO,lact:D.yn,live:D.Kd,cl:(793736041).toString(),mos:D.ZD,state:D.playerState,volume:D.VA};D.subscribed&&(Q.subscribed="1");Object.assign(Q,D.kB);D.Z==="all"?Object.assign(Q,D.cY):D.Z==="once"&&D.T&&Object.assign(Q,D.cY);D.autoplay&&(Q.autoplay="1");D.Ze&&(Q.sautoplay="1");D.Kj&&(Q.dni="1");!D.J&&D.x9&&(Q.epm=yAk[D.x9]);
D.isFinal&&(Q["final"]="1");D.GO&&(Q.splay="1");D.gB&&(Q.delay=D.gB);D.Y9&&(Q.hl=D.Y9);D.region&&(Q.cr=D.region);D.userGenderAge&&(Q.uga=D.userGenderAge);D.userAge!==void 0&&D.oy&&(Q.uga=D.oy+D.userAge);D.u0!==void 0&&(Q.len=D.C(D.u0));!D.J&&D.experimentIds.length>0&&(Q.fexp=D.experimentIds.toString());D.U!==null&&(Q.rtn=D.C(D.U));D.Km&&(Q.feature=D.Km);D.Rc&&(Q.ctrl=D.Rc);D.sZ&&(Q.ytr=D.sZ);D.jD&&(Q.afmt=D.jD);D.offlineDownloadUserChoice&&(Q.ODUC=D.offlineDownloadUserChoice);D.TO&&(Q.lio=D.C(D.TO));
D.J?(Q.idpj=D.zY,Q.ldpj=D.gi,D.delayThresholdMet&&(Q.dtm="1"),D.j!=null&&(Q.rti=D.C(D.j)),D.oZ&&(Q.ald=D.oZ),D.compositeLiveIngestionOffsetToken&&(Q.clio=D.compositeLiveIngestionOffsetToken)):D.adType!==void 0&&(Q.at=D.adType);D.dn&&(D.T||D.J)&&(Q.size=D.dn);D.T&&D.N.length&&(Q.pbstyle=D.N.join(","));D.kJ!=null&&(D.T||D.J)&&(Q.inview=D.C(D.kJ));D.J&&(Q.volume=Ey(D,g.fk(D.segments,function(P){return P.volume})),Q.st=Ey(D,g.fk(D.segments,function(P){return P.startTime})),Q.et=Ey(D,g.fk(D.segments,function(P){return P.endTime})),
v9(D.segments,function(P){return P.playbackRate!==1})&&(Q.rate=Ey(D,g.fk(D.segments,function(P){return P.playbackRate}))),v9(D.segments,function(P){return P.S!=="-"})&&(Q.als=g.fk(D.segments,function(P){return P.S}).join(",")),v9(D.segments,function(P){return P.previouslyEnded})&&(Q.pe=g.fk(D.segments,function(P){return""+ +P.previouslyEnded}).join(",")));
Q.muted=Ey(D,g.fk(D.segments,function(P){return P.muted?1:0}));
v9(D.segments,function(P){return P.visibilityState!==0})&&(Q.vis=Ey(D,g.fk(D.segments,function(P){return P.visibilityState})));
v9(D.segments,function(P){return P.connectionType!==0})&&(Q.conn=Ey(D,g.fk(D.segments,function(P){return P.connectionType})));
v9(D.segments,function(P){return P.C!==0})&&(Q.blo=Ey(D,g.fk(D.segments,function(P){return P.C})));
v9(D.segments,function(P){return!!P.T})&&(Q.blo=g.fk(D.segments,function(P){return P.T}).join(","));
v9(D.segments,function(P){return!!P.compositeLiveStatusToken})&&(Q.cbs=g.fk(D.segments,function(P){return P.compositeLiveStatusToken}).join(","));
v9(D.segments,function(P){return P.B!=="-"})&&(Q.cc=g.fk(D.segments,function(P){return P.B}).join(","));
v9(D.segments,function(P){return P.clipId!=="-"})&&(Q.clipid=g.fk(D.segments,function(P){return P.clipId}).join(","));
if(v9(D.segments,function(P){return!!P.audioId})){var m="au";
D.T&&(m="au_d");Q[m]=g.fk(D.segments,function(P){return P.audioId}).join(",")}Pd()&&D.Iy&&(Q.ctt=D.Iy,Q.cttype=D.hU,Q.mdx_environment=D.mdxEnvironment);
D.F2&&(Q.etype=D.Kh!==void 0?D.Kh:0);D.XT&&(Q.uoo=D.XT);D.livingRoomAppMode&&D.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Q.clram=ZAw[D.livingRoomAppMode]||D.livingRoomAppMode);D.B?FUm(D,Q):(Q.docid=D.videoId,Q.referrer=D.referrer,Q.ei=D.eventId,Q.of=D.QT,Q.osid=D.osid,Q.vm=D.videoMetadata,D.adQueryId&&(Q.aqi=D.adQueryId),D.autonav&&(Q.autonav="1"),D.playlistId&&(Q.list=D.playlistId),D.e9&&(Q.ssrt="1"),D.CD&&(Q.upt=D.CD));D.T&&(D.embedsRct&&(Q.rct=D.embedsRct),D.embedsRctn&&(Q.rctn=
D.embedsRctn),D.compositeLiveIngestionOffsetToken&&(Q.clio=D.compositeLiveIngestionOffsetToken));D.k9&&(Q.host_cpn=D.k9);return Q};
FUm=function(D,Q){if(Q&&D.B){var m=new Set(["q","feature","mos"]),P=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),W=new Set(["aqi","autonav","list","ssrt","upt"]);D.B.ns==="3pp"&&(Q.ns="3pp");for(var L=g.T(Object.keys(D.B)),u=L.next();!u.done;u=L.next())u=u.value,P.has(u)||m.has(u)||W.has(u)&&!D.B[u]||(Q[u]=D.B[u])}};
Ey=function(D,Q){return g.fk(Q,D.C).join(",")};
VK7=function(D){D.indexOf("watchtime")!==-1&&g.WD("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:D}})};
TQr=function(D,Q){D.attestationResponse&&o$$(D).then(function(m){m=m||{};m.method="POST";m.postParams={atr:D.attestationResponse};D.t0?D.wc?AE().sendAndWrite(Q,m):AE().sendThenWrite(Q,m):g.ZG(Q,m)})};
gT=function(D){g.v.call(this);this.provider=D;this.N="paused";this.J=NaN;this.U=[10,10,10,40];this.j=this.Z=0;this.Iy=this.QF=this.Kh=this.TO=this.T=!1;this.C=this.B=NaN;this.logger=new g.EW("vss");this.S=new tKr(D)};
BQ_=function(D){if(!D.T){D.provider.videoData.ao===16623&&g.l4(Error("Playback for EmbedPage"));var Q=BZ(D,"playback");D.U=hYh(D);bAn(D.S);Q.U=wT(D);D.C>0&&(Q.S-=D.C);Q.send();if(D.provider.videoData.cE){Q=D.provider.SD;var m=D.provider.videoData,P={html5:"1",video_id:m.videoId,cpn:m.clientPlaybackNonce,ei:m.eventId,ptk:m.cE,oid:m.Op,ptchn:m.n9,pltype:m.uV,content_v:zv(m)};m.wQ&&Object.assign(P,{m:m.wQ});Q=g.oz(Q.LI+"ptracking",P);n$r(D,Q)}D.provider.videoData.gB||(E$r(D),g$j(D));D.T=!0;D=D.S;D.S=
D.ws();D.n0=g.PZ(D.provider);!(D.T===0&&D.S<5)&&D.S-D.T>2&&(D.T=D.S);D.U=!0}};
hYh=function(D){var Q=D.provider.videoData.zB,m=D.provider.videoData.m7,P=[10+Q,10,10,40+m-Q,40],W,L=(W=D.provider.videoData.getPlayerResponse())==null?void 0:W.playbackTracking,u=L==null?void 0:L.videostatsScheduledFlushWalltimeSeconds;W=L==null?void 0:L.videostatsDefaultFlushIntervalSeconds;if(!(u&&u.length>0&&W))return D.logger.info("Missing valid scheduled pings config "+u+" "+W),P;Q=[u[0]+Q].concat(g.on(u.slice(1).map(function(t,z){return t-u[z]})),[W+m-Q,
W]);return Q.some(function(t){return t<0})?(D.logger.S(347111855,"Neg vss scheduled pings "+u+" "+W),P):Q};
wT=function(D,Q){Q=Q===void 0?NaN:Q;var m=g.PZ(D.provider);Q=isNaN(Q)?m:Q;Q=Math.ceil(Q);var P=D.U[D.Z];D.Z+1<D.U.length&&D.Z++;var W=Q+P;D.J=g.tl(function(){if(!D.VF()){D.J=NaN;var L=wJ6(D),u=kk_(D,L);u.j=W;var t=D.j>1E3;!(L.length>1)&&L[0].isEmpty()||t||(u.U=wT(D,W));u.send();D.j++}},(W-m)*1E3);
return D.B=W};
ka=function(D){g.bS(D.J);D.J=NaN};
wJ6=function(D){D.S.update();D=D.S;D.segments.length&&D.S===D.T||n7(D);var Q=D.segments;D.segments=[];return Q};
BZ=function(D,Q){var m=JA_(D.provider);Object.assign(m,{state:D.N});Q=new C_k(D.provider.videoData,D.provider.SD,Q,m);Q.S=D.provider.Ch.ws();m=D.provider.videoData.clientPlaybackNonce;Q.S=D.provider.Ch.ai(m);D.provider.videoData.isLivePlayback||(Q.u0=D.provider.Ch.getDuration(m));D.provider.videoData.S&&(m=D.provider.videoData.S.hD(Q.S))&&(Q.TO=m-Q.S,D.provider.SD.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&U1(D.provider.videoData)&&(Q.S+=D.provider.Ch.m2(),Q.TO-=D.provider.Ch.m2()));Q.Xw=g.PZ(D.provider);
Q.segments=[hs(D.provider)];return Q};
kk_=function(D,Q){var m=BZ(D,"watchtime");lX7(D)&&(m.delayThresholdMet=!0,D.Kh=!0);if(D.C>0){for(var P=g.T(Q),W=P.next();!W.done;W=P.next())W=W.value,W.startTime-=D.C,W.endTime-=D.C;m.S-=D.C}else m.S=D.S.S;m.segments=Q;return m};
Js=function(D,Q){var m=IXk(D,!isNaN(D.B));Q&&(D.B=NaN);return m};
IXk=function(D,Q){var m=kk_(D,wJ6(D));!isNaN(D.B)&&Q&&(m.j=D.B);return m};
lX7=function(D){var Q;if(Q=D.provider.videoData.isLoaded()&&D.provider.videoData.gB&&D.T&&!D.Kh)Q=D.S,Q=Q.J+Q.ws()-Q.T>=D.provider.videoData.gB;return!!Q};
E$r=function(D){D.provider.videoData.youtubeRemarketingUrl&&!D.QF&&(n$r(D,D.provider.videoData.youtubeRemarketingUrl),D.QF=!0)};
g$j=function(D){D.provider.videoData.googleRemarketingUrl&&!D.Iy&&(n$r(D,D.provider.videoData.googleRemarketingUrl),D.Iy=!0)};
RY_=function(D){if(!D.VF()&&D.T){D.N="paused";var Q=Js(D);Q.isFinal=!0;Q.send();D.dispose()}};
U6n=function(D,Q){if(!D.VF())if(g.X(Q.state,2)||g.X(Q.state,512)){if(D.N="paused",g.oD(Q,2)||g.oD(Q,512))g.oD(Q,2)&&(D.S.previouslyEnded=!0),D.T&&(ka(D),Js(D).send(),D.B=NaN)}else if(g.X(Q.state,8)){D.N="playing";var m=D.T&&isNaN(D.J)?wT(D):NaN;if(!isNaN(m)&&(Cs(Q,64)<0||Cs(Q,512)<0)){var P=IXk(D,!1);P.U=m;P.send()}g.oD(Q,16)&&Q.state.seekSource===58&&(D.S.previouslyEnded=!0)}else D.N="paused"};
HA9=function(D,Q,m){if(!D.TO){m||(m=BZ(D,"atr"));m.attestationResponse=Q;try{m.send()}catch(P){if(P.message!=="Unknown Error")throw P;}D.TO=!0}};
n$r=function(D,Q){var m=D.provider.SD;g.UO(D.provider.SD,g.qO(D.provider.videoData)).then(function(P){var W=D.provider.SD.pageId,L=D.provider.SD.sendVisitorIdHeader?D.provider.videoData.visitorData:void 0,u=D.provider.SD.V("vss_pings_using_networkless")||D.provider.SD.V("kevlar_woffle"),t=D.provider.SD.V("allow_skip_networkless");P=zK7(Q,m,W,L,P);byh(Q,P,{token:D.provider.videoData.N,UV:D.provider.videoData.oz,mdxEnvironment:D.provider.videoData.mdxEnvironment},m,void 0,u&&!t,!1,!0)})};
KUn=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.C=0;this.compositeLiveStatusToken=this.T=void 0;this.volume=this.connectionType=0;this.muted=!1;this.S=this.clipId="-";this.previouslyEnded=!1};
lb=function(D,Q,m){this.videoData=D;this.SD=Q;this.Ch=m;this.S=void 0};
g.PZ=function(D){return jy7(D)()};
jy7=function(D){if(!D.S){var Q=g.zT(function(P){var W=(0,g.T3)();P&&W<=631152E6&&(D.Ch.dc("ytnerror",{issue:28799967,value:""+W}),W=(new Date).getTime()+2);return W},D.SD.V("html5_validate_yt_now")),m=Q();
D.S=function(){return Math.round(Q()-m)/1E3};
D.Ch.Vb()}return D.S};
JA_=function(D){var Q=D.Ch.wm()||{};Q.fs=D.Ch.gX();Q.volume=D.Ch.getVolume();Q.muted=D.Ch.isMuted()?1:0;Q.mos=Q.muted;Q.clipid=D.Ch.UF();var m;Q.playerheight=((m=D.Ch.getPlayerSize())==null?void 0:m.height)||0;var P;Q.playerwidth=((P=D.Ch.getPlayerSize())==null?void 0:P.width)||0;D=D.videoData;m={};D.C&&(m.fmt=D.C.itag,D.B&&(D.PY?D.B.itag!==D.C.itag:D.B.itag!=D.C.itag)&&(m.afmt=D.B.itag));m.ei=D.eventId;m.list=D.playlistId;m.cpn=D.clientPlaybackNonce;D.videoId&&(m.v=D.videoId);D.Ft&&(m.infringe=1);
(D.aF?0:D.VA)&&(m.splay=1);(P=rw(D))&&(m.live=P);D.cj&&(m.sautoplay=1);D.BB&&(m.autoplay=1);D.H0&&(m.sdetail=D.H0);D.partnerId&&(m.partnerid=D.partnerId);D.osid&&(m.osid=D.osid);D.Xo&&(m.cc=g.or7(D.Xo));return Object.assign(Q,m)};
hK7=function(D){var Q=Bi7();if(Q)return $6w[Q]||$6w.other;if(g.Nw(D.SD)){D=navigator.userAgent;if(/[Ww]ireless[)]/.test(D))return 3;if(/[Ww]ired[)]/.test(D))return 30}return 0};
hs=function(D){var Q=new KUn,m;Q.B=((m=JA_(D).cc)==null?void 0:m.toString())||"-";Q.playbackRate=D.Ch.getPlaybackRate();m=D.Ch.getVisibilityState();m!==0&&(Q.visibilityState=m);D.SD.XT&&(Q.C=1);Q.T=D.videoData.AE;Q.compositeLiveStatusToken=D.videoData.compositeLiveStatusToken;m=D.Ch.getAudioTrack();m.WY&&m.WY.id&&m.WY.id!=="und"&&(Q.audioId=m.WY.id);Q.connectionType=hK7(D);Q.volume=D.Ch.getVolume();Q.muted=D.Ch.isMuted();Q.clipId=D.Ch.UF()||"-";Q.S=D.videoData.NI||"-";return Q};
g.IJ=function(D,Q){g.v.call(this);var m=this;this.provider=D;this.T=new Map;this.fn=new g.HE;this.It={mrF:function(){return m.qoe},
FWq:function(){return m.S},
thz:function(){return m.C}};
this.provider.videoData.EC()&&!this.provider.videoData.Ig&&(this.S=new gT(this.provider),this.S.C=0,g.O(this,this.S),this.qoe=new g.QU(this.provider,Q),g.O(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.B1=this.provider.videoData.clientPlaybackNonce)&&this.T.set(this.B1,this.S));if(D.SD.playerCanaryState==="canary"||D.SD.playerCanaryState==="holdback")this.C=new Ti(this.provider),g.O(this,this.C)};
eYu=function(D){D.C&&LU7(D.C);D.qoe&&UO4(D.qoe)};
v$w=function(D){if(D.qoe){D=D.qoe;for(var Q=D.provider.videoData,m=D.provider.SD,P=g.T(m.Ad),W=P.next();!W.done;W=P.next())ib(D,W.value);if(D.provider.V("html5_enable_qoe_cat_list"))for(P=g.T(Q.RH),W=P.next();!W.done;W=P.next())ib(D,W.value);else Q.Ad&&ib(D,D.provider.videoData.Ad);Q.VX()&&(P=Q.S,v1(Q)&&ib(D,"manifestless"),P&&MA(P)&&ib(D,"live-segment-"+MA(P).toFixed(1)));H1(Q)?ib(D,"sabr"):D.yj(ab(Q));if(Cy(Q)||Q.xB())Q.xB()&&ib(D,"ssa"),ib(D,"lifa");U1(Q)&&ib(D,"cdm");Q.gatewayExperimentGroup&&
(P=Q.gatewayExperimentGroup,P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?P="spkadtrt":P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(P="spkadctrl"),ib(D,P));m.TO!=="yt"&&D.S.set("len",[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!fy(Q)&&D.vR(!0);m.xl()&&(Q=Zyj())&&D.dc("cblt",{m:Q});if(m.V("html5_log_screen_diagonal")){m=D.dc;var L;Q=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;m.call(D,"cbltdiag",{v:Q})}}};
OAm=function(D,Q){D.S&&(D=D.S,Q===58?D.S.update():D.T&&(ka(D),Js(D).send(),D.B=NaN))};
YBu=function(D,Q){if(g.oD(Q,1024)||g.oD(Q,512)||g.oD(Q,4)){if(D.C){var m=D.C;m.C>=0||(m.S=-1,m.delay.stop())}D.qoe&&(m=D.qoe,m.U||(m.T=-1))}if(D.provider.videoData.enableServerStitchedDai&&D.B1){var P;(P=D.T.get(D.B1))==null||U6n(P,Q)}else D.S&&U6n(D.S,Q);if(D.qoe){P=D.qoe;m=Q.state;var W=g.PZ(P.provider),L=P.getPlayerState(m),u=m.seekSource||void 0;if(L!==P.fn){P.Kh||W<P.C||(P.fn==="PL"?P.playTimeSecs+=W-P.C:P.fn==="B"&&P.isBuffering&&(P.isBuffering=!1,P.rebufferTimeSecs+=W-P.TO,!P.gB&&P.rebufferTimeSecs>=
10&&P.playTimeSecs<=180&&(P.S.set("qoealert",["1"]),P.gB=!0)),L!=="B"||P.fn!=="PL"&&P.fn!=="PB"||(P.isBuffering=!0),P.C=W);P.fn==="PL"&&(L==="B"||L==="S")||P.provider.SD.xl()?WZ(P,W):(P.hU||L!=="PL"||(P.hU=!0,nlk(P,W,P.provider.Ch.zZ())),Tr_(P,W));L==="PL"&&g.xG(P.Xw);var t=[L];L==="S"&&u&&t.push("ss."+u);g.Du(P,W,"vps",t);P.fn=L;P.TO=W;P.C=W;P.B=!0}L=m.YP;g.X(m,128)&&L&&(L.Zs=L.Zs||"",kvr(P,W,L.errorCode,L.Wl,L.Zs));(g.X(m,2)||g.X(m,128))&&P.reportStats(W);m.isPlaying()&&!P.U&&(P.T>=0&&P.S.set("user_intent",
[P.T.toString()]),P.U=!0);Brw(P)}D.C&&(D=D.C,uLP(D),D.playerState=Q.state,D.C>=0&&g.oD(Q,16)&&D.seekCount++,Q.state.isError()&&D.send())};
aXn=function(D){D.C&&D.C.send();if(D.qoe){var Q=D.qoe;if(Q.B){Q.fn==="PL"&&(Q.fn="N");var m=g.PZ(Q.provider);g.Du(Q,m,"vps",[Q.fn]);Q.U||(Q.T>=0&&Q.S.set("user_intent",[Q.T.toString()]),Q.U=!0);Q.provider.SD.xl()&&Q.dc("finalized",{});Q.t0=!0;Q.reportStats(m)}}if(D.provider.videoData.enableServerStitchedDai)for(Q=g.T(D.T.values()),m=Q.next();!m.done;m=Q.next())RY_(m.value);else D.S&&RY_(D.S);D.dispose()};
AAj=function(D,Q,m){switch(Q){case "M":var P;(P=D.qoe)==null||Hy$(P,Q,m);break;case "A":var W;(W=D.qoe)==null||Hy$(W,Q)}};
pJ7=function(D,Q){D.S&&HA9(D.S,Q)};
x6_=function(D){if(!D.S)return null;var Q=BZ(D.S,"atr");return function(m){D.S&&HA9(D.S,m,Q)}};
XJ4=function(D,Q,m,P){m.adFormat=m.A8;var W=Q.Ch;Q=new gT(new lb(m,Q.SD,{getDuration:function(){return m.lengthSeconds},
getCurrentTime:function(){return W.getCurrentTime()},
ws:function(){return W.ws()},
ai:function(){return W.ai()},
zZ:function(){return W.zZ()},
getPlayerSize:function(){return W.getPlayerSize()},
getAudioTrack:function(){return m.getAudioTrack()},
getPlaybackRate:function(){return W.getPlaybackRate()},
W6:function(){return W.W6()},
getVisibilityState:function(){return W.getVisibilityState()},
Dr:function(){return W.Dr()},
wm:function(){return W.wm()},
getVolume:function(){return W.getVolume()},
isMuted:function(){return W.isMuted()},
gX:function(){return W.gX()},
UF:function(){return W.UF()},
getProximaLatencyPreference:function(){return W.getProximaLatencyPreference()},
Vb:function(){W.Vb()},
dc:function(L,u){W.dc(L,u)},
A6:function(){return W.A6()},
m2:function(){return W.m2()}}));
Q.C=P;g.O(D,Q);return Q};
SBP=function(){this.o2=0;this.B=this.T=this.MW=this.mB=this.C=NaN;this.S={};this.bandwidthEstimate=NaN};
rA7=function(){this.S=g.Sq;this.array=[]};
MKm=function(D,Q,m){var P=[];for(Q=Gku(D,Q);Q<D.array.length;++Q){var W=D.array[Q];(W.end<=m||W.contains(m))&&P.push(W);if(W.start>m)break}return P};
RJ=function(D,Q){var m=[];D=g.T(D.array);for(var P=D.next();!P.done&&!(P=P.value,P.contains(Q)&&m.push(P),P.start>Q);P=D.next());return m};
cA$=function(D){return D.array.slice(Gku(D,0x7ffffffffffff),D.array.length)};
Gku=function(D,Q){D=Yk(D.array,function(m){return Q-m.start||1});
return D<0?-(D+1):D};
DH9=function(D,Q){var m=NaN;D=g.T(D.array);for(var P=D.next();!P.done;P=D.next())if(P=P.value,P.contains(Q)&&(isNaN(m)||P.end<m)&&(m=P.end),P.start>Q&&(isNaN(m)||P.start<m)){m=P.start;break}return m};
QYr=function(D,Q){D.array=D.array.filter(function(m){return!Q.has(m)})};
g.Uy=function(D,Q){g.v.call(this);this.Ch=D;this.U=Q;this.T=NaN;this.J=this.N=this.started=!1;this.C=[];this.Z=new g.pJ(this.sync,250,this);g.O(this,this.Z);this.B=new g.pJ(this.sync,0,this);g.O(this,this.B);this.S=new rA7};
mHk=function(D){D.started=!0;D.sync()};
PV_=function(D,Q){D.started&&(D.sync(),g.X(Q.oldState,16)&&(Q=DH9(D.S,Math.max(D.T-2E3,0)),!isNaN(Q)&&Q<0x7ffffffffffff&&D.B.start()))};
Wn_=function(D,Q){var m=[];if(!Q.length)return m;for(var P=0;P<Q.length;P++){var W=Q[P];W.active&&D.C.indexOf(W)===-1&&(D.C.push(W),m.push([1,W]))}return m};
iWj=function(D,Q){var m=[];if(!Q.length)return m;Q.sort(g.Sq);Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())P=P.value,D.C.splice(D.C.indexOf(P),1),m.push([2,P]);return m};
uen=function(D){if(D.started&&!D.VF()){D.B.stop();var Q=D.Ch.getPlayerState();g.X(Q,32)&&D.Z.start();for(var m=sY$(D),P=D.isEnded(Q,m),W=[],L=[],u=g.T(D.C),t=u.next();!t.done;t=u.next())t=t.value,t.active&&(P?t.end<0x8000000000000:!t.contains(m))&&L.push(t);W=W.concat(iWj(D,L));u=L=null;P?(Q=RJ(D.S,0x7ffffffffffff),L=Q.filter(function(z){return z.end<0x8000000000000}),u=cA$(D.S)):Q=D.T<=m&&YS(Q)?MKm(D.S,D.T,m):RJ(D.S,m);
W=W.concat(Wn_(D,Q));L&&(W=W.concat(iWj(D,L)));u&&(W=W.concat(Wn_(D,u)));D.T=m;Lnu(D,W)}};
Lnu=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=m[1];m[0]===1?D.U(g.r5(P.namespace),P):D.U(g.GR(P.namespace),P)}};
sY$=function(D){return g.X(D.Ch.getPlayerState(),2)?0x8000000000000:D.Ch.getCurrentTime()*1E3};
dHm=function(D){this.SD=D;this.T=this.C=this.mediaTime=NaN;this.B=this.S=!1;this.J=.001;g.Nw(D)&&(this.J=.01)};
HZ=function(D,Q){return Q>D.mediaTime+D.J&&Q<D.mediaTime+5};
acn=function(D,Q,m,P,W){if(P=P>1)D.B=!0;if((W===void 0?0:W)||isNaN(D.C))D.C=Q;if(D.S)Q!==D.mediaTime&&(D.S=!1);else if(Q>0&&D.mediaTime===Q){W=1500;if(D.SD.V("html5_buffer_underrun_transition_fix")){W=g.WF(D.SD.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.WF(D.SD.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");W=W>0&&L>0&&Math.abs(Q-D.C)<W?L:1500}return m-D.T>(P||!D.B?W:400)}D.mediaTime=Q;D.T=m;return!1};
tMw=function(D,Q){this.videoData=D;this.S=Q};
zGh=function(D,Q,m){return Q.X8(m).then(function(){return Bd(new tMw(Q,Q.T))},function(P){P instanceof Error&&g.l4(P);
var W=FO('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=hL('audio/mp4; codecs="mp4a.40.2"'),u=W||L,t=Q.isLivePlayback&&!g.BA(D.J,!0);P="fmt.noneavailable";t?P="html5.unsupportedlive":u||(P="html5.missingapi");u=t||!u?2:1;W={buildRej:"1",a:Q.rC(),d:!!Q.pj,drm:Q.qJ(),f18:Q.ZD.indexOf("itag=18")>=0,c18:W};Q.S&&(Q.qJ()?(W.f142=!!Q.S.S["142"],W.f149=!!Q.S.S["149"],W.f279=!!Q.S.S["279"]):(W.f133=!!Q.S.S["133"],W.f140=!!Q.S.S["140"],W.f242=!!Q.S.S["242"]),W.cAAC=L,W.cAVC=hL('video/mp4; codecs="avc1.42001E"'),
W.cVP9=hL('video/webm; codecs="vp9"'));Q.J&&(W.drmsys=Q.J.keySystem,L=0,Q.J.S&&(L=Object.keys(Q.J.S).length),W.drmst=L);return new g.VJ(P,W,u)})};
K7=function(D){this.data=window.Float32Array?new Float32Array(D):Array(D);this.C=this.S=D-1};
bWh=function(D){return D.data[D.S]||0};
qMr=function(D){this.J=D;this.T=this.C=0;this.B=new K7(50)};
$a=function(D,Q,m){g.iR.call(this);this.videoData=D;this.experiments=Q;this.J=m;this.C=[];this.jw=0;this.T=!0;this.B=!1;this.N=0;m=new CVh;D.latencyClass==="ULTRALOW"&&(m.N=!1);D.oy?m.T=3:g.Qw(D)&&(m.T=2);D.latencyClass==="NORMAL"&&(m.J=!0);m.TO=H1(D)&&Q.Mv("html5_refactor_decouple_liveness");g.WF(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.WF(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||D.latencyClass!=="LOW"&&D.latencyClass!=="ULTRALOW"||(m.J=!0);var P=
g.WF(Q,"html5_liveness_drift_proxima_override");if(ab(D)!==0&&P){m.S=P;var W;((W=D.S)==null?0:i2w(W))&&m.S--}H1(D)&&Q.Mv("html5_sabr_parse_live_metadata_playback_boundaries")&&(m.Iy=!0);if(g.j8("trident/")||g.j8("edge/"))W=g.WF(Q,"html5_platform_minimum_readahead_seconds")||3,m.B=Math.max(m.B,W);g.WF(Q,"html5_minimum_readahead_seconds")&&(m.B=g.WF(Q,"html5_minimum_readahead_seconds"));g.WF(Q,"html5_maximum_readahead_seconds")&&(m.j=g.WF(Q,"html5_maximum_readahead_seconds"));Q.Mv("html5_force_adaptive_readahead")&&
(m.N=!0);if(W=g.WF(Q,"html5_liveness_drift_chunk_override"))m.S=W;O1(D)&&(m.S=(m.S+1)/5,D.latencyClass==="LOW"&&(m.S*=2));!H1(D)||D.latencyClass!=="ULTRALOW"&&D.latencyClass!=="LOW"||(m.Z=g.WF(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,m.U=g.WF(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=m;this.U=this.policy.T!==1;this.S=jl(this,o04(this,isNaN(D.liveChunkReadahead)?3:D.liveChunkReadahead,D))};
fT9=function(D,Q){if(Q)return Q=D.videoData,Q=o04(D,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q),jl(D,Q);if(D.C.length){if(Math.min.apply(null,D.C)>1)return jl(D,D.S-1);if(D.policy.N)return jl(D,D.S+1)}return D.S};
VM6=function(D,Q){if(!D.C.length)return!1;var m=D.S;D.S=fT9(D,Q===void 0?!1:Q);if(Q=m!==D.S)D.C=[],D.jw=0;return Q};
vZ=function(D,Q){return Q>=D.UY()-el(D)};
NHn=function(D,Q,m){Q=vZ(D,Q);m||Q?Q&&(D.T=!0):D.T=!1;D.U=D.policy.T===2||D.policy.T===3&&D.T};
yD9=function(D,Q){Q=vZ(D,Q);D.B!==Q&&D.publish("livestatusshift",Q);D.B=Q};
el=function(D){var Q=D.policy.S;D.B||(Q=Math.max(Q-1,0));return Q*Oy(D)};
o04=function(D,Q,m){m.oy&&Q--;O1(m)&&(Q=1);if(ab(m)!==0&&(D=g.WF(D.experiments,"html5_live_chunk_readahead_proxima_override"))){Q=D;var P;((P=m.S)==null?0:i2w(P))&&Q++}return Q};
Oy=function(D){return D.videoData.S?MA(D.videoData.S)||5:5};
jl=function(D,Q){Q=Math.max(Math.max(1,Math.ceil(D.policy.B/Oy(D))),Q);return Math.min(Math.min(8,Math.floor(D.policy.j/Oy(D))),Q)};
CVh=function(){this.B=0;this.j=Infinity;this.N=!0;this.C=this.S=2;this.T=1;this.J=!1;this.U=10;this.Iy=!1;this.Z=1;this.TO=!1};
As=function(D){g.v.call(this);this.Ch=D;this.S=0;this.C=null;this.N=this.B=0;this.T={};this.SD=this.Ch.G();this.J=new g.pJ(this.UC,1E3,this);this.GO=Ya(this,"html5_seek_timeout_delay_ms");this.Kh=Ya(this,"html5_long_rebuffer_threshold_ms");this.l0=Ya(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.wc=Ya(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.x9=Ya(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Kj=Ya(this,"html5_unreported_seek_reseek_delay_ms",
"html5_unreported_seek_reseek_cfl");this.TO=Ya(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Iy=new aJ(2E4);this.u0=Ya(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Y9=Ya(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.k9=Ya(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.t0=Ya(this,"html5_reseek_after_time_jump_delay_ms",
"html5_reseek_after_time_jump_cfl");this.Z=Ya(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.j=Ya(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.XT=Ya(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.oy=Ya(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.U=Ya(this,"html5_ads_preroll_lock_timeout_delay_ms",
"html5_ads_preroll_lock_timeout_cfl");this.jD=new aJ(g.WF(this.SD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.SD.V("html5_report_slow_ads_as_error"));this.gB=new aJ(g.WF(this.SD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.SD.V("html5_skip_slow_buffering_ad"));this.hU=Ya(this,"html5_slow_start_timeout_delay_ms");this.QF=Ya(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.O(this,this.J)};
Ya=function(D,Q,m){m=m===void 0?null:m;var P=P===void 0?0:P;return new aJ(g.WF(D.SD.experiments,Q)||P,m?D.SD.V(m):!1)};
ZWj=function(D,Q){D.S=Q};
p7=function(D,Q,m,P,W,L,u,t){Q?Q.test(m)?(D.Hs(W,Q,u),Q.N||L()):(!Q.C||Q.B?m=!1:(m=(0,g.T3)(),P?Q.S||(Q.S=m):Q.S=0,L=!P&&m-Q.C>3E4,m=Q.S&&m-Q.S>1E3||L?Q.B=!0:!1),m&&(t=Object.assign({},D.yX(Q),t),t.wn=u,t.we=W,t.wsuc=P,D.Ch.dc("workaroundReport",t),P&&(Q.reset(),D.T[W]=!1))):D.Ch.Qi("auth",2,"BROWSER_OR_EXTENSION_ERROR",ft({source:"watchdog",name:u}))};
aJ=function(D,Q){this.N=Q===void 0?!1:Q;this.S=this.C=this.T=this.startTimestamp=0;this.B=!1;this.J=Math.ceil(D/1E3)};
n06=function(D){g.v.call(this);var Q=this;this.Ch=D;this.Z=this.S=this.loader=this.mediaElement=this.playbackData=null;this.T=0;this.J=this.Kh=this.B=null;this.t0=!1;this.hU=0;this.Iy=!1;this.timestampOffset=0;this.j=!0;this.Y9=0;this.l0=this.cY=!1;this.U=0;this.oy=!1;this.QF=0;this.It={Vk:function(m){return Q.Vk(m)}};
this.SD=this.Ch.G();this.videoData=this.Ch.getVideoData();this.policy=new Fnh;this.TO=new As(this.Ch);this.jD=this.k9=this.x9=this.N=this.C=NaN;this.u0=new g.pJ(function(){THk(Q,!1)},2E3);
this.Kj=new g.pJ(function(){xa(Q)});
this.GO=new g.pJ(function(){hG_(Q,{})});
this.gB=NaN;this.wc=new g.pJ(function(){var m=Q.SD.HO;m.S+=1E4/36E5;m.S-m.T>1/6&&(nw7(m),m.T=m.S);Q.wc.start()},1E4);
g.O(this,this.TO);g.O(this,this.u0);g.O(this,this.GO);g.O(this,this.Kj);g.O(this,this.wc)};
BHw=function(D,Q){D.playbackData=Q;D.videoData.isLivePlayback&&(D.Z=new qMr(function(){a:{if(D.playbackData&&D.playbackData.S.S){if(v1(D.videoData)&&D.loader){var P=D.loader.rj.S1()||0;break a}if(D.videoData.S){P=D.videoData.S.wc;break a}}P=0}return P}),D.S=new $a(D.videoData,D.SD.experiments,function(){return D.Bs(!0)}));
if(X1(D.Ch)){var m;(m=D.videoData.Oj)!=null&&m.JC||(Q=E0w(D),Q.j7?(H1(D.videoData)&&D.bR(Q.j7,Q.startSeconds),D.T=Q.startSeconds):Q.startSeconds>0&&D.seekTo(Q.startSeconds,{cn:"seektimeline_startPlayback",seekSource:15}));D.j=!1}else g0w(D)||(D.T=D.T||D.videoData.startSeconds||0,D.videoData.isLivePlayback||(Q=D.Ch.videoData.Bs(),D.T>Q&&(D.V("html5_sabr_log_invalid_sabr_current_time")&&D.Ch.dc("invalidSabrCmtStart",{rt:D.T,mst:Q}),D.V("html5_sabr_vod_invalid_start_time_fallback")&&(D.T=0))))};
kI9=function(D,Q){(D.loader=Q)?wC4(D,!0):Sl(D)};
JD$=function(D,Q){g.xG(D.TO.J);D.V("html5_exponential_memory_for_sticky")&&(Q.state.isPlaying()?g.xG(D.wc):D.wc.stop());if(D.mediaElement)if(Q.oldState.state===8&&YS(Q.state)&&Q.state.isBuffering()){Q=D.mediaElement.getCurrentTime();var m=D.mediaElement.jb();var P=D.V("manifestless_post_live_ufph")||D.V("manifestless_post_live")?t$(m,Math.max(Q-3.5,0)):t$(m,Q-3.5);P>=0&&Q>m.end(P)-1.1&&P+1<m.length&&m.start(P+1)-m.end(P)<11&&(P=m.start(P+1)+.2+D.m2(),Math.abs(D.gB-P)<.2||(D.Ch.dc("seekover",{b:dM(m,
"_"),cmt:Q}),D.gB=P,D.seekTo(P,{ZA:!0,cn:"seektimeline_postLiveDisc"})))}else((m=Q.state)==null?0:m.state===8)&&!D.l0&&(D.videoData.limitedPlaybackDurationInSeconds>0?(rT(D.Ch,D.getCurrentTime()+D.videoData.limitedPlaybackDurationInSeconds),D.l0=!0):D.videoData.isLivePlayback&&D.videoData.endSeconds>0&&(rT(D.Ch,D.getCurrentTime()+D.videoData.endSeconds),D.l0=!0))};
IT9=function(D,Q){var m=D.getCurrentTime(),P=D.isAtLiveHead(m);if(D.Z&&P){var W=D.Z;if(W.S&&!(m>=W.C&&m<W.T)){var L=W.S.JY(m);L!==-1&&(W.C=W.S.getStartTime(L),W.T=W.C+W.S.getDuration(L),L=(0,g.T3)()/1E3-W.S.hD(L),L-=W.J(),W.B.add(L))}}D.S&&(P&&(W=D.S,L=lTm(D),W.jw++,W.jw<3||Date.now()-W.N<3E3||(W.N=Date.now(),W.C.push(L),W.C.length>50&&W.C.shift())),W=D.S,NHn(W,m,Q===void 0?!0:Q),yD9(W,m),Q&&THk(D,!0));P!==D.cY&&(Q=D.getCurrentTime()-D.jD<=500,m=D.hU>=1E3,Q||m||(Q=D.Ch.qB,Q.qoe&&(Q=Q.qoe,m=g.PZ(Q.provider),
g.Du(Q,m,"lh",[P?"1":"0"])),D.cY=P,D.hU++,D.jD=D.getCurrentTime()))};
THk=function(D,Q){if(D.S){var m=D.S;var P=D.getCurrentTime(),W=m.UY();var L=m.policy.C;m.B||(L=Math.max(L-1,0));L*=Oy(m);P>=W-L||!m.Bj()?m=P<m.videoData.TY()?Math.min(m.videoData.TY()+10,m.UY()):NaN:(m.policy.J&&(m.policy.TO?(m.policy.C=Math.min(m.policy.C+m.policy.Z,m.policy.U),m.policy.S=Math.min(m.policy.S+1,10)):(m.policy.C=Math.max(m.policy.C+1,m.policy.U),m.policy.S=Math.max(m.policy.S+1,10))),m=Infinity);if(!isNaN(m)){if(D.loader&&Q&&(Q=D.u0.isActive(),P=D.S.UY(),(P=ILu(D.loader,P-D.m2()))&&
!Q)){D.u0.start();D.Ch.dc("inBufferPtl",{cmt:D.getCurrentTime(),seekTo:P+D.m2()});D.V("html5_report_peg_to_live_seek_source")?D.seekTo(P+D.m2(),{cn:"seektimeline_inBufferSeek",seekSource:34}):D.seekTo(P+D.m2(),{cn:"seektimeline_inBufferSeek"});return}D.V("html5_report_peg_to_live_seek_source")?D.seekTo(m,{cn:"seektimeline_pegToLive",seekSource:34}):D.seekTo(m,{cn:"seektimeline_pegToLive"})}}};
wC4=function(D,Q){if(D.S&&D.loader){var m=!1;Q?m=!0:D.videoData.isLowLatencyLiveStream||D.videoData.latencyClass==="LOW"||D.videoData.latencyClass==="ULTRALOW"?m=VM6(D.S):D.oy&&(D.oy=!1,m=VM6(D.S,!0));m&&(Q=D.Ch.qB,m=D.S,m=Oy(m)*m.S,Q.qoe&&(Q=Q.qoe,g.Du(Q,g.PZ(Q.provider),"lra",[m]),Q.dc("live-readahead-seconds",{v:m})));Q=D.loader;m=D.S.S;D=D.S;D=(D.S-1+D.policy.S)*Oy(D);var P=NaN,W=Q.Ze;W===2||W===-1?O1(Q.Ch.getVideoData())&&(P=Q.policy.tM):--m;m=Math.max(m,0);W=Q.J;W.e1=m;W.j=P;Q.U&&(Q.U.TO=D)}};
RG$=function(D,Q){D.T=Q};
hG_=function(D,Q){D.t0=!0;D.V("html5_use_centralized_player_time")&&(D.C=D.N,D.T=D.C,D.N=NaN);UHr(D,Q)};
UHr=function(D,Q){HW9(D,Q).then(void 0,function(){Sl(D)});
Kn9(D,Q).then(function(m){jYk(D,m)},function(){Sl(D)});
D.Ch.yY(Q);if(D.SD.xl()||$H9(D))Q=D.yX(),Q["native"]=""+ +D.Iy,Q.tgt=""+D.C,Q.otgt=""+(D.C+D.timestampOffset),Q.maxst=""+D.Bs(),D.S&&D.V("html5_high_res_seek_logging")&&(Q.tht=""+D.S.J(),Q.ht=""+D.S.UY(),Q.adft=""+el(D.S)),D.V("html5_sabr_parse_live_metadata_playback_boundaries")&&D.videoData.S&&H1(D.videoData)&&(Q.minst=""+D.videoData.S.JP,Q.cminst=""+(D.videoData.S.TY()+D.timestampOffset),Q.maxst=""+D.videoData.S.Sg,Q.hts=""+D.videoData.S.Kh,Q.cmaxst=""+(D.videoData.S.Bs()+D.timestampOffset)),D.Ch.dc("startSeek",
Q)};
HW9=function(D,Q){D.Kh||(D.loader?isFinite(D.C)?D.Kh=D.loader.seek(D.C-D.timestampOffset,Q):(ej(D.videoData),D.V("html5_unified_live_latency_reporting")&&(D.Ch.nH=0),D.Kh=tB(D.loader),yw(D.videoData)||(D.C=D.loader.getCurrentTime()+D.timestampOffset)):D.Kh=g.k7(D.C-D.timestampOffset));return D.Kh};
Kn9=function(D,Q){var m=D.B;m||(D.B=new kS,m=D.B,xa(D,Q));return m};
Gi=function(D,Q,m){if(isNaN(Q))return NaN;var P=D.TY();m=D.Bs(m);return D.V("html5_clamp_invalid_seek_to_min_seekable_time")&&!D.videoData.isLivePlayback&&Q>m+1&&Q<Infinity?(D.SD.xl()&&D.Ch.dc("clampInvalidSeek",{tgt:""+Q,maxst:""+m}),P):g.eZ(Q,P,m)};
xa=function(D,Q){if(D.B)if(D.videoData.isLivePlayback&&D.videoData.T&&!D.videoData.T.S&&D.mediaElement&&D.mediaElement.Bi()>0&&ls(D.mediaElement)>0&&(D.C=Gi(D,D.C,!1)),Q=D.V("html5_pseudogapless_shorts_seek_to_next_start")&&(Q==null?void 0:Q.seekSource)===60,!D.mediaElement||!eG6(D,Q))D.Kj.start(750);else if(!isNaN(D.C)&&isFinite(D.C)&&(Q=D.k9-(D.C-D.timestampOffset),!(Q===0||Math.abs(Q)<.005)))if(Q=D.mediaElement.getCurrentTime()-D.C,Math.abs(Q)<=D.Y9||Math.abs(Q)<.005)v0k(D);else{if(D.videoData.oU)D.videoData.oU=
!1;else if(!ej(D.videoData)&&D.C>=D.Bs()-.1){D.C=D.Bs();D.B.resolve(D.Bs());D.SD.xl()&&D.Ch.dc("setEndedInSeek",{tgt:""+D.C,maxst:""+D.Bs()});D.Ch.Ao();return}try{var m=D.C-D.timestampOffset;D.mediaElement.seekTo(m);D.TO.S=m;D.k9=m;D.T=D.C;D.Iy=!1}catch(P){}}};
eG6=function(D,Q){Q=Q===void 0?!1:Q;if(!D.mediaElement||D.mediaElement.Bi()===0||D.mediaElement.hasError())return!1;var m=D.mediaElement.getCurrentTime()>0;return D.videoData.T&&D.videoData.T.S||D.videoData.isLivePlayback||!D.videoData.qJ()?D.C>=0&&!Q&&(Q=D.mediaElement.Yr(),Q.length||!m)?z5(Q,D.C-D.timestampOffset):m:m};
v0k=function(D){D.B&&(D.B.resolve(D.mediaElement.getCurrentTime()),D.TO.C=null)};
jYk=function(D,Q){D.J&&(D.J.resolve(Q),D.Ch.xg(),D.SD.xl()||$H9(D))&&(Q=D.yX(),Q["native"]=""+ +D.Iy,Q.otgt=""+(D.C+D.timestampOffset),D.Ch.dc("seekEnd",Q));Sl(D)};
Sl=function(D){D.C=NaN;D.N=NaN;D.k9=NaN;D.B=null;D.Kh=null;D.J=null;D.t0=!1;D.Iy=!1;D.Y9=0;D.u0.stop();D.GO.stop()};
YM6=function(D,Q){var m=D.mediaElement,P=Q.type;switch(P){case "seeking":var W=m.getCurrentTime()+D.timestampOffset;if(!D.B||D.Iy&&W!==D.C){D.B=new kS;D.B.then(function(u){jYk(D,u)},function(){Sl(D)});
if(D.videoData.isAd()){var L;mTn({adCpn:D.videoData.clientPlaybackNonce,contentCpn:(L=D.videoData.tI)!=null?L:""},Q.S)}D.k9=W;ZWj(D.TO,m.getCurrentTime());D.seekTo(W,{seekSource:104,cn:"seektimeline_mediaElementEvent"});D.Iy=!0}break;case "seeked":v0k(D);break;case "loadedmetadata":X1(D.Ch)||OW9(D);xa(D);break;case "progress":xa(D);break;case "pause":D.U=D.getCurrentTime()}D.U&&((P==="play"||P==="playing"||P==="timeupdate"||P==="progress")&&D.getCurrentTime()-D.U>10&&(D.V("html5_sky_skip_pause_jump")?
D.Ch.dc("skipPauseJump",{evt:P,cmt:D.getCurrentTime(),lpt:D.U}):D.seekTo(D.U,{cn:"pauseJump"})),P!=="pause"&&P!=="play"&&P!=="playing"&&P!=="progress"&&(D.U=0))};
aTP=function(D){return(m5(D.videoData)||!!D.videoData.liveUtcStartSeconds)&&(!!D.videoData.liveUtcStartSeconds||g0w(D))&&!!D.videoData.S};
g0w=function(D){return!!D.videoData.startSeconds&&isFinite(D.videoData.startSeconds)&&D.videoData.startSeconds>1E9};
E0w=function(D){var Q=0,m=NaN,P="";if(!D.j)return{startSeconds:Q,j7:m,source:P};D.videoData.Kh?Q=D.videoData.QF:ej(D.videoData)&&(Q=Infinity);if(g.Qw(D.videoData))return{startSeconds:Q,j7:m,source:P};D.videoData.startSeconds?(P="ss",Q=D.videoData.startSeconds):D.videoData.yn&&(P="stss",Q=D.videoData.yn);D.videoData.liveUtcStartSeconds&&(m=D.videoData.liveUtcStartSeconds);if(isFinite(Q)&&(Q>D.Bs()||Q<D.TY())){var W={};W.minSeekableTime=D.TY();W.maxSeekableTime=D.Bs();W.cmt=D.getCurrentTime();W.ss=
Q;W.utc=m;W.src=P;D.Ch.dc("startSecondsOutOfBounds",W);D.videoData.VX()&&(Q=Gi(D,Q,!1))}return{startSeconds:Q,j7:m,source:P}};
OW9=function(D){if(D.j){var Q;if((Q=D.videoData.Oj)==null?0:Q.JC)D.j=!1;else if(g.Qw(D.videoData))D.j=!1;else{Q="ss";var m=0,P;((P=D.videoData.S)==null?0:P.isManifestless)&&D.videoData.hU&&!g0w(D)&&(Q="mss",m=D.videoData.hU);(D.videoData.Kh?D.V("html5_prioritize_windowed_st_start_seconds"):D.V("html5_prioritize_st_start_seconds"))&&!m&&D.videoData.yn&&(Q="stss",m=D.videoData.yn);!m&&aTP(D)&&(m=D.videoData.liveUtcStartSeconds||D.videoData.hU,Q="utc",m=D.Bs()-D.hD(D.Bs())+m);!m&&D.videoData.VX()&&D.videoData.yn&&
(Q="stss",m=D.videoData.yn);P={};if(m){if(m>D.Bs()||m<D.TY())P.minSeekableTime=D.TY(),P.maxSeekableTime=D.Bs(),P.cmt=D.getCurrentTime(),P.it=D.hD(D.getCurrentTime()),P.ss=m,P.utc=aTP(D)?D.videoData.liveUtcStartSeconds||D.videoData.hU:0,D.Ch.dc("startSecondsOutOfBounds",P),D.videoData.VX()&&(m=Gi(D,m,!1));D.seekTo(m,{cn:"seektimeline_startSeconds"});P[Q]=m;D.Ch.dc("startSeconds",P);D.j=!1}else D.videoData.hU&&(P[Q]=D.videoData.hU+D.m2(),D.Ch.dc("startSeconds",P))}}};
ADn=function(D,Q){D.Ch.dc("sdai",{adj4t:Q.toFixed(3)});D.x9=Q;Q+=1;D.C=Q;D.T=Q;Kn9(D).then(function(m){jYk(D,m)},function(){Sl(D)})};
lTm=function(D){return D.mediaElement?IQ(D.mediaElement):0};
$H9=function(D){return D.videoData.LU()&&D.V("html5_enable_shorts_seek_details_logging")};
Fnh=function(){};
M7=function(D){g.v.call(this);this.T=D;this.S=new Map;this.C=new g.pJ(this.sample,250,this);g.O(this,this.C);this.start()};
cZ=function(D,Q){if((D=D.S.get(Q))==null)D=void 0;else{D=D.buffer;for(Q=[];D.C!==D.S;)D.C=(D.C+1)%D.data.length,Q.push(D.data[D.C]);D=Q}return D||[]};
DX=function(D,Q){var m;return((m=D.S.get(Q))==null?void 0:bWh(m.buffer))||0};
pC7=function(D){this.C=D;this.S=NaN;this.buffer=new K7(100)};
Qz=function(){this.finished=this.started=!1};
MM7=function(D){function Q(W){return m.TO!=="yt"&&(P.partnerId===38&&m.playerStyle==="books"||P.partnerId===30&&m.playerStyle==="docs"||P.partnerId===33&&m.playerStyle==="google-live")?xHr(D,P,W):XCj(D,P).then(function(){mU(D,P)},function(L){mU(D,P,!0);
throw L;})}
var m=D.G(),P=D.getVideoData();P.VF();P.loading=!0;return SMj(D)?rDh(D,P).then(function(){mU(D,P)},function(W){W=yJ(W);
if(Nh(W.severity))return mU(D,P,!0),Promise.reject(W);W.errorCode==="onesie.response.badproxystatus"&&""+W.details.st==="3"&&(GIn=!0);D.handleError(W);return Q("onesie")}):Q("gvi")};
SMj=function(D){var Q=D.G();if(Q.V("html5_disable_onesie")||!Q.V("html5_onesie")||!Q.V("html5_onesie_inline")&&D.getVisibilityState()===5||Q.TO!=="yt")return!1;var m=Q.kJ;if(!m||!m.S)return D.handleError(new g.VJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(m.S.N<(0,g.T3)()&&(D.dc("okexp","1"),(m=D.pE())&&Q.V("html5_prefer_trusted_host_on_key_expiration"))){m.C=!0;var P;(Q=(P=m.S.get(0))==null?void 0:c4(P.location))&&!Jp(Q)&&m.S.delete(0)}if(GIn)return D.dc("ost3","1"),!1;P={};return Object.keys(P).length>
0?(P.onesie="0",D.handleError(new g.VJ("html5.missingapi",P)),!1):!0};
cD_=function(D){var Q=ii();sD(Q,D);return g.Sz(Q,B5j())};
rDh=function(D,Q){var m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6,L9,d7,b6;return g.U(function(mj){if(mj.C==1)return Q.fetchType="onesie",m=s6P(Q,D.getPlayerSize(),D.getVisibilityState()),P=new gG(D,m),g.I(mj,P.fetch(),2);W=mj.S;L={player_response:W};Q.loading=!1;u=D.lE.gg;if(P.Hx){t=g.T(P.Hx.entries());for(z=t.next();!z.done;z=t.next())b=z.value,q=g.T(b),C=q.next().value,f=q.next().value,V=C,N=f,u.S.set(V,N,180),V===Q.videoId&&(h=N.vZ(),Q.tM=h);u.O_=P}B=g.T(P.Vl.entries());for(J=B.next();!J.done;J=
B.next())k=J.value,R=g.T(k),e=R.next().value,a=R.next().value,G=e,S=a,u.C.set(G,S,180);g.hc(Q,L,!0);if(Q.loading||Fi(Q))return mj.return(Promise.resolve());u.S.removeAll();u.C.removeAll();Q.tM=[];u6={};L9="onesie.response";d7=0;Q.errorCode?(L9="auth",u6.ec=Q.errorCode,u6.ed=Q.errorDetail,u6.es=Q.vr||"",d7=2):(u6.successButUnplayable="1",u6.disposed=""+ +Q.VF(),u6.afmts=""+ +/adaptiveFormats/.test(W),u6.cpn=Q.clientPlaybackNonce);b6=new g.VJ(L9,u6,d7);return mj.return(Promise.reject(b6))})};
XCj=function(D,Q){var m,P,W,L,u,t,z,b,q,C,f;return g.U(function(V){switch(V.C){case 1:m=Q.isAd(),P=!m,W=m?1:3,L=0;case 2:if(!(L<W)){V.Nv(4);break}if(!(L>0)){V.Nv(5);break}return g.I(V,Ko(5E3),6);case 6:u=new g.OI("Retrying OnePlatform request",{attempt:L}),g.l4(u);case 5:return g.h4(V,7),g.I(V,DL7(D,Q),9);case 9:return V.return();case 7:t=g.w7(V);z=yJ(t);b=z.errorCode;q=D.G();C=q.V("html5_use_network_error_code_enums")?401:"401";P&&b==="manifest.net.badstatus"&&z.details.rc===C&&(P=!1,L===W-1&&(W+=
1));if(L===W-1)return f=QF_(m,z.details),f.details.backend="op",f.details.originec=b,V.return(Promise.reject(f));if(b==="auth"||b==="manifest.net.retryexhausted")return V.return(Promise.reject(z));D.handleError(z);if(Nh(z.severity)){V.Nv(4);break}case 3:L++;V.Nv(2);break;case 4:return V.return(Promise.reject(QF_(m,{backend:"op"})))}})};
DL7=function(D,Q){function m(L9){L9.readyState===2&&D.Fw("ps_c")}
var P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6;return g.U(function(L9){switch(L9.C){case 1:Q.fetchType="gp";P=D.G();W=g.UO(P,g.qO(Q));if(!W.S){L=W.getValue();L9.Nv(2);break}return g.I(L9,W.S,3);case 3:L=L9.S;case 2:return u=L,t=cD_(u),z=s6P(Q,D.getPlayerSize(),D.getVisibilityState()),b=g.Qd(mLP),q=g.qO(Q),C=(0,g.T3)(),f=!1,V="empty",N=0,D.Fw("psns"),h={y8:m},g.I(L9,g.jz(t,z,b,void 0,h),4);case 4:B=L9.S;D.Fw("psnr");if(Q.VF())return L9.return();B?"error"in B&&B.error?(f=!0,V="esf:"+B.error.message,
N=B.error.code):B.errorMetadata&&(f=!0,V="its",N=B.errorMetadata.status):f=!0;if(f)return J=0,k=((0,g.T3)()-C).toFixed(),R={},R=P.V("html5_use_network_error_code_enums")?{backend:"op",rc:N,rt:k,reason:V,has_kpt:Q.kJ?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.YK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:q?"1":"0",has_vvt:Q.t0?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.Rc||"",token_eq:q===g.qO(Q)?"1":"0"}:{backend:"op",
rc:""+N,rt:k,reason:V,has_kpt:Q.kJ?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.YK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:q?"1":"0",has_vvt:Q.t0?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.Rc||"",token_eq:q===g.qO(Q)?"1":"0"},e="manifest.net.connect",N===429?(e="auth",J=2):N>200&&(e="manifest.net.badstatus",N===400&&(J=2)),L9.return(Promise.reject(new g.VJ(e,R,J)));Q.loading=!1;g.hc(Q,{raw_player_response:B},!0);
a=B;g.tf(Q.G())&&a&&a.trackingParams&&bt(a.trackingParams);if(Q.errorCode)return G={ec:Q.errorCode,ed:Q.errorDetail,es:Q.vr||""},L9.return(Promise.reject(new g.VJ("auth",G,2)));if(!Q.loading&&!Fi(Q))return S=Q.isAd()?"auth":"manifest.net.retryexhausted",u6=Q.isAd()?2:1,L9.return(Promise.reject(new g.VJ(S,{successButUnplayable:"1",hasMedia:g.M4(Q)?"1":"0"},u6)));g.T7(L9)}})};
xHr=function(D,Q,m){function P(N){N=yJ(N);if(Nh(N.severity))return Promise.reject(N);D.handleError(N);return!1}
function W(){return!0}
var L,u,t,z,b,q,C,f,V;return g.U(function(N){switch(N.C){case 1:var h=D.G();D.getPlayerSize();D.getVisibilityState();D.isFullscreen();if(Q.partnerId===38&&h.playerStyle==="books")h=Q.videoId.indexOf(":"),h=g.oz("//play.google.com/books/volumes/"+Q.videoId.slice(0,h)+"/content/media",{aid:Q.videoId.slice(h+1),sig:Q.tv0});else if(Q.partnerId===30&&h.playerStyle==="docs")h=g.oz("https://docs.google.com/get_video_info",{docid:Q.videoId,authuser:Q.cw,authkey:Q.cA,eurl:h.pj});else if(Q.partnerId===33&&
h.playerStyle==="google-live")h=g.oz("//google-liveplayer.appspot.com/get_video_info",{key:Q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+h.TO);L=h;t=(u=Q.isAd())?1:3;z=0;case 2:if(!(z<t)){N.Nv(4);break}b=L;if(!(z>0)){N.Nv(5);break}return g.I(N,Ko(5E3),6);case 6:q={playerretry:z,playerretrysrc:m},u||(q.recover="embedded"),b=Qk(L,q);case 5:return g.I(N,PMm(Q,b).then(W,P),7);case 7:if(C=N.S)return N.return();z++;N.Nv(2);break;case 4:f=u?"auth":"manifest.net.retryexhausted";V=
u?2:1;if(!u&&Math.random()<1E-4)try{g.l4(new g.OI("b/152131571",btoa(L)))}catch(B){}return N.return(Promise.reject(new g.VJ(f,{backend:"gvi"},V)))}})};
PMm=function(D,Q){function m(B){return P(B.xhr)}
function P(B){if(!D.VF()){B=B?B.status:-1;var J=0,k=((0,g.T3)()-q).toFixed();k=W.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:k}:{backend:"gvi",rc:""+B,rt:k};var R="manifest.net.connect";B===429?(R="auth",J=2):B>200&&(R="manifest.net.badstatus",B===400&&(J=2));return Promise.reject(new g.VJ(R,k,J))}}
var W,L,u,t,z,b,q,C,f,V,N,h;return g.U(function(B){if(B.C==1){D.fetchType="gvi";W=D.G();var J={};D.gp&&(J.ytrext=D.gp);(t=g.b7(J)?void 0:J)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:t},u=Qk(Q,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},u=Q);z={};W.sendVisitorIdHeader&&D.visitorData&&(z["X-Goog-Visitor-Id"]=D.visitorData);(b=nD(W.experiments,"debug_sherlog_username"))&&(z["X-Youtube-Sherlog-Username"]=b);Object.keys(z).length>
0&&(L.headers=z);q=(0,g.T3)();return g.I(B,$F(hl,u,L).then(void 0,m),2)}C=B.S;if(!C||!C.responseText)return B.return(P(C));D.loading=!1;f=GG(C.responseText);g.hc(D,f,!0);if(D.errorCode)return V={ec:D.errorCode,ed:D.errorDetail,es:D.vr||""},B.return(Promise.reject(new g.VJ("auth",V,2)));if(!D.loading&&!Fi(D))return N=D.isAd()?"auth":"manifest.net.retryexhausted",h=D.isAd()?2:1,B.return(Promise.reject(new g.VJ(N,{successButUnplayable:"1"},h)));g.T7(B)})};
QF_=function(D,Q){return new g.VJ(D?"auth":"manifest.net.retryexhausted",Q,D?2:1)};
mU=function(D,Q,m){m=m===void 0?!1:m;var P,W,L,u;g.U(function(t){if(t.C==1){P=D.G();if(m&&(!g.wv(P)||dr(Q)!=="embedded")||Q.yx||dr(Q)!=="adunit"&&(g.Nw(P)||VS(P)||g.jY(P)||g.B8(P)||g.zs(P)||TZ(P)==="WEB_CREATOR"))return t.return();W=g.UO(P,g.qO(Q));return W.S?g.I(t,W.S,3):(L=W.getValue(),t.Nv(2))}t.C!=2&&(L=t.S);u=L;return t.return(Wl9(D,Q,u))})};
Wl9=function(D,Q,m){var P,W,L,u,t;return g.U(function(z){if(z.C==1){g.h4(z,2);P=cD_(m);var b=Q.G();g.H5();var q={context:g.BU(Q),videoId:Q.videoId,racyCheckOk:Q.racyCheckOk,contentCheckOk:Q.contentCheckOk,autonavState:"STATE_NONE"};dr(Q)==="adunit"&&(q.isAdPlayback=!0);b.embedConfig&&(q.serializedThirdPartyEmbedConfig=b.embedConfig);b.Sh&&(q.showContentOwnerOnly=!0);Q.wL&&(q.showShortsOnly=!0);g.KU(0,141)&&(q.autonavState=g.KU(0,140)?"STATE_OFF":"STATE_ON");if(g.EO(b)){var C=g.KU(0,65);C=C!=null?
!C:!1;var f=!!g.kt("yt-player-sticky-caption");q.captionsRequested=C&&f}var V;if(b=(V=b.getWebPlayerContextConfig())==null?void 0:V.encryptedHostFlags)q.playbackContext={encryptedHostFlags:b};W=q;L=g.Qd(i$j);D.Fw("wn_s");return g.I(z,g.jz(P,W,L),4)}if(z.C!=2)return u=z.S,D.Fw("wn_r"),!u||"error"in u&&u.error||(t=u,g.tf(Q.G())&&t.trackingParams&&bt(t.trackingParams),g.hc(Q,{raw_watch_next_response:u},!1)),g.g7(z,0);g.w7(z);g.T7(z)})};
sFr=function(D){D.Fw("vir");D.Fw("ps_s");Ul("vir",void 0,"video_to_ad");var Q=MM7(D);Q.then(function(){D.Fw("virc");Ul("virc",void 0,"video_to_ad");D.Fw("ps_r");Ul("ps_r",void 0,"video_to_ad")},function(){D.Fw("virc");
Ul("virc",void 0,"video_to_ad")});
return Q};
g.i_=function(D,Q,m,P,W,L,u,t,z,b){z=z===void 0?new g.ZY(D):z;b=b===void 0?!0:b;g.iR.call(this);var q=this;this.SD=D;this.playerType=Q;this.QX=m;this.Pe=P;this.getVisibilityState=L;this.visibility=u;this.lE=t;this.videoData=z;this.H2=b;this.logger=new g.EW("VideoPlayer");this.CO=null;this.IW=new N7;this.Qq=null;this.Qh=!0;this.cq=this.loader=null;this.UM=[];this.Bp=new Qz;this.t8=this.gf=null;this.KG=new Qz;this.vW=null;this.w8=this.X_=!1;this.er=NaN;this.SV=!1;this.playerState=new g.HE;this.wO=[];
this.i5=new g.gO;this.b6=new Jsm(this);this.mediaElement=null;this.Bd=new g.pJ(this.qrW,15E3,this);this.rk=this.mR=!1;this.XR=NaN;this.Zb=!1;this.QK=0;this.ZM=!1;this.FK=NaN;this.Q3=new M7(new Map([["bufferhealth",function(){return lTm(q.LM)}],
["bandwidth",function(){return q.WS()}],
["networkactivity",function(){return q.SD.schedule.Kh}],
["livelatency",function(){return q.isAtLiveHead()&&q.isPlaying()?LlP(q):NaN}],
["rawlivelatency",function(){return LlP(q)}]]));
this.DX=0;this.loop=!1;this.playbackRate=1;this.nH=0;this.LM=new n06(this);this.Fc=!1;this.VH=[];this.KH=this.Cw=0;this.v_=this.bX=!1;this.MW=this.mB=0;this.SY=new g.pJ(this.mM,0,this);this.uy=!1;this.Ax=null;this.zz0=[this.i5,this.SY,this.Bd,this.Q3];this.Qe=this.Td=this.PT=null;this.sS=function(){var C=q.qB;C.provider.SD.A8||C.provider.Ch.getVisibilityState()===3||(C.provider.SD.A8=!0);C.NR();if(C.C){var f=C.C;f.J&&f.S<0&&f.provider.Ch.getVisibilityState()!==3&&LU7(f)}C.qoe&&(C=C.qoe,C.GO&&C.T<
0&&C.provider.SD.A8&&UO4(C),C.B&&WZ(C));q.loader&&PJ(q);q.SD.K0&&!q.videoData.backgroundable&&q.mediaElement&&!q.xP()&&(q.isBackground()&&q.mediaElement.Im()?(q.dc("bgmobile",{suspend:1}),q.Gb(!0,!0)):q.isBackground()||WJ(q)&&q.dc("bgmobile",{resume:1}))};
this.It={Jr:function(C){q.Jr(C)},
BhT:function(C){q.CO=C},
VhD:function(){return q.qB},
Hk:function(){return q.cq},
MMc:function(){return q.HH},
EIW:function(){return q.OR},
mfc:function(){},
G:function(){return q.SD},
Cn:function(){return q.mediaElement},
cEc:function(C){q.sX(C)},
GvD:function(){return q.Pe}};
this.logger.debug(function(){return"creating, type "+Q});
this.JL=new dHm(this.SD);this.gT=new Zu(this.SD,this.Pe,this);this.DQ=new g.Uy(this,function(C,f){C!==g.r5("endcr")||g.X(q.playerState,32)||q.Ao();W(C,f,q.playerType);if(C===g.r5("transitiondetector")&&(C=q.loader)!=null&&(C=C.hU)!=null){var V=g.T(rcP(f.id));V.next();V=V.next().value;p1u(C,V,f.start/1E3-C.Ch.m2(),Kp4(C.B))}});
g.O(this,this.DQ);g.O(this,this.LM);u87(this,z);this.videoData.subscribe("dataupdated",this.rDq,this);this.videoData.subscribe("dataloaded",this.cH,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.dc,this);this.videoData.subscribe("ctmpstr",this.Ia,this);!this.qB||this.qB.VF();this.qB=new g.IJ(new lb(this.videoData,this.SD,this));wZn(this.sS);this.visibility.subscribe("visibilitystatechange",this.sS);this.HH=new g.pJ(this.R6,g.WF(this.SD.experiments,
"html5_player_att_initial_delay_ms")||4500,this);this.OR=new g.pJ(this.R6,g.WF(this.SD.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.rJ=new g.rt(this.mYW,350,this);g.O(this,this.rJ)};
u87=function(D,Q){if(D.playerType===2||D.SD.Nz)Q.AC=!0;var m=y59(Q.A8,Q.fD,D.SD.B,D.SD.Z);m&&(Q.adFormat=m);D.playerType===2&&(Q.BB=!0);if(D.isFullscreen()||D.SD.B)m=g.kt("yt-player-autonavstate"),Q.autonavState=m||(D.SD.B?2:D.videoData.autonavState);Q.endSeconds&&Q.endSeconds>Q.startSeconds&&rT(D,Q.endSeconds)};
dL4=function(D){var Q=D.videoData;sFr(D).then(void 0,function(m){D.videoData!==Q||Q.VF()||(m=yJ(m),m.errorCode==="auth"&&D.videoData.errorDetail?D.Qi(m.errorCode,2,unescape(D.videoData.errorReason),ft(m.details),D.videoData.errorDetail,D.videoData.vr||void 0):D.handleError(m))})};
b$n=function(D){if(!g.X(D.playerState,128))if(D.videoData.isLoaded(),D.logger.debug("finished loading playback data"),D.UM=g.JM(D.videoData.j),g.M4(D.videoData)){D.QX.tick("bpd_s");sB(D).then(function(){D.QX.tick("bpd_c");if(!D.VF()){D.X_&&(D.Bn($S($S(D.playerState,512),1)),WJ(D));var P=D.videoData;P.endSeconds&&P.endSeconds>P.startSeconds&&rT(D,P.endSeconds);D.Bp.finished=!0;LA(D,"dataloaded");D.KG.ED()&&trn(D);sy7(D.gT,D.t8)}});
D.V("html5_log_media_perf_info")&&D.dc("loudness",{v:D.videoData.WO.toFixed(3)},!0);var Q,m=(Q=D.mediaElement)==null?void 0:Q.nj();if(m&&"disablePictureInPicture"in m&&D.SD.jH)try{m.disablePictureInPicture=D.SD.CZ&&!D.videoData.backgroundable}catch(P){g.l4(P)}zh4(D);D.V("html5_enable_new_audio_settings_menu")&&(D.Qe=new G$(D.videoData))}else LA(D,"dataloaded")};
sB=function(D){u_(D);D.t8=null;var Q=zGh(D.SD,D.videoData,D.xP());D.gf=Q;D.gf.then(function(m){qHk(D,m)},function(m){D.VF()||(m=yJ(m),D.visibility.isBackground()?(dQ(D,"vp_none_avail"),D.gf=null,D.Bp.reset()):(D.Bp.finished=!0,D.Qi(m.errorCode,m.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ft(m.details))))});
return Q};
qHk=function(D,Q){if(!D.VF()&&!Q.videoData.VF()){D.logger.debug("finished building playback data");D.t8=Q;BHw(D.LM,D.t8);if(D.videoData.isLivePlayback){var m=CM6(D.lE.gg,D.videoData.videoId)||D.loader&&!isNaN(D.loader.t0);m=D.V("html5_onesie_live")&&m;X1(D)||D.videoData.hU>0&&!v1(D.videoData)||m||D.seekTo(D.Bs(),{cn:"videoplayer_playbackData",seekSource:18})}if(D.videoData.T.S){if(SR9(D.videoData)){D.Qi("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",ft({missabrurl:1}));return}D.loader?g.l4(Error("Duplicated Loader")):
(m=g.WF(D.SD.experiments,"html5_onesie_defer_content_loader_ms"))&&D.pm()&&CM6(D.lE.gg,D.videoData.lD0)?g.tl(function(){D.VF()||D.loader||on7(D)},m):on7(D)}else!D.videoData.T.S&&fy(D.videoData)&&D.o$(new JX(D.videoData.videoId||"",4));
D.Mz();Mlw(Q).then(function(){var P={};D.NA(P);D.SD.xl()&&D.V("html5_log_media_perf_info")&&D.dc("av1Info",P);PJ(D)})}};
trn=function(D){D.VF();D.logger.debug("try finish readying playback");if(D.KG.finished)D.logger.debug("already finished readying");else if(D.Bp.finished)if(g.X(D.playerState,128))D.logger.debug("cannot finish readying because of error");else if(D.UM.length)D.logger.debug(function(){return"cannot finish readying because of pending preroll: "+D.UM});
else if(D.DQ.started||mHk(D.DQ),D.xS())D.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{D.loader&&(D.w8=Wwk(D.loader.timing));D.KG.finished||(D.KG.finished=!0);var Q=D.V("html5_onesie_live")&&D.loader&&!isNaN(D.loader.t0);!D.videoData.isLivePlayback||D.videoData.hU>0&&!v1(D.videoData)||Q||X1(D)||(D.logger.debug("seek to head for live"),D.seekTo(Infinity,{cn:"videoplayer_readying",seekSource:18}),D.isBackground()&&(D.rk=!0));v$w(D.qB);D.logger.debug("finished readying playback");
D.publish("playbackready");IH("pl_c",D.QX.timerName)||(D.QX.tick("pl_c"),Ul("pl_c",void 0,"video_to_ad"));IH("pbr",D.QX.timerName)||(D.QX.tick("pbr"),Ul("pbr",void 0,"video_to_ad"))}else D.logger.debug("playback data not loaded")};
rT=function(D,Q){D.Qq&&f8n(D);D.Qq=new g.XB(Q*1E3,0x7ffffffffffff);D.Qq.namespace="endcr";D.addCueRange(D.Qq)};
f8n=function(D){D.removeCueRange(D.Qq);D.Qq=null};
Vrj=function(D,Q,m,P,W){var L=D.qB,u=D.videoData;u.C=m;var t=g.tA(D);m=new Yyu(u,m,Q,t?t.itag:"",P);D.SD.experiments.Mv("html5_refactor_sabr_video_format_selection_logging")?(m.videoId=W,D.Td=m):L.qoe&&RK_(L.qoe,m);W=D.gT;W.C=0;W.S=0;D.publish("internalvideoformatchange",u,Q==="m")};
g.tA=function(D){var Q=zk(D);return Ue(Q)||!D.t8?null:g.y4(D.t8.S.videoInfos,function(m){return Q.B(m)})};
zk=function(D){if(D.t8){var Q=D.gT;var m=D.t8;D=D.eT();var P=As$(Q);if(Ue(P)){if(P=Q.ip(m).compose(Sy7(Q,m)).compose(Gir(Q,m)).compose(WUh(Q,m.videoData)).compose(iA_(Q,m.videoData,m)).compose(P_4(Q,m)).compose(x79(Q,m)),Ue(D)||Q.V("html5_apply_pbr_cap_for_drm"))P=P.compose(XZ6(Q,m))}else Q.V("html5_perf_cap_override_sticky")&&(P=P.compose(P_4(Q,m))),Q.V("html5_ustreamer_cap_override_sticky")&&(P=P.compose(XZ6(Q,m)));P=P.compose(x79(Q,m));Q=m.videoData.Qj.compose(P).compose(m.videoData.wu).compose(D)}else Q=
y7;return Q};
oA9=function(D){var Q=D.gT;D=D.videoData;var m=WUh(Q,D);Q.V("html5_disable_client_autonav_cap_for_onesie")||m.compose(iA_(Q,D));return m};
PJ=function(D){if(D.videoData.T&&D.videoData.T.S){var Q=zk(D);D.loader&&c2$(D.loader,Q)}};
N8h=function(D){var Q;return!!(D.V("html5_native_audio_track_switching")&&g.Cr&&((Q=D.videoData.C)==null?0:c6(Q)))};
y_7=function(D){if(!N8h(D))return!1;var Q;D=(Q=D.mediaElement)==null?void 0:Q.audioTracks();return!!(D&&D.length>1)};
Fl6=function(D){var Q=Z$4(D);if(Q)return D.videoData.getAvailableAudioTracks().find(function(m){return m.WY.getName()===Q})};
Z$4=function(D){var Q;if(D=(Q=D.mediaElement)==null?void 0:Q.audioTracks())for(Q=0;Q<D.length;++Q){var m=D[Q];if(m.enabled)return m.label}};
T8w=function(D){var Q,m=D.videoData.getAvailableAudioTracks(),P=D.SD.l0;P&&(Q=m.find(function(L){return L.getLanguageInfo().id===P}));
if(D.SD.experiments.Mv("enable_audio_description_setting")&&g.KU(g.H5(),198)){m=g.T(m);for(var W=m.next();!W.done;W=m.next())if(W=W.value,W.J){Q=W;break}}Q||(D=D.getAudioTrack(),Q=D.WY.isDefault?void 0:D);return Q};
on7=function(D){for(var Q=D.videoData.S,m=g.T(Object.entries({cpn:D.videoData.clientPlaybackNonce,c:D.SD.S.c,cver:D.SD.S.cver})),P=m.next();!P.done;P=m.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;for(var L=g.T(Object.values(Q.S)),u=L.next();!u.done;u=L.next())Lsw(u.value.NB,P,W);L=void 0;(L=Q.j)==null||Lsw(L,P,W)}P=D.SD;m=D.videoData;Q=new g.a97(P);W=YS7({hasSubfragmentedFmp4:m.hasSubfragmentedFmp4,pB:m.pB});Q.U=W;Q.Kh=m.maxReadAheadMediaTimeMs/1E3||Q.Kh;W=P.schedule;W.T.S1()===W.policy.T?
Q.Kj=10:Q.Kj=m.minReadAheadMediaTimeMs/1E3||Q.Kj;Q.uS=m.readAheadGrowthRateMs/1E3||Q.uS;m.zH&&(Q.u0=!0,Q.XT=!0);Q.Km=!wM();g.Nw(P)||!wM()?(Q.x9=8388608,Q.jD=524288,Q.IH=5,Q.k9=1048576,Q.H0=1.5,Q.yF=4587520,O2()&&(Q.yF=786432),Q.Z*=1.1,Q.Iy*=1.1,Q.h8=!0):P.C&&(Q.Z*=1.3,Q.Iy*=1.3);g.Ta&&g.j8("crkey")&&(W=P.S.cmodel==="CHROMECAST/ANCHOVY",Q.x9=20971520,Q.jD=1572864,W&&(Q.yF=812500,Q.PO=1E3,Q.c5=5,Q.k9=2097152));g.fD&&(Q.h8=!0);P.supportsGaplessAudio()||(Q.K0=!1);QS&&(Q.g2=!0);Q.ZD=P.V("html5_peak_shave");
m.fetchType==="onesie"&&P.V("html5_disable_peak_shave_for_onesie")&&(Q.ZD=!1);var t;W=(t=m.S)==null?void 0:aP(t);if(v1(m)){Q.tY=!0;Q.Ig||(Q.Ft=!0);Q.pj=!0;Q.CZ=!0;Q.b8=!0;if(m.latencyClass==="ULTRALOW"||m.latencyClass==="LOW"&&!P.V("html5_disable_low_pipeline"))Q.Tv=2,Q.hH=4;Q.QL=m.defraggedFromSubfragments;g.Qw(m)&&(Q.hU=!1);Q.Br=g.f8(P)}m.isAd()&&(Q.jP=0,Q.fF=0);Q.YF=P.V("html5_enable_subsegment_readahead_v3")||P.V("html5_ultra_low_latency_subsegment_readahead")&&m.latencyClass==="ULTRALOW";Q.T=
P.xl();GX()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(P.S.cmodel)&&!P.V("html5_disable_move_pssh_to_moov")&&W&&(Q.h8=!1);L=0;P.V("html5_live_use_alternate_bandwidth_window_sizes")&&(L=P.schedule.policy.S,m.isLivePlayback&&(L=g.WF(P.experiments,m.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":m.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||L));t=P.schedule;t.C.B=v1(m)?.5:0;if(!t.policy.C&&L&&(t=t.T,L=Math.round(L*t.resolution),
L!==t.S)){u=Array(L);var z=Math.min(L,t.T?t.S:t.C),b=t.C-z;b<0&&(b+=t.S);for(var q=0;q<z;++q)u[q]=t.values[(b+q)%t.S];for(;q<L;++q)u[q]=Infinity;t.S=L;t.values=u;t.C=z%L;t.T=z===L;t.tZ=!0;t.J=NDj(t)}m.isLivePlayback&&(Q.CF=g.WF(P.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,Q.GO=!1);m.qJ()&&(Q.GO=!1);O1(m)&&(Q.YF=!0,m.latencyClass==="LOW"?Q.Xw=g.WF(P.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):m.latencyClass==="ULTRALOW"&&(Q.Xw=g.WF(P.experiments,"html5_jumbo_ull_subsegment_readahead_target")),
Q.vE=!0);m.VX()&&(Q.gx=1.3);Q.g2=Q.g2||m.c5;Q.Y9=(Q.Y9||m.Y9)&&P.Z;Q.zY=m.U;P.xl()&&(Q.PY=!0);m.U&&!W&&(Q.zH=!0);m.U&&m.isAd()&&(Q.Z*=1.6,Q.Iy*=1.6);fy(m)&&(Q.B=m.videoId,Q.SR=!0,Q.rz=100,m.lR&&m.lR.length>0&&(Q.Zw=m.lR));Q.KI=m.R4;Q.vc=LD(P,{},m.T||void 0,Rb(m));Q.oy=Ib(m)&&(g.jY(P)||g.B8(P));H1(m)&&(Q.J=!0,Q.lR=P.V("html5_estimate_live_partial_slice_duration"),Q.gi=!0,P.V("html5_sabr_report_partial_segment_estimated_duration")&&(Q.lk=!0),Q.S=!0,Q.Nz=P.V("html5_sabr_enable_live_clock_offset"),Q.vy=
P.V("html5_disable_client_resume_policy_for_sabr"),Q.qE=P.V("html5_trigger_loader_when_idle_network"),Q.wQ=P.V("html5_sabr_parse_live_metadata_playback_boundaries"),Q.Oj=P.V("html5_consume_onesie_next_request_policy_for_sabr"),Q.Zd=P.V("html5_sabr_report_next_ad_break_time"),Q.Sh=P.V("html5_log_high_res_buffer_timeline")&&P.xl(),Q.WE=P.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),Q.TV=P.V("html5_gapless_sabr_btl_last_slice")&&lH(m),Q.S2=P.V("html5_reset_last_appended_slice_on_seek")&&lH(m),
v1(m)?(Q.cE=!0,Q.e9=P.V("html5_disable_variability_tracker_for_live"),Q.l0=!0,P.V("html5_simplified_backup_timeout_sabr_live")&&(Q.KZ=!0,Q.PO=Q.yN)):Q.kJ=P.V("html5_probe_request_on_sabr_request_progress"),Q.rQ=P.V("html5_serve_start_seconds_seek_for_post_live_sabr"),Q.HO=P.V("html5_flush_index_on_updated_timestamp_offset"),Q.j=H1(m),Q.yL=P.V("html5_ignore_partial_segment_from_live_readahead"),P.V("html5_include_partial_segment_for_jumbo_ll")&&O1(m)&&(Q.yL=!1),Q.m7=P.V("html5_use_non_active_broadcast_for_post_live"),
Q.t0=P.V("html5_use_centralized_player_time"),Q.Lj=P.V("html5_log_centralized_player_time"),Q.VR=P.V("html5_consume_onesie_sabr_seek"),Q.TO=P.V("html5_enable_sabr_seek_loader_refactor"),Q.Qj=g.WF(P.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),Q.zB=P.V("html5_update_segment_start_time_from_media_header"),m.enableServerStitchedDai&&(Q.C=!0,Q.fD=P.V("html5_reset_server_stitch_state_for_non_sabr_seek"),Q.md=P.V("html5_remove_ssdai_append_pause")&&!m.xB(),Q.WO=P.V("html5_ssdai_log_ssevt_in_loader")||
P.V("html5_ssdai_log_ssevt_in_loader_200ms")||P.V("html5_ssdai_log_ssevt_in_loader_timers")||P.V("html5_ssdai_log_ssevt_in_loader_cuerange"),P.V("html5_ssdai_log_ssevt_in_loader_timers")?Q.gB=1:P.V("html5_ssdai_log_ssevt_in_loader_200ms")?Q.gB=3:P.V("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Q.gB=0)),Q.AE=P.xl()||m.xB());Q.kB=g.pLm(m);Sc(P.J,r_.BITRATE)&&(Q.yF=NaN);if(t=g.WF(P.experiments,"html5_request_size_max_kb"))Q.k9=t*1024;P.J.T?Q.Xn="; "+r_.EXPERIMENTAL.name+"=allowed":P.V("html5_enable_cobalt_tunnel_mode")&&
g.e8()&&(t=r_.TUNNELMODE,Q.Xn="; "+t.name+"="+t.valid);m=m.serverPlaybackStartConfig;(m==null?0:m.enable)&&(m==null?0:m.playbackStartPolicy)&&(Q.pU=!0,AY6(Q,m.playbackStartPolicy,2));m=T8w(D);D.IW.removeAll();a:{t=D.lE.gg;if(P=D.videoData.videoId)if(W=t.S.get(P)){t.S.remove(P);t=W;break a}t=void 0}D.loader=new g.ub(D,D.SD.schedule,Q,D.videoData.S,D.videoData.T,zk(D),m,D.videoData.enableServerStitchedDai,t,D.videoData.TO);Q=D.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&D.videoData.isLivePlayback&&
D.pm()?!0:D.X_&&g.Nw(D.SD)&&D.videoData.isLivePlayback;D.loader.initialize(D.getCurrentTime(),zk(D),Q);D.videoData.probeUrl&&(D.loader.oy=D.videoData.probeUrl);if(D.UM.length||D.X_)D.videoData.cotn||b_(D,!1);kI9(D.LM,D.loader);D.Ax&&(FWh(D.loader,new g.dT(D.Ax)),D.dc("sdai",{sdl:1}));g.Zn(D.videoData)&&(D=D.loader,D.policy.Pj=D.policy.Yx)};
u_=function(D){D.loader&&(D.loader.dispose(),D.loader=null,kI9(D.LM,null));D.KU()?hh7(D):D.rX()};
hh7=function(D){if(D.cq)if(D.logger.debug("release media source"),D.tA(),D.cq.J)try{D.SD.xl()&&D.dc("rms",{l:"vprms",sr:D.KU(),rs:BE(D.cq)});D.cq.clear();var Q;(Q=D.mediaElement)!=null&&(Q.C=D.cq);D.cq=null}catch(m){Q=new g.OI("Error while clearing Media Source in VideoPlayer: "+m.name+", "+m.message),Q=yJ(Q),D.handleError(Q),D.rX()}else D.rX()};
nnk=function(D,Q){Q=Q===void 0?!1:Q;if(D.cq)return D.cq.T;D.logger.debug("update media source");a:{Q=Q===void 0?!1:Q;try{g.e8()&&D.videoData.F3()&&$Wk(D.mediaElement);var m=D.mediaElement.Hk(D.Py(),D.PS())}catch(W){if(H7m(D.b6,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",W);D.Qi("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}D.kc(m,!1,!1,Q)}var P;return((P=D.Hk())==null?void 0:P.T)||null};
EnP=function(D,Q){Q=Q===void 0?!1:Q;if(D.loader){D.videoData.enableServerStitchedDai&&HSn(D.loader);var m=D.getCurrentTime()-D.m2();D.loader.seek(m,{F_:Q}).Fn(function(){})}else on7(D)};
B8u=function(D,Q,m,P){m=m===void 0?!1:m;P=P===void 0?!1:P;if(D.cq&&(!Q||D.cq===Q)){D.logger.debug("media source opened");var W=D.getDuration();!W&&v1(D.videoData)&&(W=25200);if(D.cq.isView){var L=W;D.logger.debug(function(){return"Set media source duration to "+L+", video duration "+W});
L>D.cq.getDuration()&&gnh(D,L)}else gnh(D,W);r26(D.loader,D.cq,m,P);D.publish("mediasourceattached")}};
gnh=function(D,Q){if(D.cq){D.cq.Pk(Q);var m;(m=D.loader)!=null&&m.policy.t0&&(m.N=Q)}};
Qa6=function(D,Q){Vrj(D,Q.reason,Q.S.info,Q.token,Q.videoId)};
LA=function(D,Q){D.publish("internalvideodatachange",Q===void 0?"dataupdated":Q,D.videoData)};
wxh=function(D){for(var Q=g.T("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),m=Q.next();!m.done;m=Q.next())D.i5.W(D.mediaElement,m.value,D.sX,D);D.SD.Cm&&D.mediaElement.Qg()&&(D.i5.W(D.mediaElement,"webkitplaybacktargetavailabilitychanged",D.Wcc,D),D.i5.W(D.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",D.lxF,D))};
J_P=function(D){g.qv(D.er);k6_(D)||(D.er=g.zX(function(){return k6_(D)},100))};
k6_=function(D){var Q=D.mediaElement;Q&&D.mR&&!D.videoData.Iy&&!IH("vfp",D.QX.timerName)&&Q.Bi()>=2&&!Q.isEnded()&&C2(Q.jb())&&D.QX.tick("vfp");return(Q=D.mediaElement)&&!D.videoData.Iy&&Q.getDuration()>0&&(Q.isPaused()&&Q.Bi()>=2&&C2(Q.jb())&&(IH("pbp",D.QX.timerName)||D.QX.tick("pbp"),!D.videoData.Tb||D.SV||Q.isSeeking()||(D.SV=!0,D.publish("onPlaybackPauseAtStart"))),Q=Q.getCurrentTime(),HZ(D.JL,Q))?(D.lA(),!0):!1};
I8m=function(D){D.qB.onProgress();if(ej(D.videoData)&&Date.now()>D.nH+6283){if(D.V("html5_unified_live_latency_reporting")){var Q=D.qB;Q.qoe&&El4(Q.qoe)}else!D.isAtLiveHead()||D.videoData.S&&Ss(D.videoData.S)||(Q=D.qB,Q.qoe&&El4(Q.qoe));Q=g.f8(D.SD);var m=D.V("html5_always_log_rawlat");(Q||m)&&D.dc("rawlat",{l:DX(D.Q3,"rawlivelatency").toFixed(3)});D.nH=Date.now()}D.videoData.C&&c6(D.videoData.C)&&(Q=D.Lq())&&Q.videoHeight!==D.KH&&(D.KH=Q.videoHeight,Vrj(D,"a",l89(D,D.videoData.GO)))};
l89=function(D,Q){if(Q.S.video.quality==="auto"&&c6(Q.getInfo())&&D.videoData.Ze)for(var m=g.T(D.videoData.Ze),P=m.next();!P.done;P=m.next())if(P=P.value,P.getHeight()===D.KH&&P.S.video.quality!=="auto")return P.getInfo();return Q.getInfo()};
LlP=function(D){if(!ej(D.videoData))return NaN;var Q=0;D.loader&&D.videoData.S&&(Q=v1(D.videoData)?D.loader.rj.S1()||0:D.videoData.S.wc);return(0,g.T3)()/1E3-D.hD()-Q};
ULP=function(D){D.mediaElement&&D.mediaElement.xP()&&(D.FK=(0,g.T3)());D.SD.oZ?g.tl(function(){Rhr(D)},0):Rhr(D)};
Rhr=function(D){var Q;if((Q=D.cq)==null||!Q.x5()){if(D.mediaElement)try{D.vW=D.mediaElement.playVideo()}catch(P){dQ(D,"err."+P)}if(D.vW){var m=D.vW;m.then(void 0,function(P){D.logger.debug(function(){return"playMediaElement failed: "+P});
if(!g.X(D.playerState,4)&&!g.X(D.playerState,256)&&D.vW===m)if(P&&P.name==="AbortError"&&P.message&&P.message.includes("load"))D.logger.debug(function(){return"ignore play media element failure: "+P.message});
else{var W="promise";P&&P.name&&(W+=";m."+P.name);dQ(D,W);D.Fc=!0;D.videoData.aF=!0}})}}};
dQ=function(D,Q){g.X(D.playerState,128)||(D.Bn(vE(D.playerState,1028,9)),D.dc("dompaused",{r:Q}),D.publish("onAutoplayBlocked"))};
WJ=function(D,Q){Q=Q===void 0?!1:Q;if(!D.mediaElement||!D.videoData.T)return!1;var m=Q;m=m===void 0?!1:m;var P=null;var W;if((W=D.videoData.T)==null?0:W.S){P=nnk(D,m);var L;(L=D.loader)==null||L.resume()}else u_(D),D.videoData.GO&&(P=D.videoData.GO.Z8());W=D.mediaElement.Im();m=!1;W&&W.equals(P)||(H$w(D,P),m=!0);g.X(D.playerState,2)||(P=D.LM,Q=Q===void 0?!1:Q,P.J||!(P.T>0)||P.mediaElement&&P.mediaElement.getCurrentTime()>0||(Q={cn:"seektimeline_resumeTime",F_:Q},P.videoData.Iy||(Q.seekSource=15),
P.seekTo(P.T,Q)));a:{Q=m;if(H1(D.videoData)){if(!D.videoData.qJ())break a}else if(!g.Xi(D.videoData))break a;if(D.mediaElement)if((P=D.videoData.J)&&D.mediaElement.Qg()){W=D.mediaElement.nj();if(D.CO)if(W!==D.CO.element)q6(D);else if(Q&&P.flavor==="fairplay"&&!vd())q6(D);else break a;if(D.V("html5_report_error_for_unsupported_tvos_widevine")&&vd()&&P.flavor==="widevine")D.Qi("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{D.CO=new ys6(W,D.videoData,D.SD);D.CO.subscribe("licenseerror",
D.F$,D);D.CO.subscribe("qualitychange",D.UBO,D);D.CO.subscribe("heartbeatparams",D.hO,D);D.CO.subscribe("keystatuseschange",D.Jr,D);D.CO.subscribe("ctmp",D.dc,D);Q=g.T(D.IW.keys);for(P=Q.next();!P.done;P=Q.next())P=D.IW.get(P.value),D.CO.Wd(P);D.V("html5_eme_loader_sync")||D.IW.removeAll()}}else D.Qi("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return m};
H$w=function(D,Q){D.QX.tick("vta");Ul("vta",void 0,"video_to_ad");D.getCurrentTime()>0&&RG$(D.LM,D.getCurrentTime());D.mediaElement.activate(Q);D.cq&&GP(4);!D.videoData.Iy&&D.playerState.isOrWillBePlaying()&&D.Bd.start();if(N8h(D)){var m;if(Q=(m=D.mediaElement)==null?void 0:m.audioTracks())Q.onchange=function(){D.publish("internalaudioformatchange",D.videoData,!0)}}};
q6=function(D){D.CO&&(D.CO.dispose(),D.CO=null)};
Kl4=function(D){var Q=Q===void 0?!1:Q;D.logger.debug("reattachVideoSource");D.mediaElement&&(D.cq?(q6(D),D.rX(),nnk(D,Q)):(D.videoData.GO&&D.videoData.GO.c_(),D.mediaElement.stopVideo()),D.playVideo())};
jFr=function(D,Q){D.SD.V("html5_log_rebuffer_reason")&&(Q={r:Q,lact:FE()},D.mediaElement&&(Q.bh=IQ(D.mediaElement)),D.dc("bufreason",Q))};
$Ln=function(D,Q){if(D.SD.xl()&&D.mediaElement){var m=D.mediaElement.yX();m.omt=(D.mediaElement.getCurrentTime()+D.m2()).toFixed(3);m.ps=D.playerState.state.toString(16);m.rt=(g.PZ(D.qB.provider)*1E3).toFixed();m.e=Q;D.VH[D.Cw++%5]=m}try{if(Q==="timeupdate"||Q==="progress")return}catch(P){}D.logger.debug(function(){return"video element event "+Q})};
ehu=function(D){if(D.SD.xl()){D.VH.sort(function(P,W){return+P.rt-+W.rt});
for(var Q=g.T(D.VH),m=Q.next();!m.done;m=Q.next())m=m.value,D.dc("vpe",Object.assign({t:m.rt},m));D.VH=[];D.Cw=0}};
vnr=function(D){if(g.j8("cobalt")&&g.j8("nintendo switch")){var Q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;D.dc("nxdock",{d:Q})}};
b_=function(D,Q){var m;(m=D.loader)==null||A27(m,Q)};
zh4=function(D){Tv(D.videoData,"html5_set_debugging_opt_in")&&(D=g.H5(),g.KU(0,183)||($t(183,!0),D.save()))};
KRn=function(D,Q){D.lE.O3()||(D.dc("sgap",{f:Q}),D.lE.clearQueue(!1,Q==="pe"))};
X1=function(D){return D.V("html5_disable_video_player_initiated_seeks")&&H1(D.videoData)};
O$u=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);kl(this.api,"isLifaAdPlaying",function(){return Q.api.isLifaAdPlaying()});
this.events.W(D,"serverstitchedvideochange",function(){var m;(m=Q.api.getVideoData())!=null&&m.xB()&&(Q.api.isLifaAdPlaying()?(Q.playbackRate=Q.api.getPlaybackRate(),Q.api.setPlaybackRate(1)):Q.api.setPlaybackRate(Q.playbackRate))});
this.playbackRate=1};
CA=function(D){gg.call(this,"Loop",g.Ra.Hb);this.D=D;var Q=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z",
fill:"white"}}]}:kP7();this.setIcon(Q);this.subscribe("select",this.C,this);D.createClientVe(this.element,this,28661);this.W(D,"settingsMenuVisibilityChanged",this.S);this.listen("click",this.logClick);this.W(D,"onLoopChange",this.onLoopChange);Bj(this,D.getLoopVideo());D.jc().CM(this)};
YHu=function(D){V3.call(this,D);var Q=this;D.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new CA(Q.api),g.O(Q,Q.menuItem))});
D.addEventListener("videodatachange",function(m,P){m=Q.api.getPresentingPlayerType()===2;var W;(W=Q.menuItem)==null||W.FA(!P.isLivePlayback&&!m)})};
a8P=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);kl(this.api,"seekToChapterWithAnimation",function(m){Q.seekToChapterWithAnimation(m)});
kl(this.api,"seekToTimeWithAnimation",function(m,P){Q.seekToTimeWithAnimation(m,P)});
kl(this.api,"renderChapterSeekingAnimation",function(m,P,W){Q.api.renderChapterSeekingAnimation(m,P,W)});
kl(this.api,"setMacroMarkers",function(m){Q.setMacroMarkers(D,m)});
kl(this.api,"changeMarkerVisibility",function(m,P,W){Q.changeMarkerVisibility(m,P,W)});
kl(this.api,"isSameMarkerTypeVisible",function(m){return Q.isSameMarkerTypeVisible(m)})};
A_7=function(D,Q,m){var P=D.api.getCurrentTime()*1E3<Q?1:-1;D.api.renderChapterSeekingAnimation(P,m);D.api.seekTo(Q/1E3,void 0,void 0,void 0,3)};
pxu=function(D,Q){var m,P;return(m=Qu(D,"macroMarkersListEntity",Q))==null?void 0:(P=m.markersList)==null?void 0:P.markerType};
xL9=function(D,Q){var m=g.kA.getState().entities;D=pxu(m,D);Q=g.T(Q.l0);for(var P=Q.next();!P.done;P=Q.next())if(D===pxu(m,P.value))return!0;return!1};
oy=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"videodatachange",function(){Q.updateMetadata()});
this.events.W(D,"presentingplayerstatechange",function(){Xx9(Q)});
this.events.W(D,"SEEK_COMPLETE",function(){SHu(Q)})};
fA=function(D,Q){try{navigator.mediaSession.setActionHandler(D,Q)}catch(m){}};
r_m=function(D){fA("play",function(){D.api.playVideo()});
fA("pause",function(){D.api.pauseVideo()});
fA("seekbackward",function(){D.api.seekBy(-5*D.api.getPlaybackRate())});
fA("seekforward",function(){D.api.seekBy(5*D.api.getPlaybackRate())});
fA("seekto",function(Q){Q=Q.seekTime;Q!=null&&D.api.seekTo(Q)})};
G6P=function(D){var Q,m,P,W;return(Q=D.api.getVideoData().getWatchNextResponse())==null?void 0:(m=Q.playerOverlays)==null?void 0:(P=m.playerOverlayRenderer)==null?void 0:(W=P.browserMediaSession)==null?void 0:W.browserMediaSessionRenderer};
Mru=function(D){var Q=[];if(!D||!D.thumbnails)return Q;D=g.T(D.thumbnails);for(var m=D.next();!m.done;m=D.next())m=m.value,m.url&&(!m.width||m.width<=0||!m.height||m.height<=0||g.AV(m.url)&&Q.push({src:m.url||"",sizes:m.width+"x"+m.height,type:"image/jpeg"}));return Q};
Xx9=function(D){D=D.api.getPlayerStateObject();D=D.isCued()||D.isError()?"none":D.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=D};
SHu=function(D){if(navigator.mediaSession.setPositionState)if(D.api.V("web_player_media_session_infinity")&&D.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(P){}else{var Q=D.api.getProgressState().seekableEnd,m=Math.min(D.api.getCurrentTime(),Q);Q&&Number.isFinite(m)&&navigator.mediaSession.setPositionState({duration:Q,playbackRate:D.api.getPlaybackRate(),position:m})}};
Vz=function(D){V3.call(this,D);var Q=this;this.C=new Map;this.B=this.S=void 0;this.compositeVideoState=null;this.T=void 0;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"modulecreated",function(m){var P;a:{var W,L,u,t=(W=Q.api.getVideoData())==null?void 0:(L=W.getPlayerResponse())==null?void 0:(u=L.overlay)==null?void 0:u.playerControlsOverlayRenderer;if(t&&(W=g.A(t.compositeVideoOverlay,c_h),W==null?0:(P=W.sources)==null?0:P.length))for(P=g.T(W==null?void 0:W.sources),W=P.next();!W.done;W=
P.next())if(W=W.value,W.isActive){P=W;break a}P=void 0}m==="captions"&&(P==null?void 0:P.topLeftCornerX)!==void 0&&(P==null?void 0:P.topLeftCornerY)!==void 0&&(P==null?void 0:P.width)!==void 0&&(P==null?void 0:P.height)!==void 0&&Q.api.EA({top:P.topLeftCornerY,right:1-P.topLeftCornerX-P.width,bottom:1-P.topLeftCornerY-P.height,left:P.topLeftCornerX})});
this.events.W(D,"videodatachange",function(m){var P=Q.api.getVideoData();Q.S=void 0;Q.C.clear();Q.api.aI("compositeembargo",1);var W=P==null?void 0:P.h2.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(W==null?0:W.length)?DY7(Q,W.filter(function(L){return Q_k(Q,L)})):(P==null?0:P.cueRanges)&&DY7(Q,P.cueRanges.filter(function(L){return Q_k(Q,L)}));
m==="dataupdated"&&(P==null?void 0:P.compositeLiveStatusToken)!==Q.B&&(Q.B=P==null?void 0:P.compositeLiveStatusToken,Q.api.Wp())});
this.events.W(D,g.r5("compositeembargo"),function(m){var P;if(((P=Q.S)==null?void 0:P.id)!==m.id&&(Q.api.pF(!0),Q.C.has(m.id))){var W=Q.C.get(m.id);P=Q.api.getVideoData();W=g.T(W);for(var L=W.next();!L.done;L=W.next()){var u=void 0;L=(u=L.value.compositeEmbargo)==null?void 0:u.embargoStatusToken;P.AE!==L&&(P.AE=L,Q.api.Wp());mY_(Q,m)}}});
this.events.W(D,g.GR("compositeembargo"),function(m){var P;if(((P=Q.S)==null?void 0:P.id)===m.id&&(Q.api.pF(!1),Q.C.has(m.id))){if(m=Q.api.getVideoData())m.AE=void 0;Q.api.Wp();mY_(Q)}});
this.events.W(D,"heartbeatRequest",function(m){Q.compositeVideoState!==null&&(m.playbackState||(m.playbackState={}),m.playbackState.compositeVideoState=Q.compositeVideoState)});
this.events.W(D,"internalaudioformatchange",function(m,P){var W=Q.api.getVideoData(void 0,!0);W==null||W.dc("atrkchg",{id:m,m:P});if(W&&ov(W))for(P=Q.api.getAvailableAudioTracks(),P=g.T(P),W=P.next();!W.done;W=P.next())if(W.value.getLanguageInfo().getId()===m){Q.api.G().l0=m;break}});
this.events.W(D,"onPlaybackAudioChange",function(){Q.api.Wp()});
kl(D,"setCompositeParam",function(m){Q.compositeVideoState=m});
this.api.V("web_watch_enable_multiview_manager")&&kl(D,"setCompositeVideoOverlayRendererComponent",function(m){Q.setCompositeVideoOverlayRendererComponent(m)})};
mY_=function(D,Q){var m;((m=D.S)==null?void 0:m.id)!==(Q==null?void 0:Q.id)&&(D.S&&(D.C.delete(D.S.id),D.api.sY([D.S],1)),D.S=Q)};
DY7=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){var P=m.value,W=void 0;m=Number((W=P.playbackRelativePosition)==null?void 0:W.utcTimeMs)/1E3;var L=void 0;W=m+Number((L=P.duration)==null?void 0:L.seconds);L="composite_embargo_"+m;P.onEnter&&(P=P.onEnter.filter(D.J),P.length&&(D.C.set(L,P),D.api.addUtcCueRange(L,m,W,"compositeembargo",!1)))}};
Q_k=function(D,Q){var m;return(m=Q.onEnter)==null?void 0:m.some(D.J)};
PAr=function(D){V3.call(this,D);kl(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));kl(this.api,"updateDownloadState",this.updateDownloadState.bind(this));kl(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));kl(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));kl(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));kl(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));kl(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
Wk9=function(D){V3.call(this,D);var Q=this;this.loaded=!1;this.overlay=null;this.events=new g.gO(D);g.O(this,this.events);this.S=new g.gO(D);g.O(this,this.S);this.events.W(D,"modulesCreated",function(){Q.Y5()&&Q.load()});
this.events.W(D,"modulesDestroyed",function(m){var P=!0;switch(m){case 2:case 3:P=!1;break;case 4:P=Q.api.getPresentingPlayerType()===1}P&&Q.unload()})};
N6=function(D){V3.call(this,D);var Q=this;kl(D,"getAvailableQualityData",function(){return Q.getAvailableQualityData()});
kl(D,"getAvailableQualityDataAndMessaging",function(){return Q.getAvailableQualityDataAndMessaging()})};
iu7=function(D,Q,m){var P=[],W=Q?156595:151874;D=g.T(D);for(var L=D.next();!L.done;L=D.next()){var u=L.value;L=u.video;u={formatId:u.id,qualityLabel:L.qualityLabel,quality:L.quality,isPlayable:Q};if(L=m.get(L.qualityLabel))u.paygatedQualityDetails={paygatedIndicatorText:L.paygatedIndicatorText,endpoint:L.endpoint,veType:W,trackingParams:L.trackingParams};P.push(u)}return P};
s_P=function(D){for(var Q=0,m=0;m<D.length;m++)if(D[m].paygatedQualityDetails){var P=D[m];D.splice(m,1);D.splice(Q,0,P);Q++}};
Lkn=function(D){var Q=new Set,m=new Map,P={};D=g.T(D);for(var W=D.next();!W.done;W=D.next()){W=W.value;var L=W.quality,u=W.isPlayable,t=W.qualityLabel;t&&L&&(u&&m.has(L)&&m.get(L)!==t?Q.add(L):u&&m.set(L,t),P[t]||(P[t]=W))}m=[];P=g.T(Object.values(P));for(D=P.next();!D.done;D=P.next())W=D.value,(D=W.quality)&&!Q.has(D)&&(W.formatId=void 0),m.push(W);return m};
yz=function(D){V3.call(this,D);var Q=this;this.T=1;this.QX=null;this.It={zlc:function(){return Q.T}};
this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"d6de4videobindingchange",function(m){Q.kG(m)});
this.events.W(D,"csiinitialized",function(){utP(Q)})};
utP=function(D){if(dYr()){D.QX=D.api.Dr();D.S=new kS;D.T=2;var Q=g.WF(D.api.G().experiments,"html5_d6de4_defer_timeout_ms");D.QX.Dw("pt_pish");Q?g.tl(function(){tVr(D)},Q):D.api.V("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){tVr(D)}):tVr(D)}};
tVr=function(D){if(dYr()){D.QX=D.api.Dr();var Q=g.WF(D.api.G().experiments,"html5_d6de4_cloud_project_number");D.QX.Dw("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:Q}).then(function(P){D.C=P;var W;(W=D.S)==null||W.resolve();D.QX.Dw("pt_pif")}).catch(function(P){ZX(P,"player_start");
D.QX.Dw("pt_pie");var W;(W=D.S)==null||W.reject(P)})}catch(P){ZX(P,"player_start_catch");
D.api.dc("pfes",{});var m;(m=D.S)==null||m.reject(P)}}};
zcr=function(D,Q){if(D.C&&!D.V("html5_disable_d6de4_mint_debug")){var m=Q.videoId;D.T=3;D.QX.Dw("pt_ms");try{D.C.requestToken(m).then(function(P){D.QX.Dw("pt_mf");if(P=KD(P))Q.Gp={Mkz:P}}).catch(function(P){D.QX.Dw("pt_me");
ZX(P,"player_generate");D.handleError(P,Q)})}catch(P){ZX(P,"player_generate_catch"),D.handleError(P,Q)}}};
bum=function(D,Q){D.api.V("html5_enable_d6de4_cold_start_and_error")&&(Q.Gp={coldStartInfo:{clientState:D.T}})};
ZX=function(D,Q){D.message&&g.l4(Error(Q+"_"+D.message))};
dYr=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
FL=function(D){g.p.call(this,{K:"button",OW:["ytp-pip-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},X:[nX()]});var Q=this;this.api=D;this.listen("click",this.onClick);var m=this.api.VL(),P=m.subscribe("visibilitystatechange",function(){Q.Lh(m.CU())});
this.addOnDisposeCallback(function(){m.Sc(P)});
A2(D,this.element,this);this.Lh(m.CU())};
Tk=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"standardControlsInitialized",function(){Q.createButton()});
g.EO(this.api.G())&&(this.V("web_watch_pip")||this.V("web_shorts_pip"))&&kl(this.api,"setDocumentPictureInPicture",function(m){Q.setDocumentPictureInPicture(m)})};
qPu=function(D){var Q=D.api.getVideoData();D.button.FA(Q.W9)};
CA7=function(D){V3.call(this,D);var Q=this;this.loaded=!1;this.Z=0;this.S=!1;this.U={};this.C=[];this.B=0;this.N=!1;this.events=new g.gO(D);g.O(this,this.events);this.T=new g.gO(D);g.O(this,this.T);this.events.W(D,"modulesCreated",function(){Q.Y5()&&Q.load()});
this.events.W(D,"modulesDestroyed",function(m){var P=Q.api.getPresentingPlayerType();switch(m){case 2:case 3:m=P!==1&&!(P===5||P===6||P===7);break;case 4:m=!Q.S;break;default:m=!0}m&&Q.unload()})};
o6_=function(D,Q){g.hf(D.api.G())&&(Q?D.J.show():D.J.hide())};
fs_=function(D){var Q=D.api.getVideoData().interstitials,m=[];Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next()){P=P.value;var W=m,L=W.push,u=D,t=P.playerVars,z=P.E1,b=P.time,q="yto-"+u.Z++;b=new g.XB(b,b,{id:q,priority:7,namespace:"yto"});u.U[q]={playerVars:t,playerType:z};L.call(W,b);W=D.api.getVideoData(1);W=Object.assign({oauth_token:W.oauthToken},P.playerVars);D.api.preloadVideoByPlayerVars(W,P.E1)}D.api.GY(m,1)};
VVw=function(D){var Q=D.C[D.B];if(Q){var m=D.U[Q];Q=m.playerVars;m=m.playerType;D.S=!0;D.B++;var P=D.api.getVideoData(1);Q=Object.assign({oauth_token:P.oauthToken},Q);D.api.loadVideoByPlayerVars(Q,!0,m,!0);D.S=!1}};
Na7=function(D){D.B<D.C.length?VVw(D):(g.X(D.api.getPlayerStateObject(1),2)&&(D.N=!0),D.S=!0,D.B=0,D.C.length=0,D.api.Lk(),D.S=!1)};
yOh=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);kl(this.api,"musicDisableUi",function(){g.mQ(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
kl(this.api,"musicEnableUi",function(){g.Wo(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
EB=function(D,Q,m){Q=Q===void 0?!0:Q;m=m===void 0?!1:m;g.p.call(this,{K:"div",L:"ytp-suggested-action"});var P=this;this.D=D;this.hU=this.Iy=this.Kh=this.TO=this.B=this.Z=this.expanded=this.enabled=this.GO=!1;this.oy=new g.pJ(function(){P.badge.element.style.width=""},200,this);
this.x9=new g.pJ(function(){hA(P);nA(P)},200,this);
this.k9=this.D.V("delhi_modern_web_player")?40:34;this.dismissButton=new g.p({K:"button",OW:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.O(this,this.dismissButton);this.T=new g.p({K:"div",L:"ytp-suggested-action-badge-expanded-content-container",X:[{K:"label",L:"ytp-suggested-action-badge-title",h0:"{{badgeLabel}}"},this.dismissButton]});g.O(this,this.T);this.wc=new g.p({K:"div",L:"ytp-suggested-action-badge-icon-container",X:[Q?{K:"div",L:"ytp-suggested-action-badge-icon"}:
""]});g.O(this,this.wc);this.badge=new g.p({K:m?"div":"button",OW:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],X:[this.wc,this.T]});g.O(this,this.badge);this.badge.b0(this.element);this.j=new g.mF(this.badge,250,!1,100,function(){P.D.V("web_player_overlay_positioned_layout")&&P.hide()});
g.O(this,this.j);D.V("web_player_overlay_positioned_layout")&&this.hide();this.XT=new g.mF(this.T,250,!1,100);g.O(this,this.XT);this.jD=new g.AN(this.JN0,null,this);g.O(this,this.jD);this.l0=new g.AN(this.nR,null,this);g.O(this,this.l0);g.O(this,this.oy);g.O(this,this.x9);this.D.createServerVe(this.badge.element,this.badge,!0);this.D.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.W(this.D,"onHideControls",function(){P.GJ(!1)});
this.W(this.D,"onShowControls",function(){P.GJ(!0)});
this.W(this.badge.element,"click",this.Ph);this.W(this.dismissButton.element,"click",this.bY);this.W(this.D,"pageTransition",this.Z3);this.W(this.D,"appresize",this.j6);this.W(this.D,"fullscreentoggled",this.uAh);this.W(this.D,"cardstatechange",this.FcO);this.W(this.D,"annotationvisibility",this.Iw0,this);this.W(this.D,"offlineslatestatechange",this.gP0,this)};
hA=function(D){g.sh(D.badge.element,"ytp-suggested-action-badge-with-controls",D.Kh||!D.Z)};
nA=function(D,Q){var m=D.wI();D.expanded!==m&&(D.expanded=m,Q===void 0||Q?(D.jD.stop(),D.l0.stop(),D.oy.stop(),D.jD.start()):(D.T.FA(D.expanded),g.sh(D.badge.element,"ytp-suggested-action-badge-expanded",D.expanded)),D.NG())};
Zu9=function(D){var Q=D.text||"",m=g.La("ytp-suggested-action-badge-title",D.element);m&&g.Zq(m,Q);D.badge.element.setAttribute("aria-label",Q);D.dismissButton.element.setAttribute("aria-label",D.Y9?D.Y9:"")};
gQ=function(D,Q,m,P,W,L){var u={K:"div",L:"ytp-panel"};if(m){var t="ytp-panel-back-button";var z="ytp-panel-title";var b={K:"div",L:"ytp-panel-header",X:[{K:"div",OW:["ytp-panel-back-button-container"],X:[{Y:{"aria-label":"Back to previous menu"},K:"button",OW:["ytp-button",t]}]},{K:"span",OW:[z],Y:D.V("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,X:[m]}]};if(W){var q="ytp-panel-options";b.X.push({K:"button",OW:["ytp-button",q],X:[P]})}u.X=[b]}P=!1;L&&(L={K:"div",
L:"ytp-panel-footer",X:[L]},P=!0,u.X?u.X.push(L):u.X=[L]);g.t1.call(this,u);this.content=Q;P&&u.X?Q.b0(this.element,u.X.length-1):Q.b0(this.element);this.Jv=!1;this.uZ=P;m&&(this.backButton=this.Dx(t),m=this.Dx(z),this.W(this.backButton,"click",this.hm),this.W(m,"click",this.hm),this.Jv=!0,W&&this.W(this.Dx(q),"click",W));Q.subscribe("size-change",this.NV,this);this.W(D,"fullscreentoggled",this.NV);this.D=D};
Fkm=function(D){return D.backButton?(D.backButton.focus(),!0):!1};
g.BJ=function(D,Q,m,P,W,L){Q=Q===void 0?null:Q;var u={role:"menu"};Q&&(u.id=Q);Q=new g.t1({K:"div",L:"ytp-panel-menu",Y:u});gQ.call(this,D,Q,m,P,W,L);this.menuItems=Q;this.items=[];g.O(this,this.menuItems)};
g.wQ=function(D){for(var Q=g.T(D.items),m=Q.next();!m.done;m=Q.next())m.value.unsubscribe("size-change",D.Qb,D);D.items=[];try{g.fa(D.menuItems.element)}catch(L){var P,W;g.l4(new g.OI("Failed to remove menu items from panel menu.",{error:L.message,originalStack:L.stack,childToBeRemoved:(W=(P=D.menuItems.element.firstChild)==null?void 0:P.textContent)!=null?W:"child element not found"}))}D.menuItems.publish("size-change")};
Ta6=function(D,Q){return Q.priority-D.priority};
g.k$=function(D,Q){var m=D.V("web_player_misc_bugfix_a");Q={K:"div",OW:["ytp-popup",Q||""]};m&&(Q.X=[{K:"div",L:"ytp-focus-trap-before",Y:{tabindex:"0"}},{K:"div",L:"ytp-popup-content"},{K:"div",L:"ytp-focus-trap-after",Y:{tabindex:"0"}}]);g.ui.call(this,D,Q,100,!0);var P=this;this.S=[];this.N=this.B=null;this.maxHeight=this.maxWidth=0;this.content=this.element;this.size=new g.Ay(0,0);this.listen("keydown",this.lK);m&&(this.content=this.Dx("ytp-popup-content"),this.W(this.Dx("ytp-focus-trap-before"),
"focus",function(W){P.S[P.S.length-1].J_()||W.preventDefault()}),this.W(this.Dx("ytp-focus-trap-after"),"focus",function(W){P.S[P.S.length-1].Ow()||W.preventDefault()}))};
hc7=function(D){var Q=D.S[D.S.length-1];if(Q){g.cu(D.element,D.maxWidth||"100%",D.maxHeight||"100%");g.YZ(Q.element,"width","");g.YZ(Q.element,"height","");g.YZ(Q.element,"maxWidth","100%");g.YZ(Q.element,"maxHeight","100%");g.YZ(Q.content.element,"height","");var m=g.Dr(Q.element);m.width+=1;m.height+=1;g.YZ(Q.element,"width",m.width+"px");g.YZ(Q.element,"height",m.height+"px");g.YZ(Q.element,"maxWidth","");g.YZ(Q.element,"maxHeight","");var P=0;Q.Jv&&(P=g.Dr(Q.Dx("ytp-panel-header")).height);var W=
0;Q.uZ&&(W=Q.Dx("ytp-panel-footer"),g.YZ(W,"width",m.width+"px"),W=g.Dr(W).height);g.YZ(Q.content.element,"height",m.height-P-W+"px");Q.element instanceof HTMLElement&&(P=Q.element,W=P.scrollWidth-P.clientWidth,P.offsetWidth-P.clientWidth>0&&W>0&&(m.width+=W,g.YZ(Q.element,"width",m.width+"px")));D.size=m}};
g.JA=function(D,Q){var m=D.S[D.S.length-1];m!==Q&&(D.S.push(Q),n6w(D,m,Q))};
g.l_=function(D){if(!(D.S.length<=1)){var Q=D.S.pop(),m=D.S[0];D.S=[m];n6w(D,Q,m,!0)}};
n6w=function(D,Q,m,P){E64(D);Q&&(Q.unsubscribe("size-change",D.oW,D),Q.unsubscribe("back",D.hn,D));m.subscribe("size-change",D.oW,D);m.subscribe("back",D.hn,D);if(D.To){g.mQ(m.element,P?"ytp-panel-animate-back":"ytp-panel-animate-forward");m.b0(D.content);m.focus();D.element.scrollLeft=0;D.element.scrollTop=0;var W=D.size;hc7(D);g.cu(D.element,W);D.B=new g.pJ(function(){g6$(D,Q,m,P)},20,D);
D.B.start()}else m.b0(D.content),Q&&Q.detach()};
g6$=function(D,Q,m,P){D.B.dispose();D.B=null;g.mQ(D.element,"ytp-popup-animating");P?(g.mQ(Q.element,"ytp-panel-animate-forward"),g.Wo(m.element,"ytp-panel-animate-back")):(g.mQ(Q.element,"ytp-panel-animate-back"),g.Wo(m.element,"ytp-panel-animate-forward"));g.cu(D.element,D.size);D.N=new g.pJ(function(){g.Wo(D.element,"ytp-popup-animating");Q.detach();g.iT(Q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);D.N.dispose();D.N=null},250,D);
D.N.start()};
E64=function(D){D.B&&g.XY(D.B);D.N&&g.XY(D.N)};
Iy=function(D){g.k$.call(this,D,"ytp-shopping-product-menu");this.RF=new g.BJ(this.D);g.O(this,this.RF);this.hide();g.JA(this,this.RF);g.Q3(this.D,this.element,4)};
waj=function(D,Q,m){var P,W=Q==null?void 0:(P=Q.text)==null?void 0:P.simpleText;W&&(m=Bau(D,m,W,Q==null?void 0:Q.icon,Q==null?void 0:Q.secondaryIcon),Q.navigationEndpoint&&m.listen("click",function(){D.D.sW("innertubeCommand",Q.navigationEndpoint);D.hide()},D))};
kC6=function(D,Q,m){var P,W=Q==null?void 0:(P=Q.text)==null?void 0:P.simpleText;W&&Bau(D,m,W,Q==null?void 0:Q.icon).listen("click",function(){var L;(Q==null?void 0:(L=Q.icon)==null?void 0:L.iconType)==="HIDE"?D.D.publish("featuredproductdismissed"):Q.serviceEndpoint&&D.D.sW("innertubeCommand",Q.serviceEndpoint);D.hide()},D)};
Bau=function(D,Q,m,P,W){Q=new g.q$(g.C5({},[],!1,!!W),Q,m);W&&Q.updateValue("secondaryIcon",JO_(W));Q.setIcon(JO_(P));g.O(D,Q);D.RF.CM(Q,!0);return Q};
JO_=function(D){if(!D)return null;switch(D.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{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 V0$();case "HIDE":return{K:"svg",Y:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"g",X:[{K:"path",Y:{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 h1()}};
Ry=function(D){EB.call(this,D,!1,!0);this.isCounterfactual=this.C=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.p({K:"button",OW:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.O(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.p({K:"img",L:"ytp-suggested-action-badge-img",Y:{src:"{{url}}"}});
this.thumbnailImage.hide();g.O(this,this.thumbnailImage);this.thumbnailIcon=new g.p({K:"div",L:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.O(this,this.thumbnailIcon);this.banner=new g.p({K:"a",L:"ytp-suggested-action-container",X:[this.thumbnailImage,this.thumbnailIcon,{K:"div",L:"ytp-suggested-action-details",X:[{K:"text",L:"ytp-suggested-action-title",h0:"{{title}}"},{K:"text",L:"ytp-suggested-action-subtitle",h0:"{{subtitle}}"},{K:"text",L:"ytp-suggested-action-metadata-text",
h0:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.O(this,this.banner);this.banner.b0(this.T.element);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.D,g.r5("suggested_action_view_model"),this.Qjq);this.W(this.D,g.GR("suggested_action_view_model"),this.Oj0);this.W(this.overflowButton.element,"click",this.YL);this.W(D,"featuredproductdismissed",this.bY);this.D.createServerVe(this.banner.element,this.banner,!0)};
ls9=function(D){D.isInitialized&&(D.enabled=D.isVisible,D.Iy=D.isVisible,nA(D),D.j6(),D.thumbnailImage.FA(D.isVisible),D.shouldHideDismissButton||D.dismissButton.FA(D.isVisible),D.shouldShowOverflowButton&&D.overflowButton.FA(D.isVisible))};
UB=function(){Ry.apply(this,arguments)};
Is7=function(D){V3.call(this,D);this.S=new UB(this.api);g.O(this,this.S);g.Q3(this.api,this.S.element,4)};
HJ=function(D){V3.call(this,D);var Q=this;this.S=!0;var m=new g.gO(D);g.O(this,m);m.W(D,"internalaudioformatchange",function(P,W){Rc4(Q,P,W)});
m.W(D,"videoplayerreset",function(){UYw(Q)});
m.W(D,"videodatachange",function(P,W){Q.onVideoDataChange(P,W)})};
Rc4=function(D,Q,m){if(m){var P="";Hu7(D,Q)&&(P=Q,D.api.G().l0=Q);if(P&&Kk4(D,P)){gew(D.api,P);var W;xe(H8(D.api.G(),(W=D.api.getVideoData())==null?void 0:g.qO(W)),function(L){j_$(D,P,L)})}}};
UYw=function(D){var Q;if((Q=g_())==null?0:Q.size){var m;xe(H8(D.api.G(),(m=D.api.getVideoData())==null?void 0:g.qO(m)),function(P){(P=$Ym(P))&&Kk4(D,P)&&(D.api.G().l0=P)})}};
j_$=function(D,Q,m){$Ym(m)!==Q&&(ecm([{settingItemId:KA(m),settingOptionValue:{stringValue:Q}}]),xe(D.lS(),function(P){fy$(P,KA(m),{stringValue:Q})}))};
v6j=function(D,Q){Xc(xe(xe(D.lS(),function(m){return CEr(m,[KA(Q)])}),function(m){if(m){m=g.T(m);
for(var P=m.next();!P.done;P=m.next()){var W=P.value;P=W.key;W=W.value;P&&W&&(ecm([{settingItemId:P,settingOptionValue:W}]),UYw(D))}}}),function(){D.S=!0})};
Hu7=function(D,Q){D=D.api.getAvailableAudioTracks();D=g.T(D);for(var m=D.next();!m.done;m=D.next())if(m=m.value,m.getLanguageInfo().getId()===Q)return m;return null};
$Ym=function(D){D=KA(D);var Q=g_();D=Q?Q.get(D):void 0;return D&&D.stringValue?D.stringValue:""};
KA=function(D){var Q=(484).toString();D&&(Q=(483).toString());return Q};
Kk4=function(D,Q){var m;return Q.split(".")[0]!==""&&((m=D.api.getVideoData())==null?void 0:!ov(m))};
ecm=function(D){var Q=g_();Q||(Q=new Map);D=g.T(D);for(var m=D.next();!m.done;m=D.next())m=m.value,Q.set(m.settingItemId,m.settingOptionValue);Q=JSON.stringify(Object.fromEntries(Q));g.wb("yt-player-user-settings",Q,2592E3)};
g.jK=function(D,Q,m,P,W,L,u){g.q$.call(this,g.C5({"aria-haspopup":"true"}),Q,D);this.Cj=P;this.Z=!1;this.T=null;this.options={};this.Em=new g.BJ(m,void 0,D,W,L,u);g.O(this,this.Em);this.listen("keydown",this.lK);this.listen("click",this.open)};
Ou7=function(D){if(D.T){var Q=D.options[D.T];Q.element.getAttribute("aria-checked");Q.element.setAttribute("aria-checked","false");D.T=null}};
YPr=function(D,Q){g.jK.call(this,"Sleep timer",g.Ra.SLEEP_TIMER,D,Q);this.D=D;this.U={};this.B=this.lw("Off");this.N=this.S="";D.V("web_settings_menu_icons")&&(Q=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(Q));
this.C=new g.p({K:"div",OW:["ytp-menuitem-label-wrapper"],X:[{K:"div",h0:"End of video"},{K:"div",OW:["ytp-menuitem-sublabel"],h0:"{{content}}"}]});g.O(this,this.C);this.listen("click",this.onClick);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"presentingplayerstatechange",this.Lh);this.W(D,"settingsMenuVisibilityChanged",this.Gn);D.createClientVe(this.element,this,218889);this.Lh();this.D.sW("onSleepTimerFeatureAvailable")};
ash=function(D){var Q="Off 10 15 20 30 45 60".split(" "),m;((m=D.D.getVideoData())==null?0:m.isLivePlayback)||Q.push("End of video");m=D.D.getPlaylist();var P;m&&((P=m.listId)==null?void 0:P.type)!=="RD"&&Q.push("End of playlist");D.Rg(g.fk(Q,D.lw));D.U=g.r$(Q,D.lw,D);Q=D.lw("End of video");D.options[Q]&&g.bi(D.options[Q],D.C)};
AOr=function(D,Q){var m=D.U[Q],P=m==="End of video"||m==="End of playlist";m==="Off"&&(D.S="");D.D.getPlayerState()!==0&&D.D.getPlayerState()!==5||!P?(D.B=Q,g.jK.prototype.NJ.call(D,Q),D.I4(Q),D.D.sW("onSleepTimerSettingsChanged",m)):D.D.sW("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
$$=function(D){V3.call(this,D);var Q=this;D.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new YPr(Q.api,Q.api.jc()),g.O(Q,Q.menuItem))});
D.addEventListener("openSettingsMenuItem",function(m){if(m==="menu_item_sleep_timer"){if(!Q.menuItem){var P;(P=Q.api.jc())==null||P.YJ()}Q.menuItem.open()}});
kl(D,"resetSleepTimerMenuSettings",function(){Q.resetSleepTimerMenuSettings()});
kl(D,"setSleepTimerTimeLeft",function(m){Q.setSleepTimerTimeLeft(m)});
kl(D,"setVideoTimeLeft",function(m){Q.setVideoTimeLeft(m)})};
par=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"onSnackbarMessage",function(m){switch(m){case 1:m=Q.api.getPlayerStateObject(),m.isBuffering()&&(Q.api.V("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.X(m,8)&&g.X(m,16))&&Q.api.sW("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.vJ=function(D,Q,m,P,W){Q=Q===void 0?!1:Q;P=P===void 0?!1:P;W=W===void 0?!1:W;g.iR.call(this);this.j=W;this.U=!1;this.B=new hJ(this);this.J=this.N=null;this.T=this.C=!1;g.O(this,this.B);this.target=D;this.S=Q;this.Z=m||D;this.U=P;Q&&(g.d9&&this.target.setAttribute("draggable","true"),W||(this.target.style.touchAction="none"));eK(this)};
OB=function(D){g.EI(D.B,!D.S)};
eK=function(D){D.J=null;D.N=null;D.W(Y$("over"),D.uT);D.W("touchstart",D.im);D.S&&D.W(Y$("down"),D.wq0)};
xY7=function(D,Q){for(var m=0;m<Q.changedTouches.length;m++){var P=Q.changedTouches[m];if(P.identifier===D.N)return P}return null};
Y$=function(D){return window.navigator.msPointerEnabled?"MSPointer"+D.charAt(0).toUpperCase()+D.substring(1):"mouse"+D};
ay=function(D){return D&&Xaj?cb(D)||document:document};
SPr=function(D){Xaj=D};
rOw=function(D,Q){g.p.call(this,{K:"div",OW:["ytp-overlay","ytp-speedmaster-overlay"],X:[{K:"div",L:"ytp-speedmaster-user-edu",X:[{K:"div",L:"ytp-speedmaster-label",h0:Q},{K:"div",L:"ytp-speedmaster-icon",h0:"{{icon}}"}]}]});this.D=D;this.S=this.Dx("ytp-speedmaster-user-edu");this.updateValue("icon",f56());g.mQ(this.S,"ytp-speedmaster-has-icon");this.D.createClientVe(this.S,this,173040,!0);this.Qy()};
pA=function(D){V3.call(this,D);var Q=this;this.B=this.T=!1;this.C=new g.gO(D);g.O(this,this.C);this.j="2x";this.speedmasterUserEdu=new rOw(D,this.j);g.O(this,this.speedmasterUserEdu);g.Q3(this.api,this.speedmasterUserEdu.element,4);this.S=new g.vJ(this.api.fh().hj,!0,null,!1,!0);g.O(this,this.S);this.delay=new g.pJ(this.QF,500,this);g.O(this,this.delay);this.C.W(D,"videodatachange",function(){AA(Q)},this);
this.C.W(D,"presentingplayerstatechange",function(){AA(Q)},this);
this.C.W(D,"autonavvisibility",function(){AA(Q)},this);
this.api.VL().subscribe("visibilitystatechange",function(){AA(Q)});
this.C.W(D,"rootnodemousedown",function(m){Q.U=m});
this.V("web_speedmaster_spacebar_control")&&(this.C.W(D,"keyboardserviceglobalkeydown",function(m,P){Q.TO=P;GCP(Q,m,P.Ms,!0)},this),this.C.W(D,"keyboardserviceglobalkeyup",function(m){GCP(Q,m,!1,!1)},this))};
x$=function(D){D.delay.stop();D.S.unsubscribe("dragmove",D.N,D);D.S.unsubscribe("dragend",D.J,D);D.T&&(D.T=!1,D.speedmasterUserEdu.Qy(),D.api.setPlaybackRate(D.Kh),D.api.showControls(),D.t0&&D.api.pauseVideo(),D.V("enable_smart_skip_speedmaster_on_web")&&D.api.publish("speedmasterchanged",!1))};
GCP=function(D,Q,m,P){m||(P?Q.keyCode!==32||Q.repeat||D.T||!D.B||g.xG(D.delay):x$(D))};
AA=function(D){var Q,m;var P=!!D.j&&!((Q=D.api.getVideoData())==null?0:Q.isLivePlayback)&&!D.api.J8()&&D.api.getPresentingPlayerType()!==2&&!g.X(D.api.getPlayerStateObject(),2)&&!((m=g.jh(D.api))==null?0:m.Px())&&!D.api.isEmbedsShortsMode()&&luk(D.api.VL());D.B!==P&&(D.B=P,D.B?D.S.subscribe("dragstart",D.Iy,D):(D.S.unsubscribe("dragstart",D.Iy,D),D.S.unsubscribe("dragmove",D.N,D),D.S.unsubscribe("dragend",D.J,D),x$(D)))};
XL=function(D,Q,m){g.Ab.call(this,Q,D);this.S=m};
g.SK=function(D){J$.call(this);var Q=this;this.S=D;this.J={};this.listener=function(m){Q.dispatchEvent(new XL(Q,m.type,m))}};
cO_=function(D){var Q=D.getVideoData(),m=D.Cn(),P=m.nj(),W=D.G(),L=D.sF(),u=L.gt*8/1024,t=L.Da/1024,z=L.B7,b=L.sL,q=L.playerState.state.toString(16),C=m.getCurrentTime().toFixed(2),f=dM(m.jb(),",",3),V="";if(Q.isDaiEnabled()){Q.enableServerStitchedDai&&(V+=Q.hL?"DS":"SS");V=Q.xB()?V+"LIFA, ":V+"DAI, ";var N=L.Pa;N&&(V+=N)}Cy(Q)&&!Q.xB()&&(V+="LIFAE, ");H1(Q)&&(V+="SABR, ");if(Q.fetchType){switch(Q.fetchType){case "onesie":N="o";break;case "gp":N="gp";break;default:N="gvi"}V+="vd:"+N+", "}(W=W.KI)&&
(V=W.S?V+"wa, ":V+"w, ");V+="s:"+q+" t:"+C+" b:"+f+" ";m.isSeeking()&&(V+="S");m.isPaused()&&(V+="P");m.isEnded()&&(V+="E");D.isOrchestrationLeader()&&(V+=" L");(m=L.JJ)&&(V+=" l:"+m.toFixed());m=L.currentTime;q=Q.n4;m&&m>q.start&&m<q.end&&(V+=" as");m=V;V=g.xK(nc)("_start",void 0);q=[];C=g.T(["pl_i","vir","or_p","orfb","pbs"]);for(f=C.next();!f.done;f=C.next())f=f.value,(W=g.xK(nc)(f,void 0))&&V&&(W-=V,q.push(f+":"+Math.round(W)));V=q.join(" ");q=g.ne();C=g.DZ(D).Oc;f=Q.T&&!Q.T.S?"display:none":
"";if((W=Q.clientPlaybackNonce)&&W.length==16){W+="AAAA";N=0;for(var h="",B=0;B<20;B++)if(N=(N<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(W.charAt(B)),B%5==4){for(var J="",k=0;k<6;k++)J="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(N&31)+J,N>>=5;h+=J}W=h.substr(0,4)+" "+h.substr(4,4)+" "+h.substr(8,4)+" "+(h.substr(12,4)+" "+h.substr(16,4))}else W="";u={video_id_and_cpn:String(Q.videoId)+" / "+W,codecs:"",dims_and_frames:"",bandwidth_kbps:u.toFixed(0)+" Kbps",buffer_health_seconds:z.toFixed(2)+
" s",date:""+(new Date).toString(),drm_style:b?"":"display:none",drm:b,debug_info:m,extra_debug_info:"",bandwidth_style:f,network_activity_style:f,network_activity_bytes:t.toFixed(0)+" KB",shader_info:C,shader_info_style:C?"":"display:none",playback_categories:""};t=P.clientWidth+"x"+P.clientHeight+(q>1?"*"+q.toFixed(2):"");z="-";L.totalVideoFrames&&(z=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames);u.dims_and_frames=t+" / "+z;D=D.getVolume();t=aew(Q);var R;if((R=Q.B)==null?0:R.audio.C)R=
"VB";else{var e;R=((e=Q.B)==null?0:e.audio.S)?"DRC":Math.round(D*t)+"%"}e=Math.round(D)+"% / "+R;R=Q.WO.toFixed(1);isFinite(Number(R))&&(e+=" (content loudness "+R+"dB)");u.volume=e;u.resolution=P.videoWidth+"x"+P.videoHeight;if(P=Q.C){if(e=P.video)R=e.fps,R>1&&(u.resolution+="@"+R),(R=L.fl)&&R.video&&(u.resolution+=" / "+R.video.width+"x"+R.video.height,R.video.fps>1&&(u.resolution+="@"+R.video.fps)),u.codecs=MVw(P),!Q.B||P.audio&&P.video?P.qG&&(u.codecs+=" / "+P.qG+"A"):u.codecs+=" / "+MVw(Q.B),
e.S||e.primaries?(R=e.S||"unknown",R==="smpte2084"?R+=" (PQ)":R==="arib-std-b67"&&(R+=" (HLG)"),u.color=R+" / "+(e.primaries||"unknown"),u.color_style=""):u.color_style="display:none";if(P.debugInfo)for(u.fmt_debug_info="",P=g.T(P.debugInfo),e=P.next();!e.done;e=P.next())e=e.value,u.fmt_debug_info+=e.label+":"+e.text+" ";u.fmt_debug_info_style=u.fmt_debug_info&&u.fmt_debug_info.length>0?"":"display:none"}P=Q.isLivePlayback;e=Q.Ws;u.live_mode_style=P||e?"":"display:none";u.live_latency_style=P?"":
"display:none";if(e)u.live_mode="Post-Live"+(v1(Q)?" Manifestless":"");else if(P){e=L.KC;u.live_latency_secs=e.toFixed(2)+"s";P=v1(Q)?"Manifestless, ":"";Q.Kh&&(P+="Windowed, ");R="Uncertain";if(e>=0&&e<120)if(Q.latencyClass&&Q.latencyClass!=="UNKNOWN")switch(Q.latencyClass){case "NORMAL":R="Optimized for Normal Latency";break;case "LOW":R="Optimized for Low Latency";break;case "ULTRALOW":R="Optimized for Ultra Low Latency";break;default:R="Unknown Latency Setting"}else R=Q.isLowLatencyLiveStream?
"Optimized for Low Latency":"Optimized for Smooth Streaming";P+=R;(e=L.Id)&&(P+=", seq "+e.sequence);u.live_mode=P}!L.isGapless||lH(Q)&&L.O3||(u.playback_categories+="Gapless ");u.playback_categories_style=u.playback_categories?"":"display:none";u.bandwidth_samples=L.TP;u.network_activity_samples=L.yv;u.live_latency_samples=L.Qv;u.buffer_health_samples=L.jw;L=g.Zn(Q);if(Q.cotn||L)u.cotn_and_local_media=(Q.cotn?Q.cotn:"null")+" / "+L;u.cotn_and_local_media_style=u.cotn_and_local_media?"":"display:none";
Tv(Q,"web_player_release_debug")?(u.release_name=d[74],u.release_style=""):u.release_style="display:none";u.debug_info&&V.length>0&&u.debug_info.length+V.length<=60?u.debug_info+=" "+V:u.extra_debug_info=V;u.extra_debug_info_style=u.extra_debug_info&&u.extra_debug_info.length>0?"":"display:none";return u};
MVw=function(D){var Q=/codecs="([^"]*)"/.exec(D.mimeType);return Q&&Q[1]?Q[1]+" ("+D.itag+")":D.itag};
rQ=function(D,Q,m,P,W){g.p.call(this,{K:"div",L:"ytp-horizonchart"});this.U=Q;this.sampleCount=m;this.B=P;this.N=W;this.index=0;this.heightPx=-1;this.T=this.C=null;this.S=Math.round(D/m);this.element.style.width=this.S*this.sampleCount+"px";this.element.style.height=this.U+"em"};
Gk=function(D,Q){if(D.heightPx===-1){var m=null;try{m=g.qi("CANVAS"),D.C=m.getContext("2d")}catch(t){}if(D.C){var P=D.S*D.sampleCount;D.T=m;D.T.width=P;D.T.style.width=P+"px";D.element.appendChild(D.T)}else for(D.sampleCount=Math.floor(D.sampleCount/4),D.S*=4,m=0;m<D.sampleCount;m++)P=g.qi("SPAN"),P.style.width=D.S+"px",P.style.left=D.S*m+"px",D.element.appendChild(P)}m=D.element.clientHeight||24;m!==D.heightPx&&(D.heightPx=m,D.C&&(m=(window.devicePixelRatio||1)>1?2:1,D.T.height=D.heightPx*m,D.T.style.height=
D.heightPx+"px",D.C.scale(1,m)));Q=g.T(Q);for(P=Q.next();!P.done;P=Q.next()){m=D;var W=D.index,L=P.value;for(P=0;P+2<m.B.length&&m.B[P+1]<L;)P++;L=Math.min(1,(L-m.B[P])/(m.B[P+1]-m.B[P]));if(m.C)m.C.fillStyle=m.N[P],m.C.fillRect(W*m.S,0,m.S,m.heightPx),m.C.fillStyle=m.N[P+1],m.C.fillRect(W*m.S,m.heightPx*(1-L),m.S,m.heightPx);else{W=m.element.children[W];var u=window.devicePixelRatio||1;L=Math.min(m.heightPx,Math.round(m.heightPx*L*u)/u)||0;W.style.height=L+"px";W.style.backgroundColor=m.N[P+1];W.style.borderTop=
"solid "+(m.heightPx-L)+"px "+m.N[P]}D.index=(D.index+1)%D.sampleCount}Q=D.index;D.C?D.C.clearRect(Q*D.S,0,D.S,D.heightPx):(D=D.element.children[Q],D.style.height="0px",D.style.borderTop="")};
M6=function(D){var Q=null;Q={K:"button",OW:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},h0:"[X]"};g.p.call(this,{K:"div",OW:["html5-video-info-panel","ytp-sfn"],X:[Q,{K:"div",OW:["html5-video-info-panel-content","ytp-sfn-content"],X:[{K:"div",X:[{K:"div",h0:"Video ID / sCPN"},{K:"span",h0:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{K:"div",X:[{K:"div",h0:"Viewport / Frames"},{K:"span",h0:"{{dims_and_frames}}"}]},{K:"div",X:[{K:"div",h0:"Current / Optimal Res"},{K:"span",
h0:"{{resolution}}"}]},{K:"div",X:[{K:"div",h0:"Volume / Normalized"},{K:"span",h0:"{{volume}}"}]},{K:"div",X:[{K:"div",h0:"Codecs"},{K:"span",h0:"{{codecs}}"}]},{K:"div",Y:{style:"{{shader_info_style}}"},X:[{K:"div",h0:"Shader Info"},{K:"span",h0:"{{shader_info}}"}]},{K:"div",Y:{style:"{{color_style}}"},X:[{K:"div",h0:"Color"},{K:"span",h0:"{{color}}"}]},{K:"div",Y:{style:"{{drm_style}}"},X:[{K:"div",h0:"Protected"},{K:"span",h0:"{{drm}}"}]},{K:"div",Y:{style:"{{bandwidth_style}}"},X:[{K:"div",h0:"Connection Speed"},
{K:"span",X:[{K:"span",h0:"{{bandwidth_chart}}"},{K:"span",h0:"{{bandwidth_kbps}}"}]}]},{K:"div",Y:{style:"{{network_activity_style}}"},X:[{K:"div",h0:"Network Activity"},{K:"span",X:[{K:"span",h0:"{{network_activity_chart}}"},{K:"span",h0:"{{network_activity_bytes}}"}]}]},{K:"div",X:[{K:"div",h0:"Buffer Health"},{K:"span",X:[{K:"span",h0:"{{buffer_health_chart}}"},{K:"span",h0:"{{buffer_health_seconds}}"}]}]},{K:"div",Y:{style:"{{live_latency_style}}"},X:[{K:"div",h0:"Live Latency"},{K:"span",X:[{K:"span",
h0:"{{live_latency_chart}}"},{K:"span",h0:"{{live_latency_secs}}"}]}]},{K:"div",Y:{style:"{{live_mode_style}}"},X:[{K:"div",h0:"Live Mode"},{K:"span",h0:"{{live_mode}}"}]},{K:"div",Y:{style:"{{playback_categories_style}}"},X:[{K:"div",h0:"Playback Categories"},{K:"span",h0:"{{playback_categories}}"}]},{K:"div",Y:{style:"{{fmt_debug_info_style}}"},X:[{K:"div",h0:"Format Debug Info"},{K:"span",h0:"{{fmt_debug_info}}"}]},{K:"div",X:[{K:"div",h0:"Mystery Text"},{K:"span",h0:"{{debug_info}}"}]},{K:"div",
Y:{style:"{{extra_debug_info_style}}"},X:[{K:"div",h0:""},{K:"span",X:[{K:"span",h0:"{{extra_debug_info}}"}]}]},{K:"div",X:[{K:"div",h0:"Date"},{K:"span",h0:"{{date}}"}]},{K:"div",Y:{style:"{{cotn_and_local_media_style}}"},X:[{K:"div",h0:"COTN / Local Media"},{K:"span",h0:"{{cotn_and_local_media}}"}]},{K:"div",Y:{style:"{{release_style}}"},X:[{K:"div",h0:"Player Release"},{K:"span",h0:"{{release_name}}"}]}]}]});this.zO=D;this.position=0;this.N=!0;Q?this.W(this.Dx("ytp-sfn-close"),"click",this.hide):
this.W(this.element,"click",this.hide);D=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];Q="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var m=D.map(function(P){return P/4});
this.Z={};this.S=new rQ(300,1,150,D,Q);g.O(this,this.S);this.updateValue("bandwidth_chart",this.S);this.T=new rQ(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.O(this,this.T);this.updateValue("live_latency_chart",this.T);this.C=new rQ(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.O(this,this.C);this.updateValue("buffer_health_chart",this.C);this.U=new rQ(300,1,150,m,Q);g.O(this,this.U);this.updateValue("network_activity_chart",
this.U);this.delay=new g.pJ(this.Lh,500,this);g.O(this,this.delay);this.B=new g.pJ(this.j,2E4,this);g.O(this,this.B)};
mM4=function(D){V3.call(this,D);var Q=this;kl(D,"getStatsForNerds",function(){return cO_(Q.api)});
J2(D,"showVideoInfo",function(){DM7(Q,!0)});
J2(D,"hideVideoInfo",function(){DM7(Q,!1)});
J2(D,"isVideoInfoVisible",function(){return Qc7(Q)})};
DM7=function(D,Q){var m=Qc7(D);D.Em||(D.Em=new M6(D.api),g.O(D,D.Em),g.Q3(D.api,D.Em.element,4));D.Em.FA(Q);var P=rr(D.api.HY());P&&P.loaded&&m!==Q&&P.x4();Q&&D.api.dc("sfn",{},!0)};
Qc7=function(D){var Q;return!((Q=D.Em)==null||!Q.To)};
cJ=function(){g.v.call(this);this.C=null;this.startTime=this.duration=0;this.delay=new g.AN(this.S,null,this);g.O(this,this.delay)};
PU4=function(D,Q){if(Q.K==="path")return Q.Y.d;if(Q.X)for(var m=0;m<Q.X.length;m++){var P=Q.X[m];if(P&&typeof P!=="string"&&(P=PU4(D,P)))return P}};
La6=function(D,Q,m){m=PU4(D,m);var P=Q.getElementsByTagName("path")[0],W=P.getAttribute("d");if(P.getAttribute("id")){var L=sX();Q=Q.getElementsByTagName("use");for(var u=0;u<Q.length;u++)Q[u].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+L);P.setAttribute("id",L)}var t=Wa_(W),z=Wa_(m);i_7(D,function(b){P.setAttribute("d",scm(t,z,b))},200)};
i_7=function(D,Q,m){D.C=Q;D.startTime=(0,g.T3)();D.duration=m;D.S()};
Wa_=function(D){var Q=[];D=D.match(u59);for(var m=0;m<D.length;m++){var P=D[m]===" "?NaN:Number(D[m]);Q.push(isNaN(P)?D[m]:P)}return Q};
scm=function(D,Q,m){for(var P="",W=0;W<D.length;W++){var L=D[W];P=typeof L==="number"?P+(L+(Q[W]-L)*m):P+L}return P};
DT=function(D){g.p.call(this,{K:"button",OW:["ytp-size-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},h0:"{{icon}}"});this.api=D;this.iS=null;this.transition=new cJ;g.O(this,this.transition);this.W(D,"sizestylechange",this.Lh);this.W(D,"fullscreentoggled",this.Lh);this.W(D,"presentingplayerstatechange",this.Lh);D.createClientVe(this.element,
this,139116);this.Lh();this.listen("click",this.onClick);A2(D,this.element,this)};
dM9=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"standardControlsInitialized",function(){Q.button=new DT(D);g.O(Q,Q.button);D.Fj(Q.button,"RIGHT_CONTROLS_RIGHT")})};
qZ9=function(D){V3.call(this,D);var Q=this,m={};this.QF=(m.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},m.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(P){return t7j(Q,P)},m.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(P){return t7j(Q,P)},m.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return Q.api.G().experiments.Mv("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?Q.J&&Q.Z:Q.J&&Q.U},m.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER=
function(){return Q.Kh},m);
this.Kh=this.Z=this.U=this.J=!1;this.B={};this.events=new g.gO(D);g.O(this,this.events);this.N=new g.vJ(this.api.fh().hj);g.O(this,this.N);this.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.WF(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(m=g.WF(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.TO=new g.pJ(this.NH,m,this),g.O(this,this.TO));this.events.W(D,"videodatachange",function(P,W){if(P!=="dataupdated"||
W.videoId!==Q.videoId||!Pq(Q.timelyActions,zyk(W)))Q.onVideoDataChange(W)});
this.events.W(D,"presentingplayerstatechange",function(P){Q.wl(P)});
D.V("enable_smart_skip_player_controls_shown_on_web")&&(this.events.W(D,"onShowControls",function(){Q.J=!0;Q.NH()}),this.events.W(D,"onHideControls",function(){Q.J=!1}),this.N.subscribe("hoverstart",function(){Q.U=!0;
Q.NH()},this),this.N.subscribe("hoverend",function(){Q.U=!1},this),D.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.W(D,"progressBarHoverStart",function(){Q.Z=!0;
if(Q.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")){var P;(P=Q.TO)==null||g.xG(P)}else Q.NH()}),this.events.W(D,"progressBarHoverEnd",function(){Q.Z=!1;
if(Q.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")){var P;(P=Q.TO)==null||P.stop()}})));
D.V("enable_smart_skip_speedmaster_on_web")&&this.events.W(D,"speedmasterchanged",function(P){(Q.Kh=P)&&Q.NH()});
this.events.W(D,g.r5("timelyAction"),function(P){Q.onCueRangeEnter(P.getId())});
this.events.W(D,g.GR("timelyAction"),function(P){Q.onCueRangeExit(P.getId())});
D.V("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.W(D,"keyboardserviceglobalkeydown",function(P,W){if((yL?P.altKey:P.ctrlKey)&&P.keyCode===39&&Q.j&&Q.S){var L;P=g.A((L=Qp(Q,Q.S))==null?void 0:L.rendererContext,b_n);if(L=Hi(P==null?void 0:P.onTap))Q.api.sW("innertubeCommand",L),W&&(W.sx=!0),W=d_(),(L=n8P(W))&&(P=g.Tq(0))&&SX(W.client,P,L,void 0)}},this);
this.C=new g.p({K:"div",OW:["ytp-player-content","ytp-timely-actions-content"]});this.C.hide();kl(D,"insertTimelyActionUi",function(P){Q.C.element.children.length>0&&g.fa(Q.C.element);P.classList.add("ytp-timely-actions-overlay");Q.C.element.appendChild(P)});
g.O(this,this.C);this.V("web_player_overlay_positioned_layout")?this.events.W(D,"basechromeinitialized",function(){Q.api.s3(Q.C.element,4,!0);Q.C.element.setAttribute("data-overlay-order","10")}):g.Q3(this.api,this.C.element,4)};
CUP=function(D){D.timelyActions&&(D.B=D.timelyActions.reduce(function(Q,m){if(m.cueRangeId===void 0)return Q;Q[m.cueRangeId]=0;return Q},{}))};
Qp=function(D,Q){if(D.timelyActions){D=g.T(D.timelyActions);for(var m=D.next();!m.done;m=D.next())if(m=m.value,m.cueRangeId===Q)return m}};
oI6=function(D,Q){if((D=Qp(D,Q))&&D.onCueRangeExit)return Hi(D.onCueRangeExit)};
t7j=function(D,Q){return D.T===void 0?!1:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===5E3?D.T===72:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===1E4?D.T===74:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===5E3?D.T===71:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===1E4?D.T===73:!1};
fgh=function(D,Q){var m=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);m&&(mn(D),D.Iy=setTimeout(function(){if(D.S!==void 0&&(Q==null?void 0:Q.cueRangeId)===D.S){D.j=!1;var P=oI6(D,D.S);P&&D.api.sW("innertubeCommand",P)}},m))};
mn=function(D){D.Iy&&clearTimeout(D.Iy);D.Iy=void 0;D.j=!1};
zyk=function(D){if(D=D.getWatchNextResponse()){var Q,m;D=(Q=D.playerOverlays)==null?void 0:(m=Q.playerOverlayRenderer)==null?void 0:m.timelyActionsOverlayViewModel;Q=g.A(D,V7j);if(Q!=null&&Q.timelyActions)return Q==null?void 0:Q.timelyActions.map(function(P){return g.A(P,NXw)}).filter(function(P){return!!P})}};
yH7=function(D){V3.call(this,D);var Q=this;J2(this.api,"getPlaybackRate",function(){return Q.api.getPlaybackRate()});
J2(this.api,"setPlaybackRate",function(m){typeof m==="number"&&Q.api.setPlaybackRate(m)})};
PC=function(D,Q,m,P,W){gg.call(this,"VOICE_BOOST",g.Ra.u2);this.D=D;this.T=Q;this.C=m;this.hasVoiceBoostAudioTrack=P;this.getVoiceBoostState=W;this.S=!1;this.Cj=this.D.V("html5_enable_new_audio_settings_menu")?D.jc().YR:D.jc();this.W(D,"videodatachange",this.US.bind(this));this.W(D,"onPlaybackAudioChange",this.US);this.W(D,"audiopreferencechange",this.US);this.D.V("html5_enable_new_audio_settings_menu")||this.setIcon(Etm());this.subscribe("select",this.B,this);this.US()};
Far=function(D){V3.call(this,D);var Q=this;this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"settingsMenuInitialized",function(){Z_n(Q)});
kl(this.api,"getVoiceBoostUserPreference",function(){return Q.getVoiceBoostUserPreference()});
kl(this.api,"setVoiceBoostUserPreference",function(P){Q.setVoiceBoostUserPreference(P)});
kl(this.api,"hasVoiceBoostAudioTrack",function(){return Q.hasVoiceBoostAudioTrack()});
kl(this.api,"getVoiceBoostState",function(){return Q.getVoiceBoostState()});
var m;this.S=(m=rV_())!=null?m:0;this.updateEnvironmentData()};
Z_n=function(D){D.menuItem||(D.menuItem=new PC(D.api,function(Q){D.setVoiceBoostUserPreference(Q)},function(){return D.getVoiceBoostUserPreference()},function(){return D.hasVoiceBoostAudioTrack()},function(){return D.getVoiceBoostState()}),g.O(D,D.menuItem))};
TXr=function(D){D=D.AD();if(!D)return!1;D=g.c0(D).exp||"";return D.includes("xpv")||D.includes("xpe")};
hy4=function(D){D=g.T(g.WC(D,!0));for(var Q=D.next();!Q.done;Q=D.next())if(TXr(Q.value))return!0;return!1};
nI$=function(D,Q){D=g.T(g.WC(D,!0));for(var m=D.next();!m.done;m=D.next())if(m=m.value,TXr(m)){var P={potc:"1",pot:Q};m.url&&(m.url=DG(m.url,P))}};
EI_=function(D){return g.U(function(Q){if(Q.C==1)return g.h4(Q,2),g.I(Q,D,4);if(Q.C!=2)return g.g7(Q,0);g.w7(Q);g.T7(Q)})};
sM=function(D){V3.call(this,D);var Q=this;this.useLivingRoomPoToken=!1;this.J=new g.zz;this.S=!1;this.QX=null;this.Z=!1;this.B=null;this.N=!1;var m=D.G().getWebPlayerContextConfig();this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"spsumpreject",function(P,W,L){Q.N=W;P&&Q.Z&&!Q.B&&(Q.V("html5_generate_content_po_token")&&L?Q.ew(L):Q.V("html5_generate_session_po_token")&&gIP(Q));Q.B||Q.api.dc("stp",{s:+Q.Z,b:+Q.N})});
this.events.W(D,"poTokenVideoBindingChange",function(P){Q.ew(P)});
this.useLivingRoomPoToken=!(m==null||!m.useLivingRoomPoToken);D.addEventListener("csiinitialized",function(){Q.QX=D.Dr();var P=(Q.V("html5_generate_session_po_token")||Q.V("html5_generate_content_po_token"))&&!Q.useLivingRoomPoToken;try{if(Q.V("html5_use_shared_owl_instance"))BX9(Q);else if(P){Q.QX.Dw("pot_isc");var W=g.WF(Q.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");W?(Q.T=jR(),g.tl(function(){iV(Q)},W)):Q.V("html5_webpo_idle_priority_job")?(Q.T=jR(),g.xt(g.S0(),function(){iV(Q)})):
iV(Q)}}catch(L){L instanceof Error&&g.l4(L)}});
D.addEventListener("trackListLoaded",this.a4.bind(this));D.GX(this)};
w2P=function(D){var Q=nD(D.experiments,"html5_web_po_request_key");return Q?Q:g.Nw(D)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
kd$=function(D){var Q=new Q3k,m={},P=(m["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",m);return new V1(Q,D,function(){return P})};
JH7=function(D){return new Nf(D)};
LW=function(D,Q){D.V("html5_webpo_bge_ctmp")&&D.api.dc(Q,{hwpo:!!D.C,hwpor:D.S})};
BX9=function(D){var Q,m;g.U(function(P){if(P.C==1)return LW(D,"swpo_i"),D.T=jR(),uV(D),g.I(P,rf(),2);if(P.C!=3)return Q=P.S,LW(D,"swpo_co"),g.I(P,I$_(Q),3);m=P.S;D.V("html5_web_po_token_disable_caching")||m.F4(150);D.C=m;LW(D,"swpo_cc");EI_(m.Ua()).then(function(){D.S=!0;D.J.resolve();LW(D,"swpo_re")});
g.tl(function(){iV(D);LW(D,"swpo_si")},0);
g.T7(P)})};
Ry4=function(D){var Q=D.api.G(),m=kd$(w2P(Q)),P=m.wG.bind(m);m.wG=function(t){var z;return g.U(function(b){if(b.C==1)return g.I(b,P(t),2);z=b.S;D.api.dc("itr",{});return b.return(z)})};
try{var W=JH7({O_:m,Vc:{maxAttempts:5},l9:{TM:"CLEn",disable:Q.experiments.Mv("html5_web_po_disable_remote_logging")||lg7.includes(g.uY(Q.LI)||""),Uo:O29(Q.experiments),Gs:Q.experiments.Mv("wpo_gel_strz")?function(t){var z=Igk.get(t);z||(z=new brr(t),z=new g.j6(z),Igk.set(t,z));return z}:void 0,
v99:D.V("wpo_dis_lfdms")?0:1E3},Hj0:g.l4});var L=new H$({IF:W,O_:m,onError:g.l4});EI_(L.Ua()).then(function(){D.S=!0;D.J.resolve()});
D.V("html5_web_po_token_disable_caching")||L.F4(150);g.O(D,W);g.O(D,L);D.C=L}catch(t){g.l4(t);var u;(u=W)==null||u.dispose()}};
iV=function(D){var Q=D.api.G();D.QX.Dw("pot_ist");D.C||Ry4(D);D.V("html5_bandaid_attach_content_po_token")||(D.V("html5_generate_session_po_token")&&(uV(D),gIP(D)),Q=g.WF(Q.experiments,"html5_session_po_token_interval_time_ms")||0,Q>0&&(D.U=g.zX(function(){uV(D)},Q)),D.Z=!0)};
uV=function(D){var Q,m,P,W;g.U(function(L){if(!D.V("html5_generate_session_po_token")||D.useLivingRoomPoToken)return L.return();Q=D.api.G();m=g.YK("EOM_VISITOR_DATA")||g.YK("VISITOR_DATA");P=Q.Ft?Q.datasyncId:m;W=nD(Q.experiments,"html5_mock_content_binding_for_session_token")||Q.livingRoomPoTokenId||P;Q.aF=dH(D,W);g.T7(L)})};
dH=function(D,Q){if(!D.C){if(D.T)try{return D.T(Q)}catch(L){g.l4(L)}return""}try{D.QX.Dw(D.S?"pot_cms":"pot_csms");var m={fC:!0,FW:!0,z8:Q};D.V("html5_web_po_token_disable_caching")||(m.yd={VK:Q,Yn:!0,wH:!0});var P=D.C.zU(m);D.QX.Dw(D.S?"pot_cmf":"pot_csmf");if(D.S){var W;(W=D.B)==null||W.resolve();D.B=null;D.N&&(D.N=!1,D.api.app.Zx().nD(!1))}return P}catch(L){return g.l4(L),""}};
gIP=function(D){D.C&&(D.B=new kS,D.J.promise.then(function(){D.QX.Dw("pot_if");uV(D)}))};
g.tD=function(D,Q,m){g.sh(D.element,"ytp-suggestion-set",!!Q.videoId);var P=Q.playlistId;m=Q.vB(m?m:"mqdefault.jpg");var W=null,L=null;Q instanceof Q7&&(Q.lengthText?(W=Q.lengthText||null,L=Q.I1||null):Q.lengthSeconds&&(W=g.ns(Q.lengthSeconds),L=g.ns(Q.lengthSeconds,!0)));var u=!!P;P=u&&c8(P).type==="RD";var t=Q instanceof Q7?Q.isLivePlayback:null,z=Q instanceof Q7?Q.isUpcoming:null,b=Q.author,q=Q.shortViewCount,C=Q.publishedTimeText,f=[],V=[];b&&f.push(b);q&&(f.push(q),V.push(q));C&&V.push(C);m=
{title:Q.title,author:b,author_and_views:f.join(" \u2022 "),aria_label:Q.ariaLabel||g.LZ("Watch $TITLE",{TITLE:Q.title}),duration:W,timestamp:L,url:Q.rT(),is_live:t,is_upcoming:z,is_list:u,is_mix:P,background:m?"background-image: url("+m+")":"",views_and_publish_time:V.join(" \u2022 "),autoplayAlternativeHeader:Q.FC};Q instanceof DY&&(m.playlist_length=Q.playlistLength);D.update(m)};
g.zI=function(D){var Q=D.G(),m=g.Ta||g.m8?{style:"will-change: opacity"}:void 0,P=Q.B,W=["ytp-modern-videowall-still"];Q.C&&W.push("ytp-videowall-show-text");g.p.call(this,{K:"a",OW:W,Y:{href:"{{url}}",target:P?Q.j:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},X:[{K:"div",L:"ytp-modern-videowall-still-image",Y:{style:"{{background}}"},X:[{K:"span",L:"ytp-modern-videowall-still-info-duration",h0:"{{duration}}"}]},{K:"span",L:"ytp-modern-videowall-still-info",
Y:{"aria-hidden":"true"},X:[{K:"span",L:"ytp-modern-videowall-still-info-bg",X:[{K:"span",L:"ytp-modern-videowall-still-info-content",Y:m,X:[{K:"span",L:"ytp-modern-videowall-still-info-title",h0:"{{title}}"},{K:"span",L:"ytp-modern-videowall-still-info-author",h0:"{{author_and_views}}"},{K:"span",L:"ytp-modern-videowall-still-info-live",h0:"Live"}]}]}]},{K:"span",OW:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Y:{"aria-hidden":"true"},X:[{K:"span",L:"ytp-modern-videowall-still-listlabel-icon"},
"Playlist",{K:"span",L:"ytp-modern-videowall-still-listlabel-length",X:[" (",{K:"span",h0:"{{playlist_length}}"},")"]}]},{K:"span",OW:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Y:{"aria-hidden":"true"},X:[{K:"span",L:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{K:"span",L:"ytp-modern-videowall-still-listlabel-length",h0:" (50+)"}]}]});this.suggestion=null;this.C=P;this.api=D;this.S=new g.gO(this);g.O(this,this.S);this.listen("click",this.onClick);
this.listen("keypress",this.onKeyPress);this.S.W(D,"videodatachange",this.onVideoDataChange);D.createServerVe(this.element,this);this.onVideoDataChange()};
g.UM_=function(D,Q){if(D.suggestion!==Q){D.suggestion=Q;var m=D.api.G();g.tD(D,Q,"hqdefault.jpg");if(g.W8(m)&&!D.api.V("web_player_log_click_before_generating_ve_conversion_params")){m=Q.rT();var P={};g.Iv(D.api,"addEmbedsConversionTrackingParams",[P]);m=g.oz(m,P);D.updateValue("url",m)}(Q=(Q=Q.sessionData)&&Q.itct)&&D.api.setTrackingParams(D.element,Q)}};
KaP=function(D,Q){g.p.call(this,{K:"div",OW:["ytp-fullscreen-grid"],X:[{K:"div",L:"ytp-fullscreen-grid-hover-overlay",Y:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},X:[{K:"div",L:"ytp-fullscreen-grid-hover-overlay-chevron",X:[{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"g",Y:{filter:"url(#filter0_d_3104_799356)"},X:[{K:"path",Y:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",
fill:"white"}}]},{K:"defs",X:[{K:"filter",Y:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},X:[{K:"feFlood",Y:{"flood-opacity":"0",result:"BackgroundImageFix"}},{K:"feColorMatrix",Y:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{K:"feOffset"},{K:"feGaussianBlur",Y:{stdDeviation:"0.5"}},{K:"feComposite",Y:{in2:"hardAlpha",operator:"out"}},{K:"feColorMatrix",Y:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},
{K:"feBlend",Y:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{K:"feBlend",Y:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{K:"div",L:"ytp-fullscreen-grid-main-content",X:[{K:"div",L:"ytp-fullscreen-grid-header",X:[{K:"div",L:"ytp-fullscreen-grid-header-buttons",X:[{K:"button",OW:["ytp-grid-replay-button","ytp-button"],Y:{title:"Replay","aria-keyshortcuts":"k","aria-label":"Replay","data-title-no-tooltip":"Replay"},
X:[JJk()]},{K:"button",L:"ytp-fullscreen-grid-header-button",Y:{"aria-label":"{{ariaLabel}}"}}]},{K:"button",OW:["ytp-grid-menu-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.NC()]}]},{K:"div",L:"ytp-fullscreen-grid-stills-container"}]}]});var m=this;this.player=D;this.stills=[];this.videoData=null;this.currentState=0;this.U=this.Dx("ytp-fullscreen-grid-main-content");this.N=this.Dx("ytp-fullscreen-grid-header");D=this.Dx("ytp-fullscreen-grid-header-buttons");this.T=this.Dx("ytp-grid-menu-close");
this.C=this.Dx("ytp-grid-replay-button");this.S=this.Dx("ytp-fullscreen-grid-header-button");this.j=this.Dx("ytp-fullscreen-grid-stills-container");this.B=new g.gO(this);g.O(this,this.B);this.Z=Q;if(this.N&&this.U&&D&&this.j&&this.S&&this.T){if(Q=this.Dx("ytp-fullscreen-grid-hover-overlay"))this.W(Q,"click",this.M1),A2(this.player,Q,this);this.C&&(this.W(this.C,"click",function(P){m.vu(P)}),A2(this.player,this.C,this));
this.S&&this.W(this.S,"click",this.M1);this.T&&this.W(this.T,"click",this.M1);if(Q=this.player.getVideoData(1))this.videoData=Q,H_$(this);this.player.createClientVe(this.N,this,223051);this.B.W(this.player,"videodatachange",this.onVideoDataChange);this.B.W(this.player,"presentingplayerstatechange",this.wl)}};
H_$=function(D){var Q=D.player.getPlayerStateObject();g.sh(D.player.getRootNode(),"ytp-grid-ended-state",g.X(Q,2))};
CW=function(D){V3.call(this,D);var Q=this;this.U=this.S=this.C=0;this.N=null;this.TO=this.B=0;this.isEnded=!1;this.Z=null;var m=new g.gO(D);g.O(this,m);this.Iy=g.WF(this.api.G().experiments,"web_player_default_peeking_px");this.QF=this.api.V("web_player_imax_theater_mode");this.T=this.api.V("web_player_enable_fullscreen_grid_components");m.W(D,"fullscreentoggled",function(){bV(Q)});
m.W(D,"autohideupdate",function(P){P&&Q.C===2&&qH(Q,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED")});
m.W(D,"videodatachange",function(){if(Q.T){var P=Q.api.getVideoData(1);Q.videoData!==P&&Q.C===2&&qH(Q,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");Q.videoData=P}},this);
m.W(D,"sizestylechange",function(){Q.T&&bV(Q)});
kl(this.api,"setFullscreenQuickActions",function(P){Q.setFullscreenQuickActions(P)});
kl(this.api,"setPlayerOverlayVideoDetailsRenderer",function(P){Q.setPlayerOverlayVideoDetailsRenderer(P)});
this.T&&jc4(this,m,D)};
jc4=function(D,Q,m){Q.W(m,"keyboardserviceglobalkeydown",function(P,W){D.T&&P.keyCode===86&&!P.repeat&&D.C!==0&&(W&&(W.zy=!0),$M7(D,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))});
Q.W(D.api.getRootNode(),"wheel",function(P){if(!D.Z){var W;if(D.T&&(W=D.J)!=null&&W.element&&D.C!==0&&oY(D))if(g.mQ(D.api.getRootNode(),"ytp-grid-scrolling"),D.B===0&&(D.B=window.innerHeight),D.C===1)D.B!==0&&(D.S+=P.deltaY/D.B,D.S=Math.min(Math.max(D.S,0),.85),fW(D),eym(D,Math.abs(D.S)>=.85));else if(D.C===2){W=P.deltaY<0;var L,u=((L=D.J)==null?void 0:L.element.scrollTop)===0;W&&u?D.B!==0&&(D.S+=P.deltaY/D.B,fW(D),eym(D,Math.abs(D.S)>=.85)):D.S!==0&&(D.S=0,fW(D))}}},{passive:!0});
Q.W(m,"standardControlsInitialized",function(){if(!D.J){D.J=new KaP(D.api,D.Kh.bind(D));g.O(D,D.J);var P=D.api.getRootNode().querySelector(".ytp-chrome-bottom");P&&P.parentNode&&P.parentNode.insertBefore(D.J.element,P.nextSibling)}});
Q.W(m,"presentingplayerstatechange",function(){Vp(D)});
Q.W(m,"autonavvisibility",function(){Vp(D)});
D.api.VL().subscribe("visibilitystatechange",function(){Vp(D)});
vI7(D,D.C)};
eym=function(D,Q){D.N&&clearTimeout(D.N);Q?O_7(D):D.N=window.setTimeout(function(){O_7(D)},150)};
O_7=function(D){D.N&&(clearTimeout(D.N),D.N=null);D.B=0;D.T&&D.C!==0&&(Math.abs(D.S)>=.15&&$M7(D,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),D.S=0,fW(D),g.Wo(D.api.getRootNode(),"ytp-grid-scrolling"))};
$M7=function(D,Q){D.T&&(Q==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(D.Z&&clearTimeout(D.Z),D.Z=window.setTimeout(function(){D.Z=null},1E3)),D.C===1?qH(D,2,Q):qH(D,1,Q))};
oY=function(D){return D.api.isFullscreen()||D.QF&&D.api.iS()};
bV=function(D){var Q=oY(D);g.sh(D.api.getRootNode(),"ytp-full-bleed-player",Q);D.j&&g.QT(D.j,Q);D.playerOverlayVideoDetailsRenderer&&g.QT(D.playerOverlayVideoDetailsRenderer,Q);D.T&&Vp(D)};
Vp=function(D){if(D.T){var Q;if(D.api.getPresentingPlayerType()===2||D.api.J8()||((Q=g.jh(D.api))==null?0:Q.Px())||D.api.isMinimized())qH(D,0);else{if(Q=g.X(D.api.getPlayerStateObject(),2))qH(D,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(D.isEnded&&!Q){var m=oY(D)?1:0;D.isEnded=Q;qH(D,m)}else oY(D)?D.C!==2&&qH(D,1):qH(D,0);D.isEnded=Q}}};
qH=function(D,Q,m){D.C=Q;var P;(P=D.J)==null||P.pM(Q,m);D.S=0;fW(D);vI7(D,Q)};
vI7=function(D,Q){var m=D.api.getRootNode();g.sh(m,"ytp-fullscreen-grid-peeking",Q===1);g.sh(m,"ytp-fullscreen-grid-active",Q===2);Q=D.api.getRootNode();D.TO=D.Iy;Q.style.setProperty("--ytp-grid-peek-height",D.TO+"px")};
fW=function(D){requestAnimationFrame(function(){var Q=D.S-D.U,m=Q;D.S!==0&&(m=Math.max(-.01,Math.min(Q,.01)));D.U+=m;D.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+D.U.toString());D.U!==D.S&&fW(D)})};
YZk=function(D){V3.call(this,D);var Q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.gO(D);g.O(this,this.events);this.events.W(D,"heartbeatRequest",function(m){if(Q.freePreviewUsageDetails.length||Q.freePreviewWatchedDuration!==null)m.heartbeatRequestParams||(m.heartbeatRequestParams={}),m.heartbeatRequestParams.unpluggedParams||(m.heartbeatRequestParams.unpluggedParams={}),Q.freePreviewUsageDetails.length>0?m.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
Q.freePreviewUsageDetails:m.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Q.freePreviewWatchedDuration}});
kl(D,"setFreePreviewWatchedDuration",function(m){Q.freePreviewWatchedDuration=m});
kl(D,"setFreePreviewUsageDetails",function(m){Q.freePreviewUsageDetails=m})};
NH=function(D){g.v.call(this);this.features=[];var Q=this.S,m=new X6(D),P=new N$(D),W=new N6(D),L=new sM(D);var u=g.f8(D.G())?void 0:new vj(D);var t=new Vz(D),z=new mM4(D),b=new yH7(D),q=new x_(D);var C=g.f8(D.G())?new YZk(D):void 0;var f;var V=(f=D.G().getWebPlayerContextConfig())!=null&&f.cinematicSettingsAvailable?new K5(D):void 0;f=new p5(D);var N=D.V("enable_courses_player_overlay_purchase")?new L17(D):void 0;var h=g.EO(D.G())?new Ptj(D):void 0;var B=new OD(D);var J=D.G().B?new GNw(D):void 0;
var k=g.W8(D.G())?new rK7(D):void 0;var R=D.V("web_player_move_autonav_toggle")&&D.G().kB?new veu(D):void 0;var e=g.EO(D.G())?new a8P(D):void 0;var a=D.V("web_enable_speedmaster")&&g.EO(D.G())?new pA(D):void 0;var G=D.G().M5?void 0:new dM9(D);var S=D.V("report_pml_debug_signal")?new Hi_(D):void 0;var u6=new PAr(D),L9=new Tk(D);var d7=g.jY(D.G())?new yOh(D):void 0;var b6=navigator.mediaSession&&window.MediaMetadata&&D.G().e9?new oy(D):void 0;var mj=D.V("html5_enable_drc")&&!D.G().N?new e9(D):void 0;
var kP=new F6(D);var S$=g.EO(D.G())?new Is7(D):void 0;var DN=D.V("html5_enable_d6de4")?new yz(D):void 0;var V4=g.EO(D.G())&&D.V("web_sleep_timer")?new $$(D):void 0;var uv=g.W8(D.G())?new cKr(D):void 0;var l6=new HJ(D),sq=new pSj(D),KV=new O$u(D);var a4=D.V("enable_sabr_snackbar_message")?new par(D):void 0;var Lg=D.V("web_enable_timely_actions")?new qZ9(D):void 0;var l=new j9(D);var Oq=g.EO(D.G())?new CW(D):void 0;var I4=D.V("html5_enable_voice_boost")?new Far(D):void 0;var Ph=D.V("web_player_loop_settings_menu")&&
D.G().Tb?new YHu(D):void 0;var EU=g.f8(D.G())?void 0:new y3(D);var n=D.V("web_player_playable_sequences_refactor")?new CA7(D):void 0;var Qm=D.V("html5_enable_audio_quality_setting")&&D.V("html5_enable_audio_quality_setting_feature")?new n5(D):void 0;var gC=D.V("html5_ypc_clickwrap_module_refactor")?new Wk9(D):void 0;Q.call(this,m,P,W,L,u,t,z,b,q,C,V,f,N,h,B,J,k,R,e,a,G,S,u6,L9,d7,void 0,b6,mj,kP,void 0,S$,DN,V4,uv,void 0,l6,sq,KV,void 0,a4,Lg,l,Oq,I4,void 0,Ph,void 0,EU,n,Qm,gC,new Kb_(D))};
agP=function(){this.C=this.S=NaN};
AHj=function(D,Q){this.SD=D;this.timerName="";this.T=!1;this.C=NaN;this.B=new agP;this.S=Q||null;this.T=!1};
p2m=function(D,Q,m){var P=g.tf(Q.nh)&&!Q.nh.N;if(Q.nh.CF&&(sO(Q.nh)||Q.nh.t0==="shortspage"||lL(Q.nh)||P)&&!D.T){D.T=!0;D.N=Q.clientPlaybackNonce;g.YK("TIMING_ACTION")||Oj("TIMING_ACTION",D.SD.csiPageType);D.SD.csiServiceName&&Oj("CSI_SERVICE_NAME",D.SD.csiServiceName);if(D.S){P=D.S.Dr();for(var W=g.T(Object.keys(P)),L=W.next();!L.done;L=W.next())L=L.value,kY(L,P[L],D.timerName);P=g.xK(Akr)(D.S.Qw);g.Jd(P,D.timerName);P=D.S;P.S={};P.Qw={}}g.Jd({playerInfo:{visibilityState:g.xK(aH$)()},playerType:"LATENCY_PLAYER_HTML5"},
D.timerName);D.J!==Q.clientPlaybackNonce||Number.isNaN(D.C)||(IH("_start",D.timerName)?m=g.xK(nc)("_start",D.timerName)+D.C:g.l4(new g.OI("attempted to log gapless pbs before CSI timeline started",{cpn:Q.clientPlaybackNonce})));m&&!IH("pbs",D.timerName)&&yp(D,m)}};
yp=function(D,Q,m){kY("pbs",Q!=null?Q:(0,g.T3)(),m!=null?m:D.timerName)};
ZT=function(D){Qor();DRh();D.timerName=""};
xM$=function(D){if(D.S){var Q=D.S;Q.S={};Q.Qw={}}D.T=!1;D.J=void 0;D.C=NaN};
X27=function(D,Q){g.iR.call(this);this.nh=D;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.Z={};this.C=0;if(D=Q.session_data)this.sessionData=SE(D,"&");this.index=Math.max(0,Number(Q.index)||0);this.loop=!!Q.loop;this.startSeconds=Number(Q.startSeconds)||0;this.title=Q.playlist_title||"";this.description=Q.playlist_description||"";this.author=
Q.author||Q.playlist_author||"";Q.video_id&&(this.items[this.index]=Q);if(D=Q.api)typeof D==="string"&&D.length===16?Q.list="PL"+D:Q.playlist=D;if(D=Q.list)switch(Q.listType){case "user_uploads":this.listId=new MS("UU","PLAYER_"+D);break;default:var m=Q.playlist_length;m&&(this.length=Number(m)||0);this.listId=c8(D);if(D=Q.video)this.items=D.slice(0),this.loaded=!0}else if(Q.playlist){D=Q.playlist.toString().split(",");this.index>0&&(this.items=[]);D=g.T(D);for(m=D.next();!m.done;m=D.next())(m=m.value)&&
this.items.push({video_id:m});this.length=this.items.length;if(D=Q.video)this.items=D.slice(0),this.loaded=!0}this.setShuffle(!!Q.shuffle);if(D=Q.suggestedQuality)this.quality=D;this.Z=XG(Q,"playlist_");this.T=(Q=Q.thumbnail_ids)?Q.split(","):[]};
SZ_=function(D){return!!(D.playlist||D.list||D.api)};
rH4=function(D){var Q=D.index+1;return Q>=D.length?0:Q};
Gdh=function(D){var Q=D.index-1;return Q<0?D.length-1:Q};
g.Fe=function(D,Q,m,P){Q=Q!==void 0?Q:D.index;Q=D.items&&Q in D.items?D.items[D.order[Q]]:null;var W=null;Q&&(m&&(Q.autoplay="1"),P&&(Q.autonav="1"),W=new g.ZY(D.nh,Q),g.O(D,W),W.Co=!0,W.startSeconds=D.startSeconds||W.clipStart||0,D.listId&&(W.playlistId=D.listId.toString()));return W};
M79=function(D,Q){D.index=g.eZ(Q,0,D.length-1);D.startSeconds=0};
cHm=function(D,Q){if(Q.video&&Q.video.length){D.title=Q.title||"";D.description=Q.description;D.views=Q.views;D.likes=Q.likes;D.dislikes=Q.dislikes;D.author=Q.author||"";var m=Q.loop;m&&(D.loop=m);m=g.Fe(D);D.items=[];for(var P=g.T(Q.video),W=P.next();!W.done;W=P.next())if(W=W.value)W.video_id=W.encrypted_id,D.items.push(W);D.length=D.items.length;(Q=Q.index)?D.index=Q:D.findIndex(m);D.setShuffle(!1);D.loaded=!0;D.C++;D.S&&D.S()}};
mon=function(D,Q){var m,P,W,L,u,t,z;return g.U(function(b){if(b.C==1){m=g.Sz();var q=D.G(),C={context:g.BU(D),playbackContext:{contentPlaybackContext:{ancestorOrigins:q.ancestorOrigins}}},f=q.getWebPlayerContextConfig();if(f==null?0:f.encryptedHostFlags)C.playbackContext.contentPlaybackContext.encryptedHostFlags=f.encryptedHostFlags;if(f==null?0:f.hideInfo)C.playerParams={showinfo:!1};f=q.embedConfig;var V=D.eZ;var N=Q.docid||Q.video_id||Q.videoId||Q.id;if(!N){N=Q.raw_embedded_player_response;if(!N){var h=
Q.embedded_player_response;h&&(N=JSON.parse(h))}if(N){var B,J,k,R,e,a;N=((a=g.A((B=N)==null?void 0:(J=B.embedPreview)==null?void 0:(k=J.thumbnailPreviewRenderer)==null?void 0:(R=k.playButton)==null?void 0:(e=R.buttonRenderer)==null?void 0:e.navigationEndpoint,g.gw))==null?void 0:a.videoId)||null}else N=null}B=(B=N)?B:void 0;J=D.playlistId?D.playlistId:Q.list;k=Q.listType;if(J){var G;k==="user_uploads"?G={username:J}:G={playlistId:J};DoP(f,V,B,Q,G,q.experiments);C.playlistRequest=G}else Q.playlist?
(G={templistVideoIds:Q.playlist.toString().split(",")},DoP(f,V,B,Q,G,q.experiments),C.playlistRequest=G):B&&(G={videoId:B},V&&q.V("embeds_enable_per_video_embed_config")?G.serializedThirdPartyEmbedConfig=V:f&&(G.serializedThirdPartyEmbedConfig=f),C.singleVideoRequest=G);P=C;W=g.Qd(Qfk);g.h4(b,2);return g.I(b,g.jz(m,P,W),4)}if(b.C!=2)return L=b.S,u=D.G(),Q.raw_embedded_player_response=L,u.QF=iz(Q,g.W8(u)),u.T=u.QF==="EMBEDDED_PLAYER_MODE_PFL",L&&(t=L,t.trackingParams&&bt(t.trackingParams)),b.return(new g.ZY(u,
Q));z=g.w7(b);z instanceof Error||(z=Error("b259802748"));g.JG(z);return b.return(D)})};
DoP=function(D,Q,m,P,W,L){P.index&&(W.playlistIndex=String(Number(P.index)+1));W.videoId=m?m:"";Q&&L.Mv("embeds_enable_per_video_embed_config")?W.serializedThirdPartyEmbedConfig=Q:D&&(W.serializedThirdPartyEmbedConfig=D)};
g.hD=function(D,Q){TI.get(D);TI.set(D,Q)};
g.nW=function(D){g.iR.call(this);this.loaded=!1;this.player=D};
PG6=function(){this.C=[];this.S=[]};
g.WC=function(D,Q){return Q?D.S.concat(D.C):D.S};
g.EM=function(D,Q){switch(Q.kind){case "asr":W7$(Q,D.C);break;default:W7$(Q,D.S)}};
W7$=function(D,Q){g.y4(Q,function(m){return D.equals(m)})||Q.push(D)};
g.gH=function(D){g.v.call(this);this.zO=D;this.C=new PG6;this.T=null;this.J=[];this.Z=[]};
g.BC=function(D,Q,m){g.gH.call(this,D);this.videoData=Q;this.audioTrack=m;this.S=null;this.B=!1;this.J=Q.hH;this.Z=Q.aU;this.B=g.t2(Q)};
g.iwj=function(D,Q){var m;return D.G().V("safari_live_drm_captions_fix")&&((m=D.getVideoData())==null?0:m.qJ())?!1:g.f8(D.G())&&!Q.isManifestless};
g.wH=function(D,Q){return WE(D.info.mimeType)?Q?D.info.itag===Q:!0:!1};
g.sfP=function(D,Q){if(D.S!=null&&g.iwj(Q,D.S)&&D.S.S.rawcc!=null)return!0;if(!D.VX())return!1;Q=!!D.S&&D.S.isManifestless&&Object.values(D.S.S).some(function(m){return g.wH(m,"386")});
D=!!D.S&&!D.S.isManifestless&&g.sQr(D.S);return Q||D};
g.k0=function(D,Q,m,P,W,L){g.gH.call(this,D);this.videoId=m;this.mC=W;this.eventId=L;this.N={};this.S=null;D=P||g.c0(Q).hl||"";D=D.split("_").join("-");this.B=DG(Q,{hl:D})};
L74=function(D,Q){g.v.call(this);var m=this;this.D=D;this.B=Q;this.Qw={};this.S={};this.C=null;this.T=new Set;this.J=new g.gO(this);this.It={POh:function(){return m.B}};
this.N=this.D.V("web_player_defer_modules");this.di=new Map;g.O(this,this.J);this.J.W(D,"videodatachange",this.onVideoDataChange)};
uX7=function(D,Q){D.C=Q};
g.JD=function(D){return D.di.get("captions")};
oE4=function(D,Q){switch(Q){case "ad":return do7(D);case "annotations_module":return D.D.isEmbedsShortsMode()?D=!1:(Q=D.D,D=Q.G(),Q=Q.getVideoData(),D=D.T||Q.r6||D.controlsType==="3"?!1:D.u0.isEmpty()&&D.playerStyle!=="annotation-editor"&&D.playerStyle!=="live-dashboard"?!!Q.x9||!!g.Ly(Q)||!!g.uN(Q):!0),D;case "asmjs":return toh(D);case "creatorendscreen":return zjk(D);case "embed":return g.W8(D.D.G());case "endscreen":return g.bwn(D);case "heartbeat":return D.oa();case "kids":return VS(D.D.G());
case "remote":return D.D.G().YF;case "miniplayer":return D.D.G().showMiniplayerUiWhenMinimized;case "offline":return D.D.G().H1;case "captions":return qL_(D);case "unplugged":return g.zs(D.D.G());case "ux":return D.D.G().GO;case "webgl":return CG7(D);case "ypc":return D.Cg();case "ypc_clickwrap":return XLj(D.D.getVideoData());case "yto":return D.D.V("web_player_playable_sequences_refactor")?!1:!!D.D.getVideoData().j.includes("yto");default:return g.JG(Error("Module descriptor "+Q+" does not match")),
!1}};
lV=function(D,Q,m,P,W){var L;m=m===void 0?!1:m;P=P===void 0?!1:P;var u=D.di.get(Q);if(!u||P)if(W||(W=function(){lV(D,Q,m,P)}),L||(L=function(){D.D.wi(Q)}),u=u||fv4(D,Q,oE4(D,Q),W,L))D.di.set(Q,u),u.create(),D.D.publish("modulecreated",Q),m&&D.D.cO("onApiChange")};
NU$=function(D){var Q=Q===void 0?!1:Q;var m,P,W,L,u;return g.U(function(t){if(t.C==1)return(m=D.di.get("asmjs"))&&!Q?t.return(m):(P=TI.get("asmjs"))!=null?(W=P,t.Nv(2)):g.I(t,new Promise(function(z,b){Voj(D,"asmjs",function(){var q=TI.get("asmjs");q?z(q):b("cannot load module asmjs")},b)}),3);
t.C!=2&&(W=t.S);L=W;if(!L)return t.return(Promise.reject("cannot load module asmjs"));u=new L(D.D);D.di.set("asmjs",u);u.create();return t.return(u)})};
F7u=function(D){yxw(D)&&D.fW();Zw7(D)&&(lV(D,"captions",!0),lV(D,"endscreen"),D.b$(),lV(D,"creatorendscreen",!0))};
Zw7=function(D){var Q=D.D.getVideoData(),m=D.N&&!Q.isInlinePlaybackNoAd;D.D.V("html5_defer_modules_on_ads_only")&&!Q.isAd()&&(m=!1);return m};
yxw=function(D){D=D.D.getVideoData();var Q;if(Q=D.V("web_player_defer_ad")){if(g.FK(D.j,"ad")||kBw(D)||D.enableServerStitchedDai)D=!1;else{Q=D.playerResponse;D=D.startSeconds;var m=Q==null?void 0:Q.adPlacements;if(Q=m){Q=Number.MAX_VALUE;m=g.T(m);for(var P=m.next();!P.done;P=m.next())if(P=P.value.adPlacementRenderer){var W=void 0,L=(W=P.config)==null?void 0:W.adPlacementConfig;W=void 0;if(((W=L)==null?void 0:W.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var u=W=void 0;L=Number((W=L)==null?void 0:(u=
W.adTimeOffset)==null?void 0:u.offsetStartMilliseconds)||0;u=W=void 0;P=Number(((W=P.renderer)==null?void 0:(u=W.adBreakServiceRenderer)==null?void 0:u.prefetchMilliseconds)||0);P=L-P;P<Q&&(Q=P)}}Q=Q-5E3<=D*1E3}D=Q?!1:!0}Q=D}return Q};
qL_=function(D){var Q=D.D.getVideoData();return!!Q.zY||!!Q.captionTracks.length||g.sfP(Q,D.D)};
g.bwn=function(D){var Q=D.D.G();if(Q.T||lL(Q)||Q.N||!Q.Xw&&!Q.Kd)return!1;var m=D.D.getPresentingPlayerType();if(m===2||m===3)return!1;D=D.D.getVideoData();if(!D)return!1;m=!D.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay");m=D.isLivePlayback&&(!Q.V("allow_live_autoplay")||!m);Q=D.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");return!m||Q};
g.cU=function(D){return D.di.get("webgl")};
CG7=function(D){var Q=D.D.getVideoData();D=D.D.G();var m=g.o5_(),P=D.V("enable_spherical_kabuki"),W=g.Jf(D);if(g.iN(Q))return m||P||W;if(g.PU(Q))return W||m||P;if(g.WU(Q))return W||m||!1;if(g.Ac(Q))return W||!1;m=Q.C&&Q.C.video&&Q.C.video.isHdr();return W&&!g.Xi(Q)&&!m&&D.V("enable_webgl_noop")};
do7=function(D){if(D.D.G().T)return!1;if(D=D.D.getVideoData(1).getPlayerResponse()){var Q=D.adPlacements;if(Q)for(var m=0;m<Q.length;m++)if(Q[m].adPlacementRenderer)return!0;if(D.adSlots)return!0}return!1};
zjk=function(D){if(D.D.isEmbedsShortsMode())return!1;D=D.D;var Q=D.G();if(Q.T)return!1;var m;if(((m=Q.getWebPlayerContextConfig())==null?0:m.embedsEnableEmc3ds)||Q.controlsType==="3")return!1;if(Q.playerStyle==="creator-endscreen-editor")return!0;m=D.getVideoData();return!!m&&(!!g.ev9(m)||!!g.vom(m))};
fv4=function(D,Q,m,P,W){try{if(m){var L=TI.get(Q);if(L)return new L(D.D);Voj(D,Q,P,W)}else D.D.wi(Q)}catch(u){D.D.wi(Q),g.JG(u)}return null};
IY=function(D,Q,m){if(D.D.G().V("html5_dispose_modules_in_order"))for(var P=g.T(TU$),W=P.next();!W.done;W=P.next()){W=W.value;var L=D.di.get(W);L&&(m||L.po(Q))&&(g.Dp(L),D.di.delete(W))}else for(P=g.T(D.di),W=P.next();!W.done;W=P.next())L=g.T(W.value),W=L.next().value,(L=L.next().value)&&(m||L.po(Q))&&(g.Dp(L),D.di.delete(W));D.D.publish("modulesDestroyed",Q)};
RY=function(D){return D.di.get("ad")};
hj9=function(D){if(VS(D.D.G()))return D.di.get("kids")};
rr=function(D){if(D.D.G().YF)return D.di.get("remote")};
g.UM=function(D){if(g.zs(D.D.G()))return D.di.get("unplugged")};
oe9=function(D){if(D.D.G().GO)return D.di.get("ux")};
nE_=function(D){if(D.D.G().showMiniplayerUiWhenMinimized)return D.di.get("miniplayer")};
HC=function(D){if(D.D.G().H1)return D.di.get("offline")};
g.KW=function(D){return D.di.get("annotations_module")};
jM=function(D){return D.di.get("creatorendscreen")};
EEh=function(D){var Q,m;return g.U(function(P){if(P.C==1)return g.I(P,NU$(D),2);m=Q=P.S;return P.return(m)})};
gE_=function(D){return AK(function(){var Q;return(Q=D.di.get("asmjs"))!=null?Q:EEh(D)})};
toh=function(D){return D.D.G().V("html5_allow_asmjs")};
Voj=function(D,Q,m,P){if(D.B){var W=BU7[Q];wHn(D,D.B+W,function(){D.T.add(W);m.call(D)},P)}};
wHn=function(D,Q,m,P){function W(){D.VF()||P.call(D)}
function L(){D.VF()||m.call(D)}
for(var u=g.Wu("SCRIPT"),t=!1,z,b=0;b<u.length;b++){var q=u[b];if(q.src===Q||q.getAttribute("data-original-src")===Q)z=q}z||(z=g.qi("SCRIPT"),z.setAttribute("data-original-src",Q),t=!0);var C=z.onload;z.onload=function(h){fo(L);C&&C.apply(window,[h])};
var f=z.onerror;z.onerror=function(h){if(Math.random()<.01){var B=new g.OI("Unable to load player module",Q,document.location&&document.location.origin);g.JG(B)}fo(W);f&&f(h)};
var V=z,N=V.onreadystatechange;V.onreadystatechange=function(h){switch(V.readyState){case "loaded":case "complete":fo(L)}N&&N(h)};
t&&((u=D.D.G().cspNonce)&&z.setAttribute("nonce",u),g.yf(z,g.ZU(Q)),u=g.Wu("HEAD")[0]||document.body,u.insertBefore(z,u.firstChild),D.addOnDisposeCallback(function(){z.parentNode&&z.parentNode.removeChild(z)}))};
ku6=function(D,Q,m,P,W,L){g.iR.call(this);var u=this;this.target=D;this.api=Q;this.dN=m;this.C=0;this.N=!1;this.B=new g.Yq(NaN,NaN);this.S=new g.gO(this);this.QF=this.T=this.U=null;g.O(this,this.S);Q=W||L?4E3:3E3;this.j=new g.pJ(function(){$0(u,1,!1)},Q,this);
g.O(this,this.j);this.TO=new g.pJ(function(){$0(u,2,!1)},Q,this);
g.O(this,this.TO);this.Iy=new g.pJ(function(){$0(u,2048,!1)},Q,this);
g.O(this,this.Iy);this.Kh=new g.pJ(function(){$0(u,512,!1)},Q,this);
g.O(this,this.Kh);this.t0=3E3;W||(this.T=this.S.W(D,"mouseover",this.uT),this.S.W(D,"mousemove",this.Xz),this.S.W(D,"mouseleave",this.xvD));this.api.V("delhi_modern_web_player")&&this.S.W(D,"wheel",this.xJO,this,!0);a$?this.S.W(D,"keypress",this.WA):this.S.W(D,"focusin",this.Ww);this.J=this.S.W(D,"mousedown",this.GL);this.Z=this.S.W(D,"touchstart",this.XM,void 0,!0);$0(this,640,!0)};
Jx7=function(D){$0(D,4,!1);D.U&&(D.S.qY(D.U),D.U=null,D.T=D.S.W(D.target,"mouseover",D.uT));D.T&&(D.S.qY(D.T),D.T=D.S.W(D.target,"mouseover",D.uT))};
eM=function(D){return D.api.V("allow_autohide_on_paused_videos")?!(D.C&-129):!D.C};
$0=function(D,Q,m){D.VF();var P=eM(D);m?(D.C|=Q,Q&1&&D.j.start(),Q&2&&D.TO.start(),Q&2048&&D.Iy.start()):(D.C&=~Q,Q&1&&D.j.stop(),Q&2&&D.TO.stop(),Q&2048&&D.Iy.stop(),Q&512&&D.Kh.stop());D.C&512&&!(D.C&128)&&g.xG(D.Kh,D.t0);Q=eM(D);P!==Q&&D.publish("autohideupdate",Q)};
g.OM=function(D){g.p.call(this,{K:"button",OW:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Play",title:"Play"},X:["{{largePlayButtonChildren}}"]});this.api=D;this.W(D,"videodatachange",this.Lh);this.W(D,"basechromeinitialized",this.dJD);D=this.api.G();D.U&&vC&&(this.listen("click",this.cz,this),this.listen("touchstart",this.hmc,this));g.tf(D)&&g.mQ(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Lh()};
g.Y0=function(D){var Q=["ytp-cued-thumbnail-overlay"];D.G().N&&Q.push("ytp-exp-contain-thumbnail");g.p.call(this,{K:"div",OW:Q,X:[{K:"div",L:"ytp-cued-thumbnail-overlay-image"}]});Q=this.Dx("ytp-cued-thumbnail-overlay");var m=new g.OM(D);g.O(this,m);m.b0(Q);this.C=new g.gO(this);g.O(this,this.C);this.api=D;this.B=this.Dx("ytp-cued-thumbnail-overlay-image");this.T=m;this.fade=new g.mF(this,250);g.O(this,this.fade);this.S=new g.pJ(this.Lh,0,this);g.O(this,this.S);this.Lh();this.W(D,"appresize",this.MB);
this.W(D,"presentingplayerstatechange",this.onStateChange);this.W(D,"ypcStateChanged",this.W$F);sO(D.G())&&this.W(D,"videoplayerreset",this.onReset)};
g.aY=function(D){g.p.call(this,{K:"div",OW:["ytp-error"],Y:{role:"alert"},X:[{K:"div",L:"ytp-error-content",X:[{K:"div",L:"ytp-error-icon-container",X:[{K:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},X:[{K:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",Y:{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"}}]}]},{K:"div",L:"ytp-error-content-wrap",
X:[{K:"div",L:"ytp-error-content-wrap-reason",h0:"{{content}}"},{K:"div",L:"ytp-error-content-wrap-subreason",h0:"{{subreason}}"}]}]}]});this.api=D;this.keys=[];this.T=!1;D.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.To)};
g.AD=function(D){D=D.split(lv_);for(var Q=[],m=0;m<D.length;m+=3){var P=D[m++].split("\n");Q.push(P[0]);for(var W=1;W<P.length;W++)Q.push({K:"br"}),Q.push(P[W]);m<D.length&&Q.push({K:"a",Y:{href:D[m],target:D[m+1]},h0:D[m+2]})}return{K:"span",X:Q}};
x0=function(D,Q,m,P,W,L,u){P=P===void 0?!1:P;W=W===void 0?!1:W;u=u===void 0?!0:u;W||(W=D.api.G().B);var t=D.api.getVideoData();Q=g.LZ(g.pW[Q]||"",P?{CPN:t.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);P=[];L&&P.push({K:"h2",h0:L});P.push(Q[0]);u&&P.push({K:"br"});P.push({K:"a",Y:{href:m,target:W?"_blank":null},L:"ytp-error-link",h0:Q[2]});D.T=!0;P.push(Q[4]);return{K:"span",X:P}};
Ivw=function(D,Q){for(var m=D.element.getElementsByTagName("a"),P=0;P<m.length;P++){var W=D.W(m[P],"click",Q);D.keys.push(W)}};
Rj$=function(D){for(var Q=0;Q<D.keys.length;Q++)D.qY(D.keys[Q]);D.keys=[]};
Uou=function(D){g.p.call(this,{K:"div",OW:["ytp-overlays-container"],X:[{K:"div",L:"ytp-overlay-top-left"},{K:"div",L:"ytp-overlay-top-right"},{K:"div",L:"ytp-overlay-bottom-left"},{K:"div",L:"ytp-overlay-bottom-right"}]});this.T=this.Dx("ytp-overlay-top-left");this.B=this.Dx("ytp-overlay-top-right");this.S=this.Dx("ytp-overlay-bottom-left");this.C=this.Dx("ytp-overlay-bottom-right");g.Q3(D,this.element,4)};
Xe=function(D,Q,m,P){for(var W=Number(Q.getAttribute("data-overlay-order"))||0,L=0,u=null,t=g.T(m.children),z=t.next();!z.done;z=t.next()){z=z.value;if(P&&z.classList.contains("ytp-overlay-inline-container")){u=z;break}if(W<(Number(z.getAttribute("data-overlay-order"))||0))break;L++}u?Xe(D,Q,u,!1):P?(D=document.createElement("div"),D.classList.add("ytp-overlay-inline-container"),D.setAttribute("data-overlay-order",""+W),u=D,u.appendChild(Q),V0(m,u,L)):V0(m,Q,L)};
Hw7=function(D){var Q={};g.p.call(this,{K:"div",L:"ytp-paid-content-overlay",Y:(Q["aria-live"]="assertive",Q["aria-atomic"]="true",Q["data-overlay-order"]="5",Q)});this.D=D;this.videoId=null;this.T=!1;this.innertubeCommand=this.fn=this.S=null;Q=D.G();D.V("enable_new_paid_product_placement")&&!g.wv(Q)?(this.C=new g.p({K:"a",L:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},X:[{K:"div",L:"ytp-paid-content-overlay-indicator"},{K:"div",L:"ytp-paid-content-overlay-icon",h0:"{{icon}}"},
{K:"div",L:"ytp-paid-content-overlay-text",h0:"{{text}}"},{K:"div",L:"ytp-paid-content-overlay-chevron",h0:"{{chevron}}"}]}),this.W(this.C.element,"click",this.onClick)):this.C=new g.p({K:"div",OW:["ytp-button","ytp-paid-content-overlay-text"],h0:"{{text}}"});this.fade=new g.mF(this.C,250,!1,100);g.O(this,this.C);this.C.b0(this.element);g.O(this,this.fade);this.D.createServerVe(this.element,this);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"presentingplayerstatechange",this.f5)};
jf_=function(D,Q){var m=gow(Q),P=Bs9(Q);if(!Q.Kd||!D.D.xS())if(D.S||D.D.V("enable_paid_content_overlay_bugfix")){if(Q.videoId&&Q.videoId!==D.videoId){var W;(W=D.S)==null||g.SH(W);!D.D.V("enable_paid_content_overlay_bugfix")||m&&P?(D.videoId=Q.videoId,D.T=!!P,D.T&&m&&K7u(D,P,m,Q)):D.T=!1}}else m&&P&&!D.D.V("enable_paid_content_overlay_bugfix")&&K7u(D,P,m,Q)};
K7u=function(D,Q,m,P){D.S&&D.S.dispose();D.S=new g.pJ(D.eJ,Q,D);g.O(D,D.S);P=Sj(P);Q=P==null?void 0:P.navigationEndpoint;var W;P=P==null?void 0:(W=P.icon)==null?void 0:W.iconType;var L;W=(L=g.A(Q,g.KX))==null?void 0:L.url;D.D.setTrackingParams(D.element,(Q==null?void 0:Q.clickTrackingParams)||null);Q&&!W?(D.innertubeCommand=Q,W="#!"):D.innertubeCommand=null;var u;D.C.update({href:(u=W)!=null?u:"#",text:m,icon:P==="MONEY_HAND"?{K:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
X:[{K:"path",Y:{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:W||D.innertubeCommand?g.Vq():null})};
$o9=function(D,Q){D.S&&(g.X(Q,8)&&D.T?(D.T=!1,D.YJ(),D.S.start()):(g.X(Q,2)||g.X(Q,64))&&D.videoId&&(D.videoId=null))};
SM=function(D){g.p.call(this,{K:"div",L:"ytp-spinner",X:[li(),{K:"div",L:"ytp-spinner-message",h0:"If playback doesn't begin shortly, try restarting your device."}]});this.api=D;this.message=this.Dx("ytp-spinner-message");this.S=new g.pJ(this.show,500,this);g.O(this,this.S);this.W(D,"presentingplayerstatechange",this.onStateChange);this.W(D,"playbackstalledatstart",this.C);this.pM(D.getPlayerStateObject())};
rH=function(D){var Q=[{K:"div",OW:["ytp-unmute-icon"],X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}]},
{K:"div",OW:["ytp-unmute-text"],h0:"Tap to unmute"}];Q.push({K:"div",OW:["ytp-unmute-box"],X:[]});g.ui.call(this,D,{K:"button",OW:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],X:[{K:"div",L:"ytp-unmute-inner",X:Q}]},100);this.S=this.clicked=!1;this.api=D;this.api.createClientVe(this.element,this,51663);this.W(D,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.W(D,"presentingplayerstatechange",this.wl);this.listen("click",this.onClick,this);D=D.isMutedByMutedAutoplay()&&
!g.W8(this.api.G());this.FA(D);D&&ej_(this);this.T=D};
ej_=function(D){D.S||(D.S=!0,D.api.logVisibility(D.element,!0))};
g.GI=function(D){g.gO.call(this);var Q=this;this.api=D;this.qM=!1;this.aH=null;this.MP=!1;this.lQ=null;this.ER=this.pL=!1;this.A7=this.WD=null;this.CC=NaN;this.cD=this.GQ=!1;this.iA=0;this.jG=[];this.ll=!1;this.mI={height:0,width:0};this.KS=480;this.UJv=["ytp-player-content","html5-endscreen","ytp-overlay"];this.ww={If:!1};this.ac=null;var m=D.G(),P=D.fh();this.mI=D.getPlayerSize();this.E2=new g.pJ(this.Xm,0,this);g.O(this,this.E2);m.disableOrganicUi||(this.uU=new g.Y0(D),g.O(this,this.uU),g.Q3(D,
this.uU.element,4));this.api.V("web_player_overlay_positioned_layout")&&(this.ac=new Uou(this.api),g.O(this,this.ac));if(vEw(this)){var W=new SM(D);g.O(this,W);W=W.element;g.Q3(D,W,4)}var L=D.getVideoData();this.fO=new ku6(P,D,function(t){return Q.dN(t)},L,m.Ik,!1);
g.O(this,this.fO);this.fO.subscribe("autohideupdate",this.M_,this);eM(this.fO);if(!m.disablePaidContentOverlay){var u=new Hw7(D);g.O(this,u);this.ac?this.ac.s3(u.element,g.wv(m)?3:1):g.Q3(D,u.element,4)}this.aO=new rH(D);g.O(this,this.aO);g.Q3(this.api,this.aO.element,2);this.LN=this.api.isMutedByMutedAutoplay();this.W(D,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.Zt=new g.pJ(this.LG,200,this);g.O(this,this.Zt);this.K8=L.videoId;this.rV=new g.pJ(function(){Q.iA=0},350);
g.O(this,this.rV);this.xD=new g.pJ(function(){Q.cD||Ow7(Q)},350,this);
g.O(this,this.xD);L=D.getRootNode();L.setAttribute("aria-label","YouTube Video Player");switch(m.color){case "white":g.mQ(L,"ytp-color-white")}this.W(D,"appresize",this.MB);this.W(D,"presentingplayerstatechange",this.wl);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"videoplayerreset",this.MJv);this.W(D,"autonavvisibility",function(){Q.EM()});
this.W(D,"sizestylechange",function(){Q.EM()});
this.W(P,"click",this.EJz,this);this.W(P,"dblclick",this.feO,this);this.W(P,"mousedown",this.yxT,this);m.jD&&(this.W(P,"gesturechange",this.Fuz,this),this.W(P,"gestureend",this.oJD,this));this.Wh=[P.hj];this.uU&&this.Wh.push(this.uU.element);W&&this.Wh.push(W);this.api.V("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(P.element,this,247482),this.api.logVisibility(P.element,!0))};
YLm=function(D,Q){if(!Q)return!1;var m=D.api.Cn();if(m.Qg()&&(m=m.nj())&&g.y0(m,Q))return m.controls;for(m=0;m<D.Wh.length;m++)if(g.y0(D.Wh[m],Q))return!1;m=g.T(D.UJv);for(var P=m.next();!P.done;P=m.next())if(g.Q9(Q,P.value))return!1;return Q===D.api.getRootNode()?!1:!0};
avh=function(D){var Q=D.api.getPresentingPlayerType()===2&&(D.api.fh().kC||D.api.G().disableOrganicUi)&&D.api.G().C&&vC&&MH>=11;D=D.api.G().U&&vC;return!(!Q&&!D)};
cC=function(D,Q){return!D.api.isInline()&&!YLm(D,F7(Q))&&g.E9(Q)};
Ow7=function(D){D.fO.YI();if(D.pL&&D.ER)D.ER=!1;else if(!D.api.G().x9&&!D.HI()){var Q=D.api.getPlayerStateObject();g.X(Q,2)&&g.Xh(D.api)||D.T4(Q);!D.api.G().jD||Q.isCued()||g.X(Q,1024)?D.LG():D.Zt.isActive()?(D.cJ(),D.Zt.stop()):D.Zt.start()}};
Ax$=function(D,Q){var m;if((m=D.api.getVideoData())==null?0:m.mutedAutoplay){var P,W;if((P=Q.target)==null?0:(W=P.className)==null?0:W.includes("ytp-info-panel"))return!1}return g.E9(Q)&&D.api.isMutedByMutedAutoplay()?(D.api.unMute(),D.api.getPresentingPlayerType()===2&&D.api.playVideo(),Q=D.api.getPlayerStateObject(),!g.X(Q,4)||g.X(Q,8)||g.X(Q,2)||D.LG(),!0):!1};
pH7=function(D,Q,m){D.api.isFullscreen()?m<1-Q&&D.api.toggleFullscreen():m>1+Q&&D.api.toggleFullscreen()};
vEw=function(D){var Q=$y()&&Hd()>=67&&!D.api.G().U;D=D.api.G().disableOrganicUi;return!g.j8("tizen")&&!QS&&!Q&&!D};
g.D8=function(D){g.p.call(this,{K:"div",X:[{K:"div",L:"ytp-bezel-text-wrapper",X:[{K:"div",L:"ytp-bezel-text",h0:"{{title}}"}]},{K:"div",L:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},X:[{K:"div",L:"ytp-bezel-icon",h0:"{{icon}}"}]}]});this.D=D;this.C=new g.pJ(this.show,10,this);D=this.D.V("delhi_modern_web_player")?1E3:500;this.S=new g.pJ(this.hide,D,this);g.O(this,this.C);g.O(this,this.S);this.hide()};
ml=function(D,Q,m){if(Q<=0){m=J1();Q="muted";var P=0}else m=m?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]},P=Math.floor(Q),Q=P+"volume";Q8(D,m,Q,P+"%")};
xoj=function(D,Q){Q=Q?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]}:f56();var m=D.D.getPlaybackRate(),P=g.LZ("Speed is $RATE",{RATE:String(m)});Q8(D,Q,P,m+"x")};
XH_=function(D,Q){Q=Q?"Subtitles/closed captions on":"Subtitles/closed captions off";Q8(D,YEm(D.D),Q)};
Q8=function(D,Q,m,P){P=P===void 0?"":P;D.updateValue("label",m===void 0?"":m);D.updateValue("icon",Q);g.SH(D.S);D.C.start();D.updateValue("title",P);g.sh(D.element,"ytp-bezel-text-hide",!P)};
SLm=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"span",L:"ytp-cards-button-icon-default",X:[{K:"div",L:"ytp-cards-button-icon",X:[D.G().V("player_new_info_card_format")?yJj():{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{K:"div",L:"ytp-cards-button-title",h0:"Info"}]},{K:"span",L:"ytp-cards-button-icon-shopping",X:[{K:"div",L:"ytp-cards-button-icon",X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",L:"ytp-svg-shadow",Y:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",L:"ytp-svg-fill",Y:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{K:"path",L:"ytp-svg-shadow-fill",Y:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{K:"div",
L:"ytp-cards-button-title",h0:"Shopping"}]}]});this.D=D;this.C=Q;this.S=null;this.fade=new g.mF(this,250,!0,100);g.O(this,this.fade);g.sh(this.C,"ytp-show-cards-title",g.W8(D.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.oo(!0)};
rxP=function(D,Q){g.p.call(this,{K:"div",L:"ytp-cards-teaser",X:[{K:"div",L:"ytp-cards-teaser-box"},{K:"div",L:"ytp-cards-teaser-text",X:D.G().V("player_new_info_card_format")?[{K:"button",L:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Show cards","aria-haspopup":"true"},X:[yJj()]},{K:"img",L:"ytp-cards-teaser-channel-avatar",Y:{alt:"","aria-hidden":"true"}},{K:"span",L:"ytp-cards-teaser-label",h0:"{{text}}"},{K:"button",L:"ytp-cards-teaser-close-button",Y:{"aria-label":"Close"},X:[g.NC()]}]:[{K:"span",
L:"ytp-cards-teaser-label",h0:"{{text}}"}]}]});var m=this;this.D=D;this.yA=Q;this.fade=new g.mF(this,250,!1,250);this.S=null;this.U=new g.pJ(this.ijy,300,this);this.N=new g.pJ(this.lGW,2E3,this);this.B=[];this.C=null;this.Z=new g.pJ(function(){m.element.style.margin="0"},250);
this.onClickCommand=this.T=null;g.O(this,this.fade);g.O(this,this.U);g.O(this,this.N);g.O(this,this.Z);D.G().V("player_new_info_card_format")?(g.mQ(D.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.Dx("ytp-cards-teaser-close-button"),"click",this.Fz),this.W(this.Dx("ytp-cards-teaser-info-icon"),"click",this.J7),this.W(this.Dx("ytp-cards-teaser-label"),"click",this.J7)):this.listen("click",this.J7);this.W(Q.element,"mouseover",this.Eg);this.W(Q.element,"mouseout",this.M2);this.W(D,"cardsteasershow",
this.uZO);this.W(D,"cardsteaserhide",this.eJ);this.W(D,"cardstatechange",this.nt);this.W(D,"presentingplayerstatechange",this.nt);this.W(D,"appresize",this.Zh);this.W(D,"onShowControls",this.Zh);this.W(D,"onHideControls",this.x_);this.listen("mouseenter",this.jX)};
Guh=function(D){g.p.call(this,{K:"button",OW:[Px.BUTTON,Px.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{K:"div",L:Px.TITLE_NOTIFICATIONS_ON,Y:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},X:[g.T1()]},{K:"div",L:Px.TITLE_NOTIFICATIONS_OFF,Y:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},X:[{K:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{K:"path",Y:{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=D;this.S=!1;D.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
Mor=function(D,Q){D.S=Q;D.element.classList.toggle(Px.NOTIFICATIONS_ENABLED,D.S);var m=D.api.getVideoData();m?(Q=Q?m.O0:m.Qx)?(D=D.api.lS())?Kc(D,Q):g.JG(Error("No innertube service available when updating notification preferences.")):g.JG(Error("No update preferences command available.")):g.JG(Error("No video data when updating notification preferences."))};
Dxj=function(D,Q,m){var P=P===void 0?800:P;var W=W===void 0?600:W;var L=document.location.protocol;D=Yx7(L+"//"+D+"/signin?context=popup","feature",Q,"next",L+"//"+location.hostname+"/post_login");cxr(D,m,P,W)};
cxr=function(D,Q,m,P){m=m===void 0?800:m;P=P===void 0?600:P;if(D=g.C6(window,D,"loginPopup","width="+m+",height="+P+",resizable=yes,scrollbars=yes"))b49(function(){Q()}),D.moveTo((screen.width-m)/2,(screen.height-P)/2)};
g.Wx=function(D,Q,m,P,W,L,u,t,z,b,q,C){D=D.charAt(0)+D.substring(1).toLowerCase();m=m.charAt(0)+m.substring(1).toLowerCase();if(Q==="0"||Q==="-1")Q=null;if(P==="0"||P==="-1")P=null;var f=q.G(),V=f.userDisplayName&&g.tf(f);g.p.call(this,{K:"div",OW:["ytp-button","ytp-sb"],X:[{K:"div",L:"ytp-sb-subscribe",Y:V?{title:q.G().V("player_tooltip_data_title_killswitch")?g.LZ("Subscribe as $USER_NAME",{USER_NAME:f.userDisplayName}):"","data-tooltip-title":g.LZ("Subscribe as $USER_NAME",{USER_NAME:f.userDisplayName}),
"aria-label":"Subscribe to channel","data-tooltip-image":I8(f),"data-tooltip-opaque":String(g.W8(f)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},X:[{K:"div",L:"ytp-sb-text",X:[{K:"div",L:"ytp-sb-icon"},D]},Q?{K:"div",L:"ytp-sb-count",h0:Q}:""]},{K:"div",L:"ytp-sb-unsubscribe",Y:V?{title:q.V("player_tooltip_data_title_killswitch")?g.LZ("Subscribed as $USER_NAME",{USER_NAME:f.userDisplayName}):"","data-tooltip-title":g.LZ("Subscribed as $USER_NAME",{USER_NAME:f.userDisplayName}),
"aria-label":"Unsubscribe to channel","data-tooltip-image":I8(f),"data-tooltip-opaque":String(g.W8(f)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},X:[{K:"div",L:"ytp-sb-text",X:[{K:"div",L:"ytp-sb-icon"},m]},P?{K:"div",L:"ytp-sb-count",h0:P}:""]}],Y:{"aria-live":"polite"}});var N=this;this.channelId=u;this.D=q;this.T=C;var h=this.Dx("ytp-sb-subscribe"),B=this.Dx("ytp-sb-unsubscribe");L&&g.mQ(this.element,"ytp-sb-classic");if(W){t?this.S():this.C();var J=function(){if(f.Kh){var R=
N.channelId;if(z||b){var e={c:R};var a;g.fx.isInitialized()&&(a=KAu(e));e=a||"";if(a=q.getVideoData())if(a=a.subscribeCommand){var G=q.lS();G?(Kc(G,a,{botguardResponse:e,feature:z}),q.sW("SUBSCRIBE",R)):g.JG(Error("No innertube service available when updating subscriptions."))}else g.JG(Error("No subscribe command in videoData."));else g.JG(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");h.setAttribute("aria-hidden","true")}else Dxj(g.ZW(N.D.G()),
"sb_button",N.B)},k=function(){var R=N.channelId;
if(z||b){var e=q.getVideoData();Kc(q.lS(),e.unsubscribeCommand,{feature:z});q.sW("UNSUBSCRIBE",R)}h.focus();h.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.W(h,"click",J);this.W(B,"click",k);this.W(h,"keypress",function(R){R.keyCode===13&&J(R)});
this.W(B,"keypress",function(R){R.keyCode===13&&k(R)});
this.W(q,"SUBSCRIBE",this.S);this.W(q,"UNSUBSCRIBE",this.C);this.T&&V&&(hFm(q),A2(q,h,this),A2(q,B,this))}else g.mQ(h,"ytp-sb-disabled"),g.mQ(B,"ytp-sb-disabled")};
Pl7=function(D){g.p.call(this,{K:"div",L:"ytp-title-channel",X:[{K:"div",L:"ytp-title-beacon"},{K:"a",L:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:D.G().j,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",L:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{K:"div",L:"ytp-title-expanded-heading",X:[{K:"div",L:"ytp-title-expanded-title",X:[{K:"a",h0:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:D.G().j,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",L:"ytp-title-expanded-subtitle",h0:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Q=this;this.api=D;this.channel=this.Dx("ytp-title-channel");this.C=this.Dx("ytp-title-channel-logo");this.channelName=this.Dx("ytp-title-expanded-title");this.N=this.Dx("ytp-title-expanded-overlay");this.T=this.S=this.subscribeButton=null;this.B=!1;D.createClientVe(this.C,this,36925);D.createClientVe(this.channelName,this,
37220);g.W8(this.api.G())&&Qh_(this);this.W(D,"videodatachange",this.Lh);this.W(D,"videoplayerreset",this.Lh);this.W(this.channelName,"click",function(m){Q.api.logClick(Q.channelName);g.C6(window,mxm(Q));m.preventDefault()});
this.W(this.C,"click",this.jyO);this.Lh()};
WgP=function(D){if(!D.api.G().cY){var Q=D.api.getVideoData(),m=new g.Wx("Subscribe",null,"Subscribed",null,!0,!1,Q.M4,Q.subscribed,"channel_avatar",null,D.api,!0);D.api.createServerVe(m.element,D);var P;D.api.setTrackingParams(m.element,((P=Q.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);D.W(m.element,"click",function(){D.api.logClick(m.element)});
D.subscribeButton=m;g.O(D,D.subscribeButton);D.subscribeButton.b0(D.N);D.subscribeButton.hide();var W=new Guh(D.api);D.S=W;g.O(D,W);W.b0(D.N);W.hide();D.W(D.api,"SUBSCRIBE",function(){Q.dF&&(W.show(),D.api.logVisibility(W.element,!0))});
D.W(D.api,"UNSUBSCRIBE",function(){Q.dF&&(W.hide(),D.api.logVisibility(W.element,!1),Mor(W,!1))})}};
Qh_=function(D){var Q=D.api.G();WgP(D);D.updateValue("flyoutUnfocusable","true");D.updateValue("channelTitleFocusable","-1");D.updateValue("shouldHideExpandedTitleForA11y","true");D.updateValue("shouldHideExpandedSubtitleForA11y","true");Q.C||Q.k9||(D.W(D.channel,"mouseenter",D.vS),D.W(D.channel,"mouseleave",D.PH),D.W(D.channel,"focusin",D.vS),D.W(D.channel,"focusout",function(m){D.channel.contains(m.relatedTarget)||D.PH()}));
D.T=new g.pJ(function(){D.isExpanded()&&(D.api.logVisibility(D.channelName,!1),D.subscribeButton&&(D.subscribeButton.hide(),D.api.logVisibility(D.subscribeButton.element,!1)),D.S&&(D.S.hide(),D.api.logVisibility(D.S.element,!1)),D.channel.classList.remove("ytp-title-expanded"),D.channel.classList.add("ytp-title-show-collapsed"))},500);
g.O(D,D.T);D.W(D.channel,iq9,function(){shh(D)});
D.W(D.api,"onHideControls",D.H_);D.W(D.api,"appresize",D.H_);D.W(D.api,"fullscreentoggled",D.H_)};
shh=function(D){D.channel.classList.remove("ytp-title-show-collapsed");D.channel.classList.remove("ytp-title-show-expanded")};
Lg_=function(D){var Q=D.api.getPlayerSize();return g.W8(D.api.G())&&Q.width>=524};
mxm=function(D){var Q=D.api.G(),m=D.api.getVideoData(),P=g.R8(Q)+m.jD;g.ny(m)&&(P="https://music.youtube.com"+m.jD);if(!g.W8(Q))return P;Q={};g.Iv(D.api,"addEmbedsConversionTrackingParams",[Q]);return g.oz(P,Q)};
iM=function(D){var Q=g.C5({"aria-haspopup":"true"});g.q$.call(this,Q,D);this.listen("keydown",this.lK)};
sH=function(D,Q){D.element.setAttribute("aria-haspopup",String(Q))};
uT4=function(D,Q){g.p.call(this,{K:"div",L:"ytp-user-info-panel",Y:{"aria-label":"User info"},X:D.G().Kh&&!D.V("embeds_web_always_enable_signed_out_state")?[{K:"div",L:"ytp-user-info-panel-icon",h0:"{{icon}}"},{K:"div",L:"ytp-user-info-panel-content",X:[{K:"div",L:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},h0:"{{watchingAsUsername}}"},{K:"div",L:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},h0:"{{watchingAsEmail}}"}]}]:[{K:"div",L:"ytp-user-info-panel-icon",
h0:"{{icon}}"},{K:"div",L:"ytp-user-info-panel-content",X:[{K:"div",X:[{K:"text",Y:{tabIndex:"{{userInfoFocusable}}"},h0:"Signed out"}]},{K:"div",L:"ytp-user-info-panel-login",X:[{K:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},h0:D.G().cY?"":"Sign in on YouTube"}]}]}]});this.zO=D;this.S=Q;D.G().Kh||D.G().cY||this.W(this.Dx("ytp-user-info-panel-login"),"click",this.CV);this.closeButton=new g.p({K:"button",OW:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.kb()]});this.closeButton.b0(this.element);
g.O(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.SB);this.Lh()};
qa$=function(D,Q,m){g.BJ.call(this,D);var P=this;this.Cj=Q;this.l7=m;this.getVideoUrl=new iM(6);this.iU=new iM(5);this.Uv=new iM(4);this.yX=new iM(3);this.LT=new g.q$(g.C5({href:"{{href}}",target:this.D.G().j},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.q$(g.C5(),1,"Stats for nerds");this.Dy=new g.t1({K:"div",OW:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},h0:"{{text}}"});this.A9=new gQ(this.D,this.Dy);this.Aw=this.aA=null;g.W8(this.D.G())&&(this.closeButton=
new g.p({K:"button",OW:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.kb()]}),g.O(this,this.closeButton),this.closeButton.b0(this.element),this.closeButton.listen("click",this.Uq,this));g.W8(this.D.G())&&(this.YS=new g.q$(g.C5(),8,"Account"),g.O(this,this.YS),this.CM(this.YS,!0),this.YS.listen("click",this.Dj9,this),D.createClientVe(this.YS.element,this.YS,137682));this.D.G().Tb&&(this.rF=new gg("Loop",7),g.O(this,this.rF),this.CM(this.rF,!0),this.rF.listen("click",this.rU0,this),D.createClientVe(this.rF.element,
this.rF,28661));this.D.V("web_player_miniplayer_in_context_menu")&&(this.F5=new g.q$(g.C5(),6,"Miniplayer"),g.O(this,this.F5),this.CM(this.F5,!0),this.F5.listen("click",this.W2W,this),D.createClientVe(this.F5.element,this.F5,62946));g.O(this,this.getVideoUrl);this.CM(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.eCD,this);D.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.O(this,this.iU);this.CM(this.iU,!0);this.iU.listen("click",this.VJv,this);D.createClientVe(this.iU.element,
this.iU,28660);g.O(this,this.Uv);this.CM(this.Uv,!0);this.Uv.listen("click",this.vlc,this);D.createClientVe(this.Uv.element,this.Uv,28658);g.O(this,this.yX);this.CM(this.yX,!0);this.yX.listen("click",this.JUz,this);g.O(this,this.LT);this.CM(this.LT,!0);this.LT.listen("click",this.Gcy,this);g.O(this,this.showVideoInfo);this.CM(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.nBy,this);g.O(this,this.Dy);this.Dy.listen("click",this.IGW,this);g.O(this,this.A9);dxu()&&(this.aA=new g.p({K:"textarea",
L:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.O(this,this.aA),this.aA.b0(this.element));var W;(W=this.YS)==null||W.setIcon(ntP());var L;(L=this.rF)==null||L.setIcon(kP7());var u;(u=this.F5)==null||u.setIcon(nX());this.yX.setIcon({K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{"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.LT.setIcon(V0$());this.showVideoInfo.setIcon(Nb7());this.W(D,"onLoopChange",this.onLoopChange);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"fullscreentoggled",function(){tSP(P)});
zN7(this);bq$(this,this.D.getVideoData())};
L$=function(D,Q){var m=!1;if(D.aA){var P=D.aA.element;P.value=Q;P.select();try{m=document.execCommand("copy")}catch(W){}}m?D.Cj.eJ():(D.Dy.Sk(Q,"text"),g.JA(D.Cj,D.A9),Ia(D.Dy.element),D.aA&&(D.aA=null,zN7(D)));return m};
dxu=function(){var D=document.queryCommandSupported&&document.queryCommandSupported("copy");Xhj("Chromium")>=43&&(D=!0);Xhj("Firefox")<=40&&(D=!1);return D};
tSP=function(D){var Q;(Q=D.F5)==null||Q.FA(!D.D.isFullscreen()&&D.D.getPresentingPlayerType()!==2&&D.D.G().showMiniplayerButton)};
bq$=function(D,Q){var m=D.D.G(),P=D.D.getPresentingPlayerType()===2,W=!P||Q.isListed;W=!m.Iy&&!!Q.videoId&&W;m.playerStyle!=="play"?m="https://support.google.com/youtube/?p=report_playback":(m={contact_type:"playbackissue",html5:1,ei:Q.eventId,v:Q.videoId,p:"movies_playback"},Q.C&&(m.fmt=Q.C.itag),Q.clientPlaybackNonce&&(m.cpn=Q.clientPlaybackNonce),Q.partnerId&&(m.partnerid=Q.partnerId),m=g.oz("//support.google.com/googleplay/",m));D.Uv.FA(W&&Q.allowEmbed);D.getVideoUrl.FA(W);D.iU.FA(W&&!Q.isLivePlayback);
D.LT.Sk(m,"href");var L;(L=D.rF)==null||L.FA(!Q.isLivePlayback&&!P);tSP(D);var u;(u=D.YS)==null||u.FA(!P)};
zN7=function(D){var Q=!!D.aA;g.bi(D.yX,Q?"Copy debug info":"Get debug info");sH(D.yX,!Q);g.bi(D.Uv,Q?"Copy embed code":"Get embed code");sH(D.Uv,!Q);g.bi(D.getVideoUrl,Q?"Copy video URL":"Get video URL");sH(D.getVideoUrl,!Q);g.bi(D.iU,Q?"Copy video URL at current time":"Get video URL at current time");sH(D.iU,!Q);D.Uv.setIcon(Q?Czh():null);D.getVideoUrl.setIcon(Q?ZM():null);D.iU.setIcon(Q?ZM():null)};
Clk=function(D){return g.W8(D.D.G())?D.YS:D.rF};
fth=function(D,Q){g.k$.call(this,D);this.l7=Q;this.T=new g.gO(this);this.j=new g.pJ(this.xjF,1E3,this);this.TO=this.Em=null;g.O(this,this.T);g.O(this,this.j);Q=this.D.G();D.createClientVe(this.element,this,28656);g.mQ(this.element,"ytp-contextmenu");this.D.G().experiments.Mv("delhi_modern_web_player")&&g.EO(Q)&&g.mQ(this.element,"ytp-delhi-modern-contextmenu");oHh(this);this.hide()};
oHh=function(D){g.EI(D.T);var Q=D.D.G();Q.playerStyle==="gvn"||Q.C||Q.k9||(Q=D.D.fh(),D.T.W(Q,"contextmenu",D.TB0),D.T.W(Q,"touchstart",D.onTouchStart,null,!0),D.T.W(Q,"touchmove",D.Yq,null,!0),D.T.W(Q,"touchend",D.Yq,null,!0))};
VSw=function(D){D.D.isFullscreen()?g.Q3(D.D,D.element,10):D.b0(dg(D).body)};
uM=function(D,Q,m){m=m===void 0?240:m;g.p.call(this,{K:"button",OW:["ytp-button","ytp-copylink-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"div",L:"ytp-copylink-icon",h0:"{{icon}}"},{K:"div",L:"ytp-copylink-title",h0:"Copy link",Y:{"aria-hidden":"true"}}]});this.api=D;this.S=Q;this.C=m;this.visible=!1;this.tooltip=this.S.XZ();Q=D.G();this.tooltip.element.setAttribute("aria-live",
"polite");g.sh(this.element,"ytp-show-copylink-title",g.W8(Q));D.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.W(D,"videodatachange",this.Lh);this.W(D,"videoplayerreset",this.Lh);this.W(D,"appresize",this.Lh);this.Lh();this.addOnDisposeCallback(g.av(this.tooltip,this.element))};
N17=function(D){var Q=D.api.G(),m=D.api.getVideoData(),P=D.api.fh().getPlayerSize().width;Q=Q.T;return!!m.videoId&&P>=D.C&&m.m_&&!m.RI&&!D.api.isEmbedsShortsMode()&&!Q};
ySw=function(D){D.updateValue("icon",oq());if(D.api.G().C)D.tooltip.IX(D.element,"Link copied to clipboard");else{D.updateValue("title-attr","Link copied to clipboard");D.updateValue("tooltip-title","Link copied to clipboard");D.tooltip.QP();D.tooltip.IX(D.element);var Q=D.listen("mouseleave",function(){D.qY(Q);D.Lh();D.tooltip.Ko()})}};
Zqj=function(D,Q){return g.U(function(m){if(m.C==1)return g.h4(m,2),g.I(m,navigator.clipboard.writeText(Q),4);if(m.C!=2)return m.return(!0);g.w7(m);var P=m.return,W=!1,L=g.qi("TEXTAREA");L.value=Q;L.setAttribute("readonly","");var u=D.api.getRootNode();u.appendChild(L);if(aW){var t=window.getSelection();t.removeAllRanges();var z=document.createRange();z.selectNodeContents(L);t.addRange(z);L.setSelectionRange(0,Q.length)}else L.select();try{W=document.execCommand("copy")}catch(b){}u.removeChild(L);
return P.call(m,W)})};
Fg7=function(D){g.p.call(this,{K:"div",L:"ytp-doubletap-ui-legacy",X:[{K:"div",L:"ytp-doubletap-fast-forward-ve"},{K:"div",L:"ytp-doubletap-rewind-ve"},{K:"div",L:"ytp-doubletap-static-circle",X:[{K:"div",L:"ytp-doubletap-ripple"}]},{K:"div",L:"ytp-doubletap-overlay-a11y"},{K:"div",L:"ytp-doubletap-seek-info-container",X:[{K:"div",L:"ytp-doubletap-arrows-container",X:[{K:"span",L:"ytp-doubletap-base-arrow"},{K:"span",L:"ytp-doubletap-base-arrow"},{K:"span",L:"ytp-doubletap-base-arrow"}]},{K:"div",
L:"ytp-doubletap-tooltip",X:[{K:"div",L:"ytp-seek-icon-text-container",X:[{K:"div",L:"ytp-seek-icon",h0:"{{seekIcon}}"},{K:"div",L:"ytp-chapter-seek-text-legacy",h0:"{{seekText}}"}]},{K:"div",L:"ytp-doubletap-tooltip-label",h0:"{{seekTime}}"}]}]}]});this.D=D;this.B=new g.pJ(this.show,10,this);this.C=new g.pJ(this.hide,700,this);this.U=this.T=0;this.TO=this.N=!1;this.S=this.Dx("ytp-doubletap-static-circle");g.O(this,this.B);g.O(this,this.C);this.hide();this.Z=this.Dx("ytp-doubletap-fast-forward-ve");
this.j=this.Dx("ytp-doubletap-rewind-ve");this.D.createClientVe(this.Z,this,28240);this.D.createClientVe(this.j,this,28239);this.D.logVisibility(this.Z,!0);this.D.logVisibility(this.j,!0);this.N=D.V("web_show_cumulative_seek_time");this.TO=D.V("web_center_static_circles")};
T1h=function(D,Q){Q=g.LZ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:Q.toString()});D.updateValue("seekTime",Q)};
hN9=function(D){EB.call(this,D,!1,!0);this.QF=[];this.Lj=[];this.element.setAttribute("data-overlay-order","9");this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.t0=new g.p({K:"div",L:"ytp-featured-product-open-in-new"});g.O(this,this.t0);this.countdownTimer=new g.p({K:"text",L:"ytp-featured-product-countdown",h0:"{{content}}"});this.countdownTimer.hide();g.O(this,this.countdownTimer);this.C=new g.p({K:"div",L:"ytp-featured-product-trending",X:[{K:"div",L:"ytp-featured-product-trending-icon"},
{K:"text",L:"ytp-featured-product-trending-text",h0:"{{trendingOffer}}"}]});this.C.hide();g.O(this,this.C);this.overflowButton=new g.p({K:"button",OW:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.O(this,this.overflowButton);this.U=new g.p({K:"text",L:"ytp-featured-product-exclusive-countdown",h0:"{{content}}",Y:{id:"exclusiveCountdown","aria-hidden":"true"}});this.U.hide();g.O(this,this.U);this.N=new g.p({K:"div",L:"ytp-featured-product-exclusive-container",
Y:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},X:[{K:"div",L:"ytp-featured-product-exclusive-badge-container",X:[{K:"div",L:"ytp-featured-product-exclusive-badge",X:[{K:"text",L:"ytp-featured-product-exclusive-badge-text",h0:"{{exclusive}}",Y:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.U]});this.N.hide();g.O(this,this.N);this.banner=new g.p({K:"a",L:"ytp-featured-product-container",X:[{K:"div",L:"ytp-featured-product-thumbnail",X:[{K:"img",Y:{src:"{{thumbnail}}"}},this.t0]},{K:"div",
L:"ytp-featured-product-details",X:[{K:"text",L:"ytp-featured-product-title",h0:"{{title}}"},this.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",L:"ytp-featured-product-price-container",Y:{"aria-label":"{{priceA11yText}}"},X:[{K:"text",L:"ytp-featured-product-price-when-promotion-text-enabled",h0:"{{price}}",Y:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-promotion-text",h0:"{{promotionText}}",Y:{"aria-hidden":"true"}}]}:{K:"div",Y:{"aria-label":"{{priceA11yText}}"},
X:[{K:"text",L:"ytp-featured-product-price",h0:"{{price}}",Y:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-sales-original-price",h0:"{{salesOriginalPrice}}",Y:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-price-drop-reference-price",h0:"{{priceDropReferencePrice}}",Y:{"aria-hidden":"true"}}]},this.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",L:"ytp-featured-product-when-promotion-text-enabled",X:[{K:"text",L:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",
h0:"{{affiliateDisclaimer}}"},this.C,{K:"text",L:"ytp-featured-product-vendor-when-promotion-text-enabled",h0:"{{vendor}}"}]}:{K:"div",X:[{K:"text",L:"ytp-featured-product-affiliate-disclaimer",h0:"{{affiliateDisclaimer}}"},this.D.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.N:null,this.C,{K:"text",L:"ytp-featured-product-vendor",h0:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.O(this,this.banner);this.banner.b0(this.T.element);this.W(this.D,g.r5("featured_product"),
this.CQy);this.W(this.D,g.GR("featured_product"),this.qF);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.dR);this.W(D,"featuredproductdismissed",this.bY)};
nH6=function(D){var Q,m;D=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:m.itemData;var P,W,L;return(D==null||!D.affiliateDisclaimer)&&(D==null?0:(P=D.exclusivesData)==null?0:P.exclusiveOfferLabelText)&&(D==null?0:(W=D.exclusivesData)==null?0:W.expirationTimestampMs)&&(D==null?0:(L=D.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1};
gH9=function(D){var Q,m,P,W,L=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:(P=m.itemData)==null?void 0:(W=P.exclusivesData)==null?void 0:W.expirationTimestampMs;Q=(Number(L)-Date.now())/1E3;if(Q>0){if(Q<604800){var u,t,z,b;m=(u=D.S)==null?void 0:(t=u.bannerData)==null?void 0:(z=t.itemData)==null?void 0:(b=z.exclusivesData)==null?void 0:b.exclusiveOfferCountdownText;if(m!==void 0)for(u=Date.now(),t=g.T(m),z=t.next();!z.done;z=t.next())if(z=z.value,z!==void 0&&z.text!==void 0&&(b=Number(z.textDisplayStartTimestampMs),
!isNaN(b)&&u>=b)){z.insertCountdown?(Q=z.text.replace(/\$0/,String(QE({seconds:Q}))),D.U.Sk(Q)):D.U.Sk(z.text);D.U.show();break}}var q,C,f,V;D.N.update({exclusive:(q=D.S)==null?void 0:(C=q.bannerData)==null?void 0:(f=C.itemData)==null?void 0:(V=f.exclusivesData)==null?void 0:V.exclusiveOfferLabelText});D.N.show();d8(D);var N;(N=D.PY)==null||N.start()}else EHw(D)};
EHw=function(D){var Q;(Q=D.PY)==null||Q.stop();D.U.hide();D.N.hide();t_(D)};
B1P=function(D){var Q,m,P=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:m.itemData;return D.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(P==null||!P.priceReplacementText)&&(P==null?0:P.promotionText)?P==null?void 0:P.promotionText.content:null};
wwj=function(D){var Q,m,P=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:m.itemData,W,L;if(!(P!=null&&P.priceReplacementText||D.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(P==null?0:(W=P.dealsData)==null?0:(L=W.sales)==null?0:L.originalPrice)){var u,t;return P==null?void 0:(u=P.dealsData)==null?void 0:(t=u.sales)==null?void 0:t.originalPrice}return null};
kF_=function(D){var Q,m,P=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:m.itemData,W,L,u,t;if(!((P==null?0:P.priceReplacementText)||D.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(P==null?0:(W=P.dealsData)==null?0:(L=W.sales)==null?0:L.originalPrice))&&(P==null?0:(u=P.dealsData)==null?0:(t=u.priceDrop)==null?0:t.referencePrice)){var z,b;return P==null?void 0:(z=P.dealsData)==null?void 0:(b=z.priceDrop)==null?void 0:b.referencePrice}return null};
JS7=function(D){var Q,m,P=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:m.itemData;if(P==null?0:P.priceReplacementText)return P==null?void 0:P.priceReplacementText;if((P==null?0:P.promotionText)&&D.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var W;return(P==null?void 0:P.price)+" "+(P==null?void 0:(W=P.promotionText)==null?void 0:W.content)}var L,u;if(P==null?0:(L=P.dealsData)==null?0:(u=L.sales)==null?0:u.originalPrice){var t,z;return P==null?void 0:(t=P.dealsData)==
null?void 0:(z=t.sales)==null?void 0:z.salesPriceAccessibilityLabel}var b,q;if(P==null?0:(b=P.dealsData)==null?0:(q=b.priceDrop)==null?0:q.referencePrice){var C,f;return(P==null?void 0:P.price)+" "+(P==null?void 0:(C=P.dealsData)==null?void 0:(f=C.priceDrop)==null?void 0:f.referencePrice)}return P==null?void 0:P.price};
lt7=function(D){if(D.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q,m,P;return D.C.To?null:(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:(P=m.itemData)==null?void 0:P.vendorName}var W,L,u,t,z,b;return D.C.To||D.N.To||((W=D.S)==null?0:(L=W.bannerData)==null?0:(u=L.itemData)==null?0:u.affiliateDisclaimer)?null:(t=D.S)==null?void 0:(z=t.bannerData)==null?void 0:(b=z.itemData)==null?void 0:b.vendorName};
RN7=function(D,Q){z6(D);if(Q){var m=g.kA.getState().entities;m=Qu(m,"featuredProductsEntity",Q);if(m!=null&&m.productsData){Q=[];m=g.T(m.productsData);for(var P=m.next();!P.done;P=m.next()){P=P.value;var W=void 0;if((W=P)!=null&&W.identifier&&P.featuredSegments){D.QF.push(P);var L=void 0;W=g.T((L=P)==null?void 0:L.featuredSegments);for(L=W.next();!L.done;L=W.next()){var u=L.value;L=Itu(u.startTimeSec);L!==void 0&&(u=Itu(u.endTimeSec),Q.push(new g.XB(L*1E3,u===void 0?0x7ffffffffffff:u*1E3,{id:P.identifier,
namespace:"featured_product"})))}}}D.D.GY(Q)}}};
t_=function(D){if(D.trendingOfferEntityKey){var Q=g.kA.getState().entities;if(Q=Qu(Q,"trendingOfferEntity",D.trendingOfferEntityKey)){var m,P,W;Q.encodedSkuId!==((m=D.S)==null?void 0:(P=m.bannerData)==null?void 0:(W=P.itemData)==null?void 0:W.encodedOfferSkuId)?d8(D):(D.C.update({trendingOffer:Q.shortLabel+" \u2022 "+Q.countLabel}),D.C.show(),D.banner.update({vendor:lt7(D)}))}else d8(D)}else d8(D)};
d8=function(D){D.C.hide();D.banner.update({vendor:lt7(D)})};
z6=function(D){D.QF=[];D.qF();D.D.aI("featured_product")};
Uxm=function(D){var Q,m,P,W,L=(Q=D.S)==null?void 0:(m=Q.bannerData)==null?void 0:(P=m.itemData)==null?void 0:(W=P.hiddenProductOptions)==null?void 0:W.dropTimestampMs;Q=(Number(L)-Date.now())/1E3;D.countdownTimer.Sk(QE({seconds:Q}));if(Q>0){var u;(u=D.Kj)==null||u.start()}};
Hqw=function(D){var Q;(Q=D.Kj)==null||Q.stop();D.countdownTimer.hide()};
Itu=function(D){if(D!==void 0&&D.trim()!==""&&(D=Math.trunc(Number(D.trim())),!(isNaN(D)||D<0)))return D};
vH7=function(D,Q,m){g.p.call(this,{K:"div",OW:["ytp-info-panel-action-item"],X:[{K:"div",L:"ytp-info-panel-action-item-disclaimer",h0:"{{disclaimer}}"},{K:"a",OW:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},X:[{K:"div",L:"ytp-info-panel-action-item-icon",h0:"{{icon}}"},{K:"div",L:"ytp-info-panel-action-item-label",h0:"{{label}}"}]}]});this.D=D;this.S=m;this.disclaimer=this.Dx("ytp-info-panel-action-item-disclaimer");this.button=
this.Dx("ytp-info-panel-action-item-button");this.EC=!1;this.D.createServerVe(this.element,this,!0);this.listen("click",this.onClick);D="";m=g.A(Q==null?void 0:Q.onTap,RC);var P=g.A(m,g.KX);this.EC=!1;P?(D=P.url||"",D.startsWith("//")&&(D="https:"+D),this.EC=!0,g.dh(this.button,g.sc(D))):(P=g.A(m,Kg6))&&!this.S?((D=P.phoneNumbers)&&D.length>0?(D="sms:"+D[0],P.messageText&&(D+="?&body="+encodeURI(P.messageText))):D="",this.EC=!0,g.dh(this.button,g.sc(D,[jhr]))):(m=g.A(m,$xw))&&!this.S&&(D=m.phoneNumber?
"tel:"+m.phoneNumber:"",this.EC=!0,g.dh(this.button,g.sc(D,[eN9])));var W;if(m=(W=Q.disclaimerText)==null?void 0:W.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=Q.bodyText)==null?void 0:L.content,icon:h1(),disclaimer:m})}else{this.disclaimer.style.display="none";var u;this.update({label:(u=Q.bodyText)==null?void 0:u.content,icon:h1()})}this.D.setTrackingParams(this.element,Q.trackingParams||null);this.EC&&(this.C={externalLinkData:{url:D}})};
Oq6=function(D,Q){var m=sX();g.ui.call(this,D,{K:"div",L:"ytp-info-panel-detail-skrim",X:[{K:"div",L:"ytp-info-panel-detail",Y:{role:"dialog",id:m},X:[{K:"div",L:"ytp-info-panel-detail-header",X:[{K:"div",L:"ytp-info-panel-detail-title",h0:"{{title}}"},{K:"button",OW:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.NC()]}]},{K:"div",L:"ytp-info-panel-detail-body",h0:"{{body}}"},{K:"div",L:"ytp-info-panel-detail-items"}]}]},250);this.S=Q;this.items=this.Dx("ytp-info-panel-detail-items");
this.T=new g.gO(this);this.itemData=[];this.B=m;this.W(this.Dx("ytp-info-panel-detail-close"),"click",this.eJ);this.W(this.Dx("ytp-info-panel-detail-skrim"),"click",this.eJ);this.W(this.Dx("ytp-info-panel-detail"),"click",function(P){P.stopPropagation()});
g.O(this,this.T);this.D.createServerVe(this.element,this,!0);this.W(D,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",D.getVideoData());this.hide()};
Ya$=function(D,Q){D=g.T(D.itemData);for(var m=D.next();!m.done;m=D.next())m=m.value,m.D.logVisibility(m.element,Q)};
pwn=function(D,Q){g.p.call(this,{K:"div",L:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"div",L:"ytp-info-panel-preview-text",h0:"{{text}}"},{K:"div",L:"ytp-info-panel-preview-chevron",h0:"{{chevron}}"}]});var m=this;this.D=D;this.fn=this.S=this.videoId=null;this.T=this.showControls=this.C=!1;this.W(this.element,"click",function(){D.logClick(m.element);D.HI();th(Q)});
this.fade=new g.mF(this,250,!1,100);g.O(this,this.fade);this.D.createServerVe(this.element,this,!0);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"presentingplayerstatechange",this.hB);this.W(this.D,"paidcontentoverlayvisibilitychange",this.bC);this.W(this.D,"infopaneldetailvisibilitychange",this.bC);var P=D.getVideoData()||{};at9(P)&&AS6(this,P);this.W(D,"onShowControls",this.gR);this.W(D,"onHideControls",this.I3)};
AS6=function(D,Q){if(!Q.Kd||!D.D.xS()){var m=Q.dj||1E4,P=at9(Q);D.S?Q.videoId&&Q.videoId!==D.videoId&&(g.SH(D.S),D.videoId=Q.videoId,P?(xxm(D,m,Q),D.YJ()):(D.eJ(),D.S.dispose(),D.S=null)):P&&(Q.videoId&&(D.videoId=Q.videoId),xxm(D,m,Q),D.YJ())}};
at9=function(D){var Q,m,P,W;return!!((Q=D.h8)==null?0:(m=Q.title)==null?0:m.content)||!!((P=D.h8)==null?0:(W=P.bodyText)==null?0:W.content)};
xxm=function(D,Q,m){D.S&&D.S.dispose();D.S=new g.pJ(D.Bsh,Q,D);g.O(D,D.S);var P;Q=((P=m.h8)==null?void 0:P.trackingParams)||null;D.D.setTrackingParams(D.element,Q);var W;var L,u;if(m==null?0:(L=m.h8)==null?0:(u=L.title)==null?0:u.content){var t;P=(W=m.h8)==null?void 0:(t=W.title)==null?void 0:t.content;var z,b;if((z=m.h8)==null?0:(b=z.bodyText)==null?0:b.content)P+=" \u2022 ";W=P}else W="";var q,C;m=((q=m.h8)==null?void 0:(C=q.bodyText)==null?void 0:C.content)||"";D.update({text:W+m,chevron:g.Vq()})};
Xw$=function(D,Q){D.S&&(g.X(Q,8)?(D.C=!0,D.YJ(),D.S.start()):(g.X(Q,2)||g.X(Q,64))&&D.videoId&&(D.videoId=null))};
bM=function(D){var Q=null;try{Q=D.toLocaleString("en",{style:"percent"})}catch(m){Q=D.toLocaleString(void 0,{style:"percent"})}return Q};
qL=function(D,Q){var m=0;D=g.T(D);for(var P=D.next();!(P.done||P.value.startTime>Q);P=D.next())m++;return m===0?m:m-1};
Sar=function(D,Q){for(var m=0,P=g.T(D),W=P.next();!W.done;W=P.next()){W=W.value;if(Q<W.timeRangeStartMillis)return null;if(Q>=W.timeRangeStartMillis&&Q<W.timeRangeStartMillis+W.S)break;m++}m+1<D.length&&D[m+1].timeRangeStartMillis<=Q&&m++;return m<D.length?m:null};
rSw=function(D,Q){Q=qL(D,Q)+1;return Q<D.length?Q:-1};
GFn=function(D,Q){return qL(D,Q)-1};
MSr=function(D,Q){return new g.XB(D,Q,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+D})};
Dnr=function(D,Q,m,P,W,L,u,t){g.gO.call(this);var z=this;this.api=D;this.J=Q;this.contextMenu=m;this.fO=P;this.l7=W;this.S=L;this.N=u;this.progressBar=t;this.B=new g.pJ(function(){cSP(z,!1)},1E3);
this.C="";this.T={sx:!1,Ms:!1,zy:!1};g.O(this,this.B);this.W(Q,"mousedown",function(){C$(z,!1)});
this.W(m.element,"mousedown",function(){C$(z,!1)});
this.W(Q,"keydown",this.D1);this.W(m.element,"keydown",this.D1);this.W(Q,"keyup",this.NQ);this.W(m.element,"keyup",this.NQ)};
QE_=function(D,Q){if(Q<0)return"0";D=Math.floor(Math.min(Q,D.api.getDuration())*1E3);return D>2147483647?"0":String(D)};
oF=function(D,Q,m){var P=D.api.getCurrentTime(),W=QE_(D,P);D=QE_(D,P+Q);return{startMediaTimeMs:W,endMediaTimeMs:D,seekSource:m}};
mnw=function(D){var Q,m=(Q=D.api.getVideoData())==null?void 0:Q.xB();return D.api.getPresentingPlayerType(m)!==2};
C$=function(D,Q){D.T.Ms=Q;g.sh(D.api.getRootNode(),"ytp-probably-keyboard-focus",Q);g.sh(D.contextMenu.element,"ytp-probably-keyboard-focus",Q)};
V8=function(D,Q,m,P){var W=g.JD(D.api.HY());if(W&&W.loaded){var L=D.api.getSubtitlesUserSettings();W=void 0;for(var u=0;u<g.f$.length;u++){var t=g.f$[u];if(t.option===Q){W=t.options;break}}u=void 0;for(t=0;t<W.length;t++)W[t].option===L[Q]&&(u=t);if(P)if(m){if(u===0)return}else if(u===W.length-1)return;P={};P[Q]=W[(u+(m?W.length-1:1))%W.length].option;D.api.updateSubtitlesUserSettings(P);cSP(D,!0);D.B.start()}};
cSP=function(D,Q){g.JD(D.api.HY())&&D.api.setOption("captions","sampleSubtitles",Q)};
NL=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-button","ytp-overflow-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"More":"","data-tooltip-title":"More","aria-haspopup":"true","aria-owns":Q.element.id},X:[{K:"div",L:"ytp-overflow-icon",X:[{K:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},X:[{K:"path",Y:{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 m=this;this.D=D;this.xt=Q;this.visible=!1;D.createClientVe(this.element,this,16499);this.W(D,"videoplayerreset",this.Lh);this.W(D,"appresize",this.Lh);this.W(D,"fullscreentoggled",this.Lh);this.W(D,"presentingplayerstatechange",this.Lh);this.Lh();A2(D,this.element,this);this.listen("click",function(){D.logClick(m.element);th(Q,m.element,!1)});
this.W(Q.closeButton,"click",function(){m.focus()})};
P09=function(D){g.ui.call(this,D,{K:"div",L:"ytp-overflow-panel",Y:{id:sX(),role:"dialog"},X:[{K:"div",L:"ytp-overflow-panel-content",X:[{K:"div",L:"ytp-overflow-panel-action-buttons",h0:"{{buttons}}"}]},{K:"button",OW:["ytp-overflow-panel-close","ytp-button"],Y:{"data-tooltip-title":"Close",title:D.G().V("player_tooltip_data_title_killswitch")?"Close":""},X:[g.NC()]}]},250);this.actionButtons=[];this.S=this.Dx("ytp-overflow-panel-content");this.closeButton=this.Dx("ytp-overflow-panel-close");this.W(this.closeButton,
"click",this.eJ);A2(D,this.closeButton,this);this.listen("click",this.Bb);this.W(D,"videoplayerreset",this.hide);this.W(D,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
Wv7=function(D,Q){D.actionButtons.includes(Q)||(D.actionButtons.push(Q),D.updateValue("buttons",D.actionButtons))};
il4=function(D,Q){D=g.T(D.actionButtons);for(var m=D.next();!m.done;m=D.next())m.value.aj(Q)};
sEh=function(D,Q,m){var P=g.Fe(Q,m),W=P.vB("default.jpg");g.p.call(this,{K:"a",OW:["ytp-video-menu-item","ytp-button"],Y:{role:"menuitemradio","aria-label":P.title,href:D.G().getVideoUrl(P.videoId,Q.listId?Q.listId.toString():null)},X:[{K:"div",L:"ytp-video-menu-item-index",h0:String(m+1)},{K:"div",L:"ytp-video-menu-item-now-playing",h0:"\u25b6"},{K:"div",L:"ytp-video-menu-item-thumbnail",Y:{style:W?"background-image: url("+W+");":void 0}},{K:"div",L:"ytp-video-menu-item-title",h0:P.title},{K:"div",
L:"ytp-video-menu-item-author",h0:P.author}]});this.api=D;this.index=m;this.listen("click",this.onClick)};
Lvr=function(D){g.ui.call(this,D,{K:"div",L:"ytp-playlist-menu",Y:{role:"dialog",id:sX()},X:[{K:"div",L:"ytp-playlist-menu-header",X:[{K:"div",L:"ytp-playlist-menu-title",X:[D.G().T?{K:"span",L:"ytp-playlist-menu-title-name",h0:"{{title}}"}:{K:"a",L:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},h0:"{{title}}"},{K:"button",OW:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.NC()]}]},{K:"div",L:"ytp-playlist-menu-subtitle",h0:"{{subtitle}}"}]},{K:"div",L:"ytp-playlist-menu-items",
Y:{role:"menu"}}]},250);this.api=D;this.T=this.selected=this.B=this.playlist=null;this.items=this.Dx("ytp-playlist-menu-items");this.S=new g.gO(this);this.playlistData=[];this.W(this.Dx("ytp-playlist-menu-close"),"click",this.eJ);var Q=this.Dx("ytp-playlist-menu-title-name");D.G().T||(this.T=this.W(Q,"click",this.VkW));g.O(this,this.S);this.hide()};
y8=function(D,Q){var m={};g.p.call(this,{K:"button",OW:["ytp-playlist-menu-button","ytp-button"],Y:(m.title=D.V("player_tooltip_data_title_killswitch")?"{{title}}":"",m["data-tooltip-title"]="{{tooltip-title}}",m["aria-owns"]=String(Q.element.id),m["aria-haspopup"]="true",m["aria-label"]="Playlist",m["data-overlay-order"]="2",m),X:[{K:"div",L:"ytp-playlist-menu-button-icon",X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]}]},{K:"div",L:"ytp-playlist-menu-button-title",h0:"{{playlistTitle}}"},{K:"div",L:"ytp-playlist-menu-button-text",h0:"{{text}}"}]});var P=this;this.api=D;this.playlist=null;this.visible=!1;D.createClientVe(this.element,this,70344);this.W(D,"videodatachange",this.S);this.W(D,"videoplayerreset",this.S);this.W(D,"onPlaylistUpdate",this.S);this.W(D,"presentingplayerstatechange",this.Lh);this.W(D,"appresize",this.Lh);this.hide();this.S();A2(D,this.element,this);this.listen("click",function(){D.logClick(P.element);
D.V("delhi_web_player_use_external_playlist_panel")?D.sW("onToggleExternalPlaylistPanel"):th(Q,P.element,!1)})};
uD6=function(D,Q){g.p.call(this,{K:"div",L:"ytp-promotooltip-wrapper",X:[{K:"div",L:"ytp-promotooltip-container",X:[{K:"div",L:"ytp-promotooltip-content",X:[{K:"div",L:"ytp-promotooltip-title",h0:"{{title}}"},{K:"div",L:"ytp-promotooltip-details",h0:"{{details}}"}]},{K:"div",L:"ytp-promotooltip-buttons",X:[{K:"div",L:"ytp-promotooltip-dismiss-button",h0:"{{dismissButtonText}}",Y:{tabindex:"0"}},{K:"div",L:"ytp-promotooltip-accept-button",h0:"{{acceptButtonText}}",Y:{tabindex:"0","aria-haspopup":"true"}}]}]},
{K:"div",L:"ytp-promotooltip-pointer"}]});var m=this;this.tooltipRenderer=D;this.D=Q;this.S=this.T=null;this.title=this.Dx("ytp-promotooltip-title");this.details=this.Dx("ytp-promotooltip-details");this.acceptButton=this.Dx("ytp-promotooltip-accept-button");this.dismissButton=this.Dx("ytp-promotooltip-dismiss-button");this.C=this.N=!1;this.B=!0;this.TO=this.U=this.j=this.Z=!1;this.It={MF:function(P){m.MF(P)}};
this.FA(!1);D=this.tooltipRenderer.trackingParams||null;if(this.C=!!D)this.D.createServerVe(this.element,this,!0),this.D.setTrackingParams(this.element,D);this.W(Q,"onShowControls",this.KV);this.W(Q,"onHideControls",this.R3);this.W(Q,"resize",this.MB);this.W(this.acceptButton,"click",this.Lch);this.W(this.dismissButton,"click",this.K2D);this.W(document,"click",this.DH)};
dnj=function(D){var Q=document.querySelectorAll('[data-tooltip-target-id="'+D.tooltipRenderer.targetId+'"]');Q=Q.length>0?Q[0]:null;var m=g.La("ytp-chrome-bottom"),P=g.La("ytp-ad-module");D.B=!(m==null||!m.contains(Q));D.Z=!(P==null||!P.contains(Q));D.j=!(Q==null||!Q.hasAttribute("data-tooltip-target-fixed"));return Q};
blh=function(D,Q,m){if(!D.N){if(Q){D.tooltipRenderer=Q;Q=D.tooltipRenderer.text;var P=!1,W;(Q==null?0:(W=Q.runs)==null?0:W.length)&&Q.runs[0].text&&(D.update({title:Q.runs[0].text.toString()}),P=!0);g.QT(D.title,P);Q=D.tooltipRenderer.detailsText;W=!1;var L;if((Q==null?0:(L=Q.runs)==null?0:L.length)&&Q.runs[0].text){P=Q.runs[0].text.toString();L=P.indexOf("$TARGET_ICON");if(L>-1)if(D.tooltipRenderer.targetId){Q=[];P=P.split("$TARGET_ICON");var u=new g.LX({K:"span",L:"ytp-promotooltip-details-icon",
X:[tAn[D.tooltipRenderer.targetId]]});g.O(D,u);for(var t=[],z=g.T(P),b=z.next();!b.done;b=z.next())b=new g.LX({K:"span",L:"ytp-promotooltip-details-component",h0:b.value}),g.O(D,b),t.push(b);P.length===2?(Q.push(t[0].element),Q.push(u.element),Q.push(t[1].element)):P.length===1&&(L===0?(Q.push(u.element),Q.push(t[0].element)):(Q.push(t[0].element),Q.push(u.element)));L=Q.length?Q:null}else L=null;else L=P;if(L){if(typeof L!=="string")for(g.fa(D.details),W=g.T(L),L=W.next();!L.done;L=W.next())D.details.appendChild(L.value);
else D.update({details:L});W=!0}}g.QT(D.details,W);W=D.tooltipRenderer.acceptButton;L=!1;var q,C,f;((q=g.A(W,g.CE))==null?0:(C=q.text)==null?0:(f=C.runs)==null?0:f.length)&&g.A(W,g.CE).text.runs[0].text&&(D.update({acceptButtonText:g.A(W,g.CE).text.runs[0].text.toString()}),L=!0);g.QT(D.acceptButton,L);q=D.tooltipRenderer.dismissButton;C=!1;var V,N,h;((V=g.A(q,g.CE))==null?0:(N=V.text)==null?0:(h=N.runs)==null?0:h.length)&&g.A(q,g.CE).text.runs[0].text&&(D.update({dismissButtonText:g.A(q,g.CE).text.runs[0].text.toString()}),
C=!0);g.QT(D.dismissButton,C)}m&&(D.T=m);D.S=dnj(D);D.U=!1;D.D.G().V("web_player_hide_nitrate_promo_tooltip")||D.FA(!0);zJ7(D);D.To&&!D.TO&&(D.TO=!0,D.It.MF(0));D.C&&D.D.logVisibility(D.element,D.To)}};
Z8=function(D){D.FA(!1);D.C&&D.D.logVisibility(D.element,D.To)};
qK_=function(D){var Q,m,P,W=((Q=g.A(D.acceptButton,g.CE))==null?void 0:(m=Q.text)==null?void 0:(P=m.runs)==null?void 0:P.length)&&!!g.A(D.acceptButton,g.CE).text.runs[0].text,L,u,t;Q=((L=g.A(D.dismissButton,g.CE))==null?void 0:(u=L.text)==null?void 0:(t=u.runs)==null?void 0:t.length)&&!!g.A(D.dismissButton,g.CE).text.runs[0].text;return W||Q};
zJ7=function(D){var Q;if(!(Q=!D.S)){Q=D.S;var m=window.getComputedStyle(Q);Q=m.display==="none"||m.visibility==="hidden"||Q.getAttribute("aria-hidden")==="true"}if(Q||D.D.isMinimized())D.FA(!1);else if(Q=g.Dr(D.S),Q.width&&Q.height){D.D.GK(D.element,D.S);var P=D.D.fh().getPlayerSize().height;m=g.Dr(D.Dx("ytp-promotooltip-container")).height;D.B?D.element.style.top=P-m-Q.height-12+"px":D.j||(P=D.D.eg().height-m-Q.height-12,D.element.style.top=P+"px");P=D.Dx("ytp-promotooltip-pointer");var W=g.Mi(D.S,
D.D.getRootNode()),L=Number(D.element.style.left.replace(/[^\d\.]/g,""));D=D.D.isFullscreen()?18:12;P.style.left=W.x-L+Q.width/2-D+"px";P.style.top=m+"px"}else D.FA(!1)};
F8=function(D){g.p.call(this,{K:"button",OW:["ytp-replay-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},X:[g.BR()]});this.D=D;this.W(D,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.pM(D.getPlayerStateObject());A2(this.D,this.element,this)};
T6=function(D,Q){Q=Q===void 0?240:Q;g.p.call(this,{K:"button",OW:["ytp-button","ytp-search-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"div",L:"ytp-search-icon",h0:"{{icon}}"},{K:"div",L:"ytp-search-title",h0:"Search"}]});this.api=D;this.C=Q;this.visible=!1;this.updateValue("icon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",L:"ytp-svg-fill",Y:{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"}}]});
D.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.S();this.W(D,"appresize",this.S);this.W(D,"videodatachange",this.S);A2(D,this.element,this)};
h_=function(D){g.p.call(this,{K:"div",L:"ytp-seek-overlay",X:[{K:"div",OW:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],X:[{K:"div",OW:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],X:[{K:"svg",Y:{viewBox:"0 0 22 32",width:"22",height:"24"},X:[{K:"path",Y:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{K:"div",L:"ytp-seek-overlay-duration",h0:"{{durationBack}}"}]},{K:"div",OW:["ytp-seek-overlay-animation",
"ytp-seek-overlay-animation-forward"],X:[{K:"div",L:"ytp-seek-overlay-duration",h0:"{{durationForward}}"},{K:"div",OW:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],X:[{K:"svg",Y:{viewBox:"0 0 22 32",width:"22",height:"24"},X:[{K:"path",Y:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{K:"div",L:"ytp-seek-overlay-message",X:[{K:"div",L:"ytp-seek-overlay-message-icon",h0:"{{icon}}"},{K:"div",L:"ytp-seek-overlay-message-text",
h0:"{{text}}"}]}]});var Q=this;this.D=D;this.U=0;this.S="hidden";this.Z=this.Dx("ytp-seek-overlay-animation-back");this.j=this.Dx("ytp-seek-overlay-animation-forward");this.TO=this.Dx("ytp-seek-overlay-message");this.N=new g.pJ(function(){C06(Q)},g.WF(this.D.G().experiments,"web_player_seek_overlay_linger_duration")||1E3);
g.O(this,this.N);this.D.createClientVe(this.j,this,28240);this.D.createClientVe(this.Z,this,28239);this.D.logVisibility(this.j,!0);this.D.logVisibility(this.Z,!0);this.hide()};
oWP=function(D,Q){D.T=D.B.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:Q},{offset:1,opacity:1}],{duration:200,fill:"forwards"});D.T.addEventListener("finish",function(){D.T=void 0;D.N.start();D.S="lingering"})};
fD_=function(D,Q,m,P){m=m===void 0?!1:m;P=P===void 0?!1:P;var W=[];W.push({offset:0,transform:"translateX("+(D.C===-1?20:-20)+"px)",opacity:m?"0":"1"});m&&W.push({offset:.5,opacity:"1"});W.push({offset:1,transform:"translateX(0)"});m=Q.animate(W,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Q=Q.querySelector("path");W=[];W.push({offset:0,d:D.C===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")',filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});P&&W.push({offset:.8,
filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});D={offset:1,d:D.C===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};P&&(D.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");W.push(D);Q.animate(W,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return m};
VAj=function(D){var Q=D.B.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);Q.classList.add("ytp-seek-overlay-arrow-additional");Q.classList.remove("ytp-seek-overlay-arrow-persistent");D.B.appendChild(Q);fD_(D,Q,!0,!0).addEventListener("finish",function(){Q.remove()})};
C06=function(D,Q,m){m=m===void 0?!0:m;D.T=D.B.animate([{offset:0,opacity:Q===void 0?1:Q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});m&&(D.T.addEventListener("finish",function(){D.T=void 0;NRk(D);D.hide()}),D.S="fading-out")};
yQk=function(D){var Q=Number(getComputedStyle(D.B).opacity),m;(m=D.T)==null||m.cancel();D.T=void 0;return Q};
NRk=function(D){D.U=0;D.S="hidden";D.C=void 0;D.B=void 0;D.N.stop();D.T=void 0};
Zl4=function(D,Q,m){D.updateValue("text",Q);if(m){a:{switch(m){case "PREMIUM_STANDALONE":Q=gtm();break a;case "PREMIUM_STANDALONE_CAIRO":Q=Bbw();break a}Q=void 0}D.updateValue("icon",Q)}Q=g.T(D.TO.getAnimations());for(m=Q.next();!m.done;m=Q.next())m.value.cancel();D.TO.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){D.updateValue("text","");D.updateValue("icon","")})};
n$=function(D,Q,m,P){P=P===void 0?240:P;g.p.call(this,{K:"button",OW:["ytp-button","ytp-share-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":m.element.id,"data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"div",L:"ytp-share-icon",h0:"{{icon}}"},{K:"div",L:"ytp-share-title",h0:"Share"}]});this.api=D;this.S=Q;this.C=m;this.T=P;this.visible=!1;this.tooltip=this.S.XZ();D.createClientVe(this.element,this,28664);this.listen("click",
this.onClick);this.W(D,"videodatachange",this.Lh);this.W(D,"videoplayerreset",this.Lh);this.W(D,"appresize",this.Lh);this.W(D,"presentingplayerstatechange",this.Lh);this.Lh();this.addOnDisposeCallback(g.av(this.tooltip,this.element))};
Fv6=function(D){var Q=D.api.G(),m=D.api.getVideoData(),P=g.W8(Q)&&g.Gv(D.api)&&g.X(D.api.getPlayerStateObject(),128);Q=Q.T||Q.disableSharing&&D.api.getPresentingPlayerType()!==2||!m.showShareButton||m.m_||P||m.RI||!1;P=D.api.fh().getPlayerSize().width;return!!m.videoId&&P>=D.T&&!Q};
TR9=function(D,Q){Q.name!=="InvalidStateError"&&Q.name!=="AbortError"&&(Q.name==="NotAllowedError"?(D.S.HI(),th(D.C,D.element,!1)):g.JG(Q))};
nWP=function(D,Q){var m=sX(),P=D.G();m={K:"div",L:"ytp-share-panel",Y:{id:sX(),role:"dialog","aria-labelledby":m},X:[{K:"div",L:"ytp-share-panel-inner-content",X:[{K:"div",L:"ytp-share-panel-title",Y:{id:m},h0:"Share"},{K:"a",OW:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:P.j,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},h0:"{{linkText}}"},{K:"label",L:"ytp-share-panel-include-playlist",X:[{K:"input",L:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Include playlist"]},{K:"div",L:"ytp-share-panel-loading-spinner",X:[li()]},{K:"div",L:"ytp-share-panel-service-buttons",h0:"{{buttons}}"},{K:"div",L:"ytp-share-panel-error",h0:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",OW:["ytp-share-panel-close","ytp-button"],Y:{title:"Close"},X:[g.NC()]}]};g.ui.call(this,D,m,250);var W=this;this.moreButton=null;this.api=D;this.tooltip=Q.XZ();this.T=[];this.N=this.Dx("ytp-share-panel-inner-content");
this.closeButton=this.Dx("ytp-share-panel-close");this.W(this.closeButton,"click",this.eJ);this.addOnDisposeCallback(g.av(this.tooltip,this.closeButton));this.B=this.Dx("ytp-share-panel-include-playlist-checkbox");this.W(this.B,"click",this.Lh);this.S=this.Dx("ytp-share-panel-link");this.addOnDisposeCallback(g.av(this.tooltip,this.S));this.api.createClientVe(this.S,this,164503);this.W(this.S,"click",function(L){L.preventDefault();W.api.logClick(W.S);var u=W.api.getVideoUrl(!0,!0,!1,!1);u=hJ9(W,u);
g.k_(u,W.api,L)&&W.api.sW("SHARE_CLICKED")});
this.listen("click",this.nV);this.W(D,"videoplayerreset",this.hide);this.W(D,"fullscreentoggled",this.onFullscreenToggled);this.W(D,"onLoopRangeChange",this.hzF);this.hide()};
BRu=function(D,Q){EWh(D);for(var m=Q.links||Q.shareTargets,P=0,W={},L=0;L<m.length&&P<2;W={g1:void 0,Z7:void 0},L++){W.g1=m[L];a:switch(W.g1.img||W.g1.iconId){case "facebook":var u={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{K:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Y:{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":u={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{K:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Y:{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:u=null}if(u){var t=W.g1.sname||W.g1.serviceName;W.Z7=new g.p({K:"a",OW:["ytp-share-panel-service-button","ytp-button"],Y:{href:W.g1.url,target:"_blank",title:t},X:[u]});W.Z7.listen("click",function(q){return function(C){var f=q.g1.url;if(g.E9(C)){var V=V===void 0?{}:V;V.target=V.target||"YouTube";V.width=V.width||"600";V.height=V.height||"600";var N=V;N||(N={});V=window;var h=f instanceof mm?f:g.sc(typeof f.href!="undefined"?f.href:String(f));var B=self.crossOriginIsolated!==
void 0,J="strict-origin-when-cross-origin";window.Request&&(J=(new Request("/")).referrerPolicy);var k=N.noreferrer;if(B&&k&&J==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");J=k&&!B;f=N.target||f.target;k=[];var R=[],e=!1;for(G in N){var a=N[G];switch(G){case "width":case "height":case "top":case "left":k.push(G+"="+a);break;case "target":break;case "noopener":case "noreferrer":a?R.push(G):(e=!0,R.push(G+"=false"));
break;case "attributionsrc":k.push(G+(a?"="+a:""));break;default:k.push(G+"="+(a?1:0))}}var G=f!==void 0&&!["_blank","_self","_top","_parent",""].includes(f);G=x1()&&G;gW9&&B&&k.length===0&&R.length>0&&!G&&!e?(R.length===2&&(R=["noreferrer"]),g.C6(V,h,f,R[0]),V=Su6()):(B=k.join(","),Hb()&&V.navigator&&V.navigator.standalone&&f&&f!="_self"?(B=g.qi("A"),g.dh(B,h),B.target=f,J&&(B.rel="noreferrer"),((N=N.attributionsrc)||N==="")&&B.setAttribute("attributionsrc",N),N=document.createEvent("MouseEvent"),
N.initMouseEvent("click",!0,!0,V,1),B.dispatchEvent(N),V=Su6()):J?(V=g.C6(V,"",f,B),N=g.Pb(h),V&&(V.opener=null,N===""&&(N="javascript:''"),N='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+kq(N)+'">',N=bp(N),(h=V.document)&&h.write&&(h.write(qt(N)),h.close()))):((V=g.C6(V,h,f,B))&&N.noopener&&(V.opener=null),V&&N.noreferrer&&(V.opener=null)));V&&(V.opener||(V.opener=window),V.focus());C.preventDefault()}}}(W));
W.Z7.addOnDisposeCallback(g.av(D.tooltip,W.Z7.element));t==="Facebook"?D.api.createClientVe(W.Z7.element,W.Z7,164504):t==="Twitter"&&D.api.createClientVe(W.Z7.element,W.Z7,164505);D.W(W.Z7.element,"click",function(q){return function(){D.api.logClick(q.Z7.element)}}(W));
D.api.logVisibility(W.Z7.element,!0);D.T.push(W.Z7);P++}}var z=Q.more||Q.moreLink,b=new g.p({K:"a",OW:["ytp-share-panel-service-button","ytp-button"],X:[{K:"span",L:"ytp-share-panel-service-button-more",X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{K:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Y:{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"}}]}]}],Y:{href:z,target:"_blank",title:"More"}});b.listen("click",function(q){var C=z;D.api.logClick(D.moreButton.element);C=hJ9(D,C);g.k_(C,D.api,q)&&D.api.sW("SHARE_CLICKED")});
b.addOnDisposeCallback(g.av(D.tooltip,b.element));D.api.createClientVe(b.element,b,164506);D.W(b.element,"click",function(){D.api.logClick(b.element)});
D.api.logVisibility(b.element,!0);D.T.push(b);D.moreButton=b;D.updateValue("buttons",D.T)};
hJ9=function(D,Q){var m={};g.W8(D.api.G())&&(g.Iv(D.api,"addEmbedsConversionTrackingParams",[m]),Q=g.oz(Q,m));return Q};
EWh=function(D){for(var Q=g.T(D.T),m=Q.next();!m.done;m=Q.next())m=m.value,m.detach(),g.Dp(m);D.T=[]};
EH=function(D){return D===void 0||D.startSec===void 0||D.endSec===void 0?!1:!0};
wvw=function(D,Q){D.startSec+=Q;D.endSec+=Q};
JQk=function(D){EB.call(this,D);this.C=this.S=this.isContentForward=this.U=!1;this.element.setAttribute("data-overlay-order","8");kSm(this);this.W(this.D,"changeProductsInVideoVisibility",this.wn9);this.W(this.D,"videodatachange",this.onVideoDataChange)};
lD6=function(D){D.N&&D.wc.element.removeChild(D.N.element);D.N=void 0};
RJn=function(D,Q){return Q.map(function(m){var P,W;if((m=(P=g.A(m,IDw))==null?void 0:(W=P.thumbnail)==null?void 0:W.thumbnails)&&m.length!==0)return m[0].url}).filter(function(m){return m!==void 0}).map(function(m){m=new g.p({K:"img",
L:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:m}});g.O(D,m);return m})};
Unw=function(D,Q){D.isContentForward=Q;g.sh(D.badge.element,"ytp-suggested-action-badge-content-forward",Q)};
g8=function(D){var Q=D.isContentForward&&!D.wI();g.sh(D.badge.element,"ytp-suggested-action-badge-preview-collapsed",Q&&D.S);g.sh(D.badge.element,"ytp-suggested-action-badge-preview-expanded",Q&&D.C)};
Bx=function(D,Q,m){return new g.XB(D*1E3,Q*1E3,{priority:9,namespace:m})};
Hln=function(D){D.D.aI("shopping_overlay_visible");D.D.aI("shopping_overlay_preview_collapsed");D.D.aI("shopping_overlay_preview_expanded");D.D.aI("shopping_overlay_expanded")};
kSm=function(D){D.W(D.D,g.r5("shopping_overlay_visible"),function(){D.sS(!0)});
D.W(D.D,g.GR("shopping_overlay_visible"),function(){D.sS(!1)});
D.W(D.D,g.r5("shopping_overlay_expanded"),function(){D.Iy=!0;nA(D)});
D.W(D.D,g.GR("shopping_overlay_expanded"),function(){D.Iy=!1;nA(D)});
D.W(D.D,g.r5("shopping_overlay_preview_collapsed"),function(){D.S=!0;g8(D)});
D.W(D.D,g.GR("shopping_overlay_preview_collapsed"),function(){D.S=!1;g8(D)});
D.W(D.D,g.r5("shopping_overlay_preview_expanded"),function(){D.C=!0;g8(D)});
D.W(D.D,g.GR("shopping_overlay_preview_expanded"),function(){D.C=!1;g8(D)})};
$n7=function(D){g.p.call(this,{K:"div",L:"ytp-shorts-title-channel",X:[{K:"a",L:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:D.G().j,"aria-label":"{{channelLogoLabel}}"}},{K:"div",L:"ytp-shorts-title-expanded-heading",X:[{K:"div",L:"ytp-shorts-title-expanded-title",X:[{K:"a",h0:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:D.G().j,tabIndex:"0"}}]}]}]});var Q=this;this.api=D;this.S=this.Dx("ytp-shorts-title-channel-logo");this.channelName=this.Dx("ytp-shorts-title-expanded-title");
this.subscribeButton=null;D.createClientVe(this.S,this,36925);this.W(this.S,"click",function(m){Q.api.logClick(Q.S);g.C6(window,Kv6(Q));m.preventDefault()});
D.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(m){Q.api.logClick(Q.channelName);g.C6(window,Kv6(Q));m.preventDefault()});
jE9(this);this.W(D,"videodatachange",this.Lh);this.W(D,"videoplayerreset",this.Lh);this.Lh()};
jE9=function(D){if(!D.api.G().cY){var Q=D.api.getVideoData(),m=new g.Wx("Subscribe",null,"Subscribed",null,!0,!1,Q.M4,Q.subscribed,"channel_avatar",null,D.api,!0);D.api.createServerVe(m.element,D);var P;D.api.setTrackingParams(m.element,((P=Q.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);D.W(m.element,"click",function(){D.api.logClick(m.element)});
D.subscribeButton=m;g.O(D,D.subscribeButton);D.subscribeButton.b0(D.element)}};
Kv6=function(D){var Q=D.api.G(),m=D.api.getVideoData();m=g.R8(Q)+m.jD;if(!g.W8(Q))return m;Q={};g.Iv(D.api,"addEmbedsConversionTrackingParams",[Q]);return g.oz(m,Q)};
w8=function(D){g.ui.call(this,D,{K:"button",OW:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{K:"div",L:"ytp-skip-intro-button-text",h0:"Skip Intro"}]},100);var Q=this;this.T=!1;this.S=new g.pJ(function(){Q.hide()},5E3);
this.HO=this.KI=NaN;g.O(this,this.S);this.j=function(){Q.show()};
this.N=function(){Q.hide()};
this.B=function(){var m=Q.D.getCurrentTime();m>Q.KI/1E3&&m<Q.HO/1E3&&Q.show()};
this.W(this.D,"videodatachange",function(m,P){Q.Vs(m,P)});
this.W(this.element,"click",function(){Q.D.seekTo(Q.HO/1E3)});
this.hide()};
kn=function(D){g.p.call(this,{K:"button",OW:["ytp-airplay-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},h0:"{{icon}}"});this.D=D;this.listen("click",this.onClick);this.W(D,"airplayactivechange",this.Lh);this.W(D,"airplayavailabilitychange",this.Lh);this.Lh();A2(D,this.element,this)};
vWk=function(D){g.p.call(this,{K:"div",L:"ytp-gradient-bottom"});this.C=g.qi("CANVAS");this.S=this.C.getContext("2d",{willReadFrequently:!0});this.T=NaN;this.C.width=1;eJw(this,D.fh().getPlayerSize().height)};
eJw=function(D,Q){if(D.S){Q=Math.floor(Q*.4);Q=Math.max(Q,47);var m=Q+2;if(D.T!==m){D.T=m;D.C.height=m;D.S.clearRect(0,0,1,m);var P=D.S.createLinearGradient(0,2,0,2+Q),W=Q-42;P.addColorStop(0,"rgba(0, 0, 0, 0)");P.addColorStop(W/Q,"rgba(0, 0, 0, 0.3)");P.addColorStop(1,"rgba(0, 0, 0, 0.68)");D.S.fillStyle=P;D.S.fillRect(0,2,1,Q);D.element.style.height=m+"px";try{D.element.style.backgroundImage="url("+D.C.toDataURL()+")"}catch(L){}}}};
J_=function(D,Q,m,P){g.p.call(this,{K:"div",L:"ytp-chapter-container",X:[{K:"button",OW:["ytp-chapter-title","ytp-button"],X:[{K:"span",Y:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",h0:"\u2022"},{K:"div",L:"ytp-chapter-title-content",h0:"{{chapterTitle}}",Y:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:D.V("player_tooltip_data_title_killswitch")?P:"","data-tooltip-title":P}},{K:"div",L:"ytp-chapter-title-chevron",X:[{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",
Y:{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.D=D;this.B=Q;this.U="";this.currentIndex=0;this.C=void 0;this.T=!0;this.Kh=this.Dx("ytp-chapter-container");this.S=this.Dx("ytp-chapter-title");this.N=this.Dx("ytp-chapter-title-content");this.j();this.updateVideoData("newdata",this.D.getVideoData());this.W(D,"videodatachange",this.updateVideoData);this.W(D,"resize",this.j);this.W(this.Kh,"click",this.onClick);this.W(D,g.r5(m),this.mu);this.W(D,"onLoopRangeChange",
this.mu);this.W(D,"innertubeCommand",this.onClickCommand);(D=g.bL(this.D.G()))&&g.sh(this.S,"ytp-profile-page",!0);g.W8(this.D.G())||D||A2(this.D,this.N,this)};
lM=function(D,Q){J_.call(this,D,Q,"chapterCueRange","View chapter");this.Z=""};
IF=function(){g.t1.call(this,{K:"button",OW:["ytp-expand-right-bottom-section-button","ytp-button"],Y:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[g.Vq()]});this.S=!1;this.listen("click",this.C)};
Olr=function(D,Q,m,P,W){var L=Q.OG/Q.rows,u=Math.min(m/(Q.L8/Q.columns),P/L),t=Q.L8*u,z=Q.OG*u;t=Math.floor(t/Q.columns)*Q.columns;z=Math.floor(z/Q.rows)*Q.rows;var b=t/Q.columns,q=z/Q.rows,C=-Q.column*b,f=-Q.row*q;W&&L<=45&&(q-=1/u);b-=2/u;D=D.style;D.width=b+"px";D.height=q+"px";W||(P=(P-q)/2,m=(m-b)/2,D.marginTop=Math.floor(P)+"px",D.marginBottom=Math.ceil(P)+"px",D.marginLeft=Math.floor(m)+"px",D.marginRight=Math.ceil(m)+"px");D.background="url("+Q.url+") "+C+"px "+f+"px/"+t+"px "+z+"px"};
RF=function(D,Q){g.p.call(this,{K:"div",L:"ytp-storyboard-framepreview",X:[{K:"div",L:"ytp-storyboard-framepreview-timestamp",h0:"{{timestamp}}"},{K:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=D;this.C=this.Dx("ytp-storyboard-framepreview-img");this.S=null;this.frameIndex=NaN;this.events=new g.gO(this);this.fade=new g.mF(this,100);g.O(this,this.events);g.O(this,this.fade);this.W(this.api,"presentingplayerstatechange",this.T);Q&&this.W(this.element,"click",function(){Q.uv()})};
YKm=function(D,Q){var m=!!D.S;D.S=Q;D.S?(m||(D.events.W(D.api,"videodatachange",function(){YKm(D,D.api.tf())}),D.events.W(D.api,"progresssync",D.onProgress),D.events.W(D.api,"appresize",D.B)),D.frameIndex=NaN,aD$(D),D.fade.show(200)):(m&&g.EI(D.events),D.fade.hide(),D.fade.stop())};
aD$=function(D){var Q=D.S,m=D.api.getCurrentTime(),P=D.api.fh().getPlayerSize(),W=bH(Q,P.width);W=r56(Q,W,m);D.update({timestamp:g.ns(m)});W!==D.frameIndex&&(D.frameIndex=W,XQ6(Q,W,P.width),Q=pQm(Q,W,P.width),Olr(D.C,Q,P.width,P.height))};
AQ4=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-fullscreen-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},h0:"{{icon}}"});this.D=D;this.C=Q;this.message=null;this.S=g.av(this.C.XZ(),this.element);this.T=new g.pJ(this.v2,2E3,this);g.O(this,this.T);this.W(D,"fullscreentoggled",this.ag);
this.W(D,"presentingplayerstatechange",this.Lh);this.W(D,"resize",this.Lh);this.listen("click",this.onClick);g.qZ()&&(Q=this.D.fh(),this.W(Q,R0u(),this.gy),this.W(Q,IaP(document),this.mN));D.G().jD||D.G().U||this.disable();D.createClientVe(this.element,this,139117);this.Lh();this.ag(D.isFullscreen())};
pvu=function(D,Q){return D.D.V("delhi_modern_web_player_icons")?Q?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z",
fill:"white"}}]}:Q?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"g",L:"ytp-fullscreen-button-corner-2",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-3",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-0",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-1",
X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"g",L:"ytp-fullscreen-button-corner-0",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-1",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-2",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",
Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-3",X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}};
UH=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-button","ytp-jump-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[Q>0?{K:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",OW:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{K:"text",OW:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{K:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",OW:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{K:"text",OW:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});var m=this;this.D=D;this.S=Q;this.C=new g.pJ(function(){m.T?(m.T=!1,m.C.start()):m.element.classList.remove("ytp-jump-spin","backwards")},250);
this.T=!1;(Q=Q>0)?this.D.createClientVe(this.element,this,36843):this.D.createClientVe(this.element,this,36844);var P=g.LZ(Q?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.S).toString()});this.D.V("player_tooltip_data_title_killswitch")?this.update({title:P,"data-title-no-tooltip":P,"aria-keyshortcuts":Q?"\u2192":"\u2190"}):this.update({"tooltip-title":P,"data-title-no-tooltip":P,"aria-keyshortcuts":Q?"\u2192":"\u2190"});this.B=this.element.querySelector(".ytp-jump-button-text");
this.B.textContent=Math.abs(this.S).toString();this.listen("click",this.onClick,this);A2(D,this.element,this)};
xnm=function(D,Q){Q?D.element.classList.add("ytp-jump-button-enabled"):D.element.classList.remove("ytp-jump-button-enabled");D.D.logVisibility(D.element,Q);D.D.QP()};
Hx=function(D,Q){J_.call(this,D,Q,"timedMarkerCueRange","View key moments");this.W(D,g.GR("timedMarkerCueRange"),this.mu);this.W(D,"updatemarkervisibility",this.updateVideoData)};
Xvr=function(D){var Q,m=(Q=D.D.getVideoData())==null?void 0:Q.l0;if(m)for(D=D.B.Y9,m=g.T(m),Q=m.next();!Q.done;Q=m.next())if(Q=D[Q.value]){var P=void 0,W=void 0,L=void 0;if(((P=Q.onTap)==null?void 0:(W=P.innertubeCommand)==null?void 0:(L=W.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Q}};
K$=function(D){var Q=D.V("web_enable_pip_on_miniplayer");g.p.call(this,{K:"button",OW:["ytp-miniplayer-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},X:["{{icon}}"]});this.D=D;this.visible=!1;this.listen("click",this.onClick);this.W(D,"fullscreentoggled",this.Lh);this.D.V("player_tooltip_data_title_killswitch")?
this.update({title:g.py(D,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:SKn(this,Q)}):this.update({"tooltip-title":g.py(D,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:SKn(this,Q)});A2(D,this.element,this);D.createClientVe(this.element,this,62946);this.Lh()};
SKn=function(D,Q){return D.D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z",
fill:"white"}}]}:Q?{K:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},X:[{K:"g",Y:{transform:"translate(96, -96) scale(0.8)"},X:[{K:"path",Rt:!0,Y:{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"}}]}]}:nX()};
jr=function(D,Q,m,P,W,L){L=L===void 0?!1:L;var u={K:"div",OW:["ytp-input-slider-section"],X:[{K:"input",L:"ytp-input-slider",Y:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};W&&u.X.unshift(W);L&&u.OW.push("ytp-vertical-slider");g.p.call(this,u);this.B=D;this.N=Q;this.Z=m;this.initialValue=P;this.header=W;this.C=this.Dx("ytp-input-slider");this.S=P?P:D;this.init();this.W(this.C,"input",this.T);this.W(this.C,"keydown",
this.U)};
$n=function(D,Q){D.S=Q;D.updateValue("slidervalue",D.S);D.C.valueAsNumber=D.S;rQ$(D,Q)};
rQ$=function(D,Q){D.C.style.setProperty("--yt-slider-shape-gradient-percent",(Q-D.B)/(D.N-D.B)*100+"%")};
er=function(D){var Q=D.isMuted()?0:D.getVolume();jr.call(this,0,100,1,Q,void 0,!0);this.D=D;this.TO=Ux(this.Kh,10,this);this.j=!1;this.W(D,"onVolumeChange",this.onVolumeChange);this.W(this.element,"wheel",this.Iy)};
GS_=function(D,Q){g.p.call(this,{K:"div",Y:{tabindex:"0",title:D.V("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},OW:["ytp-volume-popover"]});var m=this;this.isVisible=!1;this.tooltip=Q.XZ();this.C=new er(D);g.O(this,this.C);this.C.b0(this.element);this.S=new g.pJ(function(){vx(m,!1)},300);
this.listen("mouseenter",function(){m.S.stop()});
this.listen("mouseleave",function(){m.S.start()});
this.listen("focus",function(){m.S.stop()});
this.W(this.C.C,"focus",function(){m.S.stop()});
this.listen("focusout",function(){m.S.start();m.element.dispatchEvent(new Event("blur"))});
this.addOnDisposeCallback(g.av(Q.XZ(),this.element));g.O(this,this.S)};
vx=function(D,Q){D.element.classList.toggle("ytp-volume-popover-hovering",Q);D.isVisible=Q;(D=D.element.closest(".ytp-chrome-bottom"))&&D.classList.toggle("ytp-volume-popover-showing",Q)};
OH=function(D,Q,m){m=m===void 0?!1:m;var P=D.G().wc?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};P=D.V("delhi_modern_web_player")?{K:"div",L:"ytp-mute-button",X:[{K:"button",Y:P,OW:["ytp-volume-icon",
"ytp-button"],h0:"{{icon}}"}]}:{K:"button",OW:["ytp-mute-button","ytp-button"],Y:P,X:[{K:"div",L:"ytp-volume-icon",h0:"{{icon}}"}]};g.p.call(this,P);this.D=D;this.u0=m;this.C=null;this.U=this.Kh=this.j=this.Z=NaN;this.t0=this.TO=null;this.N=[];this.B=[];this.visible=!1;this.T=this.S=this.Iy=null;D.V("delhi_modern_web_player")&&this.update({"data-priority":4});m=this.D.G();this.updateValue("icon",J1());this.tooltip=Q.XZ();this.updateValue("dataTooltipOffsetY",0);this.T=g.La("ytp-volume-icon",this.element);
P=this.D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",OW:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z",
fill:"#fff"}},{K:"path",L:"ytp-svg-volume-animation-small-ripple",Y:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05",
fill:"#fff"}},{K:"path",L:"ytp-svg-volume-animation-big-ripple",Y:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z",
fill:"#fff"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"defs",X:[{K:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},X:[{K:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",L:"ytp-svg-volume-animation-mover",Y:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},X:[{K:"path",L:"ytp-svg-volume-animation-mover",
Y:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",Rt:!0,OW:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",Rt:!0,OW:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Y:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",
fill:"#fff"}}]};this.C=new g.LX(P);g.O(this,this.C);this.TO=this.C.Dx("ytp-svg-volume-animation-speaker");this.t0=this.TO.getAttribute("d");this.N=g.iX("ytp-svg-volume-animation-mover",this.C.element);this.D.V("delhi_modern_web_player_icons");this.B=g.iX("ytp-svg-volume-animation-hider",this.C.element);this.D.V("delhi_modern_web_player_icons");this.wc=new cJ;g.O(this,this.wc);this.QF=new cJ;g.O(this,this.QF);this.W(D,"appresize",this.oV);this.W(D,"onVolumeChange",this.onVolumeChange);D.V("delhi_modern_web_player")?
this.listen("click",this.zH0):this.listen("click",this.Oi);m.wc?(D.V("delhi_modern_web_player")&&!D.V("delhi_modern_web_player_horizontal_volume_controls")&&(this.S=new GS_(D,Q),this.S.b0(this.element),g.O(this,this.S),this.W(this.T,"mouseover",this.FM),this.W(this.T,"focus",this.FM),this.W(this.T,"mouseout",this.qQ),this.W(this.T,"blur",this.qQ)),m=D.V("delhi_modern_web_player")?this.T:this.element,this.addOnDisposeCallback(g.av(Q.XZ(),m))):MAr(this);this.message=null;D.createClientVe(this.element,
this,28662);this.oV(D.fh().getPlayerSize());this.setVolume(D.getVolume(),D.isMuted())};
cQw=function(D,Q){if(D.D.G().wc){var m=g.py(D.D,"Mute","m"),P=g.py(D.D,"Unmute","m");m=Q?P:m;D.D.G().V("player_tooltip_data_title_killswitch")?D.updateValue("title",m):D.update({"tooltip-title":m,"aria-label":m});D.update({"data-title-no-tooltip":Q?"Unmute":"Mute"});D.tooltip.QP()}};
mm$=function(D,Q){D.Z=Q;var m=D.t0;D.D.V("delhi_modern_web_player_icons")?D.C.Dx("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Q+") translate(-22,-12)")):Q&&(m+=scm(Dmn,QUh,Q));D.TO.setAttribute("d",m)};
Pw6=function(D,Q){var m;Q===1?m=D.D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z",
fill:"white"}}]}:J1():m=D.C;D.Kh=Q;if(D.D.V("delhi_modern_web_player_icons"))D.C.Dx("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Q+") translate(-18,-12)")),D.C.Dx("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(D.Z-Q+") translate(-22, -12)"));else{for(var P=20*Q,W=0;W<D.N.length;W++)D.N[W].setAttribute("transform","translate("+P+", "+P+")");for(P=0;P<D.B.length;P++){W=D.B[P];var L=void 0;if((L=W)==null?
0:L.style)W.style.display=Q===0?"none":""}}m!==D.Iy&&(D.updateValue("icon",m),D.Iy=m)};
MAr=function(D){var Q=null,m="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);Q=new g.ui(D.D,{K:"span",OW:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},X:[m[0],{K:"a",Y:{href:"https://support.google.com/youtube/?p=noaudio",target:D.D.G().j},h0:m[2]},m[4]]},100,!0);g.O(D,Q);Q.hide();Q.subscribe("show",function(P){D.D.fu(Q,P)});
g.Q3(D.D,Q.element,4)};
g.Yn=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-play-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},h0:"{{icon}}"});this.D=D;this.S=null;this.transition=new cJ;this.tooltip=Q.XZ();g.O(this,this.transition);D.createClientVe(this.element,this,36842);D.V("embeds_use_parent_visibility_in_ve_logging")?D.logVisibility(this.element,this.J):
D.logVisibility(this.element,!0);this.W(D,"fullscreentoggled",this.onVideoDataChange);this.W(D,"presentingplayerstatechange",this.onStateChange);this.W(D,"videodatachange",this.onVideoDataChange);this.pM(D.getPlayerStateObject());this.listen("click",this.LG,this);this.addOnDisposeCallback(g.av(Q.XZ(),this.element))};
Wih=function(D,Q){D=D.D.V("delhi_modern_web_player_icons");switch(Q){case 1:return D?gi():EX();case 2:return D?hW7():Tbu();case 3:return D?JJk():g.BR();case 4:return D?I5P():l5$();default:return null}};
g.aF=function(D,Q,m){g.p.call(this,{K:"a",OW:[m?"ytp-next-button":"ytp-prev-button","ytp-button"],Y:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},X:[iK$(m,D.V("delhi_modern_web_player_icons"))]});
var P=this;this.D=D;this.S=m;this.playlist=this.videoData=null;this.U=!1;this.B=this.N=this.C=null;this.T=!1;this.tooltip=Q.XZ();m?D.createClientVe(this.element,this,6193):D.createClientVe(this.element,this,6194);this.W(D,"fullscreentoggled",this.onVideoDataChange);this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"onPlaylistUpdate",this.onVideoDataChange);this.W(D,"onLoopRangeChange",this.onVideoDataChange);this.S||this.W(D,"appresize",this.pA);this.W(D,"mdxpreviousnextchange",function(){sUj(P);
P.pA()});
this.onVideoDataChange()};
Li$=function(D){D.playlist&&D.playlist.unsubscribe("shuffle",D.onVideoDataChange,D)};
uvr=function(D){return!!D.playlist&&!D.S&&!!D.videoData&&!D.videoData.isLivePlayback&&D.D.getCurrentTime()>=3&&D.D.getPresentingPlayerType()!==2};
dmw=function(D){var Q=rr(D.D.HY());return Q?D.S?Q.wF():Q.j9():!1};
sUj=function(D){var Q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},m=D.playlist!=null&&D.playlist.wF();m=g.Gv(D.D)&&(!D.S||m);var P=D.S&&g.mW(D.D),W=dmw(D),L=D.S&&D.D.getPresentingPlayerType()===5,u=g.py(D.D,"Next","SHIFT+n"),t=g.py(D.D,"Previous","SHIFT+p");if(L)Q.title="Start video",Q["tooltip-title"]="Start video";else if(D.T)Q.title="Replay",Q["tooltip-title"]="Replay";else if(m){var z=null;D.playlist&&(z=
g.Fe(D.playlist,D.S?rH4(D.playlist):Gdh(D.playlist)));if(z){if(z.videoId){var b=D.playlist.listId;Q.url=D.D.G().getVideoUrl(z.videoId,b?b.toString():void 0)}Q.text=z.title;Q.duration=z.lengthText?z.lengthText:z.lengthSeconds?g.ns(z.lengthSeconds):null;Q.preview=z.vB("mqdefault.jpg")}D.S?(Q.title=u,Q["tooltip-title"]=u,Q["data-title-no-tooltip"]="Next",Q["aria-keyshortcuts"]="SHIFT+n"):(Q.title=t,Q["tooltip-title"]=t,Q["data-title-no-tooltip"]="Previous",Q["aria-keyshortcuts"]="SHIFT+p")}else if(P){if(t=
(z=D.videoData)==null?void 0:g.B1(z))Q.url=t.rT(),Q.text=t.title,Q.duration=t.lengthText?t.lengthText:t.lengthSeconds?g.ns(t.lengthSeconds):null,Q.preview=t.vB("mqdefault.jpg");Q.title=u;Q["tooltip-title"]=u;Q["data-title-no-tooltip"]="Next";Q["aria-keyshortcuts"]="SHIFT+n"}Q.disabled=!P&&!m&&!W&&!L;D.update(Q);D.U=!!Q.url;P||m||D.T||W||L?D.C||(D.C=g.av(D.tooltip,D.element),D.N=D.listen("click",D.onClick,D)):D.C&&(D.C(),D.C=null,D.qY(D.N),D.N=null);D.tooltip.QP();g.sh(D.element,"ytp-playlist-ui",
D.S&&(m||D.D.V("web_hide_next_button")))};
iK$=function(D,Q){return D?Q?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z",
fill:"white"}}]}:FR():Q?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z",
fill:"white"}}]}:w5j()};
zwr=function(D,Q){g.p.call(this,{K:"div",L:"ytp-fine-scrubbing",X:[{K:"div",L:"ytp-fine-scrubbing-draggable",X:[{K:"div",L:"ytp-fine-scrubbing-thumbnails",Y:{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}}"}}]},{K:"div",Y:{"aria-hidden":"true"},L:"ytp-fine-scrubbing-cursor"},{K:"div",L:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},
h0:"{{seekTime}}"},{K:"div",L:"ytp-fine-scrubbing-play",X:[D.V("delhi_modern_web_player_icons")?gi():EX()],Y:{title:"Play from this position",role:"button"}},{K:"div",L:"ytp-fine-scrubbing-dismiss",X:[g.NC()],Y:{title:"Exit precise seeking",role:"button"}}]});var m=this;this.api=D;this.N=this.Dx("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Dx("ytp-fine-scrubbing-dismiss");this.Kh=this.Dx("ytp-fine-scrubbing-draggable");this.playButton=this.Dx("ytp-fine-scrubbing-play");this.thumbnails=
[];this.C=[];this.u0=this.S=0;this.wc=void 0;this.TO=NaN;this.x9=this.j=this.T=this.Z=0;this.B=[];this.interval=this.frameCount=0;this.U=160;this.scale=1;this.k9=0;this.isEnabled=this.t0=!1;tQ4(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.av(Q,this.dismissButton));this.addOnDisposeCallback(g.av(Q,this.playButton));this.QF=new g.vJ(this.Kh,!0);this.QF.subscribe("dragstart",this.Gd,this);this.QF.subscribe("dragmove",this.Ye,this);this.QF.subscribe("dragend",this.tB,this);this.W(D,"SEEK_COMPLETE",
this.QC);D.V("web_fix_fine_scrubbing_false_play")&&this.W(D,"rootnodemousedown",function(P){m.Iy=P});
this.N.addEventListener("keydown",function(){});
g.O(this,this.QF);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.N,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
tQ4=function(D,Q){var m=g.ns(Q),P=g.LZ("Seek to $PROGRESS",{PROGRESS:g.ns(Q,!0)});D.update({ariamin:0,ariamax:Math.floor(D.api.getDuration()),arianow:Math.floor(Q),arianowtext:P,seekTime:m})};
bKh=function(D){D.TO=NaN;D.j=0;D.Z=D.T};
oJ$=function(D){var Q=D.api.tf();if(Q){var m=90*D.scale,P=bH(Q,160*D.scale);if(Q=Q.levels[P]){D.U=Q.width;if(!D.B.length){P=[];for(var W=q4(Q,Q.YU()),L=Q.columns*Q.rows,u=Q.frameCount,t=0;t<=W;t++)for(var z=u<L?Math.ceil(u/Q.columns):Q.rows,b=0;b<Q.rows;b++){var q=u<Q.columns?u:Q.columns,C={url:Q.AD(t),column:0,columns:q,row:b,rows:z,L8:Q.width*q,OG:Q.height*z};P.push(C);u-=q;if(u<=1)break}D.B=P;D.frameCount=Q.oY();D.interval=Q.S/1E3||D.api.getDuration()/D.frameCount}for(;D.thumbnails.length>D.B.length;)P=
void 0,(P=D.thumbnails.pop())==null||P.dispose();for(;D.thumbnails.length<D.B.length;)P=new qt7,D.thumbnails.push(P),P.b0(D.N),g.O(D,P);for(P=0;P<D.B.length;P++)W=D.thumbnails[P].element,L=D.B[P],u=D.U*D.scale,t=L.OG/L.rows,z=m/t,W.style.background="url("+L.url+") 0 "+-L.row*L.OG/L.rows*z+"px/"+u*Q.columns+"px "+t*L.rows*z+"px",W.style.width=u*L.columns+"px",W.style.height=m+"px";A_(D,D.api.getCurrentTime());for(m=D.api.getVideoData().tY;D.C.length>m.length;)P=void 0,(P=D.C.pop())==null||P.dispose();
for(;D.C.length<m.length;)P=new Cw$,D.C.push(new Cw$),g.O(D,P);for(P=0;P<m.length;P++)W=m[P],D.C[P].update({chapterTitle:W.title}),W=Math.round(W.startTime/Q.S),L=Math.floor(W/Q.rows),g.YZ(D.C[P].element,"transform","translateX("+W%Q.rows*D.U*D.scale+"px)"),L<D.thumbnails.length&&D.thumbnails[L]&&D.C[P].b0(D.thumbnails[L].element);D.t0=!0}}};
A_=function(D,Q){D.Iy&&(D.Iy.If=!0);D.update({seekTime:g.ns(Q)});var m=D.U*D.scale;Q=Q<D.interval/2?-Q*m/D.interval*2+D.S/2:-Q*m/D.interval-m/2+D.S/2;Q=g.eZ(Q,ff$(D),D.S/2);D.Z=Q;D.T=D.Z;g.YZ(D.Kh,"transform","translateX("+(D.Z-D.S/2)+"px)");g.YZ(D.Kh,"padding","0px "+D.S/2+"px");g.YZ(D.N,"position","relative")};
VQh=function(D,Q){var m=D.U*D.scale;Q-=D.S/2;return Q>-m?-Q/m*D.interval*.5:-(Q+m/2)/m*D.interval};
ff$=function(D){return-((D.N.offsetWidth||(D.frameCount-1)*D.U*D.scale)-D.S/2)};
qt7=function(){g.p.call(this,{K:"div",L:"ytp-fine-scrubbing-thumbnail"})};
Cw$=function(){g.p.call(this,{K:"div",L:"ytp-fine-scrubbing-chapter-title",X:[{K:"div",L:"ytp-fine-scrubbing-chapter-title-content",h0:"{{chapterTitle}}"}]})};
NK6=function(D){g.p.call(this,{K:"div",L:"ytp-heat-map-chapter",X:[{K:"svg",L:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{K:"defs",X:[{K:"clipPath",Y:{id:"{{id}}"},X:[{K:"path",L:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]},{K:"linearGradient",Y:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},X:[{K:"stop",Y:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",Y:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",L:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",L:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",L:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",L:"ytp-modern-heat-map",Y:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=D;this.Z=this.Dx("ytp-heat-map-svg");this.N=this.Dx("ytp-heat-map-path");this.B=this.Dx("ytp-heat-map-graph");this.U=this.Dx("ytp-heat-map-play");this.S=this.Dx("ytp-heat-map-hover");this.T=this.Dx("ytp-modern-heat-map");this.EC=!1;this.C=60;D=""+g.LV(this);this.update({id:D});D="url(#"+D+")";this.B.setAttribute("clip-path",D);this.U.setAttribute("clip-path",D);this.S.setAttribute("clip-path",D)};
yn7=function(D,Q){Q>0&&(D.C=Q,D.Z.style.height=D.C+"px")};
p$=function(){g.p.call(this,{K:"div",L:"ytp-chapter-hover-container",X:[{K:"div",L:"ytp-progress-bar-padding"},{K:"div",L:"ytp-progress-list",X:[{K:"div",OW:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",L:"ytp-progress-linear-live-buffer"},{K:"div",L:"ytp-load-progress"},{K:"div",L:"ytp-hover-progress"},{K:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Dx("ytp-progress-list");this.N=this.Dx("ytp-progress-linear-live-buffer");
this.B=this.Dx("ytp-ad-progress-list");this.U=this.Dx("ytp-load-progress");this.Z=this.Dx("ytp-play-progress");this.T=this.Dx("ytp-hover-progress");this.S=this.Dx("ytp-chapter-hover-container")};
xn=function(D,Q){g.YZ(D.S,"width",Q)};
ZKh=function(D,Q){g.YZ(D.S,"margin-right",Q+"px")};
Fim=function(){this.C=this.position=this.T=this.S=this.B=this.width=NaN};
TK_=function(){g.p.call(this,{K:"div",L:"ytp-timed-marker"});this.S=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.Sr=function(D,Q){g.t1.call(this,{K:"div",L:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},X:[{K:"div",OW:["ytp-heat-map-container"],X:[{K:"div",L:"ytp-heat-map-edu"}]},{K:"div",OW:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{K:"div",L:"ytp-chapters-container"},{K:"div",L:"ytp-timed-markers-container"},{K:"div",L:"ytp-clip-start-exclude"},
{K:"div",L:"ytp-clip-end-exclude"},{K:"div",L:"ytp-scrubber-container",X:[{K:"div",OW:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{K:"div",L:"ytp-scrubber-pull-indicator"},{K:"img",OW:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",OW:["ytp-fine-scrubbing-container"],X:[{K:"div",L:"ytp-fine-scrubbing-edu"}]},{K:"div",L:"ytp-bound-time-left",h0:"{{boundTimeLeft}}"},{K:"div",L:"ytp-bound-time-right",h0:"{{boundTimeRight}}"},{K:"div",L:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},h0:"{{clipstarticon}}"},
{K:"div",L:"ytp-clip-end",Y:{title:"{{clipendtitle}}"},h0:"{{clipendicon}}"}]});this.api=D;this.VA=!1;this.WO=this.uS=this.l0=this.N=this.H1=0;this.F2=null;this.A8=!1;this.k9={};this.pj={};this.clipEnd=Infinity;this.Lj=this.Dx("ytp-clip-end");this.yn=new g.vJ(this.Lj,!0);this.Xw=this.Dx("ytp-clip-end-exclude");this.g2=this.Dx("ytp-clip-start-exclude");this.clipStart=0;this.PY=this.Dx("ytp-clip-start");this.kB=new g.vJ(this.PY,!0);this.TO=this.gB=0;this.progressBar=this.Dx("ytp-progress-bar");this.Kj=
{};this.Y9={};this.XT=this.Dx("ytp-chapters-container");this.KI=this.Dx("ytp-timed-markers-container");this.S=[];this.U=[];this.aF={};this.tY=null;this.t0=-1;this.hU=this.wc=0;this.h8=this.Z=null;this.ZD=this.Dx("ytp-scrubber-button");this.Kh=this.Dx("ytp-decorated-scrubber-button");this.Ad=this.Dx("ytp-scrubber-container");this.jD=new g.Yq;this.Ze=0;this.Zw=new Fim;this.T=new RD(0,0);this.Or=null;this.j=this.Kd=!1;this.R4=null;this.Iy=this.Dx("ytp-heat-map-container");this.gi=this.Dx("ytp-heat-map-edu");
this.B=[];this.heatMarkersDecorations=[];this.oy=this.Dx("ytp-fine-scrubbing-container");this.zY=this.Dx("ytp-fine-scrubbing-edu");this.C=void 0;this.u0=this.HO=this.x9=!1;this.tooltip=Q.XZ();this.addOnDisposeCallback(g.av(this.tooltip,this.Lj));g.O(this,this.yn);this.yn.subscribe("hoverstart",this.Kl,this);this.yn.subscribe("hoverend",this.Re,this);this.W(this.Lj,"click",this.Me);this.addOnDisposeCallback(g.av(this.tooltip,this.PY));g.O(this,this.kB);this.kB.subscribe("hoverstart",this.Kl,this);
this.kB.subscribe("hoverend",this.Re,this);this.W(this.PY,"click",this.Me);hw_(this);this.W(D,"resize",this.MB);this.W(D,"presentingplayerstatechange",this.GW);this.W(D,"videodatachange",this.Vs);this.W(D,"videoplayerreset",this.Yo);this.W(D,"cuerangesadded",this.Bav);this.W(D,"cuerangesremoved",this.Um0);this.W(D,"onLoopRangeChange",this.ym);this.W(D,"innertubeCommand",this.onClickCommand);this.W(D,"onRetroModeChanged",this.Mtx);this.W(D,g.r5("timedMarkerCueRange"),this.eHT);this.W(D,"updatemarkervisibility",
this.tC);this.W(D,"serverstitchedvideochange",this.R$y);this.updateVideoData(D.getVideoData(),!0);this.ym(D.getLoopRange());X8(this)&&!this.C&&(this.C=new zwr(this.api,this.tooltip),D=g.GH(this.element).x||0,this.C.MB(D,this.N),this.C.b0(this.oy),g.O(this,this.C),this.W(this.C.dismissButton,"click",this.uv),this.W(this.C.playButton,"click",this.xM),this.W(this.C.element,"dblclick",this.xM));this.api.createClientVe(this.Iy,this,139609,!0);this.api.createClientVe(this.gi,this,140127,!0);this.api.createClientVe(this.zY,
this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
hw_=function(D){if(D.S.length===0){var Q=new p$;D.S.push(Q);g.O(D,Q);Q.b0(D.XT,0)}for(;D.S.length>1;)D.S.pop().dispose();xn(D.S[0],"100%");D.S[0].startTime=0;D.S[0].title=""};
nJ4=function(D){var Q=Q===void 0?NaN:Q;var m=new NK6(D.api);D.B.push(m);g.O(D,m);m.b0(D.Iy);Q>=0&&(m.element.style.width=Q+"px")};
EJr=function(D){for(;D.U.length;)D.U.pop().dispose()};
BKn=function(D){var Q,m,P,W,L;return(L=g.A((W=g.A((Q=D.getWatchNextResponse())==null?void 0:(m=Q.playerOverlays)==null?void 0:(P=m.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,mp))==null?void 0:W.playerBar,gJk))==null?void 0:L.chapters};
wyw=function(D){for(var Q=D.S,m=[],P=0;P<Q.length;P++)if(!isNaN(Q[P].startTime)){var W=Q[P].startTime;W=new g.XB(W,P===Q.length-1?Infinity:Q[P+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+W});m.push(W)}D.api.aI("chapterCueRange");D.api.GY(m)};
Kim=function(D,Q){var m,P=(m=D.Kj[Q])==null?void 0:m.chapters;P&&(kxw(D,P),D.api.getVideoData().tY=D.S,wyw(D));var W;if((m=(W=D.Kj[Q])==null?void 0:W.markers)&&Q!=="HEATSEEKER"){EJr(D);W=g.T(m);for(m=W.next();!m.done;m=W.next())if(P=m.value,m=new TK_,P=g.A(P,g.Jnj)){var L=void 0;m.title=((L=P.title)==null?void 0:L.simpleText)||"";L=void 0;m.timeRangeStartMillis=(L=P.timeRangeStartMillis)!=null?L:NaN;var u=L=void 0;m.onActiveCommand=(u=(L=P)==null?void 0:L.onActiveCommand)!=null?u:void 0;lfP(D,m)}If$(D,
D.U);W=D.U;m=D.aF;P=[];for(L=0;L<W.length;L++)!isNaN(W[L].timeRangeStartMillis)&&W[L].onActiveCommand&&(u=MSr(W[L].timeRangeStartMillis,L===W.length-1?Infinity:W[L+1].timeRangeStartMillis),P.push(u),m[u.id]=W[L].onActiveCommand);D.api.GY(P)}var t;if(Q=g.A((t=D.Kj[Q])==null?void 0:t.heatmap,Rwu)){t=Q.heatMarkers||[];var z;W=(z=Q.minHeightDp)!=null?z:0;var b;z=(b=Q.maxHeightDp)!=null?b:60;b=D.S.length;m=null;for(P=0;P<b;P++){u=D.S[P].startTime;var q=P===b-1?Infinity:D.S[P+1].startTime;P===D.B.length&&
nJ4(D);L=[];m&&L.push(m);for(var C=g.T(t),f=C.next();!f.done;f=C.next()){f=f.value;var V=void 0,N=void 0,h=(N=(V=g.A(f,Um6))==null?void 0:V.timeRangeStartMillis)!=null?N:-1;h>=u&&h<=q&&L.push(f)}z>0&&(D.Iy.style.height=z+"px");u=D.B[P];q=L;f=W;N=z;h=P===0;h=h===void 0?!1:h;yn7(u,N);C=q;V=u.C;h=h===void 0?!1:h;var B=1E3/C.length,J=[];J.push({x:0,y:100});for(var k=0;k<C.length;k++){var R=void 0,e=((R=g.A(C[k],Um6))==null?void 0:R.heatMarkerIntensityScoreNormalized)||0;R=(k+.5)*B;e=100-g.eZ(e*100,f/
V*100,N/V*100);k!==0||h||J.push({x:0,y:e});J.push({x:R,y:e});k===C.length-1&&J.push({x:1E3,y:e})}J.push({x:1E3,y:100});C=J;q=q.length===0?"":tF6(C);u.api.V("delhi_modern_web_player")?u.T.setAttribute("d",q):u.N.setAttribute("d",q);u.EC=q!=="";g.sh(u.api.getRootNode(),"ytp-heat-map",u.EC);g.sh(u.api.getRootNode(),"ytp-heat-map-played_bar",u.api.V("web_player_heat_map_played_bar")&&q!=="");u.api.V("delhi_modern_web_player")?(u.B.style.display="none",u.S.style.display="none"):u.T.style.display="none";
L.length>0&&(m=L[L.length-1])}g.r8(D);t=[];Q=g.T(Q.heatMarkersDecorations||[]);for(W=Q.next();!W.done;W=Q.next())if(W=g.A(W.value,HK4))z=W.label,P=m=b=void 0,t.push({visibleTimeRangeStartMillis:(b=W.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(m=W.visibleTimeRangeEndMillis)!=null?m:-1,decorationTimeMillis:(P=W.decorationTimeMillis)!=null?P:NaN,label:z?g.qC(z):""});D.heatMarkersDecorations=t}};
lfP=function(D,Q){D.U.push(Q);g.O(D,Q);Q.b0(D.KI,D.KI.children.length)};
If$=function(D,Q){Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var P=G6(D,m.timeRangeStartMillis/(D.T.S*1E3),ML(D)),W=D.api.V("delhi_modern_web_player")?.667:.6;g.YZ(m.element,"transform","translateX("+P+"px) scaleX("+W+")")}};
kxw=function(D,Q){var m=0,P=!1;Q=g.T(Q);for(var W=Q.next();!W.done;W=Q.next()){W=W.value;if(g.A(W,jU$)){W=g.A(W,jU$);var L={startTime:NaN,title:null,onActiveCommand:void 0},u=W.title;L.title=u?g.qC(u):"";u=W.timeRangeStartMillis;u!=null&&(L.startTime=u);L.onActiveCommand=W.onActiveCommand;W=L;m===0&&W.startTime!==0&&(D.S[m].startTime=0,D.S[m].title="",D.S[m].onActiveCommand=W.onActiveCommand,m++,P=!0);D.S.length<=m&&(L=new p$,D.S.push(L),g.O(D,L),L.b0(D.XT,D.XT.children.length));D.S[m].startTime=
W.startTime;D.S[m].title=W.title?W.title:"";D.S[m].onActiveCommand=W.onActiveCommand;D.S[m].index=P?m-1:m}m++}for(;m<D.S.length;)D.S.pop().dispose();g.r8(D);cx(D)};
g.r8=function(D){D.wc=D.S.length-1;D.hU=0;$mk(D,!0)&&$mk(D,!1);for(var Q=0,m=0;m<D.S.length;m++)if(D.S[m].width===0){if(m===D.S.length-1)for(var P=D.S.length-1;P>=0;P--)if(D.S[P].width>0){ZKh(D.S[P],0);var W=Math.floor(D.S[P].width);D.S[P].width=W;xn(D.S[P],W+"px");break}D.S[m].width=0;xn(D.S[m],"0")}else m===D.S.length-1?(P=Math.floor(D.S[m].width+Q),D.S[m].width=P,xn(D.S[m],P+"px")):(Q=D.S[m].width+Q,P=Math.round(Q),Q-=P,D.S[m].width=P,xn(D.S[m],P+"px"));m=0;if(D.B.length===D.S.length)for(Q=0;Q<
D.B.length;Q++)P=D.S[Q].width,D.B[Q].element.style.width=P+"px",D.B[Q].element.style.left=m+"px",m+=P+Ds(D);D.api.V("delhi_modern_web_player")&&(D.S.length===1?D.S[0].C.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(D.S[0].C.classList.remove("ytp-progress-bar-end"),D.S[0].C.classList.add("ytp-progress-bar-start"),D.S[D.S.length-1].C.classList.add("ytp-progress-bar-end")))};
$mk=function(D,Q){var m=0,P=!1,W=D.S.length,L=D.T.S*1E3;L===0&&(L=D.api.getProgressState().seekableEnd*1E3);if(L>0&&D.N>0){for(var u=D.N-Ds(D)*D.wc,t=D.hU===0?3:u*D.hU,z=g.T(D.S),b=z.next();!b.done;b=z.next())b.value.width=0;for(;m<W;){z=L-D.S[m].startTime;m<W-1&&(z=D.S[m+1].startTime-D.S[m].startTime,ZKh(D.S[m],Ds(D)));g.sh(D.S[m].S,"ytp-exp-chapter-hover-container",D.S.length>1);b=(L===0?0:z/L*u)+D.S[m].width;if(b>t)D.S[m].width=b;else{D.S[m].width=0;var q=D,C=m,f=q.S[C-1];f!==void 0&&f.width>0?
f.width+=b:C<q.S.length-1&&(q.S[C+1].width+=b);ZKh(q.S[C],0);Q&&(D.wc--,z/L>D.hU&&(D.hU=z/L),P=!0)}m++}}return P};
cx=function(D){if(D.N){var Q=D.api.getProgressState(),m=D.api.getVideoData();if(!(m&&m.enableServerStitchedDai&&m.Vg)||isFinite(Q.current)){var P;if(((P=D.api.getVideoData())==null?0:h2(P))&&Q.airingStart&&Q.airingEnd)var W=QW(D,Q.airingStart,Q.airingEnd);else if(D.api.getPresentingPlayerType()===2){var L,u,t;W=(m=(W=D.api.getVideoData())==null?void 0:(L=W.getPlayerResponse())==null?void 0:(u=L.playerConfig)==null?void 0:(t=u.webPlayerConfig)==null?void 0:t.skippableAdProgressBarDuration)?QW(D,Q.seekableStart,
m/1E3):QW(D,Q.seekableStart,Q.seekableEnd)}else W=QW(D,Q.seekableStart,Q.seekableEnd);L=U9(W,Q.loaded,0);Q=U9(W,Q.current,0);u=D.T.C!==W.C||D.T.S!==W.S;D.T=W;mk(D,Q,L);u&&ew9(D);vJn(D)}}};
QW=function(D,Q,m){return OK9(D)?new RD(Math.max(Q,D.Or.startTimeMs/1E3),Math.min(m,D.Or.endTimeMs/1E3)):new RD(Q,m)};
af9=function(D,Q){var m,P,W;Q=g.A((m=Q.getWatchNextResponse())==null?void 0:(P=m.playerOverlays)==null?void 0:(W=P.playerOverlayRenderer)==null?void 0:W.decoratedPlayerBarRenderer,mp);if(Q==null?0:Q.progressColor)for(m=0;m<D.S.length;m++)D.S[m].nj("PLAY_PROGRESS").style.background=g.$B(Q.progressColor);m=g.A(Q==null?void 0:Q.playhead,Yt7);var L,u;D.QF=(m==null?void 0:(L=m.playheadImage)==null?void 0:L.thumbnails)&&(m==null?void 0:(u=m.playheadImage)==null?void 0:u.thumbnails[0].url);var t,z;D.dn=
(m==null?void 0:(t=m.playheadFastForwardImage)==null?void 0:t.thumbnails)&&(m==null?void 0:(z=m.playheadFastForwardImage)==null?void 0:z.thumbnails[0].url);var b,q;D.kJ=(m==null?void 0:(b=m.playheadRewindImage)==null?void 0:b.thumbnails)&&(m==null?void 0:(q=m.playheadRewindImage)==null?void 0:q.thumbnails[0].url);g.sh(D.Ad,"ytp-decorated-scrubber-container",!!D.QF&&!D.api.fh().dY);var C;if(m==null?0:(C=m.loggingDirectives)==null?0:C.trackingParams){var f;D.api.setTrackingParams(D.Kh,m==null?void 0:
(f=m.loggingDirectives)==null?void 0:f.trackingParams);D.api.createServerVe(D.Kh,D)}D.QF&&!D.api.fh().dY&&(D.Kh.src=D.QF);D.dn&&fetch(D.dn,{cache:"force-cache"});D.kJ&&fetch(D.kJ,{cache:"force-cache"})};
Anm=function(D,Q){var m;if(((m=D.Or)==null?void 0:m.type)==="repeatChapter"||(Q==null?void 0:Q.type)==="repeatChapter")Q&&(Q=D.S[qL(D.S,Q.startTimeMs)],g.sh(Q.S,"ytp-repeating-chapter",!1)),D.Or&&(Q=D.S[qL(D.S,D.Or.startTimeMs)],g.sh(Q.S,"ytp-repeating-chapter",!0)),D.S.forEach(function(P){g.sh(P.S,"ytp-exp-chapter-hover-container",!D.Or)})};
Wa=function(D,Q){var m=dT6(D.T,Q.C);if(D.S.length>1){m=Pa(D,Q.T,!0);for(var P=0,W=0;W<m;W++)D.S[W].width>0&&(P+=D.S[W].width,P+=Ds(D));m=(D.S[m].startTime+(Q.T-P)/D.S[m].width*((m===D.S.length-1?D.T.S*1E3:D.S[m+1].startTime)-D.S[m].startTime))/1E3||0}return m};
py9=function(D,Q){if(Q<0)return"0";D=Math.floor(Math.min(Q,D.api.getDuration())*1E3);return D>2147483647?"0":String(D)};
iA=function(D,Q,m,P,W){Q=py9(D,Q);m=py9(D,m);D=D.progressBar.visualElement;P={seekData:{startMediaTimeMs:Q,endMediaTimeMs:m,seekSource:P}};(Q=g.Tq())&&mr(Q,D,W,P)};
xmP=function(D,Q,m){if(m>=D.S.length)return!1;var P=D.N-Ds(D)*D.wc;return Math.abs(Q-D.S[m].startTime/1E3)/D.T.S*P<4};
ew9=function(D){D.ZD.style.removeProperty("height");for(var Q=g.T(Object.keys(D.k9)),m=Q.next();!m.done;m=Q.next())Xy$(D,m.value);sP(D);mk(D,D.TO,D.gB)};
ML=function(D){var Q=D.jD.x;Q=g.eZ(Q,0,D.N);D.Zw.update(Q,D.N);return D.Zw};
uA=function(D){return(D.j?135:90)-Lu(D)};
Lu=function(D){var Q=48,m=D.api.G();D.api.V("delhi_modern_web_player")?Q=D.api.getPlayerSize().width<=528?64:D.j?96:72:D.j?Q=54:g.W8(m)&&!m.C&&(Q=40);return Q};
mk=function(D,Q,m){D.TO=Q;D.gB=m;var P=ML(D),W=D.T.S,L=dT6(D.T,D.TO),u=g.LZ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ns(L,!0),DURATION:g.ns(W,!0)}),t=qL(D.S,L*1E3);t=D.S[t].title;D.update({ariamin:Math.floor(D.T.C),ariamax:Math.floor(W),arianow:Math.floor(L),arianowtext:t?t+" "+u:u});W=D.clipStart;L=D.clipEnd;D.Or&&D.api.getPresentingPlayerType()!==2&&(W=D.Or.startTimeMs/1E3,L=D.Or.endTimeMs/1E3);W=U9(D.T,W,0);t=U9(D.T,L,1);u=D.api.getVideoData();L=g.eZ(Q,W,t);m=(u==null?0:g.Zn(u))?1:g.eZ(m,
W,t);Q=G6(D,Q,P);g.YZ(D.Ad,"transform","translateX("+Q+"px)");D.api.V("delhi_modern_web_player")&&D.api.V("delhi_modern_web_player_cutout")&&Str(D,Q);da(D,P,W,L,"PLAY_PROGRESS");(u==null?0:h2(u))?(Q=D.api.getProgressState().seekableEnd)&&da(D,P,L,U9(D.T,Q),"LIVE_BUFFER"):da(D,P,W,m,"LOAD_PROGRESS");if(D.api.V("web_player_heat_map_played_bar")){var z;(z=D.B[0])!=null&&z.U.setAttribute("width",(L*100).toFixed(2)+"%")}};
Str=function(D,Q){D.api.getPresentingPlayerType()!==1?D.XT.style.removeProperty("clip-path"):(Q||(Q=G6(D,D.TO,ML(D))),D.XT.style.clipPath='path("'+(D.A8?rn_(D,8,Q,D.j?50:36,0,6):rn_(D,4,Q,D.j?34:24,2,3))+'")')};
rn_=function(D,Q,m,P,W,L){var u=m-P/2;m+=P/2;Q+=W;return"M 0 "+W+" L 0 "+(Q+" L ")+(u+" "+Q+" C ")+(u+L+" "+Q+" "+(u+L)+" "+W+" "+u+" "+W+" L 0 ")+(W+" M ")+(m+" "+W+" L ")+(D.N+" "+W+" L ")+(D.N+" "+Q+" L ")+(m+" "+Q+" C ")+(m-L+" "+Q+" "+(m-L)+" "+W+" "+m+" "+W)};
da=function(D,Q,m,P,W){var L=D.S.length,u=Q.S-D.wc*Ds(D),t=m*u;m=Pa(D,t);var z=P*u;u=Pa(D,z);W==="HOVER_PROGRESS"&&(u=Pa(D,Q.S*P,!0),z=Q.S*P-Gx9(D,Q.S*P)*Ds(D));P=Math.max(t-MQ_(D,m),0);for(t=m;t<L;t++)D.S[t].nj(W).style.left=m===t?P+"px":"0";Q=G6(D,D.TO,Q);for(L=m;L<u;L++){t=D.S[L].nj(W);var b=D.S[L].width,q=L===m?b-P:b;tO(D,t,q,b);cnP(D,t,q,b,L,Q,W)}L=D.S[u].width;z=g.eZ(z-MQ_(D,u),0,L);m===u&&(z-=P);P=D.S[u].nj(W);tO(D,P,z,L);cnP(D,P,z,L,u,Q,W);z=D.S.length;for(u+=1;u<z;u++)D2h(D,u,W);for(u=0;u<
m;u++)D2h(D,u,W)};
MQ_=function(D,Q){if(Q>=D.S.length)return D.N;for(var m=0,P=0;P<Q;)m+=D.S[P].width,P++;return m};
D2h=function(D,Q,m){m=D.S[Q].nj(m);tO(D,m,0,D.S[Q].width)};
cnP=function(D,Q,m,P,W,L,u){u==="PLAY_PROGRESS"&&(m=!P||D.api.G().C?1:m/P,D.g2.clientWidth>0||D.Xw.clientWidth>0?(L=Q.clientWidth/m,D=-1*D.g2.clientWidth/m):(L/=m,D=-1*D.S[W].element.offsetLeft/m),g.YZ(Q,"background-size",L+"px"),g.YZ(Q,"background-position-x",D+"px"))};
tO=function(D,Q,m,P,W){W||D.api.G().C?Q.style.width=m+"px":g.YZ(Q,"transform","scalex("+(P?m/P:0)+")")};
Pa=function(D,Q,m){var P=0;(m===void 0?0:m)&&(Q-=Gx9(D,Q)*Ds(D));m=g.T(D.S);for(var W=m.next();!W.done;W=m.next()){W=W.value;if(Q>W.width)Q-=W.width;else break;P++}return P===D.S.length?P-1:P};
G6=function(D,Q,m){var P=Q*D.T.S*1E3;for(var W=-1,L=g.T(D.S),u=L.next();!u.done;u=L.next())u=u.value,P>u.startTime&&u.width>0&&W++;P=W<0?0:W;W=m.S-Ds(D)*D.wc;return Q*W+Ds(D)*P+m.B};
Gx9=function(D,Q){for(var m=D.S.length,P=0,W=g.T(D.S),L=W.next();!L.done;L=W.next())if(L=L.value,L.width!==0)if(Q>L.width)Q-=L.width,Q-=Ds(D),P++;else break;return P===m?m-1:P};
g.Q0j=function(D,Q,m,P){var W=D.N!==m,L=D.j!==P;D.H1=Q;D.N=m;D.j=P;X8(D)&&(Q=D.C)!=null&&(Q.scale=P?1.5:1);ew9(D);D.S.length===1&&(D.S[0].width=m||0);W&&g.r8(D);D.C&&L&&X8(D)&&(D.C.isEnabled&&(m=D.j?135:90,P=m-Lu(D),D.oy.style.height=m+"px",g.YZ(D.Iy,"transform","translateY("+-P+"px)"),g.YZ(D.progressBar,"transform","translateY("+-P+"px)")),oJ$(D.C))};
sP=function(D){var Q=!!D.Or&&D.api.getPresentingPlayerType()!==2,m=D.clipStart,P=D.clipEnd,W=!0,L=!0;Q&&D.Or?(m=D.Or.startTimeMs/1E3,P=D.Or.endTimeMs/1E3):(W=m>D.T.C,L=D.T.S>0&&P<D.T.S);var u,t;if(((u=D.Or)==null?0:u.postId)||((t=D.Or)==null?void 0:t.type)==="repeatChapter")L=W=!1;g.sh(D.element,"ytp-loop-range-enabled",Q);g.sh(D.element,"ytp-clip-start-enabled",W);g.sh(D.element,"ytp-clip-end-enabled",L);Q=W?U9(D.T,m,0):0;P=L?U9(D.T,P,1):1;D.PY.style.left=Math.round(Q*1E3)/10+"%";D.Lj.style.left=
Math.round(P*1E3)/10+"%";D.g2.style.width=Math.round(Q*1E3)/10+"%";D.Xw.style.left=Math.round(P*1E3)/10+"%";D.Xw.style.width=Math.round((1-P)*1E3)/10+"%"};
vJn=function(D){var Q;if((Q=D.api.getVideoData())==null||!h2(Q)){Q=ML(D);da(D,Q,D.TO,Math.max(Q.C,D.TO),"HOVER_PROGRESS");for(var m=Pa(D,Q.S*D.TO,!0),P=Pa(D,Q.T,!0),W=m;W<=P;W++)g.sh(D.S[W].T,"ytp-hover-progress-light",Q.C>D.TO);g.sh(D.ZD,"ytp-scrubber-button-hover",m===P&&D.S.length>1);if(D.api.V("web_player_heat_map_played_bar")){var L;(L=D.B[0])!=null&&L.S.setAttribute("width",(Q.C*100).toFixed(2)+"%")}}};
Xy$=function(D,Q){var m=D.k9[Q];Q=D.pj[Q];var P=ML(D),W=U9(D.T,m.start/1E3,0),L=To4(m,D.j)/P.width;var u=U9(D.T,m.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(W=g.eZ(W,0,u-L));u=Math.min(u,W+L);m.color&&(Q.style.background=m.color);m=W;Q.style.left=Math.max(m*P.S+P.B,0)+"px";tO(D,Q,g.eZ((u-m)*P.S+P.B,0,P.width),P.width,!0)};
m2u=function(D,Q){var m=Q.getId();D.k9[m]===Q&&(g.Ni(D.pj[m]),delete D.k9[m],delete D.pj[m])};
X8=function(D){var Q=g.EO(D.api.G())&&(D.api.V("web_shorts_pip")||D.api.V("web_watch_pip")),m;return!((m=D.api.getVideoData())==null?0:m.isLivePlayback)&&!D.api.isMinimized()&&!D.api.isInline()&&(!D.api.CU()||!Q)};
zC=function(D){D.C&&(D.C.disable(),D.l0=0,D.Iy.style.removeProperty("transform"),D.progressBar.style.removeProperty("transform"),D.oy.style.removeProperty("height"),D.element.parentElement&&D.element.parentElement.style.removeProperty("height"))};
Per=function(D,Q){var m=Q/uA(D)*Lu(D);g.YZ(D.progressBar,"transform","translateY("+-Q+"px)");g.YZ(D.Iy,"transform","translateY("+-Q+"px)");g.YZ(D.oy,"transform","translateY("+m+"px)");D.oy.style.height=Q+m+"px";D.element.parentElement&&(D.element.parentElement.style.height=Lu(D)-m+"px")};
WYw=function(D,Q){Q?D.Z||(D.element.removeAttribute("aria-disabled"),D.Z=new g.vJ(D.progressBar,!0),D.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&D.Z.subscribe("hoverstart",D.UYT,D),D.Z.subscribe("hovermove",D.kcT,D),D.Z.subscribe("hoverend",D.qmF,D),D.Z.subscribe("dragstart",D.xYO,D),D.Z.subscribe("dragmove",D.zkD,D),D.Z.subscribe("dragend",D.rx9,D),D.api&&D.api.V("delhi_modern_web_player")&&D.api.V("delhi_modern_web_player_cutout")&&(D.h8=new g.vJ(D.progressBar,
!0),D.h8.subscribe("hoverstart",function(){D.A8=!0;Str(D)},D),D.h8.subscribe("hoverend",function(){D.A8=!1;
Str(D)},D)),D.R4=D.listen("keydown",D.lK)):D.Z&&(D.element.setAttribute("aria-disabled","true"),D.qY(D.R4),D.Z.cancel(),D.Z.dispose(),D.Z=null)};
Ds=function(D){return D.api.V("delhi_modern_web_player")?4:D.j?3:2};
OK9=function(D){var Q;return!((Q=D.Or)==null||!Q.postId)&&D.api.getPresentingPlayerType()!==2};
bA=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-remote-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},h0:"{{icon}}"});this.D=D;this.Cj=Q;this.S=null;this.W(D,"onMdxReceiversChange",this.Lh);this.W(D,"presentingplayerstatechange",this.Lh);this.W(D,"appresize",this.Lh);D.createClientVe(this.element,this,139118);this.Lh();this.listen("click",this.C,this);A2(D,this.element,this)};
qY=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":sX(),title:D.V("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},X:[D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10",
fill:"white"}}]}:g.wi()]});this.D=D;this.Cj=Q;this.C=!0;this.listen("click",this.T);this.W(D,"onPlaybackQualityChange",this.updateBadge);this.W(D,"videodatachange",this.updateBadge);this.W(D,"webglsettingschanged",this.updateBadge);this.W(D,"appresize",this.S);A2(D,this.element,this);this.D.createClientVe(this.element,this,28663);this.updateBadge();this.S(D.fh().getPlayerSize())};
ivk=function(D,Q){D.C=!!Q;D.S(D.D.fh().getPlayerSize())};
Cu=function(D,Q){gg.call(this,"Annotations",g.Ra.aJ);this.D=D;this.Cj=Q;this.S=!1;D.V("web_settings_menu_icons")&&(Q=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]},this.setIcon(Q));this.W(D,"videodatachange",this.Lh);this.W(D,"onApiChange",this.Lh);this.subscribe("select",this.onSelect,this);this.Lh()};
o_=function(D,Q,m){g.jK.call(this,"Audio track",g.Ra.AUDIO,D,Q);this.D=D;this.C=m;this.tracks={};g.mQ(this.element,"ytp-audio-menu-item");this.countLabel=new g.p({K:"div",X:[{K:"span",h0:"Audio track"},{K:"span",L:"ytp-menuitem-label-count",h0:"{{content}}"}]});D.V("web_settings_menu_icons")&&!this.D.V("html5_enable_new_audio_settings_menu")&&(Q=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z",
fill:"white"}}]}:Etm(),this.setIcon(Q));g.O(this,this.countLabel);g.bi(this,this.countLabel);this.W(D,"videodatachange",this.Lh);this.W(D,"onPlaybackAudioChange",this.Lh);this.Lh()};
s07=function(D,Q){g.q$.call(this,g.C5({"aria-haspopup":"true"},["ytp-audio-menu-item"]),g.Ra.MN);this.D=D;this.Cj=Q;g.mQ(this.element,"ytp-audio-menu-item");this.Em=new g.BJ(D,void 0,"Audio");this.countLabel=new g.p({K:"div",X:[{K:"span",h0:"Audio"},{K:"span",L:"ytp-menuitem-label-count",h0:"{{content}}"}]});D.V("web_settings_menu_icons")&&this.setIcon({K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z",
fill:"white"}}]});this.KK=new o_(D,this.Cj,this);g.O(this,this.KK);this.W(D,"settingsMenuInitialized",this.US.bind(this));this.W(D,"videodatachange",this.US.bind(this));g.O(this,this.countLabel);g.bi(this,this.countLabel);this.Cj.CM(this);this.W(D,"onPlaybackAudioChange",this.QW);this.W(D,"audiopreferencechange",this.QW);this.listen("keydown",this.lK);this.listen("click",this.open)};
fu=function(D,Q){gg.call(this,"Autoplay",g.Ra.E6);this.D=D;this.Cj=Q;this.S=!1;this.C=[];this.W(D,"presentingplayerstatechange",this.US);this.subscribe("select",this.onSelect,this);D.createClientVe(this.element,this,113682);this.US()};
LYP=function(D,Q){g.q$.call(this,g.C5({"aria-haspopup":"false"}),0,"More options");this.D=D;this.Cj=Q;this.W(this.element,"click",this.onClick);this.Cj.CM(this)};
usj=function(D,Q){var m;g.EO(D.G())&&(m={K:"div",L:"ytp-panel-footer-content",X:[{K:"span",h0:"Adjust download quality from your "},{K:"a",L:"ytp-panel-footer-content-link",h0:"Settings",Y:{href:"/account_downloads"}}]});g.jK.call(this,"Quality",g.Ra.rR,D,Q,void 0,void 0,m);this.D=D;this.Iy={};this.U={};this.C={};this.Kh=new Set;this.S=this.B=!1;this.N="unknown";this.j="";this.TO=new g.vf;g.O(this,this.TO);this.B=this.D.V("web_player_use_new_api_for_quality_pullback");this.S=this.D.V("web_player_enable_premium_hbr_playback_cap");
D.V("web_settings_menu_icons")&&(Q=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(Q));g.mQ(this.Em.element,"ytp-quality-menu");this.W(D,"videodatachange",this.US);this.W(D,"videoplayerreset",this.US);this.W(D,"onPlaybackQualityChange",this.ea);this.US();D.createClientVe(this.element,this,137721)};
tgw=function(D,Q,m){var P=D.Iy[Q],W=g.ek[Q];return d2w(D,P?P.qualityLabel:W?W+"p":"Auto",Q,m)};
zC_=function(D,Q,m,P,W){var L=(Q=D.S?D.C[Q]:D.U[Q])&&Q.quality,u=Q&&Q.qualityLabel;u=u?u:"Auto";P&&(u="("+u);D=d2w(D,u,L||"",W);P&&D.X.push(")");(P=(P=Q&&Q.paygatedQualityDetails)&&P.paygatedIndicatorText)&&m&&D.X.push({K:"div",L:"ytp-premium-label",h0:P});return D};
d2w=function(D,Q,m,P){Q={K:"span",OW:P,X:[Q]};var W;P="ytp-swatch-color";if(D.B||D.S)P="ytp-swatch-color-white";m==="highres"?W="8K":m==="hd2880"?W="5K":m==="hd2160"?W="4K":m.indexOf("hd")===0&&m!=="hd720"&&(W="HD");W&&(Q.X.push(" "),Q.X.push({K:"sup",L:P,h0:W}));return Q};
VW=function(D){jr.call(this,D.getAvailablePlaybackRates()[0],D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1],.05,D.getPlaybackRate(),{K:"div",L:"ytp-speedslider-indicator-container",X:[{K:"div",L:"ytp-speedslider-badge"},{K:"p",L:"ytp-speedslider-text"}]});this.D=D;this.TO=Ux(this.Kh,50,this);g.mQ(this.C,"ytp-speedslider");this.j=this.Dx("ytp-speedslider-text");this.Iy=this.Dx("ytp-speedslider-badge");bvm(this);this.W(this.C,"change",this.QF)};
bvm=function(D){D.j.textContent=D.S.toFixed(2)+"x";var Q=D.S>2&&D.D.V("enable_web_premium_varispeed");D.Iy.classList.toggle("ytp-speedslider-premium-badge",Q);D.Iy.setAttribute("aria-label",Q?"Premium":"")};
NY=function(D,Q,m,P,W,L,u){g.p.call(this,{K:"div",L:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{K:"div",L:"ytp-slider",X:[{K:"div",L:"ytp-slider-handle"}]}]});this.Z=D;this.j=Q;this.C=m;this.T=P;this.TO=W;this.t0=L;this.range=this.T-this.C;this.wc=this.Dx("ytp-slider-section");this.B=this.Dx("ytp-slider");this.Iy=this.Dx("ytp-slider-handle");this.U=new g.vJ(this.B,
!0);this.S=u?u:m;g.O(this,this.U);this.U.subscribe("dragmove",this.QZ,this);this.W(this.element,"keydown",this.HV);this.W(this.element,"wheel",this.bq);this.init()};
yW=function(D){NY.call(this,.05,.05,D.getAvailablePlaybackRates()[0],D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1],150,20,D.getPlaybackRate());this.D=D;this.N=g.qi("P");this.QF=Ux(this.Kh,50,this);g.mQ(this.B,"ytp-speedslider");g.mQ(this.N,"ytp-speedslider-text");D=this.N;var Q=this.B;Q.parentNode&&Q.parentNode.insertBefore(D,Q.nextSibling);qA9(this);this.W(this.D,"onPlaybackRateChange",this.updateValues)};
qA9=function(D){D.N.textContent=Ce$(D,D.S)+"x"};
Ce$=function(D,Q){D=Number(g.eZ(Q,D.C,D.T).toFixed(2));Q=Math.floor((D+.001)*100%5+2E-15);var m=D;Q!==0&&(m=D-Q*.01);return Number(m.toFixed(2))};
oXw=function(D){g.t1.call(this,{K:"div",L:"ytp-speedslider-component"});D.V("web_settings_use_input_slider")?this.S=new VW(D):this.S=new yW(D);g.O(this,this.S);this.element.appendChild(this.S.element)};
fC_=function(D){var Q=new oXw(D);gQ.call(this,D,Q,"Custom");g.O(this,Q)};
NN_=function(D,Q){var m=new fC_(D);g.jK.call(this,"Playback speed",g.Ra.mP,D,Q,Zs(D)?void 0:"Custom",Zs(D)?void 0:function(){g.JA(Q,m)});
var P=this;this.B=!1;g.O(this,m);this.U=new VW(D);g.O(this,this.U);if(D.V("web_settings_menu_icons")){var W=D.V("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]};this.setIcon(W)}this.D=D;this.B=!1;this.TO=null;Zs(D)?(this.S=g.LZ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.D.getPlaybackRate().toString()}),this.N=this.D.getPlaybackRate()):this.N=this.S=null;var L,u,t,z;this.Iy=(L=this.D.getVideoData())==null?void 0:(u=L.getWatchNextResponse())==null?void 0:(t=u.playerOverlays)==null?void 0:(z=t.playerOverlayRenderer)==null?void 0:z.showPlaybackRateUpsellPanelCommand;Vgu(D,this.Iy)?this.C=Ft(4):this.C=null;this.j=this.D.getAvailablePlaybackRates();
this.W(D,"presentingplayerstatechange",this.Lh);var b;((b=this.D.getVideoData())==null?0:b.xB())&&this.W(D,"serverstitchedvideochange",this.Lh);this.W(this.U.C,"change",function(){P.B=!0;P.Lh()});
this.Lh()};
yI7=function(D,Q){var m=Ft(Q);D.S&&(D.B||Q===D.N)?(D.I4(D.S),D.Sk(Q.toString())):D.I4(m)};
FYn=function(D){var Q=D.j.map(Ft);D.C&&Q.push(D.C);D.Rg(Q);D.S=null;D.N=null;Q=D.D.getPlaybackRate();Zs(D.D)&&Zvw(D,Q);!D.j.includes(Q)||D.B?D.I4(D.S):D.I4(Ft(Q))};
Zvw=function(D,Q){D.N=Q;D.S=g.LZ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Q.toString()});Q=D.j.map(Ft);Q.unshift(D.S);D.C&&Q.push(D.C);D.Rg(Q)};
TNn=function(D,Q,m,P){m=new g.q$({K:"div",OW:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":P?"true":"false"},X:[{K:"div",OW:["ytp-menuitem-label"],X:[{K:"div",OW:["ytp-menuitem-container-with-badge"],X:[{K:"div",h0:"{{label}}"},{K:"div",OW:["ytp-menuitem-premium-badge"]}]}]}]},m,D.BF(Q));m.listen("click",function(){D.Db(Q)});
return m};
Ft=function(D){return D.toString()};
Zs=function(D){return D.V("web_settings_menu_surface_custom_playback")};
Vgu=function(D,Q){return!!Q&&D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1]<=2};
hC6=function(D){return D.V("web_settings_menu_surface_custom_playback")&&D.V("web_settings_use_input_slider")};
EXw=function(D,Q,m,P){var W=new g.BJ(Q,void 0,"Video Override");g.jK.call(this,P.text||"",D,Q,m,"Video Override",function(){g.JA(m,W)});
var L=this;g.mQ(this.element,"ytp-subtitles-options-menu-item");this.setting=P.option.toString();D=P.options;this.settings=g.r$(D,this.V$,this);this.B=W;g.O(this,this.B);Q=new g.q$({K:"div",L:"ytp-menuitemtitle",h0:"Allow for a different caption style if specified by the video."},0);g.O(this,Q);this.B.CM(Q,!0);this.C=new g.q$({K:"div",L:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{K:"div",L:"ytp-menuitem-label",h0:"On"}]},-1);g.O(this,this.C);this.B.CM(this.C,!0);this.W(this.C.element,
"click",function(){nXn(L,!0)});
this.S=new g.q$({K:"div",L:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{K:"div",L:"ytp-menuitem-label",h0:"Off"}]},-2);g.O(this,this.S);this.B.CM(this.S,!0);this.W(this.S.element,"click",function(){nXn(L,!1)});
this.Rg(g.fk(D,this.V$))};
nXn=function(D,Q){D.publish("settingChange",D.setting+"Override",!Q);D.Cj.hn()};
TC=function(D,Q){g.BJ.call(this,D,void 0,"Options");var m=this;this.BL={};for(var P=0;P<g.f$.length;P++){var W=g.f$[P],L=new EXw(-P,D,Q,W);g.O(this,L);L.subscribe("settingChange",this.WF,this);this.BL[W.option.toString()]=L;this.CM(L,!0)}D=new g.q$(g.C5(),-g.f$.length,"Reset");g.O(this,D);D.listen("click",function(){m.WF("reset",!0)});
this.CM(D,!0)};
hO=function(D,Q){g.jK.call(this,"Auto-translate",0,D,Q);this.D=D;this.languages={};D.createClientVe(this.element,this,127301);D.logVisibility(this.element,!0)};
gX$=function(D,Q){D.languages=g.r$(Q,D.S,D);D.Rg(g.fk(Q,D.S))};
wk9=function(D,Q){var m=new TC(D,Q),P=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],W;g.EO(D.G())&&(W={K:"div",L:"ytp-panel-footer-content",X:[{K:"span",h0:P[0]},{K:"a",L:"ytp-panel-footer-content-link",h0:"Settings",Y:{href:"/account_playback"}},{K:"span",h0:P[1]}]});g.jK.call(this,"Subtitles/CC",g.Ra.SUBTITLES,D,Q,"Options",function(){g.JA(Q,m)},W);
var L=this;this.D=D;this.Cj=Q;this.tracks={};this.N=new g.pJ(function(){BN7(L,!1)},3E3);
g.O(this,this.N);this.countLabel=new g.p({K:"div",X:[{K:"span",h0:"Subtitles/CC"},{K:"span",L:"ytp-menuitem-label-count",h0:"{{content}}"}]});g.O(this,this.countLabel);g.bi(this,this.countLabel);D.V("web_settings_menu_icons")&&this.setIcon(a4m(D.V("delhi_modern_web_player_icons")));this.S=new hO(D,Q);g.O(this,this.S);this.S.subscribe("select",this.OQ,this);this.B=m;g.O(this,this.B);this.B.subscribe("settingChange",this.WF,this);Q.subscribe("show",this.K$F,this);this.W(D,"videodatachange",this.Lh);
this.W(D,"onApiChange",this.Lh);this.W(D,"onCaptionsTrackListChanged",this.Lh);this.W(D,"captionschanged",this.Lh);D.createClientVe(this.element,this,127300);this.Lh()};
kjr=function(D){return Object.values(D.tracks).find(function(Q){return Q.languageCode==="en"&&Q.kind==="asr"})};
nu=function(D,Q){D.D.setOption("captions","track",Q)};
BN7=function(D,Q){D.D.setOption("captions","sampleSubtitles",Q)};
JI7=function(D){g.k$.call(this,D,"ytp-settings-menu");var Q=this;this.RF=new g.BJ(this.D);this.YR=this.C_=this.settingsButton=null;this.isInitialized=this.Ne=!1;g.O(this,this.RF);this.hide();g.JA(this,this.RF);D.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(m){Q.sS(m)});
this.W(D,"highlightSettingsMenu",function(){Q.Ne=!0;Q.YJ()});
this.W(D,"openSettingsMenuItem",function(m){if(m&&(Q.Ne=!0,Q.YJ(),m==="menu_item_video_quality_advanced")){var P;(P=Q.C_)==null||P.open()}})};
lC$=function(D,Q){D.settingsButton=Q;D.element.id=Q.element.getAttribute("aria-controls")};
RC$=function(D,Q){g.p.call(this,{K:"button",OW:["ytp-subtitles-button","ytp-button"],Y:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[D.V("delhi_modern_web_player_icons")?{K:"div",L:"ytp-subtitles-button-icon",h0:"{{icon}}"}:YEm(D)]});this.D=D;this.tooltip=Q.XZ();D.V("delhi_modern_web_player_icons")&&this.updateValue("icon",
ICw(this));this.W(D,"videodatachange",this.Lh);this.W(D,"appresize",this.Lh);this.W(D,"promotooltipacceptbuttonclicked",this.ws0);this.W(D,"onApiChange",this.Lh);this.W(D,"onCaptionsTrackListChanged",this.Lh);this.W(D,"captionschanged",this.Lh);this.D.createClientVe(this.element,this,127299);this.Lh();this.listen("click",this.onClick);this.addOnDisposeCallback(g.av(Q.XZ(),this.element))};
EP=function(D){return g.JD(D.D.HY())!=null?g.JD(D.D.HY()).j8()?!!D.D.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
ICw=function(D){if(D.D.V("delhi_modern_web_player_icons"))return D=Jh.includes("en")?EP(D)&&D.isEnabled()?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z",
fill:"white"}}]}:yq():EP(D)&&D.isEnabled()?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z",
fill:"white"}}]}:RW7()};
g.Ba=function(D,Q,m){m=m===void 0?350:m;g.p.call(this,{K:"div",OW:["ytp-time-display","notranslate"],Y:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},X:[{K:"span",L:"ytp-time-wrapper",X:[{K:"div",L:"ytp-time-contents",X:[{K:"span",L:"ytp-time-clip-icon",h0:"{{clipicon}}",Y:{"aria-label":"Clip"}},{K:"span",L:"ytp-time-current",h0:"{{currenttime}}"},{K:"span",L:"ytp-time-separator",h0:" / "},{K:"span",L:"ytp-time-duration",h0:"{{duration}}"}]}]},{K:"span",L:"ytp-clip-watch-full-video-button-separator",
h0:"\u2022"},{K:"span",L:"ytp-clip-watch-full-video-button",h0:"{{watchfullvideo}}"}]});var P=this;this.api=D;this.j=m;this.liveBadge=new g.p({K:"button",OW:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},h0:"{{content}}"});this.S=null;this.y9=this.C=!1;this.Z=this.U=null;this.isPremiere=!1;this.N=this.B=null;this.T=!1;this.Or=null;this.TO=this.Dx("ytp-clip-watch-full-video-button");this.liveBadge.Sk("Live");g.O(this,this.liveBadge);this.api.V("web_player_updated_entrypoint")||this.api.V("delhi_modern_web_player")?
this.liveBadge.b0(this.element.querySelector(".ytp-time-contents")):this.liveBadge.b0(this.element);this.tooltip=Q.XZ();this.liveBadge.listen("click",this.onClick.bind(this));this.api.V("delhi_modern_web_player")&&(Q=this.Dx("ytp-time-wrapper"),this.W(Q,"click",this.glT),Q.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.W(this.TO,"click",this.L$9);this.W(this.api,"serverstitchedvideochange",function(){U2u(P,P.api.getProgressState().isAtLiveHead)});
this.W(D,"presentingplayerstatechange",this.mu);this.W(D,"appresize",this.mu);this.W(D,"onLoopRangeChange",this.onLoopRangeChange);this.W(D,"videodatachange",this.onVideoDataChange);(Q=D.getVideoData())&&this.updateVideoData(Q);this.mu();Hvk(this,D.getLoopRange())};
U2u=function(D,Q){var m=D.liveBadge.element,P=D.api.isLifaAdPlaying();m.disabled=P||Q;!wa(D)||D.Z===Q&&D.U===D.isPremiere||(D.Z=Q,D.U=D.isPremiere,D.mu(),Q?m.classList.add("ytp-live-badge-is-livehead"):m.classList.remove("ytp-live-badge-is-livehead"),D.liveBadge.Sk(D.isPremiere?"Premiere":"Live"),Q?D.S&&(D.S(),D.S=null,m.removeAttribute("title")):(m.title="Skip ahead to live broadcast.",D.S=g.av(D.tooltip,D.liveBadge.element)))};
Hvk=function(D,Q){var m=D.Or!==Q;D.Or=Q;m&&KY6(D)};
KY6=function(D){D.updateValue("clipicon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{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"}}]});
D.y9&&!D.C?D.updateValue("watchfullvideo","Watch live stream"):D.updateValue("watchfullvideo","Watch full video");g.sh(D.element,"ytp-clip",k6(D));g.sh(D.element,"ytp-live",wa(D))};
wa=function(D){var Q=D.api.G().V("enable_linear_program_progress"),m=D.api.getPresentingPlayerType()===2;return D.y9&&!k6(D)&&(!Q||!D.C)&&!m};
k6=function(D){return!!D.Or&&!!D.Or.postId&&D.api.getPresentingPlayerType()!==2&&(!D.Or.type||D.Or.type==="clips")};
$24=function(D,Q){g.p.call(this,{K:"div",L:"ytp-volume-panel",Y:{title:D.V("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{K:"div",L:"ytp-volume-slider",X:[{K:"div",L:"ytp-volume-slider-handle"}]}]});var m=this;this.api=D;this.U=Q;this.kN=!1;this.j=this.volume=0;this.N=null;this.C=this.S=this.isDragging=!1;this.U=Q;this.T=D.UN();
this.Z=this.Dx("ytp-volume-slider");this.TO=this.Dx("ytp-volume-slider-handle");this.B=new g.vJ(this.Z,!0);g.O(this,this.B);this.B.subscribe("dragstart",this.tkx,this);this.B.subscribe("dragmove",this.Ji,this);this.B.subscribe("dragend",this.N2c,this);this.W(D,"onVolumeChange",this.onVolumeChange);this.W(D,"appresize",this.xm);this.W(D,"fullscreentoggled",this.mN);this.W(D,"onShowControls",this.QD);this.W(D,"onHideControls",this.QD);this.W(this.element,"keydown",this.vV);this.W(this.element,"focus",
function(){JO(m,m.S,m.isDragging,!0,m.api.kN())});
this.W(this.element,"blur",function(){JO(m,m.S,m.isDragging,!1,m.api.kN())});
this.xm(D.fh().getPlayerSize());j06(this,D.getVolume(),D.isMuted());A2(D,this.element,this)};
j06=function(D,Q,m){var P=Math.floor(Q),W=P+"% volume"+(m?" muted":"");m=m?0:Q/100;D.updateValue("valuenow",P);D.updateValue("valuetext",W);D.TO.style.left=(D.T?60:40)*m+"px";D.volume=Q};
eC$=function(D,Q){g.sh(D.element,"ytp-volume-control-hover",Q);JO(D,Q,D.isDragging,D.C,D.api.kN())};
JO=function(D,Q,m,P,W){var L=D.S||D.isDragging||D.C||D.kN;D.S=Q;D.isDragging=m;D.C=P;D.kN=W;Q=D.S||D.isDragging||D.C||D.kN;L!==Q&&(Q?D.N=D.W(D.element,"wheel",D.uq):(D.qY(D.N),D.N=null),g.sh(D.U,"ytp-volume-slider-active",Q))};
lA=function(D,Q){var m=D.G(),P=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];m.T&&P.push("no-link");var W={title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:m.j,"data-priority":"6","data-sessionlink":"feature=player-button"};m.T||(W.href="{{url}}");g.p.call(this,{K:"a",OW:P,Y:W,h0:"{{logoSvg}}"});this.S=null;this.api=D;this.visible=!1;m.T||(this.S=this.listen("click",this.onClick));this.W(D,"videodatachange",this.onVideoDataChange);
this.W(D,"videoplayerreset",this.onVideoDataChange);this.W(D,"onLoopRangeChange",this.onVideoDataChange);this.W(D,"appresize",this.MB);this.onVideoDataChange();m.T||this.addOnDisposeCallback(g.av(Q.XZ(),this.element));this.MB()};
Ovm=function(D,Q,m){g.gO.call(this);var P=this;this.D=D;this.t0=Q;this.fO=m;this.gB=NaN;this.Kh=this.XT=this.playButton=this.J=this.N=this.GO=this.k9=this.Iy=this.TO=this.S=this.Z=this.oy=this.n8=this.jD=null;this.B=new JI7(this.D);this.progressBar=new g.Sr(this.D,this.t0);this.wc=new g.Ba(this.D,this.t0);this.QF=new AQ4(this.D,this.t0);this.j=new g.AN(this.eK,null,this);m=D.G();this.fO.subscribe("autohideupdate",this.M_,this);var W=!D.getPlayerStateObject().isCued(),L;(this.hU=!D.V("delhi_modern_web_player")&&
D.G().V("html5_player_dynamic_bottom_gradient"))?this.oy=L=new vWk(D):L=new g.p({K:"div",L:"ytp-gradient-bottom"});g.O(this,L);g.Q3(D,L.element,9);this.x9=new g.mF(L,250,W,100);g.O(this,this.x9);this.C=new g.p({K:"div",L:"ytp-chrome-bottom",X:[{K:"div",L:"ytp-chrome-controls"}]});g.O(this,this.C);g.Q3(D,this.C.element,9);this.u0=new g.mF(this.C,250,W,100);g.O(this,this.u0);this.Y9=this.C.element.children[0];g.O(this,this.B);g.Q3(D,this.B.element,6);this.B.subscribe("show",function(b){P.D.oo(!b);D.p_(P.B,
b)});
g.O(this,this.progressBar);this.progressBar.b0(this.C.element,0);W=new RF(D,Q);g.O(this,W);g.Q3(D,W.element,4);W=new g.LX({K:"div",L:"ytp-left-controls"});g.O(this,W);W.b0(this.Y9);D.V("delhi_modern_web_player")||(L=new g.aF(D,Q,!1),g.O(this,L),L.b0(W.element));D.V("web_render_jump_buttons")&&(this.TO=new UH(D,-10),g.O(this,this.TO),this.TO.b0(W.element));m.x9||(this.playButton=new g.Yn(D,Q),g.O(this,this.playButton),this.playButton.b0(W.element));D.V("web_render_jump_buttons")&&(this.Iy=new UH(D,
10),g.O(this,this.Iy),this.Iy.b0(W.element));D.V("delhi_modern_web_player_remove_nav_buttons")||(D.V("delhi_modern_web_player")&&(L=new g.aF(D,Q,!1),g.O(this,L),L.b0(W.element)),L=new g.aF(D,Q,!0),g.O(this,L),L.b0(W.element));if(!D.V("delhi_modern_web_player")||D.V("delhi_modern_web_player_horizontal_volume_controls"))if(L=new g.p({K:"span",L:"ytp-volume-area"}),g.O(this,L),L.b0(W.element),!m.Ze&&(this.S=new OH(D,Q),g.O(this,this.S),this.S.b0(L.element),m.wc&&!m.U)){var u=new $24(D,this.C.element);
this.XT=u;g.O(this,u);u.b0(L.element);L=new g.vJ(L.element);g.O(this,L);L.subscribe("hoverstart",function(){var b;(b=P.XT)==null||eC$(b,!0)});
L=new g.vJ(W.element);g.O(this,L);L.subscribe("hoverend",function(){var b;(b=P.XT)==null||eC$(b,!1)})}D.V("delhi_modern_web_player_lhs_volume_controls")&&!D.V("delhi_modern_web_player_horizontal_volume_controls")&&(W.element.classList.add("ytp-left-controls-with-volume"),this.S=new OH(D,Q),g.O(this,this.S),this.S.b0(W.element),this.S.element.classList.add("ytp-standalone-mute-button"));
g.O(this,this.wc);this.wc.b0(W.element);this.k9=new lM(D,this.progressBar);g.O(this,this.k9);this.k9.b0(W.element);m.V("web_key_moments_markers")&&(this.GO=new Hx(D,this.progressBar),g.O(this,this.GO),this.GO.b0(W.element));D.V("delhi_modern_web_player")?this.T=new g.LX({K:"div",L:"ytp-right-controls",X:[{K:"div",L:I_.RIGHT_CONTROLS_LEFT},{K:"div",L:I_.RIGHT_CONTROLS_RIGHT}]}):this.T=new g.LX({K:"div",L:"ytp-right-controls"});g.O(this,this.T);this.T.b0(this.Y9);D.V("delhi_modern_web_player")&&(this.Z=
new IF,g.O(this,this.Z),this.Z.b0(this.T.Dx(I_.RIGHT_CONTROLS_LEFT)),D.V("delhi_modern_web_player_lhs_volume_controls")||D.V("delhi_modern_web_player_horizontal_volume_controls")||(this.S=new OH(D,Q),g.O(this,this.S),this.S.b0(this.T.Dx(I_.RIGHT_CONTROLS_LEFT))));this.l0=new RC$(D,Q);g.O(this,this.l0);R_(this,this.l0,"RIGHT_CONTROLS_LEFT");this.settingsButton=new qY(D,this.B);g.O(this,this.settingsButton);lC$(this.B,this.settingsButton);R_(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");W=D.getVideoData();
if(m.IH||W.RI&&m.controlsType==="1")this.N=new lA(D,Q),g.O(this,this.N),this.N.b0(this.T.element);m.showMiniplayerButton&&(this.J=new K$(D),g.O(this,this.J),R_(this,this.J,"RIGHT_CONTROLS_RIGHT"));m.YF&&(Q=new bA(D,this.B),g.O(this,Q),R_(this,Q,"RIGHT_CONTROLS_RIGHT"));m.Cm&&(Q=new kn(D),g.O(this,Q),R_(this,Q,"RIGHT_CONTROLS_RIGHT"));g.O(this,this.QF);R_(this,this.QF,"RIGHT_CONTROLS_RIGHT");g.O(this,this.j);this.W(D,"appresize",this.MB);this.W(D,"fullscreentoggled",this.MB);var t;(t=this.Z)==null||
t.subscribe("small-mode-expand-right-bottom-controls",function(){vXm(P)});
var z;(z=this.Z)==null||z.subscribe("small-mode-collapse-right-bottom-controls",function(){vXm(P)});
this.W(D,"presentingplayerstatechange",this.EV);this.W(D,"videodatachange",this.onVideoDataChange);this.MB()};
vXm=function(D){D.C.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",D.Z.isExpanded())};
YAk=function(D,Q){if(D.D.getPlayerStateObject().isCued()||Q){if(Q){D.u0.hide();D.x9.hide();D.S&&D.S.aj(!1);D.N&&D.N.aj(!1);D.J&&D.J.aj(!1);if(D.D.V("embeds_use_parent_visibility_in_ve_logging")){var m;(m=D.QF)==null||m.aj(!1);var P;(P=D.settingsButton)==null||P.aj(!1);var W;(W=D.playButton)==null||W.aj(!1)}D.D.Ko(D.nj())}}else if(!Q){D.u0.show();D.x9.show();D.S&&D.S.aj(!0);D.N&&D.N.aj(!0);D.J&&D.J.aj(!0);if(D.D.V("embeds_use_parent_visibility_in_ve_logging")){var L;(L=D.QF)==null||L.aj(!0);var u;
(u=D.l0)==null||u.aj(!0);var t;(t=D.playButton)==null||t.aj(!0)}D.M_()}};
AIr=function(D){var Q=D.D.fh().getPlayerSize().width;return Math.max(Q-aCm(D)*2,100)};
aCm=function(D){if(D.D.V("web_player_rtr_ctrls")&&D.D.fh().dY)return 0;var Q=D.D.UN(),m=D.D.getVideoData().RI,P=0;D.D.UN()&&D.D.isEmbedsShortsMode()&&(P=(D.D.fh().getPlayerSize().width-D.D.getVideoContentRect().width)/2);return 12*(m?0:Q?2:1)+P};
pkw=function(D){var Q=D.D.UN()?72:50,m=D.D.G();g.EO(m)&&(m.V("delhi_modern_web_player")?(Q=D.D.UN()?112:78,D.D.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(D=getComputedStyle(D.D.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",Q+=Number(D.replace("px","")))):Q=62,g.tf(m)&&(Q=54));return Q};
R_=function(D,Q,m){D.D.V("delhi_modern_web_player")?Q.b0(D.T.Dx(I_[m])):Q.b0(D.T.element)};
x2_=function(D){EB.call(this,D,!1);var Q=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.D,g.r5("suggested_action_button_visible"),function(m){m=m.id;Q.text=m;Zu9(Q);Q.onClickCommand=Q.suggestedActions[m];Q.enabled=!0;Q.sS()});
this.W(this.D,g.GR("suggested_action_button_visible"),function(m){Q.enabled=!1;Q.sS();Q.D.removeCueRange(m.id)})};
Xk7=function(D){D.suggestedActions={};D.D.aI("suggested_action_button_visible")};
Ha=function(D){g.p.call(this,{K:"div",L:UP.TITLE,X:[{K:"div",OW:[UP.TEXT,D.V("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],X:[{K:"a",OW:[UP.LINK,UP.SESSIONLINK],Y:{target:D.G().j,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},h0:"{{title}}"},{K:"div",L:UP.SUBTEXT,X:["{{subtextElement}}"]}]}]});this.api=D;this.S=null;this.link=this.Dx(UP.LINK);D.createClientVe(this.element,this,23851);this.W(D,"videodatachange",this.Lh);this.W(D,
"videoplayerreset",this.Lh);this.Lh()};
SAk=function(D){D.updateValue("channelLink","");D.updateValue("channelName","");g.tf(D.api.G())?D.updateValue("channelTitleFocusable","0"):D.updateValue("channelTitleFocusable","-1")};
g.Ku=function(D,Q){g.p.call(this,{K:"div",X:[{K:"div",L:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},X:[{K:"div",L:"ytp-tooltip-edu",X:[{K:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Y:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{K:"span",h0:"{{eduText}}"}]},{K:"div",L:"ytp-tooltip-image"},{K:"div",L:"ytp-tooltip-title",X:[{K:"span",h0:"{{title}}"},{K:"div",L:"ytp-tooltip-keyboard-shortcut",
h0:"{{keyBoardShortcutTitle}}"}]},{K:"div",L:"ytp-tooltip-bottom-text",X:[{K:"span",L:"ytp-tooltip-text",h0:"{{text}}"},{K:"div",L:"ytp-tooltip-keyboard-shortcut",h0:"{{keyBoardShortcut}}"}]},{K:"div",L:"ytp-tooltip-progress-bar-pill",X:[{K:"div",L:"ytp-tooltip-progress-bar-pill-time-stamp",h0:"{{pillTimeStamp}}"},{K:"div",L:"ytp-tooltip-progress-bar-pill-title",h0:"{{pillTitle}}"}]}]},{K:"div",L:"ytp-tooltip-bg",X:[{K:"div",L:"ytp-tooltip-duration",h0:"{{duration}}"}]}]});var m=this;this.api=D;this.wc=
Q;this.j=function(P){(P=P.relatedTarget)&&g.y0(m.S,P)||m.Qy()};
this.N=function(P){m.type===3&&m.Qy();(P=P.currentTarget)&&P.nodeType===1&&!m.type&&(P.removeEventListener("mouseover",m.N),P.addEventListener("mouseout",m.j),P.removeEventListener("focus",m.N),P.addEventListener("blur",m.j),rIk(m,P,2))};
this.TO=function(){m.Qy()};
this.type=this.S=null;this.Z=!1;this.C=null;this.T="";this.U=!0;this.scale=1;this.env=this.api.G();this.QF=this.env.C;this.wrapper=this.Dx("ytp-tooltip-text-wrapper");this.bg=this.Dx("ytp-tooltip-bg");this.t0=this.Dx("ytp-tooltip-edu");this.image=this.Dx("ytp-tooltip-image");this.text=this.Dx("ytp-tooltip-text");this.bottomText=this.Dx("ytp-tooltip-bottom-text");this.title=this.Dx("ytp-tooltip-title");this.fade=new g.mF(this,100);this.B=NaN;this.Up=this.api.fh().getPlayerSize().width;this.Iy=new g.pJ(this.FG,
250,this);this.Kh=new g.pJ(this.Qy,5E3,this);g.O(this,this.fade);g.O(this,this.Iy);g.O(this,this.Kh);DW&&(D=this.Dx("ytp-tooltip-text"),D.setAttribute("role","text"),D.setAttribute("aria-live","polite"))};
Gjk=function(D,Q){D.env.V("delhi_modern_web_player")&&D.scale!==.6&&(D.scale=Q?.8:1)};
g.av=function(D,Q){if(D.QF)return function(){};
Q.addEventListener("mouseover",D.N);Q.addEventListener("focus",D.N);var m=D.env.V("player_tooltip_data_title_killswitch")?Q.getAttribute("title"):Q.getAttribute("data-tooltip-title");m&&!Q.hasAttribute("aria-label")&&Q.setAttribute("aria-label",m);return function(){D.S===Q&&D.Qy();Q.removeEventListener("mouseover",D.N);Q.removeEventListener("focus",D.N)}};
rIk=function(D,Q,m,P){if(Q&&!Q.hasAttribute)D=new g.OI("showElementTooltip called with non-element.",Q.toString()),g.JG(D);else{isNaN(D.B)||(D.B=NaN,D.bg.style.background="");g.Wo(D.element,"ytp-tooltip-progress-bar-style");D.S=Q;D.Z=!!P;P?D.T=P:(D.env.V("player_tooltip_data_title_killswitch")?D.T=Q.getAttribute("title"):D.T=Q.getAttribute("data-tooltip-title"),D.env.V("player_tooltip_data_title_killswitch")?Q.removeAttribute("title"):Q.removeAttribute("data-tooltip-title"));g.Dx(D.element,"ytp-tooltip");
var W=Q.getAttribute("data-tooltip-image");W&&(D.image.style.backgroundImage="url("+W+")");P?D.update({ariaHidden:"false"}):D.update({ariaHidden:"true"});g.sh(D.element,"ytp-tooltip-image-enabled",!!W);Q=Q.getAttribute("data-tooltip-opaque");g.sh(D.element,"ytp-tooltip-opaque",!!Q);D.type=m;D.api.addEventListener("appresize",D.TO);D.U&&(jV(D),D.fade.show(0))}};
jV=function(D){if(D.S){var Q=D.S.getAttribute("data-tooltip-text");if(D.T&&D.S.getAttribute("aria-label")!==D.T)var m=D.T;var P=D.S.getAttribute("aria-keyshortcuts"),W=D.S.getAttribute("data-title-no-tooltip");P&&W&&(m=g.LZ("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:W,SHORTCUT_KEY:P}));m&&D.S.setAttribute("aria-label",m);if(Q&&!D.Z){Gjk(D,!0);var L=D.S;D.updateValue("text",Q);m=L.getAttribute("data-duration");D.update({title:D.T,duration:m});L=L.getAttribute("data-preview");D.env.V("delhi_modern_web_player")?
(D.updateValue("title",W),D.updateValue("keyBoardShortcutTitle",P.toUpperCase())):Gjk(D,!1);P=243*D.scale;W=141*D.scale;D.bg.style.width=P+"px";D.bg.style.height=W+"px";D.bg.style.backgroundImage=L?"url("+L+")":"";D.bg.style.backgroundSize=P+"px "+W+"px";D.wrapper.style.width=P+"px";g.Po(D.element,["ytp-text-detail","ytp-preview"]);g.sh(D.element,"ytp-has-duration",!!m)}else W&&P&&D.env.V("delhi_modern_web_player")?(D.updateValue("text",W),D.updateValue("keyBoardShortcut",P.toUpperCase())):D.updateValue("text",
D.T),g.iT(D.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);m=D.S;m.hasAttribute("data-tooltip-offset-y")?(m=Number(m.getAttribute("data-tooltip-offset-y")),m=isNaN(m)?0:m):m=0;Mgr(D,!!Q,void 0,m)}};
Mgr=function(D,Q,m,P){var W=Math.min(D.Up,300*D.scale);D.element.style.maxWidth=Q?"":W+"px";D.wc.GK(D.element,D.S,m,D.type===1,P);D.element.style.top?g.mQ(D.element,"ytp-bottom"):D.element.style.bottom&&g.mQ(D.element,"ytp-top");D.type===3&&D.Kh.start()};
cIm=function(D,Q){g.sh(D.element,"ytp-preview",Q>=0);if(!(Q<0||Q===D.B)){D.B=Q;Q=243*D.scale;var m=141*D.scale,P=pQm(D.C,D.B,Q);Olr(D.bg,P,Q,m,!0);D.Iy.start()}};
D__=function(D){var Q=D.S;D.type===3&&D.Kh.stop();D.api.removeEventListener("appresize",D.TO);D.Z||(D.env.V("player_tooltip_data_title_killswitch")?Q.setAttribute("title",D.T):Q.setAttribute("data-tooltip-title",D.T));D.T="";D.S=null;D.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});D.wrapper.style.width=""};
m_4=function(D){g.p.call(this,{K:"button",OW:["ytp-watch-later-button","ytp-button"],Y:{title:D.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.W8(D.G()))},X:[{K:"div",L:"ytp-watch-later-icon",h0:"{{icon}}"},{K:"div",L:"ytp-watch-later-title",h0:"Watch later"}]});this.D=D;this.icon=null;this.visible=this.isRequestPending=this.S=!1;hFm(D);D.createClientVe(this.element,this,28665);this.listen("click",
this.onClick,this);this.W(D,"videoplayerreset",this.onReset);this.W(D,"appresize",this.Vx);this.W(D,"videodatachange",this.Vx);this.W(D,"presentingplayerstatechange",this.Vx);this.Vx();D=this.D.G();var Q=g.kt("yt-player-watch-later-pending");D.B&&Q?(xwP(),QK6(this)):this.Lh(2);g.sh(this.element,"ytp-show-watch-later-title",g.W8(D));A2(this.D,this.element,this)};
Pg6=function(D){var Q=D.D.getPlayerSize(),m=D.D.G(),P=D.D.getVideoData(),W=g.W8(m)&&g.Gv(D.D)&&g.X(D.D.getPlayerStateObject(),128),L=m.T;return m.F2&&Q.width>=240&&!P.isAd()&&P.F2&&!W&&!P.RI&&!D.D.isEmbedsShortsMode()&&!L};
Wym=function(D,Q){Dxj(g.ZW(D.D.G()),"wl_button",function(){xwP({videoId:Q});window.location.reload()})};
QK6=function(D){if(!D.isRequestPending){D.isRequestPending=!0;D.Lh(3);var Q=D.D.getVideoData();Q=D.S?Q.removeFromWatchLaterCommand:Q.addToWatchLaterCommand;var m=D.D.lS(),P=D.S?function(){D.S=!1;D.isRequestPending=!1;D.Lh(2);D.D.G().Z&&D.D.sW("WATCH_LATER_VIDEO_REMOVED")}:function(){D.S=!0;
D.isRequestPending=!1;D.Lh(1);D.D.G().C&&D.D.IX(D.element);D.D.G().Z&&D.D.sW("WATCH_LATER_VIDEO_ADDED")};
Kc(m,Q).then(P,function(){D.isRequestPending=!1;D.Lh(4,"An error occurred. Please try again later.");D.D.G().Z&&D.D.sW("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
iH4=function(D,Q){if(Q!==D.icon){switch(Q){case 3:var m=li();break;case 1:m=oq();break;case 2:m={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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:m={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",
Rt:!0,Y:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}D.updateValue("icon",m);D.icon=Q}};
sK4=function(){g.GI.apply(this,arguments);this.P$=(this.AZ=g.W8(this.api.G()))&&(this.api.G().C||rj()||XN());this.Ay=48;this.WH=69;this.i4=this.W1=null;this.nk=[];this.Po=this.rl=this.a6=this.RA=this.l7=null;this.wr=[];this.contextMenu=this.Mp=this.overflowButton=this.xt=this.yA=this.searchButton=this.copyLinkButton=this.shareButton=this.Qr=this.Ld=this.title=this.channelAvatar=this.Yf=this.tooltip=null;this.uD=!1;this.NF=this.TK=this.TZ=this.Ih=null;this.l$D=this.qM=this.MP=!1};
Ly4=function(D){var Q=D.api.G(),m=g.X(D.api.getPlayerStateObject(),128);return Q.B&&m&&!D.api.isFullscreen()};
uxn=function(D){if(D.Px()&&!D.api.isEmbedsShortsMode()&&D.xt){var Q=D.api.V("web_player_hide_overflow_button_if_empty_menu");!D.Qr||Q&&!Pg6(D.Qr)||Wv7(D.xt,D.Qr);!D.shareButton||Q&&!Fv6(D.shareButton)||Wv7(D.xt,D.shareButton);!D.copyLinkButton||Q&&!N17(D.copyLinkButton)||Wv7(D.xt,D.copyLinkButton)}else{Q=D.api.G().getWebPlayerContextConfig();if(D.xt){for(var m=D.xt,P=g.T(m.actionButtons),W=P.next();!W.done;W=P.next())W.value.detach();m.actionButtons=[]}D.searchButton&&!g.y0(D.Ld.element,D.searchButton.element)&&
D.searchButton.b0(D.Ld.element);!D.Qr||(Q==null?0:Q.hideTopWatchNextButton)||g.y0(D.Ld.element,D.Qr.element)||D.Qr.b0(D.Ld.element);!D.shareButton||(Q==null?0:Q.hideTopShareButton)||g.y0(D.Ld.element,D.shareButton.element)||D.shareButton.b0(D.Ld.element);D.copyLinkButton&&!g.y0(D.Ld.element,D.copyLinkButton.element)&&D.copyLinkButton.b0(D.Ld.element)}};
d_r=function(D,Q,m){Q=m?Q.lastElementChild:Q.firstElementChild;for(var P=null;Q;){if(pa(Q,"display")!=="none"&&Q.getAttribute("aria-hidden")!=="true"){var W=void 0;Q.tabIndex>=0?W=Q:W=d_r(D,Q,m);W&&(P?m?W.tabIndex>P.tabIndex&&(P=W):W.tabIndex<P.tabIndex&&(P=W):P=W)}Q=m?Q.previousElementSibling:Q.nextElementSibling}return P};
tp7=function(D,Q,m){if(D.api.V("web_player_nitrate_promo_tooltip")&&D.api.getPresentingPlayerType(!0)!==2){var P=D.api.getVideoData(1);if(P==null?0:P.tooltipRenderer){P=P.tooltipRenderer;var W;if(W=!D.NF){if(!(Q=!Q)){var L,u,t;Q=((L=P.tooltipDisplayStrategy)==null?void 0:L.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((u=P.promoConfig)==null?void 0:u.promoId)!=="dtip-edu-player-iseecaptions"&&((t=P.promoConfig)==null?void 0:t.promoId)!=="dtip-edu-player-tc-m2"}W=Q}W&&(D.NF=new uD6(P,D.api),
g.O(D,D.NF),g.Q3(D.api,D.NF.element,9));var z;(z=D.NF)==null||blh(z,P,m)}}};
g.$6=function(D){g.nW.call(this,D);this.chrome=null;this.load()};
zZm=function(){for(var D=eV.length;D<4;D++){var Q=g.qi("VIDEO");Q.load();eV.push(new g.SK(Q))}};
bH4=function(D,Q,m,P){var W=m.getVideoData(),L=Q.getVideoData();if(m.getPlayerState().isError())return{msg:"player-error"};var u=L.T;if(Q.ws()>P/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(P))return{msg:"live-infinite"};(P=Q.Cn())&&P.isView()&&(P=P.mediaElement);if(P&&P.U_().length>12&&g.Xi(W))return{msg:"played-ranges"};if(!W.T)return null;if(!u)return{msg:"no-pvd-formats"};if(!W.T.S||!u.S)return{msg:"non-dash"};P=u.videoInfos[0];var t=W.T.videoInfos[0];D.TO&&lH(L)&&(P=Q.Py(),
t=m.Py());if(!P||!t)return{msg:"no-video-info"};if(D.N&&(Sk(P)||Sk(t)))return{msg:"av1"};Q=D.B&&L.LU()&&Zj();if(t.containerType!==P.containerType)if(Q)L.dc("sgap",{ierr:"container"});else return{msg:"container"};if(D.J&&!Q&&(t.FT!==P.FT||t.FT===""||P.FT===""))return{msg:"codec"};if(D.U&&t.video&&P.video&&Math.abs(t.video.width/t.video.height-P.video.width/P.video.height)>.01)return{msg:"ratio"};if(g.Xi(L)&&g.Xi(W))return{msg:"content-protection"};u=u.S[0];W=W.T.S[0];m=u.audio;var z=W.audio;if(m.sampleRate!==
z.sampleRate&&!g.Ta)if(Q)L.dc("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:u.itag,cr:m.sampleRate,ni:W.itag,nr:z.sampleRate};return(m.numChannels||2)!==(z.numChannels||2)?{msg:"channel-count"}:D.Z&&L.LU()&&P.video.fps!==t.video.fps?{msg:"fps"}:null};
qC7=function(D,Q,m){var P=D.getVideoData(),W=Q.getVideoData();if(!P.G().supportsGaplessShorts())return{nq:"env"};if((!m.j||P.BB&&!P.isAd()||W.BB&&!W.isAd())&&(!m.C||P.BB&&!P.isAd()||W.BB)&&(!m.T||W.BB&&!W.isAd()||P.BB)&&(P.BB||W.BB))return{nq:"autoplay"};if(P.endSeconds>0)return{nq:"endcr"};if(!P.U)return{nq:"client"};if(!D.O3())return{nq:"no-empty"};D=bH4(m,D,Q,Infinity);return D!=null?{nq:D.msg}:null};
va=function(D){g.v.call(this);this.app=D;this.J=this.B=this.C=this.S=null;this.T=1;this.events=new g.gO(this);this.events.W(this.app.zO,g.GR("gaplessshortslooprange"),this.Z);g.O(this,this.events)};
Cg9=function(){this.S=this.U=this.T=this.C=this.j=this.N=this.TO=this.Z=this.J=this.B=!1};
oCP=function(D){var Q=new Cg9;Q.B=D.V("h5_gapless_support_types_diff");Q.Z=!1;Q.TO=D.V("html5_gapless_use_format_info_fix");Q.N=D.V("html5_gapless_disable_on_av1")&&!D.V("html5_gapless_enable_on_av1");Q.J=D.V("html5_gapless_check_codec_diff_strictly");Q.j=D.V("html5_gapless_on_ad_autoplay");Q.U=D.V("html5_gapless_disable_diff_aspect_radio");Q.C=D.V("html5_gapless_ad_autoplay_on_ad_to_video_only");Q.S=D.V("html5_pseudogapless_shorts_seek_to_next_start");Q.T=D.V("html5_gapless_ad_autoplay_on_video_to_ad_only");
return Q};
g.OP=function(D,Q,m,P){P=P===void 0?!1:P;J$.call(this);this.mediaElement=D;this.start=Q;this.end=m;this.S=P};
fPr=function(D,Q,m,P,W,L){L=L===void 0?0:L;g.v.call(this);var u=this;this.policy=D;this.S=Q;this.C=m;this.lE=W;this.J=L;this.B=this.T=null;this.currentVideoDuration=this.N=-1;this.U=!1;this.ZB=new kS;this.ET=P-Q.m2()*1E3;this.ZB.then(void 0,function(){});
this.timeout=new g.pJ(function(){u.K6("timeout")},1E4);
g.O(this,this.timeout);this.Z=isFinite(P)||this.lE.G().experiments.Mv("html5_pseudogapless_shorts")&&lH(Q.getVideoData());this.status={status:0,error:null}};
N4w=function(D){var Q,m,P,W,L,u,t,z,b;return g.U(function(q){if(q.C==1){if(D.VF())return q.return(Promise.reject(Error(D.status.error||"disposed")));D.timeout.start();return g.I(q,D.ZB,2)}Q=D.S.Cn();if(Q.isEnded())return D.K6("ended_in_finishTransition"),q.return(Promise.reject(Error(D.status.error||"")));if(!D.B||!h$(D.B))return D.K6("next_mse_closed"),q.return(Promise.reject(Error(D.status.error||"")));if(D.C.Hk()!==D.B)return D.K6("next_mse_mismatch"),q.return(Promise.reject(Error(D.status.error||
"")));m=Y6(D);P=m.zJ;W=m.GP;L=m.jq;D.S.U3(!1,!0);u=Vpn(Q,P,L,!D.C.getVideoData().isAd());D.C.setMediaElement(u);(t=D.S.xZ())&&D.C.lY(t.K$,t.Dv);D.Z&&(D.policy.S||D.C.seekTo(D.C.getCurrentTime()+.001,{ZA:!0,rW:3,cn:"gapless_pseudo"}),u.play(),Bd());z=Q.yX();z.cpn=D.S.getVideoData().clientPlaybackNonce;z.st=""+P;z.et=""+L;D.C.dc("gapless",z);D.S.dc("gaplessTo",{cpn:D.C.getVideoData().clientPlaybackNonce});b=D.S.getPlayerType()===D.C.getPlayerType();D.S.JX(W,!0,!1,b,D.C.getVideoData().clientPlaybackNonce);
D.C.JX(D.C.getCurrentTime(),!0,!0,b,D.S.getVideoData().clientPlaybackNonce);D.C.dO();g.Fd(function(){!D.C.getVideoData().Iy&&D.C.getPlayerState().isOrWillBePlaying()&&D.C.lA()});
a_(D,6);D.dispose();return q.return(Promise.resolve())})};
T4P=function(D){if(D.C.getVideoData().T){var Q=D.lE.G().V("html5_gapless_suspend_next_loader")&&D.J===1;D.C.kc(D.B,Q,yZw(D));a_(D,3);ZH7(D);var m=Fyw(D);Q=m.f_;m=m.gH;Q.subscribe("updateend",D.AG,D);m.subscribe("updateend",D.AG,D);D.AG(Q);D.AG(m)}};
ZH7=function(D){D.S.unsubscribe("internalvideodatachange",D.QR,D);D.C.unsubscribe("internalvideodatachange",D.QR,D);D.lE.G().V("html5_gapless_use_format_info_fix")&&(D.S.unsubscribe("internalvideoformatchange",D.QR,D),D.C.unsubscribe("internalvideoformatchange",D.QR,D));D.S.unsubscribe("mediasourceattached",D.QR,D);D.C.unsubscribe("statechange",D.qD,D)};
Vpn=function(D,Q,m,P){D=D.isView()?D.mediaElement:D;return new g.OP(D,Q,m,P)};
a_=function(D,Q){Q<=D.status.status||(D.status={status:Q,error:null},Q===5&&D.ZB.resolve())};
yZw=function(D){return D.lE.G().V("html5_gapless_no_clear_buffer_timeline")&&D.J===1&&H1(D.S.getVideoData())};
Y6=function(D){var Q=D.S.Cn();Q=Q.isView()?Q.start:0;var m=D.S.getVideoData().isLivePlayback?Infinity:D.S.qL(!0);m=Math.min(D.ET/1E3,m)+Q;var P=D.Z?100:0;D=m-D.C.ws()+P;return{s9:Q,zJ:D,GP:m,jq:Infinity}};
Fyw=function(D){return{f_:D.T.S.D$,gH:D.T.C.D$}};
AO=function(D){g.v.call(this);var Q=this;this.app=D;this.N=this.C=this.S=null;this.Z=!1;this.T=this.B=null;this.J=oCP(this.app.G());this.U=function(){g.Fd(function(){hZ7(Q)})}};
nC_=function(D,Q,m,P,W){P=P===void 0?0:P;W=W===void 0?0:W;D.O3()||pu(D);D.B=new kS;D.S=Q;var L=m,u=W===0;u=u===void 0?!0:u;var t=D.app.Zx(),z=t.getVideoData().isLivePlayback?Infinity:t.qL(!0)*1E3;L>z&&(L=z-200,D.Z=!0);u&&t.getCurrentTime()>=L/1E3?D.U():(D.C=t,u&&(u=L,L=D.C,D.app.zO.addEventListener(g.r5("vqueued"),D.U),u=isFinite(u)||u/1E3>L.getDuration()?u:0x8000000000000,D.N=new g.XB(u,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(D.N)));u=P/=1E3;L=Q.getVideoData().S;P&&L&&D.C&&(t=P,z=0,
Q.getVideoData().isLivePlayback&&(u=Math.min(m/1E3,D.C.qL(!0)),z=Math.max(0,u-D.C.getCurrentTime()),t=Math.min(P,Q.qL()+z)),u=BMh(L,t)||P,u!==P&&D.S.dc("qvaln",{st:P,at:u,rm:z,ct:t}));Q=u;P=D.S;P.getVideoData().H1=!0;P.getVideoData().U=!0;P.rM(!0);L={};D.C&&(L=D.C.u6(),u=D.C.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:u});P.dc("queued",L);Q!==0&&P.seekTo(Q+.01,{ZA:!0,rW:3,cn:"videoqueuer_queued"});D.T=new fPr(D.J,D.app.Zx(),D.S,m,D.app,W);m=D.T;m.status.status!==Infinity&&(a_(m,
1),m.S.subscribe("internalvideodatachange",m.QR,m),m.C.subscribe("internalvideodatachange",m.QR,m),m.lE.G().V("html5_gapless_use_format_info_fix")&&(m.S.subscribe("internalvideoformatchange",m.QR,m),m.C.subscribe("internalvideoformatchange",m.QR,m)),m.S.subscribe("mediasourceattached",m.QR,m),m.C.subscribe("statechange",m.qD,m),m.S.subscribe("newelementrequired",m.uC,m),m.QR());return D.B};
hZ7=function(D){var Q,m,P,W,L,u,t;g.U(function(z){switch(z.C){case 1:if(D.VF()||!D.B||!D.S)return z.return();D.Z&&D.app.Zx().Ao(!0,!1);Q=null;if(!D.T){z.Nv(2);break}g.h4(z,3);return g.I(z,N4w(D.T),5);case 5:g.g7(z,2);break;case 3:Q=m=g.w7(z);case 2:if(!D.S)return z.return();EC6.dk("vqsp",function(){D.app.Vd(D.S)});
if(!D.S)return z.return();P=D.S.Cn();D.app.G().V("html5_gapless_seek_on_negative_time")&&P&&P.getCurrentTime()<-.01&&D.S.seekTo(0);EC6.dk("vqpv",function(){D.app.playVideo()});
Q&&(D.S?(W=Q?Q.message:"forced",(L=D.C)==null||L.dc("gapfulfbk",{r:W}),D.S.VO(W)):(u=D.C)==null||u.dc("gapsp",{}));t=D.B;pu(D);t&&t.resolve();return z.return(Promise.resolve())}})};
pu=function(D,Q){Q=Q===void 0?!1:Q;if(D.C){if(D.N){var m=D.C;D.app.zO.removeEventListener(g.r5("vqueued"),D.U);m.removeCueRange(D.N)}D.C=null;D.N=null}D.T&&(D.T.status.status!==6&&(m=D.T,m.status.status!==Infinity&&m.J!==1&&m.K6("Canceled")),D.T=null);D.B=null;D.S&&!Q&&D.S!==D.app.dB()&&D.S!==D.app.Zx()&&D.S.dispose();D.S&&Q&&D.S.rX();D.S=null;D.Z=!1};
gC4=function(D){var Q;return((Q=D.T)==null?void 0:Q.currentVideoDuration)||-1};
B4$=function(D,Q,m){if(D.O3())return"qie";if(D.S==null||D.S.VF()||D.S.getVideoData()==null)return"qpd";if(Q.videoId!==D.S.YV())return"vinm";if(gC4(D)<=0)return"ivd";if(m!==1)return"upt";if((m=D.T)==null)D=void 0;else if(m.getStatus().status!==5)D="niss";else if(bH4(m.policy,m.S,m.C,m.ET)!=null)D="pge";else{Q=Fyw(m);D=Q.f_;var P=Q.gH;Q=g.WF(m.lE.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var W=m.N+Q;m.lE.G().experiments.Mv("html5_pseudogapless_shorts")&&(W=Y6(m).zJ+Q);m=z5(P.Ti(),
W);D=z5(D.Ti(),W);D=!(Q>0)||m&&D?null:"neb"}return D!=null?D:null};
wGk=function(){g.iR.call(this);var D=this;this.fullscreen=0;this.B=this.T=this.pictureInPicture=this.S=this.C=this.inline=!1;this.J=function(){D.sS()};
wZn(this.J);this.N=this.getVisibilityState(this.xP(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.CU(),this.DS(),this.u9(),this.iS())};
luk=function(D){return!(D.isMinimized()||D.isInline()||D.isBackground()||D.CU()||D.DS()||D.u9()||D.iS())};
g.x6=function(D){g.v.call(this);this.SD=D;this.videoData=this.playerState=null};
ra=function(D,Q){g.v.call(this);var m=this;this.data=[];this.T=D||NaN;this.C=Q||null;this.S=new g.pJ(function(){Xt(m);SV(m)});
g.O(this,this.S)};
Ee4=function(D){Xt(D);return D.data.map(function(Q){return Q.value})};
Xt=function(D){var Q=(0,g.T3)();D.data.forEach(function(m){m.expire<Q&&GC(D,m,!0)});
D.data=g.g0(D.data,function(m){return!(m.expire<Q)})};
GC=function(D,Q,m){m&&D.C&&D.C(Q.value)};
SV=function(D){D.S.stop();var Q=Infinity;for(var m=g.T(D.data),P=m.next();!P.done;P=m.next())P=P.value,P.expire<Q&&(Q=P.expire);Q&&isFinite(Q)&&(Q=Math.max(Q-Date.now(),100),D.S.start(Q))};
g.MY=function(D,Q){g.v.call(this);var m=this;this.api=D;this.T={};this.Vy=null;this.N={};this.U=this.B=null;Q=new ra(Q,function(P){P!==m.zc({playerType:P.getPlayerType()})&&P.dispose()});
g.O(this,Q);this.C=this.Z=this.S=new g.x6(D.G());this.J=Q};
ca=function(D){var Q=[{cpn:D.C.GE()}];D.B&&Q.push({cpn:D.B.GE()});D.api.publish("playbackChange",{ppc:Q})};
kl7=function(D){for(var Q=g.T(Object.values(D.N)),m=Q.next();!m.done;m=Q.next())m.value.dispose();D.N={};D.B=null;D.U=null;ca(D)};
Dg=function(D,Q,m){D.N[Q.GE()]=Q;D.B=Q;m&&(D.U=Q);ca(D)};
U_6=function(D){var Q=D.experiments,m=Q.Mv.bind(Q);JZ7=m("html5_use_async_stopVideo");lPn=m("html5_pause_for_async_stopVideo");IPP=m("html5_not_reset_media_source");m("html5_listen_for_audio_output_changed")&&(Y9j=!0);n2=m("html5_not_reset_media_source");RZw=m("html5_not_reset_media_source");NG=m("html5_retain_source_buffer_appends_for_debugging");SPr(m("web_watch_pip"));m("html5_mediastream_applies_timestamp_offset")&&($Q=!0);var P=g.WF(Q,"html5_cobalt_override_quic");P&&Vh$("QUIC",+(P>0));D.xl()&&
y27();Error.stackTraceLimit=50;var W=g.WF(Q,"html5_idle_rate_limit_ms");W&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,W)}});
Ssh(D.J);a2P(m("html5_use_ump_request_slicer"));N_w(m("html5_record_now"));m("html5_disable_streaming_xhr")&&(hY=!1);m("html5_byterate_constraints")&&(RP=!0);m("html5_use_non_active_broadcast_for_post_live")&&(ZB=!0);m("html5_enable_encrypted_av1")&&(XO=!0);Ygm(g.WF(D.experiments,"html5_sticky_duration_mos"))};
HH7=function(D,Q){return D.slice(Q.length).replace(/_[a-z]/g,function(m){return m.toUpperCase().replace("_","")}).replace("Dot",".")};
Ky7=function(D){var Q={},m=Object.keys(D.experiments.flags);m=g.T(m);for(var P=m.next();!P.done;P=m.next())if(P=P.value,P.startsWith("cobalt_h5vcc"))if(P.startsWith("cobalt_h5vcc_string")){var W=HH7(P,"cobalt_h5vcc_string");P=nD(D.experiments,P);W&&P&&(Q[W]=Vh$(W,P))}else P.startsWith("cobalt_h5vcc")&&(W=HH7(P,"cobalt_h5vcc"),P=g.WF(D.experiments,P),W&&P&&(Q[W]=Vh$(W,P)));return Q};
$_r=function(D,Q,m,P){P=P===void 0?0:P;g.L5.call(this,m.N6());var W=this;this.Ax=D;this.videoData=Q;this.duration=P;this.S=this.startTimeSecs=0;this.C=new jKk(function(L,u){return void W.dc(L,u)})};
jKk=function(D){this.dc=D;this.S={}};
eZ9=function(D,Q,m){D.S[Q]||(D.dc("huli-sdai-err",m),D.S[Q]=!0)};
vCj=function(D){this.end=this.start=D};
g.Qb=function(){this.S=new Map;this.T=new Map;this.C=new Map};
OH_=function(D){var Q=this;this.SD=D;this.C=[];this.T=new Map;this.B=new Map;this.S=new Map;this.It={xp:function(){return Q.T},
G9W:function(){return Q.B},
w_:function(){return Q.C}};
this.J=this.SD.V("html5_huli_ssdai_deprecate_playback_timeline_id")};
YC_=function(D,Q,m){D=D.C;var P=g.OU(D,{Qn:Q},function(u,t){return u.Qn-t.Qn});
P=P<0?(P+2)*-1:P;if(P>=0)for(var W=P;W<=P+1&&W<D.length;W++){var L=D[W];if(Q>=L.Qn-m&&Q<=L.b7+m)return L}};
AZh=function(D,Q){g.XK(D.C,Q,function(m,P){return m.Qn===P.Qn?m.durationMs-P.durationMs:m.Qn-P.Qn});
D.T.set(Q.cpn,Q);Q.Um&&!D.J&&D.B.set(Q.Um,Q);Q.Rk&&aP4(D,Q.Rk,Q)};
pGk=function(D,Q){for(var m=[],P=g.T(D.C),W=P.next();!W.done;W=P.next())W=W.value,Q(W)||m.push(W);if(D.SD.V("html5_sstm_fixes"))for(P=g.T(D.C),W=P.next();!W.done;W=P.next())W=W.value,Q(W)&&(D.T.delete(W.cpn),W.Um&&D.B.delete(W.Um));D.C=m};
x_n=function(D,Q){Q=g.OU(D.C,{b7:Q},function(m,P){return m.b7-P.b7});
return Q>=0?D.C[Q]:null};
XG$=function(D,Q){var m=D.C.indexOf(Q);m>=0&&D.C.splice(m,1);D.T.delete(Q.cpn);Q.Um&&D.B.delete(Q.Um)};
aP4=function(D,Q,m){var P=D.S.get(Q);P?(P.push(m),g.pV(P,function(W,L){return W.Qn-L.Qn})):D.S.set(Q,[m])};
g.ma=function(D,Q,m,P){g.v.call(this);var W=this;this.api=D;this.SD=Q;this.playback=m;this.app=P;this.Iy=new g.Qb;this.C=new Map;this.t0=new Map;this.QF=null;this.jD=NaN;this.l0=this.oy=null;this.XT=new g.pJ(function(){SC$(W,W.jD,W.oy||void 0)});
this.events=new g.gO(this);this.k9=15E3;this.U=new g.pJ(function(){W.Z=!0;W.playback.Ys(W.k9);rZw(W);if(W.playback.getVideoData().xB()){var L;W.Rj({togab:(L=W.N)==null?void 0:L.identifier})}W.m3(!1)},this.k9);
this.Z=!1;this.J=new Map;this.u0=[];this.N=null;this.dn=new Set;this.j=[];this.Y9=[];this.Lj=[];this.Kj=[];this.wc=new Set;this.e$=0;this.TO=!1;this.cY=new Set;this.pj=new Set;this.PY=new Set;this.GO=new Set;this.hU=this.DA=0;this.tp=this.gB=!1;this.oF=this.T="";this.Kh=null;this.logger=new g.EW("dai");this.It={aBc:function(){return W.C},
xp:function(){return W.S.It.xp()},
XIq:function(){return W.T},
Uz0:function(L){W.onCueRangeEnter(W.C.get(L))},
mzO:function(L){W.onCueRangeExit(W.C.get(L))},
Th0:function(L,u){W.C.set(L,u)},
Igx:function(L){W.oF=L},
xu:function(){return W.xu()},
YM0:function(L){return W.S.S.get(L)},
sbc:function(){return W.Kh},
w_:function(){return W.S.It.w_()}};
this.playback.getPlayerType();this.S=new OH_(this.SD);this.playback.OA(this);this.x9=this.SD.xl();g.O(this,this.XT);g.O(this,this.events);g.O(this,this.U);this.SD.V("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.VZ,this):(this.events.W(this.api,g.r5("serverstitchedcuerange"),this.onCueRangeEnter),this.events.W(this.api,g.GR("serverstitchedcuerange"),this.onCueRangeExit));Dg(this.app.yy(),this.playback,!1)};
QB7=function(D,Q,m,P,W,L,u,t){var z=Gl9(D,L,L+W);D.Z&&D.Rj({adaftto:1});m||D.Rj({missadcon:1,enter:L,len:W,aid:t});D.B&&!D.B.qI&&(D.B.qI=t);D.tp&&D.Rj({adfbk:1,enter:L,len:W,aid:t});var b=D.playback;L>u&&P2(D,{reason:"enterTime_greater_than_return",Qn:L,b7:u});var q=b.TY()*1E3;L<q&&P2(D,{reason:"enterTime_less_than_minSeekableTime",enterMs:L,minSkMs:q},!1);b=b.getDuration()*1E3;u>b&&P2(D,{reason:"parent_return_greater_than_content_duration",b7:u,iGF:b});(b=x_n(D.S,L))&&b.b7>L&&Mpn(D,Q.video_id||"",
L,u,b);if(z&&b)for(q=0;q<D.j.length;q++){if(D.j[q].identifier===z.identifier){D.j.splice(q,1);break}}else if(z){D.Rj({rejectAttl:1});t&&!v9(D.Kj,function(C){return C===t})&&(D.Rj({rejectAdBreakAttl:t},!0),D.Kj.push(t));
W2(D);return}Q.cpn||(Q.cpn=g.V$(16));z=Q.cpn;Q=new g.ZY(D.SD,Q);q=D.SD.V("html5_huli_ssdai_deprecate_playback_timeline_id")?z:"ss_childplayback_"+cZj++;Q.Um=q;AZh(D.S,{Um:q,playerType:P,durationMs:W,Qn:L,b7:u,cpn:z,videoData:Q,errorCount:0,ssdaiAdsConfig:m,Rk:t?t:b?b.Rk:z});Dsm(D,Q,W);D.Rj({attlDone:u-L,acpn:z,et:L,prt:u});D.U.isActive()&&(D.Z=!1,D.U.stop(),rZw(D),D.m3(!0));return Q};
msh=function(D,Q,m){return{ssvc:Q,cpn:(m==null?void 0:m.cpn)||"",vid:(m==null?void 0:m.videoData.videoId)||"",ct:(D.playback.getCurrentTime()||0).toFixed(3),cmt:(D.playback.ws()||0).toFixed(3)}};
Dsm=function(D,Q,m){var P;(P=D.app.yy().N[Q.clientPlaybackNonce]||null)==null||P.dispose();Q=new $_r(D,Q,D.playback,m/1E3);D.t0.set(Q.GE(),Q);D.app.yy().N[Q.GE()]=Q};
Pyn=function(D,Q){var m=D.app;NO(m.tD())&&m.Vn.T[2]&&D.logger.S(360717806,"SSTM lingering playback");D.api.Bl();D.api.publish("serverstitchedvideochange",Q.Um,Q.fJ)};
i07=function(D,Q){return(D=WTw(D,Q*1E3))?Q-D.start/1E3:Q};
LT7=function(D,Q){return(D=sB6(D,Q*1E3))?D.durationMs/1E3:0};
ukw=function(D){if(D.tp)return!1;var Q=void 0;D.oF&&(Q=D.S.zc({cpn:D.oF}));return D.playback.getVideoData().xB()?!!Q&&!Q.FJ:!!Q};
dsm=function(D,Q){if(!D.tp){var m=void 0;D.oF&&(m=D.S.zc({cpn:D.oF}));if(!m){m=sB6(D,Q*1E3);var P,W=(P=m)==null?void 0:P.cpn;D.oF?W&&D.oF!==W&&D.Rj({cpcnm:W+"_"+D.oF,cmt:Q.toFixed(3)}):D.Rj({cpcna:W,cmt:Q.toFixed(3)})}var L;return(L=m)==null?void 0:L.videoData}};
iU=function(D,Q,m){return{k0:YC_(D.S,Q*1E3,(m===void 0?0:m)*1E3),Xq:Q}};
sB6=function(D,Q){var m="";(Q=WTw(D,Q))&&(m=Q.getId());return m?D.S.zc({cpn:m}):void 0};
WTw=function(D,Q){if(D.oF){var m=D.C.get(D.oF);if(m&&m.start-200<=Q&&m.end+200>=Q)return m}D=g.T(D.C.values());for(m=D.next();!m.done;m=D.next())if(m=m.value,m.start<=Q&&m.end>=Q)return m};
SC$=function(D,Q,m){var P=D.l0||D.app.Zx().getPlayerState();sZ(D,!0);D.playback.seekTo(Q,m);D=D.app.Zx();Q=D.getPlayerState();P.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?D.playVideo():P.isPaused()&&!Q.isPaused()&&D.pauseVideo()};
sZ=function(D,Q){D.jD=NaN;D.oy=null;D.XT.stop();D.QF&&Q&&D.QF.VB();D.l0=null;D.QF=null};
b06=function(D){var Q=Q===void 0?-1:Q;var m=m===void 0?Infinity:m;t_w(D,Q,m);for(var P=g.T(D.C.values()),W=P.next();!W.done;W=P.next())W=W.value,W.start>=Q&&W.end<=m&&(D.playback.removeCueRange(W),D.C.delete(W.getId()),D.Rj({rmAdCR:1}));P=iU(D,Q/1E3);Q=P.k0;P=P.Xq;Q&&(P=P*1E3-Q.Qn,z4_(D,Q,P,Q.Qn+P),P=D.C.get(Q.cpn))&&(P.start=Q.Qn,P.end=Q.Qn+Q.durationMs);if(Q=iU(D,m/1E3).k0){var L;P="playback_timelinePlaybackId_"+Q.Um+"_video_id_"+((L=Q.videoData)==null?void 0:L.videoId)+"_durationMs_"+Q.durationMs+
"_enterTimeMs_"+Q.Qn+"_parentReturnTimeMs_"+Q.b7;D.LF("Invalid_clearEndTimeMs_"+m+"_that_falls_during_"+P+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
qQm=function(D){D.Iy.clearAll();D.C.clear();D.S.clear();D.J.clear();D.u0=[];D.N=null;D.dn.clear();D.SD.experiments.Mv("html5_ssdai_log_missing_ad_config_reason")&&D.wc.clear();D.j=[];D.Y9=[];D.Lj=[];D.Kj=[];D.cY.clear();D.pj.clear();D.PY.clear();D.GO.clear();D.Z=!1;D.e$=0;D.TO=!1;D.DA=0;D.hU=0;D.gB=!1;D.tp=!1;D.T="";kl7(D.app.yy());Dg(D.app.yy(),D.playback,!1);D.t0.clear();D.U.isActive()&&W2(D)};
z4_=function(D,Q,m,P){Q.durationMs=m;Q.b7=P;(P=D.t0.get(Q.cpn))?P.Pk(m/1E3):D.Rj({nop_d:Q.cpn})};
t_w=function(D,Q,m){pGk(D.S,function(P){return P.Qn>=Q&&P.b7<=m})};
fm6=function(D,Q,m,P,W,L){if(!D.tp)if(g.Cyh(D,m))D.Rj({gdu:"undec",seg:m,itag:W});else if(Q=o9m(D,Q,m,P,L),!(D.playback.getVideoData().xB()&&(Q==null?0:Q.FJ)))return Q};
o9m=function(D,Q,m,P,W){var L=D.J.get(m);if(!L){if(L=V_P(D,Q))return L;Q=D.GT(m-1,P!=null?P:2);if(W)return D.Rj({misscue:W,sq:m,type:P,prevsstate:Q==null?void 0:Q.ME,prevrecord:D.J.has(m-1)}),D.J.get(m-1);if((Q==null?void 0:Q.ME)===2)return D.Rj({adnf:1,sq:m,type:P,prevrecord:D.J.has(m-1)}),D.J.get(m-1)}return L};
V_P=function(D,Q){Q+=D.MA();var m;if(D.playback.getVideoData().xB()){a:{var P=Q*1E3;D=g.T(D.S.C);for(m=D.next();!m.done;m=D.next()){m=m.value;var W=m.fJ?m.fJ*1E3:m.Qn;if(P>=m.Qn-1E3&&P<=W+m.durationMs+1E3){P=m;break a}}P=void 0}m={k0:P,Xq:Q}}else m=iU(D,Q),((P=m)==null?0:P.k0)||(m=iU(D,Q,1));var L;return(L=m)==null?void 0:L.k0};
Npm=function(D,Q){Q=Q===void 0?"":Q;var m=KD(Q)||void 0;if(!Q||!m){var P;D.Rj({adcfg:(P=Q)==null?void 0:P.length,dcfg:m==null?void 0:m.length})}return m};
yTP=function(D){for(var Q=g.T(D.C.values()),m=Q.next();!m.done;m=Q.next())D.playback.removeCueRange(m.value);D.C.clear();D.Iy.clearAll()};
Z0_=function(D,Q,m,P,W,L,u){if(Q&&m){D.oF=m.cpn;D.SD.V("html5_use_new_ssdai_transition_detector")&&u||D.qr(m.cpn,m.startTimeSecs||W);Pyn(D,m);var t=msh(D,"a2a",m);D.Rj(t);D.DA++;D.playback.wf(Q,m,P||0,W||0,!!L,!!u)}else D.Rj({misspbkonadtrans:1,enter:(m==null?void 0:m.cpn)||"",exit:(Q==null?void 0:Q.cpn)||"",seek:L,skip:u})};
L_=function(D,Q,m){if(m===void 0||!m){m=g.T(D.u0);for(var P=m.next();!P.done;P=m.next()){P=P.value;if(Q>=P.start&&Q<=P.end)return;if(Q===P.end+1){P.end+=1;return}}D.u0.push(new vCj(Q))}};
g.Cyh=function(D,Q){D=g.T(D.u0);for(var m=D.next();!m.done;m=D.next())if(m=m.value,Q>=m.start&&Q<=m.end)return!0;return!1};
FT9=function(D,Q,m){var P;if(P=D.playback.getVideoData().xB())P=(P=D.S.zc({cpn:Q}))&&P.Rk?(D=D.S.S.get(P==null?void 0:P.Rk))&&D.slice(-1)[0].cpn===Q:!1;return P&&m===2?1E3:0};
Mpn=function(D,Q,m,P,W){var L;Q={reason:"overlapping_playbacks",LBD:Q,Qn:m,b7:P,zDq:W.Um,LEc:((L=W.videoData)==null?void 0:L.videoId)||"",qMz:W.durationMs,k90:W.Qn,rrq:W.b7};P2(D,Q)};
P2=function(D,Q,m){D.playback.GF(Q,m)};
Tp7=function(D,Q){var m=[];D=D.S.S.get(Q);if(!D)return[];D=g.T(D);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.cpn&&m.push(Q.cpn);return m};
h4m=function(D,Q,m){var P=0;D=D.S.S.get(m);if(!D)return-1;D=g.T(D);for(m=D.next();!m.done;m=D.next()){if(m.value.cpn===Q)return P;P++}return-1};
n9_=function(D,Q){var m=0;D=D.S.S.get(Q);if(!D)return 0;D=g.T(D);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.durationMs!==0&&Q.b7!==Q.Qn&&m++;return m};
E97=function(D,Q,m){var P=!1;if(m=D.S.S.get(m)){m=g.T(m);for(var W=m.next();!W.done;W=m.next())W=W.value,W.durationMs!==0&&W.b7!==W.Qn&&(W=W.cpn,Q===W&&(P=!0),P&&!D.pj.has(W)&&(D.Rj({decoratedAd:W}),D.pj.add(W)))}};
rZw=function(D){D.x9&&D.Rj({adf:"0_"+((new Date).getTime()/1E3-D.hU)+"_isTimeout_"+D.Z})};
Gl9=function(D,Q,m){if(D.j.length)for(var P=g.T(D.j),W=P.next(),L={};!W.done;L={nE:void 0},W=P.next()){L.nE=W.value;W=L.nE.startSecs*1E3;var u=L.nE.m$*1E3+W;if(Q>W&&Q<u||m>W&&m<u)return v9(D.Lj,function(t){return function(z){return z.identifier===t.nE.identifier}}(L))||(D.Rj({adskip:Q}),D.Lj.push(L.nE)),L.nE}};
W2=function(D){D.Z=!1;D.U.isActive()&&rZw(D);D.U.stop();D.m3(!1)};
dX=function(D,Q){D.T||D.TO||uU(D,D.oF);var m=Q.i$,P=Q.mp;if(P.cpn===D.oF)D.Rj({igtranssame:1,enter:P.cpn,exit:m.cpn});else{var W=D.TO,L=!!D.T;D.T="";var u=Q.A$,t=m.playerType===2?m.Qn/1E3+m.videoData.kB:D.xu().videoData.kB;D.api.V("html5_ssdai_enable_media_end_cue_range")&&(L||W||m.playerType!==2?(W||L)&&D.Rj({mecr:0,seek:W,skip:L}):D.api.Ef(m.cpn));if(m.playerType===2&&P.playerType===2)L?D.Rj({igtransskip:1,enter:P.cpn,exit:m.cpn,seek:W,skip:D.T}):Z0_(D,m,P,t,u,W,L);else{D.oF=P.cpn;D.qr(P.cpn,P.startTimeSecs||
u);Q=Q.QlW;if(m.playerType===1&&P.playerType===2){D.e$=0;Pyn(D,P);var z=msh(D,"c2a",P);D.Rj(z);D.DA++}else if(m.playerType===2&&P.playerType===1){D.api.publish("serverstitchedvideochange");z=msh(D,"a2c");D.Rj(z);D.DA=0;D.e$=t;z=m.cpn;var b=D.e$;if(z!==D.playback.GE()){var q=D.t0.get(z);q?q.S=b:D.Rj({nop_e:z})}g94(D,m.Rk)}D.playback.wf(m,P,t,u,W,L,Q)}Bp9(D)}};
wrj=function(D,Q,m,P){if(D.SD.V("html5_ssdai_log_ssevt_in_loader")||D.SD.V("html5_ssdai_log_ssevt_in_loader_200ms")||D.SD.V("html5_ssdai_log_ssevt_in_loader_timers")||D.SD.V("html5_ssdai_log_ssevt_in_loader_cuerange"))P=D.TO?0:Math.round((P-m)*1E3),D.playback.dc("ssevt",{tag:"sstme",ad:Q!==D.playback.GE(),cpn:Q,st:(m-D.playback.MA()).toFixed(3),late:P})};
khj=function(D,Q,m){D.playback.nI();D.playback.seekTo(Q,m);D.playback.playVideo()};
JT6=function(D,Q,m,P){Q={i$:Q,mp:m,A$:D.playback.getCurrentTime(),QlW:P};dX(D,Q)};
g94=function(D,Q){if(D.playback.getVideoData().xB()){var m=D.S.S.get(Q);if(m){m=g.T(m);for(var P=m.next();!P.done;P=m.next()){var W=D;P=P.value;var L=W.C.get(P.cpn);W.C.delete(P.cpn);L&&W.playback.removeCueRange(L);XG$(W.S,P)}D.J.clear();D=D.S;var u;m=(u=D.S.get(Q))!=null?u:[];u=g.T(m);for(m=u.next();!m.done;m=u.next())XG$(D,m.value);D.S.delete(Q)}}};
uU=function(D,Q){var m=Q||D.oF,P=D.S.zc({cpn:m});if(P){Q=P.videoData;var W,L;m=P.fJ||((L=(W=D.C.get(m))==null?void 0:W.start)!=null?L:0)/1E3;D=D.playback.getCurrentTime()-m;Q.kB=D>0?D:0}else D.xu().videoData.kB=D.playback.getCurrentTime()};
Bp9=function(D){D.GO.add(D.T);D.T="";D.TO=!1};
Imu=function(D,Q,m,P){g.v.call(this);var W=this;this.api=D;this.SD=Q;this.S=m;this.app=P;this.J=new Map;this.C=[];this.T=this.U=null;this.TO=NaN;this.N=this.B=this.j=null;this.Z=new g.pJ(function(){lm$(W,W.TO,W.j||void 0)});
this.Iy=[];this.Kh=new g.pJ(function(){var L=W.Iy.pop();if(L){var u=L.Um,t=L.playerVars;L=L.playerType;t&&(t.prefer_gapless=!0,W.api.preloadVideoByPlayerVars(t,L,NaN,"",u),W.Iy.length&&g.xG(W.Kh,4500))}});
this.events=new g.gO(this);this.It={yrT:function(){return W.C}};
this.S.getPlayerType();g.O(this,this.Z);g.O(this,this.Kh);g.O(this,this.events);this.events.W(this.api,g.r5("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.wl)};
KTu=function(D,Q,m,P,W,L){var u=Q.cpn,t=Q.docid||Q.video_id||Q.videoId||Q.id,z=D.S;L=L===void 0?W+P:L;if(W>L)return tH(D,"enterAfterReturn enterTimeMs="+W+" is greater than parentReturnTimeMs="+L.toFixed(3),u,t),"";var b=z.TY()*1E3;if(W<b)return tH(D,"enterBeforeMinSeekable enterTimeMs="+W+" is less than parentMinSeekableTimeMs="+b,u,t),"";b=z.getDuration()*1E3;if(L>b)return z="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+b+". And timestampOffset in seconds is "+
z.m2(),tH(D,z,u,t),"";b=null;for(var q=g.T(D.C),C=q.next();!C.done;C=q.next()){C=C.value;if(W>=C.Qn&&W<C.b7)return tH(D,"overlappingEnter",u,t),"";if(L<=C.b7&&L>C.Qn)return tH(D,"overlappingReturn",u,t),"";if(L===C.Qn)return tH(D,"outOfOrder",u,t),"";W===C.b7&&(b=C)}u="cs_childplayback_"+R4u++;t={p6:zd(P,!0),ET:Infinity,target:null};var f={Um:u,playerVars:Q,playerType:m,durationMs:P,Qn:W,b7:L,No:t};D.C=D.C.concat(f).sort(function(h,B){return h.Qn-B.Qn});
b?Usj(D,b,{p6:zd(b.durationMs,!0),ET:b.No.ET,target:f}):(Q={p6:zd(W,!1),ET:W,target:f},D.J.set(Q.p6,Q),z.addCueRange(Q.p6));Q=!0;if(D.S===D.app.Zx()&&(z=z.getCurrentTime()*1E3,z>=f.Qn&&z<f.b7)){var V=D.app.Zx().getPlayerState(),N=z-f.Qn;fo(function(){H04(D,f,N/1E3,{},V)});
Q=!1}Q&&(D.Iy.unshift(f),g.xG(D.Kh,0));return u};
zd=function(D,Q){return new g.XB(Math.max(0,D-5E3),Q?0x8000000000000:D-1,{namespace:"childplayback",priority:9})};
jB4=function(D,Q,m,P){D.T=P;D.api.z$(D.S,m,Q)};
$sn=function(D,Q,m,P){D.T=P;P=Q.Um;var W=Q.playerVars,L=Q.playerType;D.U=Q;W&&D.api.enqueueVideoByPlayerVars(W,L,m,P)};
Usj=function(D,Q,m){var P=Q.No;Q.No=m;bU(D,Q)&&(m=D.app.Zx(),P.p6===D.T&&qM(D),m.removeCueRange(P.p6),m.addCueRange(Q.No.p6))};
qM=function(D){D.U=null;D.T=null;D.api.O3()||D.api.clearQueue()};
e4_=function(D,Q){bU(D,Q)||tH(D,"childPlaybackIsNotPresenting");return Q.b7===Q.Qn+Q.durationMs?Q.Qn+D.app.Zx().getCurrentTime()*1E3:Q.b7};
v9P=function(D,Q){var m=0;D=g.T(D.C);for(var P=D.next();!P.done;P=D.next()){P=P.value;var W=P.Qn/1E3+m,L=W+P.durationMs/1E3;if(W>Q)break;if(L>Q)return{k0:P,Xq:Q-W};m=L-P.b7/1E3}return{k0:null,Xq:Q-m}};
lm$=function(D,Q,m){m=m===void 0?{}:m;var P=D.N||D.app.Zx().getPlayerState();C_(D,!0);Q=isFinite(Q)?Q:D.S.UY();var W=v9P(D,Q);Q=W.Xq;var L=(W=W.k0)&&!bU(D,W)||!W&&D.S!==D.app.Zx(),u=Q*1E3;u=D.T&&D.T.start<=u&&u<=D.T.end;!L&&u||qM(D);W?H04(D,W,Q,m,P):O04(D,Q,m,P,"_execute")};
O04=function(D,Q,m,P,W){var L=D.S;L!==D.app.Zx()&&D.app.Lk();D.SD.V("html5_sabr_csdai_seek_log")||(W="");var u;L.seekTo(Q,Object.assign({},{cn:"application_timelinemanager"+((u=W)!=null?u:"")},m));YQm(D,P)};
H04=function(D,Q,m,P,W){var L=bU(D,Q);if(!L){Q.playerVars.prefer_gapless=!0;var u=new g.ZY(D.SD,Q.playerVars);u.Um=Q.Um;D.api.Ck(u,Q.playerType)}u=D.app.Zx();L||u.addCueRange(Q.No.p6);u.seekTo(m,Object.assign({},{cn:"application_timelinemanager"},P));YQm(D,W)};
YQm=function(D,Q){D=D.app.Zx();var m=D.getPlayerState();Q.isOrWillBePlaying()&&!m.isOrWillBePlaying()?D.playVideo():Q.isPaused()&&!m.isPaused()&&D.pauseVideo()};
C_=function(D,Q){D.TO=NaN;D.j=null;D.Z.stop();D.B&&Q&&D.B.VB();D.N=null;D.B=null};
bU=function(D,Q){D=D.app.Zx();return!!D&&D.getVideoData().Um===Q.Um};
am7=function(D){var Q=D.C.find(function(W){return bU(D,W)});
if(Q){var m=D.app.Zx();qM(D);var P=new g.HE(8);Q=e4_(D,Q)/1E3;O04(D,Q,{},P,"_force");m.dc("forceParentTransition",{childPlayback:1});D.S.dc("forceParentTransition",{parentPlayback:1})}};
pr$=function(D,Q,m){Q=Q===void 0?-1:Q;m=m===void 0?Infinity:m;for(var P=Q,W=m,L=g.T(D.J),u=L.next();!u.done;u=L.next()){var t=g.T(u.value);u=t.next().value;t=t.next().value;t.ET>=P&&t.target&&t.target.b7<=W&&(D.S.removeCueRange(u),D.J.delete(u))}P=Q;W=m;L=[];u=g.T(D.C);for(t=u.next();!t.done;t=u.next())if(t=t.value,t.Qn>=P&&t.b7<=W){var z=D;z.U===t&&qM(z);bU(z,t)&&z.app.Lk()}else L.push(t);D.C=L;P=v9P(D,Q/1E3);Q=P.k0;P=P.Xq;Q&&(P*=1E3,ATh(D,Q,P,Q.b7===Q.Qn+Q.durationMs?Q.Qn+P:Q.b7));(Q=v9P(D,m/1E3).k0)&&
tH(D,"Invalid clearEndTimeMs="+m+" that falls during playback={timelinePlaybackId="+(Q.Um+" video_id="+Q.playerVars.video_id+" durationMs="+Q.durationMs+" enterTimeMs="+Q.Qn+" parentReturnTimeMs="+Q.b7+"}.Child playbacks can only have duration updated not their start."))};
ATh=function(D,Q,m,P){Q.durationMs=m;Q.b7=P;P={p6:zd(m,!0),ET:m,target:null};Usj(D,Q,P);bU(D,Q)&&D.app.Zx().getCurrentTime()*1E3>m&&(Q=e4_(D,Q)/1E3,m=D.app.Zx().getPlayerState(),O04(D,Q,{},m,"_update"))};
tH=function(D,Q,m,P){D.S.dc("timelineerror",{e:Q,cpn:m?m:void 0,videoId:P?P:void 0})};
Xrn=function(D){D&&D!=="web"&&xsw.includes(D)};
oc=function(){g.v.call(this);this.S=new ra(5,null);g.O(this,this.S);this.C=new ra(15,null);g.O(this,this.C)};
CM6=function(D,Q){return Q?!!D.S.get(Q):!1};
SQr=function(D,Q){D.dataset.version=Q};
M__=function(D){g.p.call(this,{K:"div",OW:["html5-video-player"],Y:{tabindex:D.G().disableOrganicUi?"":"-1",id:D.webPlayerContextConfig.rootElementId},X:[{K:"div",L:g.B4.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var Q=this;this.app=D;this.hj=this.Dx(g.B4.VIDEO_CONTAINER);this.RW=new g.ee(0,0,0,0);this.Tc=null;this.zF=new g.ee(0,0,0,0);this.bB=this.LH=this.zw=NaN;this.kC=this.xs=this.F7=this.N3=!1;this.sR=NaN;this.g7=!1;this.wq=null;this.P9=new g.pJ(function(){return void Q.resize()},100);
this.Tt=function(){Q.element.focus({preventScroll:!0})};
this.I9=function(){Q.app.zO.publish("playerUnderlayVisibilityChange","visible");Q.Tc.classList.remove(g.B4.VIDEO_CONTAINER_TRANSITIONING);Q.Tc.removeEventListener(UD,Q.I9);Q.Tc.removeEventListener("transitioncancel",Q.I9)};
this.uI=this.dY=!1;var m=this.element.addEventListener,P=this.element.removeEventListener;this.addEventListener=function(L,u,t){m.apply(Q.element,[L,u,t])};
this.removeEventListener=function(L,u,t){P.apply(Q.element,[L,u,t])};
var W=D.G();W.transparentBackground&&this.EJ("ytp-transparent");W.controlsType==="0"&&this.EJ("ytp-hide-controls");g.mQ(this.element,"ytp-exp-bottom-control-flexbox");g.mQ(this.element,"ytp-modern-caption");W.V("enable_new_paid_product_placement")&&!g.wv(W)&&g.mQ(this.element,"ytp-exp-ppp-update");g.mQ(this.element,"ytp-livebadge-color");if(W.V("delhi_modern_web_player"))switch(g.mQ(this.element,"ytp-delhi-modern"),W.V("delhi_modern_web_player_icons")&&g.mQ(this.element,"ytp-delhi-modern-icons"),
W.V("delhi_modern_web_player_horizontal_volume_controls")&&g.mQ(this.element,"ytp-delhi-horizontal-volume-controls"),nD(W.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.mQ(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.mQ(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.mQ(this.element,"ytp-delhi-modern-with-exclusion")}SQr(this.element,rTm(D));this.h3=!1;this.CB=new g.Ay(NaN,NaN);Ghu(this);this.W(D.zO,"onMutedAutoplayChange",
this.onMutedAutoplayChange);g.O(this,this.P9)};
Ghu=function(D){function Q(u){D.Tc&&f_(D);Vb(D)!==D.g7&&D.resize();D.app.G().V("web_enable_smart_zoom")&&D.dG&&(u.state.isPaused()?D.dG.pause():g.oD(u,8)&&D.dG.playState==="paused"&&D.dG.play())}
function m(u,t){D.Vs(u,t)}
function P(u){u.getVideoData()&&D.updateVideoData(u.getVideoData())}
function W(){D.zF=new g.ee(0,0,0,0);D.RW=new g.ee(0,0,0,0)}
var L=D.app.zO;L.addEventListener("initializingmode",W);L.addEventListener("videoplayerreset",P);L.addEventListener("videodatachange",m);L.addEventListener("presentingplayerstatechange",Q);D.addOnDisposeCallback(function(){L.removeEventListener("initializingmode",W);L.removeEventListener("videoplayerreset",P);L.removeEventListener("videodatachange",m);L.removeEventListener("presentingplayerstatechange",Q)})};
DE6=function(D){var Q=D.app.Zx();if(Q=Q?Q.getVideoData():null){if(g.PU(Q)||g.WU(Q)||g.iN(Q))return 16/9;if(Jc(Q)&&Q.T.S)return D=Q.T.videoInfos[0].video,cTP(D.width,D.height)}return(D=D.Tc)?cTP(D.videoWidth,D.videoHeight):16/9};
Qmr=function(D,Q,m,P){var W=m,L=cTP(Q.width,Q.height);D.N3?W=m<L?Infinity:0:isNaN(D.bB)?isNaN(D.LH)||(W=D.LH):W=D.bB;isFinite(W)||(W=Math.max(m,L));D=W>L?{width:Q.width,height:Q.width/W,aspectRatio:W}:W<L?{width:Q.height*W,height:Q.height,aspectRatio:W}:{width:Q.width,height:Q.height,aspectRatio:L};P||isNaN(m)||(m>W?D.width=D.height*m:m<W&&(D.height=D.width/m),D.aspectRatio=m);return D};
cTP=function(D,Q){return Math.abs(mE_*Q-D)<1||Math.abs(mE_/D-Q)<1?mE_:D/Q};
Vb=function(D){if(D.app.getAppState()===1)return!1;if(D.app.getAppState()===6)return!0;var Q=D.app.Zx();if(!Q||Q.xS())return!1;D=D.app.zO.getPlayerStateObject();Q=!g.X(D,2)||Q&&Q.getVideoData().U;var m=g.X(D,1024);return D&&Q&&!m&&!D.isCued()};
f_=function(D){var Q=D.app.G().controlsType==="3"&&!D.kC&&Vb(D)&&!D.app.Pg||!1;D.Tc.controls=Q;D.Tc.tabIndex=Q?0:-1;D.app.G().B&&(D.Tc.ariaHidden="true");Q?D.Tc.removeEventListener("focus",D.Tt):D.Tc.addEventListener("focus",D.Tt)};
PWk=function(D){var Q=D.bS(),m=1,P=!1,W=Qmr(D,Q,D.getVideoAspectRatio()),L=D.app.G(),u=L.V("enable_desktop_player_underlay"),t=fa4(),z=g.WF(L.experiments,"player_underlay_min_player_width");z=u&&D.F7&&D.getPlayerSize().width>z;if(Vb(D)){var b=DE6(D);var q=isNaN(b)||g.Ak||yL&&g.Cr||z;aW&&!g.$q(601)?b=W.aspectRatio:q=q||L.controlsType==="3";q?z?(q=L.V("place_shrunken_video_on_left_of_player")?16:D.getPlayerSize().width-Q.width-16,b=Math.max((D.getPlayerSize().height-Q.height)/2,0),q=new g.ee(q,b,Q.width,
Q.height),D.Tc.style.setProperty("border-radius","12px")):q=new g.ee(0,0,Q.width,Q.height):(m=W.aspectRatio/b,q=new g.ee((Q.width-W.width/m)/2,(Q.height-W.height)/2,W.width/m,W.height),m===1&&g.Cr&&(b=q.width-Q.height*b,b>0&&(q.width+=b,q.height+=b)));g.sh(D.element,"ytp-fit-cover-video",Math.max(q.width-W.width,q.height-W.height)<1);if(t||D.h3)D.Tc.style.display="";D.g7=!0}else{q=-Q.height;aW?q*=window.devicePixelRatio:g.kv&&(q-=window.screen.height);q=new g.ee(0,q,Q.width,Q.height);if(t||D.h3)D.Tc.style.display=
"none";D.g7=!1}vu(D.zF,q)||(D.zF=q,g.zs(L)?(D.Tc.style.setProperty("width",q.width+"px","important"),D.Tc.style.setProperty("height",q.height+"px","important")):g.cu(D.Tc,q.getSize()),P=new g.Yq(q.left,q.top),g.Se(D.Tc,Math.round(P.x),Math.round(P.y)),P=!0);Q=new g.ee((Q.width-W.width)/2,(Q.height-W.height)/2,W.width,W.height);vu(D.RW,Q)||(D.RW=Q,P=!0);g.YZ(D.Tc,"transform",m===1?"":"scaleX("+m+")");u&&z!==D.xs&&(z&&(D.Tc.addEventListener(UD,D.I9),D.Tc.addEventListener("transitioncancel",D.I9),D.Tc.classList.add(g.B4.VIDEO_CONTAINER_TRANSITIONING)),
D.xs=z,D.app.zO.publish("playerUnderlayVisibilityChange",D.xs?"transitioning":"hidden"));return P};
WCk=function(D){D.dY=!D.dY;D.uI=!0;D.element.classList.toggle("ytp-retro-player",D.dY);D.resize();D.uI=!1;D.app.zO.sW("onRetroModeChanged",D.dY)};
iQP=function(){this.csn=g.Tq();this.clientPlaybackNonce=null;this.elements=new Set;this.T=new Set;this.S=new Set;this.C=new Set};
sm6=function(D){if(D.csn!==g.Tq())if(D.csn==="UNDEFINED_CSN")D.csn=g.Tq();else{var Q=g.Tq(),m=g.Fz();if(Q&&m){D.csn=Q;for(var P=g.T(D.elements),W=P.next();!W.done;W=P.next())(W=W.value.visualElement)&&W.isClientVe()&&Q&&m&&(g.oi("combine_ve_grafts")?zn(d_(),W,m):g.xK(g.aC)(void 0,Q,m,W))}if(Q)for(D=g.T(D.S),m=D.next();!m.done;m=D.next())(m=m.value.visualElement)&&m.isClientVe()&&g.MJ(Q,m)}};
g.NM=function(D,Q,m,P){g.v.call(this);var W=this;this.logger=new g.EW("App");this.Pg=this.wT=!1;this.Ae={};this.JF=[];this.lZ=!1;this.X3=null;this.intentionalPlayback=!1;this.FX=!0;this.yz=!1;this.n8=this.T0=this.t1=null;this.eq=!0;this.mediaElement=this.Or=null;this.Z6=NaN;this.Io=!1;this.YB=this.Sp=this.jk=this.screenLayer=this.playlist=null;this.Ac=[];this.eE=0;this.It={yy:function(){return W.Vn},
Ykc:function(){return W.jk}};
this.logger.debug("constructor begin");if(!m)throw Error("b/179532961");this.c$=(Q==null?void 0:Q.args)||{};this.webPlayerContextConfig=m;QO6();Q=this.c$;this.SD=new NS(Q,m,m.canaryState,P,this);g.O(this,this.SD);U_6(this.SD);m=Ky7(this.SD);this.SD.xl()&&this.gk("h5vcc",m);this.SD.experiments.Mv("jspb_serialize_with_worker")&&jwm();this.SD.experiments.Mv("gzip_gel_with_worker")&&B2m();this.SD.C&&!LC_&&(window.addEventListener(DW?"touchstart":"click",zZm,{capture:!0,passive:!0}),LC_=!0);this.V("html5_onesie")&&
(this.Pd=new CS(this.SD),g.O(this,this.Pd));this.RM=cd(sO(this.SD)&&!0,Q.enablesizebutton);this.d7=cd(!1,Q.player_wide);this.visibility=new wGk;g.O(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.lP(cd(!1,Q.player_wide));this.wT=cd(!1,Q.external_list);this.events=new g.gO(this);g.O(this,this.events);this.V("start_client_gcf")&&(Ek(kj(),{MH:iI,oO:Gp7()}),this.rd=kj().resolve(iI),DPk(this.rd));this.Dmy=new Rv;g.O(this,this.Dmy);this.mW=new iQP;m=new U6;this.zO=new g.xl(this,m);
g.O(this,this.zO);this.template=new M__(this);g.O(this,this.template);this.appState=1;this.Yt=um9(this);g.O(this,m);m={};this.bD=(m.internalvideodatachange=this.s5,m.playbackready=this.axF,m.playbackstarted=this.pqh,m.statechange=this.YWy,m);this.zR=new NH(this.zO);this.y0=dEP(this);m=this.SD.N;!1!==m&&this.gk("badps",{hbp:m,hostname:window.location.hostname,ps:this.SD.playerStyle});this.QX=new AHj(this.SD,this.y0);this.zO.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||toh(this.y0))&&
tn7(this);m=10;g.Nw(this.SD)&&(m=3);gv(this.SD)&&(m=g.WF(this.SD.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Vn=new g.MY(this.zO,m);m=zSP(this);this.Vn.Dt(m);bQu(this);m={};this.Rd=(m.airplayactivechange=this.fGc,m.airplayavailabilitychange=this.F2q,m.beginseeking=this.jj0,m.sabrCaptionsDataLoaded=this.ttW,m.endseeking=this.CEz,m.internalAbandon=this.dYz,m.internalaudioformatchange=this.olW,m.internalvideodatachange=this.JxO,m.internalvideoformatchange=this.ekh,m.liveviewshift=this.IeW,
m.playbackstalledatstart=this.uwz,m.progresssync=this.nJ0,m.onAbnormalityDetected=this.El0,m.onSnackbarMessage=this.OMF,m.onLoadProgress=this.gJx,m.SEEK_COMPLETE=this.bMc,m.SEEK_TO=this.QtO,m.onVideoProgress=this.Vtv,m.onLoadedMetadata=this.hk9,m.onAutoplayBlocked=this.yUO,m.onPlaybackPauseAtStart=this.Rkq,m.playbackready=this.KuF,m.statechange=this.qV,m.newelementrequired=this.UX,m.heartbeatparams=this.Tnv,m.videoelementevent=this.vJy,m.drmoutputrestricted=this.Smz,m.signatureexpired=this.HMh,m.nonfatalerror=
this.Bn9,m.reloadplayer=this.Nn0,m);this.Iv=new g.gO(this);g.O(this,this.Iv);this.gg=new oc;g.O(this,this.gg);this.ez=this.aY=-1;this.CL=new g.pJ(this.template.resize,16,this.template);g.O(this,this.CL);this.Ax=new Imu(this.zO,this.SD,this.dB(),this);this.Hc=new AO(this);g.O(this,this.Hc);this.dE=new va(this);g.O(this,this.dE);Xrn(this.SD.S.c);this.events.W(this.zO,g.r5("appapi"),this.ihy);this.events.W(this.zO,g.GR("appapi"),this.Zhh);this.events.W(this.zO,g.r5("appprogressboundary"),this.Lux);this.events.W(this.zO,
g.GR("applooprange"),this.hg);this.events.W(this.zO,"presentingplayerstatechange",this.wl);this.events.W(this.zO,"resize",this.st0);this.template.b0(Pu(document,D));this.events.W(this.zO,"offlineslatestatechange",this.pYq);this.events.W(this.zO,"sabrCaptionsTrackChanged",this.T2c);this.events.W(this.zO,"sabrCaptionsBufferedRangesUpdated",this.C7z);this.y0.D.G().H1&&lV(this.y0,"offline");this.SD.GO&&g.hD("ux",g.$6);D=g.WF(this.SD.experiments,"html5_defer_fetch_att_ms");this.Gf=new g.pJ(this.HOc,D,
this);g.O(this,this.Gf);this.tD().EC()&&(g.lz()&&this.tD().j.push("remote"),qpn(this));this.QX.tick("fs");CW4(this);this.SD.GO&&lV(this.y0,"ux",!0);g.W8(this.y0.D.G())&&lV(this.y0,"embed");this.V("web_player_sentinel_is_uniplayer")||g.l4(new g.OI("Player experiment flags missing","web_player_sentinel_is_uniplayer"));D=this.V("web_player_sentinel_yt_experiments_sync");m=g.oi("web_player_sentinel_yt_experiments_sync");D!==m&&g.l4(new g.OI("b/195699950",{yt:D,player:m}));this.hC=oMw(this);if(D=g.WF(this.SD.experiments,
"html5_block_pip_safari_delay"))this.LY=new g.pJ(this.Bf,D,this),g.O(this,this.LY);wj=this.SD.PY;this.zO.publish("applicationInitialized");this.logger.debug("constructor end")};
oMw=function(D){function Q(m){m.stack&&m.stack.indexOf("player")!==-1&&D.Zx().X$(m)}
IC.subscribe("handleError",Q);AR.push(Q);return function(){IC.unsubscribe("handleError",Q);var m=AR.indexOf(Q);m!==-1&&AR.splice(m,1)}};
zSP=function(D){var Q=new g.ZY(D.SD,D.c$);D.zO.publish("initialvideodatacreated",Q);return yb(D,1,Q,!1)};
bQu=function(D){var Q=D.dB();Q.setPlaybackRate(D.SD.B?1:fSk(D,Number(g.kt("yt-player-playback-rate"))||1));Q.MK(D.bD,D);Q.iP()};
dEP=function(D){var Q="",m=rTm(D);m.indexOf("//")===0&&(m=D.SD.protocol+":"+m);var P=m.lastIndexOf("/base.js");P!==-1&&(Q=m.substring(0,P+1));if(m=Error().stack)if(m=m.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))m=m[1],m.includes(Q)||g.l4(Error("Player module URL mismatch: "+(m+" vs "+Q+".")));Q=new L74(D.zO,Q);m={};uX7(Q,(m.destroyed=function(){D.onApiChange()},m));
return Q};
um9=function(D){if(D.SD.storeUserVolume){D=g.kt("yt-player-volume")||{};var Q=D.volume;D={volume:isNaN(Q)?100:g.eZ(Math.floor(Q),0,100),muted:!!D.muted}}else D={volume:100,muted:D.SD.mute};return D};
Zg=function(D){D.mediaElement=D.SD.deviceIsAudioOnly?new g.SK(g.qi("AUDIO")):eV.pop()||new g.SK(g.qi("VIDEO"));g.O(D,D.mediaElement);D.Zx().setMediaElement(D.mediaElement);try{D.SD.Ze?(D.Sp&&D.events.qY(D.Sp),D.Sp=D.events.W(D.mediaElement,"volumechange",D.AU9)):(D.mediaElement.rU(D.Yt.muted),D.mediaElement.setVolume(D.Yt.volume/100))}catch(W){D.K6("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(W&&typeof W==="object"&&"message"in W&&typeof W.message==="string"&&W.message.replace(/[;:,]/g,
"_")));return}g.EI(D.Iv);Vnu(D);var Q=D.template,m=D.mediaElement.nj();Q.Tc=m;Q.kC=!1;Q.Tc.parentNode||V0(Q.hj,Q.Tc,0);Q.zF=new g.ee(0,0,0,0);PWk(Q);f_(Q);m=Q.Tc;g.mQ(m,"video-stream");g.mQ(m,g.B4.MAIN_VIDEO);var P=Q.app.G();P.Xn&&m.setAttribute("data-no-fullscreen","true");P.V("html5_local_playsinline")?"playsInline"in ZO()&&(m.playsInline=!0):P.SR&&(m.setAttribute("webkit-playsinline",""),m.setAttribute("playsinline",""));P.ZK&&Q.Tc&&Q.W(m,"click",m.play,m);try{D.mediaElement.activate()}catch(W){D.K6("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(W&&typeof W==="object"&&"message"in W&&typeof W.message==="string"&&W.message.replace(/[;:,]/g,"_")))}};
ye4=function(D){if(!NZ4(D)){var Q=D.dB().Cn();Q&&(Q=Q.j3(),Q instanceof Promise&&Q.catch(function(){}));
F5(D,aQ(D.getPlayerStateObject()))}};
Vnu=function(D){var Q=D.mediaElement;nt()?D.Iv.W(Q,"webkitpresentationmodechanged",D.I$W):window.document.pictureInPictureEnabled&&(D.Iv.W(Q,"enterpictureinpicture",function(){D.WL(!0)}),D.Iv.W(Q,"leavepictureinpicture",function(){D.WL(!1)}));
Al&&(D.Iv.W(Q,"webkitbeginfullscreen",function(){D.ag(3)}),D.Iv.W(Q,"webkitendfullscreen",function(){D.ag(0)}))};
ZQ9=function(D,Q){var m=Q.getPlayerType(),P=D.Vn.T[m]||null;Q!==D.dB()&&Q!==P&&(P==null||P.dispose(),D.Vn.T[m]=Q)};
FCu=function(D,Q){Q=Q===void 0?!0:Q;D.logger.debug("start clear presenting player");var m;if(m=D.YB){m=D.YB;var P=D.mediaElement;m=!!P&&P===m.mediaElement}m&&(D.U3(),Zg(D));m=D.Zx();m.U3(!Q);m.ov(D.Rd,D);m.getPlayerType()!==1&&m.dispose();Q=D.Vn;Q.C=Q.S;ca(Q);D.logger.debug("finish clear presenting player")};
g.TZm=function(D,Q,m,P){var W=D.QX;Q===2&&(W=new AHj(D.SD));return new g.i_(D.SD,Q,W,D.template,function(L,u,t){D.zO.publish(L,u,t)},function(){return D.zO.getVisibilityState()},D.visibility,D,m,P)};
yb=function(D,Q,m,P,W){D=g.TZm(D,Q,m,W);D=new g.L5(D);P&&D.iP();return D};
Td=function(D,Q){return D.QA(Q)?D.dB():Q};
hH=function(D,Q){var m=D.Zx();return Q===D.dB()&&D.QA(Q)&&D.QA(m)?m:Q};
EMr=function(D){D.logger.debug("start application playback");if(D.dB().getPlayerState().isError())D.logger.debug("start application playback done, player in error state");else{var Q=n_(D);D.tD().isLoaded();Q&&D.Ar(6);hSk(D);yxw(D.y0)||nM_(D)}};
nM_=function(D){if(!n_(D)){var Q=RY(D.y0);Q&&!Q.created&&do7(D.y0)&&(D.logger.debug("reload ad module"),Q.create())}};
hSk=function(D){D.logger.debug("start presenter playback");var Q=D.getVideoData(),m=D.y0;yxw(m)||m.fW();!US&&m.D.V("html5_allow_asmjs")&&EEh(m);lV(m,"embed");lV(m,"kids");lV(m,"remote");lV(m,"miniplayer");lV(m,"offline");lV(m,"unplugged");lV(m,"ypc",!1,!0);m.D.V("html5_ypc_clickwrap_module_refactor")||lV(m,"ypc_clickwrap",!1,!0);lV(m,"yto",!1,!0);lV(m,"webgl",!1,!0);Zw7(m)||(lV(m,"captions",!0),lV(m,"endscreen"),m.b$(),lV(m,"creatorendscreen",!0));m.Wf();m.D.publish("modulesCreated");D.zO.publish("videoready",
Q)};
EZ=function(D){D=D.tD();D.EC();return bN(D)};
CW4=function(D){D.logger.debug("start prepare initial playback");D.h6();var Q=D.c$;Zg(D);D.events.W(window,"resize",D.Xny);var m=D.tD();D.zO.cO("onVolumeChange",D.Yt);if(Q&&SZ_(Q)){var P=Ts(D.SD);P&&!D.wT&&(Q.fetch=0);var W=g.W8(D.SD);W&&!D.wT&&(Q.fetch=0);gX(D,Q);g.W8(D.SD)&&D.QX.tick("ep_pr_s");if(!P||D.wT)if(W&&!D.wT)gM6(D);else if(!m.EC())D.playlist.onReady(function(){B2(D)})}D.Vd(D.dB(),!1,!0);
g.X(D.dB().getPlayerState(),128)||(Q=gb$(!D.SD.deviceIsAudioOnly),Q==="fmt.noneavailable"?D.K6("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Q==="html5.missingapi"?D.K6(Q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):m&&m.EC()&&EZ(D)&&(D.SD.VA||D.SD.tY)?wX(D):m.D8?D.zO.mutedAutoplay({durationMode:m.mutedAutoplayDurationMode}):g.kt("yt-player-playback-on-reload")?(g.WD("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!D.SD.Kh}),g.wb("yt-player-playback-on-reload",!1),
wX(D)):lL(D.SD)||BZw(D),g.EO(D.SD)||TZ(D.SD)==="MWEB"?(g.xt(g.S0(),function(){kI(D)}),g.xt(g.S0(),function(){ETm()})):(kI(D),ETm()),D.logger.debug("finish prepare initial playback"))};
kI=function(D){if(!D.V("use_rta_for_player"))if(D.V("fetch_att_independently"))g.xG(D.Gf);else{var Q=D.getVideoData().botguardData;Q&&g.yE(Q,D.SD,D.getVideoData().K1||"")}};
BZw=function(D){D.logger.debug("start initialize to CUED mode");D.zO.publish("initializingmode");D.Ar(2);lV(D.y0,"remote");lV(D.y0,"miniplayer");D.logger.debug("initialized to CUED mode")};
wX=function(D){D.logger.debug("start initialize application playback");var Q=D.dB();if(g.X(Q.getPlayerState(),128))return!1;Q=Q.getVideoData();EZ(D)&&D.SD.tY&&(eV.length&&D.Pg?(JH(D,{muted:!1,volume:D.Yt.volume},!1),lU(D,!1)):eV.length||D.Yt.muted||(JH(D,{muted:!0,volume:D.Yt.volume},!1),lU(D,!0)));EZ(D)&&g.W8(D.SD)&&Q.mutedAutoplay&&(JH(D,{muted:!0,volume:D.Yt.volume},!1),lU(D,!0));Q.JI&&JH(D,{muted:!0,volume:D.Yt.volume},!1);wYh(D,1,Q,!1);var m=D.dB();D.zO.publish("initializingmode");D.Vd(m);D.Ar(3);
var P;if(!(P=!D.SD.gx)){if(P=D.YB){P=D.YB;var W=D.mediaElement;P=!!W&&W===P.mediaElement}P=P&&D.lZ}P&&(D.U3(),Zg(D),m.setMediaElement(D.mediaElement));m.aW();if(g.X(m.getPlayerState(),128))return!1;Q.Tb||F5(D,3);return D.lZ=!0};
n_=function(D){D=rr(D.y0);return!!D&&D.loaded};
kmm=function(D,Q){if(!D.Or)return!1;var m=D.Or.startTimeMs*.001-1,P=D.Or.endTimeMs*.001;D.Or.type==="repeatChapter"&&P--;return Math.abs(Q-m)<=1E-6||Math.abs(Q-P)<=1E-6||Q>=m&&Q<=P};
Jek=function(D){var Q=D.Zx();lH(Q.getVideoData())&&!Q.s_()&&(Q=Ic(D)*1E3-D.getVideoData().V4,D.V("html5_gapless_new_slr")?(D=D.dE,Rc(D.app,"gaplessshortslooprange"),Q=new g.XB(0,Q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(D=D.app.Zx())&&D.addCueRange(Q)):D.setLoopRange({startTimeMs:0,endTimeMs:Q,type:"shortsLoop"}))};
lS4=function(D){var Q=D.dB();if(!(g.X(Q.getPlayerState(),64)&&D.tD().isLivePlayback&&D.Or.startTimeMs<5E3)){if(D.Or.type==="repeatChapter"){var m,P=(m=oe9(D.HY()))==null?void 0:m.xF(),W;m=(W=D.getVideoData())==null?void 0:W.tY;P instanceof g.GI&&m&&(W=m[qL(m,D.Or.startTimeMs)],P.renderChapterSeekingAnimation(0,W.title));isNaN(Number(D.Or.loopCount))?D.Or.loopCount=0:D.Or.loopCount++;D.Or.loopCount===1&&D.zO.sW("innertubeCommand",D.getVideoData().H6h)}P={cn:"application_loopRangeStart"};if(D.Or.type===
"clips"||D.Or.type==="shortsLoop")P.seekSource=58;Q.seekTo(D.Or.startTimeMs*.001,P)}};
fSk=function(D,Q){var m=D.zO.getAvailablePlaybackRates();Q=Number(Q.toFixed(2));D=m[0];m=m[m.length-1];Q<=D?Q=D:Q>=m?Q=m:(D=Math.floor(Q*100+.001)%5,Q=D===0?Q:Math.floor((Q-D*.01)*100+.001)/100);return Q};
Ic=function(D,Q){Q=D.zc({playerType:Q});if(!Q)return D.Vn.S.qL();Q=Td(D,Q);return UZ(D,Q.qL(),Q)};
UZ=function(D,Q,m){if(D.QA(m)&&(m=m.getVideoData(),!H2(D))){D=D.Ax;for(var P=g.T(D.C),W=P.next();!W.done;W=P.next())if(W=W.value,m.Um===W.Um){Q+=W.Qn/1E3;break}P=Q;D=g.T(D.C);for(W=D.next();!W.done;W=D.next()){W=W.value;if(m.Um===W.Um)break;var L=W.Qn/1E3;if(L<Q)P+=W.durationMs/1E3+L-W.b7/1E3;else break}return P}return Q};
ISP=function(D,Q){var m=D.Vn.Vy;if(m)return aQ(m.getPlayerState());if(D.getVideoData().enableServerStitchedDai&&Q===2){var P;return((P=D.jk)==null?0:ukw(P,D.getCurrentTime()))?D.aY:-1}return Q!==2||D.QA()?D.aY:D.ez};
qpn=function(D){D.logger.debug("reset for new application playback");K_(D);D.setLoopVideo(!1);D.setLoopRange(null);D.zO.publish("legacyadtrackingpingreset");D.Ae={};D.JF=[];xM$(D.QX);if(D.jk){var Q=D.jk,m=D.dB();m.getPlayerType();sZ(Q,!1);b06(Q);qQm(Q);Q.playback=m}Q=D.Ax;D=D.dB();D.getPlayerType()!==1&&tH(Q,"invalidParentVideoPlayerType");C_(Q,!1);pr$(Q);Q.S=D};
gM6=function(D,Q){var m=(Q?Q:D.tD()).eN;D.QX.tick("ep_pr_r");if(m!=null&&(cHm(D.playlist,m),D.yz))D.playlist.onReady(function(){B2(D,Q)})};
gX=function(D,Q){D.playlist&&(g.Dp(D.playlist),D.playlist=null);Q&&(D.wT&&(Q.fetch=0),D.playlist=new X27(D.SD,Q))};
RSn=function(D){var Q,m=Number((Q=D.getVideoData().progressBarEndPosition)==null?void 0:Q.utcTimeMillis)/1E3;!isNaN(m)&&(Q=D.hD())&&(Q-=D.getCurrentTime(),m=(m-Q)*1E3,Q=D.Ae.progressEndBoundary,(Q==null?void 0:Q.start)!==m&&(Q&&D.Sw([Q]),m=new g.XB(m,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),D.dB().addCueRange(m),D.Ae.progressEndBoundary=m))};
F5=function(D,Q){D.logger.debug(function(){return"set external state "+Q});
var m=D.Zx(),P=m.getPlayerType();if(P!==2||D.QA()){if(P===2&&D.QA()||P===5||P===6||P===7)if(Q===-1||Q===0||Q===5)return;if(Q===0){if(D.Or)return;if(m.Wr()&&g.Nw(D.SD)){D.playVideo();return}}D.aY!==Q&&(D.aY=Q,D.zO.cO("onStateChange",Q))}else D.ez!==Q&&(D.ez=Q,D.zO.cO("onAdStateChange",Q))};
UE_=function(D,Q,m,P,W){P=P===void 0?Infinity:P;W=W===void 0?0:W;D.logger.debug(function(){return"Enqueuing playerType="+m+" at time="+P+"\n        videoId="+Q.videoId});
var L=D.Zx();m=m||L.getPlayerType();(L=wYh(D,m,Q,!0))||(L=yb(D,m,Q,!0));var u=D.dB();if(m===2&&u){var t=L.getVideoData();u.Nf(t.clientPlaybackNonce,t.A8||"",t.breakType||0,t.WO,t.videoId||"")}D.z$(L,P,0,W)};
HQ_=function(D,Q,m,P,W){var L=j7(m,Q);D.logger.debug(function(){return"start preload video "+L+", trigger="+W});
var u=D.Zx(),t=j7(u.getPlayerType(),u.getVideoData());if(L===t)return u.rM(!0),Q.dispose(),null;Q.H1=!0;Q=yb(D,m,Q,!0);m===1&&gv(D.SD)||Q.rM(!0);D.Vn.J.set(L,Q,P||3600);return Q};
KCk=function(D,Q,m){var P=W5(Q);return D+"_"+P+"_"+m+"_"+ +(Q.autonav==="1"||Q.autonav===!0)+ +(Q.autoplay==="1"||Q.autoplay===!0||Q.autoplay===1)};
j7=function(D,Q){return D+"_"+Q.videoId+"_"+Q.Um+"_"+ +Q.isAutonav+ +Q.cj};
wYh=function(D,Q,m,P){var W=j7(Q,m),L=D.Vn.J.get(W)||null;if(!L||L.VF())return null;D.Vn.J.remove(W);if(g.X(L.getPlayerState(),128))return L.dispose(),null;if(L===D.zc({playerType:Q}))return D.QX.infoGel({isCacheHit:!0}),L;if((L.getVideoData().oauthToken||m.oauthToken)&&L.getVideoData().oauthToken!==m.oauthToken)return null;Q===1&&(Q=D.Zx().getVideoData(),lH(Q)&&Q.isAd()&&P||K_(D));P||D.Vd(L,!0);D.QX.infoGel({isCacheHit:!0});return L};
jmw=function(D,Q){var m;return Q&&D.SD.CZ&&!((m=D.getVideoData())==null?0:m.backgroundable)};
$E9=function(D,Q){return jmw(D,Q)?(D.LY?D.LY.start():D.Bf(),!0):!1};
$I=function(D,Q,m){Q&&(Q=D.zc({playerType:m}))&&Q===D.dB()&&(Q.getVideoData().VA=!0)};
e7=function(D,Q,m){m=m===void 0?1:m;D.logger.debug(function(){return"start cue video, vid "+Q.videoId+", type "+m});
if(Q.EC()){var P=yb(D,m,Q,!1);D.cancelPlayback(4,m);D.Vd(P);P.iP();if(m===1){D.Ar(1);if(g.W8(D.SD)&&!Fh(Q)){Q.dispose();D.dB().dispose();return}BZw(D)}D.logger.debug("finish cue video")}else D.logger.debug(function(){return"invalid VideoData in cueVideo"}),Q.dispose(),(P=D.zc({playerType:m}))&&P.dispose(),NO(D.tD())&&m===2&&D.Bl()};
eSm=function(D,Q,m,P,W){Q=bi$(Q,m,P,W);(m=g.W8(D.SD)&&!D.SD.Iy)&&!D.wT&&(Q.fetch=0);gX(D,Q);g.W8(D.SD)&&D.QX.tick("ep_a_pr_s");if(m&&!D.wT)m=D.tD(),mon(m,Q).then(function(L){D.yz=!0;gM6(D,L)});
else D.playlist.onReady(function(){B2(D)});
g.W8(D.SD)&&D.QX.tick("ep_a_pr_r")};
B2=function(D,Q){var m=g.W8(D.SD)&&!D.SD.Iy,P=m&&Q?Q:g.Fe(D.playlist);Q=m&&Q?Q:D.getVideoData();P&&(Q.BB&&(D.SD.VA||D.SD.tY)||!D.FX?(Q=Q.VA,P=D.Ck(P,1),Q&&$I(D,P)):e7(D,P,1));g.W8(D.SD)&&D.QX.tick("ep_p_l");D.yz=!1;D.zO.Q0("onPlaylistUpdate")};
NZ4=function(D){if(D.playlist&&g.tf(D.SD)&&D.KB()){var Q=D.SD.V("html5_player_autonav_logging");D.nextVideo(!1,Q);return!0}return!1};
vMj=function(D,Q,m,P,W,L,u){Q={id:Q,namespace:u!=null?u:"appapi"};L==="chapter"?(Q.style=x8.CHAPTER_MARKER,Q.visible=!0):isNaN(W)||(L==="ad"?Q.style=x8.AD_MARKER:(Q.style=x8.TIME_MARKER,Q.color=W),Q.visible=!0);D.fG([new g.XB(m*1E3,P*1E3,Q)],1);return!0};
OQn=function(D,Q,m,P,W,L){L=L===void 0?!0:L;var u=D.hD();if(!u)return L&&D.getVideoData().isLivePlayback&&D.JF.push({id:Q,Q_x:m,b6q:P}),!1;L=u-D.getCurrentTime();return vMj(D,Q,m-L,P-L,void 0,void 0,W)};
Rc=function(D,Q,m){var P=D.zc({playerType:m});P&&(Q=P.aI(Q),m&&D.getPresentingPlayerType()!==m||v2(D,"cuerangesremoved",Q))};
Yp_=function(D){var Q=(0,g.T3)(),m=D.getCurrentTime();D=D.getVideoData();m=1E3*(m-D.startSeconds);D.isLivePlayback&&(m=0);return Q-Math.max(m,0)};
JH=function(D,Q,m){D.SD.wc&&(D.Yt=Q,Q.muted||lU(D,!1),m&&D.SD.storeUserVolume&&!D.SD.Ze&&(m={volume:Math.floor(Q.volume),muted:Q.muted},m.unstorable||(g.wb("yt-player-volume",m),g.wb("yt-player-volume",m,2592E3))),aSr(D),m=g.Ta&&D.mediaElement&&!D.mediaElement.Nb(),D.SD.Ze&&!m||D.zO.cO("onVolumeChange",{muted:Q.muted,volume:Q.volume,unstorable:!D.SD.storeUserVolume}))};
aSr=function(D){var Q=D.getVideoData();if(!Q.Ft){Q=D.SD.Ze?1:aew(Q);var m=D.mediaElement;m.rU(D.Yt.muted);try{m.setVolume(D.Yt.volume*Q/100)}catch(P){g.l4(new g.OI("b183742307","multiplier: "+Q+", volume: "+D.Yt.volume))}}};
lU=function(D,Q){Q!==D.Pg&&(D.Pg=Q,D.zO.Q0("onMutedAutoplayChange",Q))};
$l=function(D){return D.Pg&&D.getVideoData().mutedAutoplay};
Ae9=function(D){var Q=CU(!0);return Q&&(Q===D.template.element||D.mediaElement&&Q===D.mediaElement.nj())?Q:null};
xE_=function(D,Q){var m,P=(m=window.screen)==null?void 0:m.orientation;if(D.SD.U&&P&&P.lock&&(!g.Ta||!pYh))if(Q){Q=P.type.indexOf("portrait")===0;m=D.template.getVideoAspectRatio();var W=Q;m<1?W=!0:m>1&&(W=!1);D.Io&&W===Q||(P=P.lock(W?"portrait":"landscape"),P!=null&&P.catch(function(){}),D.Io=!0)}else D.Io&&(D.Io=!1,P.unlock())};
v2=function(D,Q,m){D.zO.publish(Q,m);var P=g.Nw(D.SD)||g.zs(D.SD)||g.jY(D.SD);if(m&&P){switch(Q){case "cuerangemarkersupdated":var W="onCueRangeMarkersUpdated";break;case "cuerangesadded":W="onCueRangesAdded";break;case "cuerangesremoved":W="onCueRangesRemoved"}W&&D.zO.sW(W,m.map(function(L){return{getId:function(){return this.id},
end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible,markerPositionMs:L.markerPositionMs}}))}};
OZ=function(D,Q,m,P,W,L){m=m===void 0?!0:m;var u=D.zc({playerType:W});if(!u||(u.getPlayerType()!==2||D.QA(u))&&!g.Qw(u.getVideoData())){var t=D.Vn.Vy;t?t.seekTo(Q,{EP:!m,PD:P,cn:"application",seekSource:L}):(u&&u===D.dB()&&D.Or&&!kmm(D,Q)&&D.setLoopRange(null),D.seekTo(Q,m,P,W,L,"_request"))}};
XYw=function(D,Q,m,P){m&&(D.U3(),Zg(D));m=D.Zx();m.sz(Q);var W=D.getVideoData(),L={};L.video_id=W.videoId;L.adformat=W.adFormat;W.isLivePlayback||(L.start=m.getCurrentTime(),L.resume="1");W.isLivePlayback&&v1(W)&&g.f8(D.SD)&&(L.live_utc_start=m.hD(),L.resume="1");W.t0&&(L.vvt=W.t0);W.N&&(L.vss_credentials_token=W.N,L.vss_credentials_token_type=W.oz);W.oauthToken&&(L.oauth_token=W.oauthToken);L.autoplay=1;L.reload_count=W.cY+1;L.reload_reason=Q;W.K4&&(L.unplugged_partner_opt_out=W.K4);W.M5&&(L.ypc_is_premiere_trailer=
W.M5);W.playerParams&&(L.player_params=W.playerParams);D.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,P);Q==="signature"&&D.jk&&nM_(D)};
Spm=function(D,Q){D.tD().autonavState=Q;g.wb("yt-player-autonavstate",Q);D.zO.publish("autonavchange",Q)};
rej=function(D){var Q=D.getVideoData().Ft,m=D.SD.XT,P=D.isInline()&&!D.getVideoData().uc,W=D.mediaElement;Q||m||P?W.Ri():(W.t6(),JH(D,D.Yt))};
K_=function(D){var Q=RY(D.HY());Q&&Q.created&&(D.logger.debug("reset ad module"),Q.destroy())};
H2=function(D){return D.getVideoData().enableServerStitchedDai&&!!D.jk};
Gmm=function(D,Q){Q.bounds=D.getBoundingClientRect();for(var m=g.T(["display","opacity","visibility","zIndex"]),P=m.next();!P.done;P=m.next())P=P.value,Q[P]=pa(D,P);Q.hidden=!!D.hidden};
rTm=function(D){var Q=D.webPlayerContextConfig.trustedJsUrl;return Q?yC(Q).toString():D.webPlayerContextConfig.jsUrl};
Mnw=function(D,Q){var m=D.zc({playerType:1});if(m){if(m.getVideoData().clientPlaybackNonce===Q)return m;if((D=D.Hc.S)&&D.getVideoData().clientPlaybackNonce===Q)return D}return null};
tn7=function(D){function Q(P){return xe(gE_(D.y0),function(W){return W.JQ(P)})}
D.QX.tick("wasm_s");var m=qJP(D.webPlayerContextConfig.wasmModuleUrl,toh(D.y0)?Q:void 0,D.gk.bind(D));m==null||xe(m,function(P){D.QX.tick(P.S?"wasm_fa":"wasm_fw")},function(){D.QX.tick("wasm_ferr")});
aQj(D.SD,m)};
ce7=function(D){return D.name==="TypeError"&&D.stack.includes("/s/player/")&&Hd()<=105};
D19=function(D){return D.isTimeout?"NO_BID":"ERR_BID"};
Qk7=function(){var D=null;g5w().then(function(Q){return D=Q},function(Q){return D=D19(Q)});
return D};
m1$=function(){var D=Ko(1E3,"NO_BID");return g.Is(abj([g5w(),D]).Fn(D19),function(){D.cancel()})};
YI=function(D){return D.kB?g.KU(g.H5(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
ac=function(D){this.player=D;this.T=this.S=1};
iT6=function(D,Q,m,P,W,L){Q.client||(Q.client={});D.player.G().V("h5_remove_url_for_get_ad_break")||(Q.client.originalUrl=m);var u=m6(m),t=g.uY(m)?!1:!0;(u||t)&&typeof Intl!=="undefined"&&(Q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);t=g.uY(m)?!1:!0;if(u||t||P!==""){var z={};m=rl(Lp(P)).split("&");var b=new Map;m.forEach(function(q){q=q.split("=");q.length>1&&b.set(q[0].toString(),decodeURIComponent(q[1].toString()))});
b.has("bid")&&(z.bid=b.get("bid"));z.params=[];P$n.forEach(function(q){b.has(q)&&(q={key:q,value:b.get(q)},z.params.push(q))});
Wfj(D,z);Q.adSignalsInfo=z}Q.client.unpluggedAppInfo||(Q.client.unpluggedAppInfo={});Q.client.unpluggedAppInfo.enableFilterMode=!1;m=W.S.cosver;m!=null&&m!=="cosver"&&(Q.client.osVersion=m);m=W.S.cplatform;m!=null&&m!=="cplatform"&&m!==""&&(Q.client.platform=m);m=W.S.cmodel;m!=null&&m!=="cmodel"&&(Q.client.deviceModel=m);m=W.S.cplayer;m!=null&&m!=="cplayer"&&(Q.client.playerType=m);m=W.S.cbrand;m!=null&&m!=="cbrand"&&(Q.client.deviceMake=m);Q.user||(Q.user={});Q.user.lockedSafetyMode=!1;(W.V("embeds_web_enable_iframe_api_send_full_embed_url")||
W.V("embeds_enable_autoplay_and_visibility_signals"))&&g.tf(W)&&D07(Q,L,D.player.getPlayerState(1))};
uS9=function(D,Q){var m=!1;if(Q==="")return m;Q.split(",").forEach(function(P){var W={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},u="ACTIVE";P[0]==="!"&&(P=P.substring(1),u="INACTIVE");P=P.split("-");P.length<3||(P[0]in sk_&&(L.clientName=sk_[P[0]]),P[1]in Lf6&&(L.platform=Lf6[P[1]]),L.applicationState=u,L.clientVersion=P.length>2?P[2]:"",W.remoteClient=L,D.remoteContexts?D.remoteContexts.push(W):D.remoteContexts=[W],m=!0)});
return m};
tyP=function(D){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in d1P))return!1;D=D.split(RegExp("[:&]"));var Q=d1P.FLAG_AUTO_CAPTIONS_DEFAULT_ON,m="f"+(1+Math.floor(Q/31)).toString();Q=1<<Math.floor(Q%31);for(var P=0,W=D.length;P<W;P++){var L=D[P].split("=");if(L[0]===m&&parseInt("0x"+L[1],16)&Q)return!0}return!1};
Wfj=function(D,Q){D=D.player.G();if(g.hf(D)||gv(D)){D=g.YK("INNERTUBE_CONTEXT");var m,P;(D==null?0:(m=D.adSignalsInfo)==null?0:m.advertisingId)&&typeof(D==null?void 0:(P=D.adSignalsInfo)==null?void 0:P.limitAdTracking)!=="undefined"&&(Q.advertisingId=D.adSignalsInfo.advertisingId,Q.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.limitAdTracking=D.adSignalsInfo.limitAdTracking)}};
Ncr=function(D,Q,m,P,W){var L=m.DRIFT_FROM_HEAD_MS&&!Number.isNaN(m.DRIFT_FROM_HEAD_MS)?Math.trunc(m.DRIFT_FROM_HEAD_MS):0,u=zp4.exec(Q);u=u!=null&&u.length>=2?u[1]:"";var t=bT_.test(Q),z=qVh.exec(Q);z=z!=null&&z.length>=2?z[1]:"";var b=C$_.exec(Q);b=b!=null&&b.length>=2&&!Number.isNaN(Number(b[1]))?Number(b[1]):1;var q=odh.exec(Q);q=q!=null&&q.length>=2?q[1]:"0";var C=o8(D.player.G().LI),f=D.player.getVideoData(1),V=g.MW(f.u0,!0),N="BISCOTTI_ID"in m?m.BISCOTTI_ID:"";iT6(D,V,Q,N.toString(),D.player.G(),
f);f={splay:!1,lactMilliseconds:m.LACT.toString(),playerHeightPixels:Math.trunc(m.P_H),playerWidthPixels:Math.trunc(m.P_W),vis:Math.trunc(m.VIS),signatureTimestamp:20311,autonavState:YI(D.player.G())};P&&(P={},uS9(P,m.YT_REMOTE)&&(f.mdxContext=P));if(P=f6w.includes(C)?void 0:g.lS("PREF")){for(var h=P.split(RegExp("[:&]")),B=0,J=h.length;B<J;B++){var k=h[B].split("=");if((k[0].toUpperCase()==="SML"||k[0].toUpperCase()==="GSML")&&k.length>1&&k[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}f.autoCaptionsDefaultOn=
tyP(P)}Q=Vy$.exec(Q);(Q=Q!=null&&Q.length>=2?Q[1]:"")&&z&&(V.user.credentialTransferTokens=[{token:Q,scope:"VIDEO"}]);Q={contentPlaybackContext:f};u={adBlock:Math.trunc(m.AD_BLOCK),params:u,breakIndex:b,breakPositionMs:q,clientPlaybackNonce:m.CPN,topLevelDomain:C,isProxyAdTagRequest:t,context:V,adSignalsInfoString:rl(Lp(N.toString())),overridePlaybackContext:Q};W!==void 0&&(u.cueProcessedMs=Math.round(W).toString());z&&(u.videoId=z);m.LIVE_TARGETING_CONTEXT&&(u.liveTargetingParams=m.LIVE_TARGETING_CONTEXT);
m.AD_BREAK_LENGTH&&(u.breakLengthMs=Math.trunc(m.AD_BREAK_LENGTH*1E3).toString());L&&(u.driftFromHeadMs=L.toString());u.currentMediaTimeMs=Math.round(D.player.getCurrentTime(1)*1E3);(D=D.player.getGetAdBreakContext())&&(u.getAdBreakContext=D);return u};
yqk=function(){ac.apply(this,arguments)};
ZT$=function(D,Q,m,P,W){var L=m.K2;var u=m.p6;var t=D.player.G().pU,z=0;m.cueProcessedMs&&u&&!L&&(m=u.end-u.start,m>0&&(z=Math.floor(m/1E3)));var b={AD_BLOCK:W,AD_BREAK_LENGTH:L?L.m$:z,AUTONAV_STATE:YI(D.player.G()),CA_TYPE:"image",CPN:D.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:D.player.O1()*1E3,LACT:FE(),LIVE_INDEX:L?D.T++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:u?Math.round(u.start/1E3):0,MIDROLL_POS_MS:u?Math.round(u.start):0,VIS:D.player.getVisibilityState(),
P_H:D.player.fh().bS().height,P_W:D.player.fh().bS().width,YT_REMOTE:t?t.join(","):""},q=s2(iS);Object.keys(q).forEach(function(C){q[C]!=null&&(b[C.toUpperCase()]=q[C].toString())});
P!==""&&(b.BISCOTTI_ID=P);P={};Wd(Q)&&(P.sts="20311",(D=D.player.G().forcedExperiments)&&(P.forced_experiments=D));return Qk(g.BV(Q,b),P)};
Ffn=function(D,Q){var m=D.player.G(),P,W=(P=D.player.getVideoData(1))==null?void 0:P.oauthToken;return g.UO(m,W).then(function(L){if(L&&Pd()){var u=ii();sD(u,L)}return g.jz(D.player.lS(u),Q,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
Tc4=function(D){this.eD=D};
hpj=function(D){this.D=D};
ndr=function(D){this.eD=D};
gd9=function(D){g.v.call(this);this.S=D;this.w9=Ed4(this)};
Ed4=function(D){var Q=new gjk(D.S.jt);g.O(D,Q);D=[new Tc4(D.S.eD),new hpj(D.S.D),new ndr(D.S.eD),new TJ(D.S.kS,D.S.oH),new nL,new Bt(D.S.Bx,D.S.Qs,D.S.eD),new hC,new FZ];D=g.T(D);for(var m=D.next();!m.done;m=D.next())BA$(Q,m.value);D=g.T(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(m=D.next();!m.done;m=D.next())E0(Q,m.value,function(){});
return Q};
AH=function(D){var Q=D.qv,m=D.Ry;D=D.BO;var P=new e37,W={o4:new nb6(Q.get(),m),Ry:m};return{rB:new j4(m,D,Q,W),context:W,f6:P}};
p_=function(D,Q,m,P,W){g.v.call(this);this.C=Q;this.Hq=m;this.qv=P;this.sC=W;this.listeners=[];var L=new hJ(this);g.O(this,L);L.W(D,"internalAbandon",this.wYq);this.addOnDisposeCallback(function(){g.EI(L)})};
xI=function(D){this.D=D;this.adVideoId=this.S=this.videoId=this.adCpn=this.contentCpn=null;this.J=!0;this.C=this.T=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Bck=function(D){D.contentCpn=null;D.adCpn=null;D.videoId=null;D.adVideoId=null;D.adFormat=null;D.B="AD_PLACEMENT_KIND_UNKNOWN";D.actionType="unknown_type";D.T=!1;D.C=!1};
wnP=function(D,Q){D=g.T(Q);for(Q=D.next();!Q.done;Q=D.next())if((Q=Q.value.renderer)&&(Q.instreamVideoAdRenderer||Q.linearAdSequenceRenderer||Q.sandwichedLinearAdRenderer||Q.instreamSurveyAdRenderer)){kY("ad_i");g.Jd({isMonetized:!0});break}};
kU4=function(D){var Q;(Q=D.D.getVideoData(1))!=null&&Q.Iy&&(D.C=!1,Q={},D.S&&D.videoId&&(Q.cttAuthInfo={token:D.S,videoId:D.videoId}),lc("video_to_ad",Q))};
hm=function(D){D.C=!1;var Q={};D.S&&D.videoId&&(Q.cttAuthInfo={token:D.S,videoId:D.videoId});lc("ad_to_video",Q);Jqh(D)};
Jqh=function(D){if(D.T)if(D.B==="AD_PLACEMENT_KIND_START"&&D.actionType==="video_to_ad")g6("video_to_ad");else{var Q={adBreakType:DQ(D.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:D.videoStreamType};D.actionType==="ad_to_video"?(D.contentCpn&&(Q.targetCpn=D.contentCpn),D.videoId&&(Q.targetVideoId=D.videoId)):(D.adCpn&&(Q.targetCpn=D.adCpn),D.adVideoId&&(Q.targetVideoId=D.adVideoId));D.adFormat&&(Q.adType=D.adFormat);D.contentCpn&&
(Q.clientPlaybackNonce=D.contentCpn);D.videoId&&(Q.videoId=D.videoId);D.adCpn&&(Q.adClientPlaybackNonce=D.adCpn);D.adVideoId&&(Q.adVideoId=D.adVideoId);g.Jd(Q,D.actionType);D.D.G().experiments.Mv("html5_ads_csi_qoes")&&(Q=D.D.u6(D.actionType==="ad_to_video"?1:2),Q=(0,g.T3)()-1E3*Q,RH("qoes",Q,D.actionType))}};
X5=function(D){g.v.call(this);this.D=D;this.S=new Map;this.C=new hJ(this);g.O(this,this.C);this.C.W(this.D,g.r5("ad"),this.onCueRangeEnter,this);this.C.W(this.D,g.GR("ad"),this.onCueRangeExit,this)};
l6n=function(D,Q,m,P,W,L,u){g.XB.call(this,Q,m,{id:D,namespace:"ad",priority:W,visible:P,associatedClipId:L,markerPositionMs:u})};
S7=function(D){this.D=D};
I6h=function(D,Q){D.D.cueVideoByPlayerVars(Q,2)};
rX=function(D){this.D=D};
Gd=function(D){this.D=D;g.WF(this.D.G().experiments,"tv_pacf_logging_sample_rate")};
Rp$=function(D){return eq(D,"html5_ssap_play_cached_preroll")};
Ct=function(D,Q){Q=Q===void 0?!1:Q;return D.D.G().V("html5_ssap_force_ads_ctmp")?!0:(Q||D.D.G().xl())&&D.D.G().V("html5_ssap_pacf_qoe_ctmp")};
MM=function(D){var Q;return(Q=D.D.getVideoData(1)==null?void 0:!1)!=null?Q:!1};
eq=function(D,Q){return D.D.G().V(Q)};
U1u=function(D){return D.D.G().V("substitute_ad_cpn_macro_in_ssdai")};
D4=function(D){var Q,m,P;return((Q=D.D.getVideoData(1).getPlayerResponse())==null?void 0:(m=Q.playerConfig)==null?void 0:(P=m.daiConfig)==null?void 0:P.enableServerStitchedDai)||!1};
IRk=function(D){return D.D.G().V("html5_enable_vod_slar_with_notify_pacf")};
HTh=function(D){return D.D.G().V("html5_recognize_predict_start_cue_point")};
Iu=function(D){return D.D.G().experiments.Mv("enable_desktop_player_underlay")};
Kfr=function(D){return D.D.G().experiments.Mv("html5_load_empty_player_in_media_break_sub_lra")};
b1=function(D){return D.D.G().experiments.Mv("html5_load_ads_instead_of_cue")};
qg=function(D){return D.D.G().experiments.Mv("html5_preload_ads")};
jkw=function(D){return D.D.G().experiments.Mv("should_ignore_cuepoints_during_lifa_preroll")};
lr=function(D){return D.D.G().experiments.Mv("enable_ads_control_flow_deterministic_id_generation")};
$1n=function(D){return D.D.G().experiments.Mv("enable_desktop_discovery_video_abandon_pings")||g.hf(D.D.G())};
eph=function(D){return D.D.G().experiments.Mv("enable_progres_commands_lr_feeds")};
Q5=function(D){return D.D.G().experiments.Mv("html5_cuepoint_identifier_logging")};
e26=function(D){D=D.D.getVideoData(1);return!!D&&D.V("html5_preload_first_vod_video_ad")&&!D.isDaiEnabled()&&!D.isLivePlayback};
vd7=function(D){return D.D.G().experiments.Mv("html5_ssdai_enable_media_end_cue_range")};
OT7=function(D){switch(D){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}};
YVj=function(){g.iR.call(this);var D=this;this.S={};this.addOnDisposeCallback(function(){for(var Q=g.T(Object.keys(D.S)),m=Q.next();!m.done;m=Q.next())delete D.S[m.value]})};
c2=function(){if(a6_===null){a6_=new YVj;yT(Az).C="b";var D=yT(Az),Q=RT(D)=="h"||RT(D)=="b",m=!(Qv(),!1);Q&&m&&(D.J=!0,D.N=new t3n)}return a6_};
Aqk=function(D,Q,m){D.S[Q]=m};
pn6=function(D){switch(D){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}};
Dv=function(D,Q,m){this.Hq=D;this.D=Q;this.Ry=m;this.C=new Set;this.S=new Map;c2().subscribe("adactiveviewmeasurable",this.kf,this);c2().subscribe("adfullyviewableaudiblehalfdurationimpression",this.qH,this);c2().subscribe("adviewableimpression",this.zK,this);c2().subscribe("adaudioaudible",this.xf,this);c2().subscribe("adaudiomeasurable",this.UG,this)};
m7=function(D,Q,m){var P=m.Mf,W=m.Zo,L=m.listener,u=m.Xi;m=m.Gq===void 0?!1:m.Gq;if(D.S.has(Q))bu("Unexpected registration of layout in LidarApi");else{if(u){if(D.C.has(u))return;D.C.add(u)}D.S.set(Q,L);ng(Qv().vn,"fmd",1);Zmw(yT(Az),P);var t=m?Q:void 0;Aqk(c2(),Q,{Xe:function(){if(!W)return{};var z=D.D.getPresentingPlayerType(!0),b;return(b=D.D.getVideoData(z))!=null&&b.isAd()?{currentTime:D.Hq.get().getCurrentTimeSec(z,!1,t),duration:W,isPlaying:Ql(D.Hq.get(),z).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:D.Hq.get().isMuted()?0:D.Hq.get().getVolume()/100}:{}}})}};
PH=function(D,Q){D.S.has(Q)?(D.S.delete(Q),delete c2().S[Q]):bu("Unexpected unregistration of layout in LidarApi")};
x1$=function(D,Q){if(D.D.isLifaAdPlaying()){var m=D.D.eg(!0,!0);D.SZ(Q,m.width*.5*1.1,m.height*.25*1.1,m.width*.5*.9,m.height*.5*.9)}};
rqh=function(D,Q,m){var P={};Xnn(D,P,Q,m);SVk(P);P.LACT=WH(function(){return FE().toString()});
P.VIS=WH(function(){return D.getVisibilityState().toString()});
P.SDKV="h.3.0";P.VOL=WH(function(){return D.isMuted()?"0":Math.round(D.getVolume()).toString()});
P.VED="";return P};
GUk=function(D,Q){var m={};if(Q||!D||!D.kind)return m;if(D.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||D.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!D.adTimeOffset||!D.adTimeOffset.offsetStartMilliseconds)return g.JG(Error("malformed AdPlacementConfig")),m;m.MIDROLL_POS=WH(Jt(Math.round(IG(D.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else m.MIDROLL_POS=WH(Jt("0"));return m};
WH=function(D){return{toString:function(){return D()}}};
My6=function(D,Q,m){function P(t,z){(z=m[z])&&(L[t]=z)}
function W(t,z){(z=m[z])&&(L[t]=u(z))}
if(!m||g.b7(m))return D;var L=Object.assign({},D),u=Q?encodeURIComponent:function(t){return t};
W("DV_VIEWABILITY","doubleVerifyViewability");W("IAS_VIEWABILITY","integralAdsViewability");W("MOAT_INIT","moatInit");W("MOAT_VIEWABILITY","moatViewability");P("GOOGLE_VIEWABILITY","googleViewability");P("VIEWABILITY","viewability");return L};
Xnn=function(D,Q,m,P){Q.CPN=WH(function(){var W;(W=D.getVideoData(1))?W=W.clientPlaybackNonce:(g.l4(Error("Video data is null.")),W=null);return W});
Q.AD_MT=WH(function(){if(P!=null)var W=P;else{var L=m;D.G().V("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(D.G().V("enable_h5_shorts_ad_fill_ad_mt_macro")||D.G().V("enable_desktop_discovery_pings_ad_mt_macro")||g.hf(D.G())){var u=D.getPresentingPlayerType(!0),t;W=((t=D.getVideoData(u))==null?0:t.isAd())?cq6(D,u,L):0}else W=cq6(D,2,L)}return DuK(W)});
Q.MT=WH(function(){return DuK(D.getCurrentTime(1,!1))});
Q.P_H=WH(function(){return D.fh().bS().height.toString()});
Q.P_W=WH(function(){return D.fh().bS().width.toString()});
Q.PV_H=WH(function(){return D.fh().getVideoContentRect().height.toString()});
Q.PV_W=WH(function(){return D.fh().getVideoContentRect().width.toString()})};
DuK=function(D){return Math.round(Math.max(0,D*1E3)).toString()};
SVk=function(D){D.CONN=WH(Jt("0"));D.WT=WH(function(){return Date.now().toString()})};
cq6=function(D,Q,m){return m!==void 0?D.getCurrentTime(Q,!1,m):D.getCurrentTime(Q,!1)};
QnK=function(){};
mu4=function(D,Q,m,P,W){var L,u,t,z,b,q,C,f,V,N,h,B,J;g.U(function(k){switch(k.C){case 1:L=!!Q.scrubReferrer;u=g.BV(Q.baseUrl,My6(m,L,P));t={};if(!Q.headers){k.Nv(2);break}z=D.B();if(!z.S){b=z.getValue();k.Nv(3);break}return g.I(k,z.S,4);case 4:b=k.S;case 3:q=b;C=g.T(Q.headers);for(f=C.next();!f.done;f=C.next())switch(V=f.value,V.headerType){case "VISITOR_ID":g.YK("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.YK("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.YK("EOM_VISITOR_DATA")&&(t["X-Goog-EOM-Visitor-Id"]=
g.YK("EOM_VISITOR_DATA"));break;case "USER_AUTH":q&&(t.Authorization="Bearer "+q);break;case "PLUS_PAGE_ID":(N=D.J())&&(t["X-Goog-PageId"]=N);break;case "AUTH_USER":h=D.S();!q&&h&&(t["X-Goog-AuthUser"]=h);break;case "DATASYNC_ID":if(B=void 0,(B=D.T())==null?0:B.Mv("enable_datasync_id_header_in_web_vss_pings"))J=D.C(),m6(u)&&g.YK("LOGGED_IN")&&J&&(t["X-YouTube-DataSync-Id"]=J)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];case 2:g.Ro(u,void 0,L,Object.keys(t).length!==
0?t:void 0,"",!0,W),g.T7(k)}})};
P6h=function(D,Q,m,P,W){this.B=D;this.J=Q;this.S=m;this.C=P;this.T=W};
WjP=function(D,Q){this.S=D;this.Ry=Q};
iG=function(D,Q,m,P,W,L,u){var t=t===void 0?new P6h(function(){var z=D.G(),b=D.getVideoData(1);return g.UO(z,b?g.qO(b):"")},function(){return D.G().pageId},function(){return D.G().Kh},function(){var z;
return(z=D.G().datasyncId)!=null?z:""},function(){return D.G().experiments}):t;
this.D=D;this.C=Q;this.BY=m;this.qv=P;this.rB=W;this.Ry=L;this.f6=u;this.B=t;this.Ob=null;this.S=new Map;this.T=new WjP(t,this.Ry)};
sn4=function(D,Q,m,P,W){var L=zN(D.C.get(),m);L?(m=yB(D,i9v(L),L,void 0,void 0,P),Q.hasOwnProperty("baseUrl")?D.B.send(Q,m):D.T.send(Q,m,{},W)):bu("Trying to ping from an unknown layout",void 0,void 0,{layoutId:m})};
Rz_=function(D,Q,m,P,W,L){P=P===void 0?[]:P;var u=zN(D.C.get(),Q);if(u){var t=D.BY.get().j1(Q,m),z=yB(D,i9v(u),u,W,L);P.forEach(function(b,q){b.baseUrl&&(D.T.send(b.baseUrl,z,t,b.attributionSrcMode),b.serializedAdPingMetadata&&D.rB.X5("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,u,new dyu(b,q),void 0,void 0,u.adLayoutLoggingData))})}else bu("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Q,
trackingType:m})};
ba=function(D,Q){D.D.sendVideoStatsEngageEvent(Q,void 0,2)};
l1=function(D,Q){g.WD("adsClientStateChange",Q)};
Lj2=function(D,Q){D.S.has(Q.P3())?bu("Trying to register an existing AdErrorInfoSupplier."):D.S.set(Q.P3(),Q)};
uwV=function(D,Q){D.S.delete(Q.P3())||bu("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
UJ=function(D,Q,m){typeof m==="string"?D.D.getVideoData(1).Ia(Q,m):D.D.getVideoData(1).dc(Q,m)};
i9v=function(D){var Q=G_(D.clientMetadata,"metadata_type_ad_placement_config");D=G_(D.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Q,Za:D}};
yB=function(D,Q,m,P,W,L){var u=m?duv(D):{},t=m?t$T(D,m.layoutId):{},z=zrK(D),b,q=W!=null?W:(b=rM(D.qv.get(),2))==null?void 0:b.clientPlaybackNonce;W=void 0;if(m){var C;if((C=D.f6.S.get(m.layoutId))==null?0:C.Gq)W=m.layoutId}C={};D=Object.assign({},rqh(D.D,W,P),GUk(Q.adPlacementConfig,(m==null?void 0:m.renderingContent)!==void 0),t,u,z,(C.FINAL=WH(function(){return"1"}),C.AD_CPN=WH(function(){return q||""}),C));
(m==null?void 0:m.renderingContent)!==void 0||(D.SLOT_POS=WH(function(){return(Q.Za||0).toString()}));
m={};L=Object.assign({},D,L);D=g.T(Object.values(b9k));for(P=D.next();!P.done;P=D.next())P=P.value,u=L[P],u!=null&&u.toString()!=null&&(m[P]=u.toString());return m};
duv=function(D){var Q={},m,P=(m=D.Ob)==null?void 0:m.NL/1E3;P!=null&&(Q.SURVEY_ELAPSED_MS=WH(function(){return Math.round(P*1E3).toString()}));
Q.SURVEY_LOCAL_TIME_EPOCH_S=WH(function(){return Math.round(Date.now()/1E3).toString()});
return Q};
t$T=function(D,Q){D=D.S.get(Q);if(!D)return{};D=D.mY();if(!D)return{};Q={};return Q.YT_ERROR_CODE=D.gE.toString(),Q.ERRORCODE=D.l5.toString(),Q.ERROR_MSG=D.errorMessage,Q};
zrK=function(D){var Q={},m=D.D.getVideoData(1);Q.ASR=WH(function(){var P;return(P=m==null?void 0:m.Sh)!=null?P:null});
Q.EI=WH(function(){var P;return(P=m==null?void 0:m.eventId)!=null?P:null});
return Q};
sL=function(D,Q,m){g.v.call(this);this.D=D;this.aZ=Q;this.Ry=m;this.listeners=[];this.O5=null;this.BH=new Map;Q=new g.gO(this);g.O(this,Q);Q.W(D,"videodatachange",this.kYF);Q.W(D,"serverstitchedvideochange",this.B2F);this.n2=rM(this)};
rM=function(D,Q){var m=D.D.getVideoData(Q);return m?D.X8(m,Q||D.D.getPresentingPlayerType(!0)):null};
q_k=function(D,Q,m){var P=D.X8(Q,m);D.n2=P;D.listeners.forEach(function(W){W.jS(P)})};
C62=function(D){switch(D){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}};
Lw=function(D,Q,m){g.v.call(this);this.D=D;this.qv=Q;this.Ry=m;this.listeners=[];this.Wm=[];this.S=function(){bu("Called 'doUnlockPreroll' before it's initialized.")};
Q=new hJ(this);m=new g.gO(this);g.O(this,m);g.O(this,Q);Q.W(D,"progresssync",this.cxz);Q.W(D,"presentingplayerstatechange",this.DYc);Q.W(D,"fullscreentoggled",this.onFullscreenToggled);Q.W(D,"onVolumeChange",this.onVolumeChange);Q.W(D,"minimized",this.zE);Q.W(D,"overlayvisibilitychange",this.iK);Q.W(D,"shortsadswipe",this.Pc);Q.W(D,"resize",this.MB);m.W(D,g.r5("appad"),this.An)};
uG=function(D){MM(D.Ry.get())||D.S()};
oP4=function(D,Q){D.Wm=D.Wm.filter(function(m){return m!==Q})};
dU=function(D,Q,m){return D.getCurrentTimeSec(Q,m)};
tx=function(D,Q){var m;Q=(m=D.qv.get().BH.get(Q))!=null?m:null;if(Q===null)return bu("Expected ad video start time on playback timeline"),0;D=D.D.getCurrentTime(2,!0);return D<Q?0:D-Q};
Ql=function(D,Q){return D.D.getPlayerStateObject(Q)};
fkU=function(D){var Q=D.D.fh().bS();D=D.D.eg(!0,!0);return Q.height-(D.height+D.top)};
V$4=function(D){D.D.cueVideoByPlayerVars({videoId:"empty_video"},2)};
cFh=function(D,Q){var m=D.D.G();g.dv(m)||m.controlsType!=="3"||D.D.fh().nL(Q)};
zu=function(D,Q){g.mQ(D.D.getRootNode(),Q)};
bG=function(D,Q){g.Wo(D.D.getRootNode(),Q)};
N7h=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);P=IA(function(){return new Li(D)});
g.O(this,P);var b=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,b);var q=IA(function(){return new $e});
g.O(this,q);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var C=IA(function(){return new iJ(L.Ry)});
g.O(this,C);var f=IA(function(){return new rs(u,b,t,L.Ry,C,null,null,null,null)});
g.O(this,f);this.qv=IA(function(){return new sL(Q,q,L.Ry)});
g.O(this,this.qv);var V=AH({qv:this.qv,Ry:this.Ry,BO:C}),N=V.context,h=V.f6;this.rB=V.rB;this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,h)});
g.O(this,this.eD);this.JD=new sE(P,f,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var B=new p_(Q,this.JD,this.Hq,this.qv);this.Wx=IA(function(){return B});
this.LD=B;this.EH=new ur(P,b,this.nM,this.Wx,N);g.O(this,this.EH);this.V0=new fE(this.Ry,P,b,f,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.lH={Ts:new Map,OD:new Map,Fl:new Map,PL:new Map,j0:new Map};this.listeners=[];this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:null,oH:{JS:function(){}},
kS:z.get(),Bx:this.qv.get()}};
qo=function(D,Q){g.v.call(this);this.fm=Q;this.fm.get().addListener(this)};
Cw=function(D){this.S=D};
y4k=function(D,Q){if(!D)return{Yb:[],adSlots:[],sP:!0,ssdaiAdsConfig:void 0};D.trackingParams&&bt(D.trackingParams);if(D.adThrottled)return{Yb:[],adSlots:[],sP:!0,ssdaiAdsConfig:void 0};var m,P=(m=D.adSlots)!=null?m:[],W;m=(W=D.playerAds)!=null?W:[];if(!(m&&m.length||P.length))return{Yb:[],adSlots:P,sP:!1,ssdaiAdsConfig:void 0};W=m.map(function(u){return u.adPlacementRenderer}).filter(function(u){return!(!u||!u.renderer)});
if(!W.length&&!P.length)return{Yb:[],adSlots:P,sP:!1,ssdaiAdsConfig:void 0};if(Q.end>0){var L=Q.end.toString();W.forEach(function(u){(u=u.config&&u.config.adPlacementConfig)&&u.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&u.adTimeOffset&&u.adTimeOffset.offsetEndMilliseconds==="-1"&&u.adTimeOffset.offsetEndMilliseconds!==L&&(u.adTimeOffset.offsetEndMilliseconds=L)});
P.map(function(u){return g.A(u,V2)}).forEach(function(u){var t;
(u=u==null?void 0:(t=u.slotEntryTrigger)==null?void 0:t.mediaTimeRangeTrigger)&&u.offsetEndMilliseconds==="-1"&&(u.offsetEndMilliseconds=L)})}return{Yb:W,
adSlots:P,sP:!1,ssdaiAdsConfig:D.ssdaiAdsConfig}};
of=function(D){g.v.call(this);this.D=D;this.listeners=[];this.S=new hJ(this);g.O(this,this.S);this.S.W(this.D,"aduxclicked",this.onAdUxClicked);this.S.W(this.D,"aduxmouseover",this.Gw);this.S.W(this.D,"aduxmouseout",this.Yj);this.S.W(this.D,"muteadaccepted",this.A0F)};
Z9h=function(D,Q,m){Q=g.fk(Q,function(P){return new vtn(P,m,P.id)});
D.D.sW("onAdUxUpdate",Q)};
fw=function(D,Q){D=g.T(D.listeners);for(var m=D.next();!m.done;m=D.next())Q(m.value)};
Vl=function(D,Q){this.C=D;this.T=Q===void 0?!1:Q;this.S={}};
Fj4=function(D,Q){var m=D.startSecs+D.m$;m=m<=0?null:m;if(m===null)return null;switch(D.event){case "start":case "continue":case "stop":break;case "predictStart":if(Q)break;return null;default:return null}Q=Math.max(D.startSecs,0);return{P2:new y9(Q,m),VU:new Cd(Q,m-Q,D.context,D.identifier,D.event,D.S)}};
T7T=function(){this.S=[]};
B6w=function(D,Q,m){var P=g.OU(D.S,Q);if(P>=0)return Q;Q=-P-1;return Q>=D.S.length||D.S[Q]>m?null:D.S[Q]};
No=function(D,Q,m){g.v.call(this);this.D=D;this.Ry=Q;this.eD=m;this.listeners=[];this.B=!1;this.Mc=[];this.S=null;this.J=new Vl(this,HTh(Q.get()));this.T=new T7T;this.C=null};
hrk=function(D,Q){D.Mc.push(Q);for(var m=!1,P=g.T(D.listeners),W=P.next();!W.done;W=P.next())m=W.value.ul(Q)||m;D.B=m;Q5(D.Ry.get())&&UJ(D.eD.get(),"onci","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs+";cbi."+m)};
EP4=function(D,Q){l1(D.eD.get(),{cuepointTrigger:{event:nP2(Q.event),cuepointId:Q.identifier,totalCueDurationMs:Q.m$*1E3,playheadTimeMs:Q.S,cueStartTimeMs:Q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:D.D.getVideoData(1).clientPlaybackNonce}})};
nP2=function(D){switch(D){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 ty(D,"Unexpected cuepoint event")}};
yl=function(D){this.D=D};
Zv=function(D){this.D=D};
gPv=function(D){switch(D){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:ty(D,"unknown transitionReason")}};
FX=function(){g.v.apply(this,arguments);this.oBc=new Map};
B7T=function(D){this.D=D};
wh2=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);var b=IA(function(){return new Li(D)});
g.O(this,b);var q=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,q);var C=IA(function(){return new $e});
g.O(this,C);this.hx=IA(function(){return new of(Q)});
g.O(this,this.hx);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var f=IA(function(){return new Cw(P)});
g.O(this,f);var V=IA(function(){return new iJ(L.Ry)});
g.O(this,V);this.Ya=IA(function(){return new yl(Q)});
g.O(this,this.Ya);this.fm=IA(function(){return new jq});
g.O(this,this.fm);this.qv=IA(function(){return new sL(Q,C,L.Ry)});
g.O(this,this.qv);var N=AH({qv:this.qv,Ry:this.Ry,BO:V}),h=N.context,B=N.f6;this.rB=N.rB;this.sC=IA(function(){return new No(Q,L.Ry,L.eD)});
g.O(this,this.sC);this.De=IA(function(){return new Zv(Q)});
g.O(this,this.De);this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.uQ=IA(function(){return new FX});
g.O(this,this.uQ);N=IA(function(){return new rs(u,q,t,L.Ry,V,"SLOT_TYPE_ABOVE_FEED",L.Hq,L.a_,L.Xs)});
g.O(this,N);this.ES=IA(function(){return new $8(L.Ry)});
this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,B)});
g.O(this,this.eD);this.ZZ=new ir(WS,Tu,function(k,R,e,a){return lP(t.get(),k,R,e,a)},b,q,t,V,this.Ry,this.qv);
g.O(this,this.ZZ);this.JD=new sE(b,N,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var J=new p_(Q,this.JD,this.Hq,this.qv,this.sC);this.Wx=IA(function(){return J});
this.LD=J;this.a_=new cL(b,q,this.Wx,this.sC,this.Hq,this.Ry,this.eD,this.De);g.O(this,this.a_);this.EH=new ur(b,q,this.nM,this.Wx,h);g.O(this,this.EH);this.V0=new fE(this.Ry,b,q,N,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.DZ=IA(function(){return new PX(f,t,V,L.Ry,L.eD,L.Hq,L.De)});
g.O(this,this.DZ);this.OS=IA(function(){return new WX});
g.O(this,this.OS);this.bH=new fi(D,this.hx,this.Ry);g.O(this,this.bH);this.Yl=new V5(D);g.O(this,this.Yl);this.gC=new N9(D);g.O(this,this.gC);this.PB=new Z4(D,this.Wx,h);g.O(this,this.PB);this.Fs=new Fc(D,this.nM,this.Hq,this.qv,h);g.O(this,this.Fs);this.hk=new TN(D,this.qv);g.O(this,this.hk);this.Xs=new EE(D,this.sC,this.Hq,this.eD,this.Wx,this.a_);g.O(this,this.Xs);this.ev=new hK(D);g.O(this,this.ev);this.qj=new ke(D);g.O(this,this.qj);this.lW=new ni(D);g.O(this,this.lW);this.H5=new wn(D);g.O(this,
this.H5);this.qj=new ke(D);g.O(this,this.qj);this.DD=IA(function(){return new br});
g.O(this,this.DD);this.PF=IA(function(){return new q9(L.Hq)});
g.O(this,this.PF);this.rL=IA(function(){return new DCw(L.hx,L.eD,D,z,L.BY)});
g.O(this,this.rL);this.KF=IA(function(){return new Oo(L.V0,b,u)});
g.O(this,this.KF);this.OZ=IA(function(){return new Aa(L.Ry,L.eD,L.ev,L.BY)});
g.O(this,this.OZ);this.iW=IA(function(){return new OJ(D,L.qj,L.ev,L.qv,L.De,L.Hq,L.uQ,L.eD,C,L.sC,L.BY,L.ES,L.bE,L.nM,L.Jx,L.jt,L.vY,L.Ya,L.Ry,z,h,B)});
g.O(this,this.iW);this.X7=IA(function(){return new CR4(L.Hq,L.eD,L.vY,L.Ry,L.BY,L.qv)});
g.O(this,this.X7);this.YZ=IA(function(){return new Mz4(L.hx,L.Hq,L.eD,z,L.BY,L.gC,L.H5,L.vY,L.Ry,m)});
g.O(this,this.YZ);this.Bt=IA(function(){return new Qqr(L.hx,L.eD,z)});
g.O(this,this.Bt);this.T2=new qo(D,this.fm,u);g.O(this,this.T2);this.lH={Ts:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.V0],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.a_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ZZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.JD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.EH]]),OD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DZ],["SLOT_TYPE_ABOVE_FEED",this.OS],["SLOT_TYPE_FORECASTING",this.OS],
["SLOT_TYPE_IN_PLAYER",this.OS],["SLOT_TYPE_PLAYER_BYTES",this.OS],["SLOT_TYPE_PLAYER_UNDERLAY",this.OS],["SLOT_TYPE_PLAYBACK_TRACKING",this.OS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.OS]]),Fl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bH],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.bH],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yl],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Yl],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yl],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yl],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.PB],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Fs],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Fs],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Fs],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Fs],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Fs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.hk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.hk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ev],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.PB],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.H5],["TRIGGER_TYPE_AD_BREAK_STARTED",this.qj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Xs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Xs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Xs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Xs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Xs]]),PL:new Map([["SLOT_TYPE_ABOVE_FEED",this.DD],
["SLOT_TYPE_AD_BREAK_REQUEST",this.DD],["SLOT_TYPE_FORECASTING",this.DD],["SLOT_TYPE_IN_PLAYER",this.DD],["SLOT_TYPE_PLAYER_BYTES",this.PF],["SLOT_TYPE_PLAYER_UNDERLAY",this.DD],["SLOT_TYPE_PLAYBACK_TRACKING",this.DD],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.DD]]),j0:new Map([["SLOT_TYPE_ABOVE_FEED",this.rL],["SLOT_TYPE_AD_BREAK_REQUEST",this.KF],["SLOT_TYPE_FORECASTING",this.OZ],["SLOT_TYPE_PLAYER_BYTES",this.iW],["SLOT_TYPE_PLAYBACK_TRACKING",this.X7],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.X7],["SLOT_TYPE_IN_PLAYER",this.YZ],["SLOT_TYPE_PLAYER_UNDERLAY",this.Bt]])};this.listeners=[z.get()];this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:this.fm.get(),oH:this.bH,kS:z.get(),Bx:this.qv.get()}};
k7$=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);var b=IA(function(){return new Li(D)});
g.O(this,b);var q=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,q);var C=IA(function(){return new $e});
g.O(this,C);this.hx=IA(function(){return new of(Q)});
g.O(this,this.hx);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var f=IA(function(){return new Cw(P)});
g.O(this,f);var V=IA(function(){return new iJ(L.Ry)});
g.O(this,V);var N=IA(function(){return new rs(u,q,t,L.Ry,V,null,null,L.a_,L.Xs)});
g.O(this,N);this.Ya=IA(function(){return new yl(Q)});
g.O(this,this.Ya);this.fm=IA(function(){return new jq});
g.O(this,this.fm);this.qv=IA(function(){return new sL(Q,C,L.Ry)});
g.O(this,this.qv);var h=AH({qv:this.qv,Ry:this.Ry,BO:V}),B=h.context,J=h.f6;this.rB=h.rB;this.sC=IA(function(){return new No(Q,L.Ry,L.eD)});
this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.uQ=IA(function(){return new FX});
g.O(this,this.uQ);this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,J)});
g.O(this,this.eD);this.ES=IA(function(){return new $8(L.Ry)});
g.O(this,this.ES);this.ZZ=new ir(WS,Tu,function(R,e,a,G){return lP(t.get(),R,e,a,G)},b,q,t,V,this.Ry,this.qv);
g.O(this,this.ZZ);this.JD=new sE(b,N,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var k=new p_(Q,this.JD,this.Hq,this.qv,this.sC);this.Wx=IA(function(){return k});
this.LD=k;this.a_=new cL(b,q,this.Wx,this.sC,this.Hq,this.Ry,this.eD);g.O(this,this.a_);this.EH=new ur(b,q,this.nM,this.Wx,B);g.O(this,this.EH);this.V0=new fE(this.Ry,b,q,N,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.DZ=IA(function(){return new PX(f,t,V,L.Ry,L.eD,L.Hq)});
g.O(this,this.DZ);this.OS=IA(function(){return new WX});
g.O(this,this.OS);this.bH=new fi(D,this.hx,this.Ry);g.O(this,this.bH);this.Yl=new V5(D);g.O(this,this.Yl);this.gC=new N9(D);g.O(this,this.gC);this.PB=new Z4(D,this.Wx,B);g.O(this,this.PB);this.Fs=new Fc(D,this.nM,this.Hq,this.qv,B);g.O(this,this.Fs);this.ev=new hK(D);g.O(this,this.ev);this.lW=new ni(D);g.O(this,this.lW);this.H5=new wn(D);g.O(this,this.H5);this.De=IA(function(){return new Zv(Q)});
g.O(this,this.De);this.qj=new ke(D);g.O(this,this.qj);this.Xs=new EE(D,this.sC,this.Hq,this.eD,this.Wx,this.a_);g.O(this,this.Xs);this.DD=IA(function(){return new br});
g.O(this,this.DD);this.PF=IA(function(){return new q9(L.Hq)});
g.O(this,this.PF);this.KF=IA(function(){return new Oo(L.V0,b,u)});
g.O(this,this.KF);this.OZ=IA(function(){return new Aa(L.Ry,L.eD,L.ev,L.BY)});
g.O(this,this.OZ);this.YZ=IA(function(){return new cd6(L.hx,L.Hq,L.eD,z,L.BY,L.gC,L.H5,L.vY,L.Ry,m)});
g.O(this,this.YZ);this.iW=IA(function(){return new Yw(D,L.qj,L.ev,L.eD,L.BY,L.ES,L.bE,L.qv,L.Hq,L.uQ,L.nM,L.Jx,L.jt,L.vY,L.Ya,L.Ry,L.De,B,J)});
g.O(this,this.iW);this.T2=new qo(D,this.fm,u);g.O(this,this.T2);this.lH={Ts:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.V0],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.a_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ZZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.JD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.EH]]),OD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DZ],["SLOT_TYPE_FORECASTING",this.OS],["SLOT_TYPE_IN_PLAYER",this.OS],
["SLOT_TYPE_PLAYER_BYTES",this.OS]]),Fl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bH],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yl],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yl],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yl],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.PB],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Fs],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Fs],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ev],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.PB],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.H5],["TRIGGER_TYPE_AD_BREAK_STARTED",this.qj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Xs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Xs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Xs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Xs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Xs]]),PL:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DD],["SLOT_TYPE_FORECASTING",this.DD],["SLOT_TYPE_IN_PLAYER",this.DD],["SLOT_TYPE_PLAYER_BYTES",this.PF]]),
j0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.KF],["SLOT_TYPE_FORECASTING",this.OZ],["SLOT_TYPE_IN_PLAYER",this.YZ],["SLOT_TYPE_PLAYER_BYTES",this.iW]])};this.listeners=[z.get()];this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:this.fm.get(),oH:this.bH,kS:z.get(),Bx:this.qv.get()}};
J4$=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);var b=IA(function(){return new Li(D)});
g.O(this,b);var q=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,q);var C=IA(function(){return new $e});
g.O(this,C);this.hx=IA(function(){return new of(Q)});
g.O(this,this.hx);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var f=IA(function(){return new Cw(P)});
g.O(this,f);var V=IA(function(){return new iJ(L.Ry)});
g.O(this,V);var N=IA(function(){return new rs(u,q,t,L.Ry,V,null,null,null,null)});
g.O(this,N);this.Ya=IA(function(){return new yl(Q)});
g.O(this,this.Ya);this.qv=IA(function(){return new sL(Q,C,L.Ry)});
g.O(this,this.qv);var h=AH({qv:this.qv,Ry:this.Ry,BO:V}),B=h.context,J=h.f6;this.rB=h.rB;this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.uQ=IA(function(){return new FX});
g.O(this,this.uQ);this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,J)});
g.O(this,this.eD);this.ES=IA(function(){return new $8(L.Ry)});
g.O(this,this.ES);this.ZZ=new ir(WS,Tu,function(R,e,a,G){return lP(t.get(),R,e,a,G)},b,q,t,V,this.Ry,this.qv);
g.O(this,this.ZZ);this.JD=new sE(b,N,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var k=new p_(Q,this.JD,this.Hq,this.qv);this.Wx=IA(function(){return k});
this.LD=k;this.EH=new ur(b,q,this.nM,this.Wx,B);g.O(this,this.EH);this.V0=new fE(this.Ry,b,q,N,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.DZ=IA(function(){return new PX(f,t,V,L.Ry,L.eD,L.Hq)});
g.O(this,this.DZ);this.OS=IA(function(){return new WX});
g.O(this,this.OS);this.bH=new fi(D,this.hx,this.Ry);g.O(this,this.bH);this.Yl=new V5(D);g.O(this,this.Yl);this.PB=new Z4(D,this.Wx,B);g.O(this,this.PB);this.Fs=new Fc(D,this.nM,this.Hq,this.qv,B);g.O(this,this.Fs);this.ev=new hK(D);g.O(this,this.ev);this.lW=new ni(D);g.O(this,this.lW);this.De=IA(function(){return new Zv(Q)});
g.O(this,this.De);this.qj=new ke(D);g.O(this,this.qj);this.DD=IA(function(){return new br});
g.O(this,this.DD);this.PF=IA(function(){return new q9(L.Hq)});
g.O(this,this.PF);this.KF=IA(function(){return new Oo(L.V0,b,u)});
g.O(this,this.KF);this.OZ=IA(function(){return new Aa(L.Ry,L.eD,L.ev,L.BY)});
g.O(this,this.OZ);this.oe=IA(function(){return new qXj(L.hx,L.Hq,L.eD,z,m,L.Ry)});
g.O(this,this.oe);this.iW=IA(function(){return new Yw(D,L.qj,L.ev,L.eD,L.BY,L.ES,L.bE,L.qv,L.Hq,L.uQ,L.nM,L.Jx,L.jt,L.vY,L.Ya,L.Ry,L.De,B,J)});
g.O(this,this.iW);this.lH={Ts:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.V0],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ZZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.JD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.EH]]),OD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DZ],["SLOT_TYPE_FORECASTING",this.OS],["SLOT_TYPE_IN_PLAYER",this.OS],["SLOT_TYPE_PLAYER_BYTES",this.OS]]),Fl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bH],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Yl],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yl],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yl],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.PB],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Fs],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ev],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.PB],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.qj]]),PL:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DD],["SLOT_TYPE_ABOVE_FEED",this.DD],["SLOT_TYPE_FORECASTING",this.DD],["SLOT_TYPE_IN_PLAYER",this.DD],["SLOT_TYPE_PLAYER_BYTES",this.PF]]),j0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.KF],["SLOT_TYPE_FORECASTING",this.OZ],["SLOT_TYPE_IN_PLAYER",
this.oe],["SLOT_TYPE_PLAYER_BYTES",this.iW]])};this.listeners=[z.get()];this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:null,oH:this.bH,kS:z.get(),Bx:this.qv.get()}};
lkk=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);var b=IA(function(){return new Li(D)});
g.O(this,b);var q=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,q);var C=IA(function(){return new $e});
g.O(this,C);this.DR=IA(function(){return new B7T(Q)});
g.O(this,this.DR);this.hx=IA(function(){return new of(Q)});
g.O(this,this.hx);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var f=IA(function(){return new Cw(P)});
g.O(this,f);var V=IA(function(){return new iJ(L.Ry)});
g.O(this,V);var N=IA(function(){return new rs(u,q,t,L.Ry,V,null,null,null,null)});
g.O(this,N);this.Ya=IA(function(){return new yl(Q)});
g.O(this,this.Ya);this.qv=IA(function(){return new sL(Q,C,L.Ry)});
g.O(this,this.qv);var h=AH({qv:this.qv,Ry:this.Ry,BO:V}),B=h.context,J=h.f6;this.rB=h.rB;this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.uQ=IA(function(){return new FX});
g.O(this,this.uQ);this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,J)});
g.O(this,this.eD);this.ES=IA(function(){return new $8(L.Ry)});
g.O(this,this.ES);this.ZZ=new ir(Kt6,Tu,function(R,e,a,G){return sAk(t.get(),R,e,a,G)},b,q,t,V,this.Ry,this.qv);
g.O(this,this.ZZ);this.JD=new sE(b,N,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var k=new p_(Q,this.JD,this.Hq,this.qv);this.Wx=IA(function(){return k});
this.LD=k;this.EH=new ur(b,q,this.nM,this.Wx,B);g.O(this,this.EH);this.V0=new fE(this.Ry,b,q,N,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.DZ=IA(function(){return new PX(f,t,V,L.Ry,L.eD,L.Hq)});
g.O(this,this.DZ);this.OS=IA(function(){return new WX});
g.O(this,this.OS);this.bH=new fi(D,this.hx,this.Ry);g.O(this,this.bH);this.Yl=new V5(D);g.O(this,this.Yl);this.PB=new Z4(D,this.Wx,B);g.O(this,this.PB);this.Fs=new Fc(D,this.nM,this.Hq,this.qv,B);g.O(this,this.Fs);this.ev=new hK(D);g.O(this,this.ev);this.lW=new ni(D);g.O(this,this.lW);this.De=IA(function(){return new Zv(Q)});
g.O(this,this.De);this.qj=new ke(D);g.O(this,this.qj);this.DD=IA(function(){return new br});
g.O(this,this.DD);this.PF=IA(function(){return new q9(L.Hq)});
g.O(this,this.PF);this.KF=IA(function(){return new Oo(L.V0,b,u)});
g.O(this,this.KF);this.OZ=IA(function(){return new Aa(L.Ry,L.eD,L.ev,L.BY)});
g.O(this,this.OZ);this.iW=IA(function(){return new Yw(D,L.qj,L.ev,L.eD,L.BY,L.ES,L.bE,L.qv,L.Hq,L.uQ,L.nM,L.Jx,L.jt,L.vY,L.Ya,L.Ry,L.De,B,J)});
g.O(this,this.iW);this.k8=IA(function(){return new Q97(L.hx,L.Hq,L.eD,z,L.DR,m,L.qv)});
g.O(this,this.k8);this.lH={Ts:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.V0],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ZZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.JD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.EH]]),OD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DZ],["SLOT_TYPE_FORECASTING",this.OS],["SLOT_TYPE_IN_PLAYER",this.OS],["SLOT_TYPE_PLAYER_BYTES",this.OS]]),Fl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bH],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Yl],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yl],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yl],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.PB],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Fs],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ev],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.PB],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.qj]]),PL:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DD],["SLOT_TYPE_FORECASTING",this.DD],["SLOT_TYPE_IN_PLAYER",this.DD],["SLOT_TYPE_PLAYER_BYTES",this.PF]]),j0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.KF],["SLOT_TYPE_FORECASTING",this.OZ],["SLOT_TYPE_IN_PLAYER",this.k8],["SLOT_TYPE_PLAYER_BYTES",
this.iW]])};this.listeners=[z.get()];this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:null,oH:this.bH,kS:z.get(),Bx:this.qv.get()}};
Ikk=function(D,Q,m,P,W){g.v.call(this);var L=this,u=IA(function(){return new JK(L.Ry)});
g.O(this,u);var t=IA(function(){return new I6(u,L.Ry)});
g.O(this,t);var z=IA(function(){return new dn});
g.O(this,z);var b=IA(function(){return new Li(D)});
g.O(this,b);var q=IA(function(){return new R6(u,t,L.Ry)});
g.O(this,q);var C=IA(function(){return new $e});
g.O(this,C);this.DR=IA(function(){return new B7T(Q)});
g.O(this,this.DR);this.hx=IA(function(){return new of(Q)});
g.O(this,this.hx);this.vY=IA(function(){return new Ug(W)});
g.O(this,this.vY);this.Jx=IA(function(){return new xI(Q)});
g.O(this,this.Jx);this.nM=IA(function(){return new X5(Q)});
g.O(this,this.nM);this.bE=IA(function(){return new S7(Q)});
g.O(this,this.bE);this.jt=IA(function(){return new rX(Q)});
g.O(this,this.jt);this.Ry=IA(function(){return new Gd(Q)});
g.O(this,this.Ry);var f=IA(function(){return new Cw(P)});
g.O(this,f);var V=IA(function(){return new iJ(L.Ry)});
g.O(this,V);this.Ya=IA(function(){return new yl(Q)});
g.O(this,this.Ya);this.qv=IA(function(){return new sL(Q,C,L.Ry)});
g.O(this,this.qv);var N=AH({qv:this.qv,Ry:this.Ry,BO:V}),h=N.context,B=N.f6;this.rB=N.rB;this.sC=IA(function(){return new No(Q,L.Ry,L.eD)});
g.O(this,this.sC);this.De=IA(function(){return new Zv(Q)});
g.O(this,this.De);this.Hq=IA(function(){return new Lw(Q,L.qv,L.Ry)});
g.O(this,this.Hq);this.uQ=IA(function(){return new FX});
g.O(this,this.uQ);N=IA(function(){return new rs(u,q,t,L.Ry,V,null,L.Hq,L.a_,L.Xs,3)});
g.O(this,N);this.ES=IA(function(){return new $8(L.Ry)});
this.BY=IA(function(){return new Dv(L.Hq,Q,L.Ry)});
g.O(this,this.BY);this.eD=IA(function(){return new iG(Q,z,L.BY,L.qv,L.rB,L.Ry,B)});
g.O(this,this.eD);this.JD=new sE(b,N,m,this.Ry,D,this.qv,this.Hq,this.Jx);g.O(this,this.JD);var J=new p_(Q,this.JD,this.Hq,this.qv,this.sC);this.Wx=IA(function(){return J});
this.LD=J;this.ZZ=new ir(jIm,Tu,function(k,R,e,a){return sAk(t.get(),k,R,e,a)},b,q,t,V,this.Ry,this.qv);
g.O(this,this.ZZ);this.a_=new cL(b,q,this.Wx,this.sC,this.Hq,this.Ry,this.eD,this.De);g.O(this,this.a_);this.EH=new ur(b,q,this.nM,this.Wx,h);g.O(this,this.EH);this.V0=new fE(this.Ry,b,q,N,this.qv,this.EH,m,this.bE);g.O(this,this.V0);this.DZ=IA(function(){return new PX(f,t,V,L.Ry,L.eD,L.Hq,L.De)});
g.O(this,this.DZ);this.OS=IA(function(){return new WX});
g.O(this,this.OS);this.bH=new fi(D,this.hx,this.Ry);g.O(this,this.bH);this.Yl=new V5(D);g.O(this,this.Yl);this.PB=new Z4(D,this.Wx,h);g.O(this,this.PB);this.Fs=new Fc(D,this.nM,this.Hq,this.qv,h);g.O(this,this.Fs);this.hk=new TN(D,this.qv);g.O(this,this.hk);this.Xs=new EE(D,this.sC,this.Hq,this.eD,this.Wx,this.a_);g.O(this,this.Xs);this.ev=new hK(D);g.O(this,this.ev);this.lW=new ni(D);g.O(this,this.lW);this.qj=new ke(D);g.O(this,this.qj);this.DD=IA(function(){return new br});
g.O(this,this.DD);this.PF=IA(function(){return new q9(L.Hq)});
g.O(this,this.PF);this.KF=IA(function(){return new Oo(L.V0,b,u)});
g.O(this,this.KF);this.OZ=IA(function(){return new Aa(L.Ry,L.eD,L.ev,L.BY)});
g.O(this,this.OZ);this.iW=IA(function(){return new OJ(D,L.qj,L.ev,L.qv,L.De,L.Hq,L.uQ,L.eD,C,L.sC,L.BY,L.ES,L.bE,L.nM,L.Jx,L.jt,L.vY,L.Ya,L.Ry,z,h,B)});
g.O(this,this.iW);this.YZ=IA(function(){return new myr(L.hx,L.Hq,L.eD,z,L.DR,m,L.Ry,L.qv)});
g.O(this,this.YZ);this.lH={Ts:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.V0],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.a_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ZZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.JD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.EH]]),OD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DZ],["SLOT_TYPE_FORECASTING",this.OS],["SLOT_TYPE_IN_PLAYER",this.OS],["SLOT_TYPE_PLAYER_BYTES",this.OS]]),Fl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.bH],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yl],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yl],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yl],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yl],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yl],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.PB],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Fs],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Fs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.hk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.hk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ev],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.PB],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.qj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Xs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.Xs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Xs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Xs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Xs]]),PL:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DD],["SLOT_TYPE_FORECASTING",this.DD],["SLOT_TYPE_IN_PLAYER",this.DD],["SLOT_TYPE_PLAYER_BYTES",this.PF]]),j0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.KF],["SLOT_TYPE_FORECASTING",this.OZ],["SLOT_TYPE_PLAYER_BYTES",this.iW],["SLOT_TYPE_IN_PLAYER",this.YZ]])};this.listeners=[z.get()];
this.w5={V0:this.V0,Qs:this.Ry.get(),Pq:this.vY.get(),hF:this.Hq.get(),JD:this.JD,W0:u.get(),bA:null,oH:this.bH,kS:z.get(),Bx:this.qv.get()}};
UuK=function(D,Q,m,P){function W(){return L.C}
g.v.call(this);var L=this;D.G().experiments.Mv("html5_dispose_of_manager_before_dependency")?(this.S=RrM(W,D,Q,m,P),this.C=(new RA(this.S)).T(),g.O(this,this.C),g.O(this,this.S)):(this.S=RrM(W,D,Q,m,P),g.O(this,this.S),this.C=(new RA(this.S)).T(),g.O(this,this.C))};
hx=function(D){return D.S.w5};
RrM=function(D,Q,m,P,W){try{var L=Q.G();if(g.EO(L))var u=new wh2(D,Q,m,P,W);else if(g.wv(L))u=new k7$(D,Q,m,P,W);else if(VS(L))u=new J4$(D,Q,m,P,W);else if(g.jY(L))u=new lkk(D,Q,m,P,W);else if(g.zs(L))u=new Ikk(D,Q,m,P,W);else throw new TypeError("Unknown web interface");return u}catch(t){return u=Q.G(),bu("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:u.S.cplatform,interface:u.S.c,BMq:u.S.cver,hJh:u.S.ctheme,gzz:u.S.cplayer,YJO:u.playerStyle}),new N7h(D,Q,m,P,W)}};
H94=function(D){aq.call(this,D)};
KjQ=function(D,Q,m,P,W){cR.call(this,D,{K:"div",L:"ytp-ad-timed-pie-countdown-container",X:[{K:"svg",L:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{K:"circle",L:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{K:"circle",L:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{K:"circle",L:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Q,m,P,W);this.B=this.Dx("ytp-ad-timed-pie-countdown-container");this.T=this.Dx("ytp-ad-timed-pie-countdown-inner");
this.N=this.Dx("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(2*Math.PI*5);this.hide()};
jn$=function(D,Q,m,P,W,L){z1.call(this,D,{K:"div",L:"ytp-ad-action-interstitial",Y:{tabindex:"0"},X:[{K:"div",L:"ytp-ad-action-interstitial-background-container"},{K:"div",L:"ytp-ad-action-interstitial-slot",X:[{K:"div",L:"ytp-ad-action-interstitial-instream-info"},{K:"div",L:"ytp-ad-action-interstitial-card",X:[{K:"div",L:"ytp-ad-action-interstitial-image-container"},{K:"div",L:"ytp-ad-action-interstitial-headline-container"},{K:"div",L:"ytp-ad-action-interstitial-description-container"},{K:"div",
L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Q,m,P);this.Se=W;this.VM=L;this.navigationEndpoint=this.S=this.skipButton=this.C=this.actionButton=null;this.x9=this.Dx("ytp-ad-action-interstitial-instream-info");this.u0=this.Dx("ytp-ad-action-interstitial-image-container");this.j=new e1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-action-interstitial-image");g.O(this,this.j);this.j.b0(this.u0);this.t0=this.Dx("ytp-ad-action-interstitial-headline-container");
this.N=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-action-interstitial-headline");g.O(this,this.N);this.N.b0(this.t0);this.Iy=this.Dx("ytp-ad-action-interstitial-description-container");this.T=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-action-interstitial-description");g.O(this,this.T);this.T.b0(this.Iy);this.XT=this.Dx("ytp-ad-action-interstitial-background-container");this.k9=new e1(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq,"ytp-ad-action-interstitial-background",!0);g.O(this,this.k9);this.k9.b0(this.XT);this.l0=this.Dx("ytp-ad-action-interstitial-action-button-container");this.slot=this.Dx("ytp-ad-action-interstitial-slot");this.pO=this.Dx("ytp-ad-action-interstitial-card");this.B=new hJ;g.O(this,this.B);this.hide()};
$uK=function(D){var Q=g.La("html5-video-player");Q&&g.sh(Q,"ytp-ad-display-override",D)};
Y_$=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-overlay-slot",X:[{K:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",Q,m,P);this.j=[];this.XT=this.t0=this.B=this.l0=this.x9=null;this.k9=!1;this.N=null;this.Iy=0;D=this.Dx("ytp-ad-overlay-container");this.u0=new Ls(D,45E3,6E3,.3,.4);g.O(this,this.u0);this.T=erN(this);g.O(this,this.T);this.T.b0(D);this.C=vP4(this);g.O(this,this.C);this.C.b0(D);this.S=O94(this);g.O(this,this.S);this.S.b0(D);this.hide()};
erN=function(D){var Q=new g.t1({K:"div",L:"ytp-ad-text-overlay",X:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",X:[{K:"button",L:"ytp-ad-overlay-close-button",X:[lR(ak$)]}]},{K:"div",L:"ytp-ad-overlay-title",h0:"{{title}}"},{K:"div",L:"ytp-ad-overlay-desc",h0:"{{description}}"},{K:"div",OW:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],h0:"{{displayUrl}}"}]});D.W(Q.Dx("ytp-ad-overlay-title"),"click",function(m){nw(D,Q.element,m)});
D.W(Q.Dx("ytp-ad-overlay-link"),"click",function(m){nw(D,Q.element,m)});
D.W(Q.Dx("ytp-ad-overlay-close-container"),"click",D.Rr);Q.hide();return Q};
vP4=function(D){var Q=new g.t1({K:"div",OW:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",X:[{K:"button",L:"ytp-ad-overlay-close-button",X:[lR(ak$)]}]},{K:"div",L:"ytp-ad-overlay-text-image",X:[{K:"img",Y:{src:"{{imageUrl}}"}}]},{K:"div",L:"ytp-ad-overlay-title",h0:"{{title}}"},{K:"div",L:"ytp-ad-overlay-desc",h0:"{{description}}"},{K:"div",OW:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
h0:"{{displayUrl}}"}]});D.W(Q.Dx("ytp-ad-overlay-title"),"click",function(m){nw(D,Q.element,m)});
D.W(Q.Dx("ytp-ad-overlay-link"),"click",function(m){nw(D,Q.element,m)});
D.W(Q.Dx("ytp-ad-overlay-close-container"),"click",D.Rr);D.W(Q.Dx("ytp-ad-overlay-text-image"),"click",D.JDD);Q.hide();return Q};
O94=function(D){var Q=new g.t1({K:"div",L:"ytp-ad-image-overlay",X:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",X:[{K:"button",L:"ytp-ad-overlay-close-button",X:[lR(ak$)]}]},{K:"div",L:"ytp-ad-overlay-image",X:[{K:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});D.W(Q.Dx("ytp-ad-overlay-image"),"click",function(m){nw(D,Q.element,m)});
D.W(Q.Dx("ytp-ad-overlay-close-container"),"click",D.Rr);Q.hide();return Q};
A4v=function(D,Q){if(Q){var m=g.A(Q,bP)||null;m==null?g.JG(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Q=g.La("video-ads ytp-ad-module")||null,Q==null?g.JG(Error("Could not locate the root ads container element to attach the ad info dialog.")):(D.t0=new g.t1({K:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.O(D,D.t0),D.t0.b0(Q),Q=new ri(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,D.t0.element,!1),g.O(D,Q),Q.init(PR("ad-info-hover-text-button"),m,D.macros),
D.N?(Q.b0(D.N,0),Q.subscribe("f",D.mvF,D),Q.subscribe("e",D.H4,D),D.W(D.N,"click",D.c0O),D.W(g.La("ytp-ad-button",Q.element),"click",function(){var P;if(g.A((P=g.A(m.button,g.CE))==null?void 0:P.serviceEndpoint,GPr))D.k9=D.api.getPlayerState(1)===2,D.api.pauseVideo();else D.api.onAdUxClicked("ad-info-hover-text-button",D.layoutId)}),D.XT=Q):g.JG(Error("Ad info button container within overlay ad was not present."))))}else g.l4(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
xuQ=function(D,Q){if(phV(D,EL)||D.api.isMinimized())return!1;var m=bR(Q.title),P=bR(Q.description);if(g.J6(m)||g.J6(P))return!1;D.createServerVe(D.T.element,Q.trackingParams||null);D.T.updateValue("title",bR(Q.title));D.T.updateValue("description",bR(Q.description));D.T.updateValue("displayUrl",bR(Q.displayUrl));Q.navigationEndpoint&&g.lv(D.j,Q.navigationEndpoint);D.T.show();D.u0.start();D.logVisibility(D.T.element,!0);D.W(D.T.element,"mouseover",function(){D.Iy++});
return!0};
Xhh=function(D,Q){if(phV(D,EL)||D.api.isMinimized())return!1;var m=bR(Q.title),P=bR(Q.description);if(g.J6(m)||g.J6(P))return!1;D.createServerVe(D.C.element,Q.trackingParams||null);D.C.updateValue("title",bR(Q.title));D.C.updateValue("description",bR(Q.description));D.C.updateValue("displayUrl",bR(Q.displayUrl));D.C.updateValue("imageUrl",u79(Q.image));Q.navigationEndpoint&&g.lv(D.j,Q.navigationEndpoint);D.l0=Q.imageNavigationEndpoint||null;D.C.show();D.u0.start();D.logVisibility(D.C.element,!0);
D.W(D.C.element,"mouseover",function(){D.Iy++});
return!0};
S_P=function(D,Q){if(D.api.isMinimized())return!1;var m=dZk(Q.image),P=m;m.width<EL.width&&(P=EL);if(m.width===0||m.height===0||phV(D,P))return!1;D.createServerVe(D.S.element,Q.trackingParams||null);D.S.updateValue("imageUrl",u79(Q.image));D.S.updateValue("width",m.width);D.S.updateValue("height",m.height);Q.navigationEndpoint&&g.lv(D.j,Q.navigationEndpoint);g.YZ(D.S.Dx("ytp-ad-image-overlay"),"max-width",m.width+"px");D.S.show();D.logVisibility(D.S.element,!0);D.W(D.S.element,"mouseover",function(){D.Iy++;
D.api.Gw("invideo-overlay",D.layoutId)});
D.W(D.S.element,"mouseout",function(){D.api.Yj("invideo-overlay",D.layoutId)});
return!0};
phV=function(D,Q){var m=D.api.fh().bS(),P=D.api.eg(!0,!1);return(Q=xw(m,m.height-(P.height+P.top),Q))?(D.x9&&Q&&(m=g.o2(D.macros),m.ERRORCODE=Q.l5.toString(),m.ERROR_MSG=Q.errorMessage,D.layoutId?K8(D.Pq,D.x9,D.layoutId,m):g.JG(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
nw=function(D,Q,m){var P=g.o2(D.macros),W=g.Dr(Q);P.AW={toString:function(){return W.width.toString()}};
P.AH={toString:function(){return W.height.toString()}};
var L=g.Mi(m,Q).floor();P.I_X={toString:function(){return L.x.toString()}};
P.NX={toString:function(){return L.x.toString()}};
P.I_Y={toString:function(){return L.y.toString()}};
P.NY={toString:function(){return L.y.toString()}};
P.NM={toString:function(){return D.Iy.toString()}};
Q=g.T(D.j);for(m=Q.next();!m.done;m=Q.next())m=m.value,D.layoutId?K8(D.Pq,m,D.layoutId,P):g.JG(Error("Missing layoutId for invideo_overlay_ad."));D.api.pauseVideo()};
r4k=function(D,Q){D=D.api.getRootNode();g.sh(D,"ytp-ad-overlay-open",Q);g.sh(D,"ytp-ad-overlay-closed",!Q)};
G72=function(D,Q,m,P,W){cR.call(this,D,{K:"div",L:"ytp-ad-message-overlay",X:[{K:"div",L:"ytp-ad-message-slot"}]},"ad-message",Q,m,P,W);var L=this;this.N=-1;this.T=0;this.Iy=!1;this.t0=this.Dx("ytp-ad-message-slot");this.C=new g.t1({K:"span",L:"ytp-ad-message-container"});this.C.b0(this.t0);g.O(this,this.C);this.messageText=new G1(this.api,this.layoutId,this.interactionLoggingClientData,P,"ytp-ad-message-text");g.O(this,this.messageText);this.messageText.b0(this.C.element);this.B=new g.mF(this.C,
400,!1,100,function(){L.hide()});
g.O(this,this.B);this.hide()};
M$P=function(D,Q){D=D.api.getRootNode();g.sh(D,"ytp-ad-overlay-open",Q);g.sh(D,"ytp-ad-overlay-closed",!Q)};
c42=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-underlay-companion",X:[{K:"div",L:"ytp-ad-underlay-side-container",X:[{K:"div",L:"ytp-ad-underlay-image-container"},{K:"div",L:"ytp-ad-underlay-description-container"},{K:"div",L:"ytp-ad-underlay-headline-container"},{K:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",Q,m,P);this.actionButton=null;this.t0=this.Dx("ytp-ad-underlay-image-container");this.T=new e1(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq,"ytp-ad-underlay-image");g.O(this,this.T);this.T.b0(this.t0);this.Iy=this.Dx("ytp-ad-underlay-headline-container");this.C=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-underlay-headline");g.O(this,this.C);this.C.b0(this.Iy);this.j=this.Dx("ytp-ad-underlay-description-container");this.B=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-underlay-description");g.O(this,this.B);this.B.b0(this.j);this.N=this.Dx("ytp-ad-underlay-action-button-container");
this.S=this.Dx("ytp-ad-underlay-side-container");this.hide()};
DQV=function(D){var Q=g.La("html5-video-player");Q&&g.sh(Q,"ytp-ad-display-override",D)};
gU=function(D,Q,m,P,W,L){L=L===void 0?function(){}:L;
z1.call(this,D,{K:"div",L:"ytp-ad-survey-answer"},"survey-answer",Q,m,P);this.index=W;this.onSelected=L;this.S=null;this.toggledLoggingParams="";this.answer=this.Dx("ytp-ad-survey-answer");this.hide()};
Q4$=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",Q,m,P);this.button=null;this.S=this.Dx("ytp-ad-survey-none-of-the-above");this.hide()};
BH=function(D,Q,m,P){var W=["ytp-ad-survey-submit-button"];W.push("ytp-ad-survey-submit-button-rounded");Iq.call(this,D,Q,m,P,W,"survey-submit")};
wU=function(D,Q,m,P,W){z1.call(this,D,{K:"div",L:"ytp-ad-survey-player-overlay",X:[{K:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{K:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",X:[{K:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{K:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{K:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",Q,m,P);this.B=W;this.C=this.S=null;this.T=this.Dx("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Dx("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Dx("ytp-ad-survey-player-overlay-submit");g.O(this,this.B);this.hide()};
kE=function(D,Q,m,P,W,L){L=L===void 0?function(){}:L;
z1.call(this,D,{K:"div",L:"ytp-ad-survey-question",X:[{K:"div",OW:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",OW:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",OW:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",L:"ytp-ad-survey-question-background"}]},W,Q,m,P);this.t0=L;this.B=null;this.C=[];this.S=null;this.j=this.api.G().experiments.Mv("a11y_h5_associate_survey_question");this.question=this.Dx("ytp-ad-survey-question");
this.u0=this.Dx("ytp-ad-survey-question-background");this.questionText=this.Dx("ytp-ad-survey-question-text");this.answers=this.Dx("ytp-ad-survey-answers");this.playerOverlay=this.Dx("ytp-ad-survey-question-player-overlay");this.T=Date.now()};
mQh=function(D,Q){Q=g.qC(Q);g.Zq(D.questionText,Q);D.j&&D.questionText.setAttribute("id",PR("survey-question-text"))};
PvV=function(D,Q,m,P){P=new gU(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,P,D.t0);P.b0(D.answers);P.init(PR("survey-answer"),Q,m);D.j&&(Q=D.questionText.getAttribute("id"),Q!=null&&(P.S!==null?P.S.C.setAttribute("aria-describedby",Q):P.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",Q)));D.C.push(P)};
iVk=function(D,Q){if(Q){var m=Q.background;m&&g.A(m,WhP)&&(m=(m=g.A(m,WhP).image)&&$b(m)||"",g.J6(m)?g.l4(Error("Found ThumbnailDetails without valid image URL")):g.YZ(D.u0,"backgroundImage","url("+m+")"));if(Q.durationMilliseconds==null||Q.durationMilliseconds===void 0||Q.durationMilliseconds===0)D=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.JG(D);else{D.T=g.bv();D.S=new TO(D.api,Q.durationMilliseconds);g.O(D,D.S);if(D.S&&Q.instreamAdPlayerOverlay&&g.A(Q.instreamAdPlayerOverlay,
zB))try{var P=new wU(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,D.S);P.b0(D.playerOverlay);P.init(PR("survey-player-overlay"),g.A(Q.instreamAdPlayerOverlay,zB),D.macros);D.B=P;g.O(D,P);D.JW()}catch(W){P=Error("ISAPOR had an error when initializing. Error: "+(W+" SurveyAdQuestionCommon: "+JSON.stringify(Q))),g.JG(P)}else P=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.JG(P);D.S&&Q.durationMilliseconds&&Q.durationMilliseconds>0?(Q=new H_(D.api,D.S),
Q.b0(D.playerOverlay),g.O(D,Q)):(D=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.JG(D))}}else g.JG(Error("addCommonComponents() needs to be called before starting countdown."))};
s4V=function(D){function Q(m){return{toString:function(){return m()}}}
D.macros.SURVEY_LOCAL_TIME_EPOCH_S=Q(function(){var m=new Date;return(Math.round(m.valueOf()/1E3)+-1*m.getTimezoneOffset()*60).toString()});
D.macros.SURVEY_ELAPSED_MS=Q(function(){return(Date.now()-D.T).toString()})};
LhV=function(D,Q,m,P,W){kE.call(this,D,Q,m,P,"survey-question-multi-select");this.Iy=W;this.noneOfTheAbove=null;this.submitEndpoints=[];this.N=null;this.hide()};
uKM=function(D,Q,m){D.noneOfTheAbove=new Q4$(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq);D.noneOfTheAbove.b0(D.answers);D.noneOfTheAbove.init(PR("survey-none-of-the-above"),Q,m)};
t2K=function(D){D.C.forEach(function(Q){Q.S.toggleButton(!1)});
dQP(D,!0)};
dQP=function(D,Q){var m=D.B;D=zVQ(D);Q=Q===void 0?!1:Q;m.S&&(D?m.S.hide():m.S.show(),Q&&m.S instanceof NW&&!m.S.B&&sW7(m.S,!1));m.C&&(D?m.C.show():m.C.hide())};
zVQ=function(D){return D.C.some(function(Q){return Q.S.isToggled()})||D.noneOfTheAbove.button.isToggled()};
Jx=function(D,Q,m,P,W){kE.call(this,D,Q,m,P,"survey-question-single-select",function(u){L.api.G().V("supports_multi_step_on_desktop")&&W([u])});
var L=this;this.hide()};
lG=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-survey",X:[{K:"div",L:"ytp-ad-survey-questions"}]},"survey",Q,m,P);this.questions=[];this.C=[];this.conditioningRules=[];this.S=0;this.N=this.Dx("ytp-ad-survey-questions");this.api.G().V("fix_survey_color_contrast_on_destop")&&this.Dx("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().V("web_enable_speedmaster")&&this.Dx("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Cvv=function(D,Q){var m=D.C[Q],P;(P=D.T)==null||P.dispose();g.A(m,tw)?bVQ(D,g.A(m,tw),D.macros):g.A(m,ds)&&qUv(D,g.A(m,ds),D.macros);D.S=Q};
bVQ=function(D,Q,m){var P=new Jx(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,D.B.bind(D));P.b0(D.N);P.init(PR("survey-question-single-select"),Q,m);D.api.G().V("supports_multi_step_on_desktop")?D.T=P:D.questions.push(P);g.O(D,P)};
qUv=function(D,Q,m){var P=new LhV(D.api,D.layoutId,D.interactionLoggingClientData,D.Pq,D.B.bind(D));P.b0(D.N);P.init(PR("survey-question-multi-select"),Q,m);D.api.G().V("supports_multi_step_on_desktop")?D.T=P:D.questions.push(P);g.O(D,P)};
If=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-survey-interstitial",X:[{K:"div",L:"ytp-ad-survey-interstitial-contents",X:[{K:"div",L:"ytp-ad-survey-interstitial-logo",X:[{K:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Q,m,P);this.S=this.actionButton=null;this.interstitial=this.Dx("ytp-ad-survey-interstitial");this.C=this.Dx("ytp-ad-survey-interstitial-contents");this.text=this.Dx("ytp-ad-survey-interstitial-text");
this.logoImage=this.Dx("ytp-ad-survey-interstitial-logo-image");this.transition=new g.mF(this,500,!1,300);g.O(this,this.transition)};
okk=function(D,Q){Q=Q&&$b(Q)||"";if(g.J6(Q))g.l4(Error("Found ThumbnailDetails without valid image URL"));else{var m=D.style;D=D.style.cssText;var P=document.implementation.createHTMLDocument("").createElement("DIV");P.style.cssText=D;D=U39(P.style);m.cssText=[D,'background-image:url("'+Q+'");'].join("")}};
fNk=function(D){var Q=g.La("html5-video-player");Q&&g.sh(Q,"ytp-ad-display-override",D)};
Rf=function(D,Q,m,P,W,L){L=L===void 0?0:L;cR.call(this,D,{K:"div",L:"ytp-preview-ad",X:[{K:"div",L:"ytp-preview-ad__text"}]},"preview-ad",Q,m,P,W);var u=this;this.Iy=L;this.C=0;this.B=-1;this.T=this.Dx("ytp-preview-ad__text");switch(this.Iy){case 1:this.T.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.mF(this,400,!1,100,function(){u.hide()});
g.O(this,this.transition);this.hide()};
UL=function(D,Q,m,P){z1.call(this,D,{K:"img",L:"ytp-ad-avatar"},"ad-avatar",Q,m,P);this.hide()};
V2v=function(D){switch(D.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}};
HH=function(D,Q,m,P,W,L){W=W===void 0?!1:W;L=L===void 0?!1:L;z1.call(this,D,{K:"button",L:"ytp-ad-button-vm"},"ad-button",Q,m,P);this.buttonText=this.buttonIcon=null;this.hide();this.S=W;this.C=L};
N$U=function(D,Q,m,P,W){cR.call(this,D,{K:"div",OW:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],X:[{K:"div",L:"ytp-ad-avatar-lockup-card__avatar_and_text_container",X:[{K:"div",L:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Q,m,P,W);this.startMilliseconds=0;this.adAvatar=new UL(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.adAvatar);V0(this.element,this.adAvatar.element,0);this.headline=new kB(this.api,this.layoutId,
this.interactionLoggingClientData,this.Pq);g.O(this,this.headline);this.headline.b0(this.Dx("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.description);this.description.b0(this.Dx("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new HH(this.api,
this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.adButton);this.adButton.b0(this.element);this.hide()};
Kw=function(D,Q,m,P){z1.call(this,D,{K:"button",L:"ytp-skip-ad-button",X:[{K:"div",L:"ytp-skip-ad-button__text"}]},"skip-button",Q,m,P);var W=this;this.C=!1;this.B=this.Dx("ytp-skip-ad-button__text");this.transition=new g.mF(this,500,!1,100,function(){W.hide()});
g.O(this,this.transition);this.S=new Ls(this.element,15E3,5E3,.5,.5,!0);g.O(this,this.S);this.hide()};
yMh=function(D,Q,m,P,W){cR.call(this,D,{K:"div",L:"ytp-skip-ad"},"skip-ad",Q,m,P,W);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.T=new Kw(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.T);this.T.b0(this.element);this.hide()};
jo=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-visit-advertiser-link"},"visit-advertiser-link",Q,m,P);this.hide()};
$E=function(D,Q,m,P,W){z1.call(this,D,{K:"div",L:"ytp-ad-player-overlay-layout",X:[{K:"div",L:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",L:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",L:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",L:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Q,m,P);this.C=W;this.t0=this.Dx("ytp-ad-player-overlay-layout__player-card-container");this.S=this.Dx("ytp-ad-player-overlay-layout__ad-info-container");
this.j=this.Dx("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Iy=this.Dx("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
ZVM=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-grid-card-text",X:[{K:"div",L:"ytp-ad-grid-card-text__metadata",X:[{K:"div",L:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",L:"ytp-ad-grid-card-text__metadata__description",X:[{K:"div",L:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",L:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",L:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Q,m,P);this.headline=new kB(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq);g.O(this,this.headline);this.headline.b0(this.Dx("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new HH(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0);g.O(this,this.moreInfoButton);this.moreInfoButton.b0(this.Dx("ytp-ad-grid-card-text__button"))};
eo=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Q,m,P);this.S=[]};
vH=function(D,Q,m,P,W,L,u){cR.call(this,D,L,u,Q,m,P,W);this.playerProgressOffsetMs=0;this.C=!1};
FhQ=function(D){var Q=g.La("html5-video-player");Q&&g.sh(Q,"ytp-ad-display-override",D)};
T$T=function(D,Q,m,P,W){vH.call(this,D,Q,m,P,W,{K:"div",L:"ytp-display-underlay-text-grid-cards",X:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container",X:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header",X:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new eo(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.adGridCardCollection);this.adGridCardCollection.b0(this.Dx("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new HH(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.adButton);this.adButton.b0(this.Dx("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.T=this.Dx("ytp-display-underlay-text-grid-cards__content_container");this.B=this.Dx("ytp-display-underlay-text-grid-cards__content_container__header")};
OL=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-ad-details-line"},"ad-details-line",Q,m,P);this.S=[];this.hide()};
YE=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-image-background",X:[{K:"img",L:"ytp-image-background-image"}]},"image-background",Q,m,P);this.hide()};
hV4=function(D,Q,m,P,W){cR.call(this,D,{K:"svg",L:"ytp-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{K:"circle",L:"ytp-timed-pie-countdown__background",Y:{r:"10",cx:"10",cy:"10"}},{K:"circle",L:"ytp-timed-pie-countdown__inner",Y:{r:"5",cx:"10",cy:"10"}},{K:"circle",L:"ytp-timed-pie-countdown__outer",Y:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Q,m,P,W);this.T=this.Dx("ytp-timed-pie-countdown__inner");this.C=Math.ceil(2*Math.PI*5);this.hide()};
af=function(D,Q,m,P){z1.call(this,D,{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout",Y:{tabindex:"0"},X:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content",X:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",X:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Q,m,P);this.C=null;this.B=this.Dx("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.T=new hJ;g.O(this,this.T);this.hide()};
nk$=function(D){var Q=g.La("html5-video-player");Q&&g.sh(Q,"ytp-ad-display-override",D)};
EkV=function(D){if(!D.adAvatar||!g.A(D.adAvatar,Ax))return g.JG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!D.headline)return g.JG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!D.adBadge||!g.A(D.adBadge,pw))return g.JG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!D.adButton||!g.A(D.adButton,xE))return g.JG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!D.adInfoRenderer||
!g.A(D.adInfoRenderer,bP))return g.JG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;D=D.durationMilliseconds||0;return typeof D!=="number"||D<=0?(g.JG(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+D)),!1):!0};
XX=function(D,Q){Q=Q===void 0?2:Q;g.iR.call(this);this.api=D;this.S=null;this.handler=new hJ(this);g.O(this,this.handler);this.C=LDh;this.handler.W(this.api,"presentingplayerstatechange",this.x6);this.S=this.handler.W(this.api,"progresssync",this.mu);this.E1=Q;this.E1===1&&this.mu()};
So=function(D,Q,m){aq.call(this,D);this.api=D;this.Pq=Q;this.components={};D=new g.p({K:"div",OW:["video-ads","ytp-ad-module"]});g.O(this,D);QS&&g.mQ(D.element,"ytp-ads-tiny-mode");this.B=new qF(D.element);g.O(this,this.B);g.Q3(this.api,D.element,4);Iu(m)&&(m=new g.p({K:"div",OW:["ytp-ad-underlay"]}),g.O(this,m),this.C=new qF(m.element),g.O(this,this.C),g.Q3(this.api,m.element,0));g.O(this,HU4())};
gkV=function(D,Q){D=g.qD(D.components,Q.id,null);D==null&&g.l4(Error("Component not found for element id: "+Q.id));return D||null};
B$v=function(D){g.nW.call(this,D);var Q=this;this.C=null;this.created=!1;this.T=D.G().V("h5_use_refactored_get_ad_break")?new yqk(this.player):new ac(this.player);this.B=function(){if(Q.C!=null)return Q.C;var P=new gd9({oH:hx(Q.S).oH,Bx:hx(Q.S).Bx,D:Q.player,Qs:hx(Q.S).Qs,eD:Q.S.S.eD,kS:hx(Q.S).kS,jt:Q.S.S.jt});Q.C=P.w9;return Q.C};
this.S=new UuK(this.player,this,this.T,this.B);g.O(this,this.S);var m=D.G();!Vs(m)||g.zs(m)||VS(m)||(g.O(this,new So(D,hx(this.S).Pq,hx(this.S).Qs)),g.O(this,new H94(D)))};
wPN=function(D){D.created!==D.loaded&&bu("Created and loaded are out of sync")};
lNv=function(D){g.nW.prototype.load.call(D);var Q=hx(D.S).Qs;try{D.player.getRootNode().classList.add("ad-created")}catch(z){bu(z instanceof Error?z:String(z))}var m=D.player.getVideoData(1),P=m&&m.videoId||"",W=m&&m.getPlayerResponse()||{},L=(W&&W.adPlacements||[]).map(function(z){return z.adPlacementRenderer}),u=((W==null?void 0:W.adSlots)||[]).map(function(z){return g.A(z,V2)});
W=W.playerConfig&&W.playerConfig.daiConfig&&W.playerConfig.daiConfig.enableDai||!1;m&&m.VX();L=kTT(L,u,Q,hx(D.S).W0);u=m&&m.clientPlaybackNonce||"";m=m&&m.jZ||!1;if(Ct(Q,!0)&&m){var t;Q={};(t=D.player.getVideoData())==null||t.dc("p_cpb",(Q.cc=u,Q))}t=1E3*D.player.getDuration(1);JMk(D);D.S.S.LD.Wc(u,t,m,L.QH,L.c9,L.QH,W,P)};
JMk=function(D){var Q,m;if(m=(Q=D.player.getVideoData(1))==null||!Q.jZ)Q=D.player.G(),m=Vs(Q)&&!g.f8(Q)&&Q.playerStyle==="desktop-polymer";m&&(D=D.player.getInternalApi(),D.addEventListener("updateKevlarOrC3Companion",fH7),D.addEventListener("updateEngagementPanelAction",Va6),D.addEventListener("changeEngagementPanelVisibility",NVk),window.addEventListener("yt-navigate-start",Zrj))};
rU=function(D,Q){Q===D.XC&&(D.XC=void 0)};
INh=function(D){var Q=hx(D.S).JD,m=Q.B().g0("SLOT_TYPE_PLAYER_BYTES",1);Q=rM(Q.qv.get(),1).clientPlaybackNonce;var P=!1;m=g.T(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;var L=W.slotType==="SLOT_TYPE_PLAYER_BYTES"&&W.slotEntryTrigger instanceof PQ?W.slotEntryTrigger.FN:void 0;L&&L===Q&&(P&&bu("More than 1 preroll playerBytes slot detected",W),P=!0)}P||uG(hx(D.S).hF)};
RVh=function(D){if(MM(hx(D.S).Qs))return!0;var Q="";D=g.T(hx(D.S).kS.D_.keys());for(var m=D.next();!m.done;m=D.next()){m=m.value;if(m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.Wq==="core")return!0;Q+=m.slotType+" "}Math.random()<.01&&bu("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Q});return!1};
UQQ=function(D){D=g.T(hx(D.S).kS.D_.values());for(var Q=D.next();!Q.done;Q=D.next())if(Q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
KIk=function(D,Q,m,P,W,L,u){m=m===void 0?[]:m;P=P===void 0?"":P;W=W===void 0?"":W;var t=hx(D.S).Qs,z=D.player.getVideoData(1);z&&z.getPlayerResponse();z&&z.VX();m=kTT(Q,m,t,hx(D.S).W0);Oh7(hx(D.S).V0,P,m.QH,m.c9,Q,W,L,u)};
kTT=function(D,Q,m,P){Q={QH:[],c9:Q};D=g.T(D);for(var W=D.next();!W.done;W=D.next())if((W=W.value)&&W.renderer!=null){var L=W.renderer;if(!m.D.G().V("html5_enable_vod_lasr_with_notify_pacf")){var u=void 0,t=void 0,z=void 0,b=void 0,q=P;g.A((b=L.sandwichedLinearAdRenderer)==null?void 0:b.adVideoStart,S5)?(u=g.A((z=L.sandwichedLinearAdRenderer)==null?void 0:z.adVideoStart,S5),u=mw7(u,q),g.Kb(L.sandwichedLinearAdRenderer.adVideoStart,S5,u)):g.A((t=L.linearAdSequenceRenderer)==null?void 0:t.adStart,S5)&&
(z=g.A((u=L.linearAdSequenceRenderer)==null?void 0:u.adStart,S5),u=mw7(z,q),g.Kb(L.linearAdSequenceRenderer.adStart,S5,u))}Q.QH.push(W)}return Q};
g.Gu=function(D){if(typeof DOMParser!="undefined")return Ec(new DOMParser,kt$(D),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.Mo=function(D){g.v.call(this);this.callback=D;this.S=new V9(0,0,.4,0,.2,1,1,1);this.delay=new g.AN(this.next,window,this);g.O(this,this.delay)};
g.HVv=function(D){var Q=D.G();return Q.Xw&&!Q.T&&g.W8(Q)?D.isEmbedsShortsMode()?(D=D.eg(),Math.min(D.width,D.height)>=315):!D.Px():!1};
g.cH=function(D){g.p.call(this,{K:"div",L:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var Q=this;this.api=D;this.C=!0;this.T=new g.gO(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.B=this.scrollPosition=0;this.title=new g.p({K:"h2",L:"ytp-related-title",h0:"{{title}}"});this.previous=new g.p({K:"button",OW:["ytp-button","ytp-previous"],Y:{"aria-label":"Show previous suggested videos"},X:[g.fX()]});this.U=new g.Mo(function(m){Q.suggestions.element.scrollLeft=-m});
this.next=new g.p({K:"button",OW:["ytp-button","ytp-next"],Y:{"aria-label":"Show more suggested videos"},X:[g.Vq()]});g.O(this,this.T);this.N=D.G().B;g.O(this,this.title);this.title.b0(this.element);this.suggestions=new g.p({K:"div",L:"ytp-suggestions"});g.O(this,this.suggestions);this.suggestions.b0(this.element);g.O(this,this.previous);this.previous.b0(this.element);this.previous.listen("click",this.qX,this);g.O(this,this.U);Khk(this);g.O(this,this.next);this.next.b0(this.element);this.next.listen("click",
this.UQ,this);this.T.W(this.api,"appresize",this.MB);this.T.W(this.api,"fullscreentoggled",this.mN);this.T.W(this.api,"videodatachange",this.onVideoDataChange);this.MB(this.api.fh().getPlayerSize());this.onVideoDataChange()};
Khk=function(D){for(var Q={Ca:0};Q.Ca<16;Q={Ca:Q.Ca},++Q.Ca){var m=new g.p({K:"a",L:"ytp-suggestion-link",Y:{href:"{{link}}",target:D.api.G().j,"aria-label":"{{aria_label}}"},X:[{K:"div",L:"ytp-suggestion-image"},{K:"div",L:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{K:"div",L:"ytp-suggestion-title",h0:"{{title}}"},{K:"div",L:"ytp-suggestion-author",h0:"{{author_and_views}}"},{K:"div",Y:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration",
h0:"{{duration}}"}]}]});g.O(D,m);var P=m.Dx("ytp-suggestion-link");g.YZ(P,"transitionDelay",Q.Ca/20+"s");D.T.W(P,"click",function(W){return function(L){var u=W.Ca;if(D.C){var t=D.suggestionData[u],z=t.sessionData;D.N&&D.api.V("web_player_log_click_before_generating_ve_conversion_params")?(D.api.logClick(D.S[u].element),u=t.rT(),t={},g.MO(D.api,t),u=g.oz(u,t),g.k_(u,D.api,L)):g.wg(L,D.api,D.N,z||void 0)&&D.api.yW(t.videoId,z,t.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(Q));
m.b0(D.suggestions.element);D.S.push(m);D.api.createServerVe(m.element,m)}};
j4P=function(D){if(D.api.G().V("web_player_log_click_before_generating_ve_conversion_params"))for(var Q=Math.floor(-D.scrollPosition/(D.B+8)),m=Math.min(Q+D.columns,D.suggestionData.length)-1;Q<=m;Q++)D.api.logVisibility(D.S[Q].element,!0)};
g.Dt=function(D){var Q=D.api.UN()?32:16;Q=D.Z/2+Q;D.next.element.style.bottom=Q+"px";D.previous.element.style.bottom=Q+"px";Q=D.scrollPosition;var m=D.containerWidth-D.suggestionData.length*(D.B+8);g.sh(D.element,"ytp-scroll-min",Q>=0);g.sh(D.element,"ytp-scroll-max",Q<=m)};
eV2=function(D){for(var Q=D.suggestionData.length,m=0;m<Q;++m){var P=void 0,W=void 0,L=void 0;P=D;var u=P.api.G(),t=P.suggestionData[m],z=P.S[m];L=P.api.isEmbedsShortsMode()?t.shortViewCount||"":t.shortViewCount?t.author+" \u2022 "+t.shortViewCount:t.author;z.element.style.display="";g.YZ(z.Dx("ytp-suggestion-link"),"display","inline-block");$Qv.test(t.title)&&(z.Dx("ytp-suggestion-title").dir="rtl");$Qv.test(L)&&(z.Dx("ytp-suggestion-author").dir="rtl");W=t.isLivePlayback?"Live":t.lengthSeconds?
g.ns(t.lengthSeconds):"";var b=t.rT(P.api.isEmbedsShortsMode());if(g.W8(u)&&!u.V("web_player_log_click_before_generating_ve_conversion_params")){var q={};g.Iv(P.api,"addEmbedsConversionTrackingParams",[q]);b=g.oz(b,q)}u.V("web_player_log_click_before_generating_ve_conversion_params")&&(u=(u=t.sessionData)&&u.itct)&&P.api.setTrackingParams(z.element,u);z.update({author_and_views:L,duration:W,link:b,title:t.title,aria_label:t.ariaLabel||t.title,is_live:t.isLivePlayback,aria_hidden:!!t.ariaLabel,blink_rendering_hack:g.Ta||
g.m8?"will-change: opacity":void 0});W=z.Dx("ytp-suggestion-image");P=P.api.isEmbedsShortsMode()?t.vB("hq2.jpg"):t.vB();W.style.backgroundImage=P?"url("+P+")":""}if(Q<16)for(;Q<16;++Q)g.YZ(D.S[Q].Dx("ytp-suggestion-link"),"display","none");g.Dt(D)};
Duw=[];t4=typeof Object.defineProperties=="function"?Object.defineProperty:function(D,Q,m){if(D==Array.prototype||D==Object.prototype)return D;D[Q]=m.value;return D};
g.i6=mun(this);z7("Symbol",function(D){function Q(L){if(this instanceof Q)throw new TypeError("Symbol is not a constructor");return new m(P+(L||"")+"_"+W++,L)}
function m(L,u){this.S=L;t4(this,"description",{configurable:!0,writable:!0,value:u})}
if(D)return D;m.prototype.toString=function(){return this.S};
var P="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",W=0;return Q});
z7("Symbol.iterator",function(D){if(D)return D;D=Symbol("Symbol.iterator");for(var Q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<Q.length;m++){var P=g.i6[Q[m]];typeof P==="function"&&typeof P.prototype[D]!="function"&&t4(P.prototype,D,{configurable:!0,writable:!0,value:function(){return P6j(Qnw(this))}})}return D});
var Wjh=typeof Object.create=="function"?Object.create:function(D){function Q(){}
Q.prototype=D;return new Q},vkU=function(){function D(){function m(){}
new m;Reflect.construct(m,[],function(){});
return new m instanceof m}
if(typeof Reflect!="undefined"&&Reflect.construct){if(D())return Reflect.construct;var Q=Reflect.construct;return function(m,P,W){m=Q(m,P);W&&Reflect.setPrototypeOf(m,W.prototype);return m}}return function(m,P,W){W===void 0&&(W=m);
W=Wjh(W.prototype||Object.prototype);return Function.prototype.apply.call(m,W,P)||W}}(),OVv;
if(typeof Object.setPrototypeOf=="function")OVv=Object.setPrototypeOf;else{var YU4;a:{var aNP={a:!0},AMv={};try{AMv.__proto__=aNP;YU4=AMv.a;break a}catch(D){}YU4=!1}OVv=YU4?function(D,Q){D.__proto__=Q;if(D.__proto__!==Q)throw new TypeError(D+" is not extensible");return D}:null}var C9=OVv,pP4=typeof Object.assign=="function"?Object.assign:function(D,Q){for(var m=1;m<arguments.length;m++){var P=arguments[m];
if(P)for(var W in P)Vm(P,W)&&(D[W]=P[W])}return D};
z7("Object.assign",function(D){return D||pP4});
Nu.prototype.Z=function(D){this.S=D};
Nu.prototype.return=function(D){this.T={return:D};this.C=this.J};
Nu.prototype.Nv=function(D){this.C=D};
z7("globalThis",function(D){return D||g.i6});
z7("Reflect",function(D){return D?D:{}});
z7("Reflect.construct",function(){return vkU});
z7("Reflect.setPrototypeOf",function(D){return D?D:C9?function(Q,m){try{return C9(Q,m),!0}catch(P){return!1}}:null});
z7("Promise",function(D){function Q(u){this.S=0;this.T=void 0;this.C=[];this.U=!1;var t=this.B();try{u(t.resolve,t.reject)}catch(z){t.reject(z)}}
function m(){this.S=null}
function P(u){return u instanceof Q?u:new Q(function(t){t(u)})}
if(D)return D;m.prototype.C=function(u){if(this.S==null){this.S=[];var t=this;this.T(function(){t.J()})}this.S.push(u)};
var W=g.i6.setTimeout;m.prototype.T=function(u){W(u,0)};
m.prototype.J=function(){for(;this.S&&this.S.length;){var u=this.S;this.S=[];for(var t=0;t<u.length;++t){var z=u[t];u[t]=null;try{z()}catch(b){this.B(b)}}}this.S=null};
m.prototype.B=function(u){this.T(function(){throw u;})};
Q.prototype.B=function(){function u(b){return function(q){z||(z=!0,b.call(t,q))}}
var t=this,z=!1;return{resolve:u(this.Kh),reject:u(this.J)}};
Q.prototype.Kh=function(u){if(u===this)this.J(new TypeError("A Promise cannot resolve to itself"));else if(u instanceof Q)this.t0(u);else{a:switch(typeof u){case "object":var t=u!=null;break a;case "function":t=!0;break a;default:t=!1}t?this.Iy(u):this.N(u)}};
Q.prototype.Iy=function(u){var t=void 0;try{t=u.then}catch(z){this.J(z);return}typeof t=="function"?this.wc(t,u):this.N(u)};
Q.prototype.J=function(u){this.Z(2,u)};
Q.prototype.N=function(u){this.Z(1,u)};
Q.prototype.Z=function(u,t){if(this.S!=0)throw Error("Cannot settle("+u+", "+t+"): Promise already settled in state"+this.S);this.S=u;this.T=t;this.S===2&&this.QF();this.j()};
Q.prototype.QF=function(){var u=this;W(function(){if(u.TO()){var t=g.i6.console;typeof t!=="undefined"&&t.error(u.T)}},1)};
Q.prototype.TO=function(){if(this.U)return!1;var u=g.i6.CustomEvent,t=g.i6.Event,z=g.i6.dispatchEvent;if(typeof z==="undefined")return!0;typeof u==="function"?u=new u("unhandledrejection",{cancelable:!0}):typeof t==="function"?u=new t("unhandledrejection",{cancelable:!0}):(u=g.i6.document.createEvent("CustomEvent"),u.initCustomEvent("unhandledrejection",!1,!0,u));u.promise=this;u.reason=this.T;return z(u)};
Q.prototype.j=function(){if(this.C!=null){for(var u=0;u<this.C.length;++u)L.C(this.C[u]);this.C=null}};
var L=new m;Q.prototype.t0=function(u){var t=this.B();u.CX(t.resolve,t.reject)};
Q.prototype.wc=function(u,t){var z=this.B();try{u.call(t,z.resolve,z.reject)}catch(b){z.reject(b)}};
Q.prototype.then=function(u,t){function z(f,V){return typeof f=="function"?function(N){try{b(f(N))}catch(h){q(h)}}:V}
var b,q,C=new Q(function(f,V){b=f;q=V});
this.CX(z(u,b),z(t,q));return C};
Q.prototype.catch=function(u){return this.then(void 0,u)};
Q.prototype.CX=function(u,t){function z(){switch(b.S){case 1:u(b.T);break;case 2:t(b.T);break;default:throw Error("Unexpected state: "+b.S);}}
var b=this;this.C==null?L.C(z):this.C.push(z);this.U=!0};
Q.resolve=P;Q.reject=function(u){return new Q(function(t,z){z(u)})};
Q.race=function(u){return new Q(function(t,z){for(var b=g.T(u),q=b.next();!q.done;q=b.next())P(q.value).CX(t,z)})};
Q.all=function(u){var t=g.T(u),z=t.next();return z.done?P([]):new Q(function(b,q){function C(N){return function(h){f[N]=h;V--;V==0&&b(f)}}
var f=[],V=0;do f.push(void 0),V++,P(z.value).CX(C(f.length-1),q),z=t.next();while(!z.done)})};
return Q});
z7("Object.setPrototypeOf",function(D){return D||C9});
z7("Symbol.dispose",function(D){return D?D:Symbol("Symbol.dispose")});
z7("SuppressedError",function(D){function Q(m,P,W){if(!(this instanceof Q))return new Q(m,P,W);W=Error(W);"stack"in W&&(this.stack=W.stack);this.message=W.message;this.error=m;this.suppressed=P}
if(D)return D;g.Z(Q,Error);Q.prototype.name="SuppressedError";return Q});
z7("WeakMap",function(D){function Q(z){this.S=(t+=Math.random()+1).toString();if(z){z=g.T(z);for(var b;!(b=z.next()).done;)b=b.value,this.set(b[0],b[1])}}
function m(){}
function P(z){var b=typeof z;return b==="object"&&z!==null||b==="function"}
function W(z){if(!Vm(z,u)){var b=new m;t4(z,u,{value:b})}}
function L(z){var b=Object[z];b&&(Object[z]=function(q){if(q instanceof m)return q;Object.isExtensible(q)&&W(q);return b(q)})}
if(function(){if(!D||!Object.seal)return!1;try{var z=Object.seal({}),b=Object.seal({}),q=new D([[z,2],[b,3]]);if(q.get(z)!=2||q.get(b)!=3)return!1;q.delete(z);q.set(b,4);return!q.has(z)&&q.get(b)==4}catch(C){return!1}}())return D;
var u="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var t=0;Q.prototype.set=function(z,b){if(!P(z))throw Error("Invalid WeakMap key");W(z);if(!Vm(z,u))throw Error("WeakMap key fail: "+z);z[u][this.S]=b;return this};
Q.prototype.get=function(z){return P(z)&&Vm(z,u)?z[u][this.S]:void 0};
Q.prototype.has=function(z){return P(z)&&Vm(z,u)&&Vm(z[u],this.S)};
Q.prototype.delete=function(z){return P(z)&&Vm(z,u)&&Vm(z[u],this.S)?delete z[u][this.S]:!1};
return Q});
z7("Map",function(D){function Q(){var t={};return t.previous=t.next=t.head=t}
function m(t,z){var b=t[1];return P6j(function(){if(b){for(;b.head!=t[1];)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:z(b)};b=null}return{done:!0,value:void 0}})}
function P(t,z){var b=z&&typeof z;b=="object"||b=="function"?L.has(z)?b=L.get(z):(b=""+ ++u,L.set(z,b)):b="p_"+z;var q=t[0][b];if(q&&Vm(t[0],b))for(t=0;t<q.length;t++){var C=q[t];if(z!==z&&C.key!==C.key||z===C.key)return{id:b,list:q,index:t,entry:C}}return{id:b,list:q,index:-1,entry:void 0}}
function W(t){this[0]={};this[1]=Q();this.size=0;if(t){t=g.T(t);for(var z;!(z=t.next()).done;)z=z.value,this.set(z[0],z[1])}}
if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var t=Object.seal({x:4}),z=new D(g.T([[t,"s"]]));if(z.get(t)!="s"||z.size!=1||z.get({x:4})||z.set({x:4},"t")!=z||z.size!=2)return!1;var b=z.entries(),q=b.next();if(q.done||q.value[0]!=t||q.value[1]!="s")return!1;q=b.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!b.next().done?!1:!0}catch(C){return!1}}())return D;
var L=new WeakMap;W.prototype.set=function(t,z){t=t===0?0:t;var b=P(this,t);b.list||(b.list=this[0][b.id]=[]);b.entry?b.entry.value=z:(b.entry={next:this[1],previous:this[1].previous,head:this[1],key:t,value:z},b.list.push(b.entry),this[1].previous.next=b.entry,this[1].previous=b.entry,this.size++);return this};
W.prototype.delete=function(t){t=P(this,t);return t.entry&&t.list?(t.list.splice(t.index,1),t.list.length||delete this[0][t.id],t.entry.previous.next=t.entry.next,t.entry.next.previous=t.entry.previous,t.entry.head=null,this.size--,!0):!1};
W.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Q();this.size=0};
W.prototype.has=function(t){return!!P(this,t).entry};
W.prototype.get=function(t){return(t=P(this,t).entry)&&t.value};
W.prototype.entries=function(){return m(this,function(t){return[t.key,t.value]})};
W.prototype.keys=function(){return m(this,function(t){return t.key})};
W.prototype.values=function(){return m(this,function(t){return t.value})};
W.prototype.forEach=function(t,z){for(var b=this.entries(),q;!(q=b.next()).done;)q=q.value,t.call(z,q[1],q[0],this)};
W.prototype[Symbol.iterator]=W.prototype.entries;var u=0;return W});
z7("Set",function(D){function Q(m){this.S=new Map;if(m){m=g.T(m);for(var P;!(P=m.next()).done;)this.add(P.value)}this.size=this.S.size}
if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var m=Object.seal({x:4}),P=new D(g.T([m]));if(!P.has(m)||P.size!=1||P.add(m)!=P||P.size!=1||P.add({x:4})!=P||P.size!=2)return!1;var W=P.entries(),L=W.next();if(L.done||L.value[0]!=m||L.value[1]!=m)return!1;L=W.next();return L.done||L.value[0]==m||L.value[0].x!=4||L.value[1]!=L.value[0]?!1:W.next().done}catch(u){return!1}}())return D;
Q.prototype.add=function(m){m=m===0?0:m;this.S.set(m,m);this.size=this.S.size;return this};
Q.prototype.delete=function(m){m=this.S.delete(m);this.size=this.S.size;return m};
Q.prototype.clear=function(){this.S.clear();this.size=0};
Q.prototype.has=function(m){return this.S.has(m)};
Q.prototype.entries=function(){return this.S.entries()};
Q.prototype.values=function(){return this.S.values()};
Q.prototype.keys=Q.prototype.values;Q.prototype[Symbol.iterator]=Q.prototype.values;Q.prototype.forEach=function(m,P){var W=this;this.S.forEach(function(L){return m.call(P,L,L,W)})};
return Q});
z7("String.prototype.endsWith",function(D){return D?D:function(Q,m){var P=O_(this,Q,"endsWith");Q+="";m===void 0&&(m=P.length);m=Math.max(0,Math.min(m|0,P.length));for(var W=Q.length;W>0&&m>0;)if(P[--m]!=Q[--W])return!1;return W<=0}});
z7("Array.prototype.find",function(D){return D?D:function(Q,m){return b9P(this,Q,m).SG}});
z7("Array.prototype.entries",function(D){return D?D:function(){return an(this,function(Q,m){return[Q,m]})}});
z7("Array.prototype.keys",function(D){return D?D:function(){return an(this,function(Q){return Q})}});
z7("String.prototype.startsWith",function(D){return D?D:function(Q,m){var P=O_(this,Q,"startsWith");Q+="";var W=P.length,L=Q.length;m=Math.max(0,Math.min(m|0,P.length));for(var u=0;u<L&&m<W;)if(P[m++]!=Q[u++])return!1;return u>=L}});
z7("Number.isFinite",function(D){return D?D:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}});
z7("String.prototype.repeat",function(D){return D?D:function(Q){var m=O_(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("Invalid count value");Q|=0;for(var P="";Q;)if(Q&1&&(P+=m),Q>>>=1)m+=m;return P}});
z7("Object.entries",function(D){return D?D:function(Q){var m=[],P;for(P in Q)Vm(Q,P)&&m.push([P,Q[P]]);return m}});
z7("Array.from",function(D){return D?D:function(Q,m,P){m=m!=null?m:function(t){return t};
var W=[],L=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof L=="function"){Q=L.call(Q);for(var u=0;!(L=Q.next()).done;)W.push(m.call(P,L.value,u++))}else for(L=Q.length,u=0;u<L;u++)W.push(m.call(P,Q[u],u));return W}});
z7("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
z7("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
z7("Number.isInteger",function(D){return D?D:function(Q){return Number.isFinite(Q)?Q===Math.floor(Q):!1}});
z7("Number.isSafeInteger",function(D){return D?D:function(Q){return Number.isInteger(Q)&&Math.abs(Q)<=Number.MAX_SAFE_INTEGER}});
z7("Object.is",function(D){return D?D:function(Q,m){return Q===m?Q!==0||1/Q===1/m:Q!==Q&&m!==m}});
z7("Array.prototype.includes",function(D){return D?D:function(Q,m){var P=this;P instanceof String&&(P=String(P));var W=P.length;m=m||0;for(m<0&&(m=Math.max(m+W,0));m<W;m++){var L=P[m];if(L===Q||Object.is(L,Q))return!0}return!1}});
z7("String.prototype.includes",function(D){return D?D:function(Q,m){return O_(this,Q,"includes").indexOf(Q,m||0)!==-1}});
z7("Math.log2",function(D){return D?D:function(Q){return Math.log(Q)/Math.LN2}});
z7("Object.values",function(D){return D?D:function(Q){var m=[],P;for(P in Q)Vm(Q,P)&&m.push(Q[P]);return m}});
z7("Math.trunc",function(D){return D?D:function(Q){Q=Number(Q);if(isNaN(Q)||Q===Infinity||Q===-Infinity||Q===0)return Q;var m=Math.floor(Math.abs(Q));return Q<0?-m:m}});
z7("Math.clz32",function(D){return D?D:function(Q){Q=Number(Q)>>>0;if(Q===0)return 32;var m=0;(Q&4294901760)===0&&(Q<<=16,m+=16);(Q&4278190080)===0&&(Q<<=8,m+=8);(Q&4026531840)===0&&(Q<<=4,m+=4);(Q&3221225472)===0&&(Q<<=2,m+=2);(Q&2147483648)===0&&m++;return m}});
z7("Number.isNaN",function(D){return D?D:function(Q){return typeof Q==="number"&&isNaN(Q)}});
z7("Array.prototype.values",function(D){return D?D:function(){return an(this,function(Q,m){return m})}});
z7("Array.prototype.fill",function(D){return D?D:function(Q,m,P){var W=this.length||0;m<0&&(m=Math.max(0,W+m));if(P==null||P>W)P=W;P=Number(P);P<0&&(P=Math.max(0,W+P));for(m=Number(m||0);m<P;m++)this[m]=Q;return this}});
z7("Int8Array.prototype.fill",A4);z7("Uint8Array.prototype.fill",A4);z7("Uint8ClampedArray.prototype.fill",A4);z7("Int16Array.prototype.fill",A4);z7("Uint16Array.prototype.fill",A4);z7("Int32Array.prototype.fill",A4);z7("Uint32Array.prototype.fill",A4);z7("Float32Array.prototype.fill",A4);z7("Float64Array.prototype.fill",A4);
z7("Object.fromEntries",function(D){return D?D:function(Q){var m={};if(!(Symbol.iterator in Q))throw new TypeError(""+Q+" is not iterable");Q=Q[Symbol.iterator].call(Q);for(var P=Q.next();!P.done;P=Q.next()){P=P.value;if(Object(P)!==P)throw new TypeError("iterable for fromEntries should yield objects");m[P[0]]=P[1]}return m}});
z7("String.prototype.replaceAll",function(D){return D?D:function(Q,m){if(Q instanceof RegExp&&!Q.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return Q instanceof RegExp?this.replace(Q,m):this.replace(new RegExp(String(Q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),m)}});
z7("String.prototype.padStart",function(D){return D?D:function(Q,m){var P=O_(this,null,"padStart");Q-=P.length;m=m!==void 0?String(m):" ";return(Q>0&&m?m.repeat(Math.ceil(Q/m.length)).substring(0,Q):"")+P}});
z7("Array.prototype.findIndex",function(D){return D?D:function(Q,m){return b9P(this,Q,m).jI}});
z7("Promise.prototype.finally",function(D){return D?D:function(Q){return this.then(function(m){return Promise.resolve(Q()).then(function(){return m})},function(m){return Promise.resolve(Q()).then(function(){throw m;
})})}});
z7("Math.imul",function(D){return D?D:function(Q,m){Q=Number(Q);m=Number(m);var P=Q&65535,W=m&65535;return P*W+((Q>>>16&65535)*W+P*(m>>>16&65535)<<16>>>0)|0}});
z7("Math.sign",function(D){return D?D:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}});
z7("WeakSet",function(D){function Q(m){this.S=new WeakMap;if(m){m=g.T(m);for(var P;!(P=m.next()).done;)this.add(P.value)}}
if(function(){if(!D||!Object.seal)return!1;try{var m=Object.seal({}),P=Object.seal({}),W=new D([m]);if(!W.has(m)||W.has(P))return!1;W.delete(m);W.add(P);return!W.has(m)&&W.has(P)}catch(L){return!1}}())return D;
Q.prototype.add=function(m){this.S.set(m,!0);return this};
Q.prototype.has=function(m){return this.S.has(m)};
Q.prototype.delete=function(m){return this.S.delete(m)};
return Q});
z7("AggregateError",function(D){function Q(m,P){P=Error(P);"stack"in P&&(this.stack=P.stack);this.errors=m;this.message=P.message}
if(D)return D;g.Z(Q,Error);Q.prototype.name="AggregateError";return Q});
z7("Array.prototype.copyWithin",function(D){function Q(m){m=Number(m);return m===Infinity||m===-Infinity?m:m|0}
return D?D:function(m,P,W){var L=this.length;m=Q(m);P=Q(P);W=W===void 0?L:Q(W);m=m<0?Math.max(L+m,0):Math.min(m,L);P=P<0?Math.max(L+P,0):Math.min(P,L);W=W<0?Math.max(L+W,0):Math.min(W,L);if(m<P)for(;P<W;)P in this?this[m++]=this[P++]:(delete this[m++],P++);else for(W=Math.min(W,L+P-m),m+=W-P;W>P;)--W in this?this[--m]=this[W]:delete this[--m];return this}});
z7("Int8Array.prototype.copyWithin",p9);z7("Uint8Array.prototype.copyWithin",p9);z7("Uint8ClampedArray.prototype.copyWithin",p9);z7("Int16Array.prototype.copyWithin",p9);z7("Uint16Array.prototype.copyWithin",p9);z7("Int32Array.prototype.copyWithin",p9);z7("Uint32Array.prototype.copyWithin",p9);z7("Float32Array.prototype.copyWithin",p9);z7("Float64Array.prototype.copyWithin",p9);z7("Array.prototype.at",function(D){return D?D:Xw});
z7("Int8Array.prototype.at",r7);z7("Uint8Array.prototype.at",r7);z7("Uint8ClampedArray.prototype.at",r7);z7("Int16Array.prototype.at",r7);z7("Uint16Array.prototype.at",r7);z7("Int32Array.prototype.at",r7);z7("Uint32Array.prototype.at",r7);z7("Float32Array.prototype.at",r7);z7("Float64Array.prototype.at",r7);z7("String.prototype.at",function(D){return D?D:Xw});
z7("Array.prototype.findLastIndex",function(D){return D?D:function(Q,m){return q_P(this,Q,m).jI}});
z7("Int8Array.prototype.findLastIndex",G7);z7("Uint8Array.prototype.findLastIndex",G7);z7("Uint8ClampedArray.prototype.findLastIndex",G7);z7("Int16Array.prototype.findLastIndex",G7);z7("Uint16Array.prototype.findLastIndex",G7);z7("Int32Array.prototype.findLastIndex",G7);z7("Uint32Array.prototype.findLastIndex",G7);z7("Float32Array.prototype.findLastIndex",G7);z7("Float64Array.prototype.findLastIndex",G7);z7("Number.parseInt",function(D){return D||parseInt});var A9,sU,oPm;A9=A9||{};g.Mu=this||self;sU="closure_uid_"+(Math.random()*1E9>>>0);oPm=0;g.CV(o4,Error);o4.prototype.name="CustomError";var lN6;var T77,N5,v9;T77=Array.prototype.indexOf?function(D,Q){return Array.prototype.indexOf.call(D,Q,void 0)}:function(D,Q){if(typeof D==="string")return typeof Q!=="string"||Q.length!=1?-1:D.indexOf(Q,0);
for(var m=0;m<D.length;m++)if(m in D&&D[m]===Q)return m;return-1};
g.xQU=Array.prototype.lastIndexOf?function(D,Q){return Array.prototype.lastIndexOf.call(D,Q,D.length-1)}:function(D,Q){var m=D.length-1;
m<0&&(m=Math.max(0,D.length+m));if(typeof D==="string")return typeof Q!=="string"||Q.length!=1?-1:D.lastIndexOf(Q,m);for(;m>=0;m--)if(m in D&&D[m]===Q)return m;return-1};
g.S2=Array.prototype.forEach?function(D,Q,m){Array.prototype.forEach.call(D,Q,m)}:function(D,Q,m){for(var P=D.length,W=typeof D==="string"?D.split(""):D,L=0;L<P;L++)L in W&&Q.call(m,W[L],L,D)};
g.g0=Array.prototype.filter?function(D,Q,m){return Array.prototype.filter.call(D,Q,m)}:function(D,Q,m){for(var P=D.length,W=[],L=0,u=typeof D==="string"?D.split(""):D,t=0;t<P;t++)if(t in u){var z=u[t];
Q.call(m,z,t,D)&&(W[L++]=z)}return W};
g.fk=Array.prototype.map?function(D,Q,m){return Array.prototype.map.call(D,Q,m)}:function(D,Q,m){for(var P=D.length,W=Array(P),L=typeof D==="string"?D.split(""):D,u=0;u<P;u++)u in L&&(W[u]=Q.call(m,L[u],u,D));
return W};
N5=Array.prototype.reduce?function(D,Q,m){return Array.prototype.reduce.call(D,Q,m)}:function(D,Q,m){var P=m;
(0,g.S2)(D,function(W,L){P=Q.call(void 0,P,W,L,D)});
return P};
v9=Array.prototype.some?function(D,Q){return Array.prototype.some.call(D,Q,void 0)}:function(D,Q){for(var m=D.length,P=typeof D==="string"?D.split(""):D,W=0;W<m;W++)if(W in P&&Q.call(void 0,P[W],W,D))return!0;
return!1};
g.VT=Array.prototype.every?function(D,Q,m){return Array.prototype.every.call(D,Q,m)}:function(D,Q,m){for(var P=D.length,W=typeof D==="string"?D.split(""):D,L=0;L<P;L++)if(L in W&&!Q.call(m,W[L],L,D))return!1;
return!0};var erk={NONE:0,W8c:1},kH7={I7:0,pkT:1,a7h:2,YTD:3},mK={Y8:"a",rnW:"d",VIDEO:"v"};GT.prototype.isVisible=function(){return this.XX?this.i7>=.3:this.i7>=.5};var wC={NTh:0,jc0:1},B97={NONE:0,PWx:1,hZc:2};var Kju="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ND.prototype.getValue=function(){return this.C};
g.Z(yP,ND);yP.prototype.T=function(D){this.C===null&&g.t6(this.B,D)&&(this.C=D)};
g.Z(Zz,ND);Zz.prototype.T=function(D){this.C===null&&typeof D==="number"&&(this.C=D)};
g.Z(Fu,ND);Fu.prototype.T=function(D){this.C===null&&typeof D==="string"&&(this.C=D)};Tr.prototype.disable=function(){this.C=!1};
Tr.prototype.enable=function(){this.C=!0};
Tr.prototype.isEnabled=function(){return this.C};
Tr.prototype.reset=function(){this.S={};this.C=!0;this.T={}};var YN=document,kZ=window;var XPM=PP(1,!0),jx=PP(610401301,!1);PP(899588437,!1);var SU4=PP(772657768,!1),rMN=PP(513659523,!1),GTh=PP(568333945,XPM),gW9=PP(1331761403,!1);PP(651175828,!1);PP(722764542,!1);PP(748402145,!1);PP(748402146,!1);var Fmj=PP(748402147,XPM);PP(333098724,!1);PP(2147483644,!1);PP(2147483645,!1);PP(2147483646,XPM);PP(2147483647,!0);var $1=!!g.Q4("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var R2=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},Lh9=/&/g,uK4=/</g,dQh=/>/g,t2w=/"/g,zVu=/'/g,bVu=/\x00/g,s49=/[\x00&<>"']/;var ex,M2h=g.Mu.navigator;ex=M2h?M2h.userAgentData||null:null;var S_h=globalThis.trustedTypes,rC;MD.prototype.toString=function(){return this.S+""};mm.prototype.toString=function(){return this.S};
var M$h=new mm("about:invalid#zClosurez");var eN9=ip("tel"),jhr=ip("sms"),G7$=[ip("data"),ip("http"),ip("https"),ip("mailto"),ip("ftp"),new Wb(function(D){return/^[^:]*([/?#]|$)/.test(D)})],c4$=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;z4.prototype.toString=function(){return this.S+""};f6.prototype.toString=function(){return this.S+""};F4.prototype.toString=function(){return this.S};var hy={};g.cMN=String.prototype.repeat?function(D,Q){return D.repeat(Q)}:function(D,Q){return Array(Q+1).join(D)};jZ[" "]=function(){};var a$,yL,pYh,DDP,Q2M,mDK,DW,QS,P7U;g.m8=pg();g.tv=Y_7();g.Ak=a2("Edge");g.kv=g.Ak||g.tv;a$=a2("Gecko")&&!(I2(g.Kg(),"WebKit")&&!a2("Edge"))&&!(a2("Trident")||a2("MSIE"))&&!a2("Edge");g.d9=I2(g.Kg(),"WebKit")&&!a2("Edge");yL=K6();pYh=N$_();g.S8=V26();DDP=Uc();Q2M=a2("iPad");mDK=a2("iPod");DW=Hb();QS=I2(g.Kg(),"KaiOS");
a:{var WxK="",igV=function(){var D=g.Kg();if(a$)return/rv:([^\);]+)(\)|;)/.exec(D);if(g.Ak)return/Edge\/([\d\.]+)/.exec(D);if(g.tv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(g.d9)return/WebKit\/(\S+)/.exec(D);if(g.m8)return/(?:Version)[ \/]?(\S+)/.exec(D)}();
igV&&(WxK=igV?igV[1]:"");if(g.tv){var QA,s2U=g.Mu.document;QA=s2U?s2U.documentMode:void 0;if(QA!=null&&QA>parseFloat(WxK)){P7U=String(QA);break a}}P7U=WxK}var T$7=P7U,ZV4={};var Al,pp;g.fD=x1();Al=Uc()||a2("iPod");pp=a2("iPad");g.P8=A46();g.Ta=Xu();g.Cr=Sx()&&!Hb();var R$n=!g.tv&&!Sx();g.y=g.Yq.prototype;g.y.clone=function(){return new g.Yq(this.x,this.y)};
g.y.equals=function(D){return D instanceof g.Yq&&aG(this,D)};
g.y.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.y.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.y.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.y.scale=function(D,Q){this.x*=D;this.y*=typeof Q==="number"?Q:D;return this};g.y=g.Ay.prototype;g.y.clone=function(){return new g.Ay(this.width,this.height)};
g.y.aspectRatio=function(){return this.width/this.height};
g.y.isEmpty=function(){return!xq(this)};
g.y.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.y.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.y.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.y.scale=function(D,Q){this.width*=D;this.height*=typeof Q==="number"?Q:D;return this};SZ.prototype.toString=function(){return this.S};
var X4={};new SZ(X4,"");var Ek9=/^[a-z][a-z\d-]*$/i,gkr="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),wPk="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),JMP=["action","formaction","href"];var INj={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.y=Mt.prototype;g.y.nj=function(D){return Pu(this.S,D)};
g.y.getElementsByTagName=function(D,Q){return(Q||this.S).getElementsByTagName(String(D))};
g.y.Dx=function(D){return g.La(D,this.S)};
g.y.setProperties=uX;g.y.createElement=function(D){return zH(this.S,D)};
g.y.appendChild=g.o$;g.y.append=function(D,Q){KhP(cb(D),D,arguments,1)};
g.y.canHaveChildren=function(D){if(D.nodeType!=1)return!1;switch(D.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.y.removeNode=g.Ni;g.y.getChildren=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(Q){return Q.nodeType==1})};
g.y.contains=g.y0;g9.prototype.now=function(){return 0};
g9.prototype.C=function(){return 0};
g9.prototype.T=function(){return 0};
g9.prototype.S=function(){return 0};g.Z(w9,g9);w9.prototype.now=function(){return Bu()&&kZ.performance.now?kZ.performance.now():g9.prototype.now.call(this)};
w9.prototype.C=function(){return Bu()&&kZ.performance.memory?kZ.performance.memory.totalJSHeapSize||0:g9.prototype.C.call(this)};
w9.prototype.T=function(){return Bu()&&kZ.performance.memory?kZ.performance.memory.usedJSHeapSize||0:g9.prototype.T.call(this)};
w9.prototype.S=function(){return Bu()&&kZ.performance.memory?kZ.performance.memory.jsHeapSizeLimit||0:g9.prototype.S.call(this)};var w9m=function(){if(!g.Mu.addEventListener||!Object.defineProperty)return!1;var D=!1,Q=Object.defineProperty({},"passive",{get:function(){D=!0}});
try{var m=function(){};
g.Mu.addEventListener("test",m,Q);g.Mu.removeEventListener("test",m,Q)}catch(P){}return D}();var iq9=vk_("AnimationEnd"),UD=vk_("TransitionEnd");g.y=Hu.prototype;g.y.getHeight=function(){return this.bottom-this.top};
g.y.clone=function(){return new Hu(this.top,this.right,this.bottom,this.left)};
g.y.contains=function(D){return this&&D?D instanceof Hu?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1};
g.y.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.y.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.y.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.y.scale=function(D,Q){Q=typeof Q==="number"?Q:D;this.left*=D;this.right*=D;this.top*=Q;this.bottom*=Q;return this};g.y=g.ee.prototype;g.y.clone=function(){return new g.ee(this.left,this.top,this.width,this.height)};
g.y.contains=function(D){return D instanceof g.Yq?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height};
g.y.getSize=function(){return new g.Ay(this.width,this.height)};
g.y.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.y.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.y.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.y.scale=function(D,Q){Q=typeof Q==="number"?Q:D;this.left*=D;this.width*=D;this.top*=Q;this.height*=Q;return this};var YUm={};var SUn=I$(function(){var D=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){D=!0}});
g.Mu.addEventListener("test",null,Q)}catch(m){}return D});rMk.prototype.isVisible=function(){return Wz(YN)===1};var azn=sG(function(D){return typeof D==="number"}),rP=sG(function(D){return typeof D==="string"}),A6m=sG(function(D){return typeof D==="boolean"}),OE=sG(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),Vqr=sG(function(D){return typeof D==="function"}),LxQ=sG(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var cMk={XBW:"allow-forms",M1O:"allow-modals",EPy:"allow-orientation-lock",fwF:"allow-pointer-lock",FDO:"allow-popups",oPF:"allow-popups-to-escape-sandbox",yYx:"allow-presentation",j_D:"allow-same-origin",S3x:"allow-scripts",CSF:"allow-top-navigation",Tl0:"allow-top-navigation-by-user-activation"},P7_=I$(function(){return DDh()});var s2_=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");bF.prototype.AD=function(D,Q,m){D=D+"//"+Q+m;var P=txm(this)-m.length;if(P<0)return"";this.S.sort(function(b,q){return b-q});
m=null;Q="";for(var W=0;W<this.S.length;W++)for(var L=this.S[W],u=this.C[L],t=0;t<u.length;t++){if(!P){m=m==null?L:m;break}var z=dD7(u[t],this.T,",$");if(z){z=Q+z;if(P>=z.length){P-=z.length;D+=z;Q=this.T;break}m=m==null?L:m}}P="";m!=null&&(P=""+Q+"trn="+m);return D+P};Zr.prototype.setInterval=function(D,Q){return kZ.setInterval(D,Q)};
Zr.prototype.clearInterval=function(D){kZ.clearInterval(D)};
Zr.prototype.setTimeout=function(D,Q){return kZ.setTimeout(D,Q)};
Zr.prototype.clearTimeout=function(D){kZ.clearTimeout(D)};var dS=void 0,cs,Yck=typeof TextDecoder!=="undefined",Fxk,Zgr=typeof String.prototype.isWellFormed==="function",y6h=typeof TextEncoder!=="undefined";var g1k={},wP=null,BCk=a$||g.d9||typeof g.Mu.btoa=="function";var j2h=typeof Uint8Array!=="undefined",Iz7=!g.tv&&typeof btoa==="function",Ru9=/[-_.]/g,J67={"-":"+",_:"/",".":"="},Ji={};kz.prototype.isEmpty=function(){return this.S==null};
kz.prototype.sizeBytes=function(){var D=Ir(this);return D?D.length:0};
var Kx$;var $Dk=void 0;var jU=typeof Symbol==="function"&&typeof Symbol()==="symbol",uuT=Kk("jas",void 0,!0),fB=Kk(void 0,"1oa"),l2=Kk(void 0,Symbol()),dDT=Kk(void 0,"0ub"),qc$=Kk(void 0,"0ubs"),qxw=Kk(void 0,"0ubsb"),hs_=Kk(void 0,"0actk"),we=Kk("m_m","wpx",!0),f_6=Kk(void 0,"vps"),tx4=Kk();Math.max.apply(Math,g.on(Object.values({BFh:1,hKc:2,gSW:4,STc:8,MRh:16,Xi0:32,K8W:64,ut9:128,d5W:256,vuz:512,gNc:1024,JdO:2048,Mgz:4096})));var v1j={vA:{value:0,configurable:!0,writable:!0,enumerable:!1}},euP=Object.defineProperties,$z=jU?uuT:"vA",mM,zuv=[];vz(zuv,7);mM=Object.freeze(zuv);var k2={},Yz={},l_h=Object.freeze({}),pk={};var GQ=typeof g.Mu.BigInt==="function"&&typeof g.Mu.BigInt(0)==="bigint";var ed=sG(function(D){return GQ?D>=bgQ&&D<=qqP:D[0]==="-"?pK7(D,C7V):pK7(D,o14)}),C7V=Number.MIN_SAFE_INTEGER.toString(),bgQ=GQ?BigInt(Number.MIN_SAFE_INTEGER):void 0,o14=Number.MAX_SAFE_INTEGER.toString(),qqP=GQ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var jGh=typeof Uint8Array.prototype.slice==="function",cz=0,D0=0,CXw;var NI=typeof BigInt==="function"?BigInt.asIntN:void 0,Lmr=typeof BigInt==="function"?BigInt.asUintN:void 0,hW=Number.isSafeInteger,tW=Number.isFinite,nI=Math.trunc,Grk=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var VZ4={};var fz4={WOz:!0};var Hp;var Nhk,yy6;var Utr=M5(0),lZ={};e3.prototype.init=function(D,Q,m,P){var W=P===void 0?{}:P;P=W.cT===void 0?!1:W.cT;W=W.Yh===void 0?!1:W.Yh;this.cT=P;this.Yh=W;D&&(D=$p(D,this.Yh),this.C=D.buffer,this.J=D.S,this.B=Q||0,this.T=m!==void 0?this.B+m:this.C.length,this.S=this.B)};
e3.prototype.free=function(){this.clear();XC.length<100&&XC.push(this)};
e3.prototype.clear=function(){this.C=null;this.J=!1;this.S=this.T=this.B=0;this.cT=!1};
e3.prototype.reset=function(){this.S=this.B};
var XC=[];S3.prototype.free=function(){this.S.clear();this.C=this.T=-1;rx.length<100&&rx.push(this)};
S3.prototype.reset=function(){this.S.reset();this.B=this.S.S;this.C=this.T=-1};
var rx=[];var Ayh,xtr;qU.prototype.length=function(){return this.S.length};
qU.prototype.end=function(){var D=this.S;this.S=[];return D};var Te=Z$(),VxT=Z$(),NCV=Z$(),y6P=Z$(),ZgV=Z$(),FxN=Z$(),TC$=Z$(),huU=Z$(),n1P=Z$(),E14=Z$(),g1N=Z$();FJ.prototype.toJSON=function(){return ON(this)};
FJ.prototype.R_=function(D){return JSON.stringify(ON(this,D))};
FJ.prototype.clone=function(){var D=this.SJ,Q=D[$z]|0;return pI(this,D,Q)?x2(this,D,!0):new this.constructor(AW(D,Q,!1))};
FJ.prototype[we]=k2;FJ.prototype.toString=function(){return this.SJ.toString()};var PX_=nm(function(D,Q,m,P,W){if(D.C!==2)return!1;MX(D,FC(Q,P,m),W);return!0},mik),WOr=nm(function(D,Q,m,P,W){if(D.C!==2)return!1;
MX(D,FC(Q,P,m),W);return!0},mik),U8=Symbol(),km=Symbol(),IR=Symbol(),teh=Symbol(),LO$=Symbol(),E8,gS;var BCN=aR(function(D,Q,m){if(D.C!==1)return!1;pm(Q,m,pB(D.S));return!0},XJ,n1P),wK4=aR(function(D,Q,m){if(D.C!==1)return!1;
D=pB(D.S);pm(Q,m,D===0?void 0:D);return!0},XJ,n1P),krP=aR(function(D,Q,m,P){if(D.C!==1)return!1;
CB(Q,m,P,pB(D.S));return!0},XJ,n1P),J6$=aR(function(D,Q,m){if(D.C!==0)return!1;
pm(Q,m,Ob(D.S));return!0},St,TC$),lzT=aR(function(D,Q,m){if(D.C!==0)return!1;
D=Ob(D.S);pm(Q,m,D===0?void 0:D);return!0},St,TC$),IzT=aR(function(D,Q,m,P){if(D.C!==0)return!1;
CB(Q,m,P,Ob(D.S));return!0},St,TC$),RuV=aR(function(D,Q,m){if(D.C!==0)return!1;
pm(Q,m,Yp(D.S));return!0},rS,y6P),UDk=aR(function(D,Q,m){if(D.C!==0)return!1;
D=Yp(D.S);pm(Q,m,D===0?void 0:D);return!0},rS,y6P),HgP=aR(function(D,Q,m,P){if(D.C!==0)return!1;
CB(Q,m,P,Yp(D.S));return!0},rS,y6P),Kx2=aR(function(D,Q,m){if(D.C!==1)return!1;
pm(Q,m,Au(D.S));return!0},function(D,Q,m){cyh(D,m,u47(Q))},huU),j2P=Ar(function(D,Q,m){if(D.C!==1&&D.C!==2)return!1;
Q=dx(Q,Q[$z]|0,m);if(D.C==2)for(m=Yp(D.S)>>>0,m=D.S.S+m;D.S.S<m;)Q.push(Au(D.S));else Q.push(Au(D.S));return!0},function(D,Q,m){Q=$m(u47,Q,!1);
if(Q!=null)for(var P=0;P<Q.length;P++)cyh(D,m,Q[P])},huU),$DN=aR(function(D,Q,m){if(D.C!==5)return!1;
pm(Q,m,at(D.S));return!0},function(D,Q,m){Q=CI(Q);
Q!=null&&(NU(D,m,5),fm(D.S,Q))},FxN),euk=aR(function(D,Q,m){if(D.C!==0)return!1;
pm(Q,m,xp(D.S));return!0},oZw,VxT),v1h=aR(function(D,Q,m,P){if(D.C!==0)return!1;
CB(Q,m,P,xp(D.S));return!0},oZw,VxT),mg=aR(function(D,Q,m){if(D.C!==2)return!1;
pm(Q,m,tr(D));return!0},fq_,NCV),Ogk=Ar(function(D,Q,m){if(D.C!==2)return!1;
D=tr(D);dx(Q,Q[$z]|0,m).push(D);return!0},function(D,Q,m){Q=$m(ge,Q,!0);
if(Q!=null)for(var P=0;P<Q.length;P++){var W=D,L=m,u=Q[P];u!=null&&yK(W,L,TC7(u))}},NCV),Yq4=aR(function(D,Q,m,P){if(D.C!==2)return!1;
CB(Q,m,P,tr(D));return!0},fq_,NCV),Pw,Ww=void 0;
Ww=Ww===void 0?Te:Ww;Pw=new hr(function(D,Q,m,P,W){if(D.C!==2)return!1;P=a7(void 0,P,!0);dx(Q,Q[$z]|0,m).push(P);MX(D,P,W);return!0},function(D,Q,m,P,W){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)Ve_(D,Q[L],m,P,W)},Ww);
var il=nm(function(D,Q,m,P,W,L){if(D.C!==2)return!1;var u=Q[$z]|0;bZ(Q,u,L,m,xz(u));Q=FC(Q,P,m);MX(D,Q,W);return!0},Ve_),az4=aR(function(D,Q,m){if(D.C!==2)return!1;
pm(Q,m,a_m(D));return!0},function(D,Q,m){Q=dtk(Q);
Q!=null&&yK(D,m,$p(Q,!0).buffer)},E14),A64=Ar(function(D,Q,m){if(D.C!==2)return!1;
D=a_m(D);dx(Q,Q[$z]|0,m).push(D);return!0},function(D,Q,m){Q=$m(dtk,Q,!1);
if(Q!=null)for(var P=0;P<Q.length;P++){var W=D,L=m,u=Q[P];u!=null&&yK(W,L,$p(u,!0).buffer)}},E14),sa=aR(function(D,Q,m){if(D.C!==0)return!1;
pm(Q,m,Yp(D.S)>>>0);return!0},function(D,Q,m){Q=CI(Q);
Q!=null&&Q!=null&&(NU(D,m,0),oR(D.S,Q))},ZgV),Lq=aR(function(D,Q,m){if(D.C!==0)return!1;
pm(Q,m,Yp(D.S));return!0},function(D,Q,m){Q=qI(Q);
Q!=null&&(Q=parseInt(Q,10),NU(D,m,0),Sc9(D.S,Q))},g1N);ytw.prototype.register=function(){jZ(this)};g.Z(cc,FJ);cc.prototype.T=FO9([0,wK4,lzT,-2,UDk]);var wu6={v5v:1,pV:2,ZZc:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Jtm.prototype.yb=function(D){if(typeof D==="string"&&D.length!=0){var Q=this.vn;if(Q.C){D=D.split("&");for(var m=D.length-1;m>=0;m--){var P=D[m].split("="),W=decodeURIComponent(P[0]);P.length>1?(P=decodeURIComponent(P[1]),P=/^[0-9]+$/g.exec(P)?parseInt(P,10):P):P=1;(W=Q.S[W])&&W.T(P)}}}};var ul=null;var iY=g.Mu.performance,pK$=!!(iY&&iY.mark&&iY.measure&&iY.clearMarks),P9=I$(function(){var D;if(D=pK$){var Q=Q===void 0?window:Q;if(ul===null){ul="";try{D="";try{D=Q.top.location.hash}catch(P){D=Q.location.hash}if(D){var m=D.match(/\bdeid=([\d,]+)/);ul=m?m[1]:""}}catch(P){}}Q=ul;D=!!Q.indexOf&&Q.indexOf("1337")>=0}return D});
W9.prototype.disable=function(){this.S=!1;this.events!==this.C.google_js_reporting_queue&&(P9()&&g.S2(this.events,KOh),this.events.length=0)};
W9.prototype.start=function(D,Q){if(!this.S)return null;var m=Ui_()||RM7();D=new Ha6(D,Q,m);Q="goog_"+D.label+"_"+D.uniqueId+"_start";iY&&P9()&&iY.mark(Q);return D};
W9.prototype.end=function(D){if(this.S&&typeof D.value==="number"){var Q=Ui_()||RM7();D.duration=Q-D.value;Q="goog_"+D.label+"_"+D.uniqueId+"_end";iY&&P9()&&iY.mark(Q);!this.S||this.events.length>2048||this.events.push(D)}};var j$6=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Nc=/#|$/,aqP=/[?&]($|#)/;pum.prototype.w7=function(D,Q,m,P,W){W=W||this.RS;try{var L=new bF;L.S.push(1);L.C[1]=q5("context",D);Q.error&&Q.meta&&Q.id||(Q=new E3(gz(Q)));if(Q.msg){var u=Q.msg.substring(0,512);L.S.push(2);L.C[2]=q5("msg",u)}var t=Q.meta||{};if(this.KW)try{this.KW(t)}catch(V){}if(P)try{P(t)}catch(V){}P=[t];L.S.push(3);L.C[3]=P;var z=uu7();if(z.C){var b=z.C.url||"";L.S.push(4);L.C[4]=q5("top",b)}var q={url:z.S.url||""};if(z.S.url){var C=g.LG(z.S.url);var f=s3(C[1],null,C[3],C[4])}else f="";b=[q,{url:f}];L.S.push(5);
L.C[5]=b;lq9(this.S,W,L,m)}catch(V){try{lq9(this.S,W,{context:"ecmserr",rctx:D,msg:gz(V),url:z&&z.S.url},m)}catch(N){}}return this.dW};
g.Z(E3,Iqm);var ho,nG,T2=new W9;ho=new function(){var D="https:";kZ&&kZ.location&&kZ.location.protocol==="http:"&&(D="http:");this.C=D;this.S=.01};
nG=new pum;kZ&&kZ.document&&(kZ.document.readyState=="complete"?Xum():T2.S&&Pz(kZ,"load",function(){Xum()}));var GH9=Date.now(),Rz=-1,lY=-1,st6,U3=-1,Iz=!1;H9.prototype.equals=function(D,Q){return!!D&&(!(Q===void 0?0:Q)||this.volume==D.volume)&&this.T==D.T&&je(this.S,D.S)&&!0};KG.prototype.nj=function(){return this.U};
KG.prototype.equals=function(D,Q){return this.B.equals(D.B,Q===void 0?!1:Q)&&this.U==D.U&&je(this.T,D.T)&&je(this.N,D.N)&&this.S==D.S&&this.J==D.J&&this.C==D.C&&this.Z==D.Z};var xDP={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},A0={AB:"start",R7:"firstquartile",JB:"midpoint",Wb:"thirdquartile",COMPLETE:"complete",ERROR:"error",uF:"metric",PAUSE:"pause",zl:"resume",LV:"skip",Pb:"viewable_impression",VC:"mute",iF:"unmute",K7:"fullscreen",BV:"exitfullscreen",jn:"bufferstart",oJ:"bufferfinish",DU:"fully_viewable_audible_half_duration_impression",Od:"measurable_impression",ZN:"abandon",g9:"engagedview",n7:"impression",T3:"creativeview",LOADED:"loaded",
xKx:"progress",CLOSE:"close",BTh:"collapse",hjh:"overlay_resize",B30:"overlay_unmeasurable_impression",RjD:"overlay_unviewable_impression",DKF:"overlay_viewable_immediate_impression",KZW:"overlay_viewable_end_of_session_impression",d9:"custom_metric_viewable",Ga:"audio_audible",XU:"audio_measurable",s6:"audio_impression"},Vtu="start firstquartile midpoint thirdquartile resume loaded".split(" "),NSr=["start","firstquartile","midpoint","thirdquartile"],uCj=["abandon"],zw={UNKNOWN:-1,AB:0,R7:1,JB:2,
Wb:3,COMPLETE:4,uF:5,PAUSE:6,zl:7,LV:8,Pb:9,VC:10,iF:11,K7:12,BV:13,DU:14,Od:15,ZN:16,g9:17,n7:18,T3:19,LOADED:20,d9:21,jn:22,oJ:23,s6:27,XU:28,Ga:29};var cth={lwq:"addEventListener",RZT:"getMaxSize",KKh:"getScreenSize",D5D:"getState",nN9:"getVersion",WZz:"removeEventListener",RKW:"isViewable"};srP.prototype.update=function(D){D&&D.document&&(this.U=jO(!1,D,this.isMobileDevice),this.S=jO(!0,D,this.isMobileDevice),uFP(this,D),L$P(this,D))};Ao.prototype.cancel=function(){FF().clearTimeout(this.S);this.S=null};
Ao.prototype.schedule=function(){var D=this,Q=FF(),m=Qv().S.S;this.S=Q.setTimeout(Db(m,wz(143,function(){D.C++;D.T.sample()})),Me$())};g.y=pG.prototype;g.y.cN=function(){return!1};
g.y.initialize=function(){return this.isInitialized=!0};
g.y.W3=function(){return this.S.t0};
g.y.P6=function(){return this.S.TO};
g.y.fail=function(D,Q){if(!this.TO||(Q===void 0?0:Q))this.TO=!0,this.t0=D,this.Z=0,this.S!=this||XA(this)};
g.y.getName=function(){return this.S.x9};
g.y.e0=function(){return this.S.WU()};
g.y.WU=function(){return{}};
g.y.x$=function(){return this.S.Z};
g.y.Vm=function(){var D=O3();D.S=jO(!0,this.T,D.isMobileDevice)};
g.y.wA=function(){L$P(O3(),this.T)};
g.y.jA=function(){return this.B.S};
g.y.sample=function(){};
g.y.isActive=function(){return this.S.N};
g.y.EF=function(D){var Q=this.S;this.S=D.x$()>=this.Z?D:this;Q!==this.S?(this.N=this.S.N,XA(this)):this.N!==this.S.N&&(this.N=this.S.N,XA(this))};
g.y.Au=function(D){if(D.C===this.S){var Q=!this.B.equals(D,this.j);this.B=D;Q&&z$j(this)}};
g.y.mE=function(){return this.j};
g.y.dispose=function(){this.QF=!0};
g.y.VF=function(){return this.QF};g.y=SO.prototype;g.y.observe=function(){return!0};
g.y.unobserve=function(){};
g.y.SZ=function(D){this.J=D};
g.y.dispose=function(){if(!this.VF()){var D=this.C;g.hM(D.J,this);D.j&&this.mE()&&tUw(D);this.unobserve();this.Kh=!0}};
g.y.VF=function(){return this.Kh};
g.y.e0=function(){return this.C.e0()};
g.y.x$=function(){return this.C.x$()};
g.y.W3=function(){return this.C.W3()};
g.y.P6=function(){return this.C.P6()};
g.y.EF=function(){};
g.y.Au=function(){this.ju()};
g.y.mE=function(){return this.QF};g.y=rz.prototype;g.y.x$=function(){return this.S.x$()};
g.y.W3=function(){return this.S.W3()};
g.y.P6=function(){return this.S.P6()};
g.y.create=function(D,Q,m){var P=null;this.S&&(P=this.Cr(D,Q,m),xN(this.S,P));return P};
g.y.xK=function(){return this.A2()};
g.y.A2=function(){return!1};
g.y.init=function(D){return this.S.initialize()?(xN(this.S,this),this.B=D,!0):!1};
g.y.EF=function(D){D.x$()==0&&this.B(D.W3(),this)};
g.y.Au=function(){};
g.y.mE=function(){return!1};
g.y.dispose=function(){this.J=!0};
g.y.VF=function(){return this.J};
g.y.e0=function(){return{}};G2.prototype.add=function(D,Q,m){++this.T;D=new qG$(D,Q,m);this.S.push(new qG$(D.C,D.S,D.T+this.T/4096));this.C=!0;return this};NPP.prototype.toString=function(){var D="//pagead2.googlesyndication.com//pagead/gen_204",Q=c9(this.S);Q.length>0&&(D+="?"+Q);return D};g.v.prototype.Pj=!1;g.v.prototype.VF=function(){return this.Pj};
g.v.prototype.dispose=function(){this.Pj||(this.Pj=!0,this.Bq())};
g.v.prototype[Symbol.dispose]=function(){this.dispose()};
g.v.prototype.addOnDisposeCallback=function(D,Q){this.Pj?Q!==void 0?D.call(Q):D():(this.VR||(this.VR=[]),Q&&(D=D.bind(Q)),this.VR.push(D))};
g.v.prototype.Bq=function(){if(this.VR)for(;this.VR.length;)this.VR.shift()()};var XKk=[0,J6$,$DN,-1];mG.prototype.update=function(D,Q,m){D&&(this.S+=Q,this.C+=Q,this.B+=Q,this.T=Math.max(this.T,this.B));if(m===void 0?!D:m)this.B=0};var h$j=[1,.75,.5,.3,0];P3.prototype.update=function(D,Q,m,P,W,L){L=L===void 0?!0:L;Q=W?Math.min(D,Q):Q;for(W=0;W<this.C.length;W++){var u=this.C[W],t=Q>0&&Q>=u;u=!(D>0&&D>=u)||m;this.S[W].update(L&&t,P,!L||u)}};t0.prototype.update=function(D,Q,m,P){this.U=this.U!=-1?Math.min(this.U,Q.i7):Q.i7;this.Iy=Math.max(this.Iy,Q.i7);this.Kh=this.Kh!=-1?Math.min(this.Kh,Q.Xt):Q.Xt;this.t0=Math.max(this.t0,Q.Xt);this.oy.update(Q.Xt,m.Xt,Q.S,D,P);this.u0+=D;Q.i7===0&&(this.x9+=D);this.C.update(Q.i7,m.i7,Q.S,D,P);m=P||m.XX!=Q.XX?m.isVisible()&&Q.isVisible():m.isVisible();Q=!Q.isVisible()||Q.S;this.Y9.update(m,D,Q)};
t0.prototype.Y$=function(){return this.Y9.T>=this.XT};if(YN&&YN.URL){var SqV=YN.URL,r6U;a:{if(SqV){var GrN=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var d1=GrN.exec(decodeURIComponent(SqV));if(d1){r6U=d1[1]&&d1[1].length>1?d1[1].substring(1):"true";break a}}catch(D){}}r6U=""}nG.dW=!(r6U.length>0)};var Mxh=new Hu(0,0,0,0);var lrP=new Hu(0,0,0,0);g.Z(oM,g.v);g.y=oM.prototype;
g.y.Bq=function(){if(this.bW.S){if(this.B0.lf){var D=this.bW.S;typeof D.removeEventListener==="function"&&D.removeEventListener("mouseover",this.B0.lf,m$());this.B0.lf=null}this.B0.W8&&(D=this.bW.S,typeof D.removeEventListener==="function"&&D.removeEventListener("mouseout",this.B0.W8,m$()),this.B0.W8=null)}this.RX&&this.RX.dispose();this.Z$&&this.Z$.dispose();delete this.tb;delete this.xj;delete this.Kt;delete this.bW.Tj;delete this.bW.S;delete this.B0;delete this.RX;delete this.Z$;delete this.vn;
g.v.prototype.Bq.call(this)};
g.y.wh=function(){return this.Z$?this.Z$.S:this.position};
g.y.yb=function(D){Qv().yb(D)};
g.y.mE=function(){return!1};
g.y.gK=function(){return new t0};
g.y.kF=function(){return this.tb};
g.y.PU=function(D){return Rtw(this,D,1E4)};
g.y.Lh=function(D,Q,m,P,W,L,u){this.Gu||(this.Mx&&(D=this.eY(D,m,W,u),P=P&&this.Jf.i7>=(this.XX()?.3:.5),this.Xk(L,D,P),this.n0=Q,D.i7>0&&-1===this.ly&&(this.ly=Q),this.Y3==-1&&this.Y$()&&(this.Y3=Q),this.J1==-2&&(this.J1=qd(this.wh())?D.i7:-1),this.Jf=D),this.xj(this))};
g.y.Xk=function(D,Q,m){this.kF().update(D,Q,this.Jf,m)};
g.y.yS=function(){return new GT};
g.y.eY=function(D,Q,m,P){m=this.yS();m.S=Q;Q=FF().C;Q=Wz(YN)===0?-1:Q.isVisible()?0:1;m.C=Q;m.i7=this.YO(D);m.XX=this.XX();m.Xt=P;return m};
g.y.YO=function(D){return this.opacity===0&&Eq(this.vn,"opac")===1?0:D};
g.y.XX=function(){return!1};
g.y.UA=function(){return this.kT||this.Li};
g.y.uT=function(){Jo()};
g.y.ZS=function(){Jo()};
g.y.Ej=function(){return 0};
g.y.Y$=function(){return this.tb.Y$()};
g.y.T_=function(){var D=this.Mx;D=(this.hasCompleted||this.VF())&&!D;var Q=Qv().C!==2||this.Xxh;return this.Gu||Q&&D?2:this.Y$()?4:3};
g.y.Xb=function(){return 0};g.Vj.prototype.next=function(){return g.tS};
g.tS={done:!0,value:void 0};g.Vj.prototype.d3=function(){return this};g.Z(etP,GT);var zF=OIm([void 0,1,2,3,4,8,16]),bl=OIm([void 0,4,8,16]),c6P={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ew("p0",bl),p1:Ew("p1",bl),p2:Ew("p2",bl),p3:Ew("p3",bl),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:nO("mtos1",[0,2,4],!1,bl),mtos2:nO("mtos2",[0,2,4],!1,bl),mtos3:nO("mtos3",[0,2,4],!1,bl),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ew("a0",bl),a1:Ew("a1",bl),a2:Ew("a2",bl),a3:Ew("a3",bl),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:Ew("c0",bl),c1:Ew("c1",bl),c2:Ew("c2",bl),c3:Ew("c3",bl),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ew("qmtos",zF),qnc:Ew("qnc",zF),qmv:Ew("qmv",zF),qnv:Ew("qnv",zF),
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:Ew("ss0",bl),ss1:Ew("ss1",bl),ss2:Ew("ss2",bl),ss3:Ew("ss3",bl),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"},Dt4=Object.assign({},c6P,{avid:Jt("audio"),avas:"avas",vs:"vs"}),QGP={atos:"atos",avt:nO("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(D,Q){return function(m){return m[D]===void 0&&Q!==void 0?Q:m[D]}}("ss",0),
t:"t"};kc.prototype.getValue=function(){return this.C};
kc.prototype.update=function(D,Q){D>=32||(this.S&1<<D&&!Q?this.C&=~(1<<D):this.S&1<<D||!Q||(this.C|=1<<D),this.S|=1<<D)};g.Z(J0,t0);
J0.prototype.update=function(D,Q,m,P){if(!Q.paused){t0.prototype.update.call(this,D,Q,m,P);var W=h0(Q)&&h0(m),L=(P?Math.min(Q.i7,m.i7):m.i7)>=.5;eO(Q.volume)&&(this.B=this.B!=-1?Math.min(this.B,Q.volume):Q.volume,this.N=Math.max(this.N,Q.volume));L&&(this.QF+=D,this.j+=W?D:0);this.S.update(Q.i7,m.i7,Q.S,D,P,W);this.T.update(!0,D);this.J.update(W,D);this.TO.update(m.fullscreen,D);this.jD.update(W&&!L,D);D=Math.floor(Q.mediaTime/1E3);this.wc.update(D,Q.isVisible());this.l0.update(D,Q.i7>=1);this.GO.update(D,
h0(Q))}};Xpw.prototype.C=function(D){this.T||(this.S(D)?(D=im7(this.j,this.B,D),this.J|=D,D=D==0):D=!1,this.T=D)};g.Z(IM,Xpw);IM.prototype.S=function(){return!0};
IM.prototype.N=function(){return!1};
IM.prototype.getId=function(){var D=this,Q=zr(A0,function(m){return m==D.B});
return zw[Q].toString()};
IM.prototype.toString=function(){var D="";this.N()&&(D+="c");this.T&&(D+="s");this.J>0&&(D+=":"+this.J);return this.getId()+D};g.Z(RM,IM);RM.prototype.C=function(D,Q){Q=Q===void 0?null:Q;Q!=null&&this.U.push(Q);IM.prototype.C.call(this,D)};g.Z(Uw,SN6);Uw.prototype.C=function(){return null};
Uw.prototype.T=function(){return[]};g.Z(KO,SO);g.y=KO.prototype;g.y.xO=function(){if(this.element){var D=this.element,Q=this.C.S.T;try{try{var m=PFw(D.getBoundingClientRect())}catch(b){m=new Hu(0,0,0,0)}var P=m.right-m.left,W=m.bottom-m.top,L=pPm(D,Q),u=L.x,t=L.y;var z=new Hu(Math.round(t),Math.round(u+P),Math.round(t+W),Math.round(u))}catch(b){z=Mxh.clone()}this.T=z;this.S=bk4(this,this.T)}};
g.y.gP=function(){this.N=this.C.B.S};
g.y.sO=function(D){var Q=Eq(this.vn,"od")==1;return Jih(D,this.N,this.element,Q)};
g.y.h9=function(){this.timestamp=Jo()};
g.y.ju=function(){this.h9();this.xO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var D=this.element;var Q=new g.Ay(D.videoWidth,D.videoHeight);D=this.S;var m=Ka(D),P=D.getHeight(),W=Q.width;Q=Q.height;W<=0||Q<=0||m<=0||P<=0||(W/=Q,Q=m/P,D=D.clone(),W>Q?(m/=W,P=(P-m)/2,P>0&&(P=D.top+P,D.top=Math.round(P),D.bottom=Math.round(P+m))):(P*=W,m=Math.round((m-P)/2),m>0&&(m=D.left+m,D.left=Math.round(m),D.right=Math.round(m+P))));this.S=D}this.gP();
D=this.S;m=this.N;D=D.left<=m.right&&m.left<=D.right&&D.top<=m.bottom&&m.top<=D.bottom?new Hu(Math.max(D.top,m.top),Math.min(D.right,m.right),Math.min(D.bottom,m.bottom),Math.max(D.left,m.left)):new Hu(0,0,0,0);m=D.top>=D.bottom||D.left>=D.right?new Hu(0,0,0,0):D;D=this.C.B;Q=W=P=0;if((this.S.bottom-this.S.top)*(this.S.right-this.S.left)>0)if(this.sO(m))m=new Hu(0,0,0,0);else{P=O3().B;Q=new Hu(0,P.height,P.width,0);var L;P=CO(m,(L=this.J)!=null?L:this.S);W=CO(m,O3().S);Q=CO(m,Q)}L=m.top>=m.bottom||
m.left>=m.right?new Hu(0,0,0,0):$Z(m,-this.S.left,-this.S.top);az()||(W=P=0);this.j=new KG(D,this.element,this.S,L,P,W,this.timestamp,Q)};
g.y.getName=function(){return this.C.getName()};var mtv=new Hu(0,0,0,0);g.Z(jN,KO);g.y=jN.prototype;g.y.observe=function(){this.B();return!0};
g.y.Au=function(){KO.prototype.ju.call(this)};
g.y.h9=function(){};
g.y.xO=function(){};
g.y.ju=function(){this.B();KO.prototype.ju.call(this)};
g.y.EF=function(D){D=D.isActive();D!==this.Z&&(D?this.B():(O3().S=new Hu(0,0,0,0),this.S=new Hu(0,0,0,0),this.N=new Hu(0,0,0,0),this.timestamp=-1));this.Z=D};var qx={},iBj=(qx.firstquartile=0,qx.midpoint=1,qx.thirdquartile=2,qx.complete=3,qx);g.Z(eN,oM);g.y=eN.prototype;g.y.mE=function(){return!0};
g.y.Xv=function(){return this.mK==2};
g.y.PU=function(D){return Rtw(this,D,Math.max(1E4,this.T/3))};
g.y.Lh=function(D,Q,m,P,W,L,u){var t=this,z=this.U(this)||{};g.VP(z,W);this.T=z.duration||this.T;this.j=z.isVpaid||this.j;this.x9=z.isYouTube||this.x9;FF();this.oy=!1;W=Ggr(this,Q);rWj(this)===1&&(L=W);oM.prototype.Lh.call(this,D,Q,m,P,z,L,u);this.Mr&&this.Mr.T&&g.S2(this.N,function(b){b.C(t)})};
g.y.Xk=function(D,Q,m){oM.prototype.Xk.call(this,D,Q,m);Yc(this).update(D,Q,this.Jf,m);this.XT=h0(this.Jf)&&h0(Q);this.t0==-1&&this.l0&&(this.t0=this.kF().T.S);this.ol.T=0;D=this.Y$();Q.isVisible()&&w0(this.ol,"vs");D&&w0(this.ol,"vw");eO(Q.volume)&&w0(this.ol,"am");h0(Q)?w0(this.ol,"a"):w0(this.ol,"mut");this.g5&&w0(this.ol,"f");Q.C!=-1&&(w0(this.ol,"bm"),Q.C==1&&(w0(this.ol,"b"),h0(Q)&&w0(this.ol,"umutb")));h0(Q)&&Q.isVisible()&&w0(this.ol,"avs");this.XT&&D&&w0(this.ol,"avw");Q.i7>0&&w0(this.ol,
"pv");aM(this,this.kF().T.S,!0)&&w0(this.ol,"gdr");uk(this.kF().C,1)>=2E3&&w0(this.ol,"pmx");this.oy&&w0(this.ol,"tvoff")};
g.y.gK=function(){return new J0};
g.y.kF=function(){return this.tb};
g.y.yS=function(){return new etP};
g.y.eY=function(D,Q,m,P){D=oM.prototype.eY.call(this,D,Q,m,P===void 0?-1:P);D.fullscreen=this.g5;D.paused=this.Xv();D.volume=m.volume;eO(D.volume)||(this.gB++,Q=this.Jf,eO(Q.volume)&&(D.volume=Q.volume));m=m.currentTime;D.mediaTime=m!==void 0&&m>=0?m:-1;return D};
g.y.YO=function(D){return O3(),this.g5?1:oM.prototype.YO.call(this,D)};
g.y.Ej=function(){return 1};
g.y.getDuration=function(){return this.T};
g.y.T_=function(){return this.Gu?2:cWm(this)?5:this.Y$()?4:3};
g.y.Xb=function(){return this.jD?this.kF().J.T>=2E3?4:3:2};
g.y.SZ=function(D){this.Z$&&this.Z$.SZ(D)};var PpN=g.bv();fFu.prototype.reset=function(){this.S=[];this.C=[]};
var r0=yT(fFu);g.Z(c3,rz);g.y=c3.prototype;g.y.getName=function(){return(this.C?this.C:this.S).getName()};
g.y.e0=function(){return(this.C?this.C:this.S).e0()};
g.y.x$=function(){return(this.C?this.C:this.S).x$()};
g.y.init=function(D){var Q=!1;(0,g.S2)(this.T,function(m){m.initialize()&&(Q=!0)});
Q&&(this.B=D,xN(this.S,this));return Q};
g.y.dispose=function(){(0,g.S2)(this.T,function(D){D.dispose()});
rz.prototype.dispose.call(this)};
g.y.xK=function(){return v9(this.T,function(D){return D.cN()})};
g.y.A2=function(){return v9(this.T,function(D){return D.cN()})};
g.y.Cr=function(D,Q,m){return new KO(D,this.S,Q,m)};
g.y.Au=function(D){this.C=D.C};var Epr={threshold:[0,.3,.5,.75,1]};g.Z(D3,KO);g.y=D3.prototype;g.y.observe=function(){var D=this;this.Iy||(this.Iy=Jo());if(rt$(298,function(){return gp_(D)}))return!0;
this.C.fail("msf");return!1};
g.y.unobserve=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.U&&(this.U.disconnect(),this.U=null)}catch(D){}};
g.y.ju=function(){var D=QO(this);D.length>0&&mJ(this,D);KO.prototype.ju.call(this)};
g.y.xO=function(){};
g.y.sO=function(){return!1};
g.y.gP=function(){};
g.y.e0=function(){var D={};return Object.assign(this.C.e0(),(D.niot_obs=this.Iy,D.niot_cbk=this.TO,D))};
g.y.getName=function(){return"nio"};g.Z(Pm,rz);Pm.prototype.getName=function(){return"nio"};
Pm.prototype.A2=function(){return!O3().C&&this.S.S.T.IntersectionObserver!=null};
Pm.prototype.Cr=function(D,Q,m){return new D3(D,this.S,Q,m)};g.Z(Wm,pG);Wm.prototype.jA=function(){return O3().S};
Wm.prototype.cN=function(){var D=ws4();this.Z!==D&&(this.S!=this&&D>this.S.Z&&(this.S=this,XA(this)),this.Z=D);return D==2};id.prototype.sample=function(){ud(this,G9(),!1)};
id.prototype.B=function(){var D=az(),Q=Jo();D?(Iz||(Rz=Q,g.S2(r0.S,function(m){var P=m.kF();P.k9=lk(P,Q,m.mK!=1)})),Iz=!0):(this.U=Rxm(this,Q),Iz=!1,st6=Q,g.S2(r0.S,function(m){m.Mx&&(m.kF().Z=Q)}));
ud(this,G9(),!D)};
var sF=yT(id);var HB_=null,ld="",Jz=!1;var $Xk=jtu().rY,tz=jtu().Lc;var OBr={SZW:"visible",xbF:"audible",wrc:"time",xO0:"timetype"},YbP={visible:function(D){return/^(100|[0-9]{1,2})$/.test(D)},
audible:function(D){return D=="0"||D=="1"},
timetype:function(D){return D=="mtos"||D=="tos"},
time:function(D){return/^(100|[0-9]{1,2})%$/.test(D)||/^([0-9])+ms$/.test(D)}};
vpm.prototype.setTime=function(D,Q,m){Q=="ms"?(this.T=D,this.B=-1):(this.T=-1,this.B=D);this.J=m===void 0?"tos":m;return this};g.Z(CM,IM);CM.prototype.getId=function(){return this.U};
CM.prototype.N=function(){return!0};
CM.prototype.S=function(D){var Q=D.kF(),m=D.getDuration();return v9(this.Z,function(P){if(P.S!=void 0)var W=Auj(P,Q);else b:{switch(P.J){case "mtos":W=P.C?Q.J.T:Q.T.S;break b;case "tos":W=P.C?Q.J.S:Q.T.S;break b}W=0}W==0?P=!1:(P=P.T!=-1?P.T:m!==void 0&&m>0?P.B*m:-1,P=P!=-1&&W>=P);return P})};g.Z(oT,a0_);oT.prototype.S=function(D){var Q=new YNh;Q.S=B3(D,c6P);Q.C=B3(D,QGP);return Q};g.Z(fM,IM);fM.prototype.S=function(D){return cWm(D)};g.Z(VO,SN6);g.Z(N8,IM);N8.prototype.S=function(D){return D.kF().Y$()};g.Z(yO,RM);yO.prototype.S=function(D){var Q=g.FK(this.U,Eq(Qv().vn,"ovms"));return!D.Gu&&(D.mK!=0||Q)};g.Z(Z3,VO);Z3.prototype.C=function(){return new yO(this.S)};
Z3.prototype.T=function(){return[new N8("viewable_impression",this.S),new fM(this.S)]};g.Z(F3,jN);F3.prototype.B=function(){var D=g.Q4("ima.admob.getViewability"),Q=Eq(this.vn,"queryid");typeof D==="function"&&Q&&D(Q)};
F3.prototype.getName=function(){return"gsv"};g.Z(Tw,rz);Tw.prototype.getName=function(){return"gsv"};
Tw.prototype.A2=function(){var D=O3();Qv();return D.C&&!1};
Tw.prototype.Cr=function(D,Q,m){return new F3(this.S,Q,m)};g.Z(hz,jN);hz.prototype.B=function(){var D=this,Q=g.Q4("ima.bridge.getNativeViewability"),m=Eq(this.vn,"queryid");typeof Q==="function"&&m&&Q(m,function(P){g.b7(P)&&D.U++;var W=P.opt_nativeViewVisibleBounds||{},L=P.opt_nativeViewHidden;D.S=W$m(P.opt_nativeViewBounds||{});var u=D.C.B;u.S=L?mtv.clone():W$m(W);D.timestamp=P.opt_nativeTime||-1;O3().S=u.S;P=P.opt_nativeVolume;P!==void 0&&(u.volume=P)})};
hz.prototype.getName=function(){return"nis"};g.Z(nM,rz);nM.prototype.getName=function(){return"nis"};
nM.prototype.A2=function(){var D=O3();Qv();return D.C&&!1};
nM.prototype.Cr=function(D,Q,m){return new hz(this.S,Q,m)};g.Z(EF,pG);g.y=EF.prototype;g.y.cN=function(){return this.C.Fv!=null};
g.y.WU=function(){var D={};this.wc&&(D.mraid=this.wc);this.Kh&&(D.mlc=1);D.mtop=this.C.bdF;this.U&&(D.mse=this.U);this.u0&&(D.msc=1);D.mcp=this.C.compatibility;return D};
g.y.cL=function(D){var Q=g.e$.apply(1,arguments);try{return this.C.Fv[D].apply(this.C.Fv,Q)}catch(m){kN(538,m,.01,function(P){P.method=D})}};
g.y.initialize=function(){var D=this;if(this.isInitialized)return!this.P6();this.isInitialized=!0;if(this.C.compatibility===2)return this.U="ng",this.fail("w"),!1;if(this.C.compatibility===1)return this.U="mm",this.fail("w"),!1;O3().Z=!0;this.T.document.readyState&&this.T.document.readyState=="complete"?Sbk(this):bk(this.T,"load",function(){FF().setTimeout(wz(292,function(){return Sbk(D)}),100)},292);
return!0};
g.y.Vm=function(){var D=O3(),Q=DU4(this,"getMaxSize");D.S=new Hu(0,Q.width,Q.height,0)};
g.y.wA=function(){O3().B=DU4(this,"getScreenSize")};
g.y.dispose=function(){GEP(this);pG.prototype.dispose.call(this)};var EZm=new function(D,Q){this.key=D;this.defaultValue=Q===void 0?!1:Q;this.valueType="boolean"}("45378663");g.y=Bm.prototype;g.y.vl=function(D){fO(D,!1);ZBm(D)};
g.y.QO=function(){};
g.y.UU=function(D,Q,m,P){var W=this;D=new eN(kZ,D,m?Q:-1,7,this.yK(),this.Z5());D.Bc=P;jn7(D.vn);ng(D.vn,"queryid",D.Bc);D.yb("");Kzn(D,function(){return W.Ks.apply(W,g.on(g.e$.apply(0,arguments)))},function(){return W.yG.apply(W,g.on(g.e$.apply(0,arguments)))});
(P=yT(Md).S)&&I0$(D,P);this.T&&(D.SZ(this.T),this.T=null);D.bW.Tj&&yT(kE4);return D};
g.y.EF=function(D){switch(D.x$()){case 0:if(D=yT(Md).S)D=D.S,g.hM(D.J,this),D.j&&this.mE()&&tUw(D);ki();break;case 2:LM()}};
g.y.Au=function(){};
g.y.mE=function(){return!1};
g.y.yG=function(D,Q){D.Gu=!0;switch(D.Ej()){case 1:sR$(D,Q);break;case 2:this.Ra(D)}};
g.y.BA=function(D){var Q=D.U(D);Q&&(Q=Q.volume,D.jD=eO(Q)&&Q>0);mX7(D,0);return pO(D,"start",az())};
g.y.Fg=function(D,Q,m){ud(sF,[D],!az());return this.FI(D,Q,m)};
g.y.FI=function(D,Q,m){return pO(D,m,az())};
g.y.TC=function(D){return ef(D,"firstquartile",1)};
g.y.Iu=function(D){D.l0=!0;return ef(D,"midpoint",2)};
g.y.Ru=function(D){return ef(D,"thirdquartile",3)};
g.y.ji=function(D){var Q=ef(D,"complete",4);v3(D);return Q};
g.y.SO=function(D){D.mK=3;return pO(D,"error",az())};
g.y.Lw=function(D,Q,m){Q=az();if(D.Xv()&&!Q){var P=D.kF(),W=Jo();P.Z=W}ud(sF,[D],!Q);D.Xv()&&(D.mK=1);return pO(D,m,Q)};
g.y.hQ=function(D,Q){Q=this.Fg(D,Q||{},"skip");v3(D);return Q};
g.y.d4=function(D,Q){fO(D,!0);return this.Fg(D,Q||{},"fullscreen")};
g.y.Ci=function(D,Q){fO(D,!1);return this.Fg(D,Q||{},"exitfullscreen")};
g.y.a5=function(D,Q,m){Q=D.kF();var P=Jo();Q.k9=lk(Q,P,D.mK!=1);ud(sF,[D],!az());D.mK==1&&(D.mK=2);return pO(D,m,az())};
g.y.g4=function(D){ud(sF,[D],!az());return D.C()};
g.y.xi=function(D){ud(sF,[D],!az());this.eV(D);v3(D);return D.C()};
g.y.Ks=function(){};
g.y.Ra=function(){};
g.y.eV=function(){};
g.y.Ug=function(){};
g.y.jY=function(){};
g.y.Z5=function(){this.S||(this.S=this.jY());return this.S==null?new Uw:new Z3(this.S)};
g.y.yK=function(){return new oT};g.Z(vm,IM);vm.prototype.S=function(D){return D.Xb()==4};g.Z(OF,RM);OF.prototype.S=function(D){D=D.Xb();return D==3||D==4};g.Z(Yi,VO);Yi.prototype.C=function(){return new OF(this.S)};
Yi.prototype.T=function(){return[new vm(this.S)]};g.Z(aT,a0_);aT.prototype.S=function(D){D&&(D.e===28&&(D=Object.assign({},D,{avas:3})),D.vs===4||D.vs===5)&&(D=Object.assign({},D,{vs:3}));var Q=new YNh;Q.S=B3(D,Dt4);Q.C=B3(D,QGP);return Q};tt_.prototype.C=function(){return g.Q4(this.S)};g.Z(Az,Bm);g.y=Az.prototype;g.y.QO=function(D,Q){var m=this,P=yT(Md);if(P.S!=null)switch(P.S.getName()){case "nis":var W=Cxr(this,D,Q);break;case "gsv":W=q8n(this,D,Q);break;case "exc":W=omr(this,D)}W||(Q.opt_overlayAdElement?W=void 0:Q.opt_adElement&&(W=uJ7(this,D,Q.opt_adElement,Q.opt_osdId)));W&&W.Ej()==1&&(W.U==g.lX&&(W.U=function(L){return m.Ug(L)}),bmw(this,W,Q));
return W};
g.y.Ug=function(D){D.C=0;D.QF=0;if(D.B=="h"||D.B=="n"){Qv();D.GO&&(Qv(),RT(this)!="h"&&RT(this));var Q=g.Q4("ima.common.getVideoMetadata");if(typeof Q==="function")try{var m=Q(D.Bc)}catch(W){D.C|=4}else D.C|=2}else if(D.B=="b")if(Q=g.Q4("ytads.bulleit.getVideoMetadata"),typeof Q==="function")try{m=Q(D.Bc)}catch(W){D.C|=4}else D.C|=2;else if(D.B=="ml")if(Q=g.Q4("ima.common.getVideoMetadata"),typeof Q==="function")try{m=Q(D.Bc)}catch(W){D.C|=4}else D.C|=2;else D.C|=1;D.C||(m===void 0?D.C|=8:m===null?
D.C|=16:g.b7(m)?D.C|=32:m.errorCode!=null&&(D.QF=m.errorCode,D.C|=64));m==null&&(m={});Q=m;D.Z=0;for(var P in xDP)Q[P]==null&&(D.Z|=xDP[P]);dU7(Q,"currentTime");dU7(Q,"duration");eO(m.volume)&&eO()&&(m.volume*=NaN);return m};
g.y.jY=function(){Qv();RT(this)!="h"&&RT(this);var D=f$7(this);return D!=null?new tt_(D):null};
g.y.Ra=function(D){!D.S&&D.Gu&&$i(this,D,"overlay_unmeasurable_impression")&&(D.S=!0)};
g.y.eV=function(D){D.Ba&&(D.Y$()?$i(this,D,"overlay_viewable_end_of_session_impression"):$i(this,D,"overlay_unviewable_impression"),D.Ba=!1)};
g.y.Ks=function(){};
g.y.UU=function(D,Q,m,P){if(gZ7()){var W=Eq(Qv().vn,"mm"),L={};(W=(L[mK.Y8]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[mK.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[W])&&Zmw(this,W);this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&kN(1044,Error())}D=Bm.prototype.UU.call(this,D,Q,m,P);this.J&&(Q=this.N,D.J==null&&(D.J=new j7m),Q.S[D.Bc]=D.J,D.J.J=PpN);return D};
g.y.vl=function(D){D&&D.Ej()==1&&this.J&&delete this.N.S[D.Bc];return Bm.prototype.vl.call(this,D)};
g.y.Z5=function(){this.S||(this.S=this.jY());return this.S==null?new Uw:this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Yi(this.S):new Z3(this.S)};
g.y.yK=function(){return this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new aT:new oT};
g.y.SZ=function(D,Q,m,P,W){Q=new Hu(m,Q+P,m+W,Q);(D=SN(r0,D))?D.SZ(Q):this.T=Q};
var Wmh=B9(193,TS_,void 0,L_u);g.ch("Goog_AdSense_Lidar_sendVastEvent",Wmh);var i6K=wz(194,function(D,Q){Q=Q===void 0?{}:Q;D=yrw(yT(Az),D,Q);return F_$(D)});
g.ch("Goog_AdSense_Lidar_getViewability",i6K);var sGM=B9(195,function(){return fzn()});
g.ch("Goog_AdSense_Lidar_getUrlSignalsArray",sGM);var LmV=wz(196,function(){return JSON.stringify(fzn())});
g.ch("Goog_AdSense_Lidar_getUrlSignalsList",LmV);var Em6=g.f9(["//ep2.adtrafficquality.google/sodar/",""]),gmP=g.f9(["//tpc.googlesyndication.com/sodar/",""]);g.Z(X3,Error);g.Z(Gw,g.v);Gw.prototype.Ua=function(){return this.wpc.f()};
Gw.prototype.F4=function(D){this.wpc.c(D)};
Gw.prototype.Rv=function(D){return this.wpc.m(Jr_(D))};
Gw.prototype.zU=function(D){return this.wpc.mws(Jr_(D))};
g.Z(Sf,g.v);Sf.prototype.snapshot=function(D){return this.IF.s(Object.assign({},D.z8&&{c:D.z8},D.Ty&&{s:D.Ty},D.h7!==void 0&&{p:D.h7}))};
Sf.prototype.HW=function(D){this.IF.e(D)};
Sf.prototype.e7=function(){return this.IF.l()};g.Z(cm,g.v);cm.prototype.share=function(){if(this.VF())throw Error("E:AD");this.C++;return this};
cm.prototype.dispose=function(){--this.C||g.v.prototype.dispose.call(this)};K_P.prototype.i6=function(D,Q){this.S.i6("/client_streamz/bg/frs",D,Q)};
jRh.prototype.i6=function(D,Q,m,P,W,L){this.S.i6("/client_streamz/bg/wrl",D,Q,m,P,W,L)};
$Ur.prototype.Gi=function(D,Q){this.S.jg("/client_streamz/bg/ec",D,Q)};
e77.prototype.i6=function(D,Q,m){this.S.i6("/client_streamz/bg/el",D,Q,m)};
vm4.prototype.Gi=function(D,Q){this.S.jg("/client_streamz/bg/cec",D,Q)};
OmP.prototype.Gi=function(D,Q){this.S.jg("/client_streamz/bg/po/csc",D,Q)};
Y8P.prototype.Gi=function(D,Q){this.S.jg("/client_streamz/bg/po/ctav",D,Q)};
a$u.prototype.Gi=function(D,Q){this.S.jg("/client_streamz/bg/po/cwsc",D,Q)};g.Z(Ar7,FJ);g.Z(mo,FJ);var tb=[1,2,3];var u4T=[0,tb,Yq4,HgP,v1h];var dtN=[0,Pw,[0,BCN,J6$]];g.Z(PT,FJ);var dI=[1,2,3];var tZV=[0,dI,IzT,krP,il,dtN];g.Z(WT,FJ);var zsN=[0,Pw,u4T,tZV];var b6P=[0,mg];g.Z(iK,FJ);var qc2=[0,mg,-1,euk];var CpV=[0,mg,-1,RuV,euk];g.Z(L1,FJ);var zd$=[1,2,3];var oqN=[0,zd$,il,qc2,il,CpV,il,b6P];g.Z(uK,FJ);uK.prototype.JZ=function(){var D=iZ(this,3,ge,3,!0);Ai(D);return D[void 0]};uK.prototype.T=FO9([0,mg,oqN,Ogk,Pw,zsN,Kx2,j2P]);g.Z(xUm,FJ);g.y=z8.prototype;g.y.isEnabled=function(){if(!g.Mu.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xE:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.y.set=function(D,Q,m){var P=!1;if(typeof m==="object"){var W=m.pOv;P=m.secure||!1;var L=m.domain||void 0;var u=m.path||void 0;var t=m.xE}if(/[;=\s]/.test(D))throw Error('Invalid cookie name "'+D+'"');if(/[;\r\n]/.test(Q))throw Error('Invalid cookie value "'+Q+'"');t===void 0&&(t=-1);m=L?";domain="+L:"";u=u?";path="+u:"";P=P?";secure":"";t=t<0?"":t==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+t*1E3)).toUTCString();this.S.cookie=D+"="+Q+m+u+t+P+(W!=null?";samesite="+
W:"")};
g.y.get=function(D,Q){for(var m=D+"=",P=(this.S.cookie||"").split(";"),W=0,L;W<P.length;W++){L=R2(P[W]);if(L.lastIndexOf(m,0)==0)return L.slice(m.length);if(L==D)return""}return Q};
g.y.remove=function(D,Q,m){var P=this.get(D)!==void 0;this.set(D,"",{xE:0,path:Q,domain:m});return P};
g.y.G8=function(){return bK(this).keys};
g.y.Jp=function(){return bK(this).values};
g.y.isEmpty=function(){return!this.S.cookie};
g.y.clear=function(){for(var D=bK(this).keys,Q=D.length-1;Q>=0;Q--)this.remove(D[Q])};
var ky=new z8(typeof document=="undefined"?null:document);q3.prototype.compress=function(D){var Q,m,P,W;return g.U(function(L){switch(L.C){case 1:return Q=new CompressionStream("gzip"),m=(new Response(Q.readable)).arrayBuffer(),P=Q.writable.getWriter(),g.I(L,P.write((new TextEncoder).encode(D)),2);case 2:return g.I(L,P.close(),3);case 3:return W=Uint8Array,g.I(L,m,4);case 4:return L.return(new W(L.S))}})};
q3.prototype.isSupported=function(D){return D<1024?!1:typeof CompressionStream!=="undefined"};g.Z(C1,FJ);o3.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
o3.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.C=this.S())};
o3.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
o3.prototype.tick=function(){var D=this;if(this.enabled){var Q=Math.max(this.S()-this.C,0);Q<this.intervalMs*.8?this.timer=setTimeout(function(){D.tick()},this.intervalMs-Q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.Z(f1,FJ);g.Z(Vy,FJ);g.Z(N3,FJ);N3.prototype.tq=function(){return Ju(this,1)};g.Z(yy,FJ);g.Z(ZE,FJ);var z_9=MU(ZE);g.Z(T8,FJ);var szj=["platform","platformVersion","architecture","model","uaFullVersion"],FH=new ZE,n1=null;g.Z(Eu,FJ);g.Z(dc9,FJ);g.Z(gI,FJ);g.Z(BT,FJ);BT.prototype.V=function(){var D=this.SJ;return k4P(D,D[$z]|0,dc9,7)!==void 0};
BT.prototype.AA=function(){return TE(this,C1,16)};g.Z(wI,FJ);wI.prototype.fT=function(D){return KB(this,2,D)};Jb.prototype.fT=function(D){this.S.fT(D);return this};
Jb.prototype.build=function(D,Q,m,P,W,L){Q=Q===void 0?0:Q;m=m===void 0?0:m;P=P===void 0?null:P;W=W===void 0?0:W;L=L===void 0?0:L;if(!this.iO){var u=lK(this);var t=new N3;t=KB(t,1,this.C);t=DF(t,2,de(this.isFinal));m=DF(t,3,b2(m>0?m:void 0));m=DF(m,4,b2(W>0?W:void 0));m=DF(m,5,b2(L>0?L:void 0));W=m.SJ;L=W[$z]|0;m=ar(m,L)?m:pI(m,W,L)?x2(m,W):new m.constructor(AW(W,L,!0));nB(u,N3,10,m)}u=this.S.clone();m=Date.now().toString();u=DF(u,4,Tg(m));D=Eb(u,BT,3,D.slice());P&&(u=new f1,P=DF(u,13,b2(P)),u=new Vy,
P=nB(u,f1,2,P),u=new gI,P=nB(u,Vy,1,P),P=KB(P,2,9),nB(D,gI,18,P));Q&&Rt(D,14,Q);return D};g.I3.prototype.C=0;g.I3.prototype.reset=function(){this.S=this.T=this.B;this.C=0};
g.I3.prototype.getValue=function(){return this.T};g.Z(Ge,FJ);var f_v=MU(Ge);g.Z(N9n,FJ);var Cq;Cq=new ytw;g.Z(K1,g.v);g.y=K1.prototype;g.y.Bq=function(){HT(this);this.C.stop();this.wc.stop();g.v.prototype.Bq.call(this)};
g.y.dispatch=function(D){if(D instanceof BT)this.log(D);else try{var Q=new BT,m=D.R_();var P=Ub(Q,8,m);this.log(P)}catch(W){jT(this,4,1)}};
g.y.log=function(D){jT(this,2,1);if(this.u0){D=D.clone();var Q=this.Y9++;D=Rt(D,21,Q);this.componentId&&Ub(D,26,this.componentId);Q=D;var m=MI(Q,1);var P=P===void 0?!1:P;var W=typeof m;P=m==null?m:W==="bigint"?String(NI(64,m)):zg(m)?W==="string"?Vt(m):P?Z0(m):Fr(m):void 0;P==null&&(P=Date.now(),P=Number.isFinite(P)?P.toString():"0",DF(Q,1,Tg(P)));P=MI(Q,15);P!=null&&(typeof P==="bigint"?ed(P)?P=Number(P):(P=NI(64,P),P=ed(P)?Number(P):String(P)):P=zg(P)?typeof P==="number"?Fr(P):Vt(P):void 0);P!=null||
Rt(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),nB(Q,C1,16,P));jT(this,1,1);Q=this.S.length-1E3+1;Q>0&&(this.S.splice(0,Q),this.B+=Q,jT(this,3,Q));this.S.push(D);this.pu||this.C.enabled||this.C.start()}};
g.y.flush=function(D,Q){var m=this;if(this.S.length===0)D&&D();else if(this.t0&&this.TO)this.T.C=3,VO7(this);else{var P=Date.now();if(this.k9>P&&this.QF<P)Q&&Q("throttled");else{this.network&&(typeof this.network.tq==="function"?tOh(this.T,this.network.tq()):this.T.C=0);var W=this.S.length,L=this.T.build(this.S,this.B,this.N,this.sG,this.Kh,this.Iy),u=this.xr();if(u&&this.x9===u)Q&&Q("stale-auth-token");else{this.S=[];this.C.enabled&&this.C.stop();this.B=0;P=L.R_();var t;this.U&&this.U.isSupported(P.length)&&
(t=this.U.compress(P));var z=oNu(this,P,u),b=function(f){m.J.reset();m.C.setInterval(m.J.getValue());if(f){var V=null;try{var N=JSON.stringify(JSON.parse(f.replace(")]}'\n","")));V=f_v(N)}catch(J){}if(V){f=Number(H69(V,1,M5("-1")));f>0&&(m.QF=Date.now(),m.k9=m.QF+f);f=qQ(l2);var h;jU&&f&&((h=V.SJ[f])==null?void 0:h[175237375])!=null&&Hz(dDT,3);a:{var B=B===void 0?!1:B;if(qQ(tx4)&&qQ(l2)&&void 0===tx4){h=V.SJ;f=h[l2];if(!f)break a;if(f=f.e8)try{f(h,175237375,fz4);break a}catch(J){hi(J)}}B&&(B=V.SJ,
(h=qQ(l2))&&h in B&&(B=B[h])&&delete B[175237375])}B=Cq.S?Cq.C(V,Cq.S,175237375,Cq.T):Cq.C(V,175237375,null,Cq.T);if(B=B===null?void 0:B)B=Bs(B,1,-1),B!==-1&&(m.J=new g.I3(B<1?1:B,3E5,.1),m.C.setInterval(m.J.getValue()))}}D&&D();m.N=0},q=function(f,V){var N=hu(L,BT,3);
var h=Number(H69(L,14));g.R3(m.J);m.C.setInterval(m.J.getValue());f===401&&u&&(m.x9=u);h&&(m.B+=h);V===void 0&&(V=m.isRetryable(f));V&&(m.S=N.concat(m.S),m.pu||m.C.enabled||m.C.start());jT(m,7,1);Q&&Q("net-send-failed",f);++m.N},C=function(){m.network&&m.network.send(z,b,q)};
t?t.then(function(f){jT(m,5,W);z.requestHeaders["Content-Encoding"]="gzip";z.requestHeaders["Content-Type"]="application/binary";z.body=f;z.tK=2;C()},function(){jT(m,6,W);
C()}):C()}}}};
g.y.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};$s.prototype.send=function(D,Q,m){var P=this,W,L,u,t,z,b,q,C,f,V;return g.U(function(N){switch(N.C){case 1:return L=(W=P.YA?new AbortController:void 0)?setTimeout(function(){W.abort()},D.timeoutMillis):void 0,g.h4(N,2,3),u=Object.assign({},{method:D.requestType,
headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&W?W.signal:null}),g.I(N,fetch(D.url,u),5);case 5:t=N.S;if(t.status!==200){(z=m)==null||z(t.status);N.Nv(3);break}if((b=Q)==null){N.Nv(7);break}return g.I(N,t.text(),8);case 8:b(N.S);case 7:case 3:g.Rn(N);clearTimeout(L);g.Hh(N,0);break;case 2:q=g.w7(N);switch((C=q)==null?void 0:C.name){case "AbortError":(f=m)==null||f(408);break;default:(V=m)==null||V(400)}N.Nv(3)}})};
$s.prototype.tq=function(){return 4};g.Z(eT,g.v);eT.prototype.D9=function(){this.J=!0;return this};
eT.prototype.build=function(){this.network||(this.network=new $s);var D=new K1({logSource:this.logSource,xr:this.xr?this.xr:WK_,sessionIndex:this.sessionIndex,DJW:this.BZ,iO:this.B,pu:!1,D9:this.J,S4:this.S4,network:this.network});g.O(this,D);if(this.C){var Q=this.C,m=lK(D.T);Ub(m,7,Q)}D.U=new q3;this.componentId&&(D.componentId=this.componentId);this.sG&&(D.sG=this.sG);this.pageId&&(D.pageId=this.pageId);this.S&&((m=this.S)?(D.experimentIds||(D.experimentIds=new C1),Q=D.experimentIds,m=m.R_(),Ub(Q,
4,m)):D.experimentIds&&DF(D.experimentIds,4));this.T&&(D.t0=D.TO);bGn(D.T);this.network.fT&&this.network.fT(this.logSource);this.network.R60&&this.network.R60(D);return D};g.Z(vT,g.v);vT.prototype.flush=function(D){D=D||[];if(D.length){for(var Q=new xUm,m=[],P=0;P<D.length;P++){var W=D[P],L=rrh(W);m.push(L);W.clear()}Eb(Q,uK,1,m);this.S.dispatch(Q);this.S.flush()}};g.y=Ou.prototype;g.y.jB=function(D){var Q=g.e$.apply(1,arguments),m=this.lJ(Q);m?m.push(new Tz7(D)):this.Fr(D,Q)};
g.y.Fr=function(D){this.S.set(this.q2(g.e$.apply(1,arguments)),[new Tz7(D)])};
g.y.lJ=function(){var D=this.q2(g.e$.apply(0,arguments));return this.S.has(D)?this.S.get(D):void 0};
g.y.MC=function(){var D=this.lJ(g.e$.apply(0,arguments));return D&&D.length?D[0]:void 0};
g.y.clear=function(){this.S.clear()};
g.y.q2=function(){var D=g.e$.apply(0,arguments);return D?D.join(","):"key"};g.Z(Ys,Ou);Ys.prototype.T=function(D){var Q=g.e$.apply(1,arguments),m=0,P=this.MC(Q);P&&(m=P.S);this.Fr(m+D,Q)};g.Z(a3,Ou);a3.prototype.i6=function(D){this.jB(D,g.e$.apply(1,arguments))};g.Ab.prototype.stopPropagation=function(){this.C=!0};
g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};g.CV(p1,g.Ab);
p1.prototype.init=function(D,Q){var m=this.type=D.type,P=D.changedTouches&&D.changedTouches.length?D.changedTouches[0]:null;this.target=D.target||D.srcElement;this.currentTarget=Q;Q=D.relatedTarget;Q||(m=="mouseover"?Q=D.fromElement:m=="mouseout"&&(Q=D.toElement));this.relatedTarget=Q;P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=
D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0);this.button=D.button;this.keyCode=D.keyCode||0;this.key=D.key||"";this.charCode=D.charCode||(m=="keypress"?D.keyCode:0);this.ctrlKey=D.ctrlKey;this.altKey=D.altKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pointerId=D.pointerId||0;this.pointerType=D.pointerType;this.state=D.state;this.S=D;D.defaultPrevented&&p1.Rl.preventDefault.call(this)};
p1.prototype.stopPropagation=function(){p1.Rl.stopPropagation.call(this);this.S.stopPropagation?this.S.stopPropagation():this.S.cancelBubble=!0};
p1.prototype.preventDefault=function(){p1.Rl.preventDefault.call(this);var D=this.S;D.preventDefault?D.preventDefault():D.returnValue=!1};var h_6="closure_listenable_"+(Math.random()*1E6|0);var nNP=0;g.y=ST.prototype;g.y.add=function(D,Q,m,P,W){var L=D.toString();D=this.listeners[L];D||(D=this.listeners[L]=[],this.S++);var u=G8(D,Q,P,W);u>-1?(Q=D[u],m||(Q.SN=!1)):(Q=new EN6(Q,this.src,L,!!P,W),Q.SN=m,D.push(Q));return Q};
g.y.remove=function(D,Q,m,P){D=D.toString();if(!(D in this.listeners))return!1;var W=this.listeners[D];Q=G8(W,Q,m,P);return Q>-1?(XH(W[Q]),g.TT(W,Q),W.length==0&&(delete this.listeners[D],this.S--),!0):!1};
g.y.removeAll=function(D){D=D&&D.toString();var Q=0,m;for(m in this.listeners)if(!D||m==D){for(var P=this.listeners[m],W=0;W<P.length;W++)++Q,XH(P[W]);delete this.listeners[m];this.S--}return Q};
g.y.ej=function(D,Q,m,P){D=this.listeners[D.toString()];var W=-1;D&&(W=G8(D,Q,m,P));return W>-1?D[W]:null};
g.y.hasListener=function(D,Q){var m=D!==void 0,P=m?D.toString():"",W=Q!==void 0;return g.QP(this.listeners,function(L){for(var u=0;u<L.length;++u)if(!(m&&L[u].type!=P||W&&L[u].capture!=Q))return!0;return!1})};var mH="closure_lm_"+(Math.random()*1E6|0),WN={},Jok=0,dW="__closure_events_fn_"+(Math.random()*1E9>>>0);g.CV(g.zt,g.v);g.zt.prototype[h_6]=!0;g.y=g.zt.prototype;g.y.addEventListener=function(D,Q,m,P){g.cT(this,D,Q,m,P)};
g.y.removeEventListener=function(D,Q,m,P){Ib9(this,D,Q,m,P)};
g.y.dispatchEvent=function(D){var Q=this.il;if(Q){var m=[];for(var P=1;Q;Q=Q.il)m.push(Q),++P}Q=this.Mn;P=D.type||D;if(typeof D==="string")D=new g.Ab(D,Q);else if(D instanceof g.Ab)D.target=D.target||Q;else{var W=D;D=new g.Ab(P,Q);g.VP(D,W)}W=!0;var L;if(m)for(L=m.length-1;!D.C&&L>=0;L--){var u=D.currentTarget=m[L];W=bQ(u,P,!0,D)&&W}D.C||(u=D.currentTarget=Q,W=bQ(u,P,!0,D)&&W,D.C||(W=bQ(u,P,!1,D)&&W));if(m)for(L=0;!D.C&&L<m.length;L++)u=D.currentTarget=m[L],W=bQ(u,P,!1,D)&&W;return W};
g.y.Bq=function(){g.zt.Rl.Bq.call(this);this.bG&&this.bG.removeAll(void 0);this.il=null};
g.y.listen=function(D,Q,m,P){return this.bG.add(String(D),Q,!1,m,P)};
g.y.Hh=function(D,Q,m,P){return this.bG.add(String(D),Q,!0,m,P)};
g.y.qY=function(D,Q,m,P){this.bG.remove(String(D),Q,m,P)};
g.y.ej=function(D,Q,m,P){return this.bG.ej(String(D),Q,m,P)};
g.y.hasListener=function(D,Q){return this.bG.hasListener(D!==void 0?String(D):void 0,Q)};var Co=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(D){return D&&AsyncContext.Snapshot.wrap(D)}:function(D){return D};qK.prototype.get=function(){if(this.C>0){this.C--;var D=this.S;this.S=D.next;D.next=null}else D=this.T();return D};var os;VV.prototype.add=function(D,Q){var m=$c6.get();m.set(D,Q);this.C?this.C.next=m:this.S=m;this.C=m};
VV.prototype.remove=function(){var D=null;this.S&&(D=this.S,this.S=this.S.next,this.S||(this.C=null),D.next=null);return D};
var $c6=new qK(function(){return new NK},function(D){return D.reset()});
NK.prototype.set=function(D,Q){this.S=D;this.scope=Q;this.next=null};
NK.prototype.reset=function(){this.next=this.scope=this.S=null};var yV,ZV=!1,KK9=new VV;e__.prototype.reset=function(){this.context=this.C=this.T=this.S=null;this.B=!1};
var vN9=new qK(function(){return new e__},function(D){D.reset()});
g.BN.prototype.then=function(D,Q,m){return ro7(this,Co(typeof D==="function"?D:null),Co(typeof Q==="function"?Q:null),m)};
g.BN.prototype.$goog_Thenable=!0;g.y=g.BN.prototype;g.y.finally=function(D){var Q=this;D=Co(D);return new g.BN(function(m,P){Ao9(Q,function(W){D();m(W)},function(W){D();
P(W)})})};
g.y.Fn=function(D,Q){return ro7(this,null,Co(D),Q)};
g.y.catch=g.BN.prototype.Fn;g.y.cancel=function(D){if(this.S==0){var Q=new Rs(D);g.Fd(function(){p96(this,Q)},this)}};
g.y.yND=function(D){this.S=0;Tt(this,2,D)};
g.y.jlh=function(D){this.S=0;Tt(this,3,D)};
g.y.x7=function(){for(var D;D=xc7(this);)X9$(this,D,this.S,this.U);this.N=!1};
var Ddj=hi;g.CV(Rs,o4);Rs.prototype.name="cancel";g.CV(g.Ur,g.zt);g.y=g.Ur.prototype;g.y.enabled=!1;g.y.Gc=null;g.y.setInterval=function(D){this.S6=D;this.Gc&&this.enabled?(this.stop(),this.start()):this.Gc&&this.stop()};
g.y.idh=function(){if(this.enabled){var D=g.bv()-this.IN;D>0&&D<this.S6*.8?this.Gc=this.eQ.setTimeout(this.Iq,this.S6-D):(this.Gc&&(this.eQ.clearTimeout(this.Gc),this.Gc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.y.start=function(){this.enabled=!0;this.Gc||(this.Gc=this.eQ.setTimeout(this.Iq,this.S6),this.IN=g.bv())};
g.y.stop=function(){this.enabled=!1;this.Gc&&(this.eQ.clearTimeout(this.Gc),this.Gc=null)};
g.y.Bq=function(){g.Ur.Rl.Bq.call(this);this.stop();delete this.eQ};g.Z(g.j6,g.v);g.y=g.j6.prototype;g.y.sendIsolatedPayload=function(D){this.J=D;this.T=1};
g.y.zN=function(){var D=this.C.values();D=[].concat(g.on(D)).filter(function(Q){return Q.S.size});
D.length&&this.U.flush(D,this.J);Pkn(D);this.B=0;this.S.enabled&&this.S.stop()};
g.y.hp=function(D){var Q=g.e$.apply(1,arguments);this.C.has(D)||this.C.set(D,new Ys(D,Q))};
g.y.RE=function(D){var Q=g.e$.apply(1,arguments);this.C.has(D)||this.C.set(D,new a3(D,Q))};
g.y.jg=function(D){this.rE(D,1,g.e$.apply(1,arguments))};
g.y.rE=function(D,Q){var m=g.e$.apply(2,arguments),P=md_(this,D);P&&P instanceof Ys&&(P.T(Q,m),QM$(this))};
g.y.i6=function(D,Q){var m=g.e$.apply(2,arguments),P=md_(this,D);P&&P instanceof a3&&(P.i6(Q,m),QM$(this))};g.Z($7,Error);$7.prototype.toString=function(){var D="RpcError("+(iOk(this.code)||String(this.code))+")";this.message&&(D+=": "+this.message);return D};sMP.prototype.R_=function(D){var Q=[];vN(this,D,Q);return Q.join("")};
var ddj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},uQw=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var VZM;g.CV(Or,z5P);Or.prototype.S=function(){return new XMLHttpRequest};
VZM=new Or;g.CV(g.Y7,g.zt);var VNh=/^https?$/i,NhN=["POST","PUT"],bOn=[];g.y=g.Y7.prototype;g.y.wd=function(){this.dispose();g.hM(bOn,this)};
g.y.send=function(D,Q,m,P){if(this.S)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Z+"; newUri="+D);Q=Q?Q.toUpperCase():"GET";this.Z=D;this.B="";this.C=0;this.Iy=!1;this.T=!0;this.S=this.t0?this.t0.S():VZM.S();this.S.onreadystatechange=Co((0,g.d$)(this.zg,this));try{this.getStatus(),this.Kh=!0,this.S.open(Q,String(D),!0),this.Kh=!1}catch(u){this.getStatus();oc$(this,u);return}D=m||"";m=new Map(this.headers);if(P)if(Object.getPrototypeOf(P)===Object.prototype)for(var W in P)m.set(W,
P[W]);else if(typeof P.keys==="function"&&typeof P.get==="function"){W=g.T(P.keys());for(var L=W.next();!L.done;L=W.next())L=L.value,m.set(L,P.get(L))}else throw Error("Unknown input type for opt_headers: "+String(P));P=Array.from(m.keys()).find(function(u){return"content-type"==u.toLowerCase()});
W=g.Mu.FormData&&D instanceof g.Mu.FormData;!g.FK(NhN,Q)||P||W||m.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Q=g.T(m);for(P=Q.next();!P.done;P=Q.next())m=g.T(P.value),P=m.next().value,m=m.next().value,this.S.setRequestHeader(P,m);this.QF&&(this.S.responseType=this.QF);"withCredentials"in this.S&&this.S.withCredentials!==this.U&&(this.S.withCredentials=this.U);try{this.N&&(clearTimeout(this.N),this.N=null),this.TO>0&&(this.getStatus(),this.N=setTimeout(this.zn.bind(this),
this.TO)),this.getStatus(),this.j=!0,this.S.send(D),this.j=!1}catch(u){this.getStatus(),oc$(this,u)}};
g.y.zn=function(){typeof A9!="undefined"&&this.S&&(this.B="Timed out after "+this.TO+"ms, aborting",this.C=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.y.abort=function(D){this.S&&this.T&&(this.getStatus(),this.T=!1,this.J=!0,this.S.abort(),this.J=!1,this.C=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),as(this))};
g.y.Bq=function(){this.S&&(this.T&&(this.T=!1,this.J=!0,this.S.abort(),this.J=!1),as(this,!0));g.Y7.Rl.Bq.call(this)};
g.y.zg=function(){this.VF()||(this.Kh||this.j||this.J?fp4(this):this.lec())};
g.y.lec=function(){fp4(this)};
g.y.isActive=function(){return!!this.S};
g.y.isComplete=function(){return g.po(this)==4};
g.y.getStatus=function(){try{return g.po(this)>2?this.S.status:-1}catch(D){return-1}};
g.y.getResponseHeader=function(D){if(this.S&&this.isComplete())return D=this.S.getResponseHeader(D),D===null?void 0:D};
g.y.getLastError=function(){return typeof this.B==="string"?this.B:String(this.B)};Gt.prototype.send=function(D,Q,m){Q=Q===void 0?function(){}:Q;
m=m===void 0?function(){}:m;
qw9(D.url,function(P){P=P.target;x7(P)?Q(g.Xd(P)):m(P.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)};
Gt.prototype.tq=function(){return 1};cN.prototype.done=function(){this.logger.KD(this.event,MK()-this.startTime)};
g.Z(Da,cm);g.Z(m2,Da);g.y=m2.prototype;g.y.uA=function(){};
g.y.QN=function(){};
g.y.KD=function(){};
g.y.LF=function(){};
g.y.tE=function(){};
g.y.JM=function(D,Q,m,P){return P};
g.y.I$=function(){};
g.y.Cv=function(){};
g.y.dw=function(){};
g.Z(P$,Da);g.y=P$.prototype;g.y.update=function(D){this.logger.dispose();this.logger=D};
g.y.QN=function(D){this.logger.QN(D)};
g.y.KD=function(D,Q){this.logger.KD(D,Q)};
g.y.LF=function(D){this.logger.LF(D)};
g.y.tE=function(){this.logger.tE()};
g.y.JM=function(D,Q,m,P){return this.logger.JM(D,Q,m,P)};
g.y.I$=function(D){this.logger.I$(D)};
g.y.Cv=function(D){this.logger.Cv(D)};
g.y.dw=function(D){this.logger.dw(D)};
g.y.uA=function(D){this.logger.uA(D)};
g.Z(ZOk,g.v);g.Z(W$,Da);g.y=W$.prototype;g.y.uA=function(D){this.metrics.Hd0.i6(D,this.TM)};
g.y.QN=function(D){this.metrics.eventCount.Gi(D,this.TM)};
g.y.KD=function(D,Q){this.metrics.w$.i6(Q,D,this.TM)};
g.y.LF=function(D){this.metrics.errorCount.Gi(D,this.TM)};
g.y.JM=function(D,Q,m,P){function W(t){if(!L.VF()){var z=MK()-u;L.metrics.vPF.i6(z,D,m,t,Q,L.TM)}}
var L=this,u=MK();P.then(function(){return void W(0)},function(t){return void W(t instanceof $7?t.code:-1)});
return P};
g.y.I$=function(D){this.metrics.V1D.Gi(D,this.TM)};
g.y.Cv=function(D){this.metrics.Q_.Gi(D,this.TM)};
g.y.dw=function(D){this.metrics.e$0.Gi(D,this.TM)};
g.Z(s7,W$);s7.prototype.tE=function(){FG6(this.S)};g.Z(LC,FJ);g.Z(uf,FJ);g.Z(dm,FJ);var Udn=MU(dm),h5m=function(D){return sG(function(Q){return Q instanceof D&&!ar(Q)})}(dm);
dm.messageId="bfkj";g.Z(M8,FJ);g.Z(tU,FJ);var ncm=MU(tU);g.Z(bf,g.v);bf.prototype.snapshot=function(D){if(this.VF())throw Error("Already disposed");this.logger.QN("n");var Q=this.logger.share();return this.T.then(function(m){var P=m.B2;return new Promise(function(W){var L=new cN(Q,"n");P(function(u){L.done();Q.uA(u.length);Q.tE();Q.dispose();W(u)},[D.z8,
D.Ty,D.qN,D.h7])})})};
bf.prototype.nS=function(D){var Q=this;if(this.VF())throw Error("Already disposed");this.logger.QN("n");var m=Q1(this.logger,function(){return Q.B([D.z8,D.Ty,D.qN,D.h7])},"n");
this.logger.uA(m.length);this.logger.tE();return m};
bf.prototype.HW=function(D){this.T.then(function(Q){var m;(m=Q.psc)==null||m(D)})};
bf.prototype.e7=function(){return this.logger.share()};g.Z(oX,FJ);g.Z(fC,FJ);V1.prototype.wG=function(D){return $dP(this,D,new m2,0)};g.Z(Nf,g.v);Nf.prototype.snapshot=function(D){var Q=this;return g.U(function(m){switch(m.C){case 1:if(Q.VF())throw Error("Already disposed");if(Q.C||Q.U){m.Nv(2);break}return g.I(m,Q.J.promise,2);case 2:if(!Q.C){m.Nv(4);break}return g.I(m,Q.C.snapshot(D),5);case 5:return m.return(m.S);case 4:throw Q.U;}})};
Nf.prototype.HW=function(D){var Q,m;(Q=this.C)==null||(m=Q.HW)==null||m.call(Q,D)};
Nf.prototype.handleError=function(D){if(!this.VF()){this.U=D;this.J.resolve();var Q,m;(m=(Q=this.options).Hj0)==null||m.call(Q,D)}};
Nf.prototype.e7=function(){return this.logger.share()};
var OO9={OOh:432E5,Wa:3E5,pS:10,LK:1E4,LR:3E4,yU:3E4,naF:6E4,Js:1E3,Oo:6E4,eW:6E5,VQ:.25,Hw:2,maxAttempts:10};var yyv,G9_=(yyv=Math.imul)!=null?yyv:function(D,Q){return D*Q|0},Tz=[196,
200,224,18];hU.prototype.R_=function(){return String(this.S)+","+this.C.join()};
hU.prototype.MJ=function(D,Q){var m=void 0;if(this.C[this.S]!==D){var P=this.C.indexOf(D);P!==-1?(this.C.splice(P,1),P<this.S&&this.S--,this.C.splice(this.S,0,D)):(m=this.C[this.S],this.C[this.S]=D)}this.S=(this.S+1)%this.maxItems;D=r0P("iU5q-!O9@$",this.R_());m&&D&&Q(m);return D};var u36={toString:function(D){var Q=[],m=0;D-=-2147483648;Q[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(D%52);for(D=Math.floor(D/52);D>0;)Q[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return Q.join("")}};g.Z(E7,g.v);E7.prototype.zU=function(D,Q){var m=this.Rv(D);Q==null||Q(m);return Q1(this.logger,function(){return g.EG(m,2)},this.C)};
g.Z(wm,E7);wm.prototype.Rv=function(D,Q){var m=this;this.logger.QN(this.S);++this.J>=this.N&&this.T.resolve();var P=D();D=Q1(this.logger,function(){return m.B(P)},"C");
if(D===void 0)throw new X3(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new X3(18,"ODM:Invalid");Q==null||Q(D);return D};
g.Z(k5,E7);k5.prototype.Rv=function(){return this.B};
g.Z(JU,E7);JU.prototype.Rv=function(){var D=this;return Q1(this.logger,function(){return Bz(D.B)},"d")};
JU.prototype.zU=function(){return this.B};
g.Z(lf,E7);lf.prototype.Rv=function(){if(this.B)return this.B;this.B=tfu(this,function(D){return"_"+d84(D)});
return tfu(this,function(D){return D})};
g.Z(RX,E7);RX.prototype.Rv=function(){var D=Math.floor(Date.now()/1E3),Q=[Math.random()*255,Math.random()*255],m=Q.concat([this.B&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+m.length);D[0]=34;D[1]=m.length;D.set(m,2);m=D.subarray(2);for(var P=Q=Q.length;P<m.length;++P)m[P]^=m[P%Q];this.logger.I$(this.clientState);return D};var bM7={mH:3E4,Odx:2E4};g.Z(H$,g.v);g.y=H$.prototype;g.y.Ua=function(){return this.T.promise};
g.y.Rv=function(D){return FJ_(this,Object.assign({},D),!1)};
g.y.zU=function(D){return FJ_(this,Object.assign({},D),!0)};
g.y.F4=function(D){if(!(D>150))try{this.cache=new WJj(D,this.logger)}catch(Q){this.reportError(new X3(22,"GBJ:init",Q))}};
g.y.reportError=function(D){this.logger.LF(D.code);this.onError(D);return D};
var qFu=function(D){return sG(function(Q){if(!LxQ(Q))return!1;for(var m=g.T(Object.entries(D)),P=m.next();!P.done;P=m.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;if(!(P in Q)){if(W.Dfc===!0)continue;return!1}if(!W(Q[P]))return!1}return!0})}({IF:function(D){return sG(function(Q){return Q instanceof D})}(Nf)},"");var xKk=(new Date).getTime();g.Z($5,FJ);var Z64=MU($5);Tfn.prototype.getMetadata=function(){return this.metadata};eR.prototype.getMetadata=function(){return this.metadata};
eR.prototype.getStatus=function(){return this.status};v$.prototype.U=function(D,Q){Q=Q===void 0?{}:Q;return new Tfn(D,this,Q)};
v$.prototype.getName=function(){return this.name};var Fmh=new v$("/google.internal.waa.v1.Waa/Create",oX,$5,function(D){return D.R_()},Z64);g.Z(O7,FJ);var KG9=new v$("/google.internal.waa.v1.Waa/GenerateIT",fC,O7,function(D){return D.R_()},MU(O7));var cz6=new Set(["SAPISIDHASH","APISIDHASH"]);g.Z(Y5,FJ);Y5.prototype.getValue=function(){var D=MI(this,2);if(Array.isArray(D)||D instanceof FJ)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return LB(this,2)};g.Z(aX,FJ);aX.prototype.getMessage=function(){return kp(this,2)};
var wm7=MU(aX);AU.prototype.jh=function(D,Q){D=="data"?this.T.push(Q):D=="metadata"?this.J.push(Q):D=="status"?this.N.push(Q):D=="end"?this.B.push(Q):D=="error"&&this.C.push(Q);return this};
AU.prototype.removeListener=function(D,Q){D=="data"?rm(this.T,Q):D=="metadata"?rm(this.J,Q):D=="status"?rm(this.N,Q):D=="end"?rm(this.B,Q):D=="error"&&rm(this.C,Q);return this};
AU.prototype.cancel=function(){this.S.abort()};
AU.prototype.cancel=AU.prototype.cancel;AU.prototype.removeListener=AU.prototype.removeListener;AU.prototype.on=AU.prototype.jh;g.Z(ni9,Error);g.CV(g.Gz,z5P);g.Gz.prototype.S=function(){var D=new Mf(this.B,this.T);this.C&&D.setCredentialsMode(this.C);return D};
g.Gz.prototype.setCredentialsMode=function(D){this.C=D};
g.CV(Mf,g.zt);g.y=Mf.prototype;g.y.open=function(D,Q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Iy=D;this.TO=Q;this.readyState=1;c$(this)};
g.y.send=function(D){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Z.signal.aborted)throw this.abort(),Error("Request was aborted.");this.S=!0;var Q={headers:this.j,method:this.Iy,credentials:this.J,cache:void 0,signal:this.Z.signal};D&&(Q.body=D);(this.Kh||g.Mu).fetch(new Request(this.TO,Q)).then(this.FS.bind(this),this.wK.bind(this))};
g.y.abort=function(){this.response=this.responseText="";this.j=new Headers;this.status=0;this.Z.abort();this.T&&this.T.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.S&&this.readyState!=4&&(this.S=!1,DI(this));this.readyState=0};
g.y.FS=function(D){if(this.S&&(this.B=D,this.C||(this.status=this.B.status,this.statusText=this.B.statusText,this.C=D.headers,this.readyState=2,c$(this)),this.S&&(this.readyState=3,c$(this),this.S)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.Mk.bind(this),this.wK.bind(this));else if(typeof g.Mu.ReadableStream!=="undefined"&&"body"in D){this.T=D.body.getReader();if(this.N){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.U=new TextDecoder;kw_(this)}else D.text().then(this.Ey.bind(this),this.wK.bind(this))};
g.y.lj=function(D){if(this.S){if(this.N&&D.value)this.response.push(D.value);else if(!this.N){var Q=D.value?D.value:new Uint8Array(0);if(Q=this.U.decode(Q,{stream:!D.done}))this.response=this.responseText+=Q}D.done?DI(this):c$(this);this.readyState==3&&kw_(this)}};
g.y.Ey=function(D){this.S&&(this.response=this.responseText=D,DI(this))};
g.y.Mk=function(D){this.S&&(this.response=D,DI(this))};
g.y.wK=function(){this.S&&DI(this)};
g.y.setRequestHeader=function(D,Q){this.j.append(D,Q)};
g.y.getResponseHeader=function(D){return this.C?this.C.get(D.toLowerCase())||"":""};
g.y.getAllResponseHeaders=function(){if(!this.C)return"";for(var D=[],Q=this.C.entries(),m=Q.next();!m.done;)m=m.value,D.push(m[0]+": "+m[1]),m=Q.next();return D.join("\r\n")};
g.y.setCredentialsMode=function(D){this.J=D};
Object.defineProperty(Mf.prototype,"withCredentials",{get:function(){return this.J==="include"},
set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});g.Qc.prototype.toString=function(){var D=[],Q=this.J;Q&&D.push(dt(Q,ThM,!0),":");var m=this.S;if(m||Q=="file")D.push("//"),(Q=this.Z)&&D.push(dt(Q,ThM,!0),"@"),D.push(g.gh(m).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m=this.T,m!=null&&D.push(":",String(m));if(m=this.C)this.S&&m.charAt(0)!="/"&&D.push("/"),D.push(dt(m,m.charAt(0)=="/"?hsU:nqV,!0));(m=this.B.toString())&&D.push("?",m);(m=this.N)&&D.push("#",dt(m,EqK));return D.join("")};
g.Qc.prototype.resolve=function(D){var Q=this.clone(),m=!!D.J;m?g.mq(Q,D.J):m=!!D.Z;m?Q.Z=D.Z:m=!!D.S;m?g.PV(Q,D.S):m=D.T!=null;var P=D.C;if(m)g.WV(Q,D.T);else if(m=!!D.C){if(P.charAt(0)!="/")if(this.S&&!this.C)P="/"+P;else{var W=Q.C.lastIndexOf("/");W!=-1&&(P=Q.C.slice(0,W+1)+P)}W=P;if(W==".."||W==".")P="";else if(g.l7(W,"./")||g.l7(W,"/.")){P=k1(W,"/");W=W.split("/");for(var L=[],u=0;u<W.length;){var t=W[u++];t=="."?P&&u==W.length&&L.push(""):t==".."?((L.length>1||L.length==1&&L[0]!="")&&L.pop(),
P&&u==W.length&&L.push("")):(L.push(t),P=!0)}P=L.join("/")}else P=W}m?Q.C=P:m=D.B.toString()!=="";m?iD(Q,D.B.clone()):m=!!D.N;m&&(Q.N=D.N);return Q};
g.Qc.prototype.clone=function(){return new g.Qc(this)};
var ThM=/[#\/\?@]/g,nqV=/[#\?:]/g,hsU=/[#\?]/g,U8h=/[#\?@]/g,EqK=/#/g;g.y=uD.prototype;g.y.add=function(D,Q){bD(this);this.T=null;D=qp(this,D);var m=this.S.get(D);m||this.S.set(D,m=[]);m.push(Q);this.C=this.C+1;return this};
g.y.remove=function(D){bD(this);D=qp(this,D);return this.S.has(D)?(this.T=null,this.C=this.C-this.S.get(D).length,this.S.delete(D)):!1};
g.y.clear=function(){this.S=this.T=null;this.C=0};
g.y.isEmpty=function(){bD(this);return this.C==0};
g.y.forEach=function(D,Q){bD(this);this.S.forEach(function(m,P){m.forEach(function(W){D.call(Q,W,P,this)},this)},this)};
g.y.G8=function(){bD(this);for(var D=Array.from(this.S.values()),Q=Array.from(this.S.keys()),m=[],P=0;P<Q.length;P++)for(var W=D[P],L=0;L<W.length;L++)m.push(Q[P]);return m};
g.y.Jp=function(D){bD(this);var Q=[];if(typeof D==="string")KJ6(this,D)&&(Q=Q.concat(this.S.get(qp(this,D))));else{D=Array.from(this.S.values());for(var m=0;m<D.length;m++)Q=Q.concat(D[m])}return Q};
g.y.set=function(D,Q){bD(this);this.T=null;D=qp(this,D);KJ6(this,D)&&(this.C=this.C-this.S.get(D).length);this.S.set(D,[Q]);this.C=this.C+1;return this};
g.y.get=function(D,Q){if(!D)return Q;D=this.Jp(D);return D.length>0?String(D[0]):Q};
g.y.toString=function(){if(this.T)return this.T;if(!this.S)return"";for(var D=[],Q=Array.from(this.S.keys()),m=0;m<Q.length;m++){var P=Q[m],W=g.gh(P);P=this.Jp(P);for(var L=0;L<P.length;L++){var u=W;P[L]!==""&&(u+="="+g.gh(P[L]));D.push(u)}}return this.T=D.join("&")};
g.y.clone=function(){var D=new uD;D.T=this.T;this.S&&(D.S=new Map(this.S),D.C=this.C);return D};
g.y.extend=function(D){for(var Q=0;Q<arguments.length;Q++)I37(arguments[Q],function(m,P){this.add(P,m)},this)};g.CV(g.oO,g.v);var gqP=[];g.y=g.oO.prototype;g.y.listen=function(D,Q,m,P){Array.isArray(Q)||(Q&&(gqP[0]=Q.toString()),Q=gqP);for(var W=0;W<Q.length;W++){var L=g.cT(D,Q[W],m||this.handleEvent,P||!1,this.C||this);if(!L)break;this.S[L.key]=L}return this};
g.y.Hh=function(D,Q,m,P){return eQm(this,D,Q,m,P)};
g.y.qY=function(D,Q,m,P,W){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)this.qY(D,Q[L],m,P,W);else m=m||this.handleEvent,P=g.iv(P)?!!P.capture:!!P,W=W||this.C||this,m=DV(m),P=!!P,Q=xs(D)?D.ej(Q,m,P,W):D?(D=QV(D))?D.ej(Q,m,P,W):null:null,Q&&(PN(Q),delete this.S[Q.key])};
g.y.removeAll=function(){g.MQ(this.S,function(D,Q){this.S.hasOwnProperty(Q)&&PN(D)},this);
this.S={}};
g.y.Bq=function(){g.oO.Rl.Bq.call(this);this.removeAll()};
g.y.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};vi7.prototype.isInputValid=function(){return this.T};fJ.prototype.isInputValid=function(){return this.S!=3};
fJ.prototype.tN=function(){return this.N};
fJ.prototype.U4=function(){return!0};
fJ.prototype.parse=function(D){function Q(z){z&128&&Vc(L,u,t,"invalid tag");(z&7)!=2&&Vc(L,u,t,"invalid wire type");L.T=z>>>3;L.T!=1&&L.T!=2&&L.T!=15&&Vc(L,u,t,"unexpected tag");L.S=1;L.C=0;L.B=0}
function m(z){L.B++;L.B==5&&z&240&&Vc(L,u,t,"message length too long");L.C|=(z&127)<<(L.B-1)*7;z&128||(L.S=2,L.Z=0,typeof Uint8Array!=="undefined"?L.J=new Uint8Array(L.C):L.J=Array(L.C),L.C==0&&W())}
function P(z){L.J[L.Z++]=z;L.Z==L.C&&W()}
function W(){if(L.T<15){var z={};z[L.T]=L.J;L.U.push(z)}L.S=0}
for(var L=this,u=D instanceof Array?D:new Uint8Array(D),t=0;t<u.length;){switch(L.S){case 3:Vc(L,u,t,"stream already broken");break;case 0:Q(u[t]);break;case 1:m(u[t]);break;case 2:P(u[t]);break;default:throw Error("unexpected parser state: "+L.S);}L.j++;t++}D=L.U;L.U=[];return D.length>0?D:null};Np.prototype.isInputValid=function(){return this.S===null};
Np.prototype.tN=function(){return this.S};
Np.prototype.U4=function(){return!1};
Np.prototype.parse=function(D){this.S!==null&&YF$(this,D,"stream already broken");var Q=null;try{var m=this.T;m.T||OMm(m,D,"stream already broken");m.S+=D;var P=Math.floor(m.S.length/4);if(P==0)var W=null;else{try{var L=krh(m.S.slice(0,P*4))}catch(u){OMm(m,m.S,u.message)}m.C+=P*4;m.S=m.S.slice(P*4);W=L}Q=W===null?null:this.B.parse(W)}catch(u){YF$(this,D,u.message)}this.C+=D.length;return Q};var BhK={INIT:0,ID:1,Et:2,GB:3,Tp:4,C4:5,STRING:6,Xa:7,Ss:8,t5:9,b2:10,Q4:11,ND:12,bV:13,Q$:14,HC:15,Ip:16,gL:17,h5:18,Ud:19,Mq:20};g.y=ZI.prototype;g.y.isInputValid=function(){return this.J!=3};
g.y.tN=function(){return this.j};
g.y.done=function(){return this.J===2};
g.y.U4=function(){return!1};
g.y.parse=function(D){function Q(){for(;f<D.length;)if(yc(D[f]))f++,L.T++;else break;return f<b}
function m(){for(var N;;){N=D[f++];if(!N)break;L.T++;switch(L.S){case z.INIT:N==="{"?L.S=z.Et:N==="["?L.S=z.Tp:yc(N)||FY(L,D,f);continue;case z.Xa:case z.Et:if(yc(N))continue;if(L.S===z.Xa)u.push(z.Ss);else if(N==="}"){W("{}");L.S=P();continue}else u.push(z.GB);N==='"'?L.S=z.STRING:FY(L,D,f);continue;case z.Ss:case z.GB:if(yc(N))continue;N===":"?(L.S===z.GB&&(u.push(z.GB),L.C++),L.S=z.ID):N==="}"?(L.C--,W(),L.S=P()):N===","?(L.S===z.GB&&u.push(z.GB),L.S=z.Xa):FY(L,D,f);continue;case z.Tp:case z.ID:if(yc(N))continue;
if(L.S===z.Tp)if(L.C++,L.S=z.ID,N==="]"){L.C--;if(L.C===0){L.S=z.C4;return}W("[]");L.S=P();continue}else u.push(z.C4);N==='"'?L.S=z.STRING:N==="{"?L.S=z.Et:N==="["?L.S=z.Tp:N==="t"?L.S=z.t5:N==="f"?L.S=z.ND:N==="n"?L.S=z.Ip:N!=="-"&&("0123456789".indexOf(N)!==-1?L.S=z.Mq:FY(L,D,f));continue;case z.C4:if(N===",")u.push(z.C4),L.S=z.ID,L.C===1&&(C=f);else if(N==="]"){L.C--;if(L.C===0)return;W();L.S=P()}else if(yc(N))continue;else FY(L,D,f);continue;case z.STRING:var h=f;a:for(;;){for(;L.Z>0;)if(N=D[f++],
L.Z===4?L.Z=0:L.Z++,!N)break a;if(N==='"'&&!L.U){L.S=P();break}if(N==="\\"&&!L.U&&(L.U=!0,N=D[f++],!N))break;if(L.U)if(L.U=!1,N==="u"&&(L.Z=1),N=D[f++])continue;else break;t.lastIndex=f;N=t.exec(D);if(!N){f=D.length+1;break}f=N.index+1;N=D[N.index];if(!N)break}L.T+=f-h;continue;case z.t5:if(!N)continue;N==="r"?L.S=z.b2:FY(L,D,f);continue;case z.b2:if(!N)continue;N==="u"?L.S=z.Q4:FY(L,D,f);continue;case z.Q4:if(!N)continue;N==="e"?L.S=P():FY(L,D,f);continue;case z.ND:if(!N)continue;N==="a"?L.S=z.bV:
FY(L,D,f);continue;case z.bV:if(!N)continue;N==="l"?L.S=z.Q$:FY(L,D,f);continue;case z.Q$:if(!N)continue;N==="s"?L.S=z.HC:FY(L,D,f);continue;case z.HC:if(!N)continue;N==="e"?L.S=P():FY(L,D,f);continue;case z.Ip:if(!N)continue;N==="u"?L.S=z.gL:FY(L,D,f);continue;case z.gL:if(!N)continue;N==="l"?L.S=z.h5:FY(L,D,f);continue;case z.h5:if(!N)continue;N==="l"?L.S=P():FY(L,D,f);continue;case z.Ud:N==="."?L.S=z.Mq:FY(L,D,f);continue;case z.Mq:if("0123456789.eE+-".indexOf(N)!==-1)continue;else f--,L.T--,L.S=
P();continue;default:FY(L,D,f)}}}
function P(){var N=u.pop();return N!=null?N:z.ID}
function W(N){L.C>1||(N||(N=C===-1?L.B+D.substring(q,f):D.substring(C,f)),L.TO?L.N.push(N):L.N.push(JSON.parse(N)),C=f)}
for(var L=this,u=L.Iy,t=L.Kh,z=BhK,b=D.length,q=0,C=-1,f=0;f<b;)switch(L.J){case 3:return FY(L,D,f),null;case 2:return Q()&&FY(L,D,f),null;case 0:if(Q()){var V=D[f++];L.T++;if(V==="["){L.J=1;q=f;L.S=z.Tp;continue}else FY(L,D,f)}return null;case 1:return m(),L.C===0&&L.S==z.C4?(L.J=2,L.B=D.substring(f)):L.B=C===-1?L.B+D.substring(q):D.substring(C),L.N.length>0?(V=L.N,L.N=[],V):null}return null};Tp.prototype.isInputValid=function(){return this.J===null};
Tp.prototype.tN=function(){return this.J};
Tp.prototype.U4=function(){return!1};
Tp.prototype.parse=function(D){function Q(z){L.C=6;L.J="The stream is broken @"+L.S+"/"+u+". Error: "+z+". With input:\n";throw Error(L.J);}
function m(){L.T=new ZI({F_D:!0,F0:!0})}
function P(z){if(z)for(var b=0;b<z.length;b++){var q={};q[1]=z[b];L.B.push(q)}}
function W(z){if(z){(L.N||z.length>1)&&Q("extra status: "+z);L.N=!0;var b={};b[2]=z[0];L.B.push(b)}}
for(var L=this,u=0;u<D.length;){var t;if(t=L.C!==2){a:{for(;u<D.length;){if(!yc(D[u])){t=!0;break a}u++;L.S++}t=!1}t=!t}if(t)return null;switch(L.C){case 6:Q("stream already broken");break;case 0:D[u]==="["?(L.C=1,u++,L.S++):Q("unexpected input token");break;case 1:D[u]==="["?(L.C=2,m()):D[u]===","||D.slice(u,u+5)=="null,"?L.C=3:D[u]==="]"?(L.C=5,u++,L.S++):Q("unexpected input token");break;case 2:t=L.T.parse(D.substring(u));P(t);L.T.done()?(L.C=3,t=L.T.B,L.S+=D.length-u-t.length,D=t,u=0):(L.S+=D.length-
u,u=D.length);break;case 3:D[u]===","||D.slice(u,u+5)=="null,"?(L.C=4,m(),L.T.parse("["),u+=D[u]===","?1:5,L.S++):D[u]==="]"&&(L.C=5,u++,L.S++);break;case 4:t=L.T.parse(D.substring(u));W(t);L.T.done()?(L.C=5,t=L.T.B,L.S+=D.length-u-t.length,D=t,u=0):(L.S+=D.length-u,u=D.length);break;case 5:Q("extra input after stream end")}}return L.B.length>0?(D=L.B,L.B=[],D):null};hN.prototype.tS=function(){return this.S};
hN.prototype.getStatus=function(){return this.J};
hN.prototype.TO=function(D){D=D.target;try{if(D==this.S)a:{var Q=g.po(this.S),m=this.S.C,P=this.S.getStatus(),W=g.Xd(this.S);D=[];if(g.S6(this.S)instanceof Array){var L=g.S6(this.S);L.length>0&&L[0]instanceof Uint8Array&&(this.j=!0,D=L)}if(!(Q<3||Q==3&&!W&&D.length==0))if(P=P==200||P==206,Q==4&&(m==8?nJ(this,7):m==7?nJ(this,8):P||nJ(this,3)),this.C||(this.C=a3_(this.S),this.C==null&&nJ(this,5)),this.J>2)Ev(this);else{if(D.length>this.T){var u=D.length;m=[];try{if(this.C.U4())for(var t=0;t<u;t++){var z=
this.C.parse(Array.from(D[t]));z&&(m=m.concat(z))}else{z="";if(!this.N){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.N=new TextDecoder}for(t=0;t<u;t++)z+=this.N.decode(D[t],{stream:Q==4&&t==u-1});m=this.C.parse(z)}D.splice(0,u);m&&this.B(m)}catch(q){nJ(this,5);Ev(this);break a}}else if(W.length>this.T){t=W.slice(this.T);this.T=W.length;try{var b=this.C.parse(t);b!=null&&this.B&&this.B(b)}catch(q){nJ(this,5);Ev(this);break a}}Q==4?(W.length!=
0||this.j?nJ(this,2):nJ(this,4),Ev(this)):nJ(this,1)}}}catch(q){nJ(this,6),Ev(this)}};g.y=Azj.prototype;g.y.jh=function(D,Q){var m=this.C[D];m||(m=[],this.C[D]=m);m.push(Q);return this};
g.y.addListener=function(D,Q){this.jh(D,Q);return this};
g.y.removeListener=function(D,Q){var m=this.C[D];m&&g.hM(m,Q);(D=this.S[D])&&g.hM(D,Q);return this};
g.y.once=function(D,Q){var m=this.S[D];m||(m=[],this.S[D]=m);m.push(Q);return this};
g.y.hC0=function(D){var Q=this.C.data;Q&&pmw(D,Q);(Q=this.S.data)&&pmw(D,Q);this.S.data=[]};
g.y.Hnc=function(){switch(this.T.getStatus()){case 1:gt(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gt(this,"error");break;case 8:gt(this,"close");break;case 2:gt(this,"end")}};x8m.prototype.serverStreaming=function(D,Q,m,P){var W=this,L=D.substring(0,D.length-P.name.length);return D3k(function(u){var t=u.G0,z=u.getMetadata(),b=rz_(W,!1);z=Gw$(W,z,b,L+t.getName());var q=Mfu(b,t.C,!0);u=t.S(u.UE);b.send(z,"POST",u);return q},this.U7).call(this,P.U(Q,m))};Q3k.prototype.create=function(D,Q,m){var P=this.S,W=this.C+"/$rpc/google.internal.waa.v1.Waa/Create";Q=Q||{};m=m===void 0?{}:m;return jMw(P,W,D,Q,Fmh,m)};var m3_="://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(" "),PKP=/\bocr\b/;var i14=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(D){throw D;}},{tMT:!0,
QZT:!0,H00:!1,O00:rMN,uQT:GTh,JrW:!1,vIO:!1,o00:!1,b00:!0,VM0:SU4,NXT:!1,i0O:!1,HGh:!1});var kG=null,lD=!1,fEj=1,qum=Symbol("SIGNAL"),oh={version:0,bGy:0,tZ:!1,producers:void 0,Nc:void 0,mJ:void 0,t$:void 0,TX:!1,rP:!1,zP:!1,kind:"unknown",nw:function(){return!1},
N0:function(){},
Ly:function(){},
BXh:function(){}};var fq=Symbol("UNSET"),VA=Symbol("COMPUTING"),Nx=Symbol("ERRORED");Object.assign({},oh,{value:fq,tZ:!0,error:null,ye:wt,kind:"computed",nw:function(D){return D.value===fq||D.value===VA},
N0:function(D){if(D.value===VA)throw Error("");var Q=D.value;D.value=VA;var m=uHr(D),P=!1;try{var W=D.k_();JN(null);P=Q!==fq&&Q!==Nx&&W!==Nx&&D.ye(Q,W)}catch(L){W=Nx,D.error=L}finally{tT_(D,m)}P?D.value=Q:(D.value=W,D.version++)}});var b17=Object.assign({},oh,{ye:wt,value:void 0,kind:"signal"});Object.assign({},oh,{value:fq,tZ:!0,error:null,ye:wt,kind:"linkedSignal",nw:function(D){return D.value===fq||D.value===VA},
N0:function(D){if(D.value===VA)throw Error("");var Q=D.value;D.value=VA;var m=uHr(D);try{var P=D.source();var W=D.k_(P,Q===fq||Q===Nx?void 0:{source:D.u2q,value:Q});D.u2q=P}catch(L){W=Nx,D.error=L}finally{tT_(D,m)}Q!==fq&&W!==Nx&&D.ye(Q,W)?D.value=Q:(D.value=W,D.version++)}});Object.assign({},oh,{zP:!0,rP:!1,Ly:function(D){D.schedule!==null&&D.schedule(D.Ez0)},
jb9:!1,TXz:function(){}});g.Z(HV,g.zt);HV.prototype.dispose=function(){window.removeEventListener("offline",this.T);window.removeEventListener("online",this.T);this.MO.N5(this.J);delete HV.instance};
HV.prototype.kP=function(){return this.S};
HV.prototype.UC=function(){var D=this;this.J=this.MO.Gm(function(){var Q;return g.U(function(m){if(m.C==1)return D.S?((Q=window.navigator)==null?0:Q.onLine)?m.Nv(3):g.I(m,Uv(D),3):g.I(m,Uv(D),3);D.UC();g.T7(m)})},3E4)};g.Z(NIm,FJ);var wbh=Za7(NIm,[0,Lq,XKk,RuV,Lq,-2,RuV,J6$]);jH.prototype.set=function(D,Q){Q=Q===void 0?!0:Q;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==Q&&(this.data[D]=Q,this.S=-1)};
jH.prototype.get=function(D){return!!this.data[D]};var eH;g.CV(g.AN,g.v);g.y=g.AN.prototype;g.y.start=function(){this.stop();this.B=!1;var D=Z1m(this),Q=Fo6(this);D&&!Q&&this.C.mozRequestAnimationFrame?(this.S=g.cT(this.C,"MozBeforePaint",this.T),this.C.mozRequestAnimationFrame(null),this.B=!0):this.S=D&&Q?D.call(this.C,this.T):this.C.setTimeout(OV6(this.T),20)};
g.y.stop=function(){if(this.isActive()){var D=Z1m(this),Q=Fo6(this);D&&!Q&&this.C.mozRequestAnimationFrame?PN(this.S):D&&Q?Q.call(this.C,this.S):this.C.clearTimeout(this.S)}this.S=null};
g.y.isActive=function(){return this.S!=null};
g.y.L5=function(){this.B&&this.S&&PN(this.S);this.S=null;this.N.call(this.J,g.bv())};
g.y.Bq=function(){this.stop();g.AN.Rl.Bq.call(this)};g.CV(g.pJ,g.v);g.y=g.pJ.prototype;g.y.WN=0;g.y.Bq=function(){g.pJ.Rl.Bq.call(this);this.stop();delete this.S;delete this.C};
g.y.start=function(D){this.stop();this.WN=g.HN(this.T,D!==void 0?D:this.S6)};
g.y.stop=function(){this.isActive()&&g.Mu.clearTimeout(this.WN);this.WN=0};
g.y.isActive=function(){return this.WN!=0};
g.y.kK=function(){this.WN=0;this.S&&this.S.call(this.C)};g.Z(g.rt,g.v);g.y=g.rt.prototype;g.y.T1=function(D){this.T=arguments;this.Gc||this.C?this.S=!0:Gp(this)};
g.y.stop=function(){this.Gc&&(g.Mu.clearTimeout(this.Gc),this.Gc=null,this.S=!1,this.T=null)};
g.y.pause=function(){this.C++};
g.y.resume=function(){this.C--;this.C||!this.S||this.Gc||(this.S=!1,Gp(this))};
g.y.Bq=function(){g.v.prototype.Bq.call(this);this.stop()};g.Mp.prototype[Symbol.iterator]=function(){return this};
g.Mp.prototype.next=function(){var D=this.S.next();return{value:D.done?void 0:this.C.call(void 0,D.value),done:D.done}};g.CV(g.Ln,g.zt);g.y=g.Ln.prototype;g.y.isPlaying=function(){return this.S==1};
g.y.isPaused=function(){return this.S==-1};
g.y.a$=function(){this.Jl("begin")};
g.y.CG=function(){this.Jl("end")};
g.y.onFinish=function(){this.Jl("finish")};
g.y.onStop=function(){this.Jl("stop")};
g.y.Jl=function(D){this.dispatchEvent(D)};var k4k=I$(function(){var D=g.qi("DIV"),Q=g.d9?"-webkit":a$?"-moz":null,m="transition:opacity 1s linear;";Q&&(m+=Q+"-transition:opacity 1s linear;");Q=kT7({style:m});if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("");D.innerHTML=qt(Q);return g.At(D.firstChild,"transition")!=""});g.CV(uT,g.Ln);g.y=uT.prototype;g.y.play=function(){if(this.isPlaying())return!1;this.a$();this.Jl("play");this.startTime=g.bv();this.S=1;if(k4k())return g.YZ(this.C,this.N),this.T=g.HN(this.F$0,void 0,this),!0;this.zd(!1);return!1};
g.y.F$0=function(){g.Dr(this.C);ns7(this.C,this.U);g.YZ(this.C,this.B);this.T=g.HN((0,g.d$)(this.zd,this,!1),this.J*1E3)};
g.y.stop=function(){this.isPlaying()&&this.zd(!0)};
g.y.zd=function(D){g.YZ(this.C,"transition","");g.Mu.clearTimeout(this.T);g.YZ(this.C,this.B);this.endTime=g.bv();this.S=0;if(D)this.onStop();else this.onFinish();this.CG()};
g.y.Bq=function(){this.stop();uT.Rl.Bq.call(this)};
g.y.pause=function(){};var gsj={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};d2("Element","attributes")||d2("Node","attributes");d2("Element","innerHTML")||d2("HTMLElement","innerHTML");d2("Node","nodeName");d2("Node","nodeType");d2("Node","parentNode");d2("Node","childNodes");d2("HTMLElement","style")||d2("Element","style");d2("HTMLStyleElement","sheet");var IEr=wT6("getPropertyValue"),RB7=wT6("setProperty");d2("Element","namespaceURI")||d2("Node","namespaceURI");var lE7={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var j37,$Qv,Ko$,H1n,$36;j37=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]");$Qv=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.JyQ=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.zY=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]");Ko$=/^http:\/\/.*/;g.l_P=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");H1n=/\s+/;$36=/[\d\u06f0-\u06f9]/;qP.prototype.d3=function(){return new Cn(this.C())};
qP.prototype[Symbol.iterator]=function(){return new og(this.C())};
qP.prototype.S=function(){return new og(this.C())};
g.Z(Cn,g.Vj);Cn.prototype.next=function(){return this.C.next()};
Cn.prototype[Symbol.iterator]=function(){return new og(this.C)};
Cn.prototype.S=function(){return new og(this.C)};
g.Z(og,qP);og.prototype.next=function(){return this.T.next()};V9.prototype.clone=function(){return new V9(this.S,this.U,this.T,this.J,this.B,this.N,this.C,this.Z)};
V9.prototype.equals=function(D){return this.S==D.S&&this.U==D.U&&this.T==D.T&&this.J==D.J&&this.B==D.B&&this.N==D.N&&this.C==D.C&&this.Z==D.Z};y9.prototype.clone=function(){return new y9(this.start,this.end)};(function(){if(pYh){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(g.Kg()))?D[1]:"0"}return yL?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(g.Kg()))?D[0].replace(/_/g,"."):"10"):g.S8?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(g.Kg()))?D[1]:""):DDP||Q2M||mDK?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(g.Kg()))?D[1].replace(/_/g,"."):""):""})();var vsm=function(){if(g.fD)return Zx(/Firefox\/([0-9.]+)/);if(g.tv||g.Ak||g.m8)return T$7;if(g.Ta){if(Hb()||K6()){var D=Zx(/CriOS\/([0-9.]+)/);if(D)return D}return Zx(/Chrome\/([0-9.]+)/)}if(g.Cr&&!Hb())return Zx(/Version\/([0-9.]+)/);if(Al||pp){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Kg()))return D[1]+"."+D[2]}else if(g.P8)return(D=Zx(/Android\s+([0-9.]+)/))?D:Zx(/Version\/([0-9.]+)/);return""}();g.CV(g.TY,g.v);g.y=g.TY.prototype;g.y.subscribe=function(D,Q,m){var P=this.C[D];P||(P=this.C[D]=[]);var W=this.N;this.S[W]=D;this.S[W+1]=Q;this.S[W+2]=m;this.N=W+3;P.push(W);return W};
g.y.unsubscribe=function(D,Q,m){if(D=this.C[D]){var P=this.S;if(D=D.find(function(W){return P[W+1]==Q&&P[W+2]==m}))return this.Sc(D)}return!1};
g.y.Sc=function(D){var Q=this.S[D];if(Q){var m=this.C[Q];this.B!=0?(this.T.push(D),this.S[D+1]=function(){}):(m&&g.hM(m,D),delete this.S[D],delete this.S[D+1],delete this.S[D+2])}return!!Q};
g.y.publish=function(D,Q){var m=this.C[D];if(m){var P=Array(arguments.length-1),W=arguments.length,L;for(L=1;L<W;L++)P[L-1]=arguments[L];if(this.U)for(L=0;L<m.length;L++)W=m[L],O14(this.S[W+1],this.S[W+2],P);else{this.B++;try{for(L=0,W=m.length;L<W&&!this.VF();L++){var u=m[L];this.S[u+1].apply(this.S[u+2],P)}}finally{if(this.B--,this.T.length>0&&this.B==0)for(;m=this.T.pop();)this.Sc(m)}}return L!=0}return!1};
g.y.clear=function(D){if(D){var Q=this.C[D];Q&&(Q.forEach(this.Sc,this),delete this.C[D])}else this.S.length=0,this.C={}};
g.y.Bq=function(){g.TY.Rl.Bq.call(this);this.clear();this.T.length=0};g.hv.prototype.set=function(D,Q){Q===void 0?this.S.remove(D):this.S.set(D,g.e6(Q))};
g.hv.prototype.get=function(D){try{var Q=this.S.get(D)}catch(m){return}if(Q!==null)try{return JSON.parse(Q)}catch(m){throw"Storage: Invalid value was encountered";}};
g.hv.prototype.remove=function(D){this.S.remove(D)};g.CV(nn,g.hv);nn.prototype.set=function(D,Q){nn.Rl.set.call(this,D,aE_(Q))};
nn.prototype.C=function(D){D=nn.Rl.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";};
nn.prototype.get=function(D){if(D=this.C(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};g.CV(Eh,nn);Eh.prototype.set=function(D,Q,m){if(Q=aE_(Q)){if(m){if(m<g.bv()){Eh.prototype.remove.call(this,D);return}Q.expiration=m}Q.creation=g.bv()}Eh.Rl.set.call(this,D,Q)};
Eh.prototype.C=function(D,Q){var m=Eh.Rl.C.call(this,D);if(m)if(!Q&&g.Abj(m))Eh.prototype.remove.call(this,D);else return m};g.CV(g.g2,Eh);g.CV(Bo,pTw);Bo.prototype[Symbol.iterator]=function(){return g.fn(this.d3(!0)).S()};
Bo.prototype.clear=function(){var D=Array.from(this);D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())this.remove(Q.value)};g.CV(w2,Bo);g.y=w2.prototype;g.y.isAvailable=function(){if(this.C===null){var D=this.S;if(D)try{D.setItem("__sak","1");D.removeItem("__sak");var Q=!0}catch(m){Q=m instanceof DOMException&&(m.name==="QuotaExceededError"||m.code===22||m.code===1014||m.name==="NS_ERROR_DOM_QUOTA_REACHED")&&D&&D.length!==0}else Q=!1;this.C=Q}return this.C};
g.y.set=function(D,Q){kR(this);try{this.S.setItem(D,Q)}catch(m){if(this.S.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.y.get=function(D){kR(this);D=this.S.getItem(D);if(typeof D!=="string"&&D!==null)throw"Storage mechanism: Invalid value was encountered";return D};
g.y.remove=function(D){kR(this);this.S.removeItem(D)};
g.y.d3=function(D){kR(this);var Q=0,m=this.S,P=new g.Vj;P.next=function(){if(Q>=m.length)return g.tS;var W=m.key(Q++);if(D)return g.Nd(W);W=m.getItem(W);if(typeof W!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Nd(W)};
return P};
g.y.clear=function(){kR(this);this.S.clear()};
g.y.key=function(D){kR(this);return this.S.key(D)};g.CV(Jv,w2);g.CV(x37,w2);g.CV(lT,Bo);lT.prototype.set=function(D,Q){this.C.set(this.S+D,Q)};
lT.prototype.get=function(D){return this.C.get(this.S+D)};
lT.prototype.remove=function(D){this.C.remove(this.S+D)};
lT.prototype.d3=function(D){var Q=this.C[Symbol.iterator](),m=this,P=new g.Vj;P.next=function(){var W=Q.next();if(W.done)return W;for(W=W.value;W.slice(0,m.S.length)!=m.S;){W=Q.next();if(W.done)return W;W=W.value}return g.Nd(D?W.slice(m.S.length):m.C.get(W))};
return P};Rg.prototype.getValue=function(){return this.C};
Rg.prototype.clone=function(){return new Rg(this.S,this.C)};g.y=Uh.prototype;g.y.MJ=function(D,Q){var m=this.S;m.push(new Rg(D,Q));D=m.length-1;Q=this.S;for(m=Q[D];D>0;){var P=D-1>>1;if(Q[P].S>m.S)Q[D]=Q[P],D=P;else break}Q[D]=m};
g.y.remove=function(){var D=this.S,Q=D.length,m=D[0];if(!(Q<=0)){if(Q==1)D.length=0;else{D[0]=D.pop();D=0;Q=this.S;for(var P=Q.length,W=Q[D];D<P>>1;){var L=D*2+1,u=D*2+2;L=u<P&&Q[u].S<Q[L].S?u:L;if(Q[L].S>W.S)break;Q[D]=Q[L];D=L}Q[D]=W}return m.getValue()}};
g.y.Jp=function(){for(var D=this.S,Q=[],m=D.length,P=0;P<m;P++)Q.push(D[P].getValue());return Q};
g.y.G8=function(){for(var D=this.S,Q=[],m=D.length,P=0;P<m;P++)Q.push(D[P].S);return Q};
g.y.clone=function(){return new Uh(this)};
g.y.isEmpty=function(){return this.S.length===0};
g.y.clear=function(){this.S.length=0};g.Z(Ho,Uh);Ho.prototype.enqueue=function(D,Q){this.MJ(D,Q)};Kn.VP=void 0;Kn.getInstance=function(){return Kn.VP?Kn.VP:Kn.VP=new Kn};
Kn.prototype.S=0;var jw={},I_U=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";jw.assign=function(D){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var m=Q.shift();if(m){if(typeof m!=="object")throw new TypeError(m+"must be non-object");for(var P in m)Object.prototype.hasOwnProperty.call(m,P)&&(D[P]=m[P])}}return D};
jw.Cp=function(D,Q){if(D.length===Q)return D;if(D.subarray)return D.subarray(0,Q);D.length=Q;return D};
var Rsv={oC:function(D,Q,m,P,W){if(Q.subarray&&D.subarray)D.set(Q.subarray(m,m+P),W);else for(var L=0;L<P;L++)D[W+L]=Q[m+L]},
Ql:function(D){var Q,m;var P=m=0;for(Q=D.length;P<Q;P++)m+=D[P].length;var W=new Uint8Array(m);P=m=0;for(Q=D.length;P<Q;P++){var L=D[P];W.set(L,m);m+=L.length}return W}},UtV={oC:function(D,Q,m,P,W){for(var L=0;L<P;L++)D[W+L]=Q[m+L]},
Ql:function(D){return[].concat.apply([],D)}};
jw.KoD=function(){I_U?(jw.LJ=Uint8Array,jw.jM=Uint16Array,jw.SK=Int32Array,jw.assign(jw,Rsv)):(jw.LJ=Array,jw.jM=Array,jw.SK=Array,jw.assign(jw,UtV))};
jw.KoD();var H6V=!0;try{new Uint8Array(1)}catch(D){H6V=!1};var dl={};dl=function(D,Q,m,P){var W=D&65535|0;D=D>>>16&65535|0;for(var L;m!==0;){L=m>2E3?2E3:m;m-=L;do W=W+Q[P++]|0,D=D+W|0;while(--L);W%=65521;D%=65521}return W|D<<16|0};for(var tR={},yA,KmN=[],Zt=0;Zt<256;Zt++){yA=Zt;for(var jGP=0;jGP<8;jGP++)yA=yA&1?3988292384^yA>>>1:yA>>>1;KmN[Zt]=yA}tR=function(D,Q,m,P){m=P+m;for(D^=-1;P<m;P++)D=D>>>8^KmN[(D^Q[P])&255];return D^-1};var DU={};DU={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 xR=[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],r2=[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],NWw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],LH7=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W0=Array(576);$R(W0);var ih=Array(60);$R(ih);var Sw=Array(512);$R(Sw);var pn=Array(256);$R(pn);var XI=Array(29);$R(XI);var GY=Array(30);$R(GY);var o7w,fVr,V67,CQn=!1;var ow;ow=[new C4(0,0,0,0,function(D,Q){var m=65535;for(m>D.mZ-5&&(m=D.mZ-5);;){if(D.Go<=1){zG(D);if(D.Go===0&&Q===0)return 1;if(D.Go===0)break}D.tU+=D.Go;D.Go=0;var P=D.tT+m;if(D.tU===0||D.tU>=P)if(D.Go=D.tU-P,D.tU=P,sj(D,!1),D.pn.Sv===0)return 1;if(D.tU-D.tT>=D.OY-262&&(sj(D,!1),D.pn.Sv===0))return 1}D.MJ=0;if(Q===4)return sj(D,!0),D.pn.Sv===0?3:4;D.tU>D.tT&&sj(D,!1);return 1}),
new C4(4,4,8,4,bh),new C4(4,5,16,8,bh),new C4(4,6,32,32,bh),new C4(4,4,16,16,qe),new C4(8,16,32,32,qe),new C4(8,16,128,128,qe),new C4(8,32,128,256,qe),new C4(32,128,258,1024,qe),new C4(32,258,258,4096,qe)];var qr_={};qr_=function(){this.input=null;this.Os=this.e6=this.w1=0;this.output=null;this.Lp=this.Sv=this.Y2=0;this.msg="";this.state=null;this.gG=2;this.w2=0};var y99=Object.prototype.toString;
f4.prototype.push=function(D,Q){var m=this.pn,P=this.options.chunkSize;if(this.ended)return!1;var W=Q===~~Q?Q:Q===!0?4:0;typeof D==="string"?m.input=rbu(D):y99.call(D)==="[object ArrayBuffer]"?m.input=new Uint8Array(D):m.input=D;m.w1=0;m.e6=m.input.length;do{m.Sv===0&&(m.output=new jw.LJ(P),m.Y2=0,m.Sv=P);D=bow(m,W);if(D!==1&&D!==0)return this.CG(D),this.ended=!0,!1;if(m.Sv===0||m.e6===0&&(W===4||W===2))if(this.options.to==="string"){var L=jw.Cp(m.output,m.Y2);Q=L;L=L.length;if(L<65537&&(Q.subarray&&
H6V||!Q.subarray))Q=String.fromCharCode.apply(null,jw.Cp(Q,L));else{for(var u="",t=0;t<L;t++)u+=String.fromCharCode(Q[t]);Q=u}this.chunks.push(Q)}else Q=jw.Cp(m.output,m.Y2),this.chunks.push(Q)}while((m.e6>0||m.Sv===0)&&D!==1);if(W===4)return(m=this.pn)&&m.state?(P=m.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?D=QC(m,-2):(m.state=null,D=P===113?QC(m,-3):0)):D=-2,this.CG(D),this.ended=!0,D===0;W===2&&(this.CG(0),m.Sv=0);return!0};
f4.prototype.CG=function(D){D===0&&(this.result=this.options.to==="string"?this.chunks.join(""):jw.Ql(this.chunks));this.chunks=[];this.err=D;this.msg=this.pn.msg};var Ne="@@redux/INIT"+VC(),E7n="@@redux/REPLACE"+VC();var g76=typeof Symbol==="function"&&Symbol.observable||"@@observable";var $tV=[0,az4,-3,sa];g.Z(J97,FJ);var SWw=Za7(J97,[0,Lq,A64,mg,az4,mg,-1,sa,az4,sa,-1,Lq,sa,A64,Pw,$tV,mg,-1,sa]);var lV_=-1695913067;var GPr=new g.Fn("adInfoDialogEndpoint");var kcw=new g.Fn("adPingingEndpoint");var X_j=new g.Fn("crossDeviceProgressCommand");var eD=new g.Fn("actionCompanionAdRenderer");var cX=new g.Fn("adActionInterstitialRenderer");var es4=new g.Fn("adDurationRemainingRenderer");var bP=new g.Fn("adHoverTextButtonRenderer");var SIh=new g.Fn("adInfoDialogRenderer");var S5=new g.Fn("adMessageRenderer");var qr=new g.Fn("adPreviewRenderer");var OY=new g.Fn("adsEngagementPanelRenderer");var FIk=new g.Fn("dismissablePanelTextPortraitImageRenderer");var yPm=new g.Fn("adsEngagementPanelSectionListViewModel");var vqV=new g.Fn("flyoutCtaRenderer");var vQ=new g.Fn("imageCompanionAdRenderer");var GV=new g.Fn("instreamAdPlayerOverlayRenderer");var WhP=new g.Fn("instreamSurveyAdBackgroundImageRenderer");var zB=new g.Fn("instreamSurveyAdPlayerOverlayRenderer");var cQ=new g.Fn("instreamSurveyAdRenderer"),tw=new g.Fn("instreamSurveyAdSingleSelectQuestionRenderer"),ds=new g.Fn("instreamSurveyAdMultiSelectQuestionRenderer"),FT=new g.Fn("instreamSurveyAdAnswerRenderer"),O6v=new g.Fn("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var GK=new g.Fn("instreamVideoAdRenderer");var YcN=new g.Fn("textOverlayAdContentRenderer"),a_4=new g.Fn("enhancedTextOverlayAdContentRenderer"),AyP=new g.Fn("imageOverlayAdContentRenderer");var M0=new g.Fn("playerOverlayLayoutRenderer");var DO=new g.Fn("videoInterstitialButtonedCenteredLayoutRenderer");var g4m=new g.Fn("aboveFeedAdLayoutRenderer");var B36=new g.Fn("belowPlayerAdLayoutRenderer");var E47=new g.Fn("inPlayerAdLayoutRenderer");var me=new g.Fn("playerBytesAdLayoutRenderer");var uP=new g.Fn("playerBytesSequenceItemAdLayoutRenderer");var LE=new g.Fn("playerUnderlayAdLayoutRenderer");var Mq=new g.Fn("adIntroRenderer");var SD=new g.Fn("playerBytesSequentialLayoutRenderer");var s17=new g.Fn("slidingTextPlayerOverlayRenderer");var De=new g.Fn("surveyTextInterstitialRenderer");var PL=new g.Fn("videoAdTrackingRenderer");var fwm=new g.Fn("videoInterstitialCenteredLayoutViewModel");var pbV=new g.Fn("simpleAdBadgeRenderer");var $w=new g.Fn("skipAdRenderer"),xtV=new g.Fn("skipButtonRenderer");var V2=new g.Fn("adSlotRenderer");var iP=new g.Fn("squeezebackPlayerSidePanelRenderer");var XbK=new g.Fn("timedPieCountdownRenderer");var Ax=new g.Fn("adAvatarViewModel");var pw=new g.Fn("adBadgeViewModel");var xE=new g.Fn("adButtonViewModel");var ScV=new g.Fn("adDetailsLineViewModel");var ry4=new g.Fn("adDisclosureBannerViewModel");var G4h=new g.Fn("adPodIndexViewModel");var MZN=new g.Fn("imageBackgroundViewModel");var cyP=new g.Fn("adGridCardCollectionViewModel");var Div=new g.Fn("adGridCardTextViewModel");var Q$k=new g.Fn("adPreviewViewModel");var miN=new g.Fn("playerAdAvatarLockupCardButtonedViewModel");var PXU=new g.Fn("skipAdButtonViewModel");var WOV=new g.Fn("skipAdViewModel");var ia$=new g.Fn("timedPieCountdownViewModel");var s$k=new g.Fn("visitAdvertiserLinkViewModel");var Yr=new g.Fn("bannerImageLayoutViewModel");var aZ=new g.Fn("topBannerImageTextIconButtonedLayoutViewModel");var A5=new g.Fn("adsEngagementPanelLayoutViewModel");var sR=new g.Fn("displayUnderlayTextGridCardsLayoutViewModel");g.c1=new g.Fn("browseEndpoint");var LO2=new g.Fn("confirmDialogEndpoint");var b_n=new g.Fn("commandContext");var t8w=new g.Fn("rawColdConfigGroup");var dvu=new g.Fn("rawHotConfigGroup");g.VQ=new g.Fn("commandExecutorCommand");g.Z(Roj,FJ);var UgP={Euh:0,BYv:1,uIT:32,xA0:61,mAc:67,k8v:103,qjT:86,OcO:42,JPz:60,K_9:62,wyT:73,eFD:76,rPT:88,zF0:90,cPO:99,QnT:98,L_v:100,V90:102,AP9:41,W_y:69,lmD:70,icc:71,ESF:2,fjT:27,ANDROID:3,gtF:54,hy0:14,HIc:91,Blx:55,Ry0:24,Kl0:20,DbF:18,NlT:21,tc0:104,u9D:30,eyF:29,Vcx:28,TY0:101,w1c:34,OIF:36,nt9:38,IOS:5,pF0:15,ydO:92,YZx:40,skW:25,XFh:17,MPW:19,EN0:64,fZO:66,FKy:26,S1z:22,C6D:33,TFc:68,d4T:35,oNv:53,jkT:37,Gb0:39,clF:7,Alq:57,Wvc:43,imc:59,lRy:93,vty:74,ZmT:75,PU0:85,aRc:65,Yvh:80,Gqz:8,Lvz:10,
Xry:58,sHT:63,prD:72,JfO:23,amc:11,pyh:13,I_W:12,mOh:16,Hch:56,UAT:31,Gxh:77,Noy:84,v0x:87,bFF:89,tPD:94,zKO:95};g.Z(TG,FJ);TG.prototype.Eo=function(){return kp(this,3)};
TG.prototype.Cf=function(){return kp(this,5)};
TG.prototype.JE=function(D){return Ub(this,5,D)};g.Z(hR,FJ);g.Z(UK6,FJ);g.Z(n4,FJ);g.y=n4.prototype;g.y.getDeviceId=function(){return kp(this,6)};
g.y.AA=function(D){var Q=iZ(this,9,qI,3,!0);Ai(Q,D);return Q[D]};
g.y.getPlayerType=function(){return Ju(this,36)};
g.y.setHomeGroupInfo=function(D){return nB(this,UK6,81,D)};
g.y.clearLocationPlayabilityToken=function(){return DF(this,89)};g.Z(Ej,FJ);Ej.prototype.getValue=function(){return kp(this,ot(this,L6r,2))};
var L6r=[2,3,4,5,6];g.Z(gl,FJ);gl.prototype.setTrackingParams=function(D){return DF(this,1,OgP(D,!1))};g.Z(B0,FJ);g.Z(wl,FJ);wl.prototype.AA=function(D){var Q=iZ(this,5,CI,3,!0);Ai(Q,D);return Q[D]};g.Z(kK,FJ);kK.prototype.getToken=function(){return It(this,2)};
kK.prototype.setToken=function(D){return Ub(this,2,D)};g.Z(JR,FJ);JR.prototype.setSafetyMode=function(D){return KB(this,5,D)};g.Z(lh,FJ);lh.prototype.EU=function(D){return nB(this,n4,1,D)};var ou=new g.Fn("thumbnailLandscapePortraitRenderer");g.uyQ=new g.Fn("changeEngagementPanelVisibilityAction");var EDm=new g.Fn("continuationCommand");g.di2=new g.Fn("openPopupAction");g.TF=new g.Fn("webCommandMetadata");var zvP=new g.Fn("metadataBadgeRenderer");var nDm=new g.Fn("signalServiceEndpoint");var RC=new g.Fn("innertubeCommand");var uq9=new g.Fn("loggingDirectives");var yU7={a_F:"EMBEDDED_PLAYER_MODE_UNKNOWN",iUh:"EMBEDDED_PLAYER_MODE_DEFAULT",PK9:"EMBEDDED_PLAYER_MODE_PFP",ZUc:"EMBEDDED_PLAYER_MODE_PFL"};var Ken=new g.Fn("channelThumbnailEndpoint");var HEm=new g.Fn("embeddedPlayerErrorMessageRenderer");var lej=new g.Fn("embeddedPlayerOverlayVideoDetailsRenderer"),juj=new g.Fn("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),$rr=new g.Fn("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var u09=new g.Fn("embedsInfoPanelRenderer");var teP=new g.Fn("feedbackEndpoint");var zMk=new g.Fn("callToActionButtonViewModel");var bah=new g.Fn("interactionLoggingCommandMetadata");var CT_={bcc:"WEB_DISPLAY_MODE_UNKNOWN",DAx:"WEB_DISPLAY_MODE_BROWSER",NY9:"WEB_DISPLAY_MODE_MINIMAL_UI",t9T:"WEB_DISPLAY_MODE_STANDALONE",n00:"WEB_DISPLAY_MODE_FULLSCREEN"};g.Z(Iw,FJ);Iw.prototype.getPlayerType=function(){return Ju(this,7)};
Iw.prototype.YV=function(){return kp(this,19)};
Iw.prototype.setVideoId=function(D){return Ub(this,19,D)};g.Z(Rw,FJ);g.Z(Uj,FJ);g.Z(H0,FJ);
var qxK=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527];var CXK=new g.Fn("loggingContext");g.Z(K4,FJ);g.Z(jE,FJ);jE.prototype.YV=function(){return It(this,ot(this,sz,1))};
jE.prototype.setVideoId=function(D){return qX(this,1,sz,EN(D))};
jE.prototype.getPlaylistId=function(){return It(this,ot(this,sz,2))};
var sz=[1,2];g.Z(Hoj,FJ);var ww=new g.Fn("changeKeyedMarkersVisibilityCommand");var oZK=new g.Fn("changeMarkersVisibilityCommand");var qR7=new g.Fn("loadMarkersCommand");var fqU=new g.Fn("suggestedActionDataViewModel");var NXw=new g.Fn("timelyActionViewModel");var V7j=new g.Fn("timelyActionsOverlayViewModel");var IDw=new g.Fn("productListItemRenderer");var VeU=new g.Fn("shoppingOverlayRenderer");var Ie_=new g.Fn("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var N94=new g.Fn("adFeedbackEndpoint");var ytK=new g.Fn("menuEndpoint");var $xw=new g.Fn("phoneDialerEndpoint");var Kg6=new g.Fn("sendSmsEndpoint");var Jwu=new g.Fn("copyTextEndpoint");var Za$=new g.Fn("shareEndpoint"),FOV=new g.Fn("shareEntityEndpoint"),T9U=new g.Fn("shareEntityServiceEndpoint"),hMQ=new g.Fn("webPlayerShareEntityServiceEndpoint");g.KX=new g.Fn("urlEndpoint");g.gw=new g.Fn("watchEndpoint");var nZK=new g.Fn("watchPlaylistEndpoint");g.EZ4=new g.Fn("offlineOrchestrationActionCommand");var c_h=new g.Fn("compositeVideoOverlayRenderer");var gZ$=new g.Fn("miniplayerRenderer");var wL$=new g.Fn("paidContentOverlayRenderer");var B9T=new g.Fn("playerMutedAutoplayOverlayRenderer"),wuv=new g.Fn("playerMutedAutoplayEndScreenRenderer");var nrn=new g.Fn("unserializedPlayerResponse"),kH$=new g.Fn("unserializedPlayerResponse");var Jt4=new g.Fn("playlistEditEndpoint");var hS;g.CE=new g.Fn("buttonRenderer");hS=new g.Fn("toggleButtonRenderer");var N3n=new g.Fn("counterfactualRenderer");var lqV=new g.Fn("resolveUrlCommandMetadata");var Iq4=new g.Fn("modifyChannelNotificationPreferenceEndpoint");var wq6=new g.Fn("pingingEndpoint");var RMT=new g.Fn("unsubscribeEndpoint");g.Dn=new g.Fn("subscribeButtonRenderer");var UiU=new g.Fn("subscribeEndpoint");var ix7=new g.Fn("buttonViewModel");var Zh9=new g.Fn("qrCodeRenderer");var KSk={vSh:"LIVING_ROOM_APP_MODE_UNSPECIFIED",OZF:"LIVING_ROOM_APP_MODE_MAIN",HZT:"LIVING_ROOM_APP_MODE_KIDS",ufz:"LIVING_ROOM_APP_MODE_MUSIC",JT0:"LIVING_ROOM_APP_MODE_UNPLUGGED",Qgv:"LIVING_ROOM_APP_MODE_GAMING"};var Wek=new g.Fn("autoplaySwitchButtonRenderer");var mp,gJk,lK7,jU$;mp=new g.Fn("decoratedPlayerBarRenderer");gJk=new g.Fn("chapteredPlayerBarRenderer");lK7=new g.Fn("multiMarkersPlayerBarRenderer");jU$=new g.Fn("chapterRenderer");g.Jnj=new g.Fn("markerRenderer");var Yt7=new g.Fn("decoratedPlayheadRenderer");var drr=new g.Fn("desktopOverlayConfigRenderer");var T3w=new g.Fn("engagementPanelSectionListRenderer");var Le$=new g.Fn("gatedActionsOverlayViewModel");var Um6=new g.Fn("heatMarkerRenderer");var Rwu=new g.Fn("heatmapRenderer");var bEk=new g.Fn("watchToWatchTransitionRenderer");var Rvh=new g.Fn("playlistPanelRenderer");var Hav=new g.Fn("productUpsellSuggestedActionViewModel");var KOP=new g.Fn("suggestedActionTimeRangeTrigger"),j$v=new g.Fn("suggestedActionsRenderer"),$iv=new g.Fn("suggestedActionRenderer");var HK4=new g.Fn("timedMarkerDecorationRenderer");var ld7=new g.Fn("cipher");var Er4=new g.Fn("playerVars");var eM$=new g.Fn("playerVars");var nq=g.Mu.window,vZV,OaV,$K=(nq==null?void 0:(vZV=nq.yt)==null?void 0:vZV.config_)||(nq==null?void 0:(OaV=nq.ytcfg)==null?void 0:OaV.data_)||{};g.ch("yt.config_",$K);var AR=[];var pN9=/^[\w.]*$/,Oon={q:!0,search_query:!0},v7$=String(SE);var iS=new function(){var D=window.document;this.S=window;this.C=D};
g.ch("yt.ads_.signals_.getAdSignalsString",function(D){return rl(Lp(D))});g.bv();var XN4="XMLHttpRequest"in g.Mu?function(){return new XMLHttpRequest}:null;var Yx$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.on(Yx$);var M6$={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"},dfP="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.on(Yx$)),iC7=!1,mfj=yk;g.Z(TX,o4);E2.prototype.then=function(D,Q,m){return this.S?this.S.then(D,Q,m):this.T===1&&D?(D=D.call(m,this.C))&&typeof D.then==="function"?D:Bd(D):this.T===2&&Q?(D=Q.call(m,this.C))&&typeof D.then==="function"?D:gj(D):this};
E2.prototype.getValue=function(){return this.C};
E2.prototype.$goog_Thenable=!0;var wj=!1;var aW=Al||pp;var VRm=/^([0-9\.]+):([0-9\.]+)$/;g.Z(uz,o4);uz.prototype.name="BiscottiError";g.Z(LU,o4);LU.prototype.name="BiscottiMissingError";var F2h={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},db=null;var mQj=g.f9(["data-"]),JUr={};var aqk=0,tJ=g.d9?"webkit":a$?"moz":g.tv?"ms":g.m8?"o":"",AtV=g.Q4("ytDomDomGetNextId")||function(){return++aqk};
g.ch("ytDomDomGetNextId",AtV);var Ufh={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};fU.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fU.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fU.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Vx=g.Mu.ytEventsEventsListeners||{};g.ch("ytEventsEventsListeners",Vx);var jXn=g.Mu.ytEventsEventsCounter||{count:0};g.ch("ytEventsEventsCounter",jXn);var OCr=I$(function(){var D=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){D=!0}});
window.addEventListener("test",null,Q)}catch(m){}return D}),$f4=I$(function(){var D=!1;
try{var Q=Object.defineProperty({},"capture",{get:function(){D=!0}});
window.addEventListener("test",null,Q)}catch(m){}return D});var Ea;Ea=window;g.T3=Ea.ytcsi&&Ea.ytcsi.now?Ea.ytcsi.now:Ea.performance&&Ea.performance.timing&&Ea.performance.now&&Ea.performance.timing.navigationStart?function(){return Ea.performance.timing.navigationStart+Ea.performance.now()}:function(){return(new Date).getTime()};g.CV(TP,g.v);TP.prototype.j=function(D){D.S===void 0&&HCP(D);var Q=D.S;D.C===void 0&&HCP(D);this.S=new g.Yq(Q,D.C)};
TP.prototype.wh=function(){return this.S||new g.Yq};
TP.prototype.TO=function(){if(this.S){var D=(0,g.T3)();if(this.B!=0){var Q=this.N,m=this.S,P=Q.x-m.x;Q=Q.y-m.y;P=Math.sqrt(P*P+Q*Q)/(D-this.B);this.C[this.T]=Math.abs((P-this.J)/this.J)>.5?1:0;for(m=Q=0;m<4;m++)Q+=this.C[m]||0;Q>=3&&this.U();this.J=P}this.B=D;this.N=this.S;this.T=(this.T+1)%4}};
TP.prototype.Bq=function(){g.qv(this.Z);g.yx(this.Iy)};g.Z(hJ,g.v);hJ.prototype.W=function(D,Q,m,P,W){m=g.xK((0,g.d$)(m,P||this.Kj));m={target:D,name:Q,callback:m};var L;W&&OCr()&&(L={passive:!0});D.addEventListener(Q,m.callback,L);this.U.push(m);return m};
hJ.prototype.qY=function(D){for(var Q=0;Q<this.U.length;Q++)if(this.U[Q]==D){this.U.splice(Q,1);D.target.removeEventListener(D.name,D.callback);break}};
hJ.prototype.Bq=function(){g.EI(this);g.v.prototype.Bq.call(this)};var Lb_=["att/get"],Qfk=["embedded_player"],bPj=["account/get_setting_values"],pu4=["share/get_share_panel"],xiV=["share/get_web_player_share_panel"],Xu4=["feedback"],SxQ=["notification/modify_channel_preference"],mLP=["player"],rt2=["browse/edit_playlist"],oj_=["account/set_setting"],GHV=["subscription/subscribe"],Me2=["subscription/unsubscribe"],i$j=["next","unplugged/watch_next"];var B5;g.gb=I$(function(){try{var D=new Jv;var Q=D.isAvailable()?D:null}catch(m){return null}return Q?new g.g2(Q):null});
B5=I$(function(){var D=new x37;return D.isAvailable()?new g.g2(D):null});g.ctP=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.ch("yt.msgs_",g.ctP);RS.prototype.Rh=function(D,Q){D={};var m=[];"USER_SESSION_ID"in $K&&m.push({key:"u",value:g.YK("USER_SESSION_ID")});if(m=WK_(m))D.Authorization=m,m=Q=Q==null?void 0:Q.sessionIndex,m===void 0&&(m=Number(g.YK("SESSION_INDEX",0)),m=isNaN(m)?0:m),g.oi("voice_search_auth_header_removal")||(D["X-Goog-AuthUser"]=m.toString()),"INNERTUBE_HOST_OVERRIDE"in $K||(D["X-Origin"]=window.location.origin),Q===void 0&&"DELEGATED_SESSION_ID"in $K&&(D["X-Goog-PageId"]=g.YK("DELEGATED_SESSION_ID"));return D};var tE={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var j0=g.Q4("ytglobal.prefsUserPrefsPrefs_")||{};g.ch("ytglobal.prefsUserPrefsPrefs_",j0);var UI;g.y=xfj.prototype;g.y.get=function(D,Q){v5(D);e0(D);D=j0[D]!==void 0?j0[D].toString():null;return D!=null?D:Q?Q:""};
g.y.set=function(D,Q){v5(D);e0(D);if(Q==null)throw Error("ExpectedNotNull");j0[D]=Q.toString()};
g.y.remove=function(D){v5(D);e0(D);delete j0[D]};
g.y.save=function(){var D=!0;g.oi("web_secure_pref_cookie_killswitch")&&(D=!1);g.Jl(this.S,this.dump(),63072E3,this.C,D)};
g.y.clear=function(){g.H9n(j0)};
g.y.dump=function(){var D=[],Q;for(Q in j0)j0.hasOwnProperty(Q)&&D.push(Q+"="+encodeURIComponent(String(j0[Q])));return D.join("&")};
g.y.parse=function(D){D=decodeURIComponent(D).split("&");for(var Q=0;Q<D.length;Q++){var m=D[Q].split("="),P=m[0];(m=m[1])&&(j0[P]=m.toString())}};var rU6={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"},oR9={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},fxw={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},MR9={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.Z(g.OI,Error);AJ.prototype.Gm=function(D,Q){return pU(D,1,Q)};
AJ.prototype.Oq=function(D){(D=this.S.get(D))&&D()};g.Q4("yt.scheduler.instance.timerIdMap_");g.Z(X7,AJ);X7.prototype.N5=function(D){if(D===void 0||!Number.isNaN(Number(D))){var Q=g.Q4("yt.scheduler.instance.cancelJob");Q?Q(D):g.bS(D)}};
X7.prototype.start=function(){var D=g.Q4("yt.scheduler.instance.start");D&&D()};
X7.prototype.pause=function(){var D=g.Q4("yt.scheduler.instance.pause");D&&D()};
g.KJ=g.S0();MZ.prototype.set=function(D,Q,m,P){m=m||31104E3;this.remove(D);if(this.S)try{this.S.set(D,Q,Date.now()+m*1E3);return}catch(L){}var W="";if(P)try{W=escape(g.e6(Q))}catch(L){return}else W=escape(Q);g.Jl(D,W,m,this.C)};
MZ.prototype.get=function(D,Q){var m=void 0,P=!this.S;if(!P)try{m=this.S.get(D)}catch(W){P=!0}if(P&&(m=g.lS(D))&&(m=unescape(m),Q))try{m=JSON.parse(m)}catch(W){this.remove(D),m=void 0}return m};
MZ.prototype.remove=function(D){this.S&&this.S.remove(D);g.Ii(D,"/",this.C)};
MZ.prototype.getCreationTime=function(D){return this.S&&(D=(this.S.C(D)||{}).creation,typeof D==="number")?D:null};var c5=function(){var D;return function(){D||(D=new MZ("ytidb"));return D}}();var i8=[],Qe,s4=!1;var g1={},mpm=(g1.AUTH_INVALID="No user identifier specified.",g1.EXPLICIT_ABORT="Transaction was explicitly aborted.",g1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",g1.MISSING_INDEX="Index not created.",g1.MISSING_OBJECT_STORES="Object stores not created.",g1.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",g1.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",g1.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",g1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",g1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",g1.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",g1.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",g1),Bw={},PDu=(Bw.AUTH_INVALID="ERROR",Bw.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Bw.EXPLICIT_ABORT="IGNORED",
Bw.IDB_NOT_SUPPORTED="ERROR",Bw.MISSING_INDEX="WARNING",Bw.MISSING_OBJECT_STORES="ERROR",Bw.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Bw.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Bw.QUOTA_EXCEEDED="WARNING",Bw.QUOTA_MAYBE_EXCEEDED="WARNING",Bw.UNKNOWN_ABORT="WARNING",Bw.INCOMPATIBLE_DB_VERSION="WARNING",Bw),w1={},Wq6=(w1.AUTH_INVALID=!1,w1.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,w1.EXPLICIT_ABORT=!1,w1.IDB_NOT_SUPPORTED=!1,w1.MISSING_INDEX=!1,w1.MISSING_OBJECT_STORES=!1,w1.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,w1.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,w1.QUOTA_EXCEEDED=!1,w1.QUOTA_MAYBE_EXCEEDED=!0,w1.UNKNOWN_ABORT=!0,w1.INCOMPATIBLE_DB_VERSION=!1,w1);g.Z(g.z3,g.OI);g.Z(b8,g.z3);g.Z(qT,Error);var iJn=["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.NT.all=function(D){return new g.NT(new Ve(function(Q,m){var P=[],W=D.length;W===0&&Q(P);for(var L={SU:0};L.SU<D.length;L={SU:L.SU},++L.SU)g.NT.resolve(D[L.SU]).then(function(u){return function(t){P[u.SU]=t;W--;W===0&&Q(P)}}(L)).catch(function(u){m(u)})}))};
g.NT.resolve=function(D){return new g.NT(new Ve(function(Q,m){D instanceof g.NT?D.then(Q,m):Q(D)}))};
g.NT.reject=function(D){return new g.NT(new Ve(function(Q,m){m(D)}))};
g.NT.prototype.then=function(D,Q){var m=this,P=D!=null?D:Lqn,W=Q!=null?Q:sOr;return new g.NT(new Ve(function(L,u){m.state.status==="PENDING"?(m.S.push(function(){uY6(m,m,P,L,u)}),m.C.push(function(){dpm(m,m,W,L,u)})):m.state.status==="FULFILLED"?uY6(m,m,P,L,u):m.state.status==="REJECTED"&&dpm(m,m,W,L,u)}))};
g.NT.prototype.catch=function(D){return this.then(void 0,D)};g.y=oG_.prototype;g.y.add=function(D,Q,m){return g.BD(this,[D],{mode:"readwrite",wB:!0,commit:hk()},function(P){return P.objectStore(D).add(Q,m)})};
g.y.clear=function(D){return g.BD(this,[D],{mode:"readwrite",wB:!0},function(Q){return Q.objectStore(D).clear()})};
g.y.close=function(){this.S.close();var D;((D=this.options)==null?0:D.closed)&&this.options.closed()};
g.y.count=function(D,Q){return g.BD(this,[D],{mode:"readonly",wB:!0,commit:hk()},function(m){return m.objectStore(D).count(Q)})};
g.y.delete=function(D,Q){return g.BD(this,[D],{mode:"readwrite",wB:!0,commit:hk()&&!(Q instanceof IDBKeyRange)},function(m){return m.objectStore(D).delete(Q)})};
g.y.get=function(D,Q){return g.BD(this,[D],{mode:"readonly",wB:!0,commit:hk()},function(m){return m.objectStore(D).get(Q)})};
g.y.getAll=function(D,Q,m){return g.BD(this,[D],{mode:"readonly",wB:!0},function(P){return P.objectStore(D).getAll(Q,m)})};
g.y.objectStoreNames=function(){return Array.from(this.S.objectStoreNames)};
g.y.getName=function(){return this.S.name};
g.y=nr.prototype;g.y.add=function(D,Q){return ZH(this.S.add(D,Q))};
g.y.autoIncrement=function(){return this.S.autoIncrement};
g.y.clear=function(){return ZH(this.S.clear()).then(function(){})};
g.y.count=function(D){return ZH(this.S.count(D))};
g.y.delete=function(D){return D instanceof IDBKeyRange?yN$(this,D):ZH(this.S.delete(D))};
g.y.get=function(D){return ZH(this.S.get(D))};
g.y.getAll=function(D,Q){return"getAll"in IDBObjectStore.prototype?ZH(this.S.getAll(D,Q)):ZJu(this,D,Q)};
g.y.index=function(D){try{return new nGj(this.S.index(D))}catch(Q){if(Q instanceof Error&&Q.name==="NotFoundError")throw new qT(D,this.S.name);throw Q;}};
g.y.getName=function(){return this.S.name};
g.y.keyPath=function(){return this.S.keyPath};
Jk.prototype.abort=function(){this.S.abort();this.C=!0;throw new g.z3("EXPLICIT_ABORT");};
Jk.prototype.commit=function(){if(!this.C){var D,Q;(Q=(D=this.S).commit)==null||Q.call(D)}};
Jk.prototype.objectStore=function(D){D=this.S.objectStore(D);var Q=this.T.get(D);Q||(Q=new nr(D),this.T.set(D,Q));return Q};
g.y=nGj.prototype;g.y.count=function(D){return ZH(this.S.count(D))};
g.y.delete=function(D){return g.HD(this,{query:D},function(Q){return Q.delete().then(function(){return g.RW(Q)})})};
g.y.get=function(D){return ZH(this.S.get(D))};
g.y.getAll=function(D,Q){return"getAll"in IDBIndex.prototype?ZH(this.S.getAll(D,Q)):EGn(this,D,Q)};
g.y.keyPath=function(){return this.S.keyPath};
g.y.unique=function(){return this.S.unique};
Kr.prototype.delete=function(){return ZH(this.cursor.delete()).then(function(){})};
Kr.prototype.getValue=function(){return this.cursor.value};
Kr.prototype.update=function(D){return ZH(this.cursor.update(D))};ea.prototype.C=function(D,Q,m){m=m===void 0?{}:m;return Btu(D,Q,m)};
ea.prototype.delete=function(D){D=D===void 0?{}:D;return $D(this.name,D)};
ea.prototype.open=function(){function D(){var L,u,t,z,b,q,C,f,V,N;return g.U(function(h){switch(h.C){case 1:return u=(L=Error().stack)!=null?L:"",g.h4(h,2),g.I(h,m.C(m.name,m.options.version,W),4);case 4:for(var B=t=h.S,J=m.options,k=[],R=g.T(Object.keys(J.yq)),e=R.next();!e.done;e=R.next()){e=e.value;var a=J.yq[e],G=a.kiW===void 0?Number.MAX_VALUE:a.kiW;!(B.S.version>=a.NO)||B.S.version>=G||B.S.objectStoreNames.contains(e)||k.push(e)}z=k;if(z.length===0){h.Nv(5);break}b=Object.keys(m.options.yq);
q=t.objectStoreNames();if(m.J<g.fp("ytidb_reopen_db_retries",0))return m.J++,t.close(),Lr(new g.z3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:m.name,expectedObjectStores:b,foundObjectStores:q})),h.return(D());if(!(m.B<g.fp("ytidb_remake_db_retries",1))){h.Nv(6);break}m.B++;return g.I(h,m.delete(),7);case 7:return Lr(new g.z3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:m.name,expectedObjectStores:b,foundObjectStores:q})),h.return(D());case 6:throw new b8(q,b);case 5:return h.return(t);case 2:C=
g.w7(h);if(C instanceof DOMException?C.name!=="VersionError":"DOMError"in self&&C instanceof DOMError?C.name!=="VersionError":!(C instanceof Object&&"message"in C)||C.message!=="An attempt was made to open a database using a lower version than the existing version."){h.Nv(8);break}return g.I(h,m.C(m.name,void 0,Object.assign({},W,{upgrade:void 0})),9);case 9:f=h.S;V=f.S.version;if(m.options.version!==void 0&&V>m.options.version+1)throw f.close(),m.T=!1,wVh(m,V);return h.return(f);case 8:throw Q(),
C instanceof Error&&!g.oi("ytidb_async_stack_killswitch")&&(C.stack=C.stack+"\n"+u.substring(u.indexOf("\n")+1)),oW(C,m.name,"",(N=m.options.version)!=null?N:-1);}})}
function Q(){m.S===P&&(m.S=void 0)}
var m=this;if(!this.T)throw wVh(this);if(this.S)return this.S;var P,W={blocking:function(L){L.close()},
closed:Q,ANy:Q,upgrade:this.options.upgrade};return this.S=P=D()};var O4=new ea("YtIdbMeta",{yq:{databases:{NO:1}},upgrade:function(D,Q){Q(1)&&g.E4(D,"databases",{keyPath:"actualName"})}});var xD,pr=new function(){}(new function(){});new g.zz;g.Z(rV,ea);rV.prototype.C=function(D,Q,m){m=m===void 0?{}:m;return(this.options.shared?jO4:Kq7)(D,Q,Object.assign({},m))};
rV.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?OJP:$p6)(this.name,D)};var D52={},aIh=g.G3("ytGcfConfig",{yq:(D52.coldConfigStore={NO:1},D52.hotConfigStore={NO:1},D52),shared:!1,upgrade:function(D,Q){Q(1)&&(g.l8(g.E4(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.l8(g.E4(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.Z(cD,g.v);cD.prototype.Bq=function(){for(var D=g.T(this.C),Q=D.next();!Q.done;Q=D.next()){var m=this.S;Q=m.indexOf(Q.value);Q>=0&&m.splice(Q,1)}this.C.length=0;g.v.prototype.Bq.call(this)};iI.prototype.JE=function(D){this.hotHashData=D;g.ch("yt.gcf.config.hotHashData",this.hotHashData||null)};var QrK=typeof TextEncoder!=="undefined"?new TextEncoder:null,IxP=QrK?function(D){return QrK.encode(D)}:function(D){D=g.nk(D);
for(var Q=new Uint8Array(D.length),m=0;m<Q.length;m++)Q[m]=D[m];return Q};var WV7={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},so7={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};z0.prototype.R_=function(){return{version:this.version,args:this.args}};bI.prototype.toString=function(){return this.topic};var m54=g.Q4("ytPubsub2Pubsub2Instance")||new g.TY;g.TY.prototype.subscribe=g.TY.prototype.subscribe;g.TY.prototype.unsubscribeByKey=g.TY.prototype.Sc;g.TY.prototype.publish=g.TY.prototype.publish;g.TY.prototype.clear=g.TY.prototype.clear;g.ch("ytPubsub2Pubsub2Instance",m54);var oo=g.Q4("ytPubsub2Pubsub2SubscribedKeys")||{};g.ch("ytPubsub2Pubsub2SubscribedKeys",oo);var fR=g.Q4("ytPubsub2Pubsub2TopicToKeys")||{};g.ch("ytPubsub2Pubsub2TopicToKeys",fR);var yvj=g.Q4("ytPubsub2Pubsub2IsAsync")||{};
g.ch("ytPubsub2Pubsub2IsAsync",yvj);g.ch("ytPubsub2Pubsub2SkipSubKey",null);var y_=void 0,NR=void 0;var kYm=g.fp("max_body_size_to_compress",5E5),Jvh=g.fp("min_body_size_to_compress",500),hE=!0,Bf=0,gk=0,RX7=g.fp("compression_performance_threshold_lr",250),UPh=g.fp("slow_compressions_before_abandon_count",4),FM=!1,T0=new Map,nR=1,lxm=!0;g.y=kT.prototype;g.y.writeThenSend=function(D,Q){var m=this;Q=Q===void 0?{}:Q;if(wk(this)&&this.S){var P={url:D,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.EN.set(P,this.Sb).then(function(W){P.id=W;m.ra.kP()&&m.XB(P)}).catch(function(W){m.XB(P);
JE(m,W)})}else this.sendFn(D,Q)};
g.y.sendThenWrite=function(D,Q,m){var P=this;Q=Q===void 0?{}:Q;if(wk(this)&&this.S){var W={url:D,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.Mv&&this.Mv("nwl_skip_retry")&&(W.skipRetry=m);if(this.ra.kP()||this.Mv&&this.Mv("nwl_aggressive_send_then_write")&&!W.skipRetry){if(!W.skipRetry){var L=Q.onError?Q.onError:function(){};
Q.onError=function(u,t){return g.U(function(z){if(z.C==1)return g.I(z,P.EN.set(W,P.Sb).catch(function(b){JE(P,b)}),2);
L(u,t);g.T7(z)})}}this.sendFn(D,Q,W.skipRetry)}else this.EN.set(W,this.Sb).catch(function(u){P.sendFn(D,Q,W.skipRetry);
JE(P,u)})}else m=this.Mv&&this.Mv("nwl_skip_retry")&&m,this.sendFn(D,Q,m)};
g.y.sendAndWrite=function(D,Q){var m=this;Q=Q===void 0?{}:Q;if(wk(this)&&this.S){var P={url:D,options:Q,timestamp:this.now(),status:"NEW",sendCount:0},W=!1,L=Q.onSuccess?Q.onSuccess:function(){};
P.options.onSuccess=function(u,t){P.id!==void 0?m.EN.N1(P.id,m.Sb):W=!0;m.ra.Jk&&m.Mv&&m.Mv("vss_network_hint")&&m.ra.Jk(!0);L(u,t)};
this.sendFn(P.url,P.options,void 0,!0);this.EN.set(P,this.Sb).then(function(u){P.id=u;W&&m.EN.N1(P.id,m.Sb)}).catch(function(u){JE(m,u)})}else this.sendFn(D,Q,void 0,!0)};
g.y.Xg=function(){var D=this;if(!wk(this))throw Error("IndexedDB is not supported: throttleSend");this.C||(this.C=this.MO.Gm(function(){var Q;return g.U(function(m){if(m.C==1)return g.I(m,D.EN.aS("NEW",D.Sb),2);if(m.C!=3)return Q=m.S,Q?g.I(m,D.XB(Q),3):(D.kO(),m.return());D.C&&(D.C=0,D.Xg());g.T7(m)})},this.A3))};
g.y.kO=function(){this.MO.N5(this.C);this.C=0};
g.y.XB=function(D){var Q=this,m;return g.U(function(P){switch(P.C){case 1:if(!wk(Q))throw Error("IndexedDB is not supported: immediateSend");if(D.id===void 0){P.Nv(2);break}return g.I(P,Q.EN.Bcx(D.id,Q.Sb),3);case 3:(m=P.S)||Q.fE(Error("The request cannot be found in the database."));case 2:if(Q.jr(D,Q.V1)){P.Nv(4);break}Q.fE(Error("Networkless Logging: Stored logs request expired age limit"));if(D.id===void 0){P.Nv(5);break}return g.I(P,Q.EN.N1(D.id,Q.Sb),5);case 5:return P.return();case 4:D.skipRetry||
(D=vR_(Q,D));if(!D){P.Nv(0);break}if(!D.skipRetry||D.id===void 0){P.Nv(8);break}return g.I(P,Q.EN.N1(D.id,Q.Sb),8);case 8:Q.sendFn(D.url,D.options,!!D.skipRetry),g.T7(P)}})};
g.y.jr=function(D,Q){D=D.timestamp;return this.now()-D>=Q?!1:!0};
g.y.dI=function(){var D=this;if(!wk(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.EN.aS("QUEUED",this.Sb).then(function(Q){Q&&!D.jr(Q,D.Q1)?D.MO.Gm(function(){return g.U(function(m){if(m.C==1)return Q.id===void 0?m.Nv(2):g.I(m,D.EN.O8(Q.id,D.Sb),2);D.dI();g.T7(m)})}):D.ra.kP()&&D.Xg()})};var lI;var q2n={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var PFK={},GYk=g.G3("ServiceWorkerLogsDatabase",{yq:(PFK.SWHealthLog={NO:1},PFK),shared:!0,upgrade:function(D,Q){Q(1)&&g.l8(g.E4(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Ui={},Phm=0;var Hf;jI.prototype.requestComplete=function(D,Q){Q&&(this.C=!0);D=this.removeParams(D);this.S.get(D)||this.S.set(D,Q)};
jI.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.S.get(D))?!1:D===!1&&this.C?!0:null};
jI.prototype.removeParams=function(D){return D.split("?")[0]};
jI.prototype.removeParams=jI.prototype.removeParams;jI.prototype.isEndpointCFR=jI.prototype.isEndpointCFR;jI.prototype.requestComplete=jI.prototype.requestComplete;jI.getInstance=$T;g.Z(eI,g.zt);g.y=eI.prototype;g.y.kP=function(){return this.S.kP()};
g.y.Jk=function(D){this.S.S=D};
g.y.Uy=function(){var D=window.navigator.onLine;return D===void 0?!0:D};
g.y.Bw=function(){this.C=!0};
g.y.listen=function(D,Q){return this.S.listen(D,Q)};
g.y.KL=function(D){D=Uv(this.S,D);D.then(function(Q){g.oi("use_cfr_monitor")&&$T().requestComplete("generate_204",Q)});
return D};
eI.prototype.sendNetworkCheckRequest=eI.prototype.KL;eI.prototype.listen=eI.prototype.listen;eI.prototype.enableErrorFlushing=eI.prototype.Bw;eI.prototype.getWindowStatus=eI.prototype.Uy;eI.prototype.networkStatusHint=eI.prototype.Jk;eI.prototype.isNetworkAvailable=eI.prototype.kP;eI.getInstance=swu;g.Z(g.vf,g.zt);g.vf.prototype.kP=function(){var D=g.Q4("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.C)():!0};
g.vf.prototype.Jk=function(D){var Q=g.Q4("yt.networkStatusManager.instance.networkStatusHint").bind(this.C);Q&&Q(D)};
g.vf.prototype.KL=function(D){var Q=this,m;return g.U(function(P){m=g.Q4("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.C);return g.oi("skip_network_check_if_cfr")&&$T().isEndpointCFR("generate_204")?P.return(new Promise(function(W){var L;Q.Jk(((L=window.navigator)==null?void 0:L.onLine)||!0);W(Q.kP())})):m?P.return(m(D)):P.return(!0)})};var Oi;g.Z(ao,kT);ao.prototype.writeThenSend=function(D,Q){Q||(Q={});Q=pR(D,Q);g.aS()||(this.S=!1);kT.prototype.writeThenSend.call(this,D,Q)};
ao.prototype.sendThenWrite=function(D,Q,m){Q||(Q={});Q=pR(D,Q);g.aS()||(this.S=!1);kT.prototype.sendThenWrite.call(this,D,Q,m)};
ao.prototype.sendAndWrite=function(D,Q){Q||(Q={});Q=pR(D,Q);g.aS()||(this.S=!1);kT.prototype.sendAndWrite.call(this,D,Q)};
ao.prototype.awaitInitialization=function(){return this.T.promise};var zLh=g.Mu.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.ch("ytNetworklessLoggingInitializationOptions",zLh);g.xT.prototype.isReady=function(){!this.config_&&LQP()&&(this.config_=g.uI());return!!this.config_};var W$4,rk,MR;W$4=g.Mu.ytPubsubPubsubInstance||new g.TY;rk=g.Mu.ytPubsubPubsubSubscribedKeys||{};MR=g.Mu.ytPubsubPubsubTopicToKeys||{};g.G0=g.Mu.ytPubsubPubsubIsSynchronous||{};g.TY.prototype.subscribe=g.TY.prototype.subscribe;g.TY.prototype.unsubscribeByKey=g.TY.prototype.Sc;g.TY.prototype.publish=g.TY.prototype.publish;g.TY.prototype.clear=g.TY.prototype.clear;g.ch("ytPubsubPubsubInstance",W$4);g.ch("ytPubsubPubsubTopicToKeys",MR);g.ch("ytPubsubPubsubIsSynchronous",g.G0);
g.ch("ytPubsubPubsubSubscribedKeys",rk);var VEP={};g.Z(bE,g.v);bE.prototype.append=function(D){if(!this.C)throw Error("This does not support the append operation");D=D.nj();this.nj().appendChild(D)};
g.Z(qF,bE);qF.prototype.nj=function(){return this.S};g.Z(CP,g.v);CP.prototype.onTouchStart=function(D){this.U=!0;this.C=D.touches.length;this.S.isActive()&&(this.S.stop(),this.J=!0);D=D.touches;this.N=Z46(this,D)||D.length!=1;var Q=D.item(0);this.N||!Q?this.j=this.Z=Infinity:(this.Z=Q.clientX,this.j=Q.clientY);for(Q=this.T.length=0;Q<D.length;Q++){var m=D.item(Q);this.T.push(m.identifier)}};
CP.prototype.onTouchMove=function(D){D=D.changedTouches.item(0);var Q;if(Q=Hb()){Q=g.Kg();var m="";if(N$_())m=/Windows (?:NT|Phone) ([0-9.]+)/,m=(Q=m.exec(Q))?Q[1]:"0.0";else if(Hb())m=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,m=(Q=m.exec(Q))&&Q[1].replace(/_/g,".");else if(K6())m=/Mac OS X ([0-9_.]+)/,m=(Q=m.exec(Q))?Q[1].replace(/_/g,"."):"10";else if(I2(g.Kg(),"KaiOS"))m=/(?:KaiOS)\/(\S+)/i,m=(Q=m.exec(Q))&&Q[1];else if(V26())m=/Android\s+([^\);]+)(\)|;)/,m=(Q=m.exec(Q))&&Q[1];else if(RG()?ex.platform===
"Chrome OS":a2("CrOS"))m=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,m=(Q=m.exec(Q))&&Q[1];Q=!(g.HK(m||"",8)>=0)}if(Q||D&&Math.pow(D.clientX-this.Z,2)+Math.pow(D.clientY-this.j,2)>25)this.B=!0};
CP.prototype.onTouchEnd=function(D){var Q=D.changedTouches;Q&&this.U&&this.C==1&&!this.B&&!this.J&&!this.N&&Z46(this,Q)&&(this.TO=D,this.S.start());this.C=D.touches.length;this.C===0&&(this.B=this.U=!1,this.T.length=0);this.J=!1};var ol=Date.now().toString();var Zy={};var gA=Symbol("injectionDeps");Tc.prototype.toString=function(){return"InjectionToken("+this.name+")"};
hLh.prototype.resolve=function(D){return D instanceof hj?Bq(this,D.key,[],!0):Bq(this,D,[])};var wA;var Jj=window;var Uk=g.oi("web_enable_lifecycle_monitoring")&&lE()!==0,IU_=g.oi("web_enable_lifecycle_monitoring");kGw.prototype.cancel=function(){for(var D=g.T(this.S),Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.jobId===void 0||Q.Lx||this.scheduler.N5(Q.jobId),Q.Lx=!0;this.C.resolve()};g.y=Hq.prototype;g.y.install=function(D){this.plugins.push(D);return this};
g.y.uninstall=function(){var D=this;g.e$.apply(0,arguments).forEach(function(Q){Q=D.plugins.indexOf(Q);Q>-1&&D.plugins.splice(Q,1)})};
g.y.transition=function(D,Q){var m=this;Uk&&Blk(this.state);var P=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(u){return u===m.state&&L.to===D}):L.from===m.state&&L.to===D});
if(P){this.C&&(JRk(this.C),this.C=void 0);RL9(this,D,Q);this.state=D;Uk&&Il(this.state);P=P.action.bind(this);var W=this.plugins.filter(function(L){return L[D]}).map(function(L){return L[D]});
P(lU7(this,W),Q)}else throw Error("no transition specified from "+this.state+" to "+D);};
g.y.ZOx=function(D){var Q=g.e$.apply(1,arguments);g.S0();for(var m=g.T(D),P=m.next(),W={};!P.done;W={QY:void 0},P=m.next())W.QY=P.value,Dp7(function(L){return function(){jF(L.QY.name);vq(function(){return L.QY.callback.apply(L.QY,g.on(Q))});
eF(L.QY.name)}}(W))};
g.y.iOx=function(D){var Q=g.e$.apply(1,arguments),m,P,W,L;return g.U(function(u){u.C==1&&(g.S0(),m=g.T(D),P=m.next(),W={});if(u.C!=3){if(P.done)return u.Nv(0);W.S$=P.value;W.i_=void 0;L=function(t){return function(){jF(t.S$.name);var z=vq(function(){return t.S$.callback.apply(t.S$,g.on(Q))});
OE(z)?t.i_=g.oi("web_lifecycle_error_handling_killswitch")?z.then(function(){eF(t.S$.name)}):z.then(function(){eF(t.S$.name)},function(b){w07(b);
eF(t.S$.name)}):eF(t.S$.name)}}(W);
Dp7(L);return W.i_?g.I(u,W.i_,3):u.Nv(3)}W={S$:void 0,i_:void 0};P=m.next();return u.Nv(2)})};
g.y.CS=function(D){var Q=g.e$.apply(1,arguments),m=this,P=D.map(function(W){return{h1:function(){jF(W.name);vq(function(){return W.callback.apply(W,g.on(Q))});
eF(W.name)},
priority:KP(m,W)}});
P.length&&(this.C=new kGw(P))};
g.i6.Object.defineProperties(Hq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Yj;g.Z(Ok,Hq);Ok.prototype.J=function(D,Q){var m=this;this.S=g.xt(0,function(){m.currentState==="application_navigating"&&m.transition("none")},5E3);
D(Q==null?void 0:Q.event)};
Ok.prototype.N=function(D,Q){this.S&&(g.KJ.N5(this.S),this.S=null);D(Q==null?void 0:Q.event)};var oC=[];g.ch("yt.logging.transport.getScrapedGelPayloads",function(){return oC});al.prototype.storePayload=function(D,Q){D=Aj(D);this.store[D]?this.store[D].push(Q):(this.C={},this.store[D]=[Q]);this.S++;g.oi("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return D};
al.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var Q=xj(this,D.keys.splice(0,1)[0]),m=[],P=0;P<Q.length;P++)this.store[Q[P]]&&D.sizeLimit&&(this.store[Q[P]].length<=D.sizeLimit?(m.push.apply(m,g.on(this.store[Q[P]])),delete this.store[Q[P]]):m.push.apply(m,g.on(this.store[Q[P]].splice(0,D.sizeLimit))));this.S-=m.length;(D==null?0:D.sizeLimit)&&m.length<(D==null?void 0:D.sizeLimit)&&(D.sizeLimit-=m.length,m.push.apply(m,g.on(this.smartExtractMatchingEntries(D))));
return m};
al.prototype.extractMatchingEntries=function(D){D=xj(this,D);for(var Q=[],m=0;m<D.length;m++)this.store[D[m]]&&(Q.push.apply(Q,g.on(this.store[D[m]])),delete this.store[D[m]]);this.S-=Q.length;return Q};
al.prototype.getSequenceCount=function(D){D=xj(this,D);for(var Q=0,m=0;m<D.length;m++){var P=void 0;Q+=((P=this.store[D[m]])==null?void 0:P.length)||0}return Q};
al.prototype.getSequenceCount=al.prototype.getSequenceCount;al.prototype.extractMatchingEntries=al.prototype.extractMatchingEntries;al.prototype.smartExtractMatchingEntries=al.prototype.smartExtractMatchingEntries;al.prototype.storePayload=al.prototype.storePayload;var Dv4=g.fp("initial_gel_batch_timeout",2E3),cR7=g.fp("gel_queue_timeout_max_ms",6E4),QiP=g.fp("gel_min_batch_size",5),m0=void 0,bpr=new XE,zE7=new XE,ME_=new XE,GG6=new XE,Wi,zq=!0,Cb=1,rA=new Map,u4=g.Mu.ytLoggingTransportTokensToCttTargetIds_||{};g.ch("ytLoggingTransportTokensToCttTargetIds_",u4);var Lb=g.Mu.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.ch("ytLoggingTransportTokensToJspbCttTargetIds_",Lb);var cq={},H49=!1;var fb=g.Mu.ytLoggingGelSequenceIdObj_||{};g.ch("ytLoggingGelSequenceIdObj_",fb);var xv$=[];var EyP,kH=g.Mu.ytLoggingDocDocumentNonce_;kH||(kH=g.V$(16),g.ch("ytLoggingDocDocumentNonce_",kH));EyP=kH;var Tjn={I7:0,Fl0:1,t6y:2,eB:3,V6c:4,g0T:5,sgW:6,SHARE:7,zjx:8,szc:9,ou9:10,N3y: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 oyw=1;g.y=NJ.prototype;g.y.getAsJson=function(){var D={};this.S.trackingParams!==void 0?D.trackingParams=this.S.trackingParams:(D.veType=this.S.veType,this.S.veCounter!==void 0&&(D.veCounter=this.S.veCounter),this.S.elementIndex!==void 0&&(D.elementIndex=this.S.elementIndex));this.S.dataElement!==void 0&&(D.dataElement=this.S.dataElement.getAsJson());this.S.youtubeData!==void 0&&(D.youtubeData=this.S.youtubeData);this.S.isCounterfactual&&(D.isCounterfactual=!0);return D};
g.y.getAsJspb=function(){var D=new gl;this.S.trackingParams!==void 0?D.setTrackingParams(this.S.trackingParams):(this.S.veType!==void 0&&DF(D,2,b2(this.S.veType)),this.S.veCounter!==void 0&&DF(D,6,b2(this.S.veCounter)),this.S.elementIndex!==void 0&&DF(D,3,b2(this.S.elementIndex)),this.S.isCounterfactual&&DF(D,5,de(!0)));if(this.S.dataElement!==void 0){var Q=this.S.dataElement.getAsJspb();nB(D,gl,7,Q)}this.S.youtubeData!==void 0&&nB(D,Roj,8,this.S.jspbYoutubeData);return D};
g.y.toString=function(){return JSON.stringify(this.getAsJson())};
g.y.isClientVe=function(){return!this.S.trackingParams&&!!this.S.veType};
g.y.getLoggingDirectives=function(){return this.S.loggingDirectives};g.ch("yt_logging_screen.getRootVeType",yl4);g.ch("yt_logging_screen.getCurrentCsn",g.Tq);g.ch("yt_logging_screen.getCttAuthInfo",hG);g.ch("yt_logging_screen.setCurrentScreen",gyk);var kXh="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var vyr=[{r7:function(D){return"Cannot read property '"+D.key+"'"},
Oz:{Error:[{GM:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{GM:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{GM:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{GM:/\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"]},{GM:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{GM:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{GM:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{r7:function(D){return"Cannot call '"+D.key+"'"},
Oz:{TypeError:[{GM:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{GM:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{GM:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{GM:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{GM:/\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"]},
{GM:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{r7:function(D){return D.key+" is not defined"},
Oz:{ReferenceError:[{GM:/(.*) is not defined/,groups:["key"]},{GM:/Can't find variable: (.*)/,groups:["key"]}]}}];var UvP={f1:[],Nr:[{callback:Jln,weight:500},{callback:lG_,weight:500}]};var Ez;var IC=new g.TY;var Opu=new Set,ji$=0,Alh=0,aGk=0,eEu=[],$vk=[],pd_=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var S27=new g.Fn("parallelCommand");var M8_=new g.Fn("performOnceCommand");var GX$=new g.Fn("serialCommand");var Uz=void 0;RO({},"sgPmTd");RO(null,"jypsq");RO(null,"mWiOof");g.Z(jX,z0);var N2j=new bI("screen-created",jX),ro=[],DZn=iU9,Gq=0,eX=new Map,vi=new Map,Oz=new Map;g.CV(g.iR,g.v);g.y=g.iR.prototype;g.y.subscribe=function(D,Q,m){return this.VF()?0:this.uS.subscribe(D,Q,m)};
g.y.unsubscribe=function(D,Q,m){return this.VF()?!1:this.uS.unsubscribe(D,Q,m)};
g.y.Sc=function(D){return this.VF()?!1:this.uS.Sc(D)};
g.y.publish=function(D,Q){return this.VF()?!1:this.uS.publish.apply(this.uS,arguments)};
g.y.MK=function(D,Q){for(var m in D)this.subscribe(m,D[m],Q)};
g.y.ov=function(D,Q){for(var m in D)this.unsubscribe(m,D[m],Q)};var mE_=16/9,JS=[.25,.5,.75,1,1.25,1.5,1.75,2],ikP=JS.concat([3,4,5,6,7,8,9,10,15]),srk=JS.concat([2.5,3,3.5,4]),L$k=JS.concat([2.5,3]),uFk=JS.concat([2.5,3,3.5,4]);var sS_=1;g.Z(g.LX,g.v);g.y=g.LX.prototype;
g.y.createElement=function(D,Q){Q=Q||D.K==="svg";var m=D.L,P=D.OW;if(Q){var W=document.createElementNS("http://www.w3.org/2000/svg",D.K);g.kv&&(D.Y||(D.Y={}),D.Y.focusable="false")}else W=g.qi(D.K);if(m){if(m=uR(this,W,"class",m))di(this,W,"class",m),this.cY[m]=W}else if(P){m=g.T(P);for(var L=m.next();!L.done;L=m.next())this.cY[L.value]=W;di(this,W,"class",P.join(" "))}P=D.h0;m=D.X;if(P)Q=uR(this,W,"child",P),Q!==void 0&&W.appendChild(g.Ca(Q));else if(m)for(P=0,m=g.T(m),L=m.next();!L.done;L=m.next())if(L=
L.value)if(typeof L==="string")L=uR(this,W,"child",L),L!=null&&W.appendChild(g.Ca(L));else if(L.element)W.appendChild(L.element);else{var u=L;L=this.createElement(u,Q);W.appendChild(L);u.Rt&&(u=sX(),L.id=u,L=document.createElementNS("http://www.w3.org/2000/svg","use"),L.setAttribute("class","ytp-svg-shadow"),L.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+u),V0(W,L,P++))}if(D=D.Y)for(Q=W,P=g.T(Object.keys(D)),m=P.next();!m.done;m=P.next())m=m.value,L=D[m],di(this,Q,m,typeof L==="string"?
uR(this,Q,m,L):L);return W};
g.y.Dx=function(D){return this.cY[D]};
g.y.b0=function(D,Q){typeof Q==="number"?V0(D,this.element,Q):D.appendChild(this.element)};
g.y.detach=function(){g.Ni(this.element)};
g.y.update=function(D){for(var Q=g.T(Object.keys(D)),m=Q.next();!m.done;m=Q.next())m=m.value,this.updateValue(m,D[m])};
g.y.updateValue=function(D,Q){(D=this.PO["{{"+D+"}}"])&&di(this,D[0],D[1],Q)};
g.y.Bq=function(){this.cY={};this.PO={};this.detach();g.v.prototype.Bq.call(this)};g.Z(g.p,g.LX);g.y=g.p.prototype;g.y.Sk=function(D,Q){this.updateValue(Q||"content",D)};
g.y.show=function(){this.To||(g.YZ(this.element,"display",""),this.To=!0)};
g.y.hide=function(){this.To&&(g.YZ(this.element,"display","none"),this.To=!1)};
g.y.FA=function(D){D?this.show():this.hide()};
g.y.aj=function(D){this.J=D};
g.y.listen=function(D,Q,m){return this.W(this.element,D,Q,m)};
g.y.W=function(D,Q,m,P){m=(0,g.d$)(m,P||this);P={target:D,type:Q,listener:m};this.listeners.push(P);D.addEventListener(Q,m);return P};
g.y.qY=function(D){var Q=this;this.listeners.forEach(function(m,P){m===D&&(m=Q.listeners.splice(P,1)[0],m.target.removeEventListener(m.type,m.listener))})};
g.y.focus=function(){this.element.focus()};
g.y.Bq=function(){for(;this.listeners.length;){var D=this.listeners.pop();D&&D.target.removeEventListener(D.type,D.listener)}g.LX.prototype.Bq.call(this)};g.Z(g.t1,g.p);g.t1.prototype.subscribe=function(D,Q,m){return this.GO.subscribe(D,Q,m)};
g.t1.prototype.unsubscribe=function(D,Q,m){return this.GO.unsubscribe(D,Q,m)};
g.t1.prototype.Sc=function(D){return this.GO.Sc(D)};
g.t1.prototype.publish=function(D){return this.GO.publish.apply(this.GO,[D].concat(g.on(g.e$.apply(1,arguments))))};var d5U=new WeakSet;g.Z(z1,g.t1);g.y=z1.prototype;g.y.bind=function(D){this.Y9||D.renderer&&this.init(D.id,D.renderer,{},D);return Promise.resolve()};
g.y.init=function(D,Q,m){this.Y9=D;this.element.setAttribute("id",this.Y9);this.jD&&g.mQ(this.element,this.jD);this.TO=Q&&Q.adRendererCommands;this.wc=Q.interaction;var P;((P=this.wc)==null?0:P.onTap)&&g.mQ(this.element,"ytp-ad-component--clickable");this.macros=m;this.Z=Q.trackingParams||null;var W,L;this.U=(L=(W=g.A(Q.rendererContext,CXK))==null?void 0:W.loggingDirectives)!=null?L:Q.loggingDirectives;this.Z!=null?this.createServerVe(this.element,this.Z):this.U&&(D=this.element,Q=this.U,this.api.createServerVe(D,
this,!0),this.api.setTrackingParams(D,Q.trackingParams||null))};
g.y.clear=function(){};
g.y.hide=function(){g.t1.prototype.hide.call(this);(this.Z!=null||this.U)&&this.logVisibility(this.element,!1)};
g.y.show=function(){g.t1.prototype.show.call(this);if(!this.gB){this.gB=!0;var D=this.TO&&this.TO.impressionCommand,Q,m=(Q=this.wc)==null?void 0:Q.onFirstVisible;D?this.pT(D):m&&(D=Hi(m))&&this.pT(D)}(this.Z!=null||this.U)&&this.logVisibility(this.element,!0)};
g.y.onClick=function(D){if((this.Z||this.U)&&!d5U.has(D)){var Q=this.element;this.api.hasVe(Q)&&this.To&&this.api.logClick(Q,this.interactionLoggingClientData);d5U.add(D)}var m=this.TO&&this.TO.clickCommand,P;Q=(P=this.wc)==null?void 0:P.onTap;if(m)Q=this.tW(m),this.pT(Q);else{if(P=Q)a:{P=this.element;D=D.composedPath();D=g.T(D);for(m=D.next();!m.done;m=D.next()){m=m.value;if(m===P)break;if(m.className.indexOf("ytp-ad-component--clickable")>=0){P=!1;break a}}P=!0}P&&(Q=Hi(Q))&&this.pT(Q)}};
g.y.tW=function(D){return D};
g.y.onTouchStart=function(D){this.Kh.onTouchStart(D)};
g.y.onTouchMove=function(D){this.Kh.onTouchMove(D)};
g.y.onTouchEnd=function(D){if(this.Kh)this.Kh.onTouchEnd(D)};
g.y.pT=function(D){this.layoutId?this.Pq.executeCommand(D,this.layoutId):(D=new g.OI("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.JG(D))};
g.y.createServerVe=function(D,Q){this.api.createServerVe(D,this);this.api.setTrackingParams(D,Q)};
g.y.logVisibility=function(D,Q){this.api.hasVe(D)&&this.api.logVisibility(D,Q,this.interactionLoggingClientData)};
g.y.Bq=function(){this.clear(null);this.qY(this.oy);for(var D=g.T(this.QF),Q=D.next();!Q.done;Q=D.next())this.qY(Q.value);g.t1.prototype.Bq.call(this)};g.Z(Iq,z1);
Iq.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.S=Q;if(Q.text==null&&Q.icon==null)g.l4(Error("ButtonRenderer did not have text or an icon set."));else{switch(Q.style||null){case "STYLE_UNKNOWN":D="ytp-ad-button-link";break;default:D=null}D!=null&&g.mQ(this.element,D);Q.text!=null&&(D=g.qC(Q.text),g.J6(D)||(this.element.setAttribute("aria-label",D),this.T=new g.t1({K:"span",L:"ytp-ad-button-text",h0:D}),g.O(this,this.T),this.T.b0(this.element)));Q.accessibilityData&&Q.accessibilityData.accessibilityData&&
Q.accessibilityData.accessibilityData.label&&!g.J6(Q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Q.accessibilityData.accessibilityData.label);Q.icon!=null&&(Q=lR(Q.icon,this.B),Q!=null&&(this.C=new g.t1({K:"span",L:"ytp-ad-button-icon",X:[Q]}),g.O(this,this.C)),this.N?V0(this.element,this.C.element,0):this.C.b0(this.element))}};
Iq.prototype.clear=function(){this.hide()};
Iq.prototype.onClick=function(D){z1.prototype.onClick.call(this,D);D=g.T(UZn(this));for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.layoutId?this.Pq.executeCommand(Q,this.layoutId):g.JG(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.Z(Rq,g.v);Rq.prototype.Bq=function(){this.C&&g.yx(this.C);this.S.clear();UX=null;g.v.prototype.Bq.call(this)};
Rq.prototype.register=function(D,Q){Q&&this.S.set(D,Q)};
var UX=null;g.Z(j1,z1);
j1.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);D=Q.hoverText||null;Q=Q.button&&g.A(Q.button,g.CE)||null;Q==null?g.JG(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,void 0,void 0,void 0,void 0,this.T),g.O(this,this.button),this.button.init(PR("button"),Q,this.macros),D&&this.button.element.setAttribute("aria-label",g.qC(D)),this.button.b0(this.element),this.j&&!g.Q9(this.button.element,
"ytp-ad-clickable")&&g.mQ(this.button.element,"ytp-ad-clickable"),this.T&&g.mQ(this.button.element,"ytp-ad-hover-text-button--clean-player"),D&&(this.C=new g.t1({K:"div",L:"ytp-ad-hover-text-container"}),this.N&&(Q=new g.t1({K:"div",L:"ytp-ad-hover-text-callout"}),Q.b0(this.C.element),g.O(this,Q)),g.O(this,this.C),this.C.b0(this.element),Q=HR(D),V0(this.C.element,Q,0)),this.show())};
j1.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();z1.prototype.hide.call(this)};
j1.prototype.show=function(){this.button&&this.button.show();z1.prototype.show.call(this)};g.Z(e1,z1);
e1.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);m=(D=Q.thumbnail)&&$b(D)||"";g.J6(m)?Math.random()<.01&&g.l4(Error("Found AdImage without valid image URL")):(this.S?g.YZ(this.element,"backgroundImage","url("+m+")"):uX(this.element,{src:m}),uX(this.element,{alt:D&&D.accessibility&&D.accessibility.label||""}),Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
e1.prototype.clear=function(){this.hide()};g.Z(vR,z1);g.y=vR.prototype;g.y.hide=function(){z1.prototype.hide.call(this);this.T&&this.T.focus()};
g.y.show=function(){this.T=document.activeElement;z1.prototype.show.call(this);this.B.focus()};
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.C=Q;Q.dialogMessages||Q.title!=null?Q.confirmLabel==null?g.JG(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Q.cancelLabel==null?g.JG(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$Zr(this,Q):g.JG(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.y.clear=function(){g.EI(this.S);this.hide()};
g.y.MM=function(){this.hide()};
g.y.LA=function(){var D=this.C.cancelEndpoint;D&&(this.layoutId?this.Pq.executeCommand(D,this.layoutId):g.JG(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.y.E5=function(){var D=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;D&&(this.layoutId?this.Pq.executeCommand(D,this.layoutId):g.JG(Error("Missing layoutId for confirm dialog.")));this.hide()};g.Z(OX,z1);g.y=OX.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.T=Q;if(Q.defaultText==null&&Q.defaultIcon==null)g.JG(Error("ToggleButtonRenderer must have either text or icon set."));else if(Q.defaultIcon==null&&Q.toggledIcon!=null)g.JG(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Q.style){switch(Q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":D="ytp-ad-toggle-button-default-style";break;default:D=null}D!=null&&g.mQ(this.B,D)}D={};Q.defaultText?
(m=g.qC(Q.defaultText),g.J6(m)||(D.buttonText=m,this.api.G().experiments.Mv("a11y_h5_associate_survey_question")||this.S.setAttribute("aria-label",m),this.api.G().experiments.Mv("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",m))):g.QT(this.t0,!1);Q.defaultTooltip&&(D.tooltipText=Q.defaultTooltip,this.S.hasAttribute("aria-label")||this.C.setAttribute("aria-label",Q.defaultTooltip));Q.defaultIcon?(m=lR(Q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",m),Q.toggledIcon?(this.Iy=
!0,m=lR(Q.toggledIcon),this.updateValue("toggledIconTemplateSpec",m)):(g.QT(this.j,!0),g.QT(this.N,!1)),g.QT(this.S,!1)):g.QT(this.C,!1);g.b7(D)||this.update(D);Q.isToggled&&(g.mQ(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(Q.isToggled));Yb(this);this.W(this.element,"change",this.rA);this.show()}};
g.y.onClick=function(D){this.QF.length>0&&(this.toggleButton(!this.isToggled()),this.rA());z1.prototype.onClick.call(this,D)};
g.y.rA=function(){g.sh(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var D=g.T(eW_(this,this.isToggled())),Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.layoutId?this.Pq.executeCommand(Q,this.layoutId):g.JG(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Yb(this)};
g.y.clear=function(){this.hide()};
g.y.toggleButton=function(D){g.sh(this.B,"ytp-ad-toggle-button-toggled",D);this.S.checked=D;Yb(this)};
g.y.isToggled=function(){return this.S.checked};g.Z(aq,hJ);aq.prototype.J=function(D){if(Array.isArray(D)){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q instanceof vtn&&this.T(Q)}};g.Z(A1,z1);g.y=A1.prototype;g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);Q.reasons?Q.confirmLabel==null?g.JG(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Q.cancelLabel==null&&g.l4(Error("AdFeedbackRenderer.cancelLabel was not set.")),Q.title==null&&g.l4(Error("AdFeedbackRenderer.title was not set.")),AJ4(this,Q)):g.JG(Error("AdFeedbackRenderer.reasons were not set."))};
g.y.clear=function(){Z5(this.N);Z5(this.j);this.B.length=0;this.hide()};
g.y.hide=function(){this.S&&this.S.hide();this.C&&this.C.hide();z1.prototype.hide.call(this);this.T&&this.T.focus()};
g.y.show=function(){this.S&&this.S.show();this.C&&this.C.show();this.T=document.activeElement;z1.prototype.show.call(this);this.N.focus()};
g.y.DI=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.y.qCc=function(){this.hide()};
pX.prototype.nj=function(){return this.S.element};
pX.prototype.getCommand=function(){return this.C};
pX.prototype.isChecked=function(){return this.T.checked};g.Z(xb,vR);xb.prototype.MM=function(D){vR.prototype.MM.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
xb.prototype.LA=function(D){vR.prototype.LA.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
xb.prototype.E5=function(D){vR.prototype.E5.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.Z(S1,z1);g.y=S1.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.N=Q;if(Q.dialogMessage==null&&Q.title==null)g.JG(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Q.confirmLabel==null&&g.l4(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(D=Q.closeOverlayRenderer&&g.A(Q.closeOverlayRenderer,g.CE)||null)this.S=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.O(this,this.S),this.S.init(PR("button"),D,this.macros),this.S.b0(this.element);Q.title&&(D=g.qC(Q.title),this.updateValue("title",D));if(Q.adReasons)for(D=Q.adReasons,m=0;m<D.length;m++){var P=HR(D[m]);if(!g.J6(P.textContent)){var W=bX("LI");W.appendChild(P);this.u0.appendChild(W)}}else g.QT(this.u0,!1);Q.dialogMessage&&(D=HR(Q.dialogMessage,!0),this.k9.appendChild(D));Q.confirmLabel&&(D=g.qC(Q.confirmLabel),this.updateValue("confirmLabel",D));Q.muteAdRenderer&&(Q=g.A(Q.muteAdRenderer,g.CE)||null)&&
(D=Q.navigationEndpoint&&g.A(Q.navigationEndpoint,N94)||null,m=Q.navigationEndpoint&&g.A(Q.navigationEndpoint,LO2)||null,D==null&&m==null?g.l4(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(D?p5_(this,D):m&&xZm(this,m),this.T=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-info-dialog-mute-button"],"button",!0),g.O(this,this.T),this.T.init(PR("button"),Q,this.macros),this.T.listen("click",
this.ZjT,this),this.T.b0(this.l0)));X5w(this)}};
g.y.clear=function(){Z5(this.j);this.hide()};
g.y.hide=function(){this.C?this.C.hide():this.B&&this.B.hide();this.S&&this.S.hide();this.T&&this.T.hide();z1.prototype.hide.call(this);this.Iy&&this.Iy.focus()};
g.y.show=function(){this.S&&this.S.show();this.T&&this.T.show();if(!this.x9){for(var D=g.T(this.N&&this.N.impressionEndpoints||[]),Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.layoutId?this.Pq.executeCommand(Q,this.layoutId):g.JG(Error("Missing layoutId for ad info dialog."));this.x9=!0}this.Iy=document.activeElement;z1.prototype.show.call(this);this.j.focus()};
g.y.zL=function(){if(this.N&&this.N.confirmServiceEndpoint){var D=this.N.confirmServiceEndpoint;this.layoutId?this.Pq.executeCommand(D,this.layoutId):g.JG(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.y.ZjT=function(){var D=this.C?this.C:this.B;D&&!D.To&&(this.hide(),D.show())};g.Z(ri,j1);ri.prototype.init=function(D,Q,m){j1.prototype.init.call(this,D,Q,m);D=Q.button&&g.A(Q.button,g.CE)||null;D!=null&&(cJh(this,D,m),this.show())};
ri.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();j1.prototype.hide.call(this)};
ri.prototype.show=function(){this.button&&this.button.show();j1.prototype.show.call(this)};
ri.prototype.clear=function(){this.hide()};g.Z(G1,z1);
G1.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.S=Q;this.isTemplated()||g.Zq(this.element,bR(this.S));if(Q.backgroundImage&&(D=(D=Q.backgroundImage.thumbnail)?$b(D):"",m=(m=this.api.getVideoData(1))&&m.CZ,D&&m&&(this.element.style.backgroundImage="url("+D+")",this.element.style.backgroundSize="100%"),Q.style&&Q.style.adTextStyle))switch(Q.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(D=g.Jy(Q.targetId))&&this.element.setAttribute("data-tooltip-target-id",D);
Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
G1.prototype.isTemplated=function(){return this.S.isTemplated||!1};
G1.prototype.clear=function(){this.hide()};var LDh={seekableStart:0,seekableEnd:1,current:0};g.Z(cR,z1);cR.prototype.clear=function(){this.dispose()};g.Z(g.mF,g.v);g.y=g.mF.prototype;g.y.show=function(D){this.state!==1&&this.state!==2&&(this.state===4&&this.du(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.S&&this.S()):this.element.To||(P_(this,!0),this.state=1,D?this.delay.start(D):this.du()))};
g.y.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.To&&(P_(this,!0),this.state=4,this.delay.start(this.T)))};
g.y.du=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:P_(this,!1);this.state=3;this.delay.start(this.C);break;case 3:this.state=null;this.S&&this.S();break;case 4:this.element.hide();P_(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.y.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.du()};
g.y.Bq=function(){this.element.VF()||this.element.element.removeAttribute("aria-hidden");g.v.prototype.Bq.call(this)};g.Z(W_,cR);g.y=W_.prototype;
g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);D=Q.durationMilliseconds;typeof D==="number"&&D<0&&g.JG(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+D));this.XT&&(this.B?g.mQ(this.C.element,"modern-countdown-next-to-thumbnail"):g.mQ(this.C.element,"countdown-next-to-thumbnail"));D=Q.durationMilliseconds;this.u0=D==null||D===0?this.S.EB():D;if(Q.templatedCountdown)var P=Q.templatedCountdown.templatedAdText;else Q.staticPreview&&(P=Q.staticPreview);
this.T.init(PR("ad-text"),P,m);(P=this.api.getVideoData(1))&&P.CZ&&Q.thumbnail?this.N.init(PR("ad-image"),Q.thumbnail,m):(this.t0.hide(),this.B&&this.XT&&g.mQ(this.T.element,"ytp-ad-preview-text-modern-postroll"))};
g.y.clear=function(){this.hide()};
g.y.hide=function(){this.C.hide();this.T.hide();this.N.hide();QQ(this);cR.prototype.hide.call(this)};
g.y.show=function(){Dc(this);this.C.show();this.T.show();this.N.show();cR.prototype.show.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S!=null){var D=this.S.getProgressState();D!=null&&D.current!=null&&(D=1E3*D.current,!this.k9&&D>=this.u0?(this.Iy.hide(),this.k9=!0,this.publish("i")):this.T&&this.T.isTemplated()&&(D=Math.max(0,Math.ceil((this.u0-D)/1E3)),D!=this.l0&&(MC(this.T,{TIME_REMAINING:String(D)}),this.l0=D)))}};g.Z(iu,cR);g.y=iu.prototype;
g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if((D=Q.actionButton&&g.A(Q.actionButton,g.CE))&&D.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null)if(Q.image&&Q.image.thumbnail){var W=Q.image.thumbnail.thumbnails;W!=null&&W.length>0&&g.J6(g.Jy(W[0].url))&&(W[0].url=P.profilePicture)}else g.l4(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.T.init(PR("ad-image"),Q.image,m);this.N.init(PR("ad-text"),
Q.headline,m);this.B.init(PR("ad-text"),Q.description,m);this.C.init(PR("button"),D,m);m=Ov(this.C.element);vV(this.C.element,m+" This link opens in new tab");this.Iy=D.navigationEndpoint;this.api.Q8()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Le.bind(this));this.t0=Q.startMs||0;Dc(this)}else g.JG(Error("FlyoutCtaRenderer has no valid action button."));else g.JG(Error("FlyoutCtaRenderer has no description AdText."));else g.JG(Error("FlyoutCtaRenderer has no headline AdText."));
else g.l4(Error("FlyoutCtaRenderer has no image."))};
g.y.onClick=function(D){cR.prototype.onClick.call(this,D);this.api.pauseVideo();!g.y0(this.C.element,D.target)&&this.Iy&&(this.layoutId?this.Pq.executeCommand(this.Iy,this.layoutId):g.JG(Error("Missing layoutId for flyout cta.")))};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();(D&&D.current||this.u0)&&1E3*D.current>=this.t0&&(QQ(this),g.Wo(this.element,"ytp-flyout-cta-inactive"),this.C.element.removeAttribute("tabIndex"))}};
g.y.Wk=function(){this.clear()};
g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Le.bind(this))};
g.y.show=function(){this.C&&this.C.show();cR.prototype.show.call(this)};
g.y.hide=function(){this.C&&this.C.hide();cR.prototype.hide.call(this)};
g.y.Le=function(D){D=="hidden"?this.show():this.hide()};g.Z(s9,z1);g.y=s9.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.S=Q;if(this.S.rectangle)for(D=this.S.likeButton&&g.A(this.S.likeButton,hS),Q=this.S.dislikeButton&&g.A(this.S.dislikeButton,hS),this.T.init(PR("toggle-button"),D,m),this.C.init(PR("toggle-button"),Q,m),this.W(this.element,"change",this.m0),this.B.show(100),this.show(),m=g.T(this.S&&this.S.impressionCommands||[]),D=m.next();!D.done;D=m.next())D=D.value,this.layoutId?this.Pq.executeCommand(D,this.layoutId):g.JG(Error("Missing layoutId for instream user sentiment."))};
g.y.clear=function(){this.hide()};
g.y.hide=function(){this.T.hide();this.C.hide();z1.prototype.hide.call(this)};
g.y.show=function(){this.T.show();this.C.show();z1.prototype.show.call(this)};
g.y.m0=function(){hBj(this.element,"ytp-ad-instream-user-sentiment-selected");this.S.postMessageAction&&this.api.sW("onYtShowToast",this.S.postMessageAction);this.B.hide()};
g.y.onClick=function(D){this.QF.length>0&&this.m0();z1.prototype.onClick.call(this,D)};g.Z(Ls,g.v);g.y=Ls.prototype;g.y.Bq=function(){this.reset();g.v.prototype.Bq.call(this)};
g.y.reset=function(){g.EI(this.B);this.N=!1;this.S&&this.S.stop();this.J.stop();this.T&&(this.T=!1,this.U.play())};
g.y.start=function(){this.reset();this.B.W(this.C,"mouseover",this.Ah,this);this.B.W(this.C,"mouseout",this.cP,this);this.TO&&(this.B.W(this.C,"focusin",this.Ah,this),this.B.W(this.C,"focusout",this.cP,this));this.S?this.S.start():(this.N=this.T=!0,g.YZ(this.C,{opacity:this.j}))};
g.y.Ah=function(){this.T&&(this.T=!1,this.U.play());this.J.stop();this.S&&this.S.stop()};
g.y.cP=function(){this.N?this.J.start():this.S&&this.S.start()};
g.y.MU=function(){this.T||(this.T=!0,this.Z.play(),this.N=!0)};var P8_=[new uu("b.f_",!1,0),new uu("j.s_",!1,2),new uu("r.s_",!1,4),new uu("e.h_",!1,6),new uu("i.s_",!0,8),new uu("s.t_",!1,10),new uu("p.h_",!1,12),new uu("s.i_",!1,14),new uu("f.i_",!1,16),new uu("a.b_",!1,18),new uu("a.o_",!1),new uu("g.o_",!1,22),new uu("p.i_",!1,24),new uu("p.m_",!1),new uu("n.k_",!0,20),new uu("i.f_",!1),new uu("a.s_",!0),new uu("m.c_",!1),new uu("n.h_",!1,26),new uu("o.p_",!1),new uu("m.p_",!0,28),new uu("o.a_",!1),new uu("d.p_",!1),new uu("e.i_",!1)].reduce(function(D,Q){D[Q.C]=
Q;return D},{});g.Z(fs,cR);g.y=fs.prototype;
g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);this.Iy=Q;(this.t0=ir$(this))&&g.l4(Error("hasAdControlInClickCommands_ is true."));if(!Q||g.b7(Q))g.JG(Error("SkipButtonRenderer was not specified or empty."));else if(!Q.message||g.b7(Q.message))g.JG(Error("SkipButtonRenderer.message was not specified or empty."));else if(D=this.N?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Q=lR(D),Q==null?g.JG(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+D.iconType+".")):
(this.api.G().V("disable_touch_events_on_skip_button")&&(Q.Y=Object.assign({},Q.Y,{"aria-hidden":"true",Z0W:"false"})),this.T=new g.t1({K:"button",OW:[this.N?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],X:[{K:"span",L:this.N?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",X:[Q]}]}),g.O(this,this.T),this.T.b0(this.B.element),this.C=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,"ytp-ad-skip-button-text"),this.N&&this.C.element.classList.add("ytp-ad-skip-button-text-centered"),
this.C.init(PR("ad-text"),this.Iy.message,m),g.O(this,this.C),V0(this.T.element,this.C.element,0)),!this.api.G().V("disable_touch_events_on_skip_button")){var P=P===void 0?null:P;m=this.api.G();!(this.QF.length>0)&&m.C&&(QS?0:"ontouchstart"in document.documentElement&&(M2j()||Lk()))&&(this.qY(this.oy),P&&this.qY(P),this.QF=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}};
g.y.clear=function(){this.u0.reset();this.hide()};
g.y.hide=function(){this.B.hide();this.C&&this.C.hide();QQ(this);cR.prototype.hide.call(this)};
g.y.onClick=function(D){if(this.T!=null){if(D){var Q=D||window.event;Q.returnValue=!1;Q.preventDefault&&Q.preventDefault()}var m;if(QWr(D,{contentCpn:((m=this.api.getVideoData(1))==null?void 0:m.clientPlaybackNonce)||""})===0)this.api.sW("onAbnormalityDetected");else if(cR.prototype.onClick.call(this,D),this.publish("j"),this.api.sW("onAdSkip"),this.k9||!this.t0)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.y.tW=function(D){if(!this.k9)return this.t0&&bu("SkipButton click commands not pruned while ALC exist"),D;var Q,m=(Q=g.A(D,g.VQ))==null?void 0:Q.commands;if(!m)return D;D=[];for(Q=0;Q<m.length;Q++){var P=m[Q];P.adLifecycleCommand&&WDn(P.adLifecycleCommand)||P.pingingEndpoint||P.adPingingEndpoint||D.push(P)}return{commandExecutorCommand:{commands:D}}};
g.y.show=function(){this.u0.start();this.B.show();this.C&&this.C.show();Dc(this);cR.prototype.show.call(this);this.l0&&this.api.G().V("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.y.Wk=function(){this.publish("k")};
g.y.l6=function(){};g.Z(NW,cR);g.y=NW.prototype;
g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);D=Q&&Q.preskipRenderer&&g.A(Q.preskipRenderer,qr)||{};(D=g.b7(D)?null:D)?(this.N=D.durationMilliseconds!=null&&D.durationMilliseconds!==void 0?D.durationMilliseconds:5E3,this.C=new W_(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.S,nD(this.api.G().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&Vs(this.api.G())),this.C.init(PR("preskip-component"),D,m),D=this.C,D.Iy.show(100),D.show(),
g.O(this,this.C),this.C.b0(this.element)):Q.skipOffsetMilliseconds&&(this.N=Q.skipOffsetMilliseconds);D=Q&&Q.skippableRenderer&&g.A(Q.skippableRenderer,xtV)||{};D=g.b7(D)?null:D;D==null?g.JG(Error("SkipButtonRenderer was not set in player response.")):(this.T=new fs(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.S,this.Iy),this.T.init(PR("skip-button"),D,m),g.O(this,this.T),this.T.b0(this.element),this.api.G().experiments.Mv("enable_skip_to_next_messaging")&&(Q=g.Jy(Q.targetId))&&
(m=this.T,m.T!=null&&(m.l0=!0,m.T.element.setAttribute("data-tooltip-target-id",Q),m.T.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.y.show=function(){this.B&&this.T?this.T.show():this.C&&this.C.show();Dc(this);cR.prototype.show.call(this)};
g.y.Wk=function(){};
g.y.clear=function(){this.C&&this.C.clear();this.T&&this.T.clear();QQ(this);cR.prototype.hide.call(this)};
g.y.hide=function(){this.C&&this.C.hide();this.T&&this.T.hide();QQ(this);cR.prototype.hide.call(this)};
g.y.l6=function(){1E3*this.S.getProgressState().current>=this.N&&sW7(this,!0)};g.Z(yQ,Iq);yQ.prototype.init=function(D,Q,m){Iq.prototype.init.call(this,D,Q,m);D=!1;Q.text!=null&&(D=g.qC(Q.text),D=!g.J6(D));D?Q.navigationEndpoint==null?g.l4(Error("No visit advertiser clickthrough provided in renderer,")):Q.style!=="STYLE_UNKNOWN"?g.l4(Error("Button style was not a link-style type in renderer,")):this.show():g.l4(Error("No visit advertiser text was present in the renderer."))};g.Z(Zc,z1);
Zc.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);D=Q.text;g.J6(bR(D))?g.l4(Error("SimpleAdBadgeRenderer has invalid or empty text")):(D&&D.text&&(Q=D.text,this.T&&!this.C&&(Q=this.api.G(),Q=D.text+" "+(Q&&Q.C?"\u2022":"\u00b7")),Q={text:Q,isTemplated:D.isTemplated},D.style&&(Q.style=D.style),D.targetId&&(Q.targetId=D.targetId),D=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),D.init(PR("simple-ad-badge"),Q,m),D.b0(this.element),g.O(this,D)),this.show())};
Zc.prototype.clear=function(){this.hide()};g.Z(Fo,WR);g.Z(TO,g.iR);g.y=TO.prototype;g.y.EB=function(){return this.durationMs};
g.y.stop=function(){this.S&&this.handler.qY(this.S)};
g.y.mu=function(D){this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:D.current};this.publish("h")};
g.y.getProgressState=function(){return this.C};
g.y.m4=function(D){g.oD(D,2)&&this.publish("g")};g.Z(hF,g.iR);g.y=hF.prototype;g.y.EB=function(){return this.durationMs};
g.y.start=function(){this.S||(this.S=!0,this.timer.start())};
g.y.stop=function(){this.S&&(this.S=!1,this.timer.stop())};
g.y.mu=function(){this.NL+=100;var D=!1;this.NL>this.durationMs&&(this.NL=this.durationMs,this.timer.stop(),D=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.NL/1E3};this.publish("h");D&&this.publish("g")};
g.y.getProgressState=function(){return this.C};g.Z(gE,cR);g.y=gE.prototype;g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);var P;if(Q==null?0:(P=Q.templatedCountdown)==null?0:P.templatedAdText){D=Q.templatedCountdown.templatedAdText;if(!D.isTemplated){g.l4(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new G1(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);this.C.init(PR("ad-text"),D,{});this.C.b0(this.element);g.O(this,this.C)}this.show()};
g.y.clear=function(){this.hide()};
g.y.hide=function(){QQ(this);cR.prototype.hide.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S!=null){var D=this.S.getProgressState();if(D!=null&&D.current!=null&&this.C){var Q=this.S instanceof TO?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:D.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.S instanceof hF?D.seekableEnd:this.api.getDuration(2,!1);D=D.current;var m,P,W=((m=this.api.getVideoData())==null?0:(P=m.xB)==null?0:P.call(m))?Math.max(Q-D,0):Q-D;MC(this.C,{FORMATTED_AD_DURATION_REMAINING:String(g.ns(W)),
TIME_REMAINING:String(Math.ceil(W))})}}};
g.y.show=function(){Dc(this);cR.prototype.show.call(this)};g.Z(B_,G1);B_.prototype.onClick=function(D){G1.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType)};g.Z(kB,z1);kB.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(D=Q.content){g.Zq(this.element,D);var m,P;Q=((m=Q.interaction)==null?void 0:(P=m.accessibility)==null?void 0:P.label)||D;this.element.setAttribute("aria-label",Q)}else g.JG(Error("AdSimpleAttributedString does not have text content"))};
kB.prototype.clear=function(){this.hide()};
kB.prototype.onClick=function(D){z1.prototype.onClick.call(this,D)};g.Z(JF,z1);
JF.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});(D=Q.label)&&D.content&&!g.J6(D.content)?(this.adBadgeText.init(PR("ad-simple-attributed-string"),new wE(D)),(Q=Q.adPodIndex)&&Q.content&&!g.J6(Q.content)&&(this.S=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),this.S.b0(this.element),g.O(this,this.S),this.S.element.classList.add("ytp-ad-badge__pod-index"),this.S.init(PR("ad-simple-attributed-string"),new wE(Q))),this.element.classList.add(this.C?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.JG(Error("No label is returned in AdBadgeViewModel."))};
JF.prototype.show=function(){this.adBadgeText.show();var D;(D=this.S)==null||D.show();z1.prototype.show.call(this)};
JF.prototype.hide=function(){this.adBadgeText.hide();var D;(D=this.S)==null||D.hide();z1.prototype.hide.call(this)};g.Z(lu,z1);lu.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});(D=Q.adPodIndex)&&D.content&&!g.J6(D.content)&&(this.S=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),this.S.b0(this.element),g.O(this,this.S),this.S.init(PR("ad-simple-attributed-string"),new wE(D)),Q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()};
lu.prototype.show=function(){var D;(D=this.S)==null||D.show();z1.prototype.show.call(this)};
lu.prototype.hide=function(){var D;(D=this.S)==null||D.hide();z1.prototype.hide.call(this)};g.Z(ID,z1);
ID.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(Q!=null&&Q.text){var m;if(((m=Q.text)==null?0:m.content)&&!g.J6(Q.text.content)){this.S=new g.t1({K:"div",L:"ytp-ad-disclosure-banner__text",h0:Q.text.content});g.O(this,this.S);this.S.b0(this.element);var P,W;D=((P=Q.interaction)==null?void 0:(W=P.accessibility)==null?void 0:W.label)||Q.text.content;this.element.setAttribute("aria-label",D);var L;if((L=Q.interaction)==null?0:L.onTap)this.C=new g.t1({K:"div",L:"ytp-ad-disclosure-banner__chevron",X:[g.Vq()]}),
g.O(this,this.C),this.C.b0(this.element),this.api.G().V("enable_ad_disclosure_banner_a11y_fix")&&($G(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.JG(Error("No banner text found in AdDisclosureBanner."))};
ID.prototype.clear=function(){this.hide()};g.Z(H_,g.t1);H_.prototype.mu=function(){var D=this.C.getProgressState(),Q=D.seekableEnd;this.api.getPresentingPlayerType()===2&&(Q=this.T?this.T/1E3:D.seekableEnd);this.progressBar.style.width=U9(new RD(D.seekableStart,Q),D.current,0)*100+"%"};
H_.prototype.onStateChange=function(){g.zs(this.api.G())||(this.api.getPresentingPlayerType()===2?this.S===-1&&(this.show(),this.S=this.C.subscribe("h",this.mu,this),this.mu()):this.S!==-1&&(this.hide(),this.C.Sc(this.S),this.S=-1))};g.Z(Ks,z1);
Ks.prototype.init=function(D,Q,m,P){z1.prototype.init.call(this,D,Q,m);if(Q.skipOrPreviewRenderer){if(D=g.A(Q.skipOrPreviewRenderer,$w))m=new NW(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C,this.j),m.b0(this.x9),m.init(PR("skip-button"),D,this.macros),g.O(this,m);if(D=g.A(Q.skipOrPreviewRenderer,$w))var W=D.skipOffsetMilliseconds}Q.brandInteractionRenderer&&(D=Q.brandInteractionRenderer.brandInteractionRenderer,m=new s9(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),
m.b0(this.t0),m.init(PR("instream-user-sentiment"),D,this.macros),g.O(this,m));if(D=g.A(Q,vqV))if(D=g.A(D,vqV))m=new iu(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C,!!Q.showWithoutLinkedMediaLayout),g.O(this,m),m.b0(this.N),m.init(PR("flyout-cta"),D,this.macros);P=P&&P.videoAdDurationSeconds;Q.adBadgeRenderer&&(m=Q.adBadgeRenderer,D=g.A(m,pw),D!=null?(m=new JF(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!1),g.O(this,m),m.b0(this.S),m.init(PR("ad-badge"),
D,this.macros),this.T=m.element):(D=m.simpleAdBadgeRenderer,D==null&&(D={text:{text:"Ad",isTemplated:!1}}),m=new Zc(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0),g.O(this,m),m.b0(this.S),m.init(PR("simple-ad-badge"),D,this.macros)));Q.adPodIndex&&(D=g.A(Q.adPodIndex,G4h),D!=null&&(m=new lu(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,m),m.b0(this.S),m.init(PR("ad-pod-index"),D)));Q.adDurationRemaining&&!Q.showWithoutLinkedMediaLayout&&(D=Q.adDurationRemaining.adDurationRemainingRenderer,
D==null&&(D={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),P=new gE(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C,P,!1),g.O(this,P),P.b0(this.S),P.init(PR("ad-duration-remaining"),D,this.macros));Q.adInfoRenderer&&(P=g.A(Q.adInfoRenderer,bP))&&(D=new ri(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.element,void 0,!1),g.O(this,D),this.T!==null?this.S.insertBefore(D.element,this.T.nextSibling):D.b0(this.S),
D.init(PR("ad-info-hover-text-button"),P,this.macros));Q.visitAdvertiserRenderer&&(D=g.A(Q.visitAdvertiserRenderer,g.CE))&&(m=tan(this)&&this.B?this.B:this.S)&&(P=new yQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,P),P.b0(m),P.init(PR("visit-advertiser"),D,this.macros),$G(P.element),D=Ov(P.element),vV(P.element,D+" This link opens in new tab"));!(P=this.api.G())||g.dv(P)||g.W8(P)||P.controlsType!="3"&&!P.disableOrganicUi||(W=new H_(this.api,this.C,W,!1),W.b0(this.u0),
g.O(this,W));Q.adDisclosureBannerRenderer&&(Q=g.A(Q.adDisclosureBannerRenderer,ry4))&&(W=new ID(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),W.b0(this.Iy),W.init(PR("ad-disclosure-banner"),Q),g.O(this,W));this.api.G().V("enable_updated_html5_player_focus_style")&&g.mQ(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
Ks.prototype.clear=function(){this.hide()};g.eY.prototype.flush=function(D,Q){D=D===void 0?[]:D;Q=Q===void 0?!1:Q;if(g.oi("enable_client_streamz_web")){D=g.T(D);for(var m=D.next();!m.done;m=D.next())m=rrh(m.value),this.S&&nB(m,L1,2,this.S),m={serializedIncrementBatch:g.EG(m.T())},g.WD("streamzIncremented",m,{sendIsolatedPayload:Q})}};
g.Z(brr,g.eY);var Igk=new Map;v_.prototype.set=function(D,Q,m){m=m!==void 0?Date.now()+m:void 0;this.S.set(D,Q,m)};
v_.prototype.get=function(D){return this.S.get(D)};
v_.prototype.remove=function(D){this.S.remove(D)};var C87=null;var ps=null,xB=null,Xo=null,yk7=null;g.ch("yt.www.ads.eventcache.getLastCompanionData",function(){return ps});
g.ch("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.ch("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return xB});
g.ch("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Xo});
g.ch("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return yk7});var FD7=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);SY.prototype.handleResponse=function(D,Q){if(!Q)throw Error("request needs to be passed into ConsistencyService");var m,P;Q=((m=Q.IZ.context)==null?void 0:(P=m.request)==null?void 0:P.consistencyTokenJars)||[];var W;(D=(W=D.responseContext)==null?void 0:W.consistencyTokenJar)&&this.replace(Q,D)};
SY.prototype.replace=function(D,Q){D=g.T(D);for(var m=D.next();!m.done;m=D.next())delete this.S[m.value.encryptedTokenJarContents];hdk(this,Q)};var tUK=window.location.hostname.split(".").slice(-2).join("."),ll;GO.getInstance=function(){ll=g.Q4("yt.clientLocationService.instance");ll||(ll=new GO,g.ch("yt.clientLocationService.instance",ll));return ll};
g.y=GO.prototype;
g.y.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.S)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.S.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.S.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.S.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.T||this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.T||
this.locationPlayabilityToken};
g.y.handleResponse=function(D){var Q;D=(Q=D.responseContext)==null?void 0:Q.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.S=void 0,g.YK("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=rE(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):g.Jl("YT_CL",JSON.stringify({loctok:D}),15552E3,tUK,!0))};
g.y.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=rE(this))&&this.localStorage.remove("yt-location-playability-token"):g.Ii("YT_CL");this.T=void 0;this.C!==-1&&(clearTimeout(this.C),this.C=-1)};
g.y.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Q=!1,m=1E4;g.YK("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,m=15E3);return new Promise(function(P,W){navigator.geolocation.getCurrentPosition(function(L){D.S=L;P(L)},function(L){W(L)},{enableHighAccuracy:Q,
maximumAge:0,timeout:m})})};
g.y.createUnpluggedLocationInfo=function(D){var Q={};D=D.coords;if(D==null?0:D.latitude)Q.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)Q.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)Q.locationRadiusMeters=Math.round(D.accuracy);return Q};
g.y.createLocationInfo=function(D){var Q={};D=D.coords;if(D==null?0:D.latitude)Q.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)Q.longitudeE7=Math.floor(D.longitude*1E7);return Q};g.y=wDu.prototype;g.y.contains=function(D){return Object.prototype.hasOwnProperty.call(this.S,D)};
g.y.get=function(D){if(this.contains(D))return this.S[D]};
g.y.set=function(D,Q){this.S[D]=Q};
g.y.G8=function(){return Object.keys(this.S)};
g.y.remove=function(D){delete this.S[D]};c_.prototype.getModuleId=function(D){return D.serviceId.getModuleId()};
c_.prototype.get=function(D){a:{var Q=this.mappings.get(D.toString());switch(Q.type){case "mapping":D=Q.value;break a;case "factory":Q=Q.value();this.mappings.set(D.toString(),{type:"mapping",value:Q});D=Q;break a;default:D=ty(Q)}}return D};
c_.prototype.registerService=function(D,Q){this.mappings.set(D.toString(),{type:"mapping",value:Q});return D};
new c_;var Ih={},k37=(Ih.WEB_UNPLUGGED="^unplugged/",Ih.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ih.WEB_UNPLUGGED_OPS="^unplugged/",Ih.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ih.WEB_CREATOR="^creator/",Ih.WEB_KIDS="^kids/",Ih.WEB_EXPERIMENTS="^experiments/",Ih.WEB_MUSIC="^music/",Ih.WEB_REMIX="^music/",Ih.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ih.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ih);m4.prototype.J=function(D,Q,m){Q=Q===void 0?{}:Q;m=m===void 0?tE:m;var P={context:g.MW(D.clickTrackingParams,!1,this.B)};var W=this.C(D);if(W){this.S(P,W,Q);var L;Q=g.Qd(this.T());(W=(L=g.A(D.commandMetadata,g.TF))==null?void 0:L.apiUrl)&&(Q=W);L=bCu(Ri(Q));D=Object.assign({},{command:D},void 0);P={input:L,mw:U2(L),IZ:P,config:D};P.config.sI?P.config.sI.identity=m:P.config.sI={identity:m};return P}m=new g.OI("Error: Failed to create Request from Command.",D);g.JG(m)};
g.i6.Object.defineProperties(m4.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.Z(PI,m4);g.Z(WI,PI);WI.prototype.J=function(){return{input:"/getDatasyncIdsEndpoint",mw:U2("/getDatasyncIdsEndpoint","GET"),IZ:{}}};
WI.prototype.T=function(){return[]};
WI.prototype.C=function(){};
WI.prototype.S=function(){};var z$h={},dRm=(z$h.GET_DATASYNC_IDS=Di(WI),z$h);var Rh={},bkM=(Rh["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Rh["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Rh["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Rh["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Rh["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Rh["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Rh["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
Rh["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Rh["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Rh["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Rh["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Rh["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Rh["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Rh["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Rh["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
Rh["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Rh["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Rh["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Rh["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Rh["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Rh["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Rh["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
Rh["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Rh.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Rh["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Rh["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Rh["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Rh["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Rh["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Rh["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
Rh["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Rh["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Rh["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Rh["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Rh["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Rh["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Rh["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Rh["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Rh["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Rh["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Rh.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Rh["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Rh["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Rh["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Rh["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Rh["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Rh["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Rh["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Rh["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Rh["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Rh["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Rh["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Rh["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Rh["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Rh["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Rh["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Rh["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Rh["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Rh["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Rh["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Rh["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Rh["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
Rh["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Rh["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Rh["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Rh["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Rh["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Rh["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Rh["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Rh["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Rh["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
Rh["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Rh["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Rh["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Rh["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Rh["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Rh["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Rh["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Rh["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
Rh),Ua={},KDk=(Ua.auto_search="LATENCY_ACTION_AUTO_SEARCH",Ua.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Ua.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Ua.app_startup="LATENCY_ACTION_APP_STARTUP",Ua.browse="LATENCY_ACTION_BROWSE",Ua.cast_splash="LATENCY_ACTION_CAST_SPLASH",Ua.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Ua.channels="LATENCY_ACTION_CHANNELS",Ua.chips="LATENCY_ACTION_CHIPS",Ua.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Ua.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Ua.editor="LATENCY_ACTION_EDITOR",Ua.embed="LATENCY_ACTION_EMBED",Ua.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Ua.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Ua.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Ua.explore="LATENCY_ACTION_EXPLORE",Ua.favorites="LATENCY_ACTION_FAVORITES",Ua.home="LATENCY_ACTION_HOME",Ua.inboarding="LATENCY_ACTION_INBOARDING",Ua.landing="LATENCY_ACTION_LANDING",Ua.learning="LATENCY_ACTION_LEARNING",
Ua.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Ua.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Ua.library="LATENCY_ACTION_LIBRARY",Ua.live="LATENCY_ACTION_LIVE",Ua.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Ua.management="LATENCY_ACTION_MANAGEMENT",Ua.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Ua.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Ua.onboarding="LATENCY_ACTION_ONBOARDING",Ua.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Ua.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Ua.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Ua.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Ua.prebuffer="LATENCY_ACTION_PREBUFFER",Ua.prefetch="LATENCY_ACTION_PREFETCH",Ua.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Ua.profile_switcher="LATENCY_ACTION_LOGIN",Ua.projects="LATENCY_ACTION_PROJECTS",Ua.reel_watch="LATENCY_ACTION_REEL_WATCH",Ua.results="LATENCY_ACTION_RESULTS",Ua.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Ua.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ua.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Ua.review="LATENCY_ACTION_REVIEW",Ua.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Ua.search_ui="LATENCY_ACTION_SEARCH_UI",Ua.search_suggest="LATENCY_ACTION_SUGGEST",Ua.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Ua.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Ua.seek="LATENCY_ACTION_PLAYER_SEEK",Ua.settings="LATENCY_ACTION_SETTINGS",Ua.store="LATENCY_ACTION_STORE",
Ua.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Ua.tenx="LATENCY_ACTION_TENX",Ua.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Ua.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Ua.watch="LATENCY_ACTION_WATCH",Ua.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Ua["watch,watch7"]="LATENCY_ACTION_WATCH",Ua["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Ua["watch,watch7ad"]="LATENCY_ACTION_WATCH",Ua["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Ua.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Ua.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Ua.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Ua.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Ua.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Ua.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Ua.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Ua.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Ua);Object.assign(KDk,bkM);g.Z(qz,z0);var G3n=new bI("aft-recorded",qz);var qG2=g.Mu.ytLoggingGelSequenceIdObj_||{};g.ch("ytLoggingGelSequenceIdObj_",qG2);var fc=g.Mu.ytLoggingLatencyUsageStats_||{};g.ch("ytLoggingLatencyUsageStats_",fc);Cc.prototype.tick=function(D,Q,m,P){Vd(this,"tick_"+D+"_"+Q)||g.WD("latencyActionTicked",{tickName:D,clientActionNonce:Q},{timestamp:m,cttAuthInfo:P})};
Cc.prototype.info=function(D,Q,m){var P=Object.keys(D).join("");Vd(this,"info_"+P+"_"+Q)||(D=Object.assign({},D),D.clientActionNonce=Q,g.WD("latencyActionInfo",D,{cttAuthInfo:m}))};
Cc.prototype.jspbInfo=function(D,Q,m){for(var P="",W=0;W<ON(D).length;W++)ON(D)[W]!==void 0&&(P=W===0?P.concat(""+W):P.concat("_"+W));if(!Vd(this,"info_"+P+"_"+Q)){Ub(D,2,Q);m={cttAuthInfo:m};Q=g.oi("jspb_sparse_encoded_pivot")?new H0([{}]):new H0;Rs6(Q,Iw,7,qxK,D);m=m===void 0?{}:m;D=!1;g.YK("ytLoggingEventsDefaultDisabled",!1)&&(D=!0);D=D?null:g.xT;m=m===void 0?{}:m;P=Math.round(m.timestamp||(0,g.T3)());Rt(Q,1,P<Number.MAX_SAFE_INTEGER?P:0);P=new Uj;m.lact?Rt(P,1,isFinite(m.lact)?m.lact:-1):m.timestamp?
Rt(P,1,-1):(W=FE(),Rt(P,1,isFinite(W)?W:-1));if(m.sequenceGroup&&!g.oi("web_gel_sequence_info_killswitch")){W=m.sequenceGroup;var L=CSm(W),u=new Rw;Rt(u,2,L);Ub(u,1,W);nB(P,Rw,3,u);m.endOfSequence&&delete qG2[m.sequenceGroup]}nB(Q,Uj,33,P);(m.sendIsolatedPayload?ARr:p07)("latencyActionInfo",{endpoint:"log_event",payload:Q,cttAuthInfo:m.cttAuthInfo,dangerousLogToVisitorSession:m.dangerousLogToVisitorSession},D)}};
Cc.prototype.span=function(D,Q,m){var P=Object.keys(D).join("");Vd(this,"span_"+P+"_"+Q)||(D.clientActionNonce=Q,g.WD("latencyActionSpan",D,{cttAuthInfo:m}))};var Hw=window,Nz=Hw.performance||Hw.mozPerformance||Hw.msPerformance||Hw.webkitPerformance||new jWj;var rkm=!1,vDk=!1,BI={'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"},ckm=(0,g.d$)(Nz.clearResourceTimings||Nz.webkitClearResourceTimings||Nz.mozClearResourceTimings||Nz.msClearResourceTimings||Nz.oClearResourceTimings||g.lX,Nz);var CFP=window;CFP.ytcsi&&(CFP.ytcsi.infoGel=g.Jd,CFP.ytcsi.tick=kY);var oTm="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),VIm=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var ZR6=new Tc("INNERTUBE_TRANSPORT_TOKEN");g.Z($Y,PI);$Y.prototype.T=function(){return GHV};
$Y.prototype.C=function(D){return g.A(D,UiU)||void 0};
$Y.prototype.S=function(D,Q,m){m=m===void 0?{}:m;Q.channelIds&&(D.channelIds=Q.channelIds);Q.siloName&&(D.siloName=Q.siloName);Q.params&&(D.params=Q.params);m.botguardResponse&&(D.botguardResponse=m.botguardResponse);m.feature&&(D.clientFeature=m.feature)};
g.i6.Object.defineProperties($Y.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.Z(ez,PI);ez.prototype.T=function(){return Me2};
ez.prototype.C=function(D){return g.A(D,RMT)||void 0};
ez.prototype.S=function(D,Q){Q.channelIds&&(D.channelIds=Q.channelIds);Q.siloName&&(D.siloName=Q.siloName);Q.params&&(D.params=Q.params)};
g.i6.Object.defineProperties(ez.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ozV=new Tc("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.Z(vI,PI);vI.prototype.T=function(){return pu4};
vI.prototype.C=function(D){return g.A(D,FOV)||g.A(D,T9U)||g.A(D,Za$)};
vI.prototype.S=function(D,Q){Q.serializedShareEntity&&(D.serializedSharedEntity=Q.serializedShareEntity);if(Q.clientParamIdentifier){var m;if((m=this.N)==null?0:m.S(Q.clientParamIdentifier))D.clientParams=this.N.C(Q.clientParamIdentifier)}};
vI[gA]=[ozV];g.Z(Ol,PI);Ol.prototype.T=function(){return Xu4};
Ol.prototype.C=function(D){return g.A(D,teP)||void 0};
Ol.prototype.S=function(D,Q,m){D.feedbackTokens=[];Q.feedbackToken&&D.feedbackTokens.push(Q.feedbackToken);if(Q=Q.cpn||m.cpn)D.feedbackContext={cpn:Q};D.isFeedbackTokenUnencrypted=!!m.is_feedback_token_unencrypted;D.shouldMerge=!1;m.extra_feedback_tokens&&(D.shouldMerge=!0,D.feedbackTokens=D.feedbackTokens.concat(m.extra_feedback_tokens))};
g.i6.Object.defineProperties(Ol.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.Z(YY,PI);YY.prototype.T=function(){return SxQ};
YY.prototype.C=function(D){return g.A(D,Iq4)||void 0};
YY.prototype.S=function(D,Q){Q.params&&(D.params=Q.params);Q.secondaryParams&&(D.secondaryParams=Q.secondaryParams)};g.Z(aH,PI);aH.prototype.T=function(){return rt2};
aH.prototype.C=function(D){return g.A(D,Jt4)||void 0};
aH.prototype.S=function(D,Q){Q.actions&&(D.actions=Q.actions);Q.params&&(D.params=Q.params);Q.playlistId&&(D.playlistId=Q.playlistId)};g.Z(Ad,PI);Ad.prototype.T=function(){return xiV};
Ad.prototype.C=function(D){return g.A(D,hMQ)};
Ad.prototype.S=function(D,Q,m){m=m===void 0?{}:m;Q.serializedShareEntity&&(D.serializedSharedEntity=Q.serializedShareEntity);m.includeListId&&(D.includeListId=!0)};var fr4=new Tc("FETCH_FN_TOKEN"),VUh=new Tc("PARSE_FN_TOKEN"),NPk=new Tc("WINDOW_REQUEST_TOKEN"),yiV=new Tc("TEXT_DECODER_TOKEN");g.Z(g.pc,g.OI);var ZkT=new Tc("NETWORK_SLI_TOKEN");xY.prototype.fetch=function(D,Q,m){var P=this,W,L,u;return g.U(function(t){W=Nkj(P,D,Q);u=(L=P.C)!=null?L:fetch;return t.return(u(W).then(function(z){return P.handleResponse(z,m)}).catch(function(z){g.l4(z);
if((m==null?0:m.Ok)&&z instanceof g.pc&&z.errorType===1)return Promise.reject(z)}))})};
xY.prototype.handleResponse=function(D,Q){var m,P=(m=this.T)!=null?m:JSON.parse;m=D.text().then(function(W){if((Q==null?0:Q.AQ)&&D.ok)return Di6(Q.AQ,W);W=W.replace(")]}'","");if((Q==null?0:Q.Ok)&&W)try{var L=P(W)}catch(t){throw new g.pc(1,"JSON parsing failed after fetch");}var u;return(u=L)!=null?u:P(W)});
D.redirected||D.ok?this.S&&this.S.success():(this.S&&this.S.ArO(),m=m.then(function(W){g.l4(new g.OI("Error: API fetch failed",D.status,D.url,W));return Object.assign({},W,{errorMetadata:{status:D.status}})}));
return m};
xY[gA]=[nP(ZkT),nP(fr4),nP(VUh),nP(NPk),nP(yiV)];var yEP=new Tc("NETWORK_MANAGER_TOKEN");var Xf;Gb.prototype.bindInnertubeChallengeFetcher=function(D){this.S.bicf(D)};
Gb.prototype.registerChallengeFetchedCallback=function(D){this.S.bcr(D)};
Gb.prototype.getLatestChallengeResponse=function(){return this.S.blc()};var F$v=g.f9(["https://static.doubleclick.net/instream/ad_status.js"]),nT_=[],hmj=g.G4(F$v),Mz=!1;Pg.prototype.B=function(){var D=this;return g.U(function(Q){return Q.C==1?g.I(Q,Promise.race([D.S,null]),2):Q.return(!!Q.S)})};
Pg.prototype.T=function(D,Q,m){var P=this,W,L,u;return g.U(function(t){P.S===null&&gTn(P,mI(P));W=!1;L={};u=function(){var z,b,q;return g.U(function(C){switch(C.C){case 1:return g.I(C,P.S,2);case 2:z=C.S;L.challenge=z.challenge;if(!z.IF){"c1a"in z.D7&&(L.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");C.Nv(3);break}b=Object.assign({},{c:z.challenge,e:D},Q);g.h4(C,4);W=!0;return g.I(C,z.IF.snapshot({z8:b}),6);case 6:(q=C.S)?L.webResponse=q:L.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.g7(C,3);break;case 4:g.w7(C),
L.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(D==="ENGAGEMENT_TYPE_PLAYBACK"){var f=z.D7,V={};f.c6a&&(V.reportingStatus=String(Number(f.c)^cI()));f.c6b&&(V.broadSpectrumDetectionResult=String(Number(f.c)^Number(g.YK("CATSTAT",0))));L.adblockReporting=V}return C.return(L)}})};
return t.return(Promise.race([u(),JE7(m,function(){var z=Object.assign({},L);W&&(z.error="ATTESTATION_ERROR_VM_TIMEOUT");return z})]))})};var Rmm=["APP_STATE","PI"];var Z8k=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,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,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,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,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,
195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,
149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,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,257268,63349,240553,95101,
75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,
130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,
203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,
67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,
93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];io.prototype.getState=function(){return this.store.getState()};
io.prototype.dispatch=function(D){return this.store.dispatch(D)};
io.prototype.subscribe=function(D){return this.store.subscribe(D)};
io.prototype.replaceReducer=function(D){return this.store.replaceReducer(D)};
io.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};Lh.prototype.append=function(D){if(KVm(this,D)){var Q=this.S[this.S.length-1];this.S[this.S.length-1]=new Uint8Array(Q.buffer,Q.byteOffset,Q.length+D.length);tP(this)}else this.S.push(D);this.totalLength+=D.length};
Lh.prototype.split=function(D){for(var Q=new Lh,m=new Lh,P=g.T(this.S),W=P.next();!W.done;W=P.next())W=W.value,D>=W.length?(Q.append(W),D-=W.length):D?(Q.append(new Uint8Array(W.buffer,W.byteOffset,D)),m.append(new Uint8Array(W.buffer,W.byteOffset+D,W.length-D)),D=0):m.append(W);return{Ul:Q,Gx:m}};
Lh.prototype.isFocused=function(D){return D>=this.T&&D<this.T+this.S[this.C].length};
Lh.prototype.focus=function(D){if(!this.isFocused(D)){for(D<this.T&&tP(this);this.T+this.S[this.C].length<=D&&this.C<this.S.length;)this.T+=this.S[this.C].length,this.C+=1;this.B=void 0}};var VD,o9,yD;g.vO=function(){function D(P){for(var W=new Uint8Array(P.length),L=0;L<P.length;L++)W[L]=P[L];return W}
function Q(P){return new Uint8Array(P)}
var m=new Uint8Array([1]);return m.length===1&&m[0]===1?Q:D}();
VD=Array(1024);o9=window.TextDecoder?new TextDecoder:void 0;yD=window.TextEncoder?new TextEncoder:void 0;for(var Xfj={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},xRj={},TP2=g.T(Object.entries(Xfj)),h$h=TP2.next();!h$h.done;h$h=TP2.next()){var nzT=g.T(h$h.value),EzM=nzT.next().value,gzV=nzT.next().value,BPh=EzM,wz$=gzV;wz$&&(xRj[wz$]=BPh)};var G0m=!1,Pt,Wt,im,s0,LL;g.Z(um,g.v);
um.prototype.encrypt=function(D){var Q=D.length;D=new Uint8Array(D.buffer.slice(D.byteOffset,D.byteOffset+Q));for(var m=this.C,P=0;P<Q&&this.S<16;)D[P++]^=m[this.S++];for(var W=Q-(Q-P)%16;P<W;)MI6(this),D[P++]^=m[0],D[P++]^=m[1],D[P++]^=m[2],D[P++]^=m[3],D[P++]^=m[4],D[P++]^=m[5],D[P++]^=m[6],D[P++]^=m[7],D[P++]^=m[8],D[P++]^=m[9],D[P++]^=m[10],D[P++]^=m[11],D[P++]^=m[12],D[P++]^=m[13],D[P++]^=m[14],D[P++]^=m[15];if(P<Q)for(MI6(this),this.S=0;P<Q;)D[P++]^=m[this.S++];return D};var dd=!1;(function(){function D(P){for(var W=new Uint8Array(P.length),L=0;L<P.length;L++)W[L]=P[L];return W}
function Q(P){return new Uint8Array(P)}
var m=new Uint8Array([1]);return m.length===1&&m[0]===1?Q:D})();
var tC;g.CL.prototype.encrypt=function(D,Q){var m=this,P;return g.U(function(W){switch(W.C){case 1:if(!m.S){W.Nv(2);break}g.h4(W,3);return g.I(W,m.S.encrypt(D,Q),5);case 5:return W.return(W.S);case 3:P=g.w7(W),g.l4(P),dd=!0,m.S=void 0;case 2:return W.return(m.C.encrypt(D,Q))}})};
g.CL.prototype.decrypt=function(D,Q){return this.encrypt(D,Q)};
bm.prototype.encrypt=function(D,Q){var m=this,P;return g.U(function(W){if(W.C==1)return g.h4(W,2),g.I(W,cE7(m,D,Q),4);if(W.C!=2)return W.return(W.S);P=g.w7(W);g.l4(P);dd=!0;throw P;})};
g.ql.prototype.encrypt=function(D,Q){this.S||(this.S=new um(this.C));for(var m=this.S,P=0;P<4;P++)m.counter[P]=Q[P*4]<<24|Q[P*4+1]<<16|Q[P*4+2]<<8|Q[P*4+3];m.S=16;return this.S.encrypt(D)};
g.ql.prototype.decrypt=function(D,Q){return this.encrypt(D,Q)};o1.prototype.reset=function(){Ql_(this);this.update(this.T)};
o1.prototype.update=function(D){var Q=0,m=D.length;this.B+=m;this.C&&this.C+m>=64&&(this.N.set(D.subarray(0,64-this.C),this.C),Q=64-this.C,this.C=0,DF6(this,this.N,0));for(;Q+64<=m;Q+=64)DF6(this,D,Q);Q<m&&(D=D.subarray(Q),this.N.set(D,this.C),this.C+=D.length)};
var fL=[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 kQU;kQU={};g.JiP=g.G3("yt-idb-pref-storage",{yq:(kQU.prefs={NO:1},kQU),shared:!1,upgrade:function(D,Q){Q(1)&&g.l8(g.E4(D,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var Kq;Kq={};g.lrk=(Kq.INVALID_ENCODER_VERSION="Invalid encoder version",Kq.KEY_CREATION_FAILED="Failed to create encoder key",Kq.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Kq.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Kq.WRONG_DATA_TYPE="Encoder cannot process the data type",Kq);g.cg("","downloadsPageViewConfigurationEntity");g.cg("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.jS=g.cg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.cg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.cg("SMART_DOWNLOADS_ENABLED","settingEntity");g.cg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var yjm=new Tc("POSTMESSAGE_TUNNEL_TOKEN");var hO9=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.y=Nl.prototype;g.y.initialize=function(D,Q,m,P){this.LI=P;if(D.program){var W;P=(W=D.interpreterUrl)!=null?W:null;if(D.interpreterSafeScript)W=BWm(D.interpreterSafeScript);else{var L;W=(L=D.interpreterScript)!=null?L:null}D.interpreterSafeUrl&&(P=yC(D.interpreterSafeUrl).toString());TAk(this,W,P,D.program,Q,m)}else g.l4(Error("BL:CIP"))};
g.y.isInitialized=function(){return this.C9()};
g.y.getState=function(){return this.state};
g.y.isLoading=function(){return this.state===2};
g.y.invoke=function(D){D=D===void 0?{}:D;return this.C9()?this.U6({z8:D}):null};
g.y.dispose=function(){this.Md(null);this.pM(8)};
g.y.C9=function(){return!!this.IF};
g.y.U6=function(D){return this.IF.nS(D)};
g.y.Md=function(D){g.Dp(this.IF);this.IF=D};
g.y.pM=function(D){this.state=D};g.Z(ZA,Nl);ZA.prototype.Md=function(D){var Q;(Q=yu())==null||Q.bgvma();D?(Q={bgvma:D.dispose.bind(D),bgvmb:D.snapshot.bind(D),bgvmc:D.nS.bind(D)},g.ch("yt.abuse.playerAttLoader",Q),g.ch("yt.abuse.playerAttLoaderRun",function(m){return D.snapshot(m)})):(g.ch("yt.abuse.playerAttLoader",null),g.ch("yt.abuse.playerAttLoaderRun",null))};
ZA.prototype.C9=function(){return!!yu()};
ZA.prototype.U6=function(D){return yu().bgvmc(D)};FZ.prototype.JZ=function(){return"crossDeviceProgressCommand"};
FZ.prototype.cZ=function(D){if(D.crossDevicePings){var Q=[];D=g.T(D.crossDevicePings);for(var m=D.next();!m.done;m=D.next())Q.push({baseUrl:m.value.baseUrl});g.WD("crossDeviceNotificationTransfer",{crossDevicePings:Q})}};TJ.prototype.JZ=function(){return"muteAdEndpoint"};
TJ.prototype.cZ=function(D,Q){switch(D.type){case "SKIP":njk(this.kS,this.oH,Q)}};hC.prototype.JZ=function(){return"openPopupAction"};
hC.prototype.cZ=function(){};nL.prototype.JZ=function(){return"pingingEndpoint"};
nL.prototype.cZ=function(){};var lyP={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.Z(gjk,g.v);var b9k={LDq:"FINAL",Z6F:"AD_BREAK_LENGTH",PHF:"AD_CPN",awc:"AH",pB0:"AD_MT",YNq:"ASR",s_9:"AW",CKD:"NM",TTc:"NX",dL0:"NY",RAc:"CONN",bUD:"CPN",cn9:"DV_VIEWABILITY",scF:"ERRORCODE",f_0:"ERROR_MSG",oFq:"EI",QkO:"GOOGLE_VIEWABILITY",LKD:"IAS_VIEWABILITY",nSc:"LACT",bZW:"LIVE_TARGETING_CONTEXT",U40:"I_X",q1D:"I_Y",LFv:"MT",cT9:"MIDROLL_POS",ATq:"MIDROLL_POS_MS",WFc:"MOAT_INIT",ljT:"MOAT_VIEWABILITY",boT:"P_H",Qzx:"PV_H",Hoc:"PV_W",Ooy:"P_W",JpD:"TRIGGER_TYPE",f70:"SDKV",Nx0:"SLOT_POS",VRF:"SURVEY_LOCAL_TIME_EPOCH_S",
et9:"SURVEY_ELAPSED_MS",pV:"VIS",Cxz:"VIEWABILITY",dAT:"VED",Imv:"VOL",hFF:"WT",Yjq:"YT_ERROR_CODE"};Bt.prototype.JZ=function(){return"urlEndpoint"};
Bt.prototype.cZ=function(D,Q,m){var P=this.eD.get(),W=zN(P.C.get(),Q);W?Q=yB(P,i9v(W),W,void 0,void 0,m):(bu("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Q}),Q={});Q=Object.assign({},Q);eq(this.S,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(m=rM(this.Bx,2))&&(Q.AD_CPN=m.clientPlaybackNonce);Q=g.BV(D.url,Q);D=g.AF(Q,void 0,void 0,void 0,D.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");ZPm(D,Q)};wd.prototype.get=function(){return this.value};
g.Z(kL,wd);kL.prototype.S=function(){return"metadata_type_action_companion_ad_renderer"};
g.Z(JC,wd);JC.prototype.S=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.Z(lm,wd);lm.prototype.S=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.Z(I1,wd);I1.prototype.S=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.Z(R1,wd);R1.prototype.S=function(){return"metadata_type_ad_next_params"};
g.Z(U0,wd);U0.prototype.S=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.Z(Ht,wd);Ht.prototype.S=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.Z(KL,wd);KL.prototype.S=function(){return"metadata_type_image_companion_ad_renderer"};
g.Z(jb,wd);jb.prototype.S=function(){return"metadata_type_banner_image_layout_view_model"};
g.Z($L,wd);$L.prototype.S=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.Z(eb,wd);eb.prototype.S=function(){return"metadata_type_ad_info_ad_metadata"};
g.Z(vt,wd);vt.prototype.S=function(){return"metadata_ad_video_is_listed"};
g.Z(O0,wd);O0.prototype.S=function(){return"metadata_type_ad_placement_config"};
g.Z(YL,wd);YL.prototype.S=function(){return"metadata_type_ad_pod_info"};
g.Z(a1,wd);a1.prototype.S=function(){return"metadata_type_ad_pod_skip_index"};
g.Z(AC,wd);AC.prototype.S=function(){return"metadata_type_ad_pod_skip_target"};
g.Z(pL,wd);pL.prototype.S=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.Z(xL,wd);xL.prototype.S=function(){return"metadata_type_ad_video_id"};
g.Z(XZ,wd);XZ.prototype.S=function(){return"metadata_type_content_cpn"};
g.Z(Sb,wd);Sb.prototype.S=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.Z(rd,wd);rd.prototype.S=function(){return"metadata_type_player_overlay_layout_renderer"};
g.Z(GJ,wd);GJ.prototype.S=function(){return"metadata_type_player_underlay_renderer"};
g.Z(Ml,wd);Ml.prototype.S=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.Z(ct,wd);ct.prototype.S=function(){return"metadata_type_media_associated_in_player_slot"};
g.Z(DR,wd);DR.prototype.S=function(){return"metadata_type_shrunken_player_bytes_config"};
g.Z(Qg,wd);Qg.prototype.S=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.Z(mt,wd);mt.prototype.S=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.Z(Pe,wd);Pe.prototype.S=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.Z(We,wd);We.prototype.S=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.Z(iq,wd);iq.prototype.S=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.Z(sf,wd);sf.prototype.S=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.Z(LY,wd);LY.prototype.S=function(){return"metadata_type_linked_in_player_layout_id"};
g.Z(uq,wd);uq.prototype.S=function(){return"metadata_type_linked_in_player_layout_type"};
g.Z(du,wd);du.prototype.S=function(){return"metadata_type_linked_in_player_slot_id"};
g.Z(t8,wd);t8.prototype.S=function(){return"metadata_type_player_bytes_callback"};
g.Z(z_,wd);z_.prototype.S=function(){return"metadata_type_player_bytes_callback_ref"};
g.Z(bq,wd);bq.prototype.S=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.Z(qa,wd);qa.prototype.S=function(){return"metadata_type_sub_layouts"};
g.Z(CY,wd);CY.prototype.S=function(){return"metadata_type_cue_point"};
g.Z(oI,wd);oI.prototype.S=function(){return"metadata_type_triggering_cue_point"};
g.Z(fY,wd);fY.prototype.S=function(){return"metadata_type_video_length_seconds"};
g.Z(Vg,wd);Vg.prototype.S=function(){return"metadata_type_player_vars"};
g.Z(Na,wd);Na.prototype.S=function(){return"metadata_type_preload_player_vars"};
g.Z(yg,wd);yg.prototype.S=function(){return"metadata_type_sodar_extension_data"};
g.Z(ZR,wd);ZR.prototype.S=function(){return"metadata_type_layout_enter_ms"};
g.Z(F9,wd);F9.prototype.S=function(){return"metadata_type_layout_exit_ms"};
g.Z(T_,wd);T_.prototype.S=function(){return"metadata_type_media_sub_layout_index"};
g.Z(h8,wd);h8.prototype.S=function(){return"metadata_type_dai"};
g.Z(nY,wd);nY.prototype.S=function(){return"metadata_type_ad_intro"};
g.Z(Ef,wd);Ef.prototype.S=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.Z(gu,wd);gu.prototype.S=function(){return"metadata_type_drift_recovery_ms"};
g.Z(Be,wd);Be.prototype.S=function(){return"metadata_type_fulfilled_layout"};
g.Z(wu,wd);wu.prototype.S=function(){return"metadata_type_ad_break_request_data"};
g.Z(kh,wd);kh.prototype.S=function(){return"metadata_type_ad_break_response_data"};
g.Z(J8,wd);J8.prototype.S=function(){return"metadata_type_remote_slots_data"};
g.Z(lq,wd);lq.prototype.S=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.Z(II,wd);II.prototype.S=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.Z(RI,wd);RI.prototype.S=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.Z(Uf,wd);Uf.prototype.S=function(){return"metadata_type_valid_ad_message_renderer"};
g.Z(He,wd);He.prototype.S=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.Z(KY,wd);KY.prototype.S=function(){return"metadata_type_served_from_live_infra"};
g.Z(jB,wd);jB.prototype.S=function(){return"metadata_type_survey_overlay"};
g.Z($h,wd);$h.prototype.S=function(){return"metadata_type_active_view_traffic_type"};
g.Z(eB,wd);eB.prototype.S=function(){return"metadata_type_active_view_identifier"};
g.Z(ve,wd);ve.prototype.S=function(){return"metadata_type_ssdai_ads_config"};
g.Z(Of,wd);Of.prototype.S=function(){return"metadata_type_eligible_for_ssap"};
g.Z(Yh,wd);Yh.prototype.S=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.Z(aI,wd);aI.prototype.S=function(){return"metadata_type_player_bytes_slot_metadata"};
g.Z(A8,wd);A8.prototype.S=function(){return"metadata_type_prefetch_metadata"};var Ajr=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 DJ_=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.Z(SB,o4);g.Z(r,o4);new Promise(function(){});var HP7=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"]]),ROk=new Map([["normal",{TB:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{TB:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{TB:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{TB:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{TB:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{TB:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{TB:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",tG:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.Z(sg,g.v);g.y=sg.prototype;g.y.g0=function(D,Q){return this.S.g0(D,Q)};
g.y.Ge=function(D,Q){this.rB.BT("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",D,Q);for(var m=g.T(this.C),P=m.next();!P.done;P=m.next())P.value.Ge(D,Q)};
g.y.zi=function(D){if(zR(this.S,D)){this.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);this.S.zi(D);for(var Q=g.T(this.C),m=Q.next();!m.done;m=Q.next())m.value.zi(D);eO7(this,D)}};
g.y.LO=function(D){if(zR(this.S,D)){this.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);this.S.LO(D);for(var Q=g.T(this.C),m=Q.next();!m.done;m=Q.next())m.value.LO(D);zR(this.S,D)&&bJ(this.S,D).J&&d5(this,D,!1)}};
g.y.TF=function(D){this.rB.hd("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",D);zR(this.S,D)&&(this.S.TF(D),d5(this,D,!1))};
g.y.XA=function(D,Q){if(zR(this.S,D)){this.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",D,Q);for(var m=g.T(this.C),P=m.next();!P.done;P=m.next())P.value.XA(D,Q)}};
g.y.Om=function(D,Q,m){if(zR(this.S,D)){this.rB.dl(UFw(m),D,Q);this.S.Om(D,Q);for(var P=g.T(this.C),W=P.next();!W.done;W=P.next())W.value.Om(D,Q,m);(m=Eg(this.S,D))&&Q.layoutId===m.layoutId&&Gcn(this,D,!1)}};
g.y.hN=function(D,Q,m,P){m.N4&&P?(bu(m,D,Q,void 0,m.G7),this.rB.SH(P,m.N4,D,Q)):bu("adsClientErrorMessage is missing.",D,Q);d5(this,D,!0)};
g.y.Bq=function(){var D=cj6(this.S);D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())d5(this,Q.value,!1);g.v.prototype.Bq.call(this)};
g.y.OH=function(D,Q){this.rB.dl("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",D,Q);this.rB.dl("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",D,Q);for(var m=g.T(this.C),P=m.next();!P.done;P=m.next())P=P.value,Q&&P.OH(D,Q)};MF6.prototype.isActive=function(){switch(this.S){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.Z(w5,g.v);g.y=w5.prototype;g.y.g0=function(D,Q){Q=n8(this,D+"_"+Q);D=[];Q=g.T(Q.values());for(var m=Q.next();!m.done;m=Q.next())D.push(m.value.slot);return D};
g.y.X2=function(D){D=bJ(this,D);D.S!=="not_scheduled"&&g5(D.slot,D.S,"onSlotScheduled");D.S="scheduled"};
g.y.Sj=function(D){D=bJ(this,D);D.B="fill_requested";D.U.Sj()};
g.y.zi=function(D){D=bJ(this,D);D.S!=="enter_requested"&&g5(D.slot,D.S,"onSlotEntered");D.S="entered"};
g.y.TF=function(D){bJ(this,D).B="fill_canceled"};
g.y.LO=function(D){D=bJ(this,D);D.S!=="exit_requested"&&g5(D.slot,D.S,"onSlotExited");D.S="scheduled"};
g.y.Om=function(D,Q){D=bJ(this,D);D.layout!=null&&D.layout.layoutId===Q.layoutId&&(D.S!=="rendering_stop_requested"&&g5(D.slot,D.S,"onLayoutExited"),D.S="entered")};g.Z(lJ,g.v);lJ.prototype.get=function(){Math.random()<.001&&this.VF()&&bu("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.S());return this.instance};g.Z(RA,g.v);RA.prototype.T=function(){return this.C};Ug.prototype.executeCommand=function(D,Q){gd(this.S(),D,Q)};jq.prototype.addListener=function(D){this.listeners.add(D)};
jq.prototype.removeListener=function(D){this.listeners.delete(D)};var $H={},x8=($H.AD_MARKER="ytp-ad-progress",$H.CHAPTER_MARKER="ytp-chapter-marker",$H.TIME_MARKER="ytp-time-marker",$H);var JKm=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/)"),dJ$=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]+)?/)"),
l4m=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),VXP=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)|$))"),
oO6=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)|$))"),bbh=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/)"),
I4j=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),qzw=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)"),zz4=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/.*$)"),
kA7=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)"),
wB6=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)"),
IrT=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.XB.prototype.getId=function(){return this.id};
g.XB.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+F0r(this.start)+", "+F0r(this.end)+"]"};
g.XB.prototype.contains=function(D,Q){return D>=this.start&&(D<this.end||D===this.end&&this.start===this.end)&&(Q==null||D<Q&&Q<=this.end)};
var Zbw=1;g.XB.prototype.getId=g.XB.prototype.getId;Mw.prototype.Sj=function(){var D=this,Q=0;L04(this.S,function(){var m=G_(D.slot.clientMetadata,"metadata_type_ad_break_request_data");Q=Date.now();UJ(D.eD.get(),"abrs","ct."+Q+";cmt."+D.Hq.get().getCurrentTimeSec(1,!1)+";sid."+D.slot.slotId+";");return D.C.get().fetch({Fk:m.getAdBreakUrl,Tz:new g.XB(m.nG,m.DK),K2:G_(D.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:m.cueProcessedMs})},function(){hzm(D)},function(m){var P=Date.now()-Q;
UJ(D.eD.get(),"abrr","ct."+(new Date).getTime()+";cmt."+D.Hq.get().getCurrentTimeSec(1,!1)+";l."+P.toString()+";sid."+D.slot.slotId+";");P=m.Yb;P.length>=2&&m.ssdaiAdsConfig&&bu("Unexpected ad placement renderers length",D.slot,null,{length:P.length});var W;((W=m.adSlots)==null?0:W.some(function(L){var u,t;return((u=g.A(L,V2))==null?void 0:(t=u.adSlotMetadata)==null?void 0:t.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||P.some(function(L){var u,t,z,b;
return!!((u=L.renderer)==null?0:(t=u.linearAdSequenceRenderer)==null?0:(z=t.linearAds)==null?0:z.length)||!((b=L.renderer)==null||!b.instreamVideoAdRenderer)})||hzm(D)})};
Mw.prototype.qP=function(){uz6(this.S)};cF.prototype.Sj=function(){var D=this;L04(this.C,function(){var Q=G_(D.slot.clientMetadata,"metadata_type_ad_break_request_data");return Q.cueProcessedMs?D.S.get().fetch({Fk:Q.getAdBreakUrl,Tz:new g.XB(Q.nG,Q.DK),cueProcessedMs:Q.cueProcessedMs}):D.S.get().fetch({Fk:Q.getAdBreakUrl,Tz:new g.XB(Q.nG,Q.DK)})})};
cF.prototype.qP=function(){uz6(this.C)};Dd.prototype.Sj=function(){var D=this.slot.clientMetadata,Q,m=(Q=this.slot.fulfilledLayout)!=null?Q:G_(D,"metadata_type_fulfilled_layout");vj_(this.callback,this.slot,m)};
Dd.prototype.qP=function(){tV(this.callback,this.slot,new r("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")};mZ.prototype.build=function(D,Q){return Q.fulfilledLayout||QB(Q,{Nj:["metadata_type_fulfilled_layout"]})?new Dd(D,Q):this.T(D,Q)};g.Z(PX,mZ);
PX.prototype.T=function(D,Q){if(QB(Q,{Nj:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Mw(D,Q,this.S,this.C,this.BO,this.Ry,this.eD,this.Hq,this.De);if(QB(Q,{Nj:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new cF(D,Q,this.S,this.C,this.BO,this.Ry);throw new r("Unsupported slot with type: "+Q.slotType+" and client metadata: "+Ma(Q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.Z(WX,mZ);WX.prototype.T=function(D,Q){throw new r("Unsupported slot with type: "+Q.slotType+" and client metadata: "+Ma(Q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.y=nOr.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){};
g.y.release=function(){};
g.y.startRendering=function(D){if(D.layoutId!==this.layout.layoutId)this.callback.hN(this.slot,D,new SB("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 Q=G_(D.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.XA(this.slot,D),$yj(this.T,
this.slot,Q)):bu("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,D)}};
g.y.II=function(D,Q){D.layoutId!==this.layout.layoutId?this.callback.hN(this.slot,D,new SB("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.Om(this.slot,D,Q),gOn(this),Bo9(this))};g.Z(dB,g.iR);g.y=dB.prototype;g.y.AU=function(){return this.C.slot};
g.y.A0=function(){return this.C.layout};
g.y.init=function(){this.T.get().addListener(this)};
g.y.release=function(){this.T.get().removeListener(this);this.dispose()};
g.y.JS=function(){};
g.y.Oh=function(){};
g.y.HJ=function(){};
g.y.v$=function(){};
g.y.startRendering=function(D){var Q=this;ua(this.C,D,function(){return void Q.qS()})};
g.y.qS=function(){this.T.get().qS(this.S)};
g.y.II=function(D,Q){var m=this;ua(this.C,D,function(){var P=m.T.get();Z9h(P,m.S,3);m.S=[];m.callback.Om(m.slot,D,Q)})};
g.y.Bq=function(){this.T.VF()||this.T.get().removeListener(this);g.iR.prototype.Bq.call(this)};
g.i6.Object.defineProperties(dB.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.C.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.C.layout}}});VB.prototype.j1=function(D,Q){Q=Q===void 0?!1:Q;var m=(this.T.get(D)||[]).concat();if(Q=Q&&ll7(D)){var P=this.T.get(Q);P&&m.push.apply(m,g.on(P))}Zd(this,D,m);this.S.add(D);Q&&this.S.add(Q)};
VB.prototype.ZG=function(D,Q){Q=Q===void 0?!1:Q;if(!this.S.has(D)){var m=Q&&ll7(D);m&&(Q=!this.S.has(m));this.j1(D,Q)}};g.Z(UJu,WR);g.Z(Eo,dB);g.y=Eo.prototype;g.y.bQ=function(D,Q){q0("ads-engagement-panel-layout",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,A5),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Q,m,P,W,L){return new UJu(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(K07,WR);g.Z(gB,dB);g.y=gB.prototype;g.y.bQ=function(D,Q){q0("banner-image",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,Yr),this.callback,"metadata_type_banner_image_layout_view_model",function(Q,m,P,W,L){return new K07(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(BX,WR);g.Z(wB,dB);g.y=wB.prototype;g.y.bQ=function(D,Q){q0("action-companion",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,eD),this.callback,"metadata_type_action_companion_ad_renderer",function(Q,m,P,W,L){return new BX(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){Q.layoutId===this.layout.layoutId?this.ph.ZG("impression"):this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(ez_,WR);g.Z(k3,dB);g.y=k3.prototype;g.y.bQ=function(D,Q){q0("image-companion",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,vQ),this.callback,"metadata_type_image_companion_ad_renderer",function(Q,m,P,W,L){return new ez_(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){Q.layoutId===this.layout.layoutId?this.ph.ZG("impression"):this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(Obk,WR);g.Z(Ja,dB);g.y=Ja.prototype;g.y.bQ=function(D,Q){q0("shopping-companion",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Q,m,P,W,L){return new Obk(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){Q.layoutId===this.layout.layoutId?this.ph.ZG("impression"):this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(IL,dB);g.y=IL.prototype;g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Q,m,P,W,L){return new BX(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};
g.y.bQ=function(){};g.y=Xi4.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){this.Hq.get().addListener(this);this.Hq.get().Wm.push(this);var D=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");CZ(this.layout.Ij)&&m7(this.BY.get(),this.layout.layoutId,{Mf:Q,Zo:D,listener:this})};
g.y.release=function(){this.Hq.get().removeListener(this);oP4(this.Hq.get(),this);CZ(this.layout.Ij)&&PH(this.BY.get(),this.layout.layoutId)};
g.y.startRendering=function(D){this.callback.XA(this.slot,D)};
g.y.II=function(D,Q){$1n(this.Ry.get())&&!this.S&&(this.ph.ZG("abandon"),this.S=!0);this.callback.Om(this.slot,D,Q)};
g.y.An=function(D){switch(D.id){case "part2viewed":this.ph.ZG("start");this.ph.ZG("impression");break;case "videoplaytime25":this.ph.ZG("first_quartile");break;case "videoplaytime50":this.ph.ZG("midpoint");break;case "videoplaytime75":this.ph.ZG("third_quartile");break;case "videoplaytime100":$1n(this.Ry.get())?this.S||(this.ph.ZG("complete"),this.S=!0):this.ph.ZG("complete");nZ(this.ph)&&TV(this.ph,Infinity,!0);eph(this.Ry.get())&&la(this.C,Infinity,!0);break;case "engagedview":nZ(this.ph)||this.ph.ZG("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:bu("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.y.onVolumeChange=function(){};
g.y.dT=function(){};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.onFullscreenToggled=function(){};
g.y.sH=function(){};
g.y.Zr=function(){};
g.y.fH=function(D){eph(this.Ry.get())&&la(this.C,D*1E3,!1);nZ(this.ph)&&TV(this.ph,D*1E3,!1)};
g.y.Pc=function(){};
g.y.kf=function(){this.ph.ZG("active_view_measurable")};
g.y.zK=function(){this.ph.ZG("active_view_viewable")};
g.y.qH=function(){this.ph.ZG("active_view_fully_viewable_audible_half_duration")};
g.y.UG=function(){this.ph.ZG("audio_measurable")};
g.y.xf=function(){this.ph.ZG("audio_audible")};g.Z(RL,dB);g.y=RL.prototype;g.y.init=function(){dB.prototype.init.call(this);var D=G_(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.Ur};this.S.push(new Fo(D,this.layout.layoutId,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,!0))};
g.y.OM=function(){this.B||this.Hq.get().resumeVideo(1)};
g.y.startRendering=function(D){dB.prototype.startRendering.call(this,D);zu(this.Hq.get(),"ad-showing");this.callback.XA(this.slot,D);this.J.XC=this};
g.y.II=function(D,Q){dB.prototype.II.call(this,D,Q);bG(this.Hq.get(),"ad-showing");rU(this.J,this)};
g.y.bQ=function(D){switch(D){case "ad-info-icon-button":(this.B=this.Hq.get().Xv(1))||this.Hq.get().pauseVideo();break;case "visit-advertiser":this.Hq.get().pauseVideo()}};
g.y.Bq=function(){dB.prototype.Bq.call(this)};g.Z(Uo,WR);g.Z(HX,dB);g.y=HX.prototype;g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,m,P,W,L){return new Uo(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};
g.y.bQ=function(){};g.Z(KZ,WR);g.Z(jL,dB);jL.prototype.init=function(){dB.prototype.init.call(this);this.S.push(new KZ(g.A(this.layout.renderingContent,sR),this.layout.layoutId,{adsClientData:this.layout.Ur}))};
jL.prototype.bQ=function(){tK(this.B.get(),this.J)&&ba(this.eD.get(),3)};
jL.prototype.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D)};
jL.prototype.Bq=function(){dB.prototype.Bq.call(this)};g.Z($3,WR);g.Z(eL,dB);eL.prototype.init=function(){dB.prototype.init.call(this);var D=g.A(this.layout.renderingContent,cX)||G_(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Q=ta(this.ph);this.S.push(new $3(D,Q,this.layout.layoutId,{adsClientData:this.layout.Ur},!0,!0))};
eL.prototype.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D)};
eL.prototype.bQ=function(D,Q){if(Q===this.layout.layoutId)switch(D){case "skip-button":var m;(D=(m=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&D.S_(this.AU(),this.layout)}};
eL.prototype.Bq=function(){dB.prototype.Bq.call(this)};Oo.prototype.build=function(D,Q,m,P){if(vX(P,{Nj:["metadata_type_ad_break_response_data"],FZ:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new nOr(D,m,P,this.C,this.T,this.S);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.Z(Gqr,WR);g.Z(Y3,dB);g.y=Y3.prototype;g.y.bQ=function(D,Q){q0("ads-engagement-panel",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,OY),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Q,m,P,W,L){return new Gqr(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){Q.layoutId===this.layout.layoutId?this.ph.ZG("impression"):this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};g.Z(aL,dB);g.y=aL.prototype;g.y.bQ=function(D,Q){q0("top-banner-image-text-icon-buttoned",D,this.N.get().D_,this.eD.get(),this.B,this.J,this.AU(),this.A0(),Q)};
g.y.startRendering=function(D){zV(this.ph,this.AU(),this.A0(),g.A(this.A0().renderingContent,aZ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,m,P,W,L){return new Uo(Q,m,P,W,L)},this.S);
dB.prototype.startRendering.call(this,D)};
g.y.XA=function(D,Q){this.J===Q.layoutId&&(this.B===null?this.B=this.eD.get().uH():bu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Bq=function(){uJ(this.St(),this);dB.prototype.Bq.call(this)};DCw.prototype.build=function(D,Q,m,P){if(vX(P,MXj())||g.A(P.renderingContent,OY)!==void 0)return new Y3(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,$J4())||g.A(P.renderingContent,eD)!==void 0)return new wB(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,vOP())||g.A(P.renderingContent,vQ)!==void 0)return new k3(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,Yzu()))return new Ja(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,xJ7()))return new IL(D,m,P,this.hx,this.eD,this.St,
this.BY,this.S);if(vX(P,jCw())||g.A(P.renderingContent,Yr)!==void 0)return new gB(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,cGr())||g.A(P.renderingContent,aZ)!==void 0)return new aL(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,Szr()))return new HX(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);if(vX(P,Hbj())||g.A(P.renderingContent,A5)!==void 0)return new Eo(D,m,P,this.hx,this.eD,this.St,this.BY,this.S);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+
Ma(P.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Qqr.prototype.build=function(D,Q,m,P){if(vX(P,{Nj:["metadata_type_linked_player_bytes_layout_id"],FZ:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new jL(D,m,P,this.hx,this.eD,this.S);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.y=mCu.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){};
g.y.release=function(){};
g.y.startRendering=function(D){D.layoutId!==this.layout.layoutId?this.callback.hN(this.slot,D,new SB("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.XA(this.slot,D),this.ph.ZG("impression"),nN(this.P1,D,"normal"))};
g.y.II=function(D,Q){D.layoutId!==this.layout.layoutId?this.callback.hN(this.slot,D,new SB("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.Om(this.slot,D,Q)};g.y=Wrw.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){};
g.y.release=function(){};
g.y.startRendering=function(D){D.layoutId!==this.layout.layoutId?this.callback.hN(this.slot,D,new SB("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.XA(this.slot,D),this.ph.ZG("impression"),nN(this.P1,D,"normal"))};
g.y.II=function(D,Q){D.layoutId!==this.layout.layoutId?this.callback.hN(this.slot,D,new SB("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.Om(this.slot,D,Q)};Aa.prototype.build=function(D,Q,m,P){if(!this.Ry.get().D.G().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(vX(P,PR7()))return new mCu(D,m,P,this.eD,this.P1)}else if(vX(P,{Nj:[],FZ:["LAYOUT_TYPE_FORECASTING"]}))return new Wrw(D,m,P,this.eD,this.P1);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.Z(Lrk,WR);g.Z(pZ,dB);g.y=pZ.prototype;g.y.init=function(){dB.prototype.init.call(this);var D=g.A(this.layout.renderingContent,M0)||G_(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Q={adsClientData:this.layout.Ur};this.S.push(new Lrk(D,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Q))};
g.y.OM=function(){this.B||this.Hq.get().resumeVideo(2)};
g.y.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D);this.J.XC=this};
g.y.II=function(D,Q){dB.prototype.II.call(this,D,Q);rU(this.J,this)};
g.y.bQ=function(D,Q){if(!eq(this.Ry.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(tK(this.N.get(),this.U))switch(D){case "visit-advertiser-link":ba(this.eD.get(),3)}switch(D){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Hq.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.Hq.get().Xv(2))||this.Hq.get().pauseVideo();break;
case "visit-advertiser-link":this.Hq.get().pauseVideo();uR7(this).o9();break;case "skip-button":if(D=uR7(this),this.layout.renderingContent&&!pY(this.layout.clientMetadata,"metadata_type_dai")||!D||!D.pP){var m;(D=(m=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&D.S_(this.AU(),this.layout)}else bu("Requesting to skip by LegacyPlayerBytes when components enabled"),D.iT(this.AU(),this.layout)}}};
g.y.Bq=function(){dB.prototype.Bq.call(this)};g.Z(x3,dB);g.y=x3.prototype;g.y.init=function(){dB.prototype.init.call(this);var D=g.A(this.layout.renderingContent,GV)||G_(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.Ur},m;(m=!!this.layout.renderingContent)||(m=Xj(this),m=!(m&&m.pP));this.S.push(new Fo(D,this.layout.layoutId,G_(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,m))};
g.y.OM=function(){this.B||this.Hq.get().resumeVideo(2)};
g.y.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D);this.J.XC=this};
g.y.II=function(D,Q){dB.prototype.II.call(this,D,Q);rU(this.J,this)};
g.y.bQ=function(D,Q){if(!this.Ry||!eq(this.Ry.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(tK(this.N.get(),this.U))switch(D){case "visit-advertiser":ba(this.eD.get(),3)}switch(D){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Hq.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.Hq.get().Xv(2))||this.Hq.get().pauseVideo();break;
case "visit-advertiser":this.Hq.get().pauseVideo();Xj(this).o9();break;case "skip-button":if(D=Xj(this),this.layout.renderingContent&&!pY(this.layout.clientMetadata,"metadata_type_dai")||!D||!D.pP){var m;(D=(m=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&D.S_(this.AU(),this.layout)}else bu("Requesting to skip by LegacyPlayerBytes"),D.iT(this.AU(),this.layout)}}};
g.y.Bq=function(){dB.prototype.Bq.call(this)};g.Z(t1$,WR);g.Z(SL,dB);g.y=SL.prototype;g.y.startRendering=function(D){var Q=this;ua(this.C,D,function(){Q.S.push(new t1$(G_(Q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),D.layoutId,D.Ur));Q.qS();Q.callback.XA(Q.slot,D);g.X(Ql(Q.Hq.get(),1),512)&&Q.callback.hN(Q.AU(),Q.A0(),new SB("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.y.Zr=function(){};
g.y.sH=function(D){if(D.state.isError()){var Q;this.callback.hN(this.AU(),this.A0(),new SB("A player error happened during adNotify",{playerErrorCode:(Q=D.state.YP)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.y.onFullscreenToggled=function(){};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.dT=function(){};
g.y.onVolumeChange=function(){};
g.y.An=function(){};
g.y.Pc=function(){};
g.y.bQ=function(){};g.Z(bX9,WR);g.Z(rB,dB);rB.prototype.init=function(){dB.prototype.init.call(this);var D=g.A(this.layout.renderingContent,DO),Q=ta(this.ph);this.S.push(new bX9(D,Q,this.layout.layoutId,{adsClientData:this.layout.Ur}))};
rB.prototype.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D)};
rB.prototype.bQ=function(D,Q){if(Q===this.layout.layoutId)switch(D){case "skip-button":var m;(D=(m=G_(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&D.S_(this.AU(),this.layout)}};
rB.prototype.Bq=function(){dB.prototype.Bq.call(this)};qXj.prototype.build=function(D,Q,m,P){if(D=QJ(D,m,P,this.hx,this.Hq,this.eD,this.C,this.S,this.Ry))return D;throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.y=W6.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){this.Hq.get().addListener(this);this.Hq.get().Wm.push(this);if(this.layout.renderingContent){var D=this.qv.get();D=rM(D,1).jL/1E3}else D=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Q=g.A(this.layout.renderingContent,PL),m=Q?oL(Q.pings):G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Q=Q?JG6(Q.pings):G_(this.layout.clientMetadata,"metadata_type_active_view_identifier");CZ(this.layout.Ij)&&m7(this.BY.get(),this.layout.layoutId,
{Mf:m,Zo:D,listener:this,Xi:Q})};
g.y.release=function(){this.Hq.get().removeListener(this);oP4(this.Hq.get(),this);CZ(this.layout.Ij)&&PH(this.BY.get(),this.layout.layoutId)};
g.y.startRendering=function(D){this.callback.XA(this.slot,D)};
g.y.II=function(D,Q){s5(this,"abandon");this.callback.Om(this.slot,D,Q)};
g.y.An=function(D){switch(D.id){case "part2viewed":this.ph.ZG("start");this.ph.ZG("impression");break;case "videoplaytime25":this.ph.ZG("first_quartile");break;case "videoplaytime50":this.ph.ZG("midpoint");break;case "videoplaytime75":this.ph.ZG("third_quartile");break;case "videoplaytime100":s5(this,"complete");nZ(this.ph)&&TV(this.ph,Infinity,!0);break;case "engagedview":nZ(this.ph)||this.ph.ZG("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:bu("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.y.onVolumeChange=function(){};
g.y.dT=function(){};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.onFullscreenToggled=function(){};
g.y.sH=function(D){this.S||(g.oD(D,4)&&!g.oD(D,2)?Fj(this.ph,"pause"):Cs(D,4)<0&&!(Cs(D,2)<0)&&Fj(this.ph,"resume"))};
g.y.Zr=function(){};
g.y.fH=function(D){nZ(this.ph)&&TV(this.ph,D*1E3,!1)};
g.y.Pc=function(){s5(this,"swipe")};
g.y.kf=function(){this.ph.ZG("active_view_measurable")};
g.y.zK=function(){this.ph.ZG("active_view_viewable")};
g.y.qH=function(){this.ph.ZG("active_view_fully_viewable_audible_half_duration")};
g.y.UG=function(){this.ph.ZG("audio_measurable")};
g.y.xf=function(){this.ph.ZG("audio_audible")};CR4.prototype.build=function(D,Q,m,P){if(m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.A(P.renderingContent,PL)!==void 0)return new W6(D,m,P,this.Hq,this.eD,this.Ry,this.BY,this.qv);Q=["metadata_type_ad_placement_config"];for(var W=g.T(N0()),L=W.next();!L.done;L=W.next())Q.push(L.value);if(vX(P,{Nj:Q,FZ:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new W6(D,m,P,this.Hq,this.eD,this.Ry,this.BY,this.qv):new Xi4(D,m,P,this.Hq,this.eD,
this.vY,this.Ry,this.BY);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var tL={contentCpn:"",kY:new Map};nb6.prototype.Rj=function(D,Q){var m={};Q=Object.assign({},Q,(m.cc=this.Bx.Hi(),m));this.Bx.D.dc(D,Q)};var R$4,eS;
R$4={dbc:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",zyx:"AUTHENTICATION_MALFORMED",Ll9:"AUTHENTICATION_MISSING",Afc:"BAD_REQUEST",Y3y:"CAST_SESSION_DEVICE_MISMATCHED",GmF:"CAST_SESSION_VIDEO_MISMATCHED",s4h:"CAST_TOKEN_EXPIRED",X1v:"CAST_TOKEN_FAILED",Mcy:"CAST_TOKEN_MALFORMED",EtF:"CGI_PARAMS_MALFORMED",fry:"CGI_PARAMS_MISSING",eAq:"DEVICE_FALLBACK",Xcz:"GENERIC_WITH_LINK_AND_CPN",M6D:"ERROR_HDCP",EFO:"LICENSE",F8D:"VIDEO_UNAVAILABLE",To0:"FORMAT_UNAVAILABLE",Boh:"GEO_FAILURE",
x5c:"HTML5_AUDIO_RENDERER_ERROR",U5q:"GENERIC_WITHOUT_LINK",qZh:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",kbh:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",rdc:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",zZF:"HTML5_SPS_UMP_STATUS_REJECTED",aZ0:"INVALID_DRM_MESSAGE",kVT:"PURCHASE_NOT_FOUND",rph:"PURCHASE_REFUNDED",l7c:"RENTAL_EXPIRED",GVv:"RETRYABLE_ERROR",ypO:"SERVER_ERROR",RtT:"SIGNATURE_EXPIRED",QHT:"STOPPED_BY_ANOTHER_PLAYBACK",Hmc:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Om9:"STREAMING_NOT_ALLOWED",
uvz:"STREAM_LICENSE_NOT_FOUND",qvy:"TOO_MANY_REQUESTS",kqz:"TOO_MANY_REQUESTS_WITH_LINK",rl9:"TOO_MANY_STREAMS_PER_ENTITLEMENT",zt0:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",jH0:"VIDEO_FORBIDDEN",SjD:"VIDEO_NOT_FOUND",PS9:"BROWSER_OR_EXTENSION_ERROR"};eS={};
g.pW=(eS.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.",eS.DEVICE_FALLBACK="Sorry, this video is not available on this device.",eS.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",eS.LICENSE="Sorry, there was an error licensing this video.",eS.VIDEO_UNAVAILABLE=
"Video unavailable",eS.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",eS.GEO_FAILURE="This video isn't available in your country.",eS.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",eS.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",eS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",eS.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",
eS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",eS.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",eS.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",eS.PURCHASE_NOT_FOUND="This video requires payment.",eS.PURCHASE_REFUNDED="This video's purchase has been refunded.",eS.RENTAL_EXPIRED="This video's rental has expired.",eS.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",eS.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",eS.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",eS.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",eS.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",eS.SERVER_ERROR="There was an internal server error. Please try again later.",eS.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",eS.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",eS.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",eS.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",eS.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",eS.TOO_MANY_REQUESTS="Please log in to watch this video.",
eS.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",eS.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",eS.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",eS.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",eS.VIDEO_FORBIDDEN="Access to this video is forbidden.",eS.VIDEO_NOT_FOUND="This video can not be found.",eS.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",eS);var U5P;var Hk4=g.Kg(),K$4=Hk4.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!K$4||K$4.length<2)U5P=void 0;else{var jrk=Hk4.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);U5P=jrk&&jrk.length===6?Number(jrk[5].replace("_",".")):0}var MH=U5P,vC=MH>=0;g.Z(g.gO,hJ);g.gO.prototype.W=function(D,Q,m,P,W){return hJ.prototype.W.call(this,D,Q,m,P,W)};var vw={},A7=(vw.FAIRPLAY="fairplay",vw.PLAYREADY="playready",vw.WIDEVINE="widevine",vw.CLEARKEY=null,vw.FLASHACCESS=null,vw.UNKNOWN=null,vw.WIDEVINE_CLASSIC=null,vw);B6.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Oa={},r_=(Oa.WIDTH={name:"width",video:!0,valid:640,w3:99999},Oa.HEIGHT={name:"height",video:!0,valid:360,w3:99999},Oa.FRAMERATE={name:"framerate",video:!0,valid:30,w3:9999},Oa.BITRATE={name:"bitrate",video:!0,valid:3E5,w3:2E9},Oa.EOTF={name:"eotf",video:!0,valid:"bt709",w3:"catavision"},Oa.CHANNELS={name:"channels",video:!1,valid:2,w3:99},Oa.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",w3:"invalidformat"},Oa.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
w3:"nope"},Oa.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",w3:"av99.0.05M.08"},Oa.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",w3:"invalid"},Oa.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",w3:"false"},Oa);var $5$=["h","H"],e$v=["9","("],vzv=["9h","(h"],Ok2=["8","*"],YGk=["a","A"],arv=["o","O"],Ai$=["m","M"],pzK=["mac3","MAC3"],x5$=["meac3","MEAC3"],YH={},Ij4=(YH.h=$5$,YH.H=$5$,YH["9"]=e$v,YH["("]=e$v,YH["9h"]=vzv,YH["(h"]=vzv,YH["8"]=Ok2,YH["*"]=Ok2,YH.a=YGk,YH.A=YGk,YH.o=arv,YH.O=arv,YH.m=Ai$,YH.M=Ai$,YH.mac3=pzK,YH.MAC3=pzK,YH.meac3=x5$,YH.MEAC3=x5$,YH),XzK=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),VLr=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var M={},aN=(M["0"]="f",M["160"]="h",M["133"]="h",M["134"]="h",M["135"]="h",M["136"]="h",M["137"]="h",M["264"]="h",M["266"]="h",M["138"]="h",M["298"]="h",M["299"]="h",M["304"]="h",M["305"]="h",M["214"]="h",M["216"]="h",M["374"]="h",M["375"]="h",M["140"]="a",M["141"]="a",M["327"]="sa",M["258"]="m",M["380"]="mac3",M["328"]="meac3",M["161"]="H",M["142"]="H",M["143"]="H",M["144"]="H",M["222"]="H",M["223"]="H",M["145"]="H",M["224"]="H",M["225"]="H",M["146"]="H",M["226"]="H",M["227"]="H",M["147"]="H",M["384"]=
"H",M["376"]="H",M["385"]="H",M["377"]="H",M["149"]="A",M["261"]="M",M["381"]="MAC3",M["329"]="MEAC3",M["598"]="9",M["278"]="9",M["242"]="9",M["243"]="9",M["244"]="9",M["775"]="9",M["776"]="9",M["777"]="9",M["778"]="9",M["779"]="9",M["780"]="9",M["781"]="9",M["782"]="9",M["783"]="9",M["247"]="9",M["248"]="9",M["353"]="9",M["355"]="9",M["356"]="9",M["271"]="9",M["577"]="9",M["313"]="9",M["579"]="9",M["272"]="9",M["302"]="9",M["303"]="9",M["407"]="9",M["408"]="9",M["308"]="9",M["315"]="9",M["330"]=
"9h",M["331"]="9h",M["332"]="9h",M["333"]="9h",M["334"]="9h",M["335"]="9h",M["336"]="9h",M["337"]="9h",M["338"]="so",M["600"]="o",M["250"]="o",M["251"]="o",M["774"]="o",M["194"]="*",M["195"]="*",M["220"]="*",M["221"]="*",M["196"]="*",M["197"]="*",M["279"]="(",M["280"]="(",M["317"]="(",M["318"]="(",M["273"]="(",M["274"]="(",M["357"]="(",M["358"]="(",M["275"]="(",M["359"]="(",M["360"]="(",M["276"]="(",M["583"]="(",M["584"]="(",M["314"]="(",M["585"]="(",M["561"]="(",M["277"]="(",M["361"]="(h",M["362"]=
"(h",M["363"]="(h",M["364"]="(h",M["365"]="(h",M["366"]="(h",M["591"]="(h",M["592"]="(h",M["367"]="(h",M["586"]="(h",M["587"]="(h",M["368"]="(h",M["588"]="(h",M["562"]="(h",M["409"]="(",M["410"]="(",M["411"]="(",M["412"]="(",M["557"]="(",M["558"]="(",M["394"]="1",M["395"]="1",M["396"]="1",M["397"]="1",M["398"]="1",M["399"]="1",M["720"]="1",M["721"]="1",M["400"]="1",M["401"]="1",M["571"]="1",M["402"]="1",M["694"]="1h",M["695"]="1h",M["696"]="1h",M["697"]="1h",M["698"]="1h",M["699"]="1h",M["700"]="1h",
M["701"]="1h",M["702"]="1h",M["703"]="1h",M["386"]="3",M["387"]="w",M["406"]="6",M["787"]="1",M["788"]="1",M["548"]="1e",M["549"]="1e",M["550"]="1e",M["551"]="1e",M["809"]="1e",M["810"]="1e",M["552"]="1e",M["811"]="1e",M["812"]="1e",M["553"]="1e",M["813"]="1e",M["814"]="1e",M["554"]="1e",M["815"]="1e",M["816"]="1e",M["555"]="1e",M["817"]="1e",M["818"]="1e",M["572"]="1e",M["556"]="1e",M["645"]="(",M["646"]="(",M["647"]="(",M["648"]="(",M["649"]="(",M["650"]="(",M["651"]="(",M["652"]="(",M["653"]="(",
M["654"]="(",M["655"]="(",M["656"]="(",M["657"]="(",M["658"]="(",M["659"]="(",M["660"]="(",M["661"]="(",M["662"]="(",M["663"]="(",M["664"]="(",M["665"]="(",M["666"]="(",M["667"]="(",M["668"]="(",M["669"]="(",M["670"]="(",M["671"]="(",M["672"]="(",M["673"]="(",M["674"]="(h",M["675"]="(h",M["676"]="(h",M["677"]="(h",M["678"]="(h",M["679"]="(h",M["680"]="(h",M["681"]="(h",M["682"]="(h",M["683"]="(h",M["684"]="(h",M["685"]="(h",M["686"]="(h",M["687"]="(h",M["688"]="A",M["689"]="A",M["690"]="A",M["691"]=
"MEAC3",M["773"]="i",M["806"]="I",M["805"]="I",M["829"]="9",M["830"]="9",M["831"]="9",M["832"]="9",M["833"]="9",M["834"]="9",M["835"]="9",M["836"]="9",M["892"]="9",M["893"]="9",M["837"]="9",M["838"]="9",M["839"]="9",M["840"]="9",M["841"]="(",M["842"]="(",M["843"]="(",M["844"]="(",M["845"]="(",M["846"]="(",M["847"]="(",M["848"]="(",M["894"]="(",M["895"]="(",M["849"]="(",M["850"]="(",M["851"]="(",M["852"]="(",M["865"]="9",M["866"]="9",M["867"]="9",M["868"]="9",M["869"]="9",M["870"]="9",M["871"]="9",
M["872"]="9",M["896"]="9",M["897"]="9",M["873"]="9",M["874"]="9",M["875"]="9",M["876"]="9",M["877"]="(",M["878"]="(",M["879"]="(",M["880"]="(",M["881"]="(",M["882"]="(",M["883"]="(",M["884"]="(",M["898"]="(",M["899"]="(",M["885"]="(",M["886"]="(",M["887"]="(",M["888"]="(",M);var ah={},b24=(ah.STEREO_LAYOUT_UNKNOWN=0,ah.STEREO_LAYOUT_LEFT_RIGHT=1,ah.STEREO_LAYOUT_TOP_BOTTOM=2,ah);var R8n={kmF:0,Ubc:1,q3q:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var AS,H4,pq,Csn;AS={};g.ek=(AS.auto=0,AS.tiny=144,AS.light=144,AS.small=240,AS.medium=360,AS.large=480,AS.hd720=720,AS.hd1080=1080,AS.hd1440=1440,AS.hd2160=2160,AS.hd2880=2880,AS.highres=4320,AS);H4={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};pq={};
Csn=(pq.QUALITY_ORDINAL_UNKNOWN=0,pq.QUALITY_ORDINAL_144P_SAVER=124,pq.QUALITY_ORDINAL_144P=144,pq.QUALITY_ORDINAL_240P_SAVER=220,pq.QUALITY_ORDINAL_240P=240,pq.QUALITY_ORDINAL_360P_SAVER=340,pq.QUALITY_ORDINAL_360P=360,pq.QUALITY_ORDINAL_480P=480,pq.QUALITY_ORDINAL_608P_SAVER=588,pq.QUALITY_ORDINAL_608P=608,pq.QUALITY_ORDINAL_720P=720,pq.QUALITY_ORDINAL_720P_ENHANCED=740,pq.QUALITY_ORDINAL_1080P=1080,pq.QUALITY_ORDINAL_1080P_ENHANCED=1100,pq.QUALITY_ORDINAL_1440P=1440,pq.QUALITY_ORDINAL_2160P=2160,
pq.QUALITY_ORDINAL_HIGHRES=9999,pq);var O5="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");v6.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};AL.prototype.nO=function(){return this.containerType===2};
AL.prototype.isEncrypted=function(){return!!this.Ln};
AL.prototype.ZQ=function(){return!!this.audio};
AL.prototype.ri=function(){return!!this.video};
var XO=!1;g.Z(Vh,g.iR);g.y=Vh.prototype;g.y.appendBuffer=function(D,Q,m){if(this.D$.B6()!==this.appendWindowStart+this.start||this.D$.sB()!==this.appendWindowEnd+this.start||this.D$.m2()!==this.timestampOffset+this.start)this.D$.supports(1),this.D$.W_(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.D$.In(this.timestampOffset+this.start);this.D$.appendBuffer(D,Q,m)};
g.y.abort=function(){this.D$.abort()};
g.y.remove=function(D,Q){this.D$.remove(D+this.start,Q+this.start)};
g.y.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.y.clear=function(){this.D$.clear()};
g.y.W_=function(D,Q){this.appendWindowStart=D;this.appendWindowEnd=Q};
g.y.KN=function(){return this.timestampOffset+this.start};
g.y.B6=function(){return this.appendWindowStart};
g.y.sB=function(){return this.appendWindowEnd};
g.y.In=function(D){this.timestampOffset=D};
g.y.m2=function(){return this.timestampOffset};
g.y.Ti=function(D){D=this.D$.Ti(D===void 0?!1:D);return f2(D,this.start,this.end)};
g.y.q4=function(){return this.D$.q4()};
g.y.Ol=function(){return this.D$.Ol()};
g.y.x5=function(){return this.D$.x5()};
g.y.Eh=function(){return this.D$.Eh()};
g.y.dS=function(){this.D$.dS()};
g.y.y5=function(D){return this.D$.y5(D)};
g.y.Jj=function(){return this.D$.Jj()};
g.y.jN=function(){return this.D$.jN()};
g.y.Y4=function(D,Q,m){this.D$.Y4(D,Q,m)};
g.y.Gy=function(D,Q,m){this.D$.Gy(D,Q,m)};
g.y.lL=function(D,Q){return this.D$.lL(D,Q)};
g.y.supports=function(D){return this.D$.supports(D)};
g.y.CP=function(){return this.D$.CP()};
g.y.isView=function(){return!0};
g.y.T$=function(){return this.D$.T$()?this.isActive:!1};
g.y.isLocked=function(){return this.pg&&!this.isActive};
g.y.yX=function(D){D=this.D$.yX(D);D.vw=this.start+"-"+this.end;return D};
g.y.SC=function(){return this.D$.SC()};
g.y.Jz=function(){return this.D$.Jz()};
g.y.d0=function(){return this.D$.d0()};
g.y.Bq=function(){this.D$.ov(this.bZ);g.iR.prototype.Bq.call(this)};var $Q=!1;g.Z(yh,g.iR);g.y=yh.prototype;g.y.appendBuffer=function(D,Q,m){this.wj=!1;m&&(this.RQ=m);if(D.length){var P;((P=this.zo)==null?0:P.appendBuffer)?this.zo.appendBuffer(D):this.zo?this.zo.append(D):this.WB&&this.WB.webkitSourceAppend(this.id,D)}Q&&(Q.isEncrypted()&&(this.D6=this.RQ),Q.type===3&&(this.Il=Q),this.Bh.push(Q.Hn()),this.Bh.length>4&&this.Bh.shift());this.uP&&(this.uP.length>=2||D.length>1048576?delete this.uP:this.uP.push(D))};
g.y.abort=function(){try{this.zo?this.zo.abort():this.WB&&this.WB.webkitSourceAbort(this.id)}catch(Q){if(RZw){var D=new g.OI("Error while abort the source buffer: "+Q.name+", "+Q.message);g.JG(D)}}this.RQ=this.Il=null};
g.y.remove=function(D,Q,m){this.wj=!1;var P;if((P=this.zo)==null?0:P.remove)m&&m({b:dM(this.Ti()),s:D,e:Q}),this.zo.remove(D,Q)};
g.y.removeAll=function(){this.remove(this.B6(),this.sB())};
g.y.clear=function(){this.x5()||(this.abort(),this.removeAll(),this.D6=this.RQ=this.Il=null,this.appendWindowStart=this.timestampOffset=0,this.wZ=us([],[]),this.wj=!1,this.uP=NG?[]:void 0,this.RY=!0)};
g.y.B6=function(){if($Q&&this.ri)return this.appendWindowStart;var D;return((D=this.zo)==null?void 0:D.appendWindowStart)||0};
g.y.sB=function(){var D;return((D=this.zo)==null?void 0:D.appendWindowEnd)||0};
g.y.W_=function(D,Q){this.zo&&($Q&&this.ri?(this.appendWindowStart=D,this.zo.appendWindowEnd=Q):D>this.B6()?(this.zo.appendWindowEnd=Q,this.zo.appendWindowStart=D):(this.zo.appendWindowStart=D,this.zo.appendWindowEnd=Q))};
g.y.KN=function(){return this.timestampOffset};
g.y.In=function(D){$Q?this.timestampOffset=D:this.supports(1)&&(this.zo.timestampOffset=D)};
g.y.m2=function(){return $Q?this.timestampOffset:this.supports(1)?this.zo.timestampOffset:0};
g.y.Ti=function(D){if(D===void 0?0:D)return this.wj||this.q4()||(this.wZ=this.Ti(!1),this.wj=!0),this.wZ;try{return this.zo?this.zo.buffered:this.WB?this.WB.webkitSourceBuffered(this.id):us([0],[Infinity])}catch(Q){return us([],[])}};
g.y.q4=function(){var D;return((D=this.zo)==null?void 0:D.updating)||!1};
g.y.x5=function(){return this.RY};
g.y.Eh=function(){return!this.RY&&this.q4()};
g.y.dS=function(){this.RY=!1};
g.y.y5=function(D){var Q=D==null?void 0:D.FT;D=D==null?void 0:D.containerType;return!Q&&!D||Q===this.FT&&D===this.containerType};
g.y.Jj=function(){return this.RQ};
g.y.jN=function(){return this.D6};
g.y.lL=function(D,Q){return this.containerType!==D||this.FT!==Q};
g.y.Y4=function(D,Q,m){if(this.containerType!==D||m&&this.lL(D,m))this.supports(4),Zj()&&this.zo.changeType(Q),m&&(this.FT=m);this.containerType=D};
g.y.Gy=function(D,Q,m){this.containerType&&this.lL(D,Q)&&Zj()&&this.zo.changeType(m);this.containerType=D;this.FT=Q};
g.y.CP=function(){return this.Il};
g.y.isView=function(){return!1};
g.y.supports=function(D){switch(D){case 1:var Q;return((Q=this.zo)==null?void 0:Q.timestampOffset)!==void 0;case 0:var m;return!((m=this.zo)==null||!m.appendBuffer);case 2:var P;return!((P=this.zo)==null||!P.remove);case 3:var W,L;return!!(((W=this.zo)==null?0:W.addEventListener)&&((L=this.zo)==null?0:L.removeEventListener));case 4:return!(!this.zo||!this.zo.changeType);default:return!1}};
g.y.T$=function(){return!this.q4()};
g.y.isLocked=function(){return!1};
g.y.yX=function(D){D.to=this.m2();D.up=this.q4();var Q,m=((Q=this.zo)==null?void 0:Q.appendWindowStart)||0,P;Q=((P=this.zo)==null?void 0:P.appendWindowEnd)||Infinity;D.aw=m.toFixed(3)+"-"+Q.toFixed(3);return D};
g.y.Ol=function(){var D;return((D=this.zo)==null?void 0:D.writeHead)||0};
g.y.SC=function(){for(var D={},Q=0;Q<this.Bh.length;Q++)D["s"+Q]=this.Bh[Q];return D};
g.y.Bq=function(){this.supports(3)&&(this.zo.removeEventListener("updateend",this.handler),this.zo.removeEventListener("error",this.handler));g.iR.prototype.Bq.call(this)};
g.y.Jz=function(){return this.containerType};
g.y.d0=function(){return this.uP};
var NG=!1,RZw=!1;Fb.prototype.dispose=function(){if(!this.VF()){if(this.S)try{URL.revokeObjectURL(this.NB)}catch(D){}this.C=!0}};
Fb.prototype.VF=function(){return this.C};
Fb.prototype.equals=function(D){return D!==null&&D.NB===this.NB};
Fb.prototype.toString=function(){return"MediaResource {"+this.NB+"}"};g.Z(T5,g.v);g.y=T5.prototype;g.y.getDuration=function(){var D;return((D=this.cq)==null?void 0:D.duration)||this.j};
g.y.Pk=function(D){try{this.cq?this.cq.duration=D:(this.j=D,this.WB.webkitSourceSetDuration(D))}catch(Q){}};
g.y.TE=function(){try{return BE(this)==="closed"}catch(D){return!0}};
g.y.q4=function(){return!!(this.S&&this.S.q4()||this.C&&this.C.q4())};
g.y.isAsync=function(){return this.S?!!this.S.supports(0):wM()};
g.y.QIc=function(){!this.VF()&&h$(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.y.bn9=function(){this.dispose()};
g.y.cK=function(D){if(n2&&!this.B&&D.x5()&&D.Ti().length===0){var Q;Es(this.mediaElement,{l:"mswoue",sr:(Q=this.mediaElement.Ch)==null?void 0:Q.KU()},!1);D.dS();this.x5()||(this.mediaElement.z6=!0,this.mediaElement.setCurrentTime(0))}};
g.y.clear=function(){Ic4(this,function(){});
var D;(D=this.S)==null||D.clear();var Q;(Q=this.C)==null||Q.clear()};
g.y.x5=function(){var D,Q;return((D=this.C)==null?void 0:D.x5())||((Q=this.S)==null?void 0:Q.x5())};
g.y.y5=function(D,Q){return!!this.S&&!!this.C&&this.S.y5(Q)&&this.C.y5(D)};
var n2=!1;kS.prototype.then=function(D,Q){return this.promise.then(D,Q)};
kS.prototype.resolve=function(D){this.IC(D)};
kS.prototype.reject=function(D){this.B_(D)};g.Z(J$,g.v);g.y=J$.prototype;g.y.Im=function(){return this.NB};
g.y.activate=function(D){var Q="";D&&(vBP(this,D),Q=D.NB);if(!this.Nb()||Q)Q&&this.Nb()!==Q&&(this.Ho(Q),delete this.C,this.T&&(this.T.reject(),delete this.T),!window.MediaSource&&window.ManagedMediaSource&&this.Z0(!(D==null||!D.S))),D&&D.S||this.load(),this.U||(this.addEventListener("volumechange",this.Hf),this.U=!0)};
g.y.Hk=function(D,Q){if(this.C)if(IPP&&gM(this.C)&&!this.C.y5(D,Q)){var m;Es(this,{l:"megms",sr:(m=this.Ch)==null?void 0:m.KU()});$Wk(this);this.stopVideo()}else return this.cq=this.C,this.C=void 0,this.cq;D=window.MediaSource?new T5(this,new window.MediaSource,!1):window.ManagedMediaSource?new T5(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new T5(this,new window.WebKitMediaSource,!1):new T5(this,void 0,!1);this.activate(D.T);this.cq=D;this.z6=!1;return D};
g.y.playVideo=function(){var D=this;this.isEnded()&&this.seekTo(0);!this.Nb()&&this.NB&&(g.JG(Error("playVideo without src")),this.Ho(this.NB.NB),this.NB.S||this.load());var Q=this.play(),m;if((m=this.Ch)==null||!m.V("html5_remove_ios_7_hack_force_play")){var P;vC&&(MH||0)>=7&&(!Q||((P=this.Ch)==null?0:P.V("mweb_ios_allow_playback_workaround_when_ready")))&&EbP(this,function(){g.tl(function(){ek9(D,D.getCurrentTime(),0)},500)})}return Q};
g.y.seekTo=function(D){this.Bi()>0&&(vC&&MH<4&&(D=Math.max(.1,D)),this.setCurrentTime(D))};
g.y.Gb=function(){if(!this.C&&this.cq)if(this.cq.J)try{var D;Es(this,{l:"mer",sr:(D=this.Ch)==null?void 0:D.KU(),rs:BE(this.cq)});this.cq.clear();this.C=this.cq;this.cq=void 0}catch(Q){D=new g.OI("Error while clearing Media Source in MediaElement: "+Q.name+", "+Q.message),g.JG(D),this.stopVideo()}else this.stopVideo()};
g.y.stopVideo=function(){var D=this;if(!this.C){var Q;(Q=this.cq)==null||KF7(Q);if(JZ7){if(!this.T){var m=new kS;m.then(void 0,function(){});
this.T=m;lPn&&this.pause();g.tl(function(){D.T===m&&(RQ(D),m.resolve())},200)}}else RQ(this)}};
g.y.vF=function(){var D=this.jb();return C2(D)&&this.getDuration()?bs(D,this.getCurrentTime()):0};
g.y.V5=function(){var D=this.getDuration();return D===Infinity?1:D?this.vF()/D:0};
g.y.yX=function(){try{var D=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:dM(this.U_(),",",3),vbu:dM(this.jb()),vbs:dM(this.Yr()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Bi(),vns:""+this.IK(),vec:""+this.X6(),vemsg:this.tN(),vvol:""+this.getVolume(),vdom:""+ +this.fN(),vsrc:""+ +!!this.Nb(),vw:""+D.width,vh:""+D.height}}catch(Q){return{}}};
g.y.hasError=function(){return this.X6()>0};
g.y.addEventListener=function(D,Q){this.B.listen(D,Q,!1,this);this.Oa(D)};
g.y.removeEventListener=function(D,Q){this.B.qY(D,Q,!1,this)};
g.y.dispatchEvent=function(D){if(this.T&&D.type==="pause")return!1;if(IPP){var Q,m=((Q=D.S)==null?void 0:Q.timeStamp)||Infinity;Q=m>performance.now()?m-Date.now()+performance.now():m;m=this.C||this.cq;if((m==null?0:m.x5())||Q<=((m==null?void 0:m.N)||0)){var P;Es(this,{l:"mede",sr:(P=this.Ch)==null?void 0:P.KU(),et:D.type});return!1}if(this.z6)return Es(this,{l:"medes",et:D.type}),m&&D.type==="seeking"&&(m.N=performance.now(),this.z6=!1),!1}return this.B.dispatchEvent(D)};
g.y.t6=function(){this.N=!1};
g.y.Ri=function(){this.N=!0;this.rU(!0)};
g.y.Hf=function(){this.N&&!this.dK()&&this.rU(!0)};
g.y.equals=function(D){return!!D&&D.nj()===this.nj()};
g.y.Bq=function(){this.U&&this.removeEventListener("volumechange",this.Hf);JZ7&&RQ(this);g.v.prototype.Bq.call(this)};
var JZ7=!1,lPn=!1,IPP=!1,Y9j=!1;g.y=g.HE.prototype;g.y.isPaused=function(){return g.X(this,4)};
g.y.isPlaying=function(){return g.X(this,8)&&!g.X(this,512)&&!g.X(this,64)&&!g.X(this,2)};
g.y.isOrWillBePlaying=function(){return g.X(this,8)&&!g.X(this,2)&&!g.X(this,1024)};
g.y.isCued=function(){return g.X(this,64)&&!g.X(this,8)&&!g.X(this,4)};
g.y.isBuffering=function(){return g.X(this,1)&&!g.X(this,2)};
g.y.isError=function(){return g.X(this,128)};
g.y.isSuspended=function(){return g.X(this,512)};
g.y.sD=function(){return g.X(this,64)&&g.X(this,4)};
g.y.toString=function(){return"PSt."+this.state.toString(16)};
var xH={},XT=(xH.BUFFERING="buffering-mode",xH.CUED="cued-mode",xH.ENDED="ended-mode",xH.PAUSED="paused-mode",xH.PLAYING="playing-mode",xH.SEEKING="seeking-mode",xH.UNSTARTED="unstarted-mode",xH);g.Z(p2,g.v);g.y=p2.prototype;g.y.qO=function(){return this.T};
g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){var D=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");CZ(this.layout.Ij)&&m7(this.BY.get(),this.layout.layoutId,{Mf:Q,Zo:D,listener:this,Gq:this.xV()});Lj2(this.eD.get(),this);D=this.f6;Q=this.layout.layoutId;var m={Gq:this.xV()};D.S.set(Q,m);this.LP()};
g.y.Bg=function(){};
g.y.release=function(){CZ(this.layout.Ij)&&PH(this.BY.get(),this.layout.layoutId);uwV(this.eD.get(),this);this.f6.S.delete(this.layout.layoutId);this.j2()};
g.y.hE=function(){};
g.y.Hp=function(){};
g.y.startRendering=function(D){qh(xS(this));if(Xb(this,D)){var Q=this.S;Ct(Q.params.o4.Ry.get(),!0)&&hgj(Q,"p_sr",{});Sm(this);this.NE(D);this.xV()||this.s4(!1)}};
g.y.XA=function(D,Q){if(Q.layoutId===this.layout.layoutId){this.Er="rendering";this.C=this.Hq.get().isMuted()||this.Hq.get().getVolume()===0;this.ZG("impression");this.ZG("start");if(this.Hq.get().isMuted()){QN(this,"mute");var m;D=((m=A$(this))==null?void 0:m.muteCommands)||[];HF(this.vY.get(),D,this.layout.layoutId)}if(this.Hq.get().isFullscreen()){this.j1("fullscreen");var P;m=((P=A$(this))==null?void 0:P.fullscreenCommands)||[];HF(this.vY.get(),m,this.layout.layoutId)}this.xV()||(P=this.Jx.get(),
P.T&&!P.C&&(P.J=!1,P.C=!0,P.actionType!=="ad_to_video"&&(Ul("pbs",void 0,P.actionType),g.oi("finalize_all_timelines")&&mR7(P.actionType))));this.lG(1);this.KQ(Q);var W;Q=((W=A$(this))==null?void 0:W.impressionCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.Ab=function(D,Q,m){this.U={gE:3,l5:D==="load_timeout"?402:400,errorMessage:Q.message};this.ZG("error");var P;D=((P=A$(this))==null?void 0:P.errorCommands)||[];HF(this.vY.get(),D,this.layout.layoutId);this.xV()||this.Rn.hN(this.slot,this.layout,Q,m)};
g.y.oM=function(){if(this.Er==="rendering"){QN(this,"pause");var D,Q=((D=A$(this))==null?void 0:D.pauseCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId);this.lG(2)}};
g.y.yu=function(){if(this.Er==="rendering"){QN(this,"resume");var D,Q=((D=A$(this))==null?void 0:D.resumeCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.u8=function(D,Q){Q=Q===void 0?!1:Q;if(this.Er==="rendering"){var m={currentTimeSec:D,flush:Q};oN(this.S,"p_ip",m);TV(this.ph,D*1E3,Q);this.C||TV(this.ph,D*1E3,Q===void 0?!1:Q);var P=this.Zy();if(P){P/=1E3;if(D>=P*.25||Q)this.ZG("first_quartile"),oN(this.S,"p_fq",m);if(D>=P*.5||Q)this.ZG("midpoint"),oN(this.S,"p_sq",m);if(D>=P*.75||Q)this.ZG("third_quartile"),oN(this.S,"p_tq",m);this.Ry.get().D.G().experiments.Mv("enable_progress_command_flush_on_kabuki")?la(this.B,D*1E3,Q):la(this.B,D*1E3,S97(this)?
Q:!1)}}};
g.y.Hi=function(){var D;return((D=rM(this.qv.get(),1))==null?void 0:D.clientPlaybackNonce)||""};
g.y.Vf=function(D,Q){D.layoutId!==this.layout.layoutId?this.Rn.hN(this.slot,D,new SB("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"):Q()};
g.y.Om=function(D,Q,m){if(Q.layoutId===this.layout.layoutId)switch(this.Er="not_rendering",this.layoutExitReason=void 0,this.xV()||(D=m!=="normal"||this.position+1===this.N)&&this.s4(D),this.Fd(m),this.lG(0),m){case "abandoned":if(ha(this.ph,"impression")){var P,W=((P=A$(this))==null?void 0:P.abandonCommands)||[];HF(this.vY.get(),W,this.layout.layoutId)}break;case "normal":P=((W=A$(this))==null?void 0:W.completeCommands)||[];HF(this.vY.get(),P,this.layout.layoutId);break;case "skipped":var L;P=((L=
A$(this))==null?void 0:L.skipCommands)||[];HF(this.vY.get(),P,this.layout.layoutId)}};
g.y.P3=function(){return this.layout.layoutId};
g.y.mY=function(){return this.U};
g.y.kf=function(){if(this.Er==="rendering"){this.ph.ZG("active_view_measurable");var D,Q=((D=A$(this))==null?void 0:D.activeViewMeasurableCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.qH=function(){if(this.Er==="rendering"){this.ph.ZG("active_view_fully_viewable_audible_half_duration");var D,Q=((D=A$(this))==null?void 0:D.activeViewFullyViewableAudibleHalfDurationCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.zK=function(){if(this.Er==="rendering"){this.ph.ZG("active_view_viewable");var D,Q=((D=A$(this))==null?void 0:D.activeViewViewableCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.xf=function(){if(this.Er==="rendering"){this.ph.ZG("audio_audible");var D,Q=((D=A$(this))==null?void 0:D.activeViewAudioAudibleCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.UG=function(){if(this.Er==="rendering"){this.ph.ZG("audio_measurable");var D,Q=((D=A$(this))==null?void 0:D.activeViewAudioMeasurableCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}};
g.y.s4=function(D){this.Jx.get().s4(G_(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,D,this.position,this.N,!1)};
g.y.onFullscreenToggled=function(D){if(this.Er==="rendering")if(D){this.j1("fullscreen");var Q,m=((Q=A$(this))==null?void 0:Q.fullscreenCommands)||[];HF(this.vY.get(),m,this.layout.layoutId)}else this.j1("end_fullscreen"),Q=((m=A$(this))==null?void 0:m.endFullscreenCommands)||[],HF(this.vY.get(),Q,this.layout.layoutId)};
g.y.onVolumeChange=function(){if(this.Er==="rendering")if(this.Hq.get().isMuted()){QN(this,"mute");var D,Q=((D=A$(this))==null?void 0:D.muteCommands)||[];HF(this.vY.get(),Q,this.layout.layoutId)}else QN(this,"unmute"),D=((Q=A$(this))==null?void 0:Q.unmuteCommands)||[],HF(this.vY.get(),D,this.layout.layoutId)};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.dT=function(){};
g.y.An=function(){};
g.y.Pc=function(){};
g.y.j1=function(D){this.ph.j1(D,!this.C)};
g.y.ZG=function(D){this.ph.ZG(D,!this.C)};
g.y.xV=function(){var D=G_(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return D===void 0?(bu("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ry.get().xV(D)};g.Z(sJ,p2);g.y=sJ.prototype;g.y.LP=function(){};
g.y.j2=function(){var D=this.eD.get();D.Ob===this&&(D.Ob=null);this.timer.stop()};
g.y.hE=function(){this.timer.stop();p2.prototype.oM.call(this)};
g.y.Hp=function(){u1(this);p2.prototype.yu.call(this)};
g.y.Zy=function(){return G_(this.A0().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.y.II=function(D,Q){var m=this;this.Vf(D,function(){m.Er!=="rendering_stop_requested"&&(m.Er="rendering_stop_requested",m.layoutExitReason=Q,G5(m,Q),m.timer.stop())})};
g.y.mu=function(){var D=Date.now(),Q=D-this.H8;this.H8=D;this.NL+=Q;this.NL>=this.Zy()?this.I8():(this.u8(this.NL/1E3),LN(this,this.NL))};
g.y.Fd=function(){};
g.y.Zr=function(){};
g.Z(dD,sJ);g.y=dD.prototype;g.y.sH=function(D){if(this.Er!=="not_rendering"){D=MG(this,D);var Q=this.Hq.get().getPresentingPlayerType()===2;this.Er==="rendering_start_requested"?Q&&ms(D)&&this.Ng():Q?g.oD(D,2)?bu("Receive player ended event during MediaBreak",this.AU(),this.A0()):cE(this,D):this.XE()}};
g.y.NE=function(){xWu(this);V$4(this.Hq.get());this.eD.get().Ob=this;IH("pbp")||IH("pbs")||Ul("pbp");IH("pbp","watch")||IH("pbs","watch")||Ul("pbp",void 0,"watch");this.Ng()};
g.y.KQ=function(D){this.Jx.get();var Q=G_(D.clientMetadata,"metadata_type_ad_placement_config").kind,m=this.position===0;D=G_(D.clientMetadata,"metadata_type_linked_in_player_layout_type");D={adBreakType:DQ(Q),adType:sHw(D)};var P=void 0;m?Q!=="AD_PLACEMENT_KIND_START"&&(P="video_to_ad"):P="ad_to_ad";kY("ad_mbs",void 0,P);g.Jd(D,P);u1(this)};
g.y.XE=function(){this.Lu()};
g.y.I8=function(){GO7(this);this.Lu()};
g.Z(tm,sJ);g.y=tm.prototype;g.y.sH=function(D){this.Er!=="not_rendering"&&(D=MG(this,D),cE(this,D))};
g.y.NE=function(){bu("Not used in SSAP")};
g.y.KQ=function(){u1(this)};
g.y.XE=function(){bu("Not used in SSAP")};
g.y.I8=function(){GO7(this);this.Rn.He(this.AU(),this.A0(),"normal")};
g.Z(zA,tm);zA.prototype.II=function(D,Q){var m=this;this.Vf(D,function(){un(m.T,Q)&&(m.Er="rendering_stop_requested",m.layoutExitReason=Q,G5(m,Q),m.timer.stop())})};
zA.prototype.startRendering=function(D){qh(xS(this));Xb(this,D)&&(Sm(this),this.eD.get().Ob=this)};g.Z(CN,p2);g.y=CN.prototype;g.y.XE=function(){this.Lu()};
g.y.sH=function(D){if(this.Er!=="not_rendering"){D=MG(this,D);var Q=this.Hq.get().getPresentingPlayerType()===2;this.Er==="rendering_start_requested"?Q&&ms(D)&&this.Ng():!Q||g.oD(D,2)?this.Lu():cE(this,D)}};
g.y.LP=function(){G_(this.A0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=G_(this.A0().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.y.j2=function(){G_(this.A0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.HB){var D=this.context.o4,Q=this.HB,m=this.A0().layoutId;if(Ct(D.Ry.get(),!0)){var P={};D.Rj("mccru",(P.cid=Q,P.p_ac=m,P))}this.nM.get().removeCueRange(this.HB)}this.HB=void 0;var W;(W=this.HG)==null||W.dispose();this.Wg&&this.Wg.dispose()};
g.y.NE=function(D){var Q=b1(this.Ry.get()),m=qg(this.Ry.get());if(Q&&m&&!this.xV()){m=G_(D.clientMetadata,"metadata_type_preload_player_vars");var P=this.Ry.get();P=g.WF(P.D.G().experiments,"html5_preload_wait_time_secs");m&&this.Wg&&this.Wg.start(P*1E3)}Dzk(this,D);xWu(this);Q?(m=this.bE.get(),D=G_(D.clientMetadata,"metadata_type_player_vars"),m.D.loadVideoByPlayerVars(D,!1,2)):I6h(this.bE.get(),G_(D.clientMetadata,"metadata_type_player_vars"));var W;(W=this.HG)==null||W.start();Q||this.bE.get().D.playVideo(2)};
g.y.KQ=function(){var D;(D=this.HG)==null||D.stop();this.uf();(this.adCpn=p_7(this))||bu("Media layout confirmed started, but ad CPN not set.");this.jt.get().wg("onAdStart",this.adCpn);this.m5=Date.now()};
g.y.Zy=function(){var D;return(D=rM(this.qv.get(),2))==null?void 0:D.jL};
g.y.o9=function(){this.ph.j1("clickthrough")};
g.y.II=function(D,Q){var m=this;this.Vf(D,function(){if(m.Er!=="rendering_stop_requested"){m.Er="rendering_stop_requested";m.layoutExitReason=Q;G5(m,Q);var P;(P=m.HG)==null||P.stop();m.Wg&&m.Wg.stop();QHw(m)}})};
g.y.onCueRangeEnter=function(D){if(D!==this.HB)bu("Received CueRangeEnter signal for unknown layout.",this.AU(),this.A0(),{cueRangeId:D});else{var Q=this.context.o4,m=this.A0().layoutId;if(Ct(Q.Ry.get(),!0)){var P={};Q.Rj("mccre",(P.cid=D,P.p_ac=m,P))}this.nM.get().removeCueRange(this.HB);this.HB=void 0;eq(this.context.Ry.get(),"html5_ssap_flush_at_stop_rendering")&&this.xV()||(D=G_(this.A0().clientMetadata,"metadata_type_video_length_seconds"),this.u8(D,!0),this.ZG("complete"))}};
g.y.Fd=function(D){D!=="abandoned"&&this.jt.get().wg("onAdComplete");this.jt.get().wg("onAdEnd",this.adCpn)};
g.y.uf=function(){this.HB="adcompletioncuerange:"+this.A0().layoutId;this.nM.get().addCueRange(this.HB,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var D=this.context.o4,Q=this.HB,m=this.A0().layoutId;if(Ct(D.Ry.get(),!0)){var P={};D.Rj("mccr",(P.cid=Q,P.p_ac=m,P))}};
g.y.onCueRangeExit=function(){};
g.y.Zr=function(D){this.Er==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&D>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Hq.get().Wj(!0),this.u8(D))};
g.y.u8=function(D,Q){p2.prototype.u8.call(this,D,Q===void 0?!1:Q);Q=Date.now()-this.m5;var m=D*1E3,P={contentCpn:this.Hi(),adCpn:p_7(this)};if(D-this.jd>=5){var W=Q<m*.4?0:1;dE(W,"n.k_",{metadata:P,Fi:Q,o3:Math.floor(m/1E3)});Oj("NKDSTAT",W);if(Q=W===0)Q=G_(this.AU().clientMetadata,"metadata_type_player_bytes_slot_metadata"),Q===void 0&&bu("PlayerBytesSlotMetadata is not filled",this.AU(),this.A0()),Q=(Q==null?void 0:Q.Mo)===!0;Q&&this.jt.get().wg("onAbnormalityDetected");this.jd=D}};g.Z(fN,CN);fN.prototype.sH=function(D){this.Er!=="not_rendering"&&(D=MG(this,D),cE(this,D))};
fN.prototype.NE=function(){bu("Not used in SSAP")};
g.Z(oj,fN);oj.prototype.II=function(D,Q){var m=this;this.Vf(D,function(){if(un(m.T,Q)){m.Er="rendering_stop_requested";m.layoutExitReason=Q;G5(m,Q);if(eq(m.context.Ry.get(),"html5_ssap_flush_at_stop_rendering")&&Q==="normal"){var P=G_(m.A0().clientMetadata,"metadata_type_video_length_seconds");m.u8(P,!0)}QHw(m)}})};
oj.prototype.startRendering=function(D){qh(xS(this));Xb(this,D)&&(Sm(this),Dzk(this,D))};g.Z(Ng,g.v);g.y=Ng.prototype;g.y.init=function(){var D=G_(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");D&&(D.current=this);this.qv.get().addListener(this);this.fM.init();ob6([this.layout],this.qv.get());this.DY()};
g.y.DY=function(){var D=G_(this.fM.A0().clientMetadata,"metadata_type_player_vars");D?this.bE.get().addPlayerResponseForAssociation({playerVars:D}):(D=L4h(this.fM.A0()),this.bE.get().addPlayerResponseForAssociation({aq:D}))};
g.y.jS=function(){};
g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.hE=function(){this.fM.hE()};
g.y.Hp=function(){this.fM.Hp()};
g.y.iT=function(){bu("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.y.XA=function(D,Q){this.fM.XA(D,Q)};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Zr=function(D){this.fM.Zr(D)};
g.y.onFullscreenToggled=function(D){this.fM.onFullscreenToggled(D)};
g.y.zE=function(D){this.fM.zE(D)};
g.y.dT=function(D){this.fM.dT(D)};
g.y.onVolumeChange=function(){this.fM.onVolumeChange()};
g.y.An=function(){};
g.y.Pc=function(){};
g.y.iK=function(){};
g.y.lc=function(){return this.Hq.get().getPresentingPlayerType()===2};
g.y.p8=function(D){ZXw({cpn:D,Bx:this.qv.get(),Zc:!0});this.layout.layoutId===D&&(QA$(this.qj,this.slot.slotId),this.zA.XA(this.slot,this.layout))};
g.y.startRendering=function(D){if(D.layoutId!==this.layout.layoutId)return void bu("wrong layout");this.Hq.get().addListener(this);L8(this.St(),this);this.fM.startRendering(this.layout)};
g.y.sH=function(D){this.fM.sH(D)};
g.y.Om=function(D,Q,m){this.fM.Om(D,Q,m)};
g.y.release=function(){this.qv.get().removeListener(this);this.fM.release();fMk();uJ(this.St(),this)};
g.y.iY=function(){return eq(this.params.context.Ry.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.y.II=function(D,Q){D.layoutId!==this.layout.layoutId?bu("wrong layout"):this.iY()&&this.fM.qO().currentState>=2||(this.fM.II(this.layout,Q),D=eq(this.params.context.Ry.get(),"html5_ssap_pass_transition_reason")&&Q==="abandoned",this.lc()&&!D&&(eq(this.params.context.Ry.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Q)||bu("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Q})),this.De.get().finishSegmentByCpn(this.layout.layoutId,
rM(this.qv.get(),1).clientPlaybackNonce,PB(Q,this.params.context.Ry))),this.Hq.get().removeListener(this),this.iY()&&dO(this.fM.qO())&&this.zA.Om(this.slot,this.layout,this.fM.qO().S))};
g.y.YE=function(D,Q,m){Frr({cpn:D,Bx:this.qv.get(),Zc:!0});this.A0().layoutId!==D||eq(this.params.context.Ry.get(),"html5_ssap_pass_transition_reason")&&m===5||(this.fM.qO().currentState<2&&(D=WB(m,this.params.context.Ry),D==="error"?this.zA.hN(this.slot,this.layout,new SB("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:m},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):nN(this.ev,
this.layout,D)),eq(this.params.context.Ry.get(),"html5_ssap_exit_without_waiting_for_transition")||this.zA.Om(this.slot,this.layout,this.fM.qO().S))};g.Z(yN,g.v);g.y=yN.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.jS=function(){};
g.y.Cd=function(){return this.yP[this.Nx]};
g.y.Jd=function(){return this.Nx};
g.y.hE=function(D,Q){var m=this.Cd();Q.layoutId!==Fg(m,D,Q)?bu("pauseLayout for a PlayerBytes layout that is not currently active",D,Q):m.hE()};
g.y.Hp=function(D,Q){var m=this.Cd();Q.layoutId!==Fg(m,D,Q)?bu("resumeLayout for a PlayerBytes layout that is not currently active",D,Q):m.Hp()};
g.y.iT=function(D,Q){var m=this.Cd();zn9(this,D,Q);bcj(m,D,Q)&&this.ZO(m.AU(),m.A0(),"skipped")};
g.y.S_=function(D,Q){var m=this.Cd();qlw(this);Ccw(m,D,Q)&&(D=oYr(this,m,D,Q),D!==void 0&&(this.xV()?bu("Should not happen. Should delete"):Vzj(this,m.AU(),m.A0(),D)))};
g.y.iC=function(D,Q){var m=Object.assign({},ZQ(this),{layoutId:Q.layoutId}),P=m.layoutId,W=m.Zc;if(m.Gq){var L={};bn(m.Bx,"wrse",(L.ec=P,L.is=W,L.ctp=za(P),L))}ys(this.By,D,Q)};
g.y.XA=function(D,Q){var m;(m=this.Cd())==null||m.XA(D,Q)};
g.y.Om=function(D,Q,m){Q.layoutId===this.A0().layoutId&&(this.P0=!1,uJ(this.St(),this));var P;(P=this.Cd())==null||P.Om(D,Q,m)};
g.y.Zr=function(D){var Q;(Q=this.Cd())==null||Q.Zr(D)};
g.y.eC=function(D,Q,m){this.Jd()===-1&&(this.callback.XA(this.slot,this.layout),this.Nx++);var P=this.Cd();P?(P.Ab(D,Q,m),this.xV()&&this.callback.hN(this.slot,this.layout,Q,m)):bu("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Jd()),layoutId:this.A0().layoutId})};
g.y.onFullscreenToggled=function(D){var Q;(Q=this.Cd())==null||Q.onFullscreenToggled(D)};
g.y.zE=function(D){var Q;(Q=this.Cd())==null||Q.zE(D)};
g.y.dT=function(D){var Q;(Q=this.Cd())==null||Q.dT(D)};
g.y.onVolumeChange=function(){var D;(D=this.Cd())==null||D.onVolumeChange()};
g.y.G2=function(D,Q,m){Z1(this.By,D,Q,m)};
g.y.t7=function(D){D.startRendering(D.A0())};
g.y.init=function(){var D=G_(this.A0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");D&&(D.current=this);if(this.yP.length<1)throw new r("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.yP.length)});if(D=G_(this.A0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))D.current=this;D=g.T(this.yP);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.init(),OPP(this.By,this.slot,Q.A0()),Ykj(this.By,this.slot,Q.A0());
if(this.xV())for(this.qv.get().addListener(this),ob6(tz9(this),this.qv.get()),D=tz9(this),D=g.T(D),Q=D.next();!Q.done;Q=D.next())this.DY(Q.value)};
g.y.DY=function(D){var Q=G_(D.clientMetadata,"metadata_type_player_vars");Q?(D.layoutType!=="LAYOUT_TYPE_MEDIA"&&bu("Non-video ad contains playerVars",this.slot,D),this.bE.get().addPlayerResponseForAssociation({playerVars:Q})):(D=L4h(D),this.bE.get().addPlayerResponseForAssociation({aq:D}))};
g.y.release=function(){var D=G_(this.A0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");D&&(D.current=null);if(D=G_(this.A0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))D.current=null;D=g.T(this.yP);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,ayh(this.By,this.slot,Q.A0()),Q.release();this.xV()&&(this.qv.get().removeListener(this),fMk())};
g.y.Vf=function(D){return D.layoutId!==this.A0().layoutId?(this.callback.hN(this.AU(),D,new SB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.A0().layoutId+("and LayoutType: "+this.A0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.y.mf=function(){this.Hq.get().addListener(this);L8(this.St(),this)};
g.y.sH=function(D){if(D.state.isError()){var Q,m;this.eC((Q=D.state.YP)==null?void 0:Q.errorCode,new SB("There was a player error during this media layout.",{playerErrorCode:(m=D.state.YP)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Q=this.Cd())&&Q.sH(D)};
g.y.xV=function(){var D=G_(this.AU().clientMetadata,"metadata_type_eligible_for_ssap");return D===void 0?(bu("Expected SSAP eligibility in PlayerBytes slots",this.AU(),this.A0()),!1):this.Ry.get().xV(D)};
g.y.iK=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.An=function(){};
g.y.Pc=function(){};
g.Z(EJ,yN);g.y=EJ.prototype;g.y.PQ=function(D,Q,m){this.ZO(D,Q,m)};
g.y.ZI=function(D,Q){this.ZO(D,Q,"error")};
g.y.ZO=function(D,Q,m){var P=this;fi6(this,D,Q,m,function(){TA(P,P.Jd()+1)})};
g.y.startRendering=function(D){this.Vf(D)&&(this.mf(),kU4(this.Jx.get()),Kfr(this.Ry.get())||V$4(this.Hq.get()),this.Jd()===-1&&TA(this,this.Jd()+1))};
g.y.II=function(D,Q){var m=this;this.P0=!0;this.Jd()===this.yP.length?this.callback.Om(this.slot,this.layout,Q):(D=this.Cd(),D.II(D.A0(),Q),this.z_=function(){m.callback.Om(m.slot,m.layout,Q)});
this.Hq.get().D.Lk();I6h(this.bE.get(),{});D=Ql(this.Hq.get(),1);D.isPaused()&&!g.X(D,2)&&this.Hq.get().playVideo();this.Hq.get().removeListener(this);this.P0&&N6_(this)};
g.y.YE=function(){};
g.y.p8=function(){};
g.y.He=function(){};
g.Z(gD,yN);g.y=gD.prototype;g.y.PQ=function(D,Q,m){D=Object.assign({},ZQ(this),{layoutId:Q.layoutId,layoutExitReason:m});Q=D.layoutId;m=D.layoutExitReason;var P={};bn(D.Bx,"prse",(P.xc=Q,P.ler=m,P.ctp=za(Q),P))};
g.y.ZI=function(){bu("onSubLayoutError in SSAP")};
g.y.ZO=function(){bu("exitSubLayoutAndPlayNext in SSAP")};
g.y.Cd=function(){return this.qm};
g.y.Jd=function(){var D=this;return this.yP.findIndex(function(Q){var m;return Q.A0().layoutId===((m=D.qm)==null?void 0:m.A0().layoutId)})};
g.y.t7=function(D){zO(this.qm===void 0,"replacing another adapter");this.qm=D;D.startRendering(D.A0())};
g.y.G2=function(D,Q,m){Z1(this.By,D,Q,m);var P;zO(Q.layoutId===((P=this.qm)==null?void 0:P.A0().layoutId),"currentAdapter does not match exiting layout",{slot:D?"slot:  "+D.slotType:"",subLayout:tF(Q)})&&(this.qm=void 0)};
g.y.release=function(){yN.prototype.release.call(this);zO(this.qm===void 0,"currentAdapter is still active during release");this.qm=void 0};
g.y.lc=function(){return this.Hq.get().getPresentingPlayerType()===2};
g.y.II=function(D,Q){function m(){BB(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Q)||bu("Composite stopRendering: Unexpected layout exit reason",this.slot,D,{layoutExitReason:Q}))}
function P(){this.qm&&wD(this,this.qm,Q);if(this.lc()&&(!BB(this)||Q!=="abandoned")){m.call(this);var L;var u=((L=this.qv.get().D.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=rM(this.qv.get(),1).clientPlaybackNonce;this.De.get().finishSegmentByCpn(u,L,PB(Q,this.Ry))}yd7(this,Q)}
function W(){if(this.qm){var L=this.qm;L.qO().currentState<2&&L.II(L.A0(),Q);L=BB(this)&&Q==="abandoned";this.lc()&&!L&&(m.call(this),this.De.get().finishSegmentByCpn(this.qm.A0().layoutId,rM(this.qv.get(),1).clientPlaybackNonce,PB(Q,this.Ry)))}}
zO(D.layoutId===this.A0().layoutId,"StopRendering for wrong layout")&&un(this.Tu.C,Q)&&(this.iY()?P.call(this):W.call(this))};
g.y.Om=function(D,Q,m){yN.prototype.Om.call(this,D,Q,m);Q.layoutId===this.A0().layoutId&&this.Hq.get().removeListener(this)};
g.y.Hi=function(){return rM(this.qv.get(),1).clientPlaybackNonce};
g.y.YE=function(D,Q,m){Frr(Object.assign({},ZQ(this),{cpn:D}));if(!BB(this)||m!==5)if(this.iY()){if(this.qm&&this.qm.A0().layoutId!==Q){var P=this.qm.A0().layoutId;P!==D&&bu("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:P,exitingCpn:D,enteringCpn:Q});D=WB(m,this.Ry);wD(this,this.qm,D)}else this.qm&&bu("onClipExited: active layout is entering again");Q===this.Hi()&&F47(this,m)}else{if(this.qm&&this.qm.A0().layoutId===D)Zc7(this,this.qm,m);else{var W;bu("Exiting cpn does not match active cpn",
this.slot,(P=this.qm)==null?void 0:P.A0(),{exitingCpn:D,transitionReason:m,activeCpn:(W=this.qm)==null?void 0:W.A0().layoutId})}Q===this.Hi()&&(this.qm!==void 0&&(bu("active adapter is not properly exited",this.slot,this.layout,{activeLayout:tF(this.qm.A0())}),Zc7(this,this.qm,m)),F47(this,m),yd7(this,this.Tu.C.S))}};
g.y.iY=function(){return eq(this.Ry.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.y.startRendering=function(D){this.Vf(D)&&(D=this.Tu,zO(D.S===1,"tickStartRendering: state is not initial"),D.S=2,this.mf())};
g.y.p8=function(D){ZXw(Object.assign({},ZQ(this),{cpn:D}));var Q=this.yP.find(function(m){return m.A0().layoutId===D});
Q?(this.Tu.S!==2&&(QA$(this.qj,this.slot.slotId),zO(this.Tu.S===2,"Expect started"),this.callback.XA(this.slot,this.layout)),this.t7(Q),ys(this.By,this.slot,Q.A0())):T6k(this,D)};
g.y.iT=function(D,Q){zn9(this,D,Q);var m=this.Cd();m?bcj(m,D,Q)&&hn$(this,"skipped"):nYn(this,"onSkipRequested")};
g.y.S_=function(D,Q){var m;a:{if(m=this.Cd()){if(qlw(this),Ccw(m,D,Q)&&(D=oYr(this,m,D,Q),D!==void 0)){m={Gl:m,mpF:this.yP[D]};break a}}else nYn(this,"SkipWithAdPodSkip");m=void 0}if(D=m)m=D.Gl,Q=D.mpF,D=m.A0().layoutId,this.iY()?wD(this,m,"skipped"):m.II(m.A0(),"skipped"),m=Q.A0().layoutId,this.De.get().finishSegmentByCpn(D,m,PB("skipped",this.Ry))};
g.y.iC=function(){bu("Not used in html5_ssap_fix_layout_exit")};
g.y.sH=function(D){var Q;(Q=this.Cd())==null||Q.sH(D)};
g.y.eC=function(){bu("Not used in html5_ssap_fix_layout_exit")};
g.y.He=function(D,Q,m){var P;if(((P=this.Cd())==null?void 0:P.A0().layoutId)!==Q.layoutId)return void bu("requestToExitSubLayout: wrong layout");hn$(this,m)};g.Z(kw,g.v);g.y=kw.prototype;g.y.AU=function(){return this.fM.AU()};
g.y.A0=function(){return this.fM.A0()};
g.y.init=function(){var D=G_(this.A0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");D&&(D.current=this);this.LP()};
g.y.LP=function(){this.fM.init()};
g.y.release=function(){var D=G_(this.A0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");D&&(D.current=null);this.j2()};
g.y.j2=function(){this.fM.release()};
g.y.hE=function(){this.fM.hE()};
g.y.Hp=function(){this.fM.Hp()};
g.y.iT=function(D,Q){bu("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.AU(),this.A0(),{requestingSlot:D,requestingLayout:Q})};
g.y.startRendering=function(D){D.layoutId!==this.A0().layoutId?this.callback.hN(this.AU(),D,new SB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.A0().layoutId+("and LayoutType: "+this.A0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Hq.get().addListener(this),L8(this.St(),this),kU4(this.Jx.get()),Kfr(this.Ry.get())||V$4(this.Hq.get()),this.fM.startRendering(D))};
g.y.II=function(D,Q){this.P0=!0;this.fM.II(D,Q);this.Hq.get().D.Lk();I6h(this.bE.get(),{});D=Ql(this.Hq.get(),1);D.isPaused()&&!g.X(D,2)&&this.Hq.get().playVideo();this.Hq.get().removeListener(this);this.P0&&this.fM.XE()};
g.y.XA=function(D,Q){this.fM.XA(D,Q)};
g.y.Om=function(D,Q,m){Q.layoutId===this.A0().layoutId&&(this.P0=!1,uJ(this.St(),this));this.fM.Om(D,Q,m);Q.layoutId===this.A0().layoutId&&hm(this.Jx.get())};
g.y.Zr=function(D){this.fM.Zr(D)};
g.y.sH=function(D){if(D.state.isError()){var Q,m;this.eC((Q=D.state.YP)==null?void 0:Q.errorCode,new SB("There was a player error during this media layout.",{playerErrorCode:(m=D.state.YP)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.fM.sH(D)};
g.y.eC=function(D,Q,m){this.fM.Ab(D,Q,m)};
g.y.onFullscreenToggled=function(D){this.fM.onFullscreenToggled(D)};
g.y.zE=function(D){this.fM.zE(D)};
g.y.dT=function(D){this.fM.dT(D)};
g.y.onVolumeChange=function(){this.fM.onVolumeChange()};
g.y.iK=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.An=function(){};
g.y.Pc=function(){};g.y=Jm.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.init=function(){this.sC.get().addListener(this);this.Hq.get().addListener(this);var D=G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Q=G_(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.B){var m=this.sC.get().Mc.slice(-1)[0];m!==void 0&&(D=m.startSecs*1E3,Q=(m.startSecs+m.m$)*1E3)}this.Bg(D,Q);var P;m=(P=this.qv.get().n2)==null?void 0:P.clientPlaybackNonce;P=this.layout.Ur.adClientDataEntry;l1(this.eD.get(),{daiStateTrigger:{filledAdsDurationMs:Q-D,contentCpn:m,
adClientData:P}});var W=this.sC.get();W=B6w(W.T,D,Q);W!==null&&(l1(this.eD.get(),{daiStateTrigger:{filledAdsDurationMs:W-D,contentCpn:m,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:P}}),this.De.get().TT(W,Q))};
g.y.release=function(){this.j2();this.sC.get().removeListener(this);this.Hq.get().removeListener(this)};
g.y.startRendering=function(){this.NE();this.callback.XA(this.slot,this.layout)};
g.y.II=function(D,Q){this.Vu(Q);this.driftRecoveryMs!==null&&(Ij(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(wIk(this)-G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Hq.get().D.O1()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Om(this.slot,this.layout,Q)};
g.y.ul=function(){return!1};
g.y.Fm=function(D){var Q=G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=G_(this.layout.clientMetadata,"metadata_type_layout_exit_ms");D*=1E3;if(Q<=D&&D<m){var P;l1(this.eD.get(),{daiStateTrigger:{filledAdsDurationMs:D-Q,contentCpn:(P=this.qv.get().n2)==null?void 0:P.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ur.adClientDataEntry}});this.De.get().TT(D,m)}};
g.y.Zr=function(D){this.dJ(D);D=dU(this.Hq.get(),2,!0);if(tK(this.J.get(),this.layout.layoutId)){var Q=G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=this.driftRecoveryMs;if(!(m===null||D*1E3<Q+m)){this.driftRecoveryMs=null;var P=wIk(this),W=this.Hq.get().D.O1(),L=Math.min(D+W,P/1E3);L<=D?Ij(this,{driftRecoveryMs:m.toString(),breakDurationMs:Math.round(P-Q).toString(),driftFromHeadMs:Math.round(W*1E3).toString()}):(Ij(this,{driftRecoveryMs:m.toString(),breakDurationMs:Math.round(P-
Q).toString(),driftFromHeadMs:Math.round(W*1E3).toString(),appliedDriftRecoveryMs:Math.round(D*1E3-Q).toString(),destinationMs:Math.round(L*1E3-Q).toString()}),this.Hq.get().D.seekTo(L,void 0,void 0,1))}}};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.dT=function(){};
g.y.onVolumeChange=function(){};
g.y.An=function(){};
g.y.Pc=function(){};g.Z(Rj,Jm);g.y=Rj.prototype;g.y.Bg=function(D,Q){this.qv.get().addListener(this);if(this.B){var m=D,P=0,W=[];D=this.T.slice();D.sort(function(L,u){return G_(L.A0().clientMetadata,"metadata_type_media_sub_layout_index")-G_(u.A0().clientMetadata,"metadata_type_media_sub_layout_index")});
D.forEach(function(L){var u=m,t=G_(L.A0().clientMetadata,"metadata_type_video_length_seconds"),z=Math.min(u+t*1E3,Q);m=z;P++;W.push(t);L.Bg(u,z)})}else this.T.forEach(function(L){L.init()});
this.C!=null&&UJ(this.eD.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.y.j2=function(){this.qv.get().removeListener(this);this.S=null;this.T.forEach(function(D){D.release()})};
g.y.NE=function(){if(this.S)bu("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var D,Q=(D=this.qv.get().n2)==null?void 0:D.layoutId;Jd7(this,Q)}};
g.y.Vu=function(D){var Q,m,P,W;(P=this.S)==null||(W=P.g3)==null||W.II((Q=this.S)==null?void 0:(m=Q.g3)==null?void 0:m.A0(),D);this.S=null};
g.y.jS=function(D){var Q=D.videoId;D=D.layoutId;if(Q==="nPpU29QrbiU"){var m,P;UJ(this.eD.get(),"ads_ssmplra_opdcs","vid."+Q+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.S+";slrslid."+((m=this.S)==null?void 0:(P=m.g3)==null?void 0:P.A0().layoutId))}if(this.S){var W;if(((W=this.S.g3)==null?void 0:W.A0().layoutId)===D)bu("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:D});else{var L,u;(u=this.S.g3)==null||u.II((L=this.S.g3)==null?void 0:L.A0(),"normal");
Jd7(this,D)}}};
g.y.YE=function(){};
g.y.p8=function(){};
g.y.dJ=function(){};
g.y.sH=function(){};
g.y.onFullscreenToggled=function(){};g.y=Oc7.prototype;g.y.AU=function(){return this.slot};
g.y.A0=function(){return this.layout};
g.y.qO=function(){bu("Should not get exitStateMachine for DAI");return new Lt};
g.y.Bg=function(D,Q){var m=this;G_(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.Um=lih(this.slot,this.layout,G_(this.layout.clientMetadata,"metadata_type_player_vars"),D,Q,G_(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.De.get(),this.aZ.get(),function(){var P=Object,W=P.assign,L=eG(m.layout);var u=G_(m.slot.clientMetadata,"metadata_type_fulfilled_layout")||m.slot.fulfilledLayout;var t=G_(u.clientMetadata,"metadata_type_sub_layouts")||
u.Xl;u=Object.assign({},eG(u),{adPlacementConfig:G_(u.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(t||[]).map(eG)});return W.call(P,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},L,{compositeLayout:u,hasSurveyOverlay:pY(m.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:G_(m.layout.clientMetadata,"metadata_type_survey_overlay")})},this.eD.get());
this.Hq.get().addListener(this);D=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds");Q=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");CZ(this.layout.Ij)&&m7(this.BY.get(),this.layout.layoutId,{Mf:Q,Zo:D,listener:this});OPP(this.callback,this.slot,this.layout);Ykj(this.callback,this.slot,this.layout)};
g.y.init=function(){var D=G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Q=G_(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Bg(D,Q)};
g.y.release=function(){this.Hq.get().removeListener(this);CZ(this.layout.Ij)&&PH(this.BY.get(),this.layout.layoutId);this.Ry.get();ayh(this.callback,this.slot,this.layout);if(vd7(this.Ry.get())){if(this.HB){var D;UJ(this.eD.get(),"ads_ccru","acpn."+((D=rM(this.qv.get(),2))==null?void 0:D.clientPlaybackNonce)+";cr."+this.HB);this.nM.get().removeCueRange(this.HB)}this.HB=void 0}};
g.y.startRendering=function(){var D=this;pY(this.layout.clientMetadata,"metadata_type_survey_overlay")&&UJ(this.eD.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Er)bu("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:pY(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:G_(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Er={Ev:null,YW:!1};this.S=!1;if(U1u(this.Ry.get())){var Q;this.adCpn=
(Q=rM(this.qv.get(),2))==null?void 0:Q.clientPlaybackNonce}this.Ry.get().D.G().experiments.Mv("html5_disable_sodar_for_tvhtml5")||Ii7(this.slot,this.layout,this.ES.get());CZ(this.layout.Ij)&&x1$(this.BY.get(),this.layout.layoutId);this.ph.ZG("start");if(D4(this.Ry.get())){Q=Ql(this.Hq.get());var m=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),P=dU(this.Hq.get(),2,!1);Rn4(this.ph,this.Er.Ev,Q,m,P,function(){return void air(D,"teois")},rM(this.qv.get(),1).xB)}ys(this.callback,
this.slot,this.layout);
vd7(this.Ry.get())&&(this.adCpn||bu("Media layout confirmed started, but ad CPN not set."),this.uf());pY(this.layout.clientMetadata,"metadata_type_survey_overlay")&&UJ(this.eD.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.y.II=function(D,Q){var m=this;if(this.Er){if(D4(this.Ry.get()))if(this.Um===null)bu("Unexpected media sub layout exited without a timeline playback ID");else{D=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds");var P=tx(this.Hq.get(),this.Um);U1u(this.Ry.get())&&this.adCpn===void 0&&bu("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:G_(this.layout.clientMetadata,"metadata_type_content_cpn")});Ilm(this.ph,P,this.adCpn);KN(this.ph,null,this.Er.Ev,D,P,rM(this.qv.get(),
1).xB,function(W){return void Yl_(m,W,"fue")},U1u(this.Ry.get()),vd7(this.Ry.get()))}this.Er=null;
Z1(this.callback,this.slot,this.layout,this.S&&this.Ry.get().D.G().V("dai_layout_log_skip_exit_reason")?"skipped":Q)}else bu("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.y.onCueRangeEnter=function(D){if(D!==this.HB)bu("Received CueRangeEnter signal for unknown layout.",this.AU(),this.A0(),{cueRangeId:D});else if(this.adCpn===void 0&&bu("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:G_(this.layout.clientMetadata,"metadata_type_content_cpn")}),ha(this.ph,"impression")&&D4(this.Ry.get()))if(this.Um===null)bu("Unexpected cue range enter without a timeline playback ID");else{var Q=tx(this.Hq.get(),this.Um),m;UJ(this.eD.get(),"ads_ccre","cpn."+
G_(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=rM(this.qv.get(),2))==null?void 0:m.clientPlaybackNonce)+";cr."+D+";cts."+Q);this.nM.get().removeCueRange(this.HB);this.HB=void 0;this.ph.ZG("complete")}};
g.y.onCueRangeExit=function(){};
g.y.Ab=function(){};
g.y.XE=function(){};
g.y.Zr=function(D){var Q=this;if(this.Er){if(ha(this.ph,"impression")){var m=Ql(this.Hq.get()),P=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds");jG(this.ph,m,D,this.Er.Ev,P,function(W){return void Yl_(Q,W,"tpaqe")})}this.Er.Ev=D}};
g.y.sH=function(D){var Q=this;if(this.Er){D4(this.Ry.get())||this.Er.YW||(this.Er.YW=!0,D=new g.qW(D.state,new g.HE));var m=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),P=dU(this.Hq.get(),2,!1);HB(this.ph,this.Er.Ev,D,m,P,rM(this.qv.get(),1).xB,!D4(this.Ry.get()),function(){return void air(Q,"teosc")})}};
g.y.onFullscreenToggled=function(D){Uz6(this.ph,D)};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.dT=function(){};
g.y.iT=function(D,Q){var m;D=this.eD.get();var P="ti."+ha(this.ph,"impression")+";ts."+ha(this.ph,"skip")+";hp.",W;var L=!((W=this.ph.T.get("skip"))==null||!W.length);UJ(D,"ads_dsr",P+L+";cpn."+G_(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=rM(this.qv.get(),2))==null?void 0:m.clientPlaybackNonce)+";sl."+(G_(Q.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));ha(this.ph,"impression")&&this.ph.ZG("skip");Q=rM(this.qv.get(),1).xB;this.S=!0;
this.De.get().GV(Q)||(this.S=!1,bu("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.y.onVolumeChange=function(){};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.hE=function(){};
g.y.Hp=function(){};
g.y.o9=function(){Hc9(this.ph)};
g.y.kf=function(){K44(this.ph)};
g.y.qH=function(){jH4(this.ph)};
g.y.zK=function(){$zP(this.ph)};
g.y.xf=function(){en4(this.ph)};
g.y.UG=function(){vYm(this.ph)};
g.y.An=function(){};
g.y.Pc=function(){};
g.y.uf=function(){if(!this.HB){this.HB="adcompletioncuerange:"+this.A0().layoutId;this.nM.get().addCueRange(this.HB,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn);var D;UJ(this.eD.get(),"ads_ccr","acpn."+((D=rM(this.qv.get(),2))==null?void 0:D.clientPlaybackNonce)+";cr."+this.HB)}};g.Z(vB,Jm);g.y=vB.prototype;
g.y.Bg=function(){var D=this;G_(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var Q=G_(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=G_(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Um=lih(this.slot,this.layout,G_(this.layout.clientMetadata,"metadata_type_player_vars"),Q,m,G_(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.De.get(),this.aZ.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:Q,
exitMs:m,adPlacementConfig:G_(D.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.eD.get());
var P=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=G_(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");CZ(this.layout.Ij)&&m7(this.BY.get(),this.layout.layoutId,{Mf:W,Zo:P,listener:this})};
g.y.j2=function(){CZ(this.layout.Ij)&&PH(this.BY.get(),this.layout.layoutId)};
g.y.NE=function(){var D=this;if(this.Er)bu("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Er={Ev:null,YW:!1},Ii7(this.slot,this.layout,this.ES.get()),this.ph.ZG("start"),D4(this.Ry.get())){var Q=Ql(this.Hq.get()),m=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),P=dU(this.Hq.get(),2,!1);Rn4(this.ph,this.Er.Ev,Q,m,P,function(){return void Ad$(D,"teois")},!1)}};
g.y.Vu=function(){var D=this;if(this.Er){if(D4(this.Ry.get()))if(this.Um===null)bu("Unexpected single media layout exited without a timeline playback ID");else{var Q=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),m=tx(this.Hq.get(),this.Um);Ilm(this.ph,m);KN(this.ph,null,this.Er.Ev,Q,m,!1,function(P){return void pIP(D,P,"fue")})}this.Er=null}else bu("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.y.dJ=function(D){var Q=this;if(this.Er){if(ha(this.ph,"impression")){var m=Ql(this.Hq.get()),P=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds");jG(this.ph,m,D,this.Er.Ev,P,function(W){return void pIP(Q,W,"tpaqe")})}this.Er.Ev=D}};
g.y.sH=function(D){var Q=this;if(this.Er){D4(this.Ry.get())||this.Er.YW||(this.Er.YW=!0,D=new g.qW(D.state,new g.HE));var m=G_(this.layout.clientMetadata,"metadata_type_video_length_seconds"),P=dU(this.Hq.get(),2,!1);HB(this.ph,this.Er.Ev,D,m,P,!1,!D4(this.Ry.get()),function(){return void Ad$(Q,"teosc")})}};
g.y.onFullscreenToggled=function(D){Uz6(this.ph,D)};
g.y.o9=function(){Hc9(this.ph)};
g.y.kf=function(){K44(this.ph)};
g.y.qH=function(){jH4(this.ph)};
g.y.zK=function(){$zP(this.ph)};
g.y.xf=function(){en4(this.ph)};
g.y.UG=function(){vYm(this.ph)};OJ.prototype.build=function(D,Q,m,P){if(pY(m.clientMetadata,"metadata_type_dai")){var W=G_(P.clientMetadata,"metadata_type_ad_placement_config");vX(P,{Nj:"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(" "),FZ:["LAYOUT_TYPE_MEDIA"]})&&W!==void 0?(W=new VB(P.Ij,this.eD,W,P.layoutId,null),W=new vB(D,m,P,this.qv,this.De,this.aZ,this.sC,this.Hq,W,this.eD,this.ES,
this.S,this.BY,this.Ry)):W=null;if(W)return W;a:{var L,u=(L=P.Xl)!=null?L:G_(P.clientMetadata,"metadata_type_sub_layouts");W=G_(P.clientMetadata,"metadata_type_ad_placement_config");if(vX(P,{Nj:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],FZ:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&u!==void 0&&W!==void 0){L=[];u=g.T(u);for(var t=u.next();!t.done;t=u.next()){t=t.value;var z=G_(t.clientMetadata,"metadata_type_media_sub_layout_index");if(!vX(t,{Nj:"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(" "),
FZ:["LAYOUT_TYPE_MEDIA"]})||z===void 0){D=null;break a}z=new VB(t.Ij,this.eD,W,t.layoutId,z);L.push(new Oc7(Q,m,t,this.De,z,this.Hq,this.aZ,this.BY,this.ES,this.Ry,this.eD,this.qv,this.nM))}Q=new VB(P.Ij,this.eD,W,P.layoutId);D=new Rj(D,m,P,this.qv,this.De,this.sC,this.Hq,Q,this.eD,this.S,L)}else D=null}if(D)return D}else if(D=gYh(D,Q,m,P,this.St,this.qj,this.P1,this.eD,this.BY,this.ES,this.bE,this.qv,this.Hq,this.uQ,this.nM,this.Jx,this.jt,this.vY,this.Ya,this.Ry,this.De,this.context,this.f6))return D;
throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};Yw.prototype.build=function(D,Q,m,P){if(D=gYh(D,Q,m,P,this.St,this.qj,this.P1,this.eD,this.BY,this.ES,this.bE,this.qv,this.Hq,this.uQ,this.nM,this.Jx,this.jt,this.vY,this.Ya,this.Ry,this.De,this.context,this.f6))return D;throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.Z(xz7,WR);g.Z(aj,dB);aj.prototype.startRendering=function(D){var Q=ta(this.ph),m={adsClientData:this.layout.Ur};this.S.push(new xz7(G_(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),Q,this.A0().layoutId,m));dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D)};
aj.prototype.bQ=function(D,Q){Q!==this.layout.layoutId||D!=="survey-interstitial"&&D!=="button"||((D=G_(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?D.iT(this.slot,this.layout):bu("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
aj.prototype.Bq=function(){dB.prototype.Bq.call(this)};var pN=new g.Ay(320,63);g.Z(SG,WR);g.Z(rD,dB);g.y=rD.prototype;g.y.Zr=function(){};
g.y.sH=function(){};
g.y.onFullscreenToggled=function(){};
g.y.zE=function(D){D&&y5(this.B,this.layout)};
g.y.iK=function(){};
g.y.dT=function(D){var Q=Xg(this.layout);if(this.U=xw(D,fkU(this.Hq.get())))Q.onErrorCommand&&this.vY.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),y5(this.B,this.layout)};
g.y.onVolumeChange=function(){};
g.y.P3=function(){return this.A0().layoutId};
g.y.mY=function(){return this.U};
g.y.bQ=function(D){this.J.bQ(D);D==="in_video_overlay_close_button"&&y5(this.B,this.layout)};
g.y.v$=function(D){D==="invideo-overlay"&&y5(this.B,this.layout)};
g.y.OM=function(){this.J.OM()};
g.y.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D);this.N.XC=this};
g.y.II=function(D,Q){dB.prototype.II.call(this,D,Q);rU(this.N,this)};
g.y.init=function(){dB.prototype.init.call(this);Lj2(this.eD.get(),this);this.Hq.get().addListener(this);this.S.push(new SG(Xg(this.layout),ta(this.ph),this.layout.layoutId,{adsClientData:this.layout.Ur}))};
g.y.release=function(){dB.prototype.release.call(this);this.Hq.get().removeListener(this);uwV(this.eD.get(),this)};
g.y.An=function(){};
g.y.Pc=function(){};g.Z(GA,dB);g.y=GA.prototype;g.y.init=function(){dB.prototype.init.call(this);Lj2(this.eD.get(),this);this.Hq.get().addListener(this);this.S.push(new SG(Xg(this.layout),ta(this.ph),this.layout.layoutId,{adsClientData:this.layout.Ur}))};
g.y.OM=function(){this.J.OM()};
g.y.startRendering=function(D){dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D);this.N.XC=this};
g.y.II=function(D,Q){dB.prototype.II.call(this,D,Q);rU(this.N,this)};
g.y.bQ=function(D){this.J.bQ(D);D==="in_video_overlay_close_button"&&y5(this.B,this.layout)};
g.y.Oh=function(D){if(D==="invideo-overlay"){D=Dw$(this.Z,this.layout);D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())Q.value.stop()}};
g.y.v$=function(D){D==="invideo-overlay"&&y5(this.B,this.layout)};
g.y.HJ=function(D){if(D==="invideo-overlay"){D=Dw$(this.Z,this.layout);D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())Q.value.start()}};
g.y.Zr=function(){};
g.y.sH=function(){};
g.y.onFullscreenToggled=function(){};
g.y.zE=function(D){D&&y5(this.B,this.layout)};
g.y.iK=function(){};
g.y.dT=function(D){var Q=Xg(this.layout),m=Q.contentSupportedRenderer.imageOverlayAdContentRenderer,P=fkU(this.Hq.get());a:{m=m.image;m=m===void 0?null:m;if(m!=null&&(m=m.thumbnail,m!=null&&m.thumbnails!=null&&m.thumbnails.length!=0&&m.thumbnails[0].width!=null&&m.thumbnails[0].height!=null)){m=new g.Ay(m.thumbnails[0].width||0,m.thumbnails[0].height||0);break a}m=new g.Ay(0,0)}if(this.U=xw(D,P,m))Q.onErrorCommand&&this.vY.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),y5(this.B,this.layout)};
g.y.onVolumeChange=function(){};
g.y.P3=function(){return this.A0().layoutId};
g.y.mY=function(){return this.U};
g.y.release=function(){dB.prototype.release.call(this);this.Hq.get().removeListener(this);uwV(this.eD.get(),this)};
g.y.An=function(){};
g.y.Pc=function(){};Mg.prototype.bQ=function(D){D==="ad-info-hover-text-button"&&((this.S=this.Hq.get().Xv(1))||this.Hq.get().pauseVideo())};
Mg.prototype.OM=function(){this.S||this.Hq.get().resumeVideo(1)};g.Z(Gb4,WR);g.Z(cB,dB);g.y=cB.prototype;g.y.init=function(){dB.prototype.init.call(this);this.Hq.get().addListener(this)};
g.y.startRendering=function(D){var Q=G_(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.S.push(new Gb4(Q,this.layout.layoutId,{adsClientData:this.layout.Ur}));dB.prototype.startRendering.call(this,D);this.callback.XA(this.slot,D)};
g.y.XA=function(){};
g.y.bQ=function(D,Q){Q!==this.layout.layoutId||D!=="ad-info-icon-button"&&D!=="ad-info-dialog-close-button"||((Q=G_(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?D==="ad-info-icon-button"?Q.hE(this.slot,this.layout):D==="ad-info-dialog-close-button"&&Q.Hp(this.slot,this.layout):bu("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:D}))};
g.y.dT=function(D){D.width<450&&y5(this.B,this.layout)};
g.y.onVolumeChange=function(){};
g.y.Zr=function(){};
g.y.onFullscreenToggled=function(){};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.sH=function(){};
g.y.An=function(){};
g.y.Pc=function(){};
g.y.Bq=function(){dB.prototype.Bq.call(this)};
g.y.release=function(){dB.prototype.release.call(this);this.Hq.get().removeListener(this)};Mz4.prototype.build=function(D,Q,m,P){if(Q=QJ(D,m,P,this.hx,this.Hq,this.eD,this.B,this.S,this.Ry))return Q;if(vX(P,rd7()))return new GA(m,P,this.eD,this.BY,this.hx,D,this.C,this.T,this.Hq,this.vY,this.Ry,this.S,new Mg(this.Hq));if(vX(P,Slr()))return new rD(m,P,this.eD,this.BY,this.hx,D,this.C,this.Hq,this.vY,this.Ry,this.S,new Mg(this.Hq));if(vX(P,{Nj:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],FZ:["LAYOUT_TYPE_SURVEY"]}))return new cB(m,P,D,this.hx,this.C,this.Hq,this.Ry);if(vX(P,
{Nj:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],FZ:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new aj(m,P,D,this.hx,this.eD);if(vX(P,zgP()))return new SL(m,P,D,this.hx,this.Hq,this.Ry);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};cd6.prototype.build=function(D,Q,m,P){if(Q=QJ(D,m,P,this.hx,this.Hq,this.eD,this.B,this.S,this.Ry))return Q;if(vX(P,rd7()))return new GA(m,P,this.eD,this.BY,this.hx,D,this.C,this.T,this.Hq,this.vY,this.Ry,this.S,new Mg(this.Hq));if(vX(P,Slr()))return new rD(m,P,this.eD,this.BY,this.hx,D,this.C,this.Hq,this.vY,this.Ry,this.S,new Mg(this.Hq));throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.Z(DK,x3);DK.prototype.startRendering=function(D){x3.prototype.startRendering.call(this,D);if(D.renderingContent?sq$(D,rM(this.qv.get(),2)||void 0):G_(this.layout.clientMetadata,"metadata_ad_video_is_listed"))D=D.renderingContent?iXj(D,rM(this.qv.get(),2)||void 0):G_(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.DR.get().D.sW("onAdMetadataAvailable",D)};Q97.prototype.build=function(D,Q,m,P){if(vX(P,Dy4())||P.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(P.renderingContent,GV)!==void 0)return new DK(D,m,P,this.hx,this.Hq,this.eD,this.C,this.DR,this.S,this.qv);throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};myr.prototype.build=function(D,Q,m,P){if(vX(P,Dy4()))return new DK(D,m,P,this.hx,this.Hq,this.eD,this.C,this.DR,this.S,this.qv);if(D=QJ(D,m,P,this.hx,this.Hq,this.eD,this.C,this.S,this.Ry))return D;throw new SB("Unsupported layout with type: "+P.layoutType+" and client metadata: "+Ma(P.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};TK.prototype.clone=function(D){var Q=this;return new TK(function(){return Q.triggerId},D)};h5.prototype.clone=function(D){var Q=this;return new h5(function(){return Q.triggerId},D)};nj.prototype.clone=function(D){var Q=this;return new nj(function(){return Q.triggerId},D)};EY.prototype.clone=function(D){var Q=this;return new EY(function(){return Q.triggerId},D)};RZ.prototype.clone=function(D){var Q=this;return new RZ(function(){return Q.triggerId},D)};UY.prototype.clone=function(D){var Q=this;return new UY(function(){return Q.triggerId},D)};g.Z(fE,g.v);var Ndj={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 j5={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],iE:[],layoutExitUserInputSubmittedTriggers:[]};var Ce={eKz:1,Vgv:2,wi9:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.Z(cL,g.v);g.y=cL.prototype;g.y.Sy=function(D){if(this.S)bu("Unexpected multiple fetch instructions for the current content");else{this.S=D;D=g.T(this.sC.get().Mc);for(var Q=D.next();!Q.done;Q=D.next())PS(this,this.S,Q.value)}};
g.y.ul=function(D){if(!this.S){if(!this.Ry.get().D.G().V("high_ccv_client_side_caching_h5")){var Q;(Q=this.De)==null||Q.get().HL(D.identifier)}return!1}PS(this,this.S,D);return!0};
g.y.Fm=function(){};
g.y.Wc=function(D){this.S&&this.S.contentCpn!==D&&(bu("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn}),this.S=null)};
g.y.r3=function(D){this.S&&this.S.contentCpn!==D&&bu("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn},!0);this.S=null};
g.y.Bq=function(){g.v.prototype.Bq.call(this);this.S=null};var Tu=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],SGN=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.Z(ir,g.v);g.y=ir.prototype;g.y.XA=function(D,Q){var m=this;if(Q.layoutType==="LAYOUT_TYPE_MEDIA"&&(xh(Q,this.N)||xh(Q,SGN))){var P=rM(this.qv.get(),2),W=this.B(Q,P||void 0);W?ia(this.T.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var L=[wt7(m.S.get(),W.contentCpn,W.G9,function(u){return m.J(u.slotId,"core",W,PF(m.BO.get(),u))},W.inPlayerSlotId)];
W.instreamAdPlayerUnderlayRenderer&&Iu(m.Ry.get())&&L.push($a7(m,W,W.instreamAdPlayerUnderlayRenderer));return L}):bu("Expected MediaLayout to carry valid opportunity on entered",D,Q)}};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.zi=function(){};
g.y.L6=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.Om=function(){};g.Z(sE,g.v);sE.prototype.Wc=function(D,Q,m,P,W,L,u){var t=this,z=rM(this.qv.get(),1);!Rp$(this.Ry.get())&&z.jZ?uG(this.Hq.get()):(wnP(this.Jx.get(),P),ia(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Nr(t.S.get(),P,W,L,D,Q,u,z,"")}),INh(this.T))};
sE.prototype.r3=function(){};g.Z(Li,g.v);g.Z(ur,g.v);ur.prototype.onCueRangeEnter=function(){};
ur.prototype.onCueRangeExit=function(D){var Q=this,m=this.S.get(D);m&&(this.S.delete(D),this.nM.get().removeCueRange(D),ia(this.C.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var P=Q.T.get();P=so(P.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},m,{slotId:P,slotEntryTrigger:m.slotEntryTrigger?uB4(m.slotId,P,m.slotEntryTrigger):void 0,slotFulfillmentTriggers:dw9(m.slotId,P,m.slotFulfillmentTriggers),slotExpirationTriggers:dw9(m.slotId,P,m.slotExpirationTriggers)})]},
m.slotId))};
ur.prototype.Wc=function(){for(var D=g.T(this.S.keys()),Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.nM.get().removeCueRange(Q);this.S.clear()};
ur.prototype.r3=function(){};g.Z(dn,g.v);g.y=dn.prototype;g.y.X2=function(){};
g.y.AY=function(D){var Q=this;g.xt(g.S0(),function(){var m=Q.S.get(D);m&&bu("Expected layouts to be properly unscheduled",D,void 0,{slotType:D.slotType,layoutTypes:[].concat(g.on(m)).map(function(P){return P.layoutType})})},0)};
g.y.zi=function(){};
g.y.L6=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(D,Q){this.S.has(D)||this.S.set(D,new Set);this.S.get(D).add(Q)};
g.y.OH=function(D,Q){this.D_.has(D)&&this.D_.get(D)===Q&&bu("Unscheduled a Layout that is currently entered.",D,Q);if(this.S.has(D)){var m=this.S.get(D);m.has(Q)?(m.delete(Q),m.size===0&&this.S.delete(D)):bu("Trying to unscheduled a Layout that was not scheduled.",D,Q)}else bu("Trying to unscheduled a Layout that was not scheduled.",D,Q)};
g.y.XA=function(D,Q){this.D_.set(D,Q)};
g.y.Om=function(D){this.D_.delete(D)};
g.y.Ge=function(){};g.y=vh7.prototype;g.y.init=function(){};
g.y.AU=function(){return this.slot};
g.y.LX=function(){this.callback.zi(this.slot)};
g.y.l$=function(){this.callback.LO(this.slot)};
g.y.release=function(){};br.prototype.build=function(D,Q){return new vh7(D,Q)};g.y=OYm.prototype;g.y.init=function(){};
g.y.AU=function(){return this.slot};
g.y.LX=function(){zu(this.Hq.get(),"ad-showing");this.callback.zi(this.slot)};
g.y.l$=function(){this.callback.LO(this.slot);bG(this.Hq.get(),"ad-showing")};
g.y.release=function(){};g.y=Yf4.prototype;g.y.init=function(){};
g.y.AU=function(){return this.slot};
g.y.LX=function(){zu(this.Hq.get(),"ad-showing");zu(this.Hq.get(),"ad-interrupting");this.C=this.Hq.get().isAtLiveHead();this.S=Math.ceil(Date.now()/1E3);this.callback.zi(this.slot)};
g.y.l$=function(){bG(this.Hq.get(),"ad-showing");bG(this.Hq.get(),"ad-interrupting");var D=this.C?Infinity:dU(this.Hq.get(),1,!0)+Math.floor(Date.now()/1E3)-this.S;this.Hq.get().D.seekTo(D,void 0,void 0,1);this.callback.LO(this.slot)};
g.y.release=function(){};g.y=aRj.prototype;g.y.init=function(){};
g.y.AU=function(){return this.slot};
g.y.LX=function(){zu(this.Hq.get(),"ad-showing");zu(this.Hq.get(),"ad-interrupting");this.callback.zi(this.slot)};
g.y.l$=function(){uG(this.Hq.get());bG(this.Hq.get(),"ad-showing");bG(this.Hq.get(),"ad-interrupting");this.callback.LO(this.slot)};
g.y.release=function(){uG(this.Hq.get())};q9.prototype.build=function(D,Q){if(ce(Q,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new OYm(D,Q,this.Hq);if(Q.slotEntryTrigger instanceof Cj&&ce(Q,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new Yf4(D,Q,this.Hq);if(ce(Q,[],"SLOT_TYPE_PLAYER_BYTES"))return new aRj(D,Q,this.Hq);throw new r("Unsupported slot with type "+Q.slotType+" and client metadata: "+(Ma(Q.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.Z(Ci,g.v);Ci.prototype.S=function(D){for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next()){P=P.value;var W=P.trigger;W instanceof FP&&P.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&W.triggeringLayoutId===D&&Q.push(P)}Q.length?FB(this.cM(),Q):bu("Mute requested but no registered triggers can be activated.")};g.Z(fi,Ci);g.y=fi.prototype;g.y.bQ=function(D,Q){if(Q)if(D==="skip-button"){D=[];for(var m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next()){P=P.value;var W=P.trigger;W instanceof FP&&P.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&W.triggeringLayoutId===Q&&D.push(P)}D.length&&FB(this.cM(),D)}else eq(this.Ry.get(),"supports_multi_step_on_desktop")?D==="ad-action-submit-survey"&&o6(this,Q):D==="survey-submit"?o6(this,Q):D==="survey-single-select-answer-button"&&o6(this,Q)};
g.y.JS=function(D){Ci.prototype.S.call(this,D)};
g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof HQ||Q instanceof FP))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdUxUpdateTriggerAdapter.");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
g.y.EZ=function(D){this.JU.delete(D.triggerId)};
g.y.Oh=function(){};
g.y.HJ=function(){};
g.y.v$=function(){};g.Z(V5,g.v);g.y=V5.prototype;
g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof TK||Q instanceof h5||Q instanceof nj||Q instanceof EY||Q instanceof RZ||Q instanceof UY||Q instanceof V6||Q instanceof Lj||Q instanceof dq||Q instanceof uj||Q instanceof fj||Q instanceof sY))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdsControlFlowEventTriggerAdapter");D=new jD(D,Q,m,P);this.JU.set(Q.triggerId,D);Q instanceof
RZ&&this.J.has(Q.triggeringSlotId)&&FB(this.S(),[D]);Q instanceof TK&&this.T.has(Q.triggeringSlotId)&&FB(this.S(),[D]);Q instanceof Lj&&this.C.has(Q.triggeringLayoutId)&&FB(this.S(),[D])};
g.y.EZ=function(D){this.JU.delete(D.triggerId)};
g.y.X2=function(D){this.J.add(D.slotId);for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next())P=P.value,P.trigger instanceof RZ&&D.slotId===P.trigger.triggeringSlotId&&Q.push(P);Q.length>0&&FB(this.S(),Q)};
g.y.AY=function(D){this.J.delete(D.slotId);for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next()){P=P.value;var W=P.trigger;W instanceof UY&&W.triggeringSlotId===D.slotId&&Q.push(P)}Q.length>0&&FB(this.S(),Q)};
g.y.L6=function(D){for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next()){P=P.value;var W=P.trigger;W instanceof V6&&W.slotType===D.slotType&&W.S!==D.slotId&&Q.push(P)}Q.length>0&&FB(this.S(),Q)};
g.y.zi=function(D){this.T.add(D.slotId);for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next())P=P.value,P.trigger instanceof TK&&D.slotId===P.trigger.triggeringSlotId&&Q.push(P);Q.length>0&&FB(this.S(),Q)};
g.y.LO=function(D){this.T.delete(D.slotId);this.B.add(D.slotId);for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next())if(P=P.value,P.trigger instanceof h5)D.slotId===P.trigger.triggeringSlotId&&Q.push(P);else if(P.trigger instanceof sY){var W=P.trigger;D.slotId===W.slotId&&this.C.has(W.triggeringLayoutId)&&Q.push(P)}Q.length>0&&FB(this.S(),Q)};
g.y.mD=function(D){for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next())P=P.value,P.trigger instanceof nj&&D.slotId===P.trigger.triggeringSlotId&&Q.push(P);Q.length>0&&FB(this.S(),Q)};
g.y.cB=function(D){for(var Q=[],m=g.T(this.JU.values()),P=m.next();!P.done;P=m.next())P=P.value,P.trigger instanceof EY&&D.slotId===P.trigger.triggeringSlotId&&Q.push(P);Q.length>0&&FB(this.S(),Q)};
g.y.hY=function(D,Q){this.N.add(Q.layoutId)};
g.y.OH=function(D,Q){this.N.delete(Q.layoutId)};
g.y.XA=function(D,Q){this.C.add(Q.layoutId);for(var m=[],P=g.T(this.JU.values()),W=P.next();!W.done;W=P.next())if(W=W.value,W.trigger instanceof Lj)Q.layoutId===W.trigger.triggeringLayoutId&&m.push(W);else if(W.trigger instanceof fj){var L=W.trigger;D.slotType===L.slotType&&Q.layoutType===L.layoutType&&Q.layoutId!==L.S&&m.push(W)}else W.trigger instanceof sY&&(L=W.trigger,Q.layoutId===L.triggeringLayoutId&&this.B.has(L.slotId)&&m.push(W));m.length>0&&FB(this.S(),m)};
g.y.Om=function(D,Q,m){this.C.delete(Q.layoutId);D=[];for(var P=g.T(this.JU.values()),W=P.next();!W.done;W=P.next())if(W=W.value,W.trigger instanceof dq&&Q.layoutId===W.trigger.triggeringLayoutId&&D.push(W),W.trigger instanceof uj){var L=W.trigger;Q.layoutId===L.triggeringLayoutId&&L.S.includes(m)&&D.push(W)}D.length>0&&FB(this.S(),D)};
g.y.Ge=function(){};
g.y.Wc=function(){this.B.clear()};
g.y.r3=function(){};g.Z(N9,g.v);N9.prototype.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof WQ))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CloseRequestedTriggerAdapter");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
N9.prototype.EZ=function(D){this.JU.delete(D.triggerId)};g.Z(Z4,g.v);Z4.prototype.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof PQ||Q instanceof y6))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
Z4.prototype.EZ=function(D){this.JU.delete(D.triggerId)};
Z4.prototype.Wc=function(D){for(var Q=[],m=Q.push,P=m.apply,W=[],L=g.T(this.JU.values()),u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof PQ&&u.trigger.FN===D&&W.push(u);P.call(m,Q,g.on(W));m=Q.push;P=m.apply;W=[];L=g.T(this.JU.values());for(u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof y6&&u.trigger.S!==D&&W.push(u);P.call(m,Q,g.on(W));Q.length&&FB(this.S(),Q)};
Z4.prototype.r3=function(D){for(var Q=[],m=Q.push,P=m.apply,W=[],L=g.T(this.JU.values()),u=L.next();!u.done;u=L.next()){u=u.value;var t=u.trigger;t instanceof y6&&t.S===D&&W.push(u)}P.call(m,Q,g.on(W));Q.length&&FB(this.S(),Q)};g.Z(Fc,g.v);g.y=Fc.prototype;g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");var W="adtriggercuerange:"+Q.triggerId;if(Q instanceof Cj)A8$(this,D,Q,m,P,W,Q.S.start,Q.S.end,Q.FN,Q.visible);else if(Q instanceof ij)A8$(this,D,Q,m,P,W,0x7ffffffffffff,0x8000000000000,Q.FN,Q.visible);else throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CueRangeTriggerAdapter");};
g.y.EZ=function(D){var Q=this.JU.get(D.triggerId);Q&&this.nM.get().removeCueRange(Q.cueRangeId);this.JU.delete(D.triggerId)};
g.y.onCueRangeEnter=function(D){var Q=pe$(this,D);if(Q&&(Q=this.JU.get(Q)))if(g.X(Ql(this.Hq.get()),32))this.S.add(Q.cueRangeId);else{var m=Q==null?void 0:Q.e3.trigger;if(m instanceof Cj||m instanceof ij){if(Ct(this.context.Ry.get())){var P=Q.e3.slot,W=Q.e3.layout,L={};this.context.o4.Rj("cre",(L.ca=Q.e3.category,L.tt=m.triggerType,L.st=P.slotType,L.lt=W==null?void 0:W.layoutType,L.cid=D,L))}FB(this.C(),[Q.e3])}}};
g.y.onCueRangeExit=function(D){(D=pe$(this,D))&&(D=this.JU.get(D))&&this.S.delete(D.cueRangeId)};
g.y.sH=function(D){if(Cs(D,16)<0){D=g.T(this.S);for(var Q=D.next();!Q.done;Q=D.next())this.onCueRangeEnter(Q.value,!0);this.S.clear()}};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.Ge=function(){};
g.y.Zr=function(){};
g.y.onFullscreenToggled=function(){};
g.y.zE=function(){};
g.y.iK=function(){};
g.y.dT=function(){};
g.y.onVolumeChange=function(){};
g.y.An=function(){};
g.y.Pc=function(){};g.Z(TN,g.v);g.y=TN.prototype;
g.y.YN=function(D,Q,m,P){if(this.C.has(Q.triggerId)||this.T.has(Q.triggerId))throw new r("Tried to re-register the trigger.");D=new jD(D,Q,m,P);if(D.trigger instanceof qq)this.C.set(D.trigger.triggerId,D);else if(D.trigger instanceof t5)this.T.set(D.trigger.triggerId,D);else throw new r("Incorrect TriggerType: Tried to register trigger of type "+D.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.C.has(D.trigger.triggerId)&&D.slot.slotId===this.S&&FB(this.B(),[D])};
g.y.EZ=function(D){this.C.delete(D.triggerId);this.T.delete(D.triggerId)};
g.y.jS=function(D){D=D.slotId;if(this.S!==D){var Q=[];this.S!=null&&Q.push.apply(Q,g.on(xa4(this.T,this.S)));D!=null&&Q.push.apply(Q,g.on(xa4(this.C,D)));this.S=D;Q.length&&FB(this.B(),Q)}};
g.y.YE=function(){};
g.y.p8=function(){};g.Z(hK,g.v);g.y=hK.prototype;g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof Nq))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
g.y.EZ=function(D){this.JU.delete(D.triggerId)};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};g.Z(ni,g.v);g.y=ni.prototype;g.y.Ge=function(D,Q){for(var m=[],P=g.T(this.JU.values()),W=P.next();!W.done;W=P.next()){W=W.value;var L=W.trigger;L.opportunityType===D&&(L.associatedSlotId&&L.associatedSlotId!==Q||m.push(W))}m.length&&FB(this.S(),m)};
g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof sCw))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OpportunityEventTriggerAdapter");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
g.y.EZ=function(D){this.JU.delete(D.triggerId)};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.XA=function(){};
g.y.Om=function(){};g.Z(EE,g.v);g.y=EE.prototype;g.y.YN=function(D,Q,m,P){D=new jD(D,Q,m,P);if(Q instanceof zK||Q instanceof oZ||Q instanceof bj||Q instanceof ZK||Q instanceof Pow){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");this.JU.set(Q.triggerId,D)}else throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in PrefetchTriggerAdapter");};
g.y.EZ=function(D){this.JU.delete(D.triggerId)};
g.y.X2=function(D){var Q=D.slotFulfillmentTriggers.find(function(m){return m instanceof zK});
Q&&(gn(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q.breakDurationMs,new Set([D.slotId]),!0),UJ(this.eD.get(),"ads_css","sid."+D.slotId+";bd."+Q.breakDurationMs))};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.XA=function(){};
g.y.Om=function(){};
g.y.Ge=function(){};
g.y.ul=function(D){var Q=this;if(!this.S)return bu("Unexpected cue break before fetch instructions are available"),!1;this.C&&this.C.stop();this.J&&g.xG(this.J);var m=G_7(this,D);if(!m){var P=Sfm(this),W=this.U!==void 0&&Date.now()<=this.U+1E4;UJ(this.eD.get(),"ads_ncfs","cid."+D.identifier+";cd."+D.m$.toFixed(3)+";ccs."+W+";cfa."+this.B+";bdc."+P.length+";"+P.slice(0,6).map(function(L){return";bd."+L}).join(""));
return W?(PS(this.a_,this.S,D),!0):!1}(P=G_(m.slot.clientMetadata,"metadata_type_triggering_cue_point"))?P.current=D:bu("Expected triggering cue point ref to be available",m.slot);(new g.pJ(function(){var L=m.trigger,u=m.slot;gn(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",L.breakDurationMs,new Set,!0);gn(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",L.breakDurationMs,new Set,!1);for(var t=0,z=g.T(Q.JU.values()),b=z.next();!b.done;b=z.next()){b=b.value;var q=b.trigger;
b.slot.slotId===u.slotId&&(Q.JU.delete(q.triggerId),t++)}UJ(Q.eD.get(),"ads_csf","sid."+u.slotId+";bd."+L.breakDurationMs+";dt."+t)},10)).start();
return!0};
g.y.Fm=function(){};
g.y.Wc=function(D){var Q=this;this.B=!1;this.U=Date.now();if(this.S&&this.S.contentCpn!==D)bu("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn}),BS(this);else{this.T=new g.pJ(function(){if(Q.B)delete Q.T;else{var P=Q.Hq.get().getGetAdBreakContext(),W;if(Number(P==null?void 0:(W=P.livePlaybackPosition)==null?void 0:W.utcTimeMillis)>0)delete Q.T,r89(Q);else{var L;(L=Q.T)==null||L.start()}}},200);
var m;(m=this.T)==null||m.start()}};
g.y.r3=function(D){this.S&&this.S.contentCpn!==D&&bu("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn},!0);BS(this)};
g.y.Sy=function(D){var Q=this;if(this.S)bu("Unexpected multiple fetch instructions for the current content");else{this.S=D;D=c8j(D);this.C=new g.pJ(function(){r89(Q)},D?D:6E5);
this.C.start();this.J=new g.pJ(function(){Q.S&&(Q.C&&(Q.C.stop(),Q.C.start()),Xem(Q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},MB_(this.S));
D=this.Hq.get().getCurrentTimeSec(1,!1);for(var m=g.T(this.sC.get().Mc),P=m.next();!P.done;P=m.next())P=P.value,UJ(this.eD.get(),"nocache","ct."+Date.now()+";cmt."+D+";d."+P.m$.toFixed(3)+";tw."+(P.startSecs-D)+";cid."+P.identifier+";")}};
g.y.Bq=function(){g.v.prototype.Bq.call(this);BS(this)};g.Z(wn,g.v);g.y=wn.prototype;g.y.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof Kj))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.JU.set(Q.triggerId,new jD(D,Q,m,P));D=this.S.has(Q.triggeringLayoutId)?this.S.get(Q.triggeringLayoutId):new Set;D.add(Q);this.S.set(Q.triggeringLayoutId,D)};
g.y.EZ=function(D){this.JU.delete(D.triggerId);if(!(D instanceof Kj))throw new r("Incorrect TriggerType: Tried to unregister trigger of type "+D.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Q=this.C.get(D.triggerId);Q&&(Q.dispose(),this.C.delete(D.triggerId));if(Q=this.S.get(D.triggeringLayoutId))Q.delete(D),Q.size===0&&this.S.delete(D.triggeringLayoutId)};
g.y.X2=function(){};
g.y.AY=function(){};
g.y.L6=function(){};
g.y.zi=function(){};
g.y.LO=function(){};
g.y.mD=function(){};
g.y.cB=function(){};
g.y.hY=function(){};
g.y.OH=function(){};
g.y.Ge=function(){};
g.y.XA=function(D,Q){var m=this;if(this.S.has(Q.layoutId)){D=this.S.get(Q.layoutId);D=g.T(D);var P=D.next();for(Q={};!P.done;Q={GN:void 0},P=D.next())Q.GN=P.value,P=new g.pJ(function(W){return function(){var L=m.JU.get(W.GN.triggerId);FB(m.T(),[L])}}(Q),Q.GN.durationMs),P.start(),this.C.set(Q.GN.triggerId,P)}};
g.y.Om=function(){};g.Z(ke,g.v);ke.prototype.YN=function(D,Q,m,P){if(this.JU.has(Q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(Q instanceof Q6))throw new r("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in VideoTransitionTriggerAdapter.");this.JU.set(Q.triggerId,new jD(D,Q,m,P))};
ke.prototype.EZ=function(D){this.JU.delete(D.triggerId)};R6.prototype.Mo=function(D){return D.kind==="AD_PLACEMENT_KIND_START"};g.Z(Ki,g.v);g.y=Ki.prototype;g.y.logEvent=function(D){this.X5(D)};
g.y.hd=function(D,Q,m){this.X5(D,void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,void 0,m)};
g.y.dl=function(D,Q,m,P){this.X5(D,void 0,void 0,void 0,Q,m?m:void 0,void 0,void 0,Q.adSlotLoggingData,m?m.adLayoutLoggingData:void 0,void 0,P);Q=kj().resolve(nP(iI))==null?void 0:LR();D=Q==null?void 0:Q.adsSeenHotConfig;Q=Q==null?void 0:Q.adsHotConfig;(D==null?0:D.logOnAdsSeen)&&(Q==null?0:Q.webEnablePremiumAdsSeenLogging)&&qg_(this,m?m:void 0,P)};
g.y.AV=function(D,Q,m,P){eq(this.Ry.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+D,"trigger:",m,"slot:",Q,"layout:",P);mA(this.S.get())&&this.X5(D,void 0,void 0,void 0,Q,P?P:void 0,void 0,m,Q.adSlotLoggingData,P?P.adLayoutLoggingData:void 0)};
g.y.BT=function(D,Q,m,P,W){this.X5(D,Q,m,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)};
g.y.SH=function(D,Q,m,P){this.X5("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,m,P,void 0,void 0,m.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,{errorType:D,errorMessage:Q})};
g.y.X5=function(D,Q,m,P,W,L,u,t,z,b,q,C){var f=this;C=C===void 0?0:C;eq(this.Ry.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+D,"slot:",W,"layout:",L,"ping:",u,"Opportunity:",{opportunityType:Q,associatedSlotId:m,wZy:P,Uov:t,adSlotLoggingData:z,adLayoutLoggingData:b});try{var V=function(){if(!f.Ry.get().D.G().V("html5_disable_client_tmp_logs")&&D!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){D||bu("Empty PACF event type",W,L);var N=mA(f.S.get()),h={eventType:D,eventOrder:++f.eventCount},B={};
W&&(B.slotData=Qs(N,W));L&&(B.layoutData=KN9(N,L));u&&(B.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:u.S.serializedAdPingMetadata,pingIndex:u.index});t&&(B.triggerData=D1(t.trigger,t.category));Q&&(B.opportunityData=jl9(N,Q,m,P));N={organicPlaybackContext:{contentCpn:rM(f.qv.get(),1).clientPlaybackNonce}};N.organicPlaybackContext.isLivePlayback=rM(f.qv.get(),1).VX;var J;N.organicPlaybackContext.isMdxPlayback=(J=rM(f.qv.get(),1))==null?void 0:J.isMdxPlayback;
var k;if((k=rM(f.qv.get(),1))==null?0:k.daiEnabled)N.organicPlaybackContext.isDaiContent=!0;var R;if(J=(R=rM(f.qv.get(),2))==null?void 0:R.clientPlaybackNonce)N.adVideoPlaybackContext={adVideoCpn:J};N&&(B.externalContext=N);h.adClientData=B;z&&(h.serializedSlotAdServingData=z.serializedSlotAdServingDataEntry);b&&(h.serializedAdServingData=b.serializedAdServingDataEntry);q&&(h.errorInfo=q);g.WD("adsClientStateChange",{adsClientEvent:h})}};
C&&C>0?g.xt(g.S0(),function(){return V()},C):V()}catch(N){eq(this.Ry.get(),"html5_log_pacf_logging_errors")&&g.xt(g.S0(),function(){bu(N instanceof Error?N:String(N),W,L,{pacf_message:"exception during pacf logging"})})}};var riT=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.Z(j4,Ki);g.y=j4.prototype;
g.y.hd=function(D,Q,m){Ki.prototype.hd.call(this,D,Q,m);Ct(this.Ry.get())&&(m={},this.context.o4.Rj("pacf",(m.et=D,m.st=Q.slotType,m.si=Q.slotId,m)))};
g.y.dl=function(D,Q,m,P){var W=riT.has(D);Ki.prototype.dl.call(this,D,Q,m,P);Ct(this.Ry.get(),W)&&(P={},this.context.o4.Rj("pacf",(P.et=D,P.st=Q.slotType,P.si=Q.slotId,P.lt=m==null?void 0:m.layoutType,P.li=m==null?void 0:m.layoutId,P.p_ac=m==null?void 0:m.layoutId,P)))};
g.y.BT=function(D,Q,m,P,W){Ki.prototype.BT.call(this,D,Q,m,P,W);Ct(this.Ry.get())&&(m={},this.context.o4.Rj("pacf",(m.et=D,m.ot=Q,m.ss=P==null?void 0:P.length,m)))};
g.y.AV=function(D,Q,m,P){Ki.prototype.AV.call(this,D,Q,m,P);if(Ct(this.Ry.get())){var W={};this.context.o4.Rj("pacf",(W.et=D,W.tt=m.trigger.triggerType,W.tc=m.category,W.st=Q.slotType,W.si=Q.slotId,W.lt=P==null?void 0:P.layoutType,W.li=P==null?void 0:P.layoutId,W.p_ac=P==null?void 0:P.layoutId,W))}};
g.y.SH=function(D,Q,m,P){Ki.prototype.SH.call(this,D,Q,m,P);if(Ct(this.Ry.get(),!0)){var W={};this.context.o4.Rj("perror",(W.ert=D,W.erm=Q,W.st=m.slotType,W.si=m.slotId,W.lt=P==null?void 0:P.layoutType,W.li=P==null?void 0:P.layoutId,W.p_ac=P==null?void 0:P.layoutId,W))}};
g.y.X5=function(D,Q,m,P,W,L,u,t,z,b,q){var C=this.Ry.get();g.Nw(C.D.G())?(C=this.Ry.get(),C=g.WF(C.D.G().experiments,"H5_async_logging_delay_ms")):C=void 0;Ki.prototype.X5.call(this,D,Q,m,P,W,L,u,t,z,b,q,C)};$e.prototype.clear=function(){this.S.clear()};e4.prototype.state=function(){return this.S==="fulfilled"?{state:"fulfilled",value:this.result}:this.S==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}};
e4.prototype.B=function(D){OE(D)||vS(D)?xe(Ye(D),this.B.bind(this),this.reject.bind(this)):(this.S="fulfilled",this.result=D,pi(this))};
e4.prototype.reject=function(D){this.S="rejected";this.error=D;pi(this)};
var vS=sG(function(D){return LxQ(D)?D instanceof e4:!1});Object.freeze({cu0:function(D){var Q=cS(D);return xe(M9(Q,function(m){return Q[m].S==="rejected"}),function(m){return Number.isNaN(m)?Q.map(function(P){return P.state().value}):Q[m]})},
Auc:function(D){var Q=cS(D);return xe(M9(Q),function(){return Q.map(function(m){return m.state()})})},
W3q:function(D){var Q=cS(D);return xe(M9(Q,function(m){return Q[m].S==="fulfilled"}),function(m){return Number.isNaN(m)?a6(new AggregateError(Q.map(function(P){return P.state().reason}))):Q[m].state().value})},
lgO:function(D){var Q=cS(D);return xe(M9(Q,function(){return!0}),function(m){return Q[m]})}});var Do=window.G8T||"en";W4.prototype.EU=function(D){this.client=D};
W4.prototype.S=function(){this.clear();this.csn=g.Tq()};
W4.prototype.clear=function(){this.T.clear();this.C.clear();this.B.clear();this.csn=null};Lx.prototype.EU=function(D){g.xK(se().EU).bind(se())(D)};
Lx.prototype.clear=function(){g.xK(se().clear).bind(se())()};g.y=ut.prototype;g.y.EU=function(D){this.client=D};
g.y.Pf=function(D,Q){var m=this;Q=Q===void 0?{}:Q;g.xK(function(){var P,W,L,u=((P=g.A(D==null?void 0:D.commandMetadata,g.TF))==null?void 0:P.rootVe)||((W=g.A(D==null?void 0:D.commandMetadata,bah))==null?void 0:(L=W.screenVisualElement)==null?void 0:L.uiType);if(u){P=g.A(D==null?void 0:D.commandMetadata,lqV);if(P==null?0:P.parentTrackingParams){var t=g.yi(P.parentTrackingParams);if(P.parentCsn)var z=P.parentCsn}else Q.clickedVisualElement?t=Q.clickedVisualElement:D.clickTrackingParams&&(t=g.yi(D.clickTrackingParams));
a:{P=g.A(D,g.gw);W=g.A(D,nZK);if(P){if(W=yV9(P,"VIDEO")){P={token:W,videoId:P.videoId};break a}}else if(W&&(P=yV9(W,"PLAYLIST"))){P={token:P,playlistId:W.playlistId};break a}P=void 0}Q=Object.assign({},{cttAuthInfo:P,parentCsn:z},Q);if(g.oi("expectation_logging")){var b;Q.loggingExpectations=((b=g.A(D==null?void 0:D.commandMetadata,bah))==null?void 0:b.loggingExpectations)||void 0}t3(m,u,t,Q)}else g.l4(new g.OI("Error: Trying to create a new screen without a rootVeType",D))})()};
g.y.clickCommand=function(D,Q,m){D=D.clickTrackingParams;m=m===void 0?0:m;D?(m=g.Tq(m===void 0?0:m))?(SX(this.client,m,g.yi(D),Q),Q=!0):Q=!1:Q=!1;return Q};
g.y.stateChanged=function(D,Q,m){this.visualElementStateChanged(g.yi(D),Q,m===void 0?0:m)};
g.y.visualElementStateChanged=function(D,Q,m){m=m===void 0?0:m;m===0&&this.C.has(m)?this.Z.push([D,Q]):E87(this,D,Q,m)};Cx.prototype.fetch=function(D,Q,m){var P=this,W=wFh(D,Q,m);return new Promise(function(L,u){function t(){if(m==null?0:m.Ok)try{var b=P.handleResponse(D,W.status,W.response,m);L(b)}catch(q){u(q)}else L(P.handleResponse(D,W.status,W.response,m))}
W.onerror=t;W.onload=t;var z;W.send((z=Q.body)!=null?z:null)})};
Cx.prototype.handleResponse=function(D,Q,m,P){m=m.replace(")]}'","");try{var W=JSON.parse(m)}catch(L){g.l4(new g.OI("JSON parsing failed after XHR fetch",D,Q,m));if((P==null?0:P.Ok)&&m)throw new g.pc(1,"JSON parsing failed after XHR fetch");W={}}Q!==200&&(g.l4(new g.OI("XHR API fetch failed",D,Q,m)),W=Object.assign({},W,{errorMetadata:{status:Q}}));return W};oP.getInstance=function(){var D=g.Q4("ytglobal.storage_");D||(D=new oP,g.ch("ytglobal.storage_",D));return D};
oP.prototype.estimate=function(){var D,Q,m;return g.U(function(P){D=navigator;return((Q=D.storage)==null?0:Q.estimate)?P.return(D.storage.estimate()):((m=D.webkitTemporaryStorage)==null?0:m.queryUsageAndQuota)?P.return(kRj()):P.return()})};
g.ch("ytglobal.storageClass_",oP);mD.prototype.LF=function(D){this.handleError(D)};
mD.prototype.logEvent=function(D,Q){switch(D){case "IDB_DATA_CORRUPTED":g.oi("idb_data_corrupted_killswitch")||this.S("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.S("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":g.oi("idb_is_supported_completed_killswitch")||this.S("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":l1P(this,Q);break;case "TRANSACTION_ENDED":this.T&&Math.random()<=.1&&this.S("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D=
Object.assign({},Q,{hasWindowUnloaded:this.C}),this.S("idbTransactionAborted",D)}};var SS={},Hj4=g.G3("yt-player-local-media",{yq:(SS.index={NO:2},SS.media={NO:2},SS.captions={NO:5},SS),shared:!1,upgrade:function(D,Q){Q(2)&&(g.E4(D,"index"),g.E4(D,"media"));Q(5)&&g.E4(D,"captions");Q(6)&&(gV(D,"metadata"),gV(D,"playerdata"))},
version:5});var GQT={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},r1;a:{var GF=g.Kg();GF=GF.toLowerCase();if(g.l7(GF,"android")){var MUQ=GF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(MUQ){var ci2=parseFloat(MUQ[1]);if(ci2<100){r1=ci2;break a}}var DIN=GF.match("("+Object.keys(GQT).join("|")+")");r1=DIN?GQT[DIN[0]]:0}else r1=void 0}var uL=r1,Le=uL>=0;var thr=window;var I14=I$(function(){var D,Q;return(Q=(D=window).matchMedia)==null?void 0:Q.call(D,"(prefers-reduced-motion: reduce)").matches});var VE;g.fx=new ZA;VE=0;var hY=eAh()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Ak?!0:!1;var Zo={TW:function(D,Q){var m=D[0];D[0]=D[Q%D[d[14]]];D[Q%D[d[14]]]=m},
tz:function(D){D[d[5]]()},
kj:function(D,Q){D[d[32]](0,Q)}};var Jm6={GE9:"adunit",vFz:"detailpage",AnF:"editpage",l_q:"embedded",NFD:"leanback",ejW:"previewpage",wkh:"profilepage",ZH:"unplugged",uly:"playlistoverview",bmT:"sponsorshipsoffer",IRx:"shortspage",HFq:"handlesclaiming",m5F:"immersivelivepage",HU0:"creatormusic",cd0:"immersivelivepreviewpage",i6T:"admintoolyurt",dOF:"shortsaudiopivot",DLO:"consumption"};var O8r=2592E3;var Mx,Q7k,I_;Mx={};g.B4=(Mx.STOP_EVENT_PROPAGATION="html5-stop-propagation",Mx.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Mx.IV_DRAWER_OPEN="ytp-iv-drawer-open",Mx.MAIN_VIDEO="html5-main-video",Mx.VIDEO_CONTAINER="html5-video-container",Mx.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Mx.HOUSE_BRAND="house-brand",Mx);Q7k={};I_=(Q7k.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Q7k.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Q7k);var Mqr={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var m0r={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},Pa6={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"},F54={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Qum={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.J3.prototype.getLanguageInfo=function(){return this.WY};
g.J3.prototype.getXtags=function(){if(!this.xtags){var D=this.id.split(";");D.length>1&&(this.xtags=D[1])}return this.xtags};
g.J3.prototype.toString=function(){return this.WY.name};
g.J3.prototype.getLanguageInfo=g.J3.prototype.getLanguageInfo;lt.prototype.equals=function(D){return this.C===D.C&&this.S===D.S&&this.T===D.T&&this.reason===D.reason&&(!RP||this.yF===D.yF)};
lt.prototype.isLocked=function(){return this.T&&!!this.C&&this.C===this.S};
lt.prototype.compose=function(D){if(D.T&&Ue(D))return y7;if(D.T||Ue(this))return D;if(this.T||Ue(D))return this;var Q=this.C&&D.C?Math.max(this.C,D.C):this.C||D.C,m=this.S&&D.S?Math.min(this.S,D.S):this.S||D.S;Q=Math.min(Q,m);var P=0;RP&&(P=this.yF!==0&&D.yF!==0?Math.min(this.yF,D.yF):this.yF===0?D.yF:this.yF);return RP&&Q===this.C&&m===this.S&&P===this.yF||!RP&&Q===this.C&&m===this.S?this:RP?new lt(Q,m,!1,m===this.S&&P===this.yF?this.reason:D.reason,P):new lt(Q,m,!1,m===this.S?this.reason:D.reason)};
lt.prototype.B=function(D){return!D.video||RP&&this.yF!==0&&this.yF<D.yF?!1:iZ6(this,D.video.quality)};
var mIT=g.IP("auto","hd1080",!1,"l"),Vl$=g.IP("auto","large",!1,"l"),y7=g.IP("auto","auto",!1,"p"),RP=!1;$f.prototype.wx=function(D){D=D||y7;for(var Q=g.g0(this.videoInfos,function(u){return D.B(u)}),m=[],P={},W=0;W<Q.length;W++){var L=Q[W].video;
P[L.quality]||(m.push(L),P[L.quality]=!0)}return m};
$f.prototype.uO=function(D){D=D||y7;return g.g0(this.videoInfos,function(Q){return D.B(Q)})};
$f.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var hen=new Set(["356"]);g.Z(ec,g.v);ec.prototype.Bq=function(){g.v.prototype.Bq.call(this)};g.Gn[d[21]][d[19]]=function(D,Q){this[d[8]][D]!==Q&&(this[d[8]][D]=Q,this[d[22]]=d[11])};
g.Gn[d[21]][d[51]]=function(D){Mj(this);return this[d[8]][D]||null};
g.Gn[d[21]][d[24]]=function(){this[d[22]]||(this[d[22]]=kVw(this));return this[d[22]]};
g.Gn[d[21]][d[39]]=function(){var D=new g.Gn(this[d[17]],this[d[36]]);D[d[43]]=this[d[43]];D[d[10]]=this[d[10]];D[d[37]]=this[d[37]];D[d[8]]=g.o2(this[d[8]]);D[d[22]]=this[d[22]];return D};
var wXr=[IV_];g.y=g.i5.prototype;g.y.Rm=function(D){this.segments.push(D)};
g.y.Pr=function(D){return!!this.eR(D)};
g.y.getDuration=function(D){return(D=this.eR(D))?D.duration:0};
g.y.kp=function(D){return this.getDuration(D)};
g.y.mT=function(){return 0};
g.y.zq=function(){return this.segments.length?this.segments[0].J0:-1};
g.y.hD=function(D){return(D=this.eR(D))?D.ingestionTime:NaN};
g.y.MY=function(){return this.segments.length?this.segments[this.segments.length-1].J0:-1};
g.y.TU=function(D){return this.MY()===D&&!this.C&&D>=0};
g.y.vI=function(){var D=this.segments[this.segments.length-1];return D?D.endTime:NaN};
g.y.TY=function(){return this.segments[0].startTime};
g.y.aT=function(){return this.segments.length};
g.y.uG=function(){return 0};
g.y.JY=function(D){return(D=this.v3(D))?D.J0:-1};
g.y.KP=function(D){return(D=this.eR(D))?D.sourceURL:""};
g.y.getStartTime=function(D){return(D=this.eR(D))?D.startTime:0};
g.y.Gz=function(D){return this.getStartTime(D)+this.getDuration(D)};
g.y.Ns=Dk(1);g.y.isLoaded=function(){return this.segments.length>0};
g.y.eR=function(D){if(this.S&&this.S.J0===D)return this.S;D=g.OU(this.segments,new WW(D,0,0,0,""),function(Q,m){return Q.J0-m.J0});
return this.S=D>=0?this.segments[D]:null};
g.y.v3=function(D){if(this.S&&this.S.startTime<=D&&D<this.S.startTime+this.S.duration)return this.S;D=g.OU(this.segments,{startTime:D},function(Q,m){return Q.startTime-m.startTime});
return this.S=D>=0?this.segments[D]:this.segments[Math.max(0,-D-2)]};
g.y.append=function(D){if(D.length)if(D=g.JM(D),this.segments.length){var Q=this.segments.length?g.fV(this.segments).endTime:0,m=D[0].J0-this.MY();m>1&&hrP(this.segments);for(m=m>0?0:-m+1;m<D.length;m++){var P=D[m];P.startTime=Q;P.endTime=P.startTime+P.duration;Q+=D[m].duration;this.segments.push(D[m])}}else this.segments=D};
g.y.ir=function(){return 0};sm.prototype.skip=function(D){this.S+=D};var cw={},P2V=(cw.predictStart="predictStart",cw.start="start",cw["continue"]="continue",cw.stop="stop",cw),HZw={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};fd.prototype.Zg=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"])};
fd.prototype.toString=function(){for(var D="",Q=g.T(Object.keys(this.data)),m=Q.next();!m.done;m=Q.next())m=m.value,D+=m+":"+this.data[m]+";";return D};wy.prototype.Yu=function(){var D=this.pos;this.pos=0;var Q=!1;try{I5(this,440786851)&&(this.pos=0,I5(this,408125543)&&(Q=!0))}catch(m){if(m instanceof RangeError)this.pos=0,Q=!1,g.l4(m);else throw m;}this.pos=D;return Q};Yg.prototype.set=function(D,Q){this.Mb.get(D);this.S[D]=Q;this.url=""};
Yg.prototype.get=function(D){return this.S[D]||this.Mb.get(D)};
Yg.prototype.AD=function(){this.url||(this.url=Wsj(this));return this.url};g.y=XV.prototype;g.y.SP=function(D,Q){return D.cY?this.Z?this.N=!0:this.N=sNh(this,D,Q):sNh(this,D,Q)};
g.y.hq=function(D){return this.C.get(D)};
g.y.GE=function(){return this.C.get("cpn")||""};
g.y.xN=function(D,Q){D.Mb===this.S&&(this.S=a5(D,Q));D.Mb===this.B&&(this.B=a5(D,Q))};
g.y.C2=function(){return this.S!==this.B&&!this.N};DB.prototype.xa=function(){return!!this.S&&this.index.isLoaded()};
DB.prototype.Oe=function(){return!1};
DB.prototype.WP=function(D){return[D]};
DB.prototype.OP=function(D){return[D]};Qa.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.y=i3.prototype;g.y.zM=function(){return this.B&&this.S.index.TU(this.J0)};
g.y.isEncrypted=function(){return this.S.info.isEncrypted()};
g.y.equals=function(D){return!(!D||D.S!==this.S||D.type!==this.type||(this.range&&D.range?D.range.start!==this.range.start||D.range.end!==this.range.end:D.range!==this.range)||D.J0!==this.J0||D.C!==this.C||D.T!==this.T)};
g.y.ri=function(){return!!this.S.info.video};
g.y.Hn=function(){var D=t7(this),Q="";g.MQ(D,function(m,P){Q+=P+"_"+m+"_"});
return Q.slice(0,-1)};b3.prototype.zT=function(){return this.S?this.S.AD():""};
b3.prototype.isDecorated=function(){return!!(this.S||this.B&&this.B.iG)};
b3.prototype.Ov=function(){return sW(this.EW[0])};
b3.prototype.xN=function(D,Q){this.NB.xN(D,Q);if(this.S){this.S=a5(D,Q);Q=g.T(["acpns","cpn","daistate","skipsq"]);for(var m=Q.next();!m.done;m=Q.next())this.S[d[19]](m.value,null)}this.requestId=D.get("req_id")};g.Z(ff,DB);g.y=ff.prototype;g.y.UT=function(){return!1};
g.y.E_=function(){return!0};
g.y.N_=function(){return!1};
g.y.Oe=function(){return!this.J};
g.y.wC=function(){return new b3([new i3(1,this,this.initRange,"getMetadataRequestInfo")],this.J)};
g.y.pJ=function(){return null};
g.y.ih=function(D){this.Yz(D);return this.E_()&&D.T&&!D.B?new b3([new i3(D.type,D.S,D.range,"liveGetNextRequestInfoBySegment",D.J0,D.startTime,D.duration,D.C+D.T,NaN,!0)],this.index.KP(D.J0)):this.GA(dL(D),!1)};
g.y.qo=function(D,Q){Q=Q===void 0?!1:Q;D=this.index.JY(D);Q&&(D=Math.min(this.index.MY(),D+1));return this.GA(D,!0)};
g.y.uB=function(D){Rd(D)};
g.y.Yz=function(D){return D.T===0?!0:this.index.MY()>D.J0&&this.index.zq()<=D.J0+1};
g.y.update=function(D,Q,m){this.index.append(D);IdP(this.index,m);D=this.index;D.C=Q;D.T="update"};
g.y.xa=function(){return this.Oe()?!0:DB.prototype.xa.call(this)};
g.y.GA=function(D,Q){var m=this.index.KP(D),P=this.index.getStartTime(D),W=this.index.getDuration(D),L;Q?W=L=0:L=this.info.yF>0?this.info.yF*W:1E3;return new b3([new i3(3,this,void 0,"liveCreateRequestInfoForSegment",D,P,W,0,L,!Q)],m)};
g.y.oi=function(){return this.Oe()?0:this.initRange.length};
g.y.Yg=function(){return!1};ya.prototype.update=function(D){var Q=void 0;this.C&&(Q=this.C);var m=new ya,P=Array.from(D.getElementsByTagName("S"));if(P.length){var W=+Va(D,"timescale")||1,L=(+P[0].getAttribute("t")||0)/W,u=+Va(D,"startNumber")||0;m.B=L;var t=Q?Q.startSecs+Q.m$:0,z=Date.parse(gVw(Va(D,"yt:segmentIngestTime")))/1E3;m.J=D.parentElement.tagName==="SegmentTemplate";m.J&&(m.U=Va(D,"media"));D=Q?u-Q.J0:1;m.N=D>0?0:-D+1;D=g.T(P);for(P=D.next();!P.done;P=D.next()){P=P.value;for(var b=+P.getAttribute("d")/W,q=(+P.getAttribute("yt:sid")||
0)/W,C=+P.getAttribute("r")||0,f=0;f<=C;f++)if(Q&&u<=Q.J0)u++;else{var V=new nV7(u,t,b,z+q,L);m.S.push(V);var N=P;var h=W,B=V.startSecs;V=N.getAttribute("yt:cuepointTimeOffset");var J=N.getAttribute("yt:cuepointDuration");if(V&&J){V=Number(V);B=-V/h+B;h=Number(J)/h;J=N.getAttribute("yt:cuepointContext")||null;var k=N.getAttribute("yt:cuepointIdentifier")||"";N=N.getAttribute("yt:cuepointEvent")||"";N=new Cd(B,h,J,k,P2V[N]||"unknown",V)}else N=null;N&&m.T.push(N);u++;t+=b;L+=b;z+=b+q}}m.S.length&&
(m.C=g.fV(m.S))}this.N=m.N;this.C=m.C||this.C;g.lv(this.S,m.S);g.lv(this.T,m.T);this.J=m.J;this.U=m.U;this.B===-1&&(this.B=m.getStreamTimeOffset())};
ya.prototype.getStreamTimeOffset=function(){return this.B===-1?0:this.B};g.Z(F_,g.i5);g.y=F_.prototype;g.y.mT=function(){return this.ze};
g.y.Pr=function(D,Q){D=Tf(this,D);return D>=0&&(Q||!this.segments[D].pending)};
g.y.zq=function(){return this.bU?this.segments.length?this.v3(this.TY()).J0:-1:g.i5.prototype.zq.call(this)};
g.y.TY=function(){if(this.Ws)return 0;if(!this.bU)return g.i5.prototype.TY.call(this);if(!this.segments.length)return 0;var D=Math.max(g.fV(this.segments).endTime-this.bO,0);return this.vO>0&&this.v3(D).J0<this.vO?this.eR(this.vO).startTime:D};
g.y.vI=function(){if(this.mV&&this.VW&&this.VW>0)return this.VW/1E3;if(!this.segments.length)return g.i5.prototype.vI.call(this);var D=this.MY();if(!this.bU||D<=this.segments[this.segments.length-1].J0)D=this.segments[this.segments.length-1];else{var Q=this.segments[this.segments.length-1];D=new WW(D,Math.max(0,Q.startTime-(Q.J0-D)*this.ze),this.ze,0,"sq/"+D,void 0,void 0,!0)}return this.Ws?Math.min(this.bO,D.endTime):D.endTime};
g.y.aT=function(){return this.bU?this.segments.length?this.MY()-this.zq()+1:0:g.i5.prototype.aT.call(this)};
g.y.MY=function(){var D=Math.min(this.v1,Math.max(g.i5.prototype.MY.call(this),this.C0)),Q=this.bO*1E3;Q=this.VW>0&&this.VW<Q;this.Ws&&this.bO>0&&this.C0>0&&!Q&&(Q=this.v3(this.bO))&&(D=Math.min(Q.J0-1,D));return D};
g.y.v0=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.y.Rm=function(D){var Q=Tf(this,D.J0);if(Q>=0)this.segments[Q]=D;else if(this.segments.splice(-(Q+1),0,D),this.cg&&D.J0%(300/this.ze)===0){var m=this.segments[0].J0,P=Math.floor(this.cg/this.ze);D=D.J0-P;Q=-(Q+1)-P;Q>0&&D>m&&(this.segments=this.segments.slice(Q))}};
g.y.Ox=function(){return this.C0};
g.y.TU=function(D){return ZB?!this.C&&D>=0&&this.MY()<=D:g.i5.prototype.TU.call(this,D)};
g.y.v3=function(D){if(!this.bU)return g.i5.prototype.v3.call(this,D);if(!this.segments.length)return null;var Q=this.segments[this.segments.length-1];if(D<this.segments[0].startTime)Q=Math.max(0,this.segments[0].J0-Math.ceil((this.segments[0].startTime-D)/this.ze));else if(D>=Q.endTime)Q=Q.J0+Math.floor((D-Q.endTime)/this.ze+1);else{Q=Yk(this.segments,function(P){return D<P.startTime?-1:D>=P.endTime?1:0});
if(Q>=0)return this.segments[Q];var m=-(Q+1);Q=this.segments[m-1];m=this.segments[m];Q=Math.floor((D-Q.endTime)/((m.startTime-Q.endTime)/(m.J0-Q.J0-1))+1)+Q.J0}return this.eR(Q)};
g.y.eR=function(D){if(!this.bU)return g.i5.prototype.eR.call(this,D);if(!this.segments.length)return null;var Q=Tf(this,D);if(Q>=0)return this.segments[Q];var m=-(Q+1);Q=this.ze;if(m===0)var P=Math.max(0,this.segments[0].startTime-(this.segments[0].J0-D)*Q);else m===this.segments.length?(P=this.segments[this.segments.length-1],P=P.endTime+(D-P.J0-1)*Q):(P=this.segments[m-1],Q=this.segments[m],Q=(Q.startTime-P.endTime)/(Q.J0-P.J0-1),P=P.endTime+(D-P.J0-1)*Q);return new WW(D,P,Q,0,"sq/"+D,void 0,void 0,
!0)};
var ZB=!1;g.Z(h7,ff);g.y=h7.prototype;g.y.N_=function(){return!0};
g.y.xa=function(){return!0};
g.y.Yz=function(D){return this.E_()&&D.T&&!D.B||!D.S.index.TU(D.J0)};
g.y.wC=function(){};
g.y.qo=function(D,Q){return typeof D!=="number"||isFinite(D)?ff.prototype.qo.call(this,D,Q===void 0?!1:Q):new b3([new i3(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.EY,void 0,this.EY*this.info.yF)],"")};
g.y.GA=function(D,Q){var m=m===void 0?!1:m;if(this.index.Pr(D))return ff.prototype.GA.call(this,D,Q);var P=this.index.getStartTime(D),W=Math.round(this.EY*this.info.yF),L=this.EY;Q&&(L=W=0);return new b3([new i3(m?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",D,P,L,void 0,W,!Q)],D>=0?"sq/"+D:"")};g.Z(nf,DB);g.y=nf.prototype;g.y.UT=function(){return!1};
g.y.E_=function(){return!1};
g.y.N_=function(){return!1};
g.y.wC=function(){return new b3([new i3(1,this,void 0,"otfInit")],this.J)};
g.y.pJ=function(){return null};
g.y.ih=function(D){this.Yz(D);return Uhm(this,dL(D),!1)};
g.y.qo=function(D,Q){Q=Q===void 0?!1:Q;D=this.index.JY(D);Q&&(D=Math.min(this.index.MY(),D+1));return Uhm(this,D,!0)};
g.y.uB=function(D){D.info.type===1&&(this.S||(this.S=qy(D.C)),D.S&&D.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&Ht$(this,D.S))};
g.y.Yz=function(D){return D.T===0?!0:this.index.MY()>D.J0&&this.index.zq()<=D.J0+1};
g.y.oi=function(){return 0};
g.y.Yg=function(){return!1};g.EW.prototype.info=function(){};
g.EW.prototype.debug=function(){};
g.EW.prototype.S=function(D){gL.apply(null,[5,this.tag,D].concat(g.on(g.e$.apply(1,arguments))))};
var $hw=new Map,Otu=new Map,ePu=new function(){var D=this;this.S=new Map;this.It={fBD:function(){return D.S}}};g.y=g.UW.prototype;g.y.Pr=function(D){return D<=this.MY()};
g.y.uG=function(D){return this.offsets[D]};
g.y.getStartTime=function(D){return this.startTicks[D]/this.S};
g.y.Gz=function(D){return this.getStartTime(D)+this.getDuration(D)};
g.y.Ns=Dk(0);g.y.hD=function(){return NaN};
g.y.getDuration=function(D){D=this.kp(D);return D>=0?D/this.S:-1};
g.y.kp=function(D){return D+1<this.count||this.C?this.startTicks[D+1]-this.startTicks[D]:-1};
g.y.mT=function(){return 0};
g.y.zq=function(){return 0};
g.y.MY=function(){return this.count-1};
g.y.TU=function(D){return this.MY()===D&&D>=0};
g.y.vI=function(){return this.C?this.startTicks[this.count]/this.S:NaN};
g.y.TY=function(){return 0};
g.y.aT=function(){return this.count};
g.y.KP=function(){return""};
g.y.JY=function(D){D=g.OU(this.startTicks.subarray(0,this.count),D*this.S);return D>=0?D:Math.max(0,-D-2)};
g.y.isLoaded=function(){return this.MY()>=0};
g.y.ir=function(D,Q){if(D>=this.MY())return 0;var m=0;for(Q=this.getStartTime(D)+Q;D<this.MY()&&Q>this.getStartTime(D);D++)m=Math.max(m,Ga$(this,D)/this.getDuration(D));return m};
g.y.resize=function(D){D+=2;var Q=this.offsets;this.offsets=new Float64Array(D+1);var m=this.startTicks;this.startTicks=new Float64Array(D+1);for(D=0;D<this.count+1;D++)this.offsets[D]=Q[D],this.startTicks[D]=m[D]};
g.y.cap=function(D,Q){Hl(this);this.C=!0;this.startTicks[this.count]=Q;this.offsets[this.count]=D};g.Z(Kf,DB);g.y=Kf.prototype;g.y.wC=function(D,Q){var m=new i3(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),P=[new i3(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),m];this.info.contentLength>0&&D&&(m=m.range.end+1,D=Math.min(D,this.info.contentLength-m),D>0&&P.push(new i3(4,this,Pl(m,D),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)));return new b3(P)};
g.y.uB=function(D){if(D.info.type===1){if(this.S)return;this.S=qy(D.C)}else if(D.info.type===2){if(this.J||this.index.MY()>=0)return;if(g.Mh(this.info)){var Q=this.index,m=g.wL(D);D=D.info.range.start;var P=g.Nk(m,0,1936286840);m=pX7(P);Q.S=m.timescale;var W=m.d$;Q.offsets[0]=m.As+D+P.size;Q.startTicks[0]=W;Q.C=!0;D=m.OV.length;for(P=0;P<D;P++){W=Q;var L=m.QFW[P],u=m.OV[P];W.count++;Hl(W);W.offsets[W.count]=W.offsets[W.count-1]+L;W.startTicks[W.count]=W.startTicks[W.count-1]+u}}else this.J=g.wL(D)}if(this.info.nO()&&
this.S&&this.J){m=new DataView(this.S.buffer);Q=this.index;P=this.J;D=this.indexRange.end;W=new wy(m);m=W;W=m.pos;L={iy:1E6,Zi:1E9,duration:0,YH:0,L_:0};if(I5(m,408125543))if(L.YH=R5(m,!0),L.L_=m.start+m.pos,I5(m,357149030)){for(u=l5(m);!kg(u);){var t=R5(u,!1);t===2807729?L.iy=HW(u):t===2807730?L.Zi=HW(u):t===17545?L.duration=jJ(u):Kd(u)}m.pos=W;m=L}else m.pos=W,m=null;else m.pos=W,m=null;if(m!==null){Q.S=m.Zi/m.iy;W=new wy(P);P=W;u=m.L_;W=P.pos;L=[];if(I5(P,475249515)){for(t=l5(P);I5(t,187);){var z=
l5(t);if(I5(z,179)){var b=HW(z);if(I5(z,183)){z=l5(z);for(var q=u;I5(z,241);)q=HW(z)+u;L.push({DO:q,aP:b})}}}if(L.length>0&&D===L[0].DO)for(D=0;D<L.length;D++)L[D].DO+=1;P.pos=W;D=L}else P.pos=W,D=null;if(D!==null){D=g.T(D);for(P=D.next();!P.done;P=D.next())L=P.value,P=Q,W=L.DO,L=L.aP,Hl(P),P.offsets[P.count]=W,P.startTicks[P.count]=L,P.count++;Q.cap(m.YH+m.L_,m.duration)}}this.J=null}};
g.y.rb=function(D,Q,m,P){for(var W=[],L=D;L<=this.index.MY();L++){var u=Pl(this.index.uG(L),Ga$(this.index,L)),t=this.index.getStartTime(L),z=this.index.getDuration(L),b=Math.max(0,Q-u.start),q=Math.min(u.end+1,Q+m)-(u.start+b);W.push(new i3(3,this,u,"getRequestInfoForRange",L,t,z,b,q,void 0,void 0,P));if(u.start+b+q>=Q+m)break}W.length||(D=new g.OI("b189619593",""+D,""+Q,""+m),g.JG(D));return new b3(W)};
g.y.WP=function(D){for(var Q=this.OP(D.info),m=D.info.range.start+D.info.C,P=[],W=0;W<Q.length;W++){var L=d3(D.C,Q[W].range.start+Q[W].C-m,Q[W].T);P.push(new Bl(Q[W],L))}return P};
g.y.OP=function(D){for(var Q=D.range.start+D.C,m=0;m<this.index.MY()&&Q>=this.index.uG(m+1);)m++;return this.rb(m,Q,D.T).EW};
g.y.Yz=function(D){D.zM();return this.xa()?!0:D.range.end+1<this.info.contentLength};
g.y.pJ=function(D,Q){this.Yz(D);if(!this.xa())return Q=Pl(D.range.end+1,Q),Q.end+1>this.info.contentLength&&(Q=new Qa(Q.start,this.info.contentLength-1)),new b3([new i3(4,D.S,Q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,D.clipId)]);D.type===4&&(D=this.OP(D),D=D[D.length-1]);var m=0,P=D.range.start+D.C+D.T;D.type===3&&(D.zM(),m=D.J0,P===D.range.end+1&&(m+=1));return this.rb(m,P,Q)};
g.y.ih=function(){return null};
g.y.qo=function(D,Q){Q=Q===void 0?!1:Q;D=this.index.JY(D);Q&&(D=Math.min(this.index.MY(),D+1));return this.rb(D,this.index.uG(D),0,void 0)};
g.y.UT=function(){return!0};
g.y.E_=function(){return!0};
g.y.N_=function(){return!1};
g.y.oi=function(){return this.indexRange.length+this.initRange.length};
g.y.Yg=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var DD={},qs$=(DD.COLOR_PRIMARIES_BT709="bt709",DD.COLOR_PRIMARIES_BT2020="bt2020",DD.COLOR_PRIMARIES_UNKNOWN=null,DD.COLOR_PRIMARIES_UNSPECIFIED=null,DD),QF={},cLu=(QF.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",QF.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",QF.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",QF.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",QF.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,QF.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,QF);g.js.prototype.getName=function(){return this.name};
g.js.prototype.getId=function(){return this.id};
g.js.prototype.getIsDefault=function(){return this.isDefault};
g.js.prototype.toString=function(){return this.name};
g.js.prototype.getName=g.js.prototype.getName;g.js.prototype.getId=g.js.prototype.getId;g.js.prototype.getIsDefault=g.js.prototype.getIsDefault;var Psr=/action_display_post/;var WL7,vl,OW;g.Z(YF,g.iR);g.y=YF.prototype;g.y.isLoading=function(){return this.state===1};
g.y.U1=function(){return this.state===3};
g.y.inW=function(D){var Q=D.getElementsByTagName("Representation");if(D.getElementsByTagName("SegmentList").length>0||D.getElementsByTagName("SegmentTemplate").length>0){this.VX=this.C=!0;this.N||(this.N=new w69);IO_(this.N,D);this.publish("refresh");for(D=0;D<Q.length;D++){var m=FL$(this,Q[D]);if(!this.S[m.id]){var P=X_(NA(Q[D],"BaseURL").textContent),W=NA(Q[D],"Initialization"),L=Va(W,"sourceURL");W=mw(Va(W,"range"));this.S[m.id]=new ff(P,m,L,W)}m=this.S[m.id];P=Va(Q[D],"id","AdaptationSet");P=
P!==""?P:Va(Q[D],"mimetype","AdaptationSet");L=this.N;L=L.T[m.info.id]||L.C[P]||L.S||null;P=L.S;!this.Z&&L.getStreamTimeOffset()&&(this.Z=L.getStreamTimeOffset());if(L.J){W=[];P=g.T(P);for(var u=P.next();!u.done;u=P.next()){u=u.value;var t=m.info.id,z=m.info.yF*8,b=u.J0;var q=u.startSecs;var C=L.U.split("$$");for(var f=0;f<C.length;f++)C[f]=C[f].replace("$RepresentationID$",t),C[f]=C[f].replace("$Number$",b.toString()),C[f]=C[f].replace("$Bandwidth$",z.toString()),C[f]=C[f].replace("$Time$",q.toString());
W.push(new WW(u.J0,u.startSecs,u.m$,u.S,C.join("$"),null,u.C))}P=W}else{L=HP(NA(Q[D],"SegmentList").getElementsByTagName("SegmentURL"),L.N);W=[];for(u=0;u<L.length;u++){t=W;z=t.push;b=P[u];q=void 0;f=L[u];C=f.getAttribute("media");if(f=f.getAttribute("mediaRange")){var V=f.split("-");V[1]&&Number(V[1])>=0?q=mw(f):C=C+"?range="+f}z.call(t,new WW(b.J0,b.startSecs,b.m$,b.S,C,q,b.C))}P=W}m.update(P,this.isLive,this.Y9)}RP4(this.N);return!0}this.duration=EV7(Va(D,"mediaPresentationDuration"));a:{for(D=
0;D<Q.length;D++){L=Q[D];m=FL$(this,L);P=X_(NA(L,"BaseURL").textContent);W=NA(L,"SegmentBase");L=mw(W.attributes.getNamedItem("indexRange").value);W=mw(W.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);m=new Kf(P,m,W,L);if(!m){Q=!1;break a}es(this,m)}Q=!0}return Q};
g.y.refresh=function(){if(!this.isLoading()&&!this.VF()){var D=g.oz(this.sourceUrl,{start_seq:gS_(this).toString()});hTj(this,D).Fn(function(){})}};
g.y.resume=function(){TMn(this)};
g.y.Bs=function(){if(this.isManifestless&&this.B&&rL(this))return rL(this);var D=this.S,Q=!1,m=NaN,P=NaN,W;for(W in D){var L=D[W],u=L.index;u.isLoaded()&&!WE(L.info.mimeType)&&(L.B&&(Q=!0),u=u.vI(),L.info.ZQ()&&(isNaN(m)||u<m)?m=u:L.info.ri()&&(isNaN(P)||u<P)&&(P=u))}return Q||isNaN(P)?m:Math.min(m,P)};
g.y.TY=function(){if(this.isManifestless){if(Gf(this))return Gf(this);if(this.Lj){var D=this.hD(this.Bs());if(D&&(D-=this.Lj,D>0))return this.Bs()-D}}D=this.S;for(var Q in D){var m=D[Q].index;if(m.isLoaded()&&!WE(D[Q].info.mimeType))return m.TY()}return 0};
g.y.getStreamTimeOffset=function(){return this.Z};
g.y.hD=function(D){for(var Q in this.S){var m=this.S[Q].index;if(m.isLoaded()){var P=m.JY(D),W=m.hD(P);if(W)return W+D-m.getStartTime(P)}}return NaN};
var PA=null,WzT,WA=!((WzT=navigator.mediaCapabilities)==null||!WzT.decodingInfo),Z2_={commentary:1,alternate:2,dub:3,main:4};var F1=new Set,iC=new Map;uC.prototype.clone=function(D){return new uC(this.flavor,D,this.C,this.experiments)};
uC.prototype.yX=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
uC.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 iIV={},NB=(iIV.playready=["com.youtube.playready","com.microsoft.playready"],iIV.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],iIV),mv={},m7n=(mv.widevine="DRM_SYSTEM_WIDEVINE",mv.fairplay="DRM_SYSTEM_FAIRPLAY",mv.playready="DRM_SYSTEM_PLAYREADY",mv),Pv={},s7$=(Pv.widevine=1,Pv.fairplay=2,Pv.playready=3,Pv);var F$;g.Z(yr,g.v);
yr.prototype.initialize=function(D,Q){for(var m=this,P=g.T(Object.keys(D)),W=P.next();!W.done;W=P.next()){W=g.T(D[W.value]);for(var L=W.next();!L.done;L=W.next())if(L=L.value,L.Ln)for(var u=g.T(Object.keys(L.Ln)),t=u.next();!t.done;t=u.next()){var z=t.value;t=z;z=NB[z];!z&&this.V("html5_enable_vp9_fairplay")&&t==="fairplay"&&(z=["com.youtube.fairplay.sbdl"]);if(z){z=g.T(z);for(var b=z.next();!b.done;b=z.next())b=b.value,this.T[b]=this.T[b]||new uC(t,b,L.Ln[t],this.nh.experiments),this.S[t]=this.S[t]||
{},this.S[t][L.mimeType]=!0}}}vd()&&(this.T["com.youtube.fairplay"]=new uC("fairplay","com.youtube.fairplay","",this.nh.experiments),this.V("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.C=RTw(Q,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(q){return!!m.T[q]})};
yr.prototype.V=function(D){return this.nh.experiments.Mv(D)};var LzQ={"":"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"};eTw.prototype.V=function(D){return this.experiments.Mv(D)};var IQk={RED:"red",Zcc:"white"};vS9.prototype.Mv=function(D){D=this.flags[D];JSON.stringify(D);return D==="true"};var ajr=Promise.resolve(),XE7=window.queueMicrotask?window.queueMicrotask.bind(window):A$u;ES.prototype.canPlayType=function(D,Q){D=D.canPlayType?D.canPlayType(Q):!1;aW?D=D||ur4[Q]:uL===2.2?D=D||dIv[Q]:$y()&&(D=D||td4[Q]);return!!D};
ES.prototype.isTypeSupported=function(D){return this.j?window.cast.receiver.platform.canDisplayType(D):hL(D)};
var dIv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},td4={"application/x-mpegURL":"maybe"},ur4={"application/x-mpegURL":"maybe"};g.Z(wJ,g.iR);wJ.prototype.add=function(D,Q){if(!this.items[D]&&(Q.IY||Q.z2||Q.E7)){var m=this.items,P=Q;Object.isFrozen&&!Object.isFrozen(Q)&&(P=Object.create(Q),Object.freeze(P));m[D]=P;this.publish("vast_info_card_add",D)}};
wJ.prototype.remove=function(D){var Q=this.get(D);delete this.items[D];return Q};
wJ.prototype.get=function(D){return this.items[D]||null};
wJ.prototype.isEmpty=function(){return g.b7(this.items)};ku.prototype.encrypt=function(D){this.S.exports.AES128CTRCipher_encrypt(this.cipher,D.byteOffset,D.byteLength);return D};
ku.prototype.VF=function(){return this.cipher===0};
ku.prototype.dispose=function(){this.S.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};lC.prototype.i6=function(D,Q){Q=Q===void 0?1:Q;this.ST+=Q;this.C+=D;D/=Q;for(var m=0;m<JY.length&&!(D<JY[m]);++m)this.S[m]+=Q};
lC.prototype.toString=function(){return""};
var JY=[20,100,500,2E3];g.y=Dgn.prototype;g.y.isActive=function(){return!0};
g.y.a8=function(D,Q){if(Q){var m=this,P={},W;for(W in Q)P={xv:void 0,Yy:void 0},Q.hasOwnProperty(W)&&(P.Yy=D.prototype[W],P.xv=Q[W],D.prototype[W]=function(L){return function(){var u=g.e$.apply(0,arguments),t=this,z=(0,g.T3)(),b=L.Yy.apply(t,u);return P16(m,b,null,z,function(q){return L.xv.apply(t,[q].concat(u))})}}(P))}};
g.y.Bv=function(){return new c$9};
g.y.eI=function(D,Q,m){m=m===void 0?1:m;Q instanceof c$9&&(Qjh(this,D,(0,g.T3)()-Q.startTimeMs,m),Q.S=!0)};
g.y.dk=function(D,Q){var m=(0,g.T3)();Q=Q();P16(this,Q,D,m)};
g.y.HU=function(){var D={},Q;for(Q in this.S)if(this.S.hasOwnProperty(Q)){var m=this.S[Q];if(m.ST===0)m=null;else{for(var P=Math.ceil(m.ST).toFixed(0)+"."+m.C.toFixed(0),W=0;W<JY.length;++W)if(m.S[W]>0)P+="."+JY[W].toFixed(0)+"_"+m.S[W].toFixed(0);else break;m=P}m&&(D[Q]=m)}this.S=new Mmn;return D};
g.y.toString=function(){return""};g.y=WSn.prototype;g.y.isActive=function(){return!1};
g.y.a8=function(){};
g.y.Bv=function(){};
g.y.eI=function(){};
g.y.dk=function(D,Q){Q()};
g.y.HU=function(){return{}};
g.y.toString=function(){return""};var ztv=new WSn,bI2=!!+aw("html5_enable_profiler"),qNP=!!+aw("html5_onesie_enable_profiler"),Wv=bI2||qNP?new Dgn:ztv,EC6=bI2?Wv:ztv,Rp=qNP?Wv:ztv;tG9.prototype.emscripten_notify_memory_growth=function(){};g.y=Ip.prototype;g.y.malloc=function(D){return this.exports.malloc(D)};
g.y.free=function(D){this.exports.free(D)};
g.y.realloc=function(D,Q){return this.exports.realloc(D,Q)};
g.y.Rw=function(D){if(D.buffer!==this.exports.memory.buffer){var Q=this.malloc(D.byteLength);Q=new Uint8Array(this.exports.memory.buffer,Q,D.byteLength);Q.set(D);return Q}};
g.y.mX=function(D){if(D.buffer===this.exports.memory.buffer){var Q=D.slice();this.free(D.byteOffset);return Q}};
var iN6=new function(){this.T=this.B="WebAssembly"in window},US="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);
Rp.a8(Ip,{Rw:function(D){return{profile:"copyj2w",ST:D===void 0?0:Math.ceil(D.byteLength/16)}},
mX:function(D){return{profile:"copyw2j",ST:D===void 0?0:Math.ceil(D.byteLength/16)}}});HA.prototype.encrypt=function(D,Q){try{return this.S.mX(C1h(this,D,Q))}catch(m){g.l4(Error("ocwce: wasm encrypt failed: "+m))}};
HA.prototype.VF=function(){return this.T};
HA.prototype.dispose=function(){this.VF()||(g.Dp(this.C),this.S.free(this.B.byteOffset),this.T=!0)};g.Z(owm,g.v);g.Z(VGw,g.v);var jC;$u.prototype.add=function(D){if(this.pos+20>this.data.length){var Q=new Uint8Array(this.data.length*2);Q.set(this.data);this.data=Q}for(;D>31;)this.data[this.pos++]=jC[(D&31)+32],D>>=5;this.data[this.pos++]=jC[D|0]};
$u.prototype.R_=function(){return g.Ny(this.data.subarray(0,this.pos))};
$u.prototype.reset=function(){this.pos=0};vA.prototype.X9=function(D,Q){var m=Math.pow(this.alpha,D);this.S=Q*(1-m)+m*this.S;this.C+=D};
vA.prototype.S1=function(){return this.S/(1-Math.pow(this.alpha,this.C))};OS.prototype.X9=function(D,Q){for(var m=0;m<10;m++){var P=this.S[m],W=P+(m===0?D:0),L=1*Math.pow(2,m);if(W<=L)break;P=Math.min(1,(W-L*.5)/P);for(W=0;W<16;W++)L=this.values[m*16+W]*P,this.values[(m+1)*16+W]+=L,this.S[m+1]+=L,this.values[m*16+W]-=L,this.S[m]-=L}P=m=0;W=8192;Q>8192&&(m=Math.ceil(Math.log(Q/8192)/Math.log(2)),P=8192*Math.pow(2,m-1),W=P*2);m+2>16?this.values[15]+=D:(Q=(Q-P)/(W-P),this.values[m]+=D*(1-Q),this.values[m+1]+=D*Q);this.S[0]+=D};
OS.prototype.S1=function(){var D=D===void 0?this.C:D;var Q=Q===void 0?.02:Q;var m=m===void 0?.98:m;for(var P=this.T,W=0;W<16;W++)P[W]=this.values[W];W=this.S[0];for(var L=1;L<11;L++){var u=this.S[L];if(u===0)break;for(var t=Math.min(1,(D-W)/u),z=0;z<16;z++)P[z]+=this.values[L*16+z]*t;W+=u*t;if(t<1)break}for(L=D=u=0;L<16;L++){t=u+P[L]/W;D+=Math.max(0,Math.min(t,m)-Math.max(u,Q))*(L>0?8192*Math.pow(2,L-1):0);if(t>m)break;u=t}return D/(m-Q)};Yu.prototype.X9=function(D,Q){D=Math.min(this.S,Math.max(1,Math.round(D*this.resolution)));D+this.C>=this.S&&(this.T=!0);for(;D--;)this.values[this.C]=Q,this.C=(this.C+1)%this.S;this.tZ=!0};
Yu.prototype.percentile=function(D){var Q=this;if(!this.T&&this.C===0)return 0;this.tZ&&(g.pV(this.J,function(m,P){return Q.values[m]-Q.values[P]}),this.tZ=!1);
return this.values[this.J[Math.round(D*((this.T?this.S:this.C)-1))]]||0};
Yu.prototype.S1=function(){return this.N?(this.percentile(this.B-this.N)+this.percentile(this.B)+this.percentile(this.B+this.N))/3:this.percentile(this.B)};g.Z(ap,g.v);ap.prototype.Y9=function(){var D;(D=this.x9)==null||D.start();if(MB(this)&&this.policy.Z){var Q;(Q=this.lE)==null||Q.NW()}};h8r.prototype.V=function(D){return this.experiments.Mv(D)};g.Z(Ew7,g.v);var lQw="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),$gn={bID:"caoe",Q4c:"capsv",iIh:"cbrand",ZIq:"cbr",ar0:"cbrver",yfh:"cchip",gFx:"ccappver",hAv:"ccrv",CW0:"cfrmver",WKW:"c",ZFh:"cver",iFD:"ctheme",lZ0:"cplayer",iZ0:"cmodel",wR:"cnetwork",g5T:"cos",OS_VERSION:"cosver",tHT:"cplatform",PG0:"crqyear"};g.Z(NS,g.v);g.y=NS.prototype;g.y.V=function(D){return this.experiments.Mv(D)};
g.y.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.y.getVideoUrl=function(D,Q,m,P,W,L,u){Q={list:Q};m&&(W?Q.time_continue=m:Q.t=m);m=u?"music.youtube.com":g.ZW(this);W=m==="www.youtube.com";!L&&P&&W?L="https://youtu.be/"+D:g.zs(this)?(L="https://"+m+"/fire",Q.v=D):(L&&W?(L=this.protocol+"://"+m+"/shorts/"+D,P&&(Q.feature="share")):(L=this.protocol+"://"+m+"/watch",Q.v=D),aW&&(D=KHj())&&(Q.ebc=D));return g.oz(L,Q)};
g.y.getVideoEmbedCode=function(D,Q,m,P){Q="https://"+g.ZW(this)+"/embed/"+Q;P&&(Q=g.oz(Q,{list:P}));P=m.width;m=m.height;Q=kq(Q);D=kq(D!=null?D:"YouTube video player");return'<iframe width="'+P+'" height="'+m+'" src="'+Q+'" title="'+(D+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.y.supportsGaplessAudio=function(){return g.Ta&&!aW&&Hd()>=74||g.fD&&g.$q(68)?!0:!1};
g.y.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.k9||g.Cr?!1:!0};
g.y.getPlayerType=function(){return this.S.cplayer};
g.y.xl=function(){return this.WO};
var YJ7=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],jj6=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],vwr=[19];var i0={},xgh=(i0["140"]={numChannels:2},i0["141"]={numChannels:2},i0["251"]={audioSampleRate:48E3,numChannels:2},i0["774"]={audioSampleRate:48E3,numChannels:2},i0["380"]={numChannels:6},i0["328"]={numChannels:6},i0["773"]={},i0),sK={},Am9=(sK["1"]='video/mp4; codecs="av01.0.08M.08"',sK["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',sK["1e"]='video/mp4; codecs="av01.0.08M.08"',sK["9"]='video/webm; codecs="vp9"',sK["("]='video/webm; codecs="vp9"',sK["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
sK.h='video/mp4; codecs="avc1.64001e"',sK.H='video/mp4; codecs="avc1.64001e"',sK.o='audio/webm; codecs="opus"',sK.a='audio/mp4; codecs="mp4a.40.2"',sK.ah='audio/mp4; codecs="mp4a.40.2"',sK.mac3='audio/mp4; codecs="ac-3"; channels=6',sK.meac3='audio/mp4; codecs="ec-3"; channels=6',sK.i='audio/mp4; codecs="iamf.001.001.Opus"',sK),Ll={},pB6=(Ll["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Ll["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Ll["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
Ll["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Ll["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Ll["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Ll["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Ll["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Ll["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Ll["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
Ll["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Ll["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Ll["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Ll["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Ll["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Ll["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Ll["308"]={width:2560,
height:1440,bitrate:1E7,fps:60},Ll["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Ll["302"]={width:1280,height:720,bitrate:25E5,fps:60},Ll["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Ll["298"]={width:1280,height:720,bitrate:35E5,fps:60},Ll["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Ll["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Ll["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Ll["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Ll["398"]={width:1280,height:720,bitrate:1E6,
fps:60},Ll["397"]={width:854,height:480,bitrate:4E5,fps:30},Ll["396"]={width:640,height:360,bitrate:25E4,fps:30},Ll["787"]={width:1080,height:608,bitrate:2E5,fps:30},Ll["788"]={width:1080,height:608,bitrate:4E5,fps:30},Ll["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Ll["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Ll["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Ll["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Ll["552"]={width:1280,height:720,bitrate:1E6,fps:60},Ll["551"]={width:854,
height:480,bitrate:4E5,fps:30},Ll["550"]={width:640,height:360,bitrate:25E4,fps:30},Ll["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Ll["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Ll["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Ll["247"]={width:1280,height:720,bitrate:15E5,fps:30},Ll["244"]={width:854,height:480,bitrate:52E4,fps:30},Ll["243"]={width:640,height:360,bitrate:28E4,fps:30},Ll["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Ll["136"]={width:1280,height:720,bitrate:3E6,
fps:30},Ll["135"]={width:854,height:480,bitrate:1E6,fps:30},Ll["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Ll["376"]={width:1280,height:720,bitrate:5706960,fps:60},Ll["384"]={width:1280,height:720,bitrate:3660979,fps:60},Ll["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Ll["224"]={width:1280,height:720,bitrate:453E4,fps:30},Ll["145"]={width:1280,height:720,bitrate:2682052,fps:30},Ll);g.y=jP.prototype;g.y.getInfo=function(){return this.S};
g.y.Z8=function(){return null};
g.y.z5=function(){var D=this.Z8();return D?(D=g.c0(D.NB),Number(D.expire)):NaN};
g.y.c_=function(){};
g.y.getHeight=function(){return this.S.video.height};GAj.prototype.build=function(){Dqn(this);var D=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Q={};a:if(this.S)var m=this.S;else{m="";for(var P=g.T(this.T),W=P.next();!W.done;W=P.next())if(W=W.value,W.WY){if(W.WY.getIsDefault()){m=W.WY.getId();break a}m||(m=W.WY.getId())}}P=g.T(this.T);for(W=P.next();!W.done;W=P.next())if(W=W.value,this.N||!W.WY||W.WY.getId()===m)Q[W.itag]||(Q[W.itag]=[]),Q[W.itag].push(W);m=g.T(this.C);for(P=m.next();!P.done;P=m.next())if(P=P.value,W=Q[P.S]){W=g.T(W);for(var L=W.next();!L.done;L=
W.next()){var u=D,t=u.push;L=L.value;var z="#EXT-X-MEDIA:TYPE=AUDIO,",b="YES",q="audio";if(L.WY){q=L.WY;var C=q.getId().split(".")[0];C&&(z+='LANGUAGE="'+C+'",');(this.S?this.S===q.getId():q.getIsDefault())||(b="NO");q=q.getName()}C="";P!==null&&(C=P.itag.toString());C=eP(this,L.url,C);z=z+('NAME="'+q+'",DEFAULT='+(b+',AUTOSELECT=YES,GROUP-ID="'))+(cm7(L,P)+'",URI="'+(C+'"'));t.call(u,z)}}m=g.T(this.J);for(P=m.next();!P.done;P=m.next())P=P.value,W=C2N,P=(u=P.WY)?'#EXT-X-MEDIA:URI="'+eP(this,P.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+W+'",LANGUAGE="'+u.getId()+'",NAME="'+u.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,P&&D.push(P);m=this.J.length>0?C2N:void 0;P=g.T(this.C);for(W=P.next();!W.done;W=P.next())W=W.value,t=Q[W.S],u=void 0,((u=t)==null?void 0:u.length)>0&&(u=W,t=t[0],t="#EXT-X-STREAM-INF:BANDWIDTH="+(u.bitrate+t.bitrate)+',CODECS="'+(u.codecs+","+t.codecs+'",RESOLUTION=')+(u.width+"x"+u.height+',AUDIO="')+(cm7(t,u)+'",')+(m?'SUBTITLES="'+m+'",':"")+"CLOSED-CAPTIONS=NONE",u.fps>1&&(t+=
",FRAME-RATE="+u.fps),u.jx&&(t+=",VIDEO-RANGE="+u.jx),D.push(t),D.push(eP(this,W.url,"")));return D.join("\n")};
var C2N="text";g.Z(v8,jP);v8.prototype.z5=function(){return this.expiration};
v8.prototype.Z8=function(){if(!this.NB||this.NB.VF()){var D=this.C.build();D="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(D);this.NB=new Fb(D)}return this.NB};g.Z(OO,jP);OO.prototype.Z8=function(){return new Fb(this.C.AD())};
OO.prototype.c_=function(){this.C=mu(this.C)};g.Z(Yv,jP);Yv.prototype.Z8=function(){return new Fb(this.C)};var u0={},tDr=(u0.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",u0.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",u0.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",u0.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",u0);g.y=g.a8.prototype;g.y.getId=function(){return this.id};
g.y.getName=function(){return this.name};
g.y.isServable=function(){return this.S};
g.y.AD=function(){return this.url};
g.y.getXtags=function(){return this.xtags};
g.y.toString=function(){return this.languageCode+": "+g.Af(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.y.equals=function(D){return D?this.toString()===D.toString():!1};
g.y.EC=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var fKu={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},VDr={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Nqn=/^(\d*)_((\d*)_?(\d*))$/;var Zjw={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},F37={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var dR={},o24=(dR.ALWAYS=1,dR.BY_REQUEST=3,dR.UNKNOWN=void 0,dR),tQ={},f0V=(tQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",tQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",tQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",tQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",tQ);var HR7;
HR7=function(D){for(var Q=Object.keys(D),m={},P=0;P<Q.length;P++){var W=Q[P];typeof D[W]==="function"&&(m[W]=D[W])}var L=Object.keys(m);try{ho7(m)}catch(t){var u=t}return function(t,z){t=t===void 0?{}:t;if(u)throw u;for(var b=!1,q={},C=0;C<L.length;C++){var f=L[C],V=t[f],N=(0,m[f])(V,z);if(typeof N==="undefined")throw t=z&&z.type,Error("When called with an action of type "+(t?'"'+String(t)+'"':"(unknown type)")+', the slice reducer for key "'+f+'" 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.');q[f]=
N;b=b||N!==V}return(b=b||L.length!==Object.keys(t).length)?q:t}}({entities:function(D,Q){D=D===void 0?{}:D;
return rEj(D,Q)}});
g.kA=new io;MS.prototype.toString=function(){return this.type+this.id};DY.prototype.vB=function(D){D=D||"hqdefault.jpg";var Q=this.Z[D];if(Q)return Q;if(D==="sddefault.jpg"||D==="hq720.jpg"||D==="maxresdefault.jpg")return Q;if(this.S)return FG(this.nh,this.S,D)};
DY.prototype.rT=function(){return this.nh.getVideoUrl(this.videoId,this.playlistId)};Q7.prototype.vB=function(D){D||(D="hqdefault.jpg");var Q=this.Z[D];return Q?Q:D==="pop1.jpg"||D==="pop2.jpg"||D==="sddefault.jpg"||D==="hq720.jpg"||D==="maxresdefault.jpg"?Q:FG(this.nh,this.videoId,D)};
Q7.prototype.rT=function(D){return this.watchUrl||this.nh.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,D)};var W1=void 0;URh("LMS",function(){return g.U(function(D){return D.return(g.iH())})});var dw;dw=0;g.aK$=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;URh("LMDB",function(){var D,Q;return g.U(function(m){if(m.C==1)return g.I(m,g.Sa(),2);if(m.C!=3){D=m.S;if(!D)throw g.fr("edd");return g.I(m,g.uH(D),3)}Q=m.S;return m.return(g.BD(Q,["index","media","captions"],{mode:"readonly",wB:!0},function(P){var W={};P=[g.IW(P.objectStore("index"),{},function(L){W[L.cursor.key]=L.getValue();return g.RW(L)}),
Tt4(P.objectStore("media")),Tt4(P.objectStore("captions"))];return g.NT.all(P).then(function(L){var u=g.T(L);u.next();L=u.next().value;u=u.next().value;return{index:W,media:A56(L||[]),captions:u}})}))})});g.Z(zM,g.iR);zM.prototype.Bq=function(){this.S&&(this.S=this.S.onload=null);g.iR.prototype.Bq.call(this)};g.y=g.ob.prototype;g.y.getHeight=function(){return this.height};
g.y.lr=Dk(2);g.y.oY=function(){return this.frameCount};
g.y.isDefault=function(){return this.T.indexOf("default")!==-1};
g.y.isLoaded=function(D){return this.loaded.has(D)};
g.y.AD=function(D){var Q=this.B;Q=Q.replace("$N",this.T);Q=Q.replace("$L",this.level.toString());Q=Q.replace("$M",D.toString());this.signature&&(Q=g.oz(Q,{sigh:this.signature}));return p8(Q)};
g.y.Kr=function(D){var Q=this.oY()-1;return g.eZ(this.S===0?Math.round(D*this.frameCount/this.videoLength):Math.round(D*1E3/this.S),0,Q)};
g.y.YU=function(){return this.frameCount-1};
g.y.WM=function(){return this.frameCount?0:-1};
g.y.lN=function(){};g.Z(fz,zM);fz.prototype.C=function(D,Q){var m=[];D=D.split("|");for(var P=D[0],W=1;W<D.length;W++){var L=this.J(W-1,P,D[W],Q);(this.U||L.getHeight()<180)&&m.push(L)}return m};
fz.prototype.J=function(D,Q,m,P){return new g.ob(D,Q,m,P)};g.Z(V7,g.ob);g.y=V7.prototype;g.y.oY=function(){return this.C.aT()};
g.y.Kr=function(D){var Q=this.rows*this.columns*this.J,m=this.C,P=m.MY();D=m.JY(D);return D>P-Q?-1:D};
g.y.YU=function(){return this.C.MY()};
g.y.WM=function(){return this.C.zq()};
g.y.lN=function(D){this.C=D};g.Z(N4,fz);N4.prototype.C=function(D,Q){return fz.prototype.C.call(this,"$N|"+D,Q)};
N4.prototype.J=function(D,Q,m){return new V7(D,Q,m,this.isLive)};g.Z(g.ZY,g.iR);g.y=g.ZY.prototype;
g.y.setData=function(D){D=D||{};var Q=D.errordetail;Q!=null&&(this.errorDetail=Q);var m=D.errorcode;m!=null?this.errorCode=m:D.status==="fail"&&(this.errorCode="auth");var P=D.reason;P!=null&&(this.errorReason=P);var W=D.subreason;W!=null&&(this.vr=W);this.clientPlaybackNonce||(this.clientPlaybackNonce=D.cpn||(this.nh.xl()?"r"+g.V$(15):g.V$(16)));this.oy=cd(this.nh.oy,D.livemonitor);MDm(this,D);var L=D.raw_player_response;if(L)this.gq=L;else{var u=D.player_response;u&&(L=JSON.parse(u))}L&&(this.playerResponse=
L);if(this.playerResponse){var t=this.playerResponse.annotations;if(t)for(var z=g.T(t),b=z.next();!b.done;b=z.next()){var q=b.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(this.C1=!0);var C=q.loadPolicy;C&&(this.annotationsLoadPolicy=o24[C]);var f=q.invideoUrl;f&&(this.x9=p8(f));break}}var V=this.playerResponse.attestation;V&&hi7(this,V);var N=this.playerResponse.cotn;N&&(this.cotn=N);var h=this.playerResponse.heartbeatParams;if(h){this.O$=!0;var B=h.heartbeatToken;B&&(this.drmSessionId=h.drmSessionId||
"",this.heartbeatToken=B,this.rQ=Number(h.intervalMilliseconds),this.Lv=Number(h.maxRetries),this.WW=!!h.softFailOnError,this.Jg=!!h.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=h.heartbeatServerData;var J;this.Ik=!((J=h.heartbeatAttestationConfig)==null||!J.requiresAttestation)}var k=this.playerResponse.messages;k&&Bq7(this,k);var R=this.playerResponse.overlay;if(R){var e=R.playerControlsOverlayRenderer;if(e)if(kK6(this,e.controlBgHtml),e.mutedAutoplay){var a=g.A(e.mutedAutoplay,B9T);if(a&&
a.endScreen){var G=g.A(a.endScreen,wuv);G&&G.text&&(this.K9=g.qC(G.text))}}else this.mutedAutoplay=!1}var S=this.playerResponse.playabilityStatus;if(S){var u6=S.backgroundability;u6&&u6.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var L9,d7;if((L9=S.offlineability)==null?0:(d7=L9.offlineabilityRenderer)==null?0:d7.offlineable)this.offlineable=!0;var b6=S.contextParams;b6&&(this.contextParams=b6);var mj=S.pictureInPicture;mj&&mj.pictureInPictureRenderer.playableInPip&&(this.pipable=
!0);S.playableInEmbed&&(this.allowEmbed=!0);var kP=S.ypcClickwrap;if(kP){var S$=kP.playerLegacyDesktopYpcClickwrapRenderer,DN=kP.ypcRentalActivationRenderer;if(S$)this.KZ=S$.durationMessage||"",this.Kd=!0;else if(DN){var V4=DN.durationMessage;this.KZ=V4?g.qC(V4):"";this.Kd=!0}}var uv=S.errorScreen;if(uv){if(uv.playerLegacyDesktopYpcTrailerRenderer){var l6=uv.playerLegacyDesktopYpcTrailerRenderer;this.sM=l6.trailerVideoId||"";var sq=uv.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var KV=sq&&sq.ypcTrailerRenderer}else if(uv.playerLegacyDesktopYpcOfferRenderer)l6=
uv.playerLegacyDesktopYpcOfferRenderer;else if(uv.ypcTrailerRenderer){KV=uv.ypcTrailerRenderer;var a4=KV.fullVideoMessage;this.K0=a4?g.qC(a4):"";var Lg,l;this.sM=((Lg=g.A(KV,kH$))==null?void 0:(l=Lg.videoDetails)==null?void 0:l.videoId)||""}l6&&(this.DB=l6.itemTitle||"",l6.itemUrl&&(this.Us=l6.itemUrl),l6.itemBuyUrl&&(this.JG=l6.itemBuyUrl),this.xU=l6.itemThumbnail||"",this.kU=l6.offerHeadline||"",this.Nz=l6.offerDescription||"",this.Dj=l6.offerId||"",this.qE=l6.offerButtonText||"",this.M9=l6.offerButtonFormattedText||
null,this.kI=l6.overlayDurationMsec||NaN,this.K0=l6.fullVideoMessage||"",this.Xn=!0);if(KV){var Oq=g.A(KV,kH$);if(Oq)this.nZ={raw_player_response:Oq};else{var I4=g.A(KV,eM$);this.nZ=I4?GG(I4):null}this.Xn=!0}}}var Ph=this.playerResponse.playbackTracking;if(Ph){var EU=D,n=rv(Ph.googleRemarketingUrl);n&&(this.googleRemarketingUrl=n);var Qm=rv(Ph.youtubeRemarketingUrl);Qm&&(this.youtubeRemarketingUrl=Qm);var gC={},L6=rv(Ph.ptrackingUrl);if(L6){var e2=Gs(L6),xP=e2.oid;xP&&(this.Op=xP);var mh=e2.pltype;
mh&&(this.uV=mh);var Qf=e2.ptchn;Qf&&(this.n9=Qf);var Y1=e2.ptk;Y1&&(this.cE=encodeURIComponent(Y1));var E=e2.m;E&&(this.wQ=E)}var F=rv(Ph.qoeUrl);if(F){for(var w=g.c0(F),H=g.T(Object.keys(w)),Y=H.next();!Y.done;Y=H.next()){var qu=Y.value,x=w[qu];w[qu]=Array.isArray(x)?x.join(","):x}this.VJ=w;var c=w.cat;c&&(this.V("html5_enable_qoe_cat_list")?this.RH=this.RH.concat(c.split(",")):this.Ad=c);var K=w.live;K&&(this.IQ=K);var U_=w.drm_product;U_&&(this.drmProduct=U_)}var YP=rv(Ph.videostatsPlaybackUrl);
if(YP){var s_=Gs(YP),tM=s_.adformat;if(tM){EU.adformat=tM;var In=this.G(),E_=y59(tM,this.fD,In.B,In.Z);E_&&(this.adFormat=E_)}var Dq=s_.aqi;Dq&&(EU.ad_query_id=Dq);var nV=s_.autoplay;nV&&(this.BB=nV=="1",this.cj=nV=="1");var j2=s_.autonav;j2&&(this.isAutonav=j2=="1");var Bh=s_.delay;Bh&&(this.gB=IG(Bh));var Fy=s_.ei;Fy&&(this.eventId=Fy);var J4=KD(s_.adcontext);if(J4)try{var R4=wbh(J4);R4&&(this.HT=R4)}catch(hkk){g.l4(Error("Malformed adContext"))}if(J4||tM)this.BB=!0;var g$$=s_.feature;g$$&&(this.Km=
g$$);var u7=s_.list;u7&&(this.playlistId=u7);var BP=s_.of;BP&&(this.QT=BP);var D$=s_.osid;D$&&(this.osid=D$);var PK=s_.referrer;PK&&(this.referrer=PK);var AM=s_.sdetail;AM&&(this.H0=AM);var UU=s_.ssrt;UU&&(this.e9=UU=="1");var Bb=s_.subscribed;Bb&&(this.subscribed=Bb=="1");var XF=s_.uga;XF&&(this.userGenderAge=XF);var o7=s_.upt;o7&&(this.CD=o7);var KI=s_.vm;KI&&(this.videoMetadata=KI);gC.playback=s_}var QK=rv(Ph.videostatsWatchtimeUrl);if(QK){var m_=Gs(QK),uF=m_.ald;uF&&(this.oZ=uF);gC.watchtime=
m_}var TH=rv(Ph.atrUrl);if(TH){var Km=Gs(TH);gC.atr=Km}var SU=rv(Ph.engageUrl);if(SU){var jt=Gs(SU);gC.engage=jt}this.IH=gC;if(Ph.promotedPlaybackTracking){var Q0=Ph.promotedPlaybackTracking;Q0.startUrls&&(this.lk=Q0.startUrls);Q0.firstQuartileUrls&&(this.G4=Q0.firstQuartileUrls);Q0.secondQuartileUrls&&(this.sb=Q0.secondQuartileUrls);Q0.thirdQuartileUrls&&(this.IU=Q0.thirdQuartileUrls);Q0.completeUrls&&(this.YG=Q0.completeUrls);Q0.engagedViewUrls&&(Q0.engagedViewUrls.length>1&&g.l4(new g.OI("There are more than one engaged_view_urls.")),
this.FH=Q0.engagedViewUrls[0])}}var fI=this.playerResponse.playerCueRanges;fI&&fI.length>0&&(this.cueRanges=fI);var jd=this.playerResponse.playerCueRangeSet;jd&&g.nz(this,jd);a:{var VM=this.playerResponse.adPlacements;if(VM)for(var Pc=g.T(VM),NX=Pc.next();!NX.done;NX=Pc.next()){var Wc=void 0,ix=void 0,s8=(Wc=NX.value.adPlacementRenderer)==null?void 0:(ix=Wc.renderer)==null?void 0:ix.videoAdTrackingRenderer;if(s8){var Lm=s8;break a}}Lm=null}var yM=Lm;Ph&&Ph.promotedPlaybackTracking&&yM&&g.l4(new g.OI("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
var dP;if(!(dP=yM))a:{for(var ux=g.T(this.playerResponse.adSlots||[]),yj=ux.next();!yj.done;yj=ux.next()){var Zp=g.A(yj.value,V2);if(Zp===void 0||!wgr(Zp))break;var UF=void 0,et=(UF=Zp.fulfillmentContent)==null?void 0:UF.fulfilledLayout,vc=g.A(et,uP);if(vc&&WL(vc)){dP=!0;break a}}dP=!1}dP&&(this.jC=!0);var O8=this.playerResponse.playerAds;if(O8)for(var iQ=D,Hm=g.T(O8),yv=Hm.next();!yv.done;yv=Hm.next()){var KM=yv.value;if(KM){var sr=KM.playerLegacyDesktopWatchAdsRenderer;if(sr){var Ym=sr.playerAdParams;
if(Ym){Ym.autoplay=="1"&&(this.cj=this.BB=!0);this.Sh=Ym.encodedAdSafetyReason||null;Ym.showContentThumbnail!==void 0&&(this.CZ=!!Ym.showContentThumbnail);iQ.enabled_engage_types=Ym.enabledEngageTypes;break}}}}var ht=this.playerResponse.playerConfig;if(ht){var ZF=ht.manifestlessWindowedLiveConfig;if(ZF){var eE=Number(ZF.minDvrSequence),Lo=Number(ZF.maxDvrSequence),FQ=Number(ZF.minDvrMediaTimeMs),uQ=Number(ZF.maxDvrMediaTimeMs),jf=Number(ZF.startWalltimeMs);eE&&(this.vO=eE);FQ&&(this.QF=FQ/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&
H1(this)&&(this.JP=FQ/1E3));Lo&&(this.v1=Lo);uQ&&(this.Kj=uQ/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&H1(this)&&(this.Sg=uQ/1E3));jf&&(this.Lj=jf/1E3);(eE||FQ)&&(Lo||uQ)&&(this.allowLiveDvr=this.isLivePlayback=this.Kh=!0,this.Ws=!1)}var T9=ht.daiConfig;if(T9){if(T9.enableDai){this.QA=!0;var si=T9.enableServerStitchedDai;si&&(this.enableServerStitchedDai=si);var Dj=T9.enablePreroll;Dj&&(this.Vg=Dj)}var Vw;if(T9.daiType==="DAI_TYPE_SS_DISABLED"||((Vw=T9.debugInfo)==null?0:Vw.isDisabledUnpluggedChannel))this.hL=
!0;T9.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.l1=!0);T9.allowUstreamerRequestAdconfig&&(this.zH=!0)}var t9=ht.audioConfig;if(t9){var v0=t9.loudnessDb;v0!=null&&(this.WO=v0);var n_m=t9.trackAbsoluteLoudnessLkfs;n_m!=null&&(this.XK=n_m);var E_$=t9.loudnessTargetLkfs;E_$!=null&&(this.loudnessTargetLkfs=E_$);t9.audioMuted&&(this.Ft=!0);t9.muteOnStart&&(this.JI=!0);var gq=t9.loudnessNormalizationConfig;if(gq){gq.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);gq.preserveStatefulLoudnessTarget&&
(this.preserveStatefulLoudnessTarget=!0);var g_w=gq.minimumLoudnessTargetLkfs;g_w!=null&&(this.minimumLoudnessTargetLkfs=g_w);var Bg7=gq.maxStatefulTimeThresholdSec;Bg7!=null&&(this.maxStatefulTimeThresholdSec=Bg7)}t9.playAudioOnly&&(this.PO=!0)}var U5h=ht.playbackEndConfig;if(U5h){var wjr=U5h.endSeconds,k$7=U5h.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(wjr&&(this.endSeconds=wjr),k$7&&(this.limitedPlaybackDurationInSeconds=k$7))}var JB=ht.fairPlayConfig;if(JB){var Jh7=JB.certificate;Jh7&&
(this.k9=KD(Jh7));var lZ4=Number(JB.keyRotationPeriodMs);lZ4>0&&(this.UI=lZ4);var IZ7=Number(JB.keyPrefetchMarginMs);IZ7>0&&(this.xb=IZ7)}var Kh=ht.playbackStartConfig;if(Kh){this.gx=Number(Kh.startSeconds);var RH4=Kh.liveUtcStartSeconds,U$$=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;RH4&&!U$$&&(this.liveUtcStartSeconds=Number(RH4));var Hkn=Kh.startPosition;if(Hkn){var H56=Hkn.utcTimeMillis;H56&&!U$$&&(this.liveUtcStartSeconds=Number(H56)*.001);var KW$=Hkn.streamTimeMillis;KW$&&(this.yn=
Number(KW$)*.001)}this.progressBarStartPosition=Kh.progressBarStartPosition;this.progressBarEndPosition=Kh.progressBarEndPosition}else{var K$m=ht.skippableSegmentsConfig;if(K$m){var jak=K$m.introSkipDurationMs;jak&&(this.SR=Number(jak)/1E3);var $$P=K$m.outroSkipDurationMs;$$P&&(this.ZX=Number($$P)/1E3)}}var jrP=ht.skippableIntroConfig;if(jrP){var eHw=Number(jrP.startMs),v_k=Number(jrP.endMs);isNaN(eHw)||isNaN(v_k)||(this.KI=eHw,this.HO=v_k)}var O59=ht.streamSelectionConfig;O59&&(this.dn=Number(O59.maxBitrate));
var YDh=ht.vrConfig;YDh&&(this.tJ=YDh.partialSpherical=="1");var BQ=ht.webDrmConfig;if(BQ){BQ.skipWidevine&&(this.xn=!0);var aZ6=BQ.widevineServiceCert;aZ6&&(this.gF=KD(aZ6));BQ.useCobaltWidevine&&(this.useCobaltWidevine=!0);BQ.startWithNoQualityConstraint&&(this.R4=!0)}var YG=ht.mediaCommonConfig;if(YG){var lB=YG.dynamicReadaheadConfig;if(lB){this.maxReadAheadMediaTimeMs=lB.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=lB.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=lB.readAheadGrowthRateMs||
NaN;var Ahm,pjh=YG==null?void 0:(Ahm=YG.mediaUstreamerRequestConfig)==null?void 0:Ahm.videoPlaybackUstreamerConfig;pjh&&(this.zm=KD(pjh));var $57=YG==null?void 0:YG.sabrContextUpdates;if($57&&$57.length>0)for(var x$h=g.T($57),e$6=x$h.next();!e$6.done;e$6=x$h.next()){var Wq=e$6.value;if(Wq.type&&Wq.value){var aGN={type:Wq.type,scope:Wq.scope,value:KD(Wq.value)||void 0,sendByDefault:Wq.sendByDefault};this.sabrContextUpdates.set(Wq.type,aGN)}}}var Xj6=YG.serverPlaybackStartConfig;Xj6&&(this.serverPlaybackStartConfig=
Xj6);YG.useServerDrivenAbr&&(this.YF=!0);var SDj=YG.requestPipeliningConfig;SDj&&(this.requestPipeliningConfig=SDj)}var rhr=ht.inlinePlaybackConfig;rhr&&(this.uc=!!rhr.showAudioControls);var Ix=ht.embeddedPlayerConfig;if(Ix){this.embeddedPlayerConfig=Ix;var vz6=Ix.embeddedPlayerMode;if(vz6){var G$m=this.G();G$m.QF=vz6;G$m.T=vz6==="EMBEDDED_PLAYER_MODE_PFL"}var M97=Ix.permissions;M97&&(this.allowImaMonetization=!!M97.allowImaMonetization)}var Rx=ht.webPlayerConfig;Rx&&(Rx.gatewayExperimentGroup&&(this.gatewayExperimentGroup=
Rx.gatewayExperimentGroup),Rx.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var aO=this.playerResponse.streamingData;if(aO){var Ok$=aO.formats;if(Ok$){for(var wq=[],ch4=g.T(Ok$),YGP=ch4.next();!YGP.done;YGP=ch4.next()){var ar6=YGP.value;wq.push(ar6.itag+"/"+ar6.width+"x"+ar6.height)}this.Cu=wq.join(",");wq=[];for(var DVu=g.T(Ok$),Ai7=DVu.next();!Ai7.done;Ai7=DVu.next()){var kr=Ai7.value,J5={itag:kr.itag,type:kr.mimeType,quality:kr.quality},QVw=kr.url;QVw&&(J5.url=QVw);var Ud=PW(kr),AlP=Ud.UL,
pdU=Ud.hw,xv2=Ud.s;Ud.HX&&(J5.url=AlP,J5.sp=pdU,J5.s=xv2);wq.push(g.CG(J5))}this.ZD=wq.join(",")}var pzw=aO.hlsFormats;if(pzw){var mVj=ht||null,H7={};if(mVj){var x57=mVj.audioPairingConfig;if(x57&&x57.pairs)for(var PO9=g.T(x57.pairs),Xzw=PO9.next();!Xzw.done;Xzw=PO9.next()){var WXw=Xzw.value,SGk=WXw.videoItag;H7[SGk]||(H7[SGk]=[]);H7[SGk].push(WXw.audioItag)}}for(var iF$={},sVh=g.T(pzw),ri7=sVh.next();!ri7.done;ri7=sVh.next()){var LX7=ri7.value;iF$[LX7.itag]=LX7.bitrate}for(var uln=[],dVj=g.T(pzw),
GQ7=dVj.next();!GQ7.done;GQ7=dVj.next()){var xm=GQ7.value,h9={itag:xm.itag,type:xm.mimeType,url:xm.url,bitrate:xm.bitrate,width:xm.width,height:xm.height,fps:xm.fps},KS=xm.audioTrack;if(KS){var tuk=KS.displayName;tuk&&(h9.name=tuk,h9.audio_track_id=KS.id,KS.audioIsDefault&&(h9.is_default="1"))}if(xm.drmFamilies){for(var zDh=[],bFm=g.T(xm.drmFamilies),MUu=bFm.next();!MUu.done;MUu=bFm.next())zDh.push(A7[MUu.value]);h9.drm_families=zDh.join(",")}var jW=H7[xm.itag];if(jW&&jW.length){h9.audio_itag=jW.join(",");
var qn4=iF$[jW[0]];qn4&&(h9.bitrate+=qn4)}var COm=DGj(xm);COm&&(h9.eotf=COm);xm.audioChannels&&(h9.audio_channels=xm.audioChannels);uln.push(g.CG(h9))}this.hlsFormats=uln.join(",")}var ci$=aO.licenseInfos;if(ci$&&ci$.length>0){for(var oxw={},fJ$=g.T(ci$),DIk=fJ$.next();!DIk.done;DIk=fJ$.next()){var Vu7=DIk.value,NYP=Vu7.drmFamily,yp7=Vu7.url;NYP&&yp7&&(oxw[A7[NYP]]=yp7)}this.Ln=oxw}var ZF9=aO.drmParams;ZF9&&(this.drmParams=ZF9);var FXP=aO.dashManifestUrl;FXP&&(this.pj=g.oz(FXP,{cpn:this.clientPlaybackNonce}));
var TY4=aO.hlsManifestUrl;TY4&&(this.hlsvp=TY4);var hDk=aO.probeUrl;hDk&&(this.probeUrl=p8(g.oz(hDk,{cpn:this.clientPlaybackNonce})));var nxu=aO.serverAbrStreamingUrl;nxu&&(this.pU=new g.Gn(nxu,!0))}var Ex4=this.playerResponse.trackingParams;Ex4&&(this.u0=Ex4);var Z_=this.playerResponse.videoDetails;if(Z_){var no=D,Q7P=Z_.videoId;Q7P&&(this.videoId=Q7P,no.video_id||(no.video_id=Q7P));var mI7=Z_.title;mI7&&(this.title=mI7,no.title||(no.title=mI7));var P29=Z_.lengthSeconds;P29&&(this.lengthSeconds=
Number(P29),no.length_seconds||(no.length_seconds=P29));var gx9=Z_.keywords;gx9&&(this.keywords=mrm(gx9));var Wz7=Z_.channelId;Wz7&&(this.M4=Wz7,no.ucid||(no.ucid=Wz7));var BYu=Z_.viewCount;BYu&&(this.rawViewCount=Number(BYu));var iI9=Z_.author;iI9&&(this.author=iI9,no.author||(no.author=iI9));var wOh=Z_.shortDescription;wOh&&(this.shortDescription=wOh);var kDu=Z_.isCrawlable;kDu&&(this.isListed=kDu);var Jp$=Z_.musicVideoType;Jp$&&(this.musicVideoType=Jp$);var s77=Z_.isLive;s77!=null&&(this.isLivePlayback=
s77);if(s77||Z_.isUpcoming)this.isPremiere=!Z_.isLiveContent;var lJP=Z_.thumbnail;lJP&&(this.Z=SP(lJP));var IJ$=Z_.isExternallyHostedPodcast;IJ$&&(this.isExternallyHostedPodcast=IJ$);var Lzu=Z_.viewerLivestreamJoinPosition;if(Lzu==null?0:Lzu.utcTimeMillis)this.b8=IG(Lzu.utcTimeMillis);var RDm=ht||null,urm=D;Z_.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Z_.isUpcoming&&(this.isUpcoming=!0);if(Z_.isPostLiveDvr){this.Ws=!0;var UVn=Z_.latencyClass;UVn&&(this.latencyClass=f0V[UVn]||"UNKNOWN");
Z_.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var dI6=!1;this.oy?(this.allowLiveDvr=gJ()?!0:pp&&MH<5?!1:!0,this.isLivePlayback=!0):Z_.isLive?(urm.livestream="1",this.allowLiveDvr=Z_.isLiveDvrEnabled?gJ()?!0:pp&&MH<5?!1:!0:!1,this.partnerId=27,dI6=!0):Z_.isUpcoming&&(dI6=!0);if(Z_.isLive||this.oy){Z_.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var HFh=Z_.latencyClass;HFh&&(this.latencyClass=f0V[HFh]||"UNKNOWN");var KXh=Z_.liveChunkReadahead;KXh&&(this.liveChunkReadahead=
KXh);var ji=RDm&&RDm.livePlayerConfig;if(ji){ji.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);ji.hasSubfragmentedWebm&&(this.pB=!0);ji.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var jVk=ji.liveExperimentalContentId;jVk&&(this.liveExperimentalContentId=Number(jVk));var $Vr=ji.isLiveHeadPlayable;this.V("html5_live_head_playable")&&$Vr!=null&&(this.isLiveHeadPlayable=$Vr)}}dI6&&(this.isLivePlayback=!0,urm.adformat&&urm.adformat.split("_")[1]!=="8"||this.j.push("heartbeat"))}var eD7=
Z_.isPrivate;eD7!==void 0&&(this.isPrivate=cd(this.isPrivate,eD7))}if(S){var vx6=Z_||null,OFn=!1,$4=S.errorScreen;OFn=$4&&($4.playerLegacyDesktopYpcOfferRenderer||$4.playerLegacyDesktopYpcTrailerRenderer||$4.ypcTrailerRenderer)?!0:vx6&&vx6.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(S.status);if(!OFn){this.errorCode=zin(S.errorCode)||"auth";var $U=$4&&$4.playerErrorMessageRenderer;if($U){this.playerErrorMessageRenderer=$U;var Ynr=$U.reason;Ynr&&(this.errorReason=g.qC(Ynr));
var tdm=$U.subreason;tdm&&(this.vr=g.qC(tdm),this.qh=tdm)}else this.errorReason=S.reason||null;var zt6=S.status;if(zt6==="LOGIN_REQUIRED")this.errorDetail="1";else if(zt6==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(zt6==="AGE_CHECK_REQUIRED"){var aJ_=S.errorScreen,Apm=aJ_&&aJ_.playerKavRenderer;this.errorDetail=Apm&&Apm.kavUrl?"4":"3"}else this.errorDetail=S.isBlockedInRestrictedMode?"5":"0"}}var pOu=this.playerResponse.interstitialPods;pOu&&grn(this,pOu);this.x9&&this.eventId&&(this.x9=
Qk(this.x9,{ei:this.eventId}));var bI$=this.playerResponse.captions;if(bI$&&bI$.playerCaptionsTracklistRenderer)a:{var Er=bI$.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Er.captionTracks)for(var xV4=g.T(Er.captionTracks),qNh=xV4.next();!qNh.done;qNh=xV4.next()){var gW=qNh.value,XO7=Drh(gW.baseUrl);if(!XO7)break a;var C2k={is_translateable:!!gW.isTranslatable,languageCode:gW.languageCode,languageName:gW.name&&g.qC(gW.name),url:XO7,vss_id:gW.vssId,kind:gW.kind};C2k.name=gW.trackName;C2k.displayName=
gW.name&&g.qC(gW.name);this.captionTracks.push(new g.a8(C2k))}this.uh=Er.audioTracks||[];this.xR=Er.defaultAudioTrackIndex||0;this.hH=[];if(Er.translationLanguages)for(var Snm=g.T(Er.translationLanguages),o2m=Snm.next();!o2m.done;o2m=Snm.next()){var ei=o2m.value,iE={};iE.languageCode=ei.languageCode;iE.languageName=g.qC(ei.languageName);if(ei.translationSourceTrackIndices){iE.translationSourceTrackIndices=[];for(var rp9=g.T(ei.translationSourceTrackIndices),f0r=rp9.next();!f0r.done;f0r=rp9.next())iE.translationSourceTrackIndices.push(f0r.value)}if(ei.excludeAudioTrackIndices){iE.excludeAudioTrackIndices=
[];for(var GD7=g.T(ei.excludeAudioTrackIndices),Vd9=GD7.next();!Vd9.done;Vd9=GD7.next())iE.excludeAudioTrackIndices.push(Vd9.value)}this.hH.push(iE)}this.aU=[];if(Er.defaultTranslationSourceTrackIndices)for(var Mun=g.T(Er.defaultTranslationSourceTrackIndices),NeP=Mun.next();!NeP.done;NeP=Mun.next())this.aU.push(NeP.value);this.gQ=!!Er.contribute&&!!Er.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.gx=Number(this.clipConfig.startTimeMs)*
.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&wQ7(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var cp9;this.compositeLiveIngestionOffsetToken=(cp9=this.playerResponse.playbackTracking)==null?void 0:cp9.compositeLiveIngestionOffsetToken;var Dbm;this.compositeLiveStatusToken=(Dbm=this.playerResponse.playbackTracking)==null?void 0:
Dbm.compositeLiveStatusToken;this.V("html5_fill_default_mosaic_audio_track_id")&&ov(this)&&(this.nh.l0=Aw$(this));if(this.V("html5_enable_player_response_driven_playback_rate_clamping")){var Qeu,mbr,P9$=(Qeu=this.playerResponse.playerConfig)==null?void 0:(mbr=Qeu.granularVariableSpeedConfig)==null?void 0:mbr.minimumPlaybackRate,Wc7,i3h,sek=(Wc7=this.playerResponse.playerConfig)==null?void 0:(i3h=Wc7.granularVariableSpeedConfig)==null?void 0:i3h.maximumPlaybackRate;P9$&&sek&&(this.Rx=P9$/100,this.BC=
sek/100)}}TM(this,D);D.queue_info&&(this.queueInfo=D.queue_info);var Lc9=D.hlsdvr;Lc9!=null&&(this.allowLiveDvr=Number(Lc9)===1?gJ()?!0:pp&&MH<5?!1:!0:!1);this.adQueryId=D.ad_query_id||null;this.Sh||(this.Sh=D.encoded_ad_safety_reason||null);this.Ft=cd(this.Ft,D.infringe||D.muted);this.cA=D.authkey;this.cw=D.authuser;this.mutedAutoplay=cd(this.mutedAutoplay,D&&D.playmuted);this.mutedAutoplayDurationMode=Qx(this.mutedAutoplayDurationMode,D&&D.muted_autoplay_duration_mode);this.D8=cd(this.D8,D&&D.mutedautoplay);
var eW=D.length_seconds;eW&&(this.lengthSeconds=typeof eW==="string"?IG(eW):eW);if(this.isAd()||this.Co||!g.sI(g.qS(this.nh)))this.endSeconds=Qx(this.endSeconds,this.ZX||D.end||D.endSeconds);else{var Xdk=g.qS(this.nh),v7=this.lengthSeconds;switch(Xdk){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":v7>30?this.limitedPlaybackDurationInSeconds=30:v7<30&&v7>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=
v7*.2}}this.u0=m9(this.u0,D.itct);this.RD=cd(this.RD,D.is_live_destination);this.isLivePlayback=cd(this.isLivePlayback,D.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.VX();D.isUpcoming&&(this.isUpcoming=cd(this.isUpcoming,D.isUpcoming));this.Ws=cd(this.Ws,D.post_live_playback);this.Kh&&(this.Ws=!1);this.isMdxPlayback=cd(this.isMdxPlayback,D.mdx);var Od=D.mdx_control_mode;Od&&(this.mdxControlMode=typeof Od==="number"?Od:IG(Od));this.isInlinePlaybackNoAd=cd(this.isInlinePlaybackNoAd,
D.is_inline_playback_no_ad);this.cY=Qx(this.cY,D.reload_count);this.reloadReason=m9(this.reloadReason,D.reload_reason);this.CZ=cd(this.CZ,D.show_content_thumbnail);this.cycToken=D.cyc||null;var uW7=XG(D);Object.keys(uW7).length>0&&(this.Z=uW7);this.t0=m9(this.t0,D.vvt);this.mdxEnvironment=m9(this.mdxEnvironment,D.mdx_environment);D.source_container_playlist_id&&(this.sourceContainerPlaylistId=D.source_container_playlist_id);D.serialized_mdx_metadata&&(this.serializedMdxMetadata=D.serialized_mdx_metadata);
this.tv0=D.osig;this.eventId||(this.eventId=D.eventid);this.osid||(this.osid=D.osid);this.playlistId=m9(this.playlistId,D.list);D.index&&(this.playlistIndex=this.playlistIndex===void 0?Qx(0,D.index):Qx(this.playlistIndex,D.index));this.Rp=D.pyv_view_beacon_url;this.n3=D.pyv_quartile25_beacon_url;this.NU=D.pyv_quartile50_beacon_url;this.H9=D.pyv_quartile75_beacon_url;this.Dl=D.pyv_quartile100_beacon_url;var dbj=D.session_data;!this.O2&&dbj&&(this.O2=SE(dbj,"&").feature);this.isFling=Qx(this.isFling?
1:0,D.is_fling)===1;this.vnd=Qx(this.vnd,D.vnd);this.forceAdsUrl=m9(this.forceAdsUrl,D.force_ads_url);this.Rc=m9(this.Rc,D.ctrl);this.sZ=m9(this.sZ,D.ytr);this.zQ=D.ytrcc;this.J5=D.ytrexp;this.gp=D.ytrext;this.A8=m9(this.A8,D.adformat);this.fD=m9(this.fD,D.attrib);this.slotPosition=Qx(this.slotPosition,D.slot_pos);this.breakType=D.break_type;this.e9=cd(this.e9,D.ssrt);this.videoId=W5(D)||this.videoId;this.N=m9(this.N,D.vss_credentials_token);this.oz=m9(this.oz,D.vss_credentials_token_type);this.PO=
cd(this.PO,D.audio_only);this.Y9=cd(this.Y9,D.aac_high);this.c5=cd(this.c5,D.prefer_low_quality_audio);this.J2=cd(this.J2,D.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?D.qoe_cat&&(this.RH=this.RH.concat(D.qoe_cat.split(","))):this.Ad=m9(this.Ad,D.qoe_cat);this.vE=cd(this.vE,D.download_media);var tv4=D.prefer_gapless;this.U=tv4!=null?cd(this.U,tv4):this.U?this.U:this.nh.preferGapless&&this.nh.supportsGaplessShorts();PJr(this.playerResponse)&&this.j.push("ad");var z9w=D.adaptive_fmts;
z9w&&(this.adaptiveFormats=z9w,this.dc("adpfmts",{},!0));var b3r=D.allow_embed;b3r&&(this.allowEmbed=Number(b3r)===1);var qTj=D.backgroundable;qTj&&(this.backgroundable=Number(qTj)===1);var C96=D.autonav;C96&&(this.isAutonav=Number(C96)===1);var oQP=D.autoplay;oQP&&(this.BB=this.cj=Number(oQP)===1);var f76=D.iv_load_policy;f76&&(this.annotationsLoadPolicy=D5(this.annotationsLoadPolicy,f76,Ce));var Vv9=D.cc_lang_pref;Vv9&&(this.captionsLanguagePreference=m9(Vv9,this.captionsLanguagePreference));var NF$=
D.cc_load_policy;NF$&&(this.rz=D5(this.rz,NF$,Ce));var yXr;this.deviceCaptionsOn=(yXr=D.device_captions_on)!=null?yXr:void 0;var Z34;this.gN=(Z34=D.device_captions_lang_pref)!=null?Z34:"";var Fc7;this.s0=(Fc7=D.viewer_selected_caption_langs)!=null?Fc7:[];var TF7=D.cached_load;TF7&&(this.jZ=cd(this.jZ,TF7));if(D.dash==="0"||D.dash===0||D.dash===!1)this.E0=!0;var h9P=D.dashmpd;h9P&&(this.pj=g.oz(h9P,{cpn:this.clientPlaybackNonce}));var nQ_=D.delay;nQ_&&(this.gB=IG(nQ_));var yWr=this.ZX||D.end;if(this.PY?
yWr!=null:yWr!=void 0)this.clipEnd=Qx(this.clipEnd,yWr);var EQr=D.fmt_list;EQr&&(this.Cu=EQr);D.heartbeat_preroll&&this.j.push("heartbeat");this.zB=-Math.floor(Math.random()*10);this.m7=-Math.floor(Math.random()*40);var gQ_=D.is_listed;gQ_&&(this.isListed=cd(this.isListed,gQ_));var BF9=D.is_private;BF9&&(this.isPrivate=cd(this.isPrivate,BF9));var wMj=D.is_dni;wMj&&(this.RI=cd(this.RI,wMj));var ky$=D.dni_color;ky$&&(this.Wy=m9(this.Wy,ky$));var JXj=D.pipable;JXj&&(this.pipable=cd(this.pipable,JXj));
this.W9=(this.O4=this.pipable&&this.nh.C1)&&!this.nh.showMiniplayerButton;var l77=D.paid_content_overlay_duration_ms;l77&&(this.paidContentOverlayDurationMs=IG(l77));var I7P=D.paid_content_overlay_text;I7P&&(this.paidContentOverlayText=I7P);var R99=D.url_encoded_fmt_stream_map;R99&&(this.ZD=R99);var Ubj=D.hls_formats;Ubj&&(this.hlsFormats=Ubj);var H3n=D.hlsvp;H3n&&(this.hlsvp=H3n);var YU=D.live_start_walltime;YU&&(this.sIz=typeof YU==="number"?YU:IG(YU));var ax=D.live_manifest_duration;ax&&(this.z7=
typeof ax==="number"?ax:IG(ax));var Kcw=D.player_params;Kcw&&(this.playerParams=Kcw);var je6=D.partnerid;je6&&(this.partnerId=Qx(this.partnerId,je6));var $bh=D.probe_url;$bh&&(this.probeUrl=p8(g.oz($bh,{cpn:this.clientPlaybackNonce})));var ZIh=D.pyv_billable_url;ZIh&&C4_(ZIh)&&(this.FH=ZIh);var Fz7=D.pyv_conv_url;Fz7&&C4_(Fz7)&&(this.K3=Fz7);PPk(this,D);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.gx||this.SR||D.start||D.startSeconds)&&this.dc("lss",
{css:this.startSeconds,pcss:this.gx,iss:this.SR,ps:D.start||void 0,pss:D.startSeconds||void 0}):this.hU=this.startSeconds=Qx(this.startSeconds,this.gx||this.SR||D.start||D.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var e99=D.live_utc_start;if(e99!=null)this.liveUtcStartSeconds=Number(e99);else{var Te7=this.startSeconds;Te7&&isFinite(Te7)&&Te7>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var vQn=D.utc_start_millis;
vQn&&(this.liveUtcStartSeconds=Number(vQn)*.001)}var O3r=D.stream_time_start_millis;O3r&&(this.yn=Number(O3r)*.001);var ht4=this.SR||D.start;(this.PY?ht4==null||Number(D.resume)===1:ht4==void 0||D.resume=="1")||this.isLivePlayback||(this.clipStart=Qx(this.clipStart,ht4));var YT$=D.url_encoded_third_party_media;YT$&&(this.Ig=Me(YT$));var n2_=D.ypc_offer_button_formatted_text;if(n2_){var a79=JSON.parse(n2_);this.M9=a79!=null?a79:null;this.d_=n2_}var AX6=D.ypc_offer_button_text;AX6&&(this.qE=AX6);var pM6=
D.ypc_offer_description;pM6&&(this.Nz=pM6);var xbm=D.ypc_offer_headline;xbm&&(this.kU=xbm);var XM4=D.ypc_full_video_message;XM4&&(this.K0=XM4);var ST7=D.ypc_offer_id;ST7&&(this.Dj=ST7);var rXn=D.ypc_buy_url;rXn&&(this.JG=rXn);var Gy9=D.ypc_item_thumbnail;Gy9&&(this.xU=Gy9);var Mvj=D.ypc_item_title;Mvj&&(this.DB=Mvj);var cXn=D.ypc_item_url;cXn&&(this.Us=cXn);var DNk=D.ypc_vid;DNk&&(this.sM=DNk);D.ypc_overlay_timeout&&(this.kI=Number(D.ypc_overlay_timeout));var Qxr=D.ypc_trailer_player_vars;Qxr&&(this.nZ=
GG(Qxr));var mN7=D.ypc_original_itct;mN7&&(this.z$c=mN7);this.M4=m9(this.M4,D.ucid);this.S2=D.storyboard_spec||null;this.Lb=D.live_storyboard_spec||null;this.Wt=D.iv_endscreen_url||null;this.Xn=cd(this.Xn,D.ypc_module);this.Kd=cd(this.Kd,D.ypc_clickwrap_module);this.Xn&&this.j.push("ypc");this.Kd&&this.j.push("ypc_clickwrap");this.vC={video_id:D.video_id,eventid:D.eventid,cbrand:D.cbrand,cbr:D.cbr,cbrver:D.cbrver,c:D.c,cver:D.cver,ctheme:D.ctheme,cplayer:D.cplayer,cmodel:D.cmodel,cnetwork:D.cnetwork,
cos:D.cos,cosver:D.cosver,cplatform:D.cplatform,user_age:D.user_age,user_display_image:D.user_display_image,user_display_name:D.user_display_name,user_gender:D.user_gender,csi_page_type:D.csi_page_type,csi_service_name:D.csi_service_name,enablecsi:D.enablecsi,enabled_engage_types:D.enabled_engage_types};c5h(this,D);var PBj=D.cotn;PBj&&(this.cotn=PBj);if(fe7(this))$A(this)&&(this.isLivePlayback&&this.pj&&(this.Zw=!0),this.k9&&(this.Cm=!0));else if(V5w(this))this.Zw=!0;else{var WR6,iS4,sx7=((WR6=this.playerResponse)==
null?void 0:(iS4=WR6.streamingData)==null?void 0:iS4.adaptiveFormats)||[];if(sx7.length>0)var lj=oo6(this,sx7);else{this.V("html5_log_pafmtstr_ctmp")&&this.dc("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var LRP=this.adaptiveFormats;if(LRP&&!$A(this)){this.nh.J.T&&(WA=!0);var vg=pz(LRP),E2$=this.Ln,uUu=this.lengthSeconds,S2T=this.isLivePlayback,IZ=this.Ws,O$=this.nh,rlk=oSw(vg);if(S2T||IZ){var dNw=O$==null?void 0:O$.experiments,H3=new YF("",dNw,!0);H3.VX=!0;H3.isManifestless=!0;H3.C=!IZ;H3.isLive=
!IZ;H3.Ws=IZ;for(var tW_=g.T(vg),g2m=tW_.next();!g2m.done;g2m=tW_.next()){var Y4=g2m.value,zIu=xF(Y4,E2$),sk=X_(Y4.url,Y4.sp,Y4.s),bSj=sk.get("id");bSj&&bSj.includes("%7E")&&(H3.TO=!0);var qdn=void 0,GX2=(qdn=dNw)==null?void 0:qdn.Mv("html5_max_known_end_time_rebase"),M8U=Number(Y4.target_duration_sec)||5,cl4=Number(Y4.max_dvr_duration_sec)||14400,CBj=Number(sk.get("mindsq")||sk.get("min_sq")||"0"),oUm=Number(sk.get("maxdsq")||sk.get("max_sq")||"0")||Infinity;H3.vO=H3.vO||CBj;H3.v1=H3.v1||oUm;var DZ4=
!WE(zIu.mimeType);sk&&es(H3,new h7(sk,zIu,{EY:M8U,bU:DZ4,bO:cl4,vO:CBj,v1:oUm,cg:300,Ws:IZ,mV:GX2}))}var fLr=H3}else{if(rlk==="FORMAT_STREAM_TYPE_OTF"){var AB=uUu;AB=AB===void 0?0:AB;var a9=new YF("",O$==null?void 0:O$.experiments,!1);a9.duration=AB||0;for(var VW6=g.T(vg),Bej=VW6.next();!Bej.done;Bej=VW6.next()){var AP=Bej.value,wpk=xF(AP,E2$,a9.duration),kg7=X_(AP.url,AP.sp,AP.s);if(kg7)if(wpk.streamType==="FORMAT_STREAM_TYPE_OTF")es(a9,new nf(kg7,wpk,"sq/0"));else{var QSv=mw(AP.init),mZT=mw(AP.index);
es(a9,new Kf(kg7,wpk,QSv,mZT))}}a9.isOtf=!0;var NG_=a9}else{var pS=uUu;pS=pS===void 0?0:pS;var xU=new YF("",O$==null?void 0:O$.experiments,!1);xU.duration=pS||0;for(var yBm=g.T(vg),JWu=yBm.next();!JWu.done;JWu=yBm.next()){var ph=JWu.value,Pzh=xF(ph,E2$,xU.duration),W9P=mw(ph.init),iUV=mw(ph.index),ZS7=X_(ph.url,ph.sp,ph.s);ZS7&&es(xU,new Kf(ZS7,Pzh,W9P,iUV))}NG_=xU}fLr=NG_}var FRu=fLr;if(vg.length>0){var TGw=vg[0];if(this.G().playerStyle==="hangouts-meet"&&TGw.url){var sSU=g.c0(TGw.url);this.SM=this.SM||
Number(sSU.expire)}}var L9v=this.isLivePlayback&&!this.Ws&&!this.Kh&&!this.isPremiere;this.V("html5_live_head_playable")&&(!ej(this)&&L9v&&this.dc("missingLiveHeadPlayable",{}),this.nh.TO==="yt"&&(FRu.k9=!0));lj=FRu}else lj=null;this.dc("pafmts",{isManifestFilled:!!lj})}if(lj){YA(this,lj);var hI6=!0}else hI6=!1;hI6?this.enableServerStitchedDai=this.enableServerStitchedDai&&v1(this):this.pj&&(this.nh.TO==="yt"&&this.VX()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?
this.dc("deprecateMflFallback",{}):this.Zw=!0)}var l0w=D.adpings;l0w&&(this.yN=l0w?GG(l0w):null);var nU_=D.feature;nU_&&(this.Km=nU_);var EUj=D.referrer;EUj&&(this.referrer=EUj);this.clientScreenNonce=m9(this.clientScreenNonce,D.csn);this.ao=Qx(this.ao,D.root_ve_type);this.Ku=Qx(this.Ku,D.kids_age_up_mode);this.PY||D.kids_app_info==void 0||(this.kidsAppInfo=D.kids_app_info);this.PY&&D.kids_app_info!=null&&(this.kidsAppInfo=D.kids_app_info);this.Yx=cd(this.Yx,D.upg_content_filter_mode);this.unpluggedFilterModeType=
Qx(this.unpluggedFilterModeType,D.unplugged_filter_mode_type);var gU7=D.unplugged_location_info;gU7&&(this.g2=gU7);var BGr=D.unplugged_partner_opt_out;BGr&&(this.K4=m9("",BGr));this.yx=cd(this.yx,D.disable_watch_next);this.gj=m9(this.gj,D.internal_ip_override);this.Bm=!!D.is_yto_interstitial;(this.interstitials.length||this.Bm)&&this.j.push("yto");var w77=D.k5;w77&&(this.k5=w77);this.TO=m9(this.TO,D.csi_timer);D.watchUrl&&(this.watchUrl=D.watchUrl);var LP=D.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&
LP&&CjP(this,LP);if(LP==null?0:LP.ustreamerConfig)this.bx=KD(LP.ustreamerConfig);var kLn,JB9,lLw=LP==null?void 0:(kLn=LP.loggingContext)==null?void 0:(JB9=kLn.qoeLoggingContext)==null?void 0:JB9.serializedContextData;lLw&&(this.kE0=lLw);g.W8(this.nh)&&this.nh.gF&&(this.embedsRct=m9(this.embedsRct,D.rct),this.embedsRctn=m9(this.embedsRctn,D.rctn));D.embed_config&&(this.eZ=D.embed_config);this.Tb=this.Tb||!!D.pause_at_start;D.default_active_source_video_id&&(this.defaultActiveSourceVideoId=D.default_active_source_video_id)};
g.y.G=function(){return this.nh};
g.y.V=function(D){return this.nh.V(D)};
g.y.I_=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.y.hasSupportedAudio51Tracks=function(){var D;return!((D=this.gi)==null||!D.jD)};
g.y.getUserAudio51Preference=function(){var D=1;gv(this.nh)&&this.V("html5_ytv_surround_toggle_default_off")?D=0:g.hf(this.nh)&&this.isLivePlayback&&this.qJ()&&(D=0);var Q;return(Q=g.kt("yt-player-audio51"))!=null?Q:D};
g.y.QI=function(){this.VF()||(this.S.C||this.S.unsubscribe("refresh",this.QI,this),this.bd(-1))};
g.y.bd=function(D){if(!this.isLivePlayback||!this.J||this.J.flavor!=="fairplay"){var Q=Vm9(this.S,this.gb);if(Q.length>0){for(var m=g.T(Q),P=m.next();!P.done;P=m.next())P=P.value,P.startSecs=Math.max(P.startSecs,this.TY()),this.V("html5_cuepoint_identifier_logging")&&P.event==="start"&&this.dc("cuepoint",{pubCue:P.identifier,segNum:D});this.publish("cuepointupdated",Q,D);this.gb+=Q.length;if(v1(this)&&this.nh.xl())for(Q=g.T(Q),m=Q.next();!m.done;m=Q.next())m=m.value,this.dc("cuepoint",{segNum:D,event:m.event,
startSecs:m.startSecs,id:m.identifier.slice(-16)}),m.event==="start"&&(m=m.startSecs,this.n4.start=this.kB,this.n4.end=m+3)}}};
g.y.Fq=function(){this.VF()||(this.loading=!1,this.publish("dataloaded"))};
g.y.qJ=function(){return this.I2!==void 0?this.I2:this.I2=!!this.Ln||!!this.S&&aP(this.S)};
g.y.X8=function(D){var Q=this;if(this.VF())return gj();this.Ze=this.GO=this.T=null;Tv(this,"html5_high_res_logging_always")&&(this.nh.WO=!0);return ZEk(this,D).then(void 0,function(){return Ts9(Q,D)}).then(void 0,function(){return hv7(Q)}).then(void 0,function(){return Eou(Q)})};
g.y.b1=function(D){this.T=D;Fe6(this,this.T.getAvailableAudioTracks());if(this.T){D=g.T(this.T.videoInfos);for(var Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var m=Q.containerType;m!==0&&(this.BE[m]=Q.id)}}D=this.getAvailableAudioTracks();D=D.concat(this.yL);for(Q=0;Q<this.uh.length;Q++){m=this.uh[Q];for(var P=0;P<D.length;P++){var W=D[P],L=W.WY.id===m.audioTrackId;if(W.WY.isDefault&&Q===this.xR||L){if(m.captionTrackIndices)for(L=0;L<m.captionTrackIndices.length;L++)W.captionTracks[L]=this.captionTracks[m.captionTrackIndices[L]];
m.defaultCaptionTrackIndex!==void 0&&(W.T=this.captionTracks[m.defaultCaptionTrackIndex]);m.forcedCaptionTrackIndex!==void 0&&(W.S=this.captionTracks[m.forcedCaptionTrackIndex]);W.C=m.visibility||"UNKNOWN";W.captionsInitialState=m.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(this.J&&this.T&&this.T.videoInfos&&!(this.T.videoInfos.length<=0)&&(D=c6(this.T.videoInfos[0]),this.J.flavor==="fairplay"!==D))for(Q=g.T(this.Br),m=Q.next();!m.done;m=Q.next())if(m=m.value,D===(m.flavor==="fairplay")){this.J=
m;break}};
g.y.tf=function(){if(this.cotn)return null;var D=g.f8(this.nh)||this.V("web_l3_storyboard");if(!this.fF)if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards,m=Q.playerStoryboardSpecRenderer;m&&m.spec?this.fF=new fz(m.spec,this.lengthSeconds,void 0,!1,D):(Q=Q.playerLiveStoryboardSpecRenderer)&&Q.spec&&this.S&&(m=Rr4(this.S.S).index)&&(this.fF=new N4(Q.spec,this.S.isLive,m,D))}else this.S2?this.fF=new fz(this.S2,this.lengthSeconds,void 0,!1,D):this.Lb&&this.S&&
(Q=Rr4(this.S.S).index)&&(this.fF=new N4(this.Lb,this.S.isLive,Q,D));return this.fF};
g.y.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var D=this.playerResponse.storyboards;return(D=D.playerStoryboardSpecRenderer||D.playerLiveStoryboardSpecRenderer)&&D.spec||null}return this.S2||this.Lb};
g.y.Bs=function(){return this.S&&!isNaN(this.S.Bs())?this.S.Bs():v1(this)?0:this.lengthSeconds};
g.y.TY=function(){return this.S&&!isNaN(this.S.TY())?this.S.TY():0};
g.y.getPlaylistSequenceForTime=function(D){if(this.S&&this.C){var Q=this.S.S[this.C.id];if(!Q)return null;var m=Q.index.JY(D);Q=Q.index.getStartTime(m);return{sequence:m,elapsed:Math.floor((D-Q)*1E3)}}return null};
g.y.EC=function(){return!this.VF()&&!(!this.videoId&&!this.Ig)};
g.y.rC=function(){var D,Q,m;return!!this.adaptiveFormats||!!((D=this.playerResponse)==null?0:(Q=D.streamingData)==null?0:(m=Q.adaptiveFormats)==null?0:m.length)};
g.y.isLoaded=function(){return Fi(this)&&!this.Zw&&!this.Cm};
g.y.vB=function(D){D||(D="hqdefault.jpg");var Q=this.Z[D];return Q||this.nh.Iy||D==="pop1.jpg"||D==="pop2.jpg"||D==="sddefault.jpg"||D==="hq720.jpg"||D==="maxresdefault.jpg"?Q:FG(this.nh,this.videoId,D)};
g.y.VX=function(){return this.isLivePlayback||this.Ws||this.Kh||!(!this.liveUtcStartSeconds||!this.z7)};
g.y.isOtf=function(){return!!this.S&&(this.S.isOtf||!this.Ws&&!this.isLivePlayback&&this.S.C)};
g.y.getAvailableAudioTracks=function(){return this.T?this.T.getAvailableAudioTracks().length>0?this.T.getAvailableAudioTracks():this.jP||[]:[]};
g.y.getAudioTrack=function(){var D=this;if(this.B&&!c6(this.B)){var Q=g.y4(this.getAvailableAudioTracks(),function(W){return W.id===D.B.id}),m;
if(!Q&&((m=this.B.WY)==null?0:m.id)){var P=this.B.WY.id;Q=g.y4(this.getAvailableAudioTracks(),function(W){return W.WY.id===P});
this.dc("nat",{id:this.B.id,track:!!Q})}return Q||this.yL}if(this.jP){if(!this.vy)for(Q=g.T(this.jP),m=Q.next();!m.done;m=Q.next())if(m=m.value,m.WY.getIsDefault()){this.vy=m;break}return this.vy||this.yL}return this.yL};
g.y.getPlayerResponse=function(){return this.playerResponse};
g.y.getWatchNextResponse=function(){return this.wc};
g.y.getHeartbeatResponse=function(){return this.TQ};
g.y.rT=function(){return this.watchUrl?this.watchUrl:this.nh.getVideoUrl(this.videoId)};
g.y.F3=function(){return!!this.S&&(LLP(this.S)||ub4(this.S)||dG9(this.S))};
g.y.getEmbeddedPlayerResponse=function(){return this.W1};
g.y.LU=function(){return(this.eventLabel||this.nh.t0)==="shortspage"};
g.y.isAd=function(){return!!this.adFormat};
g.y.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.y.xB=function(){var D,Q,m;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((D=this.playerResponse)==null?0:(Q=D.playerConfig)==null?0:(m=Q.daiConfig)==null?0:m.ssaEnabledPlayback)};
g.y.oa=function(){return this.O$};
g.y.Cg=function(){return this.Xn||this.M5};
g.y.AI=function(){return Tv(this,"html5_samsung_vp9_live")};
g.y.dc=function(D,Q,m){this.publish("ctmp",D,Q,m)};
g.y.Ia=function(D,Q,m){this.publish("ctmpstr",D,Q,m)};
g.y.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.y.getGetAdBreakContext=function(D,Q){D=D===void 0?NaN:D;Q=Q===void 0?NaN:Q;var m={isSabr:H1(this)},P,W=(P=this.getHeartbeatResponse())==null?void 0:P.adBreakHeartbeatParams;W&&(m.adBreakHeartbeatParams=W);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.S&&!isNaN(D)&&!isNaN(Q)){Q=D-Q;for(var L in this.S.S)if(P=this.S.S[L],P.info.ri()||P.info.ZQ())if(P=P.index,P.isLoaded()){L=P.JY(Q);P=P.hD(L)+Q-P.getStartTime(L);this.dc("gabc",{t:D.toFixed(3),mt:Q.toFixed(3),sg:L,igt:P.toFixed(3)});
m.livePlaybackPosition={utcTimeMillis:""+(P*1E3).toFixed(0)};break}}return m};
g.y.isEmbedsShortsMode=function(D,Q){if(!g.W8(this.nh)||(this.nh.QF||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Q)return!1;var m,P;return!!(((m=this.embeddedPlayerConfig)==null?0:(P=m.embeddedPlayerFlags)==null?0:P.isShortsExperienceEligible)&&D.width<=D.height)};
g.y.Bq=function(){g.iR.prototype.Bq.call(this);this.yN=null;delete this.Ki;delete this.accountLinkingConfig;delete this.S;this.T=this.TQ=this.playerResponse=this.wc=null;this.ZD=this.adaptiveFormats="";delete this.botguardData;this.l0=this.suggestions=this.Tv=null;this.sabrContextUpdates.clear()};var Pr4={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Wbr={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Q6j={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},M5u={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"},D9_={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},cwh={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"},m96={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.Z(wr,g.v);g.y=wr.prototype;g.y.handleExternalCall=function(D,Q,m){var P=this.state.U[D],W=this.state.Z[D],L=P;if(W)if(m&&Y8(m,IrT))L=W;else if(!P)throw Error('API call from an untrusted origin: "'+m+'"');this.logApiCall(D,m);if(L){m=!1;P=g.T(Q);for(W=P.next();!W.done;W=P.next())if(String(W.value).includes("javascript:")){m=!0;break}m&&g.l4(Error('Dangerous call to "'+D+'" with ['+Q+"]."));return L.apply(this,Q)}throw Error('Unknown API method: "'+D+'".');};
g.y.logApiCall=function(D,Q,m){var P=this.app.G();P.JP&&!this.state.j.has(D)&&(this.state.j.add(D),g.WD("webPlayerApiCalled",{callerUrl:P.loaderUrl,methodName:D,origin:Q||void 0,playerStyle:P.playerStyle||void 0,embeddedPlayerMode:P.QF,errorCode:m}))};
g.y.publish=function(D){var Q=g.e$.apply(1,arguments);this.state.T.publish.apply(this.state.T,[D].concat(g.on(Q)));if(D==="videodatachange"||D==="resize"||D==="cardstatechange")this.state.C.publish.apply(this.state.C,[D].concat(g.on(Q))),this.state.B.publish.apply(this.state.B,[D].concat(g.on(Q)))};
g.y.sW=function(D){var Q=g.e$.apply(1,arguments);this.state.T.publish.apply(this.state.T,[D].concat(g.on(Q)));this.state.C.publish.apply(this.state.C,[D].concat(g.on(Q)))};
g.y.Q0=function(D){var Q=g.e$.apply(1,arguments);this.state.T.publish.apply(this.state.T,[D].concat(g.on(Q)));this.state.C.publish.apply(this.state.C,[D].concat(g.on(Q)));this.state.B.publish.apply(this.state.B,[D].concat(g.on(Q)))};
g.y.cO=function(D){var Q=g.e$.apply(1,arguments);this.state.T.publish.apply(this.state.T,[D].concat(g.on(Q)));this.state.C.publish.apply(this.state.C,[D].concat(g.on(Q)));this.state.B.publish.apply(this.state.B,[D].concat(g.on(Q)));this.state.J.publish.apply(this.state.J,[D].concat(g.on(Q)))};
g.y.V=function(D){return this.app.G().V(D)};
g.y.Bq=function(){if(this.state.element){var D=this.state.element,Q;for(Q in this.state.S)this.state.S.hasOwnProperty(Q)&&(D[Q]=null);this.state.element=null}g.v.prototype.Bq.call(this)};g.Z(Rv,g.TY);Rv.prototype.publish=function(D){var Q=g.e$.apply(1,arguments);if(this.J.has(D))return this.J.get(D).push(Q),!0;var m=!1;try{for(Q=[Q],this.J.set(D,Q);Q.length;)m=g.TY.prototype.publish.call.apply(g.TY.prototype.publish,[this,D].concat(g.on(Q.shift())))}finally{this.J.delete(D)}return m};g.Z(U6,g.v);U6.prototype.Bq=function(){this.J.dispose();this.B.dispose();this.C.dispose();this.T.dispose();this.j=this.S=this.Z=this.U=this.N=void 0};var zF4=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.Z(Ky,wr);g.y=Ky.prototype;g.y.getApiInterface=function(){return Array.from(this.state.N)};
g.y.Tk=function(D,Q){this.state.J.subscribe(D,Q)};
g.y.wOq=function(D,Q){this.state.J.unsubscribe(D,Q)};
g.y.getPlayerState=function(D){return ISP(this.app,D)};
g.y.D4=function(){return ISP(this.app)};
g.y.Mvc=function(D,Q,m){eh(this)&&($I(this.app,!0,1),OZ(this.app,D,Q,m,1))};
g.y.getCurrentTime=function(D,Q,m){var P=this.getPlayerState(D);if(this.app.getAppState()===2&&P===5){var W;return((W=this.app.getVideoData())==null?void 0:W.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&P===0?Ic(this.app,D):D?this.app.getCurrentTime(D,Q,m):this.app.getCurrentTime(D)};
g.y.FY=function(){return this.app.getCurrentTime(1)};
g.y.IB=function(){var D=this.app.hD(1);return isNaN(D)?this.getCurrentTime(1):D};
g.y.jW=function(){return this.app.getDuration(1)};
g.y.u1=function(D,Q){D=g.eZ(Math.floor(D),0,100);isFinite(D)&&JH(this.app,{volume:D,muted:this.isMuted()},Q)};
g.y.DpO=function(D){this.u1(D,!1)};
g.y.U$=function(D){JH(this.app,{muted:!0,volume:this.getVolume()},D)};
g.y.Uv9=function(){this.U$(!1)};
g.y.MS=function(D){$l(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||JH(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},D)};
g.y.oah=function(){$l(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.MS(!1)};
g.y.getPlayerMode=function(){var D={};this.app.getVideoData().RI&&(D.pfp={enableIma:this.app.tD().allowImaMonetization,autoplay:bN(this.app.tD()),mutedAutoplay:this.app.tD().mutedAutoplay});return D};
g.y.Gt=function(){var D=this.app.getPresentingPlayerType();if(D===2&&!this.app.QA()){var Q=RY(this.app.HY());if(!(RVh(Q)||g.W8(this.app.G())&&g.X(this.app.Zx().getPlayerState(),1024))||UQQ(Q))return}(Q=this.app.yy().Vy)?Q.playVideo():this.app.playVideo(D)};
g.y.f$c=function(){$I(this.app,!0,1);this.Gt()};
g.y.pauseVideo=function(D){var Q=this.app.getPresentingPlayerType();if(Q!==2||this.app.QA()||RVh(RY(this.app.HY()))){var m=this.app.yy().Vy;m?m.pauseVideo():this.app.pauseVideo(Q,D)}};
g.y.xpW=function(){var D=this.app,Q=!1;D.SD.Lj&&(D.zO.publish("pageTransition"),Q=!0);D.stopVideo(Q)};
g.y.clearVideo=function(){};
g.y.getAvailablePlaybackRates=function(){var D=this.app.G();if(D.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(D.B?D.ancestorOrigins[0]:window.location.origin)||D.vy)return ikP;if(D.V("html5_enable_player_response_driven_playback_rate_clamping")){D=this.app.getVideoData();var Q=D.Rx,m=D.BC;return uFk.filter(function(P){return P>=Q&&P<=m})}return D.supportsVarispeedExtendedFeatures?srk:D.V("web_remix_allow_up_to_3x_playback_rate")&&
g.jY(D)?L$k:JS}return[1]};
g.y.getPlaybackQuality=function(D){return(D=this.app.kV(D))?D.getPlaybackQuality():"unknown"};
g.y.IQx=function(){};
g.y.getAvailableQualityLevels=function(D){return(D=this.app.kV(D))?(D=g.fk(D.wx(),function(Q){return Q.quality}),D.length&&(D[0]==="auto"&&D.shift(),D=D.concat(["auto"])),D):[]};
g.y.XY=function(){return this.getAvailableQualityLevels(1)};
g.y.QG=function(){return this.Cs()};
g.y.Oy=function(){return 1};
g.y.getVideoLoadedFraction=function(D){return this.app.getVideoLoadedFraction(D)};
g.y.Cs=function(){return this.getVideoLoadedFraction()};
g.y.vz=function(){return 0};
g.y.getSize=function(){var D=this.app.fh().getPlayerSize();return{width:D.width,height:D.height}};
g.y.setSize=function(){this.app.fh().resize()};
g.y.loadVideoById=function(D,Q,m,P){if(!D)return!1;D=HU(D,Q,m);return this.app.loadVideoByPlayerVars(D,P)};
g.y.jO=function(D,Q,m){D=this.loadVideoById(D,Q,m,1);$I(this.app,D,1)};
g.y.cueVideoById=function(D,Q,m,P){D=HU(D,Q,m);this.app.cueVideoByPlayerVars(D,P)};
g.y.pK=function(D,Q,m){this.cueVideoById(D,Q,m,1)};
g.y.loadVideoByUrl=function(D,Q,m,P){D=t4r(D,Q,m);return this.app.loadVideoByPlayerVars(D,P)};
g.y.Tc0=function(D,Q,m){D=this.loadVideoByUrl(D,Q,m,1);$I(this.app,D,1)};
g.y.cueVideoByUrl=function(D,Q,m,P){D=t4r(D,Q,m);this.app.cueVideoByPlayerVars(D,P)};
g.y.X0=function(D,Q,m){this.cueVideoByUrl(D,Q,m,1)};
g.y.wv=function(){var D=this.app.G();if(D.Iy)return"";var Q=this.app.tD(),m=void 0;Q.isLivePlayback||(m=Math.floor(this.app.getCurrentTime(1)));return D.getVideoUrl(Q.videoId,this.getPlaylistId()||void 0,m)};
g.y.yQ=function(){return this.app.getDebugText()};
g.y.getVideoEmbedCode=function(){var D=this.app.G();if(D.Iy)return"";var Q=this.app.tD();return D.getVideoEmbedCode(Q.isPrivate?"":Q.title,this.app.tD().videoId,this.app.fh().getPlayerSize(),this.getPlaylistId()||void 0)};
g.y.S5=function(D,Q,m){return vMj(this.app,D,Q,m)};
g.y.removeCueRange=function(D){return this.app.Ez(D)};
g.y.loadPlaylist=function(D,Q,m,P){this.app.loadPlaylist(D,Q,m,P)};
g.y.ou=function(D,Q,m,P){this.loadPlaylist(D,Q,m,P);$I(this.app,!0,1)};
g.y.cuePlaylist=function(D,Q,m,P){this.app.cuePlaylist(D,Q,m,P)};
g.y.nextVideo=function(D,Q){this.app.nextVideo(D,Q)};
g.y.qWD=function(){this.nextVideo();$I(this.app,!0,1)};
g.y.previousVideo=function(D){this.app.previousVideo(D)};
g.y.Bic=function(){this.previousVideo();$I(this.app,!0,1)};
g.y.playVideoAt=function(D){this.app.playVideoAt(D)};
g.y.EBy=function(D){this.playVideoAt(D);$I(this.app,!0,1)};
g.y.setShuffle=function(D){var Q=this.app.getPlaylist();Q&&Q.setShuffle(D)};
g.y.setLoop=function(D){var Q=this.app.getPlaylist();Q&&(Q.loop=D)};
g.y.Nk=function(){var D=this.app.getPlaylist();if(!D)return null;for(var Q=[],m=0;m<D.length;m++){var P=g.Fe(D,m);P&&Q.push(P.videoId)}return Q};
g.y.getPlaylistIndex=function(){var D=this.app.getPlaylist();return D?D.index:-1};
g.y.getPlaylistId=function(){var D=this.app.getPlaylist();return D&&D.listId?D.listId.toString():null};
g.y.Ou=function(D){D==="captions"&&(D=g.JD(this.app.HY()))&&!D.loaded&&D.load()};
g.y.RJ=function(D){D==="captions"&&(D=g.JD(this.app.HY()))&&D.loaded&&D.Ta0()};
g.y.Yw=function(D,Q,m){if(!Q)return null;var P=this.app.HY();return D==="captions"?(D=g.JD(P))&&D.hf(Q,m):null};
g.y.hR=function(D,Q,m){return E6(this.app.dB().getVideoData())?{}:this.Yw(D,Q,m)};
g.y.jz=function(D){var Q=this.app.HY();if(D==="captions"){var m;return((m=g.JD(Q))==null?void 0:m.getOptions())||null}return D?null:(D=[],g.JD(Q)&&D.push("captions"),D)};
g.y.getVolume=function(){return this.app.Yt.volume};
g.y.isMuted=function(){return this.app.Yt.muted};
g.y.destroy=function(){this.app.dispose()};
g.y.logImaAdEvent=function(D,Q){var m=this.app.G();this.app.tD().allowImaMonetization&&(D={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:Q,embedUrl:g.eM7(this.app.G().loaderUrl),eventType:D,youtubeHost:g.uY(this.app.G().LI)||""},D.embeddedPlayerMode=m.QF,g.WD("embedsAdEvent",D))};
g.y.mutedAutoplay=function(D){var Q=this.app.G(),m,P,W;((m=Q.getWebPlayerContextConfig())==null?0:(P=m.embedsHostFlags)==null?0:(W=P.allowMutedAutoplayDurationMode)==null?0:W.length)&&!Q.T&&this.app.mutedAutoplay(D)};
g.y.preloadVideoById=function(D,Q,m,P){var W,L;((W=this.app.G().getWebPlayerContextConfig())==null?0:(L=W.embedsHostFlags)==null?0:L.allowPreloadVideoById)&&D&&(D=HU(D,Q,m),this.app.preloadVideoByPlayerVars(D,P))};
g.y.dmT=function(D,Q,m){this.preloadVideoById(D,Q,m,1)};
g.y.setFauxFullscreen=function(D){g.qZ();this.app.ag(D?2:0)};
g.y.SHv=function(D){var Q,m;((Q=this.app.G().getWebPlayerContextConfig())==null?0:(m=Q.embedsHostFlags)==null?0:m.allowSetFauxFullscreen)&&this.setFauxFullscreen(D)};
g.y.setCenterCrop=function(D){var Q,m;((Q=this.app.G().getWebPlayerContextConfig())==null?0:(m=Q.embedsHostFlags)==null?0:m.allowSetCenterCrop)&&this.app.fh().setCenterCrop(D)};
g.y.wakeUpControls=function(){var D=g.jh(this);D&&D.YI()};var V4u="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.Z(vU,Ky);g.y=vU.prototype;g.y.IP=function(D,Q){this.state.B.subscribe(D,Q)};
g.y.xm9=function(D,Q){this.state.B.unsubscribe(D,Q)};
g.y.cueVideoByPlayerVars=function(D,Q){this.app.cueVideoByPlayerVars(D,Q)};
g.y.Gk=function(D,Q){Q=Q===void 0?1:Q;this.cueVideoByPlayerVars(O6(this,D),Q)};
g.y.loadVideoByPlayerVars=function(D,Q,m,P,W){this.app.loadVideoByPlayerVars(D,m,Q,P,W)};
g.y.C00=function(D,Q,m,P){m=m===void 0?1:m;this.loadVideoByPlayerVars(O6(this,D),Q,m,P)};
g.y.preloadVideoByPlayerVars=function(D,Q,m,P,W){m=m===void 0?NaN:m;this.app.preloadVideoByPlayerVars(D,Q,m,P===void 0?"":P,W===void 0?"":W)};
g.y.gVT=function(D,Q,m,P){Q=Q===void 0?1:Q;this.preloadVideoByPlayerVars(O6(this,D),Q,m,P)};
g.y.Ja=function(D,Q,m){this.loadVideoById(D,Q,m,1)};
g.y.v7=function(D,Q,m){this.loadVideoByUrl(D,Q,m,1)};
g.y.nf=function(D){return this.getPlayerState(D)};
g.y.Sd=function(D){D=D===void 0?1:D;var Q=qE6(this,D);if(D=this.app.kV(D)){D=D.getVideoData();Q.backgroundable=D.backgroundable;Q.eventId=D.eventId;Q.cpn=D.clientPlaybackNonce;Q.isLive=D.isLivePlayback;Q.isWindowedLive=D.Kh;Q.isManifestless=v1(D);Q.allowLiveDvr=D.allowLiveDvr;Q.isListed=D.isListed;D.liveUtcStartSeconds!=null&&(Q.liveUtcStartSeconds=D.liveUtcStartSeconds);D.qJ()&&(Q.isEncrypted=!0);if(D.T)for(var m=g.T(D.T.videoInfos),P=m.next();!P.done;P=m.next()){var W=void 0;if((W=P.value.video)==
null?0:W.isHdr()){Q.isHdr=!0;break}}var L,u;Q.isMultiChannelAudio=!!((L=D.B)==null?0:(u=L.audio)==null?0:u.isMultiChannelAudio())}return Q};
g.y.seekBy=function(D,Q,m,P,W){eh(this)&&OZ(this.app,this.app.getCurrentTime()+D,Q,m,W,P)};
g.y.sFz=function(D,Q,m){this.seekBy(D,Q,m,void 0,1)};
g.y.seekTo=function(D,Q,m,P,W){eh(this)&&OZ(this.app,D,Q,m,P,W)};
g.y.EVO=function(D,Q,m,P){this.seekTo(D,Q,m,P===void 0?1:P)};
g.y.getStoryboardFormat=function(){return E6(this.app.getVideoData())?null:this.app.getStoryboardFormat()};
g.y.o0=function(D,Q){return this.getCurrentTime(D===void 0?1:D,Q)};
g.y.fz=function(){var D=this.app.getPresentingPlayerType(!0);D===2&&this.app.QA()&&(D=1);return D};
g.y.getDuration=function(D,Q){return D?this.app.getDuration(D,Q):this.app.getDuration(D)};
g.y.r_=function(D,Q){return this.getDuration(D===void 0?1:D,Q)};
g.y.JR=function(D){return this.getVideoLoadedFraction(D)};
g.y.loadModule=function(D){if(D==="annotations_module"){var Q=g.KW(this.app.HY());Q&&!Q.loaded&&Q.load()}this.Ou(D)};
g.y.unloadModule=function(D){if(D==="annotations_module"){var Q=g.KW(this.app.HY());Q&&Q.loaded&&Q.unload()}this.RJ(D)};
g.y.getOption=function(D,Q,m,P){return(P=this.app.kV(P))&&E6(P.getVideoData())?{}:this.setOption(D,Q,m)};
g.y.Yp=function(D,Q,m){return this.getOption(D,Q,m,1)};
g.y.getOptions=function(D){var Q=this.app.HY();switch(D){case "ad":var m,P;return((m=RY(Q))==null?void 0:(P=m.getOptions)==null?void 0:P.call(m))||null;case "remote":var W,L;return((W=rr(Q))==null?void 0:(L=W.getOptions)==null?void 0:L.call(W))||null;case "annotations_module":var u,t;return((u=g.KW(Q))==null?void 0:(t=u.getOptions)==null?void 0:t.call(u))||null;case "creatorendscreen":var z,b;return((z=jM(Q))==null?void 0:(b=z.getOptions)==null?void 0:b.call(z))||null;case "unplugged":var q,C;return((q=
g.UM(Q))==null?void 0:(C=q.getOptions)==null?void 0:C.call(q))||null;case "kids":var f,V;return((f=hj9(Q))==null?void 0:(V=f.getOptions)==null?void 0:V.call(f))||null}if(!D){D=this.jz();if(!D)return D;RY(Q)&&D.push("ad");rr(Q)&&D.push("remote");g.KW(Q)&&D.push("annotations_module");jM(Q)&&D.push("creatorendscreen");g.UM(Q)&&D.push("unplugged");hj9(Q)&&D.push("kids");return D}return this.jz(D)};
g.y.setOption=function(D,Q,m){if(!Q)return null;var P=this.app.HY();switch(D){case "ad":return(D=RY(P))&&D.hf&&D.hf(Q,m);case "kids":return(D=hj9(P))&&D.hf(Q,m);case "remote":return(D=rr(P))&&D.hf(Q,m);case "unplugged":return(D=g.UM(P))&&D.hf(Q,m);case "annotations_module":return(D=g.KW(P))&&D.hf(Q,m);case "creatorendscreen":return(D=jM(P))&&D.hf(Q,m)}return this.Yw(D,Q,m)};
g.y.addCueRange=function(D,Q,m,P,W){return vMj(this.app,D,Q,m,P,W)};
g.y.getDebugText=function(D){return this.app.getDebugText(D)};
g.y.getCurrentBroadcastId=function(){return null};
g.y.handleGlobalKeyDown=function(D,Q,m,P,W,L,u,t){Q=Q===void 0?!1:Q;m=m===void 0?!1:m;P=P===void 0?!1:P;W=W===void 0?!1:W;var z=g.jh(this);z&&z.handleGlobalKeyDown(D,Q,m,P,W,L,u,t)};
g.y.handleGlobalKeyUp=function(D,Q,m,P,W,L,u){Q=Q===void 0?!1:Q;m=m===void 0?!1:m;P=P===void 0?!1:P;W=W===void 0?!1:W;var t=g.jh(this);t&&t.handleGlobalKeyUp(D,Q,m,P,W,L,u)};
g.y.setSizeStyle=function(D,Q){this.app.setSizeStyle(D,Q)};
g.y.showControls=function(){var D=g.jh(this);D&&D.showControls(!0)};
g.y.hideControls=function(){var D=g.jh(this);D&&D.showControls(!1)};
g.y.getVideoContentRect=function(D){D=this.app.fh().getVideoContentRect(D);return{left:D.left,top:D.top,width:D.width,height:D.height}};
g.y.toggleFullscreen=function(){function D(m){g.l4(m)}
var Q=this.app.G();if(Q.externalFullscreen){if(!g.wv(Q))return this.isFullscreen()?oS(window.document.documentElement):bz(window.document.documentElement).catch(D)}else if(g.qZ()||Q.U)return this.isFullscreen()?oS(CU()):Q.controlsType!=="3"&&g.qZ()?bz(this.app.fh().element).catch(D):(Q=this.app.Cn().nj())?bz(Q).catch(D):Promise.reject(Error("Media element missing"));this.cO("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.y.isFullscreen=function(){return this.app.isFullscreen()};
g.y.gX=function(){return this.app.gX()};
g.y.cancelPlayback=function(){var D=RY(this.app.HY());D&&D.created&&D.destroy();this.app.Zx().stopVideo();(D=this.app.HY().di.get("endscreen"))&&D.xT()&&g.Sh(this.app.zO,!0)};
g.y.getProgressState=function(D){if(this.fz()===3)return rr(this.app.HY()).getProgressState();var Q=this.app.getVideoData(),m=this.app.kV(D)||this.app.Zx(),P=m.getPlayerType();a:{var W=this.app.getVideoData();var L;if((L=W.progressBarStartPosition)==null?0:L.utcTimeMillis)if(W=Number(W.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(W)){W=this.Vk(W,D);break a}W=0}var u;a:{L=this.app.getVideoData();if((u=L.progressBarEndPosition)==null?0:u.utcTimeMillis)if(u=Number(L.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(u)){u=this.Vk(u,D);break a}u=0}L=this.getCurrentTime(D);D=this.getDuration(D);var t=this.app.hD(P),z=this.app.isAtLiveHead(P),b=this.app.vF();var q=this.app;var C=q.zc({playerType:P});C?(C=Td(q,C),q=UZ(q,C.eh(),C)):q=q.Vn.S.eh();C=Ic(this.app,P);m=m.m2();var f=this.app.getVideoData().b8;P=!f||isNaN(f)?0:this.Vk(f,P);return{airingStart:W,airingEnd:u,allowSeeking:this.app.I_(),clipEnd:Q.clipEnd,clipStart:Q.clipStart,current:L,displayedStart:-1,duration:D,ingestionTime:t,isAtLiveHead:z,loaded:b,
seekableStart:q,seekableEnd:C,offset:m,viewerLivestreamJoinMediaTime:P}};
g.y.Vk=function(D,Q){var m=this.app.hD(Q);if(!m)return 0;Q=m-this.app.getCurrentTime(Q);return D-Q};
g.y.isInline=function(){return this.app.isInline()};
g.y.setInline=function(D){this.app.setInline(D)};
g.y.VG=function(){return this.app.dB().yX(!0)};
g.y.toggleSubtitles=function(){var D=g.JD(this.app.HY());D&&D.aQc()};
g.y.getPlayerSize=function(){var D=this.app.fh().getPlayerSize();return{width:D.width,height:D.height}};
g.y.setCenterCrop=function(D){this.app.fh().setCenterCrop(D)};
g.y.getLoopVideo=function(){return this.app.getLoopVideo()};
g.y.setLoopVideo=function(D){this.app.setLoopVideo(D)};
var f4P="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(" "),
yKn="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 zS={},Zi6=(zS["api.invalidparam"]=2,zS.auth=150,zS["drm.auth"]=150,zS["heartbeat.net"]=150,zS["heartbeat.servererror"]=150,zS["heartbeat.stop"]=150,zS["html5.unsupportedads"]=5,zS["fmt.noneavailable"]=5,zS["fmt.decode"]=5,zS["fmt.unplayable"]=5,zS["html5.missingapi"]=5,zS["html5.unsupportedlive"]=5,zS["drm.unavailable"]=5,zS["mrm.blocked"]=151,zS["embedder.identity.denied"]=152,zS["embedder.identity.missing.referrer"]=153,zS);g.Z(g.Yl,vU);g.y=g.Yl.prototype;g.y.isExternalMethodAvailable=function(D,Q){return this.state.U[D]?!0:!!(this.state.Z[D]&&Q&&Y8(Q,IrT))};
g.y.getBandwidthEstimate=function(){return GZ(this.app.G().schedule)};
g.y.reportPlaybackIssue=function(D){D=D===void 0?"":D;var Q=this.app.Zx();D={gpu:(0,g.sy)(),d:D};Q.handleError(new g.VJ("feedback",D))};
g.y.getInternalApi=function(){return Object.assign({},this.state.S)};
g.y.getInternalApiInterface=function(){return g.i7(this.state.S)};
g.y.queueNextVideo=function(D,Q,m,P,W){m=m===void 0?NaN:m;this.app.queueNextVideo(D,Q,m,P===void 0?"":P,W===void 0?"":W)};
g.y.Kf=function(D){D=this.app.getPlayerStateObject(D);return{isBuffering:g.X(D,1),isCued:D.isCued(),isDomPaused:g.X(D,1024),isEnded:g.X(D,2),isError:g.X(D,128),isOrWillBePlaying:D.isOrWillBePlaying(),isPaused:D.isPaused(),isPlaying:D.isPlaying(),isSeeking:g.X(D,16),isUiSeeking:g.X(D,32),isUnstarted:g.X(D,64)}};
g.y.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.y.startSeekCsiAction=function(){this.app.Dr().B.S=(0,g.T3)()};
g.y.fR=function(D,Q,m){return this.getCurrentTime(D===void 0?1:D,Q,m)};
g.y.seekToStreamTime=function(D,Q,m,P){var W=this.app;Q=Q===void 0?!0:Q;var L=W.zc({playerType:1}),u=0;L&&L.getStreamTimeOffset()&&!L.m2()&&(u=L.getStreamTimeOffset());OZ(W,D-u,Q,m,1,P)};
g.y.getStreamTimeOffset=function(){return this.app.dB().getStreamTimeOffset()};
g.y.seekToLiveHead=function(D,Q){var m=this.app.dB().getVideoData();m&&m.isLivePlayback&&OZ(this.app,Infinity,D,Q,1)};
g.y.requestSeekToWallTimeSeconds=function(D,Q,m){this.app.dB().bR(D,Q,m)};
g.y.XOO=function(D,Q,m,P,W){this.seekTo(D,Q,m,P===void 0?1:P,W)};
g.y.Giz=function(D,Q,m,P){this.seekBy(D,Q,m,P,1)};
g.y.prefetchKeyPlay=function(D,Q){this.app.dB().prefetchKeyPlay(D,Q)};
g.y.setVolume=function(D,Q){this.u1(D,Q===void 0?!0:Q)};
g.y.mute=function(D){this.U$(D===void 0?!0:D)};
g.y.unMute=function(D){this.MS(D===void 0?!0:D)};
g.y.syncVolume=function(){var D=um9(this.app);JH(this.app,{volume:D.volume,muted:D.muted},!1)};
g.y.getAvailableQualityLabels=function(){return g.fk(this.app.dB().wx(),function(D){return D.qualityLabel})};
g.y.channelSubscribed=function(){this.sW("SUBSCRIBE",this.app.tD().M4)};
g.y.channelUnsubscribed=function(){this.sW("UNSUBSCRIBE",this.app.tD().M4)};
g.y.setScreenLayer=function(D){this.app.setScreenLayer(D)};
g.y.getCurrentPlaylistSequence=function(){return this.app.Zx().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.y.getPlaylistSequenceForTime=function(D){return this.app.Zx().getPlaylistSequenceForTime(D)};
g.y.shouldSendVisibilityState=function(){return!0};
g.y.confirmYpcRental=function(){this.app.dB().wi("ypc_clickwrap")};
g.y.setHomeGroupInfo=function(D){this.app.G().homeGroupInfo=D};
g.y.setConnectedRemoteApps=function(D){this.app.G().pU=D};
g.y.setLivingRoomAppMode=function(D){this.app.G().livingRoomAppMode=D5("LIVING_ROOM_APP_MODE_UNSPECIFIED",D,KSk)};
g.y.setEnablePrivacyFilter=function(D){this.app.G().enablePrivacyFilter=D===void 0?!1:D};
g.y.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.y.addUtcCueRange=function(D,Q,m,P,W){return OQn(this.app,D,Q,m,P,W)};
g.y.uj=function(D){D=D===void 0?1:D;var Q=this.Sd(D);if(D=this.app.kV(D)){D=D.getVideoData();Q.hasProgressBarBoundaries=D.hasProgressBarBoundaries();Q.isPremiere=D.isPremiere;Q.itct=D.u0;Q.playerResponseCpn=D.playerResponseCpn;var m;var P=D.hasProgressBarBoundaries()&&((m=D.progressBarStartPosition)==null?0:m.utcTimeMillis)?IG(D.progressBarStartPosition.utcTimeMillis):null;Q.progressBarStartPositionUtcTimeMillis=P;var W;m=D.hasProgressBarBoundaries()&&((W=D.progressBarEndPosition)==null?0:W.utcTimeMillis)?
IG(D.progressBarEndPosition.utcTimeMillis):null;Q.progressBarEndPositionUtcTimeMillis=m;Q.ypcOriginalItct=D.z$c;Q.ypcPreview=D.ypcPreview;Q.paidContentOverlayText=gow(D);Q.paidContentOverlayDurationMs=Bs9(D);D.S&&v4(D.S)&&(Q.usingLocalMedia="true");Q.transitionEndpointAtEndOfStream=D.transitionEndpointAtEndOfStream}return Q};
g.y.getAdState=function(){return this.app.getAdState()};
g.y.isNotServable=function(D){if(D!==this.app.c$.video_id)return!1;var Q=(D=this.app.dB().getPlayerState())?D.YP:null;return!!(D&&Q&&g.X(D,128)&&Fb7(Q.errorCode)===5)};
g.y.supportsGaplessAudio=function(){return this.app.G().supportsGaplessAudio()};
g.y.supportsGaplessShorts=function(){return this.app.G().supportsGaplessShorts()};
g.y.enqueueVideoByPlayerVars=function(D,Q,m,P){m=m===void 0?Infinity:m;this.app.enqueueVideoByPlayerVars(D,Q,m,P===void 0?"":P)};
g.y.clearQueue=function(){this.app.clearQueue()};
g.y.xF=function(){return g.jh(this)};
g.y.sendAbandonmentPing=function(){this.app.Zx().sendAbandonmentPing()};
g.y.setAutonavState=function(D,Q){Q=Q===void 0?!1:Q;if(this.V("web_player_autonav_use_server_provided_state")&&!Q&&(Q=this.app.tD(),Q==null?0:E1(Q)))if(D===3)Q.autonavState!==3&&(Q.t2=Q.autonavState);else if(Q.t2!==void 0)D=Q.t2,Q.t2=void 0;else return;Spm(this.app,D)};
g.y.setAutonav=function(D,Q){this.setAutonavState(D?2:1,Q===void 0?!1:Q)};
g.y.setLoopRange=function(D){this.app.setLoopRange(D)};
g.y.getLoopRange=function(){return this.app.getLoopRange()};
g.y.hasSupportedAudio51Tracks=function(){return this.app.dB().hasSupportedAudio51Tracks()};
g.y.setUserAudio51Preference=function(D,Q){this.app.dB().setUserAudio51Preference(D,Q===void 0?!1:Q)};
g.y.getUserAudio51Preference=function(){return this.app.dB().getUserAudio51Preference()};
g.y.setProximaLatencyPreference=function(D){this.app.dB().setProximaLatencyPreference(D)};
g.y.getProximaLatencyPreference=function(){return this.app.dB().getProximaLatencyPreference()};
g.y.isProximaLatencyEligible=function(){return this.app.dB().isProximaLatencyEligible()};
g.y.getAppState=function(){return this.app.getAppState()};
g.y.updateLastActiveTime=function(){NF()};
g.y.setBlackout=function(D){this.app.setBlackout(D)};
g.y.setUserEngagement=function(D){this.app.G().Dj!==D&&(this.app.G().Dj=D,this.app.dB().Mz())};
g.y.updateSubtitlesUserSettings=function(D,Q){Q=Q===void 0?!0:Q;g.JD(this.app.HY()).Ht(D,Q)};
g.y.getCaptionWindowContainerId=function(){var D=g.JD(this.app.HY());return D?D.getCaptionWindowContainerId():""};
g.y.toggleSubtitlesOn=function(){var D=g.JD(this.app.HY());D&&D.Gr()};
g.y.isSubtitlesOn=function(){var D=g.JD(this.app.HY());return D?D.isSubtitlesOn():!1};
g.y.getPlayerResponse=function(D){return(D=this.app.kV(D))?D.getVideoData().getPlayerResponse():null};
g.y.RB=function(){return this.getPlayerResponse(1)};
g.y.getEmbeddedPlayerResponse=function(){return this.app.dB().getVideoData().getEmbeddedPlayerResponse()};
g.y.getWatchNextResponse=function(D){return(D=this.app.kV(D))?D.getVideoData().getWatchNextResponse():null};
g.y.xo=function(){return this.getWatchNextResponse(1)};
g.y.getHeartbeatResponse=function(D){return(D=this.app.kV(D))?D.getVideoData().getHeartbeatResponse():null};
g.y.Si=function(){return this.getHeartbeatResponse(1)};
g.y.getStoryboardFrame=function(D,Q){var m=this.app.tf();if(!m)return null;Q=m.levels[Q];return Q?(D=g.Cz(Q,D))?{column:D.column,columns:D.columns,height:D.OG,row:D.row,rows:D.rows,url:D.url,width:D.L8}:null:null};
g.y.getStoryboardFrameIndex=function(D,Q){var m=this.app.tf();if(!m)return-1;Q=m.levels[Q];if(!Q)return-1;D-=this.m2();return Q.Kr(D)};
g.y.getStoryboardLevel=function(D){var Q=this.app.tf();return Q?(Q=Q.levels[D])?{index:D,intervalMs:Q.S,maxFrameIndex:Q.YU(),minFrameIndex:Q.WM()}:null:null};
g.y.getNumberOfStoryboardLevels=function(){var D=this.app.tf();return D?D.levels.length:0};
g.y.ix=function(D){return this.app.Zx().ix(D)};
g.y.QW=function(){this.app.Zx().QW()};
g.y.Pw=function(){return this.getAudioTrack(1)};
g.y.getAudioTrack=function(D){return(D=this.app.kV(D))?D.getAudioTrack():this.app.getVideoData().yL};
g.y.wS=function(){var D=this.app.kV();return D?D.wS():null};
g.y.setAudioTrack=function(D,Q,m){var P=this.app.yy().Vy;P&&P.v5(D);return(m=this.app.kV(m))?m.v5(D,Q):!1};
g.y.y8W=function(D,Q){return this.setAudioTrack(D,Q,1)};
g.y.GR=function(){return this.getAvailableAudioTracks(1)};
g.y.getAvailableAudioTracks=function(D){return this.app.kV(D).getAvailableAudioTracks()};
g.y.getMaxPlaybackQuality=function(){var D=this.app.dB();return D.getVideoData().C?Kx(D.nP()):"unknown"};
g.y.getUserPlaybackQualityPreference=function(){return this.app.dB().getUserPlaybackQualityPreference()};
g.y.getSubtitlesUserSettings=function(){var D=g.JD(this.app.HY());return D?D.bj():null};
g.y.resetSubtitlesUserSettings=function(){g.JD(this.app.HY()).mmD()};
g.y.setMinimized=function(D){this.app.setMinimized(D)};
g.y.setOverlayVisibility=function(D){this.publish("overlayvisibilitychange",D)};
g.y.setInlinePreview=function(D){this.app.setInlinePreview(D)};
g.y.setSqueezeback=function(D){this.app.setSqueezeback(D)};
g.y.setGlobalCrop=function(D){this.app.fh().setGlobalCrop(D)};
g.y.setAppFullscreen=function(D){this.app.ag(D?4:0)};
g.y.VL=function(){return this.app.VL()};
g.y.getVisibilityState=function(){return this.VL().getVisibilityState(this.xP(),this.gX()||g.dv(this.app.G()),this.isMinimized(),this.isInline(),this.app.CU(),this.app.DS(),this.app.u9(),this.app.iS())};
g.y.isMutedByMutedAutoplay=function(){return this.app.Pg};
g.y.isMutedByEmbedsMutedAutoplay=function(){return $l(this.app)};
g.y.setInternalSize=function(D,Q){this.app.fh().setInternalSize(new g.Ay(D,Q))};
g.y.m2=function(D){return(D=this.app.kV(D))?D.m2():0};
g.y.isMinimized=function(){return this.app.isMinimized()};
g.y.CU=function(){return this.app.CU()};
g.y.xP=function(){return this.app.Zx().xP()};
g.y.setSafetyMode=function(D){this.app.G().enableSafetyMode=D};
g.y.canPlayType=function(D){return this.app.canPlayType(D)};
g.y.updatePlaylist=function(D){if(D){var Q=this.getPlaylistId(),m=!1;Q&&Q!==D.list&&(m=!0);D.external_list!==void 0&&(this.app.wT=cd(!1,D.external_list));var P=D.video;(Q=this.app.getPlaylist())&&!m?this.isFullscreen()&&((m=P[Q.index])&&m.encrypted_id!==g.Fe(Q).videoId||(D.index=Q.index)):gX(this.app,{list:D.list,index:D.index,playlist_length:P.length});cHm(this.app.getPlaylist(),D);this.Q0("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.y.updateVideoData=function(D,Q){g.hc(this.app.dB().getVideoData(),D,Q)};
g.y.updateEnvironmentData=function(D){fe(this.app.G(),D,!1)};
g.y.FOh=function(D){this.app.sendVideoStatsEngageEvent(D,1)};
g.y.productsInVideoVisibilityUpdated=function(D){this.publish("changeProductsInVideoVisibility",D)};
g.y.isAtLiveHead=function(D,Q){return this.app.isAtLiveHead(D,Q===void 0?!0:Q)};
g.y.getVideoAspectRatio=function(){return this.app.fh().getVideoAspectRatio()};
g.y.getPreferredQuality=function(){return this.app.Zx().getPreferredQuality()};
g.y.getPlaybackQualityLabel=function(D){if(D=this.app.kV(D)){var Q,m;return((m=(Q=D.getVideoData().C)==null?void 0:Q.video)==null?void 0:m.qualityLabel)||""}return""};
g.y.setPlaybackQualityRange=function(D,Q,m,P){(P=this.app.kV(P))&&P.yT(g.IP(D,Q||D,!0,"m"),!0,m)};
g.y.ga9=function(D,Q,m){this.setPlaybackQualityRange(D,Q,m,1)};
g.y.onAdUxClicked=function(D,Q){this.publish("aduxclicked",D,Q)};
g.y.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.y.dispatchReduxAction=function(D){g.kA.dispatch(D)};
g.y.highlightSettingsMenuItem=function(D){this.publish("highlightSettingsMenu",D)};
g.y.openSettingsMenuItem=function(D){this.publish("openSettingsMenuItem",D)};
g.y.CK=function(D,Q){this.state.C.subscribe(D,Q)};
g.y.Vvh=function(D,Q){this.state.C.unsubscribe(D,Q)};
g.y.Y_=function(D,Q){this.cueVideoByPlayerVars(D,Q===void 0?1:Q)};
g.y.SWT=function(D,Q,m,P){this.loadVideoByPlayerVars(D,Q,m===void 0?1:m,P)};
g.y.IDT=function(D,Q,m,P){this.preloadVideoByPlayerVars(D,Q===void 0?1:Q,m,P)};
g.y.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.y.UN=function(){return g.jh(this).UN()};
g.y.Px=function(){return g.jh(this).Px()};
g.y.kN=function(){return g.jh(this).kN()};
g.y.XZ=function(){return this.xF().XZ()};
g.y.Ko=function(){var D=g.e$.apply(0,arguments),Q;(Q=this.XZ()).Ko.apply(Q,g.on(D))};
g.y.QP=function(){this.XZ().QP()};
g.y.AS=function(){this.XZ().AS()};
g.y.Qy=function(){this.XZ().hide()};
g.y.kh=function(D,Q,m,P,W,L,u,t){this.XZ().kh(D,Q,m,P,W,L,u,t)};
g.y.IX=function(D,Q){this.XZ().IX(D,Q)};
g.y.GK=function(D,Q,m,P,W){this.xF().GK(D,Q,m,P,W)};
g.y.oo=function(D){this.XZ().setEnabled(D)};
g.y.Fj=function(D,Q){this.xF().Fj(D,Q)};
g.y.fu=function(D,Q){this.xF().fu(D,Q)};
g.y.OF=function(D,Q){this.xF().OF(D,Q)};
g.y.HI=function(){this.xF().HI()};
g.y.p_=function(D,Q){this.xF().p_(D,Q)};
g.y.zs=Dk(4);g.y.renderChapterSeekingAnimation=function(D,Q,m){this.xF().renderChapterSeekingAnimation(D,Q,m)};
g.y.uv=function(){this.xF().uv()};
g.y.getWebPlayerContextConfig=function(){return this.app.G().getWebPlayerContextConfig()};
g.y.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.y.lU=function(){return this.app.Zx().lU()};
g.y.s3=function(D,Q,m){m=m===void 0?!1:m;var P;(P=this.xF())==null||P.s3(D,Q,m)};g.Z(g.xl,g.Yl);g.y=g.xl.prototype;g.y.yW=function(D,Q,m,P,W,L,u){return this.app.yW(D,Q,m,P,W,L,u)};
g.y.KB=function(){return this.app.KB()};
g.y.Ju=Dk(6);g.y.HY=function(){return this.app.HY()};
g.y.J8=function(){var D=this.HY().di.get("endscreen");return!!D&&D.J8()};
g.y.getRootNode=function(){return this.fh().element};
g.y.G=function(){return this.app.G()};
g.y.Al=Dk(10);g.y.lS=function(D){return this.app.lS(D)};
g.y.jc=function(){var D;return((D=g.jh(this))==null?void 0:D.jc())||null};
g.y.sF=function(){return this.app.Zx().sF()};
g.y.getPlayerStateObject=function(D){return this.app.getPlayerStateObject(D)};
g.y.fh=function(){return this.app.fh()};
g.y.getPlaylist=function(){return this.app.getPlaylist()};
g.y.getVideoData=function(D,Q){Q=Q===void 0?!1:Q;var m=this.app.kV(D);if(!m)return null;m=m.getVideoData();if(Q)var P=m;else m.enableServerStitchedDai&&D===2?(Q=this.app,D=Q.jk?((P=Q.Vn.B)==null?void 0:P.getVideoData())||Q.getVideoData():Q.getVideoData()):D=m,P=D;return P};
g.y.Lq=function(){return this.app.Zx().Lq()};
g.y.tf=function(D){return this.app.tf(D)};
g.y.iS=function(){return this.app.iS()};
g.y.isHdr=function(){return this.app.Zx().isHdr()};
g.y.CH=function(){return this.app.CH()};
g.y.isEmbedsShortsMode=function(){var D=g.jh(this),Q=this.getVideoData();D=D?D.mI:this.getPlayerSize();var m=!!this.getPlaylist();return!(!Q||!Q.isEmbedsShortsMode(new g.Ay(D.width,D.height),m))};
g.y.L$=function(D,Q){this.app.L$(D,1,Q)};
g.y.Qi=function(D,Q,m,P,W){this.app.K6(D,Q,m,P,W)};
g.y.lM=Dk(14);g.y.playVideo=function(D,Q){try{var m=this.app.yy().Vy;if(m){m.playVideo();return}if(!D&&this.getPresentingPlayerType()===2){var P=RY(this.app.HY());if(P&&UQQ(P))return}}catch(W){g.JG(W)}this.app.playVideo(D,Q)};
g.y.stopVideo=function(D){this.app.kV(D).stopVideo()};
g.y.Gb=function(D){this.app.kV(D).Gb()};
g.y.addEventListener=function(D,Q){this.state.T.subscribe(D,Q)};
g.y.removeEventListener=function(D,Q){this.state.T.unsubscribe(D,Q)};
g.y.bL=function(D){this.app.bL(D)};
g.y.setPlaybackQuality=function(D,Q){this.setPlaybackQualityRange(D,D,Q)};
g.y.wx=function(){var D={},Q=this.app.Zx().wx();Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())m=m.value,D[m.quality]=m;return D};
g.y.uO=function(){return this.app.Zx().uO()};
g.y.sj=Dk(18);g.y.yH=function(D){this.app.yH(D);D&&Spm(this.app,D)};
g.y.getVideoUrl=function(D,Q,m,P){var W=this.getPresentingPlayerType(),L=W===2;if(P&&L||W===3)L=!1,W=1;P=this.getVideoData(W);if(!P)return"";var u;D||P.isLivePlayback||(u=Math.floor(this.getCurrentTime(W)));D=L?void 0:this.getPlaylistId()||void 0;Q&&D==="WL"&&(D=void 0);return this.app.getVideoUrl(P.videoId,D,u,Q,m)};
g.y.wb=Dk(20);g.y.Ic=Dk(26);g.y.pF=function(D){this.app.Zx().pF(D)};
g.y.F6=Dk(32);g.y.o_=Dk(38);g.y.Ue=function(D,Q){this.HY().Ue(D,Q)};
g.y.nF=function(){var D=g.KW(this.HY());return!!D&&D.nF()};
g.y.x0=function(){var D=g.KW(this.HY());return!!D&&D.x0()};
g.y.qc=function(D,Q,m){var P=g.KW(this.HY());P&&P.qc(D,Q,m)};
g.y.UP=Dk(39);g.y.Wp=function(){this.app.Zx().NR()};
g.y.nL=function(D){this.Q0("onVideoAreaChange");this.Q0(D?"onShowControls":"onHideControls")};
g.y.eg=function(D,Q){var m=g.jh(this);if(m)return m.eg(D,Q);D=this.app.fh().bS();return new g.ee(0,0,D.width,D.height)};
g.y.jj=function(){var D=this.HY().di.get("heartbeat");return!!D&&D.jj()};
g.y.I_=function(){var D=this.G();if(D.x9||D.disableSeek)return!1;var Q=this.app.Zx(),m=Q.getVideoData();if(!m.EC()||g.Qw(m)||this.getPresentingPlayerType()===2&&!this.app.QA()||m.xB()&&this.getPresentingPlayerType(!0)===2||Q.xS()&&this.getPresentingPlayerType()!==3)return!1;D=g.qS(D);return g.sI(D)&&!m.Co||$l(this.app)?!1:!0};
g.y.ZM=function(){return this.app.Zx().yw()};
g.y.isLifaAdPlaying=function(){var D,Q=(D=this.getVideoData())==null?void 0:D.xB();return Q?this.getPresentingPlayerType(Q)===2:!1};
g.y.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.y.gY=function(){this.app.Zx().gY()};
g.y.sendVideoStatsEngageEvent=function(D,Q,m){this.app.sendVideoStatsEngageEvent(D,m,Q)};
g.y.GY=function(D,Q,m){this.app.fG(D,Q,m)};
g.y.sY=function(D,Q){this.app.Sw(D,Q)};
g.y.aI=function(D,Q){Rc(this.app,D,Q)};
g.y.yr=Dk(43);g.y.Ef=function(D){return this.app.Ef(D)};
g.y.wi=function(D,Q){var m;(m=this.app.kV(Q))==null||m.wi(D)};
g.y.xS=function(){var D=this.app.kV();return D?D.xS():!0};
g.y.rC=function(){var D=this.getVideoData();return!!D&&(D.rC()||!!D.hlsFormats||!!D.pj)};
g.y.getPlaybackRate=function(){return this.app.dB().getPlaybackRate()};
g.y.setPlaybackRate=function(D,Q){this.app.setPlaybackRate(D,Q)};
g.y.Cn=function(){return this.app.Cn()};
g.y.Dr=function(){return this.app.Dr()};
g.y.uH=function(D){return this.app.uH(D)};
g.y.createClientVe=function(D,Q,m,P){this.G().Y9&&this.app.mW.createClientVe(D,Q,m,P===void 0?!1:P)};
g.y.createServerVe=function(D,Q,m){this.G().Y9&&this.app.mW.createServerVe(D,Q,m===void 0?!1:m)};
g.y.setTrackingParams=function(D,Q){this.G().Y9&&this.app.mW.setTrackingParams(D,Q)};
g.y.logClick=function(D,Q){this.G().Y9&&(this.app.mW.click(D,Q),this.publish("veClickLogged",D))};
g.y.logVisibility=function(D,Q,m){this.G().Y9&&this.app.mW.FA(D,Q,m)};
g.y.hasVe=function(D){return this.G().Y9?this.app.mW.hasVe(D):!1};
g.y.destroyVe=function(D){this.G().Y9&&this.app.mW.destroyVe(D)};
g.y.getPresentingPlayerType=function(D){return this.app.getPresentingPlayerType(D)};
g.y.Lk=function(){this.app.Lk()};
g.y.l4=Dk(45);g.y.Ar=function(D){this.app.Ar(D)};
g.y.r5=function(){this.app.r5()};
g.y.addPlayerResponseForAssociation=function(){};
g.y.finishSegmentByCpn=function(D,Q,m){return this.app.finishSegmentByCpn(D,Q,m)};
g.y.tL=function(D,Q,m,P,W,L,u,t){return this.app.tL(D,Q,m,P,W,L,u,t)};
g.y.Ma=function(D,Q,m,P,W,L,u,t){this.app.Ma(D,Q,m,P,W,L,u,t)};
g.y.YC=function(){return this.app.YC()};
g.y.HL=function(D){this.app.HL(D)};
g.y.TT=function(D,Q){Q=Q===void 0?Infinity:Q;this.app.TT(D===void 0?-1:D,Q)};
g.y.EA=function(D){var Q;(Q=g.JD(this.HY()))==null||Q.EA(D)};
g.y.rr=function(D,Q,m){this.app.rr(D,Q,m)};
g.y.O1=function(){return this.app.O1()};
g.y.z$=function(D,Q,m){this.app.z$(D,Q,m===void 0?0:m)};
g.y.O3=function(){return this.app.O3()};
g.y.QA=function(){return this.app.QA()};
g.y.Ck=function(D,Q,m){return this.app.Ck(D,Q,m)};
g.y.dc=function(D,Q,m,P){m=m===void 0?!1:m;var W;(W=this.app.kV(P))==null||W.dc(D,Q,m)};
g.y.Gw=function(D,Q){this.publish("aduxmouseover",D,Q)};
g.y.Yj=function(D,Q){this.publish("aduxmouseout",D,Q)};
g.y.H4=function(D,Q){this.publish("muteadaccepted",D,Q)};
g.y.Q8=function(){return this.app.fh().Q8()};
g.y.Wj=function(D){this.app.fh().Wj(D)};
g.y.GV=function(D){return D?this.app.RO():this.app.Zx().GV()};
g.y.GX=function(D){this.app.GX(D)};
g.y.XQ=function(){this.app.Zx().XQ()};
g.y.Bl=function(){this.app.Bl()};
g.y.getGetAdBreakContext=function(){var D=this.app.dB();return D.getVideoData().getGetAdBreakContext(D.getCurrentTime(),D.m2())};
g.y.qW=function(D,Q){this.app.Zx().qW(D,Q)};
g.y.b9=function(){return this.app.Zx().b9()};
g.y.FF=Dk(47);g.y.kW=Dk(49);g.y.u6=function(D){var Q;return((Q=this.app.kV(D))==null?void 0:Q.u6())||0};var Wj;g.Z(Pj,RS);Pj.prototype.Rh=function(D,Q){D=RS.prototype.Rh.call(this,D,Q);return Object.assign({},D,this.requestHeaders)};g.Z(g.L5,g.v);g.y=g.L5.prototype;g.y.Bq=function(){this.Cz();g.v.prototype.Bq.call(this)};
g.y.Cz=function(){this.Ch.dispose()};
g.y.addCueRange=function(D){this.Ch.addCueRange(D)};
g.y.fG=function(D,Q){this.Ch.fG(D,Q)};
g.y.xY=function(){this.Ch.xY()};
g.y.Iw=function(){return this.Ch.Iw()};
g.y.cf=function(D){return this.Ch===D};
g.y.NR=function(){this.Ch.Wp()};
g.y.wN=function(D,Q){this.Ch.wN(D,Q)};
g.y.Q5=function(D,Q){return this.Ch.Q5(D,Q)};
g.y.VB=function(D){this.Ch.VB(D)};
g.y.QW=function(){this.Ch.QW()};
g.y.ix=function(D){return this.Ch.ix(D)};
g.y.getAudioTrack=function(){return this.Ch.getAudioTrack()};
g.y.wS=function(){return this.Ch.wS()};
g.y.getAvailableAudioTracks=function(){return this.Ch.getAvailableAudioTracks()};
g.y.wx=function(){return this.Ch.wx()};
g.y.uO=function(){return this.Ch.uO()};
g.y.GE=function(){return this.getVideoData().clientPlaybackNonce};
g.y.sN=function(){return this.Ch.sN()};
g.y.q1=function(){return this.Ch.q1()};
g.y.ws=function(){return this.Ch.ws()};
g.y.getCurrentTime=function(){return this.Ch.getCurrentTime()};
g.y.rS=function(){return this.Ch.rS()};
g.y.Py=function(){return this.Ch.Py()};
g.y.yX=function(D){return this.Ch.yX(D)};
g.y.getDuration=function(D){return this.Ch.getDuration(D)};
g.y.UY=function(){return this.Ch.UY()};
g.y.hD=function(){return this.Ch.hD()};
g.y.yw=function(){return this.Ch.yw()};
g.y.O1=function(){return this.Ch.O1()};
g.y.vF=function(){return this.Ch.vF()};
g.y.Al=Dk(9);g.y.u6=function(){return this.Ch.u6()};
g.y.Wr=function(){return this.Ch.Wr()};
g.y.qL=function(D){return this.Ch.qL(D)};
g.y.Cn=function(){return this.Ch.Cn()};
g.y.Hk=function(){return this.Ch.Hk()};
g.y.TY=function(){return this.Ch.TY()};
g.y.eh=function(){return this.Ch.eh()};
g.y.nI=function(D,Q,m){return this.Ch.nI(D,Q,m)};
g.y.sj=Dk(17);g.y.getPlaybackQuality=function(){return this.Ch.getPlaybackQuality()};
g.y.getPlaybackRate=function(){return this.Ch.getPlaybackRate()};
g.y.getPlayerState=function(){return this.Ch.getPlayerState()};
g.y.getPlayerType=function(){return this.Ch.getPlayerType()};
g.y.getPlaylistSequenceForTime=function(D){return this.Ch.getPlaylistSequenceForTime(D)};
g.y.uH=function(D){return this.Ch.uH(D)};
g.y.lU=function(){return this.Ch.lU()};
g.y.getPreferredQuality=function(){return this.Ch.getPreferredQuality()};
g.y.xZ=function(){return this.Ch.xZ()};
g.y.getProximaLatencyPreference=function(){return this.Ch.getProximaLatencyPreference()};
g.y.nP=function(){return this.Ch.nP()};
g.y.tf=function(){return this.getVideoData().tf()};
g.y.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
g.y.getStreamTimeOffset=function(){return this.Ch.getStreamTimeOffset()};
g.y.MA=function(){return this.Ch.MA()};
g.y.m2=function(){return this.Ch.m2()};
g.y.sF=function(){return this.Ch.sF()};
g.y.getUserAudio51Preference=function(){return this.Ch.getUserAudio51Preference()};
g.y.getUserPlaybackQualityPreference=function(){return this.Ch.getUserPlaybackQualityPreference()};
g.y.getVideoData=function(){return this.Ch.getVideoData()};
g.y.Lq=function(){return this.Ch.Lq()};
g.y.YV=function(){return this.Ch.YV()};
g.y.getVideoLoadedFraction=function(){if(g.Zn(this.getVideoData()))return 1;var D=this.Ch.Cn();return D?D.V5():0};
g.y.N6=function(){return this.Ch};
g.y.m3=function(D){this.Ch.m3(D)};
g.y.handleError=function(D){this.Ch.handleError(D)};
g.y.qR=function(D){this.Ch.qR(D)};
g.y.VO=function(D){this.Ch.VO(D)};
g.y.yr=Dk(42);g.y.xS=function(){return this.Ch.xS()};
g.y.hasSupportedAudio51Tracks=function(){return this.Ch.hasSupportedAudio51Tracks()};
g.y.pm=function(){return this.Ch.pm()};
g.y.xP=function(){return this.Ch.xP()};
g.y.isAtLiveHead=function(D,Q){return this.Ch.isAtLiveHead(D,Q)};
g.y.s_=function(){return this.Ch.s_()};
g.y.isGapless=function(){return this.Ch.isGapless()};
g.y.isHdr=function(){return this.Ch.isHdr()};
g.y.sD=function(){return this.Ch.sD()};
g.y.Sl=function(){return this.Ch.Sl()};
g.y.b9=function(){return this.Ch.b9()};
g.y.isProximaLatencyEligible=function(){return this.Ch.isProximaLatencyEligible()};
g.y.O3=function(){return this.Ch.O3()};
g.y.Hg=function(D){var Q;return!((Q=this.Ch.loader)==null||!Q.Hg(D))};
g.y.jT=function(){return this.Ch.jT()};
g.y.gw=function(){this.Ch.gw()};
g.y.nD=function(D){this.Ch.nD(D)};
g.y.cG=function(){this.Ch.cG()};
g.y.NW=function(){this.Ch.NW()};
g.y.lA=function(){this.Ch.lA()};
g.y.s$=function(){this.Ch.s$()};
g.y.X$=function(D){this.Ch.X$(D)};
g.y.mF=Dk(54);g.y.Ic=Dk(25);g.y.dO=function(){this.Ch.dO()};
g.y.pauseVideo=function(D){this.Ch.pauseVideo(D)};
g.y.prefetchKeyPlay=function(D,Q){this.Ch.prefetchKeyPlay(D,Q)};
g.y.AF=function(D){this.Ch.AF(D)};
g.y.mx=function(D){this.Ch.mx(D)};
g.y.playVideo=function(D,Q){return this.Ch.playVideo(D,Q)};
g.y.Nf=function(D,Q,m,P,W){this.Ch.Nf(D,Q,m,P,W)};
g.y.F6=Dk(31);g.y.o_=Dk(37);g.y.JX=function(D,Q,m,P,W){this.Ch.JX(D,Q,m,P,W)};
g.y.dc=function(D,Q,m){this.Ch.dc(D,Q,m)};
g.y.pF=function(D){this.Ch.pF(D)};
g.y.qW=function(D,Q){this.Ch.qB.qW(D,Q)};
g.y.kX=function(D,Q,m){this.Ch.kX(D,Q,m)};
g.y.Hs=function(D){this.Ch.Hs(D)};
g.y.Ys=function(D){this.Ch.Ys(D)};
g.y.GF=function(D,Q){this.Ch.GF(D,Q)};
g.y.wf=function(D,Q,m,P,W,L,u,t){this.Ch.wf(D,Q,m,P,W,L,u,t)};
g.y.ub=function(){eYu(this.Ch.qB)};
g.y.sz=function(D){this.Ch.sz(D)};
g.y.Gb=function(D,Q){this.Ch.Gb(D,Q)};
g.y.removeCueRange=function(D){this.Ch.removeCueRange(D)};
g.y.Sw=function(D){this.Ch.Sw(D)};
g.y.aI=function(D){return this.Ch.DQ.aI(D)};
g.y.rX=function(D){this.Ch.rX(D)};
g.y.U3=function(D,Q,m){this.Ch.U3(D,Q,m)};
g.y.bP=function(){this.Ch.bP()};
g.y.kH=function(){this.Ch.DQ.reset()};
g.y.TN=function(){this.Ch.TN()};
g.y.bR=function(D,Q,m){this.Ch.bR(D,Q,m)};
g.y.seekTo=function(D,Q){this.Ch.seekTo(D,Q)};
g.y.sendAbandonmentPing=function(){this.Ch.sendAbandonmentPing()};
g.y.sendVideoStatsEngageEvent=function(D,Q){this.Ch.sendVideoStatsEngageEvent(D,Q)};
g.y.Ao=function(D,Q,m){this.Ch.Ao(D,Q,m)};
g.y.setLoop=function(D){this.Ch.setLoop(D)};
g.y.NS=function(){this.Ch.NS()};
g.y.setMediaElement=function(D){this.Ch.setMediaElement(D)};
g.y.kc=function(D,Q,m,P){this.Ch.kc(D,Q,m,P)};
g.y.setPlaybackRate=function(D){this.Ch.setPlaybackRate(D)};
g.y.Qi=function(D,Q,m,P,W,L){this.Ch.Qi(D,Q,m,P,W,L)};
g.y.lY=function(D,Q){this.Ch.lY(D,Q)};
g.y.wi=function(D){this.Ch.wi(D)};
g.y.setProximaLatencyPreference=function(D){this.Ch.setProximaLatencyPreference(D)};
g.y.wM=function(D,Q,m){this.Ch.wM(D,Q,m)};
g.y.iP=function(){this.Ch.iP()};
g.y.OA=function(D){this.Ch.OA(D)};
g.y.setUserAudio51Preference=function(D,Q){this.Ch.setUserAudio51Preference(D,Q)};
g.y.yT=function(D,Q,m){this.Ch.yT(D,Q,m)};
g.y.KU=function(){return this.Ch.KU()};
g.y.gY=function(){this.Ch.gY()};
g.y.GV=function(){return this.Ch.GV()};
g.y.rM=function(D){this.Ch.rM(D)};
g.y.aW=function(){this.Ch.aW()};
g.y.p$=function(D){this.Ch.p$(D)};
g.y.stopVideo=function(){this.Ch.stopVideo()};
g.y.subscribe=function(D,Q,m){return this.Ch.subscribe(D,Q,m)};
g.y.MK=function(D,Q){this.Ch.MK(D,Q)};
g.y.togglePictureInPicture=function(){this.Ch.togglePictureInPicture()};
g.y.Ef=function(D){return this.Ch.DQ.Ef(D)};
g.y.rf=function(D){this.Ch.DQ.rf(D)};
g.y.unsubscribe=function(D,Q,m){return this.Ch.unsubscribe(D,Q,m)};
g.y.ov=function(D,Q){this.Ch.ov(D,Q)};
g.y.v5=function(D,Q){return this.Ch.v5(D,Q)};
g.y.Mz=function(){this.Ch.Mz()};
g.y.FO=function(D){this.Ch.FO(D)};
g.y.XQ=function(){this.Ch.XQ()};g.Z(g.ui,g.t1);g.y=g.ui.prototype;g.y.show=function(){var D=this.UZ();g.t1.prototype.show.call(this);this.Iy&&(this.U.W(window,"blur",this.eJ),this.U.W(dg(this),"click",this.A4));D||this.publish("show",!0)};
g.y.hide=function(){var D=this.UZ();g.t1.prototype.hide.call(this);BnP(this);D&&this.publish("show",!1)};
g.y.YJ=function(D,Q){this.C=D;this.fade.show();Q?(this.Z||(this.Z=this.U.W(this.D,"appresize",this.l2)),this.l2()):this.Z&&(this.U.qY(this.Z),this.Z=void 0)};
g.y.vU=function(){this.C&&this.element&&(this.C.getAttribute("aria-haspopup"),this.C.setAttribute("aria-expanded","true"),this.focus())};
g.y.l2=function(){var D=g.jh(this.D);this.C&&D.GK(this.element,this.C)};
g.y.eJ=function(){var D=this.UZ();BnP(this);this.fade.hide();D&&this.publish("show",!1)};
g.y.A4=function(D){var Q=F7(D);Q&&(g.y0(this.element,Q)||this.C&&g.y0(this.C,Q)||!g.E9(D))||this.eJ()};
g.y.UZ=function(){return this.To&&this.fade.state!==4};g.Z(z$,g.ui);z$.prototype.YJ=function(){g.ui.prototype.YJ.call(this);this.dialog.focus()};g.Z(g.q$,g.t1);g.q$.prototype.setIcon=function(D){this.updateValue("icon",D)};
g.q$.prototype.updateValue=function(D,Q){g.t1.prototype.updateValue.call(this,D,Q);this.publish("size-change")};g.Ra={Hb:18,fA:17,ApF:16,DOv:15,eB:14,lF:13,E6:12,C7:11,aJ:10,AUDIO:9,SUBTITLES:8,u2:7,SLEEP_TIMER:6,mP:5,MN:4,rR:3,tgT:2,REMOTE:1,nFc:0,18:"LOOP",17:"STABLE_VOLUME",16:"REMOTE_SELECT",15:"SIZE",14:"MINIPLAYER",13:"THREED",12:"AUTONAV",11:"CINEMATIC",10:"ANNOTATIONS",9:"AUDIO",8:"SUBTITLES",7:"VOICE_BOOST",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.Z(oa,g.q$);oa.prototype.aj=function(D){this.C&&this.D.logVisibility(this.element,this.S&&D)};
oa.prototype.B=function(){var D,Q,m=(D=this.D.getVideoData())==null?void 0:(Q=D.accountLinkingConfig)==null?void 0:Q.linked;if(m&&!this.S){var P;D=(P=this.D.getVideoData())==null?void 0:P.accountLinkingConfig;this.setIcon(ZM());var W;g.bi(this,f5(D==null?void 0:(W=D.menuData)==null?void 0:W.connectedMenuLabel));var L,u,t;this.T=new z$(this.D,f5(D==null?void 0:(L=D.menuData)==null?void 0:L.connectedDialogTitle),f5(D==null?void 0:(u=D.menuData)==null?void 0:u.connectedDialogMessage),f5(D==null?void 0:
(t=D.menuData)==null?void 0:t.confirmButtonText));g.O(this,this.T);var z;P=(D==null?void 0:(z=D.menuData)==null?void 0:z.trackingParams)||null;(this.C=!!P)&&this.D.setTrackingParams(this.element,P);this.Cj.CM(this);this.S=!0}else!m&&this.S&&(this.Cj.Vi(this),this.S=!1)};
oa.prototype.onClick=function(){this.C&&this.D.logClick(this.element);this.Cj.eJ();this.T&&this.T.YJ()};g.Z(V3,g.v);V3.prototype.V=function(D){return this.api.V(D)};g.Z(N$,V3);N$.prototype.onVideoDataChange=function(D){if(!D.accountLinkingConfig){var Q,m=(Q=D.getPlayerResponse())==null?void 0:Q.accountLinkingConfig;D.accountLinkingConfig=m}var P;if(Q=(P=D.accountLinkingConfig)==null?void 0:P.alsParam)D.NI=Q};
N$.prototype.setAccountLinkState=function(D){this.api.getVideoData().NI=D;this.api.Wp()};
N$.prototype.updateAccountLinkingConfig=function(D){var Q=this.api.getVideoData(),m=Q.accountLinkingConfig;m&&(m.linked=D);this.api.publish("videodatachange","dataupdated",Q,this.api.getPresentingPlayerType())};g.Z(y3,V3);y3.prototype.s5=function(){var D=this.api.getPlaybackRate(),Q;if(this.V("html5_inline_muted_feed_ad_playback_rate_fix")){var m;if(!(m=wS$(this)))if(m=this.api.getVideoData()){var P=m.adFormat==="15_6",W=((Q=m.HT)==null?void 0:Ju(Q,5))===7;m=m.isAd()&&(P||W)}else m=!1;Q=m}else Q=wS$(this);Q?(D!==1&&(this.S=D),this.api.setPlaybackRate(1)):this.S!==null&&(this.api.setPlaybackRate(this.S),this.S=null)};g.Z(F6,V3);
F6.prototype.C=function(D){var Q=D.getId(),m=this.api.getVideoData(1),P=!this.api.isInline();if(!m.inlineMetricEnabled||P){if(Q==="part2viewed"){if(m.Rp&&g.Ro(m.Rp),m.Ub&&T$(this,m.Ub),m.lk)for(var W={CPN:this.api.getVideoData().clientPlaybackNonce},L=g.T(m.lk),u=L.next();!u.done;u=L.next())T$(this,g.BV(u.value,W))}else Q==="engagedview"&&m.FH&&(W={CPN:this.api.getVideoData().clientPlaybackNonce},g.Ro(g.BV(m.FH,W)));m.K3&&(W=m.K3,L=D.getId(),W=DG(W,{label:L}),g.Ro(W));switch(Q){case "videoplaytime25":m.Tf&&T$(this,
m.Tf);m.G4&&hh(this,m.G4);m.n3&&g.Ro(m.n3);break;case "videoplaytime50":m.dL&&T$(this,m.dL);m.sb&&hh(this,m.sb);m.NU&&g.Ro(m.NU);break;case "videoplaytime75":m.B9&&T$(this,m.B9);m.IU&&hh(this,m.IU);m.H9&&g.Ro(m.H9);break;case "videoplaytime100":m.C3&&T$(this,m.C3),m.YG&&hh(this,m.YG),m.Dl&&g.Ro(m.Dl)}(W=this.api.getVideoData().yN)&&RFr(this,W,D.getId())&&RFr(this,W,D.getId()+"gaia")}if(m.inlineMetricEnabled&&!P)switch(Q){case "videoplaybackstart":var t,z=(t=m.Zd)==null?void 0:t.S;z&&T$(this,z);break;
case "videoplayback2s":(t=(z=m.Zd)==null?void 0:z.T)&&T$(this,t);break;case "videoplayback10s":var b;(t=(b=m.Zd)==null?void 0:b.C)&&T$(this,t)}this.api.sY([D],1)};g.Z(Hi_,V3);g.Z(n5,V3);n5.prototype.getUserAudioQualitySetting=function(){return this.Dc};
n5.prototype.setUserAudioQualitySetting=function(D){this.api.dc("aqs_set",{setting:D});g.wb("yt-player-audio-quality-setting",D);D!==this.Dc&&(this.Dc=D,this.updateEnvironmentData())};
n5.prototype.hasHqaAudioTrack=function(){var D,Q,m=(D=this.api.getVideoData())==null?void 0:(Q=D.T)==null?void 0:Q.S;return m?v9(m,function(P){var W;return((W=P.audio)==null?void 0:W.audioQuality)==="AUDIO_QUALITY_HIGH"}):!1};
n5.prototype.updateEnvironmentData=function(){this.api.G().Dc=this.Dc};g.Z(Kb_,V3);g.Z(ED,g.p);g.y=ED.prototype;
g.y.PN=function(){var D;if(D=this.D.getPresentingPlayerType()!==3&&g.mW(this.D)&&this.D.fh().getPlayerSize().width>=400)if(D=this.tD(),this.D.G().V("client_respect_autoplay_switch_button_renderer"))D=!!D.autoplaySwitchButtonRenderer;else{var Q,m,P,W;D=!!((Q=D.getWatchNextResponse())==null?0:(m=Q.contents)==null?0:(P=m.twoColumnWatchNextResults)==null?0:(W=P.autoplay)==null?0:W.autoplay)!==!1}if(D)this.S||(this.S=!0,this.FA(this.S),this.D.G().V("web_player_autonav_toggle_always_listen")||j66(this),
Q=this.tD(),this.iN(Q.autonavState),this.D.logVisibility(this.element,this.S));else if(this.S=!1,this.FA(this.S),!this.D.G().V("web_player_autonav_toggle_always_listen"))for(this.D.G().V("web_player_autonav_toggle_always_listen"),Q=g.T(this.C),m=Q.next();!m.done;m=Q.next())this.qY(m.value)};
g.y.iN=function(D){eF$(this)?this.isChecked=D!==1:((D=D!==1)||(g.H5(),D=g.oi("web_autonav_allow_off_by_default")&&!g.KU(0,141)&&g.YK("AUTONAV_OFF_BY_DEFAULT")?!1:!g.KU(0,140)),this.isChecked=D);$9m(this)};
g.y.onClick=function(){this.isChecked=!this.isChecked;this.D.yH(this.isChecked?2:1);$9m(this);if(eF$(this)){var D=this.tD().autoplaySwitchButtonRenderer;this.isChecked&&(D==null?0:D.onEnabledCommand)?this.D.sW("innertubeCommand",D.onEnabledCommand):!this.isChecked&&(D==null?0:D.onDisabledCommand)&&this.D.sW("innertubeCommand",D.onDisabledCommand)}this.D.logClick(this.element)};
g.y.getValue=function(){return this.isChecked};
g.y.tD=function(){return this.D.getVideoData(1)};g.Z(veu,V3);g.Z(gg,g.q$);gg.prototype.onClick=function(){this.enabled&&(Bj(this,!this.checked),this.publish("select",this.checked))};
gg.prototype.getValue=function(){return this.checked};
gg.prototype.setEnabled=function(D){(this.enabled=D)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var x9m={rf0:2,u2:1,fA:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var Jh=["en-CA","en","es-MX","fr-CA"];g.Z(Hj,gg);Hj.prototype.Lh=function(D){D?this.S||(this.Cj.CM(this),this.S=!0):this.S&&(this.Cj.Vi(this),this.S=!1);this.S&&Bj(this,RAj())};
Hj.prototype.B=function(){g.Wo(this.element,"ytp-menuitem-highlight-transition-enabled")};
Hj.prototype.T=function(D){var Q=RAj();D!==Q&&(Q=g.H5(),$t(190,D),$t(192,!0),Q.save(),this.D.sW("cinematicSettingsToggleChange",D))};
Hj.prototype.Bq=function(){this.S&&this.Cj.Vi(this);gg.prototype.Bq.call(this)};g.Z(K5,V3);K5.prototype.updateCinematicSettings=function(D){this.S=D;var Q;(Q=this.menuItem)==null||Q.Lh(D);this.api.publish("onCinematicSettingsVisibilityChange",D)};g.Z(pSj,V3);g.Z(j9,V3);j9.prototype.setCreatorEndscreenVisibility=function(D){var Q;(Q=jM(this.api.HY()))==null||Q.FA(D)};
j9.prototype.S=function(D){function Q(P){P==="creatorendscreen"&&(P=jM(m.api.HY()))&&P.Tsh(m.hideButton)}
var m=this;this.hideButton=D;this.events.W(this.api,"modulecreated",Q);Q("creatorendscreen")};g.Z($_,gg);$_.prototype.B=function(D){this.T(D?1:0);this.D.publish("audiopreferencechange")};
$_.prototype.US=function(){if(this.enableNewAudioSettingsMenu){var D=this.D.getPresentingPlayerType();D===2||D===3?(this.S=!1,this.Cj.Vi(this)):(D=this.getDrcState(),D!==1?(D===0?(Bj(this,this.C()===1),this.setEnabled(!0)):(Bj(this,!1),this.setEnabled(!1)),this.S||(this.Cj.CM(this),this.S=!0)):this.S&&(this.Cj.Vi(this),this.S=!1))}else{D=this.hasDrcAudioTrack();var Q=this.C()===1&&D;Bj(this,Q);this.setEnabled(D)}};
$_.prototype.Bq=function(){this.Cj.Vi(this);gg.prototype.Bq.call(this)};g.Z(e9,V3);g.y=e9.prototype;g.y.getDrcUserPreference=function(){return this.S};
g.y.setDrcUserPreference=function(D){g.wb("yt-player-drc-pref",D,31536E3);D!==this.S&&(this.S=D,this.updateEnvironmentData(),this.q6()&&this.api.XQ())};
g.y.updateEnvironmentData=function(){this.api.G().PO=this.S===1};
g.y.q6=function(){var D,Q,m=(D=this.api.getVideoData())==null?void 0:(Q=D.T)==null?void 0:Q.S;if(!m)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var P,W,L=(P=this.api.wS())==null?void 0:(W=P.WY)==null?void 0:W.id;return v9(m,function(u){var t;return u.audio.S&&((t=u.WY)==null?void 0:t.id)===L})}return v9(m,function(u){var t;
return((t=u.audio)==null?void 0:t.S)===!0})};
g.y.getDrcState=function(){return this.api.ix(2)};g.Z(vj,V3);vj.prototype.onVideoDataChange=function(){var D=this,Q=this.api.getVideoData();this.api.aI("embargo",1);var m=Q==null?void 0:Q.h2.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(m==null?0:m.length)?SE_(this,m.filter(function(P){return XSw(D,P)})):(Q==null?0:Q.cueRanges)&&SE_(this,Q.cueRanges.filter(function(P){return XSw(D,P)}))};
vj.prototype.C=function(D){return D.embargo!==void 0};
vj.prototype.Bq=function(){V3.prototype.Bq.call(this);this.S={}};g.Z(OD,V3);
OD.prototype.addEmbedsConversionTrackingParams=function(D){var Q=this.api.G(),m=Q.widgetReferrer,P=Q.pj,W=this.S,L="",u=Q.getWebPlayerContextConfig();u&&(L=u.embedsIframeOriginParam||"");m.length>0&&(D.embeds_widget_referrer=m);P.length>0&&(D.embeds_referring_euri=P);Q.B&&L.length>0&&(D.embeds_referring_origin=L);u&&u.embedsFeature&&(D.feature=u.embedsFeature);W.length>0&&(Q.V("embeds_web_enable_lite_experiment_control_arm_logging")?W.unshift(28572):g.sI(g.qS(Q))&&W.unshift(159628),Q=W.join(","),Q=
g.e8()?Q:g.gP(Q,4),D.source_ve_path=Q);this.S.length=0};g.Z(rK7,V3);g.Z(GNw,V3);g.Z(Y_,g.v);Y_.prototype.Bq=function(){g.v.prototype.Bq.call(this);this.S=null;this.C&&this.C.disconnect()};g.Z(cKr,V3);g.Z(aa,g.p);aa.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
aa.prototype.stopTimer=function(){this.S&&(this.S.dispose(),this.S=null)};
aa.prototype.onVideoDataChange=function(D){var Q,m,P=(Q=this.api.getVideoData())==null?void 0:(m=Q.getPlayerResponse())==null?void 0:m.playabilityStatus;P&&(Q=DjP(P),g.X(this.api.getPlayerStateObject(),128)||D==="dataloaderror"||!Q?(this.C=0,this.stopTimer(),this.hide()):(D=(Q.remainingTimeSecs||0)*1E3,D>0&&(this.show(),this.updateValue("label",m1(Q.label)),mj9(this,D))))};
aa.prototype.Bq=function(){this.stopTimer();g.p.prototype.Bq.call(this)};g.Z(Ptj,V3);g.Z(Ah,g.p);Ah.prototype.onClick=function(){this.zO.logClick(this.element);this.zO.sW("onFullerscreenEduClicked")};
Ah.prototype.Lh=function(){this.zO.isFullscreen()?this.S?this.fade.hide():this.fade.show():this.hide();this.zO.logVisibility(this.element,this.zO.isFullscreen()&&!this.S)};g.Z(p5,V3);p5.prototype.updateFullerscreenEduButtonSubtleModeState=function(D){var Q;(Q=this.S)!=null&&(g.sh(Q.element,"ytp-fullerscreen-edu-button-subtle",D),D&&!Q.C&&(Q.zO.V("player_tooltip_data_title_killswitch")?Q.element.setAttribute("title","Scroll for details"):Q.element.setAttribute("data-tooltip-title","Scroll for details"),A2(Q.zO,Q.element,Q),Q.C=!0))};
p5.prototype.updateFullerscreenEduButtonVisibility=function(D){var Q;(Q=this.S)!=null&&(Q.S=D,Q.Lh())};g.Z(W14,g.p);g.Z(L17,V3);g.Z(x_,V3);x_.prototype.getSphericalProperties=function(){var D=g.cU(this.api.HY());return D?D.getSphericalProperties():{}};
x_.prototype.setSphericalProperties=function(D){if(D){var Q=g.cU(this.api.HY());Q&&Q.setSphericalProperties(D,!0)}};g.Z(X6,V3);g.y=X6.prototype;g.y.createClientVe=function(D,Q,m,P){this.api.createClientVe(D,Q,m,P===void 0?!1:P)};
g.y.createServerVe=function(D,Q,m){this.api.createServerVe(D,Q,m===void 0?!1:m)};
g.y.setTrackingParams=function(D,Q){this.api.setTrackingParams(D,Q)};
g.y.logClick=function(D,Q){this.api.logClick(D,Q)};
g.y.logVisibility=function(D,Q,m){this.api.logVisibility(D,Q,m)};
g.y.hasVe=function(D){return this.api.hasVe(D)};
g.y.destroyVe=function(D){this.api.destroyVe(D)};G$.prototype.ix=function(D){return this.S[D]};
G$.prototype.QW=function(){for(var D=this.T,Q={},m=g.T(S9),P=m.next();!P.done;P=m.next())if(P=P.value,this.C[P]){D=rg[P].pX(D,this.videoData);for(var W=g.T(S9),L=W.next();!L.done;L=W.next())L=L.value,Q[L]!==void 0||v9(D,rg[L].Wv)||(Q[L]=rg[P].W$);Q[P]===void 0&&(Q[P]=0)}else Q[P]=1;this.S=Q};
var S9=[0,1,3,2],b0={},rg=(b0[0]={W$:2,Wv:ofj,pX:u2h},b0[1]={W$:3,Wv:dj7,pX:tc4},b0[2]={W$:4,Wv:zb7,pX:bxj},b0[3]={W$:5,Wv:qeu,pX:Ctm},b0);var Vck=!1;cj.prototype.setPlaybackRate=function(D){this.playbackRate=Math.max(1,D)};
cj.prototype.getPlaybackRate=function(){return this.playbackRate};WO.prototype.V9=function(D){var Q=g.Qh(D.info.S.info,this.UW.VX),m=D.info.J0+this.B,P=D.info.startTime*1E3;if(this.policy.l0)try{P=this.policy.l0?g.J7(D)*1E3:D.info.startTime*1E3}catch(u){Math.random()>.99&&this.logger&&(P=qy(D.C).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:D.info.Hn(),encodedDataView:g.EG(P,4)})),P=D.info.startTime*1E3}var W=D.info.clipId,L=this.policy.l0?g.p6r(D)*1E3:D.info.duration*1E3;this.policy.l0&&(P<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:D.info.Hn(),
startTimeMs:P,durationMs:L}),this.policy.Cm||(P<0&&(P=D.info.startTime*1E3),L<0&&(L=D.info.duration*1E3))),this.policy.Cm&&(P<0&&(P=D.info.startTime*1E3),L<0&&(L=D.info.duration*1E3)));return{formatId:Q,J0:m,startTimeMs:P,clipId:W,TR:L}};
WO.prototype.In=function(D){this.timestampOffset=D};iO.prototype.seek=function(D,Q){D!==this.targetTime&&(this.seekCount=0);this.targetTime=D;var m=this.videoTrack.C,P=this.audioTrack.C,W=this.audioTrack.zo,L=Hx7(this,this.videoTrack,D,this.videoTrack.zo,Q);Q=Hx7(this,this.audioTrack,this.policy.gi?D:L,W,Q);D=Math.max(D,L,Q);this.B=!0;this.UW.isManifestless&&(J34(this,this.videoTrack,m),J34(this,this.audioTrack,P));return D};
iO.prototype.isSeeking=function(){return this.B};
iO.prototype.Xh=function(D){this.C=D};
var Uj_=2/24;var $jh=0;g.y=fF.prototype;g.y.vL=function(){this.j=this.now();ZN$(this.uE,this.j);this.DG.vL()};
g.y.IG=function(D,Q){var m=this.policy.C?(0,g.T3)():0;VG(this,D,Q);D-this.N<10&&this.C>0||this.HE(D,Q);this.DG.IG(D,Q);this.policy.C&&(D=(0,g.T3)()-m,this.Kj+=D,this.oy=Math.max(D,this.oy))};
g.y.HE=function(D,Q){var m=(D-this.N)/1E3,P=Q-this.T;this.AP||(SC(this.uE,m,P),this.zj(m,P));this.N=D;this.T=Q};
g.y.jR=function(){this.QF&&eb7(this);this.DG.jR()};
g.y.TA=function(D){this.QF||(this.QF=this.J-this.Lj+D,this.pj=this.J,this.dn=this.U)};
g.y.Uf=function(D,Q){D=D===void 0?this.U:D;Q=Q===void 0?this.J:Q;this.C>0||(this.Z=D,this.C=Q,this.TO=this.isActive=!0)};
g.y.T6=function(){return this.ze||2};
g.y.OE=function(){};
g.y.Rb=function(){var D,Q={rn:this.requestNumber,rt:(this.U-this.S).toFixed(),lb:this.J,stall:(1E3*this.B).toFixed(),ht:(this.j-this.S).toFixed(),elt:(this.Z-this.S).toFixed(),elb:this.C,d:(D=this.t0)==null?void 0:D.R_()};this.url&&fo4(Q,this.url);this.policy.C&&(Q.mph=this.oy.toFixed(),Q.tph=this.Kj.toFixed());Q.ulb=this.wc;Q.ult=this.Iy;return Q};
g.y.now=function(){return(0,g.T3)()};
g.y.deactivate=function(){this.isActive&&(this.isActive=!1)};g.Z(yG,fF);g.y=yG.prototype;g.y.Rb=function(){var D=fF.prototype.Rb.call(this);D.pb=this.JA;D.pt=(1E3*this.jD).toFixed();D.se=this.PY;return D};
g.y.Zm=function(){var D=this.DG;this.GO||(this.GO=D.Zm?D.Zm():1);return this.GO};
g.y.Tw=function(){return this.zx?this.Zm()!==1:!1};
g.y.aL=function(D,Q,m){if(!this.cY){this.cY=!0;if(!this.AP){VG(this,D,Q);this.HE(D,Q);var P=this.Zm();this.PY=m;if(!this.AP)if(P===2){P=D-this.Z<this.T6()*1E3+50;m=this.Iy?this.wc/(this.Iy/1E3):m||this.XT;var W=this.LZ*1.3;P&&m<W||(this.Iy?AY(this.uE,this.Iy/1E3,this.wc,this.k9||this.policy.TO):AY(this.uE,Q/m,Q,.01));xu(this.uE,Q,P?0:this.B)}else P===1&&(P=(D-this.S)/1E3,!(P<=this.policy.B)&&this.policy.B||this.gB||this.policy.j||!(this.C>0)||ZJ(this,P,Q),this.C>0&&xu(this.uE,Q,this.B));D=(D-this.S)/
1E3||.01;this.policy.Z&&!(this.C>0)||pD(this.uE,D,this.T,Ox7(this),this.Ov)}this.deactivate()}};
g.y.Of=function(D,Q,m){m&&(this.GO=2);D<0&&this.ze&&(D=this.ze);Q?this.Y9+=D:this.k9+=D};
g.y.T6=function(){return this.k9||this.Y9||fF.prototype.T6.call(this)};
g.y.HE=function(D,Q){var m=(D-this.N)/1E3,P=Q-this.T,W=this.Zm();this.isActive?W===1&&((P>0||this.policy.J)&&(m>.2||P<1024)?(this.B+=m,P>0&&m>.2&&ZJ(this,this.LZ?m:.05,P),this.gB=!0):P>0&&(ZJ(this,m,P),this.gB=!0)):Q&&Q>=this.policy.S&&this.Uf(D,Q);fF.prototype.HE.call(this,D,Q)};
g.y.WG=function(D){if(!this.AP){VG(this,D,this.J);var Q=(D-this.S)/1E3;this.Zm()!==2&&this.C>0&&(this.B+=(D-this.N)/1E3,xu(this.uE,this.T,this.B));pD(this.uE,Q,this.T,Ox7(this),this.Ov,!0);D=(D-this.N)/1E3;SC(this.uE,D,0);this.zj(D,0)}};
g.y.Uf=function(D,Q){D=D===void 0?this.U:D;Q=Q===void 0?this.J:Q;if(!(this.C>0)&&(fF.prototype.Uf.call(this,D,Q),this.Zm()===1)){Q=(this.j-this.S)/1E3;var m=(D-this.j)/1E3;this.zx&&Fl(this,this.now());this.hU||this.AP||(this.ze&&(m=Math.max(0,m-this.ze)),D=this.uE,D.Z.X9(1,Q),D.t0.X9(1,m))}};
g.y.Ew=function(){this.zx&&Fl(this,this.now());return this.x9};
g.y.f2=function(){var D;if(D=this.T>this.W4)D=(D=this.T)?D>=this.policy.S:!1;return D};
g.y.RK=function(){return this.l0};
g.y.K_=function(D){D=D===void 0?this.now():D;if(this.zx){Fl(this,D);if(this.GO?this.Tw():this.Kh!==this.u0){var Q=this.u0;if(D<Q){this.l0=this.u0;return}}else Q=this.Kh;Q=Math.max(Q,this.x9)}else Q=this.x9;var m=this.JA-this.T;m<0&&(m=0);m=(m*this.snapshot.stall+m/this.snapshot.byterate)*1E3;this.l0=m=this.C>0?m+D:m+Math.max(D,Q)};
g.y.fX=function(){return this.now()-this.Z};
g.y.Sm=function(){return(this.T-this.C)*1E3/this.fX()||0};
g.y.Fy=function(){return this.Z};TD.prototype.feed=function(D){uo(this.S,D);this.UC()};
TD.prototype.UC=function(){if(this.B){if(!this.S.totalLength)return;var D=this.S.split(this.T-this.C),Q=D.Ul;D=D.Gx;if(!this.DG.TA(this.B,Q,this.C,this.T))return;this.C+=Q.totalLength;this.S=D;this.C===this.T&&(this.B=this.T=this.C=void 0)}for(;;){var m=0;D=g.T(p44(this.S,m));Q=D.next().value;m=D.next().value;m=g.T(p44(this.S,m));D=m.next().value;m=m.next().value;if(Q<0||D<0)break;if(!(m+D<=this.S.totalLength)){if(!(this.DG.TA&&m+1<=this.S.totalLength))break;m=this.S.split(m).Gx;this.DG.TA(Q,m,0,
D)&&(this.B=Q,this.C=m.totalLength,this.T=D,this.S=new Lh([]));break}D=this.S.split(m).Gx.split(D);m=D.Gx;this.DG.C$(Q,D.Ul);this.S=m}};
TD.prototype.dispose=function(){this.S=new Lh};g.y=hp.prototype;g.y.iJ=function(){return 0};
g.y.Ox=function(){return null};
g.y.A_=function(){return null};
g.y.ED=function(){return this.state>=1};
g.y.isComplete=function(){return this.state>=3};
g.y.U1=function(){return this.state===5};
g.y.onStateChange=function(){};
g.y.pM=function(D){var Q=this.state;this.state=D;this.onStateChange(Q);this.callback&&this.callback(this,Q)};
g.y.Gh=function(D){D&&this.state<D?this.pM(D):this.callback&&this.callback(this,this.state)};
g.y.VF=function(){return this.state===-1};
g.y.Hn=function(){var D="";this.info.EW.forEach(function(Q){D+=Q.Hn()+"."});
return D.slice(0,-1)};
g.y.dispose=function(){this.VF()||(this.info.EW[0].S.T=!1,this.pM(-1))};
g.y.hS=function(){return 0};g.y=nF.prototype;g.y.y8=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.DG.vL()};
g.y.onError=function(){this.T=!0;this.onDone()};
g.y.onDone=function(){this.VF||(this.B=!0,this.DG.jR())};
g.y.WZ=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.y.getResponseHeader=function(D){try{return this.xhr.getResponseHeader(D)}catch(Q){return""}};
g.y.DC=function(){return+this.getResponseHeader("content-length")};
g.y.OT=function(){return this.C};
g.y.FR=function(){return this.status>=200&&this.status<300&&!!this.C};
g.y.cI=function(){return this.S.totalLength>0};
g.y.KJ=function(){var D=this.S;this.S=new Lh;return D};
g.y.Je=function(){return this.S};
g.y.abort=function(){this.VF=!0;this.xhr.abort()};
g.y.Gj=function(){return!0};
g.y.PW=function(){return this.T};
g.y.tN=function(){return""};g.y=r3h.prototype;g.y.getResponseHeader=function(D){return D==="content-type"?this.S.get("type"):""};
g.y.abort=function(){};
g.y.WZ=function(){return!0};
g.y.DC=function(){return this.range.length};
g.y.OT=function(){return this.loaded};
g.y.FR=function(){return!!this.loaded};
g.y.cI=function(){return!!this.C.totalLength};
g.y.KJ=function(){var D=this.C;this.C=new Lh;return D};
g.y.Je=function(){return this.C};
g.y.Gj=function(){return!0};
g.y.PW=function(){return!!this.error};
g.y.tN=function(){return this.error};g.y=Mcn.prototype;g.y.start=function(D){var Q={credentials:"include",cache:"no-store"};Object.assign(Q,this.U);this.B&&(Q.signal=this.B.signal);D=new Request(D,Q);fetch(D).then(this.j,this.onError).then(void 0,PD)};
g.y.onDone=function(){this.VF()||this.DG.jR()};
g.y.getResponseHeader=function(D){return this.responseHeaders?this.responseHeaders.get(D):null};
g.y.WZ=function(){return!!this.responseHeaders};
g.y.OT=function(){return this.C};
g.y.DC=function(){return+this.getResponseHeader("content-length")};
g.y.FR=function(){return this.status>=200&&this.status<300&&!!this.C};
g.y.cI=function(){return!!this.S.totalLength};
g.y.KJ=function(){var D=this.S;this.S=new Lh;return D};
g.y.Je=function(){return this.S};
g.y.VF=function(){return this.J};
g.y.abort=function(){this.T&&this.T.cancel().catch(function(){});
this.B&&this.B.abort();this.J=!0};
g.y.Gj=function(){return!0};
g.y.PW=function(){return this.N};
g.y.tN=function(){return this.errorMessage};g.y=c3w.prototype;g.y.onDone=function(){if(!this.VF){this.status=this.xhr.status;try{this.response=this.xhr.response,this.C=this.response.byteLength}catch(D){}this.S=!0;this.DG.jR()}};
g.y.y8=function(){this.xhr.readyState===2&&this.DG.vL()};
g.y.onProgress=function(D){this.VF||(this.status=this.xhr.status,this.S||(this.C=D.loaded),this.DG.IG((0,g.T3)(),D.loaded))};
g.y.WZ=function(){return this.xhr.readyState>=2};
g.y.getResponseHeader=function(D){try{return this.xhr.getResponseHeader(D)}catch(Q){return g.l4(Error("Could not read XHR header "+D)),""}};
g.y.DC=function(){return+this.getResponseHeader("content-length")};
g.y.OT=function(){return this.C};
g.y.FR=function(){return this.status>=200&&this.status<300&&this.S&&!!this.C};
g.y.cI=function(){return this.S&&!!this.response&&!!this.response.byteLength};
g.y.KJ=function(){var D=this.response;this.response=void 0;return new Lh([new Uint8Array(D)])};
g.y.Je=function(){return new Lh([new Uint8Array(this.response)])};
g.y.abort=function(){this.VF=!0;this.xhr.abort()};
g.y.Gj=function(){return!1};
g.y.PW=function(){return!1};
g.y.tN=function(){return""};g.Z(gY,g.v);gY.prototype.pZ=function(){if(!this.Mm.length)return[];var D=this.Mm;this.Mm=[];this.T=g.fV(D).info;return D};
gY.prototype.hX=function(){return this.Mm};
gY.prototype.Bq=function(){g.v.prototype.Bq.call(this);this.S=null;this.Mm.length=0;this.EW.length=0;this.T=null};g.Z(wY,g.v);g.y=wY.prototype;
g.y.r8h=function(){if(!this.VF()){var D=(0,g.T3)(),Q=!1;if(this.policy.KZ){var m=this.timing.C>0?this.timing.Z:this.timing.S;this.policy.YG&&this.T&&(m=this.T);D=D-m-this.timing.T6()*1E3;m=pd(kx(this),!1);D>=2E3*m?Q=!0:D>=this.policy.yN*m&&(this.S=this.policy.Ik)}else if(this.timing.C>0){if(this.N){this.policy.kJ&&(this.S=0);return}var P=this.timing.RK();this.timing.K_();var W=this.timing.RK();W-P>=this.policy.PO*.8?(this.S++,this.logger.debug(function(){return"Mispredicted by "+(W-P).toFixed(0)}),
Q=this.S>=5):this.S=0}else{var L=D-this.timing.Ew();
this.policy.Ik&&L>0&&(this.S+=1);Q=pd(kx(this),!1)*this.policy.h2;(Q=L>Q*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.S>0&&this.DG.vJ();
Q?this.fk():this.C.start()}};
g.y.fk=function(){this.J=!0;this.DG.Xj();this.lastError="net.timeout";lO(this)};
g.y.canRetry=function(D){var Q=kx(this);D=D?this.policy.Us:this.policy.Pj;return Q.timedOut<this.policy.rz&&Q.S<D};
g.y.X6=function(){return this.lastError};
g.y.Vq=function(){return this.S};
g.y.dispose=function(){this.C.dispose();g.v.prototype.dispose.call(this)};var qn={},Zd7=(qn["1h"]=8,qn["9h"]=4,qn["1"]=8,qn["9"]=4,qn["("]=4,qn.h=2,qn.H=2,qn),Cl={},Fur=(Cl.o=3,Cl.O=3,Cl.so=3,Cl.a=1,Cl.ah=1,Cl.A=1,Cl.m=1,Cl.M=1,Cl.sa=1,Cl.mac3=7,Cl.MAC3=7,Cl.meac3=5,Cl.MEAC3=5,Cl),oE={},hfn=(oE.o=0,oE.O=0,oE.a=0,oE.ah=0,oE.A=0,oE.m=1,oE.M=1,oE.mac3=1,oE.MAC3=1,oE.meac3=1,oE.MEAC3=1,oE.so=4,oE.sa=4,oE);var By4={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 KF,HO,ju=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],C57=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],ogP=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],f2m=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],VJu=["412","359"],Nyk=[["141"],["774"],["380"],["328"]],fl={},zf4=(fl["398"]="397 396 395 394 788 787".split(" "),
fl["247"]=["780","779","244","243","242"],fl["136"]=["135","134","133","160"],fl["141"]=["140"],fl["774"]=["251","250"],fl),VF={},bdm=(VF["135"]=["134","133","160"],VF["243"]=["242"],VF["781"]=["780","779"],VF["777"]=["776","775"],VF["396"]=["395","394"],VF["141"]=["140"],VF["774"]=["251","250"],VF),Nn={},qmm=(Nn["274"]=["317","273","318","280","279"],Nn["145"]=["144","222","223","143","142"],Nn["141"]=["149"],Nn["140"]=["149"],Nn["380"]=["381"],Nn["328"]=["329"],Nn),yF={},dk9=(yF["133"]=240,yF["134"]=
360,yF["135"]=480,yF["136"]=720,yF["137"]=1080,yF["242"]=240,yF["243"]=360,yF["244"]=480,yF["247"]=720,yF["248"]=1080,yF["298"]=720,yF["299"]=1080,yF["302"]=720,yF["303"]=1080,yF["395"]=240,yF["396"]=360,yF["397"]=480,yF["398"]=720,yF["399"]=1080,yF);var ngw={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.Z(LF,hp);g.y=LF.prototype;g.y.eP=function(){return this.timing.requestNumber};
g.y.AD=function(){return this.ek.AD()};
g.y.Y0=function(){var D=s5$(this.xJ);if(this.Xf){var Q=this.Xf,m=Q.S.totalLength;D.ulen=m;m>0&&(Q=Ch(Q.S,0),D.ubyte=Q,m===1&&Q===0&&(D.b248180278=!0))}this.al&&(D.rc=this.policy.jH?this.al:this.al.toString());this.policy.yn&&this.aM&&(D.tr=this.aM);D.itag=this.info.EW[0].S.info.itag;D.ml=""+ +this.info.EW[0].S.xa();D.sq=""+this.info.EW[0].J0;this.ek&&(D.ifi=""+ +QI(this.info.NB.C));this.al!==410&&this.al!==500&&this.al!==503||(D.fmt_unav="true");var P;(m=this.errorMessage||((P=this.xhr)==null?void 0:
P.tN()))&&(D.msg=m);this.Do&&(D.smb="1");this.info.isDecorated()&&(D.sdai="1");return D};
g.y.qT=function(){return Ye4(this.timing)};
g.y.tN=function(){return this.xhr.tN()||""};
g.y.f2=function(){return this.isComplete()||this.timing.f2()};
g.y.IG=function(){!this.VF()&&this.xhr&&(this.al=this.xhr.status,this.policy.OI&&this.JN&&this.vk(!1),this.Ap()?this.Gh(2):!this.Vh&&this.f2()&&(this.Gh(),this.Vh=!0))};
g.y.vL=function(){if(!this.VF()&&this.xhr){if(!this.hA&&this.xhr.WZ()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var D=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.hA=((0,g.T3)()-D)/1E3}this.xhr.WZ()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.XK&&!XF9()&&g.wb("yt-player-headers-readable",!0,2592E3);D=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),m;(m=this.DL)==null||m.stop();this.C0=D||this.C0;
this.VW=Q||this.VW}};
g.y.jR=function(){var D=this.xhr;if(!this.VF()&&D){this.al=D.status;D=this.Uh(D);if(this.policy.yn){var Q;(Q=this.DL)==null||Q.stop()}D===5?lO(this.xJ):this.pM(D);this.xJ.C.stop()}};
g.y.Uh=function(D){var Q=this;I2h(this);if(IV(this.xJ,this.xhr.status,this.Dg?this.timing.TO||this.XO:this.xhr.FR(),!1,this.ow))return 5;var m="";RV(this.xJ,this.xhr)&&(m=id9(this.xJ,this.xhr));if(m)return Ag(kx(this.xJ)),this.info.xN(this.ek,m),3;m=D.OT();if(this.Xf){this.vk(!0);I2h(this);if(IV(this.xJ,this.xhr.status,this.timing.TO||this.XO,!1,this.ow))return 5;if(!this.IJ){if(this.XO)return Ag(kx(this.xJ)),3;this.xJ.lastError="net.closed";return 5}}else{if(IV(this.xJ,this.xhr.status,this.xhr.FR(),
!1,this.ow))return 5;var P=this.info.T;if(P&&P!==m||D.PW())return this.xJ.lastError="net.closed",5;this.vk(!0)}P=xjm(this)?D.getResponseHeader("X-Bandwidth-Est"):0;if(D=xjm(this)?D.getResponseHeader("X-Bandwidth-Est3"):0)this.Xr=!0,this.policy.O4&&(P=D);P56(this.xJ,m,P?Number(P):0,this.info.EW[0].type===5);this.logger.debug(function(){var W=Q.timing;return"Succeeded, rtpd="+(W.jD*1E3+W.S-Date.now()).toFixed(0)});
return 4};
g.y.canRetry=function(){this.VF();var D=this.info.isDecorated();return this.xJ.canRetry(D)};
g.y.onStateChange=function(){this.isComplete()&&(this.policy.iR?this.Xj():this.timing.deactivate())};
g.y.fk=function(){this.xJ.fk()};
g.y.vJ=function(){this.callback&&this.callback(this,this.state)};
g.y.Vq=function(){return this.xJ.Vq()};
g.y.dispose=function(){hp.prototype.dispose.call(this);this.xJ.dispose();var D;(D=this.DL)==null||D.dispose();this.policy.iR||this.Xj()};
g.y.Xj=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.y.pZ=function(){if(!this.hX().length)return[];this.r0=!0;return this.JN.pZ()};
g.y.Ap=function(){if(this.state<1)return!1;if(this.JN&&this.JN.Mm.length)return!0;var D;return((D=this.xhr)==null?0:D.cI())?!0:!1};
g.y.hX=function(){this.vk(!1);return this.JN?this.JN.hX():[]};
g.y.vk=function(D){try{if(D||this.xhr.WZ()&&this.xhr.cI()&&!RV(this.xJ,this.xhr)&&!this.dU)this.JN||(this.JN=new gY(this.policy,this.info.EW)),this.xhr.cI()&&(this.Xf?this.Xf.feed(this.xhr.KJ()):BO(this.JN,this.xhr.KJ(),D&&!this.xhr.cI()))}catch(Q){this.Xf?ko7(this,Q):g.l4(Q)}};
g.y.C$=function(D,Q){switch(D){case 21:D=Q.split(1).Gx;Jg_(this,D);break;case 22:this.IJ=!0;BO(this.JN,new Lh([]),!0);break;case 43:if(D=w3(new TW(Q),1))this.info.xN(this.ek,D),this.XO=!0;break;case 45:Q=jk(new TW(Q));D=Q.U8;Q=Q.qd;D&&Q&&(this.yJ=D/Q);break;case 44:this.Vp=nBn(new TW(Q));var m,P,W;!this.timing.TO&&((m=this.Vp)==null?void 0:m.action)===4&&((P=this.Vp)==null?0:(W=P.Zz)==null?0:W.Dg)&&(this.Dg=this.Vp.Zz.Dg);break;case 53:this.policy.yn&&(D=FFu(new TW(Q)).Hj)&&(this.DL||(this.Hj=D,this.DL=
new g.pJ(this.W7,D,this)),this.DL.start());break;case 60:this.V8=Kt(new TW(Q));break;case 58:if(D=M17(new TW(Q)))this.iM=D,D.iM===3&&(this.ow=!0)}};
g.y.TA=function(D,Q,m,P){m||this.timing.TA(P);if(D!==21)return!1;if(D=this.policy.OI)if(D*=this.info.EW[0].S.info.yF,Q.totalLength+m!==P&&Q.totalLength<D)return!1;if(!m){if(Q.totalLength===1)return!0;Q=Q.split(1).Gx}Jg_(this,Q);return!0};
g.y.OT=function(){return this.xhr.OT()};
g.y.iJ=function(){return this.hA};
g.y.Zm=function(){return this.Tw()?2:1};
g.y.Tw=function(){if(!this.policy.U.Qo||!isNaN(this.info.e1)&&this.info.e1>0)return!1;if(!this.xhr.WZ())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Xf)var D=!this.info.T;else this.xhr.DC()?D=!1:(D=this.xhr.getResponseHeader("content-type"),D=D==="audio/mp4"||D==="video/mp4"||D==="video/webm");if(!D)return!1;if(isNaN(this.info.e1)){D=this.xhr.getResponseHeader("x-head-seqnum");var Q=this.timing.policy.U?1:0;if(!D)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(D)>this.info.EW[0].J0+Q)return!1}return!0};
g.y.hS=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.y.Ox=function(){this.xhr&&(this.C0=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.C0};
g.y.A_=function(){this.xhr&&(this.VW=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.VW};
g.y.X6=function(){return this.xJ.X6()};
g.y.W7=function(){if(!this.VF()&&this.xhr){this.aM="heartbeat";var D=this.xJ;D.S+=2;this.vJ()}};g.Z(On,fF);g.y=On.prototype;g.y.HE=function(D,Q){var m=(D-this.N)/1E3,P=Q-this.T;this.C>0?P>0&&(this.Kh&&(m>.2||P<1024?(this.B+=m,m>.2&&Rfn(this,.05,P)):Rfn(this,m,P)),this.u0&&(this.x9+=P,this.k9+=m)):Q>this.policy.S&&this.Uf(D,Q);fF.prototype.HE.call(this,D,Q)};
g.y.aL=function(D,Q){VG(this,D,Q);this.HE(D,Q);this.Kh&&(Q=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.C>0&&xu(this.uE,this.x9,this.B),D=(D-this.S)/1E3||.01,this.policy.Z&&!(this.C>0)||pD(this.uE,D,this.T,Q,!1))};
g.y.WG=function(D){VG(this,D,this.J);var Q=(D-this.N)/1E3;SC(this.uE,Q,0);this.zj(Q,0);!this.Kh&&this.C>0||(Q=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.C>0&&(this.B+=(D-this.N)/1E3,xu(this.uE,this.x9,this.B)),pD(this.uE,(D-this.S)/1E3||.01,this.T,Q,!1,!0))};
g.y.CT=function(D){D=D.vH||2147483647;(D&2)!==2&&(this.u0=!1);(D&1)===1&&(this.Kh=!0)};
g.y.GU=function(D){D=D.vH||2147483647;(D&2)===2&&(this.u0=!1);(D&1)===1&&(this.Kh=!1)};
g.y.Fy=function(){return this.Z};
g.y.fX=function(){var D=this.u0?this.now()-this.N:0;return Math.max(this.k9*1E3+D,1)};
g.y.Sm=function(){return this.x9*1E3/this.fX()};
g.y.Uf=function(D,Q){D=D===void 0?this.U:D;Q=Q===void 0?this.J:Q;this.C>0||(fF.prototype.Uf.call(this,D,Q),Q=this.uE,D=(D-this.j)/1E3,Q.Z.X9(1,(this.j-this.S)/1E3),Q.t0.X9(1,D))};
g.y.OE=function(D){this.Y9=D};
g.y.Rb=function(){var D=fF.prototype.Rb.call(this);D.rbw=this.Sm();D.rbe=+this.u0;D.gbe=+this.Kh;D.ackt=(this.Y9-this.S).toFixed();return D};
g.y.K_=function(){};
g.y.RK=function(){return NaN};
g.y.Ew=function(){return this.S+this.snapshot.delay*1E3};Yx.prototype.C$=function(D,Q){switch(D){case 20:D=new TW(Q);D={T9:E$(D,1),videoId:w3(D,2),itag:E$(D,3),lmt:E$(D,4),xtags:w3(D,5),wU:E$(D,6),Yu:g3(D,8),Zj:E$(D,9),Dzx:E$(D,10),startMs:E$(D,11),durationMs:E$(D,12),uR:E$(D,14),timeRange:k4(D,15,UC9),ML:E$(D,16),ZV:E$(D,17),clipId:w3(D,1E3)};this.tO(D);break;case 21:this.nQ(Q,!1);break;case 22:this.vj(Q);break;case 31:D=I9(Q,q9k);this.Q7(D);break;case 52:D=I9(Q,TEP);this.jU(D);break;default:this.jE(D,Q)}};
Yx.prototype.tO=function(){};
Yx.prototype.jE=function(){};g.Z(aV,Yx);g.y=aV.prototype;
g.y.jE=function(D,Q){switch(D){case 35:this.eM(Q);break;case 44:this.Fu(Q);break;case 43:this.wy(Q);break;case 53:this.v4(Q);break;case 56:this.En();break;case 57:this.lT(Q);break;case 42:this.I5(Q);break;case 45:this.VN(Q);break;case 59:this.f8(Q);break;case 51:this.jl(Q);break;case 49:this.CT(Q);break;case 50:this.GU(Q);break;case 47:this.oQ(Q);break;case 58:this.uY(Q);break;case 61:this.DG.Kn.OE((0,g.T3)());break;case 66:this.dM(Q);break;case 46:this.Xu(Q);break;case 67:this.onSnackbarMessage(Q);break;
case 69:this.Su(Q)}};
g.y.jl=function(D){D=new TW(D);D={SDc:lo(D,1,IN),jGq:lo(D,2,IN)};this.DG.jl(D)};
g.y.f8=function(D){var Q=new TW(D);D=JP(Q,1);var m=JP(Q,2);Q=JP(Q,3);this.DG.f8(D,m,Q)};
g.y.VN=function(D){D=jk(new TW(D));this.DG.VN(D)};
g.y.oQ=function(D){D=I9(D,fc9);this.DG.oQ(D)};
g.y.I5=function(D){D=new TW(D);D={videoId:w3(D,1),formatId:k4(D,2,IN),endTimeMs:E$(D,3),xzc:E$(D,4),mimeType:w3(D,5),WX:k4(D,6,LFu),indexRange:k4(D,7,LFu),rG:k4(D,8,uoh)};this.DG.I5(D)};
g.y.lT=function(D){D=new TW(D);D={type:E$(D,1),scope:E$(D,2),value:Bg(D,3),sendByDefault:g3(D,4),writePolicy:E$(D,5)};this.DG.lT(D)};
g.y.En=function(){this.DG.En()};
g.y.eM=function(D){D=Cu_(new TW(D));this.DG.eM(D)};
g.y.v4=function(D){D=FFu(new TW(D));this.DG.v4(D)};
g.y.Fu=function(D){D=nBn(new TW(D));this.DG.Fu(D)};
g.y.wy=function(D){D={redirectUrl:w3(new TW(D),1)};this.DG.wy(D)};
g.y.nQ=function(D){var Q=Ch(D,0);if(D.totalLength!==1){D=D.split(1).Gx;var m=this.C[Q]||null;m&&GD(this.DG.gs,Q,m,D)}};
g.y.vj=function(D){D=Ch(D,0);var Q=this.C[D]||null;Q&&this.DG.vj(D,Q)};
g.y.jU=function(D){this.DG.jU(D)};
g.y.tO=function(D){var Q=D.T9,m=D.Yu,P=D.wU,W=D.ZV,L=D.ML,u=D.Zj,t=D.startMs,z=D.durationMs,b=D.timeRange,q=D.uR,C=D.clipId,f=cW(D);D=XzK.has(aN[""+D.itag]);this.C[Q]=f;this.DG.Of(f,D,{T9:Q,Yu:!!m,wU:P!=null?P:-1,Zj:u!=null?u:-1,startMs:t!=null?t:-1,durationMs:z!=null?z:-1,uR:q,ZV:W,ML:L,clipId:C,timeRange:b})};
g.y.CT=function(D){D={vH:E$(new TW(D),1)};this.DG.CT(D)};
g.y.GU=function(D){D={vH:E$(new TW(D),1)};this.DG.GU(D)};
g.y.Q7=function(D){this.DG.Q7(D)};
g.y.uY=function(D){D=M17(new TW(D));this.DG.uY(D)};
g.y.dM=function(D){D={FB:k4(new TW(D),1,yFh)};this.DG.dM(D)};
g.y.onSnackbarMessage=function(D){D=E$(new TW(D),1);this.DG.onSnackbarMessage(D)};
g.y.Su=function(D){D={Yv:lo(new TW(D),1,sD4)};this.DG.Su(D)};
g.y.Xu=function(D){D=new TW(D);D={reloadPlaybackParams:k4(D,1,G1j),JC:g3(D,2)};this.DG.Xu(D)};g.Z(Ap,g.v);g.y=Ap.prototype;g.y.vZ=function(){return Array.from(this.Pn.keys())};
g.y.xz=function(D){D=this.Pn.get(D);var Q=D.Mm;D.CE+=Q.totalLength;D.Mm=new Lh;return Q};
g.y.TE=function(D){return this.Pn.get(D).TE};
g.y.YQ=function(D){return this.Pn.get(D).YQ};
g.y.Of=function(D,Q,m){this.Pn.get(D)||$k7(this,D,Q);Q=this.Pn.get(D);this.UW?(D=vg_(this,D,m),ef4(this,m.T9,Q,D)):(m.Yu?Q.Av=m.uR:Q.kE.push(m),Q.zX.push(m))};
g.y.XI=function(D){var Q;return((Q=this.Pn.get(D))==null?void 0:Q.EW)||[]};
g.y.Gh=function(){for(var D=g.T(this.Pn.values()),Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.jy){if(Q.onProgress)Q.onProgress();Q.jy=!1}};
g.y.vj=function(D,Q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Q});
var m=this.Pn.get(Q);pF?m&&!m.TE&&(m.m8.get(D)?m.m8.get(D).MR=!0:m.m8.set(D,{data:new Lh,F8:0,MR:!0}),m.YQ=!0):m&&!m.YQ&&(m.YQ=!0)};
g.y.pZ=function(D){if(pF){var Q=this.Pn.get(D);if(Q)for(var m=g.T(Q.m8),P=m.next();!P.done;P=m.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;var L=Q.gr.get(P);if(sW(L[0])){if(!W.MR)continue;var u=W.data,t=0,z=[];L=g.T(L);for(var b=L.next();!b.done;b=L.next()){b=b.value;var q=b.T,C=d3(u,t,q);t+=q;z.push(new Bl(b,C))}Q.Hd.push.apply(Q.Hd,g.on(z))}else if(W.data.totalLength>0||!L[0].range&&W.MR)u=void 0,t=L[0],z=W.F8,L=W.data,t.range||(u=W.MR),u=new Bl(yLk(t,t.C+z,L.totalLength,u),L),
W.F8+=u.info.T,Q.Hd.push(u);Q.m8.get(P).data=new Lh;W.MR&&Q.m8.delete(P)}D=this.Pn.get(D);if(!D)return[];Q=D.Hd;D.Hd=[];m=g.T(Q);for(P=m.next();!P.done;P=m.next())D.CE+=P.value.info.T;return Q||[]}m=(Q=this.Pn.get(D))==null?void 0:Q.JN;if(!m)return[];this.vk(D,m);return m.pZ()};
g.y.Ap=function(D){if(pF)return rY(this,D);var Q,m,P;return!!((m=(Q=this.Pn.get(D))==null?void 0:Q.JN)==null?0:(P=m.hX())==null?0:P.length)||rY(this,D)};
g.y.vk=function(D,Q){for(;rY(this,D);){var m=this.xz(D);var P=D;P=this.Pn.get(P).TE&&!Su(this,P);BO(Q,m,P&&j5u(this,D))}};
g.y.Bq=function(){g.v.prototype.Bq.call(this);for(var D=g.T(this.Pn.keys()),Q=D.next();!Q.done;Q=D.next())xx(this,Q.value);var m;if((m=this.oI)==null?0:m.Tx)for(D=g.T(this.Pn.values()),Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.m8.clear(),Q.gr.clear(),Q.Hd.length=0,Q.EW.length=0,Q.zX.length=0,Q.kE.length=0;this.Pn.clear()};
var pF=!1;g.Z(MV,g.v);g.y=MV.prototype;g.y.IG=function(){!this.VF()&&this.xhr&&(this.vk(!1),rG(this.DG,this))};
g.y.vL=function(){};
g.y.jR=function(){if(!this.VF()&&this.xhr){var D=this.Uh();D===5?lO(this.xJ):this.pM(D);this.xJ.C.stop();var Q;(Q=this.cR)==null||Q.stop()}};
g.y.Uh=function(){var D="";RV(this.xJ,this.xhr)&&(D=id9(this.xJ,this.xhr));if(D)return this.info.NB.xN(this.ek,D),3;this.vk(!0);if(IV(this.xJ,this.xhr.status,this.xhr.FR(),this.info.lO(),this.ow))return 5;if(this.Pu)return 3;P56(this.xJ,this.xhr.OT(),0,this.lO());this.policy.Ze&&IY4(this.DG);return 4};
g.y.vk=function(D){var Q=this.xhr;if((D||!RV(this.xJ,this.xhr))&&Q.cI()){D=Q.KJ();var m=D.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+m});
this.Xf.feed(D)}};
g.y.C$=function(D,Q){this.xhr.Gj()&&D===21&&pWr(this);this.pw.C$(D,Q)};
g.y.TA=function(D,Q,m,P){m||(this.Kn.TA(P),this.policy.CD&&D===21&&pWr(this));if(D!==21)return!1;this.Kn.TO=!0;D=Q.totalLength;m||(this.Ii=Ch(Q,0),Q=Q.split(1).Gx);var W=this.policy.N9,L=this.pw.C[this.Ii],u=this.UW.T.get(L);if(W&&u&&(W*=u.info.yF,D+m!==P&&D<W))return!1;GD(this.gs,this.Ii,L,Q);return!0};
g.y.eM=function(D){this.DG.eM(D)};
g.y.v4=function(D){if(this.policy.enableServerDrivenRequestCancellation){var Q;(Q=this.cR)==null||Q.dispose();this.D0=D;D.hW&&(this.cR=new g.pJ(this.Aa,D.hW,this));this.Aa()}};
g.y.Aa=function(){var D;if((D=this.D0)!=null&&D.items){var Q;(Q=this.cR)==null||Q.start();if(this.Kn.C>0){this.policy.KZ&&this.xJ.C.stop();D=this.Kn.fX();Q=this.Kn.Sm();var m=xk9(this,D);if(!(Q>m.eS||m.A1>0&&this.info.pY()>m.A1)){this.n_=(0,g.T3)();var P;(P=this.cR)==null||P.stop();this.policy.Ze&&(P=this.DG,D={yg:Math.round(Q*D/1E3),Qf:D},P.policy.Ze&&(P.t0=D,P.L0++));this.fk()}}}};
g.y.fk=function(){this.xJ.fk()};
g.y.Fu=function(D){this.DG.Fu(D,this.eP())};
g.y.wy=function(D){this.Pu=!0;this.info.NB.xN(this.ek,D.redirectUrl)};
g.y.CT=function(D){this.Kn instanceof On&&this.Kn.CT(D)};
g.y.GU=function(D){this.Kn instanceof On&&this.Kn.GU(D)};
g.y.I5=function(D){var Q=D.formatId,m=cW({itag:Q.itag,lmt:Q.lmt,xtags:Q.xtags}),P,W,L=new Qa(((P=D.WX)==null?void 0:P.first)||0,((W=D.WX)==null?void 0:W.yh)||0),u,t;P=new Qa(((u=D.indexRange)==null?void 0:u.first)||0,((t=D.indexRange)==null?void 0:t.yh)||0);this.UW.T.get(m)||(m=D.rG||{},m.mimeType=D.mimeType,m.itag=Q.itag,m.lastModified=""+(Q.lmt||0),m.xtags=Q.xtags,D=this.UW,Q=X_(""),m=pf(m,null),es(D,new Kf(Q,m,L,P)))};
g.y.VN=function(D){this.DG.VN(D,this.eP())};
g.y.onSnackbarMessage=function(D){if(this.policy.hL)this.DG.onSnackbarMessage(D)};
g.y.Su=function(D){this.policy.u0&&this.DG.Su(D,this.eP())};
g.y.Q7=function(D){this.gI=D;this.xJ.T=(0,g.T3)();this.DG.Q7(D)};
g.y.f8=function(D,Q,m){this.DG.f8(D,Q,m)};
g.y.lT=function(D){D.scope===2&&(this.xw=D);this.DG.lT(D)};
g.y.En=function(){this.Zl=!0;this.DG.En()};
g.y.jl=function(D){this.policy.sM&&this.DG.jl(D)};
g.y.oQ=function(D){this.DG.oQ(D,this.eP())};
g.y.uY=function(D){D.iM===3&&(this.ow=!0);this.DG.uY(D)};
g.y.dM=function(D){this.DG.dM(D)};
g.y.Xu=function(D){this.DG.Xu(D)};
g.y.canRetry=function(){this.VF();return this.xJ.canRetry(!1)};
g.y.dispose=function(){if(!this.VF()){g.v.prototype.dispose.call(this);this.xJ.dispose();var D;(D=this.cR)==null||D.dispose();this.pM(-1);this.Xj()}};
g.y.pM=function(D){this.state=D;rG(this.DG,this)};
g.y.lO=function(){return this.info.lO()};
g.y.UR=function(){return this.Zl};
g.y.IR=function(){return this.xw};
g.y.Of=function(D,Q,m){m.clipId&&(this.clipId=m.clipId);this.policy.C&&!Q&&(this.Pi=m.Zj);this.gs.Of(D,Q,m);if(this.policy.Ig&&this.gI&&this.Kn instanceof yG){var P=this.gI.Y1;this.Kn.Of(m.durationMs/1E3,Q,P>0&&m.Zj+1>=P)}this.gs.Pn.get(D).nu=!0};
g.y.vj=function(D,Q){this.gs.vj(D,Q)};
g.y.jU=function(D){this.requestIdentifier=D};
g.y.pZ=function(D){return this.gs.pZ(D)};
g.y.XI=function(D){return this.gs.XI(D)};
g.y.Ap=function(D){return this.gs.Ap(D)};
g.y.vZ=function(){return this.gs.vZ()};
g.y.Zm=function(){return 1};
g.y.eP=function(){return this.Kn.requestNumber};
g.y.CN=function(){return this.requestIdentifier};
g.y.AD=function(){return this.ek.AD()};
g.y.Ie=function(){this.Xj()};
g.y.Xj=function(){this.Kn.deactivate();var D;(D=this.xhr)==null||D.abort()};
g.y.isComplete=function(){return this.state>=3};
g.y.EO=function(){return this.state===3};
g.y.U1=function(){return this.state===5};
g.y.o8=function(){return this.state===4};
g.y.xd=function(){return this.isComplete()};
g.y.ED=function(){return this.state>=1};
g.y.Vq=function(){return this.policy.kJ?this.xJ.Vq():0};
g.y.vJ=function(){this.policy.kJ&&rG(this.DG,this)};
g.y.oS=function(){return ha_(this.info)};
g.y.X6=function(){return this.xJ.X6()};
g.y.Y0=function(){var D=s5$(this.xJ);Object.assign(D,Evn(this.info));D.req="sabr";D.rn=this.eP();var Q;if((Q=this.xhr)==null?0:Q.status)D.rc=this.policy.jH?this.xhr.status:this.xhr.status.toString();var m;(Q=(m=this.xhr)==null?void 0:m.tN())&&(D.msg=Q);this.n_&&(m=xk9(this,this.n_-this.Kn.Fy()),D.letm=m.Zf,D.mrbps=m.eS,D.mram=m.A1);return D};XWm.prototype.tick=function(D,Q){this.ticks[D]=Q?window.performance.timing.navigationStart+Q:(0,g.T3)()};g.Z(D7,g.iR);g.y=D7.prototype;
g.y.ya=function(D,Q,m,P){if(this.policy.DB&&this.policy.C){var W=D.OC||null;W?(dAw(this,D.J0,i9(this,D.startTime,D.J0),{OC:W,J0:D.J0,Zg:!!Q,ri:m},this.T),P&&this.T&&this.T.Sx(D.J0,D.startTime,this.C,(Q==null?void 0:Q.S)||[],(Q==null?void 0:Q.C)||[],(Q==null?void 0:Q.B)||[],m,(Q==null?void 0:Q.ME)||0,(Q==null?void 0:Q.T)||void 0)):this.C===1&&mc(this,5,"noad")}else{var L=!1;this.policy.C&&(L=m?this.QF===D.J0:this.Kh===D.J0);if(this.T&&P&&!L){P=[];L=[];var u=[],t=void 0,z=0;Q&&(P=Q.S,L=Q.C,u=Q.B,t=
Q.T,z=Q.ME,this.dc("sdai",{sq:D.J0,ssvicpns:P.join("."),ssvid:L.join(".")}));this.policy.C&&(m?this.QF=D.J0:this.Kh=D.J0);this.T.Sx(D.J0,D.startTime,this.C,P,L,u,m,z,t)}this.policy.C?m&&(this.C===1&&mc(this,5,"noad"),D.J0!==((W=this.S)==null?void 0:W.J0)&&(sd4(this,D,Q,m),isNaN(D.startTime)||Lwh(this,D.J0,i9(this,D.startTime,D.J0),!!Q,this.T))):m&&sd4(this,D,Q)}};
g.y.bl=function(D,Q,m){var P=this.videoTrack.S.index.MY()<=Q;this.S={OC:D,J0:Q,Zg:m};P&&QL(this,D,Q)};
g.y.kQ=function(){this.T&&this.T.kQ()};
g.y.dc=function(D,Q,m){(D!=="sdai"||this.policy.AE||(m===void 0?0:m))&&this.loader.dc(D,Q)};
g.y.GV=function(D,Q){var m=this.videoTrack.S.index.JY(D);if(m>=0){var P;var W=((P=Q.Ax.GT(m,2))==null?void 0:P.tj)||"";if(this.policy.C||W)return Q.UJ(D,m),PM(this.loader,D,D,m),this.dc("sdai",{cmskpad:1,t:D.toFixed(3),sq:m}),!0}this.dc("sdai",{cmskpad:0,t:D.toFixed(3),sq:m});return!1};g.y=qW$.prototype;g.y.wM=function(D,Q,m){D=D||this.S;this.C.has(D)||(this.dc("sldai",{setadconfig:"noentry",cid:D}),this.C.set(D,{event:"unknown",startTimeSecs:0,m$:0,nW:[],nX:Date.now(),Nw:-1,Iz:6}));var P=this.C.get(D);P?Q?(P.Iz=6,P.nW.push(m),P.z1=Q):P.Iz=2:this.dc("sldai",{setadconfig:"notfound",cid:D})};
g.y.Su=function(D,Q,m){var P;if(!((((P=D.Yv)==null?void 0:P.length)||0)<=0)&&(D=D.Yv[0],D.OC)){var W;P=-(((W=D.OC)==null?void 0:W.dV)||0);D.timeRange&&(P+=(D.timeRange.startTicks||0)/(D.timeRange.timescale||1));var L,u,t,z,b;W=new Cd(P,((L=D.OC)==null?void 0:L.pxv)||0,((u=D.OC)==null?void 0:u.M$)||"",((t=D.OC)==null?void 0:t.identifier)||"",Vsn(((z=D.OC)==null?void 0:z.event)||0),(((b=D.OC)==null?void 0:b.dV)||0)*1E3);C37(this,W,Q,D.Zj||0,m)}};
g.y.UJ=function(D,Q){this.z4(D);var m=this.C.get(this.S);m?(this.dc("ssskipad",{cid:this.S,sn:Q,mt:D.toFixed(3)}),m.BD=Q):this.dc("ssskipadfail",{cid:this.S,sn:Q,mt:D.toFixed(3)})};
g.y.Zn=function(){for(var D=g.T(this.C.values()),Q=D.next();!Q.done;Q=D.next())Q.value.BD=NaN};
g.y.z4=function(D,Q){Q&&(this.B=Q);if(this.S&&(Q=this.C.get(this.S))&&Q.startTimeSecs<=D&&D<=Q.startTimeSecs+Q.m$)return;this.S=oFh(this,D)};g.Z(dF,g.v);dF.prototype.NA=function(D,Q,m){m=m===void 0?{}:m;this.policy.vc=LD(D,m,this.B,Q===void 0?!1:Q)};C3.prototype.fv=function(D){var Q=this;if(this.policy.Cu){var m=new Set(D);m.size===this.t0.size&&[].concat(g.on(m)).every(function(P){return Q.t0.has(P)})||(this.loader.dc("lwnmow",{itagDenylist:[].concat(g.on(D)).join(",")}),this.loader.CJ(!!m.size),this.j=-1,this.t0=m,oe(this,this.S),this.x9=!0)}};
C3.prototype.NA=function(D,Q,m){m=m===void 0?{}:m;var P=this.policy.vc;this.J.NA(D,Q===void 0?!1:Q,m);if(P!==this.policy.vc){oe(this,this.S);f3(this);var W,L;P>this.policy.vc&&((W=this.T)==null?0:Sk(W.info))&&((L=this.nextVideo)==null||!Sk(L.info))&&(this.TO=!0)}};Z7.prototype.In=function(D){this.timestampOffset=D;this.flush()};
Z7.prototype.flush=function(){if(this.S.pos>0){var D={a:this.track.ZQ(),u:this.S.R_(),pd:Math.round(this.B),ad:Math.round(this.T)},Q=this.C;if(Q){var m=Q.S.info;D.itag=m.itag;m.S&&(D.xtags=m.S);D.sq=Q.J0;D.st=Q.startTime;D.sd=Q.duration;this.track.policy.IU&&(D.si=Q.Hn());Q.B&&(D.esl=Q.C+Q.T);Q.zM()&&(D.eos=1)}isNaN(this.timestampOffset)||(D.to=this.timestampOffset);var P;if(Q=(P=this.track.zo)==null?void 0:P.yX({})){for(var W in Q)this.N[W]!==Q[W]&&(D["sb_"+W]=Q[W]);this.N=Q}this.track.dc("sbu",
D);this.S.reset();this.buffered=[];this.J=this.T=this.B=0;this.timestampOffset=this.C=void 0}};Ty.prototype.dispose=function(){this.Iy=!0};
Ty.prototype.VF=function(){return this.Iy};
g.Z(wF,Error);l9.prototype.skip=function(D){this.offset+=D};
l9.prototype.uG=function(){return this.offset};g.y=mB7.prototype;g.y.Xy=function(){return this.C};
g.y.xI=function(){return this.C.length?this.C[this.C.length-1]:null};
g.y.fI=function(){this.C=[];K3(this);UT(this)};
g.y.xz=function(D){this.k9=this.C.shift().info;D.info.equals(this.k9)};
g.y.XI=function(){return g.fk(this.C,function(D){return D.info})};
g.y.ZQ=function(){return!!this.J.info.audio};
g.y.isDrm=function(){return!!this.J.info.Ln};
g.y.getDuration=function(){return this.J.index.vI()};g.Z(sn,hp);g.y=sn.prototype;g.y.onStateChange=function(){this.VF()&&(Xl(this.gs,this.formatId),this.S.dispose())};
g.y.Y0=function(){var D=Kum(this.gs,this.formatId),Q;var m=((Q=this.gs.Pn.get(this.formatId))==null?void 0:Q.bytesReceived)||0;var P;Q=((P=this.gs.Pn.get(this.formatId))==null?void 0:P.CE)||0;return{expected:D,received:m,bytesShifted:Q,sliceLength:Su(this.gs,this.formatId),isAnyMediaEndReceived:this.gs.YQ(this.formatId)}};
g.y.qT=function(){return 0};
g.y.f2=function(){return!0};
g.y.pZ=function(){return this.gs.pZ(this.formatId)};
g.y.hX=function(){return[]};
g.y.Ap=function(){return this.gs.Ap(this.formatId)};
g.y.X6=function(){return this.lastError};
g.y.Vq=function(){return 0};g.Z(vM,g.v);g.y=vM.prototype;g.y.ZQ=function(){return!!this.S.info.audio};
g.y.xI=function(){return this.B.xI()};
g.y.xz=function(D){this.B.xz(D);var Q;(Q=this.Z)!=null&&(Q.J.add(D.info.J0),Q.S=nf6(Q,Q.KM,Q.Lo,D,Q.S),Q.T=D,Q.N=(0,g.T3)());this.yF=Math.max(this.yF,D.info.S.info.yF||0)};
g.y.getDuration=function(){return this.S.index.vI()};
g.y.fI=function(){uO(this);this.B.fI()};
g.y.Fe=function(){return this.B};
g.y.isRequestPending=function(D){return this.T.length?D===this.T[this.T.length-1].info.EW[0].J0:!1};
g.y.In=function(D){var Q;(Q=this.Z)==null||Q.In(D);var m;(m=this.j)==null||m.In(D)};
g.y.dc=function(D,Q){this.loader.dc(D,Q)};
g.y.u6=function(){return this.loader.u6()};
g.y.dispose=function(){var D;(D=this.j)==null||D.flush();g.v.prototype.dispose.call(this)};g.Z(sd,g.v);sd.prototype.T=function(){this.C++>15||(this.S=!this.S,new XAr(this.loader,this.policy,this.uE,this.NB,this.S),this.delay.start())};
g.y=XAr.prototype;g.y.vL=function(){};
g.y.IG=function(){};
g.y.jR=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.OT()===this.size)this.loader.dc("rqs",this.getInfo());else{var D="net.connect";this.xhr.status>200?D="net.badstatus":this.xhr.WZ()&&(D="net.closed");this.onError(D)}};
g.y.onError=function(D){var Q=this;this.loader.handleError(D,this.getInfo());M$("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(m){Q.loader.dc("pathprobe",m)},function(m){Q.loader.handleError(m.errorCode,m.details)})};
g.y.getInfo=function(){var D=this.timing.Rb();D.shost=c4(this.location.Mb);D.pb=this.size;return D};g.Z(LS,g.v);
LS.prototype.U=function(D,Q){if(D.U){this.UW.isLive?(D=this.UW.vO&&this.UW.B?D.S.GA(this.UW.vO,!1):D.S.qo(Infinity),D.e1=this.e1):D=D.S.GA(0,!1);if(this.TO){var m=this.TO;D.e1===0&&(D.J=m.Z)}else D.J=this.j;return D}m=D.C;if(!m.S.xa())return m.S.UT()?(D=QG(this.J,D.S.info.yF,Q.S.info.yF,0),D=m.S.pJ(m,D)):D=m.S.ih(m),D;var P=m.N-this.loader.getCurrentTime(),W=!m.range||m.T===0&&m.C===0?0:m.range.length-(m.C+m.T),L=m.S;this.SE(D,P)&&W===0&&(this.UW.isManifestless?L=D.S:(L=m.startTime+Tg4,m.T&&(L+=m.duration),
zD(D,L),m=D.C,L=m.S));L.UT()?(W=this.T,Q=QG(this.J,L.info.yF,Q.S.info.yF,P,W.B.length>0&&W.Z===0&&this.loader.RZ),P=mR(D),D=m.S.pJ(m,Q),(Q=D.T)&&D.EW.length>1&&(P||D.NB.T||D.EW[0].S!==m.S?D=m.S.pJ(m,D.EW[0].T):(P=D.EW[D.EW.length-1],L=P.T/Q,!P.B&&L<.4&&(D=m.S.pJ(m,Q-P.T))))):(m.J0<0&&(Q=t7(m),Q.pr=""+D.T.length,this.loader.isSeeking()&&(Q.sk="1"),Q.snss=m.U,this.loader.dc("nosq",Q)),D=L.ih(m));if(this.policy.QF)for(m=g.T(D.EW),Q=m.next();!Q.done;Q=m.next())Q.value.type=6;return D};
LS.prototype.SE=function(D,Q){if(!mR(D)||!D.S.xa())return!1;var m=this.T.x9||kZm(D)||Q<=this.policy.gp||this.T.TO;this.logger.debug(function(){return"ready to adapt: "+m+", upgrade pending: "+kZm(D)+", health: "+Q});
return m};
LS.prototype.Bq=function(){g.v.prototype.Bq.call(this)};
var Tg4=2/24;g.Z(zL,g.v);zL.prototype.E$=function(D,Q,m){var P;var W=((P=this.C)==null?void 0:P.reason)==="m"?"m":this.C&&qOu(this,this.C)?this.C.reason:"a";this.loader.E$(new u9(D,W,m));dG(this.loader,Q,D,!0)};
zL.prototype.GI=function(D,Q){for(var m=g.T(this.QF),P=m.next();!P.done;P=m.next())if(P.value.id===D)return this.J=this.UW.S[D],$x(this.oI)&&(this.TO=!0),D=new u9(this.J,Q?"t":"m"),Q&&(this.U=!0),D;this.T=[];return null};
zL.prototype.NA=function(D,Q,m){m=m===void 0?{}:m;this.S.NA(D,Q===void 0?!1:Q,m)};qN.prototype.setData=function(D,Q,m){var P=this;m=m===void 0?{}:m;if(Q==null?0:Q.cY)this.Bo=Agn(this,Q,m),D.C2=this.NB.C2();if(this.lO())return!0;this.data=D;this.S=F8$(D,function(W,L){var u;(u=P.DG)==null||u.Rj(W,L)},Q==null?void 0:Q.T);
if(!this.S)return!1;this.C=g.GW(this.S,QDj);return!0};
qN.prototype.lO=function(){return this.requestType===1};
qN.prototype.pY=function(){var D;return((D=this.DG)==null?void 0:D.pY())||0};
qN.prototype.isDecorated=function(){var D;return!((D=this.data)==null||!D.iG)};gv_.prototype.encrypt=function(D){(0,g.T3)();return this.S.S?IWk(this,D,this.iv):(new g.ql(this.S.C)).encrypt(D,this.iv)};
gv_.prototype.decrypt=function(D,Q){(0,g.T3)();return this.S.S?IWk(this,D,Q):(new g.ql(this.S.C)).decrypt(D,Q)};g.Z(CS,g.v);CS.prototype.T=function(D,Q){if(Q){Q=Q instanceof g.Gn?Q:ox(this,Q);var m;((m=this.S.get(D))==null?void 0:c4(m.location))!==c4(Q)&&this.S.set(D,new $Sn(Q,D))}else this.S.delete(D)};
CS.prototype.load=function(){var D=this,Q,m,P,W,L,u,t,z,b,q;return g.U(function(C){switch(C.C){case 1:Q=D.S.get(0);g.h4(C,2);var f;if(f=Q&&!D.C)f=c4(Q.location),f=D.C===Jp(f);if(f){C.Nv(4);break}return g.I(C,K8_(D,D.C?2:0),5);case 5:if(m=C.S)D.T(0,m),QI(m)&&D.T(1,mu(m));case 4:g.g7(C,3);break;case 2:P=g.w7(C);g.l4(P);if(!D.C){C.Nv(3);break}D.C=!1;return g.I(C,D.load(),7);case 7:return C.return();case 3:if(!D.SD.experiments.Mv("html5_onesie_probe_ec_hosts")){C.Nv(0);break}g.h4(C,9);W=D;L=W.T;u=3;return g.I(C,
K8_(D,1),11);case 11:return L.call(W,u,C.S),t=D,z=t.T,b=4,g.I(C,K8_(D,2),12);case 12:z.call(t,b,C.S);g.g7(C,0);break;case 9:q=g.w7(C),g.l4(q),g.T7(C)}})};
CS.prototype.U=function(){var D=this,Q,m;return g.U(function(P){g.xG(D.Z);Q=g.WF(D.SD.experiments,"html5_onesie_prewarm_max_lact_ms");if(FE()>=Q)return P.return();(m=D.S.get(0))&&He$(D,m);g.T7(P)})};
var Raj={VH0:0,FZx:1,mKz:2,o5W:3,Jnc:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};ea$.prototype.decrypt=function(D){var Q=this,m,P,W,L,u,t;return g.U(function(z){switch(z.C){case 1:if(Q.S.length&&!Q.S[0].isEncrypted)return z.return();Q.C=!0;Q.zV.Fw("omd_s");m=new Uint8Array(16);zJ()?P=new g.CL(D):W=new g.ql(D);case 2:if(!Q.S.length||!Q.S[0].isEncrypted){z.Nv(4);break}L=Q.S.shift();if(!P){u=W.decrypt(bo(L.buffer),m);z.Nv(5);break}return g.I(z,P.decrypt(bo(L.buffer),m),6);case 6:u=z.S;case 5:t=u;for(var b=0;b<m.length;b++)if(m[b]===255)m[b]=0;else{m[b]+=1;break}b=Q.zV;var q=L.videoId,
C=L.T9,f=L.formatId,V=new Lh([t]),N;(N=VX(b.Wn,q))==null||GD(N,C,f,V);z.Nv(2);break;case 4:Q.zV.Fw("omd_c"),NN(Q),Q.C=!1,Q.zV.N8(),g.T7(z)}})};
ea$.prototype.enqueue=function(D,Q,m,P,W){this.S.push({videoId:D,T9:Q,formatId:m,buffer:P,isEncrypted:W});this.C||NN(this)};var rf6=!!Uint8Array.prototype.copyWithin,yX=[],vv4=[],aW7=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],FU=[],ZL=[],TL=[],Oeu=[];var Gs$="DecompressionStream"in window;g.Z(cfn,Yx);g.y=cfn.prototype;g.y.N8=function(){this.Wn.N8()};
g.y.jE=function(D,Q){switch(D){case 10:var m=I9(Q,zk$);D=m.a$v;var P=!1;switch(D){case 0:this.B=!m.TI.qt;this.iv=m.TI.iv;break;case 2:break;case 23:var W=this.Wn;m=m.HhW;W.Fw("omp_r");m.videoId&&(W.V7=m.videoId);W.V7!==W.videoData.videoId&&(W.videoData.lD0=W.V7,W.dc("ompp","vid."+W.V7));W.U5=!0;break;case 24:m=this.Wn;m.Fw("omp_c");m.U5=!1;m.iL=!1;var L=(W=m.Hx)==null?void 0:W.get(m.V7);m.notifySubscribers(m.V7);L!=null&&(L.S=!0);nS(m);break;default:P=!0}this.Wn.eH&&this.Wn.dc("ombup","id.10;pt."+
D+";len."+Q.totalLength+(P?";ignored.1":""));this.T=D;break;case 11:Qb_(this,Q);break;case 12:this.nQ(Q,!0);break;case 37:Q=I9(Q,bs9);(Q.Dp||Q.Sa)&&Q.videoId&&this.Wn.Vl.set(Q.videoId,Q);break;case 60:this.R5(Q);break;case 47:this.V("html5_server_playback_start_policy")&&(Q=I9(Q,fc9),this.Wn.playbackStartPolicy=Q);break;case 35:this.eM(Q);break;case 45:this.VN(Q);break;case 66:this.dM(Q);break;default:this.Wn.eH&&this.Wn.dc("ombup","id."+D+";len."+Q.totalLength+";ignored.1")}};
g.y.Q7=function(D){this.Wn.Q7(D)};
g.y.R5=function(D){D=I9(D,Kt);this.Wn.R5(D)};
g.y.VN=function(D){D=I9(D,jk);this.Wn.VN(D)};
g.y.tO=function(D){var Q=D.T9,m=D.Yu,P=D.wU,W=D.ML,L=D.Zj,u=D.startMs,t=D.durationMs,z=D.timeRange,b=D.uR,q=cW(D),C=XzK.has(aN[""+D.itag]);m&&this.Fw(C?"oais_r":"ovis_r");var f=this.S[q]!==void 0;this.Wn.eH&&this.Wn.dc("ombup","id.20;hid."+Q+";fid."+q);var V=D.videoId||"";this.C[Q]=q;this.J[Q]=V;f||(this.S[q]={videoId:V,OO:!1,ZQ:C,headers:[]});this.S[q].headers.push(D);this.Wn.Of(V,q,C,{T9:Q,Yu:!!m,wU:P!=null?P:-1,Zj:L!=null?L:-1,startMs:u!=null?u:-1,durationMs:t!=null?t:-1,uR:b!=null?b:0,ML:W,timeRange:z})};
g.y.nQ=function(D,Q){var m=Ch(D,0);this.Wn.eH&&this.Wn.dc("ombup","id."+(Q?12:21)+";len."+D.totalLength+";hid."+m);if(D.totalLength!==1){D=D.split(1).Gx;var P=this.C[m]||null,W=this.J[m]||"";P&&(this.Dw(this.S[P].ZQ?"oafs_r":"ovfs_r"),this.queue.enqueue(W,m,P,D,Q))}};
g.y.vj=function(D){var Q=Ch(D,0);this.Wn.eH&&this.Wn.dc("ombup","id.22;len."+D.totalLength+";hid."+Q);D=this.C[Q]||null;var m=this.J[Q]||"";if(D)if(this.V("html5_use_ump_request_slicer")){var P=this.queue;P.S.push({videoId:m,T9:Q,formatId:D,isEncrypted:!1,Zu:!0});P.C||NN(P)}else this.Wn.vj(m,Q,D)};
g.y.jU=function(D){this.Wn.jU(D)};
g.y.JO=function(D,Q){var m=this,P,W,L,u,t,z,b;return g.U(function(q){switch(q.C){case 1:m.Wn.JO();P=bo(D);if(!Q){L=P;q.Nv(2);break}return g.I(q,q1$(m.Wn,P,m.iv),3);case 3:L=q.S;case 2:W=L;if(!m.Wn.enableCompression){q.Nv(4);break}return g.I(q,m4h(m,W),5);case 5:W=q.S;case 4:try{u=I9(W,r17)}catch(f){return t=f instanceof Error?{name:f.name,message:f.message}:{},t.webcrypto=""+ +!!zJ(),t.enc=""+ +m.B,z=new g.VJ("onesie.response.parse",t),q.return(Promise.reject(z))}var C=u;if(C.MV!==1)throw new g.VJ("onesie.response.badproxystatus",
{st:C.MV,webcrypto:!!zJ(),textencoder:!!g.Mu.TextEncoder});if(C.httpStatus!==200)throw new g.VJ("onesie.response.badstatus",{st:C.httpStatus});b=g.Ny(u.body);return q.return(b)}})};
g.y.eM=function(D){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(D=I9(D,Cu_),this.Wn.eM(D))};
g.y.dM=function(D){D={FB:k4(new TW(D),1,yFh)};this.Wn.dM(D)};
g.y.Fw=function(D){this.Wn.Fw(D)};
g.y.Dw=function(D){return this.Wn.Dw(D)};
g.y.V=function(D){return this.Wn.V(D)};g.Z(gG,g.v);g.y=gG.prototype;g.y.vZ=function(D){var Q,m;return((m=(Q=this.Hx)==null?void 0:Q.get(D))==null?void 0:m.vZ())||[]};
g.y.Ap=function(D,Q){var m;return!((m=VX(this,Q))==null||!m.Ap(D))};
g.y.pZ=function(D,Q){var m;return((m=VX(this,Q))==null?void 0:m.pZ(D))||[]};
g.y.XI=function(D,Q){var m;return((m=VX(this,Q))==null?void 0:m.XI(D))||[]};
g.y.pM=function(D){this.state=D;this.notifySubscribers()};
g.y.lO=function(){return!1};
g.y.UR=function(){return!1};
g.y.IR=function(){};
g.y.Fw=function(D){this.Ch.Fw(D)};
g.y.Dw=function(D){return this.Ch.Dw(D)};
g.y.TA=function(D,Q,m,P){m||this.Kn.TA(P);return!1};
g.y.C$=function(D,Q){this.zV.C$(D,Q)};
g.y.CQ=function(){this.Fw("orfb");this.aK=!0;if(CHw(this)&&this.xhr){var D={rc:this.xhr.status,lb:this.xhr.OT(),rt:(1E3*Ye4(this.Kn)).toFixed(),shost:g.uY(this.mz),trigger:"o1"};this.dc("pathprobe",ft(D))}};
g.y.JO=function(){this.Fw("opr_r");this.vX=!0};
g.y.Of=function(D,Q,m,P){if(this.Hx){if(!this.Hx.has(D)){var W=new Ap(this);this.Hx.set(D,W);g.O(this,W)}var L;(L=this.Hx.get(D))==null||L.Of(Q,m,P);nS(this);m||(this.Pi=P.Zj)}else nS(this)};
g.y.Q7=function(D){this.H7=D;D.SS!=null&&this.Ch.yj(D.SS)};
g.y.R5=function(D){this.V8=D};
g.y.eM=function(D){D.videoId&&this.SL.set(D.videoId,D)};
g.y.N8=function(){if(this.Hx)for(var D=g.T(this.Hx.keys()),Q=D.next();!Q.done;Q=D.next()){var m=void 0;(m=this.Hx.get(Q.value))==null||m.Gh()}};
g.y.VN=function(D){this.EX=D};
g.y.dM=function(D){if(D==null?0:D.FB)if(D=D.FB.eA){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.videoId&&this.kM.set(Q.videoId,Q)}};
g.y.dc=function(D,Q,m){this.Ch.dc(D,Q,m===void 0?!1:m)};
g.y.vj=function(D,Q,m){var P;(P=VX(this,D))==null||P.vj(Q,m)};
g.y.jU=function(D){this.xH.set(D.videoId,D)};
g.y.fetch=function(){var D=this,Q,m,P,W,L,u,t,z,b,q,C,f,V,N,h,B,J,k,R,e,a,G,S,u6;return g.U(function(L9){switch(L9.C){case 1:D.logger.debug("Onesie fetch started.");D.Lg?D.mL.start():D.df.start();D.Fw("or_i");m=(Q=D.SD.experiments.Mv("html5_onesie_verbose_timing"))?D.Fw.bind(D):function(){};
m("oloc_ss");if(P=Wp6(D.videoData,D.yB)){L9.Nv(2);break}m("oloc_sa");W=g.WF(D.SD.experiments,"html5_onesie_redirector_timeout_ms");return g.I(L9,izj(D.videoData,D.yB,W),3);case 3:P=L9.S;case 2:if(!P)return D.logger.info("Onesie URL creation failed."),L={url:"0"},u=new g.VJ("onesie.unavailable.hotconfig",L),D.fail(u),L9.return(D.ZB);D.Bo=c4(P);m("oloc_e");t=g.UO(D.SD,g.qO(D.videoData));z=!!t.S;if(!z){b=t.getValue();L9.Nv(4);break}return g.I(L9,t.S,5);case 5:b=L9.S;case 4:q=b;D.V("html5_log_onesie_empty_oauth")&&
!q&&D.dc("no_token",{async:z});C=Lpm(D.playerRequest,D.SD,D.videoData,q,Jp(D.Bo));g.h4(L9,6);!D.SD.KI||(V=C)!=null&&V.nJ||!D.V("html5_wasm_onesie_request_encryption")||(m("orqb_w"),f=zq_(C,D.TG,D.SD,D.Ch,D.Hl.onesieUstreamerConfig,(N=D.videoData.R9)==null?void 0:N.bx));if(f){L9.Nv(8);break}if(!bz9(D,C)){m("orqb_s");f=d4w(C,D.TG,D.SD,D.Ch,D.Hl.onesieUstreamerConfig,(h=D.videoData.R9)==null?void 0:h.bx);L9.Nv(8);break}m("orqb_a");return g.I(L9,tj$(C,D.TG,D.SD,D.Ch,D.Hl.onesieUstreamerConfig,(B=D.videoData.R9)==
null?void 0:B.bx),10);case 10:f=L9.S;case 8:g.g7(L9,7);break;case 6:return J=g.w7(L9),D.logger.info("Failed to create OnesieRequestProto."),D.fail(J),L9.return(D.ZB);case 7:return m("orqb_e"),D.enableCompression=f.innertubeRequest.IS,D.q0=((k=f)==null?void 0:(R=k.S0)==null?void 0:R.fQ)||0,D.Fw("osor"),e=YS7(),a=g.GW(f,J1h),G={method:"POST",body:a,headers:{"Content-Type":"text/plain",Referer:location.origin}},S=D.V("html5_onesie_media_capabilities"),sb7(P,D.videoData,fYw(D),S),D.logger.debug("Starting Onesie network request."),
D.eH&&D.dc("ombrs","1"),u6=D.Ch.G().schedule,D.Kn=new yG(D,{uE:u6,qg:D.eH,zj:function(d7,b6){D.Ch.VT(d7,b6)},
Ov:!0}),P.set("rn",""+D.Kn.requestNumber),D.mz=P.AD(),NV(D.Kn,D.mz),D.Fw("or_p"),D.xhr=En(new Yg(P),e,D.Kn,hY,G),D.Xp.start(),D.Ch.onPlayerRequestSent(D.videoData.videoId),L9.return(D.ZB)}})};
g.y.Zm=function(){return 2};
g.y.vL=function(){this.Fw("orh_r")};
g.y.IG=function(){!this.aK&&this.xhr.OT()&&this.CQ();if(this.Ka&&!this.Lg){var D;(D=this.BW)==null||D.start()}this.vk()};
g.y.jR=function(D){D=D===void 0?!1:D;this.logger.debug("onXhrDone");this.vk();if(!(this.VF()||this.state>=4)){var Q=Ed(this),m=this.xhr;Q.rc=m.status;D&&(Q.ab=!0);if(m.tN()){var P="onesie.net";Q.msg=m.tN()}else m.status>=400?P="onesie.net.badstatus":m.FR()?this.vX||(P="onesie.response.noplayerresponse"):P=m.status===204?"onesie.net.nocontent":"onesie.net.connect";P?this.fail(new g.VJ(P,Q)):(this.Fw("or_fs"),this.Kn.aL((0,g.T3)(),m.OT(),0),this.pM(4),this.eH&&this.dc("rqs",Q));this.eH&&this.dc("ombre",
"ok."+ +!P);this.iL=!1;nS(this);D44(this.zV);if(!this.Lg){this.df.stop();var W;(W=this.BW)==null||W.stop()}var L;if(D=(L=this.yB)==null?void 0:j8P(L))for(L=0;L<D.length;L++)this.dc("pathprobe",D[L])}};
g.y.Ie=function(){if(this.playerResponse&&this.xhr&&this.Hx)for(var D=g.T(this.Hx.entries()),Q=D.next();!Q.done;Q=D.next())if(Q=g.T(Q.value),Q.next(),Q.next().value.C){this.xhr.abort();this.jR(!0);break}};
g.y.G=function(){return this.SD};
g.y.V=function(D){return this.SD.V(D)};
g.y.tDz=function(){if(CHw(this)&&this.yB&&(!this.aK||this.V("html5_onesie_probe_ec_hosts"))){var D=this.yB;if(D.SD.experiments.Mv("html5_onesie_probe_ec_hosts")){var Q,m=(Q=D.S.get(3))==null?void 0:c4(Q.location);m&&fS(D,m,"osc",this);var P;(m=(P=D.S.get(4))==null?void 0:c4(P.location))&&fS(D,m,"ocy",this)}else{var W;(P=(W=D.S.get(1))==null?void 0:c4(W.location))&&fS(D,P,"o2",this);(P=(m=D.S.get(2))==null?void 0:c4(m.location))&&fS(D,P,"o3",this)}}};
g.y.e5=function(){if(!this.VF()&&!this.isComplete()){if(this.Ka){if((0,g.T3)()-this.Kn.U>1E3){var D;(D=this.Kn)==null||D.WG((0,g.T3)());D=Ed(this);if(this.SD.xl()&&this.xhr instanceof nF){var Q=this.xhr;D.xrs=Q.xhr.readyState;D.xpb=Q.S.totalLength;D.xdc=Q.B}this.fail(new g.VJ("net.timeout",D))}}else(0,g.T3)()-this.Kn.S>1E4&&((Q=this.Kn)==null||Q.WG((0,g.T3)()),this.w0());this.isComplete()||this.mL.start()}};
g.y.w0=function(){this.logger.info("Onesie request timed out");this.iL=!1;if(!nS(this)){var D=Ed(this);D.timeout="1";this.fail(new g.VJ("onesie.request",D))}};
g.y.fail=function(D){var Q=this;D=yJ(D);this.Ka?this.Ch.Hs(D):(this.ZB.reject(D),this.Ka=!0);D44(this.zV);this.Lg||this.df.stop();this.Fw("or_fe");var m,P;(m=this.yB)==null||(P=j8P(m))==null||P.forEach(function(W){Q.dc("pathprobe",W)});
this.pM(5);this.dispose()};
g.y.isComplete=function(){return this.state>=3};
g.y.o8=function(){return this.state===4};
g.y.xd=function(D){var Q,m;return this.isComplete()||!!((Q=this.Hx)==null?0:(m=Q.get(D))==null?0:m.S)};
g.y.EO=function(){return!1};
g.y.U1=function(){return this.state===5};
g.y.notifySubscribers=function(D){for(var Q=0;Q<this.b5.length;Q++)D&&this.b5[Q].YV()!==D||rG(this.b5[Q],this)};
g.y.oS=function(){return this.q0};
g.y.Bq=function(){this.playerResponse="";var D;(D=this.xhr)==null||D.abort();D44(this.zV);this.Xf.dispose();var Q;(Q=this.BW)==null||Q.dispose();this.pM(-1);this.b5=[];g.v.prototype.Bq.call(this)};
g.y.vk=function(){try{var D=this.xhr;D.OT()>102400&&!this.Yd&&(this.Fw("or100k"),this.Yd=!0);if(D.cI()){var Q=D.KJ(),m=Q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+m});
this.eH&&this.dc("ombrss","len."+m);this.Xf.feed(Q)}if(this.Hx)for(var P=g.T(this.Hx.keys()),W=P.next();!W.done;W=P.next()){var L=W.value;D=void 0;(D=this.Hx.get(L))==null||D.Gh();this.notifySubscribers(L)}}catch(u){this.fail(u)}};
g.y.eP=function(){return this.Kn.requestNumber};
g.y.CN=function(D){return this.xH.get(D)};g.Z(Nwm,g.v);g.y=Nwm.prototype;g.y.Qd=function(D,Q){this.Iy=void 0;IY4(this);lYw(this,D,Q)};
g.y.yV=function(D){if(this.S.length===0)return!1;var Q=this.S[0];return Q instanceof gG?D===this.loader.getCurrentTime()*1E3:!(Q instanceof MV&&nvP(Q.info))&&Math.abs(Q.oS()-D)<50};
g.y.eM=function(D){this.C=D;this.Iy=(0,g.T3)()+(D.backoffTimeMs||0)};
g.y.Fu=function(D,Q){if(D.action===void 0){var m=this.Ch.xQ();m!==void 0&&this.loader.dg(m)}else if(D.action!==0||!this.Y9)if(D.action===0&&this.policy.oU&&(D.action=2),D.HR==="sabr.malformed_config"&&this.policy.gF>0&&this.GO++<this.policy.gF)this.loader.handleError("sabr.malformed_config",{action:D.action,rn:Q,retry:this.GO},0);else switch(D.HR==="sabr.malformed_config"&&this.policy.gF>0&&(D.action=2),m={},m.reason=D.HR,m.action=D.action,m.rn=Q,D.action){case 1:this.policy.C&&this.Z&&this.Z.QB(void 0,
void 0,m);break;case 0:this.Y9=!0;this.videoData.xB()&&this.policy.C&&this.Z&&this.Z.QB(void 0,void 0,m,!1);this.loader.KY(m);break;case 2:bj7(D.HR)!=="sabr.config"&&delete m.reason;this.loader.handleError(bj7(D.HR),m,1);break;case 3:this.policy.cY&&((D=this.UW.j)!=null&&(D.Z=!0),this.loader.handleError("sabr.hostfallback",m))}};
g.y.lT=function(D){D&&(this.loader.dc("sabrctxt",{onsbrctxt:D.type,scp:D.scope,dflt:D.sendByDefault}),D.type&&D.sendByDefault&&this.videoData.XT.add(D.type),D.scope!==2&&(D.type&&this.videoData.sabrContextUpdates.set(D.type,D),this.Ch.lT(D)))};
g.y.En=function(){};
g.y.VN=function(D,Q){if(D.U8!==void 0&&D.qd){var m=D.U8/D.qd;this.audioTrack.U=!1;this.videoTrack.U=!1;if(this.policy.TO||this.policy.VR||this.policy.JP)this.loader.AN.S=!1;var P=this.loader.Hr(m,1);this.policy.XT&&this.policy.C&&this.loader.z4(P,Q);this.Ch.getCurrentTime()!==m&&(Q={cn:"sabr_seek",F_:!0,gW:!0},D.seekSource&&(Q.seekSource=D.seekSource),CF(this.loader,m+.1,Q))}};
g.y.onSnackbarMessage=function(D){this.Ch.publish("onSnackbarMessage",D)};
g.y.Su=function(D,Q){this.policy.u0&&this.j&&this.loader.Su(D,Q)};
g.y.Q7=function(D){D.Y1&&D.FE&&Qr(this.UW,D.Y1,D.FE);this.policy.wQ&&(D.M7&&D.Eu&&(this.UW.JP=D.M7/D.Eu),D.LC&&D.mj&&(this.UW.Sg=D.LC/D.mj));m5(this.videoData)&&!this.videoData.Kh&&D.FE&&this.loader.Hr(D.FE,1E3);D.SS!=null&&this.Ch.yj(D.SS);this.policy.Nz&&D.Ix&&(D=((0,g.T3)()-D.Ix)/1E3,this.loader.rj.X9(1,D))};
g.y.uY=function(D){this.loader.uY(D)};
g.y.Hg=function(D){return this.videoData.XT.has(D)};
g.y.f8=function(D,Q,m){this.policy.T&&this.loader.dc("sabrctxtplc",{start:D?D.join("_"):"",stop:Q?Q.join("_"):"",discard:m?m.join("_"):""});if(D){D=g.T(D);for(var P=D.next();!P.done;P=D.next())this.videoData.XT.add(P.value)}if(Q)for(Q=g.T(Q),D=Q.next();!D.done;D=Q.next())D=D.value,this.videoData.XT.has(D)&&this.videoData.XT.delete(D);if(m)for(m=g.T(m),Q=m.next();!Q.done;Q=m.next())if(Q=Q.value,this.videoData.sabrContextUpdates.has(Q)&&this.videoData.sabrContextUpdates.delete(Q),this.policy.j&&this.S.length)for(D=
g.T(this.S),P=D.next();!P.done;P=D.next())if(P=P.value,!(P instanceof gG)){var W=void 0;((W=P.xw)==null?void 0:W.type)===Q&&(P.xw=void 0)}};
g.y.jl=function(){};
g.y.Tr=function(D){this.U=D};
g.y.lI=function(D){this.N=D};
g.y.oQ=function(D,Q){AY6(this.policy,D,4,Q)};
g.y.dM=function(D){if(D==null?0:D.FB)if(D=D.FB.eA){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.formatId){var m=this.UW.T.get(cW(Q.formatId));m&&m.info&&(m.info.debugInfo=Q.debugInfo)}}};
g.y.Xu=function(D){this.Ch.publish("reloadplayer",D)};
g.y.YV=function(){return this.Ch.YV()||""};
g.y.pY=function(){var D=Gy(this.audioTrack,!0)*1E3,Q=Gy(this.videoTrack,!0)*1E3;return Math.min(D,Q)};
g.y.Rj=function(D,Q){this.loader.dc(D,Q)};
g.y.g8=function(D){Mhn(this.loader,kf_(this.XT,D))};
g.y.Bq=function(){g.v.prototype.Bq.call(this);this.C=void 0;lYw(this,!0,"i");this.S=[]};Y1$.prototype.TO=function(D){YS(D.state)&&$4u(this.B)};
Y1$.prototype.yY=function(){this.isSeeking=!0;this.S===1&&vAm(this.B);this.S===0&&this.DQ.aI("transitiondetector");this.N=!1};GM9.prototype.UC=function(D,Q){if(this.B)return mO9(this,Q);if(Q=oV(D)){var m=Q.S;m&&m.T&&m.S&&(D=D.T.length?D.T[0]:null)&&D.state>=2&&!D.U1()&&D.info.e1===0&&(this.B=D,this.U=m,this.C=Q.info,this.N=this.startTimeSecs=Date.now()/1E3,this.J=this.C.startTime)}return NaN};
GM9.prototype.clear=function(){this.C=this.U=this.B=null;this.S=this.J=this.N=this.startTimeSecs=NaN;this.T=!1};g.Z(iyu,g.v);iyu.prototype.Bq=function(){L5j(this);g.v.prototype.Bq.call(this)};var uhw=/[?&]cpn=/;g.Z(MN,g.v);MN.prototype.flush=function(){var D={};this.C&&(D.pe=this.C);this.S.length>0&&(D.pt=this.S.join("."));this.S=[];return D};
MN.prototype.stop=function(){var D=this,Q,m,P;return g.U(function(W){if(W.C==1)return g.h4(W,2),g.I(W,(Q=D.B)==null?void 0:Q.stop(),4);if(W.C!=2)return(m=W.S)&&D.logTrace(m),g.g7(W,0);P=g.w7(W);D.C=ol_(P.message);g.T7(W)})};
MN.prototype.logTrace=function(D){this.encoder.reset();this.encoder.add(1);this.encoder.add(D.resources.length);for(var Q=g.T(D.resources),m=Q.next();!m.done;m=Q.next()){m=m.value.replace("https://www.youtube.com/s/","");this.encoder.add(m.length);for(var P=0;P<m.length;P++)this.encoder.add(m.charCodeAt(P))}this.encoder.add(D.frames.length);Q=g.T(D.frames);for(m=Q.next();!m.done;m=Q.next()){m=m.value;this.encoder.add(m.name.length);for(P=0;P<m.name.length;P++)this.encoder.add(m.name.charCodeAt(P));
eC(this.encoder,m.resourceId);eC(this.encoder,m.line);eC(this.encoder,m.column)}this.encoder.add(D.samples.length);Q=g.T(D.samples);for(m=Q.next();!m.done;m=Q.next())m=m.value,this.encoder.add(Math.trunc(m.timestamp)),eC(this.encoder,m.stackId);this.encoder.add(D.stacks.length);D=g.T(D.stacks);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.encoder.add(Q.frameId),eC(this.encoder,Q.parentId);D=this.encoder.R_();this.T+=D.length;this.T<1E7&&this.S.push(D)};
MN.prototype.Bq=function(){this.stop();g.v.prototype.Bq.call(this)};var Nrw=[2,5,30];g.sy=I$(function(){var D="";try{var Q=g.qi("CANVAS").getContext("webgl");Q&&(Q.getExtension("WEBGL_debug_renderer_info"),D=Q.getParameter(37446),D=D.replace(/[ :]/g,"_"))}catch(m){}return D});g.Z(g.QU,g.v);g.y=g.QU.prototype;g.y.XS=function(){var D=g.PZ(this.provider);Tr_(this,D)};
g.y.v6=function(){return this.JJ};
g.y.xZ=function(){return{K$:this.K$,Dv:this.Dv}};
g.y.lY=function(D,Q){this.K$=D;this.Dv=Q};
g.y.yj=function(D){if(!this.cY){this.cY=!0;var Q="";switch(D){case 1:Q="proximaui";break;case 2:Q=ywj(this.provider.videoData)?"proximawpcc":this.provider.videoData.V("html5_enable_proxima")||this.provider.videoData.V("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:Q="proximaauto"}Q!==""&&ib(this,Q)}};
g.y.rg=function(D,Q,m,P){if(!this.g2.has(D)){this.g2.add(D);var W=g.PZ(this.provider);g.Du(this,W,"lse",[D,Q,m,P.toFixed(3)])}};
g.y.e_=function(D){mE(this,"lwc",[D.vO?D.vO.toFixed():"",D.v1?D.v1.toFixed():"",D.QF?(D.QF*1E3).toFixed():"",D.Kj?(D.Kj*1E3).toFixed():"",D.Lj?(D.Lj*1E3).toFixed():""].join(":"))};
g.y.reportStats=function(D){D=D===void 0?NaN:D;if(!this.VF()&&(D=D>=0?D:g.PZ(this.provider),this.Kh?VdV.has(this.fn)&&(this.S.size||(this.fn==="PL"?D>=this.C+30:D<=this.TO+30||D>=this.C+1200&&D<=this.TO+86400))&&(g.Du(this,D,"vps",[this.fn]),this.C=D):["PL","B","S"].indexOf(this.fn)>-1&&(this.S.size||D>=this.C+30)&&(g.Du(this,D,"vps",[this.fn]),this.C=D),this.S.size)){this.sequenceNumber===7E3&&g.l4(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){WZ(this,D);var Q=this.provider.Ch.A6();
Q=g.T(Q);for(var m=Q.next();!m.done;m=Q.next())m=m.value,this.dc(m.key,m.value);Q=D;m=this.provider.Ch.W6();var P=m.droppedVideoFrames||0,W=m.totalVideoFrames||0,L=P-this.K$,u=W&&!this.Dv;P>m.totalVideoFrames||L>5E3?J2_(this,"html5.badframedropcount","df."+P+";tf."+m.totalVideoFrames):(L>0||u)&&g.Du(this,Q,"df",[L]);this.K$=P;this.Dv=W;this.Z>0&&(g.Du(this,D,"glf",[this.Z]),this.Z=0);Wv.isActive()&&(D=Wv.HU(),Object.keys(D).length>0&&this.dc("profile",D));this.Kj&&ib(this,"lwnmow");this.provider.SD.xl()&&
this.provider.V("html5_record_now")&&this.dc("now",{wt:(0,g.T3)()});D={};this.provider.videoData.C&&(D.fmt=this.provider.videoData.C.itag,(Q=this.provider.videoData.B)&&Q.itag!==D.fmt&&(D.afmt=Q.itag));D.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(D.adcpn=this.adCpn);this.Es&&(D.addocid=this.Es);this.contentCpn&&(D.ccpn=this.contentCpn);this.QF&&(D.cdocid=this.QF);this.provider.videoData.cotn&&(D.cotn=this.provider.videoData.cotn);D.el=dr(this.provider.videoData);D.content_v=zv(this.provider.videoData);
D.ns=this.provider.SD.TO;D.fexp=Ysr(this.provider.SD.experiments).toString();D.cl=(793736041).toString();(Q=this.provider.videoData.adFormat||this.adFormat)&&(D.adformat=Q);(Q=rw(this.provider.videoData))&&(D.live=Q);this.provider.videoData.qJ()&&(D.drm=1,this.provider.videoData.J&&(D.drm_system=s7$[this.provider.videoData.J.flavor]||0),this.provider.videoData.drmProduct&&(D.drm_product=this.provider.videoData.drmProduct));Pd()&&this.provider.videoData.N&&(D.ctt=this.provider.videoData.N,D.cttype=
this.provider.videoData.oz,this.provider.videoData.mdxEnvironment&&(D.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(D.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.d6&&(D.dai_fallback="1")):this.provider.videoData.Um?D.dai="cs":this.provider.videoData.hL&&(D.dai="disabled");D.seq=this.sequenceNumber++;if(this.provider.videoData.VJ){if(Q=this.provider.videoData.VJ,D&&Q)for(Q.ns==="3pp"&&(D.ns="3pp"),this.kB.has(Q.ns)&&
ib(this,"hbps"),Q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Q.shbpslc),this.provider.SD.experiments.Mv("html5_use_server_qoe_el_value")&&this.XT.delete("el"),m=g.T(Object.keys(Q)),P=m.next();!P.done;P=m.next())P=P.value,this.XT.has(P)||(D[P]=Q[P])}else D.event="streamingstats",D.docid=this.provider.videoData.videoId,D.ei=this.provider.videoData.eventId;this.isEmbargoed&&(D.embargoed="1");Object.assign(D,this.provider.SD.S);if(Q=D.seq)Q={cpn:this.provider.videoData.clientPlaybackNonce,
sequenceNumber:+Q,serializedWatchEndpointLoggingContext:this.provider.videoData.kE0},this.serializedHouseBrandPlayerServiceLoggingContext&&(Q.serializedHouseBrandPlayerServiceLoggingContext=Bz(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.provider.videoData.playerResponseCpn),c7.length&&(Q.decoderInfo=c7),this.remoteControlMode&&(Q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Q.remoteConnectedDevices=
this.remoteConnectedDevices),Q=g.GW(Q,WFj),Q=g.EG(Q,4),this.S.set("qclc",[Q]);D=g.oz("//"+this.provider.SD.RH+"/api/stats/qoe",D);m=Q="";P=g.T(this.S.entries());for(W=P.next();!W.done;W=P.next())L=g.T(W.value),W=L.next().value,L=L.next().value,u=void 0,(u=L)!=null&&u.join&&(W="&"+W+"="+L.join(","),W.length>100?m+=W:Q+=W);glw(this,D+Q,m.replace(/ /g,"%20"))}this.S.clear()}};
g.y.CJ=function(D){this.Kj=D};
g.y.So=function(){if(this.provider.videoData.J){var D=this.provider.videoData.J;ib(this,"eme-"+(D.keySystemAccess?"final":tY(D)?"ms":qB(D)?"ytfp":bC(D)?"safarifp":"nonfinal"))}};
g.y.mF=Dk(53);g.y.pF=function(D){this.isEmbargoed=D};
g.y.F6=Dk(30);g.y.o_=Dk(36);g.y.onPlaybackRateChange=function(D){var Q=g.PZ(this.provider);D&&D!==this.kJ&&(g.Du(this,Q,"rate",[D]),this.kJ=D);this.Kh||this.reportStats(Q)};
g.y.Ic=Dk(24);g.y.getPlayerState=function(D){if(g.X(D,128))return"ER";if(g.X(D,2048))return"B";if(g.X(D,512))return"SU";if(g.X(D,16)||g.X(D,32))return"S";if(D.isOrWillBePlaying()&&g.X(D,64))return"B";var Q=Nek[aQ(D)];g.Nw(this.provider.SD)&&Q==="B"&&this.provider.Ch.getVisibilityState()===3&&(Q="SU");Q==="B"&&g.X(D,4)&&(Q="PB");return Q};
g.y.xW=function(D){var Q=g.PZ(this.provider);g.Du(this,Q,"vfi",[D===0?"":""+D,D===0?"A":"M"])};
g.y.Bq=function(){g.v.prototype.Bq.call(this);g.qv(this.Iy);g.qv(this.Lj)};
g.y.vR=function(D){this.isOffline=D;g.Du(this,g.PZ(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.y.dc=function(D,Q,m){var P=this.yn.indexOf(D)!==-1;P||this.yn.push(D);if(!m||!P){var W=typeof Q!=="string"?ft(Q):Q;W=Inn(W);if(!m&&!/^t[.]/.test(W)){var L=g.PZ(this.provider)*1E3;W="t."+L.toFixed()+";"+W}mE(this,"ctmp",D+":"+W);this.logger.debug(function(){return"ctmp "+D+" "+W});
Brw(this);return L}};
g.y.kX=function(D,Q,m){this.J={Ptc:Number(this.dc("glrem",{nst:D.toFixed(),rem:Q.toFixed(),ca:+m})),Cl:D,vV9:Q,isAd:m}};
g.y.Nf=function(D,Q,m){g.Du(this,g.PZ(this.provider),"ad_playback",[D,Q,m])};
g.y.qW=function(D,Q){var m=g.PZ(this.provider)*1E3;mE(this,"daism","t."+m.toFixed(0)+";smw."+(D*1E3).toFixed(0)+";smo."+(Q*1E3).toFixed(0))};
g.y.resume=function(){var D=this;isNaN(this.Iy)?wUr(this):this.Iy=g.zX(function(){D.reportStats()},1E4)};
var ZD={},Nek=(ZD[5]="N",ZD[-1]="N",ZD[3]="B",ZD[0]="EN",ZD[2]="PA",ZD[1]="PL",ZD[-1E3]="ER",ZD[1E3]="N",ZD),VdV=new Set(["PL","B","S"]),c7=[];g.Z(g.ub,g.v);g.y=g.ub.prototype;g.y.initialize=function(D,Q,m){this.logger.debug(function(){return"Initialized, t="+D});
D=D||0;this.policy.S||(Q=lB7(this.S),Qa6(this.Ch,new u9(Q.video,Q.reason)),this.Ch.Ak(new u9(Q.audio,Q.reason)));this.policy.S&&mSu(this);this.UW.isManifestless&&dS9(this.J);this.U&&cch(this.U,this.videoTrack.S);Q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var P=!this.UW.isManifestless;this.policy.rQ&&(P=P||this.UW.Ws);if(!this.policy.t0||this.policy.Lj)this.currentTime=P?D:Q;this.policy.TO&&this.seek(this.getCurrentTime(),{}).Fn(function(){});
if(this.policy.S){var W;((W=this.TO)==null?0:Vj9(W,this.YV()||""))&&Oyh(this)&&vl7(this,this.videoTrack)&&vl7(this,this.audioTrack)&&(RqP(this.C,this.TO),this.policy.J&&eKr(this))}else this.Kh&&(Y6P(this,this.videoTrack),Y6P(this,this.audioTrack),Hd6(this.Kh),delete this.Kh);m?(A27(this,!1),g.xG(this.q_)):(m=this.getCurrentTime()===0,uB(this.J,this.videoTrack,this.videoTrack.S,m),uB(this.J,this.audioTrack,this.audioTrack.S,m),this.policy.S&&Fpw(this.C,!0),this.policy.TO||this.seek(this.getCurrentTime(),
{}).Fn(function(){}),this.timing.tick("gv"));
(this.UW.vO||this.UW.v1||this.UW.QF||this.UW.Kj||this.UW.Lj)&&this.Ch.e_(this.UW)};
g.y.resume=function(){if(this.isSuspended||this.RZ){this.logger.debug("Resumed.");this.Vw=this.RZ=this.isSuspended=!1;try{this.UC()}catch(D){g.JG(D)}}};
g.y.s_=function(){return!this.policy.zY};
g.y.tA=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;this.logger.debug("detaching media source");S6$(this);this.Ch.KU()&&(this.N=NaN);D?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.wc&&this.dc("loader",{setsmb:1}),this.policy.QF=!0,this.fI()):(A27(this,!1),Q||this.fI())};
g.y.setAudioTrack=function(D,Q,m){m=m===void 0?!1:m;if(!this.VF()){var P=!isNaN(Q);m&&P&&(this.audioTrack.Iy=Date.now(),this.policy.A8&&(this.jD=!0));if(this.policy.S){var W=this.B.GI(D.id,P);this.logger.debug(function(){return"Logging new audio format: "+W.S.info.id});
this.Ch.Ak(W)}else{var L=wlr(this.S,D.id,P);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id});
this.Ch.Ak(new u9(L.audio,L.reason))}P?(this.cY=Date.now(),m=this.audioTrack.S.index.JY(Q),this.dc("setAudio",{id:D.id,cmt:Q,sq:m}),m>=0&&(D=this.policy.Bm?m+1:m,this.policy.S&&this.Qd(!0,"mosaic"),Mb(this.audioTrack,D,NaN,NaN),!this.policy.HO&&this.UW.isLive&&D9(this.UW,D,!1))):this.Ch.T8()}};
g.y.setPlaybackRate=function(D){D!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(D)};
g.y.AF=function(D){var Q=this.C.U;this.C.Tr(D);this.dc("scfidc",{curr:cW(Q),"new":cW(D)});D&&cW(D)!==cW(Q)&&(this.Qd(!0,"caption change"),this.UC())};
g.y.mx=function(D){this.C.lI(D)};
g.y.E$=function(D){var Q=D.S.info.ZQ();this.logger.debug(function(){return"New "+(Q?"audio":"video")+" format from SABR: "+L2(D.S.info)});
Q?this.Ch.Ak(D):Qa6(this.Ch,D)};
g.y.g8=function(D){Lf(D.EW[D.EW.length-1])&&Mhn(this,kf_(this.S,D.EW[0].S))};
g.y.lU=function(){return this.Ch.lU()};
g.y.B$=function(){return this.Ch.B$()};
g.y.uY=function(D){this.Ch.G().xl()&&this.dc("sps",{status:D.iM||""});if(D.iM===1)this.Ch.videoData.BN=0;else if(D.iM===2||D.iM===3){var Q=!1;if(D.iM===3){Q=this.Ch.kZ();var m;this.yn=(m=D.J8F)!=null?m:Infinity;this.Ch.videoData.BN=Q+1;(Q=uG7(this))&&this.nD(!0)}this.Ch.Ui(!0,Q)}};
g.y.pE=function(){return this.Ch.pE()};
g.y.sN=function(){return this.Ch.sN()};
g.y.LQ=function(D){this.Ch.LQ(D)};
g.y.SST=function(){var D,Q=(D=this.Ch.Cn())==null?void 0:D.getCurrentTime();Q?this.Ch.dc("rms",{cta:Q}):g.xG(this.Xw)};
g.y.UC=function(){Gv$(this);if(this.cq&&h$(this.cq)&&!this.cq.q4()&&(!this.policy.t0||isFinite(this.getCurrentTime()))){var D=YQ(this.videoTrack);D=this.policy.ZX&&D&&D.zM();this.UW.isManifestless&&this.UW.B&&rL(this.UW)?(this.N=rL(this.UW),this.cq.Pk(this.N)):mB(this.UW)&&!D?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.cq.Pk(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.cq.Pk(this.N)):this.cq.isView||(D=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.N)||this.N!==D)&&D>0&&(this.cq.Pk(D),this.N=D))}if(!this.VF())if(Ss(this.UW)&&this.UW.U1()){var Q=this.UW;this.handleError("manifest.net.retryexhausted",Q.XT?{rc:Q.al}:{rc:Q.al.toString()},1)}else if(this.policy.S)a:{try{w1j(this.C);this.UW.isManifestless&&this.policy.J&&bO(this.AN);var m;((m=this.cq)==null?0:gM(m))&&this.Be();Fpw(this.C)}catch(u){g.l4(u);Q=u;if(Q.message.includes("changeType")){this.dc("ctype",{exp:Q.name,msg:Q.message,s:Q.stack});break a}this.handleError("fmt.unplayable",
{exp:Q.name,msg:Q.message,s:Q.stack,trg:"sabrslicerqt"},1)}yh4(this);g.xG(this.XT)}else if(!this.UW.C||!I9P(this.videoTrack)&&!I9P(this.audioTrack)||(this.videoTrack.J||this.audioTrack.J)&&this.policy.hU?m=!1:(this.fI(),this.Ch.seekTo(Infinity,{cn:"checkLoaderTracksSync",Hr:!0}),m=!0),!m){Gv$(this);this.UW.isManifestless&&(Rl4(this.videoTrack),Rl4(this.audioTrack),bO(this.AN),(m=oV(this.videoTrack))&&m.S&&(m=m.S.T&&!this.policy.QL,this.dc(m===this.policy.U.Qo?"strm":"strmbug",{strm:m,sfmp4:this.policy.U.Qo,
dfs:this.policy.QL},!0)));if(this.cq)this.Be();else if(this.policy.B){var P;m=!1;if(this.policy.aU){var W;D=g.T([this.videoTrack,this.audioTrack]);for(W=D.next();!W.done;W=D.next()){var L=W.value;for(W=oV(L);W&&L.xI()!==YQ(L);W=oV(L))L.xz(W);m=m||!!W}}else(Q=oV(this.videoTrack))&&this.videoTrack.xz(Q),(P=oV(this.audioTrack))&&this.audioTrack.xz(P);XW(this.videoTrack)&&XW(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Q||P||m)&&SW(this)}anu(this);uB(this.J,this.videoTrack,
this.videoTrack.S,!1);uB(this.J,this.audioTrack,this.audioTrack.S,!1);this.policy.yx||D$7(this,this.videoTrack,this.audioTrack);cYu(this.J,this.videoTrack,this.audioTrack);cYu(this.J,this.audioTrack,this.videoTrack);yh4(this);this.U&&(Q=this.U,Q.B?(P=Q.N+Q.policy.kU,Q.T||(P=Math.min(P,Q.startTimeSecs+Q.policy.nZ)),Q=Math.max(0,P*1E3-Date.now())):Q=NaN,isNaN(Q)||g.xG(this.g2,Q));g.xG(this.XT)}};
g.y.KY=function(D){this.Ch.KY(D)};
g.y.Be=function(){var D=this;if(this.cq){var Q=this.cq.S,m=this.cq.C;RIr(this,this.audioTrack);RIr(this,this.videoTrack);var P=Pik(this);if(P){if(this.policy.f0){if(!Q.Jj()){var W=oV(this.audioTrack);if(W){if(!L7(this,this.audioTrack,Q,W.info))return;sa4(this,this.audioTrack,Q,W)}}if(!m.Jj()&&(W=oV(this.videoTrack))){if(!L7(this,this.videoTrack,m,W.info))return;sa4(this,this.videoTrack,m,W)}}this.Iy||(this.Iy=(0,g.T3)(),this.logger.debug(function(){return"Appends pause start "+D.Iy+" reason "+P}),
this.policy.T&&this.dc("apdps",{r:P}))}else if(this.Iy&&(m$j(this,this.Iy),this.Iy=0),WW7(this),W=!1,zH4(this,this.videoTrack,m)&&(W=!0,Gor(this.timing),Qdj(this.timing)),this.cq&&!this.cq.TE()&&(zH4(this,this.audioTrack,Q)&&(W=!0,MJu(this.timing),mAj(this.timing)),!this.VF()&&this.cq))!this.policy.zY&&XW(this.videoTrack)&&XW(this.audioTrack)&&h$(this.cq)&&!this.cq.q4()&&(m=!1,m=YQ(this.audioTrack).S,m=m===this.UW.S[m.info.id])&&(this.logger.debug("Setting EOS"),UWw(this.cq),FSP(this.schedule),this.rg("e")),
W&&!this.cq.isAsync()&&SW(this)}};
g.y.rg=function(D){if(this.UW.isManifestless){var Q=this.videoTrack.S;if(Q){var m=Q.index.MY(),P=-1,W=-1;Q.index instanceof F_&&(P=Q.index.Ox(),W=Q.index.vI());this.Ch.rg(D,m,P,W)}}};
g.y.WK=function(D){var Q,m=D===((Q=this.cq)==null?void 0:Q.S)?this.audioTrack:this.videoTrack,P;if((P=oV(m))==null?0:P.isLocked){if(this.Ch.G().xl()){var W;this.dc("eosl",{ounlock:(W=oV(m))==null?void 0:W.info.Hn()})}var L;V94(this,D===((L=this.cq)==null?void 0:L.S))}var u;if(this.policy.A8&&D===((u=this.cq)==null?void 0:u.S)&&this.gB){Q=this.gB-this.getCurrentTime();var t;this.Ch.dc("asl",{l:Q,xtag:(t=YQ(this.audioTrack))==null?void 0:t.S.info.S});this.jD=!1;this.gB=0}D.x5()&&D.Ti().length===0&&
(D.dS(),this.cq&&!this.cq.x5()&&(this.Ch.G().xl()&&this.Ch.dc("rms",{ld:"seek"}),this.cq.N=performance.now(),this.Ch.qy(),this.Ch.G().xl()&&g.xG(this.Xw)));var z;(z=m.j)!=null&&FW(z,0);this.policy.dn?L8P(this):this.UC()};
g.y.P0h=function(D){if(this.cq){var Q=YQ(D===this.cq.S?this.audioTrack:this.videoTrack);if(D=D.d0())for(var m=0;m<D.length;m++)this.dc("appendedbuffer",{i:m,b:g.EG(D[m].subarray(0,4096),3)});D={};Q&&(D=t7(Q));D.trg="onappenderr";this.handleError("fmt.unplayable",D,1)}};
g.y.Wd=function(D){this.Ch.Wd(D)};
g.y.ya=function(D,Q,m){if(this.UW.isManifestless){D=!!D.info.video;NJ4(this,Q,m,D,!0);if(this.policy.WO&&D){var P;(P=this.hU)==null||S1r(P,Q.J0,m)}if(Q.OC){P=!!m;var W=Q.OC||null;if((W==null?void 0:W.event)!=="predictStart"){var L,u=(L=this.C)==null?void 0:U46(L);L=u.requestNumber;u=u.isDecorated;if(D&&!u){var t;this.dc("sdai",{underdec:this.policy.C1?(t=this.Z)==null?void 0:t.DE(W):1,evt:W==null?void 0:W.event,id:W==null?void 0:W.identifier,sq:Q.J0,mt:Q.startTime.toFixed(3),stif:P,rn:L})}}}t=D?this.videoTrack:
this.audioTrack;t.TO.push({Pi:Q.J0,VbT:m});t.TO.length>5&&t.TO.shift();Q=Q.J0;var z;if((z=this.Ch.getVideoData())==null?0:z.enableServerStitchedDai)z=vur(this.audioTrack,Q),m=vur(this.videoTrack,Q),z!==0&&m!==0&&z!==m&&this.handleError("ssdai.avsync",{sq:Q,a:z,v:m},0)}};
g.y.bl=function(D,Q,m,P){D.info.video&&this.T.bl(Q,m,P)};
g.y.fv=function(D){this.S.fv(D)};
g.y.c6=Dk(12);g.y.JK=function(){if(g.X(this.Ch.getPlayerState(),8)){var D,Q,m=(Q=(D=this.Ch.Cn())==null?void 0:D.getCurrentTime())!=null?Q:this.Ch.getCurrentTime(),P;(P=this.hU)==null||Ach(P,m)}var W;(W=this.Lj)==null||g.xG(W)};
g.y.C8=function(){return this.videoTrack.U||this.audioTrack.U};
g.y.seek=function(D,Q){if(this.VF())return J9();if(this.C8())return J9("seeking to head");if(this.policy.TO&&!isFinite(D))return Io7(this.AN),g.k7(Infinity);Gv$(this);mSu(this);this.policy.S||anu(this,D);this.cq&&this.cq.S&&this.cq.C&&!this.Ch.getVideoData().u_&&(this.cq.S.isLocked()||this.cq.C.isLocked())&&this.Ch.T8({reattachOnLockedBuffer:1,vsb:""+this.cq.C.isLocked(),asb:""+this.cq.S.isLocked()});var m=this.getCurrentTime(),P=this.AN.seek(D,Q);if(!this.policy.t0||this.policy.Lj)this.currentTime=
P;sT(this.T,D,m,this.policy.fD&&!Q.F_);SW(this);return g.k7(P)};
g.y.yV=function(D){return this.policy.S&&this.C.yV(D)};
g.y.Hg=function(D){return this.C.Hg(D)};
g.y.Qd=function(D,Q){this.C.Qd(D,Q)};
g.y.getCurrentTime=function(){if(this.policy.t0){var D=this.m2()||0;return this.Ch.getCurrentTime(!0)-D}return this.currentTime};
g.y.PS=function(){return this.audioTrack.S.info};
g.y.Py=function(){return this.videoTrack.S.info};
g.y.q1=function(){return this.audioTrack.S.info.FT};
g.y.rS=function(){return this.videoTrack.S.info.FT};
g.y.Bq=function(){try{this.tA(),uO(this.audioTrack),uO(this.videoTrack),P7(this.audioTrack),P7(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.v.prototype.Bq.call(this)}catch(D){g.JG(D)}};
g.y.handleError=function(D,Q,m){m=m===void 0?0:m;var P=Nh(m);D==="fmt.unplayable"&&this.UW.isLive&&(this.policy.f0=!1,cl(this.UW));Q=new g.VJ(D,Q,m);g.LV(this);ft(Q.details);this.Ch.handleError(Q);D!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&D!=="fmt.unparseable"&&P&&this.dispose()};
g.y.yX=function(){var D=YQ(this.audioTrack),Q=YQ(this.videoTrack);D={lct:this.getCurrentTime().toFixed(3),lsk:this.AN.isSeeking(),lmf:this.S.S.isLocked(),lbw:rJ(this.schedule).toFixed(3),lhd:X$(this.schedule).toFixed(3),lst:((this.schedule.U.S1()||0)*1E9).toFixed(3),laa:D?D.Hn():"",lva:Q?Q.Hn():"",lar:this.audioTrack.C?this.audioTrack.C.Hn():"",lvr:this.videoTrack.C?this.videoTrack.C.Hn():"",laq:""+Sv(this.audioTrack),lvq:""+Sv(this.videoTrack)};this.cq&&!this.cq.TE()&&this.cq.S&&this.cq.C&&(D.lab=
dM(this.cq.S.Ti()),D.lvb=dM(this.cq.C.Ti()));this.Iy&&(D.lapt=((0,g.T3)()-this.Iy).toFixed(0),D.lapr=Pik(this));this.k9&&(D.lapmabht=((0,g.T3)()-this.k9).toFixed(0),D.lapmabh=tp(this,this.audioTrack).toFixed(0));this.GO&&(D.lapmvbht=((0,g.T3)()-this.GO).toFixed(0),D.lapmvbh=tp(this,this.videoTrack).toFixed(0));this.Y9&&(D.lapsdai=((0,g.T3)()-this.Y9).toFixed(0));return D};
g.y.fI=function(){try{this.policy.S&&this.C.Qd(!1,"pending"),this.audioTrack.fI(),this.videoTrack.fI()}catch(D){g.JG(D)}this.policy.B=""};
g.y.WS=function(){return DJ(this.j)};
g.y.dc=function(D,Q,m){this.Ch.dc(D,Q,m===void 0?!1:m)};
g.y.YV=function(){return this.Ch.YV()};
g.y.Hr=function(D,Q){D/=Q;isNaN(this.timestampOffset)&&UNw(this,D-Math.min(D,this.policy.D8));return(D-this.timestampOffset)*Q};
g.y.m2=function(){return this.timestampOffset};
g.y.isSeeking=function(){return this.AN.isSeeking()};
g.y.kQ=function(){this.T.kQ()};
g.y.NA=function(D,Q,m){Q=Q===void 0?!1:Q;m=m===void 0?{}:m;this.policy.S?this.B.NA(D,Q,m):this.S.NA(D,Q,m)};
g.y.GV=function(D,Q){if(this.policy.C&&this.policy.dF&&(this.u0||this.isSeeking()))return this.dc("sdai",{ignoreSkip:"1",isSkip:this.u0,isSeek:this.isSeeking(),t:D.toFixed(3)}),!1;if(this.Z&&this.T.GV(D,this.Z)){this.policy.C&&this.policy.dF&&(this.dc("sdai",{skipAdStd:"1"}),this.u0=!0);if(this.policy.XT&&this.policy.C){var m=this.videoTrack.S.index.JY(D),P;(P=this.QF)==null||P.UJ(D,m)}UNw(this,this.timestampOffset-Q);SW(this);this.policy.C&&(cl(this.UW),P7(this.audioTrack),P7(this.videoTrack),this.fI());
return!0}Q=this.videoTrack.S.index.JY(D);this.handleError("ad.skipfailed",{dec:!!this.Z,t:D.toFixed(3),sq:Q});return!1};
g.y.getManifest=function(){return this.UW};
g.y.isOffline=function(){return!!this.Ch.getVideoData().cotn};
g.y.VT=function(D,Q){this.Ch.VT(D,Q)};
g.y.bR=function(D){if(this.policy.S)this.C.Qd(!0,"utc"),this.UC();else{var Q=this.Ch.getVideoData().zm;if(Q){var m=this.J;m.iH=D;m.zm=Q;tB(this)}}};
g.y.dg=function(D){this.videoTrack.U=!1;this.audioTrack.U=!1;this.AN.S=!1;this.Ch.dg(D)};
g.y.Xh=function(D){this.AN.Xh(D-this.m2())};
g.y.qx=function(){this.Ch.qx()};
g.y.nD=function(D){D!==this.policy.R4&&((this.policy.R4=D)||this.UC())};
g.y.T8=function(D){this.Ch.T8(D)};
g.y.CJ=function(D){this.Ch.CJ(D)};
g.y.wM=function(D,Q,m){var P;(P=this.QF)==null||P.wM(D,Q,m)};
g.y.z4=function(D,Q){var m;(m=this.QF)==null||m.z4(D,Q)};
g.y.kZ=function(){return this.Ch.kZ()};
g.y.Su=function(D,Q){if(this.policy.u0){var m;(m=this.QF)==null||m.Su(D,Q,this.Z||void 0)}};g.y=g.dT.prototype;g.y.zT=function(D,Q,m,P,W,L){return this.Ax.zT(D,Q,m,P,W,L)};
g.y.H$=function(D,Q,m,P,W,L){return this.Ax.H$(D,Q,m,P,W,L)};
g.y.BJ=function(D){return this.Ax.BJ(D)};
g.y.Jq=function(D){this.Ax.Jq(D)};
g.y.QB=function(D,Q,m,P){return this.Ax.QB(D,Q,m,P)};
g.y.kQ=function(){this.Ax.kQ()};
g.y.UJ=function(D,Q){this.Ax.UJ(D,Q)};
g.y.Zn=function(){this.Ax.Zn()};
g.y.nB=Dk(56);g.y.xN=function(D,Q,m){this.Ax.xN(D,Q,m)};
g.y.y7=Dk(59);g.y.Sx=function(D,Q,m,P,W,L,u,t,z){this.Ax.Sx(D,Q,m,P,W,L,u,t,z)};
g.y.E8=function(D){this.Ax.E8(D)};
g.y.uM=function(D){return this.Ax.uM(D)};
g.y.DE=function(D){return this.Ax.DE(D)};
g.y.Ny=function(D){return this.Ax.Ny(D)};g.Z(ts,g.iR);g.Z(zi,ts);zi.prototype.N=function(D,Q){if(D&&Q){var m=Number(Zb(D,"cpi"))*1+1;isNaN(m)||m<=0||m<this.T?(this.B.stop(),this.C.stop(),this.T=-1,this.S={}):(m>this.T&&(this.T=m,g.b7(this.S)||(this.S={},this.B.stop(),this.C.stop())),this.S[Q]=D,g.xG(this.C))}};
zi.prototype.J=function(){for(var D=g.T(Object.keys(this.S)),Q=D.next();!Q.done;Q=D.next()){var m=Q.value;Q=this.publish;for(var P=this.T,W=g.LG(this.S[m]),L=[],u=g.T(W[6].split("&")),t=u.next();!t.done;t=u.next())t=t.value,t.indexOf("cpi=")===0?L.push("cpi="+P.toString()):t.indexOf("ek=")===0?L.push("ek="+g.gh(m)):L.push(t);W[6]="?"+L.join("&");m="skd://"+W.slice(2).join("");W=m.length*2;P=new Uint8Array(W+4);P[0]=W%256;P[1]=(W-P[0])/256;for(W=0;W<m.length;++W)P[W*2+4]=m.charCodeAt(W);Q.call(this,
"rotated_need_key_info_ready",new kQ(P,"fairplay",!0))}this.S={}};
zi.prototype.Bq=function(){this.S={};ts.prototype.Bq.call(this)};g.Z(bb,ts);
bb.prototype.B=function(D){var Q;a:{if((Q=D.cryptoPeriodIndex)&&this.S.length>0)for(var m=g.T(this.S),P=m.next();!P.done;P=m.next())if(Q===P.value.info.cryptoPeriodIndex){Q=!0;break a}Q=!1}if(!Q){Q=(0,g.T3)();a:{m=D.cryptoPeriodIndex;if(!isNaN(m)){P=g.T(this.T.values());for(var W=P.next();!W.done;W=P.next())if(Math.abs(W.value.cryptoPeriodIndex-m)<=1){m=!0;break a}}m=!1}m?(m=D.S,m=Math.max(0,Math.random()*((isNaN(m)?120:m)-30))*1E3):m=0;this.publish("log_qoe",{wvagt:"delay."+m,cpi:D.cryptoPeriodIndex,reqlen:this.S.length});
m<=0?$Nm(this,D):(this.S.push({time:Q+m,info:D}),g.xG(this.C,m))}};
bb.prototype.Bq=function(){this.S=[];ts.prototype.Bq.call(this)};var FD={},aLj=(FD.DRM_TRACK_TYPE_AUDIO="AUDIO",FD.DRM_TRACK_TYPE_SD="SD",FD.DRM_TRACK_TYPE_HD="HD",FD.DRM_TRACK_TYPE_UHD1="UHD1",FD);g.Z(OS_,g.v);g.Z(p7P,g.iR);g.y=p7P.prototype;g.y.Jr=function(D){var Q=this;if(!(this.VF()||D.size<=0)){var m={};D.forEach(function(P,W){var L=zZ(Q.C)?W:P;W=new Uint8Array(zZ(Q.C)?P:W);zZ(Q.C)&&u17(W);P=g.EG(W,4);u17(W);W=g.EG(W,4);Q.S[P]?Q.S[P].status=L:Q.S[W]?Q.S[W].status=L:Q.S[P]={type:"",status:L};sJw(Q,Q.S[P].type,m)});
WEu(this,",");q7(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}};
g.y.error=function(D,Q,m,P){this.VF()||(this.publish("licenseerror",D,Q,m,P),D==="drm.provision"&&(D=(Date.now()-this.N)/1E3,this.N=NaN,this.publish("ctmp","provf",{et:D.toFixed(3)})));Nh(Q)&&this.dispose()};
g.y.shouldRetry=function(D,Q){return!D&&this.requestNumber===Q.requestNumber};
g.y.Bq=function(){this.S={};g.iR.prototype.Bq.call(this)};
g.y.yX=function(){var D={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.Kh,cryptoPeriodIndex:this.cryptoPeriodIndex};this.T&&(D.keyStatuses=this.S);return D};
g.y.getInfo=function(){var D=this.B.join();if(C7(this)){var Q=new Set,m;for(m in this.S)this.S[m].status!=="usable"&&Q.add(this.S[m].type);D+="/UKS."+Array.from(Q)}return D+="/"+this.cryptoPeriodIndex};
g.y.AD=function(){return this.url};g.Z(f7,g.v);g.y=f7.prototype;g.y.le=function(D){if(this.J){var Q=D.messageType||"license-request";this.J(new Uint8Array(D.message),Q)}};
g.y.Jr=function(){this.U&&this.U(this.S.keyStatuses)};
g.y.onClosed=function(){this.VF()||g.j8("xboxone")&&this.T&&this.T("closedShouldNotRetry")};
g.y.xq=function(D){this.J&&this.J(D.message,"license-request")};
g.y.wJ=function(D){if(this.T){if(this.C){var Q=this.C.error.code;D=this.C.error.systemCode}else Q=D.errorCode,D=D.systemCode;this.T("t.prefixedKeyError;c."+Q+";sc."+D,Q,D)}};
g.y.VI=function(){this.N&&this.N()};
g.y.update=function(D){var Q=this;if(this.S)return this.S.update(D).then(null,P4(function(m){tlk(Q,"t.update",m)}));
this.C?this.C.update(D):this.element.addKey?this.element.addKey(this.Z.keySystem,D,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,D,this.initData,this.sessionId);return Bd()};
g.y.Bq=function(){this.S&&(this.j?this.S.close().catch(g.l4):this.S.close());this.element=null;g.v.prototype.Bq.call(this)};g.Z(VU,g.v);g.y=VU.prototype;g.y.setServerCertificate=function(){return this.C.setServerCertificate?this.S.flavor==="widevine"&&this.S.gF?this.C.setServerCertificate(this.S.gF):CD(this.S)&&this.S.k9?this.C.setServerCertificate(this.S.k9):null:null};
g.y.createSession=function(D,Q){var m=D.initData;if(this.S.keySystemAccess){Q&&Q("createsession");var P=this.C.createSession();qB(this.S)?m=qym(m,this.S.k9):CD(this.S)&&(m=jxj(m)||new Uint8Array(0));Q&&Q("genreq");D=P.generateRequest(D.contentType,m);var W=new f7(null,null,null,P,null,this.U);D.then(function(){Q&&Q("genreqsuccess")},P4(function(u){tlk(W,"t.generateRequest",u)}));
return W}if(tY(this.S))return oa9(this,m);if(bC(this.S))return Cb9(this,m);if((P=this.element)==null?0:P.generateKeyRequest)this.element.generateKeyRequest(this.S.keySystem,m);else{var L;(L=this.element)==null||L.webkitGenerateKeyRequest(this.S.keySystem,m)}return this.B=new f7(this.element,this.S,m,null,null,this.U)};
g.y.p5=function(D){var Q=fuP(this,D);Q&&Q.xq(D)};
g.y.PK=function(D){var Q=fuP(this,D);Q&&Q.wJ(D)};
g.y.ZJ=function(D){var Q=fuP(this,D);Q&&Q.VI(D)};
g.y.getMetrics=function(){var D=null;if(this.C&&this.C.getMetrics)try{D=this.C.getMetrics()}catch(Q){}return D};
g.y.Bq=function(){this.T=this.C=null;var D;(D=this.B)==null||D.dispose();D=g.T(Object.values(this.N));for(var Q=D.next();!Q.done;Q=D.next())Q.value.dispose();this.N={};g.v.prototype.Bq.call(this);delete this.element};g.y=N7.prototype;g.y.get=function(D){D=this.findIndex(D);return D!==-1?this.values[D]:null};
g.y.remove=function(D){D=this.findIndex(D);D!==-1&&(this.keys.splice(D,1),this.values.splice(D,1))};
g.y.removeAll=function(){this.keys=[];this.values=[]};
g.y.set=function(D,Q){var m=this.findIndex(D);m!==-1?this.values[m]=Q:(this.keys.push(D),this.values.push(Q))};
g.y.findIndex=function(D){return g.ZN(this.keys,function(Q){return g.xk(D,Q)})};g.Z(ys6,g.iR);g.y=ys6.prototype;g.y.bjc=function(D){this.Jn({onecpt:1});D.initData&&TT7(this,new Uint8Array(D.initData),D.initDataType)};
g.y.Pg0=function(D){this.Jn({onndky:1});TT7(this,D.initData,D.contentType)};
g.y.Wd=function(D){this.Jn({onneedkeyinfo:1});this.SD.V("html5_eme_loader_sync")&&(this.U.get(D.initData)||this.U.set(D.initData,D));FEh(this,D)};
g.y.A5=function(D){this.T.push(D);yU(this)};
g.y.createSession=function(D){var Q=nam(this)?Gf$(D):g.EG(D.initData);this.C.get(Q);this.QF=!0;D=new p7P(this.videoData,this.SD,D,this.drmSessionId);this.C.set(Q,D);D.subscribe("ctmp",this.BQ,this);D.subscribe("keystatuseschange",this.Jr,this);D.subscribe("licenseerror",this.F$,this);D.subscribe("newlicense",this.Jm,this);D.subscribe("newsession",this.vQ,this);D.subscribe("sessionready",this.WQ,this);D.subscribe("fairplay_next_need_key_info",this.HQ,this);this.SD.V("html5_enable_vp9_fairplay")&&D.subscribe("qualitychange",
this.fp,this);D.subscribe("sabrlicenseconstraint",this.djc,this);rB7(D,this.B)};
g.y.Jm=function(D){this.VF()||(this.Jn({onnelcswhb:1}),D&&!this.heartbeatParams&&(this.heartbeatParams=D,this.publish("heartbeatparams",D)))};
g.y.vQ=function(){this.VF()||(this.Jn({newlcssn:1}),this.T.shift(),this.QF=!1,yU(this))};
g.y.WQ=function(){if(tY(this.S)&&(this.Jn({onsnrdy:1}),this.u0--,this.u0===0)){var D=this.TO,Q,m;(Q=D.element)==null||(m=Q.msSetMediaKeys)==null||m.call(Q,D.T)}};
g.y.Jr=function(D){if(!this.VF()){this.wc||(this.wc=!0,this.SD.xl()&&Ea9(this));this.Jn({onksch:1});var Q=this.fp;if(!C7(D)&&g.Ak&&D.C.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var m="large";else{m=[];var P=!0;if(C7(D))for(var W=g.T(Object.keys(D.S)),L=W.next();!L.done;L=W.next())L=L.value,D.S[L].status==="usable"&&m.push(D.S[L].type),D.S[L].status!=="unknown"&&(P=!1);if(!C7(D)||P)m=D.B;m=Pb$(m)}Q.call(this,m);if(!C7(D))for(Q={},m=g.T(D.B),P=m.next();!P.done;P=m.next())sJw(D,
P.value,Q);this.videoData.authorizedFormats=D.authorizedFormats;this.publish("keystatuseschange",D)}};
g.y.BQ=function(D,Q){this.VF()||this.publish("ctmp",D,Q)};
g.y.HQ=function(D,Q){this.VF()||this.publish("fairplay_next_need_key_info",D,Q)};
g.y.F$=function(D,Q,m,P){this.VF()||(this.videoData.V("html5_log_drm_metrics_on_error")&&Ea9(this),this.publish("licenseerror",D,Q,m,P))};
g.y.eT=function(){return this.Z};
g.y.fp=function(D){var Q=g.IP("auto",D,!1,"l");if(this.videoData.R4){if(this.Z.equals(Q))return}else if(iZ6(this.Z,D))return;this.Z=Q;this.publish("qualitychange");this.Jn({updtlq:D})};
g.y.djc=function(D){this.videoData.sabrLicenseConstraint=D};
g.y.Bq=function(){this.S.keySystemAccess&&this.element&&(this.Kh?this.element.setMediaKeys(null).catch(g.l4):this.element.setMediaKeys(null));this.element=null;this.T=[];for(var D=g.T(this.C.values()),Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.unsubscribe("ctmp",this.BQ,this),Q.unsubscribe("keystatuseschange",this.Jr,this),Q.unsubscribe("licenseerror",this.F$,this),Q.unsubscribe("newlicense",this.Jm,this),Q.unsubscribe("newsession",this.vQ,this),Q.unsubscribe("sessionready",this.WQ,this),Q.unsubscribe("fairplay_next_need_key_info",
this.HQ,this),this.SD.V("html5_enable_vp9_fairplay")&&Q.unsubscribe("qualitychange",this.fp,this),Q.dispose();this.C.clear();this.N.removeAll();this.U.removeAll();this.heartbeatParams=null;g.iR.prototype.Bq.call(this)};
g.y.yX=function(){for(var D={systemInfo:this.S.yX(),sessions:[]},Q=g.T(this.C.values()),m=Q.next();!m.done;m=Q.next())D.sessions.push(m.value.yX());return D};
g.y.getInfo=function(){return this.C.size<=0?"no session":""+this.C.values().next().value.getInfo()+(this.J?"/KR":"")};
g.y.Jn=function(D,Q){Q=Q===void 0?!1:Q;this.VF()||(ft(D),(this.SD.xl()||Q)&&this.publish("ctmp","drmlog",D))};g.Z(Jsm,g.v);g.y=Jsm.prototype;g.y.kD=function(){return!!this.DX};
g.y.jT=function(){return this.C};
g.y.handleError=function(D){var Q=this;KEw(this,D);if((D.errorCode!=="html5.invalidstate"&&D.errorCode!=="fmt.unplayable"&&D.errorCode!=="fmt.unparseable"||!H7m(this,D.errorCode,D.details))&&!vaP(this,D)){if(this.nh.TO!=="yt"&&$7u(this,D)&&this.videoData.SM&&(0,g.T3)()/1E3>this.videoData.SM&&this.nh.TO==="hm"){var m=Object.assign({e:D.errorCode},D.details);m.stalesigexp="1";m.expire=this.videoData.SM;m.init=this.videoData.Jt/1E3;m.now=(0,g.T3)()/1E3;m.systelapsed=((0,g.T3)()-this.videoData.Jt)/1E3;
D=new g.VJ(D.errorCode,m,2);this.Ch.Qi(D.errorCode,2,"SIGNATURE_EXPIRED",ft(D.details))}if(Nh(D.severity)){var P;m=(P=this.Ch.loader)==null?void 0:P.S.S;if(this.nh.V("html5_use_network_error_code_enums"))if(jJh(D)&&m&&m.isLocked())var W="FORMAT_UNAVAILABLE";else if(this.nh.N||D.errorCode!=="auth"||D.details.rc!==429)D.errorCode==="ump.spsrejectfailure"&&(W="HTML5_SPS_UMP_STATUS_REJECTED");else{W="TOO_MANY_REQUESTS";var L="6"}else jJh(D)&&m&&m.isLocked()?W="FORMAT_UNAVAILABLE":this.nh.N||D.errorCode!==
"auth"||D.details.rc!=="429"?D.errorCode==="ump.spsrejectfailure"&&(W="HTML5_SPS_UMP_STATUS_REJECTED"):(W="TOO_MANY_REQUESTS",L="6");this.Ch.Qi(D.errorCode,D.severity,W,ft(D.details),L)}else this.Ch.publish("nonfatalerror",D),P=/^pp/.test(this.videoData.clientPlaybackNonce),this.Hs(D.errorCode,D.details),P&&D.errorCode==="manifest.net.connect"&&(D="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.T3)(),M$(D,"manifest",function(u){Q.N=!0;Q.dc("pathprobe",u)},
function(u){Q.Hs(u.errorCode,u.details)}))}};
g.y.dc=function(D,Q){this.Ch.qB.dc(D,Q)};
g.y.Hs=function(D,Q){Q=ft(Q);this.Ch.qB.Hs(D,Q)};Zu.prototype.cS=function(D){var Q=As$(this);if(!D)return{yI:y7,E9:y7,Di:y7,x8:y7,h_:y7,t3:y7,va:Q};var m=y7;if(Ue(Q)||this.V("html5_perf_cap_override_sticky"))m=P_4(this,D);return{yI:m,E9:Gir(this,D),Di:Sy7(this,D),x8:WUh(this,D.videoData),h_:iA_(this,D.videoData,D),t3:x79(this,D),va:Q}};
Zu.prototype.ip=function(D){if(g.Nw(this.SD)&&Sc(this.SD.J,r_.HEIGHT))var Q=D.S.videoInfos[0].video.qualityOrdinal;else{var m=this.Mg(!!D.S.S);Ib(D.videoData)||fy(D.videoData);D=D.S.videoInfos;if(D.length){var P=g.WF(this.SD.experiments,"html5_override_oversend_fraction")||.85,W=D[0].video;W.projectionType!=="MESH"&&W.projectionType!=="EQUIRECTANGULAR"&&W.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Le||(P=.45);W=g.WF(this.SD.experiments,"html5_viewport_undersend_maximum");for(var L=0;L<
D.length;L++){Q=D[L];var u=Q.video;if(m===null||u.width*P<m.width&&u.height*P<m.height){W&&L&&u.width<m.width*W&&u.height<m.height*W&&(Q=D[L-1]);break}}m=Q.video;Q=new lt(0,Q.itag==="93"?g.ek[$V(m.width,m.height)]:m.qualityOrdinal,!1,"r")}else Q=y7;Q=Q.S}Q&&(Q=Math.max(Q,360));return new lt(0,Q,!1,"r")};
Zu.prototype.Mg=function(D){var Q;g.dv(this.SD)&&(Q=window.screen&&window.screen.width?new g.Ay(window.screen.width,window.screen.height):null);Q||(Q=this.SD.Br?this.SD.Br.clone():this.Pe.bS());(Al||yL||D)&&Q.scale(g.ne());return Q};
Zu.prototype.V=function(D){return this.SD.V(D)};g.Z(Ti,g.v);Ti.prototype.onError=function(D){if(D!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))D==="sabr.fallback"&&(this.encounteredSabrFallback=!0),D.match(yWV)?this.networkErrorCount++:this.nonNetworkErrorCount++};
Ti.prototype.send=function(){if(!(this.T||this.S<0)){uLP(this);var D=g.PZ(this.provider)-this.S,Q="PLAYER_PLAYBACK_STATE_UNKNOWN",m=this.playerState.YP;this.playerState.isError()?Q=m&&m.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.X(this.playerState,2)?Q="PLAYER_PLAYBACK_STATE_ENDED":g.X(this.playerState,64)?Q="PLAYER_PLAYBACK_STATE_UNSTARTED":g.X(this.playerState,16)||g.X(this.playerState,32)?Q="PLAYER_PLAYBACK_STATE_SEEKING":g.X(this.playerState,1)&&g.X(this.playerState,
4)?Q="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.X(this.playerState,1)?Q="PLAYER_PLAYBACK_STATE_BUFFERING":g.X(this.playerState,4)?Q="PLAYER_PLAYBACK_STATE_PAUSED":g.X(this.playerState,8)&&(Q="PLAYER_PLAYBACK_STATE_PLAYING");m=LzQ[rw(this.provider.videoData)];a:switch(this.provider.SD.playerCanaryState){case "canary":var P="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":P="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:P="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var W=d67(this.provider),
L=this.C<0?D:this.C-this.S;D=this.provider.SD.ZD+36E5<(0,g.T3)();Q={started:this.C>=0,stateAtSend:Q,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:P,playerCanaryStage:W,isAd:this.provider.videoData.isAd(),liveMode:m,hasDrm:!!g.Xi(this.provider.videoData),isGapless:this.provider.videoData.U,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:H1(this.provider.videoData)};D||g.WD("html5PlayerHealthEvent",Q);this.T=!0;this.dispose()}};
Ti.prototype.Bq=function(){this.T||this.send();window.removeEventListener("error",this.Ee);window.removeEventListener("unhandledrejection",this.Ee);g.v.prototype.Bq.call(this)};
var yWV=/\bnet\b/;tKr.prototype.update=function(){if(this.U){var D=this.ws()||0,Q=g.PZ(this.provider);D>=this.provider.Ch.getDuration()-.1&&(this.previouslyEnded=!0);if(D!==this.S||qB4(this,D,Q)){var m;if(!(m=D<this.S||D-this.S>Q-this.n0+2||qB4(this,D,Q))){m=this.provider.Ch.getVolume();var P=m!==this.j,W=this.provider.Ch.isMuted()?1:0;W!==this.Z?(this.Z=W,m=!0):(!P||this.B>=0||(this.j=m,this.B=Q),m=Q-this.B,this.B>=0&&m>2?(this.B=-1,m=!0):m=!1)}m&&(n7(this),this.T=D);this.n0=Q;this.S=D}}};
tKr.prototype.ws=function(){var D=this.provider.Ch.ws();return this.provider.SD.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&U1(this.provider.videoData)?D+this.provider.Ch.m2():D};C_k.prototype.send=function(D){var Q=this;if(!this.l0){var m=fXP(this),P=g.oz(this.uri,m);this.SD.V("vss_through_gel_double")&&VK7(P);this.QF&&!this.SD.V("html5_simplify_pings")?TQr(this,P):o$$(this,D).then(function(W){Q.QF&&(W=W||{},W.method="POST",W.postParams={atr:Q.attestationResponse});byh(P,W,{token:Q.Iy,UV:Q.hU,mdxEnvironment:Q.mdxEnvironment},Q.SD,D,Q.t0,Q.isFinal&&Q.PO||Q.wc||Q.T&&Q.aF)});
this.l0=!0}};
C_k.prototype.C=function(D){D===void 0&&(D=NaN);return Number(D.toFixed(3)).toString()};
var TS={},ZAw=(TS.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,TS.LIVING_ROOM_APP_MODE_MAIN=1,TS.LIVING_ROOM_APP_MODE_KIDS=2,TS.LIVING_ROOM_APP_MODE_MUSIC=3,TS.LIVING_ROOM_APP_MODE_UNPLUGGED=4,TS.LIVING_ROOM_APP_MODE_GAMING=5,TS),hQ={},yAk=(hQ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,hQ.EMBEDDED_PLAYER_MODE_DEFAULT=1,hQ.EMBEDDED_PLAYER_MODE_PFP=2,hQ.EMBEDDED_PLAYER_MODE_PFL=3,hQ);g.Z(gT,g.v);gT.prototype.onProgress=function(){this.S.update();lX7(this)&&(E$r(this),g$j(this))};
gT.prototype.Bq=function(){g.v.prototype.Bq.call(this);ka(this);zY4(this.S)};
gT.prototype.yX=function(){return fXP(BZ(this,"playback"))};
gT.prototype.uH=function(D){var Q=BZ(this,"engage");Q.Kh=D;return NQ4(Q,jy7(this.provider))};KUn.prototype.isEmpty=function(){return this.endTime===this.startTime};lb.prototype.V=function(D){return this.SD.V(D)};
lb.prototype.getCurrentTime=function(){return this.Ch.getCurrentTime()};
lb.prototype.ws=function(){return this.Ch.ws()};
var $6w={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.Z(g.IJ,g.v);g.y=g.IJ.prototype;g.y.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var D;(D=this.T.get(this.B1))==null||D.onProgress()}else if(this.S)this.S.onProgress()};
g.y.pF=function(D){this.qoe&&this.qoe.pF(D)};
g.y.F6=Dk(29);g.y.o_=Dk(35);g.y.qW=function(D,Q){this.qoe&&this.qoe.qW(D,Q)};
g.y.NR=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var D;(D=this.T.get(this.B1))!=null&&n7(D.S)}else this.S&&n7(this.S.S)};
g.y.Hs=function(D,Q){this.qoe&&J2_(this.qoe,D,Q);if(this.C)this.C.onError(D)};
g.y.xW=function(D){var Q;(Q=this.qoe)==null||Q.xW(D)};
g.y.onPlaybackRateChange=function(D){if(this.qoe)this.qoe.onPlaybackRateChange(D);this.S&&n7(this.S.S)};
g.y.mF=Dk(52);g.y.dc=function(D,Q,m){this.qoe&&this.qoe.dc(D,Q,m)};
g.y.kX=function(D,Q,m){this.qoe&&this.qoe.kX(D,Q,m)};
g.y.yj=function(D){var Q;(Q=this.qoe)==null||Q.yj(D)};
g.y.e_=function(D){var Q;(Q=this.qoe)==null||Q.e_(D)};
g.y.rg=function(D,Q,m,P){var W;(W=this.qoe)==null||W.rg(D,Q,m,P)};
g.y.CJ=function(D){this.qoe&&this.qoe.CJ(D)};
g.y.Nf=function(D,Q,m){this.qoe&&this.qoe.Nf(D,Q,m)};
g.y.Ic=Dk(23);g.y.v6=function(){if(this.qoe)return this.qoe.v6()};
g.y.yX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var D,Q;return(Q=(D=this.T.get(this.B1))==null?void 0:D.yX())!=null?Q:{}}return this.S?this.S.yX():{}};
g.y.xZ=function(){var D;return(D=this.qoe)==null?void 0:D.xZ()};
g.y.lY=function(D,Q){var m;(m=this.qoe)==null||m.lY(D,Q)};
g.y.uH=function(D){return this.S?this.S.uH(D):function(){}};
g.y.getVideoData=function(){return this.provider.videoData};
g.y.resume=function(){this.qoe&&this.qoe.resume()};g.Z(g.Uy,g.v);g.y=g.Uy.prototype;g.y.GY=function(D,Q){this.sync();Q&&this.S.array.length>=2E3&&this.Q5("captions",1E4);Q=this.S;if(D.length>1&&D.length>Q.array.length)Q.array=Q.array.concat(D),Q.array.sort(Q.S);else{D=g.T(D);for(var m=D.next();!m.done;m=D.next())m=m.value,!Q.array.length||Q.S(m,Q.array[Q.array.length-1])>0?Q.array.push(m):g.XK(Q.array,m,Q.S)}this.T=NaN;this.sync()};
g.y.sY=function(D){D.length>1E4&&g.l4(new g.OI("Over 10k cueRanges removal occurs with a sample: ",D[0]));if(!this.VF()){var Q=new Set(D);this.C=this.C.filter(function(m){return!Q.has(m)});
QYr(this.S,Q);this.sync()}};
g.y.Ez=function(D,Q){if(!this.VF()){var m=this.sN().find(function(P){return P.id===Q&&P.namespace===D});
m&&this.sY([m])}};
g.y.Q5=function(D,Q){var m=(isNaN(this.T)?sY$(this):this.T)-Q;Q=this.sN().filter(function(P){return P.namespace===D&&P.end<m});
this.sY(Q);return Q};
g.y.sN=function(){return this.VF()?[]:this.S.array};
g.y.reset=function(){this.started=!1;this.B.stop();this.S.array=[];this.C=[];this.sync()};
g.y.aI=function(D){var Q=this.sN().filter(function(m){return m.namespace===D});
this.sY(Q);return Q};
g.y.yr=Dk(41);g.y.Ef=function(D){var Q=[],m=RJ(this.S,0x7ffffffffffff),P=[];m=g.T(m);for(var W=m.next();!W.done;W=m.next())W=W.value,W.active&&D===W.associatedClipId&&P.push(W);Q=Q.concat(Wn_(this,P));Lnu(this,Q);Q=[];m=[];W=g.T(this.C);for(var L=W.next();!L.done;L=W.next())L=L.value,L.active&&L.associatedClipId===D&&L.start===0x7ffffffffffff&&m.push(L);Q=Q.concat(iWj(this,m));Lnu(this,Q);return P.length};
g.y.rf=function(D){var Q=RJ(this.S,0x7ffffffffffff),m=[];Q=g.T(Q);for(var P=Q.next();!P.done;P=Q.next())P=P.value,P.active&&D===P.associatedClipId&&m.push(P);this.sY(m)};
g.y.sync=function(){this.J=!0;if(!this.N){for(var D=3;this.J&&D;)this.J=!1,this.N=!0,uen(this),this.N=!1,D--;this.Ch.getPlayerState().isPlaying()&&(D=DH9(this.S,this.T),!isNaN(D)&&D<0x7ffffffffffff&&(D=(D-this.T)/this.Ch.getPlaybackRate(),this.B.start(D)))}};
g.y.isEnded=function(D,Q){Q=this.Ch.qL()*1E3-Q;Q=this.Ch.WI()&&g.X(D,1)&&Q<500;return g.X(D,2)||this.Ch.G().V("html5_pseudogapless_shorts")&&Q};
g.y.Bq=function(){this.C=[];this.S.array=[];g.v.prototype.Bq.call(this)};K7.prototype.add=function(D){this.S=(this.S+1)%this.data.length;this.data[this.S]=D};
K7.prototype.forEach=function(D){for(var Q=this.S+1;Q<this.data.length;Q++)D(this.data[Q]||0);for(Q=0;Q<=this.S;Q++)D(this.data[Q]||0)};
K7.prototype.clear=function(){for(var D=this.data.length,Q=0;Q<D;Q++)this.data[Q]=0;this.C=this.S=this.data.length-1};g.Z($a,g.iR);$a.prototype.Bj=function(){return this.U};
$a.prototype.UY=function(){return this.policy.Iy&&this.videoData.S?this.videoData.S.Sg:Math.max(this.J()-Oy(this)*this.S,this.videoData.TY())};g.Z(As,g.v);As.prototype.UC=function(){var D=this,Q=this.Ch.Cn(),m=this.Ch.getPlayerState();if(Q&&!m.isError()){var P=Q.getCurrentTime(),W=m.state===8&&P>this.S,L=g.X(m,8)&&g.X(m,16),u=this.Ch.VL().isBackground()||m.isSuspended();p7(this,this.GO,L&&!u,W,"qoe.slowseek",function(){},"timeout");
var t=isFinite(this.S);t=L&&t&&Os4(Q,this.S);var z=!P||Math.abs(P-this.S)>10,b=this.SD.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),q=P===0&&this.C&&[11,10].includes(this.C);p7(this,this.l0,t&&z&&!u&&(!b||!q),W,"qoe.slowseek",function(){Q.seekTo(D.S)},"set_cmt");
z=t&&z5(Q.jb(),this.S);var C=this.Ch.loader;t=!C||C.s_();var f=function(){Q.seekTo(D.S+.001)};
p7(this,this.wc,z&&t&&!u,W,"qoe.slowseek",f,"jiggle_cmt");t=function(){return D.Ch.nI()};
p7(this,this.x9,z&&!u,W,"qoe.slowseek",t,"new_elem");var V=YS(m);q=m.isBuffering();var N=Q.jb(),h=t$(N,P),B=h>=0&&N.end(h)>P+5;z=V&&q&&B;b=this.Ch.getVideoData();p7(this,this.u0,P<.002&&this.S<.002&&L&&g.Nw(this.SD)&&g.t2(b)&&!u,W,"qoe.slowseek",t,"slow_seek_shorts");p7(this,this.j,b.LU()&&L&&!u&&!b.Iy,W,"qoe.slowseek",t,"slow_seek_gapless_shorts");p7(this,this.TO,z&&!u,V&&!q,"qoe.longrebuffer",f,"jiggle_cmt");p7(this,this.Iy,z&&!u,V&&!q,"qoe.longrebuffer",t,"new_elem_nnr");if(C){var J=C.getCurrentTime();
L=Q.U_();L=JFh(L,J);L=!C.isSeeking()&&P===L;p7(this,this.Kj,V&&q&&L&&!u,V&&!q&&!L,"qoe.longrebuffer",function(){Q.seekTo(J)},"seek_to_loader")}L={};
f=t$(N,Math.max(P-3.5,0));var k=f>=0&&P>N.end(f)-1.1,R=f>=0&&f+1<N.length?N.start(f+1)-N.end(f):9999;L.mindex=h;L.disIndex=f;L.isdisc=f>=0&&k&&R<11;L.close2edge=k;L.gapsize=R;L.buflen=N.length;this.C&&(L.seekSour=this.C);p7(this,this.Kh,V&&q&&!u,V&&!q,"qoe.longrebuffer",function(){},"timeout",L);
L=m.isSuspended();L=this.Ch.pm()&&!L;p7(this,this.U,L,!L,"qoe.start15s",function(){D.Ch.wi("ad")},"ads_preroll_timeout");
L=this.SD.experiments.Mv("html5_use_playback_rate_in_skip_slow_ad")?this.Ch.getPlaybackRate()*1E3:1E3;h=P-this.B<L/1E3/2;k=(f=b.isAd())&&V&&!q&&h;L=function(){var e=D.Ch,a=e.lE.getVideoData();(!a||!e.videoData.isAd()||a.Um!==e.getVideoData().Um)&&e.videoData.QA||e.Qi("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+e.videoData.videoId)};
p7(this,this.jD,k,!k,"ad.rebuftimeout",L,"skip_slow_ad");h=f&&q&&z5(Q.jb(),P+5)&&h;p7(this,this.gB,h&&!u,!h,"ad.rebuftimeout",L,"skip_slow_ad_buf");L=m.isOrWillBePlaying()&&g.X(m,64)&&!u;p7(this,this.hU,L,W,"qoe.start15s",function(){},"timeout");
C=!!C&&!C.cq&&m.isOrWillBePlaying();p7(this,this.QF,C,W,"qoe.start15s",t,"newElemMse");C=oQ(N,0);N=g.X(m,16)||g.X(m,32);C=!u&&m.isOrWillBePlaying()&&q&&!N&&(g.X(m,64)||P===0)&&C>5;p7(this,this.Y9,g.t2(b)&&C,V&&!q,"qoe.longrebuffer",function(){D.Ch.T8()},"reset_media_source");
p7(this,this.k9,g.t2(b)&&C,V&&!q,"qoe.longrebuffer",t,"reset_media_element");this.B===0&&(this.N=P);C=q&&this.S===0&&P>1&&P===this.N;p7(this,this.t0,g.t2(b)&&C,V&&!q,"qoe.slowseek",function(){Q.seekTo(0)},"reseek_after_time_jump");
u=m.isOrWillBePlaying()&&!u;B=this.Ch.qL()-P<6&&!B&&this.Ch.WI();p7(this,this.Z,b.LU()&&u&&q&&B,V&&!q,"qoe.longrebuffer",function(){D.Ch.nI(!1,!0)},"handoff_end_long_buffer_reload");
u=this.C===104||this.Ch.uy;m=lH(b)&&b.isAd()&&!b.Iy&&u&&(q||g.X(m,8)&&g.X(m,16));p7(this,this.XT,m,W,"qoe.start15s",t,"gapless_ad_slow_start");m=lH(b)&&!b.Iy&&u&&z;p7(this,this.oy,m,W,"qoe.longrebuffer",t,"gapless_slow_start");this.B=P;this.J.start()}};
As.prototype.Hs=function(D,Q,m){Q=this.yX(Q);Q.wn=m;Q.wdup=this.T[D]?"1":"0";this.Ch.Hs(new g.VJ(D,Q));this.T[D]=!0};
As.prototype.yX=function(D){D=Object.assign(this.Ch.yX(!0),D.yX());this.S&&(D.stt=this.S.toFixed(3));this.Ch.getVideoData().isLivePlayback&&(D.ct=this.Ch.getCurrentTime().toFixed(3),D.to=this.Ch.m2().toFixed(3));delete D.uga;delete D.euri;delete D.referrer;delete D.fexp;delete D.vm;return D};
aJ.prototype.reset=function(){this.S=this.C=this.T=this.startTimestamp=0;this.B=!1};
aJ.prototype.test=function(D){if(!this.J||this.C)return!1;if(!D)return this.reset(),!1;D=(0,g.T3)();if(!this.startTimestamp)this.startTimestamp=D,this.T=0;else if(this.T>=this.J)return this.C=D,!0;this.T+=1;return!1};
aJ.prototype.yX=function(){var D={},Q=(0,g.T3)();this.startTimestamp&&(D.wsd=(Q-this.startTimestamp).toFixed());this.C&&(D.wtd=(Q-this.C).toFixed());this.S&&(D.wssd=(Q-this.S).toFixed());return D};g.Z(n06,g.v);g.y=n06.prototype;g.y.setMediaElement=function(D){(this.mediaElement=D)?(this.mediaElement&&(this.J||this.T||!this.mediaElement.Qz()||this.seekTo(.01,{cn:"seektimeline_setupMediaElement"})),xa(this)):Sl(this)};
g.y.getCurrentTime=function(D){D=D===void 0?!1:D;if(X1(this.Ch)){if(this.V("html5_use_centralized_player_time")&&!D&&!isNaN(this.N))return this.N;if(!isNaN(this.C))return this.C}else{if(this.V("html5_use_centralized_player_time")&&!D&&!isNaN(this.N)&&isFinite(this.N))return this.N;if(!isNaN(this.C)&&isFinite(this.C))return this.C}return this.mediaElement&&eG6(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.T||0};
g.y.xQ=function(){return this.XT};
g.y.ws=function(){return this.getCurrentTime()-this.m2()};
g.y.UY=function(){return this.S?this.S.UY():Infinity};
g.y.isAtLiveHead=function(D){if(!this.S)return!1;D===void 0&&(D=this.getCurrentTime());return vZ(this.S,D)};
g.y.Bj=function(){return!!this.S&&this.S.Bj()};
g.y.seekTo=function(D,Q){var m=Q===void 0?{}:Q;Q=m.EP===void 0?!1:m.EP;var P=m.PD===void 0?0:m.PD;var W=m.ZA===void 0?!1:m.ZA;var L=m.rW===void 0?0:m.rW;var u=m.cn===void 0?"":m.cn;var t=m.seekSource===void 0?void 0:m.seekSource;var z=m.Hr===void 0?!1:m.Hr;var b=m.F_===void 0?!1:m.F_;m=m.gW===void 0?!1:m.gW;z&&(D+=this.m2());H1(this.videoData)&&t===29&&(this.XT=void 0);z=D<this.x9&&!!this.loader;var q=H1(this.videoData)&&b;if(z&&!q&&(this.Ch.dc("sdai",{sk2bk:D.toFixed(3),mt:(D-this.timestampOffset).toFixed(3),
lstadj:this.x9.toFixed(3)}),this.x9=NaN,this.timestampOffset-=1E3,(q=this.loader)!=null)){UNw(q,q.timestampOffset-1E3);var C=q.UW,f=new Set;for(B in C.S){var V=C.S[B].index,N=V.v0();N&&!f.has(N)&&(N.startTime+=1E3,N.endTime=N.startTime+N.duration,f.add(N));V.segments.length&&(N=V.segments[V.segments.length-1],V.segments=[],V.segments.push(N))}q.Z&&q.Z.Zn();if(q.policy.XT&&q.policy.C){var h;(h=q.QF)==null||h.Zn()}sT(q.T,0,0,!0);q.u0=!1}var B=D;(h=H1(this.videoData))&&b?B=!0:(q=this.V("html5_always_allow_sqless_sync")&&
this.videoData.VX(),(h||q)&&u==="chunkSelectorSynchronize"?B=!0:(h=!isFinite(B)||(this.S?vZ(this.S,B):B>=this.Bs())||!g.Qw(this.videoData),h||(B={st:B,mst:this.Bs()},this.S&&this.V("html5_high_res_seek_logging")&&(B.ht=this.S.UY(),B.adft=el(this.S)),this.Ch.dc("seeknotallowed",B)),B=h));if(!B)return this.B&&(this.B=null,Kn9(this)),g.k7(this.getCurrentTime());B=.005;b&&this.V("html5_sabr_seek_no_shift_tolerance")&&(B=0);if(Math.abs(D-this.C)<=B&&this.t0)return this.J;u&&(B=D,this.SD.xl()||this.V("html5_log_seek_reasons"))&&
(u={reason:u,tgt:B},this.V("html5_sabr_csdai_seek_log")&&(u.source=t),this.Ch.dc("seekreason",u));t&&(this.TO.C=t);this.t0&&Sl(this);this.J||(this.J=new kS);D&&!isFinite(D)&&wC4(this,!1);(u=m||z)||(u=D,u=!(this.videoData.isLivePlayback&&this.videoData.T&&!this.videoData.T.S&&!(this.mediaElement&&this.mediaElement.Bi()>0&&ls(this.mediaElement)>0)||v1(this.videoData)&&this.TY()===this.Bs(!1)?0:isFinite(u)||!v1(this.videoData)));u||(D=Gi(this,D,W));D&&!isFinite(D)&&wC4(this,!1);this.V("html5_use_centralized_player_time")?
this.N=D:this.C=this.T=D;this.Y9=L;this.U=0;this.S&&(W=this.S,L=D,NHn(W,L,!1),yD9(W,L));W=this.Ch;L=D;u={EP:Q,seekSource:t};W.LM.T=L;m=W.JL;m.mediaTime=L;m.S=!0;u.EP&&W.p$(u);u=L>W.videoData.endSeconds&&L>W.videoData.limitedPlaybackDurationInSeconds;W.Qq&&u&&isFinite(L)&&f8n(W);L<W.Bs()-.01&&(u=em(W.playerState,2),g.X(u,8)&&(u=em(u,4)),W.Bn(u));W.publish("SEEK_TO",L);this.J&&(Q?P&&this.GO.start(P):hG_(this,{F_:b,seekSource:t}));(Q=this.Ch.Qq)&&D>Q.start&&f8n(this.Ch);return this.J};
g.y.Bs=function(D){if(!this.videoData.isLivePlayback)return this.Ch.videoData.Bs();var Q;return h2(this.videoData)&&((Q=this.mediaElement)==null?0:Q.isPaused())&&this.videoData.S?(D=this.getCurrentTime(),xr9(this.hD(D)*1E3)+D):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&H1(this.videoData)&&this.videoData.S?D?this.videoData.S.Kh||0:this.videoData.S.Sg||0:v1(this.videoData)&&this.videoData.Kh&&this.videoData.S?this.videoData.S.Bs()+this.timestampOffset:this.videoData.T&&this.videoData.T.S?
!D&&this.S?this.S.UY():this.Ch.videoData.Bs()+this.timestampOffset:this.mediaElement?vd()?xr9(this.mediaElement.hI().getTime()):ls(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.y.TY=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&H1(this.videoData)){var D;return((D=this.videoData.S)==null?void 0:D.JP)||0}D=this.videoData?this.videoData.TY()+this.timestampOffset:this.timestampOffset;if(h2(this.videoData)&&this.videoData.S){var Q,m=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3;if(this.V("html5_unify_utc_media_time_calculation")){if(!isNaN(m)&&(m=this.Vk(m),!isNaN(m)))return Math.max(D,m)}else if(Q=this.getCurrentTime(),
Q=this.hD(Q)-Q,!isNaN(m)&&!isNaN(Q))return Math.max(D,m-Q)}return D};
g.y.qy=function(){this.J||this.seekTo(this.T,{cn:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.y.C8=function(){return this.t0&&!isFinite(this.C)};
g.y.Bq=function(){kI9(this,null);this.TO.dispose();g.v.prototype.Bq.call(this)};
g.y.yX=function(){var D={};this.loader&&Object.assign(D,this.loader.yX());this.mediaElement&&Object.assign(D,this.mediaElement.yX());return D};
g.y.zt=function(D){this.timestampOffset=D};
g.y.getStreamTimeOffset=function(){return v1(this.videoData)?0:this.videoData.S?this.videoData.S.getStreamTimeOffset():0};
g.y.m2=function(){return this.timestampOffset};
g.y.hD=function(D){return this.videoData&&this.videoData.S?this.videoData.S.hD(D-this.timestampOffset):NaN};
g.y.V5=function(){if(!this.mediaElement)return 0;if(m5(this.videoData)){var D=this.mediaElement,Q=D.jb();D=(C2(Q)&&D.getDuration()?Q.end(Q.length-1):0)+this.timestampOffset-this.TY();Q=this.Bs()-this.TY();return Math.max(0,Math.min(1,D/Q))}return this.mediaElement.V5()};
g.y.Ak=function(D){this.Z&&(this.Z.S=D)};
g.y.bR=function(D,Q){this.Ch.dc("requestUtcSeek",{time:D});H1(this.videoData)&&(this.XT=D);var m;(m=this.loader)==null||m.bR(D);Q&&(this.QF=Q)};
g.y.dg=function(D){H1(this.videoData)&&(this.XT=void 0);if(this.QF)this.Ch.dc("utcSeekingFallback",{source:"streamTime",timeSeconds:this.QF}),this.Ch.seekTo(this.QF,{cn:"utcSeekingFallback_streamTime"}),this.QF=0;else{if(this.V("html5_unify_utc_media_time_calculation")){var Q=this.Vk(D);if(isNaN(Q))return}else{Q=this.getCurrentTime();if(isNaN(Q))return;D=this.hD(Q)-D;Q-=D}this.Ch.dc("utcSeekingFallback",{source:"estimate",timeSeconds:Q});this.Ch.seekTo(Q,{cn:"utcSeekingFallback_estimate"})}};
g.y.qx=function(){this.QF=0};
g.y.Vk=function(D){var Q=this.getCurrentTime();if(isNaN(Q))return NaN;var m=this.hD(Q);return isNaN(m)?NaN:D-(m-Q)};
g.y.V=function(D){return this.SD&&this.SD.V(D)};g.Z(M7,g.v);M7.prototype.start=function(){this.C.start()};
M7.prototype.stop=function(){this.C.stop()};
M7.prototype.clear=function(){for(var D=g.T(this.S.values()),Q=D.next();!Q.done;Q=D.next())Q.value.clear()};
M7.prototype.sample=function(){for(var D=g.T(this.T),Q=D.next();!Q.done;Q=D.next()){var m=g.T(Q.value);Q=m.next().value;m=m.next().value;this.S.has(Q)||this.S.set(Q,new pC7(ZIP.has(Q)));this.S.get(Q).update(m())}this.C.start()};
var ZIP=new Set(["networkactivity"]);pC7.prototype.update=function(D){this.C?(this.buffer.add(D-this.S||0),this.S=D):this.buffer.add(D)};
pC7.prototype.clear=function(){this.buffer.clear();this.S=0};Qz.prototype.ED=function(){return this.started};
Qz.prototype.start=function(){this.started=!0};
Qz.prototype.reset=function(){this.finished=this.started=!1};var GIn=!1;g.Z(g.i_,g.iR);g.y=g.i_.prototype;g.y.Bq=function(){this.logger.debug("dispose");g.qv(this.er);ki_(this.sS);this.visibility.unsubscribe("visibilitystatechange",this.sS);aXn(this.qB);g.Dp(this.qB);u_(this);g.KJ.N5(this.XR);this.U3();this.t8=null;g.Dp(this.videoData);g.Dp(this.b6);g.Dp(this.HH);g.Dp(this.OR);g.Qj(this.zz0);this.Qq=null;g.iR.prototype.Bq.call(this)};
g.y.Nf=function(D,Q,m,P,W){if(this.SD.V("html5_log_ad_playback_docid")){var L=this.qB;if(L.qoe){L=L.qoe;var u=this.SD.TO||"yt";g.Du(L,g.PZ(L.provider),"ad_playback",[D,Q,m,W,u])}}else this.qB.Nf(D,Q,m);this.V("html5_log_media_perf_info")&&this.dc("adloudness",{ld:P.toFixed(3),cpn:D})};
g.y.q1=function(){var D;return(D=this.loader)==null?void 0:D.q1()};
g.y.rS=function(){var D;return(D=this.loader)==null?void 0:D.rS()};
g.y.Py=function(){var D;return(D=this.loader)==null?void 0:D.Py()};
g.y.PS=function(){var D;return(D=this.loader)==null?void 0:D.PS()};
g.y.qJ=function(){return this.videoData.qJ()};
g.y.KU=function(){return this.V("html5_not_reset_media_source")&&!this.qJ()&&!this.videoData.isLivePlayback&&g.t2(this.videoData)&&!this.SD.supportsGaplessShorts()};
g.y.iP=function(){this.videoData.U&&(this.videoData.iR=this.videoData.iR||this.lE.Zx().q1(),this.videoData.ZK=this.videoData.ZK||this.lE.Zx().rS());if(Ur_(this.videoData)||!Fh(this.videoData)){var D=this.videoData.errorDetail;this.Qi(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),D,D,this.videoData.vr||void 0)}this.V("html5_generate_content_po_token")&&this.ew();this.V("html5_enable_d6de4")&&this.kG()};
g.y.getVideoData=function(){return this.videoData};
g.y.G=function(){return this.SD};
g.y.cS=function(){return this.gT.cS(this.t8)};
g.y.VL=function(){return this.visibility};
g.y.Lq=function(){return this.mediaElement&&this.mediaElement.Qg()?this.mediaElement.nj():null};
g.y.Cn=function(){return this.mediaElement};
g.y.Iw=function(){if(this.videoData.errorCode)return!1;this.G().N&&this.G().houseBrandUserStatus&&this.dc("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.EC())return!0;this.Qi("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.y.rM=function(D){(D=D===void 0?!1:D)||eYu(this.qB);this.X_=D;!this.Iw()||this.Bp.ED()?g.Nw(this.SD)&&this.videoData.isLivePlayback&&this.Bp.ED()&&!this.Bp.finished&&!this.X_&&this.cH():(this.Bp.start(),D=this.qB,g.PZ(D.provider),D.qoe&&wUr(D.qoe),this.cH())};
g.y.cH=function(){if(this.videoData.isLoaded()){var D=this.b6;g.WF(D.nh.experiments,"html5_player_min_build_cl")>0&&g.WF(D.nh.experiments,"html5_player_min_build_cl")>793736041&&e6u(D,"oldplayer");b$n(this)}else this.videoData.Zw||this.videoData.Cm?this.X_&&g.Nw(this.SD)&&this.videoData.isLivePlayback||(this.videoData.Zw?Ns7(this.videoData):(D=this.qB,D.qoe&&(D=D.qoe,ib(D,"protected"),D.provider.videoData.J?D.So():D.provider.videoData.subscribe("dataloaded",D.So,D)),CP_(this.videoData))):!this.videoData.loading&&
this.H2&&dL4(this)};
g.y.OA=function(D){this.Ax=D;this.loader&&(FWh(this.loader,new g.dT(D)),this.dc("sdai",{sdsstm:1}))};
g.y.wM=function(D,Q,m){var P;(P=this.loader)==null||P.wM(D,Q,m)};
g.y.Al=Dk(8);g.y.isFullscreen=function(){return this.visibility.isFullscreen()};
g.y.isBackground=function(){return this.visibility.isBackground()};
g.y.XQ=function(){var D=this;this.logger.debug("Updating for format change");sB(this).then(function(){return WJ(D)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.y.aW=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.rM();this.Iw()&&!g.X(this.playerState,128)&&(this.KG.ED()||(this.KG.start(),this.videoData.Tb?this.Bn($S(this.playerState,4)):this.Bn($S($S(this.playerState,8),1))),trn(this))};
g.y.Sl=function(){return this.Bp.finished};
g.y.sendAbandonmentPing=function(){g.X(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.R6(!0),aXn(this.qB),g.Dp(this.qB),g.KJ.N5(this.XR))};
g.y.Ao=function(D,Q,m){D=D===void 0?!0:D;(Q===void 0||Q)&&this.mediaElement&&this.mediaElement.pause();D&&m&&this.loader&&v1(this.videoData)&&this.loader.rg(m);this.Bn(D?new g.HE(14):new g.HE)};
g.y.Wp=function(){this.qB.NR()};
g.y.Qi=function(D,Q,m,P,W,L){this.logger.debug(function(){return"set player error: ec="+D+", detail="+W});
var u,t;g.t6(R$4,m)?u=m:m?t=m:u="GENERIC_WITHOUT_LINK";P=(P||"")+(";a6s."+cI());if(D==="auth"||D==="drm.auth"||D==="heartbeat.stop")m&&(P+=";r."+m.replaceAll(" ","_")),L&&(P+="sr."+L.replaceAll(" ","_"));Q={errorCode:D,errorDetail:W,errorMessage:t||g.pW[u]||"",uJ:u,vr:L||"",Zs:P,Wl:Q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=D;LA(this,"dataloaderror");this.Bn(jm(this.playerState,128,Q));g.KJ.N5(this.XR);u_(this);this.Gb()};
g.y.wi=function(D){this.UM=this.UM.filter(function(Q){return D!==Q});
this.logger.debug(function(){return"set preroll ready for "+D});
this.KG.ED()&&trn(this)};
g.y.xS=function(){var D;(D=!!this.UM.length)||(D=this.DQ.S.array[0],D=!!D&&D.start<=-0x8000000000000);return D};
g.y.Bj=function(){return this.LM.Bj()};
g.y.isPlaying=function(){return this.playerState.isPlaying()};
g.y.sD=function(){return this.playerState.sD()&&this.videoData.Tb};
g.y.getPlayerState=function(){return this.playerState};
g.y.AF=function(D){var Q;(Q=this.loader)==null||Q.AF(D)};
g.y.mx=function(D){var Q;(Q=this.loader)==null||Q.mx(D)};
g.y.getPlayerType=function(){return this.playerType};
g.y.getPreferredQuality=function(){if(this.t8){var D=this.t8;D=D.videoData.Qj.compose(D.videoData.wu);D=Kx(D)}else D="auto";return D};
g.y.sj=Dk(16);g.y.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.y.setMediaElement=function(D){this.logger.debug("set media element");if(this.mediaElement&&D.nj()===this.mediaElement.nj()&&(D.isView()||this.mediaElement.isView())){if(D.isView()||!this.mediaElement.isView())this.bP(),this.mediaElement=D,this.mediaElement.Ch=this,wxh(this),this.LM.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.U3();if(!this.playerState.isError()){var Q=em(this.playerState,512);g.X(Q,8)&&!g.X(Q,2)&&(Q=$S(Q,1));D.isView()&&(Q=em(Q,64));this.Bn(Q)}this.mediaElement=
D;this.mediaElement.Ch=this;!g.Nw(this.SD)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);wxh(this);this.LM.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.b6.kD()&&jDP(this.mediaElement)}};
g.y.U3=function(D,Q,m){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;m=m===void 0?!1:m;this.logger.debug("remove media element");if(this.mediaElement){var P=this.getCurrentTime();P>0&&(this.LM.T=P);this.LM.setMediaElement(null);!D&&this.KU()?hh7(this):this.rX(m);this.loader&&(SW(this.loader),b_(this,Q));this.Bd.stop();if(this.mediaElement&&(!this.KG.ED()&&!this.pm()||this.playerState.isError()||g.X(this.playerState,2)||this.Bn($S(this.playerState,512)),this.mediaElement)){this.bP();if(D||!this.mediaElement.isView())this.QX.XN("mesv_s"),
this.mediaElement.stopVideo(),q6(this);this.mediaElement=this.mediaElement.Ch=null}}};
g.y.playVideo=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;var m=this,P,W,L,u,t,z;return g.U(function(b){if(b.C==1){m.logger.debug("start play video");var q=window.google_image_requests;q&&q.length>10&&(window.google_image_requests=q.slice(-10));if(g.X(m.playerState,128))return b.return();if(m.b6.jT())return m.publish("signatureexpired"),b.return();m.mediaElement&&eYu(m.qB);m.aW();(g.X(m.playerState,64)||D)&&m.Bn($S(m.playerState,8));return m.KG.finished&&m.mediaElement?m.t8||!m.gf?b.Nv(2):g.I(b,
m.gf,3):b.return()}if(b.C!=2&&g.X(m.playerState,128))return b.return();if(!m.videoData.T)return m.videoData.isLivePlayback&&!g.BA(m.SD.J,!0)?(P="html5.unsupportedlive",W=2):(P=m.videoData.qJ()?"fmt.unplayable":"fmt.noneavailable",W=1),g.l4(Error("selectableFormats")),m.Qi(P,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),b.return();if(m.xP()&&m.videoData.T.S)return m.logger.debug("rebuild playbackData for airplay"),b.return(sB(m));if(X1(m))q=m.LM,ej(q.videoData)&&!q.isAtLiveHead(q.getCurrentTime())&&
q.Bj()&&q.Ch.seekTo(Infinity,{cn:"seektimeline_peggedToLive",seekSource:34});else if(ej(m.videoData)&&(L=m.getCurrentTime()<m.TY()-15,u=g.Qw(m.videoData)&&m.playerState.isPaused(),t=g.X(m.playerState,1024),q=m.LM,q.videoData.VX()&&yw(q.videoData)||t||!L&&!u||(u?(m.logger.debug("seek to head for live because of live-only"),m.seekTo(Infinity,{cn:"videoplayer_unpauseLiveOnly",seekSource:102})):(m.logger.debug("seek to min seekable for live because of out of window"),m.seekTo(m.TY(),{cn:"videoplayer_outOfWindow",
seekSource:102}))),!m.isAtLiveHead(void 0,!0)&&m.Bj()&&(m.logger.debug("seek to head for live because pegged to live"),z={cn:"videoplayer_peggedToLive",seekSource:34},m.seekTo(Infinity,z)),g.X(m.playerState,256)&&m.videoData.Iy&&m.LM.C8()))return m.Bn(vE(m.playerState,8,4)),b.return();g.X(m.playerState,4)&&g.X(m.playerState,16)&&m.Bn(vE(m.playerState,9,4));if(WJ(m,Q))return ULP(m),b.return();Rhr(m);g.T7(b)})};
g.y.T8=function(D){this.logger.debug("reset media source");D&&this.Hs(new g.VJ("qoe.restart",D));this.Bn($S(this.playerState,2048));this.rX();D=this.videoData.S&&aP(this.videoData.S);var Q=this.mediaElement&&this.mediaElement.isView();D||Q?(this.loader&&XUj(this.loader),this.nI()):(WJ(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.y.wx=function(){if(!this.t8)return[];var D=au$(this.gT,this.t8,this.eT());return this.t8.S.wx(D)};
g.y.uO=function(){if(!this.t8)return[];var D=au$(this.gT,this.t8,this.eT());return this.t8.S.uO(D)};
g.y.Mg=function(){var D,Q;return this.gT.Mg(!!((D=this.t8)==null?0:(Q=D.S)==null?0:Q.S))};
g.y.ip=function(){return this.t8?this.gT.ip(this.t8):y7};
g.y.eT=function(){var D=this.CO?this.CO.eT():Jc(this.videoData)&&this.videoData.S&&aP(this.videoData.S)?this.videoData.R4?y7:Vl$:y7;this.v_&&(D=D.compose(mIT));return D};
g.y.nP=function(){return this.t8?au$(this.gT,this.t8,this.eT()):y7};
g.y.Fb=function(){var D=this.YV(),Q=this.lE.tD().videoId;return this.lE.gg.Fb(D)||this.lE.gg.Fb(Q)};
g.y.xW=function(D){if(D.S===y7.S)AAj(this.qB,"A");else{var Q,m,P,W,L=(Q=this.t8)==null?void 0:(m=Q.S)==null?void 0:(P=m.uO(D))==null?void 0:(W=P.map(function(z){return z.video}))==null?void 0:W.sort(function(z,b){var q,C;
return((q=b.C)!=null?q:0)-((C=z.C)!=null?C:0)}),u,t;
AAj(this.qB,"M",(t=L==null?void 0:(u=L[0])==null?void 0:u.C)!=null?t:0)}};
g.y.yT=function(D,Q,m){this.V("html5_use_format_stream_ordinal")?this.xW(D):this.qB.xW(D.S);this.videoData.Qj=D;if(this.t8&&Q){Q=this.gT;var P=this.t8;if(P.S.S){var W=g.WF(Q.SD.experiments,"html5_max_quality_sel_upgrade"),L=W?D.S:g.ek[Kx(D)],u=P.S.videoInfos[0].video.qualityOrdinal,t=u!==0&&D.S===u;u=F2()>u;if(!t||!u){W&&t&&(L=Math.max(L,W));var z;W=pZ_(Q,(z=P.S)==null?void 0:z.videoInfos);z=Q.Ch.getPlaybackRate();z>1&&W&&(z=xGm(Q.SD.J,P.S.videoInfos,z),D.S!==0&&z<D.S&&Q.Ch.setPlaybackRate(1));var b,
q;D=((b=P.videoData.C)==null?void 0:(q=b.video)==null?void 0:q.qualityOrdinal)||0;g.wb("yt-player-quality",{quality:L,previousQuality:D},31104E3);Q.SD.schedule.policy.B=F2()>=480;if(Q.V("html5_exponential_memory_for_sticky")){b=Q.SD.HO;q=1;var C=C===void 0?!1:C;gw$(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Uk["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Uk["sticky-lifetime"]=0);C&&cA(b,"sticky-lifetime")>.0625&&(q=b.Uk["sticky-lifetime"]*2);b.values["sticky-lifetime"]+=1*Math.pow(2,
b.S/q);b.Uk["sticky-lifetime"]=q;b.B.start()}if(Q.V("html5_perf_cap_override_sticky")){C=Q.T;Q=Q.V("html5_perserve_av1_perf_cap");Q=Q===void 0?!1:Q;if(Q===void 0?0:Q){b=h3();q=g.T(Object.keys(b));for(D=q.next();!D.done;D=q.next())D=D.value,D.indexOf("1")!==0&&delete b[D];g.wb("yt-player-performance-cap",b,2592E3)}else g.JJ("yt-player-performance-cap");pF4(Q);if(Q){Q=g.T(iC.keys());for(b=Q.next();!b.done;b=Q.next())b=b.value,b.startsWith("1")||iC.delete(b);Q=g.T(F1.values());for(b=Q.next();!b.done;b=
Q.next())b=b.value,b.startsWith("1")||F1.delete(b);Q=g.T(C.keys());for(b=Q.next();!b.done;b=Q.next())b=b.value,b.startsWith("1")||C.delete(b)}else iC.clear(),F1.clear(),C.clear()}}}}this.loader&&(Q=this.loader,m=m||"",Q.policy.S?b9(Q.B.S,m):b9(Q.S.J,m));this.Mz()};
g.y.getUserPlaybackQualityPreference=function(){return this.videoData.T&&!this.videoData.T.S?Kx(this.videoData.Qj):H4[F2()]};
g.y.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.y.setUserAudio51Preference=function(D,Q){this.getUserAudio51Preference()!==D&&(this.dc("toggle51",{pref:D}),g.wb("yt-player-audio51",D,Q?31536E3:2592E3),this.XQ())};
g.y.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.y.setProximaLatencyPreference=function(D){var Q=this.getProximaLatencyPreference();this.dc("proxima",{pref:D});g.wb("yt-player-proxima-pref",D,31536E3);Q!==D&&(D=this.LM,D.oy=!0,D.Ch.seekTo(Infinity,{cn:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.y.getProximaLatencyPreference=function(){var D;return(D=Tn())!=null?D:0};
g.y.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.y.ew=function(){this.videoData.videoId?this.lE.ew(this.videoData):this.dc("povid",{})};
g.y.kG=function(){this.videoData.videoId?this.lE.kG(this.videoData):this.dc("piavid",{})};
g.y.Mz=function(){if(!this.VF()&&!g.X(this.playerState,128)&&this.videoData.T){if(this.videoData.T.S)PJ(this);else{var D=zk(this),Q=this.videoData;a:{var m=this.videoData.Ze;if(D.S){for(var P=g.T(m),W=P.next();!W.done;W=P.next()){W=W.value;var L=W.getInfo(),u=g.ek[L.video.quality];if((!D.T||L.video.quality!=="auto")&&u<=D.S){m=W;break a}}m=m[m.length-1]}else m=m[0]}Q.GO=m;Vrj(this,D.reason,l89(this,this.videoData.GO))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.LM.j=
!1,this.playVideo()}};
g.y.v5=function(D,Q){if(this.VF()||g.X(this.playerState,128))return!1;var m,P=!((m=this.videoData.T)==null||!m.S);m=P&&Q?this.getCurrentTime()-this.m2():NaN;if(this.SD.experiments.Mv("html5_record_audio_format_intent")){var W=this.qB;if(W.qoe){W=W.qoe;var L=[D.WY.id,isNaN(m)?"m":"t"];g.Du(W,g.PZ(W.provider),"afi",L)}}if(P)return Q&&(P=lTm(this.LM),this.dc("aswh",{id:D.id,xtags:D.xtags,bh:P.toFixed(3)})),this.loader.setAudioTrack(D,m,Q),!0;if(y_7(this)){a:{Q=this.mediaElement.audioTracks();for(P=0;P<
Q.length;++P)if(m=Q[P],m.label===D.WY.getName()){if(m.enabled){Q=!1;break a}Q=m.enabled=!0;break a}Q=void 0}Q&&this.dc("hlsaudio",{id:D.id})}else{a:if(Q=this.videoData,Q.B&&!c6(Q.B)||D===Q.vy||!Q.Ze||Q.Ze.length<=0)Q=!1;else{P=g.T(Q.Ze);for(m=P.next();!m.done;m=P.next()){m=m.value;if(!(m instanceof v8)){Q=!1;break a}W=D.WY.getId();m.C&&(MGj(m.C,W),m.NB=null)}Q.vy=D;Q=!0}Q&&WJ(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.dc("hlsaudio",{id:D.id}))}return!0};
g.y.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.y.getAudioTrack=function(){if(y_7(this)){var D=Fl6(this);if(D)return D}return this.videoData.getAudioTrack()};
g.y.wS=function(){return this.videoData.B};
g.y.ix=function(D){return this.Qe?this.Qe.ix(D):1};
g.y.QW=function(){this.Qe&&this.Qe.QW()};
g.y.NW=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.VX()&&H1(this.videoData)){var D;(D=this.loader)!=null&&D.UC()}};
g.y.cG=function(){if(lH(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var D;(D=this.loader)!=null&&D.UC()}};
g.y.onPlayerRequestSent=function(D){this.lE.onPlayerRequestSent(D)};
g.y.tA=function(D){D=D===void 0?!1:D;if(this.loader){var Q=this.loader,m=Q.tA;var P=this.videoData;P=P.V("html5_ssdai_use_post_for_media")&&P.enableServerStitchedDai?!1:v1(P)&&P.QA&&!P.isAd();m.call(Q,P,D)}};
g.y.rX=function(D){D=D===void 0?!1:D;this.cq&&(this.logger.debug("remove media source"),KF7(this.cq),this.tA(D),this.cq.dispose(),this.cq=null)};
g.y.Hk=function(){return this.cq};
g.y.kc=function(D,Q,m,P){function W(u){try{B8u(L,u,Q,m)}catch(t){g.l4(t),L.handleError(new g.VJ("fmt.unplayable",{msi:"1",ename:t&&typeof t==="object"&&"name"in t?String(t.name):void 0,trg:"setmediasrc"},1))}}
var L=this;Q=Q===void 0?!1:Q;m=m===void 0?!1:m;EnP(this,P===void 0?!1:P);this.cq=D;this.KU()&&BE(this.cq)==="open"?W(this.cq):Ic4(this.cq,W)};
g.y.Wd=function(D){this.logger.debug("onNeedKeyInfo");this.IW.set(D.initData,D);this.CO&&(this.CO.Wd(D),this.V("html5_eme_loader_sync")||this.IW.remove(D.initData))};
g.y.LQ=function(D){this.videoData.EG=g.IP("auto",D,!1,"u");PJ(this)};
g.y.Ak=function(D){var Q=D.reason,m=D.S.info,P=D.token,W=D.videoId,L=this.qB,u=this.videoData;if(m!==u.B){var t=!u.B;u.B=m;Q!=="m"&&Q!=="t"&&(Q=t?"i":"a");var z=Q==="m"||Q==="t";this.SD.experiments.Mv("html5_refactor_sabr_audio_format_selection_logging")?this.PT=new Yyu(u,m,Q,"",P,W):(Q=new Yyu(u,m,Q,"",P),L.qoe&&(L=L.qoe,m=g.PZ(L.provider),K5$(L,m,Q)));this.publish("internalaudioformatchange",u,!t&&z)}this.LM.Ak(D.S.index)};
g.y.o$=function(D){this.publish("localmediachange",D)};
g.y.NA=function(D){D=D===void 0?{}:D;var Q;(Q=this.loader)==null||Q.NA(this.SD,Rb(this.videoData),D)};
g.y.jT=function(){return this.b6.jT()};
g.y.sz=function(D){this.Hs(new g.VJ("staleconfig",{reason:D}))};
g.y.handleError=function(D){this.b6.handleError(D)};
g.y.kD=function(){return this.b6.kD()};
g.y.dg=function(D){this.LM.dg(D)};
g.y.nI=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;var m=this,P,W,L;return g.U(function(u){if(u.C==1){m.loader&&m.loader.kQ();m.loader&&m.loader.VF()&&u_(m);if(m.V("html5_enable_vp9_fairplay")&&m.qJ()&&(P=m.videoData.S)!=null)for(var t in P.S)P.S.hasOwnProperty(t)&&(P.S[t].S=null,P.S[t].T=!1);m.Bn($S(m.playerState,2048));m.publish("newelementrequired");return D?g.I(u,sB(m),2):u.Nv(2)}m.videoData.VX()&&((W=m.loader)==null?0:W.t0)&&!X1(m)&&((L=m.isAtLiveHead())&&ej(m.videoData)?m.seekTo(Infinity,
{cn:"videoPlayer_getNewElement"}):m.videoData.Ws&&m.loader&&(t=m.loader,t.UW.VX&&(t.UW.Ws||t.UW.B||t.UW.isPremiere?(t.seek(0,{cn:"loader_resetSqless"}),t.videoTrack.U=!0,t.audioTrack.U=!0,t.videoTrack.J=!0,t.audioTrack.J=!0):mB(t.UW)&&tB(t))));Q&&m.seekTo(0,{seekSource:105});g.X(m.playerState,8)&&m.playVideo();g.T7(u)})};
g.y.qR=function(D){this.dc("hgte",{ne:+D});this.videoData.U=!1;D&&this.nI();this.loader&&XUj(this.loader)};
g.y.VO=function(D){this.dc("newelem",{r:D});this.nI()};
g.y.pauseVideo=function(D){D=D===void 0?!1:D;if((g.X(this.playerState,64)||g.X(this.playerState,2))&&!D)if(g.X(this.playerState,8))this.Bn(vE(this.playerState,4,8));else if(this.sD())WJ(this);else return;g.X(this.playerState,128)||(D?this.Bn($S(this.playerState,256)):this.Bn(vE(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Qw(this.videoData)&&this.loader&&b_(this,!1)};
g.y.stopVideo=function(){this.pauseVideo();this.loader&&(b_(this,!1),this.loader.fI())};
g.y.Gb=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;if(this.KU()&&Q){var m;(m=this.mediaElement)==null||m.Gb()}else{var P;(P=this.mediaElement)==null||P.stopVideo()}q6(this);u_(this);g.X(this.playerState,128)||(D?this.Bn(em(em($S(this.playerState,4),8),16)):this.Bn(jm(this.playerState)));this.videoData.videoId&&this.SD.u0.remove(this.videoData.videoId)};
g.y.seekTo=function(D,Q){Q=Q===void 0?{}:Q;this.logger.debug(function(){return"SeekTo "+D+", "+JSON.stringify(Q)});
g.X(this.playerState,2)&&WJ(this);Q.eJT&&this.Bn($S(this.playerState,2048));Q.seekSource!==58&&Q.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||OAm(this.qB,Q.seekSource);this.LM.seekTo(D,Q);this.DQ.sync()};
g.y.p$=function(D){this.QX.B.C=(0,g.T3)();g.X(this.playerState,32)||(this.Bn($S(this.playerState,32,D==null?void 0:D.seekSource)),g.X(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.mu()};
g.y.VB=function(D){D=D==null?void 0:D.seekSource;g.X(this.playerState,32)?(this.Bn(vE(this.playerState,16,32,D)),this.publish("endseeking")):g.X(this.playerState,2)||this.Bn($S(this.playerState,16,D));D=this.QX.B;var Q=this.videoData,m=this.playerState.isPaused();if(Q.clientPlaybackNonce&&!isNaN(D.S)){if(Math.random()<.01){m=m?"pbp":"pbs";var P={startTime:D.S};Q.N&&(P.cttAuthInfo={token:Q.N,videoId:Q.videoId});lc("seek",P);g.Jd({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(D.C)||kY("pl_ss",
D.C,"seek");kY(m,(0,g.T3)(),"seek")}D.reset()}};
g.y.yY=function(D){this.VB(D)};
g.y.xg=function(){this.publish("SEEK_COMPLETE")};
g.y.lT=function(D){var Q=this.lE,m=this.videoData.clientPlaybackNonce,P=this.playerType;if(D.scope===4){var W=D.type;if(W){var L=Q.dB(),u=L.getVideoData().clientPlaybackNonce;P===1&&(u=m);if(P=Mnw(Q,u)){if(m=P.getVideoData())D.writePolicy===2&&m.sabrContextUpdates.has(W)||(D.sendByDefault&&m.XT.add(W),m.sabrContextUpdates.set(W,D)),Q.V("html5_enable_t1_enf_on_sabr")&&(D=W===5,W=PJr(m.playerResponse),D?(D=W?1:0,dE(D,"m.p_",{}),Oj("MBSTAT",D)):D=1,D===0&&Q.zO.sW("onAbnormalityDetected"))}else L.dc("scuset",
{ncpf:"1",ccpn:u,crcpn:m})}else g.l4(Error("b/380308491: contextUpdateType is undefined"))}};
g.y.Z9=function(){if(this.playerType===2)return this.lE.Z9("")};
g.y.getCurrentTime=function(D){return this.LM.getCurrentTime(D===void 0?!1:D)};
g.y.xQ=function(){return this.LM.xQ()};
g.y.ws=function(){return this.LM.ws()};
g.y.ai=function(){return this.ws()};
g.y.UY=function(){return this.LM.UY()};
g.y.getPlaylistSequenceForTime=function(D){return this.videoData.getPlaylistSequenceForTime(D-this.m2())};
g.y.vF=function(){var D=NaN;this.mediaElement&&(D=this.mediaElement.vF());return D>=0?D:this.getCurrentTime()};
g.y.hD=function(){var D;return((D=this.videoData.S)==null?0:D.hD)?this.videoData.S.hD(this.getCurrentTime()-this.m2()):this.mediaElement&&(D=this.mediaElement.hI())&&(D=D.getTime(),!isNaN(D))?D/1E3+this.getCurrentTime():NaN};
g.y.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.m2():this.Bs()?this.Bs():0};
g.y.zZ=function(){var D=new SBP;if(this.loader){var Q=this.SD.schedule,m=this.SD.xl();m=m===void 0?!1:m;D.mB=Q.Kh;D.MW=Q.k9;D.bandwidthEstimate=GZ(Q);if(m){m=(Q.Z.S1()*1E3).toFixed();var P=(Q.t0.S1()*1E3).toFixed(),W=X$(Q).toFixed(2),L=((Q.U.S1()||0)*1E9).toFixed(2),u=Q.T.S1().toFixed(0),t=Q.wc.S1().toFixed(0),z=Q.j.percentile(.5).toFixed(2),b=Q.j.percentile(.92).toFixed(2),q=Q.j.percentile(.96).toFixed(2),C=Q.j.percentile(.98).toFixed(2);Q.S?Q.S.reset():Q.S=new $u;Q.S.add(Q.QF);Q.S.add(Q.interruptions.length);
for(var f=0,V=Q.interruptions.length-1;V>=0;V--){var N=Q.interruptions[V];Q.S.add(N-f);f=N}f=0;for(V=Q.B.length-1;V>=0;V--){N=Q.B[V];var h=N.stamp/36E5;Q.S.add(h-f);f=h;Q.S.add(N.net/1E3);Q.S.add(N.max)}Q=Q.S.R_();D.S={ttr:m,ttm:P,d:W,st:L,bw:u,abw:t,v50:z,v92:b,v96:q,v98:C,"int":Q}}Z5n(this.loader,D)}else this.mediaElement&&(D.o2=IQ(this.mediaElement));D.mB=this.mB;D.MW=this.MW;D.T=this.isAtLiveHead()&&this.isPlaying()?LlP(this):NaN;Q=this.LM;Q=Q.S?el(Q.S):0;D.B=Q;return D};
g.y.VT=function(D,Q){this.MW+=D;this.mB+=Q};
g.y.V5=function(){return this.mediaElement?g.Qw(this.videoData)?1:m5(this.videoData)?this.isAtLiveHead()||this.Bj()?1:this.LM.V5():this.mediaElement.V5():0};
g.y.sF=function(){var D=this.Q3,Q=DX(D,"bandwidth"),m=DX(D,"bufferhealth"),P=DX(D,"livelatency"),W=DX(D,"networkactivity"),L=cZ(D,"bandwidth"),u=cZ(D,"bufferhealth"),t=cZ(D,"livelatency");D=cZ(D,"networkactivity");var z=this.W6(),b=z.droppedVideoFrames;z=z.totalVideoFrames;var q=this.getCurrentTime();if(this.CO){var C="IT/"+(this.CO.S.getInfo()+"/"+Kx(this.eT()));C+="/"+this.CO.getInfo()}else C="";var f=this.isGapless(),V=this.O3(),N=this.v6(),h=g.tA(this),B=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime());
a:{var k=0;var R="";if(this.Ax){if(this.Ax.tp){R="D,";break a}k=this.Ax.DA;R=this.Ax.oF.substring(0,4)}k>0?(k="AD"+k+", ",R&&(k+=R+", "),R=k):R=""}return{TP:L,jw:u,currentTime:q,sL:C,droppedVideoFrames:b,isGapless:f,O3:V,JJ:N,gt:Q,B7:m,KC:P,Da:W,Qv:t,yv:D,fl:h,playerState:B,Id:J,Pa:R,totalVideoFrames:z}};
g.y.yX=function(D){var Q={};if(D===void 0?0:D){Object.assign(Q,this.qB.yX());this.mediaElement&&(Object.assign(Q,this.mediaElement.yX()),D=this.W6(),Q.dvf=D.droppedVideoFrames,Q.tvf=D.totalVideoFrames);this.loader&&Object.assign(Q,this.loader.yX());this.CO&&(Q.drm=JSON.stringify(this.CO.yX()));Q.state=this.playerState.state.toString(16);g.X(this.playerState,128)&&(Q.debug_error=JSON.stringify(this.playerState.YP));this.xS()&&(Q.prerolls=this.UM.join(","));this.videoData.dn&&(Q.ismb=this.videoData.dn);
this.videoData.latencyClass!=="UNKNOWN"&&(Q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Q.is_mosaic=1;this.videoData.cotn&&(Q.is_offline=1,Q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.videoData.playerResponseCpn);this.lE.isOrchestrationLeader()&&(Q.leader=1);this.videoData.isLivePlayback&&
(this.videoData.S&&MA(this.videoData.S)&&(Q.segduration=MA(this.videoData.S)),D=this.LM,Q.lat=D.Z?bWh(D.Z.B):0,Q.liveutcstart=this.videoData.liveUtcStartSeconds);Q.relative_loudness=this.videoData.WO.toFixed(3);if(D=g.tA(this))Q.optimal_format=D.video.qualityLabel;Q.user_qual=F2();Q.release_version=d[74]}Q.debug_videoId=this.videoData.videoId;return Q};
g.y.addCueRange=function(D){this.fG([D])};
g.y.removeCueRange=function(D){this.DQ.sY([D])};
g.y.s$=function(){var D=this.DQ;if(D.Ch.G().V("html5_sort_cueranges_on_update")&&!(D.sN().length<=0||D.VF())){var Q=D.S;Q.array.sort(Q.S)}D.sync()};
g.y.Q5=function(D,Q){return this.DQ.Q5(D,Q)};
g.y.fG=function(D,Q){this.DQ.GY(D,Q)};
g.y.Sw=function(D){this.DQ.sY(D)};
g.y.sN=function(){return this.DQ.sN()||[]};
g.y.yw=function(){return this.ZM};
g.y.xP=function(){return this.visibility.xP()};
g.y.gY=function(){this.mediaElement&&this.mediaElement.gY()};
g.y.rDq=function(){LA(this)};
g.y.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.y.bP=function(){g.EI(this.i5)};
g.y.mYW=function(){this.mu();this.publish("onLoadProgress",this.V5())};
g.y.sX=function(D){var Q=D.target.Nb();if(this.mediaElement&&this.mediaElement.Nb()&&this.mediaElement.Nb()===Q){$Ln(this,D.type);switch(D.type){case "error":var m=Us(this.mediaElement)||"",P=this.mediaElement.tN();if(m==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.dc("capchg",{msg:P}),this.nI(!0)):sB(this);return}if(this.mediaElement.hasError()&&H7m(this.b6,m,{msg:P,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.X6()===4){this.Gb();dQ(this,"unplayable");
return}break;case "durationchange":m=this.mediaElement.getDuration();isFinite(m)&&(!this.cq||m>0)&&m!==1&&this.Pk(m);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());mHk(this.DQ);this.qB.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":vnr(this);this.publish("onLoadedMetadata");J_P(this);m=this.hD();this.videoData.b8&&(this.videoData.b8=m);break;case "loadstart":J_P(this);break;case "progress":case "suspend":this.rJ.T1();
break;case "seeked":this.SD.V("html5_sabr_ignore_skipad_before_completion")&&(m=this.loader)!=null&&m.policy.C&&m.policy.dF&&m.u0&&(m.dc("sdai",{skipAdSked:"1"}),m.u0=!1);break;case "playing":this.QX.XN("plev");this.rk&&!X1(this)&&(this.rk=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{cn:"videoplayer_onPlaying"})));break;case "timeupdate":m=this.mediaElement&&!this.mediaElement.getCurrentTime();P=this.mediaElement&&this.mediaElement.Bi()===0;if(m&&
(!this.mR||P))return;this.mR=this.mR||!!this.mediaElement.getCurrentTime();k6_(this);this.mu();if(!this.mediaElement||this.mediaElement.Nb()!==Q)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.U_().length>0&&this.mediaElement.jb().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Bi()>2||!this.mediaElement.isSeeking()&&
z5(this.mediaElement.jb(),this.mediaElement.getCurrentTime()))&&(m=this.mediaElement.yX(),m.bh=IQ(this.mediaElement).toFixed(3),this.dc("uwe",m));break;case "resize":vnr(this);this.videoData.C&&this.videoData.C.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Fc&&g.X(this.playerState,8)&&!g.X(this.playerState,1024)&&this.getCurrentTime()===0&&g.Cr){dQ(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Nb()===
Q){YM6(this.LM,D);this.publish("videoelementevent",D);Q=this.playerState;P=this.JL;var W=this.mediaElement;m=this.videoData.clientPlaybackNonce;if(!g.X(Q,128)){var L=Q.state;W=W?W:D.target;var u=W.getCurrentTime();if(!g.X(Q,64)||D.type!=="ended"&&D.type!=="pause"){var t=W.getDuration();t=W.isEnded()||u>1&&Math.abs(u-t)<1.1;var z=D.type==="pause"&&W.isEnded();u=D.type==="ended"||D.type==="waiting"||D.type==="timeupdate"&&!g.X(Q,4)&&!HZ(P,u);if(z||t&&u)W.IK()>0&&W.Nb()&&(L=14);else switch(D.type){case "error":Us(W)&&
(L|=128);break;case "pause":g.X(Q,256)?(L^=256)||(L=64):g.X(Q,32)||g.X(Q,2)||g.X(Q,4)||(L=4,g.X(Q,1)&&g.X(Q,8)&&(L|=1));break;case "playing":u=L;L=(L|8)&-1093;u&4?(L|=1,K2(P,W,!0)):HZ(P,W.getCurrentTime())&&(L&=-2);g.X(Q,1)&&K2(P,W)&&(L|=1);break;case "seeking":L|=16;g.X(Q,8)&&(L|=1);L&=-3;break;case "seeked":L&=-17;K2(P,W,!0);break;case "waiting":g.X(Q,2)||(L|=1);K2(P,W);break;case "timeupdate":u=g.X(Q,16),t=g.X(Q,4),(g.X(Q,8)||u)&&!t&&HZ(P,W.getCurrentTime())&&(L=8),K2(P,W)&&(L|=1)}}P=L;L=null;
P&128&&(L=D.target,W=Us(L),u=1,W?(W==="capability.changed"&&(u=2),t="GENERIC_WITHOUT_LINK",z=L.yX(),z.mediaElem="1",z.trg="melem",/AUDIO_RENDERER/.test(L.tN())&&(t="HTML5_AUDIO_RENDERER_ERROR"),L={errorCode:W,errorMessage:g.pW[t]||"",uJ:t,Zs:ft(z),Wl:u,cpn:Q.YP?Q.YP.cpn:""}):L=null,L&&(L.cpn=m));Q=jm(Q,P,L)}!g.X(this.playerState,1)&&g.X(Q,1)&&jFr(this,"evt"+D.type);this.Bn(Q)}}};
g.y.Wcc=function(D){D=D.S.availability==="available";D!==this.ZM&&(this.ZM=D,this.publish("airplayavailabilitychange"))};
g.y.lxF=function(){var D=(0,g.T3)(),Q=this.mediaElement.xP();this.dc("airplay",{ia:Q});!Q&&!isNaN(this.FK)&&D-this.FK<2E3||(this.FK=D,Q!==this.xP()&&(D=this.visibility,D.S!==Q&&(D.S=Q,D.sS()),this.dc("airplay",{rbld:Q}),this.XQ()),this.publish("airplayactivechange"))};
g.y.m3=function(D){if(this.loader){var Q=this.loader,m=Q.T,P=Q.getCurrentTime(),W=Date.now()-m.j;m.j=NaN;m.dc("sdai",{adfetchdone:D,d:W});D&&!isNaN(m.U)&&m.C!==3&&PM(m.loader,P,m.U,m.N);m.policy.C?m.J=NaN:m.B=NaN;mc(m,4,m.C===3?"adfps":"adf");SW(Q)}};
g.y.lA=function(){g.qv(this.er);this.Bd.stop();this.videoData.Iy=!0;this.SD.Oj=!0;this.SD.hU=0;var D=this.b6;if(D.videoData.C){var Q=D.nh.J,m=D.videoData.C.FT;Q.B.has(m)&&(Q.B.delete(m),Q.C=!0)}D.S.stop();this.xY();g.X(this.playerState,8)&&this.Bn(em(this.playerState,65));this.X_=!1;D=this.qB;D.S&&BQ_(D.S);D.C&&(D=D.C,Q=g.PZ(D.provider),D.S<0&&(D.S=Q,D.delay.start()),D.C=Q,D.B=Q);g.xG(this.HH);this.publish("playbackstarted");(D=g.Q4("yt.scheduler.instance.clearPriorityThreshold"))?D():GP(0)};
g.y.xY=function(){var D=this.lE.tD(),Q={},m={};!IH("pbs",this.QX.timerName)&&Nz.measure&&Nz.getEntriesByName&&(Nz.getEntriesByName("mark_nr")[0]?PIn("mark_nr"):PIn());D.videoId&&(Q.videoId=D.videoId);D.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(Q.clientPlaybackNonce=D.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(m.isPausedOnLoad=!0);m.itag=D.C?Number(D.C.itag):-1;D.H1&&(m.preloadType=String(this.w8?2:1));Q.liveStreamMode=LzQ[rw(D)];Q.playerInfo=m;this.QX.infoGel(Q);
if(this.loader){D=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(D.T&&(Q=window.performance.getEntriesByName(D.T),Q.length&&(Q=Q[0],D.tick("vri",Q.fetchStart),D.tick("vdns",Q.domainLookupEnd),D.tick("vreq",Q.requestStart),D.tick("vrc",Q.responseEnd))),D.C&&(Q=window.performance.getEntriesByName(D.C),Q.length&&(Q=Q[0],D.tick("ari",Q.fetchStart),D.tick("adns",Q.domainLookupEnd),D.tick("areq",Q.requestStart),D.tick("arc",Q.responseEnd))));D=D.ticks;for(var P in D)D.hasOwnProperty(P)&&
this.QX.tick(P,D[P])}};
g.y.mu=function(D){var Q=this;D=D===void 0?!1:D;if(this.mediaElement&&this.videoData){IT9(this.LM,this.isPlaying());var m=this.getCurrentTime();if(this.loader&&(g.X(this.playerState,4)&&g.Qw(this.videoData)||g.X(this.playerState,32)&&H1(this.videoData)||hHj(this.loader,m),this.V("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var P;this.dc("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(P=this.loader)==null?void 0:P.currentTime},!0)}m>
5&&(this.LM.T=m);(P=g.rb())?g.KJ.N5(this.XR):g.bS(this.XR);var W=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!W||h2(this.videoData))&&!g.X(this.playerState,128)){var L=function(){if(Q.mediaElement&&!g.X(Q.playerState,128)){Q.SD.xl()&&$Ln(Q,"pfx");var u=Q.getCurrentTime();Q.V("html5_buffer_underrun_transition_fix")&&(u-=Q.m2());var t=IQ(Q.mediaElement),z=g.X(Q.playerState,8),b=HZ(Q.JL,u),q=acn(Q.JL,u,(0,g.T3)(),t);z&&b?Q.Bn(em(Q.playerState,1)):z&&q?(z=Q.getDuration(),b=ej(Q.videoData),
z&&Math.abs(z-u)<1.1?(Q.dc("setended",{ct:u,bh:t,dur:z,live:b}),Q.mediaElement.Wr()?(Q.logger.debug("seek to 0 because of looping"),Q.seekTo(0,{cn:"videoplayer_loop",seekSource:37})):Q.Ao()):(Q.playerState.isBuffering()||jFr(Q,"progress_fix"),Q.Bn($S(Q.playerState,1)))):(z&&!b&&!q&&u>0&&(z=(Date.now()-Q.DX)/1E3,b=Q.getDuration(),u>b-1&&Q.dc("misspg",{t:u.toFixed(2),d:b.toFixed(2),r:z.toFixed(2),bh:t.toFixed(2)})),Q.playerState.isPaused()&&Q.playerState.isBuffering()&&IQ(Q.mediaElement)>5&&Q.Bn(em(Q.playerState,
1)));Q.mu()}};
this.mediaElement.U_().length===0?this.XR=P?g.KJ.Gm(L,100):g.tl(L,100):this.XR=P?g.KJ.Gm(L,500):g.tl(L,500)}this.videoData.kB=m;!D&&this.isPlaying()&&I8m(this);m6_(this.gT,this.t8,this.Cn(),this.isBackground())&&PJ(this);this.publish("progresssync",D);W&&h2(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
g.y.mM=function(){this.Qi("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.y.v6=function(){return this.qB.v6()};
g.y.WS=function(){return this.loader?this.loader.WS():GZ(this.SD.schedule,!0)};
g.y.Bn=function(D){if(!g.Os(this.playerState,D)){this.logger.debug(function(){return"Setting state "+D.toString()});
var Q=new g.qW(D,this.playerState);this.playerState=D;ehu(this);var m=!this.wO.length;this.wO.push(Q);var P=this.mediaElement&&this.mediaElement.isSeeking();g.oD(Q,1)&&this.loader&&pUm(this.loader);P=Q.oldState.state===8&&!P;g.oD(Q,1)&&P&&g.X(this.playerState,8)&&!g.X(this.playerState,64)&&this.loader&&(xO4(this.loader),this.mediaElement&&IQ(this.mediaElement)>=5&&D66(this.gT,this.t8)&&PJ(this));(P=g.WF(this.SD.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.X(D,1)&&(g.X(D,8)||g.X(D,
16))?this.SY.start(P):this.SY.stop();(Cs(Q,8)<0||g.oD(Q,1024))&&this.Bd.stop();!g.oD(Q,8)||this.videoData.Iy||g.X(Q.state,1024)||this.Bd.start();g.X(Q.state,8)&&Cs(Q,16)<0&&!g.X(Q.state,32)&&!g.X(Q.state,2)&&this.playVideo();g.X(Q.state,2)&&m5(this.videoData)&&(this.Pk(this.getCurrentTime()),this.mu(!0));g.oD(Q,2)&&(this.R6(!0),this.SD.xl()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&H1(this.videoData)&&this.videoData.S&&(P={minst:""+this.videoData.S.JP,cminst:""+(this.videoData.S.TY()+
this.m2()),maxst:""+this.videoData.S.Sg,hts:""+this.videoData.S.Kh,cmaxst:""+(this.videoData.S.Bs()+this.m2())},this.dc("sabrSeekableBoundaries",P)));g.oD(Q,128)&&this.Gb();this.videoData.S&&this.videoData.isLivePlayback&&!this.bX&&(Cs(Q,8)<0?ESm(this.videoData.S):g.oD(Q,8)&&this.videoData.S.resume());JD$(this.LM,Q);YBu(this.qB,Q);if(m&&!this.VF())try{for(var W=g.T(this.wO),L=W.next();!L.done;L=W.next()){var u=L.value;PV_(this.DQ,u);this.publish("statechange",u)}}finally{this.wO.length=0}}};
g.y.Vb=function(){this.QX.tick("qoes")};
g.y.qy=function(){this.LM.qy()};
g.y.F$=function(D,Q,m,P){a:{var W=this.b6;P=P===void 0?"LICENSE":P;m=m.substring(0,256);var L=Nh(Q);D==="drm.keyerror"&&this.CO&&this.CO.C.keys.length>1&&W.B<96&&(D="drm.sessionlimitexhausted",L=!1);var u=W.nh.experiments.Mv("html5_retry_on_drm_unavailable"),t=W.nh.experiments.Mv("html5_retry_on_drm_key_error"),z=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(u&&D==="drm.unavailable"||t&&D==="drm.keyerror"&&!m.match(z))W.Hs("qoe.restart",{retryOnDrmError:1,e:D,detail:m}),W.Ch.nI(!0);else{if(L)if(W.videoData.C&&
W.videoData.C.video.isHdr())O7k(W,D);else{if(W.Ch.Qi(D,Q,P,m),Iun(W,{detail:m}))break a}else W.Hs(D,{detail:m});D==="drm.sessionlimitexhausted"&&(W.dc("retrydrm",{sessionLimitExhausted:1}),W.B++,Kl4(W.Ch))}}};
g.y.UBO=function(){var D=this,Q=g.WF(this.SD.experiments,"html5_license_constraint_delay"),m=GX();Q&&m?(Q=new g.pJ(function(){D.Mz();LA(D)},Q),g.O(this,Q),Q.start()):(this.Mz(),LA(this))};
g.y.hO=function(D){this.publish("heartbeatparams",D)};
g.y.Jr=function(D){this.dc("keystatuses",i7n(D));var Q="auto",m=!1;this.videoData.C&&(Q=this.videoData.C.video.quality,m=this.videoData.C.video.isHdr());a:{switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:Q="";break a}m&&(Q+="HDR")}Q=C7(D)?oJ(D,Q):D.B.includes(Q);if(this.V("html5_enable_vp9_fairplay")){if(m)if(D.U){var P;if((P=
this.CO)==null?0:CD(P.S))if((m=this.CO)==null)m=0;else{for(var W=P=void 0,L=g.T(m.C.values()),u=L.next();!u.done;u=L.next())u=u.value,P||(P=LE7(u,"SD")),W||(W=LE7(u,"AUDIO"));m.Jn({sd:P,audio:W});m=P==="output-restricted"||W==="output-restricted"}else m=!Q;if(m){this.dc("drm",{dshdr:1});O7k(this.b6);return}}else{this.videoData.Fo||(this.videoData.Fo=!0,this.dc("drm",{dphdr:1}),this.nI(!0));return}var t;if((t=this.CO)==null?0:CD(t.S))return}else if(t=D.U&&Q,m&&!t){O7k(this.b6);return}Q||oJ(D,"AUDIO")&&
oJ(D,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),D=i7n(D),this.v_?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.Qi("drm.keyerror",2,void 0,"info."+D)):(this.v_=!0,this.Hs(new g.VJ("qoe.restart",Object.assign({},{retrydrm:1},D))),PJ(this),Kl4(this)))};
g.y.qrW=function(){if(!this.videoData.Iy&&this.mediaElement&&!this.isBackground()){var D="0";this.mediaElement.Bi()>0&&IQ(this.mediaElement)>=5&&this.videoData.T&&this.videoData.T.S&&(this.Bn($S(this.playerState,1)),jFr(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),D="1");ehu(this);var Q=this.videoData.T;D={restartmsg:D,mfmt:!Jc(this.videoData),mdrm:!(!(Q&&Q.videoInfos&&Q.videoInfos.length&&Q.videoInfos[0].Ln)||this.CO),mfmtinfo:!this.videoData.C,prerolls:this.xS()?this.UM.join(","):
"0"};if(this.CO){Q=this.CO;if(Q.C.size<=0){var m="ns;";Q.j||(m+="nr;");Q=m+="ql."+Q.T.length}else Q=i7n(Q.C.values().next().value),Q=ft(Q);D.drmp=Q}var P;Object.assign(D,((P=this.loader)==null?void 0:P.yX())||{});var W;Object.assign(D,((W=this.mediaElement)==null?void 0:W.yX())||{});this.qB.Hs("qoe.start15s",ft(D));this.publish("loadsofttimeout")}};
g.y.Pk=function(D){this.videoData.lengthSeconds!==D&&(this.videoData.lengthSeconds=D,LA(this))};
g.y.R6=function(D,Q){var m=this;D=D===void 0?!1:D;if(!this.Zb)if(IH("att_s","player_att")||Ul("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var W,L,u,t;return g.U(function(z){switch(z.C){case 1:if(!(W=D)){z.Nv(2);break}return g.I(z,g.Ihj(),3);case 3:W=!z.S;case 2:if(W)return z.return();g.h4(z,4);L=x6_(m.qB);if(!L)throw Error();u={};return g.I(z,g.lh7((u.cpn=m.videoData.clientPlaybackNonce,u.encryptedVideoId=m.videoData.videoId||"",u),3E4),6);case 6:t=z.S;if(m.Zb)throw Error();
if(!t.challenge)throw g.l4(Error("Not sending attestation ping; no attestation challenge string")),Error();m.Zb=!0;var b=[t.challenge];t.error?b.push("r1c="+t.error):t.webResponse&&b.push("r1a="+t.webResponse);var q;((q=t.adblockReporting)==null?void 0:q.reportingStatus)!==void 0&&b.push("r6a="+t.adblockReporting.reportingStatus);var C;((C=t.adblockReporting)==null?void 0:C.broadSpectrumDetectionResult)!==void 0&&b.push("r6b="+t.adblockReporting.broadSpectrumDetectionResult);L(b.join("&"));Ul("att_f",
void 0,"player_att");g.g7(z,0);break;case 4:g.w7(z),Ul("att_e",void 0,"player_att"),g.T7(z)}})})().then(function(){Q==null||Q()});
else{var P=new g.jAj(this.videoData);if("c1a"in P.D7&&!g.fx.isInitialized()){Ul("att_wb",void 0,"player_att");this.QK===2&&Math.random()<.01&&g.l4(Error("Botguard not available after 2 attempts"));if(D)return;if(this.QK<5){g.xG(this.OR);this.QK++;return}}(P=g.$wm(P))?(Ul("att_f",void 0,"player_att"),pJ7(this.qB,P),this.Zb=!0):Ul("att_e",void 0,"player_att")}};
g.y.qL=function(D){D=D===void 0?!1:D;return ej(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Bj()||g.Qw(this.videoData))?this.getCurrentTime():this.Bs(D)};
g.y.eh=function(){return this.TY()};
g.y.Bs=function(D){return this.LM.Bs(D===void 0?!1:D)};
g.y.TY=function(){return this.LM.TY()};
g.y.m2=function(){return this.LM?this.LM.m2():0};
g.y.getStreamTimeOffset=function(){return this.LM?this.LM.getStreamTimeOffset():0};
g.y.MA=function(){var D=0;this.SD.V("web_player_ss_media_time_offset")&&(D=this.getStreamTimeOffset()===0?this.m2():this.getStreamTimeOffset());return D};
g.y.setPlaybackRate=function(D){var Q;this.playbackRate!==D&&pZ_(this.gT,(Q=this.videoData.T)==null?void 0:Q.videoInfos)&&(this.playbackRate=D,PJ(this));this.playbackRate=D;this.mediaElement&&this.mediaElement.setPlaybackRate(D)};
g.y.getPlaybackRate=function(){return this.playbackRate};
g.y.getPlaybackQuality=function(){var D="unknown";if(this.videoData.C&&(D=this.videoData.C.video.quality,D==="auto"&&this.mediaElement)){var Q=this.Lq();Q&&Q.videoHeight>0&&(D=$V(Q.videoWidth,Q.videoHeight))}return D};
g.y.isHdr=function(){return!!(this.videoData.C&&this.videoData.C.video&&this.videoData.C.video.isHdr())};
g.y.sendVideoStatsEngageEvent=function(D,Q){var m=this.qB;m.S?(m=BZ(m.S,"engage"),m.Kh=D,m.send(Q)):Q&&Q()};
g.y.uH=function(D){return this.qB.uH(D)};
g.y.isAtLiveHead=function(D,Q){Q=Q===void 0?!1:Q;return ej(this.videoData)&&(this.Qh||Q)?this.LM.isAtLiveHead(D):!1};
g.y.O1=function(){var D=this.Bs(),Q=this.getCurrentTime(),m;(m=!ej(this.videoData))||(m=this.LM,m=!(m.S&&m.S.T));return m||this.Bj()||isNaN(D)||isNaN(Q)?0:Math.max(0,D-Q)};
g.y.FO=function(D){(this.Qh=D)||this.Bd.stop();this.videoData.S&&(D?this.videoData.S.resume():ESm(this.videoData.S));if(this.loader){var Q=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.pm()&&this.videoData.isLivePlayback;D&&!Q?this.loader.resume():b_(this,!0)}g.X(this.playerState,2)||D?g.X(this.playerState,512)&&D&&this.Bn(em(this.playerState,512)):this.Bn($S(this.playerState,512));Q=this.qB;Q.qoe&&(Q=Q.qoe,g.Du(Q,g.PZ(Q.provider),"stream",[D?"A":"I"]))};
g.y.X$=function(D){this.qB.Hs("player.exception",ft({n:D.name,m:D.message}))};
g.y.Ic=Dk(22);g.y.mF=Dk(51);g.y.pF=function(D){this.qB.pF(D)};
g.y.yj=function(D){this.qB.yj(D)};
g.y.CJ=function(D){this.qB.CJ(D)};
g.y.F6=Dk(28);g.y.o_=Dk(34);g.y.e_=function(D){this.qB.e_(D)};
g.y.rg=function(D,Q,m,P){this.qB.rg(D,Q,m,P)};
g.y.gw=function(){this.dc("hidden",{},!0)};
g.y.W6=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.y.s_=function(){return this.loader?this.loader.s_():!0};
g.y.setLoop=function(D){this.loop=D;this.mediaElement&&!g.Nw(this.SD)&&this.mediaElement.setLoop(D)};
g.y.Wr=function(){return this.mediaElement&&!g.Nw(this.SD)?this.mediaElement.Wr():this.loop};
g.y.zt=function(D){this.dc("timestamp",{o:D.toString()});this.LM.zt(D)};
g.y.Fw=function(D){this.QX.tick(D)};
g.y.Dw=function(D){return this.QX.Dw(D)};
g.y.XN=function(D){this.QX.XN(D)};
g.y.dc=function(D,Q,m){this.qB.dc(D,Q,m===void 0?!1:m)};
g.y.Ia=function(D,Q,m){this.qB.dc(D,Q,m===void 0?!1:m)};
g.y.Hs=function(D){this.qB.Hs(D.errorCode,ft(D.details));D=D.errorCode;if(this.videoData.isLivePlayback&&(D==="qoe.longrebuffer"||D==="qoe.slowseek")||D==="qoe.restart"){D=this.loader?FB$(this.loader.videoTrack):{};var Q,m;this.dc("lasoe",Object.assign(this.loader?FB$(this.loader.audioTrack):{},(Q=this.cq)==null?void 0:(m=Q.S)==null?void 0:m.SC()));var P,W;this.dc("lvsoe",Object.assign(D,(P=this.cq)==null?void 0:(W=P.C)==null?void 0:W.SC()))}if(this.V("html5_log_centralized_player_time")){var L;this.dc("sabrSeekRefactorCmt",
{cmt:this.getCurrentTime(),loaderCmt:(L=this.loader)==null?void 0:L.currentTime})}};
g.y.kX=function(D,Q,m){this.qB.kX(D,Q,m)};
g.y.wf=function(D,Q,m,P,W,L,u,t){var z;if((z=this.videoData.S)!=null&&z.isLive){var b=Q.playerType===2?Q:D,q=D.videoData.videoId,C=Q.videoData.videoId;if(q&&C){z=this.qB;if(z.qoe){var f=z.qoe,V=D.cpn,N=Q.cpn,h=b.videoData.A8,B=f.provider.videoData.clientPlaybackNonce,J=f.provider.videoData.videoId,k=N!==B&&C!==J;B=V!==B&&q!==J;f.reportStats();f.adCpn&&f.adCpn!==V||(f.adCpn=B?V:"",f.Es=B?q:"",f.adFormat=B?h:void 0,jvr(f,L?4:W?2:0,N,C,P),f.reportStats(),f.adCpn=k?N:"",f.Es=k?C:"",f.adFormat=k?h:void 0,
jvr(f,L?5:W?3:1,V,q,m),f.reportStats())}m=D.cpn;if(z.T.has(m)){if(W=z.T.get(m),Js(W,!0).send(),ka(W),m!==z.provider.videoData.clientPlaybackNonce){RY_(W);var R;(R=z.S)==null||wJ6(R);z.T.delete(m)}}else z.B1=z.provider.videoData.clientPlaybackNonce,z.B1&&z.S&&(z.T.set(z.B1,z.S),Js(z.S).send(),ka(z.S));R=Q.cpn;b=b.videoData;P-=this.MA();if(z.T.has(R)){P=z.T.get(R);var e=P.T&&isNaN(P.J)?wT(P):NaN;P=IXk(P,!1);isNaN(e)||(P.U=e);P.send()}else P=XJ4(z,z.provider,b,P),z.T.set(R,P),U6n(P,new g.qW($S(new g.HE,
8),new g.HE)),BQ_(P),(e=z.S)==null||ka(e);z.B1=R;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(z=this.QX,e=Q.cpn,P=this.videoData.clientPlaybackNonce,Q=Q.videoData,D=(D.cpn===P?"video":"ad")+"_to_"+(e===P?"video":"ad"),D!=="video_to_ad"){P=D==="ad_to_video"?void 0:Q;b=P==null?void 0:P.aq;R={};if(Q==null?0:Q.N)R.cttAuthInfo={token:Q.N,videoId:Q.videoId};u&&(R.startTime=u);lc(D,R);var a,G,S;u={targetVideoId:(a=Q==null?void 0:Q.videoId)!=null?a:"empty_video",targetCpn:e,adVideoId:(G=
P==null?void 0:P.videoId)!=null?G:"empty_video",adClientPlaybackNonce:(S=b==null?void 0:b.cpn)!=null?S:P==null?void 0:P.clientPlaybackNonce};b&&(u.adBreakType=b.adBreakType,u.adType=b.adType);g.Jd(u,D);yp(z,t,D)}}else a=this.QX,S=this.videoData.clientPlaybackNonce,G=Q.videoData,S=(D.cpn===S?"video":"ad")+"_to_"+(Q.cpn===S?"video":"ad"),D={},G.N&&(D.cttAuthInfo={token:G.N,videoId:G.videoId}),u&&(D.startTime=u),lc(S,D),g.Jd({targetVideoId:G.videoId,targetCpn:Q.cpn,isSsdai:!0},S),u||yp(a,t,S)}}else this.logger.S(360717806,
"SSTEvent for nonSS")};
g.y.A6=function(){var D=this.lE,Q=D.Ac;D.Ac=[];return Q};
g.y.KY=function(D){this.videoData.El=!0;this.Hs(new g.VJ("sabr.fallback",D));this.nI(!0)};
g.y.wN=function(D,Q){this.videoData.d6=!0;if(Q===void 0||Q)this.Hs(new g.VJ("qoe.restart",D)),this.nI(!0)};
g.y.Ys=function(D){this.dc("sdai",{aftimeout:D});this.Hs(new g.VJ("ad.fetchtimeout",{timeout:D}))};
g.y.GF=function(D,Q){this.dc("timelineerror",D);D=new g.VJ("dai.timelineerror",D);Q?this.Qi("dai.timelineerror",1,"RETRYABLE_ERROR",ft(D.details)):this.Hs(D)};
g.y.u6=function(){return g.PZ(this.qB.provider)};
g.y.getPlayerSize=function(){return this.Pe.getPlayerSize()};
g.y.bS=function(){return this.Pe.bS()};
g.y.Dr=function(){return this.QX};
g.y.wm=function(){return this.lE.wm()};
g.y.getVolume=function(){return this.lE.getVolume()};
g.y.gX=function(){return this.lE.gX()};
g.y.isMuted=function(){return this.lE.isMuted()};
g.y.UF=function(){return this.lE.UF()};
g.y.NS=function(){this.bX=!0};
g.y.V=function(D){return this.SD.V(D)};
g.y.JX=function(D,Q,m,P,W){this.dc("xvt",{m:D,g:Q?1:0,tt:m?1:0,np:P?1:0,c:W})};
g.y.TN=function(){var D;(D=this.loader)==null||D.resume()};
g.y.pm=function(){return g.FK(this.UM,"ad")};
g.y.GV=function(){var D=this.getCurrentTime(),Q=D-this.m2();var m=this.mediaElement?qG(this.mediaElement.jb()):0;m=Math.floor(Math.max(m-Q,0))+100;var P;return((P=this.loader)==null?0:P.GV(Q,m))?(this.dc("sdai",{skipad:1,ct:Q.toFixed(3),adj:m.toFixed(3)}),H1(this.videoData)&&this.loader.seek(Q+m,{seekSource:89,cn:"videoplayer_skipServerStitchedAd"}),ADn(this.LM,D),!0):!1};
g.y.xl=function(){return this.SD.xl()};
g.y.lU=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.G1||"";this.lE.Mu();return this.SD.aF||""};
g.y.B$=function(){if(this.videoData.videoId)return this.videoData.Gp};
g.y.YV=function(){return this.videoData.videoId};
g.y.pE=function(){return this.lE.Pd};
g.y.b9=function(){return this.X_};
g.y.WI=function(){return this.lE.WI()};
g.y.bR=function(D,Q,m){this.Bn($S(this.playerState,16,m));this.LM.bR(D,Q)};
g.y.prefetchKeyPlay=function(){};
g.y.qx=function(){this.LM.qx()};
g.y.Ui=function(D,Q){var m=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.lE.Ui(D,Q,m)};
g.y.lY=function(D,Q){this.qB.lY(D,Q)};
g.y.xZ=function(){return this.qB.xZ()};
g.y.kZ=function(){return this.videoData.BN};
g.y.O3=function(){return this.lE.O3()};
g.y.jm=function(){return this.lE.jm(this)};
g.y.dO=function(){this.uy=!0};
g.y.nD=function(D){var Q;(Q=this.loader)==null||Q.nD(D)};g.Z(O$u,V3);g.Z(CA,gg);CA.prototype.S=function(D){D&&Bj(this,this.D.getLoopVideo());this.D.logVisibility(this.element,D)};
CA.prototype.logClick=function(){this.D.logClick(this.element)};
CA.prototype.onLoopChange=function(D){Bj(this,D)};
CA.prototype.C=function(D){this.D.setLoopVideo(D)};g.Z(YHu,V3);g.Z(a8P,V3);g.y=a8P.prototype;g.y.seekToChapterWithAnimation=function(D){var Q=this;if(g.jh(this.api)&&!(D<0)){var m=this.api.getVideoData(),P=m.tY;if(P&&D<P.length){P=g.T(P);for(var W=P.next();!W.done;W=P.next())if(W=W.value,W.index===D){A_7(this,W.startTime,W.title);return}}this.V("web_key_moments_markers")&&(m=m.QJ)&&D<m.length&&m.forEach(function(L,u){u===D&&A_7(Q,L.timeRangeStartMillis,L.title)})}};
g.y.seekToTimeWithAnimation=function(D,Q){g.jh(this.api)&&A_7(this,D,Q)};
g.y.setMacroMarkers=function(D,Q){Q={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:Q}}}}}};D=D.getVideoData();D.getWatchNextResponse();D&&D.getWatchNextResponse()==null&&(TM(D,{raw_watch_next_response:Q}),D.publish("dataupdated"))};
g.y.changeMarkerVisibility=function(D,Q,m){var P=this.api.getVideoData();if(P){var W=!1;if(D)for(D=g.T(Q),Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var L=P.l0;if(L&&!L.includes(Q))switch(m){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":xL9(Q,P)||(W=!0,L=void 0,(L=P.l0)==null||L.push(Q));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":L.length===0&&(W=!0,L=void 0,(L=P.l0)==null||L.push(Q));break;default:W=!0,L=void 0,(L=P.l0)==null||L.push(Q)}}else for(m=
g.T(Q),D=m.next();!D.done;D=m.next())D=D.value,P.visibleOnLoadKeys.includes(D)||g.hM(P.l0,D)&&(W=!0);W&&this.api.publish("updatemarkervisibility")}};
g.y.isSameMarkerTypeVisible=function(D){var Q=this.api.getVideoData();return Q?xL9(D,Q):!1};g.Z(oy,V3);
oy.prototype.updateMetadata=function(){var D=this,Q=this.api.getVideoData();if(Q!=null&&Q.EC()){var m=this.api.G(),P=[],W="";if(!m.Iy){var L=G6P(this);g.jY(m)&&L?(P=Mru(L.thumbnailDetails),L.album&&(W=m1(L.album))):P=[{src:Q.vB("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var u;((u=this.api.getVideoData())==null?0:GB7(u))&&SHu(this);Xx9(this);r_m(this);navigator.mediaSession.metadata=new MediaMetadata({title:Q.title,artist:Q.author,artwork:P,album:W});m=Q=null;g.Gv(this.api)&&(Q=function(){D.api.nextVideo()},
m=function(){D.api.previousVideo()});
fA("nexttrack",Q);fA("previoustrack",m)}};
oy.prototype.Bq=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var D=g.T("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),Q=D.next();!Q.done;Q=D.next())fA(Q.value,null);var m;((m=this.api.getVideoData())==null?0:GB7(m))&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});V3.prototype.Bq.call(this)};g.Z(Vz,V3);Vz.prototype.setCompositeVideoOverlayRendererComponent=function(D){this.T&&(this.T.remove(),g.Wo(this.T,"ytp-composite-video-overlay-renderer"),this.T=void 0);D&&(g.mQ(D,"ytp-composite-video-overlay-renderer"),g.Q3(this.api,D,4),this.T=D)};
Vz.prototype.J=function(D){return D.compositeEmbargo!==void 0};
Vz.prototype.Bq=function(){V3.prototype.Bq.call(this);this.C.clear()};g.Z(PAr,V3);g.y=PAr.prototype;g.y.queueOfflineAction=function(D,Q,m,P){var W=this,L,u;return g.U(function(t){return t.C==1?(L=HC(W.api.HY()))?g.I(t,L.bb([D],Q,m,P),3):t.Nv(2):t.C!=2&&(u=t.S,u.length)?t.return(u[0]):t.return(Promise.reject())})};
g.y.updateDownloadState=function(D,Q){var m=HC(this.api.HY());return m?m.updateDownloadState(D,Q):Promise.reject()};
g.y.pauseVideoDownload=function(D){var Q=HC(this.api.HY());Q&&Q.P4(D)};
g.y.resumeVideoDownload=function(D){var Q=this,m;return g.U(function(P){return(m=HC(Q.api.HY()))?P.return(m.PR(D)):P.return(Promise.reject())})};
g.y.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.y.refreshAllStaleEntities=function(D){D===void 0&&(D=14400);var Q=HC(this.api.HY());return Q?Q.refreshAllStaleEntities(D):Promise.reject()};
g.y.setUpPositionSyncInterval=function(D){var Q=HC(this.api.HY());Q&&Q.setUpPositionSyncInterval(D)};g.Z(Wk9,V3);g.y=Wk9.prototype;g.y.Y5=function(){return XLj(this.api.getVideoData())};
g.y.load=function(){var D=this;this.loaded||g.zs(this.api.G())||(this.overlay=new g.p({K:"div",OW:["ytp-ypc-clickwrap-overlay","ytp-player-content"],X:[{K:"h2",L:"ytp-ypc-clickwrap-header",h0:"Would you like to start this rental?"},{K:"div",L:"ytp-ypc-clickwrap-description",h0:this.api.getVideoData().KZ},{K:"button",OW:["ytp-ypc-clickwrap-confirm","ytp-button"],h0:"Start rental period"}]}),g.O(this,this.overlay),g.Q3(this.api,this.overlay.element,4),this.overlay.W(this.overlay.Dx("ytp-ypc-clickwrap-confirm"),
"click",function(){D.onConfirm()}),this.loaded=!0)};
g.y.onConfirm=function(){var D=this;this.overlay&&this.overlay.hide();this.S.W(this.api,"videodatachange",function(){D.api.wi("ypc_clickwrap")});
this.api.wi("ypc_clickwrap")};
g.y.unload=function(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),g.EI(this.S),this.loaded=!1)};
g.y.Bq=function(){this.unload();V3.prototype.Bq.call(this)};g.Z(N6,V3);N6.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
N6.prototype.getAvailableQualityData=function(){var D=this.api.getVideoData();if(!D)return[];var Q=[],m,P,W=(m=D.getPlayerResponse())==null?void 0:(P=m.playabilityStatus)==null?void 0:P.paygatedQualitiesMetadata;P=(W==null?void 0:W.qualityDetails)||[];m=new Map;m=g.iv(P)&&!Array.isArray(P)?new Map(Object.entries(P)):new Map(P.map(function(u){return[u.key,u.value]}));
if(P=W==null?void 0:W.restrictedAdaptiveFormats){W=[];P=g.T(P);for(var L=P.next();!L.done;L=P.next())L=L.value,L=is(L.mimeType,L.quality,L.itag.toString(),L.width.toString(),L.height.toString(),L.qualityLabel,L.qualityOrdinal&&Csn[L.qualityOrdinal]),W.push(L);D=g.Kz(D);px(W);P=[];W=g.T(W);for(L=W.next();!L.done;L=W.next())L=L.value,Yf(D,L,this.api.G().J)===!0&&P.push(L);Q=Q.concat(iu7(P,!1,m))}D=this.api.uO();Q=Q.concat(iu7(D,!0,m));m=[];if(this.api.V("web_player_enable_premium_hbr_in_h5_api"))return Q=
Lkn(Q),s_P(Q),Q;D={};Q=g.T(Q);for(W=Q.next();!W.done;W=Q.next())W=W.value,P=W.quality,D[P]||(W.formatId=void 0,m.push(W),D[P]=!0);return m};var nl={},Fz$=(nl["internal-error"]=-1,nl["non-recoverable-error"]=-2,nl["api-disabled-by-application"]=-3,nl["invalid-argument"]=-4,nl["token-provider-invalid"]=-5,nl);g.Z(yz,V3);yz.prototype.kG=function(D){var Q=this;if(dYr())if(!this.C&&this.S){bum(this,D);try{this.S.then(function(){zcr(Q,D)},function(m){ZX(m,"player_update");
Q.handleError(m,D)})}catch(m){ZX(m,"player_update_catch"),this.handleError(m,D)}}else this.C?zcr(this,D):this.api.dc("pf",{m:this.C?1:0,
p:this.S?1:0})};
yz.prototype.handleError=function(D,Q){g.l4(D);if(this.api.V("html5_enable_d6de4_cold_start_and_error")){var m=0;D.mediaIntegrityErrorName?m||(m=Fz$[D.mediaIntegrityErrorName]):D.code&&(m=D.code());Q.Gp={Xsv:{code:m}}}};g.Z(FL,g.p);FL.prototype.Lh=function(D){D=D?"Exit picture-in-picture":"Picture-in-picture";this.api.G().V("player_tooltip_data_title_killswitch")?this.update({title:D,"data-title-no-tooltip":D}):this.update({"data-tooltip-title":D,"data-title-no-tooltip":D});this.api.QP()};
FL.prototype.onClick=function(){this.api.togglePictureInPicture()};g.Z(Tk,V3);Tk.prototype.createButton=function(){var D=this;this.button=new FL(this.api);g.O(this,this.button);this.api.Fj(this.button);this.events.W(this.api,"videodatachange",function(){qPu(D)});
qPu(this)};
Tk.prototype.setDocumentPictureInPicture=function(D){this.api.VL().WL(D);D=this.api.CU();var Q=nE_(this.api.HY());Q&&(D?Q.load():Q.unload());this.api.publish("documentpictureinpicturechange")};g.Z(CA7,V3);g.y=CA7.prototype;g.y.Y5=function(){return this.api.getVideoData().j.includes("yto")};
g.y.load=function(){var D=this;if(!this.loaded){this.J||(this.J=new g.p({K:"div",OW:["ytp-player-content","ytp-yto-overlay"],X:[{K:"div",OW:["ytp-yto-preroll-message"],h0:"Video will begin shortly"}]}),g.O(this,this.J),o6_(this,!1),g.Q3(this.api,this.J.element,4));var Q=this.api.getPresentingPlayerType();this.T.W(this.api,"playbackChange",function(){var m=D.api.getPresentingPlayerType()===5;g.sh(D.api.getRootNode(),"ytp-yto-preroll",m);o6_(D,m)});
this.T.W(this.api,"presentingplayerstatechange",function(m){D.onStateChange(m)});
this.T.W(this.api,g.r5("yto"),function(m,P){D.onCueRangeEnter(m,P)});
this.T.W(this.api,"ytoprerollinternstitialnext",function(){Na7(D)});
fs_(this);this.loaded=!0;this.api.wi("yto",Q)}};
g.y.onCueRangeEnter=function(D){D=D.getId();if(!this.S){if(g.X(this.api.getPlayerStateObject(1),2)){if(this.N)return}else this.N=!1;this.C.includes(D)||this.C.push(D);this.api.getPresentingPlayerType()===1&&VVw(this)}};
g.y.onStateChange=function(D){var Q=this.api.getPresentingPlayerType();D=D.state;this.S||Q!==5&&Q!==6&&Q!==7||g.X(D,1)||g.X(D,16)||g.X(D,32)||(Q=g.X(D,128),(g.X(D,2)||Q)&&Na7(this))};
g.y.unload=function(){this.loaded&&(this.Z=0,this.N=this.S=!1,this.U={},this.B=0,this.C.length=0,g.EI(this.T),this.loaded=!1)};
g.y.Bq=function(){this.unload();V3.prototype.Bq.call(this)};g.Z(yOh,V3);g.Z(EB,g.p);g.y=EB.prototype;g.y.Ph=function(){};
g.y.bY=function(){};
g.y.ZL=function(){return!0};
g.y.JN0=function(){if(this.expanded){this.XT.show();var D=this.T.element.scrollWidth}else D=this.T.element.scrollWidth,this.XT.hide();this.pj=this.k9+D;g.sh(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.k9:this.pj)+"px";this.l0.start()};
g.y.nR=function(){this.badge.element.style.width=(this.expanded?this.pj:this.k9)+"px";this.oy.start()};
g.y.NG=function(){this.B&&this.D.logVisibility(this.badge.element,this.ZL());this.TO&&this.D.logVisibility(this.dismissButton.element,this.ZL()&&this.wI())};
g.y.GJ=function(D){this.Kh=D;nA(this);hA(this);this.j6()};
g.y.gP0=function(){g.sh(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.y.wI=function(){return this.Iy||this.Kh||!this.Z};
g.y.j6=function(){this.ZL()?(this.show(),this.j.show()):this.j.hide();this.NG()};
g.y.Z3=function(){this.enabled=!1;this.j6()};
g.y.bT=function(D){D?this.TO&&this.D.logClick(this.dismissButton.element):this.B&&this.D.logClick(this.badge.element)};
g.y.Iw0=function(){this.j6()};
g.y.FcO=function(D){this.hU=D===1;this.j6();g.sh(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.y.uAh=function(){g.sh(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.D.isFullscreen());this.j6()};g.Z(gQ,g.t1);g.y=gQ.prototype;g.y.NV=function(){this.publish("size-change")};
g.y.Ow=function(){return Fkm(this)};
g.y.J_=function(){return Fkm(this)};
g.y.focus=function(){this.content.focus()};
g.y.hm=function(){this.publish("back")};g.Z(g.BJ,gQ);g.y=g.BJ.prototype;g.y.CM=function(D,Q){if(Q===void 0?0:Q)this.items.push(D),this.menuItems.element.appendChild(D.element);else{Q=g.OU(this.items,D,Ta6);if(Q>=0)return;Q=~Q;g.$k(this.items,Q,0,D);V0(this.menuItems.element,D.element,Q)}D.subscribe("size-change",this.Qb,this);this.menuItems.publish("size-change")};
g.y.Ow=function(){Fkm(this)||this.items[0].focus();return!0};
g.y.J_=function(){this.items[this.items.length-1].focus();return!0};
g.y.Vi=function(D){D.unsubscribe("size-change",this.Qb,this);this.VF()||(g.hM(this.items,D),this.menuItems.element.removeChild(D.element),this.menuItems.publish("size-change"))};
g.y.Qb=function(){this.menuItems.publish("size-change")};
g.y.focus=function(){for(var D=0,Q=0;Q<this.items.length;Q++){var m=this.items[Q].element;if(m.getAttribute("role")==="menuitemradio"){if(m.getAttribute("aria-checked")==="true"){D=Q;break}}else break}this.items[D].focus()};
g.y.Lm=function(){return this.items.length};g.Z(g.k$,g.ui);g.y=g.k$.prototype;g.y.show=function(){g.ui.prototype.show.call(this);this.oW()};
g.y.hide=function(){g.ui.prototype.hide.call(this);this.S.length>1&&g.l_(this)};
g.y.oW=function(){E64(this);this.To&&(hc7(this),g.cu(this.element,this.size))};
g.y.hn=function(){var D=this.S.pop();n6w(this,D,this.S[this.S.length-1],!0)};
g.y.lK=function(D){if(!D.defaultPrevented)switch(D.keyCode){case 27:this.eJ();D.preventDefault();break;case 37:this.S.length>1&&this.hn();D.preventDefault();break;case 39:D.preventDefault()}};
g.y.focus=function(){this.S.length&&this.S[this.S.length-1].focus()};
g.y.Bq=function(){g.ui.prototype.Bq.call(this);this.B&&this.B.dispose();this.N&&this.N.dispose()};g.Z(Iy,g.k$);Iy.prototype.open=function(D,Q){this.initialize(D.items)&&this.YJ(Q,!!Q)};
Iy.prototype.initialize=function(D){g.wQ(this.RF);if(D===void 0||D.length===0)return!1;var Q=D.length;D=g.T(D);for(var m=D.next();!m.done;m=D.next())this.CM(m.value,Q--);return!0};
Iy.prototype.CM=function(D,Q){D.menuNavigationItemRenderer?waj(this,D.menuNavigationItemRenderer,Q):D.menuServiceItemRenderer&&kC6(this,D.menuServiceItemRenderer,Q)};g.Z(Ry,EB);g.y=Ry.prototype;g.y.Ph=function(D){D.target!==this.dismissButton.element&&D.target!==this.overflowButton.element&&(this.bT(),this.onClickCommand&&this.D.sW("innertubeCommand",this.onClickCommand))};
g.y.bY=function(){this.enabled=!1;this.j.hide()};
g.y.ZL=function(){return!!this.S&&this.enabled};
g.y.onVideoDataChange=function(D,Q){this.EE(Q);if(this.S){this.jV();a:if(!this.isCounterfactual){var m,P,W;this.banner.update({title:(m=this.S)==null?void 0:m.title,subtitle:(P=this.S)==null?void 0:P.subtitle,metadata:(W=this.S)==null?void 0:W.metadataText});var L;this.onClickCommand=g.A((L=this.S)==null?void 0:L.onTap,RC);var u;if(D=g.A((u=this.S)==null?void 0:u.onOverflow,RC))this.U=g.A(D,ytK);var t;if((t=this.S)==null?0:t.thumbnailImage){var z,b;u=((z=this.S)==null?void 0:(b=z.thumbnailImage)==
null?void 0:b.sources)||[];if(u.length===0)break a;this.thumbnailImage.update({url:u[0].url})}else{var q;if((q=this.S)==null?0:q.thumbnailIconName){var C;this.thumbnailIcon.update({icon:(C=this.S)==null?void 0:C.thumbnailIconName})}}var f;this.shouldShowOverflowButton=!((f=this.S)==null||!f.shouldShowOverflowButton);var V;this.shouldHideDismissButton=!((V=this.S)==null||!V.shouldHideDismissButton)}var N;this.banner.element.setAttribute("aria-label",((N=this.S)==null?void 0:N.a11yLabel)||"");var h;
this.Y9=(h=this.S)==null?void 0:h.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;ls9(this)}};
g.y.Qjq=function(){this.isVisible=!0;ls9(this)};
g.y.Oj0=function(){this.isVisible=!1;ls9(this)};
g.y.NG=function(){EB.prototype.NG.call(this);this.C&&this.D.logVisibility(this.banner.element,this.isVisible)};
g.y.bT=function(){EB.prototype.bT.call(this,!1);this.C&&this.D.logClick(this.banner.element)};
g.y.YL=function(D){this.N||(this.N=new Iy(this.D),g.O(this,this.N));var Q,m;if((Q=this.U)==null?0:(m=Q.menu)==null?0:m.menuRenderer)this.N.open(this.U.menu.menuRenderer,D.target),D.preventDefault()};
g.y.EE=function(){};
g.y.jV=function(){};
g.y.Bq=function(){this.D.aI("suggested_action_view_model");EB.prototype.Bq.call(this)};g.Z(UB,Ry);
UB.prototype.EE=function(D){var Q,m,P;this.productUpsellSuggestedActionViewModel=g.A((Q=D.getWatchNextResponse())==null?void 0:(m=Q.playerOverlays)==null?void 0:(P=m.playerOverlayRenderer)==null?void 0:P.suggestedActionViewModel,Hav);var W;if((W=this.productUpsellSuggestedActionViewModel)==null?0:W.content){var L;this.S=g.A((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,fqU)}var u,t;if(this.C=!!((u=this.productUpsellSuggestedActionViewModel)==null?0:(t=u.loggingDirectives)==null?
0:t.trackingParams)){var z,b;this.D.setTrackingParams(this.banner.element,((z=this.productUpsellSuggestedActionViewModel)==null?void 0:(b=z.loggingDirectives)==null?void 0:b.trackingParams)||null)}var q;this.isCounterfactual=!((q=this.productUpsellSuggestedActionViewModel)==null||!q.isCounterfactualServing)};
UB.prototype.jV=function(){var D=[],Q,m=g.T(((Q=this.productUpsellSuggestedActionViewModel)==null?void 0:Q.ranges)||[]);for(Q=m.next();!Q.done;Q=m.next()){var P=Q.value;P&&(Q=Number(P.startTimeMilliseconds),P=Number(P.endTimeMilliseconds),isNaN(Q)||isNaN(P)||D.push(new g.XB(Q,P,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.D.GY(D)};g.Z(Is7,V3);g.Z(HJ,V3);HJ.prototype.onVideoDataChange=function(D,Q){var m=this;if(!ov(Q)&&(D==="newdata"&&UYw(this),this.S&&D==="dataloaded")){this.S=!1;var P;Xc(xe(H8(this.api.G(),(P=this.api.getVideoData())==null?void 0:g.qO(P)),function(W){v6j(m,W)}),function(){m.S=!0})}};
HJ.prototype.lS=function(){var D=this;if(g.Nw(this.api.G())){var Q,m=g.UO(this.api.G(),(Q=this.api.getVideoData())==null?void 0:g.qO(Q));return xe(Ye(m),function(P){var W=ii();sD(W,P);return D.api.lS(W)})}return Ye(this.api.lS())};g.Z(g.jK,g.q$);g.y=g.jK.prototype;g.y.open=function(){g.JA(this.Cj,this.Em)};
g.y.I4=function(D){Ou7(this);var Q=this.options[D];Q&&(Q.element.setAttribute("aria-checked","true"),this.Sk(this.BF(D)),this.T=D)};
g.y.Rg=function(D){g.wQ(this.Em);for(var Q={},m=!1,P=0;P<D.length;P++){var W=D[P],L=this.options[W],u=W===this.T;u&&(m=!0);L&&L.priority===-P?(g.bi(this.options[W],this.BF(W,!0)),delete this.options[W]):L=this.SI(W,-P,u);Q[W]=L;this.Em.CM(L,!0)}m||(this.T=null);D=g.T(Object.keys(this.options));for(m=D.next();!m.done;m=D.next())this.options[m.value].dispose();this.options=Q};
g.y.SI=function(D,Q,m,P){var W=this;m={K:"div",OW:["ytp-menuitem",P?"ytp-menuitem-with-footer":""],Y:{tabindex:"0",role:"menuitemradio","aria-checked":m?"true":"false"},X:[{K:"div",OW:["ytp-menuitem-label"],h0:"{{label}}"}]};P&&(P={K:"div",L:"ytp-menuitem-footer",X:[P]},m.X?m.X.push(P):m.X=[P]);Q=new g.q$(m,Q,this.BF(D,!0));Q.listen("click",function(){W.Db(D)});
return Q};
g.y.enable=function(D){this.Z?D||(this.Z=!1,this.sJ(!1)):D&&(this.Z=!0,this.sJ(!0))};
g.y.sJ=function(D){D?this.Cj.CM(this):this.Cj.Vi(this)};
g.y.NJ=function(D){this.publish("select",D)};
g.y.Db=function(D){this.NJ(D)};
g.y.BF=function(D){return D.toString()};
g.y.lK=function(D){D.defaultPrevented||D.keyCode!==39||(this.open(),D.preventDefault())};
g.y.Bq=function(){this.Z&&this.Cj.Vi(this);g.q$.prototype.Bq.call(this);for(var D=g.T(Object.keys(this.options)),Q=D.next();!Q.done;Q=D.next())this.options[Q.value].dispose()};g.Z(YPr,g.jK);g.y=YPr.prototype;g.y.Lh=function(){var D=this.lw("Off");this.D.getPresentingPlayerType()!==2?(ash(this),this.I4(this.B),this.S&&(this.B===D?this.S="":this.setSleepTimerTimeLeft(this.S)),this.N&&this.setVideoTimeLeft(this.N),this.enable(!0)):(this.Rg([]),this.enable(!1))};
g.y.NJ=function(D){AOr(this,D);this.Cj.hn()};
g.y.lw=function(D){switch(D){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(D.toString()+" Minutes").toLowerCase()}};
g.y.onVideoDataChange=function(D){D==="dataloaded"&&ash(this)};
g.y.Gn=function(D){this.D.logVisibility(this.element,D)};
g.y.onClick=function(){this.D.logClick(this.element)};
g.y.resetSleepTimerMenuSettings=function(){AOr(this,this.lw("Off"))};
g.y.setSleepTimerTimeLeft=function(D){this.S=D;this.Sk(D)};
g.y.setVideoTimeLeft=function(D){this.N=D;this.C.Sk(D)};g.Z($$,V3);$$.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
$$.prototype.setSleepTimerTimeLeft=function(D){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(D)};
$$.prototype.setVideoTimeLeft=function(D){this.menuItem&&this.menuItem.setVideoTimeLeft(D)};g.Z(par,V3);g.Z(g.vJ,g.iR);g.y=g.vJ.prototype;g.y.W=function(D,Q){this.B.W(this.Z,D,Q,void 0,!this.S)};
g.y.cancel=function(){this.T&&(this.T=!1,this.publish("dragend",0,0,null));this.C&&(this.C=!1,this.publish("hoverend",0,0,null),OB(this),eK(this))};
g.y.uT=function(D){OB(this);this.W(Y$("move"),this.PP);this.W(Y$("out"),this.ZS);this.W("touchstart",this.im);this.S&&this.W(Y$("down"),this.lm);var Q=D.target;D=new g.Yq(D.pageX,D.pageY);this.C=!0;this.publish("hoverstart",D.x,D.y,Q);this.publish("hovermove",D.x,D.y,Q)};
g.y.PP=function(D){var Q=D.target;D=new g.Yq(D.pageX,D.pageY);if(this.J){var m=this.J;this.J=null;if(m.relatedTarget===Q&&aG(new g.Yq(m.pageX,m.pageY),D))return}this.publish("hovermove",D.x,D.y,Q)};
g.y.ZS=function(D){var Q=new g.Yq(D.pageX,D.pageY),m=D.relatedTarget;try{if(m&&g.y0(this.target,m)){this.J=D;this.publish("hovermove",Q.x,Q.y,m);return}}catch(P){}OB(this);eK(this);this.C=!1;this.publish("hoverend",Q.x,Q.y,m)};
g.y.wq0=function(D){this.uT(D);this.lm(D)};
g.y.lm=function(D){if(typeof D.button!=="number"||D.button===0){OB(this);this.B.W(ay(D.target),Y$("move"),this.VDz);this.B.W(ay(D.target),Y$("up"),this.sK);var Q=D.target;if(g.d9)this.W("dragstart",this.j5);else if(D.preventDefault(),(g.kv||a$)&&Q)a:{for(var m=Q;m;){if($Q6(m)||m.getAttribute("tabindex")==="-1"){m.focus();break a}m=m.parentElement}ay(Q).activeElement.blur()}this.T=!0;D=new g.Yq(D.pageX,D.pageY);this.publish("dragstart",D.x,D.y,Q);this.publish("dragmove",D.x,D.y,Q)}};
g.y.j5=function(D){D.preventDefault()};
g.y.VDz=function(D){var Q=D.target;Q===ay(D.target)&&(Q=null);D=new g.Yq(D.pageX,D.pageY);this.publish("hovermove",D.x,D.y,Q);this.publish("dragmove",D.x,D.y,Q)};
g.y.sK=function(D){OB(this);this.T=!1;var Q=F7(D),m=D.target;D=new g.Yq(D.pageX,D.pageY);Q&&g.y0(this.target,Q)?(this.W(Y$("move"),this.PP),this.W(Y$("out"),this.ZS),this.W(Y$("down"),this.lm),this.W("touchstart",this.im),this.publish("dragend",D.x,D.y,m)):(eK(this),this.C=!1,this.publish("dragend",D.x,D.y,m),this.publish("hoverend",D.x,D.y,m))};
g.y.im=function(D){var Q=D.changedTouches[0];Q&&(OB(this),this.j||(this.W("touchmove",this.YHv),this.W("touchend",this.aV),this.W("touchcancel",this.aV),this.N=Q.identifier,D=D.target,this.C||(this.C=!0,this.publish("hoverstart",Q.pageX,Q.pageY,D)),this.publish("hovermove",Q.pageX,Q.pageY,D),this.S&&(this.T=!0,this.publish("dragstart",Q.pageX,Q.pageY,D),this.publish("dragmove",Q.pageX,Q.pageY,D))))};
g.y.YHv=function(D){var Q=xY7(this,D);Q&&(this.S&&D.preventDefault(),D=D.target,this.publish("hovermove",Q.pageX,Q.pageY,D),this.S&&this.publish("dragmove",Q.pageX,Q.pageY,D))};
g.y.aV=function(D){var Q=xY7(this,D);if(Q){OB(this);eK(this);this.C=!1;var m=D.target;this.S&&(this.U||D.preventDefault(),this.T=!1,this.publish("dragend",Q.pageX,Q.pageY,m));this.publish("hoverend",Q.pageX,Q.pageY,m)}};
g.y.Bq=function(){this.S&&(g.d9&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");OB(this);g.iR.prototype.Bq.call(this)};
var Xaj=!1;g.Z(rOw,g.p);rOw.prototype.Qy=function(){g.YZ(this.element,"display","none");this.D.logVisibility(this.S,!1)};g.Z(pA,V3);pA.prototype.Iy=function(D,Q){this.VF()||(this.Z=[D,Q],this.S.subscribe("dragmove",this.N,this),this.S.subscribe("dragend",this.J,this),this.T||g.xG(this.delay))};
pA.prototype.QF=function(){if(this.B){this.T=!0;this.Kh=this.api.getPlaybackRate();this.t0=this.api.getPlayerStateObject().isPaused();var D=this.speedmasterUserEdu;g.YZ(D.element,"display","");D.D.logVisibility(D.S,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.U&&(this.U.If=!0);this.TO&&(this.TO.sx=!0);this.V("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged",!0)}};
pA.prototype.N=function(D,Q){if(!this.T){D=[D,Q];var m=this.Z;m&&D&&m.length===2&&D.length===2?(Q=Math.abs(m[0]-D[0]),m=Math.abs(m[1]-D[1]),Q=Math.sqrt(Q*Q+m*m)):Q=-1;Q<10?this.Z=D:x$(this)}};
pA.prototype.J=function(){x$(this)};g.Z(XL,g.Ab);XL.prototype.preventDefault=function(){g.Ab.prototype.preventDefault.call(this);this.S&&this.S.preventDefault()};
XL.prototype.stopPropagation=function(){g.Ab.prototype.stopPropagation.call(this);this.S&&this.S.stopPropagation()};g.Z(g.SK,J$);g.y=g.SK.prototype;g.y.Qg=function(){return!0};
g.y.isView=function(){return!1};
g.y.Qz=function(){return!1};
g.y.nj=function(){return this.S};
g.y.Nb=function(){return this.S.src};
g.y.Ho=function(D){var Q=this.getPlaybackRate();this.S.src=D;this.setPlaybackRate(Q)};
g.y.F1=function(){this.S.removeAttribute("src")};
g.y.getPlaybackRate=function(){try{return this.S.playbackRate>=0?this.S.playbackRate:1}catch(D){return 1}};
g.y.setPlaybackRate=function(D){this.getPlaybackRate()!==D&&(this.S.playbackRate=D);return D};
g.y.Wr=function(){return this.S.loop};
g.y.setLoop=function(D){this.S.loop=D};
g.y.canPlayType=function(D,Q){return this.S.canPlayType(D,Q)};
g.y.isPaused=function(){return this.S.paused};
g.y.isSeeking=function(){return this.S.seeking};
g.y.isEnded=function(){return this.S.ended};
g.y.dK=function(){return this.S.muted};
g.y.rU=function(D){E5();this.S.muted=D};
g.y.U_=function(){return this.S.played||us([],[])};
g.y.jb=function(){try{var D=this.S.buffered}catch(Q){}return D||us([],[])};
g.y.Yr=function(){return this.S.seekable||us([],[])};
g.y.hI=function(){var D=this.S;return D.getStartDate?D.getStartDate():null};
g.y.getCurrentTime=function(){return this.S.currentTime};
g.y.setCurrentTime=function(D){this.S.currentTime=D};
g.y.getDuration=function(){return this.S.duration};
g.y.load=function(){var D=this.S.playbackRate;try{this.S.load()}catch(Q){}this.S.playbackRate=D};
g.y.pause=function(){this.S.pause()};
g.y.play=function(){var D=this.S.play();if(!D||!D.then)return null;D.then(void 0,function(){});
return D};
g.y.Bi=function(){return this.S.readyState};
g.y.IK=function(){return this.S.networkState};
g.y.X6=function(){return this.S.error?this.S.error.code:null};
g.y.tN=function(){return this.S.error?this.S.error.message:""};
g.y.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var D=this.S,Q=D.webkitDroppedFrameCount;if(D=D.webkitDecodedFrameCount)return{droppedVideoFrames:Q||0,totalVideoFrames:D}}return{}};
g.y.xP=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless};
g.y.gY=function(){return!!this.S.webkitShowPlaybackTargetPicker()};
g.y.togglePictureInPicture=function(){var D=this.S,Q=window.document;window.document.pictureInPictureEnabled?this.S!==Q.pictureInPictureElement?D.requestPictureInPicture():Q.exitPictureInPicture():nt()&&D.webkitSetPresentationMode(D.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.y.wh=function(){var D=this.S;return new g.Yq(D.offsetLeft,D.offsetTop)};
g.y.getSize=function(){return g.Dr(this.S)};
g.y.setSize=function(D){g.cu(this.S,D)};
g.y.getVolume=function(){return this.S.volume};
g.y.setVolume=function(D){E5();this.S.volume=D};
g.y.Oa=function(D){this.J[D]||(this.S.addEventListener(D,this.listener),this.J[D]=this.listener)};
g.y.setAttribute=function(D,Q){this.S.setAttribute(D,Q)};
g.y.removeAttribute=function(D){this.S.removeAttribute(D)};
g.y.hasAttribute=function(D){return this.S.hasAttribute(D)};
g.y.b4=Dk(61);g.y.Qc=Dk(63);g.y.Hv=Dk(65);g.y.IT=Dk(67);g.y.j3=function(){return oS(this.S)};
g.y.EJ=function(D){g.mQ(this.S,D)};
g.y.LB=function(D){return g.At(this.S,D)};
g.y.fN=function(){return g.y0(document.body,this.S)};
g.y.audioTracks=function(){var D=this.S;if("audioTracks"in D)return D.audioTracks};
g.y.Bq=function(){for(var D=g.T(Object.keys(this.J)),Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.S.removeEventListener(Q,this.J[Q]);J$.prototype.Bq.call(this)};
g.y.Z0=function(D){this.S.disableRemotePlayback=D};g.Z(rQ,g.p);g.Z(M6,g.p);M6.prototype.show=function(){g.p.prototype.show.call(this);this.Lh()};
M6.prototype.hide=function(){g.p.prototype.hide.call(this);this.delay.stop();this.B.stop()};
M6.prototype.Lh=function(){var D=(0,g.T3)(),Q=cO_(this.zO);Gk(this.S,Q.bandwidth_samples);Gk(this.U,Q.network_activity_samples);Gk(this.T,Q.live_latency_samples);Gk(this.C,Q.buffer_health_samples);var m={};Q=g.T(Object.entries(Q));for(var P=Q.next();!P.done;P=Q.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;this.Z[P]!==W&&(m[P]=" "+String(W));this.Z[P]=W}this.update(m);D=(0,g.T3)()-D>25?5E3:500;this.delay.start(D)};
M6.prototype.j=function(){this.N?(this.position+=1,this.position>15&&(this.N=!1)):(--this.position,this.position<=0&&(this.N=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.B.start(2E4)};g.Z(mM4,V3);g.Z(cJ,g.v);cJ.prototype.S=function(){var D=(0,g.T3)()-this.startTime;D=D<this.duration?D/this.duration:1;this.C(NP(TeT,D));D<1&&this.delay.start()};
var TeT=new V9(0,0,.4,0,.2,1,1,1),u59=/[0-9.-]+|[^0-9.-]+/g;g.Z(DT,g.p);DT.prototype.onClick=function(){var D=this.api.app;var Q=D.V("web_log_theater_mode_visibility")?!D.iS():!D.d7;D.zO.sW("SIZE_CLICKED",Q);this.api.logClick(this.element)};
DT.prototype.Lh=function(){this.FA(this.api.CH()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.To){var D=this.api.iS();this.iS!==D&&this.lP(D)}this.api.logVisibility(this.element,this.To)};
DT.prototype.lP=function(D){var Q=this.api.V("delhi_modern_web_player_icons")?this.api.V("web_player_imax_theater_mode")?D?{K:"svg",Y:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M3 19h11v2H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19v-7h2v7Zm19.00-5a1 1 0 1 1 0 2h-4v4a1 1 0 1 1-2 0v-6h6ZM21 3a2 2 0 0 1 2 2v7h-2V5H10V3h11ZM7.00 3a1 1 0 0 1 1 1v6h-6a1 1 0 0 1 0-2h4V4a1 1 0 0 1 1-1Z"}}]}:{K:"svg",Y:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",
Y:{d:"M21 3a2 2 0 0 1 2 2v14a2 2 0 0 1-1.79 1.99L21 21H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19V5a2 2 0 0 1 2-2h18ZM3 19h18V5H3v14Zm15-8a1 1 0 0 1 1 1v5h-5a1 1 0 1 1 0-2h3v-3a1 1 0 0 1 1-1Zm-8-4a1 1 0 1 1 0 2H7v3a1 1 0 1 1-2 0V7h5Z"}}]}:D?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM16.87 6.72H16.86L16.79 6.79L13.58 10L16.79 13.20C16.88 13.30 16.99 13.37 17.11 13.43C17.23 13.48 17.37 13.51 17.50 13.51C17.63 13.51 17.76 13.48 17.89 13.43C18.01 13.38 18.12 13.31 18.21 13.21C18.31 13.12 18.38 13.01 18.43 12.89C18.48 12.76 18.51 12.63 18.51 12.50C18.51 12.37 18.48 12.23 18.43 12.11C18.37 11.99 18.30 11.88 18.20 11.79L16.41 10L18.20 8.20L18.27 8.13C18.42 7.93 18.50 7.69 18.49 7.45C18.47 7.20 18.37 6.97 18.20 6.79C18.02 6.62 17.79 6.52 17.55 6.50C17.30 6.49 17.06 6.57 16.87 6.72ZM5.79 6.79C5.60 6.98 5.50 7.23 5.50 7.5C5.50 7.76 5.60 8.01 5.79 8.20L7.58 10L5.79 11.79L5.72 11.86C5.57 12.06 5.49 12.30 5.50 12.54C5.51 12.79 5.62 13.02 5.79 13.20C5.97 13.37 6.20 13.48 6.45 13.49C6.69 13.50 6.93 13.42 7.13 13.27L7.20 13.20L10.41 10L7.20 6.79C7.01 6.60 6.76 6.50 6.5 6.50C6.23 6.50 5.98 6.60 5.79 6.79ZM3 19V17H21V19H3Z",
fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM7.87 6.72L7.79 6.79L4.58 10L7.79 13.20C7.88 13.30 7.99 13.37 8.11 13.43C8.23 13.48 8.37 13.51 8.50 13.51C8.63 13.51 8.76 13.48 8.89 13.43C9.01 13.38 9.12 13.31 9.21 13.21C9.31 13.12 9.38 13.01 9.43 12.89C9.48 12.76 9.51 12.63 9.51 12.50C9.51 12.37 9.48 12.23 9.43 12.11C9.37 11.99 9.30 11.88 9.20 11.79L7.41 10L9.20 8.20L9.27 8.13C9.42 7.93 9.50 7.69 9.48 7.45C9.47 7.20 9.36 6.97 9.19 6.80C9.02 6.63 8.79 6.52 8.54 6.51C8.30 6.49 8.06 6.57 7.87 6.72ZM14.79 6.79C14.60 6.98 14.50 7.23 14.50 7.5C14.50 7.76 14.60 8.01 14.79 8.20L16.58 10L14.79 11.79L14.72 11.86C14.57 12.06 14.49 12.30 14.50 12.54C14.51 12.79 14.62 13.02 14.79 13.20C14.97 13.37 15.20 13.48 15.45 13.49C15.69 13.50 15.93 13.42 16.13 13.27L16.20 13.20L19.41 10L16.20 6.79C16.01 6.60 15.76 6.50 15.5 6.50C15.23 6.50 14.98 6.60 14.79 6.79ZM3 19V17H21V19H3Z",
fill:"white"}}]}:D?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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.iS==null||this.api.V("delhi_modern_web_player_icons")?this.updateValue("icon",Q):La6(this.transition,
this.element,Q);D=(this.iS=D)?"Default view":"Theater mode";this.api.V("player_tooltip_data_title_killswitch")?this.update({title:g.py(this.api,D,"t"),"data-title-no-tooltip":D}):this.update({"tooltip-title":g.py(this.api,D,"t"),"data-title-no-tooltip":D});this.api.QP()};g.Z(dM9,V3);g.Z(qZ9,V3);g.y=qZ9.prototype;g.y.onVideoDataChange=function(D){this.sY();this.videoId=D.videoId;this.T=this.S=void 0;this.timelyActions=zyk(D);CUP(this);mn(this);this.GY()};
g.y.wl=function(D){var Q=D.oldState,m=D.state,P=m.seekSource;!g.X(Q,16)&&g.X(m,16)?this.yY(P!=null?P:void 0):g.X(Q,16)&&!g.X(m,16)&&this.xg();D=D.state;D=!D.isCued()&&!g.X(D,1024);this.C.FA(D)};
g.y.GY=function(){var D=this.sN();D&&this.api.GY(D)};
g.y.sY=function(){this.api.aI("timelyAction",1);if(this.S!==void 0)this.onCueRangeExit(this.S)};
g.y.sN=function(){if(this.timelyActions){for(var D=[],Q=g.T(this.timelyActions),m=Q.next();!m.done;m=Q.next())m=m.value,m=m.startTimeMilliseconds!=null&&m.endTimeMilliseconds!=null&&m.cueRangeId!=null?new g.XB(Number(m.startTimeMilliseconds),Number(m.endTimeMilliseconds),{id:m.cueRangeId,namespace:"timelyAction"}):void 0,m&&D.push(m);return D}};
g.y.onCueRangeEnter=function(D){var Q=Qp(this,D);Q&&this.B[D]!==void 0&&(Q.maxShowCount===void 0||(Q==null?void 0:Q.maxShowCount)>this.B[D])&&(this.S=D,this.NH())};
g.y.onCueRangeExit=function(D){var Q=oI6(this,D);Q&&this.S===D&&this.api.sW("innertubeCommand",Q);mn(this);this.S=void 0};
g.y.yY=function(D){this.T=D};
g.y.xg=function(){this.NH();this.T=void 0};
g.y.NH=function(){if(this.S!==void 0){var D=(D=Qp(this,this.S))&&D.onCueRangeEnter?Hi(D.onCueRangeEnter):void 0;var Q=Qp(this,this.S);a:if(Q&&Q.additionalTrigger){var m=g.T(Q.additionalTrigger);for(var P=m.next();!P.done;P=m.next())if(P=P.value,P.type){var W=void 0,L=void 0;if((W=this.QF[P.type])==null?0:W((L=P.args)!=null?L:{})){m=!0;break a}}m=!1}else m=!0;D&&m&&(this.api.sW("innertubeCommand",D),fgh(this,Q),this.B[this.S]!==void 0&&this.B[this.S]++,this.j=!0)}};
g.y.Bq=function(){this.timelyActions=this.T=this.S=this.videoId=void 0;this.B={};this.sY();mn(this);V3.prototype.Bq.call(this)};g.Z(yH7,V3);g.Z(PC,gg);PC.prototype.B=function(D){this.T(D?2:1);this.D.publish("audiopreferencechange")};
PC.prototype.US=function(){var D=this.D.getPresentingPlayerType();D===2||D===3?(this.S=!1,this.Cj.Vi(this)):this.D.V("html5_enable_new_audio_settings_menu")?(D=this.getVoiceBoostState(),D!==1?(D===0?(Bj(this,this.C()===2),this.setEnabled(!0)):(Bj(this,!1),this.setEnabled(!1)),this.S||(this.Cj.CM(this),this.S=!0)):this.S&&(this.Cj.Vi(this),this.S=!1)):this.S||(D=this.hasVoiceBoostAudioTrack(),this.setEnabled(D),D=this.C()===2&&D,Bj(this,D),this.Cj.CM(this),this.S=!0)};
PC.prototype.Bq=function(){this.Cj.Vi(this);gg.prototype.Bq.call(this)};g.Z(Far,V3);g.y=Far.prototype;g.y.getVoiceBoostUserPreference=function(){return this.S};
g.y.setVoiceBoostUserPreference=function(D){this.api.dc("vb_set",{pref:D});g.wb("yt-player-voice-boost",D);D!==this.S&&(this.S=D,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.XQ())};
g.y.hasVoiceBoostAudioTrack=function(){var D,Q,m=(D=this.api.getVideoData())==null?void 0:(Q=D.T)==null?void 0:Q.S;return m?v9(m,function(P){var W;return((W=P.audio)==null?void 0:W.C)===!0}):!1};
g.y.getVoiceBoostState=function(){return this.api.ix(3)};
g.y.updateEnvironmentData=function(){this.api.G().Km=this.S};var lg7=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.Z(sM,V3);sM.prototype.Bq=function(){this.U&&(g.qv(this.U),this.U=void 0);V3.prototype.Bq.call(this)};
sM.prototype.Mu=function(){(this.C?!this.S:this.T)&&uV(this)};
sM.prototype.a4=function(D,Q,m){var P=this;if(hy4(D)){var W=m||"";if(this.S)Q=dH(this,W),nI$(D,Q);else{var L=new g.zz;Q.push(L.promise);this.J.promise.then(function(){var u=dH(P,W);nI$(D,u);L.resolve()})}}};
sM.prototype.ew=function(D){var Q=this;if(this.C||this.T)D.G1=dH(this,D.videoId),this.S||(this.B=new kS,this.J.promise.then(function(){Q.QX.Dw("pot_if");D.G1=dH(Q,D.videoId)}))};g.Z(g.zI,g.p);g.zI.prototype.select=function(){this.api.yW(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.uw||void 0)&&this.api.logClick(this.element)};
g.zI.prototype.onClick=function(D){if(g.W8(this.api.G())&&this.api.V("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Q=this.suggestion.rT(),m={};g.MO(this.api,m);Q=g.oz(Q,m);g.k_(Q,this.api,D)}else g.wg(D,this.api,this.C,this.suggestion.sessionData||void 0)&&this.select()};
g.zI.prototype.onKeyPress=function(D){switch(D.keyCode){case 13:case 32:D.defaultPrevented||(this.select(),D.preventDefault())}};
g.zI.prototype.onVideoDataChange=function(){var D=this.api.getVideoData(),Q=this.api.G();this.C=D.RI?!1:Q.B};g.Z(KaP,g.p);g.y=KaP.prototype;g.y.Bq=function(){this.hide();g.EI(this.B);g.Qj(this.stills);this.stills.length=0;this.C&&this.C.removeEventListener("click",this.vu);this.T&&this.T.removeEventListener("click",this.M1);this.S&&this.S.removeEventListener("click",this.M1);g.p.prototype.Bq.call(this)};
g.y.M1=function(D){this.Z&&this.Z(D)};
g.y.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var D,Q,m,P,W;var L=(((D=this.videoData)==null?0:(Q=D.suggestions)==null?0:Q.length)?(m=this.videoData)==null?void 0:m.suggestions:((P=this.videoData)==null?0:g.B1(P))?[(W=this.videoData)==null?void 0:g.B1(W)]:[]).slice(0,18);if((D=this.j)&&this.U&&this.N)if(g.fa(D),L.length)for(this.stills.length>L.length&&g.Qj(this.stills.splice(L.length)),this.stills.length=L.length,Q=0;Q<L.length;Q++){if(m=L[Q])P=this.stills[Q],P||(P=
new g.zI(this.player),this.stills[Q]=P),g.UM_(P,m),D&&D.appendChild(P.element)}else g.Qj(this.stills),this.stills.length=0};
g.y.vu=function(D){this.M1(D);this.player.logClick(this.C);this.player.playVideo()};
g.y.wl=function(){H_$(this)};
g.y.pM=function(D,Q){Q=Q===void 0?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":Q;if(this.currentState!==D){this.currentState=D;this.element.scrollTop=0;this.FA(this.currentState!==0);if(D===2){var m=g.Tq(),P=this.N.visualElement;m&&P&&mr(m,P,Q);this.onVideoDataChange()}D!==0?(this.element.setAttribute("tabindex","0"),Q="",m=g.py(this.player,"More videos","v"),D===2?Q="Hide videos":D===1&&(Q="More videos"),this.S&&(this.S.title="More videos",this.S.dataset.titleNoTooltip="More videos",this.S.textContent=
"More videos",this.S.ariaLabel="Hide videos"),this.update({title:m,"data-title-no-tooltip":Q,"aria-label":Q}),this.player.QP()):(this.element.setAttribute("tabindex","-1"),this.update({title:"","data-title-no-tooltip":"","aria-label":""}));H_$(this);this.player.QP()}};g.Z(CW,V3);CW.prototype.Kh=function(){this.T&&this.C!==0&&$M7(this,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")};
CW.prototype.setFullscreenQuickActions=function(D){this.j&&this.j.remove();D?(g.mQ(D,"ytp-fullscreen-quick-actions"),this.V("web_player_overlay_positioned_layout")?(D.setAttribute("data-overlay-order","12"),this.api.s3(D,4)):(g.mQ(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.Q3(this.api,D,4))):g.Wo(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.j=D;bV(this)};
CW.prototype.setPlayerOverlayVideoDetailsRenderer=function(D){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(D){g.mQ(D,"ytp-fullscreen-metadata");g.mQ(this.api.getRootNode(),"ytp-hide-fullscreen-title");D.setAttribute("data-overlay-order","1");var Q=this.api.V("delhi_modern_web_player_fullscreen_metadata_bottom"),m=Q?3:1;Q=Q?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.mQ(this.api.getRootNode(),Q);this.V("web_player_overlay_positioned_layout")?
this.api.s3(D,m):g.Q3(this.api,D,4)}else g.Wo(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.Wo(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.Wo(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=D;bV(this)};g.Z(YZk,V3);g.Z(NH,g.v);NH.prototype.S=function(){for(var D=g.T(g.e$.apply(0,arguments)),Q=D.next();!Q.done;Q=D.next())(Q=Q.value)&&this.features.push(Q)};
NH.prototype.Bq=function(){for(var D=this.features.length-1;D>=0;D--)this.features[D].dispose();this.features.length=0;g.v.prototype.Bq.call(this)};agP.prototype.reset=function(){this.S=this.C=NaN};g.y=AHj.prototype;g.y.reset=function(){g6(this.timerName)};
g.y.tick=function(D,Q){kY(D,Q,this.timerName)};
g.y.Dw=function(D){return RH(D,void 0,this.timerName)};
g.y.XN=function(D){g.i1(D,void 0,this.timerName)};
g.y.infoGel=function(D){g.Jd(D,this.timerName)};g.Z(X27,g.iR);g.y=X27.prototype;g.y.wF=function(D){return this.loop||!!D||this.index+1<this.length};
g.y.j9=function(D){return this.loop||!!D||this.index-1>=0};
g.y.setShuffle=function(D){this.shuffle=D;D=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Q=0;Q<this.items.length;Q++)this.order.push(Q);this.index=D;this.C++;if(this.shuffle){D=this.order[this.index];for(Q=1;Q<this.order.length;Q++){var m=Math.floor(Math.random()*(Q+1)),P=this.order[Q];this.order[Q]=this.order[m];this.order[m]=P}for(Q=0;Q<this.order.length;Q++)this.order[Q]===D&&(this.index=Q);this.C++}this.publish("shuffle")};
g.y.vB=function(D){D=D||"hqdefault.jpg";var Q=this.Z[D];if(Q||this.nh.Iy||D==="sddefault.jpg"||D==="hq720.jpg"||D==="maxresdefault.jpg")return Q;if(this.T.length)return FG(this.nh,this.T[0],D)};
g.y.findIndex=function(D){if(D&&(D=D.videoId,!this.items[this.index]||this.items[this.index].video_id!==D))for(var Q=0;Q<this.items.length;Q++)if(this.items[Q].video_id===D){this.index=Q;break}};
g.y.onReady=function(D){this.S=D;this.loaded&&g.tl(this.S,0)};
g.y.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.y.rT=function(){return this.nh.getVideoUrl(g.Fe(this).videoId,this.getPlaylistId())};
g.y.Bq=function(){this.S=null;g.Qj(this.items);g.iR.prototype.Bq.call(this)};var TI=new Map;g.Z(g.nW,g.iR);g.y=g.nW.prototype;g.y.create=function(){};
g.y.load=function(){this.loaded=!0};
g.y.unload=function(){this.loaded=!1};
g.y.hf=function(){};
g.y.po=function(){return!0};
g.y.Bq=function(){this.loaded&&this.unload();g.iR.prototype.Bq.call(this)};
g.y.yX=function(){return{}};
g.y.getOptions=function(){return[]};g.Z(g.gH,g.v);g.y=g.gH.prototype;g.y.Gv=Dk(70);g.y.R1=function(){};
g.y.Dm=function(){};
g.y.rh=function(){return""};
g.y.o5=Dk(71);g.y.a4=function(D,Q){var m=this;if(this.zO.G().V("html5_dispatch_tracklist_loaded_event")){this.T&&(this.T.reject(),this.T=null);var P=[];this.zO.publish("trackListLoaded",this.C,P,Q);P.length?(Q=new g.zz,Q.promise.then(D.a4,function(){}),this.T=Q,Promise.all(P).then(Q.resolve,Q.reject).finally(function(){m.T=null})):D.a4()}else D.a4()};
g.y.Bq=function(){this.T&&(this.T.reject(),this.T=null);this.Dm();g.v.prototype.Bq.call(this)};g.Z(g.BC,g.gH);g.BC.prototype.Gv=Dk(69);g.BC.prototype.R1=function(D){if(this.audioTrack)for(var Q=g.T(this.audioTrack.captionTracks),m=Q.next();!m.done;m=Q.next())g.EM(this.C,m.value);this.a4(D,this.videoData.videoId)};
g.BC.prototype.rh=function(D,Q){var m=D.AD(),P={fmt:Q};if(Q==="srv3"||Q==="3"||Q==="json3")g.e8()?Object.assign(P,{xorb:2,xobt:1,xovt:1}):Object.assign(P,{xorb:2,xobt:3,xovt:3});D.translationLanguage&&(P.tlang=g.xv(D));this.B&&(P.xosf="1");Object.assign(P,this.zO.G().S);return DG(m,P)};
g.BC.prototype.Dm=function(){this.S&&this.S.abort()};g.htM=new Map;g.Z(g.k0,g.gH);g.k0.prototype.Gv=Dk(68);
g.k0.prototype.R1=function(D){var Q=this,m=this.B,P={type:"list",tlangs:1,v:this.videoId,vssids:1};this.mC&&(P.asrs=1);m=DG(m,P);this.Dm();this.S=g.ZG(m,{format:"RAW",onSuccess:function(W){Q.S=null;if((W=W.responseXML)&&W.firstChild){for(var L=W.getElementsByTagName("track"),u=0;u<L.length;u++){var t=L[u],z=t.getAttribute("lang_code"),b=t.getAttribute("lang_translated"),q=t.getAttribute("name"),C=t.getAttribute("kind"),f=t.getAttribute("id"),V=t.getAttribute("lang_default")==="true",N=t.getAttribute("cantran")===
"true";t=t.getAttribute("vss_id");g.EM(Q.C,new g.a8({languageCode:z,languageName:b,name:q,kind:C,id:f,is_servable:!0,is_translateable:N,vss_id:t,is_default:V}))}W=W.getElementsByTagName("target");L=W.length;for(u=0;u<L;u++)z={languageCode:W[u].getAttribute("lang_code"),languageName:W[u].getAttribute("lang_translated"),languageOriginal:W[u].getAttribute("lang_original"),id:W[u].getAttribute("id"),isDefault:W[u].getAttribute("lang_default")==="true"},Q.N[z.languageCode]=z.languageName,Q.J.push(z)}Q.a4(D,
Q.videoId)},
withCredentials:!0})};
g.k0.prototype.rh=function(D,Q){var m=this.B;Q={v:this.videoId,type:"track",lang:D.languageCode,name:D.getName(),kind:D.kind,fmt:Q};var P=this.zO.G();P.V("captions_url_add_ei")&&(Q.ei=this.eventId);D.translationLanguage&&(Q.tlang=g.xv(D));Object.assign(Q,P.S);return m=DG(m,Q)};
g.k0.prototype.Dm=function(){this.S&&this.S.abort()};g.Z(L74,g.v);g.y=L74.prototype;g.y.createSubtitlesModuleIfNeeded=function(){qL_(this)&&lV(this,"captions");return!!g.JD(this)};
g.y.Cg=function(){return this.D.getVideoData().Cg()};
g.y.oa=function(){return this.D.getVideoData().oa()};
g.y.Wf=function(){var D=this.di.get("heartbeat");lV(this,"heartbeat",!1,!0,this.Wf);!D&&this.di.has("heartbeat")&&this.D.publish("offlineslatestatechange")};
g.y.b$=function(){lV(this,"annotations_module",!0,void 0,this.b$);var D=this.di.get("annotations_module");if(D)for(var Q in this.C)if(this.C.hasOwnProperty(Q)){var m=Q;D.subscribe(m,this.C[m])}};
g.y.fW=function(){if(!this.di.get("ad"))try{do7(this)?lV(this,"ad",!1,!0,this.fW):this.D.wi("ad")}catch(D){this.D.wi("ad"),g.JG(D)}};
g.y.Dr=function(){return this.S};
g.y.wm=function(){var D={},Q=g.JD(this);Q&&Object.assign(D,Q.wm());return D};
g.y.Ue=function(D,Q){Object.assign(this.S,D||null);Object.assign(this.Qw,Q||null)};
g.y.onVideoDataChange=function(){var D=this.D.getVideoData();this.D.V("enable_wn_infocards")&&g.Ly(D)&&!g.KW(this)&&this.b$()};
g.y.Bq=function(){g.v.prototype.Bq.call(this);IY(this,1,!0);for(var D=g.T(Object.entries(BU7)),Q=D.next();!Q.done;Q=D.next()){var m=g.T(Q.value);Q=m.next().value;m=m.next().value;this.T.has(m)&&TI.delete(Q)}this.T.clear()};
var EK={},BU7=(EK.ad="ad.js",EK.annotations_module="annotations_module.js",EK.asmjs="asmjs.js",EK.creatorendscreen="annotations_module.js",EK.embed="embed.js",EK.endscreen="endscreen.js",EK.heartbeat="heartbeat.js",EK.kids="kids.js",EK.remote="remote.js",EK.miniplayer="miniplayer.js",EK.offline="offline.js",EK.captions="captions.js",EK.unplugged="unplugged.js",EK.ux="ux.js",EK.webgl="webgl.js",EK.ypc="ypc.js",EK.ypc_clickwrap="ypc_clickwrap.js",EK.yto="yto.js",EK),TU$="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.Z(ku6,g.iR);g.y=ku6.prototype;g.y.Xz=function(D){D=new g.Yq(D.pageX,D.pageY);if(!aG(D,this.B)){var Q=2;this.N&&(Q|=8);this.B=D;$0(this,Q,!0)}};
g.y.xJO=function(){$0(this,2048,!0)};
g.y.xvD=function(){this.N&&$0(this,8,!0);$0(this,2,!1)};
g.y.uT=function(D){var Q=new g.Yq(D.pageX,D.pageY);aG(Q,this.B)||(this.B=Q,(D=D.target)&&this.dN(D)&&($0(this,4,!0),this.S.qY(this.T),this.T=this.S.W(this.target,"mouseover",this.ZS),this.U=this.S.W(this.target,"mouseout",this.ZS)))};
g.y.ZS=function(D){D=D.relatedTarget;D&&this.dN(D)||(this.B=new g.Yq(NaN,NaN),Jx7(this))};
g.y.WA=function(){$0(this,1,!0)};
g.y.Ww=function(D){D=D.target;D instanceof Element&&!(D.tabIndex>0)||$0(this,1,!0)};
g.y.GL=function(){this.N=!0;this.S.qY(this.J);this.J=this.S.W(document,"mouseup",this.MZ)};
g.y.MZ=function(){this.N=!1;$0(this,8,!1);this.S.qY(this.J);this.J=this.S.W(this.target,"mousedown",this.GL)};
g.y.XM=function(D){if(D=(D=D.changedTouches)&&D[0])this.QF=D.identifier,this.S.qY(this.Z),this.Z=this.S.W(this.target,"touchend",this.EK,void 0,!0),$0(this,1024,!0)};
g.y.EK=function(D){if(D=D.changedTouches)for(var Q=0;Q<D.length;Q++){var m=D[Q];if(m.identifier===this.QF){var P=m;break}}P&&(this.S.qY(this.Z),this.Z=this.S.W(this.target,"touchstart",this.XM,void 0,!0),$0(this,1024,!1))};
g.y.YI=function(){$0(this,2,!0)};
g.y.resize=function(){g.Ta&&Jx7(this)};
g.y.toString=function(){return g.iR.prototype.toString.call(this)};g.Z(g.OM,g.p);g.y=g.OM.prototype;g.y.dJD=function(){this.Lh()};
g.y.Lh=function(){var D=this.api.getVideoData(),Q=this.api.G(),m=!!this.api.isEmbedsShortsMode();g.sh(this.element,"ytp-shorts-mode",m);m?Q=[{K:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},X:[{K:"path",Y:{"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"}},{K:"path",Y:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:D.RI?Q=[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},X:[{K:"path",L:"ytp-dni-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:D.RI&&D.Wy?Q=[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{K:"path",L:"ytp-dni-large-play-button-bg",
Y:{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"}},{K:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:Q.N?(g.sh(this.element,"ytp-touch-device",Q.C),Q=[Q.N?{K:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},X:[{K:"path",L:"ytp-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{K:"path",L:"ytp-large-play-button-bg",Y:{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"}},{K:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):Q=[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{K:"path",L:"ytp-large-play-button-bg",Y:{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"}},{K:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",Q);D.RI&&D.Wy&&this.Dx("ytp-dni-large-play-button-bg").setAttribute("fill",D.Wy?D.Wy:"#1f1f1f")};
g.y.show=function(){g.p.prototype.show.call(this);this.api.G().V("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.y.cz=function(){this.api.getVideoData().mutedAutoplay||(this.api.r5(),this.api.playVideo())};
g.y.hmc=function(D){this.api.getVideoData().mutedAutoplay||D.preventDefault()};g.Z(g.Y0,g.p);g.y=g.Y0.prototype;g.y.show=function(){var D=this;this.To||(this.C.W(this.api,"videodatachange",function(){g.xG(D.S)}),this.C.W(this.api,"videoplayerreset",function(){g.xG(D.S)}));
g.p.prototype.show.call(this)};
g.y.hide=function(){this.C&&g.EI(this.C);g.p.prototype.hide.call(this)};
g.y.MB=function(){g.xG(this.S)};
g.y.onStateChange=function(){g.xG(this.S)};
g.y.W$F=function(){g.xG(this.S)};
g.y.onReset=function(){this.fade.stop();this.hide();g.xG(this.S)};
g.y.Lh=function(){var D=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(D.isPlaying()||D.isPaused()))var Q=!0;else(Q=this.api.HY().di.get("ypc"))&&Q.nx?Q=!0:(Q=this.api.G(),Q=g.X(D,2)&&g.Xh(this.api)&&Q.Kd?!0:!1);Q?(Q=!0,this.T.hide()):(this.T.show(),Q=D.isCued()&&this.api.getPresentingPlayerType()!==2||g.X(D,2)&&!g.Xh(this.api)&&!this.api.KB()||g.X(D,1024)?!0:!1);var m=this.api.getVideoData();Q&&!m.b_?(this.fade.show(),this.KDx(this.api.getPlaylist(),m)):(this.fade.hide(),
g.X(D,1)||this.fade.stop())};
g.y.KDx=function(){for(var D=this.api.G(),Q,m=g.T(g.e$.apply(0,arguments)),P=m.next();!P.done;P=m.next())if(P=P.value,!(!P||P instanceof g.ZY&&!P.videoId)){Q=this.api.fh().getPlayerSize();var W=g.ne(),L=Q.width*W;W*=Q.height;if(L>1280||W>720)if(Q=P.vB("maxresdefault.jpg"))break;if(L>640||W>480)if(Q=P.vB("maxresdefault.jpg"))break;if(L>320||W>180)if(Q=P.vB("sddefault.jpg")||P.vB("hqdefault.jpg")||P.vB("mqdefault.jpg"))break;if(Q=P.vB("default.jpg"))break}g.wv(D)&&(D=new Image,D.addEventListener("load",
function(){uMh()}),D.src=Q?Q:"",this.api.Dr().tick("ftr"));
this.B.style.backgroundImage=Q?"url("+Q+")":""};g.Z(g.aY,g.p);g.aY.prototype.resize=function(){};
g.aY.prototype.C=function(D){var Q=this;this.T=!1;Rj$(this);var m=D.uJ,P=this.api.G();m!=="GENERIC_WITHOUT_LINK"||P.N?m==="TOO_MANY_REQUESTS"?(P=this.api.getVideoData(),this.Sk(x0(this,"TOO_MANY_REQUESTS_WITH_LINK",P.rT(),void 0,void 0,void 0,!1))):m!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||P.N?this.api.G().V("html5_enable_bandaid_error_screen")&&m==="HTML5_SPS_UMP_STATUS_REJECTED"&&!P.N?(P=P.hostLanguage,D="//support.google.com/youtube?p=videoError",P&&(D=g.oz(D,{hl:P})),this.Sk(x0(this,"HTML5_SPS_UMP_STATUS_REJECTED",
D))):this.api.G().V("enable_adb_handling_in_sabr")&&m==="BROWSER_OR_EXTENSION_ERROR"&&!P.N?(P=P.hostLanguage,D="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",P&&(D=g.oz(D,{hl:P})),this.Sk(x0(this,"BROWSER_OR_EXTENSION_ERROR",D))):this.Sk(g.AD(D.errorMessage)):this.Sk(x0(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(D=P.hostLanguage,m="//support.google.com/youtube/?p=player_error1",D&&(m=g.oz(m,
{hl:D})),this.Sk(x0(this,"GENERIC_WITH_LINK_AND_CPN",m,!0)),P.Lj&&!P.B&&Ivw(this,function(L){if(g.wg(L,Q.api,!Ts(Q.api.G()))){L={as3:!1,html5:!0,player:!0,cpn:Q.api.getVideoData().clientPlaybackNonce};var u=Q.api;u.Q0("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});u.isFullscreen()&&u.toggleFullscreen()}}));
if(this.T){var W=this.Dx("ytp-error-link");W&&(this.api.createClientVe(W,this,216104),this.api.logVisibility(W,!0),Ivw(this,function(){Q.api.logClick(W)}))}};
var lv_=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.Z(Uou,g.p);Uou.prototype.s3=function(D,Q,m){m=m===void 0?!1:m;switch(Q){case 1:Xe(this,D,this.T,m);break;case 2:Xe(this,D,this.B,m);break;case 3:Xe(this,D,this.S,m);break;case 4:Xe(this,D,this.C,m)}};g.Z(Hw7,g.p);g.y=Hw7.prototype;g.y.onClick=function(D){this.innertubeCommand?(this.D.sW("innertubeCommand",this.innertubeCommand),D.preventDefault()):g.wg(D,this.D,!0);this.D.logClick(this.element)};
g.y.onVideoDataChange=function(D,Q){jf_(this,Q);this.fn&&$o9(this,this.fn)};
g.y.f5=function(D){var Q=this.D.getVideoData();this.videoId!==Q.videoId&&jf_(this,Q);this.S&&$o9(this,D.state);this.fn=D.state};
g.y.YJ=function(){this.fade.show();this.D.publish("paidcontentoverlayvisibilitychange",!0);this.D.logVisibility(this.element,!0)};
g.y.eJ=function(){this.fade.hide();this.D.publish("paidcontentoverlayvisibilitychange",!1);this.D.logVisibility(this.element,!1)};g.Z(SM,g.p);SM.prototype.hide=function(){this.S.stop();this.message.style.display="none";g.p.prototype.hide.call(this)};
SM.prototype.onStateChange=function(D){this.pM(D.state)};
SM.prototype.pM=function(D){if(g.X(D,128)||this.api.b9())var Q=!1;else{var m;Q=this.api.V("web_watch_enable_multiview_manager")&&((m=this.api.getVideoData())==null?0:ov(m))?!1:g.X(D,16)||g.X(D,1)?!0:!1}Q?this.S.start():this.hide()};
SM.prototype.C=function(){this.message.style.display="block"};g.Z(rH,g.ui);rH.prototype.onMutedAutoplayChange=function(D){this.T&&(D?(ej_(this),this.YJ()):(this.S&&this.logClick(),this.eJ()))};
rH.prototype.wl=function(D){this.api.isMutedByMutedAutoplay()&&g.oD(D,2)&&this.eJ()};
rH.prototype.onClick=function(){this.api.unMute();this.logClick()};
rH.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.Z(g.GI,g.gO);g.y=g.GI.prototype;g.y.init=function(){var D=this.api,Q=D.getPlayerStateObject();this.mI=D.getPlayerSize();this.Bn(Q);this.EM();this.MB();this.api.publish("basechromeinitialized",this);this.RR()&&this.api.publish("standardControlsInitialized")};
g.y.onVideoDataChange=function(D,Q){var m=this.K8!==Q.videoId;if(m||D==="newdata")D=this.api,D.isFullscreen()||(this.mI=D.getPlayerSize());m&&(this.K8=Q.videoId,m=this.fO,m.t0=3E3,$0(m,512,!0),this.EM());this.api.V("web_render_jump_buttons")&&Q.showSeekingControls&&(this.KS=572)};
g.y.MJv=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.y.Zv=function(){var D=this.api.nF()&&this.api.x0(),Q=this.api.YC();return this.MP||D||this.LN||Q};
g.y.j$=function(){var D=!this.Zv();g.sh(this.api.getRootNode(),"ytp-menu-shown",!D)};
g.y.dN=function(D){try{if(!g.y0(this.api.getRootNode(),D))return!1}catch(Q){return!1}for(;D&&!$Q6(D);)D=D===this.api.getRootNode()?null:D.parentElement||null;return!!D};
g.y.M_=function(D){var Q=this.api.getRootNode();g.sh(Q,"ytp-autohide",D);g.sh(Q,"ytp-autohide-active",!0);this.E2.start(D?250:100);D&&(this.pL=!1,g.Wo(Q,"ytp-touch-mode"));this.ER=!D;this.api.nL(!D);this.api.V("delhi_modern_web_player")&&this.api.publish("autohideupdate",D)};
g.y.Xm=function(){var D=this.api.getRootNode();g.sh(D,"ytp-autohide-active",!1)};
g.y.SCD=function(){this.cD=!0};
g.y.jtv=function(D){if(this.api.G().V("player_doubletap_to_seek")||this.api.G().U)this.cD=!1,this.A7&&this.qY(this.A7),this.iA===0&&cC(this,D)?(this.cJ(),this.xD.start(),this.A7=this.W(this.api.fh(),"touchmove",this.SCD,void 0,!0)):this.xD.stop();avh(this)&&cC(this,D)&&!this.api.G().U&&Ow7(this);var Q=this.aO.UZ();if(!g.W8(this.api.G())&&DW&&Ax$(this,D))Q&&D.preventDefault();else if(this.pL=!0,g.mQ(this.api.getRootNode(),"ytp-touch-mode"),this.fO.YI(),this.api.G().V("player_doubletap_to_seek")||this.api.G().U)if(Q=
this.api.getPlayerStateObject(),!(!this.api.I_()||g.X(Q,2)&&g.Xh(this.api)||g.X(Q,64))){Q=Date.now()-this.CC;this.iA+=1;if(Q<=350){this.GQ=!0;Q=this.api.getPlayerSize().width/3;var m=this.api.getRootNode().getBoundingClientRect(),P=D.targetTouches[0].clientX-m.left;m=D.targetTouches[0].clientY-m.top;var W=(this.iA-1)*10;P>0&&P<Q?(this.Qp(-1,P,m,W),this.api.seekBy(-10*this.api.getPlaybackRate())):P>Q*2&&P<Q*3&&(this.Qp(1,P,m,W),this.api.seekBy(10*this.api.getPlaybackRate()));D.preventDefault()}else vC&&
this.api.G().U&&cC(this,D)&&D.preventDefault();this.CC=Date.now();this.rV.start()}};
g.y.yxT=function(){this.ww.If=!1;this.api.publish("rootnodemousedown",this.ww)};
g.y.EJz=function(D){if(this.api.G().V("web_fix_fine_scrubbing_false_play")){if(Ax$(this,D)||this.ww.If)return}else if(this.ww.If||Ax$(this,D))return;avh(this)||!cC(this,D)||this.xD.isActive()||(Ow7(this),D.preventDefault());this.GQ&&(this.GQ=!1)};
g.y.cJ=function(){};
g.y.T4=function(){};
g.y.Qp=function(){};
g.y.renderChapterSeekingAnimation=function(){};
g.y.LG=function(){var D=this.api.getPlayerStateObject();g.X(D,2)&&g.Xh(this.api)||(D.isOrWillBePlaying()?this.api.pauseVideo():(this.uU&&(D.isCued()||g.X(D,1024))&&!this.api.G().V("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.uU.T.element),this.api.r5(),this.api.playVideo(),this.uU&&document.activeElement===this.uU.T.element&&((D=this.RR())==null?D=0:D.playButton?(D.playButton.focus(),D=!0):D=!1,D||this.api.getRootNode().focus())))};
g.y.feO=function(D){var Q=this,m=this.api.getPresentingPlayerType();if(!YLm(this,F7(D)))if(D=this.api.G(),(this.api.G().V("player_doubletap_to_seek")||this.api.G().U)&&this.GQ)this.GQ=!1;else if(D.jD&&m!==3)try{this.api.toggleFullscreen().catch(function(P){Q.ZC(P)}),this.api.V("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.fh().element)}catch(P){this.ZC(P)}};
g.y.ZC=function(D){String(D).includes("fullscreen error")?g.l4(D):g.JG(D)};
g.y.Fuz=function(D){pH7(this,.3,D.scale);D.preventDefault()};
g.y.oJD=function(D){pH7(this,.1,D.scale)};
g.y.MB=function(){var D=this.api.fh().getPlayerSize(),Q=this.api.getRootNode(),m=D.width>=650,P=D.width<528;this.fO.resize();if(this.api.V("web_player_use_screen_width_for_big_mode")){var W,L=D.width>=((W=g.WF(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?W:2E3);g.sh(Q,"ytp-big-mode",L)}g.sh(Q,"ytp-fullscreen",this.api.isFullscreen());g.sh(Q,"ytp-large-width-mode",m);this.api.V("delhi_modern_web_player")?g.sh(Q,"ytp-xsmall-width-mode",P):g.sh(Q,"ytp-small-mode",this.Px());
g.sh(Q,"ytp-tiny-mode",this.G6());g.sh(Q,"ytp-big-mode",this.UN());this.lQ&&this.lQ.resize(D)};
g.y.wl=function(D){this.Bn(D.state);this.EM()};
g.y.zs=Dk(3);g.y.Ea=function(){var D=!!this.K8&&!this.api.J8()&&!this.ll,Q=this.api.getPresentingPlayerType()===2,m=this.api.G();if(Q)return m=RY(this.api.HY()),D&&(m&&m.player?D=(D=m.player.getVideoData(2))?D.isListed&&!g.f8(m.player.G()):!1:(bu("showInfoBarDuringAd: this is null"),D=!1)),D;Q=m.V("web_player_imax_theater_mode")&&this.api.iS();return D&&(m.Tq||Q||this.api.isFullscreen()||m.M5)};
g.y.EM=function(){var D=this.Ea();this.aH!==D&&(this.aH=D,g.sh(this.api.getRootNode(),"ytp-hide-info-bar",!D))};
g.y.Bn=function(D){var Q=D.isCued()||this.api.xS()&&this.api.getPresentingPlayerType()!==3;Q!==this.isCued&&(this.isCued=Q,this.WD&&this.qY(this.WD),this.WD=this.W(this.api.fh(),"touchstart",this.jtv,void 0,Q));var m=this.fO,P=D.isPlaying()&&!g.X(D,32)||this.api.jj();$0(m,128,!P);m=this.fO;P=this.api.getPresentingPlayerType()===3;$0(m,256,P);m=this.api.getRootNode();g.X(D,2)?P=[XT.ENDED]:(P=[],g.X(D,8)?P.push(XT.PLAYING):g.X(D,4)&&P.push(XT.PAUSED),g.X(D,1)&&!g.X(D,32)&&P.push(XT.BUFFERING),g.X(D,
32)&&P.push(XT.SEEKING),g.X(D,64)&&P.push(XT.UNSTARTED));g.xk(this.jG,P)||(g.iT(m,this.jG),this.jG=P,g.Po(m,P));P=this.api.G();var W=g.X(D,2);a:{var L=this.api.G();var u=L.controlsType;switch(u){case "2":case "0":L=!1;break a}L=u==="3"&&!g.X(D,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:UQQ(RY(this.api.HY())))||this.api.YC()||g.W8(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.sh(m,"ytp-hide-controls",!L);g.sh(m,"ytp-native-controls",P.controlsType==="3"&&!Q&&!W&&!this.LN);g.X(D,
128)&&!g.W8(P)?(this.lQ||(this.lQ=new g.aY(this.api),g.O(this,this.lQ),g.Q3(this.api,this.lQ.element,4)),this.lQ.C(D.YP),this.lQ.show()):this.lQ&&(this.lQ.dispose(),this.lQ=null)};
g.y.HI=function(){return this.api.nF()&&this.api.x0()?(this.api.qc(!1,!1),!0):this.api.J8()?(g.Sh(this.api,!0),!0):!1};
g.y.onMutedAutoplayChange=function(D){this.LN=D;this.j$()};
g.y.UN=function(){return!1};
g.y.Px=function(){return!this.UN()&&(this.api.getPlayerSize().width<this.KS||this.api.getPlayerSize().height<290)};
g.y.G6=function(){return this.Px()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.y.kN=function(){return this.pL};
g.y.jc=function(){return null};
g.y.Uw=function(){return null};
g.y.eg=function(){var D=this.api.fh().getPlayerSize();return new g.ee(0,0,D.width,D.height)};
g.y.handleGlobalKeyDown=function(){return!1};
g.y.handleGlobalKeyUp=function(){return!1};
g.y.GK=function(){};
g.y.showControls=function(D){D!==void 0&&this.api.fh().nL(D)};
g.y.YI=function(){};
g.y.RR=function(){return null};g.Z(g.D8,g.p);g.D8.prototype.show=function(){g.p.prototype.show.call(this);g.xG(this.S)};
g.D8.prototype.hide=function(){this.C.stop();g.p.prototype.hide.call(this)};
g.D8.prototype.T4=function(D){var Q=this.D.V("delhi_modern_web_player_icons");D?g.X(this.D.getPlayerStateObject(),64)||(Q=Q?gi():EX(),Q8(this,Q,"Play")):(D=this.D.getVideoData(),D.isLivePlayback&&!D.allowLiveDvr?(Q=Q?I5P():l5$(),Q8(this,Q,"Stop live playback")):(Q=Q?hW7():Tbu(),Q8(this,Q,"Pause")))};g.Z(SLm,g.p);g.y=SLm.prototype;g.y.oo=function(D){D?this.S=A2(this.D,this.element,null):(this.S=this.S,this.S(),this.S=null)};
g.y.YJ=function(){this.D.G().V("player_new_info_card_format")&&g.Q9(this.D.getRootNode(),"ytp-cards-teaser-shown")&&!g.W8(this.D.G())||(this.fade.show(),g.Q$("iv-button-shown"))};
g.y.eJ=function(){g.Q$("iv-button-hidden");this.fade.hide()};
g.y.UZ=function(){return this.To&&this.fade.state!==4};
g.y.Bq=function(){this.S&&this.S();g.p.prototype.Bq.call(this)};
g.y.onHover=function(){g.Q$("iv-button-mouseover")};
g.y.onClicked=function(D){this.D.nF();var Q=g.Q9(this.D.getRootNode(),"ytp-cards-teaser-shown");g.Q$("iv-teaser-clicked",Q);var m;if((m=this.D.getVideoData())==null?0:g.s6(m)){var P;D=(P=this.D.getVideoData())==null?void 0:g.Ly(P);(D==null?0:D.onIconTapCommand)&&this.D.sW("innertubeCommand",D.onIconTapCommand)}else P=D.screenX===0&&D.screenY===0,this.D.qc(!this.D.x0(),P,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.Z(rxP,g.p);g.y=rxP.prototype;g.y.nt=function(){this.D.nF()&&this.D.x0()&&this.UZ()&&this.eJ()};
g.y.J7=function(){this.eJ();!this.D.nF()&&this.D.G().V("enable_error_corrections_infocards_icon_web")&&this.yA.eJ();g.Q$("iv-teaser-clicked",this.S!=null);if(this.onClickCommand)this.D.sW("innertubeCommand",this.onClickCommand);else{var D;((D=this.D.getVideoData())==null?0:g.s6(D))||this.D.qc(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.y.jX=function(){g.Q$("iv-teaser-mouseover");this.S&&this.S.stop()};
g.y.uZO=function(D){this.D.G().V("player_new_info_card_format")&&!g.W8(this.D.G())?this.yA.eJ():this.D.G().V("enable_error_corrections_infocards_icon_web")&&this.yA.YJ();this.S||!D||this.D.x0()||this.C&&this.C.isActive()||(this.YJ(D),g.Q$("iv-teaser-shown"))};
g.y.YJ=function(D){this.onClickCommand=D.onClickCommand;this.updateValue("text",D.teaserText);this.element.setAttribute("dir",g.bT(D.teaserText));this.fade.show();if(this.D.G().V("player_new_info_card_format")){var Q=this.Dx("ytp-cards-teaser-info-icon"),m=this.Dx("ytp-cards-teaser-channel-avatar");m&&D.u5&&g.AV(D.u5)&&(m.src=D.u5,m.style.display="block",Q.style.display="none")}this.C=new g.pJ(function(){g.mQ(this.D.getRootNode(),"ytp-cards-teaser-shown");this.D.V("player_new_info_card_format")&&
!g.W8(this.D.G())&&this.yA.eJ();this.Zh()},0,this);
this.C.start();this.yA.oo(!1);this.S=new g.pJ(this.eJ,580+D.durationMs,this);this.S.start();this.B.push(this.listen("mouseover",this.Eg,this));this.B.push(this.listen("mouseout",this.M2,this))};
g.y.Zh=function(){if(!this.D.G().V("player_new_info_card_format")&&g.W8(this.D.G())&&this.To){var D=this.yA.element.offsetLeft,Q=g.La("ytp-cards-button-icon"),m=this.D.isFullscreen()?54:36;if(Q){var P=D+Q.offsetLeft;this.element.style.marginRight=this.yA.element.offsetParent.offsetWidth-D-Q.offsetLeft-m+"px";this.element.style.marginLeft=P+"px"}}};
g.y.x_=function(){g.W8(this.D.G())&&this.D.Px()&&this.To&&this.Z.start()};
g.y.Eg=function(){this.N.stop();this.S&&this.S.isActive()&&this.U.start()};
g.y.M2=function(){this.U.stop();this.S&&!this.S.isActive()&&this.N.start()};
g.y.ijy=function(){this.S&&this.S.stop()};
g.y.lGW=function(){this.eJ()};
g.y.Fz=function(){this.eJ()};
g.y.eJ=function(){!this.S||this.T&&this.T.isActive()||(g.Q$("iv-teaser-hidden"),this.fade.hide(),g.Wo(this.D.getRootNode(),"ytp-cards-teaser-shown"),this.T=new g.pJ(function(){for(var D=g.T(this.B),Q=D.next();!Q.done;Q=D.next())this.qY(Q.value);this.B=[];this.S&&(this.S.dispose(),this.S=null);this.yA.oo(!0);!this.D.nF()&&this.D.G().V("enable_error_corrections_infocards_icon_web")&&this.yA.eJ()},330,this),this.T.start())};
g.y.UZ=function(){return this.To&&this.fade.state!==4};
g.y.Bq=function(){var D=this.D.getRootNode();D&&g.Wo(D,"ytp-cards-teaser-shown");g.Qj(this.C,this.T,this.S);g.p.prototype.Bq.call(this)};var gR={},Px=(gR.BUTTON="ytp-button",gR.TITLE_NOTIFICATIONS="ytp-title-notifications",gR.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",gR.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",gR.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",gR);g.Z(Guh,g.p);Guh.prototype.onClick=function(){this.api.logClick(this.element);var D=!this.S;this.updateValue("label",D?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",D);Mor(this,D)};g.ch("yt.pubsub.publish",g.Q$);g.Z(g.Wx,g.p);g.Wx.prototype.B=function(){window.location.reload()};
g.Wx.prototype.S=function(){g.mQ(this.element,"ytp-sb-subscribed")};
g.Wx.prototype.C=function(){g.Wo(this.element,"ytp-sb-subscribed")};g.Z(Pl7,g.p);g.y=Pl7.prototype;g.y.jyO=function(D){this.api.logClick(this.C);var Q=this.api.G();Q.C||Q.k9?Lg_(this)&&(this.isExpanded()?this.PH():this.vS()):g.C6(window,mxm(this));D.preventDefault()};
g.y.H_=function(){shh(this);this.channel.classList.remove("ytp-title-expanded")};
g.y.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.y.vS=function(){if(Lg_(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.T&&this.T.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var D=this.api.getVideoData();this.S&&D.dF&&D.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.y.PH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.T&&this.T.start()};
g.y.Lh=function(){var D=this.api.G();this.FA(!this.api.isEmbedsShortsMode());var Q=this.api.getVideoData(),m=this.api.G(),P=this.api.getVideoData();this.B=!1;var W=!!P.videoId&&!!P.jD&&!!P.profilePicture;this.api.getPresentingPlayerType()===2?this.B=W&&!!P.isListed&&!!P.author:g.W8(m)&&(this.B=W&&!P.RI&&!m.T&&!(m.U&&this.api.getPlayerSize().width<200));m=Q.profilePicture;D=g.W8(D)?Q.expandedTitle:Q.author;m=m===void 0?"":m;D=D===void 0?"":D;this.B?(this.U!==m&&(this.C.style.backgroundImage="url("+
m+")",this.U=m),this.updateValue("channelLink",mxm(this)),this.updateValue("channelLogoLabel",g.LZ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:D})),g.mQ(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Wo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.C,this.B&&this.J);this.subscribeButton&&(this.subscribeButton.channelId=Q.M4);this.updateValue("expandedTitle",Q.expandedTitle);this.updateValue("expandedSubtitle",Q.expandedSubtitle)};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.C,this.B&&D)};g.Z(iM,g.q$);iM.prototype.lK=function(D){D.defaultPrevented||D.keyCode!==39||(this.element.click(),D.preventDefault())};g.Z(uT4,g.p);g.y=uT4.prototype;g.y.show=function(){g.p.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.y.hide=function(){g.p.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.y.SB=function(D){var Q=F7(D),m=g.y0(this.closeButton.element,Q),P=g.y0(this.element,Q);D=this.S&&g.y0(this.S,Q)&&g.E9(D);Q&&(P||D)&&!m||this.hide()};
g.y.CV=function(){Dxj(g.ZW(this.zO.G()),"user_info_panel",function(){window.location.reload()})};
g.y.Lh=function(){var D=this.zO.G(),Q={USER_NAME:D.userDisplayName,USER_EMAIL:D.Zw};this.updateValue("icon",ntP());this.updateValue("watchingAsUsername",g.LZ("Watching as $USER_NAME",Q));D.Zw?this.updateValue("watchingAsEmail",g.LZ("($USER_EMAIL)",Q)):this.updateValue("watchingAsEmail","")};g.Z(qa$,g.BJ);g.y=qa$.prototype;g.y.Uq=function(){this.Cj.eJ()};
g.y.IGW=function(){Ia(this.Dy.element)};
g.y.JUz=function(){L$(this,this.D.getDebugText(!0))&&Q8(this.l7,oq())};
g.y.vlc=function(){L$(this,this.D.getVideoEmbedCode())&&Q8(this.l7,Czh());this.D.logClick(this.Uv.element)};
g.y.eCD=function(){L$(this,this.D.getVideoUrl(!0,!0))&&Q8(this.l7,ZM());this.D.logClick(this.getVideoUrl.element)};
g.y.VJv=function(){L$(this,this.D.getVideoUrl(!1,!0))&&Q8(this.l7,ZM());this.D.logClick(this.iU.element)};
g.y.onLoopChange=function(D){var Q;(Q=this.rF)==null||Bj(Q,D)};
g.y.rU0=function(){this.D.setLoopVideo(this.rF.getValue());this.Cj.eJ();this.D.logClick(this.rF.element)};
g.y.W2W=function(){this.D.sW("onCollapseMiniplayer");this.Cj.eJ()};
g.y.Gcy=function(D){this.D.reportPlaybackIssue();if(g.wg(D,this.D,!Ts(this.D.G()))){D=this.D;var Q=D.app.getFeedbackProductData();D.Q0("onFeedbackStartRequest",Q);D.isFullscreen()&&D.toggleFullscreen()}this.Cj.eJ()};
g.y.nBy=function(){g.Iv(this.D,"isVideoInfoVisible",[])?g.Iv(this.D,"hideVideoInfo",[]):g.Iv(this.D,"showVideoInfo",[]);this.Cj.eJ()};
g.y.Dj9=function(){this.YS&&(this.Aw||(this.Aw=new uT4(this.D,this.YS.element),g.O(this,this.Aw),g.Q3(this.D,this.Aw.element,4)),this.Aw.show(),this.Cj.eJ(),this.D.logClick(this.YS.element))};
g.y.onVideoDataChange=function(D,Q){bq$(this,Q)};
g.y.aj=function(D){g.BJ.prototype.aj.call(this,D);this.D.logVisibility(this.Uv.element,D);this.D.logVisibility(this.getVideoUrl.element,D);this.D.logVisibility(this.iU.element,D);this.rF&&this.D.logVisibility(this.rF.element,D);this.YS&&this.D.logVisibility(this.YS.element,D);this.F5&&this.D.logVisibility(this.F5.element,D)};g.Z(fth,g.k$);g.y=fth.prototype;g.y.onTouchStart=function(D){var Q=F7(D);if(!(Q&&(Ex(Q,"a")||Ex(Q,null,"ytp-no-contextmenu"))||this.To)){var m;this.TO=(D=(m=D.touches)==null?void 0:m.item(0))?new g.Yq(D.clientX,D.clientY):new g.Yq(0,0);this.j.start()}};
g.y.Yq=function(){this.j.stop()};
g.y.xjF=function(){this.open(this.TO)};
g.y.vU=function(){if(this.Em&&Clk(this.Em)){var D=Clk(this.Em).element;D.tabIndex=-1;D.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.y.show=function(){this.Em||(this.Em=new qa$(this.D,this,this.l7),g.O(this,this.Em),g.JA(this,this.Em));this.Em.onLoopChange(this.D.getLoopVideo());g.k$.prototype.show.call(this);this.D.logVisibility(this.element,!0);this.Em.aj(!0)};
g.y.hide=function(){oHh(this);g.k$.prototype.hide.call(this);this.D.logVisibility(this.element,!1);this.Em&&this.Em.aj(!1)};
g.y.TB0=function(D){var Q=F7(D);this.To||Q&&(Ex(Q,"a")||Ex(Q,null,"ytp-no-contextmenu"))||(D.preventDefault(),this.open(new g.Yq(D.pageX,D.pageY)))};
g.y.YJ=function(D){if(D){var Q=D.getBoundingClientRect();this.open(new g.Yq(Q.x,Q.y))}g.k$.prototype.YJ.call(this,D)};
g.y.open=function(D){VSw(this);var Q=this.D.getVideoData();g.sh(this.element,"ytp-dni",Q.RI);this.element.style.left="";this.element.style.top="";D.x++;D.y++;g.k$.prototype.YJ.call(this);var m=dg(this).body;Q=new Hu(0,Infinity,Infinity,0);var P=mO(m);for(var W=P.S.body,L=P.S.documentElement,u=UQu(P.S);m=aNh(m);)if((!g.d9||m.clientHeight!=0||m!=W)&&m!=W&&m!=L&&xZ(m,"overflow")!="visible"){var t=g.GH(m),z=new g.Yq(m.clientLeft,m.clientTop);t.x+=z.x;t.y+=z.y;Q.top=Math.max(Q.top,t.y);Q.right=Math.min(Q.right,
t.x+m.clientWidth);Q.bottom=Math.min(Q.bottom,t.y+m.clientHeight);Q.left=Math.max(Q.left,t.x)}W=u.scrollLeft;u=u.scrollTop;Q.left=Math.max(Q.left,W);Q.top=Math.max(Q.top,u);P=RVj(P.S.defaultView||window);Q.right=Math.min(Q.right,W+P.width);Q.bottom=Math.min(Q.bottom,u+P.height);P=Q.top>=0&&Q.left>=0&&Q.bottom>Q.top&&Q.right>Q.left?Q:null;Q=this.size;D=D.clone();Q=Q.clone();P&&(u=Q,W=5,(W&65)==65&&(D.x<P.left||D.x>=P.right)&&(W&=-2),(W&132)==132&&(D.y<P.top||D.y>=P.bottom)&&(W&=-5),D.x<P.left&&W&1&&
(D.x=P.left),W&16&&(L=D.x,D.x<P.left&&(D.x=P.left),D.x+u.width>P.right&&(u.width=Math.min(P.right-D.x,L+u.width-P.left),u.width=Math.max(u.width,0))),D.x+u.width>P.right&&W&1&&(D.x=Math.max(P.right-u.width,P.left)),D.y<P.top&&W&4&&(D.y=P.top),W&32&&(L=D.y,D.y<P.top&&(D.y=P.top),D.y+u.height>P.bottom&&(u.height=Math.min(P.bottom-D.y,L+u.height-P.top),u.height=Math.max(u.height,0))),D.y+u.height>P.bottom&&W&4&&(D.y=Math.max(P.bottom-u.height,P.top)));P=new g.ee(0,0,0,0);P.left=D.x;P.top=D.y;P.width=
Q.width;P.height=Q.height;g.Se(this.element,new g.Yq(P.left,P.top));g.EI(this.T);this.T.W(dg(this),"contextmenu",this.DBv);this.T.W(this.D,"fullscreentoggled",this.onFullscreenToggled);this.T.W(this.D,"pageTransition",this.Tl)};
g.y.DBv=function(D){if(!D.defaultPrevented){var Q=F7(D);g.y0(this.element,Q)||this.eJ();this.D.G().disableNativeContextMenu&&D.preventDefault()}};
g.y.onFullscreenToggled=function(){this.eJ();VSw(this)};
g.y.Tl=function(){this.eJ()};g.Z(uM,g.p);uM.prototype.onClick=function(){var D=this,Q,m,P,W;return g.U(function(L){if(L.C==1)return Q=D.api.G(),m=D.api.getVideoData(),P=D.api.getPlaylistId(),W=Q.getVideoUrl(m.videoId,P,void 0,!0),g.I(L,Zqj(D,W),2);L.S&&ySw(D);D.api.logClick(D.element);g.T7(L)})};
uM.prototype.Lh=function(){this.updateValue("icon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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.updateValue("tooltip-title","Copy link");this.visible=N17(this);g.sh(this.element,
"ytp-copylink-button-visible",this.visible);this.FA(this.visible);this.tooltip.QP();this.api.logVisibility(this.element,this.visible&&this.J)};
uM.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};
uM.prototype.Bq=function(){g.p.prototype.Bq.call(this);g.Wo(this.element,"ytp-copylink-button-visible")};g.Z(Fg7,g.p);g.y=Fg7.prototype;g.y.show=function(){g.p.prototype.show.call(this);g.xG(this.C)};
g.y.hide=function(){this.B.stop();this.T=0;this.Dx("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Wo(this.element,"ytp-chapter-seek");g.Wo(this.element,"ytp-time-seeking");g.p.prototype.hide.call(this)};
g.y.Qp=function(D,Q,m,P){this.T=D===this.U?this.T+P:P;this.U=D;var W=D===-1?this.j:this.Z;W&&this.D.logClick(W);this.N?this.C.stop():g.SH(this.C);this.B.start();this.element.setAttribute("data-side",D===-1?"back":"forward");var L=3*this.D.fh().getPlayerSize().height;W=this.D.fh().getPlayerSize();W=W.width/3-3*W.height;this.S.style.width=L+"px";this.S.style.height=L+"px";D===1?(this.S.style.left="",this.S.style.right=W+"px"):D===-1&&(this.S.style.right="",this.S.style.left=W+"px");var u=L*2.5;L=u/
2;var t=this.Dx("ytp-doubletap-ripple");t.style.width=u+"px";t.style.height=u+"px";D===1?(D=this.D.fh().getPlayerSize().width-Q+Math.abs(W),t.style.left="",t.style.right=D-L+"px"):D===-1&&(D=Math.abs(W)+Q,t.style.right="",t.style.left=D-L+"px");t.style.top="calc((33% + "+Math.round(m)+"px) - "+L+"px)";if(m=this.Dx("ytp-doubletap-ripple"))m.classList.remove("ytp-doubletap-ripple"),m.classList.add("ytp-doubletap-ripple");T1h(this,this.N?this.T:P)};
g.y.z9=function(D,Q,m){if(m=m===void 0?null:m){var P=D===-1?this.j.visualElement:this.Z.visualElement;m={seekData:m};var W=g.Tq();W&&mr(W,P,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m)}this.T=D===this.U?this.T+Q:Q;this.U=D;P=this.D.fh().getPlayerSize();this.N?this.C.stop():g.SH(this.C);this.B.start();this.element.setAttribute("data-side",D===-1?"back":"forward");g.mQ(this.element,"ytp-time-seeking");this.S.style.width="110px";this.S.style.height="110px";m=P.width*.1-15;D===1?this.TO?(this.S.style.right=
m+"px",this.S.style.left=""):(this.S.style.right="",this.S.style.left=P.width*.8-30+"px"):D===-1&&(this.TO?(this.S.style.right="",this.S.style.left=m+"px"):(this.S.style.right="",this.S.style.left=P.width*.1-15+"px"));this.S.style.top=P.height*.5+15+"px";T1h(this,this.N?this.T:Q)};
g.y.zG=function(D,Q,m){m=m===void 0?null:m;g.SH(this.C);this.B.start();switch(D){case -1:D="back";break;case 1:D="forward";break;default:D=""}this.element.setAttribute("data-side",D);this.S.style.width="0";this.S.style.height="0";g.mQ(this.element,"ytp-chapter-seek");this.updateValue("seekText",Q);this.updateValue("seekTime","");Q=this.Dx("ytp-seek-icon");if(m){a:if(m){switch(m){case "PREMIUM_STANDALONE":m=gtm();break a;case "PREMIUM_STANDALONE_CAIRO":m=Bbw();break a}m=void 0}else m=null;this.updateValue("seekIcon",
m);Q.style.display="inline-block"}else Q.style.display="none"};g.Z(hN9,EB);g.y=hN9.prototype;g.y.dR=function(D){this.u0||(this.u0=new Iy(this.D),g.O(this,this.u0));var Q,m;if((Q=this.gB)==null?0:(m=Q.menu)==null?0:m.menuRenderer)this.u0.open(this.gB.menu.menuRenderer,D.target),D.preventDefault()};
g.y.ZL=function(){return!!this.S};
g.y.wI=function(){return!!this.S};
g.y.Ph=function(D){D.target===this.overflowButton.element?D.preventDefault():(this.dn&&this.D.sW("innertubeCommand",this.dn),this.bT(!1))};
g.y.bY=function(){this.bT(!0);var D,Q;((D=this.S)==null?0:(Q=D.bannerData)==null?0:Q.dismissedStatusKey)&&this.Lj.push(this.S.bannerData.dismissedStatusKey);this.qF()};
g.y.Z3=function(){this.qF();z6(this)};
g.y.CQy=function(D){var Q=this,m;if(D.id!==((m=this.S)==null?void 0:m.identifier)){this.qF();m=g.T(this.QF);for(var P=m.next();!P.done;P=m.next()){var W=P.value,L=void 0,u=void 0;if((P=(L=W)==null?void 0:(u=L.bannerData)==null?void 0:u.itemData)&&W.identifier===D.id){u=L=void 0;var t=((L=W)==null?void 0:(u=L.bannerData)==null?void 0:u.dismissedStatusKey)||"";if(this.Lj.includes(t))return;this.S=W;this.banner.element.setAttribute("aria-label",P.accessibilityLabel||"");P.trackingParams&&(this.B=!0,
this.D.setTrackingParams(this.badge.element,P.trackingParams));this.show();this.j.show();nA(this);this.t0.FA(!P.stayInApp);Hqw(this);EHw(this);t_(this);this.dn=g.A(P.onTapCommand,RC);if(W=g.A(P.menuOnTap,RC))this.gB=g.A(W,ytK);W=void 0;this.banner.update({thumbnail:(W=(P.thumbnailSources||[])[0])==null?void 0:W.url,title:P.productTitle,price:P.priceReplacementText?P.priceReplacementText:P.price,salesOriginalPrice:wwj(this),priceDropReferencePrice:kF_(this),promotionText:B1P(this),priceA11yText:JS7(this),
affiliateDisclaimer:P.affiliateDisclaimer,vendor:lt7(this)});t=u=L=W=void 0;((W=P)==null?0:(L=W.hiddenProductOptions)==null?0:L.showDropCountdown)&&((u=P)==null?0:(t=u.hiddenProductOptions)==null?0:t.dropTimestampMs)&&(this.Kj=new g.pJ(function(){Uxm(Q)},1E3),this.t0.hide(),this.countdownTimer.show(),Uxm(this));
this.D.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&nH6(this)&&(this.PY=new g.pJ(function(){gH9(Q)},1E3),gH9(this))}}this.D.getRootNode()&&g.mQ(this.D.getRootNode(),"ytp-featured-product-shown")}};
g.y.qF=function(){this.S&&(this.S=void 0,this.j6(),this.D.getRootNode()&&g.Wo(this.D.getRootNode(),"ytp-featured-product-shown"))};
g.y.onVideoDataChange=function(D,Q){var m=this;D==="dataloaded"&&z6(this);var P,W,L;D=g.A((P=Q.getWatchNextResponse())==null?void 0:(W=P.playerOverlays)==null?void 0:(L=W.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,VeU);this.overflowButton.show();this.dismissButton.hide();var u=D==null?void 0:D.featuredProductsEntityKey;this.trendingOfferEntityKey=D==null?void 0:D.trendingOfferEntityKey;this.QF.length||(RN7(this,u),t_(this));var t;(t=this.kJ)==null||t.call(this);this.kJ=g.kA.subscribe(function(){RN7(m,
u);t_(m)})};
g.y.Bq=function(){z6(this);Hqw(this);EHw(this);EB.prototype.Bq.call(this)};g.Z(vH7,g.p);vH7.prototype.onClick=function(){this.D.logClick(this.element,this.C)};g.Z(Oq6,g.ui);g.y=Oq6.prototype;g.y.show=function(){g.ui.prototype.show.call(this);this.D.publish("infopaneldetailvisibilitychange",!0);this.D.logVisibility(this.element,!0);Ya$(this,!0)};
g.y.hide=function(){g.ui.prototype.hide.call(this);this.D.publish("infopaneldetailvisibilitychange",!1);this.D.logVisibility(this.element,!1);Ya$(this,!1)};
g.y.getId=function(){return this.B};
g.y.Lm=function(){return this.itemData.length};
g.y.onVideoDataChange=function(D,Q){if(Q){var m,P,W,L;this.update({title:((m=Q.CF)==null?void 0:(P=m.title)==null?void 0:P.content)||"",body:((W=Q.CF)==null?void 0:(L=W.bodyText)==null?void 0:L.content)||""});var u;D=((u=Q.CF)==null?void 0:u.trackingParams)||null;this.D.setTrackingParams(this.element,D);u=g.T(this.itemData);for(D=u.next();!D.done;D=u.next())D.value.dispose();this.itemData=[];var t;if((t=Q.CF)==null?0:t.ctaButtons)for(Q=g.T(Q.CF.ctaButtons),t=Q.next();!t.done;t=Q.next())if(t=g.A(t.value,
zMk))t=new vH7(this.D,t,this.S),t.EC&&(this.itemData.push(t),t.b0(this.items))}};
g.y.Bq=function(){this.hide();g.ui.prototype.Bq.call(this)};g.Z(pwn,g.p);g.y=pwn.prototype;g.y.onVideoDataChange=function(D,Q){AS6(this,Q);this.fn&&Xw$(this,this.fn)};
g.y.hB=function(D){var Q=this.D.getVideoData();this.videoId!==Q.videoId&&AS6(this,Q);Xw$(this,D.state);this.fn=D.state};
g.y.bC=function(D){(this.T=D)?this.hide():this.S&&this.show()};
g.y.gR=function(){this.C||this.YJ();this.showControls=!0};
g.y.I3=function(){this.C||this.eJ();this.showControls=!1};
g.y.YJ=function(){var D,Q=(D=this.D)==null?void 0:D.getPlayerSize();D=Q.width<380;var m;Q=Q.height<(((m=this.D)==null?0:m.isEmbedsShortsMode())?400:280);var P,W;(((P=this.D)==null?0:P.getPlayerStateObject().isCued())||((W=this.D)==null?0:g.X(W.getPlayerStateObject(),1024)))&&D&&Q||!this.S||this.T||(this.fade.show(),this.D.publish("infopanelpreviewvisibilitychange",!0),this.D.logVisibility(this.element,!0))};
g.y.eJ=function(){this.S&&!this.T&&(this.fade.hide(),this.D.publish("infopanelpreviewvisibilitychange",!1),this.D.logVisibility(this.element,!1))};
g.y.Bsh=function(){this.C=!1;this.showControls||this.eJ()};var n2U={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(n2U).reduce(function(D,Q){D[n2U[Q]]=Q;return D},{});
var E22={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(E22).reduce(function(D,Q){D[E22[Q]]=Q;return D},{});
var g24={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(g24).reduce(function(D,Q){D[g24[Q]]=Q;return D},{});var Beh,wpN;Beh=[{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"}];wpN=[{option:0,text:bM(0)},{option:.25,text:bM(.25)},{option:.5,text:bM(.5)},{option:.75,text:bM(.75)},{option:1,text:bM(1)}];
g.f$=[{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:Beh},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:bM(.5)},{option:-1,text:bM(.75)},{option:0,text:bM(1)},{option:1,text:bM(1.5)},{option:2,
text:bM(2)},{option:3,text:bM(3)},{option:4,text:bM(4)}]},{option:"background",text:"Background color",options:Beh},{option:"backgroundOpacity",text:"Background opacity",options:wpN},{option:"windowColor",text:"Window color",options:Beh},{option:"windowOpacity",text:"Window opacity",options:wpN},{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:bM(.25)},{option:.5,text:bM(.5)},{option:.75,text:bM(.75)},{option:1,text:bM(1)}]}];var kgT=[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.Z(Dnr,g.gO);g.y=Dnr.prototype;
g.y.D1=function(D){D.repeat||(this.T.sx=!1);var Q=!1,m=D.keyCode,P=F7(D),W=!D.altKey&&!D.ctrlKey&&!D.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||kgT.includes(m)),L=!1,u=!1,t=this.api.G();D.defaultPrevented?(W=!1,u=!0):t.gi&&!this.api.isMutedByEmbedsMutedAutoplay()&&(W=!1);if(m===9)Q=!0;else{if(P)switch(m){case 32:case 13:if(P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT")Q=!0,W=!1;else if(W){var z=P.getAttribute("role");!z||z!=="option"&&z!=="button"&&z.indexOf("menuitem")!==0||
(Q=!0,P.click(),L=!0)}break;case 37:case 39:case 36:case 35:Q=P.getAttribute("role")==="slider";break;case 38:case 40:z=P.getAttribute("role"),P=m===38?P.previousSibling:P.nextSibling,z==="slider"?Q=!0:W&&(z==="option"?(P&&P.getAttribute("role")==="option"&&P.focus(),L=Q=!0):z&&z.indexOf("menuitem")===0&&(P&&P.hasAttribute("role")&&P.getAttribute("role").indexOf("menuitem")===0&&P.focus(),L=Q=!0))}if(W&&!L)switch(m){case 38:L=Math.min(this.api.getVolume()+5,100);ml(this.l7,L,!1);this.api.setVolume(L);
u=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);ml(this.l7,L,!0);this.api.setVolume(L);u=L=!0;break;case 36:this.api.I_()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),u=L=!0);break;case 35:this.api.I_()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),u=L=!0)}}Q&&C$(this,!0);(Q||u)&&this.fO.YI();(L||W&&this.handleGlobalKeyDown(m,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat))&&D.preventDefault();t.Z&&(D={keyCode:D.keyCode,
altKey:D.altKey,ctrlKey:D.ctrlKey,metaKey:D.metaKey,shiftKey:D.shiftKey,handled:D.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.cO("onKeyPress",D))};
g.y.NQ=function(D){var Q=D.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.T.Ms)&&this.handleGlobalKeyUp(Q,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)&&D.preventDefault()};
g.y.handleGlobalKeyUp=function(D,Q,m,P,W,L,u){this.api.publish("keyboardserviceglobalkeyup",{keyCode:D,shiftKey:Q,ctrlKey:m,altKey:P,metaKey:W,key:L,code:u});Q=!1;if(this.T.sx)return Q;(L=g.cU(this.api.HY()))&&(L=L.kz)&&L.To&&(L.BX(D),Q=!0);switch(D){case 9:C$(this,!0);Q=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.T.Ms||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.G().gi){var t,z;D=(t=this.progressBar)==
null?void 0:(z=t.C)==null?void 0:z.isEnabled;Q=this.LG(D)}break;case 39:(yL?P:m)&&!W&&this.api.I_()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),t=(t=this.api.getVideoData())?t.tY:[],z=rSw(t,this.api.getCurrentTime()*1E3),z!==-1&&this.S!=null&&(this.S.zG(1,t[z].title),this.api.seekTo(t[z].startTime/1E3,void 0,void 0,void 0,52),Q=!0))}return Q};
g.y.handleGlobalKeyDown=function(D,Q,m,P,W,L,u,t){t||(this.T.sx=!1);var z=!1,b=this.api.G();if(b.gi&&!this.api.isMutedByEmbedsMutedAutoplay())return z;var q=g.cU(this.api.HY());if(q&&(q=q.kz)&&q.To)switch(D){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:z=q.hv(D)}b.N||z||(z=L||String.fromCharCode(D).toLowerCase(),this.C+=z,"awesome".indexOf(this.C)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.C)===0?(z=!0,4===this.C.length&&this.C==="bday"&&this.api.V("web_player_rtr_ctrls")&&
(WCk(this.J),this.fO.YI()),7===this.C.length&&this.C==="awesome"&&hBj(this.api.getRootNode(),"ytp-color-party")):(this.C=z,z="awesome".indexOf(this.C)===0||"bday".indexOf(this.C)===0));if(!z&&(!this.api.isMutedByEmbedsMutedAutoplay()||kgT.includes(D))){var C=this.api.getVideoData(),f,V;q=(f=this.progressBar)==null?void 0:(V=f.C)==null?void 0:V.isEnabled;f=C?C.tY:[];V=yL?P:m;switch(D){case 80:Q&&!b.x9&&(Q8(this.l7,w5j(),"Previous"),this.api.previousVideo(),z=!0);break;case 78:Q&&!b.x9&&(Q8(this.l7,
FR(),"Next"),this.api.nextVideo(),z=!0);break;case 74:this.api.I_()&&(this.api.startSeekCsiAction(),this.S?this.api.V("enable_key_press_seek_logging")?(z=oF(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.S.z9(-1,10,z)):this.S.z9(-1,10):Q8(this.l7,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),z=!0);break;case 76:this.api.I_()&&(this.api.startSeekCsiAction(),this.S?this.api.V("enable_key_press_seek_logging")?(z=oF(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.S.z9(1,10,z)):this.S.z9(1,10):Q8(this.l7,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),z=!0);break;case 37:this.api.I_()&&(this.api.startSeekCsiAction(),V?(V=GFn(f,this.api.getCurrentTime()*1E3),V!==-1&&this.S!=null&&(this.S.zG(-1,f[V].title),this.api.seekTo(f[V].startTime/1E3,void 0,void 0,void 0,53),z=!0)):(this.S?this.api.V("enable_key_press_seek_logging")?(z=oF(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.S.z9(-1,5,z)):this.S.z9(-1,5):Q8(this.l7,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),z=!0));break;case 39:this.api.I_()&&(this.api.startSeekCsiAction(),V?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(V=rSw(f,this.api.getCurrentTime()*1E3),V!==-1&&this.S!=null&&(this.S.zG(1,f[V].title),this.api.seekTo(f[V].startTime/1E3,void 0,void 0,void 0,52),z=!0)):(this.S!=null?this.api.V("enable_key_press_seek_logging")?(z=oF(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.S.z9(1,5,z)):this.S.z9(1,
5):Q8(this.l7,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),z=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ml(this.l7,this.api.getVolume(),!1)):(this.api.mute(),ml(this.l7,0,!0));z=!0;break;case 32:z=this.api.V("web_speedmaster_spacebar_control")?!this.api.G().x9:this.LG(q);break;case 75:z=this.LG(q);break;case 190:Q?b.enableSpeedOptions&&mnw(this)&&(z=this.api.getPlaybackRate(),this.api.setPlaybackRate(z+.25,!0),xoj(this.l7,!1),z=!0):this.api.I_()&&(this.step(1),z=!0);break;case 188:Q?
b.enableSpeedOptions&&mnw(this)&&(z=this.api.getPlaybackRate(),this.api.setPlaybackRate(z-.25,!0),xoj(this.l7,!0),z=!0):this.api.I_()&&(this.step(-1),z=!0);break;case 70:Oi6(this.api)&&(this.api.toggleFullscreen().catch(function(){}),z=!0);
break;case 27:q?(this.progressBar.uv(),z=!0):this.N()&&(z=!0)}if(b.controlsType!=="3")switch(D){case 67:g.JD(this.api.HY())&&(b=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XH_(this.l7,!b||b&&!b.displayName),z=!0);break;case 79:V8(this,"textOpacity");break;case 87:V8(this,"windowOpacity");break;case 187:case 61:V8(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:V8(this,"fontSizeIncrement",!0,!0)}var N;Q||m||P||(D>=48&&D<=57?N=D-48:D>=96&&D<=105&&(N=D-96));N!=null&&this.api.I_()&&
!this.api.V("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),b=this.api.getProgressState(),this.api.seekTo(N/10*(b.seekableEnd-b.seekableStart)+b.seekableStart,void 0,void 0,void 0,81),z=!0);z&&this.fO.YI()}this.T.zy=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:D,shiftKey:Q,ctrlKey:m,altKey:P,metaKey:W,key:L,code:u,repeat:t},this.T);this.T.zy&&(z=!0,this.fO.YI());return z};
g.y.step=function(D){this.api.I_();if(this.api.getPlayerStateObject().isPaused()){var Q=this.api.getVideoData().C;Q&&(Q=Q.video)&&this.api.seekBy(D/(Q.fps||30),void 0,void 0,D>0?77:78)}};
g.y.LG=function(D){if(!this.api.G().x9){var Q;var m,P=(Q=this.api.getVideoData())==null?void 0:(m=Q.getPlayerResponse())==null?void 0:m.playabilityStatus;if(P){var W;Q=((W=g.A(P.miniplayer,gZ$))==null?void 0:W.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Q=!1;Q&&this.api.sW("onExpandMiniplayer");D?this.progressBar.xM():(D=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.l7.T4(D),D?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.y.Bq=function(){g.SH(this.B);g.gO.prototype.Bq.call(this)};g.Z(NL,g.p);NL.prototype.Lh=function(){var D=this.D.G(),Q=D.T||this.D.V("web_player_hide_overflow_button_if_empty_menu")&&this.xt.isEmpty();D=g.W8(D)&&g.Gv(this.D)&&g.X(this.D.getPlayerStateObject(),128);var m=this.D.getPlayerSize();this.visible=this.D.Px()&&!D&&m.width>=240&&!this.D.getVideoData().RI&&!Q&&!this.D.isEmbedsShortsMode();g.sh(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.D.QP();this.D.logVisibility(this.element,this.visible&&this.J)};
NL.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.D.logVisibility(this.element,this.visible&&D)};
NL.prototype.Bq=function(){g.p.prototype.Bq.call(this);g.Wo(this.element,"ytp-overflow-button-visible")};g.Z(P09,g.ui);g.y=P09.prototype;g.y.Bb=function(D){D=F7(D);g.y0(this.element,D)&&(g.y0(this.S,D)||g.y0(this.closeButton,D)||th(this))};
g.y.eJ=function(){g.ui.prototype.eJ.call(this);this.D.Ko(this.element)};
g.y.show=function(){this.To&&this.D.publish("OVERFLOW_PANEL_OPENED");g.ui.prototype.show.call(this);this.element.setAttribute("aria-modal","true");il4(this,!0)};
g.y.hide=function(){g.ui.prototype.hide.call(this);this.element.removeAttribute("aria-modal");il4(this,!1)};
g.y.onFullscreenToggled=function(D){!D&&this.UZ()&&th(this)};
g.y.isEmpty=function(){return this.actionButtons.length===0};
g.y.focus=function(){for(var D=g.T(this.actionButtons),Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.To){Q.focus();break}};g.Z(sEh,g.p);sEh.prototype.onClick=function(D){g.wg(D,this.api)&&this.api.playVideoAt(this.index)};g.Z(Lvr,g.ui);g.y=Lvr.prototype;g.y.show=function(){g.ui.prototype.show.call(this);this.S.W(this.api,"videodatachange",this.PM);this.S.W(this.api,"onPlaylistUpdate",this.PM);this.PM()};
g.y.hide=function(){g.ui.prototype.hide.call(this);g.EI(this.S);this.updatePlaylist(null)};
g.y.PM=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().T&&(this.Dx("ytp-playlist-menu-title-name").removeAttribute("href"),this.T&&(this.qY(this.T),this.T=null))};
g.y.S7=function(){var D=this.playlist,Q=D.author,m=Q?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",P={CURRENT_POSITION:String(D.index+1),PLAYLIST_LENGTH:String(D.length)};Q&&(P.AUTHOR=Q);this.update({title:D.title,subtitle:g.LZ(m,P),playlisturl:this.api.getVideoUrl(!0)});Q=D.C;if(Q===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[D.index];else{m=g.T(this.playlistData);for(P=m.next();!P.done;P=m.next())P.value.dispose();
m=D.length;this.playlistData=[];for(P=0;P<m;P++){var W=new sEh(this.api,D,P);this.playlistData.push(W);W.b0(this.items)}this.selected=this.playlistData[D.index];this.B=Q}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.y.VkW=function(D){var Q=this.api.getVideoUrl(!0);g.k_(Q,this.api,D)};
g.y.updatePlaylist=function(D){this.playlist!==D?(this.playlist&&this.playlist.unsubscribe("shuffle",this.S7,this),this.playlist=D,this.B=null,D?(D.subscribe("shuffle",this.S7,this),this.S7()):this.To&&this.hide()):this.playlist&&this.S7()};
g.y.focus=function(){this.selected.focus()};
g.y.Bq=function(){this.hide();g.ui.prototype.Bq.call(this)};g.Z(y8,g.p);y8.prototype.hide=function(){g.p.prototype.hide.call(this);this.aj(!1);this.api.QP()};
y8.prototype.Lh=function(){var D=g.W8(this.api.G());g.sh(this.element,"ytp-playlist-menu-button-tiny",this.api.fh().getPlayerSize().width<400&&!D);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.LZ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.LZ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.LZ("Playlist: $PLAYLIST_NAME",
{PLAYLIST_NAME:this.playlist.title})}),this.api.V("delhi_modern_web_player")&&this.update({playlistTitle:g.LZ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.To||(this.show(),this.api.QP()),this.visible=!0,this.aj(!0)):this.To&&this.hide()};
y8.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};
y8.prototype.S=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Lh,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Lh,this);this.Lh()};g.Z(uD6,g.p);g.y=uD6.prototype;g.y.KV=function(){this.B?blh(this):zJ7(this)};
g.y.R3=function(){this.B?(Z8(this),this.U=!0):zJ7(this)};
g.y.Lch=function(){this.N=!0;this.MF(1);this.D.publish("promotooltipacceptbuttonclicked",this.acceptButton);Z8(this);this.C&&this.D.logClick(this.acceptButton)};
g.y.K2D=function(){this.N=!0;this.MF(2);Z8(this);this.C&&this.D.logClick(this.dismissButton)};
g.y.DH=function(D){if(this.D.getPresentingPlayerType()===1||this.D.getPresentingPlayerType()===2&&this.Z){var Q=!0,m=g.La("ytp-ad-overlay-ad-info-dialog-container"),P=g.La("ytp-ad-player-overlay-layout"),W=F7(D);if(this.T&&W&&g.y0(this.T,W))this.T=null;else{this.D.getPresentingPlayerType()===1&&W&&Array.from(W.classList).forEach(function(z){if(z.startsWith("ytp-ad")||z.startsWith("ytp-skip-ad"))Q=!1});
var L=qK_(this.tooltipRenderer),u;if(((u=this.tooltipRenderer.dismissStrategy)==null?void 0:u.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")L&&(Q=Q&&!g.y0(this.element,W));else{var t;((t=this.tooltipRenderer.dismissStrategy)==null?void 0:t.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(Q=L?!1:Q&&g.y0(this.element,W))}this.S&&this.To&&!m&&!P&&(!W||Q&&g.E9(D))&&(this.N=!0,Z8(this))}}};
g.y.MF=function(D){var Q=this.tooltipRenderer.promoConfig;if(Q){switch(D){case 0:var m;if((m=Q.impressionEndpoints)==null?0:m.length)var P=Q.impressionEndpoints[0];break;case 1:P=Q.acceptCommand;break;case 2:P=Q.dismissCommand}var W;D=(W=g.A(P,teP))==null?void 0:W.feedbackToken;P&&D&&(W={feedbackTokens:[D]},D=this.D.lS(),(D==null?0:gD6(P,D.HS))&&Kc(D,P,W))}};
g.y.MB=function(){this.U||(this.S||(this.S=dnj(this)),blh(this))};
var tAn={"ytp-settings-button":g.wi()};g.Z(F8,g.p);F8.prototype.onStateChange=function(D){this.pM(D.state)};
F8.prototype.pM=function(D){this.FA(g.X(D,2))};
F8.prototype.onClick=function(){this.D.getPlayerStateObject().isOrWillBePlaying();this.D.playVideo()};g.Z(T6,g.p);T6.prototype.onClick=function(D){this.api.logClick(this.element);var Q=g.oz(this.api.G().LI,{focusSearch:"true"}),m={};g.Iv(this.api,"addEmbedsConversionTrackingParams",[m]);Q=g.oz(Q,m);var P;(m=(P=this.api.getVideoData().wB0)==null?void 0:P.params)&&(Q=g.oz(Q,{bp:m}));g.C6(window,Q);D.preventDefault()};
T6.prototype.S=function(){if(this.api.V("embeds_web_enable_search_button")){var D=this.api.G();var Q=this.api.getVideoData(),m=this.api.fh().getPlayerSize().width;D=g.W8(D)&&m>=this.C&&!D.T&&!Q.isAd()&&!this.api.isEmbedsShortsMode()}else D=!1;this.visible=D;this.FA(this.visible);g.sh(this.element,"ytp-search-button-visible",this.visible);g.sh(this.element,"ytp-show-search-title",!this.api.Px());this.api.logVisibility(this.element,this.visible&&this.J)};
T6.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};g.Z(h_,g.p);
h_.prototype.trigger=function(D,Q,m,P){this.show();if(this.C&&D!==this.C){var W=1;this.T&&(W=yQk(this));C06(this,W,!1);NRk(this)}this.C=D;this.B=this.C===-1?this.Z:this.j;D="";Q?(this.U+=Q,D=(this.C===-1?"\u2212":"+")+" "+this.U):this.U=0;this.updateValue(this.C===-1?"durationBack":"durationForward",D);if(this.S==="hidden"||this.S==="fading-out")Q=0,this.S==="fading-out"&&(Q=yQk(this),VAj(this)),oWP(this,Q),this.S!=="fading-out"&&fD_(this,this.B.querySelector(".ytp-seek-overlay-arrow-persistent")),this.S=
"fading-in";else if(this.S==="fading-in"||this.S==="lingering")Q=this.B.querySelector(".ytp-seek-overlay-duration"),D=g.WF(this.D.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Q.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+D+")"},{offset:1,transform:"scale(1)"}],{duration:184}),VAj(this),this.S==="lingering"&&(this.N.stop(),this.N.start());m&&Zl4(this,m,P)};
h_.prototype.Qp=function(D,Q,m,P){this.trigger(D,P)};
h_.prototype.z9=function(D,Q,m){this.trigger(D,Q);m&&(D=D===-1?this.j.visualElement:this.Z.visualElement,m={seekData:m},(Q=g.Tq())&&mr(Q,D,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m))};
h_.prototype.zG=function(D,Q,m){this.trigger(D,void 0,Q,m)};g.Z(n$,g.p);n$.prototype.onClick=function(){var D=this,Q=this.api.G(),m=this.api.getVideoData(this.api.getPresentingPlayerType()),P=this.api.getPlaylistId();Q=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Q.getVideoUrl(m.videoId,P,void 0,!0);if(navigator.share)try{var W=navigator.share({title:m.title,url:Q});W instanceof Promise&&W.catch(function(L){TR9(D,L)})}catch(L){L instanceof Error&&TR9(this,L)}else this.S.HI(),th(this.C,this.element,!1);
this.api.logClick(this.element)};
n$.prototype.Lh=function(){var D=this.api.G(),Q=this.api.isEmbedsShortsMode();g.sh(this.element,"ytp-show-share-title",g.W8(D)&&!Q);this.S.UN()&&Q?(D=(this.api.fh().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.YZ(this.element,"right",D+"px")):Q&&g.YZ(this.element,"right","0px");this.updateValue("icon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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=Fv6(this);g.sh(this.element,"ytp-share-button-visible",this.visible);this.FA(this.visible);this.tooltip.QP();this.api.logVisibility(this.element,Fv6(this)&&this.J)};
n$.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};
n$.prototype.Bq=function(){g.p.prototype.Bq.call(this);g.Wo(this.element,"ytp-share-button-visible")};g.Z(nWP,g.ui);g.y=nWP.prototype;g.y.nV=function(D){D=F7(D);g.y0(this.N,D)||g.y0(this.closeButton,D)||th(this)};
g.y.eJ=function(){g.ui.prototype.eJ.call(this);this.tooltip.Ko(this.element);this.api.logVisibility(this.S,!1);for(var D=g.T(this.T),Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.api.hasVe(Q.element)&&this.api.logVisibility(Q.element,!1)};
g.y.show=function(){var D=this.To;g.ui.prototype.show.call(this);this.Lh();D||this.api.sW("onSharePanelOpened")};
g.y.hzF=function(){this.To&&this.Lh()};
g.y.Lh=function(){var D=this;g.mQ(this.element,"ytp-share-panel-loading");g.Wo(this.element,"ytp-share-panel-fail");var Q=this.api.getVideoData(),m=this.api.getPlaylistId()&&this.B.checked;Q.getSharePanelCommand&&Kc(this.api.lS(),Q.getSharePanelCommand,{includeListId:m}).then(function(P){D.VF()||(g.Wo(D.element,"ytp-share-panel-loading"),BRu(D,P))});
Q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Q);this.updateValue("linkText",Q);this.updateValue("shareLinkWithUrl",g.LZ("Share link $URL",{URL:Q}));Ia(this.S);this.api.logVisibility(this.S,!0)};
g.y.onFullscreenToggled=function(D){!D&&this.UZ()&&th(this)};
g.y.focus=function(){this.S.focus()};
g.y.Bq=function(){g.ui.prototype.Bq.call(this);EWh(this)};g.Z(JQk,EB);g.y=JQk.prototype;g.y.Bq=function(){Hln(this);EB.prototype.Bq.call(this)};
g.y.Ph=function(D){D.target!==this.dismissButton.element&&(this.bT(!1),this.D.sW("innertubeCommand",this.onClickCommand))};
g.y.bY=function(){this.GO=!0;this.bT(!0);this.j6()};
g.y.wn9=function(D){this.U=D;this.j6()};
g.y.onVideoDataChange=function(D,Q){if(D=!!Q.videoId&&this.videoId!==Q.videoId)this.videoId=Q.videoId,this.GO=!1,this.Kh=!0,this.Z=this.Iy=!1,Hln(this),Unw(this,!1),this.C=this.S=!1,g8(this),lD6(this);if(D||!Q.videoId)this.TO=this.B=!1;var m,P;if(Q==null?0:(m=Q.getPlayerResponse())==null?0:(P=m.videoDetails)==null?0:P.isLiveContent)this.sS(!1);else{var W,L,u;Q=g.A((W=Q.getWatchNextResponse())==null?void 0:(L=W.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:u.productsInVideoOverlayRenderer,
VeU);this.U=this.enabled=!1;if(Q){if(W=Q==null?void 0:Q.featuredProductsEntityKey){L=g.kA.getState().entities;var t;if((t=Qu(L,"featuredProductsEntity",W))==null?0:t.productsData){this.sS(!1);return}}if(!Q.text||!Q.onClickCommand||!Q.timing){this.sS(!1);return}this.enabled=!0;if(!this.B){var z;t=(z=Q.badgeInteractionLogging)==null?void 0:z.trackingParams;(this.B=!!t)&&this.D.setTrackingParams(this.badge.element,t||null)}if(!this.TO){var b;if(this.TO=!((b=Q.dismissButton)==null||!b.trackingParams)){var q;
this.D.setTrackingParams(this.dismissButton.element,((q=Q.dismissButton)==null?void 0:q.trackingParams)||null)}}Q.isContentForward&&(z=Q.productsData,Unw(this,!0),lD6(this),z=RJn(this,z),b=[],z.length>0&&b.push(z[0]),z.length>1&&(q=new g.p({K:"div",L:"ytp-suggested-action-more-products-icon"}),g.O(this,q),b.push(q),b.push.apply(b,g.on(z.slice(1)))),this.N=new g.p({K:"div",X:b,L:"ytp-suggested-action-content-forward-container"}),g.O(this,this.N),this.wc.element.append(this.N.element));this.text=g.qC(Q.text);
var C;if(z=(C=Q.dismissButton)==null?void 0:C.a11yLabel)this.Y9=g.qC(z);this.onClickCommand=Q.onClickCommand;this.timing=Q.timing;this.GY()}Zu9(this);nA(this);this.j6()}};
g.y.ZL=function(){return!this.U&&this.enabled&&!this.GO&&!this.D.Px()&&!this.hU&&(this.Z||this.Kh)};
g.y.GJ=function(D){EB.prototype.GJ.call(this,D);if(this.S||this.C)this.timing&&EH(this.timing.preview)&&(this.S=!1,g8(this),this.C=!1,g8(this),this.D.aI("shopping_overlay_preview_collapsed"),this.D.aI("shopping_overlay_preview_expanded"),D=Bx(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),EH(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.D.aI("shopping_overlay_expanded"),D.end=this.timing.expanded.endSec*1E3),this.D.GY([D])),
this.Iy=!0,nA(this);g8(this)};
g.y.sS=function(D){(this.Z=D)?(hA(this),nA(this,!1)):(Hln(this),this.x9.start());this.j6()};
g.y.GY=function(D){var Q=this.timing;D=(D===void 0?0:D)+this.D.getCurrentTime();var m=[],P=Q.visible,W=Q.preview;Q=Q.expanded;EH(P)&&(wvw(P,D),m.push(Bx(P.startSec,P.endSec,"shopping_overlay_visible")));EH(W)&&(wvw(W,D),P=W.startSec+1,m.push(Bx(W.startSec,P,"shopping_overlay_preview_collapsed")),m.push(Bx(P,W.endSec,"shopping_overlay_preview_expanded")));EH(Q)&&(wvw(Q,D),m.push(Bx(Q.startSec,Q.endSec,"shopping_overlay_expanded")));this.D.GY(m)};
g.y.j6=function(){EB.prototype.j6.call(this);this.D.getRootNode()&&g.sh(this.D.getRootNode(),"ytp-shopping-pill-shown",this.ZL())};g.Z($n7,g.p);
$n7.prototype.Lh=function(){var D=this.api.G();this.FA(g.W8(D)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.To);var Q=this.api.getVideoData(),m=!1;this.api.getPresentingPlayerType()===2?m=!!Q.videoId&&!!Q.isListed&&!!Q.author&&!!Q.jD&&!!Q.profilePicture:g.W8(D)&&(m=!!Q.videoId&&!!Q.jD&&!!Q.profilePicture&&!Q.RI&&!D.T&&!(D.U&&this.api.getPlayerSize().width<200));var P=Q.profilePicture;D=g.W8(D)?Q.expandedTitle:Q.author;P=P===void 0?
"":P;D=D===void 0?"":D;m?(this.C!==P&&(this.S.style.backgroundImage="url("+P+")",this.C=P),this.updateValue("channelLogoLabel",g.LZ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:D})),g.mQ(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Wo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,m&&this.J);this.api.logVisibility(this.channelName,m&&this.J);this.subscribeButton&&(this.subscribeButton.channelId=Q.M4);this.updateValue("expandedTitle",Q.expandedTitle)};g.Z(w8,g.ui);w8.prototype.show=function(){g.ui.prototype.show.call(this);this.S.start()};
w8.prototype.hide=function(){g.ui.prototype.hide.call(this);this.S.stop()};
w8.prototype.Vs=function(D,Q){D==="dataloaded"&&((this.KI=Q.KI,this.HO=Q.HO,isNaN(this.KI)||isNaN(this.HO))?this.T&&(this.D.aI("intro"),this.D.removeEventListener(g.r5("intro"),this.j),this.D.removeEventListener(g.GR("intro"),this.N),this.D.removeEventListener("onShowControls",this.B),this.hide(),this.T=!1):(this.D.addEventListener(g.r5("intro"),this.j),this.D.addEventListener(g.GR("intro"),this.N),this.D.addEventListener("onShowControls",this.B),D=new g.XB(this.KI,this.HO,{priority:9,namespace:"intro"}),
this.D.GY([D]),this.T=!0))};g.Z(kn,g.p);kn.prototype.onClick=function(){this.D.gY()};
kn.prototype.Lh=function(){var D=!0;g.W8(this.D.G())&&(D=D&&this.D.fh().getPlayerSize().width>=480);this.FA(D);D=this.updateValue;var Q=this.D.V("delhi_modern_web_player_icons"),m=Q?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
fill:"white"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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"}}]};Q=Q?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
fill:"white"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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"}}]};D.call(this,"icon",this.D.xP()?m:Q)};g.Z(vWk,g.p);vWk.prototype.Bq=function(){this.S=null;g.p.prototype.Bq.call(this)};g.Z(J_,g.p);J_.prototype.onClick=function(){this.D.sW("innertubeCommand",this.C)};
J_.prototype.j=function(){if(this.D.V("delhi_modern_web_player")){var D=this.D.getPlayerSize();D.width&&(this.element.style.maxWidth=D.width*.25+"px")}};
J_.prototype.Iy=function(D){D!==this.U&&(this.update({chapterTitle:D,ariaLabel:D}),this.U=D);D?this.show():this.hide()};
J_.prototype.TO=function(){this.S.disabled=this.C==null;g.sh(this.S,"ytp-chapter-container-disabled",this.S.disabled);this.mu()};g.Z(lM,J_);lM.prototype.onClickCommand=function(D){g.A(D,ww)&&this.mu()};
lM.prototype.updateVideoData=function(D,Q){var m,P,W;D=g.A((m=Q.getWatchNextResponse())==null?void 0:(P=m.playerOverlays)==null?void 0:(W=P.playerOverlayRenderer)==null?void 0:W.decoratedPlayerBarRenderer,mp);m=g.A(D==null?void 0:D.playerBarActionButton,g.CE);if(this.D.V("web_player_updated_entrypoint")){this.Z=m1(m==null?void 0:m.text);var L;P=(L=m==null?void 0:m.tooltip)!=null?L:"View chapter";this.N.setAttribute("title",P)}this.C=m==null?void 0:m.command;J_.prototype.TO.call(this)};
lM.prototype.mu=function(){var D=this.Z,Q=this.B.S,m,P=((m=this.D.getLoopRange())==null?void 0:m.type)==="clips";if(Q.length>1&&!P){D=this.D.getProgressState().current*1E3;m=qL(Q,D);D=Q[m].title||"Chapters";if(m!==this.currentIndex||this.T)this.D.sW("innertubeCommand",Q[m].onActiveCommand),this.currentIndex=m;this.T=!1}else this.T=!0;J_.prototype.Iy.call(this,D)};g.Z(IF,g.t1);IF.prototype.C=function(){var D;(D=this.element.parentElement)==null||D.classList.contains("ytp-right-controls-left");(this.S=!this.S)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")};
IF.prototype.isExpanded=function(){return this.S};g.Z(RF,g.p);RF.prototype.T=function(D){g.X(D.state,32)?YKm(this,this.api.tf()):this.To&&(g.X(D.state,16)||g.X(D.state,1))||this.fade.hide()};
RF.prototype.onProgress=function(){var D=this.api.getPlayerStateObject();(g.X(D,32)||g.X(D,16))&&aD$(this)};
RF.prototype.B=function(){this.frameIndex=NaN;aD$(this)};
RF.prototype.hide=function(){this.S&&YKm(this,null);g.p.prototype.hide.call(this)};g.Z(AQ4,g.p);g.y=AQ4.prototype;g.y.onClick=function(){var D=this;if(this.D.G().jD||this.D.G().U){this.D.logClick(this.element);try{this.D.toggleFullscreen().catch(function(Q){D.ZC(Q)})}catch(Q){this.ZC(Q)}}else th(this.message,this.element,!0)};
g.y.ZC=function(D){String(D).includes("fullscreen error")?g.l4(D):g.JG(D);this.gy()};
g.y.gy=function(){this.disable();this.message.YJ(this.element,!0)};
g.y.mN=function(){CU()===this.D.getRootNode()?this.T.start():(this.T.stop(),this.message&&this.message.hide())};
g.y.v2=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var D=window.screen.width*.9,Q=window.screen.height*.9,m=Math.max(window.outerWidth,window.innerWidth),P=Math.max(window.outerHeight,window.innerHeight);if(m>P!==D>Q){var W=m;m=P;P=W}D>m&&Q>P&&this.gy()}};
g.y.disable=function(){var D=this;if(!this.message){var Q=(zP(["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.ui(this.D,{K:"div",OW:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},X:[Q[0],{K:"a",Y:{href:"https://support.google.com/youtube/answer/6276924",
target:this.D.G().j},h0:Q[2]},Q[4]]},100,!0);this.message.hide();g.O(this,this.message);this.message.subscribe("show",function(m){D.C.fu(D.message,m)});
g.Q3(this.D,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.S)();this.S=null}};
g.y.Lh=function(){var D=Oi6(this.D),Q=this.D.G().U&&this.D.getPlayerSize().width<250;this.FA(D&&!Q);var m;((m=this.D.G())==null?0:m.V("embeds_use_parent_visibility_in_ve_logging"))?this.D.logVisibility(this.element,this.To&&this.J):this.D.logVisibility(this.element,this.To)};
g.y.ag=function(D){if(D){var Q=g.py(this.D,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.D.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(m){g.l4(m)})}else Q=g.py(this.D,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});
D=pvu(this,D);Q=this.message?null:Q;this.D.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:D}):this.update({"tooltip-title":Q,"aria-label":Q,icon:D});this.C.XZ().QP()};
g.y.Bq=function(){this.message||((0,this.S)(),this.S=null);g.p.prototype.Bq.call(this)};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);var Q;((Q=this.D.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.To&&D)};g.Z(UH,g.p);UH.prototype.onClick=function(){this.D.logClick(this.element);this.D.seekBy(this.S,!0);var D=this.S>0?1:-1,Q=Math.abs(this.S),m=this.D.xF().RA;m&&m.z9(D,Q);this.C.isActive()?this.T=!0:(D=["ytp-jump-spin"],this.S<0&&D.push("backwards"),this.element.classList.add.apply(this.element.classList,g.on(D)),g.xG(this.C))};g.Z(Hx,J_);Hx.prototype.onClickCommand=function(D){g.A(D,oZK)&&this.mu()};
Hx.prototype.updateVideoData=function(){var D,Q;this.C=(D=Xvr(this))==null?void 0:(Q=D.onTap)==null?void 0:Q.innertubeCommand;J_.prototype.TO.call(this)};
Hx.prototype.mu=function(){var D="",Q=this.B.U,m,P=(m=Xvr(this))==null?void 0:m.headerTitle;m=P?g.qC(P):"";var W;P=((W=this.D.getLoopRange())==null?void 0:W.type)==="clips";Q.length>1&&!P&&(D=this.D.getProgressState().current*1E3,W=Sar(Q,D),D=W!=null?Q[W].title:m,W!=null&&W!==this.currentIndex&&(this.D.sW("innertubeCommand",Q[W].onActiveCommand),this.currentIndex=W));J_.prototype.Iy.call(this,D)};g.Z(K$,g.p);K$.prototype.onClick=function(){this.D.sW("onCollapseMiniplayer");this.D.logClick(this.element)};
K$.prototype.Lh=function(){this.visible=!this.D.isFullscreen();this.FA(this.visible);this.D.logVisibility(this.element,this.visible&&this.J)};
K$.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.D.logVisibility(this.element,this.visible&&D)};g.Z(jr,g.p);jr.prototype.init=function(){this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.N);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.S);rQ$(this,this.S)};
jr.prototype.T=function(){$n(this,Number(this.C.value));this.C.focus()};
jr.prototype.U=function(D){if(!D.defaultPrevented){switch(D.code){case "ArrowDown":D=-this.Z;break;case "ArrowUp":D=this.Z;break;default:return}$n(this,Math.min(this.N,Math.max(Number((this.S+D).toFixed(2)),this.B)))}};g.Z(er,jr);er.prototype.onVolumeChange=function(D){if(this.j)this.j=!1;else{var Q=D.volume;Q===0||D.muted?$n(this,0):$n(this,Q)}};
er.prototype.T=function(){jr.prototype.T.call(this);this.TO(this.S)};
er.prototype.Iy=function(D){var Q=-D.deltaY;Q=D.deltaMode===WheelEvent.DOM_DELTA_LINE||D.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.eZ(this.S+Q,0,100):g.eZ(this.S+g.eZ(Q/10,-10,10),0,100);Q===0?$n(this,0):$n(this,Q);this.TO(Q);D.preventDefault();D.stopPropagation()};
er.prototype.Kh=function(D,Q){this.j=!0;D===0||Q?this.D.mute():(this.D.isMuted()&&this.D.unMute(),this.D.setVolume(D))};g.Z(GS_,g.p);g.Z(OH,g.p);g.y=OH.prototype;g.y.FM=function(){if(!this.D.kN()){this.updateValue("dataTooltipOffsetY",-120);var D;(D=this.S)!=null&&vx(D,!0);var Q;(Q=this.S)!=null&&Q.S.stop()}};
g.y.qQ=function(){var D;(D=this.S)!=null&&D.S.start()};
g.y.oV=function(D){this.visible=D.width>=300||this.u0;this.FA(this.visible);this.D.logVisibility(this.element,this.visible&&this.J)};
g.y.Oi=function(){this.D.G().wc?this.D.isMuted()?this.D.unMute():this.D.mute():th(this.message,this.element,!0);this.D.logClick(this.element)};
g.y.zH0=function(D){if(this.D.G().wc&&this.S)if(D.target===this.T){var Q;if(!this.D.kN()||((Q=this.S)==null?0:Q.isVisible))this.Oi();else{var m;(m=this.S)!=null&&vx(m,!0)}}else{var P;(P=this.S)!=null&&vx(P,!0)}else this.Oi()};
g.y.onVolumeChange=function(D){this.setVolume(D.volume,D.muted)};
g.y.setVolume=function(D,Q){var m=this,P=Q?0:D/100;D=P===0?1:D>50?1:0;if(this.j!==D){var W=this.Z;isNaN(W)?mm$(this,D):i_7(this.wc,function(u){mm$(m,W+(m.j-W)*u)},250);
this.j=D}P=P===0?1:0;if(this.U!==P){var L=this.Kh;isNaN(L)?Pw6(this,P):i_7(this.QF,function(u){Pw6(m,L+(m.U-L)*u)},250);
this.U=P}cQw(this,Q)};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);this.D.logVisibility(this.element,this.visible&&D)};
var Dmn=["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"],QUh=["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.Z(g.Yn,g.p);g.y=g.Yn.prototype;g.y.onStateChange=function(D){this.pM(D.state);var Q;((Q=this.D.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.To&&this.J)};
g.y.pM=function(D){var Q=g.Qw(this.D.getVideoData()),m=!1;D.isOrWillBePlaying()?D=Q?4:2:g.X(D,2)?(D=3,m=Q):D=1;this.element.disabled=m;if(this.S!==D){Q=null;switch(D){case 2:Q=g.py(this.D,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:Q="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:Q=g.py(this.D,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:Q="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}D===
3?this.D.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:Wih(this,D)}):this.update({"tooltip-title":Q,icon:Wih(this,D)}):(this.D.V("player_tooltip_data_title_killswitch")?this.update({title:Q}):this.update({"tooltip-title":Q}),(Q=Wih(this,D))&&this.S&&this.S!==3?La6(this.transition,this.element,Q):this.updateValue("icon",Q));this.tooltip.QP();this.S=D}};
g.y.onVideoDataChange=function(){g.sh(this.element,"ytp-play-button-playlist",g.Gv(this.D))};
g.y.LG=function(D){this.D.logClick(this.element);if(this.D.getPlayerStateObject().isOrWillBePlaying())this.D.pauseVideo();else{if(this.D.isMinimized()&&this.D.getPlayerStateObject().isCued()){var Q={},m;if((m=this.D.getVideoData())==null?0:m.N)Q.cttAuthInfo={token:this.D.getVideoData().N,videoId:this.D.getVideoData().videoId};lc("direct_playback",Q);this.D.Dr().timerName="direct_playback"}this.D.playVideo()}this.D.isMinimized()&&(D==null?void 0:D.type)==="click"&&this.element.blur()};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);var Q;((Q=this.D.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.To&&D)};g.Z(g.aF,g.p);g.y=g.aF.prototype;g.y.onVideoDataChange=function(){Li$(this);this.B&&(this.qY(this.B),this.B=null);this.videoData=this.D.getVideoData(1);if(this.playlist=this.D.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.B=this.W(this.D,"progresssync",this.Nn);this.T=uvr(this);sUj(this);this.pA(this.D.fh().getPlayerSize())};
g.y.pA=function(D){D=D===void 0?this.D.fh().getPlayerSize():D;var Q,m=((Q=this.D.getLoopRange())==null?void 0:Q.type)==="clips";Q=g.Gv(this.D)||this.S&&g.mW(this.D)&&!this.D.V("web_hide_next_button")||dmw(this);var P=!this.S&&D.width<400;D=this.D.V("delhi_modern_web_player_horizontal_volume_controls")&&D.width<640;m=Q&&!m&&!P&&!D;this.FA(m);this.D.logVisibility(this.element,m)};
g.y.onClick=function(D){this.D.logClick(this.element);var Q=!0;this.U?Q=g.wg(D,this.D):D.preventDefault();Q&&(this.S&&this.D.getPresentingPlayerType()===5?this.D.publish("ytoprerollinternstitialnext"):this.S?(ZT(this.D.Dr()),this.D.publish("playlistnextbuttonclicked",this.element),this.D.nextVideo(!0)):this.T?this.D.seekTo(0):(ZT(this.D.Dr()),this.D.publish("playlistprevbuttonclicked",this.element),this.D.previousVideo(!0)))};
g.y.Nn=function(){var D=uvr(this);D!==this.T&&(this.T=D,sUj(this))};
g.y.Bq=function(){this.C&&(this.C(),this.C=null);Li$(this);g.p.prototype.Bq.call(this)};g.Z(zwr,g.p);g.y=zwr.prototype;g.y.bF=function(D){this.Gd(D.pageX);this.Ye(D.pageX+D.deltaX);bKh(this)};
g.y.Gd=function(D){this.TO=D-this.u0};
g.y.Ye=function(D){D-=this.u0;!isNaN(this.TO)&&this.thumbnails.length>0&&(this.j=D-this.TO,this.thumbnails.length>0&&this.j!==0&&(this.T=this.Z+this.j,D=VQh(this,this.T),this.T<=this.S/2&&this.T>=ff$(this)?(this.api.seekTo(D,!1,void 0,void 0,25),g.YZ(this.Kh,"transform","translateX("+(this.T-this.S/2)+"px)"),tQ4(this,D)):this.T=this.Z))};
g.y.tB=function(){this.Iy&&(this.Iy.If=!0);var D=(0,g.T3)()-this.k9<300;if(Math.abs(this.j)<5&&!D){this.k9=(0,g.T3)();D=this.TO+this.j;var Q=this.S/2-D;this.Gd(D);this.Ye(D+Q);bKh(this);this.api.logClick(this.N)}bKh(this)};
g.y.QC=function(){A_(this,this.api.getCurrentTime())};
g.y.play=function(D){this.api.seekTo(VQh(this,this.T),void 0,void 0,void 0,26);this.api.playVideo();D&&this.api.logClick(this.playButton)};
g.y.onExit=function(D){this.api.seekTo(this.x9,void 0,void 0,void 0,63);this.api.playVideo();D&&this.api.logClick(this.dismissButton)};
g.y.MB=function(D,Q){this.u0=D;this.S=Q;A_(this,this.api.getCurrentTime())};
g.y.enable=function(){this.isEnabled||(this.isEnabled=!0,this.x9=this.api.getCurrentTime(),tQ4(this,this.x9),g.sh(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.wc=this.W(this.element,"wheel",this.bF),this.logVisibility(this.isEnabled))};
g.y.disable=function(){this.isEnabled=!1;this.hide();g.sh(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.wc&&this.qY(this.wc);this.logVisibility(this.isEnabled)};
g.y.reset=function(){this.disable();this.B=[];this.t0=!1};
g.y.logVisibility=function(D){this.api.logVisibility(this.element,D);this.api.logVisibility(this.N,D);this.api.logVisibility(this.dismissButton,D);this.api.logVisibility(this.playButton,D)};
g.y.Bq=function(){for(;this.C.length;){var D=void 0;(D=this.C.pop())==null||D.dispose()}g.p.prototype.Bq.call(this)};
g.Z(qt7,g.p);g.Z(Cw$,g.p);g.Z(NK6,g.p);g.Z(p$,g.p);p$.prototype.nj=function(D){return D==="PLAY_PROGRESS"?this.Z:D==="LOAD_PROGRESS"?this.U:D==="LIVE_BUFFER"?this.N:this.T};Fim.prototype.update=function(D,Q,m,P){m=m===void 0?0:m;this.width=Q;this.B=m;this.S=Q-m-(P===void 0?0:P);this.position=g.eZ(D,m,m+this.S);this.T=this.position-m;this.C=this.T/this.S};g.Z(TK_,g.p);g.Z(g.Sr,g.t1);g.y=g.Sr.prototype;
g.y.tC=function(){var D=!1,Q=this.api.getVideoData();if(!Q)return D;this.api.aI("timedMarkerCueRange");EJr(this);for(var m=g.T(Q.l0),P=m.next();!P.done;P=m.next()){P=P.value;var W=void 0,L=(W=this.Y9[P])==null?void 0:W.markerType,u=void 0;W=(u=this.Y9[P])==null?void 0:u.markers;if(!W)break;if(L==="MARKER_TYPE_TIMESTAMPS"){D=g.T(W);for(L=D.next();!L.done;L=D.next()){u=L.value;L=new TK_;var t=void 0;L.title=((t=u.title)==null?void 0:t.simpleText)||"";L.timeRangeStartMillis=Number(u.startMillis);L.S=
Number(u.durationMillis);var z=t=void 0;L.onActiveCommand=(z=(t=u.onActive)==null?void 0:t.innertubeCommand)!=null?z:void 0;lfP(this,L)}If$(this,this.U);D=this.U;L=this.aF;u=[];t=null;for(z=0;z<D.length;z++){var b=D[z].timeRangeStartMillis;if(!isNaN(b)&&D[z].onActiveCommand){var q=void 0,C=(q=D[z].S)!=null?q:1E4;t&&t.end>b&&(t.end=b);b=MSr(b,b+C);u.push(b);t=b;L[b.id]=D[z].onActiveCommand}}this.api.GY(u);a:{D=g.T(W);for(W=D.next();!W.done;W=D.next())if(W.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){D=
!1;break a}D=!0}D&&(this.tY=this.Y9[P]);D=!0}else if(L==="MARKER_TYPE_HEATMAP"){P=this.Y9[P];q=b=L=z=t=u=void 0;if(P&&P.markers){W=(L=(q=P.markersMetadata)==null?void 0:(b=q.heatmapMetadata)==null?void 0:b.minHeightDp)!=null?L:0;L=(u=(z=P.markersMetadata)==null?void 0:(t=z.heatmapMetadata)==null?void 0:t.maxHeightDp)!=null?u:60;u=this.S.length;t=null;for(z=0;z<u;z++){q=this.S[z].startTime;C=z===u-1?Infinity:this.S[z+1].startTime;z===this.B.length&&nJ4(this);b=[];t&&b.push(t);for(var f=g.T(P.markers),
V=f.next();!V.done;V=f.next()){V=V.value;var N=Number(V.startMillis);N>=q&&N<=C&&b.push(V)}L>0&&(this.Iy.style.height=L+"px");q=this.B[z];C=b;V=W;var h=L,B=z===0;B=B===void 0?!1:B;yn7(q,h);f=C;N=q.C;B=B===void 0?!1:B;var J=1E3/f.length,k=[];k.push({x:0,y:100});for(var R=0;R<f.length;R++){var e=(R+.5)*J,a=100-g.eZ((f[R].intensityScoreNormalized||0)*100,V/N*100,h/N*100);R!==0||B||k.push({x:0,y:a});k.push({x:e,y:a});R===f.length-1&&k.push({x:1E3,y:a})}k.push({x:1E3,y:100});f=k;C=C.length===0?"":tF6(f);
q.api.V("delhi_modern_web_player")?q.T.setAttribute("d",C):q.N.setAttribute("d",C);q.EC=C!=="";g.sh(q.api.getRootNode(),"ytp-heat-map",q.EC);q.api.V("delhi_modern_web_player")?(q.B.style.display="none",q.S.style.display="none"):q.T.style.display="none";b.length>0&&(t=b[b.length-1])}g.r8(this)}L=void 0;W=[];if(P=(L=P.markersDecoration)==null?void 0:L.timedMarkerDecorations)for(P=g.T(P),L=P.next();!L.done;L=P.next())L=L.value,z=t=u=void 0,W.push({visibleTimeRangeStartMillis:(u=L.visibleTimeRangeStartMillis)!=
null?u:-1,visibleTimeRangeEndMillis:(t=L.visibleTimeRangeEndMillis)!=null?t:-1,decorationTimeMillis:(z=L.decorationTimeMillis)!=null?z:NaN,label:L.label?g.qC(L.label):""});P=W;this.heatMarkersDecorations=P}}Q.QJ=this.U;g.sh(this.element,"ytp-timed-markers-enabled",D);return D};
g.y.MB=function(){g.r8(this);cx(this);If$(this,this.U);if(this.C){var D=g.GH(this.element).x||0;this.C.MB(D,this.N)}};
g.y.Mtx=function(){var D=this.api.getVideoData();D&&af9(this,D)};
g.y.onClickCommand=function(D){if(D=g.A(D,ww)){var Q=D.key;D.isVisible&&Q&&Kim(this,Q)}};
g.y.eHT=function(D){this.api.sW("innertubeCommand",this.aF[D.id])};
g.y.mu=function(){cx(this);var D=this.api.getCurrentTime();(D<this.clipStart||D>this.clipEnd)&&this.Me()};
g.y.lK=function(D){if(!D.defaultPrevented){var Q=!1;switch(D.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Q=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&iA(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);Q=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&iA(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),Q=!0}Q&&D.preventDefault()}};
g.y.Vs=function(D,Q){this.updateVideoData(Q,D==="newdata")};
g.y.Yo=function(){this.Vs("newdata",this.api.getVideoData())};
g.y.updateVideoData=function(D,Q){Q=Q===void 0?!1:Q;var m=!!D&&D.EC();m&&(h2(D)||OK9(this)?this.Kd=!1:this.Kd=D.allowLiveDvr,g.sh(this.api.getRootNode(),"ytp-enable-live-buffer",!(D==null||!h2(D))),af9(this,D));WYw(this,this.api.I_());if(Q){if(m){Q=D.clipEnd;this.clipStart=D.clipStart;this.clipEnd=Q;sP(this);for(mk(this,this.TO,this.gB);this.B.length>0;)this.B.pop().dispose();this.heatMarkersDecorations=[];this.Kj={};var P;(P=this.C)==null||P.reset();zC(this);g.sh(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
X8(this))}else this.Me();this.Qy()}if(D){var W;P=((W=this.Or)==null?void 0:W.type)==="clips";if(W=!D.isLivePlayback){W=this.api.getVideoData();Q=g.P1(W);m=BKn(W);var L;W=Q!=null||m!=null&&m.length>0||((L=W.md)==null?void 0:L.length)>0}if(W&&!P){L=this.api.getVideoData();P=g.P1(L);W=!1;if(P==null?0:P.markersMap){W=this.api.getVideoData();var u;W.OI=((u=P.visibleOnLoad)==null?void 0:u.key)||W.OI;u=g.T(P.markersMap);for(P=u.next();!P.done;P=u.next())P=P.value,P.key&&P.value&&(this.Kj[P.key]=P.value,
P.value.onChapterRepeat&&(W.H6h=P.value.onChapterRepeat));W.OI!=null&&Kim(this,W.OI);W=!0}var t;if(((t=L.md)==null?void 0:t.length)>0){t=g.kA.getState().entities;u=g.T(L.md);for(P=u.next();!P.done;P=u.next()){P=P.value;m=void 0;Q=(m=Qu(t,"macroMarkersListEntity",P))==null?void 0:m.markersList;var z=m=void 0;if(((m=Q)==null?void 0:m.markerType)==="MARKER_TYPE_TIMESTAMPS"||((z=Q)==null?void 0:z.markerType)==="MARKER_TYPE_HEATMAP")this.Y9[P]=Q}W=this.tC()||W}!W&&(t=BKn(L))&&(kxw(this,t),L.tY=this.S,
wyw(this));Anm(this,null);D.iX&&this.B.length===0&&(D=D.iX,t=D.key,D.isVisible&&t&&Kim(this,t))}else hw_(this),EJr(this)}cx(this)};
g.y.GW=function(D){this.Z&&!g.X(D.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var Q;((Q=this.C)==null?0:Q.isEnabled)&&g.X(D.state,8)&&this.api.pauseVideo();D=this.api.getPresentingPlayerType()===2||!this.api.I_()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.sh(this.ZD,"ytp-hide-scrubber-button",D)};
g.y.ym=function(D){var Q=!!this.Or!==!!D,m=this.Or;this.Or=D;Anm(this,m);(D==null?void 0:D.type)!=="clips"&&D||(D?(this.updateValue("clipstarticon",F9$()),this.updateValue("clipendicon",F9$()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",qI_()),this.updateValue("clipendicon",bU$()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),Q&&(this.updateVideoData(this.api.getVideoData(),
!0),g.r8(this)),sP(this));mk(this,this.TO,this.gB)};
g.y.UYT=function(){this.api.publish("progressBarHoverStart")};
g.y.kcT=function(D,Q,m){var P=g.GH(this.element),W=ML(this).S,L=m?m.getAttribute("data-tooltip"):void 0,u=m?m.getAttribute("data-position"):void 0,t=m?m.getAttribute("data-offset-y"):void 0;t=t?Number(t):0;u&&(D=U9(this.T,Number(m.getAttribute("data-position")),0)*W+g.GH(this.progressBar).x);this.jD.x=D-P.x;this.jD.y=Q-P.y;D=ML(this);m=Wa(this,D);Q=0;var z;if((z=this.api.getVideoData())==null?0:h2(z))(z=this.api.getProgressState().seekableEnd)&&m>z&&(m=z,D.position=U9(this.T,z)*ML(this).S),Q=this.T.C;
OK9(this)&&(Q=this.T.C);z=L||g.ns(this.Kd?m-this.T.S:m-Q);Q=D.position+this.H1;m-=this.api.m2();var b;if((b=this.C)==null||!b.isEnabled)if(this.api.tf()){if(this.S.length>1){b=Pa(this,this.jD.x,!0);if(!this.Or)for(P=0;P<this.S.length;)g.sh(this.S[P].S,"ytp-exp-chapter-hover-effect",P===b),P++;if(this.B.length>1)for(P=0;P<this.S.length;P++)g.sh(this.B[P].element,"ytp-heatmap-hover",P===b)}if(this.U.length>0)for(b=this.jD.x,P=g.T(this.U),W=P.next();!W.done;W=P.next())W=W.value,u=G6(this,W.timeRangeStartMillis/
(this.T.S*1E3),ML(this)),g.sh(W.element,"ytp-timed-marker-hover",u<=b&&u+6>=b);P=this.tooltip.scale;b=this.api.V("delhi_modern_web_player")?67:45;t=(isNaN(t)?0:t)-b*P;this.api.V("web_key_moments_markers")?this.tY?(b=Sar(this.U,m*1E3),b=b!=null?this.U[b].title:""):(b=qL(this.S,m*1E3),b=this.S[b].title):(b=qL(this.S,m*1E3),b=this.S[b].title);b||(t+=16*P);this.tooltip.scale===.6&&(g.EO(this.api.G())?(t=this.api.fh().getPlayerSize().height-225,P=this.api.V("delhi_modern_web_player")?70:110,t=b?t+P:t+
P+16):t=b?110:126);P=qL(this.S,m*1E3);this.t0=xmP(this,m,P)?P:xmP(this,m,P+1)?P+1:-1;g.sh(this.api.getRootNode(),"ytp-progress-bar-snap",this.t0!==-1&&this.S.length>1);P=!1;W=g.T(this.heatMarkersDecorations);for(u=W.next();!u.done;u=W.next()){u=u.value;var q=m*1E3;q>=u.visibleTimeRangeStartMillis&&q<=u.visibleTimeRangeEndMillis&&(b=u.label,z=g.ns(u.decorationTimeMillis/1E3),this.api.V("web_heat_marker_use_current_time")&&(z=g.ns(Wa(this,D))),P=!0)}this.HO!==P&&(this.HO=P,this.api.logVisibility(this.gi,
this.HO));g.sh(this.api.getRootNode(),"ytp-progress-bar-decoration",P);P=160*this.tooltip.scale*2;W=b.length*(this.j?8.55:5.7);W=W<=P?W:P;u=W<160*this.tooltip.scale;P=3;!u&&W/2>D.position&&(P=1);!u&&W/2>this.N-D.position&&(P=2);this.api.G().U&&(t-=10);this.B.length&&this.B[0].EC&&(t-=14*(this.j?2:1),this.x9||(this.x9=!0,this.api.logVisibility(this.Iy,this.x9)));var C;if(X8(this)&&(((C=this.C)==null?0:C.isEnabled)||this.l0>0)){var f;t-=((f=this.C)==null?0:f.isEnabled)?uA(this):this.l0}C=void 0;X8(this)&&
!this.api.V("web_player_hide_fine_scrubbing_edu")&&(C="Pull up for precise seeking",this.u0||(this.u0=!0,this.api.logVisibility(this.zY,this.u0)));this.tooltip.kh(Q,m,z,!!L,t,b,P,C)}else this.tooltip.kh(Q,m,z,!!L,t);g.mQ(this.api.getRootNode(),"ytp-progress-bar-hover");vJn(this)};
g.y.qmF=function(){this.Qy();g.Wo(this.api.getRootNode(),"ytp-progress-bar-hover");this.x9&&(this.x9=!1,this.api.logVisibility(this.Iy,this.x9));this.u0&&(this.u0=!1,this.api.logVisibility(this.zY,this.u0));this.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")};
g.y.xYO=function(D,Q){var m=g.GH(this.element);this.Ze=D-m.x;X8(this)&&this.C&&(this.C.t0?A_(this.C,this.api.getCurrentTime()):oJ$(this.C),this.C.show(),g.sh(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.C.isEnabled));this.F2&&(this.F2.dispose(),this.F2=null);this.uS=Q;this.WO=this.api.getCurrentTime();this.S.length>1&&this.t0!==-1?this.api.seekTo(this.S[this.t0].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Wa(this,ML(this)),!1,void 0,void 0,7);g.mQ(this.element,"ytp-drag");(this.VA=
this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
g.y.rx9=function(){if(X8(this)&&this.C){var D=uA(this);this.l0>=D*.5?(this.C.enable(),A_(this.C,this.api.getCurrentTime()),Per(this,D)):zC(this)}if(g.X(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Q;if((Q=this.C)==null?0:Q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.S.length>1&&this.t0!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&iA(this,this.WO,this.S[this.t0].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.S[this.t0].startTime/1E3,void 0,void 0,void 0,7);else{D=Wa(this,ML(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&iA(this,this.WO,D,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(D,void 0,void 0,void 0,7);Q=g.T(this.heatMarkersDecorations);for(var m=Q.next();!m.done;m=Q.next())m=m.value,D*1E3>=m.visibleTimeRangeStartMillis&&D*1E3<=m.visibleTimeRangeEndMillis&&
this.api.logClick(this.gi)}g.Wo(this.element,"ytp-drag");this.QF&&(this.Kh.src=this.QF);this.VA&&!g.X(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.y.zkD=function(D,Q){var m=this,P=ML(this),W=Wa(this,P);this.api.fh().dY||(P.position>this.Ze+2?this.dn&&(this.Kh.src=this.dn):P.position<this.Ze-2?this.kJ&&(this.Kh.src=this.kJ):this.QF&&(this.Kh.src=this.QF),setTimeout(function(){var u=g.GH(m.element).x||0;m.Ze=D-u},150));
this.api.seekTo(W,!1,void 0,void 0,7);var L;X8(this)&&((L=this.C)==null?0:L.t0)&&(A_(this.C,W),this.C.isEnabled||(P=uA(this),this.l0=g.eZ(this.uS-Q-10,0,P),Per(this,this.l0)))};
g.y.Qy=function(){this.tooltip.AS()};
g.y.Kl=function(){this.Or||(this.updateValue("clipstarticon",zWk()),this.updateValue("clipendicon",zWk()),g.mQ(this.element,"ytp-clip-hover"))};
g.y.Re=function(){this.Or||(this.updateValue("clipstarticon",qI_()),this.updateValue("clipendicon",bU$()),g.Wo(this.element,"ytp-clip-hover"))};
g.y.Me=function(){this.clipStart=0;this.clipEnd=Infinity;sP(this);mk(this,this.TO,this.gB)};
g.y.Bav=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.visible){var m=Q.getId();if(!this.k9[m]){var P=g.qi("DIV");Q.tooltip&&P.setAttribute("data-tooltip",Q.tooltip);this.k9[m]=Q;this.pj[m]=P;g.Dx(P,Q.style);Xy$(this,m);this.api.G().V("disable_ad_markers_on_content_progress_bar")||this.S[0].B.appendChild(P)}}else m2u(this,Q)};
g.y.Um0=function(D){D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())m2u(this,Q.value)};
g.y.uv=function(D){this.C&&(this.C.onExit(D!=null),zC(this))};
g.y.xM=function(D){this.C&&(this.C.play(D!=null),zC(this))};
g.y.R$y=function(){WYw(this,this.api.I_())};
g.y.Bq=function(){WYw(this,!1);g.t1.prototype.Bq.call(this)};g.Z(bA,g.p);bA.prototype.isActive=function(){return!!this.D.getOption("remote","casting")};
bA.prototype.Lh=function(){var D=!1;this.D.getOptions().includes("remote")&&(D=this.D.getOption("remote","receivers").length>1);this.FA(D&&this.D.fh().getPlayerSize().width>=400);this.D.logVisibility(this.element,this.To);var Q=1;D&&this.isActive()&&(Q=2);if(this.S!==Q){this.S=Q;D=this.D.V("delhi_modern_web_player_icons");switch(Q){case 1:this.updateValue("icon",D?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
fill:"white"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{K:"path",Rt:!0,Y:{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",
D?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{K:"path",Y:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
fill:"white"}}]}:g.t0j())}g.sh(this.element,"ytp-remote-button-active",this.isActive())}};
bA.prototype.C=function(){if(this.D.getOption("remote","quickCast"))this.D.setOption("remote","quickCast",!0);else{var D=this.Cj,Q=this.element;if(D.UZ())D.eJ();else{D.initialize();a:{var m=g.T(D.RF.items);for(var P=m.next();!P.done;P=m.next())if(P=P.value,P.priority===1){m=P;break a}m=null}m&&(m.open(),D.YJ(Q));D.YJ(Q)}}this.D.logClick(this.element)};g.Z(qY,g.p);qY.prototype.S=function(D){var Q=this.D.G(),m=400;this.D.V("web_player_small_hbp_settings_menu")&&Q.N?m=300:Q.U&&(m=200);D=this.C&&D.width>=m;this.FA(D);this.D.V("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,D&&this.J):this.D.logVisibility(this.element,D)};
qY.prototype.T=function(){if(this.Cj.To)this.Cj.eJ();else{var D=g.JD(this.D.HY());D&&!D.loaded&&(D.hf("tracklist",{includeAsr:!0}).length||D.load());this.D.logClick(this.element);this.Cj.YJ(this.element)}};
qY.prototype.updateBadge=function(){var D=this.D.isHdr(),Q=this.D.getPresentingPlayerType(),m=Q!==2&&Q!==3,P=g.DZ(this.D),W=m&&!!g.cU(this.D.HY());Q=W&&P.displayMode===1;P=W&&P.displayMode===2;m=(W=Q||P)||!m?null:this.D.getPlaybackQuality();g.sh(this.element,"ytp-hdr-quality-badge",D);g.sh(this.element,"ytp-hd-quality-badge",!D&&(m==="hd1080"||m==="hd1440"));g.sh(this.element,"ytp-4k-quality-badge",!D&&m==="hd2160");g.sh(this.element,"ytp-5k-quality-badge",!D&&m==="hd2880");g.sh(this.element,"ytp-8k-quality-badge",
!D&&m==="highres");g.sh(this.element,"ytp-3d-badge-grey",!D&&W&&Q);g.sh(this.element,"ytp-3d-badge",!D&&W&&P)};g.Z(Cu,gg);Cu.prototype.isLoaded=function(){var D=g.KW(this.D.HY());return D!==void 0&&D.loaded};
Cu.prototype.Lh=function(){g.KW(this.D.HY())!==void 0&&this.D.getPresentingPlayerType()!==3?this.S||(this.Cj.CM(this),this.S=!0):this.S&&(this.Cj.Vi(this),this.S=!1);Bj(this,this.isLoaded())};
Cu.prototype.onSelect=function(D){this.isLoaded();D?this.D.loadModule("annotations_module"):this.D.unloadModule("annotations_module");this.D.publish("annotationvisibility",D)};
Cu.prototype.Bq=function(){this.S&&this.Cj.Vi(this);gg.prototype.Bq.call(this)};g.Z(o_,g.jK);o_.prototype.Lh=function(){var D=this.D.getAvailableAudioTracks();D.length>1?(this.Rg(g.fk(D,this.S)),this.tracks=g.r$(D,this.S,this),this.countLabel.Sk(D.length?" ("+D.length+")":""),this.publish("size-change"),this.I4(this.S(this.D.getAudioTrack())),this.enable(!0)):this.enable(!1)};
o_.prototype.NJ=function(D){g.jK.prototype.NJ.call(this,D);this.D.setAudioTrack(this.tracks[D]);this.D.publish("audiopreferencechange");this.Cj.hn()};
o_.prototype.S=function(D){return D.toString()};
o_.prototype.sJ=function(D){this.D.V("html5_enable_new_audio_settings_menu")?this.C&&(D?this.C.CM(this):this.C.Vi(this)):g.jK.prototype.sJ.call(this,D)};g.Z(s07,g.q$);g.y=s07.prototype;g.y.QW=function(){this.D.QW()};
g.y.open=function(){g.JA(this.Cj,this.Em)};
g.y.US=function(){this.Em.Lm()>0&&this.D.getPresentingPlayerType()!==2&&this.D.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};
g.y.lK=function(D){D.defaultPrevented||(this.open(),D.preventDefault())};
g.y.CM=function(D){this.Em.CM(D)};
g.y.Vi=function(D){this.Em.Vi(D)};g.Z(fu,gg);
fu.prototype.US=function(){var D=this.D.getPresentingPlayerType();if(D!==2&&D!==3&&g.mW(this.D))this.S||(this.Cj.CM(this),this.S=!0,this.C.push(this.W(this.D,"videodatachange",this.US)),this.C.push(this.W(this.D,"videoplayerreset",this.US)),this.C.push(this.W(this.D,"onPlaylistUpdate",this.US)),this.C.push(this.W(this.D,"autonavchange",this.T)),D=this.D.getVideoData(),this.T(D.autonavState),this.D.logVisibility(this.element,this.S));else if(this.S){this.Cj.Vi(this);this.S=!1;D=g.T(this.C);for(var Q=
D.next();!Q.done;Q=D.next())this.qY(Q.value)}};
fu.prototype.T=function(D){Bj(this,D!==1)};
fu.prototype.onSelect=function(D){this.D.yH(D?2:1);this.S&&(this.D.logVisibility(this.element,this.S),this.D.logClick(this.element))};
fu.prototype.Bq=function(){this.S&&this.Cj.Vi(this);gg.prototype.Bq.call(this)};g.Z(LYP,g.q$);LYP.prototype.onClick=function(D){D.preventDefault();var Q,m;(Q=g.jh(this.D))==null||(m=Q.jc())==null||m.eJ();var P,W;(P=g.jh(this.D))==null||(W=P.Uw())==null||W.YJ(D.target)};g.Z(usj,g.jK);g.y=usj.prototype;
g.y.US=function(){var D=this.D.getPresentingPlayerType();if(D!==2&&D!==3){this.Iy=this.D.wx();var Q=this.D.getAvailableQualityLevels();if(this.S){this.C={};D=g.Iv(this.D,"getAvailableQualityData",[]);D=g.T(D);for(var m=D.next();!m.done;m=D.next())m=m.value,this.C[m.qualityLabel]=m;D=Object.keys(this.C);Q[Q.length-1]==="auto"&&D.push("auto");this.Kh=new Set(Q)}else if(this.B){m=g.Iv(this.D,"getAvailableQualityData",[]);D=[];m=g.T(m);for(var P=m.next();!P.done;P=m.next())P=P.value,this.U[P.quality]=
P,P.quality&&D.push(P.quality);Q[Q.length-1]==="auto"&&D.push("auto")}else D=Q;g.nej(this.D)&&this.D.rC()&&D.unshift("missing-qualities");Q=this.D.app.Zx();m=Q.getVideoData();if(!m.C||!m.C.video||m.C.video.qualityOrdinal<1080||m.I6)Q=!1;else{P=/^qsa/.test(m.clientPlaybackNonce);var W="r";m.C.id.indexOf(";")>=0&&(P=/^[a-p]/.test(m.clientPlaybackNonce),W="x");P?(Q.dc("iqss",{trigger:W},!0),Q=!0):Q=!1}Q&&D.unshift("inline-survey");this.Rg(D);Q=this.D.getVideoData().cotn?!0:!1;m=this.TO.kP();m=!g.EO(this.D.G())||
!(Q===void 0?0:Q)||!(m===void 0||m);Q=this.Em;m=m===void 0?!1:m;Q.uZ&&g.sh(Q.Dx("ytp-panel-footer"),"ytp-panel-hide-footer",m===void 0?!1:m);if(D.length){this.ea();this.enable(!0);return}}this.enable(!1)};
g.y.ea=function(){if(this.S){var D=this.D.getPreferredQuality();this.Kh.has(D)&&(this.N=this.D.getPlaybackQuality(),this.j=this.D.getPlaybackQualityLabel(),D==="auto"?(this.I4(D),this.Sk(this.BF(D))):this.I4(this.j))}else D=this.D.getPreferredQuality(),this.options[D]&&(this.N=this.D.getPlaybackQuality(),this.I4(D),D==="auto"&&this.Sk(this.BF(D)))};
g.y.NJ=function(D){if(D!=="missing-qualities"){g.jK.prototype.NJ.call(this,D);var Q=this.S?this.C[D]:this.U[D];var m=Q==null?void 0:Q.quality,P=Q==null?void 0:Q.formatId,W=Q==null?void 0:Q.paygatedQualityDetails;Q=W==null?void 0:W.endpoint;if(W){var L;W=(L=this.options[D])==null?void 0:L.element;this.D.logClick(W)}if(this.S){var u,t;if((u=g.A(Q,g.di2))==null?0:(t=u.popup)==null?0:t.notificationActionRenderer)this.D.sW("innertubeCommand",Q);else if(Q){this.D.sW("innertubeCommand",Q);return}P?this.D.setPlaybackQuality(m,
P):this.D.setPlaybackQuality(m)}else{if(this.B){var z,b;if((z=g.A(Q,g.di2))==null?0:(b=z.popup)==null?0:b.notificationActionRenderer)this.D.sW("innertubeCommand",Q);else if(Q){this.D.sW("innertubeCommand",Q);return}}this.D.setPlaybackQuality(D)}this.Cj.eJ();this.US()}};
g.y.open=function(){for(var D=g.T(Object.values(this.options)),Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var m=void 0;this.D.hasVe((m=Q)==null?void 0:m.element)&&(m=void 0,this.D.logVisibility((m=Q)==null?void 0:m.element,!0))}g.jK.prototype.open.call(this);this.D.logClick(this.element)};
g.y.SI=function(D,Q,m){var P=this;if(D==="missing-qualities")return new g.q$({K:"a",OW:["ytp-menuitem"],Y:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.D.G().j,tabindex:"0",role:"menuitemradio"},X:[{K:"div",OW:["ytp-menuitem-label"],h0:"{{label}}"}]},Q,this.BF(D));if(D!=="inline-survey"){var W,L=(W=this.S?this.C[D]:this.U[D])==null?void 0:W.paygatedQualityDetails;W=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;Q=g.jK.prototype.SI.call(this,D,Q,m);L?(this.D.createServerVe(Q.element,
this,!0),this.D.setTrackingParams(Q.element,L)):W&&this.D.createClientVe(Q.element,this,W,!0);return Q}D=[{K:"span",h0:"Looks good?"}];m=g.T([!0,!1]);L=m.next();for(W={};!L.done;W={lB:void 0},L=m.next())W.lB=L.value,L=new g.p({K:"span",L:"ytp-menuitem-inline-survey-response",X:[W.lB?ZU7():ot9()],Y:{tabindex:"0",role:"button"}}),L.listen("click",function(u){return function(){var t=P.D.app.Zx();t.dc("iqsr",{tu:u.lB});t.getVideoData().I6=!0;P.Cj.eJ();P.US()}}(W)),D.push(L);
return new g.q$({K:"div",L:"ytp-menuitem",Y:{"aria-disabled":"true"},X:[{K:"div",OW:["ytp-menuitem-label"],X:D}]},Q)};
g.y.BF=function(D,Q){Q=Q===void 0?!1:Q;if(D==="missing-qualities")return{K:"div",h0:"Missing options?"};if(D==="inline-survey")return"";var m=this.B||this.S?[zC_(this,D,Q,!1)]:[tgw(this,D)];var P=this.D.getPreferredQuality();Q||P!=="auto"||D!=="auto"||(m.push(" "),this.S?m.push(zC_(this,this.j,Q,!0,["ytp-menu-label-secondary"])):this.B?m.push(zC_(this,this.N,Q,!0,["ytp-menu-label-secondary"])):m.push(tgw(this,this.N,["ytp-menu-label-secondary"])));return{K:"div",X:m}};g.Z(VW,jr);VW.prototype.T=function(){jr.prototype.T.call(this);this.j&&bvm(this)};
VW.prototype.QF=function(){this.TO()};
VW.prototype.Kh=function(){this.D.setPlaybackRate(this.S,!0)};
VW.prototype.U=function(D){jr.prototype.U.call(this,D);this.TO();bvm(this);D.preventDefault()};g.Z(NY,g.p);g.y=NY.prototype;g.y.init=function(){this.RC(this.S);this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.T)};
g.y.HV=function(D){if(!D.defaultPrevented){switch(D.keyCode){case 37:case 40:var Q=-this.Z;break;case 39:case 38:Q=this.Z;break;default:return}this.RC(this.S+Q);D.preventDefault()}};
g.y.bq=function(D){var Q=this.S;Q+=(D.deltaX||-D.deltaY)<0?-this.j:this.j;this.RC(Q);D.preventDefault()};
g.y.QZ=function(D){D=(D-g.GH(this.B).x)/this.TO*this.range+this.C;this.RC(D)};
g.y.RC=function(D,Q){Q=Q===void 0?"":Q;D=g.eZ(D,this.C,this.T);Q===""&&(Q=D.toString());this.updateValue("valuenow",D);this.updateValue("valuetext",Q);this.Iy.style.left=(D-this.C)/this.range*(this.TO-this.t0)+"px";this.S=D};
g.y.focus=function(){this.wc.focus()};g.Z(yW,NY);yW.prototype.Kh=function(){this.D.setPlaybackRate(this.S,!0)};
yW.prototype.RC=function(D){NY.prototype.RC.call(this,D,Ce$(this,D).toString());this.N&&(qA9(this),this.QF())};
yW.prototype.updateValues=function(){var D=this.D.getPlaybackRate();Ce$(this,this.S)!==D&&(this.RC(D),qA9(this))};g.Z(oXw,g.t1);oXw.prototype.focus=function(){this.S.focus()};g.Z(fC_,gQ);g.Z(NN_,g.jK);g.y=NN_.prototype;g.y.BF=function(D){return D==="1"?"Normal":D.toLocaleString()};
g.y.Lh=function(){var D,Q=(D=this.D.getVideoData())==null?void 0:D.xB();D=this.D.getPresentingPlayerType(Q);this.enable(D!==2&&D!==3);FYn(this)};
g.y.Rg=function(D){g.jK.prototype.Rg.call(this,D);this.U&&this.U.C.focus()};
g.y.sJ=function(D){g.jK.prototype.sJ.call(this,D);D?(this.TO=this.W(this.D,"onPlaybackRateChange",this.onPlaybackRateChange),FYn(this),yI7(this,this.D.getPlaybackRate())):(this.qY(this.TO),this.TO=null)};
g.y.onPlaybackRateChange=function(D){var Q=this.D.getPlaybackRate();!this.B&&this.j.includes(Q)||Zvw(this,Q);yI7(this,D)};
g.y.SI=function(D,Q,m){return D===this.S&&hC6(this.D)?g.jK.prototype.SI.call(this,D,Q,m,{K:"div",L:"ytp-speed-slider-menu-footer",X:[this.U]}):D===this.C&&Vgu(this.D,this.Iy)?TNn(this,D,Q,m):g.jK.prototype.SI.call(this,D,Q,m)};
g.y.NJ=function(D){g.jK.prototype.NJ.call(this,D);D===this.C?this.D.sW("innertubeCommand",this.Iy):D===this.S?this.D.setPlaybackRate(this.N,!0):this.D.setPlaybackRate(Number(D),!0);hC6(this.D)&&D===this.S||this.Cj.hn()};
g.y.Db=function(D){var Q=D===this.S;this.B=!1;Q&&Zs(this.D)&&!hC6(this.D)?(D=new fC_(this.D),g.JA(this.Cj,D)):g.jK.prototype.Db.call(this,D)};g.Z(EXw,g.jK);g.y=EXw.prototype;g.y.I4=function(D){g.jK.prototype.I4.call(this,D)};
g.y.V$=function(D){return D.option.toString()};
g.y.getOption=function(D){return this.settings[D]};
g.y.BF=function(D){return this.getOption(D).text||""};
g.y.NJ=function(D){g.jK.prototype.NJ.call(this,D);this.publish("settingChange",this.setting,this.settings[D].option)};g.Z(TC,g.BJ);TC.prototype.kt=function(D){for(var Q=g.T(Object.keys(D)),m=Q.next();!m.done;m=Q.next()){var P=m.value;if(m=this.BL[P]){var W=D[P].toString();P=!!D[P+"Override"];m.options[W]&&(m.I4(W),m.C.element.setAttribute("aria-checked",String(!P)),m.S.element.setAttribute("aria-checked",String(P)))}}};
TC.prototype.WF=function(D,Q){this.publish("settingChange",D,Q)};g.Z(hO,g.jK);hO.prototype.S=function(D){return D.languageCode};
hO.prototype.BF=function(D){return this.languages[D].languageName||""};
hO.prototype.NJ=function(D){this.publish("select",D);this.D.logClick(this.element);g.l_(this.Cj)};g.Z(wk9,g.jK);g.y=wk9.prototype;g.y.vN=function(D){return g.b7(D)?"__off__":D.displayName};
g.y.BF=function(D){return D==="__off__"?"Off":D==="__translate__"?"Auto-translate":D==="__contribute__"?"Add subtitles/CC":D==="__correction__"?"Suggest caption corrections":(D==="__off__"?{}:this.tracks[D]).displayName};
g.y.NJ=function(D){if(D==="__translate__")this.S.open();else if(D==="__contribute__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var Q=g.Nj(this.D.G(),this.D.getVideoData());g.AF(Q)}else if(D==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var m=kjr(this);nu(this,m);g.jK.prototype.NJ.call(this,this.vN(m));var P,W;m=(Q=this.D.getVideoData().getPlayerResponse())==null?void 0:(P=Q.captions)==null?void 0:(W=P.playerCaptionsTracklistRenderer)==
null?void 0:W.openTranscriptCommand;this.D.sW("innertubeCommand",m);this.Cj.hn();this.C&&this.D.logClick(this.C)}else{if(D==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();Q=kjr(this);nu(this,Q);g.jK.prototype.NJ.call(this,this.vN(Q));var L,u;Q=(m=this.D.getVideoData().getPlayerResponse())==null?void 0:(L=m.captions)==null?void 0:(u=L.playerCaptionsTracklistRenderer)==null?void 0:u.openTranscriptCommand;this.D.sW("innertubeCommand",Q)}else this.D.logClick(this.element),
nu(this,D==="__off__"?{}:this.tracks[D]),g.jK.prototype.NJ.call(this,D);this.Cj.hn()}};
g.y.Lh=function(){var D=this.D.getOptions();D=D&&D.indexOf("captions")!==-1;var Q=this.D.getVideoData(),m=Q&&Q.gQ,P,W=!((P=this.D.getVideoData())==null||!g.Zn(P));P={};if(D||m){var L;if(D){var u=this.D.getOption("captions","track");P=this.D.getOption("captions","tracklist",{includeAsr:!0});var t=W?[]:this.D.getOption("captions","translationLanguages");this.tracks=g.r$(P,this.vN,this);W=g.fk(P,this.vN);var z,b;kjr(this)&&((L=Q.getPlayerResponse())==null?0:(z=L.captions)==null?0:(b=z.playerCaptionsTracklistRenderer)==
null?0:b.openTranscriptCommand)&&W.push("__correction__");if(t.length&&!g.b7(u)){if((L=u.translationLanguage)&&L.languageName){var q=L.languageName;L=t.findIndex(function(C){return C.languageName===q});
J47(t,L)}gX$(this.S,t);W.push("__translate__")}L=this.vN(u)}else this.tracks={},W=[],L="__off__";W.unshift("__off__");this.tracks.__off__={};m&&W.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=u,W.push(L));this.Rg(W);this.I4(L);u&&u.translationLanguage?this.S.I4(this.S.S(u.translationLanguage)):Ou7(this.S);D&&this.B.kt(this.D.getSubtitlesUserSettings());this.countLabel.Sk(P&&P.length?" ("+P.length+")":"");this.publish("size-change");this.D.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.y.OQ=function(D){var Q=this.D.getOption("captions","track");Q=g.o2(Q);Q.translationLanguage=this.S.languages[D];nu(this,Q)};
g.y.WF=function(D,Q){if(D==="reset")this.D.resetSubtitlesUserSettings();else{var m={};m[D]=Q;this.D.updateSubtitlesUserSettings(m)}BN7(this,!0);this.N.start();this.B.kt(this.D.getSubtitlesUserSettings())};
g.y.K$F=function(D){D||g.SH(this.N)};
g.y.Bq=function(){g.SH(this.N);g.jK.prototype.Bq.call(this)};
g.y.open=function(){g.jK.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.D.createClientVe(this.C,this,167341),this.D.logVisibility(this.C,!0))};g.Z(JI7,g.k$);g.y=JI7.prototype;
g.y.initialize=function(){if(!this.isInitialized){var D=this.D.G();this.isInitialized=!0;try{this.C_=new usj(this.D,this)}catch(m){g.l4(Error("QualityMenuItem creation failed"))}g.O(this,this.C_);var Q=new wk9(this.D,this);g.O(this,Q);D.T||(Q=new Cu(this.D,this),g.O(this,Q));D.enableSpeedOptions&&(Q=new NN_(this.D,this),g.O(this,Q));(g.W8(D)||D.N)&&(D.C||D.k9)&&(Q=new LYP(this.D,this),g.O(this,Q));D.kB&&!D.V("web_player_move_autonav_toggle")&&(Q=new fu(this.D,this),g.O(this,Q));D.V("html5_enable_new_audio_settings_menu")?
(this.YR=new s07(this.D,this),g.O(this,this.YR)):(D=new o_(this.D,this),g.O(this,D));this.D.publish("settingsMenuInitialized");ivk(this.settingsButton,this.RF.Lm())}};
g.y.CM=function(D){this.initialize();this.RF.CM(D);ivk(this.settingsButton,this.RF.Lm())};
g.y.Vi=function(D){this.To&&this.RF.Lm()<=1&&this.hide();this.RF.Vi(D);ivk(this.settingsButton,this.RF.Lm())};
g.y.YJ=function(D){this.initialize();this.RF.Lm()>0&&g.k$.prototype.YJ.call(this,D)};
g.y.eJ=function(){this.Ne?this.Ne=!1:g.k$.prototype.eJ.call(this)};
g.y.show=function(){g.k$.prototype.show.call(this);g.mQ(this.D.getRootNode(),"ytp-settings-shown")};
g.y.hide=function(){g.k$.prototype.hide.call(this);g.Wo(this.D.getRootNode(),"ytp-settings-shown")};
g.y.sS=function(D){this.D.logVisibility(this.element,D);this.D.publish("settingsMenuVisibilityChanged",D)};g.Z(RC$,g.p);g.y=RC$.prototype;g.y.onClick=function(){if(EP(this)&&(this.D.toggleSubtitles(),this.D.logClick(this.element),!this.isEnabled())){var D=!1,Q=g.KU(g.H5(),65);g.EO(this.D.G())&&Q!=null&&(D=!Q);D&&this.D.G().V("web_player_nitrate_promo_tooltip")&&this.D.publish("showpromotooltip",this.element)}};
g.y.ws0=function(D){var Q,m;(Q=g.jh(this.D))==null||(m=Q.jc())==null||m.YJ(D)};
g.y.isEnabled=function(){var D=this.D.getOption("captions","track");return!(!D||!D.displayName)};
g.y.Lh=function(){var D=EP(this),Q=300;this.D.G().U&&(Q=480);this.D.V("delhi_modern_web_player_icons")&&this.updateValue("icon",ICw(this));if(this.D.G().N){this.updateValue("title",g.py(this.D,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.py(this.D,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var m=D}else{if(D)(m=this.Dx("ytp-subtitles-button-icon"))==null||m.setAttribute("fill-opacity","1"),this.D.G().V("player_tooltip_data_title_killswitch")?
this.updateValue("title",g.py(this.D,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.py(this.D,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.D.V("delhi_modern_web_player_icons")){var P;(P=this.Dx("ytp-subtitles-button-icon"))==null||P.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var W;(W=this.Dx("ytp-subtitles-button-icon"))==null||W.setAttribute("fill-opacity","0.3")}this.updateValue("title",
"Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}m=!0}this.tooltip.QP();m=m&&this.D.fh().getPlayerSize().width>=Q;this.FA(m);this.D.V("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,m&&this.J):this.D.logVisibility(this.element,m);D?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);this.D.G().V("embeds_use_parent_visibility_in_ve_logging")&&this.D.logVisibility(this.element,this.To&&D)};g.Z(g.Ba,g.p);g.y=g.Ba.prototype;g.y.canShowCountdown=function(){return!k6(this)&&!wa(this)};
g.y.mu=function(){var D=this.api.fh().getPlayerSize().width,Q=this.j;this.api.G().U&&(Q=400);Q=D>=Q&&(!wa(this)||!g.X(this.api.getPlayerStateObject(),64));this.FA(Q);g.sh(this.element,"ytp-time-display-allow-autohide",Q&&D<400);D=this.api.getProgressState();if(Q){var m=this.api.getPresentingPlayerType();Q=this.api.getCurrentTime(m,!1);this.C&&(Q-=D.airingStart);k6(this)&&(Q-=this.Or.startTimeMs/1E3);this.canShowCountdown()&&this.T&&(Q-=this.api.getDuration(m,!1));var P=g.ns(Q);this.B!==P&&(this.updateValue("currenttime",
P),this.B=P);m=k6(this)?(this.Or.endTimeMs-this.Or.startTimeMs)/1E3:this.api.getDuration(m,!1);P=g.ns(m);this.N!==P&&(this.updateValue("duration",P),this.N=P,Q&&(Q=g.LZ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ns(Q,!0),DURATION:g.ns(m,!0)}),this.updateValue("timeDisplayAriaLabel",Q)))}U2u(this,D.isAtLiveHead);Hvk(this,this.api.getLoopRange())};
g.y.onLoopRangeChange=function(D){var Q=this.Or!==D;this.Or=D;Q&&(this.mu(),KY6(this))};
g.y.L$9=function(){this.api.setLoopRange(null)};
g.y.glT=function(){this.T=!this.T;this.mu()};
g.y.onVideoDataChange=function(D,Q,m){this.updateVideoData((this.api.G().V("enable_topsoil_wta_for_halftime")||this.api.G().V("enable_topsoil_wta_for_halftime_live_infra"))&&m===2?this.api.getVideoData(1):Q);this.mu();KY6(this)};
g.y.updateVideoData=function(D){this.y9=D.isLivePlayback&&!D.oy;this.C=h2(D);this.isPremiere=D.isPremiere;g.sh(this.element,"ytp-live",wa(this));this.api.V("delhi_modern_web_player")&&this.Dx("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())};
g.y.onClick=function(D){D.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.y.Bq=function(){this.S&&this.S();g.p.prototype.Bq.call(this)};g.Z($24,g.p);g.y=$24.prototype;g.y.mN=function(){var D=this.api.UN();this.T!==D&&(this.T=D,j06(this,this.api.getVolume(),this.api.isMuted()))};
g.y.xm=function(D){this.FA(D.width>=350)};
g.y.vV=function(D){if(!D.defaultPrevented){var Q=D.keyCode,m=null;Q===37?m=this.volume-5:Q===39?m=this.volume+5:Q===36?m=0:Q===35&&(m=100);m!==null&&(m=g.eZ(m,0,100),m===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(m)),D.preventDefault())}};
g.y.uq=function(D){var Q=D.deltaX||-D.deltaY;D.deltaMode?this.api.setVolume(this.volume+(Q<0?-10:10)):this.api.setVolume(this.volume+g.eZ(Q/10,-10,10));D.preventDefault()};
g.y.tkx=function(){JO(this,this.S,!0,this.C,this.api.kN());this.j=this.volume;this.api.isMuted()&&this.api.unMute()};
g.y.Ji=function(D){var Q=this.T?78:52,m=this.T?18:12;D-=g.GH(this.Z).x;this.api.setVolume(g.eZ((D-m/2)/(Q-m),0,1)*100)};
g.y.N2c=function(){JO(this,this.S,!1,this.C,this.api.kN());this.volume===0&&(this.api.mute(),this.api.setVolume(this.j))};
g.y.onVolumeChange=function(D){j06(this,D.volume,D.muted)};
g.y.QD=function(){JO(this,this.S,this.isDragging,this.C,this.api.kN())};
g.y.Bq=function(){g.p.prototype.Bq.call(this);g.Wo(this.U,"ytp-volume-slider-active")};g.Z(lA,g.p);
lA.prototype.onVideoDataChange=function(){var D=this.api.G();this.MB();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).RI;this.FA(this.visible);this.api.logVisibility(this.element,this.visible&&this.J);if(this.visible){var Q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Q)}D.T&&(this.S&&(this.qY(this.S),this.S=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.mQ(this.element,"no-link"));
Q=this.api.G();D=this.api.getVideoData();var m="";Q.T||(Q=g.ZW(Q),Q.indexOf("www.")===0&&(Q=Q.substring(4)),m=g.ny(D)?"Watch on YouTube Music":Q==="youtube.com"?"Watch on YouTube":g.LZ("Watch on $WEBSITE",{WEBSITE:Q}));this.api.V("player_tooltip_data_title_killswitch")?this.updateValue("title",m):this.updateValue("tooltip-title",m)};
lA.prototype.onClick=function(D){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=this.api.G(),m=this.api.getVideoUrl(!g.E9(D),!1,!0,!0);if(g.W8(Q)){var P={};g.W8(Q)&&g.Iv(this.api,"addEmbedsConversionTrackingParams",[P]);m=g.oz(m,P)}g.k_(m,this.api,D);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
lA.prototype.MB=function(){var D={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{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 "}}]},
Q=28666,m=this.api.getVideoData();this.api.isEmbedsShortsMode()?D={K:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{K:"path",Y:{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.ny(m)&&(D={K:"svg",Y:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},X:[{K:"path",Y:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",Y:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
fill:"white"}},{K:"path",Y:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",Y:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",Y:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
fill:"white"}},{K:"path",Y:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",Y:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
fill:"white"}},{K:"path",Y:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",Y:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
fill:"white"}},{K:"path",Y:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
fill:"white"}},{K:"path",Y:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",Y:{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"}}]},Q=216163);g.ny(m)?g.mQ(this.element,"ytp-youtube-music-button"):g.Wo(this.element,"ytp-youtube-music-button");D.Y=Object.assign({},D.Y,{"aria-hidden":"true"});this.updateValue("logoSvg",D);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Q,!0)};
lA.prototype.aj=function(D){g.p.prototype.aj.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};g.Z(Ovm,g.gO);g.y=Ovm.prototype;g.y.onProgress=function(){if(this.D.V("web_player_max_seekable_on_ended")||!g.X(this.D.getPlayerStateObject(),2))eM(this.fO),this.progressBar.mu(),this.wc.mu()};
g.y.M_=function(){this.EV();if(eM(this.fO))this.progressBar.Qy();else this.onProgress()};
g.y.eK=function(){this.onProgress();this.j.start()};
g.y.EV=function(){var D;if(D=!this.D.G().C){D=this.progressBar;var Q=2*g.ne()*D.N,m=D.T;D=(m.S-m.C)*1E3/D.api.getPlaybackRate()/Q<300}D=D&&this.D.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Q=!D;eM(this.fO)&&(D=Q=!1);Q?this.Kh||(this.Kh=this.W(this.D,"progresssync",this.onProgress)):this.Kh&&(this.qY(this.Kh),this.Kh=null);D?this.j.isActive()||this.j.start():this.j.stop()};
g.y.MB=function(){var D=this.D.UN(),Q=this.D.fh().getPlayerSize(),m=this.D.fh().dY,P=aCm(this),W=AIr(this),L=Math.max(Q.width-P*2,100);if(this.gB!==Q.width||this.jD!==D||this.D.V("web_player_rtr_ctrls")&&this.n8!==m)this.gB=Q.width,this.jD=D,this.n8=m,this.C.element.style.width=W+"px",this.C.element.style.left=P+"px",g.Q0j(this.progressBar,P,W,D),this.D.XZ().Up=W;m=this.B;L=Math.min(570*(D?1.5:1),L);D=Math.min(413*(D?1.5:1),Math.round((Q.height-pkw(this))*.82));m.maxWidth=L;m.maxHeight=D;m.oW();this.EV();
this.hU&&eJw(this.oy,Q.height)};
g.y.onVideoDataChange=function(){var D=this.D.getVideoData();this.Y9.style.background=D.RI?D.Wy:"";this.Iy&&xnm(this.Iy,D.showSeekingControls);this.TO&&xnm(this.TO,D.showSeekingControls)};
g.y.nj=function(){return this.C.element};g.Z(x2_,EB);g.y=x2_.prototype;g.y.Ph=function(D){D.target!==this.dismissButton.element&&(this.onClickCommand&&this.D.sW("innertubeCommand",this.onClickCommand),this.bY())};
g.y.bY=function(){this.enabled=!1;this.j.hide()};
g.y.onVideoDataChange=function(D,Q){D==="dataloaded"&&Xk7(this);D=[];var m,P,W,L;if(Q=(L=g.A((m=Q.getWatchNextResponse())==null?void 0:(P=m.playerOverlays)==null?void 0:(W=P.playerOverlayRenderer)==null?void 0:W.suggestedActionsRenderer,j$v))==null?void 0:L.suggestedActions)for(m=g.T(Q),P=m.next();!P.done;P=m.next())(P=g.A(P.value,$iv))&&g.A(P.trigger,KOP)&&D.push(P);if(D.length!==0){m=[];D=g.T(D);for(P=D.next();!P.done;P=D.next())if(P=P.value,W=g.A(P.trigger,KOP))L=(L=P.title)?g.qC(L):"View Chapters",
Q=W.timeRangeStartMillis,W=W.timeRangeEndMillis,Q!=null&&W!=null&&P.tapCommand&&(m.push(new g.XB(Q,W,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=P.tapCommand);this.D.GY(m)}};
g.y.ZL=function(){return this.enabled};
g.y.sS=function(){this.enabled?this.x9.start():hA(this);this.j6()};
g.y.Bq=function(){Xk7(this);EB.prototype.Bq.call(this)};var Bv={},UP=(Bv.CHANNEL_NAME="ytp-title-channel-name",Bv.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Bv.LINK="ytp-title-link",Bv.SESSIONLINK="yt-uix-sessionlink",Bv.SUBTEXT="ytp-title-subtext",Bv.TEXT="ytp-title-text",Bv.TITLE="ytp-title",Bv);g.Z(Ha,g.p);Ha.prototype.onClick=function(D){this.api.logClick(this.element);var Q=this.api.G(),m=this.api.getVideoUrl(!g.E9(D),!1,!0);g.W8(Q)&&(Q={},g.Iv(this.api,"addEmbedsConversionTrackingParams",[Q]),m=g.oz(m,Q));g.k_(m,this.api,D)};
Ha.prototype.Lh=function(){var D=this.api.getVideoData(),Q=this.api.G();this.updateValue("title",D.title);var m={K:"a",L:UP.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},h0:"{{channelName}}"};this.api.G().T&&(m={K:"span",L:UP.CHANNEL_NAME,h0:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",m);SAk(this);this.api.getPresentingPlayerType()===2&&(m=this.api.getVideoData(),m.videoId&&m.isListed&&m.author&&m.jD&&m.profilePicture?(this.updateValue("channelLink",
m.jD),this.updateValue("channelName",m.author),this.updateValue("channelTitleFocusable","0")):SAk(this));m=Q.externalFullscreen||!this.api.isFullscreen()&&Q.M5;g.sh(this.link,UP.FULLERSCREEN_LINK,m);Q.Iy||!D.videoId||m||D.RI||Q.T?this.S&&(this.updateValue("url",null),this.qY(this.S),this.S=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.S||(this.S=this.W(this.link,"click",this.onClick)));Q.T&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.W8(Q)?D.expandedTitle:
D.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.Z(g.Ku,g.p);g.y=g.Ku.prototype;g.y.setEnabled=function(D){if(this.type!=null)if(D)switch(this.type){case 3:case 2:jV(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.U=D};
g.y.kh=function(D,Q,m,P,W,L,u,t){if(!this.QF||this.env.U){this.type===3&&this.Qy();this.type!==1&&(g.Dx(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.U&&this.fade.show(),this.C&&this.C.dispose(),(this.C=this.api.tf())&&this.C.subscribe("l",this.OX,this));if(t){var z=g.Dr(this.bg).height||141;this.t0.style.bottom=z+2+"px"}else this.t0.style.display="none";this.env.V("delhi_modern_web_player")?(this.update({pillTimeStamp:m,pillTitle:L!=null?L:"",eduText:t!=null?t:""}),g.mQ(this.element,"ytp-tooltip-progress-bar-style")):
(this.update({text:m,title:L!=null?L:"",eduText:t!=null?t:""}),g.sh(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L));this.api.isInline()&&g.mQ(this.bottomText,"ytp-modern-tooltip-text");g.sh(this.element,"ytp-text-detail",!!P);m=-1;this.C&&(m=bH(this.C,243*this.scale),this.env.V("web_l3_storyboard")&&this.C.levels.length===4&&(m=this.C.levels.length-1),m=r56(this.C,m,Q));cIm(this,m);if(u)switch(Q=g.Dr(this.element).width,u){case 1:this.title.style.right="0";this.title.style.textAlign=
"left";break;case 2:this.title.style.right=Q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Q/2+"px",this.title.style.textAlign="center"}Mgr(this,!!P,D,W)}};
g.y.AS=function(){this.type===1&&this.Qy()};
g.y.IX=function(D,Q){if(this.type)if(this.type===3)this.Qy();else return;rIk(this,D,3,Q)};
g.y.QP=function(){this.S&&!this.Z&&(this.env.V("player_tooltip_data_title_killswitch")?this.S.hasAttribute("title")&&(this.T=this.S.getAttribute("title")||"",this.S.removeAttribute("title"),this.U&&jV(this)):this.S.hasAttribute("data-tooltip-title")&&(this.T=this.S.getAttribute("data-tooltip-title")||"",this.S.removeAttribute("data-tooltip-title"),this.U&&jV(this)))};
g.y.OX=function(D,Q){D<=this.B&&this.B<=Q&&(D=this.B,this.B=NaN,cIm(this,D))};
g.y.FG=function(){XQ6(this.C,this.B,243*this.scale)};
g.y.Qy=function(){switch(this.type){case 2:var D=this.S;D.removeEventListener("mouseout",this.j);D.addEventListener("mouseover",this.N);D.removeEventListener("blur",this.j);D.addEventListener("focus",this.N);D__(this);break;case 3:D__(this);break;case 1:this.C&&(this.C.unsubscribe("l",this.OX,this),this.C=null),this.api.removeEventListener("videoready",this.TO),this.Iy.stop()}this.type=null;this.U&&this.fade.hide()};
g.y.Ko=function(){if(this.S)for(var D=0;D<arguments.length;D++)g.y0(arguments[D],this.S)&&this.Qy()};
g.y.Bq=function(){this.type!=null&&this.Qy();this.C&&this.C.dispose();g.p.prototype.Bq.call(this)};g.Z(m_4,g.p);g.y=m_4.prototype;g.y.Vx=function(){this.visible=Pg6(this);this.FA(this.visible);this.icon&&iH4(this,this.icon);this.D.logVisibility(this.element,this.visible&&this.J)};
g.y.YV=function(){return this.D.getVideoData().videoId};
g.y.onClick=function(){this.D.logClick(this.element);var D=this.D.G(),Q=this.YV();D.Kh?QK6(this):Wym(this,Q)};
g.y.onReset=function(){this.isRequestPending=this.S=!1;this.Lh(2);this.Vx()};
g.y.Lh=function(D,Q){var m=this.D.G();iH4(this,D);Q?this.D.V("player_tooltip_data_title_killswitch")?this.update({title:Q,image:null}):this.update({"tooltip-title":Q,image:null}):m.userDisplayName?(D={USER_NAME:m.userDisplayName},this.D.V("player_tooltip_data_title_killswitch")?this.update({title:this.S?g.LZ("Added as $USER_NAME",D):g.LZ("Watch later as $USER_NAME",D),image:I8(m)}):this.update({"tooltip-title":this.S?g.LZ("Added as $USER_NAME",D):g.LZ("Watch later as $USER_NAME",D),image:I8(m)})):
this.D.V("player_tooltip_data_title_killswitch")?this.update({title:"Watch later",image:null}):this.update({"tooltip-title":"Watch later",image:null});this.D.QP()};
g.y.aj=function(D){g.p.prototype.aj.call(this,D);this.D.logVisibility(this.element,this.visible&&D)};g.Z(sK4,g.GI);g.y=sK4.prototype;
g.y.init=function(){var D=this;this.l7=new g.D8(this.api);this.api.V("web_player_delhi_dtts")?this.RA=new h_(this.api):this.RA=new Fg7(this.api);this.rl=new g.p({K:"div",L:"ytp-chrome-top"});this.tooltip=new g.Ku(this.api,this);this.channelAvatar=new Pl7(this.api);this.title=new Ha(this.api);this.Ld=new g.LX({K:"div",L:"ytp-chrome-top-buttons"});this.yA=new SLm(this.api,this.rl.element);this.Mp=this.api.G().controlsType==="1"?new Ovm(this.api,this,this.fO):null;this.contextMenu=new fth(this.api,this.l7);
this.Ih=new g.p({K:"div",Y:{tabindex:"0"}});this.TZ=new g.p({K:"div",Y:{tabindex:"0"}});var Q=this.api.fh(),m=this.api.G(),P=this.api.getVideoData();this.AZ&&(g.mQ(this.api.getRootNode(),"ytp-embed"),g.mQ(this.api.getRootNode(),"ytp-embed-playlist"),this.P$&&(g.mQ(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.mQ(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Ay=60,this.WH=89);this.api.G().T&&g.mQ(this.api.getRootNode(),"ytp-embed-pfl");this.api.G().C&&(g.mQ(this.api.getRootNode(),
"ytp-mobile"),this.api.G().U&&g.mQ(this.api.getRootNode(),"ytp-embed-mobile"));P&&P.videoId&&(this.W1=P&&P.getEmbeddedPlayerResponse());g.O(this,this.l7);g.Q3(this.api,this.l7.element,4);g.O(this,this.RA);g.Q3(this.api,this.RA.element,4);P=new g.p({K:"div",L:"ytp-gradient-top"});g.O(this,P);g.Q3(this.api,P.element,1);this.a6=new g.mF(P,250,!0,100);g.O(this,this.a6);g.O(this,this.rl);g.Q3(this.api,this.rl.element,1);this.Po=new g.mF(this.rl,250,!0,100);g.O(this,this.Po);g.O(this,this.tooltip);g.Q3(this.api,
this.tooltip.element,4);var W=new Lvr(this.api);g.O(this,W);g.Q3(this.api,W.element,5);W.subscribe("show",function(z){D.OF(W,z)});
this.wr.push(W);this.Yf=new y8(this.api,W);g.O(this,this.Yf);!this.AZ&&(this.ac&&this.api.V("delhi_modern_web_player")?this.ac.s3(this.Yf.element,2):this.Yf.b0(this.rl.element));g.O(this,this.channelAvatar);this.channelAvatar.b0(this.rl.element);g.O(this,this.title);this.title.b0(this.rl.element);this.AZ&&(P=new $n7(this.api),g.O(this,P),P.b0(this.rl.element));g.O(this,this.Ld);this.ac?(this.Ld.element.setAttribute("data-overlay-order","3"),this.ac.s3(this.Ld.element,2)):this.Ld.b0(this.rl.element);
var L=new nWP(this.api,this);g.O(this,L);g.Q3(this.api,L.element,5);L.subscribe("show",function(z){D.OF(L,z)});
this.wr.push(L);this.searchButton=new T6(this.api);g.O(this,this.searchButton);this.searchButton.b0(this.Ld.element);P=this.api.G().getWebPlayerContextConfig();this.Qr=new m_4(this.api);g.O(this,this.Qr);(P==null?0:P.hideTopWatchNextButton)||this.Qr.b0(this.Ld.element);this.shareButton=new n$(this.api,this,L);g.O(this,this.shareButton);(P==null?0:P.hideTopShareButton)||this.shareButton.b0(this.Ld.element);this.copyLinkButton=new uM(this.api,this);g.O(this,this.copyLinkButton);this.copyLinkButton.b0(this.Ld.element);
this.AZ&&this.Yf.b0(this.Ld.element);g.O(this,this.yA);this.yA.b0(this.Ld.element);m.m_&&(P=new w8(this.api),g.O(this,P),g.Q3(this.api,P.element,4));m.T||(P=new rxP(this.api,this.yA),g.O(this,P),P.b0(this.Ld.element));this.xt=new P09(this.api);g.O(this,this.xt);g.Q3(this.api,this.xt.element,5);this.xt.subscribe("show",function(){D.OF(D.xt,D.xt.UZ())});
this.wr.push(this.xt);this.overflowButton=new NL(this.api,this.xt);g.O(this,this.overflowButton);this.overflowButton.b0(this.Ld.element);this.Mp&&g.O(this,this.Mp);m.controlsType==="3"&&(P=new F8(this.api),g.O(this,P),g.Q3(this.api,P.element,9));g.O(this,this.contextMenu);this.contextMenu.subscribe("show",this.uX,this);this.Ih.listen("focus",this.lz,this);g.O(this,this.Ih);this.TZ.listen("focus",this.iz,this);g.O(this,this.TZ);var u;(this.TK=m.Ik?null:new Dnr(this.api,Q,this.contextMenu,this.fO,this.l7,
this.RA,function(){return D.HI()},(u=this.Mp)==null?void 0:u.progressBar))&&g.O(this,this.TK);
this.AZ||(this.VS=new hN9(this.api),g.O(this,this.VS),this.ac?this.ac.s3(this.VS.element,3):g.Q3(this.api,this.VS.element,4),this.Fh=new JQk(this.api),g.O(this,this.Fh),this.ac?this.ac.s3(this.Fh.element,3):g.Q3(this.api,this.Fh.element,4));this.us=new x2_(this.api);g.O(this,this.us);this.ac?this.ac.s3(this.us.element,3):g.Q3(this.api,this.us.element,4);if(this.AZ){var t=new Oq6(this.api,this.api.G().k9);g.O(this,t);g.Q3(this.api,t.element,5);t.subscribe("show",function(z){D.OF(t,z)});
Q=new pwn(this.api,t);g.O(this,Q);g.Q3(this.api,Q.element,4)}this.Wh.push(this.l7.element);this.W(this.api,"fullscreentoggled",this.mN);this.W(this.api,"offlineslatestatechange",function(){D.api.jj()&&$0(D.fO,128,!1)});
this.W(this.api,"cardstatechange",function(){D.j$()});
this.W(this.api,"resize",this.dBT);this.W(this.api,"videoplayerreset",this.onReset);this.W(this.api,"showpromotooltip",this.L2z);g.GI.prototype.init.call(this)};
g.y.XZ=function(){return this.tooltip};
g.y.RR=function(){return this.Mp};
g.y.OF=function(D,Q){Q?this.i4=D:this.i4=null;this.j$()};
g.y.fu=function(D,Q){if(Q)this.nk.push(D);else for(Q=this.nk.length;Q>=0;Q--)if(this.nk[Q]===D){this.nk.splice(Q,1);break}$0(this.fO,64,this.nk.length>0)};
g.y.Zv=function(){this.api.nF()&&this.api.x0();return!!this.i4||Ly4(this)||g.GI.prototype.Zv.call(this)};
g.y.j$=function(){var D=!this.Zv(),Q=D&&this.api.nF()&&!g.X(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().RI&&!this.api.G().T&&!this.api.isEmbedsShortsMode(),m=this.AZ&&g.Gv(this.api)&&g.X(this.api.getPlayerStateObject(),128);D||m?(this.Po.show(),this.a6.show()):(this.Po.hide(),this.a6.hide(),this.api.Ko(this.rl.element));Q?this.yA.YJ():this.yA.eJ();this.Mp&&YAk(this.Mp,this.l$D||!D);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&uxn(this);g.GI.prototype.j$.call(this)};
g.y.GK=function(D,Q,m,P,W){D.style.left="";D.style.top="";D.style.bottom="";var L=g.Dr(D),u=P||this.Mp&&g.y0(this.Mp.nj(),Q),t=P=null;m!=null&&u||(P=g.Dr(Q),t=g.Mi(Q,this.api.getRootNode()),m==null&&(m=t.x+P.width/2));m-=L.width/2;u?(Q=this.Mp,P=aCm(Q),t=AIr(Q),u=this.api.fh().getPlayerSize().height,m=g.eZ(m,P,P+t-L.width),L=u-pkw(Q)-L.height):g.y0(this.rl.element,Q)?(Q=this.api.fh().getPlayerSize().width,m=g.eZ(m,12,Q-L.width-12),L=this.UN()?this.WH:this.Ay,this.api.G().playerStyle==="gvn"&&(L+=
20),this.AZ&&(L-=this.UN()?26:18)):(Q=this.api.fh().getPlayerSize(),m=g.eZ(m,12,Q.width-L.width-12),L=t.y>(Q.height-P.height)/2?t.y-L.height-12:t.y+P.height+12);D.style.top=L+(W||0)+"px";D.style.left=m+"px"};
g.y.M_=function(D){D&&(this.api.Ko(this.rl.element),this.Mp&&this.api.Ko(this.Mp.nj()));this.P$&&(g.sh(this.contextMenu.element,"ytp-autohide",D),g.sh(this.contextMenu.element,"ytp-autohide-active",!0));g.GI.prototype.M_.call(this,D)};
g.y.Xm=function(){g.GI.prototype.Xm.call(this);this.P$&&(g.sh(this.contextMenu.element,"ytp-autohide-active",!1),this.P$&&(this.contextMenu.hide(),this.xt&&this.xt.hide()))};
g.y.eg=function(D,Q){var m=this.api.fh().getPlayerSize();m=new g.ee(0,0,m.width,m.height);if(D||!eM(this.fO)&&!this.Zv()){if(this.api.G().Tq||Q)D=this.UN()?this.WH:this.Ay,m.top+=D,m.height-=D;this.Mp&&(m.height-=pkw(this.Mp))}return m};
g.y.mN=function(D){var Q=this.api.getRootNode();D?Q.parentElement?(Q.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.G().externalFullscreen||(Q.parentElement.insertBefore(this.Ih.element,Q),Q.parentElement.insertBefore(this.TZ.element,Q.nextSibling))):g.JG(Error("Player not in DOM.")):(Q.setAttribute("aria-label","YouTube Video Player"),this.Ih.detach(),this.TZ.detach());this.MB();this.EM()};
g.y.UN=function(){if(this.api.V("web_player_use_screen_width_for_big_mode")){var D;return this.api.fh().getPlayerSize().width>=((D=g.WF(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?D:2E3)}D=this.api.G();return this.api.isFullscreen()&&!D.U||!1};
g.y.showControls=function(D){this.MP=!D;this.j$()};
g.y.MB=function(){var D=this.UN();this.tooltip.scale=D?1.5:1;this.contextMenu&&g.sh(this.contextMenu.element,"ytp-big-mode",D);this.j$();this.api.V("web_player_hide_overflow_button_if_empty_menu")||uxn(this);this.EM();var Q=this.api.isEmbedsShortsMode();Q&&D?(D=(this.api.fh().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.YZ(this.rl.element,"padding-left",D+"px"),g.YZ(this.rl.element,"padding-right",D+"px")):Q&&(g.YZ(this.rl.element,"padding-left",""),g.YZ(this.rl.element,"padding-right",
""));g.GI.prototype.MB.call(this)};
g.y.Ea=function(){if(Ly4(this)&&!g.Gv(this.api))return!1;var D=this.api.getVideoData();return!g.W8(this.api.G())||this.api.getPresentingPlayerType()===2||!this.W1||((D=this.W1||D.W1)?(D=D.embedPreview)?(D=D.thumbnailPreviewRenderer,D=D.videoDetails&&g.A(D.videoDetails,lej)||null):D=null:D=null,D&&D.collapsedRenderer&&D.expandedRenderer)?g.GI.prototype.Ea.call(this):!1};
g.y.EM=function(){g.GI.prototype.EM.call(this);this.api.logVisibility(this.title.element,!!this.aH);this.Yf&&this.Yf.aj(!!this.aH);this.channelAvatar.aj(!!this.aH);this.overflowButton&&this.overflowButton.aj(this.Px()&&!!this.aH);this.shareButton&&this.shareButton.aj(!this.Px()&&!!this.aH);this.Qr&&this.Qr.aj(!this.Px()&&!!this.aH);this.searchButton&&this.searchButton.aj(!this.Px()&&!!this.aH);this.copyLinkButton&&this.copyLinkButton.aj(!this.Px()&&!!this.aH);if(!this.aH){this.api.Ko(this.rl.element);
for(var D=0;D<this.wr.length;D++){var Q=this.wr[D];Q.UZ()&&Q.eJ()}}};
g.y.Bn=function(D){this.Mp&&YAk(this.Mp,this.Zv());this.j$();g.GI.prototype.Bn.call(this,D)};
g.y.handleGlobalKeyDown=function(D,Q,m,P,W,L,u,t){return this.TK?this.TK.handleGlobalKeyDown(D,Q,m,P,W,L,u,t):!1};
g.y.handleGlobalKeyUp=function(D,Q,m,P,W,L,u){return this.TK?this.TK.handleGlobalKeyUp(D,Q,m,P,W,L,u):!1};
g.y.HI=function(){if(this.contextMenu.To)return this.contextMenu.eJ(),!0;if(this.nk.length)return this.nk[this.nk.length-1].eJ(),!0;if(this.i4)return this.i4.eJ(),!0;this.Mp&&this.api.Ko(this.Mp.nj());this.Ld&&this.api.Ko(this.Ld.element);return g.GI.prototype.HI.call(this)};
g.y.p_=function(D,Q){this.qM=Q;this.fu(D,Q);this.uX()};
g.y.uX=function(){var D=this.qM||this.contextMenu.UZ();this.uD!==D&&(this.uD=D,this.api.sW("onAutonavPauseRequest",this.uD))};
g.y.lz=function(){d_r(this,this.api.getRootNode(),!0).focus()};
g.y.iz=function(){d_r(this,this.api.getRootNode(),!1).focus()};
g.y.jc=function(){return this.Mp&&this.Mp.B};
g.y.YI=function(){this.fO.YI()};
g.y.cJ=function(){this.l7.hide()};
g.y.T4=function(D){this.l7.T4(!D.isOrWillBePlaying())};
g.y.Qp=function(D,Q,m,P){this.RA.Qp(D,Q,m,P)};
g.y.renderChapterSeekingAnimation=function(D,Q,m){this.RA.zG(D,Q,m)};
g.y.dBT=function(){tp7(this,!0)};
g.y.onReset=function(){uxn(this)};
g.y.L2z=function(D){tp7(this,!1,D)};
g.y.Uw=function(){return this.contextMenu};
g.y.Fj=function(D,Q){var m;if((m=this.Mp)!=null){var P=Number(D.element.getAttribute("data-priority"))||0,W=0,L=m.T.element;Q&&m.D.V("delhi_modern_web_player")&&(L=m.T.Dx(I_[Q]));Q=g.T(L.children);for(m=Q.next();!(m.done||P<(Number(m.value.getAttribute("data-priority"))||0));m=Q.next())W++;D.b0(L,W)}};
g.y.uv=function(){var D,Q=(D=this.Mp)==null?void 0:D.progressBar;if(Q){var m;((m=Q.C)==null?0:m.isEnabled)&&Q.uv()}};
g.y.s3=function(D,Q,m){var P;(P=this.ac)==null||P.s3(D,Q,m)};g.Z(g.$6,g.nW);g.$6.prototype.po=function(){return!1};
g.$6.prototype.create=function(){var D=this.player.G();g.jY(D)&&D.C||D.disableOrganicUi?this.chrome=new g.GI(this.player):this.chrome=new sK4(this.player);g.O(this,this.chrome);this.chrome.init();this.player.wi("ux")};
g.$6.prototype.xF=function(){return this.chrome};var eV=[],LC_=!1;g.Z(va,g.v);va.prototype.U=function(){this.S!=null&&this.app.getVideoData()!==this.S&&Fi(this.S)&&UE_(this.app,this.S,void 0,void 0,this.T)};
va.prototype.N=function(){if(this.S!=null&&this.app.getVideoData()!==this.S&&this.C!=null&&this.B!=null&&this.J!=null&&Fi(this.S)){var D=qC7(this.C,this.B,this.J);D==null?UE_(this.app,this.S,void 0,void 0,this.T):(this.C.dc("sgap",D),this.C.getVideoData().U&&this.C.qR(!1),this.app.G().V("html5_remove_loop_range_on_gapless_fallback")&&(Rc(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
va.prototype.Z=function(D){var Q=this.app.Zx();if(Q){var m=this.app.getCurrentTime();Math.abs(m-D.end/1E3)>5&&Q.dc("glrs",{cmt:m});Q.seekTo(0,{seekSource:58});Q.dc("glrre",{cmt:m})}};
va.prototype.Bq=function(){this.S=null;g.v.prototype.Bq.call(this)};g.Z(g.OP,J$);g.y=g.OP.prototype;g.y.isView=function(){return!0};
g.y.Qz=function(){var D=this.mediaElement.getCurrentTime();if(D<this.start)try{var Q=this.mediaElement.jb(),m=bs(Q,D);return!(this.start<m)}catch(P){}return!1};
g.y.U_=function(){return f2(this.mediaElement.U_(),this.start,this.end)};
g.y.jb=function(){return f2(this.mediaElement.jb(),this.start,this.end)};
g.y.Yr=function(){return f2(this.mediaElement.Yr(),this.start,this.end)};
g.y.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.y.setCurrentTime=function(D){this.mediaElement.setCurrentTime(D+this.start)};
g.y.getDuration=function(){return isFinite(this.end)&&!this.S?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.y.play=function(){if(this.Qz()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(D){}}return this.mediaElement.play()};
g.y.yX=function(){var D=J$.prototype.yX.call(this);D.view=this.start+"-"+this.end;return D};
g.y.addEventListener=function(D,Q){this.mediaElement.addEventListener(D,Q)};
g.y.removeEventListener=function(D,Q){this.mediaElement.removeEventListener(D,Q)};
g.y.Im=function(){return this.mediaElement.Im()};
g.y.activate=function(D){this.mediaElement.activate(D)};
g.y.Hk=function(){return this.mediaElement.Hk()};
g.y.playVideo=function(){return this.mediaElement.playVideo()};
g.y.t6=function(){this.mediaElement.t6()};
g.y.Ri=function(){this.mediaElement.Ri()};
g.y.Qg=function(){return this.mediaElement.Qg()};
g.y.nj=function(){return this.mediaElement.nj()};
g.y.Nb=function(){return this.mediaElement.Nb()};
g.y.Ho=function(D){this.mediaElement.Ho(D)};
g.y.F1=function(){this.mediaElement.F1()};
g.y.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.y.setPlaybackRate=function(D){return this.mediaElement.setPlaybackRate(D)};
g.y.Wr=function(){return this.mediaElement.Wr()};
g.y.setLoop=function(D){this.mediaElement.setLoop(D)};
g.y.canPlayType=function(D,Q){return this.mediaElement.canPlayType(D,Q)};
g.y.isPaused=function(){return this.mediaElement.isPaused()};
g.y.isSeeking=function(){return this.mediaElement.isSeeking()};
g.y.isEnded=function(){return this.mediaElement.isEnded()};
g.y.dK=function(){return this.mediaElement.dK()};
g.y.rU=function(D){this.mediaElement.rU(D)};
g.y.hI=function(){return this.mediaElement.hI()};
g.y.load=function(){this.mediaElement.load()};
g.y.pause=function(){this.mediaElement.pause()};
g.y.Bi=function(){return this.mediaElement.Bi()};
g.y.IK=function(){return this.mediaElement.IK()};
g.y.X6=function(){return this.mediaElement.X6()};
g.y.tN=function(){return this.mediaElement.tN()};
g.y.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.y.xP=function(){return this.mediaElement.xP()};
g.y.gY=function(){return this.mediaElement.gY()};
g.y.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.y.wh=function(){return this.mediaElement.wh()};
g.y.getSize=function(){return this.mediaElement.getSize()};
g.y.setSize=function(D){this.mediaElement.setSize(D)};
g.y.getVolume=function(){return this.mediaElement.getVolume()};
g.y.setVolume=function(D){this.mediaElement.setVolume(D)};
g.y.setAttribute=function(D,Q){this.mediaElement.setAttribute(D,Q)};
g.y.removeAttribute=function(D){this.mediaElement.removeAttribute(D)};
g.y.hasAttribute=function(D){return this.mediaElement.hasAttribute(D)};
g.y.b4=Dk(60);g.y.Qc=Dk(62);g.y.Hv=Dk(64);g.y.IT=Dk(66);g.y.j3=function(){return this.mediaElement.j3()};
g.y.EJ=function(D){this.mediaElement.EJ(D)};
g.y.LB=function(D){return this.mediaElement.LB(D)};
g.y.fN=function(){return this.mediaElement.fN()};
g.y.stopVideo=function(){this.mediaElement.stopVideo()};
g.y.Oa=function(D){this.mediaElement.Oa(D)};
g.y.audioTracks=function(){return this.mediaElement.audioTracks()};
g.y.Z0=function(D){this.mediaElement.Z0(D)};g.Z(fPr,g.v);g.y=fPr.prototype;g.y.getStatus=function(){return this.status};
g.y.QR=function(){var D=this.S.getVideoData(),Q=this.C.getVideoData(),m;if((m=D.T)&&!(m=!D.S)){m=D.S;for(var P=!1,W=!1,L=g.T(Object.values(m.S)),u=L.next();!u.done;u=L.next())u=u.value,u.info.audio&&u.index.isLoaded()&&(P=!0),u.info.video&&u.index.isLoaded()&&(W=!0);m.S["0"]&&(W=!0);m=P&&W}if(m)if(this.S.Cn()){L=bH4(this.policy,this.S,this.C,this.ET);u=Y6(this);m=u.s9;W=u.zJ;P=u.GP;u=u.jq;if(!this.U){var t=this.C.ws()*1E3,z=this.S.ws();z=(P-m-z)*1E3;L&&L.msg==="in-the-past"&&(z=0);D=D.isAd();this.C.kX(t,
z,D);this.U=!0}L?(Q="cannot_apply"+L.msg,delete L.msg,this.K6(Q,L)):this.status.status===2?T4P(this):(D=this.S.Hk())&&gM(D)&&(!h$(D)&&g.e8()?this.K6("mse_closed"):Q.S&&aP(Q.S)&&D.C&&!D.C.jN()?this.K6("encr_upgrade"):(Q=this.S.Cn(),Q.isEnded()?this.K6("elem_ended"):W<0?this.K6("next_player_future"):(this.N=P,this.currentVideoDuration=P-m,this.T=Hsw(D,m,P,!0),this.B=Hsw(D,W,u,!1),D=this.C.getVideoData().clientPlaybackNonce,this.S.dc("gaplessPrep",{cpn:D}),this.S.kc(this.T,!1,yZw(this),this.lE.G().V("html5_shorts_gapless_keep_pending_requests")&&
lH(this.S.getVideoData())),this.S.setMediaElement(Vpn(Q,m,P,!this.S.getVideoData().isAd())),a_(this,2),T4P(this))))}else this.K6("no-elem")};
g.y.AG=function(D){var Q=D===Fyw(this).f_,m=Q?this.T.S:this.T.C;Q=Q?this.B.S:this.B.C;if(m.isActive&&!Q.isActive){var P=this.N,W=this.lE.G().V("html5_gapless_disable_on_discontinuous_buffer")&&this.J!==0&&m.Ti().length>1;z5(D.Ti(),P-.01)&&!W&&(a_(this,4),m.isActive=!1,m.pg=m.pg||m.isActive,(this.J===1?this.S:this.C).dc("sbh",{}),Q.isActive=!0,Q.pg=Q.pg||Q.isActive,this.J!==0&&(this.S.getVideoData().u_=!0));D=this.B.C;if(this.B.S.isActive&&D.isActive&&(a_(this,5),this.J!==0)){D=this.C.Py();m=this.S.Py();
this.S.dc("sbs",{citag:m==null?void 0:m.itag,nitag:D==null?void 0:D.itag});this.C.dc("gitags",{pitag:m==null?void 0:m.itag,citag:D==null?void 0:D.itag});var L;(L=this.C)==null||L.cG()}}};
g.y.uC=function(){this.WI()&&this.K6("player-reload-after-handoff")};
g.y.K6=function(D,Q){Q=Q===void 0?{}:Q;if(!this.VF()&&this.status.status!==6){var m=this.status.status>=4&&D!=="player-reload-after-handoff";this.status={status:Infinity,error:D};if(this.S&&this.C){var P=this.C.getVideoData().clientPlaybackNonce;this.S.Hs(new g.VJ("dai.transitionfailure",Object.assign(Q,{cpn:P,transitionTimeMs:this.ET,msg:D})));this.S.qR(m)}this.ZB.reject(D);this.dispose()}};
g.y.WI=function(){return this.status.status>=4&&this.status.status<6};
g.y.Bq=function(){ZH7(this);this.S.unsubscribe("newelementrequired",this.uC,this);if(this.T){var D=this.T.C;this.T.S.D$.unsubscribe("updateend",this.AG,this);D.D$.unsubscribe("updateend",this.AG,this)}g.v.prototype.Bq.call(this)};
g.y.qD=function(D){g.oD(D,128)&&this.K6("player-error-event")};g.Z(AO,g.v);AO.prototype.clearQueue=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;this.B&&this.B.reject("Queue cleared");this.app.G().V("html5_gapless_fallback_on_qoe_restart_v2")||Q&&this.C&&this.C.qR(!1);pu(this,D)};
AO.prototype.O3=function(){return!this.S};
AO.prototype.WI=function(){var D;return((D=this.T)==null?void 0:D.WI())||!1};
AO.prototype.Bq=function(){pu(this);g.v.prototype.Bq.call(this)};g.Z(wGk,g.iR);g.y=wGk.prototype;g.y.getVisibilityState=function(D,Q,m,P,W,L,u,t){return D?4:gaP()?3:Q?2:m?1:P?5:W?7:L?8:u?9:t?10:0};
g.y.ag=function(D){this.fullscreen!==D&&(this.fullscreen=D,this.sS())};
g.y.setMinimized=function(D){this.C!==D&&(this.C=D,this.sS())};
g.y.setInline=function(D){this.inline!==D&&(this.inline=D,this.sS())};
g.y.WL=function(D){this.pictureInPicture!==D&&(this.pictureInPicture=D,this.sS())};
g.y.setSqueezeback=function(D){this.T!==D&&(this.T=D,this.sS())};
g.y.lP=function(D){this.B!==D&&(this.B=D,this.sS())};
g.y.xP=function(){return this.S};
g.y.gX=function(){return this.fullscreen!==0};
g.y.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.y.H6=function(){return this.fullscreen};
g.y.isMinimized=function(){return this.C};
g.y.isInline=function(){return this.inline};
g.y.isBackground=function(){return gaP()};
g.y.CU=function(){return this.pictureInPicture};
g.y.DS=function(){return!1};
g.y.u9=function(){return this.T};
g.y.iS=function(){return this.B};
g.y.sS=function(){this.publish("visibilitychange");var D=this.getVisibilityState(this.xP(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.CU(),this.DS(),this.u9(),this.iS());D!==this.N&&this.publish("visibilitystatechange");this.N=D};
g.y.Bq=function(){ki_(this.J);g.iR.prototype.Bq.call(this)};g.Z(g.x6,g.v);g.y=g.x6.prototype;g.y.Bq=function(){this.videoData=this.playerState=null;g.v.prototype.Bq.call(this)};
g.y.addCueRange=function(){};
g.y.fG=function(){};
g.y.xY=function(){};
g.y.Iw=function(){return!1};
g.y.cf=function(){return!1};
g.y.NR=function(){};
g.y.wN=function(){};
g.y.Q5=function(){return[]};
g.y.QW=function(){};
g.y.VB=function(){};
g.y.ix=function(){return 1};
g.y.getAudioTrack=function(){return this.getVideoData().yL};
g.y.wS=function(){return null};
g.y.getAvailableAudioTracks=function(){return[]};
g.y.wx=function(){return[]};
g.y.uO=function(){return[]};
g.y.GE=function(){return""};
g.y.sN=function(){return[]};
g.y.q1=function(){};
g.y.ws=function(){return 0};
g.y.getCurrentTime=function(){return 0};
g.y.rS=function(){};
g.y.Py=function(){};
g.y.yX=function(){return{}};
g.y.getDuration=function(){return 0};
g.y.UY=function(){return 0};
g.y.hD=function(){return 0};
g.y.yw=function(){return!1};
g.y.O1=function(){return 0};
g.y.vF=function(){return 0};
g.y.Al=Dk(7);g.y.u6=function(){return 0};
g.y.Wr=function(){return!1};
g.y.qL=function(){return 0};
g.y.Cn=function(){return null};
g.y.Hk=function(){return null};
g.y.TY=function(){return 0};
g.y.eh=function(){return 0};
g.y.nI=function(){return g.U(function(D){g.T7(D)})};
g.y.sj=Dk(15);g.y.getPlaybackQuality=function(){return"auto"};
g.y.getPlaybackRate=function(){return 1};
g.y.getPlayerState=function(){this.playerState||(this.playerState=new g.HE);return this.playerState};
g.y.getPlayerType=function(){return 0};
g.y.getPlaylistSequenceForTime=function(){return null};
g.y.uH=function(){return function(){}};
g.y.lU=function(){return""};
g.y.getPreferredQuality=function(){return"unknown"};
g.y.xZ=function(){};
g.y.getProximaLatencyPreference=function(){return 0};
g.y.nP=function(){return y7};
g.y.tf=function(){return null};
g.y.getStoryboardFormat=function(){return null};
g.y.getStreamTimeOffset=function(){return 0};
g.y.MA=function(){return 0};
g.y.m2=function(){return 0};
g.y.sF=function(){return{TP:[],jw:[],currentTime:0,sL:"",droppedVideoFrames:0,isGapless:!1,O3:!0,JJ:0,gt:0,B7:0,KC:0,Da:0,Qv:[],yv:[],fl:null,playerState:this.getPlayerState(),Id:null,Pa:"",totalVideoFrames:0}};
g.y.getUserAudio51Preference=function(){return 0};
g.y.getUserPlaybackQualityPreference=function(){return""};
g.y.getVideoData=function(){this.videoData||(this.videoData=new g.ZY(this.SD),g.O(this,this.videoData));return this.videoData};
g.y.N6=function(){return null};
g.y.Lq=function(){return null};
g.y.YV=function(){};
g.y.getVideoLoadedFraction=function(){return 0};
g.y.m3=function(){};
g.y.handleError=function(){};
g.y.qR=function(){};
g.y.VO=function(){};
g.y.yr=Dk(40);g.y.xS=function(){return!1};
g.y.hasSupportedAudio51Tracks=function(){return!1};
g.y.pm=function(){return!1};
g.y.xP=function(){return!1};
g.y.isAtLiveHead=function(){return!1};
g.y.s_=function(){return!0};
g.y.isGapless=function(){return!1};
g.y.isHdr=function(){return!1};
g.y.sD=function(){return!1};
g.y.Sl=function(){return!1};
g.y.b9=function(){return!1};
g.y.isProximaLatencyEligible=function(){return!1};
g.y.O3=function(){return!0};
g.y.Hg=function(){return!1};
g.y.jT=function(){return!1};
g.y.gw=function(){};
g.y.nD=function(){};
g.y.cG=function(){};
g.y.NW=function(){};
g.y.lA=function(){};
g.y.s$=function(){};
g.y.X$=function(){};
g.y.mF=Dk(50);g.y.Ic=Dk(21);g.y.dO=function(){};
g.y.pauseVideo=function(){};
g.y.prefetchKeyPlay=function(){};
g.y.playVideo=function(){return g.U(function(D){return D.return()})};
g.y.Nf=function(){};
g.y.F6=Dk(27);g.y.o_=Dk(33);g.y.JX=function(){};
g.y.dc=function(){};
g.y.pF=function(){};
g.y.qW=function(){};
g.y.kX=function(){};
g.y.Hs=function(){};
g.y.Ys=function(){};
g.y.GF=function(){};
g.y.wf=function(){};
g.y.ub=function(){};
g.y.sz=function(){};
g.y.Gb=function(){};
g.y.removeCueRange=function(){};
g.y.Sw=function(){};
g.y.aI=function(){return[]};
g.y.rX=function(){};
g.y.U3=function(){};
g.y.bP=function(){};
g.y.kH=function(){};
g.y.TN=function(){};
g.y.bR=function(){};
g.y.seekTo=function(){};
g.y.sendAbandonmentPing=function(){};
g.y.sendVideoStatsEngageEvent=function(){};
g.y.Ao=function(){};
g.y.setLoop=function(){};
g.y.NS=function(){};
g.y.setMediaElement=function(){};
g.y.kc=function(){};
g.y.setPlaybackRate=function(){};
g.y.Qi=function(){};
g.y.lY=function(){};
g.y.wi=function(){};
g.y.setProximaLatencyPreference=function(){};
g.y.mx=function(){};
g.y.AF=function(){};
g.y.wM=function(){};
g.y.iP=function(){};
g.y.OA=function(){};
g.y.setUserAudio51Preference=function(){};
g.y.yT=function(){};
g.y.KU=function(){return!1};
g.y.gY=function(){};
g.y.GV=function(){return!1};
g.y.rM=function(){};
g.y.aW=function(){};
g.y.p$=function(){};
g.y.stopVideo=function(){};
g.y.subscribe=function(){return NaN};
g.y.MK=function(){};
g.y.togglePictureInPicture=function(){};
g.y.Ef=function(){return 0};
g.y.rf=function(){};
g.y.unsubscribe=function(){return!1};
g.y.ov=function(){};
g.y.v5=function(){return!1};
g.y.Mz=function(){};
g.y.FO=function(){};
g.y.XQ=function(){};g.Z(ra,g.v);g.y=ra.prototype;g.y.get=function(D){Xt(this);var Q=this.data.find(function(m){return m.key===D});
return Q?Q.value:null};
g.y.set=function(D,Q,m){this.remove(D,!0);Xt(this);D={key:D,value:Q,expire:Infinity};m&&isFinite(m)&&(m*=1E3,D.expire=(0,g.T3)()+m);for(this.data.push(D);this.data.length>this.T;)(m=this.data.shift())&&GC(this,m,!0);SV(this)};
g.y.remove=function(D,Q){Q=Q===void 0?!1:Q;var m=this.data.find(function(P){return P.key===D});
m&&(GC(this,m,Q),g.w$(this.data,function(P){return P.key===D}),SV(this))};
g.y.removeAll=function(D){if(D=D===void 0?!1:D)for(var Q=g.T(this.data),m=Q.next();!m.done;m=Q.next())GC(this,m.value,D);this.data=[];SV(this)};
g.y.Bq=function(){var D=this;g.v.prototype.Bq.call(this);this.data.forEach(function(Q){GC(D,Q,!0)});
this.data=[]};g.Z(g.MY,g.v);g.y=g.MY.prototype;g.y.Bq=function(){for(var D=g.T(Object.values(this.T)),Q=D.next();!Q.done;Q=D.next())Q.value.dispose();kl7(this);this.S.dispose();g.v.prototype.Bq.call(this)};
g.y.kV=function(D){return D?D===1?this.Z:this.C.getVideoData().enableServerStitchedDai&&D===2?this.C.getVideoData().Vg?this.T[2]||this.C:this.C:this.T[D]||null:this.C};
g.y.zc=function(D){var Q=D.cpn;D=D.playerType;if(Q)a:{D=g.T(Object.values(this.T));for(var m=D.next();!m.done;m=D.next())if(m=m.value,m.GE()===Q){Q=m;break a}Q=this.N[Q]||null}else Q=D?this.kV(D):this.C;return Q};
g.y.dB=function(){return this.Z};
g.y.Dt=function(D){this.Z=D};
g.y.Zx=function(){return this.C};
g.y.Vd=function(D){this.C=D;ca(this)};
g.y.FF=Dk(46);g.y.kW=Dk(48);g.Z($_r,g.L5);g.y=$_r.prototype;g.y.Cz=function(){};
g.y.GE=function(){return this.videoData.clientPlaybackNonce};
g.y.getVideoData=function(){if(g.L5.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var D=dsm(this.Ax,g.L5.prototype.getCurrentTime.call(this))||g.L5.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==D.clientPlaybackNonce&&eZ9(this.C,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:D.clientPlaybackNonce});return this.videoData}return dsm(this.Ax,g.L5.prototype.getCurrentTime.call(this))||g.L5.prototype.getVideoData.call(this)};
g.y.getCurrentTime=function(D){var Q=g.L5.prototype.getCurrentTime.call(this);if(g.L5.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){this.S===0?D||(Q-=this.startTimeSecs):D&&(Q=this.S);var m=D?this.Ax.e$||g.L5.prototype.getCurrentTime.call(this):i07(this.Ax,g.L5.prototype.getCurrentTime.call(this));Q!==m&&eZ9(this.C,"time"+(D!=null?D:!1),{time:Q,ref:m,ct:D!=null?D:!1})}else Q=D?this.Ax.e$||Q:i07(this.Ax,Q);return Q};
g.y.getDuration=function(){if(g.L5.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var D=LT7(this.Ax,g.L5.prototype.getCurrentTime.call(this));this.duration!==D&&eZ9(this.C,"duration",{dur:this.duration,ref:D});return this.duration}return LT7(this.Ax,g.L5.prototype.getCurrentTime.call(this))};
g.y.Pk=function(D){this.duration=D};g.Qb.prototype.GT=function(D,Q){if(Q===1)return this.S.get(D);if(Q===2)return this.T.get(D);if(Q===3)return this.C.get(D)};
g.Qb.prototype.y7=Dk(58);g.Qb.prototype.Sx=function(D,Q,m,P){m={tj:P,ME:m};Q?this.T.set(D,m):this.S.set(D,m)};
g.Qb.prototype.clearAll=function(){this.S.clear();this.T.clear();this.C.clear()};
OH_.prototype.clear=function(){this.C=[];this.T.clear();this.B.clear();this.S.clear()};
OH_.prototype.zc=function(D){var Q=D.cpn;D=D.Um;if(Q&&(Q=this.T.get(Q))||D&&(Q=(this.J?this.T:this.B).get(D)))return Q};
g.Z(g.ma,g.v);g.y=g.ma.prototype;g.y.onCueRangeEnter=function(D){var Q=D.getId();this.Rj({oncueEnter:1,cpn:Q,start:D.start,end:D.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ws()||0).toFixed(3)});var m=this.S.zc({cpn:Q});this.Rj({enterAdCueRange:1});var P=this.oF||this.xu().cpn,W;P=(W=this.S.zc({cpn:P}))!=null?W:this.xu();m&&(W=this.playback.getCurrentTime(),m.startTimeSecs=D.start/1E3,m={i$:P,mp:m,A$:W},wrj(this,Q,D.start/1E3,W),dX(this,m))};
g.y.VZ=function(D,Q){if(D&&Q){var m,P=((m=this.app.yy().B)==null?void 0:m.GE())||this.playback.GE(),W;m=(W=this.S.zc({cpn:P}))!=null?W:this.xu();var L;D=(L=this.S.zc({cpn:D}))!=null?L:this.xu();D.startTimeSecs=Q;L=this.playback.getCurrentTime();wrj(this,P,Q,L);dX(this,{i$:m,mp:D,A$:L})}};
g.y.qr=function(D,Q){if(D===this.playback.GE())Dg(this.app.yy(),this.playback,!1);else{var m=this.t0.get(D);m?(m.S=0,m.startTimeSecs=Q,Dg(this.app.yy(),m,!0)):this.Rj({nop_s:D})}};
g.y.onCueRangeExit=function(D){for(var Q=this.playback.getCurrentTime()*1E3,m=D.getId(),P=g.T(this.C.values()),W=P.next();!W.done;W=P.next())if(W=W.value,W.getId()!==m&&Q>=W.start&&Q<=W.end)return;if(m=this.S.zc({cpn:m}))Q=this.playback.getCurrentTime(),P=this.xu(),P.startTimeSecs=D.end/1E3,m={i$:m,mp:P,A$:Q},wrj(this,this.playback.GE(),D.end/1E3,Q),dX(this,m)};
g.y.xu=function(){return{cpn:this.playback.GE(),durationMs:0,Qn:0,playerType:1,b7:0,videoData:this.playback.getVideoData(),errorCount:0,Rk:""}};
g.y.seekTo=function(D,Q,m,P){D=D===void 0?0:D;Q=Q===void 0?{}:Q;m=m===void 0?!1:m;P=P===void 0?null:P;uU(this,this.oF);if(this.playback.getVideoData().xB()&&D<=this.e$)this.playback.pauseVideo(),this.e$=0,khj(this,D);else if(this.TO=!0,m)SC$(this,D,Q);else{m=this.app.Zx();var W=m===this.QF?this.l0:null;sZ(this,!1);this.jD=D;this.oy=Q;P!=null&&this.XT.start(P);m&&(this.l0=W||m.getPlayerState(),m.p$(Q),this.QF=m)}};
g.y.Bq=function(){sZ(this,!1);b06(this);qQm(this);g.v.prototype.Bq.call(this)};
g.y.E8=function(D){this.gB=D;this.Rj({swebm:D})};
g.y.xN=function(D,Q,m){if(m&&Q){var P=this.J.get(D);if(P){P.locations||(P.locations=new Map);var W=Number(Q.split(";")[0]);m=new g.Gn(m);this.Rj({hdlredir:1,itag:Q,seg:D,hostport:c4(m)});P.locations.set(W,m)}}};
g.y.H$=function(D,Q,m,P,W,L){var u=P===3,t=fm6(this,D,Q,P,m,L);if(!t){L_(this,Q,u);var z=g.Cyh(this,Q)?"undec":"ncp";this.Rj({gvprp:z,mt:D,seg:Q,tt:P,itag:m,ce:L});return null}u||this.J.set(Q,t);L=t.Rk;var b;P=((b=this.GT(Q-1,P,W))==null?void 0:b.tj)||"";P===""&&this.Rj({eds:1});b=Npm(this,t.ssdaiAdsConfig);W=this.playback.getVideoData();var q;u=((q=W.C)==null?void 0:q.containerType)||0;q=W.BE[u];t=t.qf&&Q>=t.qf?t.qf:void 0;q={PE:L?Tp7(this,L):[],adsConfig:b,tj:P,rI:t,y3:IG(q.split(";")[0]),je:q.split(";")[1]||
""};t={iG:q};this.x9&&(D={gvprpro:"v",sq:Q,mt:D.toFixed(3),itag:m,acpns:((z=q.PE)==null?void 0:z.join("_"))||"none",abid:L},this.Rj(D));return t};
g.y.BJ=function(D){a:{if(!this.tp){var Q=V_P(this,D);if(!(this.playback.getVideoData().xB()&&(Q==null?0:Q.FJ)))break a}Q=void 0}var m=Q;if(!m)return this.Rj({gvprp:"ncp",mt:D}),null;Q=m.Rk;var P=Npm(this,m.ssdaiAdsConfig);m=m.qf&&m.Kp&&D>=m.Kp?m.qf:void 0;var W=this.playback.getVideoData(),L,u=((L=W.C)==null?void 0:L.containerType)||0;L=W.BE[u];L={PE:Q?Tp7(this,Q):[],adsConfig:P,rI:m,y3:IG(L.split(";")[0]),je:L.split(";")[1]||""};var t;D={gvprpro:"v",mt:D.toFixed(3),acpns:((t=L.PE)==null?void 0:t.join("_"))||
"none",abid:Q};this.Rj(D);return L};
g.y.zT=function(D,Q,m,P,W,L){var u=Number(m.split(";")[0]),t=P===3;D=fm6(this,D,Q,P,m,L);this.Rj({gdu:1,seg:Q,itag:u,pb:""+!!D});if(!D)return L_(this,Q,t),null;D.locations||(D.locations=new Map);if(!D.locations.has(u)){var z,b;L=(z=D.videoData.getPlayerResponse())==null?void 0:(b=z.streamingData)==null?void 0:b.adaptiveFormats;if(!L)return this.Rj({gdu:"noadpfmts",seg:Q,itag:u}),L_(this,Q,t),null;z=L.find(function(f){return f.itag===u});
if(!z||!z.url){var q=D.videoData.videoId;D=[];var C=g.T(L);for(P=C.next();!P.done;P=C.next())D.push(P.value.itag);this.Rj({gdu:"nofmt",seg:Q,vid:q,itag:u,fullitag:m,itags:D.join(",")});L_(this,Q,t);return null}D.locations.set(u,new g.Gn(z.url,!0))}L=D.locations.get(u);if(!L)return this.Rj({gdu:"nourl",seg:Q,itag:u}),L_(this,Q,t),null;L=new Yg(L);this.gB&&(L.get("dvc")?this.Rj({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(P=(C=this.GT(Q-1,P,W))==null?void 0:C.tj)&&L.set("daistate",P);D.qf&&Q>=D.qf&&
L.set("skipsq",""+D.qf);(C=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",C);C=[];D.Rk&&(C=Tp7(this,D.Rk),C.length>0&&L.set("acpns",C.join(",")));t||this.J.set(Q,D);t=null;t=L.get("aids");P=L.AD();(P==null?void 0:P.length)>2048&&this.Rj({urltoolong:1,sq:Q,itag:u,len:P.length});this.x9&&(P&&(L=D.cpn,W=D.Rk,E97(this,L,W),W&&!this.PY.has(W)&&(L=h4m(this,L,W),z=n9_(this,W),this.Rj({iofa:L}),this.Rj({noawnzd:z-L}),this.Rj({acpns:C.join("."),aids:(q=t)==null?void 0:q.replace(/,/g,".")}),
this.PY.add(W))),this.Rj({gdu:"v",seg:Q,itag:m,ast:D.Qn.toFixed(3),alen:D.durationMs.toFixed(3),acpn:D.cpn,avid:D.videoData.videoId}));return P};
g.y.UJ=function(D,Q,m){m=m===void 0?!1:m;var P=o9m(this,D,Q);if(P){var W=void 0,L=P.Rk;if(L){this.Rj({skipadonsq:Q,sts:m,abid:L,acpn:P.cpn,avid:P.videoData.videoId});m=this.S.S.get(L);if(!m)return;m=g.T(m);for(L=m.next();!L.done;L=m.next())L=L.value,L.qf=Q,L.Kp=D,L.Qn>P.Qn&&(W=L)}uU(this,this.oF);this.T=P.cpn;yTP(this);this.api.V("html5_ssdai_enable_media_end_cue_range")&&this.playback.rf(this.T);D=this.playback.getCurrentTime();this.SD.V("html5_use_new_ssdai_transition_detector")&&this.qr(this.playback.GE(),
D);Z0_(this,P,W,D,D,!1,!0);Bp9(this)}};
g.y.Zn=function(){for(var D=g.T(this.S.C),Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.qf=NaN,Q.Kp=NaN;yTP(this);this.Rj({rsac:"resetSkipAd",sac:this.T});this.GO.delete(this.T);this.T=""};
g.y.GT=function(D,Q,m){return this.Iy.GT(D,Q,m)};
g.y.y7=Dk(57);
g.y.Sx=function(D,Q,m,P,W,L,u,t,z){P.length>0&&this.Rj({onssinfo:1,sq:D,start:Q.toFixed(3),cpns:P.join(","),ds:W.join(","),isVideo:u?1:0});z&&this.Iy.Sx(D,u,t,z);if(u){if(P.length&&W.length)for(this.GO.has(P[0])&&this.Rj({skipfail:1,sq:D,acpn:P[0]}),D=Q+this.MA(),m=0;m<P.length;m++)if(z=P[m],u=D,D=u+W[m],z=this.S.zc({cpn:z}))u-=L[m],z.fJ=z.fJ!=null?Math.min(z.fJ,u):u;if(P.length&&W.length)for(m=(Q+this.MA())*1E3,Q=0;Q<P.length;Q++)if(u=P[Q],z=W[Q]*1E3,u===this.playback.getVideoData().clientPlaybackNonce)m+=z;
else{this.cY.has(u)||(this.Rj({adCpnFromEmsg:1}),this.cY.add(u));var b=0;Q<L.length&&(b=L[Q]*1E3);if(D=this.C.get(u))D.start=m-b,D.end=m+z,Q===P.length-1&&(D.end+=FT9(this,u,t)),this.playback.s$();else for(D=new g.XB(m-b,m+z,{id:u,namespace:"serverstitchedcuerange",priority:9}),this.C.set(u,D),this.Rj({newAdCR:1,cpn:u,startTime:D.start,endTime:D.end}),Q===P.length-1&&(D.end+=FT9(this,u,t)),this.playback.addCueRange(D),m=this.playback.Q5("serverstitchedcuerange",36E5),m=g.T(m),u=m.next();!u.done;u=
m.next())this.C.delete(u.value.getId());m=D.end}}};
g.y.nB=Dk(55);g.y.MA=function(){return this.playback.MA()};
g.y.LF=function(D){this.playback.dc("timelineerror",{e:D})};
g.y.m3=function(D){this.Z&&this.N&&this.j.push(this.N);D&&this.N&&this.Y9.push(this.N);this.N=null;this.playback.m3(D)};
g.y.Jq=function(D){if(this.tp||D.identifier&&this.dn.has(D.identifier))this.Rj({startnoad:D.identifier}),W2(this);else if(v9(this.j,function(m){return m.identifier===D.identifier}))this.Rj({timedoutcp:1}),this.U.start(0);
else if(v9(this.Y9,function(m){return m.identifier===D.identifier}))this.Rj({fetchedcp:1}),W2(this);
else if(this.U.isActive()){var Q;this.Rj({racingcp:((Q=this.N)==null?void 0:Q.identifier)+"_"+D.identifier})}else this.hU=(new Date).getTime()/1E3,this.Rj({adf:1}),(Q=5E3,D.event==="predictStart")&&(Q-=D.S),this.k9=Math.max(Q,15E3),this.Z=!1,this.U.start(this.k9),this.N=D,this.Iy.clearAll(),this.u0=[]};
g.y.QB=function(D,Q,m,P){m=m||{reason:"disablessdai"};if(D&&Q){if(!o9m(this,D,Q))return!1;m.sq=Q}if(this.tp)return!1;this.tp=!0;this.DA>0&&(this.DA=0,this.oF="",this.SD.V("html5_huli_ssdai_use_playback_state")&&this.qr(this.playback.GE(),0),this.api.publish("serverstitchedvideochange"));this.playback.wN(m,P);return!0};
g.y.kQ=function(){this.Rj({rstdaist:1});this.Iy.clearAll()};
g.y.HL=function(D){var Q;if(D!==((Q=this.N)==null?void 0:Q.identifier))this.Rj({ignorenoad:D});else{this.dn.add(D);this.Rj({noadrcv:D});var m;((m=this.N)==null?void 0:m.identifier)===D&&W2(this)}};
g.y.uM=function(D){if(this.tp)return this.Rj({dai_disabled:D.event}),!1;if(this.playback.getVideoData().xB()&&(D.event==="continue"||D.event==="stop"))return!1;var Q=RY(this.api.HY());if(Q=Q?Q.uM(D):!1)this.B={CY:D.identifier,kR:D.startSecs};else if(this.B&&this.B.CY===D.identifier&&D.startSecs>this.B.kR+1){this.Rj({cueStChg:D.identifier,oldSt:this.B.kR.toFixed(3),newSt:D.startSecs.toFixed(3),abid:this.B.qI});if(this.B.qI){var m=D.startSecs-this.B.kR,P=this.S.S.get(this.B.qI);if(P){P=g.T(P);for(var W=
P.next();!W.done;W=P.next())W=W.value,W.Qn>=0&&(W.Qn+=m*1E3,this.SD.V("html5_ssdai_update_timeline_on_start_time_change")&&(W.b7+=m*1E3),this.Rj({newApEt:W.Qn,newApPrt:W.b7,acpn:W.cpn}))}}this.B.kR=D.startSecs}this.SD.V("html5_ssdai_log_missing_ad_config_reason")&&(Q?this.wc.add(D.identifier):this.wc.has(D.identifier)&&this.wc.delete(D.identifier));return Q};
g.y.DE=function(D){var Q="";D?D.event==="unknown"?Q="unknown":this.wc.has(D.identifier)?this.B&&this.B.CY===D.identifier?this.B.CY===D.identifier?Q="pending":v9(this.Y9,function(m){return m.identifier===D.identifier})||(Q="noAdsAdded"):Q="wrongAdBreakInfo":Q="unscheduled":Q="noCuepoint";
return Q};
g.y.Ny=function(D){return this.tp?!1:!!V_P(this,D)};
g.y.RO=function(D){var Q=this;if(this.SD.V("html5_lifa_ignore_multiple_skips")&&this.Kh)return this.Rj({ufs_ad:this.T,ufs_cur:this.oF,ufs_cont:this.xu().cpn}),!1;uU(this,this.oF);this.playback.pauseVideo();var m=this.playback.getCurrentTime(),P=this.S.zc({cpn:this.oF});if(!P)return this.Rj({skipFail:m}),!1;this.T=this.oF;this.TO=!1;this.api.V("html5_ssdai_enable_media_end_cue_range")&&this.playback.rf(this.T);g94(this,P.Rk);JT6(this,P,this.xu(),D);khj(this,m,{seekSource:89,cn:"lifa_skip"});this.Kh||
(this.Kh=this.events.W(this.api,"progresssync",function(){yp(Q.api.Dr(),(0,g.T3)(),"ad_to_video");Q.Kh&&(Q.events.qY(Q.Kh),Q.Kh=null)}));
return!0};
g.y.Rj=function(D,Q){((Q===void 0?0:Q)||this.x9||this.playback.getVideoData().xB())&&this.playback.dc("sdai",D)};
var cZj=0;g.Z(Imu,g.v);g.y=Imu.prototype;g.y.onCueRangeEnter=function(D){if(this.S===this.app.Zx()){var Q=this.J.get(D);Q?$sn(this,Q.target,Q.ET,D):this.Hs("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:D.toString()})}else if(Q=this.C.find(function(W){return W.No.p6===D})){var m=Q.No,P=m.target;
m=m.ET;P?$sn(this,P,m,D):jB4(this,Q.b7,m,D)}};
g.y.onQueuedVideoLoaded=function(){var D=this.U;qM(this);if(D){if(!bU(this,D)){var Q=this.app.Zx();this.Hs("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Q==null?void 0:Q.getVideoData().clientPlaybackNonce,ccpn:""+D.playerVars.cpn})}this.app.Zx().addCueRange(D.No.p6)}};
g.y.seekTo=function(D,Q,m,P){D=D===void 0?0:D;Q=Q===void 0?{}:Q;P=P===void 0?null:P;if(m===void 0?0:m)lm$(this,D,Q);else{m=this.app.Zx()||null;var W=m===this.B?this.N:null;C_(this,!1);this.TO=D;this.j=Q;P!=null&&this.Z.start(P);m&&(this.N=W||m.getPlayerState(),m.p$(),this.B=m)}};
g.y.wl=function(D){g.oD(D,128)&&am7(this)};
g.y.isManifestless=function(){return v1(this.S.getVideoData())};
g.y.Bq=function(){C_(this,!1);pr$(this);g.v.prototype.Bq.call(this)};
g.y.Hs=function(D,Q){this.S.Hs(new g.VJ(D,Q))};
var R4u=0;var xsw="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.Z(oc,g.v);oc.prototype.Fb=function(D){if(D)return this.C.get(D)};
oc.prototype.Bq=function(){this.S.removeAll();this.C.removeAll();g.v.prototype.Bq.call(this)};g.JWQ=I$(function(){var D=window.AudioContext||window.webkitAudioContext;try{return new D}catch(Q){return Q.name}});g.Z(M__,g.p);g.y=M__.prototype;g.y.EJ=function(){g.Po(this.element,g.e$.apply(0,arguments))};
g.y.U3=function(){this.Tc&&(this.Tc.removeEventListener("focus",this.Tt),g.Ni(this.Tc),this.Tc=null)};
g.y.h6=function(){this.VF();var D=this.app.G();D.gx||this.EJ("tag-pool-enabled");D.N&&this.EJ(g.B4.HOUSE_BRAND);D.playerStyle==="gvn"&&(this.EJ("ytp-gvn"),this.element.style.backgroundColor="transparent");D.Lj&&(this.sR=g.cf("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)};
g.y.nL=function(D){g.dv(this.app.G());this.kC=!D;f_(this)};
g.y.resize=function(){if(this.Tc){var D=this.bS();if(!D.isEmpty()){this.app.zO.isFullscreen()&&$y()&&this.P9.start();var Q=!g.p6(D,this.RW.getSize()),m=PWk(this);Q&&(this.RW.width=D.width,this.RW.height=D.height);D=this.app.G();(m||Q||this.uI||D.Lj)&&this.app.zO.publish("resize",this.getPlayerSize())}}};
g.y.Vs=function(D,Q){this.updateVideoData(Q)};
g.y.updateVideoData=function(D){if(this.Tc){var Q=this.app.G();aW&&(this.Tc.setAttribute("x-webkit-airplay","allow"),D.title?this.Tc.setAttribute("title",D.title):this.Tc.removeAttribute("title"));this.Tc.setAttribute("controlslist","nodownload");Q.Tv&&D.videoId&&(this.Tc.poster=D.vB("default.jpg"))}Q=g.GM(D,"yt:bgcolor");this.hj.style.backgroundColor=Q?Q:"";this.zw=P5(g.GM(D,"yt:stretch"));this.LH=P5(g.GM(D,"yt:crop"),!0);g.sh(this.element,"ytp-dni",D.RI);this.app.G().V("delhi_modern_web_player")&&
(D=this.app.zO.isHdr()||this.app.G().V("delhi_modern_web_player_disable_frosted_glass")?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",D));this.resize()};
g.y.setGlobalCrop=function(D){this.bB=P5(D,!0);this.resize()};
g.y.setCenterCrop=function(D){this.N3=D;this.resize()};
g.y.ag=function(){};
g.y.getPlayerSize=function(){var D=this.app.G(),Q=this.app.zO.isFullscreen(),m=D.externalFullscreen&&g.W8(D);if(Q&&$y()&&!m)return new g.Ay(window.outerWidth,window.outerHeight);m=!isNaN(this.CB.width)&&!isNaN(this.CB.height);var P=this.app.G().V("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().V("web_watch_enable_fs_squeezeback_panels");if(Q&&!m&&P)return new g.Ay(this.element.clientWidth,this.element.clientHeight);if(Q||D.SM){if(window.matchMedia){D="(width: "+window.innerWidth+
"px) and (height: "+window.innerHeight+"px)";this.wq&&this.wq.media===D||(this.wq=window.matchMedia(D));var W=this.wq&&this.wq.matches}if(W)return new g.Ay(window.innerWidth,window.innerHeight)}else if(m)return this.CB.clone();return new g.Ay(this.element.clientWidth,this.element.clientHeight)};
g.y.bS=function(){var D=this.app.G().V("enable_desktop_player_underlay"),Q=this.getPlayerSize(),m=g.WF(this.app.G().experiments,"player_underlay_min_player_width");return D&&this.F7&&Q.width>m?(D=g.WF(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.Ay(Math.min(Q.height*this.getVideoAspectRatio(),Q.width*D),Math.min(Q.height,Q.width*D/this.getVideoAspectRatio()))):Q};
g.y.getVideoAspectRatio=function(){return isNaN(this.zw)?DE6(this):this.zw};
g.y.getVideoContentRect=function(D){var Q=this.bS();D=Qmr(this,Q,this.getVideoAspectRatio(),D);return new g.ee((Q.width-D.width)/2,(Q.height-D.height)/2,D.width,D.height)};
g.y.Wj=function(D){this.F7=D;this.resize()};
g.y.Q8=function(){return this.xs};
g.y.onMutedAutoplayChange=function(){f_(this)};
g.y.setInternalSize=function(D){g.p6(this.CB,D)||(this.CB=D,this.resize())};
g.y.Bq=function(){this.sR&&g.Dy(this.sR);this.U3();g.p.prototype.Bq.call(this)};g.y=iQP.prototype;g.y.click=function(D,Q){this.elements.has(D);this.S.has(D);var m=g.Tq();m&&D.visualElement&&g.Qq(m,D.visualElement,Q)};
g.y.createClientVe=function(D,Q,m,P){var W=this;P=P===void 0?!1:P;this.elements.has(D);this.elements.add(D);m=fGj(m);D.visualElement=m;var L=g.Tq(),u=g.Fz();L&&u&&(g.oi("combine_ve_grafts")?zn(d_(),m,u):g.xK(g.aC)(void 0,L,u,m));Q.addOnDisposeCallback(function(){W.elements.has(D)&&W.destroyVe(D)});
P&&this.C.add(D)};
g.y.createServerVe=function(D,Q,m){var P=this;m=m===void 0?!1:m;this.elements.has(D);this.elements.add(D);Q.addOnDisposeCallback(function(){P.destroyVe(D)});
m&&this.C.add(D)};
g.y.destroyVe=function(D){this.elements.has(D);this.elements.delete(D);this.T.delete(D);this.S.delete(D);this.C.delete(D)};
g.y.Pf=function(D,Q){this.clientPlaybackNonce!==Q&&(this.clientPlaybackNonce=Q,t3(d_(),D),sm6(this))};
g.y.setTrackingParams=function(D,Q){this.elements.has(D);Q&&(D.visualElement=g.yi(Q))};
g.y.FA=function(D,Q,m){this.elements.has(D);Q?this.S.add(D):this.S.delete(D);var P=g.Tq(),W=D.visualElement;this.C.has(D)?P&&W&&(Q?g.ci(P,[W]):g.DM(P,[W])):Q&&!this.T.has(D)&&(P&&W&&g.MJ(P,W,void 0,m),this.T.add(D))};
g.y.hasVe=function(D){return this.elements.has(D)};g.Z(g.NM,g.v);g.NM.create=function(D,Q,m,P){try{var W=typeof D==="string"?D:"player"+g.LV(D),L=wR[W];if(L){try{L.dispose()}catch(t){g.JG(t)}wR[W]=null}var u=new g.NM(D,Q,m,P);u.addOnDisposeCallback(function(){wR[W]=null;u.hC&&u.hC()});
return wR[W]=u}catch(t){throw g.JG(t),(t&&t instanceof Error?t:Error(String(t))).stack;}};
g.y=g.NM.prototype;g.y.VL=function(){return this.visibility};
g.y.Dt=function(D){var Q=this.dB();if(D!==Q){D.getVideoData().autonavState=Q.getVideoData().autonavState;Q.ov(this.bD,this);var m=Q.getPlaybackRate();Q.dispose();this.Vn.Dt(D);D.setPlaybackRate(m);D.MK(this.bD,this);qpn(this)}};
g.y.lS=function(){this.X3||(this.X3=g.Sz(ii(),B5j()));return this.X3};
g.y.U3=function(D){if(this.mediaElement){this.Sp&&(this.events.qY(this.Sp),this.Sp=null);g.EI(this.Iv);this.Zx().U3(!0,!1,D);this.template.U3();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.F1()}catch(Q){g.l4(Q)}this.mediaElement=null}};
g.y.Vd=function(D,Q,m){m=m===void 0?!1:m;if(D!==this.Zx()){this.logger.debug(function(){return"start set presenting player, type "+D.getPlayerType()+", vid "+D.getVideoData().videoId});
var P=null;m||(m=this.Zx(),P=m.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),IY(this.y0,3),v2(this,"cuerangesremoved",m.sN()),this.Hc&&!D.isGapless()&&m.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),m=D.KU()&&m.KU(),this.QX.XN("iv_s"),FCu(this,m));D.getPlayerType()===1&&this.Dt(D);ZQ9(this,D);this.Vn.Vd(D);this.mediaElement&&D.setMediaElement(this.mediaElement);D.MK(this.Rd,this);D.jT()?XYw(this,"setPresenting",!1):(this.Vs("newdata",D,D.getVideoData()),
P&&!g.Os(P,D.getPlayerState())&&this.qV(new g.qW(D.getPlayerState(),P)),Q=Q&&D.getPlayerType()===1,D.Sl()&&!Q&&this.Vs("dataloaded",D,D.getVideoData()),(Q=(Q=D.getVideoData().C)&&Q.video)&&this.zO.cO("onPlaybackQualityChange",Q.quality),v2(this,"cuerangesadded",D.sN()),Q=D.getPlayerState(),g.X(Q,2)?ye4(this):g.X(Q,8)?D.playVideo():D.sD()&&D.pauseVideo(),Q=this.dB(),D.getPlayerType()===2&&(D.getVideoData().tI=Q.getVideoData().clientPlaybackNonce),D.getPlayerType()!==2||this.QA()||(P=D.getVideoData(),
Q.Nf(P.clientPlaybackNonce,P.A8||"",P.breakType||0,P.WO,P.videoId||"")),this.logger.debug("finish set presenting player"))}};
g.y.Lk=function(){if(this.dB()!==this.Zx()){var D=this.Zx();this.logger.debug(function(){return"release presenting player, type "+D.getPlayerType()+", vid "+D.getVideoData().videoId});
this.Vd(this.dB())}};
g.y.yy=function(){return this.Vn};
g.y.zc=function(D){return this.Vn.zc(D)};
g.y.kV=function(D){return this.Vn.kV(D)};
g.y.dB=function(){return this.Vn.dB()};
g.y.Zx=function(){return this.Vn.Zx()};
g.y.l4=Dk(44);g.y.axF=function(){n_(this)||(this.logger.debug("application playback ready"),this.Ar(5))};
g.y.KuF=function(){if(!n_(this)){this.logger.debug("playback ready");aSr(this);var D=this.Zx(),Q=D.getPlayerState();D.sD()?this.pauseVideo():Q.isOrWillBePlaying()&&this.playVideo()}};
g.y.canPlayType=function(D){return FO(D)};
g.y.G=function(){return this.SD};
g.y.getVideoData=function(){return this.Zx().getVideoData()};
g.y.c6=Dk(11);g.y.tD=function(){return this.dB().getVideoData()};
g.y.getVideoLoadedFraction=function(D){return(D=this.zc({playerType:D}))?D.getVideoLoadedFraction():this.Vn.S.getVideoLoadedFraction()};
g.y.fh=function(){return this.template};
g.y.HY=function(){return this.y0};
g.y.Dr=function(){return this.QX};
g.y.L$=function(D,Q,m){(Q=this.zc({playerType:Q===void 0?1:Q}))&&Q.Ao(D,void 0,m)};
g.y.wm=function(){var D=this.y0.wm();this.zO.publish("videoStatsPingCreated",D);return D};
g.y.getVolume=function(){return Math.round(this.zO.getVolume())};
g.y.isMuted=function(){return this.zO.isMuted()};
g.y.UF=function(){if(this.dB()===this.Zx()&&this.Or)return this.Or.postId};
g.y.HOc=function(){var D=this;this.V("use_rta_for_player")||(g.Nw(this.SD)?g.UO(this.SD,g.qO(this.getVideoData())).then(function(Q){sD(ii(),Q);d99(D.getVideoData(),D.SD,D.lS())}):d99(this.getVideoData(),this.SD,this.lS()))};
g.y.ew=function(D){this.zO.publish("poTokenVideoBindingChange",D)};
g.y.kG=function(D){this.zO.publish("d6de4videobindingchange",D)};
g.y.Mu=function(){this.gV&&this.gV.Mu()};
g.y.GX=function(D){this.gV=D};
g.y.bL=function(D){if(D===1){this.QX.tick("vr");var Q=this.Zx();Q.xY();p2m(this.QX,Q.getVideoData(),Yp_(this));F7u(this.y0)}Q=this.SD;if(lL(Q)&&Q.Z||g.zs(Q)){var m;(((m=this.Zx().getVideoData())==null?0:m.enableServerStitchedDai)||!this.QA())&&this.zO.cO("onAdStateChange",D)}};
g.y.setLoopVideo=function(D){var Q=this.Zx();Q===this.dB()&&Q.Wr()!==D&&(Q.setLoop(D),this.zO.sW("onLoopChange",D))};
g.y.getLoopVideo=function(){return this.Zx().Wr()};
g.y.setLoopRange=function(D){var Q=!1;!!this.Or!==!!D?Q=!0:this.Or&&D&&(Q=this.Or.startTimeMs!==D.startTimeMs||this.Or.endTimeMs!==D.endTimeMs||this.Or.postId!==D.postId||this.Or.type!==D.type);if(Q){Q=this.Zx();lH(Q.getVideoData())&&Q.dc("slr",{et:(D==null?void 0:D.endTimeMs)||-1});Q=this.dB();Q.aI("applooprange");if(D){var m=new g.XB(D.startTimeMs,D.endTimeMs,{id:"looprange",namespace:"applooprange"});Q.addCueRange(m)}else{this.tD().clipConfig=void 0;var P;((m=this.Or)==null?void 0:m.type)!=="repeatChapter"||
isNaN(Number((P=this.Or)==null?void 0:P.loopCount))||(m={loopCount:String(this.Or.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.WD("repeatChapterLoopEvent",m))}this.Or=D;this.zO.sW("onLoopRangeChange",D||void 0);this.dB()===this.Zx()&&(this.hg(),Q.NR())}};
g.y.getLoopRange=function(){return this.Or};
g.y.hg=function(){var D="",Q=this.dB();this.Or?Q!==this.Zx()?D="pnea":kmm(this,Q.getCurrentTime())&&(this.Or.loopCount=0,D="ilr"):D="nlr";var m=this.Zx();if(lH(m.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var P,W;m.dc("slrre",{rej:D,ct:Q.getCurrentTime(),lst:(P=this.Or)==null?void 0:P.startTimeMs,let:(W=this.Or)==null?void 0:W.endTimeMs})}else m.dc("slrre",{});D||lS4(this)};
g.y.setPlaybackRate=function(D,Q){if(!isNaN(D)){D=fSk(this,D);var m=this.dB();m.getPlaybackRate()!==D&&(m.setPlaybackRate(D),Q&&!this.SD.B&&g.wb("yt-player-playback-rate",D),this.zO.cO("onPlaybackRateChange",D))}};
g.y.getCurrentTime=function(D,Q){Q=Q===void 0?!0:Q;var m=this.Vn.Vy;if(m)return m.getCurrentTime();var P=D===2&&this.getVideoData().enableServerStitchedDai;m=null;P?m=this.Zx():m=this.zc({playerType:D});return m?P&&this.jk?(D=this.Vn.U)?D.getCurrentTime(Q):m.getCurrentTime():Q?(Q=hH(this,m),UZ(this,Q.getCurrentTime(),Q)):m.getCurrentTime():this.Vn.S.getCurrentTime()};
g.y.vF=function(){var D=this.zc({playerType:void 0});if(!D)return this.Vn.S.vF();D=hH(this,D);return UZ(this,D.vF(),D)};
g.y.getDuration=function(D,Q){Q=Q===void 0?!0:Q;var m=this.Vn.Vy;if(m)return m.getDuration();m=this.getVideoData();var P=D===2&&m.enableServerStitchedDai,W=null;P?W=this.Zx():W=this.zc({playerType:D});if(!W)return this.Vn.S.getDuration();if(m.hasProgressBarBoundaries()&&!P){var L,u=Number((L=m.progressBarStartPosition)==null?void 0:L.utcTimeMillis),t;L=Number((t=m.progressBarEndPosition)==null?void 0:t.utcTimeMillis);if(!isNaN(u)&&!isNaN(L))return(L-u)/1E3}if(lH(m)&&!m.isLivePlayback)return Ic(this,
D);if(Q)return D=Td(this,W),UZ(this,D.getDuration(),D);if(P&&this.jk){if(this.V("html5_huli_ssdai_use_playback_state"))return D=this.Vn,D=D.B===D.U?D.B:null,(D==null?void 0:D.getDuration())||0;var z;return((z=this.Vn.U)==null?void 0:z.getDuration())||0}return W.getDuration()};
g.y.hD=function(D){var Q=this.zc({playerType:D});return Q?this.QA(Q)?(Q=Td(this,Q),Q.hD()-Q.getCurrentTime()+this.getCurrentTime(D)):Q.hD():this.Vn.S.hD()};
g.y.finishSegmentByCpn=function(){return[]};
g.y.h6=function(){this.template.h6();var D=this.zO;D.state.element=this.template.element;var Q=D.state.element,m;for(m in D.state.S)D.state.S.hasOwnProperty(m)&&(Q[m]=D.state.S[m]);(D=IaP(this.template.element))&&this.events.W(this.template,D,this.onFullscreenChange)};
g.y.getDebugText=function(D){var Q=this.dB().yX(D),m=this.Zx();if(m!==this.dB()){m=m.yX(D);for(var P=g.T(Object.keys(m)),W=P.next();!W.done;W=P.next())W=W.value,Q["ad"+W]=m[W];if(D){m=Q;P={};if(W=Pu(document,"movie_player"))P.bounds=W.getBoundingClientRect(),P["class"]=W.className;W={};var L=g.La("video-ads");L?(Gmm(L,W),W.html=L.outerHTML):W.missing=1;L={};var u=g.La("videoAdUiSkipContainer"),t=g.La("ytp-ad-skip-button-container"),z=g.La("ytp-skip-ad-button"),b=u||t||z;b?(Gmm(b,L),L.ima=u?1:0,L.bulleit=
t?1:0,L.component=z?1:0):L.missing=1;P=JSON.stringify({player:P,videoAds:W,skipButton:L});m.ad_skipBtnDbgInfo=P}}D&&this.mediaElement&&(Q["0sz"]=""+(+xq(this.mediaElement.getSize())===0),Q.op=this.mediaElement.LB("opacity"),m=this.mediaElement.wh().y+this.mediaElement.getSize().height,Q.yof=""+(+m<=0),Q.dis=this.mediaElement.LB("display"));D&&((D=(0,g.sy)())&&(Q.gpu=D),(D=this.SD.playerStyle)&&(Q.ps=D),this.SD.k9&&(Q.webview=1),(D=this.webPlayerContextConfig.jsUrl)&&(Q.js=D));Q.debug_playbackQuality=
this.zO.getPlaybackQuality(1);Q.debug_date=(new Date).toString();Q.origin=window.origin;Q.timestamp=Date.now();delete Q.uga;delete Q.q;return JSON.stringify(Q,null,2)};
g.y.getFeedbackProductData=function(){var D={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:d[74]},Q=this.getPlayerStateObject().YP;Q&&(D.player_error_code=Q.errorCode,D.player_error_details=JSON.stringify(Q.errorDetail));return D};
g.y.getPresentingPlayerType=function(D){if(this.appState===1)return 1;if(n_(this))return 3;var Q;return D&&((Q=this.jk)==null?0:ukw(Q,this.getCurrentTime()))?2:this.Zx().getPlayerType()};
g.y.YC=function(){return!1};
g.y.getPlayerStateObject=function(D){var Q=this.Vn.Vy;return Q?Q.getPlayerState():this.zc({playerType:D}).getPlayerState()};
g.y.getAppState=function(){return this.appState};
g.y.vJy=function(D){switch(D.type){case "loadedmetadata":this.CL.start();D=g.T(this.JF);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,OQn(this,Q.id,Q.Q_x,Q.b6q,void 0,!1);this.JF=[];break;case "loadstart":this.QX.XN("gv");break;case "progress":case "timeupdate":qG(D.target.jb())>=2&&this.QX.XN("l2s");break;case "playing":g.kv&&this.CL.start();if(g.Nw(this.SD))D=!1;else{Q=g.cU(this.HY());D=this.mediaElement.LB("display")==="none"||xq(this.mediaElement.getSize())===0;var m=Vb(this.template),P=this.Zx().getVideoData(),
W=g.jY(this.SD);P=Ib(P);Q=!m||Q||W||P||this.SD.XT;D=D&&!Q}D&&(D=this.Zx(),D.gw(),this.getVideoData().cY||(this.getVideoData().cY=1,this.UX(),D.playVideo()))}};
g.y.gJx=function(D){this.zO.Q0("onLoadProgress",D)};
g.y.uwz=function(){this.zO.publish("playbackstalledatstart")};
g.y.ttW=function(D,Q){this.zO.publish("sabrCaptionsDataLoaded",D,Q)};
g.y.T2c=function(D){this.Zx().AF(D)};
g.y.C7z=function(D){this.Zx().mx(D)};
g.y.Vtv=function(D){D=hH(this,this.Zx());D=UZ(this,D.getCurrentTime(),D);this.zO.cO("onVideoProgress",D);this.SD.TV&&jmw(this,this.visibility.CU())&&this.pauseVideo()};
g.y.yUO=function(){this.zO.cO("onAutoplayBlocked");var D=this.Zx().getVideoData();D&&(D.vT=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.W8(this.SD)&&(D={autoplayBrowserPolicy:w_(),autoplayIntended:kf(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.WD("embedsAutoplayStatusChanged",D))};
g.y.nJ0=function(){this.zO.publish("progresssync")};
g.y.Rkq=function(){this.zO.Q0("onPlaybackPauseAtStart")};
g.y.YWy=function(D){if(this.getPresentingPlayerType()===1){g.oD(D,1)&&!g.X(D.state,64)&&this.tD().isLivePlayback&&this.dB().isAtLiveHead()&&this.zO.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.oD(D,2)){if(this.Or&&this.Or.endTimeMs>=(this.getDuration()-1)*1E3){lS4(this);return}ye4(this)}if(g.X(D.state,128)){var Q=D.state;this.cancelPlayback(5);Q=Q.YP;JSON.stringify({errorData:Q,debugInfo:this.getDebugText(!0)});this.zO.cO("onError",Fb7(Q.errorCode));this.zO.Q0("onDetailedError",{errorCode:Q.errorCode,
errorDetail:Q.errorDetail,message:Q.errorMessage,messageKey:Q.uJ,cpn:Q.cpn});(0,g.T3)()-this.SD.ZD>6048E5&&this.zO.Q0("onReloadRequired")}Q={};if(D.state.isPlaying()&&!D.state.isBuffering()&&!IH("pbresume","ad_to_video")&&IH("_start","ad_to_video")){var m=this.getVideoData();Q.clientPlaybackNonce=m.clientPlaybackNonce;m.videoId&&(Q.videoId=m.videoId);g.Jd(Q,"ad_to_video");kY("pbresume",void 0,"ad_to_video");F7u(this.y0)}this.zO.publish("applicationplayerstatechange",D)}};
g.y.qV=function(D){this.Vn.Vy||this.zO.publish("presentingplayerstatechange",D)};
g.y.wl=function(D){F5(this,aQ(D.state));g.X(D.state,1024)&&this.zO.isMutedByMutedAutoplay()&&(JH(this,{muted:!1,volume:this.Yt.volume},!1),lU(this,!1))};
g.y.onPlayerRequestSent=function(D){this.zO.sW("onPlayerRequestSent",D)};
g.y.s5=function(D,Q){D==="newdata"&&qpn(this);this.zO.publish("applicationvideodatachange",D,Q)};
g.y.olW=function(D,Q){this.V("html5_afmt_change_update_volume")&&aSr(this);this.zO.Q0("onPlaybackAudioChange",this.zO.getAudioTrack().WY.name);this.zO.publish("internalaudioformatchange",this.zO.getAudioTrack().WY.id,Q)};
g.y.ekh=function(D){var Q=this.Zx().getVideoData();D===Q&&this.zO.cO("onPlaybackQualityChange",D.C.video.quality)};
g.y.Bl=function(){var D=this.Vn.T[2]||null;D&&(D=D.getVideoData(),this.Zx().dc("ssdai",{cleanaply:1,acpn:D==null?void 0:D.clientPlaybackNonce,avid:D.videoId,isDai:this.tD().enableServerStitchedDai?1:0}),delete this.Vn.T[2])};
g.y.JxO=function(D,Q){this.Vs(D,this.Zx(),Q)};
g.y.Vs=function(D,Q,m){this.logger.debug(function(){return"on video data change "+D+", player type "+Q.getPlayerType()+", vid "+m.videoId});
this.SD.xl()&&Q.dc("vdc",{type:D,vid:m.videoId||"",cpn:m.clientPlaybackNonce||""});Q===this.dB()&&(this.SD.uS=m.oauthToken);Q===this.dB()&&(this.getVideoData().enableServerStitchedDai&&!this.jk?(this.dB().dc("sdai",{initSstm:1}),this.jk=new g.ma(this.zO,this.SD,this.dB(),this)):!this.getVideoData().enableServerStitchedDai&&this.jk&&(this.jk.dispose(),this.jk=null));if(D==="newdata")this.logger.debug("new video data, destroy modules"),IY(this.y0,2),this.zO.publish("videoplayerreset",Q);else{if(!this.mediaElement)return;
D==="dataloaded"&&(this.dB()===this.Zx()?(fe(m.nh,m.vC),EMr(this)):hSk(this));Q.getPlayerType()===1&&(this.SD.wc&&rej(this),this.getVideoData().isLivePlayback&&!this.SD.yN&&this.K6("html5.unsupportedlive",2,"DEVICE_FALLBACK"),m.isLoaded()&&((kBw(m)||this.getVideoData().yN)&&this.zO.publish("legacyadtrackingpingchange",this.getVideoData()),m.hasProgressBarBoundaries()&&RSn(this)));this.zO.publish("videodatachange",D,m,Q.getPlayerType())}this.zO.cO("onVideoDataChange",{type:D,playertype:Q.getPlayerType()});
this.hg();var P=m.ao;P?this.mW.Pf(P,m.clientPlaybackNonce):sm6(this.mW)};
g.y.iD=function(){gX(this,null);this.zO.Q0("onPlaylistUpdate")};
g.y.Lux=function(D){delete this.Ae[D.getId()];this.dB().removeCueRange(D);a:{D=this.getVideoData();var Q,m,P,W,L,u,t,z,b,q,C=((Q=D.wc)==null?void 0:(m=Q.contents)==null?void 0:(P=m.singleColumnWatchNextResults)==null?void 0:(W=P.autoplay)==null?void 0:(L=W.autoplay)==null?void 0:L.sets)||((u=D.wc)==null?void 0:(t=u.contents)==null?void 0:(z=t.twoColumnWatchNextResults)==null?void 0:(b=z.autoplay)==null?void 0:(q=b.autoplay)==null?void 0:q.sets);if(C)for(Q=g.T(C),m=Q.next();!m.done;m=Q.next())if(m=
m.value,W=P=void 0,m=m.autoplayVideo||((P=m.autoplayVideoRenderer)==null?void 0:(W=P.autoplayEndpointRenderer)==null?void 0:W.endpoint),P=g.A(m,g.gw),L=W=void 0,m!=null&&((W=P)==null?void 0:W.videoId)===D.videoId&&((L=P)==null?0:L.continuePlayback)){D=m;break a}D=null}(Q=g.A(D,g.gw))&&this.zO.sW("onPlayVideo",{sessionData:{autonav:"1",itct:D==null?void 0:D.clickTrackingParams},videoId:Q.videoId,watchEndpoint:Q})};
g.y.Ar=function(D){var Q=this;D!==this.appState&&(this.logger.debug(function(){return"app state change "+Q.appState+" -> "+D}),D===2&&this.getPresentingPlayerType()===1&&(F5(this,-1),F5(this,5)),this.appState=D,this.zO.publish("appstatechange",D))};
g.y.K6=function(D,Q,m,P,W){this.dB().Qi(D,Q,m,P,W)};
g.y.lM=Dk(13);g.y.isAtLiveHead=function(D,Q){Q=Q===void 0?!1:Q;var m=this.zc({playerType:D});if(!m)return this.Vn.S.isAtLiveHead();D=Td(this,m);m=hH(this,m);return D!==m?D.isAtLiveHead(UZ(this,m.getCurrentTime(),m),!0):D.isAtLiveHead(void 0,Q)};
g.y.O1=function(){var D=this.zc({playerType:void 0});return D?Td(this,D).O1():this.Vn.S.O1()};
g.y.seekTo=function(D,Q,m,P,W,L){Q=Q!==!1;if(P=this.zc({playerType:P}))if(this.appState===2&&wX(this),this.QA(P))H2(this)?this.jk.seekTo(D,{seekSource:W},Q,m):this.Ax.seekTo(D,{seekSource:W},Q,m);else{this.V("html5_sabr_csdai_seek_log")||(L="");var u;P.seekTo(D,{EP:!Q,PD:m,cn:"application"+((u=L)!=null?u:""),seekSource:W})}};
g.y.seekBy=function(D,Q,m,P){this.seekTo(this.getCurrentTime()+D,Q,m,P,void 0,"_by")};
g.y.bMc=function(){this.zO.cO("SEEK_COMPLETE")};
g.y.El0=function(){this.zO.sW("onAbnormalityDetected")};
g.y.OMF=function(D){this.zO.sW("onSnackbarMessage",D)};
g.y.QtO=function(D){var Q=this.Zx(),m=Q.getVideoData();if(this.appState===1||this.appState===2)m.startSeconds=D;this.appState===2?g.X(Q.getPlayerState(),512)||wX(this):this.zO.cO("SEEK_TO",D)};
g.y.fGc=function(){this.zO.publish("airplayactivechange")};
g.y.F2q=function(){this.zO.publish("airplayavailabilitychange")};
g.y.showAirplayPicker=function(){this.Zx().gY()};
g.y.jj0=function(){this.zO.publish("beginseeking")};
g.y.CEz=function(){this.zO.publish("endseeking")};
g.y.getStoryboardFormat=function(D){return(D=this.zc({playerType:D}))?Td(this,D).getStoryboardFormat():this.Vn.S.getStoryboardFormat()};
g.y.tf=function(D){return(D=this.zc({playerType:D}))?Td(this,D).getVideoData().tf():this.Vn.S.tf()};
g.y.QA=function(D){D=(D||this.Zx()).getVideoData();if(H2(this))D=D===this.jk.playback.getVideoData();else a:{var Q=this.Ax;if(D===Q.S.getVideoData()&&Q.C.length)D=!0;else{Q=g.T(Q.C);for(var m=Q.next();!m.done;m=Q.next())if(D.Um===m.value.Um){D=!0;break a}D=!1}}return D};
g.y.tL=function(D,Q,m,P,W,L,u,t){this.logger.debug(function(){return"Adding video to timeline id="+D.video_id+"\n        lengthMs="+P+" enterTimeMs="+W});
var z="",b=H2(this);this.Zx().dc("appattl",{sstm:this.jk?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:b});b?(m=QB7(this.jk,D,Q,m,P,W,L,u),z=(m==null?void 0:m.Um)||"",(this.V("html5_ssdai_new_decoration_logic")||this.dB().getVideoData().zH)&&this.dB().wM(t||"",Q,(m==null?void 0:m.clientPlaybackNonce)||"")):z=KTu(this.Ax,D,m,P,W,L);this.logger.debug(function(){return"Video added to timeline id="+D.video_id+" timelinePlaybackId="+z});
return z};
g.y.Ma=function(D,Q,m,P,W,L,u){if(H2(this)){var t,z=(t=this.jk)==null?void 0:QB7(t,D,Q,m,P,W,L,u);this.logger.debug(function(){return"Remaining video added to timeline id="+D.video_id+" timelinePlaybackId="+((z==null?void 0:z.Um)||"")})}};
g.y.HL=function(D){(this.V("html5_ssdai_new_decoration_logic")||this.dB().getVideoData().zH)&&this.dB().wM(D,"","");var Q;(Q=this.jk)==null||Q.HL(D)};
g.y.TT=function(D,Q){D=D===void 0?-1:D;Q=Q===void 0?Infinity:Q;H2(this)||pr$(this.Ax,D,Q)};
g.y.rr=function(D,Q,m){if(H2(this)){var P=this.jk,W=P.S.zc({Um:D});W?(m===void 0&&(m=W.b7),z4_(P,W,Q,m)):P.LF("Invalid_timelinePlaybackId_"+D+"_specified")}else{P=this.Ax;W=null;for(var L=g.T(P.C),u=L.next();!u.done;u=L.next())if(u=u.value,u.Um===D){W=u;break}W?(m===void 0&&(m=W.b7),ATh(P,W,Q,m)):tH(P,"InvalidTimelinePlaybackId timelinePlaybackId="+D)}};
g.y.enqueueVideoByPlayerVars=function(D,Q,m,P){m=m===void 0?Infinity:m;P=P===void 0?"":P;this.QA();D=new g.ZY(this.SD,D);P&&(D.Um=P);UE_(this,D,Q,m)};
g.y.queueNextVideo=function(D,Q,m,P,W){m=m===void 0?NaN:m;D=this.preloadVideoByPlayerVars(D,Q===void 0?1:Q,m,P===void 0?"":P,W===void 0?"":W);Q=this.Zx();D&&(this.V("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&Q.getVideoData().U&&(m=this.dE,P=this.Hc.J,m.B!==D&&(m.C=Q,m.B=D,m.T=1,m.S=D.getVideoData(),m.J=P,m.S.isLoaded()?m.N():m.S.subscribe("dataloaded",m.N,m))):(m=qC7(Q,D,this.Hc.J),m!=null?(Q.dc("sgap",m),Q.getVideoData().U&&Q.qR(!1)):(D=D.getVideoData(),Q=this.dE,Q.S!==
D&&(Q.S=D,Q.T=1,D.isLoaded()?Q.U():Q.S.subscribe("dataloaded",Q.U,Q)))))};
g.y.z$=function(D,Q,m,P){var W=this;m=m===void 0?0:m;P=P===void 0?0:P;Td(this,this.Zx()).NS();nC_(this.Hc,D,Q,m,P).then(function(){W.zO.Q0("onQueuedVideoLoaded")},function(){})};
g.y.O3=function(){return this.Hc.O3()};
g.y.jm=function(D){var Q=this.Hc.S;return Q?Q.cf(D):!1};
g.y.clearQueue=function(D,Q){D=D===void 0?!1:D;Q=Q===void 0?!1:Q;this.logger.debug("Clearing queue");this.Hc.clearQueue(D,Q)};
g.y.loadVideoByPlayerVars=function(D,Q,m,P,W,L){Q=Q===void 0?1:Q;var u=this.dB();if(Q===2&&this.tD().enableServerStitchedDai&&u&&!u.pm())return u.dc("lvonss",{vid:(D==null?void 0:D.videoId)||"",ptype:Q}),!1;var t=!1;u=new g.ZY(this.SD,D);u.Oj=L;g.wv(this.SD)&&!u.BB&&ZT(this.QX);var z;L=this.QX;var b=(z=u.TO)!=null?z:"";L.timerName=b;this.QX.Dw("pl_i");this.V("web_player_early_cpn")&&u.clientPlaybackNonce&&this.QX.infoGel({clientPlaybackNonce:u.clientPlaybackNonce});ii6(u).supportsVp9Encoding===!1&&
this.Zx().dc("noVp9enc",{});if(this.G().supportsGaplessShorts()){z=B4$(this.Hc,u,Q);if(z==null){F5(this,-1);var q;((q=this.Hc.S)==null?0:q.getVideoData().isAd())||K_(this);D=this.Hc;D.app.G().V("html5_gapless_new_slr")?Rc(D.app,"gaplessshortslooprange"):D.app.setLoopRange(null);D.app.getVideoData().oU=!0;var C;(C=D.S)==null||C.TN();var f;(f=D.S)==null||f.ub();m={cn:"gapless_to_next_video",seekSource:60,gW:D.J.S};P=g.WF(D.app.G().experiments,"html5_gapless_seek_offset");W=gC4(D);if(D.J.S){var V;u=
((V=D.T)==null?void 0:Y6(V))||{};V=u.s9;u=u.zJ;u!=null&&V!=null&&(W=u-V+.001)}var N;(N=D.app.Zx())==null||N.seekTo(W+P,m);if(!D.app.getPlayerStateObject(Q).isPlaying()){var h;(h=D.app.Zx())==null||h.playVideo(!0)}var B;(B=D.app.Zx())==null||B.bP();D.U();return!0}N=this.V("html5_shorts_gapless_preload_fallback");h=this.Hc.S;N&&h&&!h.VF()&&(B=h.getVideoData(),this.Vn.J.set(j7(Q,B),h,3600));this.Hc.clearQueue(N);this.Zx().dc("sgap",{f:z})}if(W){for(;u.k5.length&&u.k5[0].isExpired();)u.k5.shift();N=u.k5.length-
1;t=N>0&&W.C(u.k5[N])&&W.C(u.k5[N-1]);u.k5.push(W)}m||(D&&SZ_(D)?(Ts(this.SD)&&!this.wT&&(D.fetch=0),gX(this,D)):this.playlist&&gX(this,null),D&&(this.wT=cd(!1,D.external_list)));this.zO.publish("loadvideo");N=this.Ck(u,Q,P);t&&this.K6("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+u.k5.join()).replace(/[;:,]/g,"_"));return N};
g.y.preloadVideoByPlayerVars=function(D,Q,m,P,W){Q=Q===void 0?1:Q;m=m===void 0?NaN:m;P=P===void 0?"":P;W=W===void 0?"":W;var L=KCk(Q,D,W),u=this.Vn.J.get(L)||null;if(u)return this.logger.debug(function(){return"already preloaded "+L}),this.V("html5_return_playback_if_already_preloaded")?u:null;
D=new g.ZY(this.SD,D);W&&(D.Um=W);return HQ_(this,D,Q,m,P)};
g.y.setMinimized=function(D){this.visibility.setMinimized(D);(D=nE_(this.y0))&&(this.isMinimized()?D.load():D.unload());this.zO.publish("minimized")};
g.y.setInline=function(D){this.visibility.setInline(D)};
g.y.setInlinePreview=function(D){this.visibility.setInline(D)};
g.y.WL=function(D){$E9(this,D)||this.visibility.WL(D)};
g.y.setSqueezeback=function(D){this.visibility.setSqueezeback(D)};
g.y.Bf=function(){var D,Q=(D=this.mediaElement)==null?void 0:D.nj();Q&&(this.SD.AE&&Xc(AK(function(){return document.exitFullscreen()}),function(){}),Xc(AK(function(){return oS(Q)}),function(){}))};
g.y.I$W=function(){this.mediaElement.nj();this.mediaElement.nj().webkitPresentationMode==="picture-in-picture"?this.WL(!0):this.WL(!1)};
g.y.togglePictureInPicture=function(){this.Zx().togglePictureInPicture()};
g.y.Ck=function(D,Q,m){Q=Q===void 0?1:Q;this.logger.debug(function(){return"start load video, id "+D.videoId+", type "+Q});
IH("_start",this.QX.timerName)||g.xK(Tb)(void 0,this.QX.timerName);var P=!1,W=wYh(this,Q,D,!1);W?(P=!0,D.dispose()):(W=yb(this,Q,D,!0,m),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&W.Iw()&&W.rM(),this.CL.stop(),Q===1&&Q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Q),this.Vd(W));W===this.dB()&&(this.SD.uS=D.oauthToken);if(!W.Iw())return!1;if(W===this.dB())return this.Ar(1),m=wX(this),P&&this.V("html5_player_preload_ad_fix")&&W.getPlayerType()===1&&
W.Sl()&&this.Vs("dataloaded",W,W.getVideoData()),m;W.aW();return!0};
g.y.cueVideoByPlayerVars=function(D,Q){var m=this;Q=Q===void 0?1:Q;var P=this.dB();if(this.tD().enableServerStitchedDai&&P&&!P.pm()&&D&&Object.keys(D).length>0)P.dc("qvonss",{vid:(D==null?void 0:D.videoId)||"",ptype:Q});else if(D&&SZ_(D))if(this.FX=!0,gX(this,D),(D=g.Fe(this.playlist))&&D.EC())e7(this,D,Q);else this.playlist.onReady(function(){B2(m)});
else{Q||(Q=this.getPresentingPlayerType());Q===1&&this.iD();P=new g.ZY(this.SD,D);var W=g.W8(this.SD)&&!this.SD.Iy&&Q===1&&!P.isAd()&&!P.A8;this.zO.publish("cuevideo");W?(this.Zx().getVideoData().loading=!0,mon(P,D?D:{}).then(function(L){e7(m,L,Q)}),P.dispose()):e7(this,P,Q)}};
g.y.yW=function(D,Q,m,P,W,L,u){if(!D&&!m)throw Error("Playback source is invalid");if(sO(this.SD)||g.f8(this.SD))return Q=Q||{},Q.lact=FE(),Q.vis=this.zO.getVisibilityState(),this.zO.sW("onPlayVideo",{videoId:D,watchEndpoint:L,sessionData:Q,listId:m}),!1;xM$(this.QX);this.QX.reset();D={video_id:D};P&&(D.autoplay="1");P&&(D.autonav="1");L&&(D.player_params=L.playerParams);u&&(D.oauth_token=u);m?(D.list=m,this.loadPlaylist(D)):this.loadVideoByPlayerVars(D,1);return!0};
g.y.cuePlaylist=function(D,Q,m,P){this.FX=!0;eSm(this,D,Q,m,P)};
g.y.loadPlaylist=function(D,Q,m,P){this.FX=!1;eSm(this,D,Q,m,P)};
g.y.KB=function(){return this.zO.isMutedByMutedAutoplay()?!1:this.Vn.Vy?!0:!(!this.playlist||!this.playlist.wF())};
g.y.Ju=Dk(5);
g.y.nextVideo=function(D,Q){var m=g.B1(this.dB().getVideoData());g.mW(this.zO)&&m?this.yW(m.videoId,Q?m.oD:m.sessionData,m.playlistId,Q,void 0,m.f3||void 0):this.wT?this.zO.Q0("onPlaylistNext"):this.getPresentingPlayerType()===3?rr(this.y0).nextVideo():!this.playlist||Ts(this.SD)&&!this.zO.isFullscreen()||(this.playlist.wF(D)&&M79(this.playlist,rH4(this.playlist)),this.playlist.loaded?(D=Q&&this.SD.V("html5_player_autonav_logging"),Q&&this.zO.publish("playlistautonextvideo"),this.Ck(g.Fe(this.playlist,void 0,
Q,D),1)):this.FX=!1)};
g.y.previousVideo=function(D){this.wT?this.zO.Q0("onPlaylistPrevious"):this.getPresentingPlayerType()===3?rr(this.y0).rO():!this.playlist||Ts(this.SD)&&!this.zO.isFullscreen()||(this.playlist.j9(D)&&M79(this.playlist,Gdh(this.playlist)),this.playlist.loaded?this.Ck(g.Fe(this.playlist),1):this.FX=!1)};
g.y.playVideoAt=function(D){this.wT?this.zO.Q0("onPlaylistIndex",D):this.playlist&&(this.playlist.loaded?this.Ck(g.Fe(this.playlist,D),1):this.FX=!1,M79(this.playlist,D))};
g.y.getPlaylist=function(){return this.playlist};
g.y.wb=Dk(19);g.y.Ez=function(D){this.JF=g.g0(this.JF,function(L){return L.id!==D});
for(var Q=this.dB(),m=Q.sN(),P=0;P<m.length;P++){var W=m[P];if(W.getId()===D)return Q.removeCueRange(W),v2(this,"cuerangesremoved",[W]),!0}return!1};
g.y.ihy=function(D){this.zO.cO("onCueRangeEnter",D.getId())};
g.y.Zhh=function(D){this.zO.cO("onCueRangeExit",D.getId())};
g.y.fG=function(D,Q,m){var P=this.zc({playerType:Q});if(P){if(this.V("html5_ssdai_enable_media_end_cue_range")&&this.jk){P.getPlayerType()===2&&ukw(this.jk,this.getCurrentTime())&&(P=this.dB());for(var W=g.T(D),L=W.next();!L.done;L=W.next())L.value.associatedClipId=this.jk.oF}P.fG(D,m);Q&&this.getPresentingPlayerType()!==Q||v2(this,"cuerangesadded",D)}};
g.y.Sw=function(D,Q){var m=this.zc({playerType:Q});m&&(m.Sw(D),Q&&this.getPresentingPlayerType()!==Q||v2(this,"cuerangesremoved",D))};
g.y.Ef=function(D){return this.Zx().Ef(D)};
g.y.pqh=function(D){var Q=this;if(!D||D===this.dB().GE()||!this.SD.V("html5_use_new_ssdai_transition_detector")){D=this.Zx();this.getPresentingPlayerType();p2m(this.QX,D.getVideoData(),Yp_(this));EZ(this)&&this.SD.B&&dr(this.tD())==="embedded"&&this.eq&&Math.random()<.01&&g.WD("autoplayTriggered",{intentional:this.intentionalPlayback});this.eq=!1;D=function(){var m=Q.screenLayer||(Q.isMinimized()?3:0),P=g.Tq(m);if(P&&P!=="UNDEFINED_CSN"){var W=Q.SD.V("web_player_attach_player_response_ve"),L=Q.SD.V("web_playback_associated_ve");
m={cpn:Q.getVideoData().clientPlaybackNonce,csn:P};Q.getVideoData().u0&&(W||L)&&(W=g.yi(Q.getVideoData().u0),g.MJ(P,W),L&&(m.playbackVe=W.getAsJson()));Q.getVideoData().queueInfo&&(m.queueInfo=Q.getVideoData().queueInfo);P={};Q.V("web_playback_associated_log_ctt")&&Q.getVideoData().N&&(P.cttAuthInfo={token:Q.getVideoData().N,videoId:Q.getVideoData().videoId});g.WD("playbackAssociated",m,P)}else g.l4(new g.OI("CSN Missing or undefined during playback association"))};
F7u(this.y0);this.V("web_player_defer_ad")&&nM_(this);this.zO.Q0("onPlaybackStartExternal");(this.SD.V("mweb_client_log_screen_associated"),VS(this.SD))||D();D={};this.getVideoData().N&&(D.cttAuthInfo={token:this.getVideoData().N,videoId:this.getVideoData().videoId});D.sampleRate=20;lc("player_att",D);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.EO(this.SD)||TZ(this.SD)==="MWEB"?g.xt(g.S0(),function(){kI(Q)}):kI(this);
this.hg();Jek(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.W8(this.SD)&&(D={autoplayBrowserPolicy:w_(),autoplayIntended:kf(this.getVideoData()),autoplayStatus:cV7(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.WD("embedsAutoplayStatusChanged",D))}};
g.y.dYz=function(){this.zO.publish("internalAbandon");K_(this)};
g.y.onApiChange=function(){var D=this.Zx();this.SD.Z?this.zO.cO("onApiChange",D.getPlayerType()):this.zO.cO("onApiChange")};
g.y.AU9=function(){var D=this.mediaElement;D={volume:g.eZ(Math.floor(D.getVolume()*100),0,100),muted:D.dK()};D.muted||lU(this,!1);this.Yt=g.o2(D);this.zO.cO("onVolumeChange",D)};
g.y.mutedAutoplay=function(D){var Q=this.getVideoData().videoId;isNaN(this.Z6)&&(this.Z6=this.getVideoData().startSeconds);if((D==null?0:D.videoId)||Q)this.loadVideoByPlayerVars({video_id:(D==null?0:D.videoId)?D==null?void 0:D.videoId:Q,playmuted:!0,start:this.Z6,muted_autoplay_duration_mode:D==null?void 0:D.durationMode}),this.zO.Q0("onMutedAutoplayStarts")};
g.y.onFullscreenChange=function(){var D=Ae9(this);this.ag(D?1:0);xE_(this,!!D)};
g.y.ag=function(D){var Q=!!D,m=!!this.H6()!==Q;this.visibility.ag(D);this.template.ag(Q);this.V("html5_media_fullscreen")&&!Q&&this.mediaElement&&Ae9(this)===this.mediaElement.nj()&&this.mediaElement.j3();this.template.resize();m&&this.QX.tick("fsc");m&&(this.zO.publish("fullscreentoggled",Q),D=this.tD(),Q={fullscreen:Q,videoId:D.f4||D.videoId,time:this.getCurrentTime()},this.zO.getPlaylistId()&&(Q.listId=this.zO.getPlaylistId()),this.zO.cO("onFullscreenChange",Q))};
g.y.gX=function(){return this.visibility.gX()};
g.y.isFullscreen=function(){return this.visibility.isFullscreen()};
g.y.H6=function(){return this.visibility.H6()};
g.y.Xny=function(){var D=this.H6();D!==0&&D!==1||this.ag(Ae9(this)?1:0);D=window.screen.width*window.screen.height;var Q=window.outerHeight*window.outerWidth;this.SD.lR?(this.eE=Math.max(this.eE,D,Q),D=Q/this.eE<this.SD.iR,this.visibility.WL(D),this.SD.Co&&$E9(this,D)):this.mediaElement&&jmw(this,Q/D<.33)&&this.mediaElement.j3()};
g.y.IeW=function(D){this.Vn.Vy||this.zO.publish("liveviewshift",D)};
g.y.playVideo=function(D,Q){this.logger.debug(function(){return"play video, player type "+D});
var m=this.zc({playerType:D});m?this.appState===2?(g.wv(this.SD)&&ZT(this.QX),wX(this)):g.X(m.getPlayerState(),2)?(Q=36,this.getVideoData().LU()&&(Q=37),this.seekTo(0,void 0,void 0,void 0,Q,"_play")):m.playVideo(!1,Q):this.Vn.S.playVideo(!1,Q)};
g.y.pauseVideo=function(D,Q){(D=this.zc({playerType:D}))?D.pauseVideo(Q):this.Vn.S.pauseVideo(Q)};
g.y.stopVideo=function(D){D=D===void 0?!1:D;this.logger.debug(function(){return"stop video"});
var Q=this.dB().getVideoData(),m=new g.ZY(this.SD,{video_id:Q.f4||Q.videoId,oauth_token:Q.oauthToken});m.Z=g.o2(Q.Z);D&&!this.webPlayerContextConfig.disableStaleness&&(m.b_=!0);this.cancelPlayback(6);e7(this,m,1)};
g.y.cancelPlayback=function(D,Q){var m=this;this.logger.debug(function(){return"start cancel playback, type "+Q});
var P=this.zc({playerType:Q});P?Q===2&&P.getPlayerType()===1&&NO(this.tD())?P.dc("canclpb",{r:"no_adpb_ssdai"}):(this.SD.xl()&&P.dc("canclpb",{r:D}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+m.appState}):(P===this.Zx()&&(this.logger.debug("cancel playback, destroy modules"),IY(this.y0,D)),Q===1&&(P.stopVideo(),K_(this)),P.Gb(void 0,D!==6),v2(this,"cuerangesremoved",P.sN()),P.kH(),this.Hc&&P.isGapless()&&(P.U3(!0),P.setMediaElement(this.mediaElement)))):
this.logger.debug("cancel playback end, no player to cancel")};
g.y.sendVideoStatsEngageEvent=function(D,Q,m){(Q=this.zc({playerType:Q}))&&ON$(this.SD,D)?Q.sendVideoStatsEngageEvent(D,m):m&&m()};
g.y.uH=function(D){var Q=this.zc({playerType:void 0});return Q&&ON$(this.SD,D)?Q.uH(D):null};
g.y.updatePlaylist=function(){!Ts(this.SD)&&g.W8(this.SD)&&gM6(this);this.zO.Q0("onPlaylistUpdate")};
g.y.setSizeStyle=function(D,Q){this.RM=D;this.V("web_log_theater_mode_visibility")?this.lP(Q):this.d7=Q;this.zO.publish("sizestylechange",D,Q);this.template.resize()};
g.y.lP=function(D){this.visibility.lP(D)};
g.y.iS=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.iS():this.d7};
g.y.isMinimized=function(){return this.visibility.isMinimized()};
g.y.isInline=function(){return this.visibility.isInline()};
g.y.CU=function(){return this.visibility.CU()};
g.y.DS=function(){return this.visibility.DS()};
g.y.u9=function(){return this.visibility.u9()};
g.y.CH=function(){return this.RM};
g.y.getAdState=function(){if(this.getPresentingPlayerType()===3)return rr(this.y0).getAdState();if(!this.QA()){var D=RY(this.HY());if(D)return D.getAdState()}return-1};
g.y.st0=function(D){var Q=this.template.getVideoContentRect();vu(this.T0,Q)||(this.T0=Q,this.Zx().Mz(),(Q=this.dB())&&Q===this.Zx()&&Q.Mz(),this.H6()===1&&this.Io&&xE_(this,!0));Q=this.fh().dY!==this.n8;this.n8=this.fh().dY;this.t1&&g.p6(this.t1,D)&&!Q||(this.zO.publish("appresize",D),this.t1=D)};
g.y.I_=function(){return this.zO.I_()};
g.y.HMh=function(){this.getPresentingPlayerType()===2&&this.Ax.isManifestless()?am7(this.Ax):(this.jk&&(b06(this.jk),K_(this)),XYw(this,"signature"))};
g.y.Nn0=function(D){D&&XYw(this,"reloadPlayerEvent",void 0,D)};
g.y.UX=function(D){this.U3(D);Zg(this)};
g.y.Bn9=function(D){if(D.errorCode==="manifest.net.badstatus"){var Q=this.SD.experiments.Mv("html5_use_network_error_code_enums")?401:"401";D.details.rc===Q&&this.zO.sW("onPlayerRequestAuthFailed")}};
g.y.Tnv=function(D){this.zO.publish("heartbeatparams",D)};
g.y.yH=function(D){this.zO.sW("onAutonavChangeRequest",D!==1)};
g.y.Cn=function(){return this.mediaElement};
g.y.setBlackout=function(D){if(this.SD.XT!==D){this.SD.XT=D;var Q=this.Zx();Q.NR();this.SD.wc&&rej(this);Q.pF(D)}};
g.y.pYq=function(){var D=this.Zx(),Q=!this.zO.jj();D.FO(Q)};
g.y.hk9=function(){this.zO.Q0("onLoadedMetadata")};
g.y.Smz=function(){this.zO.Q0("onDrmOutputRestricted")};
g.y.r5=function(){this.intentionalPlayback=!0};
g.y.Bq=function(){this.y0.dispose();this.zR.dispose();this.Ax.dispose();this.jk&&this.jk.dispose();this.dB().dispose();this.U3();this.Vn.dispose();g.Qj(this.playlist);g.v.prototype.Bq.call(this)};
g.y.V=function(D){return this.SD.V(D)};
g.y.setScreenLayer=function(D){this.screenLayer=D};
g.y.getInternalApi=function(){return this.zO.getInternalApi()};
g.y.createSubtitlesModuleIfNeeded=function(){return this.y0.createSubtitlesModuleIfNeeded()};
g.y.isOrchestrationLeader=function(){var D=HC(this.y0);return D?D.isOrchestrationLeader():!1};
g.y.getVideoUrl=function(D,Q,m,P,W){if(this.Or&&this.Or.postId)return D=this.SD.getVideoUrl(D),D=FA(D,"v"),D.replace("/watch","/clip/"+this.Or.postId);var L=this.zO.isEmbedsShortsMode()||this.SD.t0==="shortspage",u=g.ny(this.getVideoData());return this.SD.getVideoUrl(D,Q,m,P,W,L,u)};
g.y.WI=function(){return this.Hc.WI()};
g.y.Ui=function(D,Q,m){this.zO.publish("spsumpreject",D,Q,m)};
g.y.NW=function(){try{for(var D=g.T(Object.values(this.Vn.T)),Q=D.next();!Q.done;Q=D.next()){var m=Q.value;m.VF()||m.NW()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var P=g.T(Ee4(this.Vn.J)),W=P.next();!W.done;W=P.next()){var L=W.value;L.VF()||L.NW()}this.dB().NW()}catch(u){g.l4(u)}};
g.y.RO=function(){if(this.jk){var D=(0,g.T3)();return this.jk.RO(D)}return!1};
g.y.Z9=function(D){var Q=this.dB();D&&(Q=Mnw(this,D));if(Q){var m=Q.getVideoData();D=new Map;m=g.T(m.sabrContextUpdates);for(var P=m.next();!P.done;P=m.next()){var W=g.T(P.value);P=W.next().value;W=W.next().value;var L=void 0;W.scope===4&&((L=Q)==null?0:L.Hg(P))&&D.set(P,W)}return D}this.dB().dc("scuget",{ncpf:"1",ccpn:D})};
g.y.gk=function(D,Q){this.Ac.push({key:D,value:Q})};
var wR={};var l0K={f1:[{Ek:/Unable to load player module/,weight:20},{Ek:/Failed to fetch/,weight:500},{Ek:/XHR API fetch failed/,weight:10},{Ek:/JSON parsing failed after XHR fetch/,weight:10},{Ek:/Retrying OnePlatform request/,weight:10},{Ek:/CSN Missing or undefined during playback association/,weight:100},{Ek:/Non-recoverable error. Do not retry./,weight:0},{Ek:/Internal Error. Retry with an exponential backoff./,weight:0},{Ek:/API disabled by application./,weight:0}],Nr:[{callback:ce7,weight:500}]};var bT_=/[&\?]action_proxy=1/,zp4=/[&\?]token=([\w-]*)/,qVh=/[&\?]video_id=([\w-]*)/,C$_=/[&\?]index=([\d-]*)/,odh=/[&\?]m_pos_ms=([\d-]*)/,Vy$=/[&\?]vvt=([\w-]*)/,P$n="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(" "),f6w="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(" "),sk_={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"},Lf6={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},d1P={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};ac.prototype.Ue=function(D){this.player.Dr().tick(D)};
ac.prototype.fetch=function(D,Q){var m=this;if(!D.match(/\[BISCOTTI_ID\]/g))return this.C(D,Q);var P=this.S===1;P&&this.Ue("a_bid_s");var W=Qk7();if(W!==null)return P&&this.Ue("a_bid_f"),this.C(D,Q,W);W=m1$();P&&g.Is(W,function(){m.Ue("a_bid_f")});
return W.then(function(L){return m.C(D,Q,L)})};
ac.prototype.C=function(D,Q,m){var P=this,W=Q===void 0?{}:Q;Q=W.K2;var L=W.p6;var u=W.cueProcessedMs;m=m===void 0?"":m;var t=this.player.getVideoData(1);W=this.player.G().pU;var z=0;if(u&&L&&!Q){var b=L.end-L.start;b>0&&(z=Math.floor(b/1E3))}z=Q?Q.m$:z;var q={AD_BLOCK:this.S++,AD_BREAK_LENGTH:z,AUTONAV_STATE:YI(this.player.G()),CA_TYPE:"image",CPN:t.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.O1()*1E3,LACT:FE(),LIVE_INDEX:Q?this.T++:1,LIVE_TARGETING_CONTEXT:Q&&Q.context?Q.context:"",MIDROLL_POS:L?
Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.fh().bS().height,P_W:this.player.fh().bS().width,YT_REMOTE:W?W.join(","):""},C=s2(iS);Object.keys(C).forEach(function(V){C[V]!=null&&(q[V.toUpperCase()]=C[V].toString())});
m!==""&&(q.BISCOTTI_ID=m);m={};Wd(D)&&(m.sts="20311",(Q=this.player.G().forcedExperiments)&&(m.forced_experiments=Q));var f=Qk(g.BV(D,q),m);return f.split("?").length!==2?J9(Error("Invalid AdBreakInfo URL")):g.UO(this.player.G(),t==null?void 0:t.oauthToken).then(function(V){if(V&&Pd()){var N=ii();sD(N,V)}V=P.player.lS(N);N=Ncr(P,f,q,t.isMdxPlayback,u);return g.jz(V,N,"/youtubei/v1/player/ad_break").then(function(h){return h})})};
ac.prototype.reset=function(){this.T=this.S=1};g.Z(yqk,ac);
yqk.prototype.C=function(D,Q,m){Q=Q===void 0?{}:Q;var P=Q.K2;var W=Q.p6;var L=Q.cueProcessedMs;m=m===void 0?"":m;Q=this.S;this.S++;var u=this.player.G().V("h5_disable_macro_substitution_in_get_ad_break")?D:ZT$(this,D,{K2:P,p6:W,cueProcessedMs:L},m,Q);if(u.split("?").length!==2)return Math.random()<.1&&g.l4(Error("Invalid AdBreakInfo URL")),J9(Error("Invalid AdBreakInfo URL"));var t=this.player.getVideoData(1).isMdxPlayback,z=m;m=zp4.exec(u);m=m!=null&&m.length>=2?m[1]:"";D=bT_.test(u);var b=qVh.exec(u);
b=b!=null&&b.length>=2?b[1]:"";var q=C$_.exec(u);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var C=odh.exec(u);C=C!=null&&C.length>=2?C[1]:"0";var f=o8(this.player.G().LI),V=g.MW(this.player.getVideoData(1).u0,!0);iT6(this,V,u,z===""?"":z,this.player.G(),this.player.getVideoData(1));z={splay:!1,lactMilliseconds:String(FE()),playerHeightPixels:Math.trunc(this.player.fh().bS().height),playerWidthPixels:Math.trunc(this.player.fh().bS().width),vis:Math.trunc(this.player.getVisibilityState()),
signatureTimestamp:20311,autonavState:YI(this.player.G())};if(t){t={};var N=this.player.G().pU;uS9(t,N?N.join(","):"")&&(z.mdxContext=t)}if(t=f6w.includes(f)?void 0:g.lS("PREF")){N=t.split(RegExp("[:&]"));for(var h=0,B=N.length;h<B;h++){var J=N[h].split("=");if((J[0].toUpperCase()==="SML"||J[0].toUpperCase()==="GSML")&&J.length>1&&J[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}z.autoCaptionsDefaultOn=tyP(t)}u=Vy$.exec(u);(u=u!=null&&u.length>=2?u[1]:"")&&b&&(V.user.credentialTransferTokens=
[{token:u,scope:"VIDEO"}]);u={contentPlaybackContext:z};z=this.player.getVideoData(1).getGetAdBreakContext();t=this.player.getVideoData(1).clientPlaybackNonce;N=L!==void 0?Math.round(L).toString():void 0;h=(P==null?0:P.context)?P.context:void 0;B=0;L&&W&&!P&&(W=W.end-W.start,W>0&&(B=Math.floor(W/1E3)));P=(P=Math.trunc((P?P.m$:B)*1E3))?String(P):void 0;W=this.player.O1()*1E3;W=Number.isNaN(W)?0:Math.trunc(W);Q={adBlock:Q,params:m,breakIndex:q,breakPositionMs:C,clientPlaybackNonce:t,topLevelDomain:f,
isProxyAdTagRequest:D,context:V,overridePlaybackContext:u,cueProcessedMs:N,videoId:b?b:void 0,liveTargetingParams:h,breakLengthMs:P,driftFromHeadMs:W?String(W):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:z?z:void 0};return Ffn(this,Q)};var I02={ioz:"replaceUrlMacros",T3T:"onAboutThisAdPopupClosed",ync:"executeCommand"};Tc4.prototype.JZ=function(){return"adPingingEndpoint"};
Tc4.prototype.cZ=function(D,Q,m){sn4(this.eD.get(),D,Q,m)};hpj.prototype.JZ=function(){return"changeEngagementPanelVisibilityAction"};
hpj.prototype.cZ=function(D){this.D.sW("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:D})};ndr.prototype.JZ=function(){return"loggingUrls"};
ndr.prototype.cZ=function(D,Q,m){D=g.T(D);for(var P=D.next();!P.done;P=D.next())P=P.value,sn4(this.eD.get(),P.baseUrl,Q,m,P.attributionSrcMode)};g.Z(gd9,g.v);g.Z(p_,g.v);g.y=p_.prototype;g.y.addListener=function(D){this.listeners.push(D)};
g.y.removeListener=function(D){this.listeners=this.listeners.filter(function(Q){return Q!==D})};
g.y.Wc=function(D,Q,m,P,W,L,u,t){if(D==="")bu("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(D!==this.S||m){this.S=D;this.Hq.get().Wc(D,Q,m,P,W,L,u,t);this.qv.get().Wc(D,Q,m,P,W,L,u,t);var z;(z=this.sC)==null||z.get().Wc(D,Q,m,P,W,L,u,t);this.C.Wc(D,Q,m,P,W,L,u,t);z=g.T(this.listeners);for(var b=z.next();!b.done;b=z.next())b.value.Wc(D,Q,m,P,W,L,u,t)}else bu("Duplicate content video loaded signal")};
g.y.wYq=function(){this.S&&this.r3(this.S)};
g.y.r3=function(D){this.S=void 0;for(var Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.r3(D)};xI.prototype.s4=function(D,Q,m,P,W){Bck(this);this.J=!Q&&m===0;var L=this.D.getVideoData(1),u=this.D.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.S=L.N);u&&(this.adCpn=u.clientPlaybackNonce,this.adVideoId=u.videoId,this.adFormat=u.adFormat);this.B=D;P<=0?(Bck(this),this.J=!Q&&m===0):(this.actionType=this.J?Q?"unknown_type":"video_to_ad":Q?"ad_to_video":"ad_to_ad",this.videoStreamType=W?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.T=!0,IH("_start",this.actionType)&&Jqh(this)))};
xI.prototype.reset=function(){return new xI(this.D)};g.Z(X5,g.v);X5.prototype.addCueRange=function(D,Q,m,P,W,L,u,t,z){L=L===void 0?3:L;u=u===void 0?1:u;this.S.has(D)?bu("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:D}):(D=new l6n(D,Q,m,P,L,t,z),this.S.set(D.id,{p6:D,listener:W,E1:u}),this.D.GY([D],u))};
X5.prototype.removeCueRange=function(D){var Q=this.S.get(D);Q?(this.D.sY([Q.p6],Q.E1),this.S.delete(Q.p6.id)):bu("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:D})};
X5.prototype.onCueRangeEnter=function(D){if(this.S.has(D.id))this.S.get(D.id).listener.onCueRangeEnter(D.id)};
X5.prototype.onCueRangeExit=function(D){if(this.S.has(D.id))this.S.get(D.id).listener.onCueRangeExit(D.id)};
g.Z(l6n,g.XB);S7.prototype.addPlayerResponseForAssociation=function(D){this.D.addPlayerResponseForAssociation(D)};rX.prototype.bL=function(D){this.D.bL(D)};
rX.prototype.wg=function(D){var Q=g.e$.apply(1,arguments);D==="onAdStart"||D==="onAdEnd"?this.D.cO.apply(this.D,[D].concat(g.on(Q))):this.D.sW.apply(this.D,[D].concat(g.on(Q)))};Gd.prototype.xV=function(D){return D&&MM(this)};var a6_=null;g.Z(YVj,g.iR);YVj.prototype.Xe=function(D){return this.S.hasOwnProperty(D)?this.S[D].Xe():{}};
g.ch("ytads.bulleit.getVideoMetadata",function(D){return c2().Xe(D)});
g.ch("ytads.bulleit.triggerExternalActivityEvent",function(D,Q,m){var P=c2();m=OT7(m);m!==null&&P.publish(m,{queryId:D,viewabilityString:Q})});g.y=Dv.prototype;g.y.j1=function(D,Q){if(!this.S.has(D))return{};if(Q==="seek"){Q=!1;Q=Q===void 0?!1:Q;var m=yT(Az).QO(D,{});m?v3(m):Q&&(D=yT(Az).UU(null,Jo(),!1,D),D.mK=3,Tx9([D]));return{}}Q=pn6(Q);if(Q===null)return{};var P=this.D.Lq();if(!P)return{};var W=this.D.getPresentingPlayerType(!0);if((m=this.D.getVideoData(W))==null||!m.isAd())return{};m={opt_adElement:P,opt_fullscreen:this.Hq.get().isFullscreen()};return TS_(Q,D,m)};
g.y.SZ=function(D,Q,m,P,W){this.S.has(D)&&(P<=0||W<=0||yT(Az).SZ(D,Q,m,P,W))};
g.y.kf=function(D){var Q;(Q=this.S.get(D.queryId))==null||Q.kf()};
g.y.qH=function(D){var Q;(Q=this.S.get(D.queryId))==null||Q.qH()};
g.y.zK=function(D){var Q;(Q=this.S.get(D.queryId))==null||Q.zK()};
g.y.xf=function(D){var Q;(Q=this.S.get(D.queryId))==null||Q.xf()};
g.y.UG=function(D){var Q;(Q=this.S.get(D.queryId))==null||Q.UG()};QnK.prototype.send=function(D,Q,m,P){try{mu4(this,D,Q,m,P===void 0?!1:P)}catch(W){}};g.Z(P6h,QnK);WjP.prototype.send=function(D,Q,m,P){var W=!1;try{if(P==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")W=!0,D=Wd4(D);P=W;var L=g.LG(D);if(L[1]==="https")var u=D;else L[1]="https",u=s3("https",L[2],L[3],L[4],L[5],L[6],L[7]);var t=Wow(u);L=[];var z=A9j(u)&&this.Ry.get().D.G().experiments.Mv("add_auth_headers_to_remarketing_google_dot_com_ping");if(Wd(u)||z)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}),
L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.S.send({baseUrl:u,scrubReferrer:t,headers:L},Q,m,P)}catch(b){}};iG.prototype.uH=function(){return this.D.uH(1)};g.Z(sL,g.v);g.y=sL.prototype;g.y.Hi=function(){return this.D.getVideoData(1).clientPlaybackNonce};
g.y.addListener=function(D){this.listeners.push(D)};
g.y.removeListener=function(D){this.listeners=this.listeners.filter(function(Q){return Q!==D})};
g.y.Wc=function(){this.BH.clear();this.O5=null;this.aZ.get().clear()};
g.y.r3=function(){};
g.y.kYF=function(D,Q,m,P,W){Q.videoId==="nPpU29QrbiU"&&this.D.dc("ads_ssm_vdc_s",{pt:m,dvt:D});D4(this.Ry.get())&&D!=="dataloaded"||q_k(this,Q,m);if(MM(this.Ry.get())&&D==="newdata"&&W!==void 0){D=this.Hi();var L=Q.clientPlaybackNonce,u={};bn(this,"rte",(u.ec=L,u.xc=P==null?void 0:P.clientPlaybackNonce,u.tr=W,u.pt=m,u.ia=L!==D,u.ctp=za(L),u));Q=Q.clientPlaybackNonce;P=P==null?void 0:P.clientPlaybackNonce;W=C62(W);if(W!==1)if(P!==void 0)for(m=g.T(this.listeners),D=m.next();!D.done;D=m.next())D.value.YE(P,
Q,W);else bu("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Q,transitionReason:String(W)});W=g.T(this.listeners);for(P=W.next();!P.done;P=W.next())P.value.p8(Q)}};
g.y.B2F=function(D,Q){D!==void 0&&(this.O5=D,Q===void 0?bu("Expected ad video start time on SS video changed"):this.BH.set(D,Q));var m=this.D.getPresentingPlayerType(!0),P=this.D.getVideoData(m),W;D===void 0?W=null:W=this.aZ.get().S.get(D)||null;this.D.getVideoData(1).dc("ads_ssvc",{pt:m,cpn:P==null?void 0:P.clientPlaybackNonce,crtt:this.D.getCurrentTime(1,!1),atlh:this.D.isAtLiveHead(),adstt:Q,pid:D,slid:W==null?void 0:W.layoutId});P?q_k(this,P,m):bu("Expected video data on server stitched video changed",
void 0,void 0,{cpn:this.D.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:D})};
g.y.X8=function(D,Q){var m=D.author,P=D.clientPlaybackNonce,W=D.isListed,L=D.Um,u=D.title,t=D.Rc,z=D.sZ,b=D.isMdxPlayback,q=D.oz,C=D.mdxEnvironment,f=D.isAutonav,V=D.cj,N=D.BB,h=D.jZ,B=D.videoId||"",J=D.profilePicture||"",k=D.M4||"",R=D.LU()||!1,e=D.xB()||!1;D=D.zQ||void 0;L=this.aZ.get().S.get(L)||{layoutId:null,slotId:null};var a=this.D.getVideoData(1),G=a.VX();a=a.getPlayerResponse();Q=1E3*this.D.getDuration(Q);var S=1E3*this.D.getDuration(1),u6,L9,d7=(a==null?void 0:(u6=a.playerConfig)==null?
void 0:(L9=u6.daiConfig)==null?void 0:L9.enableDai)||!1,b6,mj;u6=(a==null?void 0:(b6=a.playerConfig)==null?void 0:(mj=b6.daiConfig)==null?void 0:mj.enablePreroll)||!1;return Object.assign({},L,{videoId:B,author:m,clientPlaybackNonce:P,jL:Q,F9:S,daiEnabled:d7,XD:u6,isListed:W,VX:G,profilePicture:J,title:u,M4:k,Rc:t,sZ:z,zQ:D,isMdxPlayback:b,oz:q,mdxEnvironment:C,isAutonav:f,cj:V,BB:N,jZ:h,LU:R,xB:e})};
g.y.Bq=function(){this.listeners.length=0;this.n2=null;g.v.prototype.Bq.call(this)};g.Z(Lw,g.v);g.y=Lw.prototype;g.y.Wc=function(){var D=this;MM(this.Ry.get())||(this.S=R$(function(){D.D.VF()||D.D.wi("ad",1)}))};
g.y.r3=function(){};
g.y.addListener=function(D){this.listeners.push(D)};
g.y.removeListener=function(D){this.listeners=this.listeners.filter(function(Q){return Q!==D})};
g.y.fH=function(){};
g.y.playVideo=function(){this.D.playVideo()};
g.y.pauseVideo=function(){this.D.pauseVideo()};
g.y.resumeVideo=function(D){this.Xv(D)&&this.D.playVideo()};
g.y.Xv=function(D){return this.D.getPlayerState(D)===2};
g.y.getCurrentTimeSec=function(D,Q,m){var P=this.qv.get().O5;if(D===2&&!Q&&P!==null)return tx(this,P);eq(this.Ry.get(),"html5_ssap_use_cpn_to_get_time")||(m=void 0);return m!==void 0?this.D.getCurrentTime(D,Q,m):this.D.getCurrentTime(D,Q)};
g.y.getVolume=function(){return this.D.getVolume()};
g.y.isMuted=function(){return this.D.isMuted()};
g.y.getPresentingPlayerType=function(){return this.D.getPresentingPlayerType(!0)};
g.y.getPlayerState=function(D){return this.D.getPlayerState(D)};
g.y.getGetAdBreakContext=function(){return this.D.getGetAdBreakContext()};
g.y.isFullscreen=function(){return this.D.isFullscreen()};
g.y.isAtLiveHead=function(){return this.D.isAtLiveHead()};
g.y.Wj=function(D){this.D.Wj(D)};
g.y.cxz=function(){var D=this.D.getPresentingPlayerType(!0),Q=this.getCurrentTimeSec(D,!1);if(D===2){D=g.T(this.listeners);for(var m=D.next();!m.done;m=D.next())m.value.Zr(Q)}else if(D===1)for(D=g.T(this.Wm),m=D.next();!m.done;m=D.next())m.value.fH(Q)};
g.y.DYc=function(D){for(var Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.sH(D,this.getPresentingPlayerType())};
g.y.onFullscreenToggled=function(D){for(var Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.onFullscreenToggled(D)};
g.y.onVolumeChange=function(){for(var D=g.T(this.listeners),Q=D.next();!Q.done;Q=D.next())Q.value.onVolumeChange()};
g.y.zE=function(){for(var D=this.D.isMinimized(),Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.zE(D)};
g.y.iK=function(D){for(var Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.iK(D)};
g.y.MB=function(){for(var D=this.D.fh().bS(),Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.dT(D)};
g.y.An=function(D){for(var Q=g.T(this.listeners),m=Q.next();!m.done;m=Q.next())m.value.An(D)};
g.y.Pc=function(){for(var D=g.T(this.listeners),Q=D.next();!Q.done;Q=D.next())Q.value.Pc()};g.Z(N7h,g.v);g.Z(qo,g.v);qo.prototype.Bq=function(){this.fm.VF()||this.fm.get().removeListener(this);g.v.prototype.Bq.call(this)};Cw.prototype.fetch=function(D){var Q=D.Tz;return this.S.fetch(D.Fk,{K2:D.K2===void 0?void 0:D.K2,p6:Q,cueProcessedMs:D.cueProcessedMs===void 0?0:D.cueProcessedMs}).then(function(m){return y4k(m,Q)})};g.Z(of,g.v);g.y=of.prototype;g.y.addListener=function(D){this.listeners.push(D)};
g.y.removeListener=function(D){this.listeners=this.listeners.filter(function(Q){return Q!==D})};
g.y.qS=function(D){Z9h(this,D,1)};
g.y.onAdUxClicked=function(D,Q){fw(this,function(m){m.bQ(D,Q)})};
g.y.Gw=function(D){fw(this,function(Q){Q.Oh(D)})};
g.y.Yj=function(D){fw(this,function(Q){Q.HJ(D)})};
g.y.A0F=function(D){fw(this,function(Q){Q.v$(D)})};Vl.prototype.reduce=function(D){switch(D.event){case "unknown":return}var Q=D.identifier;var m=this.S[Q];m?Q=m:(m={Z2:null,RN:-Infinity},Q=this.S[Q]=m);m=D.startSecs+D.S/1E3;if(!(m<Q.RN))if(Q.RN=m,Q.Z2){if(m<Q.Z2.end){a:{m=Q.Z2;switch(D.event){case "start":case "continue":case "stop":break;default:D=null;break a}D=m.start+D.m$;D=m.end<=D?null:D}if(D!==null)for(Q.Z2.end=D,Q=this.C,g.XK(Q.T.S,D*1E3),Q=g.T(Q.listeners),m=Q.next();!m.done;m=Q.next())m.value.Fm(D)}}else if(D=Fj4(D,this.T))m=D.VU,Q.Z2=
D.P2,hrk(this.C,m)};
Vl.prototype.updateTime=function(){};g.Z(No,g.v);g.y=No.prototype;
g.y.Wc=function(){this.J=new Vl(this,HTh(this.Ry.get()));this.T=new T7T;var D=this.D.getVideoData(1);if(!D.enableServerStitchedDai){var Q=this.D.getVideoData(1),m;((m=this.C)==null?void 0:m.clientPlaybackNonce)!==Q.clientPlaybackNonce&&(this.C!=null&&this.C.unsubscribe("cuepointupdated",this.oL,this),Q.subscribe("cuepointupdated",this.oL,this),this.C=Q)}this.Mc.length=0;var P;Q=((P=D.S)==null?void 0:Vm9(P,0))||[];P=g.T(Q);for(Q=P.next();!Q.done;Q=P.next())Q=Q.value,this.uM(Q)&&(Q5(this.Ry.get())&&
UJ(this.eD.get(),"ocvl","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs),bu("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:Q.identifier,cuePointEvent:Q.event,contentCpn:D.clientPlaybackNonce}))};
g.y.r3=function(){};
g.y.addListener=function(D){this.listeners.push(D)};
g.y.removeListener=function(D){this.listeners=this.listeners.filter(function(Q){return Q!==D})};
g.y.uM=function(D){EP4(this,D);if(jkw(this.Ry.get())&&this.D.getCurrentTime(1)===0&&this.D.getVideoData(1).xB())return!1;this.J.reduce(D);D=this.B;this.B=!1;return D};
g.y.oL=function(D){var Q=this.D.getVideoData(1).isDaiEnabled();if(Q||!g.f8(this.D.G())){D=g.T(D);for(var m=D.next();!m.done;m=D.next())if(m=m.value,EP4(this,m),Q5(this.Ry.get())&&this.D.getCurrentTime(1)===0&&m.event==="start"&&UJ(this.eD.get(),"ocuz","cpi."+m.identifier+";cpe."+m.event+";cps."+m.startSecs+";cpd."+m.m$),Q)jkw(this.Ry.get())&&this.D.getCurrentTime(1)===0&&this.D.getVideoData(1).xB()||this.J.reduce(m);else if(this.D.getCurrentTime(1)!==0&&m.event==="start")if(this.Ry.get().D.G().experiments.Mv("ignore_overlapping_cue_points_on_endemic_live_html5")&&
(this.S==null||this.Ry.get().D.G().experiments.Mv("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.S.identifier!==m.identifier?0:m.startSecs+m.m$>=this.S.startSecs&&m.startSecs<=this.S.startSecs+this.S.m$)){var P=void 0;if(Q5(this.Ry.get())&&m.identifier!==((P=this.S)==null?void 0:P.identifier)){var W=P=void 0,L=void 0,u=void 0;UJ(this.eD.get(),"ocud","ccpi."+m.identifier+";ccpe."+m.event+";ccps."+m.startSecs+";\n               ccpd."+m.m$+";pcpi."+((P=this.S)==null?void 0:P.identifier)+
";pcpe."+((W=this.S)==null?void 0:W.event)+";\n               pcps."+((L=this.S)==null?void 0:L.startSecs)+";pcpd."+((u=this.S)==null?void 0:u.m$)+";")}P=void 0;m.identifier!==((P=this.S)==null?void 0:P.identifier)&&bu("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.S=m,hrk(this,m)}};
g.y.Bq=function(){this.C!=null&&(this.C.unsubscribe("cuepointupdated",this.oL,this),this.C=null);this.listeners.length=0;this.Mc.length=0;g.v.prototype.Bq.call(this)};g.y=Zv.prototype;g.y.tL=function(D,Q,m,P,W,L,u,t){return this.D.tL(D,Q,m,P,W,L,u,t)};
g.y.TT=function(D,Q){this.D.TT(D,Q)};
g.y.rr=function(D,Q,m){this.D.rr(D,Q,m)};
g.y.HL=function(D){this.D.HL(D)};
g.y.Ma=function(D,Q,m,P,W,L,u,t){this.D.Ma(D,Q,m,P,W,L,u,t)};
g.y.GV=function(D){return this.D.GV(D)};
g.y.finishSegmentByCpn=function(D,Q,m){m=gPv(m);this.D.finishSegmentByCpn(D,Q,m)};g.Z(FX,g.v);g.Z(wh2,g.v);g.Z(k7$,g.v);g.Z(J4$,g.v);g.Z(lkk,g.v);g.Z(Ikk,g.v);g.Z(UuK,g.v);UuK.prototype.T=function(){return this.C};g.Z(H94,aq);
H94.prototype.T=function(D){var Q=D.content;if(Q.componentType==="shopping-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.sW("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId,shoppingCompanionCarouselRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:this.S.sW("updateKevlarOrC3Companion",{})}else if(Q.componentType==="action-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);
this.S.sW("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId,actionCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.S.getVideoData(1),this.S.sW("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.S.sW("updateKevlarOrC3Companion",{})}else if(Q.componentType==="image-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.sW("updateKevlarOrC3Companion",
{contentVideoId:D&&D.videoId,imageCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.S.getVideoData(1),this.S.sW("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.S.sW("updateKevlarOrC3Companion",{})}else if(Q.componentType==="top-banner-image-text-icon-buttoned")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.sW("updateKevlarOrC3Companion",
{contentVideoId:D&&D.videoId,topBannerImageTextIconButtonedLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.S.getVideoData(1),this.S.sW("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.S.sW("updateKevlarOrC3Companion",{})}else if(Q.componentType==="banner-image")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.sW("updateKevlarOrC3Companion",
{contentVideoId:D&&D.videoId,bannerImageLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.S.getVideoData(1),this.S.sW("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.S.sW("updateKevlarOrC3Companion",{})}else if(Q.componentType==="ads-engagement-panel")switch(Q=Q.renderer,D.actionType){case 1:case 2:this.S.sW("updateEngagementPanelAction",Q.addAction);this.S.sW("changeEngagementPanelVisibility",
Q.expandAction);break;case 3:this.S.sW("changeEngagementPanelVisibility",Q.hideAction),this.S.sW("updateEngagementPanelAction",Q.removeAction)}else if(Q.componentType==="ads-engagement-panel-layout"){var m=Q.renderer;switch(D.actionType){case 1:case 2:this.S.sW("updateEngagementPanelAction",{action:Hi(m.addAction),layoutId:Q.layoutId,onLayoutVisibleCallback:Q.S,interactionLoggingClientData:Q.interactionLoggingClientData});this.S.sW("changeEngagementPanelVisibility",Hi(m.expandAction));break;case 3:this.S.sW("changeEngagementPanelVisibility",
Hi(m.hideAction)),this.S.sW("updateEngagementPanelAction",{action:Hi(m.removeAction)})}}};g.Z(KjQ,cR);g.y=KjQ.prototype;g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);g.YZ(this.T,"stroke-dasharray","0 "+this.C);this.T.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.N.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.B.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.y.clear=function(){this.hide()};
g.y.hide=function(){QQ(this);cR.prototype.hide.call(this)};
g.y.show=function(){Dc(this);cR.prototype.show.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();D!=null&&D.current!=null&&g.YZ(this.T,"stroke-dasharray",D.current/D.seekableEnd*this.C+" "+this.C)}};g.Z(jn$,z1);g.y=jn$.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if(Q.backgroundImage&&Q.backgroundImage.thumbnail)if(Q.actionButton&&g.A(Q.actionButton,g.CE))if(D=Q.durationMilliseconds||0,typeof D!=="number"||D<=0)g.JG(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+D));else if(Q.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null){var W=Q.image.thumbnail.thumbnails;W!=null&&
W.length>0&&g.J6(g.Jy(W[0].url))&&(W[0].url=P.profilePicture,g.J6(g.Jy(P.profilePicture))&&Ks7("VideoPlayer",239976093,"Expected non-empty profile picture."));W=Q.backgroundImage.thumbnail.thumbnails;W!=null&&W.length>0&&g.J6(g.Jy(W[0].url))&&(W[0].url=P.vB());W=Q.headline;W!=null&&g.J6(g.Jy(W.text))&&(W.text=P.author)}this.j.init(PR("ad-image"),Q.image,m);this.N.init(PR("ad-text"),Q.headline,m);this.T.init(PR("ad-text"),Q.description,m);this.k9.init(PR("ad-image"),Q.backgroundImage,m);P=["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.N.element.classList.add("ytp-ad-action-interstitial-headline-light");this.T.element.classList.add("ytp-ad-action-interstitial-description-light");P.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().C&&(P.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),P.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().V("enable_unified_action_endcap_on_web")&&
!this.api.G().C&&(P.push("ytp-ad-action-interstitial-action-button-unified"),this.l0.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.XT.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.pO.classList.add("ytp-ad-action-interstitial-card-unified"),this.Iy.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-description-unified"),
this.t0.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.u0.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.x9.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,P);g.O(this,this.actionButton);this.actionButton.b0(this.l0);
this.actionButton.init(PR("button"),g.A(Q.actionButton,g.CE),m);$G(this.actionButton.element);P=Ov(this.actionButton.element);vV(this.actionButton.element,P+" This link opens in new tab");this.navigationEndpoint=Q.navigationEndpoint;this.B.W(this.u0,"click",this.J6,this);this.B.W(this.Iy,"click",this.J6,this);!this.api.G().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().C||this.B.W(this.t0,"click",this.J6,this);this.S=this.Se?new TO(this.api,D):new hF(D);g.O(this,this.S);if(Q.skipButton){(D=
g.A(Q.skipButton,xtV))&&this.S&&(this.skipButton=new fs(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.S,this.VM),g.O(this,this.skipButton),this.skipButton.b0(this.element),this.skipButton.init(PR("skip-button"),D,m));if(m=Q.adBadgeRenderer)if(m=g.A(m,pbV))D=new Zc(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0,!0),D.b0(this.x9),D.init(PR("simple-ad-badge"),m,this.macros),g.O(this,D);if(m=Q.adInfoRenderer)if(m=g.A(m,bP))D=new ri(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq,this.element,void 0,!0),D.b0(this.x9),D.init(PR("ad-info-hover-text-button"),m,this.macros),g.O(this,D)}else Q.nonskippableOverlayRenderer&&(D=g.A(Q.nonskippableOverlayRenderer,qr))&&this.S&&(this.C=new W_(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.S,!1),g.O(this,this.C),this.C.b0(this.element),this.C.init(PR("ad-preview"),D,m));Q.countdownRenderer&&(Q=Q.countdownRenderer,g.A(Q,XbK)&&this.S&&(m=new KjQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,
this.S),g.O(this,m),m.b0(this.element),m.init(PR("timed-pie-countdown"),g.A(Q,XbK),this.macros)));this.show();this.element.focus()}else g.JG(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.JG(Error("AdActionInterstitialRenderer has no button."));else g.JG(Error("AdActionInterstitialRenderer has no background AdImage."));else g.JG(Error("AdActionInterstitialRenderer has no description AdText."));else g.JG(Error("AdActionInterstitialRenderer has no headline AdText."));else g.JG(Error("AdActionInterstitialRenderer has no image."))};
g.y.clear=function(){g.EI(this.B);this.hide()};
g.y.show=function(){$uK(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.C&&this.C.show();z1.prototype.show.call(this)};
g.y.hide=function(){$uK(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.C&&this.C.hide();z1.prototype.hide.call(this)};
g.y.J6=function(){this.navigationEndpoint&&(this.layoutId?this.Pq.executeCommand(this.navigationEndpoint,this.layoutId):g.JG(Error("Missing layoutId for ad action interstitial.")))};var ak$={iconType:"CLOSE"},EL=new g.Ay(320,63);g.Z(Y_$,z1);g.y=Y_$.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);this.B=Q;this.j=g.JM(this.B.onClickCommands||[]);this.x9=this.B.onErrorCommand||null;if(D=this.B.contentSupportedRenderer)D=this.B.contentSupportedRenderer,Q=this.B.adInfoRenderer||null,g.A(D,YcN)?(this.N=g.La("ytp-ad-overlay-ad-info-button-container",this.T.element),A4v(this,Q),D=xuQ(this,g.A(D,YcN))):g.A(D,a_4)?(this.N=g.La("ytp-ad-overlay-ad-info-button-container",this.C.element),A4v(this,Q),D=Xhh(this,g.A(D,a_4))):g.A(D,AyP)?(this.N=
g.La("ytp-ad-overlay-ad-info-button-container",this.S.element),A4v(this,Q),D=S_P(this,g.A(D,AyP))):(g.JG(Error("InvideoOverlayAdRenderer content could not be initialized.")),D=!1);D&&(this.show(),r4k(this,!0))};
g.y.clear=function(){r4k(this,!1);this.u0.reset();this.Iy=0;this.T.hide();this.logVisibility(this.T.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.hide();this.dispose()};
g.y.JDD=function(){this.l0&&(this.layoutId?this.Pq.executeCommand(this.l0,this.layoutId):g.JG(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.y.Rr=function(){a:{if(this.B&&this.B.closeButton&&this.B.closeButton.buttonRenderer){var D=this.B.closeButton.buttonRenderer;if(D.serviceEndpoint){D=[D.serviceEndpoint];break a}}D=[]}D=g.T(D);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,this.layoutId?this.Pq.executeCommand(Q,this.layoutId):g.JG(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.y.mvF=function(){this.k9||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.y.H4=function(){this.k9||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.H4("invideo-overlay")};
g.y.c0O=function(D){D.target===this.N&&g.La("ytp-ad-button",this.XT.element).click()};g.Z(G72,cR);g.y=G72.prototype;g.y.init=function(D,Q,m){cR.prototype.init.call(this,D,Q,m);D=Q.durationMs;this.T=D==null||D===0?0:D+this.S.getProgressState().current*1E3;if(Q.text)var P=Q.text.templatedAdText;else Q.staticMessage&&(P=Q.staticMessage);this.messageText.init(PR("ad-text"),P,m);this.messageText.b0(this.C.element);this.B.show(100);this.show()};
g.y.clear=function(){this.hide()};
g.y.hide=function(){M$P(this,!1);cR.prototype.hide.call(this);this.C.hide();this.messageText.hide();QQ(this)};
g.y.show=function(){M$P(this,!0);cR.prototype.show.call(this);Dc(this);this.C.show();this.messageText.show()};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S!=null){var D=this.S.getProgressState();D!=null&&D.current!=null&&(D=1E3*D.current,!this.Iy&&D>=this.T?(this.B.hide(),this.Iy=!0):this.messageText&&this.messageText.isTemplated()&&(D=Math.max(0,Math.ceil((this.T-D)/1E3)),D!==this.N&&(MC(this.messageText,{TIME_REMAINING:String(D)}),this.N=D)))}};g.Z(c42,z1);g.y=c42.prototype;
g.y.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,{});Q.image&&Q.image.thumbnail?Q.headline?Q.description?Q.actionButton&&g.A(Q.actionButton,g.CE)?(this.T.init(PR("ad-image"),Q.image,m),this.C.init(PR("ad-text"),Q.headline,m),this.B.init(PR("ad-text"),Q.description,m),this.actionButton=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-underlay-action-button"]),Q.backgroundColor&&g.YZ(this.element,"background-color",g.$B(Q.backgroundColor)),g.O(this,this.actionButton),
this.actionButton.b0(this.N),this.actionButton.init(PR("button"),g.A(Q.actionButton,g.CE),m),D=g.WF(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().V("place_shrunken_video_on_left_of_player")?(Q=this.S,g.Wo(Q,"ytp-ad-underlay-left-container"),g.mQ(Q,"ytp-ad-underlay-right-container"),g.YZ(this.S,"margin-left",Math.round((D+.02)*100)+"%")):(Q=this.S,g.Wo(Q,"ytp-ad-underlay-right-container"),g.mQ(Q,"ytp-ad-underlay-left-container")),g.YZ(this.S,"width",Math.round((1-D-
.04)*100)+"%"),this.api.Q8()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.L9.bind(this)),this.api.addEventListener("resize",this.zD.bind(this))):g.JG(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.JG(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.JG(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.JG(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.y.show=function(){DQV(!0);this.actionButton&&this.actionButton.show();z1.prototype.show.call(this)};
g.y.hide=function(){DQV(!1);this.actionButton&&this.actionButton.hide();z1.prototype.hide.call(this)};
g.y.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.L9.bind(this));this.api.removeEventListener("resize",this.zD.bind(this));this.hide()};
g.y.onClick=function(D){z1.prototype.onClick.call(this,D);this.actionButton&&g.y0(this.actionButton.element,D.target)&&this.api.pauseVideo()};
g.y.L9=function(D){D==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):D==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):D==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};
g.y.zD=function(D){D.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):D.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.YZ(this.C.element,"font-size",D.width/40+"px")};g.Z(gU,z1);
gU.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);Q.toggledLoggingParams&&(this.toggledLoggingParams=Q.toggledLoggingParams);Q.answer&&g.A(Q.answer,g.CE)?(D=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),D.b0(this.answer),D.init(PR("ytp-ad-survey-answer-button"),g.A(Q.answer,g.CE),m),D.show()):Q.answer&&g.A(Q.answer,hS)&&(this.S=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,
["ytp-ad-survey-answer-toggle-button"]),this.S.b0(this.answer),g.O(this,this.S),this.S.init(PR("survey-answer-button"),g.A(Q.answer,hS),m));this.show()};
gU.prototype.pT=function(D){this.layoutId?K8(this.Pq,D,this.layoutId,this.macros):(D=new g.OI("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.JG(D))};
gU.prototype.onClick=function(D){z1.prototype.onClick.call(this,D);if(this.api.G().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
gU.prototype.clear=function(){this.hide()};g.Z(Q4$,z1);Q4$.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);Q.answer&&g.A(Q.answer,hS)&&(this.button=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.b0(this.S),this.button.init(PR("survey-none-of-the-above-button"),g.A(Q.answer,hS),m));this.show()};g.Z(BH,Iq);BH.prototype.init=function(D,Q,m){Iq.prototype.init.call(this,D,Q,m);D=!1;Q.text&&(Q=g.qC(Q.text),D=!g.J6(Q));D||g.l4(Error("No submit text was present in the renderer."))};
BH.prototype.onClick=function(D){this.publish("l");Iq.prototype.onClick.call(this,D)};g.Z(wU,z1);
wU.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);if(D=Q.skipOrPreviewRenderer)g.A(D,$w)?(D=g.A(D,$w),m=new NW(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.B,!0),m.b0(this.skipOrPreview),m.init(PR("skip-button"),D,this.macros),g.O(this,m),this.S=m):g.A(D,qr)&&(D=g.A(D,qr),m=new W_(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.B,!1),m.b0(this.skipOrPreview),m.init(PR("ad-preview"),D,this.macros),m.Iy.show(100),m.show(),g.O(this,m),
this.S=m);this.S==null&&(D=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Q)),g.JG(D));Q.submitButton&&(D=Q.submitButton,g.A(D,g.CE)&&(D=g.A(D,g.CE),m=new BH(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),m.b0(this.submitButton),m.init(PR("survey-submit"),D,this.macros),g.O(this,m),this.C=m));if(D=Q.adBadgeRenderer)D=g.A(D,pbV),m=new Zc(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0,!0,!0),m.b0(this.T),m.init(PR("simple-ad-badge"),
D,this.macros),this.adBadge=m.element,g.O(this,m);if(D=Q.adDurationRemaining)D=g.A(D,es4),m=new gE(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.B,void 0,!0),m.b0(this.T),m.init(PR("ad-duration-remaining"),D,this.macros),g.O(this,m);(Q=Q.adInfoRenderer)&&g.A(Q,bP)&&(D=new ri(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.element,void 0,!0),g.O(this,D),this.adBadge!==void 0?this.T.insertBefore(D.element,this.adBadge.nextSibling):D.b0(this.T),D.init(PR("ad-info-hover-text-button"),
g.A(Q,bP),this.macros));this.show()};
wU.prototype.clear=function(){this.hide()};g.Z(kE,z1);kE.prototype.init=function(D,Q,m){z1.prototype.init.call(this,D,Q,m);s4V(this)};
kE.prototype.show=function(){this.T=Date.now();z1.prototype.show.call(this)};
kE.prototype.JW=function(){};g.Z(LhV,kE);g.y=LhV.prototype;g.y.init=function(D,Q,m){var P=this;kE.prototype.init.call(this,D,Q,m);Q.questionText&&mQh(this,Q.questionText);Q.answers&&Q.answers.forEach(function(W,L){g.A(W,FT)&&PvV(P,g.A(W,FT),m,L)});
this.N=new Set(this.C.map(function(W){return W.S.S}));
(D=Q.noneOfTheAbove)&&(D=g.A(D,O6v))&&uKM(this,D,m);Q.surveyAdQuestionCommon&&iVk(this,Q.surveyAdQuestionCommon);Q.submitEndpoints&&(this.submitEndpoints=Q.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()};
g.y.JW=function(){dQP(this,!1);this.B.C.subscribe("l",this.Onh,this)};
g.y.onChange=function(D){D.target===this.noneOfTheAbove.button.S?t2K(this):this.N.has(D.target)&&(this.noneOfTheAbove.button.toggleButton(!1),dQP(this,!0))};
g.y.Onh=function(){var D=[],Q=this.C.reduce(function(W,L,u){var t=L.toggledLoggingParams;L.S&&L.S.isToggled()&&t&&(W.push(t),D.push(u));return W},[]).join("&"),m=this.submitEndpoints.map(function(W){if(!W.loggingUrls)return W;
W=g.fg(W);W.loggingUrls=W.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=fG(L.baseUrl,Q));return L});
return W});
if(m){m=g.T(m);for(var P=m.next();!P.done;P=m.next())P=P.value,this.layoutId?K8(this.Pq,P,this.layoutId,this.macros):g.JG(Error("Missing layoutId for multi_select_question."))}this.api.G().V("supports_multi_step_on_desktop")&&this.Iy(D)};
g.y.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Z(Jx,kE);Jx.prototype.init=function(D,Q,m){var P=this;kE.prototype.init.call(this,D,Q,m);Q.questionText&&mQh(this,Q.questionText);Q.answers&&Q.answers.forEach(function(W,L){g.A(W,FT)&&PvV(P,g.A(W,FT),m,L)});
Q.surveyAdQuestionCommon?iVk(this,Q.surveyAdQuestionCommon):PD(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Q)));this.show()};
Jx.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Z(lG,z1);lG.prototype.init=function(D,Q,m){var P=this;z1.prototype.init.call(this,D,Q,m);if(this.api.G().V("supports_multi_step_on_desktop")){var W;this.conditioningRules=(W=Q.conditioningRules)!=null?W:[];var L;this.C=(L=Q.questions)!=null?L:[];var u;((u=Q.questions)==null?0:u.length)&&Cvv(this,0)}else(Q.questions||[]).forEach(function(t){g.A(t,tw)?bVQ(P,g.A(t,tw),m):g.A(t,ds)&&qUv(P,g.A(t,ds),m)});
this.show()};
lG.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
lG.prototype.B=function(D){var Q=this;if(this.api.G().V("supports_multi_step_on_desktop")){var m;if((m=this.conditioningRules)==null?0:m.length){var P;if(D.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(W){return W.questionIndex===Q.S})==null)g.JG(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(W){if(W.questionIndex===Q.S)switch(W.condition){case "CONDITION_ALL_OF":var L;if((L=W.answerIndices)==null?0:L.every(function(t){return D.includes(t)}))P=W.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var u;if((u=W.answerIndices)==null?0:u.some(function(t){return D.includes(t)}))P=W.nextQuestionIndex;
break;default:g.JG(Error("Expected specified condition in survey conditioning rules."))}}),P!=null)Cvv(this,P);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.JG(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.Z(If,z1);
If.prototype.init=function(D,Q,m){var P=this;z1.prototype.init.call(this,D,Q,m);D=Q.timeoutSeconds||0;if(typeof D!=="number"||D<0)g.JG(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+D));else if(Q.timeoutCommands)if(Q.text)if(Q.ctaButton&&g.A(Q.ctaButton,g.CE))if(Q.brandImage)if(Q.backgroundImage&&g.A(Q.backgroundImage,ou)&&g.A(Q.backgroundImage,ou).landscape){this.layoutId||g.JG(Error("Missing layoutId for survey interstitial."));okk(this.interstitial,g.A(Q.backgroundImage,
ou).landscape);okk(this.logoImage,Q.brandImage);g.Zq(this.text,g.qC(Q.text));var W=["ytp-ad-survey-interstitial-action-button"];W.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Iq(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,W);g.O(this,this.actionButton);this.actionButton.b0(this.C);this.actionButton.init(PR("button"),g.A(Q.ctaButton,g.CE),m);this.actionButton.show();this.S=new TO(this.api,D*1E3);this.S.subscribe("g",function(){P.transition.hide()});
g.O(this,this.S);this.W(this.element,"click",function(L){var u=L.target===P.interstitial;L=P.actionButton.element.contains(L.target);if(u||L)if(P.transition.hide(),u)P.api.onAdUxClicked(P.componentType,P.layoutId)});
this.transition.show(100)}else g.JG(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.JG(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.JG(Error("SurveyTextInterstitialRenderer has no button."));else g.JG(Error("SurveyTextInterstitialRenderer has no text."));else g.JG(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
If.prototype.clear=function(){this.hide()};
If.prototype.show=function(){fNk(!0);z1.prototype.show.call(this)};
If.prototype.hide=function(){fNk(!1);z1.prototype.hide.call(this)};g.Z(Rf,cR);g.y=Rf.prototype;
g.y.init=function(D,Q){cR.prototype.init.call(this,D,Q,{});if(Q.durationMilliseconds){if(Q.durationMilliseconds<0){g.JG(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Q.durationMilliseconds));return}this.C=Q.durationMilliseconds}else this.C=this.S.EB();var m;if((m=Q.previewText)==null||!m.text||g.J6(Q.previewText.text))g.JG(Error("No text is returned for AdPreview."));else{this.N=Q.previewText;Q.previewText.isTemplated||g.Zq(this.T,Q.previewText.text);var P;
if(((P=this.api.getVideoData(1))==null?0:P.CZ)&&Q.previewImage){var W,L;(D=((L=Vu(((W=Q.previewImage)==null?void 0:W.sources)||[],52,!1))==null?void 0:L.url)||"")&&D.length?(this.previewImage=new g.t1({K:"img",L:"ytp-preview-ad__image",Y:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",D),g.O(this,this.previewImage),this.previewImage.b0(this.element)):g.JG(Error("Failed to get imageUrl in AdPreview."))}else this.T.classList.add("ytp-preview-ad__text--padding--wide")}};
g.y.clear=function(){this.hide()};
g.y.hide=function(){QQ(this);cR.prototype.hide.call(this)};
g.y.show=function(){Dc(this);cR.prototype.show.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();if(D!=null&&D.current)if(D=1E3*D.current,D>=this.C)this.transition.hide();else{var Q;if((Q=this.N)==null?0:Q.isTemplated)if(Q=Math.max(0,Math.ceil((this.C-D)/1E3)),Q!==this.B){var m,P;(D=(m=this.N)==null?void 0:(P=m.text)==null?void 0:P.replace("{TIME_REMAINING}",String(Q)))&&g.Zq(this.T,D);this.B=Q}}}};g.Z(UL,z1);
UL.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});var m,P;if((D=((P=Vu(((m=Q.image)==null?void 0:m.sources)||[],V2v(Q),!0))==null?void 0:P.url)||"")&&D.length){m=this.Dx("ytp-ad-avatar");m.src=D;var W,L;if(P=(W=Q.interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label)m.alt=P;switch(Q.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(Q.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.JG(Error("Failed to get imageUrl in AdAvatar."))};
UL.prototype.clear=function(){this.hide()};
UL.prototype.onClick=function(D){z1.prototype.onClick.call(this,D)};g.Z(HH,z1);
HH.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});var m;D=(m=Q.label)==null?void 0:m.content;if((m=D!=null&&!g.J6(D))||Q.iconImage){m&&(this.buttonText=new g.t1({K:"span",L:"ytp-ad-button-vm__text",h0:D}),g.O(this,this.buttonText),this.buttonText.b0(this.element));var P,W,L=((P=Q.interaction)==null?0:(W=P.accessibility)==null?0:W.label)||m?D:"";L&&vV(this.element,L+" This link opens in new tab");$G(this.element);if(Q.iconImage){P=void 0;if(Q.iconImage){a:{W=Q.iconImage;if(W.sources)for(W=
g.T(W.sources),D=W.next();!D.done;D=W.next())if(D=D.value,L=void 0,(L=D.clientResource)==null?0:L.imageName){W=D;break a}W=void 0}if(W){var u;P={iconType:(u=W.clientResource)==null?void 0:u.imageName}}}u=lR(P,!1,this.C);u!=null&&(this.buttonIcon=new g.t1({K:"span",L:"ytp-ad-button-vm__icon",X:[u]}),g.O(this,this.buttonIcon),Q.iconLeading?(V0(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):m?(this.buttonIcon.b0(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.b0(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.V("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):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(Q.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.l4(Error("AdButton does not have label or an icon."))};
HH.prototype.clear=function(){this.hide()};
HH.prototype.onClick=function(D){z1.prototype.onClick.call(this,D)};g.Z(N$U,cR);g.y=N$U.prototype;
g.y.init=function(D,Q){cR.prototype.init.call(this,D,Q,{});if(D=g.A(Q.avatar,Ax)){var m=Q.headline;if(m){var P=Q.description;if(P){var W=g.A(Q.button,xE);W?(this.adAvatar.init(PR("ad-avatar"),D),this.headline.init(PR("ad-simple-attributed-string"),new wE(m)),this.description.init(PR("ad-simple-attributed-string"),new wE(P)),m.content&&m.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(PR("ad-button"),W),
this.startMilliseconds=Q.startMs||0,this.api.Q8()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.mQ.bind(this)),Dc(this)):g.JG(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JG(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JG(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JG(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();D&&D.current&&1E3*D.current>=this.startMilliseconds&&(QQ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.y.Wk=function(){this.clear()};
g.y.onClick=function(D){this.api.pauseVideo();cR.prototype.onClick.call(this,D)};
g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.mQ.bind(this))};
g.y.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();cR.prototype.show.call(this)};
g.y.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();cR.prototype.hide.call(this)};
g.y.mQ=function(D){D==="hidden"?this.show():this.hide()};g.Z(Kw,z1);g.y=Kw.prototype;
g.y.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(!Q.label||g.J6(Q.label))g.JG(Error("No label is returned for SkipAdButton."));else if(g.Zq(this.B,Q.label),D=lR({iconType:"SKIP_NEXT_NEW"}),D==null)g.JG(Error("Unable to retrieve icon for SkipAdButton"));else if(this.T=new g.t1({K:"span",L:"ytp-skip-ad-button__icon",X:[D]}),g.O(this,this.T),this.T.b0(this.element),this.api.G().experiments.Mv("enable_skip_to_next_messaging")&&(Q=g.Jy(Q.targetId)))this.C=!0,this.element.setAttribute("data-tooltip-target-id",Q),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.y.onClick=function(D){D&&D.preventDefault();var Q,m;QWr(D,{contentCpn:(m=(Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)!=null?m:""})===0?this.api.sW("onAbnormalityDetected"):(z1.prototype.onClick.call(this,D),this.api.sW("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.y.clear=function(){this.S.reset();this.hide()};
g.y.hide=function(){z1.prototype.hide.call(this)};
g.y.show=function(){this.S.start();z1.prototype.show.call(this);this.C&&this.api.G().experiments.Mv("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.Z(yMh,cR);g.y=yMh.prototype;
g.y.init=function(D,Q){cR.prototype.init.call(this,D,Q,{});D=g.A(Q.preskipState,Q$k);var m;if((m=this.api.getVideoData())==null?0:m.isDaiEnabled()){if(!D){g.JG(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.C=new Rf(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.S);g.O(this,this.C);this.C.b0(this.element);var P;(P=this.C)==null||P.init(PR("preview-ad"),D);(m=this.C)!=null&&(m.transition.show(100),m.show())}(m=g.A(Q.skippableState,PXU))?(Q.skipOffsetMilliseconds!=
null?this.skipOffsetMilliseconds=Q.skipOffsetMilliseconds:(g.l4(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.T.init(PR("skip-button"),m),this.show()):g.JG(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.y.show=function(){Dc(this);cR.prototype.show.call(this)};
g.y.hide=function(){!this.isSkippable&&this.C?this.C.hide():this.T&&this.T.hide();QQ(this);cR.prototype.hide.call(this)};
g.y.clear=function(){var D;(D=this.C)==null||D.clear();this.T&&this.T.clear();QQ(this);cR.prototype.hide.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(1E3*this.S.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var D;(D=this.C)!=null&&D.transition.hide();(D=this.T)!=null&&(D.transition.show(),D.show())}};g.Z(jo,z1);
jo.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(Q.label){var m;((m=Q.label)==null?0:m.content)&&!g.J6(Q.label.content)&&(this.linkText=new g.t1({K:"span",L:"ytp-visit-advertiser-link__text",h0:Q.label.content}),g.O(this,this.linkText),this.linkText.b0(this.element));var P,W;if((P=Q.interaction)==null?0:(W=P.accessibility)==null?0:W.label)vV(this.element,Q.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=Q.label)==null?0:L.content)&&!g.J6(Q.label.content)&&vV(this.element,
Q.label.content+" This link opens in new tab")}$G(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.JG(Error("No label found in VisitAdvertiserLink."))};
jo.prototype.onClick=function(D){z1.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType,this.layoutId)};
jo.prototype.clear=function(){this.hide()};g.Z($E,z1);
$E.prototype.init=function(D,Q,m,P){z1.prototype.init.call(this,D,Q,{});if(Q.skipOrPreview){m=Q.skipOrPreview;D=g.A(m,WOV);m=g.A(m,Q$k);if(D)this.UJ=new yMh(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C),g.O(this,this.UJ),this.UJ.b0(this.j),this.UJ.init(PR("skip-ad"),D);else{var W;m&&((W=this.api.getVideoData())==null?0:W.isDaiEnabled())&&(this.B=new Rf(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C,1),g.O(this,this.B),this.B.b0(this.j),this.B.init(PR("ad-preview"),
m),W=this.B,W.transition.show(100),W.show())}if(W=g.A(Q.skipOrPreview,WOV))var L=W.skipOffsetMilliseconds}Q.playerAdCard&&(W=g.A(Q.playerAdCard,miN))&&(this.playerAdCard=new N$U(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C),g.O(this,this.playerAdCard),this.playerAdCard.b0(this.t0),this.playerAdCard.init(PR("ad-avatar-lockup-card"),W));Q.adBadgeRenderer&&((W=g.A(Q.adBadgeRenderer,pw))?(this.T=new JF(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0),g.O(this,
this.T),this.T.b0(this.S),this.T.init(PR("ad-badge"),W)):g.JG(Error("AdBadgeViewModel is not found in player overlay layout.")));Q.adPodIndex&&(W=g.A(Q.adPodIndex,G4h))&&(this.adPodIndex=new lu(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.adPodIndex),this.adPodIndex.b0(this.S),this.adPodIndex.init(PR("ad-pod-index"),W));Q.adInfoRenderer&&((W=g.A(Q.adInfoRenderer,bP))?(this.adInfoButton=new ri(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.element,
void 0,!0),g.O(this,this.adInfoButton),this.T!==void 0?this.S.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.b0(this.S),this.adInfoButton.init(PR("ad-info-hover-text-button"),W,this.macros)):g.l4(Error("AdInfoRenderer is not found in player overlay layout.")));var u;W=(u=this.api.getVideoData())==null?void 0:u.isDaiEnabled();Q.adDurationRemaining&&W&&(u=g.A(Q.adDurationRemaining,es4))&&(this.adDurationRemaining=new gE(this.api,this.layoutId,this.interactionLoggingClientData,
this.Pq,this.C,P.videoAdDurationSeconds,!0),g.O(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.b0(this.S),this.adDurationRemaining.init(PR("ad-duration-remaining"),u,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Q.visitAdvertiserLink&&(P=g.A(Q.visitAdvertiserLink,s$k))&&(this.visitAdvertiserLink=new jo(this.api,this.layoutId,
this.interactionLoggingClientData,this.Pq),g.O(this,this.visitAdvertiserLink),this.visitAdvertiserLink.b0(this.S),this.visitAdvertiserLink.init(PR("visit-advertiser-link"),P));Q.adDisclosureBanner&&(Q=g.A(Q.adDisclosureBanner,ry4))&&(this.adDisclosureBanner=new ID(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.adDisclosureBanner),this.adDisclosureBanner.b0(this.Iy),this.adDisclosureBanner.init(PR("ad-disclosure-banner"),Q));this.N=new H_(this.api,this.C,L,!0);g.O(this,
this.N);g.Q3(this.api,this.N.element,4);this.show()};
$E.prototype.clear=function(){this.hide()};g.Z(ZVM,z1);g.y=ZVM.prototype;
g.y.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(Q!=null&&Q.title)if(D=Q.title)if(this.headline.init(PR("ad-simple-attributed-string"),new wE(D)),D=g.A(Q.moreInfoButton,xE)){if(this.moreInfoButton.init(PR("ad-button"),D),Q.descriptions)Q.descriptions.length>0&&(D=Q.descriptions[0])&&(this.S=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.S),this.S.b0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.S.init(PR("ad-simple-attributed-string"),
new wE(D))),Q.descriptions.length>1&&(Q=Q.descriptions[1])&&(this.C=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.C),this.C.b0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.C.init(PR("ad-simple-attributed-string"),new wE(Q)))}else g.JG(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.JG(Error("No headline found in AdGridCardText."));else g.JG(Error("No headline found in AdGridCardText."))};
g.y.onClick=function(D){z1.prototype.onClick.call(this,D);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.y.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var D;(D=this.S)==null||D.clear();var Q;(Q=this.C)==null||Q.clear()};
g.y.hide=function(){this.headline.hide();this.moreInfoButton.hide();var D;(D=this.S)==null||D.hide();var Q;(Q=this.C)==null||Q.hide();z1.prototype.hide.call(this)};
g.y.show=function(){z1.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var D;(D=this.S)==null||D.show();var Q;(Q=this.C)==null||Q.show()};g.Z(eo,z1);eo.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(Q!=null&&Q.gridCards)if(Q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.JG(Error("Only single column style is currently supported in AdGridCardCollection."));else for(D=g.T(Q.gridCards),Q=D.next();!Q.done;Q=D.next()){if(Q=g.A(Q.value,Div)){var m=new ZVM(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,m);m.b0(this.element);m.init(PR("ad-grid-card-text"),Q);this.S.push(m)}}else g.JG(Error("No grid cards found in AdGridCardCollection."))};
eo.prototype.show=function(){for(var D=g.T(this.S),Q=D.next();!Q.done;Q=D.next())Q.value.show();z1.prototype.show.call(this)};
eo.prototype.clear=function(){this.hide();for(var D=g.T(this.S),Q=D.next();!Q.done;Q=D.next())Q.value.clear()};
eo.prototype.hide=function(){for(var D=g.T(this.S),Q=D.next();!Q.done;Q=D.next())Q.value.hide();z1.prototype.hide.call(this)};g.Z(vH,cR);g.y=vH.prototype;g.y.init=function(D,Q,m,P,W){W=W===void 0?0:W;cR.prototype.init.call(this,D,Q,m,P);this.playerProgressOffsetMs=W;Dc(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.tv.bind(this));this.api.addEventListener("resize",this.cC.bind(this));this.api.Q8()?(this.C=!0,this.api.Wj(!0),this.show()):this.hide()};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();D&&D.current&&!this.C&&1E3*D.current>=this.playerProgressOffsetMs&&(this.C=!0,this.api.Wj(!0),this.show())}};
g.y.Wk=function(){this.C&&this.api.Wj(!1);this.hide()};
g.y.clear=function(){this.api.Wj(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.tv.bind(this));this.api.removeEventListener("resize",this.cC.bind(this));QQ(this);this.hide()};
g.y.hide=function(){FhQ(!1);cR.prototype.hide.call(this)};
g.y.show=function(){FhQ(!0);cR.prototype.show.call(this)};g.Z(T$T,vH);g.y=T$T.prototype;
g.y.init=function(D,Q,m,P){if(Q!=null&&Q.adGridCardCollection)if(Q!=null&&Q.adButton){var W=Number(Q.playerProgressOffsetMs||"0");isNaN(W)?vH.prototype.init.call(this,D,Q,m,P):vH.prototype.init.call(this,D,Q,m,P,W);D=Q.headline;m=g.A(Q.adAvatar,Ax);D&&m?(this.headline=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.headline),this.headline.b0(this.Dx("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(PR("ad-simple-attributed-string"),new wE(D)),
this.adAvatar=new UL(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.adAvatar),this.adAvatar.b0(this.Dx("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(PR("ad-avatar"),m)):this.B.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");D=g.A(Q.adGridCardCollection,cyP);this.adGridCardCollection.init(PR("ad-grid-card-collection"),D);Q=g.A(Q.adButton,xE);this.adButton.init(PR("ad-button"),Q);
this.hide()}else g.JG(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.JG(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.y.onClick=function(D){(this.adButton&&g.y0(this.adButton.element,D.target)||this.adAvatar&&g.y0(this.adAvatar.element,D.target))&&this.api.pauseVideo();vH.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.y.cC=function(){};
g.y.clear=function(){this.hide();var D;(D=this.headline)==null||D.clear();var Q;(Q=this.adAvatar)==null||Q.clear();this.adGridCardCollection.clear();this.adButton.clear();vH.prototype.clear.call(this)};
g.y.show=function(){var D;(D=this.headline)==null||D.show();var Q;(Q=this.adAvatar)==null||Q.show();this.adGridCardCollection.show();this.adButton.show();vH.prototype.show.call(this)};
g.y.hide=function(){var D;(D=this.headline)==null||D.hide();var Q;(Q=this.adAvatar)==null||Q.hide();this.adGridCardCollection.hide();this.adButton.hide();vH.prototype.hide.call(this)};
g.y.tv=function(D){D==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):D==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):D==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};g.Z(OL,z1);
OL.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(Q.attributes===void 0)g.JG(Error("No attributes found in AdDetailsLineViewModel."));else if(Q.style===void 0)g.JG(Error("No style found in AdDetailsLineViewModel."));else{D=g.T(Q.attributes);for(var m=D.next();!m.done;m=D.next())if(m=m.value,m.text!==void 0){m=m.text;var P=Q.style,W=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,W);W.b0(this.element);a:switch(P){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":P="ytp-ad-details-line__text--style-responsive";
break a;default:P="ytp-ad-details-line__text--style-standard"}W.element.classList.add(P);W.init(PR("ad-simple-attributed-string"),new wE(m));this.S.push(W)}this.show()}};
OL.prototype.show=function(){this.S.forEach(function(D){D.show()});
z1.prototype.show.call(this)};
OL.prototype.clear=function(){this.hide()};
OL.prototype.hide=function(){this.S.forEach(function(D){D.hide()});
z1.prototype.hide.call(this)};g.Z(YE,z1);YE.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});var m,P;(D=((P=Vu(((m=Q.image)==null?void 0:m.sources)||[]))==null?void 0:P.url)||"")&&D.length?(m=this.Dx("ytp-image-background-image"),g.YZ(m,"backgroundImage","url("+D+")"),Q.blurLevel!==void 0&&g.YZ(m,"filter","blur("+Q.blurLevel+"px)"),Q.gradient!==void 0&&(Q=new g.p({K:"div",OW:["ytp-image-background--gradient-vertical"]}),g.O(this,Q),Q.b0(this.element)),this.show()):g.JG(Error("Failed to get imageUrl in ImageBackground."))};
YE.prototype.clear=function(){this.hide()};g.Z(hV4,cR);g.y=hV4.prototype;g.y.init=function(D,Q){cR.prototype.init.call(this,D,Q,{});g.YZ(this.T,"stroke-dasharray","0 "+this.C);this.show()};
g.y.clear=function(){this.hide()};
g.y.hide=function(){QQ(this);cR.prototype.hide.call(this)};
g.y.show=function(){Dc(this);cR.prototype.show.call(this)};
g.y.Wk=function(){this.hide()};
g.y.l6=function(){if(this.S){var D=this.S.getProgressState();D!=null&&D.current!=null&&g.YZ(this.T,"stroke-dasharray",D.current/D.seekableEnd*this.C+" "+this.C)}};g.Z(af,z1);
af.prototype.init=function(D,Q){z1.prototype.init.call(this,D,Q,{});if(EkV(Q)){this.adAvatar=new UL(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.adAvatar);this.adAvatar.b0(this.Dx("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(PR("ad-avatar"),g.A(Q.adAvatar,Ax));this.headline=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq);g.O(this,this.headline);this.headline.b0(this.Dx("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(PR("ad-simple-attributed-string"),new wE(Q.headline));if(D=g.A(Q.adDetailsLine,ScV))this.detailsLine=new OL(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.detailsLine),this.detailsLine.b0(this.Dx("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(PR("ad-details-line"),D);this.adButton=new HH(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0);g.O(this,this.adButton);
this.adButton.b0(this.Dx("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(PR("ad-button"),g.A(Q.adButton,xE));this.adBadge=new JF(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,!0);g.O(this,this.adBadge);this.adBadge.b0(this.B);this.adBadge.init(PR("ad-badge"),g.A(Q.adBadge,pw));this.adInfoButton=new ri(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.element,void 0,!0);g.O(this,this.adInfoButton);this.adInfoButton.b0(this.B);
this.adInfoButton.init(PR("ad-info-hover-text-button"),g.A(Q.adInfoRenderer,bP),this.macros);if(D=g.A(Q.skipAdButton,PXU))this.skipAdButton=new Kw(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.skipAdButton),this.skipAdButton.b0(this.element),this.skipAdButton.init(PR("skip-button"),D);this.C=new hF(Q.durationMilliseconds);g.O(this,this.C);if(D=g.A(Q.countdownViewModel,ia$))this.S=new hV4(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq,this.C),g.O(this,
this.S),this.S.b0(this.Dx("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.S.init(PR("timed-pie-countdown"),D);if(Q=g.A(Q.imageBackground,MZN))this.imageBackground=new YE(this.api,this.layoutId,this.interactionLoggingClientData,this.Pq),g.O(this,this.imageBackground),this.imageBackground.b0(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(PR("image-background"),
Q);this.show();this.element.focus()}};
af.prototype.clear=function(){g.EI(this.T);this.hide()};
af.prototype.show=function(){nk$(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();z1.prototype.show.call(this)};
af.prototype.hide=function(){nk$(!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();z1.prototype.hide.call(this)};g.Z(XX,g.iR);g.y=XX.prototype;g.y.EB=function(){return 1E3*this.api.getDuration(this.E1,!1)};
g.y.stop=function(){this.S&&this.handler.qY(this.S)};
g.y.mu=function(){var D=this.api.getProgressState(this.E1);this.C={seekableStart:D.seekableStart,seekableEnd:D.seekableEnd,current:this.api.getCurrentTime(this.E1,!1)};this.publish("h")};
g.y.getProgressState=function(){return this.C};
g.y.x6=function(D){g.oD(D,2)&&this.publish("g")};var RtK="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.Z(So,aq);
So.prototype.T=function(D){var Q=D.id,m=D.content,P=m.componentType;if(!RtK.includes(P))switch(D.actionType){case 1:D=this.api;var W=this.Pq,L=m.layoutId,u=m.interactionLoggingClientData,t=m instanceof $3?m.Se:!1,z=m instanceof $3||m instanceof Fo?m.VM:!1;u=u===void 0?{}:u;t=t===void 0?!1:t;z=z===void 0?!1:z;switch(P){case "invideo-overlay":D=new Y_$(D,L,u,W);break;case "player-overlay":D=new Ks(D,L,u,W,new XX(D),z);break;case "player-overlay-layout":D=new $E(D,L,u,W,new XX(D));break;case "survey":D=
new lG(D,L,u,W);break;case "ad-action-interstitial":D=new jn$(D,L,u,W,t,z);break;case "video-interstitial-buttoned-centered":D=new af(D,L,u,W);break;case "survey-interstitial":D=new If(D,L,u,W);break;case "ad-message":D=new G72(D,L,u,W,new XX(D,1));break;case "player-underlay":D=new c42(D,L,u,W);break;case "display-underlay-text-grid-cards":D=new T$T(D,L,u,W,new XX(D));break;default:D=null}if(!D){g.l4(Error("No UI component returned from ComponentFactory for type: "+P));break}g.dC(this.components,
Q)?g.l4(Error("Ad UI component already registered: "+Q)):this.components[Q]=D;D.bind(m);m instanceof KZ?this.C?this.C.append(D.Vz):g.l4(Error("Underlay view was not created but UnderlayRenderer was created")):this.B.append(D.Vz);break;case 2:Q=gkV(this,D);if(Q==null)break;Q.bind(m);break;case 3:m=gkV(this,D),m!=null&&(g.Dp(m),g.dC(this.components,Q)?(m=this.components,Q in m&&delete m[Q]):g.l4(Error("Ad UI component does not exist: "+Q)))}};
So.prototype.Bq=function(){g.Qj(Object.values(this.components));this.components={};aq.prototype.Bq.call(this)};g.Z(B$v,g.nW);g.y=B$v.prototype;g.y.create=function(){try{wPN(this),this.load(),this.created=!0,wPN(this)}catch(D){bu(D instanceof Error?D:String(D))}};
g.y.load=function(){try{lNv(this)}finally{MM(hx(this.S).Qs)&&this.player.wi("ad",1)}};
g.y.destroy=function(){var D=this.player.getVideoData(1);this.S.S.LD.r3(D&&D.clientPlaybackNonce||"");this.unload();this.created=!1};
g.y.unload=function(){g.nW.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Q){bu(Q instanceof Error?Q:String(Q))}if(this.C!=null){var D=this.C;this.C=null;D.dispose()}this.T.reset()};
g.y.po=function(){return!1};
g.y.getAdState=function(){return-1};
g.y.getOptions=function(){return Object.values(I02)};
g.y.hf=function(D,Q){Q=Q===void 0?{}:Q;switch(D){case "replaceUrlMacros":return D=Q,D.url?(Q=rqh(this.player),Object.assign(Q,D.E0T),D=g.BV(D.url,Q)):D=null,D;case "onAboutThisAdPopupClosed":this.OM(Q);break;case "executeCommand":D=Q;D.command&&D.layoutId&&this.executeCommand(D);break;default:return null}};
g.y.uM=function(D){var Q;return!((Q=this.S.S.sC)==null||!Q.get().uM(D))};
g.y.OM=function(D){D.isMuted&&njk(hx(this.S).kS,hx(this.S).oH,D.layoutId);this.XC&&this.XC.OM()};
g.y.executeCommand=function(D){hx(this.S).Pq.executeCommand(D.command,D.layoutId)};g.ch("yt.player.Application.create",g.NM.create);g.ch("yt.player.Application.createAlternate",g.NM.create);RE4(go(),l0K);var UIP=g.Q4("ytcsi.tick");UIP&&UIP("pe");g.hD("ad",B$v);g.Z(g.Mo,g.v);g.Mo.prototype.start=function(D,Q,m){this.config={from:D,to:Q,duration:m,startTime:(0,g.T3)()};this.next()};
g.Mo.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Mo.prototype.next=function(){if(this.config){var D=this.config,Q=D.from,m=D.to,P=D.duration;D=D.startTime;var W=(0,g.T3)()-D;D=this.S;P=eB9(D,W/P);if(P==0)D=D.U;else if(P==1)D=D.Z;else{W=Oc(D.U,D.J,P);var L=Oc(D.J,D.N,P);D=Oc(D.N,D.Z,P);W=Oc(W,L,P);L=Oc(L,D,P);D=Oc(W,L,P)}D=g.eZ(D,0,1);this.callback(Q+(m-Q)*D);D<1&&this.delay.start()}};g.Z(g.cH,g.p);g.y=g.cH.prototype;g.y.hasSuggestions=function(){return this.suggestionData.length>0};
g.y.UQ=function(){this.C&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.y.show=function(){g.p.prototype.show.call(this);j4P(this)};
g.y.qX=function(){this.C&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.y.mN=function(){this.MB(this.api.fh().getPlayerSize())};
g.y.MB=function(D){var Q=this.api.isEmbedsShortsMode()?.5625:16/9,m=this.api.UN();D=D.width-(m?112:58);m=Math.ceil(D/(m?320:192));var P=(D-m*8)/m;Q=Math.floor(P/Q);for(var W=g.T(this.S),L=W.next();!L.done;L=W.next())L=L.value.Dx("ytp-suggestion-image"),L.style.width=P+"px",L.style.height=Q+"px";this.suggestions.element.style.height=Q+"px";this.B=P;this.Z=Q;this.containerWidth=D;this.columns=m;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Dt(this)};
g.y.onVideoDataChange=function(){var D=this.api.G(),Q=this.api.getVideoData();this.N=Q.RI?!1:D.B;this.suggestionData=Q.suggestions?g.g0(Q.suggestions,function(m){return m&&!m.playlistId}):[];
eV2(this);Q.RI?this.title.update({title:g.LZ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.y.scrollTo=function(D){D=g.eZ(D,this.containerWidth-this.suggestionData.length*(this.B+8),0);this.U.start(this.scrollPosition,D,1E3);this.scrollPosition=D;g.Dt(this);j4P(this)};})(_yt_player);
